MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / encodePath

Function encodePath

graph-ui/src/components/NodeDetailPanel.tsx:38–40  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

36 * URL. The scheme is already https-forced by the backend (/api/repo-info);
37 * this is defense-in-depth on the path. */
38function encodePath(p: string): string {
39 return p.split("/").map(encodeURIComponent).join("/");
40}
41
42/* GitHub (or GitLab) deep-link, or null when we lack remote/path/line info. */
43function githubUrl(node: GraphNode, repoInfo: RepoInfo | null): string | null {

Callers 1

githubUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected