pi-straw-boss 0.92.0 → 0.93.0
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/server/{chunk-DMAPNM7Y.mjs → chunk-WU3AKQCK.mjs} +17 -9
- package/dist/server/cli.mjs +1 -1
- package/dist/server/main.mjs +178 -113
- package/package.json +1 -1
- package/prompts/standing.md +13 -0
- package/prompts/tower-run.md +1 -1
- package/prompts/tower.md +1 -1
- package/src/board.ts +3 -3
- package/src/boardread.ts +1 -1
- package/src/bossask.ts +17 -21
- package/src/bossrelay.ts +40 -0
- package/src/briefing.ts +4 -4
- package/src/capacity.ts +4 -4
- package/src/carslip.ts +1 -1
- package/src/closemain.ts +10 -6
- package/src/idlewake.ts +85 -0
- package/src/index.ts +3 -1
- package/src/link/holder.ts +7 -4
- package/src/link/kinds.ts +10 -6
- package/src/link/store.ts +1 -1
- package/src/link/waitcall.ts +63 -43
- package/src/moments.ts +37 -0
- package/src/revive.ts +3 -0
- package/src/reviver.ts +2 -1
- package/src/rotclose.ts +88 -0
- package/src/server/autowatch.ts +13 -7
- package/src/server/capops.ts +2 -3
- package/src/server/capwatch.ts +27 -11
- package/src/server/carnotices.ts +2 -1
- package/src/server/linkwaits.ts +67 -13
- package/src/server/linkwaitsops.ts +5 -2
- package/src/server/linkwatch.ts +12 -2
- package/src/server/towerbrief.ts +1 -1
- package/src/server/waitpress.ts +1 -1
- package/src/server/watches.ts +5 -1
- package/src/server/watchesops.ts +2 -2
- package/src/server/watchops.ts +4 -3
- package/src/session.ts +7 -3
- package/src/state.ts +1 -1
- package/src/stillruns.ts +46 -0
- package/src/tools.ts +3 -3
- package/src/train/cars.ts +0 -10
- package/src/wrapup.ts +54 -107
- package/prompts/duty-standing.md +0 -7
|
@@ -5527,6 +5527,18 @@ var ForwardAsBefore = class extends Error {
|
|
|
5527
5527
|
}
|
|
5528
5528
|
};
|
|
5529
5529
|
|
|
5530
|
+
// src/moments.ts
|
|
5531
|
+
var REARM_TEXT = "Re-arm your watches, monitors, and loops from your handoff or board: a restart retires them. A retired monitor or loop is not finished: check its own end condition before acting on a done-wake.";
|
|
5532
|
+
var MAIN_CAP_HINT = " \xB7 your work: dispatch its ready work now, or say why not (blocked, shared files, the boss) on your board with board_set, and reply to whoever asked";
|
|
5533
|
+
var ACT_ON_IT = "This is the boss's answer to your wait: act on it.";
|
|
5534
|
+
var NOTICE_NEXT = {
|
|
5535
|
+
received: "Its task has not landed yet: wait for the landed notice.",
|
|
5536
|
+
returned: "Rework the car, then send a new car slip.",
|
|
5537
|
+
dropped: "",
|
|
5538
|
+
landed: "Its task has landed: complete its todo."
|
|
5539
|
+
};
|
|
5540
|
+
var withNext = (state, line2) => NOTICE_NEXT[state] ? `${line2.replace(/[\s.]+$/, "")}. ${NOTICE_NEXT[state]}` : line2;
|
|
5541
|
+
|
|
5530
5542
|
// src/netdata.ts
|
|
5531
5543
|
import { closeSync as closeSync5, openSync as openSync5, readdirSync as readdirSync8, readFileSync as readFileSync17, readSync as readSync4, statSync as statSync9 } from "node:fs";
|
|
5532
5544
|
import { basename as basename5, dirname as dirname9, join as join19 } from "node:path";
|
|
@@ -6481,6 +6493,7 @@ function reviveHandoff(i) {
|
|
|
6481
6493
|
`3. ${r.openedBy && !r.openedBy.startsWith("integ:") ? `Tell ${line(r.openedBy).slice(0, 60)} (the session that asked for your work) that you are back.` : "Tell whoever waits on you that you are back."}`,
|
|
6482
6494
|
"4. Your subagents: Straw Boss checks the runs you launched and sends you one message about them; act on it."
|
|
6483
6495
|
];
|
|
6496
|
+
if (r.kind === "standing") lines.push(REARM_TEXT);
|
|
6484
6497
|
if (i.waits.length) lines.push("Waits you hold:", ...i.waits.map((w) => `- ${w}`));
|
|
6485
6498
|
if (i.missed.length) lines.push("Messages that could not reach you while you were down (each as it was sent):", ...i.missed.map((m) => `- from ${line(m.from).slice(0, 60)} at ${new Date(m.at).toISOString()}: ${line(m.text)}`));
|
|
6486
6499
|
return lines.join("\n");
|
|
@@ -6843,13 +6856,6 @@ function noticeText(state, c) {
|
|
|
6843
6856
|
return `landed in ${need("version")}, your commit is ${need("commit")}`;
|
|
6844
6857
|
}
|
|
6845
6858
|
}
|
|
6846
|
-
var NOTICE_NEXT = {
|
|
6847
|
-
received: "Its task has not landed yet: wait for the landed notice.",
|
|
6848
|
-
returned: "Rework the car, then send a new car slip.",
|
|
6849
|
-
dropped: "",
|
|
6850
|
-
landed: "Its task has landed: complete its todo."
|
|
6851
|
-
};
|
|
6852
|
-
var withNext = (state, line2) => NOTICE_NEXT[state] ? `${line2.replace(/[\s.]+$/, "")}. ${NOTICE_NEXT[state]}` : line2;
|
|
6853
6859
|
function stateLine(file, entry) {
|
|
6854
6860
|
const received = file.states.find((s) => s.state === "received"), f = entry, train = received?.train ?? f.train;
|
|
6855
6861
|
return noticeText(entry.state, {
|
|
@@ -7409,7 +7415,7 @@ function joinLocal(entries2, mains, now, o = {}) {
|
|
|
7409
7415
|
main: m.name,
|
|
7410
7416
|
state: m.state,
|
|
7411
7417
|
items: e?.items ?? [],
|
|
7412
|
-
...e ? { now: e.now, src: e.src, ...e.count ? { count: e.count } : {}, ...e.who ? { who: e.who } : {}, updatedSecondsAgo: Math.max(0, Math.round((now - e.updated) / 1e3)), ...m.state === "idle" && !m.commanding && m.duty !== "standing" && now - e.updated > STALE_MS3 ? { stale: true } : {} } : {},
|
|
7418
|
+
...e ? { now: e.now, src: e.src, ...e.count ? { count: e.count } : {}, ...e.who ? { who: e.who } : {}, updatedSecondsAgo: Math.max(0, Math.round((now - e.updated) / 1e3)), ...m.state === "idle" && !m.paneWorking && !m.commanding && m.duty !== "standing" && now - e.updated > STALE_MS3 ? { stale: true } : {} } : {},
|
|
7413
7419
|
...m.cwd ? { cwd: m.cwd } : {}
|
|
7414
7420
|
};
|
|
7415
7421
|
});
|
|
@@ -8342,7 +8348,6 @@ export {
|
|
|
8342
8348
|
emptyCar,
|
|
8343
8349
|
carFileName,
|
|
8344
8350
|
addState,
|
|
8345
|
-
withNext,
|
|
8346
8351
|
stateLine,
|
|
8347
8352
|
noticeStatus,
|
|
8348
8353
|
landedWord,
|
|
@@ -8374,6 +8379,9 @@ export {
|
|
|
8374
8379
|
liveIntegrator,
|
|
8375
8380
|
keptIntegrators,
|
|
8376
8381
|
ForwardAsBefore,
|
|
8382
|
+
MAIN_CAP_HINT,
|
|
8383
|
+
ACT_ON_IT,
|
|
8384
|
+
withNext,
|
|
8377
8385
|
readRecords,
|
|
8378
8386
|
REVIVE_TOKEN,
|
|
8379
8387
|
MAX_REVIVES,
|
package/dist/server/cli.mjs
CHANGED