claude-code-types 0.3.0 → 0.4.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.
Files changed (3) hide show
  1. package/README.md +5 -1
  2. package/index.d.ts +2 -0
  3. package/package.json +5 -2
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # claude-code-types
2
2
 
3
- [![npm](https://img.shields.io/npm/v/claude-code-types)](https://www.npmjs.com/package/claude-code-types)
3
+ [![npm](https://img.shields.io/npm/v/claude-code-types)](https://www.npmjs.com/package/claude-code-types) [![docs](https://img.shields.io/badge/docs-API%20reference-blue)](docs/README.md)
4
4
 
5
5
  TypeScript type definitions for [Claude Code](https://docs.anthropic.com/en/docs/claude-code) chat history JSONL files.
6
6
 
@@ -53,6 +53,10 @@ for (const entry of entries) {
53
53
  | `saved_hook_context` | `SavedHookContextEntry` | Hook execution context |
54
54
  | `summary` | `SummaryEntry` | Conversation summaries |
55
55
 
56
+ ## Versioning
57
+
58
+ This project follows [Semantic Versioning 2.0.0](https://semver.org/spec/v2.0.0.html). See [CHANGELOG.md](CHANGELOG.md) for release history.
59
+
56
60
  ## Contributing
57
61
 
58
62
  See [AGENTS.md](AGENTS.md) for publishing instructions and project conventions.
package/index.d.ts CHANGED
@@ -65,6 +65,8 @@ interface EntryBase {
65
65
  gitBranch?: string;
66
66
  /** Project slug derived from the working directory. */
67
67
  slug?: string;
68
+ /** Present on entries produced by subagents / Task tool invocations (e.g. `"a4044e6"`). */
69
+ agentId?: string;
68
70
  teamName?: string;
69
71
  userType: 'external';
70
72
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-types",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "TypeScript type definitions for Claude Code chat history JSONL files",
5
5
  "types": "./index.d.ts",
6
6
  "files": [
@@ -8,7 +8,8 @@
8
8
  ],
9
9
  "scripts": {
10
10
  "typecheck": "tsc --noEmit",
11
- "test": "tsx test/smoke.test.ts"
11
+ "test": "tsx test/smoke.local.test.ts",
12
+ "docs": "typedoc --plugin typedoc-plugin-markdown --disableSources --readme none --out docs index.d.ts"
12
13
  },
13
14
  "keywords": [
14
15
  "claude",
@@ -27,6 +28,8 @@
27
28
  },
28
29
  "devDependencies": {
29
30
  "tsx": "^4.0.0",
31
+ "typedoc": "^0.28.0",
32
+ "typedoc-plugin-markdown": "^4.10.0",
30
33
  "typescript": "^5.7.0"
31
34
  }
32
35
  }