@robota-sdk/agent-sdk 3.0.0-beta.60 → 3.0.0-beta.61
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/README.md +133 -46
- package/dist/node/index.cjs +2037 -519
- package/dist/node/index.d.cts +339 -26
- package/dist/node/index.d.ts +339 -26
- package/dist/node/index.js +2011 -522
- package/package.json +7 -6
package/dist/node/index.d.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { ICompactEvent, ITerminalOutput, ISessionLogger, TPermissionHandler, Session,
|
|
2
|
-
|
|
3
|
-
import { TUniversalValue, TSessionEndReason, TPermissionMode, IToolWithEventService, IContextWindowState, IProviderProfileConfig, IProviderDefinition, IProviderSetupStepDefinition, TProviderSetupField, IProviderProbeResult, TToolArgs, IHistoryEntry, THooksConfig, IAIProvider, IHookTypeExecutor, IHookDefinition, IHookInput, IHookResult, TTrustLevel, TUniversalMessage } from '@robota-sdk/agent-core';
|
|
4
|
-
export { IAIProvider, IContextTokenUsage, IContextWindowState, IHistoryEntry, IHookInput, IPermissionLists, THookEvent, THooksConfig, TPermissionDecision, TPermissionMode, TRUST_TO_MODE, TToolArgs, TTrustLevel, chatEntryToMessage, evaluatePermission, getMessagesForAPI, isChatEntry, messageToHistoryEntry, runHooks } from '@robota-sdk/agent-core';
|
|
1
|
+
import { ISessionReplayValidationResult, ICompactEvent, ITerminalOutput, ISessionLogger, TPermissionHandler, Session, FileSessionLogger } from '@robota-sdk/agent-sessions';
|
|
2
|
+
import { TUniversalValue, TSessionEndReason, TPermissionMode, IToolWithEventService, IContextWindowState, IProviderProfileConfig, IProviderDefinition, TProviderSetupField, IProviderSetupStepDefinition, IProviderSetupHelpLink, IProviderProbeResult, IProviderModelCatalog, IHistoryEntry, TToolArgs, THooksConfig, IAIProvider, IHookTypeExecutor, IHookDefinition, IHookInput, IHookResult, TTrustLevel, TUniversalMessage, IToolSchema } from '@robota-sdk/agent-core';
|
|
5
3
|
import { IBackgroundTaskManager, TBackgroundTaskStatus, IBackgroundTaskError, IBackgroundTaskListFilter, IBackgroundTaskState, IBackgroundTaskLogCursor, IBackgroundTaskLogPage, TBackgroundTaskEvent, ISubagentRunner, IBackgroundTaskRunner, IBackgroundTaskInput, ISubagentJobState, TBackgroundTaskIsolation, ISubagentJobResult, ISubagentManager } from '@robota-sdk/agent-runtime';
|
|
6
|
-
export { BackgroundTaskError, BackgroundTaskManager, IAgentBackgroundTaskRequest, IBackgroundTaskError, IBackgroundTaskHandle, IBackgroundTaskInput, IBackgroundTaskListFilter, IBackgroundTaskLogCursor, IBackgroundTaskLogPage, IBackgroundTaskManager, IBackgroundTaskManagerOptions, IBackgroundTaskRequest, IBackgroundTaskResult, IBackgroundTaskRunner, IBackgroundTaskStart, IBackgroundTaskState, IBaseBackgroundTaskRequest, IPreparedSubagentWorktree, IProcessBackgroundTaskRequest, ISerializableProviderProfile, ISubagentJobHandle, ISubagentJobResult, ISubagentJobStart, ISubagentJobState, ISubagentManager, ISubagentManagerOptions, ISubagentRunner, ISubagentSpawnRequest, ISubagentWorktreeAdapter, ISubagentWorktreePrepareRequest, IWorktreeSubagentRunnerOptions, SubagentManager, TBackgroundPermissionPolicy, TBackgroundPrimitive, TBackgroundTaskErrorCategory, TBackgroundTaskEvent, TBackgroundTaskEventListener, TBackgroundTaskIdFactory, TBackgroundTaskIsolation, TBackgroundTaskKind, TBackgroundTaskMode, TBackgroundTaskRunnerEvent, TBackgroundTaskStatus, TBackgroundTaskTimeoutReason, TBackgroundTaskTransitionEvent, TSubagentJobMode, TSubagentJobStatus, WorktreeSubagentRunner, createWorktreeSubagentRunner, getBackgroundTaskTransitions, isTerminalBackgroundTaskStatus, transitionBackgroundTaskStatus } from '@robota-sdk/agent-runtime';
|
|
7
|
-
import { createZodFunctionTool } from '@robota-sdk/agent-tools';
|
|
8
|
-
export { TToolResult } from '@robota-sdk/agent-tools';
|
|
4
|
+
export { BackgroundTaskError, BackgroundTaskManager, DEFAULT_BACKGROUND_TASK_LOG_PAGE_SIZE, IAgentBackgroundTaskRequest, IBackgroundTaskError, IBackgroundTaskHandle, IBackgroundTaskInput, IBackgroundTaskListFilter, IBackgroundTaskLogCursor, IBackgroundTaskLogPage, IBackgroundTaskManager, IBackgroundTaskManagerOptions, IBackgroundTaskRequest, IBackgroundTaskResult, IBackgroundTaskRunner, IBackgroundTaskStart, IBackgroundTaskState, IBaseBackgroundTaskRequest, ICreateLimitedOutputCaptureOptions, ILimitedOutputCapture, IPreparedSubagentWorktree, IProcessBackgroundTaskRequest, ISerializableProviderProfile, ISubagentJobHandle, ISubagentJobResult, ISubagentJobStart, ISubagentJobState, ISubagentManager, ISubagentManagerOptions, ISubagentRunner, ISubagentSpawnRequest, ISubagentWorktreeAdapter, ISubagentWorktreePrepareRequest, IWorktreeSubagentRunnerOptions, SubagentManager, TBackgroundPermissionPolicy, TBackgroundPrimitive, TBackgroundTaskErrorCategory, TBackgroundTaskEvent, TBackgroundTaskEventListener, TBackgroundTaskIdFactory, TBackgroundTaskIsolation, TBackgroundTaskKind, TBackgroundTaskMode, TBackgroundTaskRunnerEvent, TBackgroundTaskStatus, TBackgroundTaskTimeoutReason, TBackgroundTaskTransitionEvent, TSubagentJobMode, TSubagentJobStatus, WorktreeSubagentRunner, appendPrefixedLogLines, createBackgroundTaskLogPage, createLimitedOutputCapture, createWorktreeSubagentRunner, getBackgroundTaskTransitions, isTerminalBackgroundTaskStatus, transitionBackgroundTaskStatus } from '@robota-sdk/agent-runtime';
|
|
5
|
+
import { ISandboxClient, IWorkspaceManifest, createZodFunctionTool } from '@robota-sdk/agent-tools';
|
|
9
6
|
|
|
10
7
|
type TCapabilityKind = 'builtin-command' | 'skill' | 'agent' | 'tool';
|
|
11
8
|
type TCapabilitySafety = 'read-only' | 'write' | 'process' | 'network' | 'background-agent';
|
|
@@ -37,7 +34,7 @@ interface ICommand {
|
|
|
37
34
|
argumentHint?: string;
|
|
38
35
|
/** When true, models cannot invoke this skill autonomously */
|
|
39
36
|
disableModelInvocation?: boolean;
|
|
40
|
-
/** When true, models may invoke this command through the command
|
|
37
|
+
/** When true, models may invoke this command through the SDK-projected command tool */
|
|
41
38
|
modelInvocable?: boolean;
|
|
42
39
|
/** When false, users cannot invoke this skill directly */
|
|
43
40
|
userInvocable?: boolean;
|
|
@@ -100,6 +97,8 @@ type TCommandEffect = {
|
|
|
100
97
|
name: string;
|
|
101
98
|
} | {
|
|
102
99
|
type: 'conversation-history-cleared';
|
|
100
|
+
} | {
|
|
101
|
+
type: 'session-execution-started';
|
|
103
102
|
} | {
|
|
104
103
|
type: 'statusline-settings-patch';
|
|
105
104
|
patch: TStatusLineCommandSettingsPatch;
|
|
@@ -114,11 +113,13 @@ interface ICommandChoicePromptOption {
|
|
|
114
113
|
type TCommandInteractionPrompt = {
|
|
115
114
|
kind: 'choice';
|
|
116
115
|
title: string;
|
|
116
|
+
description?: string;
|
|
117
117
|
options: readonly ICommandChoicePromptOption[];
|
|
118
118
|
maxVisible?: number;
|
|
119
119
|
} | {
|
|
120
120
|
kind: 'text';
|
|
121
121
|
title: string;
|
|
122
|
+
description?: string;
|
|
122
123
|
placeholder?: string;
|
|
123
124
|
allowEmpty?: boolean;
|
|
124
125
|
masked?: boolean;
|
|
@@ -446,6 +447,94 @@ interface IMemoryEvent {
|
|
|
446
447
|
data?: Record<string, TUniversalValue>;
|
|
447
448
|
}
|
|
448
449
|
|
|
450
|
+
type TPromptFileReferenceReason = 'manual' | 'prompt-reference';
|
|
451
|
+
type TPromptFileReferenceDiagnosticCode = 'not-found' | 'outside-root' | 'directory-not-supported' | 'file-too-large' | 'total-too-large' | 'too-many-references' | 'max-depth' | 'circular-reference' | 'unreadable';
|
|
452
|
+
interface IPromptFileReferenceToken {
|
|
453
|
+
original: string;
|
|
454
|
+
path: string;
|
|
455
|
+
index: number;
|
|
456
|
+
}
|
|
457
|
+
interface IPromptFileReferenceRecord {
|
|
458
|
+
originalReference: string;
|
|
459
|
+
sourcePath: string;
|
|
460
|
+
relativePath: string;
|
|
461
|
+
reason: TPromptFileReferenceReason;
|
|
462
|
+
depth: number;
|
|
463
|
+
byteLength: number;
|
|
464
|
+
}
|
|
465
|
+
interface IResolvedPromptFileReference extends IPromptFileReferenceRecord {
|
|
466
|
+
content: string;
|
|
467
|
+
}
|
|
468
|
+
interface IPromptFileReferenceDiagnostic {
|
|
469
|
+
code: TPromptFileReferenceDiagnosticCode;
|
|
470
|
+
severity: 'error';
|
|
471
|
+
reference: string;
|
|
472
|
+
message: string;
|
|
473
|
+
path?: string;
|
|
474
|
+
}
|
|
475
|
+
interface IPromptFileReferenceLimits {
|
|
476
|
+
maxDepth?: number;
|
|
477
|
+
maxReferences?: number;
|
|
478
|
+
maxFileBytes?: number;
|
|
479
|
+
maxTotalBytes?: number;
|
|
480
|
+
}
|
|
481
|
+
interface IPromptFileReferenceResolveOptions {
|
|
482
|
+
cwd: string;
|
|
483
|
+
limits?: IPromptFileReferenceLimits;
|
|
484
|
+
reason?: TPromptFileReferenceReason;
|
|
485
|
+
}
|
|
486
|
+
interface IResolvedPromptFileReferences {
|
|
487
|
+
references: IResolvedPromptFileReference[];
|
|
488
|
+
diagnostics: IPromptFileReferenceDiagnostic[];
|
|
489
|
+
}
|
|
490
|
+
interface IPromptFileReferenceHistoryData {
|
|
491
|
+
message: string;
|
|
492
|
+
references: IPromptFileReferenceRecord[];
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
type TContextReferenceLoadType = 'manual' | 'prompt-reference';
|
|
496
|
+
type TContextReferenceStatus = 'active' | 'observed';
|
|
497
|
+
interface IContextReferenceItem {
|
|
498
|
+
id: string;
|
|
499
|
+
sourcePath: string;
|
|
500
|
+
relativePath: string;
|
|
501
|
+
originalReference: string;
|
|
502
|
+
loadType: TContextReferenceLoadType;
|
|
503
|
+
status: TContextReferenceStatus;
|
|
504
|
+
byteLength: number;
|
|
505
|
+
loadedAt: string;
|
|
506
|
+
lastUsedAt?: string;
|
|
507
|
+
}
|
|
508
|
+
interface IContextReferenceInventoryLimits {
|
|
509
|
+
maxActiveReferences?: number;
|
|
510
|
+
maxActiveBytes?: number;
|
|
511
|
+
maxObservedReferences?: number;
|
|
512
|
+
}
|
|
513
|
+
interface IContextReferenceAddResult {
|
|
514
|
+
reference?: IContextReferenceItem;
|
|
515
|
+
evicted: IContextReferenceItem[];
|
|
516
|
+
diagnostics: string[];
|
|
517
|
+
}
|
|
518
|
+
interface IContextReferenceRemoveResult {
|
|
519
|
+
removed?: IContextReferenceItem;
|
|
520
|
+
}
|
|
521
|
+
interface IContextReferenceClearResult {
|
|
522
|
+
removed: IContextReferenceItem[];
|
|
523
|
+
}
|
|
524
|
+
interface IContextReferenceUpsertResult {
|
|
525
|
+
references: IContextReferenceItem[];
|
|
526
|
+
evicted: IContextReferenceItem[];
|
|
527
|
+
}
|
|
528
|
+
declare function createContextReferenceItem(record: IPromptFileReferenceRecord, loadType: TContextReferenceLoadType, status: TContextReferenceStatus, timestamp?: string): IContextReferenceItem;
|
|
529
|
+
declare function upsertContextReference(references: readonly IContextReferenceItem[], item: IContextReferenceItem, limits?: IContextReferenceInventoryLimits): IContextReferenceUpsertResult;
|
|
530
|
+
declare function removeContextReference(references: readonly IContextReferenceItem[], query: string): {
|
|
531
|
+
references: IContextReferenceItem[];
|
|
532
|
+
result: IContextReferenceRemoveResult;
|
|
533
|
+
};
|
|
534
|
+
declare function clearContextReferences(references: readonly IContextReferenceItem[]): IContextReferenceClearResult;
|
|
535
|
+
declare function listActiveContextReferences(references: readonly IContextReferenceItem[]): IContextReferenceItem[];
|
|
536
|
+
declare function toContextReferenceRecords(references: readonly IContextReferenceItem[]): IPromptFileReferenceRecord[];
|
|
537
|
+
|
|
449
538
|
type TAutoCompactThreshold$1 = number | false;
|
|
450
539
|
declare const DEFAULT_AUTO_COMPACT_THRESHOLD = 0.835;
|
|
451
540
|
declare const AUTO_COMPACT_THRESHOLD_SETTINGS_KEY = "autoCompactThreshold";
|
|
@@ -467,11 +556,35 @@ declare function writeAutoCompactThresholdSetting(context: ICommandHostContext,
|
|
|
467
556
|
declare function resetAutoCompactThresholdSetting(context: ICommandHostContext): boolean;
|
|
468
557
|
/** Run manual compaction through the command host facade and return before/after state. */
|
|
469
558
|
declare function compactCommandContext(context: ICommandHostContext, instructions?: string): Promise<ICompactContextResult>;
|
|
559
|
+
/** List context reference inventory entries through the command host facade. */
|
|
560
|
+
declare function listCommandContextReferences(context: ICommandHostContext): IContextReferenceItem[];
|
|
561
|
+
/** Add a manual context reference through the command host facade. */
|
|
562
|
+
declare function addCommandContextReference(context: ICommandHostContext, path: string): Promise<IContextReferenceAddResult>;
|
|
563
|
+
/** Remove a context reference through the command host facade. */
|
|
564
|
+
declare function removeCommandContextReference(context: ICommandHostContext, path: string): IContextReferenceRemoveResult;
|
|
565
|
+
/** Clear all context references through the command host facade. */
|
|
566
|
+
declare function clearCommandContextReferences(context: ICommandHostContext): IContextReferenceClearResult;
|
|
470
567
|
|
|
471
568
|
interface ICommandListEntry {
|
|
472
569
|
name: string;
|
|
473
570
|
description: string;
|
|
474
571
|
}
|
|
572
|
+
interface ICommandSkillListEntry {
|
|
573
|
+
readonly name: string;
|
|
574
|
+
readonly description: string;
|
|
575
|
+
readonly source: string;
|
|
576
|
+
readonly modelInvocable: boolean;
|
|
577
|
+
readonly userInvocable: boolean;
|
|
578
|
+
readonly argumentHint?: string;
|
|
579
|
+
readonly context?: string;
|
|
580
|
+
readonly agent?: string;
|
|
581
|
+
}
|
|
582
|
+
type TCommandInvocationSource = 'user' | 'model';
|
|
583
|
+
interface ICommandSkillActivationRequest {
|
|
584
|
+
readonly invocationSource: TCommandInvocationSource;
|
|
585
|
+
readonly displayInput?: string;
|
|
586
|
+
readonly rawInput?: string;
|
|
587
|
+
}
|
|
475
588
|
type TAutoCompactThresholdSource = 'default' | 'settings' | 'session';
|
|
476
589
|
interface ICommandSessionRuntime {
|
|
477
590
|
clearHistory(): void;
|
|
@@ -485,8 +598,14 @@ interface ICommandSessionRuntime {
|
|
|
485
598
|
getAutoCompactThreshold?(): number | false;
|
|
486
599
|
setAutoCompactThreshold?(threshold: TAutoCompactThreshold$1): void;
|
|
487
600
|
}
|
|
601
|
+
interface ICommandSessionReplayValidationReport {
|
|
602
|
+
logFile: string;
|
|
603
|
+
entryCount: number;
|
|
604
|
+
validation: ISessionReplayValidationResult;
|
|
605
|
+
}
|
|
488
606
|
interface ICommandHostContext {
|
|
489
607
|
clearConversationHistory?(): void;
|
|
608
|
+
validateCurrentSessionReplayLog?(): ICommandSessionReplayValidationReport;
|
|
490
609
|
getSession(): ICommandSessionRuntime;
|
|
491
610
|
getContextState(): IContextWindowState;
|
|
492
611
|
getAutoCompactThreshold(): TAutoCompactThreshold$1;
|
|
@@ -494,8 +613,15 @@ interface ICommandHostContext {
|
|
|
494
613
|
setAutoCompactThreshold?(threshold: TAutoCompactThreshold$1, source?: TAutoCompactThresholdSource): void;
|
|
495
614
|
getCommandHostAdapters?(): ICommandHostAdapters;
|
|
496
615
|
compactContext(instructions?: string): Promise<void>;
|
|
616
|
+
listContextReferences?(): IContextReferenceItem[];
|
|
617
|
+
addContextReference?(path: string): Promise<IContextReferenceAddResult>;
|
|
618
|
+
removeContextReference?(path: string): IContextReferenceRemoveResult;
|
|
619
|
+
clearContextReferences?(): IContextReferenceClearResult;
|
|
497
620
|
getCwd(): string;
|
|
621
|
+
getCommandInvocationSource?(): TCommandInvocationSource;
|
|
498
622
|
listCommands?(): ICommandListEntry[];
|
|
623
|
+
listSkills?(): ICommandSkillListEntry[];
|
|
624
|
+
executeSkillCommandByName?(name: string, args: string, request: ICommandSkillActivationRequest): Promise<ICommandResult | null>;
|
|
499
625
|
listEditCheckpoints(): IEditCheckpointSummary[];
|
|
500
626
|
inspectEditCheckpoint?(checkpointId: string): IEditCheckpointInspection;
|
|
501
627
|
restoreEditCheckpoint(checkpointId: string): Promise<IEditCheckpointRestoreResult>;
|
|
@@ -573,6 +699,9 @@ interface IProviderSettingsBuildOptions {
|
|
|
573
699
|
}
|
|
574
700
|
declare function upsertProviderProfile(settings: TProviderSettingsDocument, profileName: string, profile: IProviderProfileSettings): TProviderSettingsDocument;
|
|
575
701
|
declare function setCurrentProvider(settings: TProviderSettingsDocument, profileName: string): TProviderSettingsDocument;
|
|
702
|
+
declare function deleteProviderProfile(settings: TProviderSettingsDocument, profileName: string, options?: {
|
|
703
|
+
replacementCurrentProvider?: string;
|
|
704
|
+
}): TProviderSettingsDocument;
|
|
576
705
|
declare function validateProviderProfile(profileName: string, profile: IProviderProfileSettings, options?: IProviderSettingsBuildOptions): void;
|
|
577
706
|
declare function buildProviderSetupPatch(input: IProviderSetupInput, options?: IProviderSettingsBuildOptions): IProviderSetupPatch;
|
|
578
707
|
declare function buildProviderProfile(input: IProviderSetupInput, options?: IProviderSettingsBuildOptions): IProviderProfileSettings;
|
|
@@ -588,6 +717,16 @@ interface IProviderCommandModuleOptions {
|
|
|
588
717
|
settings: IProviderCommandSettingsAdapter;
|
|
589
718
|
}
|
|
590
719
|
|
|
720
|
+
interface IProviderProfileNameSuggestionInput {
|
|
721
|
+
type: string;
|
|
722
|
+
model?: string;
|
|
723
|
+
}
|
|
724
|
+
interface IProviderProfileNameSuggestionOptions {
|
|
725
|
+
existingProfileNames?: readonly string[];
|
|
726
|
+
}
|
|
727
|
+
declare function suggestProviderProfileName(input: IProviderProfileNameSuggestionInput, options?: IProviderProfileNameSuggestionOptions): string;
|
|
728
|
+
declare function sanitizeProviderProfileName(value: string | undefined): string | undefined;
|
|
729
|
+
|
|
591
730
|
type TProviderSetupType = string;
|
|
592
731
|
type TPromptInput = (label: string, masked?: boolean) => Promise<string>;
|
|
593
732
|
interface IProviderSetupPromptStep extends IProviderSetupStepDefinition {
|
|
@@ -596,8 +735,18 @@ interface IProviderSetupPromptStep extends IProviderSetupStepDefinition {
|
|
|
596
735
|
interface IProviderSetupFlowState {
|
|
597
736
|
type: TProviderSetupType;
|
|
598
737
|
steps: readonly IProviderSetupPromptStep[];
|
|
738
|
+
setupHelpLinks: readonly IProviderSetupHelpLink[];
|
|
599
739
|
stepIndex: number;
|
|
600
740
|
values: Partial<Record<TProviderSetupField, string>>;
|
|
741
|
+
existingProfileNames: readonly string[];
|
|
742
|
+
profileName?: string;
|
|
743
|
+
setCurrent?: boolean;
|
|
744
|
+
}
|
|
745
|
+
interface IProviderSetupFlowOptions {
|
|
746
|
+
existingProfileNames?: readonly string[];
|
|
747
|
+
initialValues?: Partial<Record<TProviderSetupField, string>>;
|
|
748
|
+
profileName?: string;
|
|
749
|
+
setCurrent?: boolean;
|
|
601
750
|
}
|
|
602
751
|
type TProviderSetupFlowSubmitResult = {
|
|
603
752
|
status: 'next';
|
|
@@ -610,14 +759,15 @@ type TProviderSetupFlowSubmitResult = {
|
|
|
610
759
|
state: IProviderSetupFlowState;
|
|
611
760
|
message: string;
|
|
612
761
|
};
|
|
613
|
-
declare function createProviderSetupFlow(type: TProviderSetupType, providerDefinitions: readonly IProviderDefinition[]): IProviderSetupFlowState;
|
|
762
|
+
declare function createProviderSetupFlow(type: TProviderSetupType, providerDefinitions: readonly IProviderDefinition[], options?: IProviderSetupFlowOptions): IProviderSetupFlowState;
|
|
614
763
|
declare function formatProviderSetupSelectionPrompt(providerDefinitions: readonly IProviderDefinition[]): string;
|
|
615
764
|
declare function resolveProviderSetupSelection(rawValue: string, providerDefinitions: readonly IProviderDefinition[]): TProviderSetupType;
|
|
616
765
|
declare function getProviderSetupStep(state: IProviderSetupFlowState): IProviderSetupPromptStep;
|
|
617
766
|
declare function submitProviderSetupValue(state: IProviderSetupFlowState, rawValue: string): TProviderSetupFlowSubmitResult;
|
|
618
|
-
declare function runProviderSetupPromptFlow(type: TProviderSetupType, promptInput: TPromptInput, providerDefinitions: readonly IProviderDefinition[]): Promise<IProviderSetupInput>;
|
|
619
|
-
declare function formatProviderSetupPromptLabel(step: IProviderSetupPromptStep): string;
|
|
767
|
+
declare function runProviderSetupPromptFlow(type: TProviderSetupType, promptInput: TPromptInput, providerDefinitions: readonly IProviderDefinition[], options?: IProviderSetupFlowOptions): Promise<IProviderSetupInput>;
|
|
768
|
+
declare function formatProviderSetupPromptLabel(step: IProviderSetupPromptStep, setupHelpLinks?: readonly IProviderSetupHelpLink[]): string;
|
|
620
769
|
declare function formatProviderSetupChoiceLabel(definition: IProviderDefinition): string;
|
|
770
|
+
declare function formatProviderSetupHelpLinks(setupHelpLinks?: readonly IProviderSetupHelpLink[]): string;
|
|
621
771
|
declare function validateProviderSetupValue(step: IProviderSetupPromptStep, value: string): string | undefined;
|
|
622
772
|
|
|
623
773
|
declare function isEnvReference(value: string): boolean;
|
|
@@ -644,7 +794,37 @@ declare function closeCommandBackgroundTask(context: ICommandHostContext, taskId
|
|
|
644
794
|
|
|
645
795
|
declare const MODEL_COMMAND_DESCRIPTION = "Change AI model";
|
|
646
796
|
declare const MODEL_COMMAND_ARGUMENT_HINT = "<model-id>";
|
|
647
|
-
|
|
797
|
+
interface IModelCommandSettingsAdapter {
|
|
798
|
+
readMergedSettings(): TProviderSettingsDocument;
|
|
799
|
+
}
|
|
800
|
+
interface IModelCommandModuleOptions {
|
|
801
|
+
providerDefinitions: readonly IProviderDefinition[];
|
|
802
|
+
settings: IModelCommandSettingsAdapter;
|
|
803
|
+
}
|
|
804
|
+
interface IBuildModelCommandSubcommandsOptions {
|
|
805
|
+
source?: string;
|
|
806
|
+
providerDefinitions?: readonly IProviderDefinition[];
|
|
807
|
+
settings?: TProviderSettingsDocument;
|
|
808
|
+
}
|
|
809
|
+
interface IActiveProviderModelCatalogState {
|
|
810
|
+
providerType: string;
|
|
811
|
+
catalog?: IProviderModelCatalog;
|
|
812
|
+
refreshAttempted: boolean;
|
|
813
|
+
refreshMessage?: string;
|
|
814
|
+
}
|
|
815
|
+
interface IResolveActiveProviderModelCatalogStateOptions {
|
|
816
|
+
settings?: TProviderSettingsDocument;
|
|
817
|
+
providerDefinitions?: readonly IProviderDefinition[];
|
|
818
|
+
refresh?: boolean;
|
|
819
|
+
}
|
|
820
|
+
declare function buildModelCommandSubcommands(sourceOrOptions?: string | IBuildModelCommandSubcommandsOptions): ICommand[];
|
|
821
|
+
declare function formatModelCommandUsageMessage(options?: {
|
|
822
|
+
settings?: TProviderSettingsDocument;
|
|
823
|
+
providerDefinitions?: readonly IProviderDefinition[];
|
|
824
|
+
}): string;
|
|
825
|
+
declare function formatModelCommandUsageMessageAsync(options?: IResolveActiveProviderModelCatalogStateOptions): Promise<string>;
|
|
826
|
+
declare function resolveActiveProviderModelCatalog(settings: TProviderSettingsDocument | undefined, providerDefinitions?: readonly IProviderDefinition[]): IProviderModelCatalog | undefined;
|
|
827
|
+
declare function resolveActiveProviderModelCatalogState(options: IResolveActiveProviderModelCatalogStateOptions): Promise<IActiveProviderModelCatalogState | undefined>;
|
|
648
828
|
|
|
649
829
|
declare const LANGUAGE_COMMAND_DESCRIPTION = "Set response language";
|
|
650
830
|
declare const LANGUAGE_COMMAND_ARGUMENT_HINT = "<code>";
|
|
@@ -668,7 +848,7 @@ declare function formatLanguageUsageMessage(commandName?: string): string;
|
|
|
668
848
|
|
|
669
849
|
declare const PERMISSION_MODE_COMMAND_DESCRIPTION = "Show/change permission mode";
|
|
670
850
|
declare const PERMISSION_MODE_ARGUMENT_HINT = "plan | default | acceptEdits | bypassPermissions";
|
|
671
|
-
declare const PERMISSIONS_COMMAND_DESCRIPTION = "Show permission rules";
|
|
851
|
+
declare const PERMISSIONS_COMMAND_DESCRIPTION = "Show/change permission mode and permission rules";
|
|
672
852
|
interface IPermissionsCommandState {
|
|
673
853
|
readonly mode: TPermissionMode;
|
|
674
854
|
readonly sessionAllowed: readonly string[];
|
|
@@ -690,6 +870,7 @@ declare const RENAME_COMMAND_DESCRIPTION = "Rename the current session";
|
|
|
690
870
|
declare const RENAME_COMMAND_USAGE = "Usage: rename <name>";
|
|
691
871
|
declare const RESUME_COMMAND_DESCRIPTION = "Resume a previous session";
|
|
692
872
|
declare const COST_COMMAND_DESCRIPTION = "Show session info";
|
|
873
|
+
declare const VALIDATE_SESSION_COMMAND_DESCRIPTION = "Validate current session replay log";
|
|
693
874
|
declare const EXIT_COMMAND_DESCRIPTION = "Exit CLI";
|
|
694
875
|
interface ICommandSessionInfo {
|
|
695
876
|
sessionId: string;
|
|
@@ -701,6 +882,8 @@ declare function createSessionRenamedEffect(name: string): TCommandEffect;
|
|
|
701
882
|
declare function createSessionPickerRequestedEffect(): TCommandEffect;
|
|
702
883
|
declare function createSessionExitRequestedEffect(): TCommandEffect;
|
|
703
884
|
declare function readCommandSessionInfo(context: ICommandHostContext): ICommandSessionInfo;
|
|
885
|
+
declare function validateCommandSessionReplayLog(context: ICommandHostContext): ICommandSessionReplayValidationReport;
|
|
886
|
+
declare function formatCommandSessionReplayValidationReport(report: ICommandSessionReplayValidationReport): string;
|
|
704
887
|
|
|
705
888
|
declare const REWIND_COMMAND_DESCRIPTION = "List, inspect, restore, or rollback edit checkpoints.";
|
|
706
889
|
declare const REWIND_COMMAND_ARGUMENT_HINT = "list | inspect CHECKPOINT_ID | restore CHECKPOINT_ID | code CHECKPOINT_ID | rollback CHECKPOINT_ID";
|
|
@@ -1175,11 +1358,6 @@ declare class SystemCommandExecutor {
|
|
|
1175
1358
|
/** Built-in system commands. */
|
|
1176
1359
|
declare function createSystemCommands(): ISystemCommand[];
|
|
1177
1360
|
|
|
1178
|
-
/**
|
|
1179
|
-
* Build a skill prompt from slash command input.
|
|
1180
|
-
* Supports variable substitution and shell command preprocessing.
|
|
1181
|
-
*/
|
|
1182
|
-
|
|
1183
1361
|
/** Context variables available during skill prompt processing */
|
|
1184
1362
|
interface SkillPromptContext {
|
|
1185
1363
|
/** Current session ID — substituted for ${CLAUDE_SESSION_ID} */
|
|
@@ -1204,8 +1382,6 @@ declare function substituteVariables(content: string, args: string, context?: Sk
|
|
|
1204
1382
|
* Commands have a 5-second timeout.
|
|
1205
1383
|
*/
|
|
1206
1384
|
declare function preprocessShellCommands(content: string): Promise<string>;
|
|
1207
|
-
/** Build a skill prompt from a slash command input and registry */
|
|
1208
|
-
declare function buildSkillPrompt(input: string, registry: CommandRegistry, context?: SkillPromptContext): Promise<string | null>;
|
|
1209
1385
|
|
|
1210
1386
|
/**
|
|
1211
1387
|
* Skill execution logic.
|
|
@@ -1247,6 +1423,36 @@ interface ISkillExecutionResult {
|
|
|
1247
1423
|
*/
|
|
1248
1424
|
declare function executeSkill(skill: ICommand, args: string, callbacks: ISkillExecutionCallbacks, context?: SkillPromptContext): Promise<ISkillExecutionResult>;
|
|
1249
1425
|
|
|
1426
|
+
type TSkillActivationSource = 'skill' | 'plugin';
|
|
1427
|
+
type TSkillActivationInvocation = 'user-slash' | 'model-tool';
|
|
1428
|
+
type TSkillActivationMode = 'inject' | 'fork';
|
|
1429
|
+
type TSkillActivationStatus = 'started' | 'completed' | 'failed';
|
|
1430
|
+
interface ISkillActivationEvent {
|
|
1431
|
+
readonly type: 'skill-activation';
|
|
1432
|
+
readonly skillName: string;
|
|
1433
|
+
readonly source: TSkillActivationSource;
|
|
1434
|
+
readonly invocation: TSkillActivationInvocation;
|
|
1435
|
+
readonly mode: TSkillActivationMode;
|
|
1436
|
+
readonly status: TSkillActivationStatus;
|
|
1437
|
+
readonly timestamp: string;
|
|
1438
|
+
readonly qualifiedName?: string;
|
|
1439
|
+
readonly error?: string;
|
|
1440
|
+
}
|
|
1441
|
+
interface ISkillActivationHistoryData extends ISkillActivationEvent {
|
|
1442
|
+
readonly message: string;
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
declare function buildPromptWithFileReferences(input: string, references: readonly IResolvedPromptFileReference[]): string;
|
|
1446
|
+
declare function hasBlockingPromptFileReferenceDiagnostics(diagnostics: readonly IPromptFileReferenceDiagnostic[]): boolean;
|
|
1447
|
+
declare function formatPromptFileReferenceDiagnostics(diagnostics: readonly IPromptFileReferenceDiagnostic[]): string;
|
|
1448
|
+
declare function toPromptFileReferenceRecords(references: readonly IResolvedPromptFileReference[]): IPromptFileReferenceRecord[];
|
|
1449
|
+
declare function createPromptFileReferenceHistoryEntry(references: readonly IResolvedPromptFileReference[]): IHistoryEntry<IPromptFileReferenceHistoryData>;
|
|
1450
|
+
|
|
1451
|
+
declare function parsePromptFileReferences(input: string): IPromptFileReferenceToken[];
|
|
1452
|
+
|
|
1453
|
+
declare function resolvePromptFileReferences(input: string, options: IPromptFileReferenceResolveOptions): Promise<IResolvedPromptFileReferences>;
|
|
1454
|
+
declare function resolvePromptFileReferencePaths(referencePaths: readonly string[], options: IPromptFileReferenceResolveOptions): Promise<IResolvedPromptFileReferences>;
|
|
1455
|
+
|
|
1250
1456
|
/**
|
|
1251
1457
|
* Types for InteractiveSession — event-driven session wrapper.
|
|
1252
1458
|
*/
|
|
@@ -1288,6 +1494,7 @@ interface IExecutionResult {
|
|
|
1288
1494
|
toolSummaries: IToolSummary[];
|
|
1289
1495
|
contextState: IContextWindowState;
|
|
1290
1496
|
usage?: IUsageSnapshot;
|
|
1497
|
+
promptFileReferences?: IPromptFileReferenceRecord[];
|
|
1291
1498
|
}
|
|
1292
1499
|
/** Summary of a tool call extracted from history. */
|
|
1293
1500
|
interface IToolSummary {
|
|
@@ -1307,6 +1514,7 @@ interface IInteractiveSessionEvents {
|
|
|
1307
1514
|
context_update: (state: IContextWindowState) => void;
|
|
1308
1515
|
compact: (event: ICompactEvent) => void;
|
|
1309
1516
|
interrupted: (result: IExecutionResult) => void;
|
|
1517
|
+
skill_activation: (event: ISkillActivationEvent) => void;
|
|
1310
1518
|
background_task_event: (event: TBackgroundTaskEvent) => void;
|
|
1311
1519
|
background_job_group_event: (event: TBackgroundJobGroupEvent) => void;
|
|
1312
1520
|
}
|
|
@@ -1623,6 +1831,45 @@ declare function wrapReversibleExecutionTools(tools: readonly IToolWithEventServ
|
|
|
1623
1831
|
checkpointAvailable: boolean;
|
|
1624
1832
|
}): IToolWithEventService[];
|
|
1625
1833
|
|
|
1834
|
+
interface IInteractiveSessionRecord {
|
|
1835
|
+
id: string;
|
|
1836
|
+
name?: string;
|
|
1837
|
+
cwd: string;
|
|
1838
|
+
createdAt: string;
|
|
1839
|
+
updatedAt: string;
|
|
1840
|
+
messages: TUniversalMessage[];
|
|
1841
|
+
history?: IHistoryEntry[];
|
|
1842
|
+
systemPrompt?: string;
|
|
1843
|
+
toolSchemas?: IToolSchema[];
|
|
1844
|
+
backgroundTasks?: IBackgroundTaskState[];
|
|
1845
|
+
backgroundTaskEvents?: TBackgroundTaskEvent[];
|
|
1846
|
+
backgroundJobGroups?: IBackgroundJobGroupState[];
|
|
1847
|
+
backgroundJobGroupEvents?: TBackgroundJobGroupEvent[];
|
|
1848
|
+
skillActivationEvents?: ISkillActivationEvent[];
|
|
1849
|
+
memoryEvents?: IMemoryEvent[];
|
|
1850
|
+
usedMemoryReferences?: IMemoryReference[];
|
|
1851
|
+
contextReferences?: IContextReferenceItem[];
|
|
1852
|
+
sandboxSnapshotId?: string;
|
|
1853
|
+
}
|
|
1854
|
+
interface IInteractiveSessionStore {
|
|
1855
|
+
save(session: IInteractiveSessionRecord): void;
|
|
1856
|
+
load(id: string): IInteractiveSessionRecord | undefined;
|
|
1857
|
+
list(): IInteractiveSessionRecord[];
|
|
1858
|
+
delete(id: string): void;
|
|
1859
|
+
}
|
|
1860
|
+
interface IResumableSessionSummary {
|
|
1861
|
+
id: string;
|
|
1862
|
+
name?: string;
|
|
1863
|
+
cwd: string;
|
|
1864
|
+
updatedAt: string;
|
|
1865
|
+
messageCount: number;
|
|
1866
|
+
preview: string;
|
|
1867
|
+
}
|
|
1868
|
+
declare function createProjectSessionStore(cwd: string): IInteractiveSessionStore;
|
|
1869
|
+
declare function listResumableSessionSummaries(sessionStore: IInteractiveSessionStore | undefined, cwd: string): IResumableSessionSummary[];
|
|
1870
|
+
declare function resolveLatestSessionId(sessionStore: IInteractiveSessionStore | undefined, cwd: string): string | undefined;
|
|
1871
|
+
declare function resolveSessionIdByIdOrName(sessionStore: IInteractiveSessionStore | undefined, idOrName: string): string | undefined;
|
|
1872
|
+
|
|
1626
1873
|
/**
|
|
1627
1874
|
* Session factory — assembles a fully-configured Session from config, context,
|
|
1628
1875
|
* tools, and provider.
|
|
@@ -1650,7 +1897,7 @@ interface ICreateSessionOptions {
|
|
|
1650
1897
|
/** Maximum number of agentic turns per run() call. Undefined = unlimited. */
|
|
1651
1898
|
maxTurns?: number;
|
|
1652
1899
|
/** Optional session store for persistence */
|
|
1653
|
-
sessionStore?:
|
|
1900
|
+
sessionStore?: IInteractiveSessionStore;
|
|
1654
1901
|
/** Inject a pre-constructed AI provider (used by tests to avoid real API calls) */
|
|
1655
1902
|
provider?: IAIProvider;
|
|
1656
1903
|
/** Custom permission handler (overrides terminal-based prompts, used by Ink UI) */
|
|
@@ -1714,6 +1961,8 @@ interface ICreateSessionOptions {
|
|
|
1714
1961
|
editCheckpointRecorder?: IEditCheckpointRecorder;
|
|
1715
1962
|
/** Opt-in local-first reversible execution policy for write/shell tools. */
|
|
1716
1963
|
reversibleExecution?: IReversibleExecutionOptions;
|
|
1964
|
+
/** Optional provider sandbox client used by sandbox-aware built-in tools. */
|
|
1965
|
+
sandboxClient?: ISandboxClient;
|
|
1717
1966
|
}
|
|
1718
1967
|
|
|
1719
1968
|
/**
|
|
@@ -1724,7 +1973,10 @@ interface ICreateSessionOptions {
|
|
|
1724
1973
|
* Create the default set of CLI tools.
|
|
1725
1974
|
* Returns the 8 standard tools as IToolWithEventService[].
|
|
1726
1975
|
*/
|
|
1727
|
-
|
|
1976
|
+
interface ICreateDefaultToolsOptions {
|
|
1977
|
+
sandboxClient?: ISandboxClient;
|
|
1978
|
+
}
|
|
1979
|
+
declare function createDefaultTools(options?: ICreateDefaultToolsOptions): IToolWithEventService[];
|
|
1728
1980
|
|
|
1729
1981
|
/**
|
|
1730
1982
|
* Framework system prompt suffixes for subagent sessions.
|
|
@@ -1808,7 +2060,7 @@ interface IInteractiveSessionStandardOptions {
|
|
|
1808
2060
|
permissionMode?: ICreateSessionOptions['permissionMode'];
|
|
1809
2061
|
maxTurns?: number;
|
|
1810
2062
|
permissionHandler?: TInteractivePermissionHandler;
|
|
1811
|
-
sessionStore?:
|
|
2063
|
+
sessionStore?: IInteractiveSessionStore;
|
|
1812
2064
|
sessionName?: string;
|
|
1813
2065
|
resumeSessionId?: string;
|
|
1814
2066
|
forkSession?: boolean;
|
|
@@ -1836,6 +2088,14 @@ interface IInteractiveSessionStandardOptions {
|
|
|
1836
2088
|
config?: IResolvedConfig;
|
|
1837
2089
|
/** Opt-in local-first reversible execution policy for write/shell tools. */
|
|
1838
2090
|
reversibleExecution?: IReversibleExecutionOptions;
|
|
2091
|
+
/** Optional provider sandbox client used by sandbox-aware built-in tools. */
|
|
2092
|
+
sandboxClient?: ISandboxClient;
|
|
2093
|
+
/** Fresh-session workspace manifest applied through the sandbox client. */
|
|
2094
|
+
workspaceManifest?: IWorkspaceManifest;
|
|
2095
|
+
/** Sandbox target root for workspace manifest entries. Defaults to /workspace. */
|
|
2096
|
+
sandboxWorkspaceRoot?: string;
|
|
2097
|
+
/** Provider sandbox snapshot id to restore before replaying saved messages. */
|
|
2098
|
+
sandboxSnapshotId?: string;
|
|
1839
2099
|
}
|
|
1840
2100
|
/** Test/advanced construction: inject pre-built session directly. */
|
|
1841
2101
|
interface IInteractiveSessionInjectedOptions {
|
|
@@ -1845,7 +2105,7 @@ interface IInteractiveSessionInjectedOptions {
|
|
|
1845
2105
|
permissionMode?: ICreateSessionOptions['permissionMode'];
|
|
1846
2106
|
maxTurns?: number;
|
|
1847
2107
|
permissionHandler?: TInteractivePermissionHandler;
|
|
1848
|
-
sessionStore?:
|
|
2108
|
+
sessionStore?: IInteractiveSessionStore;
|
|
1849
2109
|
sessionName?: string;
|
|
1850
2110
|
resumeSessionId?: string;
|
|
1851
2111
|
forkSession?: boolean;
|
|
@@ -1895,6 +2155,7 @@ declare class InteractiveSession {
|
|
|
1895
2155
|
private backgroundJobGroupEvents;
|
|
1896
2156
|
private memoryEvents;
|
|
1897
2157
|
private usedMemoryReferences;
|
|
2158
|
+
private contextReferences;
|
|
1898
2159
|
private editCheckpointStore;
|
|
1899
2160
|
private resumeSessionId?;
|
|
1900
2161
|
private forkSession;
|
|
@@ -1903,10 +2164,18 @@ declare class InteractiveSession {
|
|
|
1903
2164
|
private backgroundJobOrchestrator;
|
|
1904
2165
|
private readonly commandModules;
|
|
1905
2166
|
private readonly commandHostAdapters?;
|
|
2167
|
+
private readonly skillCommandSource;
|
|
2168
|
+
private skillActivationEvents;
|
|
1906
2169
|
private autoCompactThresholdSource;
|
|
1907
2170
|
private shuttingDown;
|
|
1908
2171
|
private shutdownPromise;
|
|
2172
|
+
private readonly sandboxClient?;
|
|
2173
|
+
private sandboxSnapshotId?;
|
|
2174
|
+
private commandInvocationSource;
|
|
1909
2175
|
constructor(options: IInteractiveSessionOptions);
|
|
2176
|
+
private configureInjectedSession;
|
|
2177
|
+
private restoreSessionRecordIfNeeded;
|
|
2178
|
+
private startAsyncInitializationIfNeeded;
|
|
1910
2179
|
private initializeAsync;
|
|
1911
2180
|
private ensureInitialized;
|
|
1912
2181
|
private getSessionOrThrow;
|
|
@@ -1915,16 +2184,22 @@ declare class InteractiveSession {
|
|
|
1915
2184
|
private emit;
|
|
1916
2185
|
submit(input: string, displayInput?: string, rawInput?: string): Promise<void>;
|
|
1917
2186
|
executeCommand(name: string, args: string): Promise<ICommandResult | null>;
|
|
2187
|
+
private executeCommandWithInvocationSource;
|
|
1918
2188
|
executeModelCommand(name: string, args: string): Promise<ICommandResult | null>;
|
|
1919
|
-
|
|
2189
|
+
getCommandInvocationSource(): TCommandInvocationSource;
|
|
2190
|
+
executeSkillCommandByName(name: string, args: string, request: ICommandSkillActivationRequest): Promise<ICommandResult | null>;
|
|
2191
|
+
private executeUserResolvedSkillCommand;
|
|
1920
2192
|
listCommands(): Array<{
|
|
1921
2193
|
name: string;
|
|
1922
2194
|
description: string;
|
|
1923
2195
|
}>;
|
|
2196
|
+
listSkills(): ICommandSkillListEntry[];
|
|
1924
2197
|
listModelInvocableCommands(): Array<{
|
|
1925
2198
|
name: string;
|
|
1926
2199
|
description: string;
|
|
1927
2200
|
}>;
|
|
2201
|
+
getSkillActivationEvents(): ISkillActivationEvent[];
|
|
2202
|
+
private findSkillCommand;
|
|
1928
2203
|
abort(): void;
|
|
1929
2204
|
shutdown(options?: IInteractiveSessionShutdownOptions): Promise<void>;
|
|
1930
2205
|
cancelQueue(): void;
|
|
@@ -1951,6 +2226,10 @@ declare class InteractiveSession {
|
|
|
1951
2226
|
rollbackEditCheckpoint(checkpointId: string): Promise<IEditCheckpointRestoreResult>;
|
|
1952
2227
|
getUsedMemoryReferences(): IMemoryReference[];
|
|
1953
2228
|
recordMemoryEvent(event: IMemoryEvent): void;
|
|
2229
|
+
listContextReferences(): IContextReferenceItem[];
|
|
2230
|
+
addContextReference(path: string): Promise<IContextReferenceAddResult>;
|
|
2231
|
+
removeContextReference(path: string): IContextReferenceRemoveResult;
|
|
2232
|
+
clearContextReferences(): IContextReferenceClearResult;
|
|
1954
2233
|
listBackgroundTasks(filter?: IBackgroundTaskListFilter): IBackgroundTaskState[];
|
|
1955
2234
|
getBackgroundTask(taskId: string): IBackgroundTaskState | undefined;
|
|
1956
2235
|
cancelBackgroundTask(taskId: string, reason?: string): Promise<void>;
|
|
@@ -1980,6 +2259,9 @@ declare class InteractiveSession {
|
|
|
1980
2259
|
closeAgentJob(jobId: string): Promise<void>;
|
|
1981
2260
|
setName(name: string): void;
|
|
1982
2261
|
attachTransport(transport: ITransportAdapter): void;
|
|
2262
|
+
private executeSkillWithActivation;
|
|
2263
|
+
private recordSkillActivation;
|
|
2264
|
+
private recordSkillActivationEvent;
|
|
1983
2265
|
private executeForkSkillCommand;
|
|
1984
2266
|
private getBackgroundTaskManagerOrThrow;
|
|
1985
2267
|
private getBackgroundTaskManager;
|
|
@@ -1994,6 +2276,7 @@ declare class InteractiveSession {
|
|
|
1994
2276
|
private getBackgroundTaskSnapshots;
|
|
1995
2277
|
private getBackgroundJobGroupSnapshots;
|
|
1996
2278
|
private persistCurrentSession;
|
|
2279
|
+
private captureSandboxSnapshot;
|
|
1997
2280
|
private startForkSkillExecution;
|
|
1998
2281
|
private finishForkSkillExecution;
|
|
1999
2282
|
private recordForkSkillError;
|
|
@@ -2002,6 +2285,8 @@ declare class InteractiveSession {
|
|
|
2002
2285
|
private applyForkSkillResult;
|
|
2003
2286
|
private executeForegroundCommand;
|
|
2004
2287
|
private executePrompt;
|
|
2288
|
+
private recordContextReferenceUsage;
|
|
2289
|
+
private recordPromptContextReferences;
|
|
2005
2290
|
private getEditCheckpointStore;
|
|
2006
2291
|
private beginEditCheckpointTurn;
|
|
2007
2292
|
private finalizeEditCheckpointTurn;
|
|
@@ -2118,12 +2403,40 @@ declare function retrieveAgentToolDeps(key: object): IAgentToolDeps | undefined;
|
|
|
2118
2403
|
*/
|
|
2119
2404
|
declare function createAgentTool(deps: IAgentToolDeps): ReturnType<typeof createZodFunctionTool>;
|
|
2120
2405
|
|
|
2406
|
+
type TModelCommandDescriptor$1 = Pick<ICapabilityDescriptor, 'name' | 'description' | 'argumentHint'>;
|
|
2121
2407
|
interface ICommandExecutionToolDeps {
|
|
2122
2408
|
isModelInvocable: (command: string) => boolean;
|
|
2123
2409
|
execute: (command: string, args: string) => Promise<ICommandResult | null>;
|
|
2410
|
+
commandNames?: readonly string[];
|
|
2411
|
+
commandDescriptors?: readonly TModelCommandDescriptor$1[];
|
|
2124
2412
|
}
|
|
2125
2413
|
declare function createCommandExecutionTool(deps: ICommandExecutionToolDeps): ReturnType<typeof createZodFunctionTool>;
|
|
2126
2414
|
|
|
2415
|
+
declare const MODEL_COMMAND_TOOL_PREFIX: "robota_command_";
|
|
2416
|
+
declare const PROVIDER_SAFE_TOOL_NAME_PATTERN: RegExp;
|
|
2417
|
+
type TModelCommandDescriptor = Pick<ICapabilityDescriptor, 'name' | 'description' | 'argumentHint'>;
|
|
2418
|
+
interface IProjectedModelCommandTool {
|
|
2419
|
+
readonly commandName: string;
|
|
2420
|
+
readonly toolName: string;
|
|
2421
|
+
readonly description: string;
|
|
2422
|
+
readonly descriptor: TModelCommandDescriptor;
|
|
2423
|
+
}
|
|
2424
|
+
interface IModelCommandToolProjection {
|
|
2425
|
+
readonly commandTools: readonly IProjectedModelCommandTool[];
|
|
2426
|
+
readonly toolNameToCommandName: ReadonlyMap<string, string>;
|
|
2427
|
+
readonly commandNameToToolName: ReadonlyMap<string, string>;
|
|
2428
|
+
}
|
|
2429
|
+
interface IProjectedCommandExecutionToolsDeps {
|
|
2430
|
+
isModelInvocable: (command: string) => boolean;
|
|
2431
|
+
execute: (command: string, args: string) => Promise<ICommandResult | null>;
|
|
2432
|
+
commandDescriptors: readonly TModelCommandDescriptor[];
|
|
2433
|
+
}
|
|
2434
|
+
declare function normalizeModelCommandName(command: string): string;
|
|
2435
|
+
declare function createProviderSafeModelCommandToolName(commandName: string): string;
|
|
2436
|
+
declare function createModelCommandToolProjection(commandDescriptors: readonly TModelCommandDescriptor[]): IModelCommandToolProjection;
|
|
2437
|
+
declare function formatProjectedModelCommandToolPromptDescription(projection: IProjectedModelCommandTool): string;
|
|
2438
|
+
declare function createProjectedCommandExecutionTools(deps: IProjectedCommandExecutionToolsDeps): Array<ReturnType<typeof createZodFunctionTool>>;
|
|
2439
|
+
|
|
2127
2440
|
interface IBackgroundProcessToolDeps {
|
|
2128
2441
|
backgroundTaskManager: IBackgroundTaskManager;
|
|
2129
2442
|
cwd?: string;
|
|
@@ -2190,4 +2503,4 @@ declare function updateTaskFileStatus(taskPath: string, status: TTaskFileStatus,
|
|
|
2190
2503
|
*/
|
|
2191
2504
|
declare function promptForApproval(terminal: ITerminalOutput, toolName: string, toolArgs: TToolArgs): Promise<boolean>;
|
|
2192
2505
|
|
|
2193
|
-
export { AUTO_COMPACT_THRESHOLD_SETTINGS_KEY, AgentExecutor, BACKGROUND_COMMAND_DESCRIPTION, BACKGROUND_COMMAND_USAGE, BUILT_IN_AGENTS, BackgroundJobOrchestrator, BuiltinCommandSource, BundlePluginInstaller, BundlePluginLoader, CLEAR_COMMAND_DESCRIPTION, COST_COMMAND_DESCRIPTION, CommandRegistry, DEFAULT_AUTO_COMPACT_THRESHOLD, DEFAULT_STATUS_LINE_COMMAND_SETTINGS, EXIT_COMMAND_DESCRIPTION, EditCheckpointStore, HELP_COMMAND_DESCRIPTION, type IAgentDefinition, type IAgentExecutorOptions, type IAgentSession, type IAgentToolDeps, type IAppendMemoryInput, type IAppendMemoryResult, type IBackgroundJobGroupCreateRequest, type IBackgroundJobGroupState, type IBackgroundJobGroupSummary, type IBackgroundJobOrchestratorOptions, type IBackgroundJobResultEnvelope, type IBackgroundProcessToolDeps, type IBundlePluginFeatures, type IBundlePluginInstallerOptions, type IBundlePluginManifest, type IBundleSkill, type ICapabilityDescriptor, type ICommand, type ICommandAvailablePlugin, type ICommandChoicePromptOption, type ICommandExecutionToolDeps, type ICommandHostAdapters, type ICommandHostContext, type ICommandInstalledPlugin, type ICommandInteraction, type ICommandListEntry, type ICommandMarketplaceSource, type ICommandMemoryStores, type ICommandModule, type ICommandPendingMemoryStore, type ICommandPermissionModeAdapter, type ICommandPickerAdapter, type ICommandPluginAdapter, type ICommandPluginReloadResult, type ICommandProcessAdapter, type ICommandProjectMemoryStore, type ICommandResult, type ICommandSessionInfo, type ICommandSessionRuntime, type ICommandSettingsAdapter, type ICommandSettingsDocument, type ICommandSource, type ICompactContextResult, type ICreateQueryOptions, type IDiffLine, type IEditCheckpointFileInspection, type IEditCheckpointFileRecord, type IEditCheckpointInspection, type IEditCheckpointInspectionPlan, type IEditCheckpointManifest, type IEditCheckpointRecorder, type IEditCheckpointRestoreResult, type IEditCheckpointSummary, type IEditCheckpointTurnInput, type IExecutionResult, type IForkExecutionOptions, type IInProcessSubagentRunnerDeps, type IInstalledPluginRecord, type IInstalledPluginsRegistry, type IInteractiveSessionEvents, type IInteractiveSessionOptions, type IInteractiveSessionShutdownOptions, type IKnownMarketplaceEntry, type IKnownMarketplacesRegistry, type ILegacyProviderSettings, type ILoadedBundlePlugin, type IMarketplaceClientOptions, type IMarketplaceManifest, type IMarketplacePluginEntry, type IMarketplaceSource, type IMemoryCandidate, type IMemoryEvent, type IMemoryPendingRecord, type IMemoryReference, type IPermissionsCommandState, type IPluginSettings, type IProjectMemorySummary, type IPromptExecutorOptions, type IPromptProvider, type IProviderCommandModuleOptions, type IProviderCommandSettingsAdapter, type IProviderProfileSettings, type IProviderSettingsBuildOptions, type IProviderSetupFlowState, type IProviderSetupInput, type IProviderSetupPatch, type IProviderSetupPromptStep, type IReversibleExecutionOptions, type IReversibleToolSafetyContext, type IReversibleToolSafetyInput, type IReversibleToolSafetyReport, type ISelfHostingVerificationPlan, type ISelfHostingVerificationPlanInput, type ISelfHostingVerificationStep, type ISkillExecutionCallbacks, type ISkillExecutionResult, type IStartupMemory, type IStatusLineCommandSettings, type ISubagentOptions, type ISubagentPromptOptions, type ISystemCommand, type ITaskContextFile, type ITaskSelectionOptions, type IToolState, type IToolSummary, type ITransportAdapter, type IUpdateTaskFileStatusOptions, type IUsageSnapshot, InteractiveSession, LANGUAGE_COMMAND_ARGUMENT_HINT, LANGUAGE_COMMAND_DESCRIPTION, MEMORY_COMMAND_ARGUMENT_HINT, MEMORY_COMMAND_DESCRIPTION, MEMORY_COMMAND_USAGE, MEMORY_INDEX_MAX_BYTES, MEMORY_INDEX_MAX_LINES, MODEL_COMMAND_ARGUMENT_HINT, MODEL_COMMAND_DESCRIPTION, MarketplaceClient, PERMISSIONS_COMMAND_DESCRIPTION, PERMISSION_MODE_ARGUMENT_HINT, PERMISSION_MODE_COMMAND_DESCRIPTION, PLUGIN_COMMAND_ARGUMENT_HINT, PLUGIN_COMMAND_DESCRIPTION, PluginCommandSource, PluginSettingsStore, ProjectMemoryStore, PromptExecutor, RECOMMENDED_RESPONSE_LANGUAGES, RELOAD_PLUGINS_COMMAND_DESCRIPTION, RENAME_COMMAND_DESCRIPTION, RENAME_COMMAND_USAGE, RESUME_COMMAND_DESCRIPTION, REWIND_COMMAND_ARGUMENT_HINT, REWIND_COMMAND_DESCRIPTION, STATUSLINE_COMMAND_ARGUMENT_HINT, STATUSLINE_COMMAND_DESCRIPTION, SkillCommandSource, type SkillPromptContext, SystemCommandExecutor, type TAutoCompactThreshold$1 as TAutoCompactThreshold, type TAutoCompactThresholdSource, type TBackgroundJobGroupEvent, type TBackgroundJobGroupEventListener, type TBackgroundJobGroupIdFactory, type TBackgroundJobGroupStatus, type TBackgroundJobWaitPolicy, type TCapabilityKind, type TCapabilitySafety, type TCommandEffect, type TCommandInteractionPrompt, type TCommandModuleSessionRequirement, type TCommandResultDataValue, type TEditCheckpointFileRestoreAction, type TEnabledPlugins, type TInteractiveEventName, type TInteractivePermissionHandler, type TMemoryCandidateStatus, type TMemoryType, type TPermissionResultValue, type TPluginInstallScope, type TPromptInput, type TProviderFactory, type TProviderSettingsDocument, type TProviderSetupFlowSubmitResult, type TProviderSetupType, type TRecommendedResponseLanguage, type TReversibleExecutionIsolation, type TReversibleRollbackLayer, type TReversibleSafetyStatus, type TReversibleSideEffect, type TSelfHostingLoopEvent, type TSelfHostingLoopState, type TSelfHostingVerificationPhase, type TSessionFactory, type TStatusLineCommandSettingsPatch, type TSubagentRunnerFactory, type TSystemCommandLifecycle, type TTaskFileStatus, VALID_PERMISSION_MODES, assembleSubagentPrompt, buildBackgroundCommandSubcommands, buildLanguageCommandSubcommands, buildMemoryCommandSubcommands, buildModelCommandSubcommands, buildPermissionModeSubcommands, buildPluginCommandSubcommands, buildProviderProfile, buildProviderSetupPatch, buildRewindCommandSubcommands, buildSkillPrompt, buildStatusLineCommandSubcommands, cancelCommandBackgroundTask, clearConversationHistory, closeCommandBackgroundTask, compactCommandContext, createAgentTool, createBackgroundProcessTool, createBuiltinCommandModule, createCommandExecutionTool, createCommandMemoryStores, createCommandPendingMemoryStore, createCommandProjectMemoryStore, createDefaultTools, createPluginRegistryReloadRequestedEffect, createPluginTuiRequestedEffect, createProviderSetupFlow, createQuery, createSessionExitRequestedEffect, createSessionPickerRequestedEffect, createSessionRenamedEffect, createSubagentLogger, createSubagentSession, createSystemCommands, discoverTaskFiles, evaluateReversibleToolSafety, executeSkill, formatCommandBackgroundTask, formatCommandBackgroundTaskList, formatCommandHelpMessage, formatCommandPermissionsMessage, formatEnvReference, formatInvalidPermissionModeMessage, formatLanguageUsageMessage, formatProviderSetupChoiceLabel, formatProviderSetupPromptLabel, formatProviderSetupSelectionPrompt, formatTaskContext, getBuiltInAgent, getForkWorkerSuffix, getProviderSetupStep, getSubagentSuffix, hasSensitiveCommandMemoryContent, hasUsableSecretReference, inspectCommandEditCheckpoint, isCommandMemoryType, isEnvReference, isMemoryType, isPermissionMode, isStatusLineCommandSettingsPatch, listCommandBackgroundTasks, listCommandEditCheckpoints, listCommandSessionAllowedTools, listCommandUsedMemoryReferences, loadTaskContext, mergeProviderPatch, parseCommandBackgroundLogCursor, parseFrontmatter, parseLanguageArgument, parsePermissionModeArgument, parseSessionNameArgument, parseTaskFile, planSelfHostingVerification, preprocessShellCommands, probeProviderProfile, projectPaths, promptForApproval, readAutoCompactThreshold, readAutoCompactThresholdSource, readCommandBackgroundTaskLog, readCommandContextState, readCommandPermissionMode, readCommandPermissionsState, readCommandSessionInfo, readCurrentGitBranch, recordCommandMemoryEvent, resetAutoCompactThresholdSetting, resolveEnvReference, resolvePermissionModeAdapter, resolvePluginCommandAdapter, resolveProviderSetupSelection, resolveSubagentLogDir, restoreCommandEditCheckpoint, retrieveAgentToolDeps, rollbackCommandEditCheckpoint, runProviderSetupPromptFlow, selectRelevantTasks, setCommandAutoCompactThreshold, setCurrentProvider, storeAgentToolDeps, submitProviderSetupValue, substituteVariables, summarizeBackgroundJobGroup, testProviderProfileCommand, transitionSelfHostingLoop, updateTaskFileStatus, upsertProviderProfile, userPaths, validateProviderProfile, validateProviderSetupValue, wrapEditCheckpointTools, wrapReversibleExecutionTools, writeAutoCompactThresholdSetting, writeCommandPermissionMode };
|
|
2506
|
+
export { AUTO_COMPACT_THRESHOLD_SETTINGS_KEY, AgentExecutor, BACKGROUND_COMMAND_DESCRIPTION, BACKGROUND_COMMAND_USAGE, BUILT_IN_AGENTS, BackgroundJobOrchestrator, BuiltinCommandSource, BundlePluginInstaller, BundlePluginLoader, CLEAR_COMMAND_DESCRIPTION, COST_COMMAND_DESCRIPTION, CommandRegistry, DEFAULT_AUTO_COMPACT_THRESHOLD, DEFAULT_STATUS_LINE_COMMAND_SETTINGS, EXIT_COMMAND_DESCRIPTION, EditCheckpointStore, HELP_COMMAND_DESCRIPTION, type IActiveProviderModelCatalogState, type IAgentDefinition, type IAgentExecutorOptions, type IAgentSession, type IAgentToolDeps, type IAppendMemoryInput, type IAppendMemoryResult, type IBackgroundJobGroupCreateRequest, type IBackgroundJobGroupState, type IBackgroundJobGroupSummary, type IBackgroundJobOrchestratorOptions, type IBackgroundJobResultEnvelope, type IBackgroundProcessToolDeps, type IBuildModelCommandSubcommandsOptions, type IBundlePluginFeatures, type IBundlePluginInstallerOptions, type IBundlePluginManifest, type IBundleSkill, type ICapabilityDescriptor, type ICommand, type ICommandAvailablePlugin, type ICommandChoicePromptOption, type ICommandExecutionToolDeps, type ICommandHostAdapters, type ICommandHostContext, type ICommandInstalledPlugin, type ICommandInteraction, type ICommandListEntry, type ICommandMarketplaceSource, type ICommandMemoryStores, type ICommandModule, type ICommandPendingMemoryStore, type ICommandPermissionModeAdapter, type ICommandPickerAdapter, type ICommandPluginAdapter, type ICommandPluginReloadResult, type ICommandProcessAdapter, type ICommandProjectMemoryStore, type ICommandResult, type ICommandSessionInfo, type ICommandSessionReplayValidationReport, type ICommandSessionRuntime, type ICommandSettingsAdapter, type ICommandSettingsDocument, type ICommandSkillListEntry, type ICommandSource, type ICompactContextResult, type IContextReferenceAddResult, type IContextReferenceClearResult, type IContextReferenceInventoryLimits, type IContextReferenceItem, type IContextReferenceRemoveResult, type IContextReferenceUpsertResult, type ICreateQueryOptions, type IDiffLine, type IEditCheckpointFileInspection, type IEditCheckpointFileRecord, type IEditCheckpointInspection, type IEditCheckpointInspectionPlan, type IEditCheckpointManifest, type IEditCheckpointRecorder, type IEditCheckpointRestoreResult, type IEditCheckpointSummary, type IEditCheckpointTurnInput, type IExecutionResult, type IForkExecutionOptions, type IInProcessSubagentRunnerDeps, type IInstalledPluginRecord, type IInstalledPluginsRegistry, type IInteractiveSessionEvents, type IInteractiveSessionOptions, type IInteractiveSessionRecord, type IInteractiveSessionShutdownOptions, type IInteractiveSessionStore, type IKnownMarketplaceEntry, type IKnownMarketplacesRegistry, type ILegacyProviderSettings, type ILoadedBundlePlugin, type IMarketplaceClientOptions, type IMarketplaceManifest, type IMarketplacePluginEntry, type IMarketplaceSource, type IMemoryCandidate, type IMemoryEvent, type IMemoryPendingRecord, type IMemoryReference, type IModelCommandModuleOptions, type IModelCommandSettingsAdapter, type IModelCommandToolProjection, type IPermissionsCommandState, type IPluginSettings, type IProjectMemorySummary, type IProjectedCommandExecutionToolsDeps, type IProjectedModelCommandTool, type IPromptExecutorOptions, type IPromptFileReferenceDiagnostic, type IPromptFileReferenceHistoryData, type IPromptFileReferenceLimits, type IPromptFileReferenceRecord, type IPromptFileReferenceResolveOptions, type IPromptFileReferenceToken, type IPromptProvider, type IProviderCommandModuleOptions, type IProviderCommandSettingsAdapter, type IProviderProfileNameSuggestionInput, type IProviderProfileNameSuggestionOptions, type IProviderProfileSettings, type IProviderSettingsBuildOptions, type IProviderSetupFlowOptions, type IProviderSetupFlowState, type IProviderSetupInput, type IProviderSetupPatch, type IProviderSetupPromptStep, type IResolveActiveProviderModelCatalogStateOptions, type IResolvedPromptFileReference, type IResolvedPromptFileReferences, type IResumableSessionSummary, type IReversibleExecutionOptions, type IReversibleToolSafetyContext, type IReversibleToolSafetyInput, type IReversibleToolSafetyReport, type ISelfHostingVerificationPlan, type ISelfHostingVerificationPlanInput, type ISelfHostingVerificationStep, type ISkillActivationEvent, type ISkillActivationHistoryData, type ISkillExecutionCallbacks, type ISkillExecutionResult, type IStartupMemory, type IStatusLineCommandSettings, type ISubagentOptions, type ISubagentPromptOptions, type ISystemCommand, type ITaskContextFile, type ITaskSelectionOptions, type IToolState, type IToolSummary, type ITransportAdapter, type IUpdateTaskFileStatusOptions, type IUsageSnapshot, InteractiveSession, LANGUAGE_COMMAND_ARGUMENT_HINT, LANGUAGE_COMMAND_DESCRIPTION, MEMORY_COMMAND_ARGUMENT_HINT, MEMORY_COMMAND_DESCRIPTION, MEMORY_COMMAND_USAGE, MEMORY_INDEX_MAX_BYTES, MEMORY_INDEX_MAX_LINES, MODEL_COMMAND_ARGUMENT_HINT, MODEL_COMMAND_DESCRIPTION, MODEL_COMMAND_TOOL_PREFIX, MarketplaceClient, PERMISSIONS_COMMAND_DESCRIPTION, PERMISSION_MODE_ARGUMENT_HINT, PERMISSION_MODE_COMMAND_DESCRIPTION, PLUGIN_COMMAND_ARGUMENT_HINT, PLUGIN_COMMAND_DESCRIPTION, PROVIDER_SAFE_TOOL_NAME_PATTERN, PluginCommandSource, PluginSettingsStore, ProjectMemoryStore, PromptExecutor, RECOMMENDED_RESPONSE_LANGUAGES, RELOAD_PLUGINS_COMMAND_DESCRIPTION, RENAME_COMMAND_DESCRIPTION, RENAME_COMMAND_USAGE, RESUME_COMMAND_DESCRIPTION, REWIND_COMMAND_ARGUMENT_HINT, REWIND_COMMAND_DESCRIPTION, STATUSLINE_COMMAND_ARGUMENT_HINT, STATUSLINE_COMMAND_DESCRIPTION, SkillCommandSource, type SkillPromptContext, SystemCommandExecutor, type TAutoCompactThreshold$1 as TAutoCompactThreshold, type TAutoCompactThresholdSource, type TBackgroundJobGroupEvent, type TBackgroundJobGroupEventListener, type TBackgroundJobGroupIdFactory, type TBackgroundJobGroupStatus, type TBackgroundJobWaitPolicy, type TCapabilityKind, type TCapabilitySafety, type TCommandEffect, type TCommandInteractionPrompt, type TCommandModuleSessionRequirement, type TCommandResultDataValue, type TContextReferenceLoadType, type TContextReferenceStatus, type TEditCheckpointFileRestoreAction, type TEnabledPlugins, type TInteractiveEventName, type TInteractivePermissionHandler, type TMemoryCandidateStatus, type TMemoryType, type TPermissionResultValue, type TPluginInstallScope, type TPromptFileReferenceDiagnosticCode, type TPromptFileReferenceReason, type TPromptInput, type TProviderFactory, type TProviderSettingsDocument, type TProviderSetupFlowSubmitResult, type TProviderSetupType, type TRecommendedResponseLanguage, type TReversibleExecutionIsolation, type TReversibleRollbackLayer, type TReversibleSafetyStatus, type TReversibleSideEffect, type TSelfHostingLoopEvent, type TSelfHostingLoopState, type TSelfHostingVerificationPhase, type TSessionFactory, type TSkillActivationInvocation, type TSkillActivationMode, type TSkillActivationSource, type TSkillActivationStatus, type TStatusLineCommandSettingsPatch, type TSubagentRunnerFactory, type TSystemCommandLifecycle, type TTaskFileStatus, VALIDATE_SESSION_COMMAND_DESCRIPTION, VALID_PERMISSION_MODES, addCommandContextReference, assembleSubagentPrompt, buildBackgroundCommandSubcommands, buildLanguageCommandSubcommands, buildMemoryCommandSubcommands, buildModelCommandSubcommands, buildPermissionModeSubcommands, buildPluginCommandSubcommands, buildPromptWithFileReferences, buildProviderProfile, buildProviderSetupPatch, buildRewindCommandSubcommands, buildStatusLineCommandSubcommands, cancelCommandBackgroundTask, clearCommandContextReferences, clearContextReferences, clearConversationHistory, closeCommandBackgroundTask, compactCommandContext, createAgentTool, createBackgroundProcessTool, createBuiltinCommandModule, createCommandExecutionTool, createCommandMemoryStores, createCommandPendingMemoryStore, createCommandProjectMemoryStore, createContextReferenceItem, createDefaultTools, createModelCommandToolProjection, createPluginRegistryReloadRequestedEffect, createPluginTuiRequestedEffect, createProjectSessionStore, createProjectedCommandExecutionTools, createPromptFileReferenceHistoryEntry, createProviderSafeModelCommandToolName, createProviderSetupFlow, createQuery, createSessionExitRequestedEffect, createSessionPickerRequestedEffect, createSessionRenamedEffect, createSubagentLogger, createSubagentSession, createSystemCommands, deleteProviderProfile, discoverTaskFiles, evaluateReversibleToolSafety, executeSkill, formatCommandBackgroundTask, formatCommandBackgroundTaskList, formatCommandHelpMessage, formatCommandPermissionsMessage, formatCommandSessionReplayValidationReport, formatEnvReference, formatInvalidPermissionModeMessage, formatLanguageUsageMessage, formatModelCommandUsageMessage, formatModelCommandUsageMessageAsync, formatProjectedModelCommandToolPromptDescription, formatPromptFileReferenceDiagnostics, formatProviderSetupChoiceLabel, formatProviderSetupHelpLinks, formatProviderSetupPromptLabel, formatProviderSetupSelectionPrompt, formatTaskContext, getBuiltInAgent, getForkWorkerSuffix, getProviderSetupStep, getSubagentSuffix, hasBlockingPromptFileReferenceDiagnostics, hasSensitiveCommandMemoryContent, hasUsableSecretReference, inspectCommandEditCheckpoint, isCommandMemoryType, isEnvReference, isMemoryType, isPermissionMode, isStatusLineCommandSettingsPatch, listActiveContextReferences, listCommandBackgroundTasks, listCommandContextReferences, listCommandEditCheckpoints, listCommandSessionAllowedTools, listCommandUsedMemoryReferences, listResumableSessionSummaries, loadTaskContext, mergeProviderPatch, normalizeModelCommandName, parseCommandBackgroundLogCursor, parseFrontmatter, parseLanguageArgument, parsePermissionModeArgument, parsePromptFileReferences, parseSessionNameArgument, parseTaskFile, planSelfHostingVerification, preprocessShellCommands, probeProviderProfile, projectPaths, promptForApproval, readAutoCompactThreshold, readAutoCompactThresholdSource, readCommandBackgroundTaskLog, readCommandContextState, readCommandPermissionMode, readCommandPermissionsState, readCommandSessionInfo, readCurrentGitBranch, recordCommandMemoryEvent, removeCommandContextReference, removeContextReference, resetAutoCompactThresholdSetting, resolveActiveProviderModelCatalog, resolveActiveProviderModelCatalogState, resolveEnvReference, resolveLatestSessionId, resolvePermissionModeAdapter, resolvePluginCommandAdapter, resolvePromptFileReferencePaths, resolvePromptFileReferences, resolveProviderSetupSelection, resolveSessionIdByIdOrName, resolveSubagentLogDir, restoreCommandEditCheckpoint, retrieveAgentToolDeps, rollbackCommandEditCheckpoint, runProviderSetupPromptFlow, sanitizeProviderProfileName, selectRelevantTasks, setCommandAutoCompactThreshold, setCurrentProvider, storeAgentToolDeps, submitProviderSetupValue, substituteVariables, suggestProviderProfileName, summarizeBackgroundJobGroup, testProviderProfileCommand, toContextReferenceRecords, toPromptFileReferenceRecords, transitionSelfHostingLoop, updateTaskFileStatus, upsertContextReference, upsertProviderProfile, userPaths, validateCommandSessionReplayLog, validateProviderProfile, validateProviderSetupValue, wrapEditCheckpointTools, wrapReversibleExecutionTools, writeAutoCompactThresholdSetting, writeCommandPermissionMode };
|