MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / addCandidatePath

Function addCandidatePath

crates/opencode-plugin/host/plugin-host.ts:288–290  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

286 const urlMod = await import("node:url");
287
288 const addCandidatePath = (path: string) => {
289 addCandidate(urlMod.pathToFileURL(path).href);
290 };
291
292 let pluginFsPath: string | null = null;
293 if (pluginPath.startsWith("file://")) {

Callers 1

createPluginClientFunction · 0.85

Calls 1

addCandidateFunction · 0.85

Tested by

no test coverage detected