@dhzh/foundry 8.1.0 → 9.1.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.
Files changed (25) hide show
  1. package/README.md +1 -1
  2. package/dist/index.mjs +9 -9
  3. package/dist/skills/foundry/SKILL.md +1 -1
  4. package/dist/skills/foundry/references/backups.md +1 -1
  5. package/dist/skills/foundry/references/settings.md +4 -0
  6. package/dist/skills/foundry/references/skills.md +10 -8
  7. package/dist/web/assets/{code-editor-CFlkO3DL.js → code-editor-j-Ztw8kv.js} +3 -3
  8. package/dist/web/assets/{freemarker2-DoxCiKNY.js → freemarker2-3vQN7_ep.js} +1 -1
  9. package/dist/web/assets/{handlebars-DBsOwW_m.js → handlebars-DZJY6ahB.js} +1 -1
  10. package/dist/web/assets/{html-DMzzS3wY.js → html-B2quYk9J.js} +1 -1
  11. package/dist/web/assets/index-CzWReBQn.css +1 -0
  12. package/dist/web/assets/index-QgM531xh.js +243 -0
  13. package/dist/web/assets/{javascript-BeK5aX3A.js → javascript-Dr3Q2-9O.js} +1 -1
  14. package/dist/web/assets/{jsonMode-x8T_PRDy.js → jsonMode-DoZsybH3.js} +1 -1
  15. package/dist/web/assets/{liquid-NkG3zhU5.js → liquid-MwgK4nlR.js} +1 -1
  16. package/dist/web/assets/{mdx-B153l2gs.js → mdx-D4jT_jaG.js} +1 -1
  17. package/dist/web/assets/{python-Xc9G6OxU.js → python-eLVG3wEM.js} +1 -1
  18. package/dist/web/assets/{razor-CV4_03DG.js → razor-CotEZdDY.js} +1 -1
  19. package/dist/web/assets/{typescript-DeGT-aFo.js → typescript-2VtSm3Ie.js} +1 -1
  20. package/dist/web/assets/{xml-DpLU4YxQ.js → xml-DFV9mFqD.js} +1 -1
  21. package/dist/web/assets/{yaml-Pri32iay.js → yaml-B-gE7sOv.js} +1 -1
  22. package/dist/web/index.html +2 -2
  23. package/package.json +1 -1
  24. package/dist/web/assets/index-BeW0cnEG.css +0 -1
  25. package/dist/web/assets/index-D08V30w-.js +0 -207
@@ -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/skill/hello/SKILL.md`:
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/skill`.
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`: choose another name. Existing directories, including
227
- incomplete skill directories, are preserved.
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-3 encrypted backups with complete source files and resources.
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/skill/<name>`, using the
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
- `INVALID_SKILL_IMPORT` (400), size errors use `SKILL_IMPORT_TOO_LARGE` (413), and
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