chore: generate
This commit is contained in:
@@ -622,7 +622,9 @@ export const layer = Layer.effect(
|
|||||||
}),
|
}),
|
||||||
fallback: { applied: false },
|
fallback: { applied: false },
|
||||||
}).pipe(
|
}).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"
|
import { TestLLMServer } from "../lib/llm-server"
|
||||||
|
|
||||||
const noopBootstrap = Layer.succeed(InstanceBootstrap.Service, InstanceBootstrap.Service.of({ run: Effect.void }))
|
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: {
|
export async function provideTestInstance<R>(input: {
|
||||||
directory: string
|
directory: string
|
||||||
|
|||||||
@@ -1761,7 +1761,9 @@ it.instance(
|
|||||||
// Tests that need plugin file setup or multi-instance flows fall back to a
|
// Tests that need plugin file setup or multi-instance flows fall back to a
|
||||||
// scoped tmpdir + provideInstance pattern via it.effect.
|
// 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>) =>
|
const provideMultiInstance = <A, E, R>(eff: Effect.Effect<A, E, R>) =>
|
||||||
eff.pipe(Effect.provide(instanceStoreLayer), Effect.provide(CrossSpawnSpawner.defaultLayer))
|
eff.pipe(Effect.provide(instanceStoreLayer), Effect.provide(CrossSpawnSpawner.defaultLayer))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user