@ordewell/core 0.12.2 → 0.12.4
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/{ModeResolver-CA2fUU9h.d.mts → ModeResolver-CkZnbIqs.d.mts} +1 -1
- package/dist/{ModeResolver-B64aUZXJ.d.ts → ModeResolver-DS-aCVOP.d.ts} +1 -1
- package/dist/{Task-CxGgN6I0.d.mts → Task-D3O49EUo.d.mts} +43 -6
- package/dist/{Task-CxGgN6I0.d.ts → Task-D3O49EUo.d.ts} +43 -6
- package/dist/{chunk-RZ23BMVR.mjs → chunk-3S5IVTZM.mjs} +80 -22
- package/dist/chunk-3S5IVTZM.mjs.map +1 -0
- package/dist/{chunk-FX33UKAD.mjs → chunk-IOYBL3E5.mjs} +3 -3
- package/dist/{chunk-UDUATSCJ.mjs → chunk-MJKCU4U7.mjs} +1 -1
- package/dist/{chunk-UDUATSCJ.mjs.map → chunk-MJKCU4U7.mjs.map} +1 -1
- package/dist/{chunk-PKJTN2PD.mjs → chunk-POD3KZQW.mjs} +7 -1
- package/dist/chunk-POD3KZQW.mjs.map +1 -0
- package/dist/{chunk-2IFKPYPO.mjs → chunk-YZDWWXCB.mjs} +58 -17
- package/dist/chunk-YZDWWXCB.mjs.map +1 -0
- package/dist/{eventStore-CTCSKS9E.d.ts → eventStore-BcoMsZtU.d.mts} +23 -7
- package/dist/{eventStore-CcB8yELZ.d.mts → eventStore-CSFKy48Y.d.ts} +23 -7
- package/dist/index.d.mts +251 -243
- package/dist/index.d.ts +251 -243
- package/dist/index.js +3059 -1448
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2716 -1203
- 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 +43 -15
- package/dist/parsing.js.map +1 -1
- package/dist/parsing.mjs +3 -3
- package/dist/plan-utils.d.mts +4 -4
- package/dist/plan-utils.d.ts +4 -4
- package/dist/plan-utils.js +65 -14
- package/dist/plan-utils.js.map +1 -1
- package/dist/plan-utils.mjs +15 -3
- package/dist/plan-utils.mjs.map +1 -1
- package/dist/{runSettingsText-lKLDsyli.d.ts → runSettingsText-BFaZSPRG.d.ts} +686 -26
- package/dist/{runSettingsText-DFVpe6aU.d.mts → runSettingsText-DWsmcnBq.d.mts} +686 -26
- package/dist/testing.d.mts +46 -3
- package/dist/testing.d.ts +46 -3
- package/dist/testing.js +66 -4
- package/dist/testing.js.map +1 -1
- package/dist/testing.mjs +52 -5
- package/dist/testing.mjs.map +1 -1
- package/docker/task.Dockerfile +7 -4
- package/package.json +1 -1
- package/dist/chunk-2IFKPYPO.mjs.map +0 -1
- package/dist/chunk-PKJTN2PD.mjs.map +0 -1
- package/dist/chunk-RZ23BMVR.mjs.map +0 -1
- /package/dist/{chunk-FX33UKAD.mjs.map → chunk-IOYBL3E5.mjs.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as ApprovalRecord, a as AttemptUsage, b as AwaitingReason, B as BUILTIN_SKILL_NAMES, c as BelowPlan, e as CommandWords, f as ContextCheckpoint, g as ContextFill, h as ConversationMessage, i as CostProvenance, D as DEFAULT_LOOP_ROUNDS, j as DEFAULT_PLANNER_ALLOWLIST, k as DEFAULT_RUNNERS, l as DEFAULT_SCRIPT_TIMEOUT_MS, m as DEFAULT_SUPERVISOR_RETRY_LIMIT, n as DIGEST_FINDINGS, E as EffectRules, r as ExecutionCommandName, s as ExecutionRecord, F as FLOOR_GRANTS, t as FindingSeverity, G as GRANTS, u as Grant, v as GuardTarget, w as GuardTrip, H as HANDOFF_LIMITS, x as HANDOFF_PUSH_CHARS, y as Handoff, z as HandoffArtifact, J as HandoffCommit, K as HandoffDigest, L as HandoffEvidence, M as HandoffFinding, N as HandoffLogs, O as HandoffPatch, P as HandoffPins, Q as HandoffPreviewOptions, R as HandoffTaskName, U as IntegrationDisposal, V as InvalidSkill, W as IsolationAvailability, X as IsolationHandoff, Y as IsolationHandoffRepo, Z as IsolationInactiveReason, _ as IsolationLandedTask, $ as IsolationLanding, a0 as IsolationMergeBlock, a1 as IsolationMergeBlockReason, a2 as IsolationMergeResult, a3 as IsolationOutcome, a4 as IsolationPreview, a5 as IsolationPruneResult, a7 as IsolationRepo, a8 as IsolationRepoRevert, a9 as IsolationRevertResult, aa as IsolationRevertTask, ab as IsolationRun, ac as IsolationTaskRecord, ad as IsolationTaskRef, ae as IsolationTaskRepo, ah as LandedTask, ai as LandedWork, ak as LoopSubject, al as MAX_LOOP_ROUNDS, an as MandateExclusions,
|
|
3
|
-
import { V as IConfig, W as IFileSystem, aE as PlannerToolHandler, ay as PlannerModes, aB as PlannerShellSandbox, aP as ResearchShell, U as IApproval, aN as ReadFileOpts,
|
|
4
|
-
export { A as AUTO_COMMANDS, b as AgentAdapterFactory, g as AllProviderModels, h as AnswerApprovalArgs, l as ApprovalKind, m as ApprovalMode, p as ApprovalPolicyOptions, q as ApprovalRequest, r as ApprovalSource, C as CatalogModel, y as CheckpointArgs, z as ChildSessionPlace, D as CommandClassification, E as CommandTier, F as ConsoleLogger, G as DENY_ALL, H as DiscoveryCommand, I as EditPlanArgs, L as FetchAllProviderModelsOptions, N as GIT_READONLY_SUBCOMMANDS, O as GREP_DEFAULT_HEAD_LIMIT, R as GrepOutputMode, $ as InvokedCommand, a6 as LineBuffer, a7 as ListModelsArgs, a8 as ListRunnersArgs, a9 as LoadSkillArgs, aa as McpClientConfig, ab as McpCredential, ac as McpRefusal, ad as McpTool, ae as McpToolContext, ag as MessageTaskArgs, ah as ModelCatalog, ai as ModelShortcut, ak as NotificationAction, al as ORCHESTRATOR_SHORTCUTS, am as ORDEWELL_MCP_PATH, an as ORDEWELL_MCP_SERVER_NAME, ao as OneTaskArgs, as as OwnSealedRuns, at as OwnerOnlyFile, au as PLANNER_EXECUTION_TOOLS, av as PLANNER_SANDBOX_DOCS, aw as PLANNER_TOOLS, az as PlannerSandboxAvailability, aA as PlannerSandboxDeps, aC as PlannerStartOptions, aD as PlannerTokenScope, aH as ProviderCredentialSource, aJ as ProviderModelsResult, aL as READ_ONLY_TASK_TOOLS, aM as REFUSED_COMMANDS, aQ as ResearchShellDeps, aS as RetryTaskArgs, aT as RunCommandArgs, aU as RunPlanArgs, aV as RunnerAuthSpec, aW as RunnerAuthStatus, aY as RunnerCommandKind, aZ as RunnerEntry, a$ as RunnerFeatures,
|
|
5
|
-
import {
|
|
6
|
-
export { A as ACT_RISK, a as AUTORUN_RISK, d as AccountLimitStatus, e as AccountLimitWindow, f as AccountLimitsFrame, g as AccountLimitsMessage, h as AdoptSessionResponse, i as AnswerEscalationRequest, j as ApplyTaskOpsResult, k as ApprovalAnswerResponse, l as ApprovalBlock, m as ApprovalRequestMessage, n as ApprovalStatus, o as ApprovalsResponse, p as ApproveReviewResponse, q as AskOptions, s as AssignmentIssue, v as AutoMergeTrigger, B as BlockingSubject, C as CHAT_COMMANDS, w as CHECKPOINT_TRUNCATE_LENGTH, x as CancelPlanningResponse, y as CancelResumeResponse, D as CliAgentAiService, E as CliAgentAiServiceDeps, F as CommandBlock, G as CommandDescriptor, I as CommandPayload, J as CommandStatus, K as CommandsResponse, L as CompactionBlock, M as CompactionStatus, N as Consent, P as ConversationBusyError, Q as ConversationCompactResponse, S as ConversationEditError, T as ConversationForkResponse, U as ConversationInput, W as ConversationRewindResponse, Y as ConversationView, Z as DEFAULT_WEB_READ_BUDGET, _ as DELEGATION_OFFERED, $ as DELEGATION_RISK, a0 as DaemonErrorCode, a1 as DecideOptions, a2 as DiffRow, a3 as DiffRowKind, a4 as DiffStat, a5 as DisplayBlock, a6 as EMPTY_CONVERSATION, a7 as EMPTY_HOLD, a8 as EMPTY_RUN, a9 as EMPTY_TASK_LOG, aa as EMPTY_TASK_LOG_FOLLOW, ab as ErrorBody, ad as EscalationInput, ae as EscalationKind, af as EscalationOption, ag as EscalationOptionId, ah as EscalationRun, ai as EscalationsResponse, aj as ExecuteCommandResponse, ak as ExecuteResponse, am as ExecutionCommands, an as ExecutionHost, ao as ExecutionSummary, ap as GatedConversation, aq as GeneratePlanResponse, as as HEADLESS_CLI_COMMANDS, at as HandoffBlock, au as HandoffForkRepo, av as HandoffPeekSubject, ax as IDLE_ACTIVITY, az as IsolationDiffResponse, aA as IsolationMergeResponse, aB as IsolationPreviewNotice, aC as IsolationPreviewResponse, aD as LEASE_HEARTBEAT_MS, aE as LEASE_STALE_MS, aG as LeaseHostKind, aH as LeaseHostOptions, aI as LiveOutputLookup, aL as LocalEntry, aM as LoopCheckFacts, aN as LoopCheckState, aO as LoopGuard, aP as MappedTool, aQ as MarkdownToken, aR as MergeGateEntry, aS as MergeGateResponse, aT as MergeWordingHandoff, aU as MessageBlock, aV as MessageRole, aW as ModelsResponse, aX as NOT_STARTED, aY as NO_TURN, aZ as NewTaskFields, b0 as OUTPUT_LINES_DEFAULT, b1 as OUTPUT_LINES_MAX, b2 as OkResponse, b3 as OpRef, b4 as OpRefusal, b6 as OutputPreview, b7 as OverrideDirection, b8 as PLANNED_WITH_LABEL, bb as PendingApprovalsOptions, bc as PlanBlock, bd as PlanBlocks, bf as PlanMarkerStatus, bg as PlanResponse, bh as PlanSnapshot, bj as PlannerCommandSyntax, bp as PlannerModelChoice, bq as PlannerModelMemory, bt as PlannerNotReady, bu as PlannerNotReadyError, bv as PlannerReadinessConfig, bw as PlannerSubmission, bx as PlannerTurnDiscardedError, by as PlannerTurnStoppedError, bz as PlannerUsageLimitError, bA as PrdResponse, bB as PromptHold, bC as REPORT_PREVIEW_LINES, bD as RUN_SETTINGS_DEFAULTS, bE as ReadRunnerAuthOptions, bI as ResolveConflictResponse, bJ as RevertPreviewTask, bK as RevertRefusal, bL as RevertRefusalReason, bM as RevertScope, bO as RewindTargetsResponse, bQ as RunInput, bS as RunSettingsError, bT as RunSnapshotFrame, bU as RunTask, bV as RunTaskStatus, bZ as RunnerAuthExecOptions, b_ as RunnerAuthExecResult, c0 as RunnerLoadedBlock, c1 as RunnersResponse, c2 as STALLED_LABEL, c3 as STOPPED_BEFORE_START, c4 as STOPPING_LABEL, c5 as SUPERVISOR_LEVEL_LABEL, c6 as SerializedConversationMessage, c7 as SerializedPendingTurn, c8 as SerializedPlan, c9 as SerializedTask, ca as SerializedTaskStatus, cb as ServerInfoResponse, cd as SessionFrame, cf as SessionHeldError, ch as SessionLeaseRecord, ci as SessionListResponse, cl as SessionResponse, cm as SettingsResponse, cn as SettingsService, co as SettingsUpdateResponse, cp as SkillInvocation, cq as SkillLoadBlock, cr as SkillToken, ct as StartAdmission, cu as StopResponse, cv as StreamStamp, cw as SubagentBlock, cx as SubagentChild, cy as SubagentStatus, cB as SubtreeItemView, cC as SubtreeView, cD as SurfacePlan, cE as SurfacePlanState, cF as SurfaceTask, cG as TASK_QUERY_ANSWER_MAX_CHARS, cH as TASK_QUERY_ANSWER_OR_OPS, cI as TASK_QUERY_FIELDS, cJ as TASK_QUERY_PROTOCOL, cK as TASK_QUERY_REMINDER, cL as TERMINAL_UI_COMMANDS, cM as TakenPrompt, cN as TaskAction, cO as TaskActivity, cP as TaskAttemptSnapshot, cQ as TaskLogAttemptsResponse, cR as TaskLogBatch, cT as TaskLogFollow, cU as TaskLogFollowInput, cV as TaskLogHeaderKind, cW as TaskLogHeaderTask, cX as TaskLogHeaderUsage, cY as TaskLogHeaderView, cZ as TaskLogResponse, c_ as TaskLogView, c$ as TaskMessageResponse, d0 as TaskOp, d2 as TaskOrchestratorDeps, d5 as TaskPlacement, d6 as TaskQuery, d8 as TaskQueryField, d9 as TaskRef, db as TaskRevertPreviewResponse, dc as TaskRowAction, dd as TaskRowContext, de as TaskRowDelegated, df as TaskRowHandoff, dg as TaskRowIsolation, dh as TaskRowKind, di as TaskRowLoop, dj as TaskRowPlacement, dk as TaskRowSubject, dl as TaskRowUsage, dm as TaskRowView, dn as TaskRunFacts, dp as TaskStatusKind, dq as ThinkingDisplayBlock, dr as ToolBlock, ds as ToolHeadline, dt as ToolStatus, dv as TreeTask, dx as TurnGate, dy as UsageBlock, dA as WAITS_FOR_APPROVAL_LABEL, dB as WakeUpItem, dG as Worded, dH as WorkspacesResponse, dI as abbreviateHome, dJ as accountLimitPercentText, dK as accountLimitWindowLabel, dL as accountLimitsOf, dM as accountLimitsText, dN as accountLimitsTitle, dO as activityLabel, dP as aheadOfDraft, dQ as applyTaskOps, dR as approvalKindText, dS as approvalLabel, dT as approvalStatusText, dU as assignedRunnerOf, dV as assignmentIssue, dW as assignmentIssueText, dX as attachingLabel, dY as automergeSummary, dZ as autorunSummary, d_ as awaitingLabel, d$ as blockNotice, e0 as blockNotices, e1 as blockedByLabel, e2 as blockingFailures, e3 as canMergeTasks, e4 as canSetDependencies, e5 as canSplitTask, e6 as capConflictFiles, e7 as cardEditNeedsUnstarted, e8 as cardEditable, e9 as checkoutRule, ea as classifyOutcome, eb as closeTurn, ec as coalesceTaskLog, ed as compactionText, ee as confirmedOverride, ef as createAiService, eg as delegatedRowView, eh as delegationSummary, ei as dependencyCandidates, ej as dependentsNotice, ek as dependentsOf, el as describeHeld, em as describeHolder, en as describeIsolationPreview, eo as describeMergeResult, ep as describePlannerNotReady, eq as diffRows, er as diffStat, es as diffSummary, et as digestTaskLog, eu as drainNext, ev as editableWhileRunning, ew as elapsedSince, ex as escalations, ey as executionSummary, ez as followTaskLog, eA as followTurn, eB as formatElapsed, eC as fromTranscript, eD as getSettingsPath, eE as handoffBaseLine, eF as handoffBranchName, eG as handoffFindingsText, eH as handoffPeekParts, eI as hasAccountLimits, eJ as hasHiddenDetail, eK as hasLongReport, eL as holdLabel, eM as holdPrompt, eO as isRepoGroup, eP as isTaskRunning, eQ as lastServedModel, eR as loadedSkillTokens, eS as logContinues, eT as logResumes, eU as loopBodyLabel, eV as loopBodyRound, eW as loopCheckLabel, eX as loopCheckState, eY as loopLeaveNotice, eZ as loopRowParts, e_ as manualOverrideConfirmation, e$ as manualOverrideStopFirst, f0 as mapAgentTool, f1 as markAction, f2 as markdownHtml, f3 as markdownTokens, f4 as mergeOutcome, f5 as mergePastChecksConfirmation, f6 as mergeTarget, f7 as namedRepos, f8 as newTaskFields, f9 as noExecutorRefusal, fa as normalizeAgentArgs, fb as opRefusalText, fc as opsEditable, fd as outputLines, fe as outputPreview, ff as overrideNeedsConfirmation, fg as parseCount, fh as parseDelegation, fi as parseSwitch, fj as parseTaskOpsJson, fk as parseTaskQueryJson, fl as pastGateConfirmation, fm as planBlocks, fn as planMarkerParts, fo as plannerMessage, fp as plannerNotReady, fq as plannerNotReadyFor, fr as plannerTranscript, fs as processLeaseHost, ft as ranSealed, fu as readRunnerAuth, fv as receiptLabel, fw as reconcileApprovals, fx as recordRunnerAuth, fy as recordedRunnerAuth, fz as reduceConversation, fA as reduceRun, fB as reduceTaskLog, fC as renderTaskQueryAnswer, fD as repairWaitLabel, fE as repairedLanded, fF as repairedNotice, fG as repeatingChecks, fH as replayTaskLog, fI as repoBaseLine, fJ as repoResultLines, fK as reposWithWork, fL as resetRunnerAuth, fM as resolveSkillInvocation, fN as resolveTaskRef, fO as resolveUserTaskRef, fP as resumeLabel, fQ as resumeTime, fR as revertEffect, fS as revertListLine, fT as revertTaskRef, fU as runHoldsEditors, fV as runSettingsOf, fW as runnerToolSubject, fX as scriptExitText, fY as scriptRunText, fZ as secondsText, f_ as serializePlan, f$ as serializeTask, g0 as serializeTaskStatus, g1 as skillTokens, g2 as skippedLabel, g3 as stopTurn, g4 as subtreeIds, g5 as subtreeView, g6 as summarizeToolCall, g7 as supervisorSummary, g8 as surfacePlan, g9 as surfacePlanState, ga as takeAt, gb as taskActionCommand, gc as taskActivity, gd as taskChatAvailable, ge as taskLogCommands, gf as taskLogForSurface, gg as taskLogHeaderView, gh as taskOrderLabel, gi as taskPlacement, gj as taskQuerySignature, gk as taskRef, gl as taskRefOf, gm as taskRowActions, gn as taskRowView, go as taskStartedNotice, gp as taskStatusKind, gq as textHasTaskOps, gr as textHasTaskQuery, gs as titledRefs, gt as titledTaskRef, gu as titledTaskRefOf, gv as toTaskLogEvent, gw as toolHeadline, gx as trailerSummary, gy as trimToolOutput, gz as truncateCheckpointSummary, gA as unsendAll, gB as unsendLatest, gC as wakeUpItems, gD as walkPlan, gE as withoutSealedMark, gF as workspaceEnvOf } from './runSettingsText-lKLDsyli.js';
|
|
7
|
-
import { R as RunnerModeInfo } from './ModeResolver-
|
|
8
|
-
export { a as autonomyLevelLabel, p as parseAutonomyFlag, b as parseAutonomyLevel, r as runnerModesFrom } from './ModeResolver-
|
|
1
|
+
import { b4 as RunnerId, aY as ResearchProgress, bH as UsageRecord, aX as ResearchLogEntry, bq as Task, p as DiscoveredModel, S as IIsolationPreview, T as IWorktreeIsolation, a6 as IsolationRemoval, af as IsolationTaskStatus, ag as IsolationView, ax as PlanIsolation, aj as LegacyPlanState, b5 as RunnerSessionCost, ao as MandateLimits, I as HandoffCheck, bo as SubtreeReport, d as ChildTaskCounts, bK as VerificationCheck, aW as ReportedWindow, aH as PlannerUsage, o as DelegatedRow, bA as TaskSkillSnapshot, bl as SkillsService, at as NodeAuthority, q as ExecutionActor, am as Mandate, aq as MandateRequest, bB as TaskSnapshot, ay as PlanState, bJ as Verdict, bm as StoredHandoff, b8 as ScriptBody } from './Task-D3O49EUo.js';
|
|
2
|
+
export { A as ApprovalRecord, a as AttemptUsage, b as AwaitingReason, B as BUILTIN_SKILL_NAMES, c as BelowPlan, e as CommandWords, f as ContextCheckpoint, g as ContextFill, h as ConversationMessage, i as CostProvenance, D as DEFAULT_LOOP_ROUNDS, j as DEFAULT_PLANNER_ALLOWLIST, k as DEFAULT_RUNNERS, l as DEFAULT_SCRIPT_TIMEOUT_MS, m as DEFAULT_SUPERVISOR_RETRY_LIMIT, n as DIGEST_FINDINGS, E as EffectRules, r as ExecutionCommandName, s as ExecutionRecord, F as FLOOR_GRANTS, t as FindingSeverity, G as GRANTS, u as Grant, v as GuardTarget, w as GuardTrip, H as HANDOFF_LIMITS, x as HANDOFF_PUSH_CHARS, y as Handoff, z as HandoffArtifact, J as HandoffCommit, K as HandoffDigest, L as HandoffEvidence, M as HandoffFinding, N as HandoffLogs, O as HandoffPatch, P as HandoffPins, Q as HandoffPreviewOptions, R as HandoffTaskName, U as IntegrationDisposal, V as InvalidSkill, W as IsolationAvailability, X as IsolationHandoff, Y as IsolationHandoffRepo, Z as IsolationInactiveReason, _ as IsolationLandedTask, $ as IsolationLanding, a0 as IsolationMergeBlock, a1 as IsolationMergeBlockReason, a2 as IsolationMergeResult, a3 as IsolationOutcome, a4 as IsolationPreview, a5 as IsolationPruneResult, a7 as IsolationRepo, a8 as IsolationRepoRevert, a9 as IsolationRevertResult, aa as IsolationRevertTask, ab as IsolationRun, ac as IsolationTaskRecord, ad as IsolationTaskRef, ae as IsolationTaskRepo, ah as LandedTask, ai as LandedWork, ak as LoopSubject, al as MAX_LOOP_ROUNDS, an as MandateExclusions, ap as MandateRefusal, ar as ModelUsage, as as Narrowed, au as PatchFlag, av as PatchView, az as PlanStatus, aA as PlanUsage, aB as PlannerAllowlist, aC as PlannerCompaction, aD as PlannerCompactionOutcome, aE as PlannerContextPause, aG as PlannerResendState, aI as PrepareIntent, aJ as PreparedTask, aK as PreservedWork, aL as PreviewRepo, aM as PreviousWork, aN as REPORT_MAX_CHARS, aO as ROOT_NODE, aP as RefusedRemoval, aQ as RepairEvidence, aR as RepairWait, aS as ReplyRun, aT as RepoGroupLayout, aU as RepoHead, aV as ReportItem, aZ as ResearchStep, a_ as ResearchStepOutcome, b0 as RevertCommand, b1 as RevertWatch, b2 as RootSettings, b3 as RunSettings, b6 as SEVERITY_LABEL, b7 as SHAPE_LIMITS, b9 as ScriptConsent, ba as ScriptResult, bb as SessionBilling, bc as SetupFailure, bd as ShadowedSkill, be as SkillAppliesTo, bf as SkillCatalog, bg as SkillInfo, bh as SkillLoad, bi as SkillLoadNotice, bj as SkillMetadata, bk as SkillSource, bp as SupervisorLevel, bt as TaskEvidence, bu as TaskIsolation, bv as TaskIsolationState, bw as TaskLoop, bx as TaskModelAssignment, bC as TaskStatus, bD as TaskType, bE as TaskUsageSummary, bF as TreeSnapshot, bG as UsageLine, bI as UsageTotals, bL as WrittenTaskRef, bM as actorAuthority, bN as addAttemptUsage, bO as addModelUsage, bP as addPlannerUsage, bQ as addUsage, bR as addUsageTotals, bS as artifactLines, bT as betweenRounds, bU as boundedHandoffLines, bV as byteSize, bW as checkHandoff, bX as checkOf, bY as commandAllowedBy, bZ as commandLine, b_ as contextMeterText, b$ as contextMeterTitle, c0 as costText, c1 as countedSessionCost, c2 as createEmptyPlan, c3 as createSkillsService, c4 as createTask, c5 as effectRuleFor, c6 as endAttemptUsage, c7 as findingLines, c8 as findingRefText, c9 as flattenTasks, ca as flattenTasksWithParents, cb as formatCost, cc as formatTokenCount, cd as handoffDigest, ce as handoffLines, cf as handoffPreviewLines, cg as handoffReferenceText, ch as handoffWakeLines, ci as heldHandoff, cj as heldMandate, ck as heldWords, cl as inLoop, cm as isAwaitingReason, cn as isMeasured, co as isSupervisorLevel, cp as isUserMessage, cq as loopRemovalRefusal, cr as loopRoundOf, cs as mandateRefusalText, ct as migratePlanState, cu as modelCostTitle, cv as namedHandoff, cw as narrow, cx as nodeText, cy as openingLines, cz as outOfRounds, cA as parseAllowlist, cB as parseEffectAllowlist, cC as parseFindingRef, cD as parseListingPage, cE as parsePlanPath, cF as partedPromptUsage, cG as patchChangesText, cH as patchFlagText, cI as patchLines, cJ as patchLinesText, cK as patchText, cL as patchView, cM as pausedOnLimit, cN as pinReference, cO as planUsage, cP as plannerContextFill, cQ as readableTaskIds, cR as rejoinPlanTree, cS as removedAttempt, cT as resolveWrittenRef, cU as resumedSessionWindow, cV as rootAuthority, cW as rootMandate, cX as savedPatchOf, cY as savedPatchView, cZ as savedPatchViews, c_ as scopeAllowed, c$ as scriptBodyOf, d0 as scriptBodyText, d1 as scriptTaskText, d2 as severityLabel, d3 as spentTokens, d4 as startAttemptUsage, d5 as storedHandoff, d6 as subagentCostTitle, d7 as taskUsageSummary, d8 as tasksTotalText, d9 as timeLimitText, da as toolAllowed, db as usageLine, dc as usageText, dd as waitsForApproval, de as withPatch, df as wordsFrom, dg as worstSeverity } from './Task-D3O49EUo.js';
|
|
3
|
+
import { V as IConfig, W as IFileSystem, aE as PlannerToolHandler, ay as PlannerModes, aB as PlannerShellSandbox, aP as ResearchShell, U as IApproval, aN as ReadFileOpts, bP as ToolOutcome, Q as GrepOptions, bo as ShellLaunch, P as GlobOptions, M as FindSymbolOptions, B as BashOptions, bK as TaskShellSite, bJ as TaskShell, Z as IRunner, ax as PlannerBackendId, aI as ProviderModelLists, f as AiProvider, n as ApprovalModeSetting, b7 as RunnerRegistry, a_ as RunnerEnv, aq as OrchestratorOption, d as AgentProcessDeps, bC as TaskModeAgentAdapter, e as AgentStartOptions, a as AgentAdapter, c as AgentEvent, aX as RunnerCommand$1, s as AttachState, k as ApprovalDecision, aG as ProjectMcpServer, _ as IRunnerSession, bt as StructuredTurnEnd, bs as StructuredEvent, bB as TaskMessageFrom, aK as QueuedTaskMessage, bz as TaskCompleteArgs, x as CheckpointAnswer, bf as ScriptExit, af as McpToolReply, X as ILogger, Y as INotification, bH as TaskRunnerConfig, a1 as IsolationRunController, o as ApprovalPolicy, J as EventStore, j as ApprovalAnswer, ap as OpenLease, aF as PostArgs, aO as ReadTaskArgs, ar as OrdewellMcpServer, bL as TaskStartOptions, bM as TaskTokenScope, bO as TaskWebReads, i as ApplyPatchArgs, b6 as RunnerPlacement, b1 as RunnerManifest, bI as TaskRunnerFlags } from './eventStore-CSFKy48Y.js';
|
|
4
|
+
export { A as AUTO_COMMANDS, b as AgentAdapterFactory, g as AllProviderModels, h as AnswerApprovalArgs, l as ApprovalKind, m as ApprovalMode, p as ApprovalPolicyOptions, q as ApprovalRequest, r as ApprovalSource, C as CatalogModel, y as CheckpointArgs, z as ChildSessionPlace, D as CommandClassification, E as CommandTier, F as ConsoleLogger, G as DENY_ALL, H as DiscoveryCommand, I as EditPlanArgs, L as FetchAllProviderModelsOptions, N as GIT_READONLY_SUBCOMMANDS, O as GREP_DEFAULT_HEAD_LIMIT, R as GrepOutputMode, $ as InvokedCommand, a6 as LineBuffer, a7 as ListModelsArgs, a8 as ListRunnersArgs, a9 as LoadSkillArgs, aa as McpClientConfig, ab as McpCredential, ac as McpRefusal, ad as McpTool, ae as McpToolContext, ag as MessageTaskArgs, ah as ModelCatalog, ai as ModelShortcut, ak as NotificationAction, al as ORCHESTRATOR_SHORTCUTS, am as ORDEWELL_MCP_PATH, an as ORDEWELL_MCP_SERVER_NAME, ao as OneTaskArgs, as as OwnSealedRuns, at as OwnerOnlyFile, au as PLANNER_EXECUTION_TOOLS, av as PLANNER_SANDBOX_DOCS, aw as PLANNER_TOOLS, az as PlannerSandboxAvailability, aA as PlannerSandboxDeps, aC as PlannerStartOptions, aD as PlannerTokenScope, aH as ProviderCredentialSource, aJ as ProviderModelsResult, aL as READ_ONLY_TASK_TOOLS, aM as REFUSED_COMMANDS, aQ as ResearchShellDeps, aS as RetryTaskArgs, aT as RunCommandArgs, aU as RunPlanArgs, aV as RunnerAuthSpec, aW as RunnerAuthStatus, aY as RunnerCommandKind, aZ as RunnerEntry, a$ as RunnerFeatures, b2 as RunnerMcpServer, b3 as RunnerMode, b4 as RunnerModelDiscovery, b5 as RunnerModelRef, b8 as SEALED_LIMITS, b9 as SEARCH_EXCLUSIONS, ba as SandboxBackend, bb as SandboxInvocation, bc as SandboxLaunch, bd as SandboxLimits, be as SandboxProfile, bg as ScriptFullOutput, bh as ScriptRun, bi as ScriptStatus, bj as SealedAvailability, bk as SealedRunOptions, bl as SessionData, bm as SessionMeta, bn as ShellDialect, bq as SpawnFn, br as StandingDecision, bu as SubmitPlanArgs, bv as TASK_COMPLETE_TOOL, bw as TASK_COMPLETION_CONTRACT, bx as TASK_SEALED_LIMITS, by as TASK_TOOLS, bA as TaskDiffArgs, bD as TaskModeUnsupportedError, bE as TaskOutputArgs, bF as TaskQueryArgs, bG as TaskRunCommandArgs, bN as TaskToolHandler, bT as approvalScopes, bU as classifyCommand, bV as clearPlannerSandboxCache, bW as clearResearchShellCache, bX as collectProviderCredentials, bY as defaultLogger, bZ as deleteSession, b_ as effectiveApprovalMode, b$ as enabledRunners, c0 as fetchAllProviderModels, c1 as findRunnerCommand, c2 as getLatestSession, c3 as idSegment, c4 as isGranted, c5 as isRunnerApproval, c6 as knownModelId, c7 as listChildSessions, c8 as listSessions, c9 as loadChildSession, ca as loadSession, cb as loadSessionPlanState, cc as mcpClientConfig, cd as ownerOnlyConfigFile, ce as parseApprovalModeSetting, cf as plannerToolSet, cg as researchShellWarning, ch as researchToolsPath, ci as resolveModelShortcut, cj as resolvePlannerSandbox, ck as resolveProvider, cl as resolveResearchShell, cm as saveChildSession, cn as saveSession, co as sessionDataDir, cp as sharedMcpServer, cq as taskCompletionContract, cr as taskToolSet, cs as toApprovalDecision, ct as toOrchestratorOptions, cu as toolListing } from './eventStore-CSFKy48Y.js';
|
|
5
|
+
import { dW as TurnBudgets, bB as PlanIntake, aT as IWebFetcher, ad as ConversationTurn, c2 as ResolveAll, e4 as WebReadPolicy, e1 as WebRead, e2 as WebReadDecision, e3 as WebReadOptions, bx as PendingApprovals, aR as IAiService, bH as PlannerContextDeps, bI as PlannerContextStatus, a4 as ContextCondenseRequest, ab as ConversationRequest, bL as PlannerModelCandidate, cj as RunnerAuthExec, a_ as LaunchDeps, ci as RunnerAuth, b as AccountLimitBucket, c as AccountLimitSnapshot, u as AssignmentWriter, t as AssignmentScope, dy as TaskQueryCatalog, r as AssignmentCatalog, cm as RunnerCatalog, dg as TaskLogEvent, dU as TreeLedger, H as ChildMessageOutcome, L as ChildPlanView, M as ChildTaskControl, F as ChildControlOutcome, cJ as SessionMessage, cK as SessionNotice, J as ChildPlanEntry, cC as SessionBroadcaster, bF as PlanStore, ds as TaskOrchestrator, aw as Escalation, bs as OrchestratorObserver, cE as SessionHeld, cS as SlotPool, bm as NodeBudget, c1 as ResearchTasks, aM as GlobalRunSettings, cG as SessionLease, bK as PlannerConversationHost, bJ as PlannerConversation, cZ as SubplannerBrief, aG as ExecutionCommand, U as CommandOutcome, bw as PendingApproval, E as Carved, bl as NodeBoard, c_ as Subtree, a7 as ConversationCompaction, c8 as RewindTarget, ch as RunView, dB as TaskRevertPreview, cc as RunMergeView, ca as RunActivity, dv as TaskOutputSource, b0 as LeaseHost, du as TaskOrchestratorOptions, dZ as UserSettings, ao as DockerCli, b5 as LiveTailOptions, b4 as LiveTail, bP as PlannerModelStore, bO as PlannerModelRecall } from './runSettingsText-BFaZSPRG.js';
|
|
6
|
+
export { A as ACT_RISK, a as AUTORUN_RISK, d as AccountLimitStatus, e as AccountLimitWindow, f as AccountLimitsFrame, g as AccountLimitsMessage, h as AdoptSessionResponse, i as AnswerEscalationRequest, j as ApplyTaskOpsResult, k as ApprovalAnswerResponse, l as ApprovalBlock, m as ApprovalRequestMessage, n as ApprovalStatus, o as ApprovalsResponse, p as ApproveReviewResponse, q as AskOptions, s as AssignmentIssue, v as AutoMergeTrigger, B as BatchQuoteError, w as BlockingSubject, C as CHAT_COMMANDS, x as CHECKPOINT_TRUNCATE_LENGTH, y as CMD_EXE_MAX_COMMAND_LINE, z as CancelPlanningResponse, D as CancelResumeResponse, G as ChildListResponse, I as ChildMessageResponse, K as ChildPlanResponse, N as ChildTaskControlResponse, O as ChildTreeFrame, P as CliAgentAiService, Q as CliAgentAiServiceDeps, R as CommandBlock, S as CommandDescriptor, T as CommandLineTooLongError, V as CommandPayload, W as CommandStatus, X as CommandsResponse, Y as CompactionBlock, Z as CompactionStatus, _ as Consent, $ as ContainerChange, a0 as ContainerChangeResponse, a1 as ContainerGuaranteeLine, a2 as ContainerProblem, a3 as ContainerStatus, a5 as ConversationBusyError, a6 as ConversationCompactResponse, a8 as ConversationEditError, a9 as ConversationForkResponse, aa as ConversationInput, ac as ConversationRewindResponse, ae as ConversationView, af as DEFAULT_WEB_READ_BUDGET, ag as DELEGATION_OFFERED, ah as DELEGATION_RISK, ai as DaemonErrorCode, aj as DecideOptions, ak as DiffRow, al as DiffRowKind, am as DiffStat, an as DisplayBlock, ap as EMPTY_CONVERSATION, aq as EMPTY_HOLD, ar as EMPTY_RUN, as as EMPTY_TASK_LOG, at as EMPTY_TASK_LOG_FOLLOW, au as EmbeddedNewlineError, av as ErrorBody, ax as EscalationInput, ay as EscalationKind, az as EscalationOption, aA as EscalationOptionId, aB as EscalationRun, aC as EscalationsResponse, aD as ExecutableNotFoundError, aE as ExecuteCommandResponse, aF as ExecuteResponse, aH as ExecutionCommands, aI as ExecutionHost, aJ as ExecutionSummary, aK as GatedConversation, aL as GeneratePlanResponse, aN as HEADLESS_CLI_COMMANDS, aO as HandoffBlock, aP as HandoffForkRepo, aQ as HandoffPeekSubject, aS as IDLE_ACTIVITY, aU as IsolationDiffResponse, aV as IsolationMergeResponse, aW as IsolationPreviewNotice, aX as IsolationPreviewResponse, aY as LEASE_HEARTBEAT_MS, aZ as LEASE_STALE_MS, a$ as LaunchPlan, b1 as LeaseHostKind, b2 as LeaseHostOptions, b3 as LiveOutputLookup, b6 as LocalEntry, b7 as LoopCheckFacts, b8 as LoopCheckState, b9 as LoopGuard, ba as MappedTool, bb as MarkdownToken, bc as MergeGateEntry, bd as MergeGateResponse, be as MergeWordingHandoff, bf as MessageBlock, bg as MessageRole, bh as ModelsResponse, bi as NOT_STARTED, bj as NO_TURN, bk as NewTaskFields, bn as OUTPUT_LINES_DEFAULT, bo as OUTPUT_LINES_MAX, bp as OkResponse, bq as OpRef, br as OpRefusal, bt as OutputPreview, bu as OverrideDirection, bv as PLANNED_WITH_LABEL, by as PendingApprovalsOptions, bz as PlanBlock, bA as PlanBlocks, bC as PlanMarkerStatus, bD as PlanResponse, bE as PlanSnapshot, bG as PlannerCommandSyntax, bM as PlannerModelChoice, bN as PlannerModelMemory, bQ as PlannerNotReady, bR as PlannerNotReadyError, bS as PlannerReadinessConfig, bT as PlannerSubmission, bU as PlannerTurnDiscardedError, bV as PlannerTurnStoppedError, bW as PlannerUsageLimitError, bX as PrdResponse, bY as PromptHold, bZ as REPORT_PREVIEW_LINES, b_ as RUN_SETTINGS_DEFAULTS, b$ as ReadRunnerAuthOptions, c3 as ResolveConflictResponse, c4 as RevertPreviewTask, c5 as RevertRefusal, c6 as RevertRefusalReason, c7 as RevertScope, c9 as RewindTargetsResponse, cb as RunInput, cd as RunSettingsError, ce as RunSnapshotFrame, cf as RunTask, cg as RunTaskStatus, ck as RunnerAuthExecOptions, cl as RunnerAuthExecResult, cn as RunnerLoadedBlock, co as RunnersResponse, cp as STALLED_LABEL, cq as STOPPED_BEFORE_START, cr as STOPPING_LABEL, cs as SUBPLANNER_ACCOUNTING, ct as SUBPLANNER_CHILD, cu as SUBPLANNER_SCOPE, cv as SUPERVISOR_LEVEL_LABEL, cw as SerializedConversationMessage, cx as SerializedPendingTurn, cy as SerializedPlan, cz as SerializedTask, cA as SerializedTaskStatus, cB as ServerInfoResponse, cD as SessionFrame, cF as SessionHeldError, cH as SessionLeaseRecord, cI as SessionListResponse, cL as SessionResponse, cM as SettingsResponse, cN as SettingsService, cO as SettingsUpdateResponse, cP as SkillInvocation, cQ as SkillLoadBlock, cR as SkillToken, cT as StartAdmission, cU as StopResponse, cV as StreamStamp, cW as SubagentBlock, cX as SubagentChild, cY as SubagentStatus, c$ as SubtreeItemView, d0 as SubtreeView, d1 as SurfacePlan, d2 as SurfacePlanState, d3 as SurfaceTask, d4 as TASK_QUERY_ANSWER_MAX_CHARS, d5 as TASK_QUERY_ANSWER_OR_OPS, d6 as TASK_QUERY_FIELDS, d7 as TASK_QUERY_PROTOCOL, d8 as TASK_QUERY_REMINDER, d9 as TERMINAL_UI_COMMANDS, da as TakenPrompt, db as TaskAction, dc as TaskActivity, dd as TaskAttemptSnapshot, de as TaskLogAttemptsResponse, df as TaskLogBatch, dh as TaskLogFollow, di as TaskLogFollowInput, dj as TaskLogHeaderKind, dk as TaskLogHeaderTask, dl as TaskLogHeaderUsage, dm as TaskLogHeaderView, dn as TaskLogResponse, dp as TaskLogView, dq as TaskMessageResponse, dr as TaskOp, dt as TaskOrchestratorDeps, dw as TaskPlacement, dx as TaskQuery, dz as TaskQueryField, dA as TaskRef, dC as TaskRevertPreviewResponse, dD as TaskRowAction, dE as TaskRowContext, dF as TaskRowDelegated, dG as TaskRowHandoff, dH as TaskRowIsolation, dI as TaskRowKind, dJ as TaskRowLoop, dK as TaskRowPlacement, dL as TaskRowSubject, dM as TaskRowUsage, dN as TaskRowView, dO as TaskRunFacts, dP as TaskStatusKind, dQ as ThinkingDisplayBlock, dR as ToolBlock, dS as ToolHeadline, dT as ToolStatus, dV as TreeTask, dX as TurnGate, dY as UsageBlock, d_ as WAITS_FOR_APPROVAL_LABEL, d$ as WINDOWS_MAX_COMMAND_LINE, e0 as WakeUpItem, e5 as Worded, e6 as WorkspacesResponse, e7 as abbreviateHome, e8 as accountLimitPercentText, e9 as accountLimitWindowLabel, ea as accountLimitsOf, eb as accountLimitsText, ec as accountLimitsTitle, ed as activityLabel, ee as aheadOfDraft, ef as applyTaskOps, eg as approvalKindText, eh as approvalLabel, ei as approvalStatusText, ej as assignedRunnerOf, ek as assignmentIssue, el as assignmentIssueText, em as attachingLabel, en as automergeSummary, eo as autorunSummary, ep as awaitingLabel, eq as blockNotice, er as blockNotices, es as blockedByLabel, et as blockingFailures, eu as canMergeTasks, ev as canSetDependencies, ew as canSplitTask, ex as capConflictFiles, ey as cardEditNeedsUnstarted, ez as cardEditable, eA as changeContainers, eB as checkoutRule, eC as classifyOutcome, eD as closeTurn, eE as coalesceTaskLog, eF as compactionText, eG as confirmedOverride, eH as containerStatus, eI as containersOffered, eJ as createAiService, eK as delegatedRowView, eL as delegationSummary, eM as dependencyCandidates, eN as dependentsNotice, eO as dependentsOf, eP as describeContainers, eQ as describeHeld, eR as describeHolder, eS as describeIsolationPreview, eT as describeMergeResult, eU as describePlannerNotReady, eV as describeProblems, eW as diffRows, eX as diffStat, eY as diffSummary, eZ as digestTaskLog, e_ as drainNext, e$ as editableWhileRunning, f0 as elapsedSince, f1 as escalations, f2 as executionSummary, f3 as followTaskLog, f4 as followTurn, f5 as formatElapsed, f6 as fromTranscript, f7 as getSettingsPath, f8 as handoffBaseLine, f9 as handoffBranchName, fa as handoffFindingsText, fb as handoffPeekParts, fc as hasAccountLimits, fd as hasHiddenDetail, fe as hasLongReport, ff as holdLabel, fg as holdPrompt, fh as isExecutableResolved, fj as isRepoGroup, fk as isTaskRunning, fl as keptDelegationBudget, fm as lastServedModel, fn as loadedSkillTokens, fo as logContinues, fp as logResumes, fq as loopBodyLabel, fr as loopBodyRound, fs as loopCheckLabel, ft as loopCheckState, fu as loopLeaveNotice, fv as loopRowParts, fw as manualOverrideConfirmation, fx as manualOverrideStopFirst, fy as mapAgentTool, fz as markAction, fA as markdownHtml, fB as markdownTokens, fC as mergeOutcome, fD as mergePastChecksConfirmation, fE as mergeTarget, fF as namedRepos, fG as newTaskFields, fH as noExecutorRefusal, fI as normalizeAgentArgs, fJ as opRefusalText, fK as opsEditable, fL as outputLines, fM as outputPreview, fN as overrideNeedsConfirmation, fO as parseCount, fP as parseDelegation, fQ as parseSwitch, fR as parseTaskOpsJson, fS as parseTaskQueryJson, fT as pastGateConfirmation, fU as planBlocks, fV as planDirectLaunch, fW as planMarkerParts, fX as plannerMessage, fY as plannerNotReady, fZ as plannerNotReadyFor, f_ as plannerTranscript, f$ as processLeaseHost, g0 as ranSealed, g1 as readRunnerAuth, g2 as receiptLabel, g3 as reconcileApprovals, g4 as recordRunnerAuth, g5 as recordedRunnerAuth, g6 as reduceConversation, g7 as reduceRun, g8 as reduceTaskLog, g9 as rememberDelegationBudget, ga as renderTaskQueryAnswer, gb as repairWaitLabel, gc as repairedLanded, gd as repairedNotice, ge as repeatingChecks, gf as replayTaskLog, gg as repoBaseLine, gh as repoResultLines, gi as reposWithWork, gj as resetRunnerAuth, gk as resolveSkillInvocation, gl as resolveTaskRef, gm as resolveUserTaskRef, gn as resumeLabel, go as resumeTime, gp as revertEffect, gq as revertListLine, gr as revertTaskRef, gs as runHoldsEditors, gt as runSettingsOf, gu as runnerToolSubject, gv as scriptExitText, gw as scriptRunText, gx as secondsText, gy as serializePlan, gz as serializeTask, gA as serializeTaskStatus, gB as skillTokens, gC as skippedLabel, gD as stopTurn, gE as subtreeIds, gF as subtreeView, gG as summarizeToolCall, gH as supervisorSummary, gI as surfacePlan, gJ as surfacePlanState, gK as takeAt, gL as taskActionCommand, gM as taskActivity, gN as taskChatAvailable, gO as taskLogCommands, gP as taskLogForSurface, gQ as taskLogHeaderView, gR as taskOrderLabel, gS as taskPlacement, gT as taskQuerySignature, gU as taskRef, gV as taskRefOf, gW as taskRowActions, gX as taskRowView, gY as taskStartedNotice, gZ as taskStatusKind, g_ as textHasTaskOps, g$ as textHasTaskQuery, h0 as titledRefs, h1 as titledTaskRef, h2 as titledTaskRefOf, h3 as toTaskLogEvent, h4 as toolHeadline, h5 as trailerSummary, h6 as trimToolOutput, h7 as truncateCheckpointSummary, h8 as unsendAll, h9 as unsendLatest, ha as wakeUpItems, hb as walkPlan, hc as windowsCommandLine, hd as withoutSealedMark, he as workspaceEnvOf } from './runSettingsText-BFaZSPRG.js';
|
|
7
|
+
import { R as RunnerModeInfo } from './ModeResolver-DS-aCVOP.js';
|
|
8
|
+
export { a as autonomyLevelLabel, p as parseAutonomyFlag, b as parseAutonomyLevel, r as runnerModesFrom } from './ModeResolver-DS-aCVOP.js';
|
|
9
9
|
import { WorkerOptions, Worker } from 'worker_threads';
|
|
10
10
|
import { ChildProcess } from 'child_process';
|
|
11
11
|
import { EventEmitter } from 'events';
|
|
@@ -1323,6 +1323,8 @@ interface RunnerInstallationOptions {
|
|
|
1323
1323
|
workspace?: () => string | undefined;
|
|
1324
1324
|
/** Injectable status command runner, so tests need no real agent binary. */
|
|
1325
1325
|
authExec?: RunnerAuthExec;
|
|
1326
|
+
/** How the CLI is located and started, for the spawnability check and the status command alike; a test pins the host's. */
|
|
1327
|
+
launch?: LaunchDeps;
|
|
1326
1328
|
}
|
|
1327
1329
|
/**
|
|
1328
1330
|
* Detects whether a runner's underlying CLI is actually installed on the host,
|
|
@@ -1341,6 +1343,7 @@ declare class RunnerInstallation {
|
|
|
1341
1343
|
private env;
|
|
1342
1344
|
private workspace;
|
|
1343
1345
|
private authExec;
|
|
1346
|
+
private launch;
|
|
1344
1347
|
constructor(registry: RunnerRegistry, execImpl?: ExecImpl, now?: () => number, options?: RunnerInstallationOptions);
|
|
1345
1348
|
/** True if the runner's CLI responds to `--version`. Cached per process. */
|
|
1346
1349
|
isInstalled(runner: string): Promise<boolean>;
|
|
@@ -2522,6 +2525,8 @@ declare class CodexAdapter extends StdioAgentAdapter implements TaskModeAgentAda
|
|
|
2522
2525
|
private openThread;
|
|
2523
2526
|
commands(): RunnerCommand$1[];
|
|
2524
2527
|
invokeCommand(name: string, args: string, onEvent: (event: AgentEvent) => void, signal?: AbortSignal): Promise<void>;
|
|
2528
|
+
/** The path the runner knows its work by: placed, this host's means nothing to it (ADR-0059 L5). */
|
|
2529
|
+
private runnerCwd;
|
|
2525
2530
|
private loadCommands;
|
|
2526
2531
|
/**
|
|
2527
2532
|
* The MCP servers Codex's own configuration would start, every layer of it,
|
|
@@ -3007,6 +3012,8 @@ interface SessionCatalogDeps {
|
|
|
3007
3012
|
config: Pick<IConfig, 'enabledRunners' | 'autonomousMode' | 'aiProvider'>;
|
|
3008
3013
|
/** Whether a task's mode defaults to its runner's autonomous one: a child's mandate says, the config's level unless set (ADR-0056 M6). */
|
|
3009
3014
|
autonomous?: () => boolean;
|
|
3015
|
+
/** The runners and models a child's mandate holds it to, which a live setting can only narrow (ADR-0056 M3). Unset at a root: the settings are what it holds. */
|
|
3016
|
+
held?: () => Pick<MandateLimits, 'runners' | 'models'>;
|
|
3010
3017
|
registry: Pick<RunnerRegistry, 'getManifest'>;
|
|
3011
3018
|
modelResolver: Pick<ModelResolver, 'modelsForRunners' | 'getCachedRunnerModels'>;
|
|
3012
3019
|
/** Read at each call: a toggle or allowlist edit made since the session was built counts (#69). */
|
|
@@ -3034,6 +3041,8 @@ declare class SessionCatalog {
|
|
|
3034
3041
|
private discovered;
|
|
3035
3042
|
constructor(deps: SessionCatalogDeps);
|
|
3036
3043
|
private autonomous;
|
|
3044
|
+
/** The settings as they stand, within what this node's mandate holds. */
|
|
3045
|
+
private assignable;
|
|
3037
3046
|
/** The runners enabled right now. */
|
|
3038
3047
|
enabledRunners(): RunnerId[];
|
|
3039
3048
|
/** The runners `writer` may put a task on now ({@link assignableRunners}); undefined means any. */
|
|
@@ -3110,6 +3119,132 @@ declare class SessionCatalog {
|
|
|
3110
3119
|
}>;
|
|
3111
3120
|
}
|
|
3112
3121
|
|
|
3122
|
+
/**
|
|
3123
|
+
* Which session's logs, under which state root. A child's says which root it
|
|
3124
|
+
* sits under: a session id alone finds a root's (ADR-0055 D11).
|
|
3125
|
+
*/
|
|
3126
|
+
interface TaskLogLocation {
|
|
3127
|
+
baseDir: string;
|
|
3128
|
+
sessionId: string;
|
|
3129
|
+
rootSessionId?: string;
|
|
3130
|
+
}
|
|
3131
|
+
/** One attempt's file, open for appending. */
|
|
3132
|
+
interface TaskLogFile {
|
|
3133
|
+
readonly attempt: number;
|
|
3134
|
+
append(events: readonly TaskLogEvent[]): void;
|
|
3135
|
+
}
|
|
3136
|
+
/** The attempts a task has a log for, oldest first. */
|
|
3137
|
+
declare function listTaskLogAttempts(location: TaskLogLocation, taskId: string): number[];
|
|
3138
|
+
/**
|
|
3139
|
+
* Start an attempt's file, under the attempt's own number so its log and its
|
|
3140
|
+
* usage ledger name the same attempt. Without one, or when that file already
|
|
3141
|
+
* exists, it takes the next number after what is on disk: nothing saved is
|
|
3142
|
+
* ever overwritten.
|
|
3143
|
+
*/
|
|
3144
|
+
declare function openTaskLog(location: TaskLogLocation, taskId: string, attempt?: number): TaskLogFile;
|
|
3145
|
+
/**
|
|
3146
|
+
* Where a script task attempt's whole output goes, with its directory ready.
|
|
3147
|
+
* The caller writes the file; it is named for the attempt's number so it sits
|
|
3148
|
+
* beside the log, and is no attempt of its own.
|
|
3149
|
+
*/
|
|
3150
|
+
declare function prepareTaskOutputFile(location: TaskLogLocation, taskId: string, attempt: number): string;
|
|
3151
|
+
/** Where a read-only attempt's saved patch is kept, beside its log (ADR-0050). */
|
|
3152
|
+
declare function taskPatchFile(location: TaskLogLocation, taskId: string, attempt: number): string;
|
|
3153
|
+
/**
|
|
3154
|
+
* Keep a read-only attempt's patch beside its log, in place of one it saved
|
|
3155
|
+
* before (ADR-0050). Written whole under another name first, so a reader
|
|
3156
|
+
* never finds half a patch. Returns where it is.
|
|
3157
|
+
*/
|
|
3158
|
+
declare function saveTaskPatch(location: TaskLogLocation, taskId: string, attempt: number, patch: Buffer): string;
|
|
3159
|
+
/** A saved patch, or undefined when that attempt kept none. */
|
|
3160
|
+
declare function readTaskPatch(location: TaskLogLocation, taskId: string, attempt: number): Buffer | undefined;
|
|
3161
|
+
/**
|
|
3162
|
+
* One attempt's events, in order; empty when it has no log. A line that does
|
|
3163
|
+
* not parse is skipped — the last one, most likely, cut off by a crash
|
|
3164
|
+
* mid-write — so what was saved before it still reads.
|
|
3165
|
+
*/
|
|
3166
|
+
declare function readTaskLog(location: TaskLogLocation, taskId: string, attempt: number): TaskLogEvent[];
|
|
3167
|
+
|
|
3168
|
+
type ChildFrame = SessionMessage | SessionNotice;
|
|
3169
|
+
type ChildListener = (frame: ChildFrame) => void;
|
|
3170
|
+
/** A child with a live Session, as it seats itself on opening. */
|
|
3171
|
+
interface SeatedChild {
|
|
3172
|
+
sessionId: string;
|
|
3173
|
+
taskId: string;
|
|
3174
|
+
title: string;
|
|
3175
|
+
/** Its subplanner is in a turn, or one holds the conversation. */
|
|
3176
|
+
working(): boolean;
|
|
3177
|
+
/** Why a person's message would be refused now. */
|
|
3178
|
+
refusal(): Extract<ChildMessageOutcome, {
|
|
3179
|
+
ok: false;
|
|
3180
|
+
}> | null;
|
|
3181
|
+
view(): Omit<ChildPlanView, 'child'>;
|
|
3182
|
+
hear(text: string): ChildMessageOutcome;
|
|
3183
|
+
/** Its tasks waiting at a checkpoint now, each one {@link ChildPlanHandle.control} can answer. */
|
|
3184
|
+
checkpoints(): string[];
|
|
3185
|
+
control(taskId: string, control: ChildTaskControl): Promise<ChildControlOutcome>;
|
|
3186
|
+
}
|
|
3187
|
+
/** The root, as the directory reads it. */
|
|
3188
|
+
interface ChildDirectoryHost {
|
|
3189
|
+
rootSessionId(): string;
|
|
3190
|
+
/** The tree's ledger, or null for a session that has never delegated: a flat run opens none. */
|
|
3191
|
+
ledger(): Promise<TreeLedger | null>;
|
|
3192
|
+
rootTask(taskId: string): Task | undefined;
|
|
3193
|
+
/** A child's saved file: called only with an id the ledger names. */
|
|
3194
|
+
saved(sessionId: string): {
|
|
3195
|
+
meta: {
|
|
3196
|
+
goal: string;
|
|
3197
|
+
};
|
|
3198
|
+
plan: LegacyPlanState;
|
|
3199
|
+
} | null;
|
|
3200
|
+
logLocation(sessionId: string): TaskLogLocation;
|
|
3201
|
+
}
|
|
3202
|
+
/** One child plan, once the directory has found it in this tree. */
|
|
3203
|
+
interface ChildPlanHandle {
|
|
3204
|
+
entry(): ChildPlanEntry;
|
|
3205
|
+
view(): ChildPlanView;
|
|
3206
|
+
/** Every frame of its stream from now on, across a Continue that reseats the same id. */
|
|
3207
|
+
watch(listener: ChildListener): () => void;
|
|
3208
|
+
message(text: string): ChildMessageOutcome;
|
|
3209
|
+
/** On this plan's own task, as its subplanner: never its parent's, whatever the id names there. */
|
|
3210
|
+
control(taskId: string, control: ChildTaskControl): Promise<ChildControlOutcome>;
|
|
3211
|
+
logLocation(): TaskLogLocation;
|
|
3212
|
+
}
|
|
3213
|
+
/**
|
|
3214
|
+
* Every plan below one root, for a surface (ADR-0055 D20): the one place a
|
|
3215
|
+
* client's id is checked, against the tree's ledger, before anything is read
|
|
3216
|
+
* under it. Seating decides what a child is now; the ledger, what the tree
|
|
3217
|
+
* holds; a child's own file, what one with no Session left says.
|
|
3218
|
+
*/
|
|
3219
|
+
declare class ChildDirectory {
|
|
3220
|
+
private readonly host;
|
|
3221
|
+
private readonly seats;
|
|
3222
|
+
private readonly watchers;
|
|
3223
|
+
private readonly listeners;
|
|
3224
|
+
private readonly titles;
|
|
3225
|
+
private told;
|
|
3226
|
+
private telling;
|
|
3227
|
+
constructor(host: ChildDirectoryHost);
|
|
3228
|
+
/** The child is there until the returned call: a later opening of its id has seated its own by then. */
|
|
3229
|
+
seat(child: SeatedChild): () => void;
|
|
3230
|
+
publish(sessionId: string, frame: ChildFrame): void;
|
|
3231
|
+
/** A frame can come per token, so what changed is read once a tick, and only said when it did. */
|
|
3232
|
+
private changed;
|
|
3233
|
+
/** Called as what {@link list} would answer may have moved. */
|
|
3234
|
+
onChange(listener: () => void): () => void;
|
|
3235
|
+
list(): Promise<ChildPlanEntry[]>;
|
|
3236
|
+
/** Null for anything the tree does not name, which is how an id from elsewhere, or a path, is refused. */
|
|
3237
|
+
find(sessionId: string): Promise<ChildPlanHandle | null>;
|
|
3238
|
+
private ended;
|
|
3239
|
+
private view;
|
|
3240
|
+
private watch;
|
|
3241
|
+
/** A Continue opens a new node for the same child: its latest opening stands for it. */
|
|
3242
|
+
private latest;
|
|
3243
|
+
private entries;
|
|
3244
|
+
private title;
|
|
3245
|
+
private taskAbove;
|
|
3246
|
+
}
|
|
3247
|
+
|
|
3113
3248
|
/** One source for the spawn options, so a runner built on this base cannot drift from the interface. */
|
|
3114
3249
|
type RunnerSpawnOptions = Parameters<IRunner['spawn']>[0];
|
|
3115
3250
|
declare abstract class AbstractRunnerSession implements IRunnerSession {
|
|
@@ -3217,8 +3352,14 @@ interface SubplannerLink {
|
|
|
3217
3352
|
changed(): void;
|
|
3218
3353
|
/** A Stop stands over this node, its own or an ancestor's (ADR-0055 D16). */
|
|
3219
3354
|
stopped(): boolean;
|
|
3355
|
+
/** Its report is taken: it can still hear a person, but no work starts (ADR-0055 D7). */
|
|
3356
|
+
reported(): boolean;
|
|
3220
3357
|
/** What its planner or a task spent, as it arrives: charged where it was spent, and rolled up to each level for its row (ADR-0055 D20). */
|
|
3221
3358
|
usage(record: UsageRecord): void;
|
|
3359
|
+
/** The attempt is still open, so a person's message has a turn to reach (D20). */
|
|
3360
|
+
listening(): boolean;
|
|
3361
|
+
/** A turn a person's message opens: the attempt waits for it, and owes it nothing. */
|
|
3362
|
+
spoken(turn: () => Promise<unknown>): void;
|
|
3222
3363
|
}
|
|
3223
3364
|
/** The parent, as a child's attempt needs it. */
|
|
3224
3365
|
interface ChildHost {
|
|
@@ -3228,9 +3369,9 @@ interface ChildHost {
|
|
|
3228
3369
|
* naming the level, for what cannot be carved.
|
|
3229
3370
|
*/
|
|
3230
3371
|
openChild(task: Task, cwd: string, link: SubplannerLink, reopening?: string): Promise<ChildNode>;
|
|
3231
|
-
/** What the delegated task's branch changed since its base,
|
|
3232
|
-
changedPaths(taskId: string): Promise<string[]>;
|
|
3233
|
-
/** A Stop stands over this node: what its children read of their ancestors (D16). */
|
|
3372
|
+
/** What the delegated task's branch changed since its base, as `changeNames` calls it; `both` asks for both names, where a protected path may use either. */
|
|
3373
|
+
changedPaths(taskId: string, names?: 'both'): Promise<string[]>;
|
|
3374
|
+
/** A Stop stands over this node, or its report is taken: what its children read of their ancestors (D16). */
|
|
3234
3375
|
stopped(): boolean;
|
|
3235
3376
|
/** Usage on its way up the tree, past this level's row. */
|
|
3236
3377
|
passUp(record: UsageRecord): void;
|
|
@@ -3267,9 +3408,13 @@ declare class ChildPlanSession extends AbstractRunnerSession {
|
|
|
3267
3408
|
private output;
|
|
3268
3409
|
/** Turns this opened and has not seen end: until they do, a quiet child is one still opening. */
|
|
3269
3410
|
private opening;
|
|
3411
|
+
/** Turns a person's message opened and has not seen end. */
|
|
3412
|
+
private heard;
|
|
3270
3413
|
private reminded;
|
|
3271
3414
|
/** The accepted call, until it is published. */
|
|
3272
3415
|
private accepted;
|
|
3416
|
+
/** The last read of the branch is under way: the grace and a check can both reach it. */
|
|
3417
|
+
private publishing;
|
|
3273
3418
|
/** How the attempt raises a question: as a runner's `checkpoint` does, so the parent's task waits as any task at one. */
|
|
3274
3419
|
private ask;
|
|
3275
3420
|
/** A question went up and has no answer: nothing is stuck, and only the wall clock ends the wait (ADR-0056 M8). */
|
|
@@ -3299,6 +3444,12 @@ declare class ChildPlanSession extends AbstractRunnerSession {
|
|
|
3299
3444
|
/** A turn this opened: its end is one a check reads, and a failure in it ends the attempt, since no person reads it (ADR-0056 M8). */
|
|
3300
3445
|
private opened;
|
|
3301
3446
|
private turnSettled;
|
|
3447
|
+
/**
|
|
3448
|
+
* A person is not the plan above: however their turn ends, it costs this
|
|
3449
|
+
* attempt nothing, so a reminder already spent is owed again and a turn that
|
|
3450
|
+
* failed goes to the check, not to a verdict (ADR-0055 D20).
|
|
3451
|
+
*/
|
|
3452
|
+
private spoken;
|
|
3302
3453
|
private queueCheck;
|
|
3303
3454
|
/**
|
|
3304
3455
|
* What the child's state owes its attempt. Read after every change, so no
|
|
@@ -3336,6 +3487,12 @@ declare class ChildPlanSession extends AbstractRunnerSession {
|
|
|
3336
3487
|
* and refuses nothing. A read-only task lands nothing to say this of.
|
|
3337
3488
|
*/
|
|
3338
3489
|
private outsideScope;
|
|
3490
|
+
/**
|
|
3491
|
+
* The read a landing goes by. Nothing starts once a report is taken, but a
|
|
3492
|
+
* start that raced the call can still be running, so it winds down first and
|
|
3493
|
+
* its merge cannot land behind this read. An unread branch does not land.
|
|
3494
|
+
*/
|
|
3495
|
+
private lastRead;
|
|
3339
3496
|
private publish;
|
|
3340
3497
|
/** An end no subplanner reported: its handoff is what the plan and run show, and the verdict comes from there. */
|
|
3341
3498
|
private end;
|
|
@@ -3368,7 +3525,7 @@ declare class ChildPlanSession extends AbstractRunnerSession {
|
|
|
3368
3525
|
queued(): QueuedTaskMessage[];
|
|
3369
3526
|
/** A child has no one turn to interrupt: Stop ends it. */
|
|
3370
3527
|
interrupt(): Promise<void>;
|
|
3371
|
-
/** What a restart names (D3): the child session, not a runner's. */
|
|
3528
|
+
/** What a restart names (D3): the child session, not a runner's. One refused reopening still names it: none would read as a runner that lost its session, over the real reason. */
|
|
3372
3529
|
nativeSessionId(): string | null;
|
|
3373
3530
|
commands(): RunnerCommand$1[];
|
|
3374
3531
|
invokeCommand(): string;
|
|
@@ -3464,6 +3621,9 @@ declare class PlannerUsageLedger {
|
|
|
3464
3621
|
type PlannerCompactionMessage = Extract<SessionMessage, {
|
|
3465
3622
|
type: 'planner_compaction';
|
|
3466
3623
|
}>;
|
|
3624
|
+
type StatusUpdate = Extract<SessionMessage, {
|
|
3625
|
+
type: 'status_update';
|
|
3626
|
+
}>;
|
|
3467
3627
|
interface SessionEventRelayDeps {
|
|
3468
3628
|
broadcast: SessionBroadcaster;
|
|
3469
3629
|
/** Where isolation notices go, for a host whose notifications are not seen by the user. */
|
|
@@ -3497,7 +3657,7 @@ interface SessionEventRelayDeps {
|
|
|
3497
3657
|
* and remembered for a surface joining late, so Session announces it too. A
|
|
3498
3658
|
* model switch is a plan edit, which Session's editor announces as one.
|
|
3499
3659
|
*/
|
|
3500
|
-
type RelayObserver = Required<Omit<OrchestratorObserver, 'onTaskSettled' | 'onRunStarted' | 'onAutoMerge' | 'onUsageLimitWait' | 'onModelSwitched' | 'onTaskIdle' | 'onIsolationHandoff' | 'onRunClosed'>>;
|
|
3660
|
+
type RelayObserver = Required<Omit<OrchestratorObserver, 'onTaskSettled' | 'onRunStarted' | 'onAutoMerge' | 'onUsageLimitWait' | 'onModelSwitched' | 'onTaskIdle' | 'onIsolationHandoff' | 'onRunClosed' | 'onScriptClaimed'>>;
|
|
3501
3661
|
/**
|
|
3502
3662
|
* Turns orchestrator and planner events into {@link SessionMessage}
|
|
3503
3663
|
* broadcasts — the one place a surface's view of a Session is produced. It
|
|
@@ -3535,6 +3695,9 @@ declare class SessionEventRelay {
|
|
|
3535
3695
|
private landedSent;
|
|
3536
3696
|
/** The run as {@link statusChanged} last read it. */
|
|
3537
3697
|
private lastMoved;
|
|
3698
|
+
/** Each task's status as the last status update left surfaces holding it, so one carries only what moved. */
|
|
3699
|
+
private sentTasks;
|
|
3700
|
+
private wholeStatusAt;
|
|
3538
3701
|
private livePlan;
|
|
3539
3702
|
/** The planner's requests announced and not yet settled, as they were announced: a surface joining now is owed them. */
|
|
3540
3703
|
private readonly announced;
|
|
@@ -3545,8 +3708,10 @@ declare class SessionEventRelay {
|
|
|
3545
3708
|
observer(plan: () => LegacyPlanState | null): RelayObserver;
|
|
3546
3709
|
/** A delegated task's row moved: it can wait for the window, as usage does. */
|
|
3547
3710
|
rowsMoved(plan: LegacyPlanState | null): void;
|
|
3548
|
-
/** Send
|
|
3711
|
+
/** Send what moved now, however little was sent a moment ago: for what a surface must not wait for. */
|
|
3549
3712
|
status(plan: LegacyPlanState | null): void;
|
|
3713
|
+
/** `message` with only the tasks that moved: serialized, since most of what moves in a status is no field of the store. */
|
|
3714
|
+
private changesIn;
|
|
3550
3715
|
/**
|
|
3551
3716
|
* Send what is owed before something that assumes it arrived: a surface
|
|
3552
3717
|
* treats `execution_complete` as the end of the stream, for one, and a
|
|
@@ -3568,24 +3733,22 @@ declare class SessionEventRelay {
|
|
|
3568
3733
|
private statusChanged;
|
|
3569
3734
|
/**
|
|
3570
3735
|
* The first change to what waits on a person goes out at once, and the rest
|
|
3571
|
-
* wait for the second to end: every update carries every wait
|
|
3572
|
-
* tasks failing together must not each
|
|
3573
|
-
* them. The notifier reads the list as it goes
|
|
3574
|
-
* then, each once.
|
|
3736
|
+
* wait for the second to end: every update carries every wait and is judged
|
|
3737
|
+
* over the whole plan, so a hundred tasks failing together must not each cost
|
|
3738
|
+
* that with all those before them. The notifier reads the list as it goes
|
|
3739
|
+
* out, so it is told of them then, each once.
|
|
3575
3740
|
*/
|
|
3576
3741
|
private waitsMayHaveChanged;
|
|
3577
3742
|
/**
|
|
3578
3743
|
* A task in a worktree reports its landing twice and its release once, and
|
|
3579
|
-
* every update
|
|
3580
|
-
* report. What a person acts on still goes first: new work to merge, like
|
|
3581
|
-
* new wait, goes at once, and the rest waits for the second to end.
|
|
3744
|
+
* every update is judged over the whole plan, so a wide run must not pay that
|
|
3745
|
+
* per report. What a person acts on still goes first: new work to merge, like
|
|
3746
|
+
* a new wait, goes at once, and the rest waits for the second to end.
|
|
3582
3747
|
*/
|
|
3583
3748
|
private isolationChanged;
|
|
3584
3749
|
private openStatusWindow;
|
|
3585
|
-
/** Every task's status as it stands
|
|
3586
|
-
statusMessage():
|
|
3587
|
-
type: 'status_update';
|
|
3588
|
-
}>;
|
|
3750
|
+
/** Every task's status as it stands: what a joining surface starts from. */
|
|
3751
|
+
statusMessage(): StatusUpdate;
|
|
3589
3752
|
private judgedStatus;
|
|
3590
3753
|
/** A {@link holdStatus} is running: whoever runs it saves as it ends. */
|
|
3591
3754
|
get holdingStatus(): boolean;
|
|
@@ -3613,52 +3776,6 @@ declare class SessionEventRelay {
|
|
|
3613
3776
|
progress(progress: ResearchProgress): void;
|
|
3614
3777
|
}
|
|
3615
3778
|
|
|
3616
|
-
/**
|
|
3617
|
-
* Which session's logs, under which state root. A child's says which root it
|
|
3618
|
-
* sits under: a session id alone finds a root's (ADR-0055 D11).
|
|
3619
|
-
*/
|
|
3620
|
-
interface TaskLogLocation {
|
|
3621
|
-
baseDir: string;
|
|
3622
|
-
sessionId: string;
|
|
3623
|
-
rootSessionId?: string;
|
|
3624
|
-
}
|
|
3625
|
-
/** One attempt's file, open for appending. */
|
|
3626
|
-
interface TaskLogFile {
|
|
3627
|
-
readonly attempt: number;
|
|
3628
|
-
append(events: readonly TaskLogEvent[]): void;
|
|
3629
|
-
}
|
|
3630
|
-
/** The attempts a task has a log for, oldest first. */
|
|
3631
|
-
declare function listTaskLogAttempts(location: TaskLogLocation, taskId: string): number[];
|
|
3632
|
-
/**
|
|
3633
|
-
* Start an attempt's file, under the attempt's own number so its log and its
|
|
3634
|
-
* usage ledger name the same attempt. Without one, or when that file already
|
|
3635
|
-
* exists, it takes the next number after what is on disk: nothing saved is
|
|
3636
|
-
* ever overwritten.
|
|
3637
|
-
*/
|
|
3638
|
-
declare function openTaskLog(location: TaskLogLocation, taskId: string, attempt?: number): TaskLogFile;
|
|
3639
|
-
/**
|
|
3640
|
-
* Where a script task attempt's whole output goes, with its directory ready.
|
|
3641
|
-
* The caller writes the file; it is named for the attempt's number so it sits
|
|
3642
|
-
* beside the log, and is no attempt of its own.
|
|
3643
|
-
*/
|
|
3644
|
-
declare function prepareTaskOutputFile(location: TaskLogLocation, taskId: string, attempt: number): string;
|
|
3645
|
-
/** Where a read-only attempt's saved patch is kept, beside its log (ADR-0050). */
|
|
3646
|
-
declare function taskPatchFile(location: TaskLogLocation, taskId: string, attempt: number): string;
|
|
3647
|
-
/**
|
|
3648
|
-
* Keep a read-only attempt's patch beside its log, in place of one it saved
|
|
3649
|
-
* before (ADR-0050). Written whole under another name first, so a reader
|
|
3650
|
-
* never finds half a patch. Returns where it is.
|
|
3651
|
-
*/
|
|
3652
|
-
declare function saveTaskPatch(location: TaskLogLocation, taskId: string, attempt: number, patch: Buffer): string;
|
|
3653
|
-
/** A saved patch, or undefined when that attempt kept none. */
|
|
3654
|
-
declare function readTaskPatch(location: TaskLogLocation, taskId: string, attempt: number): Buffer | undefined;
|
|
3655
|
-
/**
|
|
3656
|
-
* One attempt's events, in order; empty when it has no log. A line that does
|
|
3657
|
-
* not parse is skipped — the last one, most likely, cut off by a crash
|
|
3658
|
-
* mid-write — so what was saved before it still reads.
|
|
3659
|
-
*/
|
|
3660
|
-
declare function readTaskLog(location: TaskLogLocation, taskId: string, attempt: number): TaskLogEvent[];
|
|
3661
|
-
|
|
3662
3779
|
interface TaskLogRecorderDeps {
|
|
3663
3780
|
broadcast: SessionBroadcaster;
|
|
3664
3781
|
/** Where the session's logs go, read as each attempt starts: a session's id can change between plans. */
|
|
@@ -3811,6 +3928,8 @@ interface ChildPlacement {
|
|
|
3811
3928
|
isolation: IWorktreeIsolation;
|
|
3812
3929
|
/** The root's, so the tree shares one Parallel limit (D18). */
|
|
3813
3930
|
pool: SlotPool;
|
|
3931
|
+
/** The root's, which a surface finds this child through (D20). */
|
|
3932
|
+
directory: ChildDirectory;
|
|
3814
3933
|
/** Its side of the tree's ledger, once a carve gave it one (ADR-0056 M5). */
|
|
3815
3934
|
budget?: NodeBudget;
|
|
3816
3935
|
}
|
|
@@ -4044,6 +4163,10 @@ declare class Session {
|
|
|
4044
4163
|
private saveTimer;
|
|
4045
4164
|
/** The store's status mark as last saved, or as loaded. */
|
|
4046
4165
|
private savedStatuses;
|
|
4166
|
+
private savedRevision;
|
|
4167
|
+
private savedAt;
|
|
4168
|
+
private saveDue;
|
|
4169
|
+
private savesHeld;
|
|
4047
4170
|
/** The user was told the disk is refusing this session's saves, and none has landed since. */
|
|
4048
4171
|
private saveFailureSaid;
|
|
4049
4172
|
/** A whole-plan start opening; a second Execute joins it rather than resetting the run under it. */
|
|
@@ -4066,6 +4189,7 @@ declare class Session {
|
|
|
4066
4189
|
private readonly budget;
|
|
4067
4190
|
/** The tree's ledger, once something asked: a flat run never does, so it has none and writes no log (ADR-0058 S3). */
|
|
4068
4191
|
private tree;
|
|
4192
|
+
private ownChildren;
|
|
4069
4193
|
/** The lines this plan's landings owe its running tasks (ADR-0057 R6). */
|
|
4070
4194
|
private readonly scopeLines;
|
|
4071
4195
|
/** The subplanner was told a start was refused; a raise makes it news again (ADR-0056 M5). */
|
|
@@ -4267,6 +4391,8 @@ declare class Session {
|
|
|
4267
4391
|
* lease and isolation (D11, D13). Throws for a task with no worktree (D12).
|
|
4268
4392
|
*/
|
|
4269
4393
|
hostChild(taskId: string): ChildPlacement;
|
|
4394
|
+
/** The tree's plans as a surface reaches them, one directory at every depth (ADR-0055 D20). */
|
|
4395
|
+
get children(): ChildDirectory;
|
|
4270
4396
|
/** The root Session's id, under which a tree's state sits (ADR-0055 D11). */
|
|
4271
4397
|
get rootSessionId(): string;
|
|
4272
4398
|
/**
|
|
@@ -4308,6 +4434,12 @@ declare class Session {
|
|
|
4308
4434
|
* as a carve or a raise is asked for, so a raised setting reaches them.
|
|
4309
4435
|
*/
|
|
4310
4436
|
private currentTree;
|
|
4437
|
+
/**
|
|
4438
|
+
* What the ledger says of this node's budget, in the tick a check reads it: a
|
|
4439
|
+
* check has no wait to open one with, and a root with no ledger open has
|
|
4440
|
+
* carved nothing yet in this process.
|
|
4441
|
+
*/
|
|
4442
|
+
private heldFunds;
|
|
4311
4443
|
/**
|
|
4312
4444
|
* A child's mandate and budget, carved from what this node has left
|
|
4313
4445
|
* (ADR-0056 M4, M5). At the root, what can never pass is refused before a
|
|
@@ -4345,10 +4477,34 @@ declare class Session {
|
|
|
4345
4477
|
private discardChildren;
|
|
4346
4478
|
/** This session as its parent's attempt drives it, `pins` what it is told as it starts (ADR-0057 R10). */
|
|
4347
4479
|
private asNode;
|
|
4348
|
-
/**
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4480
|
+
/** This child as a surface that selected it opens it, the same shape a joining client reads of any session. */
|
|
4481
|
+
private seenFromAbove;
|
|
4482
|
+
/** `opensTurn`: an answer does not, and a runner must not stay parked at its question for want of a turn nobody takes. */
|
|
4483
|
+
private personRefused;
|
|
4484
|
+
/**
|
|
4485
|
+
* A person's message to this child (ADR-0055 D20): a turn of its subplanner
|
|
4486
|
+
* as any other, its actor and mandate unchanged, so no budget, grant or
|
|
4487
|
+
* effect moves here. Skills are not resolved, which would be a person
|
|
4488
|
+
* loading them past the allowlist. It goes no higher: what the plan above
|
|
4489
|
+
* hears of it is what the subplanner chooses to pass up.
|
|
4490
|
+
*/
|
|
4491
|
+
private hearPerson;
|
|
4492
|
+
/**
|
|
4493
|
+
* A person's control on this plan's own task (ADR-0055 D20): the command its
|
|
4494
|
+
* subplanner could call, as its subplanner, so its held mandate decides and
|
|
4495
|
+
* no budget, grant or effect moves here. An id this plan does not hold is
|
|
4496
|
+
* refused rather than resolved, and the question is compared in the same
|
|
4497
|
+
* tick the seam checks and answers it, so no answer lands on a later one.
|
|
4498
|
+
* The subplanner hears of it on its next turn, and none is opened to tell it.
|
|
4499
|
+
*/
|
|
4500
|
+
private controlledByPerson;
|
|
4501
|
+
/**
|
|
4502
|
+
* Reopened (ADR-0055 D17): as Execute, so what failed is retried, but for its
|
|
4503
|
+
* own children, which go on under this same Continue, and then its subplanner
|
|
4504
|
+
* goes on. One whose plan never reached the disk plans its goal, and one with
|
|
4505
|
+
* nothing left to run goes straight to its turn: it may owe only its report.
|
|
4506
|
+
* `told` adds the pins of now, posted since it opened or not (ADR-0057 R10);
|
|
4507
|
+
* its children hear the message without them, and add their own.
|
|
4352
4508
|
*/
|
|
4353
4509
|
private goOn;
|
|
4354
4510
|
private get taskLogReader();
|
|
@@ -4384,6 +4540,10 @@ declare class Session {
|
|
|
4384
4540
|
get underStop(): boolean;
|
|
4385
4541
|
/** Why no claim and no planner turn may start at this node, read at every start as its own Stop generation is (ADR-0055 D16). */
|
|
4386
4542
|
nodeRefusal(): string | null;
|
|
4543
|
+
/** Its report is what its verdict and landing go by: work behind it would land past both (ADR-0055 D7). */
|
|
4544
|
+
get reported(): boolean;
|
|
4545
|
+
/** {@link nodeRefusal}, and a report: a turn can still read a person's message, but no task may start from it. */
|
|
4546
|
+
startRefusal(): string | null;
|
|
4387
4547
|
/**
|
|
4388
4548
|
* Everything under this node stops, leaves first, its planner turn and any
|
|
4389
4549
|
* turn waiting included, and this resolves once it has all gone: with no
|
|
@@ -4400,7 +4560,7 @@ declare class Session {
|
|
|
4400
4560
|
/** A raise only moves numbers: what its room lets start is this run's to start (ADR-0056 M5). */
|
|
4401
4561
|
private budgetRaised;
|
|
4402
4562
|
/** What a delegated task's branch changed since its base. */
|
|
4403
|
-
changedPaths(taskId: string): Promise<string[]>;
|
|
4563
|
+
changedPaths(taskId: string, names?: 'both'): Promise<string[]>;
|
|
4404
4564
|
/** Why this node stopped for its budget, or null: a parent's reason for ending it `blocked`. */
|
|
4405
4565
|
get outOfBudget(): string | null;
|
|
4406
4566
|
/** The attempts of a task that have a saved log, oldest first. */
|
|
@@ -4418,8 +4578,9 @@ declare class Session {
|
|
|
4418
4578
|
get planTasks(): ReadonlyArray<Readonly<Task>>;
|
|
4419
4579
|
/**
|
|
4420
4580
|
* The relay announces every orchestrator event; this adds the saves some of
|
|
4421
|
-
* them owe, each made before the announcement so no surface sees
|
|
4422
|
-
* disk lacks.
|
|
4581
|
+
* them owe, each made before the announcement so no surface sees a decision
|
|
4582
|
+
* the disk lacks. A status that decides nothing may lead the disk by up to
|
|
4583
|
+
* {@link STATUS_SAVE_INTERVAL_MS}.
|
|
4423
4584
|
*/
|
|
4424
4585
|
private observer;
|
|
4425
4586
|
/**
|
|
@@ -4436,13 +4597,19 @@ declare class Session {
|
|
|
4436
4597
|
* write: a turn holds what it writes until the mutation that lands it.
|
|
4437
4598
|
*/
|
|
4438
4599
|
private persist;
|
|
4600
|
+
/** One save for all `act` asks of it, made as it ends, however it ends: the plan is written whole, so each save is what a plan's size multiplies. */
|
|
4601
|
+
private savingOnce;
|
|
4439
4602
|
/**
|
|
4440
4603
|
* What a change to the plan owes the disk. A task's status is what a
|
|
4441
|
-
* decision and a reload read, so a changed one is saved
|
|
4442
|
-
*
|
|
4604
|
+
* decision and a reload read, so a changed one is saved within the second,
|
|
4605
|
+
* and at once if no save came in the one before: a save writes the whole
|
|
4606
|
+
* plan, and a wide run starts tasks far faster than that is worth. A
|
|
4607
|
+
* settled task and a user's control are not paced, and neither is a script,
|
|
4608
|
+
* saved as it starts (see {@link observer}). What changed beside a status
|
|
4609
|
+
* goes with it; anything else can wait for the timer.
|
|
4443
4610
|
*/
|
|
4444
4611
|
private saveChange;
|
|
4445
|
-
/** Owe a save, made once however often this is called before it comes. */
|
|
4612
|
+
/** Owe a save, made once, by the soonest it was asked for, however often this is called before it comes. */
|
|
4446
4613
|
private saveSoon;
|
|
4447
4614
|
/**
|
|
4448
4615
|
* A save nothing that follows may depend on: a full disk must not take the
|
|
@@ -4698,7 +4865,7 @@ declare class Session {
|
|
|
4698
4865
|
private conversationOpening;
|
|
4699
4866
|
/** A planner's tools, and for a subplanner the two its parent's attempt answers (ADR-0055 D5). */
|
|
4700
4867
|
private offeredTools;
|
|
4701
|
-
/** What the prompt says of this node's limits, as it stands when the planner starts (ADR-0055 D19). */
|
|
4868
|
+
/** What the prompt says of this node's limits, as it stands when the planner starts (ADR-0055 D19): what a carve could take then, which a child's limit overstates by what it keeps for its own turns. */
|
|
4702
4869
|
private delegationBrief;
|
|
4703
4870
|
/**
|
|
4704
4871
|
* Load planner-produced tasks, as the check they landed through resolved
|
|
@@ -4958,35 +5125,6 @@ declare class Session {
|
|
|
4958
5125
|
plannerSettingsChanged(): void;
|
|
4959
5126
|
}
|
|
4960
5127
|
|
|
4961
|
-
/** How one `docker` command ended; `code` is -1 for a CLI that could not start. */
|
|
4962
|
-
interface DockerResult {
|
|
4963
|
-
code: number;
|
|
4964
|
-
stdout: string;
|
|
4965
|
-
stderr: string;
|
|
4966
|
-
/** Its stdout passed {@link DockerCall.stdoutTo}'s limit, and it was killed for it. */
|
|
4967
|
-
overflowed?: true;
|
|
4968
|
-
}
|
|
4969
|
-
interface DockerCall {
|
|
4970
|
-
input?: string | Buffer;
|
|
4971
|
-
/** Over this host's, for the CLI: what `-e NAME` hands over, so a secret never sits in an argument (ADR-0022 A5). */
|
|
4972
|
-
env?: Readonly<Record<string, string>>;
|
|
4973
|
-
timeoutMs?: number;
|
|
4974
|
-
/** Stdout to a file rather than to memory, for a bundle of any size up to `maxBytes`. */
|
|
4975
|
-
stdoutTo?: {
|
|
4976
|
-
file: string;
|
|
4977
|
-
maxBytes: number;
|
|
4978
|
-
};
|
|
4979
|
-
}
|
|
4980
|
-
/**
|
|
4981
|
-
* The Docker API through the docker CLI (ADR-0059 L5): one code path for any
|
|
4982
|
-
* engine that speaks it, which keeps whatever context the user chose.
|
|
4983
|
-
*/
|
|
4984
|
-
interface DockerCli {
|
|
4985
|
-
call(args: readonly string[], opts?: DockerCall): Promise<DockerResult>;
|
|
4986
|
-
/** A command that runs for as long as a container does, with its stdio left open. */
|
|
4987
|
-
entry(args: readonly string[]): Promise<ChildProcess>;
|
|
4988
|
-
}
|
|
4989
|
-
|
|
4990
5128
|
/**
|
|
4991
5129
|
* A session delete's half of it, which has no Session or backend to ask. Without
|
|
4992
5130
|
* the setting nothing has been put in an engine, and Docker is not asked: a user
|
|
@@ -5199,6 +5337,7 @@ declare class BufferedTaskOutputSource implements TaskOutputSource {
|
|
|
5199
5337
|
handoff(taskId: string): StoredHandoff | undefined;
|
|
5200
5338
|
liveTail(taskId: string, opts: LiveTailOptions): LiveTail | null;
|
|
5201
5339
|
private append;
|
|
5340
|
+
private cutTo;
|
|
5202
5341
|
}
|
|
5203
5342
|
|
|
5204
5343
|
interface StructuredRunnerDeps {
|
|
@@ -5431,137 +5570,6 @@ declare class StructuredRunner extends AbstractRunner<StructuredSession> {
|
|
|
5431
5570
|
spawn(opts: RunnerSpawnOptions): Promise<IRunnerSession>;
|
|
5432
5571
|
}
|
|
5433
5572
|
|
|
5434
|
-
/**
|
|
5435
|
-
* cmd.exe's command-line buffer. A longer line is truncated rather than
|
|
5436
|
-
* rejected, which would corrupt a planner's system prompt or a task's prompt
|
|
5437
|
-
* mid-sentence and produce a confident answer to half a question — so the
|
|
5438
|
-
* batch route refuses instead. See {@link CommandLineTooLongError}.
|
|
5439
|
-
*/
|
|
5440
|
-
declare const CMD_EXE_MAX_COMMAND_LINE = 8191;
|
|
5441
|
-
/**
|
|
5442
|
-
* CreateProcess's own ceiling, which the native and PowerShell routes are
|
|
5443
|
-
* bounded by instead. Windows truncates here too, so the same refusal applies —
|
|
5444
|
-
* it is simply four times further away.
|
|
5445
|
-
*/
|
|
5446
|
-
declare const WINDOWS_MAX_COMMAND_LINE = 32767;
|
|
5447
|
-
interface LaunchPlan {
|
|
5448
|
-
/** The executable handed to `spawn()`. */
|
|
5449
|
-
file: string;
|
|
5450
|
-
/** Arguments for `file`. Pass verbatim when {@link verbatim} is set. */
|
|
5451
|
-
args: string[];
|
|
5452
|
-
/**
|
|
5453
|
-
* Windows batch route only: `args` is already a quoted command line and must
|
|
5454
|
-
* not be re-quoted. Maps to `windowsVerbatimArguments` for `spawn`.
|
|
5455
|
-
*/
|
|
5456
|
-
verbatim?: boolean;
|
|
5457
|
-
}
|
|
5458
|
-
/** Test seam: every OS touchpoint is injectable, and production uses the defaults. */
|
|
5459
|
-
interface LaunchDeps {
|
|
5460
|
-
platform?: NodeJS.Platform;
|
|
5461
|
-
/** The PATH executables are looked up on. Defaults to the augmented PATH. */
|
|
5462
|
-
resolvePath?: () => Promise<string>;
|
|
5463
|
-
/** True when `candidate` names an existing file. */
|
|
5464
|
-
exists?: (candidate: string) => boolean;
|
|
5465
|
-
/** Absolute path to the Windows command interpreter. */
|
|
5466
|
-
comSpec?: () => string;
|
|
5467
|
-
/** Absolute path to Windows PowerShell. */
|
|
5468
|
-
powerShell?: () => string;
|
|
5469
|
-
/** PATHEXT, as the environment reports it. */
|
|
5470
|
-
pathExt?: () => string;
|
|
5471
|
-
}
|
|
5472
|
-
/**
|
|
5473
|
-
* Thrown when a command's arguments do not fit the buffer of the only
|
|
5474
|
-
* interpreter that can start it. Windows truncates rather than rejecting, and a
|
|
5475
|
-
* system prompt cut off mid-sentence makes the planner answer half a question
|
|
5476
|
-
* confidently — the silent success this repo refuses — so this is raised
|
|
5477
|
-
* instead. `TaskOrchestrator.startTask` catches it and holds the task, so the
|
|
5478
|
-
* message is what the user reads: it names the fix, because they cannot infer
|
|
5479
|
-
* it from a truncated prompt.
|
|
5480
|
-
*/
|
|
5481
|
-
declare class CommandLineTooLongError extends Error {
|
|
5482
|
-
readonly command: string;
|
|
5483
|
-
readonly length: number;
|
|
5484
|
-
readonly limit: number;
|
|
5485
|
-
constructor(command: string, length: number, limit?: number);
|
|
5486
|
-
}
|
|
5487
|
-
/**
|
|
5488
|
-
* Thrown when only a batch shim resolved for a multi-line argument. cmd.exe
|
|
5489
|
-
* reads up to the first CR/LF and discards the rest with no error and exit code
|
|
5490
|
-
* 0 — quoting does not help — so the agent would get the first paragraph of its
|
|
5491
|
-
* prompt without the instruction to report through `task_complete`, then exit looking successful.
|
|
5492
|
-
*/
|
|
5493
|
-
declare class EmbeddedNewlineError extends Error {
|
|
5494
|
-
readonly command: string;
|
|
5495
|
-
constructor(command: string);
|
|
5496
|
-
}
|
|
5497
|
-
/**
|
|
5498
|
-
* Thrown when only a batch shim resolved for an argument holding a double
|
|
5499
|
-
* quote. cmd.exe flips its quote state at every `"`, whether or not a backslash
|
|
5500
|
-
* precedes it, so the quote ends the quoting we added and the rest of the
|
|
5501
|
-
* argument is read as commands: `--model "x\" & calc & \"y"` runs `calc`.
|
|
5502
|
-
*/
|
|
5503
|
-
declare class BatchQuoteError extends Error {
|
|
5504
|
-
readonly command: string;
|
|
5505
|
-
constructor(command: string);
|
|
5506
|
-
}
|
|
5507
|
-
/**
|
|
5508
|
-
* Thrown when `command` cannot be resolved to a real file. Kept distinguishable
|
|
5509
|
-
* from `WorkspaceNotFoundError` (utils/workspace) even though both a missing
|
|
5510
|
-
* cwd and a missing binary surface as the same `spawn` ENOENT to Node — the two
|
|
5511
|
-
* are checked, and named, separately so the failure names the actual cause.
|
|
5512
|
-
*/
|
|
5513
|
-
declare class ExecutableNotFoundError extends Error {
|
|
5514
|
-
readonly command: string;
|
|
5515
|
-
readonly searchedPath: string;
|
|
5516
|
-
constructor(command: string, searchedPath: string);
|
|
5517
|
-
}
|
|
5518
|
-
/**
|
|
5519
|
-
* Whether `command` actually resolves to a file, given the plan
|
|
5520
|
-
* {@link planDirectLaunch} produced for it and the PATH it was resolved
|
|
5521
|
-
* against.
|
|
5522
|
-
*
|
|
5523
|
-
* POSIX is deliberately identity in `planDirectLaunch` (execvp does its own
|
|
5524
|
-
* PATH search), so the search is repeated here instead. Windows already did
|
|
5525
|
-
* the search inside `planDirectLaunch` — signalled by the returned file
|
|
5526
|
-
* differing from the bare command name it was given; an unresolved command
|
|
5527
|
-
* comes back unchanged.
|
|
5528
|
-
*/
|
|
5529
|
-
declare function isExecutableResolved(command: string, plan: LaunchPlan, PATH: string, deps?: LaunchDeps): boolean;
|
|
5530
|
-
/** The verbatim command line cmd.exe receives after `/d /s /c`, before wrapping. */
|
|
5531
|
-
declare function windowsCommandLine(file: string, args: string[]): string;
|
|
5532
|
-
/**
|
|
5533
|
-
* How to start `command` with `args` through `spawn()`, with no shell.
|
|
5534
|
-
*
|
|
5535
|
-
* POSIX returns its input unchanged — execvp already searches PATH, and adding
|
|
5536
|
-
* a resolution step there would be a new way for a working setup to break.
|
|
5537
|
-
*
|
|
5538
|
-
* Windows resolves the command against PATH × PATHEXT, preferring a native
|
|
5539
|
-
* executable (spawned directly) over a batch shim (through cmd.exe) over a
|
|
5540
|
-
* PowerShell script shim (through `powershell.exe -File`). A command that
|
|
5541
|
-
* resolves to nothing is returned unchanged, so the caller's existing ENOENT —
|
|
5542
|
-
* which names what the user typed — is what surfaces rather than a second,
|
|
5543
|
-
* vaguer error from here.
|
|
5544
|
-
*
|
|
5545
|
-
* The tiers are tried in preference order and the first that *fits* wins, with
|
|
5546
|
-
* one deliberate exception: an overflowing batch shim does not fall through to
|
|
5547
|
-
* PowerShell. Overflow means a very large prompt, which is precisely where
|
|
5548
|
-
* `-File` argument fidelity is least worth betting on, and where a clear held
|
|
5549
|
-
* task beats a plausibly-mangled one. So capacity does not reorder the tiers —
|
|
5550
|
-
* a `.ps1` beside a too-long `.cmd` still raises.
|
|
5551
|
-
*
|
|
5552
|
-
* A line break does reorder them: cmd.exe cannot carry one at any length, so a
|
|
5553
|
-
* `.ps1` beside a `.cmd` wins, and a lone `.cmd` raises. So does a double
|
|
5554
|
-
* quote, which cmd.exe cannot carry safely.
|
|
5555
|
-
*
|
|
5556
|
-
* @throws {CommandLineTooLongError} when the selected route's buffer cannot
|
|
5557
|
-
* carry the arguments.
|
|
5558
|
-
* @throws {EmbeddedNewlineError} when the arguments span lines and only the
|
|
5559
|
-
* batch route resolved.
|
|
5560
|
-
* @throws {BatchQuoteError} when an argument holds a double quote and only the
|
|
5561
|
-
* batch route resolved.
|
|
5562
|
-
*/
|
|
5563
|
-
declare function planDirectLaunch(command: string, args: string[], deps?: LaunchDeps): Promise<LaunchPlan>;
|
|
5564
|
-
|
|
5565
5573
|
/**
|
|
5566
5574
|
* What runs a script task's attempt, where a runner id would name a coding
|
|
5567
5575
|
* agent: no registered runner does, and no model is involved (ADR-0035).
|
|
@@ -6054,4 +6062,4 @@ declare function parseVersion(version: string): number[] | null;
|
|
|
6054
6062
|
/** Negative, zero or positive as `a` is older than, the same as, or newer than `b`; an unreadable version sorts oldest. */
|
|
6055
6063
|
declare function compareVersions(a: string, b: string): number;
|
|
6056
6064
|
|
|
6057
|
-
export { ALL_PROVIDERS, AbstractRunner, AbstractRunnerSession, AccountLimitBucket, type AccountLimitCollector, type AccountLimitListener, AccountLimitMonitor, type AccountLimitMonitorOptions, type AccountLimitReading, AccountLimitSnapshot, type Adr0013IsolationRun, type Adr0013PlanIsolation, type Adr0013TaskRecord, AgentAdapter, AgentEvent, AgentProcessDeps, AgentStartOptions, AiProvider, AlreadyExecutingError, ApprovalAnswer, ApprovalDecision, ApprovalModeSetting, ApprovalPolicy, AssignmentScope, BaseAiService, BaseConfig, BaseFileSystem, BashOptions,
|
|
6065
|
+
export { ALL_PROVIDERS, AbstractRunner, AbstractRunnerSession, AccountLimitBucket, type AccountLimitCollector, type AccountLimitListener, AccountLimitMonitor, type AccountLimitMonitorOptions, type AccountLimitReading, AccountLimitSnapshot, type Adr0013IsolationRun, type Adr0013PlanIsolation, type Adr0013TaskRecord, AgentAdapter, AgentEvent, AgentProcessDeps, AgentStartOptions, AiProvider, AlreadyExecutingError, ApprovalAnswer, ApprovalDecision, ApprovalModeSetting, ApprovalPolicy, AssignmentScope, BaseAiService, BaseConfig, BaseFileSystem, BashOptions, BufferedTaskOutputSource, type ByPlannerBackend, CLAUDE_CODE_MANIFEST, CLI_PROVIDERS, CODEX_SANDBOX_DOCS, CODEX_SANDBOX_OFF_LINE, type CachedPage, type CappedRows, CheckpointAnswer, type CheckpointListener, ChildControlOutcome, ChildDirectory, type ChildFrame, ChildMessageOutcome, type ChildPlacement, ChildPlanEntry, type ChildPlanHandle, ChildPlanView, ChildTaskControl, type ClaudeAccountLimitOptions, ClaudeCodeAdapter, type CodexAccountLimitOptions, CodexAdapter, CodexSandboxAvailability, CommandOutcome, type ConfiguredPlanner, ContextCollector, type Continuability, ConversationCompaction, type ConversationFork, ConversationRequest, type ConversationRewind, ConversationTurn, DAEMON_SUBPROTOCOL, DAEMON_TOKEN_SUBPROTOCOL_PREFIX, DEFAULT_MAX_PARALLEL, type DirEntry, DiscoveredModel, DockerCli, DuckDuckGoSearchProvider, type EnvAdmission, EnvConfig, Escalation, type ExecImpl, ExecutionActor, ExecutionCommand, FindSymbolOptions, GREP_PCRE_PROBE_ARGS, GeminiService, type GitExecFn, GlobOptions, GlobalRunSettings, type GrepInvocation, GrepOptions, type GrepRegex, HARNESS_PLANNER_REASON, HandoffCheck, type HasBinFn, HttpWebFetcher, type HttpWebFetcherOptions, IAiService, IApproval, IConfig, IFileSystem, IIsolationPreview, ILogger, INotification, IRunner, IRunnerSession, type ISearchProvider, IWorktreeIsolation, IsolationRemoval, IsolationTaskStatus, IsolationView, type KillTreeDeps, LaunchDeps, LeaseHost, LegacyPlanState, LiveTail, LiveTailOptions, Mandate, MandateLimits, MandateRequest, McpToolReply, ModelResolver, type ModelResolverDeps, type NativeShellLauncher, type NativeShellOffer, NoPlanError, NodeAuthority, OPENCODE_MANIFEST, ORDEWELL_SETTABLE_ENV, OpenAiService, OpenCodeAdapter, type OpenCodeGoAccountLimitOptions, OrchestratorObserver, OrchestratorOption, OrdewellMcpServer, PROVIDER_CREDENTIAL_ENV, PROVIDER_DETECT_PRIORITY, PROVIDER_LABEL, PROVIDER_PRIORITY, PROVIDER_SHORT_LABEL, type ParsedCommand, PendingApproval, PendingApprovals, type PingFetch, PlanEditError, PlanIsolation, type PlanRequest, PlanState, PlanStore, Planner, type PlannerBackendEntry, PlannerBackendId, type PlannerChoice, PlannerModelCandidate, type PlannerModelLookup, PlannerModelRecall, type PlannerModelSource, PlannerModelStore, type PlannerSelectionChange, type PlannerSelectionCurrent, type PlannerSelectionResult, type PlannerSelectionState, PlannerShellSandbox, PlannerToolHandler, type PlannerUsability, PlannerUsage, PostArgs, type PrdBlock, ProviderModelLists, type ProviderRegistration, QueuedTaskMessage, ReadFileOpts, ReadTaskArgs, ReportedWindow, type ResearchChat, ResearchLogEntry, ResearchShell, type ResearchTurn, type ResolvedChoice, type ResolvedPlanner, RewindTarget, RunActivity, RunMergeView, RunView, RunnerApprovals, RunnerAuth, RunnerAuthExec, RunnerCommand$1 as RunnerCommand, RunnerId, RunnerInstallation, type RunnerInstallationOptions, RunnerManifest, RunnerModeInfo, RunnerRegistry, RunnerSessionCost, type RunnerSpawnOptions, SCRIPT_RUNNER, SETTINGS_ENV_ALLOWLIST, SETTINGS_ENV_REFUSED, STATE_DIR, STATE_DIR_IGNORE, STOPPED_TOOL_RESULT, SYMBOL_LANGUAGES, type SaveSession, type SavedState, ScriptBody, ScriptExit, ScriptRunner, ScriptSession, type SearchHit, type SearchOutcome, type SearchPage, type SearchTransport, Session, SessionBroadcaster, type SessionDeps, SessionHeld, SessionLease, SessionMessage, SessionNotFoundError, SessionNotice, type SessionPlanner, type SessionRuntimeSettings, ShellLaunch, SkillsService, type SpawnSpec, StdioAgentAdapter, StoredHandoff, StructuredEvent, StructuredRunner, type StructuredRunnerDeps, StructuredSession, StructuredTurnEnd, SubtreeReport, Task, TaskCompleteArgs, TaskControlError, type TaskEditOptions, TaskLogEvent, type TaskLogFile, type TaskLogLocation, TaskLogRecorder, type TaskLogRecorderDeps, TaskMessageFrom, TaskModeAgentAdapter, TaskOrchestrator, TaskOrchestratorOptions, TaskOutputSource, TaskQueryCatalog, TaskRevertPreview, TaskRunnerConfig, TaskRunnerFlags, TaskShell, TaskShellSite, TaskStartOptions, TaskTokenScope, type TokenCarriers, type ToolCall, ToolOutcome, type ToolResult, UsageRecord, UserSettings, VERSION_CHECK_NOTICE, VERSION_CHECK_URL, VerdictEngine, type VerdictListener, VerificationCheck, type VersionCheck, type VersionCheckOptions, WebRead, WebReadDecision, type WebResponse, WebResponseCache, type WebResponseCacheOptions, type WebTransport, type WorkspaceCheckDeps, WorkspaceNotAProjectError, WorkspaceNotFoundError, type WorkspaceProjectCheckDeps, type WorktreeIsolationDeps, admitSettingsEnv, applyHeadLimit, assertWorkspaceExists, assertWorkspaceIsProject, augmentedPath, bearerHeaderValue, buildFallbackGrepArgs, buildGlobArgs, buildGrepArgs, canContinue, claudeAccountLimitCollector, clearAugmentedPathCache, clearDaemonToken, clearState, clipboardCopyCommand, codexAccountLimitCollector, codexSandboxNotice, compareVersions, configuredProviders, continuability, createIsolationPreview, createNativeShellLauncher, createSession, createTaskAdapter, createWorktreeIsolation, daemonTokenPath, defaultEnabledRunners, definitionPattern, detectInstalledPlanner, discardChildRuns, discoverGeminiModels, ensureDir, ensurePrivateDir, ensureStateDirIgnored, extractPrdBlock, extractPresentedToken, filterFallbackByAnchoredInclude, findInstalledPlanner, formatSearchOutput, getProviderMeta, getStateDir, globalDataDir, grantScopeFor, grepRegexFromProbe, includeGlobFor, installedPlannerAnswered, installedPlannerDetected, isApiProvider, isCliProvider, isOpenAiProvider, isPlannerBackend, isVendorModelFor, isolationViewOfPlan, killTree, languageForId, listTaskLogAttempts, listTree, loadState, looksLikeChallenge, migrateOldConfigDir, migratePlanIsolation, mintDaemonToken, mintSessionId, nativeShellInvocation, nativeShellOffer, normalizeGeminiModel, notifyCommandOf, openCodeGoAccountLimitCollector, openTaskLog, parseExecutionCommand, parseMaxParallel, parseSearchHits, parseVersion, plannerBackendEntries, prefixModelId, prepareTaskOutputFile, providerForRunner, readDaemonToken, readTaskLog, readTaskPatch, reclaimContainers, recordInstalledPlanner, recordedInstalledPlanner, referencePattern, removedPluginNotice, repositoryRunnerConfigPaths, resetInstalledPlanner, resolveProviderFromPrefix, resolveTaskRunnerFlags, resolveWithin, runnerForProvider, sanitizeSlug, savePrdMarkdown, saveState, saveTaskPatch, selectPlanner, sessionRuntimeSettings, sharedSearchProvider, sharedWebResponseCache, shellQuoted, startVersionCheck, stateExists, stripAnsi, stripModelPrefix, supportsTaskMode, taskPatchFile, tokenSubprotocols, tokensMatch, wellKnownBinDirs, withPath, writeFileAtomic, writePrivateFile };
|