dsh-connect-workbuddy 5.23.0 → 5.23.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 +34 -0
- package/lib/bin.js +1 -1
- package/lib/client.js +2 -1
- package/lib/{host-heartbeat-CRS-1LBA.js → host-heartbeat-BfSlXO19.js} +3 -2
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.23.1 (2026-11-13)
|
|
4
|
+
|
|
5
|
+
> 版本号是 **patch**:修一个明确的 bug,无新增配置项、无接口变化。
|
|
6
|
+
|
|
7
|
+
### 修复:Hy4 正式版选上后仍然无法识别图片(issue #255)
|
|
8
|
+
|
|
9
|
+
用户报告选了 hy4 之后贴图无效。**不是模型不行,是能力表漏了一代模型。**
|
|
10
|
+
|
|
11
|
+
插件有一张「模型原生多模态能力」表(`src/native-modality.ts`),按**精确 id** 记录每个模型能不能读图;
|
|
12
|
+
刷新模型目录时,只有被标为 `multimodal` 的才会默认勾选图片框。而实时名册里 Hy4 正式版的 id 是
|
|
13
|
+
`hy4free`(免费档)和 `hy4std`(付费档),**两个都不在表里** —— 于是判为 `unknown`、不预勾选,
|
|
14
|
+
宿主按「这个模型不支持图片」处理。
|
|
15
|
+
|
|
16
|
+
**实测**(CN 网关,本构建自己的凭据,2026-11-13):一张 512×512 纯红 PNG 问「主色是什么」,
|
|
17
|
+
两个 id 都答 `Red`,且答案在 `content` 而不只是推理过程。上游目录也写着
|
|
18
|
+
`"Latest Flagship Model: Agentic and Multimodal Expertise"`。
|
|
19
|
+
|
|
20
|
+
**为什么不能靠族关系或沿用旧键**:表里原本有一条 `hy4-preview: 'text'`,那是**预览版**,模型卡写的是
|
|
21
|
+
`pipeline_tag: text-generation`,确实读不了图;正式版(2026-11-04 发布)才引入视觉理解。所以:
|
|
22
|
+
|
|
23
|
+
- 按前缀 / 族匹配会把预览版的 `text` 结论传给正式版,正好复现这个 bug;
|
|
24
|
+
- 保留 `hy4-preview` 那个键也不对 —— 它已不在实时名册里,留着等于继续断言「这个家族是纯文本」。
|
|
25
|
+
|
|
26
|
+
该键已移除,由实测结论取代。两个正式版 id 都显式列出,因为匹配用的是精确 id:只勾一个档位会让另一个
|
|
27
|
+
继续拒图,且用户看不出原因。
|
|
28
|
+
|
|
29
|
+
`docs/DESIGN.md` 的核验表同步更新(A 档由 5 条增至 7 条,CN 预勾选数 21 个里 7 → 9)。
|
|
30
|
+
|
|
31
|
+
### 说明:这个坑藏得比较深
|
|
32
|
+
|
|
33
|
+
第一轮排查时我拿 `hy4-preview` 测,看到上游回 `unsupported_image_format` 就下了「hy4 不支持图片」的
|
|
34
|
+
结论 —— 那是错的,预览版和正式版是两代模型。把它写进 CHANGELOG 是因为同类误判还会再犯:
|
|
35
|
+
**模型 id 换代而显示名不变时,能力表里那一行会静默过期**,而症状是「用户以为是自己没设置对」。
|
|
36
|
+
|
|
3
37
|
## 5.23.0 (2026-11-13)
|
|
4
38
|
|
|
5
39
|
> 版本号是 **minor**:开发依赖栈整体换代到 DSH `0.2.2-rc.2` 线,结清上一轮复核留下的
|
package/lib/bin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as DEFAULT_WIRE_PROFILE, Dn as hostPeersInfo, F as WorkBuddyCredentialStore, J as workbuddyOwnAuthPath, N as WORKBUDDY_AUTH_FILE_ENV, On as resolveDshHome, P as WORKBUDDY_VAULT_DIRNAME, R as defaultDesktopAuthCandidates, T as FALLBACK_WORKBUDDY_MODELS_GLOBAL, W as legacyWorkbuddyOwnAuthPath, X as APP_VERSION, Y as workbuddyVaultDir, a as readHostHeartbeat, an as WORKBUDDY_DEVICE_TOKEN_FILE_ENV, b as readDeviceSettings, c as WORKBUDDY_CONNECT_VERSION, cn as readDeviceSalt, d as rosterSeenPath, dn as inspectCredentialDirectory, f as WORKBUDDY_CN_BASE_ENV, fn as protectCredentialDirectory, g as createTuringSdk, ln as deriveDeviceId, m as piAiRuntimeInfo, nt as WorkBuddyUpstreamClient, o as workbuddyHostHeartbeatPath, on as readDeviceTokenFile, ot as describeRequestHeaderNames, p as resolveCnGateway, pn as WORKBUDDY_APP_EXECUTABLE_ENV, r as isHeartbeatProcessAlive, sn as ensureDeviceSalt, u as describeRosterSeenPayload, w as FALLBACK_WORKBUDDY_MODELS, yn as findWorkbuddyAppExecutableWithSource, z as defaultDesktopAuthDirs } from "./host-heartbeat-
|
|
2
|
+
import { $ as DEFAULT_WIRE_PROFILE, Dn as hostPeersInfo, F as WorkBuddyCredentialStore, J as workbuddyOwnAuthPath, N as WORKBUDDY_AUTH_FILE_ENV, On as resolveDshHome, P as WORKBUDDY_VAULT_DIRNAME, R as defaultDesktopAuthCandidates, T as FALLBACK_WORKBUDDY_MODELS_GLOBAL, W as legacyWorkbuddyOwnAuthPath, X as APP_VERSION, Y as workbuddyVaultDir, a as readHostHeartbeat, an as WORKBUDDY_DEVICE_TOKEN_FILE_ENV, b as readDeviceSettings, c as WORKBUDDY_CONNECT_VERSION, cn as readDeviceSalt, d as rosterSeenPath, dn as inspectCredentialDirectory, f as WORKBUDDY_CN_BASE_ENV, fn as protectCredentialDirectory, g as createTuringSdk, ln as deriveDeviceId, m as piAiRuntimeInfo, nt as WorkBuddyUpstreamClient, o as workbuddyHostHeartbeatPath, on as readDeviceTokenFile, ot as describeRequestHeaderNames, p as resolveCnGateway, pn as WORKBUDDY_APP_EXECUTABLE_ENV, r as isHeartbeatProcessAlive, sn as ensureDeviceSalt, u as describeRosterSeenPayload, w as FALLBACK_WORKBUDDY_MODELS, yn as findWorkbuddyAppExecutableWithSource, z as defaultDesktopAuthDirs } from "./host-heartbeat-BfSlXO19.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
|
@@ -3023,7 +3023,6 @@ window.__ModuleLoader__.load({
|
|
|
3023
3023
|
"glm-5.2": "text",
|
|
3024
3024
|
"glm-5.3": "text",
|
|
3025
3025
|
"hy3": "text",
|
|
3026
|
-
"hy4-preview": "text",
|
|
3027
3026
|
"deepseek-v4.1-flash": "multimodal",
|
|
3028
3027
|
"glm-5.3-flash": "multimodal",
|
|
3029
3028
|
"glm-5v-turbo": "multimodal",
|
|
@@ -3031,6 +3030,8 @@ window.__ModuleLoader__.load({
|
|
|
3031
3030
|
"kimi-k2.7": "multimodal",
|
|
3032
3031
|
"kimi-k3-1": "multimodal",
|
|
3033
3032
|
"minimax-m3": "multimodal",
|
|
3033
|
+
"hy4free": "multimodal",
|
|
3034
|
+
"hy4std": "multimodal",
|
|
3034
3035
|
"minimax-m3.1-flash": "multimodal",
|
|
3035
3036
|
"space-bunny": "multimodal"
|
|
3036
3037
|
};
|
|
@@ -1744,7 +1744,6 @@ const NATIVE_MODALITY_BY_MODEL_ID = {
|
|
|
1744
1744
|
"glm-5.2": "text",
|
|
1745
1745
|
"glm-5.3": "text",
|
|
1746
1746
|
"hy3": "text",
|
|
1747
|
-
"hy4-preview": "text",
|
|
1748
1747
|
"deepseek-v4.1-flash": "multimodal",
|
|
1749
1748
|
"glm-5.3-flash": "multimodal",
|
|
1750
1749
|
"glm-5v-turbo": "multimodal",
|
|
@@ -1752,6 +1751,8 @@ const NATIVE_MODALITY_BY_MODEL_ID = {
|
|
|
1752
1751
|
"kimi-k2.7": "multimodal",
|
|
1753
1752
|
"kimi-k3-1": "multimodal",
|
|
1754
1753
|
"minimax-m3": "multimodal",
|
|
1754
|
+
"hy4free": "multimodal",
|
|
1755
|
+
"hy4std": "multimodal",
|
|
1755
1756
|
"minimax-m3.1-flash": "multimodal",
|
|
1756
1757
|
"space-bunny": "multimodal"
|
|
1757
1758
|
};
|
|
@@ -10601,7 +10602,7 @@ function describeRosterSeenPayload(raw) {
|
|
|
10601
10602
|
//#endregion
|
|
10602
10603
|
//#region src/version.ts
|
|
10603
10604
|
/** The npm package version this build was produced from. */
|
|
10604
|
-
const WORKBUDDY_CONNECT_VERSION = "5.23.
|
|
10605
|
+
const WORKBUDDY_CONNECT_VERSION = "5.23.1";
|
|
10605
10606
|
//#endregion
|
|
10606
10607
|
//#region src/host-heartbeat.ts
|
|
10607
10608
|
/**
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as parseQueueAnswer, A as withoutRouters, An as writeFileAtomic, At as offRefused, B as defaultDesktopAuthPath, Bt as IMAGE_TAG_IMAGE_TO_IMAGE, C as setDeviceMode, Cn as macosNestedAppBundles, Ct as attachBusyLevels, D as applyContextBudgets, Dt as defaultOffModelIds, E as WorkBuddyCatalog, En as workbuddyAppExecutableCandidates, Et as REFUSES_OFF_MODEL_IDS, F as WorkBuddyCredentialStore, Ft as WorkBuddyVideoError, G as parseWorkBuddyAuth, Gt as imageMimeForPath, H as isEncryptedCredentialError, Ht as MAX_INPUT_IMAGE_BYTES, I as WorkBuddyEncryptedCredentialError, It as parseSupportedSecondsRange, J as workbuddyOwnAuthPath, Jt as isBareBase64Image, K as preferredAccountName, Kt as imageModelChoices, L as authFileName, Lt as pickVideoModel, M as WORKBUDDY_AUTH_FILENAME, Mt as withEffectiveOff, N as WORKBUDDY_AUTH_FILE_ENV, Nt as VIDEO_TAG_IMAGE_TO_VIDEO, O as deriveCatalog, On as resolveDshHome, Ot as lastRefusalFor, Pt as VIDEO_TAG_TEXT_TO_VIDEO, Q as CREDENTIAL_REJECTED_CODE, Qt as sniffImageMime, R as defaultDesktopAuthCandidates, Rt as resolveVideoParams, S as saveDeviceSdkSettings, Sn as macosBundleExecutable, St as rewriteSessionTitleModel, T as FALLBACK_WORKBUDDY_MODELS_GLOBAL, Tn as readAtRestKey, Tt as selectPromoBadge, U as isVaultAccountId, Ut as WorkBuddyImageError, V as hasEncryptedCredentialFields, Vt as IMAGE_TAG_TEXT_TO_IMAGE, W as legacyWorkbuddyOwnAuthPath, Wt as imageDataUrl, X as APP_VERSION, Xt as parseImageDataUrl, Yt as isWatermarkFreeImageModel, Z as CONTEXT_OVERFLOW_MARKER, Zt as pickMediaModel, _ as createDeviceProfileLookup, _n as fetchAtRestKeyPayload, _t as parseUpstreamModel, a as readHostHeartbeat, at as declaredTools, b as readDeviceSettings, bn as isEncryptedFieldWrapper, bt as regionOf, c as WORKBUDDY_CONNECT_VERSION, ct as isContextTooLongBody, dt as isFirstMessageGateBody, en as queueNoticeText, et as WORKBUDDY_FALLBACK_SYSTEM_PROMPT, ft as knownRegionOf, g as createTuringSdk, gn as deriveAtRestKeyId, gt as parseReasoning, h as createDeviceSdkPort, hn as deriveAtRestKey, ht as parseCreditMultiplier, i as processStartTimeMs, in as nativeModalityOf, it as classifyUpstreamError, j as ENCRYPTED_CREDENTIAL_CODE, jt as recordRefusal, k as fallbackModelsFor, kn as withFileLock, kt as offDefaultFor, l as createFileRosterSeenStore, lt as isConversationIdGateBody, m as piAiRuntimeInfo, mn as clearAtRestKeyCache, mt as openingEvidenceOfBody, n as clearHostHeartbeat, nn as NATIVE_MODALITY_BY_MODEL_ID, nt as WorkBuddyUpstreamClient, o as workbuddyHostHeartbeatPath, p as resolveCnGateway, pn as WORKBUDDY_APP_EXECUTABLE_ENV, pt as modelIdOfBody, q as workbuddyAccountId, qt as imageSizeLimitsOf, r as isHeartbeatProcessAlive, rn as imageDefaultFor, rt as channelGateMemberOf, s as writeHostHeartbeat, st as forceNeutralHead, t as WORKBUDDY_HOST_HEARTBEAT_FILENAME, tn as pruneTempDir, tt as WorkBuddyCredentialRejectedError, un as isDeviceId, ut as isCredentialRejectedError, v as describeDerivedDevices, vn as findWorkbuddyAppExecutable, vt as perturbChannelFingerprints, w as FALLBACK_WORKBUDDY_MODELS, wn as openEncryptedField, wt as promoBadgeTone, x as saveDeviceProfile, xn as isWorkbuddyBundle, xt as requestEvidenceOf, y as isDeviceMode, yt as prepareChatBody, z as defaultDesktopAuthDirs, zt as IMAGE_SIZE_LIMITS_WIDE } from "./host-heartbeat-
|
|
1
|
+
import { $t as parseQueueAnswer, A as withoutRouters, An as writeFileAtomic, At as offRefused, B as defaultDesktopAuthPath, Bt as IMAGE_TAG_IMAGE_TO_IMAGE, C as setDeviceMode, Cn as macosNestedAppBundles, Ct as attachBusyLevels, D as applyContextBudgets, Dt as defaultOffModelIds, E as WorkBuddyCatalog, En as workbuddyAppExecutableCandidates, Et as REFUSES_OFF_MODEL_IDS, F as WorkBuddyCredentialStore, Ft as WorkBuddyVideoError, G as parseWorkBuddyAuth, Gt as imageMimeForPath, H as isEncryptedCredentialError, Ht as MAX_INPUT_IMAGE_BYTES, I as WorkBuddyEncryptedCredentialError, It as parseSupportedSecondsRange, J as workbuddyOwnAuthPath, Jt as isBareBase64Image, K as preferredAccountName, Kt as imageModelChoices, L as authFileName, Lt as pickVideoModel, M as WORKBUDDY_AUTH_FILENAME, Mt as withEffectiveOff, N as WORKBUDDY_AUTH_FILE_ENV, Nt as VIDEO_TAG_IMAGE_TO_VIDEO, O as deriveCatalog, On as resolveDshHome, Ot as lastRefusalFor, Pt as VIDEO_TAG_TEXT_TO_VIDEO, Q as CREDENTIAL_REJECTED_CODE, Qt as sniffImageMime, R as defaultDesktopAuthCandidates, Rt as resolveVideoParams, S as saveDeviceSdkSettings, Sn as macosBundleExecutable, St as rewriteSessionTitleModel, T as FALLBACK_WORKBUDDY_MODELS_GLOBAL, Tn as readAtRestKey, Tt as selectPromoBadge, U as isVaultAccountId, Ut as WorkBuddyImageError, V as hasEncryptedCredentialFields, Vt as IMAGE_TAG_TEXT_TO_IMAGE, W as legacyWorkbuddyOwnAuthPath, Wt as imageDataUrl, X as APP_VERSION, Xt as parseImageDataUrl, Yt as isWatermarkFreeImageModel, Z as CONTEXT_OVERFLOW_MARKER, Zt as pickMediaModel, _ as createDeviceProfileLookup, _n as fetchAtRestKeyPayload, _t as parseUpstreamModel, a as readHostHeartbeat, at as declaredTools, b as readDeviceSettings, bn as isEncryptedFieldWrapper, bt as regionOf, c as WORKBUDDY_CONNECT_VERSION, ct as isContextTooLongBody, dt as isFirstMessageGateBody, en as queueNoticeText, et as WORKBUDDY_FALLBACK_SYSTEM_PROMPT, ft as knownRegionOf, g as createTuringSdk, gn as deriveAtRestKeyId, gt as parseReasoning, h as createDeviceSdkPort, hn as deriveAtRestKey, ht as parseCreditMultiplier, i as processStartTimeMs, in as nativeModalityOf, it as classifyUpstreamError, j as ENCRYPTED_CREDENTIAL_CODE, jt as recordRefusal, k as fallbackModelsFor, kn as withFileLock, kt as offDefaultFor, l as createFileRosterSeenStore, lt as isConversationIdGateBody, m as piAiRuntimeInfo, mn as clearAtRestKeyCache, mt as openingEvidenceOfBody, n as clearHostHeartbeat, nn as NATIVE_MODALITY_BY_MODEL_ID, nt as WorkBuddyUpstreamClient, o as workbuddyHostHeartbeatPath, p as resolveCnGateway, pn as WORKBUDDY_APP_EXECUTABLE_ENV, pt as modelIdOfBody, q as workbuddyAccountId, qt as imageSizeLimitsOf, r as isHeartbeatProcessAlive, rn as imageDefaultFor, rt as channelGateMemberOf, s as writeHostHeartbeat, st as forceNeutralHead, t as WORKBUDDY_HOST_HEARTBEAT_FILENAME, tn as pruneTempDir, tt as WorkBuddyCredentialRejectedError, un as isDeviceId, ut as isCredentialRejectedError, v as describeDerivedDevices, vn as findWorkbuddyAppExecutable, vt as perturbChannelFingerprints, w as FALLBACK_WORKBUDDY_MODELS, wn as openEncryptedField, wt as promoBadgeTone, x as saveDeviceProfile, xn as isWorkbuddyBundle, xt as requestEvidenceOf, y as isDeviceMode, yt as prepareChatBody, z as defaultDesktopAuthDirs, zt as IMAGE_SIZE_LIMITS_WIDE } from "./host-heartbeat-BfSlXO19.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.23.
|
|
5
|
+
"version": "5.23.1",
|
|
6
6
|
"author": "dingminhua",
|
|
7
7
|
"copyright": "Copyright (c) 2026 LaoDing",
|
|
8
8
|
"license": "MIT",
|