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

Function getStatus

src/webui/observer/status.js:9–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7const { redactValue } = require('./redact');
8
9function getStatus() {
10 const paths = getObserverPaths();
11 const cycle = readJsonSafe(paths.cycleProgressPath, null);
12 const solidify = readJsonSafe(paths.solidifyStatePath, null);
13 const evolution = readJsonSafe(paths.evolutionStatePath, null);
14 const proxy = getProxySettings();
15 // Everything observer-derived may carry prompt / task context with
16 // embedded credentials. Every other observer endpoint (runs.js,
17 // assets.js, interactions.js, ...) already pipes its payload through
18 // redactValue; /webui/status is the one that skipped it, so it became
19 // the easy exfiltration path. Funnel the three readJsonSafe outputs
20 // through the same redaction filter before they leave the process.
21 return {
22 mode: inferMode(cycle, solidify, proxy),
23 heartbeat: redactValue(cycle),
24 lastRun: redactValue(solidify && solidify.last_run ? solidify.last_run : null),
25 evolutionState: redactValue(evolution),
26 proxy,
27 filesPresent: filesPresent(paths),
28 safety: getSafetyState(),
29 };
30}
31
32function inferMode(cycle, solidify, proxy) {
33 if (cycle && isFresh(cycle.updated_at, 120_000)) return 'running';

Callers

nothing calls this directly

Calls 7

getObserverPathsFunction · 0.85
getProxySettingsFunction · 0.85
inferModeFunction · 0.85
redactValueFunction · 0.85
filesPresentFunction · 0.85
getSafetyStateFunction · 0.85
readJsonSafeFunction · 0.70

Tested by

no test coverage detected