@volter/supercode-orchestrator 0.4.69 → 0.4.70
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.mjs +4 -6
- package/package.json +1 -1
package/board.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// The home's board, dispatched while the orchestrator serves the home (docs/architecture/orchestrator.md §2.9,
|
|
2
2
|
// docs/plans/hermes-compat.md row 14). The board and its dispatcher are supercode's own (`board/`): Hermes Kanban's
|
|
3
3
|
// format and lifecycle, each profile's lane decided by its `worker` in the IR. Where a Hermes gateway would run
|
|
4
|
-
// its dispatcher, the daemon runs this one the same way:
|
|
5
|
-
//
|
|
6
|
-
// lock Hermes's gateways take, so the two never dispatch one board together), one tick every
|
|
7
|
-
//
|
|
4
|
+
// its dispatcher, the daemon runs this one the same way: when the board's workflow says so (its `dispatch.serve`),
|
|
5
|
+
// holding the board's one-dispatcher lock (`kanban/.dispatcher.lock`, the
|
|
6
|
+
// lock Hermes's gateways take, so the two never dispatch one board together), one tick every `dispatch.tick` seconds
|
|
7
|
+
// of the workflow (at least 1), the first after five seconds. Each tick runs as
|
|
8
8
|
// `workflow dispatch` in a child process: a tick waits on supercode (the fleet, launches, mail), and the daemon's
|
|
9
9
|
// own loop never does.
|
|
10
10
|
import { spawn } from 'node:child_process';
|
|
@@ -34,8 +34,6 @@ function dispatchOnce(root) {
|
|
|
34
34
|
|
|
35
35
|
/** Start the board's dispatcher for the home at `root`; answers `{ tick, stop }`, or null when it does not dispatch. */
|
|
36
36
|
export async function startBoard({ root, orchestration = null, log = () => {}, adapters = {}, wake = null }) {
|
|
37
|
-
const off = String(process.env.HERMES_KANBAN_DISPATCH_IN_GATEWAY ?? '').trim().toLowerCase();
|
|
38
|
-
if (['0', 'false', 'no', 'off'].includes(off)) { log('info', 'board: not dispatched (HERMES_KANBAN_DISPATCH_IN_GATEWAY)'); return null; }
|
|
39
37
|
// whether and how often the served home dispatches is the board workflow's (`dispatch.serve`, `dispatch.tick`)
|
|
40
38
|
let entry;
|
|
41
39
|
try { entry = workflowEntry(orchestration); } catch (error) { log('warn', `board: not dispatched: ${error.message}`); return null; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/supercode-orchestrator",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.70",
|
|
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": {
|