MCPcopy
hub / github.com/rpamis/comet / hasCodegraphProjectIndex

Function hasCodegraphProjectIndex

src/core/codegraph.ts:13–21  ·  view source on GitHub ↗
(projectPath: string)

Source from the content-addressed store, hash-verified

11}
12
13function 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
23function resolvePnpmGlobalCommand(command: string): string | null {
24 try {

Callers 6

codegraph.test.tsFile · 0.85
checkCodegraphFunction · 0.85
updateCommandFunction · 0.85
selectNpmDepsFunction · 0.85
initCommandFunction · 0.85
installCodegraphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected