MCPcopy Index your code
hub / github.com/codeaashu/claude-code / readLock

Function readLock

src/utils/computerUse/computerUseLock.ts:48–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46}
47
48async function readLock(): Promise<ComputerUseLock | undefined> {
49 try {
50 const raw = await readFile(getLockPath(), 'utf8')
51 const parsed: unknown = jsonParse(raw)
52 return isComputerUseLock(parsed) ? parsed : undefined
53 } catch {
54 return undefined
55 }
56}
57
58/**
59 * Check whether a process is still running (signal 0 probe).

Callers 3

checkComputerUseLockFunction · 0.70
releaseComputerUseLockFunction · 0.70

Calls 4

readFileFunction · 0.85
jsonParseFunction · 0.85
isComputerUseLockFunction · 0.85
getLockPathFunction · 0.70

Tested by

no test coverage detected