feat(core): expose config changes stream (#39131)
This commit is contained in:
parent
33e3d1ebca
commit
02c37c401a
19 changed files with 123 additions and 25 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue