/**
 * Automation domain state — jobs, runs, and source registry.
 */
export function createInitialAutomationState() {
    return {
        revision: 0,
        lastUpdatedAt: 0,
        source: 'init',
        jobs: new Map(),
        jobIds: [],
        runs: new Map(),
        runIds: [],
        activeRunIds: [],
        failedRunIds: [],
        sources: new Map(),
        sourceIds: [],
        totalJobs: 0,
        totalRuns: 0,
        totalSucceeded: 0,
        totalFailed: 0,
        totalCancelled: 0,
        totalDeadLettered: 0,
    };
}
