gatelineAPI reference
interface ServeOptions {
    demo?: boolean | "single";
    engine?: boolean;
    engineSynced?: { heartbeatSeconds: number; ids: readonly string[] };
    host?: string;
    localOnly?: boolean;
    open?: boolean;
    port?: number;
    push?: boolean;
    repoOverrides?: string[];
    resolved?: { configPath: null | string; sources: RunSource[] };
    runnerCallback?: RunnerCallback;
}

Properties

demo?: boolean | "single"

Generate and serve the demo (#498): true serves two fixture repositories, local/demo and local/demo-small, so the scope control, grouping and the two-number badge can be tried; 'single' serves local/demo alone, the one-repository form.

engine?: boolean

Whether an engine runs beside this server (gateline up). It decides each repository's mode as loadSources resolves it (MULTI-REPO.md §7.3): a repository with no config entry is dispatch under up and decide otherwise, and a dispatch entry behaves as decide when no engine runs.

engineSynced?: { heartbeatSeconds: number; ids: readonly string[] }

Repositories an engine beside this server syncs from origin on its own heartbeat (gateline up, #502), by id. The server keeps no fetch timer of its own for them, so a fetch_interval does not fetch twice.

host?: string
localOnly?: boolean

Explicit local-only designator (mirrors push's two explicit tiers) — forwarded to loadSources, which resolves it onto the existing push precedence chain (auto-detect included) rather than a second mechanism.

open?: boolean
port?: number
push?: boolean

Zero-config sources push human writes when the repo has an origin (#149); false honors an operator's explicit no-push ceiling.

repoOverrides?: string[]
resolved?: { configPath: null | string; sources: RunSource[] }

A set the caller has already resolved (#502): gateline up loads the set once, builds its engines from it, and hands the same sources here, so the server and the engines cannot disagree about which repositories are served or how. When given, loadSources is not called, the caller has printed its warnings, and repoOverrides, demo, push, localOnly and engine are not read.

runnerCallback?: RunnerCallback

The runner agent's relay callback (RemoteDispatcher, orchestrator package), adapted to this file's zero-argument RunnerCallback shape by whoever assembles the orchestrator alongside the server (task 05). Absent → the runner-agent routes do not exist regardless of RUNNER_TOKEN.