import type { NodeIdDTO } from './common.js'; /** `POST /v1/nodes/{id}/worktree/close` result. */ export interface CloseWorktreeResultDTO { node_id: NodeIdDTO; /** The worktree branch fast-forwarded into its recorded local base branch. */ branch: string; worktree_path: string; /** The commit SHA the recorded local base branch was fast-forwarded onto. */ landed_sha: string; /** False when the landing happened but the checkout could not be removed * automatically — the close still counts as done (state is closed); * `worktree_remove_error` carries the manual-cleanup note. */ worktree_removed: boolean; worktree_remove_error?: string; /** False when the landing happened but the local branch could not be deleted * automatically — same non-fatal treatment as `worktree_removed`. */ branch_deleted: boolean; branch_delete_error?: string; }