dsh-tokenlens 1.7.4 → 1.7.5
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/CHANGELOG.md +9 -0
- package/client.js +4 -9
- package/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
**版本记录约定**:同一发布日只保留一个章节,标题取当日**最后一个**已发布版本号;当日多次发布的改动合并到该章节,并在标题下注明当日实际发布过的版本号(npm 上仍可安装这些独立版本)。若当日已有发布,后续小改动不再单独增加版本号,而是并入下一篇日志。这样日志按天规整、不出现同日多个小版本。
|
|
6
6
|
|
|
7
|
+
## 1.7.5 — 2026-11-06
|
|
8
|
+
|
|
9
|
+
(当日已发布版本:v1.6.5 / v1.6.6 / v1.6.7 / v1.7.0 / v1.7.1 / v1.7.2 / v1.7.3 / v1.7.4 / v1.7.5)
|
|
10
|
+
|
|
11
|
+
- **fix(ui): Command Code 的 5 小时 / 本周 / 本月行不再显示消耗金额**——移除每行末尾的 `$0.27 / $14.00` 这类 `已用 / 上限` 美元数字。百分比本身已经表达了位置,而三处美元数字(窗口行、额度行、加购行)互相参照容易误读;卡片上只剩「加购」一处金额
|
|
12
|
+
- 每行保留:百分比、进度条、重置时间、`已消耗 Token · 预计可消耗 Token` 估算
|
|
13
|
+
- wire 数据不变(`windows[*].used` / `cap` / `unit` 仍上报),仅界面不再渲染;Agent 工具 `tokenlens_usage` 的读数不受影响
|
|
14
|
+
- 测试:370(断言三行都不再出现美元容量、`dsh-tokenlens-capacity-money` 数量为 0)
|
|
15
|
+
|
|
7
16
|
## 1.7.4 — 2026-11-06
|
|
8
17
|
|
|
9
18
|
(当日已发布版本:v1.6.5 / v1.6.6 / v1.6.7 / v1.7.0 / v1.7.1 / v1.7.2 / v1.7.3 / v1.7.4)
|
package/client.js
CHANGED
|
@@ -4135,12 +4135,10 @@ window.__ModuleLoader__.load({
|
|
|
4135
4135
|
},
|
|
4136
4136
|
resetText === '' ? tokensText : ` · ${tokensText}`,
|
|
4137
4137
|
)
|
|
4138
|
-
//
|
|
4139
|
-
//
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
? `${formatMoney(window.used, window.unit)} / ${formatMoney(window.cap, window.unit)}`
|
|
4143
|
-
: null
|
|
4138
|
+
// v1.7.5: the provider-native money line ($used / $cap) is NOT rendered.
|
|
4139
|
+
// Command Code's 5-hour / weekly / monthly rows already state the percentage
|
|
4140
|
+
// and the local-token estimate, and the dollar figures only invited
|
|
4141
|
+
// comparison with the credits card. The only money left on the card is 加购.
|
|
4144
4142
|
const upstreamStatus =
|
|
4145
4143
|
window !== null &&
|
|
4146
4144
|
typeof window.status === 'string' &&
|
|
@@ -4182,9 +4180,6 @@ window.__ModuleLoader__.load({
|
|
|
4182
4180
|
resetText === '' ? null : h('span', { className: 'dsh-tokenlens-reset' }, resetText),
|
|
4183
4181
|
resetDate === null ? null : h('span', { className: 'dsh-tokenlens-reset-date', title: resetDate }, resetDate),
|
|
4184
4182
|
resetText === '' ? null : tokensSpan,
|
|
4185
|
-
capacityMoney === null
|
|
4186
|
-
? null
|
|
4187
|
-
: h('span', { className: 'dsh-tokenlens-capacity-money' }, capacityMoney),
|
|
4188
4183
|
upstreamStatus,
|
|
4189
4184
|
),
|
|
4190
4185
|
)
|
package/index.js
CHANGED
|
@@ -84,7 +84,7 @@ export const inject = []
|
|
|
84
84
|
export const PLUGIN_NAME = 'dsh-tokenlens'
|
|
85
85
|
|
|
86
86
|
/** Plugin version; mirrors package.json (kept here so diagnostics need no fs read). */
|
|
87
|
-
export const PLUGIN_VERSION = '1.7.
|
|
87
|
+
export const PLUGIN_VERSION = '1.7.5'
|
|
88
88
|
|
|
89
89
|
/** Documented defaults; every field of the raw row config is optional. */
|
|
90
90
|
const DEFAULTS = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-tokenlens",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "dsh-TokenLens (词元透镜) — provider-aware plan capacity plus local token statistics (today/7d/30d/all-time, by harness/provider/model/workspace) for DSH.",
|
|
6
6
|
"license": "MIT",
|