cc-hooks-ts 2.1.2 → 2.1.9
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/dist/index.d.mts +2 -0
- package/dist/index.mjs +1 -0
- package/package.json +9 -9
package/dist/index.d.mts
CHANGED
|
@@ -114,6 +114,7 @@ declare const HookInputSchemas: {
|
|
|
114
114
|
readonly hook_event_name: v.LiteralSchema<"SessionStart", undefined>;
|
|
115
115
|
} & {
|
|
116
116
|
agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
117
|
+
model: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
117
118
|
source: v.PicklistSchema<["startup", "resume", "clear", "compact"], undefined>;
|
|
118
119
|
}, undefined>;
|
|
119
120
|
readonly SessionEnd: v.ObjectSchema<{
|
|
@@ -403,6 +404,7 @@ interface PreToolUseHookOutput extends CommonHookOutputs {
|
|
|
403
404
|
permissionDecision?: "allow" | "ask" | "deny";
|
|
404
405
|
permissionDecisionReason?: string;
|
|
405
406
|
updatedInput?: Record<string, unknown>;
|
|
407
|
+
additionalContext?: string;
|
|
406
408
|
};
|
|
407
409
|
}
|
|
408
410
|
/**
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cc-hooks-ts",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Write claude code hooks with type safety",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -43,26 +43,26 @@
|
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@arethetypeswrong/core": "0.18.2",
|
|
46
|
-
"@types/node": "25.0.
|
|
46
|
+
"@types/node": "25.0.6",
|
|
47
47
|
"@typescript/native-preview": "^7.0.0-dev.20251108.1",
|
|
48
48
|
"@virtual-live-lab/eslint-config": "2.3.1",
|
|
49
49
|
"@virtual-live-lab/tsconfig": "2.1.21",
|
|
50
50
|
"eslint": "9.39.2",
|
|
51
51
|
"eslint-plugin-import-access": "3.1.0",
|
|
52
|
-
"oxfmt": "0.
|
|
52
|
+
"oxfmt": "0.24.0",
|
|
53
53
|
"pkg-pr-new": "0.0.62",
|
|
54
54
|
"publint": "0.3.16",
|
|
55
|
-
"release-it": "19.2.
|
|
55
|
+
"release-it": "19.2.3",
|
|
56
56
|
"release-it-pnpm": "4.6.6",
|
|
57
|
-
"tsdown": "0.
|
|
58
|
-
"type-fest": "5.
|
|
57
|
+
"tsdown": "0.19.0",
|
|
58
|
+
"type-fest": "5.4.0",
|
|
59
59
|
"typescript": "5.9.3",
|
|
60
|
-
"typescript-eslint": "8.
|
|
60
|
+
"typescript-eslint": "8.53.0",
|
|
61
61
|
"unplugin-unused": "0.5.6",
|
|
62
|
-
"vitest": "4.0.
|
|
62
|
+
"vitest": "4.0.17"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@anthropic-ai/claude-agent-sdk": "0.2.
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk": "0.2.9",
|
|
66
66
|
"valibot": "^1.1.0"
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|