-
Notifications
You must be signed in to change notification settings - Fork 119
ci: add aireceipts auto-attach hook (two-file kit) #2033
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,11 +8,32 @@ | |
| "mcpServers": { | ||
| "playwright": { | ||
| "command": "npx", | ||
| "args": ["@playwright/mcp@latest"] | ||
| "args": [ | ||
| "@playwright/mcp@latest" | ||
| ] | ||
| }, | ||
| "azure": { | ||
| "command": "npx", | ||
| "args": ["-y", "@azure/mcp@latest", "server", "start"] | ||
| "args": [ | ||
| "-y", | ||
| "@azure/mcp@latest", | ||
| "server", | ||
| "start" | ||
| ] | ||
| } | ||
| }, | ||
| "hooks": { | ||
| "PreToolUse": [ | ||
| { | ||
| "matcher": "Bash", | ||
| "hooks": [ | ||
| { | ||
| "type": "command", | ||
| "command": "npx -y aireceipts-cli@latest hook pre-push", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This committed project hook executes Useful? React with 👍 / 👎. |
||
| "timeout": 60 | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Claude Code sessions for this repo, the
PreToolUsegroup matches every Bash tool call, and because this handler has noifguard, unrelated commands such as tests,rg, orcatstill spawnnpx -y aireceipts-cli@latestand wait until it exits or hits the 10s timeout. Claude Code hook resolution supports narrowing Bash handlers with anifpattern to avoid this process-spawn overhead, so this should be filtered to the git-push commands the receipt hook actually needs; otherwise normal terminal work is slowed and noisy whenever npm is cold, offline, or cannot resolve the package.Useful? React with 👍 / 👎.