@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/plan-utils.mjs
CHANGED
|
@@ -14,6 +14,9 @@ import {
|
|
|
14
14
|
SEVERITY_LABEL,
|
|
15
15
|
STALLED_LABEL,
|
|
16
16
|
STOPPING_LABEL,
|
|
17
|
+
SUBPLANNER_ACCOUNTING,
|
|
18
|
+
SUBPLANNER_CHILD,
|
|
19
|
+
SUBPLANNER_SCOPE,
|
|
17
20
|
SUPERVISOR_LEVEL_LABEL,
|
|
18
21
|
WAITS_FOR_APPROVAL_LABEL,
|
|
19
22
|
accountLimitPercentText,
|
|
@@ -48,6 +51,7 @@ import {
|
|
|
48
51
|
closeTurn,
|
|
49
52
|
compactionText,
|
|
50
53
|
confirmedOverride,
|
|
54
|
+
containersOffered,
|
|
51
55
|
contextMeterText,
|
|
52
56
|
contextMeterTitle,
|
|
53
57
|
costText,
|
|
@@ -84,6 +88,7 @@ import {
|
|
|
84
88
|
isMeasured,
|
|
85
89
|
isRepoGroup,
|
|
86
90
|
isTaskRunning,
|
|
91
|
+
keptDelegationBudget,
|
|
87
92
|
logContinues,
|
|
88
93
|
logResumes,
|
|
89
94
|
loopBodyLabel,
|
|
@@ -119,6 +124,7 @@ import {
|
|
|
119
124
|
reconcileApprovals,
|
|
120
125
|
reduceConversation,
|
|
121
126
|
reduceTaskLog,
|
|
127
|
+
rememberDelegationBudget,
|
|
122
128
|
repairWaitLabel,
|
|
123
129
|
repairedLanded,
|
|
124
130
|
repairedNotice,
|
|
@@ -165,7 +171,7 @@ import {
|
|
|
165
171
|
usageText,
|
|
166
172
|
wakeUpItems,
|
|
167
173
|
worstSeverity
|
|
168
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-3S5IVTZM.mjs";
|
|
169
175
|
import {
|
|
170
176
|
betweenRounds,
|
|
171
177
|
checkOf,
|
|
@@ -175,7 +181,7 @@ import {
|
|
|
175
181
|
onOneLine,
|
|
176
182
|
outOfRounds,
|
|
177
183
|
scriptTaskText
|
|
178
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-YZDWWXCB.mjs";
|
|
179
185
|
import {
|
|
180
186
|
DEFAULT_RUNNERS,
|
|
181
187
|
canSetDependencies,
|
|
@@ -194,7 +200,7 @@ import {
|
|
|
194
200
|
titledTaskRef,
|
|
195
201
|
titledTaskRefOf,
|
|
196
202
|
walkPlan
|
|
197
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-POD3KZQW.mjs";
|
|
198
204
|
|
|
199
205
|
// src/services/composerTips.ts
|
|
200
206
|
var COMPOSER_TIPS = [
|
|
@@ -243,6 +249,9 @@ export {
|
|
|
243
249
|
SEVERITY_LABEL,
|
|
244
250
|
STALLED_LABEL,
|
|
245
251
|
STOPPING_LABEL,
|
|
252
|
+
SUBPLANNER_ACCOUNTING,
|
|
253
|
+
SUBPLANNER_CHILD,
|
|
254
|
+
SUBPLANNER_SCOPE,
|
|
246
255
|
SUPERVISOR_LEVEL_LABEL,
|
|
247
256
|
WAITS_FOR_APPROVAL_LABEL,
|
|
248
257
|
accountLimitPercentText,
|
|
@@ -282,6 +291,7 @@ export {
|
|
|
282
291
|
compactionText,
|
|
283
292
|
composerTip,
|
|
284
293
|
confirmedOverride,
|
|
294
|
+
containersOffered,
|
|
285
295
|
contextMeterText,
|
|
286
296
|
contextMeterTitle,
|
|
287
297
|
costText,
|
|
@@ -320,6 +330,7 @@ export {
|
|
|
320
330
|
isMeasured,
|
|
321
331
|
isRepoGroup,
|
|
322
332
|
isTaskRunning,
|
|
333
|
+
keptDelegationBudget,
|
|
323
334
|
loadedSkillTokens,
|
|
324
335
|
logContinues,
|
|
325
336
|
logResumes,
|
|
@@ -361,6 +372,7 @@ export {
|
|
|
361
372
|
reconcileApprovals,
|
|
362
373
|
reduceConversation,
|
|
363
374
|
reduceTaskLog,
|
|
375
|
+
rememberDelegationBudget,
|
|
364
376
|
repairWaitLabel,
|
|
365
377
|
repairedLanded,
|
|
366
378
|
repairedNotice,
|
package/dist/plan-utils.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/services/composerTips.ts"],"sourcesContent":["/**\n * The tips an empty planner chat composer shows (#137), one table for every\n * surface so the TUI and the webview agree on the wording and how often each\n * comes round. A surface offers only the tips for the commands it answers.\n */\n\nexport interface ComposerTip {\n /** The built-in planner chat command the tip names, without its slash. */\n command: string;\n /** How many times per cycle the tip comes round. */\n weight: number;\n /** Short enough to fit after the prompt and caret on an 80-column terminal. */\n text: string;\n}\n\nexport const COMPOSER_TIPS: readonly ComposerTip[] = [\n // The per-runner model allowlist (ADR-0003) is the easiest command to miss.\n { command: 'allowlist', weight: 3, text: 'Tip: Use /allowlist to limit which models the planner assigns per runner.' },\n { command: 'planner', weight: 1, text: \"Tip: Use /planner to pick the planner's harness, model and effort.\" },\n { command: 'runners', weight: 1, text: 'Tip: Use /runners to turn runners on or off.' },\n { command: 'settings', weight: 1, text: 'Tip: Use /settings for autonomy, supervisor, merging, autorun and more.' },\n { command: 'help', weight: 1, text: 'Tip: Use /help to list every command.' },\n];\n\n/**\n * One cycle of `tips`, each appearing exactly its weight times. Heavier tips\n * take their slots first, at the midpoints of equal shares of the free slots, so\n * raising a weight spreads it out instead of leaving it to run together at the\n * end of the cycle; where a tip outnumbers all the others, the touches it\n * cannot avoid are spread as evenly as the counts allow. The cycle starts on\n * the heaviest tip, so the first seq is the one the table weights most.\n */\nexport function tipCycle(tips: readonly ComposerTip[]): ComposerTip[] {\n const total = tips.reduce((sum, tip) => sum + Math.max(0, tip.weight), 0);\n if (total === 0) return [];\n const slots = new Array<ComposerTip | undefined>(total).fill(undefined);\n const order = tips\n .map((tip, index) => ({ tip, index }))\n .filter(({ tip }) => tip.weight > 0)\n .sort((a, b) => b.tip.weight - a.tip.weight || a.index - b.index);\n for (const { tip } of order) {\n const free = slots.flatMap((slot, at) => (slot === undefined ? [at] : []));\n for (let k = 0; k < tip.weight; k++) {\n slots[free[Math.floor(((k + 0.5) * free.length) / tip.weight)]] = tip;\n }\n }\n const cycle = slots.filter((tip): tip is ComposerTip => tip !== undefined);\n const start = cycle.indexOf(order[0].tip);\n return [...cycle.slice(start), ...cycle.slice(0, start)];\n}\n\n/**\n * The tip for the `seq`-th time the composer has been empty, among those for\n * the commands the surface answers, or null when it answers none of them. The\n * same `seq` always gives the same tip, so the surface decides when a new one\n * shows by when it moves `seq` on, and its rendering stays a function of state.\n */\nexport function composerTip(seq: number, answers: ReadonlySet<string>): string | null {\n const cycle = tipCycle(COMPOSER_TIPS.filter((tip) => answers.has(tip.command)));\n if (cycle.length === 0) return null;\n return cycle[((seq % cycle.length) + cycle.length) % cycle.length].text;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/services/composerTips.ts"],"sourcesContent":["/**\n * The tips an empty planner chat composer shows (#137), one table for every\n * surface so the TUI and the webview agree on the wording and how often each\n * comes round. A surface offers only the tips for the commands it answers.\n */\n\nexport interface ComposerTip {\n /** The built-in planner chat command the tip names, without its slash. */\n command: string;\n /** How many times per cycle the tip comes round. */\n weight: number;\n /** Short enough to fit after the prompt and caret on an 80-column terminal. */\n text: string;\n}\n\nexport const COMPOSER_TIPS: readonly ComposerTip[] = [\n // The per-runner model allowlist (ADR-0003) is the easiest command to miss.\n { command: 'allowlist', weight: 3, text: 'Tip: Use /allowlist to limit which models the planner assigns per runner.' },\n { command: 'planner', weight: 1, text: \"Tip: Use /planner to pick the planner's harness, model and effort.\" },\n { command: 'runners', weight: 1, text: 'Tip: Use /runners to turn runners on or off.' },\n { command: 'settings', weight: 1, text: 'Tip: Use /settings for autonomy, supervisor, merging, autorun and more.' },\n { command: 'help', weight: 1, text: 'Tip: Use /help to list every command.' },\n];\n\n/**\n * One cycle of `tips`, each appearing exactly its weight times. Heavier tips\n * take their slots first, at the midpoints of equal shares of the free slots, so\n * raising a weight spreads it out instead of leaving it to run together at the\n * end of the cycle; where a tip outnumbers all the others, the touches it\n * cannot avoid are spread as evenly as the counts allow. The cycle starts on\n * the heaviest tip, so the first seq is the one the table weights most.\n */\nexport function tipCycle(tips: readonly ComposerTip[]): ComposerTip[] {\n const total = tips.reduce((sum, tip) => sum + Math.max(0, tip.weight), 0);\n if (total === 0) return [];\n const slots = new Array<ComposerTip | undefined>(total).fill(undefined);\n const order = tips\n .map((tip, index) => ({ tip, index }))\n .filter(({ tip }) => tip.weight > 0)\n .sort((a, b) => b.tip.weight - a.tip.weight || a.index - b.index);\n for (const { tip } of order) {\n const free = slots.flatMap((slot, at) => (slot === undefined ? [at] : []));\n for (let k = 0; k < tip.weight; k++) {\n slots[free[Math.floor(((k + 0.5) * free.length) / tip.weight)]] = tip;\n }\n }\n const cycle = slots.filter((tip): tip is ComposerTip => tip !== undefined);\n const start = cycle.indexOf(order[0].tip);\n return [...cycle.slice(start), ...cycle.slice(0, start)];\n}\n\n/**\n * The tip for the `seq`-th time the composer has been empty, among those for\n * the commands the surface answers, or null when it answers none of them. The\n * same `seq` always gives the same tip, so the surface decides when a new one\n * shows by when it moves `seq` on, and its rendering stays a function of state.\n */\nexport function composerTip(seq: number, answers: ReadonlySet<string>): string | null {\n const cycle = tipCycle(COMPOSER_TIPS.filter((tip) => answers.has(tip.command)));\n if (cycle.length === 0) return null;\n return cycle[((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