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

Function resolvedTarget

packages/opencode/src/plugin/meta.ts:69–72  ·  view source on GitHub ↗
(target: string)

Source from the content-addressed store, hash-verified

67}
68
69function resolvedTarget(target: string) {
70 if (target.startsWith("file://")) return fileURLToPath(target)
71 return target
72}
73
74async function npmVersion(target: string) {
75 const resolved = resolvedTarget(target)

Callers 1

npmVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected