dsh-remote-vs 0.30.0 → 0.31.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.
Files changed (40) hide show
  1. package/README.en.md +40 -18
  2. package/README.md +32 -17
  3. package/THIRD-PARTY-NOTICES.md +6 -6
  4. package/cordis.patch.yml +31 -76
  5. package/lib/client.js +61 -9
  6. package/lib/index.js +25 -3
  7. package/lib/p2-router-fs.js +15 -1
  8. package/lib/types/client/WorkspacesView.d.ts +2 -0
  9. package/lib/types/client/composer.d.ts +8 -1
  10. package/lib/types/client/selection-popup.d.ts +1 -1
  11. package/lib/types/client/ui.d.ts +7 -4
  12. package/lib/types/p2/router-fs.d.ts +9 -1
  13. package/lib/types/p2/worlds.d.ts +23 -0
  14. package/lib/{worlds-CRRZMZhg.js → worlds-BdxLeKul.js} +49 -1
  15. package/package.json +46 -46
  16. package/src/client/DirectoryFlow.tsx +8 -0
  17. package/src/client/EditorPane.tsx +5 -1
  18. package/src/client/HostsView.tsx +2 -0
  19. package/src/client/RemoteExplorer.tsx +11 -2
  20. package/src/client/RemoteRoot.tsx +1 -0
  21. package/src/client/SettingsHosts.tsx +1 -0
  22. package/src/client/WorkspaceWizard.tsx +1 -0
  23. package/src/client/WorkspacesView.tsx +21 -1
  24. package/src/client/composer.ts +8 -1
  25. package/src/client/scm/DiffView.tsx +5 -2
  26. package/src/client/selection-popup.ts +1 -1
  27. package/src/client/ui.tsx +9 -7
  28. package/src/client/vsc/vsc.css +55 -3
  29. package/src/index.ts +31 -0
  30. package/src/p2/router-fs.ts +29 -1
  31. package/src/p2/worlds.ts +68 -1
  32. package/src/routes.ts +19 -13
  33. package/vendor/dsh-remote-helpers/dsh-ssh-helper-0.2.3-alpha.3-linux-x64.helper.json +20 -0
  34. package/vendor/dsh-remote-helpers/dsh-ssh-helper-0.2.3-alpha.3-linux-x64.tar.gz +4 -0
  35. package/vendor/dsh-remote-helpers/dsh-ssh-helper-0.2.3-alpha.3-linux-x64.tar.gz.sha256 +1 -0
  36. package/vendor/dsh-remote-helpers/pkg-sea-bare-import.patch +30 -0
  37. package/vendor/dsh-remote-helpers/ssh-helper-runtime-deps.patch +4 -3
  38. package/vendor/dsh-remote-helpers/dsh-ssh-helper-0.2.2-rc.4-linux-x64.helper.json +0 -19
  39. package/vendor/dsh-remote-helpers/dsh-ssh-helper-0.2.2-rc.4-linux-x64.tar.gz +0 -4
  40. package/vendor/dsh-remote-helpers/dsh-ssh-helper-0.2.2-rc.4-linux-x64.tar.gz.sha256 +0 -1
package/README.en.md CHANGED
@@ -37,13 +37,27 @@ dsh plugin --profile web add dsh-remote-vs
37
37
  (From npm, recommended; installing straight from the repository also works:
38
38
  `dsh plugin --profile web add github:xiray-xia/dsh-remote-vs`.)
39
39
 
40
- **Requires DSH `0.2.2-rc.5` or newer and below `0.3.0`** (`engines.dsh` enforces the range;
41
- **adapted to and typechecked against `0.2.2-rc.5`**). On Host `0.2.2-rc.4` use plugin `0.23.0`; `0.2.2-rc.2` / `0.2.2-rc.3` use plugin `0.22.0`; on `0.2.2-alpha.3` / `0.2.2-rc.1` use `0.20.1`; the
40
+ **Requires DSH `0.2.3-alpha.3` or newer and below `0.3.0`** (`engines.dsh` enforces the range;
41
+ **adapted to and typechecked against `0.2.3-alpha.3`**). Note that the alpha.3 Host itself requires
42
+ **Node `^24.22.3 || >=26.13.1`** — upgrade Node before DSH when Node is older. On Host `0.2.2-rc.5`
43
+ use plugin `0.30.0`; on `0.2.2-rc.4` use plugin `0.23.0`; `0.2.2-rc.2` / `0.2.2-rc.3` use plugin `0.22.0`; on `0.2.2-alpha.3` / `0.2.2-rc.1` use `0.20.1`; the
42
44
  `0.2.2-alpha.2` generation needs `0.17.0`. `--profile web` selects which profile to install, so it has to go into the profile your Web GUI runs from (`web` is
43
45
  the common name; use your own profile's name). Desktop uses the reserved `desktop`
44
46
  profile instead — see [Desktop](#desktop-dsh-desktop) below.
45
47
 
46
- > **Upgrading from `0.22.0` (or older)**: the remote helper's wire protocol moves from **2 to 3** (`0.23.0` onward keeps the helper stable, and `0.23.0 → 0.24.0` re-pushes nothing).
48
+ > **Upgrading from `0.30.0` (DSH `0.2.2-rc.5`) to this release**: the alpha.3 helper moves from
49
+ > **G2 to G3** (adds `fs.writeBytes`, up to 8 MiB per call) while the **wire protocol stays 3**.
50
+ > So:
51
+ > - an existing host's old helper shares the plugin's protocol and is **not re-pushed
52
+ > automatically** (the upgrade self-heal only recognises a protocol difference);
53
+ > - press **Deploy** once per host under Settings → Remote Hosts (or create a remote workspace,
54
+ > whose wizard pushes automatically) to move to G3; each host pays one ~47 MB upload, and the
55
+ > old version directory is kept remotely for rollback;
56
+ > - not pushing still works: browsing/editing/terminal and text + patch/delete/move are
57
+ > unaffected, and only capabilities backed by `fs.writeBytes` (e.g. the experimental IM
58
+ > plugin staging a file attachment as bytes into a remote workspace) fail.
59
+ >
60
+ > **Upgrading from `0.22.0` (or older)**: the remote helper's wire protocol moves from **2 to 3** (`0.23.0` through `0.30.0` re-push nothing; `0.31.0` moves to G3, see above).
47
61
  > Existing host records are recognised as an older generation and the new helper is pushed
48
62
  > automatically on the first connection (this needs the old build to still be in the local
49
63
  > helper cache; if that cache was cleared, press **Push** once in Settings). Each host pays
@@ -72,7 +86,7 @@ Install either way:
72
86
  `desktop` is reserved for the Electron application: an **npm-installed `dsh` cannot manage
73
87
  it** (it answers `profile "desktop" is managed exclusively by the Electron application`),
74
88
  so one of the two routes above is required. The Desktop release version equals the DSH
75
- runtime it bundles, and it must satisfy `engines.dsh` (`>=0.2.2-rc.5`; check About);
89
+ runtime it bundles, and it must satisfy `engines.dsh` (`>=0.2.3-alpha.3`; check About);
76
90
  older releases make the Plugins page refuse the install. Desktop opens no visible Web
77
91
  port, but the plugin's HTTP routes and terminal socket are forwarded through Desktop's
78
92
  Host (the terminal resolves its address from `__DSH_TRANSPORT__.streamBaseUrl`), so no
@@ -269,7 +283,7 @@ dsh_remote_vs/
269
283
  ├── vendor/dsh-remote-helpers/ # helper seeds (shipped, seeded into cache at startup, see below)
270
284
  ├── docs/ # local-only working docs (only docs/media/ screenshots ship)
271
285
  │ ├── MAINTENANCE.md # local-only (.gitignore), not shipped: upgrade impact, checklist, pitfalls, release
272
- │ ├── VERSION-HISTORY.md # local-only: per-release change log (0.7.1 → 0.30.0)
286
+ │ ├── VERSION-HISTORY.md # local-only: per-release change log (0.7.1 → 0.31.0)
273
287
  │ └── GATES.md # local-only: local gate inventory and measured assertion counts
274
288
  ├── locale/ # bilingual plugin metadata
275
289
  └── lib/ # build output (**must be committed**; only .map is ignored; restart after link install)
@@ -561,20 +575,27 @@ over helper RPC (fs) / ssh2 (processes), local stays untouched; both share one H
561
575
  Upstream never published helper binaries (all Release assets are empty), so this plugin builds its own:
562
576
 
563
577
  - Build machine: WSL2 Ubuntu-22.04 (glibc 2.35, matching the remote targets), build-host Node v24.21.0 + pnpm 11.28.5;
564
- the node **embedded by pkg is v24.22.3** (that is what `helper.json`'s `nodeVersion` records)
565
- - Sources: the `dsh-v0.2.2-rc.4` tag (commit `3f321d32…`) — the **build baseline tracks the wire protocol version, not the Host version**;
566
- this generation is **protocol 3 (G2)**: besides the hello protocol literal and `policySchema.additionalWritableRoots`,
567
- it adds `fs.patch` / `fs.delete` / `fs.move` (31 vs 28 methods). **"Protocol 3" does not imply those three methods**:
568
- the G1 generation (`dsh-v0.2.2-alpha.2`) also reports protocol 3 but lacks them, so the helper must be built from a
569
- G2 tag (≥ alpha.3)
578
+ the node **embedded by pkg is v24.23.0** (that is what `helper.json`'s `nodeVersion` records; pkg 6.21.0 resolves
579
+ the latest 24.x patch release from nodejs.org at build time — v24.22.3 on the rc.4 build day)
580
+ - Sources: the `dsh-v0.2.3-alpha.3` tag (commit `841f76d3…`) — the **build baseline tracks the wire protocol version, not the Host version**;
581
+ this generation is **protocol 3 (G3)**: on top of G2's `fs.patch` / `fs.delete` / `fs.move` it adds
582
+ `fs.writeBytes` (8 MiB per call, base64). **"Protocol 3" does not imply those methods are present**:
583
+ the G1 generation (`dsh-v0.2.2-alpha.2`) also reports protocol 3 but lacks patch/delete/move, and the
584
+ G2 generation (`dsh-v0.2.2-rc.4`) lacks `fs.writeBytes`, so the helper must be built from a G3 tag (`dsh-v0.2.3-alpha.3`)
570
585
  - Command: stock script `pnpm exec tsx scripts/build-exe-for-ssh-helper.ts --target=node24-linux-x64`
571
586
  - Deviation 1: no docker for the manylinux 2.28 rebuild, so a `DSH_GLIBC_CEILING`
572
587
  env override was added (default stays 2.28); this build targets 2.35 (see `glibc-ceiling.patch`)
573
- - Deviation 2: the upstream tag's own helper build path is missing two dependencies (`@deepseek-ai/dsh-error` is a
574
- required peer, `@deepseek-ai/dsh-fs-patch` is never built into the runtime by `compileRuntime()`); without them the
575
- closure gate aborts / the handshake fails with `ERR_MODULE_NOT_FOUND`. The patch is archived as `ssh-helper-runtime-deps.patch`
588
+ - Deviation 2: the upstream tag's own helper build path is missing three dependencies (`@deepseek-ai/dsh-error` is a
589
+ required peer; `@deepseek-ai/dsh-fs-patch` and alpha.3's new `@deepseek-ai/dsh-attachment` are never built into the
590
+ runtime by `compileRuntime()`); without them the closure gate aborts / the handshake fails with
591
+ `ERR_MODULE_NOT_FOUND`. The patch is archived as `ssh-helper-runtime-deps.patch`
592
+ - Deviation 3: `@yao-pkg/pkg` 6.21.0 SEA resolves a bare import made from a real file outside the snapshot starting at
593
+ the mount point `/snapshot/node_modules`, while the payload lives at `/snapshot/<project>/.../staging/node_modules`;
594
+ alpha.3's new scoped-repl PTC evaluates programs as real files, so the official `native-flock` check failed with
595
+ `ERR_MODULE_NOT_FOUND`. `pkg-sea-bare-import.patch` starts the lookup at the packaged entrypoint's directory; it
596
+ patches dependency sources (`node_modules/@yao-pkg/pkg/prelude/sea-bootstrap.bundle.js`) after `pnpm install`
576
597
  - Checks: stock `verify-ssh-helper-artifact.ts --archive=<tarball> --sandbox=required`, all 8 green
577
- - Size and cache: the linux-x64 archive is **47 MB** (47,234,718 B); cache `$DSH_HOME/dsh-remote-helpers/`
598
+ - Size and cache: the linux-x64 archive is **47 MB** (47,497,147 B); cache `$DSH_HOME/dsh-remote-helpers/`
578
599
  (`*.tar.gz` + `.sha256` + `.helper.json` with binarySha256, feeding P2's helperHash)
579
600
  - Full rebuild procedure for upgrades: the local-only `docs/MAINTENANCE.md` §4 (gitignored, not distributed)
580
601
 
@@ -662,6 +683,7 @@ MIT © 2026 xiray-xia — see [LICENSE](./LICENSE).
662
683
  Third-party components bundled in or required by the published package are listed in
663
684
  [THIRD-PARTY-NOTICES.md](./THIRD-PARTY-NOTICES.md).
664
685
 
665
- The `vendor/` helper seed is built from DeepSeek Harness sources (MIT) at tag `dsh-v0.2.2-rc.4`
666
- with the stock build script; see "Self-built helper" above for the exact procedure and the two
667
- documented deviations (`glibc-ceiling.patch` and `ssh-helper-runtime-deps.patch` in the seed set).
686
+ The `vendor/` helper seed is built from DeepSeek Harness sources (MIT) at tag `dsh-v0.2.3-alpha.3`
687
+ with the stock build script; see "Self-built helper" above for the exact procedure and the three
688
+ documented deviations (`glibc-ceiling.patch`, `ssh-helper-runtime-deps.patch` and
689
+ `pkg-sea-bare-import.patch` in the seed set).
package/README.md CHANGED
@@ -34,13 +34,22 @@ dsh plugin --profile web add dsh-remote-vs
34
34
 
35
35
  (从 npm 装,推荐;也可以直接跟仓库装:`dsh plugin --profile web add github:xiray-xia/dsh-remote-vs`。)
36
36
 
37
- **需要 DSH `0.2.2-rc.5` 及以上、`0.3.0` 以下**(`engines.dsh` 门到底;已按 rc.5 适配并通过类型检查与本地全量门禁)。
38
- Host 仍是 `0.2.2-rc.4` 的请用插件 `0.23.0`;`0.2.2-rc.2` / `0.2.2-rc.3` 的请用插件 `0.22.0`;`0.2.2-alpha.3` / `0.2.2-rc.1` 的请用 `0.20.1`;`0.2.2-alpha.2` 一代请用 `0.17.0`。
37
+ **需要 DSH `0.2.3-alpha.3` 及以上、`0.3.0` 以下**(`engines.dsh` 门到底;已按 alpha.3 适配并通过类型检查与本地全量门禁)。
38
+ 注意 alpha.3 宿主自身要求 **Node `^24.22.3 || >=26.13.1`**,Node 更旧时先升级 Node 再升 DSH。
39
+ Host 仍是 `0.2.2-rc.5` 的请用插件 `0.30.0`;`0.2.2-rc.4` 的请用插件 `0.23.0`;`0.2.2-rc.2` / `0.2.2-rc.3` 的请用插件 `0.22.0`;`0.2.2-alpha.3` / `0.2.2-rc.1` 的请用 `0.20.1`;`0.2.2-alpha.2` 一代请用 `0.17.0`。
39
40
  `--profile web` 指明装进哪个 profile,
40
41
  要装进 Web GUI 所用的那个(`web` 是常见命名,以你自己的 profile 名为准);
41
42
  桌面端用的是保留 profile `desktop`,见下面「桌面端」。
42
43
 
43
- > **从 `0.22.0`(或更早)升级要注意**:远端 helper 的 wire 协议由 **2 升到 3**(`0.23.0` 起 helper 不再变化,`0.23.0 → 0.24.0` 不涉及 helper 重推)。已有主机的部署记录会被识别为旧代,
44
+ > **从 `0.30.0`(DSH `0.2.2-rc.5`)升到本版要注意**:alpha.3 的 helper 能力代从 **G2 升到 G3**
45
+ > (新增 `fs.writeBytes`,单次 ≤8 MiB),但 **wire 协议号仍是 3**。所以:
46
+ > - 已有主机的旧 helper 与插件"协议相同",**不会自动重推**(升级自愈只认协议号差异);
47
+ > - 需要到「设置 → 远程主机」对每台主机点一次「部署」(或新建一个远程工作区,向导会自动推),
48
+ > 才会换成 G3;每台首次约 47 MB 上传,旧版本目录在远端保留、可回滚;
49
+ > - 不推也能正常用:浏览/编辑/终端/文本与 patch/delete/move 都不受影响,只有依赖 `fs.writeBytes`
50
+ > 的能力(如实验性 IM 插件把文件附件按字节落进远端工作区)会报错。
51
+ >
52
+ > **从 `0.22.0`(或更早)升级要注意**:远端 helper 的 wire 协议由 **2 升到 3**(`0.23.0` → `0.30.0` 期间 helper 不重推;`0.31.0` 起改推 G3,见上一条)。已有主机的部署记录会被识别为旧代,
44
53
  > 首次连接该主机时自动重推新 helper(本机缓存里还留有旧版构建即可自动判定;缓存被清理过时,在设置页点一次
45
54
  > 「推送」即可),每台主机首次会多一次约 47 MB 的上传。旧 helper 目录会保留,回滚就是推回旧版本。
46
55
 
@@ -61,7 +70,7 @@ Host 仍是 `0.2.2-rc.4` 的请用插件 `0.23.0`;`0.2.2-rc.2` / `0.2.2-rc.3`
61
70
  注意:`desktop` 是桌面端独占的保留 profile,**npm 全局安装的 `dsh` 不能管理它**
62
71
  (会报 `profile "desktop" is managed exclusively by the Electron application`),
63
72
  只能走上面两条路径。桌面端的版本号等于它捆绑的 DSH 运行时版本,同样要满足
64
- `engines.dsh` 要求(`>=0.2.2-rc.5`,关于面板可看);低于该版本时插件页会直接拒绝
73
+ `engines.dsh` 要求(`>=0.2.3-alpha.3`,关于面板可看);低于该版本时插件页会直接拒绝
65
74
  安装。桌面端没有可见的 Web 端口,但本插件的 HTTP 路由与终端 socket 都经桌面端的
66
75
  Host 转发(终端按 `__DSH_TRANSPORT__.streamBaseUrl` 解析地址),无需额外设置。
67
76
 
@@ -246,7 +255,7 @@ dsh_remote_vs/
246
255
  ├── vendor/dsh-remote-helpers/ # helper 种子(随包发布,启动铺缓存,见下)
247
256
  ├── docs/ # 本地工作文档(不推送 GitHub;只有 docs/media/ 的截图随仓库公开)
248
257
  │ ├── MAINTENANCE.md # 本地私有(.gitignore,不入库):升级影响面/检查清单/踩坑/发布流程
249
- │ ├── VERSION-HISTORY.md # 本地私有:逐版本变更纪要(0.7.1 → 0.30.0)
258
+ │ ├── VERSION-HISTORY.md # 本地私有:逐版本变更纪要(0.7.1 → 0.31.0)
250
259
  │ └── GATES.md # 本地私有:本地门禁清单与实跑条数
251
260
  ├── locale/ # 插件元信息双语
252
261
  └── lib/ # 构建产物(**必须入库**,只有 .map 忽略;link 安装后重启即生效)
@@ -470,19 +479,25 @@ helper RPC(fs)/ ssh2(进程),本地一切不变;两者同 Host、共
470
479
  官方从未发布 helper 二进制(Release assets 全空),本插件走自编译:
471
480
 
472
481
  - 构建机:WSL2 Ubuntu-22.04(glibc 2.35,与目标远端一致),构建机 Node v24.21.0 + pnpm 11.28.5;
473
- pkg 内嵌的 node 是 **v24.22.3**(`helper.json` 的 `nodeVersion` 记它)
474
- - 源码:`dsh-v0.2.2-rc.4` tag(commit `3f321d32…`)—— **构建基线对齐的是 wire 协议号,不是 Host 版本号**;
475
- 这一代是**协议 3(G2 代)**:除 hello 的协议字面量与 `policySchema.additionalWritableRoots` 外,
476
- 还多出 `fs.patch` / `fs.delete` / `fs.move` 三个方法(31 vs 28)。**"协议 3"不等于有这三个方法**:
477
- G1 代(`dsh-v0.2.2-alpha.2`)自报的也是协议 3,但没有它们,必须按 G2 tag(≥ alpha.3)编
482
+ pkg 内嵌的 node 是 **v24.23.0**(`helper.json` 的 `nodeVersion` 记它;pkg 6.21.0 在构建时从 nodejs.org
483
+ 取 24.x 的最新补丁版,rc.4 构建那天是 v24.22.3)
484
+ - 源码:`dsh-v0.2.3-alpha.3` tag(commit `841f76d3…`)—— **构建基线对齐的是 wire 协议号,不是 Host 版本号**;
485
+ 这一代是**协议 3(G3 代)**:在 G2 的 `fs.patch` / `fs.delete` / `fs.move` 之外,新增 `fs.writeBytes`
486
+ (8 MiB/次,base64 传输)。**"协议 3"不等于这些方法都在**:G1 代(`dsh-v0.2.2-alpha.2`)自报的也是协议 3
487
+ 但没有 patch/delete/move,G2 代(`dsh-v0.2.2-rc.4`)没有 `fs.writeBytes`,必须按 G3 tag(`dsh-v0.2.3-alpha.3`)编
478
488
  - 命令:官方原脚本 `pnpm exec tsx scripts/build-exe-for-ssh-helper.ts --target=node24-linux-x64`
479
489
  - 偏离一:无 docker 跑不了 manylinux 2.28 重编,加了 `DSH_GLIBC_CEILING`
480
490
  环境覆盖(默认仍 2.28),本次以 2.35 构建(见 `glibc-ceiling.patch`)
481
- - 偏离二:上游 tag 的 helper 构建路径自身缺两个依赖(`@deepseek-ai/dsh-error` 是必需 peer、
482
- `@deepseek-ai/dsh-fs-patch` 没被 `compileRuntime()` 编进运行时),不补就是闭包门中止 / 握手
483
- `ERR_MODULE_NOT_FOUND`;补丁留档为 `ssh-helper-runtime-deps.patch`
491
+ - 偏离二:上游 tag 的 helper 构建路径自身缺三个依赖(`@deepseek-ai/dsh-error` 是必需 peer;
492
+ `@deepseek-ai/dsh-fs-patch` 与 alpha.3 新增的 `@deepseek-ai/dsh-attachment` 没被 `compileRuntime()` 编进运行时),
493
+ 不补就是闭包门中止 / 握手 `ERR_MODULE_NOT_FOUND`;补丁留档为 `ssh-helper-runtime-deps.patch`
494
+ - 偏离三:`@yao-pkg/pkg` 6.21.0 的 SEA 对「从快照外的真实文件发起的裸包导入」从挂载点
495
+ `/snapshot/node_modules` 开始找,而载荷实际在 `/snapshot/<project>/.../staging/node_modules`;
496
+ alpha.3 的新 scoped-repl PTC 以真实文件执行程序,官方验证的 `native-flock` 会 `ERR_MODULE_NOT_FOUND`。
497
+ `pkg-sea-bare-import.patch` 把查找起点改到打包入口目录(改的是依赖源码,`pnpm install` 后对
498
+ `node_modules/@yao-pkg/pkg/prelude/sea-bootstrap.bundle.js` 应用)
484
499
  - 校验:官方 `verify-ssh-helper-artifact.ts --archive=<tarball> --sandbox=required` 8 项全绿
485
- - 体积与缓存:linux-x64 包 **47 MB**(47,234,718 B);缓存 `$DSH_HOME/dsh-remote-helpers/`
500
+ - 体积与缓存:linux-x64 包 **47 MB**(47,497,147 B);缓存 `$DSH_HOME/dsh-remote-helpers/`
486
501
  (`*.tar.gz` + `.sha256` + `.helper.json` 含 binarySha256,供 P2 的 helperHash)
487
502
  - 升级重编全流程见本地维护文档 `docs/MAINTENANCE.md` §4(.gitignore,不随仓库分发)
488
503
 
@@ -561,6 +576,6 @@ MIT © 2026 xiray-xia —— 见 [LICENSE](./LICENSE)。
561
576
 
562
577
  发行包内联/依赖的第三方组件与许可证见 [THIRD-PARTY-NOTICES.md](./THIRD-PARTY-NOTICES.md)。
563
578
 
564
- `vendor/` 里的 helper 种子由 DeepSeek Harness 源码(MIT)按 `dsh-v0.2.2-rc.4`
565
- tag 以官方原脚本构建,具体流程与两处有记录的偏离见上文"Helper 自编译"节
566
- (种子包里的 `glibc-ceiling.patch` 与 `ssh-helper-runtime-deps.patch`)。
579
+ `vendor/` 里的 helper 种子由 DeepSeek Harness 源码(MIT)按 `dsh-v0.2.3-alpha.3`
580
+ tag 以官方原脚本构建,具体流程与三处有记录的偏离见上文"Helper 自编译"节
581
+ (种子包里的 `glibc-ceiling.patch`、`ssh-helper-runtime-deps.patch` 与 `pkg-sea-bare-import.patch`)。
@@ -43,9 +43,9 @@
43
43
  |---|---|---|---|
44
44
  | ws | 8.22.0(`package.json` 声明 `^8.18.0`) | MIT | `Copyright (c) 2011 Einar Otto Stangvik <einaros@gmail.com>`、`Copyright (c) 2013 Arnout Kazemier and contributors`、`Copyright (c) 2016 Luigi Pinca and contributors` |
45
45
  | zod | 4.6.6(精确 pin) | MIT | `Copyright (c) 2025 Colin McDonnell` |
46
- | `@deepseek-ai/dsh-ssh` | 0.2.2-rc.5(精确 pin) | MIT(DSH 项目) | 见 npm 包内 `LICENSE` |
47
- | `@deepseek-ai/dsh-fs-ssh` | 0.2.2-rc.5(精确 pin) | MIT(DSH 项目) | 见 npm 包内 `LICENSE` |
48
- | `@deepseek-ai/schemastery` | 3.19.0(精确 pin) | MIT(DSH 项目) | 见 npm 包内 `LICENSE` |
46
+ | `@deepseek-ai/dsh-ssh` | 0.2.3-alpha.3(精确 pin) | MIT(DSH 项目) | 见 npm 包内 `LICENSE` |
47
+ | `@deepseek-ai/dsh-fs-ssh` | 0.2.3-alpha.3(精确 pin) | MIT(DSH 项目) | 见 npm 包内 `LICENSE` |
48
+ | `@deepseek-ai/schemastery` | 3.20.0-alpha.2(精确 pin) | MIT(DSH 项目) | 见 npm 包内 `LICENSE` |
49
49
 
50
50
  ## 4. 由宿主提供的平台依赖(不随本包分发)
51
51
 
@@ -53,13 +53,13 @@
53
53
  (`cordis`、`dsh-*`;DSH 以 MIT 发布)由 DSH 宿主提供,本包只声明 peer、不打包其代码;§3 里的三个
54
54
  `@deepseek-ai/*` 是本包的**运行期依赖**(非 peer),由 npm 随包安装、同样不内联。
55
55
 
56
- `@deepseek-ai/dsh-client-ui-primitives`(`0.2.2-rc.5`,MIT,`Copyright (c) 2026 DeepSeek`)是
56
+ `@deepseek-ai/dsh-client-ui-primitives`(`0.2.3-alpha.3`,MIT,`Copyright (c) 2026 DeepSeek`)是
57
57
  **客户端平台模块表提供的组件**(Markdown 预览使用其 `MarkdownText`):本包只在 `devDependencies`
58
58
  声明它以便类型检查/构建,客户端构建按 external 解析,不内联、也不随本包安装;运行时由 DSH web shell
59
59
  的模块表提供。
60
60
 
61
- `vendor/` 下的 helper 种子由 DeepSeek Harness 源码(MIT)按 `dsh-v0.2.2-rc.4` tag 用官方脚本构建,并内嵌
62
- Node.js 运行时(MIT);构建流程与两处偏离见 README「Helper 自编译」。
61
+ `vendor/` 下的 helper 种子由 DeepSeek Harness 源码(MIT)按 `dsh-v0.2.3-alpha.3` tag 用官方脚本构建,并内嵌
62
+ Node.js 运行时(MIT);构建流程与三处偏离见 README「Helper 自编译」。
63
63
 
64
64
  ## 5. 许可证正文与获取位置
65
65
 
package/cordis.patch.yml CHANGED
@@ -53,37 +53,35 @@
53
53
  name: dsh-remote-vs/p2-router-refs
54
54
  inject: [localFileReferences, remoteWorlds]
55
55
 
56
- # Remote agent preset, bound to this bundle's lifecycle.
57
- # Mirrored from preset-standard @ dsh 0.2.2-rc.4. rc.4 note: the stock
58
- # `presets/standard.patch.yml` is byte-identical to rc.2 (verified by hash),
59
- # so this round adds no mirror delta — only the intentional diffs below.
60
- # Mirrored from preset-standard @ dsh 0.2.2-rc.2. rc.2 deltas adopted:
61
- # skill-filesystem customSkillDirs, tool-subagent-control interrupt:false,
62
- # tool-office row.
63
- # Mirrored from preset-standard @ dsh 0.2.2-alpha.2 with these diffs:
56
+ # Mirrored from preset-standard @ dsh 0.2.3-alpha.3. alpha.3 deltas adopted:
57
+ # tool-office renamed tool-document, new tool-cordis row, tool-fs no longer
58
+ # writes applyPatch (it now defaults to the resolved edit value, so the
59
+ # remote preset keeps offering apply_patch without stating it), and the
60
+ # stock tool-bash/tool-pwsh platform pair is still replaced by our isolated
61
+ # remote shell group below.
62
+ # Earlier mirror history (kept so a future diff against stock stays obvious):
63
+ # rc.4 note: stock standard.patch.yml was byte-identical to rc.2.
64
+ # rc.2 deltas: skill-filesystem customSkillDirs, tool-subagent-control
65
+ # interrupt:false, tool-office row.
66
+ # Intentional diffs from stock (do NOT re-add these to the mirror):
64
67
  # 1. persona prefix reframed for remote SSH work (transparent routing);
65
68
  # 2. tool-bash moved into an isolated shell group with our routed bash
66
69
  # executor (stock root shell stays pwsh on Windows);
67
70
  # 3. tool-pwsh row dropped;
68
- # 4. tool-fs `applyPatch: true` — intentional divergence from stock's
69
- # `false`: 0.23.0 speaks helper protocol 3, so the remote half really
70
- # implements patch/delete/move (fs.patch/fs.delete/fs.move) and the
71
- # apply_patch tool is no longer a local-only promise. Stock default stays
72
- # false for compositions that do not mount our remote fs.
71
+ # 4. tool-fs applyPatch: the remote world speaks helper protocol 3 and
72
+ # implements fs.patch/delete/move, so apply_patch must stay offered.
73
+ # Since alpha.3 applyPatch defaults to `edit`, the key is no longer
74
+ # written here; stock and this mirror therefore agree on the value.
73
75
  # Everything else is byte-identical so future diffs against stock stay obvious.
74
- # alpha.3 note: stock dropped `toolFilter` (subagent children now inherit
75
- # the parent composition; fork must not select presets) — our mirror drops
76
- # both blocks with it.
76
+ # alpha.3 note: stock dropped `toolFilter` (subagent children now inherit the
77
+ # parent composition; fork must not select presets) — our mirror drops both
78
+ # blocks with it.
77
79
  # alpha.4 note: stock added `tool-plugin-market` (disabled: true in every
78
- # preset) right after `tool-plugin-manager` — mirrored here for the same
79
- # reason as above: a row missing from the mirror is a preset that silently
80
- # loads a different toolset than stock.
80
+ # preset) right after `tool-plugin-manager`.
81
81
  # 0.2.2-alpha.2 note: stock dropped `tool-subagent-list-agents` (the
82
82
  # `dsh-tool-subagent-control/list-agents` subpath is gone from the package),
83
83
  # renamed `modelSelectionSettings` to `modelSelection` + `modelDiscovery`,
84
- # and made the plugin-manager row conditional on `profileContext`. All
85
- # three are mirrored here: the first one is a hard module-resolution error,
86
- # the other two are schema drift.
84
+ # and made the plugin-manager row conditional on `profileContext`.
87
85
  - id: preset-remote
88
86
  name: '@deepseek-ai/dsh-agent-preset'
89
87
  config:
@@ -122,11 +120,6 @@
122
120
  name: '@deepseek-ai/dsh-tool-bash'
123
121
  - id: tool-fs
124
122
  name: '@deepseek-ai/dsh-tool-fs'
125
- config:
126
- # Intentional divergence from the stock `false`: the remote world
127
- # serves protocol 3 (fs.patch/fs.delete/fs.move), so apply_patch is
128
- # real for remote files as well as local ones. Stock stays false.
129
- applyPatch: true
130
123
  - id: tool-fs-search
131
124
  name: '@deepseek-ai/dsh-tool-fs-search'
132
125
  config:
@@ -155,58 +148,18 @@
155
148
  - id: plan-mode
156
149
  name: '@deepseek-ai/dsh-plan-mode'
157
150
  config:
158
- section: >
159
- You are in plan mode. Stay in plan mode until the user approves your plan through exit_plan_mode
160
- or switches the session mode. Imperative
161
- language to implement changes means plan the implementation, not
162
- execute it. A user's conversational agreement — including an
163
- answer confirming something you asked — approves nothing and
164
- does not end plan mode; fold the confirmed decision into the
165
- plan and submit it through exit_plan_mode.
166
-
167
-
168
- Explore first. Use non-mutating reads, searches, static
169
- analysis, and checks to ground the plan in the actual
170
- repository. Do not edit or write files, change configuration,
171
- run formatters or code generation that rewrites tracked files,
172
- commit, or otherwise carry out the plan. Prefer existing
173
- functions and patterns over new machinery.
174
-
175
-
176
- The tool catalog stays the same across modes for request-cache
177
- stability. These plan-mode rules override any later tool
178
- description or guidance that suggests using mutation tools;
179
- those tools remain listed to keep the tool catalog unchanged. Do
180
- not use todo_write to track this planning phase: it tracks
181
- implementation after an approved plan, while the plan itself
182
- belongs in exit_plan_mode.
183
-
151
+ section: |
152
+ You are in plan mode. Stay in plan mode until the user approves your plan through exit_plan_mode or switches the session mode. Imperative language to implement changes means plan the implementation, not execute it. A user's conversational agreement — including an answer confirming something you asked — approves nothing and does not end plan mode; fold the confirmed decision into the plan and submit it through exit_plan_mode.
184
153
 
185
- Resolve discoverable facts by inspection. Use ask_user_question
186
- only for user-owned choices or material ambiguity that
187
- inspection cannot answer. Do not ask the user where code lives
188
- or how current behavior works when you can find out.
154
+ Explore first. Use non-mutating reads, searches, static analysis, and checks to ground the plan in the actual repository. Do not edit or write files, change configuration, run formatters or code generation that rewrites tracked files, commit, or otherwise carry out the plan. Prefer existing functions and patterns over new machinery.
189
155
 
156
+ The tool catalog stays the same across modes for request-cache stability. These plan-mode rules override any later tool description or guidance that suggests using mutation tools; those tools remain listed to keep the tool catalog unchanged. Do not use todo_write to track this planning phase: it tracks implementation after an approved plan, while the plan itself belongs in exit_plan_mode.
190
157
 
191
- Make the plan decision-complete: state the goal and success
192
- criteria; group implementation changes by subsystem; identify
193
- public API, schema, and data-flow changes; cover edge cases,
194
- failure modes, tests, acceptance criteria, and explicit
195
- assumptions. Keep it concise enough to review but detailed
196
- enough that another engineer can implement it without making
197
- design decisions.
158
+ Resolve discoverable facts by inspection. Use ask_user_question only for user-owned choices or material ambiguity that inspection cannot answer. Do not ask the user where code lives or how current behavior works when you can find out.
198
159
 
160
+ Make the plan decision-complete: state the goal and success criteria; group implementation changes by subsystem; identify public API, schema, and data-flow changes; cover edge cases, failure modes, tests, acceptance criteria, and explicit assumptions. Keep it concise enough to review but detailed enough that another engineer can implement it without making design decisions.
199
161
 
200
- When ready, call exit_plan_mode with the complete plan markdown,
201
- starting with a # title. Make exit_plan_mode the only and final
202
- tool call in that assistant response: it presents the plan for
203
- approval, and implementation begins only in a later step after
204
- approval. Do not paste the final plan as a plain reply or ask
205
- "should I proceed?" through prose or ask_user_question. If
206
- review rejects it, incorporate the feedback and present again.
207
- If the review channel is unavailable or aborted, stay in plan
208
- mode and ask the user to switch modes manually; do not proceed
209
- with implementation.
162
+ When ready, call exit_plan_mode with the complete plan markdown, starting with a # title. Make exit_plan_mode the only and final tool call in that assistant response: it presents the plan for approval, and implementation begins only in a later step after approval. Do not paste the final plan as a plain reply or ask "should I proceed?" through prose or ask_user_question. If review rejects it, incorporate the feedback and present again. If the review channel is unavailable or aborted, stay in plan mode and ask the user to switch modes manually; do not proceed with implementation.
210
163
  - id: compaction
211
164
  name: cordis:group
212
165
  group: true
@@ -263,10 +216,12 @@
263
216
  config:
264
217
  fetch: true
265
218
  searchTimeoutMs: 60000
219
+ - id: tool-cordis
220
+ name: '@deepseek-ai/dsh-tool-cordis'
266
221
  - id: present
267
222
  name: '@deepseek-ai/dsh-tool-present'
268
- - id: tool-office
269
- name: '@deepseek-ai/dsh-tool-office'
223
+ - id: tool-document
224
+ name: '@deepseek-ai/dsh-tool-document'
270
225
  - id: tool-plugin-manager
271
226
  name: '@deepseek-ai/dsh-plugin-manager/tools'
272
227
  disabled: !!js "!ctx.get('profileContext')"