@anthropic-ai/claude-agent-sdk 0.1.25 → 0.1.26
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/cli.js +1268 -1268
- package/package.json +1 -4
- package/sdk-tools.d.ts +1 -1
- package/sdk.d.ts +1 -0
- package/sdk.mjs +8 -2
- package/yoga.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anthropic-ai/claude-agent-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.26",
|
|
4
4
|
"main": "sdk.mjs",
|
|
5
5
|
"types": "sdk.d.ts",
|
|
6
6
|
"engines": {
|
|
@@ -23,9 +23,6 @@
|
|
|
23
23
|
"automation",
|
|
24
24
|
"code-generation"
|
|
25
25
|
],
|
|
26
|
-
"scripts": {
|
|
27
|
-
"prepare": "node -e \"if (!process.env.AUTHORIZED) { console.error('ERROR: Direct publishing is not allowed.\\nPlease use the publish-agent-sdk.sh script to publish this package.'); process.exit(1); }\""
|
|
28
|
-
},
|
|
29
26
|
"dependencies": {},
|
|
30
27
|
"peerDependencies": {
|
|
31
28
|
"zod": "^3.24.1"
|
package/sdk-tools.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ export interface BashInput {
|
|
|
72
72
|
/**
|
|
73
73
|
* Set this to true to dangerously override sandbox mode and run commands without sandboxing.
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
dangerouslyDisableSandbox?: boolean;
|
|
76
76
|
}
|
|
77
77
|
export interface BashOutputInput {
|
|
78
78
|
/**
|
package/sdk.d.ts
CHANGED
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.
|
|
4
|
+
// Version: 0.1.26
|
|
5
5
|
|
|
6
6
|
// Want to see the unminified source? We're hiring!
|
|
7
7
|
// https://job-boards.greenhouse.io/anthropic/jobs/4816199008
|
|
@@ -6390,6 +6390,7 @@ class ProcessTransport {
|
|
|
6390
6390
|
model,
|
|
6391
6391
|
fallbackModel,
|
|
6392
6392
|
permissionMode,
|
|
6393
|
+
allowDangerouslySkipPermissions,
|
|
6393
6394
|
permissionPromptToolName,
|
|
6394
6395
|
continueConversation,
|
|
6395
6396
|
resume,
|
|
@@ -6454,6 +6455,9 @@ class ProcessTransport {
|
|
|
6454
6455
|
if (permissionMode) {
|
|
6455
6456
|
args.push("--permission-mode", permissionMode);
|
|
6456
6457
|
}
|
|
6458
|
+
if (allowDangerouslySkipPermissions) {
|
|
6459
|
+
args.push("--allow-dangerously-skip-permissions");
|
|
6460
|
+
}
|
|
6457
6461
|
if (fallbackModel) {
|
|
6458
6462
|
if (model && fallbackModel === model) {
|
|
6459
6463
|
throw new Error("Fallback model cannot be the same as the main model. Please specify a different model for fallbackModel option.");
|
|
@@ -14745,7 +14749,7 @@ function query({
|
|
|
14745
14749
|
const dirname2 = join3(filename, "..");
|
|
14746
14750
|
pathToClaudeCodeExecutable = join3(dirname2, "cli.js");
|
|
14747
14751
|
}
|
|
14748
|
-
process.env.CLAUDE_AGENT_SDK_VERSION = "0.1.
|
|
14752
|
+
process.env.CLAUDE_AGENT_SDK_VERSION = "0.1.26";
|
|
14749
14753
|
const {
|
|
14750
14754
|
abortController = createAbortController(),
|
|
14751
14755
|
additionalDirectories = [],
|
|
@@ -14768,6 +14772,7 @@ function query({
|
|
|
14768
14772
|
mcpServers,
|
|
14769
14773
|
model,
|
|
14770
14774
|
permissionMode = "default",
|
|
14775
|
+
allowDangerouslySkipPermissions = false,
|
|
14771
14776
|
permissionPromptToolName,
|
|
14772
14777
|
resume,
|
|
14773
14778
|
resumeSessionAt,
|
|
@@ -14819,6 +14824,7 @@ function query({
|
|
|
14819
14824
|
model,
|
|
14820
14825
|
fallbackModel,
|
|
14821
14826
|
permissionMode,
|
|
14827
|
+
allowDangerouslySkipPermissions,
|
|
14822
14828
|
permissionPromptToolName,
|
|
14823
14829
|
continueConversation,
|
|
14824
14830
|
resume,
|
package/yoga.wasm
DELETED
|
Binary file
|