refactor(core): remove infrastructure layer exports (#34624)

This commit is contained in:
James Long 2026-06-30 12:17:12 -04:00 committed by GitHub
commit 472d0f376e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 46 additions and 104 deletions

View file

@ -120,7 +120,7 @@ export interface Interface {
export class Service extends Context.Service<Service, Interface>()("@opencode/ModelsDev") {}
export const layer = Layer.effect(
const layer = Layer.effect(
Service,
Effect.gen(function* () {
const fs = yield* FSUtil.Service
@ -239,11 +239,6 @@ export const layer = Layer.effect(
}),
)
export const defaultLayer = layer.pipe(
Layer.provide(FetchHttpClient.layer),
Layer.provide(FSUtil.defaultLayer),
Layer.provide(EventV2.defaultLayer),
)
export const node = makeGlobalNode({ service: Service, layer: layer, deps: [FSUtil.node, EventV2.node, httpClient] })
export * as ModelsDev from "./models-dev"