chore: generate

This commit is contained in:
opencode-agent[bot] 2026-05-15 19:48:45 +00:00
parent 499e8e4b78
commit 0df2f5b45f
2 changed files with 3 additions and 11 deletions

View file

@ -269,10 +269,7 @@ it.live("InstanceState correct after interleaved init and dispose", () =>
expect(a).toBe(one)
const [, b] = yield* Effect.all(
[
reloadInstance({ directory: one }),
Test.use((svc) => svc.get()).pipe(provideInstanceEffect(two)),
],
[reloadInstance({ directory: one }), Test.use((svc) => svc.get()).pipe(provideInstanceEffect(two))],
{ concurrency: "unbounded" },
)
expect(b).toBe(two)

View file

@ -18,9 +18,7 @@ import { TestLLMServer } from "../lib/llm-server"
const noopBootstrap = Layer.succeed(InstanceBootstrap.Service, InstanceBootstrap.Service.of({ run: Effect.void }))
export const testInstanceStoreLayer = InstanceStore.defaultLayer.pipe(Layer.provide(noopBootstrap))
const testInstanceRuntime = ManagedRuntime.make(
testInstanceStoreLayer.pipe(Layer.provideMerge(Observability.layer)),
)
const testInstanceRuntime = ManagedRuntime.make(testInstanceStoreLayer.pipe(Layer.provideMerge(Observability.layer)))
const runTestInstanceStore = <A>(fn: (store: InstanceStore.Interface) => Effect.Effect<A>) =>
testInstanceRuntime.runPromise(InstanceStore.Service.use(fn))
@ -207,10 +205,7 @@ export const withTmpdirInstance =
Effect.gen(function* () {
const directory = yield* tmpdirScoped(options)
return yield* self.pipe(Effect.provideService(TestInstance, { directory }), provideInstanceEffect(directory))
}).pipe(
Effect.provide(testInstanceStoreLayer),
Effect.provide(CrossSpawnSpawner.defaultLayer),
)
}).pipe(Effect.provide(testInstanceStoreLayer), Effect.provide(CrossSpawnSpawner.defaultLayer))
export function provideTmpdirServer<A, E, R>(
self: (input: { dir: string; llm: TestLLMServer["Service"] }) => Effect.Effect<A, E, R>,