dsh-connect-workbuddy 5.18.2 → 5.19.0
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 +150 -0
- package/README.en.md +7 -5
- package/README.md +11 -6
- package/lib/bin.js +1 -1
- package/lib/client.js +547 -216
- package/lib/{host-heartbeat-DFqDsnte.js → host-heartbeat-uMQXkyai.js} +1 -1
- package/lib/index.js +6 -6
- package/package.json +1 -1
|
@@ -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.
|
|
10063
|
+
const WORKBUDDY_CONNECT_VERSION = "5.19.0";
|
|
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-uMQXkyai.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";
|
|
@@ -12531,11 +12531,11 @@ const regionStateConfig = z.object({
|
|
|
12531
12531
|
* single shared switch would force them to either show a permanently empty
|
|
12532
12532
|
* row or lose the one that works.
|
|
12533
12533
|
*
|
|
12534
|
-
* ON by default (opt-out). The
|
|
12535
|
-
* a
|
|
12536
|
-
*
|
|
12537
|
-
* off forever for those users. The line carries its own
|
|
12538
|
-
* which is reachable exactly where the feature renders.
|
|
12534
|
+
* ON by default (opt-out). The configuration page is not reachable in every
|
|
12535
|
+
* host — a composition can omit the Settings shell, and even where it exists
|
|
12536
|
+
* the user has to know the page is there — so a feature that is off until
|
|
12537
|
+
* discovered would be off forever for those users. The line carries its own
|
|
12538
|
+
* `×` in the sidebar, which is reachable exactly where the feature renders.
|
|
12539
12539
|
*/
|
|
12540
12540
|
showCreditsInMainUi: z.boolean().default(true).description("Show this region's remaining credits at the DSH sidebar foot (opt-out; the line carries its own hide button)"),
|
|
12541
12541
|
creditPosition: z.union([z.const("composer"), z.const("stats")]).default("composer").description("Where the credit readout sits: \"composer\" = the composer tool row (default), \"stats\" = the ambient row below the composer card, next to the shell's own token pills. Choose \"stats\" if another plugin occupies the composer row."),
|
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.
|
|
5
|
+
"version": "5.19.0",
|
|
6
6
|
"author": "dingminhua",
|
|
7
7
|
"copyright": "Copyright (c) 2026 LaoDing",
|
|
8
8
|
"license": "MIT",
|