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
chore(merge): integrate accepted hosted board union [N26,H5]
Corey Olson17b90b2cdea1
diff --cc src/cockpit.jsindex 302e794e,4cea4c8f..e20c846e--- a/src/cockpit.js+++ b/src/cockpit.js@@@ -916,31 -906,16 +916,32 @@@ function flowSvg(p)/** Read or move through API v1, retaining the rule and repair guidance in a refusal. */async function api(path, body) {- if (body && (snapshot || readOnly)) throw new Error(snapshot ? 'This is a read-only snapshot.' : 'This is a read-only view.');- if (transportModule) {- if (transport) return transport.request(path, body);- if (transportLoadError) throw transportLoadError;- throw new Error('The browser transport is still loading.');- }- path = snapshot ? path.split('?')[0].slice(1) + '.json' : connection.base + path;- const res = await fetch(path, { method: body ? 'POST' : 'GET', headers: snapshot ? {} : { ...connection.headers, ...(body ? { 'content-type': 'application/json' } : {}) }, body: body ? JSON.stringify(body) : undefined });++ path = snapshot ? path.split('?')[0].slice(1) + '.json' : path;+ if (snapshot) {+ if (body !== undefined && body !== null) throw new Error('This is a read-only snapshot.');- const res = await fetch(path.split('?')[0].slice(1) + '.json');++ const res = await fetch(path);+ const json = await res.json();+ if (!res.ok) throw new Error(json.error || res.status);+ return json;+ }+ if (path === '/api/v1/boards') return await listedBoards();+ const boardId = /^\\/api\\/v1\\/boards\\/([0-9a-f]{32})(?:\\/|$)/u.exec(path)?.[1];+ const source = boardId ? boardSources.get(boardId) : null;+ if (boardId && !source) throw new Error('This board is not available in the current view. Refresh the board list and retry.');+ if (boardId && source?.kind === 'relay') {+ if (body !== undefined && body !== null) throw new Error('Relay boards are read-only in this view.');+ if (!transport) throw transportLoadError || new Error('The relay transport is still loading.');+ const reply = await transport.request(path, body);+ if (path.includes('/state') && reply.state) return { ...reply, state: { ...reply.state, root: source.board.root } };+ return reply;+ }+ if (body && (hosted.local ? readOnly && source?.kind !== 'local' : pageReadOnly)) throw new Error('This is a read-only view.');+ const base = source?.kind === 'local' ? localReadBase : connection.base;+ const headers = source?.kind === 'local' ? localReadHeaders : connection.headers;+ path = base + path;+ const res = await fetch(path, { method: body ? 'POST' : 'GET', headers: { ...headers, ...(body ? { 'content-type': 'application/json' } : {}) }, body: body ? JSON.stringify(body) : undefined });const json = await res.json();- if (localSession && connection.base === localSession.origin && !snapshot) {+ if (localSession && base === localSession.origin) {if (res.status === 401 || res.status === 403) localExpired();else if (res.ok && !localConfirmed) { localConfirmed = true; tabValue(LOCAL_TRIPS, null); }}