dsh-workbuddy-bridge 0.2.0 → 0.3.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.
@@ -0,0 +1,10 @@
1
+ # locale/ — 包展示元数据
2
+
3
+ - 职责:宿主直读的**包展示元数据**(插件页上的标题与一句话说明)。
4
+ 不是插件界面文案 —— 那在 [../src/client/locales.ts](../src/client/locales.ts),运行时经 `ctx.locale` 注册。
5
+ - `en.json`:`meta.title` + `meta.description` 的英文。宿主先解析这一份,它不在就不会读其他语言文件。
6
+ - `zh.json`:同一键集的中文。
7
+ - 生效条件:随包发布(`package.json` 的 `files` 收了 `locale/*.json`),宿主从 `<包名>/locale/<语言>.json` 读;
8
+ 不进 `lib/`,本仓代码一个字节都不读它。
9
+ - 被谁依赖:宿主插件页;发布面断言在 [../scripts/check-release.mjs](../scripts/check-release.mjs)。
10
+ - 回落链、字段形状、改动波及面(规则层)→ 见 [AGENTS.md](AGENTS.md)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "dsh-workbuddy-bridge",
3
3
  "displayName": "DSH WorkBuddy Bridge",
4
4
  "description": "将 WorkBuddy 桌面 App 包含的模型自动接入 DeepSeek Harness — bring WorkBuddy desktop app models into DeepSeek Harness with zero configuration.",
5
- "version": "0.2.0",
5
+ "version": "0.3.1",
6
6
  "author": "zlZayn",
7
7
  "keywords": [
8
8
  "dsh",
@@ -20,17 +20,16 @@
20
20
  },
21
21
  "icon": "./icon.svg",
22
22
  "main": "lib/index.js",
23
- "types": "lib/types/index.d.ts",
23
+ "types": "./lib/index.d.ts",
24
24
  "bin": {
25
25
  "dsh-workbuddy-bridge": "lib/bin.js"
26
26
  },
27
27
  "exports": {
28
28
  ".": {
29
- "types": "./lib/types/index.d.ts",
29
+ "types": "./lib/index.d.ts",
30
30
  "default": "./lib/index.js"
31
31
  },
32
32
  "./client": {
33
- "types": "./lib/types/client/index.d.ts",
34
33
  "default": "./lib/client.js"
35
34
  },
36
35
  "./cordis.patch.yml": "./cordis.patch.yml",
@@ -68,7 +67,8 @@
68
67
  "@deepseek-ai/dsh-client-ui-renderer",
69
68
  "@deepseek-ai/dsh-client-ui-settings",
70
69
  "@deepseek-ai/dsh-client-ui-conversation",
71
- "@deepseek-ai/dsh-client-ui-model-selection"
70
+ "@deepseek-ai/dsh-client-ui-model-selection",
71
+ "@deepseek-ai/dsh-client-ui-chat"
72
72
  ],
73
73
  "platform": "web"
74
74
  }
@@ -80,6 +80,7 @@
80
80
  "@deepseek-ai/dsh-attachment": ">=0.1.7-rc.2",
81
81
  "@deepseek-ai/dsh-client-locale": ">=0.1.7-rc.2",
82
82
  "@deepseek-ai/dsh-client-store": ">=0.1.7-rc.2",
83
+ "@deepseek-ai/dsh-client-ui-chat": ">=0.1.7-rc.2",
83
84
  "@deepseek-ai/dsh-client-ui-plugin-manager": ">=0.1.7-rc.2",
84
85
  "@deepseek-ai/dsh-client-ui-primitives": ">=0.1.7-rc.2",
85
86
  "@deepseek-ai/dsh-client-ui-renderer": ">=0.1.7-rc.2",
@@ -97,36 +98,42 @@
97
98
  },
98
99
  "devDependencies": {
99
100
  "@deepseek-ai/cordis": "4.0.4",
100
- "@deepseek-ai/dsh-api-remotes": "0.1.7-rc.2",
101
- "@deepseek-ai/dsh-atomic-write": "0.1.7-rc.2",
102
- "@deepseek-ai/dsh-attachment": "0.1.7-rc.2",
103
- "@deepseek-ai/dsh-client-locale": "0.1.7-rc.2",
104
- "@deepseek-ai/dsh-client-store": "0.1.7-rc.2",
105
- "@deepseek-ai/dsh-client-ui-conversation": "0.1.7-rc.2",
106
- "@deepseek-ai/dsh-client-ui-model-selection": "0.1.7-rc.2",
107
- "@deepseek-ai/dsh-client-ui-plugin-manager": "0.1.7-rc.2",
108
- "@deepseek-ai/dsh-client-ui-primitives": "0.1.7-rc.2",
109
- "@deepseek-ai/dsh-client-ui-renderer": "0.1.7-rc.2",
110
- "@deepseek-ai/dsh-client-ui-session": "0.1.7-rc.2",
111
- "@deepseek-ai/dsh-client-ui-settings": "0.1.7-rc.2",
112
- "@deepseek-ai/dsh-client-ui-slots": "0.1.7-rc.2",
113
- "@deepseek-ai/dsh-home-paths": "0.1.7-rc.2",
114
- "@deepseek-ai/dsh-host-webserver": "0.1.7-rc.2",
115
- "@deepseek-ai/dsh-llm": "0.1.7-rc.2",
116
- "@deepseek-ai/dsh-llm-pi-ai": "0.1.7-rc.2",
117
- "@deepseek-ai/dsh-settings": "0.1.7-rc.2",
118
- "@deepseek-ai/dsh-util-code-language": "0.1.7-rc.2",
119
- "@deepseek-ai/dsh-util-workspace-path": "0.1.7-rc.2",
101
+ "@deepseek-ai/dsh-api-remotes": "0.2.0-rc.2",
102
+ "@deepseek-ai/dsh-atomic-write": "0.2.0-rc.2",
103
+ "@deepseek-ai/dsh-attachment": "0.2.0-rc.2",
104
+ "@deepseek-ai/dsh-client-locale": "0.2.0-rc.2",
105
+ "@deepseek-ai/dsh-client-store": "0.2.0-rc.2",
106
+ "@deepseek-ai/dsh-client-ui-chat": "0.2.0-rc.2",
107
+ "@deepseek-ai/dsh-client-ui-conversation": "0.2.0-rc.2",
108
+ "@deepseek-ai/dsh-client-ui-model-selection": "0.2.0-rc.2",
109
+ "@deepseek-ai/dsh-client-ui-plugin-manager": "0.2.0-rc.2",
110
+ "@deepseek-ai/dsh-client-ui-primitives": "0.2.0-rc.2",
111
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.0-rc.2",
112
+ "@deepseek-ai/dsh-client-ui-session": "0.2.0-rc.2",
113
+ "@deepseek-ai/dsh-client-ui-settings": "0.2.0-rc.2",
114
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.2",
115
+ "@deepseek-ai/dsh-home-paths": "0.2.0-rc.2",
116
+ "@deepseek-ai/dsh-host-webserver": "0.2.0-rc.2",
117
+ "@deepseek-ai/dsh-llm": "0.2.0-rc.2",
118
+ "@deepseek-ai/dsh-llm-pi-ai": "0.2.0-rc.2",
119
+ "@deepseek-ai/dsh-settings": "0.2.0-rc.2",
120
+ "@deepseek-ai/dsh-util-code-language": "0.2.0-rc.2",
121
+ "@deepseek-ai/dsh-util-workspace-path": "0.2.0-rc.2",
120
122
  "@deepseek-ai/schemastery": "3.18.4",
121
- "@earendil-works/pi-ai": "0.85.1",
123
+ "@earendil-works/pi-ai": "^0.87.1",
124
+ "@eslint/js": "^10.0.1",
122
125
  "@shikijs/langs": "^4.4.3",
123
126
  "@types/node": "^22.20.0",
124
127
  "@types/react": "~18.3.1",
125
128
  "@types/react-dom": "^18.3.7",
126
129
  "@types/react-test-renderer": "^18.3.1",
130
+ "@vitest/coverage-v8": "^4.1.11",
127
131
  "anser": "^2.3.5",
128
132
  "clsx": "^2.1.1",
129
133
  "diff": "^9.0.0",
134
+ "eslint": "^10.11.0",
135
+ "eslint-config-prettier": "^10.1.8",
136
+ "globals": "^17.12.0",
130
137
  "immer": "^11.1.18",
131
138
  "katex": "^0.16.47",
132
139
  "lightningcss": "^1.33.0",
@@ -141,6 +148,7 @@
141
148
  "micromark-util-classify-character": "^2.0.1",
142
149
  "micromark-util-sanitize-uri": "^2.0.1",
143
150
  "micromark-util-symbol": "^2.0.1",
151
+ "prettier": "^3.9.9",
144
152
  "react": "^18.2.0",
145
153
  "react-dom": "^18.3.1",
146
154
  "react-test-renderer": "18.3.1",
@@ -148,15 +156,19 @@
148
156
  "simple-icons": "^16.32.0",
149
157
  "tsdown": "^0.22.2",
150
158
  "typescript": "^5.9.3",
159
+ "typescript-eslint": "^8.70.1",
151
160
  "unrun": "^0.3.1",
152
- "vitest": "^4.1.8",
161
+ "vitest": "^4.1.11",
153
162
  "zustand": "^5.0.15"
154
163
  },
155
164
  "scripts": {
156
165
  "build": "tsdown",
157
166
  "test": "vitest run",
167
+ "lint": "eslint .",
168
+ "format": "prettier --write .",
169
+ "format:check": "prettier --check .",
158
170
  "typecheck": "tsc -p tsconfig.json && tsc -p tsconfig.client.json",
159
171
  "check:release": "node scripts/check-release.mjs",
160
- "check": "pnpm run typecheck && pnpm run test && pnpm run build"
172
+ "check": "pnpm run typecheck && pnpm run build && pnpm run test"
161
173
  }
162
174
  }