@volter/supercode-orchestrator 0.4.67 → 0.4.68

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 CHANGED
@@ -243,6 +243,8 @@ export async function runWorkflow(argv) {
243
243
  // every verb reads the board through its workflow (a list settles cards too), so every verb loads it
244
244
  if (verb !== 'help') await loadWorkflow(root).catch((error) => { if (verb !== 'init' && verb !== 'boards') throw error; });
245
245
  engine.setCaller((db, cardId) => rolesFor(db, cardId, sid, workflowFor(root).params));
246
+ // a verb with no session behind it (a person at the CLI, the board file's sync) is the manager's, as its roles are
247
+ if (!sid && verb !== 'help') { try { setActor([].concat(workflowFor(root).params?.managers ?? [])[0] ?? null); } catch { /* no workflow */ } }
246
248
 
247
249
  switch (verb) {
248
250
  case 'init': {
@@ -21,7 +21,7 @@ import { hostname, tmpdir } from 'node:os';
21
21
  import { basename, dirname, join } from 'node:path';
22
22
  import { randomUUID } from 'node:crypto';
23
23
  import { fileURLToPath } from 'node:url';
24
- import { boardPath, claimer, event, json, listBoards, logsDir, now, openBoard, tx } from './store.mjs';
24
+ import { boardPath, claimer, event, json, listBoards, logsDir, now, openBoard, setActor, tx } from './store.mjs';
25
25
  import { holdBoardTickLock } from '../hermes-locks.mjs';
26
26
  import { doors, fire, loadWorkflow, resumeOf, scopeOf, statusOf, templateValue, workflowFor } from './workflow.mjs';
27
27
  import { evaluate, holds, render } from './expr.mjs';
@@ -1224,6 +1224,8 @@ export async function tick({ root, lanes, settings, only = null, slugs = null, d
1224
1224
  try {
1225
1225
  board = openBoard(root, slug);
1226
1226
  board.label = boardLabel(root, slug);
1227
+ // what the dispatcher records on its own is the board's act
1228
+ setActor(boardAddress(board.label));
1227
1229
  // where the tick's time goes, phase by phase (ms), printed by `serve --verbose` and in `--json`
1228
1230
  let mark = Date.now();
1229
1231
  const phase = (name) => { const t = Date.now(); report.ms[name] = t - mark; mark = t; };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/supercode-orchestrator",
3
- "version": "0.4.67",
3
+ "version": "0.4.68",
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": {