MCPcopy Create free account
hub / github.com/backnotprop/plannotator / normalizeWorkspacePath

Function normalizeWorkspacePath

packages/shared/review-workspace-node.ts:51–53  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

49}
50
51export function normalizeWorkspacePath(path: string): string {
52 return path.replace(/\\/g, "/").replace(/^\/+/, "");
53}
54
55function prefixRepoPath(label: string, filePath: string): string {
56 if (filePath === "/dev/null") return filePath;

Callers 4

normalizeAgentPathFunction · 0.90
prefixRepoPathFunction · 0.85
resolveWorkspaceFilePathFunction · 0.85
buildRepoLabelFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected