MCPcopy Index your code
hub / github.com/anomalyco/opencode / layer

Method layer

packages/opencode/src/effect/config-service.ts:50–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 }
49
50 static get layer() {
51 const tag = this
52 return Layer.effect(
53 tag,
54 Effect.gen(function* () {
55 const config = yield* Config.all(fields)
56 // oxlint-disable-next-line typescript-eslint/no-unsafe-type-assertion -- Config.all preserves the field shape, but its conditional return type also supports iterable inputs.
57 return tag.of(config as Shape<Fields>)
58 }),
59 )
60 }
61 }
62
63 // oxlint-disable-next-line typescript-eslint/no-unsafe-type-assertion -- The generated class carries typed static helpers.

Callers 15

workspaceLayerFunction · 0.45
workspace.test.tsFile · 0.45
lspLayerFunction · 0.45
trigger.test.tsFile · 0.45
loadFunction · 0.45
providerAuthLayerFunction · 0.45
image.test.tsFile · 0.45
project.test.tsFile · 0.45
effect.tsFile · 0.45
TestLLMServerClass · 0.45

Calls 1

allMethod · 0.45

Tested by 15

workspaceLayerFunction · 0.36
lspLayerFunction · 0.36
loadFunction · 0.36
providerAuthLayerFunction · 0.36
compactionProcessLayerFunction · 0.36
instructionLayerFunction · 0.36
recordedNativeLLMLayerFunction · 0.36
llmLayerWithExecutorFunction · 0.36
providerLayerFunction · 0.36
listenTestServerFunction · 0.36
listenAdditionalServerFunction · 0.36
appFunction · 0.36