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

Function run

packages/opencode/test/server/httpapi-exercise/runner.ts:116–117  ·  view source on GitHub ↗
(effect: Effect.Effect<A, E, R>)

Source from the content-addressed store, hash-verified

114 )
115 : undefined
116 const run = <A, E, R>(effect: Effect.Effect<A, E, R>) =>
117 effect.pipe(Effect.provideService(modules.InstanceRef, instance), Effect.provide(app))
118 const directory = () => {
119 if (!context.dir?.path) throw new Error("scenario needs a project directory")
120 return context.dir.path

Callers 5

withContextFunction · 0.70
httpapiInstanceFunction · 0.50
withProjectFunction · 0.50
withFakeLlmFunction · 0.50
withFakeLlmProjectFunction · 0.50

Calls

no outgoing calls

Tested by 4

httpapiInstanceFunction · 0.40
withProjectFunction · 0.40
withFakeLlmFunction · 0.40
withFakeLlmProjectFunction · 0.40