Spaces:
Build error
Build error
Commit History
-
fix(openclaw): preserve tool call linkage in converted history
56c6b5a
-
OpenClaw plugin fixes, telemetry fix, cost tracker improvement, tokenBudget support
OpenClaw plugin: - Fix assistant content always returned as array (fixes flatMap crash) - Clean up debug logging, restore clean plugin entry point - Add test for text-only assistant round-trip - Set headroom-ai dependency to npm (not local path) Telemetry: - Switch from sb_publishable_ to JWT anon key (PostgREST needs JWT for RLS) - Switch from upsert to plain INSERT (anon role upsert was failing with 42501) - Verified: full payload with all JSONB columns writes successfully (201) Cost tracker: - Use output_buffer instead of hardcoded 500 for cost estimation in client.py - CostTracker counterfactual: value removed tokens at avg effective $/token (actual_spend / billed_tokens) instead of uncached list price — aligns savings with real billing mix (cache reads, writes, uncached) - Add debug log for /stats summary payload - Add 3 tests for new cost savings calculation TypeScript SDK: - Add tokenBudget param to compress(), HeadroomClient, CompressOptions - Proxy /v1/compress accepts …0b469f5
-
feat: add OpenClaw ContextEngine plugin (@headroom-ai/openclaw)
- HeadroomContextEngine: implements ContextEngine interface (bootstrap, ingest, assemble, compact, afterTurn, prepareSubagentSpawn, dispose) - ProxyManager: auto-detects running proxy or spawns one as child process, health checks, restart on crash, graceful shutdown - AgentMessage ↔ OpenAI format conversion (user, assistant/tool_use, toolResult) - headroom_retrieve CCR tool: agent can retrieve original uncompressed content - Plugin manifest (openclaw.plugin.json) with config schema - 11 tests (6 unit + 5 integration), all passing - Integration tested: 100 servers compressed, 3,735 tokens saved (82%)2a2730a