export function getXllStartupLog(requiresLocalXllRuntime, status) {
    if (!requiresLocalXllRuntime) {
        return null;
    }
    if (status.kind === 'ok') {
        return {
            module: 'xll',
            event: 'xll_connected',
            data: {
                updated_files: status.updated
            }
        };
    }
    if (status.kind === 'source-missing') {
        return {
            module: 'xll',
            event: 'xll_connection_failed',
            data: {
                reason: status.kind,
                missing_paths: status.missingPaths
            }
        };
    }
    if (status.kind === 'degraded') {
        return {
            module: 'xll',
            event: 'xll_connection_failed',
            data: {
                reason: status.kind,
                updated_files: status.updated
            }
        };
    }
    return {
        module: 'xll',
        event: 'xll_connection_failed',
        data: {
            reason: status.kind
        }
    };
}
//# sourceMappingURL=startup-events.js.map