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
fix(docs): follow README capture redirect [I11,N39]
Corey Olsone2be99f88c61
diff --git a/docs/shots/capture-browser.mjs b/docs/shots/capture-browser.mjsindex b910b56e..9f7ca1dd 100644--- a/docs/shots/capture-browser.mjs+++ b/docs/shots/capture-browser.mjs@@ -4,6 +4,9 @@ import { startChrome } from '../../test/chrome-fixture.js';/** Start Chrome with a disposable profile and return the DevTools connection for its page. */export async function browser(chrome, profile, url) {+ const printedUrl = new URL(url);+ const cleanEntry = printedUrl.origin !== 'null' && printedUrl.pathname === '/' && (printedUrl.search || printedUrl.hash)+ ? new URL('/', printedUrl.origin).href : url;const view = await startChrome({ executable: chrome, profileDirectory: profile, url });/** Keep this capture's readiness label while using the shared bounded DevTools wait. */async function waitFor(expression, label, timeoutMs = 30_000) {@@ -11,7 +14,7 @@ export async function browser(chrome, profile, url) {catch (error) { throw new Error(`The demo page did not become ready: ${label}`, { cause: error }); }}try {- await waitFor(`location.href === ${JSON.stringify(url)} && document.readyState === 'complete'`, 'intended HTTP document');+ await waitFor(`(location.href === ${JSON.stringify(url)} || location.href === ${JSON.stringify(cleanEntry)}) && document.readyState === 'complete'`, 'intended HTTP document');} catch (error) {await view.close();throw error;