feat(agents): PM-aware MCP spawn via agents init --mcp#154
Conversation
Resolve codemap CLI invocation from the project package manager so MCP config works when codemap is a devDependency, not only on PATH.
|
Warning Review limit reached
More reviews will be available in 35 minutes and 15 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 (32)
✨ 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: 6f9b0cd 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 |
Address PR review: absolute project root for detect-pm when the Action stage cd's elsewhere; TS↔mjs sync test; docs/plan lifecycle; test gaps.
Wire Action helper and TS↔mjs sync tests into test:scripts, lint-staged, and the CI test job; harden working-directory against .. segments.
Broaden TS↔mjs sync coverage, add pnpm e2e for agents init --mcp, dedupe agent validation in detect-pm, and align changeset wording with CLI prefix.
Extract Action working-directory resolution to a tested shell helper, broaden resolver/sync/e2e coverage, map detector yarn+berry to yarn@berry for dlx, and align consumer docs/CLI copy.
Summary
codemap agents init --mcpresolves PM-aware spawn commands (npx codemap,pnpm exec codemap,yarn exec codemap,bunx codemap, or dlx@stainless-code/codemap@latest) instead of assuming globalcodemapon PATH.src/codemap-invocation.ts+scripts/codemap-invocation.mjs) also powers Action PM detection;action.ymlcopies both scripts into the Action stage.Test plan
bun run checkbun test src/codemap-invocation.test.ts src/agents-init-mcp.test.ts src/agents-init.test.tsbun run test:scriptscontinue-on-error: trueuntil Action v1.0.0)