MCPcopy Create free account
hub / github.com/backnotprop/plannotator / shouldUseEmbeddedRuntime

Function shouldUseEmbeddedRuntime

apps/opencode-plugin/index.ts:180–182  ·  view source on GitHub ↗
(runtime: RuntimeMode)

Source from the content-addressed store, hash-verified

178}
179
180function shouldUseEmbeddedRuntime(runtime: RuntimeMode): boolean {
181 return runtime !== "cli" && hasEmbeddedRuntime();
182}
183
184function getEmbeddedRuntimeError(): string {
185 return "runtime \"embedded\" requires a Bun-hosted OpenCode plugin runtime. Use runtime \"auto\" or \"cli\" with this OpenCode host.";

Callers 2

runPlanReviewFunction · 0.85
PlannotatorPluginFunction · 0.85

Calls 1

hasEmbeddedRuntimeFunction · 0.85

Tested by

no test coverage detected