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

Function getBunRuntime

apps/opencode-plugin/index.ts:170–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168}
169
170function getBunRuntime(): { serve?: unknown; sleep?: (ms: number) => Promise<void> } | undefined {
171 return (globalThis as typeof globalThis & {
172 Bun?: { serve?: unknown; sleep?: (ms: number) => Promise<void> };
173 }).Bun;
174}
175
176function hasEmbeddedRuntime(): boolean {
177 return typeof getBunRuntime()?.serve === "function";

Callers 1

hasEmbeddedRuntimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected