MCPcopy Index your code
hub / github.com/anomalyco/opencode / fingerprint

Function fingerprint

packages/opencode/src/plugin/meta.ts:108–111  ·  view source on GitHub ↗
(value: Core)

Source from the content-addressed store, hash-verified

106}
107
108function fingerprint(value: Core) {
109 if (value.source === "file") return [value.target, value.modified ?? ""].join("|")
110 return [value.target, value.requested ?? "", value.version ?? ""].join("|")
111}
112
113async function read(file: string): Promise<Store> {
114 return Filesystem.readJson<Store>(file).catch(() => ({}) as Store)

Callers 1

nextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected