dsh-connect-workbuddy 5.24.4 → 5.24.5
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
CHANGED
|
@@ -1,7 +1,44 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.24.5 (2026-11-14)
|
|
4
|
+
|
|
5
|
+
> 版本号是 **patch**:只改一句报错文案,外加一条测试。无行为变化。来自 issue #253 的收尾自查。
|
|
6
|
+
|
|
7
|
+
### 修复:11129 的报错文案落后于插件实际做的事
|
|
8
|
+
|
|
9
|
+
5.24.4 已经把「关键字的值类型写错」这一整类(36 种实测)修掉,但**用户看到的那句话还在只列原来的
|
|
10
|
+
4 种 draft-4 写法**。后果不是崩溃,是误导:如果他仍然撞上 11129,文案告诉他「插件已经试过这 4 种」,
|
|
11
|
+
而实际上插件试过的是一整类——读者会据此判断「那肯定是我这 4 种之外的问题」,方向就偏了。
|
|
12
|
+
|
|
13
|
+
这正是 `toolSchemaRejectAdvice` 存在的理由被违背了一次:它当初是为了替换上游那句「请新建任务,或换个
|
|
14
|
+
模型」,而它自己变成了新的不准确信息。
|
|
15
|
+
|
|
16
|
+
文案现在补上第二类,并且**加了三测试钉住这件事**——之前这条字符串**一条测试都没有**,所以它与实现
|
|
17
|
+
脱节时没有任何东西会变红。测试断言的是**性质**而不是措辞:插件做的每一类改写都必须被这句话点名;
|
|
18
|
+
不得声称是账号/额度/网络问题;必须承认「仍被拒说明还有别的写法」(不得假装穷举)。
|
|
19
|
+
|
|
20
|
+
变异验证:文案退回只列 4 类 → 红 1 条;删掉「仍被拒说明还有别的写法」→ 红 1 条。
|
|
21
|
+
|
|
22
|
+
### 仍未闭环的三件事(issue #253 报告者提出,本轮没有做)
|
|
23
|
+
|
|
24
|
+
写在这里以免它们因为「issue 已回复」而被当成已处理:
|
|
25
|
+
|
|
26
|
+
1. **按模型摘除 `tools` 的降级开关**。报告者建议为不接受工具 schema 的模型提供纯文本降级。没做:
|
|
27
|
+
这会让模型静默失去全部工具能力,比报错更难被发现,而且现在报错至少是准确的了。
|
|
28
|
+
2. **探针带代表性 tools**。没做,理由是具体的:探针结果会经 `probeUpdatesOf` → `exclusionOf` 直接让
|
|
29
|
+
账号**出池**,往里塞工具 schema 会把「某个工具定义有问题」记成「这个账号坏了」。
|
|
30
|
+
3. **`supportsToolCall` 仍无消费方**。报告者指出目录标志 parse 后没人用。属实。要接上它需要先决定
|
|
31
|
+
「标了支持但实际被拒」时怎么办,而这正是上面第 1 条要拍板的事。
|
|
32
|
+
|
|
3
33
|
## 5.24.4 (2026-11-14)
|
|
4
34
|
|
|
35
|
+
> **5.24.3 从未发布到 npm。** 它打了 tag、CI 通过、Release 建了草稿,但 `npm publish` 那一步被
|
|
36
|
+
> #253 的第二次报告打断,没有执行——registry 上 `5.24.3` 至今 404,`latest` 此前一直是 `5.24.2`。
|
|
37
|
+
> 这是流程上的缺口,不是发布失败。**5.24.4 已包含 5.24.3 的全部改动**(`isBodyOversizeRefusal`、
|
|
38
|
+
> `rescueCauseOf`、`BODY_OVERSIZE_TARGET_FRACTION` 与两个溢出标记都在发布包里核对过),
|
|
39
|
+
> 所以 5.24.3 不需要补发——它的 Release 保持草稿状态直接删除即可,用户装 5.24.4 就同时拿到 #258
|
|
40
|
+
> 与 #253 两次修复。与 5.24.0、5.21.5 一样的处置。
|
|
41
|
+
|
|
5
42
|
> 版本号是 **patch**:修一处「schema 里某个关键字的值类型不对就整个工具被拒」,并修好 5.24.2
|
|
6
43
|
> 自己引入的一处回归。无新增配置项、无接口变化。来自 issue #253 的第二份报告。
|
|
7
44
|
|
package/lib/bin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { Cn as findWorkbuddyAppExecutableWithSource, F as WorkBuddyCredentialStore, J as workbuddyOwnAuthPath, Mn as resolveDshHome, N as WORKBUDDY_AUTH_FILE_ENV, P as WORKBUDDY_VAULT_DIRNAME, R as defaultDesktopAuthCandidates, T as FALLBACK_WORKBUDDY_MODELS_GLOBAL, W as legacyWorkbuddyOwnAuthPath, X as APP_VERSION, Y as workbuddyVaultDir, _n as WORKBUDDY_APP_EXECUTABLE_ENV, a as readHostHeartbeat, b as readDeviceSettings, c as WORKBUDDY_CONNECT_VERSION, d as rosterSeenPath, dn as ensureDeviceSalt, et as DEFAULT_WIRE_PROFILE, f as WORKBUDDY_CN_BASE_ENV, fn as readDeviceSalt, g as createTuringSdk, gn as protectCredentialDirectory, hn as inspectCredentialDirectory, jn as hostPeersInfo, ln as WORKBUDDY_DEVICE_TOKEN_FILE_ENV, m as piAiRuntimeInfo, o as workbuddyHostHeartbeatPath, p as resolveCnGateway, pn as deriveDeviceId, r as isHeartbeatProcessAlive, rt as WorkBuddyUpstreamClient, st as describeRequestHeaderNames, u as describeRosterSeenPayload, un as readDeviceTokenFile, w as FALLBACK_WORKBUDDY_MODELS, z as defaultDesktopAuthDirs } from "./host-heartbeat-
|
|
2
|
+
import { Cn as findWorkbuddyAppExecutableWithSource, F as WorkBuddyCredentialStore, J as workbuddyOwnAuthPath, Mn as resolveDshHome, N as WORKBUDDY_AUTH_FILE_ENV, P as WORKBUDDY_VAULT_DIRNAME, R as defaultDesktopAuthCandidates, T as FALLBACK_WORKBUDDY_MODELS_GLOBAL, W as legacyWorkbuddyOwnAuthPath, X as APP_VERSION, Y as workbuddyVaultDir, _n as WORKBUDDY_APP_EXECUTABLE_ENV, a as readHostHeartbeat, b as readDeviceSettings, c as WORKBUDDY_CONNECT_VERSION, d as rosterSeenPath, dn as ensureDeviceSalt, et as DEFAULT_WIRE_PROFILE, f as WORKBUDDY_CN_BASE_ENV, fn as readDeviceSalt, g as createTuringSdk, gn as protectCredentialDirectory, hn as inspectCredentialDirectory, jn as hostPeersInfo, ln as WORKBUDDY_DEVICE_TOKEN_FILE_ENV, m as piAiRuntimeInfo, o as workbuddyHostHeartbeatPath, p as resolveCnGateway, pn as deriveDeviceId, r as isHeartbeatProcessAlive, rt as WorkBuddyUpstreamClient, st as describeRequestHeaderNames, u as describeRosterSeenPayload, un as readDeviceTokenFile, w as FALLBACK_WORKBUDDY_MODELS, z as defaultDesktopAuthDirs } from "./host-heartbeat-COoAT4ZR.js";
|
|
3
3
|
import { readFile } from "node:fs/promises";
|
|
4
4
|
import { dirname, join } from "node:path";
|
|
5
5
|
import { realpathSync } from "node:fs";
|
|
@@ -3934,10 +3934,17 @@ function isToolSchemaRejectBody(body) {
|
|
|
3934
3934
|
* Deliberately a FIXED LIST rather than a parse of the offending body: the
|
|
3935
3935
|
* upstream never names the keyword, and the plugin has already rewritten every
|
|
3936
3936
|
* one of these on the way out. If a request still gets `11129` after that
|
|
3937
|
-
* rewrite, the cause is a keyword this build does not know — so the advice has
|
|
3938
|
-
* say "something else", not repeat the
|
|
3937
|
+
* rewrite, the cause is a keyword this build does not know — so the advice has
|
|
3938
|
+
* to say "something else", not repeat the shapes it already handled.
|
|
3939
|
+
*
|
|
3940
|
+
* KEPT IN STEP WITH THE REWRITE, by hand. It listed only the four draft-4
|
|
3941
|
+
* shapes for a while AFTER the type repair had landed, so a reader who hit a
|
|
3942
|
+
* surviving `11129` was told the plugin had tried four things when it had tried
|
|
3943
|
+
* the whole class — the exact "confident, wrong, and unhelpful" reply that this
|
|
3944
|
+
* function exists to replace. When `normalizeMetaSchemaTypes` learns a new
|
|
3945
|
+
* family, this string has to learn it too.
|
|
3939
3946
|
*/
|
|
3940
|
-
const TOOL_SCHEMA_REWRITTEN_KEYWORDS = "元组式 `items`、布尔 `exclusiveMinimum`/`exclusiveMaximum`、`required` 非数组或含重复项、外部 `$ref`";
|
|
3947
|
+
const TOOL_SCHEMA_REWRITTEN_KEYWORDS = "元组式 `items`、布尔 `exclusiveMinimum`/`exclusiveMaximum`、`required` 非数组或含重复项、外部 `$ref`,以及关键字的值类型写错(如 `title: 1`、`minimum: \"0\"`、`allOf: {}`、`type: []`、`enum`/`examples` 写成标量)";
|
|
3941
3948
|
/**
|
|
3942
3949
|
* One actionable sentence for a `11129` refusal, naming what was already fixed
|
|
3943
3950
|
* and what the user can still do.
|
|
@@ -11111,7 +11118,7 @@ function describeRosterSeenPayload(raw) {
|
|
|
11111
11118
|
//#endregion
|
|
11112
11119
|
//#region src/version.ts
|
|
11113
11120
|
/** The npm package version this build was produced from. */
|
|
11114
|
-
const WORKBUDDY_CONNECT_VERSION = "5.24.
|
|
11121
|
+
const WORKBUDDY_CONNECT_VERSION = "5.24.5";
|
|
11115
11122
|
//#endregion
|
|
11116
11123
|
//#region src/host-heartbeat.ts
|
|
11117
11124
|
/**
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as CREDENTIAL_REJECTED_CODE, $t as isWatermarkFreeImageModel, A as withoutRouters, An as workbuddyAppExecutableCandidates, At as REFUSES_OFF_MODEL_IDS, B as defaultDesktopAuthPath, Bt as parseSupportedSecondsRange, C as setDeviceMode, Ct as regionOf, D as applyContextBudgets, Dn as macosNestedAppBundles, Dt as attachBusyLevels, E as WorkBuddyCatalog, En as macosBundleExecutable, Et as toolSchemaRejectAdvice, F as WorkBuddyCredentialStore, Ft as recordRefusal, G as parseWorkBuddyAuth, Gt as IMAGE_TAG_TEXT_TO_IMAGE, H as isEncryptedCredentialError, Ht as resolveVideoParams, I as WorkBuddyEncryptedCredentialError, It as withEffectiveOff, J as workbuddyOwnAuthPath, Jt as imageDataUrl, K as preferredAccountName, Kt as MAX_INPUT_IMAGE_BYTES, L as authFileName, Lt as VIDEO_TAG_IMAGE_TO_VIDEO, M as WORKBUDDY_AUTH_FILENAME, Mn as resolveDshHome, Mt as lastRefusalFor, N as WORKBUDDY_AUTH_FILE_ENV, Nn as withFileLock, Nt as offDefaultFor, O as deriveCatalog, On as openEncryptedField, Ot as promoBadgeTone, Pn as writeFileAtomic, Pt as offRefused, Q as CONTEXT_OVERFLOW_MARKER, Qt as isBareBase64Image, R as defaultDesktopAuthCandidates, Rt as VIDEO_TAG_TEXT_TO_VIDEO, S as saveDeviceSdkSettings, Sn as findWorkbuddyAppExecutable, St as prepareChatBody, T as FALLBACK_WORKBUDDY_MODELS_GLOBAL, Tn as isWorkbuddyBundle, Tt as rewriteSessionTitleModel, U as isVaultAccountId, Ut as IMAGE_SIZE_LIMITS_WIDE, V as hasEncryptedCredentialFields, Vt as pickVideoModel, W as legacyWorkbuddyOwnAuthPath, Wt as IMAGE_TAG_IMAGE_TO_IMAGE, X as APP_VERSION, Xt as imageModelChoices, Yt as imageMimeForPath, Z as BODY_OVERSIZE_MARKER, Zt as imageSizeLimitsOf, _ as createDeviceProfileLookup, _n as WORKBUDDY_APP_EXECUTABLE_ENV, _t as openingEvidenceOfBody, a as readHostHeartbeat, an as pruneTempDir, at as classifyUpstreamError, b as readDeviceSettings, bn as deriveAtRestKeyId, bt as parseUpstreamModel, c as WORKBUDDY_CONNECT_VERSION, cn as nativeModalityOf, ct as forceNeutralHead, dt as isConversationIdGateBody, en as parseImageDataUrl, ft as isCredentialRejectedError, g as createTuringSdk, gt as modelIdOfBody, h as createDeviceSdkPort, ht as knownRegionOf, i as processStartTimeMs, in as queueNoticeText, it as channelGateMemberOf, j as ENCRYPTED_CREDENTIAL_CODE, jt as defaultOffModelIds, k as fallbackModelsFor, kn as readAtRestKey, kt as selectPromoBadge, l as createFileRosterSeenStore, lt as isBodyOversizeRefusal, m as piAiRuntimeInfo, mn as isDeviceId, mt as isToolSchemaRejectBody, n as clearHostHeartbeat, nn as sniffImageMime, nt as WorkBuddyCredentialRejectedError, o as workbuddyHostHeartbeatPath, on as NATIVE_MODALITY_BY_MODEL_ID, ot as declaredTools, p as resolveCnGateway, pt as isFirstMessageGateBody, q as workbuddyAccountId, qt as WorkBuddyImageError, r as isHeartbeatProcessAlive, rn as parseQueueAnswer, rt as WorkBuddyUpstreamClient, s as writeHostHeartbeat, sn as imageDefaultFor, t as WORKBUDDY_HOST_HEARTBEAT_FILENAME, tn as pickMediaModel, tt as WORKBUDDY_FALLBACK_SYSTEM_PROMPT, ut as isContextTooLongBody, v as describeDerivedDevices, vn as clearAtRestKeyCache, vt as parseCreditMultiplier, w as FALLBACK_WORKBUDDY_MODELS, wn as isEncryptedFieldWrapper, wt as requestEvidenceOf, x as saveDeviceProfile, xn as fetchAtRestKeyPayload, xt as perturbChannelFingerprints, y as isDeviceMode, yn as deriveAtRestKey, yt as parseReasoning, z as defaultDesktopAuthDirs, zt as WorkBuddyVideoError } from "./host-heartbeat-
|
|
1
|
+
import { $ as CREDENTIAL_REJECTED_CODE, $t as isWatermarkFreeImageModel, A as withoutRouters, An as workbuddyAppExecutableCandidates, At as REFUSES_OFF_MODEL_IDS, B as defaultDesktopAuthPath, Bt as parseSupportedSecondsRange, C as setDeviceMode, Ct as regionOf, D as applyContextBudgets, Dn as macosNestedAppBundles, Dt as attachBusyLevels, E as WorkBuddyCatalog, En as macosBundleExecutable, Et as toolSchemaRejectAdvice, F as WorkBuddyCredentialStore, Ft as recordRefusal, G as parseWorkBuddyAuth, Gt as IMAGE_TAG_TEXT_TO_IMAGE, H as isEncryptedCredentialError, Ht as resolveVideoParams, I as WorkBuddyEncryptedCredentialError, It as withEffectiveOff, J as workbuddyOwnAuthPath, Jt as imageDataUrl, K as preferredAccountName, Kt as MAX_INPUT_IMAGE_BYTES, L as authFileName, Lt as VIDEO_TAG_IMAGE_TO_VIDEO, M as WORKBUDDY_AUTH_FILENAME, Mn as resolveDshHome, Mt as lastRefusalFor, N as WORKBUDDY_AUTH_FILE_ENV, Nn as withFileLock, Nt as offDefaultFor, O as deriveCatalog, On as openEncryptedField, Ot as promoBadgeTone, Pn as writeFileAtomic, Pt as offRefused, Q as CONTEXT_OVERFLOW_MARKER, Qt as isBareBase64Image, R as defaultDesktopAuthCandidates, Rt as VIDEO_TAG_TEXT_TO_VIDEO, S as saveDeviceSdkSettings, Sn as findWorkbuddyAppExecutable, St as prepareChatBody, T as FALLBACK_WORKBUDDY_MODELS_GLOBAL, Tn as isWorkbuddyBundle, Tt as rewriteSessionTitleModel, U as isVaultAccountId, Ut as IMAGE_SIZE_LIMITS_WIDE, V as hasEncryptedCredentialFields, Vt as pickVideoModel, W as legacyWorkbuddyOwnAuthPath, Wt as IMAGE_TAG_IMAGE_TO_IMAGE, X as APP_VERSION, Xt as imageModelChoices, Yt as imageMimeForPath, Z as BODY_OVERSIZE_MARKER, Zt as imageSizeLimitsOf, _ as createDeviceProfileLookup, _n as WORKBUDDY_APP_EXECUTABLE_ENV, _t as openingEvidenceOfBody, a as readHostHeartbeat, an as pruneTempDir, at as classifyUpstreamError, b as readDeviceSettings, bn as deriveAtRestKeyId, bt as parseUpstreamModel, c as WORKBUDDY_CONNECT_VERSION, cn as nativeModalityOf, ct as forceNeutralHead, dt as isConversationIdGateBody, en as parseImageDataUrl, ft as isCredentialRejectedError, g as createTuringSdk, gt as modelIdOfBody, h as createDeviceSdkPort, ht as knownRegionOf, i as processStartTimeMs, in as queueNoticeText, it as channelGateMemberOf, j as ENCRYPTED_CREDENTIAL_CODE, jt as defaultOffModelIds, k as fallbackModelsFor, kn as readAtRestKey, kt as selectPromoBadge, l as createFileRosterSeenStore, lt as isBodyOversizeRefusal, m as piAiRuntimeInfo, mn as isDeviceId, mt as isToolSchemaRejectBody, n as clearHostHeartbeat, nn as sniffImageMime, nt as WorkBuddyCredentialRejectedError, o as workbuddyHostHeartbeatPath, on as NATIVE_MODALITY_BY_MODEL_ID, ot as declaredTools, p as resolveCnGateway, pt as isFirstMessageGateBody, q as workbuddyAccountId, qt as WorkBuddyImageError, r as isHeartbeatProcessAlive, rn as parseQueueAnswer, rt as WorkBuddyUpstreamClient, s as writeHostHeartbeat, sn as imageDefaultFor, t as WORKBUDDY_HOST_HEARTBEAT_FILENAME, tn as pickMediaModel, tt as WORKBUDDY_FALLBACK_SYSTEM_PROMPT, ut as isContextTooLongBody, v as describeDerivedDevices, vn as clearAtRestKeyCache, vt as parseCreditMultiplier, w as FALLBACK_WORKBUDDY_MODELS, wn as isEncryptedFieldWrapper, wt as requestEvidenceOf, x as saveDeviceProfile, xn as fetchAtRestKeyPayload, xt as perturbChannelFingerprints, y as isDeviceMode, yn as deriveAtRestKey, yt as parseReasoning, z as defaultDesktopAuthDirs, zt as WorkBuddyVideoError } from "./host-heartbeat-COoAT4ZR.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.24.
|
|
5
|
+
"version": "5.24.5",
|
|
6
6
|
"author": "dingminhua",
|
|
7
7
|
"copyright": "Copyright (c) 2026 LaoDing",
|
|
8
8
|
"license": "MIT",
|