()
| 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 |