fix(coding-agent): used authenticated registry models by default

Required CLI model registries to expose getAvailable() and used that authenticated
set whenever callers omit availableModels. Deferred SDK and bench/dry-balance
resolution now lets configured roles beat unauthenticated catalog id collisions.

Updated resolver test registries and made the #6508 regression omit the explicit
availableModels option, covering the deferred-caller path from the review.

Fixes #6508
This commit is contained in:
roboomp
2026-07-24 11:41:58 +00:00
parent df0e77c584
commit 8191cf41d3
6 changed files with 53 additions and 34 deletions
@@ -76,6 +76,7 @@ export interface BenchCommandArgs {
export interface BenchModelRegistry {
getAll(): Model<Api>[];
getAvailable(): Model<Api>[];
getApiKey(model: Model<Api>, sessionId?: string): Promise<string | undefined>;
resolver(model: ApiKeyResolverModel, sessionId?: string): ApiKeyResolver;
hasConfiguredAuth?(model: Model<Api>): boolean;