@dhzh/foundry 10.1.3 → 11.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.
- package/dist/index.mjs +8 -10
- package/dist/skills/foundry/SKILL.md +2 -7
- package/dist/skills/foundry/references/agents.md +2 -2
- package/dist/skills/foundry/references/instructions.md +6 -15
- package/dist/skills/foundry/references/skills.md +13 -9
- package/dist/web/assets/{code-editor-CjmqDtZQ.js → code-editor-BLV7kBvd.js} +3 -3
- package/dist/web/assets/{freemarker2-DhrduO38.js → freemarker2-Co03aady.js} +1 -1
- package/dist/web/assets/{handlebars-Dj9U4B5v.js → handlebars-D13u43fU.js} +1 -1
- package/dist/web/assets/{html-CbnXeSIJ.js → html-99qniDkp.js} +1 -1
- package/dist/web/assets/{index-DlOf72U2.js → index-Cij2fBcr.js} +65 -65
- package/dist/web/assets/{javascript-BxbNN9FD.js → javascript-blyYBaQ_.js} +1 -1
- package/dist/web/assets/{jsonMode-LUx6ndZz.js → jsonMode-BRAf7thr.js} +1 -1
- package/dist/web/assets/{liquid-C50HWhmO.js → liquid-CYmDvMEA.js} +1 -1
- package/dist/web/assets/{mdx-jeksnJpa.js → mdx-BRAebpb_.js} +1 -1
- package/dist/web/assets/{python-C_D3Rdio.js → python-BqkCF7Yt.js} +1 -1
- package/dist/web/assets/{razor-ByFUnmpG.js → razor-DKnNIUnY.js} +1 -1
- package/dist/web/assets/{typescript-DtwFb6C8.js → typescript-BQMBetT5.js} +1 -1
- package/dist/web/assets/{xml-CCC5unt9.js → xml-BEEzuT5O.js} +1 -1
- package/dist/web/assets/{yaml-DwzTLb8C.js → yaml-CAPgFTfU.js} +1 -1
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
|
@@ -98,7 +98,7 @@ instead.
|
|
|
98
98
|
foundry instructions list
|
|
99
99
|
```
|
|
100
100
|
|
|
101
|
-
The command prints a JSON array ordered by
|
|
101
|
+
The command prints a JSON array ordered by name. Each item
|
|
102
102
|
has the same shape as the creation result, including the full Markdown content.
|
|
103
103
|
Both timestamps are Unix epoch milliseconds as numbers.
|
|
104
104
|
|
|
@@ -136,18 +136,9 @@ foundry instructions edit <id> \
|
|
|
136
136
|
|
|
137
137
|
Both `--name` and `--content` are required. Edit replaces both fields, uses the
|
|
138
138
|
same validation rules as creation, keeps the instruction ID and `createdAt`,
|
|
139
|
-
and advances `updatedAt`. It prints the updated record as JSON.
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
content from their previous write until the affected agent is reapplied:
|
|
143
|
-
|
|
144
|
-
```bash
|
|
145
|
-
foundry agents instructions reapply chatgpt
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
Read the current assignment first with
|
|
149
|
-
`foundry agents instructions list <agent>` when it is unclear which agents use
|
|
150
|
-
the instruction.
|
|
139
|
+
and advances `updatedAt`. It prints the updated record as JSON. Every enabled
|
|
140
|
+
agent that uses the instruction has its managed block rewritten immediately;
|
|
141
|
+
disabled agents and their external files are unchanged.
|
|
151
142
|
|
|
152
143
|
## Delete an instruction
|
|
153
144
|
|
|
@@ -224,7 +215,7 @@ foundry agents instructions enable claude-code
|
|
|
224
215
|
- Verify the changelog"
|
|
225
216
|
```
|
|
226
217
|
|
|
227
|
-
3.
|
|
218
|
+
3. Enabled agents that use the instruction are synchronized automatically.
|
|
228
219
|
|
|
229
220
|
Agent assignments reference the stable ID, so editing does not require
|
|
230
221
|
reassigning the instruction. To remove the record instead, clear all
|
|
@@ -297,7 +288,7 @@ updatedAt: 1795801802798
|
|
|
297
288
|
| CLI reports a missing required option | `--name` or `--content` omitted | Add both flags |
|
|
298
289
|
| `Invalid instruction file: ...` | A stored Markdown file is malformed or its ID/filename mismatch | Inspect that file in `<home>/.foundry/instructions`; do not guess which record is broken |
|
|
299
290
|
| Created instruction is not active in an agent | Creation does not assign or enable it | Use `agents instructions assign` and `enable` |
|
|
300
|
-
| Edited content is missing from an agent file |
|
|
291
|
+
| Edited content is missing from an enabled agent file | The managed block was changed outside Foundry or the agent file changed later | Run `agents instructions reapply` for that agent |
|
|
301
292
|
|
|
302
293
|
## Backup boundary
|
|
303
294
|
|
|
@@ -14,21 +14,22 @@ foundry skills get hello
|
|
|
14
14
|
`list` returns a JSON array of `{ name, description }` summaries, or `[]` for
|
|
15
15
|
an empty library. `get` returns one complete Skill with `name`, `description`,
|
|
16
16
|
`content`, and nested `files`. Each file has a full skill-relative `path` and
|
|
17
|
-
`content`; each folder has `path` and `children`.
|
|
18
|
-
|
|
17
|
+
`content`; each folder has `path` and `children`. File content is the complete
|
|
18
|
+
source text, including YAML frontmatter in `SKILL.md`. The top-level `content`
|
|
19
|
+
contains only the Markdown body. Edit the file entry to save source changes.
|
|
19
20
|
|
|
20
21
|
## Save file changes
|
|
21
22
|
|
|
22
23
|
Prefer stdin for agent workflows: read the detail into memory, change its
|
|
23
24
|
`files`, and submit the JSON through `--file -`. Foundry reads this input in
|
|
24
25
|
memory and does not create an intermediate JSON file. For example, update only
|
|
25
|
-
the primary
|
|
26
|
+
the primary file while retaining every other entry:
|
|
26
27
|
|
|
27
28
|
```bash
|
|
28
29
|
node <<'JS'
|
|
29
30
|
const { execFileSync } = require('node:child_process');
|
|
30
31
|
const skill = JSON.parse(execFileSync('foundry', ['skills', 'get', 'hello'], { encoding: 'utf8' }));
|
|
31
|
-
skill.files.find((file) => file.path === 'SKILL.md').content
|
|
32
|
+
skill.files.find((file) => file.path === 'SKILL.md').content += '\n# Updated\n';
|
|
32
33
|
const saved = execFileSync('foundry', ['skills', 'save', 'hello', '--file', '-'], {
|
|
33
34
|
input: JSON.stringify({ files: skill.files }),
|
|
34
35
|
encoding: 'utf8',
|
|
@@ -44,12 +45,12 @@ project or home directory when stdin can carry the input.
|
|
|
44
45
|
|
|
45
46
|
Input is `{ "files": [...] }`, or the complete `get` output. Only `files` is
|
|
46
47
|
applied; top-level `name`, `description`, and `content` are ignored. Use `edit`
|
|
47
|
-
|
|
48
|
+
to rename the Skill. Other metadata can be changed in `SKILL.md`. Example file tree:
|
|
48
49
|
|
|
49
50
|
```json
|
|
50
51
|
{
|
|
51
52
|
"files": [
|
|
52
|
-
{ "path": "SKILL.md", "content": "# Hello\n" },
|
|
53
|
+
{ "path": "SKILL.md", "content": "---\nname: hello\ndescription: Use when greeting users.\n---\n# Hello\n" },
|
|
53
54
|
{
|
|
54
55
|
"path": "scripts",
|
|
55
56
|
"children": [
|
|
@@ -64,7 +65,9 @@ for metadata changes. Example file tree:
|
|
|
64
65
|
Saving replaces the complete editable tree: new paths are created, included
|
|
65
66
|
text is replaced, and omitted entries are deleted. Include every entry you
|
|
66
67
|
want to retain. An empty folder uses `children: []`. `SKILL.md` is required;
|
|
67
|
-
its `content` replaces
|
|
68
|
+
its `content` replaces the complete file verbatim, including frontmatter.
|
|
69
|
+
Frontmatter must contain a valid name matching the directory and a valid
|
|
70
|
+
description. Invalid metadata rejects the entire save. Binary or
|
|
68
71
|
oversized existing files are returned with `content: null`; retain that entry
|
|
69
72
|
unchanged to preserve it, or omit it to delete it. Null cannot create a file.
|
|
70
73
|
Child symlinks are hidden from the tree, preserved, and never followed.
|
|
@@ -347,8 +350,9 @@ has file navigation on the left and a Monaco source editor on the right,
|
|
|
347
350
|
including for an empty `SKILL.md` body. Save with the toolbar button or Cmd/Ctrl+S.
|
|
348
351
|
`GET /api/skills/:name` returns metadata and the complete nested `files` tree.
|
|
349
352
|
Files contain `path` and `content`; folders contain `path` and `children`.
|
|
350
|
-
|
|
351
|
-
|
|
353
|
+
All editable files contain their full source text, including `SKILL.md` YAML
|
|
354
|
+
frontmatter, comments, and whitespace. Save writes that text verbatim after
|
|
355
|
+
validating metadata; use Overview to rename the Skill. Binary and large
|
|
352
356
|
files use `content: null` and remain unchanged unless deleted from the draft.
|
|
353
357
|
File additions, edits, and deletions stay local until Save sends `{ files }` to
|
|
354
358
|
`PUT /api/skills/:name`. One transaction applies the complete tree. Existing agent
|