@michengai/dsh-codex-ui 1.1.21 → 1.1.23
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 +47 -0
- package/CHANGELOG.zh-CN.md +47 -0
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/lib/index.mjs +104 -21
- package/package.json +37 -38
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,53 @@
|
|
|
4
4
|
|
|
5
5
|
This changelog records recent releases of DSH Codex UI and its one-click installer. Earlier changes remain available in the [Git history](https://github.com/MichengAI/dsh-codex-ui/commits/main).
|
|
6
6
|
|
|
7
|
+
## 1.1.23 - 2026-09-29
|
|
8
|
+
|
|
9
|
+
- Installing or updating other plugins from the About page in official DeepSeek Harness Desktop no longer crashes the desktop host.
|
|
10
|
+
- Those installs are written to the current desktop profile. Restart the app once afterward so the new plugin can load.
|
|
11
|
+
|
|
12
|
+
## suite-installer-v1.0.29 - 2026-09-29
|
|
13
|
+
|
|
14
|
+
Install or maintain 11 first-party plugins in one step. Included plugins and versions:
|
|
15
|
+
|
|
16
|
+
- `@michengai/dsh-archive-manager@1.0.7`
|
|
17
|
+
- `@michengai/dsh-codex-ui@1.1.21`
|
|
18
|
+
- `@michengai/dsh-skills-manager@1.1.5`
|
|
19
|
+
- `@michengai/dsh-agency-agents@1.0.6`
|
|
20
|
+
- `@michengai/dsh-im-connect@0.1.57`
|
|
21
|
+
- `@michengai/dsh-automation@0.1.52`
|
|
22
|
+
- `@michengai/dsh-btw@0.1.14`
|
|
23
|
+
- `@michengai/dsh-simplify@0.1.11`
|
|
24
|
+
- `@michengai/dsh-pua@0.3.19`
|
|
25
|
+
- `@michengai/dsh-code-review@0.1.8`
|
|
26
|
+
- `@michengai/dsh-codex-pet@0.1.11`
|
|
27
|
+
|
|
28
|
+
The installer uses these exact versions for reproducible installation.
|
|
29
|
+
|
|
30
|
+
## 1.1.22 - 2026-09-29
|
|
31
|
+
|
|
32
|
+
- Host support now starts at DSH `0.1.2-rc.1` and lists every release candidate through `0.2.0-rc.1`: `0.1.2-rc.1`, `0.1.5-rc.1`, `0.1.5-rc.2`, `0.1.5-rc.3`, `0.1.7-rc.1`, `0.1.7-rc.2`, and `0.2.0-rc.1`. This adds the previously missing `0.1.5-rc.3` and matches the other first-party plugins; `0.1.0-rc.8` and `0.1.1-rc.2` are no longer declared.
|
|
33
|
+
- Development dependencies are pinned to DSH `0.2.0-rc.1`, so the plugin installs on the newest release candidate instead of being disabled by the host compatibility check.
|
|
34
|
+
- Dropped the abandoned `@deepseek-ai/dsh-client-runtime` development dependency. The settings lifecycle spec now mounts the production `SlotRegistry` from the official `@deepseek-ai/dsh-client-ui-renderer/client` bundle, so the package is gone from peers, client inject, and tests alike.
|
|
35
|
+
|
|
36
|
+
## suite-installer-v1.0.28 - 2026-09-27
|
|
37
|
+
|
|
38
|
+
Install or maintain 11 first-party plugins in one step. Included plugins and versions:
|
|
39
|
+
|
|
40
|
+
- `@michengai/dsh-archive-manager@1.0.6`
|
|
41
|
+
- `@michengai/dsh-codex-ui@1.1.20`
|
|
42
|
+
- `@michengai/dsh-skills-manager@1.1.4`
|
|
43
|
+
- `@michengai/dsh-agency-agents@1.0.5`
|
|
44
|
+
- `@michengai/dsh-im-connect@0.1.55`
|
|
45
|
+
- `@michengai/dsh-automation@0.1.51`
|
|
46
|
+
- `@michengai/dsh-btw@0.1.13`
|
|
47
|
+
- `@michengai/dsh-simplify@0.1.10`
|
|
48
|
+
- `@michengai/dsh-pua@0.3.18`
|
|
49
|
+
- `@michengai/dsh-code-review@0.1.7`
|
|
50
|
+
- `@michengai/dsh-codex-pet@0.1.10`
|
|
51
|
+
|
|
52
|
+
The installer uses these exact versions for reproducible installation.
|
|
53
|
+
|
|
7
54
|
## 1.1.21 - 2026-09-27
|
|
8
55
|
|
|
9
56
|
- Updating or installing on DSH `0.1.7-rc.2` is no longer rejected by the compatibility check.
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -4,6 +4,53 @@
|
|
|
4
4
|
|
|
5
5
|
本日志记录 DSH Codex UI 及其一键安装器的最近发布;更早的变更可查看 [Git 提交历史](https://github.com/MichengAI/dsh-codex-ui/commits/main)。
|
|
6
6
|
|
|
7
|
+
## 1.1.23 - 2026-09-29
|
|
8
|
+
|
|
9
|
+
- 在官方 DeepSeek Harness 桌面端的关于页安装或更新其他插件时,不再把桌面宿主打崩。
|
|
10
|
+
- 安装会写入当前桌面 profile。装完后需要手动重启一次,新插件才会加载。
|
|
11
|
+
|
|
12
|
+
## suite-installer-v1.0.29 - 2026-09-29
|
|
13
|
+
|
|
14
|
+
一键维护安装 11 个自研插件。包含以下插件及版本:
|
|
15
|
+
|
|
16
|
+
- `@michengai/dsh-archive-manager@1.0.7`
|
|
17
|
+
- `@michengai/dsh-codex-ui@1.1.21`
|
|
18
|
+
- `@michengai/dsh-skills-manager@1.1.5`
|
|
19
|
+
- `@michengai/dsh-agency-agents@1.0.6`
|
|
20
|
+
- `@michengai/dsh-im-connect@0.1.57`
|
|
21
|
+
- `@michengai/dsh-automation@0.1.52`
|
|
22
|
+
- `@michengai/dsh-btw@0.1.14`
|
|
23
|
+
- `@michengai/dsh-simplify@0.1.11`
|
|
24
|
+
- `@michengai/dsh-pua@0.3.19`
|
|
25
|
+
- `@michengai/dsh-code-review@0.1.8`
|
|
26
|
+
- `@michengai/dsh-codex-pet@0.1.11`
|
|
27
|
+
|
|
28
|
+
安装器使用这些精确版本执行安装,确保可复现。
|
|
29
|
+
|
|
30
|
+
## 1.1.22 - 2026-09-29
|
|
31
|
+
|
|
32
|
+
- 宿主兼容范围从 DSH `0.1.2-rc.1` 起,逐个列出直到 `0.2.0-rc.1` 的全部候选版:`0.1.2-rc.1`、`0.1.5-rc.1`、`0.1.5-rc.2`、`0.1.5-rc.3`、`0.1.7-rc.1`、`0.1.7-rc.2` 与 `0.2.0-rc.1`。这补上了此前漏掉的 `0.1.5-rc.3`,并与其余自研插件保持一致;`0.1.0-rc.8` 与 `0.1.1-rc.2` 不再声明支持。
|
|
33
|
+
- 开发依赖钉到 DSH `0.2.0-rc.1`,否则最新候选版宿主会因兼容检查直接停用本插件。
|
|
34
|
+
- 移除已停更的 `@deepseek-ai/dsh-client-runtime` 开发依赖。设置生命周期用例改为挂载官方 `@deepseek-ai/dsh-client-ui-renderer/client` 装配包里的生产 `SlotRegistry`,该包已从 peer、客户端 inject 与测试中彻底消失。
|
|
35
|
+
|
|
36
|
+
## suite-installer-v1.0.28 - 2026-09-27
|
|
37
|
+
|
|
38
|
+
一键维护安装 11 个自研插件。包含以下插件及版本:
|
|
39
|
+
|
|
40
|
+
- `@michengai/dsh-archive-manager@1.0.6`
|
|
41
|
+
- `@michengai/dsh-codex-ui@1.1.20`
|
|
42
|
+
- `@michengai/dsh-skills-manager@1.1.4`
|
|
43
|
+
- `@michengai/dsh-agency-agents@1.0.5`
|
|
44
|
+
- `@michengai/dsh-im-connect@0.1.55`
|
|
45
|
+
- `@michengai/dsh-automation@0.1.51`
|
|
46
|
+
- `@michengai/dsh-btw@0.1.13`
|
|
47
|
+
- `@michengai/dsh-simplify@0.1.10`
|
|
48
|
+
- `@michengai/dsh-pua@0.3.18`
|
|
49
|
+
- `@michengai/dsh-code-review@0.1.7`
|
|
50
|
+
- `@michengai/dsh-codex-pet@0.1.10`
|
|
51
|
+
|
|
52
|
+
安装器使用这些精确版本执行安装,确保可复现。
|
|
53
|
+
|
|
7
54
|
## 1.1.21 - 2026-09-27
|
|
8
55
|
|
|
9
56
|
- 在 DSH `0.1.7-rc.2` 上可以正常更新安装,不再被兼容检查拒绝。
|
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ Working across several projects and conversations in DSH Web? DSH Codex UI helps
|
|
|
24
24
|
|
|
25
25
|
## Host compatibility
|
|
26
26
|
|
|
27
|
-
This working tree explicitly declares DSH `0.1.
|
|
27
|
+
This working tree explicitly declares DSH `0.1.2-rc.1`, `0.1.5-rc.1`, `0.1.5-rc.2`, `0.1.5-rc.3`, `0.1.7-rc.1`, `0.1.7-rc.2`, and `0.2.0-rc.1`. Development dependencies are pinned to `0.2.0-rc.1`. No code references `@deepseek-ai/dsh-client-runtime`: it is not a peer, not a client inject, and no longer a development dependency now that the settings-lifecycle spec mounts the production `SlotRegistry` from the official `@deepseek-ai/dsh-client-ui-renderer/client` bundle. Isolated host checks cover `0.1.2-rc.1`, `0.1.5-rc.1`, `0.1.5-rc.2`, `0.1.5-rc.3`, `0.1.7-rc.1`, `0.1.7-rc.2`, and `0.2.0-rc.1`.
|
|
28
28
|
|
|
29
29
|
## What you can do
|
|
30
30
|
|
package/README.zh-CN.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
## 宿主兼容性
|
|
26
26
|
|
|
27
|
-
当前工作区已显式声明支持 DSH `0.1.
|
|
27
|
+
当前工作区已显式声明支持 DSH `0.1.2-rc.1`、`0.1.5-rc.1`、`0.1.5-rc.2`、`0.1.5-rc.3`、`0.1.7-rc.1`、`0.1.7-rc.2` 或 `0.2.0-rc.1`。开发依赖钉在 `0.2.0-rc.1`。代码已不再引用 `@deepseek-ai/dsh-client-runtime`:它既不是 peer、也不写入客户端 inject;设置生命周期用例改用官方 `@deepseek-ai/dsh-client-ui-renderer/client` 装配包里的生产 `SlotRegistry` 后,这条开发依赖也已移除。隔离宿主检查覆盖 `0.1.2-rc.1`、`0.1.5-rc.1`、`0.1.5-rc.2`、`0.1.5-rc.3`、`0.1.7-rc.1`、`0.1.7-rc.2` 或 `0.2.0-rc.1`。
|
|
28
28
|
|
|
29
29
|
## 你可以用它做什么
|
|
30
30
|
|
package/lib/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { apply as apply$1 } from "@deepseek-ai/dsh-client-ui-settings-general";
|
|
2
2
|
import { spawn } from "node:child_process";
|
|
3
|
-
import { existsSync } from "node:fs";
|
|
3
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
4
4
|
import { lstat, mkdir, open, readFile, readdir, realpath, rename, rm, unlink, writeFile } from "node:fs/promises";
|
|
5
5
|
import { homedir } from "node:os";
|
|
6
6
|
import { basename, dirname, isAbsolute, join, relative, resolve, sep, win32 } from "node:path";
|
|
@@ -20,12 +20,36 @@ const CODEX_UI_API_ENDPOINTS = Object.freeze({
|
|
|
20
20
|
/** 关于页使用的 npm 累计下载量;历史不完整时返回 undefined,不把局部统计当总量。 */
|
|
21
21
|
const cache = /* @__PURE__ */ new Map();
|
|
22
22
|
const pending = /* @__PURE__ */ new Map();
|
|
23
|
+
const QUERY_LIMIT = 4;
|
|
24
|
+
let activeQueries = 0;
|
|
25
|
+
const queryWaiters = [];
|
|
26
|
+
function acquireQuery() {
|
|
27
|
+
if (activeQueries < QUERY_LIMIT) {
|
|
28
|
+
activeQueries += 1;
|
|
29
|
+
return Promise.resolve();
|
|
30
|
+
}
|
|
31
|
+
return new Promise((resolve) => {
|
|
32
|
+
queryWaiters.push(resolve);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function releaseQuery() {
|
|
36
|
+
const next = queryWaiters.shift();
|
|
37
|
+
if (next !== void 0) next();
|
|
38
|
+
else activeQueries -= 1;
|
|
39
|
+
}
|
|
23
40
|
function npmTotalDownloads(packageName) {
|
|
24
41
|
const hit = cache.get(packageName);
|
|
25
42
|
if (hit !== void 0 && hit.expires > Date.now()) return Promise.resolve(hit.value);
|
|
26
43
|
const active = pending.get(packageName);
|
|
27
44
|
if (active !== void 0) return active;
|
|
28
|
-
const request =
|
|
45
|
+
const request = (async () => {
|
|
46
|
+
await acquireQuery();
|
|
47
|
+
try {
|
|
48
|
+
return await query(packageName);
|
|
49
|
+
} finally {
|
|
50
|
+
releaseQuery();
|
|
51
|
+
}
|
|
52
|
+
})().then((value) => {
|
|
29
53
|
cache.set(packageName, {
|
|
30
54
|
value,
|
|
31
55
|
expires: Date.now() + (value === void 0 ? 3e5 : 216e5)
|
|
@@ -39,9 +63,8 @@ function npmTotalDownloads(packageName) {
|
|
|
39
63
|
}
|
|
40
64
|
async function query(packageName) {
|
|
41
65
|
try {
|
|
42
|
-
const signal = AbortSignal.timeout(5e3);
|
|
43
66
|
const encoded = encodeURIComponent(packageName);
|
|
44
|
-
const metadata = await fetch(`https://registry.npmjs.org/${encoded}`, { signal });
|
|
67
|
+
const metadata = await fetch(`https://registry.npmjs.org/${encoded}`, { signal: AbortSignal.timeout(5e3) });
|
|
45
68
|
if (!metadata.ok) return void 0;
|
|
46
69
|
const created = (await metadata.json())?.time?.created;
|
|
47
70
|
if (typeof created !== "string") return void 0;
|
|
@@ -57,7 +80,7 @@ async function query(packageName) {
|
|
|
57
80
|
end: new Date(Math.min(from + 364 * day, end)).toISOString().slice(0, 10)
|
|
58
81
|
});
|
|
59
82
|
const values = await Promise.all(ranges.map(async (range) => {
|
|
60
|
-
const response = await fetch(`https://api.npmjs.org/downloads/point/${range.start}:${range.end}/${encoded}`, { signal });
|
|
83
|
+
const response = await fetch(`https://api.npmjs.org/downloads/point/${range.start}:${range.end}/${encoded}`, { signal: AbortSignal.timeout(5e3) });
|
|
61
84
|
if (!response.ok) return void 0;
|
|
62
85
|
const data = await response.json();
|
|
63
86
|
if (data === null || typeof data !== "object") return void 0;
|
|
@@ -182,17 +205,62 @@ function resolveDependencyRuntime(ctx, options = {}) {
|
|
|
182
205
|
desktopPnpm
|
|
183
206
|
};
|
|
184
207
|
}
|
|
185
|
-
const
|
|
208
|
+
const launched = optionalService(ctx, "profileContext");
|
|
209
|
+
const launchedDir = typeof launched?.dir === "string" && isAbsolute(launched.dir) ? resolve(launched.dir) : void 0;
|
|
210
|
+
const launchedName = validProfileName(launched?.name) ? launched.name : void 0;
|
|
211
|
+
const hostProfileDir = isOfficialDesktopHostEntry(argv[1]) && existsSync(resolve(cwd, "package.json")) ? resolve(cwd) : void 0;
|
|
212
|
+
const profileDir = launchedDir ?? hostProfileDir ?? resolve(env.DSH_PROFILE_DIR ?? resolve(home, ".dsh", "profiles", "web"));
|
|
186
213
|
const selected = profileNameFromArgv(argv);
|
|
187
|
-
const profileName = validProfileName(selected) ? selected : validProfileName(basename(profileDir)) ? basename(profileDir) : "web";
|
|
214
|
+
const profileName = launchedName ?? (validProfileName(selected) ? selected : validProfileName(basename(profileDir)) ? basename(profileDir) : "web");
|
|
215
|
+
const cliEntry = resolveCliFromInstallAnchor(launched?.installAnchor) ?? resolveCliBesideDesktopHost(argv[1]);
|
|
188
216
|
const cliRuntimeRoot = argv[1] === void 0 ? void 0 : resolveDshRuntimeRoot(argv[1], cwd);
|
|
217
|
+
const anchorRoot = cliEntry === void 0 ? void 0 : resolveDshRuntimeRoot(cliEntry);
|
|
218
|
+
const runtimeRoots = [
|
|
219
|
+
env.DSH_RUNTIME_DIR,
|
|
220
|
+
anchorRoot,
|
|
221
|
+
cliRuntimeRoot
|
|
222
|
+
].filter((root) => root !== void 0 && root !== "");
|
|
223
|
+
const pluginEnv = stringEnvironment(launched?.packageManager?.env);
|
|
189
224
|
return {
|
|
190
225
|
environmentKind: "cli",
|
|
191
226
|
profileName,
|
|
192
227
|
profileDir,
|
|
193
|
-
runtimeRoots
|
|
228
|
+
runtimeRoots,
|
|
229
|
+
...cliEntry === void 0 ? {} : { cliEntry },
|
|
230
|
+
...pluginEnv === void 0 ? {} : { pluginEnv }
|
|
194
231
|
};
|
|
195
232
|
}
|
|
233
|
+
function stringEnvironment(value) {
|
|
234
|
+
if (value === null || typeof value !== "object") return void 0;
|
|
235
|
+
const env = {};
|
|
236
|
+
for (const [key, item] of Object.entries(value)) if (typeof item === "string") env[key] = item;
|
|
237
|
+
return Object.keys(env).length === 0 ? void 0 : env;
|
|
238
|
+
}
|
|
239
|
+
/** 从公开 profileContext.installAnchor 读出 dsh bin,不把 Desktop Host 入口当成 CLI。 */
|
|
240
|
+
function resolveCliFromInstallAnchor(anchor) {
|
|
241
|
+
if (typeof anchor !== "string" || anchor === "" || !isAbsolute(anchor)) return void 0;
|
|
242
|
+
try {
|
|
243
|
+
const bin = JSON.parse(readFileSync(anchor, "utf8")).bin;
|
|
244
|
+
const relative = typeof bin === "string" ? bin : bin !== null && typeof bin === "object" && typeof bin.dsh === "string" ? bin.dsh : void 0;
|
|
245
|
+
if (relative === void 0 || relative === "") return void 0;
|
|
246
|
+
const entry = resolve(dirname(anchor), relative);
|
|
247
|
+
return existsSync(entry) ? entry : void 0;
|
|
248
|
+
} catch {
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
/** 官方 Desktop Host 是 Electron 的 IPC 子进程;父进程只接受带 type 的事件。 */
|
|
253
|
+
function isOfficialDesktopHostEntry(entry = process.argv[1]) {
|
|
254
|
+
if (entry === void 0 || entry === "") return false;
|
|
255
|
+
return entry.replaceAll("\\", "/").includes("/dsh-desktop-host/");
|
|
256
|
+
}
|
|
257
|
+
/** 从公开包布局定位同一次安装里的 dsh CLI,不读取 launcher 私有 service。 */
|
|
258
|
+
function resolveCliBesideDesktopHost(entry = process.argv[1]) {
|
|
259
|
+
if (!isOfficialDesktopHostEntry(entry)) return void 0;
|
|
260
|
+
const index = entry.replaceAll("\\", "/").toLowerCase().lastIndexOf("/node_modules/@deepseek-ai/dsh-desktop-host/");
|
|
261
|
+
if (index < 0) return void 0;
|
|
262
|
+
return resolveCliFromInstallAnchor(resolve(entry.slice(0, index), "node_modules", "@deepseek-ai", "dsh", "package.json"));
|
|
263
|
+
}
|
|
196
264
|
function profileDirectory(runtime) {
|
|
197
265
|
return runtime.profileDir;
|
|
198
266
|
}
|
|
@@ -429,12 +497,27 @@ function resolveDshCliEntry(entry = process.argv[1], cwd = process.cwd()) {
|
|
|
429
497
|
}
|
|
430
498
|
function requestDesktopHotUpdate(send = process.send) {
|
|
431
499
|
if (typeof send !== "function") return false;
|
|
432
|
-
|
|
433
|
-
|
|
500
|
+
try {
|
|
501
|
+
if (send === process.send) {
|
|
502
|
+
if (process.connected !== true) return false;
|
|
503
|
+
process.send?.(APPLY_PLUGIN_UPDATES_IPC);
|
|
504
|
+
} else send(APPLY_PLUGIN_UPDATES_IPC);
|
|
505
|
+
return true;
|
|
506
|
+
} catch {
|
|
507
|
+
return false;
|
|
508
|
+
}
|
|
434
509
|
}
|
|
435
|
-
/** Desktop
|
|
436
|
-
function canRequestParentReload(runtime, send = process.send) {
|
|
437
|
-
return runtime.environmentKind === "cli" && typeof send === "function";
|
|
510
|
+
/** Desktop 的包管理服务会自行安排重载;只有父进程能识别该消息的独立 Web 子进程才通知。 */
|
|
511
|
+
function canRequestParentReload(runtime, send = process.send, entry = process.argv[1]) {
|
|
512
|
+
return runtime.environmentKind === "cli" && !isOfficialDesktopHostEntry(entry) && typeof send === "function" && (send !== process.send || process.connected === true);
|
|
513
|
+
}
|
|
514
|
+
/** 响应已经发出后再通知父进程;通知失败不能变成未捕获异常。 */
|
|
515
|
+
function scheduleParentPluginReload(delayMs = 150) {
|
|
516
|
+
setTimeout(() => {
|
|
517
|
+
try {
|
|
518
|
+
requestDesktopHotUpdate();
|
|
519
|
+
} catch {}
|
|
520
|
+
}, delayMs).unref?.();
|
|
438
521
|
}
|
|
439
522
|
async function recordPendingUpdate(packageName, version, runtime) {
|
|
440
523
|
const pendingPath = resolve(profileDirectory(runtime), PROFILE_PENDING_UPDATES_FILE);
|
|
@@ -763,7 +846,8 @@ function monitorDesktopPlugin(handle, timeoutMs = PLUGIN_INSTALL_TIMEOUT_MS) {
|
|
|
763
846
|
function runDshPlugin(args, runtime = resolveDependencyRuntime(), timeoutMs = PLUGIN_INSTALL_TIMEOUT_MS) {
|
|
764
847
|
const desktopPnpm = runtime.desktopPnpm;
|
|
765
848
|
if (desktopPnpm !== void 0) return monitorDesktopPlugin(withPnpmEntry(() => desktopPnpm.runPlugin(args, runtime.profileDir)), timeoutMs);
|
|
766
|
-
const entry = resolveDshCliEntry();
|
|
849
|
+
const entry = runtime.cliEntry ?? resolveDshCliEntry();
|
|
850
|
+
if (isOfficialDesktopHostEntry(entry)) throw new Error("无法定位 DSH CLI。请从 DSH 命令启动 Web 服务后重试。");
|
|
767
851
|
return monitorPluginChild(spawn(process.execPath, [
|
|
768
852
|
...pluginExecArgv(),
|
|
769
853
|
entry,
|
|
@@ -773,7 +857,10 @@ function runDshPlugin(args, runtime = resolveDependencyRuntime(), timeoutMs = PL
|
|
|
773
857
|
...args
|
|
774
858
|
], {
|
|
775
859
|
cwd: process.cwd(),
|
|
776
|
-
env:
|
|
860
|
+
env: {
|
|
861
|
+
...pluginSpawnEnv(),
|
|
862
|
+
...runtime.pluginEnv
|
|
863
|
+
},
|
|
777
864
|
windowsHide: true,
|
|
778
865
|
stdio: [
|
|
779
866
|
"ignore",
|
|
@@ -2059,9 +2146,7 @@ function apply(ctx) {
|
|
|
2059
2146
|
restartRequired: updatedCount > 0,
|
|
2060
2147
|
autoReload
|
|
2061
2148
|
}));
|
|
2062
|
-
if (restartAfterResponse)
|
|
2063
|
-
requestDesktopHotUpdate();
|
|
2064
|
-
}, 150).unref?.();
|
|
2149
|
+
if (restartAfterResponse) scheduleParentPluginReload();
|
|
2065
2150
|
return;
|
|
2066
2151
|
}
|
|
2067
2152
|
const runtime = resolveDependencyRuntime(ctx);
|
|
@@ -2081,9 +2166,7 @@ function apply(ctx) {
|
|
|
2081
2166
|
restartRequired: true,
|
|
2082
2167
|
autoReload
|
|
2083
2168
|
}));
|
|
2084
|
-
if (restartAfterResponse)
|
|
2085
|
-
requestDesktopHotUpdate();
|
|
2086
|
-
}, 150).unref?.();
|
|
2169
|
+
if (restartAfterResponse) scheduleParentPluginReload();
|
|
2087
2170
|
return;
|
|
2088
2171
|
}
|
|
2089
2172
|
response.writeHead(405);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@michengai/dsh-codex-ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.23",
|
|
4
4
|
"description": "DSH Codex UI — 为 DeepSeek Harness Web 提供 Codex 风格侧栏、工作区会话树、全局搜索和轮次导航 · A Codex-style sidebar, workspace session tree, global search, and turn navigation for DSH Web",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -74,48 +74,47 @@
|
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"@deepseek-ai/cordis": ">=4.0.2 <5.0.0",
|
|
77
|
-
"@deepseek-ai/dsh-client-connection": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.7-rc.1 || 0.1.7-rc.2",
|
|
78
|
-
"@deepseek-ai/dsh-client-locale": "0.1.
|
|
79
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.1.
|
|
80
|
-
"@deepseek-ai/dsh-client-ui-input-trigger": "0.1.
|
|
81
|
-
"@deepseek-ai/dsh-client-ui-layout": "0.1.
|
|
82
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.1.
|
|
83
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.1.
|
|
84
|
-
"@deepseek-ai/dsh-client-ui-settings-general": "0.1.
|
|
85
|
-
"@deepseek-ai/dsh-client-ui-sidebar": "0.1.
|
|
86
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.1.
|
|
87
|
-
"@deepseek-ai/dsh-client-ui-workspace": "0.1.
|
|
77
|
+
"@deepseek-ai/dsh-client-connection": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1",
|
|
78
|
+
"@deepseek-ai/dsh-client-locale": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1",
|
|
79
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1",
|
|
80
|
+
"@deepseek-ai/dsh-client-ui-input-trigger": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1",
|
|
81
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1",
|
|
82
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1",
|
|
83
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1",
|
|
84
|
+
"@deepseek-ai/dsh-client-ui-settings-general": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1",
|
|
85
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1",
|
|
86
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1",
|
|
87
|
+
"@deepseek-ai/dsh-client-ui-workspace": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1",
|
|
88
88
|
"react": "^18.2.0",
|
|
89
89
|
"react-dom": "^18.2.0"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"@deepseek-ai/cordis": "4.0.4",
|
|
93
|
-
"@deepseek-ai/dsh-api-session-controller": "0.
|
|
94
|
-
"@deepseek-ai/dsh-api-workspace-controller": "0.
|
|
95
|
-
"@deepseek-ai/dsh-attachment": "0.
|
|
96
|
-
"@deepseek-ai/dsh-client-connection": "0.
|
|
97
|
-
"@deepseek-ai/dsh-client-locale": "0.
|
|
98
|
-
"@deepseek-ai/dsh-client-
|
|
99
|
-
"@deepseek-ai/dsh-client-
|
|
100
|
-
"@deepseek-ai/dsh-client-
|
|
101
|
-
"@deepseek-ai/dsh-client-ui-
|
|
102
|
-
"@deepseek-ai/dsh-client-ui-
|
|
103
|
-
"@deepseek-ai/dsh-client-ui-
|
|
104
|
-
"@deepseek-ai/dsh-client-ui-
|
|
105
|
-
"@deepseek-ai/dsh-client-ui-
|
|
106
|
-
"@deepseek-ai/dsh-client-ui-
|
|
107
|
-
"@deepseek-ai/dsh-client-ui-
|
|
108
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.
|
|
109
|
-
"@deepseek-ai/dsh-client-ui-
|
|
110
|
-
"@deepseek-ai/dsh-client-ui-
|
|
111
|
-
"@deepseek-ai/dsh-client-ui-
|
|
112
|
-
"@deepseek-ai/dsh-
|
|
113
|
-
"@deepseek-ai/dsh-
|
|
114
|
-
"@deepseek-ai/dsh-
|
|
115
|
-
"@deepseek-ai/dsh-
|
|
116
|
-
"@deepseek-ai/dsh-
|
|
117
|
-
"@deepseek-ai/dsh-
|
|
118
|
-
"@deepseek-ai/dsh-workspace": "0.1.7-rc.2",
|
|
93
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.0-rc.1",
|
|
94
|
+
"@deepseek-ai/dsh-api-workspace-controller": "0.2.0-rc.1",
|
|
95
|
+
"@deepseek-ai/dsh-attachment": "0.2.0-rc.1",
|
|
96
|
+
"@deepseek-ai/dsh-client-connection": "0.2.0-rc.1",
|
|
97
|
+
"@deepseek-ai/dsh-client-locale": "0.2.0-rc.1",
|
|
98
|
+
"@deepseek-ai/dsh-client-store": "0.2.0-rc.1",
|
|
99
|
+
"@deepseek-ai/dsh-client-test-runtime": "0.2.0-rc.1",
|
|
100
|
+
"@deepseek-ai/dsh-client-ui-chat": "0.2.0-rc.1",
|
|
101
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.0-rc.1",
|
|
102
|
+
"@deepseek-ai/dsh-client-ui-input-trigger": "0.2.0-rc.1",
|
|
103
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.2.0-rc.1",
|
|
104
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.0-rc.1",
|
|
105
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.0-rc.1",
|
|
106
|
+
"@deepseek-ai/dsh-client-ui-session": "0.2.0-rc.1",
|
|
107
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.0-rc.1",
|
|
108
|
+
"@deepseek-ai/dsh-client-ui-settings-general": "0.2.0-rc.1",
|
|
109
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.0-rc.1",
|
|
110
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.1",
|
|
111
|
+
"@deepseek-ai/dsh-client-ui-workspace": "0.2.0-rc.1",
|
|
112
|
+
"@deepseek-ai/dsh-session": "0.2.0-rc.1",
|
|
113
|
+
"@deepseek-ai/dsh-scope": "0.2.0-rc.1",
|
|
114
|
+
"@deepseek-ai/dsh-subagent": "0.2.0-rc.1",
|
|
115
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.0-rc.1",
|
|
116
|
+
"@deepseek-ai/dsh-util-workspace-path": "0.2.0-rc.1",
|
|
117
|
+
"@deepseek-ai/dsh-workspace": "0.2.0-rc.1",
|
|
119
118
|
"diff": "^9.0.0",
|
|
120
119
|
"shiki": "^4.3.1",
|
|
121
120
|
"simple-icons": "16.31.0",
|