@anthropic-ai/claude-agent-sdk 0.1.14 → 0.1.15
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 +957 -921
- package/package.json +2 -2
- package/sdk.mjs +2 -2
- package/sdkTypes.d.ts +12 -1
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.15",
|
|
4
4
|
"main": "sdk.mjs",
|
|
5
5
|
"types": "sdk.d.ts",
|
|
6
6
|
"engines": {
|
|
@@ -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
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.15
|
|
5
5
|
|
|
6
6
|
// Want to see the unminified source? We're hiring!
|
|
7
7
|
// https://job-boards.greenhouse.io/anthropic/jobs/4816199008
|
|
@@ -14825,7 +14825,7 @@ function query({
|
|
|
14825
14825
|
const dirname2 = join3(filename, "..");
|
|
14826
14826
|
pathToClaudeCodeExecutable = join3(dirname2, "cli.js");
|
|
14827
14827
|
}
|
|
14828
|
-
process.env.CLAUDE_AGENT_SDK_VERSION = "0.1.
|
|
14828
|
+
process.env.CLAUDE_AGENT_SDK_VERSION = "0.1.15";
|
|
14829
14829
|
return createSharedQuery({
|
|
14830
14830
|
prompt,
|
|
14831
14831
|
options: {
|
package/sdkTypes.d.ts
CHANGED
|
@@ -376,7 +376,18 @@ export type SDKCompactBoundaryMessage = SDKMessageBase & {
|
|
|
376
376
|
pre_tokens: number;
|
|
377
377
|
};
|
|
378
378
|
};
|
|
379
|
-
export type
|
|
379
|
+
export type SDKHookResponseMessage = SDKMessageBase & {
|
|
380
|
+
type: 'system';
|
|
381
|
+
subtype: 'hook_response';
|
|
382
|
+
hook_name: string;
|
|
383
|
+
hook_event: string;
|
|
384
|
+
tool_name?: string;
|
|
385
|
+
response: SyncHookJSONOutput;
|
|
386
|
+
stdout: string;
|
|
387
|
+
stderr: string;
|
|
388
|
+
exit_code?: number;
|
|
389
|
+
};
|
|
390
|
+
export type SDKMessage = SDKAssistantMessage | SDKUserMessage | SDKUserMessageReplay | SDKResultMessage | SDKSystemMessage | SDKPartialAssistantMessage | SDKCompactBoundaryMessage | SDKHookResponseMessage;
|
|
380
391
|
export interface Query extends AsyncGenerator<SDKMessage, void> {
|
|
381
392
|
/**
|
|
382
393
|
* Control Requests
|