@anthropic-ai/claude-code 2.0.14 → 2.0.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 +1 -1
- package/sdk.d.ts +12 -1
- package/sdk.mjs +1 -1
package/package.json
CHANGED
package/sdk.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
|
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: 2.0.
|
|
4
|
+
// Version: 2.0.15
|
|
5
5
|
|
|
6
6
|
// Want to see the unminified source? We're hiring!
|
|
7
7
|
// https://job-boards.greenhouse.io/anthropic/jobs/4816199008
|