dsh-code-server-app 0.3.71 → 0.3.72
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 +5 -5
- package/README.md +5 -5
- package/lib/vendored.json +1 -1
- package/package.json +4 -4
- package/vendor/VENDOR.json +5 -5
package/README.en.md
CHANGED
|
@@ -536,7 +536,7 @@ data call changes; the caller stays as it is).
|
|
|
536
536
|
committed hand-written source: there is no build step anywhere on that chain).
|
|
537
537
|
|
|
538
538
|
> Verified locally (BM: Windows 11 ARM64): the whole tree/dependency chain hangs directly off the plugin's
|
|
539
|
-
> dependency table — the tree package `@jinsiyu/dshcs-vscode-server` (currently 4.
|
|
539
|
+
> dependency table — the tree package `@jinsiyu/dshcs-vscode-server` (currently 4.141.0, a ~44 MB tarball),
|
|
540
540
|
> the pure-JS inner dependencies plus the 7 platform-independent repacks in `dependencies`, and the 8
|
|
541
541
|
> platform-specific repacks (win32-arm64 / win32-x64) in `optionalDependencies` with their own os/cpu gates;
|
|
542
542
|
> the original names are restored by junctions created at runtime (`lib/native.js`)
|
|
@@ -584,7 +584,7 @@ pnpm run promote -- <version>
|
|
|
584
584
|
| Goal | Command |
|
|
585
585
|
|---|---|
|
|
586
586
|
| **Build from the latest upstream release** | `pnpm run vendor:latest` (= `--force`): pulls `code-server@latest`'s tree into `vendor/vscode`; afterwards you **must** re-run `repack:build` and republish every sub-package |
|
|
587
|
-
| **Pin a version** | `pnpm run vendor:vscode -- --version 4.
|
|
587
|
+
| **Pin a version** | `pnpm run vendor:vscode -- --version 4.141.0` |
|
|
588
588
|
| **Snapshot from an existing tree** | `pnpm run vendor:vscode -- --from <code-server dir>` (seconds) |
|
|
589
589
|
| **Rebuild every sub-package** | `pnpm run repack:build -- --target win32-arm64,win32-x64 --pack` (without `--from` it npm-installs and compiles the source tree itself — slow) |
|
|
590
590
|
| **Rebuild only the tree + dependency table** | `node scripts/vendor-repacks.mjs --reuse --target win32-arm64,win32-x64 --pack` (reuses the natives already in `repack/build`; also rewrites `lib/vendored.json` and the plugin dependency table) |
|
|
@@ -612,7 +612,7 @@ pnpm run watch:upstream # same, but first goes through pnpm's
|
|
|
612
612
|
node scripts/watch-upstream.mjs --json # machine readable (what a DSH in-session reminder parses); human output goes to stderr
|
|
613
613
|
node scripts/watch-upstream.mjs --no-notify # report only, no notification (regressions / unattended)
|
|
614
614
|
node scripts/watch-upstream.mjs --fixture f.json # use a local JSON file as the registry response (offline)
|
|
615
|
-
node scripts/watch-upstream.mjs --local 4.
|
|
615
|
+
node scripts/watch-upstream.mjs --local 4.141.0 # override the local baseline for a dry run (does not read vendor/)
|
|
616
616
|
node scripts/test-upstream-watch.mjs # regression suite (offline, never notifies)
|
|
617
617
|
```
|
|
618
618
|
|
|
@@ -1118,7 +1118,7 @@ dsh plugin --profile web add C:\Users\User\Desktop\dsh-code-server-app
|
|
|
1118
1118
|
### Upgrading the VS Code tree (upstream = a code-server release)
|
|
1119
1119
|
|
|
1120
1120
|
- **The version is decided at pack time**: `pnpm run vendor:latest` (= `--force`) pulls the tree of the npm **latest**
|
|
1121
|
-
release; or use `pnpm run vendor:vscode -- --version 4.
|
|
1121
|
+
release; or use `pnpm run vendor:vscode -- --version 4.141.0` / `DSHCS_CODE_SERVER_VERSION`.
|
|
1122
1122
|
With an existing `vendor/vscode`, a plain `pnpm pack` never upgrades (it is a no-op).
|
|
1123
1123
|
**Source-tree precedence (fixed in 0.2.13)**: an explicit `--from` uses that tree, while an explicit
|
|
1124
1124
|
`--force`/`--version` now **always goes to the registry** — before the fix a local source tree won
|
|
@@ -1147,7 +1147,7 @@ dsh plugin --profile web add C:\Users\User\Desktop\dsh-code-server-app
|
|
|
1147
1147
|
- `productPath` (`<quality>-<commit>`, part of the client WebSocket path) is **computed from `lib/vscode/product.json`**,
|
|
1148
1148
|
so upgrading the tree needs no code change — but the routes are registered at activation, so restart `dsh web` afterwards.
|
|
1149
1149
|
- **No runtime auto-upgrade anymore**: nothing fetches latest at startup; the version is fully determined by the bundled artifact.
|
|
1150
|
-
- Bundled locally right now: the tree of `code-server@4.
|
|
1150
|
+
- Bundled locally right now: the tree of `code-server@4.141.0` (VS Code 1.141.0, `productPath=stable-8b41915d…`).
|
|
1151
1151
|
|
|
1152
1152
|
### Tree and install-location resolution
|
|
1153
1153
|
|
package/README.md
CHANGED
|
@@ -479,7 +479,7 @@ seq,并且 `/sync` 回应里带 `lastSeq`(高水位),扩展据此自查游标是
|
|
|
479
479
|
(客户端半部与提问面板都是入库的手写源码 —— 整条链上**没有任何构建步骤**)。
|
|
480
480
|
|
|
481
481
|
> 本机(BM: Windows 11 ARM64)实测:树/依赖全链路是"平台子包直挂插件依赖"供给 ——
|
|
482
|
-
> 树包 `@jinsiyu/dshcs-vscode-server`(当前 4.
|
|
482
|
+
> 树包 `@jinsiyu/dshcs-vscode-server`(当前 4.141.0,tgz 约 44 MB)、纯 JS 内部依赖与 7 个平台无关
|
|
483
483
|
> 重打包包直接进插件 `dependencies`、8 个平台专属重打包包按 win32-arm64/x64 进
|
|
484
484
|
> `optionalDependencies`(包自带 os/cpu 自动选),原始名字由 `lib/native.js` 补 junction 还原
|
|
485
485
|
> → healthz 200 → 停止 → 回收全链路验证。
|
|
@@ -535,7 +535,7 @@ pnpm run promote -- <version>
|
|
|
535
535
|
| 目标 | 命令 |
|
|
536
536
|
|---|---|
|
|
537
537
|
| **打最新版(上游 code-server 发行版)** | `pnpm run vendor:latest`(= `--force`):从 registry 取 `code-server@latest` 的树到 `vendor/vscode`;之后**必须**重跑 `repack:build` 并重发全部子包 |
|
|
538
|
-
| **指定版本** | `pnpm run vendor:vscode -- --version 4.
|
|
538
|
+
| **指定版本** | `pnpm run vendor:vscode -- --version 4.141.0` |
|
|
539
539
|
| **从已装好的树快照** | `pnpm run vendor:vscode -- --from <code-server 目录>`(秒级) |
|
|
540
540
|
| **开发期让树可直接跑** | `pnpm run vendor:vscode -- --dev-links`(额外把 `lib/vscode/node_modules` 用 junction 补上) |
|
|
541
541
|
| **完整重打子包** | `pnpm run repack:build -- --target win32-arm64,win32-x64 --pack`(不给 `--from` 会自动 npm install 解包 + 编译,耗时)。`--target` 只决定**本次在这台机器上构建哪些目标**(原生包要现编,所以 Linux 目标在 Linux 机器或 `repacks.yml` 的 Linux 腿上构建);产品覆盖哪些目标、每模块在哪些目标上有子包,由 `scripts/repack-platforms.json` 决定 |
|
|
@@ -562,7 +562,7 @@ pnpm run watch:upstream # 同上,但会先过 pnpm 的依赖
|
|
|
562
562
|
node scripts/watch-upstream.mjs --json # 机器可读(DSH 会话内提醒解析这一份);人类输出转 stderr
|
|
563
563
|
node scripts/watch-upstream.mjs --no-notify # 只报告、不发通知(回归 / 无人值守)
|
|
564
564
|
node scripts/watch-upstream.mjs --fixture f.json # 用本地 JSON 当 registry 应答(离线)
|
|
565
|
-
node scripts/watch-upstream.mjs --local 4.
|
|
565
|
+
node scripts/watch-upstream.mjs --local 4.141.0 # 覆盖本地基线试算(不读 vendor/)
|
|
566
566
|
node scripts/test-upstream-watch.mjs # 回归(离线、不发通知)
|
|
567
567
|
```
|
|
568
568
|
|
|
@@ -1056,7 +1056,7 @@ dsh plugin --profile web add C:\Users\User\Desktop\dsh-code-server-app
|
|
|
1056
1056
|
### 升级 VS Code 树(上游 = code-server 发行版)
|
|
1057
1057
|
|
|
1058
1058
|
- **打包期决定版本**:`pnpm run vendor:latest`(= `--force`)取 npm **最新版 code-server** 的树并重建 `vendor/vscode`;
|
|
1059
|
-
也可 `pnpm run vendor:vscode -- --version 4.
|
|
1059
|
+
也可 `pnpm run vendor:vscode -- --version 4.141.0` 或设 `DSHCS_CODE_SERVER_VERSION`。
|
|
1060
1060
|
已有 `vendor/vscode` 时,不带 `--force`/`--version` 不会升级(日常 `pnpm pack` 是 no-op)。
|
|
1061
1061
|
**源树优先级(0.2.13 修正)**:显式 `--from` 用给定树;显式 `--force`/`--version` **一定走 registry**
|
|
1062
1062
|
—— 修正前它们会被"本机已有源树"抢走(`defaultSourceTree()` 先命中 `vendor/code-server` 或 profile 里的旧树),
|
|
@@ -1081,7 +1081,7 @@ dsh plugin --profile web add C:\Users\User\Desktop\dsh-code-server-app
|
|
|
1081
1081
|
- `productPath`(`<quality>-<commit>`,客户端 WS 路径的组成)**从 `lib/vscode/product.json` 现算**,
|
|
1082
1082
|
升级树后无需改代码 —— 但也意味着切版本后必须重启 dsh web(路由在激活期注册)。
|
|
1083
1083
|
- **不再有运行期自动升级**:不会在启动时联网取 latest;版本完全由内置产物决定。
|
|
1084
|
-
- 本机当前内置:`code-server@4.
|
|
1084
|
+
- 本机当前内置:`code-server@4.141.0` 的树(VS Code 1.141.0,`productPath=stable-8b41915d…`)。
|
|
1085
1085
|
|
|
1086
1086
|
### 树与安装位的解析路径
|
|
1087
1087
|
|
package/lib/vendored.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-code-server-app",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.72",
|
|
4
4
|
"description": "VS Code (from a code-server release) inside DSH: a right-sidebar tab driven by the plugin's own launcher over the in-process VS Code server (lib/launcher.mjs), plus an editor bridge (assets/extensions/dshcs-editor-bridge) that gives the agent what only the editor knows (unsaved buffers, language-server diagnostics, the active selection) and lets editor gestures drive the session. The bridge is completely read-only: all four of its routes (/health, /sync, /old, /event) are reads. Asking DSH from the editor opens a floating dialog inside the DSH page (draggable, resizable, bottom-right): the plugin's client half sends the question as user input (POST /api/code-server/ask/send) and renders that session's new content with DSH's own Markdown renderer - the same @deepseek-ai/dsh-client-ui-primitives instance the UI uses, required from the page's module table, so typography, highlighting and math match the interface and a renderer version mismatch is impossible. Thinking appears as collapsed rows and approval requests (writing outside the workspace / running commands) can be answered in place: whole-plugin write route POST /api/code-server/ask/approve, constrained to pending in-process requests and the outcomes allowed-once/rejected; dialog-first for 5 minutes, handed back to the official card the moment the dialog closes, never auto-approved. There is no build step anywhere: lib/client.js (client half including the dialog panel) and the extension are committed hand-written source, devDependencies holds a single test-only entry, and the published package carries no frontend bundle. Also: the tab claims DSH file addresses (dsh-resource://file/**) by file type (setting claimExtensions), so produced-file chips, delivered-file previews and inline prose mentions open in the workbench; the IDE is a resident surface moved with Element.moveBefore instead of being remounted, so switching sidebar tabs does not reload it; opening the tab switches the right sidebar to fullscreen by default (setting fullscreenOnOpen); a workspace switch re-navigates the workbench with the new ?folder= without restarting the IDE process. Requires a DSH with the right-sidebar services (sidebarRightTabs/sidebarRight, >= 0.1.5-alpha.1); older DSH versions only get an upgrade notice on the settings page. Two serving modes: loopback port (default) or same-origin mount on DSH's own webServer (/code-server, protected by ctx.connection.requestRejection). The diff the bridge opens always has the real pre-write text on the left, taken from result.value.before in tools/post-execute into a bounded snapshot cache and fetched by opaque key over the read-only GET /old, so files that are not open in the editor work too. No code-server Node layer, no argon2, no C++ toolchain.",
|
|
5
5
|
"homepage": "https://github.com/jinsiyu/dsh-code-server-app",
|
|
6
6
|
"repository": {
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@jinsiyu/dshcs-ssh2": "1.17.0",
|
|
86
86
|
"@jinsiyu/dshcs-vscode-fs-copyfile": "2.0.0",
|
|
87
87
|
"@jinsiyu/dshcs-vscode-proxy-agent": "0.45.0",
|
|
88
|
-
"@jinsiyu/dshcs-vscode-server": "4.
|
|
88
|
+
"@jinsiyu/dshcs-vscode-server": "4.141.0",
|
|
89
89
|
"@microsoft/1ds-core-js": "3.2.13",
|
|
90
90
|
"@microsoft/1ds-post-js": "3.2.13",
|
|
91
91
|
"@vscode/iconv-lite-umd": "0.7.1",
|
|
@@ -151,8 +151,8 @@
|
|
|
151
151
|
"@jinsiyu/dshcs-vscode-windows-ca-certs-win32-x64": "0.3.4",
|
|
152
152
|
"@jinsiyu/dshcs-vscode-windows-process-tree-win32-arm64": "0.8.0",
|
|
153
153
|
"@jinsiyu/dshcs-vscode-windows-process-tree-win32-x64": "0.8.0",
|
|
154
|
-
"@jinsiyu/dshcs-vscode-windows-registry-win32-arm64": "1.
|
|
155
|
-
"@jinsiyu/dshcs-vscode-windows-registry-win32-x64": "1.
|
|
154
|
+
"@jinsiyu/dshcs-vscode-windows-registry-win32-arm64": "1.3.0",
|
|
155
|
+
"@jinsiyu/dshcs-vscode-windows-registry-win32-x64": "1.3.0"
|
|
156
156
|
},
|
|
157
157
|
"scripts": {
|
|
158
158
|
"test": "node scripts/run-all-tests.mjs",
|
package/vendor/VENDOR.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"codeServerVersion": "4.
|
|
3
|
-
"vscodeVersion": "1.
|
|
4
|
-
"productPath": "stable-
|
|
2
|
+
"codeServerVersion": "4.141.0",
|
|
3
|
+
"vscodeVersion": "1.141.0",
|
|
4
|
+
"productPath": "stable-8b41915d25547e2edd553bab03ea4cbd621f98c5",
|
|
5
5
|
"layout": "vscode-only",
|
|
6
|
-
"preparedAt": "2026-10-
|
|
6
|
+
"preparedAt": "2026-10-09T06:02:25.638Z",
|
|
7
7
|
"source": "registry",
|
|
8
8
|
"node": "v24.21.0",
|
|
9
9
|
"platform": "linux",
|
|
10
10
|
"arch": "x64",
|
|
11
|
-
"sizeMB": 165.
|
|
11
|
+
"sizeMB": 165.9
|
|
12
12
|
}
|