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

Function encodeLockInfo

src/mcp/daemon-paths.ts:182–184  ·  view source on GitHub ↗
(info: DaemonLockInfo)

Source from the content-addressed store, hash-verified

180 * human readability — operators occasionally `cat` this when debugging.
181 */
182export function encodeLockInfo(info: DaemonLockInfo): string {
183 return JSON.stringify(info, null, 2) + '\n';
184}
185
186/**
187 * Parse a pidfile body. Tolerant of old-format pidfiles (plain decimal pid) so

Callers 10

refreshDaemonLockFunction · 0.90
tryAcquireDaemonLockFunction · 0.90
fakeDaemonFunction · 0.90
stoppingDaemonFunction · 0.90
writeLockFunction · 0.90
writeLockFunction · 0.90

Calls

no outgoing calls

Tested by 4

fakeDaemonFunction · 0.72
stoppingDaemonFunction · 0.72
writeLockFunction · 0.72
writeLockFunction · 0.72