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.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
docs(shots): use a free port for the demo view [I11,I13]
Corey Olson14c2f2ddf3da
diff --git a/docs/shots/demo.mjs b/docs/shots/demo.mjsindex ab74482e..1ecd0fc3 100644--- a/docs/shots/demo.mjs+++ b/docs/shots/demo.mjs@@ -179,7 +179,7 @@ else {const repo = await buildBoard(base, env);await exportBoard(repo, env);if (!boardOnly) {- server = spawn(process.execPath, [BIN, 'view', '--no-open'], { cwd: repo, env, stdio: ['ignore', 'pipe', 'ignore'] });+ server = spawn(process.execPath, [BIN, 'view', '--no-open', '--port', '0'], { cwd: repo, env, stdio: ['ignore', 'pipe', 'ignore'] });const url = await new Promise((resolveUrl, reject) => {let output = '';const timer = setTimeout(() => reject(new Error('The demo view did not start')), 10000);diff --git a/docs/shots/shots.test.js b/docs/shots/shots.test.jsindex 1991e8ef..d8ecac5e 100644--- a/docs/shots/shots.test.js+++ b/docs/shots/shots.test.js@@ -218,6 +218,11 @@ test('the exported demo is synthetic and contains no machine paths or unrelated].includes(shout.shout_text) || /^#1 passes the edge that failed before\. The fix is in src\/demo\.js:1@[a-f0-9]{40}\.$/.test(shout.shout_text)), 'the board contains only the synthetic conversation');});+test('the demo capture starts its view on a free port [I11,I13]', () => {+ const script = readFileSync(shots('demo.mjs'), 'utf8');+ assert.match(script, /spawn\(process\.execPath, \[BIN, 'view', '--no-open', '--port', '0'\]/, 'the demo view asks the OS for an available port');+});+test('the demo rebuild script uses a temporary repo and isolated home [I11,I13]', () => {const script = readFileSync(shots('demo.mjs'), 'utf8');assert.match(script, /mkdtemp\(join\(tmpdir\(\)/);