dsh-token-dash 2.0.0 → 2.0.1

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/README.en.md CHANGED
@@ -112,6 +112,7 @@ Update: run `update` with the same name, or use the `⤓` button on the right of
112
112
  ## Compatibility & limitations
113
113
 
114
114
  - DSH `0.2.1+`; verified on `0.2.2-rc.1`. DSH 0.2.2 is a pre-release and itself requires Node 24.9.
115
+ - The UI currently ships Chinese / English only. Other DSH languages (Japanese, German, Russian, etc.) fall back to English.
115
116
  - After a DSH upgrade the plugin may disappear from the profile; reinstall the same tarball — the ledger is not deleted.
116
117
  - Qwen tracks usage only; its balance endpoint is unsupported. Other balances/quotas follow what each API returns.
117
118
  - Upstream APIs are rate-limited; successful results are cached for 60s, failures for 10s, and concurrent requests are coalesced.
package/README.md CHANGED
@@ -35,10 +35,10 @@
35
35
  | 供应商 | 计费形态 | 凭据 | 能看到什么 |
36
36
  |---|---|---|---|
37
37
  | DeepSeek | 按量 | DS 账号钱包 / `DEEPSEEK_API_KEY` | 账户余额、本月已花、预算 |
38
- | 智谱 GLM Coding | 订阅 / 按量 | `ZHIPU_API_KEY` / `GLM_API_KEY` / `ZAI_API_KEY` | 5h + 周窗口 |
38
+ | Zhipu GLM Coding | 订阅 / 按量 | `ZHIPU_API_KEY` / `GLM_API_KEY` / `ZAI_API_KEY` | 5h + 周窗口 |
39
39
  | Kimi Coding | 订阅 / 按量 | `KIMI_API_KEY` / `KIMI_CODING_API_KEY`,可选 `MOONSHOT_API_KEY` | 5h + 周/月窗口;订阅查询失败可回落余额 |
40
40
  | OpenRouter | 按量 | `OPENROUTER_API_KEY` | Credits(USD) |
41
- | 通义千问 | 按量 | `DASHSCOPE_API_KEY`(CNY)/ `DASHSCOPE_INTL_API_KEY`(USD) | 仅用量;余额不支持 |
41
+ | Qwen | 按量 | `DASHSCOPE_API_KEY`(CNY)/ `DASHSCOPE_INTL_API_KEY`(USD) | 仅用量;余额不支持 |
42
42
  | OpenCode Go | 订阅 | `OPENCODE_GO_API_KEY` | 5h / 周 / 月窗口(USD) |
43
43
  | Command Code | 订阅 | `COMMAND_CODE_API_KEY` + `COMMAND_CODE_ORG_ID` | 5h + 周窗口、Credits(CNY) |
44
44
 
@@ -111,8 +111,9 @@ dsh plugin --profile desktop add /path/to/dsh-token-dash-x.y.z.tgz
111
111
  ## 兼容与限制
112
112
 
113
113
  - DSH `0.2.1+`;已在 `0.2.2-rc.1` 上验证。DSH 0.2.2 是预发布版,且自身要求 Node 24.9。
114
+ - 界面语言当前仅中文 / English;选择日语、德语、俄语等其他 DSH 语言时,插件文案显示英文回退。
114
115
  - 升级 DSH 后插件可能从 profile 消失,重装同一个 tarball 即可,账本不会被删。
115
- - 通义千问只统计用量,余额接口不支持;其余供应商的余额/配额以接口实际返回为准。
116
+ - Qwen 只统计用量,余额接口不支持;其余供应商的余额/配额以接口实际返回为准。
116
117
  - 上游接口有速率限制;成功结果缓存 60s、失败结果缓存 10s,并发请求会合并。
117
118
 
118
119
  ## 数据与隐私
package/client.js CHANGED
@@ -104,6 +104,7 @@ window.__ModuleLoader__.load({
104
104
  '未配置凭据': 'No credentials', '刷新中': 'Refreshing',
105
105
  '编辑预算': 'Edit budget', '退出编辑': 'Exit editing',
106
106
  '设置与数据管理': 'Settings and data',
107
+ '语言跟随DSH设置;当前仅中文/English,其他语言回退英文': 'Language follows DSH settings; Chinese/English only; other languages fall back to English',
107
108
  '账户真实余额,不受预算影响': 'Account balance; not affected by budget',
108
109
  '本月累计消耗,等于已用/预算 的分子': 'Month-to-date spend; numerator of used/budget',
109
110
  '提示': 'Note',
@@ -431,6 +432,8 @@ window.__ModuleLoader__.load({
431
432
  boardSection: { display: 'grid', gap: 12, minWidth: 0 },
432
433
  boardSectionHead: { display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 8, minHeight: 24 },
433
434
  sectionTitle: { fontSize: 13, fontWeight: 600 },
435
+ settingsHead: { display: 'flex', alignItems: 'baseline', flexWrap: 'wrap', gap: 8, minWidth: 0 },
436
+ settingsHint: { color: T.muted, fontSize: 11, lineHeight: '16px', minWidth: 0, overflowWrap: 'anywhere' },
434
437
  cardBox: {
435
438
  border: `1px solid ${T.border}`, borderRadius: 8, padding: 12, background: T.section,
436
439
  display: 'grid', gap: 4, minWidth: 0,
@@ -1811,10 +1814,15 @@ window.__ModuleLoader__.load({
1811
1814
  })))),
1812
1815
  h('section', { style: styles.boardSection },
1813
1816
  h('div', { style: styles.boardSectionHead },
1814
- h('b', {
1815
- 'data-testid': 'token-dash-settings-title',
1816
- style: styles.sectionTitle,
1817
- }, tr('设置与数据管理'))),
1817
+ h('div', { style: styles.settingsHead },
1818
+ h('b', {
1819
+ 'data-testid': 'token-dash-settings-title',
1820
+ style: styles.sectionTitle,
1821
+ }, tr('设置与数据管理')),
1822
+ h('span', {
1823
+ 'data-testid': 'token-dash-settings-locale-hint',
1824
+ style: styles.settingsHint,
1825
+ }, tr('语言跟随DSH设置;当前仅中文/English,其他语言回退英文')))),
1818
1826
  h('div', { 'data-testid': 'token-dash-settings-capsule', style: styles.capsule },
1819
1827
  h(SettingsRows, { summary, prefs, onSave: savePrefs, onRefresh: refresh, onRefreshSubs: refreshSubs })))))
1820
1828
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-token-dash",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "DeepSeek Harness Token 看板:月度预算与订阅配额、账户余额、时间范围费用与真实 Tokens 明细,支持本地 JSON 导出 / 导入备份。",
5
5
  "type": "module",
6
6
  "main": "./index.js",
package/src/providers.js CHANGED
@@ -48,7 +48,7 @@ const PROVIDERS = {
48
48
  },
49
49
  zhipu: {
50
50
  id: 'zhipu',
51
- label: '智谱 AI',
51
+ label: 'Zhipu AI',
52
52
  currency: 'CNY',
53
53
  subscription: true,
54
54
  defaultModel: 'glm-5.3',
@@ -85,7 +85,7 @@ const PROVIDERS = {
85
85
  },
86
86
  qwen: {
87
87
  id: 'qwen',
88
- label: '通义千问',
88
+ label: 'Qwen',
89
89
  currency: 'CNY',
90
90
  subscription: false,
91
91
  defaultModel: 'qwen3.8-max',