Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

test: install CLI for rehome fixture hooks [E15]

Corey Olsond27f2f1c5f79
diff --git a/test/private-board-move-fixture.js b/test/private-board-move-fixture.js
index ab1cab97..539a0800 100644
--- a/test/private-board-move-fixture.js
+++ b/test/private-board-move-fixture.js
@@ -7,6 +7,7 @@ import { readFileSync } from 'node:fs';
import { writeFileSync } from 'node:fs';
import { join } from 'node:path';
import { dirname } from 'node:path';
+import { fileURLToPath } from 'node:url';
import { DatabaseSync } from 'node:sqlite';
import * as store from '../src/board.js';
import { exportBoard } from '../src/exchange.js';
@@ -50,6 +51,10 @@ function enableRehomeOutbox(box, root) {
const file = join(root, 'pullboard.json');
const config = JSON.parse(readFileSync(file, 'utf8'));
writeFileSync(file, JSON.stringify({ ...config, relay: { ...(config.relay ?? {}), outbox: true } }, null, 2) + '\n');
+ const pullboard = join(box.env.PATH, 'pullboard');
+ assert.equal(existsSync(pullboard), false, 'the fixture has no preexisting private Pullboard wrapper to overwrite');
+ const cli = fileURLToPath(new URL('../bin/pullboard.js', import.meta.url));
+ writeFileSync(pullboard, `#!/bin/sh\nexec node "${cli}" "$@"\n`, { mode: 0o700 });
runFixtureGit(['add', 'pullboard.json'], { cwd: root, env: box.env });
runFixtureGit(['commit', '-q', '-m', 'chore(config): enable the linked local-first outbox [H21]'], { cwd: root, env: box.env });
}