@volter/supercode-orchestrator 0.4.61 → 0.4.63
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/board/cli.mjs +5 -0
- package/board/dispatch.mjs +5 -1
- package/package.json +1 -1
package/board/cli.mjs
CHANGED
|
@@ -328,6 +328,11 @@ export async function runWorkflow(argv) {
|
|
|
328
328
|
workflow_status: t.stage ?? t.status,
|
|
329
329
|
parents: b.db.prepare('SELECT parent_id FROM task_links WHERE child_id = ? ORDER BY parent_id').all(t.id).map((r) => r.parent_id),
|
|
330
330
|
run: run ? { id: run.id, status: run.status, started_at: run.started_at, session: session.address ?? session.session_id ?? null } : null,
|
|
331
|
+
// the message whose answer its standing block waits for (`block --waiting-on`)
|
|
332
|
+
waiting_on: (() => {
|
|
333
|
+
const last = b.db.prepare("SELECT kind, payload FROM task_events WHERE task_id = ? AND kind IN ('blocked', 'unblocked', 'dependency_wait') ORDER BY id DESC LIMIT 1").get(t.id);
|
|
334
|
+
return last?.kind === 'blocked' ? json(last.payload, {})?.waiting_on ?? null : null;
|
|
335
|
+
})(),
|
|
331
336
|
}];
|
|
332
337
|
})));
|
|
333
338
|
say(args, '', cards.map((t) => ({ ...cardDict(t), ...extra.get(t.id) })));
|
package/board/dispatch.mjs
CHANGED
|
@@ -676,7 +676,11 @@ function launchPane(board, task, runId, lane, fleet, { input = null, slot = 'wor
|
|
|
676
676
|
pause(3000);
|
|
677
677
|
sid = observeFleet().sessions?.find((f) => f.pane === pane && String(f.address).split(':')[2] === harness)?.address.split(':')[3] ?? null;
|
|
678
678
|
}
|
|
679
|
-
if (!sid)
|
|
679
|
+
if (!sid) {
|
|
680
|
+
// a pane whose session the board cannot name is closed, never left working beside the next start's
|
|
681
|
+
if (pane) stopSession(board, { surface: 'pane', pane, machine: task.machine });
|
|
682
|
+
throw new Error(`${harness} in pane ${pane ?? '(none)'} on ${task.machine} named no session within 90 s; the pane is closed`);
|
|
683
|
+
}
|
|
680
684
|
session = { surface: 'pane', session_id: sid, machine, pane, mode: 'fresh', launched_at: now(), ...(replaced ? { replaces: replaced.session_id } : {}) };
|
|
681
685
|
}
|
|
682
686
|
session.harness = session.harness ?? harness;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/supercode-orchestrator",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.63",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The orchestrator runtime over the Volter Harness ontology: one typed operational model whose folder is its serialization, read and written through the harness orchestration doors (docs/ORCHESTRATOR-IR.md)",
|
|
6
6
|
"exports": {
|