* Search-based code navigation — shared types and pure logic. * * Runtime-agnostic: both Bun and Node servers provide their own * CodeNavRuntime implementation to run subprocess commands.
(filePath: string)
| 6 | */ |
| 7 | |
| 8 | function validateFilePath(filePath: string): void { |
| 9 | if (filePath.includes("..") || filePath.startsWith("/")) { |
| 10 | throw new Error("Invalid file path"); |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | // --------------------------------------------------------------------------- |
| 15 | // Types |
no outgoing calls
no test coverage detected