@ordewell/core 0.5.1 → 0.5.2
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/dist/{ITerminalRunner-H1yT8LTy.d.ts → ITerminalRunner-Bd-vAJnw.d.ts} +18 -1
- package/dist/{ITerminalRunner-DCjsa2-I.d.mts → ITerminalRunner-ByeoLF57.d.mts} +18 -1
- package/dist/index.d.mts +72 -3
- package/dist/index.d.ts +72 -3
- package/dist/index.js +651 -378
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +643 -372
- package/dist/index.mjs.map +1 -1
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/package.json +1 -1
|
@@ -285,6 +285,18 @@ interface PluginRunnerDef {
|
|
|
285
285
|
* see `RunnerInvocation.submitPromptKey`.
|
|
286
286
|
*/
|
|
287
287
|
submitPromptKey?: boolean;
|
|
288
|
+
/**
|
|
289
|
+
* Screens the agent can stop on before starting the task, waiting for a
|
|
290
|
+
* human — a folder-trust or permission-mode confirmation. Ordewell never
|
|
291
|
+
* answers one; seeing it, the task's user is told where to.
|
|
292
|
+
*/
|
|
293
|
+
blockingPrompts?: BlockingPrompt[];
|
|
294
|
+
}
|
|
295
|
+
interface BlockingPrompt {
|
|
296
|
+
/** Text the prompt shows; matched ignoring case and whitespace. */
|
|
297
|
+
phrase: string;
|
|
298
|
+
/** Completes "<runner> is asking …", e.g. "whether to trust this folder". */
|
|
299
|
+
asks: string;
|
|
288
300
|
}
|
|
289
301
|
interface PluginFeatures {
|
|
290
302
|
modelSelection: boolean;
|
|
@@ -535,10 +547,15 @@ interface ITerminalRunner {
|
|
|
535
547
|
* this to keep two plans' identically named tasks apart.
|
|
536
548
|
*/
|
|
537
549
|
planSessionId?: string;
|
|
550
|
+
/**
|
|
551
|
+
* The workspace's own variables (ADR-0016), under the runner's: a
|
|
552
|
+
* manifest's env still wins over them.
|
|
553
|
+
*/
|
|
554
|
+
env?: Record<string, string>;
|
|
538
555
|
}): Promise<ITerminalSession>;
|
|
539
556
|
stop(sessionId: string): void;
|
|
540
557
|
stopAll(): void;
|
|
541
558
|
activeCount: number;
|
|
542
559
|
}
|
|
543
560
|
|
|
544
|
-
export { type AiProvider as A,
|
|
561
|
+
export { type AiProvider as A, type BlockingPrompt as B, type CatalogModel as C, type DiscoveryCommand as D, isReservedRunnerName as E, type FetchAllProviderModelsOptions as F, GREP_DEFAULT_HEAD_LIMIT as G, knownModelId as H, type IConfig as I, resolveModelShortcut as J, resolveProvider as K, toOrchestratorOptions as L, ModelCatalog as M, ORCHESTRATOR_SHORTCUTS as O, type PluginCloneFn as P, type ReadFileOpts as R, SEARCH_EXCLUSIONS as S, type ToolOutcome as T, type AllProviderModels as a, type FindSymbolOptions as b, type GlobOptions as c, type GrepOptions as d, type GrepOutputMode as e, type IFileSystem as f, type IPluginStore as g, type ITerminalRunner as h, type ITerminalSession as i, type ModelShortcut as j, type OrchestratorOption as k, type PluginEntry as l, type PluginFeatures as m, type PluginMode as n, type PluginModelDiscovery as o, type PluginRunnerDef as p, type ProviderCredentialSource as q, type ProviderModelLists as r, type ProviderModelsResult as s, type ResolveContext as t, type RunnerInvocation as u, type RunnerPluginManifest as v, RunnerRegistry as w, collectProviderCredentials as x, enabledRunners as y, fetchAllProviderModels as z };
|
|
@@ -285,6 +285,18 @@ interface PluginRunnerDef {
|
|
|
285
285
|
* see `RunnerInvocation.submitPromptKey`.
|
|
286
286
|
*/
|
|
287
287
|
submitPromptKey?: boolean;
|
|
288
|
+
/**
|
|
289
|
+
* Screens the agent can stop on before starting the task, waiting for a
|
|
290
|
+
* human — a folder-trust or permission-mode confirmation. Ordewell never
|
|
291
|
+
* answers one; seeing it, the task's user is told where to.
|
|
292
|
+
*/
|
|
293
|
+
blockingPrompts?: BlockingPrompt[];
|
|
294
|
+
}
|
|
295
|
+
interface BlockingPrompt {
|
|
296
|
+
/** Text the prompt shows; matched ignoring case and whitespace. */
|
|
297
|
+
phrase: string;
|
|
298
|
+
/** Completes "<runner> is asking …", e.g. "whether to trust this folder". */
|
|
299
|
+
asks: string;
|
|
288
300
|
}
|
|
289
301
|
interface PluginFeatures {
|
|
290
302
|
modelSelection: boolean;
|
|
@@ -535,10 +547,15 @@ interface ITerminalRunner {
|
|
|
535
547
|
* this to keep two plans' identically named tasks apart.
|
|
536
548
|
*/
|
|
537
549
|
planSessionId?: string;
|
|
550
|
+
/**
|
|
551
|
+
* The workspace's own variables (ADR-0016), under the runner's: a
|
|
552
|
+
* manifest's env still wins over them.
|
|
553
|
+
*/
|
|
554
|
+
env?: Record<string, string>;
|
|
538
555
|
}): Promise<ITerminalSession>;
|
|
539
556
|
stop(sessionId: string): void;
|
|
540
557
|
stopAll(): void;
|
|
541
558
|
activeCount: number;
|
|
542
559
|
}
|
|
543
560
|
|
|
544
|
-
export { type AiProvider as A,
|
|
561
|
+
export { type AiProvider as A, type BlockingPrompt as B, type CatalogModel as C, type DiscoveryCommand as D, isReservedRunnerName as E, type FetchAllProviderModelsOptions as F, GREP_DEFAULT_HEAD_LIMIT as G, knownModelId as H, type IConfig as I, resolveModelShortcut as J, resolveProvider as K, toOrchestratorOptions as L, ModelCatalog as M, ORCHESTRATOR_SHORTCUTS as O, type PluginCloneFn as P, type ReadFileOpts as R, SEARCH_EXCLUSIONS as S, type ToolOutcome as T, type AllProviderModels as a, type FindSymbolOptions as b, type GlobOptions as c, type GrepOptions as d, type GrepOutputMode as e, type IFileSystem as f, type IPluginStore as g, type ITerminalRunner as h, type ITerminalSession as i, type ModelShortcut as j, type OrchestratorOption as k, type PluginEntry as l, type PluginFeatures as m, type PluginMode as n, type PluginModelDiscovery as o, type PluginRunnerDef as p, type ProviderCredentialSource as q, type ProviderModelLists as r, type ProviderModelsResult as s, type ResolveContext as t, type RunnerInvocation as u, type RunnerPluginManifest as v, RunnerRegistry as w, collectProviderCredentials as x, enabledRunners as y, fetchAllProviderModels as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { F as RunnerId, u as PlanStatus, L as LegacyPlanState, k as IsolationMergeResult, g as IsolationLandedTask, I as IWorktreeIsolation, w as RepoGroupLayout, a as DiscoveredModel, T as Task, y as ResearchProgress, x as ResearchLogEntry, C as ConversationMessage, V as TaskSnapshot, d as IsolationHandoff, J as TaskIsolation, r as IsolationView, P as PlanIsolation, Q as QueuedMessage, A as ActiveTaskSession, E as ResearchToolType, t as PlanState, a3 as Verdict } from './Task-BxQkPlXO.mjs';
|
|
2
2
|
export { D as DiscoveredMode, b as IntegrationDisposal, c as IsolationAvailability, e as IsolationHandoffRepo, f as IsolationInactiveReason, h as IsolationLanding, i as IsolationMergeBlock, j as IsolationMergeBlockReason, l as IsolationOutcome, m as IsolationRepo, n as IsolationRun, o as IsolationTaskRecord, p as IsolationTaskRepo, q as IsolationTaskStatus, M as Message, s as PlanModificationWarnings, v as PreparedTask, R as RepairEvidence, z as ResearchStep, B as ResearchStepOutcome, S as StreamEvent, G as StreamStepEvent, H as StreamThinkingEvent, K as TaskIsolationState, N as TaskMode, O as TaskModelAssignment, U as TaskOutputSummary, W as TaskStatus, X as TaskType, Y as TaskWithParent, Z as ThinkingBlock, _ as UserPromptEntry, $ as UserStep, a0 as ValidationCheck, a1 as ValidationContext, a2 as ValidationResult, a4 as VerificationCheck, a5 as addTaskToPlan, a6 as createEmptyPlan, a7 as createTask, a8 as emptyWarnings, a9 as flattenTasks, aa as flattenTasksWithParents, ab as migrateLegacyPlan, ac as migratePlanState, ad as migrateTask, ae as removeTaskFromPlan, af as renumberTasks, ag as updateTaskInPlan, ah as validateModifiedPlan, ai as warningsText } from './Task-BxQkPlXO.mjs';
|
|
3
|
-
import { f as IFileSystem, R as ReadFileOpts, T as ToolOutcome, d as GrepOptions, c as GlobOptions, b as FindSymbolOptions, I as IConfig, A as AiProvider, r as ProviderModelLists, i as ITerminalSession, h as ITerminalRunner, w as RunnerRegistry, k as OrchestratorOption, u as RunnerInvocation, g as IPluginStore, v as RunnerPluginManifest, t as ResolveContext } from './ITerminalRunner-
|
|
4
|
-
export { a as AllProviderModels, C as CatalogModel, D as DiscoveryCommand, F as FetchAllProviderModelsOptions, G as GREP_DEFAULT_HEAD_LIMIT, e as GrepOutputMode, M as ModelCatalog, j as ModelShortcut, O as ORCHESTRATOR_SHORTCUTS, P as PluginCloneFn, l as PluginEntry, m as PluginFeatures, n as PluginMode, o as PluginModelDiscovery, p as PluginRunnerDef, q as ProviderCredentialSource, s as ProviderModelsResult, S as SEARCH_EXCLUSIONS, x as collectProviderCredentials, y as enabledRunners, z as fetchAllProviderModels,
|
|
3
|
+
import { f as IFileSystem, R as ReadFileOpts, T as ToolOutcome, d as GrepOptions, c as GlobOptions, b as FindSymbolOptions, I as IConfig, A as AiProvider, r as ProviderModelLists, i as ITerminalSession, h as ITerminalRunner, w as RunnerRegistry, k as OrchestratorOption, u as RunnerInvocation, g as IPluginStore, v as RunnerPluginManifest, t as ResolveContext } from './ITerminalRunner-ByeoLF57.mjs';
|
|
4
|
+
export { a as AllProviderModels, B as BlockingPrompt, C as CatalogModel, D as DiscoveryCommand, F as FetchAllProviderModelsOptions, G as GREP_DEFAULT_HEAD_LIMIT, e as GrepOutputMode, M as ModelCatalog, j as ModelShortcut, O as ORCHESTRATOR_SHORTCUTS, P as PluginCloneFn, l as PluginEntry, m as PluginFeatures, n as PluginMode, o as PluginModelDiscovery, p as PluginRunnerDef, q as ProviderCredentialSource, s as ProviderModelsResult, S as SEARCH_EXCLUSIONS, x as collectProviderCredentials, y as enabledRunners, z as fetchAllProviderModels, E as isReservedRunnerName, H as knownModelId, J as resolveModelShortcut, K as resolveProvider, L as toOrchestratorOptions } from './ITerminalRunner-ByeoLF57.mjs';
|
|
5
5
|
import { I as IApproval, d as ApprovalRequest, a as ApprovalMode } from './ApprovalPolicy-BVhGdECT.mjs';
|
|
6
6
|
export { A as ApprovalKind, b as ApprovalPolicy, c as ApprovalPolicyOptions, e as ApprovalSource, D as DENY_ALL } from './ApprovalPolicy-BVhGdECT.mjs';
|
|
7
7
|
import { T as TaskOp, f as SessionBroadcaster, h as SessionNotice } from './plan-utils-CtB3_Ovf.mjs';
|
|
@@ -1239,6 +1239,8 @@ interface AgentProcessDeps {
|
|
|
1239
1239
|
isDirectory?: (workspace: string) => boolean;
|
|
1240
1240
|
/** True when `candidate` names an existing, spawnable file. Defaults to a real filesystem check. */
|
|
1241
1241
|
exists?: (candidate: string) => boolean;
|
|
1242
|
+
/** The workspace's own variables for a cwd (ADR-0016). Defaults to {@link resolveWorkspaceEnv}. */
|
|
1243
|
+
workspaceEnv?: (cwd: string) => Promise<Record<string, string>>;
|
|
1242
1244
|
}
|
|
1243
1245
|
/** Builds the adapter for one runner id, or null when that runner cannot plan. */
|
|
1244
1246
|
type AgentAdapterFactory = (runner: string, deps: AgentProcessDeps) => AgentAdapter | null;
|
|
@@ -1742,6 +1744,28 @@ declare class PlanStore {
|
|
|
1742
1744
|
private validateAssignedRunners;
|
|
1743
1745
|
}
|
|
1744
1746
|
|
|
1747
|
+
/**
|
|
1748
|
+
* The variables one workspace's planner and agents run with, on top of the
|
|
1749
|
+
* daemon's own environment (ADR-0016).
|
|
1750
|
+
*
|
|
1751
|
+
* The daemon and the VS Code host inherit whatever environment they were
|
|
1752
|
+
* started from, once. Started anywhere but the project's shell — a desktop
|
|
1753
|
+
* launcher, another directory, a daemon already up for another project — they
|
|
1754
|
+
* miss what the project sets for itself, like a `CLAUDE_CONFIG_DIR` choosing
|
|
1755
|
+
* the account the agents run under. So each spawn asks for it by its own cwd:
|
|
1756
|
+
* a task worktree lives under the workspace, so walking up finds the same
|
|
1757
|
+
* `.envrc` and `.ordewell/env` the workspace root does.
|
|
1758
|
+
*/
|
|
1759
|
+
interface WorkspaceEnv {
|
|
1760
|
+
env: Record<string, string>;
|
|
1761
|
+
/** An `.envrc` direnv refuses to load until the user allows it. */
|
|
1762
|
+
blockedEnvrc: string | null;
|
|
1763
|
+
/** Keys dropped because they would change how processes load or where Ordewell's own settings live. */
|
|
1764
|
+
refused: string[];
|
|
1765
|
+
/** An `.ordewell/env` ignored because git tracks it — a cloned repository must not choose these. */
|
|
1766
|
+
trackedEnvFile: string | null;
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1745
1769
|
/**
|
|
1746
1770
|
* The one notification channel out of the orchestrator. Everything that used
|
|
1747
1771
|
* to travel over separate callbacks (onRefresh, onQueueReady) is an observer
|
|
@@ -1820,6 +1844,25 @@ declare class TaskOrchestrator {
|
|
|
1820
1844
|
private reviewApproved;
|
|
1821
1845
|
private retryCounts;
|
|
1822
1846
|
private spawnCounts;
|
|
1847
|
+
/**
|
|
1848
|
+
* The terminal a verdict left open, by task. It stays so the user can read
|
|
1849
|
+
* the agent's output or keep talking to it — but only while its worktree
|
|
1850
|
+
* does: once that is removed the agent sits in a deleted directory, and a
|
|
1851
|
+
* newer attempt in the same worktree would share it with a second agent.
|
|
1852
|
+
* Without this, every task of every run left one agent process running
|
|
1853
|
+
* until the daemon stopped.
|
|
1854
|
+
*/
|
|
1855
|
+
private lingering;
|
|
1856
|
+
/**
|
|
1857
|
+
* A full-plan run a failure paused. Retrying the failed task is the explicit
|
|
1858
|
+
* resume the pause waits for — without this a retry only reset the task to
|
|
1859
|
+
* pending and nothing ran until the user also re-ran the whole plan.
|
|
1860
|
+
*/
|
|
1861
|
+
private haltedByFailure;
|
|
1862
|
+
/** The workspace's own variables for a task's cwd (ADR-0016); swapped out in tests. */
|
|
1863
|
+
private workspaceEnv;
|
|
1864
|
+
/** What the workspace env has already warned about, so a run says it once, not per task. */
|
|
1865
|
+
private envWarnings;
|
|
1823
1866
|
/**
|
|
1824
1867
|
* Tasks pulled out of auto-scheduling (user-cancelled or failed to spawn).
|
|
1825
1868
|
* They stay 'pending' — "not executed" — but the scheduler skips them until
|
|
@@ -1856,6 +1899,13 @@ declare class TaskOrchestrator {
|
|
|
1856
1899
|
getLiveOutput(taskId: string, opts: LiveTailOptions): LiveTail | null;
|
|
1857
1900
|
get storeInstance(): PlanStore;
|
|
1858
1901
|
setWorkspaceRoot(fn: () => string): void;
|
|
1902
|
+
setWorkspaceEnvResolver(resolve: (cwd: string) => Promise<WorkspaceEnv>): void;
|
|
1903
|
+
/**
|
|
1904
|
+
* The variables a task's agent gets from its workspace. What cannot be
|
|
1905
|
+
* applied is said once — silently starting without them is how agents ran
|
|
1906
|
+
* under the wrong account when an edited `.envrc` was left unallowed.
|
|
1907
|
+
*/
|
|
1908
|
+
private envForTask;
|
|
1859
1909
|
setRegistry(registry: RunnerRegistry): void;
|
|
1860
1910
|
/**
|
|
1861
1911
|
* A getter rather than a value where the caller has one: every task gets its
|
|
@@ -1917,6 +1967,9 @@ declare class TaskOrchestrator {
|
|
|
1917
1967
|
cleanupRun(): Promise<void>;
|
|
1918
1968
|
/** The run and everything it made go, and the plan forgets it; the next run starts afresh. */
|
|
1919
1969
|
discardRun(): Promise<void>;
|
|
1970
|
+
private watchBlockingPrompts;
|
|
1971
|
+
private closeLingering;
|
|
1972
|
+
private closeLingeringOf;
|
|
1920
1973
|
private forgetRun;
|
|
1921
1974
|
private requireRun;
|
|
1922
1975
|
/** What the plan persists of isolated execution; null when no run ever isolated. */
|
|
@@ -1940,6 +1993,7 @@ declare class TaskOrchestrator {
|
|
|
1940
1993
|
*/
|
|
1941
1994
|
reconcilePlan(newTasks: Task[], planRunners?: RunnerId[]): void;
|
|
1942
1995
|
start(): Promise<void>;
|
|
1996
|
+
private haltOnFailure;
|
|
1943
1997
|
stop(): void;
|
|
1944
1998
|
onUserTaskComplete(taskId: string): Promise<void>;
|
|
1945
1999
|
private onVerdict;
|
|
@@ -3091,6 +3145,8 @@ declare class Session {
|
|
|
3091
3145
|
approveReview(): Promise<LegacyPlanState>;
|
|
3092
3146
|
forceStartTask(taskId: string): Promise<void>;
|
|
3093
3147
|
runTask(taskId: string): Promise<void>;
|
|
3148
|
+
/** Start whatever the scheduler can now fit — after the parallel limit was raised mid-run, say. */
|
|
3149
|
+
reschedule(): Promise<void>;
|
|
3094
3150
|
retryTask(taskId: string): Promise<void>;
|
|
3095
3151
|
cancelTask(taskId: string): Promise<void>;
|
|
3096
3152
|
markAiTaskComplete(taskId: string): Promise<void>;
|
|
@@ -3383,8 +3439,10 @@ declare class BufferedTaskOutputSource implements TaskOutputSource {
|
|
|
3383
3439
|
*/
|
|
3384
3440
|
declare class HomeTranscriptReader implements TranscriptReader {
|
|
3385
3441
|
private readonly home;
|
|
3442
|
+
private readonly claudeConfigDirs;
|
|
3386
3443
|
constructor(opts?: {
|
|
3387
3444
|
homeDir?: string;
|
|
3445
|
+
workspaceEnv?: (cwd: string) => Promise<Record<string, string>>;
|
|
3388
3446
|
});
|
|
3389
3447
|
finalAssistantText(query: TranscriptQuery, maxChars?: number): Promise<string | null>;
|
|
3390
3448
|
}
|
|
@@ -3807,6 +3865,7 @@ declare class TmuxRunner extends AbstractRunner<TmuxSession> {
|
|
|
3807
3865
|
cwd: string;
|
|
3808
3866
|
registry?: RunnerRegistry;
|
|
3809
3867
|
planSessionId?: string;
|
|
3868
|
+
env?: Record<string, string>;
|
|
3810
3869
|
}): Promise<ITerminalSession>;
|
|
3811
3870
|
}
|
|
3812
3871
|
|
|
@@ -4187,4 +4246,14 @@ declare class PlannerModelMemory {
|
|
|
4187
4246
|
recall(provider: string, catalog: PlannerModelCandidate[]): PlannerModelRecall;
|
|
4188
4247
|
}
|
|
4189
4248
|
|
|
4190
|
-
|
|
4249
|
+
/** How many AI tasks may run at once: `ORDEWELL_MAX_PARALLEL`, `/parallel`, `ordewell.maxParallelSessions`. */
|
|
4250
|
+
declare const DEFAULT_MAX_PARALLEL = 3;
|
|
4251
|
+
/**
|
|
4252
|
+
* A usable limit from what a user typed or a setting holds: any whole number
|
|
4253
|
+
* of at least 1 — there is no ceiling, the machine and the runners' own rate
|
|
4254
|
+
* limits are the user's to judge. Anything else is null, so each surface can
|
|
4255
|
+
* refuse it in its own words.
|
|
4256
|
+
*/
|
|
4257
|
+
declare function parseMaxParallel(value: unknown): number | null;
|
|
4258
|
+
|
|
4259
|
+
export { ALLOWED_PLUGIN_HOSTS, ALL_PROVIDERS, AUTO_COMMANDS, AbstractRunner, AbstractTerminalSession, ActiveTaskSession, type AgentAdapter, type AgentAdapterFactory, type AgentEvent, type AgentProcessDeps, type AgentStartOptions, AiProvider, ApprovalMode, ApprovalRequest, BUILTIN_SKILL_NAMES, BaseAiService, BaseConfig, BaseFileSystem, BufferedTaskOutputSource, CLAUDE_CODE_MANIFEST, CLI_PROVIDERS, CMD_EXE_MAX_COMMAND_LINE, CORE_PLANNER_PROMPT, type CappedRows, type CheckpointListener, ClaudeCodeAdapter, CliAgentAiService, type CliAgentAiServiceDeps, CodexAdapter, type CommandClassification, CommandLineTooLongError, type CommandTier, type ComposeOptions, ConsoleLogger, ContextCollector, ConversationBusyError, type ConversationCompaction, ConversationEditError, type ConversationFork, ConversationMessage, type ConversationRequest, type ConversationRewind, type ConversationTurn, type ConversationVariant, DAEMON_SUBPROTOCOL, DAEMON_TOKEN_SUBPROTOCOL_PREFIX, DEFAULT_MAX_PARALLEL, DiscoveredModel, EmbeddedNewlineError, type EnvAdmission, EnvConfig, type ExecFileFn, type ExecImpl, ExecutableNotFoundError, FindSymbolOptions, FsPluginStore, GIT_READONLY_SUBCOMMANDS, GeminiService, type GitExecFn, GlobOptions, type GrepInvocation, GrepOptions, type HasBinFn, HeadlessRunner, type HeadlessRunnerDeps, HeadlessSession, HomeTranscriptReader, type IAiService, IApproval, IConfig, IFileSystem, type ILogger, type INotification, IPluginStore, ITerminalRunner, ITerminalSession, IWorktreeIsolation, IsolationHandoff, IsolationLandedTask, IsolationMergeResult, IsolationView, JSON_REPAIR_INSTRUCTION, type KillTreeDeps, type LaunchDeps, type LaunchPlan, LegacyPlanState, LineBuffer, type LiveOutputLookup, type LiveTail, type LiveTailOptions, type MappedTool, ModelResolver, type ModelResolverDeps, type ModifyPlanRequest, type NotificationAction, OPENCODE_MANIFEST, ORDEWELL_SETTABLE_ENV, OUTPUT_LINES_DEFAULT, OUTPUT_LINES_MAX, OpenAiService, OpenCodeAdapter, type OrchestratorObserver, OrchestratorOption, PLUGIN_NAME_PATTERN, PROVIDER_CREDENTIAL_ENV, PROVIDER_DETECT_PRIORITY, PROVIDER_LABEL, PROVIDER_PRIORITY, PROVIDER_SHORT_LABEL, type PendingApproval, PendingApprovals, type PendingApprovalsOptions, PlanEditError, PlanIsolation, PlanParseError, type PlanRequest, PlanState, PlanStatus, PlanStore, Planner, type PlannerModelCandidate, type PlannerModelChoice, PlannerModelMemory, type PlannerModelRecall, type PlannerModelStore, type PlannerReplyClassification, type PlannerRuntimeToggles, type PluginSource, type PrdBlock, type PreparedLaunch, type PriorOutput, type ProbeFn, ProviderModelLists, type ProviderRegistration, type PtySize, type PtyWrapOptions, QueuedMessage, REFUSED_COMMANDS, ReadFileOpts, type RepairLoopOpts, type RepairVerdict, RepoGroupLayout, type ResearchChat, ResearchLogEntry, ResearchProgress, type ResearchShell, type ResearchShellDeps, ResearchToolType, type ResearchTurn, ResolveContext, type RewindTarget, type RunnerCatalog, RunnerId, RunnerInstallation, RunnerInvocation, type RunnerMode, RunnerModeInfo, RunnerPluginManifest, RunnerRegistry, type RunnerSpawnOptions, SETTINGS_ENV_ALLOWLIST, SETTINGS_ENV_REFUSED, STATE_DIR, STOPPED_TOOL_RESULT, SYMBOL_LANGUAGES, Session, SessionBroadcaster, type SessionData, type SessionDeps, type SessionMeta, SessionNotice, type SessionPlanner, type SessionRuntimeSettings, SettingsService, type ShellDialect, type SkillInfo, type SkillMetadata, SkillsService, type SpawnSpec, StdioAgentAdapter, TASK_QUERY_ANSWER_MAX_CHARS, TASK_QUERY_ANSWER_OR_OPS, TASK_QUERY_FIELDS, TASK_QUERY_PROTOCOL, TASK_QUERY_REMINDER, TRUNCATED_PLAN_REPAIR_INSTRUCTION, Task, type TaskAttemptSnapshot, TaskIsolation, TaskOp, TaskOrchestrator, type TaskOutputAttempt, type TaskOutputSource, type TaskQuery, type TaskQueryCatalog, type TaskQueryField, TaskSnapshot, TmuxRunner, type TmuxRunnerDeps, type TokenCarriers, type ToolCall, ToolOutcome, type ToolResult, type TranscriptQuery, type TranscriptReader, type UserSettings, Verdict, VerdictEngine, type VerdictListener, WINDOWS_MAX_COMMAND_LINE, type WorkspaceCheckDeps, WorkspaceNotAProjectError, WorkspaceNotFoundError, type WorkspaceProjectCheckDeps, type WorktreeIsolationDeps, admitSettingsEnv, applyHeadLimit, assertInstallablePluginUrl, assertPlainPluginName, assertWorkspaceExists, assertWorkspaceIsProject, augmentPromptWithPriorOutputs, augmentedPath, bearerHeaderValue, buildConflictRepairPrompt, buildConflictResolutionPrompt, buildConversationSystemPrompt, buildFallbackGrepArgs, buildGlobArgs, buildGrepArgs, buildMergePrompt, buildModifyDuringExecutionPrompt, buildModifyPlanPrompt, buildPlanWithResults, buildResearchPrompt, buildResearchToolsPrompt, buildRunnerInvocation, buildShellInvocation, buildSplitPrompt, buildSubagentSystemPrompt, clampThinkingEffort, classifyCommand, classifyPlannerReply, classifyPluginSource, clearAugmentedPathCache, clearDaemonToken, clearResearchShellCache, clearState, clipboardCopyCommand, coerceAssignments, collectDirectDependencyOutputs, composeAugmentedPrompt, configuredProviders, createAiService, createSkillsService, createWorktreeIsolation, daemonTokenPath, defaultLogger, definitionPattern, deleteSession, describeMergeResult, discoverGeminiModels, effectiveAllowlist, ensureDir, ensureStateDirIgnored, executionLogBlock, extractPrdBlock, extractPresentedToken, filterFallbackByAnchoredInclude, filterModelsForPrompt, formatSearchOutput, generatePlanWithRepair, getLatestSession, getProviderMeta, getSettingsPath, getStateDir, globalDataDir, grantScopeFor, hasTmux, includeGlobFor, isCliProvider, isExecutableResolved, isOpenAiProvider, isPlainPluginName, isValidManifest, killTree, languageForId, listSessions, loadSession, loadSessionPlanState, loadState, mapAgentTool, migrateOldConfigDir, mintDaemonToken, mintSessionId, modelContextBlock, modifyValidationFeedback, normalizeAgentArgs, normalizeGeminiModel, parseMaxParallel, parseTaskQueryJson, pendingEditRulesBlock, planDirectLaunch, planShellLaunch, posixShellQuote, prefixModelId, providerForRunner, reEmitPlanPrompt, reEmitTaskOpsPrompt, reEmitTaskQueryPrompt, readDaemonToken, referencePattern, renderPlanMap, renderPriorOutputs, renderTaskQueryAnswer, repairLoop, researchShellWarning, researchToolsPath, resolveArgs, resolvePluginInstallDir, resolveProviderFromPrefix, resolveResearchShell, resolveSkillInvocation, resolveWithin, retargetTaskRunner, runnerAssignment, runnerForProvider, sanitizeSlug, savePrdMarkdown, saveSession, saveState, sessionRuntimeSettings, stateExists, stripAnsi, stripModelPrefix, summarizeOutput, taskOpsRejectedPrompt, taskQuerySignature, textHasTaskQuery, tmuxSessionName, tmuxSocketName, tmuxWindowName, tokenSubprotocols, tokensMatch, truncatedPlanReEmitPrompt, wellKnownBinDirs, windowsCommandLine, withPath, wrapWithPty };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { F as RunnerId, u as PlanStatus, L as LegacyPlanState, k as IsolationMergeResult, g as IsolationLandedTask, I as IWorktreeIsolation, w as RepoGroupLayout, a as DiscoveredModel, T as Task, y as ResearchProgress, x as ResearchLogEntry, C as ConversationMessage, V as TaskSnapshot, d as IsolationHandoff, J as TaskIsolation, r as IsolationView, P as PlanIsolation, Q as QueuedMessage, A as ActiveTaskSession, E as ResearchToolType, t as PlanState, a3 as Verdict } from './Task-BxQkPlXO.js';
|
|
2
2
|
export { D as DiscoveredMode, b as IntegrationDisposal, c as IsolationAvailability, e as IsolationHandoffRepo, f as IsolationInactiveReason, h as IsolationLanding, i as IsolationMergeBlock, j as IsolationMergeBlockReason, l as IsolationOutcome, m as IsolationRepo, n as IsolationRun, o as IsolationTaskRecord, p as IsolationTaskRepo, q as IsolationTaskStatus, M as Message, s as PlanModificationWarnings, v as PreparedTask, R as RepairEvidence, z as ResearchStep, B as ResearchStepOutcome, S as StreamEvent, G as StreamStepEvent, H as StreamThinkingEvent, K as TaskIsolationState, N as TaskMode, O as TaskModelAssignment, U as TaskOutputSummary, W as TaskStatus, X as TaskType, Y as TaskWithParent, Z as ThinkingBlock, _ as UserPromptEntry, $ as UserStep, a0 as ValidationCheck, a1 as ValidationContext, a2 as ValidationResult, a4 as VerificationCheck, a5 as addTaskToPlan, a6 as createEmptyPlan, a7 as createTask, a8 as emptyWarnings, a9 as flattenTasks, aa as flattenTasksWithParents, ab as migrateLegacyPlan, ac as migratePlanState, ad as migrateTask, ae as removeTaskFromPlan, af as renumberTasks, ag as updateTaskInPlan, ah as validateModifiedPlan, ai as warningsText } from './Task-BxQkPlXO.js';
|
|
3
|
-
import { f as IFileSystem, R as ReadFileOpts, T as ToolOutcome, d as GrepOptions, c as GlobOptions, b as FindSymbolOptions, I as IConfig, A as AiProvider, r as ProviderModelLists, i as ITerminalSession, h as ITerminalRunner, w as RunnerRegistry, k as OrchestratorOption, u as RunnerInvocation, g as IPluginStore, v as RunnerPluginManifest, t as ResolveContext } from './ITerminalRunner-
|
|
4
|
-
export { a as AllProviderModels, C as CatalogModel, D as DiscoveryCommand, F as FetchAllProviderModelsOptions, G as GREP_DEFAULT_HEAD_LIMIT, e as GrepOutputMode, M as ModelCatalog, j as ModelShortcut, O as ORCHESTRATOR_SHORTCUTS, P as PluginCloneFn, l as PluginEntry, m as PluginFeatures, n as PluginMode, o as PluginModelDiscovery, p as PluginRunnerDef, q as ProviderCredentialSource, s as ProviderModelsResult, S as SEARCH_EXCLUSIONS, x as collectProviderCredentials, y as enabledRunners, z as fetchAllProviderModels,
|
|
3
|
+
import { f as IFileSystem, R as ReadFileOpts, T as ToolOutcome, d as GrepOptions, c as GlobOptions, b as FindSymbolOptions, I as IConfig, A as AiProvider, r as ProviderModelLists, i as ITerminalSession, h as ITerminalRunner, w as RunnerRegistry, k as OrchestratorOption, u as RunnerInvocation, g as IPluginStore, v as RunnerPluginManifest, t as ResolveContext } from './ITerminalRunner-Bd-vAJnw.js';
|
|
4
|
+
export { a as AllProviderModels, B as BlockingPrompt, C as CatalogModel, D as DiscoveryCommand, F as FetchAllProviderModelsOptions, G as GREP_DEFAULT_HEAD_LIMIT, e as GrepOutputMode, M as ModelCatalog, j as ModelShortcut, O as ORCHESTRATOR_SHORTCUTS, P as PluginCloneFn, l as PluginEntry, m as PluginFeatures, n as PluginMode, o as PluginModelDiscovery, p as PluginRunnerDef, q as ProviderCredentialSource, s as ProviderModelsResult, S as SEARCH_EXCLUSIONS, x as collectProviderCredentials, y as enabledRunners, z as fetchAllProviderModels, E as isReservedRunnerName, H as knownModelId, J as resolveModelShortcut, K as resolveProvider, L as toOrchestratorOptions } from './ITerminalRunner-Bd-vAJnw.js';
|
|
5
5
|
import { I as IApproval, d as ApprovalRequest, a as ApprovalMode } from './ApprovalPolicy-BVhGdECT.js';
|
|
6
6
|
export { A as ApprovalKind, b as ApprovalPolicy, c as ApprovalPolicyOptions, e as ApprovalSource, D as DENY_ALL } from './ApprovalPolicy-BVhGdECT.js';
|
|
7
7
|
import { T as TaskOp, f as SessionBroadcaster, h as SessionNotice } from './plan-utils-CkNbqAmS.js';
|
|
@@ -1239,6 +1239,8 @@ interface AgentProcessDeps {
|
|
|
1239
1239
|
isDirectory?: (workspace: string) => boolean;
|
|
1240
1240
|
/** True when `candidate` names an existing, spawnable file. Defaults to a real filesystem check. */
|
|
1241
1241
|
exists?: (candidate: string) => boolean;
|
|
1242
|
+
/** The workspace's own variables for a cwd (ADR-0016). Defaults to {@link resolveWorkspaceEnv}. */
|
|
1243
|
+
workspaceEnv?: (cwd: string) => Promise<Record<string, string>>;
|
|
1242
1244
|
}
|
|
1243
1245
|
/** Builds the adapter for one runner id, or null when that runner cannot plan. */
|
|
1244
1246
|
type AgentAdapterFactory = (runner: string, deps: AgentProcessDeps) => AgentAdapter | null;
|
|
@@ -1742,6 +1744,28 @@ declare class PlanStore {
|
|
|
1742
1744
|
private validateAssignedRunners;
|
|
1743
1745
|
}
|
|
1744
1746
|
|
|
1747
|
+
/**
|
|
1748
|
+
* The variables one workspace's planner and agents run with, on top of the
|
|
1749
|
+
* daemon's own environment (ADR-0016).
|
|
1750
|
+
*
|
|
1751
|
+
* The daemon and the VS Code host inherit whatever environment they were
|
|
1752
|
+
* started from, once. Started anywhere but the project's shell — a desktop
|
|
1753
|
+
* launcher, another directory, a daemon already up for another project — they
|
|
1754
|
+
* miss what the project sets for itself, like a `CLAUDE_CONFIG_DIR` choosing
|
|
1755
|
+
* the account the agents run under. So each spawn asks for it by its own cwd:
|
|
1756
|
+
* a task worktree lives under the workspace, so walking up finds the same
|
|
1757
|
+
* `.envrc` and `.ordewell/env` the workspace root does.
|
|
1758
|
+
*/
|
|
1759
|
+
interface WorkspaceEnv {
|
|
1760
|
+
env: Record<string, string>;
|
|
1761
|
+
/** An `.envrc` direnv refuses to load until the user allows it. */
|
|
1762
|
+
blockedEnvrc: string | null;
|
|
1763
|
+
/** Keys dropped because they would change how processes load or where Ordewell's own settings live. */
|
|
1764
|
+
refused: string[];
|
|
1765
|
+
/** An `.ordewell/env` ignored because git tracks it — a cloned repository must not choose these. */
|
|
1766
|
+
trackedEnvFile: string | null;
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1745
1769
|
/**
|
|
1746
1770
|
* The one notification channel out of the orchestrator. Everything that used
|
|
1747
1771
|
* to travel over separate callbacks (onRefresh, onQueueReady) is an observer
|
|
@@ -1820,6 +1844,25 @@ declare class TaskOrchestrator {
|
|
|
1820
1844
|
private reviewApproved;
|
|
1821
1845
|
private retryCounts;
|
|
1822
1846
|
private spawnCounts;
|
|
1847
|
+
/**
|
|
1848
|
+
* The terminal a verdict left open, by task. It stays so the user can read
|
|
1849
|
+
* the agent's output or keep talking to it — but only while its worktree
|
|
1850
|
+
* does: once that is removed the agent sits in a deleted directory, and a
|
|
1851
|
+
* newer attempt in the same worktree would share it with a second agent.
|
|
1852
|
+
* Without this, every task of every run left one agent process running
|
|
1853
|
+
* until the daemon stopped.
|
|
1854
|
+
*/
|
|
1855
|
+
private lingering;
|
|
1856
|
+
/**
|
|
1857
|
+
* A full-plan run a failure paused. Retrying the failed task is the explicit
|
|
1858
|
+
* resume the pause waits for — without this a retry only reset the task to
|
|
1859
|
+
* pending and nothing ran until the user also re-ran the whole plan.
|
|
1860
|
+
*/
|
|
1861
|
+
private haltedByFailure;
|
|
1862
|
+
/** The workspace's own variables for a task's cwd (ADR-0016); swapped out in tests. */
|
|
1863
|
+
private workspaceEnv;
|
|
1864
|
+
/** What the workspace env has already warned about, so a run says it once, not per task. */
|
|
1865
|
+
private envWarnings;
|
|
1823
1866
|
/**
|
|
1824
1867
|
* Tasks pulled out of auto-scheduling (user-cancelled or failed to spawn).
|
|
1825
1868
|
* They stay 'pending' — "not executed" — but the scheduler skips them until
|
|
@@ -1856,6 +1899,13 @@ declare class TaskOrchestrator {
|
|
|
1856
1899
|
getLiveOutput(taskId: string, opts: LiveTailOptions): LiveTail | null;
|
|
1857
1900
|
get storeInstance(): PlanStore;
|
|
1858
1901
|
setWorkspaceRoot(fn: () => string): void;
|
|
1902
|
+
setWorkspaceEnvResolver(resolve: (cwd: string) => Promise<WorkspaceEnv>): void;
|
|
1903
|
+
/**
|
|
1904
|
+
* The variables a task's agent gets from its workspace. What cannot be
|
|
1905
|
+
* applied is said once — silently starting without them is how agents ran
|
|
1906
|
+
* under the wrong account when an edited `.envrc` was left unallowed.
|
|
1907
|
+
*/
|
|
1908
|
+
private envForTask;
|
|
1859
1909
|
setRegistry(registry: RunnerRegistry): void;
|
|
1860
1910
|
/**
|
|
1861
1911
|
* A getter rather than a value where the caller has one: every task gets its
|
|
@@ -1917,6 +1967,9 @@ declare class TaskOrchestrator {
|
|
|
1917
1967
|
cleanupRun(): Promise<void>;
|
|
1918
1968
|
/** The run and everything it made go, and the plan forgets it; the next run starts afresh. */
|
|
1919
1969
|
discardRun(): Promise<void>;
|
|
1970
|
+
private watchBlockingPrompts;
|
|
1971
|
+
private closeLingering;
|
|
1972
|
+
private closeLingeringOf;
|
|
1920
1973
|
private forgetRun;
|
|
1921
1974
|
private requireRun;
|
|
1922
1975
|
/** What the plan persists of isolated execution; null when no run ever isolated. */
|
|
@@ -1940,6 +1993,7 @@ declare class TaskOrchestrator {
|
|
|
1940
1993
|
*/
|
|
1941
1994
|
reconcilePlan(newTasks: Task[], planRunners?: RunnerId[]): void;
|
|
1942
1995
|
start(): Promise<void>;
|
|
1996
|
+
private haltOnFailure;
|
|
1943
1997
|
stop(): void;
|
|
1944
1998
|
onUserTaskComplete(taskId: string): Promise<void>;
|
|
1945
1999
|
private onVerdict;
|
|
@@ -3091,6 +3145,8 @@ declare class Session {
|
|
|
3091
3145
|
approveReview(): Promise<LegacyPlanState>;
|
|
3092
3146
|
forceStartTask(taskId: string): Promise<void>;
|
|
3093
3147
|
runTask(taskId: string): Promise<void>;
|
|
3148
|
+
/** Start whatever the scheduler can now fit — after the parallel limit was raised mid-run, say. */
|
|
3149
|
+
reschedule(): Promise<void>;
|
|
3094
3150
|
retryTask(taskId: string): Promise<void>;
|
|
3095
3151
|
cancelTask(taskId: string): Promise<void>;
|
|
3096
3152
|
markAiTaskComplete(taskId: string): Promise<void>;
|
|
@@ -3383,8 +3439,10 @@ declare class BufferedTaskOutputSource implements TaskOutputSource {
|
|
|
3383
3439
|
*/
|
|
3384
3440
|
declare class HomeTranscriptReader implements TranscriptReader {
|
|
3385
3441
|
private readonly home;
|
|
3442
|
+
private readonly claudeConfigDirs;
|
|
3386
3443
|
constructor(opts?: {
|
|
3387
3444
|
homeDir?: string;
|
|
3445
|
+
workspaceEnv?: (cwd: string) => Promise<Record<string, string>>;
|
|
3388
3446
|
});
|
|
3389
3447
|
finalAssistantText(query: TranscriptQuery, maxChars?: number): Promise<string | null>;
|
|
3390
3448
|
}
|
|
@@ -3807,6 +3865,7 @@ declare class TmuxRunner extends AbstractRunner<TmuxSession> {
|
|
|
3807
3865
|
cwd: string;
|
|
3808
3866
|
registry?: RunnerRegistry;
|
|
3809
3867
|
planSessionId?: string;
|
|
3868
|
+
env?: Record<string, string>;
|
|
3810
3869
|
}): Promise<ITerminalSession>;
|
|
3811
3870
|
}
|
|
3812
3871
|
|
|
@@ -4187,4 +4246,14 @@ declare class PlannerModelMemory {
|
|
|
4187
4246
|
recall(provider: string, catalog: PlannerModelCandidate[]): PlannerModelRecall;
|
|
4188
4247
|
}
|
|
4189
4248
|
|
|
4190
|
-
|
|
4249
|
+
/** How many AI tasks may run at once: `ORDEWELL_MAX_PARALLEL`, `/parallel`, `ordewell.maxParallelSessions`. */
|
|
4250
|
+
declare const DEFAULT_MAX_PARALLEL = 3;
|
|
4251
|
+
/**
|
|
4252
|
+
* A usable limit from what a user typed or a setting holds: any whole number
|
|
4253
|
+
* of at least 1 — there is no ceiling, the machine and the runners' own rate
|
|
4254
|
+
* limits are the user's to judge. Anything else is null, so each surface can
|
|
4255
|
+
* refuse it in its own words.
|
|
4256
|
+
*/
|
|
4257
|
+
declare function parseMaxParallel(value: unknown): number | null;
|
|
4258
|
+
|
|
4259
|
+
export { ALLOWED_PLUGIN_HOSTS, ALL_PROVIDERS, AUTO_COMMANDS, AbstractRunner, AbstractTerminalSession, ActiveTaskSession, type AgentAdapter, type AgentAdapterFactory, type AgentEvent, type AgentProcessDeps, type AgentStartOptions, AiProvider, ApprovalMode, ApprovalRequest, BUILTIN_SKILL_NAMES, BaseAiService, BaseConfig, BaseFileSystem, BufferedTaskOutputSource, CLAUDE_CODE_MANIFEST, CLI_PROVIDERS, CMD_EXE_MAX_COMMAND_LINE, CORE_PLANNER_PROMPT, type CappedRows, type CheckpointListener, ClaudeCodeAdapter, CliAgentAiService, type CliAgentAiServiceDeps, CodexAdapter, type CommandClassification, CommandLineTooLongError, type CommandTier, type ComposeOptions, ConsoleLogger, ContextCollector, ConversationBusyError, type ConversationCompaction, ConversationEditError, type ConversationFork, ConversationMessage, type ConversationRequest, type ConversationRewind, type ConversationTurn, type ConversationVariant, DAEMON_SUBPROTOCOL, DAEMON_TOKEN_SUBPROTOCOL_PREFIX, DEFAULT_MAX_PARALLEL, DiscoveredModel, EmbeddedNewlineError, type EnvAdmission, EnvConfig, type ExecFileFn, type ExecImpl, ExecutableNotFoundError, FindSymbolOptions, FsPluginStore, GIT_READONLY_SUBCOMMANDS, GeminiService, type GitExecFn, GlobOptions, type GrepInvocation, GrepOptions, type HasBinFn, HeadlessRunner, type HeadlessRunnerDeps, HeadlessSession, HomeTranscriptReader, type IAiService, IApproval, IConfig, IFileSystem, type ILogger, type INotification, IPluginStore, ITerminalRunner, ITerminalSession, IWorktreeIsolation, IsolationHandoff, IsolationLandedTask, IsolationMergeResult, IsolationView, JSON_REPAIR_INSTRUCTION, type KillTreeDeps, type LaunchDeps, type LaunchPlan, LegacyPlanState, LineBuffer, type LiveOutputLookup, type LiveTail, type LiveTailOptions, type MappedTool, ModelResolver, type ModelResolverDeps, type ModifyPlanRequest, type NotificationAction, OPENCODE_MANIFEST, ORDEWELL_SETTABLE_ENV, OUTPUT_LINES_DEFAULT, OUTPUT_LINES_MAX, OpenAiService, OpenCodeAdapter, type OrchestratorObserver, OrchestratorOption, PLUGIN_NAME_PATTERN, PROVIDER_CREDENTIAL_ENV, PROVIDER_DETECT_PRIORITY, PROVIDER_LABEL, PROVIDER_PRIORITY, PROVIDER_SHORT_LABEL, type PendingApproval, PendingApprovals, type PendingApprovalsOptions, PlanEditError, PlanIsolation, PlanParseError, type PlanRequest, PlanState, PlanStatus, PlanStore, Planner, type PlannerModelCandidate, type PlannerModelChoice, PlannerModelMemory, type PlannerModelRecall, type PlannerModelStore, type PlannerReplyClassification, type PlannerRuntimeToggles, type PluginSource, type PrdBlock, type PreparedLaunch, type PriorOutput, type ProbeFn, ProviderModelLists, type ProviderRegistration, type PtySize, type PtyWrapOptions, QueuedMessage, REFUSED_COMMANDS, ReadFileOpts, type RepairLoopOpts, type RepairVerdict, RepoGroupLayout, type ResearchChat, ResearchLogEntry, ResearchProgress, type ResearchShell, type ResearchShellDeps, ResearchToolType, type ResearchTurn, ResolveContext, type RewindTarget, type RunnerCatalog, RunnerId, RunnerInstallation, RunnerInvocation, type RunnerMode, RunnerModeInfo, RunnerPluginManifest, RunnerRegistry, type RunnerSpawnOptions, SETTINGS_ENV_ALLOWLIST, SETTINGS_ENV_REFUSED, STATE_DIR, STOPPED_TOOL_RESULT, SYMBOL_LANGUAGES, Session, SessionBroadcaster, type SessionData, type SessionDeps, type SessionMeta, SessionNotice, type SessionPlanner, type SessionRuntimeSettings, SettingsService, type ShellDialect, type SkillInfo, type SkillMetadata, SkillsService, type SpawnSpec, StdioAgentAdapter, TASK_QUERY_ANSWER_MAX_CHARS, TASK_QUERY_ANSWER_OR_OPS, TASK_QUERY_FIELDS, TASK_QUERY_PROTOCOL, TASK_QUERY_REMINDER, TRUNCATED_PLAN_REPAIR_INSTRUCTION, Task, type TaskAttemptSnapshot, TaskIsolation, TaskOp, TaskOrchestrator, type TaskOutputAttempt, type TaskOutputSource, type TaskQuery, type TaskQueryCatalog, type TaskQueryField, TaskSnapshot, TmuxRunner, type TmuxRunnerDeps, type TokenCarriers, type ToolCall, ToolOutcome, type ToolResult, type TranscriptQuery, type TranscriptReader, type UserSettings, Verdict, VerdictEngine, type VerdictListener, WINDOWS_MAX_COMMAND_LINE, type WorkspaceCheckDeps, WorkspaceNotAProjectError, WorkspaceNotFoundError, type WorkspaceProjectCheckDeps, type WorktreeIsolationDeps, admitSettingsEnv, applyHeadLimit, assertInstallablePluginUrl, assertPlainPluginName, assertWorkspaceExists, assertWorkspaceIsProject, augmentPromptWithPriorOutputs, augmentedPath, bearerHeaderValue, buildConflictRepairPrompt, buildConflictResolutionPrompt, buildConversationSystemPrompt, buildFallbackGrepArgs, buildGlobArgs, buildGrepArgs, buildMergePrompt, buildModifyDuringExecutionPrompt, buildModifyPlanPrompt, buildPlanWithResults, buildResearchPrompt, buildResearchToolsPrompt, buildRunnerInvocation, buildShellInvocation, buildSplitPrompt, buildSubagentSystemPrompt, clampThinkingEffort, classifyCommand, classifyPlannerReply, classifyPluginSource, clearAugmentedPathCache, clearDaemonToken, clearResearchShellCache, clearState, clipboardCopyCommand, coerceAssignments, collectDirectDependencyOutputs, composeAugmentedPrompt, configuredProviders, createAiService, createSkillsService, createWorktreeIsolation, daemonTokenPath, defaultLogger, definitionPattern, deleteSession, describeMergeResult, discoverGeminiModels, effectiveAllowlist, ensureDir, ensureStateDirIgnored, executionLogBlock, extractPrdBlock, extractPresentedToken, filterFallbackByAnchoredInclude, filterModelsForPrompt, formatSearchOutput, generatePlanWithRepair, getLatestSession, getProviderMeta, getSettingsPath, getStateDir, globalDataDir, grantScopeFor, hasTmux, includeGlobFor, isCliProvider, isExecutableResolved, isOpenAiProvider, isPlainPluginName, isValidManifest, killTree, languageForId, listSessions, loadSession, loadSessionPlanState, loadState, mapAgentTool, migrateOldConfigDir, mintDaemonToken, mintSessionId, modelContextBlock, modifyValidationFeedback, normalizeAgentArgs, normalizeGeminiModel, parseMaxParallel, parseTaskQueryJson, pendingEditRulesBlock, planDirectLaunch, planShellLaunch, posixShellQuote, prefixModelId, providerForRunner, reEmitPlanPrompt, reEmitTaskOpsPrompt, reEmitTaskQueryPrompt, readDaemonToken, referencePattern, renderPlanMap, renderPriorOutputs, renderTaskQueryAnswer, repairLoop, researchShellWarning, researchToolsPath, resolveArgs, resolvePluginInstallDir, resolveProviderFromPrefix, resolveResearchShell, resolveSkillInvocation, resolveWithin, retargetTaskRunner, runnerAssignment, runnerForProvider, sanitizeSlug, savePrdMarkdown, saveSession, saveState, sessionRuntimeSettings, stateExists, stripAnsi, stripModelPrefix, summarizeOutput, taskOpsRejectedPrompt, taskQuerySignature, textHasTaskQuery, tmuxSessionName, tmuxSocketName, tmuxWindowName, tokenSubprotocols, tokensMatch, truncatedPlanReEmitPrompt, wellKnownBinDirs, windowsCommandLine, withPath, wrapWithPty };
|