dsh-terminal-panel 1.0.0 → 1.0.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.
Files changed (3) hide show
  1. package/README.md +5 -21
  2. package/README_EN.md +5 -21
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -32,6 +32,8 @@
32
32
 
33
33
  ## 📦 安装
34
34
 
35
+ 从 npm 安装(包名 [`dsh-terminal-panel`](https://www.npmjs.com/package/dsh-terminal-panel)):
36
+
35
37
  ```sh
36
38
  dsh plugin --profile web add dsh-terminal-panel
37
39
  dsh --profile web
@@ -39,27 +41,9 @@ dsh --profile web
39
41
 
40
42
  装好后刷新一次页面(或直接看侧栏),左栏面板图标区就会出现终端图标。
41
43
 
42
- > `dsh plugin add` 拉不到包(刚发布、或公司/国内镜像尚未同步),用下面的源码方式安装。
43
-
44
- 从源码安装(本地开发、二次修改):
45
-
46
- ```sh
47
- git clone https://github.com/BaiZhi967/dsh-plugin-terminal-panel.git
48
- cd dsh-plugin-terminal-panel
49
-
50
- # 在插件目录的「父目录」执行,dsh 会把相对路径锚定到调用目录
51
- dsh plugin --profile web add ../dsh-plugin-terminal-panel
52
- dsh --profile web
53
- ```
54
-
55
- 也可以直接写进 profile 的 `cordis.patch.yml`:
56
-
57
- ```yaml
58
- - insert:
59
- - id: terminal-panel
60
- name: dsh-terminal-panel
61
- ```
62
-
44
+ > JS 实现:无构建步骤、无运行时依赖。
45
+ > 若提示找不到包,通常是镜像尚未同步新版本 —— 可指定官方源再装一次,或稍后重试:
46
+ > `dsh plugin --profile web add dsh-terminal-panel --registry=https://registry.npmjs.org/`
63
47
  > 环境要求:DSH `>= 0.1.6-alpha.2`、Node `^22.19.0 || >=24.0.0`;宿主进程需要有可用 PTY(本插件用 `subprocess.spawnTerminal`,即宿主自带的 node-pty)。
64
48
 
65
49
  ## 🚀 用法
package/README_EN.md CHANGED
@@ -32,6 +32,8 @@ English | [中文](README.md)
32
32
 
33
33
  ## 📦 Install
34
34
 
35
+ Install from npm (package [`dsh-terminal-panel`](https://www.npmjs.com/package/dsh-terminal-panel)):
36
+
35
37
  ```sh
36
38
  dsh plugin --profile web add dsh-terminal-panel
37
39
  dsh --profile web
@@ -39,27 +41,9 @@ dsh --profile web
39
41
 
40
42
  Reload the page once and the terminal icon appears in the sidebar.
41
43
 
42
- > If `dsh plugin add` cannot resolve the package yet (a fresh publish, or a mirror that has not synced), install it from source instead.
43
-
44
- From source (local development, or your own fork):
45
-
46
- ```sh
47
- git clone https://github.com/BaiZhi967/dsh-plugin-terminal-panel.git
48
- cd dsh-plugin-terminal-panel
49
-
50
- # run from the plugin's PARENT directory: a relative path is anchored there
51
- dsh plugin --profile web add ../dsh-plugin-terminal-panel
52
- dsh --profile web
53
- ```
54
-
55
- Or mount it by hand in the profile's `cordis.patch.yml`:
56
-
57
- ```yaml
58
- - insert:
59
- - id: terminal-panel
60
- name: dsh-terminal-panel
61
- ```
62
-
44
+ > Plain JavaScript: no build step, no runtime dependencies.
45
+ > If the package cannot be resolved, the mirror usually has not synced the latest version yet — install once against the official registry, or retry later:
46
+ > `dsh plugin --profile web add dsh-terminal-panel --registry=https://registry.npmjs.org/`
63
47
  > Requirements: DSH `>= 0.1.6-alpha.2`, Node `^22.19.0 || >=24.0.0`, and a host with a working PTY (this plugin uses `subprocess.spawnTerminal`, i.e. the bundled node-pty).
64
48
 
65
49
  ## 🚀 Usage
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-terminal-panel",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "In-page terminal panel for DeepSeek Harness: real PTY terminals opened from the sidebar, with tabs, rename and live replay. DSH 网页内的终端面板插件。",
5
5
  "license": "MIT",
6
6
  "type": "module",