dsh-connect-workbuddy 5.20.0 → 5.20.2
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 +100 -0
- package/README.en.md +3 -3
- package/README.md +3 -3
- package/lib/bin.js +1 -1
- package/lib/client.js +183 -68
- package/lib/{host-heartbeat-BTTe5VDs.js → host-heartbeat-CQ3ot5-F.js} +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,105 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.20.2 (2026-11-06)
|
|
4
|
+
|
|
5
|
+
> **模型行的上下文档位改成一个下拉框。** 没有行为变化:能选的档位、默认值、
|
|
6
|
+
> 写入的值与之前完全一致。
|
|
7
|
+
|
|
8
|
+
### 改了什么
|
|
9
|
+
|
|
10
|
+
原来是三个单选按钮(200K / 500K / 原生窗口)横排。在设置面板 564px 的列里,模型行还要放下
|
|
11
|
+
模型名、两个复选框和两个按钮,这三个按钮会折到第二行——而**折行的单选按钮读起来像三个独立开关**,
|
|
12
|
+
实际却是同一个选择。现在是一个 `<select>`,不会折行,也只有一个控件。
|
|
13
|
+
|
|
14
|
+
### 没变的部分(重要)
|
|
15
|
+
|
|
16
|
+
档位的**计算规则一字未改**,仍是 `effectiveContextBudget()`——即后端推导窗口所用的同一个函数。
|
|
17
|
+
所以这个控件不会声称一个 DSH 并未采用的上限(issue #215 的 bug 形态)。
|
|
18
|
+
|
|
19
|
+
- 可选档位仍按模型的**真实窗口**生成:192K 的模型只给一个选项,256K 给 200K + 原生,
|
|
20
|
+
1M 给 200K / 500K / 原生。**永远不会给出超过真实窗口的档位。**
|
|
21
|
+
- 选「原生」仍然**清除**预算键,而不是存下窗口数值——存数值会停止跟随上游上调窗口,
|
|
22
|
+
也会让「无上限」在设置文件里无法表示。
|
|
23
|
+
|
|
24
|
+
### 对齐
|
|
25
|
+
|
|
26
|
+
三个下拉框现在左边界严格对齐(690 / 690 / 690,宽度均 58px)。不加 `min-inline-size`
|
|
27
|
+
时控件宽度随最宽选项变化,只提供 192K 的那行会窄 2px,三行的左边缘呈阶梯状——正是折行单选按钮
|
|
28
|
+
那个毛病的小型翻版。
|
|
29
|
+
|
|
30
|
+
### Tests
|
|
31
|
+
|
|
32
|
+
`3184/3184`(3181 → 3184),`skip 2`。
|
|
33
|
+
|
|
34
|
+
- `tests/issue215-context-budget-radio.spec.tsx` 12 条:读侧从 radio 改为 select,
|
|
35
|
+
断言不变——**仍然拿控件与 `applyContextBudgets` 比对,而不是与硬编码标签比对**。
|
|
36
|
+
另外把「不会同时点亮两个档位」换成「选中值必须出现在选项里,且所有档位都不超过真实窗口」——
|
|
37
|
+
前者 `<select>` 已无法表达,后者仍会坏。
|
|
38
|
+
- `tests/context-tiers.spec.tsx` 13 条(+3):新增「只渲染一个 select、零个 radio、零个 fieldset」
|
|
39
|
+
(防半吊子迁移)、档位升序、以及**选中值真的进入保存请求**(写侧,之前只测了读侧)。
|
|
40
|
+
两条 #198 时代的折行 CSS 断言被替换:它们守的失败模式随控件形态消失了。
|
|
41
|
+
- `tools/capabilities-shot.tsx` 现在可用 `WB_SHOT_PANEL=models` 渲染模型页,
|
|
42
|
+
并修掉了静态 `innerHTML` 丢 `<select>` 选中值的问题(1M 的模型在预览里看起来选了 200K,
|
|
43
|
+
纯粹是转储假象)。
|
|
44
|
+
|
|
45
|
+
**变异验证**:把选中值改回 `?? 200_000`(5 条失败)、把「原生」改成存数值(1 条失败)、
|
|
46
|
+
把 radio 与 select 一起渲染(1 条失败)。
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
## 5.20.1 (2026-11-06) — 未发布到 npm
|
|
50
|
+
|
|
51
|
+
> **修复 5.20.0 引入的回归:诊断页与 SDK 页打不开。** 没有其他改动;5.20.0 的功能与默认行为不变。
|
|
52
|
+
>
|
|
53
|
+
> **这一版没有发布到 npm**:代码在 git 里(tag `v5.20.1`),修复随 5.20.2 一并发布。
|
|
54
|
+
> 所以在 npm 上 5.20.0 之后直接是 5.20.2,中间没有 5.20.1。
|
|
55
|
+
|
|
56
|
+
### 症状
|
|
57
|
+
|
|
58
|
+
点「诊断」或「SDK」分栏,内容不出现——实际上是被**能力页压在下面**。能力页本身看起来正常,
|
|
59
|
+
所以从界面上看像是「这两个页面坏了」,而不是「有一个页面没被隐藏」。
|
|
60
|
+
|
|
61
|
+
### 原因
|
|
62
|
+
|
|
63
|
+
5.20.0 给能力页加了 `#dsm-workbuddy-panel-capabilities{display:flex;gap:18px}`,用来修组间距。
|
|
64
|
+
但**ID 选择器的优先级是 (1,0,0),高于浏览器默认样式表里 `[hidden]{display:none}` 的 (0,1,0)**,
|
|
65
|
+
于是这个面板开始无视自己的 `hidden` 属性,永远渲染。
|
|
66
|
+
|
|
67
|
+
三个面板都在 DOM 里,靠 `hidden` 切换;能力页在诊断页与 SDK 页**之前**,所以一永久显示,
|
|
68
|
+
后两者就被盖住了。
|
|
69
|
+
|
|
70
|
+
浏览器里 6 行即可复现,且这是判断它到底修没修的唯一可靠办法:
|
|
71
|
+
|
|
72
|
+
```html
|
|
73
|
+
<style>#p{display:flex} #p[hidden]{display:none!important}</style>
|
|
74
|
+
<div id="p">…</div>
|
|
75
|
+
<script>p.setAttribute('hidden','')</script>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
不带第二条规则时 `getComputedStyle(p).display` 是 `flex`,带上是 `none`。
|
|
79
|
+
|
|
80
|
+
### 修法
|
|
81
|
+
|
|
82
|
+
```css
|
|
83
|
+
#dsm-workbuddy-panel-capabilities[hidden]{display:none!important}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
`!important` 不是装饰:没有它,下一次给这个面板加任何 display 规则,同一个 bug 就会回来。
|
|
87
|
+
|
|
88
|
+
### 为什么工装没抓到
|
|
89
|
+
|
|
90
|
+
`tools/capabilities-shot.tsx` 为了在一屏里量出这一节,用 `display:none!important` 把其他面板藏了。
|
|
91
|
+
**那个覆盖恰好把本 bug 遮住了——工装在修它本该观察的东西。** 该工具现在已经不强制面板 display,
|
|
92
|
+
并且新增测试断言工装不得再这么做。
|
|
93
|
+
|
|
94
|
+
### Tests
|
|
95
|
+
|
|
96
|
+
`3182/3182`(3179 → 3182),`skip 2`。`tests/capabilities-layout.spec.tsx` +3:
|
|
97
|
+
|
|
98
|
+
- `[hidden]` 守卫存在且带 `!important`(去掉它即失败);
|
|
99
|
+
- **点五个分栏,每次只开一个面板**——用户可见的契约,直接把这次的症状钉住;
|
|
100
|
+
- 工装不得再用 `display:block!important` 强制面板可见。
|
|
101
|
+
|
|
102
|
+
|
|
3
103
|
## 5.20.0 (2026-11-06)
|
|
4
104
|
|
|
5
105
|
> **新增一项设置,默认行为一个字节都没变。** 没有破坏性变更;不填就跟以前完全一样。
|
package/README.en.md
CHANGED
|
@@ -205,7 +205,7 @@ One class of state in the pool **does not go through a draft**: probe results, c
|
|
|
205
205
|
>
|
|
206
206
|
> ⚠️ **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.
|
|
207
207
|
>
|
|
208
|
-
> 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.
|
|
208
|
+
> 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.20.2`.
|
|
209
209
|
|
|
210
210
|
### Supported host range
|
|
211
211
|
|
|
@@ -269,7 +269,7 @@ Once installed, the configuration lives in the **WorkBuddy page of the Settings
|
|
|
269
269
|
> | exact `5.14.1` + `minimumReleaseAgeExclude: [dsh-connect-workbuddy]` in the profile's `pnpm-workspace.yaml` | **5.14.1** ✅ |
|
|
270
270
|
> | setting absent (pnpm default) | floating `^5.13.1` → **5.14.1** ✅ |
|
|
271
271
|
>
|
|
272
|
-
> To pick up a new release right away, pin it: `dsh plugin --profile desktop add dsh-connect-workbuddy@5.
|
|
272
|
+
> To pick up a new release right away, pin it: `dsh plugin --profile desktop add dsh-connect-workbuddy@5.20.2`; 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.
|
|
273
273
|
|
|
274
274
|
The plugin also runs under **Web** and **TUI**; pick the command matching your profile:
|
|
275
275
|
|
|
@@ -286,7 +286,7 @@ dsh plugin --profile dsh-tui add dsh-connect-workbuddy # TUI
|
|
|
286
286
|
**Manual update (one command)**:
|
|
287
287
|
|
|
288
288
|
```sh
|
|
289
|
-
dsh plugin --profile desktop add dsh-connect-workbuddy@5.
|
|
289
|
+
dsh plugin --profile desktop add dsh-connect-workbuddy@5.20.2
|
|
290
290
|
dsh plugin --profile desktop exec dsh-connect-workbuddy doctor # first line carries the version
|
|
291
291
|
```
|
|
292
292
|
|
package/README.md
CHANGED
|
@@ -223,7 +223,7 @@ DSH PiAiAdapter(每个 provider 一套)
|
|
|
223
223
|
>
|
|
224
224
|
> ⚠️ **别把插件市场里那个「最新」当日程表——它读的是一份会落后的索引。** 社区市场走定期构建的快照(按包各自收录),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 让它替你跑。
|
|
225
225
|
>
|
|
226
|
-
> 另一个会让人升级不到的原因:**pnpm 的 24 小时新版本等待期**(`minimumReleaseAge`)会把浮动范围**静默压回上一个版本**。需要立刻修复时请写**精确版本号**:`dsh plugin --profile desktop add dsh-connect-workbuddy@5.
|
|
226
|
+
> 另一个会让人升级不到的原因:**pnpm 的 24 小时新版本等待期**(`minimumReleaseAge`)会把浮动范围**静默压回上一个版本**。需要立刻修复时请写**精确版本号**:`dsh plugin --profile desktop add dsh-connect-workbuddy@5.20.2`(原因见下方「刚发布的版本请写精确版本号」那条)。
|
|
227
227
|
|
|
228
228
|
### 受支持的宿主范围
|
|
229
229
|
|
|
@@ -291,7 +291,7 @@ npm install dsh-connect-workbuddy
|
|
|
291
291
|
> | 精确 `5.14.1` + profile `pnpm-workspace.yaml` 里 `minimumReleaseAgeExclude: [dsh-connect-workbuddy]` | **5.14.1** ✅ |
|
|
292
292
|
> | 不设该项(pnpm 默认) | 浮动 `^5.13.1` → **5.14.1** ✅ |
|
|
293
293
|
>
|
|
294
|
-
> 想立刻用上新版,请写精确版本号:`dsh plugin --profile desktop add dsh-connect-workbuddy@5.
|
|
294
|
+
> 想立刻用上新版,请写精确版本号:`dsh plugin --profile desktop add dsh-connect-workbuddy@5.20.2`;若被等待期拒绝,见 [`docs/PINNED-UPGRADE-LAG.md`](docs/PINNED-UPGRADE-LAG.md) §2 的两条路(等窗口过去,或加那行 exclude)。过了等待期之后,浮动范围会自然跟上。
|
|
295
295
|
|
|
296
296
|
插件在 **Web**、**Desktop**、**TUI** 三种界面下均可运行,按你使用的 profile 选择对应命令:
|
|
297
297
|
|
|
@@ -376,7 +376,7 @@ dsh: plugin command failed; diagnostics: …/operation-xxxx/pnpm.log
|
|
|
376
376
|
**手动更新(一条命令)**:
|
|
377
377
|
|
|
378
378
|
```sh
|
|
379
|
-
dsh plugin --profile desktop add dsh-connect-workbuddy@5.
|
|
379
|
+
dsh plugin --profile desktop add dsh-connect-workbuddy@5.20.2
|
|
380
380
|
dsh plugin --profile desktop exec dsh-connect-workbuddy doctor # 第一行就是版本
|
|
381
381
|
```
|
|
382
382
|
|
package/lib/bin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as DEFAULT_WIRE_PROFILE, $t as WORKBUDDY_DEVICE_TOKEN_FILE_ENV, F as WorkBuddyCredentialStore, J as workbuddyOwnAuthPath, N as WORKBUDDY_AUTH_FILE_ENV, P as WORKBUDDY_VAULT_DIRNAME, R as defaultDesktopAuthCandidates, Sn as resolveDshHome, T as FALLBACK_WORKBUDDY_MODELS_GLOBAL, W as legacyWorkbuddyOwnAuthPath, X as APP_VERSION, Y as workbuddyVaultDir, a as readHostHeartbeat, an as inspectCredentialDirectory, b as readDeviceSettings, c as WORKBUDDY_CONNECT_VERSION, d as rosterSeenPath, en as readDeviceTokenFile, f as WORKBUDDY_CN_BASE_ENV, g as createTuringSdk, m as piAiRuntimeInfo, nn as readDeviceSalt, nt as WorkBuddyUpstreamClient, o as workbuddyHostHeartbeatPath, on as protectCredentialDirectory, ot as describeRequestHeaderNames, p as resolveCnGateway, pn as findWorkbuddyAppExecutableWithSource, r as isHeartbeatProcessAlive, rn as deriveDeviceId, sn as WORKBUDDY_APP_EXECUTABLE_ENV, tn as ensureDeviceSalt, u as describeRosterSeenPayload, w as FALLBACK_WORKBUDDY_MODELS, xn as hostPeersInfo, z as defaultDesktopAuthDirs } from "./host-heartbeat-
|
|
2
|
+
import { $ as DEFAULT_WIRE_PROFILE, $t as WORKBUDDY_DEVICE_TOKEN_FILE_ENV, F as WorkBuddyCredentialStore, J as workbuddyOwnAuthPath, N as WORKBUDDY_AUTH_FILE_ENV, P as WORKBUDDY_VAULT_DIRNAME, R as defaultDesktopAuthCandidates, Sn as resolveDshHome, T as FALLBACK_WORKBUDDY_MODELS_GLOBAL, W as legacyWorkbuddyOwnAuthPath, X as APP_VERSION, Y as workbuddyVaultDir, a as readHostHeartbeat, an as inspectCredentialDirectory, b as readDeviceSettings, c as WORKBUDDY_CONNECT_VERSION, d as rosterSeenPath, en as readDeviceTokenFile, f as WORKBUDDY_CN_BASE_ENV, g as createTuringSdk, m as piAiRuntimeInfo, nn as readDeviceSalt, nt as WorkBuddyUpstreamClient, o as workbuddyHostHeartbeatPath, on as protectCredentialDirectory, ot as describeRequestHeaderNames, p as resolveCnGateway, pn as findWorkbuddyAppExecutableWithSource, r as isHeartbeatProcessAlive, rn as deriveDeviceId, sn as WORKBUDDY_APP_EXECUTABLE_ENV, tn as ensureDeviceSalt, u as describeRosterSeenPayload, w as FALLBACK_WORKBUDDY_MODELS, xn as hostPeersInfo, z as defaultDesktopAuthDirs } from "./host-heartbeat-CQ3ot5-F.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
|
@@ -6464,6 +6464,59 @@ window.__ModuleLoader__.load({
|
|
|
6464
6464
|
* of the 16px gap, and the panel's first block (the pool, with its own 16px top
|
|
6465
6465
|
* padding) added a third layer. */
|
|
6466
6466
|
.dsm-workbuddy-panel{margin:0}
|
|
6467
|
+
/* THE CAPABILITIES PANEL IS A COLUMN OF GROUPS, not a run of paragraphs.
|
|
6468
|
+
*
|
|
6469
|
+
* Measured before this rule existed: the panel was display:block with
|
|
6470
|
+
* gap:normal, so its six blocks had NO space between them at all and the
|
|
6471
|
+
* rhythm was being improvised by whatever padding each block happened to carry
|
|
6472
|
+
* — ink-to-ink the gaps read 12 / 50 / 2 / 17 / 0 px. The 50px hole sat between
|
|
6473
|
+
* the gateway card and the first switch (the card's own 10px bottom padding plus
|
|
6474
|
+
* .prefs' 2px top), and the 2px squeeze sat between two switch groups that are
|
|
6475
|
+
* different KINDS of setting. Neither number was chosen; both fell out of the
|
|
6476
|
+
* order the blocks happen to be written in.
|
|
6477
|
+
*
|
|
6478
|
+
* One gap now owns the rhythm, and every group drops the ad-hoc padding it used
|
|
6479
|
+
* to fake it. 18px is the same step the rest of this card uses between
|
|
6480
|
+
* distinctly different things, and it is large enough to separate two groups of
|
|
6481
|
+
* switches WITHOUT a divider — which is why the one divider that used to sit
|
|
6482
|
+
* above the first upstream switch was deleted rather than kept: once the panel
|
|
6483
|
+
* owns 18px, a border plus 10px of its own padding became a third spacing
|
|
6484
|
+
* statement in the same 20px of air (measured 69px ink-to-ink against 18px
|
|
6485
|
+
* everywhere else, the single visible hole in the panel). */
|
|
6486
|
+
/* THE ID IS THE HOOK, not a second class name.
|
|
6487
|
+
*
|
|
6488
|
+
* Every panel in this card renders as plain dsm-workbuddy-panel; none of them
|
|
6489
|
+
* carries a per-panel class. A rule written as
|
|
6490
|
+
* .dsm-workbuddy-panel-capabilities{...} therefore matches NOTHING — it parses,
|
|
6491
|
+
* ships, and does nothing at all, which is the worst failure mode available
|
|
6492
|
+
* here because the panel keeps looking slightly wrong and the CSS looks right.
|
|
6493
|
+
* #dsm-workbuddy-panel-capabilities is the attribute that actually exists on
|
|
6494
|
+
* the element. */
|
|
6495
|
+
#dsm-workbuddy-panel-capabilities{display:flex;flex-direction:column;gap:18px}
|
|
6496
|
+
/* THE PANEL MUST STILL BE HIDEABLE (regression fix, 5.20.1).
|
|
6497
|
+
*
|
|
6498
|
+
* An ID selector outranks the UA sheet's [hidden]{display:none} on
|
|
6499
|
+
* specificity (1,0,0 vs 0,1,0), so adding display:flex above made the
|
|
6500
|
+
* capabilities panel IGNORE its own hidden attribute. Result: it painted
|
|
6501
|
+
* permanently and, being later in the DOM, covered the diagnostics and SDK
|
|
6502
|
+
* panels entirely — clicking those tabs appeared to do nothing.
|
|
6503
|
+
*
|
|
6504
|
+
* The measure is simple: a panel that is hidden must never be displayed,
|
|
6505
|
+
* whatever other rules set. Both declarations are needed and neither is
|
|
6506
|
+
* redundant — display:none wins the cascade, and !important is what stops
|
|
6507
|
+
* the same thing recurring the next time someone gives a panel a display value.
|
|
6508
|
+
*
|
|
6509
|
+
* Why the shot tool did not catch it: tools/capabilities-shot.tsx hides the
|
|
6510
|
+
* other panels with display:none!important so the section can be measured in
|
|
6511
|
+
* one screenful. That override masked this exact bug — the harness was fixing
|
|
6512
|
+
* the thing it was supposed to observe. The tool no longer forces display on
|
|
6513
|
+
* the panel, and tests/capabilities-layout.spec.tsx now pins that a hidden
|
|
6514
|
+
* panel stays hidden. */
|
|
6515
|
+
#dsm-workbuddy-panel-capabilities[hidden]{display:none!important}
|
|
6516
|
+
/* The note keeps the panel's gap like every other block: a special-cased
|
|
6517
|
+
tighter gap here would be one more number to decode, and the panel's own
|
|
6518
|
+
rhythm is what this rule exists to establish. */
|
|
6519
|
+
#dsm-workbuddy-panel-capabilities > .dsm-workbuddy-panel-note{margin:0}
|
|
6467
6520
|
/* DIAGNOSTICS: a two-column fact table rather than prose. Each row is one thing
|
|
6468
6521
|
* the card actually READ, so a bug report can quote a line instead of
|
|
6469
6522
|
* paraphrasing the UI. No control lives here on purpose — a diagnostics panel
|
|
@@ -6498,7 +6551,19 @@ window.__ModuleLoader__.load({
|
|
|
6498
6551
|
* (the dsm-workbuddy-models-summary class) has no side padding, so copying the
|
|
6499
6552
|
* reference's 2px would leave the two edges 2px apart — a difference too small
|
|
6500
6553
|
* to name and just big enough to look unaligned. */
|
|
6501
|
-
.dsm-workbuddy-prefs{display:flex;flex-direction:column;gap:14px;padding:
|
|
6554
|
+
.dsm-workbuddy-prefs{display:flex;flex-direction:column;gap:14px;padding:0}
|
|
6555
|
+
/* THE GROUP'S LEAD LINE BELONGS TO THE ROW UNDER IT (5.20.0).
|
|
6556
|
+
*
|
|
6557
|
+
* Every group opens with one sentence saying what the switches beneath it
|
|
6558
|
+
* control. With the group's uniform 14px gap, that sentence sat as far from its
|
|
6559
|
+
* first row as two rows sit from each other — measured 14px on all four groups,
|
|
6560
|
+
* identical to the row-to-row distance — so it read as a paragraph of body text
|
|
6561
|
+
* that happened to precede the list rather than as the list's heading.
|
|
6562
|
+
*
|
|
6563
|
+
* Pulling it 6px closer makes the pair visible as a pair without introducing a
|
|
6564
|
+
* new step: the group's own rows stay 14px apart, the lead sits 8px from its
|
|
6565
|
+
* first row, and the 18px panel gap still separates one group from the next. */
|
|
6566
|
+
.dsm-workbuddy-prefs > .dsm-workbuddy-pref-hint:first-child{margin-bottom:-6px}
|
|
6502
6567
|
.dsm-workbuddy-pref{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:18px;color:var(--dsw-alias-label-secondary,#c6c9d0);cursor:pointer}
|
|
6503
6568
|
/* The platform's own checkbox, themed only with accent-color. A hand-drawn box
|
|
6504
6569
|
was tried on this card and reverted: brand-primary resolves to the host's
|
|
@@ -6511,11 +6576,26 @@ window.__ModuleLoader__.load({
|
|
|
6511
6576
|
* field that needs an explicit Save. Giving it a card of its own is what says
|
|
6512
6577
|
* "this answers a different question".
|
|
6513
6578
|
*
|
|
6579
|
+
* The 25px LEFT padding is the same indent .dsm-workbuddy-pref-indent uses
|
|
6580
|
+
* (15px checkbox + 10px row gap): it puts the card's title on the same left edge
|
|
6581
|
+
* as every switch LABEL in the panel below it, measured 318px vs 330px before
|
|
6582
|
+
* this value existed. A bordered box whose text starts 12px left of the text
|
|
6583
|
+
* beside it reads as a misaligned column, not as a card.
|
|
6584
|
+
*
|
|
6514
6585
|
* The row wraps, and the input takes the whole width when it does: a host name is
|
|
6515
6586
|
* long (https://wb.tencentbuddy.com is 26 characters) and a half-width input in
|
|
6516
6587
|
* the panel column would show about eight of them. */
|
|
6517
|
-
.dsm-workbuddy-cnbase{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border:1px solid var(--dsw-alias-border-l2,#3a3d45);border-radius:10px;background:var(--dsw-alias-bg-layer-2,#24262c)}
|
|
6518
|
-
.
|
|
6588
|
+
.dsm-workbuddy-cnbase{display:flex;flex-direction:column;gap:8px;padding:10px 12px 10px 25px;border:1px solid var(--dsw-alias-border-l2,#3a3d45);border-radius:10px;background:var(--dsw-alias-bg-layer-2,#24262c)}
|
|
6589
|
+
/* SAME TYPOGRAPHY AS A SWITCH ROW (13px/18px).
|
|
6590
|
+
*
|
|
6591
|
+
* Measured before this rule: the card's title rendered at 16px while every
|
|
6592
|
+
* switch label in the same panel rendered at 13px. The cause is structural
|
|
6593
|
+
* rather than a wrong number — a switch row gets its 13px from
|
|
6594
|
+
* .dsm-workbuddy-pref, and this row is NOT a .dsm-workbuddy-pref (it stacks
|
|
6595
|
+
* its label above a text field instead of sitting beside a 15px box), so it
|
|
6596
|
+
* inherited the page's 16px instead. One group rendering a size nobody chose is
|
|
6597
|
+
* exactly the kind of defect a screenshot shows and nobody can name. */
|
|
6598
|
+
.dsm-workbuddy-cnbase-row{display:flex;flex-direction:column;gap:8px;font-size:13px;line-height:18px;color:var(--dsw-alias-label-secondary,#c6c9d0)}
|
|
6519
6599
|
.dsm-workbuddy-cnbase-input{box-sizing:border-box;width:100%;padding:6px 10px;border:1px solid var(--dsw-alias-border-l2,#3a3d45);border-radius:8px;background:var(--dsw-alias-bg-layer-3,#2a2c33);color:var(--dsw-alias-label-primary,#e6e6e6);font:inherit;font-size:13px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
|
|
6520
6600
|
.dsm-workbuddy-cnbase-input:disabled{opacity:.5;cursor:default}
|
|
6521
6601
|
.dsm-workbuddy-cnbase-input:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#5686fe);outline-offset:1px}
|
|
@@ -6527,8 +6607,17 @@ window.__ModuleLoader__.load({
|
|
|
6527
6607
|
above them instead of relying on spacing alone: they change the request the
|
|
6528
6608
|
whole plugin sends, not a per-region display choice, and reading them as the
|
|
6529
6609
|
tail of the preference list would misrepresent what flipping one costs. */
|
|
6530
|
-
.
|
|
6531
|
-
|
|
6610
|
+
/* The divider above the first upstream switch is GONE as of 5.20.0.
|
|
6611
|
+
*
|
|
6612
|
+
* It was doing double duty: separating "what this tab shows" from "what the
|
|
6613
|
+
* plugin sends" AND propping up a panel that had no gap of its own. Once
|
|
6614
|
+
* #dsm-workbuddy-panel-capabilities owns the rhythm at 18px, the border plus its
|
|
6615
|
+
* 10px padding became a third spacing statement in the same 20px of air —
|
|
6616
|
+
* measured ink-to-ink 69px against 18px everywhere else, i.e. the one visible
|
|
6617
|
+
* hole in the panel. The semantic break it marked is still real, and it is now
|
|
6618
|
+
* expressed the way the rest of the panel expresses it: one group, one gap.
|
|
6619
|
+
* The 4px that remains is optical only, between the group's own rows. */
|
|
6620
|
+
.dsm-workbuddy-upstream-pref{margin-top:0}
|
|
6532
6621
|
.dsm-workbuddy-pref input:disabled{cursor:default}
|
|
6533
6622
|
.dsm-workbuddy-pref:has(input:disabled){opacity:.6;cursor:default}
|
|
6534
6623
|
/* The NAME and what it does are TWO lines, not one wrapped blob: first what the
|
|
@@ -6722,9 +6811,12 @@ window.__ModuleLoader__.load({
|
|
|
6722
6811
|
/* ISSUE #198 — the model row's controls MUST WRAP.
|
|
6723
6812
|
|
|
6724
6813
|
The row carries four groups on one line: the name, the two checkboxes, the
|
|
6725
|
-
context-budget
|
|
6726
|
-
|
|
6727
|
-
|
|
6814
|
+
context-budget control, and the test/measure buttons. (It was a radio GROUP;
|
|
6815
|
+
as of 5.20.2 it is one select, which cannot wrap or clip internally — but the
|
|
6816
|
+
row still has to wrap, because the four groups together are what overflow.)
|
|
6817
|
+
The budget control had flex:none and the row had no flex-wrap, so on a narrow
|
|
6818
|
+
card (dsh-go on a phone, a ~360 px settings panel) the row's intrinsic width
|
|
6819
|
+
exceeded the
|
|
6728
6820
|
container and the model list's overflow:hidden CLIPPED THE REST — the third
|
|
6729
6821
|
radio (「模型原生窗口」, e.g. 1M) was neither visible nor clickable, and the
|
|
6730
6822
|
largest budget a user could pick looked like 500K. A control that is clipped is
|
|
@@ -6803,9 +6895,28 @@ window.__ModuleLoader__.load({
|
|
|
6803
6895
|
the clipping bug, and flex-wrap is the other half — a 1.048M label is wider
|
|
6804
6896
|
than 200K. Left-aligning the group under the media query makes the group
|
|
6805
6897
|
own its line on a phone instead of dangling at the right edge. */
|
|
6806
|
-
.
|
|
6807
|
-
|
|
6808
|
-
.
|
|
6898
|
+
/* ONE SELECT, NOT A ROW OF RADIOS.
|
|
6899
|
+
*
|
|
6900
|
+
* It was a wrapping flex row of three radios. In the Settings column (564px,
|
|
6901
|
+
* of which the model row already spends ~300px on the id/speed column) those
|
|
6902
|
+
* three wrapped onto a second line, and a wrapped row of radios reads as three
|
|
6903
|
+
* independent switches rather than as one choice.
|
|
6904
|
+
*
|
|
6905
|
+
* A FIXED min-inline-size keeps the three rows' columns aligned. Without it the
|
|
6906
|
+
* control sizes to its widest option, so a model offering only 192K drew a
|
|
6907
|
+
* 56px control while its neighbours drew 58px and the left edges stepped by 2px
|
|
6908
|
+
* down the list — the same misalignment the wrapped radios had, in miniature.
|
|
6909
|
+
*
|
|
6910
|
+
* Being a <select>, this is now a single fixed-width control that cannot wrap,
|
|
6911
|
+
* and the native dropdown is what the platform draws — so the styling here is
|
|
6912
|
+
* only about the closed state: the same 11px secondary text the radios used, a
|
|
6913
|
+
* chevron the platform provides, and a chevron-affordance gap.
|
|
6914
|
+
*
|
|
6915
|
+
* flex:none matters: the row is a flex line, and a select that grows steals
|
|
6916
|
+
* width from the model name beside it. */
|
|
6917
|
+
.dsm-workbuddy-context-budget{flex:none;margin:0;min-inline-size:58px;padding:2px 4px;border:1px solid var(--dsw-alias-border-l2,#3a3d45);border-radius:6px;background:var(--dsw-alias-bg-layer-3,#2a2c33);color:var(--dsw-alias-label-secondary,#c6c9d0);font-family:inherit;font-size:11px;line-height:16px;cursor:pointer}
|
|
6918
|
+
.dsm-workbuddy-context-budget:disabled{cursor:default;opacity:.6}
|
|
6919
|
+
.dsm-workbuddy-context-budget:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#5686fe);outline-offset:1px}
|
|
6809
6920
|
.dsm-workbuddy-model-capability-note{margin:0;color:var(--dsw-alias-label-tertiary,#999);font-size:12px;line-height:18px}
|
|
6810
6921
|
/* Model probe (test button + result). The result line is its own row under the
|
|
6811
6922
|
meta line, because a cooldown sentence ("rate limited - the upstream gave no
|
|
@@ -7357,7 +7468,7 @@ window.__ModuleLoader__.load({
|
|
|
7357
7468
|
wrapped two-tier group reads as a stray fragment under the buttons, and the tier
|
|
7358
7469
|
the user is trying to find — the native window — is the last label in the group,
|
|
7359
7470
|
so the line has to start at the left to have room to end at all. */
|
|
7360
|
-
|
|
7471
|
+
|
|
7361
7472
|
/* Pool switch, namespaced under .dsm-workbuddy-pool so it cannot collide with host styles. */
|
|
7362
7473
|
.dsm-workbuddy-pool .sw{position:relative;display:inline-block;width:38px;height:22px;flex:none;cursor:pointer}
|
|
7363
7474
|
.dsm-workbuddy-pool .sw input{position:absolute;opacity:0;width:0;height:0}
|
|
@@ -10434,25 +10545,31 @@ window.__ModuleLoader__.load({
|
|
|
10434
10545
|
}) : null
|
|
10435
10546
|
]
|
|
10436
10547
|
});
|
|
10437
|
-
const sidebarPanelPreference = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("
|
|
10438
|
-
className: "dsm-workbuddy-
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
|
|
10448
|
-
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
|
|
10452
|
-
|
|
10453
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.
|
|
10454
|
-
className: "dsm-workbuddy-pref-
|
|
10455
|
-
children:
|
|
10548
|
+
const sidebarPanelPreference = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
10549
|
+
className: "dsm-workbuddy-prefs",
|
|
10550
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
10551
|
+
className: "dsm-workbuddy-pref-hint",
|
|
10552
|
+
children: t("row.sidebarPanelLead")
|
|
10553
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
10554
|
+
className: "dsm-workbuddy-pref",
|
|
10555
|
+
title: t("row.sidebarPanelHint"),
|
|
10556
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
10557
|
+
type: "checkbox",
|
|
10558
|
+
className: "dsm-workbuddy-sidebar-panel-check",
|
|
10559
|
+
checked: sidebarPanelSwitchedOn(),
|
|
10560
|
+
disabled: !canWrite || saving || poolBusy || sidebarPanelBusy,
|
|
10561
|
+
onChange: (event) => {
|
|
10562
|
+
toggleSidebarPanel(event.target.checked);
|
|
10563
|
+
}
|
|
10564
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
10565
|
+
className: "dsm-workbuddy-pref-copy",
|
|
10566
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
10567
|
+
className: "dsm-workbuddy-pref-label",
|
|
10568
|
+
children: t("row.sidebarPanelLabel")
|
|
10569
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
10570
|
+
className: "dsm-workbuddy-pref-hint",
|
|
10571
|
+
children: t("row.sidebarPanelHint")
|
|
10572
|
+
})]
|
|
10456
10573
|
})]
|
|
10457
10574
|
})]
|
|
10458
10575
|
});
|
|
@@ -10676,9 +10793,12 @@ window.__ModuleLoader__.load({
|
|
|
10676
10793
|
* to be exactly 3, so an unvalidated free-text field here would be a second way
|
|
10677
10794
|
* to get it wrong.
|
|
10678
10795
|
*/
|
|
10679
|
-
const channelRejectContinuePreference = /* @__PURE__ */ (0, react_jsx_runtime.
|
|
10796
|
+
const channelRejectContinuePreference = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
10680
10797
|
className: "dsm-workbuddy-prefs",
|
|
10681
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.
|
|
10798
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
10799
|
+
className: "dsm-workbuddy-pref-hint",
|
|
10800
|
+
children: t("row.channelRejectHint")
|
|
10801
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
10682
10802
|
className: "dsm-workbuddy-pref dsm-workbuddy-upstream-pref",
|
|
10683
10803
|
title: t("row.channelRejectContinueHint"),
|
|
10684
10804
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
@@ -10714,11 +10834,15 @@ window.__ModuleLoader__.load({
|
|
|
10714
10834
|
}) : null
|
|
10715
10835
|
]
|
|
10716
10836
|
})]
|
|
10717
|
-
})
|
|
10837
|
+
})]
|
|
10718
10838
|
});
|
|
10719
10839
|
const creditPreferences = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
10720
10840
|
className: "dsm-workbuddy-prefs",
|
|
10721
10841
|
children: [
|
|
10842
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
10843
|
+
className: "dsm-workbuddy-pref-hint",
|
|
10844
|
+
children: t("row.modelToolsHint")
|
|
10845
|
+
}),
|
|
10722
10846
|
cliBridgePreference,
|
|
10723
10847
|
cliBridgeSwitchedOn() ? cliBridgePickers : null,
|
|
10724
10848
|
imageToolPreference,
|
|
@@ -11166,43 +11290,28 @@ window.__ModuleLoader__.load({
|
|
|
11166
11290
|
}) : null
|
|
11167
11291
|
]
|
|
11168
11292
|
}),
|
|
11169
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("
|
|
11293
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
|
|
11170
11294
|
className: "dsm-workbuddy-context-budget",
|
|
11171
11295
|
"aria-label": t("row.contextBudget"),
|
|
11296
|
+
value: String(effectiveContextBudget(model.nativeContextWindow, activeContextBudgets[model.id])),
|
|
11297
|
+
disabled: !canWrite || saving,
|
|
11298
|
+
onChange: (event) => {
|
|
11299
|
+
const picked = Number(event.target.value);
|
|
11300
|
+
setContextBudget(model.id, picked === model.nativeContextWindow ? void 0 : picked);
|
|
11301
|
+
},
|
|
11172
11302
|
children: [
|
|
11173
|
-
model.nativeContextWindow > 2e5 ? /* @__PURE__ */ (0, react_jsx_runtime.
|
|
11174
|
-
|
|
11175
|
-
|
|
11176
|
-
|
|
11177
|
-
|
|
11178
|
-
|
|
11179
|
-
|
|
11180
|
-
|
|
11181
|
-
|
|
11182
|
-
|
|
11183
|
-
|
|
11184
|
-
|
|
11185
|
-
checked: effectiveContextBudget(model.nativeContextWindow, activeContextBudgets[model.id]) === 5e5,
|
|
11186
|
-
disabled: !canWrite || saving,
|
|
11187
|
-
onChange: () => {
|
|
11188
|
-
setContextBudget(model.id, 5e5);
|
|
11189
|
-
}
|
|
11190
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: "500K" })] }) : null,
|
|
11191
|
-
model.nativeContextWindow > 2e5 ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
11192
|
-
type: "radio",
|
|
11193
|
-
name: `context-${model.id}`,
|
|
11194
|
-
checked: effectiveContextBudget(model.nativeContextWindow, activeContextBudgets[model.id]) === model.nativeContextWindow,
|
|
11195
|
-
disabled: !canWrite || saving,
|
|
11196
|
-
onChange: () => {
|
|
11197
|
-
setContextBudget(model.id, void 0);
|
|
11198
|
-
}
|
|
11199
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: formatCapacity(model.nativeContextWindow, t("row.modelUnknown")) })] }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
11200
|
-
type: "radio",
|
|
11201
|
-
name: `context-${model.id}`,
|
|
11202
|
-
checked: true,
|
|
11203
|
-
disabled: true,
|
|
11204
|
-
onChange: () => {}
|
|
11205
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: formatCapacity(model.nativeContextWindow, t("row.modelUnknown")) })] })
|
|
11303
|
+
model.nativeContextWindow > 2e5 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
11304
|
+
value: 2e5,
|
|
11305
|
+
children: "200K"
|
|
11306
|
+
}) : null,
|
|
11307
|
+
model.nativeContextWindow > 5e5 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
11308
|
+
value: 5e5,
|
|
11309
|
+
children: "500K"
|
|
11310
|
+
}) : null,
|
|
11311
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
11312
|
+
value: model.nativeContextWindow,
|
|
11313
|
+
children: formatCapacity(model.nativeContextWindow, t("row.modelUnknown"))
|
|
11314
|
+
})
|
|
11206
11315
|
]
|
|
11207
11316
|
}),
|
|
11208
11317
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -13784,6 +13893,9 @@ window.__ModuleLoader__.load({
|
|
|
13784
13893
|
"sdk.dirHint": "Point this at the desktop app's native/turing-sdk folder, not the folder holding WorkBuddy.exe. Saving re-probes immediately; a wrong path turns the state above into \"not found\" with that path shown, never a silent fall back to discovery. WORKBUDDY_TURING_SDK_DIR still wins.",
|
|
13785
13894
|
"sdk.fallbackLabel": "Fall back to the virtual device when no real one is available",
|
|
13786
13895
|
"sdk.fallbackHint": "On: when the SDK is unavailable (no desktop app, wrong directory, no token) the plugin sends the salt-derived virtual device pair instead, and the tier shown changes to “Virtual” with it — it never claims to be real. Off: no device header is sent at all, which is what the Real tier did before this switch.",
|
|
13896
|
+
"row.modelToolsHint": "These three decide what the model may DO on this tab: which commands it can run, and whether it can spend credits generating images or video. Each takes effect on the click.",
|
|
13897
|
+
"row.channelRejectHint": "One switch, on its own because it is the only one here that spends a real request every time it fires. Read its description before turning it on.",
|
|
13898
|
+
"row.sidebarPanelLead": "Where the card itself appears. This one only affects navigation — it changes no request and spends nothing.",
|
|
13787
13899
|
"row.upstreamHint": "These change what the gateway sees, not which provider serves the call. All of them are sampled when the plugin mounts, so reload the plugin (or restart DSH) after changing one.",
|
|
13788
13900
|
"row.usageIdentityLabel": "Make the usage page record these calls like the official client",
|
|
13789
13901
|
"row.usageIdentityHint": "Adds the X-IDE-* headers (which fill the 使用端 column, otherwise blank) and sends conversation ids as 32-hex UUIDv7. Display alignment only: the User-Agent and the request body never change. Off by default because the evidence comes from a reporter, not from this plugin.",
|
|
@@ -14318,6 +14430,9 @@ window.__ModuleLoader__.load({
|
|
|
14318
14430
|
"sdk.dirHint": "填的是桌面端里 native/turing-sdk 那一层目录,不是 WorkBuddy.exe 所在目录。保存后会立刻重新检测;填错时上面的状态会变成「未找到」并带上这个路径,不会静默回退到自动查找。环境变量 WORKBUDDY_TURING_SDK_DIR 优先级更高。",
|
|
14319
14431
|
"sdk.fallbackLabel": "取不到真实设备时退回虚拟值",
|
|
14320
14432
|
"sdk.fallbackHint": "开启时:SDK 不可用(没装桌面端、目录填错、token 取不到)就改发按本机盐派生的虚拟设备对,档位显示也会跟着变成「虚拟值」——不静默冒充。关闭时:一个设备头都不发,那是「真实值」档原本的行为。",
|
|
14433
|
+
"row.modelToolsHint": "这三项决定模型在这个 tab 上能「做」什么:能跑哪些命令,以及能不能花积分生图、生视频。点一下即生效。",
|
|
14434
|
+
"row.channelRejectHint": "单独一项,因为这里是唯一「每触发一次就真花一次请求」的开关。开启前请读完它的说明。",
|
|
14435
|
+
"row.sidebarPanelLead": "卡片本身出现在哪。这一项只管导航,不改任何请求、不花任何额度。",
|
|
14321
14436
|
"row.upstreamHint": "这一组改的是网关看到什么,不是由哪个 provider 提供服务。四项都在插件挂载时采样,改完需重载插件或重启 DSH。",
|
|
14322
14437
|
"row.usageIdentityLabel": "让用量页把调用记成官方客户端的样子",
|
|
14323
14438
|
"row.usageIdentityHint": "补上 X-IDE-* 头(「使用端」那一列就不会空白),并把会话 id 改成 32 位十六进制 UUIDv7。只影响显示:User-Agent 与请求正文永不变。默认关闭——证据来自报告者,本插件未在真机复现。",
|
|
@@ -10220,7 +10220,7 @@ function describeRosterSeenPayload(raw) {
|
|
|
10220
10220
|
//#endregion
|
|
10221
10221
|
//#region src/version.ts
|
|
10222
10222
|
/** The npm package version this build was produced from. */
|
|
10223
|
-
const WORKBUDDY_CONNECT_VERSION = "5.20.
|
|
10223
|
+
const WORKBUDDY_CONNECT_VERSION = "5.20.2";
|
|
10224
10224
|
//#endregion
|
|
10225
10225
|
//#region src/host-heartbeat.ts
|
|
10226
10226
|
/**
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as withoutRouters, At as withEffectiveOff, B as defaultDesktopAuthPath, Bt as WorkBuddyImageError, C as setDeviceMode, Cn as withFileLock, Ct as attachBusyLevels, D as applyContextBudgets, Dt as offDefaultFor, E as WorkBuddyCatalog, Et as lastRefusalFor, F as WorkBuddyCredentialStore, Ft as pickVideoModel, G as parseWorkBuddyAuth, Gt as pickMediaModel, H as isEncryptedCredentialError, Ht as imageMimeForPath, I as WorkBuddyEncryptedCredentialError, It as resolveVideoParams, J as workbuddyOwnAuthPath, Jt as queueNoticeText, K as preferredAccountName, Kt as sniffImageMime, L as authFileName, Lt as IMAGE_TAG_IMAGE_TO_IMAGE, M as WORKBUDDY_AUTH_FILENAME, Mt as VIDEO_TAG_TEXT_TO_VIDEO, N as WORKBUDDY_AUTH_FILE_ENV, Nt as WorkBuddyVideoError, O as deriveCatalog, Ot as offRefused, Pt as parseSupportedSecondsRange, Q as CREDENTIAL_REJECTED_CODE, Qt as nativeModalityOf, R as defaultDesktopAuthCandidates, Rt as IMAGE_TAG_TEXT_TO_IMAGE, S as saveDeviceSdkSettings, Sn as resolveDshHome, St as rewriteSessionTitleModel, T as FALLBACK_WORKBUDDY_MODELS_GLOBAL, Tt as defaultOffModelIds, U as isVaultAccountId, Ut as isBareBase64Image, V as hasEncryptedCredentialFields, Vt as imageDataUrl, W as legacyWorkbuddyOwnAuthPath, Wt as parseImageDataUrl, X as APP_VERSION, Xt as NATIVE_MODALITY_BY_MODEL_ID, Yt as pruneTempDir, Z as CONTEXT_OVERFLOW_MARKER, Zt as imageDefaultFor, _ as createDeviceProfileLookup, _n as macosNestedAppBundles, _t as parseUpstreamModel, a as readHostHeartbeat, at as declaredTools, b as readDeviceSettings, bn as workbuddyAppExecutableCandidates, bt as regionOf, c as WORKBUDDY_CONNECT_VERSION, cn as clearAtRestKeyCache, ct as isContextTooLongBody, dn as fetchAtRestKeyPayload, dt as isFirstMessageGateBody, et as WORKBUDDY_FALLBACK_SYSTEM_PROMPT, fn as findWorkbuddyAppExecutable, ft as knownRegionOf, g as createTuringSdk, gn as macosBundleExecutable, gt as parseReasoning, h as createDeviceSdkPort, hn as isWorkbuddyBundle, ht as parseCreditMultiplier, i as processStartTimeMs, in as isDeviceId, it as classifyUpstreamError, j as ENCRYPTED_CREDENTIAL_CODE, jt as VIDEO_TAG_IMAGE_TO_VIDEO, k as fallbackModelsFor, kt as recordRefusal, l as createFileRosterSeenStore, ln as deriveAtRestKey, lt as isConversationIdGateBody, m as piAiRuntimeInfo, mn as isEncryptedFieldWrapper, mt as openingEvidenceOfBody, n as clearHostHeartbeat, nt as WorkBuddyUpstreamClient, o as workbuddyHostHeartbeatPath, p as resolveCnGateway, pt as modelIdOfBody, q as workbuddyAccountId, qt as parseQueueAnswer, r as isHeartbeatProcessAlive, rt as channelGateMemberOf, s as writeHostHeartbeat, sn as WORKBUDDY_APP_EXECUTABLE_ENV, st as forceNeutralHead, t as WORKBUDDY_HOST_HEARTBEAT_FILENAME, tt as WorkBuddyCredentialRejectedError, un as deriveAtRestKeyId, ut as isCredentialRejectedError, v as describeDerivedDevices, vn as openEncryptedField, vt as perturbChannelFingerprints, w as FALLBACK_WORKBUDDY_MODELS, wn as writeFileAtomic, wt as REFUSES_OFF_MODEL_IDS, x as saveDeviceProfile, xt as requestEvidenceOf, y as isDeviceMode, yn as readAtRestKey, yt as prepareChatBody, z as defaultDesktopAuthDirs, zt as MAX_INPUT_IMAGE_BYTES } from "./host-heartbeat-
|
|
1
|
+
import { A as withoutRouters, At as withEffectiveOff, B as defaultDesktopAuthPath, Bt as WorkBuddyImageError, C as setDeviceMode, Cn as withFileLock, Ct as attachBusyLevels, D as applyContextBudgets, Dt as offDefaultFor, E as WorkBuddyCatalog, Et as lastRefusalFor, F as WorkBuddyCredentialStore, Ft as pickVideoModel, G as parseWorkBuddyAuth, Gt as pickMediaModel, H as isEncryptedCredentialError, Ht as imageMimeForPath, I as WorkBuddyEncryptedCredentialError, It as resolveVideoParams, J as workbuddyOwnAuthPath, Jt as queueNoticeText, K as preferredAccountName, Kt as sniffImageMime, L as authFileName, Lt as IMAGE_TAG_IMAGE_TO_IMAGE, M as WORKBUDDY_AUTH_FILENAME, Mt as VIDEO_TAG_TEXT_TO_VIDEO, N as WORKBUDDY_AUTH_FILE_ENV, Nt as WorkBuddyVideoError, O as deriveCatalog, Ot as offRefused, Pt as parseSupportedSecondsRange, Q as CREDENTIAL_REJECTED_CODE, Qt as nativeModalityOf, R as defaultDesktopAuthCandidates, Rt as IMAGE_TAG_TEXT_TO_IMAGE, S as saveDeviceSdkSettings, Sn as resolveDshHome, St as rewriteSessionTitleModel, T as FALLBACK_WORKBUDDY_MODELS_GLOBAL, Tt as defaultOffModelIds, U as isVaultAccountId, Ut as isBareBase64Image, V as hasEncryptedCredentialFields, Vt as imageDataUrl, W as legacyWorkbuddyOwnAuthPath, Wt as parseImageDataUrl, X as APP_VERSION, Xt as NATIVE_MODALITY_BY_MODEL_ID, Yt as pruneTempDir, Z as CONTEXT_OVERFLOW_MARKER, Zt as imageDefaultFor, _ as createDeviceProfileLookup, _n as macosNestedAppBundles, _t as parseUpstreamModel, a as readHostHeartbeat, at as declaredTools, b as readDeviceSettings, bn as workbuddyAppExecutableCandidates, bt as regionOf, c as WORKBUDDY_CONNECT_VERSION, cn as clearAtRestKeyCache, ct as isContextTooLongBody, dn as fetchAtRestKeyPayload, dt as isFirstMessageGateBody, et as WORKBUDDY_FALLBACK_SYSTEM_PROMPT, fn as findWorkbuddyAppExecutable, ft as knownRegionOf, g as createTuringSdk, gn as macosBundleExecutable, gt as parseReasoning, h as createDeviceSdkPort, hn as isWorkbuddyBundle, ht as parseCreditMultiplier, i as processStartTimeMs, in as isDeviceId, it as classifyUpstreamError, j as ENCRYPTED_CREDENTIAL_CODE, jt as VIDEO_TAG_IMAGE_TO_VIDEO, k as fallbackModelsFor, kt as recordRefusal, l as createFileRosterSeenStore, ln as deriveAtRestKey, lt as isConversationIdGateBody, m as piAiRuntimeInfo, mn as isEncryptedFieldWrapper, mt as openingEvidenceOfBody, n as clearHostHeartbeat, nt as WorkBuddyUpstreamClient, o as workbuddyHostHeartbeatPath, p as resolveCnGateway, pt as modelIdOfBody, q as workbuddyAccountId, qt as parseQueueAnswer, r as isHeartbeatProcessAlive, rt as channelGateMemberOf, s as writeHostHeartbeat, sn as WORKBUDDY_APP_EXECUTABLE_ENV, st as forceNeutralHead, t as WORKBUDDY_HOST_HEARTBEAT_FILENAME, tt as WorkBuddyCredentialRejectedError, un as deriveAtRestKeyId, ut as isCredentialRejectedError, v as describeDerivedDevices, vn as openEncryptedField, vt as perturbChannelFingerprints, w as FALLBACK_WORKBUDDY_MODELS, wn as writeFileAtomic, wt as REFUSES_OFF_MODEL_IDS, x as saveDeviceProfile, xt as requestEvidenceOf, y as isDeviceMode, yn as readAtRestKey, yt as prepareChatBody, z as defaultDesktopAuthDirs, zt as MAX_INPUT_IMAGE_BYTES } from "./host-heartbeat-CQ3ot5-F.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.20.
|
|
5
|
+
"version": "5.20.2",
|
|
6
6
|
"author": "dingminhua",
|
|
7
7
|
"copyright": "Copyright (c) 2026 LaoDing",
|
|
8
8
|
"license": "MIT",
|