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

@ -181,7 +181,7 @@ export interface Interface {
export class Service extends Context.Service<Service, Interface>()("@opencode/v2/Session") {}
export const layer = Layer.effect(
const layer = Layer.effect(
Service,
Effect.gen(function* () {
const database = yield* Database.Service
@ -457,15 +457,6 @@ export const layer = Layer.effect(
}),
)
export const defaultLayer = layer.pipe(
Layer.provide(SessionStore.defaultLayer),
Layer.provide(SessionProjector.defaultLayer),
Layer.provide(EventV2.defaultLayer),
Layer.provide(Database.defaultLayer),
Layer.provide(ProjectV2.defaultLayer),
Layer.orDie,
)
const resolvePrompt = (input: PromptInput.Prompt) =>
Prompt.make({
text: input.text,