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. |
Visual refresh drawing on the zcode-context design language: fewer heavy cards, light separators, compact rows. - Derives design tokens on top of host theme vars (soft separators, accent, 13px type scale, tabular numerals) - KPI area: four accent-striped cards become a stat band of large numerals with hairline dividers (2-col under 560px) - Insights/health: card grids become compact fact rows with semantic dots, collapsed to 6 items by default with an expand toggle; budget rows embed inline progress bars - Controls: segmented toggles, underline tabs, lighter table chrome - Settings dialog: frosted-glass overlay, floating rounded panel with sticky header; turn banner uses a pulsing dot Validated with Playwright across light/dark themes and 900px/400px containers (23/23) plus full-page screenshot review; 52 tests green.
|
✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically. |
0.16.0 → 0.23.4 主要变化: - 界面 i18n 中英双语:跟随 ZCode 语言偏好(localePreference)/浏览器语言,可手动指定; 数字单位 K/M/B(中文 万/亿);「本轮」横幅英文转写 - 多厂商配额聚合(可选):DeepSeek/Kimi/OpenRouter/MiniMax,Key 仅存本地 0600、 仅发送到对应厂商官方域名只读查询,设置面板只回 configured 布尔 - 隐私加固:删除 GLM 配额的宿主凭据回退链(绝不读取 provider_config.json 的 apiKey 与 credentials.json 的 OAuth token);面板服务加 Host/Origin 校验(防 DNS rebinding 与跨站写);CLI 参数白名单;价格路径 sql_quote - 项目用量按 git 仓库根归并(子/孙目录会话并入真实项目);BYOK 显示 provider_config 中的自定义名(只取名映射) - 本地面板端口顺延 7741→7742-7749;昨日筛选/文本搜索/今日预算卡/自动刷新; 5h 计费窗口近似(ccusage blocks 口径);峰谷分时计价;自包含 HTML 报告导出 - Windows/Linux 兼容:node:sqlite 替身(readfile+CSV)、bash 探测、BOM 免疫、 原子写 EPERM 重试、MSYS stdin 传参 - 80 项测试全绿(CLI/HTTP API/MCP 协议/钩子/成本公式/分时价/替身一致性/老库兼容)
|
更新至 v0.23.4(release candidate,自上次推送的 0.16.0 以来的主要变化): 功能
安全与隐私加固
质量
|
|
✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically. |
- description/description_i18n 一句话价值主张(官方 validate 通过) - icon 用 GitHub raw 绝对 URL(官方 marketplace 全部为绝对 URL 惯例, 相对路径客户端解析不到导致安装后显示默认图标)
|
✅ 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. |
十个版本的累计更新,主线是上下文洞察与对齐社区标杆的 UI/交互: - 0.24.x 上下文洞察:会话下钻新增上下文构成环(对话/推理/工具/骨架/附件按本地字节近似)、Agent 团队行(parent_id 归属)、压缩事件 trigger 标注、超窗请求红点;语言持久化(usage-lang.json,侧栏/面板/生成页三端一致) - 0.25.0 上下文 Top 下钻:工具字节榜、文件字节榜(按需拉取) - 0.26.0 Fleet 并行时间轴:子代理泳道 Gantt,条可点击跳请求明细 - 0.27.0 UI 对标:当前上下文 hero 卡、三层图例、pill 徽标、主题变量回退(file:// 直开不再黑图) - 0.28.0 成本/预算/配额:预算 hero 卡、耗时构成环、配额 60% 黄档、Fleet 下钻 - 0.29.0 上下文浏览器:类别行展开逐条内容摘要(五类,各 Top 30) - 0.30.x 浏览器增强:近 1h 增量绿标、条目全文展开(工具调用渲染为参数 KV 表)、水位曲线 Level/Delta 切换 - 0.30.3 稳定性:全新环境冷启动(无库/0 字节库)直接出空数据页;ctxTop 空 sid 早退结构补全;版本号收口 工程质量:三轮十五遍复审(边界库矩阵/协议对抗/竞态/静态检查/三端语言 e2e/三路一致性),SQLite 全程只读、面板仅监听 127.0.0.1、无遥测、凭据零读取。
|
已将 usage-detail 更新到 0.30.3(0.23.5 → 0.30.3,十个版本累计)。 主线更新——上下文洞察(对齐社区标杆 dsh-context 的观测+下钻能力):
稳定性(三轮十五遍复审):
安全边界不变:SQLite 全程只读、本地面板仅监听 127.0.0.1、无遥测、绝不读取凭据文件。 |
|
✅ 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.23.4):ZCode 本地逐条用量分析。全部本地计算、零模型开销、数据库只读。
解决的用户问题:官方客户端只提供用量汇总,用户看不到每次请求的 token 构成、输出速率、缓存命中率,也没有预算告警与浪费分析;GLM Coding Plan 订阅用户尤其需要零 token 开销的用量可见性。
功能(v0.16.0 → v0.23.4 重点):
localePreference)或浏览器语言,可手动指定;数字单位 K/M/B(中文 万/亿)/usage/usage-ui/usage-this等命令 + 本地面板(127.0.0.1,端口被占自动顺延 7742-7749)+ JSON/CSV 导出ZCODE_BASH)、BOM 免疫、原子写兜底安全与隐私(相对 v0.16.0 的加固):
测试方式:
tests/(80 项,python3 运行):CLI 全子命令、成本公式数值断言(缓存命中不重复计费)、峰谷分时价、serve HTTP 全端点(含 Host/Origin 矩阵)、MCP 协议(tools/resources/订阅推送)、三个 hooks 行为、node:sqlite 替身与 CLI 双实现字节级一致、老 schema(无 turn_id)兼容、XSS 恶意数据实测scripts/validate.py通过(47 plugins validated)依赖、网络、权限与副作用(README 双语均已披露):
~/.zcode/cli/db/db.sqlite;仅写自身配置/状态文件(~/.zcode/usage-*.json)第三方材料:models.dev 价格数据(MIT,本地换算缓存);其余为原创代码,MIT License(插件目录内附 LICENSE)。
Self-check / 自查清单
external_plugins/usage-detail/category: utilities已填写ZCODE_PLUGIN_ROOT/homedir 动态解析)validate.py通过(47 plugins validated);git diff --check通过plugin.json的./commands./hooks声明一致,旧版误为双层已修正)