feat(agents): add --targets and --link-mode for non-interactive IDE wiring#158
Conversation
|
Warning Review limit reached
More reviews will be available in 26 minutes and 29 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (13)
✨ 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 |
🦋 Changeset detectedLatest commit: 051826e The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
38c465d to
386c325
Compare
Expose --targets and --link-mode on codemap agents init for CI and sandboxes. Combine with --mcp to write MCP configs only for selected integrations. Side-effect paths compose targets with --git-hooks or --mcp on existing .agents/ without --force.
386c325 to
051826e
Compare
Summary
codemap agents init --targets <ids>for non-interactive IDE wiring (Cursor rules, Copilot instructions, etc.) without--interactive.--link-mode symlink|copywhen targets include rule-mirror integrations.--targetswith--mcpto write MCP config only for selected integrations (e.g.cursor,copilotwithout Continue/Cline/root.mcp.jsonunlessclaude-mdis targeted).--interactive; unknown ids fail fast with the valid list.Motivation
Hosted-checkout and CI/sandbox flows need to refresh committed
.cursor/+.vscode/MCP without blasting everydefaultOnMcpregistry entry. Core plumbing already existed inrunAgentsInit; this PR exposes it on the CLI.Test plan
bun test src/cli.test.ts src/cli/cmd-agents.test.ts src/agents-init-targets.test.tscodemap agents init --force --targets cursor,copilot --mcpwrites only Cursor + VS Code MCP