export function buildPlan(changes) {
    return {
        project: changes.project,
        repoPath: changes.repoPath,
        mode: changes.mode,
        fromSha: changes.fromSha,
        toSha: changes.toSha,
        added: changes.added,
        changed: changes.changed,
        renamed: changes.renamed,
        deleted: changes.deleted,
        ignored: changes.ignored,
        summary: {
            added: changes.added.length,
            changed: changes.changed.length,
            renamed: changes.renamed.length,
            deleted: changes.deleted.length,
            ignored: changes.ignored.length,
        },
        destructive: changes.deleted.length > 0,
    };
}
