mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-12 20:15:40 +00:00
fix(cli): clearer profile/proxy/api errors and rich not-found suggestions
Move resolveProfileAndTarget() inside the try block in ccs.ts so a missing profile shows suggestions/available-profiles instead of a generic error. Use a typed ProfileError for proxy start on an unknown profile (drops the irrelevant install hint). api create: honor --yes for the OpenRouter model browser, show ccs-codex/ccsx aliases for --target codex, and allow ANTHROPIC_EXTRA_MODELS on import.
This commit is contained in:
1 parent
191396149f
commit
9258aed1ff
4 files changed
+68
-34
No files matched your search
@@ -23,6 +23,8 @@ const ALLOWED_ANTHROPIC_ENV_KEYS = new Set<string>([
|
||||
'ANTHROPIC_BASE_URL',
|
||||
'ANTHROPIC_AUTH_TOKEN',
|
||||
'ANTHROPIC_API_KEY',
|
||||
// Written by profile-writer when --extra-models is supplied
|
||||
'ANTHROPIC_EXTRA_MODELS',
|
||||
...MODEL_ENV_KEYS,
|
||||
]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user