@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.
- package/CHANGELOG.md +2309 -0
- package/README.md +285 -531
- package/dist/node/{createInteractiveRuntime-Bmh2KYP6.d.ts → createInteractiveRuntime-3MZpPTdw.d.ts} +547 -92
- package/dist/node/createInteractiveRuntime-3MZpPTdw.d.ts.map +1 -0
- package/dist/node/{createInteractiveRuntime-BDuatsdk.d.cts → createInteractiveRuntime-C6lQfeH_.d.cts} +547 -92
- package/dist/node/createInteractiveRuntime-C6lQfeH_.d.cts.map +1 -0
- package/dist/node/index.cjs +17 -17
- package/dist/node/index.d.cts +512 -14
- package/dist/node/index.d.cts.map +1 -1
- package/dist/node/index.d.ts +512 -14
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js +24 -24
- package/dist/node/index.js.map +1 -1
- package/dist/node/interactive-CPam6fsH.js +128 -0
- package/dist/node/interactive-CPam6fsH.js.map +1 -0
- package/dist/node/interactive-CeUdJtQB.cjs +127 -0
- package/dist/node/testing/index.cjs +2 -2
- package/dist/node/testing/index.d.cts +1 -1
- package/dist/node/testing/index.d.cts.map +1 -1
- package/dist/node/testing/index.d.ts +1 -1
- package/dist/node/testing/index.d.ts.map +1 -1
- package/dist/node/testing/index.js +2 -2
- package/dist/node/testing/index.js.map +1 -1
- package/package.json +27 -21
- package/dist/node/createInteractiveRuntime-BDuatsdk.d.cts.map +0 -1
- package/dist/node/createInteractiveRuntime-Bmh2KYP6.d.ts.map +0 -1
- package/dist/node/interactive-D5K9ak2P.cjs +0 -122
- package/dist/node/interactive-DnPmdeU0.js +0 -123
- package/dist/node/interactive-DnPmdeU0.js.map +0 -1
package/dist/node/{createInteractiveRuntime-Bmh2KYP6.d.ts → createInteractiveRuntime-3MZpPTdw.d.ts}
RENAMED
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
import { IAIProvider, IContextWindowState, IFileSystem, IFileSystemAsync, IHistoryEntry, IHookInput, IHookTypeExecutor, IProviderDefinition, IProviderDefinitionConfig, IProviderProbeResult, IProviderProfileConfig, IResponseFormatConfig, ISession, ITerminalOutput, IToolExecutionResult, IToolResultSpillStore, IToolSchema, IToolWithEventService, IUserInteraction, TActionResponse, TBackgroundPermissionPolicy, TGuardrail, THookDefinition, THookOutcome, THooksConfig, TModelEffort, TModelEffortSelection, TPermissionMode, TRoleModelMap, TSessionEndReason, TSubprocessTraceClass, TToolArgs, TToolParameters, TUniversalMessage, TUniversalValue } from "@robota-sdk/agent-core";
|
|
2
|
-
import { IActiveBranchPointer, IBranchEvent, ICompactEvent, IContextReferenceItem, IExecutionResult, IExecutionResult as IExecutionResult$2, IGoalState, IInteractionChannel as IInteractionChannel$1, IInteractiveSession as IInteractiveSession$1, IInteractiveSessionEvents as IInteractiveSessionEvents$1, IInteractiveSessionRecord, IInteractiveSessionRecord as IInteractiveSessionRecord$1, IInteractiveSessionStore, IInteractiveSessionStore as IInteractiveSessionStore$1, IMemoryEvent, IMemoryReference, IPeerTurnContext, IPlanArtifact, IPromptFileReferenceRecord, IPromptHistorySource, IPromptHistoryWriter, IResumableSessionSummary, ISessionListEntry, ISessionLoopState, ISkillActivationEvent, ISubmitOptions, ITerminalHandoff, IToolState, IToolSummary, ITurnHandle, TContextReferenceLoadType, TContextReferenceStatus, TDriverId, TGoalStopReason, TInteractiveEventName as TInteractiveEventName$1, TInteractivePermissionHandler, TMemoryType, TPermissionResultValue, TPermissionResultValue as TPermissionResultValue$1, TPromptFileReferenceReason, TSessionLoadOutcome, TTurnNotRunReason, TTurnSource } from "@robota-sdk/agent-interface-session";
|
|
2
|
+
import { IActiveBranchPointer, IBranchEvent, ICompactEvent, IContextReferenceItem, IExecutionResult, IExecutionResult as IExecutionResult$2, IGoalState, IHistoryDisplaySegment, IInteractionChannel as IInteractionChannel$1, IInteractiveSession as IInteractiveSession$1, IInteractiveSessionEvents as IInteractiveSessionEvents$1, IInteractiveSessionRecord, IInteractiveSessionRecord as IInteractiveSessionRecord$1, IInteractiveSessionStore, IInteractiveSessionStore as IInteractiveSessionStore$1, IMemoryEvent, IMemoryReference, IModelCatalogEntry, IModelListSnapshot, IPeerTurnContext, IPlanArtifact, IPromptFileReferenceRecord, IPromptHistorySource, IPromptHistoryWriter, IResumableSessionSummary, ISessionListEntry, ISessionLoopState, ISessionProjectRead, ISessionStatusSnapshot, ISettingsProvidersSection, ISkillActivationEvent, ISubmitOptions, ITerminalHandoff, IToolState, IToolSummary, ITurnHandle, TContextReferenceLoadType, TContextReferenceStatus, TDriverId, TGoalStopReason, TInteractiveEventName as TInteractiveEventName$1, TInteractivePermissionHandler, TMemoryType, TPermissionResultValue, TPermissionResultValue as TPermissionResultValue$1, TProjectDiffRead, TProjectMemoryRead, TProjectStatusRead, TPromptFileReferenceReason, TSessionLoadOutcome, TSessionLoadOutcome as TSessionLoadOutcome$1, TTurnNotRunReason, TTurnSource, TWaitingLoopStopOutcome } from "@robota-sdk/agent-interface-session";
|
|
3
3
|
import { IBackgroundTaskManager, IBackgroundTaskRunner, IBackgroundTaskRunner as IBackgroundTaskRunner$1, IScheduleEditPatch, ISubagentManager, ISubagentRunner, TObserverFailureReporter } from "@robota-sdk/agent-executor";
|
|
4
4
|
import { IRetrievalAdapter, ISandboxClient, IWorkspaceManifest, createZodFunctionTool } from "@robota-sdk/agent-tools";
|
|
5
5
|
import { z } from "zod";
|
|
6
|
-
import { FileSessionLogger, IExternalPayloadReference, IExternalPayloadSink, IExternalPayloadSource, INodeToolResultSpillStoreOptions, IPermissionDenial, ISessionLogSink, ISessionLogSource, ISessionLogger, ISessionReplayValidationResult, ITerminalOutput as ITerminalOutput$1, Session, TAutoCompactThreshold, TAutoCompactThreshold as TAutoCompactThreshold$2, TPermissionHandler, TPermissionResult } from "@robota-sdk/agent-session";
|
|
6
|
+
import { FileSessionLogger, ICommandSandboxApproval, IExternalPayloadReference, IExternalPayloadSink, IExternalPayloadSource, INodeToolResultSpillStoreOptions, IPermissionDenial, ISessionLogSink, ISessionLogSource, ISessionLogger, ISessionReplayValidationResult, ITerminalOutput as ITerminalOutput$1, Session, TAutoCompactThreshold, TAutoCompactThreshold as TAutoCompactThreshold$2, TPermissionHandler, TPermissionResult } from "@robota-sdk/agent-session";
|
|
7
7
|
import { LineCounter } from "yaml";
|
|
8
|
-
import { ITransportAdapter } from "@robota-sdk/agent-interface-transport";
|
|
8
|
+
import { IAccessTokenVerifier, IAccessTokenVerifierConfig, IExternalEventGrant, ITransportAdapter, TExternalEventAuditRecord, TExternalEventRefusal } from "@robota-sdk/agent-interface-transport";
|
|
9
9
|
import { IPeerMessageAck, IPeerMessageIngress, IPeerOrigin, TWorkspaceRelation } from "@robota-sdk/agent-interface-session-mobility";
|
|
10
|
-
import { IAppearanceSettings, ICapabilityDescriptor, ICommand, ICommandListEntry, ICommandListEntry as ICommandListEntry$1, ICommandPluginAdapter, ICommandResult as ICommandResult$1, ICommandSource, ISkillExecutionPort, IStatusLineCommandSettings, TAppearanceSettingsPatch, TCapabilitySafety, TCommandHostAction, TCommandInvocationSource, TCommandInvocationSource as TCommandInvocationSource$1, TCommandUiIntent, TStatusLineCommandSettingsPatch } from "@robota-sdk/agent-interface-command";
|
|
10
|
+
import { IAppearanceSettings, ICapabilityDescriptor, ICommand, ICommandListEntry, ICommandListEntry as ICommandListEntry$1, ICommandPluginAdapter, ICommandResult as ICommandResult$1, ICommandSkillListEntry, ICommandSource, ISkillExecutionPort, IStatusLineCommandSettings, TAppearanceSettingsPatch, TCapabilitySafety, TCommandHostAction, TCommandInvocationSource, TCommandInvocationSource as TCommandInvocationSource$1, TCommandRunner, TCommandSurface, TCommandSurfaceLocality, TCommandSurfaceLocality as TCommandSurfaceLocality$1, TCommandUiIntent, TStatusLineCommandSettingsPatch } from "@robota-sdk/agent-interface-command";
|
|
11
11
|
import { ILivePromptContentBatch, ILivePromptContentPolicy, ILivePromptTraceBatch, IUsageSource } from "@robota-sdk/agent-interface-analytics";
|
|
12
|
-
import { IAgentBackgroundTaskRequest, IBackgroundJobGroupCreateRequest, IBackgroundJobGroupCreateRequest as IBackgroundJobGroupCreateRequest$1, IBackgroundJobGroupState, IBackgroundJobGroupState as IBackgroundJobGroupState$1, IBackgroundJobGroupSummary, IBackgroundTaskInput, IBackgroundTaskListFilter, IBackgroundTaskLogCursor, IBackgroundTaskLogPage, IBackgroundTaskState, ICreateExecutionWorkspaceSnapshotInput, ICreateLineDetailPageInput, ICreateMainThreadDetailPageInput, IExecutionDetailCursor, IExecutionDetailPage, IExecutionOrigin, IExecutionOrigin as IExecutionOrigin$1, IExecutionPendingRequest, IExecutionPendingRequest as IExecutionPendingRequest$1, IExecutionWorkspaceEntry, IExecutionWorkspaceEntryRef, IExecutionWorkspaceFilter, IExecutionWorkspaceSnapshot, IExecutionWorkspaceSnapshot as IExecutionWorkspaceSnapshot$1, IExecutionWorkspaceSnapshotOptions, ISubagentJobResult, ISubagentJobState, TBackgroundJobGroupEvent, TBackgroundJobGroupEvent as TBackgroundJobGroupEvent$1, TBackgroundJobGroupEventListener, TBackgroundJobGroupIdFactory, TBackgroundPrimitive, TBackgroundTaskEvent, TBackgroundTaskIsolation, TBackgroundTaskMode, TExecutionWorkspaceUpdateCause } from "@robota-sdk/agent-interface-execution";
|
|
12
|
+
import { IAgentBackgroundTaskRequest, IBackgroundJobGroupCreateRequest, IBackgroundJobGroupCreateRequest as IBackgroundJobGroupCreateRequest$1, IBackgroundJobGroupState, IBackgroundJobGroupState as IBackgroundJobGroupState$1, IBackgroundJobGroupSummary, IBackgroundTaskInput, IBackgroundTaskListFilter, IBackgroundTaskLogCursor, IBackgroundTaskLogPage, IBackgroundTaskState, ICreateExecutionWorkspaceSnapshotInput, ICreateLineDetailPageInput, ICreateMainThreadDetailPageInput, IExecutionDetailCursor, IExecutionDetailPage, IExecutionOrigin, IExecutionOrigin as IExecutionOrigin$1, IExecutionPendingRequest, IExecutionPendingRequest as IExecutionPendingRequest$1, IExecutionSelfPacedLoopSummary, IExecutionWorkspaceEntry, IExecutionWorkspaceEntryRef, IExecutionWorkspaceFilter, IExecutionWorkspaceSnapshot, IExecutionWorkspaceSnapshot as IExecutionWorkspaceSnapshot$1, IExecutionWorkspaceSnapshotOptions, ISubagentJobResult, ISubagentJobState, TBackgroundJobGroupEvent, TBackgroundJobGroupEvent as TBackgroundJobGroupEvent$1, TBackgroundJobGroupEventListener, TBackgroundJobGroupIdFactory, TBackgroundPrimitive, TBackgroundTaskEvent, TBackgroundTaskIsolation, TBackgroundTaskMode, TExecutionWorkspaceUpdateCause } from "@robota-sdk/agent-interface-execution";
|
|
13
13
|
//#region src/effort/effort-resolution.d.ts
|
|
14
14
|
type TEffortSelection = TModelEffort | 'auto';
|
|
15
15
|
type TEffortSource = 'command' | 'flag' | 'environment' | 'settings' | 'preset' | 'model-default';
|
|
16
16
|
type TEffortDisposition = 'applied' | 'model-default' | 'clamped' | 'not-applied';
|
|
17
|
+
/**
|
|
18
|
+
* #3282 §2 — the plain label for each effort selection, shared by every surface that reports an
|
|
19
|
+
* effort choice or change: `/effort`'s own outcome text, the TUI/GUI pickers, and headless `/goal`
|
|
20
|
+
* output (`transport-host/headless/headless-output.ts`). Lives here (not in `agent-command`, which
|
|
21
|
+
* depends on this package) so `agent-framework`'s own headless output can use it without a circular
|
|
22
|
+
* dependency; `agent-command`'s `effort-command.ts` re-exports it unchanged.
|
|
23
|
+
*/
|
|
24
|
+
declare const EFFORT_LEVEL_LABELS: Readonly<Record<TEffortSelection, string>>;
|
|
17
25
|
interface IModelEffortResolution {
|
|
18
26
|
readonly requested: TEffortSelection;
|
|
19
27
|
readonly effective: TModelEffort;
|
|
@@ -42,6 +50,7 @@ interface IProviderErrorGuidance {
|
|
|
42
50
|
readonly forbidden?: string;
|
|
43
51
|
readonly rateLimit?: string;
|
|
44
52
|
readonly network?: string;
|
|
53
|
+
readonly modelUnavailable?: string;
|
|
45
54
|
}
|
|
46
55
|
//#endregion
|
|
47
56
|
//#region src/agents/agent-definition-types.d.ts
|
|
@@ -74,7 +83,18 @@ interface IAgentDefinition {
|
|
|
74
83
|
tools?: string[];
|
|
75
84
|
/** Denylist of tool names. These tools are removed from the inherited set. */
|
|
76
85
|
disallowedTools?: string[];
|
|
86
|
+
/**
|
|
87
|
+
* #3282 §4: where this definition came from, in plain words a person picking an agent can read —
|
|
88
|
+
* a discovered file's path (`AgentDefinitionLoader`), or absent for the built-in tier (a pack
|
|
89
|
+
* injection composed ahead of `BUILT_IN_AGENTS` included — see `buildAgentRuntime`). A reader that
|
|
90
|
+
* wants a label for every agent, built-in included, falls back to `DEFAULT_AGENT_DEFINED_IN`.
|
|
91
|
+
*/
|
|
92
|
+
definedIn?: string;
|
|
77
93
|
}
|
|
94
|
+
/** The plain-words source shown for an agent definition that carries no `definedIn` of its own. */
|
|
95
|
+
declare const DEFAULT_AGENT_DEFINED_IN = "Built-in";
|
|
96
|
+
/** The agent type `/agent <prompt>` falls back to when none is named or selected as default. */
|
|
97
|
+
declare const DEFAULT_AGENT_TYPE = "general-purpose";
|
|
78
98
|
//#endregion
|
|
79
99
|
//#region src/checkpoints/edit-checkpoint-types.d.ts
|
|
80
100
|
interface IEditCheckpointRecorder {
|
|
@@ -153,16 +173,6 @@ interface IOrgPolicy {
|
|
|
153
173
|
}
|
|
154
174
|
//#endregion
|
|
155
175
|
//#region src/command-api/host-context-types.d.ts
|
|
156
|
-
interface ICommandSkillListEntry {
|
|
157
|
-
readonly name: string;
|
|
158
|
-
readonly description: string;
|
|
159
|
-
readonly source: string;
|
|
160
|
-
readonly modelInvocable: boolean;
|
|
161
|
-
readonly userInvocable: boolean;
|
|
162
|
-
readonly argumentHint?: string;
|
|
163
|
-
readonly context?: string;
|
|
164
|
-
readonly agent?: string;
|
|
165
|
-
}
|
|
166
176
|
interface ICommandSkillActivationRequest {
|
|
167
177
|
readonly invocationSource: TCommandInvocationSource$1;
|
|
168
178
|
readonly displayInput?: string;
|
|
@@ -460,10 +470,25 @@ declare function createExecutionWorkspaceTaskSpawner(options: ICreateExecutionWo
|
|
|
460
470
|
//#region src/command-api/agent-job-roles.d.ts
|
|
461
471
|
/** Starting, steering and ending subagent jobs. */
|
|
462
472
|
interface IAgentJobDispatch {
|
|
473
|
+
/**
|
|
474
|
+
* #3282 §4: the agent switcher's roster — `definedIn` is a plain-words location (a discovered
|
|
475
|
+
* file's path, or "Built-in") a person picking an agent can read.
|
|
476
|
+
*/
|
|
463
477
|
listAgentDefinitions(): Array<{
|
|
464
478
|
name: string;
|
|
465
479
|
description: string;
|
|
480
|
+
definedIn: string;
|
|
466
481
|
}>;
|
|
482
|
+
/**
|
|
483
|
+
* #3282 §4: the agent type `/agent <name>` (no prompt) currently selects — the agent switcher
|
|
484
|
+
* shows it checked. Never throws; a host without the agent runtime just has the fallback default.
|
|
485
|
+
*/
|
|
486
|
+
getDefaultAgentType(): string;
|
|
487
|
+
/**
|
|
488
|
+
* #3282 §4: `/agent <name>` (bare, no prompt) sets this — the agent type used as the default
|
|
489
|
+
* `agentType` whenever one is not otherwise named. Throws if the agent runtime is unavailable.
|
|
490
|
+
*/
|
|
491
|
+
setDefaultAgentType(agentType: string): void;
|
|
467
492
|
listAgentJobs(): ISubagentJobState[];
|
|
468
493
|
spawnAgentJob(input: {
|
|
469
494
|
agentType: string;
|
|
@@ -546,7 +571,7 @@ interface IAgentJobMonitors {
|
|
|
546
571
|
interface IAgentJobLogs {
|
|
547
572
|
readBackgroundTaskLog(taskId: string, cursor?: IBackgroundTaskLogCursor): Promise<IBackgroundTaskLogPage>;
|
|
548
573
|
}
|
|
549
|
-
/** Aggregate
|
|
574
|
+
/** Aggregate of the five role interfaces above, kept source-compatible. Declare a role port instead of this. */
|
|
550
575
|
interface IAgentJobHostContext extends IAgentJobDispatch, IAgentJobGroups, IAgentJobSchedules, IAgentJobMonitors, IAgentJobLogs {}
|
|
551
576
|
//#endregion
|
|
552
577
|
//#region src/command-api/preset/preset-application-types.d.ts
|
|
@@ -857,7 +882,57 @@ declare function createUserPromptHistoryFile(history: string): IPromptHistoryWri
|
|
|
857
882
|
*/
|
|
858
883
|
declare function createUserSessionStore(sessions: string): IInteractiveSessionStore$1;
|
|
859
884
|
declare function listResumableSessionSummaries(sessionStore: IInteractiveSessionStore$1 | undefined, cwd: string): IResumableSessionSummary[];
|
|
885
|
+
/**
|
|
886
|
+
* The sessions this build cannot read (TRANS-007).
|
|
887
|
+
*
|
|
888
|
+
* `listResumableSessionSummaries` returns only what can be resumed, which is what its name promises
|
|
889
|
+
* — an unreadable session is genuinely not resumable. What it must not do is make those sessions
|
|
890
|
+
* DISAPPEAR: before this, both stores dropped what they could not parse, so a damaged or
|
|
891
|
+
* older-format session read as gone rather than as unreadable. A surface that wants to say "3
|
|
892
|
+
* sessions here were written by a different build" asks this.
|
|
893
|
+
*
|
|
894
|
+
* Not filtered by `cwd`: an unreadable entry has no record, so it has no `cwd` to compare in general
|
|
895
|
+
* — {@link listUnreadableSessionsForWorkspace} answers that question for the entries that DO carry
|
|
896
|
+
* one.
|
|
897
|
+
*/
|
|
898
|
+
declare function listUnreadableSessions(sessionStore: IInteractiveSessionStore$1 | undefined): readonly {
|
|
899
|
+
readonly id: string;
|
|
900
|
+
readonly outcome: TSessionLoadOutcome$1;
|
|
901
|
+
}[];
|
|
902
|
+
/**
|
|
903
|
+
* The unreadable sessions of ONE workspace (#3289 §1).
|
|
904
|
+
*
|
|
905
|
+
* A store shared across workspaces (the user-level `~/.robota/sessions`) holds unreadable records
|
|
906
|
+
* from every folder ever worked in there, and a brand-new folder used to be told about all of them —
|
|
907
|
+
* "191 sessions could not be read" on a folder that had never seen one. An unreadable record still
|
|
908
|
+
* carries its raw `cwd` when the bytes are readable enough for that (TRANS-007's best-effort peek);
|
|
909
|
+
* this asks only for the ones whose peeked `cwd` is THIS workspace. A record whose workspace cannot
|
|
910
|
+
* be told at all is left out here — it is not lost, it simply is not this workspace's business.
|
|
911
|
+
*/
|
|
912
|
+
declare function listUnreadableSessionsForWorkspace(sessionStore: IInteractiveSessionStore$1 | undefined, cwd: string): readonly {
|
|
913
|
+
readonly id: string;
|
|
914
|
+
}[];
|
|
860
915
|
declare function resolveLatestSessionId(sessionStore: IInteractiveSessionStore$1 | undefined, cwd: string): string | undefined;
|
|
916
|
+
/**
|
|
917
|
+
* An existing session of this workspace with no messages yet, that no OTHER client is on and has no
|
|
918
|
+
* work of its own in progress — the one a fresh "New session" (a serve/daemon start, or the button)
|
|
919
|
+
* should reuse instead of adding another empty row to the list (#3289 §1). `excludeSessionId` lets a
|
|
920
|
+
* caller leaving a session (e.g. deleting it) ask "reuse some OTHER empty session" without that one
|
|
921
|
+
* answering its own question.
|
|
922
|
+
*
|
|
923
|
+
* `otherClientsOf` reports how many clients are on a session besides the one asking, when the caller
|
|
924
|
+
* knows; omitted, every candidate is treated as free (the common case: nothing is live yet, as at a
|
|
925
|
+
* serve/daemon start, when nothing could be bound to anything). `isBusy` reports whether a candidate
|
|
926
|
+
* has work of its own in progress even with no client on it — a background task or a self-paced loop
|
|
927
|
+
* outlives the client that started it, and "New session" landing someone there would join that work
|
|
928
|
+
* mid-flight rather than starting fresh. Omitted, no candidate is treated as busy, for the same
|
|
929
|
+
* "nothing is live yet" reason `otherClientsOf` is omittable.
|
|
930
|
+
*/
|
|
931
|
+
declare function resolveReusableEmptySessionId(sessionStore: IInteractiveSessionStore$1 | undefined, cwd: string, options?: {
|
|
932
|
+
readonly excludeSessionId?: string;
|
|
933
|
+
readonly otherClientsOf?: (sessionId: string) => number;
|
|
934
|
+
readonly isBusy?: (sessionId: string) => boolean;
|
|
935
|
+
}): string | undefined;
|
|
861
936
|
declare function resolveSessionIdByIdOrName(sessionStore: IInteractiveSessionStore$1 | undefined, idOrName: string): string | undefined;
|
|
862
937
|
//#endregion
|
|
863
938
|
//#region src/advisor/advisor-spec.d.ts
|
|
@@ -947,9 +1022,22 @@ interface IPermissionRuleLayer {
|
|
|
947
1022
|
readonly deny: readonly string[];
|
|
948
1023
|
readonly ask: readonly string[];
|
|
949
1024
|
}
|
|
1025
|
+
/** One rule to remove from the settings layer it was declared in (#3282 §4a). */
|
|
1026
|
+
interface IPermissionRuleRemoval {
|
|
1027
|
+
/** The `scope` of the {@link IPermissionRuleLayer} the rule was read from. */
|
|
1028
|
+
readonly scope: string;
|
|
1029
|
+
readonly kind: 'allow' | 'deny' | 'ask';
|
|
1030
|
+
readonly pattern: string;
|
|
1031
|
+
}
|
|
950
1032
|
/** Where each configured permission rule comes from, read fresh on every call. */
|
|
951
1033
|
interface ICommandPermissionRulesAdapter {
|
|
952
1034
|
readLayers(): readonly IPermissionRuleLayer[];
|
|
1035
|
+
/**
|
|
1036
|
+
* #3282 §4a: remove one declared rule from its settings layer. Optional — a host with no write
|
|
1037
|
+
* target for any layer (read-only rule discovery) makes rule removal fail EXPLICITLY wherever it
|
|
1038
|
+
* is offered, never a silent no-op. Returns `false` when no writable layer matched the removal.
|
|
1039
|
+
*/
|
|
1040
|
+
removeRule?(removal: IPermissionRuleRemoval): boolean;
|
|
953
1041
|
}
|
|
954
1042
|
/** How shell commands are confined: not at all, confined without prompts, or confined and asked. */
|
|
955
1043
|
type TSandboxCommandMode = 'off' | 'auto-allow' | 'regular';
|
|
@@ -962,6 +1050,22 @@ interface ICommandSandboxStatus {
|
|
|
962
1050
|
readonly network: boolean;
|
|
963
1051
|
readonly excludedCommands: readonly string[];
|
|
964
1052
|
}
|
|
1053
|
+
/** One external-event grant as the owner sees it: never the principal, a token or any content. */
|
|
1054
|
+
interface ICommandExternalEventGrant {
|
|
1055
|
+
readonly grantId: string;
|
|
1056
|
+
readonly principal: 'subject' | 'client';
|
|
1057
|
+
readonly state: 'open' | 'revoked';
|
|
1058
|
+
readonly counters: {
|
|
1059
|
+
readonly accepted: number;
|
|
1060
|
+
readonly refused: Readonly<Partial<Record<string, number>>>;
|
|
1061
|
+
readonly settled: Readonly<Partial<Record<string, number>>>;
|
|
1062
|
+
};
|
|
1063
|
+
}
|
|
1064
|
+
/** The session's external-event grants: `/events` lists them and withdraws one. */
|
|
1065
|
+
interface ICommandExternalEventsAdapter {
|
|
1066
|
+
list(): readonly ICommandExternalEventGrant[];
|
|
1067
|
+
revoke(grantId: string): 'revoked' | 'unknown-grant';
|
|
1068
|
+
}
|
|
965
1069
|
/** The OS sandbox, live: `/sandbox` reads it and changes the mode for the next command. */
|
|
966
1070
|
interface ICommandSandboxAdapter {
|
|
967
1071
|
status(): ICommandSandboxStatus;
|
|
@@ -1029,6 +1133,15 @@ interface ICommandMCPActivationSummary {
|
|
|
1029
1133
|
readonly provenanceId: string;
|
|
1030
1134
|
readonly definitionFingerprint: string;
|
|
1031
1135
|
readonly securityIdentity: string;
|
|
1136
|
+
/**
|
|
1137
|
+
* #3282 §4 part b-2: this process's live connection outcome for an `allowed` server — absent for
|
|
1138
|
+
* one that is not `allowed`, or has not been attempted yet. `'failed'`'s reason is
|
|
1139
|
+
* {@link connectionFailureReason}; a connected server's tool names are {@link toolNames}.
|
|
1140
|
+
*/
|
|
1141
|
+
readonly connection?: 'connected' | 'failed';
|
|
1142
|
+
readonly connectionFailureReason?: string;
|
|
1143
|
+
/** The names of the tools this server currently contributes; empty when not connected. */
|
|
1144
|
+
readonly toolNames?: readonly string[];
|
|
1032
1145
|
}
|
|
1033
1146
|
/**
|
|
1034
1147
|
* A definition-source-level problem — issue #2794: a configuration root that is not an object, no
|
|
@@ -1149,6 +1262,33 @@ interface ICommandMCPActivationAdapter {
|
|
|
1149
1262
|
* a name it already had. Called once per sign-in that returned tools.
|
|
1150
1263
|
*/
|
|
1151
1264
|
oauthToolsAdded?(serverId: string, added: readonly string[]): void;
|
|
1265
|
+
/**
|
|
1266
|
+
* #3282 §4 part b-2: `/mcp reload` and the Settings screen's "Reload servers" button. Retries
|
|
1267
|
+
* every allowed server that is not currently connected; a server already connected is left
|
|
1268
|
+
* running. Never rejects: a server that still cannot connect keeps its `list()` failure reason.
|
|
1269
|
+
* Absent: the host offers no reload (the button/command then say so).
|
|
1270
|
+
*/
|
|
1271
|
+
reload?(): Promise<{
|
|
1272
|
+
readonly tools: readonly IToolWithEventService[];
|
|
1273
|
+
readonly connectedServerIds: readonly string[];
|
|
1274
|
+
readonly failedServerIds: readonly string[];
|
|
1275
|
+
/**
|
|
1276
|
+
* Identifies this call's staged tool provenance for `reloadToolsAdded`; absent when there is
|
|
1277
|
+
* nothing to acknowledge (no server newly connected). Two `reload()` calls outstanding at once
|
|
1278
|
+
* — `/mcp reload` runs inline, unblocked by the mid-turn gate, and an `update-settings` write
|
|
1279
|
+
* is fire-and-forget, so this is reachable, not hypothetical — join the same connection pass
|
|
1280
|
+
* and get the same token back; a fresh call started only after the last one's token was
|
|
1281
|
+
* acknowledged gets a new one.
|
|
1282
|
+
*/
|
|
1283
|
+
readonly reloadToken?: string;
|
|
1284
|
+
}>;
|
|
1285
|
+
/**
|
|
1286
|
+
* Which of `reload`'s tools the session actually took, keyed to the `reloadToken` it returned;
|
|
1287
|
+
* any other was left out for a name it already had. `token` not matching the currently staged
|
|
1288
|
+
* reload — already committed, or superseded by a later call — makes this a no-op, so a late or
|
|
1289
|
+
* duplicate acknowledgement can never clear or corrupt a different reload's provenance.
|
|
1290
|
+
*/
|
|
1291
|
+
reloadToolsAdded?(token: string, added: readonly string[]): void;
|
|
1152
1292
|
}
|
|
1153
1293
|
/**
|
|
1154
1294
|
* PEER-004 (#1863): a live session this one can address, as the operator sees it.
|
|
@@ -1169,6 +1309,16 @@ interface ILocalPeerSummary {
|
|
|
1169
1309
|
/** `mismatched` when the peer's claim disagreed with what this session read; it is not believed. */
|
|
1170
1310
|
readonly workspaceClaim?: 'verified' | 'mismatched' | 'absent';
|
|
1171
1311
|
}
|
|
1312
|
+
/**
|
|
1313
|
+
* Another of the user's devices with an admitted device-mesh link to this session, as the operator
|
|
1314
|
+
* sees it. `deviceId` names it for a later `send`; `locality` is where the carrier established it
|
|
1315
|
+
* runs, shown and never an authority input.
|
|
1316
|
+
*/
|
|
1317
|
+
interface ILinkedDeviceSummary {
|
|
1318
|
+
readonly deviceId: string;
|
|
1319
|
+
readonly name?: string;
|
|
1320
|
+
readonly locality: 'same-host' | 'another-host';
|
|
1321
|
+
}
|
|
1172
1322
|
/**
|
|
1173
1323
|
* PEER-004: what `/peers` reads. The registry, the guarded directory and the liveness rule all live
|
|
1174
1324
|
* in the composition root — a command never touches the filesystem, for the same reason it never
|
|
@@ -1184,6 +1334,16 @@ interface ICommandLocalPeersAdapter {
|
|
|
1184
1334
|
listWithWorkspace?(): Promise<readonly ILocalPeerSummary[]>;
|
|
1185
1335
|
/** This session's own id, so the command can mark which row is the reader. */
|
|
1186
1336
|
ownSessionId(): string;
|
|
1337
|
+
/**
|
|
1338
|
+
* The user's other devices linked to this session over the device mesh, addressed by device id
|
|
1339
|
+
* wherever a session id is taken. Absent on a host with no device mesh.
|
|
1340
|
+
*/
|
|
1341
|
+
listDevices?(): readonly ILinkedDeviceSummary[];
|
|
1342
|
+
/**
|
|
1343
|
+
* Why sessions on this host cannot be listed, when local discovery is off for this session; the
|
|
1344
|
+
* linked devices still are. Absent when discovery is on.
|
|
1345
|
+
*/
|
|
1346
|
+
readonly localDiscoveryOff?: string;
|
|
1187
1347
|
/**
|
|
1188
1348
|
* PEER-006: hand `text` to another announced session, and report what came back.
|
|
1189
1349
|
*
|
|
@@ -1405,6 +1565,8 @@ interface ICommandHostAdapters {
|
|
|
1405
1565
|
workspace?: ICommandWorkspaceAdapter;
|
|
1406
1566
|
/** Absent on a host with no OS sandbox — `/sandbox` then says so. */
|
|
1407
1567
|
sandbox?: ICommandSandboxAdapter;
|
|
1568
|
+
/** Absent when the session holds no external-event grant — `/events` then says so. */
|
|
1569
|
+
externalEvents?: ICommandExternalEventsAdapter;
|
|
1408
1570
|
}
|
|
1409
1571
|
//#endregion
|
|
1410
1572
|
//#region src/checkpoints/edit-checkpoint-store.d.ts
|
|
@@ -1482,7 +1644,7 @@ declare class EditCheckpointStore {
|
|
|
1482
1644
|
declare function wrapEditCheckpointTools(tools: readonly IToolWithEventService[], recorder: IEditCheckpointRecorder): IToolWithEventService[];
|
|
1483
1645
|
//#endregion
|
|
1484
1646
|
//#region src/context/prompt-file-reference-types.d.ts
|
|
1485
|
-
type TPromptFileReferenceDiagnosticCode = 'not-found' | 'outside-root' | 'directory-not-supported' | 'file-too-large' | 'total-too-large' | 'too-many-references' | 'max-depth' | 'circular-reference' | 'unreadable';
|
|
1647
|
+
type TPromptFileReferenceDiagnosticCode = 'not-found' | 'outside-root' | 'directory-not-supported' | 'file-too-large' | 'total-too-large' | 'too-many-references' | 'max-depth' | 'circular-reference' | 'unreadable' | 'binary-file';
|
|
1486
1648
|
interface IPromptFileReferenceToken {
|
|
1487
1649
|
original: string;
|
|
1488
1650
|
path: string;
|
|
@@ -1585,6 +1747,12 @@ interface IGoalControllerDeps {
|
|
|
1585
1747
|
* payload is schema-validated at the tool layer, so this is deterministic — never prose parsing.
|
|
1586
1748
|
*/
|
|
1587
1749
|
declare function extractGoalSignal(toolSummaries: readonly IToolSummary[]): IGoalSignal | null;
|
|
1750
|
+
/**
|
|
1751
|
+
* True when `args` (the `/goal` command's raw argument string) asks to cancel the current goal —
|
|
1752
|
+
* the single vocabulary both the command (`goal-command.ts`, agent-command) and the mid-turn CONTROL
|
|
1753
|
+
* path (`InteractiveSession.executeCommand`, this package) match against, so the two never drift.
|
|
1754
|
+
*/
|
|
1755
|
+
declare function isGoalCancelVerb(args: string): boolean;
|
|
1588
1756
|
declare class GoalController {
|
|
1589
1757
|
private readonly deps;
|
|
1590
1758
|
private goal;
|
|
@@ -1826,6 +1994,17 @@ interface ICommandHostUserInteraction {
|
|
|
1826
1994
|
*/
|
|
1827
1995
|
getUserInteraction(): IUserInteraction | undefined;
|
|
1828
1996
|
}
|
|
1997
|
+
/**
|
|
1998
|
+
* Whether THIS session is running with no provider configured yet (issue #3282 §3 setup mode).
|
|
1999
|
+
*
|
|
2000
|
+
* Exists for exactly one command (`/provider add`, deciding hot-swap vs. restart) — never inferred
|
|
2001
|
+
* from settings, because an ordinary session started from an env-default provider also has none
|
|
2002
|
+
* persisted. The member is optional so a host with no concept of setup mode costs nothing and is
|
|
2003
|
+
* correctly read as "not in it" (`?.() === true`), never mistaken for a required capability.
|
|
2004
|
+
*/
|
|
2005
|
+
interface ICommandHostSetupState {
|
|
2006
|
+
isSetupRequired?(): boolean;
|
|
2007
|
+
}
|
|
1829
2008
|
/** Re-applying preset-owned configuration to the live session. */
|
|
1830
2009
|
interface ICommandHostPresetApplication {
|
|
1831
2010
|
/** Apply an additive response style to the live system prompt. */
|
|
@@ -1864,6 +2043,12 @@ interface ICommandHostContextReferences {
|
|
|
1864
2043
|
interface ICommandHostWorkspace {
|
|
1865
2044
|
getCwd(): string;
|
|
1866
2045
|
getCommandInvocationSource(): TCommandInvocationSource;
|
|
2046
|
+
/**
|
|
2047
|
+
* #3282 §4 part b-2: whether THIS invocation is provably on this machine. Optional so an older or
|
|
2048
|
+
* narrower host still satisfies this interface; a caller that needs it treats a missing method the
|
|
2049
|
+
* same as `'local'` (allow-by-default, matching the rest of the command layer).
|
|
2050
|
+
*/
|
|
2051
|
+
getCommandSurfaceLocality?(): TCommandSurfaceLocality;
|
|
1867
2052
|
}
|
|
1868
2053
|
/** What commands and skills this host can dispatch. */
|
|
1869
2054
|
interface ICommandHostCatalog {
|
|
@@ -1945,8 +2130,8 @@ interface ICommandHostTerminalHandoff {
|
|
|
1945
2130
|
interface ICommandHostAdapterAccess {
|
|
1946
2131
|
getCommandHostAdapters?(): ICommandHostAdapters;
|
|
1947
2132
|
}
|
|
1948
|
-
/** Aggregate: all
|
|
1949
|
-
interface ICommandHostContext extends ICommandHostSessionAccess, ICommandHostAgentJobs, ICommandHostUserInteraction, ICommandHostPresetApplication, ICommandHostContextWindow, ICommandHostContextReferences, ICommandHostWorkspace, ICommandHostCatalog, ICommandHostCheckpoints, ICommandHostMemory, ICommandHostBackgroundTasks, ICommandHostGoal, ICommandHostPlan, ICommandHostTerminalHandoff, ICommandHostAdapterAccess {}
|
|
2133
|
+
/** Aggregate: all 48 members remain source-compatible. Declare a role port instead of this. */
|
|
2134
|
+
interface ICommandHostContext extends ICommandHostSessionAccess, ICommandHostAgentJobs, ICommandHostUserInteraction, ICommandHostSetupState, ICommandHostPresetApplication, ICommandHostContextWindow, ICommandHostContextReferences, ICommandHostWorkspace, ICommandHostCatalog, ICommandHostCheckpoints, ICommandHostMemory, ICommandHostBackgroundTasks, ICommandHostGoal, ICommandHostPlan, ICommandHostTerminalHandoff, ICommandHostAdapterAccess {}
|
|
1950
2135
|
//#endregion
|
|
1951
2136
|
//#region src/command-api/contracts.d.ts
|
|
1952
2137
|
type TSystemCommandLifecycle = 'inline' | 'blocking' | 'background';
|
|
@@ -1980,6 +2165,10 @@ interface ISystemCommand {
|
|
|
1980
2165
|
argumentHint?: string;
|
|
1981
2166
|
safety?: TCapabilitySafety;
|
|
1982
2167
|
subcommands?: readonly ICommand[];
|
|
2168
|
+
/** Who runs this command; absent → `'runtime'`. See `ICommand.runner`. */
|
|
2169
|
+
runner?: TCommandRunner;
|
|
2170
|
+
/** The surfaces a `'client'` command can run on. See `ICommand.surfaces`. */
|
|
2171
|
+
surfaces?: readonly TCommandSurface[];
|
|
1983
2172
|
lifecycle?: TSystemCommandLifecycle;
|
|
1984
2173
|
/**
|
|
1985
2174
|
* Whether executing this command requires explicit user permission/confirmation.
|
|
@@ -2252,6 +2441,37 @@ declare function resolveEnvDefaultProvider(providerDefinitions: readonly IProvid
|
|
|
2252
2441
|
declare function readProviderSettings(sources: readonly TSettingsSource[], options?: IReadProviderSettingsOptions): IProviderDefinitionConfig;
|
|
2253
2442
|
declare function createProviderFromSettings(sources: readonly TSettingsSource[], modelOverride?: string, options?: IReadProviderSettingsOptions): IAIProvider;
|
|
2254
2443
|
//#endregion
|
|
2444
|
+
//#region src/command-api/provider/provider-model-catalog.d.ts
|
|
2445
|
+
/**
|
|
2446
|
+
* The models every configured profile offers, current profile first (#3282 §2). A profile missing
|
|
2447
|
+
* `type` or `model` is skipped — it could not run even by an explicit `/provider switch`, so `/model`
|
|
2448
|
+
* does not offer it either. `allowedProviders`, when set, is the org policy's allowlist of provider
|
|
2449
|
+
* PROFILE NAMES (`IOrgPolicy.allowedProviders`) — a profile it excludes is skipped the same way, so
|
|
2450
|
+
* a control built from this snapshot never offers a switch org policy would then refuse.
|
|
2451
|
+
*/
|
|
2452
|
+
declare function buildModelListSnapshot(providers: Record<string, IProviderProfileSettings> | undefined, currentProfileName: string | undefined, currentModel: string, providerDefinitions: readonly IProviderDefinition[], allowedProviders?: readonly string[]): IModelListSnapshot;
|
|
2453
|
+
/** Where an `id` resolves: which profile offers it, and its display label. Group order IS the tie-break. */
|
|
2454
|
+
interface IModelListSelection {
|
|
2455
|
+
readonly profileName: string;
|
|
2456
|
+
readonly model: IModelCatalogEntry;
|
|
2457
|
+
}
|
|
2458
|
+
/**
|
|
2459
|
+
* Resolve a typed/clicked model id against the snapshot. Groups are already ordered current-profile
|
|
2460
|
+
* first, so the first match found — never a special case here — is the one the current profile's
|
|
2461
|
+
* provider offers, matching the "prefer the current profile" rule for an id offered by more than one.
|
|
2462
|
+
*/
|
|
2463
|
+
declare function resolveModelListSelection(snapshot: IModelListSnapshot, id: string): IModelListSelection | undefined;
|
|
2464
|
+
//#endregion
|
|
2465
|
+
//#region src/command-api/provider/provider-profile-summary.d.ts
|
|
2466
|
+
/**
|
|
2467
|
+
* Every configured profile, in settings order (the Settings screen marks the current one with
|
|
2468
|
+
* `current` rather than reordering around it — unlike the model list's current-first order, which
|
|
2469
|
+
* exists only to break a same-id tie). `allowedProviders`, when set, is the org policy's allowlist of
|
|
2470
|
+
* profile names (`IOrgPolicy.allowedProviders`) — the same filter `buildModelListSnapshot` applies,
|
|
2471
|
+
* so Settings never offers managing a profile a switch would then refuse.
|
|
2472
|
+
*/
|
|
2473
|
+
declare function buildProviderProfilesSnapshot(providers: Record<string, IProviderProfileSettings> | undefined, currentProfileName: string | undefined, providerDefinitions: readonly IProviderDefinition[], allowedProviders?: readonly string[]): ISettingsProvidersSection;
|
|
2474
|
+
//#endregion
|
|
2255
2475
|
//#region src/command-api/help/help-command-api.d.ts
|
|
2256
2476
|
declare const HELP_COMMAND_DESCRIPTION = "Show available commands";
|
|
2257
2477
|
declare function formatCommandHelpMessage(context: ICommandHostCatalog): string;
|
|
@@ -2312,6 +2532,12 @@ interface IPermissionsCommandState {
|
|
|
2312
2532
|
/** Where a rule the gate reads comes from when no settings layer declares it: a flag, a preset, a command. */
|
|
2313
2533
|
declare const RUNTIME_RULE_SOURCE = "this session (CLI flags, preset, commands)";
|
|
2314
2534
|
declare const VALID_PERMISSION_MODES: readonly TPermissionMode[];
|
|
2535
|
+
/**
|
|
2536
|
+
* #3282 §2 — the plain label every surface shows for a permission mode, so the TUI's inline picker
|
|
2537
|
+
* and the GUI's mode menu agree instead of each inventing (or skipping) one. `description` stays the
|
|
2538
|
+
* secondary line under it; neither name is an internal id a person has to already know.
|
|
2539
|
+
*/
|
|
2540
|
+
declare const PERMISSION_MODE_LABELS: Readonly<Record<TPermissionMode, string>>;
|
|
2315
2541
|
declare function buildPermissionModeSubcommands(source?: string): ICommand[];
|
|
2316
2542
|
declare function parsePermissionModeArgument(args: string): string | undefined;
|
|
2317
2543
|
declare function isPermissionMode(value: string): value is TPermissionMode;
|
|
@@ -2423,7 +2649,7 @@ declare function applyAppearanceSettings(settingsPath: string, patch: TAppearanc
|
|
|
2423
2649
|
//#endregion
|
|
2424
2650
|
//#region src/command-api/plugin/plugin-command-api.d.ts
|
|
2425
2651
|
declare const PLUGIN_COMMAND_DESCRIPTION = "Manage plugins";
|
|
2426
|
-
declare const PLUGIN_COMMAND_ARGUMENT_HINT = "manage | install <name@marketplace> | uninstall <name@marketplace> | enable <name@marketplace> | disable <name@marketplace> | marketplace <action>";
|
|
2652
|
+
declare const PLUGIN_COMMAND_ARGUMENT_HINT = "manage | list | install <name@marketplace> | uninstall <name@marketplace> | enable <name@marketplace> | disable <name@marketplace> | marketplace <action>";
|
|
2427
2653
|
declare const RELOAD_PLUGINS_COMMAND_DESCRIPTION = "Reload all plugin resources";
|
|
2428
2654
|
/** CMD-004: `/plugin manage` asks the REQUESTING surface to open its plugin manager (UI intent). */
|
|
2429
2655
|
declare function createShowPluginManagerIntent(): TCommandUiIntent;
|
|
@@ -7053,6 +7279,11 @@ interface ISubagentOptions {
|
|
|
7053
7279
|
taskDisallowedTools?: readonly string[];
|
|
7054
7280
|
/** Permission handler from parent. */
|
|
7055
7281
|
permissionHandler?: TPermissionHandler;
|
|
7282
|
+
/**
|
|
7283
|
+
* The sandbox the subagent's shell tools run under, as the approval it gives a confined command.
|
|
7284
|
+
* Built from the same sandbox instance as those tools: the instance knows what it could not restore.
|
|
7285
|
+
*/
|
|
7286
|
+
commandSandbox?: ICommandSandboxApproval;
|
|
7056
7287
|
/** Plugin hooks configuration from parent session. */
|
|
7057
7288
|
hooks?: Record<string, unknown>;
|
|
7058
7289
|
/** Hook type executors from parent session (prompt, agent, etc.). */
|
|
@@ -7602,6 +7833,12 @@ interface IAgentToolDeps extends IInProcessSubagentRunnerDeps {
|
|
|
7602
7833
|
getParentModelEffort?: () => TModelEffort | undefined;
|
|
7603
7834
|
/** PRESET-016 — runtime gate; when present and returns false, subagent dispatch is refused. */
|
|
7604
7835
|
isParallelSubagentsEnabled?: () => boolean;
|
|
7836
|
+
/**
|
|
7837
|
+
* #3282 §4: the agent type `/agent <name>` (no prompt) selects and the agent switcher shows
|
|
7838
|
+
* checked — mutable session-scoped state, read back through `getDefaultAgentType`. Absent means
|
|
7839
|
+
* `DEFAULT_AGENT_TYPE` (`general-purpose`), never persisted past this session.
|
|
7840
|
+
*/
|
|
7841
|
+
defaultAgentType?: string;
|
|
7605
7842
|
}
|
|
7606
7843
|
//#endregion
|
|
7607
7844
|
//#region src/tools/agent-tool.d.ts
|
|
@@ -7700,7 +7937,7 @@ type TKnownMarketplacesRegistry = Record<string, IKnownMarketplaceEntry>;
|
|
|
7700
7937
|
*
|
|
7701
7938
|
* A vector is what makes it safe by construction rather than by quoting: no shell parses these values,
|
|
7702
7939
|
* so there is no quoting to get right. The repository already reached this conclusion once —
|
|
7703
|
-
* `apps/action/src/build-invocation.
|
|
7940
|
+
* `apps/action/src/build-invocation.mjs` (SEC-006) replaced `execSync(args.join(' '))` for the same
|
|
7704
7941
|
* reason — and this is that fix applied to the plugin surface.
|
|
7705
7942
|
*
|
|
7706
7943
|
* `file` is the executable. `args` is readonly because an implementation must not be able to fold an
|
|
@@ -8340,6 +8577,12 @@ interface IExecutionControllerCallbacks {
|
|
|
8340
8577
|
recordPrompt?: TPromptHistoryRecorder;
|
|
8341
8578
|
/** Runs after turn history is final but before the turn handle settles or the next input drains. */
|
|
8342
8579
|
onWakeTurnFinalizing?: (wakeTaskId: string, result: IExecutionResult$2 | undefined, outcome: 'success' | 'failure' | 'interrupted', toolExecutions: readonly ICompletedToolExecution[]) => Promise<void>;
|
|
8580
|
+
/**
|
|
8581
|
+
* #3288: provider tool name → source `/command` name, for the projected model-command tools this
|
|
8582
|
+
* session assembled (`model-command-tool-projection.ts`). Read at `tool_start` so the emitted
|
|
8583
|
+
* `IToolState.commandName` lets a surface show "Ran /<name>" without hardcoding the tool prefix.
|
|
8584
|
+
*/
|
|
8585
|
+
modelCommandToolNames?: ReadonlyMap<string, string>;
|
|
8343
8586
|
}
|
|
8344
8587
|
interface ICompletedToolExecution {
|
|
8345
8588
|
name: string;
|
|
@@ -8474,9 +8717,9 @@ declare class SessionHistoryTracker {
|
|
|
8474
8717
|
private editCheckpointStore;
|
|
8475
8718
|
private readonly branchEvents;
|
|
8476
8719
|
/**
|
|
8477
|
-
* SELFHOST-007: a persisted active-branch pointer restored
|
|
8478
|
-
*
|
|
8479
|
-
*
|
|
8720
|
+
* SELFHOST-007: a persisted active-branch pointer restored on resume, before the session (and
|
|
8721
|
+
* possibly the store) exists — stashed here and applied on the first checkpoint operation, so
|
|
8722
|
+
* `--resume` reaches the store instead of throwing or silently dropping the pointer.
|
|
8480
8723
|
*/
|
|
8481
8724
|
private pendingActiveBranch;
|
|
8482
8725
|
private memoryEvents;
|
|
@@ -8503,9 +8746,10 @@ declare class SessionHistoryTracker {
|
|
|
8503
8746
|
/** SELFHOST-007: the active-branch pointer to persist (so a branch survives --resume). */
|
|
8504
8747
|
getActiveBranchPointer(): IActiveBranchPointer | undefined;
|
|
8505
8748
|
/**
|
|
8506
|
-
* SELFHOST-007: restore the active branch from a persisted pointer on resume (graceful on drift).
|
|
8507
|
-
*
|
|
8508
|
-
*
|
|
8749
|
+
* SELFHOST-007: restore the active branch from a persisted pointer on resume (graceful on drift).
|
|
8750
|
+
* The pointer is always stashed and applied on the first checkpoint operation: on the standard
|
|
8751
|
+
* path a resume restores its record before the underlying session exists, so the session id the
|
|
8752
|
+
* store keys by cannot be read yet, whether or not the store was given at construction.
|
|
8509
8753
|
*/
|
|
8510
8754
|
restoreActiveBranch(pointer: IActiveBranchPointer | undefined): void;
|
|
8511
8755
|
/** Apply a stashed active-branch pointer once the store exists (idempotent; clears the stash). */
|
|
@@ -8525,6 +8769,11 @@ declare class SessionHistoryTracker {
|
|
|
8525
8769
|
getSkillActivationEvents(): ISkillActivationEvent[];
|
|
8526
8770
|
recordSkillActivationEvent(event: ISkillActivationEvent, appendHistory: boolean): void;
|
|
8527
8771
|
private getCheckpointStore;
|
|
8772
|
+
/**
|
|
8773
|
+
* The host is checked first: where no project write can be proven safe, trusting the workspace
|
|
8774
|
+
* would not bring checkpoints back, so naming trust there would send the user the wrong way.
|
|
8775
|
+
*/
|
|
8776
|
+
private noStoreReason;
|
|
8528
8777
|
}
|
|
8529
8778
|
//#endregion
|
|
8530
8779
|
//#region src/config/config-merge.d.ts
|
|
@@ -8542,6 +8791,9 @@ interface IHookDefinitionSource {
|
|
|
8542
8791
|
readonly source: string;
|
|
8543
8792
|
}
|
|
8544
8793
|
//#endregion
|
|
8794
|
+
//#region src/assembly/sandbox-approval.d.ts
|
|
8795
|
+
declare function sandboxApprovalFor(client: ISandboxClient): ICommandSandboxApproval;
|
|
8796
|
+
//#endregion
|
|
8545
8797
|
//#region src/assembly/subagent-logger.d.ts
|
|
8546
8798
|
/**
|
|
8547
8799
|
* Create a FileSessionLogger for a subagent session.
|
|
@@ -8567,13 +8819,158 @@ declare function createSubagentLogger(parentSessionId: string, _agentId: string,
|
|
|
8567
8819
|
*/
|
|
8568
8820
|
declare function resolveSubagentLogDir(parentSessionId: string, baseLogsDir: string): string;
|
|
8569
8821
|
//#endregion
|
|
8822
|
+
//#region src/interactive/peer-turn-rate-limit.d.ts
|
|
8823
|
+
/**
|
|
8824
|
+
* How many turns one peer's messages may start in this session over time.
|
|
8825
|
+
*
|
|
8826
|
+
* A message from another session carries no authority, but it still runs this session's model, at
|
|
8827
|
+
* this owner's cost. The conversation limits bound one exchange; nothing bounded a peer that keeps
|
|
8828
|
+
* opening new ones. This does, per sender, over sliding windows.
|
|
8829
|
+
*/
|
|
8830
|
+
interface IPeerTurnRateWindow {
|
|
8831
|
+
readonly windowMs: number;
|
|
8832
|
+
readonly maxTurns: number;
|
|
8833
|
+
}
|
|
8834
|
+
/**
|
|
8835
|
+
* Counts each sender's messages the session took for a turn — one later coalesced or dropped by the
|
|
8836
|
+
* queue included, so a flood cannot slip past by being replaced — and refuses those over a limit.
|
|
8837
|
+
*/
|
|
8838
|
+
declare class PeerTurnRateLimiter {
|
|
8839
|
+
private readonly windows;
|
|
8840
|
+
private readonly now;
|
|
8841
|
+
private readonly started;
|
|
8842
|
+
private readonly longestWindowMs;
|
|
8843
|
+
constructor(windows?: readonly IPeerTurnRateWindow[], now?: () => number);
|
|
8844
|
+
/**
|
|
8845
|
+
* Admit one more message from `sender` and count it, or say why not. A message refused here is not
|
|
8846
|
+
* counted, so a sender that keeps sending is not locked out beyond the window.
|
|
8847
|
+
*/
|
|
8848
|
+
admit(sender: string): string | undefined;
|
|
8849
|
+
private forgetIdleSenders;
|
|
8850
|
+
}
|
|
8851
|
+
//#endregion
|
|
8852
|
+
//#region src/interactive/external-event-ingress.d.ts
|
|
8853
|
+
/**
|
|
8854
|
+
* One grant's source. The ingress builds the grant's verifier from `grant.verifier` with the factory
|
|
8855
|
+
* its host was constructed with, so the principal the grant pins is the one its tokens are checked
|
|
8856
|
+
* against; opening a grant carries no verifier and no factory. The host carries the pair a carrier
|
|
8857
|
+
* delivers and trusts nothing else it says.
|
|
8858
|
+
*/
|
|
8859
|
+
interface IExternalEventSourceOptions {
|
|
8860
|
+
readonly grant: IExternalEventGrant;
|
|
8861
|
+
/** Receives one content-free record per refusal and per settlement. A throw is ignored. */
|
|
8862
|
+
readonly audit?: (record: TExternalEventAuditRecord) => void;
|
|
8863
|
+
}
|
|
8864
|
+
type TExternalEventSettlement = {
|
|
8865
|
+
readonly outcome: 'completed';
|
|
8866
|
+
readonly response: string;
|
|
8867
|
+
} | {
|
|
8868
|
+
readonly outcome: 'interrupted';
|
|
8869
|
+
} | {
|
|
8870
|
+
readonly outcome: 'not-run';
|
|
8871
|
+
readonly reason: TTurnNotRunReason;
|
|
8872
|
+
} | {
|
|
8873
|
+
readonly outcome: 'failed';
|
|
8874
|
+
readonly reason: string;
|
|
8875
|
+
};
|
|
8876
|
+
/** An admission names its turn; `settled` is for the host, never for the sender. */
|
|
8877
|
+
type TExternalEventReceipt = {
|
|
8878
|
+
readonly admitted: true;
|
|
8879
|
+
readonly turnId: string;
|
|
8880
|
+
readonly settled: Promise<TExternalEventSettlement>;
|
|
8881
|
+
} | {
|
|
8882
|
+
readonly admitted: false;
|
|
8883
|
+
readonly refusal: TExternalEventRefusal;
|
|
8884
|
+
};
|
|
8885
|
+
interface IExternalEventSource {
|
|
8886
|
+
readonly grantId: string;
|
|
8887
|
+
/** Take one delivery (`IExternalEventDelivery`) exactly as a carrier received it. */
|
|
8888
|
+
receive(delivery: unknown): Promise<TExternalEventReceipt>;
|
|
8889
|
+
/** Stop admission synchronously; already-submitted turns retain their exact settlement. */
|
|
8890
|
+
close(): void;
|
|
8891
|
+
/**
|
|
8892
|
+
* Withdraw the grant: a later event whose token the grant's verifier admits is refused as revoked
|
|
8893
|
+
* (any other is refused as a live grant would refuse it), its queued and running turns are
|
|
8894
|
+
* stopped, and the label cannot be opened again on this ingress.
|
|
8895
|
+
*/
|
|
8896
|
+
revoke(): void;
|
|
8897
|
+
}
|
|
8898
|
+
interface IExternalEventHost {
|
|
8899
|
+
getPermissionMode(): TPermissionMode;
|
|
8900
|
+
addPermissionModeGuard(guard: (next: TPermissionMode) => void): () => void;
|
|
8901
|
+
submit(input: string, options: ISubmitOptions): Promise<ITurnHandle>;
|
|
8902
|
+
/** The host's one way to build a verifier; the ingress calls it with each grant's own config. */
|
|
8903
|
+
createVerifier(config: IAccessTokenVerifierConfig): IAccessTokenVerifier;
|
|
8904
|
+
/** Wall-clock milliseconds, for rate windows, token expiry and audit times. */
|
|
8905
|
+
now?: () => number;
|
|
8906
|
+
/** Whether the session has begun shutting down; a refused submission is then named so. */
|
|
8907
|
+
isShuttingDown?: () => boolean;
|
|
8908
|
+
/**
|
|
8909
|
+
* The run's grant history (#3189). A run that switches sessions lends every session the same one,
|
|
8910
|
+
* so spent tokens, rate windows and revocations belong to the run: a switch replays nothing and
|
|
8911
|
+
* resets no rate. Without it, the history lives and ends with this session.
|
|
8912
|
+
*/
|
|
8913
|
+
history?: ExternalEventGrantHistory;
|
|
8914
|
+
}
|
|
8915
|
+
/** What a grant has spent, kept per grant label so a closed and reopened grant cannot spend it again. */
|
|
8916
|
+
interface IGrantHistory {
|
|
8917
|
+
/** Spent token ids and when each stops verifying. */
|
|
8918
|
+
readonly spent: Map<string, number>;
|
|
8919
|
+
readonly rate: PeerTurnRateLimiter;
|
|
8920
|
+
/** The rate windows `rate` counts against; a reopen with other windows starts a new count. */
|
|
8921
|
+
readonly windows: string;
|
|
8922
|
+
revoked: boolean;
|
|
8923
|
+
}
|
|
8924
|
+
declare const GRANTS: unique symbol;
|
|
8925
|
+
/** What a run remembers about each grant across the sessions it holds; opaque to its holder. */
|
|
8926
|
+
declare class ExternalEventGrantHistory {
|
|
8927
|
+
readonly [GRANTS]: Map<string, IGrantHistory>;
|
|
8928
|
+
}
|
|
8929
|
+
/** One history per run: create it once and pass it to every session the run builds. */
|
|
8930
|
+
declare function createExternalEventGrantHistory(): ExternalEventGrantHistory;
|
|
8931
|
+
/**
|
|
8932
|
+
* Session-owned admission and turn settlement for external events. The sender is the grant whose
|
|
8933
|
+
* verifier admitted the token; nothing in the delivery names it.
|
|
8934
|
+
*/
|
|
8935
|
+
declare class ExternalEventIngress {
|
|
8936
|
+
private readonly host;
|
|
8937
|
+
private readonly sources;
|
|
8938
|
+
private readonly history;
|
|
8939
|
+
/** Grants revoked on this ingress; one revoked on another session of the run opens revoked. */
|
|
8940
|
+
private readonly revokedHere;
|
|
8941
|
+
private pending;
|
|
8942
|
+
private releaseGuard?;
|
|
8943
|
+
private readonly now;
|
|
8944
|
+
constructor(host: IExternalEventHost);
|
|
8945
|
+
open(options: IExternalEventSourceOptions): IExternalEventSource;
|
|
8946
|
+
private historyOf;
|
|
8947
|
+
closeAll(): void;
|
|
8948
|
+
private record;
|
|
8949
|
+
private hasActiveSource;
|
|
8950
|
+
private close;
|
|
8951
|
+
private maybeRelease;
|
|
8952
|
+
/** Refuse a spent token, or one without a name; `undefined` means it may be spent. */
|
|
8953
|
+
private replayRefusal;
|
|
8954
|
+
private receive;
|
|
8955
|
+
private submit;
|
|
8956
|
+
}
|
|
8957
|
+
//#endregion
|
|
8570
8958
|
//#region src/interactive/interactive-session-options.d.ts
|
|
8959
|
+
type TExternalEventVerifierFactory = (config: IAccessTokenVerifierConfig) => IAccessTokenVerifier;
|
|
8571
8960
|
/** Standard construction: cwd + provider. Config/context loaded internally. */
|
|
8572
8961
|
interface IInteractiveSessionStandardOptions {
|
|
8573
8962
|
/** Additive response style applied to the composed system prompt. */
|
|
8574
8963
|
outputStyle?: IOutputStylePrompt;
|
|
8575
8964
|
cwd: string;
|
|
8576
8965
|
provider: IAIProvider;
|
|
8966
|
+
/**
|
|
8967
|
+
* #3282 §3: `provider` is a placeholder that never calls a model — a host started this session
|
|
8968
|
+
* without a configured provider (a served runtime's first run). `getStatusSnapshot()` reports it so
|
|
8969
|
+
* a client can show a setup screen instead of a composer, and `submit()` refuses a turn outright
|
|
8970
|
+
* instead of reaching the placeholder. Cleared once `/provider switch` (or the setup flow's own
|
|
8971
|
+
* hot-swap) puts a real provider in place — see `switchProvider`.
|
|
8972
|
+
*/
|
|
8973
|
+
setupRequired?: boolean;
|
|
8577
8974
|
/** Optional product-owned remediation for recognized provider errors; scoped to this session. */
|
|
8578
8975
|
providerErrorGuidance?: IProviderErrorGuidance;
|
|
8579
8976
|
/** Host-selected model-visible enclosure for attached file references. */
|
|
@@ -8617,6 +9014,11 @@ interface IInteractiveSessionStandardOptions {
|
|
|
8617
9014
|
/** Explicit authority- and permission-backed edit checkpoint capability. */
|
|
8618
9015
|
editCheckpointStore?: EditCheckpointStore;
|
|
8619
9016
|
sessionName?: string;
|
|
9017
|
+
/**
|
|
9018
|
+
* #3189: name the session once, after its first turn, with its own provider, unless it already has
|
|
9019
|
+
* a name. Off unless set: a one-shot print run has no use for a title.
|
|
9020
|
+
*/
|
|
9021
|
+
autoName?: boolean;
|
|
8620
9022
|
resumeSessionId?: string;
|
|
8621
9023
|
forkSession?: boolean;
|
|
8622
9024
|
/**
|
|
@@ -8690,6 +9092,13 @@ interface IInteractiveSessionStandardOptions {
|
|
|
8690
9092
|
* `canHandoffTerminal === false` for transports with no interactive TTY (headless).
|
|
8691
9093
|
*/
|
|
8692
9094
|
terminalHandoff?: ITerminalHandoff;
|
|
9095
|
+
/** Builds each external-event grant's verifier; absent, the session opens no grant. */
|
|
9096
|
+
externalEventVerifierFactory?: TExternalEventVerifierFactory;
|
|
9097
|
+
/**
|
|
9098
|
+
* The run's grant history, shared by every session a run builds (#3189): a session switch replays
|
|
9099
|
+
* no spent token and resets no rate. Absent, the history lives and ends with the session.
|
|
9100
|
+
*/
|
|
9101
|
+
externalEventGrantHistory?: ExternalEventGrantHistory;
|
|
8693
9102
|
/** Model-visible command descriptors derived from the composed command executor. */
|
|
8694
9103
|
commandDescriptors?: readonly ICapabilityDescriptor[];
|
|
8695
9104
|
/** Provider definitions for hot-swap via /provider switch. */
|
|
@@ -8771,6 +9180,8 @@ interface IInteractiveSessionInjectedOptions {
|
|
|
8771
9180
|
observerFailureWarningCode?: ICreateSessionOptions['observerFailureWarningCode'];
|
|
8772
9181
|
cwd?: string;
|
|
8773
9182
|
provider?: IAIProvider;
|
|
9183
|
+
/** #3282 §3 — see {@link IInteractiveSessionStandardOptions.setupRequired}. */
|
|
9184
|
+
setupRequired?: boolean;
|
|
8774
9185
|
/** Trusted-or-restricted project decision made by the host. Absence is Restricted. */
|
|
8775
9186
|
projectAccess?: TWorkspaceProjectAccess;
|
|
8776
9187
|
userSettingsSources?: readonly INodeHostSettingsSource[];
|
|
@@ -8789,6 +9200,8 @@ interface IInteractiveSessionInjectedOptions {
|
|
|
8789
9200
|
/** Explicit authority- and permission-backed edit checkpoint capability. */
|
|
8790
9201
|
editCheckpointStore?: EditCheckpointStore;
|
|
8791
9202
|
sessionName?: string;
|
|
9203
|
+
/** See the standard options. */
|
|
9204
|
+
autoName?: boolean;
|
|
8792
9205
|
resumeSessionId?: string;
|
|
8793
9206
|
forkSession?: boolean;
|
|
8794
9207
|
/** Optional command modules composed into this injected session. */
|
|
@@ -8797,6 +9210,13 @@ interface IInteractiveSessionInjectedOptions {
|
|
|
8797
9210
|
commandHostAdapters?: ICommandHostAdapters;
|
|
8798
9211
|
/** TERM-001: transport-provided terminal-handoff capability (see standard options). */
|
|
8799
9212
|
terminalHandoff?: ITerminalHandoff;
|
|
9213
|
+
/** Builds each external-event grant's verifier; absent, the session opens no grant. */
|
|
9214
|
+
externalEventVerifierFactory?: TExternalEventVerifierFactory;
|
|
9215
|
+
/**
|
|
9216
|
+
* The run's grant history, shared by every session a run builds (#3189): a session switch replays
|
|
9217
|
+
* no spent token and resets no rate. Absent, the history lives and ends with the session.
|
|
9218
|
+
*/
|
|
9219
|
+
externalEventGrantHistory?: ExternalEventGrantHistory;
|
|
8800
9220
|
}
|
|
8801
9221
|
/** Union of standard and injected construction options. */
|
|
8802
9222
|
type TInteractiveSessionOptions = IInteractiveSessionStandardOptions | IInteractiveSessionInjectedOptions;
|
|
@@ -8882,6 +9302,8 @@ declare class SessionSkillRouter {
|
|
|
8882
9302
|
reapplyCommandModuleSelection(enabled: readonly string[] | undefined, disabled: readonly string[] | undefined): readonly IUnknownCommandModuleName[];
|
|
8883
9303
|
shutdownModules(): Promise<unknown[]>;
|
|
8884
9304
|
getCommandInvocationSource(): TCommandInvocationSource$1;
|
|
9305
|
+
/** #3282 §4 part b-2: allow-by-default, matching every other transport-origin default here. */
|
|
9306
|
+
getCommandSurfaceLocality(): TCommandSurfaceLocality$1;
|
|
8885
9307
|
getCommandOriginDriverId(): TDriverId | undefined;
|
|
8886
9308
|
getCommandHostAdapters(): ICommandHostAdapters;
|
|
8887
9309
|
listCommands(): ICommandListEntry$1[];
|
|
@@ -8891,8 +9313,8 @@ declare class SessionSkillRouter {
|
|
|
8891
9313
|
description: string;
|
|
8892
9314
|
}>;
|
|
8893
9315
|
findSkillCommand(name: string): ICommand | undefined;
|
|
8894
|
-
executeCommand(name: string, args: string, source?: TCommandInvocationSource$1, originDriverId?: TDriverId): Promise<ICommandResult$1 | null>;
|
|
8895
|
-
executeCommandWithSource(source: TCommandInvocationSource$1, command: ISystemCommand, args: string, originDriverId?: TDriverId): Promise<ICommandResult$1>;
|
|
9316
|
+
executeCommand(name: string, args: string, source?: TCommandInvocationSource$1, originDriverId?: TDriverId, locality?: TCommandSurfaceLocality$1): Promise<ICommandResult$1 | null>;
|
|
9317
|
+
executeCommandWithSource(source: TCommandInvocationSource$1, command: ISystemCommand, args: string, originDriverId?: TDriverId, locality?: TCommandSurfaceLocality$1): Promise<ICommandResult$1>;
|
|
8896
9318
|
executeModelCommand(name: string, args: string): Promise<ICommandResult$1 | null>;
|
|
8897
9319
|
executeSkillCommandByName(name: string, args: string, request: ICommandSkillActivationRequest): Promise<ICommandResult$1 | null>;
|
|
8898
9320
|
executeUserResolvedSkillCommand(skill: ICommand, args: string, displayInput: string | undefined, rawInput: string | undefined, invocation: ISkillActivationEvent['invocation'],
|
|
@@ -8928,6 +9350,12 @@ declare class SessionExecutionController {
|
|
|
8928
9350
|
/** RUNTIME-003: the registry that makes `ITurnHandle.completed` able to promise it settles. */
|
|
8929
9351
|
readonly turns: TurnSettlerRegistry;
|
|
8930
9352
|
get executing(): boolean;
|
|
9353
|
+
/**
|
|
9354
|
+
* #3288 §2: the same tool-name -> `/command` projection `applyToolStart` reads live, exposed so the
|
|
9355
|
+
* history-replay projector can classify a STORED call's `commandName`/`internal` identically — the
|
|
9356
|
+
* mapping is a property of the session's current command registration, not of the moment a call ran.
|
|
9357
|
+
*/
|
|
9358
|
+
get modelCommandToolNames(): ReadonlyMap<string, string> | undefined;
|
|
8931
9359
|
/** The HEAD queued prompt (next to run), or null — backward-compatible single-prompt read. */
|
|
8932
9360
|
get pendingPrompt(): string | null;
|
|
8933
9361
|
/** REMOTE-014 E5: total queued inputs (0 when idle) — a co-drive "N queued" hint. */
|
|
@@ -8981,12 +9409,13 @@ declare abstract class InteractiveSessionBase {
|
|
|
8981
9409
|
getStreamingText(): string;
|
|
8982
9410
|
getActiveTools(): SessionExecutionController['activeTools'];
|
|
8983
9411
|
cancelQueue(): void;
|
|
8984
|
-
executeCommand(name: string, args: string, source?: TCommandInvocationSource$1, originDriverId?: TDriverId): Promise<ICommandResult$1 | null>;
|
|
9412
|
+
executeCommand(name: string, args: string, source?: TCommandInvocationSource$1, originDriverId?: TDriverId, locality?: TCommandSurfaceLocality$1): Promise<ICommandResult$1 | null>;
|
|
8985
9413
|
executeModelCommand(name: string, args: string): Promise<ICommandResult$1 | null>;
|
|
8986
9414
|
getSessionUsage(): readonly ISessionUsageRecord[];
|
|
8987
9415
|
/** ARCH-029 TC-08: one replay-validation path with no fallback branch. */
|
|
8988
9416
|
validateCurrentSessionReplayLog(): ICommandSessionReplayValidationReport;
|
|
8989
9417
|
getCommandInvocationSource(): TCommandInvocationSource$1;
|
|
9418
|
+
getCommandSurfaceLocality(): TCommandSurfaceLocality$1;
|
|
8990
9419
|
executeSkillCommandByName(name: string, args: string, request: ICommandSkillActivationRequest): Promise<ICommandResult$1 | null>;
|
|
8991
9420
|
listCommands(): ICommandListEntry$1[];
|
|
8992
9421
|
listSkills(): ICommandSkillListEntry[];
|
|
@@ -9000,6 +9429,8 @@ declare abstract class InteractiveSessionBase {
|
|
|
9000
9429
|
compactContext(instructions?: string): Promise<void>;
|
|
9001
9430
|
getFullHistory(): IHistoryEntry[];
|
|
9002
9431
|
getMessages(): TUniversalMessage[];
|
|
9432
|
+
/** #3288 §2: `getMessages()`'s chat entries, projected for a reload/reconnect/resume replay. */
|
|
9433
|
+
getMessagesDisplay(): IHistoryDisplaySegment[];
|
|
9003
9434
|
listEditCheckpoints(): IEditCheckpointSummary[];
|
|
9004
9435
|
inspectEditCheckpoint(checkpointId: string): IEditCheckpointInspection;
|
|
9005
9436
|
restoreEditCheckpoint(checkpointId: string): Promise<IEditCheckpointRestoreResult>;
|
|
@@ -9024,6 +9455,19 @@ declare abstract class InteractiveSessionBase {
|
|
|
9024
9455
|
getBackgroundJobGroup(groupId: string): IBackgroundJobGroupState$1 | undefined;
|
|
9025
9456
|
waitBackgroundJobGroup(groupId: string): Promise<IBackgroundJobGroupState$1>;
|
|
9026
9457
|
getExecutionWorkspaceSnapshot(options?: IExecutionWorkspaceSnapshotOptions): IExecutionWorkspaceSnapshot$1;
|
|
9458
|
+
/**
|
|
9459
|
+
* #3288 §1: this session's self-paced loops, summarized for the execution workspace. Overridden
|
|
9460
|
+
* by {@link InteractiveSession} (the only subclass with self-paced loops at all); the default
|
|
9461
|
+
* here keeps a hypothetical other subclass working with none, rather than requiring one.
|
|
9462
|
+
*/
|
|
9463
|
+
protected getSelfPacedLoopWorkspaceSummaries(): readonly IExecutionSelfPacedLoopSummary[];
|
|
9464
|
+
/**
|
|
9465
|
+
* #3288 §1: a single self-paced loop's own durable state, for its detail page (`readWorkspaceDetail`
|
|
9466
|
+
* — its entry has no `IBackgroundTaskState` of its own to read). Overridden by
|
|
9467
|
+
* {@link InteractiveSession}; the default here keeps a hypothetical other subclass working with
|
|
9468
|
+
* none, matching {@link getSelfPacedLoopWorkspaceSummaries}.
|
|
9469
|
+
*/
|
|
9470
|
+
protected getSelfPacedLoopDetail(_loopId: string): ISessionLoopState | undefined;
|
|
9027
9471
|
listExecutionWorkspaceEntries(filter?: IExecutionWorkspaceFilter): IExecutionWorkspaceEntry[];
|
|
9028
9472
|
getExecutionWorkspaceEntry(entryId: string): IExecutionWorkspaceEntry | undefined;
|
|
9029
9473
|
readExecutionWorkspaceDetail(entryId: string, cursor?: IExecutionDetailCursor): Promise<IExecutionDetailPage>;
|
|
@@ -9031,7 +9475,10 @@ declare abstract class InteractiveSessionBase {
|
|
|
9031
9475
|
listAgentDefinitions(): Array<{
|
|
9032
9476
|
name: string;
|
|
9033
9477
|
description: string;
|
|
9478
|
+
definedIn: string;
|
|
9034
9479
|
}>;
|
|
9480
|
+
getDefaultAgentType(): string;
|
|
9481
|
+
setDefaultAgentType(agentType: string): void;
|
|
9035
9482
|
listAgentJobs(): ISubagentJobState[];
|
|
9036
9483
|
spawnAgentJob(input: ISpawnAgentJobInput): Promise<ISubagentJobState>;
|
|
9037
9484
|
waitAgentJob(taskId: string): Promise<ISubagentJobResult>;
|
|
@@ -9060,68 +9507,12 @@ declare abstract class InteractiveSessionBase {
|
|
|
9060
9507
|
editSchedule(taskId: string, patch: IScheduleEditPatch): Promise<void>;
|
|
9061
9508
|
}
|
|
9062
9509
|
//#endregion
|
|
9063
|
-
//#region src/interactive/external-event-ingress.d.ts
|
|
9064
|
-
/** Identity and content attested by a trusted source adapter, never parsed from prompt text. */
|
|
9065
|
-
interface IAuthenticatedExternalEvent {
|
|
9066
|
-
readonly senderId: string;
|
|
9067
|
-
readonly conversationId: string;
|
|
9068
|
-
readonly content: string;
|
|
9069
|
-
}
|
|
9070
|
-
interface IExternalEventSourceOptions {
|
|
9071
|
-
readonly id: string;
|
|
9072
|
-
readonly allowedSenders: readonly string[];
|
|
9073
|
-
/** Verify the platform signature/credential and return its real sender; null means unauthenticated. */
|
|
9074
|
-
readonly authenticate: (raw: unknown) => IAuthenticatedExternalEvent | null | Promise<IAuthenticatedExternalEvent | null>;
|
|
9075
|
-
}
|
|
9076
|
-
type TExternalEventSettlement = {
|
|
9077
|
-
readonly outcome: 'completed';
|
|
9078
|
-
readonly response: string;
|
|
9079
|
-
} | {
|
|
9080
|
-
readonly outcome: 'interrupted';
|
|
9081
|
-
} | {
|
|
9082
|
-
readonly outcome: 'not-run';
|
|
9083
|
-
readonly reason: TTurnNotRunReason;
|
|
9084
|
-
} | {
|
|
9085
|
-
readonly outcome: 'failed';
|
|
9086
|
-
readonly reason: string;
|
|
9087
|
-
};
|
|
9088
|
-
interface IExternalEventReceipt {
|
|
9089
|
-
readonly outcome: 'accepted' | 'ignored' | 'refused';
|
|
9090
|
-
readonly reason?: string;
|
|
9091
|
-
readonly turnId?: string;
|
|
9092
|
-
readonly settled?: Promise<TExternalEventSettlement>;
|
|
9093
|
-
}
|
|
9094
|
-
interface IExternalEventSource {
|
|
9095
|
-
receive(raw: unknown): Promise<IExternalEventReceipt>;
|
|
9096
|
-
/** Stop admission synchronously; already-submitted turns retain their exact settlement. */
|
|
9097
|
-
close(): void;
|
|
9098
|
-
}
|
|
9099
|
-
interface IExternalEventHost {
|
|
9100
|
-
getPermissionMode(): TPermissionMode;
|
|
9101
|
-
addPermissionModeGuard(guard: (next: TPermissionMode) => void): () => void;
|
|
9102
|
-
submit(input: string, options: ISubmitOptions): Promise<ITurnHandle>;
|
|
9103
|
-
}
|
|
9104
|
-
/** Session-owned admission and turn settlement; adapters own platform authentication. */
|
|
9105
|
-
declare class ExternalEventIngress {
|
|
9106
|
-
private readonly host;
|
|
9107
|
-
private readonly sources;
|
|
9108
|
-
private pending;
|
|
9109
|
-
private releaseGuard?;
|
|
9110
|
-
constructor(host: IExternalEventHost);
|
|
9111
|
-
open(options: IExternalEventSourceOptions): IExternalEventSource;
|
|
9112
|
-
closeAll(): void;
|
|
9113
|
-
private hasActiveSource;
|
|
9114
|
-
private close;
|
|
9115
|
-
private maybeRelease;
|
|
9116
|
-
private receive;
|
|
9117
|
-
}
|
|
9118
|
-
//#endregion
|
|
9119
9510
|
//#region src/interactive/interactive-session.d.ts
|
|
9120
9511
|
interface IInteractiveSessionShutdownOptions {
|
|
9121
9512
|
reason?: TSessionEndReason;
|
|
9122
9513
|
message?: string;
|
|
9123
9514
|
}
|
|
9124
|
-
declare class InteractiveSession extends InteractiveSessionBase implements ISession, IAgentJobHostContext, IInteractiveSession$1, ICommandHostContext {
|
|
9515
|
+
declare class InteractiveSession extends InteractiveSessionBase implements ISession, IAgentJobHostContext, IInteractiveSession$1, ICommandHostContext, ISessionProjectRead {
|
|
9125
9516
|
private session;
|
|
9126
9517
|
private readonly listeners;
|
|
9127
9518
|
private initialized;
|
|
@@ -9177,6 +9568,8 @@ declare class InteractiveSession extends InteractiveSessionBase implements ISess
|
|
|
9177
9568
|
private providerDefinitions;
|
|
9178
9569
|
private activeOutputStyleId;
|
|
9179
9570
|
private orgPolicy;
|
|
9571
|
+
/** #3282 §3 — see the option doc comment on `IInteractiveSessionStandardOptions.setupRequired`. */
|
|
9572
|
+
private setupRequired;
|
|
9180
9573
|
/** The model fallback chain the session started with, re-read for each primary a switch picks. */
|
|
9181
9574
|
private modelFallback?;
|
|
9182
9575
|
protected readonly bgTracker: SessionBackgroundTaskTracker;
|
|
@@ -9193,6 +9586,8 @@ declare class InteractiveSession extends InteractiveSessionBase implements ISess
|
|
|
9193
9586
|
private currentTurnSource;
|
|
9194
9587
|
/** TERM-001: exclusivity + fast-fail over the transport-provided handoff capability. */
|
|
9195
9588
|
private readonly terminalHandoffGate;
|
|
9589
|
+
private readonly externalEventVerifierFactory?;
|
|
9590
|
+
private readonly externalEventGrantHistory?;
|
|
9196
9591
|
/**
|
|
9197
9592
|
* REMOTE-007: the framework's event-emitting "ask the user" default (never undefined). It emits
|
|
9198
9593
|
* `ask_request` and parks the answer in {@link promptRegistry}. `getUserInteraction()` gates the
|
|
@@ -9206,6 +9601,7 @@ declare class InteractiveSession extends InteractiveSessionBase implements ISess
|
|
|
9206
9601
|
private readonly promptFileReferenceTag?;
|
|
9207
9602
|
private readonly resolveDefaultLoopPrompt?;
|
|
9208
9603
|
private readonly userSettingsSources;
|
|
9604
|
+
private readonly statusPush;
|
|
9209
9605
|
constructor(options: TInteractiveSessionOptions);
|
|
9210
9606
|
protected getPendingRequest(): IExecutionPendingRequest | undefined;
|
|
9211
9607
|
getProjectAccess(): TWorkspaceProjectAccess;
|
|
@@ -9225,6 +9621,25 @@ declare class InteractiveSession extends InteractiveSessionBase implements ISess
|
|
|
9225
9621
|
* split-brain).
|
|
9226
9622
|
*/
|
|
9227
9623
|
getMemoryStore(): IMemoryStore;
|
|
9624
|
+
/**
|
|
9625
|
+
* #3282 §4c — the Project panel's "Changes" section. The SAME reader `/git status` runs
|
|
9626
|
+
* (`readProjectGitStatus`, `agent-framework/src/git`), over this session's own `cwd` — a
|
|
9627
|
+
* `not-a-repository` result is the panel's one plain sentence, never a thrown error.
|
|
9628
|
+
*/
|
|
9629
|
+
readProjectStatus(): Promise<TProjectStatusRead>;
|
|
9630
|
+
/**
|
|
9631
|
+
* #3282 §4c — the Project panel's "File diff" section, for one file `readProjectStatus` reported.
|
|
9632
|
+
* `readProjectGitDiff` checks workspace containment itself (`isPathInside`, SEC-006) before any git
|
|
9633
|
+
* or filesystem call.
|
|
9634
|
+
*/
|
|
9635
|
+
readProjectDiff(path: string): Promise<TProjectDiffRead>;
|
|
9636
|
+
/**
|
|
9637
|
+
* #3282 §4c — the Project panel's "Memory" section: the SAME store `/memory show` reads
|
|
9638
|
+
* (`getMemoryStore()`), read-only. `getMemoryStore()` throwing (memory off by default, or
|
|
9639
|
+
* unavailable on this host — `WorkspaceAuthorityRequiredError`) becomes the panel's plain message,
|
|
9640
|
+
* never a thrown error — the same fix `executeMemoryCommand` needed for the red toast.
|
|
9641
|
+
*/
|
|
9642
|
+
readProjectMemory(): Promise<TProjectMemoryRead>;
|
|
9228
9643
|
get sessionId(): string;
|
|
9229
9644
|
on<E extends TInteractiveEventName$1>(event: E, handler: IInteractiveSessionEvents$1[E]): void;
|
|
9230
9645
|
off<E extends TInteractiveEventName$1>(event: E, handler: IInteractiveSessionEvents$1[E]): void;
|
|
@@ -9234,7 +9649,7 @@ declare class InteractiveSession extends InteractiveSessionBase implements ISess
|
|
|
9234
9649
|
signal?: AbortSignal;
|
|
9235
9650
|
}): Promise<IToolExecutionResult>;
|
|
9236
9651
|
submit(input: string, displayInput?: string, rawInput?: string, options?: ISubmitOptions): Promise<ITurnHandle>;
|
|
9237
|
-
/** Explicit host opt-in for one
|
|
9652
|
+
/** Explicit host opt-in for one external-event grant; its verifier alone decides who is admitted. */
|
|
9238
9653
|
openExternalEventSource(options: IExternalEventSourceOptions): Promise<IExternalEventSource>;
|
|
9239
9654
|
private submitNewTurn;
|
|
9240
9655
|
private resumeQueuedTurn;
|
|
@@ -9249,7 +9664,7 @@ declare class InteractiveSession extends InteractiveSessionBase implements ISess
|
|
|
9249
9664
|
* by the decision recorded on `IScheduledBackgroundTaskRequest`. `turnSource: 'agent-wakeup'` is
|
|
9250
9665
|
* how a consumer tells it apart from a typed prompt; it does not change what the turn may do.
|
|
9251
9666
|
*/
|
|
9252
|
-
requestWakeup(instruction: string, sourceTaskId: string): boolean;
|
|
9667
|
+
requestWakeup(instruction: string, sourceTaskId: string, displayInput?: string): boolean;
|
|
9253
9668
|
private armSessionLoopExpiry;
|
|
9254
9669
|
listSchedules(): IBackgroundTaskState[];
|
|
9255
9670
|
private assertNotSelfPacedTimer;
|
|
@@ -9258,9 +9673,13 @@ declare class InteractiveSession extends InteractiveSessionBase implements ISess
|
|
|
9258
9673
|
editSchedule(taskId: string, patch: Parameters<InteractiveSessionBase['editSchedule']>[1]): Promise<void>;
|
|
9259
9674
|
/** Session-owned self-paced loops remain addressable after a one-shot timer has completed. */
|
|
9260
9675
|
listSelfPacedLoops(): readonly ISessionLoopState[];
|
|
9676
|
+
protected getSelfPacedLoopWorkspaceSummaries(): readonly IExecutionSelfPacedLoopSummary[];
|
|
9677
|
+
protected getSelfPacedLoopDetail(loopId: string): ISessionLoopState | undefined;
|
|
9261
9678
|
createSelfPacedLoop(instruction: string, options?: {
|
|
9262
9679
|
useDefaultPrompt?: boolean;
|
|
9263
9680
|
}): Promise<ISessionLoopState>;
|
|
9681
|
+
/** #3189: stop the one loop waiting for its wake; with several waiting, say how to choose. */
|
|
9682
|
+
stopWaitingSelfPacedLoop(reason?: string): Promise<TWaitingLoopStopOutcome>;
|
|
9264
9683
|
stopSelfPacedLoop(loopId: string, reason?: string): Promise<void>;
|
|
9265
9684
|
private selfPacedWakeId;
|
|
9266
9685
|
private parseSelfPacedWakeId;
|
|
@@ -9287,6 +9706,11 @@ declare class InteractiveSession extends InteractiveSessionBase implements ISess
|
|
|
9287
9706
|
private notifyQueueCleared;
|
|
9288
9707
|
shutdown(options?: IInteractiveSessionShutdownOptions): Promise<void>;
|
|
9289
9708
|
get isInitialized(): boolean;
|
|
9709
|
+
/**
|
|
9710
|
+
* Resolves once initialization has finished — the session is then saved, so it is listed — and
|
|
9711
|
+
* rejects with the reason if it failed. A host waits on it before making this session current.
|
|
9712
|
+
*/
|
|
9713
|
+
whenInitialized(): Promise<void>;
|
|
9290
9714
|
/** Passive, content-free host observation; never registers an answering prompt listener. */
|
|
9291
9715
|
getLocalActivityStatus(): 'working' | 'needs-input' | 'idle' | undefined;
|
|
9292
9716
|
getAutoCompactThresholdSource(): TAutoCompactThresholdSource;
|
|
@@ -9356,6 +9780,21 @@ declare class InteractiveSession extends InteractiveSessionBase implements ISess
|
|
|
9356
9780
|
setAutoCompactThreshold(threshold: TAutoCompactThreshold$2, source?: TAutoCompactThresholdSource): void;
|
|
9357
9781
|
clearConversationHistory(): void;
|
|
9358
9782
|
getName(): string | undefined;
|
|
9783
|
+
/** The one status read every client renders beside the conversation (#3186). */
|
|
9784
|
+
getStatusSnapshot(): ISessionStatusSnapshot;
|
|
9785
|
+
/**
|
|
9786
|
+
* The models a client's model menu may switch to (#3282 §2), grouped by configured provider
|
|
9787
|
+
* profile. Reads the same merged settings and `providerDefinitions` `/provider switch` and
|
|
9788
|
+
* `/model` already read, so the GUI's list and what `/model <id>` accepts never drift apart.
|
|
9789
|
+
*/
|
|
9790
|
+
listModels(): IModelListSnapshot;
|
|
9791
|
+
/**
|
|
9792
|
+
* #3282 §3 — {@link ICommandHostSetupState}: whether THIS session is still running the placeholder
|
|
9793
|
+
* provider. `/provider add` reads this (never settings) to decide hot-swap vs. restart, because a
|
|
9794
|
+
* settings-inferred "no `currentProvider`" is also true of an ordinary env-default session that was
|
|
9795
|
+
* never in setup mode.
|
|
9796
|
+
*/
|
|
9797
|
+
isSetupRequired(): boolean;
|
|
9359
9798
|
attachTransport(transport: ITransportAdapter<IInteractiveSession$1>): void;
|
|
9360
9799
|
setName(name: string): void;
|
|
9361
9800
|
private getBackgroundTaskManager;
|
|
@@ -9404,7 +9843,7 @@ declare class InteractiveSession extends InteractiveSessionBase implements ISess
|
|
|
9404
9843
|
private switchProvider;
|
|
9405
9844
|
/** CMD-004: after the command runs, the HOST applies its host actions via
|
|
9406
9845
|
* {@link applyCommandHostActions} and emits requester-routed `ui_intent` events. */
|
|
9407
|
-
executeCommand(name: string, args: string, source?: TCommandInvocationSource$1, originDriverId?: TDriverId): Promise<ICommandResult$1 | null>;
|
|
9846
|
+
executeCommand(name: string, args: string, source?: TCommandInvocationSource$1, originDriverId?: TDriverId, locality?: TCommandSurfaceLocality$1): Promise<ICommandResult$1 | null>;
|
|
9408
9847
|
}
|
|
9409
9848
|
//#endregion
|
|
9410
9849
|
//#region src/interactive/session-naming.d.ts
|
|
@@ -9475,6 +9914,22 @@ declare class PeerMessageIngress {
|
|
|
9475
9914
|
receive(ingress: IPeerMessageIngress): Promise<IIngressResult>;
|
|
9476
9915
|
}
|
|
9477
9916
|
//#endregion
|
|
9917
|
+
//#region src/interactive/interactive-session-rename.d.ts
|
|
9918
|
+
/** Thrown when a session exists on disk in a form this build cannot read, so a rename cannot land. */
|
|
9919
|
+
declare class SessionRenameUnavailableError extends Error {
|
|
9920
|
+
readonly sessionId: string;
|
|
9921
|
+
readonly outcome: 'corrupt' | 'unsupported';
|
|
9922
|
+
constructor(sessionId: string, outcome: 'corrupt' | 'unsupported');
|
|
9923
|
+
}
|
|
9924
|
+
/**
|
|
9925
|
+
* Persist a new name onto the stored record.
|
|
9926
|
+
*
|
|
9927
|
+
* `missing` is not an error: a session with nothing saved yet is renamed in memory and written by
|
|
9928
|
+
* the next persist. `corrupt` and `unsupported` are — the record is there, this build cannot read
|
|
9929
|
+
* it, and reporting nothing is what made a rename appear to succeed while changing nothing on disk.
|
|
9930
|
+
*/
|
|
9931
|
+
declare function persistSessionRename(sessionStore: IInteractiveSessionStore, sessionId: string, name: string): void;
|
|
9932
|
+
//#endregion
|
|
9478
9933
|
//#region src/interaction/InteractiveRuntime.d.ts
|
|
9479
9934
|
interface IInteractiveRuntime {
|
|
9480
9935
|
start(): Promise<void>;
|
|
@@ -9502,5 +9957,5 @@ interface IInteractiveRuntimeOptions {
|
|
|
9502
9957
|
type IInteractiveRuntimeTestOptions = Omit<IInteractiveRuntimeOptions, 'provider' | 'cwd'>;
|
|
9503
9958
|
declare function createInteractiveRuntime(options: IInteractiveRuntimeOptions): IInteractiveRuntime;
|
|
9504
9959
|
//#endregion
|
|
9505
|
-
export { IHostBundlePluginLoaderOptions as $, ICommandHostPresetApplication as $a, EXECUTION_ORIGIN_METADATA_KEYS as $c, THostSettingsScope as $i, ICommandSessionInfo as $n, IPromptFileReferenceResolveOptions as $o, writeCommandPermissionMode as $r, isSafeSessionId$1 as $s, IReversibleToolSafetyReport as $t, hasBlockingPromptFileReferenceDiagnostics as A, deleteProviderProfile as Aa, IOutputStylePrompt as Ac, IActiveModelChangeResult as Ai, IEditCheckpointRestoreResult as Al, createSystemCommands as An, GOAL_SIGNAL_TOOL_NAME as Ao, isStatusLineCommandSettingsPatch as Ar, ICommandWorkspaceAdapter as As, ISkillPromptContext as At, IForkExecutionOptions as B, TSystemCommandLifecycle as Ba, IBackgroundTaskRunner$1 as Bc, TSettingsScope as Bi, TEffortSelection as Bl, REWIND_COMMAND_ARGUMENT_HINT as Bn, IContextReferenceClearResult as Bo, TPermissionRuleKind as Br, IAdvisorStatus as Bs, TSubagentRunnerFactory as Bt, TSettingsMergeRule as C, IProviderProfileSettings as Ca, TWorkspaceProjectAuthorityCandidate as Cc, readProviderSettings as Ci, IOrgPolicy as Cl, IContributionSource as Cn, IStartupMemory as Co, isAppearanceSettingsPatch as Cr, ICommandPickerAdapter as Cs, BuiltinCommandSource as Ct, buildPromptWithFileReferences as D, TProviderSettingsDocument as Da, TWorkspaceProjectStateDirectories as Dc, readMergedProviderSettingsFromSources as Di, IEditCheckpointInspectionPlan as Dl, TEnvResolvedSettings as Dn, isMemoryType as Do, STATUSLINE_COMMAND_DESCRIPTION as Dr, ICommandSandboxStatus as Ds, retrieveAgentToolDeps as Dt, parsePromptFileReferences as E, IProviderSetupPatch as Ea, TWorkspaceProjectSettingsWriteDecision as Ec, mergeSettings as Ei, IEditCheckpointInspection as El, IResolvedConfig as En, ProjectMemoryStore as Eo, STATUSLINE_COMMAND_ARGUMENT_HINT as Er, ICommandSandboxAdapter as Es, createAgentTool as Et, IPromptHistoryOptions as F, ICommandModule as Fa, IAgentJobLogs as Fc, resolveProviderSettingsWriteTarget as Fi, IAgentDefinition as Fl, createCommandMemoryStores as Fn, IGoalSignal as Fo, IPermissionsCommandState as Fr, TRemoteControlStatus as Fs, ICreateSessionOptions as Ft, selectCommandModules as G, ICommandHostCatalog as Ga, ISpawnProcessTaskRequest as Gc, IProjectSettingsPath as Gi, listCommandEditCheckpointBranches as Gn, createContextReferenceItem as Go, groupPermissionRulesBySource as Gr, IHostToolResultSpillStore as Gs, ISubagentPromptOptions as Gt, ISkillExecutionResult as H, ICommandHostAdapterAccess as Ha, ICreateExecutionWorkspaceTaskSpawnerOptions as Hc, readSettings as Hi, parseModelEffort as Hl, buildRewindCommandSubcommands as Hn, IContextReferenceRemoveResult as Ho, buildPermissionModeSubcommands as Hr, formatAdvisorSpec as Hs, ISubagentOptions as Ht, IRemoteCommandPolicy as I, TCommandModuleSessionRequirement as Ia, IAgentJobMonitors as Ic, createWorkspaceProjectSettingsStore as Ii, IProviderErrorGuidance as Il, hasSensitiveCommandMemoryContent as In, IGoalStartOptions as Io, PERMISSIONS_COMMAND_DESCRIPTION as Ir, TSandboxCommandMode as Is, TSessionResponseFormat as It, BundlePluginInstaller as J, ICommandHostContextReferences as Ja, createMainThreadDetailPage as Jc, TSettingsSource as Ji, rollbackCommandEditCheckpoint as Jn, toContextReferenceRecords as Jo, parsePermissionModeArgument as Jr, createNodeHostSessionStore as Js, getForkWorkerSuffix as Jt, SystemCommandExecutor as K, ICommandHostCheckpoints as Ka, createExecutionWorkspaceTaskSpawner as Kc, IWorkspaceProjectSettingsSource as Ki, listCommandEditCheckpoints as Kn, listActiveContextReferences as Ko, isPermissionMode as Kr, IInteractiveSessionRecord$1 as Ks, TSubagentSuffix as Kt, createDefaultRemoteCommandPolicy as L, DuplicateSystemCommandSemanticRoleError as La, IAgentJobSchedules as Lc, createNodeHostSettingsStore as Li, IModelEffortInputs as Ll, isCommandMemoryType as Ln, TGoalDecision as Lo, PERMISSION_MODE_ARGUMENT_HINT as Lr, ADVISOR_OFF as Ls, IToolCallHandoffPolicy as Lt, IExecutionResult$2 as M, setCurrentProvider as Ma, IAgentJobDispatch as Mc, applyActiveModelChange as Mi, IEditCheckpointTurnInput as Ml, MEMORY_COMMAND_DESCRIPTION as Mn, DEFAULT_GOAL_MAX_ITERATIONS as Mo, IPresetApplicationResult as Mr, IHandoffStaysBehind as Ms, preprocessShellCommands as Mt, TInteractivePermissionHandler as N, upsertProviderProfile as Na, IAgentJobGroups as Nc, applyProviderConfiguration as Ni, TEditCheckpointFileRestoreAction as Nl, MEMORY_COMMAND_USAGE as Nn, DEFAULT_GOAL_NO_PROGRESS_LIMIT as No, applyPresetToSession as Nr, IPermissionRuleLayer as Ns, substituteVariables as Nt, createPromptFileReferenceHistoryEntry as O, buildProviderProfile as Oa, TWorkspaceProjectStateNamespace as Oc, resolveActiveProvider as Oi, IEditCheckpointManifest as Ol, TSandboxSettings as On, buildGoalContinuationPrompt as Oo, applyStatusLineSettings as Or, ICommandSettingsAdapter as Os, storeAgentToolDeps as Ot, TPermissionResultValue$1 as P, validateProviderProfile as Pa, IAgentJobHostContext as Pc, applyProviderSwitch as Pi, ICapabilityDescriptor as Pl, buildMemoryCommandSubcommands as Pn, GoalController as Po, IPermissionRuleGroup as Pr, IWorkspaceMoveRequest as Ps, ILivePromptTracePort as Pt, MarketplaceClient as Q, ICommandHostPlan as Qa, createExecutionWorkspaceSnapshot as Qc, createNodeHostSettingsSource as Qi, EXIT_COMMAND_DESCRIPTION as Qn, IPromptFileReferenceLimits as Qo, retryCommandPermissionDenial as Qr, createUserSessionStore as Qs, IReversibleToolSafetyInput as Qt, ISkillActivationHistoryData as R, ISystemCommand as Ra, MONITOR_SHELL_TOOL as Rc, ISettingsDocumentStore as Ri, IModelEffortResolution as Rl, listCommandUsedMemoryReferences as Rn, extractGoalSignal as Ro, PERMISSION_MODE_COMMAND_DESCRIPTION as Rr, IAdvisorSetResult as Rs, IToolCallHandoffProvenance as Rt, IHookDefinitionSource as S, ILegacyProviderSettings as Sa, TWorkspaceProjectAccess as Sc, readMergedProviderSettings as Si, ICommandResult$1 as Sl, inspectSkillSources as Sn, IProjectMemorySummary as So, applyAppearanceSettings as Sr, ICommandPermissionRulesAdapter as Ss, TMarketplaceSource as St, resolvePromptFileReferences as T, IProviderSetupInput as Ta, TWorkspaceProjectSettingsTarget as Tc, mergeProviders as Ti, IEditCheckpointFileRecord as Tl, ILoadContextOptions as Tn, MEMORY_INDEX_MAX_LINES as To, DEFAULT_STATUS_LINE_COMMAND_SETTINGS as Tr, ICommandRemoteControlAdapter as Ts, CommandRegistry as Tt, executeSkill as U, ICommandHostAgentJobs as Ua, IExecutionWorkspaceTaskSpawner as Uc, updateModelInSettings as Ui, resolveModelEffort as Ul, forkCommandEditCheckpoint as Un, IContextReferenceUpsertResult as Uo, formatCommandPermissionsMessage as Ur, parseAdvisorSpec as Us, ISubagentParentContext as Ut, ISkillExecutionCallbacks as V, TSystemCommandSemanticRole as Va, IBackgroundTaskSpawnerGroupRequest as Vc, deleteSettings as Vi, TEffortSource as Vl, REWIND_COMMAND_DESCRIPTION as Vn, IContextReferenceInventoryLimits as Vo, VALID_PERMISSION_MODES as Vr, ICommandAdvisorAdapter as Vs, createInProcessSubagentRunner as Vt, findUnknownModuleNames as W, ICommandHostBackgroundTasks as Wa, ISpawnAgentTaskRequest as Wc, writeSettings as Wi, inspectCommandEditCheckpoint as Wn, clearContextReferences as Wo, formatInvalidPermissionModeMessage as Wr, resolveStartupAdvisorSpec as Ws, createSubagentSession as Wt, IInstalledPluginRecord as X, ICommandHostGoal as Xa, TExecutionAttachOutcome as Xc, readSettingsSourceText as Xi, CLEAR_COMMAND_DESCRIPTION as Xn, IPromptFileReferenceDiagnostic as Xo, readCommandPermissionsState as Xr, createProjectSessionStore as Xs, IReversibleExecutionOptions as Xt, IBundlePluginInstallerOptions as Y, ICommandHostContextWindow as Ya, IResolveExecutionAttachInput as Yc, createWorkspaceProjectSettingsSources as Yi, switchCommandEditCheckpointBranch as Yn, upsertContextReference as Yo, readCommandPermissionMode as Yr, createNodeToolResultSpillStore as Ys, getSubagentSuffix as Yt, TInstalledPluginsRegistry as Z, ICommandHostMemory as Za, resolveExecutionAttach as Zc, INodeHostSettingsSource as Zi, COST_COMMAND_DESCRIPTION as Zn, IPromptFileReferenceHistoryData as Zo, resolvePermissionModeAdapter as Zr, createUserPromptHistoryFile as Zs, IReversibleToolSafetyContext as Zt, ISessionRecordRestoreResult as _, resetAutoCompactThresholdSetting as _a, IWorkspaceTrustCause as _c, HELP_COMMAND_DESCRIPTION as _i, ICommandSessionReplayValidationReport as _l, ISkillRootInspection as _n, IMemoryRetrievalResult as _o, resolvePluginCommandAdapter as _r, ICommandMCPOAuthStatus as _s, IKnownMarketplaceEntry as _t, PeerMessageIngress as a, AUTO_COMPACT_THRESHOLD_SETTINGS_KEY as aa, WorkspaceSessionLogSource as ac, formatLanguageUsageMessage as ai, BackgroundJobOrchestrator as al, wrapReversibleExecutionTools as an, IMemoryBudget as ao, createSessionExitHostAction as ar, EditCheckpointStore as as, IBundlePluginHookIssue as at, createSubagentLogger as b, IProviderCommandModuleOptions as ba, IWorkspaceTrustStoreSnapshot as bc, ProviderConfigError as bi, IUnknownCommandModuleName as bl, SkillCommandSource as bn, IAppendMemoryInput as bo, IAppearanceSettings as br, ICommandOutputStyleSummary as bs, IMarketplacePluginEntry as bt, IInteractiveSessionShutdownOptions as c, TAutoCompactThreshold$2 as ca, IWorkspaceAncestorTextEntry as cc, BACKGROUND_COMMAND_USAGE as ci, ISessionUsageRecord as cl, PromptExecutor as cn, IMemoryStore as co, formatCommandSessionReplayValidationReport as cr, ICommandEffortAdapter as cs, IBundlePluginMcpFault as ct, IAuthenticatedExternalEvent as d, compactCommandContext as da, IWorkspaceIdentityResolver as dc, closeCommandBackgroundTask as di, ICommandSessionIdentity as dl, IAgentExecutorOptions as dn, ISemanticMemoryAdapter as do, validateCommandSessionReplayLog as dr, ICommandMCPActivationAdapter as ds, IBundleSkill as dt, TSettingsCheck as ea, listResumableSessionSummaries as ec, LANGUAGE_COMMAND_ARGUMENT_HINT as ei, createBackgroundGroupExecutionEntryId as el, TReversibleExecutionIsolation as en, ICommandHostSessionAccess as eo, RENAME_COMMAND_DESCRIPTION as er, IPromptFileReferenceToken as es, createHostBundlePluginLoader as et, IExternalEventReceipt as f, listCommandContextReferences as fa, IWorkspaceProjectAuthority as fc, formatCommandBackgroundTask as fi, ICommandSessionModel as fl, IAgentSession as fn, ISemanticMemoryQueryResult as fo, PLUGIN_COMMAND_ARGUMENT_HINT as fr, ICommandMCPActivationSummary as fs, ILoadedBundlePlugin as ft, IInteractiveSession$1 as g, removeCommandContextReference as ga, IWorkspaceProjectStateStorage as gc, readCommandBackgroundTaskLog as gi, ICommandHostNoCapability as gl, ISkillRootDescriptor as gn, IMemoryPendingRecord as go, createShowPluginManagerIntent as gr, ICommandMCPOAuthRedirectPrompt as gs, NodeHostPluginSettingsStore as gt, TExternalEventSettlement as h, readCommandContextState as ha, IWorkspaceProjectSettingsWriter as hc, parseCommandBackgroundLogCursor as hi, ICommandSessionRuntime as hl, listFrameworkProjectContributionPaths as hn, IMemoryExtractionInput as ho, buildPluginCommandSubcommands as hr, ICommandMCPOAuthLogoutResult as hs, IPluginSettings as ht, IInteractiveRuntime as i, testProviderProfileCommand as ia, WorkspaceSessionLogSink as ic, buildLanguageCommandSubcommands as ii, parseExecutionWorkspaceEntryId as il, evaluateReversibleToolSafety as in, IDurableMemoryReader as io, clearConversationHistory as ir, wrapEditCheckpointTools as is, IBundlePluginFeatures as it, toPromptFileReferenceRecords as j, mergeProviderPatch as ja, IPresetApplicationOptions as jc, IProviderSwitchOptions as ji, IEditCheckpointSummary as jl, MEMORY_COMMAND_ARGUMENT_HINT as jn, createGoalStatusTool as jo, readStatusLineSettings as jr, IHandoffProgress as js, TShellExecFn as jt, formatPromptFileReferenceDiagnostics as k, buildProviderSetupPatch as ka, TWorkspaceTrustState as kc, IActiveModelChangeOptions as ki, IEditCheckpointRecorder as kl, TSettings as kn, buildGoalStartPrompt as ko, buildStatusLineCommandSubcommands as kr, ICommandSettingsDocument as ks, IAgentToolDeps as kt, InteractiveSession as l, addCommandContextReference as la, IWorkspaceDirectoryEntry as lc, buildBackgroundCommandSubcommands as li, ICommandSessionContextWindow as ll, TProviderFactory as ln, IMemoryWriter as lo, parseSessionNameArgument as lr, ICommandHandoffAdapter as ls, IBundlePluginMcpServer as lt, IExternalEventSourceOptions as m, readAutoCompactThresholdSource as ma, IWorkspaceProjectReader as mc, listCommandBackgroundTasks as mi, ICommandSessionPreset as ml, IProjectContributionPath as mn, IMemoryCandidate as mo, RELOAD_PLUGINS_COMMAND_DESCRIPTION as mr, ICommandMCPOAuthLoginResult as ms, TEnabledPlugins as mt, IInteractiveRuntimeTestOptions as n, checkSettingsDocument as na, resolveSessionIdByIdOrName as nc, RECOMMENDED_RESPONSE_LANGUAGES as ni, createExecutionOriginMetadata as nl, TReversibleSafetyStatus as nn, ICommandHostUserInteraction as no, RESUME_COMMAND_DESCRIPTION as nr, IResolvedPromptFileReferences as ns, loadHostBundlePluginsFromScopes as nt, IGenerateSessionNameOptions as o, DEFAULT_AUTO_COMPACT_THRESHOLD as oa, IRestrictedWorkspaceProjectAccess as oc, parseLanguageArgument as oi, IBackgroundJobOrchestratorOptions as ol, IPromptExecutorOptions as on, IMemoryCurationQueue as oo, createSessionRenameHostAction as or, ICommandCostBudget as os, IBundlePluginInspection as ot, IExternalEventSource as p, readAutoCompactThreshold as pa, IWorkspaceProjectMutation as pc, formatCommandBackgroundTaskList as pi, ICommandSessionPermissions as pl, TSessionFactory as pn, IAutomaticMemoryConfig as po, PLUGIN_COMMAND_DESCRIPTION as pr, ICommandMCPOAuthLoginRequest as ps, TBundlePluginSkipReason as pt, PluginCommandSource as q, ICommandHostContext as qa, createLineDetailPage as qc, TProjectSettingsScope as qi, restoreCommandEditCheckpoint as qn, removeContextReference as qo, listCommandSessionAllowedTools as qr, IInteractiveSessionStore$1 as qs, assembleSubagentPrompt as qt, createInteractiveRuntime as r, probeProviderProfile as ra, WorkspaceProjectSessionStore as rc, TRecommendedResponseLanguage as ri, createMainThreadExecutionEntryId as rl, TReversibleSideEffect as rn, ICommandHostWorkspace as ro, VALIDATE_SESSION_COMMAND_DESCRIPTION as rr, TPromptFileReferenceDiagnosticCode as rs, BundlePluginLoader as rt, generateSessionName as s, ICompactContextResult as sa, ITrustedWorkspaceProjectAccess as sc, BACKGROUND_COMMAND_DESCRIPTION as si, summarizeBackgroundJobGroup as sl, IPromptProvider as sn, IMemoryRecaller as so, createShowSessionPickerIntent as sr, ICommandCostBudgetAdapter as ss, IBundlePluginManifest as st, IInteractiveRuntimeOptions as t, checkNodeHostSettingsFile as ta, resolveLatestSessionId as tc, LANGUAGE_COMMAND_DESCRIPTION as ti, createBackgroundTaskExecutionEntryId as tl, TReversibleRollbackLayer as tn, ICommandHostTerminalHandoff as to, RENAME_COMMAND_USAGE as tr, IResolvedPromptFileReference as ts, loadHostBundlePluginInspectionFromScopes as tt, ExternalEventIngress as u, clearCommandContextReferences as ua, IWorkspaceIdentity as uc, cancelCommandBackgroundTask as ui, ICommandSessionHistory as ul, AgentExecutor as un, IPerTurnRecallConfig as uo, readCommandSessionInfo as ur, ICommandHostAdapters as us, IBundlePluginSkip as ut, restoreSessionRecordIntoSession as v, setCommandAutoCompactThreshold as va, IWorkspaceTrustGrant as vc, formatCommandHelpMessage as vi, ICommandSkillListEntry as vl, ISkillSourceInspection as vn, TMemoryCandidateStatus as vo, APPEARANCE_SETTINGS_KEYS as vr, ICommandMCPSourceProblem as vs, IMarketplaceClientOptions as vt, resolvePromptFileReferencePaths as w, IProviderSettingsBuildOptions as wa, TWorkspaceProjectMutationDecision as wc, resolveEnvDefaultProvider as wi, IEditCheckpointFileInspection as wl, createWorkspaceProjectContributionSource as wn, MEMORY_INDEX_MAX_BYTES as wo, readAppearanceSettings as wr, ICommandProcessAdapter as ws, createBuiltinCommandModule as wt, resolveSubagentLogDir as x, IProviderCommandSettingsAdapter as xa, TWorkspaceContributionKind as xc, createProviderFromSettings as xi, TAutoCompactThresholdSource as xl, TSkillSkipReason as xn, IAppendMemoryResult as xo, TAppearanceSettingsPatch as xr, ICommandPermissionModeAdapter as xs, TKnownMarketplacesRegistry as xt, TInteractiveSessionOptions as y, writeAutoCompactThresholdSetting as ya, IWorkspaceTrustStore as yc, IReadProviderSettingsOptions as yi, IModelReapplyOptions as yl, ISkillSourceSkip as yn, TMemoryPolicyMode as yo, DEFAULT_APPEARANCE_SETTINGS as yr, ICommandOutputStyleRegistryAdapter as ys, IMarketplaceManifest as yt, createSkillExecutionPort as z, ISystemCommandSemanticRoles as za, MonitorCommandRefusedError as zc, TSettingsData as zi, TEffortDisposition as zl, recordCommandMemoryEvent as zn, IContextReferenceAddResult as zo, RUNTIME_RULE_SOURCE as zr, IAdvisorSpec as zs, IInProcessSubagentRunnerDeps as zt };
|
|
9506
|
-
//# sourceMappingURL=createInteractiveRuntime-
|
|
9960
|
+
export { IBundlePluginInstallerOptions as $, ICommandHostBackgroundTasks as $a, IAgentJobLogs as $c, writeSettings as $i, DEFAULT_AGENT_DEFINED_IN as $l, switchCommandEditCheckpointBranch as $n, IContextReferenceRemoveResult as $o, parsePermissionModeArgument as $r, IAdvisorSetResult as $s, getSubagentSuffix as $t, parsePromptFileReferences as A, IProviderCommandSettingsAdapter as Aa, IWorkspaceProjectAuthority as Ac, createProviderFromSettings as Ai, ICommandSessionModel as Al, IResolvedConfig as An, IAppendMemoryInput as Ao, STATUSLINE_COMMAND_ARGUMENT_HINT as Ar, ICommandMCPOAuthStatus as As, createAgentTool as At, IRemoteCommandPolicy as B, mergeProviderPatch as Ba, TWorkspaceProjectAccess as Bc, IProviderSwitchOptions as Bi, ICommandResult$1 as Bl, hasSensitiveCommandMemoryContent as Bn, GOAL_SIGNAL_TOOL_NAME as Bo, PERMISSIONS_COMMAND_DESCRIPTION as Br, ICommandSandboxStatus as Bs, TSessionResponseFormat as Bt, createSubagentLogger as C, readAutoCompactThresholdSource as Ca, WorkspaceSessionLogSource as Cc, formatCommandHelpMessage as Ci, BackgroundJobOrchestrator as Cl, ISkillSourceSkip as Cn, IAutomaticMemoryConfig as Co, DEFAULT_APPEARANCE_SETTINGS as Cr, ICommandHostAdapters as Cs, IMarketplaceManifest as Ct, TSettingsMergeRule as D, setCommandAutoCompactThreshold as Da, IWorkspaceDirectoryEntry as Dc, resolveModelListSelection as Di, ICommandSessionContextWindow as Dl, IContributionSource as Dn, IMemoryRetrievalResult as Do, isAppearanceSettingsPatch as Dr, ICommandMCPOAuthLoginResult as Ds, BuiltinCommandSource as Dt, IHookDefinitionSource as E, resetAutoCompactThresholdSetting as Ea, IWorkspaceAncestorTextEntry as Ec, buildModelListSnapshot as Ei, ISessionUsageRecord as El, inspectSkillSources as En, IMemoryPendingRecord as Eo, applyAppearanceSettings as Er, ICommandMCPOAuthLoginRequest as Es, TMarketplaceSource as Et, toPromptFileReferenceRecords as F, IProviderSetupPatch as Fa, IWorkspaceTrustCause as Fc, mergeSettings as Fi, ICommandSessionReplayValidationReport as Fl, MEMORY_COMMAND_ARGUMENT_HINT as Fn, MEMORY_INDEX_MAX_LINES as Fo, readStatusLineSettings as Fr, ICommandPermissionRulesAdapter as Fs, TShellExecFn as Ft, ISkillExecutionCallbacks as G, TCommandModuleSessionRequirement as Ga, TWorkspaceProjectStateDirectories as Gc, createWorkspaceProjectSettingsStore as Gi, IEditCheckpointInspectionPlan as Gl, REWIND_COMMAND_DESCRIPTION as Gn, IGoalSignal as Go, TPermissionRuleKind as Gr, IHandoffStaysBehind as Gs, createInProcessSubagentRunner as Gt, ISkillActivationHistoryData as H, upsertProviderProfile as Ha, TWorkspaceProjectMutationDecision as Hc, applyProviderConfiguration as Hi, IEditCheckpointFileInspection as Hl, listCommandUsedMemoryReferences as Hn, DEFAULT_GOAL_MAX_ITERATIONS as Ho, PERMISSION_MODE_COMMAND_DESCRIPTION as Hr, ICommandSettingsDocument as Hs, IToolCallHandoffProvenance as Ht, IExecutionResult$2 as I, TProviderSettingsDocument as Ia, IWorkspaceTrustGrant as Ic, readMergedProviderSettingsFromSources as Ii, ICommandSkillListEntry as Il, MEMORY_COMMAND_DESCRIPTION as In, ProjectMemoryStore as Io, IPresetApplicationResult as Ir, ICommandPickerAdapter as Is, preprocessShellCommands as It, findUnknownModuleNames as J, ISystemCommandSemanticRoles as Ja, IOutputStylePrompt as Jc, TSettingsData as Ji, IEditCheckpointRestoreResult as Jl, inspectCommandEditCheckpoint as Jn, extractGoalSignal as Jo, formatCommandPermissionsMessage as Jr, IPermissionRuleRemoval as Js, createSubagentSession as Jt, ISkillExecutionResult as K, DuplicateSystemCommandSemanticRoleError as Ka, TWorkspaceProjectStateNamespace as Kc, createNodeHostSettingsStore as Ki, IEditCheckpointManifest as Kl, buildRewindCommandSubcommands as Kn, IGoalStartOptions as Ko, VALID_PERMISSION_MODES as Kr, ILinkedDeviceSummary as Ks, ISubagentOptions as Kt, TInteractivePermissionHandler as L, buildProviderProfile as La, IWorkspaceTrustStore as Lc, resolveActiveProvider as Li, IModelReapplyOptions as Ll, MEMORY_COMMAND_USAGE as Ln, isMemoryType as Lo, applyPresetToSession as Lr, ICommandProcessAdapter as Ls, substituteVariables as Lt, createPromptFileReferenceHistoryEntry as M, IProviderProfileSettings as Ma, IWorkspaceProjectReader as Mc, readProviderSettings as Mi, ICommandSessionPreset as Ml, TSandboxSettings as Mn, IProjectMemorySummary as Mo, applyStatusLineSettings as Mr, ICommandOutputStyleRegistryAdapter as Ms, storeAgentToolDeps as Mt, formatPromptFileReferenceDiagnostics as N, IProviderSettingsBuildOptions as Na, IWorkspaceProjectSettingsWriter as Nc, resolveEnvDefaultProvider as Ni, ICommandSessionRuntime as Nl, TSettings as Nn, IStartupMemory as No, buildStatusLineCommandSubcommands as Nr, ICommandOutputStyleSummary as Ns, IAgentToolDeps as Nt, resolvePromptFileReferencePaths as O, writeAutoCompactThresholdSetting as Oa, IWorkspaceIdentity as Oc, IReadProviderSettingsOptions as Oi, ICommandSessionHistory as Ol, createWorkspaceProjectContributionSource as On, TMemoryCandidateStatus as Oo, readAppearanceSettings as Or, ICommandMCPOAuthLogoutResult as Os, createBuiltinCommandModule as Ot, hasBlockingPromptFileReferenceDiagnostics as P, IProviderSetupInput as Pa, IWorkspaceProjectStateStorage as Pc, mergeProviders as Pi, ICommandHostNoCapability as Pl, createSystemCommands as Pn, MEMORY_INDEX_MAX_BYTES as Po, isStatusLineCommandSettingsPatch as Pr, ICommandPermissionModeAdapter as Ps, ISkillPromptContext as Pt, BundlePluginInstaller as Q, ICommandHostAgentJobs as Qa, IAgentJobHostContext as Qc, updateModelInSettings as Qi, ICapabilityDescriptor as Ql, rollbackCommandEditCheckpoint as Qn, IContextReferenceInventoryLimits as Qo, listCommandSessionAllowedTools as Qr, ADVISOR_OFF as Qs, getForkWorkerSuffix as Qt, TPermissionResultValue$1 as R, buildProviderSetupPatch as Ra, IWorkspaceTrustStoreSnapshot as Rc, IActiveModelChangeOptions as Ri, IUnknownCommandModuleName as Rl, buildMemoryCommandSubcommands as Rn, buildGoalContinuationPrompt as Ro, IPermissionRuleGroup as Rr, ICommandRemoteControlAdapter as Rs, ILivePromptTracePort as Rt, createExternalEventGrantHistory as S, readAutoCompactThreshold as Sa, WorkspaceSessionLogSink as Sc, HELP_COMMAND_DESCRIPTION as Si, parseExecutionWorkspaceEntryId as Sl, ISkillSourceInspection as Sn, ISemanticMemoryQueryResult as So, APPEARANCE_SETTINGS_KEYS as Sr, ICommandHandoffAdapter as Ss, IMarketplaceClientOptions as St, sandboxApprovalFor as T, removeCommandContextReference as Ta, ITrustedWorkspaceProjectAccess as Tc, IModelListSelection as Ti, summarizeBackgroundJobGroup as Tl, TSkillSkipReason as Tn, IMemoryExtractionInput as To, TAppearanceSettingsPatch as Tr, ICommandMCPActivationSummary as Ts, TKnownMarketplacesRegistry as Tt, createSkillExecutionPort as U, validateProviderProfile as Ua, TWorkspaceProjectSettingsTarget as Uc, applyProviderSwitch as Ui, IEditCheckpointFileRecord as Ul, recordCommandMemoryEvent as Un, DEFAULT_GOAL_NO_PROGRESS_LIMIT as Uo, PERMISSION_MODE_LABELS as Ur, ICommandWorkspaceAdapter as Us, IInProcessSubagentRunnerDeps as Ut, createDefaultRemoteCommandPolicy as V, setCurrentProvider as Va, TWorkspaceProjectAuthorityCandidate as Vc, applyActiveModelChange as Vi, IOrgPolicy as Vl, isCommandMemoryType as Vn, createGoalStatusTool as Vo, PERMISSION_MODE_ARGUMENT_HINT as Vr, ICommandSettingsAdapter as Vs, IToolCallHandoffPolicy as Vt, IForkExecutionOptions as W, ICommandModule as Wa, TWorkspaceProjectSettingsWriteDecision as Wc, resolveProviderSettingsWriteTarget as Wi, IEditCheckpointInspection as Wl, REWIND_COMMAND_ARGUMENT_HINT as Wn, GoalController as Wo, RUNTIME_RULE_SOURCE as Wr, IHandoffProgress as Ws, TSubagentRunnerFactory as Wt, SystemCommandExecutor as X, TSystemCommandSemanticRole as Xa, IAgentJobDispatch as Xc, deleteSettings as Xi, IEditCheckpointTurnInput as Xl, listCommandEditCheckpoints as Xn, IContextReferenceAddResult as Xo, groupPermissionRulesBySource as Xr, TRemoteControlStatus as Xs, TSubagentSuffix as Xt, selectCommandModules as Y, TSystemCommandLifecycle as Ya, IPresetApplicationOptions as Yc, TSettingsScope as Yi, IEditCheckpointSummary as Yl, listCommandEditCheckpointBranches as Yn, isGoalCancelVerb as Yo, formatInvalidPermissionModeMessage as Yr, IWorkspaceMoveRequest as Ys, ISubagentPromptOptions as Yt, PluginCommandSource as Z, ICommandHostAdapterAccess as Za, IAgentJobGroups as Zc, readSettings as Zi, TEditCheckpointFileRestoreAction as Zl, restoreCommandEditCheckpoint as Zn, IContextReferenceClearResult as Zo, isPermissionMode as Zr, TSandboxCommandMode as Zs, assembleSubagentPrompt as Zt, ExternalEventIngress as _, TAutoCompactThreshold$2 as _a, listUnreadableSessionsForWorkspace as _c, formatCommandBackgroundTask as _i, EXECUTION_ORIGIN_METADATA_KEYS as _l, TSessionFactory as _n, IMemoryRecaller as _o, PLUGIN_COMMAND_DESCRIPTION as _r, ICommandCostBudget as _s, TBundlePluginSkipReason as _t, SessionRenameUnavailableError as a, readSettingsSourceText as aa, resolveStartupAdvisorSpec as ac, LANGUAGE_COMMAND_ARGUMENT_HINT as ai, IBackgroundTaskSpawnerGroupRequest as al, TReversibleRollbackLayer as an, ICommandHostGoal as ao, RENAME_COMMAND_USAGE as ar, toContextReferenceRecords as as, loadHostBundlePluginInspectionFromScopes as at, IModelEffortResolution as au, TExternalEventReceipt as b, compactCommandContext as ba, resolveSessionIdByIdOrName as bc, parseCommandBackgroundLogCursor as bi, createExecutionOriginMetadata as bl, ISkillRootDescriptor as bn, IPerTurnRecallConfig as bo, createShowPluginManagerIntent as br, ICommandExternalEventGrant as bs, NodeHostPluginSettingsStore as bt, IGenerateSessionNameOptions as c, THostSettingsScope as ca, IInteractiveSessionStore$1 as cc, TRecommendedResponseLanguage as ci, ISpawnAgentTaskRequest as cl, evaluateReversibleToolSafety as cn, ICommandHostPresetApplication as co, clearConversationHistory as cr, IPromptFileReferenceHistoryData as cs, IBundlePluginFeatures as ct, TEffortSource as cu, InteractiveSession as d, checkSettingsDocument as da, createProjectSessionStore as dc, parseLanguageArgument as di, createLineDetailPage as dl, IPromptProvider as dn, ICommandHostTerminalHandoff as do, createShowSessionPickerIntent as dr, IPromptFileReferenceToken as ds, IBundlePluginManifest as dt, IProjectSettingsPath as ea, IAdvisorSpec as ec, readCommandPermissionMode as ei, IAgentJobMonitors as el, IReversibleExecutionOptions as en, ICommandHostCatalog as eo, CLEAR_COMMAND_DESCRIPTION as er, IContextReferenceUpsertResult as es, IInstalledPluginRecord as et, DEFAULT_AGENT_TYPE as eu, IInteractiveSession$1 as f, probeProviderProfile as fa, createUserPromptHistoryFile as fc, BACKGROUND_COMMAND_DESCRIPTION as fi, createMainThreadDetailPage as fl, PromptExecutor as fn, ICommandHostUserInteraction as fo, formatCommandSessionReplayValidationReport as fr, IResolvedPromptFileReference as fs, IBundlePluginMcpFault as ft, ExternalEventGrantHistory as g, ICompactContextResult as ga, listUnreadableSessions as gc, closeCommandBackgroundTask as gi, createExecutionWorkspaceSnapshot as gl, IAgentSession as gn, IMemoryCurationQueue as go, PLUGIN_COMMAND_ARGUMENT_HINT as gr, EditCheckpointStore as gs, ILoadedBundlePlugin as gt, TInteractiveSessionOptions as h, DEFAULT_AUTO_COMPACT_THRESHOLD as ha, listResumableSessionSummaries as hc, cancelCommandBackgroundTask as hi, resolveExecutionAttach as hl, IAgentExecutorOptions as hn, IMemoryBudget as ho, validateCommandSessionReplayLog as hr, wrapEditCheckpointTools as hs, IBundleSkill as ht, IInteractiveRuntime as i, createWorkspaceProjectSettingsSources as ia, parseAdvisorSpec as ic, writeCommandPermissionMode as ii, IBackgroundTaskRunner$1 as il, TReversibleExecutionIsolation as in, ICommandHostContextWindow as io, RENAME_COMMAND_DESCRIPTION as ir, removeContextReference as is, createHostBundlePluginLoader as it, IModelEffortInputs as iu, buildPromptWithFileReferences as j, ILegacyProviderSettings as ja, IWorkspaceProjectMutation as jc, readMergedProviderSettings as ji, ICommandSessionPermissions as jl, TEnvResolvedSettings as jn, IAppendMemoryResult as jo, STATUSLINE_COMMAND_DESCRIPTION as jr, ICommandMCPSourceProblem as js, retrieveAgentToolDeps as jt, resolvePromptFileReferences as k, IProviderCommandModuleOptions as ka, IWorkspaceIdentityResolver as kc, ProviderConfigError as ki, ICommandSessionIdentity as kl, ILoadContextOptions as kn, TMemoryPolicyMode as ko, DEFAULT_STATUS_LINE_COMMAND_SETTINGS as kr, ICommandMCPOAuthRedirectPrompt as ks, CommandRegistry as kt, generateSessionName as l, TSettingsCheck as la, createNodeHostSessionStore as lc, buildLanguageCommandSubcommands as li, ISpawnProcessTaskRequest as ll, wrapReversibleExecutionTools as ln, ICommandHostSessionAccess as lo, createSessionExitHostAction as lr, IPromptFileReferenceLimits as ls, IBundlePluginHookIssue as lt, parseModelEffort as lu, restoreSessionRecordIntoSession as m, AUTO_COMPACT_THRESHOLD_SETTINGS_KEY as ma, isSafeSessionId$1 as mc, buildBackgroundCommandSubcommands as mi, TExecutionAttachOutcome as ml, AgentExecutor as mn, IDurableMemoryReader as mo, readCommandSessionInfo as mr, TPromptFileReferenceDiagnosticCode as ms, IBundlePluginSkip as mt, IInteractiveRuntimeTestOptions as n, TProjectSettingsScope as na, ICommandAdvisorAdapter as nc, resolvePermissionModeAdapter as ni, MONITOR_SHELL_TOOL as nl, IReversibleToolSafetyInput as nn, ICommandHostContext as no, EXIT_COMMAND_DESCRIPTION as nr, createContextReferenceItem as ns, MarketplaceClient as nt, IProviderErrorGuidance as nu, persistSessionRename as o, INodeHostSettingsSource as oa, IHostToolResultSpillStore as oc, LANGUAGE_COMMAND_DESCRIPTION as oi, ICreateExecutionWorkspaceTaskSpawnerOptions as ol, TReversibleSafetyStatus as on, ICommandHostMemory as oo, RESUME_COMMAND_DESCRIPTION as or, upsertContextReference as os, loadHostBundlePluginsFromScopes as ot, TEffortDisposition as ou, ISessionRecordRestoreResult as p, testProviderProfileCommand as pa, createUserSessionStore as pc, BACKGROUND_COMMAND_USAGE as pi, IResolveExecutionAttachInput as pl, TProviderFactory as pn, ICommandHostWorkspace as po, parseSessionNameArgument as pr, IResolvedPromptFileReferences as ps, IBundlePluginMcpServer as pt, executeSkill as q, ISystemCommand as qa, TWorkspaceTrustState as qc, ISettingsDocumentStore as qi, IEditCheckpointRecorder as ql, forkCommandEditCheckpoint as qn, TGoalDecision as qo, buildPermissionModeSubcommands as qr, IPermissionRuleLayer as qs, ISubagentParentContext as qt, createInteractiveRuntime as r, TSettingsSource as ra, formatAdvisorSpec as rc, retryCommandPermissionDenial as ri, MonitorCommandRefusedError as rl, IReversibleToolSafetyReport as rn, ICommandHostContextReferences as ro, ICommandSessionInfo as rr, listActiveContextReferences as rs, IHostBundlePluginLoaderOptions as rt, EFFORT_LEVEL_LABELS as ru, PeerMessageIngress as s, createNodeHostSettingsSource as sa, IInteractiveSessionRecord$1 as sc, RECOMMENDED_RESPONSE_LANGUAGES as si, IExecutionWorkspaceTaskSpawner as sl, TReversibleSideEffect as sn, ICommandHostPlan as so, VALIDATE_SESSION_COMMAND_DESCRIPTION as sr, IPromptFileReferenceDiagnostic as ss, BundlePluginLoader as st, TEffortSelection as su, IInteractiveRuntimeOptions as t, IWorkspaceProjectSettingsSource as ta, IAdvisorStatus as tc, readCommandPermissionsState as ti, IAgentJobSchedules as tl, IReversibleToolSafetyContext as tn, ICommandHostCheckpoints as to, COST_COMMAND_DESCRIPTION as tr, clearContextReferences as ts, TInstalledPluginsRegistry as tt, IAgentDefinition as tu, IInteractiveSessionShutdownOptions as u, checkNodeHostSettingsFile as ua, createNodeToolResultSpillStore as uc, formatLanguageUsageMessage as ui, createExecutionWorkspaceTaskSpawner as ul, IPromptExecutorOptions as un, ICommandHostSetupState as uo, createSessionRenameHostAction as ur, IPromptFileReferenceResolveOptions as us, IBundlePluginInspection as ut, resolveModelEffort as uu, IExternalEventSource as v, addCommandContextReference as va, resolveLatestSessionId as vc, formatCommandBackgroundTaskList as vi, createBackgroundGroupExecutionEntryId as vl, IProjectContributionPath as vn, IMemoryStore as vo, RELOAD_PLUGINS_COMMAND_DESCRIPTION as vr, ICommandCostBudgetAdapter as vs, TEnabledPlugins as vt, resolveSubagentLogDir as w, readCommandContextState as wa, IRestrictedWorkspaceProjectAccess as wc, buildProviderProfilesSnapshot as wi, IBackgroundJobOrchestratorOptions as wl, SkillCommandSource as wn, IMemoryCandidate as wo, IAppearanceSettings as wr, ICommandMCPActivationAdapter as ws, IMarketplacePluginEntry as wt, TExternalEventSettlement as x, listCommandContextReferences as xa, WorkspaceProjectSessionStore as xc, readCommandBackgroundTaskLog as xi, createMainThreadExecutionEntryId as xl, ISkillRootInspection as xn, ISemanticMemoryAdapter as xo, resolvePluginCommandAdapter as xr, ICommandExternalEventsAdapter as xs, IKnownMarketplaceEntry as xt, IExternalEventSourceOptions as y, clearCommandContextReferences as ya, resolveReusableEmptySessionId as yc, listCommandBackgroundTasks as yi, createBackgroundTaskExecutionEntryId as yl, listFrameworkProjectContributionPaths as yn, IMemoryWriter as yo, buildPluginCommandSubcommands as yr, ICommandEffortAdapter as ys, IPluginSettings as yt, IPromptHistoryOptions as z, deleteProviderProfile as za, TWorkspaceContributionKind as zc, IActiveModelChangeResult as zi, TAutoCompactThresholdSource as zl, createCommandMemoryStores as zn, buildGoalStartPrompt as zo, IPermissionsCommandState as zr, ICommandSandboxAdapter as zs, ICreateSessionOptions as zt };
|
|
9961
|
+
//# sourceMappingURL=createInteractiveRuntime-3MZpPTdw.d.ts.map
|