Skip to content

v0.4.0

Latest

Choose a tag to compare

@zccyman zccyman released this 03 Apr 16:27
· 2 commits to master since this release

📊 Usage Monitor 入驻

将 OpenClaw Usage Monitor 从 TypeScript CLI 重写为 Python FastAPI 工具,集成到 Workbench 工具箱。

后端

  • collector.py — JSONL 会话文件解析器
  • analyzer.py — 使用统计分析器
  • reporter.py — Markdown/JSON 报告格式化
  • router.py — 5 个 API 端点
  • 15 个 pytest 单元测试

前端

  • UsageMonitor 仪表盘页面
  • 6 个 recharts 图表组件(工具频率、技能激活、24小时分布、每日活跃度)
  • 配置面板(Agent 选择、时间过滤)

API

  • GET/POST /api/tools/usage_monitor/analyze — 数据分析
  • GET /api/tools/usage_monitor/report/markdown — Markdown 报告
  • GET /api/tools/usage_monitor/report/json — JSON 报告
  • GET /api/tools/usage_monitor/config — Agent 配置