@zhangfengshun/dsh-remote-ssh 1.2.0 → 1.2.1

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 CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  本文件的版本号与 `package.json` 的 `version` 保持一致。每个版本对应一个 Cordis Package 快照(`pkg-N`)。
4
4
 
5
+ ## [1.2.1] — 修复包名不一致
6
+ ### 修复
7
+ - Host 半边导出的 `name` 与 Client 半边 `__ModuleLoader__.load({ id })` 统一改为作用域包名 `@zhangfengshun/dsh-remote-ssh`,与 `package.json` / `cordis.patch.yml` 一致,修复在新机器上安装时报「名字与发布名不一致」的错误。
8
+
5
9
  ## [1.2.0] — 中英文双语
6
10
  ### 新增
7
11
  - **界面国际化**:Client 半边接入 `ctx.locale`,注册 `dsh-remote-ssh` 命名空间的 `zh` / `en` 词典,所有界面文案(页签标题、设置小节、文件/终端页签、添加工作区弹窗)跟随 DSH 设置中的语言自动切换。
package/lib/client.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * dsh-remote-ssh — Client 半边(静态 DSH Web 插件,浏览器 bundle)
2
+ * @zhangfengshun/dsh-remote-ssh — Client 半边(静态 DSH Web 插件,浏览器 bundle)
3
3
  *
4
4
  * 通过 dsh-better-sidebar 的 `ctx.betterSidebar.registerTab` 注册两个侧边栏页签:
5
5
  * - remssh:files 远程文件(文件浏览器 + 工作区选择)
@@ -9,7 +9,7 @@
9
9
  * 提供「本地目录 / 远程目录」两选:远程分支创建本地镜像目录并注册为原生工作区。
10
10
  */
11
11
  window.__ModuleLoader__.load({
12
- id: "dsh-remote-ssh",
12
+ id: "@zhangfengshun/dsh-remote-ssh",
13
13
  factory: (require) => {
14
14
  var module = { exports: {} };
15
15
  var exports = module.exports;
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * dsh-remote-ssh — Host 半边(静态 DSH Web 插件)
2
+ * @zhangfengshun/dsh-remote-ssh — Host 半边(静态 DSH Web 插件)
3
3
  *
4
4
  * 能力:
5
5
  * 1. 远程连接配置 + 远程工作区持久化到 DSH settings 命名空间 `dsh-remote-ssh`
@@ -16,7 +16,7 @@ import { homedir } from "node:os";
16
16
  import { join } from "node:path";
17
17
 
18
18
  /** Plugin identity for cordis.yml rows. */
19
- const name = "dsh-remote-ssh";
19
+ const name = "@zhangfengshun/dsh-remote-ssh";
20
20
  /** Services required before mounting. */
21
21
  const inject = ["webServer", "subprocess", "tools"];
22
22
  /** Composition config schema(本插件暂无配置项)。 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhangfengshun/dsh-remote-ssh",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "DSH web plugin: VSCode Remote-SSH-like remote development (SSH to supercomputers/servers, remote workspace, file explorer, integrated terminal), integrated with dsh-better-sidebar and DSH settings.",
5
5
  "keywords": [
6
6
  "dsh",