@dhzh/foundry 11.0.0 → 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.
@@ -98,7 +98,7 @@ instead.
98
98
  foundry instructions list
99
99
  ```
100
100
 
101
- The command prints a JSON array ordered by `updatedAt`, newest first. Each item
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
- Editing changes the stored instruction only. Enabled agent files keep the
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. Reapply each enabled agent that uses the instruction.
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 | Editing does not rewrite external files | Run `agents instructions reapply` for that agent |
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