dsh-claude-project-ui 0.4.3 → 0.5.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 +100 -0
- package/README.md +259 -61
- package/THIRD_PARTY_NOTICES.md +71 -0
- package/docs/about-drafts.md +27 -55
- package/docs/dsh-threads-baseline.md +119 -0
- package/docs/optional-threads-0.4.4.md +139 -0
- package/docs/store-copy-0.4.4.md +86 -0
- package/docs/two-installs-problem.md +256 -0
- package/docs/vendoring-feasibility.md +179 -0
- package/package.json +54 -5
- package/src/client.js +4689 -9
- package/src/config.js +3 -0
- package/src/index.js +276 -3
- package/src/threads-install.js +174 -0
- package/src/threads-probe.js +255 -0
- package/src/threads-vendor.js +123 -0
- package/vendor/dsh-threads/CHANGELOG.md +174 -0
- package/vendor/dsh-threads/LICENSE +21 -0
- package/vendor/dsh-threads/README.en.md +113 -0
- package/vendor/dsh-threads/README.md +113 -0
- package/vendor/dsh-threads/VENDORED.md +66 -0
- package/vendor/dsh-threads/cordis.patch.yml +6 -0
- package/vendor/dsh-threads/dist/client.js +4260 -0
- package/vendor/dsh-threads/dist/index.js +2773 -0
- package/vendor/dsh-threads/icon.svg +1 -0
- package/vendor/dsh-threads/locale/en.json +6 -0
- package/vendor/dsh-threads/locale/zh.json +6 -0
- package/vendor/dsh-threads/package.json +122 -0
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
# 两个包的问题:一次点击装齐(DSH 插件安装 API 调查)
|
|
2
|
+
|
|
3
|
+
> 结论先行:**落在 A 档**。DSH 把「装插件」整套流程做成了一个可调用的 Cordis 服务
|
|
4
|
+
> `pluginManager`(`installBundle` / `setBundleEnabled`),面板按钮直接调它,DSH 自己完成
|
|
5
|
+
> pnpm 安装、写 `dsh.profile.bundles`、失败回滚,并在桌面版通常**不需要重启**(HMR)。
|
|
6
|
+
> 没有该服务的宿主(headless、更老的 DSH)自动退回 C 档:显示固定的安装命令(桌面版 profile
|
|
7
|
+
> 没有可用命令,退回「插件市场」指引)。
|
|
8
|
+
|
|
9
|
+
## 0. 一句话
|
|
10
|
+
|
|
11
|
+
| 问题 | 答案 |
|
|
12
|
+
|---|---|
|
|
13
|
+
| 装插件背后是什么 | `pnpm add` + 写 profile 的 `dependencies` + 把包名追加进 `dsh.profile.bundles` + 重载 |
|
|
14
|
+
| 暴露成服务了吗 | **有**:Cordis 服务 `pluginManager`(`super(ctx, "pluginManager")`,方法带 `@Remote`) |
|
|
15
|
+
| 能从哪里调 | 任何宿主插件 `ctx.get("pluginManager")`(无需 `inject`,缺服务返回 `undefined`) |
|
|
16
|
+
| `dshmarketplace_install` 是谁 | 第三方包 `dshmarketplace-plugin@0.3.1`;它**不用**服务,而是起子进程跑 `dsh plugin --profile <p> add <spec>` |
|
|
17
|
+
| 装完要重启吗 | 有 HMR 的 profile(桌面版就是)通常 `applied` 即生效;否则 `restart-required` + 原因 |
|
|
18
|
+
| 本插件落在哪档 | **A 档**(拿不到服务时 C 档);B 档(自己写 profile)**刻意不做**,理由见第 7 节 |
|
|
19
|
+
|
|
20
|
+
## 1. 问题:为什么要装两次
|
|
21
|
+
|
|
22
|
+
本插件的看板建立在 `@kyf-eng/dsh-threads` 之上。它**不是**本包的 dependency(用户自己装的那份
|
|
23
|
+
必须赢,版本也不能被我们钉死),所以装完本包,用户还得再去插件市场装一次 dsh-threads 才有
|
|
24
|
+
讨论串与任务——大多数新用户就停在这一步。缺的不是「文件」,而是**启用**:DSH 只加载
|
|
25
|
+
`profile/package.json` 里 `dsh.profile.bundles` 列出的 bundle。
|
|
26
|
+
|
|
27
|
+
## 2. 先纠正前提:「声明成 dependency 会重复加载」——**不成立**(已实测)
|
|
28
|
+
|
|
29
|
+
```text
|
|
30
|
+
依赖层面:@kyf-eng/dsh-threads: "0.2.0" ← 仍然保存着
|
|
31
|
+
bundles 层面:把它从 dsh.profile.bundles 里删掉
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
在隔离的 `DSH_HOME=/tmp/probe-home`(desktop profile 的拷贝,真实 profile 一字未改)里用**桌面版自己的
|
|
35
|
+
运行时**(Electron 以 `ELECTRON_RUN_AS_NODE=1` 跑 asar 里的 `bin.js`,dsh 0.2.2-rc.5)跑
|
|
36
|
+
`--dump-config`:
|
|
37
|
+
|
|
38
|
+
| 组合 | 合成出来的 `dsh-threads` 行数 |
|
|
39
|
+
|---|---|
|
|
40
|
+
| 依赖有 + bundles 有 | 有(层注释 `# == @kyf-eng/dsh-threads`) |
|
|
41
|
+
| **依赖有 + bundles 没有** | **0 行** |
|
|
42
|
+
|
|
43
|
+
代码依据:`@deepseek-ai/dsh-app-boot/lib/index.js:1839-1841`("Load a profile: resolve every
|
|
44
|
+
`dsh.profile.bundles` entry to its patch layer")、`@deepseek-ai/dsh/lib/profile-boot-*.js:76-79`
|
|
45
|
+
("stack its patch layers (bundle layers in `dsh.profile.bundles` order …)")。
|
|
46
|
+
|
|
47
|
+
所以:**只有列进 bundles 的包才会被加载;嵌套/node_modules 里躺着的那份是惰性的,不会重复加载。**
|
|
48
|
+
仍然不把它写进 dependencies,理由换成了两个更实在的(见第 7 节):换源会和 pnpm 的 hoisted 布局打架、
|
|
49
|
+
以及我们自己的安装会因此被拖上 git 构建风险。**推理变了,决定没变。**
|
|
50
|
+
|
|
51
|
+
## 3. DSH 装插件的真实步骤(带 文件:行 证据)
|
|
52
|
+
|
|
53
|
+
入口三条,底层是同一套代码:
|
|
54
|
+
|
|
55
|
+
1. CLI:`dsh plugin --profile <p> add <spec>` → `@deepseek-ai/dsh/lib/plugin-DC80YBt4.js:91-94`
|
|
56
|
+
(desktop profile 外面加 `withFileLock`,然后调 `runProfilePnpm`)。
|
|
57
|
+
2. 插件市场 UI(Electron/Web):`ui-plugin-manager` → `pluginManager.installBundle()`。
|
|
58
|
+
3. 模型工具 `plugin_manager`(action `install_bundle`):`@deepseek-ai/dsh-plugin-manager/lib/types/tools.js:102,139`
|
|
59
|
+
——**它就是直接 `ctx.pluginManager.installBundle(target, opts)`**,和我们要做的一模一样。
|
|
60
|
+
|
|
61
|
+
`installBundle(spec, options)` 的真实步骤(`@deepseek-ai/dsh-plugin-manager/lib/types/index.js`):
|
|
62
|
+
|
|
63
|
+
| # | 步骤 | 证据 |
|
|
64
|
+
|---|---|---|
|
|
65
|
+
| 1 | 读 profile 现有 `dependencies` 作为 before 快照 | `:999` |
|
|
66
|
+
| 2 | 已有同名依赖 + HMR → 直接拒 `already-installed`(不重复装) | `:1002-1004` |
|
|
67
|
+
| 3 | GitHub 连通性预检(只查可达性,认证/传输交给 pnpm) | `:1017-1044` |
|
|
68
|
+
| 4 | `pnpm add <spec>` 在 profile 目录里跑(顺带写 `package.json` + `pnpm-lock.yaml`) | `:1069` |
|
|
69
|
+
| 5 | 校验「正好变了一个依赖」+ 包必须声明 `dsh.bundle` + DSH 版本兼容 | `:1113-1133` |
|
|
70
|
+
| 6 | 把包名追加进 `dsh.profile.bundles` 并原子写回 `package.json` | `selectBundle` `:1318-1343`(`:1337` 追加、`:1341` `saveManifest`) |
|
|
71
|
+
| 7 | 重载:有 HMR 就现场 reconcile(`publishAndReload`),否则标记重启 | `:1149-1158`、`reload` `:1407-1417` |
|
|
72
|
+
| 8 | 任一步失败 → 把 `package.json` + `pnpm-lock.yaml` 还原成 before | `restoreFiles` `:1310-1317`,调用点 `:1137-1141` |
|
|
73
|
+
|
|
74
|
+
另外三条事实:
|
|
75
|
+
|
|
76
|
+
- **`already-installed` 只在 HMR 存在时触发**(`:1002`),这正是「桌面版重复装」会被拒、
|
|
77
|
+
而不是把用户那份覆盖掉的机制。
|
|
78
|
+
- 步骤 4 之前还会算「这次能不能装」:`evaluatePluginCompatibility`(`:1129-1131`),
|
|
79
|
+
`engines.dsh` 不满足 → `incompatible-version`,除非用户显式授权豁免。
|
|
80
|
+
- 安装可能被 pnpm 的构建脚本策略挡住(`build-blocked`):钉版 `v0.2.0-baseline` 的
|
|
81
|
+
`package.json` **没有** `prepare` / `install` / `postinstall`(只有 `build` / `test` 等手动脚本),
|
|
82
|
+
所以正常情况**不需要**任何 `allowBuilds` 放行。
|
|
83
|
+
|
|
84
|
+
## 4. 有没有可调 API:**有,明确结论**
|
|
85
|
+
|
|
86
|
+
- **服务名**:`pluginManager`(`@deepseek-ai/dsh-plugin-manager/lib/index.js:2058`
|
|
87
|
+
`super(ctx, "pluginManager")`,类 `PluginManager extends TypertRemoteService`)。
|
|
88
|
+
- **怎么拿**:`ctx.get("pluginManager")`。Cordis 的 `get` 注释写得很清楚:
|
|
89
|
+
"Read a service from the store **without the inject requirement**"
|
|
90
|
+
(`@deepseek-ai/cordis/lib/index.js:1347-1348`)——所以不必把它写进 `inject`,缺服务时返回
|
|
91
|
+
`undefined` 而不是让本插件一直等(headless 宿主照常加载)。
|
|
92
|
+
- **谁会提供它**:`@deepseek-ai/dsh-base/cordis.patch.yml:20-22` 插入 `plugin-manager` 行,
|
|
93
|
+
`disabled: !!js "!ctx.get('profileContext')"`。profile 启动时 **总是** `hostCtx.provide("profileContext", …)`
|
|
94
|
+
(`@deepseek-ai/dsh/lib/profile-boot-*.js:315`),所以只要有 profile(桌面版、web、headless 都是)
|
|
95
|
+
这个服务就在。
|
|
96
|
+
- **方法签名**(`@Remote` 只加 RPC 元数据,方法本身是普通类方法,宿主侧可直接调):
|
|
97
|
+
|
|
98
|
+
| 方法 | 签名 | 用途 |
|
|
99
|
+
|---|---|---|
|
|
100
|
+
| `installBundle` | `(spec, options?)` → `ChangeResult` | 装包 + 保存依赖 + 追加 bundles + 重载 |
|
|
101
|
+
| `setBundleEnabled` | `(name, enabled)` → `ChangeResult` | 只切 bundles(包已在时用,不跑 pnpm) |
|
|
102
|
+
| `removeBundle` | `(name)` → `ChangeResult` | 卸载 + 从 bundles 移除 |
|
|
103
|
+
| `listBundles` / `listPlugins` | `()` → 行数组 | 面板/工具列表 |
|
|
104
|
+
| `waitForInstall` / `cancelInstall` | `(requestId)` | 长安装的进度与取消 |
|
|
105
|
+
| `listVersionExemptions` / `setVersionExemption` | … | 版本豁免(有风险,未使用) |
|
|
106
|
+
|
|
107
|
+
- `ChangeResult` 关键字段:`application` ∈ `applied | restart-required | cancelled | overridden | failed`,
|
|
108
|
+
另有 `changed`、`bundle`、`version`、`restartReason`、`error.code`、`pendingBuilds`、`packageResult`。
|
|
109
|
+
- **`options` 只会用到默认值**:`{ enabled?: true, approvedBuilds?, registry?, saveExact?, requestId?, expected? }`。
|
|
110
|
+
我们传 `{}`(默认就启用)。
|
|
111
|
+
|
|
112
|
+
## 5. `dshmarketplace_install` 是哪个包、底层调什么
|
|
113
|
+
|
|
114
|
+
- 提供者:**`dshmarketplace-plugin@0.3.1`**(第三方,DshMarketPlace;装在本机 profile 的
|
|
115
|
+
`node_modules/dshmarketplace-plugin`)。它不是 DSH 核心。
|
|
116
|
+
- 它**没有**用 `pluginManager` 服务。它的安装是起子进程跑 CLI:
|
|
117
|
+
`runner(execPath, [cliPath, "plugin", "--profile", profile, "add", target])`
|
|
118
|
+
(`dshmarketplace-plugin/lib/index.js` 里的 `le()` / `y()`;同一文件里 `oe()` 用正则
|
|
119
|
+
`/^dsh plugin(?: --profile [\w.-]+)? add (\S+)$/` 白名单校验安装命令)。
|
|
120
|
+
- 它确实读了一个叫 `pluginMarket` 的服务,但那个只管**索引源**(`setIndexes`),跟安装无关。
|
|
121
|
+
- 结论:市场插件和我们要做的事**同层但不同路**——它走 CLI 子进程,我们走服务。服务更好
|
|
122
|
+
(不依赖子进程、能返回结构化的 `ChangeResult`、失败自动回滚)。
|
|
123
|
+
|
|
124
|
+
## 6. 要不要重启
|
|
125
|
+
|
|
126
|
+
**通常不用。** `change()` 的初值:有 `hmr` 服务 → `application: "applied"`,没有 →
|
|
127
|
+
`"restart-required" + restartReason: "no-hmr"`(`@deepseek-ai/dsh-plugin-manager/lib/types/index.js:1432-1433`)。base bundle 里的
|
|
128
|
+
`hmr` 行只要有 `profileContext` 就启用(`dsh-base/cordis.patch.yml:28-32`,`config.root: []`
|
|
129
|
+
只关掉「模块文件变更监听」,profile **配置**变更照常 reconcile)。
|
|
130
|
+
|
|
131
|
+
之后 `reload()` 会调 `hmr.reconcileProfile(requiredIds)`;只有它报 `restartReason`
|
|
132
|
+
(`host-module`:改到 DSH 自己加载的模块;`package-moved`:包解析到了别的目录;
|
|
133
|
+
`unmanaged-plugin` 等)才会变成 `restart-required`(`:1407-1417`、`:1438-1440`)。
|
|
134
|
+
**新增一个 bundle 一般落在 `applied`**;但脚本不承诺零重启——结果里 `restartRequired` 为真时,
|
|
135
|
+
面板文案是「需要重启一次」。
|
|
136
|
+
|
|
137
|
+
## 7. 我们落在哪档 + 实现
|
|
138
|
+
|
|
139
|
+
### A 档(已实现)
|
|
140
|
+
|
|
141
|
+
面板的「未检测到 dsh-threads」提示里多一个按钮(`src/threads-install.js` + 新路由):
|
|
142
|
+
|
|
143
|
+
| profile 状态 | 分支 | 调什么 |
|
|
144
|
+
|---|---|---|
|
|
145
|
+
| 没有 dsh-threads 依赖 | `install` | `installBundle("github:lanechenhku/dsh-threads#v0.2.0-baseline", {})` |
|
|
146
|
+
| 依赖在、bundles 里没有 | `enable` | `setBundleEnabled("@kyf-eng/dsh-threads", true)`(不跑 pnpm、不联网) |
|
|
147
|
+
| 依赖在 + bundles 有 | `done` | **不调用**,只提示「已配置,重启 DSH 后生效」 |
|
|
148
|
+
|
|
149
|
+
- 状态是**读 profile 的 `package.json` 现算的**(`profileInstallState()`),不是猜的:
|
|
150
|
+
所以「用户已经装过任何版本、任何来源」都会被识别为 `done` 并跳过(brief 的硬要求)。
|
|
151
|
+
- 路由 `POST /project-hub/threads-install`(带 `x-project-hub: 1` 头,防跨站简单请求;
|
|
152
|
+
非 POST → 405;无服务 → 501 `no-api`;失败 → 400 + `code`/`kind`/`message`;
|
|
153
|
+
并发点击 → 409 `busy`)。**永不抛到进程外**:服务拒答、抛异常、profile 不可写、pnpm 缺失
|
|
154
|
+
都变成 JSON 答案。
|
|
155
|
+
- 面板按钮是两步:点一次 → 「确认安装:会写入本机 profile「…」」→ 再点一次才真的装。
|
|
156
|
+
结果区分 `applied`(马上刷新看板)、`restart-required`(提示重启)、`skip`、
|
|
157
|
+
失败(`build-blocked` 会点名待放行的脚本,`pnpm-missing` 单独一句,其他显示 DSH 原文)。
|
|
158
|
+
|
|
159
|
+
### 为什么仍然不写进 dependencies(前提纠了,决定没变)
|
|
160
|
+
|
|
161
|
+
既然「不会重复加载」已证伪了老担心,为什么不干脆声明成 dependency、让用户装一次就齐?
|
|
162
|
+
|
|
163
|
+
1. **换源会打架**:profile 用 `nodeLinker: hoisted`(本机 `pnpm-workspace.yaml`)。我们钉的是
|
|
164
|
+
`github:lanechenhku/dsh-threads#v0.2.0-baseline`,用户可能自己装了 npm `0.2.0` 或别的源;
|
|
165
|
+
hoisted 布局里同名包只能有一份落位,pnpm 要么把其中一份塞进嵌套目录(用户看不到、也不知
|
|
166
|
+
哪份在跑),要么直接冲突。**让用户那份赢**,是这个包最基本的设计约束。
|
|
167
|
+
2. **会把我们自己的安装拖下水**:git 依赖装的时候会跑仓库的 `prepare` 构建脚本,pnpm 的策略
|
|
168
|
+
随时可能拦下来(`allowBuilds`)——那会让**本插件**装不上,只为了一个「可选」的前置。
|
|
169
|
+
现在本包永远能装,前置装不上只是少一个功能。
|
|
170
|
+
|
|
171
|
+
所以「一次点击」由面板按钮承担,不写进依赖图。
|
|
172
|
+
|
|
173
|
+
### 为什么不做 B 档(自己改 profile)
|
|
174
|
+
|
|
175
|
+
即使拿不到服务,我们也不接管 `profile/package.json`:DSH 自己在那里加文件锁、跑 pnpm、
|
|
176
|
+
失败还原(`restoreFiles`),我们在旁边再写一遍就是**和它抢同一个文件**,还会把它的回滚踩掉。
|
|
177
|
+
拿不到服务就退回 C 档,不硬做。
|
|
178
|
+
|
|
179
|
+
### C 档(兜底,已实现)
|
|
180
|
+
|
|
181
|
+
- 非桌面 profile:提示里直接给出**一条命令**并带「复制安装命令」按钮:
|
|
182
|
+
`dsh plugin --profile <name> add 'github:lanechenhku/dsh-threads#v0.2.0-baseline'`。
|
|
183
|
+
- **桌面版没有可复制命令**:CLI 明确拒绝该 profile ——
|
|
184
|
+
`error: profile "desktop" is managed exclusively by the Electron application`
|
|
185
|
+
(`@deepseek-ai/dsh/lib/bin-*.js:34-35`;实测同上)。所以桌面版兜底文案是「从插件市场装,
|
|
186
|
+
或点上面的按钮」,不甩一条注定失败的命令。
|
|
187
|
+
|
|
188
|
+
### 没走的那条路(记录备查)
|
|
189
|
+
|
|
190
|
+
base bundle 把模型工具 `plugin_manager` 默认关掉(`dsh-base/cordis.patch.yml:16-18`,
|
|
191
|
+
`ptc` 预设里也关)。给 profile patch 层加一行就能让模型自己装,但那需要 `danger-full-access`
|
|
192
|
+
与审批、而且对用户不是「一键」,所以我们走面板按钮。
|
|
193
|
+
|
|
194
|
+
## 8. 用户的完整操作路径
|
|
195
|
+
|
|
196
|
+
**新用户(绝大多数):**
|
|
197
|
+
|
|
198
|
+
1. 装本插件(1 次)。
|
|
199
|
+
2. 打开侧栏「项目看板」→ 看到「未检测到 dsh-threads」+ 按钮。
|
|
200
|
+
3. 点按钮 → 再点「确认安装」(2 次点击)→ 等 pnpm(几十秒)。
|
|
201
|
+
4. 成功:`applied` → 看板自己刷新出讨论串与任务(**不用重启**)。若是 `restart-required`,
|
|
202
|
+
面板说「需要重启一次」,再退出重开 DSH。
|
|
203
|
+
|
|
204
|
+
合计:**1 个包 + 2 次点击**(最坏再加 1 次重启),替代原来的「再去市场装第 2 个包」。
|
|
205
|
+
|
|
206
|
+
**已经装过包、只是在 bundles 里没启用**:同一条路径,按钮文案是「包已经在了,一键启用」,
|
|
207
|
+
不跑 pnpm、不联网,一般秒生效。
|
|
208
|
+
**已经装好并启用**:不显示按钮,只提示已配置(本机 desktop profile 现在就是这一态:
|
|
209
|
+
`dependency "0.2.0"` + `bundled: true` + `version "0.2.0"` → `mode: done`)。
|
|
210
|
+
|
|
211
|
+
## 9. 风险与边界
|
|
212
|
+
|
|
213
|
+
| 风险 | 现在的行为 |
|
|
214
|
+
|---|---|
|
|
215
|
+
| 宿主没有 `pluginManager` | 快照 `install.available: false`,面板只给命令/市场指引;点路由得 501 |
|
|
216
|
+
| profile 不可写 / pnpm 缺失 / 网络断 | 服务返回 `failed` + `code`/`kind`,面板显示原文;DSH 自己回滚 |
|
|
217
|
+
| 用户已有 dsh-threads(任何来源) | 读 `package.json` 判定 `done`,**不调用**安装 |
|
|
218
|
+
| 版本不兼容 | 服务 `incompatible-version` 拒绝,面板显示原因;不擅自授权豁免 |
|
|
219
|
+
| 别人替我们钉版本 | 只装 `github:lanechenhku/dsh-threads#v0.2.0-baseline`(我们自己的 fork tag) |
|
|
220
|
+
| 连点 / 并发 | 路由级 `busy`(409),服务自己还有 `withFileLock` |
|
|
221
|
+
| 隐私 | 路由只写本机 profile;不发任何网络请求(除 DSH 自己装包时的 registry/GitHub) |
|
|
222
|
+
|
|
223
|
+
**未验证**:没有在**正在运行的桌面进程**里点过这个按钮(改插件要重启 app,而重启会杀掉主会话;
|
|
224
|
+
本机 profile 也已经是 `done` 态,没有可装的东西)。证据链是:base bundle 装配 → `profileContext`
|
|
225
|
+
必然提供 → 第一方 `tools.js` 直接调 `installBundle` → 同样的调用在我们路由里被测试覆盖
|
|
226
|
+
(假服务,含无服务/已装/只差启用/失败/抛异常/以及「成功或失败都不自己写 profile」六种)。
|
|
227
|
+
真机第一次点击时,面板会如实显示结果或错误。
|
|
228
|
+
|
|
229
|
+
## 10. 怎么重新验证(隔离,不动真实 profile)
|
|
230
|
+
|
|
231
|
+
```sh
|
|
232
|
+
# 1) 拆 asar 看代码(只读)
|
|
233
|
+
npx --yes @electron/asar extract "/Applications/DeepSeek Harness.app/Contents/Resources/app.asar" /tmp/dsh-asar
|
|
234
|
+
|
|
235
|
+
# 2) 用桌面版自己的运行时,合成一份拷贝 profile 的配置(真实 profile 只被读)
|
|
236
|
+
rm -rf /tmp/probe-home && mkdir -p /tmp/probe-home/profiles/probe
|
|
237
|
+
cp ~/.dsh/profiles/desktop/{package.json,cordis.patch.yml} /tmp/probe-home/profiles/probe/
|
|
238
|
+
ln -s ~/.dsh/profiles/desktop/node_modules /tmp/probe-home/profiles/probe/node_modules
|
|
239
|
+
ELECTRON_RUN_AS_NODE=1 DSH_HOME=/tmp/probe-home \
|
|
240
|
+
"/Applications/DeepSeek Harness.app/Contents/MacOS/DeepSeek Harness" \
|
|
241
|
+
/tmp/dsh-asar/dsh/node_modules/@deepseek-ai/dsh/lib/bin.js --profile probe --dump-config
|
|
242
|
+
|
|
243
|
+
# 3) 前提实验:依赖留着、bundles 删掉 → dsh-threads 的行数为 0
|
|
244
|
+
# (改 /tmp/probe-home/profiles/probe/package.json 的 dsh.profile.bundles 后重跑 2)
|
|
245
|
+
|
|
246
|
+
# 4) CLI 拒 desktop
|
|
247
|
+
DSH_HOME=/tmp/probe-home dsh plugin --profile desktop add '@kyf-eng/dsh-threads@0.2.0'
|
|
248
|
+
# → error: profile "desktop" is managed exclusively by the Electron application
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
## 附注(顺带发现,与本任务无关)
|
|
252
|
+
|
|
253
|
+
同一份 dump 里,`@deepseek-ai/dsh-subagent-claude-code@0.2.2-rc.3` 与
|
|
254
|
+
`@deepseek-ai/dsh-subagent-codex@0.2.2-rc.3` 被跳过:它们要求 `0.2.2-rc.3` 的核心包,而运行时是
|
|
255
|
+
`0.2.2-rc.5`("Running it may cause crashes or data loss")。也就是说这两个子代理插件在本机
|
|
256
|
+
**没有加载**。要不要升级/授权是另一个决定,本任务没有碰它们。
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# 内嵌(vendor)@kyf-eng/dsh-threads 是否可行
|
|
2
|
+
|
|
3
|
+
> **结论:不可行——但不是宿主侧不行,是客户端侧不行。**
|
|
4
|
+
> 宿主插件(Node 侧)可以用我们包内的子路径加载;**客户端(浏览器侧)只能一包一个
|
|
5
|
+
> client bundle**,拿不到第二条入口,除非改 DSH 本身或我们自己在打包期把两份 client 代码合并
|
|
6
|
+
> (那会在共存上直接冲突)。所以本轮**不搬运代码**,保留已实现的 A 档「一键安装」。
|
|
7
|
+
|
|
8
|
+
| 问题 | 答案 | 一句话证据 |
|
|
9
|
+
|---|---|---|
|
|
10
|
+
| 1. 宿主 `name:` 能否指到包内子路径 | **能**(要在 `exports` 里开口子) | loader 用 Node 解析:`EntryTree.import` 把裸说明符交给 `createResolve`/`internal.import`;实测未在 `exports` 里声明的子路径 → `ERR_PACKAGE_PATH_NOT_EXPORTED` |
|
|
11
|
+
| 2. `dsh.client` 能否声明子包 client 入口 | **不能** | client 半边是**按包**发现的:`exports["./client"]` 且 Loader 行名必须是**精确包名**;子路径行名直接没有 client 源 |
|
|
12
|
+
| 3. 内嵌后与上游版共存 | **互斥** | 同一包名两个活跃 Loader 源 → `client-modules` 直接抛「resolves from multiple active Loader sources」;存储域第二次 open → `DomainError('already-open')` |
|
|
13
|
+
|
|
14
|
+
## 0. 先给证据坐标
|
|
15
|
+
|
|
16
|
+
拆分出的 DSH 实现:`npx @electron/asar extract …/app.asar /tmp/dsh-asar`,然后:
|
|
17
|
+
|
|
18
|
+
- 宿主 loader:`@deepseek-ai/cordis-plugin-loader/lib/index.js`
|
|
19
|
+
- 客户端模块系统(Node 半边):`@deepseek-ai/dsh-client-modules/lib/index.js`
|
|
20
|
+
- 存储域:`@deepseek-ai/dsh-storage-domain/lib/index.js`
|
|
21
|
+
- 配置组装:`@deepseek-ai/dsh-app-boot/lib/index.js`、`@deepseek-ai/dsh/lib/profile-boot-*.js`
|
|
22
|
+
- 本机桌面版运行时:`@deepseek-ai/dsh-desktop 0.2.2-rc.5`(`/tmp/dsh-asar/package.json`)
|
|
23
|
+
|
|
24
|
+
## 1. 宿主侧:**能**(有条件的“能”)
|
|
25
|
+
|
|
26
|
+
### 机制
|
|
27
|
+
|
|
28
|
+
配置里的每个 entry 只有 `name`(模块说明符)和 `config`,没有别的入口字段:
|
|
29
|
+
|
|
30
|
+
- `--dump-config-schema` 给出的 entry 属性只有 `id · name · config · group · disabled · inject · intercept · isolate`
|
|
31
|
+
(`$defs/entryMetadata`)——**没有** `import` / `entry` / `path`。`path` 只属于 `include` 承载器
|
|
32
|
+
(`$defs/includeConfig`,包含的是另一份 patch 配置,不是插件模块)。
|
|
33
|
+
- `name` 由 loader 的 `EntryTree.import(name, …)` 解析(`cordis-plugin-loader/lib/index.js:338-352`):
|
|
34
|
+
- `cordis:…` → 内建;
|
|
35
|
+
- `.` 开头 → `new URL(name, this.ctx.baseUrl)`,**基准是 profile 目录**(`dsh-app-boot/lib/index.js:5297`
|
|
36
|
+
把 `ctx.baseUrl` 设为配置文件所在目录),所以 `./vendor/…` 会指到 `<profile>/vendor/…` ——**不是**我们包里;
|
|
37
|
+
- 其他(裸说明符)→ `createResolve(baseUrl)`(`import.meta.resolve` 走 Node ESM 解析)或
|
|
38
|
+
Node 内部 loader 的 `internal.import(name, baseUrl)`——**按 Node 规则从 profile 目录解析**,
|
|
39
|
+
也就是先找 `profiles/<p>/node_modules/dsh-claude-project-ui/`,再走我们的 `exports`。
|
|
40
|
+
|
|
41
|
+
### 实测(隔离 profile,只读)
|
|
42
|
+
|
|
43
|
+
在 `DSH_HOME=/tmp/probe-home` 的拷贝 profile 目录里用 `createRequire` 解析(等价于 loader 的裸说明符路径):
|
|
44
|
+
|
|
45
|
+
```text
|
|
46
|
+
bare pkg : OK …/node_modules/@kyf-eng/dsh-threads/dist/index.js
|
|
47
|
+
declared sub : OK …/node_modules/@kyf-eng/dsh-threads/cordis.patch.yml
|
|
48
|
+
undeclared sub: ERR ERR_PACKAGE_PATH_NOT_EXPORTED
|
|
49
|
+
our bare pkg : OK …/dsh-claude-project-ui/src/index.js
|
|
50
|
+
our client sub: OK …/dsh-claude-project-ui/src/client.js
|
|
51
|
+
our vendor sub: ERR ERR_PACKAGE_PATH_NOT_EXPORTED
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
**结论**:把 `"name": "dsh-claude-project-ui/vendor/dsh-threads/host.js"` 写进 `cordis.patch.yml` 是可行的,
|
|
55
|
+
**前提**是我们 `package.json` 的 `exports` 里加一条 `"./vendor/*": "./vendor/*"`;不加就是
|
|
56
|
+
`ERR_PACKAGE_PATH_NOT_EXPORTED`(我们现在的 `exports` 只有 `. `/`./client`/`./cordis.patch.yml`/`./package.json`)。
|
|
57
|
+
|
|
58
|
+
**宿主侧还有一个更省事的写法**:不用 patch 行,直接在我们 `src/index.js` 里 `import` 内嵌模块,
|
|
59
|
+
在 `apply` 里 `ctx.plugin(vendoredPlugin, config)`。但这绕过了 loader 的 `disabled`/`config` 治理,
|
|
60
|
+
且救不了第 2 条。
|
|
61
|
+
|
|
62
|
+
## 2. 客户端侧:**不能**(这条判死)
|
|
63
|
+
|
|
64
|
+
### 机制:client 半边是「按包」发现的,一包只能一个
|
|
65
|
+
|
|
66
|
+
1. 发现:`dsh-client-modules` 扫描 **Loader 行**,行长出包 manifest 且声明了 `dsh.client` 才有 client 半边
|
|
67
|
+
(`lib/index.js:129-153` 模块注释:`"scans the host Loader's entries for packages declaring dsh.client"`)。
|
|
68
|
+
2. 解析:`resolveMeta(loaderName, baseUrl)` 只在行名是**精确包名**时才继续;子路径行名直接放弃:
|
|
69
|
+
|
|
70
|
+
```js
|
|
71
|
+
const pathLike = loaderName.startsWith('.') || loaderName.startsWith('file:') || isAbsolute(loaderName);
|
|
72
|
+
const expectedPackageName = pathLike ? void 0 : exactPackageSpecifier(loaderName);
|
|
73
|
+
if (!pathLike && expectedPackageName === void 0) return void 0; // ← 子路径行名:没有 client 源
|
|
74
|
+
```
|
|
75
|
+
(`lib/index.js:815-819`;`exactPackageSpecifier` 对含 `/` 的说明符返回 `undefined`,见 `:107-113`)
|
|
76
|
+
|
|
77
|
+
也就是说:`name: "dsh-claude-project-ui/vendor/dsh-threads/host.js"` 这一行**不会**贡献任何 client bundle——
|
|
78
|
+
dsh-threads 那 13 条 client inject、它的页签与会话头部按钮都不会出现。
|
|
79
|
+
3. 取哪份脚本:只认**包自己的** `exports["./client"]`:
|
|
80
|
+
|
|
81
|
+
```js
|
|
82
|
+
const client = exportsField['./client']; // 只取 ./client 这一个子路径
|
|
83
|
+
…
|
|
84
|
+
clientPath: join(dirname(pkgPath), clientRel)
|
|
85
|
+
```
|
|
86
|
+
(`lib/index.js:199-209`、`:790-801`)
|
|
87
|
+
4. `dsh.client` 声明本身**没有**入口字段,只有 `platform / inject / external / immediately`
|
|
88
|
+
(`parseDshClient` `:86-100`)——**没有** `path`、`entry`、`modules` 之类可挂第二个 bundle 的地方。
|
|
89
|
+
5. 一包只能一份:`reconcilePackage` 以 `packageName` 为键,若同一个包名来自多个活跃 Loader 源就抛错
|
|
90
|
+
(`:946-952`);graph 行也是按 `packageName` 建的(`:957`)。
|
|
91
|
+
6. 浏览器侧 `require` 只认「graph 行」——即**本身是活跃 Loader 条目的包**(`客户端 manifest 注释
|
|
92
|
+
`:41-56`:`require` 走「seed / memoized / graph row / registered factory」,否则抛错)。
|
|
93
|
+
所以我们自己的 `client.js` 里 `require("@kyf-eng/dsh-threads/client")` **不成立**:dsh-threads
|
|
94
|
+
不是 Loader 条目,就不是 graph 行。
|
|
95
|
+
|
|
96
|
+
### 唯一剩下的形态(不推荐,也说明为什么)
|
|
97
|
+
|
|
98
|
+
把 dsh-threads 的 `dist/client.js` 在**我们自己的打包阶段**合并进 `exports["./client"]` 指向的同一个
|
|
99
|
+
artifact:我们变成「一个包一份 client bundle,里面装两套 UI」,`inject` 取并集(它的 13 条 + 我们的 2 条),
|
|
100
|
+
我们 `apply` 里再调用它的 `apply`。技术上可行,但代价:
|
|
101
|
+
|
|
102
|
+
- 本包从此**必须**有构建步骤(现在发布的是源码,`exports` 直接指 `src/client.js`,零构建);
|
|
103
|
+
- 上游每次改动都要手工再合并一次,等于替上游维护一个 fork;
|
|
104
|
+
- 与用户已装的上游版本**必然冲突**(见第 3 条:同一批槽位、同一个存储域);
|
|
105
|
+
- 失去「用户自己那份赢」的设计前提。
|
|
106
|
+
|
|
107
|
+
所以:**内嵌需要改 DSH 本身(让一个包能声明多个 client 入口 / 让子路径行名带自己的 client bundle),
|
|
108
|
+
否则不能以内嵌形态成立。** 按追加指令的止损条件,本轮到此为止,不搬运代码。
|
|
109
|
+
|
|
110
|
+
## 3. 共存:**互斥**(不是“需要小心”,是硬冲突)
|
|
111
|
+
|
|
112
|
+
假设真的内嵌了(宿主用子路径行 + client 合并进我们的 bundle),然后用户又装了上游并启用:
|
|
113
|
+
|
|
114
|
+
| 层面 | 会发生什么 | 证据 |
|
|
115
|
+
|---|---|---|
|
|
116
|
+
| client 模块系统 | 若内嵌行是**路径型**行名(`./vendor/...` 或绝对路径),它的最近 package.json 是**我们的**,于是 `dsh-claude-project-ui` 出现两个活跃 Loader 源 → `client-modules` 抛 `resolves from multiple active Loader sources: …; remove one entry` | `dsh-client-modules/lib/index.js:946-952` |
|
|
117
|
+
| 存储域 | 两个 `dsh-threads` 实例都想 `open('dsh_threads')`,第二个直接 `DomainError('already-open', "domain 'dsh_threads' is already open")` | `dsh-storage-domain/lib/index.js:382` |
|
|
118
|
+
| 槽位 / 页签 | 两套 UI 代码各注册一次同名 slot/tab,最可能看到重复页签或重复按钮;**未能核实**重复注册的判定(`@deepseek-ai/dsh-client-ui-slots` 不在桌面版 asar 里,是 web shell 内建) | — |
|
|
119
|
+
| 配置层(entry id) | 两份 patch 都用同一个 id `dsh-threads` 时,**patch 按 id 定位、后者覆盖前者**——不会重复挂载,但「到底跑的是哪一份代码」由 `dsh.profile.bundles` 的顺序静默决定,两份实现共用一个存储 | `@deepseek-ai/dsh-base/cordis.patch.yml:1-6`("later bundle patches … address these rows by id, with the last write winning per row") |
|
|
120
|
+
| 我们的探测 | `registrySignal` 认 `name` 为 `dsh-threads` 的运行时;内嵌那份沿用同一个名字 → 探测结果与「用户装的是上游还是内嵌」无法区分 | `src/threads-probe.js:47,63-75` |
|
|
121
|
+
|
|
122
|
+
**让路机制评级**(从优到劣,逐条给结论):
|
|
123
|
+
|
|
124
|
+
1. 宿主启动时检测到上游已装就不挂内嵌那份 —— **半可行**:宿主侧可用
|
|
125
|
+
`ctx.get('storageDomain')` 看 `dsh_threads` 是否已被打开、或用 `ctx.registry` 找 `dsh-threads` 运行时
|
|
126
|
+
(我们现在的探测就是这么做的),但只在**我们自己的 apply 里**生效;client 那半已经在浏览器里跑起来了,
|
|
127
|
+
我们没有「按条件不加载自己的 client 代码」的开关(client bundle 是包级的,`dsh.client` 没有条件字段)。
|
|
128
|
+
2. 同一存储域只允许一个注册者 —— **已存在,但是报错而非让路**:`already-open` 是 `DomainError`,
|
|
129
|
+
表现是其中一份插件起不来(错误日志 + 功能缺失),不是优雅降级。
|
|
130
|
+
3. 其它(把内嵌 id 改成第二个名字、把存储域改成 `dsh_threads_vendored`)—— **等于分叉**:用户已有的
|
|
131
|
+
`dsh_threads.json` 不再被读,历史项目“消失”,比装两次更糟。
|
|
132
|
+
|
|
133
|
+
**结论:内嵌与共存互斥。** 不是“要小心”,是同包名 + 同存储域双重硬冲突。
|
|
134
|
+
|
|
135
|
+
## 4. 所以本轮做什么
|
|
136
|
+
|
|
137
|
+
- **不内嵌代码**(不搬 `dist/index.js` / `dist/client.js` / `cordis.patch.yml`)。`vendor/dsh-threads/`
|
|
138
|
+
只放上游的**许可文件**:`LICENSE` 是从已安装的 `@kyf-eng/dsh-threads@0.2.0` 包里逐字节原样复制的
|
|
139
|
+
(1060 字节,sha256 `4c80378d…`,与上游仓库根目录那份一致),外加一个说明为什么要放它的 README。
|
|
140
|
+
**目录里没有代码**,所以这里不构成对上游代码的再分发。
|
|
141
|
+
- 保留已实现的 **A 档**「一键安装」:面板按钮通过 `pluginManager.installBundle` 装钉版
|
|
142
|
+
`github:lanechenhku/dsh-threads#v0.2.0-baseline`,已装则跳过、只差启用则只启用、
|
|
143
|
+
桌面版不给 CLI 命令。细节见 [`docs/two-installs-problem.md`](two-installs-problem.md)。
|
|
144
|
+
- **合规与致谢照样做足**(见 [`THIRD_PARTY_NOTICES.md`](../THIRD_PARTY_NOTICES.md) 与 README 顶部的
|
|
145
|
+
「致谢 / Credits」):许可文件原样留档在 `vendor/dsh-threads/LICENSE`,MIT 全文与版权行同时抄在
|
|
146
|
+
notices 的 §2,README 顶部写明「讨论串与项目工作流的基础来自 @kyf-eng/dsh-threads(作者 fky /
|
|
147
|
+
Kyf-eng),MIT」。
|
|
148
|
+
|
|
149
|
+
## 5. 许可与署名(两处已定)
|
|
150
|
+
|
|
151
|
+
1. **上游带 MIT LICENSE**,版权行 `Copyright (c) 2026 fky`,作者写「fky(Kyf-eng)」。核对 2026-12-01:
|
|
152
|
+
已安装的 `@kyf-eng/dsh-threads@0.2.0` 包内 `LICENSE`(1060 字节,sha256 `4c80378d…`)与上游仓库
|
|
153
|
+
根目录那份**逐字节相同**;npm 元数据声明 `license: MIT`,维护者 `kyf-eng <ffyh5857@gmail.com>`,
|
|
154
|
+
GitHub owner `Kyf-eng`(显示名 `WilliamsF`)。这份文件已原样复制到 `vendor/dsh-threads/LICENSE`。
|
|
155
|
+
2. **`package.json` 的 `description` 暂不动**:既然没有内嵌,现在那句「dsh-threads 可选」**仍然准确**;
|
|
156
|
+
只有当将来真改成内嵌才需要一起改(到时一句话即可,不必现在改两遍)。
|
|
157
|
+
|
|
158
|
+
## 6. 怎么复核
|
|
159
|
+
|
|
160
|
+
```sh
|
|
161
|
+
# 1) 宿主:子路径是否被 exports 允许(在隔离 profile 目录里跑,只读)
|
|
162
|
+
cd /tmp/probe-home/profiles/probe
|
|
163
|
+
node --input-type=module -e "
|
|
164
|
+
import { createRequire } from 'node:module';
|
|
165
|
+
const req = createRequire(process.cwd() + '/cordis.yml');
|
|
166
|
+
for (const s of ['@kyf-eng/dsh-threads','@kyf-eng/dsh-threads/cordis.patch.yml','dsh-claude-project-ui/vendor/x.js'])
|
|
167
|
+
try { console.log('OK ', s, req.resolve(s)); } catch (e) { console.log('ERR', s, e.code); }
|
|
168
|
+
"
|
|
169
|
+
|
|
170
|
+
# 2) 客户端:确认 client 半边只认精确包名 + exports['./client']
|
|
171
|
+
grep -n "exactPackageSpecifier\|exportsField\['./client'\]\|multiple active Loader sources" \
|
|
172
|
+
/tmp/dsh-asar/dsh/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js
|
|
173
|
+
|
|
174
|
+
# 3) 存储域:第二次 open 就是 already-open
|
|
175
|
+
grep -n "already-open" /tmp/dsh-asar/dsh/node_modules/@deepseek-ai/dsh-storage-domain/lib/index.js
|
|
176
|
+
|
|
177
|
+
# 4) entry 字段没有 import/entry/path
|
|
178
|
+
DSH_HOME=/tmp/probe-home dsh --profile probe --dump-config-schema | grep -A6 '"entryMetadata"'
|
|
179
|
+
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-claude-project-ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Claude
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "想要 Claude Projects 的项目界面?DeepSeek Harness 里就有:侧栏「项目看板」把项目、讨论串与任务铺在一屏,每个项目可挂多个辅助文件夹(系统原生选择器),讨论串回报自动变任务。中英双语。内含讨论串能力(dsh-threads,MIT),装这一个包就完整。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|
|
7
7
|
"dsh",
|
|
@@ -34,10 +34,12 @@
|
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
36
|
"src",
|
|
37
|
+
"vendor",
|
|
37
38
|
"docs",
|
|
38
39
|
"cordis.patch.yml",
|
|
39
40
|
"README.md",
|
|
40
41
|
"CHANGELOG.md",
|
|
42
|
+
"THIRD_PARTY_NOTICES.md",
|
|
41
43
|
"LICENSE"
|
|
42
44
|
],
|
|
43
45
|
"engines": {
|
|
@@ -52,12 +54,59 @@
|
|
|
52
54
|
"platform": "web",
|
|
53
55
|
"inject": [
|
|
54
56
|
"@deepseek-ai/dsh-client-runtime",
|
|
55
|
-
"@deepseek-ai/dsh-client-ui-slots"
|
|
57
|
+
"@deepseek-ai/dsh-client-ui-slots",
|
|
58
|
+
"@deepseek-ai/dsh-api-session-controller",
|
|
59
|
+
"@deepseek-ai/dsh-api-workspace-controller",
|
|
60
|
+
"@deepseek-ai/dsh-client-connection",
|
|
61
|
+
"@deepseek-ai/dsh-client-locale",
|
|
62
|
+
"@deepseek-ai/dsh-client-resources",
|
|
63
|
+
"@deepseek-ai/dsh-client-ui-chat",
|
|
64
|
+
"@deepseek-ai/dsh-client-ui-conversation",
|
|
65
|
+
"@deepseek-ai/dsh-client-ui-layout",
|
|
66
|
+
"@deepseek-ai/dsh-client-ui-primitives",
|
|
67
|
+
"@deepseek-ai/dsh-client-ui-session",
|
|
68
|
+
"@deepseek-ai/dsh-client-ui-sidebar",
|
|
69
|
+
"@deepseek-ai/dsh-client-ui-sidebar-right",
|
|
70
|
+
"@deepseek-ai/dsh-client-ui-workspace"
|
|
56
71
|
]
|
|
57
72
|
}
|
|
58
73
|
},
|
|
59
74
|
"scripts": {
|
|
60
|
-
"test": "node test/harness.mjs",
|
|
61
|
-
"
|
|
75
|
+
"test": "node test/harness.mjs && node test/vendor-checks.mjs",
|
|
76
|
+
"sync-client": "node scripts/sync-client.mjs",
|
|
77
|
+
"check-client": "node scripts/sync-client.mjs --check",
|
|
78
|
+
"prepublishOnly": "node scripts/sync-client.mjs --check && node test/harness.mjs && node test/vendor-checks.mjs && node test/spec-check.mjs"
|
|
79
|
+
},
|
|
80
|
+
"peerDependencies": {
|
|
81
|
+
"@deepseek-ai/dsh-commands": ">=0.2.1-rc.2 <0.3.0",
|
|
82
|
+
"@deepseek-ai/dsh-llm": ">=0.2.1-rc.2 <0.3.0",
|
|
83
|
+
"@deepseek-ai/dsh-storage-domain": ">=0.2.1-rc.2 <0.3.0",
|
|
84
|
+
"@deepseek-ai/dsh-subagent": ">=0.2.1-rc.2 <0.3.0",
|
|
85
|
+
"@deepseek-ai/dsh-tools": ">=0.2.1-rc.2 <0.3.0",
|
|
86
|
+
"@deepseek-ai/schemastery": ">=3.18.5 <4",
|
|
87
|
+
"zod": "^4.4.3"
|
|
88
|
+
},
|
|
89
|
+
"peerDependenciesMeta": {
|
|
90
|
+
"@deepseek-ai/dsh-commands": {
|
|
91
|
+
"optional": true
|
|
92
|
+
},
|
|
93
|
+
"@deepseek-ai/dsh-llm": {
|
|
94
|
+
"optional": true
|
|
95
|
+
},
|
|
96
|
+
"@deepseek-ai/dsh-storage-domain": {
|
|
97
|
+
"optional": true
|
|
98
|
+
},
|
|
99
|
+
"@deepseek-ai/dsh-subagent": {
|
|
100
|
+
"optional": true
|
|
101
|
+
},
|
|
102
|
+
"@deepseek-ai/dsh-tools": {
|
|
103
|
+
"optional": true
|
|
104
|
+
},
|
|
105
|
+
"@deepseek-ai/schemastery": {
|
|
106
|
+
"optional": true
|
|
107
|
+
},
|
|
108
|
+
"zod": {
|
|
109
|
+
"optional": true
|
|
110
|
+
}
|
|
62
111
|
}
|
|
63
112
|
}
|