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

Function resolveTargetDirectory

packages/opencode/src/plugin/shared.ts:128–134  ·  view source on GitHub ↗
(target: string)

Source from the content-addressed store, hash-verified

126}
127
128async function resolveTargetDirectory(target: string) {
129 const file = targetPath(target)
130 if (!file) return
131 const stat = await Filesystem.statAsync(file)
132 if (!stat?.isDirectory()) return
133 return file
134}
135
136async function resolvePluginEntrypoint(spec: string, target: string, kind: PluginKind, pkg?: PluginPackage) {
137 const source = pluginSource(spec)

Callers 1

resolvePluginEntrypointFunction · 0.85

Calls 1

targetPathFunction · 0.85

Tested by

no test coverage detected