'use server';
import { getSettings } from '../../../../../packages/core/src/infrastructure/services/settings.service.js';
export async function getWorkflowDefaults() {
    const settings = getSettings();
    const { workflow } = settings;
    return {
        approvalGates: {
            allowPrd: workflow.approvalGateDefaults.allowPrd,
            allowPlan: workflow.approvalGateDefaults.allowPlan,
            allowMerge: workflow.approvalGateDefaults.allowMerge,
        },
        push: workflow.approvalGateDefaults.pushOnImplementationComplete,
        openPr: workflow.openPrOnImplementationComplete,
        ciWatchEnabled: workflow.ciWatchEnabled,
        enableEvidence: workflow.enableEvidence,
        commitEvidence: workflow.commitEvidence,
        fast: workflow.defaultFastMode,
        injectSkills: workflow.skillInjection?.enabled ?? false,
    };
}
