dsh-deepseek-balance-widget 2.3.9 → 2.4.0
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.md +7 -7
- package/README_EN.md +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
需要:已安装 dsh(可用 `dsh web`)。
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
dsh plugin --profile web add dsh-deepseek-balance-widget@2.
|
|
24
|
+
dsh plugin --profile web add dsh-deepseek-balance-widget@2.4.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
从 npm 拉取安装,dsh 自动注册到 `dsh.profile.bundles`,完成后**重启 `dsh web`** 即可。
|
|
28
28
|
|
|
29
|
-
> **务必写死版本号 `@2.
|
|
29
|
+
> **务必写死版本号 `@2.4.0`**(当前最新稳定版)。不要用 `@latest`——它会被本地 pnpm/npm 缓存或镜像源解析成旧版本,导致装到老版。如果未来发布了更高版本,把这里的版本号换成最新的即可。
|
|
30
30
|
|
|
31
31
|
也可以直接对 AI 说:
|
|
32
32
|
|
|
33
|
-
> 帮我用 npm 安装 dsh-deepseek-balance-widget 插件,执行 `dsh plugin --profile web add dsh-deepseek-balance-widget@2.
|
|
33
|
+
> 帮我用 npm 安装 dsh-deepseek-balance-widget 插件,执行 `dsh plugin --profile web add dsh-deepseek-balance-widget@2.4.0`。
|
|
34
34
|
|
|
35
35
|
## 配置
|
|
36
36
|
|
|
@@ -65,21 +65,21 @@ AI 会接管全部:问 API Key / 引导获取平台 Cookie → 写入本机
|
|
|
65
65
|
### 方式二:命令行强制更新(最稳妥,适合卡住或装不上的情况)
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
|
-
dsh plugin --profile web add dsh-deepseek-balance-widget@2.
|
|
68
|
+
dsh plugin --profile web add dsh-deepseek-balance-widget@2.4.0
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
-
**写死版本号 `@2.
|
|
71
|
+
**写死版本号 `@2.4.0`** 可绕过本地缓存 / 镜像源不同步 / `latest` 解析成旧版的问题,一步到位。装完**彻底重启 `dsh web`**。
|
|
72
72
|
|
|
73
73
|
### 方式三:手动更新(命令行更新失败时兜底)
|
|
74
74
|
|
|
75
75
|
```bash
|
|
76
76
|
cd ~/.dsh/profiles/web
|
|
77
|
-
npm install dsh-deepseek-balance-widget@2.
|
|
77
|
+
npm install dsh-deepseek-balance-widget@2.4.0 # 若目录内有 pnpm-lock.yaml 则用 pnpm add
|
|
78
78
|
# 验证磁盘上确实变了
|
|
79
79
|
cat node_modules/dsh-deepseek-balance-widget/package.json | grep '"version"'
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
-
确认输出 `2.
|
|
82
|
+
确认输出 `2.4.0` 后,**彻底重启 `dsh web`** 即可。
|
|
83
83
|
|
|
84
84
|
> 如果你的环境里弹窗/命令行的更新一直失败(提示版本没变),通常是 Agent 主机(如 WorkBuddy)通过 `NODE_OPTIONS` 注入了文件删除拦截导致 pnpm/npm 更新中断。此时在**普通终端**(不通过 Agent 运行)里执行上面的命令即可成功;或先执行 `set NODE_OPTIONS=`(PowerShell)再重试。
|
|
85
85
|
|
package/README_EN.md
CHANGED
|
@@ -21,16 +21,16 @@ A multi-provider AI balance widget for the dsh web sidebar. **DeepSeek** is buil
|
|
|
21
21
|
Requires: dsh installed (with `dsh web` working).
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
dsh plugin --profile web add dsh-deepseek-balance-widget@2.
|
|
24
|
+
dsh plugin --profile web add dsh-deepseek-balance-widget@2.4.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
Installed from npm and auto-registered by dsh. **Restart `dsh web`** and the balance button appears in the sidebar.
|
|
28
28
|
|
|
29
|
-
> **Always pin the version `@2.
|
|
29
|
+
> **Always pin the version `@2.4.0`** (the current latest stable). Do not use `@latest` — local pnpm/npm cache or a mirror registry can resolve it to an outdated release. When a newer version is released, bump the number here.
|
|
30
30
|
|
|
31
31
|
Or just tell your AI:
|
|
32
32
|
|
|
33
|
-
> Install the dsh-deepseek-balance-widget plugin for me via npm: run `dsh plugin --profile web add dsh-deepseek-balance-widget@2.
|
|
33
|
+
> Install the dsh-deepseek-balance-widget plugin for me via npm: run `dsh plugin --profile web add dsh-deepseek-balance-widget@2.4.0`.
|
|
34
34
|
|
|
35
35
|
## Configuration
|
|
36
36
|
|
|
@@ -65,21 +65,21 @@ Upgrade to the latest stable release on npm regardless of which older version yo
|
|
|
65
65
|
### Method 2: Force update from the command line (most reliable if stuck)
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
|
-
dsh plugin --profile web add dsh-deepseek-balance-widget@2.
|
|
68
|
+
dsh plugin --profile web add dsh-deepseek-balance-widget@2.4.0
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
-
**Pinning `@2.
|
|
71
|
+
**Pinning `@2.4.0`** bypasses local cache / mirror desync / a stale `latest` resolution in one step. Then **fully restart `dsh web`**.
|
|
72
72
|
|
|
73
73
|
### Method 3: Manual update (fallback when the command-line update fails)
|
|
74
74
|
|
|
75
75
|
```bash
|
|
76
76
|
cd ~/.dsh/profiles/web
|
|
77
|
-
npm install dsh-deepseek-balance-widget@2.
|
|
77
|
+
npm install dsh-deepseek-balance-widget@2.4.0 # use `pnpm add` if a pnpm-lock.yaml exists in this dir
|
|
78
78
|
# verify the on-disk version actually changed
|
|
79
79
|
cat node_modules/dsh-deepseek-balance-widget/package.json | grep '"version"'
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
-
Once it prints `2.
|
|
82
|
+
Once it prints `2.4.0`, **fully restart `dsh web`**.
|
|
83
83
|
|
|
84
84
|
> If the popover / command-line update keeps failing (version never changes), an agent host (e.g. WorkBuddy) is likely injecting a file-deletion guard via `NODE_OPTIONS`, which makes pnpm/npm abort during updates. Run the command in a **plain terminal** (not through the agent), or unset `NODE_OPTIONS` first (PowerShell: `set NODE_OPTIONS=`) and retry.
|
|
85
85
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-deepseek-balance-widget",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
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": [
|