pub fn resolve_entry(spec: &str, home: &Path) -> Result<PathBuf>Expand description
Resolve a plugin spec to an entry file (loader.ts semantics, npm-install stage assumed already done by opencode’s cache — we re-use it read-only):
file://URL (what upstream configs and launchers inject) → path- absolute/relative path → direct entry (a directory resolves through its
package.json or conventional
index/serverfiles, v2 config semantics) - npm spec (
name,@scope/name,name@version) →~/.cache/opencode/packages/{spec}[@latest]/node_modules/{pkg}/…entry via package.json exports[“.”] | main | module