MCPcopy Create free account
hub / github.com/anomalyco/opencode / fromConfig

Function fromConfig

packages/opencode/test/effect/runtime-flags.test.ts:7–8  ·  view source on GitHub ↗
(input: Record<string, unknown>)

Source from the content-addressed store, hash-verified

5import { it } from "../lib/effect"
6
7const fromConfig = (input: Record<string, unknown>) =>
8 AppNodeBuilder.build(RuntimeFlags.node).pipe(Layer.provide(ConfigProvider.layer(ConfigProvider.fromUnknown(input))))
9
10const readFlags = RuntimeFlags.Service.useSync((flags) => flags)
11

Callers 1

Calls 1

layerMethod · 0.45

Tested by

no test coverage detected