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
/** Explicit opt-in to account-free sharing through the repository's own Git remote [H11]. */
import {
context,
withBoard,
} from '../cli-context.js';
import {
relayLinked,
relayRecovered,
} from '../relay.js';
import { syncGitBoard } from '../sync.js';
import { Refused } from '../refused.js';
/** Publish or receive the board's acknowledged Git prefix without signing into a relay account. */
export async function run(io, { first }) {
if (first) throw new Refused('USAGE', 'pullboard sync takes no arguments; it shares through origin');
const ctx = context(io);
if (relayLinked(ctx.info.root) || relayRecovered(ctx.info.root)) throw new Refused('GIT_SYNC_LINKED', 'this board already uses the relay; it cannot use a second move order', 'keep syncing this board through its relay');
const result = await withBoard(ctx, board => syncGitBoard(ctx.info.root, board, io, { settlePending: true }));
io.result?.(result);
io.say(`board shared through origin at move ${result.sequence}`);
return 0;
}