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

Function resolveCodexRoot

src/targets/codex.ts:174–177  ·  view source on GitHub ↗
(outputRoot: string, options: CodexWriteOptions)

Source from the content-addressed store, hash-verified

172}
173
174function resolveCodexRoot(outputRoot: string, options: CodexWriteOptions): string {
175 if (options.outputIsCodexRoot) return outputRoot
176 return path.basename(outputRoot) === ".codex" ? outputRoot : path.join(outputRoot, ".codex")
177}
178
179function sanitizeCodexPathComponent(name: string): string {
180 return sanitizePathName(name).replace(/[\\/]/g, "-")

Callers 1

writeCodexBundleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected