feat(agents): safer init re-runs for mirrors, markers, and MCP merge#155
Conversation
Init must not clobber consumer-owned files: bundled-only IDE mirrors, codemap-init:managed provenance before --force overwrite, and reject invalid MCP map shapes instead of resetting them.
🦋 Changeset detectedLatest commit: 9dccc7a 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 |
|
Warning Review limit reached
More reviews will be available in 3 minutes and 2 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 (12)
✨ 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 |
… isolation Migrate pre-marker copy-mode mirrors via codemap-pointer-version heuristic; drop dead force on MCP upsert helpers; isolate e2e MCP from Windsurf homedir; gitignore .tmp and document mirror provenance in agents.md.
Document legacy mirror heuristic and symlink copy-mode marker behavior; extend dummy-corpus and unit coverage for legacy migration and symlink refusal.
Summary
codemap agents initno longer mirrors your whole.agents/tree — IDE wiring syncs only bundled template paths (rules/codemap.md,skills/codemap/SKILL.md).<!-- codemap-init:managed -->provenance —--forceoverwrites mirror files only when that marker is present; user-owned files at the same path are left alone (error instead of clobber).--force— same policy as unparseable JSON; init never resetsmcpServers/serversmaps.docs/agents.mdupdated;scripts/agents-init-dummy-corpus.test.mjsexercises all paths on a copy offixtures/minimal.Test plan
bun test src/agents-init.test.ts src/agents-init-mcp.test.ts src/cli.test.tsbun test scripts/agents-init-dummy-corpus.test.mjsCODEMAP_ROOT=fixtures/minimal bun scripts/query-golden.ts