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

Method isInstalled

packages/cli/src/adapters/opencode.ts:29–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 readonly pluginPackageName = PLUGIN_NAME;
28
29 isInstalled(): boolean {
30 // A Desktop-only install (no CLI on PATH) still counts as installed:
31 // OpenCode Desktop ships no invocable `opencode` binary, so a binary
32 // check alone would wrongly report OpenCode as absent.
33 return detectOpenCode().kind !== "none";
34 }
35
36 hasPluginEntry(): boolean {
37 const paths = detectConfigPaths();

Callers

nothing calls this directly

Calls 1

detectOpenCodeFunction · 0.90

Tested by

no test coverage detected