@hyzyn/dsh-tty 0.1.1 → 0.1.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/LICENSE +21 -0
- package/README.md +10 -2
- package/client.js +22 -22
- package/package.json +18 -9
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 dsh-plugin-kit contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -5,6 +5,8 @@ xterm.js 全交互终端(node-pty 真实 PTY),支持**多标签页**,可
|
|
|
5
5
|
命令与 TUI 程序(vim / htop / dev server 等)。浏览器半体打包了 xterm
|
|
6
6
|
内核,宿主半体经 WebSocket 与 PTY 会话双向透传。
|
|
7
7
|
|
|
8
|
+

|
|
9
|
+
|
|
8
10
|
## 安装
|
|
9
11
|
|
|
10
12
|
```bash
|
|
@@ -23,11 +25,17 @@ dsh plugin --profile web add link:$(pwd)/packages/tty # 仓库开发调试
|
|
|
23
25
|
(宿主配置 `cwd` 作兜底);
|
|
24
26
|
- 支持 vim / htop / less 等 TUI(TERM 已注入为 `xterm-256color`);
|
|
25
27
|
- 面板大小变化自动 resize(xterm fit → PTY 原生 resize);
|
|
26
|
-
- **Ctrl+F 终端内搜索**(Enter 下一个 / Shift+Enter 上一个 / Esc
|
|
28
|
+
- **Ctrl+F 终端内搜索**(Enter 下一个 / Shift+Enter 上一个 / Esc 只关搜索框),
|
|
27
29
|
输出中的链接可点击,工具栏提供 清屏 / 复制选中 / 粘贴;
|
|
28
|
-
-
|
|
30
|
+
- **最小化(状态并入侧边栏入口)**:点弹窗外空白处、按 Esc 或标题栏「—」
|
|
31
|
+
把面板收起——PTY 会话与输出缓冲保持存活,侧边栏「终端」入口上显示
|
|
32
|
+
「运行中/总数」徽标与状态点(有输出时脉冲提示),点击入口即可恢复;
|
|
33
|
+
悬浮条 ✕ / 标题栏 ✕ 才真正关闭并结束全部会话;
|
|
34
|
+
- 标题栏 ✕ 关闭面板并结束全部会话(PTY 树级清理);会话退出后点终端区域可重开;
|
|
29
35
|
- 并发上限默认 4(配置 `maxSessions`,1~16)。
|
|
30
36
|
|
|
37
|
+

|
|
38
|
+
|
|
31
39
|
## agent 工具(P1)
|
|
32
40
|
|
|
33
41
|
插件向 agent 注入三个工具(与 bash 工具同权,操作实时显示在用户终端里):
|