@ordewell/core 0.12.2 → 0.12.3
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 +248 -112
- package/dist/index.d.ts +248 -112
- package/dist/index.js +2576 -1104
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2240 -866
- 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-DFVpe6aU.d.mts → runSettingsText-C6eto6Uv.d.ts} +550 -26
- package/dist/{runSettingsText-lKLDsyli.d.ts → runSettingsText-DnzSrB0c.d.mts} +550 -26
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js.map +1 -1
- package/dist/testing.mjs +2 -2
- 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 { dP as TurnBudgets, bu as PlanIntake, aO as IWebFetcher, aa as ConversationTurn, bX as ResolveAll, dY as WebReadPolicy, dV as WebRead, dW as WebReadDecision, dX as WebReadOptions, bq as PendingApprovals, aM as IAiService, bA as PlannerContextDeps, bB as PlannerContextStatus, a1 as ContextCondenseRequest, a8 as ConversationRequest, bE as PlannerModelCandidate, cc as RunnerAuthExec, cb as RunnerAuth, b as AccountLimitBucket, c as AccountLimitSnapshot, u as AssignmentWriter, t as AssignmentScope, dr as TaskQueryCatalog, r as AssignmentCatalog, cf as RunnerCatalog, d9 as TaskLogEvent, dN as TreeLedger, F as ChildMessageOutcome, J as ChildPlanView, K as ChildTaskControl, D as ChildControlOutcome, cC as SessionMessage, cD as SessionNotice, H as ChildPlanEntry, cv as SessionBroadcaster, by as PlanStore, dk as TaskOrchestrator, as as Escalation, bl as OrchestratorObserver, cx as SessionHeld, cL as SlotPool, bf as NodeBudget, bW as ResearchTasks, aH as GlobalRunSettings, cz as SessionLease, bD as PlannerConversationHost, bC as PlannerConversation, cS as SubplannerBrief, aB as ExecutionCommand, R as CommandOutcome, bp as PendingApproval, z as Carved, be as NodeBoard, cT as Subtree, a4 as ConversationCompaction, c1 as RewindTarget, ca as RunView, du as TaskRevertPreview, c5 as RunMergeView, c3 as RunActivity, dn as TaskOutputSource, aV as LeaseHost, dm as TaskOrchestratorOptions, dS as UserSettings, al as DockerCli, a_ as LiveTailOptions, aZ as LiveTail, bI as PlannerModelStore, bH as PlannerModelRecall } from './runSettingsText-C6eto6Uv.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 BlockingSubject, C as CHAT_COMMANDS, w as CHECKPOINT_TRUNCATE_LENGTH, x as CancelPlanningResponse, y as CancelResumeResponse, E as ChildListResponse, G as ChildMessageResponse, I as ChildPlanResponse, L as ChildTaskControlResponse, M as ChildTreeFrame, N as CliAgentAiService, O as CliAgentAiServiceDeps, P as CommandBlock, Q as CommandDescriptor, S as CommandPayload, T as CommandStatus, U as CommandsResponse, V as CompactionBlock, W as CompactionStatus, X as Consent, Y as ContainerChange, Z as ContainerChangeResponse, _ as ContainerGuaranteeLine, $ as ContainerProblem, a0 as ContainerStatus, a2 as ConversationBusyError, a3 as ConversationCompactResponse, a5 as ConversationEditError, a6 as ConversationForkResponse, a7 as ConversationInput, a9 as ConversationRewindResponse, ab as ConversationView, ac as DEFAULT_WEB_READ_BUDGET, ad as DELEGATION_OFFERED, ae as DELEGATION_RISK, af as DaemonErrorCode, ag as DecideOptions, ah as DiffRow, ai as DiffRowKind, aj as DiffStat, ak as DisplayBlock, am as EMPTY_CONVERSATION, an as EMPTY_HOLD, ao as EMPTY_RUN, ap as EMPTY_TASK_LOG, aq as EMPTY_TASK_LOG_FOLLOW, ar as ErrorBody, at as EscalationInput, au as EscalationKind, av as EscalationOption, aw as EscalationOptionId, ax as EscalationRun, ay as EscalationsResponse, az as ExecuteCommandResponse, aA as ExecuteResponse, aC as ExecutionCommands, aD as ExecutionHost, aE as ExecutionSummary, aF as GatedConversation, aG as GeneratePlanResponse, aI as HEADLESS_CLI_COMMANDS, aJ as HandoffBlock, aK as HandoffForkRepo, aL as HandoffPeekSubject, aN as IDLE_ACTIVITY, aP as IsolationDiffResponse, aQ as IsolationMergeResponse, aR as IsolationPreviewNotice, aS as IsolationPreviewResponse, aT as LEASE_HEARTBEAT_MS, aU as LEASE_STALE_MS, aW as LeaseHostKind, aX as LeaseHostOptions, aY as LiveOutputLookup, a$ as LocalEntry, b0 as LoopCheckFacts, b1 as LoopCheckState, b2 as LoopGuard, b3 as MappedTool, b4 as MarkdownToken, b5 as MergeGateEntry, b6 as MergeGateResponse, b7 as MergeWordingHandoff, b8 as MessageBlock, b9 as MessageRole, ba as ModelsResponse, bb as NOT_STARTED, bc as NO_TURN, bd as NewTaskFields, bg as OUTPUT_LINES_DEFAULT, bh as OUTPUT_LINES_MAX, bi as OkResponse, bj as OpRef, bk as OpRefusal, bm as OutputPreview, bn as OverrideDirection, bo as PLANNED_WITH_LABEL, br as PendingApprovalsOptions, bs as PlanBlock, bt as PlanBlocks, bv as PlanMarkerStatus, bw as PlanResponse, bx as PlanSnapshot, bz as PlannerCommandSyntax, bF as PlannerModelChoice, bG as PlannerModelMemory, bJ as PlannerNotReady, bK as PlannerNotReadyError, bL as PlannerReadinessConfig, bM as PlannerSubmission, bN as PlannerTurnDiscardedError, bO as PlannerTurnStoppedError, bP as PlannerUsageLimitError, bQ as PrdResponse, bR as PromptHold, bS as REPORT_PREVIEW_LINES, bT as RUN_SETTINGS_DEFAULTS, bU as ReadRunnerAuthOptions, bY as ResolveConflictResponse, bZ as RevertPreviewTask, b_ as RevertRefusal, b$ as RevertRefusalReason, c0 as RevertScope, c2 as RewindTargetsResponse, c4 as RunInput, c6 as RunSettingsError, c7 as RunSnapshotFrame, c8 as RunTask, c9 as RunTaskStatus, cd as RunnerAuthExecOptions, ce as RunnerAuthExecResult, cg as RunnerLoadedBlock, ch as RunnersResponse, ci as STALLED_LABEL, cj as STOPPED_BEFORE_START, ck as STOPPING_LABEL, cl as SUBPLANNER_ACCOUNTING, cm as SUBPLANNER_CHILD, cn as SUBPLANNER_SCOPE, co as SUPERVISOR_LEVEL_LABEL, cp as SerializedConversationMessage, cq as SerializedPendingTurn, cr as SerializedPlan, cs as SerializedTask, ct as SerializedTaskStatus, cu as ServerInfoResponse, cw as SessionFrame, cy as SessionHeldError, cA as SessionLeaseRecord, cB as SessionListResponse, cE as SessionResponse, cF as SettingsResponse, cG as SettingsService, cH as SettingsUpdateResponse, cI as SkillInvocation, cJ as SkillLoadBlock, cK as SkillToken, cM as StartAdmission, cN as StopResponse, cO as StreamStamp, cP as SubagentBlock, cQ as SubagentChild, cR as SubagentStatus, cU as SubtreeItemView, cV as SubtreeView, cW as SurfacePlan, cX as SurfacePlanState, cY as SurfaceTask, cZ as TASK_QUERY_ANSWER_MAX_CHARS, c_ as TASK_QUERY_ANSWER_OR_OPS, c$ as TASK_QUERY_FIELDS, d0 as TASK_QUERY_PROTOCOL, d1 as TASK_QUERY_REMINDER, d2 as TERMINAL_UI_COMMANDS, d3 as TakenPrompt, d4 as TaskAction, d5 as TaskActivity, d6 as TaskAttemptSnapshot, d7 as TaskLogAttemptsResponse, d8 as TaskLogBatch, da as TaskLogFollow, db as TaskLogFollowInput, dc as TaskLogHeaderKind, dd as TaskLogHeaderTask, de as TaskLogHeaderUsage, df as TaskLogHeaderView, dg as TaskLogResponse, dh as TaskLogView, di as TaskMessageResponse, dj as TaskOp, dl as TaskOrchestratorDeps, dp as TaskPlacement, dq as TaskQuery, ds as TaskQueryField, dt as TaskRef, dv as TaskRevertPreviewResponse, dw as TaskRowAction, dx as TaskRowContext, dy as TaskRowDelegated, dz as TaskRowHandoff, dA as TaskRowIsolation, dB as TaskRowKind, dC as TaskRowLoop, dD as TaskRowPlacement, dE as TaskRowSubject, dF as TaskRowUsage, dG as TaskRowView, dH as TaskRunFacts, dI as TaskStatusKind, dJ as ThinkingDisplayBlock, dK as ToolBlock, dL as ToolHeadline, dM as ToolStatus, dO as TreeTask, dQ as TurnGate, dR as UsageBlock, dT as WAITS_FOR_APPROVAL_LABEL, dU as WakeUpItem, dZ as Worded, d_ as WorkspacesResponse, d$ as abbreviateHome, e0 as accountLimitPercentText, e1 as accountLimitWindowLabel, e2 as accountLimitsOf, e3 as accountLimitsText, e4 as accountLimitsTitle, e5 as activityLabel, e6 as aheadOfDraft, e7 as applyTaskOps, e8 as approvalKindText, e9 as approvalLabel, ea as approvalStatusText, eb as assignedRunnerOf, ec as assignmentIssue, ed as assignmentIssueText, ee as attachingLabel, ef as automergeSummary, eg as autorunSummary, eh as awaitingLabel, ei as blockNotice, ej as blockNotices, ek as blockedByLabel, el as blockingFailures, em as canMergeTasks, en as canSetDependencies, eo as canSplitTask, ep as capConflictFiles, eq as cardEditNeedsUnstarted, er as cardEditable, es as changeContainers, et as checkoutRule, eu as classifyOutcome, ev as closeTurn, ew as coalesceTaskLog, ex as compactionText, ey as confirmedOverride, ez as containerStatus, eA as containersOffered, eB as createAiService, eC as delegatedRowView, eD as delegationSummary, eE as dependencyCandidates, eF as dependentsNotice, eG as dependentsOf, eH as describeContainers, eI as describeHeld, eJ as describeHolder, eK as describeIsolationPreview, eL as describeMergeResult, eM as describePlannerNotReady, eN as describeProblems, eO as diffRows, eP as diffStat, eQ as diffSummary, eR as digestTaskLog, eS as drainNext, eT as editableWhileRunning, eU as elapsedSince, eV as escalations, eW as executionSummary, eX as followTaskLog, eY as followTurn, eZ as formatElapsed, e_ as fromTranscript, e$ as getSettingsPath, f0 as handoffBaseLine, f1 as handoffBranchName, f2 as handoffFindingsText, f3 as handoffPeekParts, f4 as hasAccountLimits, f5 as hasHiddenDetail, f6 as hasLongReport, f7 as holdLabel, f8 as holdPrompt, fa as isRepoGroup, fb as isTaskRunning, fc as keptDelegationBudget, fd as lastServedModel, fe as loadedSkillTokens, ff as logContinues, fg as logResumes, fh as loopBodyLabel, fi as loopBodyRound, fj as loopCheckLabel, fk as loopCheckState, fl as loopLeaveNotice, fm as loopRowParts, fn as manualOverrideConfirmation, fo as manualOverrideStopFirst, fp as mapAgentTool, fq as markAction, fr as markdownHtml, fs as markdownTokens, ft as mergeOutcome, fu as mergePastChecksConfirmation, fv as mergeTarget, fw as namedRepos, fx as newTaskFields, fy as noExecutorRefusal, fz as normalizeAgentArgs, fA as opRefusalText, fB as opsEditable, fC as outputLines, fD as outputPreview, fE as overrideNeedsConfirmation, fF as parseCount, fG as parseDelegation, fH as parseSwitch, fI as parseTaskOpsJson, fJ as parseTaskQueryJson, fK as pastGateConfirmation, fL as planBlocks, fM as planMarkerParts, fN as plannerMessage, fO as plannerNotReady, fP as plannerNotReadyFor, fQ as plannerTranscript, fR as processLeaseHost, fS as ranSealed, fT as readRunnerAuth, fU as receiptLabel, fV as reconcileApprovals, fW as recordRunnerAuth, fX as recordedRunnerAuth, fY as reduceConversation, fZ as reduceRun, f_ as reduceTaskLog, f$ as rememberDelegationBudget, g0 as renderTaskQueryAnswer, g1 as repairWaitLabel, g2 as repairedLanded, g3 as repairedNotice, g4 as repeatingChecks, g5 as replayTaskLog, g6 as repoBaseLine, g7 as repoResultLines, g8 as reposWithWork, g9 as resetRunnerAuth, ga as resolveSkillInvocation, gb as resolveTaskRef, gc as resolveUserTaskRef, gd as resumeLabel, ge as resumeTime, gf as revertEffect, gg as revertListLine, gh as revertTaskRef, gi as runHoldsEditors, gj as runSettingsOf, gk as runnerToolSubject, gl as scriptExitText, gm as scriptRunText, gn as secondsText, go as serializePlan, gp as serializeTask, gq as serializeTaskStatus, gr as skillTokens, gs as skippedLabel, gt as stopTurn, gu as subtreeIds, gv as subtreeView, gw as summarizeToolCall, gx as supervisorSummary, gy as surfacePlan, gz 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, g_ as unsendAll, g$ as unsendLatest, h0 as wakeUpItems, h1 as walkPlan, h2 as withoutSealedMark, h3 as workspaceEnvOf } from './runSettingsText-C6eto6Uv.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';
|
|
@@ -2522,6 +2522,8 @@ declare class CodexAdapter extends StdioAgentAdapter implements TaskModeAgentAda
|
|
|
2522
2522
|
private openThread;
|
|
2523
2523
|
commands(): RunnerCommand$1[];
|
|
2524
2524
|
invokeCommand(name: string, args: string, onEvent: (event: AgentEvent) => void, signal?: AbortSignal): Promise<void>;
|
|
2525
|
+
/** The path the runner knows its work by: placed, this host's means nothing to it (ADR-0059 L5). */
|
|
2526
|
+
private runnerCwd;
|
|
2525
2527
|
private loadCommands;
|
|
2526
2528
|
/**
|
|
2527
2529
|
* The MCP servers Codex's own configuration would start, every layer of it,
|
|
@@ -3007,6 +3009,8 @@ interface SessionCatalogDeps {
|
|
|
3007
3009
|
config: Pick<IConfig, 'enabledRunners' | 'autonomousMode' | 'aiProvider'>;
|
|
3008
3010
|
/** 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
3011
|
autonomous?: () => boolean;
|
|
3012
|
+
/** 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. */
|
|
3013
|
+
held?: () => Pick<MandateLimits, 'runners' | 'models'>;
|
|
3010
3014
|
registry: Pick<RunnerRegistry, 'getManifest'>;
|
|
3011
3015
|
modelResolver: Pick<ModelResolver, 'modelsForRunners' | 'getCachedRunnerModels'>;
|
|
3012
3016
|
/** Read at each call: a toggle or allowlist edit made since the session was built counts (#69). */
|
|
@@ -3034,6 +3038,8 @@ declare class SessionCatalog {
|
|
|
3034
3038
|
private discovered;
|
|
3035
3039
|
constructor(deps: SessionCatalogDeps);
|
|
3036
3040
|
private autonomous;
|
|
3041
|
+
/** The settings as they stand, within what this node's mandate holds. */
|
|
3042
|
+
private assignable;
|
|
3037
3043
|
/** The runners enabled right now. */
|
|
3038
3044
|
enabledRunners(): RunnerId[];
|
|
3039
3045
|
/** The runners `writer` may put a task on now ({@link assignableRunners}); undefined means any. */
|
|
@@ -3110,6 +3116,132 @@ declare class SessionCatalog {
|
|
|
3110
3116
|
}>;
|
|
3111
3117
|
}
|
|
3112
3118
|
|
|
3119
|
+
/**
|
|
3120
|
+
* Which session's logs, under which state root. A child's says which root it
|
|
3121
|
+
* sits under: a session id alone finds a root's (ADR-0055 D11).
|
|
3122
|
+
*/
|
|
3123
|
+
interface TaskLogLocation {
|
|
3124
|
+
baseDir: string;
|
|
3125
|
+
sessionId: string;
|
|
3126
|
+
rootSessionId?: string;
|
|
3127
|
+
}
|
|
3128
|
+
/** One attempt's file, open for appending. */
|
|
3129
|
+
interface TaskLogFile {
|
|
3130
|
+
readonly attempt: number;
|
|
3131
|
+
append(events: readonly TaskLogEvent[]): void;
|
|
3132
|
+
}
|
|
3133
|
+
/** The attempts a task has a log for, oldest first. */
|
|
3134
|
+
declare function listTaskLogAttempts(location: TaskLogLocation, taskId: string): number[];
|
|
3135
|
+
/**
|
|
3136
|
+
* Start an attempt's file, under the attempt's own number so its log and its
|
|
3137
|
+
* usage ledger name the same attempt. Without one, or when that file already
|
|
3138
|
+
* exists, it takes the next number after what is on disk: nothing saved is
|
|
3139
|
+
* ever overwritten.
|
|
3140
|
+
*/
|
|
3141
|
+
declare function openTaskLog(location: TaskLogLocation, taskId: string, attempt?: number): TaskLogFile;
|
|
3142
|
+
/**
|
|
3143
|
+
* Where a script task attempt's whole output goes, with its directory ready.
|
|
3144
|
+
* The caller writes the file; it is named for the attempt's number so it sits
|
|
3145
|
+
* beside the log, and is no attempt of its own.
|
|
3146
|
+
*/
|
|
3147
|
+
declare function prepareTaskOutputFile(location: TaskLogLocation, taskId: string, attempt: number): string;
|
|
3148
|
+
/** Where a read-only attempt's saved patch is kept, beside its log (ADR-0050). */
|
|
3149
|
+
declare function taskPatchFile(location: TaskLogLocation, taskId: string, attempt: number): string;
|
|
3150
|
+
/**
|
|
3151
|
+
* Keep a read-only attempt's patch beside its log, in place of one it saved
|
|
3152
|
+
* before (ADR-0050). Written whole under another name first, so a reader
|
|
3153
|
+
* never finds half a patch. Returns where it is.
|
|
3154
|
+
*/
|
|
3155
|
+
declare function saveTaskPatch(location: TaskLogLocation, taskId: string, attempt: number, patch: Buffer): string;
|
|
3156
|
+
/** A saved patch, or undefined when that attempt kept none. */
|
|
3157
|
+
declare function readTaskPatch(location: TaskLogLocation, taskId: string, attempt: number): Buffer | undefined;
|
|
3158
|
+
/**
|
|
3159
|
+
* One attempt's events, in order; empty when it has no log. A line that does
|
|
3160
|
+
* not parse is skipped — the last one, most likely, cut off by a crash
|
|
3161
|
+
* mid-write — so what was saved before it still reads.
|
|
3162
|
+
*/
|
|
3163
|
+
declare function readTaskLog(location: TaskLogLocation, taskId: string, attempt: number): TaskLogEvent[];
|
|
3164
|
+
|
|
3165
|
+
type ChildFrame = SessionMessage | SessionNotice;
|
|
3166
|
+
type ChildListener = (frame: ChildFrame) => void;
|
|
3167
|
+
/** A child with a live Session, as it seats itself on opening. */
|
|
3168
|
+
interface SeatedChild {
|
|
3169
|
+
sessionId: string;
|
|
3170
|
+
taskId: string;
|
|
3171
|
+
title: string;
|
|
3172
|
+
/** Its subplanner is in a turn, or one holds the conversation. */
|
|
3173
|
+
working(): boolean;
|
|
3174
|
+
/** Why a person's message would be refused now. */
|
|
3175
|
+
refusal(): Extract<ChildMessageOutcome, {
|
|
3176
|
+
ok: false;
|
|
3177
|
+
}> | null;
|
|
3178
|
+
view(): Omit<ChildPlanView, 'child'>;
|
|
3179
|
+
hear(text: string): ChildMessageOutcome;
|
|
3180
|
+
/** Its tasks waiting at a checkpoint now, each one {@link ChildPlanHandle.control} can answer. */
|
|
3181
|
+
checkpoints(): string[];
|
|
3182
|
+
control(taskId: string, control: ChildTaskControl): Promise<ChildControlOutcome>;
|
|
3183
|
+
}
|
|
3184
|
+
/** The root, as the directory reads it. */
|
|
3185
|
+
interface ChildDirectoryHost {
|
|
3186
|
+
rootSessionId(): string;
|
|
3187
|
+
/** The tree's ledger, or null for a session that has never delegated: a flat run opens none. */
|
|
3188
|
+
ledger(): Promise<TreeLedger | null>;
|
|
3189
|
+
rootTask(taskId: string): Task | undefined;
|
|
3190
|
+
/** A child's saved file: called only with an id the ledger names. */
|
|
3191
|
+
saved(sessionId: string): {
|
|
3192
|
+
meta: {
|
|
3193
|
+
goal: string;
|
|
3194
|
+
};
|
|
3195
|
+
plan: LegacyPlanState;
|
|
3196
|
+
} | null;
|
|
3197
|
+
logLocation(sessionId: string): TaskLogLocation;
|
|
3198
|
+
}
|
|
3199
|
+
/** One child plan, once the directory has found it in this tree. */
|
|
3200
|
+
interface ChildPlanHandle {
|
|
3201
|
+
entry(): ChildPlanEntry;
|
|
3202
|
+
view(): ChildPlanView;
|
|
3203
|
+
/** Every frame of its stream from now on, across a Continue that reseats the same id. */
|
|
3204
|
+
watch(listener: ChildListener): () => void;
|
|
3205
|
+
message(text: string): ChildMessageOutcome;
|
|
3206
|
+
/** On this plan's own task, as its subplanner: never its parent's, whatever the id names there. */
|
|
3207
|
+
control(taskId: string, control: ChildTaskControl): Promise<ChildControlOutcome>;
|
|
3208
|
+
logLocation(): TaskLogLocation;
|
|
3209
|
+
}
|
|
3210
|
+
/**
|
|
3211
|
+
* Every plan below one root, for a surface (ADR-0055 D20): the one place a
|
|
3212
|
+
* client's id is checked, against the tree's ledger, before anything is read
|
|
3213
|
+
* under it. Seating decides what a child is now; the ledger, what the tree
|
|
3214
|
+
* holds; a child's own file, what one with no Session left says.
|
|
3215
|
+
*/
|
|
3216
|
+
declare class ChildDirectory {
|
|
3217
|
+
private readonly host;
|
|
3218
|
+
private readonly seats;
|
|
3219
|
+
private readonly watchers;
|
|
3220
|
+
private readonly listeners;
|
|
3221
|
+
private readonly titles;
|
|
3222
|
+
private told;
|
|
3223
|
+
private telling;
|
|
3224
|
+
constructor(host: ChildDirectoryHost);
|
|
3225
|
+
/** The child is there until the returned call: a later opening of its id has seated its own by then. */
|
|
3226
|
+
seat(child: SeatedChild): () => void;
|
|
3227
|
+
publish(sessionId: string, frame: ChildFrame): void;
|
|
3228
|
+
/** A frame can come per token, so what changed is read once a tick, and only said when it did. */
|
|
3229
|
+
private changed;
|
|
3230
|
+
/** Called as what {@link list} would answer may have moved. */
|
|
3231
|
+
onChange(listener: () => void): () => void;
|
|
3232
|
+
list(): Promise<ChildPlanEntry[]>;
|
|
3233
|
+
/** Null for anything the tree does not name, which is how an id from elsewhere, or a path, is refused. */
|
|
3234
|
+
find(sessionId: string): Promise<ChildPlanHandle | null>;
|
|
3235
|
+
private ended;
|
|
3236
|
+
private view;
|
|
3237
|
+
private watch;
|
|
3238
|
+
/** A Continue opens a new node for the same child: its latest opening stands for it. */
|
|
3239
|
+
private latest;
|
|
3240
|
+
private entries;
|
|
3241
|
+
private title;
|
|
3242
|
+
private taskAbove;
|
|
3243
|
+
}
|
|
3244
|
+
|
|
3113
3245
|
/** One source for the spawn options, so a runner built on this base cannot drift from the interface. */
|
|
3114
3246
|
type RunnerSpawnOptions = Parameters<IRunner['spawn']>[0];
|
|
3115
3247
|
declare abstract class AbstractRunnerSession implements IRunnerSession {
|
|
@@ -3217,8 +3349,14 @@ interface SubplannerLink {
|
|
|
3217
3349
|
changed(): void;
|
|
3218
3350
|
/** A Stop stands over this node, its own or an ancestor's (ADR-0055 D16). */
|
|
3219
3351
|
stopped(): boolean;
|
|
3352
|
+
/** Its report is taken: it can still hear a person, but no work starts (ADR-0055 D7). */
|
|
3353
|
+
reported(): boolean;
|
|
3220
3354
|
/** 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
3355
|
usage(record: UsageRecord): void;
|
|
3356
|
+
/** The attempt is still open, so a person's message has a turn to reach (D20). */
|
|
3357
|
+
listening(): boolean;
|
|
3358
|
+
/** A turn a person's message opens: the attempt waits for it, and owes it nothing. */
|
|
3359
|
+
spoken(turn: () => Promise<unknown>): void;
|
|
3222
3360
|
}
|
|
3223
3361
|
/** The parent, as a child's attempt needs it. */
|
|
3224
3362
|
interface ChildHost {
|
|
@@ -3228,9 +3366,9 @@ interface ChildHost {
|
|
|
3228
3366
|
* naming the level, for what cannot be carved.
|
|
3229
3367
|
*/
|
|
3230
3368
|
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). */
|
|
3369
|
+
/** 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. */
|
|
3370
|
+
changedPaths(taskId: string, names?: 'both'): Promise<string[]>;
|
|
3371
|
+
/** A Stop stands over this node, or its report is taken: what its children read of their ancestors (D16). */
|
|
3234
3372
|
stopped(): boolean;
|
|
3235
3373
|
/** Usage on its way up the tree, past this level's row. */
|
|
3236
3374
|
passUp(record: UsageRecord): void;
|
|
@@ -3267,9 +3405,13 @@ declare class ChildPlanSession extends AbstractRunnerSession {
|
|
|
3267
3405
|
private output;
|
|
3268
3406
|
/** Turns this opened and has not seen end: until they do, a quiet child is one still opening. */
|
|
3269
3407
|
private opening;
|
|
3408
|
+
/** Turns a person's message opened and has not seen end. */
|
|
3409
|
+
private heard;
|
|
3270
3410
|
private reminded;
|
|
3271
3411
|
/** The accepted call, until it is published. */
|
|
3272
3412
|
private accepted;
|
|
3413
|
+
/** The last read of the branch is under way: the grace and a check can both reach it. */
|
|
3414
|
+
private publishing;
|
|
3273
3415
|
/** How the attempt raises a question: as a runner's `checkpoint` does, so the parent's task waits as any task at one. */
|
|
3274
3416
|
private ask;
|
|
3275
3417
|
/** A question went up and has no answer: nothing is stuck, and only the wall clock ends the wait (ADR-0056 M8). */
|
|
@@ -3299,6 +3441,12 @@ declare class ChildPlanSession extends AbstractRunnerSession {
|
|
|
3299
3441
|
/** 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
3442
|
private opened;
|
|
3301
3443
|
private turnSettled;
|
|
3444
|
+
/**
|
|
3445
|
+
* A person is not the plan above: however their turn ends, it costs this
|
|
3446
|
+
* attempt nothing, so a reminder already spent is owed again and a turn that
|
|
3447
|
+
* failed goes to the check, not to a verdict (ADR-0055 D20).
|
|
3448
|
+
*/
|
|
3449
|
+
private spoken;
|
|
3302
3450
|
private queueCheck;
|
|
3303
3451
|
/**
|
|
3304
3452
|
* What the child's state owes its attempt. Read after every change, so no
|
|
@@ -3336,6 +3484,12 @@ declare class ChildPlanSession extends AbstractRunnerSession {
|
|
|
3336
3484
|
* and refuses nothing. A read-only task lands nothing to say this of.
|
|
3337
3485
|
*/
|
|
3338
3486
|
private outsideScope;
|
|
3487
|
+
/**
|
|
3488
|
+
* The read a landing goes by. Nothing starts once a report is taken, but a
|
|
3489
|
+
* start that raced the call can still be running, so it winds down first and
|
|
3490
|
+
* its merge cannot land behind this read. An unread branch does not land.
|
|
3491
|
+
*/
|
|
3492
|
+
private lastRead;
|
|
3339
3493
|
private publish;
|
|
3340
3494
|
/** An end no subplanner reported: its handoff is what the plan and run show, and the verdict comes from there. */
|
|
3341
3495
|
private end;
|
|
@@ -3368,7 +3522,7 @@ declare class ChildPlanSession extends AbstractRunnerSession {
|
|
|
3368
3522
|
queued(): QueuedTaskMessage[];
|
|
3369
3523
|
/** A child has no one turn to interrupt: Stop ends it. */
|
|
3370
3524
|
interrupt(): Promise<void>;
|
|
3371
|
-
/** What a restart names (D3): the child session, not a runner's. */
|
|
3525
|
+
/** 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
3526
|
nativeSessionId(): string | null;
|
|
3373
3527
|
commands(): RunnerCommand$1[];
|
|
3374
3528
|
invokeCommand(): string;
|
|
@@ -3464,6 +3618,9 @@ declare class PlannerUsageLedger {
|
|
|
3464
3618
|
type PlannerCompactionMessage = Extract<SessionMessage, {
|
|
3465
3619
|
type: 'planner_compaction';
|
|
3466
3620
|
}>;
|
|
3621
|
+
type StatusUpdate = Extract<SessionMessage, {
|
|
3622
|
+
type: 'status_update';
|
|
3623
|
+
}>;
|
|
3467
3624
|
interface SessionEventRelayDeps {
|
|
3468
3625
|
broadcast: SessionBroadcaster;
|
|
3469
3626
|
/** Where isolation notices go, for a host whose notifications are not seen by the user. */
|
|
@@ -3497,7 +3654,7 @@ interface SessionEventRelayDeps {
|
|
|
3497
3654
|
* and remembered for a surface joining late, so Session announces it too. A
|
|
3498
3655
|
* model switch is a plan edit, which Session's editor announces as one.
|
|
3499
3656
|
*/
|
|
3500
|
-
type RelayObserver = Required<Omit<OrchestratorObserver, 'onTaskSettled' | 'onRunStarted' | 'onAutoMerge' | 'onUsageLimitWait' | 'onModelSwitched' | 'onTaskIdle' | 'onIsolationHandoff' | 'onRunClosed'>>;
|
|
3657
|
+
type RelayObserver = Required<Omit<OrchestratorObserver, 'onTaskSettled' | 'onRunStarted' | 'onAutoMerge' | 'onUsageLimitWait' | 'onModelSwitched' | 'onTaskIdle' | 'onIsolationHandoff' | 'onRunClosed' | 'onScriptClaimed'>>;
|
|
3501
3658
|
/**
|
|
3502
3659
|
* Turns orchestrator and planner events into {@link SessionMessage}
|
|
3503
3660
|
* broadcasts — the one place a surface's view of a Session is produced. It
|
|
@@ -3535,6 +3692,9 @@ declare class SessionEventRelay {
|
|
|
3535
3692
|
private landedSent;
|
|
3536
3693
|
/** The run as {@link statusChanged} last read it. */
|
|
3537
3694
|
private lastMoved;
|
|
3695
|
+
/** Each task's status as the last status update left surfaces holding it, so one carries only what moved. */
|
|
3696
|
+
private sentTasks;
|
|
3697
|
+
private wholeStatusAt;
|
|
3538
3698
|
private livePlan;
|
|
3539
3699
|
/** The planner's requests announced and not yet settled, as they were announced: a surface joining now is owed them. */
|
|
3540
3700
|
private readonly announced;
|
|
@@ -3545,8 +3705,10 @@ declare class SessionEventRelay {
|
|
|
3545
3705
|
observer(plan: () => LegacyPlanState | null): RelayObserver;
|
|
3546
3706
|
/** A delegated task's row moved: it can wait for the window, as usage does. */
|
|
3547
3707
|
rowsMoved(plan: LegacyPlanState | null): void;
|
|
3548
|
-
/** Send
|
|
3708
|
+
/** Send what moved now, however little was sent a moment ago: for what a surface must not wait for. */
|
|
3549
3709
|
status(plan: LegacyPlanState | null): void;
|
|
3710
|
+
/** `message` with only the tasks that moved: serialized, since most of what moves in a status is no field of the store. */
|
|
3711
|
+
private changesIn;
|
|
3550
3712
|
/**
|
|
3551
3713
|
* Send what is owed before something that assumes it arrived: a surface
|
|
3552
3714
|
* treats `execution_complete` as the end of the stream, for one, and a
|
|
@@ -3568,24 +3730,22 @@ declare class SessionEventRelay {
|
|
|
3568
3730
|
private statusChanged;
|
|
3569
3731
|
/**
|
|
3570
3732
|
* 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.
|
|
3733
|
+
* wait for the second to end: every update carries every wait and is judged
|
|
3734
|
+
* over the whole plan, so a hundred tasks failing together must not each cost
|
|
3735
|
+
* that with all those before them. The notifier reads the list as it goes
|
|
3736
|
+
* out, so it is told of them then, each once.
|
|
3575
3737
|
*/
|
|
3576
3738
|
private waitsMayHaveChanged;
|
|
3577
3739
|
/**
|
|
3578
3740
|
* 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.
|
|
3741
|
+
* every update is judged over the whole plan, so a wide run must not pay that
|
|
3742
|
+
* per report. What a person acts on still goes first: new work to merge, like
|
|
3743
|
+
* a new wait, goes at once, and the rest waits for the second to end.
|
|
3582
3744
|
*/
|
|
3583
3745
|
private isolationChanged;
|
|
3584
3746
|
private openStatusWindow;
|
|
3585
|
-
/** Every task's status as it stands
|
|
3586
|
-
statusMessage():
|
|
3587
|
-
type: 'status_update';
|
|
3588
|
-
}>;
|
|
3747
|
+
/** Every task's status as it stands: what a joining surface starts from. */
|
|
3748
|
+
statusMessage(): StatusUpdate;
|
|
3589
3749
|
private judgedStatus;
|
|
3590
3750
|
/** A {@link holdStatus} is running: whoever runs it saves as it ends. */
|
|
3591
3751
|
get holdingStatus(): boolean;
|
|
@@ -3613,52 +3773,6 @@ declare class SessionEventRelay {
|
|
|
3613
3773
|
progress(progress: ResearchProgress): void;
|
|
3614
3774
|
}
|
|
3615
3775
|
|
|
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
3776
|
interface TaskLogRecorderDeps {
|
|
3663
3777
|
broadcast: SessionBroadcaster;
|
|
3664
3778
|
/** Where the session's logs go, read as each attempt starts: a session's id can change between plans. */
|
|
@@ -3811,6 +3925,8 @@ interface ChildPlacement {
|
|
|
3811
3925
|
isolation: IWorktreeIsolation;
|
|
3812
3926
|
/** The root's, so the tree shares one Parallel limit (D18). */
|
|
3813
3927
|
pool: SlotPool;
|
|
3928
|
+
/** The root's, which a surface finds this child through (D20). */
|
|
3929
|
+
directory: ChildDirectory;
|
|
3814
3930
|
/** Its side of the tree's ledger, once a carve gave it one (ADR-0056 M5). */
|
|
3815
3931
|
budget?: NodeBudget;
|
|
3816
3932
|
}
|
|
@@ -4044,6 +4160,10 @@ declare class Session {
|
|
|
4044
4160
|
private saveTimer;
|
|
4045
4161
|
/** The store's status mark as last saved, or as loaded. */
|
|
4046
4162
|
private savedStatuses;
|
|
4163
|
+
private savedRevision;
|
|
4164
|
+
private savedAt;
|
|
4165
|
+
private saveDue;
|
|
4166
|
+
private savesHeld;
|
|
4047
4167
|
/** The user was told the disk is refusing this session's saves, and none has landed since. */
|
|
4048
4168
|
private saveFailureSaid;
|
|
4049
4169
|
/** A whole-plan start opening; a second Execute joins it rather than resetting the run under it. */
|
|
@@ -4066,6 +4186,7 @@ declare class Session {
|
|
|
4066
4186
|
private readonly budget;
|
|
4067
4187
|
/** The tree's ledger, once something asked: a flat run never does, so it has none and writes no log (ADR-0058 S3). */
|
|
4068
4188
|
private tree;
|
|
4189
|
+
private ownChildren;
|
|
4069
4190
|
/** The lines this plan's landings owe its running tasks (ADR-0057 R6). */
|
|
4070
4191
|
private readonly scopeLines;
|
|
4071
4192
|
/** The subplanner was told a start was refused; a raise makes it news again (ADR-0056 M5). */
|
|
@@ -4267,6 +4388,8 @@ declare class Session {
|
|
|
4267
4388
|
* lease and isolation (D11, D13). Throws for a task with no worktree (D12).
|
|
4268
4389
|
*/
|
|
4269
4390
|
hostChild(taskId: string): ChildPlacement;
|
|
4391
|
+
/** The tree's plans as a surface reaches them, one directory at every depth (ADR-0055 D20). */
|
|
4392
|
+
get children(): ChildDirectory;
|
|
4270
4393
|
/** The root Session's id, under which a tree's state sits (ADR-0055 D11). */
|
|
4271
4394
|
get rootSessionId(): string;
|
|
4272
4395
|
/**
|
|
@@ -4308,6 +4431,12 @@ declare class Session {
|
|
|
4308
4431
|
* as a carve or a raise is asked for, so a raised setting reaches them.
|
|
4309
4432
|
*/
|
|
4310
4433
|
private currentTree;
|
|
4434
|
+
/**
|
|
4435
|
+
* What the ledger says of this node's budget, in the tick a check reads it: a
|
|
4436
|
+
* check has no wait to open one with, and a root with no ledger open has
|
|
4437
|
+
* carved nothing yet in this process.
|
|
4438
|
+
*/
|
|
4439
|
+
private heldFunds;
|
|
4311
4440
|
/**
|
|
4312
4441
|
* A child's mandate and budget, carved from what this node has left
|
|
4313
4442
|
* (ADR-0056 M4, M5). At the root, what can never pass is refused before a
|
|
@@ -4345,10 +4474,34 @@ declare class Session {
|
|
|
4345
4474
|
private discardChildren;
|
|
4346
4475
|
/** This session as its parent's attempt drives it, `pins` what it is told as it starts (ADR-0057 R10). */
|
|
4347
4476
|
private asNode;
|
|
4348
|
-
/**
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4477
|
+
/** This child as a surface that selected it opens it, the same shape a joining client reads of any session. */
|
|
4478
|
+
private seenFromAbove;
|
|
4479
|
+
/** `opensTurn`: an answer does not, and a runner must not stay parked at its question for want of a turn nobody takes. */
|
|
4480
|
+
private personRefused;
|
|
4481
|
+
/**
|
|
4482
|
+
* A person's message to this child (ADR-0055 D20): a turn of its subplanner
|
|
4483
|
+
* as any other, its actor and mandate unchanged, so no budget, grant or
|
|
4484
|
+
* effect moves here. Skills are not resolved, which would be a person
|
|
4485
|
+
* loading them past the allowlist. It goes no higher: what the plan above
|
|
4486
|
+
* hears of it is what the subplanner chooses to pass up.
|
|
4487
|
+
*/
|
|
4488
|
+
private hearPerson;
|
|
4489
|
+
/**
|
|
4490
|
+
* A person's control on this plan's own task (ADR-0055 D20): the command its
|
|
4491
|
+
* subplanner could call, as its subplanner, so its held mandate decides and
|
|
4492
|
+
* no budget, grant or effect moves here. An id this plan does not hold is
|
|
4493
|
+
* refused rather than resolved, and the question is compared in the same
|
|
4494
|
+
* tick the seam checks and answers it, so no answer lands on a later one.
|
|
4495
|
+
* The subplanner hears of it on its next turn, and none is opened to tell it.
|
|
4496
|
+
*/
|
|
4497
|
+
private controlledByPerson;
|
|
4498
|
+
/**
|
|
4499
|
+
* Reopened (ADR-0055 D17): as Execute, so what failed is retried, but for its
|
|
4500
|
+
* own children, which go on under this same Continue, and then its subplanner
|
|
4501
|
+
* goes on. One whose plan never reached the disk plans its goal, and one with
|
|
4502
|
+
* nothing left to run goes straight to its turn: it may owe only its report.
|
|
4503
|
+
* `told` adds the pins of now, posted since it opened or not (ADR-0057 R10);
|
|
4504
|
+
* its children hear the message without them, and add their own.
|
|
4352
4505
|
*/
|
|
4353
4506
|
private goOn;
|
|
4354
4507
|
private get taskLogReader();
|
|
@@ -4384,6 +4537,10 @@ declare class Session {
|
|
|
4384
4537
|
get underStop(): boolean;
|
|
4385
4538
|
/** 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
4539
|
nodeRefusal(): string | null;
|
|
4540
|
+
/** Its report is what its verdict and landing go by: work behind it would land past both (ADR-0055 D7). */
|
|
4541
|
+
get reported(): boolean;
|
|
4542
|
+
/** {@link nodeRefusal}, and a report: a turn can still read a person's message, but no task may start from it. */
|
|
4543
|
+
startRefusal(): string | null;
|
|
4387
4544
|
/**
|
|
4388
4545
|
* Everything under this node stops, leaves first, its planner turn and any
|
|
4389
4546
|
* turn waiting included, and this resolves once it has all gone: with no
|
|
@@ -4400,7 +4557,7 @@ declare class Session {
|
|
|
4400
4557
|
/** A raise only moves numbers: what its room lets start is this run's to start (ADR-0056 M5). */
|
|
4401
4558
|
private budgetRaised;
|
|
4402
4559
|
/** What a delegated task's branch changed since its base. */
|
|
4403
|
-
changedPaths(taskId: string): Promise<string[]>;
|
|
4560
|
+
changedPaths(taskId: string, names?: 'both'): Promise<string[]>;
|
|
4404
4561
|
/** Why this node stopped for its budget, or null: a parent's reason for ending it `blocked`. */
|
|
4405
4562
|
get outOfBudget(): string | null;
|
|
4406
4563
|
/** The attempts of a task that have a saved log, oldest first. */
|
|
@@ -4418,8 +4575,9 @@ declare class Session {
|
|
|
4418
4575
|
get planTasks(): ReadonlyArray<Readonly<Task>>;
|
|
4419
4576
|
/**
|
|
4420
4577
|
* 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.
|
|
4578
|
+
* them owe, each made before the announcement so no surface sees a decision
|
|
4579
|
+
* the disk lacks. A status that decides nothing may lead the disk by up to
|
|
4580
|
+
* {@link STATUS_SAVE_INTERVAL_MS}.
|
|
4423
4581
|
*/
|
|
4424
4582
|
private observer;
|
|
4425
4583
|
/**
|
|
@@ -4436,13 +4594,19 @@ declare class Session {
|
|
|
4436
4594
|
* write: a turn holds what it writes until the mutation that lands it.
|
|
4437
4595
|
*/
|
|
4438
4596
|
private persist;
|
|
4597
|
+
/** 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. */
|
|
4598
|
+
private savingOnce;
|
|
4439
4599
|
/**
|
|
4440
4600
|
* 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
|
-
*
|
|
4601
|
+
* decision and a reload read, so a changed one is saved within the second,
|
|
4602
|
+
* and at once if no save came in the one before: a save writes the whole
|
|
4603
|
+
* plan, and a wide run starts tasks far faster than that is worth. A
|
|
4604
|
+
* settled task and a user's control are not paced, and neither is a script,
|
|
4605
|
+
* saved as it starts (see {@link observer}). What changed beside a status
|
|
4606
|
+
* goes with it; anything else can wait for the timer.
|
|
4443
4607
|
*/
|
|
4444
4608
|
private saveChange;
|
|
4445
|
-
/** Owe a save, made once however often this is called before it comes. */
|
|
4609
|
+
/** Owe a save, made once, by the soonest it was asked for, however often this is called before it comes. */
|
|
4446
4610
|
private saveSoon;
|
|
4447
4611
|
/**
|
|
4448
4612
|
* A save nothing that follows may depend on: a full disk must not take the
|
|
@@ -4698,7 +4862,7 @@ declare class Session {
|
|
|
4698
4862
|
private conversationOpening;
|
|
4699
4863
|
/** A planner's tools, and for a subplanner the two its parent's attempt answers (ADR-0055 D5). */
|
|
4700
4864
|
private offeredTools;
|
|
4701
|
-
/** What the prompt says of this node's limits, as it stands when the planner starts (ADR-0055 D19). */
|
|
4865
|
+
/** 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
4866
|
private delegationBrief;
|
|
4703
4867
|
/**
|
|
4704
4868
|
* Load planner-produced tasks, as the check they landed through resolved
|
|
@@ -4958,35 +5122,6 @@ declare class Session {
|
|
|
4958
5122
|
plannerSettingsChanged(): void;
|
|
4959
5123
|
}
|
|
4960
5124
|
|
|
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
5125
|
/**
|
|
4991
5126
|
* A session delete's half of it, which has no Session or backend to ask. Without
|
|
4992
5127
|
* the setting nothing has been put in an engine, and Docker is not asked: a user
|
|
@@ -5199,6 +5334,7 @@ declare class BufferedTaskOutputSource implements TaskOutputSource {
|
|
|
5199
5334
|
handoff(taskId: string): StoredHandoff | undefined;
|
|
5200
5335
|
liveTail(taskId: string, opts: LiveTailOptions): LiveTail | null;
|
|
5201
5336
|
private append;
|
|
5337
|
+
private cutTo;
|
|
5202
5338
|
}
|
|
5203
5339
|
|
|
5204
5340
|
interface StructuredRunnerDeps {
|
|
@@ -6054,4 +6190,4 @@ declare function parseVersion(version: string): number[] | null;
|
|
|
6054
6190
|
/** Negative, zero or positive as `a` is older than, the same as, or newer than `b`; an unreadable version sorts oldest. */
|
|
6055
6191
|
declare function compareVersions(a: string, b: string): number;
|
|
6056
6192
|
|
|
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, BatchQuoteError, BufferedTaskOutputSource, type ByPlannerBackend, CLAUDE_CODE_MANIFEST, CLI_PROVIDERS, CMD_EXE_MAX_COMMAND_LINE, CODEX_SANDBOX_DOCS, CODEX_SANDBOX_OFF_LINE, type CachedPage, type CappedRows, CheckpointAnswer, type CheckpointListener, type ChildPlacement, type ClaudeAccountLimitOptions, ClaudeCodeAdapter, type CodexAccountLimitOptions, CodexAdapter, CodexSandboxAvailability, CommandLineTooLongError, 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, DuckDuckGoSearchProvider, EmbeddedNewlineError, type EnvAdmission, EnvConfig, Escalation, type ExecImpl, ExecutableNotFoundError, 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, type LaunchDeps, type LaunchPlan, LeaseHost, LegacyPlanState, LiveTail, LiveTailOptions, Mandate, 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, WINDOWS_MAX_COMMAND_LINE, 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, isExecutableResolved, isOpenAiProvider, isPlannerBackend, isVendorModelFor, isolationViewOfPlan, killTree, languageForId, listTaskLogAttempts, listTree, loadState, looksLikeChallenge, migrateOldConfigDir, migratePlanIsolation, mintDaemonToken, mintSessionId, nativeShellInvocation, nativeShellOffer, normalizeGeminiModel, notifyCommandOf, openCodeGoAccountLimitCollector, openTaskLog, parseExecutionCommand, parseMaxParallel, parseSearchHits, parseVersion, planDirectLaunch, 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, windowsCommandLine, withPath, writeFileAtomic, writePrivateFile };
|
|
6193
|
+
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, BatchQuoteError, BufferedTaskOutputSource, type ByPlannerBackend, CLAUDE_CODE_MANIFEST, CLI_PROVIDERS, CMD_EXE_MAX_COMMAND_LINE, 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, CommandLineTooLongError, 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, EmbeddedNewlineError, type EnvAdmission, EnvConfig, Escalation, type ExecImpl, ExecutableNotFoundError, 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, type LaunchDeps, type LaunchPlan, 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, WINDOWS_MAX_COMMAND_LINE, 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, isExecutableResolved, isOpenAiProvider, isPlannerBackend, isVendorModelFor, isolationViewOfPlan, killTree, languageForId, listTaskLogAttempts, listTree, loadState, looksLikeChallenge, migrateOldConfigDir, migratePlanIsolation, mintDaemonToken, mintSessionId, nativeShellInvocation, nativeShellOffer, normalizeGeminiModel, notifyCommandOf, openCodeGoAccountLimitCollector, openTaskLog, parseExecutionCommand, parseMaxParallel, parseSearchHits, parseVersion, planDirectLaunch, 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, windowsCommandLine, withPath, writeFileAtomic, writePrivateFile };
|