@volter/supercode-orchestrator 0.4.62 → 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.
Files changed (2) hide show
  1. package/board/cli.mjs +5 -0
  2. 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/supercode-orchestrator",
3
- "version": "0.4.62",
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": {