@yangyangyuyu/dsh-inventory-panel 0.0.0-stage → 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.
- package/LICENSE +21 -0
- package/README.md +78 -2
- package/client.js +894 -0
- package/cordis.patch.yml +3 -0
- package/docs/DETAIL.md +52 -0
- package/icon.svg +6 -0
- package/index.js +640 -0
- package/locale/en.json +7 -0
- package/locale/zh.json +7 -0
- package/package.json +48 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 dsh-inventory-panel 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
|
@@ -1,3 +1,79 @@
|
|
|
1
|
-
#
|
|
1
|
+
# dsh-inventory-panel
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**看明白你装了些什么。** 一个 DSH 侧边栏面板:把本机装了哪些插件、能用哪些技能,用大白话讲清楚——它是干嘛的、什么时候用、怎么用;技能还能直接在这里启停、编辑、新建、删除和导入。
|
|
4
|
+
|
|
5
|
+
A sidebar panel for DeepSeek Harness (DSH). It lists every installed plugin and skill in plain language — what it does, when to reach for it, how to use it — and manages local skills in place.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 它解决什么问题
|
|
10
|
+
|
|
11
|
+
装了十几个插件之后,很少有人记得每个是干嘛的。DSH 自带的插件页只有名字和版本,技能又散落在不同目录里。
|
|
12
|
+
|
|
13
|
+
这个面板回答四个问题:
|
|
14
|
+
|
|
15
|
+
1. **我装了什么**——插件、技能、内置 bundle 分三段实时列出。
|
|
16
|
+
2. **它是干嘛的**——每个条目一句话说明,脚本里没有文案的插件会自动取它 README 的首段。
|
|
17
|
+
3. **什么时候用**——一句场景描述,帮你判断"这个要不要用"。
|
|
18
|
+
4. **怎么用**——可展开的步骤,照着说一句话就能触发。
|
|
19
|
+
|
|
20
|
+
## 功能
|
|
21
|
+
|
|
22
|
+
### 清单
|
|
23
|
+
- 实时扫描:打开面板、窗口重新获得焦点、每 30 秒自动刷新;右上角「刷新」立即重扫。
|
|
24
|
+
- 分段:插件 / SKILL / 内置 bundle,各自显示数量与一句说明。
|
|
25
|
+
- 卡片:名称、版本、启用状态、来源、路径;首条为整行「领读卡」,标题更大。
|
|
26
|
+
- 搜索:按名称、作用、什么时候用、用法、路径过滤,Esc 清空。
|
|
27
|
+
- 筛选:全部 / 插件 / 技能 / 内置,单选。
|
|
28
|
+
|
|
29
|
+
### 技能管理(本机文件)
|
|
30
|
+
- **启停**:开关改写 `SKILL.md` 的 `disable-model-invocation`,其余 frontmatter 原样保留。
|
|
31
|
+
- **编辑**:修改「一句话说明」「什么时候用」与 Markdown 正文。
|
|
32
|
+
- **新建**:填写名称、说明、正文,选择保存到项目或用户技能目录。
|
|
33
|
+
- **删除**:整目录移入同根 `.trash/<name>-<时间戳>`,可手动还原。
|
|
34
|
+
- **导入**:从本机目录(递归找含 `SKILL.md` 的文件夹)或 zip 压缩包批量导入;只新建,同名跳过。
|
|
35
|
+
|
|
36
|
+
### 给新手的引导
|
|
37
|
+
- 面板顶部有可折叠的「新手看这里」四步说明。
|
|
38
|
+
- 插件提供的技能标记为「插件提供 · 只读」,不会被误改。
|
|
39
|
+
|
|
40
|
+
## 安装
|
|
41
|
+
|
|
42
|
+
```sh
|
|
43
|
+
dsh plugin add @yangyangyuyu/dsh-inventory-panel
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
也可以在 DSH 的 **Plugins** 页用 **Add plugin** 搜索 `@yangyangyuyu/dsh-inventory-panel` 安装;桌面版还可以在插件市场里找到它。
|
|
47
|
+
|
|
48
|
+
安装后刷新页面,左侧边栏会出现「插件与技能」图标(三行卡片),点开即用。
|
|
49
|
+
|
|
50
|
+
## 使用
|
|
51
|
+
|
|
52
|
+
1. 点侧边栏「插件与技能」。
|
|
53
|
+
2. 用搜索框找条目,或用「插件 / 技能 / 内置」筛选。
|
|
54
|
+
3. 先读「它是干嘛的」,再看「什么时候用」,需要操作时展开「怎么用」。
|
|
55
|
+
4. 技能卡底部:开关控制是否允许模型自动调用;「编辑」改说明与正文;「删除」移入回收站。
|
|
56
|
+
5. SKILL 分区标题旁:「新建技能」「导入技能」。
|
|
57
|
+
|
|
58
|
+
## 数据从哪里来
|
|
59
|
+
|
|
60
|
+
- 插件清单:Profile 的 `package.json`(`dependencies`)与每个包的 `package.json`(版本、描述、README 首段、路径)。
|
|
61
|
+
- 启用状态:Profile 的 `dsh.profile.bundles`。
|
|
62
|
+
- 技能:DSH 技能注册表快照,加上对项目/用户技能目录的扫描(用于定位可编辑文件)。
|
|
63
|
+
- 全部由 Host 路由 `GET /api/dsh-inventory/list` 当场计算,不缓存。
|
|
64
|
+
|
|
65
|
+
## 安全
|
|
66
|
+
|
|
67
|
+
- 写操作只作用于扫描命中的技能文件,路径必须落在已知技能根内。
|
|
68
|
+
- 写入为原子写(临时文件 + rename)。
|
|
69
|
+
- 正文上限 200 KB;导入压缩包上限 20 MB、条目上限 500。
|
|
70
|
+
- 删除是移动而非硬删除。
|
|
71
|
+
|
|
72
|
+
## 兼容
|
|
73
|
+
|
|
74
|
+
- DSH `0.2.2-rc.5` 及以上(桌面版与 Web 版均可)。
|
|
75
|
+
- 使用宿主主题变量,浅色/深色主题自动适配。
|
|
76
|
+
|
|
77
|
+
## 许可
|
|
78
|
+
|
|
79
|
+
MIT
|