export function hasMaterializationChanges(plan) {
    return plan.operations.some((operation) => operation.action !== 'skip');
}
export function summarizeMaterializationPlan(plan) {
    let plannedOperations = 0;
    let skipped = 0;
    for (const operation of plan.operations) {
        if (operation.action === 'skip') {
            skipped += 1;
        }
        else {
            plannedOperations += 1;
        }
    }
    return { plannedOperations, skipped };
}
export function toMaterializationOperations(plan) {
    return plan.operations.map((operation) => ({
        provider: operation.provider,
        action: operation.action,
        target: operation.target,
        path: operation.path,
        reason: operation.reason,
        entryName: operation.entryName,
    }));
}
