dsh-workspace-atlas 0.2.1 → 0.3.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/CHANGELOG.md +8 -0
- package/README.md +32 -0
- package/client.js +767 -64
- package/index.js +40 -1
- package/lib/skill.js +262 -0
- package/lib/store.js +282 -6
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
- Add a structured Agent Skills create form with `name`, `description`, `license`, `compatibility`, `metadata`, `allowed-tools`, and Markdown body.
|
|
6
|
+
- Generate spec-compliant YAML frontmatter automatically; `name` and `description` are required.
|
|
7
|
+
- Add structured editing for existing native skills while preserving the Markdown body and unknown frontmatter fields.
|
|
8
|
+
- Add a skill file manager for nested files and folders, including create, edit, and delete.
|
|
9
|
+
- Validate skill-relative paths and reject symbolic-link traversal.
|
|
10
|
+
|
|
3
11
|
## 0.2.1
|
|
4
12
|
|
|
5
13
|
- Rename the display name to AGENTS & Skills Studio / AGENTS & Skills 工作台.
|
package/README.md
CHANGED
|
@@ -85,6 +85,30 @@ Sources:
|
|
|
85
85
|
|
|
86
86
|
Catalog installation downloads every file in the selected skill directory, not only `SKILL.md`. It installs into `$DSH_HOME/skills/<name>` and refuses to overwrite an existing skill.
|
|
87
87
|
|
|
88
|
+
## Create and edit skills
|
|
89
|
+
|
|
90
|
+
New skills use the [Agent Skills specification](https://agentskills.io/specification):
|
|
91
|
+
|
|
92
|
+
| Field | Required | Notes |
|
|
93
|
+
|---|---|---|
|
|
94
|
+
| `name` | yes | Lowercase letters, numbers, and single hyphens; 1-64 characters |
|
|
95
|
+
| `description` | yes | 1-1024 characters; what the skill does and when to use it |
|
|
96
|
+
| `license` | no | License name or a bundled license file |
|
|
97
|
+
| `compatibility` | no | Environment requirements; up to 500 characters |
|
|
98
|
+
| `metadata` | no | String key-value mapping |
|
|
99
|
+
| `allowed-tools` | no | Space-separated pre-approved tools |
|
|
100
|
+
|
|
101
|
+
The create form collects all six fields plus the Markdown body, then writes a canonical `SKILL.md` with YAML frontmatter. Existing native skills open in the same structured editor.
|
|
102
|
+
|
|
103
|
+
The edit page has a file tab for everything outside the root `SKILL.md`:
|
|
104
|
+
|
|
105
|
+
- create nested files and folders under the skill directory
|
|
106
|
+
- edit and save text files such as `references/guide.md` or `scripts/run.py`
|
|
107
|
+
- delete files or folders
|
|
108
|
+
- path validation keeps every operation inside that skill directory
|
|
109
|
+
|
|
110
|
+
Legacy root `SKILL.md` remains a raw Markdown editor.
|
|
111
|
+
|
|
88
112
|
## Install
|
|
89
113
|
|
|
90
114
|
Requirements:
|
|
@@ -171,6 +195,13 @@ The Host half registers these same-origin endpoints:
|
|
|
171
195
|
| `POST` | `/api/dsh-agents-manager/delete` | Delete + backup |
|
|
172
196
|
| `POST` | `/api/dsh-agents-manager/skills/list` | List native + legacy skills |
|
|
173
197
|
| `POST` | `/api/dsh-agents-manager/skills/create` | Create a native skill |
|
|
198
|
+
| `POST` | `/api/dsh-agents-manager/skills/read` | Read parsed skill fields and body |
|
|
199
|
+
| `POST` | `/api/dsh-agents-manager/skills/save` | Save structured fields and body |
|
|
200
|
+
| `POST` | `/api/dsh-agents-manager/skills/files` | List a skill directory |
|
|
201
|
+
| `POST` | `/api/dsh-agents-manager/skills/file/read` | Read a skill file |
|
|
202
|
+
| `POST` | `/api/dsh-agents-manager/skills/file/save` | Save a skill file |
|
|
203
|
+
| `POST` | `/api/dsh-agents-manager/skills/file/delete` | Delete a skill file or folder |
|
|
204
|
+
| `POST` | `/api/dsh-agents-manager/skills/folder/create` | Create a skill folder |
|
|
174
205
|
| `POST` | `/api/dsh-agents-manager/skills/import` | Import a `SKILL.md` from URL |
|
|
175
206
|
| `POST` | `/api/dsh-agents-manager/skills/delete` | Move a native skill to trash |
|
|
176
207
|
| `GET` | `/api/dsh-agents-manager/skills/library` | List local skill library |
|
|
@@ -201,6 +232,7 @@ node --check .\lib\store.js
|
|
|
201
232
|
node --check .\client.js
|
|
202
233
|
node .\test\store.test.mjs
|
|
203
234
|
node .\test\http.test.mjs
|
|
235
|
+
node .\test\skill.test.mjs
|
|
204
236
|
node .\test\client.test.mjs
|
|
205
237
|
node .\test\update.test.mjs
|
|
206
238
|
node .\test\catalog.test.mjs
|