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.

fix(cli): keep request sync diagnostics quiet outside repos [H12,N27]

Corey Olson2e80bc8b078d
diff --git a/src/cli.js b/src/cli.js
index a2ea15c5..712fb821 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -2344,7 +2344,10 @@ export async function main(argv, streams) {
if (sync) {
await retry();
try { await executePersonRequests(io.cwd, io, main); }
- catch (error) { if (!(error instanceof Refused)) throw error; io.err('pullboard: ' + error.message); }
+ catch (error) {
+ if (!(error instanceof Refused)) throw error;
+ if (!['NOT_A_REPO', 'NO_REPO', 'NO_CONFIG', 'CORE_BARE'].includes(error.code)) io.err('pullboard: ' + error.message);
+ }
}
const code = await runCommand(argv, io);
if (sync && code === 0) await retry();
diff --git a/test/e2e.test.js b/test/e2e.test.js
index c81ca2ba..3d919346 100644
--- a/test/e2e.test.js
+++ b/test/e2e.test.js
@@ -1612,10 +1612,14 @@ test('from the view the person adds items, shouts and holds lanes, through the C
const held = await view.act(box.repo, { verb: 'hold', args: { lane: 'web', reason: 'G1 is changing' } });
assert.equal(held.status, 200);
assert.equal(held.document.event.event_kind, 'hold');
- assert.match(box.run(box.web, 'next').err, /coordinator holds the web lane: G1 is changing/);
+ assert.equal(held.document.event.event_by, 'person');
+ assert.equal(JSON.parse(held.document.event.event_detail).channel, 'view');
+ assert.match(box.run(box.web, 'next').err, /person holds the web lane: G1 is changing/);
const released = await view.act(box.repo, { verb: 'hold', args: { lane: 'web', off: true } });
assert.equal(released.status, 200);
assert.equal(released.document.event.event_kind, 'unhold');
+ assert.equal(released.document.event.event_by, 'person');
+ assert.equal(JSON.parse(released.document.event.event_detail).channel, 'view');
const unknown = await view.act(box.dir, { verb: 'shout', args: { to: 'all', text: 'x' } });
assert.equal(unknown.status, 404);
assert.equal(unknown.document.error.code, 'NO_BOARD');