()
| 10 | |
| 11 | /** Whether the real OpenCode binary is installed — the "opencode" capability. */ |
| 12 | export const hasOpenCode = (): boolean => spawnSync("opencode", ["--version"]).status === 0; |
| 13 | |
| 14 | export interface OpenCodeHome { |
| 15 | /** Working directory holding opencode.json (OpenCode reads config from cwd). */ |