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

Function isRemote

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

Source from the content-addressed store, hash-verified

115}
116
117export function isRemote(reference: Reference): reference is RemoteReference {
118 return !isFile(reference)
119}
120
121export function cachePath(root: string, reference: Reference): string {
122 return path.join(root, ...reference.host.split(":"), ...reference.segments)

Callers 1

parseRemoteFunction · 0.85

Calls 1

isFileFunction · 0.70

Tested by

no test coverage detected