dsh-connect-workbuddy 5.19.0 → 5.19.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/CHANGELOG.md +70 -0
- package/README.en.md +5 -3
- package/README.md +5 -3
- package/lib/bin.js +1 -1
- package/lib/client.js +85 -9
- package/lib/{host-heartbeat-uMQXkyai.js → host-heartbeat-hEksLFOK.js} +1 -1
- package/lib/index.js +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,75 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.19.1 (2026-11-06)
|
|
4
|
+
|
|
5
|
+
> 纯显示修复 + 一份新的测量工装,不改任何行为、设置字段与路由。**没有破坏性变更。**
|
|
6
|
+
|
|
7
|
+
### 修复(账号池在设置面板窄列里的显示)
|
|
8
|
+
|
|
9
|
+
三条都是**同一份内容第一次被放进 564px 的列**之后才显形的问题,做法照同族
|
|
10
|
+
`dsh-connect-trae` 4.9.0 的同一次迁移(它踩过完全一样的三颗坑,其中第一颗它自己
|
|
11
|
+
先发了一半)。
|
|
12
|
+
|
|
13
|
+
**1. 账号格仍然竖排五行,把每行撑到 157px。** 5.19.0 已经加了 `@container (max-width:700px)`
|
|
14
|
+
把外层 `.dsm-workbuddy-pool-row` 塌缩成堆叠卡片,但**真正竖排的是更里层**——
|
|
15
|
+
`.dsm-workbuddy-pool-account-name` 自己带 `flex-direction:column`(宽版下名字 / 名次+↑↓ /
|
|
16
|
+
当前使用 / 测试于 各占一行,读成一张小卡)。
|
|
17
|
+
|
|
18
|
+
窄列里这四行没有理由继续各占一行,它们本来就是一句话。实测(549px 列):
|
|
19
|
+
- 账号格 81px → **20px**(五行 → 一行)
|
|
20
|
+
- 单行高 157px → **96px**
|
|
21
|
+
- 账号池表格 420px → **287px**
|
|
22
|
+
|
|
23
|
+
这是 trae 4.9.0 里标注为「最容易漏掉」的那一处,它第一版也只改了外层包装。
|
|
24
|
+
同时给名字补 `min-width:0`:`<b>` 带 nowrap+ellipsis,但作为 flex 项默认 `min-width:auto`
|
|
25
|
+
(即内容宽度),省略号永远咬不住,长账号名会把整行顶宽。
|
|
26
|
+
|
|
27
|
+
**2. 「账号」表头浮在留白里,不指着它标注的那一列。** 账号格以勾选框开头,
|
|
28
|
+
所以名字比单元格左边缘缩进。实测(1120px 页面):表头 x=65、名字 x=103,差 **38px**。
|
|
29
|
+
表头贴单元格边缘时,「账号」两个字浮在 padding 里,指向什么也没有。
|
|
30
|
+
新类 `.dsm-workbuddy-pool-col-account` 用 `padding-inline-start` 把这 38px 补上,
|
|
31
|
+
窄版整行表头都隐藏,所以这个偏移不需要第二套值。
|
|
32
|
+
|
|
33
|
+
**3. 滚到账号池就看不见「账号 / 模型 / 能力 / 诊断 / SDK」分栏条。**
|
|
34
|
+
账号池在折叠线以下,滚到那里时分栏条已经滚出视野,想切分栏只能把整页滚回顶部。
|
|
35
|
+
改成 `position:sticky`(`top:-1px`,带不透明底色与 `z-index:2`)。
|
|
36
|
+
|
|
37
|
+
**仍然不接管滚动**:设置面板自己的列本来就负责滚动,这里既不写 `height:100%` 也不写
|
|
38
|
+
`overflow`——那会是第二根滚动条。分栏条画的底色走新变量 `--dsm-workbuddy-surface`,
|
|
39
|
+
由三个面(卡片 / 整页 / 设置)各自在自己的 `.dsm-workbuddy-usage` 规则里声明,
|
|
40
|
+
所以面板列换成 layer-3 时,条子跟着换,不会变成一条更亮的浮动带。
|
|
41
|
+
`top:-1px` 而不是 `0`:条子自己的 border-bottom 画在盒子外侧,写 0 会留一条 1px 缝。
|
|
42
|
+
|
|
43
|
+
**顺带删掉一条永远不会触发的规则。** `@media (max-width:760px)` 里给账号表重新分栏
|
|
44
|
+
(`1fr 1fr`)的那半条——它量的是视口,设置面板里视口 1400px 永远不成立;而且它的
|
|
45
|
+
2×2 形态正是 5.19.0 记录的那个缺陷本身。窄形态只能由 `@container` 表达,
|
|
46
|
+
留一条半对的媒体查询比删掉更糟。
|
|
47
|
+
|
|
48
|
+
### 新增(测量工装)
|
|
49
|
+
|
|
50
|
+
**`pnpm section:shot`**(`tools/section-shot.tsx` + `vitest.card.config.ts`,照 trae 同款)。
|
|
51
|
+
把 `settings.section` 页面按**真实外壳尺寸**(800px 面板 − 188px 导航 − 48px 内边距 =
|
|
52
|
+
564px 内容列)渲染到 `/tmp/wb-section-preview.html`,并附一份 `<pre id="audit">` 几何数据:
|
|
53
|
+
表格解析出的轨道、每个单元格的宽高、哪些元素的内容宽超过盒宽、首个可点控件距页面顶端的像素。
|
|
54
|
+
同一份渲染还会写出 `/tmp/wb-wide-preview.html`,用来**证明窄版规则在宽版上不生效**。
|
|
55
|
+
|
|
56
|
+
在这之前,本仓库所有断点都是靠读代码推断的——5.19.0 的三处缺陷全是这么漏掉的。
|
|
57
|
+
`tools/` 不在默认 `vitest include` 里,所以 `pnpm test` 不会把它收成一个永远 skip 的用例。
|
|
58
|
+
|
|
59
|
+
### Tests
|
|
60
|
+
|
|
61
|
+
`3119/3119`(3116 → 3119),`skip 2`。`tests/pool-card-render.spec.tsx` +3:
|
|
62
|
+
|
|
63
|
+
- 账号格**内层**也要塌缩(不是只塌外层包装)、当前使用徽章的堆叠间距同时归零、
|
|
64
|
+
名字保留 `min-width:0`;
|
|
65
|
+
- 「账号」表头必须缩进到名字处,不是贴在单元格边缘;
|
|
66
|
+
- 分栏条必须 sticky、不得引入第二个滚动容器、底色必须走 surface 变量,
|
|
67
|
+
且**每个**声明了 `.dsm-workbuddy-usage` 的面都必须声明这个变量。
|
|
68
|
+
|
|
69
|
+
四条规则**逐条变异验证**:把内层改回 `column`、把表头缩进改回 0、把 sticky 去掉、
|
|
70
|
+
把条子底色写成固定 layer-1 —— 四次都各自让对应用例失败,恢复后全绿。
|
|
71
|
+
|
|
72
|
+
|
|
3
73
|
## 5.19.0 (2026-11-06)
|
|
4
74
|
|
|
5
75
|
> **本版有破坏性变更(入口)**:配置界面从「插件市场详情页里的卡片」整体搬到
|
package/README.en.md
CHANGED
|
@@ -103,6 +103,8 @@ A machine usually carries more than one WorkBuddy sign-in. The **account pool**
|
|
|
103
103
|
|
|
104
104
|
**Each region (domestic / international) has its own independent pool** — membership and target model never affect the other side, because the two sides' accounts belong to different upstream stacks.
|
|
105
105
|
|
|
106
|
+
> **In a narrow column this table becomes stacked cards.** The configuration page lives inside the Settings panel, whose content column is **564px** (800px panel minus a 188px nav rail) — five columns do not fit, so when the TABLE itself is narrower than 700px (a container query, not the viewport) each row turns into three lines: the account and its actions get a full line each, and the three facts between them share one. Measured in that column: **96px** per row (was 157px, with the account name clipped to "用户75"), and the name no longer truncates. The wide layout is unchanged.
|
|
107
|
+
|
|
106
108
|
### The two batch actions
|
|
107
109
|
|
|
108
110
|
- **Check in selected** — signs in account by account. It **reads today's status first**, so an account that is already checked in is marked as such and receives **no write request at all** (idempotent — no duplicate claims); a single account failing marks only that row and **never aborts the batch**.
|
|
@@ -192,7 +194,7 @@ One class of state in the pool **does not go through a draft**: probe results, c
|
|
|
192
194
|
>
|
|
193
195
|
> ⚠️ **Do not treat the marketplace's "latest" as the schedule — it reads an index that lags.** The community marketplace serves a periodically built snapshot, collected per package: at the 2026-10-30 15:00 observation this plugin still listed only 5.13.1 while npm `latest` was already 5.14.1, and a desktop host separately flags any release under 24 hours old as "waiting". Trust `npm view dsh-connect-workbuddy version` and [Releases](https://github.com/dingminhua/dsh-connect-workbuddy/releases), and follow [Update](#update) below (pin the **exact version**); or hand [`docs/PINNED-UPGRADE-LAG.md`](docs/PINNED-UPGRADE-LAG.md) §3 to an AI and let it run.
|
|
194
196
|
>
|
|
195
|
-
> The other thing that stops people from upgrading: **pnpm's 24-hour release-age window** (`minimumReleaseAge`) **silently resolves a floating range back to the previous version**. When you need this fixed right now, pin the **exact version**: `dsh-connect-workbuddy@5.
|
|
197
|
+
> The other thing that stops people from upgrading: **pnpm's 24-hour release-age window** (`minimumReleaseAge`) **silently resolves a floating range back to the previous version**. When you need this fixed right now, pin the **exact version**: `dsh-connect-workbuddy@5.19.0`.
|
|
196
198
|
|
|
197
199
|
### Supported host range
|
|
198
200
|
|
|
@@ -256,7 +258,7 @@ Once installed, the configuration lives in the **WorkBuddy page of the Settings
|
|
|
256
258
|
> | exact `5.14.1` + `minimumReleaseAgeExclude: [dsh-connect-workbuddy]` in the profile's `pnpm-workspace.yaml` | **5.14.1** ✅ |
|
|
257
259
|
> | setting absent (pnpm default) | floating `^5.13.1` → **5.14.1** ✅ |
|
|
258
260
|
>
|
|
259
|
-
> To pick up a new release right away, pin it: `dsh plugin --profile desktop add dsh-connect-workbuddy@5.
|
|
261
|
+
> To pick up a new release right away, pin it: `dsh plugin --profile desktop add dsh-connect-workbuddy@5.19.0`; if the window refuses it, see [`docs/PINNED-UPGRADE-LAG.md`](docs/PINNED-UPGRADE-LAG.md) §2 for the two routes (wait out the window, or add that exclude line). A floating range catches up once the window elapses.
|
|
260
262
|
|
|
261
263
|
The plugin also runs under **Web** and **TUI**; pick the command matching your profile:
|
|
262
264
|
|
|
@@ -273,7 +275,7 @@ dsh plugin --profile dsh-tui add dsh-connect-workbuddy # TUI
|
|
|
273
275
|
**Manual update (one command)**:
|
|
274
276
|
|
|
275
277
|
```sh
|
|
276
|
-
dsh plugin --profile desktop add dsh-connect-workbuddy@5.
|
|
278
|
+
dsh plugin --profile desktop add dsh-connect-workbuddy@5.19.0
|
|
277
279
|
dsh plugin --profile desktop exec dsh-connect-workbuddy doctor # first line carries the version
|
|
278
280
|
```
|
|
279
281
|
|
package/README.md
CHANGED
|
@@ -113,6 +113,8 @@ DSH PiAiAdapter(每个 provider 一套)
|
|
|
113
113
|
|
|
114
114
|
**每个区域(国内版 / 国际版)各有独立的一池**:成员与目标模型互不影响——两边的账号本来就属于不同的上游栈。**签到只有国内版有**:海外区域不显示签到按钮,也没有那一列。
|
|
115
115
|
|
|
116
|
+
> **窄栏下这张表会变成堆叠卡片。** 配置页住在设置面板里,内容列只有 **564px**(800px 面板减去 188px 导航)——五列表格塞不进去,所以窗口宽度小于 700px(量的是**表格自己**的宽度,不是视口)时,每一行改成三行:账号与操作各占一行,中间三个事实共享一行。窄栏下实测单行 **96px**(此前 157px,账号名被压成「用户75」),账号名不再截断。宽栏形态一行未改。
|
|
117
|
+
|
|
116
118
|
### 自动换号(开启账号池即生效)
|
|
117
119
|
|
|
118
120
|
- **谁来服务由排序决定**:开启账号池后,**每一次请求**都发给池子里排序最靠前的可用账号——所以「当前使用」显示的是排序的结果,不一定是你手动选的那个。排序规则见下一节。
|
|
@@ -203,7 +205,7 @@ DSH PiAiAdapter(每个 provider 一套)
|
|
|
203
205
|
>
|
|
204
206
|
> ⚠️ **别把插件市场里那个「最新」当日程表——它读的是一份会落后的索引。** 社区市场走定期构建的快照(按包各自收录),2026-10-30 15:00 那次观测里本插件还停在 5.13.1,而当时 npm `latest` 已是 5.14.1;桌面宿主另有「24 小时内发布的版本先标成「新版等待中」」这条规则。以 `npm view dsh-connect-workbuddy version` 与 [Releases](https://github.com/dingminhua/dsh-connect-workbuddy/releases) 为准,按下方[「更新」](#更新)一节做(写**精确版本号**),或者把 [`docs/PINNED-UPGRADE-LAG.md`](docs/PINNED-UPGRADE-LAG.md) §3 那段话丢给 AI 让它替你跑。
|
|
205
207
|
>
|
|
206
|
-
> 另一个会让人升级不到的原因:**pnpm 的 24 小时新版本等待期**(`minimumReleaseAge`)会把浮动范围**静默压回上一个版本**。需要立刻修复时请写**精确版本号**:`dsh plugin --profile desktop add dsh-connect-workbuddy@5.
|
|
208
|
+
> 另一个会让人升级不到的原因:**pnpm 的 24 小时新版本等待期**(`minimumReleaseAge`)会把浮动范围**静默压回上一个版本**。需要立刻修复时请写**精确版本号**:`dsh plugin --profile desktop add dsh-connect-workbuddy@5.19.0`(原因见下方「刚发布的版本请写精确版本号」那条)。
|
|
207
209
|
|
|
208
210
|
### 受支持的宿主范围
|
|
209
211
|
|
|
@@ -271,7 +273,7 @@ npm install dsh-connect-workbuddy
|
|
|
271
273
|
> | 精确 `5.14.1` + profile `pnpm-workspace.yaml` 里 `minimumReleaseAgeExclude: [dsh-connect-workbuddy]` | **5.14.1** ✅ |
|
|
272
274
|
> | 不设该项(pnpm 默认) | 浮动 `^5.13.1` → **5.14.1** ✅ |
|
|
273
275
|
>
|
|
274
|
-
> 想立刻用上新版,请写精确版本号:`dsh plugin --profile desktop add dsh-connect-workbuddy@5.
|
|
276
|
+
> 想立刻用上新版,请写精确版本号:`dsh plugin --profile desktop add dsh-connect-workbuddy@5.19.0`;若被等待期拒绝,见 [`docs/PINNED-UPGRADE-LAG.md`](docs/PINNED-UPGRADE-LAG.md) §2 的两条路(等窗口过去,或加那行 exclude)。过了等待期之后,浮动范围会自然跟上。
|
|
275
277
|
|
|
276
278
|
插件在 **Web**、**Desktop**、**TUI** 三种界面下均可运行,按你使用的 profile 选择对应命令:
|
|
277
279
|
|
|
@@ -356,7 +358,7 @@ dsh: plugin command failed; diagnostics: …/operation-xxxx/pnpm.log
|
|
|
356
358
|
**手动更新(一条命令)**:
|
|
357
359
|
|
|
358
360
|
```sh
|
|
359
|
-
dsh plugin --profile desktop add dsh-connect-workbuddy@5.
|
|
361
|
+
dsh plugin --profile desktop add dsh-connect-workbuddy@5.19.0
|
|
360
362
|
dsh plugin --profile desktop exec dsh-connect-workbuddy doctor # 第一行就是版本
|
|
361
363
|
```
|
|
362
364
|
|
package/lib/bin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $t as ensureDeviceSalt, C as FALLBACK_WORKBUDDY_MODELS_GLOBAL, H as legacyWorkbuddyOwnAuthPath, I as defaultDesktopAuthCandidates, J as APP_VERSION, K as workbuddyOwnAuthPath, L as defaultDesktopAuthDirs, M as WORKBUDDY_VAULT_DIRNAME, N as WorkBuddyCredentialStore, Qt as readDeviceTokenFile, S as FALLBACK_WORKBUDDY_MODELS, Z as DEFAULT_WIRE_PROFILE, Zt as WORKBUDDY_DEVICE_TOKEN_FILE_ENV, a as readHostHeartbeat, an as WORKBUDDY_APP_EXECUTABLE_ENV, bn as resolveDshHome, c as WORKBUDDY_CONNECT_VERSION, d as rosterSeenPath, dn as findWorkbuddyAppExecutableWithSource, en as readDeviceSalt, et as WorkBuddyUpstreamClient, f as piAiRuntimeInfo, in as protectCredentialDirectory, it as describeRequestHeaderNames, j as WORKBUDDY_AUTH_FILE_ENV, m as createTuringSdk, o as workbuddyHostHeartbeatPath, q as workbuddyVaultDir, r as isHeartbeatProcessAlive, rn as inspectCredentialDirectory, tn as deriveDeviceId, u as describeRosterSeenPayload, v as readDeviceSettings, yn as hostPeersInfo } from "./host-heartbeat-
|
|
2
|
+
import { $t as ensureDeviceSalt, C as FALLBACK_WORKBUDDY_MODELS_GLOBAL, H as legacyWorkbuddyOwnAuthPath, I as defaultDesktopAuthCandidates, J as APP_VERSION, K as workbuddyOwnAuthPath, L as defaultDesktopAuthDirs, M as WORKBUDDY_VAULT_DIRNAME, N as WorkBuddyCredentialStore, Qt as readDeviceTokenFile, S as FALLBACK_WORKBUDDY_MODELS, Z as DEFAULT_WIRE_PROFILE, Zt as WORKBUDDY_DEVICE_TOKEN_FILE_ENV, a as readHostHeartbeat, an as WORKBUDDY_APP_EXECUTABLE_ENV, bn as resolveDshHome, c as WORKBUDDY_CONNECT_VERSION, d as rosterSeenPath, dn as findWorkbuddyAppExecutableWithSource, en as readDeviceSalt, et as WorkBuddyUpstreamClient, f as piAiRuntimeInfo, in as protectCredentialDirectory, it as describeRequestHeaderNames, j as WORKBUDDY_AUTH_FILE_ENV, m as createTuringSdk, o as workbuddyHostHeartbeatPath, q as workbuddyVaultDir, r as isHeartbeatProcessAlive, rn as inspectCredentialDirectory, tn as deriveDeviceId, u as describeRosterSeenPayload, v as readDeviceSettings, yn as hostPeersInfo } from "./host-heartbeat-hEksLFOK.js";
|
|
3
3
|
import { readFile } from "node:fs/promises";
|
|
4
4
|
import { dirname, join } from "node:path";
|
|
5
5
|
import { realpathSync } from "node:fs";
|
package/lib/client.js
CHANGED
|
@@ -4006,7 +4006,7 @@ window.__ModuleLoader__.load({
|
|
|
4006
4006
|
changeDeviceMode(mode);
|
|
4007
4007
|
}
|
|
4008
4008
|
}, t(mode === "virtual" ? "row.deviceModeVirtual" : "row.deviceModeReal"));
|
|
4009
|
-
})), (0, react.createElement)("span", { className: "dsm-workbuddy-hint" }, modeHintBlocked ? t("row.deviceModeRealUnsupported") : deviceMode === "real" ? t("row.deviceModeHintReal") : t("row.deviceModeHintVirtual"))), (0, react.createElement)("div", { className: `dsm-workbuddy-pool-table${pool.checkinSupported ? " dsm-workbuddy-pool-table-checkin" : ""}` }, (0, react.createElement)("div", { className: "dsm-workbuddy-pool-row dsm-workbuddy-pool-row-head" }, (0, react.createElement)("span",
|
|
4009
|
+
})), (0, react.createElement)("span", { className: "dsm-workbuddy-hint" }, modeHintBlocked ? t("row.deviceModeRealUnsupported") : deviceMode === "real" ? t("row.deviceModeHintReal") : t("row.deviceModeHintVirtual"))), (0, react.createElement)("div", { className: `dsm-workbuddy-pool-table${pool.checkinSupported ? " dsm-workbuddy-pool-table-checkin" : ""}` }, (0, react.createElement)("div", { className: "dsm-workbuddy-pool-row dsm-workbuddy-pool-row-head" }, (0, react.createElement)("span", { className: "dsm-workbuddy-pool-col-account" }, t("row.poolColumnAccount")), (0, react.createElement)("span", null, t("row.poolColumnCredits")), (0, react.createElement)("span", null, t("row.poolColumnProbe")), pool.checkinSupported ? (0, react.createElement)("span", null, t("row.poolColumnCheckin")) : null, (0, react.createElement)("span", null)), ...(() => {
|
|
4010
4010
|
const ordered = sortAccountsByOrder(pool.accounts, orderIds);
|
|
4011
4011
|
let memberSeen = 0;
|
|
4012
4012
|
let memberTotal = 0;
|
|
@@ -6181,7 +6181,7 @@ window.__ModuleLoader__.load({
|
|
|
6181
6181
|
.dsm-btn-outline:hover:not(:disabled){color:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-label-dimmed);background:rgba(255,255,255,.04)}
|
|
6182
6182
|
.dsm-btn-primary{background:var(--dsw-alias-label-primary);color:var(--dsw-alias-bg-layer-3)}
|
|
6183
6183
|
.dsm-btn-primary:hover:not(:disabled){opacity:.9}
|
|
6184
|
-
.dsm-workbuddy-usage{display:flex;flex-direction:column;gap:16px;margin:0;padding:16px 0 4px;background:var(--dsw-alias-bg-layer-1,#17181b);border-radius:12px}
|
|
6184
|
+
.dsm-workbuddy-usage{--dsm-workbuddy-surface:var(--dsw-alias-bg-layer-1,#17181b);display:flex;flex-direction:column;gap:16px;margin:0;padding:16px 0 4px;background:var(--dsw-alias-bg-layer-1,#17181b);border-radius:12px}
|
|
6185
6185
|
/* The provider bar: one CARD per region, side by side.
|
|
6186
6186
|
*
|
|
6187
6187
|
* COPIED FROM dsh-connect-trae, rule for rule, because an approximation of it
|
|
@@ -6253,8 +6253,33 @@ window.__ModuleLoader__.load({
|
|
|
6253
6253
|
* ON TOP of that gap and doubled the distance (measured: 32px where the rhythm
|
|
6254
6254
|
* is 16px).
|
|
6255
6255
|
*
|
|
6256
|
-
* The bottom rule stays: it is the tabs' underline, not spacing.
|
|
6257
|
-
|
|
6256
|
+
* The bottom rule stays: it is the tabs' underline, not spacing.
|
|
6257
|
+
*
|
|
6258
|
+
* STICKY, so the strip cannot be scrolled away from the sections it switches
|
|
6259
|
+
* (learned from dsh-connect-trae 4.9.0, same migration). This is NOT a decision
|
|
6260
|
+
* to take over scrolling: the Settings panel's own .options column scrolls, and
|
|
6261
|
+
* the card must not add a second scroller inside it — so there is no height:100%
|
|
6262
|
+
* and no overflow here either. But "not scrolling" is not the same as "may
|
|
6263
|
+
* disappear": the pool sits below the fold, and by the time the reader scrolls
|
|
6264
|
+
* down to it the five tabs are off the top, so switching sections means
|
|
6265
|
+
* scrolling the whole page back up first.
|
|
6266
|
+
*
|
|
6267
|
+
* The background is not decoration: it is what stops the rows sliding under a
|
|
6268
|
+
* transparent strip and showing through the gaps between the labels — and under
|
|
6269
|
+
* a wallpaper (issue #209) a transparent one would be unreadable outright.
|
|
6270
|
+
*
|
|
6271
|
+
* It paints --dsm-workbuddy-surface, NOT a hard-coded layer. That variable is
|
|
6272
|
+
* declared beside the fill on every surface's own .dsm-workbuddy-usage rule
|
|
6273
|
+
* (card / page / settings), which is the element whose opaque area the strip sits
|
|
6274
|
+
* inside. The three do not agree — the page paints layer-3 while the other two
|
|
6275
|
+
* paint layer-1 — so a strip pinned to either constant becomes a visibly lighter
|
|
6276
|
+
* bar over the other. One variable, declared where the fill is declared, is what
|
|
6277
|
+
* keeps the two from drifting; a test requires every declarer to declare it.
|
|
6278
|
+
*
|
|
6279
|
+
* top:-1px rather than 0, because the strip's own border-bottom is drawn
|
|
6280
|
+
* OUTSIDE the box and 0 leaves a 1px slit for the scrolling rows to show
|
|
6281
|
+
* through. */
|
|
6282
|
+
.dsm-workbuddy-panels{position:sticky;top:-1px;z-index:2;display:flex;align-items:stretch;gap:2px;margin:0;border-bottom:1px solid var(--dsw-alias-border-l1,rgba(127,127,127,.24));background:var(--dsm-workbuddy-surface,var(--dsw-alias-bg-layer-1,#17181b))}
|
|
6258
6283
|
.dsm-workbuddy-panel-tab{appearance:none;font:inherit;cursor:pointer;border:0;background:transparent;padding:7px 11px;margin-bottom:-1px;border-bottom:2px solid transparent;color:var(--dsw-alias-label-tertiary,#999);font-size:13px;font-weight:600;line-height:20px;white-space:nowrap;transition:color .15s,border-color .15s}
|
|
6259
6284
|
.dsm-workbuddy-panel-tab:hover:not(.dsm-workbuddy-panel-tab-active){color:var(--dsw-alias-label-primary,#e6e6e6)}
|
|
6260
6285
|
.dsm-workbuddy-panel-tab:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#5686fe);outline-offset:1px}
|
|
@@ -6713,6 +6738,20 @@ window.__ModuleLoader__.load({
|
|
|
6713
6738
|
.dsm-workbuddy-pool-table:not(.dsm-workbuddy-pool-table-checkin) .dsm-workbuddy-pool-row{grid-template-columns:1.6fr 1fr 1.3fr 1.7fr}
|
|
6714
6739
|
.dsm-workbuddy-pool-row:first-child{border-top:0}
|
|
6715
6740
|
.dsm-workbuddy-pool-row-head{padding:8px 14px;background:var(--dsw-alias-bg-layer-3,#2a2c33);color:var(--dsw-alias-label-tertiary,#999);font-size:11px;font-weight:600;letter-spacing:.02em;text-transform:uppercase}
|
|
6741
|
+
/* WHERE THE LABELED COLUMN ACTUALLY STARTS (learned from dsh-connect-trae, which
|
|
6742
|
+
carries the same rule for the same reason).
|
|
6743
|
+
*
|
|
6744
|
+
* The account cell's first element is the membership checkbox, so the account
|
|
6745
|
+
* NAME begins well inside the track. Measured at the plugin page's 1120px: the
|
|
6746
|
+
* header cell starts at x=65 and the name at x=103 — a 38px gap. Flush to the
|
|
6747
|
+
* cell edge, the word 「账号」 floated in the padding and pointed at nothing.
|
|
6748
|
+
*
|
|
6749
|
+
* 38px is the checkbox (13px) plus the cell's 8px gap plus the vertical
|
|
6750
|
+
* centring slack of an 18px glyph in a 20px label; rounded to the value that
|
|
6751
|
+
* measured flush rather than derived, because the two cells do not share a
|
|
6752
|
+
* box. The narrow form hides the whole header row, so this offset never has to
|
|
6753
|
+
* be re-tuned for the stacked layout. */
|
|
6754
|
+
.dsm-workbuddy-pool-col-account{padding-inline-start:38px}
|
|
6716
6755
|
.dsm-workbuddy-pool-row-current{background:rgba(86,134,254,.07)}
|
|
6717
6756
|
/* The serving row, made findable at a glance: a left accent bar plus the tint.
|
|
6718
6757
|
The bar is what distinguishes it in a long table, where a 7%-opacity wash
|
|
@@ -7035,9 +7074,18 @@ window.__ModuleLoader__.load({
|
|
|
7035
7074
|
.dsm-workbuddy-pool-row-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end;flex:none}
|
|
7036
7075
|
.dsm-workbuddy-pool-row-actions .dsm-workbuddy-pool-small-btn{white-space:nowrap}
|
|
7037
7076
|
.dsm-workbuddy-pool-row-actions .dsm-workbuddy-pool-small-btn{padding:2px 10px;font-size:12px}
|
|
7038
|
-
/*
|
|
7039
|
-
|
|
7040
|
-
|
|
7077
|
+
/* The picker's cap, narrowed on a phone. NOTE this @media measures the VIEWPORT,
|
|
7078
|
+
which is why it is the only rule left here that is allowed to: it exists for
|
|
7079
|
+
the Plugins page at phone width, where the viewport IS the constraint. The
|
|
7080
|
+
ROW's own narrow form is the @container block further down — a media query
|
|
7081
|
+
cannot express it, because inside the Settings panel the viewport is 1400px
|
|
7082
|
+
while the table gets 564px.
|
|
7083
|
+
*
|
|
7084
|
+
* The row's re-grid that used to live here was the source of that panel's
|
|
7085
|
+
* 2x2 defect: it fired at phone widths only, so the 564px column kept the
|
|
7086
|
+
* five-track desktop grid and clipped every cell. Removed rather than left
|
|
7087
|
+
* behind, because a second, half-correct narrow form is worse than none. */
|
|
7088
|
+
@media (max-width:760px){.dsm-workbuddy-pool-select{max-width:180px}}
|
|
7041
7089
|
/* The settings rows (target model, probe size) are flex with a content column
|
|
7042
7090
|
* that grows and a control that does not. In the Settings panel the control was
|
|
7043
7091
|
* squeezed to a sliver: max-width:260px caps it but nothing gives it a floor,
|
|
@@ -7077,6 +7125,34 @@ window.__ModuleLoader__.load({
|
|
|
7077
7125
|
/* The column headers describe tracks that no longer exist. */
|
|
7078
7126
|
.dsm-workbuddy-pool-row-head{display:none}
|
|
7079
7127
|
.dsm-workbuddy-pool-account{flex:1 1 100%;align-items:center}
|
|
7128
|
+
/* THE ACCOUNT CELL'S OWN COLUMN, collapsed the same way — and this is the
|
|
7129
|
+
rule that actually decides the row height (learned from dsh-connect-trae
|
|
7130
|
+
4.9.0, which shipped the outer half of this fix and measured 138px rows).
|
|
7131
|
+
*
|
|
7132
|
+
* Collapsing only .dsm-workbuddy-pool-account above is NOT enough: that is
|
|
7133
|
+
* just a flex wrapper. The cells that stack are one level deeper, inside
|
|
7134
|
+
* .dsm-workbuddy-pool-account-name, which declares flex-direction:column so
|
|
7135
|
+
* that the name, the rank badge with its ↑/↓ arrows, the 「当前使用」 pill and
|
|
7136
|
+
* the 「测试于 …」 line read as a small card when the table is WIDE.
|
|
7137
|
+
*
|
|
7138
|
+
* In the Settings column they have no reason to keep one line each: measured
|
|
7139
|
+
* at 549px, that block was 81px of the row's 157px — five lines (name, rank +
|
|
7140
|
+
* arrows, current badge, tested-at), while the three facts beside it sat on
|
|
7141
|
+
* one 18px line. The row therefore read as "one tall account block and three
|
|
7142
|
+
* strays", and every extra row cost the reader two thirds of a screen.
|
|
7143
|
+
*
|
|
7144
|
+
* Read as a sentence it is one line — 「用户7520607992 · 第 1 位 ↑↓ · 当前使用 ·
|
|
7145
|
+
* 测试于 11/06, 03:57」 — so it wraps among itself instead of stacking. The
|
|
7146
|
+
* margins the wide form needs (2px above the badge, 2px above the current pill)
|
|
7147
|
+
* go away with the stacking: in a wrapped row they become uneven leading. */
|
|
7148
|
+
.dsm-workbuddy-pool-account-name{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:2px 8px}
|
|
7149
|
+
.dsm-workbuddy-pool-account-name .dsm-workbuddy-pool-order{margin-top:0}
|
|
7150
|
+
.dsm-workbuddy-pool-account-name .dsm-workbuddy-pool-current-tag{align-self:center;margin-top:0}
|
|
7151
|
+
/* The name still has to be allowed to SHRINK. The <b> carries nowrap + ellipsis,
|
|
7152
|
+
whose whole point is that a long account name ends in "…" rather than
|
|
7153
|
+
pushing the line — but as a flex item it defaults to min-width:auto, i.e.
|
|
7154
|
+
its content width, and then the ellipsis can never engage. */
|
|
7155
|
+
.dsm-workbuddy-pool-account-name b{min-width:0;max-width:100%}
|
|
7080
7156
|
/* The three middle facts, laid out as one line of the same sentence. */
|
|
7081
7157
|
.dsm-workbuddy-pool-credits{flex:0 1 auto;flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:2px 8px}
|
|
7082
7158
|
.dsm-workbuddy-pool-probe{flex:1 1 auto;flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:2px 8px}
|
|
@@ -7209,7 +7285,7 @@ window.__ModuleLoader__.load({
|
|
|
7209
7285
|
.dsm-workbuddy-page-icon{width:40px;height:40px;border-radius:9px;align-self:flex-start;margin-top:14px}
|
|
7210
7286
|
.dsm-workbuddy-page-title{margin:0;font-size:20px;font-weight:600;line-height:1.4}
|
|
7211
7287
|
.dsm-workbuddy-page-desc{margin:0;font-size:13px;line-height:1.5;color:var(--dsw-alias-label-tertiary,#999)}
|
|
7212
|
-
.dsm-workbuddy-page-body .dsm-workbuddy-usage{padding:20px 20px 8px;border:1px solid var(--dsw-alias-border-l2,#36373b);background:var(--dsw-alias-bg-layer-3,#202126);border-radius:12px}
|
|
7288
|
+
.dsm-workbuddy-page-body .dsm-workbuddy-usage{--dsm-workbuddy-surface:var(--dsw-alias-bg-layer-3,#202126);padding:20px 20px 8px;border:1px solid var(--dsw-alias-border-l2,#36373b);background:var(--dsw-alias-bg-layer-3,#202126);border-radius:12px}
|
|
7213
7289
|
/* ---- 设置面板里的一节(settings.section,5.19.0)------------------------
|
|
7214
7290
|
面板内容列本来就窄(800px 面板减 188px 导航),而且它自己滚动。所以这一页
|
|
7215
7291
|
不去抢整页的高度与居中:height:100% 会在列里撑出第二根滚动条,860px 的
|
|
@@ -7241,7 +7317,7 @@ window.__ModuleLoader__.load({
|
|
|
7241
7317
|
.dsm-workbuddy-settings .dsm-workbuddy-settings-head,
|
|
7242
7318
|
.dsm-workbuddy-page .dsm-workbuddy-page-head{background:var(--dsw-alias-bg-layer-1,#17181b);border-radius:12px;padding:10px 12px}
|
|
7243
7319
|
/* 这一页的内容区不能有内边距,否则底色会缩进一截,与页头对不齐。 */
|
|
7244
|
-
.dsm-workbuddy-settings .dsm-workbuddy-page-body .dsm-workbuddy-usage{padding:0;border:0;border-radius:0;background:var(--dsw-alias-bg-layer-1,#17181b)}.dsm-workbuddy-panel-icon{display:block;border-radius:4px;flex:none}
|
|
7320
|
+
.dsm-workbuddy-settings .dsm-workbuddy-page-body .dsm-workbuddy-usage{--dsm-workbuddy-surface:var(--dsw-alias-bg-layer-1,#17181b);padding:0;border:0;border-radius:0;background:var(--dsw-alias-bg-layer-1,#17181b)}.dsm-workbuddy-panel-icon{display:block;border-radius:4px;flex:none}
|
|
7245
7321
|
/* ---- 设备头档位与逐账号参数弹窗 ------------------------------------------
|
|
7246
7322
|
档位那一行贴着账号表:它同时决定"这台机器对外声称自己是谁"和"每行的齿轮能
|
|
7247
7323
|
不能用",埋进「更多设置」会让齿轮看起来时好时坏。
|
|
@@ -10060,7 +10060,7 @@ function describeRosterSeenPayload(raw) {
|
|
|
10060
10060
|
//#endregion
|
|
10061
10061
|
//#region src/version.ts
|
|
10062
10062
|
/** The npm package version this build was produced from. */
|
|
10063
|
-
const WORKBUDDY_CONNECT_VERSION = "5.19.
|
|
10063
|
+
const WORKBUDDY_CONNECT_VERSION = "5.19.1";
|
|
10064
10064
|
//#endregion
|
|
10065
10065
|
//#region src/host-heartbeat.ts
|
|
10066
10066
|
/**
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as WorkBuddyCredentialRejectedError, A as WORKBUDDY_AUTH_FILENAME, At as VIDEO_TAG_TEXT_TO_VIDEO, B as isEncryptedCredentialError, Bt as imageMimeForPath, C as FALLBACK_WORKBUDDY_MODELS_GLOBAL, Ct as defaultOffModelIds, D as fallbackModelsFor, Dt as recordRefusal, E as deriveCatalog, Et as offRefused, F as authFileName, Ft as IMAGE_TAG_IMAGE_TO_IMAGE, G as workbuddyAccountId, Gt as parseQueueAnswer, H as legacyWorkbuddyOwnAuthPath, Ht as parseImageDataUrl, I as defaultDesktopAuthCandidates, It as IMAGE_TAG_TEXT_TO_IMAGE, J as APP_VERSION, Jt as NATIVE_MODALITY_BY_MODEL_ID, K as workbuddyOwnAuthPath, Kt as queueNoticeText, L as defaultDesktopAuthDirs, Lt as MAX_INPUT_IMAGE_BYTES, Mt as parseSupportedSecondsRange, N as WorkBuddyCredentialStore, Nt as pickVideoModel, O as withoutRouters, Ot as withEffectiveOff, P as WorkBuddyEncryptedCredentialError, Pt as resolveVideoParams, Q as WORKBUDDY_FALLBACK_SYSTEM_PROMPT, R as defaultDesktopAuthPath, Rt as WorkBuddyImageError, S as FALLBACK_WORKBUDDY_MODELS, Sn as writeFileAtomic, St as REFUSES_OFF_MODEL_IDS, T as applyContextBudgets, Tt as offDefaultFor, U as parseWorkBuddyAuth, Ut as pickMediaModel, V as isVaultAccountId, Vt as isBareBase64Image, W as preferredAccountName, Wt as sniffImageMime, X as CREDENTIAL_REJECTED_CODE, Xt as nativeModalityOf, Y as CONTEXT_OVERFLOW_MARKER, Yt as imageDefaultFor, _ as isDeviceMode, _n as readAtRestKey, _t as prepareChatBody, a as readHostHeartbeat, an as WORKBUDDY_APP_EXECUTABLE_ENV, at as forceNeutralHead, b as saveDeviceSdkSettings, bn as resolveDshHome, bt as rewriteSessionTitleModel, c as WORKBUDDY_CONNECT_VERSION, cn as deriveAtRestKeyId, ct as isCredentialRejectedError, dt as modelIdOfBody, et as WorkBuddyUpstreamClient, f as piAiRuntimeInfo, fn as isEncryptedFieldWrapper, ft as openingEvidenceOfBody, g as describeDerivedDevices, gn as openEncryptedField, gt as perturbChannelFingerprints, h as createDeviceProfileLookup, hn as macosNestedAppBundles, ht as parseUpstreamModel, i as processStartTimeMs, j as WORKBUDDY_AUTH_FILE_ENV, jt as WorkBuddyVideoError, k as ENCRYPTED_CREDENTIAL_CODE, kt as VIDEO_TAG_IMAGE_TO_VIDEO, l as createFileRosterSeenStore, ln as fetchAtRestKeyPayload, lt as isFirstMessageGateBody, m as createTuringSdk, mn as macosBundleExecutable, mt as parseReasoning, n as clearHostHeartbeat, nn as isDeviceId, nt as classifyUpstreamError, o as workbuddyHostHeartbeatPath, on as clearAtRestKeyCache, ot as isContextTooLongBody, p as createDeviceSdkPort, pn as isWorkbuddyBundle, pt as parseCreditMultiplier, qt as pruneTempDir, r as isHeartbeatProcessAlive, rt as declaredTools, s as writeHostHeartbeat, sn as deriveAtRestKey, st as isConversationIdGateBody, t as WORKBUDDY_HOST_HEARTBEAT_FILENAME, tt as channelGateMemberOf, un as findWorkbuddyAppExecutable, ut as knownRegionOf, v as readDeviceSettings, vn as workbuddyAppExecutableCandidates, vt as regionOf, w as WorkBuddyCatalog, wt as lastRefusalFor, x as setDeviceMode, xn as withFileLock, xt as attachBusyLevels, y as saveDeviceProfile, yt as requestEvidenceOf, z as hasEncryptedCredentialFields, zt as imageDataUrl } from "./host-heartbeat-
|
|
1
|
+
import { $ as WorkBuddyCredentialRejectedError, A as WORKBUDDY_AUTH_FILENAME, At as VIDEO_TAG_TEXT_TO_VIDEO, B as isEncryptedCredentialError, Bt as imageMimeForPath, C as FALLBACK_WORKBUDDY_MODELS_GLOBAL, Ct as defaultOffModelIds, D as fallbackModelsFor, Dt as recordRefusal, E as deriveCatalog, Et as offRefused, F as authFileName, Ft as IMAGE_TAG_IMAGE_TO_IMAGE, G as workbuddyAccountId, Gt as parseQueueAnswer, H as legacyWorkbuddyOwnAuthPath, Ht as parseImageDataUrl, I as defaultDesktopAuthCandidates, It as IMAGE_TAG_TEXT_TO_IMAGE, J as APP_VERSION, Jt as NATIVE_MODALITY_BY_MODEL_ID, K as workbuddyOwnAuthPath, Kt as queueNoticeText, L as defaultDesktopAuthDirs, Lt as MAX_INPUT_IMAGE_BYTES, Mt as parseSupportedSecondsRange, N as WorkBuddyCredentialStore, Nt as pickVideoModel, O as withoutRouters, Ot as withEffectiveOff, P as WorkBuddyEncryptedCredentialError, Pt as resolveVideoParams, Q as WORKBUDDY_FALLBACK_SYSTEM_PROMPT, R as defaultDesktopAuthPath, Rt as WorkBuddyImageError, S as FALLBACK_WORKBUDDY_MODELS, Sn as writeFileAtomic, St as REFUSES_OFF_MODEL_IDS, T as applyContextBudgets, Tt as offDefaultFor, U as parseWorkBuddyAuth, Ut as pickMediaModel, V as isVaultAccountId, Vt as isBareBase64Image, W as preferredAccountName, Wt as sniffImageMime, X as CREDENTIAL_REJECTED_CODE, Xt as nativeModalityOf, Y as CONTEXT_OVERFLOW_MARKER, Yt as imageDefaultFor, _ as isDeviceMode, _n as readAtRestKey, _t as prepareChatBody, a as readHostHeartbeat, an as WORKBUDDY_APP_EXECUTABLE_ENV, at as forceNeutralHead, b as saveDeviceSdkSettings, bn as resolveDshHome, bt as rewriteSessionTitleModel, c as WORKBUDDY_CONNECT_VERSION, cn as deriveAtRestKeyId, ct as isCredentialRejectedError, dt as modelIdOfBody, et as WorkBuddyUpstreamClient, f as piAiRuntimeInfo, fn as isEncryptedFieldWrapper, ft as openingEvidenceOfBody, g as describeDerivedDevices, gn as openEncryptedField, gt as perturbChannelFingerprints, h as createDeviceProfileLookup, hn as macosNestedAppBundles, ht as parseUpstreamModel, i as processStartTimeMs, j as WORKBUDDY_AUTH_FILE_ENV, jt as WorkBuddyVideoError, k as ENCRYPTED_CREDENTIAL_CODE, kt as VIDEO_TAG_IMAGE_TO_VIDEO, l as createFileRosterSeenStore, ln as fetchAtRestKeyPayload, lt as isFirstMessageGateBody, m as createTuringSdk, mn as macosBundleExecutable, mt as parseReasoning, n as clearHostHeartbeat, nn as isDeviceId, nt as classifyUpstreamError, o as workbuddyHostHeartbeatPath, on as clearAtRestKeyCache, ot as isContextTooLongBody, p as createDeviceSdkPort, pn as isWorkbuddyBundle, pt as parseCreditMultiplier, qt as pruneTempDir, r as isHeartbeatProcessAlive, rt as declaredTools, s as writeHostHeartbeat, sn as deriveAtRestKey, st as isConversationIdGateBody, t as WORKBUDDY_HOST_HEARTBEAT_FILENAME, tt as channelGateMemberOf, un as findWorkbuddyAppExecutable, ut as knownRegionOf, v as readDeviceSettings, vn as workbuddyAppExecutableCandidates, vt as regionOf, w as WorkBuddyCatalog, wt as lastRefusalFor, x as setDeviceMode, xn as withFileLock, xt as attachBusyLevels, y as saveDeviceProfile, yt as requestEvidenceOf, z as hasEncryptedCredentialFields, zt as imageDataUrl } from "./host-heartbeat-hEksLFOK.js";
|
|
2
2
|
import z from "@deepseek-ai/schemastery";
|
|
3
3
|
import { appendFile, mkdir, open, readFile, rename, rm, stat, writeFile } from "node:fs/promises";
|
|
4
4
|
import { randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "dsh-connect-workbuddy",
|
|
3
3
|
"displayName": "DSH Connect WorkBuddy",
|
|
4
4
|
"description": "把本机登录的 WorkBuddy 模型(国内版与国际版)接入 DeepSeek Harness:每次刷新按上游目录自动读取每个模型的积分倍率,支持逐模型图片输入开关、多账号切换与账号池自动换号,并提供每日签到、卡片与输入框里的胶囊积分读数等只读积分概览。",
|
|
5
|
-
"version": "5.19.
|
|
5
|
+
"version": "5.19.1",
|
|
6
6
|
"author": "dingminhua",
|
|
7
7
|
"copyright": "Copyright (c) 2026 LaoDing",
|
|
8
8
|
"license": "MIT",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"build": "tsdown && node scripts/verify-entry-artifacts.mjs",
|
|
59
59
|
"verify:entries": "node scripts/verify-entry-artifacts.mjs",
|
|
60
60
|
"test": "vitest run",
|
|
61
|
+
"section:shot": "vitest run --config vitest.card.config.ts",
|
|
61
62
|
"typecheck": "tsc -p tsconfig.json && tsc -p tsconfig.client.json",
|
|
62
63
|
"check": "pnpm run typecheck && pnpm run test && pnpm run build"
|
|
63
64
|
},
|