@anthropic-ai/claude-agent-sdk 0.2.87 → 0.2.89

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/manifest.json CHANGED
@@ -1,46 +1,46 @@
1
1
  {
2
- "version": "2.1.87",
3
- "buildDate": "2026-03-29T01:45:06Z",
2
+ "version": "2.1.89",
3
+ "buildDate": "2026-03-31T23:01:10Z",
4
4
  "platforms": {
5
5
  "darwin-arm64": {
6
6
  "binary": "claude",
7
- "checksum": "80b51562db1a51bfb654aec1fea6a04106daa0bc1525d88c9c74741ff5d9469a",
8
- "size": 196638704
7
+ "checksum": "f903a5e53f845b1ac5566296b713193827665f28da16300fdca7539cb0669a7f",
8
+ "size": 196886384
9
9
  },
10
10
  "darwin-x64": {
11
11
  "binary": "claude",
12
- "checksum": "c1a4cde29e74e4c3952ead69f90a37a2388aa097d7c567a81ca3669a309e9226",
13
- "size": 198132816
12
+ "checksum": "1322c5eecec8047e9cd7114f7d547ef6a9596563d6bbc7e594167d0f8bc8b406",
13
+ "size": 198397008
14
14
  },
15
15
  "linux-arm64": {
16
16
  "binary": "claude",
17
- "checksum": "193c5e9c091eadde302fa23af46c8d646b7263f74fa06ed32746e504bd09df18",
18
- "size": 228461120
17
+ "checksum": "428301f56cf0139e6fbfa55e13be3f0f032ac1eb5ddb8849fbc703ee220c1cca",
18
+ "size": 228657728
19
19
  },
20
20
  "linux-x64": {
21
21
  "binary": "claude",
22
- "checksum": "b1a5b89469862adee0e4dc28cab5a8314bc4d0117e19ab26a7b7ff7ce9b59bd5",
23
- "size": 228280960
22
+ "checksum": "903cb3c96b314d86856632c8702f5cdf971b804d0b19ef87446573bcd1d7df1c",
23
+ "size": 228473472
24
24
  },
25
25
  "linux-arm64-musl": {
26
26
  "binary": "claude",
27
- "checksum": "38e56d4a62778f429b1caa875a4a6e53db8eda256091f58afb5cf2043e492131",
28
- "size": 221579712
27
+ "checksum": "7cb5fd60f3d2366672857077f3bd0f93ab83dffebd8f93c70344afa58bdb91ec",
28
+ "size": 221776320
29
29
  },
30
30
  "linux-x64-musl": {
31
31
  "binary": "claude",
32
- "checksum": "aba2c3a8927c53f981a4ad2b18915b2a1a1511b3b4e3b5e8797d23dbb0bf5eea",
33
- "size": 222906816
32
+ "checksum": "60941916f0a5656a5952a0f2f54228f574f8756ea503119f858724ad43c9b28d",
33
+ "size": 223099328
34
34
  },
35
35
  "win32-x64": {
36
36
  "binary": "claude.exe",
37
- "checksum": "c722ff8836e7a90b5c62fd5cb6549887dc314e7e8d9551c01df1718d9198ecdf",
38
- "size": 238222496
37
+ "checksum": "2e312000b538f11d13f1dfc52d4131996895b9a07bd8897d8f9153635d4ea092",
38
+ "size": 238557856
39
39
  },
40
40
  "win32-arm64": {
41
41
  "binary": "claude.exe",
42
- "checksum": "5c3e5f706685963c83cdc5dd2ec86a89e5a897bd6ec82298311abb43280ffa30",
43
- "size": 234785440
42
+ "checksum": "5f1d597c542aac3a11f557e12c92d0c49220ab77e741014b0599a572d81ca679",
43
+ "size": 235014304
44
44
  }
45
45
  }
46
46
  }
package/manifest.zst.json CHANGED
@@ -1,54 +1,54 @@
1
1
  {
2
- "version": "2.1.87",
3
- "buildDate": "2026-03-29T01:45:07Z",
2
+ "version": "2.1.89",
3
+ "buildDate": "2026-03-31T23:01:11Z",
4
4
  "platforms": {
5
5
  "darwin-arm64": {
6
6
  "binary": "claude.zst",
7
- "checksum": "29a4dfb19fea56dc0a2ae9420d5e3fbd8a30f1b5f8a10f67376ccf50822d2f7f",
8
- "size": 40737146,
7
+ "checksum": "ee6870995b94768b165410dc18e5523d840b149657ed52dba45e6dfef075da48",
8
+ "size": 40741984,
9
9
  "bundle": {
10
- "checksum": "144409985ca6563fade30464dab61c1580f951092d2eb9ebecc914eb519c59c0",
11
- "size": 40745941
10
+ "checksum": "0eaf878b84a8f2f2d86bb5c8dd1f25a20ed37fd34c8bc7f7e65e057f2e38389c",
11
+ "size": 40746913
12
12
  }
13
13
  },
14
14
  "darwin-x64": {
15
15
  "binary": "claude.zst",
16
- "checksum": "51208c0db62ace5531841609b64ec6898dabd7c5517a5ae6710a1c1b38633aad",
17
- "size": 42383431,
16
+ "checksum": "d698b7101ad599a6d98c4bad7ced35e24e789693a70abdd1dc42064b5a9a7701",
17
+ "size": 42386954,
18
18
  "bundle": {
19
- "checksum": "d5209644984ac2edd1d6fda2acbcfbbf6a9add76303f4111508bbab52bca4b01",
20
- "size": 42371152
19
+ "checksum": "cb030dd63605eac527e83bb436578ad7472c1da01bb59abfa6596bf5a054eea2",
20
+ "size": 42383339
21
21
  }
22
22
  },
23
23
  "linux-arm64": {
24
24
  "binary": "claude.zst",
25
- "checksum": "6c04ee19b7b039556e2395766d6d004e59fe6a5b2288ce94501945575dcfee42",
26
- "size": 50454874
25
+ "checksum": "09ba9e09dee846d924f8a0ec28f7fabd127260d1a5b8e9d3e896fdbeb17a4ff5",
26
+ "size": 50422513
27
27
  },
28
28
  "linux-x64": {
29
29
  "binary": "claude.zst",
30
- "checksum": "4bd9662fea09e5450c6af0ad6289b1f1ac741ca225247dce8ad56c70f3da11f8",
31
- "size": 50942389
30
+ "checksum": "5a909d13f308be6c7bb341ca7a0b0de6ce048fc336f4bbe8ab6fdddc45f0d5ec",
31
+ "size": 50918863
32
32
  },
33
33
  "linux-arm64-musl": {
34
34
  "binary": "claude.zst",
35
- "checksum": "3c706da3d080c13edee582890bca9dc906aac30fce2a21b43e0cdca252b3bab0",
36
- "size": 49018272
35
+ "checksum": "7399c3c9d4d79651de9a3db2df6064bede6f5027ef2fdde6dfbf32b4eb0c35d7",
36
+ "size": 49008572
37
37
  },
38
38
  "linux-x64-musl": {
39
39
  "binary": "claude.zst",
40
- "checksum": "c47d80ba01ab2ddb9c24b1cfb4b4f15faf7277a0a5a28bb9242382550c533fdc",
41
- "size": 49669703
40
+ "checksum": "5c68a381a31ed52494b2bb77d8969fa8a97aaedd8fb3636e32cf81fa2a1e9b3c",
41
+ "size": 49687404
42
42
  },
43
43
  "win32-x64": {
44
44
  "binary": "claude.exe.zst",
45
- "checksum": "662ff375f3e938a06450c3f3e23834bc69ddbbf4ca601334d924760996bf5954",
46
- "size": 52563492
45
+ "checksum": "41572f32d4b3cd8b24fa7a367d56bd7fdbcb21ca07c515d25ff44228e7c8cb6a",
46
+ "size": 52644178
47
47
  },
48
48
  "win32-arm64": {
49
49
  "binary": "claude.exe.zst",
50
- "checksum": "aeeb7a301eb188c392d194e30d451fa7ca6b6b81dd23ff1b99c5c73471c165e7",
51
- "size": 50757591
50
+ "checksum": "536c03ee45cb9c4e29d42fb81c8d64d499972664348d924c54663b0f8558f8de",
51
+ "size": 50813305
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.87",
3
+ "version": "0.2.89",
4
4
  "main": "sdk.mjs",
5
5
  "types": "sdk.d.ts",
6
6
  "exports": {
@@ -65,5 +65,5 @@
65
65
  "@img/sharp-win32-arm64": "^0.34.2",
66
66
  "@img/sharp-win32-x64": "^0.34.2"
67
67
  },
68
- "claudeCodeVersion": "2.1.87"
68
+ "claudeCodeVersion": "2.1.89"
69
69
  }
package/sdk-tools.d.ts CHANGED
@@ -2214,6 +2214,10 @@ export interface BashOutput {
2214
2214
  * Total size of the output in bytes (set when output is too large for inline)
2215
2215
  */
2216
2216
  persistedOutputSize?: number;
2217
+ /**
2218
+ * Model-facing note listing readFileState entries whose mtime bumped during this command (set when WRITE_COMMAND_MARKERS matches)
2219
+ */
2220
+ staleReadFileStateHint?: string;
2217
2221
  }
2218
2222
  export interface ExitPlanModeOutput {
2219
2223
  /**
package/sdk.d.ts CHANGED
@@ -73,6 +73,22 @@ export declare type AgentDefinition = {
73
73
  * Maximum number of agentic turns (API round-trips) before stopping
74
74
  */
75
75
  maxTurns?: number;
76
+ /**
77
+ * Run this agent as a background task (non-blocking, fire-and-forget) when invoked
78
+ */
79
+ background?: boolean;
80
+ /**
81
+ * Scope for auto-loading agent memory files. 'user' - ~/.claude/agent-memory/<agentType>/, 'project' - .claude/agent-memory/<agentType>/, 'local' - .claude/agent-memory-local/<agentType>/
82
+ */
83
+ memory?: 'user' | 'project' | 'local';
84
+ /**
85
+ * Reasoning effort level for this agent. Either a named level or an integer
86
+ */
87
+ effort?: ('low' | 'medium' | 'high' | 'max') | number;
88
+ /**
89
+ * Permission mode controlling how tool executions are handled
90
+ */
91
+ permissionMode?: PermissionMode;
76
92
  };
77
93
 
78
94
  /**
@@ -227,6 +243,7 @@ declare namespace coreTypes {
227
243
  HookEvent,
228
244
  HookInput,
229
245
  HookJSONOutput,
246
+ HookPermissionDecision,
230
247
  InstructionsLoadedHookInput,
231
248
  JsonSchemaOutputFormat,
232
249
  McpClaudeAIProxyServerConfig,
@@ -246,6 +263,8 @@ declare namespace coreTypes {
246
263
  OutputFormatType,
247
264
  PermissionBehavior,
248
265
  PermissionDecisionClassification,
266
+ PermissionDeniedHookInput,
267
+ PermissionDeniedHookSpecificOutput,
249
268
  PermissionMode,
250
269
  PermissionRequestHookInput,
251
270
  PermissionRequestHookSpecificOutput,
@@ -270,6 +289,7 @@ declare namespace coreTypes {
270
289
  SDKAssistantMessage,
271
290
  SDKAuthStatusMessage,
272
291
  SDKCompactBoundaryMessage,
292
+ SDKDeferredToolUse,
273
293
  SDKElicitationCompleteMessage,
274
294
  SDKFilesPersistedEvent,
275
295
  SDKHookProgressMessage,
@@ -509,11 +529,12 @@ export declare type GetSessionInfoOptions = {
509
529
  * Reads a session's conversation messages from its JSONL transcript file.
510
530
  *
511
531
  * Parses the transcript, builds the conversation chain via parentUuid links,
512
- * and returns user/assistant messages in chronological order.
532
+ * and returns user/assistant messages in chronological order. Set
533
+ * `includeSystemMessages: true` in options to also include system messages.
513
534
  *
514
535
  * @param sessionId - UUID of the session to read
515
- * @param options - Optional dir, limit, and offset
516
- * @returns Array of user/assistant messages, or empty array if session not found
536
+ * @param options - Optional dir, limit, offset, and includeSystemMessages
537
+ * @returns Array of messages, or empty array if session not found
517
538
  */
518
539
  export declare function getSessionMessages(_sessionId: string, _options?: GetSessionMessagesOptions): Promise<SessionMessage[]>;
519
540
 
@@ -527,9 +548,40 @@ export declare type GetSessionMessagesOptions = {
527
548
  limit?: number;
528
549
  /** Number of messages to skip from the start. */
529
550
  offset?: number;
551
+ /**
552
+ * When true, include system messages (e.g., compact boundaries, informational
553
+ * notices) in the returned list alongside user/assistant messages.
554
+ * Defaults to false for backwards compatibility.
555
+ */
556
+ includeSystemMessages?: boolean;
530
557
  };
531
558
 
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"];
559
+ /**
560
+ * Reads a subagent's conversation messages from its JSONL transcript file.
561
+ *
562
+ * Parses the subagent transcript, builds the conversation chain via parentUuid
563
+ * links, and returns user/assistant messages in chronological order.
564
+ *
565
+ * @param sessionId - UUID of the parent session
566
+ * @param agentId - ID of the subagent
567
+ * @param options - Optional dir, limit, and offset
568
+ * @returns Array of user/assistant messages, or empty array if not found
569
+ */
570
+ export declare function getSubagentMessages(_sessionId: string, _agentId: string, _options?: GetSubagentMessagesOptions): Promise<SessionMessage[]>;
571
+
572
+ /**
573
+ * Options for retrieving subagent messages.
574
+ */
575
+ export declare type GetSubagentMessagesOptions = {
576
+ /** Project directory to find the session in. If omitted, searches all projects. */
577
+ dir?: string;
578
+ /** Maximum number of messages to return. */
579
+ limit?: number;
580
+ /** Number of messages to skip from the start. */
581
+ offset?: number;
582
+ };
583
+
584
+ export declare const HOOK_EVENTS: readonly ["PreToolUse", "PostToolUse", "PostToolUseFailure", "Notification", "UserPromptSubmit", "SessionStart", "SessionEnd", "Stop", "StopFailure", "SubagentStart", "SubagentStop", "PreCompact", "PostCompact", "PermissionRequest", "PermissionDenied", "Setup", "TeammateIdle", "TaskCreated", "TaskCompleted", "Elicitation", "ElicitationResult", "ConfigChange", "WorktreeCreate", "WorktreeRemove", "InstructionsLoaded", "CwdChanged", "FileChanged"];
533
585
 
534
586
  /**
535
587
  * Hook callback function for responding to events during execution.
@@ -548,12 +600,14 @@ export declare interface HookCallbackMatcher {
548
600
  timeout?: number;
549
601
  }
550
602
 
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';
603
+ export declare type HookEvent = 'PreToolUse' | 'PostToolUse' | 'PostToolUseFailure' | 'Notification' | 'UserPromptSubmit' | 'SessionStart' | 'SessionEnd' | 'Stop' | 'StopFailure' | 'SubagentStart' | 'SubagentStop' | 'PreCompact' | 'PostCompact' | 'PermissionRequest' | 'PermissionDenied' | 'Setup' | 'TeammateIdle' | 'TaskCreated' | 'TaskCompleted' | 'Elicitation' | 'ElicitationResult' | 'ConfigChange' | 'WorktreeCreate' | 'WorktreeRemove' | 'InstructionsLoaded' | 'CwdChanged' | 'FileChanged';
552
604
 
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;
605
+ export declare type HookInput = PreToolUseHookInput | PostToolUseHookInput | PostToolUseFailureHookInput | PermissionDeniedHookInput | NotificationHookInput | UserPromptSubmitHookInput | SessionStartHookInput | SessionEndHookInput | StopHookInput | StopFailureHookInput | SubagentStartHookInput | SubagentStopHookInput | PreCompactHookInput | PostCompactHookInput | PermissionRequestHookInput | SetupHookInput | TeammateIdleHookInput | TaskCreatedHookInput | TaskCompletedHookInput | ElicitationHookInput | ElicitationResultHookInput | ConfigChangeHookInput | InstructionsLoadedHookInput | WorktreeCreateHookInput | WorktreeRemoveHookInput | CwdChangedHookInput | FileChangedHookInput;
554
606
 
555
607
  export declare type HookJSONOutput = AsyncHookJSONOutput | SyncHookJSONOutput;
556
608
 
609
+ export declare type HookPermissionDecision = 'allow' | 'deny' | 'ask' | 'defer';
610
+
557
611
  export declare type InferShape<T extends AnyZodRawShape> = {
558
612
  [K in keyof T]: T[K] extends {
559
613
  _output: infer O;
@@ -620,6 +674,26 @@ export declare type ListSessionsOptions = {
620
674
  includeWorktrees?: boolean;
621
675
  };
622
676
 
677
+ /**
678
+ * Lists subagent IDs for a given session by scanning the subagents directory.
679
+ *
680
+ * Subagent transcripts are stored at
681
+ * `~/.claude/projects/<dir>/<sessionId>/subagents/agent-<agentId>.jsonl`.
682
+ *
683
+ * @param sessionId - UUID of the session
684
+ * @param options - Optional dir to narrow the project search
685
+ * @returns Array of subagent ID strings, or empty array if none found
686
+ */
687
+ export declare function listSubagents(_sessionId: string, _options?: ListSubagentsOptions): Promise<string[]>;
688
+
689
+ /**
690
+ * Options for listing subagents.
691
+ */
692
+ export declare type ListSubagentsOptions = {
693
+ /** Project directory to find the session in. If omitted, searches all projects. */
694
+ dir?: string;
695
+ };
696
+
623
697
  export declare type McpClaudeAIProxyServerConfig = {
624
698
  type: 'claudeai-proxy';
625
699
  url: string;
@@ -999,6 +1073,16 @@ export declare type Options = {
999
1073
  * @default true
1000
1074
  */
1001
1075
  persistSession?: boolean;
1076
+ /**
1077
+ * Include hook lifecycle events in the output stream.
1078
+ * When true, `hook_started`, `hook_progress`, and `hook_response` system
1079
+ * messages will be emitted for all hook event types (PreToolUse, PostToolUse,
1080
+ * Stop, etc.). SessionStart and Setup hook events are always emitted
1081
+ * regardless of this setting.
1082
+ *
1083
+ * @default false
1084
+ */
1085
+ includeHookEvents?: boolean;
1002
1086
  /**
1003
1087
  * Include partial/streaming message events in the output.
1004
1088
  * When true, `SDKPartialAssistantMessage` events will be emitted during streaming.
@@ -1313,6 +1397,19 @@ export declare type PermissionBehavior = 'allow' | 'deny' | 'ask';
1313
1397
  */
1314
1398
  export declare type PermissionDecisionClassification = 'user_temporary' | 'user_permanent' | 'user_reject';
1315
1399
 
1400
+ export declare type PermissionDeniedHookInput = BaseHookInput & {
1401
+ hook_event_name: 'PermissionDenied';
1402
+ tool_name: string;
1403
+ tool_input: unknown;
1404
+ tool_use_id: string;
1405
+ reason: string;
1406
+ };
1407
+
1408
+ export declare type PermissionDeniedHookSpecificOutput = {
1409
+ hookEventName: 'PermissionDenied';
1410
+ retry?: boolean;
1411
+ };
1412
+
1316
1413
  /**
1317
1414
  * 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.
1318
1415
  */
@@ -1440,7 +1537,7 @@ export declare type PreToolUseHookInput = BaseHookInput & {
1440
1537
 
1441
1538
  export declare type PreToolUseHookSpecificOutput = {
1442
1539
  hookEventName: 'PreToolUse';
1443
- permissionDecision?: PermissionBehavior;
1540
+ permissionDecision?: HookPermissionDecision;
1444
1541
  permissionDecisionReason?: string;
1445
1542
  updatedInput?: Record<string, unknown>;
1446
1543
  additionalContext?: string;
@@ -2159,6 +2256,12 @@ declare type SDKControlStopTaskRequest = {
2159
2256
  task_id: string;
2160
2257
  };
2161
2258
 
2259
+ export declare type SDKDeferredToolUse = {
2260
+ id: string;
2261
+ name: string;
2262
+ input: Record<string, unknown>;
2263
+ };
2264
+
2162
2265
  /**
2163
2266
  * Emitted when an MCP server confirms that a URL-mode elicitation is complete.
2164
2267
  */
@@ -2378,6 +2481,7 @@ export declare type SDKResultSuccess = {
2378
2481
  modelUsage: Record<string, ModelUsage>;
2379
2482
  permission_denials: SDKPermissionDenial[];
2380
2483
  structured_output?: unknown;
2484
+ deferred_tool_use?: SDKDeferredToolUse;
2381
2485
  fast_mode_state?: FastModeState;
2382
2486
  uuid: UUID;
2383
2487
  session_id: string;
@@ -2657,6 +2761,7 @@ export declare type SDKUserMessageReplay = {
2657
2761
  uuid: UUID;
2658
2762
  session_id: string;
2659
2763
  isReplay: true;
2764
+ file_attachments?: unknown[];
2660
2765
  };
2661
2766
 
2662
2767
  export declare type SessionEndHookInput = BaseHookInput & {
@@ -2665,11 +2770,11 @@ export declare type SessionEndHookInput = BaseHookInput & {
2665
2770
  };
2666
2771
 
2667
2772
  /**
2668
- * A user or assistant message from a session transcript.
2773
+ * A message from a session transcript.
2669
2774
  * Returned by `getSessionMessages` for reading historical session data.
2670
2775
  */
2671
2776
  export declare type SessionMessage = {
2672
- type: 'user' | 'assistant';
2777
+ type: 'user' | 'assistant' | 'system';
2673
2778
  uuid: string;
2674
2779
  session_id: string;
2675
2780
  message: unknown;
@@ -2743,7 +2848,7 @@ export declare interface Settings {
2743
2848
  */
2744
2849
  respectGitignore?: boolean;
2745
2850
  /**
2746
- * Number of days to retain chat transcripts (default: 30). Setting to 0 disables session persistence entirely: no transcripts are written and existing transcripts are deleted at startup.
2851
+ * Number of days to retain chat transcripts before automatic cleanup (default: 30). Minimum 1. Use a large value for long retention; use --no-session-persistence to disable transcript writes entirely.
2747
2852
  */
2748
2853
  cleanupPeriodDays?: number;
2749
2854
  /**
@@ -3669,9 +3774,9 @@ export declare interface Settings {
3669
3774
  */
3670
3775
  forceLoginMethod?: 'claudeai' | 'console';
3671
3776
  /**
3672
- * Organization UUID to use for OAuth login
3777
+ * Organization UUID to require for OAuth login. Accepts a single UUID string or an array of UUIDs (any one is permitted). When set in managed settings, login fails if the authenticated account does not belong to a listed organization.
3673
3778
  */
3674
- forceLoginOrgUUID?: string;
3779
+ forceLoginOrgUUID?: string | string[];
3675
3780
  /**
3676
3781
  * Path to a script that outputs OpenTelemetry headers
3677
3782
  */
@@ -3795,6 +3900,10 @@ export declare interface Settings {
3795
3900
  * Persisted effort level for supported models.
3796
3901
  */
3797
3902
  effortLevel?: 'low' | 'medium' | 'high';
3903
+ /**
3904
+ * Auto-compact window size
3905
+ */
3906
+ autoCompactWindow?: number;
3798
3907
  /**
3799
3908
  * Advisor model for the server-side advisor tool.
3800
3909
  */
@@ -4087,7 +4196,7 @@ export declare type SyncHookJSONOutput = {
4087
4196
  systemMessage?: string;
4088
4197
  reason?: string;
4089
4198
 
4090
- hookSpecificOutput?: PreToolUseHookSpecificOutput | UserPromptSubmitHookSpecificOutput | SessionStartHookSpecificOutput | SetupHookSpecificOutput | SubagentStartHookSpecificOutput | PostToolUseHookSpecificOutput | PostToolUseFailureHookSpecificOutput | NotificationHookSpecificOutput | PermissionRequestHookSpecificOutput | ElicitationHookSpecificOutput | ElicitationResultHookSpecificOutput | CwdChangedHookSpecificOutput | FileChangedHookSpecificOutput | WorktreeCreateHookSpecificOutput;
4199
+ hookSpecificOutput?: PreToolUseHookSpecificOutput | UserPromptSubmitHookSpecificOutput | SessionStartHookSpecificOutput | SetupHookSpecificOutput | SubagentStartHookSpecificOutput | PostToolUseHookSpecificOutput | PostToolUseFailureHookSpecificOutput | PermissionDeniedHookSpecificOutput | NotificationHookSpecificOutput | PermissionRequestHookSpecificOutput | ElicitationHookSpecificOutput | ElicitationResultHookSpecificOutput | CwdChangedHookSpecificOutput | FileChangedHookSpecificOutput | WorktreeCreateHookSpecificOutput;
4091
4200
  };
4092
4201
 
4093
4202
  /**