MCPcopy Index your code
hub / github.com/coder/mux / createRemoteProjectId

Function createRemoteProjectId

src/node/runtime/remoteProjectLayout.ts:29–33  ·  view source on GitHub ↗
(projectPath: string)

Source from the content-addressed store, hash-verified

27}
28
29export function createRemoteProjectId(projectPath: string): string {
30 const normalizedPath = projectPath.replace(/\\/g, "/");
31 const projectSlug = sanitizeProjectSegment(getProjectName(projectPath));
32 return `${projectSlug}-${hashText(normalizedPath)}`;
33}
34
35export function buildRemoteProjectLayout(
36 srcBaseDir: string,

Callers 1

buildRemoteProjectLayoutFunction · 0.85

Calls 3

getProjectNameFunction · 0.90
sanitizeProjectSegmentFunction · 0.85
hashTextFunction · 0.85

Tested by

no test coverage detected