Skip to content

Releases: c-ling/dsh-plugin-wallet

v1.3.0

Choose a tag to compare

@c-ling c-ling released this 18 Aug 16:39

v1.3.0

更新内容(中文)

  • 新增:Settings → 钱包设置 独立设置页,可配置低余额阈值、余额刷新周期、请求超时与余额接口地址。
  • 新增:接入 Harness 1.0.7 settings / settingsScope 配置持久化;无 settings 服务时自动降级到 $DSH_HOME/storages/dsh-plugin-wallet/config.json
  • 修复:侧边栏“钱包”项高度调整为 42px,并收窄与“设置”按钮的间距。
  • 优化:设置页 UI 参考 Goldboard / Vision Bridge 风格,保存/恢复默认按钮与状态标签同步优化。
  • 修复:settingsScope 方法绑定问题,避免设置页渲染时出现 data-slot-error 空白内容。

Changes (English)

  • Added: A dedicated Settings → Wallet settings page for low-balance threshold, refresh interval, request timeout, and balance endpoint.
  • Added: Harness 1.0.7 settings / settingsScope persistence with automatic fallback to $DSH_HOME/storages/dsh-plugin-wallet/config.json when no settings service is mounted.
  • Fixed: Sidebar wallet item height changed to 42px and spacing to the Settings button tightened.
  • Improved: Settings page UI aligned with Goldboard / Vision Bridge styles, including save/reset buttons and status tags.
  • Fixed: Bound settingsScope methods to prevent data-slot-error blank content in the settings section.

v1.2.0

Choose a tag to compare

@c-ling c-ling released this 17 Aug 11:14

v1.2.0

更新内容(中文)

  • 新增:会话成本排行中,在会话名称下方展示会话 ID,便于快速定位会话。
  • 新增:点击会话名称可直接跳转到对应会话,并自动关闭钱包弹窗。
  • 优化:会话列和模型列支持自动换行,完整展示名称 / ID / 模型信息。
  • 优化:成本排行表格每一行数据垂直居中展示。

Changes (English)

  • Added: session ID is now shown below the session name in the session cost ranking.
  • Added: clicking a session name opens that session directly and closes the wallet modal.
  • Improved: session and model columns now wrap instead of truncating, showing full names / IDs / models.
  • Improved: cost ranking table rows are now vertically centered.

v1.1.1

Choose a tag to compare

@c-ling c-ling released this 17 Aug 04:03

v1.1.1

更新内容(中文)

  • 修复:会话 stats 行在没有可展示分组时提前 return,可能导致 React Hook 顺序不稳定;现在所有 Hook 执行完后再返回空。
  • 变更:更新 README 安装/更新命令中的版本号到 v1.1.1。
  • 测试:新增客户端回归测试,确保空分组时 early return 位于所有 Hook 之后。

Changes (English)

  • Fixed: the session stats line returned early before all React hooks when there were no groups, which could make React hook order unstable; the empty-state return now happens after all hooks.
  • Changed: updated README install/update command pins to v1.1.1.
  • Tests: added a client regression test ensuring the empty-group early return comes after all hooks.

v1.1.0

Choose a tag to compare

@c-ling c-ling released this 16 Aug 16:43

v1.1.0

更新内容(中文)

  • 新增:DeepSeek 余额区域增加「充值」按钮,点击跳转 DeepSeek 开放平台充值页。
  • 新增:成本估算区域增加输入 token 总数、输出 token 总数、平均缓存命中率三个独立卡片,并与成本估算同一行展示。
  • 新增:输入/输出 token 卡片显示平均 token 数;缓存命中率卡片显示最低值和最高值。
  • 优化:统一四个统计卡片的样式与文本对齐。
  • 优化:会话成本排行表格改为独立内部滚动,弹窗不再整体滚动,表头吸顶且滚动条贴近右侧。

Changes (English)

  • Added: a “Recharge” button in the DeepSeek balance card that opens the DeepSeek platform top-up page.
  • Added: separate metric cards for total input tokens, total output tokens, and average cache hit rate, placed on the same row as the cost estimate.
  • Added: average token counts on input/output cards and min/max cache hit rates on the cache card.
  • Improved: unified styling and text alignment across the four summary cards.
  • Improved: session cost ranking now scrolls inside its own table area; the modal no longer scrolls as a whole, the header stays sticky, and the scrollbar sits closer to the right edge.

v1.0.0

Choose a tag to compare

@c-ling c-ling released this 16 Aug 15:41

v1.0.0

更新内容(中文)

  • 新增:侧边栏钱包按钮(位于设置按钮上方,宽度/字号与设置按钮一致;展开态显示「钱包 + 余额」,收起态圆形图标 + 低余额红点,hover 弹出磨砂浮窗展示余额)。
  • 新增:居中钱包弹窗(带遮罩,样式对齐设置弹窗),展示 DeepSeek 官方 API 余额与「更新于」时间(多币种)、成本估算(? 悬停查看口径)与全部会话成本排行(会话、模型、输入/输出 token、缓存命中、金额)。
  • 新增:会话 stats 行开头内嵌金额(金额 ≈ ¥3.87 | 1 轮 · 68 步 | …),不再单独占用底部一行。
  • 新增:内置 v4 价格表(deepseek-v4-flash / deepseek-v4-pro,旧价、空闲、高峰三档),按 token 分桶计费估算;未知模型显式标注「含无价格模型」且不计入金额。
  • 新增:余额由宿主每 5 分钟拉取,API Key 永不进入浏览器 bundle;路由输出脱敏余额。
  • 中英文 UI 跟随「设置 → 通用 → 语言」;深色模式仅使用 DSW 主题变量。
  • 仅内存缓存,无持久化数据,卸载后界面完全还原。

Changes (English)

  • Added: sidebar wallet button above the settings row (matches its width/font; expanded shows "Wallet + balance", collapsed shows a round icon with a low-balance red dot and a frosted hover popup with the balance).
  • Added: centered wallet modal with mask (styled like the settings modal) showing the official DeepSeek API balance with "Updated" time (multi-currency), a cost estimate with a ? tooltip explaining the basis, and an all-session cost ranking (session, model, input/output tokens, cache hit, amount).
  • Added: session amount prepended to the built-in stats line (Amount ≈ ¥3.87 | 1 turn · 68 steps | …) instead of a separate bottom row.
  • Added: built-in v4 price table (deepseek-v4-flash / deepseek-v4-pro; legacy, off-peak and peak tiers) with token-bucket cost estimation; unknown models are explicitly flagged as "unpriced" and excluded from the amount.
  • Added: balance is fetched host-side every 5 minutes; the API key never enters the browser bundle and route output is redacted.
  • Bilingual UI follows Settings → General → Language; dark mode uses only DSW theme tokens.
  • In-memory state only; uninstalling fully restores the UI.