feat(simulation): add driver controlled backend LLM (#35186)
This commit is contained in:
parent
2ff19171dc
commit
4790a2772c
25 changed files with 1191 additions and 21 deletions
|
|
@ -72,7 +72,7 @@ function makeRoutes<AuthError, AuthServices>(
|
|||
const serviceLayer = simulationEnabled()
|
||||
? Layer.unwrap(
|
||||
Effect.gen(function* () {
|
||||
const { simulationReplacements } = yield* Effect.promise(() => import("./simulation"))
|
||||
const { simulationReplacements } = yield* Effect.promise(() => import("@opencode-ai/simulation/backend"))
|
||||
return AppNodeBuilder.build(applicationServices, [...replacements, ...simulationReplacements])
|
||||
}),
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,14 +0,0 @@
|
|||
import { LayerNode } from "@opencode-ai/core/effect/layer-node"
|
||||
|
||||
/**
|
||||
* Layer replacements applied when the server is built in simulation mode.
|
||||
*
|
||||
* Empty for now; simulation-mode implementations will populate this with
|
||||
* replacement nodes/layers that swap real services for simulated ones (e.g.
|
||||
* a fake filesystem). The server merges these into the app node build when
|
||||
* `OPENCODE_SIMULATION` is enabled, via a dynamic import so this module is
|
||||
* never loaded eagerly.
|
||||
*/
|
||||
export const simulationReplacements: LayerNode.Replacements = []
|
||||
|
||||
export * as Simulation from "./index"
|
||||
Loading…
Add table
Add a link
Reference in a new issue