cc-hooks-ts 2.1.90 → 2.1.94

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
@@ -75,6 +75,7 @@ declare const HookInputSchemas: {
75
75
  readonly hook_event_name: v.LiteralSchema<"UserPromptSubmit", undefined>;
76
76
  } & {
77
77
  prompt: v.StringSchema<undefined>;
78
+ session_title: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
78
79
  }, undefined>;
79
80
  readonly Stop: v.ObjectSchema<{
80
81
  readonly agent_id: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
@@ -212,7 +213,7 @@ declare const HookInputSchemas: {
212
213
  readonly type: v.LiteralSchema<"removeRules", undefined>;
213
214
  }, undefined>, v.ObjectSchema<{
214
215
  readonly destination: v.PicklistSchema<["userSettings", "projectSettings", "localSettings", "session", "cliArg"], undefined>;
215
- readonly mode: v.PicklistSchema<["acceptEdits", "bypassPermissions", "default", "dontAsk", "plan"], undefined>;
216
+ readonly mode: v.PicklistSchema<["acceptEdits", "bypassPermissions", "default", "dontAsk", "plan", "auto"], undefined>;
216
217
  readonly type: v.LiteralSchema<"setMode", undefined>;
217
218
  }, undefined>, v.ObjectSchema<{
218
219
  readonly destination: v.PicklistSchema<["userSettings", "projectSettings", "localSettings", "session", "cliArg"], undefined>;
@@ -529,7 +530,7 @@ declare const permissionUpdateSchema: v.VariantSchema<"type", [v.ObjectSchema<{
529
530
  readonly type: v.LiteralSchema<"removeRules", undefined>;
530
531
  }, undefined>, v.ObjectSchema<{
531
532
  readonly destination: v.PicklistSchema<["userSettings", "projectSettings", "localSettings", "session", "cliArg"], undefined>;
532
- readonly mode: v.PicklistSchema<["acceptEdits", "bypassPermissions", "default", "dontAsk", "plan"], undefined>;
533
+ readonly mode: v.PicklistSchema<["acceptEdits", "bypassPermissions", "default", "dontAsk", "plan", "auto"], undefined>;
533
534
  readonly type: v.LiteralSchema<"setMode", undefined>;
534
535
  }, undefined>, v.ObjectSchema<{
535
536
  readonly destination: v.PicklistSchema<["userSettings", "projectSettings", "localSettings", "session", "cliArg"], undefined>;
@@ -704,6 +705,7 @@ interface UserPromptSubmitHookOutput extends CommonHookOutputs {
704
705
  * Adds the string to the context if not blocked.
705
706
  */
706
707
  additionalContext?: string;
708
+ sessionTitle?: string;
707
709
  };
708
710
  reason?: string;
709
711
  }
package/dist/index.mjs CHANGED
@@ -134,7 +134,8 @@ const permissionUpdateSchema = v.variant("type", [
134
134
  "bypassPermissions",
135
135
  "default",
136
136
  "dontAsk",
137
- "plan"
137
+ "plan",
138
+ "auto"
138
139
  ]),
139
140
  type: v.literal("setMode")
140
141
  }),
@@ -201,7 +202,10 @@ const HookInputSchemas = {
201
202
  notification_type: v.string(),
202
203
  title: v.exactOptional(v.string())
203
204
  }),
204
- UserPromptSubmit: buildHookInputSchema("UserPromptSubmit", { prompt: v.string() }),
205
+ UserPromptSubmit: buildHookInputSchema("UserPromptSubmit", {
206
+ prompt: v.string(),
207
+ session_title: v.exactOptional(v.string())
208
+ }),
205
209
  Stop: buildHookInputSchema("Stop", {
206
210
  last_assistant_message: v.exactOptional(v.string()),
207
211
  stop_hook_active: v.boolean()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-hooks-ts",
3
- "version": "2.1.90",
3
+ "version": "2.1.94",
4
4
  "type": "module",
5
5
  "description": "Write claude code hooks with type safety",
6
6
  "sideEffects": false,
@@ -62,7 +62,7 @@
62
62
  "vitest": "4.1.2"
63
63
  },
64
64
  "dependencies": {
65
- "@anthropic-ai/claude-agent-sdk": "0.2.90",
65
+ "@anthropic-ai/claude-agent-sdk": "0.2.94",
66
66
  "get-stdin": "10.0.0",
67
67
  "valibot": "^1.1.0"
68
68
  },