dsh-code-server-app 0.3.56 → 0.3.58

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/lib/index.js CHANGED
@@ -839,7 +839,7 @@ export async function apply(ctx, config) {
839
839
  /**
840
840
  * 「问 DSH」对话框的宿主侧状态(0.3.24)。
841
841
  *
842
- * 对话渲染从编辑器的 webview 面板搬到了 **DSH 页面里的浮动对话框**(client 半部,见 src/factory.js):
842
+ * 对话渲染从编辑器的 webview 面板搬到了 **DSH 页面里的浮动对话框**(client 半部,见 lib/client.js):
843
843
  * 面板是编辑器里的一个 tab/一列,而用户要的是"像 DSH 那样的对话框"。host 这边只负责:
844
844
  * - 打开/关闭状态(编辑器扩展右键 → 桥 `/event` 上报 `ask-open`);
845
845
  * - 状态与动作的 HTTP 面(`/api/code-server/ask/*`,与 DSH 同源、吃它的 cookie/Origin 校验);
@@ -1518,7 +1518,7 @@ export async function apply(ctx, config) {
1518
1518
 
1519
1519
  /** 已运行实例切换工作区:**只改"当前 workbench 目录",不重启进程**。
1520
1520
  *
1521
- * 为什么够用:工作区目录由客户端 URL 的 `&folder=<绝对路径>` 决定(见 src/factory.js 的
1521
+ * 为什么够用:工作区目录由客户端 URL 的 `&folder=<绝对路径>` 决定(见 lib/client.js 的
1522
1522
  * buildPageUrl),服务进程自己的 cwd 只影响它 spawn 时对相对路径的解析;真正"换目录"是
1523
1523
  * workbench 拿新 folder 重新导航(客户端导航 iframe)。
1524
1524
  * 旧行为(0.2.11 及以前)在这里 stop('restart') + 重新 launch:切一次工作区就整进程重启,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-code-server-app",
3
- "version": "0.3.56",
3
+ "version": "0.3.58",
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). Since 0.3.0 the bundle also ships an editor bridge (assets/extensions/dshcs-editor-bridge): a read-only channel between the in-tree VS Code extension host and DSH, giving the agent what only the editor knows (unsaved buffers, language-server diagnostics, the active selection) and letting editor gestures drive the session. Since 0.3.22 the ask panel renders that session's new content with DSH's own Markdown renderer (pinned to the deployed DSH UI version); since 0.3.23 it is a full-width dialog with collapsible thinking rows and can answer approval requests in place — the bridge's only non-read-only route (POST /approve, constrained to pending in-process requests and the outcomes allowed-once/rejected; panel-first for 5 minutes, handed back to the official card the moment the panel closes). The tab claims DSH file addresses (dsh-resource://file/**) by file type (setting claimExtensions), so the product's own 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 no longer reloads it. Opening the tab switches the right sidebar to fullscreen by default (setting fullscreenOnOpen). Following a workspace switch is lightweight: the workbench re-navigates with the new ?folder= and the IDE process is not restarted (since 0.2.12). Requires a DSH with the right-sidebar services (sidebarRightTabs/sidebarRight, >= 0.1.5-alpha.1); older DSH versions get a single upgrade notice on the settings page and no other UI. Two serving modes: loopback port (default) or same-origin mount on DSH's own webServer (/code-server, protected by ctx.connection.requestRejection). Since 0.3.55 the diff the bridge opens always has the real pre-write text on the left, even for files that are not open in the editor: the host reads the execution-local result.value.before in tools/post-execute (the durable tools/result projection deliberately omits value) into a bounded snapshot cache and the extension fetches it by opaque key over the read-only GET /old route; paths are resolved against the session cwd first, so relative file_path arguments are no longer dropped by the editor's workspace check. Since 0.3.56 the bridge actually delivers every diff: the event ring's sequence is monotonic for the lifetime of a host process (0.3.9-0.3.55 rewound it after every /sync, so at most one agent-edit per IDE session was ever delivered), /sync returns lastSeq, and the extension re-aligns its cursor by itself when it notices it ran ahead. No code-server Node layer, no argon2, no C++ toolchain.",
5
5
  "homepage": "https://github.com/jinsiyu/dsh-code-server-app",
6
6
  "repository": {
@@ -183,7 +183,6 @@
183
183
  "publish:repacks": "node scripts/publish-repacks.mjs",
184
184
  "publish:plugin": "node scripts/publish-plugin.mjs",
185
185
  "promote": "node scripts/promote.mjs",
186
- "build:client": "node scripts/build-client.mjs",
187
186
  "build:webview": "node scripts/build-webview.mjs",
188
187
  "test:apply": "node scripts/test-plugin-apply.mjs",
189
188
  "test:launcher-routes": "node scripts/test-launcher-routes.mjs",
@@ -192,6 +191,8 @@
192
191
  "test:workspace-switch": "node scripts/test-workspace-switch.mjs",
193
192
  "test:workspace-cwd": "node scripts/test-workspace-cwd.mjs",
194
193
  "test:client-cwd": "node scripts/test-client-bundle-cwd.mjs",
194
+ "test:client-tabs": "node scripts/test-client-bundle-tabs.mjs",
195
+ "test:client-entry": "node scripts/test-client-entry.mjs",
195
196
  "test:client-seat": "node scripts/test-client-settings-seat.mjs",
196
197
  "test:dsh-resolve": "node scripts/test-dsh-resolve.mjs",
197
198
  "test:child-node": "node scripts/test-child-node.mjs",
@@ -3,7 +3,7 @@
3
3
  "vscodeVersion": "1.137.0",
4
4
  "productPath": "stable-b11dabdaca0d3369986975be285db92c8795cea5",
5
5
  "layout": "vscode-only",
6
- "preparedAt": "2026-09-19T09:45:50.744Z",
6
+ "preparedAt": "2026-09-20T14:00:30.445Z",
7
7
  "source": "registry",
8
8
  "node": "v24.20.0",
9
9
  "platform": "linux",