@volter/supercode-orchestrator 0.4.21 → 0.4.22
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 +6 -1
- package/package.json +1 -1
package/board/dispatch.mjs
CHANGED
|
@@ -61,7 +61,7 @@ export const supercodeBin = () => process.env.SUPERCODE_BIN || 'supercode';
|
|
|
61
61
|
|
|
62
62
|
function sc(args, { input = null, timeout = 120_000 } = {}) {
|
|
63
63
|
// a neutral directory: `supercode teams …` resolves its entry from a checkout at the cwd
|
|
64
|
-
const r = spawnSync(supercodeBin(), args, { cwd: tmpdir(), input: input ?? undefined, encoding: 'utf8', timeout, env: process.env });
|
|
64
|
+
const r = spawnSync(supercodeBin(), args, { cwd: tmpdir(), input: input ?? undefined, encoding: 'utf8', timeout, env: process.env, maxBuffer: 512 * 1024 * 1024 });
|
|
65
65
|
return { code: r.status, stdout: r.stdout ?? '', stderr: (r.stderr ?? '') + (r.error ? r.error.message : '') };
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -590,7 +590,12 @@ export function adoptSession(board, id, who, { workspace = null, ttl, assignee =
|
|
|
590
590
|
if (!found) throw new Error(`the fleet lists no live session ${who}`);
|
|
591
591
|
const [, host, harness, sessionId] = found.address.split(':');
|
|
592
592
|
if (harness !== 'claude-code') throw new Error(`${found.address} is ${harness}; the board resumes claude-code sessions by id`);
|
|
593
|
+
// the session's own working directory, as discovery records it (where `--resume` finds it), else its pane's
|
|
593
594
|
let dir = workspace;
|
|
595
|
+
if (!dir) {
|
|
596
|
+
const r = sc(['discover', '--on', host, '--harness', harness, '--limit', '2000'], { timeout: 120_000 });
|
|
597
|
+
dir = (json(r.stdout.trim(), {})?.sessions ?? []).find((x) => x.locator?.session_id === sessionId)?.cwd ?? null;
|
|
598
|
+
}
|
|
594
599
|
if (!dir && found.pane) {
|
|
595
600
|
const r = sc(['teams', 'panes', 'ls', '--machine', host], { timeout: 60_000 });
|
|
596
601
|
dir = (json(r.stdout.trim(), []) ?? []).find((p) => p.pane === found.pane)?.cwd ?? 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.22",
|
|
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": {
|