Repository navigation
Releases
Releases · Minokun/dsh-quota
v0.14.5
- feat(panel): active-platform-first order, collapsible session card, honest spend line
- chore(client): drop the now-unused dismissedUsage state field
- fix(panel): usage toasts remind once per window, not repeatedly
- feat(panel): per-item usage trend sparklines
- feat(panel): this-session token usage card with cost estimate
- feat(platforms): Claude Code and Codex subscription quota adapters
- feat(panel): usage alerts surface as toasts from the floater
- feat(panel): mark the platform cards and items an alert belongs to
- fix(panel): explain what the red badge counts
- build(types): resolve dsh types from the installed runtime, not stale artifacts
Full Changelog: v0.14.4...v0.14.5
v0.14.4
- fix(pill): follow the visible session's model; read native LLM providers
- fix(refresh): retry transient failures and self-heal with backoff
- fix: adapt to the new dsh settings service; gate platforms on model config
Full Changelog: v0.14.3...v0.14.4
v0.14.3
- feat(panel): close the panel on outside pointerdown
Full Changelog: v0.14.2...v0.14.3
v0.14.2 — SupaWriter 额度取数 & quota_refresh 修复
修复
1. SupaWriter 月度额度取数错误(显示 73 / 300,实际 4 / 999999)
面板此前显示 73 / 300,与 SupaWriter 工作台对不上。原因是读了 sw_status 里
dashboard.quota_used / quota_total 这对遗留字段——其中的 73 是累计文章数,
并不是本月用量。
- 现在优先读取 MCP 返回的权威
quota(来自站点/api/v1/subscription/quota的
plan_used/plan_quota),与工作台口径一致; - 旧版 MCP 没有返回
quota时自动回退到dashboard,向后兼容,不会因为升级顺序而空白; - 未登录态仍显示「登录态 | 未登录」。
2. quota_refresh 工具每次都报 value is not lossless JSON
调用该工具始终失败:
tool "quota_refresh" returned invalid output: value is not lossless JSON
原因是返回值里带有 message: undefined 这类值为 undefined 的自有属性(上游 API
没有返回的可选字段),而 harness 的严格 lossless-JSON 校验会因此否掉整个返回值。
- 新增
jsonSafe():递归省略undefined属性,丢弃NaN/±Infinity/-0,
数组中被丢弃的元素不会留下空洞; - 不臆造数据:缺失的字段保持缺失,而不是补成
null。
测试
| 文件 | 覆盖 |
|---|---|
tests/mcp.test.ts |
SupaWriter 优先取 quota、缺省时回退 dashboard、未登录态 |
tests/json-safe.test.ts |
jsonSafe 的行为,并按 harness 的规则集反向校验输出 |
pnpm test 38 项全部通过;pnpm typecheck 与 pnpm build(含 client-id 一致性门禁)通过。
升级
dsh plugin --profile web add dsh-quota@0.14.2Host 端插件代码在 DSH 内不做热重载,升级后需要重启
dsh web才会加载新版本。
其它
- 本版本由 GitHub Actions 经 npm Trusted Publishing(OIDC)发布,自带 SLSA provenance。
- 第 1 项要显示成订阅口径,需要 MCP 服务端
supawriter-mcp同步返回quota字段;
未同步时走dashboard回退路径,功能正常,只是数字沿用旧口径。
Full Changelog: v0.14.1...v0.14.2
v0.14.1
- fix: follow the credentials event rename in dsh 0.1.5
- build: vendor dsh-client-store 0.1.2-alpha.1 for local typecheck
- feat(platforms): derive MCP platforms from the DSH composition, not tool names
- feat: per-card connectivity probe and custom-endpoint hardening
- feat(providers): OpenAI Platform and Anthropic Claude cost adapters
- feat(i18n): zh/en panel copy following the DSH locale service
- feat: burn-rate/ETA insights, alert badge, and HUD ring floater
- docs: move the maintainer release guide out of the README
Full Changelog: v0.9.0...v0.14.1
v0.9.0
- docs: add QQ group QR code to the README
- fix(newapi): polish PR #2 review nits
- Merge pull request #2 from NightYuYyy/codex/newapi-account-quota
- feat(client): draggable quota pill with persisted position
- fix(direct): label z.ai token windows by unit enum (fixes #1)
- feat(newapi): add account quota support
- ci: build release notes from commit subjects (no PRs in this repo)
- ci: create a GitHub Release with generated notes on tag publish
Full Changelog: v0.8.0...v0.9.0
v0.8.0
适配 dsh 0.1.2-alpha.1 ⚠️ 平台要求变更
- fix(client): 浏览器端 bundle 移植到 dsh 0.1.2-alpha.1 的 platform seeds ——
createSnapshotStore改用@deepseek-ai/dsh-client-store,ClientContext改为 cordis 原生Context;修复旧 require 导致的页面 "Failed to load plugins" - chore: 新增 GitHub issue 模板(bug 报告 / 功能请求)
版本要求:0.8.0+ 需要 dsh ≥ 0.1.2-alpha.1;旧版 dsh(0.1.0-rc 系列)请锁定
dsh-quota@0.7.x
Full Changelog: v0.7.8...v0.8.0
v0.7.8
修复
- fix(direct): Kimi 额度刚重置时 API 不返回
used字段,面板显示「? / 100」——现在从limit − remaining推导,重置后立即正常显示
Full Changelog: v0.7.7...v0.7.8
v0.7.7
修复
- fix(client): 悬浮球现在会跟随会话模型切换 —— 之前启动时一次性读取
modelDirectories服务存在竞态(两个 immediately 加载的插件顺序不定),读到空就永久退回默认模型。改为ctx.inject延迟绑定 + 迟到绑定重放订阅 + 目录未加载时主动拉取
Full Changelog: v0.7.6...v0.7.7