(
self: (input: { dir: string; llm: TestLLMServer["Service"] }) => Effect.Effect<A, E, R>,
options?: { git?: boolean; config?: (url: string) => Partial<ConfigV1.Info> },
)
| 211 | }).pipe(Effect.provide(testInstanceStoreLayer), Effect.provide(AppNodeBuilder.build(CrossSpawnSpawner.node))) |
| 212 | |
| 213 | export function provideTmpdirServer<A, E, R>( |
| 214 | self: (input: { dir: string; llm: TestLLMServer["Service"] }) => Effect.Effect<A, E, R>, |
| 215 | options?: { git?: boolean; config?: (url: string) => Partial<ConfigV1.Info> }, |
| 216 | ): Effect.Effect< |
| 217 | A, |
| 218 | E | PlatformError.PlatformError, |
| 219 | R | TestLLMServer | ChildProcessSpawner.ChildProcessSpawner | Scope.Scope |
| 220 | > { |
| 221 | return Effect.gen(function* () { |
| 222 | const llm = yield* TestLLMServer |
| 223 | return yield* provideTmpdirInstance((dir) => self({ dir, llm }), { |
| 224 | git: options?.git, |
| 225 | config: options?.config?.(llm.url), |
| 226 | }) |
| 227 | }) |
| 228 | } |
no test coverage detected