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

Function link

packages/desktop/scripts/finalize-latest-json.ts:108–111  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

106}
107
108function link(raw: string) {
109 if (raw.startsWith("https://") || raw.startsWith("http://")) return raw
110 return `https://github.com/${repo}/releases/download/v${version}/${raw}`
111}
112
113async function sign(url: string, key: string) {
114 const name = decodeURIComponent(new URL(url).pathname.split("/").pop() ?? key)

Callers 1

addFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected