dsh-ssh-workspace-companion 0.2.0 → 0.2.2
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.md +30 -10
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -1,26 +1,46 @@
|
|
|
1
1
|
# dsh-ssh-workspace-companion
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[dsh-ssh-workspace](https://www.npmjs.com/package/dsh-ssh-workspace) 的远程配套插件。安装在每台远程机器的 DeepSeek Harness(DSH)Web profile 中,让本地插件可以打开和操作该机器的工作区与会话。
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## 安装位置
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- 本地机器安装 `dsh-ssh-workspace`。
|
|
8
|
+
- 每台远程机器安装本包 `dsh-ssh-workspace-companion`。
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
本包需要配合本地插件使用。
|
|
11
|
+
|
|
12
|
+
## 兼容性
|
|
13
|
+
|
|
14
|
+
插件 0.2.x 面向 **DSH 0.2.0-rc.2**,不支持 DSH 0.1.x。本地插件与所有远程 companion 应使用相同版本,更新后重启 DSH。
|
|
15
|
+
|
|
16
|
+
## 远程机器安装
|
|
10
17
|
|
|
11
18
|
```sh
|
|
12
19
|
dsh plugin --profile web add dsh-ssh-workspace-companion
|
|
13
20
|
```
|
|
14
21
|
|
|
15
|
-
|
|
22
|
+
远程 Web 服务应绑定 loopback:
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
dsh --profile web --host 127.0.0.1 --port 30800 --trusted-host 127.0.0.1:30800
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
本地插件通过 SSH 隧道连接该服务。如果使用自定义 `DSH_HOME`,安装、启动和本地 Remote Desktop 设置中的远程 profile 路径必须对应同一个目录。
|
|
29
|
+
|
|
30
|
+
随后在本地机器安装主插件,并在 **Settings → Remote Desktop** 中连接 SSH 主机:
|
|
16
31
|
|
|
17
32
|
```sh
|
|
18
|
-
dsh plugin --profile web add
|
|
33
|
+
dsh plugin --profile web add dsh-ssh-workspace
|
|
19
34
|
```
|
|
20
35
|
|
|
21
|
-
|
|
22
|
-
|
|
36
|
+
## 工作方式
|
|
37
|
+
|
|
38
|
+
companion 在本地插件打开的远程 iframe 中验证父页面来源和连接 token,通过专用 MessageChannel 转发 DSH 官方 Controller 状态与操作,并隐藏 iframe 中的远程侧栏。远程业务数据继续由远程 DSH 的认证服务处理。
|
|
39
|
+
|
|
40
|
+
## 文档与反馈
|
|
23
41
|
|
|
24
|
-
|
|
42
|
+
- [项目与完整使用说明](https://github.com/sincerity711/dsh-ssh-workspace)
|
|
43
|
+
- [远程服务器配置](https://github.com/sincerity711/dsh-ssh-workspace/blob/main/docs/remote-server-setup.md)
|
|
44
|
+
- [问题反馈](https://github.com/sincerity711/dsh-ssh-workspace/issues)
|
|
25
45
|
|
|
26
|
-
|
|
46
|
+
开发时修改 `packages/companion/src/client.js`,再在仓库根目录执行 `npm run build` 和 `npm run check`。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-ssh-workspace-companion",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Remote companion for dsh-remote-desktop iframe control.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -45,17 +45,19 @@
|
|
|
45
45
|
"remote-desktop",
|
|
46
46
|
"iframe",
|
|
47
47
|
"companion",
|
|
48
|
-
"remote-workspace"
|
|
48
|
+
"remote-workspace",
|
|
49
|
+
"ssh-workspace",
|
|
50
|
+
"dsh-ssh-workspace"
|
|
49
51
|
],
|
|
50
52
|
"repository": {
|
|
51
53
|
"type": "git",
|
|
52
|
-
"url": "git+https://github.com/sincerity711/dsh-
|
|
54
|
+
"url": "git+https://github.com/sincerity711/dsh-ssh-workspace.git",
|
|
53
55
|
"directory": "packages/companion"
|
|
54
56
|
},
|
|
55
57
|
"bugs": {
|
|
56
|
-
"url": "https://github.com/sincerity711/dsh-
|
|
58
|
+
"url": "https://github.com/sincerity711/dsh-ssh-workspace/issues"
|
|
57
59
|
},
|
|
58
|
-
"homepage": "https://github.com/sincerity711/dsh-
|
|
60
|
+
"homepage": "https://github.com/sincerity711/dsh-ssh-workspace#readme",
|
|
59
61
|
"publishConfig": {
|
|
60
62
|
"access": "public",
|
|
61
63
|
"registry": "https://registry.npmjs.org/"
|