@kkutysllb/dsh-terminal 1.0.0
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 +25 -0
- package/client.js +778 -0
- package/cordis.patch.yml +14 -0
- package/entry.js +418 -0
- package/package.json +46 -0
- package/vendor/addon-fit.js +2 -0
- package/vendor/xterm.css +218 -0
- package/vendor/xterm.js +2 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 dsh-external
|
|
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
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# @kkutysllb/dsh-terminal
|
|
2
|
+
|
|
3
|
+
> **侧边栏嵌入式终端**——主界面底部的真实终端(xterm.js + node-pty,VS Code 同款体验):per-workspace 面板桶、RPC(`/dsh-terminal/api/rpc` + SSE 输出流)、工作区探针与乱序防御、布局让位协议。
|
|
4
|
+
|
|
5
|
+
自 KCoder 内置包独立发布的 dsh 插件(v1.0.0 起独立版本线)。
|
|
6
|
+
|
|
7
|
+
## 安装
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
dsh plugin install @kkutysllb/dsh-terminal
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## 形态
|
|
14
|
+
|
|
15
|
+
- 纯产物直提包:`entry.js`(cordis 层挂载)+ `client.js`(`window.__ModuleLoader__.load({id})` 注册,经 `/plugins` combo 路由拼接执行) + `cordis.patch.yml`(bundle 层声明)。
|
|
16
|
+
- client 面:是;无原生构建、无 server 依赖安装(如含 server 半则在 entry.js 内实现)。
|
|
17
|
+
|
|
18
|
+
## 开发
|
|
19
|
+
|
|
20
|
+
- 本仓为开发真源;改动后跑 `node scripts/sync-to-dsh-plugins.mjs` 同步 dsh-plugins 镜像并提交推送。
|
|
21
|
+
- `pnpm smoke`(prepack 自动)做契约形态校验;`node scripts/create-github-releases.mjs` 同步 release/ 到 GitHub Releases。
|
|
22
|
+
|
|
23
|
+
## 许可
|
|
24
|
+
|
|
25
|
+
MIT © dsh-external
|