Skip to content

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

chore: apply ruff formatting

JerrettDavis9c1bef56bf1e
diff --git a/headroom/cli/wrap.py b/headroom/cli/wrap.py
index d9210e052..e37a20fed 100644
--- a/headroom/cli/wrap.py
+++ b/headroom/cli/wrap.py
@@ -1205,7 +1205,9 @@ def openclaw(
if no_restart:
click.echo(" Skipping gateway restart (--no-restart).")
- click.echo(" Run `openclaw gateway restart` (or `openclaw gateway start`) to apply plugin changes.")
+ click.echo(
+ " Run `openclaw gateway restart` (or `openclaw gateway start`) to apply plugin changes."
+ )
else:
click.echo(" Applying plugin changes to OpenClaw gateway...")
gateway_action, gateway_output = _restart_or_start_openclaw_gateway(openclaw_bin)
@@ -1249,7 +1251,15 @@ def unwrap_openclaw(no_restart: bool, verbose: bool) -> None:
existing_config = {
key: value
for key, value in existing_entry["config"].items()
- if key not in {"gatewayProviderIds", "proxyUrl", "proxyPort", "autoStart", "startupTimeoutMs", "pythonPath"}
+ if key
+ not in {
+ "gatewayProviderIds",
+ "proxyUrl",
+ "proxyPort",
+ "autoStart",
+ "startupTimeoutMs",
+ "pythonPath",
+ }
}
entry = {"enabled": False, "config": existing_config}
@@ -1262,7 +1272,9 @@ def unwrap_openclaw(no_restart: bool, verbose: bool) -> None:
if no_restart:
click.echo(" Skipping gateway restart (--no-restart).")
- click.echo(" Run `openclaw gateway restart` (or `openclaw gateway start`) to apply unwrap changes.")
+ click.echo(
+ " Run `openclaw gateway restart` (or `openclaw gateway start`) to apply unwrap changes."
+ )
else:
click.echo(" Applying unwrap changes to OpenClaw gateway...")
gateway_action, gateway_output = _restart_or_start_openclaw_gateway(openclaw_bin)