rulesync 3.31.0 → 3.32.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 CHANGED
@@ -273,6 +273,34 @@ Example:
273
273
  }
274
274
  ```
275
275
 
276
+ ### Target Order and File Conflicts
277
+
278
+ When multiple targets write to the same output file, **the last target in the array wins**. This is the "last-wins" behavior.
279
+
280
+ For example, both `agentsmd` and `opencode` generate `AGENTS.md`:
281
+
282
+ ```jsonc
283
+ {
284
+ // opencode wins because it comes last
285
+ "targets": ["agentsmd", "opencode"],
286
+ "features": ["rules"]
287
+ }
288
+ ```
289
+
290
+ In this case:
291
+ 1. `agentsmd` generates `AGENTS.md` first
292
+ 2. `opencode` generates `AGENTS.md` second, overwriting the previous file
293
+
294
+ If you want `agentsmd`'s output instead, reverse the order:
295
+
296
+ ```jsonc
297
+ {
298
+ // agentsmd wins because it comes last
299
+ "targets": ["opencode", "agentsmd"],
300
+ "features": ["rules"]
301
+ }
302
+ ```
303
+
276
304
  ## Each File Format
277
305
 
278
306
  ### `rulesync/rules/*.md`