MCPcopy
hub / github.com/anomalyco/opencode / getSnapshot

Function getSnapshot

packages/core/src/system-context/index.ts:301–303  ·  view source on GitHub ↗
(snapshot: Snapshot, key: Key)

Source from the content-addressed store, hash-verified

299}
300
301function getSnapshot(snapshot: Snapshot, key: Key) {
302 return Object.hasOwn(snapshot, key) ? snapshot[key] : undefined
303}
304
305function isUnavailable(value: unknown): value is Unavailable {
306 return value === unavailable

Callers 2

reconcileObservationFunction · 0.85
replaceObservationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected