@swifty.js/swifty 0.0.36 → 0.0.37

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.
Files changed (35) hide show
  1. package/README.md +8 -8
  2. package/dist/{acp-ZU5LZRUP.js → acp-R22FJPVN.js} +1 -1
  3. package/dist/{agent-YDU6HB4S.js → agent-WOWGQDBG.js} +1 -1
  4. package/dist/anthropic-3DXT42SN.js +4 -0
  5. package/dist/{chunk-MTAGHTBG.js → chunk-ENZ5LHRN.js} +4 -4
  6. package/dist/{chunk-RDVRYI56.js → chunk-FOPUR6OB.js} +11 -11
  7. package/dist/{chunk-EEEW3GG4.js → chunk-LW273HD5.js} +1 -1
  8. package/dist/{chunk-Q3NPRV5P.js → chunk-QBGGDF62.js} +1 -1
  9. package/dist/{chunk-MNP6IJ7C.js → chunk-R62BGTT4.js} +2 -2
  10. package/dist/chunk-S2VEXEVV.js +4 -0
  11. package/dist/{chunk-H56UQALW.js → chunk-VN7HK3YD.js} +1 -1
  12. package/dist/chunk-YBS5ATGZ.js +4 -0
  13. package/dist/esm-VBV56AO5.js +229 -0
  14. package/dist/lib/{agent-ZMIS6IH6.js → agent-ZSFK66FQ.js} +2 -2
  15. package/dist/lib/{anthropic-FKIGL7NL.js → anthropic-GD3ILYG6.js} +1 -1
  16. package/dist/lib/{chunk-YUDCYSKO.js → chunk-5OJV33Y2.js} +17 -9
  17. package/dist/lib/{chunk-LRN4MOQ3.js → chunk-GWZDEU27.js} +0 -5
  18. package/dist/lib/{chunk-ALQHMYOZ.js → chunk-LKFJIK6F.js} +0 -3
  19. package/dist/lib/{chunk-PJ7354ZG.js → chunk-O35GIE35.js} +1 -1
  20. package/dist/lib/{chunk-6V7RW6HA.js → chunk-TD7Z6L4D.js} +10 -13
  21. package/dist/lib/index.d.ts +215 -491
  22. package/dist/lib/index.js +17 -358
  23. package/dist/lib/{openai-ZWIYIBLC.js → openai-N6X7XUQJ.js} +1 -1
  24. package/dist/lib/{providers-5SJFTU2G.js → providers-WQ3UOLMF.js} +1 -1
  25. package/dist/lib/{tool-filter-QU4LOZII.js → tool-filter-S3ZZOXFD.js} +1 -1
  26. package/dist/main.js +164 -164
  27. package/dist/{openai-7LMX5HKW.js → openai-XMJVVTTX.js} +1 -1
  28. package/dist/{providers-FQCJFM3Q.js → providers-NWLGMQOZ.js} +1 -1
  29. package/dist/{server-C6H5ZWUG.js → server-TINTK5DM.js} +1 -1
  30. package/dist/{tool-filter-U5SSL3LR.js → tool-filter-QETBQPHL.js} +1 -1
  31. package/package.json +2 -2
  32. package/dist/anthropic-GDT73MMP.js +0 -4
  33. package/dist/chunk-I7XJSLRI.js +0 -4
  34. package/dist/chunk-UJGMTIYO.js +0 -4
  35. package/dist/esm-PDXUGWFK.js +0 -229
@@ -2,11 +2,9 @@ import * as acp from '@agentclientprotocol/sdk';
2
2
  import { InitializeRequest, InitializeResponse, NewSessionRequest, NewSessionResponse, LoadSessionRequest, ResumeSessionRequest, ListSessionsRequest, ListSessionsResponse, PromptRequest, AgentRequestContext, PromptResponse, CancelNotification, CloseSessionRequest, AgentApp, Usage, SessionUpdate, SessionNotification, ContentBlock, StopReason, ToolKind, ToolCallLocation } from '@agentclientprotocol/sdk';
3
3
  import z, { z as z$1 } from 'zod';
4
4
  import Anthropic from '@anthropic-ai/sdk';
5
- import { BetaToolComputerUse20251124 } from '@anthropic-ai/sdk/resources/beta/messages/messages';
6
5
  import OpenAI from 'openai';
7
6
  import { Logger } from 'pino';
8
7
  import { SandboxRuntimeConfig } from '@anthropic-ai/sandbox-runtime';
9
- import * as react from 'react';
10
8
  import { Transport } from '@modelcontextprotocol/sdk/shared/transport.js';
11
9
  import { JSONRPCMessage } from '@modelcontextprotocol/sdk/types.js';
12
10
 
@@ -169,13 +167,13 @@ declare class FileHistory {
169
167
  save(): void;
170
168
  }
171
169
 
172
- type index$w_Backup = Backup;
173
- type index$w_FileHistory = FileHistory;
174
- declare const index$w_FileHistory: typeof FileHistory;
175
- type index$w_Snapshot = Snapshot;
176
- declare const index$w_fileHistoryDir: typeof fileHistoryDir;
177
- declare namespace index$w {
178
- export { type index$w_Backup as Backup, index$w_FileHistory as FileHistory, type index$w_Snapshot as Snapshot, index$w_fileHistoryDir as fileHistoryDir };
170
+ type index$v_Backup = Backup;
171
+ type index$v_FileHistory = FileHistory;
172
+ declare const index$v_FileHistory: typeof FileHistory;
173
+ type index$v_Snapshot = Snapshot;
174
+ declare const index$v_fileHistoryDir: typeof fileHistoryDir;
175
+ declare namespace index$v {
176
+ export { type index$v_Backup as Backup, index$v_FileHistory as FileHistory, type index$v_Snapshot as Snapshot, index$v_fileHistoryDir as fileHistoryDir };
179
177
  }
180
178
 
181
179
  /**
@@ -259,20 +257,20 @@ declare class PermissionChecker {
259
257
  describeToolAction(toolName: string, args: Record<string, unknown>): string;
260
258
  }
261
259
 
262
- type index$v_Decision = Decision;
263
- type index$v_DecisionEffect = DecisionEffect;
264
- type index$v_PathSandbox = PathSandbox;
265
- declare const index$v_PathSandbox: typeof PathSandbox;
266
- type index$v_PermissionChecker = PermissionChecker;
267
- declare const index$v_PermissionChecker: typeof PermissionChecker;
268
- type index$v_PermissionMode = PermissionMode;
269
- type index$v_RuleEngine = RuleEngine;
270
- declare const index$v_RuleEngine: typeof RuleEngine;
271
- declare const index$v_evaluateRules: typeof evaluateRules;
272
- declare const index$v_extractContent: typeof extractContent;
273
- declare const index$v_isSafeCommand: typeof isSafeCommand;
274
- declare namespace index$v {
275
- export { type index$v_Decision as Decision, type index$v_DecisionEffect as DecisionEffect, index$v_PathSandbox as PathSandbox, index$v_PermissionChecker as PermissionChecker, type index$v_PermissionMode as PermissionMode, index$v_RuleEngine as RuleEngine, index$v_evaluateRules as evaluateRules, index$v_extractContent as extractContent, index$v_isSafeCommand as isSafeCommand };
260
+ type index$u_Decision = Decision;
261
+ type index$u_DecisionEffect = DecisionEffect;
262
+ type index$u_PathSandbox = PathSandbox;
263
+ declare const index$u_PathSandbox: typeof PathSandbox;
264
+ type index$u_PermissionChecker = PermissionChecker;
265
+ declare const index$u_PermissionChecker: typeof PermissionChecker;
266
+ type index$u_PermissionMode = PermissionMode;
267
+ type index$u_RuleEngine = RuleEngine;
268
+ declare const index$u_RuleEngine: typeof RuleEngine;
269
+ declare const index$u_evaluateRules: typeof evaluateRules;
270
+ declare const index$u_extractContent: typeof extractContent;
271
+ declare const index$u_isSafeCommand: typeof isSafeCommand;
272
+ declare namespace index$u {
273
+ export { type index$u_Decision as Decision, type index$u_DecisionEffect as DecisionEffect, index$u_PathSandbox as PathSandbox, index$u_PermissionChecker as PermissionChecker, type index$u_PermissionMode as PermissionMode, index$u_RuleEngine as RuleEngine, index$u_evaluateRules as evaluateRules, index$u_extractContent as extractContent, index$u_isSafeCommand as isSafeCommand };
276
274
  }
277
275
 
278
276
  /**
@@ -467,7 +465,6 @@ interface ToolSchema {
467
465
  required?: string[];
468
466
  [keyword: string]: unknown;
469
467
  };
470
- allowed_callers?: ("direct" | "code_execution_20250825" | "code_execution_20260120")[];
471
468
  cache_control?: {
472
469
  type: "ephemeral";
473
470
  ttl?: "5m" | "1h";
@@ -475,11 +472,10 @@ interface ToolSchema {
475
472
  eager_input_streaming?: boolean;
476
473
  }
477
474
  type ToolProtocol = "anthropic" | "openai" | "openai-compat";
478
- type AnthropicToolSchema = ToolSchema | Anthropic.Tool | BetaToolComputerUse20251124;
479
- type OpenAIResponsesToolSchema = OpenAI.Responses.FunctionTool | OpenAI.Responses.ComputerTool;
475
+ type AnthropicToolSchema = ToolSchema | Anthropic.Tool;
476
+ type OpenAIResponsesToolSchema = OpenAI.Responses.FunctionTool;
480
477
  type OpenAICompatToolSchema = OpenAI.ChatCompletionFunctionTool;
481
478
  type ProviderToolSchema = ToolSchema | AnthropicToolSchema | OpenAIResponsesToolSchema | OpenAICompatToolSchema;
482
- type ProviderNativeToolSchema = BetaToolComputerUse20251124 | OpenAI.Responses.ComputerTool;
483
479
  interface Tool {
484
480
  name: string;
485
481
  description: string;
@@ -498,12 +494,6 @@ interface Tool {
498
494
  * trip, so they are never deferred and always ship their full schema.
499
495
  */
500
496
  deferred?: boolean;
501
- /**
502
- * Return a provider-native declaration when the protocol supports this tool
503
- * natively. Returning undefined lets the registry serialize schema() as a
504
- * regular custom/function tool.
505
- */
506
- providerSchema?(protocol: ToolProtocol): ProviderNativeToolSchema | undefined;
507
497
  /**
508
498
  * Whether this particular invocation can run concurrently with others,
509
499
  * judged by actual arguments rather than just the tool category.
@@ -526,7 +516,6 @@ type types_McpLoadingMode = McpLoadingMode;
526
516
  type types_OpenAICompatToolSchema = OpenAICompatToolSchema;
527
517
  type types_OpenAIResponsesToolSchema = OpenAIResponsesToolSchema;
528
518
  type types_PermissionRequestHandler = PermissionRequestHandler;
529
- type types_ProviderNativeToolSchema = ProviderNativeToolSchema;
530
519
  type types_ProviderToolSchema = ProviderToolSchema;
531
520
  declare const types_SKIP_DIRS: typeof SKIP_DIRS;
532
521
  type types_Tool = Tool;
@@ -539,7 +528,7 @@ type types_ToolSchema = ToolSchema;
539
528
  declare const types_isToolResultContentBlock: typeof isToolResultContentBlock;
540
529
  declare const types_normalizeToolResultContentBlock: typeof normalizeToolResultContentBlock;
541
530
  declare namespace types {
542
- export { type types_AnthropicToolSchema as AnthropicToolSchema, type types_MCPToolLike as MCPToolLike, type types_McpLoadingMode as McpLoadingMode, type types_OpenAICompatToolSchema as OpenAICompatToolSchema, type types_OpenAIResponsesToolSchema as OpenAIResponsesToolSchema, type types_PermissionRequestHandler as PermissionRequestHandler, type types_ProviderNativeToolSchema as ProviderNativeToolSchema, type types_ProviderToolSchema as ProviderToolSchema, types_SKIP_DIRS as SKIP_DIRS, type types_Tool as Tool, type types_ToolCategory as ToolCategory, type types_ToolContext as ToolContext, type types_ToolProtocol as ToolProtocol, type types_ToolResult as ToolResult, type types_ToolResultContentBlock as ToolResultContentBlock, type types_ToolSchema as ToolSchema, types_isToolResultContentBlock as isToolResultContentBlock, types_normalizeToolResultContentBlock as normalizeToolResultContentBlock };
531
+ export { type types_AnthropicToolSchema as AnthropicToolSchema, type types_MCPToolLike as MCPToolLike, type types_McpLoadingMode as McpLoadingMode, type types_OpenAICompatToolSchema as OpenAICompatToolSchema, type types_OpenAIResponsesToolSchema as OpenAIResponsesToolSchema, type types_PermissionRequestHandler as PermissionRequestHandler, type types_ProviderToolSchema as ProviderToolSchema, types_SKIP_DIRS as SKIP_DIRS, type types_Tool as Tool, type types_ToolCategory as ToolCategory, type types_ToolContext as ToolContext, type types_ToolProtocol as ToolProtocol, type types_ToolResult as ToolResult, type types_ToolResultContentBlock as ToolResultContentBlock, type types_ToolSchema as ToolSchema, types_isToolResultContentBlock as isToolResultContentBlock, types_normalizeToolResultContentBlock as normalizeToolResultContentBlock };
543
532
  }
544
533
 
545
534
  /**
@@ -705,14 +694,14 @@ declare class ConversationManager {
705
694
  } | null;
706
695
  }
707
696
 
708
- type index$u_ConversationManager = ConversationManager;
709
- declare const index$u_ConversationManager: typeof ConversationManager;
710
- type index$u_Message = Message;
711
- type index$u_ThinkingBlock = ThinkingBlock;
712
- type index$u_ToolResultBlock = ToolResultBlock;
713
- type index$u_ToolUseBlock = ToolUseBlock;
714
- declare namespace index$u {
715
- export { atExpand as AtExpand, index$u_ConversationManager as ConversationManager, type index$u_Message as Message, pairing as Pairing, type index$u_ThinkingBlock as ThinkingBlock, type index$u_ToolResultBlock as ToolResultBlock, type index$u_ToolUseBlock as ToolUseBlock };
697
+ type index$t_ConversationManager = ConversationManager;
698
+ declare const index$t_ConversationManager: typeof ConversationManager;
699
+ type index$t_Message = Message;
700
+ type index$t_ThinkingBlock = ThinkingBlock;
701
+ type index$t_ToolResultBlock = ToolResultBlock;
702
+ type index$t_ToolUseBlock = ToolUseBlock;
703
+ declare namespace index$t {
704
+ export { atExpand as AtExpand, index$t_ConversationManager as ConversationManager, type index$t_Message as Message, pairing as Pairing, type index$t_ThinkingBlock as ThinkingBlock, type index$t_ToolResultBlock as ToolResultBlock, type index$t_ToolUseBlock as ToolUseBlock };
716
705
  }
717
706
 
718
707
  /**
@@ -852,26 +841,26 @@ declare function listSessions(workDir: string): SessionInfo[];
852
841
  */
853
842
  declare function cleanExpiredSessions(workDir: string): number;
854
843
 
855
- declare const index$t_COMPACT_BOUNDARY: typeof COMPACT_BOUNDARY;
856
- type index$t_CompactBoundaryPayload = CompactBoundaryPayload;
857
- type index$t_KeptMessage = KeptMessage;
858
- type index$t_RestoredMessage = RestoredMessage;
859
- type index$t_SessionInfo = SessionInfo;
860
- type index$t_SessionMessage = SessionMessage;
861
- type index$t_ToolResultRecord = ToolResultRecord;
862
- type index$t_ToolUseRecord = ToolUseRecord;
863
- declare const index$t_cleanExpiredSessions: typeof cleanExpiredSessions;
864
- declare const index$t_getSessionFilePath: typeof getSessionFilePath;
865
- declare const index$t_listSessions: typeof listSessions;
866
- declare const index$t_loadSession: typeof loadSession;
867
- declare const index$t_newSessionId: typeof newSessionId;
868
- declare const index$t_rebuildFromSession: typeof rebuildFromSession;
869
- declare const index$t_saveCompactBoundary: typeof saveCompactBoundary;
870
- declare const index$t_saveMessage: typeof saveMessage;
871
- declare const index$t_toolResultsToRecords: typeof toolResultsToRecords;
872
- declare const index$t_toolUsesToRecords: typeof toolUsesToRecords;
873
- declare namespace index$t {
874
- export { index$t_COMPACT_BOUNDARY as COMPACT_BOUNDARY, type index$t_CompactBoundaryPayload as CompactBoundaryPayload, type index$t_KeptMessage as KeptMessage, type index$t_RestoredMessage as RestoredMessage, type index$t_SessionInfo as SessionInfo, type index$t_SessionMessage as SessionMessage, type index$t_ToolResultRecord as ToolResultRecord, type index$t_ToolUseRecord as ToolUseRecord, index$t_cleanExpiredSessions as cleanExpiredSessions, index$t_getSessionFilePath as getSessionFilePath, index$t_listSessions as listSessions, index$t_loadSession as loadSession, index$t_newSessionId as newSessionId, index$t_rebuildFromSession as rebuildFromSession, index$t_saveCompactBoundary as saveCompactBoundary, index$t_saveMessage as saveMessage, index$t_toolResultsToRecords as toolResultsToRecords, index$t_toolUsesToRecords as toolUsesToRecords };
844
+ declare const index$s_COMPACT_BOUNDARY: typeof COMPACT_BOUNDARY;
845
+ type index$s_CompactBoundaryPayload = CompactBoundaryPayload;
846
+ type index$s_KeptMessage = KeptMessage;
847
+ type index$s_RestoredMessage = RestoredMessage;
848
+ type index$s_SessionInfo = SessionInfo;
849
+ type index$s_SessionMessage = SessionMessage;
850
+ type index$s_ToolResultRecord = ToolResultRecord;
851
+ type index$s_ToolUseRecord = ToolUseRecord;
852
+ declare const index$s_cleanExpiredSessions: typeof cleanExpiredSessions;
853
+ declare const index$s_getSessionFilePath: typeof getSessionFilePath;
854
+ declare const index$s_listSessions: typeof listSessions;
855
+ declare const index$s_loadSession: typeof loadSession;
856
+ declare const index$s_newSessionId: typeof newSessionId;
857
+ declare const index$s_rebuildFromSession: typeof rebuildFromSession;
858
+ declare const index$s_saveCompactBoundary: typeof saveCompactBoundary;
859
+ declare const index$s_saveMessage: typeof saveMessage;
860
+ declare const index$s_toolResultsToRecords: typeof toolResultsToRecords;
861
+ declare const index$s_toolUsesToRecords: typeof toolUsesToRecords;
862
+ declare namespace index$s {
863
+ export { index$s_COMPACT_BOUNDARY as COMPACT_BOUNDARY, type index$s_CompactBoundaryPayload as CompactBoundaryPayload, type index$s_KeptMessage as KeptMessage, type index$s_RestoredMessage as RestoredMessage, type index$s_SessionInfo as SessionInfo, type index$s_SessionMessage as SessionMessage, type index$s_ToolResultRecord as ToolResultRecord, type index$s_ToolUseRecord as ToolUseRecord, index$s_cleanExpiredSessions as cleanExpiredSessions, index$s_getSessionFilePath as getSessionFilePath, index$s_listSessions as listSessions, index$s_loadSession as loadSession, index$s_newSessionId as newSessionId, index$s_rebuildFromSession as rebuildFromSession, index$s_saveCompactBoundary as saveCompactBoundary, index$s_saveMessage as saveMessage, index$s_toolResultsToRecords as toolResultsToRecords, index$s_toolUsesToRecords as toolUsesToRecords };
875
864
  }
876
865
 
877
866
  /**
@@ -1160,11 +1149,11 @@ type AcpMode = {
1160
1149
  declare function parseAcpMode(args: string[]): AcpMode | null;
1161
1150
  declare function runAcp(args: string[]): Promise<void>;
1162
1151
 
1163
- type index$s_AcpMode = AcpMode;
1164
- declare const index$s_parseAcpMode: typeof parseAcpMode;
1165
- declare const index$s_runAcp: typeof runAcp;
1166
- declare namespace index$s {
1167
- export { type index$s_AcpMode as AcpMode, agent as Agent, conversion as Conversion, stdio as Stdio, websocket as Websocket, index$s_parseAcpMode as parseAcpMode, index$s_runAcp as runAcp };
1152
+ type index$r_AcpMode = AcpMode;
1153
+ declare const index$r_parseAcpMode: typeof parseAcpMode;
1154
+ declare const index$r_runAcp: typeof runAcp;
1155
+ declare namespace index$r {
1156
+ export { type index$r_AcpMode as AcpMode, agent as Agent, conversion as Conversion, stdio as Stdio, websocket as Websocket, index$r_parseAcpMode as parseAcpMode, index$r_runAcp as runAcp };
1168
1157
  }
1169
1158
 
1170
1159
  /**
@@ -1568,41 +1557,41 @@ declare function loadConfig(path?: string, options?: {
1568
1557
  allowEmptyProviders?: boolean;
1569
1558
  }): AppConfig;
1570
1559
 
1571
- type index$r_AppConfig = AppConfig;
1572
- type index$r_ConfigError = ConfigError;
1573
- declare const index$r_ConfigError: typeof ConfigError;
1574
- declare const index$r_DEFAULT_CONTEXT_WINDOW: typeof DEFAULT_CONTEXT_WINDOW;
1575
- declare const index$r_DEFAULT_MAX_OUTPUT_TOKENS: typeof DEFAULT_MAX_OUTPUT_TOKENS;
1576
- declare const index$r_DEFAULT_THINKING_LEVEL: typeof DEFAULT_THINKING_LEVEL;
1577
- type index$r_HookConfig = HookConfig;
1578
- declare const index$r_HookConfigSchema: typeof HookConfigSchema;
1579
- type index$r_MCPServerConfig = MCPServerConfig;
1580
- declare const index$r_MIN_THINKING_ANSWER_TOKENS: typeof MIN_THINKING_ANSWER_TOKENS;
1581
- declare const index$r_MIN_THINKING_BUDGET_TOKENS: typeof MIN_THINKING_BUDGET_TOKENS;
1582
- type index$r_ProviderConfig = ProviderConfig;
1583
- declare const index$r_ProviderConfigSchema: typeof ProviderConfigSchema;
1584
- type index$r_SandboxYamlConfig = SandboxYamlConfig;
1585
- declare const index$r_THINKING_BUDGETS: typeof THINKING_BUDGETS;
1586
- declare const index$r_THINKING_LEVELS: typeof THINKING_LEVELS;
1587
- type index$r_ThinkingLevel = ThinkingLevel;
1588
- declare const index$r_clampThinkingLevel: typeof clampThinkingLevel;
1589
- declare const index$r_forkEnabled: typeof forkEnabled;
1590
- declare const index$r_getContextWindow: typeof getContextWindow;
1591
- declare const index$r_getMaxOutputTokens: typeof getMaxOutputTokens;
1592
- declare const index$r_getSupportedThinkingLevels: typeof getSupportedThinkingLevels;
1593
- declare const index$r_getThinkingLevel: typeof getThinkingLevel;
1594
- declare const index$r_globalConfigPath: typeof globalConfigPath;
1595
- declare const index$r_isValidThinkingLevel: typeof isValidThinkingLevel;
1596
- declare const index$r_loadConfig: typeof loadConfig;
1597
- declare const index$r_loadProjectMcpServers: typeof loadProjectMcpServers;
1598
- declare const index$r_resolveAPIKey: typeof resolveAPIKey;
1599
- declare const index$r_thinkingBudgetForLevel: typeof thinkingBudgetForLevel;
1600
- declare const index$r_toAnthropicThinkingEffort: typeof toAnthropicThinkingEffort;
1601
- declare const index$r_toReasoningEffort: typeof toReasoningEffort;
1602
- declare const index$r_withProjectMcpServers: typeof withProjectMcpServers;
1603
- declare const index$r_withProviderDefaults: typeof withProviderDefaults;
1604
- declare namespace index$r {
1605
- export { type index$r_AppConfig as AppConfig, index$r_ConfigError as ConfigError, index$r_DEFAULT_CONTEXT_WINDOW as DEFAULT_CONTEXT_WINDOW, index$r_DEFAULT_MAX_OUTPUT_TOKENS as DEFAULT_MAX_OUTPUT_TOKENS, index$r_DEFAULT_THINKING_LEVEL as DEFAULT_THINKING_LEVEL, type index$r_HookConfig as HookConfig, index$r_HookConfigSchema as HookConfigSchema, type index$r_MCPServerConfig as MCPServerConfig, index$r_MIN_THINKING_ANSWER_TOKENS as MIN_THINKING_ANSWER_TOKENS, index$r_MIN_THINKING_BUDGET_TOKENS as MIN_THINKING_BUDGET_TOKENS, type index$r_ProviderConfig as ProviderConfig, index$r_ProviderConfigSchema as ProviderConfigSchema, type index$r_SandboxYamlConfig as SandboxYamlConfig, index$r_THINKING_BUDGETS as THINKING_BUDGETS, index$r_THINKING_LEVELS as THINKING_LEVELS, type index$r_ThinkingLevel as ThinkingLevel, index$r_clampThinkingLevel as clampThinkingLevel, index$r_forkEnabled as forkEnabled, index$r_getContextWindow as getContextWindow, index$r_getMaxOutputTokens as getMaxOutputTokens, index$r_getSupportedThinkingLevels as getSupportedThinkingLevels, index$r_getThinkingLevel as getThinkingLevel, index$r_globalConfigPath as globalConfigPath, index$r_isValidThinkingLevel as isValidThinkingLevel, index$r_loadConfig as loadConfig, index$r_loadProjectMcpServers as loadProjectMcpServers, index$r_resolveAPIKey as resolveAPIKey, index$r_thinkingBudgetForLevel as thinkingBudgetForLevel, index$r_toAnthropicThinkingEffort as toAnthropicThinkingEffort, index$r_toReasoningEffort as toReasoningEffort, index$r_withProjectMcpServers as withProjectMcpServers, index$r_withProviderDefaults as withProviderDefaults };
1560
+ type index$q_AppConfig = AppConfig;
1561
+ type index$q_ConfigError = ConfigError;
1562
+ declare const index$q_ConfigError: typeof ConfigError;
1563
+ declare const index$q_DEFAULT_CONTEXT_WINDOW: typeof DEFAULT_CONTEXT_WINDOW;
1564
+ declare const index$q_DEFAULT_MAX_OUTPUT_TOKENS: typeof DEFAULT_MAX_OUTPUT_TOKENS;
1565
+ declare const index$q_DEFAULT_THINKING_LEVEL: typeof DEFAULT_THINKING_LEVEL;
1566
+ type index$q_HookConfig = HookConfig;
1567
+ declare const index$q_HookConfigSchema: typeof HookConfigSchema;
1568
+ type index$q_MCPServerConfig = MCPServerConfig;
1569
+ declare const index$q_MIN_THINKING_ANSWER_TOKENS: typeof MIN_THINKING_ANSWER_TOKENS;
1570
+ declare const index$q_MIN_THINKING_BUDGET_TOKENS: typeof MIN_THINKING_BUDGET_TOKENS;
1571
+ type index$q_ProviderConfig = ProviderConfig;
1572
+ declare const index$q_ProviderConfigSchema: typeof ProviderConfigSchema;
1573
+ type index$q_SandboxYamlConfig = SandboxYamlConfig;
1574
+ declare const index$q_THINKING_BUDGETS: typeof THINKING_BUDGETS;
1575
+ declare const index$q_THINKING_LEVELS: typeof THINKING_LEVELS;
1576
+ type index$q_ThinkingLevel = ThinkingLevel;
1577
+ declare const index$q_clampThinkingLevel: typeof clampThinkingLevel;
1578
+ declare const index$q_forkEnabled: typeof forkEnabled;
1579
+ declare const index$q_getContextWindow: typeof getContextWindow;
1580
+ declare const index$q_getMaxOutputTokens: typeof getMaxOutputTokens;
1581
+ declare const index$q_getSupportedThinkingLevels: typeof getSupportedThinkingLevels;
1582
+ declare const index$q_getThinkingLevel: typeof getThinkingLevel;
1583
+ declare const index$q_globalConfigPath: typeof globalConfigPath;
1584
+ declare const index$q_isValidThinkingLevel: typeof isValidThinkingLevel;
1585
+ declare const index$q_loadConfig: typeof loadConfig;
1586
+ declare const index$q_loadProjectMcpServers: typeof loadProjectMcpServers;
1587
+ declare const index$q_resolveAPIKey: typeof resolveAPIKey;
1588
+ declare const index$q_thinkingBudgetForLevel: typeof thinkingBudgetForLevel;
1589
+ declare const index$q_toAnthropicThinkingEffort: typeof toAnthropicThinkingEffort;
1590
+ declare const index$q_toReasoningEffort: typeof toReasoningEffort;
1591
+ declare const index$q_withProjectMcpServers: typeof withProjectMcpServers;
1592
+ declare const index$q_withProviderDefaults: typeof withProviderDefaults;
1593
+ declare namespace index$q {
1594
+ export { type index$q_AppConfig as AppConfig, index$q_ConfigError as ConfigError, index$q_DEFAULT_CONTEXT_WINDOW as DEFAULT_CONTEXT_WINDOW, index$q_DEFAULT_MAX_OUTPUT_TOKENS as DEFAULT_MAX_OUTPUT_TOKENS, index$q_DEFAULT_THINKING_LEVEL as DEFAULT_THINKING_LEVEL, type index$q_HookConfig as HookConfig, index$q_HookConfigSchema as HookConfigSchema, type index$q_MCPServerConfig as MCPServerConfig, index$q_MIN_THINKING_ANSWER_TOKENS as MIN_THINKING_ANSWER_TOKENS, index$q_MIN_THINKING_BUDGET_TOKENS as MIN_THINKING_BUDGET_TOKENS, type index$q_ProviderConfig as ProviderConfig, index$q_ProviderConfigSchema as ProviderConfigSchema, type index$q_SandboxYamlConfig as SandboxYamlConfig, index$q_THINKING_BUDGETS as THINKING_BUDGETS, index$q_THINKING_LEVELS as THINKING_LEVELS, type index$q_ThinkingLevel as ThinkingLevel, index$q_clampThinkingLevel as clampThinkingLevel, index$q_forkEnabled as forkEnabled, index$q_getContextWindow as getContextWindow, index$q_getMaxOutputTokens as getMaxOutputTokens, index$q_getSupportedThinkingLevels as getSupportedThinkingLevels, index$q_getThinkingLevel as getThinkingLevel, index$q_globalConfigPath as globalConfigPath, index$q_isValidThinkingLevel as isValidThinkingLevel, index$q_loadConfig as loadConfig, index$q_loadProjectMcpServers as loadProjectMcpServers, index$q_resolveAPIKey as resolveAPIKey, index$q_thinkingBudgetForLevel as thinkingBudgetForLevel, index$q_toAnthropicThinkingEffort as toAnthropicThinkingEffort, index$q_toReasoningEffort as toReasoningEffort, index$q_withProjectMcpServers as withProjectMcpServers, index$q_withProviderDefaults as withProviderDefaults };
1606
1595
  }
1607
1596
 
1608
1597
  /**
@@ -1661,15 +1650,15 @@ declare class HookEngine {
1661
1650
  }
1662
1651
  declare function validate(hooks: HookConfig[]): Error | null;
1663
1652
 
1664
- type index$q_EventName = EventName;
1665
- type index$q_HookContext = HookContext;
1666
- type index$q_HookEngine = HookEngine;
1667
- declare const index$q_HookEngine: typeof HookEngine;
1668
- type index$q_HookResult = HookResult;
1669
- type index$q_HookRuntimeOptions = HookRuntimeOptions;
1670
- declare const index$q_validate: typeof validate;
1671
- declare namespace index$q {
1672
- export { type index$q_EventName as EventName, type index$q_HookContext as HookContext, index$q_HookEngine as HookEngine, type index$q_HookResult as HookResult, type index$q_HookRuntimeOptions as HookRuntimeOptions, index$q_validate as validate };
1653
+ type index$p_EventName = EventName;
1654
+ type index$p_HookContext = HookContext;
1655
+ type index$p_HookEngine = HookEngine;
1656
+ declare const index$p_HookEngine: typeof HookEngine;
1657
+ type index$p_HookResult = HookResult;
1658
+ type index$p_HookRuntimeOptions = HookRuntimeOptions;
1659
+ declare const index$p_validate: typeof validate;
1660
+ declare namespace index$p {
1661
+ export { type index$p_EventName as EventName, type index$p_HookContext as HookContext, index$p_HookEngine as HookEngine, type index$p_HookResult as HookResult, type index$p_HookRuntimeOptions as HookRuntimeOptions, index$p_validate as validate };
1673
1662
  }
1674
1663
 
1675
1664
  /**
@@ -1796,6 +1785,7 @@ declare class AnthropicClient implements LLMClient {
1796
1785
  private systemPrompt;
1797
1786
  private maxOutputTokens;
1798
1787
  private config;
1788
+ private useExplicitCustomToolType;
1799
1789
  constructor(config: ProviderConfig, systemPrompt: string);
1800
1790
  setSystemPrompt(prompt: string): void;
1801
1791
  setMaxOutputTokens(maxTokens: number): void;
@@ -2076,7 +2066,7 @@ declare namespace providers {
2076
2066
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2077
2067
  * SOFTWARE.
2078
2068
  */
2079
- type TelemetryMode = "print" | "remote" | "teammate" | "tui" | "unknown";
2069
+ type TelemetryMode = "print" | "remote" | "teammate" | "terminal" | "unknown";
2080
2070
  type TelemetryObservationKind = "agent" | "generation" | "tool";
2081
2071
  type TelemetryMetricKind = "counter" | "histogram";
2082
2072
  type TelemetryAttributes = Record<string, string | number | boolean>;
@@ -2111,22 +2101,22 @@ declare function flushTelemetry(): Promise<void>;
2111
2101
  declare function shutdownTelemetry(): Promise<void>;
2112
2102
  declare function installRemoteTelemetrySignalHandlers(): void;
2113
2103
 
2114
- type index$p_TelemetryAttributes = TelemetryAttributes;
2115
- type index$p_TelemetryMetricKind = TelemetryMetricKind;
2116
- type index$p_TelemetryMode = TelemetryMode;
2117
- type index$p_TelemetryObservation = TelemetryObservation;
2118
- type index$p_TelemetryObservationKind = TelemetryObservationKind;
2119
- type index$p_TelemetryObservationUpdate = TelemetryObservationUpdate;
2120
- type index$p_TelemetryRuntime = TelemetryRuntime;
2121
- declare const index$p_captureTelemetryError: typeof captureTelemetryError;
2122
- declare const index$p_flushTelemetry: typeof flushTelemetry;
2123
- declare const index$p_getTelemetryRuntime: typeof getTelemetryRuntime;
2124
- declare const index$p_initializeTelemetry: typeof initializeTelemetry;
2125
- declare const index$p_installRemoteTelemetrySignalHandlers: typeof installRemoteTelemetrySignalHandlers;
2126
- declare const index$p_setTelemetryMode: typeof setTelemetryMode;
2127
- declare const index$p_shutdownTelemetry: typeof shutdownTelemetry;
2128
- declare namespace index$p {
2129
- export { instrumentation as Instrumentation, providers as Providers, type index$p_TelemetryAttributes as TelemetryAttributes, type index$p_TelemetryMetricKind as TelemetryMetricKind, type index$p_TelemetryMode as TelemetryMode, type index$p_TelemetryObservation as TelemetryObservation, type index$p_TelemetryObservationKind as TelemetryObservationKind, type index$p_TelemetryObservationUpdate as TelemetryObservationUpdate, type index$p_TelemetryRuntime as TelemetryRuntime, index$p_captureTelemetryError as captureTelemetryError, index$p_flushTelemetry as flushTelemetry, index$p_getTelemetryRuntime as getTelemetryRuntime, index$p_initializeTelemetry as initializeTelemetry, index$p_installRemoteTelemetrySignalHandlers as installRemoteTelemetrySignalHandlers, index$p_setTelemetryMode as setTelemetryMode, index$p_shutdownTelemetry as shutdownTelemetry };
2104
+ type index$o_TelemetryAttributes = TelemetryAttributes;
2105
+ type index$o_TelemetryMetricKind = TelemetryMetricKind;
2106
+ type index$o_TelemetryMode = TelemetryMode;
2107
+ type index$o_TelemetryObservation = TelemetryObservation;
2108
+ type index$o_TelemetryObservationKind = TelemetryObservationKind;
2109
+ type index$o_TelemetryObservationUpdate = TelemetryObservationUpdate;
2110
+ type index$o_TelemetryRuntime = TelemetryRuntime;
2111
+ declare const index$o_captureTelemetryError: typeof captureTelemetryError;
2112
+ declare const index$o_flushTelemetry: typeof flushTelemetry;
2113
+ declare const index$o_getTelemetryRuntime: typeof getTelemetryRuntime;
2114
+ declare const index$o_initializeTelemetry: typeof initializeTelemetry;
2115
+ declare const index$o_installRemoteTelemetrySignalHandlers: typeof installRemoteTelemetrySignalHandlers;
2116
+ declare const index$o_setTelemetryMode: typeof setTelemetryMode;
2117
+ declare const index$o_shutdownTelemetry: typeof shutdownTelemetry;
2118
+ declare namespace index$o {
2119
+ export { instrumentation as Instrumentation, providers as Providers, type index$o_TelemetryAttributes as TelemetryAttributes, type index$o_TelemetryMetricKind as TelemetryMetricKind, type index$o_TelemetryMode as TelemetryMode, type index$o_TelemetryObservation as TelemetryObservation, type index$o_TelemetryObservationKind as TelemetryObservationKind, type index$o_TelemetryObservationUpdate as TelemetryObservationUpdate, type index$o_TelemetryRuntime as TelemetryRuntime, index$o_captureTelemetryError as captureTelemetryError, index$o_flushTelemetry as flushTelemetry, index$o_getTelemetryRuntime as getTelemetryRuntime, index$o_initializeTelemetry as initializeTelemetry, index$o_installRemoteTelemetrySignalHandlers as installRemoteTelemetrySignalHandlers, index$o_setTelemetryMode as setTelemetryMode, index$o_shutdownTelemetry as shutdownTelemetry };
2130
2120
  }
2131
2121
 
2132
2122
  /**
@@ -2334,18 +2324,18 @@ declare class Agent {
2334
2324
  * Persist the most recently appended conversation message to the session log.
2335
2325
  *
2336
2326
  * Persistence lives in the main loop rather than in individual frontends: both
2337
- * the TUI and Web share the same recording path, ensuring intermediate assistant
2327
+ * the UI and Web share the same recording path, ensuring intermediate assistant
2338
2328
  * text and complete tool-call chains are captured for session restoration.
2339
2329
  * Skipped when sessionId is empty (one-shot invocations, sub-agents).
2340
2330
  */
2341
2331
  private persistLastMessage;
2342
2332
  }
2343
2333
 
2344
- type index$o_Agent = Agent;
2345
- declare const index$o_Agent: typeof Agent;
2346
- type index$o_AgentConfig = AgentConfig;
2347
- declare namespace index$o {
2348
- export { index$o_Agent as Agent, type index$o_AgentConfig as AgentConfig, events as Events, streamingExecutor as StreamingExecutor };
2334
+ type index$n_Agent = Agent;
2335
+ declare const index$n_Agent: typeof Agent;
2336
+ type index$n_AgentConfig = AgentConfig;
2337
+ declare namespace index$n {
2338
+ export { index$n_Agent as Agent, type index$n_AgentConfig as AgentConfig, events as Events, streamingExecutor as StreamingExecutor };
2349
2339
  }
2350
2340
 
2351
2341
  /**
@@ -2644,12 +2634,12 @@ interface SkillForkHost extends SkillHost {
2644
2634
  snapshotParentMessages(count: number): string;
2645
2635
  }
2646
2636
 
2647
- type index$n_Skill = Skill;
2648
- type index$n_SkillForkHost = SkillForkHost;
2649
- type index$n_SkillHost = SkillHost;
2650
- type index$n_SkillMeta = SkillMeta;
2651
- declare namespace index$n {
2652
- export { catalog as Catalog, executor as Executor, installTool as InstallTool, loadSkillTool as LoadSkillTool, type index$n_Skill as Skill, type index$n_SkillForkHost as SkillForkHost, type index$n_SkillHost as SkillHost, type index$n_SkillMeta as SkillMeta };
2637
+ type index$m_Skill = Skill;
2638
+ type index$m_SkillForkHost = SkillForkHost;
2639
+ type index$m_SkillHost = SkillHost;
2640
+ type index$m_SkillMeta = SkillMeta;
2641
+ declare namespace index$m {
2642
+ export { catalog as Catalog, executor as Executor, installTool as InstallTool, loadSkillTool as LoadSkillTool, type index$m_Skill as Skill, type index$m_SkillForkHost as SkillForkHost, type index$m_SkillHost as SkillHost, type index$m_SkillMeta as SkillMeta };
2653
2643
  }
2654
2644
 
2655
2645
  /**
@@ -2895,11 +2885,11 @@ declare class TaskList {
2895
2885
  addBlockedBy(taskId: string, blockerIds: string[]): void;
2896
2886
  }
2897
2887
 
2898
- type index$m_Task = Task;
2899
- type index$m_TaskList = TaskList;
2900
- declare const index$m_TaskList: typeof TaskList;
2901
- declare namespace index$m {
2902
- export { store as Store, type index$m_Task as Task, index$m_TaskList as TaskList, tools$1 as Tools };
2888
+ type index$l_Task = Task;
2889
+ type index$l_TaskList = TaskList;
2890
+ declare const index$l_TaskList: typeof TaskList;
2891
+ declare namespace index$l {
2892
+ export { store as Store, type index$l_Task as Task, index$l_TaskList as TaskList, tools$1 as Tools };
2903
2893
  }
2904
2894
 
2905
2895
  /**
@@ -2966,7 +2956,7 @@ declare namespace toolRegistry {
2966
2956
  * SOFTWARE.
2967
2957
  */
2968
2958
 
2969
- declare namespace index$l {
2959
+ declare namespace index$k {
2970
2960
  export { interactionSummary as InteractionSummary, toolRegistry as ToolRegistry };
2971
2961
  }
2972
2962
 
@@ -3403,7 +3393,7 @@ declare namespace definition {
3403
3393
 
3404
3394
  /**
3405
3395
  * Marker appended to a subagent's output when its run was interrupted. Shared
3406
- * with the TUI so restored transcripts can render interrupted Agent cards with
3396
+ * with the UI so restored transcripts can render interrupted Agent cards with
3407
3397
  * the same "stopped" styling as live ones.
3408
3398
  */
3409
3399
  declare const SUBAGENT_INTERRUPTED_MARKER = "[Interrupted]";
@@ -4134,16 +4124,16 @@ declare class TeamManager {
4134
4124
  drainLeads(): string[];
4135
4125
  }
4136
4126
 
4137
- type index$k_AgentEventCallback = AgentEventCallback;
4138
- type index$k_Member = Member;
4139
- type index$k_RunAgent = RunAgent;
4140
- type index$k_Team = Team;
4141
- declare const index$k_Team: typeof Team;
4142
- type index$k_TeamManager = TeamManager;
4143
- declare const index$k_TeamManager: typeof TeamManager;
4144
- type index$k_TeamMode = TeamMode;
4145
- declare namespace index$k {
4146
- export { type index$k_AgentEventCallback as AgentEventCallback, backend as Backend, coordinator$1 as Coordinator, fileMailbox as FileMailbox, type index$k_Member as Member, progress as Progress, protocol as Protocol, registry as Registry, type index$k_RunAgent as RunAgent, sharedTask as SharedTask, taskStop as TaskStop, taskTools as TaskTools, index$k_Team as Team, teamFile as TeamFile, index$k_TeamManager as TeamManager, type index$k_TeamMode as TeamMode, tools as Tools, transcript as Transcript };
4127
+ type index$j_AgentEventCallback = AgentEventCallback;
4128
+ type index$j_Member = Member;
4129
+ type index$j_RunAgent = RunAgent;
4130
+ type index$j_Team = Team;
4131
+ declare const index$j_Team: typeof Team;
4132
+ type index$j_TeamManager = TeamManager;
4133
+ declare const index$j_TeamManager: typeof TeamManager;
4134
+ type index$j_TeamMode = TeamMode;
4135
+ declare namespace index$j {
4136
+ export { type index$j_AgentEventCallback as AgentEventCallback, backend as Backend, coordinator$1 as Coordinator, fileMailbox as FileMailbox, type index$j_Member as Member, progress as Progress, protocol as Protocol, registry as Registry, type index$j_RunAgent as RunAgent, sharedTask as SharedTask, taskStop as TaskStop, taskTools as TaskTools, index$j_Team as Team, teamFile as TeamFile, index$j_TeamManager as TeamManager, type index$j_TeamMode as TeamMode, tools as Tools, transcript as Transcript };
4147
4137
  }
4148
4138
 
4149
4139
  /**
@@ -4410,7 +4400,7 @@ declare namespace handler {
4410
4400
  * SOFTWARE.
4411
4401
  */
4412
4402
 
4413
- declare namespace index$j {
4403
+ declare namespace index$i {
4414
4404
  export { handler as Handler, manager$1 as Manager, session as Session };
4415
4405
  }
4416
4406
 
@@ -4505,7 +4495,7 @@ declare namespace usageTracker {
4505
4495
  * SOFTWARE.
4506
4496
  */
4507
4497
 
4508
- declare namespace index$i {
4498
+ declare namespace index$h {
4509
4499
  export { commands as Commands, loader$1 as Loader, usageTracker as UsageTracker };
4510
4500
  }
4511
4501
 
@@ -4622,7 +4612,7 @@ declare namespace prompts {
4622
4612
  * SOFTWARE.
4623
4613
  */
4624
4614
 
4625
- declare namespace index$h {
4615
+ declare namespace index$g {
4626
4616
  export { compact as Compact, prompts as Prompts, recovery as Recovery };
4627
4617
  }
4628
4618
 
@@ -4825,11 +4815,11 @@ declare const MAX_HISTORY_ENTRIES = 200;
4825
4815
  declare function load(dir: string): string[];
4826
4816
  declare function append(dir: string, text: string): string[];
4827
4817
 
4828
- declare const index$g_MAX_HISTORY_ENTRIES: typeof MAX_HISTORY_ENTRIES;
4829
- declare const index$g_append: typeof append;
4830
- declare const index$g_load: typeof load;
4831
- declare namespace index$g {
4832
- export { index$g_MAX_HISTORY_ENTRIES as MAX_HISTORY_ENTRIES, index$g_append as append, index$g_load as load };
4818
+ declare const index$f_MAX_HISTORY_ENTRIES: typeof MAX_HISTORY_ENTRIES;
4819
+ declare const index$f_append: typeof append;
4820
+ declare const index$f_load: typeof load;
4821
+ declare namespace index$f {
4822
+ export { index$f_MAX_HISTORY_ENTRIES as MAX_HISTORY_ENTRIES, index$f_append as append, index$f_load as load };
4833
4823
  }
4834
4824
 
4835
4825
  /**
@@ -4925,19 +4915,19 @@ declare function loadImageAttachment(absPath: string): Promise<ImageAttachment>;
4925
4915
  type ResizedImage = Omit<ImageAttachment, "sourcePath">;
4926
4916
  declare function maybeResizeAndDownsampleImage(buf: Buffer, mediaType: ImageMediaType): Promise<ResizedImage>;
4927
4917
 
4928
- type index$f_ImageTooLargeError = ImageTooLargeError;
4929
- declare const index$f_ImageTooLargeError: typeof ImageTooLargeError;
4930
- declare const index$f_MAX_DIMENSION_PX: typeof MAX_DIMENSION_PX;
4931
- declare const index$f_MAX_IMAGES_PER_MESSAGE: typeof MAX_IMAGES_PER_MESSAGE;
4932
- declare const index$f_MAX_IMAGE_BYTES_PASSTHROUGH: typeof MAX_IMAGE_BYTES_PASSTHROUGH;
4933
- declare const index$f_asImageMediaType: typeof asImageMediaType;
4934
- declare const index$f_getMediaType: typeof getMediaType;
4935
- declare const index$f_isImagePath: typeof isImagePath;
4936
- declare const index$f_loadImageAttachment: typeof loadImageAttachment;
4937
- declare const index$f_maybeResizeAndDownsampleImage: typeof maybeResizeAndDownsampleImage;
4938
- declare const index$f_sniffMediaType: typeof sniffMediaType;
4939
- declare namespace index$f {
4940
- export { clipboard as Clipboard, index$f_ImageTooLargeError as ImageTooLargeError, index$f_MAX_DIMENSION_PX as MAX_DIMENSION_PX, index$f_MAX_IMAGES_PER_MESSAGE as MAX_IMAGES_PER_MESSAGE, index$f_MAX_IMAGE_BYTES_PASSTHROUGH as MAX_IMAGE_BYTES_PASSTHROUGH, index$f_asImageMediaType as asImageMediaType, index$f_getMediaType as getMediaType, index$f_isImagePath as isImagePath, index$f_loadImageAttachment as loadImageAttachment, index$f_maybeResizeAndDownsampleImage as maybeResizeAndDownsampleImage, index$f_sniffMediaType as sniffMediaType };
4918
+ type index$e_ImageTooLargeError = ImageTooLargeError;
4919
+ declare const index$e_ImageTooLargeError: typeof ImageTooLargeError;
4920
+ declare const index$e_MAX_DIMENSION_PX: typeof MAX_DIMENSION_PX;
4921
+ declare const index$e_MAX_IMAGES_PER_MESSAGE: typeof MAX_IMAGES_PER_MESSAGE;
4922
+ declare const index$e_MAX_IMAGE_BYTES_PASSTHROUGH: typeof MAX_IMAGE_BYTES_PASSTHROUGH;
4923
+ declare const index$e_asImageMediaType: typeof asImageMediaType;
4924
+ declare const index$e_getMediaType: typeof getMediaType;
4925
+ declare const index$e_isImagePath: typeof isImagePath;
4926
+ declare const index$e_loadImageAttachment: typeof loadImageAttachment;
4927
+ declare const index$e_maybeResizeAndDownsampleImage: typeof maybeResizeAndDownsampleImage;
4928
+ declare const index$e_sniffMediaType: typeof sniffMediaType;
4929
+ declare namespace index$e {
4930
+ export { clipboard as Clipboard, index$e_ImageTooLargeError as ImageTooLargeError, index$e_MAX_DIMENSION_PX as MAX_DIMENSION_PX, index$e_MAX_IMAGES_PER_MESSAGE as MAX_IMAGES_PER_MESSAGE, index$e_MAX_IMAGE_BYTES_PASSTHROUGH as MAX_IMAGE_BYTES_PASSTHROUGH, index$e_asImageMediaType as asImageMediaType, index$e_getMediaType as getMediaType, index$e_isImagePath as isImagePath, index$e_loadImageAttachment as loadImageAttachment, index$e_maybeResizeAndDownsampleImage as maybeResizeAndDownsampleImage, index$e_sniffMediaType as sniffMediaType };
4941
4931
  }
4942
4932
 
4943
4933
  /**
@@ -5084,7 +5074,7 @@ declare namespace modelResolver {
5084
5074
  * SOFTWARE.
5085
5075
  */
5086
5076
 
5087
- declare namespace index$e {
5077
+ declare namespace index$d {
5088
5078
  export { anthropic as Anthropic, client$1 as Client, errors as Errors, events$1 as Events, modelDiscovery as ModelDiscovery, modelResolver as ModelResolver, openai as OpenAI };
5089
5079
  }
5090
5080
 
@@ -5111,7 +5101,7 @@ declare namespace index$e {
5111
5101
  */
5112
5102
 
5113
5103
  /** Execution mode, written into the base field of every log entry. */
5114
- type LoggerMode = "tui" | "remote" | "teammate";
5104
+ type LoggerMode = "terminal" | "remote" | "teammate";
5115
5105
  /** Options for initLogger. Named to avoid clashing with pino's LoggerOptions. */
5116
5106
  interface InitLoggerOptions {
5117
5107
  /** Session ID, used as the log filename and a base field. */
@@ -5126,7 +5116,7 @@ interface InitLoggerOptions {
5126
5116
  skipCleanup?: boolean;
5127
5117
  /**
5128
5118
  * Mirror JSONL to stdout in addition to the log file. Only safe in remote
5129
- * mode (TUI owns stdout; teammates use it for IPC). Lets users watch logs
5119
+ * mode (UI owns stdout; teammates use it for IPC). Lets users watch logs
5130
5120
  * live or pipe them through pino-pretty.
5131
5121
  */
5132
5122
  stdout?: boolean;
@@ -5167,13 +5157,13 @@ declare function createChildLogger(bindings: {
5167
5157
  module: string;
5168
5158
  }): Logger;
5169
5159
 
5170
- declare const index$d_closeLogger: typeof closeLogger;
5171
- declare const index$d_createChildLogger: typeof createChildLogger;
5172
- declare const index$d_initLogger: typeof initLogger;
5173
- declare const index$d_logger: typeof logger;
5174
- declare const index$d_sanitizeNameSegment: typeof sanitizeNameSegment;
5175
- declare namespace index$d {
5176
- export { index$d_closeLogger as closeLogger, index$d_createChildLogger as createChildLogger, index$d_initLogger as initLogger, index$d_logger as logger, index$d_sanitizeNameSegment as sanitizeNameSegment };
5160
+ declare const index$c_closeLogger: typeof closeLogger;
5161
+ declare const index$c_createChildLogger: typeof createChildLogger;
5162
+ declare const index$c_initLogger: typeof initLogger;
5163
+ declare const index$c_logger: typeof logger;
5164
+ declare const index$c_sanitizeNameSegment: typeof sanitizeNameSegment;
5165
+ declare namespace index$c {
5166
+ export { index$c_closeLogger as closeLogger, index$c_createChildLogger as createChildLogger, index$c_initLogger as initLogger, index$c_logger as logger, index$c_sanitizeNameSegment as sanitizeNameSegment };
5177
5167
  }
5178
5168
 
5179
5169
  /**
@@ -5543,7 +5533,7 @@ declare namespace toolWrapper {
5543
5533
  * SOFTWARE.
5544
5534
  */
5545
5535
 
5546
- declare namespace index$c {
5536
+ declare namespace index$b {
5547
5537
  export { client as Client, instructions$1 as Instructions, manager as Manager, strategy as Strategy, toolWrapper as ToolWrapper };
5548
5538
  }
5549
5539
 
@@ -5851,7 +5841,7 @@ declare namespace writtenPaths {
5851
5841
  * SOFTWARE.
5852
5842
  */
5853
5843
 
5854
- declare namespace index$b {
5844
+ declare namespace index$a {
5855
5845
  export { consolidation as Consolidation, extractor as Extractor, instructions as Instructions, manager$2 as Manager, memoryAge$1 as MemoryAge, permissions as Permissions, writtenPaths as WrittenPaths };
5856
5846
  }
5857
5847
 
@@ -5883,14 +5873,14 @@ declare function planExists(workDir: string): boolean;
5883
5873
  declare function resetPlanPath(): void;
5884
5874
  declare function getCurrentPlanPath(): string | null;
5885
5875
 
5886
- declare const index$a_getCurrentPlanPath: typeof getCurrentPlanPath;
5887
- declare const index$a_getOrCreatePlanPath: typeof getOrCreatePlanPath;
5888
- declare const index$a_loadPlan: typeof loadPlan;
5889
- declare const index$a_planExists: typeof planExists;
5890
- declare const index$a_resetPlanPath: typeof resetPlanPath;
5891
- declare const index$a_savePlan: typeof savePlan;
5892
- declare namespace index$a {
5893
- export { index$a_getCurrentPlanPath as getCurrentPlanPath, index$a_getOrCreatePlanPath as getOrCreatePlanPath, index$a_loadPlan as loadPlan, index$a_planExists as planExists, index$a_resetPlanPath as resetPlanPath, index$a_savePlan as savePlan };
5876
+ declare const index$9_getCurrentPlanPath: typeof getCurrentPlanPath;
5877
+ declare const index$9_getOrCreatePlanPath: typeof getOrCreatePlanPath;
5878
+ declare const index$9_loadPlan: typeof loadPlan;
5879
+ declare const index$9_planExists: typeof planExists;
5880
+ declare const index$9_resetPlanPath: typeof resetPlanPath;
5881
+ declare const index$9_savePlan: typeof savePlan;
5882
+ declare namespace index$9 {
5883
+ export { index$9_getCurrentPlanPath as getCurrentPlanPath, index$9_getOrCreatePlanPath as getOrCreatePlanPath, index$9_loadPlan as loadPlan, index$9_planExists as planExists, index$9_resetPlanPath as resetPlanPath, index$9_savePlan as savePlan };
5894
5884
  }
5895
5885
 
5896
5886
  /**
@@ -6117,7 +6107,7 @@ declare namespace planMode {
6117
6107
  * SOFTWARE.
6118
6108
  */
6119
6109
 
6120
- declare namespace index$9 {
6110
+ declare namespace index$8 {
6121
6111
  export { builder as Builder, coordinator as Coordinator, delegation as Delegation, planMode as PlanMode, sections as Sections };
6122
6112
  }
6123
6113
 
@@ -6435,7 +6425,7 @@ declare namespace sessionState {
6435
6425
  * SOFTWARE.
6436
6426
  */
6437
6427
 
6438
- declare namespace index$8 {
6428
+ declare namespace index$7 {
6439
6429
  export { address as Address, log as Log, server as Server, sessionState as SessionState };
6440
6430
  }
6441
6431
 
@@ -6610,15 +6600,15 @@ interface Sandbox {
6610
6600
  */
6611
6601
  declare function createSandbox(backend?: SandboxBackend): Promise<Sandbox | null>;
6612
6602
 
6613
- type index$7_PreparedSandboxCommand = PreparedSandboxCommand;
6614
- type index$7_Sandbox = Sandbox;
6615
- type index$7_SandboxBackend = SandboxBackend;
6616
- type index$7_SandboxConfig = SandboxConfig;
6617
- type index$7_SandboxExecutionContext = SandboxExecutionContext;
6618
- type index$7_SandboxImplementation = SandboxImplementation;
6619
- declare const index$7_createSandbox: typeof createSandbox;
6620
- declare namespace index$7 {
6621
- export { bwrap as Bwrap, type index$7_PreparedSandboxCommand as PreparedSandboxCommand, type index$7_Sandbox as Sandbox, type index$7_SandboxBackend as SandboxBackend, type index$7_SandboxConfig as SandboxConfig, type index$7_SandboxExecutionContext as SandboxExecutionContext, type index$7_SandboxImplementation as SandboxImplementation, sandboxRuntime as SandboxRuntime, seatbelt as Seatbelt, index$7_createSandbox as createSandbox };
6603
+ type index$6_PreparedSandboxCommand = PreparedSandboxCommand;
6604
+ type index$6_Sandbox = Sandbox;
6605
+ type index$6_SandboxBackend = SandboxBackend;
6606
+ type index$6_SandboxConfig = SandboxConfig;
6607
+ type index$6_SandboxExecutionContext = SandboxExecutionContext;
6608
+ type index$6_SandboxImplementation = SandboxImplementation;
6609
+ declare const index$6_createSandbox: typeof createSandbox;
6610
+ declare namespace index$6 {
6611
+ export { bwrap as Bwrap, type index$6_PreparedSandboxCommand as PreparedSandboxCommand, type index$6_Sandbox as Sandbox, type index$6_SandboxBackend as SandboxBackend, type index$6_SandboxConfig as SandboxConfig, type index$6_SandboxExecutionContext as SandboxExecutionContext, type index$6_SandboxImplementation as SandboxImplementation, sandboxRuntime as SandboxRuntime, seatbelt as Seatbelt, index$6_createSandbox as createSandbox };
6622
6612
  }
6623
6613
 
6624
6614
  /**
@@ -6809,7 +6799,7 @@ declare namespace toolFilter {
6809
6799
  * SOFTWARE.
6810
6800
  */
6811
6801
 
6812
- declare namespace index$6 {
6802
+ declare namespace index$5 {
6813
6803
  export { agentTool as AgentTool, definition as Definition, loader as Loader, spawn as Spawn, taskManager as TaskManager, toolFilter as ToolFilter };
6814
6804
  }
6815
6805
 
@@ -6877,16 +6867,16 @@ declare function applyBudget(toolResults: ToolResultBlock[], workDir: string, se
6877
6867
  */
6878
6868
  declare function persistLargeResult(workDir: string, sessionId: string, toolUseId: string, content: string): string;
6879
6869
 
6880
- declare const index$5_TOOL_RESULT_PREVIEW_CHARS: typeof TOOL_RESULT_PREVIEW_CHARS;
6881
- declare const index$5_applyBudget: typeof applyBudget;
6882
- declare const index$5_buildPersistedOutputPreview: typeof buildPersistedOutputPreview;
6883
- declare const index$5_isSpillReadback: typeof isSpillReadback;
6884
- declare const index$5_persistLargeResult: typeof persistLargeResult;
6885
- declare const index$5_replaceToolResultContent: typeof replaceToolResultContent;
6886
- declare const index$5_spillDir: typeof spillDir;
6887
- declare const index$5_toDisplayPreview: typeof toDisplayPreview;
6888
- declare namespace index$5 {
6889
- export { index$5_TOOL_RESULT_PREVIEW_CHARS as TOOL_RESULT_PREVIEW_CHARS, index$5_applyBudget as applyBudget, index$5_buildPersistedOutputPreview as buildPersistedOutputPreview, index$5_isSpillReadback as isSpillReadback, index$5_persistLargeResult as persistLargeResult, index$5_replaceToolResultContent as replaceToolResultContent, index$5_spillDir as spillDir, index$5_toDisplayPreview as toDisplayPreview };
6870
+ declare const index$4_TOOL_RESULT_PREVIEW_CHARS: typeof TOOL_RESULT_PREVIEW_CHARS;
6871
+ declare const index$4_applyBudget: typeof applyBudget;
6872
+ declare const index$4_buildPersistedOutputPreview: typeof buildPersistedOutputPreview;
6873
+ declare const index$4_isSpillReadback: typeof isSpillReadback;
6874
+ declare const index$4_persistLargeResult: typeof persistLargeResult;
6875
+ declare const index$4_replaceToolResultContent: typeof replaceToolResultContent;
6876
+ declare const index$4_spillDir: typeof spillDir;
6877
+ declare const index$4_toDisplayPreview: typeof toDisplayPreview;
6878
+ declare namespace index$4 {
6879
+ export { index$4_TOOL_RESULT_PREVIEW_CHARS as TOOL_RESULT_PREVIEW_CHARS, index$4_applyBudget as applyBudget, index$4_buildPersistedOutputPreview as buildPersistedOutputPreview, index$4_isSpillReadback as isSpillReadback, index$4_persistLargeResult as persistLargeResult, index$4_replaceToolResultContent as replaceToolResultContent, index$4_spillDir as spillDir, index$4_toDisplayPreview as toDisplayPreview };
6890
6880
  }
6891
6881
 
6892
6882
  /**
@@ -6919,7 +6909,7 @@ declare class BashTool implements Tool {
6919
6909
  sandboxRequired: boolean;
6920
6910
  sandboxConfig: SandboxConfig;
6921
6911
  /**
6922
- * Background task registry, injected by the host (TUI / print mode / remote
6912
+ * Background task registry, injected by the host (UI / print mode / remote
6923
6913
  * server) — the same instance the Agent tool uses, so completion
6924
6914
  * notifications share one drain and TaskStop covers both. When null, Bash is
6925
6915
  * foreground-only: run_in_background disappears from the schema, timeouts
@@ -7034,7 +7024,6 @@ declare class ComputerUseTool implements Tool {
7034
7024
  private macHelperPromise?;
7035
7025
  constructor(options?: ComputerUseToolOptions);
7036
7026
  isConcurrencySafe(_args: Record<string, unknown>): boolean;
7037
- providerSchema(protocol: ToolProtocol): ProviderNativeToolSchema | undefined;
7038
7027
  schema(): ToolSchema;
7039
7028
  execute(ctx: ToolContext, args: Record<string, unknown>): Promise<ToolResult>;
7040
7029
  /** Execute one Anthropic-style action (also the per-item path for batches). */
@@ -8100,271 +8089,6 @@ declare namespace writeFile {
8100
8089
  export { writeFile_WriteFileTool as WriteFileTool };
8101
8090
  }
8102
8091
 
8103
- /**
8104
- * Copyright (c) 2026 hangtiancheng
8105
- *
8106
- * Permission is hereby granted, free of charge, to any person obtaining a copy
8107
- * of this software and associated documentation files (the "Software"), to deal
8108
- * in the Software without restriction, including without limitation the rights
8109
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8110
- * copies of the Software, and to permit persons to whom the Software is
8111
- * furnished to do so, subject to the following conditions:
8112
- *
8113
- * The above copyright notice and this permission notice shall be included in
8114
- * all copies or substantial portions of the Software.
8115
- *
8116
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
8117
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
8118
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
8119
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
8120
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
8121
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
8122
- * SOFTWARE.
8123
- */
8124
-
8125
- declare namespace index$4 {
8126
- export { askUser as AskUser, bash as Bash, computerUse as ComputerUse, descriptions as Descriptions, diff as Diff, editFile as EditFile, enterWorktree as EnterWorktree, exitCodeHints as ExitCodeHints, exitPlanMode as ExitPlanMode, exitWorktree as ExitWorktree, fileMutationQueue as FileMutationQueue, fileStateCache as FileStateCache, glob as Glob, grep as Grep, isDiffTool$1 as IsDiffTool, javascript as JavaScript, mcpCall as McpCall, powershell as PowerShell, readFile as ReadFile, registry$1 as Registry, shellBackground as ShellBackground, shellOutput as ShellOutput, snippets as Snippets, syntheticOutput as SyntheticOutput, toolSearch as ToolSearch, types as Types, webFetch as WebFetchTool, writeFile as WriteFile };
8127
- }
8128
-
8129
- /**
8130
- * Copyright (c) 2026 hangtiancheng
8131
- *
8132
- * Permission is hereby granted, free of charge, to any person obtaining a copy
8133
- * of this software and associated documentation files (the "Software"), to deal
8134
- * in the Software without restriction, including without limitation the rights
8135
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8136
- * copies of the Software, and to permit persons to whom the Software is
8137
- * furnished to do so, subject to the following conditions:
8138
- *
8139
- * The above copyright notice and this permission notice shall be included in
8140
- * all copies or substantial portions of the Software.
8141
- *
8142
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
8143
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
8144
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
8145
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
8146
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
8147
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
8148
- * SOFTWARE.
8149
- */
8150
-
8151
- interface ThemePalette {
8152
- accent: string;
8153
- bashMode: string;
8154
- border: string;
8155
- borderAccent: string;
8156
- borderMuted: string;
8157
- customMessageBg: string;
8158
- customMessageLabel: string;
8159
- dim: string;
8160
- error: string;
8161
- mdCode: string;
8162
- mdCodeBlock: string;
8163
- mdCodeBlockBorder: string;
8164
- mdHeading: string;
8165
- mdHr: string;
8166
- mdLink: string;
8167
- mdLinkUrl: string;
8168
- mdListBullet: string;
8169
- mdQuote: string;
8170
- mdQuoteBorder: string;
8171
- muted: string;
8172
- searchMatchBg: string;
8173
- searchMatchText: string;
8174
- selectedBg: string;
8175
- success: string;
8176
- syntaxComment: string;
8177
- syntaxFunction: string;
8178
- syntaxKeyword: string;
8179
- syntaxNumber: string;
8180
- syntaxOperator: string;
8181
- syntaxPunctuation: string;
8182
- syntaxString: string;
8183
- syntaxType: string;
8184
- syntaxVariable: string;
8185
- text: string;
8186
- thinking: string;
8187
- thinkingText: string;
8188
- thinkingHigh: string;
8189
- thinkingLow: string;
8190
- thinkingMax: string;
8191
- thinkingMedium: string;
8192
- thinkingMinimal: string;
8193
- thinkingOff: string;
8194
- thinkingXHigh: string;
8195
- toolDiffAdded: string;
8196
- toolDiffContext: string;
8197
- toolDiffRemoved: string;
8198
- toolErrorBg: string;
8199
- toolOutput: string;
8200
- toolPendingBg: string;
8201
- toolSuccessBg: string;
8202
- toolTitle: string;
8203
- customMessageText: string;
8204
- userMessageText: string;
8205
- userMessageBg: string;
8206
- warning: string;
8207
- }
8208
- declare const DARK_THEME: ThemePalette;
8209
- declare const LIGHT_THEME: ThemePalette;
8210
- declare const THEME: ThemePalette;
8211
- declare function setThemeMode(mode: "dark" | "light"): void;
8212
- declare function thinkingLevelColor(level: ThinkingLevel): string;
8213
- type ActivityStatus = "idle" | "working" | "retry" | "compacting" | "error";
8214
- /** Map an agent lifecycle state to the color used by the composer status border. */
8215
- declare function activityStatusColor(status: ActivityStatus): string;
8216
- declare const ICONS: {
8217
- readonly active: "◉";
8218
- readonly arrow: "→";
8219
- readonly branch: "├─";
8220
- readonly collapsed: "⊞";
8221
- readonly expanded: "⊟";
8222
- readonly inactive: "○";
8223
- readonly lastBranch: "└─";
8224
- readonly prompt: ">";
8225
- readonly success: "✓";
8226
- readonly tree: "│";
8227
- };
8228
-
8229
- type styles_ActivityStatus = ActivityStatus;
8230
- declare const styles_DARK_THEME: typeof DARK_THEME;
8231
- declare const styles_ICONS: typeof ICONS;
8232
- declare const styles_LIGHT_THEME: typeof LIGHT_THEME;
8233
- declare const styles_THEME: typeof THEME;
8234
- type styles_ThemePalette = ThemePalette;
8235
- declare const styles_activityStatusColor: typeof activityStatusColor;
8236
- declare const styles_setThemeMode: typeof setThemeMode;
8237
- declare const styles_thinkingLevelColor: typeof thinkingLevelColor;
8238
- declare namespace styles {
8239
- export { type styles_ActivityStatus as ActivityStatus, styles_DARK_THEME as DARK_THEME, styles_ICONS as ICONS, styles_LIGHT_THEME as LIGHT_THEME, styles_THEME as THEME, type styles_ThemePalette as ThemePalette, styles_activityStatusColor as activityStatusColor, styles_setThemeMode as setThemeMode, styles_thinkingLevelColor as thinkingLevelColor };
8240
- }
8241
-
8242
- /**
8243
- * Copyright (c) 2026 hangtiancheng
8244
- *
8245
- * Permission is hereby granted, free of charge, to any person obtaining a copy
8246
- * of this software and associated documentation files (the "Software"), to deal
8247
- * in the Software without restriction, including without limitation the rights
8248
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8249
- * copies of the Software, and to permit persons to whom the Software is
8250
- * furnished to do so, subject to the following conditions:
8251
- *
8252
- * The above copyright notice and this permission notice shall be included in
8253
- * all copies or substantial portions of the Software.
8254
- *
8255
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
8256
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
8257
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
8258
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
8259
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
8260
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
8261
- * SOFTWARE.
8262
- */
8263
- interface Options {
8264
- blocked: boolean;
8265
- send: (message: string) => Promise<void>;
8266
- onError: (error: unknown) => void;
8267
- }
8268
- declare function useFollowUpQueue({ blocked, send, onError }: Options): {
8269
- messages: string[];
8270
- enqueue: (message: string) => void;
8271
- takeLast: () => string | undefined;
8272
- processing: boolean;
8273
- paused: boolean;
8274
- };
8275
-
8276
- declare const useFollowUpQueue$1_useFollowUpQueue: typeof useFollowUpQueue;
8277
- declare namespace useFollowUpQueue$1 {
8278
- export { useFollowUpQueue$1_useFollowUpQueue as useFollowUpQueue };
8279
- }
8280
-
8281
- /**
8282
- * Copyright (c) 2026 hangtiancheng
8283
- *
8284
- * Permission is hereby granted, free of charge, to any person obtaining a copy
8285
- * of this software and associated documentation files (the "Software"), to deal
8286
- * in the Software without restriction, including without limitation the rights
8287
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8288
- * copies of the Software, and to permit persons to whom the Software is
8289
- * furnished to do so, subject to the following conditions:
8290
- *
8291
- * The above copyright notice and this permission notice shall be included in
8292
- * all copies or substantial portions of the Software.
8293
- *
8294
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
8295
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
8296
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
8297
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
8298
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
8299
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
8300
- * SOFTWARE.
8301
- */
8302
- declare function useIdeInput(workDir: string): {
8303
- insertInputTextRef: react.RefObject<((text: string) => void) | null>;
8304
- clearInputRef: react.RefObject<(() => void) | null>;
8305
- };
8306
-
8307
- declare const useIdeInput$1_useIdeInput: typeof useIdeInput;
8308
- declare namespace useIdeInput$1 {
8309
- export { useIdeInput$1_useIdeInput as useIdeInput };
8310
- }
8311
-
8312
- /**
8313
- * Copyright (c) 2026 hangtiancheng
8314
- *
8315
- * Permission is hereby granted, free of charge, to any person obtaining a copy
8316
- * of this software and associated documentation files (the "Software"), to deal
8317
- * in the Software without restriction, including without limitation the rights
8318
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8319
- * copies of the Software, and to permit persons to whom the Software is
8320
- * furnished to do so, subject to the following conditions:
8321
- *
8322
- * The above copyright notice and this permission notice shall be included in
8323
- * all copies or substantial portions of the Software.
8324
- *
8325
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
8326
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
8327
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
8328
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
8329
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
8330
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
8331
- * SOFTWARE.
8332
- */
8333
-
8334
- declare function useTeammateStates(manager: TeamManager): {
8335
- name: string;
8336
- teamName: string;
8337
- status: "completed" | "failed" | "running" | "idle" | "stopped";
8338
- progress: {
8339
- toolUseCount: number;
8340
- turnCount: number;
8341
- tokenCount: number;
8342
- activeTools: {
8343
- toolId: string;
8344
- toolName: string;
8345
- }[];
8346
- recentActivities: {
8347
- toolName: string;
8348
- input: Record<string, unknown>;
8349
- activityDescription: string;
8350
- }[];
8351
- lastActivity?: {
8352
- toolName: string;
8353
- input: Record<string, unknown>;
8354
- activityDescription: string;
8355
- } | undefined;
8356
- };
8357
- startTime: number;
8358
- spinnerVerb: string;
8359
- originToolCallId?: string | undefined;
8360
- lastMessage?: string | undefined;
8361
- }[];
8362
-
8363
- declare const useTeammateStates$1_useTeammateStates: typeof useTeammateStates;
8364
- declare namespace useTeammateStates$1 {
8365
- export { useTeammateStates$1_useTeammateStates as useTeammateStates };
8366
- }
8367
-
8368
8092
  /**
8369
8093
  * Copyright (c) 2026 hangtiancheng
8370
8094
  *
@@ -8388,7 +8112,7 @@ declare namespace useTeammateStates$1 {
8388
8112
  */
8389
8113
 
8390
8114
  declare namespace index$3 {
8391
- export { styles as Styles, useFollowUpQueue$1 as UseFollowUpQueue, useIdeInput$1 as UseIdeInput, useTeammateStates$1 as UseTeammateStates };
8115
+ export { askUser as AskUser, bash as Bash, computerUse as ComputerUse, descriptions as Descriptions, diff as Diff, editFile as EditFile, enterWorktree as EnterWorktree, exitCodeHints as ExitCodeHints, exitPlanMode as ExitPlanMode, exitWorktree as ExitWorktree, fileMutationQueue as FileMutationQueue, fileStateCache as FileStateCache, glob as Glob, grep as Grep, isDiffTool$1 as IsDiffTool, javascript as JavaScript, mcpCall as McpCall, powershell as PowerShell, readFile as ReadFile, registry$1 as Registry, shellBackground as ShellBackground, shellOutput as ShellOutput, snippets as Snippets, syntheticOutput as SyntheticOutput, toolSearch as ToolSearch, types as Types, webFetch as WebFetchTool, writeFile as WriteFile };
8392
8116
  }
8393
8117
 
8394
8118
  /**
@@ -8805,7 +8529,7 @@ declare function isTerminalGone(err: unknown): boolean;
8805
8529
  /**
8806
8530
  * Writes the exit marker; subsequent calls are no-ops.
8807
8531
  *
8808
- * The TUI runs in raw mode where the `exit` event may not fire on teardown,
8532
+ * The UI runs in raw mode where the `exit` event may not fire on teardown,
8809
8533
  * so the main flow also calls this explicitly. Whichever path arrives first wins.
8810
8534
  */
8811
8535
  declare function recordExit(code: number | string): void;
@@ -8926,4 +8650,4 @@ declare namespace version$1 {
8926
8650
  export { version$1_version as version };
8927
8651
  }
8928
8652
 
8929
- export { index$s as Acp, index$o as Agent, index$l as Bootstrap, index$j as CodeReview, index$i as Commands, index$h as Compact, index$r as Config, index$u as Conversation, index$w as FileHistory, index$g as History, index$q as Hooks, index$f as Images, index$e as LLM, index$d as Logger, index$c as MCP, index$b as Memory, index$v as Permissions, index$a as PlanFile, printMode as PrintMode, index$9 as Prompt, providerLogin as ProviderLogin, recover$1 as Recover, index$8 as Remote, index$7 as Sandbox, index$t as Session, index$n as Skills, index$6 as Subagent, teammate as Teammate, index$k as Teams, index$p as Telemetry, index$m as Todo, index$5 as ToolResult, index$4 as Tools, index$3 as UI, index$2 as Utils, index$1 as VSCode, version$1 as Version, index as Worktree };
8653
+ export { index$r as Acp, index$n as Agent, index$k as Bootstrap, index$i as CodeReview, index$h as Commands, index$g as Compact, index$q as Config, index$t as Conversation, index$v as FileHistory, index$f as History, index$p as Hooks, index$e as Images, index$d as LLM, index$c as Logger, index$b as MCP, index$a as Memory, index$u as Permissions, index$9 as PlanFile, printMode as PrintMode, index$8 as Prompt, providerLogin as ProviderLogin, recover$1 as Recover, index$7 as Remote, index$6 as Sandbox, index$s as Session, index$m as Skills, index$5 as Subagent, teammate as Teammate, index$j as Teams, index$o as Telemetry, index$l as Todo, index$4 as ToolResult, index$3 as Tools, index$2 as Utils, index$1 as VSCode, version$1 as Version, index as Worktree };