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

Function encode

src/mcp/writer-lock.ts:53–55  ·  view source on GitHub ↗
(info: WriterLockInfo)

Source from the content-addressed store, hash-verified

51 | { kind: 'taken'; existing: WriterLockInfo | null; pidPath: string };
52
53function encode(info: WriterLockInfo): string {
54 return JSON.stringify(info) + '\n';
55}
56
57export function decodeWriterLockInfo(raw: string): WriterLockInfo | null {
58 try {

Callers 3

attemptFunction · 0.85
markWriterReadyFunction · 0.85
swapWriterLockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected