feat(core): expose config changes stream (#39131)

This commit is contained in:
Kit Langton 2026-07-27 13:38:08 -04:00 committed by GitHub
commit 02c37c401a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 123 additions and 25 deletions

View file

@ -1,4 +1,4 @@
import { Effect, Layer } from "effect"
import { Effect, Layer, Stream } from "effect"
import { Config } from "@opencode-ai/core/config"
import { Location } from "@opencode-ai/core/location"
import { MCP } from "@opencode-ai/core/mcp/index"
@ -23,7 +23,10 @@ export const emptyMcpLayer = Layer.succeed(
}),
)
export const emptyConfigLayer = Layer.succeed(Config.Service, Config.Service.of({ entries: () => Effect.succeed([]) }))
export const emptyConfigLayer = Layer.succeed(
Config.Service,
Config.Service.of({ changes: () => Stream.empty, entries: () => Effect.succeed([]) }),
)
export const testLocationLayer = Layer.succeed(
Location.Service,