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

Function disable

uncommon_route/telemetry.py:174–182  ·  view source on GitHub ↗

Disable telemetry and discard any pending unsent records.

()

Source from the content-addressed store, hash-verified

172
173
174def disable() -> None:
175 """Disable telemetry and discard any pending unsent records."""
176 config = _load_config()
177 config["telemetry"] = {"enabled": False}
178 _save_config(config)
179 # Discard pending buffer (right to withdraw)
180 buf = _buffer_path()
181 if buf.exists():
182 buf.unlink()
183
184
185def status() -> dict[str, Any]:

Callers 1

_cmd_telemetryFunction · 0.90

Calls 3

_buffer_pathFunction · 0.85
_load_configFunction · 0.70
_save_configFunction · 0.70

Tested by

no test coverage detected