@cveo/dsh-containers 0.0.0-stage → 0.1.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 +36 -2
- package/cordis.patch.yml +19 -0
- package/dist/client.js +5397 -0
- package/dist/host/core.js +1080 -0
- package/dist/host/extras-tools.js +63 -0
- package/dist/host/extras.js +410 -0
- package/dist/host/index.js +225 -0
- package/dist/host/tools.js +283 -0
- package/icon.svg +5 -0
- package/locale/core/en.json +6 -0
- package/locale/core/zh.json +6 -0
- package/locale/en.json +241 -0
- package/locale/extras/en.json +6 -0
- package/locale/extras/zh.json +6 -0
- package/locale/extras-tools/en.json +6 -0
- package/locale/extras-tools/zh.json +6 -0
- package/locale/tools/en.json +6 -0
- package/locale/tools/zh.json +6 -0
- package/locale/zh.json +241 -0
- package/package.json +73 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 CVEO Research Group, Wuhan University
|
|
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
|
@@ -1,3 +1,37 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @cveo/dsh-containers · 容器管理
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
在 DeepSeek Harness(DSH)内管理本机容器引擎(kiri / Docker Desktop)的插件,功能对齐 Docker Desktop 仪表盘。
|
|
4
|
+
由武汉大学 CVEO 研究组维护。
|
|
5
|
+
|
|
6
|
+
## 安装
|
|
7
|
+
|
|
8
|
+
```sh
|
|
9
|
+
dsh plugin --profile <profile> add @cveo/dsh-containers
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
也可在 dsh 插件管理器的安装对话框中搜索 `@cveo/dsh-containers`。安装后需完全重启 DSH。
|
|
13
|
+
|
|
14
|
+
## 一个插件五个组件
|
|
15
|
+
|
|
16
|
+
安装后插件页显示五个组件行,逐行可禁用:
|
|
17
|
+
|
|
18
|
+
| 组件行 id | 模块 | 内容 |
|
|
19
|
+
| --- | --- | --- |
|
|
20
|
+
| `dsh-containers-core` | `@cveo/dsh-containers/core` | 引擎原语服务 `ctx.containers`(无 UI);其他插件 `inject: ['containers']` 即可调用 |
|
|
21
|
+
| `dsh-containers-ui` | `@cveo/dsh-containers` | 管理面板:容器 / 镜像 / 卷 / 网络(compose 分组、CPU/内存实时资源列、Docker Hub 在线搜索、悬空镜像与未使用卷清理) |
|
|
22
|
+
| `dsh-containers-tools` | `@cveo/dsh-containers/tools` | 11 个引擎原语模型工具 `containers_*`,agent 在会话中直接读取与操作 |
|
|
23
|
+
| `dsh-containers-extras` | `@cveo/dsh-containers/extras` | CLI 扩展服务(compose/k8s/machine)+ kiri 一键安装器 |
|
|
24
|
+
| `dsh-containers-extras-tools` | `@cveo/dsh-containers/extras-tools` | 3 个 CLI 模型工具(需本机安装 kiri CLI) |
|
|
25
|
+
|
|
26
|
+
引擎特性:kiri 管道优先、Docker Desktop 兜底,运行时切换;引擎不可达时自动拉起后台进程并轮询就绪;
|
|
27
|
+
kiri 专属能力(`dev.kiri.domain` 域名链接、一键 Kubernetes(k3s)、Linux 虚拟机)。
|
|
28
|
+
完整功能与配置项见项目仓库 README。
|
|
29
|
+
|
|
30
|
+
## 版本兼容
|
|
31
|
+
|
|
32
|
+
- DSH:`>=0.2.1-rc.1 <0.3.0-0`(`engines.dsh`)
|
|
33
|
+
- Node.js:`>=20`
|
|
34
|
+
|
|
35
|
+
## 许可证
|
|
36
|
+
|
|
37
|
+
MIT — 详见 [LICENSE](./LICENSE)。
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
- insert:
|
|
2
|
+
# 发布态 patch(npm 安装 @cveo/dsh-containers 时使用)。
|
|
3
|
+
# 一个插件一个组件:组件行全部走发布包 @cveo/dsh-containers 的子路径导出
|
|
4
|
+
# (publishConfig 替换后的 exports:宿主模块为 dist/host/*.js 构建产物,locale/icon 为归档副本)。
|
|
5
|
+
# ui 行用裸包名 @cveo/dsh-containers —— 只有裸包名行才能承载浏览器半边(dsh.client → ./client)。
|
|
6
|
+
# 开发态(profile link: 本仓库根目录)用的是仓库根的 cordis.patch.yml,组件名走根包子路径。
|
|
7
|
+
- id: dsh-containers-core
|
|
8
|
+
name: '@cveo/dsh-containers/core'
|
|
9
|
+
# 扩展行:CLI 扩展服务(compose/k8s/machine)+ 面板路由 + 一键安装器
|
|
10
|
+
# (不需要这些能力可禁用本行,核心引擎接入不受影响)
|
|
11
|
+
- id: dsh-containers-extras
|
|
12
|
+
name: '@cveo/dsh-containers/extras'
|
|
13
|
+
# CLI 扩展的模型工具行(需要本机安装 kiri CLI 才有实际作用)
|
|
14
|
+
- id: dsh-containers-extras-tools
|
|
15
|
+
name: '@cveo/dsh-containers/extras-tools'
|
|
16
|
+
- id: dsh-containers-tools
|
|
17
|
+
name: '@cveo/dsh-containers/tools'
|
|
18
|
+
- id: dsh-containers-ui
|
|
19
|
+
name: '@cveo/dsh-containers'
|