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

Function recordPath

src/mcp/daemon-registry.ts:45–48  ·  view source on GitHub ↗
(root: string)

Source from the content-addressed store, hash-verified

43}
44
45function recordPath(root: string): string {
46 const hash = crypto.createHash('sha256').update(path.resolve(root)).digest('hex').slice(0, 16);
47 return path.join(getRegistryDir(), `${hash}.json`);
48}
49
50/**
51 * Is `pid` a live process? `kill(pid, 0)` sends no signal — it just probes:

Callers 2

registerDaemonFunction · 0.85
deregisterDaemonFunction · 0.85

Calls 3

getRegistryDirFunction · 0.85
resolveMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected