MCPcopy Index your code
hub / github.com/anomalyco/opencode / stats

Function stats

packages/core/src/util/flock.ts:117–125  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

115 }
116
117 async function stats(file: string) {
118 try {
119 return await stat(file)
120 } catch (err) {
121 const errCode = code(err)
122 if (errCode === "ENOENT" || errCode === "ENOTDIR") return
123 throw err
124 }
125 }
126
127 async function stale(lockDir: string, heartbeatPath: string, metaPath: string, staleMs: number) {
128 // Stale detection allows automatic recovery after crashed owners.

Callers 5

staleFunction · 0.70
tryAcquireLockDirFunction · 0.70
StatsHomeFunction · 0.50
StatsModelFunction · 0.50
StatsLabFunction · 0.50

Calls 2

codeFunction · 0.70
statFunction · 0.50

Tested by

no test coverage detected