dsh-deepseek-balance-widget 2.3.2 → 2.3.4

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 (3) hide show
  1. package/README.md +10 -8
  2. package/README_EN.md +10 -8
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -20,12 +20,12 @@
20
20
  需要:已安装 dsh(可用 `dsh web`)。
21
21
 
22
22
  ```bash
23
- dsh plugin --profile web add dsh-deepseek-balance-widget@2.3.1
23
+ dsh plugin --profile web add dsh-deepseek-balance-widget@latest
24
24
  ```
25
25
 
26
26
  从 npm 拉取安装,dsh 自动注册到 `dsh.profile.bundles`,完成后**重启 `dsh web`** 即可。
27
27
 
28
- > 务必带版本号 `@2.3.1`。不带版本号的 `add` 会按 npm `latest` tag 安装,该 tag 可能被旧版本抢回去,导致装到老版本。
28
+ > 如果 `npm view` / 弹窗显示你装到了旧版本,请参考下方「更新」章节强制升到最新版。旧版本已被标记为 deprecated,安装时会弹出升级提示。
29
29
 
30
30
  也可以直接对 AI 说:
31
31
 
@@ -51,11 +51,11 @@ AI 会接管全部:问 API Key / 引导获取平台 Cookie → 写入本机
51
51
 
52
52
  ## 更新
53
53
 
54
- 最新稳定版为 **`2.3.1`**。无论你当前是哪个旧版本,都推荐升级到它。
54
+ 无论你当前是哪个旧版本,都推荐升级到 npm 上的最新稳定版。
55
55
 
56
56
  ### 方式一:弹窗一键更新(推荐,已装用户)
57
57
 
58
- 1. 打开余额弹窗,底部会显示版本号;有新版本时显示 `vX → v2.3.1 更新`。
58
+ 1. 打开余额弹窗,底部会显示版本号;有新版本时显示 `vX → vY 更新`(`vY` 为 npm 上 semver 最高的版本)。
59
59
  2. 点击「**检查更新**」,插件会自动从 npm 拉取并安装最高版本。
60
60
  3. 安装完成后**必须彻底重启 `dsh web`**(关掉 `dsh web` 进程 / 退出桌面端再重开,**仅刷新浏览器页面无效**)才能加载新版本。
61
61
 
@@ -64,21 +64,23 @@ AI 会接管全部:问 API Key / 引导获取平台 Cookie → 写入本机
64
64
  ### 方式二:命令行强制更新(最稳妥,适合卡住或装不上的情况)
65
65
 
66
66
  ```bash
67
- dsh plugin --profile web add dsh-deepseek-balance-widget@2.3.1
67
+ dsh plugin --profile web add dsh-deepseek-balance-widget@latest
68
68
  ```
69
69
 
70
- 带版本号可绕过缓存 / 镜像源不同步 / `latest` 被抢低等问题,一步到位。
70
+ 该命令会安装 npm `latest` tag 指向的版本。如果弹窗仍提示可更新,说明本地缓存/镜像源没同步,直接用方式三手动安装最高版。
71
71
 
72
72
  ### 方式三:手动更新(命令行更新失败时兜底)
73
73
 
74
74
  ```bash
75
75
  cd ~/.dsh/profiles/web
76
- npm install dsh-deepseek-balance-widget@2.3.1 # 若目录内有 pnpm-lock.yaml 则用 pnpm add
76
+ npm install dsh-deepseek-balance-widget@latest # 若目录内有 pnpm-lock.yaml 则用 pnpm add
77
77
  # 验证磁盘上确实变了
78
78
  cat node_modules/dsh-deepseek-balance-widget/package.json | grep '"version"'
79
79
  ```
80
80
 
81
- 确认输出 `2.3.1` 后,**彻底重启 `dsh web`** 即可。
81
+ 确认输出的是最新版本号后,**彻底重启 `dsh web`** 即可。
82
+
83
+ > 也可以把 `latest` 换成具体版本号(如 `@2.3.3`),绕过缓存和镜像同步延迟。
82
84
 
83
85
  ## 卸载
84
86
 
package/README_EN.md CHANGED
@@ -20,12 +20,12 @@ A multi-provider AI balance widget for the dsh web sidebar. **DeepSeek** is buil
20
20
  Requires: dsh installed (with `dsh web` working).
21
21
 
22
22
  ```bash
23
- dsh plugin --profile web add dsh-deepseek-balance-widget@2.3.1
23
+ dsh plugin --profile web add dsh-deepseek-balance-widget@latest
24
24
  ```
25
25
 
26
26
  Installed from npm and auto-registered by dsh. **Restart `dsh web`** and the balance button appears in the sidebar.
27
27
 
28
- > Always include the version `@2.3.1`. A bare `add` follows npm's `latest` tag, which may be hijacked by older versions and silently install an outdated release.
28
+ > If `npm view` / the popover shows you ended up on an old version, follow the "Update" section below to force-upgrade. Older versions are marked deprecated and will print an upgrade warning during install.
29
29
 
30
30
  Or just tell your AI:
31
31
 
@@ -51,11 +51,11 @@ Credentials are stored locally in `~/.dsh/ai-balances.json`; nothing is shipped
51
51
 
52
52
  ## Update
53
53
 
54
- The latest stable release is **`2.3.1`**. Upgrade to it regardless of which older version you currently have.
54
+ Upgrade to the latest stable release on npm regardless of which older version you currently have.
55
55
 
56
56
  ### Method 1: One-click from the popover (recommended for installed users)
57
57
 
58
- 1. Open the balance popover; the footer shows the version. When a newer one exists it reads `vX → v2.3.1 更新`.
58
+ 1. Open the balance popover; the footer shows the version. When a newer one exists it reads `vX → vY 更新` (where `vY` is the highest semver version on npm).
59
59
  2. Click "**检查更新**" (Check for update). The plugin pulls and installs the highest semver version from npm automatically.
60
60
  3. After install you **must fully restart `dsh web`** (stop the `dsh web` process / quit the desktop app and reopen — **refreshing the browser tab is not enough**) for the new version to load.
61
61
 
@@ -64,21 +64,23 @@ The latest stable release is **`2.3.1`**. Upgrade to it regardless of which olde
64
64
  ### Method 2: Force update from the command line (most reliable if stuck)
65
65
 
66
66
  ```bash
67
- dsh plugin --profile web add dsh-deepseek-balance-widget@2.3.1
67
+ dsh plugin --profile web add dsh-deepseek-balance-widget@latest
68
68
  ```
69
69
 
70
- Pinning the version bypasses cache / mirror desync / a hijacked `latest` tag in one step.
70
+ This installs the version currently tagged as npm `latest`. If the popover still says an update is available, your cache/mirror is out of sync; use Method 3 to install the highest version manually.
71
71
 
72
72
  ### Method 3: Manual update (fallback when the command-line update fails)
73
73
 
74
74
  ```bash
75
75
  cd ~/.dsh/profiles/web
76
- npm install dsh-deepseek-balance-widget@2.3.1 # use `pnpm add` if a pnpm-lock.yaml exists in this dir
76
+ npm install dsh-deepseek-balance-widget@latest # use `pnpm add` if a pnpm-lock.yaml exists in this dir
77
77
  # verify the on-disk version actually changed
78
78
  cat node_modules/dsh-deepseek-balance-widget/package.json | grep '"version"'
79
79
  ```
80
80
 
81
- Once it prints `2.3.1`, **fully restart `dsh web`**.
81
+ Once it prints the latest version, **fully restart `dsh web`**.
82
+
83
+ > You can also replace `latest` with a concrete version (e.g. `@2.3.3`) to bypass cache or mirror sync delays.
82
84
 
83
85
  ## Uninstall
84
86
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-deepseek-balance-widget",
3
- "version": "2.3.2",
3
+ "version": "2.3.4",
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": [