MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / mayRunCodeGraph

Function mayRunCodeGraph

src/mcp/process-identity.ts:131–134  ·  view source on GitHub ↗

Whether an executable could be a JavaScript runtime that runs CodeGraph.

(name: string)

Source from the content-addressed store, hash-verified

129
130/** Whether an executable could be a JavaScript runtime that runs CodeGraph. */
131function mayRunCodeGraph(name: string): boolean {
132 const base = path.basename(name.replace(/\\/g, '/')).toLowerCase().replace(/\.exe$/, '');
133 return /node|codegraph|bun|deno/.test(base);
134}
135
136/**
137 * What a live lock holder is. The command line decides when the OS gives it;

Callers 1

classifyLockHolderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected