@robota-sdk/agent-framework 3.0.0-beta.74 → 3.0.0-beta.76

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,5 +1,5 @@
1
1
  import { IActionRequest, IActionResponse, IBackgroundJobGroupCreateRequest, IBackgroundJobGroupCreateRequest as IBackgroundJobGroupCreateRequest$1, IBackgroundJobGroupState, IBackgroundJobGroupState as IBackgroundJobGroupState$1, IBackgroundJobGroupSummary, IBackgroundJobGroupSummary as IBackgroundJobGroupSummary$1, IBackgroundJobResultEnvelope, ICapabilityDescriptor, ICommand, ICommandAvailablePlugin, ICommandChoicePromptOption, ICommandInfo, ICommandInstalledPlugin, ICommandInteraction, ICommandInteractionHint, ICommandListEntry, ICommandMarketplaceSource, ICommandPluginAdapter, ICommandPluginAdapter as ICommandPluginAdapter$1, ICommandPluginReloadResult, ICommandResult, ICommandSource, IConfigurableTransport, IContextFileRefreshedEvent, IContextReferenceItem, ICreateExecutionWorkspaceSnapshotInput, ICreateLineDetailPageInput, ICreateMainThreadDetailPageInput, ICreateMainThreadEntryInput, IDiffLine, IExecutionDetailCursor, IExecutionDetailPage, IExecutionDetailRecord, IExecutionOrigin, IExecutionOrigin as IExecutionOrigin$1, IExecutionResult, IExecutionWorkspaceEntry, IExecutionWorkspaceEntryRef, IExecutionWorkspaceEntryRef as IExecutionWorkspaceEntryRef$1, IExecutionWorkspaceEvent, IExecutionWorkspaceFilter, IExecutionWorkspaceSnapshot, IExecutionWorkspaceSnapshotOptions, IInteractionChannel, IInteractiveSession, IInteractiveSessionEvents, IInteractiveSessionRecord, IInteractiveSessionStore, IMemoryEvent, IMemoryReference, IPermissionRequest, IPickItem, IPromptFileReferenceRecord, IResumableSessionSummary, ISkillActivationEvent, IStatusLineCommandSettings, IToolState, IToolSummary, ITransportAdapter, ITransportAdapter as ITransportAdapter$1, ITransportConfig, ITransportRegistryView, IUsageSnapshot, InteractionEvent, TBackgroundJobGroupEvent, TBackgroundJobGroupEventListener, TBackgroundJobGroupEventListener as TBackgroundJobGroupEventListener$1, TBackgroundJobGroupIdFactory, TBackgroundJobGroupIdFactory as TBackgroundJobGroupIdFactory$1, TBackgroundJobGroupStatus, TBackgroundJobWaitPolicy, TCapabilityKind, TCapabilitySafety, TCommandEffect, TCommandInteractionPrompt, TCommandResultDataValue, TContextReferenceLoadType, TContextReferenceStatus, TExecutionAttention, TExecutionControl, TExecutionDetailRecordKind, TExecutionEntryKind, TExecutionOriginKind, TExecutionWorkspaceStatus, TExecutionWorkspaceUpdateCause, TExecutionWorkspaceVisibility, TInteractiveEventName, TInteractivePermissionHandler, TMemoryType, TPermissionResultValue, TPluginInstallScope, TPromptFileReferenceReason, TSkillActivationInvocation, TSkillActivationMode, TSkillActivationSource, TSkillActivationStatus, TStatusLineCommandSettingsPatch } from "@robota-sdk/agent-interface-transport";
2
- import { IAIProvider, IContextWindowState, IFileSystem, IFileSystemAsync, IHistoryEntry, IHookInput, IHookResult, IHookTypeExecutor, IProviderConfig, IProviderDefinition, IProviderProbeResult, IProviderProfileConfig, ISession, ITerminalOutput, ITerminalOutput as ITerminalOutput$2, IToolWithEventService, THookDefinition, THooksConfig, TPermissionMode, TSessionEndReason, TToolArgs, TUniversalMessage, TUniversalValue, formatEnvReference, hasUsableSecretReference, isEnvReference, resolveEnvReference } from "@robota-sdk/agent-core";
2
+ import { IAIProvider, IContextWindowState, IFileSystem, IFileSystemAsync, IHistoryEntry, IHookInput, IHookResult, IHookTypeExecutor, IProviderConfig, IProviderDefinition, IProviderProbeResult, IProviderProfileConfig, ISession, ITerminalOutput, ITerminalOutput as ITerminalOutput$2, IToolWithEventService, THookDefinition, THooksConfig, TModelEffort, TPermissionMode, TSessionEndReason, TToolArgs, TUniversalMessage, TUniversalValue, formatEnvReference, hasUsableSecretReference, isEnvReference, resolveEnvReference } from "@robota-sdk/agent-core";
3
3
  import { IAgentBackgroundTaskRequest, IBackgroundTaskError, IBackgroundTaskHandle, IBackgroundTaskInput, IBackgroundTaskListFilter, IBackgroundTaskLogCursor, IBackgroundTaskLogPage, IBackgroundTaskManager, IBackgroundTaskManager as IBackgroundTaskManager$1, IBackgroundTaskManagerOptions, IBackgroundTaskResult, IBackgroundTaskRunner, IBackgroundTaskRunner as IBackgroundTaskRunner$1, IBackgroundTaskStart, IBackgroundTaskState, IBackgroundTaskState as IBackgroundTaskState$1, IBaseBackgroundTaskRequest, ICreateLimitedOutputCaptureOptions, ILimitedOutputCapture, IPreparedSubagentWorktree, IProcessBackgroundTaskRequest, ISerializableProviderProfile, ISubagentJobHandle, ISubagentJobResult, ISubagentJobStart, ISubagentJobState, ISubagentManager, ISubagentManagerOptions, ISubagentRunner, ISubagentRunner as ISubagentRunner$1, ISubagentSpawnRequest, ISubagentWorktreeAdapter, ISubagentWorktreePrepareRequest, IWorktreeSubagentRunnerOptions, TBackgroundPermissionPolicy, TBackgroundPermissionPolicy as TBackgroundPermissionPolicy$1, TBackgroundPrimitive, TBackgroundPrimitive as TBackgroundPrimitive$1, TBackgroundTaskErrorCategory, TBackgroundTaskEvent, TBackgroundTaskEventListener, TBackgroundTaskIdFactory, TBackgroundTaskIsolation, TBackgroundTaskIsolation as TBackgroundTaskIsolation$1, TBackgroundTaskKind, TBackgroundTaskMode, TBackgroundTaskMode as TBackgroundTaskMode$1, TBackgroundTaskRequest, TBackgroundTaskRunnerEvent, TBackgroundTaskStatus, TBackgroundTaskTimeoutReason, TBackgroundTaskTransitionEvent, TSubagentJobMode, TSubagentJobStatus } from "@robota-sdk/agent-executor";
4
4
  import { FileSessionLogger, ICompactEvent, ISessionLogger, ISessionReplayValidationResult, ITerminalOutput as ITerminalOutput$1, Session, TPermissionHandler, TPermissionResult } from "@robota-sdk/agent-session";
5
5
  import { ISandboxClient, IWorkspaceManifest, createZodFunctionTool } from "@robota-sdk/agent-tools";
@@ -606,6 +606,16 @@ interface ICommandSkillActivationRequest {
606
606
  readonly rawInput?: string;
607
607
  }
608
608
  type TAutoCompactThresholdSource = 'default' | 'settings' | 'session';
609
+ /**
610
+ * Live model re-application options (PRESET-013). Carries the model group a preset switch may
611
+ * re-apply to a running session; `maxOutputTokens` maps to the agent's `maxTokens` channel.
612
+ */
613
+ interface IModelReapplyOptions {
614
+ model?: string;
615
+ effort?: TModelEffort;
616
+ temperature?: number;
617
+ maxOutputTokens?: number;
618
+ }
609
619
  interface ICommandSessionRuntime {
610
620
  clearHistory(): void;
611
621
  compact(instructions?: string): Promise<void>;
@@ -624,6 +634,18 @@ interface ICommandSessionRuntime {
624
634
  outputTokens: number;
625
635
  } | undefined;
626
636
  getModelId?(): string | undefined;
637
+ /**
638
+ * Re-apply model/effort/temperature/maxOutputTokens to the live session (PRESET-013).
639
+ * May be async: the runtime ensures the agent is fully initialized before mutating its model
640
+ * configuration, so callers must await the result.
641
+ */
642
+ applyModelOptions?(options: IModelReapplyOptions): void | Promise<void>;
643
+ /** Read the active preset id (PRESET-011 runtime state). */
644
+ getActivePresetId?(): string;
645
+ /** Set the active preset id (PRESET-011 runtime state — pure state, no option re-application). */
646
+ setActivePresetId?(id: string): void;
647
+ /** Toggle subagent dispatch live for the running session (PRESET-016 runtime gate). */
648
+ setParallelSubagentsEnabled?(enabled: boolean): void;
627
649
  }
628
650
  interface ICommandSessionReplayValidationReport {
629
651
  logFile: string;
@@ -635,6 +657,12 @@ interface ICommandHostContext {
635
657
  validateCurrentSessionReplayLog?(): ICommandSessionReplayValidationReport;
636
658
  getAgentJobCapability?(): IAgentJobHostContext | undefined;
637
659
  getSession(): ICommandSessionRuntime;
660
+ /** PRESET-014 — re-apply a preset persona to the live system prompt. */
661
+ applyPersona?(persona: string): void;
662
+ /** PRESET-017 — toggle the verify-before-done self-verification section on the live prompt. */
663
+ applySelfVerification?(enabled: boolean): void;
664
+ /** PRESET-015 — re-apply command-module selection to the live session. */
665
+ applyCommandModuleSelection?(enabled: readonly string[] | undefined, disabled: readonly string[] | undefined): void;
638
666
  getContextState(): IContextWindowState;
639
667
  getAutoCompactThreshold(): TAutoCompactThreshold;
640
668
  getAutoCompactThresholdSource?(): TAutoCompactThresholdSource;
@@ -934,6 +962,61 @@ declare function listCommandSessionAllowedTools(context: ICommandHostContext): r
934
962
  declare function readCommandPermissionsState(context: ICommandHostContext): IPermissionsCommandState;
935
963
  declare function formatCommandPermissionsMessage(state: IPermissionsCommandState): string;
936
964
  //#endregion
965
+ //#region src/command-api/preset/preset-application.d.ts
966
+ /**
967
+ * Resolved-preset option subset that can be re-applied to a *live* session.
968
+ *
969
+ * This is a framework-owned shape. The agent-preset package's `TResolvedPresetOptions` satisfies it
970
+ * structurally, so a consumer can hand a `resolvePreset(...)` result straight to
971
+ * {@link applyPresetToSession} without framework importing agent-preset (no dependency cycle).
972
+ *
973
+ * PRESET-012 carries the permission/trust group (`permissionMode`); PRESET-013 adds the model group
974
+ * (`model`, `effort`, `temperature`, `maxOutputTokens`); PRESET-014 adds the `persona` block,
975
+ * re-applied to the live system prompt; PRESET-015 adds the command-module selection group
976
+ * (`enabledCommandModules`/`disabledCommandModules`), re-filtered against the session-start set.
977
+ */
978
+ interface IPresetApplicationOptions {
979
+ permissionMode?: TPermissionMode;
980
+ model?: string;
981
+ effort?: TModelEffort;
982
+ temperature?: number;
983
+ maxOutputTokens?: number;
984
+ /** PRESET-014 — preset persona re-applied to the live system prompt. */
985
+ persona?: string;
986
+ /** PRESET-015 — allowlist of command-module names to keep on the live session. */
987
+ enabledCommandModules?: readonly string[];
988
+ /** PRESET-015 — denylist of command-module names to remove from the live session. */
989
+ disabledCommandModules?: readonly string[];
990
+ /** PRESET-016 — runtime gate toggle for subagent dispatch on the live session. */
991
+ enableParallelSubagents?: boolean;
992
+ /** PRESET-017 — toggle the verify-before-done self-verification section on the live prompt. */
993
+ selfVerification?: boolean;
994
+ }
995
+ /** Outcome of {@link applyPresetToSession}: which option groups were re-applied vs. skipped. */
996
+ interface IPresetApplicationResult {
997
+ /** Option-group keys whose value was present and applied to the live session. */
998
+ readonly applied: readonly string[];
999
+ /** Option-group keys absent from the resolved options (left untouched). */
1000
+ readonly skipped: readonly string[];
1001
+ }
1002
+ /**
1003
+ * Re-apply a resolved preset to a live session and record it as the active preset.
1004
+ *
1005
+ * This is the single entry point for live preset switching. It first records the active preset id
1006
+ * (PRESET-011 runtime state) — the runtime's `setActivePresetId` is optional, so it is invoked
1007
+ * defensively. It then re-applies each option group it owns; PRESET-012 applies the permission
1008
+ * posture via the existing `writeCommandPermissionMode` seam, and PRESET-013 re-applies the model
1009
+ * group (`model`/`effort`/`temperature`/`maxOutputTokens`) via the runtime's optional
1010
+ * `applyModelOptions`. PRESET-014 re-applies the `persona` group via the host context's optional
1011
+ * `applyPersona` seam. PRESET-015 re-applies the command-module selection group via the host
1012
+ * context's optional `applyCommandModuleSelection` seam. PRESET-016 toggles the parallel-subagents
1013
+ * runtime gate via the runtime's optional `setParallelSubagentsEnabled` seam. PRESET-017 toggles
1014
+ * the verify-before-done self-verification section via the host context's optional
1015
+ * `applySelfVerification` seam. Groups absent from `options` are left untouched and reported under
1016
+ * `skipped`.
1017
+ */
1018
+ declare function applyPresetToSession(context: ICommandHostContext, presetId: string, options: IPresetApplicationOptions): Promise<IPresetApplicationResult>;
1019
+ //#endregion
937
1020
  //#region src/config/settings-io.d.ts
938
1021
  type TSettingsData = Record<string, TUniversalValue>;
939
1022
  declare function getUserSettingsPath(): string;
@@ -1400,6 +1483,8 @@ declare class SystemCommandExecutor {
1400
1483
  constructor(commands?: ISystemCommand[]);
1401
1484
  /** Register an additional command. */
1402
1485
  register(command: ISystemCommand): void;
1486
+ /** Replace the entire command set (used by live preset command-module re-selection — PRESET-015). */
1487
+ replaceCommands(commands: readonly ISystemCommand[]): void;
1403
1488
  /** Execute a command by name. Returns null if command not found. */
1404
1489
  execute(name: string, session: ICommandHostContext, args: string): Promise<ICommandResult | null>;
1405
1490
  getCommand(name: string): ISystemCommand | undefined;
@@ -1555,6 +1640,8 @@ interface IAgentToolDeps extends IInProcessSubagentRunnerDeps {
1555
1640
  customAgentRegistry?: (name: string) => IAgentDefinition | undefined;
1556
1641
  /** Model-visible and command-visible agent definitions available to this session. */
1557
1642
  agentDefinitions?: IAgentDefinition[];
1643
+ /** PRESET-016 — runtime gate; when present and returns false, subagent dispatch is refused. */
1644
+ isParallelSubagentsEnabled?: () => boolean;
1558
1645
  }
1559
1646
  /** Store agent tool deps keyed by a session (or any object). */
1560
1647
  declare function storeAgentToolDeps(key: object, deps: IAgentToolDeps): void;
@@ -1644,6 +1731,11 @@ declare class SessionHistoryTracker {
1644
1731
  //#endregion
1645
1732
  //#region src/interactive/session-persistence.d.ts
1646
1733
  declare function createProjectSessionStore(cwd: string, fs?: IFileSystem): IInteractiveSessionStore;
1734
+ /**
1735
+ * User-level session store (`~/.robota/sessions`). Symmetric to {@link createProjectSessionStore};
1736
+ * there is no user-level replay-log directory, so it reads persisted records only.
1737
+ */
1738
+ declare function createUserSessionStore(fs?: IFileSystem): IInteractiveSessionStore;
1647
1739
  declare function listResumableSessionSummaries(sessionStore: IInteractiveSessionStore | undefined, cwd: string): IResumableSessionSummary[];
1648
1740
  declare function resolveLatestSessionId(sessionStore: IInteractiveSessionStore | undefined, cwd: string): string | undefined;
1649
1741
  declare function resolveSessionIdByIdOrName(sessionStore: IInteractiveSessionStore | undefined, idOrName: string): string | undefined;
@@ -1661,6 +1753,16 @@ interface IProjectInfo {
1661
1753
  //#endregion
1662
1754
  //#region src/context/system-prompt-builder.d.ts
1663
1755
  interface ISystemPromptParams {
1756
+ /**
1757
+ * Preset persona block (portable personality/behaviour). When set and non-blank it is
1758
+ * composed as a `source: 'persona'` section with priority 5; empty/undefined adds no section.
1759
+ */
1760
+ persona?: string;
1761
+ /**
1762
+ * PRESET-017: when true, a concise verify-before-done directive is composed as a
1763
+ * `source: 'self-verification'` section with priority 6; false/undefined adds no section.
1764
+ */
1765
+ selfVerification?: boolean;
1664
1766
  /** Concatenated AGENTS.md content (may be empty string) */
1665
1767
  agentsMd: string;
1666
1768
  /** Concatenated CLAUDE.md content (may be empty string) */
@@ -1805,6 +1907,18 @@ interface ICreateSessionOptions {
1805
1907
  subagentRunnerFactory?: TSubagentRunnerFactory;
1806
1908
  /** Enable agent tool, agent definitions, and subagent runtime wiring for this session. */
1807
1909
  enableAgentRuntime?: boolean;
1910
+ /**
1911
+ * Preset execution capability: when true the assembly turns on `enableAgentRuntime`
1912
+ * so subagent/background dispatch is active for this session. Threaded from the
1913
+ * preset's `enableParallelSubagents` flag.
1914
+ */
1915
+ enableParallelSubagents?: boolean;
1916
+ /**
1917
+ * Preset execution capability: when true the framework composes a verify-before-done
1918
+ * self-verification section into the system prompt (PRESET-017), as a normal
1919
+ * priority-sorted `source: 'self-verification'` section.
1920
+ */
1921
+ selfVerification?: boolean;
1808
1922
  /** Callback when a tool starts or finishes execution — enables real-time tool display in UI */
1809
1923
  onToolExecution?: (event: {
1810
1924
  type: 'start' | 'end';
@@ -1843,8 +1957,17 @@ interface ICreateSessionOptions {
1843
1957
  deniedTools?: string[];
1844
1958
  /** Override the model from config. When set, takes precedence over config.provider.model. */
1845
1959
  model?: string;
1960
+ /**
1961
+ * Reasoning-effort dial for this session, threaded to the provider request builder.
1962
+ * Resolved from a preset's `effort` (PRESET-008). When unset, the framework→provider
1963
+ * seam defaults it to `'high'`. Native-effort providers map it onto their request
1964
+ * parameter; providers without native effort ignore it as a documented no-op.
1965
+ */
1966
+ effort?: TModelEffort;
1846
1967
  /** Text to append to the generated system prompt. */
1847
1968
  appendSystemPrompt?: string;
1969
+ /** Preset persona block composed as a `source: 'persona'` system-prompt section (priority 5). */
1970
+ persona?: string;
1848
1971
  /** Model command execution bridge. */
1849
1972
  modelCommandExecutor?: (command: string, args: string) => Promise<ICommandResult | null>;
1850
1973
  /** Predicate for commands allowed through the model command execution bridge. */
@@ -1859,11 +1982,28 @@ interface ICreateSessionOptions {
1859
1982
  sandboxClient?: ISandboxClient;
1860
1983
  /** Name reported to the underlying Robota agent config. Defaults to 'agent'. */
1861
1984
  agentName?: string;
1985
+ /** Active preset id selected at startup (PRESET-011 runtime state). Defaults to 'default'. */
1986
+ activePresetId?: string;
1862
1987
  /** Request structured output from the provider for this session. */
1863
1988
  responseFormat?: {
1864
1989
  type: 'text' | 'json_object';
1865
1990
  };
1866
1991
  }
1992
+ /** Result of createSession — session instance plus a system-message rebuilder for context refresh. */
1993
+ interface ICreateSessionResult {
1994
+ session: Session;
1995
+ /**
1996
+ * Rebuild the system message using updated context strings.
1997
+ * Called by staleness detection when AGENTS.md or CLAUDE.md files change between turns.
1998
+ * PRESET-014: an optional `overrides.persona` re-applies a preset persona to the live prompt;
1999
+ * PRESET-017: an optional `overrides.selfVerification` toggles the verify-before-done section.
2000
+ * Either override is retained for subsequent (override-less) rebuilds.
2001
+ */
2002
+ rebuildSystemMessage: (agentsMd: string, claudeMd: string, overrides?: {
2003
+ persona?: string;
2004
+ selfVerification?: boolean;
2005
+ }) => string;
2006
+ }
1867
2007
  //#endregion
1868
2008
  //#region src/assembly/create-tools.d.ts
1869
2009
  /**
@@ -1960,6 +2100,8 @@ interface IInteractiveSessionStandardOptions {
1960
2100
  model?: string;
1961
2101
  /** Text to append to the system prompt. */
1962
2102
  appendSystemPrompt?: string;
2103
+ /** Preset persona block composed as a `source: 'persona'` system-prompt section (priority 5). */
2104
+ persona?: string;
1963
2105
  /** Replace the entire system prompt with this string. Takes precedence over the default builder. */
1964
2106
  systemPrompt?: string;
1965
2107
  /** Override config language (e.g., "ko", "en"). Injected into system prompt. */
@@ -1996,6 +2138,12 @@ interface IInteractiveSessionStandardOptions {
1996
2138
  sandboxSnapshotId?: string;
1997
2139
  /** Name reported to the underlying Robota agent config. Defaults to 'agent'. */
1998
2140
  agentName?: string;
2141
+ /** Active preset id selected at startup (PRESET-011 runtime state). Defaults to 'default'. */
2142
+ activePresetId?: string;
2143
+ /** Preset execution capability: activate agent runtime + subagent/background dispatch. */
2144
+ enableParallelSubagents?: boolean;
2145
+ /** Preset execution capability: run a post-task self-verification step. */
2146
+ selfVerification?: boolean;
1999
2147
  /** Organization policy for enforcing provider restrictions, command blocks, and API key rules. */
2000
2148
  orgPolicy?: IOrgPolicy;
2001
2149
  /** Additional tools registered alongside the default CLI tools. */
@@ -2033,8 +2181,16 @@ interface ICreatedInteractiveSession {
2033
2181
  agentsFileEntries: IContextFileEntry[];
2034
2182
  /** Per-file entries for CLAUDE.md files loaded at startup. Used for staleness detection. */
2035
2183
  claudeFileEntries: IContextFileEntry[];
2036
- /** Rebuilds the system message given updated agentsMd and claudeMd strings. */
2037
- rebuildSystemMessage: (agentsMd: string, claudeMd: string) => string;
2184
+ /**
2185
+ * Rebuilds the system message given updated agentsMd and claudeMd strings. PRESET-014: an
2186
+ * optional `overrides.persona` re-applies a preset persona to the live prompt; PRESET-017: an
2187
+ * optional `overrides.selfVerification` toggles the verify-before-done section. Either override
2188
+ * is retained for subsequent (override-less) rebuilds.
2189
+ */
2190
+ rebuildSystemMessage: (agentsMd: string, claudeMd: string, overrides?: {
2191
+ persona?: string;
2192
+ selfVerification?: boolean;
2193
+ }) => string;
2038
2194
  }
2039
2195
  //#endregion
2040
2196
  //#region src/interactive/interactive-session-skill-router.d.ts
@@ -2051,6 +2207,8 @@ declare class SessionSkillRouter {
2051
2207
  private readonly onBlockingCommand;
2052
2208
  private readonly shellExec?;
2053
2209
  readonly commandExecutor: SystemCommandExecutor;
2210
+ /** Command modules received at construction — retained for live re-selection (PRESET-015). */
2211
+ private readonly allCommandModules;
2054
2212
  private readonly skillCommandSource;
2055
2213
  private readonly commandHostAdapters?;
2056
2214
  private commandInvocationSource;
@@ -2059,6 +2217,8 @@ declare class SessionSkillRouter {
2059
2217
  onForkSkill: (skill: ICommand, args: string, displayInput: string | undefined, qualifiedName: string | undefined, invocation: ISkillActivationEvent['invocation']) => Promise<ISkillExecutionResult>, /** Called for blocking commands — wraps execution with thinking/executing lifecycle */
2060
2218
 
2061
2219
  onBlockingCommand: (execute: () => Promise<ICommandResult>) => Promise<ICommandResult>, shellExec?: TShellExecFn | undefined);
2220
+ /** PRESET-015 — re-filter the session's command modules and rebuild the executor live. */
2221
+ reapplyCommandModuleSelection(enabled: readonly string[] | undefined, disabled: readonly string[] | undefined): void;
2062
2222
  getCommandInvocationSource(): TCommandInvocationSource;
2063
2223
  getCommandHostAdapters(): ICommandHostAdapters;
2064
2224
  listCommands(): Array<{
@@ -2278,6 +2438,25 @@ declare class InteractiveSession extends InteractiveSessionBase implements ISess
2278
2438
  getAutoCompactThresholdSource(): TAutoCompactThresholdSource;
2279
2439
  getAutoCompactThreshold(): number | false;
2280
2440
  getSession(): Session;
2441
+ /**
2442
+ * PRESET-014: re-apply a preset persona to the live system prompt. Recomposes the system
2443
+ * message from the currently tracked AGENTS.md/CLAUDE.md entries (the same content the staleness
2444
+ * refresh uses) plus the new persona, then propagates it to the session. No-op before init,
2445
+ * when the rebuild closure is not yet available.
2446
+ */
2447
+ applyPersona(persona: string): void;
2448
+ /**
2449
+ * PRESET-017: toggle the verify-before-done self-verification section on the live system prompt.
2450
+ * Recomposes the system message from the currently tracked AGENTS.md/CLAUDE.md entries plus the
2451
+ * new selfVerification flag, then propagates it to the session. No-op before init, when the
2452
+ * rebuild closure is not yet available.
2453
+ */
2454
+ applySelfVerification(enabled: boolean): void;
2455
+ /**
2456
+ * PRESET-015: re-apply a preset's command-module selection to the live session by delegating to
2457
+ * the skill router, which re-filters the session-start module set and rebuilds the executor.
2458
+ */
2459
+ applyCommandModuleSelection(enabled: readonly string[] | undefined, disabled: readonly string[] | undefined): void;
2281
2460
  getAgentJobCapability(): IAgentJobHostContext;
2282
2461
  setAutoCompactThreshold(threshold: TAutoCompactThreshold, source?: TAutoCompactThresholdSource): void;
2283
2462
  clearConversationHistory(): void;
@@ -2291,6 +2470,13 @@ declare class InteractiveSession extends InteractiveSessionBase implements ISess
2291
2470
  executeCommand(name: string, args: string): Promise<ICommandResult | null>;
2292
2471
  }
2293
2472
  //#endregion
2473
+ //#region src/interactive/session-naming.d.ts
2474
+ /**
2475
+ * Generate a short session title from the first user message using the active provider.
2476
+ * Falls back to a sanitized form of the message when the model returns nothing usable.
2477
+ */
2478
+ declare function generateSessionName(provider: IAIProvider, firstMessage: string): Promise<string>;
2479
+ //#endregion
2294
2480
  //#region src/query.d.ts
2295
2481
  interface ICreateQueryOptions {
2296
2482
  /** AI provider instance (required). */
@@ -2766,5 +2952,5 @@ interface IStatelessRuntimeConfig {
2766
2952
  }
2767
2953
  declare function createStatelessRuntime(config: IStatelessRuntimeConfig): IAgentRuntime;
2768
2954
  //#endregion
2769
- export { AUTO_COMPACT_THRESHOLD_SETTINGS_KEY, AgentExecutor, BACKGROUND_COMMAND_DESCRIPTION, BACKGROUND_COMMAND_USAGE, BUILT_IN_AGENTS, BackgroundJobOrchestrator, BuiltinCommandSource, BundlePluginInstaller, BundlePluginLoader, CLEAR_COMMAND_DESCRIPTION, CLI_UPDATE_CACHE_TTL_MS, CLI_UPDATE_PACKAGE_NAME, CLI_UPDATE_REGISTRY_URL, CLI_UPDATE_TIMEOUT_MS, COST_COMMAND_DESCRIPTION, CommandRegistry, DEFAULT_AUTO_COMPACT_THRESHOLD, DEFAULT_STATUS_LINE_COMMAND_SETTINGS, EXECUTION_ORIGIN_METADATA_KEYS, EXIT_COMMAND_DESCRIPTION, EditCheckpointStore, HELP_COMMAND_DESCRIPTION, type IActionRequest, type IActionResponse, type IActiveModelChangeOptions, type IActiveModelChangeResult, type IAgentBackgroundTaskRequest, type IAgentDefinition, type IAgentExecutorOptions, type IAgentJobHostContext, type IAgentRuntime, type IAgentRuntimeConfig, type IAgentSession, type IAgentToolDeps, type IAppendMemoryInput, type IAppendMemoryResult, type IBackgroundJobGroupCreateRequest, type IBackgroundJobGroupState, type IBackgroundJobGroupSummary, type IBackgroundJobOrchestratorOptions, type IBackgroundJobResultEnvelope, type IBackgroundProcessToolDeps, type IBackgroundTaskError, type IBackgroundTaskHandle, type IBackgroundTaskInput, type IBackgroundTaskListFilter, type IBackgroundTaskLogCursor, type IBackgroundTaskLogPage, type IBackgroundTaskManager, type IBackgroundTaskManagerOptions, type IBackgroundTaskResult, type IBackgroundTaskRunner, type IBackgroundTaskSpawnerGroupRequest, type IBackgroundTaskStart, type IBackgroundTaskState, type IBaseBackgroundTaskRequest, type IBundlePluginFeatures, type IBundlePluginInstallerOptions, type IBundlePluginManifest, type IBundleSkill, type ICapabilityDescriptor, type ICheckForCliUpdateOptions, type ICliUpdateNotice, type ICommand, type ICommandAvailablePlugin, type ICommandChoicePromptOption, type ICommandExecutionToolDeps, type ICommandHostAdapters, type ICommandHostContext, type ICommandInfo, type ICommandInstalledPlugin, type ICommandInteraction, type ICommandInteractionHint, type ICommandListEntry, type ICommandMarketplaceSource, type ICommandMemoryStores, type ICommandModule, type ICommandPendingMemoryStore, type ICommandPermissionModeAdapter, type ICommandPickerAdapter, type ICommandPluginAdapter, type ICommandPluginReloadResult, type ICommandProcessAdapter, type ICommandProjectMemoryStore, type ICommandResult, type ICommandSessionInfo, type ICommandSessionReplayValidationReport, type ICommandSessionRuntime, type ICommandSettingsAdapter, type ICommandSettingsDocument, type ICommandSkillListEntry, type ICommandSource, type ICompactContextResult, type IConfigurableTransport, type IContextFileRefreshedEvent, type IContextReferenceAddResult, type IContextReferenceClearResult, type IContextReferenceInventoryLimits, type IContextReferenceItem, type IContextReferenceRemoveResult, type IContextReferenceUpsertResult, type ICreateExecutionWorkspaceSnapshotInput, type ICreateExecutionWorkspaceTaskSpawnerOptions, type ICreateLimitedOutputCaptureOptions, type ICreateLineDetailPageInput, type ICreateMainThreadDetailPageInput, type ICreateMainThreadEntryInput, type ICreateQueryOptions, type IDiffLine, type IEditCheckpointFileInspection, type IEditCheckpointFileRecord, type IEditCheckpointInspection, type IEditCheckpointInspectionPlan, type IEditCheckpointManifest, type IEditCheckpointRecorder, type IEditCheckpointRestoreResult, type IEditCheckpointSummary, type IEditCheckpointTurnInput, type IExecutionDetailCursor, type IExecutionDetailPage, type IExecutionDetailRecord, type IExecutionOrigin, type IExecutionResult, type IExecutionWorkspaceEntry, type IExecutionWorkspaceEntryRef, type IExecutionWorkspaceEvent, type IExecutionWorkspaceFilter, type IExecutionWorkspaceSnapshot, type IExecutionWorkspaceSnapshotOptions, type IExecutionWorkspaceTaskSpawner, type IForkExecutionOptions, type IHeadlessSessionOptions, type IInProcessSubagentRunnerDeps, type IInspectUserLocalStorageOptions, type IInstalledPluginRecord, type IInteractionChannel, type IInteractiveRuntime, type IInteractiveRuntimeOptions, type IInteractiveSession, type IInteractiveSessionEvents, type IInteractiveSessionRecord, type IInteractiveSessionShutdownOptions, type IInteractiveSessionStore, type IKnownMarketplaceEntry, type ILegacyProviderSettings, type ILimitedOutputCapture, type ILoadedBundlePlugin, type IMarketplaceClientOptions, type IMarketplaceManifest, type IMarketplacePluginEntry, type IMemoryCandidate, type IMemoryEvent, type IMemoryPendingRecord, type IMemoryReference, type IModelCommandToolProjection, type IOrgPolicy, type IPermissionRequest, type IPermissionsCommandState, type IPickItem, type IPluginSettings, type IPreparedSubagentWorktree, type IProcessBackgroundTaskRequest, type IProjectMemorySummary, type IProjectedCommandExecutionToolsDeps, type IProjectedModelCommandTool, type IPromptExecutorOptions, type IPromptFileReferenceDiagnostic, type IPromptFileReferenceHistoryData, type IPromptFileReferenceLimits, type IPromptFileReferenceRecord, type IPromptFileReferenceResolveOptions, type IPromptFileReferenceToken, type IPromptProvider, type IProviderCommandModuleOptions, type IProviderCommandSettingsAdapter, type IProviderProfileNameSuggestionInput, type IProviderProfileNameSuggestionOptions, type IProviderProfileSettings, type IProviderSettingsBuildOptions, type IProviderSettingsWriteTargetOptions, type IProviderSetupInput, type IProviderSetupPatch, type IProviderSwitchOptions, type IReadProviderSettingsOptions, type IResetUserConfigResult, type IResolveUserLocalStorageRootOptions, type IResolvedConfig, type IResolvedPromptFileReference, type IResolvedPromptFileReferences, type IResumableSessionSummary, type IReversibleExecutionOptions, type IReversibleToolSafetyContext, type IReversibleToolSafetyInput, type IReversibleToolSafetyReport, type ISelfHostingVerificationPlan, type ISelfHostingVerificationPlanInput, type ISelfHostingVerificationStep, type ISerializableProviderProfile, type ISkillActivationEvent, type ISkillActivationHistoryData, type ISkillExecutionCallbacks, type ISkillExecutionResult, type ISpawnAgentTaskRequest, type ISpawnProcessTaskRequest, type IStartupCliUpdatePolicyInput, type IStartupMemory, type IStatelessRuntimeConfig, type IStatusLineCommandSettings, type ISubagentJobHandle, type ISubagentJobResult, type ISubagentJobStart, type ISubagentJobState, type ISubagentManager, type ISubagentManagerOptions, type ISubagentOptions, type ISubagentPromptOptions, type ISubagentRunner, type ISubagentSpawnRequest, type ISubagentWorktreeAdapter, type ISubagentWorktreePrepareRequest, type ISystemCommand, type ITaskContextFile, type ITaskSelectionOptions, type IToolState, type IToolSummary, type ITransportAdapter, type ITransportConfig, type IUpdateCheckCache, type IUpdateTaskFileStatusOptions, type IUsageSnapshot, type IUserLocalMemoryDeleteResult, type IUserLocalMemoryItemOptions, type IUserLocalMemoryItemProjection, type IUserLocalMemoryListOptions, type IUserLocalMemoryListProjection, type IUserLocalMemorySetOptions, type IUserLocalStorageCategoryDefinition, type IUserLocalStorageCategoryProjection, type IUserLocalStorageInspection, type IUserLocalStorageItemSummary, type IWorktreeSubagentRunnerOptions, type InteractionEvent, InteractiveSession, LANGUAGE_COMMAND_ARGUMENT_HINT, LANGUAGE_COMMAND_DESCRIPTION, MEMORY_COMMAND_ARGUMENT_HINT, MEMORY_COMMAND_DESCRIPTION, MEMORY_COMMAND_USAGE, MEMORY_INDEX_MAX_BYTES, MEMORY_INDEX_MAX_LINES, MODEL_COMMAND_TOOL_PREFIX, MarketplaceClient, PERMISSIONS_COMMAND_DESCRIPTION, PERMISSION_MODE_ARGUMENT_HINT, PERMISSION_MODE_COMMAND_DESCRIPTION, PLUGIN_COMMAND_ARGUMENT_HINT, PLUGIN_COMMAND_DESCRIPTION, PROVIDER_SAFE_TOOL_NAME_PATTERN, type ParsedInput, PluginCommandSource, PluginSettingsStore, 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, STATUSLINE_COMMAND_ARGUMENT_HINT, STATUSLINE_COMMAND_DESCRIPTION, SettingsParseError, SkillCommandSource, type SkillPromptContext, SystemCommandExecutor, type TAutoCompactThreshold, type TAutoCompactThresholdSource, type TBackgroundJobGroupEvent, type TBackgroundJobGroupEventListener, type TBackgroundJobGroupIdFactory, type TBackgroundJobGroupStatus, type TBackgroundJobWaitPolicy, type TBackgroundPermissionPolicy, type TBackgroundPrimitive, type TBackgroundTaskErrorCategory, type TBackgroundTaskEvent, type TBackgroundTaskEventListener, type TBackgroundTaskIdFactory, type TBackgroundTaskIsolation, type TBackgroundTaskKind, type TBackgroundTaskMode, type TBackgroundTaskRequest, type TBackgroundTaskRunnerEvent, type TBackgroundTaskStatus, type TBackgroundTaskTimeoutReason, type TBackgroundTaskTransitionEvent, type TCapabilityKind, type TCapabilitySafety, type TCliUpdateCheckResult, type TCommandEffect, type TCommandInteractionPrompt, type TCommandModuleSessionRequirement, type TCommandResultDataValue, type TContextReferenceLoadType, type TContextReferenceStatus, type TEditCheckpointFileRestoreAction, type TEnabledPlugins, type TExecutionAttention, type TExecutionControl, type TExecutionDetailRecordKind, type TExecutionEntryKind, type TExecutionOriginKind, type TExecutionWorkspaceStatus, type TExecutionWorkspaceUpdateCause, type TExecutionWorkspaceVisibility, type TInstalledPluginsRegistry, type TInteractiveEventName, type TInteractivePermissionHandler, type TInteractiveSessionOptions, type TKnownMarketplacesRegistry, type TMarketplaceSource, type TMemoryCandidateStatus, type TMemoryType, type TPermissionResultValue, type TPluginInstallScope, type TPromptFileReferenceDiagnosticCode, type TPromptFileReferenceReason, type TProviderFactory, type TProviderSettingsDocument, type TQueryFunction, type TRecommendedResponseLanguage, type TReversibleExecutionIsolation, type TReversibleRollbackLayer, type TReversibleSafetyStatus, type TReversibleSideEffect, type TSelfHostingLoopEvent, type TSelfHostingLoopState, type TSelfHostingVerificationPhase, type TSessionFactory, type TSettingsCheck, type TSettingsData, type TSettingsScope, type TShellExecFn, type TSkillActivationInvocation, type TSkillActivationMode, type TSkillActivationSource, type TSkillActivationStatus, type TStatusLineCommandSettingsPatch, type TSubagentJobMode, type TSubagentJobStatus, type TSubagentRunnerFactory, type TSystemCommandLifecycle, type TTaskFileStatus, type TUserLocalMemoryCategory, type TUserLocalMemoryCommandExecutionEffect, type TUserLocalStorageCategory, USER_LOCAL_MEMORY_CATEGORIES, USER_LOCAL_STORAGE_CATEGORIES, USER_LOCAL_STORAGE_CATEGORY_DEFINITIONS, VALIDATE_SESSION_COMMAND_DESCRIPTION, VALID_PERMISSION_MODES, addCommandContextReference, applyActiveModelChange, applyProviderConfiguration, applyProviderSwitch, applyStatusLineSettings, assembleSubagentPrompt, buildBackgroundCommandSubcommands, buildLanguageCommandSubcommands, buildMemoryCommandSubcommands, buildPermissionModeSubcommands, buildPluginCommandSubcommands, buildPromptWithFileReferences, buildProviderProfile, buildProviderSetupPatch, buildRewindCommandSubcommands, buildStatusLineCommandSubcommands, cancelCommandBackgroundTask, checkForCliUpdate, checkSettingsDocument, checkSettingsFile, clearCommandContextReferences, clearContextReferences, clearConversationHistory, closeCommandBackgroundTask, compactCommandContext, compareSemverVersions, createAgentRuntime, createAgentTool, createBackgroundGroupExecutionEntryId, createBackgroundProcessTool, createBackgroundTaskExecutionEntryId, createBuiltinCommandModule, createCommandExecutionTool, createCommandMemoryStores, createCommandPendingMemoryStore, createCommandProjectMemoryStore, createContextReferenceItem, createDefaultTools, createExecutionOriginMetadata, createExecutionWorkspaceSnapshot, createExecutionWorkspaceTaskSpawner, createInProcessSubagentRunner, createInteractiveRuntime, createLineDetailPage, createMainThreadDetailPage, createMainThreadExecutionEntryId, createModelCommandToolProjection, createPluginRegistryReloadRequestedEffect, createPluginTuiRequestedEffect, createProjectSessionStore, createProjectedCommandExecutionTools, createPromptFileReferenceHistoryEntry, createProviderFromSettings, createProviderSafeModelCommandToolName, createQuery, createSessionExitRequestedEffect, createSessionPickerRequestedEffect, createSessionRenamedEffect, createStatelessRuntime, createSubagentLogger, createSubagentSession, createSystemCommands, createTestInteractiveSession, deleteProviderProfile, deleteSettings, deleteUserLocalMemoryItem, disableUserLocalMemoryItem, discoverTaskFiles, evaluateReversibleToolSafety, executeSkill, formatCliUpdateCheckMessage, formatCliUpdateNotice, formatCommandBackgroundTask, formatCommandBackgroundTaskList, formatCommandHelpMessage, formatCommandPermissionsMessage, formatCommandSessionReplayValidationReport, formatEnvReference, formatInvalidPermissionModeMessage, formatLanguageUsageMessage, formatOrgPolicyViolationMessage, formatProjectedModelCommandToolPromptDescription, formatPromptFileReferenceDiagnostics, formatTaskContext, getBuiltInAgent, getForkWorkerSuffix, getProviderSettingsPaths, getStartupCliUpdateNotice, getSubagentSuffix, getUserSettingsPath, getUserUpdateCheckCachePath, hasBlockingPromptFileReferenceDiagnostics, hasSensitiveCommandMemoryContent, hasUsableSecretReference, inspectCommandEditCheckpoint, inspectUserLocalMemoryItem, inspectUserLocalStorage, isApiKeyPlaintext, isCommandMemoryType, isEnvReference, isMemoryType, isNewerSemverVersion, isPermissionMode, isSlashCommand, isStatusLineCommandSettingsPatch, listActiveContextReferences, listCommandBackgroundTasks, listCommandContextReferences, listCommandEditCheckpoints, listCommandSessionAllowedTools, listCommandUsedMemoryReferences, listResumableSessionSummaries, listUserLocalMemoryItems, loadOrgPolicy, loadTaskContext, mergeProviderPatch, mergeProviders, mergeSettings, normalizeModelCommandName, parseCommandBackgroundLogCursor, parseExecutionWorkspaceEntryId, parseFrontmatter, parseInput, parseLanguageArgument, parsePermissionModeArgument, parsePromptFileReferences, parseSessionNameArgument, parseTaskFile, planSelfHostingVerification, preprocessShellCommands, probeProviderProfile, projectPaths, promptForApproval, readAutoCompactThreshold, readAutoCompactThresholdSource, readCommandBackgroundTaskLog, readCommandContextState, readCommandPermissionMode, readCommandPermissionsState, readCommandSessionInfo, readCurrentGitBranch, readEnabledUserLocalMemoryItem, readMergedProviderSettings, readMergedProviderSettingsFromPaths, readPackageVersion, readProviderSettings, readSettings, readStatusLineSettings, readUpdateCheckCache, recordCommandMemoryEvent, removeCommandContextReference, removeContextReference, resetAutoCompactThresholdSetting, resetUserConfig, resolveActiveProvider, resolveEnvDefaultProvider, resolveEnvReference, resolveGitBranch, resolveLatestSessionId, resolvePermissionModeAdapter, resolvePluginCommandAdapter, resolvePromptFileReferencePaths, resolvePromptFileReferences, resolveProviderSettingsWriteTargetPath, resolveSessionIdByIdOrName, resolveSettingsPathForScope, resolveSubagentLogDir, resolveUserLocalStorageRoot, restoreCommandEditCheckpoint, retrieveAgentToolDeps, rollbackCommandEditCheckpoint, sanitizeProviderProfileName, selectRelevantTasks, setCommandAutoCompactThreshold, setCurrentProvider, setUserLocalMemoryItem, shouldRunStartupCliUpdateCheck, storeAgentToolDeps, substituteVariables, suggestProviderProfileName, summarizeBackgroundJobGroup, testProviderProfileCommand, toContextReferenceRecords, toPromptFileReferenceRecords, tokeniseSlashCommand, transitionSelfHostingLoop, updateModelInSettings, updateTaskFileStatus, upsertContextReference, upsertProviderProfile, userPaths, validateCommandSessionReplayLog, validateProviderProfile, wrapEditCheckpointTools, wrapReversibleExecutionTools, writeAutoCompactThresholdSetting, writeCommandPermissionMode, writeSettings, writeUpdateCheckCache };
2955
+ export { AUTO_COMPACT_THRESHOLD_SETTINGS_KEY, AgentExecutor, BACKGROUND_COMMAND_DESCRIPTION, BACKGROUND_COMMAND_USAGE, BUILT_IN_AGENTS, BackgroundJobOrchestrator, BuiltinCommandSource, BundlePluginInstaller, BundlePluginLoader, CLEAR_COMMAND_DESCRIPTION, CLI_UPDATE_CACHE_TTL_MS, CLI_UPDATE_PACKAGE_NAME, CLI_UPDATE_REGISTRY_URL, CLI_UPDATE_TIMEOUT_MS, COST_COMMAND_DESCRIPTION, CommandRegistry, DEFAULT_AUTO_COMPACT_THRESHOLD, DEFAULT_STATUS_LINE_COMMAND_SETTINGS, EXECUTION_ORIGIN_METADATA_KEYS, EXIT_COMMAND_DESCRIPTION, EditCheckpointStore, HELP_COMMAND_DESCRIPTION, type IActionRequest, type IActionResponse, type IActiveModelChangeOptions, type IActiveModelChangeResult, type IAgentBackgroundTaskRequest, type IAgentDefinition, type IAgentExecutorOptions, type IAgentJobHostContext, type IAgentRuntime, type IAgentRuntimeConfig, type IAgentSession, type IAgentToolDeps, type IAppendMemoryInput, type IAppendMemoryResult, type IBackgroundJobGroupCreateRequest, type IBackgroundJobGroupState, type IBackgroundJobGroupSummary, type IBackgroundJobOrchestratorOptions, type IBackgroundJobResultEnvelope, type IBackgroundProcessToolDeps, type IBackgroundTaskError, type IBackgroundTaskHandle, type IBackgroundTaskInput, type IBackgroundTaskListFilter, type IBackgroundTaskLogCursor, type IBackgroundTaskLogPage, type IBackgroundTaskManager, type IBackgroundTaskManagerOptions, type IBackgroundTaskResult, type IBackgroundTaskRunner, type IBackgroundTaskSpawnerGroupRequest, type IBackgroundTaskStart, type IBackgroundTaskState, type IBaseBackgroundTaskRequest, type IBundlePluginFeatures, type IBundlePluginInstallerOptions, type IBundlePluginManifest, type IBundleSkill, type ICapabilityDescriptor, type ICheckForCliUpdateOptions, type ICliUpdateNotice, type ICommand, type ICommandAvailablePlugin, type ICommandChoicePromptOption, type ICommandExecutionToolDeps, type ICommandHostAdapters, type ICommandHostContext, type ICommandInfo, type ICommandInstalledPlugin, type ICommandInteraction, type ICommandInteractionHint, type ICommandListEntry, type ICommandMarketplaceSource, type ICommandMemoryStores, type ICommandModule, type ICommandPendingMemoryStore, type ICommandPermissionModeAdapter, type ICommandPickerAdapter, type ICommandPluginAdapter, type ICommandPluginReloadResult, type ICommandProcessAdapter, type ICommandProjectMemoryStore, type ICommandResult, type ICommandSessionInfo, type ICommandSessionReplayValidationReport, type ICommandSessionRuntime, type ICommandSettingsAdapter, type ICommandSettingsDocument, type ICommandSkillListEntry, type ICommandSource, type ICompactContextResult, type IConfigurableTransport, type IContextFileRefreshedEvent, type IContextReferenceAddResult, type IContextReferenceClearResult, type IContextReferenceInventoryLimits, type IContextReferenceItem, type IContextReferenceRemoveResult, type IContextReferenceUpsertResult, type ICreateExecutionWorkspaceSnapshotInput, type ICreateExecutionWorkspaceTaskSpawnerOptions, type ICreateLimitedOutputCaptureOptions, type ICreateLineDetailPageInput, type ICreateMainThreadDetailPageInput, type ICreateMainThreadEntryInput, type ICreateQueryOptions, type ICreateSessionOptions, type ICreateSessionResult, type IDiffLine, type IEditCheckpointFileInspection, type IEditCheckpointFileRecord, type IEditCheckpointInspection, type IEditCheckpointInspectionPlan, type IEditCheckpointManifest, type IEditCheckpointRecorder, type IEditCheckpointRestoreResult, type IEditCheckpointSummary, type IEditCheckpointTurnInput, type IExecutionDetailCursor, type IExecutionDetailPage, type IExecutionDetailRecord, type IExecutionOrigin, type IExecutionResult, type IExecutionWorkspaceEntry, type IExecutionWorkspaceEntryRef, type IExecutionWorkspaceEvent, type IExecutionWorkspaceFilter, type IExecutionWorkspaceSnapshot, type IExecutionWorkspaceSnapshotOptions, type IExecutionWorkspaceTaskSpawner, type IForkExecutionOptions, type IHeadlessSessionOptions, type IInProcessSubagentRunnerDeps, type IInspectUserLocalStorageOptions, type IInstalledPluginRecord, type IInteractionChannel, type IInteractiveRuntime, type IInteractiveRuntimeOptions, type IInteractiveSession, type IInteractiveSessionEvents, type IInteractiveSessionRecord, type IInteractiveSessionShutdownOptions, type IInteractiveSessionStore, type IKnownMarketplaceEntry, type ILegacyProviderSettings, type ILimitedOutputCapture, type ILoadedBundlePlugin, type IMarketplaceClientOptions, type IMarketplaceManifest, type IMarketplacePluginEntry, type IMemoryCandidate, type IMemoryEvent, type IMemoryPendingRecord, type IMemoryReference, type IModelCommandToolProjection, type IModelReapplyOptions, type IOrgPolicy, type IPermissionRequest, type IPermissionsCommandState, type IPickItem, type IPluginSettings, type IPreparedSubagentWorktree, type IPresetApplicationOptions, type IPresetApplicationResult, type IProcessBackgroundTaskRequest, type IProjectMemorySummary, type IProjectedCommandExecutionToolsDeps, type IProjectedModelCommandTool, type IPromptExecutorOptions, type IPromptFileReferenceDiagnostic, type IPromptFileReferenceHistoryData, type IPromptFileReferenceLimits, type IPromptFileReferenceRecord, type IPromptFileReferenceResolveOptions, type IPromptFileReferenceToken, type IPromptProvider, type IProviderCommandModuleOptions, type IProviderCommandSettingsAdapter, type IProviderProfileNameSuggestionInput, type IProviderProfileNameSuggestionOptions, type IProviderProfileSettings, type IProviderSettingsBuildOptions, type IProviderSettingsWriteTargetOptions, type IProviderSetupInput, type IProviderSetupPatch, type IProviderSwitchOptions, type IReadProviderSettingsOptions, type IResetUserConfigResult, type IResolveUserLocalStorageRootOptions, type IResolvedConfig, type IResolvedPromptFileReference, type IResolvedPromptFileReferences, type IResumableSessionSummary, type IReversibleExecutionOptions, type IReversibleToolSafetyContext, type IReversibleToolSafetyInput, type IReversibleToolSafetyReport, type ISelfHostingVerificationPlan, type ISelfHostingVerificationPlanInput, type ISelfHostingVerificationStep, type ISerializableProviderProfile, type ISkillActivationEvent, type ISkillActivationHistoryData, type ISkillExecutionCallbacks, type ISkillExecutionResult, type ISpawnAgentTaskRequest, type ISpawnProcessTaskRequest, type IStartupCliUpdatePolicyInput, type IStartupMemory, type IStatelessRuntimeConfig, type IStatusLineCommandSettings, type ISubagentJobHandle, type ISubagentJobResult, type ISubagentJobStart, type ISubagentJobState, type ISubagentManager, type ISubagentManagerOptions, type ISubagentOptions, type ISubagentPromptOptions, type ISubagentRunner, type ISubagentSpawnRequest, type ISubagentWorktreeAdapter, type ISubagentWorktreePrepareRequest, type ISystemCommand, type ITaskContextFile, type ITaskSelectionOptions, type IToolState, type IToolSummary, type ITransportAdapter, type ITransportConfig, type IUpdateCheckCache, type IUpdateTaskFileStatusOptions, type IUsageSnapshot, type IUserLocalMemoryDeleteResult, type IUserLocalMemoryItemOptions, type IUserLocalMemoryItemProjection, type IUserLocalMemoryListOptions, type IUserLocalMemoryListProjection, type IUserLocalMemorySetOptions, type IUserLocalStorageCategoryDefinition, type IUserLocalStorageCategoryProjection, type IUserLocalStorageInspection, type IUserLocalStorageItemSummary, type IWorktreeSubagentRunnerOptions, type InteractionEvent, InteractiveSession, LANGUAGE_COMMAND_ARGUMENT_HINT, LANGUAGE_COMMAND_DESCRIPTION, MEMORY_COMMAND_ARGUMENT_HINT, MEMORY_COMMAND_DESCRIPTION, MEMORY_COMMAND_USAGE, MEMORY_INDEX_MAX_BYTES, MEMORY_INDEX_MAX_LINES, MODEL_COMMAND_TOOL_PREFIX, MarketplaceClient, PERMISSIONS_COMMAND_DESCRIPTION, PERMISSION_MODE_ARGUMENT_HINT, PERMISSION_MODE_COMMAND_DESCRIPTION, PLUGIN_COMMAND_ARGUMENT_HINT, PLUGIN_COMMAND_DESCRIPTION, PROVIDER_SAFE_TOOL_NAME_PATTERN, type ParsedInput, PluginCommandSource, PluginSettingsStore, 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, STATUSLINE_COMMAND_ARGUMENT_HINT, STATUSLINE_COMMAND_DESCRIPTION, SettingsParseError, SkillCommandSource, type SkillPromptContext, SystemCommandExecutor, type TAutoCompactThreshold, type TAutoCompactThresholdSource, type TBackgroundJobGroupEvent, type TBackgroundJobGroupEventListener, type TBackgroundJobGroupIdFactory, type TBackgroundJobGroupStatus, type TBackgroundJobWaitPolicy, type TBackgroundPermissionPolicy, type TBackgroundPrimitive, type TBackgroundTaskErrorCategory, type TBackgroundTaskEvent, type TBackgroundTaskEventListener, type TBackgroundTaskIdFactory, type TBackgroundTaskIsolation, type TBackgroundTaskKind, type TBackgroundTaskMode, type TBackgroundTaskRequest, type TBackgroundTaskRunnerEvent, type TBackgroundTaskStatus, type TBackgroundTaskTimeoutReason, type TBackgroundTaskTransitionEvent, type TCapabilityKind, type TCapabilitySafety, type TCliUpdateCheckResult, type TCommandEffect, type TCommandInteractionPrompt, type TCommandModuleSessionRequirement, type TCommandResultDataValue, type TContextReferenceLoadType, type TContextReferenceStatus, type TEditCheckpointFileRestoreAction, type TEnabledPlugins, type TExecutionAttention, type TExecutionControl, type TExecutionDetailRecordKind, type TExecutionEntryKind, type TExecutionOriginKind, type TExecutionWorkspaceStatus, type TExecutionWorkspaceUpdateCause, type TExecutionWorkspaceVisibility, type TInstalledPluginsRegistry, type TInteractiveEventName, type TInteractivePermissionHandler, type TInteractiveSessionOptions, type TKnownMarketplacesRegistry, type TMarketplaceSource, type TMemoryCandidateStatus, type TMemoryType, type TPermissionResultValue, type TPluginInstallScope, type TPromptFileReferenceDiagnosticCode, type TPromptFileReferenceReason, type TProviderFactory, type TProviderSettingsDocument, type TQueryFunction, type TRecommendedResponseLanguage, type TReversibleExecutionIsolation, type TReversibleRollbackLayer, type TReversibleSafetyStatus, type TReversibleSideEffect, type TSelfHostingLoopEvent, type TSelfHostingLoopState, type TSelfHostingVerificationPhase, type TSessionFactory, type TSettingsCheck, type TSettingsData, type TSettingsScope, type TShellExecFn, type TSkillActivationInvocation, type TSkillActivationMode, type TSkillActivationSource, type TSkillActivationStatus, type TStatusLineCommandSettingsPatch, type TSubagentJobMode, type TSubagentJobStatus, type TSubagentRunnerFactory, type TSystemCommandLifecycle, type TTaskFileStatus, type TUserLocalMemoryCategory, type TUserLocalMemoryCommandExecutionEffect, type TUserLocalStorageCategory, USER_LOCAL_MEMORY_CATEGORIES, USER_LOCAL_STORAGE_CATEGORIES, USER_LOCAL_STORAGE_CATEGORY_DEFINITIONS, VALIDATE_SESSION_COMMAND_DESCRIPTION, VALID_PERMISSION_MODES, addCommandContextReference, applyActiveModelChange, applyPresetToSession, applyProviderConfiguration, applyProviderSwitch, applyStatusLineSettings, assembleSubagentPrompt, buildBackgroundCommandSubcommands, buildLanguageCommandSubcommands, buildMemoryCommandSubcommands, buildPermissionModeSubcommands, buildPluginCommandSubcommands, buildPromptWithFileReferences, buildProviderProfile, buildProviderSetupPatch, buildRewindCommandSubcommands, buildStatusLineCommandSubcommands, cancelCommandBackgroundTask, checkForCliUpdate, checkSettingsDocument, checkSettingsFile, clearCommandContextReferences, clearContextReferences, clearConversationHistory, closeCommandBackgroundTask, compactCommandContext, compareSemverVersions, createAgentRuntime, createAgentTool, createBackgroundGroupExecutionEntryId, createBackgroundProcessTool, createBackgroundTaskExecutionEntryId, createBuiltinCommandModule, createCommandExecutionTool, createCommandMemoryStores, createCommandPendingMemoryStore, createCommandProjectMemoryStore, createContextReferenceItem, createDefaultTools, createExecutionOriginMetadata, createExecutionWorkspaceSnapshot, createExecutionWorkspaceTaskSpawner, createInProcessSubagentRunner, createInteractiveRuntime, createLineDetailPage, createMainThreadDetailPage, createMainThreadExecutionEntryId, createModelCommandToolProjection, createPluginRegistryReloadRequestedEffect, createPluginTuiRequestedEffect, createProjectSessionStore, createProjectedCommandExecutionTools, createPromptFileReferenceHistoryEntry, createProviderFromSettings, createProviderSafeModelCommandToolName, createQuery, createSessionExitRequestedEffect, createSessionPickerRequestedEffect, createSessionRenamedEffect, createStatelessRuntime, createSubagentLogger, createSubagentSession, createSystemCommands, createTestInteractiveSession, createUserSessionStore, deleteProviderProfile, deleteSettings, deleteUserLocalMemoryItem, disableUserLocalMemoryItem, discoverTaskFiles, evaluateReversibleToolSafety, executeSkill, formatCliUpdateCheckMessage, formatCliUpdateNotice, formatCommandBackgroundTask, formatCommandBackgroundTaskList, formatCommandHelpMessage, formatCommandPermissionsMessage, formatCommandSessionReplayValidationReport, formatEnvReference, formatInvalidPermissionModeMessage, formatLanguageUsageMessage, formatOrgPolicyViolationMessage, formatProjectedModelCommandToolPromptDescription, formatPromptFileReferenceDiagnostics, formatTaskContext, generateSessionName, getBuiltInAgent, getForkWorkerSuffix, getProviderSettingsPaths, getStartupCliUpdateNotice, getSubagentSuffix, getUserSettingsPath, getUserUpdateCheckCachePath, hasBlockingPromptFileReferenceDiagnostics, hasSensitiveCommandMemoryContent, hasUsableSecretReference, inspectCommandEditCheckpoint, inspectUserLocalMemoryItem, inspectUserLocalStorage, isApiKeyPlaintext, isCommandMemoryType, isEnvReference, isMemoryType, isNewerSemverVersion, isPermissionMode, isSlashCommand, isStatusLineCommandSettingsPatch, listActiveContextReferences, listCommandBackgroundTasks, listCommandContextReferences, listCommandEditCheckpoints, listCommandSessionAllowedTools, listCommandUsedMemoryReferences, listResumableSessionSummaries, listUserLocalMemoryItems, loadOrgPolicy, loadTaskContext, mergeProviderPatch, mergeProviders, mergeSettings, normalizeModelCommandName, parseCommandBackgroundLogCursor, parseExecutionWorkspaceEntryId, parseFrontmatter, parseInput, parseLanguageArgument, parsePermissionModeArgument, parsePromptFileReferences, parseSessionNameArgument, parseTaskFile, planSelfHostingVerification, preprocessShellCommands, probeProviderProfile, projectPaths, promptForApproval, readAutoCompactThreshold, readAutoCompactThresholdSource, readCommandBackgroundTaskLog, readCommandContextState, readCommandPermissionMode, readCommandPermissionsState, readCommandSessionInfo, readCurrentGitBranch, readEnabledUserLocalMemoryItem, readMergedProviderSettings, readMergedProviderSettingsFromPaths, readPackageVersion, readProviderSettings, readSettings, readStatusLineSettings, readUpdateCheckCache, recordCommandMemoryEvent, removeCommandContextReference, removeContextReference, resetAutoCompactThresholdSetting, resetUserConfig, resolveActiveProvider, resolveEnvDefaultProvider, resolveEnvReference, resolveGitBranch, resolveLatestSessionId, resolvePermissionModeAdapter, resolvePluginCommandAdapter, resolvePromptFileReferencePaths, resolvePromptFileReferences, resolveProviderSettingsWriteTargetPath, resolveSessionIdByIdOrName, resolveSettingsPathForScope, resolveSubagentLogDir, resolveUserLocalStorageRoot, restoreCommandEditCheckpoint, retrieveAgentToolDeps, rollbackCommandEditCheckpoint, sanitizeProviderProfileName, selectRelevantTasks, setCommandAutoCompactThreshold, setCurrentProvider, setUserLocalMemoryItem, shouldRunStartupCliUpdateCheck, storeAgentToolDeps, substituteVariables, suggestProviderProfileName, summarizeBackgroundJobGroup, testProviderProfileCommand, toContextReferenceRecords, toPromptFileReferenceRecords, tokeniseSlashCommand, transitionSelfHostingLoop, updateModelInSettings, updateTaskFileStatus, upsertContextReference, upsertProviderProfile, userPaths, validateCommandSessionReplayLog, validateProviderProfile, wrapEditCheckpointTools, wrapReversibleExecutionTools, writeAutoCompactThresholdSetting, writeCommandPermissionMode, writeSettings, writeUpdateCheckCache };
2770
2956
  //# sourceMappingURL=index.d.ts.map