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

Method spawn

crates/opencode-plugin/src/subprocess/client.rs:143–196  ·  view source on GitHub ↗

Spawn a plugin host subprocess and run the `initialize` handshake. `cwd` sets the working directory for the subprocess so that bare-specifier `import("pkg")` calls resolve against the correct `node_modules/`.

(
        runtime: JsRuntime,
        host_script: &str,
        plugin_path: &str,
        context: PluginContext,
        cwd: Option<&std::path::Path>,
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 11

runShellCommandFunction · 0.80
spawn_mdns_commandFunction · 0.80
gh_api_jsonFunction · 0.80
newMethod · 0.80
startMethod · 0.80
publish_eventMethod · 0.80
createMethod · 0.80
deleteMethod · 0.80
shell_execFunction · 0.80
write_with_commandFunction · 0.80
executeMethod · 0.80

Calls 4

newFunction · 0.85
run_argsMethod · 0.80
commandMethod · 0.80
callMethod · 0.80

Tested by

no test coverage detected