MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / get_sent_records

Function get_sent_records

uncommon_route/telemetry.py:293–306  ·  view source on GitHub ↗

Read the sent log for `telemetry show-sent`.

()

Source from the content-addressed store, hash-verified

291
292
293def get_sent_records() -> list[dict[str, Any]]:
294 """Read the sent log for `telemetry show-sent`."""
295 sent = _sent_log_path()
296 if not sent.exists():
297 return []
298 records = []
299 for line in sent.read_text().splitlines():
300 line = line.strip()
301 if line:
302 try:
303 records.append(json.loads(line))
304 except Exception:
305 pass
306 return records

Callers 1

_cmd_telemetryFunction · 0.90

Calls 2

_sent_log_pathFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected