codex-plugin-cc/plugins/codex/scripts/lib/workspace.mjs
Dominik Kundel c69527eb18
Initial commit
Co-authored-by: Codex <noreply@openai.com>
2026-03-30 09:42:33 -07:00

10 lines
173 B
JavaScript

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