@anthropic-ai/claude-agent-sdk 0.1.11 → 0.1.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-agent-sdk",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "main": "sdk.mjs",
5
5
  "types": "sdk.d.ts",
6
6
  "engines": {
@@ -10,9 +10,9 @@
10
10
  "author": "Anthropic <support@anthropic.com>",
11
11
  "license": "SEE LICENSE IN README.md",
12
12
  "description": "SDK for building AI agents with Claude Code's capabilities. Programmatically interact with Claude to build autonomous agents that can understand codebases, edit files, and execute workflows.",
13
- "homepage": "https://github.com/anthropics/claude-code",
13
+ "homepage": "https://github.com/anthropics/claude-agent-sdk-typescript",
14
14
  "bugs": {
15
- "url": "https://github.com/anthropics/claude-code/issues"
15
+ "url": "https://github.com/anthropics/claude-agent-sdk-typescript/issues"
16
16
  },
17
17
  "keywords": [
18
18
  "ai",
@@ -38,4 +38,4 @@
38
38
  "@img/sharp-linux-x64": "^0.33.5",
39
39
  "@img/sharp-win32-x64": "^0.33.5"
40
40
  }
41
- }
41
+ }
package/sdk.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- // (c) Anthropic PBC. All rights reserved. Use is subject to Anthropic's Commercial Terms of Service (https://www.anthropic.com/legal/commercial-terms).
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.11
4
+ // Version: 0.1.13
5
5
 
6
6
  // Want to see the unminified source? We're hiring!
7
7
  // https://job-boards.greenhouse.io/anthropic/jobs/4816199008
@@ -7058,7 +7058,7 @@ class Query {
7058
7058
  `));
7059
7059
  }
7060
7060
  if (this.sdkMcpTransports.size > 0 && this.firstResultReceivedPromise) {
7061
- const STREAM_CLOSE_TIMEOUT = 1e4;
7061
+ const STREAM_CLOSE_TIMEOUT = 60000;
7062
7062
  let timeoutId;
7063
7063
  await Promise.race([
7064
7064
  this.firstResultReceivedPromise.then(() => {
@@ -14155,7 +14155,7 @@ function query({
14155
14155
  const dirname = join(filename, "..");
14156
14156
  pathToClaudeCodeExecutable = join(dirname, "cli.js");
14157
14157
  }
14158
- process.env.CLAUDE_AGENT_SDK_VERSION = "0.1.11";
14158
+ process.env.CLAUDE_AGENT_SDK_VERSION = "0.1.13";
14159
14159
  return createSharedQuery({
14160
14160
  prompt,
14161
14161
  options: {
package/sdkTypes.d.ts CHANGED
@@ -394,6 +394,7 @@ export interface Query extends AsyncGenerator<SDKMessage, void> {
394
394
  /**
395
395
  * @deprecated The Claude Code SDK is now the Claude Agent SDK!
396
396
  * Please install and use @anthropic-ai/claude-agent-sdk instead.
397
+ * This SDK entrypoint will be going away on October 21.
397
398
  * See https://docs.claude.com/en/docs/claude-code/sdk/migration-guide for migration instructions.
398
399
  */
399
400
  export declare function query({ prompt, options, }: {