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

Function isComputerUseLock

src/utils/computerUse/computerUseLock.ts:34–42  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

32const REENTRANT: AcquireResult = { kind: 'acquired', fresh: false }
33
34function isComputerUseLock(value: unknown): value is ComputerUseLock {
35 if (typeof value !== 'object' || value === null) return false
36 return (
37 'sessionId' in value &&
38 typeof value.sessionId === 'string' &&
39 'pid' in value &&
40 typeof value.pid === 'number'
41 )
42}
43
44function getLockPath(): string {
45 return join(getClaudeConfigHomeDir(), LOCK_FILENAME)

Callers 1

readLockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected