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

main

Commit

toothbrush3mo ago

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

Context-Aware Control-Plane Target Resolution

Claude Code
View session
Checkpoint 1