feat(artifacts): add language and instructions to generate_mind_map#252
feat(artifacts): add language and instructions to generate_mind_map#252
Conversation
…d_map generate_mind_map() previously hardcoded empty strings for language and instructions in the RPC payload, making mind maps always generate in English with no custom instructions. This adds language and instructions parameters consistent with every other artifact generation method. Closes #250 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe PR extends mind map generation to accept Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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.
Code Review
This pull request adds support for specifying a language and custom instructions when generating mind maps. The generate_mind_map function in both the API and CLI has been updated to include these parameters, and a new unit test verifies that they are correctly included in the RPC payload. I have no feedback to provide.
Summary
languageandinstructionsparameters togenerate_mind_map()API method, consistent with all other artifact generation methods--languageand--instructionsCLI options togenerate mind-mapcommand_generate()closure pattern to deduplicate the json/non-json branchesCloses #250
Test plan
ruff format,ruff check), type checking (mypy) clean🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
--languageoption to the mind-map generation command, allowing you to specify the output language for your generated mind maps--instructionsoption to the mind-map generation command, allowing you to provide custom instructions to guide and customize the mind-map generation process