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

Function cacheOperation

packages/core/src/repository-cache.ts:242–246  ·  view source on GitHub ↗
(effect: Effect.Effect<A, E, R>, operation: string, target: string)

Source from the content-addressed store, hash-verified

240}
241
242function cacheOperation<A, E, R>(effect: Effect.Effect<A, E, R>, operation: string, target: string) {
243 return effect.pipe(
244 Effect.mapError((error) => new CacheOperationError({ operation, path: target, message: errorMessage(error) })),
245 )
246}
247
248const resetTarget = Effect.fnUntraced(function* (
249 git: Git.Interface,

Callers 1

Calls 1

errorMessageFunction · 0.70

Tested by

no test coverage detected