@goodfoot/claude-code-hooks 1.2.6 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -19
- package/dist/cli.js +1 -0
- package/package.json +2 -4
package/README.md
CHANGED
|
@@ -107,25 +107,27 @@ npm test # Run tests
|
|
|
107
107
|
|
|
108
108
|
### Available Hook Types
|
|
109
109
|
|
|
110
|
-
The `--hooks` argument accepts a comma-separated list of any of these
|
|
111
|
-
|
|
112
|
-
| Hook Type | Description
|
|
113
|
-
| -------------------- |
|
|
114
|
-
| `PreToolUse` | Before a tool executes (allow/deny/modify)
|
|
115
|
-
| `PostToolUse` | After a tool completes successfully
|
|
116
|
-
| `PostToolUseFailure` | After a tool fails
|
|
117
|
-
| `Notification` | When Claude requests permissions
|
|
118
|
-
| `UserPromptSubmit` | When user submits a prompt
|
|
119
|
-
| `SessionStart` | When session begins
|
|
120
|
-
| `SessionEnd` | When session terminates
|
|
121
|
-
| `Stop` | After main agent finishes
|
|
122
|
-
| `StopFailure` | When session stops due to an error
|
|
123
|
-
| `SubagentStart` | When an Agent tool starts
|
|
124
|
-
| `SubagentStop` | When an Agent tool completes
|
|
125
|
-
| `PreCompact` | Before context compaction
|
|
126
|
-
| `PostCompact` | After context compaction completes
|
|
127
|
-
| `PermissionRequest` | When permission is requested
|
|
128
|
-
| `Setup` | On init, install, or update events
|
|
110
|
+
The `--hooks` argument accepts a comma-separated list of any of these 17 event types:
|
|
111
|
+
|
|
112
|
+
| Hook Type | Description |
|
|
113
|
+
| -------------------- | ------------------------------------------------------------------------ |
|
|
114
|
+
| `PreToolUse` | Before a tool executes (allow/deny/modify) |
|
|
115
|
+
| `PostToolUse` | After a tool completes successfully |
|
|
116
|
+
| `PostToolUseFailure` | After a tool fails |
|
|
117
|
+
| `Notification` | When Claude requests permissions |
|
|
118
|
+
| `UserPromptSubmit` | When user submits a prompt |
|
|
119
|
+
| `SessionStart` | When session begins |
|
|
120
|
+
| `SessionEnd` | When session terminates |
|
|
121
|
+
| `Stop` | After main agent finishes |
|
|
122
|
+
| `StopFailure` | When session stops due to an error |
|
|
123
|
+
| `SubagentStart` | When an Agent tool starts |
|
|
124
|
+
| `SubagentStop` | When an Agent tool completes |
|
|
125
|
+
| `PreCompact` | Before context compaction |
|
|
126
|
+
| `PostCompact` | After context compaction completes |
|
|
127
|
+
| `PermissionRequest` | When permission is requested |
|
|
128
|
+
| `Setup` | On init, install, or update events |
|
|
129
|
+
| `CwdChanged` | When Claude Code's working directory changes; return `watchPaths` to register paths for `FileChanged` |
|
|
130
|
+
| `FileChanged` | When a watched file changes on disk (`change`, `add`, or `unlink`); return `watchPaths` to update the watched set |
|
|
129
131
|
|
|
130
132
|
Hook names are case-insensitive: `stop`, `Stop`, and `STOP` all work.
|
|
131
133
|
|
package/dist/cli.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goodfoot/claude-code-hooks",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7",
|
|
4
4
|
"description": "Type-safe Claude Code hooks library with camelCase types and output builders",
|
|
5
5
|
"homepage": "https://github.com/goodfoot-io/marketplace/tree/main/packages/claude-code-hooks",
|
|
6
6
|
"repository": {
|
|
@@ -27,9 +27,7 @@
|
|
|
27
27
|
"release": "bash ../../scripts/release-package.sh claude-code-hooks",
|
|
28
28
|
"release:dry-run": "bash ../../scripts/release-package.sh claude-code-hooks --dry-run",
|
|
29
29
|
"snapshot:sdk-types": "tsx scripts/snapshot-sdk-types.ts",
|
|
30
|
-
"upgrade:deps": "./scripts/upgrade-deps.sh"
|
|
31
|
-
"update:docs": "./scripts/update-docs.sh",
|
|
32
|
-
"update:docs:dry-run": "./scripts/update-docs.sh --dry-run"
|
|
30
|
+
"upgrade:deps": "./scripts/upgrade-deps.sh"
|
|
33
31
|
},
|
|
34
32
|
"exports": {
|
|
35
33
|
".": {
|