@robota-sdk/agent-framework 3.0.0-beta.82 → 3.0.0-beta.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,11 @@
1
- import { $ as IHostBundlePluginLoaderOptions, $a as ICommandHostPresetApplication, $c as EXECUTION_ORIGIN_METADATA_KEYS, $i as THostSettingsScope, $n as ICommandSessionInfo, $o as IPromptFileReferenceResolveOptions, $r as writeCommandPermissionMode, $s as isSafeSessionId, $t as IReversibleToolSafetyReport, A as hasBlockingPromptFileReferenceDiagnostics, Aa as deleteProviderProfile, Ac as IOutputStylePrompt, Ai as IActiveModelChangeResult, Al as IEditCheckpointRestoreResult, An as createSystemCommands, Ao as GOAL_SIGNAL_TOOL_NAME, Ar as isStatusLineCommandSettingsPatch, As as ICommandWorkspaceAdapter, At as ISkillPromptContext, B as IForkExecutionOptions, Ba as TSystemCommandLifecycle, Bc as IBackgroundTaskRunner, Bi as TSettingsScope, Bl as TEffortSelection, Bn as REWIND_COMMAND_ARGUMENT_HINT, Bo as IContextReferenceClearResult, Br as TPermissionRuleKind, Bs as IAdvisorStatus, Bt as TSubagentRunnerFactory, C as TSettingsMergeRule, Ca as IProviderProfileSettings, Cc as TWorkspaceProjectAuthorityCandidate, Ci as readProviderSettings, Cl as IOrgPolicy, Cn as IContributionSource, Co as IStartupMemory, Cr as isAppearanceSettingsPatch, Cs as ICommandPickerAdapter, Ct as BuiltinCommandSource, D as buildPromptWithFileReferences, Da as TProviderSettingsDocument, Dc as TWorkspaceProjectStateDirectories, Di as readMergedProviderSettingsFromSources, Dl as IEditCheckpointInspectionPlan, Dn as TEnvResolvedSettings, Do as isMemoryType, Dr as STATUSLINE_COMMAND_DESCRIPTION, Ds as ICommandSandboxStatus, Dt as retrieveAgentToolDeps, E as parsePromptFileReferences, Ea as IProviderSetupPatch, Ec as TWorkspaceProjectSettingsWriteDecision, Ei as mergeSettings, El as IEditCheckpointInspection, En as IResolvedConfig, Eo as ProjectMemoryStore, Er as STATUSLINE_COMMAND_ARGUMENT_HINT, Es as ICommandSandboxAdapter, Et as createAgentTool, F as IPromptHistoryOptions, Fa as ICommandModule, Fc as IAgentJobLogs, Fi as resolveProviderSettingsWriteTarget, Fl as IAgentDefinition, Fn as createCommandMemoryStores, Fo as IGoalSignal, Fr as IPermissionsCommandState, Fs as TRemoteControlStatus, Ft as ICreateSessionOptions, G as selectCommandModules, Ga as ICommandHostCatalog, Gc as ISpawnProcessTaskRequest, Gi as IProjectSettingsPath, Gn as listCommandEditCheckpointBranches, Go as createContextReferenceItem, Gr as groupPermissionRulesBySource, Gs as IHostToolResultSpillStore, Gt as ISubagentPromptOptions, H as ISkillExecutionResult, Ha as ICommandHostAdapterAccess, Hc as ICreateExecutionWorkspaceTaskSpawnerOptions, Hi as readSettings, Hl as parseModelEffort, Hn as buildRewindCommandSubcommands, Ho as IContextReferenceRemoveResult, Hr as buildPermissionModeSubcommands, Hs as formatAdvisorSpec, Ht as ISubagentOptions, I as IRemoteCommandPolicy, Ia as TCommandModuleSessionRequirement, Ic as IAgentJobMonitors, Ii as createWorkspaceProjectSettingsStore, Il as IProviderErrorGuidance, In as hasSensitiveCommandMemoryContent, Io as IGoalStartOptions, Ir as PERMISSIONS_COMMAND_DESCRIPTION, Is as TSandboxCommandMode, It as TSessionResponseFormat, J as BundlePluginInstaller, Ja as ICommandHostContextReferences, Jc as createMainThreadDetailPage, Ji as TSettingsSource, Jn as rollbackCommandEditCheckpoint, Jo as toContextReferenceRecords, Jr as parsePermissionModeArgument, Js as createNodeHostSessionStore, Jt as getForkWorkerSuffix, K as SystemCommandExecutor, Ka as ICommandHostCheckpoints, Kc as createExecutionWorkspaceTaskSpawner, Ki as IWorkspaceProjectSettingsSource, Kn as listCommandEditCheckpoints, Ko as listActiveContextReferences, Kr as isPermissionMode, Ks as IInteractiveSessionRecord$1, Kt as TSubagentSuffix, L as createDefaultRemoteCommandPolicy, La as DuplicateSystemCommandSemanticRoleError, Lc as IAgentJobSchedules, Li as createNodeHostSettingsStore, Ll as IModelEffortInputs, Ln as isCommandMemoryType, Lo as TGoalDecision, Lr as PERMISSION_MODE_ARGUMENT_HINT, Ls as ADVISOR_OFF, Lt as IToolCallHandoffPolicy, M as IExecutionResult$1, Ma as setCurrentProvider, Mc as IAgentJobDispatch, Mi as applyActiveModelChange, Ml as IEditCheckpointTurnInput, Mn as MEMORY_COMMAND_DESCRIPTION, Mo as DEFAULT_GOAL_MAX_ITERATIONS, Mr as IPresetApplicationResult, Ms as IHandoffStaysBehind, Mt as preprocessShellCommands, N as TInteractivePermissionHandler, Na as upsertProviderProfile, Nc as IAgentJobGroups, Ni as applyProviderConfiguration, Nl as TEditCheckpointFileRestoreAction, Nn as MEMORY_COMMAND_USAGE, No as DEFAULT_GOAL_NO_PROGRESS_LIMIT, Nr as applyPresetToSession, Ns as IPermissionRuleLayer, Nt as substituteVariables, O as createPromptFileReferenceHistoryEntry, Oa as buildProviderProfile, Oc as TWorkspaceProjectStateNamespace, Oi as resolveActiveProvider, Ol as IEditCheckpointManifest, On as TSandboxSettings, Oo as buildGoalContinuationPrompt, Or as applyStatusLineSettings, Os as ICommandSettingsAdapter, Ot as storeAgentToolDeps, P as TPermissionResultValue$1, Pa as validateProviderProfile, Pc as IAgentJobHostContext, Pi as applyProviderSwitch, Pl as ICapabilityDescriptor, Pn as buildMemoryCommandSubcommands, Po as GoalController, Pr as IPermissionRuleGroup, Ps as IWorkspaceMoveRequest, Pt as ILivePromptTracePort, Q as MarketplaceClient, Qa as ICommandHostPlan, Qc as createExecutionWorkspaceSnapshot, Qi as createNodeHostSettingsSource, Qn as EXIT_COMMAND_DESCRIPTION, Qo as IPromptFileReferenceLimits, Qr as retryCommandPermissionDenial, Qs as createUserSessionStore, Qt as IReversibleToolSafetyInput, R as ISkillActivationHistoryData, Ra as ISystemCommand, Rc as MONITOR_SHELL_TOOL, Ri as ISettingsDocumentStore, Rl as IModelEffortResolution, Rn as listCommandUsedMemoryReferences, Ro as extractGoalSignal, Rr as PERMISSION_MODE_COMMAND_DESCRIPTION, Rs as IAdvisorSetResult, Rt as IToolCallHandoffProvenance, S as IHookDefinitionSource, Sa as ILegacyProviderSettings, Sc as TWorkspaceProjectAccess, Si as readMergedProviderSettings, Sl as ICommandResult, Sn as inspectSkillSources, So as IProjectMemorySummary, Sr as applyAppearanceSettings, Ss as ICommandPermissionRulesAdapter, St as TMarketplaceSource, T as resolvePromptFileReferences, Ta as IProviderSetupInput, Tc as TWorkspaceProjectSettingsTarget, Ti as mergeProviders, Tl as IEditCheckpointFileRecord, Tn as ILoadContextOptions, To as MEMORY_INDEX_MAX_LINES, Tr as DEFAULT_STATUS_LINE_COMMAND_SETTINGS, Ts as ICommandRemoteControlAdapter, Tt as CommandRegistry, U as executeSkill, Ua as ICommandHostAgentJobs, Uc as IExecutionWorkspaceTaskSpawner, Ui as updateModelInSettings, Ul as resolveModelEffort, Un as forkCommandEditCheckpoint, Uo as IContextReferenceUpsertResult, Ur as formatCommandPermissionsMessage, Us as parseAdvisorSpec, Ut as ISubagentParentContext, V as ISkillExecutionCallbacks, Va as TSystemCommandSemanticRole, Vc as IBackgroundTaskSpawnerGroupRequest, Vi as deleteSettings, Vl as TEffortSource, Vn as REWIND_COMMAND_DESCRIPTION, Vo as IContextReferenceInventoryLimits, Vr as VALID_PERMISSION_MODES, Vs as ICommandAdvisorAdapter, Vt as createInProcessSubagentRunner, W as findUnknownModuleNames, Wa as ICommandHostBackgroundTasks, Wc as ISpawnAgentTaskRequest, Wi as writeSettings, Wn as inspectCommandEditCheckpoint, Wo as clearContextReferences, Wr as formatInvalidPermissionModeMessage, Ws as resolveStartupAdvisorSpec, Wt as createSubagentSession, X as IInstalledPluginRecord, Xa as ICommandHostGoal, Xc as TExecutionAttachOutcome, Xi as readSettingsSourceText, Xn as CLEAR_COMMAND_DESCRIPTION, Xo as IPromptFileReferenceDiagnostic, Xr as readCommandPermissionsState, Xs as createProjectSessionStore, Xt as IReversibleExecutionOptions, Y as IBundlePluginInstallerOptions, Ya as ICommandHostContextWindow, Yc as IResolveExecutionAttachInput, Yi as createWorkspaceProjectSettingsSources, Yn as switchCommandEditCheckpointBranch, Yo as upsertContextReference, Yr as readCommandPermissionMode, Ys as createNodeToolResultSpillStore, Yt as getSubagentSuffix, Z as TInstalledPluginsRegistry, Za as ICommandHostMemory, Zc as resolveExecutionAttach, Zi as INodeHostSettingsSource, Zn as COST_COMMAND_DESCRIPTION, Zo as IPromptFileReferenceHistoryData, Zr as resolvePermissionModeAdapter, Zs as createUserPromptHistoryFile, Zt as IReversibleToolSafetyContext, _ as ISessionRecordRestoreResult, _a as resetAutoCompactThresholdSetting, _c as IWorkspaceTrustCause, _i as HELP_COMMAND_DESCRIPTION, _l as ICommandSessionReplayValidationReport, _n as ISkillRootInspection, _o as IMemoryRetrievalResult, _r as resolvePluginCommandAdapter, _s as ICommandMCPOAuthStatus, _t as IKnownMarketplaceEntry, a as PeerMessageIngress, aa as AUTO_COMPACT_THRESHOLD_SETTINGS_KEY, ac as WorkspaceSessionLogSource, ai as formatLanguageUsageMessage, al as BackgroundJobOrchestrator, an as wrapReversibleExecutionTools, ao as IMemoryBudget, ar as createSessionExitHostAction, as as EditCheckpointStore, at as IBundlePluginHookIssue, b as createSubagentLogger, ba as IProviderCommandModuleOptions, bc as IWorkspaceTrustStoreSnapshot, bi as ProviderConfigError, bl as IUnknownCommandModuleName, bn as SkillCommandSource, bo as IAppendMemoryInput, br as IAppearanceSettings, bs as ICommandOutputStyleSummary, bt as IMarketplacePluginEntry, c as IInteractiveSessionShutdownOptions, ca as TAutoCompactThreshold, cc as IWorkspaceAncestorTextEntry, ci as BACKGROUND_COMMAND_USAGE, cl as ISessionUsageRecord, cn as PromptExecutor, co as IMemoryStore, cr as formatCommandSessionReplayValidationReport, cs as ICommandEffortAdapter, ct as IBundlePluginMcpFault, d as IAuthenticatedExternalEvent, da as compactCommandContext, dc as IWorkspaceIdentityResolver, di as closeCommandBackgroundTask, dl as ICommandSessionIdentity, dn as IAgentExecutorOptions, do as ISemanticMemoryAdapter, dr as validateCommandSessionReplayLog, ds as ICommandMCPActivationAdapter, dt as IBundleSkill, ea as TSettingsCheck, ec as listResumableSessionSummaries, ei as LANGUAGE_COMMAND_ARGUMENT_HINT, el as createBackgroundGroupExecutionEntryId, en as TReversibleExecutionIsolation, eo as ICommandHostSessionAccess, er as RENAME_COMMAND_DESCRIPTION, es as IPromptFileReferenceToken, et as createHostBundlePluginLoader, f as IExternalEventReceipt, fa as listCommandContextReferences, fc as IWorkspaceProjectAuthority, fi as formatCommandBackgroundTask, fl as ICommandSessionModel, fn as IAgentSession, fo as ISemanticMemoryQueryResult, fr as PLUGIN_COMMAND_ARGUMENT_HINT, fs as ICommandMCPActivationSummary, ft as ILoadedBundlePlugin, g as IInteractiveSession$1, ga as removeCommandContextReference, gc as IWorkspaceProjectStateStorage, gi as readCommandBackgroundTaskLog, gl as ICommandHostNoCapability, gn as ISkillRootDescriptor, go as IMemoryPendingRecord, gr as createShowPluginManagerIntent, gs as ICommandMCPOAuthRedirectPrompt, gt as NodeHostPluginSettingsStore, h as TExternalEventSettlement, ha as readCommandContextState, hc as IWorkspaceProjectSettingsWriter, hi as parseCommandBackgroundLogCursor, hl as ICommandSessionRuntime, hn as listFrameworkProjectContributionPaths, ho as IMemoryExtractionInput, hr as buildPluginCommandSubcommands, hs as ICommandMCPOAuthLogoutResult, ht as IPluginSettings, i as IInteractiveRuntime, ia as testProviderProfileCommand, ic as WorkspaceSessionLogSink, ii as buildLanguageCommandSubcommands, il as parseExecutionWorkspaceEntryId, in as evaluateReversibleToolSafety, io as IDurableMemoryReader, ir as clearConversationHistory, is as wrapEditCheckpointTools, it as IBundlePluginFeatures, j as toPromptFileReferenceRecords, ja as mergeProviderPatch, jc as IPresetApplicationOptions, ji as IProviderSwitchOptions, jl as IEditCheckpointSummary, jn as MEMORY_COMMAND_ARGUMENT_HINT, jo as createGoalStatusTool, jr as readStatusLineSettings, js as IHandoffProgress, jt as TShellExecFn, k as formatPromptFileReferenceDiagnostics, ka as buildProviderSetupPatch, kc as TWorkspaceTrustState, ki as IActiveModelChangeOptions, kl as IEditCheckpointRecorder, kn as TSettings, ko as buildGoalStartPrompt, kr as buildStatusLineCommandSubcommands, ks as ICommandSettingsDocument, kt as IAgentToolDeps, l as InteractiveSession, la as addCommandContextReference, lc as IWorkspaceDirectoryEntry, li as buildBackgroundCommandSubcommands, ll as ICommandSessionContextWindow, ln as TProviderFactory, lo as IMemoryWriter, lr as parseSessionNameArgument, ls as ICommandHandoffAdapter, lt as IBundlePluginMcpServer, m as IExternalEventSourceOptions, ma as readAutoCompactThresholdSource, mc as IWorkspaceProjectReader, mi as listCommandBackgroundTasks, ml as ICommandSessionPreset, mn as IProjectContributionPath, mo as IMemoryCandidate, mr as RELOAD_PLUGINS_COMMAND_DESCRIPTION, ms as ICommandMCPOAuthLoginResult, mt as TEnabledPlugins, na as checkSettingsDocument, nc as resolveSessionIdByIdOrName, ni as RECOMMENDED_RESPONSE_LANGUAGES, nl as createExecutionOriginMetadata, nn as TReversibleSafetyStatus, no as ICommandHostUserInteraction, nr as RESUME_COMMAND_DESCRIPTION, ns as IResolvedPromptFileReferences, nt as loadHostBundlePluginsFromScopes, o as IGenerateSessionNameOptions, oa as DEFAULT_AUTO_COMPACT_THRESHOLD, oc as IRestrictedWorkspaceProjectAccess, oi as parseLanguageArgument, ol as IBackgroundJobOrchestratorOptions, on as IPromptExecutorOptions, oo as IMemoryCurationQueue, or as createSessionRenameHostAction, os as ICommandCostBudget, ot as IBundlePluginInspection, p as IExternalEventSource, pa as readAutoCompactThreshold, pc as IWorkspaceProjectMutation, pi as formatCommandBackgroundTaskList, pl as ICommandSessionPermissions, pn as TSessionFactory, po as IAutomaticMemoryConfig, pr as PLUGIN_COMMAND_DESCRIPTION, ps as ICommandMCPOAuthLoginRequest, pt as TBundlePluginSkipReason, q as PluginCommandSource, qa as ICommandHostContext, qc as createLineDetailPage, qi as TProjectSettingsScope, qn as restoreCommandEditCheckpoint, qo as removeContextReference, qr as listCommandSessionAllowedTools, qs as IInteractiveSessionStore$1, qt as assembleSubagentPrompt, r as createInteractiveRuntime, ra as probeProviderProfile, rc as WorkspaceProjectSessionStore, ri as TRecommendedResponseLanguage, rl as createMainThreadExecutionEntryId, rn as TReversibleSideEffect, ro as ICommandHostWorkspace, rr as VALIDATE_SESSION_COMMAND_DESCRIPTION, rs as TPromptFileReferenceDiagnosticCode, rt as BundlePluginLoader, s as generateSessionName, sa as ICompactContextResult, sc as ITrustedWorkspaceProjectAccess, si as BACKGROUND_COMMAND_DESCRIPTION, sl as summarizeBackgroundJobGroup, sn as IPromptProvider, so as IMemoryRecaller, sr as createShowSessionPickerIntent, ss as ICommandCostBudgetAdapter, st as IBundlePluginManifest, t as IInteractiveRuntimeOptions, ta as checkNodeHostSettingsFile, tc as resolveLatestSessionId, ti as LANGUAGE_COMMAND_DESCRIPTION, tl as createBackgroundTaskExecutionEntryId, tn as TReversibleRollbackLayer, to as ICommandHostTerminalHandoff, tr as RENAME_COMMAND_USAGE, ts as IResolvedPromptFileReference, tt as loadHostBundlePluginInspectionFromScopes, u as ExternalEventIngress, ua as clearCommandContextReferences, uc as IWorkspaceIdentity, ui as cancelCommandBackgroundTask, ul as ICommandSessionHistory, un as AgentExecutor, uo as IPerTurnRecallConfig, ur as readCommandSessionInfo, us as ICommandHostAdapters, ut as IBundlePluginSkip, v as restoreSessionRecordIntoSession, va as setCommandAutoCompactThreshold, vc as IWorkspaceTrustGrant, vi as formatCommandHelpMessage, vl as ICommandSkillListEntry, vn as ISkillSourceInspection, vo as TMemoryCandidateStatus, vr as APPEARANCE_SETTINGS_KEYS, vs as ICommandMCPSourceProblem, vt as IMarketplaceClientOptions, w as resolvePromptFileReferencePaths, wa as IProviderSettingsBuildOptions, wc as TWorkspaceProjectMutationDecision, wi as resolveEnvDefaultProvider, wl as IEditCheckpointFileInspection, wn as createWorkspaceProjectContributionSource, wo as MEMORY_INDEX_MAX_BYTES, wr as readAppearanceSettings, ws as ICommandProcessAdapter, wt as createBuiltinCommandModule, x as resolveSubagentLogDir, xa as IProviderCommandSettingsAdapter, xc as TWorkspaceContributionKind, xi as createProviderFromSettings, xl as TAutoCompactThresholdSource, xn as TSkillSkipReason, xo as IAppendMemoryResult, xr as TAppearanceSettingsPatch, xs as ICommandPermissionModeAdapter, xt as TKnownMarketplacesRegistry, y as TInteractiveSessionOptions, ya as writeAutoCompactThresholdSetting, yc as IWorkspaceTrustStore, yi as IReadProviderSettingsOptions, yl as IModelReapplyOptions, yn as ISkillSourceSkip, yo as TMemoryPolicyMode, yr as DEFAULT_APPEARANCE_SETTINGS, ys as ICommandOutputStyleRegistryAdapter, yt as IMarketplaceManifest, z as createSkillExecutionPort, za as ISystemCommandSemanticRoles, zc as MonitorCommandRefusedError, zi as TSettingsData, zl as TEffortDisposition, zn as recordCommandMemoryEvent, zo as IContextReferenceAddResult, zr as RUNTIME_RULE_SOURCE, zs as IAdvisorSpec, zt as IInProcessSubagentRunnerDeps } from "./createInteractiveRuntime-Bmh2KYP6.js";
1
+ import { $ as IBundlePluginInstallerOptions, $a as ICommandHostBackgroundTasks, $c as IAgentJobLogs, $i as writeSettings, $l as DEFAULT_AGENT_DEFINED_IN, $n as switchCommandEditCheckpointBranch, $o as IContextReferenceRemoveResult, $r as parsePermissionModeArgument, $s as IAdvisorSetResult, $t as getSubagentSuffix, A as parsePromptFileReferences, Aa as IProviderCommandSettingsAdapter, Ac as IWorkspaceProjectAuthority, Ai as createProviderFromSettings, Al as ICommandSessionModel, An as IResolvedConfig, Ao as IAppendMemoryInput, Ar as STATUSLINE_COMMAND_ARGUMENT_HINT, As as ICommandMCPOAuthStatus, At as createAgentTool, B as IRemoteCommandPolicy, Ba as mergeProviderPatch, Bc as TWorkspaceProjectAccess, Bi as IProviderSwitchOptions, Bl as ICommandResult$1, Bn as hasSensitiveCommandMemoryContent, Bo as GOAL_SIGNAL_TOOL_NAME, Br as PERMISSIONS_COMMAND_DESCRIPTION, Bs as ICommandSandboxStatus, Bt as TSessionResponseFormat, C as createSubagentLogger, Ca as readAutoCompactThresholdSource, Cc as WorkspaceSessionLogSource, Ci as formatCommandHelpMessage, Cl as BackgroundJobOrchestrator, Cn as ISkillSourceSkip, Co as IAutomaticMemoryConfig, Cr as DEFAULT_APPEARANCE_SETTINGS, Cs as ICommandHostAdapters, Ct as IMarketplaceManifest, D as TSettingsMergeRule, Da as setCommandAutoCompactThreshold, Dc as IWorkspaceDirectoryEntry, Di as resolveModelListSelection, Dl as ICommandSessionContextWindow, Dn as IContributionSource, Do as IMemoryRetrievalResult, Dr as isAppearanceSettingsPatch, Ds as ICommandMCPOAuthLoginResult, Dt as BuiltinCommandSource, E as IHookDefinitionSource, Ea as resetAutoCompactThresholdSetting, Ec as IWorkspaceAncestorTextEntry, Ei as buildModelListSnapshot, El as ISessionUsageRecord, En as inspectSkillSources, Eo as IMemoryPendingRecord, Er as applyAppearanceSettings, Es as ICommandMCPOAuthLoginRequest, Et as TMarketplaceSource, F as toPromptFileReferenceRecords, Fa as IProviderSetupPatch, Fc as IWorkspaceTrustCause, Fi as mergeSettings, Fl as ICommandSessionReplayValidationReport, Fn as MEMORY_COMMAND_ARGUMENT_HINT, Fo as MEMORY_INDEX_MAX_LINES, Fr as readStatusLineSettings, Fs as ICommandPermissionRulesAdapter, Ft as TShellExecFn, G as ISkillExecutionCallbacks, Ga as TCommandModuleSessionRequirement, Gc as TWorkspaceProjectStateDirectories, Gi as createWorkspaceProjectSettingsStore, Gl as IEditCheckpointInspectionPlan, Gn as REWIND_COMMAND_DESCRIPTION, Go as IGoalSignal, Gr as TPermissionRuleKind, Gs as IHandoffStaysBehind, Gt as createInProcessSubagentRunner, H as ISkillActivationHistoryData, Ha as upsertProviderProfile, Hc as TWorkspaceProjectMutationDecision, Hi as applyProviderConfiguration, Hl as IEditCheckpointFileInspection, Hn as listCommandUsedMemoryReferences, Ho as DEFAULT_GOAL_MAX_ITERATIONS, Hr as PERMISSION_MODE_COMMAND_DESCRIPTION, Hs as ICommandSettingsDocument, Ht as IToolCallHandoffProvenance, I as IExecutionResult$1, Ia as TProviderSettingsDocument, Ic as IWorkspaceTrustGrant, Ii as readMergedProviderSettingsFromSources, Il as ICommandSkillListEntry, In as MEMORY_COMMAND_DESCRIPTION, Io as ProjectMemoryStore, Ir as IPresetApplicationResult, Is as ICommandPickerAdapter, It as preprocessShellCommands, J as findUnknownModuleNames, Ja as ISystemCommandSemanticRoles, Jc as IOutputStylePrompt, Ji as TSettingsData, Jl as IEditCheckpointRestoreResult, Jn as inspectCommandEditCheckpoint, Jo as extractGoalSignal, Jr as formatCommandPermissionsMessage, Js as IPermissionRuleRemoval, Jt as createSubagentSession, K as ISkillExecutionResult, Ka as DuplicateSystemCommandSemanticRoleError, Kc as TWorkspaceProjectStateNamespace, Ki as createNodeHostSettingsStore, Kl as IEditCheckpointManifest, Kn as buildRewindCommandSubcommands, Ko as IGoalStartOptions, Kr as VALID_PERMISSION_MODES, Ks as ILinkedDeviceSummary, Kt as ISubagentOptions, L as TInteractivePermissionHandler, La as buildProviderProfile, Lc as IWorkspaceTrustStore, Li as resolveActiveProvider, Ll as IModelReapplyOptions, Ln as MEMORY_COMMAND_USAGE, Lo as isMemoryType, Lr as applyPresetToSession, Ls as ICommandProcessAdapter, Lt as substituteVariables, M as createPromptFileReferenceHistoryEntry, Ma as IProviderProfileSettings, Mc as IWorkspaceProjectReader, Mi as readProviderSettings, Ml as ICommandSessionPreset, Mn as TSandboxSettings, Mo as IProjectMemorySummary, Mr as applyStatusLineSettings, Ms as ICommandOutputStyleRegistryAdapter, Mt as storeAgentToolDeps, N as formatPromptFileReferenceDiagnostics, Na as IProviderSettingsBuildOptions, Nc as IWorkspaceProjectSettingsWriter, Ni as resolveEnvDefaultProvider, Nl as ICommandSessionRuntime, Nn as TSettings, No as IStartupMemory, Nr as buildStatusLineCommandSubcommands, Ns as ICommandOutputStyleSummary, Nt as IAgentToolDeps, O as resolvePromptFileReferencePaths, Oa as writeAutoCompactThresholdSetting, Oc as IWorkspaceIdentity, Oi as IReadProviderSettingsOptions, Ol as ICommandSessionHistory, On as createWorkspaceProjectContributionSource, Oo as TMemoryCandidateStatus, Or as readAppearanceSettings, Os as ICommandMCPOAuthLogoutResult, Ot as createBuiltinCommandModule, P as hasBlockingPromptFileReferenceDiagnostics, Pa as IProviderSetupInput, Pc as IWorkspaceProjectStateStorage, Pi as mergeProviders, Pl as ICommandHostNoCapability, Pn as createSystemCommands, Po as MEMORY_INDEX_MAX_BYTES, Pr as isStatusLineCommandSettingsPatch, Ps as ICommandPermissionModeAdapter, Pt as ISkillPromptContext, Q as BundlePluginInstaller, Qa as ICommandHostAgentJobs, Qc as IAgentJobHostContext, Qi as updateModelInSettings, Ql as ICapabilityDescriptor, Qn as rollbackCommandEditCheckpoint, Qo as IContextReferenceInventoryLimits, Qr as listCommandSessionAllowedTools, Qs as ADVISOR_OFF, Qt as getForkWorkerSuffix, R as TPermissionResultValue$1, Ra as buildProviderSetupPatch, Rc as IWorkspaceTrustStoreSnapshot, Ri as IActiveModelChangeOptions, Rl as IUnknownCommandModuleName, Rn as buildMemoryCommandSubcommands, Ro as buildGoalContinuationPrompt, Rr as IPermissionRuleGroup, Rs as ICommandRemoteControlAdapter, Rt as ILivePromptTracePort, S as createExternalEventGrantHistory, Sa as readAutoCompactThreshold, Sc as WorkspaceSessionLogSink, Si as HELP_COMMAND_DESCRIPTION, Sl as parseExecutionWorkspaceEntryId, Sn as ISkillSourceInspection, So as ISemanticMemoryQueryResult, Sr as APPEARANCE_SETTINGS_KEYS, Ss as ICommandHandoffAdapter, St as IMarketplaceClientOptions, T as sandboxApprovalFor, Ta as removeCommandContextReference, Tc as ITrustedWorkspaceProjectAccess, Ti as IModelListSelection, Tl as summarizeBackgroundJobGroup, Tn as TSkillSkipReason, To as IMemoryExtractionInput, Tr as TAppearanceSettingsPatch, Ts as ICommandMCPActivationSummary, Tt as TKnownMarketplacesRegistry, U as createSkillExecutionPort, Ua as validateProviderProfile, Uc as TWorkspaceProjectSettingsTarget, Ui as applyProviderSwitch, Ul as IEditCheckpointFileRecord, Un as recordCommandMemoryEvent, Uo as DEFAULT_GOAL_NO_PROGRESS_LIMIT, Ur as PERMISSION_MODE_LABELS, Us as ICommandWorkspaceAdapter, Ut as IInProcessSubagentRunnerDeps, V as createDefaultRemoteCommandPolicy, Va as setCurrentProvider, Vc as TWorkspaceProjectAuthorityCandidate, Vi as applyActiveModelChange, Vl as IOrgPolicy, Vn as isCommandMemoryType, Vo as createGoalStatusTool, Vr as PERMISSION_MODE_ARGUMENT_HINT, Vs as ICommandSettingsAdapter, Vt as IToolCallHandoffPolicy, W as IForkExecutionOptions, Wa as ICommandModule, Wc as TWorkspaceProjectSettingsWriteDecision, Wi as resolveProviderSettingsWriteTarget, Wl as IEditCheckpointInspection, Wn as REWIND_COMMAND_ARGUMENT_HINT, Wo as GoalController, Wr as RUNTIME_RULE_SOURCE, Ws as IHandoffProgress, Wt as TSubagentRunnerFactory, X as SystemCommandExecutor, Xa as TSystemCommandSemanticRole, Xc as IAgentJobDispatch, Xi as deleteSettings, Xl as IEditCheckpointTurnInput, Xn as listCommandEditCheckpoints, Xo as IContextReferenceAddResult, Xr as groupPermissionRulesBySource, Xs as TRemoteControlStatus, Xt as TSubagentSuffix, Y as selectCommandModules, Ya as TSystemCommandLifecycle, Yc as IPresetApplicationOptions, Yi as TSettingsScope, Yl as IEditCheckpointSummary, Yn as listCommandEditCheckpointBranches, Yo as isGoalCancelVerb, Yr as formatInvalidPermissionModeMessage, Ys as IWorkspaceMoveRequest, Yt as ISubagentPromptOptions, Z as PluginCommandSource, Za as ICommandHostAdapterAccess, Zc as IAgentJobGroups, Zi as readSettings, Zl as TEditCheckpointFileRestoreAction, Zn as restoreCommandEditCheckpoint, Zo as IContextReferenceClearResult, Zr as isPermissionMode, Zs as TSandboxCommandMode, Zt as assembleSubagentPrompt, _ as ExternalEventIngress, _a as TAutoCompactThreshold, _c as listUnreadableSessionsForWorkspace, _i as formatCommandBackgroundTask, _l as EXECUTION_ORIGIN_METADATA_KEYS, _n as TSessionFactory, _o as IMemoryRecaller, _r as PLUGIN_COMMAND_DESCRIPTION, _s as ICommandCostBudget, _t as TBundlePluginSkipReason, a as SessionRenameUnavailableError, aa as readSettingsSourceText, ac as resolveStartupAdvisorSpec, ai as LANGUAGE_COMMAND_ARGUMENT_HINT, al as IBackgroundTaskSpawnerGroupRequest, an as TReversibleRollbackLayer, ao as ICommandHostGoal, ar as RENAME_COMMAND_USAGE, as as toContextReferenceRecords, at as loadHostBundlePluginInspectionFromScopes, au as IModelEffortResolution, b as TExternalEventReceipt, ba as compactCommandContext, bc as resolveSessionIdByIdOrName, bi as parseCommandBackgroundLogCursor, bl as createExecutionOriginMetadata, bn as ISkillRootDescriptor, bo as IPerTurnRecallConfig, br as createShowPluginManagerIntent, bs as ICommandExternalEventGrant, bt as NodeHostPluginSettingsStore, c as IGenerateSessionNameOptions, ca as THostSettingsScope, cc as IInteractiveSessionStore$1, ci as TRecommendedResponseLanguage, cl as ISpawnAgentTaskRequest, cn as evaluateReversibleToolSafety, co as ICommandHostPresetApplication, cr as clearConversationHistory, cs as IPromptFileReferenceHistoryData, ct as IBundlePluginFeatures, cu as TEffortSource, d as InteractiveSession, da as checkSettingsDocument, dc as createProjectSessionStore, di as parseLanguageArgument, dl as createLineDetailPage, dn as IPromptProvider, do as ICommandHostTerminalHandoff, dr as createShowSessionPickerIntent, ds as IPromptFileReferenceToken, dt as IBundlePluginManifest, ea as IProjectSettingsPath, ec as IAdvisorSpec, ei as readCommandPermissionMode, el as IAgentJobMonitors, en as IReversibleExecutionOptions, eo as ICommandHostCatalog, er as CLEAR_COMMAND_DESCRIPTION, es as IContextReferenceUpsertResult, et as IInstalledPluginRecord, eu as DEFAULT_AGENT_TYPE, fa as probeProviderProfile, fc as createUserPromptHistoryFile, fi as BACKGROUND_COMMAND_DESCRIPTION, fl as createMainThreadDetailPage, fn as PromptExecutor, fo as ICommandHostUserInteraction, fr as formatCommandSessionReplayValidationReport, fs as IResolvedPromptFileReference, ft as IBundlePluginMcpFault, g as ExternalEventGrantHistory, ga as ICompactContextResult, gc as listUnreadableSessions, gi as closeCommandBackgroundTask, gl as createExecutionWorkspaceSnapshot, gn as IAgentSession, go as IMemoryCurationQueue, gr as PLUGIN_COMMAND_ARGUMENT_HINT, gs as EditCheckpointStore, gt as ILoadedBundlePlugin, h as TInteractiveSessionOptions, ha as DEFAULT_AUTO_COMPACT_THRESHOLD, hc as listResumableSessionSummaries, hi as cancelCommandBackgroundTask, hl as resolveExecutionAttach, hn as IAgentExecutorOptions, ho as IMemoryBudget, hr as validateCommandSessionReplayLog, hs as wrapEditCheckpointTools, ht as IBundleSkill, i as IInteractiveRuntime, ia as createWorkspaceProjectSettingsSources, ic as parseAdvisorSpec, ii as writeCommandPermissionMode, il as IBackgroundTaskRunner, in as TReversibleExecutionIsolation, io as ICommandHostContextWindow, ir as RENAME_COMMAND_DESCRIPTION, is as removeContextReference, it as createHostBundlePluginLoader, iu as IModelEffortInputs, j as buildPromptWithFileReferences, ja as ILegacyProviderSettings, jc as IWorkspaceProjectMutation, ji as readMergedProviderSettings, jl as ICommandSessionPermissions, jn as TEnvResolvedSettings, jo as IAppendMemoryResult, jr as STATUSLINE_COMMAND_DESCRIPTION, js as ICommandMCPSourceProblem, jt as retrieveAgentToolDeps, k as resolvePromptFileReferences, ka as IProviderCommandModuleOptions, kc as IWorkspaceIdentityResolver, ki as ProviderConfigError, kl as ICommandSessionIdentity, kn as ILoadContextOptions, ko as TMemoryPolicyMode, kr as DEFAULT_STATUS_LINE_COMMAND_SETTINGS, ks as ICommandMCPOAuthRedirectPrompt, kt as CommandRegistry, l as generateSessionName, la as TSettingsCheck, lc as createNodeHostSessionStore, li as buildLanguageCommandSubcommands, ll as ISpawnProcessTaskRequest, ln as wrapReversibleExecutionTools, lo as ICommandHostSessionAccess, lr as createSessionExitHostAction, ls as IPromptFileReferenceLimits, lt as IBundlePluginHookIssue, lu as parseModelEffort, m as restoreSessionRecordIntoSession, ma as AUTO_COMPACT_THRESHOLD_SETTINGS_KEY, mc as isSafeSessionId, mi as buildBackgroundCommandSubcommands, ml as TExecutionAttachOutcome, mn as AgentExecutor, mo as IDurableMemoryReader, mr as readCommandSessionInfo, ms as TPromptFileReferenceDiagnosticCode, mt as IBundlePluginSkip, na as TProjectSettingsScope, nc as ICommandAdvisorAdapter, ni as resolvePermissionModeAdapter, nl as MONITOR_SHELL_TOOL, nn as IReversibleToolSafetyInput, no as ICommandHostContext, nr as EXIT_COMMAND_DESCRIPTION, ns as createContextReferenceItem, nt as MarketplaceClient, nu as IProviderErrorGuidance, o as persistSessionRename, oa as INodeHostSettingsSource, oc as IHostToolResultSpillStore, oi as LANGUAGE_COMMAND_DESCRIPTION, ol as ICreateExecutionWorkspaceTaskSpawnerOptions, on as TReversibleSafetyStatus, oo as ICommandHostMemory, or as RESUME_COMMAND_DESCRIPTION, os as upsertContextReference, ot as loadHostBundlePluginsFromScopes, ou as TEffortDisposition, p as ISessionRecordRestoreResult, pa as testProviderProfileCommand, pc as createUserSessionStore, pi as BACKGROUND_COMMAND_USAGE, pl as IResolveExecutionAttachInput, pn as TProviderFactory, po as ICommandHostWorkspace, pr as parseSessionNameArgument, ps as IResolvedPromptFileReferences, pt as IBundlePluginMcpServer, q as executeSkill, qa as ISystemCommand, qc as TWorkspaceTrustState, qi as ISettingsDocumentStore, ql as IEditCheckpointRecorder, qn as forkCommandEditCheckpoint, qo as TGoalDecision, qr as buildPermissionModeSubcommands, qs as IPermissionRuleLayer, qt as ISubagentParentContext, r as createInteractiveRuntime, ra as TSettingsSource, rc as formatAdvisorSpec, ri as retryCommandPermissionDenial, rl as MonitorCommandRefusedError, rn as IReversibleToolSafetyReport, ro as ICommandHostContextReferences, rr as ICommandSessionInfo, rs as listActiveContextReferences, rt as IHostBundlePluginLoaderOptions, ru as EFFORT_LEVEL_LABELS, s as PeerMessageIngress, sa as createNodeHostSettingsSource, sc as IInteractiveSessionRecord$1, si as RECOMMENDED_RESPONSE_LANGUAGES, sl as IExecutionWorkspaceTaskSpawner, sn as TReversibleSideEffect, so as ICommandHostPlan, sr as VALIDATE_SESSION_COMMAND_DESCRIPTION, ss as IPromptFileReferenceDiagnostic, st as BundlePluginLoader, su as TEffortSelection, t as IInteractiveRuntimeOptions, ta as IWorkspaceProjectSettingsSource, tc as IAdvisorStatus, ti as readCommandPermissionsState, tl as IAgentJobSchedules, tn as IReversibleToolSafetyContext, to as ICommandHostCheckpoints, tr as COST_COMMAND_DESCRIPTION, ts as clearContextReferences, tt as TInstalledPluginsRegistry, tu as IAgentDefinition, u as IInteractiveSessionShutdownOptions, ua as checkNodeHostSettingsFile, uc as createNodeToolResultSpillStore, ui as formatLanguageUsageMessage, ul as createExecutionWorkspaceTaskSpawner, un as IPromptExecutorOptions, uo as ICommandHostSetupState, ur as createSessionRenameHostAction, us as IPromptFileReferenceResolveOptions, ut as IBundlePluginInspection, uu as resolveModelEffort, v as IExternalEventSource, va as addCommandContextReference, vc as resolveLatestSessionId, vi as formatCommandBackgroundTaskList, vl as createBackgroundGroupExecutionEntryId, vn as IProjectContributionPath, vo as IMemoryStore, vr as RELOAD_PLUGINS_COMMAND_DESCRIPTION, vs as ICommandCostBudgetAdapter, vt as TEnabledPlugins, w as resolveSubagentLogDir, wa as readCommandContextState, wc as IRestrictedWorkspaceProjectAccess, wi as buildProviderProfilesSnapshot, wl as IBackgroundJobOrchestratorOptions, wn as SkillCommandSource, wo as IMemoryCandidate, wr as IAppearanceSettings, ws as ICommandMCPActivationAdapter, wt as IMarketplacePluginEntry, x as TExternalEventSettlement, xa as listCommandContextReferences, xc as WorkspaceProjectSessionStore, xi as readCommandBackgroundTaskLog, xl as createMainThreadExecutionEntryId, xn as ISkillRootInspection, xo as ISemanticMemoryAdapter, xr as resolvePluginCommandAdapter, xs as ICommandExternalEventsAdapter, xt as IKnownMarketplaceEntry, y as IExternalEventSourceOptions, ya as clearCommandContextReferences, yc as resolveReusableEmptySessionId, yi as listCommandBackgroundTasks, yl as createBackgroundTaskExecutionEntryId, yn as listFrameworkProjectContributionPaths, yo as IMemoryWriter, yr as buildPluginCommandSubcommands, ys as ICommandEffortAdapter, yt as IPluginSettings, z as IPromptHistoryOptions, za as deleteProviderProfile, zc as TWorkspaceContributionKind, zi as IActiveModelChangeResult, zl as TAutoCompactThresholdSource, zn as createCommandMemoryStores, zo as buildGoalStartPrompt, zr as IPermissionsCommandState, zs as ICommandSandboxAdapter, zt as ICreateSessionOptions } from "./createInteractiveRuntime-3MZpPTdw.js";
2
2
  import { IAIProvider, IActionRequest, IChatOptions, IDestroyResult, IEventService, IFileSystem, IFileSystemAsync, IGroupChatOrchestrationSpec, IHandoffOrchestrationSpec, IHierarchicalOrchestrationSpec, IHistoryEntry, IModelFallbackNotice, IModelRef, IOrchestrationDelegation, IOrchestrationRunResult, IOrchestrationStepResult, IParallelOrchestrationSpec, IProviderDefinition, IProviderDefinitionConfig, IProviderRequest, IRawProviderResponse, ISequentialOrchestrationSpec, ITerminalOutput as ITerminalOutput$2, IToolSchema, IToolWithEventService, IUserInteraction, TActionResponse, TPermissionMode, TRoleModelMap, TToolArgs, TUniversalMessage, TUniversalValue } from "@robota-sdk/agent-core";
3
- import { IAgentDriver, ICommandInfo, IExecutionResult, IInteractionChannel, IInteractiveSession, IInteractiveSessionStore, IPlanArtifact, ISessionCommands, ISessionEvents, ISessionGoal, ISessionIdentity, ISessionTurnSubmission, InteractionEvent, TPlanStepStatus } from "@robota-sdk/agent-interface-session";
3
+ import { IAgentDriver, ICommandInfo, IDiffLine, IExecutionResult, IInteractionChannel, IInteractiveSession, IInteractiveSessionEvents, IInteractiveSessionStore, IPlanArtifact, ISessionChangeRefusal, ISessionCommands, ISessionDeleteRefusal, ISessionEvents, ISessionGoal, ISessionIdentity, ISessionLoopState, ISessionTurnSubmission, ITerminalHandoff, InteractionEvent, TInteractiveEventName, TPlanStepStatus, TSessionBindingRole, TSessionChangeRefusalCode, TSessionDeleteRefusalCode } from "@robota-sdk/agent-interface-session";
4
4
  import { IBackgroundTaskManager, IBackgroundTaskRunner as IBackgroundTaskRunner$1, ISubagentManager } from "@robota-sdk/agent-executor";
5
- import { createZodFunctionTool } from "@robota-sdk/agent-tools";
5
+ import { ISandboxClient, createZodFunctionTool } from "@robota-sdk/agent-tools";
6
6
  import { Session } from "@robota-sdk/agent-session";
7
7
  import { ITransportCompletionRecord, ITransportEntry, ITransportFailureRecord, ITransportLifecycleRegistryView, ITransportRegistryView, ITransportRunnerAdapter, ITransportSavedConfig, ITransportSettingsCapability, ITransportSettingsRepository, TBoundConfigurableTransport, TBoundTransportAdapter, TTransportAdapter } from "@robota-sdk/agent-interface-transport";
8
+ import { ICommandResult } from "@robota-sdk/agent-interface-command";
8
9
  import { TBackgroundPrimitive } from "@robota-sdk/agent-interface-execution";
9
10
  //#region src/transport-host/headless/headless-output-format.d.ts
10
11
  /**
@@ -104,6 +105,14 @@ declare function assertWorkspaceProjectMutation(candidate: TWorkspaceProjectAuth
104
105
  /** Internal same-grant check for adapters that combine reads/state with project mutation. */
105
106
  declare function assertWorkspaceProjectMutationForAuthority(mutation: IWorkspaceProjectMutation, authority: IWorkspaceProjectAuthority): IWorkspaceProjectMutation;
106
107
  //#endregion
108
+ //#region src/workspace-trust/project-relative-writer.d.ts
109
+ /**
110
+ * Whether a project write on `platform` can be proven to stay under the trusted root. The proof
111
+ * walks descriptor-relative paths through `/proc/self/fd`, which only Linux provides; elsewhere every
112
+ * project mutation is refused, so a host keeps state it must write somewhere other than the project.
113
+ */
114
+ declare function supportsWorkspaceProjectMutation(platform?: NodeJS.Platform): boolean;
115
+ //#endregion
107
116
  //#region src/workspace-trust/project-reader.d.ts
108
117
  declare function assertWorkspaceProjectReader(candidate: TWorkspaceProjectAuthorityCandidate): IWorkspaceProjectReader;
109
118
  //#endregion
@@ -123,7 +132,7 @@ declare function inspectPreTrustProjectPaths(identity: IWorkspaceIdentity, relat
123
132
  //#region src/workspace-trust/workspace-authority-required-error.d.ts
124
133
  /** Fail-closed response for project APIs without an accepted runtime authority. */
125
134
  declare class WorkspaceAuthorityRequiredError extends Error {
126
- readonly name = "WorkspaceAuthorityRequiredError";
135
+ readonly name: string;
127
136
  readonly code = "WORKSPACE_AUTHORITY_REQUIRED";
128
137
  constructor(message?: string, cause?: Error);
129
138
  }
@@ -157,6 +166,19 @@ declare function createNodeWorkspaceTrustStore(filePath: string): IWorkspaceTrus
157
166
  /** Compose the default Node resolver, caller-selected persistent store, and authority service. */
158
167
  declare function createNodeWorkspaceTrustService(filePath: string, projectStateDirectories?: TWorkspaceProjectStateDirectories): WorkspaceTrustService;
159
168
  //#endregion
169
+ //#region src/checkpoints/edit-checkpoints-unavailable-error.d.ts
170
+ /**
171
+ * Why a session has no edit checkpoints. A host that names its own commands (a trust command, say)
172
+ * maps the reason to that guidance; the messages below name none.
173
+ */
174
+ type TEditCheckpointsUnavailableReason = 'host-cannot-write-project' | 'restricted-workspace' | 'no-checkpoint-store';
175
+ /** Thrown by a checkpoint operation on a session that has no checkpoint store. */
176
+ declare class EditCheckpointsUnavailableError extends WorkspaceAuthorityRequiredError {
177
+ readonly reason: TEditCheckpointsUnavailableReason;
178
+ readonly name: string;
179
+ constructor(reason: TEditCheckpointsUnavailableReason);
180
+ }
181
+ //#endregion
160
182
  //#region src/command-api/provider/provider-profile-names.d.ts
161
183
  interface IProviderProfileNameSuggestionInput {
162
184
  type: string;
@@ -265,6 +287,8 @@ interface IHeadlessInteractionChannelOptions {
265
287
  */
266
288
  additionalTools?: IToolWithEventService[];
267
289
  defaultTools?: readonly IToolWithEventService[];
290
+ /** The sandbox the shell tools run under, so the session can let a confined command skip the prompt. */
291
+ sandboxClient?: ISandboxClient;
268
292
  commandModules?: readonly ICommandModule[];
269
293
  commandHostAdapters?: ICommandHostAdapters;
270
294
  /** Host-owned shell adapter used only when a skill explicitly requests shell interpolation. */
@@ -278,6 +302,8 @@ interface IHeadlessInteractionChannelOptions {
278
302
  automaticMemory?: IAutomaticMemoryConfig;
279
303
  /** SELFHOST-008 P6: optional per-turn recall policy (absent ⇒ recall OFF, startup-only injection). */
280
304
  recallMemory?: IPerTurnRecallConfig;
305
+ /** The run's edit checkpoint store, so a print run's edits can be rewound when it is resumed. */
306
+ editCheckpointStore?: EditCheckpointStore;
281
307
  }
282
308
  declare class HeadlessInteractionChannel {
283
309
  private readonly opts;
@@ -438,6 +464,17 @@ declare function createMemoryTransportSettingsRepository(initial?: Record<string
438
464
  */
439
465
  declare function deriveContextCapacityHint(contextReductionCommandName: string | undefined): string | undefined;
440
466
  //#endregion
467
+ //#region src/interactive/session-loop-stop-verb.d.ts
468
+ /**
469
+ * #3288: whether a `/loop` invocation's arguments are the `stop <id>` verb.
470
+ *
471
+ * `InteractiveSession.executeCommand`'s mid-turn control-action bypass (so `/loop stop <id>` can
472
+ * reach a loop while its own turn is still running, mirroring `isGoalCancelVerb`) and the `/loop`
473
+ * command module's own routing both need the identical answer — one parses it, the other imports
474
+ * it, so the two can never drift apart.
475
+ */
476
+ declare function isLoopStopVerb(args: string): boolean;
477
+ //#endregion
441
478
  //#region src/interactive/interactive-session-fork-record.d.ts
442
479
  /**
443
480
  * A moved conversation's copy under a name no other record in `sessionStore` holds (issue #3081).
@@ -447,6 +484,26 @@ declare function deriveContextCapacityHint(contextReductionCommandName: string |
447
484
  */
448
485
  declare function withUniqueSessionName(record: IInteractiveSessionRecord$1, sessionStore: IInteractiveSessionStore$1): IInteractiveSessionRecord$1;
449
486
  //#endregion
487
+ //#region src/interactive/interactive-session-terminal-handoff.d.ts
488
+ declare class SessionTerminalHandoffGate {
489
+ private readonly handoff;
490
+ /** Guards handoff exclusivity (one handoff at a time). */
491
+ private active;
492
+ constructor(handoff: ITerminalHandoff | undefined);
493
+ /**
494
+ * Whether the active transport can hand the real terminal to a child process. False when no
495
+ * handoff capability was injected or its `canHandoffTerminal` is false (e.g. headless).
496
+ */
497
+ canHandoffTerminal(): boolean;
498
+ /**
499
+ * Suspend the display, run `fn` (which spawns a child with inherited stdio), then restore. The
500
+ * framework enforces exclusivity and fast-fails when no interactive terminal is available instead
501
+ * of hanging; the transport implements the underlying suspend/resume; the caller's `fn` spawns
502
+ * whatever child it wants — the framework stays platform-neutral and never spawns a shell.
503
+ */
504
+ runWithTerminal<T>(fn: () => Promise<T>): Promise<T>;
505
+ }
506
+ //#endregion
450
507
  //#region src/plan/plan-controller.d.ts
451
508
  /** An approval decision: flip to `acceptEdits`. */
452
509
  type TPlanApproveDecision = {
@@ -520,8 +577,20 @@ interface ICreateQueryOptions {
520
577
  * denied (issue #3081). Pass `'bypassPermissions'` explicitly for unattended driving.
521
578
  */
522
579
  permissionMode?: TPermissionMode;
580
+ /**
581
+ * Model to request. Without it the query uses the model from `userSettingsSources`, or Anthropic's
582
+ * default when none is set — so pass it with any other provider.
583
+ */
584
+ model?: string;
523
585
  /** Maximum agentic turns per query. */
524
586
  maxTurns?: number;
587
+ /**
588
+ * Tools that run without asking (e.g. your own `additionalTools`). A call that every mode asks
589
+ * about still asks.
590
+ */
591
+ allowedTools?: readonly string[];
592
+ /** Tools the model is never offered. Denied wins over allowed. */
593
+ deniedTools?: readonly string[];
525
594
  /** Permission handler callback. */
526
595
  permissionHandler?: TInteractivePermissionHandler;
527
596
  /** Streaming text callback. */
@@ -533,9 +602,14 @@ interface ICreateQueryOptions {
533
602
  type: 'text' | 'json_object';
534
603
  };
535
604
  }
536
- /** Callable query surface plus its immutable initial project-access decision. */
605
+ /**
606
+ * Callable query surface plus its immutable initial project-access decision. Calls share one session
607
+ * and run one at a time, each answered by its own turn.
608
+ */
537
609
  type TQueryFunction = ((prompt: string) => Promise<string>) & {
538
610
  readonly projectAccess: TWorkspaceProjectAccess;
611
+ /** Shut the query's session down; the running call and every later one reject. */
612
+ shutdown(): Promise<void>;
539
613
  };
540
614
  /**
541
615
  * Create a prompt-only query function bound to a provider.
@@ -1088,7 +1162,7 @@ declare const BUILT_IN_AGENTS: IAgentDefinition[];
1088
1162
  type TModelCommandDescriptor$1 = Pick<ICapabilityDescriptor, 'name' | 'description' | 'argumentHint'>;
1089
1163
  interface ICommandExecutionToolDeps {
1090
1164
  isModelInvocable: (command: string) => boolean;
1091
- execute: (command: string, args: string) => Promise<ICommandResult | null>;
1165
+ execute: (command: string, args: string) => Promise<ICommandResult$1 | null>;
1092
1166
  commandNames?: readonly string[];
1093
1167
  commandDescriptors?: readonly TModelCommandDescriptor$1[];
1094
1168
  }
@@ -1113,7 +1187,7 @@ interface IModelCommandToolProjection {
1113
1187
  }
1114
1188
  interface IProjectedCommandExecutionToolsDeps {
1115
1189
  isModelInvocable: (command: string) => boolean;
1116
- execute: (command: string, args: string) => Promise<ICommandResult | null>;
1190
+ execute: (command: string, args: string) => Promise<ICommandResult$1 | null>;
1117
1191
  commandDescriptors: readonly TModelCommandDescriptor[];
1118
1192
  toolNamePrefix?: string;
1119
1193
  }
@@ -1411,7 +1485,13 @@ declare function inspectSettingsLayers(sources: readonly TSettingsSource[]): ISe
1411
1485
  //#endregion
1412
1486
  //#region src/config/permission-rule-layers.d.ts
1413
1487
  declare function readPermissionRuleLayers(sources: readonly TSettingsSource[]): IPermissionRuleLayer[];
1414
- declare function createSettingsPermissionRulesAdapter(sources: readonly TSettingsSource[]): ICommandPermissionRulesAdapter;
1488
+ /**
1489
+ * #3282 §4a: remove one declared pattern from whichever writable `stores` entry matches the
1490
+ * removal's `scope` — the same settings document `/permissions` would read the rule from. Returns
1491
+ * `false` (writes nothing) when no store matches the scope, or the pattern is not actually present.
1492
+ */
1493
+ declare function removePermissionRule(stores: readonly ISettingsDocumentStore[], removal: IPermissionRuleRemoval): boolean;
1494
+ declare function createSettingsPermissionRulesAdapter(sources: readonly TSettingsSource[], stores?: readonly ISettingsDocumentStore[]): ICommandPermissionRulesAdapter;
1415
1495
  //#endregion
1416
1496
  //#region src/config/settings-parse-error.d.ts
1417
1497
  /**
@@ -1448,6 +1528,196 @@ declare function resetUserConfig(path: string): IResetUserConfigResult;
1448
1528
  /** Explicit host-filesystem Git metadata adapter. This does not establish project trust. */
1449
1529
  declare function resolveGitBranchFromNodeHost(cwd: string): string | undefined;
1450
1530
  //#endregion
1531
+ //#region src/git/git-process.d.ts
1532
+ declare const GIT_DEFAULT_TIMEOUT_MS = 120000;
1533
+ declare const GIT_MAX_OUTPUT_BYTES: number;
1534
+ /**
1535
+ * Variables that redirect a git child to ANOTHER repository. Git exports them into hooks, so a
1536
+ * `/git` run started from inside a hook (or from any process that inherited one) would otherwise
1537
+ * operate on the wrong tree. Identity and configuration variables are deliberately NOT here — the
1538
+ * user's `GIT_CONFIG_GLOBAL`, `GIT_AUTHOR_*`, `GPG_TTY`, `SSH_AUTH_SOCK` … are what make the commit
1539
+ * theirs.
1540
+ */
1541
+ declare const GIT_ENV_DENYLIST: readonly string[];
1542
+ interface IGitProcessRunOptions {
1543
+ cwd: string;
1544
+ timeoutMs?: number;
1545
+ signal?: AbortSignal;
1546
+ }
1547
+ /**
1548
+ * `not-found` covers every spawn failure — ENOENT, EACCES, ENOTDIR, … — with the code in `detail`;
1549
+ * the other three are the run's own bounds.
1550
+ */
1551
+ type TGitProcessFailureReason = 'not-found' | 'timeout' | 'aborted' | 'output-too-large';
1552
+ type TGitProcessOutcome = {
1553
+ kind: 'exited';
1554
+ stdout: string;
1555
+ stderr: string;
1556
+ exitCode: number;
1557
+ } | {
1558
+ kind: 'failed';
1559
+ reason: TGitProcessFailureReason;
1560
+ detail: string;
1561
+ };
1562
+ interface IGitProcessPort {
1563
+ run(args: readonly string[], options: IGitProcessRunOptions): Promise<TGitProcessOutcome>;
1564
+ }
1565
+ interface ICreateGitProcessOptions {
1566
+ /** The executable to run; `git` on PATH by default. */
1567
+ executable?: string;
1568
+ /** The environment to derive the child's from; the live process environment by default. */
1569
+ env?: NodeJS.ProcessEnv;
1570
+ }
1571
+ /**
1572
+ * The child's environment: `source` minus the repository-redirecting variables, with the locale
1573
+ * forced to `C`. `isNotAGitRepositoryFailure` (and every other place this module's callers pattern-
1574
+ * match git's stderr text) depends on that text being English; git translates it under the host's
1575
+ * own `LANG`/`LC_ALL` otherwise, which would silently break that match on a non-English host (#3282
1576
+ * §4c review).
1577
+ */
1578
+ declare function gitEnvironment(source?: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
1579
+ /** The production port: argv-only `execFile`, stdin closed, output capped, timeout bounded. */
1580
+ declare function createGitProcess(options?: ICreateGitProcessOptions): IGitProcessPort;
1581
+ /**
1582
+ * The reason a run did not produce a usable answer, for the verbs where a non-zero exit IS a failure.
1583
+ * `undefined` when the child exited 0.
1584
+ */
1585
+ declare function gitFailureMessage(verb: string, outcome: TGitProcessOutcome): string | undefined;
1586
+ //#endregion
1587
+ //#region src/git/git-status.d.ts
1588
+ declare const GIT_STATUS_ARGS: readonly string[];
1589
+ interface IGitStatusSummary {
1590
+ /** `branch.head`; `(detached)` when detached; `undefined` when git printed no branch header. */
1591
+ branch: string | undefined;
1592
+ /** `branch.oid` is `(initial)` on an unborn branch. */
1593
+ unborn: boolean;
1594
+ staged: readonly string[];
1595
+ unstaged: readonly string[];
1596
+ untracked: readonly string[];
1597
+ conflicted: readonly string[];
1598
+ }
1599
+ /** One porcelain-v2 record, kept close to the wire so a consumer can classify it its own way (the
1600
+ * `/git status` text summary below, and the Project panel's plain-word-per-file view). */
1601
+ type TRawGitStatusRecordKind = 'ordinary' | 'renamed' | 'unmerged' | 'untracked';
1602
+ interface IRawGitStatusRecord {
1603
+ kind: TRawGitStatusRecordKind;
1604
+ /** The X (index) and Y (worktree) status letters; `'??'` for an untracked record (git gives none). */
1605
+ xy: string;
1606
+ /** The current path — the post-rename name for a `renamed` record. */
1607
+ path: string;
1608
+ /** Only on a `renamed` record — the record's own SECOND NUL-terminated field. */
1609
+ origPath?: string;
1610
+ }
1611
+ interface IParsedGitStatus {
1612
+ branch: string | undefined;
1613
+ unborn: boolean;
1614
+ records: readonly IRawGitStatusRecord[];
1615
+ }
1616
+ /** The porcelain-v2 stdout, parsed into the branch header and every path record — the shared step
1617
+ * both `parseStatusPorcelainV2` (the `/git status` text summary) and the Project panel's per-file
1618
+ * status reader build on, so the two never classify a record differently. */
1619
+ declare function parseStatusRecords(stdout: string): IParsedGitStatus;
1620
+ declare function parseStatusPorcelainV2(stdout: string): IGitStatusSummary;
1621
+ declare function formatGitStatus(summary: IGitStatusSummary): string;
1622
+ declare function executeGitStatus(port: IGitProcessPort, cwd: string): Promise<ICommandResult>;
1623
+ //#endregion
1624
+ //#region src/git/git-diff.d.ts
1625
+ declare const GIT_DIFF_USAGE = "Usage: /git diff [--staged | <rev> | <a>..<b>] [-- <path> ...] — other git flags are not accepted here.";
1626
+ type TGitDiffTarget = {
1627
+ kind: 'worktree';
1628
+ } | {
1629
+ kind: 'staged';
1630
+ } | {
1631
+ kind: 'revision';
1632
+ revision: string;
1633
+ } | {
1634
+ kind: 'range';
1635
+ from: string;
1636
+ to: string;
1637
+ };
1638
+ interface IGitDiffArgs {
1639
+ target: TGitDiffTarget;
1640
+ paths: readonly string[];
1641
+ }
1642
+ type TParseGitDiffArgs = {
1643
+ ok: true;
1644
+ args: IGitDiffArgs;
1645
+ } | {
1646
+ ok: false;
1647
+ message: string;
1648
+ };
1649
+ declare function parseGitDiffArgs(tokens: readonly string[]): TParseGitDiffArgs;
1650
+ /** The `diff` argv for a parsed target, `--end-of-options` before revisions and `--` before paths. */
1651
+ declare function gitDiffArgv(args: IGitDiffArgs): readonly string[];
1652
+ declare function executeGitDiff(port: IGitProcessPort, cwd: string, args: string): Promise<ICommandResult>;
1653
+ //#endregion
1654
+ //#region src/git/project-status-read.d.ts
1655
+ /** Never a raw XY code — the #3277 "usable by anyone" principle applies to this panel too. */
1656
+ type TProjectFileStatus = 'Added' | 'Modified' | 'Deleted' | 'Renamed' | 'Copied' | 'Untracked' | 'Conflicted';
1657
+ interface IProjectGitStatusFile {
1658
+ path: string;
1659
+ status: TProjectFileStatus;
1660
+ /** For a rename/copy, the record's own prior path. */
1661
+ renamedFrom?: string;
1662
+ /** Lines added/removed since HEAD (or the empty tree on an unborn branch). Absent for Untracked and
1663
+ * Conflicted — no single baseline to diff against — and for a binary file (git counts it as `-`). */
1664
+ added?: number;
1665
+ removed?: number;
1666
+ }
1667
+ type TProjectGitStatusResult = {
1668
+ ok: true;
1669
+ repository: true;
1670
+ branch: string | undefined;
1671
+ unborn: boolean;
1672
+ files: readonly IProjectGitStatusFile[];
1673
+ /** True when `files` stopped at {@link MAX_STATUS_FILES} — there were more. */
1674
+ truncated: boolean;
1675
+ } | {
1676
+ ok: true;
1677
+ repository: false;
1678
+ } | {
1679
+ ok: false;
1680
+ message: string;
1681
+ };
1682
+ /** Bounds the panel's file list — #3282 §4c "bound every output: file count, diff lines and bytes". */
1683
+ declare const MAX_STATUS_FILES = 200;
1684
+ /** Whether a failed git run means "this folder is not a git repository" (vs. a real git failure). */
1685
+ declare function isNotAGitRepositoryFailure(stderr: string): boolean;
1686
+ /** The Project panel's git status: `/git status`'s own record parser, turned into the panel's shape. */
1687
+ declare function readProjectGitStatus(port: IGitProcessPort, cwd: string): Promise<TProjectGitStatusResult>;
1688
+ //#endregion
1689
+ //#region src/git/project-diff-read.d.ts
1690
+ type TProjectGitDiffResult = {
1691
+ ok: true;
1692
+ diffLines: readonly IDiffLine[];
1693
+ truncated: boolean;
1694
+ } | {
1695
+ ok: false;
1696
+ code: 'not_a_repository';
1697
+ message: string;
1698
+ } | {
1699
+ ok: false;
1700
+ code: 'outside_workspace';
1701
+ message: string;
1702
+ } | {
1703
+ ok: false;
1704
+ code: 'git_failed';
1705
+ message: string;
1706
+ };
1707
+ /** Matches `MAX_WRITE_DIFF_LINES` in `interactive-session-streaming.ts` — the ONE diff-line cap a
1708
+ * surface already renders correctly (DiffLines has no fold of its own; a builder caps its output). */
1709
+ declare const MAX_PROJECT_DIFF_LINES = 500;
1710
+ /** Parses `git diff`'s unified-diff body into `IDiffLine[]`. A binary file's one-line notice becomes
1711
+ * a single `hunk` line; anything before the first `@@` hunk header (the `diff --git`/`index`/`---`/
1712
+ * `+++` preamble) is not itself a line of the change and is skipped. */
1713
+ declare function parseUnifiedDiffLines(diffText: string): IDiffLine[];
1714
+ /**
1715
+ * The Project panel's one-file diff. `requestedPath` is workspace-relative, exactly as
1716
+ * {@link readProjectGitStatus} reported it — resolved against `cwd` and checked with `isPathInside`
1717
+ * before anything else runs.
1718
+ */
1719
+ declare function readProjectGitDiff(port: IGitProcessPort, cwd: string, requestedPath: string, fs?: IFileSystemAsync): Promise<TProjectGitDiffResult>;
1720
+ //#endregion
1451
1721
  //#region src/utils/semver-compare.d.ts
1452
1722
  declare function compareSemverVersions(left: string, right: string): number;
1453
1723
  declare function isNewerSemverVersion(candidate: string, current: string): boolean;
@@ -1467,6 +1737,204 @@ interface IStatelessRuntimeConfig {
1467
1737
  }
1468
1738
  declare function createStatelessRuntime(config: IStatelessRuntimeConfig): IAgentRuntime;
1469
1739
  //#endregion
1740
+ //#region src/runtime/session-slot.d.ts
1741
+ interface ISessionSlotOptions {
1742
+ /** Bound on shutting the replaced session down; defaults to {@link RUNTIME_SHUTDOWN_TIMEOUT_MS}. */
1743
+ shutdownTimeoutMs?: number;
1744
+ }
1745
+ /**
1746
+ * A stable {@link IInteractiveSession} that forwards every member to the current session. `moveTo`
1747
+ * makes another session current and leaves the previous one running, for a host that keeps several
1748
+ * sessions live; `replace` does the same and shuts the previous one down. Either way listeners move
1749
+ * to the next session and only this slot's listeners receive `session_switched`.
1750
+ */
1751
+ declare class SessionSlot<TSession extends IInteractiveSession = InteractiveSession> implements IInteractiveSession {
1752
+ private currentSession;
1753
+ private readonly listeners;
1754
+ private readonly shutdownTimeoutMs;
1755
+ constructor(initial: TSession, options?: ISessionSlotOptions);
1756
+ /** The session every call reaches now. Read it at call time; it changes on `moveTo` and `replace`. */
1757
+ get current(): TSession;
1758
+ /**
1759
+ * Make `next` the current session and leave the previous one running: another slot, or nobody,
1760
+ * may still be on it. Listeners registered on this slot move to `next`, then this slot's listeners
1761
+ * — and no one else's — receive `session_switched`.
1762
+ */
1763
+ moveTo(next: TSession): void;
1764
+ /**
1765
+ * Make `next` the current session and shut the previous one down. Listeners registered on the slot
1766
+ * move to it before the old session shuts down (bounded), so no event of the new session is
1767
+ * missed; `session_switched` follows once the old one is gone.
1768
+ */
1769
+ replace(next: TSession, message?: string): Promise<void>;
1770
+ /** Move the listeners onto `next` and make it current; `undefined` when it already is. */
1771
+ private swap;
1772
+ private emitSwitched;
1773
+ on<E extends TInteractiveEventName>(event: E, handler: IInteractiveSessionEvents[E]): void;
1774
+ off<E extends TInteractiveEventName>(event: E, handler: IInteractiveSessionEvents[E]): void;
1775
+ get isInitialized(): boolean;
1776
+ shutdown: IInteractiveSession['shutdown'];
1777
+ submit: IInteractiveSession['submit'];
1778
+ abort: IInteractiveSession['abort'];
1779
+ cancelQueue: IInteractiveSession['cancelQueue'];
1780
+ setGoal: IInteractiveSession['setGoal'];
1781
+ getGoalState: IInteractiveSession['getGoalState'];
1782
+ cancelGoal: IInteractiveSession['cancelGoal'];
1783
+ isExecuting: IInteractiveSession['isExecuting'];
1784
+ getPendingPrompt: IInteractiveSession['getPendingPrompt'];
1785
+ getPendingCount: IInteractiveSession['getPendingCount'];
1786
+ getActiveDriverId: IInteractiveSession['getActiveDriverId'];
1787
+ getMessages: IInteractiveSession['getMessages'];
1788
+ getFullHistory: IInteractiveSession['getFullHistory'];
1789
+ getMessagesDisplay: IInteractiveSession['getMessagesDisplay'];
1790
+ getContextState: IInteractiveSession['getContextState'];
1791
+ getSession: IInteractiveSession['getSession'];
1792
+ getCwd: IInteractiveSession['getCwd'];
1793
+ executeCommand: IInteractiveSession['executeCommand'];
1794
+ listCommands: IInteractiveSession['listCommands'];
1795
+ listSkills: IInteractiveSession['listSkills'];
1796
+ getStatusSnapshot: IInteractiveSession['getStatusSnapshot'];
1797
+ listModels: IInteractiveSession['listModels'];
1798
+ listRuntimeTools: IInteractiveSession['listRuntimeTools'];
1799
+ invokeRuntimeTool: IInteractiveSession['invokeRuntimeTool'];
1800
+ resolvePermission: IInteractiveSession['resolvePermission'];
1801
+ resolveAsk: IInteractiveSession['resolveAsk'];
1802
+ listBackgroundTasks: IInteractiveSession['listBackgroundTasks'];
1803
+ getBackgroundTask: IInteractiveSession['getBackgroundTask'];
1804
+ cancelBackgroundTask: IInteractiveSession['cancelBackgroundTask'];
1805
+ closeBackgroundTask: IInteractiveSession['closeBackgroundTask'];
1806
+ sendBackgroundTask: IInteractiveSession['sendBackgroundTask'];
1807
+ readBackgroundTaskLog: IInteractiveSession['readBackgroundTaskLog'];
1808
+ listBackgroundJobGroups: IInteractiveSession['listBackgroundJobGroups'];
1809
+ getBackgroundJobGroup: IInteractiveSession['getBackgroundJobGroup'];
1810
+ createBackgroundJobGroup: IInteractiveSession['createBackgroundJobGroup'];
1811
+ waitBackgroundJobGroup: IInteractiveSession['waitBackgroundJobGroup'];
1812
+ getExecutionWorkspaceSnapshot: IInteractiveSession['getExecutionWorkspaceSnapshot'];
1813
+ readExecutionWorkspaceDetail: IInteractiveSession['readExecutionWorkspaceDetail'];
1814
+ stopWaitingSelfPacedLoop: IInteractiveSession['stopWaitingSelfPacedLoop'];
1815
+ listAgentDefinitions: IInteractiveSession['listAgentDefinitions'];
1816
+ getDefaultAgentType: IInteractiveSession['getDefaultAgentType'];
1817
+ setDefaultAgentType: IInteractiveSession['setDefaultAgentType'];
1818
+ listAgentJobs: IInteractiveSession['listAgentJobs'];
1819
+ spawnAgentJob: IInteractiveSession['spawnAgentJob'];
1820
+ sendAgentJob: IInteractiveSession['sendAgentJob'];
1821
+ cancelAgentJob: IInteractiveSession['cancelAgentJob'];
1822
+ closeAgentJob: IInteractiveSession['closeAgentJob'];
1823
+ }
1824
+ //#endregion
1825
+ //#region src/runtime/session-pool.d.ts
1826
+ /** The primary included. */
1827
+ declare const SESSION_POOL_MAX_LIVE = 4;
1828
+ /** How long a session nobody is bound to stays live once idle. */
1829
+ declare const SESSION_POOL_IDLE_GRACE_MS = 300000;
1830
+ /** A binding's role, as the session contracts define it. */
1831
+ type TSessionPoolRole = TSessionBindingRole;
1832
+ /** The members of a session the default busy rule reads; the last two are InteractiveSession's own. */
1833
+ type TPoolBusySession = Pick<IInteractiveSession, 'isExecuting' | 'getPendingPrompt' | 'getPendingCount' | 'listBackgroundTasks'> & {
1834
+ /** `needs-input` while a permission or ask prompt waits for an answer. */
1835
+ getLocalActivityStatus?(): 'working' | 'needs-input' | 'idle' | undefined;
1836
+ listSelfPacedLoops?(): readonly ISessionLoopState[];
1837
+ };
1838
+ /**
1839
+ * Whether closing this session now would lose work: a running turn, a prompt waiting for an answer,
1840
+ * queued messages, a live background task, or a self-paced loop that has not ended.
1841
+ */
1842
+ declare function isSessionBusy(session: TPoolBusySession, nowMs?: number): boolean;
1843
+ interface ISessionPoolOptions<TSession> {
1844
+ /** The session the host started with. Every binding starts on it; only `shutdownAll` closes it. */
1845
+ primary: TSession;
1846
+ /** Build a session, resuming `resumeSessionId` when given, or a fresh one. */
1847
+ build(resumeSessionId?: string): TSession;
1848
+ /** Live sessions at most, the primary and sessions still starting included. */
1849
+ maxLive?: number;
1850
+ /** How long a session nobody is bound to stays live once idle. */
1851
+ idleGraceMs?: number;
1852
+ /** Whether closing `session` now would lose work; defaults to {@link isSessionBusy}. */
1853
+ isBusy?(session: TSession): boolean;
1854
+ /** Shut `session` down, bounded; defaults to {@link shutdownSessionBounded}. */
1855
+ shutdown?(session: TSession, message: string): Promise<void>;
1856
+ }
1857
+ /**
1858
+ * A session held for one client between `acquire` and the binding's `moveTo`: while held it is not
1859
+ * closed. Hand it to `moveTo`, or `cancel` it when the client does not move after all.
1860
+ */
1861
+ interface ISessionLease<TSession> {
1862
+ readonly session: TSession;
1863
+ cancel(): void;
1864
+ }
1865
+ /** One client's place in the pool. */
1866
+ interface ISessionPoolBinding<TSession extends IInteractiveSession> {
1867
+ readonly role: TSessionPoolRole;
1868
+ /** The client's session; it follows this binding's moves and no one else's. */
1869
+ readonly slot: SessionSlot<TSession>;
1870
+ /** Move this binding onto the leased session. Its slot's listeners hear `session_switched`. */
1871
+ moveTo(lease: ISessionLease<TSession>): void;
1872
+ /** This binding drives, and no other driver is on its session. */
1873
+ isLastDriver(): boolean;
1874
+ /** The client has gone. Idempotent. */
1875
+ release(): void;
1876
+ }
1877
+ /** A live session and who is on it. */
1878
+ interface ISessionPoolEntry<TSession> {
1879
+ readonly sessionId: string;
1880
+ readonly session: TSession;
1881
+ /** Bindings on it, drivers and observers. */
1882
+ readonly clients: number;
1883
+ readonly drivers: number;
1884
+ }
1885
+ declare class SessionPool<TSession extends IInteractiveSession> {
1886
+ private readonly options;
1887
+ private readonly entries;
1888
+ private readonly primaryEntry;
1889
+ /** Builds in flight, by the session id asked for (a fresh build under a key of its own). */
1890
+ private readonly building;
1891
+ /** Shutdowns in flight, by session id; an acquire of that id waits for it. */
1892
+ private readonly closing;
1893
+ private readonly leases;
1894
+ private readonly maxLive;
1895
+ private readonly idleGraceMs;
1896
+ private readonly isBusy;
1897
+ private readonly shutdownSession;
1898
+ private clock;
1899
+ private freshBuilds;
1900
+ private drained;
1901
+ constructor(options: ISessionPoolOptions<TSession>);
1902
+ /** A binding for one client, on the primary session. */
1903
+ bind(role: TSessionPoolRole): ISessionPoolBinding<TSession>;
1904
+ /**
1905
+ * Hold session `sessionId` for a client, or a fresh session when no id is given. A live instance
1906
+ * is reused, a build already under way for that id is shared, and an instance still closing is
1907
+ * waited for. Refused with `limit` when the pool is full and no session can be closed, with
1908
+ * `start_failed` when the session cannot start, and with `stopping` once the pool is shut down.
1909
+ */
1910
+ acquire(sessionId?: string): Promise<ISessionLease<TSession>>;
1911
+ /** The live sessions that have named themselves, and who is on each. */
1912
+ listLive(): ISessionPoolEntry<TSession>[];
1913
+ /** Shut every session down in parallel, each bounded, the primary included. Idempotent. */
1914
+ shutdownAll(message?: string): Promise<void>;
1915
+ private assertOpen;
1916
+ private register;
1917
+ private entryId;
1918
+ /** The primary must be matched by its id, never built twice, so an acquire waits for its name. */
1919
+ private namePrimary;
1920
+ private findLive;
1921
+ private lease;
1922
+ private join;
1923
+ private leave;
1924
+ private touch;
1925
+ /** Start the idle grace of a session nobody is on or about to be on. */
1926
+ private settle;
1927
+ private clearGrace;
1928
+ private busy;
1929
+ /** Close the oldest idle session nobody is on when the pool is full; refuse when none can go. */
1930
+ private makeRoom;
1931
+ private close;
1932
+ private trackClosing;
1933
+ private shutdownQuietly;
1934
+ private startBuild;
1935
+ private finishBuild;
1936
+ }
1937
+ //#endregion
1470
1938
  //#region src/runtime/runtime-host.d.ts
1471
1939
  /** Normalized, explicitly discriminated input for every `InteractiveSession` construction path. */
1472
1940
  type SessionRecipe = TInteractiveSessionOptions;
@@ -1477,13 +1945,30 @@ interface IRuntimeHostOptions {
1477
1945
  session: SessionRecipe;
1478
1946
  /** The transport registry (e.g. the loopback WS sidecar); the host owns its start/stop lifecycle. */
1479
1947
  transportRegistry?: ITransportLifecycleRegistryView;
1480
- /** Bind each raw adapter to this newly constructed session before registration/start. */
1481
- bindTransports?: (session: IInteractiveSession$1) => void;
1948
+ /** Bind each raw adapter to the host's session slot before registration/start. */
1949
+ bindTransports?: (session: SessionSlot) => void;
1950
+ /**
1951
+ * Keep several sessions live, one per client that switched (#3189). The host's session becomes
1952
+ * the pool's primary, and further sessions are built from this recipe. Absent, the host holds one
1953
+ * session.
1954
+ */
1955
+ pool?: IRuntimeHostPoolOptions;
1956
+ }
1957
+ interface IRuntimeHostPoolOptions {
1958
+ /** Live sessions at most, the primary included. */
1959
+ maxLive?: number;
1960
+ /** How long a session no client is on stays live once idle. */
1961
+ idleGraceMs?: number;
1482
1962
  }
1483
1963
  interface IRuntimeHostHandle {
1484
- /** The live runtime session every presentation drives. */
1485
- readonly session: InteractiveSession;
1486
- /** Stop the transports and shut the session down (bounded); idempotent. */
1964
+ /**
1965
+ * The live runtime session every presentation drives, behind a slot: whoever holds it reaches the
1966
+ * current session, including after the host switches to another one (#3189).
1967
+ */
1968
+ readonly session: SessionSlot;
1969
+ /** The live sessions when started with `pool`; its primary is the one `session` starts on. */
1970
+ readonly pool?: SessionPool<InteractiveSession>;
1971
+ /** Stop the transports and shut the session down (bounded) — every pooled one; idempotent. */
1487
1972
  shutdown(message?: string): Promise<void>;
1488
1973
  /** Return the complete ordered runner aggregate, including registry-owned abandonment on stop. */
1489
1974
  waitForCompletion(): Promise<ITransportCompletionRecord[]>;
@@ -1496,6 +1981,19 @@ interface IRuntimeHostHandle {
1496
1981
  */
1497
1982
  declare function startRuntimeHost(opts: IRuntimeHostOptions): Promise<IRuntimeHostHandle>;
1498
1983
  //#endregion
1984
+ //#region src/runtime/session-change-refusal.d.ts
1985
+ declare class SessionChangeRefusal extends Error implements ISessionChangeRefusal {
1986
+ readonly code: TSessionChangeRefusalCode;
1987
+ readonly name: "SessionChangeRefusal";
1988
+ constructor(code: TSessionChangeRefusalCode, message: string);
1989
+ }
1990
+ /** #3289 §1 — a session delete the host declined, with a code the client can branch on. */
1991
+ declare class SessionDeleteRefusal extends Error implements ISessionDeleteRefusal {
1992
+ readonly code: TSessionDeleteRefusalCode;
1993
+ readonly name: "SessionDeleteRefusal";
1994
+ constructor(code: TSessionDeleteRefusalCode, message: string);
1995
+ }
1996
+ //#endregion
1499
1997
  //#region src/routing/role-model-routing.d.ts
1500
1998
  /** Resolve the PRIMARY model for a role (first of its fallback chain); `undefined` if the role is unmapped. */
1501
1999
  declare function resolveRoleModel(map: TRoleModelMap, roleKey: string): IModelRef | undefined;
@@ -1642,5 +2140,5 @@ declare function applyModelFallback(input: IApplyModelFallbackInput): {
1642
2140
  /** The note shown when a turn moved to another model. */
1643
2141
  declare function describeModelFallback(notice: IModelFallbackNotice): string;
1644
2142
  //#endregion
1645
- export { ADVISOR_OFF, ADVISOR_TOOL_NAME, APPEARANCE_SETTINGS_KEYS, AUTO_COMPACT_THRESHOLD_SETTINGS_KEY, AdvisorController, AgentExecutor, BACKGROUND_COMMAND_DESCRIPTION, BACKGROUND_COMMAND_USAGE, BUILT_IN_AGENTS, BackgroundJobOrchestrator, BuiltinCommandSource, BundlePluginInstaller, BundlePluginLoader, CLEAR_COMMAND_DESCRIPTION, COST_COMMAND_DESCRIPTION, CommandRegistry, DEFAULT_APPEARANCE_SETTINGS, DEFAULT_AUTO_COMPACT_THRESHOLD, DEFAULT_GOAL_MAX_ITERATIONS, DEFAULT_GOAL_NO_PROGRESS_LIMIT, DEFAULT_MEMORY_EXTRACTOR_POLICY, DEFAULT_STATUS_LINE_COMMAND_SETTINGS, DuplicateSystemCommandSemanticRoleError, EXECUTION_ORIGIN_METADATA_KEYS, EXIT_COMMAND_DESCRIPTION, EditCheckpointStore, ExternalEventIngress, FALLBACK_MODEL_SETTINGS_KEY, FallbackProvider, GOAL_SIGNAL_TOOL_NAME, GoalController, HELP_COMMAND_DESCRIPTION, HeadlessInteractionChannel, type IActiveModelChangeOptions, type IActiveModelChangeResult, type IAdvisorConsentStore, type IAdvisorControllerOptions, type IAdvisorSetResult, type IAdvisorSpec, type IAdvisorStatus, type IAdvisorTarget, type IAgentDefinition, type IAgentExecutorOptions, type IAgentJobDispatch, type IAgentJobGroups, type IAgentJobHostContext, type IAgentJobLogs, type IAgentJobMonitors, type IAgentJobSchedules, type IAgentRuntime, type IAgentRuntimeConfig, type IAgentSession, type IAgentToolDeps, type IAppearanceSettings, type IAppendMemoryInput, type IAppendMemoryResult, type IApplyModelFallbackInput, type IApprovedMemoryCandidate, type IAuthenticatedExternalEvent, type IAutomaticMemoryConfig, type IBackgroundJobOrchestratorOptions, type IBackgroundProcessToolDeps, type IBackgroundTaskRunner, type IBackgroundTaskSpawnerGroupRequest, type IBundlePluginFeatures, type IBundlePluginHookIssue, type IBundlePluginInspection, type IBundlePluginInstallerOptions, type IBundlePluginManifest, type IBundlePluginMcpFault, type IBundlePluginMcpServer, type IBundlePluginSkip, type IBundleSkill, type ICommandAdvisorAdapter, type ICommandCostBudget, type ICommandCostBudgetAdapter, type ICommandEffortAdapter, type ICommandExecutionToolDeps, type ICommandHandoffAdapter, type ICommandHostAdapterAccess, type ICommandHostAdapters, type ICommandHostAgentJobs, type ICommandHostBackgroundTasks, type ICommandHostCatalog, type ICommandHostCheckpoints, type ICommandHostContext, type ICommandHostContextReferences, type ICommandHostContextWindow, type ICommandHostGoal, type ICommandHostMemory, type ICommandHostNoCapability, type ICommandHostPlan, type ICommandHostPresetApplication, type ICommandHostSessionAccess, type ICommandHostTerminalHandoff, type ICommandHostUserInteraction, type ICommandHostWorkspace, type ICommandMCPActivationAdapter, type ICommandMCPActivationSummary, type ICommandMCPOAuthLoginRequest, type ICommandMCPOAuthLoginResult, type ICommandMCPOAuthLogoutResult, type ICommandMCPOAuthRedirectPrompt, type ICommandMCPOAuthStatus, type ICommandMCPSourceProblem, type ICommandModule, type ICommandOutputStyleRegistryAdapter, type ICommandOutputStyleSummary, type ICommandPermissionModeAdapter, type ICommandPermissionRulesAdapter, type ICommandPickerAdapter, type ICommandProcessAdapter, type ICommandRemoteControlAdapter, type ICommandSandboxAdapter, type ICommandSandboxStatus, type ICommandSessionContextWindow, type ICommandSessionHistory, type ICommandSessionIdentity, type ICommandSessionInfo, type ICommandSessionModel, type ICommandSessionPermissions, type ICommandSessionPreset, type ICommandSessionReplayValidationReport, type ICommandSessionRuntime, type ICommandSettingsAdapter, type ICommandSettingsDocument, type ICommandSkillListEntry, type ICommandWorkspaceAdapter, type ICompactContextResult, type IContextReferenceAddResult, type IContextReferenceClearResult, type IContextReferenceInventoryLimits, type IContextReferenceRemoveResult, type IContextReferenceUpsertResult, type IContributionSource, type ICreateExecutionWorkspaceTaskSpawnerOptions, type ICreateProgrammaticAgentOptions, type ICreateQueryOptions, type ICreateSessionOptions, type IDurableMemoryReader, type IEditCheckpointFileInspection, type IEditCheckpointFileRecord, type IEditCheckpointInspection, type IEditCheckpointInspectionPlan, type IEditCheckpointManifest, type IEditCheckpointRecorder, type IEditCheckpointRestoreResult, type IEditCheckpointSummary, type IEditCheckpointTurnInput, type IEvalCase, type IEvalCaseResult, type IEvalDefinition, type IEvalMetricScore, type IEvalReport, type IExecutionWorkspaceTaskSpawner, type IExternalEventReceipt, type IExternalEventSource, type IExternalEventSourceOptions, type IFallbackModelTarget, type IFallbackProviderOptions, type IForkExecutionOptions, type IGenerateSessionNameOptions, type IGoalSignal, type IGoalStartOptions, type IGroupChatOrchestratorDeps, type IHandoffOrchestratorDeps, type IHandoffProgress, type IHandoffStaysBehind, type IHeadlessInteractionChannelOptions, type IHeadlessRunnerOptions, type IHeadlessSession, type IHeadlessSessionOptions, type IHeadlessTransport, type IHeadlessTransportOptions, type IHierarchicalOrchestratorDeps, type IHostBundlePluginLoaderOptions, type IHostToolResultSpillStore, type IInProcessSubagentRunnerDeps, type IInspectUserLocalStorageOptions, type IInstalledPluginRecord, type IInteractiveRuntime, type IInteractiveRuntimeOptions, type IInteractiveSessionShutdownOptions, type IKnownMarketplaceEntry, type ILegacyProviderSettings, type ILivePromptTracePort, type ILoadContextOptions, type ILoadedBundlePlugin, type IMarketplaceClientOptions, type IMarketplaceManifest, type IMarketplacePluginEntry, type IMemoryBudget, type IMemoryCandidate, type IMemoryCandidateExtractor, type IMemoryCurationQueue, type IMemoryExtractorPolicy, type IMemoryExtractorTrigger, type IMemoryPendingRecord, type IMemoryRecaller, type IMemoryStore, type IMemoryWriter, type IMetric, type IModelCommandToolProjection, type IModelEffortInputs, type IModelEffortResolution, type IModelFallbackChain, type IModelFallbackPrimary, type IModelReapplyOptions, type INodeHostSettingsSource, type IOrchestrationRunContext, type IOrgPolicy, type IOutputStylePrompt, type IParallelOrchestratorDeps, type IPerTurnRecallConfig, type IPermissionRuleGroup, type IPermissionRuleLayer, type IPermissionsCommandState, type IPlanControllerDeps, type IPluginSettings, type IPreTrustProjectPathInspection, type IPresetApplicationOptions, type IPresetApplicationResult, type IProjectContributionPath, type IProjectMemorySummary, type IProjectSettingsPath, type IProjectedCommandExecutionToolsDeps, type IProjectedModelCommandTool, type IPromptExecutorOptions, type IPromptFileReferenceDiagnostic, type IPromptFileReferenceHistoryData, type IPromptFileReferenceLimits, type IPromptFileReferenceResolveOptions, type IPromptFileReferenceToken, type IPromptHistoryOptions, type IPromptProvider, type IProviderCommandModuleOptions, type IProviderCommandSettingsAdapter, type IProviderErrorGuidance, type IProviderProfileNameSuggestionInput, type IProviderProfileNameSuggestionOptions, type IProviderProfileSettings, type IProviderSettingsBuildOptions, type IProviderSetupInput, type IProviderSetupPatch, type IProviderSwitchOptions, type IReadProviderSettingsOptions, type IRemoteCommandPolicy, type IResetUserConfigResult, type IResolveExecutionAttachInput, type IResolveModelFallbackChainInput, type IResolveUserLocalStorageRootOptions, type IResolvedConfig, type IResolvedPromptFileReference, type IResolvedPromptFileReferences, type IRestrictedWorkspaceProjectAccess, type IReversibleExecutionOptions, type IReversibleToolSafetyContext, type IReversibleToolSafetyInput, type IReversibleToolSafetyReport, type IRuntimeHostHandle, type IRuntimeHostOptions, type ISelfHostingCommandTemplates, type ISelfHostingVerificationPlan, type ISelfHostingVerificationPlanInput, type ISelfHostingVerificationStep, type ISemanticMemoryAdapter, type ISemanticMemoryQueryResult, type ISequentialOrchestratorDeps, type ISequentialRunContext, type ISessionRecordRestoreResult, type ISessionUsageRecord, type ISettingsDocumentStore, type ISettingsInspection, type ISettingsKeyProvenance, type ISettingsLayerCause, type ISettingsLayerInspection, type ISettingsSchemaIssue, type ISkillActivationHistoryData, type ISkillExecutionCallbacks, type ISkillExecutionResult, type ISkillPromptContext, type ISkillRootDescriptor, type ISkillRootInspection, type ISkillSourceInspection, type ISkillSourceSkip, type ISpawnAgentTaskRequest, type ISpawnProcessTaskRequest, type IStartupMemory, type IStatelessRuntimeConfig, type ISubagentOptions, type ISubagentParentContext, type ISubagentPromptOptions, type ISystemCommand, type ISystemCommandSemanticRoles, type ITaskContextFile, type ITaskSelectionOptions, type IToolCallHandoffPolicy, type IToolCallHandoffProvenance, type ITrustedWorkspaceProjectAccess, type IUnknownCommandModuleName, type IUserLocalMemoryDeleteResult, type IUserLocalMemoryItemOptions, type IUserLocalMemoryItemProjection, type IUserLocalMemoryListOptions, type IUserLocalMemoryListProjection, type IUserLocalMemorySetOptions, type IUserLocalStorageCategoryDefinition, type IUserLocalStorageCategoryProjection, type IUserLocalStorageInspection, type IUserLocalStorageItemSummary, type IWorkspaceAncestorTextEntry, type IWorkspaceDirectoryEntry, type IWorkspaceIdentity, type IWorkspaceIdentityResolver, type IWorkspaceMoveRequest, type IWorkspaceProjectAuthority, type IWorkspaceProjectMutation, type IWorkspaceProjectReader, type IWorkspaceProjectSettingsSource, type IWorkspaceProjectSettingsWriter, type IWorkspaceProjectStateStorage, type IWorkspaceTrustCause, type IWorkspaceTrustGrant, type IWorkspaceTrustServiceOptions, type IWorkspaceTrustStore, type IWorkspaceTrustStoreSnapshot, InteractiveSession, LANGUAGE_COMMAND_ARGUMENT_HINT, LANGUAGE_COMMAND_DESCRIPTION, MAX_FALLBACK_MODELS, MEMORY_COMMAND_ARGUMENT_HINT, MEMORY_COMMAND_DESCRIPTION, MEMORY_COMMAND_USAGE, MEMORY_INDEX_MAX_BYTES, MEMORY_INDEX_MAX_LINES, MODEL_COMMAND_TOOL_PREFIX, MONITOR_SHELL_TOOL, MarketplaceClient, MonitorCommandRefusedError, NoCurrentProviderProfileError, NodeHostPluginSettingsStore, OUTPUT_FORMATS, OrgPolicyParseError, PERMISSIONS_COMMAND_DESCRIPTION, PERMISSION_MODE_ARGUMENT_HINT, PERMISSION_MODE_COMMAND_DESCRIPTION, PLUGIN_COMMAND_ARGUMENT_HINT, PLUGIN_COMMAND_DESCRIPTION, PROVIDER_SAFE_TOOL_NAME_PATTERN, PeerMessageIngress, PlanController, type PlanDelegation, PluginCommandSource, ProgrammaticInteractionChannel, ProjectMemoryStore, PromptExecutor, ProviderConfigError, RECOMMENDED_RESPONSE_LANGUAGES, RELOAD_PLUGINS_COMMAND_DESCRIPTION, RENAME_COMMAND_DESCRIPTION, RENAME_COMMAND_USAGE, RESUME_COMMAND_DESCRIPTION, REWIND_COMMAND_ARGUMENT_HINT, REWIND_COMMAND_DESCRIPTION, RUNTIME_RULE_SOURCE, RegexMemoryCandidateExtractor, type ResolveHandoff, STATUSLINE_COMMAND_ARGUMENT_HINT, STATUSLINE_COMMAND_DESCRIPTION, type SelectNextStep, SemanticMemoryStore, SettingsParseError, SkillCommandSource, SystemCommandExecutor, type TAdvisorTargetResolver, type TAppearanceSettingsPatch, type TAutoCompactThreshold, type TAutoCompactThresholdSource, type TBundlePluginSkipReason, type TCommandModuleSessionRequirement, type TEditCheckpointFileRestoreAction, type TEffortDisposition, type TEffortSelection, type TEffortSource, type TEnabledPlugins, type TEvalRunFn, type TExecutionAttachOutcome, type TExternalEventSettlement, type TGoalDecision, type THostSettingsScope, type TInstalledPluginsRegistry, type TInteractiveSessionOptions, type TKnownMarketplacesRegistry, type TMarketplaceSource, type TMemoryCandidateStatus, type TMemoryPolicyMode, type TOutputFormat, type TParsedInput, type TPermissionRuleKind, type TPlanDecision, type TProjectSettingsScope, type TPromptFileReferenceDiagnosticCode, type TProviderFactory, type TProviderSettingsDocument, type TQueryFunction, type TRecommendedResponseLanguage, type TRemoteControlStatus, type TReversibleExecutionIsolation, type TReversibleRollbackLayer, type TReversibleSafetyStatus, type TReversibleSideEffect, type TSandboxCommandMode, type TSandboxSettings, type TSelfHostingLoopEvent, type TSelfHostingLoopState, type TSelfHostingVerificationPhase, type TSessionFactory, type TSessionResponseFormat, type TSettings, type TSettingsCheck, type TSettingsData, type TSettingsLayerState, type TSettingsMergeRule, type TSettingsScope, type TSettingsSource, type TShellExecFn, type TSkillSkipReason, type TSubagentRunnerFactory, type TSubagentSuffix, type TSystemCommandLifecycle, type TSystemCommandSemanticRole, type TTaskFileStatus, type TUserLocalMemoryCategory, type TUserLocalMemoryCommandExecutionEffect, type TUserLocalStorageCategory, type TWorkspaceContributionKind, type TWorkspaceProjectAccess, type TWorkspaceProjectAuthorityCandidate, type TWorkspaceProjectMutationDecision, type TWorkspaceProjectSettingsTarget, type TWorkspaceProjectSettingsWriteDecision, type TWorkspaceProjectStateDirectories, type TWorkspaceProjectStateNamespace, type TWorkspaceTrustState, TransportRegistry, USER_LOCAL_MEMORY_CATEGORIES, USER_LOCAL_STORAGE_CATEGORIES, USER_LOCAL_STORAGE_CATEGORY_DEFINITIONS, VALIDATE_SESSION_COMMAND_DESCRIPTION, VALID_PERMISSION_MODES, WorkspaceAuthorityRequiredError, WorkspaceMemoryStore, WorkspaceProjectSessionStore, WorkspaceSessionLogSink, WorkspaceSessionLogSource, WorkspaceTrustService, addCommandContextReference, applyActiveModelChange, applyAppearanceSettings, applyModelFallback, applyPresetToSession, applyProviderConfiguration, applyProviderSwitch, applyStatusLineSettings, approvePendingMemoryCandidate, assembleSubagentPrompt, assertWorkspaceProjectAuthority, assertWorkspaceProjectMutation, assertWorkspaceProjectMutationForAuthority, assertWorkspaceProjectReader, assertWorkspaceProjectSettingsWriter, assertWorkspaceProjectStateStorage, bindTransportAdapter, buildBackgroundCommandSubcommands, buildGoalContinuationPrompt, buildGoalStartPrompt, buildLanguageCommandSubcommands, buildMemoryCommandSubcommands, buildPermissionModeSubcommands, buildPluginCommandSubcommands, buildPromptWithFileReferences, buildProviderProfile, buildProviderSetupPatch, buildRewindCommandSubcommands, buildRuntimeSession, buildStatusLineCommandSubcommands, cancelCommandBackgroundTask, checkNodeHostSettingsFile, checkSettingsDocument, clearCommandContextReferences, clearContextReferences, clearConversationHistory, closeCommandBackgroundTask, compactCommandContext, compareSemverVersions, consentScopeFor, createAdvisorTool, createAgentRuntime, createAgentTool, createBackgroundGroupExecutionEntryId, createBackgroundProcessTool, createBackgroundTaskExecutionEntryId, createBuiltinCommandModule, createCommandExecutionTool, createCommandMemoryStores, createContextReferenceItem, createContributionSourcesForProjectAccess, createDefaultRemoteCommandPolicy, createDefaultUserContributionSources, createExecutionOriginMetadata, createExecutionWorkspaceSnapshot, createExecutionWorkspaceTaskSpawner, createFileTransportSettingsRepository, createGoalStatusTool, createHeadlessRunner, createHeadlessTransport, createHostBundlePluginLoader, createInProcessSubagentRunner, createInteractiveRuntime, createLineDetailPage, createMainThreadDetailPage, createMainThreadExecutionEntryId, createMemoryTransportSettingsRepository, createModelCommandToolProjection, createNodeHostContributionSource, createNodeHostSessionStore, createNodeHostSettingsSource, createNodeHostSettingsStore, createNodeToolResultSpillStore, createNodeWorkspaceIdentityResolver, createNodeWorkspaceTrustService, createNodeWorkspaceTrustStore, createProgrammaticAgent, createProjectSessionStore, createProjectedCommandExecutionTools, createPromptFileReferenceHistoryEntry, createProviderFromSettings, createProviderSafeModelCommandToolName, createQuery, createRestrictedWorkspaceProjectAccess, createSemanticMemoryStore, createSessionExitHostAction, createSessionRenameHostAction, createSessionRunFn, createSettingsPermissionRulesAdapter, createShowPluginManagerIntent, createShowSessionPickerIntent, createSkillExecutionPort, createStatelessRuntime, createSubagentLogger, createSubagentSession, createSystemCommands, createUserPromptHistoryFile, createUserSessionStore, createWorkspaceMemoryStore, createWorkspaceProjectContributionSource, createWorkspaceProjectMutation, createWorkspaceProjectSettingsSources, createWorkspaceProjectSettingsStore, createWorkspaceProjectSettingsWriter, defineEval, deleteProviderProfile, deleteSettings, deleteUserLocalMemoryItem, deriveContextCapacityHint, describeModelFallback, describeProviderDestination, disableUserLocalMemoryItem, discoverTaskFiles, evaluateReversibleToolSafety, exactMatch, executeSkill, extractGoalSignal, findUnknownModuleNames, forkCommandEditCheckpoint, formatAdvisorSpec, formatCommandBackgroundTask, formatCommandBackgroundTaskList, formatCommandHelpMessage, formatCommandPermissionsMessage, formatCommandSessionReplayValidationReport, formatEvalReport, formatInvalidPermissionModeMessage, formatLanguageUsageMessage, formatOrgPolicyViolationMessage, formatProjectedModelCommandToolPromptDescription, formatPromptFileReferenceDiagnostics, formatTaskContext, generateSessionName, getForkWorkerSuffix, getSubagentSuffix, getWorkspaceProjectIdentity, getWorkspaceProjectReader, getWorkspaceProjectStateStorage, groupPermissionRulesBySource, hasBlockingPromptFileReferenceDiagnostics, hasSensitiveCommandMemoryContent, includesText, inspectCommandEditCheckpoint, inspectPreTrustProjectPaths, inspectSettingsLayers, inspectSkillSources, inspectUserLocalMemoryItem, inspectUserLocalStorage, isApiKeyPlaintext, isAppearanceSettingsPatch, isCommandMemoryType, isMemoryType, isNewerSemverVersion, isPermissionMode, isSafeSessionId, isSlashCommand, isStatusLineCommandSettingsPatch, listActiveContextReferences, listCommandBackgroundTasks, listCommandContextReferences, listCommandEditCheckpointBranches, listCommandEditCheckpoints, listCommandSessionAllowedTools, listCommandUsedMemoryReferences, listFrameworkProjectContributionPaths, listResumableSessionSummaries, listUserLocalMemoryItems, loadHostBundlePluginInspectionFromScopes, loadHostBundlePluginsFromScopes, loadOrgPolicy, loadTaskContext, mergeProviderPatch, mergeProviders, mergeSettings, normalizeModelCommandName, parseAdvisorSpec, parseCommandBackgroundLogCursor, parseEvalCases, parseExecutionWorkspaceEntryId, parseFallbackModelList, parseInput, parseLanguageArgument, parseModelEffort, parsePermissionModeArgument, parsePromptFileReferences, parseSessionNameArgument, parseTaskFile, planSelfHostingVerification, preprocessShellCommands, probeProviderProfile, promptForApproval, providerDestinationOf, readAppearanceSettings, readAutoCompactThreshold, readAutoCompactThresholdSource, readCommandBackgroundTaskLog, readCommandContextState, readCommandPermissionMode, readCommandPermissionsState, readCommandSessionInfo, readCurrentGitBranchFromNodeHost, readEnabledUserLocalMemoryItem, readFallbackModelSetting, readMergedProviderSettings, readMergedProviderSettingsFromSources, readPackageVersion, readPermissionRuleLayers, readProviderSettings, readSettings, readSettingsSourceText, readStatusLineSettings, recordCommandMemoryEvent, regexMatch, rememberProviderDestination, removeCommandContextReference, removeContextReference, resetAutoCompactThresholdSetting, resetUserConfig, resolveActiveProvider, resolveEnvDefaultProvider, resolveExecutionAttach, resolveGitBranchFromNodeHost, resolveLatestSessionId, resolveModelEffort, resolveModelFallbackChain, resolvePermissionModeAdapter, resolvePluginCommandAdapter, resolvePromptFileReferencePaths, resolvePromptFileReferences, resolveProviderSettingsWriteTarget, resolveRoleFallbackChain, resolveRoleModel, resolveSessionIdByIdOrName, resolveStartupAdvisorSpec, resolveSubagentLogDir, resolveUserLocalStorageRoot, responseIsJson, restoreCommandEditCheckpoint, restoreSessionRecordIntoSession, retrieveAgentToolDeps, retryCommandPermissionDenial, rollbackCommandEditCheckpoint, runEval, runGroupChat, runHandoff, runHierarchical, runParallel, runSequential, runWithRoleFallback, sanitizeProviderProfileName, selectCommandModules, selectFallbackModelEntries, selectRelevantTasks, setCommandAutoCompactThreshold, setCurrentProvider, setUserLocalMemoryItem, startRuntimeHost, storeAgentToolDeps, substituteVariables, suggestProviderProfileName, summarizeBackgroundJobGroup, switchCommandEditCheckpointBranch, testProviderProfileCommand, toContextReferenceRecords, toPromptFileReferenceRecords, tokeniseSlashCommand, transitionSelfHostingLoop, trimTrailingChars, updateModelInSettings, upsertContextReference, upsertProviderProfile, usedTool, validateCommandSessionReplayLog, validateProviderProfile, withUniqueSessionName, wrapEditCheckpointTools, wrapReversibleExecutionTools, writeAutoCompactThresholdSetting, writeCommandPermissionMode, writeSettings };
2143
+ export { ADVISOR_OFF, ADVISOR_TOOL_NAME, APPEARANCE_SETTINGS_KEYS, AUTO_COMPACT_THRESHOLD_SETTINGS_KEY, AdvisorController, AgentExecutor, BACKGROUND_COMMAND_DESCRIPTION, BACKGROUND_COMMAND_USAGE, BUILT_IN_AGENTS, BackgroundJobOrchestrator, BuiltinCommandSource, BundlePluginInstaller, BundlePluginLoader, CLEAR_COMMAND_DESCRIPTION, COST_COMMAND_DESCRIPTION, CommandRegistry, DEFAULT_AGENT_DEFINED_IN, DEFAULT_AGENT_TYPE, DEFAULT_APPEARANCE_SETTINGS, DEFAULT_AUTO_COMPACT_THRESHOLD, DEFAULT_GOAL_MAX_ITERATIONS, DEFAULT_GOAL_NO_PROGRESS_LIMIT, DEFAULT_MEMORY_EXTRACTOR_POLICY, DEFAULT_STATUS_LINE_COMMAND_SETTINGS, DuplicateSystemCommandSemanticRoleError, EFFORT_LEVEL_LABELS, EXECUTION_ORIGIN_METADATA_KEYS, EXIT_COMMAND_DESCRIPTION, EditCheckpointStore, EditCheckpointsUnavailableError, ExternalEventGrantHistory, ExternalEventIngress, FALLBACK_MODEL_SETTINGS_KEY, FallbackProvider, GIT_DEFAULT_TIMEOUT_MS, GIT_DIFF_USAGE, GIT_ENV_DENYLIST, GIT_MAX_OUTPUT_BYTES, GIT_STATUS_ARGS, GOAL_SIGNAL_TOOL_NAME, GoalController, HELP_COMMAND_DESCRIPTION, HeadlessInteractionChannel, type IActiveModelChangeOptions, type IActiveModelChangeResult, type IAdvisorConsentStore, type IAdvisorControllerOptions, type IAdvisorSetResult, type IAdvisorSpec, type IAdvisorStatus, type IAdvisorTarget, type IAgentDefinition, type IAgentExecutorOptions, type IAgentJobDispatch, type IAgentJobGroups, type IAgentJobHostContext, type IAgentJobLogs, type IAgentJobMonitors, type IAgentJobSchedules, type IAgentRuntime, type IAgentRuntimeConfig, type IAgentSession, type IAgentToolDeps, type IAppearanceSettings, type IAppendMemoryInput, type IAppendMemoryResult, type IApplyModelFallbackInput, type IApprovedMemoryCandidate, type IAutomaticMemoryConfig, type IBackgroundJobOrchestratorOptions, type IBackgroundProcessToolDeps, type IBackgroundTaskRunner, type IBackgroundTaskSpawnerGroupRequest, type IBundlePluginFeatures, type IBundlePluginHookIssue, type IBundlePluginInspection, type IBundlePluginInstallerOptions, type IBundlePluginManifest, type IBundlePluginMcpFault, type IBundlePluginMcpServer, type IBundlePluginSkip, type IBundleSkill, type ICommandAdvisorAdapter, type ICommandCostBudget, type ICommandCostBudgetAdapter, type ICommandEffortAdapter, type ICommandExecutionToolDeps, type ICommandExternalEventGrant, type ICommandExternalEventsAdapter, type ICommandHandoffAdapter, type ICommandHostAdapterAccess, type ICommandHostAdapters, type ICommandHostAgentJobs, type ICommandHostBackgroundTasks, type ICommandHostCatalog, type ICommandHostCheckpoints, type ICommandHostContext, type ICommandHostContextReferences, type ICommandHostContextWindow, type ICommandHostGoal, type ICommandHostMemory, type ICommandHostNoCapability, type ICommandHostPlan, type ICommandHostPresetApplication, type ICommandHostSessionAccess, type ICommandHostSetupState, type ICommandHostTerminalHandoff, type ICommandHostUserInteraction, type ICommandHostWorkspace, type ICommandMCPActivationAdapter, type ICommandMCPActivationSummary, type ICommandMCPOAuthLoginRequest, type ICommandMCPOAuthLoginResult, type ICommandMCPOAuthLogoutResult, type ICommandMCPOAuthRedirectPrompt, type ICommandMCPOAuthStatus, type ICommandMCPSourceProblem, type ICommandModule, type ICommandOutputStyleRegistryAdapter, type ICommandOutputStyleSummary, type ICommandPermissionModeAdapter, type ICommandPermissionRulesAdapter, type ICommandPickerAdapter, type ICommandProcessAdapter, type ICommandRemoteControlAdapter, type ICommandSandboxAdapter, type ICommandSandboxStatus, type ICommandSessionContextWindow, type ICommandSessionHistory, type ICommandSessionIdentity, type ICommandSessionInfo, type ICommandSessionModel, type ICommandSessionPermissions, type ICommandSessionPreset, type ICommandSessionReplayValidationReport, type ICommandSessionRuntime, type ICommandSettingsAdapter, type ICommandSettingsDocument, type ICommandSkillListEntry, type ICommandWorkspaceAdapter, type ICompactContextResult, type IContextReferenceAddResult, type IContextReferenceClearResult, type IContextReferenceInventoryLimits, type IContextReferenceRemoveResult, type IContextReferenceUpsertResult, type IContributionSource, type ICreateExecutionWorkspaceTaskSpawnerOptions, type ICreateGitProcessOptions, type ICreateProgrammaticAgentOptions, type ICreateQueryOptions, type ICreateSessionOptions, type IDurableMemoryReader, type IEditCheckpointFileInspection, type IEditCheckpointFileRecord, type IEditCheckpointInspection, type IEditCheckpointInspectionPlan, type IEditCheckpointManifest, type IEditCheckpointRecorder, type IEditCheckpointRestoreResult, type IEditCheckpointSummary, type IEditCheckpointTurnInput, type IEvalCase, type IEvalCaseResult, type IEvalDefinition, type IEvalMetricScore, type IEvalReport, type IExecutionWorkspaceTaskSpawner, type IExternalEventSource, type IExternalEventSourceOptions, type IFallbackModelTarget, type IFallbackProviderOptions, type IForkExecutionOptions, type IGenerateSessionNameOptions, type IGitDiffArgs, type IGitProcessPort, type IGitProcessRunOptions, type IGitStatusSummary, type IGoalSignal, type IGoalStartOptions, type IGroupChatOrchestratorDeps, type IHandoffOrchestratorDeps, type IHandoffProgress, type IHandoffStaysBehind, type IHeadlessInteractionChannelOptions, type IHeadlessRunnerOptions, type IHeadlessSession, type IHeadlessSessionOptions, type IHeadlessTransport, type IHeadlessTransportOptions, type IHierarchicalOrchestratorDeps, type IHostBundlePluginLoaderOptions, type IHostToolResultSpillStore, type IInProcessSubagentRunnerDeps, type IInspectUserLocalStorageOptions, type IInstalledPluginRecord, type IInteractiveRuntime, type IInteractiveRuntimeOptions, type IInteractiveSessionShutdownOptions, type IKnownMarketplaceEntry, type ILegacyProviderSettings, type ILinkedDeviceSummary, type ILivePromptTracePort, type ILoadContextOptions, type ILoadedBundlePlugin, type IMarketplaceClientOptions, type IMarketplaceManifest, type IMarketplacePluginEntry, type IMemoryBudget, type IMemoryCandidate, type IMemoryCandidateExtractor, type IMemoryCurationQueue, type IMemoryExtractorPolicy, type IMemoryExtractorTrigger, type IMemoryPendingRecord, type IMemoryRecaller, type IMemoryStore, type IMemoryWriter, type IMetric, type IModelCommandToolProjection, type IModelEffortInputs, type IModelEffortResolution, type IModelFallbackChain, type IModelFallbackPrimary, type IModelListSelection, type IModelReapplyOptions, type INodeHostSettingsSource, type IOrchestrationRunContext, type IOrgPolicy, type IOutputStylePrompt, type IParallelOrchestratorDeps, type IParsedGitStatus, type IPerTurnRecallConfig, type IPermissionRuleGroup, type IPermissionRuleLayer, type IPermissionRuleRemoval, type IPermissionsCommandState, type IPlanControllerDeps, type IPluginSettings, type IPreTrustProjectPathInspection, type IPresetApplicationOptions, type IPresetApplicationResult, type IProjectContributionPath, type IProjectGitStatusFile, type IProjectMemorySummary, type IProjectSettingsPath, type IProjectedCommandExecutionToolsDeps, type IProjectedModelCommandTool, type IPromptExecutorOptions, type IPromptFileReferenceDiagnostic, type IPromptFileReferenceHistoryData, type IPromptFileReferenceLimits, type IPromptFileReferenceResolveOptions, type IPromptFileReferenceToken, type IPromptHistoryOptions, type IPromptProvider, type IProviderCommandModuleOptions, type IProviderCommandSettingsAdapter, type IProviderErrorGuidance, type IProviderProfileNameSuggestionInput, type IProviderProfileNameSuggestionOptions, type IProviderProfileSettings, type IProviderSettingsBuildOptions, type IProviderSetupInput, type IProviderSetupPatch, type IProviderSwitchOptions, type IRawGitStatusRecord, type IReadProviderSettingsOptions, type IRemoteCommandPolicy, type IResetUserConfigResult, type IResolveExecutionAttachInput, type IResolveModelFallbackChainInput, type IResolveUserLocalStorageRootOptions, type IResolvedConfig, type IResolvedPromptFileReference, type IResolvedPromptFileReferences, type IRestrictedWorkspaceProjectAccess, type IReversibleExecutionOptions, type IReversibleToolSafetyContext, type IReversibleToolSafetyInput, type IReversibleToolSafetyReport, type IRuntimeHostHandle, type IRuntimeHostOptions, type IRuntimeHostPoolOptions, type ISelfHostingCommandTemplates, type ISelfHostingVerificationPlan, type ISelfHostingVerificationPlanInput, type ISelfHostingVerificationStep, type ISemanticMemoryAdapter, type ISemanticMemoryQueryResult, type ISequentialOrchestratorDeps, type ISequentialRunContext, type ISessionLease, type ISessionPoolBinding, type ISessionPoolEntry, type ISessionPoolOptions, type ISessionRecordRestoreResult, type ISessionSlotOptions, type ISessionUsageRecord, type ISettingsDocumentStore, type ISettingsInspection, type ISettingsKeyProvenance, type ISettingsLayerCause, type ISettingsLayerInspection, type ISettingsSchemaIssue, type ISkillActivationHistoryData, type ISkillExecutionCallbacks, type ISkillExecutionResult, type ISkillPromptContext, type ISkillRootDescriptor, type ISkillRootInspection, type ISkillSourceInspection, type ISkillSourceSkip, type ISpawnAgentTaskRequest, type ISpawnProcessTaskRequest, type IStartupMemory, type IStatelessRuntimeConfig, type ISubagentOptions, type ISubagentParentContext, type ISubagentPromptOptions, type ISystemCommand, type ISystemCommandSemanticRoles, type ITaskContextFile, type ITaskSelectionOptions, type IToolCallHandoffPolicy, type IToolCallHandoffProvenance, type ITrustedWorkspaceProjectAccess, type IUnknownCommandModuleName, type IUserLocalMemoryDeleteResult, type IUserLocalMemoryItemOptions, type IUserLocalMemoryItemProjection, type IUserLocalMemoryListOptions, type IUserLocalMemoryListProjection, type IUserLocalMemorySetOptions, type IUserLocalStorageCategoryDefinition, type IUserLocalStorageCategoryProjection, type IUserLocalStorageInspection, type IUserLocalStorageItemSummary, type IWorkspaceAncestorTextEntry, type IWorkspaceDirectoryEntry, type IWorkspaceIdentity, type IWorkspaceIdentityResolver, type IWorkspaceMoveRequest, type IWorkspaceProjectAuthority, type IWorkspaceProjectMutation, type IWorkspaceProjectReader, type IWorkspaceProjectSettingsSource, type IWorkspaceProjectSettingsWriter, type IWorkspaceProjectStateStorage, type IWorkspaceTrustCause, type IWorkspaceTrustGrant, type IWorkspaceTrustServiceOptions, type IWorkspaceTrustStore, type IWorkspaceTrustStoreSnapshot, InteractiveSession, LANGUAGE_COMMAND_ARGUMENT_HINT, LANGUAGE_COMMAND_DESCRIPTION, MAX_FALLBACK_MODELS, MAX_PROJECT_DIFF_LINES, MAX_STATUS_FILES, MEMORY_COMMAND_ARGUMENT_HINT, MEMORY_COMMAND_DESCRIPTION, MEMORY_COMMAND_USAGE, MEMORY_INDEX_MAX_BYTES, MEMORY_INDEX_MAX_LINES, MODEL_COMMAND_TOOL_PREFIX, MONITOR_SHELL_TOOL, MarketplaceClient, MonitorCommandRefusedError, NoCurrentProviderProfileError, NodeHostPluginSettingsStore, OUTPUT_FORMATS, OrgPolicyParseError, PERMISSIONS_COMMAND_DESCRIPTION, PERMISSION_MODE_ARGUMENT_HINT, PERMISSION_MODE_COMMAND_DESCRIPTION, PERMISSION_MODE_LABELS, PLUGIN_COMMAND_ARGUMENT_HINT, PLUGIN_COMMAND_DESCRIPTION, PROVIDER_SAFE_TOOL_NAME_PATTERN, PeerMessageIngress, PlanController, type PlanDelegation, PluginCommandSource, ProgrammaticInteractionChannel, ProjectMemoryStore, PromptExecutor, ProviderConfigError, RECOMMENDED_RESPONSE_LANGUAGES, RELOAD_PLUGINS_COMMAND_DESCRIPTION, RENAME_COMMAND_DESCRIPTION, RENAME_COMMAND_USAGE, RESUME_COMMAND_DESCRIPTION, REWIND_COMMAND_ARGUMENT_HINT, REWIND_COMMAND_DESCRIPTION, RUNTIME_RULE_SOURCE, RegexMemoryCandidateExtractor, type ResolveHandoff, SESSION_POOL_IDLE_GRACE_MS, SESSION_POOL_MAX_LIVE, STATUSLINE_COMMAND_ARGUMENT_HINT, STATUSLINE_COMMAND_DESCRIPTION, type SelectNextStep, SemanticMemoryStore, SessionChangeRefusal, SessionDeleteRefusal, SessionPool, SessionRenameUnavailableError, SessionSlot, SessionTerminalHandoffGate, SettingsParseError, SkillCommandSource, SystemCommandExecutor, type TAdvisorTargetResolver, type TAppearanceSettingsPatch, type TAutoCompactThreshold, type TAutoCompactThresholdSource, type TBundlePluginSkipReason, type TCommandModuleSessionRequirement, type TEditCheckpointFileRestoreAction, type TEditCheckpointsUnavailableReason, type TEffortDisposition, type TEffortSelection, type TEffortSource, type TEnabledPlugins, type TEvalRunFn, type TExecutionAttachOutcome, type TExternalEventReceipt, type TExternalEventSettlement, type TGitDiffTarget, type TGitProcessFailureReason, type TGitProcessOutcome, type TGoalDecision, type THostSettingsScope, type TInstalledPluginsRegistry, type TInteractiveSessionOptions, type TKnownMarketplacesRegistry, type TMarketplaceSource, type TMemoryCandidateStatus, type TMemoryPolicyMode, type TOutputFormat, type TParseGitDiffArgs, type TParsedInput, type TPermissionRuleKind, type TPlanDecision, type TPoolBusySession, type TProjectFileStatus, type TProjectGitDiffResult, type TProjectGitStatusResult, type TProjectSettingsScope, type TPromptFileReferenceDiagnosticCode, type TProviderFactory, type TProviderSettingsDocument, type TQueryFunction, type TRawGitStatusRecordKind, type TRecommendedResponseLanguage, type TRemoteControlStatus, type TReversibleExecutionIsolation, type TReversibleRollbackLayer, type TReversibleSafetyStatus, type TReversibleSideEffect, type TSandboxCommandMode, type TSandboxSettings, type TSelfHostingLoopEvent, type TSelfHostingLoopState, type TSelfHostingVerificationPhase, type TSessionFactory, type TSessionPoolRole, type TSessionResponseFormat, type TSettings, type TSettingsCheck, type TSettingsData, type TSettingsLayerState, type TSettingsMergeRule, type TSettingsScope, type TSettingsSource, type TShellExecFn, type TSkillSkipReason, type TSubagentRunnerFactory, type TSubagentSuffix, type TSystemCommandLifecycle, type TSystemCommandSemanticRole, type TTaskFileStatus, type TUserLocalMemoryCategory, type TUserLocalMemoryCommandExecutionEffect, type TUserLocalStorageCategory, type TWorkspaceContributionKind, type TWorkspaceProjectAccess, type TWorkspaceProjectAuthorityCandidate, type TWorkspaceProjectMutationDecision, type TWorkspaceProjectSettingsTarget, type TWorkspaceProjectSettingsWriteDecision, type TWorkspaceProjectStateDirectories, type TWorkspaceProjectStateNamespace, type TWorkspaceTrustState, TransportRegistry, USER_LOCAL_MEMORY_CATEGORIES, USER_LOCAL_STORAGE_CATEGORIES, USER_LOCAL_STORAGE_CATEGORY_DEFINITIONS, VALIDATE_SESSION_COMMAND_DESCRIPTION, VALID_PERMISSION_MODES, WorkspaceAuthorityRequiredError, WorkspaceMemoryStore, WorkspaceProjectSessionStore, WorkspaceSessionLogSink, WorkspaceSessionLogSource, WorkspaceTrustService, addCommandContextReference, applyActiveModelChange, applyAppearanceSettings, applyModelFallback, applyPresetToSession, applyProviderConfiguration, applyProviderSwitch, applyStatusLineSettings, approvePendingMemoryCandidate, assembleSubagentPrompt, assertWorkspaceProjectAuthority, assertWorkspaceProjectMutation, assertWorkspaceProjectMutationForAuthority, assertWorkspaceProjectReader, assertWorkspaceProjectSettingsWriter, assertWorkspaceProjectStateStorage, bindTransportAdapter, buildBackgroundCommandSubcommands, buildGoalContinuationPrompt, buildGoalStartPrompt, buildLanguageCommandSubcommands, buildMemoryCommandSubcommands, buildModelListSnapshot, buildPermissionModeSubcommands, buildPluginCommandSubcommands, buildPromptWithFileReferences, buildProviderProfile, buildProviderProfilesSnapshot, buildProviderSetupPatch, buildRewindCommandSubcommands, buildRuntimeSession, buildStatusLineCommandSubcommands, cancelCommandBackgroundTask, checkNodeHostSettingsFile, checkSettingsDocument, clearCommandContextReferences, clearContextReferences, clearConversationHistory, closeCommandBackgroundTask, compactCommandContext, compareSemverVersions, consentScopeFor, createAdvisorTool, createAgentRuntime, createAgentTool, createBackgroundGroupExecutionEntryId, createBackgroundProcessTool, createBackgroundTaskExecutionEntryId, createBuiltinCommandModule, createCommandExecutionTool, createCommandMemoryStores, createContextReferenceItem, createContributionSourcesForProjectAccess, createDefaultRemoteCommandPolicy, createDefaultUserContributionSources, createExecutionOriginMetadata, createExecutionWorkspaceSnapshot, createExecutionWorkspaceTaskSpawner, createExternalEventGrantHistory, createFileTransportSettingsRepository, createGitProcess, createGoalStatusTool, createHeadlessRunner, createHeadlessTransport, createHostBundlePluginLoader, createInProcessSubagentRunner, createInteractiveRuntime, createLineDetailPage, createMainThreadDetailPage, createMainThreadExecutionEntryId, createMemoryTransportSettingsRepository, createModelCommandToolProjection, createNodeHostContributionSource, createNodeHostSessionStore, createNodeHostSettingsSource, createNodeHostSettingsStore, createNodeToolResultSpillStore, createNodeWorkspaceIdentityResolver, createNodeWorkspaceTrustService, createNodeWorkspaceTrustStore, createProgrammaticAgent, createProjectSessionStore, createProjectedCommandExecutionTools, createPromptFileReferenceHistoryEntry, createProviderFromSettings, createProviderSafeModelCommandToolName, createQuery, createRestrictedWorkspaceProjectAccess, createSemanticMemoryStore, createSessionExitHostAction, createSessionRenameHostAction, createSessionRunFn, createSettingsPermissionRulesAdapter, createShowPluginManagerIntent, createShowSessionPickerIntent, createSkillExecutionPort, createStatelessRuntime, createSubagentLogger, createSubagentSession, createSystemCommands, createUserPromptHistoryFile, createUserSessionStore, createWorkspaceMemoryStore, createWorkspaceProjectContributionSource, createWorkspaceProjectMutation, createWorkspaceProjectSettingsSources, createWorkspaceProjectSettingsStore, createWorkspaceProjectSettingsWriter, defineEval, deleteProviderProfile, deleteSettings, deleteUserLocalMemoryItem, deriveContextCapacityHint, describeModelFallback, describeProviderDestination, disableUserLocalMemoryItem, discoverTaskFiles, evaluateReversibleToolSafety, exactMatch, executeGitDiff, executeGitStatus, executeSkill, extractGoalSignal, findUnknownModuleNames, forkCommandEditCheckpoint, formatAdvisorSpec, formatCommandBackgroundTask, formatCommandBackgroundTaskList, formatCommandHelpMessage, formatCommandPermissionsMessage, formatCommandSessionReplayValidationReport, formatEvalReport, formatGitStatus, formatInvalidPermissionModeMessage, formatLanguageUsageMessage, formatOrgPolicyViolationMessage, formatProjectedModelCommandToolPromptDescription, formatPromptFileReferenceDiagnostics, formatTaskContext, generateSessionName, getForkWorkerSuffix, getSubagentSuffix, getWorkspaceProjectIdentity, getWorkspaceProjectReader, getWorkspaceProjectStateStorage, gitDiffArgv, gitEnvironment, gitFailureMessage, groupPermissionRulesBySource, hasBlockingPromptFileReferenceDiagnostics, hasSensitiveCommandMemoryContent, includesText, inspectCommandEditCheckpoint, inspectPreTrustProjectPaths, inspectSettingsLayers, inspectSkillSources, inspectUserLocalMemoryItem, inspectUserLocalStorage, isApiKeyPlaintext, isAppearanceSettingsPatch, isCommandMemoryType, isGoalCancelVerb, isLoopStopVerb, isMemoryType, isNewerSemverVersion, isNotAGitRepositoryFailure, isPermissionMode, isSafeSessionId, isSessionBusy, isSlashCommand, isStatusLineCommandSettingsPatch, listActiveContextReferences, listCommandBackgroundTasks, listCommandContextReferences, listCommandEditCheckpointBranches, listCommandEditCheckpoints, listCommandSessionAllowedTools, listCommandUsedMemoryReferences, listFrameworkProjectContributionPaths, listResumableSessionSummaries, listUnreadableSessions, listUnreadableSessionsForWorkspace, listUserLocalMemoryItems, loadHostBundlePluginInspectionFromScopes, loadHostBundlePluginsFromScopes, loadOrgPolicy, loadTaskContext, mergeProviderPatch, mergeProviders, mergeSettings, normalizeModelCommandName, parseAdvisorSpec, parseCommandBackgroundLogCursor, parseEvalCases, parseExecutionWorkspaceEntryId, parseFallbackModelList, parseGitDiffArgs, parseInput, parseLanguageArgument, parseModelEffort, parsePermissionModeArgument, parsePromptFileReferences, parseSessionNameArgument, parseStatusPorcelainV2, parseStatusRecords, parseTaskFile, parseUnifiedDiffLines, persistSessionRename, planSelfHostingVerification, preprocessShellCommands, probeProviderProfile, promptForApproval, providerDestinationOf, readAppearanceSettings, readAutoCompactThreshold, readAutoCompactThresholdSource, readCommandBackgroundTaskLog, readCommandContextState, readCommandPermissionMode, readCommandPermissionsState, readCommandSessionInfo, readCurrentGitBranchFromNodeHost, readEnabledUserLocalMemoryItem, readFallbackModelSetting, readMergedProviderSettings, readMergedProviderSettingsFromSources, readPackageVersion, readPermissionRuleLayers, readProjectGitDiff, readProjectGitStatus, readProviderSettings, readSettings, readSettingsSourceText, readStatusLineSettings, recordCommandMemoryEvent, regexMatch, rememberProviderDestination, removeCommandContextReference, removeContextReference, removePermissionRule, resetAutoCompactThresholdSetting, resetUserConfig, resolveActiveProvider, resolveEnvDefaultProvider, resolveExecutionAttach, resolveGitBranchFromNodeHost, resolveLatestSessionId, resolveModelEffort, resolveModelFallbackChain, resolveModelListSelection, resolvePermissionModeAdapter, resolvePluginCommandAdapter, resolvePromptFileReferencePaths, resolvePromptFileReferences, resolveProviderSettingsWriteTarget, resolveReusableEmptySessionId, resolveRoleFallbackChain, resolveRoleModel, resolveSessionIdByIdOrName, resolveStartupAdvisorSpec, resolveSubagentLogDir, resolveUserLocalStorageRoot, responseIsJson, restoreCommandEditCheckpoint, restoreSessionRecordIntoSession, retrieveAgentToolDeps, retryCommandPermissionDenial, rollbackCommandEditCheckpoint, runEval, runGroupChat, runHandoff, runHierarchical, runParallel, runSequential, runWithRoleFallback, sandboxApprovalFor, sanitizeProviderProfileName, selectCommandModules, selectFallbackModelEntries, selectRelevantTasks, setCommandAutoCompactThreshold, setCurrentProvider, setUserLocalMemoryItem, startRuntimeHost, storeAgentToolDeps, substituteVariables, suggestProviderProfileName, summarizeBackgroundJobGroup, supportsWorkspaceProjectMutation, switchCommandEditCheckpointBranch, testProviderProfileCommand, toContextReferenceRecords, toPromptFileReferenceRecords, tokeniseSlashCommand, transitionSelfHostingLoop, trimTrailingChars, updateModelInSettings, upsertContextReference, upsertProviderProfile, usedTool, validateCommandSessionReplayLog, validateProviderProfile, withUniqueSessionName, wrapEditCheckpointTools, wrapReversibleExecutionTools, writeAutoCompactThresholdSetting, writeCommandPermissionMode, writeSettings };
1646
2144
  //# sourceMappingURL=index.d.ts.map