@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.
- package/LICENSE.md +1 -1
- package/cli.js +1393 -1344
- package/package.json +1 -1
- package/sdk.d.ts +1 -0
- package/sdk.mjs +4 -4
package/package.json
CHANGED
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
|
|
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.
|
|
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 =
|
|
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);
|