gatelineAPI reference

The server-facing half of the relay (runner-dispatcher.ts's own RunnerCallback, task 02) — narrowed to the zero-argument shape this route needs. RemoteDispatcher satisfies it once its own pendingIntents is partially applied over the current open ledger entries by whoever wires it in (task 05).

interface RunnerCallback {
    pendingIntents(): PendingIntent[];
    resolveOutcome(key: string, outcome: DispatchOutcome): boolean;
}

Methods

  • Every intent this callback currently holds a pending dispatch for, ready for a workstation to claim. Pure/idempotent: polling again before resolveOutcome returns the same intents, keyed the same way.

    Returns PendingIntent[]

  • Resolves the pending dispatch matching key with the workstation's reported outcome. Returns false when no pending dispatch matches — the key names a dispatch already resolved, timed out, or never issued.

    Parameters

    • key: string
    • outcome: DispatchOutcome

    Returns boolean