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

Function provideInstruction

packages/opencode/test/session/instruction.test.ts:43–45  ·  view source on GitHub ↗
(global: Partial<Global.Interface>, flags?: Partial<RuntimeFlags.Info>)

Source from the content-addressed store, hash-verified

41
42const provideInstruction =
43 (global: Partial<Global.Interface>, flags?: Partial<RuntimeFlags.Info>) =>
44 <A, E, R>(self: Effect.Effect<A, E, R>) =>
45 self.pipe(Effect.provide(instructionLayer(global, flags)))
46
47const write = (filepath: string, content: string) =>
48 Effect.gen(function* () {

Callers 2

withFilesFunction · 0.85

Calls 1

instructionLayerFunction · 0.70

Tested by

no test coverage detected