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

Function cacheIdentity

packages/core/src/repository.ts:125–127  ·  view source on GitHub ↗
(reference: Reference)

Source from the content-addressed store, hash-verified

123}
124
125export function cacheIdentity(reference: Reference): string {
126 return `${reference.host}/${reference.path}`
127}
128
129export function same(left: Reference, right: Reference): boolean {
130 return cacheIdentity(left) === cacheIdentity(right)

Callers 1

sameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected