dsh-deepseek-balance-widget 2.3.8 → 2.3.9

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.
Files changed (2) hide show
  1. package/lib/client.js +10 -1
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -40,6 +40,8 @@ window.__ModuleLoader__.load({
40
40
  updating: "更新中…",
41
41
  updateSuccess: "成功,请重启 dsh",
42
42
  updateFailed: "更新失败",
43
+ updateFailedHint: "自动更新未成功,请手动更新:重启 dsh 后点「检查更新」重试,或前往 GitHub 自行安装最新版。",
44
+ githubUrl: "https://github.com/crazy-L118/dsh-deepseek-balance-widget",
43
45
  failed: "失败",
44
46
  usageUnavailable: "用量接口不可用({0})",
45
47
  usageNotConfigured: "未配置 DEEPSEEK_PLATFORM_TOKEN,仅显示余额。对 AI 说「帮我配置用量统计」,AI 会帮你设置(可选)。",
@@ -126,6 +128,8 @@ window.__ModuleLoader__.load({
126
128
  updating: "Updating…",
127
129
  updateSuccess: "Success, please restart dsh",
128
130
  updateFailed: "Update failed",
131
+ updateFailedHint: "Auto-update did not succeed. Please update manually: restart dsh and click \"Check for updates\" to retry, or visit GitHub to install the latest version yourself.",
132
+ githubUrl: "https://github.com/crazy-L118/dsh-deepseek-balance-widget",
129
133
  failed: "Failed",
130
134
  usageUnavailable: "Usage API unavailable ({0})",
131
135
  usageNotConfigured: "DEEPSEEK_PLATFORM_TOKEN not configured, showing balance only. Tell the AI 'help me configure usage stats' to set it up (optional).",
@@ -427,7 +431,10 @@ window.__ModuleLoader__.load({
427
431
  ".dshBalanceUpdateErrHead{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:600;color:#f85149;margin-bottom:6px}",
428
432
  ".dshBalanceUpdateErrClose{appearance:none;background:transparent;border:0;color:#9aa4b2;font-size:18px;line-height:1;cursor:pointer;padding:0 2px}",
429
433
  ".dshBalanceUpdateErrClose:hover{color:#f85149}",
430
- ".dshBalanceUpdateErrBody{max-height:120px;overflow:auto;background:#0f1216;border:1px solid rgba(255,255,255,.08);border-radius:6px;padding:6px 8px;margin:0 0 8px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:10px;line-height:1.4;color:#c9d1d9;white-space:pre-wrap;word-break:break-all}"
434
+ ".dshBalanceUpdateErrBody{max-height:120px;overflow:auto;background:#0f1216;border:1px solid rgba(255,255,255,.08);border-radius:6px;padding:6px 8px;margin:0 0 8px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:10px;line-height:1.4;color:#c9d1d9;white-space:pre-wrap;word-break:break-all}",
435
+ ".dshBalanceUpdateErrHint{font-size:11px;line-height:1.5;color:#e6edf3;margin:0 0 8px}",
436
+ ".dshBalanceUpdateErrHint a{color:#58a6ff;text-decoration:underline;word-break:break-all}",
437
+ ".dshBalanceUpdateErrHint a:hover{color:#79c0ff}"
431
438
  ].join("");
432
439
  const tag = document.createElement("style");
433
440
  tag.dataset.plugin = "dsh-deepseek-balance-widget";
@@ -1268,6 +1275,8 @@ window.__ModuleLoader__.load({
1268
1275
  '<button class="dshBalanceUpdateErrClose" type="button" data-update-err-close aria-label="close">×</button>' +
1269
1276
  "</div>" +
1270
1277
  '<pre class="dshBalanceUpdateErrBody" title="' + t("updateFailed") + '">' + escaped + "</pre>" +
1278
+ '<p class="dshBalanceUpdateErrHint">' + t("updateFailedHint") +
1279
+ ' <a href="' + t("githubUrl") + '" target="_blank" rel="noopener">' + t("githubUrl") + "</a></p>" +
1271
1280
  '<button class="dshBalanceBtn" type="button" data-update-err-copy>' + t("copyError") + "</button>" +
1272
1281
  "</div>";
1273
1282
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-deepseek-balance-widget",
3
- "version": "2.3.8",
3
+ "version": "2.3.9",
4
4
  "type": "module",
5
5
  "description": "Multi-provider AI balance widget for the dsh web sidebar: a live, auto-refreshing balance pill plus a detail popover listing DeepSeek and any added providers (MiMo etc.). Keys are stored per-machine in ~/.dsh/ai-balances.json and resolved from the local credential seam, never hardcoded.",
6
6
  "keywords": [