coreapi: resolve New() host + token via the active context
main·
Commit

New() now consults auth.ResolveControlPlaneTarget for its host and
bearer, so entire auth use <ctx> retargets org/repo/project/grant onto
that context's core and their tokens refresh silently. Replaces
bearerSource with a token-func-backed providerSource; NewWithBearer
(auth status) is untouched.
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com Entire-Checkpoint: bbf4cf7240de
Checkpoints
Checkpoint 1