@dhzh/foundry 8.1.0 → 9.0.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/README.md +1 -1
- package/dist/index.mjs +8 -8
- package/dist/skills/foundry/SKILL.md +1 -1
- package/dist/skills/foundry/references/backups.md +1 -1
- package/dist/skills/foundry/references/skills.md +10 -8
- package/dist/web/assets/{code-editor-CFlkO3DL.js → code-editor-BRV1uWEk.js} +3 -3
- package/dist/web/assets/{freemarker2-DoxCiKNY.js → freemarker2-B7t35ZEw.js} +1 -1
- package/dist/web/assets/{handlebars-DBsOwW_m.js → handlebars-cRxHR1Gc.js} +1 -1
- package/dist/web/assets/{html-DMzzS3wY.js → html-sodUJlue.js} +1 -1
- package/dist/web/assets/{index-D08V30w-.js → index-CLcOQoE5.js} +47 -47
- package/dist/web/assets/{javascript-BeK5aX3A.js → javascript-DdMt6ScW.js} +1 -1
- package/dist/web/assets/{jsonMode-x8T_PRDy.js → jsonMode-CXVWD6VY.js} +1 -1
- package/dist/web/assets/{liquid-NkG3zhU5.js → liquid-D4OaoePH.js} +1 -1
- package/dist/web/assets/{mdx-B153l2gs.js → mdx-D3CGUX8f.js} +1 -1
- package/dist/web/assets/{python-Xc9G6OxU.js → python-D_t3bHUv.js} +1 -1
- package/dist/web/assets/{razor-CV4_03DG.js → razor-Dxnu4JPY.js} +1 -1
- package/dist/web/assets/{typescript-DeGT-aFo.js → typescript-B2O5REux.js} +1 -1
- package/dist/web/assets/{xml-DpLU4YxQ.js → xml-BQ-LGqv1.js} +1 -1
- package/dist/web/assets/{yaml-Pri32iay.js → yaml-DoRteRYj.js} +1 -1
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
|
@@ -99,7 +99,7 @@ Success prints JSON:
|
|
|
99
99
|
{"name":"hello","description":"Use when greeting users.","content":""}
|
|
100
100
|
```
|
|
101
101
|
|
|
102
|
-
The file is `<home>/.foundry/
|
|
102
|
+
The file is `<home>/.foundry/skills/hello/SKILL.md`:
|
|
103
103
|
|
|
104
104
|
```markdown
|
|
105
105
|
---
|
|
@@ -128,7 +128,7 @@ same service and validation as Web import apply:
|
|
|
128
128
|
- A folder must contain `SKILL.md` directly at its root; its whole tree is one Skill.
|
|
129
129
|
- An archive with root `SKILL.md` is one Skill. Otherwise, only its immediate
|
|
130
130
|
child folders are candidates; each must have its own root `SKILL.md`.
|
|
131
|
-
- Metadata `name` determines the destination under `~/.foundry/
|
|
131
|
+
- Metadata `name` determines the destination under `~/.foundry/skills`.
|
|
132
132
|
Existing destinations are never overwritten. Standalone `.md` files are rejected.
|
|
133
133
|
- In archive collection mode, invalid or conflicting candidates are skipped;
|
|
134
134
|
other candidates continue. The CLI does not search deeper for Skills.
|
|
@@ -223,8 +223,9 @@ for filesystem behavior and official agent references.
|
|
|
223
223
|
## Errors and scope
|
|
224
224
|
|
|
225
225
|
- `INVALID_SKILL_INPUT`: fix the name or description and retry.
|
|
226
|
-
- `SKILL_NAME_CONFLICT`:
|
|
227
|
-
|
|
226
|
+
- `SKILL_NAME_CONFLICT`: the destination already exists. Create/edit flows require
|
|
227
|
+
another name; import leaves the existing directory, including an incomplete
|
|
228
|
+
skill directory, untouched.
|
|
228
229
|
- `SKILL_LINK_CONFLICT`: an unrelated entry occupies a registered agent
|
|
229
230
|
destination. Preserve that entry and resolve the conflict before retrying.
|
|
230
231
|
- `SKILL_AGENT_NOT_FOUND`: the agent is not registered with Skills support.
|
|
@@ -237,7 +238,7 @@ for filesystem behavior and official agent references.
|
|
|
237
238
|
CLI creation supports `manual` and `local`. The Web UI also supports local
|
|
238
239
|
import; URL import remains a placeholder. Creation does not distribute the Skill;
|
|
239
240
|
editing refreshes assigned agent links. Skill sources and assignments are
|
|
240
|
-
included in version-
|
|
241
|
+
included in version-4 encrypted backups with complete source files and resources.
|
|
241
242
|
Import replaces source files first; Agent configuration is applied only by the
|
|
242
243
|
subsequent Web choice or CLI `--apply-agents`. Declining clears saved assignments
|
|
243
244
|
and preserves external links. See [Backups](backups.md).
|
|
@@ -258,7 +259,7 @@ multiple selection are not supported.
|
|
|
258
259
|
conflicting candidates are skipped and processing continues. Discovery never
|
|
259
260
|
descends to grandchildren; root files are ignored in this mode.
|
|
260
261
|
|
|
261
|
-
Each accepted candidate is copied into `<home>/.foundry/
|
|
262
|
+
Each accepted candidate is copied into `<home>/.foundry/skills/<name>`, using the
|
|
262
263
|
same name/description rules as manual creation. Original Markdown, extra
|
|
263
264
|
metadata, binary resources, and empty directories are preserved. Node reads
|
|
264
265
|
the source directly; file contents never pass through the browser.
|
|
@@ -276,8 +277,9 @@ does not assign Skills to agents.
|
|
|
276
277
|
It returns `{ imported: Skill[], skipped: [{ source, code, message }] }` with
|
|
277
278
|
HTTP 201 when any Skill was imported, or HTTP 200 when every candidate was
|
|
278
279
|
skipped. A source with no candidates is invalid. Missing/unreadable sources use
|
|
279
|
-
`SKILL_IMPORT_READ_FAILED` (400). Single-Skill validation errors use
|
|
280
|
-
`
|
|
280
|
+
`SKILL_IMPORT_READ_FAILED` (400). Single-Skill validation errors use specific
|
|
281
|
+
`SKILL_IMPORT_*` codes (400), total-size errors use `SKILL_IMPORT_TOO_LARGE`
|
|
282
|
+
(413), `SKILL.md` over 2 MiB uses `SKILL_IMPORT_SKILL_MD_TOO_LARGE` (413), and
|
|
281
283
|
occupied names use `SKILL_NAME_CONFLICT` (409). In archive collection mode,
|
|
282
284
|
candidate validation and conflict errors appear in `skipped` instead.
|
|
283
285
|
|