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

Function isPathPluginSpec

packages/opencode/src/plugin/shared.ts:171–173  ·  view source on GitHub ↗
(spec: string)

Source from the content-addressed store, hash-verified

169}
170
171export function isPathPluginSpec(spec: string) {
172 return spec.startsWith("file://") || spec.startsWith(".") || isAbsolutePath(spec)
173}
174
175export async function resolvePathPluginTarget(spec: string) {
176 const raw = spec.startsWith("file://") ? fileURLToPath(spec) : spec

Callers 3

resolvePluginSpecFunction · 0.90
pluginSourceFunction · 0.85
resolvePluginTargetFunction · 0.85

Calls 1

isAbsolutePathFunction · 0.85

Tested by

no test coverage detected