(root: string, configName = 'config.yaml')
| 8 | */ |
| 9 | |
| 10 | export function createHealthyOpenSpecRoot(root: string, configName = 'config.yaml'): void { |
| 11 | fs.mkdirSync(path.join(root, 'openspec', 'specs'), { recursive: true }); |
| 12 | fs.mkdirSync(path.join(root, 'openspec', 'changes', 'archive'), { recursive: true }); |
| 13 | fs.writeFileSync(path.join(root, 'openspec', configName), `schema: ${DEFAULT_OPENSPEC_SCHEMA}\n`); |
| 14 | } |
| 15 | |
| 16 | /** |
| 17 | * Isolates real git invocations from the host's gitconfig (signing, hooks, |
no outgoing calls