feat(watch): WSL watch policy and git hook auto-sync#127
Conversation
Disable the file watcher on WSL2 /mnt/* mounts unless CODEMAP_FORCE_WATCH=1, with stderr pointing at git-hook fallback. Add codemap agents init --git-hooks for non-blocking background incremental index on post-commit/merge/checkout.
🦋 Changeset detectedLatest commit: 9636eac 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
Your plan includes 1 review of capacity. Refill in 37 minutes and 21 seconds. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more review capacity refills, 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 have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (15)
✨ 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 |
Combine WSL watch / git-hooks docs with CODEMAP_MCP_TOOLS allowlist.
Summary
/mnt/*mounts by default (unlessCODEMAP_FORCE_WATCH=1), with stderr guidance toward git-hook fallbackcodemap agents init --git-hooks/--no-git-hooksto install marker-basedpost-commit,post-merge, andpost-checkouthooks that run a non-blocking background incremental indexcodemap watch,codemap serve, and MCP server startupImplements P0 items from
docs/plans/wsl-watch-policy.mdanddocs/plans/git-hook-auto-sync.md(stacked PR 2 after MCP surface work).Test plan
bun test src/application/watch-policy.test.tsbun test src/application/git-hooks.test.ts/mnt/c/..., confirm watcher disabled + stderr messagecodemap agents init --git-hooksinstalls hooks; commit triggers background index