MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / getCdnFileUrl

Function getCdnFileUrl

website/src/lib/repo-provider.ts:248–253  ·  view source on GitHub ↗
(ref: RepoRef, branch: string, filePath: string)

Source from the content-addressed store, hash-verified

246}
247
248export function getCdnFileUrl(ref: RepoRef, branch: string, filePath: string): string | null {
249 if (ref.provider === "github") {
250 return `https://cdn.jsdelivr.net/gh/${ref.owner}/${ref.repo}@${branch}/${filePath}`;
251 }
252 return null;
253}
254
255/** List all file paths in a repository (fallback when ZIP download fails). */
256export async function listRepositoryFiles(

Callers 1

fetchRepositoryFilesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected