MCPcopy Create free account
hub / github.com/EvoMap/evolver / inferMode

Function inferMode

src/webui/observer/status.js:32–37  ·  view source on GitHub ↗
(cycle, solidify, proxy)

Source from the content-addressed store, hash-verified

30}
31
32function inferMode(cycle, solidify, proxy) {
33 if (cycle && isFresh(cycle.updated_at, 120_000)) return 'running';
34 if (solidify && solidify.pending) return 'review_pending';
35 if (proxy && proxy.running) return 'proxy_only';
36 return 'idle';
37}
38
39function isFresh(timestamp, maxAgeMs) {
40 const t = Number(timestamp);

Callers 1

getStatusFunction · 0.85

Calls 1

isFreshFunction · 0.85

Tested by

no test coverage detected