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

Function getOpenCodeVersion

packages/cli/src/lib/opencode-helpers.ts:22–24  ·  view source on GitHub ↗
(binary?: string | null)

Source from the content-addressed store, hash-verified

20}
21
22export function getOpenCodeVersion(binary?: string | null): string | null {
23 return runOpenCode(["--version"], binary);
24}
25
26export function getAvailableModels(binary?: string | null): string[] {
27 const output = runOpenCode(["models"], binary);

Callers 3

runSetupFunction · 0.90
collectDiagnosticsFunction · 0.90

Calls 1

runOpenCodeFunction · 0.85

Tested by

no test coverage detected