cc-hooks-ts 2.1.157 → 2.1.163

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 CHANGED
@@ -175,7 +175,7 @@ declare const HookInputSchemas: {
175
175
  readonly transcript_path: v.StringSchema<undefined>;
176
176
  readonly hook_event_name: v.LiteralSchema<"StopFailure", undefined>;
177
177
  } & {
178
- error: v.PicklistSchema<["authentication_failed", "oauth_org_not_allowed", "billing_error", "rate_limit", "invalid_request", "model_not_found", "server_error", "unknown", "max_output_tokens"], undefined>;
178
+ error: v.PicklistSchema<["authentication_failed", "oauth_org_not_allowed", "billing_error", "rate_limit", "overloaded", "invalid_request", "model_not_found", "server_error", "unknown", "max_output_tokens"], undefined>;
179
179
  error_details: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
180
180
  last_assistant_message: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
181
181
  }, undefined>;
@@ -961,6 +961,10 @@ interface StopHookOutput extends CommonHookOutputs {
961
961
  * Reason for the decision.
962
962
  */
963
963
  reason?: string;
964
+ hookSpecificOutput?: {
965
+ hookEventName: "Stop";
966
+ additionalContext?: string;
967
+ };
964
968
  }
965
969
  interface SubagentStartHookOutput extends CommonHookOutputs {
966
970
  hookSpecificOutput?: {
@@ -983,6 +987,10 @@ interface SubagentStopHookOutput extends CommonHookOutputs {
983
987
  * Reason for the decision.
984
988
  */
985
989
  reason?: string;
990
+ hookSpecificOutput?: {
991
+ hookEventName: "SubagentStop";
992
+ additionalContext?: string;
993
+ };
986
994
  }
987
995
  interface SessionStartHookOutput extends CommonHookOutputs {
988
996
  hookSpecificOutput?: {
package/dist/index.mjs CHANGED
@@ -251,6 +251,7 @@ const HookInputSchemas = {
251
251
  "oauth_org_not_allowed",
252
252
  "billing_error",
253
253
  "rate_limit",
254
+ "overloaded",
254
255
  "invalid_request",
255
256
  "model_not_found",
256
257
  "server_error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-hooks-ts",
3
- "version": "2.1.157",
3
+ "version": "2.1.163",
4
4
  "description": "Write claude code hooks with type safety",
5
5
  "keywords": [
6
6
  "anthropic",
@@ -39,23 +39,23 @@
39
39
  "registry": "https://registry.npmjs.org/"
40
40
  },
41
41
  "dependencies": {
42
- "@anthropic-ai/claude-agent-sdk": "0.3.157",
42
+ "@anthropic-ai/claude-agent-sdk": "0.3.163",
43
43
  "get-stdin": "10.0.0",
44
44
  "valibot": "1.4.1"
45
45
  },
46
46
  "devDependencies": {
47
- "@arethetypeswrong/core": "0.18.2",
47
+ "@arethetypeswrong/core": "0.18.3",
48
48
  "@types/node": "25.9.1",
49
- "@typescript/native-preview": "7.0.0-dev.20260527.2",
49
+ "@typescript/native-preview": "7.0.0-dev.20260601.1",
50
50
  "@virtual-live-lab/tsconfig": "2.1.23",
51
51
  "pkg-pr-new": "0.0.75",
52
52
  "publint": "0.3.21",
53
- "release-it": "20.0.1",
53
+ "release-it": "20.2.0",
54
54
  "release-it-pnpm": "4.6.6",
55
- "type-fest": "5.6.0",
55
+ "type-fest": "5.7.0",
56
56
  "typescript": "6.0.3",
57
57
  "unplugin-unused": "0.5.7",
58
- "vite-plus": "0.1.23"
58
+ "vite-plus": "0.1.24"
59
59
  },
60
60
  "engines": {
61
61
  "node": "^20.12.0 || ^22.0.0 || >=24.0.0"