Repository navigation
Conversation
|
✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically. |
|
已推送 0.14.0(fa45cee):补齐 Windows / Linux 支持。
说明:跨平台路径在代码层完成(所有路径经 |
|
✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically. |
|
补交插件图标: |
|
✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically. |
|
已推送 0.15.0:侧栏面板设置可直接编辑 + 热力图小时粒度。
|
|
✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically. |
|
Thanks for the contribution! This PR no longer applies cleanly on top of the latest 🤖 Copy this prompt into Claude Code / Codex to fix it |
Read-only local SQLite analytics for ZCode: per-request drill-down (token breakdown, tok/s, cache rate), live session side-panel dashboard with editable settings (prices/budget/notifications via app-only MCP tools), session health scores, model leaderboard, waste forensics, budget/burn alerts, list-price converted costs, activity heatmap (hourly/day/week/ month) and report export. Cross-platform (macOS/Windows/Linux), zero model overhead, network access only for optional models.dev price sync and optional official quota lookup (both off by default). UI Plugin: ui.surfaces (session side panel) + _meta.ui.resourceUri / visibility app tools. Includes icon, bilingual README, and marketplace entry (validated with scripts/validate.py: 47 plugins OK).
8609dae to
0aeb155
Compare
|
Rebased onto latest main and force-pushed — the branch is now a single clean commit on top of current main (marketplace.json conflict resolved; validate.py passes: 47 plugins OK). Also updated to 0.15.2 with a few fixes found during real-world use:
|
|
✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically. |
Plugin type (required) / 插件类型(必填)
Affected plugin name(s) / 涉及的插件名称:
usage-detail(ui.surfaces侧栏面板 + 工具_meta.ui.resourceUri页面,故声明为 UI Plugin)What / 改动内容
新增社区插件 usage-detail(v0.13.4):ZCode 本地逐条用量分析,全部本地计算、零模型开销、数据库只读。
解决的用户问题:官方客户端只提供用量汇总,用户看不到每次请求的 token 构成、输出速率、缓存命中率,也没有预算告警与浪费分析;GLM Coding Plan 订阅用户尤其需要零 token 开销的用量可见性。
功能:
/usage-ui同一完整界面(六个页签、热力图三态、模型效率排行、健康分);每轮统计经resources/subscribe→notifications/resources/updated实时推送到面板顶部横幅——本地计算、不进上下文/usage/usage-ui/usage-this/usage-today命令 + 本地面板(仅监听 127.0.0.1)+ JSON/CSV/自包含 HTML 导出版本与注册:插件清单与 marketplace.json 条目均为 0.13.4;分类
utilities。测试方式:
tests/(44 项,python3 直接运行):CLI 全子命令、turn-stats 守卫、serve HTTP 全端点、MCP 协议(tools/resources/订阅推送)、三个 hooks 行为/usage-ui仪表盘 → 设置弹窗配置价格/预算/通知依赖、网络、权限与副作用(README 双语均已披露):
~/.zcode/cli/db/db.sqlite;仅写自身配置/状态文件(~/.zcode/usage-*.json)osascript系统通知(其他平台静默)ZCODE_USAGE_NO_AUTOSYNC=1可关)、open.bigmodel.cn 配额查询(仅在用户自配 API Key 时);无遥测第三方材料:models.dev 价格数据(MIT,本地换算缓存);其余为原创代码,MIT License(插件目录内附 LICENSE)。
Self-check / 自查清单
external_plugins/usage-detail/category: utilities已填写ZCODE_PLUGIN_ROOT/homedir 动态解析)validate.py通过(46 plugins validated);本插件build_zip通过;git diff --check通过