dsh-ssh-workspace-companion 0.2.2 → 0.2.3
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 +51 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,56 @@
|
|
|
1
1
|
# dsh-ssh-workspace-companion
|
|
2
2
|
|
|
3
|
+
[English](#english) · [简体中文](#简体中文)
|
|
4
|
+
|
|
5
|
+
## English
|
|
6
|
+
|
|
7
|
+
The remote companion for [dsh-ssh-workspace](https://www.npmjs.com/package/dsh-ssh-workspace). Install it in each remote DeepSeek Harness (DSH) Web profile so the local plugin can open and operate that machine's workspaces and sessions.
|
|
8
|
+
|
|
9
|
+
### Where to install
|
|
10
|
+
|
|
11
|
+
- Install `dsh-ssh-workspace` on the local machine.
|
|
12
|
+
- Install this package, `dsh-ssh-workspace-companion`, on every remote machine.
|
|
13
|
+
|
|
14
|
+
Use this package together with the local plugin.
|
|
15
|
+
|
|
16
|
+
### Compatibility
|
|
17
|
+
|
|
18
|
+
Plugin 0.2.x targets **DSH 0.2.0-rc.2** and does not support DSH 0.1.x. Keep the local plugin and all remote companions on the same version and restart DSH after updating.
|
|
19
|
+
|
|
20
|
+
### Remote installation
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
dsh plugin --profile web add dsh-ssh-workspace-companion
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Bind the remote Web service to loopback:
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
dsh --profile web --host 127.0.0.1 --port 30800 --trusted-host 127.0.0.1:30800
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
The local plugin connects through an SSH tunnel. If you use a custom `DSH_HOME`, installation, startup and the remote profile path in local Remote Desktop settings must refer to the same directory.
|
|
33
|
+
|
|
34
|
+
Install the main plugin on the local machine, then connect the SSH host in **Settings → Remote Desktop**:
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
dsh plugin --profile web add dsh-ssh-workspace
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### How it works
|
|
41
|
+
|
|
42
|
+
The companion validates the parent origin and connection token inside the remote iframe opened by the local plugin. It forwards official DSH Controller state and actions through a dedicated MessageChannel and hides the embedded remote sidebar. Remote business data continues to use the remote DSH authenticated services.
|
|
43
|
+
|
|
44
|
+
### Documentation and development
|
|
45
|
+
|
|
46
|
+
- [Project and full instructions](https://github.com/sincerity711/dsh-ssh-workspace)
|
|
47
|
+
- [Remote server setup](https://github.com/sincerity711/dsh-ssh-workspace/blob/main/docs/remote-server-setup.md)
|
|
48
|
+
- [Report an issue](https://github.com/sincerity711/dsh-ssh-workspace/issues)
|
|
49
|
+
|
|
50
|
+
Edit `packages/companion/src/client.js`, then run `npm run build` and `npm run check` from the repository root.
|
|
51
|
+
|
|
52
|
+
## 简体中文
|
|
53
|
+
|
|
3
54
|
[dsh-ssh-workspace](https://www.npmjs.com/package/dsh-ssh-workspace) 的远程配套插件。安装在每台远程机器的 DeepSeek Harness(DSH)Web profile 中,让本地插件可以打开和操作该机器的工作区与会话。
|
|
4
55
|
|
|
5
56
|
## 安装位置
|