@anthropic-ai/claude-agent-sdk 0.2.83 → 0.2.84
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/bridge.mjs +88 -49
- package/browser-sdk.js +74 -35
- package/cli.js +2403 -2110
- package/manifest.json +18 -18
- package/manifest.zst.json +22 -22
- package/package.json +2 -2
- package/sdk-tools.d.ts +6 -1
- package/sdk.d.ts +61 -7
- package/sdk.mjs +86 -47
package/manifest.json
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"buildDate": "2026-03-
|
|
2
|
+
"version": "2.1.84",
|
|
3
|
+
"buildDate": "2026-03-25T23:54:35Z",
|
|
4
4
|
"platforms": {
|
|
5
5
|
"darwin-arm64": {
|
|
6
6
|
"binary": "claude",
|
|
7
|
-
"checksum": "
|
|
8
|
-
"size":
|
|
7
|
+
"checksum": "c02d911ff13f8ceccb1f6662bf211f3cd9f29d5a46f031c3cc40654eb759aa29",
|
|
8
|
+
"size": 203606768
|
|
9
9
|
},
|
|
10
10
|
"darwin-x64": {
|
|
11
11
|
"binary": "claude",
|
|
12
|
-
"checksum": "
|
|
13
|
-
"size":
|
|
12
|
+
"checksum": "da5ed2ee1b0bcf65c2088e79bc65388ec85edc41041fc6ca7c27330f2e201085",
|
|
13
|
+
"size": 205199952
|
|
14
14
|
},
|
|
15
15
|
"linux-arm64": {
|
|
16
16
|
"binary": "claude",
|
|
17
|
-
"checksum": "
|
|
18
|
-
"size":
|
|
17
|
+
"checksum": "5c868174b44439e51c74ff084c306856c41779615250d5bbdaa5d10056362814",
|
|
18
|
+
"size": 235473472
|
|
19
19
|
},
|
|
20
20
|
"linux-x64": {
|
|
21
21
|
"binary": "claude",
|
|
22
|
-
"checksum": "
|
|
23
|
-
"size":
|
|
22
|
+
"checksum": "c6872aa8db94f303bc6a4482664e40d3288dfc989c89ba268473ed32e3055878",
|
|
23
|
+
"size": 235657856
|
|
24
24
|
},
|
|
25
25
|
"linux-arm64-musl": {
|
|
26
26
|
"binary": "claude",
|
|
27
|
-
"checksum": "
|
|
28
|
-
"size":
|
|
27
|
+
"checksum": "6e42aee87a00ab8e6fb3db3fc409ab969f12758bacc2a0c9f622d8e97445a0a8",
|
|
28
|
+
"size": 228592064
|
|
29
29
|
},
|
|
30
30
|
"linux-x64-musl": {
|
|
31
31
|
"binary": "claude",
|
|
32
|
-
"checksum": "
|
|
33
|
-
"size":
|
|
32
|
+
"checksum": "0109e76af6261f6fd37ae1deefc7ee3bc58b0ad786086d198a981275979c549a",
|
|
33
|
+
"size": 230283712
|
|
34
34
|
},
|
|
35
35
|
"win32-x64": {
|
|
36
36
|
"binary": "claude.exe",
|
|
37
|
-
"checksum": "
|
|
38
|
-
"size":
|
|
37
|
+
"checksum": "64b28630ec4f4aaa6cc0e225379cf59cdb95828cbb4ce700a0ae4401b1999ecd",
|
|
38
|
+
"size": 245196960
|
|
39
39
|
},
|
|
40
40
|
"win32-arm64": {
|
|
41
41
|
"binary": "claude.exe",
|
|
42
|
-
"checksum": "
|
|
43
|
-
"size":
|
|
42
|
+
"checksum": "e7f5d18d470f0345ee18bb368f8ea7d43e791e17f0de7b69cdc40e42a9a9398e",
|
|
43
|
+
"size": 241350304
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}
|
package/manifest.zst.json
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
3
|
-
"buildDate": "2026-03-
|
|
2
|
+
"version": "2.1.84",
|
|
3
|
+
"buildDate": "2026-03-25T23:54:36Z",
|
|
4
4
|
"platforms": {
|
|
5
5
|
"darwin-arm64": {
|
|
6
6
|
"binary": "claude.zst",
|
|
7
|
-
"checksum": "
|
|
8
|
-
"size":
|
|
7
|
+
"checksum": "a0e577c1ca84302c5de1e6498d047149ba44a710ea51ff303986fd47f1c0eb83",
|
|
8
|
+
"size": 43366416,
|
|
9
9
|
"bundle": {
|
|
10
|
-
"checksum": "
|
|
11
|
-
"size":
|
|
10
|
+
"checksum": "4111e9be5214eb3e2e97d7fc133dbb13b51fc8978fff23d26578021fa84b7c30",
|
|
11
|
+
"size": 43377661
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"darwin-x64": {
|
|
15
15
|
"binary": "claude.zst",
|
|
16
|
-
"checksum": "
|
|
17
|
-
"size":
|
|
16
|
+
"checksum": "d852a6245edfb235dd73bdffef79012ab18ee075ef3ded5abf602b17812bc82a",
|
|
17
|
+
"size": 45050362,
|
|
18
18
|
"bundle": {
|
|
19
|
-
"checksum": "
|
|
20
|
-
"size":
|
|
19
|
+
"checksum": "10bcd37cb20f82861ed710292821927d7f8e1549ca1dbc9e248769409c62f22b",
|
|
20
|
+
"size": 45050626
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"linux-arm64": {
|
|
24
24
|
"binary": "claude.zst",
|
|
25
|
-
"checksum": "
|
|
26
|
-
"size":
|
|
25
|
+
"checksum": "fb0a0db9e8ceb414563fe776b9035b0827548d8e94bfab23f5c58a63d9c5f7b4",
|
|
26
|
+
"size": 53002601
|
|
27
27
|
},
|
|
28
28
|
"linux-x64": {
|
|
29
29
|
"binary": "claude.zst",
|
|
30
|
-
"checksum": "
|
|
31
|
-
"size":
|
|
30
|
+
"checksum": "8476f46fb0422be1fc2cafe82c1b4b51226c07b5b73b40dd40b203cc5c8ad90a",
|
|
31
|
+
"size": 53582657
|
|
32
32
|
},
|
|
33
33
|
"linux-arm64-musl": {
|
|
34
34
|
"binary": "claude.zst",
|
|
35
|
-
"checksum": "
|
|
36
|
-
"size":
|
|
35
|
+
"checksum": "7523be8411a2fef9bb4d93c59707d5497f5bf8229fb528fbc9ba5fc146480dee",
|
|
36
|
+
"size": 51604167
|
|
37
37
|
},
|
|
38
38
|
"linux-x64-musl": {
|
|
39
39
|
"binary": "claude.zst",
|
|
40
|
-
"checksum": "
|
|
41
|
-
"size":
|
|
40
|
+
"checksum": "e670e1468f01946a822d1526276f2f9de566987d89bbd52186a505f88763714f",
|
|
41
|
+
"size": 52327014
|
|
42
42
|
},
|
|
43
43
|
"win32-x64": {
|
|
44
44
|
"binary": "claude.exe.zst",
|
|
45
|
-
"checksum": "
|
|
46
|
-
"size":
|
|
45
|
+
"checksum": "e83814324697073fe6462eafcca9c354af1dc22e9689e5f3c0788dd1021ef414",
|
|
46
|
+
"size": 55192345
|
|
47
47
|
},
|
|
48
48
|
"win32-arm64": {
|
|
49
49
|
"binary": "claude.exe.zst",
|
|
50
|
-
"checksum": "
|
|
51
|
-
"size":
|
|
50
|
+
"checksum": "dc7c0d74e5ae0704c4745d350f0afc5c2044b4b3fe553fb808252b9f2957af87",
|
|
51
|
+
"size": 53246192
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anthropic-ai/claude-agent-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.84",
|
|
4
4
|
"main": "sdk.mjs",
|
|
5
5
|
"types": "sdk.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"@img/sharp-win32-arm64": "^0.34.2",
|
|
63
63
|
"@img/sharp-win32-x64": "^0.34.2"
|
|
64
64
|
},
|
|
65
|
-
"claudeCodeVersion": "2.1.
|
|
65
|
+
"claudeCodeVersion": "2.1.84"
|
|
66
66
|
}
|
package/sdk-tools.d.ts
CHANGED
|
@@ -63,6 +63,7 @@ export type ToolOutputSchemas =
|
|
|
63
63
|
export type AgentOutput =
|
|
64
64
|
| {
|
|
65
65
|
agentId: string;
|
|
66
|
+
agentType?: string;
|
|
66
67
|
content: {
|
|
67
68
|
type: "text";
|
|
68
69
|
text: string;
|
|
@@ -455,7 +456,7 @@ export interface GrepInput {
|
|
|
455
456
|
*/
|
|
456
457
|
type?: string;
|
|
457
458
|
/**
|
|
458
|
-
* Limit output to first N lines/entries, equivalent to "| head -N". Works across all output modes: content (limits output lines), files_with_matches (limits file paths), count (limits count entries). Defaults to 0 (
|
|
459
|
+
* Limit output to first N lines/entries, equivalent to "| head -N". Works across all output modes: content (limits output lines), files_with_matches (limits file paths), count (limits count entries). Defaults to 250 when unspecified. Pass 0 for unlimited (use sparingly — large result sets waste context).
|
|
459
460
|
*/
|
|
460
461
|
head_limit?: number;
|
|
461
462
|
/**
|
|
@@ -2301,6 +2302,10 @@ export interface ExitPlanModeOutput {
|
|
|
2301
2302
|
* Whether the Agent tool is available in the current context
|
|
2302
2303
|
*/
|
|
2303
2304
|
hasTaskTool?: boolean;
|
|
2305
|
+
/**
|
|
2306
|
+
* True when the user edited the plan (CCR web UI or Ctrl+G); determines whether the plan is echoed back in tool_result
|
|
2307
|
+
*/
|
|
2308
|
+
planWasEdited?: boolean;
|
|
2304
2309
|
/**
|
|
2305
2310
|
* When true, the teammate has sent a plan approval request to the team leader
|
|
2306
2311
|
*/
|
package/sdk.d.ts
CHANGED
|
@@ -313,6 +313,7 @@ declare namespace coreTypes {
|
|
|
313
313
|
SubagentStopHookInput,
|
|
314
314
|
SyncHookJSONOutput,
|
|
315
315
|
TaskCompletedHookInput,
|
|
316
|
+
TaskCreatedHookInput,
|
|
316
317
|
TeammateIdleHookInput,
|
|
317
318
|
ThinkingAdaptive,
|
|
318
319
|
ThinkingConfig,
|
|
@@ -321,6 +322,7 @@ declare namespace coreTypes {
|
|
|
321
322
|
UserPromptSubmitHookInput,
|
|
322
323
|
UserPromptSubmitHookSpecificOutput,
|
|
323
324
|
WorktreeCreateHookInput,
|
|
325
|
+
WorktreeCreateHookSpecificOutput,
|
|
324
326
|
WorktreeRemoveHookInput
|
|
325
327
|
}
|
|
326
328
|
}
|
|
@@ -350,6 +352,16 @@ export declare type CwdChangedHookSpecificOutput = {
|
|
|
350
352
|
watchPaths?: string[];
|
|
351
353
|
};
|
|
352
354
|
|
|
355
|
+
/**
|
|
356
|
+
* Effort level for controlling how much thinking/reasoning Claude applies.
|
|
357
|
+
*
|
|
358
|
+
* - `'low'` — Minimal thinking, fastest responses
|
|
359
|
+
* - `'medium'` — Moderate thinking
|
|
360
|
+
* - `'high'` — Deep reasoning (default)
|
|
361
|
+
* - `'max'` — Maximum effort (select models only)
|
|
362
|
+
*/
|
|
363
|
+
export declare type EffortLevel = 'low' | 'medium' | 'high' | 'max';
|
|
364
|
+
|
|
353
365
|
/**
|
|
354
366
|
* Hook input for the Elicitation event. Fired when an MCP server requests user input. Hooks can auto-respond (accept/decline) instead of showing the dialog.
|
|
355
367
|
*/
|
|
@@ -517,7 +529,7 @@ export declare type GetSessionMessagesOptions = {
|
|
|
517
529
|
offset?: number;
|
|
518
530
|
};
|
|
519
531
|
|
|
520
|
-
export declare const HOOK_EVENTS: readonly ["PreToolUse", "PostToolUse", "PostToolUseFailure", "Notification", "UserPromptSubmit", "SessionStart", "SessionEnd", "Stop", "StopFailure", "SubagentStart", "SubagentStop", "PreCompact", "PostCompact", "PermissionRequest", "Setup", "TeammateIdle", "TaskCompleted", "Elicitation", "ElicitationResult", "ConfigChange", "WorktreeCreate", "WorktreeRemove", "InstructionsLoaded", "CwdChanged", "FileChanged"];
|
|
532
|
+
export declare const HOOK_EVENTS: readonly ["PreToolUse", "PostToolUse", "PostToolUseFailure", "Notification", "UserPromptSubmit", "SessionStart", "SessionEnd", "Stop", "StopFailure", "SubagentStart", "SubagentStop", "PreCompact", "PostCompact", "PermissionRequest", "Setup", "TeammateIdle", "TaskCreated", "TaskCompleted", "Elicitation", "ElicitationResult", "ConfigChange", "WorktreeCreate", "WorktreeRemove", "InstructionsLoaded", "CwdChanged", "FileChanged"];
|
|
521
533
|
|
|
522
534
|
/**
|
|
523
535
|
* Hook callback function for responding to events during execution.
|
|
@@ -536,9 +548,9 @@ export declare interface HookCallbackMatcher {
|
|
|
536
548
|
timeout?: number;
|
|
537
549
|
}
|
|
538
550
|
|
|
539
|
-
export declare type HookEvent = 'PreToolUse' | 'PostToolUse' | 'PostToolUseFailure' | 'Notification' | 'UserPromptSubmit' | 'SessionStart' | 'SessionEnd' | 'Stop' | 'StopFailure' | 'SubagentStart' | 'SubagentStop' | 'PreCompact' | 'PostCompact' | 'PermissionRequest' | 'Setup' | 'TeammateIdle' | 'TaskCompleted' | 'Elicitation' | 'ElicitationResult' | 'ConfigChange' | 'WorktreeCreate' | 'WorktreeRemove' | 'InstructionsLoaded' | 'CwdChanged' | 'FileChanged';
|
|
551
|
+
export declare type HookEvent = 'PreToolUse' | 'PostToolUse' | 'PostToolUseFailure' | 'Notification' | 'UserPromptSubmit' | 'SessionStart' | 'SessionEnd' | 'Stop' | 'StopFailure' | 'SubagentStart' | 'SubagentStop' | 'PreCompact' | 'PostCompact' | 'PermissionRequest' | 'Setup' | 'TeammateIdle' | 'TaskCreated' | 'TaskCompleted' | 'Elicitation' | 'ElicitationResult' | 'ConfigChange' | 'WorktreeCreate' | 'WorktreeRemove' | 'InstructionsLoaded' | 'CwdChanged' | 'FileChanged';
|
|
540
552
|
|
|
541
|
-
export declare type HookInput = PreToolUseHookInput | PostToolUseHookInput | PostToolUseFailureHookInput | NotificationHookInput | UserPromptSubmitHookInput | SessionStartHookInput | SessionEndHookInput | StopHookInput | StopFailureHookInput | SubagentStartHookInput | SubagentStopHookInput | PreCompactHookInput | PostCompactHookInput | PermissionRequestHookInput | SetupHookInput | TeammateIdleHookInput | TaskCompletedHookInput | ElicitationHookInput | ElicitationResultHookInput | ConfigChangeHookInput | InstructionsLoadedHookInput | WorktreeCreateHookInput | WorktreeRemoveHookInput | CwdChangedHookInput | FileChangedHookInput;
|
|
553
|
+
export declare type HookInput = PreToolUseHookInput | PostToolUseHookInput | PostToolUseFailureHookInput | NotificationHookInput | UserPromptSubmitHookInput | SessionStartHookInput | SessionEndHookInput | StopHookInput | StopFailureHookInput | SubagentStartHookInput | SubagentStopHookInput | PreCompactHookInput | PostCompactHookInput | PermissionRequestHookInput | SetupHookInput | TeammateIdleHookInput | TaskCreatedHookInput | TaskCompletedHookInput | ElicitationHookInput | ElicitationResultHookInput | ConfigChangeHookInput | InstructionsLoadedHookInput | WorktreeCreateHookInput | WorktreeRemoveHookInput | CwdChangedHookInput | FileChangedHookInput;
|
|
542
554
|
|
|
543
555
|
export declare type HookJSONOutput = AsyncHookJSONOutput | SyncHookJSONOutput;
|
|
544
556
|
|
|
@@ -683,6 +695,7 @@ export declare type McpServerStatus = {
|
|
|
683
695
|
openWorld?: boolean;
|
|
684
696
|
};
|
|
685
697
|
}[];
|
|
698
|
+
|
|
686
699
|
};
|
|
687
700
|
|
|
688
701
|
export declare type McpServerStatusConfig = McpServerConfigForProcessTransport | McpClaudeAIProxyServerConfig;
|
|
@@ -1015,7 +1028,7 @@ export declare type Options = {
|
|
|
1015
1028
|
*
|
|
1016
1029
|
* @see https://docs.anthropic.com/en/docs/build-with-claude/effort
|
|
1017
1030
|
*/
|
|
1018
|
-
effort?:
|
|
1031
|
+
effort?: EffortLevel;
|
|
1019
1032
|
/**
|
|
1020
1033
|
* Maximum number of tokens the model can use for its thinking/reasoning process.
|
|
1021
1034
|
* Helps control cost and latency for complex tasks.
|
|
@@ -1035,6 +1048,16 @@ export declare type Options = {
|
|
|
1035
1048
|
* budget is exceeded, returning an `error_max_budget_usd` result.
|
|
1036
1049
|
*/
|
|
1037
1050
|
maxBudgetUsd?: number;
|
|
1051
|
+
/**
|
|
1052
|
+
* API-side task budget in tokens. When set, the model is made aware of
|
|
1053
|
+
* its remaining token budget so it can pace tool use and wrap up before
|
|
1054
|
+
* the limit. Sent as `output_config.task_budget` with the
|
|
1055
|
+
* `task-budgets-2026-03-13` beta header.
|
|
1056
|
+
* @alpha
|
|
1057
|
+
*/
|
|
1058
|
+
taskBudget?: {
|
|
1059
|
+
total: number;
|
|
1060
|
+
};
|
|
1038
1061
|
/**
|
|
1039
1062
|
* MCP (Model Context Protocol) server configurations.
|
|
1040
1063
|
* Keys are server names, values are server configurations.
|
|
@@ -1109,6 +1132,7 @@ export declare type Options = {
|
|
|
1109
1132
|
|
|
1110
1133
|
|
|
1111
1134
|
|
|
1135
|
+
|
|
1112
1136
|
/**
|
|
1113
1137
|
* Enable prompt suggestions. When true, the agent emits a `prompt_suggestion`
|
|
1114
1138
|
* message after each turn with a predicted next user prompt.
|
|
@@ -1416,7 +1440,7 @@ export declare type PreToolUseHookInput = BaseHookInput & {
|
|
|
1416
1440
|
|
|
1417
1441
|
export declare type PreToolUseHookSpecificOutput = {
|
|
1418
1442
|
hookEventName: 'PreToolUse';
|
|
1419
|
-
permissionDecision?:
|
|
1443
|
+
permissionDecision?: PermissionBehavior;
|
|
1420
1444
|
permissionDecisionReason?: string;
|
|
1421
1445
|
updatedInput?: Record<string, unknown>;
|
|
1422
1446
|
additionalContext?: string;
|
|
@@ -1937,7 +1961,7 @@ export declare type SDKControlRequest = {
|
|
|
1937
1961
|
request: SDKControlRequestInner;
|
|
1938
1962
|
};
|
|
1939
1963
|
|
|
1940
|
-
declare type SDKControlRequestInner = SDKControlInterruptRequest | SDKControlPermissionRequest | SDKControlInitializeRequest | SDKControlSetPermissionModeRequest | SDKControlSetModelRequest | SDKControlSetMaxThinkingTokensRequest | SDKControlMcpStatusRequest | SDKHookCallbackRequest | SDKControlMcpMessageRequest | SDKControlRewindFilesRequest | SDKControlCancelAsyncMessageRequest | SDKControlSeedReadStateRequest | SDKControlMcpSetServersRequest | SDKControlMcpReconnectRequest | SDKControlMcpToggleRequest | SDKControlEndSessionRequest | SDKControlMcpAuthenticateRequest | SDKControlMcpClearAuthRequest | SDKControlMcpOAuthCallbackUrlRequest | SDKControlClaudeAuthenticateRequest | SDKControlClaudeOAuthCallbackRequest | SDKControlClaudeOAuthWaitForCompletionRequest | SDKControlRemoteControlRequest | SDKControlSetProactiveRequest | SDKControlGenerateSessionTitleRequest | SDKControlSideQuestionRequest | SDKControlStopTaskRequest | SDKControlApplyFlagSettingsRequest | SDKControlGetSettingsRequest | SDKControlElicitationRequest;
|
|
1964
|
+
declare type SDKControlRequestInner = SDKControlInterruptRequest | SDKControlPermissionRequest | SDKControlInitializeRequest | SDKControlSetPermissionModeRequest | SDKControlSetModelRequest | SDKControlSetMaxThinkingTokensRequest | SDKControlMcpStatusRequest | SDKHookCallbackRequest | SDKControlMcpMessageRequest | SDKControlRewindFilesRequest | SDKControlCancelAsyncMessageRequest | SDKControlSeedReadStateRequest | SDKControlMcpSetServersRequest | SDKControlMcpReconnectRequest | SDKControlMcpToggleRequest | SDKControlChannelEnableRequest | SDKControlEndSessionRequest | SDKControlMcpAuthenticateRequest | SDKControlMcpClearAuthRequest | SDKControlMcpOAuthCallbackUrlRequest | SDKControlClaudeAuthenticateRequest | SDKControlClaudeOAuthCallbackRequest | SDKControlClaudeOAuthWaitForCompletionRequest | SDKControlRemoteControlRequest | SDKControlSetProactiveRequest | SDKControlGenerateSessionTitleRequest | SDKControlSideQuestionRequest | SDKControlStopTaskRequest | SDKControlApplyFlagSettingsRequest | SDKControlGetSettingsRequest | SDKControlElicitationRequest;
|
|
1941
1965
|
|
|
1942
1966
|
export declare type SDKControlResponse = {
|
|
1943
1967
|
type: 'control_response';
|
|
@@ -1987,6 +2011,7 @@ declare type SDKControlSetPermissionModeRequest = {
|
|
|
1987
2011
|
* Permission mode for controlling how tool executions are handled. 'default' - Standard behavior, prompts for dangerous operations. 'acceptEdits' - Auto-accept file edit operations. 'bypassPermissions' - Bypass all permission checks (requires allowDangerouslySkipPermissions). 'plan' - Planning mode, no actual tool execution. 'dontAsk' - Don't prompt for permissions, deny if not pre-approved.
|
|
1988
2012
|
*/
|
|
1989
2013
|
mode: coreTypes.PermissionMode;
|
|
2014
|
+
|
|
1990
2015
|
};
|
|
1991
2016
|
|
|
1992
2017
|
/**
|
|
@@ -2389,6 +2414,7 @@ export declare type SDKSystemMessage = {
|
|
|
2389
2414
|
plugins: {
|
|
2390
2415
|
name: string;
|
|
2391
2416
|
path: string;
|
|
2417
|
+
|
|
2392
2418
|
}[];
|
|
2393
2419
|
fast_mode_state?: FastModeState;
|
|
2394
2420
|
uuid: UUID;
|
|
@@ -3686,6 +3712,17 @@ export declare interface Settings {
|
|
|
3686
3712
|
* Custom directory for plan files, relative to project root. If not set, defaults to ~/.claude/plans/
|
|
3687
3713
|
*/
|
|
3688
3714
|
plansDirectory?: string;
|
|
3715
|
+
/**
|
|
3716
|
+
* Teams/Enterprise opt-in for channel notifications (MCP servers with the claude/channel capability pushing inbound messages). Default off. Set true to allow; users then select servers via --channels.
|
|
3717
|
+
*/
|
|
3718
|
+
channelsEnabled?: boolean;
|
|
3719
|
+
/**
|
|
3720
|
+
* Teams/Enterprise allowlist of channel plugins. When set, replaces the default Anthropic allowlist — admins decide which plugins may push inbound messages. Undefined falls back to the default. Requires channelsEnabled: true.
|
|
3721
|
+
*/
|
|
3722
|
+
allowedChannelPlugins?: {
|
|
3723
|
+
marketplace: string;
|
|
3724
|
+
plugin: string;
|
|
3725
|
+
}[];
|
|
3689
3726
|
/**
|
|
3690
3727
|
* Reduce or disable animations for accessibility (spinner shimmer, flash effects, etc.)
|
|
3691
3728
|
*/
|
|
@@ -3897,7 +3934,7 @@ export declare type SyncHookJSONOutput = {
|
|
|
3897
3934
|
systemMessage?: string;
|
|
3898
3935
|
reason?: string;
|
|
3899
3936
|
|
|
3900
|
-
hookSpecificOutput?: PreToolUseHookSpecificOutput | UserPromptSubmitHookSpecificOutput | SessionStartHookSpecificOutput | SetupHookSpecificOutput | SubagentStartHookSpecificOutput | PostToolUseHookSpecificOutput | PostToolUseFailureHookSpecificOutput | NotificationHookSpecificOutput | PermissionRequestHookSpecificOutput | ElicitationHookSpecificOutput | ElicitationResultHookSpecificOutput | CwdChangedHookSpecificOutput | FileChangedHookSpecificOutput;
|
|
3937
|
+
hookSpecificOutput?: PreToolUseHookSpecificOutput | UserPromptSubmitHookSpecificOutput | SessionStartHookSpecificOutput | SetupHookSpecificOutput | SubagentStartHookSpecificOutput | PostToolUseHookSpecificOutput | PostToolUseFailureHookSpecificOutput | NotificationHookSpecificOutput | PermissionRequestHookSpecificOutput | ElicitationHookSpecificOutput | ElicitationResultHookSpecificOutput | CwdChangedHookSpecificOutput | FileChangedHookSpecificOutput | WorktreeCreateHookSpecificOutput;
|
|
3901
3938
|
};
|
|
3902
3939
|
|
|
3903
3940
|
/**
|
|
@@ -3917,6 +3954,15 @@ export declare type TaskCompletedHookInput = BaseHookInput & {
|
|
|
3917
3954
|
team_name?: string;
|
|
3918
3955
|
};
|
|
3919
3956
|
|
|
3957
|
+
export declare type TaskCreatedHookInput = BaseHookInput & {
|
|
3958
|
+
hook_event_name: 'TaskCreated';
|
|
3959
|
+
task_id: string;
|
|
3960
|
+
task_subject: string;
|
|
3961
|
+
task_description?: string;
|
|
3962
|
+
teammate_name?: string;
|
|
3963
|
+
team_name?: string;
|
|
3964
|
+
};
|
|
3965
|
+
|
|
3920
3966
|
export declare type TeammateIdleHookInput = BaseHookInput & {
|
|
3921
3967
|
hook_event_name: 'TeammateIdle';
|
|
3922
3968
|
teammate_name: string;
|
|
@@ -4048,6 +4094,14 @@ export declare type WorktreeCreateHookInput = BaseHookInput & {
|
|
|
4048
4094
|
name: string;
|
|
4049
4095
|
};
|
|
4050
4096
|
|
|
4097
|
+
/**
|
|
4098
|
+
* Hook-specific output for the WorktreeCreate event. Provides the absolute path to the created worktree directory. Command hooks print the path on stdout instead.
|
|
4099
|
+
*/
|
|
4100
|
+
export declare type WorktreeCreateHookSpecificOutput = {
|
|
4101
|
+
hookEventName: 'WorktreeCreate';
|
|
4102
|
+
worktreePath: string;
|
|
4103
|
+
};
|
|
4104
|
+
|
|
4051
4105
|
export declare type WorktreeRemoveHookInput = BaseHookInput & {
|
|
4052
4106
|
hook_event_name: 'WorktreeRemove';
|
|
4053
4107
|
worktree_path: string;
|