gatelineAPI reference
interface AppDeps {
    cache?: ViewCache;
    prints?: RefPrints;
    runnerApi?: RunnerApi;
    sources: RunSource[];
    subscribe?: (send: (event: string, data?: unknown) => void) => () => void;
    webhook?: WebhookConfig;
}

Properties

cache?: ViewCache
prints?: RefPrints

The refs views read (#461); absent → the app reads them itself.

runnerApi?: RunnerApi

Runner-agent poll/claim/report surface (R6); absent → the routes do not exist.

sources: RunSource[]
subscribe?: (send: (event: string, data?: unknown) => void) => () => void

Called once per SSE client; returns an unsubscribe. data is the event's JSON payload — a ChangeEvent for change — and {} when absent.

webhook?: WebhookConfig

GitHub webhook intake; absent → the route does not exist.