MCPcopy Create free account
hub / github.com/cortexkit/magic-context / stockCliBinary

Function stockCliBinary

packages/cli/src/lib/opencode-detect.ts:59–63  ·  view source on GitHub ↗

Stock OpenCode CLI location (~/.opencode/bin), OS-specific binary name.

(d: DetectDeps)

Source from the content-addressed store, hash-verified

57
58/** Stock OpenCode CLI location (~/.opencode/bin), OS-specific binary name. */
59function stockCliBinary(d: DetectDeps): string {
60 return d.platform === "win32"
61 ? join(d.home, ".opencode", "bin", "opencode.exe")
62 : join(d.home, ".opencode", "bin", "opencode");
63}
64
65/** Extra absolute CLI locations beyond stock-bin + PATH, per OS. */
66function extraCliCandidates(d: DetectDeps): string[] {

Callers 1

resolveCliBinaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected