MCPcopy
hub / github.com/codeaashu/claude-code / cleanupPath

Function cleanupPath

src/ink/components/ErrorOverview.tsx:12–14  ·  view source on GitHub ↗
(path: string | undefined)

Source from the content-addressed store, hash-verified

10// Error's source file is reported as file:///home/user/file.js
11// This function removes the file://[cwd] part
12const cleanupPath = (path: string | undefined): string | undefined => {
13 return path?.replace(`file://${process.cwd()}/`, '');
14};
15let stackUtils: StackUtils | undefined;
16function getStackUtils(): StackUtils {
17 return stackUtils ??= new StackUtils({

Callers 1

ErrorOverviewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected