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

Function cacheLayer

packages/core/test/repository-cache.test.ts:90–94  ·  view source on GitHub ↗
(root: string)

Source from the content-addressed store, hash-verified

88})
89
90function cacheLayer(root: string) {
91 return AppNodeBuilder.build(RepositoryCache.node, [
92 [Global.node, Global.layerWith({ state: path.join(root, "state"), repos: path.join(root, "repos") })],
93 ])
94}
95
96function withRemote<A, E, R>(body: (fixture: Awaited<ReturnType<typeof gitRemote>>) => Effect.Effect<A, E, R>) {
97 return Effect.acquireUseRelease(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected