MCPcopy Index your code
hub / github.com/anomalyco/opencode / patchName

Function patchName

packages/opencode/src/plugin/install.ts:340–343  ·  view source on GitHub ↗
(kind: Kind)

Source from the content-addressed store, hash-verified

338}
339
340function patchName(kind: Kind): "opencode" | "tui" {
341 if (kind === "server") return "opencode"
342 return "tui"
343}
344
345async function patchOne(dir: string, target: Target, spec: string, force: boolean, dep: PatchDeps): Promise<PatchOne> {
346 const name = patchName(target.kind)

Callers 1

patchOneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected