dsh-my-config 0.0.0-stage → 1.7.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 +57 -2
- package/client.js +1318 -0
- package/cordis.patch.yml +5 -0
- package/icon.svg +7 -0
- package/index.js +1397 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +51 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 shangpan.sun01
|
|
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,58 @@
|
|
|
1
|
-
#
|
|
1
|
+
# My Config(我的配置)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
DeepSeek Harness 插件:在 Web 侧边栏提供「我的技能 / 我的连接器 / 我的智能体」三个独立入口,集中管理 Harness 的技能、MCP 连接器与智能体(专家)预设。
|
|
4
|
+
|
|
5
|
+
| 模块 | 能力 |
|
|
6
|
+
|---|---|
|
|
7
|
+
| 我的技能 | 创建 / 编辑 / 删除 / 导入技能;**ZIP 技能包导入**(多文件包);**外部技能市场**(内置精选市场 + 任意 `github://owner/repo` 仓库 + JSON 索引市场);分组管理 |
|
|
8
|
+
| 我的连接器 | 创建 / 编辑(配置)/ 启停 / 删除 MCP 连接器(streamable-http 与 stdio),通过 `ctx.loader` 动态下发 `@deepseek-ai/dsh-mcp-client` 条目;分组管理 |
|
|
9
|
+
| 我的智能体 | 创建 / 编辑 / 删除自定义 Agent 预设;**关联技能**(独立技能目录,精确限定该智能体可见的技能)与**关联连接器**(工具清单注入系统提示词);分组管理 |
|
|
10
|
+
|
|
11
|
+
三个页面统一布局:搜索框 + 分组筛选 + 刷新 + 新建。
|
|
12
|
+
|
|
13
|
+
## 安装
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
# 通过 Harness 插件管理(GUI:插件 → 安装 bundle),或:
|
|
17
|
+
dsh plugin add dsh-my-config # 具体命令以你的 Harness 版本为准
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
安装后重启 Harness,侧边栏出现「我的技能 / 我的连接器 / 我的智能体」入口。
|
|
21
|
+
|
|
22
|
+
## 技能市场
|
|
23
|
+
|
|
24
|
+
三种市场来源都支持:
|
|
25
|
+
|
|
26
|
+
1. **内置精选**:插件自带,离线可用(日报、代码评审、SQL 评审、会议纪要、邮件润色)。
|
|
27
|
+
2. **GitHub 仓库**:`github://owner/repo[@分支][/子目录]`,自动枚举仓库内全部 `SKILL.md`。
|
|
28
|
+
3. **JSON 索引**:http(s) URL 返回数组或 `{ "skills": [...] }`:
|
|
29
|
+
|
|
30
|
+
```json
|
|
31
|
+
{
|
|
32
|
+
"name": "my-skill",
|
|
33
|
+
"description": "…",
|
|
34
|
+
"whenToUse": "可选",
|
|
35
|
+
"content": "完整 SKILL.md 文本(与 url 二选一)",
|
|
36
|
+
"url": "SKILL.md 的地址(相对市场地址解析)",
|
|
37
|
+
"files": [{ "path": "references/x.md", "content": "…" }]
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## ZIP 技能包导入
|
|
42
|
+
|
|
43
|
+
技能导入支持多文件技能包(`.zip`):`SKILL.md` 位于压缩包根目录或单一顶层目录均可,整包解压并保留目录结构(`scripts/`、`references/` 等)。支持上传文件、本地路径、URL 三种方式;防路径穿越、解压炸弹与 BOM 兼容。
|
|
44
|
+
|
|
45
|
+
## 智能体关联
|
|
46
|
+
|
|
47
|
+
- **关联技能**:为智能体创建专属技能链接目录(`$DSH_HOME/manager-center/expert-skills/<id>/`),预设挂载隔离的 `skill-filesystem`(`includeDefaultRoots:false`),该智能体只能看到所选技能。留空则无技能,未设置则默认全部。
|
|
48
|
+
- **关联连接器**:MCP 连接器是 Host 级共享工具,无法按预设隔离;关联会把工具清单写入系统提示词,让模型明确可用工具。
|
|
49
|
+
|
|
50
|
+
## 数据与安全
|
|
51
|
+
|
|
52
|
+
- 连接器、专家、市场与分组数据持久化在 `$DSH_HOME/manager-center/data.json`。
|
|
53
|
+
- Web API(`POST /manager-center/api`)仅接受本机回环 / 同源请求(DNS-rebind 防护 + CORS 白名单)。
|
|
54
|
+
- ZIP 解析无第三方依赖(Node 内置 `zlib`)。
|
|
55
|
+
|
|
56
|
+
## License
|
|
57
|
+
|
|
58
|
+
MIT
|