refactor(core): remove session layer exports (#34623)

This commit is contained in:
James Long 2026-06-30 11:44:08 -04:00 committed by GitHub
commit 6387f955cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 11 additions and 35 deletions

View file

@ -66,7 +66,7 @@ export interface Interface {
export class Service extends Context.Service<Service, Interface>()("@opencode/ControlPlaneMoveSession") {}
export const layer = Layer.effect(
const layer = Layer.effect(
Service,
Effect.gen(function* () {
const git = yield* Git.Service
@ -141,13 +141,6 @@ export const layer = Layer.effect(
}),
)
export const defaultLayer = layer.pipe(
Layer.provide(Git.defaultLayer),
Layer.provide(EventV2.defaultLayer),
Layer.provide(ProjectV2.defaultLayer),
Layer.provide(SessionStore.defaultLayer),
)
export const node = makeGlobalNode({
service: Service,
layer,