MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / hasOpenCode

Function hasOpenCode

e2e/src/clients/opencode.ts:12–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

contextForFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected