@laivikto/dsh-ssh-servers 1.2.0 → 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 -22
  2. package/README.zh.md +18 -21
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -18,40 +18,37 @@ English | [简体中文](./README.zh.md)
18
18
 
19
19
  ## Installation
20
20
 
21
- This is a local DSH bundle. Install it as follows.
21
+ Distributed via npm. Two ways to install — pick either one.
22
22
 
23
- ### Option 1: Download from GitHub (recommended)
23
+ ### Option 1: DSH Desktop (GUI)
24
24
 
25
- 1. Download the archive:
26
- <https://github.com/Laivikto/dsh-ssh-servers/archive/refs/heads/main.zip>
27
- (or `git clone` it)
28
- 2. Extract anywhere, e.g. `D:\plugins\dsh-ssh-servers`
29
- 3. In DSH Desktop open **Settings → Plugins** and click **Add plugin**
30
- 4. Select the extracted directory
31
- 5. Restart DSH; an **SSH Cloud Servers** tab appears in the right sidebar
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
32
31
 
33
- ### Option 2: Local development link
32
+ ### Option 2: Command line (copy & paste)
34
33
 
35
- Point the profile at the repository:
36
-
37
- ```json
38
- {
39
- "dependencies": {
40
- "@laivikto/dsh-ssh-servers": "link:E:/path/to/dsh-ssh-servers"
41
- }
42
- }
34
+ ```bash
35
+ dsh plugin add @laivikto/dsh-ssh-servers
43
36
  ```
44
37
 
45
- Also add `"@laivikto/dsh-ssh-servers"` to `dsh.profile.bundles`, then restart DSH.
38
+ With a specific profile:
46
39
 
47
- > Do not run `pnpm` manually or edit `cordis.patch.yml` — DSH's plugin manager handles those steps.
40
+ ```bash
41
+ dsh --profile desktop plugin add @laivikto/dsh-ssh-servers
42
+ ```
48
43
 
49
- ### Option 3: npm (future)
44
+ Restart DSH after it finishes. Upgrade later with:
50
45
 
51
46
  ```bash
52
- npm install @laivikto/dsh-ssh-servers
47
+ dsh plugin update
53
48
  ```
54
49
 
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.
51
+
55
52
  ### Uninstall
56
53
 
57
54
  Disable or remove the plugin under **Settings → Plugins**.
package/README.zh.md CHANGED
@@ -18,40 +18,37 @@
18
18
 
19
19
  ## 安装
20
20
 
21
- 本插件是 DSH 的本地 bundle,安装方式如下。
21
+ 插件通过 npm 分发,两种装法任选其一。
22
22
 
23
- ### 方式一:从 GitHub 下载(推荐)
23
+ ### 方式一:DSH Desktop 图形界面
24
24
 
25
- 1. 下载仓库压缩包:
26
- <https://github.com/Laivikto/dsh-ssh-servers/archive/refs/heads/main.zip>
27
- (也可以直接 `git clone`)
28
- 2. 解压到任意目录,例如 `D:\plugins\dsh-ssh-servers`
29
- 3. 打开 DSH Desktop,进入 **设置 → 插件**(Plugins),点击 **添加插件 / Add plugin**
30
- 4. 选择上一步解压出来的目录
31
- 5. 重启 DSH,右侧栏会出现「SSH 云服务器」标签
25
+ 1. 打开 DSH Desktop
26
+ 2. 进入 **设置 → 插件**(Plugins)
27
+ 3. 点 **添加插件 / Add plugin**
28
+ 4. 输入包名 `@laivikto/dsh-ssh-servers`
29
+ 5. 确认安装,重启 DSH
30
+ 6. 右侧栏出现「SSH 云服务器」标签
32
31
 
33
- ### 方式二:开发者本地联调
34
-
35
- 把仓库目录直接链接进 profile:
32
+ ### 方式二:命令行(复制即用)
36
33
 
37
34
  ```bash
38
- # profile 的 package.json 里声明
39
- "dependencies": {
40
- "@laivikto/dsh-ssh-servers": "link:E:/path/to/dsh-ssh-servers"
41
- }
35
+ dsh plugin add @laivikto/dsh-ssh-servers
42
36
  ```
43
37
 
44
- 并在 `dsh.profile.bundles` 列表中加入 `"@laivikto/dsh-ssh-servers"`,然后重启 DSH。
38
+ 如果有多套 profile,指定其中一个:
45
39
 
46
- > 不要手动跑 `pnpm` 或直接改 `cordis.patch.yml`;DSH 的插件管理器会负责这些步骤。
40
+ ```bash
41
+ dsh --profile desktop plugin add @laivikto/dsh-ssh-servers
42
+ ```
47
43
 
48
- ### 方式三:npm(未来)
44
+ 装完重启 DSH。以后升级用:
49
45
 
50
46
  ```bash
51
- # 发布后可用
52
- npm install @laivikto/dsh-ssh-servers
47
+ dsh plugin update
53
48
  ```
54
49
 
50
+ > profile 依赖和 `dsh.profile.bundles` 的注册由插件管理器自动写入,不要手动跑 `pnpm` 或改 `cordis.patch.yml`。
51
+
55
52
  ### 卸载
56
53
 
57
54
  在 **设置 → 插件** 中禁用或移除该插件即可。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laivikto/dsh-ssh-servers",
3
- "version": "1.2.0",
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",