dsh-connect-workbuddy 5.24.4 → 5.24.6
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 +87 -0
- package/lib/bin.js +1 -1
- package/lib/{host-heartbeat-BbJWHKQq.js → host-heartbeat-1ytBqhSr.js} +18 -16
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,94 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.24.6 (2026-11-15)
|
|
4
|
+
|
|
5
|
+
> 版本号是 **patch**:修一处「工具声明被悄悄放宽」的语义丢失,无新增配置项、无接口变化。
|
|
6
|
+
> 来自 PR #259(vb2250158 / 秋雨之忆)。
|
|
7
|
+
|
|
8
|
+
### 修复:显式 `additionalItems: false` 被丢成「接受任意元素」
|
|
9
|
+
|
|
10
|
+
draft-4 的 tuple `items` 转成 2020-12 的 `prefixItems` + `items` 时,尾部约束被一律写成 `items: {}`。
|
|
11
|
+
`{}` 的意思是「什么都可以」,但调用方可能写的是:
|
|
12
|
+
|
|
13
|
+
```json
|
|
14
|
+
{ "type": "array", "items": [{"type": "string"}], "additionalItems": false }
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
`additionalItems: false` 是一个**显式闭合声明**——「超出这个位置的东西一律不接受」。把它变成 `{}`
|
|
18
|
+
等于把约束**放宽**,工具会接受调用方明确说过不接受的多余元素。
|
|
19
|
+
|
|
20
|
+
这正是本项目在 5.24.2 的注释里写过、却在实现里做反了的事:「硬造一个约束比丢掉一个约束更糟」是对的,
|
|
21
|
+
但**丢掉调用方真实写下的约束同样是错的**,而且更隐蔽——它不报错,只是让声明变得比原来宽松。
|
|
22
|
+
|
|
23
|
+
现在显式的布尔值或 schema 尾部都会被保留:`false` → `items: false`,`true` → `items: true`,
|
|
24
|
+
对象 → `items: <schema>`(并递归归一),缺省 → 继续开放为 `{}`。
|
|
25
|
+
|
|
26
|
+
实测 `items: false` / `items: true` 在 `deepseek-v4.1-flash` 上全部 200,所以保留它们不引入新拒绝。
|
|
27
|
+
|
|
28
|
+
### 评审补充:空 tuple 时不能丢掉调用方自己的 `prefixItems`
|
|
29
|
+
|
|
30
|
+
原实现遇到空 tuple 会无条件 `delete prefixItems`。但「空 tuple」和「调用方写了非空 `prefixItems`」
|
|
31
|
+
是两件事:
|
|
32
|
+
|
|
33
|
+
```json
|
|
34
|
+
{ "items": [], "prefixItems": [{"type": "string"}], "additionalItems": false }
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
实测这个组合**原样发送会被拒**(11129),而**丢掉空 tuple、保留 `prefixItems`** 则 200。
|
|
38
|
+
所以该丢的是空 tuple,不是调用方真实的位置声明——删掉它会重现同一类「声明被放宽」的问题。
|
|
39
|
+
|
|
40
|
+
### 评审补充二:一条名不副实的守卫测试
|
|
41
|
+
|
|
42
|
+
本 PR 删掉了 5.24.5 的一条测试,而那条在当时是有效的变异守卫。恢复后**重新做变异**才发现:
|
|
43
|
+
它其实抓不到「禁用空 tuple 分支」——因为后跑的类型修复也会删掉空 `prefixItems`,两条代码路径的
|
|
44
|
+
可见输出完全相同。原注释写着「this is the mutation that matters」,**这句话是错的**。
|
|
45
|
+
|
|
46
|
+
已改成如实说明:这条测试钉的是最终结果,不是那个分支本身;分支仍然保留,理由是它防的是两遍处理的
|
|
47
|
+
顺序(万一将来类型修复不再删空 `prefixItems`,或跑到前面去,这个分支仍然是兜底)。
|
|
48
|
+
|
|
49
|
+
保留一条抓不住变异的测试是可以的,**但注释不能声称它抓得住**。
|
|
50
|
+
|
|
51
|
+
变异验证:尾部不认布尔 → 红 5 条;空 tuple 无条件删 `prefixItems` → 红 1 条。
|
|
52
|
+
|
|
53
|
+
## 5.24.5 (2026-11-14)
|
|
54
|
+
|
|
55
|
+
> 版本号是 **patch**:只改一句报错文案,外加一条测试。无行为变化。来自 issue #253 的收尾自查。
|
|
56
|
+
|
|
57
|
+
### 修复:11129 的报错文案落后于插件实际做的事
|
|
58
|
+
|
|
59
|
+
5.24.4 已经把「关键字的值类型写错」这一整类(36 种实测)修掉,但**用户看到的那句话还在只列原来的
|
|
60
|
+
4 种 draft-4 写法**。后果不是崩溃,是误导:如果他仍然撞上 11129,文案告诉他「插件已经试过这 4 种」,
|
|
61
|
+
而实际上插件试过的是一整类——读者会据此判断「那肯定是我这 4 种之外的问题」,方向就偏了。
|
|
62
|
+
|
|
63
|
+
这正是 `toolSchemaRejectAdvice` 存在的理由被违背了一次:它当初是为了替换上游那句「请新建任务,或换个
|
|
64
|
+
模型」,而它自己变成了新的不准确信息。
|
|
65
|
+
|
|
66
|
+
文案现在补上第二类,并且**加了三测试钉住这件事**——之前这条字符串**一条测试都没有**,所以它与实现
|
|
67
|
+
脱节时没有任何东西会变红。测试断言的是**性质**而不是措辞:插件做的每一类改写都必须被这句话点名;
|
|
68
|
+
不得声称是账号/额度/网络问题;必须承认「仍被拒说明还有别的写法」(不得假装穷举)。
|
|
69
|
+
|
|
70
|
+
变异验证:文案退回只列 4 类 → 红 1 条;删掉「仍被拒说明还有别的写法」→ 红 1 条。
|
|
71
|
+
|
|
72
|
+
### 仍未闭环的三件事(issue #253 报告者提出,本轮没有做)
|
|
73
|
+
|
|
74
|
+
写在这里以免它们因为「issue 已回复」而被当成已处理:
|
|
75
|
+
|
|
76
|
+
1. **按模型摘除 `tools` 的降级开关**。报告者建议为不接受工具 schema 的模型提供纯文本降级。没做:
|
|
77
|
+
这会让模型静默失去全部工具能力,比报错更难被发现,而且现在报错至少是准确的了。
|
|
78
|
+
2. **探针带代表性 tools**。没做,理由是具体的:探针结果会经 `probeUpdatesOf` → `exclusionOf` 直接让
|
|
79
|
+
账号**出池**,往里塞工具 schema 会把「某个工具定义有问题」记成「这个账号坏了」。
|
|
80
|
+
3. **`supportsToolCall` 仍无消费方**。报告者指出目录标志 parse 后没人用。属实。要接上它需要先决定
|
|
81
|
+
「标了支持但实际被拒」时怎么办,而这正是上面第 1 条要拍板的事。
|
|
82
|
+
|
|
3
83
|
## 5.24.4 (2026-11-14)
|
|
4
84
|
|
|
85
|
+
> **5.24.3 从未发布到 npm。** 它打了 tag、CI 通过、Release 建了草稿,但 `npm publish` 那一步被
|
|
86
|
+
> #253 的第二次报告打断,没有执行——registry 上 `5.24.3` 至今 404,`latest` 此前一直是 `5.24.2`。
|
|
87
|
+
> 这是流程上的缺口,不是发布失败。**5.24.4 已包含 5.24.3 的全部改动**(`isBodyOversizeRefusal`、
|
|
88
|
+
> `rescueCauseOf`、`BODY_OVERSIZE_TARGET_FRACTION` 与两个溢出标记都在发布包里核对过),
|
|
89
|
+
> 所以 5.24.3 不需要补发——它的 Release 保持草稿状态直接删除即可,用户装 5.24.4 就同时拿到 #258
|
|
90
|
+
> 与 #253 两次修复。与 5.24.0、5.21.5 一样的处置。
|
|
91
|
+
|
|
5
92
|
> 版本号是 **patch**:修一处「schema 里某个关键字的值类型不对就整个工具被拒」,并修好 5.24.2
|
|
6
93
|
> 自己引入的一处回归。无新增配置项、无接口变化。来自 issue #253 的第二份报告。
|
|
7
94
|
|
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-1ytBqhSr.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.
|
|
@@ -6155,10 +6162,8 @@ const SCHEMA_STRING_LIST_KEYWORDS = [
|
|
|
6155
6162
|
*
|
|
6156
6163
|
* A tuple `items` is a LIST; the modern spec splits it into `prefixItems` (the
|
|
6157
6164
|
* per-position schemas, same order) plus `items` (the schema for everything
|
|
6158
|
-
* past the end).
|
|
6159
|
-
*
|
|
6160
|
-
* correct — inventing `false` would FORBID extra elements, which the original
|
|
6161
|
-
* never said.
|
|
6165
|
+
* past the end). An explicit additionalItems boolean or schema remains the
|
|
6166
|
+
* tail constraint, including an empty tuple. An unspecified tail remains open.
|
|
6162
6167
|
*
|
|
6163
6168
|
* Measured: `prefixItems` + `items: {}` answers 200 on `deepseek-v4.1-flash`,
|
|
6164
6169
|
* `deepseek-v4-pro`, `glm-5.3`, `kimi-k3.1-pro` and `mimo-v2.6-pro` — the five
|
|
@@ -6169,15 +6174,12 @@ function normalizeItems(schema) {
|
|
|
6169
6174
|
const items = schema["items"];
|
|
6170
6175
|
if (!Array.isArray(items)) return;
|
|
6171
6176
|
if (items.length === 0) {
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
delete schema["
|
|
6175
|
-
|
|
6176
|
-
return;
|
|
6177
|
-
}
|
|
6178
|
-
if (schema["prefixItems"] === void 0) schema["prefixItems"] = items;
|
|
6177
|
+
const userPrefix = schema["prefixItems"];
|
|
6178
|
+
if (Array.isArray(userPrefix) && userPrefix.length > 0) schema["prefixItems"] = userPrefix;
|
|
6179
|
+
else delete schema["prefixItems"];
|
|
6180
|
+
} else if (schema["prefixItems"] === void 0) schema["prefixItems"] = items;
|
|
6179
6181
|
const tail = schema["additionalItems"];
|
|
6180
|
-
schema["items"] = typeof tail === "object" && tail !== null && !Array.isArray(tail) ? tail : {};
|
|
6182
|
+
schema["items"] = typeof tail === "boolean" || typeof tail === "object" && tail !== null && !Array.isArray(tail) ? tail : {};
|
|
6181
6183
|
delete schema["additionalItems"];
|
|
6182
6184
|
}
|
|
6183
6185
|
/**
|
|
@@ -11111,7 +11113,7 @@ function describeRosterSeenPayload(raw) {
|
|
|
11111
11113
|
//#endregion
|
|
11112
11114
|
//#region src/version.ts
|
|
11113
11115
|
/** The npm package version this build was produced from. */
|
|
11114
|
-
const WORKBUDDY_CONNECT_VERSION = "5.24.
|
|
11116
|
+
const WORKBUDDY_CONNECT_VERSION = "5.24.6";
|
|
11115
11117
|
//#endregion
|
|
11116
11118
|
//#region src/host-heartbeat.ts
|
|
11117
11119
|
/**
|
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-1ytBqhSr.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.6",
|
|
6
6
|
"author": "dingminhua",
|
|
7
7
|
"copyright": "Copyright (c) 2026 LaoDing",
|
|
8
8
|
"license": "MIT",
|