cc-hooks-ts 2.1.91 → 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>;
@@ -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
@@ -202,7 +202,10 @@ const HookInputSchemas = {
202
202
  notification_type: v.string(),
203
203
  title: v.exactOptional(v.string())
204
204
  }),
205
- UserPromptSubmit: buildHookInputSchema("UserPromptSubmit", { prompt: v.string() }),
205
+ UserPromptSubmit: buildHookInputSchema("UserPromptSubmit", {
206
+ prompt: v.string(),
207
+ session_title: v.exactOptional(v.string())
208
+ }),
206
209
  Stop: buildHookInputSchema("Stop", {
207
210
  last_assistant_message: v.exactOptional(v.string()),
208
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.91",
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.91",
65
+ "@anthropic-ai/claude-agent-sdk": "0.2.94",
66
66
  "get-stdin": "10.0.0",
67
67
  "valibot": "^1.1.0"
68
68
  },