@yukino.js/yukino 0.0.13-dev → 0.0.14

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 (43) hide show
  1. package/README.md +20 -16
  2. package/dist/{a2a-DG2JNM3U.js → a2a-D7KSHNUT.js} +4 -3
  3. package/dist/{acp-DCZDS6FQ.js → acp-W4R5P6CZ.js} +7 -7
  4. package/dist/{anthropic-5BTWVZVT.js → anthropic-DSNN5AE5.js} +1 -1
  5. package/dist/browser/dist/index.html +44 -0
  6. package/dist/browser/dist/static/index.css +2 -0
  7. package/dist/{fe → browser}/dist/static/index.js +48 -48
  8. package/dist/{chunk-4CLD7LEU.js → chunk-A7CJPQC5.js} +1 -1
  9. package/dist/{chunk-COHBT6M7.js → chunk-D2SZ6GQJ.js} +184 -186
  10. package/dist/{chunk-AZQD75PX.js → chunk-GVRZBATW.js} +1 -1
  11. package/dist/{chunk-OI2W6R6H.js → chunk-HWCLMDQF.js} +8 -8
  12. package/dist/{chunk-BDLFNDC4.js → chunk-I356BFD2.js} +1 -1
  13. package/dist/chunk-JDK4YHNF.js +63 -0
  14. package/dist/{chunk-5URXBVET.js → chunk-OREDGNI6.js} +1 -1
  15. package/dist/chunk-T6WQ3Z5J.js +4 -0
  16. package/dist/{chunk-5DK2M7VI.js → chunk-UUWXDH7J.js} +1 -1
  17. package/dist/{chunk-IWMCIYOG.js → chunk-WKSVBXUO.js} +26 -25
  18. package/dist/{chunk-SZXXASVH.js → chunk-Z3EFT645.js} +1 -1
  19. package/dist/lib/{anthropic-AVZIC22O.js → anthropic-TDNNKQMT.js} +4 -4
  20. package/dist/lib/{chunk-O2H6VKKR.js → chunk-56DL5ZYL.js} +2 -2
  21. package/dist/lib/{chunk-TUNZLQLO.js → chunk-BRLCCEU7.js} +1 -1
  22. package/dist/lib/{chunk-EGJKLA2W.js → chunk-EJNKEFE7.js} +2 -2
  23. package/dist/lib/{chunk-XH7D5FLE.js → chunk-IZXMDC5O.js} +3 -3
  24. package/dist/lib/{chunk-QJ32WYQY.js → chunk-UKXGO7AW.js} +264 -324
  25. package/dist/lib/{chunk-GVI5R2DA.js → chunk-WNGF7243.js} +1 -2
  26. package/dist/lib/{chunk-LSI3T24Q.js → chunk-WXR5HNB4.js} +1 -1
  27. package/dist/lib/index.d.ts +118 -298
  28. package/dist/lib/index.js +472 -1235
  29. package/dist/lib/{openai-54IQOU6Y.js → openai-6VYIA7CT.js} +3 -3
  30. package/dist/lib/{providers-MOCB6Y5L.js → providers-UXL5FVF7.js} +2 -2
  31. package/dist/lib/{tool-filter-5Z6UTRRR.js → tool-filter-O6YLSFAS.js} +3 -3
  32. package/dist/{main-IA22XMQR.js → main-FOIMPIOD.js} +232 -223
  33. package/dist/main.js +11 -2
  34. package/dist/{openai-I2TTMBWK.js → openai-7C6BVQ7M.js} +1 -1
  35. package/dist/{providers-DXQRJUIY.js → providers-TH6MQC7V.js} +1 -1
  36. package/dist/{server-QS7CX37F.js → server-TC5GDF6E.js} +1 -1
  37. package/dist/tool-filter-SYH5ZFC2.js +4 -0
  38. package/package.json +6 -6
  39. package/dist/chunk-CW5XFH7H.js +0 -59
  40. package/dist/chunk-UGX62ZSO.js +0 -4
  41. package/dist/fe/dist/index.html +0 -21
  42. package/dist/fe/dist/static/index.css +0 -2
  43. package/dist/tool-filter-KDQMXIDC.js +0 -4
@@ -235,7 +235,7 @@ declare namespace index$y {
235
235
  export { index$y_GOAL_RECORD as GOAL_RECORD, index$y_GoalManager as GoalManager, index$y_GoalSchema as GoalSchema, type index$y_GoalState as GoalState, index$y_MAX_GOAL_TURNS as MAX_GOAL_TURNS, index$y_handleGoalCommand as handleGoalCommand };
236
236
  }
237
237
 
238
- declare function requestToolPermission(handler: PermissionRequestHandler, toolName: string, args: Record<string, unknown>, decision: Decision, toolCallId: string, signal?: AbortSignal): ReturnType<PermissionRequestHandler>;
238
+ declare function requestToolPermission(handler: PermissionRequestHandler, toolName: string, args: Record<string, unknown>, decision: Decision, toolCallId: string, signal?: AbortSignal, source?: PermissionRequestSource): ReturnType<PermissionRequestHandler>;
239
239
 
240
240
  declare const request_requestToolPermission: typeof requestToolPermission;
241
241
  declare namespace request {
@@ -282,21 +282,19 @@ declare function isSafeCommand(command: string): boolean;
282
282
  declare class PermissionChecker {
283
283
  private readonly cwd;
284
284
  private modeState;
285
- private delegated;
286
- planModeLocked: boolean;
285
+ private parent?;
287
286
  planFilePath: string;
288
287
  teammate: boolean;
289
288
  sandboxEnabled: boolean;
290
289
  sandboxAutoAllow: boolean;
291
290
  private sandbox;
292
291
  private ruleEngine;
293
- constructor(cwd: string, mode?: PermissionMode, modeSource?: () => PermissionMode);
292
+ constructor(cwd: string, mode?: PermissionMode);
294
293
  get mode(): PermissionMode;
295
294
  set mode(mode: PermissionMode);
296
- get delegatedMode(): Exclude<PermissionMode, "plan">;
297
295
  subscribeMode(listener: () => void): () => void;
298
296
  forCwd(cwd: string): PermissionChecker;
299
- forSubagent(cwd: string): PermissionChecker;
297
+ forSubagent(cwd: string, mode?: PermissionMode): PermissionChecker;
300
298
  check(toolName: string, category: "read" | "write" | "command", args: Record<string, unknown>): Decision;
301
299
  allowExtraRoot(path: string): void;
302
300
  allowAlways(toolName: string, args: Record<string, unknown>): void;
@@ -423,7 +421,11 @@ interface ToolResult {
423
421
  contentBlocks?: ToolResultContentBlock[];
424
422
  isError: boolean;
425
423
  }
426
- type PermissionRequestHandler = (toolName: string, args: Record<string, unknown>, decision: Decision, toolCallId: string, abortSignal?: AbortSignal) => Promise<"allow" | "deny" | "allowAlways">;
424
+ interface PermissionRequestSource {
425
+ agentName: string;
426
+ cwd: string;
427
+ }
428
+ type PermissionRequestHandler = (toolName: string, args: Record<string, unknown>, decision: Decision, toolCallId: string, abortSignal?: AbortSignal, source?: PermissionRequestSource) => Promise<"allow" | "deny" | "allowAlways">;
427
429
  interface ToolContext {
428
430
  cwd: string;
429
431
  goalManager?: GoalManager;
@@ -451,6 +453,7 @@ interface ToolContext {
451
453
  fileHistory?: FileHistory | undefined;
452
454
  fileStateCache?: FileStateCache | undefined;
453
455
  permissionChecker?: PermissionChecker;
456
+ approvedPermissionMode?: PermissionChecker["mode"];
454
457
  onPermissionRequest?: PermissionRequestHandler;
455
458
  }
456
459
  /**
@@ -542,6 +545,7 @@ type types$1_McpLoadingMode = McpLoadingMode;
542
545
  type types$1_OpenAICompatToolSchema = OpenAICompatToolSchema;
543
546
  type types$1_OpenAIResponsesToolSchema = OpenAIResponsesToolSchema;
544
547
  type types$1_PermissionRequestHandler = PermissionRequestHandler;
548
+ type types$1_PermissionRequestSource = PermissionRequestSource;
545
549
  type types$1_ProviderToolSchema = ProviderToolSchema;
546
550
  declare const types$1_SKIP_DIRS: typeof SKIP_DIRS;
547
551
  type types$1_Tool = Tool;
@@ -554,7 +558,7 @@ type types$1_ToolSchema = ToolSchema;
554
558
  declare const types$1_isToolResultContentBlock: typeof isToolResultContentBlock;
555
559
  declare const types$1_normalizeToolResultContentBlock: typeof normalizeToolResultContentBlock;
556
560
  declare namespace types$1 {
557
- export { type types$1_AnthropicToolSchema as AnthropicToolSchema, type types$1_MCPToolLike as MCPToolLike, type types$1_McpLoadingMode as McpLoadingMode, type types$1_OpenAICompatToolSchema as OpenAICompatToolSchema, type types$1_OpenAIResponsesToolSchema as OpenAIResponsesToolSchema, type types$1_PermissionRequestHandler as PermissionRequestHandler, type types$1_ProviderToolSchema as ProviderToolSchema, types$1_SKIP_DIRS as SKIP_DIRS, type types$1_Tool as Tool, type types$1_ToolCategory as ToolCategory, type types$1_ToolContext as ToolContext, type types$1_ToolProtocol as ToolProtocol, type types$1_ToolResult as ToolResult, type types$1_ToolResultContentBlock as ToolResultContentBlock, type types$1_ToolSchema as ToolSchema, types$1_isToolResultContentBlock as isToolResultContentBlock, types$1_normalizeToolResultContentBlock as normalizeToolResultContentBlock };
561
+ export { type types$1_AnthropicToolSchema as AnthropicToolSchema, type types$1_MCPToolLike as MCPToolLike, type types$1_McpLoadingMode as McpLoadingMode, type types$1_OpenAICompatToolSchema as OpenAICompatToolSchema, type types$1_OpenAIResponsesToolSchema as OpenAIResponsesToolSchema, type types$1_PermissionRequestHandler as PermissionRequestHandler, type types$1_PermissionRequestSource as PermissionRequestSource, type types$1_ProviderToolSchema as ProviderToolSchema, types$1_SKIP_DIRS as SKIP_DIRS, type types$1_Tool as Tool, type types$1_ToolCategory as ToolCategory, type types$1_ToolContext as ToolContext, type types$1_ToolProtocol as ToolProtocol, type types$1_ToolResult as ToolResult, type types$1_ToolResultContentBlock as ToolResultContentBlock, type types$1_ToolSchema as ToolSchema, types$1_isToolResultContentBlock as isToolResultContentBlock, types$1_normalizeToolResultContentBlock as normalizeToolResultContentBlock };
558
562
  }
559
563
 
560
564
  declare function expandAtRefs(text: string, cwd: string): string;
@@ -2112,6 +2116,7 @@ declare class ToolRegistry {
2112
2116
  private tools;
2113
2117
  private owned;
2114
2118
  private disposal?;
2119
+ private cleanup;
2115
2120
  private discovered;
2116
2121
  /**
2117
2122
  * How MCP tools are loaded, written by mcp/strategy after connecting to the
@@ -2135,6 +2140,7 @@ declare class ToolRegistry {
2135
2140
  register(tool: Tool): void;
2136
2141
  registerBorrowed(tool: Tool): void;
2137
2142
  takeOwnershipFrom(source: ToolRegistry): void;
2143
+ addCleanup(cleanup: () => void): void;
2138
2144
  dispose(): Promise<void>;
2139
2145
  /**
2140
2146
  * Removes a tool and forgets its discovery state, so a re-registered tool
@@ -2200,7 +2206,7 @@ declare namespace privacy {
2200
2206
  export { privacy_scrubTelemetryPayload as scrubTelemetryPayload };
2201
2207
  }
2202
2208
 
2203
- type TelemetryMode = "a2a" | "acp" | "print" | "remote" | "teammate" | "terminal" | "unknown";
2209
+ type TelemetryMode = "a2a" | "acp" | "print" | "remote" | "terminal" | "unknown";
2204
2210
  type TelemetryObservationKind = "agent" | "generation" | "tool";
2205
2211
  type TelemetryMetricKind = "counter" | "histogram";
2206
2212
  type TelemetryAttributes = Record<string, string | number | boolean>;
@@ -2310,6 +2316,7 @@ declare namespace streamingExecutor {
2310
2316
  }
2311
2317
 
2312
2318
  interface AgentConfig {
2319
+ agentName?: string;
2313
2320
  client: LLMClient;
2314
2321
  registry: ToolRegistry;
2315
2322
  checker: PermissionChecker;
@@ -2378,6 +2385,7 @@ declare class Agent {
2378
2385
  private onLoopComplete?;
2379
2386
  private compactTracking;
2380
2387
  private onPermissionRequest?;
2388
+ private agentName;
2381
2389
  private toolFilter?;
2382
2390
  private coordinatorActiveFn?;
2383
2391
  activeSkills: Map<string, string>;
@@ -2456,6 +2464,7 @@ interface InteractionSummary {
2456
2464
  failedToolCalls: number;
2457
2465
  /** Uncached prompt tokens; the cached prefix is counted separately. */
2458
2466
  inputTokens: number;
2467
+ latestVersion?: string;
2459
2468
  outputTokens: number;
2460
2469
  sessionId: string;
2461
2470
  startedAt: number;
@@ -2817,25 +2826,25 @@ declare function recordTokens(p: AgentProgress, inputTokens: number, outputToken
2817
2826
  declare function summarizeActivities(activities: ToolActivity[]): string;
2818
2827
  declare function formatTokens(n: number): string;
2819
2828
 
2820
- type progress_ActiveTool = ActiveTool;
2821
- declare const progress_ActiveToolSchema: typeof ActiveToolSchema;
2822
- type progress_AgentProgress = AgentProgress;
2823
- declare const progress_AgentProgressSchema: typeof AgentProgressSchema;
2824
- type progress_TeammateUIState = TeammateUIState;
2825
- declare const progress_TeammateUIStateSchema: typeof TeammateUIStateSchema;
2826
- type progress_ToolActivity = ToolActivity;
2827
- declare const progress_ToolActivitySchema: typeof ToolActivitySchema;
2828
- declare const progress_clearActiveTools: typeof clearActiveTools;
2829
- declare const progress_createProgress: typeof createProgress;
2830
- declare const progress_formatTokens: typeof formatTokens;
2831
- declare const progress_recordTokens: typeof recordTokens;
2832
- declare const progress_recordToolResult: typeof recordToolResult;
2833
- declare const progress_recordToolStart: typeof recordToolStart;
2834
- declare const progress_recordToolUse: typeof recordToolUse;
2835
- declare const progress_recordTurnComplete: typeof recordTurnComplete;
2836
- declare const progress_summarizeActivities: typeof summarizeActivities;
2837
- declare namespace progress {
2838
- export { type progress_ActiveTool as ActiveTool, progress_ActiveToolSchema as ActiveToolSchema, type progress_AgentProgress as AgentProgress, progress_AgentProgressSchema as AgentProgressSchema, type progress_TeammateUIState as TeammateUIState, progress_TeammateUIStateSchema as TeammateUIStateSchema, type progress_ToolActivity as ToolActivity, progress_ToolActivitySchema as ToolActivitySchema, progress_clearActiveTools as clearActiveTools, progress_createProgress as createProgress, progress_formatTokens as formatTokens, progress_recordTokens as recordTokens, progress_recordToolResult as recordToolResult, progress_recordToolStart as recordToolStart, progress_recordToolUse as recordToolUse, progress_recordTurnComplete as recordTurnComplete, progress_summarizeActivities as summarizeActivities };
2829
+ type progress$1_ActiveTool = ActiveTool;
2830
+ declare const progress$1_ActiveToolSchema: typeof ActiveToolSchema;
2831
+ type progress$1_AgentProgress = AgentProgress;
2832
+ declare const progress$1_AgentProgressSchema: typeof AgentProgressSchema;
2833
+ type progress$1_TeammateUIState = TeammateUIState;
2834
+ declare const progress$1_TeammateUIStateSchema: typeof TeammateUIStateSchema;
2835
+ type progress$1_ToolActivity = ToolActivity;
2836
+ declare const progress$1_ToolActivitySchema: typeof ToolActivitySchema;
2837
+ declare const progress$1_clearActiveTools: typeof clearActiveTools;
2838
+ declare const progress$1_createProgress: typeof createProgress;
2839
+ declare const progress$1_formatTokens: typeof formatTokens;
2840
+ declare const progress$1_recordTokens: typeof recordTokens;
2841
+ declare const progress$1_recordToolResult: typeof recordToolResult;
2842
+ declare const progress$1_recordToolStart: typeof recordToolStart;
2843
+ declare const progress$1_recordToolUse: typeof recordToolUse;
2844
+ declare const progress$1_recordTurnComplete: typeof recordTurnComplete;
2845
+ declare const progress$1_summarizeActivities: typeof summarizeActivities;
2846
+ declare namespace progress$1 {
2847
+ export { type progress$1_ActiveTool as ActiveTool, progress$1_ActiveToolSchema as ActiveToolSchema, type progress$1_AgentProgress as AgentProgress, progress$1_AgentProgressSchema as AgentProgressSchema, type progress$1_TeammateUIState as TeammateUIState, progress$1_TeammateUIStateSchema as TeammateUIStateSchema, type progress$1_ToolActivity as ToolActivity, progress$1_ToolActivitySchema as ToolActivitySchema, progress$1_clearActiveTools as clearActiveTools, progress$1_createProgress as createProgress, progress$1_formatTokens as formatTokens, progress$1_recordTokens as recordTokens, progress$1_recordToolResult as recordToolResult, progress$1_recordToolStart as recordToolStart, progress$1_recordToolUse as recordToolUse, progress$1_recordTurnComplete as recordTurnComplete, progress$1_summarizeActivities as summarizeActivities };
2839
2848
  }
2840
2849
 
2841
2850
  declare const StoredTaskStatusSchema: z$1.ZodEnum<{
@@ -2997,6 +3006,17 @@ declare namespace dependencies {
2997
3006
  export { dependencies_unresolvedTaskDependencies as unresolvedTaskDependencies, dependencies_validateTaskDependencies as validateTaskDependencies };
2998
3007
  }
2999
3008
 
3009
+ declare function taskProgress(tasks: readonly Task[]): {
3010
+ completed: number;
3011
+ total: number;
3012
+ label: string;
3013
+ };
3014
+
3015
+ declare const progress_taskProgress: typeof taskProgress;
3016
+ declare namespace progress {
3017
+ export { progress_taskProgress as taskProgress };
3018
+ }
3019
+
3000
3020
  interface Task {
3001
3021
  id: string;
3002
3022
  subject: string;
@@ -3058,7 +3078,7 @@ type index$n_TaskUpdates = TaskUpdates;
3058
3078
  type index$n_TodoInput = TodoInput;
3059
3079
  declare const index$n_mergeTaskMetadata: typeof mergeTaskMetadata;
3060
3080
  declare namespace index$n {
3061
- export { dependencies as Dependencies, store as Store, type index$n_Task as Task, type index$n_TaskBoard as TaskBoard, index$n_TaskList as TaskList, type index$n_TaskUpdates as TaskUpdates, type index$n_TodoInput as TodoInput, tools$2 as Tools, index$n_mergeTaskMetadata as mergeTaskMetadata };
3081
+ export { dependencies as Dependencies, progress as Progress, store as Store, type index$n_Task as Task, type index$n_TaskBoard as TaskBoard, index$n_TaskList as TaskList, type index$n_TaskUpdates as TaskUpdates, type index$n_TodoInput as TodoInput, tools$2 as Tools, index$n_mergeTaskMetadata as mergeTaskMetadata };
3062
3082
  }
3063
3083
 
3064
3084
  interface SharedTask extends Task {
@@ -3076,7 +3096,9 @@ declare class SharedTaskStore {
3076
3096
  private path;
3077
3097
  private nextId;
3078
3098
  private tasks;
3099
+ private listeners;
3079
3100
  constructor(path: string);
3101
+ subscribe(listener: (tasks: SharedTask[]) => void): () => void;
3080
3102
  private load;
3081
3103
  private save;
3082
3104
  private mutate;
@@ -3113,13 +3135,6 @@ declare const TeamMemberEntrySchema: z$1.ZodObject<{
3113
3135
  model: z$1.ZodOptional<z$1.ZodString>;
3114
3136
  joinedAt: z$1.ZodNumber;
3115
3137
  worktreePath: z$1.ZodOptional<z$1.ZodString>;
3116
- backendType: z$1.ZodEnum<{
3117
- "in-process": "in-process";
3118
- tmux: "tmux";
3119
- iterm: "iterm";
3120
- }>;
3121
- paneId: z$1.ZodOptional<z$1.ZodString>;
3122
- workerPid: z$1.ZodOptional<z$1.ZodNumber>;
3123
3138
  isActive: z$1.ZodBoolean;
3124
3139
  }, z$1.core.$strip>;
3125
3140
  type TeamMemberEntry = z$1.infer<typeof TeamMemberEntrySchema>;
@@ -3131,19 +3146,10 @@ type TeamMemberEntry = z$1.infer<typeof TeamMemberEntrySchema>;
3131
3146
  * with both sides correlated by member name.
3132
3147
  *
3133
3148
  * This file serves Leader-side cross-restart continuity: TeamManager.get()
3134
- * hydrates the roster and recreates runtime UI/stop handles for active members.
3135
- * Pane teammates read it for leader liveness (leaderPid): a teammate whose
3136
- * leader has been gone for a sustained period exits instead of polling forever.
3137
- * Teammates receive the team name, member name, and mailbox directory via
3138
- * command-line flags at spawn.
3149
+ * hydrates the roster and marks interrupted runtimes inactive.
3139
3150
  */
3140
3151
  declare const TeamFileSchema: z$1.ZodObject<{
3141
3152
  name: z$1.ZodString;
3142
- mode: z$1.ZodEnum<{
3143
- "in-process": "in-process";
3144
- tmux: "tmux";
3145
- iterm: "iterm";
3146
- }>;
3147
3153
  description: z$1.ZodOptional<z$1.ZodString>;
3148
3154
  createdAt: z$1.ZodNumber;
3149
3155
  leaderAgentId: z$1.ZodString;
@@ -3153,7 +3159,6 @@ declare const TeamFileSchema: z$1.ZodObject<{
3153
3159
  plan: "plan";
3154
3160
  bypassPermissions: "bypassPermissions";
3155
3161
  }>;
3156
- leaderPid: z$1.ZodOptional<z$1.ZodNumber>;
3157
3162
  members: z$1.ZodArray<z$1.ZodObject<{
3158
3163
  agentId: z$1.ZodString;
3159
3164
  name: z$1.ZodString;
@@ -3161,13 +3166,6 @@ declare const TeamFileSchema: z$1.ZodObject<{
3161
3166
  model: z$1.ZodOptional<z$1.ZodString>;
3162
3167
  joinedAt: z$1.ZodNumber;
3163
3168
  worktreePath: z$1.ZodOptional<z$1.ZodString>;
3164
- backendType: z$1.ZodEnum<{
3165
- "in-process": "in-process";
3166
- tmux: "tmux";
3167
- iterm: "iterm";
3168
- }>;
3169
- paneId: z$1.ZodOptional<z$1.ZodString>;
3170
- workerPid: z$1.ZodOptional<z$1.ZodNumber>;
3171
3169
  isActive: z$1.ZodBoolean;
3172
3170
  }, z$1.core.$strip>>;
3173
3171
  }, z$1.core.$strip>;
@@ -3175,7 +3173,7 @@ type TeamFile = z$1.infer<typeof TeamFileSchema>;
3175
3173
  /**
3176
3174
  * Project-scoped root directory for team data. The canonical cwd is
3177
3175
  * hashed so unrelated projects cannot restore, list, mutate, or delete each
3178
- * other's teams while pane teammates can still use a home-anchored path.
3176
+ * other's teams.
3179
3177
  */
3180
3178
  declare function teamsBaseDir(cwd: string): string;
3181
3179
  /**
@@ -3206,7 +3204,6 @@ declare function readTeamFileAtPath(path: string): TeamFile | null;
3206
3204
  * Persistence remains best-effort for the in-memory team.
3207
3205
  */
3208
3206
  declare function writeTeamFile(cwd: string, name: string, file: TeamFile, removedMembers?: string[]): void;
3209
- declare function registerTeammateProcess(configPath: string, memberName: string, pid: number): void;
3210
3207
 
3211
3208
  type teamFile_TeamFile = TeamFile;
3212
3209
  type teamFile_TeamMemberEntry = TeamMemberEntry;
@@ -3214,14 +3211,13 @@ declare const teamFile_TeamMemberEntrySchema: typeof TeamMemberEntrySchema;
3214
3211
  declare const teamFile_listTeamNames: typeof listTeamNames;
3215
3212
  declare const teamFile_readTeamFile: typeof readTeamFile;
3216
3213
  declare const teamFile_readTeamFileAtPath: typeof readTeamFileAtPath;
3217
- declare const teamFile_registerTeammateProcess: typeof registerTeammateProcess;
3218
3214
  declare const teamFile_sanitizeTeamName: typeof sanitizeTeamName;
3219
3215
  declare const teamFile_teamConfigPath: typeof teamConfigPath;
3220
3216
  declare const teamFile_teamDir: typeof teamDir;
3221
3217
  declare const teamFile_teamsBaseDir: typeof teamsBaseDir;
3222
3218
  declare const teamFile_writeTeamFile: typeof writeTeamFile;
3223
3219
  declare namespace teamFile {
3224
- export { type teamFile_TeamFile as TeamFile, type teamFile_TeamMemberEntry as TeamMemberEntry, teamFile_TeamMemberEntrySchema as TeamMemberEntrySchema, teamFile_listTeamNames as listTeamNames, teamFile_readTeamFile as readTeamFile, teamFile_readTeamFileAtPath as readTeamFileAtPath, teamFile_registerTeammateProcess as registerTeammateProcess, teamFile_sanitizeTeamName as sanitizeTeamName, teamFile_teamConfigPath as teamConfigPath, teamFile_teamDir as teamDir, teamFile_teamsBaseDir as teamsBaseDir, teamFile_writeTeamFile as writeTeamFile };
3220
+ export { type teamFile_TeamFile as TeamFile, type teamFile_TeamMemberEntry as TeamMemberEntry, teamFile_TeamMemberEntrySchema as TeamMemberEntrySchema, teamFile_listTeamNames as listTeamNames, teamFile_readTeamFile as readTeamFile, teamFile_readTeamFileAtPath as readTeamFileAtPath, teamFile_sanitizeTeamName as sanitizeTeamName, teamFile_teamConfigPath as teamConfigPath, teamFile_teamDir as teamDir, teamFile_teamsBaseDir as teamsBaseDir, teamFile_writeTeamFile as writeTeamFile };
3225
3221
  }
3226
3222
 
3227
3223
  interface AgentDefinition {
@@ -3232,7 +3228,7 @@ interface AgentDefinition {
3232
3228
  systemPromptOverride?: string;
3233
3229
  maxTurns?: number;
3234
3230
  model?: string;
3235
- permissionMode?: "plan";
3231
+ permissionMode?: PermissionMode;
3236
3232
  background?: boolean;
3237
3233
  isolation?: "worktree";
3238
3234
  initialPrompt?: string;
@@ -3270,6 +3266,7 @@ type SubagentProgressEvent = {
3270
3266
  };
3271
3267
  type AgentEventSink = (event: SubagentProgressEvent) => void;
3272
3268
  interface SubagentRunOptions {
3269
+ agentName?: string;
3273
3270
  abortSignal?: AbortSignal;
3274
3271
  background?: boolean;
3275
3272
  onPermissionRequest?: AgentConfig["onPermissionRequest"];
@@ -3280,9 +3277,7 @@ interface SubagentRunOptions {
3280
3277
  * In-process teammate turns pass false: a teammate loop is one run per task
3281
3278
  * turn, so the turn-end stopAll() would immediately kill anything the
3282
3279
  * teammate backgrounded, and the drain disappears before any notification
3283
- * could be delivered. Teammates stay purely foreground (matching the
3284
- * subprocess teammate path); neither path exposes the Agent tool, so a
3285
- * teammate never has subagents of its own.
3280
+ * could be delivered. Teammates stay purely foreground and do not expose the Agent tool.
3286
3281
  */
3287
3282
  backgroundTasks?: boolean;
3288
3283
  }
@@ -3300,53 +3295,6 @@ declare namespace spawn {
3300
3295
  export { type spawn_AgentEventSink as AgentEventSink, spawn_SUBAGENT_INTERRUPTED_MARKER as SUBAGENT_INTERRUPTED_MARKER, type spawn_SubagentProgressEvent as SubagentProgressEvent, type spawn_SubagentRunOptions as SubagentRunOptions, spawn_spawnSubagent as spawnSubagent };
3301
3296
  }
3302
3297
 
3303
- /**
3304
- * Auto-detect the best backend for running teammates.
3305
- *
3306
- * Auto-detection logic:
3307
- * - Windows: always **in-process**.
3308
- * - Otherwise: tmux/iTerm panes when the corresponding environment is
3309
- * detected (TMUX / ITERM_SESSION_ID), else **in-process** so progress
3310
- * tracking works (agent events flow in the same process and can update
3311
- * the teammate progress UI in real time).
3312
- *
3313
- * In-process teammates share the Node.js event loop but are context-isolated.
3314
- * They communicate via the same file-based mailbox as external teammates.
3315
- */
3316
- declare function detectBackend(): TeamMode;
3317
- /**
3318
- * Detect available pane backend from the environment (TMUX /
3319
- * ITERM_SESSION_ID); falls back to in-process. Called unconditionally by
3320
- * detectBackend on non-Windows platforms.
3321
- */
3322
- declare function detectBackendFromEnv(): TeamMode;
3323
- /** Rebuilds the stable cancellation handle available for a restored tmux member. */
3324
- declare function restoreTeammateCancel(mode: TeamMode, paneId?: string): (() => void) | undefined;
3325
- interface SpawnConfig {
3326
- mode: Exclude<TeamMode, "in-process">;
3327
- command: string;
3328
- args: string[];
3329
- cwd: string;
3330
- paneId?: string;
3331
- }
3332
- declare function isProcessAlive(pid: number): boolean;
3333
- declare function isTeammateAlive(mode: TeamMode, paneId?: string, workerPid?: number): boolean;
3334
- declare function spawnTeammate(config: SpawnConfig): {
3335
- cancel: () => void;
3336
- paneId?: string;
3337
- };
3338
-
3339
- type backend_SpawnConfig = SpawnConfig;
3340
- declare const backend_detectBackend: typeof detectBackend;
3341
- declare const backend_detectBackendFromEnv: typeof detectBackendFromEnv;
3342
- declare const backend_isProcessAlive: typeof isProcessAlive;
3343
- declare const backend_isTeammateAlive: typeof isTeammateAlive;
3344
- declare const backend_restoreTeammateCancel: typeof restoreTeammateCancel;
3345
- declare const backend_spawnTeammate: typeof spawnTeammate;
3346
- declare namespace backend {
3347
- export { type backend_SpawnConfig as SpawnConfig, backend_detectBackend as detectBackend, backend_detectBackendFromEnv as detectBackendFromEnv, backend_isProcessAlive as isProcessAlive, backend_isTeammateAlive as isTeammateAlive, backend_restoreTeammateCancel as restoreTeammateCancel, backend_spawnTeammate as spawnTeammate };
3348
- }
3349
-
3350
3298
  declare function isCoordinatorTool(name: string): boolean;
3351
3299
  /**
3352
3300
  * Returns the tool-filter predicate for the Leader Agent.
@@ -3406,11 +3354,6 @@ declare const TEAMMATE_COORDINATION_TOOLS: ReadonlySet<string>;
3406
3354
  declare function isValidTeammateName(name: string): boolean;
3407
3355
  /** Text control form used by the leader's stop path and the agents dialog. */
3408
3356
  declare const SHUTDOWN_PREFIX = "[shutdown]";
3409
- /**
3410
- * Generates a request identifier. Uses a random string rather than an auto-incrementing
3411
- * sequence because requests may originate from teammates in different processes,
3412
- * where an incrementing counter would collide across process boundaries.
3413
- */
3414
3357
  declare function newRequestId(): string;
3415
3358
  /**
3416
3359
  * Shutdown request. The text carries the reason so the recipient can decide
@@ -3422,21 +3365,14 @@ declare function shutdownRequest(from: string, reason?: string): FileMailMessage
3422
3365
  declare function shutdownResponse(from: string, requestId: string, approve: boolean, reason?: string): FileMailMessage;
3423
3366
  /** Plan approval request; text contains the full plan content. */
3424
3367
  declare function planApprovalRequest(from: string, plan: string): FileMailMessage;
3425
- /** Approval result; on rejection, feedback explains what needs to change. */
3426
- declare function planApprovalResponse(from: string, requestId: string, approve: boolean, feedback?: string): FileMailMessage;
3368
+ /** Records the runtime's automatic plan approval. */
3369
+ declare function planApprovalResponse(from: string, requestId: string, feedback?: string): FileMailMessage;
3427
3370
  /**
3428
3371
  * Determines whether a message is a shutdown request.
3429
3372
  *
3430
3373
  * Both the typed protocol and the leader's plain-text stop control are accepted.
3431
3374
  */
3432
3375
  declare function isShutdownRequest(m: FileMailMessage): boolean;
3433
- /**
3434
- * Whether the response constitutes approval. When the field is absent, it is
3435
- * treated as not approved — silence is never interpreted as consent; the
3436
- * requester follows the rejection path instead (for plan approval, the
3437
- * teammate revises and resubmits).
3438
- */
3439
- declare function approved(m: FileMailMessage): boolean;
3440
3376
 
3441
3377
  declare const protocol_LEADER_NAME: typeof LEADER_NAME;
3442
3378
  declare const protocol_MSG_PLAN_APPROVAL_REQUEST: typeof MSG_PLAN_APPROVAL_REQUEST;
@@ -3446,7 +3382,6 @@ declare const protocol_MSG_SHUTDOWN_RESPONSE: typeof MSG_SHUTDOWN_RESPONSE;
3446
3382
  declare const protocol_MSG_TEXT: typeof MSG_TEXT;
3447
3383
  declare const protocol_SHUTDOWN_PREFIX: typeof SHUTDOWN_PREFIX;
3448
3384
  declare const protocol_TEAMMATE_COORDINATION_TOOLS: typeof TEAMMATE_COORDINATION_TOOLS;
3449
- declare const protocol_approved: typeof approved;
3450
3385
  declare const protocol_isShutdownRequest: typeof isShutdownRequest;
3451
3386
  declare const protocol_isValidTeammateName: typeof isValidTeammateName;
3452
3387
  declare const protocol_newRequestId: typeof newRequestId;
@@ -3455,7 +3390,7 @@ declare const protocol_planApprovalResponse: typeof planApprovalResponse;
3455
3390
  declare const protocol_shutdownRequest: typeof shutdownRequest;
3456
3391
  declare const protocol_shutdownResponse: typeof shutdownResponse;
3457
3392
  declare namespace protocol {
3458
- export { protocol_LEADER_NAME as LEADER_NAME, protocol_MSG_PLAN_APPROVAL_REQUEST as MSG_PLAN_APPROVAL_REQUEST, protocol_MSG_PLAN_APPROVAL_RESPONSE as MSG_PLAN_APPROVAL_RESPONSE, protocol_MSG_SHUTDOWN_REQUEST as MSG_SHUTDOWN_REQUEST, protocol_MSG_SHUTDOWN_RESPONSE as MSG_SHUTDOWN_RESPONSE, protocol_MSG_TEXT as MSG_TEXT, protocol_SHUTDOWN_PREFIX as SHUTDOWN_PREFIX, protocol_TEAMMATE_COORDINATION_TOOLS as TEAMMATE_COORDINATION_TOOLS, protocol_approved as approved, protocol_isShutdownRequest as isShutdownRequest, protocol_isValidTeammateName as isValidTeammateName, protocol_newRequestId as newRequestId, protocol_planApprovalRequest as planApprovalRequest, protocol_planApprovalResponse as planApprovalResponse, protocol_shutdownRequest as shutdownRequest, protocol_shutdownResponse as shutdownResponse };
3393
+ export { protocol_LEADER_NAME as LEADER_NAME, protocol_MSG_PLAN_APPROVAL_REQUEST as MSG_PLAN_APPROVAL_REQUEST, protocol_MSG_PLAN_APPROVAL_RESPONSE as MSG_PLAN_APPROVAL_RESPONSE, protocol_MSG_SHUTDOWN_REQUEST as MSG_SHUTDOWN_REQUEST, protocol_MSG_SHUTDOWN_RESPONSE as MSG_SHUTDOWN_RESPONSE, protocol_MSG_TEXT as MSG_TEXT, protocol_SHUTDOWN_PREFIX as SHUTDOWN_PREFIX, protocol_TEAMMATE_COORDINATION_TOOLS as TEAMMATE_COORDINATION_TOOLS, protocol_isShutdownRequest as isShutdownRequest, protocol_isValidTeammateName as isValidTeammateName, protocol_newRequestId as newRequestId, protocol_planApprovalRequest as planApprovalRequest, protocol_planApprovalResponse as planApprovalResponse, protocol_shutdownRequest as shutdownRequest, protocol_shutdownResponse as shutdownResponse };
3459
3394
  }
3460
3395
 
3461
3396
  /**
@@ -3517,7 +3452,8 @@ declare class TeamTaskListTool extends TaskListTool {
3517
3452
  declare class TeamTaskUpdateTool extends TaskUpdateTool {
3518
3453
  constructor(manager: TeamManager, teamName?: string, agentName?: string, fallback?: TaskBoard);
3519
3454
  }
3520
- declare function registerLeaderTaskTools(registry: ToolRegistry, manager: TeamManager, fallback: TaskBoard): void;
3455
+ declare function registerLeaderTaskTools(registry: ToolRegistry, manager: TeamManager, fallback: TaskList, mode: "tasks" | "todos"): void;
3456
+ declare function subscribeLeaderTasks(manager: TeamManager, fallback: TaskList, listener: (tasks: Task[], boardId: string) => void): () => void;
3521
3457
 
3522
3458
  type taskTools_TeamTaskCreateTool = TeamTaskCreateTool;
3523
3459
  declare const taskTools_TeamTaskCreateTool: typeof TeamTaskCreateTool;
@@ -3528,8 +3464,9 @@ declare const taskTools_TeamTaskListTool: typeof TeamTaskListTool;
3528
3464
  type taskTools_TeamTaskUpdateTool = TeamTaskUpdateTool;
3529
3465
  declare const taskTools_TeamTaskUpdateTool: typeof TeamTaskUpdateTool;
3530
3466
  declare const taskTools_registerLeaderTaskTools: typeof registerLeaderTaskTools;
3467
+ declare const taskTools_subscribeLeaderTasks: typeof subscribeLeaderTasks;
3531
3468
  declare namespace taskTools {
3532
- export { taskTools_TeamTaskCreateTool as TeamTaskCreateTool, taskTools_TeamTaskGetTool as TeamTaskGetTool, taskTools_TeamTaskListTool as TeamTaskListTool, taskTools_TeamTaskUpdateTool as TeamTaskUpdateTool, taskTools_registerLeaderTaskTools as registerLeaderTaskTools };
3469
+ export { taskTools_TeamTaskCreateTool as TeamTaskCreateTool, taskTools_TeamTaskGetTool as TeamTaskGetTool, taskTools_TeamTaskListTool as TeamTaskListTool, taskTools_TeamTaskUpdateTool as TeamTaskUpdateTool, taskTools_registerLeaderTaskTools as registerLeaderTaskTools, taskTools_subscribeLeaderTasks as subscribeLeaderTasks };
3533
3470
  }
3534
3471
 
3535
3472
  declare class TeamCreateTool implements Tool {
@@ -3583,7 +3520,6 @@ declare namespace tools$1 {
3583
3520
  export { tools$1_ListTeamsTool as ListTeamsTool, tools$1_SendMessageTool as SendMessageTool, tools$1_TeamCreateTool as TeamCreateTool, tools$1_TeamDeleteTool as TeamDeleteTool };
3584
3521
  }
3585
3522
 
3586
- type TeamMode = "in-process" | "tmux" | "iterm";
3587
3523
  type AgentEventCallback = (event: SubagentProgressEvent) => void;
3588
3524
  interface Member {
3589
3525
  name: string;
@@ -3595,17 +3531,8 @@ interface Member {
3595
3531
  stopping?: Promise<void>;
3596
3532
  mailbox: FileMailbox;
3597
3533
  uiState?: TeammateUIState;
3598
- /** Stable tmux session name, persisted so cancellation survives leader restart. */
3599
- paneId?: string;
3600
- workerPid?: number;
3601
- /** Actual backend used by this member (which can differ after fallback). */
3602
- backendType?: TeamMode;
3603
- /** Whether this is an external-process teammate (tmux/iTerm); stopOne writes the mailbox shutdown notice only for external members. */
3604
- external?: boolean;
3605
- /** Optional: permission checker for the teammate. Plan mode uses it to determine the current state; permissions are elevated in place once approval is granted. */
3606
3534
  checker?: PermissionChecker;
3607
3535
  planApprovalRequired?: boolean;
3608
- readOnlyRole?: boolean;
3609
3536
  agentId?: string;
3610
3537
  agentType?: string;
3611
3538
  model?: string;
@@ -3615,23 +3542,15 @@ interface Member {
3615
3542
  type RunAgent = (task: string, onEvent?: AgentEventCallback, abortSignal?: AbortSignal) => Promise<string>;
3616
3543
  declare class Team {
3617
3544
  name: string;
3618
- mode: TeamMode;
3619
3545
  members: Map<string, Member>;
3620
3546
  leaderMailbox: FileMailbox;
3621
3547
  private mailboxDir;
3622
3548
  private cwd;
3623
- private lastLivenessCheck;
3624
3549
  leaderAgentId: string;
3625
3550
  permissionMode: PermissionChecker["mode"];
3626
3551
  description?: string;
3627
3552
  createdAt: number;
3628
- /**
3629
- * PID of the leader process. Written to config.json so external teammates
3630
- * can detect a dead leader (they exit instead of polling forever); a
3631
- * restarted leader re-claims it when the team is restored from disk.
3632
- */
3633
- leaderPid: number;
3634
- constructor(name: string, mode: TeamMode, cwd: string);
3553
+ constructor(name: string, cwd: string);
3635
3554
  private createMember;
3636
3555
  addMember(name: string): Member;
3637
3556
  removeMember(name: string): void;
@@ -3654,38 +3573,13 @@ declare class Team {
3654
3573
  */
3655
3574
  persist(): void;
3656
3575
  static readonly IDLE_POLL_INTERVAL_MS = 500;
3657
- static readonly STOP_GRACE_MS = 2500;
3658
3576
  static readonly SHUTDOWN_PREFIX = "[shutdown]";
3659
- /**
3660
- * Spawns a teammate, dispatching by team backend mode.
3661
- * - in-process: runs the agent main loop in a background task within this process (idle-poll-continue).
3662
- * - tmux / iterm: assembles the teammate startup command and delegates to the backend to launch
3663
- * an independent worker process in a new pane / tab, communicating bidirectionally with the
3664
- * leader via the shared file-based mailbox.
3665
- * Falls back to in-process when the external backend is unavailable (tmux not installed,
3666
- * non-iTerm environment, etc.) to avoid crashes.
3667
- */
3668
- spawnTeammate(name: string, task: string, runAgent: RunAgent, checker?: PermissionChecker, providerIndex?: number, originToolCallId?: string, memberCwd?: string, role?: {
3577
+ spawnTeammate(name: string, task: string, runAgent: RunAgent, checker?: PermissionChecker, originToolCallId?: string, memberCwd?: string, role?: {
3669
3578
  agentType?: string;
3670
3579
  model?: string;
3671
3580
  planApprovalRequired?: boolean;
3672
- readOnly?: boolean;
3673
3581
  cleanup?: () => Promise<void>;
3674
- }): TeamMode;
3675
- /**
3676
- * tmux / iTerm backend: launches the teammate as an independent process in a new pane / tab.
3677
- * The teammate process connects back to the team via the same mailbox directory pointed to
3678
- * by `--team-dir`; task assignments from the leader and idle/result notifications from the
3679
- * worker all land in this directory, keeping both sides in sync.
3680
- */
3681
- private spawnExternal;
3682
- /**
3683
- * Starts an in-process teammate: runs the agent's main loop in the background,
3684
- * sends an idle notification upon completion, and then polls the mailbox for new tasks.
3685
- * Exits the loop upon receiving a shutdown message or being canceled.
3686
- * Uses the idle-poll-continue pattern: after each turn completes, reports idle and waits for the next task.
3687
- */
3688
- private spawnInProcess;
3582
+ }): void;
3689
3583
  /**
3690
3584
  * Polls the teammate's mailbox until a new message arrives.
3691
3585
  * Returns the concatenated prompt, or the shutdown message itself in the
@@ -3693,18 +3587,8 @@ declare class Team {
3693
3587
  * shutdown message from the leader is returned instead.
3694
3588
  */
3695
3589
  private waitForNextPromptOrShutdown;
3696
- /** Reads the teammate's plan file for review; returns a fallback note when empty or unreadable. */
3697
- private readPlanForReview;
3698
- /**
3699
- * Sends the teammate's completed plan to the Leader, blocks until approval is received,
3700
- * and returns the prompt to feed the model on the next turn.
3701
- *
3702
- * The teammate holds read-only permissions at this point, so no matter how long the
3703
- * wait, no damage can occur — hence no timeout is set here. Rather than timing out and
3704
- * autonomously modifying files, it is better to wait indefinitely and let the user
3705
- * drive progress from the Leader side. Returns null when the teammate has been
3706
- * deactivated; the caller should exit the main loop.
3707
- */
3590
+ /** Reads the submitted plan, falling back to the final response. */
3591
+ private readPlan;
3708
3592
  private runPlanApproval;
3709
3593
  getMember(name: string): Member | undefined;
3710
3594
  private waitForMember;
@@ -3712,60 +3596,33 @@ declare class Team {
3712
3596
  sendMessage(from: string, to: string, content: string): Promise<void>;
3713
3597
  stopMember(name: string): Promise<void>;
3714
3598
  stopAll(): Promise<void>;
3715
- /**
3716
- * Stops a single teammate: marks it inactive, updates UI state, and
3717
- * unregisters the name so SendMessage can no longer resolve it.
3718
- * External teammates get a grace window after the shutdown notice — they
3719
- * poll their mailbox every ~2 s, so waiting one poll interval lets the
3720
- * common (idle) case exit gracefully before the pane is force-killed.
3721
- * In-process teammates are stopped via cancel (abort) alone; `done` is then
3722
- * awaited so the loop has fully exited (external members have no promise).
3723
- */
3724
3599
  private stopOne;
3725
3600
  private stopMemberRuntime;
3726
3601
  listMembers(): Member[];
3727
3602
  getTeammateStates(): TeammateUIState[];
3728
- refreshExternalMembers(): void;
3729
3603
  pruneTerminatedMembers(): void;
3730
3604
  }
3731
- interface TeamManagerOptions {
3732
- /**
3733
- * Whether this manager acts as the team leader: leaders claim leaderPid on
3734
- * create/restore (persisted for teammate liveness checks), while teammate
3735
- * processes must leave it untouched. Defaults to true.
3736
- */
3737
- claimLeadership?: boolean;
3738
- }
3739
3605
  declare class TeamManager {
3740
3606
  /** Teams keyed by their canonical disk slug; Team.name remains the display name. */
3741
3607
  private teams;
3742
3608
  private cwd;
3743
- private claimLeadership;
3744
3609
  private permissionChecker?;
3745
3610
  private unsubscribePermissions?;
3746
3611
  private taskStores;
3747
- constructor(cwd: string, opts?: TeamManagerOptions);
3612
+ private listeners;
3613
+ constructor(cwd: string);
3614
+ subscribe(listener: () => void): () => void;
3615
+ private emitChange;
3748
3616
  setPermissionChecker(checker: PermissionChecker): void;
3749
3617
  private teamKey;
3750
3618
  private teamDir;
3751
- create(name: string, mode?: TeamMode, opts?: {
3619
+ create(name: string, opts?: {
3752
3620
  leaderAgentId?: string;
3753
3621
  description?: string;
3754
3622
  }): Team;
3755
- /**
3756
- * Checks the in-memory cache first; on miss, hydrates config.json without
3757
- * incremental member writes. Active members regain their runtime-facing UI,
3758
- * registry, and external cancellation metadata. A leader claims leadership
3759
- * with one final snapshot; teammate processes leave the file byte-identical.
3760
- */
3761
3623
  get(name: string): Team | undefined;
3762
- /**
3763
- * Loads every team found on disk into the manager. Called on leader startup
3764
- * so teams (and their leader mailboxes) survive a leader restart: external
3765
- * teammates keep running, and their notifications are drained again.
3766
- */
3767
3624
  restoreFromDisk(): void;
3768
- /** Retrieves the team's shared task store; loads from disk (tasks.json) when not cached in memory (e.g. in a teammate process). */
3625
+ /** Retrieves the team's shared task store, loading tasks.json after restoration. */
3769
3626
  getTaskStore(teamName: string): SharedTaskStore;
3770
3627
  list(): Team[];
3771
3628
  stopAll(): Promise<void>;
@@ -3794,10 +3651,8 @@ type index$m_Team = Team;
3794
3651
  declare const index$m_Team: typeof Team;
3795
3652
  type index$m_TeamManager = TeamManager;
3796
3653
  declare const index$m_TeamManager: typeof TeamManager;
3797
- type index$m_TeamManagerOptions = TeamManagerOptions;
3798
- type index$m_TeamMode = TeamMode;
3799
3654
  declare namespace index$m {
3800
- export { type index$m_AgentEventCallback as AgentEventCallback, backend as Backend, coordinator$1 as Coordinator, fileLock as FileLock, fileMailbox as FileMailbox, type index$m_Member as Member, progress as Progress, protocol as Protocol, registry as Registry, type index$m_RunAgent as RunAgent, sharedTask as SharedTask, taskStop as TaskStop, taskTools as TaskTools, index$m_Team as Team, teamFile as TeamFile, index$m_TeamManager as TeamManager, type index$m_TeamManagerOptions as TeamManagerOptions, type index$m_TeamMode as TeamMode, tools$1 as Tools };
3655
+ export { type index$m_AgentEventCallback as AgentEventCallback, coordinator$1 as Coordinator, fileLock as FileLock, fileMailbox as FileMailbox, type index$m_Member as Member, progress$1 as Progress, protocol as Protocol, registry as Registry, type index$m_RunAgent as RunAgent, sharedTask as SharedTask, taskStop as TaskStop, taskTools as TaskTools, index$m_Team as Team, teamFile as TeamFile, index$m_TeamManager as TeamManager, tools$1 as Tools };
3801
3656
  }
3802
3657
 
3803
3658
  declare function countMcpTools(registry: ToolRegistry): number;
@@ -3808,6 +3663,7 @@ declare function countMcpTools(registry: ToolRegistry): number;
3808
3663
  */
3809
3664
  declare function removeMcpTools(registry: ToolRegistry, serverNames?: ReadonlySet<string>): void;
3810
3665
  declare function createToolRegistry(cwd: string, taskList: TaskList, options?: {
3666
+ interactionMode?: "interactive" | "non-interactive";
3811
3667
  lspServers?: readonly LspServerConfig[];
3812
3668
  teamManager?: TeamManager;
3813
3669
  }): ToolRegistry;
@@ -4772,7 +4628,7 @@ interface InitLoggerOptions {
4772
4628
  skipCleanup?: boolean;
4773
4629
  /**
4774
4630
  * Mirror JSONL to stdout in addition to the log file. Only safe in remote
4775
- * mode (UI owns stdout; teammates use it for IPC). Lets users watch logs
4631
+ * mode (UI owns stdout). Lets users watch logs
4776
4632
  * live or pipe them through pino-pretty.
4777
4633
  */
4778
4634
  stdout?: boolean;
@@ -5559,6 +5415,7 @@ interface RemoteAgentHandle {
5559
5415
  clearConversation(): void;
5560
5416
  }
5561
5417
  interface CreateRemoteAgentOptions {
5418
+ interactionMode?: "interactive" | "non-interactive";
5562
5419
  sandboxConfig?: SandboxYamlConfig;
5563
5420
  provider: ProviderConfig;
5564
5421
  cwd: string;
@@ -5829,6 +5686,7 @@ declare namespace index$7 {
5829
5686
  }
5830
5687
 
5831
5688
  interface TeammateRunOptions {
5689
+ agentName: string;
5832
5690
  definition: AgentDefinition;
5833
5691
  modelOverride?: string;
5834
5692
  onPermissionRequest?: ToolContext["onPermissionRequest"];
@@ -5859,7 +5717,6 @@ declare class AgentTool implements Tool {
5859
5717
  * and returns the callback that runs the teammate agent's main loop.
5860
5718
  */
5861
5719
  private teamRunAgentFactory?;
5862
- private teamProviderIndex?;
5863
5720
  private spawnHandler;
5864
5721
  private forkHandler?;
5865
5722
  constructor(cwd: string, registry: ToolRegistry, spawnHandler: (def: AgentDefinition, prompt: string, bg: boolean, modelOverride?: string, cwdOverride?: string, context?: ToolContext) => Promise<string>, conversation?: ConversationManager, forkHandler?: (prompt: string, conversation: ConversationManager, registry: ToolRegistry, modelOverride?: string, context?: ToolContext) => Promise<string>, taskManager?: TaskManager);
@@ -5867,7 +5724,7 @@ declare class AgentTool implements Tool {
5867
5724
  * Sets the team manager and teammate run callback, enabling the team_name parameter
5868
5725
  * so teammates can be spawned directly through the Agent tool.
5869
5726
  */
5870
- setTeamManager(mgr: TeamManager, runAgentFactory: (registry: ToolRegistry, checker?: PermissionChecker, cwd?: string, options?: TeammateRunOptions) => RunAgent, providerIndex?: number): void;
5727
+ setTeamManager(mgr: TeamManager, runAgentFactory: (registry: ToolRegistry, checker?: PermissionChecker, cwd?: string, options?: TeammateRunOptions) => RunAgent): void;
5871
5728
  forFork(registry: ToolRegistry): AgentTool;
5872
5729
  schema(): ToolSchema;
5873
5730
  private buildDescription;
@@ -5875,8 +5732,7 @@ declare class AgentTool implements Tool {
5875
5732
  private startBackground;
5876
5733
  /**
5877
5734
  * Team-member mode: Spawns a persistent teammate in the specified team.
5878
- * Delegates to Team.spawnTeammate(), which dispatches by team backend mode
5879
- * (in-process idle-poll loop, or an external pane/tab process).
5735
+ * Runs persistently within this process.
5880
5736
  */
5881
5737
  private runAsTeammate;
5882
5738
  /**
@@ -6039,6 +5895,7 @@ declare class BashTool implements Tool {
6039
5895
  backgroundForegroundTasks(): number;
6040
5896
  schema(): ToolSchema;
6041
5897
  execute(ctx: ToolContext, args: Record<string, unknown>): Promise<ToolResult>;
5898
+ private executeCommand;
6042
5899
  /**
6043
5900
  * Spawn the command with stdout+stderr writing directly into the output
6044
5901
  * file (file-descriptor mode): output never flows through JS, so
@@ -6211,6 +6068,7 @@ declare class EditFileTool implements Tool {
6211
6068
  category: ToolCategory;
6212
6069
  schema(): ToolSchema;
6213
6070
  execute(ctx: ToolContext, args: Record<string, unknown>): Promise<ToolResult>;
6071
+ private executeMutation;
6214
6072
  }
6215
6073
 
6216
6074
  type editFile_EditFileTool = EditFileTool;
@@ -6274,6 +6132,21 @@ declare namespace exitPlanMode {
6274
6132
  export { exitPlanMode_ExitPlanModeTool as ExitPlanModeTool };
6275
6133
  }
6276
6134
 
6135
+ declare function acquireWorkspaceMutation(cwd: string, signal?: AbortSignal): Promise<() => void>;
6136
+ declare function acquireCommandExecution(cwd: string, command: string, signal?: AbortSignal): Promise<() => void>;
6137
+ declare function checkExecutionPermission(ctx: ToolContext, toolName: string, args: Record<string, unknown>): ToolResult | undefined;
6138
+ declare function withCommandExecution(ctx: ToolContext, toolName: string, args: Record<string, unknown>, command: string, run: (started: (done: Promise<void>) => void) => Promise<ToolResult>): Promise<ToolResult>;
6139
+ declare function withWorkspaceMutation(ctx: ToolContext, toolName: string, args: Record<string, unknown>, run: () => Promise<ToolResult>): Promise<ToolResult>;
6140
+
6141
+ declare const executionCoordinator_acquireCommandExecution: typeof acquireCommandExecution;
6142
+ declare const executionCoordinator_acquireWorkspaceMutation: typeof acquireWorkspaceMutation;
6143
+ declare const executionCoordinator_checkExecutionPermission: typeof checkExecutionPermission;
6144
+ declare const executionCoordinator_withCommandExecution: typeof withCommandExecution;
6145
+ declare const executionCoordinator_withWorkspaceMutation: typeof withWorkspaceMutation;
6146
+ declare namespace executionCoordinator {
6147
+ export { executionCoordinator_acquireCommandExecution as acquireCommandExecution, executionCoordinator_acquireWorkspaceMutation as acquireWorkspaceMutation, executionCoordinator_checkExecutionPermission as checkExecutionPermission, executionCoordinator_withCommandExecution as withCommandExecution, executionCoordinator_withWorkspaceMutation as withWorkspaceMutation };
6148
+ }
6149
+
6277
6150
  declare class ExitWorktreeTool implements Tool {
6278
6151
  name: string;
6279
6152
  description: string;
@@ -6475,6 +6348,7 @@ declare class PowerShellTool implements Tool {
6475
6348
  backgroundForegroundTasks(): number;
6476
6349
  schema(): ToolSchema;
6477
6350
  execute(ctx: ToolContext, args: Record<string, unknown>): Promise<ToolResult>;
6351
+ private executeCommand;
6478
6352
  /**
6479
6353
  * Spawn PowerShell with stdout+stderr writing directly into the output file
6480
6354
  * (fd mode, shared with BashTool): output never flows through JS, so
@@ -6523,12 +6397,8 @@ declare namespace searchOutput {
6523
6397
 
6524
6398
  /** Notification body budget: larger outputs stay on disk and only a preview travels in the notification. */
6525
6399
  declare const BACKGROUND_NOTIFICATION_BYTES = 30000;
6526
- /**
6527
- * A backgrounded command may fill up to 5GB before the size watchdog kills it:
6528
- * with no JS in the write path, a stuck append loop could otherwise grow the
6529
- * output file without bound. Foreground keeps the historical 10MB cap.
6530
- */
6531
- declare const BACKGROUND_MAX_OUTPUT_BYTES: number;
6400
+ /** Disk cap for foreground and background commands, independent of display limits. */
6401
+ declare const MAX_SHELL_OUTPUT_FILE_BYTES: number;
6532
6402
  declare const SIZE_WATCHDOG_INTERVAL_MS = 500;
6533
6403
  type BackgroundReason = "explicit" | "user" | "timeout";
6534
6404
  /** Terminal facts about the child process, consumed to build results and notifications. */
@@ -6541,6 +6411,7 @@ interface ShellExit {
6541
6411
  spawnError?: string;
6542
6412
  }
6543
6413
  interface CommandHandle {
6414
+ done: Promise<void>;
6544
6415
  /** Resolves the tool call: either the inline completion or an early "moved to background" message. */
6545
6416
  result: Promise<ToolResult>;
6546
6417
  /**
@@ -6565,7 +6436,7 @@ declare function openOutputFd(path: string): number;
6565
6436
  /**
6566
6437
  * Create the file that receives a command's stdout+stderr. Lives in the
6567
6438
  * session tool-results directory (the established spill location, readable by
6568
- * the model for backgrounded commands); falls back to the OS temp dir when
6439
+ * the model for large command outputs); falls back to the OS temp dir when
6569
6440
  * that directory cannot be created.
6570
6441
  */
6571
6442
  declare function createShellOutputFile(sessionId: string): {
@@ -6580,15 +6451,12 @@ declare function createShellOutputFile(sessionId: string): {
6580
6451
  */
6581
6452
  declare function formatFinalResult(prompt: string, command: string, exit: ShellExit, merged: string, truncated: boolean, timeout: number): ToolResult;
6582
6453
  /**
6583
- * Build the notification body for a finished background command from the
6584
- * output file. Small outputs are inlined and the file is deleted; large
6585
- * outputs keep the file on disk and the notification carries its path with a
6454
+ * Build a finished command's result from its output file. Small outputs are
6455
+ * inlined and the file is deleted; large outputs stay on disk with a
6586
6456
  * byte-bounded preview, so the full text stays readable via ReadFile without
6587
- * ever loading it into JS here. `annotate` is the sandbox's stderr annotator
6588
- * (sandbox violation notes); the foreground path applies it in
6589
- * settleExit, and background notifications must report identically.
6457
+ * loading it into JS. `annotate` adds sandbox violation notes to captured output.
6590
6458
  */
6591
- declare function buildBackgroundBody(prompt: string, command: string, exit: ShellExit, outputPath: string, timeout: number, annotate?: (text: string) => string): ToolResult;
6459
+ declare function buildShellResult(prompt: string, command: string, exit: ShellExit, outputPath: string, timeout: number, inlineLimit?: number, annotate?: (text: string) => string): ToolResult;
6592
6460
  declare const BackgroundableToolShape: z$1.ZodObject<{
6593
6461
  taskManager: z$1.ZodNullable<z$1.ZodInstanceOf<TaskManager>>;
6594
6462
  backgroundEnabled: z$1.ZodFunction<z$1.ZodTuple<readonly [], null>, z$1.ZodBoolean>;
@@ -6618,18 +6486,18 @@ declare function hasAnyForegroundTasks(registry: ToolRegistry): boolean;
6618
6486
  declare function backgroundAllForegroundTasks(registry: ToolRegistry): number;
6619
6487
 
6620
6488
  declare const shellBackground_BACKGROUNDABLE_TOOL_NAMES: typeof BACKGROUNDABLE_TOOL_NAMES;
6621
- declare const shellBackground_BACKGROUND_MAX_OUTPUT_BYTES: typeof BACKGROUND_MAX_OUTPUT_BYTES;
6622
6489
  declare const shellBackground_BACKGROUND_NOTIFICATION_BYTES: typeof BACKGROUND_NOTIFICATION_BYTES;
6623
6490
  type shellBackground_BackgroundReason = BackgroundReason;
6624
6491
  type shellBackground_BackgroundableTool = BackgroundableTool;
6625
6492
  type shellBackground_CommandHandle = CommandHandle;
6493
+ declare const shellBackground_MAX_SHELL_OUTPUT_FILE_BYTES: typeof MAX_SHELL_OUTPUT_FILE_BYTES;
6626
6494
  declare const shellBackground_SIZE_WATCHDOG_INTERVAL_MS: typeof SIZE_WATCHDOG_INTERVAL_MS;
6627
6495
  type shellBackground_ShellExit = ShellExit;
6628
6496
  declare const shellBackground_attachBackgroundTaskManager: typeof attachBackgroundTaskManager;
6629
6497
  declare const shellBackground_backgroundAllForegroundTasks: typeof backgroundAllForegroundTasks;
6630
6498
  declare const shellBackground_backgroundMessage: typeof backgroundMessage;
6631
6499
  declare const shellBackground_backgroundTaskName: typeof backgroundTaskName;
6632
- declare const shellBackground_buildBackgroundBody: typeof buildBackgroundBody;
6500
+ declare const shellBackground_buildShellResult: typeof buildShellResult;
6633
6501
  declare const shellBackground_createShellOutputFile: typeof createShellOutputFile;
6634
6502
  declare const shellBackground_discardFd: typeof discardFd;
6635
6503
  declare const shellBackground_formatFinalResult: typeof formatFinalResult;
@@ -6639,7 +6507,7 @@ declare const shellBackground_readOutputFile: typeof readOutputFile;
6639
6507
  declare const shellBackground_sliceUtf8Safe: typeof sliceUtf8Safe;
6640
6508
  declare const shellBackground_unlinkQuiet: typeof unlinkQuiet;
6641
6509
  declare namespace shellBackground {
6642
- export { shellBackground_BACKGROUNDABLE_TOOL_NAMES as BACKGROUNDABLE_TOOL_NAMES, shellBackground_BACKGROUND_MAX_OUTPUT_BYTES as BACKGROUND_MAX_OUTPUT_BYTES, shellBackground_BACKGROUND_NOTIFICATION_BYTES as BACKGROUND_NOTIFICATION_BYTES, type shellBackground_BackgroundReason as BackgroundReason, type shellBackground_BackgroundableTool as BackgroundableTool, type shellBackground_CommandHandle as CommandHandle, shellBackground_SIZE_WATCHDOG_INTERVAL_MS as SIZE_WATCHDOG_INTERVAL_MS, type shellBackground_ShellExit as ShellExit, shellBackground_attachBackgroundTaskManager as attachBackgroundTaskManager, shellBackground_backgroundAllForegroundTasks as backgroundAllForegroundTasks, shellBackground_backgroundMessage as backgroundMessage, shellBackground_backgroundTaskName as backgroundTaskName, shellBackground_buildBackgroundBody as buildBackgroundBody, shellBackground_createShellOutputFile as createShellOutputFile, shellBackground_discardFd as discardFd, shellBackground_formatFinalResult as formatFinalResult, shellBackground_hasAnyForegroundTasks as hasAnyForegroundTasks, shellBackground_openOutputFd as openOutputFd, shellBackground_readOutputFile as readOutputFile, shellBackground_sliceUtf8Safe as sliceUtf8Safe, shellBackground_unlinkQuiet as unlinkQuiet };
6510
+ export { shellBackground_BACKGROUNDABLE_TOOL_NAMES as BACKGROUNDABLE_TOOL_NAMES, shellBackground_BACKGROUND_NOTIFICATION_BYTES as BACKGROUND_NOTIFICATION_BYTES, type shellBackground_BackgroundReason as BackgroundReason, type shellBackground_BackgroundableTool as BackgroundableTool, type shellBackground_CommandHandle as CommandHandle, shellBackground_MAX_SHELL_OUTPUT_FILE_BYTES as MAX_SHELL_OUTPUT_FILE_BYTES, shellBackground_SIZE_WATCHDOG_INTERVAL_MS as SIZE_WATCHDOG_INTERVAL_MS, type shellBackground_ShellExit as ShellExit, shellBackground_attachBackgroundTaskManager as attachBackgroundTaskManager, shellBackground_backgroundAllForegroundTasks as backgroundAllForegroundTasks, shellBackground_backgroundMessage as backgroundMessage, shellBackground_backgroundTaskName as backgroundTaskName, shellBackground_buildShellResult as buildShellResult, shellBackground_createShellOutputFile as createShellOutputFile, shellBackground_discardFd as discardFd, shellBackground_formatFinalResult as formatFinalResult, shellBackground_hasAnyForegroundTasks as hasAnyForegroundTasks, shellBackground_openOutputFd as openOutputFd, shellBackground_readOutputFile as readOutputFile, shellBackground_sliceUtf8Safe as sliceUtf8Safe, shellBackground_unlinkQuiet as unlinkQuiet };
6643
6511
  }
6644
6512
 
6645
6513
  declare const MAX_SHELL_OUTPUT_BYTES: number;
@@ -6767,6 +6635,7 @@ declare class WriteFileTool implements Tool {
6767
6635
  category: ToolCategory;
6768
6636
  schema(): ToolSchema;
6769
6637
  execute(ctx: ToolContext, args: Record<string, unknown>): Promise<ToolResult>;
6638
+ private executeMutation;
6770
6639
  }
6771
6640
 
6772
6641
  type writeFile_WriteFileTool = WriteFileTool;
@@ -6776,7 +6645,7 @@ declare namespace writeFile {
6776
6645
  }
6777
6646
 
6778
6647
  declare namespace index$4 {
6779
- export { askUser as AskUser, bash as Bash, bingSearch as BingSearch, computerUse as ComputerUse, descriptions as Descriptions, diff as Diff, editFile as EditFile, editFileDiagnostics as EditFileDiagnostics, enterWorktree as EnterWorktree, exitCodeHints as ExitCodeHints, exitPlanMode as ExitPlanMode, exitWorktree as ExitWorktree, fileMutationQueue as FileMutationQueue, fileStateCache as FileStateCache, glob as Glob, goal as Goal, grep as Grep, isDiffTool$1 as IsDiffTool, lsp as LSP, mcpCall as McpCall, powershell as PowerShell, readFile as ReadFile, registry$1 as Registry, searchOutput as SearchOutput, shellBackground as ShellBackground, shellOutput as ShellOutput, snippets as Snippets, syntheticOutput as SyntheticOutput, taskOutput as TaskOutput, toolSearch as ToolSearch, types$1 as Types, webFetch as WebFetch, webSearch as WebSearch, writeFile as WriteFile };
6648
+ export { askUser as AskUser, bash as Bash, bingSearch as BingSearch, computerUse as ComputerUse, descriptions as Descriptions, diff as Diff, editFile as EditFile, editFileDiagnostics as EditFileDiagnostics, enterWorktree as EnterWorktree, executionCoordinator as ExecutionCoordinator, exitCodeHints as ExitCodeHints, exitPlanMode as ExitPlanMode, exitWorktree as ExitWorktree, fileMutationQueue as FileMutationQueue, fileStateCache as FileStateCache, glob as Glob, goal as Goal, grep as Grep, isDiffTool$1 as IsDiffTool, lsp as LSP, mcpCall as McpCall, powershell as PowerShell, readFile as ReadFile, registry$1 as Registry, searchOutput as SearchOutput, shellBackground as ShellBackground, shellOutput as ShellOutput, snippets as Snippets, syntheticOutput as SyntheticOutput, taskOutput as TaskOutput, toolSearch as ToolSearch, types$1 as Types, webFetch as WebFetch, webSearch as WebSearch, writeFile as WriteFile };
6780
6649
  }
6781
6650
 
6782
6651
  type PackageManager = "npm" | "yarn" | "pnpm";
@@ -6801,7 +6670,10 @@ declare namespace install {
6801
6670
 
6802
6671
  declare const PACKAGE_NAME = "@yukino.js/yukino";
6803
6672
  declare function isNewerVersion(candidate: string, current: string): boolean;
6804
- declare function getLatestVersion(signal?: AbortSignal): Promise<string>;
6673
+ declare function getLatestVersion({ tag, signal, }?: {
6674
+ tag?: string;
6675
+ signal?: AbortSignal;
6676
+ }): Promise<string>;
6805
6677
  declare function checkForUpdate(signal?: AbortSignal): Promise<string | undefined>;
6806
6678
 
6807
6679
  declare const versionCheck_PACKAGE_NAME: typeof PACKAGE_NAME;
@@ -7051,58 +6923,6 @@ declare namespace recover$1 {
7051
6923
  export { recover$1_isTerminalGone as isTerminalGone, recover$1_record as record, recover$1_recordError as recordError, recover$1_recordExit as recordExit, recover$1_recover as recover };
7052
6924
  }
7053
6925
 
7054
- interface TeammateArgs {
7055
- teamDir: string;
7056
- teamCwd?: string;
7057
- teamName: string;
7058
- memberName: string;
7059
- initialTask: string;
7060
- permissionMode: PermissionMode;
7061
- agentType?: string;
7062
- model?: string;
7063
- /** Index into the config's providers array; defaults to `default_provider`. */
7064
- providerIndex?: number;
7065
- }
7066
- declare function parseTeammateFlags(args: string[]): TeammateArgs | null;
7067
- /**
7068
- * Assemble the teammate tool registry: file/command tools, tool search,
7069
- * worktree switching, Skills, and MCP extensions, plus team collaboration
7070
- * tools (SendMessage under the member's own name, and the shared task board).
7071
- * The task board resolves to a single tasks.json by team name, so all
7072
- * teammates operate on the same board.
7073
- *
7074
- * Agent is intentionally excluded — the call tree terminates at the teammate
7075
- * level. TeamCreate and TeamDelete are also excluded; team lifecycle
7076
- * management is the Leader's responsibility.
7077
- */
7078
- declare function buildTeammateRegistry(opts: {
7079
- sandboxConfig?: SandboxYamlConfig;
7080
- cwd: string;
7081
- teamCwd?: string;
7082
- definition?: AgentDefinition;
7083
- teamName: string;
7084
- memberName: string;
7085
- catalog: SkillCatalog;
7086
- skillHost: SkillHost;
7087
- mcpServers?: MCPServerConfig[];
7088
- lspServers?: LspServerConfig[];
7089
- /** The running teammate retains this manager and disconnects it on exit. */
7090
- mcpManager?: MCPManager;
7091
- /** Used to decide the MCP loading mode: total schema volume is weighed against the context window. */
7092
- baseUrl?: string;
7093
- /** Provider protocol; native deferred loading is Anthropic-only. */
7094
- protocol?: ProviderConfig["protocol"];
7095
- contextWindow?: number;
7096
- }): Promise<ToolRegistry>;
7097
- declare function runTeammate(args: TeammateArgs): Promise<void>;
7098
-
7099
- declare const teammate_buildTeammateRegistry: typeof buildTeammateRegistry;
7100
- declare const teammate_parseTeammateFlags: typeof parseTeammateFlags;
7101
- declare const teammate_runTeammate: typeof runTeammate;
7102
- declare namespace teammate {
7103
- export { teammate_buildTeammateRegistry as buildTeammateRegistry, teammate_parseTeammateFlags as parseTeammateFlags, teammate_runTeammate as runTeammate };
7104
- }
7105
-
7106
6926
  declare const version: string;
7107
6927
 
7108
6928
  declare const version$1_version: typeof version;
@@ -7110,4 +6930,4 @@ declare namespace version$1 {
7110
6930
  export { version$1_version as version };
7111
6931
  }
7112
6932
 
7113
- export { index$u as A2a, index$t as Acp, index$p as Agent, index$l as Bootstrap, index$k as CodeReview, index$j as Commands, index$i as Compact, index$s as Config, index$w as Conversation, index$z as FileHistory, index$y as Goal, index$h as History, index$r as Hooks, index$g as Images, index$f as LLM, index$d as LSP, index$e as Logger, index$c as MCP, index$b as Memory, index$x as Permissions, index$a as PlanFile, printMode as PrintMode, index$9 as Prompt, recover$1 as Recover, index$8 as Remote, index$7 as Sandbox, index$v as Session, index$o as Skills, index$6 as Subagent, teammate as Teammate, index$m as Teams, index$q as Telemetry, index$n as Todo, index$5 as ToolResult, index$4 as Tools, index$3 as Update, index$2 as Utils, index$1 as VSCode, version$1 as Version, index as Worktree };
6933
+ export { index$u as A2a, index$t as Acp, index$p as Agent, index$l as Bootstrap, index$k as CodeReview, index$j as Commands, index$i as Compact, index$s as Config, index$w as Conversation, index$z as FileHistory, index$y as Goal, index$h as History, index$r as Hooks, index$g as Images, index$f as LLM, index$d as LSP, index$e as Logger, index$c as MCP, index$b as Memory, index$x as Permissions, index$a as PlanFile, printMode as PrintMode, index$9 as Prompt, recover$1 as Recover, index$8 as Remote, index$7 as Sandbox, index$v as Session, index$o as Skills, index$6 as Subagent, index$m as Teams, index$q as Telemetry, index$n as Todo, index$5 as ToolResult, index$4 as Tools, index$3 as Update, index$2 as Utils, index$1 as VSCode, version$1 as Version, index as Worktree };