@laivikto/dsh-ssh-servers 1.2.1 → 1.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.
Files changed (3) hide show
  1. package/README.md +19 -38
  2. package/README.zh.md +18 -36
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -18,55 +18,36 @@ English | [简体中文](./README.zh.md)
18
18
 
19
19
  ## Installation
20
20
 
21
- ### Option 1: npm (recommended)
21
+ Distributed via npm. Two ways to install — pick either one.
22
22
 
23
- The plugin is published on npm, so installing and updating needs no archive and no manual file copying.
23
+ ### Option 1: DSH Desktop (GUI)
24
24
 
25
- In DSH Desktop open **Settings → Plugins → Add plugin** and enter the package name:
25
+ 1. Open DSH Desktop
26
+ 2. Open **Settings → Plugins**
27
+ 3. Click **Add plugin**
28
+ 4. Enter the package name `@laivikto/dsh-ssh-servers`
29
+ 5. Confirm, then restart DSH
30
+ 6. An **SSH Cloud Servers** tab appears in the right sidebar
26
31
 
27
- ```
28
- @laivikto/dsh-ssh-servers
29
- ```
30
-
31
- The plugin manager installs it into your profile and registers its bundle. Restart DSH and an **SSH Cloud Servers** tab appears in the right sidebar. To update later, use the same add/update action in the plugin manager.
32
+ ### Option 2: Command line (copy & paste)
32
33
 
33
- Or wire it into the profile by hand:
34
-
35
- ```json
36
- {
37
- "dependencies": {
38
- "@laivikto/dsh-ssh-servers": "^1.2.0"
39
- }
40
- }
34
+ ```bash
35
+ dsh plugin add @laivikto/dsh-ssh-servers
41
36
  ```
42
37
 
43
- Also add `"@laivikto/dsh-ssh-servers"` to `dsh.profile.bundles`, then restart DSH.
44
-
45
- > Do not run `pnpm` manually or edit `cordis.patch.yml` — DSH's plugin manager handles those steps.
38
+ With a specific profile:
46
39
 
47
- ### Option 2: Download from GitHub
48
-
49
- 1. Download the archive:
50
- <https://github.com/Laivikto/dsh-ssh-servers/archive/refs/heads/main.zip>
51
- (or `git clone` it)
52
- 2. Extract anywhere, e.g. `D:\plugins\dsh-ssh-servers`
53
- 3. In DSH Desktop open **Settings → Plugins** and click **Add plugin**
54
- 4. Select the extracted directory
55
- 5. Restart DSH; an **SSH Cloud Servers** tab appears in the right sidebar
56
-
57
- ### Option 3: Local development link
40
+ ```bash
41
+ dsh --profile desktop plugin add @laivikto/dsh-ssh-servers
42
+ ```
58
43
 
59
- Point the profile at the repository:
44
+ Restart DSH after it finishes. Upgrade later with:
60
45
 
61
- ```json
62
- {
63
- "dependencies": {
64
- "@laivikto/dsh-ssh-servers": "link:E:/path/to/dsh-ssh-servers"
65
- }
66
- }
46
+ ```bash
47
+ dsh plugin update
67
48
  ```
68
49
 
69
- Also add `"@laivikto/dsh-ssh-servers"` to `dsh.profile.bundles`, then restart DSH.
50
+ > The plugin manager writes the profile dependency and the `dsh.profile.bundles` entry for you — do not run `pnpm` or edit `cordis.patch.yml` by hand.
70
51
 
71
52
  ### Uninstall
72
53
 
package/README.zh.md CHANGED
@@ -18,54 +18,36 @@
18
18
 
19
19
  ## 安装
20
20
 
21
- ### 方式一:npm(推荐)
21
+ 插件通过 npm 分发,两种装法任选其一。
22
22
 
23
- 插件已发布到 npm,安装和更新都不需要下载压缩包,也不用手动拷贝文件。
23
+ ### 方式一:DSH Desktop 图形界面
24
24
 
25
- 打开 DSH Desktop,进入 **设置 → 插件 → 添加插件**,输入包名:
25
+ 1. 打开 DSH Desktop
26
+ 2. 进入 **设置 → 插件**(Plugins)
27
+ 3. 点 **添加插件 / Add plugin**
28
+ 4. 输入包名 `@laivikto/dsh-ssh-servers`
29
+ 5. 确认安装,重启 DSH
30
+ 6. 右侧栏出现「SSH 云服务器」标签
26
31
 
27
- ```
28
- @laivikto/dsh-ssh-servers
29
- ```
30
-
31
- 插件管理器会把它装进 profile 并注册好 bundle。重启 DSH,右侧栏就会出现「SSH 云服务器」标签。以后升级也走同一个添加 / 更新入口,不用再碰文件。
32
+ ### 方式二:命令行(复制即用)
32
33
 
33
- 也可以在 profile 里手动声明:
34
-
35
- ```json
36
- {
37
- "dependencies": {
38
- "@laivikto/dsh-ssh-servers": "^1.2.0"
39
- }
40
- }
34
+ ```bash
35
+ dsh plugin add @laivikto/dsh-ssh-servers
41
36
  ```
42
37
 
43
- 并在 `dsh.profile.bundles` 列表中加入 `"@laivikto/dsh-ssh-servers"`,然后重启 DSH。
38
+ 如果有多套 profile,指定其中一个:
44
39
 
45
- > 不要手动跑 `pnpm` 或直接改 `cordis.patch.yml`;DSH 的插件管理器会负责这些步骤。
46
-
47
- ### 方式二:从 GitHub 下载
48
-
49
- 1. 下载仓库压缩包:
50
- <https://github.com/Laivikto/dsh-ssh-servers/archive/refs/heads/main.zip>
51
- (也可以直接 `git clone`)
52
- 2. 解压到任意目录,例如 `D:\plugins\dsh-ssh-servers`
53
- 3. 打开 DSH Desktop,进入 **设置 → 插件**(Plugins),点击 **添加插件 / Add plugin**
54
- 4. 选择上一步解压出来的目录
55
- 5. 重启 DSH,右侧栏会出现「SSH 云服务器」标签
56
-
57
- ### 方式三:开发者本地联调
40
+ ```bash
41
+ dsh --profile desktop plugin add @laivikto/dsh-ssh-servers
42
+ ```
58
43
 
59
- 把仓库目录直接链接进 profile:
44
+ 装完重启 DSH。以后升级用:
60
45
 
61
46
  ```bash
62
- # profile 的 package.json 里声明
63
- "dependencies": {
64
- "@laivikto/dsh-ssh-servers": "link:E:/path/to/dsh-ssh-servers"
65
- }
47
+ dsh plugin update
66
48
  ```
67
49
 
68
- 并在 `dsh.profile.bundles` 列表中加入 `"@laivikto/dsh-ssh-servers"`,然后重启 DSH。
50
+ > profile 依赖和 `dsh.profile.bundles` 的注册由插件管理器自动写入,不要手动跑 `pnpm` 或改 `cordis.patch.yml`。
69
51
 
70
52
  ### 卸载
71
53
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laivikto/dsh-ssh-servers",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "SSH server manager for DeepSeek Harness: saved key/password connections, native key-file picker, live connection health, IPv4/IPv6 display, a task prompt copied to the clipboard, and remote file browsing.",
5
5
  "type": "module",
6
6
  "main": "index.js",