@anthropic-ai/claude-code 2.0.11 → 2.0.12

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 (5) hide show
  1. package/LICENSE.md +1 -1
  2. package/cli.js +1393 -1344
  3. package/package.json +1 -1
  4. package/sdk.d.ts +1 -0
  5. package/sdk.mjs +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "2.0.11",
3
+ "version": "2.0.12",
4
4
  "main": "sdk.mjs",
5
5
  "types": "sdk.d.ts",
6
6
  "bin": {
package/sdk.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, }: {
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: 2.0.11
4
+ // Version: 2.0.12
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(() => {
@@ -14140,7 +14140,7 @@ function query({
14140
14140
  prompt,
14141
14141
  options
14142
14142
  }) {
14143
- console.warn("The Claude Code SDK is now the Claude Agent SDK! " + "Please install and use @anthropic-ai/claude-agent-sdk instead. " + "See https://docs.claude.com/en/docs/claude-code/sdk/migration-guide for migration instructions.");
14143
+ console.warn("The Claude Code SDK is now the Claude Agent SDK! " + "Please install and use @anthropic-ai/claude-agent-sdk instead. " + "This SDK entrypoint will be going away on October 21. " + "See https://docs.claude.com/en/docs/claude-code/sdk/migration-guide for migration instructions.");
14144
14144
  let pathToClaudeCodeExecutable = options?.pathToClaudeCodeExecutable;
14145
14145
  if (!pathToClaudeCodeExecutable) {
14146
14146
  const filename = fileURLToPath(import.meta.url);