@anthropic-ai/claude-agent-sdk 0.1.39 → 0.1.42

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 (4) hide show
  1. package/cli.js +1458 -1457
  2. package/package.json +1 -1
  3. package/sdk.d.ts +2 -0
  4. package/sdk.mjs +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-agent-sdk",
3
- "version": "0.1.39",
3
+ "version": "0.1.42",
4
4
  "main": "sdk.mjs",
5
5
  "types": "sdk.d.ts",
6
6
  "engines": {
package/sdk.d.ts CHANGED
@@ -184,6 +184,8 @@ export type StopHookInput = BaseHookInput & {
184
184
  export type SubagentStopHookInput = BaseHookInput & {
185
185
  hook_event_name: 'SubagentStop';
186
186
  stop_hook_active: boolean;
187
+ agent_id: string;
188
+ agent_transcript_path: string;
187
189
  };
188
190
  export type PreCompactHookInput = BaseHookInput & {
189
191
  hook_event_name: 'PreCompact';
package/sdk.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  // (c) Anthropic PBC. All rights reserved. Use is subject to the Legal Agreements outlined here: https://docs.claude.com/en/docs/claude-code/legal-and-compliance.
3
3
 
4
- // Version: 0.1.39
4
+ // Version: 0.1.42
5
5
 
6
6
  // Want to see the unminified source? We're hiring!
7
7
  // https://job-boards.greenhouse.io/anthropic/jobs/4816199008
@@ -14802,7 +14802,7 @@ function query({
14802
14802
  const dirname2 = join3(filename, "..");
14803
14803
  pathToClaudeCodeExecutable = join3(dirname2, "cli.js");
14804
14804
  }
14805
- process.env.CLAUDE_AGENT_SDK_VERSION = "0.1.39";
14805
+ process.env.CLAUDE_AGENT_SDK_VERSION = "0.1.42";
14806
14806
  const {
14807
14807
  abortController = createAbortController(),
14808
14808
  additionalDirectories = [],