/** SDK-owned platform module. This implementation is maintained in goodvibes-sdk. */
/**
 * Returns the default initial state for the telemetry domain.
 */
export function createInitialTelemetryState() {
    return {
        revision: 0,
        lastUpdatedAt: 0,
        source: 'init',
        sessionCorrelationId: '',
        currentTurnCorrelationId: undefined,
        traceContext: undefined,
        sessionMetrics: {
            turns: 0,
            toolCalls: 0,
            toolErrors: 0,
            agentsSpawned: 0,
            inputTokens: 0,
            outputTokens: 0,
            cacheReadTokens: 0,
            permissionPrompts: 0,
            permissionDenials: 0,
            errors: 0,
            warnings: 0,
        },
        recentEvents: [],
        maxEventBuffer: 500,
        dbAvailable: false,
        dbPath: undefined,
    };
}
