1
0
Fork 0
mirror of https://github.com/imjasonh/cnotes synced 2026-07-18 23:01:31 +00:00

Only register PostToolUse hook during installation

Since cnotes only handles PostToolUse events (and ignores all others),
update the installation to only register for that specific event rather
than all available hook events. This reduces unnecessary hook calls.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jason Hall 2025-07-21 16:59:15 -04:00
parent caa1834d58
commit 01ba9278ba
Failed to extract signature
3 changed files with 29 additions and 105 deletions

View file

@ -1,16 +1,5 @@
{
"hooks": {
"Notification": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "/Users/jason/go/bin/cnotes"
}
]
}
],
"PostToolUse": [
{
"matcher": ".*",
@ -21,61 +10,6 @@
}
]
}
],
"PreCompact": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "/Users/jason/go/bin/cnotes"
}
]
}
],
"PreToolUse": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "/Users/jason/go/bin/cnotes"
}
]
}
],
"Stop": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "/Users/jason/go/bin/cnotes"
}
]
}
],
"SubagentStop": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "/Users/jason/go/bin/cnotes"
}
]
}
],
"UserPromptSubmit": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "/Users/jason/go/bin/cnotes"
}
]
}
]
}
}