Function
resolveCodexRoot
(outputRoot: string, options: CodexWriteOptions)
Source from the content-addressed store, hash-verified
| 172 | } |
| 173 | |
| 174 | function 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 | |
| 179 | function sanitizeCodexPathComponent(name: string): string { |
| 180 | return sanitizePathName(name).replace(/[\\/]/g, "-") |
Tested by
no test coverage detected