cc-hooks-ts 2.1.27 → 2.1.34

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
@@ -183,6 +183,29 @@ declare const HookInputSchemas: {
183
183
  } & {
184
184
  trigger: v.PicklistSchema<["init", "maintenance"], undefined>;
185
185
  }, undefined>;
186
+ readonly TeammateIdle: v.ObjectSchema<{
187
+ readonly cwd: v.StringSchema<undefined>;
188
+ readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
189
+ readonly session_id: v.StringSchema<undefined>;
190
+ readonly transcript_path: v.StringSchema<undefined>;
191
+ readonly hook_event_name: v.LiteralSchema<"TeammateIdle", undefined>;
192
+ } & {
193
+ team_name: v.StringSchema<undefined>;
194
+ teammate_name: v.StringSchema<undefined>;
195
+ }, undefined>;
196
+ readonly TaskCompleted: v.ObjectSchema<{
197
+ readonly cwd: v.StringSchema<undefined>;
198
+ readonly permission_mode: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
199
+ readonly session_id: v.StringSchema<undefined>;
200
+ readonly transcript_path: v.StringSchema<undefined>;
201
+ readonly hook_event_name: v.LiteralSchema<"TaskCompleted", undefined>;
202
+ } & {
203
+ task_description: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
204
+ task_id: v.StringSchema<undefined>;
205
+ task_subject: v.StringSchema<undefined>;
206
+ team_name: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
207
+ teammate_name: v.ExactOptionalSchema<v.StringSchema<undefined>, undefined>;
208
+ }, undefined>;
186
209
  };
187
210
  //#endregion
188
211
  //#region src/hooks/event.d.ts
@@ -191,7 +214,7 @@ declare const HookInputSchemas: {
191
214
  *
192
215
  * @package
193
216
  */
194
- type SupportedHookEvent = "PreToolUse" | "PostToolUse" | "PostToolUseFailure" | "Notification" | "UserPromptSubmit" | "SessionStart" | "SessionEnd" | "Stop" | "SubagentStart" | "SubagentStop" | "PreCompact" | "PermissionRequest" | "Setup";
217
+ type SupportedHookEvent = "PreToolUse" | "PostToolUse" | "PostToolUseFailure" | "Notification" | "UserPromptSubmit" | "SessionStart" | "SessionEnd" | "Stop" | "SubagentStart" | "SubagentStop" | "PreCompact" | "PermissionRequest" | "Setup" | "TeammateIdle" | "TaskCompleted";
195
218
  //#endregion
196
219
  //#region src/hooks/input/types.d.ts
197
220
  /**
@@ -333,6 +356,8 @@ type HookOutput = {
333
356
  Notification: NotificationHookOutput;
334
357
  PreCompact: CommonHookOutputs;
335
358
  SessionEnd: CommonHookOutputs;
359
+ TaskCompleted: CommonHookOutputs;
360
+ TeammateIdle: CommonHookOutputs;
336
361
  };
337
362
  /**
338
363
  * @package
package/dist/index.mjs CHANGED
@@ -166,7 +166,18 @@ const HookInputSchemas = {
166
166
  tool_input: v.unknown(),
167
167
  tool_name: v.string()
168
168
  }),
169
- Setup: buildHookInputSchema("Setup", { trigger: v.picklist(["init", "maintenance"]) })
169
+ Setup: buildHookInputSchema("Setup", { trigger: v.picklist(["init", "maintenance"]) }),
170
+ TeammateIdle: buildHookInputSchema("TeammateIdle", {
171
+ team_name: v.string(),
172
+ teammate_name: v.string()
173
+ }),
174
+ TaskCompleted: buildHookInputSchema("TaskCompleted", {
175
+ task_description: v.exactOptional(v.string()),
176
+ task_id: v.string(),
177
+ task_subject: v.string(),
178
+ team_name: v.exactOptional(v.string()),
179
+ teammate_name: v.exactOptional(v.string())
180
+ })
170
181
  };
171
182
  function isNonEmptyString(value) {
172
183
  return typeof value === "string" && value.length > 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-hooks-ts",
3
- "version": "2.1.27",
3
+ "version": "2.1.34",
4
4
  "type": "module",
5
5
  "description": "Write claude code hooks with type safety",
6
6
  "sideEffects": false,
@@ -43,26 +43,26 @@
43
43
  },
44
44
  "devDependencies": {
45
45
  "@arethetypeswrong/core": "0.18.2",
46
- "@types/node": "25.0.10",
46
+ "@types/node": "25.2.0",
47
47
  "@typescript/native-preview": "^7.0.0-dev.20251108.1",
48
48
  "@virtual-live-lab/eslint-config": "2.3.1",
49
49
  "@virtual-live-lab/tsconfig": "2.1.21",
50
50
  "eslint": "9.39.2",
51
51
  "eslint-plugin-import-access": "3.1.0",
52
- "oxfmt": "0.27.0",
53
- "pkg-pr-new": "0.0.62",
52
+ "oxfmt": "0.28.0",
53
+ "pkg-pr-new": "0.0.63",
54
54
  "publint": "0.3.17",
55
55
  "release-it": "19.2.4",
56
56
  "release-it-pnpm": "4.6.6",
57
57
  "tsdown": "0.20.1",
58
- "type-fest": "5.4.2",
58
+ "type-fest": "5.4.3",
59
59
  "typescript": "5.9.3",
60
60
  "typescript-eslint": "8.54.0",
61
61
  "unplugin-unused": "0.5.7",
62
62
  "vitest": "4.0.18"
63
63
  },
64
64
  "dependencies": {
65
- "@anthropic-ai/claude-agent-sdk": "0.2.27",
65
+ "@anthropic-ai/claude-agent-sdk": "0.2.34",
66
66
  "valibot": "^1.1.0"
67
67
  },
68
68
  "scripts": {