cc-hooks-ts 2.1.152 → 2.1.161

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
@@ -15,14 +15,14 @@ declare const HookInputSchemas: {
15
15
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
16
16
  readonly cwd: v.StringSchema<undefined>;
17
17
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
18
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
18
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
19
19
  }, undefined>, undefined>;
20
20
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
21
21
  readonly session_id: v.StringSchema<undefined>;
22
22
  readonly transcript_path: v.StringSchema<undefined>;
23
23
  readonly hook_event_name: v.LiteralSchema<"PreToolUse", undefined>;
24
24
  } & {
25
- tool_name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<string>, undefined>]>;
25
+ tool_name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<string>, undefined>]>;
26
26
  tool_input: v.UnknownSchema;
27
27
  tool_use_id: v.StringSchema<undefined>;
28
28
  }, undefined>;
@@ -31,14 +31,14 @@ declare const HookInputSchemas: {
31
31
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
32
32
  readonly cwd: v.StringSchema<undefined>;
33
33
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
34
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
34
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
35
35
  }, undefined>, undefined>;
36
36
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
37
37
  readonly session_id: v.StringSchema<undefined>;
38
38
  readonly transcript_path: v.StringSchema<undefined>;
39
39
  readonly hook_event_name: v.LiteralSchema<"PostToolUse", undefined>;
40
40
  } & {
41
- tool_name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<string>, undefined>]>;
41
+ tool_name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<string>, undefined>]>;
42
42
  duration_ms: v.ExactOptionalSchema<v.NumberSchema<undefined>, undefined>;
43
43
  tool_input: v.UnknownSchema;
44
44
  tool_response: v.UnknownSchema;
@@ -49,14 +49,14 @@ declare const HookInputSchemas: {
49
49
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
50
50
  readonly cwd: v.StringSchema<undefined>;
51
51
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
52
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
52
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
53
53
  }, undefined>, undefined>;
54
54
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
55
55
  readonly session_id: v.StringSchema<undefined>;
56
56
  readonly transcript_path: v.StringSchema<undefined>;
57
57
  readonly hook_event_name: v.LiteralSchema<"PostToolUseFailure", undefined>;
58
58
  } & {
59
- tool_name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<string>, undefined>]>;
59
+ tool_name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<string>, undefined>]>;
60
60
  duration_ms: v.ExactOptionalSchema<v.NumberSchema<undefined>, undefined>;
61
61
  error: v.StringSchema<undefined>;
62
62
  is_interrupt: v.ExactOptionalSchema<v.BooleanSchema<undefined>, undefined>;
@@ -68,7 +68,7 @@ declare const HookInputSchemas: {
68
68
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
69
69
  readonly cwd: v.StringSchema<undefined>;
70
70
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
71
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
71
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
72
72
  }, undefined>, undefined>;
73
73
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
74
74
  readonly session_id: v.StringSchema<undefined>;
@@ -77,7 +77,7 @@ declare const HookInputSchemas: {
77
77
  } & {
78
78
  tool_calls: v.ArraySchema<v.ObjectSchema<{
79
79
  readonly tool_input: v.UnknownSchema;
80
- readonly tool_name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<string>, undefined>]>;
80
+ readonly tool_name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<string>, undefined>]>;
81
81
  readonly tool_response: v.ExactOptionalSchema<v.UnknownSchema, undefined>;
82
82
  readonly tool_use_id: v.StringSchema<undefined>;
83
83
  }, undefined>, undefined>;
@@ -87,7 +87,7 @@ declare const HookInputSchemas: {
87
87
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
88
88
  readonly cwd: v.StringSchema<undefined>;
89
89
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
90
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
90
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
91
91
  }, undefined>, undefined>;
92
92
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
93
93
  readonly session_id: v.StringSchema<undefined>;
@@ -103,7 +103,7 @@ declare const HookInputSchemas: {
103
103
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
104
104
  readonly cwd: v.StringSchema<undefined>;
105
105
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
106
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
106
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
107
107
  }, undefined>, undefined>;
108
108
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
109
109
  readonly session_id: v.StringSchema<undefined>;
@@ -118,7 +118,7 @@ declare const HookInputSchemas: {
118
118
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
119
119
  readonly cwd: v.StringSchema<undefined>;
120
120
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
121
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
121
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
122
122
  }, undefined>, undefined>;
123
123
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
124
124
  readonly session_id: v.StringSchema<undefined>;
@@ -136,7 +136,7 @@ declare const HookInputSchemas: {
136
136
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
137
137
  readonly cwd: v.StringSchema<undefined>;
138
138
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
139
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
139
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
140
140
  }, undefined>, undefined>;
141
141
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
142
142
  readonly session_id: v.StringSchema<undefined>;
@@ -168,14 +168,14 @@ declare const HookInputSchemas: {
168
168
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
169
169
  readonly cwd: v.StringSchema<undefined>;
170
170
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
171
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
171
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
172
172
  }, undefined>, undefined>;
173
173
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
174
174
  readonly session_id: v.StringSchema<undefined>;
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>;
@@ -184,7 +184,7 @@ declare const HookInputSchemas: {
184
184
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
185
185
  readonly cwd: v.StringSchema<undefined>;
186
186
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
187
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
187
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
188
188
  }, undefined>, undefined>;
189
189
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
190
190
  readonly session_id: v.StringSchema<undefined>;
@@ -199,7 +199,7 @@ declare const HookInputSchemas: {
199
199
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
200
200
  readonly cwd: v.StringSchema<undefined>;
201
201
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
202
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
202
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
203
203
  }, undefined>, undefined>;
204
204
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
205
205
  readonly session_id: v.StringSchema<undefined>;
@@ -235,7 +235,7 @@ declare const HookInputSchemas: {
235
235
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
236
236
  readonly cwd: v.StringSchema<undefined>;
237
237
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
238
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
238
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
239
239
  }, undefined>, undefined>;
240
240
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
241
241
  readonly session_id: v.StringSchema<undefined>;
@@ -250,7 +250,7 @@ declare const HookInputSchemas: {
250
250
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
251
251
  readonly cwd: v.StringSchema<undefined>;
252
252
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
253
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
253
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
254
254
  }, undefined>, undefined>;
255
255
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
256
256
  readonly session_id: v.StringSchema<undefined>;
@@ -265,7 +265,7 @@ declare const HookInputSchemas: {
265
265
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
266
266
  readonly cwd: v.StringSchema<undefined>;
267
267
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
268
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
268
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
269
269
  }, undefined>, undefined>;
270
270
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
271
271
  readonly session_id: v.StringSchema<undefined>;
@@ -282,7 +282,7 @@ declare const HookInputSchemas: {
282
282
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
283
283
  readonly cwd: v.StringSchema<undefined>;
284
284
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
285
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
285
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
286
286
  }, undefined>, undefined>;
287
287
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
288
288
  readonly session_id: v.StringSchema<undefined>;
@@ -296,7 +296,7 @@ declare const HookInputSchemas: {
296
296
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
297
297
  readonly cwd: v.StringSchema<undefined>;
298
298
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
299
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
299
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
300
300
  }, undefined>, undefined>;
301
301
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
302
302
  readonly session_id: v.StringSchema<undefined>;
@@ -348,7 +348,7 @@ declare const HookInputSchemas: {
348
348
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
349
349
  readonly cwd: v.StringSchema<undefined>;
350
350
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
351
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
351
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
352
352
  }, undefined>, undefined>;
353
353
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
354
354
  readonly session_id: v.StringSchema<undefined>;
@@ -365,7 +365,7 @@ declare const HookInputSchemas: {
365
365
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
366
366
  readonly cwd: v.StringSchema<undefined>;
367
367
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
368
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
368
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
369
369
  }, undefined>, undefined>;
370
370
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
371
371
  readonly session_id: v.StringSchema<undefined>;
@@ -379,7 +379,7 @@ declare const HookInputSchemas: {
379
379
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
380
380
  readonly cwd: v.StringSchema<undefined>;
381
381
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
382
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
382
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
383
383
  }, undefined>, undefined>;
384
384
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
385
385
  readonly session_id: v.StringSchema<undefined>;
@@ -394,7 +394,7 @@ declare const HookInputSchemas: {
394
394
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
395
395
  readonly cwd: v.StringSchema<undefined>;
396
396
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
397
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
397
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
398
398
  }, undefined>, undefined>;
399
399
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
400
400
  readonly session_id: v.StringSchema<undefined>;
@@ -412,7 +412,7 @@ declare const HookInputSchemas: {
412
412
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
413
413
  readonly cwd: v.StringSchema<undefined>;
414
414
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
415
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
415
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
416
416
  }, undefined>, undefined>;
417
417
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
418
418
  readonly session_id: v.StringSchema<undefined>;
@@ -430,7 +430,7 @@ declare const HookInputSchemas: {
430
430
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
431
431
  readonly cwd: v.StringSchema<undefined>;
432
432
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
433
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
433
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
434
434
  }, undefined>, undefined>;
435
435
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
436
436
  readonly session_id: v.StringSchema<undefined>;
@@ -445,7 +445,7 @@ declare const HookInputSchemas: {
445
445
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
446
446
  readonly cwd: v.StringSchema<undefined>;
447
447
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
448
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
448
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
449
449
  }, undefined>, undefined>;
450
450
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
451
451
  readonly session_id: v.StringSchema<undefined>;
@@ -459,7 +459,7 @@ declare const HookInputSchemas: {
459
459
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
460
460
  readonly cwd: v.StringSchema<undefined>;
461
461
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
462
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
462
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
463
463
  }, undefined>, undefined>;
464
464
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
465
465
  readonly session_id: v.StringSchema<undefined>;
@@ -473,7 +473,7 @@ declare const HookInputSchemas: {
473
473
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
474
474
  readonly cwd: v.StringSchema<undefined>;
475
475
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
476
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
476
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
477
477
  }, undefined>, undefined>;
478
478
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
479
479
  readonly session_id: v.StringSchema<undefined>;
@@ -492,7 +492,7 @@ declare const HookInputSchemas: {
492
492
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
493
493
  readonly cwd: v.StringSchema<undefined>;
494
494
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
495
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
495
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
496
496
  }, undefined>, undefined>;
497
497
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
498
498
  readonly session_id: v.StringSchema<undefined>;
@@ -510,7 +510,7 @@ declare const HookInputSchemas: {
510
510
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
511
511
  readonly cwd: v.StringSchema<undefined>;
512
512
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
513
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
513
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
514
514
  }, undefined>, undefined>;
515
515
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
516
516
  readonly session_id: v.StringSchema<undefined>;
@@ -529,7 +529,7 @@ declare const HookInputSchemas: {
529
529
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
530
530
  readonly cwd: v.StringSchema<undefined>;
531
531
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
532
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
532
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
533
533
  }, undefined>, undefined>;
534
534
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
535
535
  readonly session_id: v.StringSchema<undefined>;
@@ -544,7 +544,7 @@ declare const HookInputSchemas: {
544
544
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
545
545
  readonly cwd: v.StringSchema<undefined>;
546
546
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
547
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
547
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
548
548
  }, undefined>, undefined>;
549
549
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
550
550
  readonly session_id: v.StringSchema<undefined>;
@@ -559,7 +559,7 @@ declare const HookInputSchemas: {
559
559
  readonly agent_type: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
560
560
  readonly cwd: v.StringSchema<undefined>;
561
561
  readonly effort: v.ExactOptionalSchema<v.ObjectSchema<{
562
- readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (s: string) => s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
562
+ readonly level: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.GuardAction<string, (_s: string) => _s is AutoComplete<"low" | "medium" | "high" | "xhigh" | "max">, undefined>]>;
563
563
  }, undefined>, undefined>;
564
564
  readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
565
565
  readonly session_id: v.StringSchema<undefined>;
package/dist/index.mjs CHANGED
@@ -156,7 +156,7 @@ const baseHookInputSchema = v.object({
156
156
  agent_id: v.exactOptional(v.string()),
157
157
  agent_type: v.exactOptional(v.string()),
158
158
  cwd: v.string(),
159
- effort: v.exactOptional(v.object({ level: v.pipe(v.string(), v.guard((s) => true)) })),
159
+ effort: v.exactOptional(v.object({ level: v.pipe(v.string(), v.guard((_s) => true)) })),
160
160
  permission_mode: v.exactOptional(v.string()),
161
161
  session_id: v.string(),
162
162
  transcript_path: v.string()
@@ -198,19 +198,19 @@ const sessionCronSummarySchema = v.object({
198
198
  */
199
199
  const HookInputSchemas = {
200
200
  PreToolUse: buildHookInputSchema("PreToolUse", {
201
- tool_name: v.pipe(v.string(), v.guard((s) => true)),
201
+ tool_name: v.pipe(v.string(), v.guard((_s) => true)),
202
202
  tool_input: v.unknown(),
203
203
  tool_use_id: v.string()
204
204
  }),
205
205
  PostToolUse: buildHookInputSchema("PostToolUse", {
206
- tool_name: v.pipe(v.string(), v.guard((s) => true)),
206
+ tool_name: v.pipe(v.string(), v.guard((_s) => true)),
207
207
  duration_ms: v.exactOptional(v.number()),
208
208
  tool_input: v.unknown(),
209
209
  tool_response: v.unknown(),
210
210
  tool_use_id: v.string()
211
211
  }),
212
212
  PostToolUseFailure: buildHookInputSchema("PostToolUseFailure", {
213
- tool_name: v.pipe(v.string(), v.guard((s) => true)),
213
+ tool_name: v.pipe(v.string(), v.guard((_s) => true)),
214
214
  duration_ms: v.exactOptional(v.number()),
215
215
  error: v.string(),
216
216
  is_interrupt: v.exactOptional(v.boolean()),
@@ -219,7 +219,7 @@ const HookInputSchemas = {
219
219
  }),
220
220
  PostToolBatch: buildHookInputSchema("PostToolBatch", { tool_calls: v.array(v.object({
221
221
  tool_input: v.unknown(),
222
- tool_name: v.pipe(v.string(), v.guard((s) => true)),
222
+ tool_name: v.pipe(v.string(), v.guard((_s) => true)),
223
223
  tool_response: v.exactOptional(v.unknown()),
224
224
  tool_use_id: v.string()
225
225
  })) }),
@@ -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,9 +1,18 @@
1
1
  {
2
2
  "name": "cc-hooks-ts",
3
- "version": "2.1.152",
4
- "type": "module",
3
+ "version": "2.1.161",
5
4
  "description": "Write claude code hooks with type safety",
6
- "sideEffects": false,
5
+ "keywords": [
6
+ "anthropic",
7
+ "claude",
8
+ "claude-code",
9
+ "hooks",
10
+ "type-safety",
11
+ "typescript"
12
+ ],
13
+ "bugs": {
14
+ "url": "https://github.com/sushichan044/cc-hooks-ts/issues"
15
+ },
7
16
  "license": "MIT",
8
17
  "author": {
9
18
  "name": "sushichan044",
@@ -13,67 +22,49 @@
13
22
  "type": "git",
14
23
  "url": "git+https://github.com/sushichan044/cc-hooks-ts.git"
15
24
  },
16
- "publishConfig": {
17
- "access": "public",
18
- "registry": "https://registry.npmjs.org/",
19
- "provenance": true
20
- },
21
- "bugs": {
22
- "url": "https://github.com/sushichan044/cc-hooks-ts/issues"
23
- },
24
- "engines": {
25
- "node": "^20.12.0 || ^22.0.0 || >=24.0.0"
26
- },
27
- "keywords": [
28
- "claude",
29
- "claude-code",
30
- "hooks",
31
- "typescript",
32
- "type-safety",
33
- "anthropic"
34
- ],
35
25
  "files": [
36
26
  "dist"
37
27
  ],
28
+ "type": "module",
29
+ "sideEffects": false,
38
30
  "exports": {
39
31
  ".": {
40
32
  "types": "./dist/index.d.mts",
41
33
  "import": "./dist/index.mjs"
42
34
  }
43
35
  },
36
+ "publishConfig": {
37
+ "access": "public",
38
+ "provenance": true,
39
+ "registry": "https://registry.npmjs.org/"
40
+ },
41
+ "dependencies": {
42
+ "@anthropic-ai/claude-agent-sdk": "0.3.161",
43
+ "get-stdin": "10.0.0",
44
+ "valibot": "1.4.1"
45
+ },
44
46
  "devDependencies": {
45
- "@arethetypeswrong/core": "0.18.2",
47
+ "@arethetypeswrong/core": "0.18.3",
46
48
  "@types/node": "25.9.1",
47
- "@typescript/native-preview": "7.0.0-dev.20260523.1",
48
- "@virtual-live-lab/eslint-config": "2.4.4",
49
+ "@typescript/native-preview": "7.0.0-dev.20260527.2",
49
50
  "@virtual-live-lab/tsconfig": "2.1.23",
50
- "eslint": "10.4.0",
51
- "eslint-plugin-import-access": "3.1.0",
52
- "oxfmt": "0.51.0",
53
51
  "pkg-pr-new": "0.0.75",
54
52
  "publint": "0.3.21",
55
- "release-it": "20.0.1",
53
+ "release-it": "20.2.0",
56
54
  "release-it-pnpm": "4.6.6",
57
- "tsdown": "0.22.0",
58
55
  "type-fest": "5.6.0",
59
56
  "typescript": "6.0.3",
60
- "typescript-eslint": "8.59.4",
61
57
  "unplugin-unused": "0.5.7",
62
- "vitest": "4.1.7"
58
+ "vite-plus": "0.1.23"
63
59
  },
64
- "dependencies": {
65
- "@anthropic-ai/claude-agent-sdk": "0.3.152",
66
- "get-stdin": "10.0.0",
67
- "valibot": "^1.3.0"
60
+ "engines": {
61
+ "node": "^20.12.0 || ^22.0.0 || >=24.0.0"
68
62
  },
69
63
  "scripts": {
70
- "check": "pnpm run format:check && pnpm run lint && pnpm run typecheck && pnpm run test && pnpm run build",
71
- "lint": "eslint --max-warnings 0",
72
- "format": "oxfmt",
73
- "format:check": "oxfmt --check",
74
- "typecheck": "tsgo --noEmit",
75
- "test": "vitest --run",
76
- "build": "tsdown",
64
+ "check": "vp check",
65
+ "tidy": "vp check --fix",
66
+ "test": "vp test --run",
67
+ "build": "vp pack",
77
68
  "pkg-pr-new": "pkg-pr-new publish --compact --comment=update --pnpm"
78
69
  }
79
70
  }