export class GitConflictError extends Error {
    files;
    name = "GitConflictError";
    constructor(files, stderr) {
        super(`Merge conflict in ${files.length} file(s):\n${stderr}`);
        this.files = files;
    }
}
export class GitAuthError extends Error {
    name = "GitAuthError";
    constructor(stderr) {
        super(`Git authentication failed: ${stderr}`);
    }
}
export class GitRemoteError extends Error {
    name = "GitRemoteError";
    constructor(stderr) {
        super(`Git remote error: ${stderr}`);
    }
}
export class GitMergeError extends Error {
    name = "GitMergeError";
    constructor(stderr) {
        super(`Git merge failed: ${stderr}`);
    }
}
export class GitPermissionError extends Error {
    name = "GitPermissionError";
    constructor(stderr) {
        super(`Push failed: your token doesn't have write access to this repository. Please update your token with 'contents: write' permission. (${stderr})`);
    }
}
export class GitNonFastForwardError extends Error {
    name = "GitNonFastForwardError";
    constructor(stderr) {
        super(`Push rejected (non-fast-forward): ${stderr}`);
    }
}
//# sourceMappingURL=errors.js.map