rulesync 3.31.0 → 3.33.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 (4) hide show
  1. package/README.md +29 -0
  2. package/dist/index.cjs +1292 -835
  3. package/dist/index.js +1283 -826
  4. package/package.json +1 -1
package/README.md CHANGED
@@ -189,6 +189,7 @@ Rulesync is trusted by leading companies and recognized by the industry:
189
189
 
190
190
  - **Anthropic Official Customer Story**: [Classmethod Inc. - Improving AI coding tool consistency with Rulesync](https://claude.com/customers/classmethod)
191
191
  - **Asoview Inc.**: [Adopting Rulesync for unified AI development rules](https://tech.asoview.co.jp/entry/2025/12/06/100000)
192
+ - **KAKEHASHI Tech Blog**: [Building multilingual systems for the LLM era with a monorepo and a "living specification"](https://kakehashi-dev.hatenablog.com/entry/2025/12/08/110000)
192
193
 
193
194
  ## Quick Commands
194
195
 
@@ -273,6 +274,34 @@ Example:
273
274
  }
274
275
  ```
275
276
 
277
+ ### Target Order and File Conflicts
278
+
279
+ When multiple targets write to the same output file, **the last target in the array wins**. This is the "last-wins" behavior.
280
+
281
+ For example, both `agentsmd` and `opencode` generate `AGENTS.md`:
282
+
283
+ ```jsonc
284
+ {
285
+ // opencode wins because it comes last
286
+ "targets": ["agentsmd", "opencode"],
287
+ "features": ["rules"]
288
+ }
289
+ ```
290
+
291
+ In this case:
292
+ 1. `agentsmd` generates `AGENTS.md` first
293
+ 2. `opencode` generates `AGENTS.md` second, overwriting the previous file
294
+
295
+ If you want `agentsmd`'s output instead, reverse the order:
296
+
297
+ ```jsonc
298
+ {
299
+ // agentsmd wins because it comes last
300
+ "targets": ["opencode", "agentsmd"],
301
+ "features": ["rules"]
302
+ }
303
+ ```
304
+
276
305
  ## Each File Format
277
306
 
278
307
  ### `rulesync/rules/*.md`