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

Function access

packages/opencode/test/effect/instance-state.test.ts:18–19  ·  view source on GitHub ↗
(state: InstanceState.InstanceState<A, E>, dir: string)

Source from the content-addressed store, hash-verified

16const it = testEffect(Layer.mergeAll(LayerNode.compile(CrossSpawnSpawner.node), testInstanceStoreLayer))
17
18const access = <A, E>(state: InstanceState.InstanceState<A, E>, dir: string) =>
19 InstanceState.get(state).pipe(provideInstanceEffect(dir))
20
21const tmpdirGitScoped = Effect.gen(function* () {
22 const dir = yield* tmpdirScoped({ git: true })

Callers 1

Calls 2

provideInstanceEffectFunction · 0.90
getMethod · 0.65

Tested by

no test coverage detected