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

Function instructionLayer

packages/opencode/test/session/instruction.test.ts:35–40  ·  view source on GitHub ↗
(global: Partial<Global.Interface>, flags: Partial<RuntimeFlags.Info> = {})

Source from the content-addressed store, hash-verified

33const configLayer = Layer.succeed(Config.Service, TestConfig.make())
34
35const instructionLayer = (global: Partial<Global.Interface>, flags: Partial<RuntimeFlags.Info> = {}) =>
36 AppNodeBuilder.build(Instruction.node, [
37 [Config.node, configLayer],
38 [Global.node, Global.layerWith(global)],
39 [RuntimeFlags.node, RuntimeFlags.layer(flags)],
40 ])
41
42const provideInstruction =
43 (global: Partial<Global.Interface>, flags?: Partial<RuntimeFlags.Info>) =>

Callers 1

provideInstructionFunction · 0.70

Calls 1

layerMethod · 0.45

Tested by

no test coverage detected