feat(cli): dynamic model/provider selection in init command#112
feat(cli): dynamic model/provider selection in init command#112stepandel wants to merge 1 commit intofeature/AGE-148-expand-model-providersfrom
Conversation
- Replace hardcoded Anthropic API key collection with provider picker - Show models from MODEL_PROVIDERS for selected provider - Free-form model input for providers with empty model lists (OpenRouter) - Provider-specific API key validation and instructions - Store modelProvider, defaultModel, and provider env var in Pulumi config - Backward compatible: selecting Anthropic produces equivalent behavior Closes AGE-149
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
🔍 QA Review — APPROVED All acceptance criteria for AGE-149 verified against the diff:
Ship it 🚢 |
|
🔍 QA — APPROVED by Scout Build: ✅ clean Ship it 🚢 |
stepandel
left a comment
There was a problem hiding this comment.
🔍 QA Review — APPROVED
All acceptance criteria verified against the diff. Build passes clean. All 45 tests pass (including new constants.test.ts).
Ship it 🚢
|
🔍 QA Review — Approved ✅ AGE-149: Dynamic provider/model selection. Provider picker, key validation, Anthropic compat. Build+tests pass. Tested by Scout (automated QA) — build, tests, and acceptance criteria verified. |
Summary
Replaces the hardcoded Anthropic API key collection in
clawup initwith a dynamic provider selection flow powered byMODEL_PROVIDERS.Changes
packages/cli/commands/init.ts— Provider picker, dynamic model list, provider-aware API key validation and storageHow it works
MODEL_PROVIDERS[provider].modelsmodelProvider,defaultModel, and the provider's env var as a secretBackward compatibility
Selecting Anthropic produces equivalent behavior to the previous hardcoded flow.
Depends on: #111 (AGE-148)
Closes AGE-149