feat: add Morph API key to setup wizard#146
Conversation
- Add Morph API key prompt to prompt_api_keys() - Write MORPH_API_KEY to .env via generate_env_file() - Needed by: morph-apply, morph-search, implement_task skills Ref parcadei#141
|
PR author is not in the allowed authors list. |
📝 WalkthroughWalkthroughThe setup wizard script now collects an additional "morph" API key during the API keys prompt and writes the corresponding MORPH_API_KEY to the environment file when present. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related issues
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
opc/scripts/setup/wizard.py (1)
623-623:⚠️ Potential issue | 🟡 MinorMissing
"morph"key in the defaultapi_keysdict when the user skips API key configuration.When the user declines to configure API keys, the fallback dict omits
"morph", making its shape inconsistent withprompt_api_keys(). Not a runtime bug (.get("morph")returnsNone), but worth keeping consistent.Proposed fix
- api_keys = {"perplexity": "", "nia": "", "braintrust": ""} + api_keys = {"perplexity": "", "nia": "", "braintrust": "", "morph": ""}
Summary
Add Morph API key prompt to the setup wizard's
prompt_api_keys()function.Currently the wizard prompts for Perplexity, Nia, and Braintrust but skips Morph, which is needed by 3 skills.
Changes
prompt_api_keys()— addMorph API key (fast code editing/search)promptgenerate_env_file()— writeMORPH_API_KEYto.envSkills unlocked
morph-applymorph-searchimplement_taskAPI key from: https://www.morphllm.com
Test plan
MORPH_API_KEY=xxxappears in.envMORPH_API_KEYline in.envRef #141
Summary by CodeRabbit