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

Function defaultPluginOrigin

packages/opencode/src/plugin/tui/runtime.ts:813–819  ·  view source on GitHub ↗
(state: RuntimeState, spec: string)

Source from the content-addressed store, hash-verified

811}
812
813function defaultPluginOrigin(state: RuntimeState, spec: string): ConfigPlugin.Origin {
814 return {
815 spec,
816 scope: "local",
817 source: state.api.state.path.config || path.join(state.directory, ".opencode", "tui.json"),
818 }
819}
820
821function installCause(err: unknown) {
822 if (!err || typeof err !== "object") return

Callers 1

addPluginBySpecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected