MCPcopy
hub / github.com/openai/codex-plugin-cc / resolveWorkspaceRoot

Function resolveWorkspaceRoot

plugins/codex/scripts/lib/workspace.mjs:3–9  ·  view source on GitHub ↗
(cwd)

Source from the content-addressed store, hash-verified

1import { ensureGitRepository } from "./git.mjs";
2
3export function resolveWorkspaceRoot(cwd) {
4 try {
5 return ensureGitRepository(cwd);
6 } catch {
7 return cwd;
8 }
9}

Callers 11

resolveCommandWorkspaceFunction · 0.90
buildSetupReportFunction · 0.90
executeTaskRunFunction · 0.90
cleanupSessionJobsFunction · 0.90
mainFunction · 0.90
resolveStateDirFunction · 0.90
buildStatusSnapshotFunction · 0.90
buildSingleJobSnapshotFunction · 0.90
resolveResultJobFunction · 0.90
resolveCancelableJobFunction · 0.90

Calls 1

ensureGitRepositoryFunction · 0.90

Tested by

no test coverage detected