@ordewell/core 0.10.0 → 0.10.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/{IFileSystem-BCJBHFwB.d.ts → IFileSystem-CyTIoiSn.d.ts} +1 -1
- package/dist/{IFileSystem-Bj6fy1cG.d.mts → IFileSystem-j0naIoAQ.d.mts} +1 -1
- package/dist/{IRunner-C7_SSpzG.d.ts → IRunner---PfQVdc.d.mts} +25 -20
- package/dist/{IRunner-hWAJC4hg.d.mts → IRunner-WwL-Bjqq.d.ts} +25 -20
- package/dist/{ModeResolver-u5ZhRC8x.d.ts → ModeResolver-CjQ7zqTN.d.mts} +1 -1
- package/dist/{ModeResolver-m1d8Cb-j.d.mts → ModeResolver-DrMU-5lw.d.ts} +1 -1
- package/dist/{Task-CxwnCJLi.d.mts → Task-AfA1m4qW.d.mts} +35 -7
- package/dist/{Task-CxwnCJLi.d.ts → Task-AfA1m4qW.d.ts} +35 -7
- package/dist/{chunk-DJAPDO6E.mjs → chunk-3LNZDBCX.mjs} +8 -7
- package/dist/chunk-3LNZDBCX.mjs.map +1 -0
- package/dist/{chunk-DNFT4SQG.mjs → chunk-4FEARWTS.mjs} +3 -3
- package/dist/{chunk-2IIRSBEQ.mjs → chunk-CIL3BQIF.mjs} +4 -2
- package/dist/chunk-CIL3BQIF.mjs.map +1 -0
- package/dist/{chunk-CH5IGWFS.mjs → chunk-UQGR3UCA.mjs} +35 -3
- package/dist/chunk-UQGR3UCA.mjs.map +1 -0
- package/dist/index.d.mts +49 -36
- package/dist/index.d.ts +49 -36
- package/dist/index.js +15816 -15877
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14846 -14941
- package/dist/index.mjs.map +1 -1
- package/dist/parsing.d.mts +2 -2
- package/dist/parsing.d.ts +2 -2
- package/dist/parsing.js +3 -2
- package/dist/parsing.js.map +1 -1
- package/dist/parsing.mjs +3 -3
- package/dist/{plan-utils-CKXdD1AD.d.mts → plan-utils-DL7yOuJs.d.mts} +39 -8
- package/dist/{plan-utils-B6yJdpgi.d.ts → plan-utils-gpeqV-Lp.d.ts} +39 -8
- package/dist/plan-utils.d.mts +4 -4
- package/dist/plan-utils.d.ts +4 -4
- package/dist/plan-utils.js +44 -0
- package/dist/plan-utils.js.map +1 -1
- package/dist/plan-utils.mjs +7 -3
- package/dist/testing.d.mts +3 -3
- package/dist/testing.d.ts +3 -3
- package/dist/testing.js.map +1 -1
- package/dist/testing.mjs +1 -1
- package/package.json +5 -1
- package/dist/chunk-2IIRSBEQ.mjs.map +0 -1
- package/dist/chunk-CH5IGWFS.mjs.map +0 -1
- package/dist/chunk-DJAPDO6E.mjs.map +0 -1
- /package/dist/{chunk-DNFT4SQG.mjs.map → chunk-4FEARWTS.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AttemptUsage, a as AwaitingReason, B as BUILTIN_SKILL_NAMES, D as DEFAULT_RUNNERS, b as DEFAULT_SUPERVISOR_RETRY_LIMIT, g as IntegrationDisposal, h as InvalidSkill, i as IsolationAvailability, j as IsolationHandoff, k as IsolationHandoffRepo, l as IsolationInactiveReason, n as IsolationLanding, o as IsolationMergeBlock, p as IsolationMergeBlockReason, r as IsolationOutcome, s as IsolationPruneResult, t as IsolationRemoval, u as IsolationRepo, v as IsolationRun, w as IsolationTaskRecord, x as IsolationTaskRef, y as IsolationTaskRepo, M as ModelUsage, N as PlanUsage, Q as
|
|
3
|
-
import { v as LiveTailOptions, L as LiveTail,
|
|
4
|
-
export { A as ACT_RISK, a as AUTORUN_RISK, c as ApprovalBlock, d as ApprovalStatus, e as AutoMergeTrigger, B as BlockingSubject, C as CHECKPOINT_TRUNCATE_LENGTH, f as CommandBlock, g as CommandStatus, h as CompactionBlock, i as ConversationInput, j as ConversationView, D as DiffRow, k as DiffRowKind, l as DiffStat, m as DisplayBlock, E as EMPTY_CONVERSATION, n as EMPTY_HOLD, o as EMPTY_RUN, p as EMPTY_TASK_LOG, r as ExecutionSummary, G as GatedConversation, w as LocalEntry, M as
|
|
5
|
-
import { I as IApproval, y as IConfig, d as AgentProcessDeps, a as AgentAdapter, _ as OrdewellMcpServer,
|
|
6
|
-
export { A as AUTO_COMMANDS, b as AgentAdapterFactory, g as AllProviderModels, h as AnswerApprovalArgs, k as ApprovalKind, l as ApprovalMode, o as ApprovalPolicyOptions, q as ApprovalSource, C as CatalogModel, s as CheckpointArgs, t as CommandClassification, u as CommandTier, v as CommandWords, D as DEFAULT_PLANNER_ALLOWLIST, w as DENY_ALL, x as DiscoveryCommand, E as EditPlanArgs, F as FetchAllProviderModelsOptions, G as GIT_READONLY_SUBCOMMANDS, H as InvokedCommand, L as LineBuffer, J as ListModelsArgs, K as ListRunnersArgs, M as LoadSkillArgs, N as McpClientConfig, O as McpCredential, P as McpTool, Q as McpToolContext, R as McpToolReply, S as MessageTaskArgs, T as ModelCatalog, U as ModelShortcut, V as ORCHESTRATOR_SHORTCUTS, W as ORDEWELL_MCP_PATH, X as ORDEWELL_MCP_SERVER_NAME, Y as OneTaskArgs, $ as OwnerOnlyFile, a0 as PLANNER_EXECUTION_TOOLS, a1 as PLANNER_TOOLS, a2 as PlannerAllowlist,
|
|
7
|
-
import { T as ToolOutcome, I as IFileSystem, R as ReadFileOpts, b as GrepOptions, a as GlobOptions, F as FindSymbolOptions } from './IFileSystem-
|
|
8
|
-
export { G as GREP_DEFAULT_HEAD_LIMIT, c as GrepOutputMode, S as SEARCH_EXCLUSIONS } from './IFileSystem-
|
|
9
|
-
import { R as RunnerModeInfo } from './ModeResolver-
|
|
10
|
-
export { a as autonomyLevelLabel, p as parseAutonomyLevel, r as runnerModesFrom } from './ModeResolver-
|
|
1
|
+
import { ae as Task, E as ExecutionActor, q as IsolationMergeResult, e as ExecutionRecord, f as GuardTrip, ad as SupervisorLevel, d as ExecutionCommandName, G as GuardTarget, a1 as RunnerId, c as DiscoveredModel, Y as ResearchProgress, X as ResearchLogEntry, C as ConversationMessage, a6 as SkillInfo, a7 as SkillLoad, ab as SkillsService, L as LegacyPlanState, K as PlanStatus, m as IsolationLandedTask, I as IWorktreeIsolation, z as IsolationTaskStatus, H as PlanIsolation, aq as UsageRecord, $ as ResearchToolType, O as PlannerUsage, am as TaskSnapshot, J as PlanState, F as IsolationView, as as Verdict, al as TaskSkillSnapshot } from './Task-AfA1m4qW.mjs';
|
|
2
|
+
export { A as AttemptUsage, a as AwaitingReason, B as BUILTIN_SKILL_NAMES, D as DEFAULT_RUNNERS, b as DEFAULT_SUPERVISOR_RETRY_LIMIT, g as IntegrationDisposal, h as InvalidSkill, i as IsolationAvailability, j as IsolationHandoff, k as IsolationHandoffRepo, l as IsolationInactiveReason, n as IsolationLanding, o as IsolationMergeBlock, p as IsolationMergeBlockReason, r as IsolationOutcome, s as IsolationPruneResult, t as IsolationRemoval, u as IsolationRepo, v as IsolationRun, w as IsolationTaskRecord, x as IsolationTaskRef, y as IsolationTaskRepo, M as ModelUsage, N as PlanUsage, Q as PrepareIntent, R as PreparedTask, S as PreservedWork, T as PreviousWork, U as RefusedRemoval, V as RepairEvidence, W as RepoGroupLayout, Z as ResearchStep, _ as ResearchStepOutcome, a0 as RunSettings, a2 as SetupFailure, a3 as ShadowedSkill, a4 as SkillAppliesTo, a5 as SkillCatalog, a8 as SkillLoadNotice, a9 as SkillMetadata, aa as SkillSource, ah as TaskIsolation, ai as TaskIsolationState, aj as TaskModelAssignment, an as TaskStatus, ao as TreeSnapshot, ap as UsageLine, ar as UsageTotals, at as VerificationCheck, au as addAttemptUsage, av as addModelUsage, aw as addPlannerUsage, ax as addUsage, ay as addUsageTotals, az as createEmptyPlan, aA as createSkillsService, aB as createTask, aC as endAttemptUsage, aD as flattenTasks, aE as flattenTasksWithParents, aF as isAwaitingReason, aG as isMeasured, aH as isSupervisorLevel, aI as isUserMessage, aJ as migratePlanState, aK as partedPromptUsage, aL as pausedOnLimit, aM as planUsage, aN as plannerContextFill, aO as rejoinPlanTree, aP as startAttemptUsage, aQ as usageLine } from './Task-AfA1m4qW.mjs';
|
|
3
|
+
import { v as LiveTailOptions, L as LiveTail, S as PlannerModes, ap as TaskOp, t as IsolatedExecution, a7 as SessionBroadcaster, b as ApplyTaskOpsResult, ac as SkillLookup, a9 as SessionNotice, q as EditCatalog, a8 as SessionMessage, R as PlanStore, aq as TaskOrchestrator, u as IsolationRunController, O as OrchestratorObserver, an as TaskLogEvent, I as INotification, s as GlobalRunSettings, $ as RunView, X as RunMergeView, at as TaskOutputSource, aK as UserSettings, ah as SurfacePlan, ai as SurfacePlanState } from './plan-utils-DL7yOuJs.mjs';
|
|
4
|
+
export { A as ACT_RISK, a as AUTORUN_RISK, c as ApprovalBlock, d as ApprovalStatus, e as AutoMergeTrigger, B as BlockingSubject, C as CHECKPOINT_TRUNCATE_LENGTH, f as CommandBlock, g as CommandStatus, h as CompactionBlock, i as ConversationInput, j as ConversationView, D as DiffRow, k as DiffRowKind, l as DiffStat, m as DisplayBlock, E as EMPTY_CONVERSATION, n as EMPTY_HOLD, o as EMPTY_RUN, p as EMPTY_TASK_LOG, r as ExecutionSummary, G as GatedConversation, w as LocalEntry, M as MarkdownToken, x as MessageBlock, y as MessageRole, N as NOT_STARTED, z as NO_TURN, F as NewTaskFields, H as NotificationAction, J as OutputPreview, P as PlanBlock, K as PlanMarkerStatus, Q as PlanSnapshot, T as PromptHold, U as RUN_SETTINGS_DEFAULTS, W as RunInput, Y as RunSettingsError, Z as RunTask, _ as RunTaskStatus, a0 as RunnerLoadedBlock, a1 as SUPERVISOR_LEVEL_LABEL, a2 as SerializedConversationMessage, a3 as SerializedPendingTurn, a4 as SerializedPlan, a5 as SerializedTask, a6 as SerializedTaskStatus, aa as SettingsService, ab as SkillLoadBlock, ad as SkillToken, ae as SubagentBlock, af as SubagentChild, ag as SubagentStatus, aj as SurfaceTask, ak as TakenPrompt, al as TaskAttemptSnapshot, am as TaskControlError, ao as TaskLogView, ar as TaskOrchestratorDeps, as as TaskOrchestratorOptions, au as TaskRef, av as TaskRowAction, aw as TaskRowContext, ax as TaskRowIsolation, ay as TaskRowKind, az as TaskRowPlacement, aA as TaskRowSubject, aB as TaskRowUsage, aC as TaskRowView, aD as TaskStatusKind, aE as ThinkingDisplayBlock, aF as ToolBlock, aG as ToolHeadline, aH as ToolStatus, aI as TurnGate, aJ as UsageBlock, aL as aheadOfDraft, aM as applyTaskOps, aN as approvalLabel, aO as automergeSummary, aP as autorunSummary, aQ as awaitingLabel, aR as blockedByLabel, aS as blockingFailures, aT as canMergeTasks, aU as canSetDependencies, aV as canSplitTask, aW as capConflictFiles, aX as classifyOutcome, aY as coalesceTaskLog, aZ as dependencyCandidates, a_ as dependentsNotice, a$ as dependentsOf, b0 as diffRows, b1 as diffStat, b2 as diffSummary, b3 as digestTaskLog, b4 as drainNext, b5 as executionSummary, b6 as followTurn, b7 as fromTranscript, b8 as getSettingsPath, b9 as hasHiddenDetail, ba as holdPrompt, bb as isTaskRunning, bc as loadedSkillTokens, bd as markAction, be as markRequestFor, bf as markdownHtml, bg as markdownTokens, bh as namedRepos, bi as newTaskFields, bj as opsEditable, bk as outputLines, bl as outputPreview, bm as parseCount, bn as parseSwitch, bo as parseTaskOpsJson, bp as pastGateConfirmation, bq as reduceConversation, br as reduceRun, bs as reduceTaskLog, bt as replayTaskLog, bu as resolveTaskRef, bv as resumeLabel, bw as resumeTime, bx as runSettingsOf, by as runnerToolSubject, bz as serializePlan, bA as serializeTask, bB as serializeTaskStatus, bC as skillTokens, bD as skippedLabel, bE as stopTurn, bF as summarizeToolCall, bG as supervisorSummary, bH as surfacePlan, bI as surfacePlanState, bJ as takeAt, bK as taskLogForSurface, bL as taskOrderLabel, bM as taskRef, bN as taskRefOf, bO as taskRowActions, bP as taskRowView, bQ as taskStartedNotice, bR as taskStatusKind, bS as textHasTaskOps, bT as titledRefs, bU as titledTaskRef, bV as titledTaskRefOf, bW as toTaskLogEvent, bX as toolHeadline, bY as trimToolOutput, bZ as truncateCheckpointSummary, b_ as unsendAll, b$ as unsendLatest } from './plan-utils-DL7yOuJs.mjs';
|
|
5
|
+
import { I as IApproval, y as IConfig, d as AgentProcessDeps, a as AgentAdapter, _ as OrdewellMcpServer, a6 as PlannerToolHandler, ad as ResearchShell, p as ApprovalRequest, j as ApprovalDecision, i as ApprovalAnswer, z as IRunner, a3 as PlannerBackendId, a9 as ProviderModelLists, f as AiProvider, m as ApprovalModeSetting, aq as RunnerRegistry, Z as OrchestratorOption, aD as TaskModeAgentAdapter, e as AgentStartOptions, c as AgentEvent, ai as RunnerCommand, a7 as ProjectMcpServer, n as ApprovalPolicy, B as IRunnerSession, aA as TaskCompleteArgs, r as CheckpointAnswer, av as StructuredTurnEnd, au as StructuredEvent, aC as TaskMessageFrom, ab as QueuedTaskMessage, aI as TaskStartOptions, aJ as TaskTokenScope, am as RunnerManifest, aH as TaskRunnerFlags } from './IRunner---PfQVdc.mjs';
|
|
6
|
+
export { A as AUTO_COMMANDS, b as AgentAdapterFactory, g as AllProviderModels, h as AnswerApprovalArgs, k as ApprovalKind, l as ApprovalMode, o as ApprovalPolicyOptions, q as ApprovalSource, C as CatalogModel, s as CheckpointArgs, t as CommandClassification, u as CommandTier, v as CommandWords, D as DEFAULT_PLANNER_ALLOWLIST, w as DENY_ALL, x as DiscoveryCommand, E as EditPlanArgs, F as FetchAllProviderModelsOptions, G as GIT_READONLY_SUBCOMMANDS, H as InvokedCommand, L as LineBuffer, J as ListModelsArgs, K as ListRunnersArgs, M as LoadSkillArgs, N as McpClientConfig, O as McpCredential, P as McpTool, Q as McpToolContext, R as McpToolReply, S as MessageTaskArgs, T as ModelCatalog, U as ModelShortcut, V as ORCHESTRATOR_SHORTCUTS, W as ORDEWELL_MCP_PATH, X as ORDEWELL_MCP_SERVER_NAME, Y as OneTaskArgs, $ as OwnerOnlyFile, a0 as PLANNER_EXECUTION_TOOLS, a1 as PLANNER_TOOLS, a2 as PlannerAllowlist, a4 as PlannerStartOptions, a5 as PlannerTokenScope, a8 as ProviderCredentialSource, aa as ProviderModelsResult, ac as REFUSED_COMMANDS, ae as ResearchShellDeps, af as RetryTaskArgs, ag as RunCommandArgs, ah as RunPlanArgs, aj as RunnerCommandKind, ak as RunnerEntry, al as RunnerFeatures, an as RunnerMcpServer, ao as RunnerMode, ap as RunnerModelDiscovery, ar as ShellDialect, as as SpawnFn, at as StandingDecision, aw as SubmitPlanArgs, ax as TASK_COMPLETE_TOOL, ay as TASK_COMPLETION_CONTRACT, az as TASK_TOOLS, aB as TaskDiffArgs, aE as TaskModeUnsupportedError, aF as TaskOutputArgs, aG as TaskQueryArgs, aK as TaskToolHandler, aL as approvalScopes, aM as classifyCommand, aN as clearResearchShellCache, aO as collectProviderCredentials, aP as commandAllowedBy, aQ as effectiveApprovalMode, aR as enabledRunners, aS as fetchAllProviderModels, aT as findRunnerCommand, aU as isGranted, aV as isRunnerApproval, aW as knownModelId, aX as mcpClientConfig, aY as ownerOnlyConfigFile, aZ as parseAllowlist, a_ as parseApprovalModeSetting, a$ as researchShellWarning, b0 as researchToolsPath, b1 as resolveModelShortcut, b2 as resolveProvider, b3 as resolveResearchShell, b4 as scopeAllowed, b5 as sharedMcpServer, b6 as toApprovalDecision, b7 as toOrchestratorOptions, b8 as toolAllowed } from './IRunner---PfQVdc.mjs';
|
|
7
|
+
import { T as ToolOutcome, I as IFileSystem, R as ReadFileOpts, b as GrepOptions, a as GlobOptions, F as FindSymbolOptions } from './IFileSystem-j0naIoAQ.mjs';
|
|
8
|
+
export { G as GREP_DEFAULT_HEAD_LIMIT, c as GrepOutputMode, S as SEARCH_EXCLUSIONS } from './IFileSystem-j0naIoAQ.mjs';
|
|
9
|
+
import { R as RunnerModeInfo } from './ModeResolver-CjQ7zqTN.mjs';
|
|
10
|
+
export { a as autonomyLevelLabel, p as parseAutonomyLevel, r as runnerModesFrom } from './ModeResolver-CjQ7zqTN.mjs';
|
|
11
11
|
import { ChildProcess } from 'child_process';
|
|
12
12
|
import { EventEmitter } from 'events';
|
|
13
13
|
import 'zod/v4';
|
|
@@ -1848,7 +1848,7 @@ declare function formatSearchOutput(capped: CappedRows, root: string, opts: {
|
|
|
1848
1848
|
|
|
1849
1849
|
declare function normalizeGeminiModel(id: string): string;
|
|
1850
1850
|
declare abstract class BaseConfig implements IConfig {
|
|
1851
|
-
abstract aiProvider:
|
|
1851
|
+
abstract aiProvider: PlannerBackendId;
|
|
1852
1852
|
abstract apiKey: string;
|
|
1853
1853
|
abstract planningModel: string;
|
|
1854
1854
|
abstract enabledRunners: string[];
|
|
@@ -1928,7 +1928,7 @@ declare abstract class BaseConfig implements IConfig {
|
|
|
1928
1928
|
get webReadBudget(): number;
|
|
1929
1929
|
get approvalDefaults(): boolean;
|
|
1930
1930
|
get approvalPreApproved(): string[];
|
|
1931
|
-
protected static detectProvider(fallback:
|
|
1931
|
+
protected static detectProvider(fallback: PlannerBackendId): PlannerBackendId;
|
|
1932
1932
|
}
|
|
1933
1933
|
|
|
1934
1934
|
/**
|
|
@@ -1938,7 +1938,7 @@ declare abstract class BaseConfig implements IConfig {
|
|
|
1938
1938
|
* subclass only supplies the abstract members from the environment.
|
|
1939
1939
|
*/
|
|
1940
1940
|
declare class EnvConfig extends BaseConfig {
|
|
1941
|
-
get aiProvider():
|
|
1941
|
+
get aiProvider(): PlannerBackendId;
|
|
1942
1942
|
get apiKey(): string;
|
|
1943
1943
|
get planningModel(): string;
|
|
1944
1944
|
get enabledRunners(): string[];
|
|
@@ -2160,6 +2160,8 @@ declare class OpenAiService extends BaseAiService implements IAiService {
|
|
|
2160
2160
|
* key the user had already replaced.
|
|
2161
2161
|
*/
|
|
2162
2162
|
private getClient;
|
|
2163
|
+
/** The vendor this service talks to; `createAiService` routes every other planner elsewhere. */
|
|
2164
|
+
private vendor;
|
|
2163
2165
|
ensureInit(): void;
|
|
2164
2166
|
private requireModel;
|
|
2165
2167
|
reset(): void;
|
|
@@ -2338,16 +2340,14 @@ declare class RunnerInstallation {
|
|
|
2338
2340
|
clear(): void;
|
|
2339
2341
|
}
|
|
2340
2342
|
|
|
2341
|
-
declare const PROVIDER_LABEL: Record<AiProvider, string>;
|
|
2342
|
-
declare const PROVIDER_SHORT_LABEL: Record<AiProvider, string>;
|
|
2343
2343
|
interface ProviderRegistration {
|
|
2344
|
-
id:
|
|
2344
|
+
id: PlannerBackendId;
|
|
2345
2345
|
label: string;
|
|
2346
2346
|
shortLabel: string;
|
|
2347
2347
|
/** `cli` is a harness planner (ADR-0009): a local coding agent, not an HTTP vendor. */
|
|
2348
2348
|
serviceType: 'openai' | 'google' | 'cli';
|
|
2349
2349
|
/** Harness planners only: the runner id whose manifest, models and binary this provider drives. */
|
|
2350
|
-
runnerId?:
|
|
2350
|
+
runnerId?: RunnerId;
|
|
2351
2351
|
defaultBaseUrl: string;
|
|
2352
2352
|
apiKeyEnvVar: string;
|
|
2353
2353
|
detectEnvVars: string[];
|
|
@@ -2358,10 +2358,25 @@ interface ProviderRegistration {
|
|
|
2358
2358
|
discoversModels: boolean;
|
|
2359
2359
|
modelPrefix?: string;
|
|
2360
2360
|
}
|
|
2361
|
-
declare const
|
|
2361
|
+
declare const PROVIDER_PRIORITY: AiProvider[];
|
|
2362
|
+
declare const PROVIDER_DETECT_PRIORITY: AiProvider[];
|
|
2363
|
+
|
|
2364
|
+
/**
|
|
2365
|
+
* Keyed by planner backend: every vendor has an entry, and a runner id has one
|
|
2366
|
+
* only when that runner can plan, which the type cannot know.
|
|
2367
|
+
*/
|
|
2368
|
+
type ByPlannerBackend<T> = Readonly<Record<AiProvider, T>> & Readonly<Partial<Record<RunnerId, T>>>;
|
|
2369
|
+
declare const ALL_PROVIDERS: ByPlannerBackend<ProviderRegistration>;
|
|
2370
|
+
declare const PROVIDER_LABEL: ByPlannerBackend<string>;
|
|
2371
|
+
declare const PROVIDER_SHORT_LABEL: ByPlannerBackend<string>;
|
|
2362
2372
|
declare function getProviderMeta(id: AiProvider): ProviderRegistration;
|
|
2363
|
-
declare function
|
|
2364
|
-
|
|
2373
|
+
declare function getProviderMeta(id: PlannerBackendId): ProviderRegistration | undefined;
|
|
2374
|
+
/** Whether a planner backend id names an API vendor, the kind that takes a key and a base URL. */
|
|
2375
|
+
declare function isApiProvider(id: PlannerBackendId): id is AiProvider;
|
|
2376
|
+
/** Whether an id names a planner backend at all: a vendor, or a runner that can plan. */
|
|
2377
|
+
declare function isPlannerBackend(id: string): id is PlannerBackendId;
|
|
2378
|
+
declare function prefixModelId(provider: PlannerBackendId, modelId: string): string;
|
|
2379
|
+
declare function stripModelPrefix(id: string, provider: PlannerBackendId): string;
|
|
2365
2380
|
declare function resolveProviderFromPrefix(id: string): AiProvider | null;
|
|
2366
2381
|
/**
|
|
2367
2382
|
* The harness planners, in display order. Deliberately NOT part of
|
|
@@ -2371,10 +2386,8 @@ declare function resolveProviderFromPrefix(id: string): AiProvider | null;
|
|
|
2371
2386
|
* that offer a planner picker concatenate the two lists and gate these on
|
|
2372
2387
|
* `RunnerInstallation.plannerUsability`.
|
|
2373
2388
|
*/
|
|
2374
|
-
declare const CLI_PROVIDERS:
|
|
2375
|
-
declare
|
|
2376
|
-
declare const PROVIDER_DETECT_PRIORITY: AiProvider[];
|
|
2377
|
-
declare function isOpenAiProvider(id: AiProvider): boolean;
|
|
2389
|
+
declare const CLI_PROVIDERS: readonly RunnerId[];
|
|
2390
|
+
declare function isOpenAiProvider(id: PlannerBackendId): boolean;
|
|
2378
2391
|
/**
|
|
2379
2392
|
* The one guard that separates a harness planner from an LLM vendor (ADR-0009).
|
|
2380
2393
|
* Three places consult it: API-key resolution (skipped — the subscription is
|
|
@@ -2382,24 +2395,24 @@ declare function isOpenAiProvider(id: AiProvider): boolean;
|
|
|
2382
2395
|
* the planner-model picker (fed by per-runner discovery, not the vendor
|
|
2383
2396
|
* catalog).
|
|
2384
2397
|
*/
|
|
2385
|
-
declare function isCliProvider(id:
|
|
2386
|
-
/** The runner a harness planner drives, or null for a vendor provider. */
|
|
2387
|
-
declare function runnerForProvider(id:
|
|
2398
|
+
declare function isCliProvider(id: PlannerBackendId): boolean;
|
|
2399
|
+
/** The runner a harness planner drives, or null for a vendor provider or an unknown id. */
|
|
2400
|
+
declare function runnerForProvider(id: PlannerBackendId): RunnerId | null;
|
|
2388
2401
|
/** The harness planner that wraps a given runner, or null when none does. */
|
|
2389
|
-
declare function providerForRunner(runner:
|
|
2402
|
+
declare function providerForRunner(runner: RunnerId): PlannerBackendId | null;
|
|
2390
2403
|
/** One runner's planner usability, as `RunnerInstallation.plannerUsability` reports it. */
|
|
2391
2404
|
interface PlannerUsability {
|
|
2392
2405
|
usable: boolean;
|
|
2393
2406
|
reason?: string;
|
|
2394
2407
|
}
|
|
2395
2408
|
/**
|
|
2396
|
-
* One entry of the planner backend list (ADR-0009). `id` is the
|
|
2397
|
-
* either way; `runner` is set only for a harness planner, whose model catalog
|
|
2409
|
+
* One entry of the planner backend list (ADR-0009). `id` is the
|
|
2410
|
+
* `PlannerBackendId` either way; `runner` is set only for a harness planner, whose model catalog
|
|
2398
2411
|
* comes from that runner, and `reason` is the second line a surface renders —
|
|
2399
2412
|
* the block detail for a harness planner, the API-key variable for a vendor.
|
|
2400
2413
|
*/
|
|
2401
2414
|
interface PlannerBackendEntry {
|
|
2402
|
-
id:
|
|
2415
|
+
id: PlannerBackendId;
|
|
2403
2416
|
label: string;
|
|
2404
2417
|
kind: 'harness' | 'vendor';
|
|
2405
2418
|
runner?: string;
|
|
@@ -4323,8 +4336,8 @@ interface TaskLogResponse {
|
|
|
4323
4336
|
type SessionListResponse = SessionMeta[];
|
|
4324
4337
|
interface SettingsResponse {
|
|
4325
4338
|
orchestratorModel: string;
|
|
4326
|
-
/** Who plans (ADR-0009) — a vendor id, or
|
|
4327
|
-
aiProvider:
|
|
4339
|
+
/** Who plans (ADR-0009) — a vendor id, or a runner serving as a harness planner. */
|
|
4340
|
+
aiProvider: PlannerBackendId;
|
|
4328
4341
|
plannerThinkingEffort: string;
|
|
4329
4342
|
maxParallel: number;
|
|
4330
4343
|
modelAllowlist: UserSettings['modelAllowlist'];
|
|
@@ -5180,13 +5193,13 @@ declare function savePrdMarkdown(workspace: string, slug: string, markdown: stri
|
|
|
5180
5193
|
|
|
5181
5194
|
/** Who plans, with which model and effort. Blank means unset. */
|
|
5182
5195
|
interface PlannerSelectionState {
|
|
5183
|
-
provider:
|
|
5196
|
+
provider: PlannerBackendId;
|
|
5184
5197
|
model: string;
|
|
5185
5198
|
effort: string;
|
|
5186
5199
|
}
|
|
5187
5200
|
/** What one user action asked for; an absent field leaves that part alone. */
|
|
5188
5201
|
interface PlannerSelectionChange {
|
|
5189
|
-
provider?:
|
|
5202
|
+
provider?: PlannerBackendId;
|
|
5190
5203
|
model?: string;
|
|
5191
5204
|
effort?: string;
|
|
5192
5205
|
}
|
|
@@ -5216,4 +5229,4 @@ declare const DEFAULT_MAX_PARALLEL = 5;
|
|
|
5216
5229
|
*/
|
|
5217
5230
|
declare function parseMaxParallel(value: unknown): number | null;
|
|
5218
5231
|
|
|
5219
|
-
export { ALL_PROVIDERS, AbstractRunner, AbstractRunnerSession, type AdoptSessionResponse, type Adr0013IsolationRun, type Adr0013PlanIsolation, type Adr0013TaskRecord, AgentAdapter, AgentEvent, AgentProcessDeps, AgentStartOptions, AiProvider, AlreadyExecutingError, ApplyTaskOpsResult, ApprovalAnswer, type ApprovalAnswerResponse, ApprovalDecision, ApprovalModeSetting, ApprovalPolicy, ApprovalRequest, type ApprovalsResponse, type AskOptions, BaseAiService, BaseConfig, BaseFileSystem, BufferedTaskOutputSource, CLAUDE_CODE_MANIFEST, CLI_PROVIDERS, CMD_EXE_MAX_COMMAND_LINE, CODEX_SANDBOX_DOCS, CODEX_SANDBOX_OFF_LINE, type CachedPage, type CancelPlanningResponse, type CancelResumeResponse, type CappedRows, CheckpointAnswer, type CheckpointListener, ClaudeCodeAdapter, CliAgentAiService, type CliAgentAiServiceDeps, CodexAdapter, CodexSandboxAvailability, type CommandDescriptor, CommandLineTooLongError, type CommandOutcome, type CommandsResponse, type Consent, ConsoleLogger, ContextCollector, type Continuability, ConversationBusyError, type ConversationCompactResponse, type ConversationCompaction, ConversationEditError, type ConversationFork, type ConversationForkResponse, ConversationMessage, type ConversationRequest, type ConversationRewind, type ConversationRewindResponse, type ConversationTurn, DAEMON_SUBPROTOCOL, DAEMON_TOKEN_SUBPROTOCOL_PREFIX, DEFAULT_MAX_PARALLEL, DEFAULT_WEB_READ_BUDGET, type DaemonErrorCode, type DecideOptions, type DirEntry, DiscoveredModel, DuckDuckGoSearchProvider, EmbeddedNewlineError, type EnvAdmission, EnvConfig, type ErrorBody, type ExecImpl, ExecutableNotFoundError, type ExecuteResponse, ExecutionActor, type ExecutionCommand, ExecutionCommandName, ExecutionCommands, type ExecutionHost, ExecutionRecord, FindSymbolOptions, type ForceSendResponse, GREP_PCRE_PROBE_ARGS, GeminiService, type GeneratePlanResponse, type GitExecFn, GlobOptions, GlobalRunSettings, type GrepInvocation, GrepOptions, type GrepRegex, GuardTarget, GuardTrip, HARNESS_PLANNER_REASON, type HasBinFn, HttpWebFetcher, type HttpWebFetcherOptions, type IAiService, IApproval, IConfig, IFileSystem, type ILogger, INotification, IRunner, IRunnerSession, type ISearchProvider, IWorktreeIsolation, type IsolationDiffResponse, IsolationLandedTask, type IsolationMergeResponse, IsolationMergeResult, IsolationTaskStatus, IsolationView, type KillTreeDeps, type LaunchDeps, type LaunchPlan, LegacyPlanState, type LiveOutputLookup, LiveTail, LiveTailOptions, type LoopGuard, type MappedTool, type MergeGateEntry, type MergeGateResponse, ModelResolver, type ModelResolverDeps, type ModelsResponse, NoPlanError, OPENCODE_MANIFEST, ORDEWELL_SETTABLE_ENV, OUTPUT_LINES_DEFAULT, OUTPUT_LINES_MAX, type OkResponse, OpenAiService, OpenCodeAdapter, OrchestratorObserver, OrchestratorOption, OrdewellMcpServer, PROVIDER_CREDENTIAL_ENV, PROVIDER_DETECT_PRIORITY, PROVIDER_LABEL, PROVIDER_PRIORITY, PROVIDER_SHORT_LABEL, type PendingApproval, PendingApprovals, type PendingApprovalsOptions, PlanEditError, PlanIsolation, type PlanRequest, type PlanResponse, PlanState, PlanStore, Planner, type PlannerBackendEntry, type PlannerModelCandidate, type PlannerModelChoice, type PlannerModelLookup, PlannerModelMemory, type PlannerModelRecall, type PlannerModelStore, type PlannerSelectionChange, type PlannerSelectionResult, type PlannerSelectionState, type PlannerSubmission, PlannerToolHandler, PlannerTurnDiscardedError, PlannerTurnStoppedError, type PlannerUsability, PlannerUsage, type PrdBlock, type PrdResponse, ProviderModelLists, type ProviderRegistration, QueuedTaskMessage, ReadFileOpts, type RemoveMessageResponse, type ResearchChat, ResearchLogEntry, ResearchShell, type ResearchTurn, type ResolveConflictResponse, type RewindTarget, type RewindTargetsResponse, RunMergeView, type RunSnapshotFrame, RunView, RunnerApprovals, RunnerCommand, RunnerId, RunnerInstallation, RunnerManifest, RunnerModeInfo, RunnerRegistry, type RunnerSpawnOptions, type RunnersResponse, SETTINGS_ENV_ALLOWLIST, SETTINGS_ENV_REFUSED, STATE_DIR, STATE_DIR_IGNORE, STOPPED_TOOL_RESULT, SUPERVISOR_LEVELS, SYMBOL_LANGUAGES, type SaveSession, type SearchHit, type SearchOutcome, type SearchPage, type SearchTransport, Session, SessionBroadcaster, type SessionData, type SessionDeps, type SessionListResponse, SessionMessage, type SessionMeta, SessionNotFoundError, SessionNotice, type SessionPlanner, type SessionResponse, type SessionRuntimeSettings, type SettingsResponse, type SettingsUpdateResponse, SkillInfo, type SkillInvocation, SkillLoad, SkillsService, type SpawnSpec, StdioAgentAdapter, type StopResponse, StructuredEvent, StructuredRunner, type StructuredRunnerDeps, StructuredSession, StructuredTurnEnd, SupervisorLevel, type SupervisorPolicy, SurfacePlan, SurfacePlanState, TASK_QUERY_ANSWER_MAX_CHARS, TASK_QUERY_ANSWER_OR_OPS, TASK_QUERY_FIELDS, TASK_QUERY_PROTOCOL, TASK_QUERY_REMINDER, Task, TaskCompleteArgs, type TaskLogAttemptsResponse, TaskLogEvent, type TaskLogFile, type TaskLogLocation, TaskLogRecorder, type TaskLogRecorderDeps, type TaskLogResponse, TaskMessageFrom, type TaskMessageResponse, TaskModeAgentAdapter, TaskOp, TaskOrchestrator, TaskOutputSource, type TaskQuery, type TaskQueryCatalog, type TaskQueryField, TaskRunnerFlags, TaskStartOptions, TaskTokenScope, type TokenCarriers, type ToolCall, ToolOutcome, type ToolResult, UsageRecord, UserSettings, VerdictEngine, type VerdictListener, WINDOWS_MAX_COMMAND_LINE, type WebRead, type WebReadDecision, type WebResponse, WebResponseCache, type WebResponseCacheOptions, type WebTransport, type WorkspaceCheckDeps, WorkspaceNotAProjectError, WorkspaceNotFoundError, type WorkspaceProjectCheckDeps, type WorkspacesResponse, type WorktreeIsolationDeps, abbreviateHome, admitSettingsEnv, applyHeadLimit, assertWorkspaceExists, assertWorkspaceIsProject, augmentedPath, bearerHeaderValue, buildFallbackGrepArgs, buildGlobArgs, buildGrepArgs, canContinue, clearAugmentedPathCache, clearDaemonToken, clearState, clipboardCopyCommand, codexSandboxNotice, configuredProviders, continuability, createAiService, createSession, createTaskAdapter, createWorktreeIsolation, daemonTokenPath, defaultLogger, definitionPattern, deleteSession, describeMergeResult, discoverGeminiModels, ensureDir, ensurePrivateDir, ensureStateDirIgnored, extractPrdBlock, extractPresentedToken, filterFallbackByAnchoredInclude, formatSearchOutput, getLatestSession, getProviderMeta, getStateDir, globalDataDir, grantScopeFor, grepRegexFromProbe, idSegment, includeGlobFor, isCliProvider, isExecutableResolved, isOpenAiProvider, killTree, languageForId, listSessions, listTaskLogAttempts, listTree, loadSession, loadSessionPlanState, loadState, looksLikeChallenge, mapAgentTool, migrateOldConfigDir, migratePlanIsolation, mintDaemonToken, mintSessionId, normalizeAgentArgs, normalizeGeminiModel, openTaskLog, parseMaxParallel, parseSearchHits, parseTaskQueryJson, planDirectLaunch, plannerBackendEntries, plannerMessage, plannerTranscript, prefixModelId, providerForRunner, readDaemonToken, readTaskLog, referencePattern, removedPluginNotice, renderTaskQueryAnswer, resolveProviderFromPrefix, resolveSkillInvocation, resolveTaskRunnerFlags, resolveWithin, runnerForProvider, sanitizeSlug, savePrdMarkdown, saveSession, saveState, selectPlanner, sessionDataDir, sessionRuntimeSettings, sharedSearchProvider, sharedWebResponseCache, stateExists, stripAnsi, stripModelPrefix, supportsTaskMode, taskQuerySignature, textHasTaskQuery, tokenSubprotocols, tokensMatch, wellKnownBinDirs, windowsCommandLine, withPath, writePrivateFile };
|
|
5232
|
+
export { ALL_PROVIDERS, AbstractRunner, AbstractRunnerSession, type AdoptSessionResponse, type Adr0013IsolationRun, type Adr0013PlanIsolation, type Adr0013TaskRecord, AgentAdapter, AgentEvent, AgentProcessDeps, AgentStartOptions, AiProvider, AlreadyExecutingError, ApplyTaskOpsResult, ApprovalAnswer, type ApprovalAnswerResponse, ApprovalDecision, ApprovalModeSetting, ApprovalPolicy, ApprovalRequest, type ApprovalsResponse, type AskOptions, BaseAiService, BaseConfig, BaseFileSystem, BufferedTaskOutputSource, type ByPlannerBackend, CLAUDE_CODE_MANIFEST, CLI_PROVIDERS, CMD_EXE_MAX_COMMAND_LINE, CODEX_SANDBOX_DOCS, CODEX_SANDBOX_OFF_LINE, type CachedPage, type CancelPlanningResponse, type CancelResumeResponse, type CappedRows, CheckpointAnswer, type CheckpointListener, ClaudeCodeAdapter, CliAgentAiService, type CliAgentAiServiceDeps, CodexAdapter, CodexSandboxAvailability, type CommandDescriptor, CommandLineTooLongError, type CommandOutcome, type CommandsResponse, type Consent, ConsoleLogger, ContextCollector, type Continuability, ConversationBusyError, type ConversationCompactResponse, type ConversationCompaction, ConversationEditError, type ConversationFork, type ConversationForkResponse, ConversationMessage, type ConversationRequest, type ConversationRewind, type ConversationRewindResponse, type ConversationTurn, DAEMON_SUBPROTOCOL, DAEMON_TOKEN_SUBPROTOCOL_PREFIX, DEFAULT_MAX_PARALLEL, DEFAULT_WEB_READ_BUDGET, type DaemonErrorCode, type DecideOptions, type DirEntry, DiscoveredModel, DuckDuckGoSearchProvider, EmbeddedNewlineError, type EnvAdmission, EnvConfig, type ErrorBody, type ExecImpl, ExecutableNotFoundError, type ExecuteResponse, ExecutionActor, type ExecutionCommand, ExecutionCommandName, ExecutionCommands, type ExecutionHost, ExecutionRecord, FindSymbolOptions, type ForceSendResponse, GREP_PCRE_PROBE_ARGS, GeminiService, type GeneratePlanResponse, type GitExecFn, GlobOptions, GlobalRunSettings, type GrepInvocation, GrepOptions, type GrepRegex, GuardTarget, GuardTrip, HARNESS_PLANNER_REASON, type HasBinFn, HttpWebFetcher, type HttpWebFetcherOptions, type IAiService, IApproval, IConfig, IFileSystem, type ILogger, INotification, IRunner, IRunnerSession, type ISearchProvider, IWorktreeIsolation, type IsolationDiffResponse, IsolationLandedTask, type IsolationMergeResponse, IsolationMergeResult, IsolationTaskStatus, IsolationView, type KillTreeDeps, type LaunchDeps, type LaunchPlan, LegacyPlanState, type LiveOutputLookup, LiveTail, LiveTailOptions, type LoopGuard, type MappedTool, type MergeGateEntry, type MergeGateResponse, ModelResolver, type ModelResolverDeps, type ModelsResponse, NoPlanError, OPENCODE_MANIFEST, ORDEWELL_SETTABLE_ENV, OUTPUT_LINES_DEFAULT, OUTPUT_LINES_MAX, type OkResponse, OpenAiService, OpenCodeAdapter, OrchestratorObserver, OrchestratorOption, OrdewellMcpServer, PROVIDER_CREDENTIAL_ENV, PROVIDER_DETECT_PRIORITY, PROVIDER_LABEL, PROVIDER_PRIORITY, PROVIDER_SHORT_LABEL, type PendingApproval, PendingApprovals, type PendingApprovalsOptions, PlanEditError, PlanIsolation, type PlanRequest, type PlanResponse, PlanState, PlanStore, Planner, type PlannerBackendEntry, PlannerBackendId, type PlannerModelCandidate, type PlannerModelChoice, type PlannerModelLookup, PlannerModelMemory, type PlannerModelRecall, type PlannerModelStore, type PlannerSelectionChange, type PlannerSelectionResult, type PlannerSelectionState, type PlannerSubmission, PlannerToolHandler, PlannerTurnDiscardedError, PlannerTurnStoppedError, type PlannerUsability, PlannerUsage, type PrdBlock, type PrdResponse, ProviderModelLists, type ProviderRegistration, QueuedTaskMessage, ReadFileOpts, type RemoveMessageResponse, type ResearchChat, ResearchLogEntry, ResearchShell, type ResearchTurn, type ResolveConflictResponse, type RewindTarget, type RewindTargetsResponse, RunMergeView, type RunSnapshotFrame, RunView, RunnerApprovals, RunnerCommand, RunnerId, RunnerInstallation, RunnerManifest, RunnerModeInfo, RunnerRegistry, type RunnerSpawnOptions, type RunnersResponse, SETTINGS_ENV_ALLOWLIST, SETTINGS_ENV_REFUSED, STATE_DIR, STATE_DIR_IGNORE, STOPPED_TOOL_RESULT, SUPERVISOR_LEVELS, SYMBOL_LANGUAGES, type SaveSession, type SearchHit, type SearchOutcome, type SearchPage, type SearchTransport, Session, SessionBroadcaster, type SessionData, type SessionDeps, type SessionListResponse, SessionMessage, type SessionMeta, SessionNotFoundError, SessionNotice, type SessionPlanner, type SessionResponse, type SessionRuntimeSettings, type SettingsResponse, type SettingsUpdateResponse, SkillInfo, type SkillInvocation, SkillLoad, SkillsService, type SpawnSpec, StdioAgentAdapter, type StopResponse, StructuredEvent, StructuredRunner, type StructuredRunnerDeps, StructuredSession, StructuredTurnEnd, SupervisorLevel, type SupervisorPolicy, SurfacePlan, SurfacePlanState, TASK_QUERY_ANSWER_MAX_CHARS, TASK_QUERY_ANSWER_OR_OPS, TASK_QUERY_FIELDS, TASK_QUERY_PROTOCOL, TASK_QUERY_REMINDER, Task, TaskCompleteArgs, type TaskLogAttemptsResponse, TaskLogEvent, type TaskLogFile, type TaskLogLocation, TaskLogRecorder, type TaskLogRecorderDeps, type TaskLogResponse, TaskMessageFrom, type TaskMessageResponse, TaskModeAgentAdapter, TaskOp, TaskOrchestrator, TaskOutputSource, type TaskQuery, type TaskQueryCatalog, type TaskQueryField, TaskRunnerFlags, TaskStartOptions, TaskTokenScope, type TokenCarriers, type ToolCall, ToolOutcome, type ToolResult, UsageRecord, UserSettings, VerdictEngine, type VerdictListener, WINDOWS_MAX_COMMAND_LINE, type WebRead, type WebReadDecision, type WebResponse, WebResponseCache, type WebResponseCacheOptions, type WebTransport, type WorkspaceCheckDeps, WorkspaceNotAProjectError, WorkspaceNotFoundError, type WorkspaceProjectCheckDeps, type WorkspacesResponse, type WorktreeIsolationDeps, abbreviateHome, admitSettingsEnv, applyHeadLimit, assertWorkspaceExists, assertWorkspaceIsProject, augmentedPath, bearerHeaderValue, buildFallbackGrepArgs, buildGlobArgs, buildGrepArgs, canContinue, clearAugmentedPathCache, clearDaemonToken, clearState, clipboardCopyCommand, codexSandboxNotice, configuredProviders, continuability, createAiService, createSession, createTaskAdapter, createWorktreeIsolation, daemonTokenPath, defaultLogger, definitionPattern, deleteSession, describeMergeResult, discoverGeminiModels, ensureDir, ensurePrivateDir, ensureStateDirIgnored, extractPrdBlock, extractPresentedToken, filterFallbackByAnchoredInclude, formatSearchOutput, getLatestSession, getProviderMeta, getStateDir, globalDataDir, grantScopeFor, grepRegexFromProbe, idSegment, includeGlobFor, isApiProvider, isCliProvider, isExecutableResolved, isOpenAiProvider, isPlannerBackend, killTree, languageForId, listSessions, listTaskLogAttempts, listTree, loadSession, loadSessionPlanState, loadState, looksLikeChallenge, mapAgentTool, migrateOldConfigDir, migratePlanIsolation, mintDaemonToken, mintSessionId, normalizeAgentArgs, normalizeGeminiModel, openTaskLog, parseMaxParallel, parseSearchHits, parseTaskQueryJson, planDirectLaunch, plannerBackendEntries, plannerMessage, plannerTranscript, prefixModelId, providerForRunner, readDaemonToken, readTaskLog, referencePattern, removedPluginNotice, renderTaskQueryAnswer, resolveProviderFromPrefix, resolveSkillInvocation, resolveTaskRunnerFlags, resolveWithin, runnerForProvider, sanitizeSlug, savePrdMarkdown, saveSession, saveState, selectPlanner, sessionDataDir, sessionRuntimeSettings, sharedSearchProvider, sharedWebResponseCache, stateExists, stripAnsi, stripModelPrefix, supportsTaskMode, taskQuerySignature, textHasTaskQuery, tokenSubprotocols, tokensMatch, wellKnownBinDirs, windowsCommandLine, withPath, writePrivateFile };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AttemptUsage, a as AwaitingReason, B as BUILTIN_SKILL_NAMES, D as DEFAULT_RUNNERS, b as DEFAULT_SUPERVISOR_RETRY_LIMIT, g as IntegrationDisposal, h as InvalidSkill, i as IsolationAvailability, j as IsolationHandoff, k as IsolationHandoffRepo, l as IsolationInactiveReason, n as IsolationLanding, o as IsolationMergeBlock, p as IsolationMergeBlockReason, r as IsolationOutcome, s as IsolationPruneResult, t as IsolationRemoval, u as IsolationRepo, v as IsolationRun, w as IsolationTaskRecord, x as IsolationTaskRef, y as IsolationTaskRepo, M as ModelUsage, N as PlanUsage, Q as
|
|
3
|
-
import { v as LiveTailOptions, L as LiveTail,
|
|
4
|
-
export { A as ACT_RISK, a as AUTORUN_RISK, c as ApprovalBlock, d as ApprovalStatus, e as AutoMergeTrigger, B as BlockingSubject, C as CHECKPOINT_TRUNCATE_LENGTH, f as CommandBlock, g as CommandStatus, h as CompactionBlock, i as ConversationInput, j as ConversationView, D as DiffRow, k as DiffRowKind, l as DiffStat, m as DisplayBlock, E as EMPTY_CONVERSATION, n as EMPTY_HOLD, o as EMPTY_RUN, p as EMPTY_TASK_LOG, r as ExecutionSummary, G as GatedConversation, w as LocalEntry, M as
|
|
5
|
-
import { I as IApproval, y as IConfig, d as AgentProcessDeps, a as AgentAdapter, _ as OrdewellMcpServer,
|
|
6
|
-
export { A as AUTO_COMMANDS, b as AgentAdapterFactory, g as AllProviderModels, h as AnswerApprovalArgs, k as ApprovalKind, l as ApprovalMode, o as ApprovalPolicyOptions, q as ApprovalSource, C as CatalogModel, s as CheckpointArgs, t as CommandClassification, u as CommandTier, v as CommandWords, D as DEFAULT_PLANNER_ALLOWLIST, w as DENY_ALL, x as DiscoveryCommand, E as EditPlanArgs, F as FetchAllProviderModelsOptions, G as GIT_READONLY_SUBCOMMANDS, H as InvokedCommand, L as LineBuffer, J as ListModelsArgs, K as ListRunnersArgs, M as LoadSkillArgs, N as McpClientConfig, O as McpCredential, P as McpTool, Q as McpToolContext, R as McpToolReply, S as MessageTaskArgs, T as ModelCatalog, U as ModelShortcut, V as ORCHESTRATOR_SHORTCUTS, W as ORDEWELL_MCP_PATH, X as ORDEWELL_MCP_SERVER_NAME, Y as OneTaskArgs, $ as OwnerOnlyFile, a0 as PLANNER_EXECUTION_TOOLS, a1 as PLANNER_TOOLS, a2 as PlannerAllowlist,
|
|
7
|
-
import { T as ToolOutcome, I as IFileSystem, R as ReadFileOpts, b as GrepOptions, a as GlobOptions, F as FindSymbolOptions } from './IFileSystem-
|
|
8
|
-
export { G as GREP_DEFAULT_HEAD_LIMIT, c as GrepOutputMode, S as SEARCH_EXCLUSIONS } from './IFileSystem-
|
|
9
|
-
import { R as RunnerModeInfo } from './ModeResolver-
|
|
10
|
-
export { a as autonomyLevelLabel, p as parseAutonomyLevel, r as runnerModesFrom } from './ModeResolver-
|
|
1
|
+
import { ae as Task, E as ExecutionActor, q as IsolationMergeResult, e as ExecutionRecord, f as GuardTrip, ad as SupervisorLevel, d as ExecutionCommandName, G as GuardTarget, a1 as RunnerId, c as DiscoveredModel, Y as ResearchProgress, X as ResearchLogEntry, C as ConversationMessage, a6 as SkillInfo, a7 as SkillLoad, ab as SkillsService, L as LegacyPlanState, K as PlanStatus, m as IsolationLandedTask, I as IWorktreeIsolation, z as IsolationTaskStatus, H as PlanIsolation, aq as UsageRecord, $ as ResearchToolType, O as PlannerUsage, am as TaskSnapshot, J as PlanState, F as IsolationView, as as Verdict, al as TaskSkillSnapshot } from './Task-AfA1m4qW.js';
|
|
2
|
+
export { A as AttemptUsage, a as AwaitingReason, B as BUILTIN_SKILL_NAMES, D as DEFAULT_RUNNERS, b as DEFAULT_SUPERVISOR_RETRY_LIMIT, g as IntegrationDisposal, h as InvalidSkill, i as IsolationAvailability, j as IsolationHandoff, k as IsolationHandoffRepo, l as IsolationInactiveReason, n as IsolationLanding, o as IsolationMergeBlock, p as IsolationMergeBlockReason, r as IsolationOutcome, s as IsolationPruneResult, t as IsolationRemoval, u as IsolationRepo, v as IsolationRun, w as IsolationTaskRecord, x as IsolationTaskRef, y as IsolationTaskRepo, M as ModelUsage, N as PlanUsage, Q as PrepareIntent, R as PreparedTask, S as PreservedWork, T as PreviousWork, U as RefusedRemoval, V as RepairEvidence, W as RepoGroupLayout, Z as ResearchStep, _ as ResearchStepOutcome, a0 as RunSettings, a2 as SetupFailure, a3 as ShadowedSkill, a4 as SkillAppliesTo, a5 as SkillCatalog, a8 as SkillLoadNotice, a9 as SkillMetadata, aa as SkillSource, ah as TaskIsolation, ai as TaskIsolationState, aj as TaskModelAssignment, an as TaskStatus, ao as TreeSnapshot, ap as UsageLine, ar as UsageTotals, at as VerificationCheck, au as addAttemptUsage, av as addModelUsage, aw as addPlannerUsage, ax as addUsage, ay as addUsageTotals, az as createEmptyPlan, aA as createSkillsService, aB as createTask, aC as endAttemptUsage, aD as flattenTasks, aE as flattenTasksWithParents, aF as isAwaitingReason, aG as isMeasured, aH as isSupervisorLevel, aI as isUserMessage, aJ as migratePlanState, aK as partedPromptUsage, aL as pausedOnLimit, aM as planUsage, aN as plannerContextFill, aO as rejoinPlanTree, aP as startAttemptUsage, aQ as usageLine } from './Task-AfA1m4qW.js';
|
|
3
|
+
import { v as LiveTailOptions, L as LiveTail, S as PlannerModes, ap as TaskOp, t as IsolatedExecution, a7 as SessionBroadcaster, b as ApplyTaskOpsResult, ac as SkillLookup, a9 as SessionNotice, q as EditCatalog, a8 as SessionMessage, R as PlanStore, aq as TaskOrchestrator, u as IsolationRunController, O as OrchestratorObserver, an as TaskLogEvent, I as INotification, s as GlobalRunSettings, $ as RunView, X as RunMergeView, at as TaskOutputSource, aK as UserSettings, ah as SurfacePlan, ai as SurfacePlanState } from './plan-utils-gpeqV-Lp.js';
|
|
4
|
+
export { A as ACT_RISK, a as AUTORUN_RISK, c as ApprovalBlock, d as ApprovalStatus, e as AutoMergeTrigger, B as BlockingSubject, C as CHECKPOINT_TRUNCATE_LENGTH, f as CommandBlock, g as CommandStatus, h as CompactionBlock, i as ConversationInput, j as ConversationView, D as DiffRow, k as DiffRowKind, l as DiffStat, m as DisplayBlock, E as EMPTY_CONVERSATION, n as EMPTY_HOLD, o as EMPTY_RUN, p as EMPTY_TASK_LOG, r as ExecutionSummary, G as GatedConversation, w as LocalEntry, M as MarkdownToken, x as MessageBlock, y as MessageRole, N as NOT_STARTED, z as NO_TURN, F as NewTaskFields, H as NotificationAction, J as OutputPreview, P as PlanBlock, K as PlanMarkerStatus, Q as PlanSnapshot, T as PromptHold, U as RUN_SETTINGS_DEFAULTS, W as RunInput, Y as RunSettingsError, Z as RunTask, _ as RunTaskStatus, a0 as RunnerLoadedBlock, a1 as SUPERVISOR_LEVEL_LABEL, a2 as SerializedConversationMessage, a3 as SerializedPendingTurn, a4 as SerializedPlan, a5 as SerializedTask, a6 as SerializedTaskStatus, aa as SettingsService, ab as SkillLoadBlock, ad as SkillToken, ae as SubagentBlock, af as SubagentChild, ag as SubagentStatus, aj as SurfaceTask, ak as TakenPrompt, al as TaskAttemptSnapshot, am as TaskControlError, ao as TaskLogView, ar as TaskOrchestratorDeps, as as TaskOrchestratorOptions, au as TaskRef, av as TaskRowAction, aw as TaskRowContext, ax as TaskRowIsolation, ay as TaskRowKind, az as TaskRowPlacement, aA as TaskRowSubject, aB as TaskRowUsage, aC as TaskRowView, aD as TaskStatusKind, aE as ThinkingDisplayBlock, aF as ToolBlock, aG as ToolHeadline, aH as ToolStatus, aI as TurnGate, aJ as UsageBlock, aL as aheadOfDraft, aM as applyTaskOps, aN as approvalLabel, aO as automergeSummary, aP as autorunSummary, aQ as awaitingLabel, aR as blockedByLabel, aS as blockingFailures, aT as canMergeTasks, aU as canSetDependencies, aV as canSplitTask, aW as capConflictFiles, aX as classifyOutcome, aY as coalesceTaskLog, aZ as dependencyCandidates, a_ as dependentsNotice, a$ as dependentsOf, b0 as diffRows, b1 as diffStat, b2 as diffSummary, b3 as digestTaskLog, b4 as drainNext, b5 as executionSummary, b6 as followTurn, b7 as fromTranscript, b8 as getSettingsPath, b9 as hasHiddenDetail, ba as holdPrompt, bb as isTaskRunning, bc as loadedSkillTokens, bd as markAction, be as markRequestFor, bf as markdownHtml, bg as markdownTokens, bh as namedRepos, bi as newTaskFields, bj as opsEditable, bk as outputLines, bl as outputPreview, bm as parseCount, bn as parseSwitch, bo as parseTaskOpsJson, bp as pastGateConfirmation, bq as reduceConversation, br as reduceRun, bs as reduceTaskLog, bt as replayTaskLog, bu as resolveTaskRef, bv as resumeLabel, bw as resumeTime, bx as runSettingsOf, by as runnerToolSubject, bz as serializePlan, bA as serializeTask, bB as serializeTaskStatus, bC as skillTokens, bD as skippedLabel, bE as stopTurn, bF as summarizeToolCall, bG as supervisorSummary, bH as surfacePlan, bI as surfacePlanState, bJ as takeAt, bK as taskLogForSurface, bL as taskOrderLabel, bM as taskRef, bN as taskRefOf, bO as taskRowActions, bP as taskRowView, bQ as taskStartedNotice, bR as taskStatusKind, bS as textHasTaskOps, bT as titledRefs, bU as titledTaskRef, bV as titledTaskRefOf, bW as toTaskLogEvent, bX as toolHeadline, bY as trimToolOutput, bZ as truncateCheckpointSummary, b_ as unsendAll, b$ as unsendLatest } from './plan-utils-gpeqV-Lp.js';
|
|
5
|
+
import { I as IApproval, y as IConfig, d as AgentProcessDeps, a as AgentAdapter, _ as OrdewellMcpServer, a6 as PlannerToolHandler, ad as ResearchShell, p as ApprovalRequest, j as ApprovalDecision, i as ApprovalAnswer, z as IRunner, a3 as PlannerBackendId, a9 as ProviderModelLists, f as AiProvider, m as ApprovalModeSetting, aq as RunnerRegistry, Z as OrchestratorOption, aD as TaskModeAgentAdapter, e as AgentStartOptions, c as AgentEvent, ai as RunnerCommand, a7 as ProjectMcpServer, n as ApprovalPolicy, B as IRunnerSession, aA as TaskCompleteArgs, r as CheckpointAnswer, av as StructuredTurnEnd, au as StructuredEvent, aC as TaskMessageFrom, ab as QueuedTaskMessage, aI as TaskStartOptions, aJ as TaskTokenScope, am as RunnerManifest, aH as TaskRunnerFlags } from './IRunner-WwL-Bjqq.js';
|
|
6
|
+
export { A as AUTO_COMMANDS, b as AgentAdapterFactory, g as AllProviderModels, h as AnswerApprovalArgs, k as ApprovalKind, l as ApprovalMode, o as ApprovalPolicyOptions, q as ApprovalSource, C as CatalogModel, s as CheckpointArgs, t as CommandClassification, u as CommandTier, v as CommandWords, D as DEFAULT_PLANNER_ALLOWLIST, w as DENY_ALL, x as DiscoveryCommand, E as EditPlanArgs, F as FetchAllProviderModelsOptions, G as GIT_READONLY_SUBCOMMANDS, H as InvokedCommand, L as LineBuffer, J as ListModelsArgs, K as ListRunnersArgs, M as LoadSkillArgs, N as McpClientConfig, O as McpCredential, P as McpTool, Q as McpToolContext, R as McpToolReply, S as MessageTaskArgs, T as ModelCatalog, U as ModelShortcut, V as ORCHESTRATOR_SHORTCUTS, W as ORDEWELL_MCP_PATH, X as ORDEWELL_MCP_SERVER_NAME, Y as OneTaskArgs, $ as OwnerOnlyFile, a0 as PLANNER_EXECUTION_TOOLS, a1 as PLANNER_TOOLS, a2 as PlannerAllowlist, a4 as PlannerStartOptions, a5 as PlannerTokenScope, a8 as ProviderCredentialSource, aa as ProviderModelsResult, ac as REFUSED_COMMANDS, ae as ResearchShellDeps, af as RetryTaskArgs, ag as RunCommandArgs, ah as RunPlanArgs, aj as RunnerCommandKind, ak as RunnerEntry, al as RunnerFeatures, an as RunnerMcpServer, ao as RunnerMode, ap as RunnerModelDiscovery, ar as ShellDialect, as as SpawnFn, at as StandingDecision, aw as SubmitPlanArgs, ax as TASK_COMPLETE_TOOL, ay as TASK_COMPLETION_CONTRACT, az as TASK_TOOLS, aB as TaskDiffArgs, aE as TaskModeUnsupportedError, aF as TaskOutputArgs, aG as TaskQueryArgs, aK as TaskToolHandler, aL as approvalScopes, aM as classifyCommand, aN as clearResearchShellCache, aO as collectProviderCredentials, aP as commandAllowedBy, aQ as effectiveApprovalMode, aR as enabledRunners, aS as fetchAllProviderModels, aT as findRunnerCommand, aU as isGranted, aV as isRunnerApproval, aW as knownModelId, aX as mcpClientConfig, aY as ownerOnlyConfigFile, aZ as parseAllowlist, a_ as parseApprovalModeSetting, a$ as researchShellWarning, b0 as researchToolsPath, b1 as resolveModelShortcut, b2 as resolveProvider, b3 as resolveResearchShell, b4 as scopeAllowed, b5 as sharedMcpServer, b6 as toApprovalDecision, b7 as toOrchestratorOptions, b8 as toolAllowed } from './IRunner-WwL-Bjqq.js';
|
|
7
|
+
import { T as ToolOutcome, I as IFileSystem, R as ReadFileOpts, b as GrepOptions, a as GlobOptions, F as FindSymbolOptions } from './IFileSystem-CyTIoiSn.js';
|
|
8
|
+
export { G as GREP_DEFAULT_HEAD_LIMIT, c as GrepOutputMode, S as SEARCH_EXCLUSIONS } from './IFileSystem-CyTIoiSn.js';
|
|
9
|
+
import { R as RunnerModeInfo } from './ModeResolver-DrMU-5lw.js';
|
|
10
|
+
export { a as autonomyLevelLabel, p as parseAutonomyLevel, r as runnerModesFrom } from './ModeResolver-DrMU-5lw.js';
|
|
11
11
|
import { ChildProcess } from 'child_process';
|
|
12
12
|
import { EventEmitter } from 'events';
|
|
13
13
|
import 'zod/v4';
|
|
@@ -1848,7 +1848,7 @@ declare function formatSearchOutput(capped: CappedRows, root: string, opts: {
|
|
|
1848
1848
|
|
|
1849
1849
|
declare function normalizeGeminiModel(id: string): string;
|
|
1850
1850
|
declare abstract class BaseConfig implements IConfig {
|
|
1851
|
-
abstract aiProvider:
|
|
1851
|
+
abstract aiProvider: PlannerBackendId;
|
|
1852
1852
|
abstract apiKey: string;
|
|
1853
1853
|
abstract planningModel: string;
|
|
1854
1854
|
abstract enabledRunners: string[];
|
|
@@ -1928,7 +1928,7 @@ declare abstract class BaseConfig implements IConfig {
|
|
|
1928
1928
|
get webReadBudget(): number;
|
|
1929
1929
|
get approvalDefaults(): boolean;
|
|
1930
1930
|
get approvalPreApproved(): string[];
|
|
1931
|
-
protected static detectProvider(fallback:
|
|
1931
|
+
protected static detectProvider(fallback: PlannerBackendId): PlannerBackendId;
|
|
1932
1932
|
}
|
|
1933
1933
|
|
|
1934
1934
|
/**
|
|
@@ -1938,7 +1938,7 @@ declare abstract class BaseConfig implements IConfig {
|
|
|
1938
1938
|
* subclass only supplies the abstract members from the environment.
|
|
1939
1939
|
*/
|
|
1940
1940
|
declare class EnvConfig extends BaseConfig {
|
|
1941
|
-
get aiProvider():
|
|
1941
|
+
get aiProvider(): PlannerBackendId;
|
|
1942
1942
|
get apiKey(): string;
|
|
1943
1943
|
get planningModel(): string;
|
|
1944
1944
|
get enabledRunners(): string[];
|
|
@@ -2160,6 +2160,8 @@ declare class OpenAiService extends BaseAiService implements IAiService {
|
|
|
2160
2160
|
* key the user had already replaced.
|
|
2161
2161
|
*/
|
|
2162
2162
|
private getClient;
|
|
2163
|
+
/** The vendor this service talks to; `createAiService` routes every other planner elsewhere. */
|
|
2164
|
+
private vendor;
|
|
2163
2165
|
ensureInit(): void;
|
|
2164
2166
|
private requireModel;
|
|
2165
2167
|
reset(): void;
|
|
@@ -2338,16 +2340,14 @@ declare class RunnerInstallation {
|
|
|
2338
2340
|
clear(): void;
|
|
2339
2341
|
}
|
|
2340
2342
|
|
|
2341
|
-
declare const PROVIDER_LABEL: Record<AiProvider, string>;
|
|
2342
|
-
declare const PROVIDER_SHORT_LABEL: Record<AiProvider, string>;
|
|
2343
2343
|
interface ProviderRegistration {
|
|
2344
|
-
id:
|
|
2344
|
+
id: PlannerBackendId;
|
|
2345
2345
|
label: string;
|
|
2346
2346
|
shortLabel: string;
|
|
2347
2347
|
/** `cli` is a harness planner (ADR-0009): a local coding agent, not an HTTP vendor. */
|
|
2348
2348
|
serviceType: 'openai' | 'google' | 'cli';
|
|
2349
2349
|
/** Harness planners only: the runner id whose manifest, models and binary this provider drives. */
|
|
2350
|
-
runnerId?:
|
|
2350
|
+
runnerId?: RunnerId;
|
|
2351
2351
|
defaultBaseUrl: string;
|
|
2352
2352
|
apiKeyEnvVar: string;
|
|
2353
2353
|
detectEnvVars: string[];
|
|
@@ -2358,10 +2358,25 @@ interface ProviderRegistration {
|
|
|
2358
2358
|
discoversModels: boolean;
|
|
2359
2359
|
modelPrefix?: string;
|
|
2360
2360
|
}
|
|
2361
|
-
declare const
|
|
2361
|
+
declare const PROVIDER_PRIORITY: AiProvider[];
|
|
2362
|
+
declare const PROVIDER_DETECT_PRIORITY: AiProvider[];
|
|
2363
|
+
|
|
2364
|
+
/**
|
|
2365
|
+
* Keyed by planner backend: every vendor has an entry, and a runner id has one
|
|
2366
|
+
* only when that runner can plan, which the type cannot know.
|
|
2367
|
+
*/
|
|
2368
|
+
type ByPlannerBackend<T> = Readonly<Record<AiProvider, T>> & Readonly<Partial<Record<RunnerId, T>>>;
|
|
2369
|
+
declare const ALL_PROVIDERS: ByPlannerBackend<ProviderRegistration>;
|
|
2370
|
+
declare const PROVIDER_LABEL: ByPlannerBackend<string>;
|
|
2371
|
+
declare const PROVIDER_SHORT_LABEL: ByPlannerBackend<string>;
|
|
2362
2372
|
declare function getProviderMeta(id: AiProvider): ProviderRegistration;
|
|
2363
|
-
declare function
|
|
2364
|
-
|
|
2373
|
+
declare function getProviderMeta(id: PlannerBackendId): ProviderRegistration | undefined;
|
|
2374
|
+
/** Whether a planner backend id names an API vendor, the kind that takes a key and a base URL. */
|
|
2375
|
+
declare function isApiProvider(id: PlannerBackendId): id is AiProvider;
|
|
2376
|
+
/** Whether an id names a planner backend at all: a vendor, or a runner that can plan. */
|
|
2377
|
+
declare function isPlannerBackend(id: string): id is PlannerBackendId;
|
|
2378
|
+
declare function prefixModelId(provider: PlannerBackendId, modelId: string): string;
|
|
2379
|
+
declare function stripModelPrefix(id: string, provider: PlannerBackendId): string;
|
|
2365
2380
|
declare function resolveProviderFromPrefix(id: string): AiProvider | null;
|
|
2366
2381
|
/**
|
|
2367
2382
|
* The harness planners, in display order. Deliberately NOT part of
|
|
@@ -2371,10 +2386,8 @@ declare function resolveProviderFromPrefix(id: string): AiProvider | null;
|
|
|
2371
2386
|
* that offer a planner picker concatenate the two lists and gate these on
|
|
2372
2387
|
* `RunnerInstallation.plannerUsability`.
|
|
2373
2388
|
*/
|
|
2374
|
-
declare const CLI_PROVIDERS:
|
|
2375
|
-
declare
|
|
2376
|
-
declare const PROVIDER_DETECT_PRIORITY: AiProvider[];
|
|
2377
|
-
declare function isOpenAiProvider(id: AiProvider): boolean;
|
|
2389
|
+
declare const CLI_PROVIDERS: readonly RunnerId[];
|
|
2390
|
+
declare function isOpenAiProvider(id: PlannerBackendId): boolean;
|
|
2378
2391
|
/**
|
|
2379
2392
|
* The one guard that separates a harness planner from an LLM vendor (ADR-0009).
|
|
2380
2393
|
* Three places consult it: API-key resolution (skipped — the subscription is
|
|
@@ -2382,24 +2395,24 @@ declare function isOpenAiProvider(id: AiProvider): boolean;
|
|
|
2382
2395
|
* the planner-model picker (fed by per-runner discovery, not the vendor
|
|
2383
2396
|
* catalog).
|
|
2384
2397
|
*/
|
|
2385
|
-
declare function isCliProvider(id:
|
|
2386
|
-
/** The runner a harness planner drives, or null for a vendor provider. */
|
|
2387
|
-
declare function runnerForProvider(id:
|
|
2398
|
+
declare function isCliProvider(id: PlannerBackendId): boolean;
|
|
2399
|
+
/** The runner a harness planner drives, or null for a vendor provider or an unknown id. */
|
|
2400
|
+
declare function runnerForProvider(id: PlannerBackendId): RunnerId | null;
|
|
2388
2401
|
/** The harness planner that wraps a given runner, or null when none does. */
|
|
2389
|
-
declare function providerForRunner(runner:
|
|
2402
|
+
declare function providerForRunner(runner: RunnerId): PlannerBackendId | null;
|
|
2390
2403
|
/** One runner's planner usability, as `RunnerInstallation.plannerUsability` reports it. */
|
|
2391
2404
|
interface PlannerUsability {
|
|
2392
2405
|
usable: boolean;
|
|
2393
2406
|
reason?: string;
|
|
2394
2407
|
}
|
|
2395
2408
|
/**
|
|
2396
|
-
* One entry of the planner backend list (ADR-0009). `id` is the
|
|
2397
|
-
* either way; `runner` is set only for a harness planner, whose model catalog
|
|
2409
|
+
* One entry of the planner backend list (ADR-0009). `id` is the
|
|
2410
|
+
* `PlannerBackendId` either way; `runner` is set only for a harness planner, whose model catalog
|
|
2398
2411
|
* comes from that runner, and `reason` is the second line a surface renders —
|
|
2399
2412
|
* the block detail for a harness planner, the API-key variable for a vendor.
|
|
2400
2413
|
*/
|
|
2401
2414
|
interface PlannerBackendEntry {
|
|
2402
|
-
id:
|
|
2415
|
+
id: PlannerBackendId;
|
|
2403
2416
|
label: string;
|
|
2404
2417
|
kind: 'harness' | 'vendor';
|
|
2405
2418
|
runner?: string;
|
|
@@ -4323,8 +4336,8 @@ interface TaskLogResponse {
|
|
|
4323
4336
|
type SessionListResponse = SessionMeta[];
|
|
4324
4337
|
interface SettingsResponse {
|
|
4325
4338
|
orchestratorModel: string;
|
|
4326
|
-
/** Who plans (ADR-0009) — a vendor id, or
|
|
4327
|
-
aiProvider:
|
|
4339
|
+
/** Who plans (ADR-0009) — a vendor id, or a runner serving as a harness planner. */
|
|
4340
|
+
aiProvider: PlannerBackendId;
|
|
4328
4341
|
plannerThinkingEffort: string;
|
|
4329
4342
|
maxParallel: number;
|
|
4330
4343
|
modelAllowlist: UserSettings['modelAllowlist'];
|
|
@@ -5180,13 +5193,13 @@ declare function savePrdMarkdown(workspace: string, slug: string, markdown: stri
|
|
|
5180
5193
|
|
|
5181
5194
|
/** Who plans, with which model and effort. Blank means unset. */
|
|
5182
5195
|
interface PlannerSelectionState {
|
|
5183
|
-
provider:
|
|
5196
|
+
provider: PlannerBackendId;
|
|
5184
5197
|
model: string;
|
|
5185
5198
|
effort: string;
|
|
5186
5199
|
}
|
|
5187
5200
|
/** What one user action asked for; an absent field leaves that part alone. */
|
|
5188
5201
|
interface PlannerSelectionChange {
|
|
5189
|
-
provider?:
|
|
5202
|
+
provider?: PlannerBackendId;
|
|
5190
5203
|
model?: string;
|
|
5191
5204
|
effort?: string;
|
|
5192
5205
|
}
|
|
@@ -5216,4 +5229,4 @@ declare const DEFAULT_MAX_PARALLEL = 5;
|
|
|
5216
5229
|
*/
|
|
5217
5230
|
declare function parseMaxParallel(value: unknown): number | null;
|
|
5218
5231
|
|
|
5219
|
-
export { ALL_PROVIDERS, AbstractRunner, AbstractRunnerSession, type AdoptSessionResponse, type Adr0013IsolationRun, type Adr0013PlanIsolation, type Adr0013TaskRecord, AgentAdapter, AgentEvent, AgentProcessDeps, AgentStartOptions, AiProvider, AlreadyExecutingError, ApplyTaskOpsResult, ApprovalAnswer, type ApprovalAnswerResponse, ApprovalDecision, ApprovalModeSetting, ApprovalPolicy, ApprovalRequest, type ApprovalsResponse, type AskOptions, BaseAiService, BaseConfig, BaseFileSystem, BufferedTaskOutputSource, CLAUDE_CODE_MANIFEST, CLI_PROVIDERS, CMD_EXE_MAX_COMMAND_LINE, CODEX_SANDBOX_DOCS, CODEX_SANDBOX_OFF_LINE, type CachedPage, type CancelPlanningResponse, type CancelResumeResponse, type CappedRows, CheckpointAnswer, type CheckpointListener, ClaudeCodeAdapter, CliAgentAiService, type CliAgentAiServiceDeps, CodexAdapter, CodexSandboxAvailability, type CommandDescriptor, CommandLineTooLongError, type CommandOutcome, type CommandsResponse, type Consent, ConsoleLogger, ContextCollector, type Continuability, ConversationBusyError, type ConversationCompactResponse, type ConversationCompaction, ConversationEditError, type ConversationFork, type ConversationForkResponse, ConversationMessage, type ConversationRequest, type ConversationRewind, type ConversationRewindResponse, type ConversationTurn, DAEMON_SUBPROTOCOL, DAEMON_TOKEN_SUBPROTOCOL_PREFIX, DEFAULT_MAX_PARALLEL, DEFAULT_WEB_READ_BUDGET, type DaemonErrorCode, type DecideOptions, type DirEntry, DiscoveredModel, DuckDuckGoSearchProvider, EmbeddedNewlineError, type EnvAdmission, EnvConfig, type ErrorBody, type ExecImpl, ExecutableNotFoundError, type ExecuteResponse, ExecutionActor, type ExecutionCommand, ExecutionCommandName, ExecutionCommands, type ExecutionHost, ExecutionRecord, FindSymbolOptions, type ForceSendResponse, GREP_PCRE_PROBE_ARGS, GeminiService, type GeneratePlanResponse, type GitExecFn, GlobOptions, GlobalRunSettings, type GrepInvocation, GrepOptions, type GrepRegex, GuardTarget, GuardTrip, HARNESS_PLANNER_REASON, type HasBinFn, HttpWebFetcher, type HttpWebFetcherOptions, type IAiService, IApproval, IConfig, IFileSystem, type ILogger, INotification, IRunner, IRunnerSession, type ISearchProvider, IWorktreeIsolation, type IsolationDiffResponse, IsolationLandedTask, type IsolationMergeResponse, IsolationMergeResult, IsolationTaskStatus, IsolationView, type KillTreeDeps, type LaunchDeps, type LaunchPlan, LegacyPlanState, type LiveOutputLookup, LiveTail, LiveTailOptions, type LoopGuard, type MappedTool, type MergeGateEntry, type MergeGateResponse, ModelResolver, type ModelResolverDeps, type ModelsResponse, NoPlanError, OPENCODE_MANIFEST, ORDEWELL_SETTABLE_ENV, OUTPUT_LINES_DEFAULT, OUTPUT_LINES_MAX, type OkResponse, OpenAiService, OpenCodeAdapter, OrchestratorObserver, OrchestratorOption, OrdewellMcpServer, PROVIDER_CREDENTIAL_ENV, PROVIDER_DETECT_PRIORITY, PROVIDER_LABEL, PROVIDER_PRIORITY, PROVIDER_SHORT_LABEL, type PendingApproval, PendingApprovals, type PendingApprovalsOptions, PlanEditError, PlanIsolation, type PlanRequest, type PlanResponse, PlanState, PlanStore, Planner, type PlannerBackendEntry, type PlannerModelCandidate, type PlannerModelChoice, type PlannerModelLookup, PlannerModelMemory, type PlannerModelRecall, type PlannerModelStore, type PlannerSelectionChange, type PlannerSelectionResult, type PlannerSelectionState, type PlannerSubmission, PlannerToolHandler, PlannerTurnDiscardedError, PlannerTurnStoppedError, type PlannerUsability, PlannerUsage, type PrdBlock, type PrdResponse, ProviderModelLists, type ProviderRegistration, QueuedTaskMessage, ReadFileOpts, type RemoveMessageResponse, type ResearchChat, ResearchLogEntry, ResearchShell, type ResearchTurn, type ResolveConflictResponse, type RewindTarget, type RewindTargetsResponse, RunMergeView, type RunSnapshotFrame, RunView, RunnerApprovals, RunnerCommand, RunnerId, RunnerInstallation, RunnerManifest, RunnerModeInfo, RunnerRegistry, type RunnerSpawnOptions, type RunnersResponse, SETTINGS_ENV_ALLOWLIST, SETTINGS_ENV_REFUSED, STATE_DIR, STATE_DIR_IGNORE, STOPPED_TOOL_RESULT, SUPERVISOR_LEVELS, SYMBOL_LANGUAGES, type SaveSession, type SearchHit, type SearchOutcome, type SearchPage, type SearchTransport, Session, SessionBroadcaster, type SessionData, type SessionDeps, type SessionListResponse, SessionMessage, type SessionMeta, SessionNotFoundError, SessionNotice, type SessionPlanner, type SessionResponse, type SessionRuntimeSettings, type SettingsResponse, type SettingsUpdateResponse, SkillInfo, type SkillInvocation, SkillLoad, SkillsService, type SpawnSpec, StdioAgentAdapter, type StopResponse, StructuredEvent, StructuredRunner, type StructuredRunnerDeps, StructuredSession, StructuredTurnEnd, SupervisorLevel, type SupervisorPolicy, SurfacePlan, SurfacePlanState, TASK_QUERY_ANSWER_MAX_CHARS, TASK_QUERY_ANSWER_OR_OPS, TASK_QUERY_FIELDS, TASK_QUERY_PROTOCOL, TASK_QUERY_REMINDER, Task, TaskCompleteArgs, type TaskLogAttemptsResponse, TaskLogEvent, type TaskLogFile, type TaskLogLocation, TaskLogRecorder, type TaskLogRecorderDeps, type TaskLogResponse, TaskMessageFrom, type TaskMessageResponse, TaskModeAgentAdapter, TaskOp, TaskOrchestrator, TaskOutputSource, type TaskQuery, type TaskQueryCatalog, type TaskQueryField, TaskRunnerFlags, TaskStartOptions, TaskTokenScope, type TokenCarriers, type ToolCall, ToolOutcome, type ToolResult, UsageRecord, UserSettings, VerdictEngine, type VerdictListener, WINDOWS_MAX_COMMAND_LINE, type WebRead, type WebReadDecision, type WebResponse, WebResponseCache, type WebResponseCacheOptions, type WebTransport, type WorkspaceCheckDeps, WorkspaceNotAProjectError, WorkspaceNotFoundError, type WorkspaceProjectCheckDeps, type WorkspacesResponse, type WorktreeIsolationDeps, abbreviateHome, admitSettingsEnv, applyHeadLimit, assertWorkspaceExists, assertWorkspaceIsProject, augmentedPath, bearerHeaderValue, buildFallbackGrepArgs, buildGlobArgs, buildGrepArgs, canContinue, clearAugmentedPathCache, clearDaemonToken, clearState, clipboardCopyCommand, codexSandboxNotice, configuredProviders, continuability, createAiService, createSession, createTaskAdapter, createWorktreeIsolation, daemonTokenPath, defaultLogger, definitionPattern, deleteSession, describeMergeResult, discoverGeminiModels, ensureDir, ensurePrivateDir, ensureStateDirIgnored, extractPrdBlock, extractPresentedToken, filterFallbackByAnchoredInclude, formatSearchOutput, getLatestSession, getProviderMeta, getStateDir, globalDataDir, grantScopeFor, grepRegexFromProbe, idSegment, includeGlobFor, isCliProvider, isExecutableResolved, isOpenAiProvider, killTree, languageForId, listSessions, listTaskLogAttempts, listTree, loadSession, loadSessionPlanState, loadState, looksLikeChallenge, mapAgentTool, migrateOldConfigDir, migratePlanIsolation, mintDaemonToken, mintSessionId, normalizeAgentArgs, normalizeGeminiModel, openTaskLog, parseMaxParallel, parseSearchHits, parseTaskQueryJson, planDirectLaunch, plannerBackendEntries, plannerMessage, plannerTranscript, prefixModelId, providerForRunner, readDaemonToken, readTaskLog, referencePattern, removedPluginNotice, renderTaskQueryAnswer, resolveProviderFromPrefix, resolveSkillInvocation, resolveTaskRunnerFlags, resolveWithin, runnerForProvider, sanitizeSlug, savePrdMarkdown, saveSession, saveState, selectPlanner, sessionDataDir, sessionRuntimeSettings, sharedSearchProvider, sharedWebResponseCache, stateExists, stripAnsi, stripModelPrefix, supportsTaskMode, taskQuerySignature, textHasTaskQuery, tokenSubprotocols, tokensMatch, wellKnownBinDirs, windowsCommandLine, withPath, writePrivateFile };
|
|
5232
|
+
export { ALL_PROVIDERS, AbstractRunner, AbstractRunnerSession, type AdoptSessionResponse, type Adr0013IsolationRun, type Adr0013PlanIsolation, type Adr0013TaskRecord, AgentAdapter, AgentEvent, AgentProcessDeps, AgentStartOptions, AiProvider, AlreadyExecutingError, ApplyTaskOpsResult, ApprovalAnswer, type ApprovalAnswerResponse, ApprovalDecision, ApprovalModeSetting, ApprovalPolicy, ApprovalRequest, type ApprovalsResponse, type AskOptions, BaseAiService, BaseConfig, BaseFileSystem, BufferedTaskOutputSource, type ByPlannerBackend, CLAUDE_CODE_MANIFEST, CLI_PROVIDERS, CMD_EXE_MAX_COMMAND_LINE, CODEX_SANDBOX_DOCS, CODEX_SANDBOX_OFF_LINE, type CachedPage, type CancelPlanningResponse, type CancelResumeResponse, type CappedRows, CheckpointAnswer, type CheckpointListener, ClaudeCodeAdapter, CliAgentAiService, type CliAgentAiServiceDeps, CodexAdapter, CodexSandboxAvailability, type CommandDescriptor, CommandLineTooLongError, type CommandOutcome, type CommandsResponse, type Consent, ConsoleLogger, ContextCollector, type Continuability, ConversationBusyError, type ConversationCompactResponse, type ConversationCompaction, ConversationEditError, type ConversationFork, type ConversationForkResponse, ConversationMessage, type ConversationRequest, type ConversationRewind, type ConversationRewindResponse, type ConversationTurn, DAEMON_SUBPROTOCOL, DAEMON_TOKEN_SUBPROTOCOL_PREFIX, DEFAULT_MAX_PARALLEL, DEFAULT_WEB_READ_BUDGET, type DaemonErrorCode, type DecideOptions, type DirEntry, DiscoveredModel, DuckDuckGoSearchProvider, EmbeddedNewlineError, type EnvAdmission, EnvConfig, type ErrorBody, type ExecImpl, ExecutableNotFoundError, type ExecuteResponse, ExecutionActor, type ExecutionCommand, ExecutionCommandName, ExecutionCommands, type ExecutionHost, ExecutionRecord, FindSymbolOptions, type ForceSendResponse, GREP_PCRE_PROBE_ARGS, GeminiService, type GeneratePlanResponse, type GitExecFn, GlobOptions, GlobalRunSettings, type GrepInvocation, GrepOptions, type GrepRegex, GuardTarget, GuardTrip, HARNESS_PLANNER_REASON, type HasBinFn, HttpWebFetcher, type HttpWebFetcherOptions, type IAiService, IApproval, IConfig, IFileSystem, type ILogger, INotification, IRunner, IRunnerSession, type ISearchProvider, IWorktreeIsolation, type IsolationDiffResponse, IsolationLandedTask, type IsolationMergeResponse, IsolationMergeResult, IsolationTaskStatus, IsolationView, type KillTreeDeps, type LaunchDeps, type LaunchPlan, LegacyPlanState, type LiveOutputLookup, LiveTail, LiveTailOptions, type LoopGuard, type MappedTool, type MergeGateEntry, type MergeGateResponse, ModelResolver, type ModelResolverDeps, type ModelsResponse, NoPlanError, OPENCODE_MANIFEST, ORDEWELL_SETTABLE_ENV, OUTPUT_LINES_DEFAULT, OUTPUT_LINES_MAX, type OkResponse, OpenAiService, OpenCodeAdapter, OrchestratorObserver, OrchestratorOption, OrdewellMcpServer, PROVIDER_CREDENTIAL_ENV, PROVIDER_DETECT_PRIORITY, PROVIDER_LABEL, PROVIDER_PRIORITY, PROVIDER_SHORT_LABEL, type PendingApproval, PendingApprovals, type PendingApprovalsOptions, PlanEditError, PlanIsolation, type PlanRequest, type PlanResponse, PlanState, PlanStore, Planner, type PlannerBackendEntry, PlannerBackendId, type PlannerModelCandidate, type PlannerModelChoice, type PlannerModelLookup, PlannerModelMemory, type PlannerModelRecall, type PlannerModelStore, type PlannerSelectionChange, type PlannerSelectionResult, type PlannerSelectionState, type PlannerSubmission, PlannerToolHandler, PlannerTurnDiscardedError, PlannerTurnStoppedError, type PlannerUsability, PlannerUsage, type PrdBlock, type PrdResponse, ProviderModelLists, type ProviderRegistration, QueuedTaskMessage, ReadFileOpts, type RemoveMessageResponse, type ResearchChat, ResearchLogEntry, ResearchShell, type ResearchTurn, type ResolveConflictResponse, type RewindTarget, type RewindTargetsResponse, RunMergeView, type RunSnapshotFrame, RunView, RunnerApprovals, RunnerCommand, RunnerId, RunnerInstallation, RunnerManifest, RunnerModeInfo, RunnerRegistry, type RunnerSpawnOptions, type RunnersResponse, SETTINGS_ENV_ALLOWLIST, SETTINGS_ENV_REFUSED, STATE_DIR, STATE_DIR_IGNORE, STOPPED_TOOL_RESULT, SUPERVISOR_LEVELS, SYMBOL_LANGUAGES, type SaveSession, type SearchHit, type SearchOutcome, type SearchPage, type SearchTransport, Session, SessionBroadcaster, type SessionData, type SessionDeps, type SessionListResponse, SessionMessage, type SessionMeta, SessionNotFoundError, SessionNotice, type SessionPlanner, type SessionResponse, type SessionRuntimeSettings, type SettingsResponse, type SettingsUpdateResponse, SkillInfo, type SkillInvocation, SkillLoad, SkillsService, type SpawnSpec, StdioAgentAdapter, type StopResponse, StructuredEvent, StructuredRunner, type StructuredRunnerDeps, StructuredSession, StructuredTurnEnd, SupervisorLevel, type SupervisorPolicy, SurfacePlan, SurfacePlanState, TASK_QUERY_ANSWER_MAX_CHARS, TASK_QUERY_ANSWER_OR_OPS, TASK_QUERY_FIELDS, TASK_QUERY_PROTOCOL, TASK_QUERY_REMINDER, Task, TaskCompleteArgs, type TaskLogAttemptsResponse, TaskLogEvent, type TaskLogFile, type TaskLogLocation, TaskLogRecorder, type TaskLogRecorderDeps, type TaskLogResponse, TaskMessageFrom, type TaskMessageResponse, TaskModeAgentAdapter, TaskOp, TaskOrchestrator, TaskOutputSource, type TaskQuery, type TaskQueryCatalog, type TaskQueryField, TaskRunnerFlags, TaskStartOptions, TaskTokenScope, type TokenCarriers, type ToolCall, ToolOutcome, type ToolResult, UsageRecord, UserSettings, VerdictEngine, type VerdictListener, WINDOWS_MAX_COMMAND_LINE, type WebRead, type WebReadDecision, type WebResponse, WebResponseCache, type WebResponseCacheOptions, type WebTransport, type WorkspaceCheckDeps, WorkspaceNotAProjectError, WorkspaceNotFoundError, type WorkspaceProjectCheckDeps, type WorkspacesResponse, type WorktreeIsolationDeps, abbreviateHome, admitSettingsEnv, applyHeadLimit, assertWorkspaceExists, assertWorkspaceIsProject, augmentedPath, bearerHeaderValue, buildFallbackGrepArgs, buildGlobArgs, buildGrepArgs, canContinue, clearAugmentedPathCache, clearDaemonToken, clearState, clipboardCopyCommand, codexSandboxNotice, configuredProviders, continuability, createAiService, createSession, createTaskAdapter, createWorktreeIsolation, daemonTokenPath, defaultLogger, definitionPattern, deleteSession, describeMergeResult, discoverGeminiModels, ensureDir, ensurePrivateDir, ensureStateDirIgnored, extractPrdBlock, extractPresentedToken, filterFallbackByAnchoredInclude, formatSearchOutput, getLatestSession, getProviderMeta, getStateDir, globalDataDir, grantScopeFor, grepRegexFromProbe, idSegment, includeGlobFor, isApiProvider, isCliProvider, isExecutableResolved, isOpenAiProvider, isPlannerBackend, killTree, languageForId, listSessions, listTaskLogAttempts, listTree, loadSession, loadSessionPlanState, loadState, looksLikeChallenge, mapAgentTool, migrateOldConfigDir, migratePlanIsolation, mintDaemonToken, mintSessionId, normalizeAgentArgs, normalizeGeminiModel, openTaskLog, parseMaxParallel, parseSearchHits, parseTaskQueryJson, planDirectLaunch, plannerBackendEntries, plannerMessage, plannerTranscript, prefixModelId, providerForRunner, readDaemonToken, readTaskLog, referencePattern, removedPluginNotice, renderTaskQueryAnswer, resolveProviderFromPrefix, resolveSkillInvocation, resolveTaskRunnerFlags, resolveWithin, runnerForProvider, sanitizeSlug, savePrdMarkdown, saveSession, saveState, selectPlanner, sessionDataDir, sessionRuntimeSettings, sharedSearchProvider, sharedWebResponseCache, stateExists, stripAnsi, stripModelPrefix, supportsTaskMode, taskQuerySignature, textHasTaskQuery, tokenSubprotocols, tokensMatch, wellKnownBinDirs, windowsCommandLine, withPath, writePrivateFile };
|