import { z } from 'zod';
import { ScmOperationErrorCodeSchema, ScmRequestBaseSchema, } from './scm.js';
export const ScmWorktreeCommandResponseSchema = z.object({
    success: z.boolean(),
    stdout: z.string().optional(),
    stderr: z.string().optional(),
    error: z.string().optional(),
    errorCode: ScmOperationErrorCodeSchema.optional(),
});
export const ScmWorktreeCreateRequestSchema = ScmRequestBaseSchema.extend({
    displayName: z.string().min(1).optional(),
    baseRef: z.string().min(1).optional(),
    branchMode: z.enum(['new', 'existing']).optional(),
});
export const ScmWorktreeCreateResponseSchema = z.object({
    success: z.boolean(),
    worktreePath: z.string(),
    branchName: z.string(),
    sourceRootPath: z.string().optional(),
    repositoryRootPath: z.string().optional(),
    error: z.string().optional(),
    errorCode: ScmOperationErrorCodeSchema.optional(),
});
export const ScmWorktreeRemoveRequestSchema = ScmRequestBaseSchema.extend({
    worktreePath: z.string().min(1),
});
export const ScmWorktreeRemoveResponseSchema = ScmWorktreeCommandResponseSchema;
export const ScmWorktreePruneRequestSchema = ScmRequestBaseSchema;
export const ScmWorktreePruneResponseSchema = ScmWorktreeCommandResponseSchema;
//# sourceMappingURL=scmWorktrees.js.map