cc-hooks-ts 2.1.121 → 2.1.128
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 +5 -1
- package/dist/index.mjs +1 -0
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -131,7 +131,7 @@ declare const HookInputSchemas: {
|
|
|
131
131
|
readonly transcript_path: v.StringSchema<undefined>;
|
|
132
132
|
readonly hook_event_name: v.LiteralSchema<"StopFailure", undefined>;
|
|
133
133
|
} & {
|
|
134
|
-
error: v.PicklistSchema<["authentication_failed", "billing_error", "rate_limit", "invalid_request", "server_error", "unknown", "max_output_tokens"], undefined>;
|
|
134
|
+
error: v.PicklistSchema<["authentication_failed", "oauth_org_not_allowed", "billing_error", "rate_limit", "invalid_request", "server_error", "unknown", "max_output_tokens"], undefined>;
|
|
135
135
|
error_details: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
136
136
|
last_assistant_message: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
137
137
|
}, undefined>;
|
|
@@ -780,6 +780,10 @@ interface UserPromptSubmitHookOutput extends CommonHookOutputs {
|
|
|
780
780
|
*/
|
|
781
781
|
additionalContext?: string;
|
|
782
782
|
sessionTitle?: string;
|
|
783
|
+
/**
|
|
784
|
+
* When decision is "block", omit the original prompt from the block message.
|
|
785
|
+
*/
|
|
786
|
+
suppressOriginalPrompt?: boolean;
|
|
783
787
|
};
|
|
784
788
|
reason?: string;
|
|
785
789
|
}
|
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.128",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Write claude code hooks with type safety",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"vitest": "4.1.2"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@anthropic-ai/claude-agent-sdk": "0.2.
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk": "0.2.128",
|
|
66
66
|
"get-stdin": "10.0.0",
|
|
67
|
-
"valibot": "^1.
|
|
67
|
+
"valibot": "^1.3.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"check": "pnpm run format:check && pnpm run lint && pnpm run typecheck && pnpm run test && pnpm run build",
|