(path: string)
| 66 | }; |
| 67 | |
| 68 | const readFile = async (path: string): Promise<ReadFileResult> => { |
| 69 | const normalizedPath = normalizePath(path); |
| 70 | const node = findNodeByPath(normalizedPath); |
| 71 | |
| 72 | if (!node) { |
| 73 | throw new Error(`File not found: ${path}`); |
| 74 | } |
| 75 | |
| 76 | return { |
| 77 | content: node.content, |
| 78 | metadata: node.metadata || {}, |
| 79 | }; |
| 80 | }; |
| 81 | |
| 82 | const writeFile = async ( |
| 83 | path: string, |
nothing calls this directly
no test coverage detected