import { ensureGitRepository } from "./git.mjs"; export function resolveWorkspaceRoot(cwd) { try { return ensureGitRepository(cwd); } catch { return cwd; } }