dsh-workbuddy-connect 0.2.2 → 0.2.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/README.en.md CHANGED
@@ -22,23 +22,41 @@ Expand the card to see the account, token validity, and remaining credit.
22
22
 
23
23
  Prerequisite: the WorkBuddy desktop app is installed and signed in (the plugin reuses the app's sign-in state and follows account switches automatically).
24
24
 
25
+ The plugin runs under all three DSH interfaces: **Web**, **Desktop**, and **TUI**. Pick the install command that matches the profile you use.
26
+
25
27
  ```sh
26
- # npm (recommended; ships prebuilt artifacts)
28
+ # Web (recommended; ships prebuilt artifacts)
27
29
  dsh plugin --profile web add dsh-workbuddy-connect
30
+ dsh web
28
31
 
29
- # or install from the GitHub source
32
+ # or install the Web version from the GitHub source
30
33
  dsh plugin --profile web add github:corrinehu/dsh-workbuddy-connect
31
-
32
34
  dsh web
33
35
  ```
34
36
 
37
+ ```sh
38
+ # Desktop (the DSH Desktop app)
39
+ dsh plugin --profile desktop add dsh-workbuddy-connect
40
+ dsh --profile desktop
41
+ ```
42
+
43
+ ```sh
44
+ # TUI (terminal UI)
45
+ dsh plugin --profile dsh-tui add dsh-workbuddy-connect
46
+ dsh --profile dsh-tui
47
+ ```
48
+
49
+ > Note: the `dsh-tui` profile requires pnpm 11 to install packages (a different pnpm on PATH fails with `ERR_PNPM_UNEXPECTED_STORE` — use `npx pnpm@11`); verified on dsh `0.1.1-rc.2`.
50
+
51
+ After installing, switch to a WorkBuddy model in the model picker of the interface you chose. On Web, the settings card (Settings → Plugins → DSH WorkBuddy Connect) shows the account, token validity, and remaining credit; on TUI, configure `authFile` in `/settings`.
52
+
35
53
  ## CLI
36
54
 
37
- `dsh plugin --profile web exec dsh-workbuddy-connect status`: sign-in state and remaining credit (`--json` for machine-readable output; `doctor` for diagnostics and `logout` for credential cleanup are also available).
55
+ `dsh plugin --profile <web|desktop|dsh-tui> exec dsh-workbuddy-connect status`: sign-in state and remaining credit (`--json` for machine-readable output; `doctor` for diagnostics and `logout` for credential cleanup are also available).
38
56
 
39
57
  ## Known limitations
40
58
 
41
- - Verified on macOS with the DSH Web profile (`0.1.1-rc.2`+, Node 22+). The default credential paths on Windows / Linux are unverified — point the `WORKBUDDY_AUTH_FILE` environment variable at the actual location if needed.
59
+ - Verified on macOS with the DSH Web / Desktop / TUI profile (`0.1.1-rc.2`+, Node 22+). The default credential paths on Windows / Linux are unverified — point the `WORKBUDDY_AUTH_FILE` environment variable at the actual location if needed.
42
60
  - Relies on WorkBuddy client interfaces (not a public API); the plugin may need updates as WorkBuddy changes.
43
61
 
44
62
  ## Disclaimer
package/README.md CHANGED
@@ -28,23 +28,41 @@
28
28
 
29
29
  前置:已安装并登录 WorkBuddy 桌面 App(插件复用 App 的登录状态,账号切换自动跟随)。
30
30
 
31
+ 插件在三种 DSH 界面下均可运行:**Web**、**Desktop**、**TUI**。根据你使用的 profile 选对应命令安装。
32
+
31
33
  ```sh
32
- # npm(推荐,自带预构建产物)
34
+ # Web(推荐,自带预构建产物)
33
35
  dsh plugin --profile web add dsh-workbuddy-connect
36
+ dsh web
34
37
 
35
- # 或从 GitHub 源码安装
38
+ # 或从 GitHub 源码安装 Web 版
36
39
  dsh plugin --profile web add github:corrinehu/dsh-workbuddy-connect
37
-
38
40
  dsh web
39
41
  ```
40
42
 
43
+ ```sh
44
+ # Desktop(DSH Desktop 桌面版)
45
+ dsh plugin --profile desktop add dsh-workbuddy-connect
46
+ dsh --profile desktop
47
+ ```
48
+
49
+ ```sh
50
+ # TUI(终端界面)
51
+ dsh plugin --profile dsh-tui add dsh-workbuddy-connect
52
+ dsh --profile dsh-tui
53
+ ```
54
+
55
+ > 提示:`dsh-tui` profile 需用 pnpm 11 安装(PATH 里是其他版本会报 `ERR_PNPM_UNEXPECTED_STORE`,用 `npx pnpm@11` 即可);已验证 dsh `0.1.1-rc.2`。
56
+
57
+ 安装后,在对应界面的模型选择器里切换到 WorkBuddy 模型即可使用;Web 下设置卡片(设置 → 插件 → DSH WorkBuddy Connect)可查看账号信息、令牌有效期与剩余积分,TUI 下可在 `/settings` 里配置 `authFile`。
58
+
41
59
  ## 命令行
42
60
 
43
- `dsh plugin --profile web exec dsh-workbuddy-connect status`:登录状态与剩余积分(`--json` 输出机器可读格式;另有 `doctor` 诊断、`logout` 清理凭据)。
61
+ `dsh plugin --profile <web|desktop|dsh-tui> exec dsh-workbuddy-connect status`:登录状态与剩余积分(`--json` 输出机器可读格式;另有 `doctor` 诊断、`logout` 清理凭据)。
44
62
 
45
63
  ## 已知限制
46
64
 
47
- - 在 macOS 与 DSH Web profile(`0.1.1-rc.2`+、Node 22+)下验证通过;Windows / Linux 的凭据默认路径未经验证,必要时可通过环境变量 `WORKBUDDY_AUTH_FILE` 指定实际位置。
65
+ - 在 macOS 的 DSH Web / Desktop / TUI profile(`0.1.1-rc.2`+、Node 22+)下验证通过;Windows / Linux 的凭据默认路径未经验证,必要时可通过环境变量 `WORKBUDDY_AUTH_FILE` 指定实际位置。
48
66
  - 依赖 WorkBuddy 客户端接口(非官方开放 API),WorkBuddy 更新后插件可能需要随之调整。
49
67
 
50
68
  ## 免责声明
package/lib/bin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { _ as WorkBuddyCredentialStore, a as readHostHeartbeat, c as WORKBUDDY_CONNECT_VERSION, l as WorkBuddyUpstreamClient, o as workbuddyHostHeartbeatPath, p as FALLBACK_WORKBUDDY_MODELS, r as isHeartbeatProcessAlive, x as workbuddyOwnAuthPath } from "./host-heartbeat-CYxNM1p2.js";
2
+ import { _ as WorkBuddyCredentialStore, a as readHostHeartbeat, c as WORKBUDDY_CONNECT_VERSION, l as WorkBuddyUpstreamClient, o as workbuddyHostHeartbeatPath, p as FALLBACK_WORKBUDDY_MODELS, r as isHeartbeatProcessAlive, x as workbuddyOwnAuthPath } from "./host-heartbeat-C80jXKyk.js";
3
3
  import { realpathSync } from "node:fs";
4
4
  import { fileURLToPath } from "node:url";
5
5
  //#region src/bin.ts
@@ -701,7 +701,7 @@ var WorkBuddyUpstreamClient = class {
701
701
  };
702
702
  //#endregion
703
703
  //#region src/version.ts
704
- const WORKBUDDY_CONNECT_VERSION = "0.2.1";
704
+ const WORKBUDDY_CONNECT_VERSION = "0.2.3";
705
705
  //#endregion
706
706
  //#region src/host-heartbeat.ts
707
707
  /**
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as WorkBuddyCredentialStore, a as readHostHeartbeat, b as parseWorkBuddyAuth, d as prepareChatBody, f as regionOf, g as WORKBUDDY_AUTH_FILE_ENV, h as WORKBUDDY_AUTH_FILENAME, i as processStartTimeMs, l as WorkBuddyUpstreamClient, m as WorkBuddyCatalog, n as clearHostHeartbeat, o as workbuddyHostHeartbeatPath, p as FALLBACK_WORKBUDDY_MODELS, r as isHeartbeatProcessAlive, s as writeHostHeartbeat, t as WORKBUDDY_HOST_HEARTBEAT_FILENAME, u as classifyUpstreamError, v as defaultDesktopAuthCandidates, x as workbuddyOwnAuthPath, y as defaultDesktopAuthPath } from "./host-heartbeat-CYxNM1p2.js";
1
+ import { _ as WorkBuddyCredentialStore, a as readHostHeartbeat, b as parseWorkBuddyAuth, d as prepareChatBody, f as regionOf, g as WORKBUDDY_AUTH_FILE_ENV, h as WORKBUDDY_AUTH_FILENAME, i as processStartTimeMs, l as WorkBuddyUpstreamClient, m as WorkBuddyCatalog, n as clearHostHeartbeat, o as workbuddyHostHeartbeatPath, p as FALLBACK_WORKBUDDY_MODELS, r as isHeartbeatProcessAlive, s as writeHostHeartbeat, t as WORKBUDDY_HOST_HEARTBEAT_FILENAME, u as classifyUpstreamError, v as defaultDesktopAuthCandidates, x as workbuddyOwnAuthPath, y as defaultDesktopAuthPath } from "./host-heartbeat-C80jXKyk.js";
2
2
  import z from "@deepseek-ai/schemastery";
3
3
  import { installSettingsSection, settingsNamespace } from "@deepseek-ai/dsh-settings";
4
4
  import { createProvider } from "@earendil-works/pi-ai";
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "dsh-workbuddy-connect",
3
3
  "displayName": "DSH WorkBuddy Connect",
4
4
  "description": "将 WorkBuddy 桌面 App 包含的模型自动接入 DeepSeek Harness — bring WorkBuddy desktop app models into DeepSeek Harness with zero configuration.",
5
- "version": "0.2.2",
5
+ "version": "0.2.3",
6
6
  "author": "corrinehu",
7
7
  "keywords": [
8
8
  "dsh-plugin",
@@ -21,6 +21,7 @@
21
21
  "dsh-workbuddy-connect": "lib/bin.js"
22
22
  },
23
23
  "scripts": {
24
+ "prepack": "npm run build",
24
25
  "build": "tsdown",
25
26
  "test": "vitest run",
26
27
  "typecheck": "tsc -p tsconfig.json && tsc -p tsconfig.client.json",
@@ -99,4 +100,4 @@
99
100
  "typescript": "^5.9.3",
100
101
  "vitest": "^4.1.8"
101
102
  }
102
- }
103
+ }