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

@ -21,7 +21,7 @@ import { Reference } from "@opencode-ai/core/reference"
import { Skill } from "@opencode-ai/core/skill"
import { Tool } from "@opencode-ai/core/tool"
import { WebSearch } from "@opencode-ai/core/websearch"
import { Effect, Layer } from "effect"
import { Effect, Layer, Stream } from "effect"
import { tempLocationLayer } from "../fixture/location"
const npmLayer = Layer.succeed(
@ -60,6 +60,12 @@ export const PluginTestLayer = AppNodeBuilder.build(
[
[Location.node, tempLocationLayer],
[Npm.node, npmLayer],
[Config.node, Layer.succeed(Config.Service, Config.Service.of({ entries: () => Effect.succeed([]) }))],
[
Config.node,
Layer.succeed(
Config.Service,
Config.Service.of({ changes: () => Stream.empty, entries: () => Effect.succeed([]) }),
),
],
],
) as unknown as Layer.Layer<unknown, never>