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
/** Board-scoped line controls use ordered moves; the existing settings command still owns machine controls. */
import {
actOn,
context,
ordered,
withBoardRead,
} from './cli.js';
import { lineSettings } from './line-settings.js';
import { LINE_SETTING_DEFINITIONS } from './queue-settings.js';
import { Refused } from './refused.js';
/** Decode explicit triggering observations without confusing stats --window durations with this command's JSON. */
function parseWindow(value) {
try { return JSON.parse(value); }
catch { throw new Refused('LINE_SETTING_WINDOW', 'use --window with a JSON object of measured numbers, for example \'{"windowMinutes":60,"activeReviewers":2}\''); }
}
/** Read all board controls or record one coordinator change; no controller enforcement is enabled here. */
export function lineSettingsCommand(io, { second, rest, values = {} }) {
if (!second && !rest.length) {
const ctx = context(io);
const settings = withBoardRead(ctx, lineSettings);
io.result?.({ lineSettings: settings, ranges: LINE_SETTING_DEFINITIONS });
for (const [key, value] of Object.entries(settings)) io.say(`${key}: ${value === false ? 'off' : value}`);
return 0;
}
if (!second || rest.length !== 1) throw new Refused('USAGE', 'pullboard settings line <name> <value> --reason "why" --window \'{"windowMinutes":60}\'');
const value = second === 'focusMilestone' ? (rest[0] === 'off' ? false : rest[0]) : rest[0] === 'on' ? true : rest[0] === 'off' ? false : Number(rest[0]);
return actOn(io, async (ctx, board, me) => {
const change = await ordered(ctx, board, 'setLineSetting', [{ agentId: me.id, key: second, value,
reason: values.reason, window: parseWindow(values.window) }]);
io.result?.({ lineSettings: lineSettings(board), change });
io.say(`${second}: ${value === false ? 'off' : value}; recorded on this board`);
return 0;
});
}