Skip to content

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.

508 B
Raw Blame
/** The engine number an unlanded leaf reads as on its branch: one above the highest landed engine (#1101). */
import { fileURLToPath } from 'node:url';
import {
  nextEngineNumber,
  readEngineLeaves,
} from './engine-numbers.js';

/**
 * One above the highest landed engine among this directory's leaves; the landing merge writes the real number.
 *
 * @returns {number}
 */
export function unassignedEngine() {
  return nextEngineNumber(readEngineLeaves(fileURLToPath(new URL('./', import.meta.url))));
}