MCPcopy Index your code
hub / github.com/anomalyco/opencode / wrap

Function wrap

packages/opencode/src/effect/app-runtime.ts:116–116  ·  view source on GitHub ↗
(effect: Parameters<typeof rt.runSync>[0])

Source from the content-addressed store, hash-verified

114/** Services provided by AppRuntime — i.e. what an Effect run via AppRuntime.runPromise can yield. */
115export type AppServices = ManagedRuntime.ManagedRuntime.Services<typeof rt>
116const wrap = (effect: Parameters<typeof rt.runSync>[0]) => attach(effect as never) as never
117
118export const AppRuntime: Runtime = {
119 runSync(effect) {

Callers 5

runSyncFunction · 0.70
runPromiseFunction · 0.70
runPromiseExitFunction · 0.70
runForkFunction · 0.70
runCallbackFunction · 0.70

Calls 1

attachFunction · 0.90

Tested by

no test coverage detected