@rayadesu/dsh-billing 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/LICENSE +1 -0
- package/README.i18n.yaml +2 -2
- package/README.md +5 -1
- package/README.zh.md +5 -1
- package/package.json +3 -3
package/AGENTS.md
CHANGED
|
@@ -104,7 +104,7 @@ cordis.patch.yml DSH profile bundle 补丁层:挂载 llm-billing + ui-
|
|
|
104
104
|
- **密钥不进仓库**:`DEEPSEEK_API_KEY` 等一律由用户环境或凭据 seam 提供,仓库不含真实值。
|
|
105
105
|
- **README 双语**:每个 README 遵循 DSH 结构 `README.md`(EN) + `README.zh.md`(ZH) +
|
|
106
106
|
`README.i18n.yaml`(记录两文件 git blob hash,改动后需更新)。
|
|
107
|
-
- **版本对齐**:根 bundle 与两个包统一版本号(当前 1.
|
|
107
|
+
- **版本对齐**:根 bundle 与两个包统一版本号(当前 1.1.0),`pnpm-lock.yaml` 随依赖变更更新。
|
|
108
108
|
- **提交与发布流程**:见 `.agents/skills/dsh-release/SKILL.md` —— 阶段 A(改代码 → 按档位校验 →
|
|
109
109
|
`node scripts/local-install.mjs all --check <marker>` 装进 profile → 交用户验证)**不提交**,
|
|
110
110
|
改动留在工作区;用户说「发布」进入阶段 B 才 bump 版本、**按类型分别提交**、推送、发 npm 与
|
package/LICENSE
CHANGED
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# last confirmed-consistent state. Both languages carry equal authority; after
|
|
3
3
|
# editing either side, bring the other along and re-record both hashes with:
|
|
4
4
|
# git hash-object README.md README.zh.md
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: d767ff6ffe336c5d333ce1181dc81652d8972278
|
|
6
|
+
README.zh.md: 19d877ba1697eca29a5fc265f3a41e4b74ba694a
|
package/README.md
CHANGED
|
@@ -314,6 +314,10 @@ Both packages ship sane defaults; everything below is optional.
|
|
|
314
314
|
- **Balance is up to 15s stale between polls** — the host reuses one snapshot for up to 15 seconds and each request aborts after 5 seconds; spending from another client moves the shown value at the next poll (5 minutes while the page is visible, none while it is hidden), at a manual refresh, or at a browser reload.
|
|
315
315
|
- **Estimate, not a promise** — the session spend prices tokens at official rates; the provider's actual billing prevails.
|
|
316
316
|
|
|
317
|
+
## Acknowledgements
|
|
318
|
+
|
|
319
|
+
This repository is a maintained fork of [WilliamLIiii/DeepSeek-Harness-billing-plugin](https://github.com/WilliamLIiii/DeepSeek-Harness-billing-plugin), originally created by WilliamLIiii. The original work is used under the MIT License; this fork has since been renamed, restructured, and extended (session/today spend, delegated-subtotal roll-up, session ranking). `packages/typert-protocol` additionally vendors type declarations from [`@deepseek-ai/dsh-typert-protocol`](https://www.npmjs.com/package/@deepseek-ai/dsh-typert-protocol) (Copyright (c) 2026 DeepSeek, MIT).
|
|
320
|
+
|
|
317
321
|
## License
|
|
318
322
|
|
|
319
|
-
[MIT](LICENSE)
|
|
323
|
+
[MIT](LICENSE) — Copyright (c) 2026 WilliamLIiii, Copyright (c) 2026 rayadesu.
|
package/README.zh.md
CHANGED
|
@@ -279,6 +279,10 @@ npm publish # @rayadesu/dsh-billing bundle(仓库根)
|
|
|
279
279
|
- **额度在两次轮询之间最多旧 15 秒** —— 主机端最多复用 15 秒内的同一份快照,单次请求 5 秒超时;账户在其他客户端产生消耗时,界面值会在下一次轮询(页面可见时 5 分钟一次,隐藏时没有轮询)、手动刷新或刷新浏览器时变化。
|
|
280
280
|
- **是估算,不是承诺** —— 会话花费按官方单价对 token 计价;实际计费以服务商为准。
|
|
281
281
|
|
|
282
|
+
## 致谢
|
|
283
|
+
|
|
284
|
+
本仓库是 [WilliamLIiii/DeepSeek-Harness-billing-plugin](https://github.com/WilliamLIiii/DeepSeek-Harness-billing-plugin) 的持续维护 fork,原作者为 WilliamLIiii;原作以 MIT 许可证使用,本 fork 在此之上更名、重构并扩展(会话/今日花费、子代理小计汇总、会话排行)。`packages/typert-protocol` 另内嵌了 [`@deepseek-ai/dsh-typert-protocol`](https://www.npmjs.com/package/@deepseek-ai/dsh-typert-protocol) 的类型声明(Copyright (c) 2026 DeepSeek,MIT)。
|
|
285
|
+
|
|
282
286
|
## 许可证
|
|
283
287
|
|
|
284
|
-
[MIT](LICENSE)
|
|
288
|
+
[MIT](LICENSE) —— Copyright (c) 2026 WilliamLIiii、Copyright (c) 2026 rayadesu。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rayadesu/dsh-billing",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "DeepSeek Harness billing plugin: account balance and this session's billed spend with a session-header badge.",
|
|
5
5
|
"icon": "./icon.svg",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@rayadesu/dsh-client-ui-billing": "^1.
|
|
52
|
-
"@rayadesu/dsh-llm-billing": "^1.
|
|
51
|
+
"@rayadesu/dsh-client-ui-billing": "^1.1.0",
|
|
52
|
+
"@rayadesu/dsh-llm-billing": "^1.1.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@deepseek-ai/cordis": "^4.0.4",
|