@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/parsing.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parsePlanJson
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IOYBL3E5.mjs";
|
|
4
4
|
import {
|
|
5
5
|
PlanParseError,
|
|
6
6
|
extractJsonObject,
|
|
7
7
|
stripModelNoise
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-YZDWWXCB.mjs";
|
|
9
|
+
import "./chunk-POD3KZQW.mjs";
|
|
10
10
|
|
|
11
11
|
// src/services/PartialPlanParser.ts
|
|
12
12
|
function parsePartialPlan(partial) {
|
package/dist/plan-utils.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { b as AccountLimitBucket, c as AccountLimitSnapshot, d as AccountLimitStatus, e as AccountLimitWindow, l as ApprovalBlock, n as ApprovalStatus, s as AssignmentIssue, t as AssignmentScope, B as BlockingSubject, w as CHECKPOINT_TRUNCATE_LENGTH,
|
|
2
|
-
export { a as AttemptUsage, g as ContextFill, i as CostProvenance, k as DEFAULT_RUNNERS, t as FindingSeverity, z as HandoffArtifact, K as HandoffDigest, L as HandoffEvidence, M as HandoffFinding, ar as ModelUsage, av as PatchView, aA as PlanUsage,
|
|
3
|
-
import './eventStore-
|
|
1
|
+
export { b as AccountLimitBucket, c as AccountLimitSnapshot, d as AccountLimitStatus, e as AccountLimitWindow, l as ApprovalBlock, n as ApprovalStatus, s as AssignmentIssue, t as AssignmentScope, B as BlockingSubject, w as CHECKPOINT_TRUNCATE_LENGTH, P as CommandBlock, T as CommandStatus, V as CompactionBlock, W as CompactionStatus, a7 as ConversationInput, ab as ConversationView, ad as DELEGATION_OFFERED, 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, aF as GatedConversation, aJ as HandoffBlock, aK as HandoffForkRepo, aL as HandoffPeekSubject, aN as IDLE_ACTIVITY, aR as IsolationPreviewNotice, a$ as LocalEntry, b0 as LoopCheckFacts, b1 as LoopCheckState, b4 as MarkdownToken, b8 as MessageBlock, b9 as MessageRole, bb as NOT_STARTED, bc as NO_TURN, bd as NewTaskFields, bm as OutputPreview, bn as OverrideDirection, bo as PLANNED_WITH_LABEL, bs as PlanBlock, bt as PlanBlocks, bv as PlanMarkerStatus, bR as PromptHold, bS as REPORT_PREVIEW_LINES, bV as RefTask, cg as RunnerLoadedBlock, ci as STALLED_LABEL, ck as STOPPING_LABEL, cl as SUBPLANNER_ACCOUNTING, cm as SUBPLANNER_CHILD, cn as SUBPLANNER_SCOPE, co as SUPERVISOR_LEVEL_LABEL, cJ as SkillLoadBlock, cK as SkillToken, cP as SubagentBlock, cQ as SubagentChild, cR as SubagentStatus, cU as SubtreeItemView, cV as SubtreeView, d3 as TakenPrompt, d4 as TaskAction, d5 as TaskActivity, d8 as TaskLogBatch, da as TaskLogFollow, db as TaskLogFollowInput, dc as TaskLogHeaderKind, dd as TaskLogHeaderTask, de as TaskLogHeaderUsage, df as TaskLogHeaderView, dh as TaskLogView, dp as TaskPlacement, dt as TaskRef, 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, e0 as accountLimitPercentText, e1 as accountLimitWindowLabel, e2 as accountLimitsOf, e3 as accountLimitsText, e4 as accountLimitsTitle, e5 as activityLabel, e6 as aheadOfDraft, e8 as approvalKindText, e9 as approvalLabel, ea as approvalStatusText, eb as assignedRunnerOf, ec as assignmentIssue, ed as assignmentIssueText, ee as attachingLabel, 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, ev as closeTurn, ex as compactionText, ey as confirmedOverride, eA as containersOffered, eC as delegatedRowView, eE as dependencyCandidates, eF as dependentsNotice, eG as dependentsOf, eK as describeIsolationPreview, eL as describeMergeResult, eO as diffRows, eP as diffStat, eQ as diffSummary, eS as drainNext, eT as editableWhileRunning, eU as elapsedSince, eX as followTaskLog, eY as followTurn, eZ as formatElapsed, e_ as fromTranscript, 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, f9 as isFileEditTool, fa as isRepoGroup, fb as isTaskRunning, fc as keptDelegationBudget, 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, fq as markAction, fr as markdownHtml, fs as markdownTokens, ft as mergeOutcome, fu as mergePastChecksConfirmation, fw as namedRepos, fx as newTaskFields, fy as noExecutorRefusal, fB as opsEditable, fC as outputLines, fD as outputPreview, fE as overrideNeedsConfirmation, fF as parseCount, fK as pastGateConfirmation, fL as planBlocks, fM as planMarkerParts, fU as receiptLabel, fV as reconcileApprovals, fY as reduceConversation, f_ as reduceTaskLog, f$ as rememberDelegationBudget, g1 as repairWaitLabel, g2 as repairedLanded, g3 as repairedNotice, g4 as repeatingChecks, g5 as replayTaskLog, g6 as repoBaseLine, g7 as repoResultLines, gb as resolveTaskRef, gc as resolveUserTaskRef, gd as resumeLabel, ge as resumeTime, gf as revertEffect, gg as revertListLine, gh as revertTaskRef, gi as runHoldsEditors, gk as runnerToolSubject, gr as skillTokens, gs as skippedLabel, gt as stopTurn, gu as subtreeIds, gv as subtreeView, gw as summarizeToolCall, gA as takeAt, gB as taskActionCommand, gC as taskActivity, gD as taskChatAvailable, gE as taskLogCommands, gG as taskLogHeaderView, gH as taskOrderLabel, gI as taskPlacement, gK as taskRef, gL as taskRefOf, gM as taskRowActions, gN as taskRowView, gO as taskStartedNotice, gP as taskStatusKind, gS as titledRefs, gT as titledTaskRef, gU as titledTaskRefOf, gW as toolHeadline, gZ as truncateCheckpointSummary, g_ as unsendAll, g$ as unsendLatest, h0 as wakeUpItems, h1 as walkPlan } from './runSettingsText-DnzSrB0c.mjs';
|
|
2
|
+
export { a as AttemptUsage, g as ContextFill, i as CostProvenance, k as DEFAULT_RUNNERS, t as FindingSeverity, z as HandoffArtifact, K as HandoffDigest, L as HandoffEvidence, M as HandoffFinding, ar as ModelUsage, av as PatchView, aA as PlanUsage, aH as PlannerUsage, aW as ReportedWindow, b5 as RunnerSessionCost, b6 as SEVERITY_LABEL, bb as SessionBilling, bm as StoredHandoff, bw as TaskLoop, bE as TaskUsageSummary, bG as UsageLine, bH as UsageRecord, bI as UsageTotals, bN as addAttemptUsage, bO as addModelUsage, bP as addPlannerUsage, bQ as addUsage, bR as addUsageTotals, bT as betweenRounds, bX as checkOf, b_ as contextMeterText, b$ as contextMeterTitle, c0 as costText, c1 as countedSessionCost, c6 as endAttemptUsage, cb as formatCost, cc as formatTokenCount, cg as handoffReferenceText, ck as heldWords, cn as isMeasured, cq as loopRemovalRefusal, cr as loopRoundOf, cu as modelCostTitle, cz as outOfRounds, cF as partedPromptUsage, cL as patchView, cM as pausedOnLimit, cO as planUsage, cP as plannerContextFill, cU as resumedSessionWindow, cY as savedPatchView, cZ as savedPatchViews, d1 as scriptTaskText, d2 as severityLabel, d3 as spentTokens, d4 as startAttemptUsage, d6 as subagentCostTitle, d7 as taskUsageSummary, d8 as tasksTotalText, db as usageLine, dc as usageText, dg as worstSeverity } from './Task-D3O49EUo.mjs';
|
|
3
|
+
import './eventStore-BcoMsZtU.mjs';
|
|
4
4
|
import 'child_process';
|
|
5
5
|
import 'zod/v4';
|
|
6
|
-
import './ModeResolver-
|
|
6
|
+
import './ModeResolver-CkZnbIqs.mjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* The tips an empty planner chat composer shows (#137), one table for every
|
package/dist/plan-utils.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { b as AccountLimitBucket, c as AccountLimitSnapshot, d as AccountLimitStatus, e as AccountLimitWindow, l as ApprovalBlock, n as ApprovalStatus, s as AssignmentIssue, t as AssignmentScope, B as BlockingSubject, w as CHECKPOINT_TRUNCATE_LENGTH,
|
|
2
|
-
export { a as AttemptUsage, g as ContextFill, i as CostProvenance, k as DEFAULT_RUNNERS, t as FindingSeverity, z as HandoffArtifact, K as HandoffDigest, L as HandoffEvidence, M as HandoffFinding, ar as ModelUsage, av as PatchView, aA as PlanUsage,
|
|
3
|
-
import './eventStore-
|
|
1
|
+
export { b as AccountLimitBucket, c as AccountLimitSnapshot, d as AccountLimitStatus, e as AccountLimitWindow, l as ApprovalBlock, n as ApprovalStatus, s as AssignmentIssue, t as AssignmentScope, B as BlockingSubject, w as CHECKPOINT_TRUNCATE_LENGTH, P as CommandBlock, T as CommandStatus, V as CompactionBlock, W as CompactionStatus, a7 as ConversationInput, ab as ConversationView, ad as DELEGATION_OFFERED, 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, aF as GatedConversation, aJ as HandoffBlock, aK as HandoffForkRepo, aL as HandoffPeekSubject, aN as IDLE_ACTIVITY, aR as IsolationPreviewNotice, a$ as LocalEntry, b0 as LoopCheckFacts, b1 as LoopCheckState, b4 as MarkdownToken, b8 as MessageBlock, b9 as MessageRole, bb as NOT_STARTED, bc as NO_TURN, bd as NewTaskFields, bm as OutputPreview, bn as OverrideDirection, bo as PLANNED_WITH_LABEL, bs as PlanBlock, bt as PlanBlocks, bv as PlanMarkerStatus, bR as PromptHold, bS as REPORT_PREVIEW_LINES, bV as RefTask, cg as RunnerLoadedBlock, ci as STALLED_LABEL, ck as STOPPING_LABEL, cl as SUBPLANNER_ACCOUNTING, cm as SUBPLANNER_CHILD, cn as SUBPLANNER_SCOPE, co as SUPERVISOR_LEVEL_LABEL, cJ as SkillLoadBlock, cK as SkillToken, cP as SubagentBlock, cQ as SubagentChild, cR as SubagentStatus, cU as SubtreeItemView, cV as SubtreeView, d3 as TakenPrompt, d4 as TaskAction, d5 as TaskActivity, d8 as TaskLogBatch, da as TaskLogFollow, db as TaskLogFollowInput, dc as TaskLogHeaderKind, dd as TaskLogHeaderTask, de as TaskLogHeaderUsage, df as TaskLogHeaderView, dh as TaskLogView, dp as TaskPlacement, dt as TaskRef, 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, e0 as accountLimitPercentText, e1 as accountLimitWindowLabel, e2 as accountLimitsOf, e3 as accountLimitsText, e4 as accountLimitsTitle, e5 as activityLabel, e6 as aheadOfDraft, e8 as approvalKindText, e9 as approvalLabel, ea as approvalStatusText, eb as assignedRunnerOf, ec as assignmentIssue, ed as assignmentIssueText, ee as attachingLabel, 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, ev as closeTurn, ex as compactionText, ey as confirmedOverride, eA as containersOffered, eC as delegatedRowView, eE as dependencyCandidates, eF as dependentsNotice, eG as dependentsOf, eK as describeIsolationPreview, eL as describeMergeResult, eO as diffRows, eP as diffStat, eQ as diffSummary, eS as drainNext, eT as editableWhileRunning, eU as elapsedSince, eX as followTaskLog, eY as followTurn, eZ as formatElapsed, e_ as fromTranscript, 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, f9 as isFileEditTool, fa as isRepoGroup, fb as isTaskRunning, fc as keptDelegationBudget, 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, fq as markAction, fr as markdownHtml, fs as markdownTokens, ft as mergeOutcome, fu as mergePastChecksConfirmation, fw as namedRepos, fx as newTaskFields, fy as noExecutorRefusal, fB as opsEditable, fC as outputLines, fD as outputPreview, fE as overrideNeedsConfirmation, fF as parseCount, fK as pastGateConfirmation, fL as planBlocks, fM as planMarkerParts, fU as receiptLabel, fV as reconcileApprovals, fY as reduceConversation, f_ as reduceTaskLog, f$ as rememberDelegationBudget, g1 as repairWaitLabel, g2 as repairedLanded, g3 as repairedNotice, g4 as repeatingChecks, g5 as replayTaskLog, g6 as repoBaseLine, g7 as repoResultLines, gb as resolveTaskRef, gc as resolveUserTaskRef, gd as resumeLabel, ge as resumeTime, gf as revertEffect, gg as revertListLine, gh as revertTaskRef, gi as runHoldsEditors, gk as runnerToolSubject, gr as skillTokens, gs as skippedLabel, gt as stopTurn, gu as subtreeIds, gv as subtreeView, gw as summarizeToolCall, gA as takeAt, gB as taskActionCommand, gC as taskActivity, gD as taskChatAvailable, gE as taskLogCommands, gG as taskLogHeaderView, gH as taskOrderLabel, gI as taskPlacement, gK as taskRef, gL as taskRefOf, gM as taskRowActions, gN as taskRowView, gO as taskStartedNotice, gP as taskStatusKind, gS as titledRefs, gT as titledTaskRef, gU as titledTaskRefOf, gW as toolHeadline, gZ as truncateCheckpointSummary, g_ as unsendAll, g$ as unsendLatest, h0 as wakeUpItems, h1 as walkPlan } from './runSettingsText-C6eto6Uv.js';
|
|
2
|
+
export { a as AttemptUsage, g as ContextFill, i as CostProvenance, k as DEFAULT_RUNNERS, t as FindingSeverity, z as HandoffArtifact, K as HandoffDigest, L as HandoffEvidence, M as HandoffFinding, ar as ModelUsage, av as PatchView, aA as PlanUsage, aH as PlannerUsage, aW as ReportedWindow, b5 as RunnerSessionCost, b6 as SEVERITY_LABEL, bb as SessionBilling, bm as StoredHandoff, bw as TaskLoop, bE as TaskUsageSummary, bG as UsageLine, bH as UsageRecord, bI as UsageTotals, bN as addAttemptUsage, bO as addModelUsage, bP as addPlannerUsage, bQ as addUsage, bR as addUsageTotals, bT as betweenRounds, bX as checkOf, b_ as contextMeterText, b$ as contextMeterTitle, c0 as costText, c1 as countedSessionCost, c6 as endAttemptUsage, cb as formatCost, cc as formatTokenCount, cg as handoffReferenceText, ck as heldWords, cn as isMeasured, cq as loopRemovalRefusal, cr as loopRoundOf, cu as modelCostTitle, cz as outOfRounds, cF as partedPromptUsage, cL as patchView, cM as pausedOnLimit, cO as planUsage, cP as plannerContextFill, cU as resumedSessionWindow, cY as savedPatchView, cZ as savedPatchViews, d1 as scriptTaskText, d2 as severityLabel, d3 as spentTokens, d4 as startAttemptUsage, d6 as subagentCostTitle, d7 as taskUsageSummary, d8 as tasksTotalText, db as usageLine, dc as usageText, dg as worstSeverity } from './Task-D3O49EUo.js';
|
|
3
|
+
import './eventStore-CSFKy48Y.js';
|
|
4
4
|
import 'child_process';
|
|
5
5
|
import 'zod/v4';
|
|
6
|
-
import './ModeResolver-
|
|
6
|
+
import './ModeResolver-DS-aCVOP.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* The tips an empty planner chat composer shows (#137), one table for every
|
package/dist/plan-utils.js
CHANGED
|
@@ -47,6 +47,9 @@ __export(plan_utils_exports, {
|
|
|
47
47
|
SEVERITY_LABEL: () => SEVERITY_LABEL,
|
|
48
48
|
STALLED_LABEL: () => STALLED_LABEL,
|
|
49
49
|
STOPPING_LABEL: () => STOPPING_LABEL,
|
|
50
|
+
SUBPLANNER_ACCOUNTING: () => SUBPLANNER_ACCOUNTING,
|
|
51
|
+
SUBPLANNER_CHILD: () => SUBPLANNER_CHILD,
|
|
52
|
+
SUBPLANNER_SCOPE: () => SUBPLANNER_SCOPE,
|
|
50
53
|
SUPERVISOR_LEVEL_LABEL: () => SUPERVISOR_LEVEL_LABEL,
|
|
51
54
|
WAITS_FOR_APPROVAL_LABEL: () => WAITS_FOR_APPROVAL_LABEL,
|
|
52
55
|
accountLimitPercentText: () => accountLimitPercentText,
|
|
@@ -86,6 +89,7 @@ __export(plan_utils_exports, {
|
|
|
86
89
|
compactionText: () => compactionText,
|
|
87
90
|
composerTip: () => composerTip,
|
|
88
91
|
confirmedOverride: () => confirmedOverride,
|
|
92
|
+
containersOffered: () => containersOffered,
|
|
89
93
|
contextMeterText: () => contextMeterText,
|
|
90
94
|
contextMeterTitle: () => contextMeterTitle,
|
|
91
95
|
costText: () => costText,
|
|
@@ -124,6 +128,7 @@ __export(plan_utils_exports, {
|
|
|
124
128
|
isMeasured: () => isMeasured,
|
|
125
129
|
isRepoGroup: () => isRepoGroup,
|
|
126
130
|
isTaskRunning: () => isTaskRunning,
|
|
131
|
+
keptDelegationBudget: () => keptDelegationBudget,
|
|
127
132
|
loadedSkillTokens: () => loadedSkillTokens,
|
|
128
133
|
logContinues: () => logContinues,
|
|
129
134
|
logResumes: () => logResumes,
|
|
@@ -165,6 +170,7 @@ __export(plan_utils_exports, {
|
|
|
165
170
|
reconcileApprovals: () => reconcileApprovals,
|
|
166
171
|
reduceConversation: () => reduceConversation,
|
|
167
172
|
reduceTaskLog: () => reduceTaskLog,
|
|
173
|
+
rememberDelegationBudget: () => rememberDelegationBudget,
|
|
168
174
|
repairWaitLabel: () => repairWaitLabel,
|
|
169
175
|
repairedLanded: () => repairedLanded,
|
|
170
176
|
repairedNotice: () => repairedNotice,
|
|
@@ -352,6 +358,11 @@ function taskRefOf(tasks, id) {
|
|
|
352
358
|
const found = findTaskRef(tasks, id);
|
|
353
359
|
return found && `#${found.label}`;
|
|
354
360
|
}
|
|
361
|
+
function taskRefsOf(tasks) {
|
|
362
|
+
const refs = /* @__PURE__ */ new Map();
|
|
363
|
+
for (const { task, label } of walkPlan(tasks)) if (!refs.has(task.id)) refs.set(task.id, `#${label}`);
|
|
364
|
+
return refs;
|
|
365
|
+
}
|
|
355
366
|
function titledTaskRefOf(tasks, id) {
|
|
356
367
|
const found = findTaskRef(tasks, id);
|
|
357
368
|
return found && `#${found.label} ${found.task.title}`;
|
|
@@ -595,6 +606,13 @@ function outOfRounds(check) {
|
|
|
595
606
|
function checkOf(tasks, taskId) {
|
|
596
607
|
return tasks.find((t) => t.loop?.body.includes(taskId));
|
|
597
608
|
}
|
|
609
|
+
function checksOfBodies(tasks) {
|
|
610
|
+
const checks = /* @__PURE__ */ new Map();
|
|
611
|
+
for (const task of tasks) {
|
|
612
|
+
for (const id of task.loop?.body ?? []) if (!checks.has(id)) checks.set(id, task);
|
|
613
|
+
}
|
|
614
|
+
return checks;
|
|
615
|
+
}
|
|
598
616
|
function loopRemovalRefusal(task) {
|
|
599
617
|
return task.loop ? `"${task.title}" is a loop's check: remove its body tasks first, or drop its loop ("loop": null), so they do not run on their own` : null;
|
|
600
618
|
}
|
|
@@ -1224,6 +1242,7 @@ function mergePastChecksConfirmation(checks) {
|
|
|
1224
1242
|
// src/services/runSettingsText.ts
|
|
1225
1243
|
var SUPERVISOR_LEVEL_LABEL = { off: "Off", watch: "Watch", act: "Act" };
|
|
1226
1244
|
var PLANNED_WITH_LABEL = "Planned-with line in commits Ordewell writes";
|
|
1245
|
+
var keptDelegationBudget = (run) => run.delegationBudget > 0 ? run.delegationBudget : null;
|
|
1227
1246
|
var DELEGATION_ENV = "ORDEWELL_DELEGATION";
|
|
1228
1247
|
function delegationSwitchedOn({ env, moduleDir, exists }) {
|
|
1229
1248
|
if (env !== "1" || moduleDir === null) return false;
|
|
@@ -1244,6 +1263,17 @@ function placeHere(variable) {
|
|
|
1244
1263
|
return { env: process.env[variable], moduleDir: file.replace(/[\\/][^\\/]*$/, ""), exists: (path) => fs.existsSync(path) };
|
|
1245
1264
|
}
|
|
1246
1265
|
var DELEGATION_OFFERED = delegationSwitchedOn(placeHere(DELEGATION_ENV));
|
|
1266
|
+
var CONTAINERS_ENV = "ORDEWELL_CONTAINERS";
|
|
1267
|
+
function containersOffered(place = placeHere(CONTAINERS_ENV)) {
|
|
1268
|
+
return delegationSwitchedOn(place);
|
|
1269
|
+
}
|
|
1270
|
+
function rememberDelegationBudget(changes) {
|
|
1271
|
+
if (changes.delegationBudget !== void 0 || !((changes.delegationTokens ?? 0) > 0)) return changes;
|
|
1272
|
+
return { ...changes, delegationBudget: changes.delegationTokens };
|
|
1273
|
+
}
|
|
1274
|
+
var SUBPLANNER_SCOPE = "Lets a plan hand a separable part of its goal to a subplanner working on its own branch. A subplanner stays inside the mandate it is given and cannot widen it; this setting grants nothing else.";
|
|
1275
|
+
var SUBPLANNER_ACCOUNTING = "The budget is one allowance of tokens for the whole tree, counted approximately from what runners report: usage arrives after a call, so a tree can pass it a little.";
|
|
1276
|
+
var SUBPLANNER_CHILD = "A subplanner plans in Act with autorun: it approves and runs its own plan, and no person reads it. You confirm once, when you turn Subplanners on.";
|
|
1247
1277
|
function parseCount(arg, min) {
|
|
1248
1278
|
if (arg === void 0 || !/^\d+$/.test(arg)) return null;
|
|
1249
1279
|
const n = Number(arg);
|
|
@@ -3122,7 +3152,7 @@ function taskChatAvailable(task) {
|
|
|
3122
3152
|
if (task.type === "user") return false;
|
|
3123
3153
|
return task.attempted === true || (task.attemptUsage?.length ?? 0) > 0;
|
|
3124
3154
|
}
|
|
3125
|
-
var refsOf = (ids,
|
|
3155
|
+
var refsOf = (ids, reading) => ids.map((id) => reading?.refs.get(id) ?? id);
|
|
3126
3156
|
var namedRepo = (repo) => repo && repo !== "." ? repo : null;
|
|
3127
3157
|
var namedRepos = (repos) => (repos ?? []).filter((r) => r !== ".");
|
|
3128
3158
|
var filesOf = (files) => files?.length ? capConflictFiles(files) : null;
|
|
@@ -3133,32 +3163,48 @@ var asBlocking = (tasks) => tasks.map((t) => ({
|
|
|
3133
3163
|
subtasks: asBlocking(t.subtasks ?? []),
|
|
3134
3164
|
...t.loop ? { loop: t.loop, loopRound: t.loopRound, ...t.verdict ? { verdict: t.verdict } : {} } : {}
|
|
3135
3165
|
}));
|
|
3166
|
+
function readPlan(tasks) {
|
|
3167
|
+
return {
|
|
3168
|
+
blocks: planBlocks(asBlocking(tasks)),
|
|
3169
|
+
refs: taskRefsOf(tasks),
|
|
3170
|
+
byId: new Map(tasks.map((t) => [t.id, t])),
|
|
3171
|
+
checks: checksOfBodies(tasks)
|
|
3172
|
+
};
|
|
3173
|
+
}
|
|
3174
|
+
var readings = /* @__PURE__ */ new WeakMap();
|
|
3175
|
+
function readingOf(task, tasks) {
|
|
3176
|
+
if (!tasks?.length) return null;
|
|
3177
|
+
const plan = readings.get(tasks) ?? readPlan(tasks);
|
|
3178
|
+
readings.set(tasks, plan);
|
|
3179
|
+
const own = task.loop && plan.byId.get(task.id);
|
|
3180
|
+
if (!own || own.status === task.status && own.loopRound === task.loopRound && own.verdict === task.verdict) return plan;
|
|
3181
|
+
return readPlan(tasks.map((t) => t.id === task.id ? { ...t, status: task.status, loopRound: task.loopRound, verdict: task.verdict } : t));
|
|
3182
|
+
}
|
|
3136
3183
|
function blockedBy(task, reading) {
|
|
3137
3184
|
if (!reading || !NOT_STARTED.has(task.status)) return [];
|
|
3138
3185
|
return reading.blocks.blocked.get(task.id) ?? [];
|
|
3139
3186
|
}
|
|
3140
3187
|
function strandedDetail(check, dependencies, reading) {
|
|
3141
|
-
const status = (id) => reading?.
|
|
3188
|
+
const status = (id) => reading?.byId.get(id)?.status;
|
|
3142
3189
|
const landed = reading && check.loop.body.every((id) => status(id) === "completed");
|
|
3143
3190
|
const finished = dependencies.every((id) => [void 0, "completed", "skipped"].includes(status(id)));
|
|
3144
3191
|
return landed && finished ? `Nothing runs it now: start it for round ${loopRoundOf(check) + 1} of ${check.loop.maxRounds}` : "Nothing runs it now: execute the plan and the loop goes on";
|
|
3145
3192
|
}
|
|
3146
3193
|
function loopOf(task, reading) {
|
|
3147
|
-
const tasks = reading?.tasks;
|
|
3148
3194
|
if (task.loop) {
|
|
3149
3195
|
const check2 = { id: task.id, status: task.status, loop: task.loop, loopRound: task.loopRound, ...task.verdict ? { verdict: task.verdict } : {} };
|
|
3150
3196
|
const state = loopCheckState(check2, !task.loopStranded && (reading ? reading.blocks.repeating.has(task.id) : true));
|
|
3151
|
-
const body = refsOf(task.loop.body,
|
|
3197
|
+
const body = refsOf(task.loop.body, reading);
|
|
3152
3198
|
const halted = reading ? task.loop.body.filter((id) => {
|
|
3153
|
-
const status = reading.
|
|
3199
|
+
const status = reading.byId.get(id)?.status;
|
|
3154
3200
|
return status === "failed" || status === "skipped" || reading.blocks.blocked.has(id);
|
|
3155
3201
|
}) : [];
|
|
3156
|
-
const detail = state === "repeating" ? `Found problems: runs again once ${body.join(", ")} ${body.length === 1 ? "has" : "have"} landed` : state === "stopped" ? task.loopStranded ? strandedDetail(check2, task.dependencies, reading) : `${refsOf(halted,
|
|
3202
|
+
const detail = state === "repeating" ? `Found problems: runs again once ${body.join(", ")} ${body.length === 1 ? "has" : "have"} landed` : state === "stopped" ? task.loopStranded ? strandedDetail(check2, task.dependencies, reading) : `${refsOf(halted, reading).join(", ")} did not pass: retry ${halted.length === 1 ? "it" : "them"} and the loop goes on` : null;
|
|
3157
3203
|
return { role: "check", state, label: loopCheckLabel(check2, state), detail, body };
|
|
3158
3204
|
}
|
|
3159
|
-
const owner = reading
|
|
3205
|
+
const owner = reading?.checks.get(task.id);
|
|
3160
3206
|
if (!owner?.loop) return null;
|
|
3161
|
-
const [check] = refsOf([owner.id],
|
|
3207
|
+
const [check] = refsOf([owner.id], reading);
|
|
3162
3208
|
const round = loopBodyRound({ status: owner.status ?? "", loopRound: owner.loopRound }, task.status);
|
|
3163
3209
|
return { role: "body", label: loopBodyLabel(check, round, owner.loop.maxRounds), check, round };
|
|
3164
3210
|
}
|
|
@@ -3182,8 +3228,7 @@ function taskRowView(task, context = {}) {
|
|
|
3182
3228
|
const isolation = task.isolation && task.isolation.state !== "none" ? task.isolation : null;
|
|
3183
3229
|
const spend = taskUsageSummary(task);
|
|
3184
3230
|
const latestAttempt = task.attemptUsage?.at(-1);
|
|
3185
|
-
const
|
|
3186
|
-
const reading = tasks?.length ? { tasks, blocks: planBlocks(asBlocking(tasks)) } : null;
|
|
3231
|
+
const reading = readingOf(task, context.tasks);
|
|
3187
3232
|
const blocked = blockedBy(task, reading);
|
|
3188
3233
|
const loop = loopOf(task, reading);
|
|
3189
3234
|
return {
|
|
@@ -3207,18 +3252,18 @@ function taskRowView(task, context = {}) {
|
|
|
3207
3252
|
...flagOf(task, context.runnerScope),
|
|
3208
3253
|
autonomous: task.type === "ai" && context.modes?.find((m) => m.id === task.taskMode)?.autonomous === true,
|
|
3209
3254
|
repos: namedRepos(isolation?.repos),
|
|
3210
|
-
conflict: isolation?.state === "conflict" && !isolation.repairWaits ? { repo: namedRepo(isolation.conflictRepo), files: filesOf(isolation.conflictFiles), resolver: isolation.resolver ? refsOf([isolation.resolver],
|
|
3255
|
+
conflict: isolation?.state === "conflict" && !isolation.repairWaits ? { repo: namedRepo(isolation.conflictRepo), files: filesOf(isolation.conflictFiles), resolver: isolation.resolver ? refsOf([isolation.resolver], reading)[0] : null } : null,
|
|
3211
3256
|
repairWaiting: isolation?.state === "conflict" && isolation.repairWaits ? { label: repairWaitLabel(isolation.repairWaits), files: filesOf(isolation.conflictFiles) } : null,
|
|
3212
3257
|
repairing: isolation?.state === "repairing" ? { files: filesOf(isolation.conflictFiles), attempt: isolation.repair ?? null } : null,
|
|
3213
3258
|
repaired: isolation?.repairedFiles?.length ? { files: capConflictFiles(isolation.repairedFiles), landed: isolation.state === "integrated" } : null,
|
|
3214
|
-
mergeGate: task.mergeGate?.length ? refsOf(task.mergeGate,
|
|
3215
|
-
blockedBy: blocked.length > 0 ? refsOf(blocked,
|
|
3259
|
+
mergeGate: task.mergeGate?.length ? refsOf(task.mergeGate, reading) : null,
|
|
3260
|
+
blockedBy: blocked.length > 0 ? refsOf(blocked, reading) : null,
|
|
3216
3261
|
skipReason: task.status === "skipped" ? task.skipReason ?? null : null,
|
|
3217
3262
|
opsChangedFiles: task.status === "awaiting_user" && task.awaitingReason === "files-changed",
|
|
3218
3263
|
forcedPastGate: task.forcedPastGate?.length ? task.forcedPastGate : null,
|
|
3219
3264
|
loop,
|
|
3220
3265
|
handoff: handoffOf(task),
|
|
3221
|
-
dependencies: refsOf(task.dependencies,
|
|
3266
|
+
dependencies: refsOf(task.dependencies, reading),
|
|
3222
3267
|
// A block read off the plan offers what a stored one does: Skip among them.
|
|
3223
3268
|
actions: taskRowActions({ ...task, ...blocked.length > 0 ? { status: "blocked" } : {}, ...isolation?.repairWaits ? { repairWaits: isolation.repairWaits } : {} }, context.placement ?? (parent ? "subtask" : "task")),
|
|
3224
3269
|
// Read off the mark itself: a task with merges left and no record has state `none`.
|
|
@@ -3427,6 +3472,9 @@ function accountLimitsTitle(snapshot, time) {
|
|
|
3427
3472
|
SEVERITY_LABEL,
|
|
3428
3473
|
STALLED_LABEL,
|
|
3429
3474
|
STOPPING_LABEL,
|
|
3475
|
+
SUBPLANNER_ACCOUNTING,
|
|
3476
|
+
SUBPLANNER_CHILD,
|
|
3477
|
+
SUBPLANNER_SCOPE,
|
|
3430
3478
|
SUPERVISOR_LEVEL_LABEL,
|
|
3431
3479
|
WAITS_FOR_APPROVAL_LABEL,
|
|
3432
3480
|
accountLimitPercentText,
|
|
@@ -3466,6 +3514,7 @@ function accountLimitsTitle(snapshot, time) {
|
|
|
3466
3514
|
compactionText,
|
|
3467
3515
|
composerTip,
|
|
3468
3516
|
confirmedOverride,
|
|
3517
|
+
containersOffered,
|
|
3469
3518
|
contextMeterText,
|
|
3470
3519
|
contextMeterTitle,
|
|
3471
3520
|
costText,
|
|
@@ -3504,6 +3553,7 @@ function accountLimitsTitle(snapshot, time) {
|
|
|
3504
3553
|
isMeasured,
|
|
3505
3554
|
isRepoGroup,
|
|
3506
3555
|
isTaskRunning,
|
|
3556
|
+
keptDelegationBudget,
|
|
3507
3557
|
loadedSkillTokens,
|
|
3508
3558
|
logContinues,
|
|
3509
3559
|
logResumes,
|
|
@@ -3545,6 +3595,7 @@ function accountLimitsTitle(snapshot, time) {
|
|
|
3545
3595
|
reconcileApprovals,
|
|
3546
3596
|
reduceConversation,
|
|
3547
3597
|
reduceTaskLog,
|
|
3598
|
+
rememberDelegationBudget,
|
|
3548
3599
|
repairWaitLabel,
|
|
3549
3600
|
repairedLanded,
|
|
3550
3601
|
repairedNotice,
|