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

Function writeResult

packages/core/src/file-mutation.ts:84–89  ·  view source on GitHub ↗
(target: Target, existed: boolean)

Source from the content-addressed store, hash-verified

82 locks.withLock(target.canonical)(Effect.uninterruptible(effect))
83
84 const writeResult = (target: Target, existed: boolean): WriteResult => ({
85 operation: "write",
86 target: target.canonical,
87 resource: target.resource,
88 existed,
89 })
90
91 const removeResult = (target: Target, existed: boolean): RemoveResult => ({
92 operation: "remove",

Callers 1

file-mutation.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected