@dhzh/foundry 11.3.1 → 11.5.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.
@@ -208,6 +208,8 @@ foundry agents skills list
208
208
  foundry agents skills list chatgpt
209
209
  foundry agents skills installed
210
210
  foundry agents skills installed chatgpt
211
+ foundry agents skills bring-in chatgpt --skill hello
212
+ foundry agents skills delete chatgpt --skill hello
211
213
  foundry agents skills assign chatgpt --skill hello
212
214
  foundry agents skills unassign chatgpt --skill hello
213
215
  ```
@@ -217,10 +219,32 @@ foundry agents skills unassign chatgpt --skill hello
217
219
  It shows persisted assignments even if a link was removed externally.
218
220
  `installed` scans each agent's actual Skills directory and returns an array with
219
221
  `id`, `name`, `icon`, `directory`, and `skills`; each installed skill contains
220
- `directoryName`, metadata `name`, and `description`. Symbolic-link entries also
221
- contain `originPath`, the direct link target; non-link entries omit it.
222
+ `directoryName`, metadata `name`, `description`, and `isManaged`. `isManaged`
223
+ is true when the entry resolves to the same directory as the Foundry library
224
+ Skill with that directory name. Symbolic-link entries also contain `originPath`,
225
+ the direct link target; non-link entries omit it.
222
226
  It is independent of saved assignments and ignores entries without valid
223
227
  `SKILL.md` frontmatter. The optional agent ID filters the array.
228
+
229
+ `bring-in` treats one installed directory name as the Skill name. If Foundry
230
+ does not already have that name, it copies the resolved origin into the Foundry
231
+ library; a symbolic-link origin is copied without modifying the origin itself.
232
+ If Foundry already has the name, the Foundry version wins and the agent version
233
+ is not copied. It then saves the assignment for the selected agent only,
234
+ replaces that agent's same-name entry with a symlink to the Foundry library, and
235
+ prints the complete Foundry Skill. Other agents and entries stay unchanged.
236
+ An entry already managed by Foundry returns `SKILL_ALREADY_MANAGED`; metadata
237
+ whose name does not match the directory is rejected.
238
+
239
+ `delete` removes one installed entry from the selected agent's Skills directory.
240
+ A symbolic link is unlinked without deleting its target; an ordinary file or
241
+ folder is deleted with all contents. Only a link that resolves to the same-name
242
+ Foundry library Skill clears that agent's saved assignment. Other links and
243
+ ordinary entries leave saved state unchanged. Other entries, agents, and Foundry
244
+ library sources stay unchanged.
245
+ It prints `{ "agentId", "directoryName", "kind" }`, where `kind` is `link`,
246
+ `file`, or `directory`.
247
+
224
248
  `assign` requires an existing library Skill. It adds its name once to the
225
249
  selected agent record and creates a directory symlink at
226
250
  `<agent-skill-directory>/<skill-name>`. An existing entry at that exact name