(projectPath: string)
| 11 | } |
| 12 | |
| 13 | function hasCodegraphProjectIndex(projectPath: string): boolean { |
| 14 | const codegraphDir = path.join(projectPath, '.codegraph'); |
| 15 | try { |
| 16 | if (!fs.statSync(codegraphDir).isDirectory()) return false; |
| 17 | return fs.readdirSync(codegraphDir).some((entry) => entry !== '.gitignore'); |
| 18 | } catch { |
| 19 | return false; |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | function resolvePnpmGlobalCommand(command: string): string | null { |
| 24 | try { |
no outgoing calls
no test coverage detected