@rayadesu/dsh-billing 0.2.2 → 0.2.3

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 CHANGED
@@ -47,7 +47,7 @@ cordis.patch.yml DSH profile bundle 补丁层:挂载 llm-billing + ui-
47
47
  - **密钥不进仓库**:`DEEPSEEK_API_KEY` 等一律由用户环境或凭据 seam 提供,仓库不含真实值。
48
48
  - **README 双语**:每个 README 遵循 DSH 结构 `README.md`(EN) + `README.zh.md`(ZH) +
49
49
  `README.i18n.yaml`(记录两文件 git blob hash,改动后需更新)。
50
- - **版本对齐**:根 bundle 与两个包统一版本号(当前 0.2.2),`pnpm-lock.yaml` 随依赖变更更新。
50
+ - **版本对齐**:根 bundle 与两个包统一版本号(当前 0.2.3),`pnpm-lock.yaml` 随依赖变更更新。
51
51
  - **文本规范**:LF 换行、文件末尾一个换行(`.editorconfig`/`.gitattributes` 已声明)。
52
52
 
53
53
  ## 常用命令
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: f3072dc71e845a685a5ffbc7148d7fa35c9d7ead
6
- README.zh.md: 99be34e3d1a1b328956b37d43aff472f9f62470b
5
+ README.md: fd68d55fd7fa097b79dc8a5d02f2e19a6c76ac4a
6
+ README.zh.md: 02d86da0f335c9dbd3b6d469e3a908f279e9ae32
package/README.md CHANGED
@@ -14,7 +14,7 @@ A [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) plugin tha
14
14
 
15
15
  ## Data update mechanics
16
16
 
17
- - **Session spend follows the conversation** — on every new message in the current session, the badge recomputes only **this session's spend** and **today's spend** (purely local pricing, no network request), so the spend lines stay live during an ongoing conversation.
17
+ - **Session spend follows the conversation** — on every new message in the current session, the badge recomputes only **this session's spend** and **today's spend** (purely local pricing, no network request), so the spend lines stay live during an ongoing conversation. The host prices incrementally: an unchanged session log is served from the host-side cache, and only the appended tail of a growing log is re-priced.
18
18
  - **Balance stays manual** — the balance is account-level data, queried only on mount, session switch, the manual refresh action, or a browser reload; **there is no polling** and it does not track account changes by itself.
19
19
  - **Old values survive refreshes** — a failed refresh keeps the last good value instead of blanking it.
20
20
 
package/README.zh.md CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  ## 数据更新机制
16
16
 
17
- - **会话花费自动跟随** —— 当前会话每到达一条新消息,徽标就只重算**本会话的花费**与**今日共花费**(纯本地计价,不发网络请求),连续对话时花费会实时跟着走。
17
+ - **会话花费自动跟随** —— 当前会话每到达一条新消息,徽标就只重算**本会话的花费**与**今日共花费**(纯本地计价,不发网络请求),连续对话时花费会实时跟着走。主机端按增量计价:会话日志未变化时直接命中主机端缓存,日志增长时只重算新增的尾部。
18
18
  - **额度保持手动** —— 余额是账户级数据,只在挂载、切换会话、手动点刷新、或刷新浏览器时重新查询 `/user/balance`;**没有轮询**,不会自动跟随账户变化。
19
19
  - **刷新期间旧值保留** —— 刷新失败保留上一次有效值,不会清空。
20
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rayadesu/dsh-billing",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "DeepSeek Harness billing plugin: account balance and this session's billed spend with a session-header badge.",
5
5
  "license": "MIT",
6
6
  "packageManager": "pnpm@11.7.0",
@@ -24,6 +24,7 @@
24
24
  "cordis.patch.yml",
25
25
  "README.md",
26
26
  "README.zh.md",
27
+ "README.i18n.yaml",
27
28
  "LICENSE",
28
29
  "AGENTS.md"
29
30
  ],
@@ -31,8 +32,8 @@
31
32
  "access": "public"
32
33
  },
33
34
  "peerDependencies": {
34
- "@rayadesu/dsh-llm-billing": "^0.2.2",
35
- "@rayadesu/dsh-client-ui-billing": "^0.2.2"
35
+ "@rayadesu/dsh-llm-billing": "^0.2.3",
36
+ "@rayadesu/dsh-client-ui-billing": "^0.2.3"
36
37
  },
37
38
  "devDependencies": {
38
39
  "@deepseek-ai/cordis": "^4.0.1",