MCPcopy
hub / github.com/EveryInc/compound-engineering-plugin / resolveWorkspaceRoot

Function resolveWorkspaceRoot

src/commands/cleanup.ts:678–683  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

676}
677
678function resolveWorkspaceRoot(value: unknown): string {
679 if (value && String(value).trim()) {
680 return path.resolve(expandHome(String(value).trim()))
681 }
682 return process.cwd()
683}
684
685function resolveCopilotWorkspaceRoot(outputRoot: string): string {
686 return path.basename(outputRoot) === ".github" ? outputRoot : path.join(outputRoot, ".github")

Callers 1

runFunction · 0.85

Calls 1

expandHomeFunction · 0.90

Tested by

no test coverage detected