chore: generate
This commit is contained in:
parent
7a035d7fc0
commit
7d33a6f7c9
3 changed files with 9 additions and 3 deletions
|
|
@ -622,7 +622,9 @@ export const layer = Layer.effect(
|
|||
}),
|
||||
fallback: { applied: false },
|
||||
}).pipe(
|
||||
Effect.provide(LayerNode.compile(InstanceStore.node, [[InstanceStore.bootstrapNode, InstanceBootstrap.node]])),
|
||||
Effect.provide(
|
||||
LayerNode.compile(InstanceStore.node, [[InstanceStore.bootstrapNode, InstanceBootstrap.node]]),
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,9 @@ import { InstanceStore } from "../../src/project/instance-store"
|
|||
import { TestLLMServer } from "../lib/llm-server"
|
||||
|
||||
const noopBootstrap = Layer.succeed(InstanceBootstrap.Service, InstanceBootstrap.Service.of({ run: Effect.void }))
|
||||
export const testInstanceStoreLayer = LayerNode.compile(InstanceStore.node, [[InstanceStore.bootstrapNode, noopBootstrap]])
|
||||
export const testInstanceStoreLayer = LayerNode.compile(InstanceStore.node, [
|
||||
[InstanceStore.bootstrapNode, noopBootstrap],
|
||||
])
|
||||
|
||||
export async function provideTestInstance<R>(input: {
|
||||
directory: string
|
||||
|
|
|
|||
|
|
@ -1761,7 +1761,9 @@ it.instance(
|
|||
// Tests that need plugin file setup or multi-instance flows fall back to a
|
||||
// scoped tmpdir + provideInstance pattern via it.effect.
|
||||
|
||||
const instanceStoreLayer = LayerNode.compile(InstanceStore.node, [[InstanceStore.bootstrapNode, InstanceBootstrap.node]])
|
||||
const instanceStoreLayer = LayerNode.compile(InstanceStore.node, [
|
||||
[InstanceStore.bootstrapNode, InstanceBootstrap.node],
|
||||
])
|
||||
const provideMultiInstance = <A, E, R>(eff: Effect.Effect<A, E, R>) =>
|
||||
eff.pipe(Effect.provide(instanceStoreLayer), Effect.provide(CrossSpawnSpawner.defaultLayer))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue