@robota-sdk/agent-sdk 3.0.0-beta.55 → 3.0.0-beta.57

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.
@@ -1,6 +1,6 @@
1
1
  import { ITerminalOutput, ISessionLogger, TPermissionHandler, Session, SessionStore, FileSessionLogger } from '@robota-sdk/agent-sessions';
2
2
  export { ISpinner, ITerminalOutput } from '@robota-sdk/agent-sessions';
3
- import { TToolArgs, IHistoryEntry, IContextWindowState, THooksConfig, IToolWithEventService, IAIProvider, TPermissionMode, IHookTypeExecutor, IHookDefinition, IHookInput, IHookResult, TTrustLevel, TSessionEndReason, TUniversalMessage } from '@robota-sdk/agent-core';
3
+ import { TToolArgs, IHistoryEntry, IContextWindowState, TUniversalValue, THooksConfig, IToolWithEventService, IAIProvider, TPermissionMode, IHookTypeExecutor, IHookDefinition, IHookInput, IHookResult, TTrustLevel, TSessionEndReason, TUniversalMessage } from '@robota-sdk/agent-core';
4
4
  export { IAIProvider, IContextTokenUsage, IContextWindowState, IHistoryEntry, IHookInput, IPermissionLists, THookEvent, THooksConfig, TPermissionDecision, TPermissionMode, TRUST_TO_MODE, TToolArgs, TTrustLevel, chatEntryToMessage, evaluatePermission, getMessagesForAPI, isChatEntry, messageToHistoryEntry, runHooks } from '@robota-sdk/agent-core';
5
5
  import { IBackgroundTaskManager, TBackgroundTaskStatus, IBackgroundTaskError, TBackgroundTaskEvent, ISubagentRunner, IBackgroundTaskRunner, IBackgroundTaskListFilter, IBackgroundTaskState, IBackgroundTaskInput, IBackgroundTaskLogCursor, IBackgroundTaskLogPage, ISubagentJobState, TBackgroundTaskIsolation, ISubagentJobResult, ISubagentManager } from '@robota-sdk/agent-runtime';
6
6
  export { BackgroundTaskError, BackgroundTaskManager, IAgentBackgroundTaskRequest, IBackgroundTaskError, IBackgroundTaskHandle, IBackgroundTaskInput, IBackgroundTaskListFilter, IBackgroundTaskLogCursor, IBackgroundTaskLogPage, IBackgroundTaskManager, IBackgroundTaskManagerOptions, IBackgroundTaskRequest, IBackgroundTaskResult, IBackgroundTaskRunner, IBackgroundTaskStart, IBackgroundTaskState, IBaseBackgroundTaskRequest, IPreparedSubagentWorktree, IProcessBackgroundTaskRequest, ISerializableProviderProfile, ISubagentJobHandle, ISubagentJobResult, ISubagentJobStart, ISubagentJobState, ISubagentManager, ISubagentManagerOptions, ISubagentRunner, ISubagentSpawnRequest, ISubagentWorktreeAdapter, ISubagentWorktreePrepareRequest, IWorktreeSubagentRunnerOptions, SubagentManager, TBackgroundPermissionPolicy, TBackgroundPrimitive, TBackgroundTaskErrorCategory, TBackgroundTaskEvent, TBackgroundTaskEventListener, TBackgroundTaskIdFactory, TBackgroundTaskIsolation, TBackgroundTaskKind, TBackgroundTaskMode, TBackgroundTaskRunnerEvent, TBackgroundTaskStatus, TBackgroundTaskTimeoutReason, TBackgroundTaskTransitionEvent, TSubagentJobMode, TSubagentJobStatus, WorktreeSubagentRunner, createWorktreeSubagentRunner, getBackgroundTaskTransitions, isTerminalBackgroundTaskStatus, transitionBackgroundTaskStatus } from '@robota-sdk/agent-runtime';
@@ -62,6 +62,23 @@ interface ICommandSource {
62
62
  getCommands(): ICommand[];
63
63
  }
64
64
 
65
+ /** Registry for system commands. */
66
+ declare class SystemCommandExecutor {
67
+ private readonly commands;
68
+ constructor(commands?: ISystemCommand[]);
69
+ /** Register an additional command. */
70
+ register(command: ISystemCommand): void;
71
+ /** Execute a command by name. Returns null if command not found. */
72
+ execute(name: string, session: InteractiveSession, args: string): Promise<ICommandResult | null>;
73
+ /** List all registered commands. */
74
+ listCommands(): ISystemCommand[];
75
+ listModelInvocableCommands(): ICapabilityDescriptor[];
76
+ isModelInvocable(name: string): boolean;
77
+ executeModelInvocable(name: string, session: InteractiveSession, args: string): Promise<ICommandResult | null>;
78
+ /** Check if a command exists. */
79
+ hasCommand(name: string): boolean;
80
+ }
81
+
65
82
  /**
66
83
  * System commands — SDK-level command execution logic.
67
84
  *
@@ -91,22 +108,6 @@ interface ISystemCommand {
91
108
  }
92
109
  /** Built-in system commands. */
93
110
  declare function createSystemCommands(): ISystemCommand[];
94
- /** Registry for system commands. */
95
- declare class SystemCommandExecutor {
96
- private readonly commands;
97
- constructor(commands?: ISystemCommand[]);
98
- /** Register an additional command. */
99
- register(command: ISystemCommand): void;
100
- /** Execute a command by name. Returns null if command not found. */
101
- execute(name: string, session: InteractiveSession, args: string): Promise<ICommandResult | null>;
102
- /** List all registered commands. */
103
- listCommands(): ISystemCommand[];
104
- listModelInvocableCommands(): ICapabilityDescriptor[];
105
- isModelInvocable(name: string): boolean;
106
- executeModelInvocable(name: string, session: InteractiveSession, args: string): Promise<ICommandResult | null>;
107
- /** Check if a command exists. */
108
- hasCommand(name: string): boolean;
109
- }
110
111
 
111
112
  type TCommandModuleSessionRequirement = 'agent-runtime';
112
113
  /** Composable command capability module. */
@@ -706,19 +707,32 @@ interface IToolState {
706
707
  result?: 'success' | 'error' | 'denied';
707
708
  diffLines?: IDiffLine[];
708
709
  diffFile?: string;
710
+ toolResultData?: string;
709
711
  }
710
712
  /** A single diff line for Edit tool display. */
711
713
  interface IDiffLine {
712
- type: 'add' | 'remove' | 'context';
714
+ type: 'add' | 'remove' | 'context' | 'hunk';
713
715
  text: string;
714
716
  lineNumber: number;
715
717
  }
718
+ interface IUsageSnapshot {
719
+ kind: 'exact' | 'estimated';
720
+ scope: 'turn';
721
+ totalTokens: number;
722
+ promptTokens?: number;
723
+ completionTokens?: number;
724
+ contextUsedTokens: number;
725
+ contextMaxTokens: number;
726
+ contextUsedPercentage: number;
727
+ costStatus: 'unknown' | 'estimated' | 'exact';
728
+ }
716
729
  /** Result of a completed prompt execution. */
717
730
  interface IExecutionResult {
718
731
  response: string;
719
732
  history: IHistoryEntry[];
720
733
  toolSummaries: IToolSummary[];
721
734
  contextState: IContextWindowState;
735
+ usage?: IUsageSnapshot;
722
736
  }
723
737
  /** Summary of a tool call extracted from history. */
724
738
  interface IToolSummary {
@@ -798,6 +812,7 @@ interface IResolvedConfig {
798
812
  apiKey: string | undefined;
799
813
  baseURL?: string;
800
814
  timeout?: number;
815
+ options?: Record<string, TUniversalValue>;
801
816
  };
802
817
  permissions: {
803
818
  allow: string[];
@@ -824,6 +839,10 @@ interface ILoadedContext {
824
839
  agentsMd: string;
825
840
  /** Concatenated content of all CLAUDE.md files found (root-first) */
826
841
  claudeMd: string;
842
+ /** Startup project memory index loaded from .robota/memory/MEMORY.md, if present */
843
+ memoryMd?: string;
844
+ /** Formatted active task context loaded from .agents/tasks/*.md, if present */
845
+ taskContext?: string;
827
846
  /** Extracted "Compact Instructions" section from CLAUDE.md, if present */
828
847
  compactInstructions?: string;
829
848
  }
@@ -873,6 +892,8 @@ interface ISubagentOptions {
873
892
  toolName: string;
874
893
  toolArgs?: TToolArgs;
875
894
  success?: boolean;
895
+ denied?: boolean;
896
+ toolResultData?: string;
876
897
  }) => void;
877
898
  }
878
899
  /**
@@ -899,6 +920,8 @@ interface IInProcessSubagentRunnerDeps {
899
920
  toolName: string;
900
921
  toolArgs?: TToolArgs;
901
922
  success?: boolean;
923
+ denied?: boolean;
924
+ toolResultData?: string;
902
925
  }) => void;
903
926
  customAgentRegistry?: (name: string) => IAgentDefinition | undefined;
904
927
  }
@@ -982,6 +1005,10 @@ interface ISystemPromptParams {
982
1005
  agentsMd: string;
983
1006
  /** Concatenated CLAUDE.md content (may be empty string) */
984
1007
  claudeMd: string;
1008
+ /** Startup project memory index loaded from .robota/memory/MEMORY.md */
1009
+ memoryMd?: string;
1010
+ /** Formatted active task context loaded from .agents/tasks/*.md */
1011
+ taskContext?: string;
985
1012
  /** Human-readable tool descriptions, one per entry */
986
1013
  toolDescriptions: string[];
987
1014
  /** Active trust level governing permission checks */
@@ -1007,6 +1034,37 @@ interface ISystemPromptParams {
1007
1034
  commandDescriptors?: ICapabilityDescriptor[];
1008
1035
  }
1009
1036
 
1037
+ interface IEditCheckpointRecorder {
1038
+ captureFile(filePath: string): Promise<void> | void;
1039
+ }
1040
+ interface IEditCheckpointTurnInput {
1041
+ sessionId: string;
1042
+ prompt: string;
1043
+ }
1044
+ interface IEditCheckpointSummary {
1045
+ id: string;
1046
+ sessionId: string;
1047
+ sequence: number;
1048
+ prompt: string;
1049
+ createdAt: string;
1050
+ fileCount: number;
1051
+ }
1052
+ interface IEditCheckpointFileRecord {
1053
+ originalPath: string;
1054
+ existed: boolean;
1055
+ snapshotFile?: string;
1056
+ }
1057
+ interface IEditCheckpointManifest extends IEditCheckpointSummary {
1058
+ version: 1;
1059
+ files: IEditCheckpointFileRecord[];
1060
+ }
1061
+ interface IEditCheckpointRestoreResult {
1062
+ target: IEditCheckpointSummary;
1063
+ restoredCheckpointCount: number;
1064
+ restoredFileCount: number;
1065
+ removedCheckpointCount: number;
1066
+ }
1067
+
1010
1068
  /**
1011
1069
  * Session factory — assembles a fully-configured Session from config, context,
1012
1070
  * tools, and provider.
@@ -1040,6 +1098,8 @@ interface ICreateSessionOptions {
1040
1098
  permissionHandler?: TPermissionHandler;
1041
1099
  /** Callback for text deltas — enables streaming text to the UI in real-time */
1042
1100
  onTextDelta?: (delta: string) => void;
1101
+ /** Callback when context window usage is refreshed */
1102
+ onContextUpdate?: (state: IContextWindowState) => void;
1043
1103
  /** Custom prompt-for-approval function (injected from CLI) */
1044
1104
  promptForApproval?: (terminal: ITerminalOutput, toolName: string, toolArgs: TToolArgs) => Promise<boolean>;
1045
1105
  /** Additional tools to register beyond the defaults (e.g. agent-tool) */
@@ -1056,6 +1116,8 @@ interface ICreateSessionOptions {
1056
1116
  toolName: string;
1057
1117
  toolArgs?: TToolArgs;
1058
1118
  success?: boolean;
1119
+ denied?: boolean;
1120
+ toolResultData?: string;
1059
1121
  }) => void;
1060
1122
  /** Callback when context is compacted */
1061
1123
  onCompact?: (summary: string) => void;
@@ -1085,6 +1147,8 @@ interface ICreateSessionOptions {
1085
1147
  isModelCommandInvocable?: (command: string) => boolean;
1086
1148
  /** Model-visible command descriptors. */
1087
1149
  commandDescriptors?: ICapabilityDescriptor[];
1150
+ /** Recorder used to snapshot files before Write/Edit tools mutate them. */
1151
+ editCheckpointRecorder?: IEditCheckpointRecorder;
1088
1152
  }
1089
1153
 
1090
1154
  /**
@@ -1165,6 +1229,63 @@ declare function createSubagentLogger(parentSessionId: string, _agentId: string,
1165
1229
  */
1166
1230
  declare function resolveSubagentLogDir(parentSessionId: string, baseLogsDir: string): string;
1167
1231
 
1232
+ declare const MEMORY_INDEX_MAX_LINES = 200;
1233
+ declare const MEMORY_INDEX_MAX_BYTES: number;
1234
+ type TMemoryType = 'user' | 'feedback' | 'project' | 'reference';
1235
+ interface IStartupMemory {
1236
+ content: string;
1237
+ path: string;
1238
+ lineCount: number;
1239
+ truncated: boolean;
1240
+ }
1241
+ interface IMemoryTopicSummary {
1242
+ name: string;
1243
+ path: string;
1244
+ }
1245
+ interface IProjectMemorySummary {
1246
+ indexPath: string;
1247
+ topicsPath: string;
1248
+ topics: IMemoryTopicSummary[];
1249
+ }
1250
+ interface IAppendMemoryInput {
1251
+ type: TMemoryType;
1252
+ topic: string;
1253
+ text: string;
1254
+ }
1255
+ interface IAppendMemoryResult {
1256
+ indexPath: string;
1257
+ topicPath: string;
1258
+ topic: string;
1259
+ deduplicated: boolean;
1260
+ }
1261
+ declare function isMemoryType(value: string): value is TMemoryType;
1262
+ declare class ProjectMemoryStore {
1263
+ private readonly cwd;
1264
+ private readonly now;
1265
+ constructor(cwd: string, now?: () => Date);
1266
+ getIndexPath(): string;
1267
+ getTopicsPath(): string;
1268
+ loadStartupMemory(): IStartupMemory;
1269
+ list(): IProjectMemorySummary;
1270
+ readTopic(topic: string): string;
1271
+ append(input: IAppendMemoryInput): IAppendMemoryResult;
1272
+ }
1273
+
1274
+ interface IMemoryReference {
1275
+ topic: string;
1276
+ path: string;
1277
+ score: number;
1278
+ truncated: boolean;
1279
+ }
1280
+ interface IMemoryEvent {
1281
+ type: 'memory_candidate_extracted' | 'memory_candidate_queued' | 'memory_candidate_saved' | 'memory_candidate_skipped' | 'memory_candidate_approved' | 'memory_candidate_rejected' | 'memory_retrieved';
1282
+ at: string;
1283
+ candidateId?: string;
1284
+ topic?: string;
1285
+ reason?: string;
1286
+ data?: Record<string, TUniversalValue>;
1287
+ }
1288
+
1168
1289
  /**
1169
1290
  * Session initialization helpers for InteractiveSession.
1170
1291
  *
@@ -1201,6 +1322,8 @@ interface IInteractiveSessionStandardOptions {
1201
1322
  modelCommandExecutor?: (command: string, args: string) => Promise<ICommandResult | null>;
1202
1323
  /** Predicate for commands allowed through the model command execution bridge. */
1203
1324
  isModelCommandInvocable?: (command: string) => boolean;
1325
+ /** Preloaded config to avoid duplicate discovery when caller needs it too. */
1326
+ config?: IResolvedConfig;
1204
1327
  }
1205
1328
  /** Test/advanced construction: inject pre-built session directly. */
1206
1329
  interface IInteractiveSessionInjectedOptions {
@@ -1256,6 +1379,9 @@ declare class InteractiveSession {
1256
1379
  private backgroundTaskEvents;
1257
1380
  private backgroundJobGroups;
1258
1381
  private backgroundJobGroupEvents;
1382
+ private memoryEvents;
1383
+ private usedMemoryReferences;
1384
+ private editCheckpointStore;
1259
1385
  private resumeSessionId?;
1260
1386
  private forkSession;
1261
1387
  private backgroundTaskUnsubscribe;
@@ -1303,7 +1429,12 @@ declare class InteractiveSession {
1303
1429
  getActiveTools(): IToolState[];
1304
1430
  getContextState(): IContextWindowState;
1305
1431
  getName(): string | undefined;
1432
+ getCwd(): string;
1306
1433
  getSession(): Session;
1434
+ listEditCheckpoints(): IEditCheckpointSummary[];
1435
+ restoreEditCheckpoint(checkpointId: string): Promise<IEditCheckpointRestoreResult>;
1436
+ getUsedMemoryReferences(): IMemoryReference[];
1437
+ recordMemoryEvent(event: IMemoryEvent): void;
1307
1438
  listBackgroundTasks(filter?: IBackgroundTaskListFilter): IBackgroundTaskState[];
1308
1439
  getBackgroundTask(taskId: string): IBackgroundTaskState | undefined;
1309
1440
  cancelBackgroundTask(taskId: string, reason?: string): Promise<void>;
@@ -1354,6 +1485,9 @@ declare class InteractiveSession {
1354
1485
  private runSkillInFork;
1355
1486
  private applyForkSkillResult;
1356
1487
  private executePrompt;
1488
+ private getEditCheckpointStore;
1489
+ private beginEditCheckpointTurn;
1490
+ private finalizeEditCheckpointTurn;
1357
1491
  private handleTextDelta;
1358
1492
  private handleToolExecution;
1359
1493
  private clearStreaming;
@@ -1395,6 +1529,56 @@ interface ICreateQueryOptions {
1395
1529
  */
1396
1530
  declare function createQuery(options: ICreateQueryOptions): (prompt: string) => Promise<string>;
1397
1531
 
1532
+ interface IEditCheckpointStoreOptions {
1533
+ cwd: string;
1534
+ now?: () => Date;
1535
+ }
1536
+ declare class EditCheckpointStore {
1537
+ private readonly cwd;
1538
+ private readonly rootDir;
1539
+ private readonly now;
1540
+ private activeTurn;
1541
+ constructor(options: IEditCheckpointStoreOptions);
1542
+ beginTurn(input: IEditCheckpointTurnInput): Promise<IEditCheckpointSummary>;
1543
+ captureFile(filePath: string): Promise<void>;
1544
+ finalizeTurn(): Promise<IEditCheckpointSummary | undefined>;
1545
+ list(sessionId: string): IEditCheckpointSummary[];
1546
+ restoreToCheckpoint(sessionId: string, checkpointId: string): Promise<IEditCheckpointRestoreResult>;
1547
+ private createFileRecord;
1548
+ private restoreFile;
1549
+ private loadManifests;
1550
+ private nextSequence;
1551
+ private writeManifest;
1552
+ private sessionDir;
1553
+ private checkpointDir;
1554
+ }
1555
+
1556
+ declare function wrapEditCheckpointTools(tools: readonly IToolWithEventService[], recorder: IEditCheckpointRecorder): IToolWithEventService[];
1557
+
1558
+ type TSelfHostingVerificationPhase = 'checkpoint' | 'edit' | 'handoff' | 'verify' | 'recover';
1559
+ type TSelfHostingLoopState = 'idle' | 'checkpointed' | 'editing' | 'verifying' | 'passed' | 'failed' | 'rolled_back' | 'cancelled';
1560
+ type TSelfHostingLoopEvent = 'checkpoint_created' | 'edits_started' | 'edits_applied' | 'verify_passed' | 'verify_failed' | 'rollback_completed' | 'cancelled';
1561
+ interface ISelfHostingVerificationPlanInput {
1562
+ changedFiles: readonly string[];
1563
+ packageScopes?: readonly string[];
1564
+ baseRef?: string;
1565
+ }
1566
+ interface ISelfHostingVerificationStep {
1567
+ id: string;
1568
+ phase: TSelfHostingVerificationPhase;
1569
+ description: string;
1570
+ required: boolean;
1571
+ command?: string;
1572
+ }
1573
+ interface ISelfHostingVerificationPlan {
1574
+ changedFiles: readonly string[];
1575
+ packageScopes: readonly string[];
1576
+ baseRef: string;
1577
+ steps: readonly ISelfHostingVerificationStep[];
1578
+ }
1579
+ declare function planSelfHostingVerification(input: ISelfHostingVerificationPlanInput): ISelfHostingVerificationPlan;
1580
+ declare function transitionSelfHostingLoop(state: TSelfHostingLoopState, event: TSelfHostingLoopEvent): TSelfHostingLoopState;
1581
+
1398
1582
  /**
1399
1583
  * All built-in agent definitions shipped with the SDK.
1400
1584
  * Order matters: general-purpose is the default fallback.
@@ -1467,6 +1651,8 @@ declare function projectPaths(cwd: string): {
1467
1651
  settingsLocal: string;
1468
1652
  logs: string;
1469
1653
  sessions: string;
1654
+ memory: string;
1655
+ checkpoints: string;
1470
1656
  };
1471
1657
  /** User-level ~/.robota/ paths. */
1472
1658
  declare function userPaths(): {
@@ -1474,6 +1660,33 @@ declare function userPaths(): {
1474
1660
  sessions: string;
1475
1661
  };
1476
1662
 
1663
+ type TTaskFileStatus = 'todo' | 'in-progress' | 'blocked' | 'completed' | 'unknown';
1664
+ interface ITaskContextFile {
1665
+ path: string;
1666
+ relativePath: string;
1667
+ title: string;
1668
+ status: TTaskFileStatus;
1669
+ branch?: string;
1670
+ scope?: string;
1671
+ objective?: string;
1672
+ openItems: readonly string[];
1673
+ }
1674
+ interface ITaskSelectionOptions {
1675
+ currentBranch?: string;
1676
+ maxTasks?: number;
1677
+ }
1678
+ interface IUpdateTaskFileStatusOptions {
1679
+ now?: Date;
1680
+ progressMessage?: string;
1681
+ }
1682
+ declare function readCurrentGitBranch(cwd: string): string | undefined;
1683
+ declare function discoverTaskFiles(cwd: string): string[];
1684
+ declare function parseTaskFile(taskPath: string, cwd: string): ITaskContextFile;
1685
+ declare function selectRelevantTasks(tasks: readonly ITaskContextFile[], options?: ITaskSelectionOptions): ITaskContextFile[];
1686
+ declare function formatTaskContext(tasks: readonly ITaskContextFile[]): string;
1687
+ declare function loadTaskContext(cwd: string, options?: ITaskSelectionOptions): string;
1688
+ declare function updateTaskFileStatus(taskPath: string, status: TTaskFileStatus, options?: IUpdateTaskFileStatusOptions): void;
1689
+
1477
1690
  /**
1478
1691
  * Interactive permission prompt — asks the user whether to allow a tool invocation
1479
1692
  * using an arrow-key selector. Canonical implementation (SSOT).
@@ -1485,4 +1698,4 @@ declare function userPaths(): {
1485
1698
  */
1486
1699
  declare function promptForApproval(terminal: ITerminalOutput, toolName: string, toolArgs: TToolArgs): Promise<boolean>;
1487
1700
 
1488
- export { AgentExecutor, BUILT_IN_AGENTS, BackgroundJobOrchestrator, BuiltinCommandSource, BundlePluginInstaller, BundlePluginLoader, CommandRegistry, type IAgentDefinition, type IAgentExecutorOptions, type IAgentSession, type IAgentToolDeps, type IBackgroundJobGroupCreateRequest, type IBackgroundJobGroupState, type IBackgroundJobGroupSummary, type IBackgroundJobOrchestratorOptions, type IBackgroundJobResultEnvelope, type IBackgroundProcessToolDeps, type IBundlePluginFeatures, type IBundlePluginInstallerOptions, type IBundlePluginManifest, type IBundleSkill, type ICapabilityDescriptor, type ICommand, type ICommandExecutionToolDeps, type ICommandModule, type ICommandResult, type ICommandSource, type ICreateQueryOptions, type IDiffLine, type IExecutionResult, type IForkExecutionOptions, type IInProcessSubagentRunnerDeps, type IInstalledPluginRecord, type IInstalledPluginsRegistry, type IInteractiveSessionEvents, type IInteractiveSessionOptions, type IInteractiveSessionShutdownOptions, type IKnownMarketplaceEntry, type IKnownMarketplacesRegistry, type ILoadedBundlePlugin, type IMarketplaceClientOptions, type IMarketplaceManifest, type IMarketplacePluginEntry, type IMarketplaceSource, type IPluginSettings, type IPromptExecutorOptions, type IPromptProvider, type ISkillExecutionCallbacks, type ISkillExecutionResult, type ISubagentOptions, type ISubagentPromptOptions, type ISystemCommand, type IToolState, type IToolSummary, type ITransportAdapter, InteractiveSession, MarketplaceClient, PluginCommandSource, PluginSettingsStore, PromptExecutor, SkillCommandSource, type SkillPromptContext, SystemCommandExecutor, type TBackgroundJobGroupEvent, type TBackgroundJobGroupEventListener, type TBackgroundJobGroupIdFactory, type TBackgroundJobGroupStatus, type TBackgroundJobWaitPolicy, type TCapabilityKind, type TCapabilitySafety, type TCommandModuleSessionRequirement, type TEnabledPlugins, type TInteractiveEventName, type TInteractivePermissionHandler, type TPermissionResultValue, type TProviderFactory, type TSessionFactory, type TSubagentRunnerFactory, assembleSubagentPrompt, buildSkillPrompt, createAgentTool, createBackgroundProcessTool, createCommandExecutionTool, createDefaultTools, createQuery, createSubagentLogger, createSubagentSession, createSystemCommands, executeSkill, getBuiltInAgent, getForkWorkerSuffix, getSubagentSuffix, parseFrontmatter, preprocessShellCommands, projectPaths, promptForApproval, resolveSubagentLogDir, retrieveAgentToolDeps, storeAgentToolDeps, substituteVariables, summarizeBackgroundJobGroup, userPaths };
1701
+ export { AgentExecutor, BUILT_IN_AGENTS, BackgroundJobOrchestrator, BuiltinCommandSource, BundlePluginInstaller, BundlePluginLoader, CommandRegistry, EditCheckpointStore, type IAgentDefinition, type IAgentExecutorOptions, type IAgentSession, type IAgentToolDeps, type IAppendMemoryInput, type IAppendMemoryResult, type IBackgroundJobGroupCreateRequest, type IBackgroundJobGroupState, type IBackgroundJobGroupSummary, type IBackgroundJobOrchestratorOptions, type IBackgroundJobResultEnvelope, type IBackgroundProcessToolDeps, type IBundlePluginFeatures, type IBundlePluginInstallerOptions, type IBundlePluginManifest, type IBundleSkill, type ICapabilityDescriptor, type ICommand, type ICommandExecutionToolDeps, type ICommandModule, type ICommandResult, type ICommandSource, type ICreateQueryOptions, type IDiffLine, type IEditCheckpointFileRecord, type IEditCheckpointManifest, type IEditCheckpointRecorder, type IEditCheckpointRestoreResult, type IEditCheckpointSummary, type IEditCheckpointTurnInput, type IExecutionResult, type IForkExecutionOptions, type IInProcessSubagentRunnerDeps, type IInstalledPluginRecord, type IInstalledPluginsRegistry, type IInteractiveSessionEvents, type IInteractiveSessionOptions, type IInteractiveSessionShutdownOptions, type IKnownMarketplaceEntry, type IKnownMarketplacesRegistry, type ILoadedBundlePlugin, type IMarketplaceClientOptions, type IMarketplaceManifest, type IMarketplacePluginEntry, type IMarketplaceSource, type IPluginSettings, type IProjectMemorySummary, type IPromptExecutorOptions, type IPromptProvider, type ISelfHostingVerificationPlan, type ISelfHostingVerificationPlanInput, type ISelfHostingVerificationStep, type ISkillExecutionCallbacks, type ISkillExecutionResult, type IStartupMemory, type ISubagentOptions, type ISubagentPromptOptions, type ISystemCommand, type ITaskContextFile, type ITaskSelectionOptions, type IToolState, type IToolSummary, type ITransportAdapter, type IUpdateTaskFileStatusOptions, type IUsageSnapshot, InteractiveSession, MEMORY_INDEX_MAX_BYTES, MEMORY_INDEX_MAX_LINES, MarketplaceClient, PluginCommandSource, PluginSettingsStore, ProjectMemoryStore, PromptExecutor, SkillCommandSource, type SkillPromptContext, SystemCommandExecutor, type TBackgroundJobGroupEvent, type TBackgroundJobGroupEventListener, type TBackgroundJobGroupIdFactory, type TBackgroundJobGroupStatus, type TBackgroundJobWaitPolicy, type TCapabilityKind, type TCapabilitySafety, type TCommandModuleSessionRequirement, type TEnabledPlugins, type TInteractiveEventName, type TInteractivePermissionHandler, type TMemoryType, type TPermissionResultValue, type TProviderFactory, type TSelfHostingLoopEvent, type TSelfHostingLoopState, type TSelfHostingVerificationPhase, type TSessionFactory, type TSubagentRunnerFactory, type TTaskFileStatus, assembleSubagentPrompt, buildSkillPrompt, createAgentTool, createBackgroundProcessTool, createCommandExecutionTool, createDefaultTools, createQuery, createSubagentLogger, createSubagentSession, createSystemCommands, discoverTaskFiles, executeSkill, formatTaskContext, getBuiltInAgent, getForkWorkerSuffix, getSubagentSuffix, isMemoryType, loadTaskContext, parseFrontmatter, parseTaskFile, planSelfHostingVerification, preprocessShellCommands, projectPaths, promptForApproval, readCurrentGitBranch, resolveSubagentLogDir, retrieveAgentToolDeps, selectRelevantTasks, storeAgentToolDeps, substituteVariables, summarizeBackgroundJobGroup, transitionSelfHostingLoop, updateTaskFileStatus, userPaths, wrapEditCheckpointTools };