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

Function resolvePackagePath

packages/opencode/src/plugin/shared.ts:99–101  ·  view source on GitHub ↗
(spec: string, raw: string, kind: PluginKind, pkg: PluginPackage)

Source from the content-addressed store, hash-verified

97}
98
99function resolvePackagePath(spec: string, raw: string, kind: PluginKind, pkg: PluginPackage) {
100 return pathToFileURL(resolvePackageFile(spec, raw, kind, pkg)).href
101}
102
103function resolvePackageEntrypoint(spec: string, kind: PluginKind, pkg: PluginPackage) {
104 const exports = pkg.json.exports

Callers 1

resolvePackageEntrypointFunction · 0.85

Calls 1

resolvePackageFileFunction · 0.85

Tested by

no test coverage detected