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

Function directory

packages/opencode/test/server/httpapi-exercise/runner.ts:118–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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
121 }
122 const llm = () => {
123 if (!context.llm) throw new Error("scenario needs fake LLM")
124 return context.llm

Callers 1

withContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected