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

Function patchDir

packages/opencode/src/plugin/install.ts:333–338  ·  view source on GitHub ↗
(input: PatchInput)

Source from the content-addressed store, hash-verified

331}
332
333function patchDir(input: PatchInput) {
334 if (input.global) return input.config ?? Global.Path.config
335 const git = input.vcs === "git" && input.worktree !== "/"
336 const root = git ? input.worktree : input.directory
337 return path.join(root, ".opencode")
338}
339
340function patchName(kind: Kind): "opencode" | "tui" {
341 if (kind === "server") return "opencode"

Callers 1

patchPluginConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected