MCPcopy Create free account
hub / github.com/Noumena-Network/code / formatPathLink

Function formatPathLink

src/utils/completionCache.ts:68–74  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

66}
67
68function formatPathLink(filePath: string): string {
69 if (!supportsHyperlinks()) {
70 return filePath
71 }
72 const fileUrl = pathToFileURL(filePath).href
73 return `\x1b]8;;${fileUrl}\x07${filePath}\x1b]8;;\x07`
74}
75
76/**
77 * Generate and cache the completion script, then add a source line to the

Callers 1

setupShellCompletionFunction · 0.70

Calls 1

supportsHyperlinksFunction · 0.85

Tested by

no test coverage detected