cc-hooks-ts 0.1.2 → 2.0.0

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/README.md CHANGED
@@ -2,8 +2,9 @@
2
2
 
3
3
  Define Claude Code hooks with full type safety using TypeScript and Valibot validation.
4
4
 
5
- > [!WARNING]
6
- > This library is expected to be used with Claude Code v2.0.0 or higher for better compatibility.
5
+ > [!NOTE]
6
+ > Beginning with versions equal to 2.0.0 or 2.0.42 and above, we started releasing using the same version numbers as Claude Code.
7
+ > This enables us to support newer type definitions while preserving maximum compatibility.
7
8
 
8
9
  ## Installation
9
10
 
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as v from "valibot";
2
- import { BashInput, FileEditInput, FileReadInput, FileWriteInput, GlobInput, GrepInput, NotebookEditInput, TodoWriteInput, WebFetchInput, WebSearchInput } from "@anthropic-ai/claude-code/sdk-tools.js";
2
+ import { BashInput, ExitPlanModeInput, FileEditInput, FileReadInput, FileWriteInput, GlobInput, GrepInput, NotebookEditInput, TodoWriteInput, WebFetchInput, WebSearchInput } from "@anthropic-ai/claude-code/sdk-tools.js";
3
3
 
4
4
  //#region src/utils/types.d.ts
5
5
  type Awaitable<T> = Promise<T> | T;
@@ -588,6 +588,10 @@ interface ToolSchema {
588
588
  userModified: boolean;
589
589
  };
590
590
  };
591
+ ExitPlanMode: {
592
+ input: ExitPlanModeInput;
593
+ response: unknown;
594
+ };
591
595
  Glob: {
592
596
  input: GlobInput;
593
597
  response: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-hooks-ts",
3
- "version": "0.1.2",
3
+ "version": "2.0.0",
4
4
  "type": "module",
5
5
  "description": "Write claude code hooks with type safety",
6
6
  "sideEffects": false,