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

Function encodeLockInfo

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

Source from the content-addressed store, hash-verified

156 * human readability — operators occasionally `cat` this when debugging.
157 */
158export function encodeLockInfo(info: DaemonLockInfo): string {
159 return JSON.stringify(info, null, 2) + '\n';
160}
161
162/**
163 * Parse a pidfile body. Tolerant of old-format pidfiles (plain decimal pid) so

Callers 4

startMethod · 0.90
tryAcquireDaemonLockFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected