/**
 * RuntimeState — the canonical top-level state shape for the GoodVibes
 * runtime store. All domain slices are defined here.
 *
 * Each domain includes revision, lastUpdatedAt, and source metadata fields.
 * These are defined per-domain in the domain files.
 */
import { createInitialSessionState } from '@pellux/goodvibes-sdk/platform/runtime/store/domains/session';
import { createInitialModelState } from '@pellux/goodvibes-sdk/platform/runtime/store/domains/model';
import { createInitialConversationState } from './domains/conversation.js';
import { createInitialOverlaysState } from '@pellux/goodvibes-sdk/platform/runtime/store/domains/overlays';
import { createInitialPanelsState } from './domains/panels.js';
import { createInitialPermissionsState } from './domains/permissions.js';
import { createInitialTasksState } from '@pellux/goodvibes-sdk/platform/runtime/store/domains/tasks';
import { createInitialAgentsState } from '@pellux/goodvibes-sdk/platform/runtime/store/domains/agents';
import { createInitialOrchestrationState } from '@pellux/goodvibes-sdk/platform/runtime/store/domains/orchestration';
import { createInitialCommunicationState } from '@pellux/goodvibes-sdk/platform/runtime/store/domains/communication';
import { createInitialProviderHealthState } from '@pellux/goodvibes-sdk/platform/runtime/store/domains/provider-health';
import { createInitialMcpState } from '@pellux/goodvibes-sdk/platform/runtime/store/domains/mcp';
import { createInitialPluginsState } from '@pellux/goodvibes-sdk/platform/runtime/store/domains/plugins';
import { createInitialDaemonState } from '@pellux/goodvibes-sdk/platform/runtime/store/domains/daemon';
import { createInitialAutomationState } from '@pellux/goodvibes-sdk/platform/runtime/store/domains/automation';
import { createInitialAcpState } from '@pellux/goodvibes-sdk/platform/runtime/store/domains/acp';
import { createInitialRoutesState } from '@pellux/goodvibes-sdk/platform/runtime/store/domains/routes';
import { createInitialControlPlaneState } from '@pellux/goodvibes-sdk/platform/runtime/store/domains/control-plane';
import { createInitialDeliveryState } from '@pellux/goodvibes-sdk/platform/runtime/store/domains/deliveries';
import { createInitialWatcherState } from '@pellux/goodvibes-sdk/platform/runtime/store/domains/watchers';
import { createInitialSurfaceState } from '@pellux/goodvibes-sdk/platform/runtime/store/domains/surfaces';
import { createInitialIntegrationsState } from '@pellux/goodvibes-sdk/platform/runtime/store/domains/integrations';
import { createInitialTelemetryState } from '@pellux/goodvibes-sdk/platform/runtime/store/domains/telemetry';
import { createInitialGitState } from '@pellux/goodvibes-sdk/platform/runtime/store/domains/git';
import { createInitialDiscoveryState } from '@pellux/goodvibes-sdk/platform/runtime/store/domains/discovery';
import { createInitialIntelligenceState } from '@pellux/goodvibes-sdk/platform/runtime/store/domains/intelligence';
import { createInitialUiPerfState } from './domains/ui-perf.js';
/**
 * Creates and returns a fully initialized RuntimeState with all domains
 * set to their default initial values.
 *
 * This is the factory used by `createRuntimeStore()` and test harnesses.
 */
export function createInitialRuntimeState() {
    return {
        session: createInitialSessionState(),
        model: createInitialModelState(),
        conversation: createInitialConversationState(),
        overlays: createInitialOverlaysState(),
        panels: createInitialPanelsState(),
        permissions: createInitialPermissionsState(),
        tasks: createInitialTasksState(),
        agents: createInitialAgentsState(),
        orchestration: createInitialOrchestrationState(),
        communication: createInitialCommunicationState(),
        providerHealth: createInitialProviderHealthState(),
        mcp: createInitialMcpState(),
        plugins: createInitialPluginsState(),
        daemon: createInitialDaemonState(),
        automation: createInitialAutomationState(),
        routes: createInitialRoutesState(),
        controlPlane: createInitialControlPlaneState(),
        deliveries: createInitialDeliveryState(),
        watchers: createInitialWatcherState(),
        surfaces: createInitialSurfaceState(),
        acp: createInitialAcpState(),
        integrations: createInitialIntegrationsState(),
        telemetry: createInitialTelemetryState(),
        git: createInitialGitState(),
        discovery: createInitialDiscoveryState(),
        intelligence: createInitialIntelligenceState(),
        uiPerf: createInitialUiPerfState(),
    };
}
