🎯 Changes#
Stacked on #267. Addresses the bounded parser-sharing result of #239.
Generate the standalone runner parser from the tested, self-contained parseIntentInvocation function. Remove the duplicated escaped regex and parser body from the installer template. No new runtime asset, dependency, or framework.
Investigation Outcome#
- Invocation parsing has one source. Edit-tool sets and deny text already come from the policy module.
- Event adaptation and observation-file handling remain in the standalone runner. The pure policy API takes in-memory observations; the installed runner owns stdin, persistence, and process output.
- Keep each agent output format and existing user/project installation behavior. Do not widen this into command authority work from #229.
- Preserve fail-open catalog behavior: a failed session catalog still permits subsequent edits. Observing a command does not prove it succeeded or that its guidance was applied. No new success/failure state is introduced.
The generation contract is that the parser stays self-contained after bundling. A packed-CLI test installs and copies the emitted scripts, then checks denial before a command observation and allowance afterward. The three-agent runtime matrix covers supported command runners and non-command exclusions.
Verification#
44 hook-policy, installed-runner, and packed-release tests passed. Build, typecheck, focused ESLint, Knip, Prettier, and git diff --check passed. Guide and dependency files are unchanged.
✅ Checklist#
🚀 Release Impact#
Warning
Review limit reached#
Next included review available in 51 minutes.
Check out review usage here.
View limit details
Limit details: You’ve used all 2 included reviews currently available.
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Learn how review limits work.
Review configuration:
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Advanced
Run ID:
a14b9916-c2bc-4b11-b01d-46f9e343df87📥 Commits
Reviewing files that changed from the base of the PR and between 68ad8e3625ccd9bd003738ff04a17bf5c2be3a70 and a17880bdfb184ddb33a7c8656c4f4c93e9b01e8f.
📒 Files selected for processing (5)
.changeset/reuse-hook-parser.mdpackages/intent/src/hooks/install.tspackages/intent/src/hooks/policy.tspackages/intent/tests/hooks-install.test.tspackages/intent/tests/integration/packed-release.test.tsThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share