Releases: feibi-mochi/deepseek-harness-control-center
Release list
v0.1.4 · DeepSeek Harness Control Center
DeepSeek Harness Control Center 0.1.4
中文
0.1.4 将项目从单纯的钱包信息展示,整理成更完整的 DeepSeek Harness 监控、提醒、充值与会话控制中心。产品展示名已更新为 DeepSeek Harness Control Center;为避免破坏现有安装、升级和本地数据,npm 包名、插件加载 ID、接口路径与本地存储兼容标识仍保持 deepseek-harness-wallet。
更自然的布局与操作
- 钱包标签现在可以留在输入框、自由移动,或吸附到输入框底部、页面左右边缘和主内容分隔线。
- 拖动时会显示吸附预览;不同区域之间可以一次连续拖到目标位置,不再被中间吸附点“卡住”。
- 左右侧吸附会使用紧凑的纵向布局,数据放在对应标签下方;横向吸附保持紧凑横排。
- 侧边框进一步收窄,但没有缩小基础字体。
- 当输入框太窄而放不下完整标签时,会保留可点击的 44px 余额/token 值,避免压到模型选择器或出现横向溢出。
- 控制面板新增 75%–125% 比例滑块,并可分别控制官方数据和第三方 token 显示;系统不会允许两者同时隐藏成空标签。
- 详情面板可以拖动并记住位置,窗口尺寸变化后会自动回到可视范围内。
- “最小化”会直接变成可自由移动的圆点,不再保留重复的第二种浮动状态。
更可靠的对话完成提醒
- 提醒可选择常驻,或在指定秒数后自动关闭。
- 多个对话同时完成时会按队列显示,并对重复事件去重。
- 多标签页之间通过锁或本地租约协调,避免同一完成事件弹出多次。
- 点击系统提醒可回到相应对话;系统通知不可用、被拒绝或桌面桥接失败时,会自动退回页面内提醒。
- 兼容同步、异步、无返回值和带原生点击/关闭回调的 Electron/Tauri 类通知桥接。
官方、第三方数据与充值
- 继续显示 DeepSeek 官方余额、本会话按实际发生时价格累计的预估花费、官方 token 与第三方 token 合计。
- 计费数据按会话和供应商隔离,第三方 token 不会计入 DeepSeek 花费,后续峰谷价切换也不会改写历史估算。
- 余额提醒只比较 CNY 余额,不混合不同币种。
- 充值入口固定指向 DeepSeek 官方充值域名,首次使用仍会先显示目标域名供确认。
- “清除本会话钱包数据”只清除当前会话在本插件中的余额衍生花费与 token 统计,不会删除对话。
永久删除会话:明确的宿主能力边界
- 插件新增永久删除偏好与能力检测,但只有 DSH 宿主真正声明并实现删除链路时才会启用;不支持的宿主会显示不可用状态,不会提供失效按钮。
- npm 包和仓库新增
integrations/dsh-session-delete/Agent 宿主适配资料:中英文说明、完整 Agent 提示词、兼容清单、只读预检、上游与许可证声明,以及固定基线参考补丁。 - 参考补丁严格对标 DSH 提交
47f943859bef60e4160492346772ded9b24f765a(源码根版本0.1.0-rc.5),覆盖session.delete、客户端 runtime、JSONL/SQLite 删除、运行状态/所有权/子会话检查、空闲 runtime 释放、Workspace 与归档引用清理、共享附件保留、路径安全、侧边栏入口、独立确认框和错误保留。 - 其他 DSH 版本必须由 Agent 阅读当前源码后按语义迁移,禁止强套补丁。封闭源码或无法重新构建的桌面端不能据此声称支持。
- 该能力不是 DeepSeek 官方功能,也不是 npm 插件单独拥有的删除引擎。
跨平台与发布质量
- GitHub Actions 现在覆盖 Windows、Ubuntu/Linux、macOS × Node 22.19/24。
- 三个平台都会在固定 DSH 基线上检查参考补丁;Ubuntu 还会运行 DSH 类型检查与永久删除链路的定向测试。
- 新增 npm OIDC Trusted Publishing 工作流:正式 GitHub Release 自动发布,手动重跑会核对已有正式标签与包版本,不使用长期 npm token,也不会把预发布版本发布到
latest。 - 自动化插件测试扩展至 44 项,覆盖布局、吸附、缩放、显隐、提醒队列、跨标签页协调、桌面退回、能力检测、HTTP 边界、文档和包内容。
- npm 包实行精确文件清单校验,共 14 个发布文件,并包含完整 Agent 适配资料。
验证范围
- 实际环境验证:Windows + Edge + 当前 DSH Web。
- 自动化兼容验证:Windows、Ubuntu/Linux、macOS,Node 22.19 与 24。
- Chrome、Firefox、Safari,以及 Electron/Tauri 类桌面端按标准 Web 能力和宿主适配契约设计,但本次没有宣称逐一完成真实设备验证。
- 人工检查未删除真实会话,也未发送产生费用的模型请求。
完整安装、升级、兼容性和信任边界说明请查看 README。npm 安装与升级仍使用:
dsh plugin --profile web add deepseek-harness-wallet
dsh plugin --profile web update deepseek-harness-walletEnglish
Version 0.1.4 develops the project from a wallet summary into a broader DeepSeek Harness monitoring, alerts, recharge, and session control center. The public product name is now DeepSeek Harness Control Center. To preserve existing installations, upgrades, and local data, the npm package name, plugin loader ID, API path, and local-storage compatibility identity remain deepseek-harness-wallet.
More natural placement and interaction
- The wallet chip can stay in the composer, move freely, or snap to the composer bottom, viewport sides, and the main-content divider.
- Dragging previews the destination and can cross regions in one continuous gesture without being trapped by an intermediate snap.
- Side docks use a compact vertical layout with each value below its matching label; horizontal targets keep a compact row.
- Side frames are narrower without reducing the base font size.
- When a narrow composer cannot fit the full home chip, a clickable 44px balance/token value remains visible instead of overlapping the model selector or causing horizontal overflow.
- The control panel now includes a 75%–125% live scale slider and independent official/third-party visibility controls, while preventing an empty all-hidden state.
- The details panel is draggable, remembers its position, and is clamped back into the viewport after window-size changes.
- “Minimize” now goes directly to a freely movable dot rather than retaining a redundant second floating mode.
More reliable conversation-completion reminders
- Reminders can remain until manually dismissed or close after a selected delay.
- Simultaneous completions are queued and duplicate events are suppressed.
- Tabs coordinate through Web Locks or a renewable local-storage lease so one completion does not notify repeatedly.
- Clicking a system notification opens the relevant conversation. If system notifications are unavailable, denied, or rejected by a desktop bridge, the event falls back to an in-page reminder.
- Desktop compatibility covers synchronous, asynchronous, fire-and-forget, and native callback notification bridges for Electron/Tauri-style hosts.
Official data, third-party usage, and recharge
- The chip continues to show the live DeepSeek balance, current-session official spend accumulated at the price active for each usage event, official tokens, and third-party token totals.
- Accounting remains isolated by conversation and provider: third-party tokens never become DeepSeek spend, and later pricing-window changes do not rewrite historical estimates.
- Low-balance checks compare only a CNY balance and never combine currencies.
- Recharge navigation remains fixed to DeepSeek's official top-up domain, with the destination shown before the first visit.
- “Clear current-session wallet data” removes only this plugin's spend/token counters for the open conversation; it does not delete the conversation.
Permanent session deletion with an explicit host boundary
- The plugin adds a permanent-deletion preference and capability discovery, but enables the feature only when the surrounding DSH host advertises and implements a real deletion path. Unsupported hosts expose a disabled state rather than a dead action.
- The repository and npm package now include an Agent host-integration kit at
integrations/dsh-session-delete/: English and Chinese guides, a complete Agent prompt, compatibility manifest, read-only preflight, upstream/license notice, and a fixed-baseline reference patch. - The patch targets DSH commit
47f943859bef60e4160492346772ded9b24f765a(root version0.1.0-rc.5) and coverssession.delete, the client runtime, JSONL/SQLite deletion, running/ownership/subagent safety, idle-runtime release, Workspace/archive cleanup, shared-attachment retention, path safety, sidebar entry, an independent confirmation dialog, and retryable error display. - Other DSH versions must be read and adapted semantically by an Agent; the patch must not be forced onto a mismatched tree. Closed-source or non-rebuildable desktop applications cannot claim support through this kit.
- This is neither an official DeepSeek feature nor a deletion engine owned by the npm plugin alone.
Cross-platform and release quality
- GitHub Actions now covers Windows, Ubuntu/Linux, and macOS with Node 22.19 and 24.
- All three systems check the reference patch against the fixed DSH baseline; Ubuntu additionally runs the DSH typecheck and focused deletion-chain tests.
- A new npm OIDC Trusted Publishing workflow publishes formal GitHub Releases, validates manual reruns against an existing stable tag, uses no long-lived npm token, and never promotes prereleases to
latest. - The plugin suite now contains 44 automated tests covering layout, snapping, scaling, visibility, reminder queueing, cross-tab coordination, desktop fallbacks, capability gating, HTTP boundaries, documentation, and package contents.
- The npm archive is checked against an exact 14-file allowlist and includes the complete Agent integration kit.
Verification scope
- Real environment: Windows + Edge + the current DSH Web build.
- Automated compatibility: Windows, Ubuntu/Linux, and macOS on Node 22.19 and 24.
- Chrome, Firefox, Safari, and Electron/Tauri-style desktop hosts are designed around standard Web capabilities and the documented host adapter, but this release does not claim physical-device testing for every combination.
- Human-flow checks did not delete a real session or send a paid model request.
See the README for complete installation, upgrade, compatibility, and trust-boundary details. npm installation and upgrade continue to use:
dsh plugin --profile web add deepseek-harness-wallet
dsh plugin --profile web update deepseek-harness-walletv0.1.3 - stable pricing, viewport-safe UI, recharge fix
0.1.3 - 2026-08-16
🐛 重要修复
- 充值首击恢复正常:合入 QZYWQ 的 PR #2;无论明细面板是否展开,首次点击“充值”都会显示官方域名确认框,不再像没有响应。
- 历史花费不再跳变:每个 usage 事件按到达时的价格即时累计,跨峰谷时段或价格政策边界后,已有会话花费保持不变;旧
wallet.json会一次性迁移到 schema v2。 - 明细面板不再跑出屏幕:改用视口感知定位,空间不足时自动向上展开,并限制最大高度。
- 多币种显示正确:CNY / USD / EUR 等使用各自币种格式;人民币阈值不会再与非人民币余额比较。
- 浮窗拖动更可靠:统一使用 Pointer Events,支持鼠标和触控,修复轻点未拖动时的空值崩溃,并按圆点/窗口真实尺寸限位。
♿ 交互与可靠性
- 钱包标签改为原生按钮结构,确认框增加 dialog 语义、焦点管理、Tab 循环和 Esc 关闭。
- 交互入口迁移到 Harness 官方约定的
conversation.input.left槽位。 - 余额刷新请求去重;插件关闭时立即落盘尚未写入的存储;API 响应禁止缓存并拒绝超限请求体。
- CI 现在覆盖 Windows / Linux × Node 22.19 / 24,并执行 18 项回归测试和发布包校验。
✅ 验证
- 本地 Node 22.19 与 Node 24:18/18 测试通过。
- GitHub Actions:8/8 检查通过,主分支构建通过。
- Edge + 隔离的真实 DeepSeek Harness rc.6:面板翻转、充值确认、Esc/焦点恢复、浮窗拖动与边界限位均通过,浏览器无插件错误。
升级
dsh plugin --profile web update deepseek-harness-wallet或从 GitHub 直接安装:
dsh plugin --profile web add github:feibi-mochi/deepseek-harness-wallet#v0.1.3重启 dsh web,然后强制刷新页面。旧会话的花费会在首次启动时完成一次迁移。
v0.1.2 - loader fix, peak/off-peak pricing, CNY balance
0.1.2 - 2026-08-15
🐛 重要修复
- 修复客户端加载失败:0.1.1 的客户端 bundle 仍注册旧模块名 \dsh-wallet\,改名后与加载器期望的 \deepseek-harness-wallet\ 不一致,导致整个插件加载失败(\loaded without registering\,见 #1)。已修复并新增回归测试。
- 多币种余额:余额统计优先取 CNY 记录,不再把 CNY/USD 等混币种相加,避免国际账户余额算错和低余额误报。
- 价格文档与实现对齐:v4 定价生效日期修正为 2026-04-24(与 V4 预览版发布一致)。
✨ 新增
- 峰谷定价:实现官方 2026-08-17 00:00(北京时间)生效的峰谷价——高峰 9:00–12:00 / 14:00–18:00,空闲时段价格为高峰一半;v4-flash/v4-pro 按官方价目表计价,chat/reasoner 维持固定价。
- 单元测试:
pm test\(node:test,零依赖),覆盖峰谷边界、成本计算、多币种、阈值归一化与 loader id 校验。 - npm 发布:本版起上架 npm registry,安装更稳。
🔧 其他
- \wallet.json\ 原子写入(临时文件 + rename),防崩溃损坏。
- 阈值加载时强制归一化,手改存储文件也不会打崩 UI。
- 启动重试定时器随插件卸载清理。
- 浮动窗口拖动按元素实际尺寸收边,不再被拖出屏幕。
升级方法
\\sh
dsh plugin --profile web remove deepseek-harness-wallet
dsh plugin --profile web add deepseek-harness-wallet
\
(npm 为主渠道;也可 \dsh plugin --profile web add github:feibi-mochi/deepseek-harness-wallet#v0.1.2\ 从 GitHub 直装。)
重启 \dsh web\ 并强制刷新页面。若之前装过旧包名 \dsh-wallet\,请一并移除。
v0.1.1
What's new in 0.1.1
- Floating window mode — detach the wallet panel into a draggable floating window with a persistent position, or minimize it to a dot that turns red when the balance is below the threshold.
- Updated READMEs and screenshots (floating window / minimized dot).
- Project renamed to
deepseek-harness-wallet.
Install
dsh plugin --profile web add github:feibi-mochi/deepseek-harness-walletv0.1.0 — Initial Release / 首次发布
DeepSeek Harness Balance Monitor & Recharge Plugin
The first public release adds:
- Official DeepSeek balance monitoring with automatic and manual refresh
- Per-session spend estimates for DeepSeek V4 Flash and Pro
- Separate official and third-party token counters
- Configurable low-balance alerts and desktop notifications
- A guarded shortcut to the official DeepSeek recharge page
- English and Simplified Chinese documentation
余额监控和充值插件
首个公开版本支持官方余额监控、单会话花费估算、官方与第三方 token 分桶、低余额提醒、桌面通知和 DeepSeek 官方充值页跳转。
Install / 安装
dsh plugin --profile web add github:feibi-mochi/deepseek-harness-wallet
dsh --profile web