@michengai/dsh-skills-manager 0.1.24 → 0.1.25
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/CHANGELOG.md +9 -6
- package/CHANGELOG.zh-CN.md +9 -6
- package/README.md +22 -21
- package/README.zh-CN.md +22 -21
- package/assets/screenshots/skills-manager-v2-preview.png +0 -0
- package/lib/client.js +173 -754
- package/lib/core.js +652 -24
- package/lib/index.js +143 -17
- package/package.json +10 -7
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
The five most recent published versions are listed below.
|
|
6
6
|
|
|
7
|
+
## 0.1.25 — 2026-08-27
|
|
8
|
+
|
|
9
|
+
- Added provider-backed loading for public Agents, Codex, Claude, Gemini, and OpenCode while keeping external source files read-only and persisting toggles in manager state.
|
|
10
|
+
- Added Markdown details, diagnostics, conversational creation, recoverable Trash, and second-stage permanent deletion.
|
|
11
|
+
- Replaced chained importing with one upload dialog for `.zip`, skill folders, and a single `SKILL.md`, with path, size, count, and archive safety limits.
|
|
12
|
+
- Fixed corrupted-state overwrite, trash rollback data loss, Windows `EPERM` publication failures, and the missing Repair-and-enable payload field.
|
|
13
|
+
|
|
14
|
+
Published package: [`@michengai/dsh-skills-manager@0.1.25`](https://www.npmjs.com/package/@michengai/dsh-skills-manager/v/0.1.25).
|
|
15
|
+
|
|
7
16
|
## 0.1.24 — 2026-08-23
|
|
8
17
|
|
|
9
18
|
- Added bilingual changelogs covering the five most recent releases.
|
|
@@ -29,9 +38,3 @@ Release tag: [`v0.1.22`](https://github.com/MichengAI/dsh-skills-manager/tree/v0
|
|
|
29
38
|
- Aligned dry-run cleanup, deletion handling, and HEAD behavior.
|
|
30
39
|
|
|
31
40
|
Release tag: [`v0.1.21`](https://github.com/MichengAI/dsh-skills-manager/tree/v0.1.21).
|
|
32
|
-
|
|
33
|
-
## 0.1.20 — 2026-08-17
|
|
34
|
-
|
|
35
|
-
- Avoided duplicate import errors while the upload dialog is open.
|
|
36
|
-
|
|
37
|
-
Release tag: [`v0.1.20`](https://github.com/MichengAI/dsh-skills-manager/tree/v0.1.20).
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -4,6 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
以下记录最近发布的五个版本。
|
|
6
6
|
|
|
7
|
+
## 0.1.25 — 2026-08-27
|
|
8
|
+
|
|
9
|
+
- 新增公共 Agent、Codex、Claude、Gemini 与 OpenCode 技能源加载;启停策略仅写入管理器状态,不修改外部源文件。
|
|
10
|
+
- 新增正文详情、格式诊断、对话创建、可恢复回收站及二次永久删除。
|
|
11
|
+
- 导入改为单弹窗流程,统一支持 `.zip`、技能文件夹和单个 `SKILL.md`,并补充路径、大小、数量与归档安全边界。
|
|
12
|
+
- 修复损坏状态文件覆盖、回收站回滚丢失、Windows `EPERM` 发布失败和「修复并启用」字段缺失等问题。
|
|
13
|
+
|
|
14
|
+
发布包:[`@michengai/dsh-skills-manager@0.1.25`](https://www.npmjs.com/package/@michengai/dsh-skills-manager/v/0.1.25)。
|
|
15
|
+
|
|
7
16
|
## 0.1.24 — 2026-08-23
|
|
8
17
|
|
|
9
18
|
- 新增中英文更新日志,展示最近五个发布版本。
|
|
@@ -29,9 +38,3 @@
|
|
|
29
38
|
- 统一 dry-run 清理、删除处理和 HEAD 请求行为。
|
|
30
39
|
|
|
31
40
|
发布标签:[`v0.1.21`](https://github.com/MichengAI/dsh-skills-manager/tree/v0.1.21)。
|
|
32
|
-
|
|
33
|
-
## 0.1.20 — 2026-08-17
|
|
34
|
-
|
|
35
|
-
- 上传弹窗打开时避免产生重复导入错误。
|
|
36
|
-
|
|
37
|
-
发布标签:[`v0.1.20`](https://github.com/MichengAI/dsh-skills-manager/tree/v0.1.20)。
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# DSH Skills Manager
|
|
8
8
|
|
|
9
|
-
**
|
|
9
|
+
**Load and safely manage skills from DSH and common local Agents**
|
|
10
10
|
|
|
11
11
|
[简体中文](README.zh-CN.md) · [Apache-2.0](LICENSE)
|
|
12
12
|
|
|
@@ -21,23 +21,24 @@
|
|
|
21
21
|
|
|
22
22
|
## Features
|
|
23
23
|
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
24
|
+
- Discover and load user-level skills from `.agents`, Codex, Claude, Gemini, and OpenCode into DSH.
|
|
25
|
+
- Persist external source and skill toggles under `$DSH_HOME/skills-manager/state.json` without rewriting shared source files.
|
|
26
|
+
- Inspect Markdown bodies, frontmatter, load state, duplicate shadowing, and format diagnostics in a source-first UI.
|
|
27
|
+
- Create a local DSH skill from Settings or conversation; conversational writes require user approval.
|
|
28
|
+
- Move DSH-local skills to recoverable Trash, then restore or permanently delete them.
|
|
29
|
+
- Import `.zip` archives, skill folders, or a single `SKILL.md` safely into `$DSH_HOME/skills`.
|
|
29
30
|
|
|
30
31
|
## Screenshots
|
|
31
32
|
|
|
32
|
-
|
|
33
|
+
Browse by source or search in **Settings → Skills**. External Agent sources are loaded through a manager-owned provider while their files stay read-only:
|
|
33
34
|
|
|
34
|
-

|
|
35
36
|
|
|
36
37
|
Shared Agent skills stay visible when the DSH-local group is empty:
|
|
37
38
|
|
|
38
39
|

|
|
39
40
|
|
|
40
|
-
The compact upload dialog accepts a
|
|
41
|
+
The compact upload dialog accepts `.zip`, a skill folder, a single `SKILL.md`, or drag-and-drop in one flow. It uses native browser pickers and never asks for an absolute path or opens a second chooser:
|
|
41
42
|
|
|
42
43
|

|
|
43
44
|
|
|
@@ -109,7 +110,7 @@ dsh plugin --profile web add @michengai/dsh-skills-manager@latest --registry=htt
|
|
|
109
110
|
dsh --profile web --dump-config
|
|
110
111
|
```
|
|
111
112
|
|
|
112
|
-
To pin a release, replace `@latest` with a version such as `@0.1.
|
|
113
|
+
To pin a release, replace `@latest` with a version such as `@0.1.25`.
|
|
113
114
|
|
|
114
115
|
The configuration output should contain `skills-manager`. Restart DSH Web and hard-refresh the browser. Do not copy client files manually: `dsh plugin add` also applies `cordis.patch.yml`.
|
|
115
116
|
|
|
@@ -137,26 +138,26 @@ Open **Settings → Skills**, then use the panel as follows:
|
|
|
137
138
|
|
|
138
139
|
| Goal | Action | Scope |
|
|
139
140
|
| --- | --- | --- |
|
|
140
|
-
| Search or filter |
|
|
141
|
-
| Inspect
|
|
142
|
-
| Enable or disable |
|
|
143
|
-
|
|
|
144
|
-
|
|
|
145
|
-
|
|
|
146
|
-
| Inspect shared skills | Review shared Agent skills without changing their metadata. | Read-only |
|
|
141
|
+
| Search or filter | Narrow by source, name, or description. | All sources |
|
|
142
|
+
| Inspect details | Review body, frontmatter, path, format diagnostics, and duplicate shadowing. | All sources |
|
|
143
|
+
| Enable or disable | DSH skills update their own invocation policy; external skills update manager-local state only. | All sources |
|
|
144
|
+
| Create or import | Create in Settings, or import `.zip`, a folder containing `SKILL.md`, or one `SKILL.md`. | `$DSH_HOME/skills` |
|
|
145
|
+
| Create from conversation | Let an Agent call `create_skill`; DSH asks for approval before writing. | `$DSH_HOME/skills` |
|
|
146
|
+
| Delete and recover | Move to Trash, restore, or permanently delete in a second step. | DSH-local skills |
|
|
147
147
|
|
|
148
148
|

|
|
149
149
|
|
|
150
|
-
>
|
|
150
|
+
> Toggling a shared source never changes its files; only DSH-local skills can move to Trash.
|
|
151
151
|
|
|
152
152
|
Escape closes only the frontmost upload or confirmation dialog and leaves Settings open.
|
|
153
153
|
|
|
154
154
|
## Permissions and safety limits
|
|
155
155
|
|
|
156
|
-
| Directory | View | Enable or disable |
|
|
156
|
+
| Directory | View/load | Enable or disable | Create/import | Delete |
|
|
157
157
|
| --- | --- | --- | --- | --- |
|
|
158
|
-
| `$DSH_HOME\skills` | Yes |
|
|
159
|
-
| `$DSH_AGENTS_HOME\skills` | Yes |
|
|
158
|
+
| `$DSH_HOME\skills` | Yes | Updates local invocation policy | Yes | Moves to Trash |
|
|
159
|
+
| `$DSH_AGENTS_HOME\skills` | Yes | Manager state only | No | No |
|
|
160
|
+
| `~/.codex/skills`, `~/.claude/skills`, `~/.gemini/skills`, `~/.config/opencode/skills` | Yes | Manager state only | No | No |
|
|
160
161
|
|
|
161
162
|
- Enable, disable, and delete accept only one ordinary skill-name path segment.
|
|
162
163
|
- Replacements copy to a temporary sibling path first and keep the original until that succeeds.
|
package/README.zh-CN.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# DSH Skills Manager
|
|
8
8
|
|
|
9
|
-
**在 DeepSeek Harness
|
|
9
|
+
**在 DeepSeek Harness 中统一加载并安全管理本机 Agent Skills**
|
|
10
10
|
|
|
11
11
|
[English](README.md) · [Apache-2.0](LICENSE)
|
|
12
12
|
|
|
@@ -21,23 +21,24 @@
|
|
|
21
21
|
|
|
22
22
|
## 功能概览
|
|
23
23
|
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
24
|
+
- 自动发现并把 `.agents`、Codex、Claude、Gemini 和 OpenCode 的用户级技能真正加载进 DSH。
|
|
25
|
+
- 外部来源启停只写入 `$DSH_HOME\skills-manager\state.json`,绝不改写共享源文件。
|
|
26
|
+
- 按来源折叠、搜索和筛选,并查看技能正文、frontmatter、加载状态、重名遮蔽与格式诊断。
|
|
27
|
+
- 在设置页或对话中创建 DSH 本地技能;对话工具在写入前请求用户确认。
|
|
28
|
+
- DSH 本地技能删除后先进入回收站,支持恢复和二次永久删除。
|
|
29
|
+
- 支持把 `.zip`、包含 `SKILL.md` 的技能文件夹或单个 `SKILL.md` 安全导入 `$DSH_HOME\skills`。
|
|
29
30
|
|
|
30
31
|
## 界面预览
|
|
31
32
|
|
|
32
|
-
在「设置 →
|
|
33
|
+
在「设置 → 技能」中按来源管理 DSH 与其他本机 Agent 的技能;外部技能通过 manager provider 加载,源文件保持只读:
|
|
33
34
|
|
|
34
|
-

|
|
35
36
|
|
|
36
37
|
本地 DSH 技能为空时,公共 Agent 技能仍然可见:
|
|
37
38
|
|
|
38
39
|

|
|
39
40
|
|
|
40
|
-
|
|
41
|
+
紧凑上传弹窗在同一个流程中支持 `.zip`、技能文件夹、单个 `SKILL.md` 与拖放。它只使用浏览器原生选择器,不要求绝对路径,也不会再打开第二个选择器:
|
|
41
42
|
|
|
42
43
|

|
|
43
44
|
|
|
@@ -109,7 +110,7 @@ dsh plugin --profile web add @michengai/dsh-skills-manager@latest --registry=htt
|
|
|
109
110
|
dsh --profile web --dump-config
|
|
110
111
|
```
|
|
111
112
|
|
|
112
|
-
需要钉死某一版时,把 `@latest` 换成具体版本,例如 `@0.1.
|
|
113
|
+
需要钉死某一版时,把 `@latest` 换成具体版本,例如 `@0.1.25`。
|
|
113
114
|
|
|
114
115
|
配置输出中应包含 `skills-manager`。安装后重启 DSH Web 并在浏览器硬刷新。不要手工复制客户端文件,`dsh plugin add` 会同时应用 `cordis.patch.yml`。
|
|
115
116
|
|
|
@@ -137,26 +138,26 @@ dsh --profile web --dump-config
|
|
|
137
138
|
|
|
138
139
|
| 目标 | 操作 | 范围 |
|
|
139
140
|
| --- | --- | --- |
|
|
140
|
-
| 搜索或筛选 |
|
|
141
|
-
|
|
|
142
|
-
| 启用或停用 |
|
|
143
|
-
|
|
|
144
|
-
|
|
|
145
|
-
|
|
|
146
|
-
| 查看公共技能 | 查看公共 Agent 技能,不修改其元数据。 | 只读 |
|
|
141
|
+
| 搜索或筛选 | 按来源、名称或简介收窄列表。 | 全部来源 |
|
|
142
|
+
| 查看详情与诊断 | 查看正文、frontmatter、源文件路径、格式问题和重名遮蔽。 | 全部来源 |
|
|
143
|
+
| 启用或停用 | DSH 技能更新自身调用策略;外部技能只更新 manager 本地状态。 | 全部来源 |
|
|
144
|
+
| 创建或导入 | 在设置页创建,或导入 `.zip`、包含 `SKILL.md` 的文件夹、单个 `SKILL.md`。 | `$DSH_HOME\skills` |
|
|
145
|
+
| 从对话创建 | 让 Agent 调用 `create_skill`;写入前由 DSH 审批界面确认。 | `$DSH_HOME\skills` |
|
|
146
|
+
| 删除与恢复 | 删除先进入回收站;可恢复或永久二次删除。 | DSH 本地技能 |
|
|
147
147
|
|
|
148
148
|

|
|
149
149
|
|
|
150
|
-
>
|
|
150
|
+
> 共享来源的启停不会修改源文件;只有 DSH 本地技能可以移入回收站。
|
|
151
151
|
|
|
152
152
|
按 ESC 只关闭最上层上传框或确认框,设置页会保持打开。
|
|
153
153
|
|
|
154
154
|
## 权限与安全边界
|
|
155
155
|
|
|
156
|
-
| 目录 |
|
|
156
|
+
| 目录 | 查看/加载 | 启用或停用 | 创建/导入 | 删除 |
|
|
157
157
|
| --- | --- | --- | --- | --- |
|
|
158
|
-
| `$DSH_HOME\skills` | 支持 |
|
|
159
|
-
| `$DSH_AGENTS_HOME\skills` | 支持 |
|
|
158
|
+
| `$DSH_HOME\skills` | 支持 | 改写本地调用策略 | 支持 | 进入回收站 |
|
|
159
|
+
| `$DSH_AGENTS_HOME\skills` | 支持 | 仅写 manager 状态 | 不支持 | 不支持 |
|
|
160
|
+
| `~/.codex/skills`、`~/.claude/skills`、`~/.gemini/skills`、`~/.config/opencode/skills` | 支持 | 仅写 manager 状态 | 不支持 | 不支持 |
|
|
160
161
|
|
|
161
162
|
- 启用、停用和删除只接受单个普通技能名称,目录穿越名称会被拒绝。
|
|
162
163
|
- 覆盖前先复制到同目录临时路径;复制成功前不会改动现有技能。
|
|
Binary file
|