dsh-connect-workbuddy 5.18.2 → 5.18.3
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 +32 -0
- package/docs/DETAIL.md +1 -0
- package/docs/DETAIL.zh.md +1 -0
- package/lib/bin.js +1 -1
- package/lib/{host-heartbeat-DFqDsnte.js → host-heartbeat-DEB3nt25.js} +1 -1
- package/lib/index.js +1 -1
- package/locale/en.json +2 -1
- package/locale/zh.json +2 -1
- package/package.json +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.18.3 (2026-11-06)
|
|
4
|
+
|
|
5
|
+
### 改进
|
|
6
|
+
|
|
7
|
+
- **插件详情页不再把整篇 README 塞进 560px 滚动框(DSH 0.2.2+)**:宿主 0.2.2 新增「组合包详细介绍文档」,
|
|
8
|
+
找不到 `locale/<语言>.json` 的 `meta.detail` 时**回落渲染包内 README 全文**——本仓库的
|
|
9
|
+
`README.md` 有 743 行,于是插件页出现一大段带反引号、issue 编号与内部路径的长文。本版给
|
|
10
|
+
`locale/zh.json` / `locale/en.json` 各补一个 `meta.detail`,分别指向新建的
|
|
11
|
+
[`docs/DETAIL.zh.md`](docs/DETAIL.zh.md) 与 [`docs/DETAIL.md`](docs/DETAIL.md)(**92 / 96 字符**,
|
|
12
|
+
均 ≤100),只讲用户能感知的能力,不含实现细节;两份文件加入 `package.json` 的 `files` 白名单。
|
|
13
|
+
README 继续保持完整,npm / GitHub / 市场索引不受影响;宿主没有开关可关掉这个区块,详情页必须靠
|
|
14
|
+
`meta.detail` 接管。做法与完整坑位见 [`docs/PLUGIN-DETAIL-GUIDE.md`](docs/PLUGIN-DETAIL-GUIDE.md)
|
|
15
|
+
(可转发给其他插件作者照做)。
|
|
16
|
+
- **新增 [`tests/locale-meta.spec.ts`](tests/locale-meta.spec.ts) 的 4 条守卫**:每个 locale 都有
|
|
17
|
+
`meta.detail`(`en.json` 是语言链最终兜底,必须写)、路径合法且指向的文件真实存在、文件在
|
|
18
|
+
`files` 白名单内、正文按字符总数 ≤100。任一漂移都会让详情页静默退回 README 全文或显示
|
|
19
|
+
「错误 + 重试」,所以钉成测试而不是文档约定。
|
|
20
|
+
|
|
21
|
+
### Docs
|
|
22
|
+
|
|
23
|
+
- **新增 [`docs/DSH-0.2.2-RC1-FOLLOWUP.md`](docs/DSH-0.2.2-RC1-FOLLOWUP.md)**:0.2.1-rc.5 → 0.2.2-rc.1
|
|
24
|
+
的完整兼容复核(2623 个提交、vendor 全线升版)。结论是 **0.2.2-rc.1 无需改动代码**:本机实测
|
|
25
|
+
8 个槽位里 6 处在位、16 条 Web 路由 200/405 符合预期,`doctor` 认出宿主 bundle 在跑。记录在案的
|
|
26
|
+
三件事:`sessionProjections.stateOf(session, key)` 已弃用(仍返回值,只多一条一次性告警,建议下个
|
|
27
|
+
功能版换成 `snapshot(session, ['workingDirectory'])`)、`ResolvedPiAiProviderProfile` 新增两个必填
|
|
28
|
+
字段(运行时容忍缺省,只有升 devDeps 到 0.2.2 线时才会编译报错)、以及 `LlmModelInfo.badge` /
|
|
29
|
+
`llm/models-updated` 两个可选增强面。
|
|
30
|
+
- **新增 [`docs/PLUGIN-DETAIL-GUIDE.md`](docs/PLUGIN-DETAIL-GUIDE.md)**:给其他 DSH 插件作者照做的
|
|
31
|
+
100 字以内详情页写法(现象原因、5 步操作、字数算法、5 个坑、核对清单)。
|
|
32
|
+
- **[`tests/host-slot-surface.spec.ts`](tests/host-slot-surface.spec.ts) 补 1 条策略守卫**,钉住
|
|
33
|
+
`docs/DSH-0.2.2-RC1-FOLLOWUP.md` 仍可达、仍写着 `stateOf` 与 `maxRequestImages`。
|
|
34
|
+
|
|
3
35
|
## 5.18.2 (2026-11-05)
|
|
4
36
|
|
|
5
37
|
> **本版有破坏性变更**:`workbuddy_draw_image` 的 `size` 从可选改成**必填**,`image` 从
|
package/docs/DETAIL.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
WorkBuddy in DSH: live credit rates, per-model image/reasoning, account pool, check-in, credits.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
把本机已登录的 WorkBuddy 接入 DSH:每次刷新按上游目录读取每个模型的积分倍率,支持逐模型图片开关与默认推理强度、多账号切换与账号池自动换号,并提供每日签到和只读积分概览。
|
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-DEB3nt25.js";
|
|
3
3
|
import { readFile } from "node:fs/promises";
|
|
4
4
|
import { dirname, join } from "node:path";
|
|
5
5
|
import { realpathSync } from "node:fs";
|
|
@@ -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.18.
|
|
10063
|
+
const WORKBUDDY_CONNECT_VERSION = "5.18.3";
|
|
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-DEB3nt25.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/locale/en.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "dsh-connect-workbuddy",
|
|
4
|
-
"description": "Connects locally signed-in WorkBuddy models, CN and international alike, to DSH, reading each model's credit multiplier from the upstream catalog on every refresh, with per-model image input toggles, a per-model default reasoning level, account switching backed by an auto-failing-over pool, manual daily check-in, and read-only credit overviews shown as compact pills on the card and in the composer."
|
|
4
|
+
"description": "Connects locally signed-in WorkBuddy models, CN and international alike, to DSH, reading each model's credit multiplier from the upstream catalog on every refresh, with per-model image input toggles, a per-model default reasoning level, account switching backed by an auto-failing-over pool, manual daily check-in, and read-only credit overviews shown as compact pills on the card and in the composer.",
|
|
5
|
+
"detail": "docs/DETAIL.md"
|
|
5
6
|
}
|
|
6
7
|
}
|
package/locale/zh.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "dsh-connect-workbuddy",
|
|
4
|
-
"description": "将本机登录的 WorkBuddy 模型(国内版与国际版)接入 DSH,每次刷新按上游目录自动读取每个模型的积分倍率,支持逐模型图片输入开关与逐模型默认推理强度、多账号切换与账号池自动换号,并提供每日签到、卡片与输入框里的胶囊积分读数等只读积分概览。"
|
|
4
|
+
"description": "将本机登录的 WorkBuddy 模型(国内版与国际版)接入 DSH,每次刷新按上游目录自动读取每个模型的积分倍率,支持逐模型图片输入开关与逐模型默认推理强度、多账号切换与账号池自动换号,并提供每日签到、卡片与输入框里的胶囊积分读数等只读积分概览。",
|
|
5
|
+
"detail": "docs/DETAIL.zh.md"
|
|
5
6
|
}
|
|
6
7
|
}
|
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.18.
|
|
5
|
+
"version": "5.18.3",
|
|
6
6
|
"author": "dingminhua",
|
|
7
7
|
"copyright": "Copyright (c) 2026 LaoDing",
|
|
8
8
|
"license": "MIT",
|
|
@@ -43,6 +43,8 @@
|
|
|
43
43
|
"icons",
|
|
44
44
|
"locale",
|
|
45
45
|
"docs/assets",
|
|
46
|
+
"docs/DETAIL.zh.md",
|
|
47
|
+
"docs/DETAIL.md",
|
|
46
48
|
"screenshots.json",
|
|
47
49
|
"cordis.patch.yml",
|
|
48
50
|
"README.md",
|