@anthropic-ai/claude-agent-sdk 0.1.13 → 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 +988 -940
- package/package.json +2 -2
- package/sdk.mjs +799 -129
- package/sdkTypes.d.ts +12 -1
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
|