@volter/supercode-orchestrator 0.5.55 → 0.5.56
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/dispatch.mjs +3 -4
- package/package.json +1 -1
package/board/dispatch.mjs
CHANGED
|
@@ -2341,7 +2341,9 @@ function readMailbox(board, address, report) {
|
|
|
2341
2341
|
answer = `${clean.slice(0, 2).join(' ')}: ${(r.status === 0 ? r.stdout : r.stderr || r.stdout).trim().slice(-600) || `exit ${r.status}`}`;
|
|
2342
2342
|
}
|
|
2343
2343
|
report.mailed.push([envelope.from, argv?.[0] ?? '?']);
|
|
2344
|
-
|
|
2344
|
+
// The answer is filed in the sender's mailbox like every other board mail (D138 step 6): a filing that fails is
|
|
2345
|
+
// reported and leaves the round going, since the verb above is already applied.
|
|
2346
|
+
try { fileMail(board, envelope.from, answer, `board-answer-${envelope.id}`); } catch (error) { report.undelivered.push(['mail', envelope.from, String(error.message).slice(-200)]); }
|
|
2345
2347
|
}
|
|
2346
2348
|
}
|
|
2347
2349
|
|
|
@@ -2565,8 +2567,6 @@ export async function tick({ root, lanes, settings, only = null, slugs = null, d
|
|
|
2565
2567
|
for (const slug of boards) {
|
|
2566
2568
|
if (stopping) break;
|
|
2567
2569
|
const report = { board: slug, ms: { fleet: fleetMs }, mailed: [], started: [], queued: [], failed: [], lost: [], crashed: [], timed_out: [], reclaimed: [], auto_blocked: [], promoted: 0, unassigned: [], nonspawnable: [], notified: [], undelivered: [], fleet: fleet.ok ? 'read' : fleet.error };
|
|
2568
|
-
// the mailbox's answers in flight (not part of the report the caller prints)
|
|
2569
|
-
Object.defineProperty(report, 'answers', { value: [], enumerable: false });
|
|
2570
2570
|
const path = boardPath(root, slug);
|
|
2571
2571
|
const marker = `${path}.corrupt-seen`;
|
|
2572
2572
|
if (existsSync(marker) && readFileSync(marker, 'utf8').trim() === fingerprint(path)) { report.error = 'skipped: the board file was corrupt and has not changed since (`supercode workflow repair`)'; out.push(report); continue; }
|
|
@@ -2610,7 +2610,6 @@ export async function tick({ root, lanes, settings, only = null, slugs = null, d
|
|
|
2610
2610
|
report.error = error.message;
|
|
2611
2611
|
if (CORRUPT.test(error.message)) writeFileSync(marker, fingerprint(path));
|
|
2612
2612
|
} finally {
|
|
2613
|
-
await Promise.all(report.answers);
|
|
2614
2613
|
board?.close();
|
|
2615
2614
|
}
|
|
2616
2615
|
out.push(report);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/supercode-orchestrator",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.56",
|
|
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": {
|