rulesync 1.2.5 → 2.0.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
@@ -31,10 +31,8 @@ rulesync --help
31
31
  ## Getting Started
32
32
 
33
33
  ```bash
34
- # Create necessary directories and sample rule files
34
+ # Create necessary directories, sample rule files, and configuration file
35
35
  npx rulesync init
36
- # Create a new configuration file
37
- npx rulesync config --init
38
36
  ```
39
37
 
40
38
  On the other hand, if you already have AI tool configurations:
@@ -59,8 +57,8 @@ Rulesync supports both **generation** and **import** for All of the major AI cod
59
57
  | Tool | rules | ignore | mcp | commands | subagents |
60
58
  |------------------------|:-----:|:------:|:-----:|:--------:|:---------:|
61
59
  | AGENTS.md | ✅ | | | | |
62
- | Claude Code | ✅ | ✅ | ✅ | ✅ | ✅ |
63
- | Codex CLI | ✅ | ✅ | | 🎮 | 🎮 |
60
+ | Claude Code | ✅ 🌏 | ✅ | ✅ | ✅ | ✅ |
61
+ | Codex CLI | ✅ 🌏 | ✅ | | 🎮 | 🎮 |
64
62
  | Gemini CLI | ✅ | ✅ | | ✅ | 🎮 |
65
63
  | GitHub Copilot | ✅ | | ✅ | 🎮 | 🎮 |
66
64
  | Cursor | ✅ | ✅ | ✅ | ✅ | 🎮 |
@@ -75,7 +73,7 @@ Rulesync supports both **generation** and **import** for All of the major AI cod
75
73
  | Windsurf | ✅ | ✅ | | | |
76
74
  | Warp | ✅ | | | | |
77
75
 
78
-
76
+ 🌏: Supports global(means user scope) mode (Experimental Feature)
79
77
  🎮: Simulated Commands/Subagents (Experimental Feature)
80
78
 
81
79
  ## Why Rulesync?
@@ -95,6 +93,9 @@ Avoid lock-in completely. If you decide to stop using Rulesync, you can continue
95
93
  ### 🎯 **Consistency Across Tools**
96
94
  Apply consistent rules across all AI tools, improving code quality and development experience for the entire team.
97
95
 
96
+ ### 🌏 **Global Mode**
97
+ You can use global(also, called as user scope) mode via Rulesync by enabling `--experimental-global` option.
98
+
98
99
  ### 🎮 **Simulated Commands and Subagents**
99
100
  Simulated commands and subagents are experimental features that allow you to generate simulated commands and subagents for copilot, cursor and codexcli. This is useful for shortening your prompts.
100
101
 
@@ -151,6 +152,7 @@ Example:
151
152
  "verbose": false,
152
153
 
153
154
  // Experimental features
155
+ "experimentalGlobal": false,
154
156
  "experimentalSimulateCommands": false,
155
157
  "experimentalSimulateSubagents": false
156
158
  }
@@ -219,7 +221,7 @@ description: >- # subagent description
219
221
  suggest a specification, implement a new feature, refactor the codebase, or
220
222
  fix a bug. This agent can be called by the user explicitly only.
221
223
  claudecode: # for claudecode-specific rules
222
- model: opus # opus, sonnet, haiku or inherit
224
+ model: inherit # opus, sonnet, haiku or inherit
223
225
  ---
224
226
 
225
227
  You are the planner for any tasks.
@@ -275,7 +277,47 @@ tmp/
275
277
  credentials/
276
278
  ```
277
279
 
278
- ## Simulate Commands and Subagents
280
+ ## Global Mode(Experimental Feature)
281
+
282
+ You can use global(also, called as user scope) mode via Rulesync by enabling `--experimental-global` option.
283
+
284
+ Currently, only supports rules generation. Import for global files is still not supported.
285
+
286
+ 1. Create an any name directory. For example, if you prefer `~/.aiglobal`, run the following command.
287
+ ```bash
288
+ mkdir -p ~/.aiglobal
289
+ ```
290
+ 2. Initialize files for global files in the directory.
291
+ ```bash
292
+ cd ~/.aiglobal
293
+ npx rulesync init
294
+ ```
295
+ 3. Edit `~/.aiglobal/rulesync.jsonc` to enable global mode.
296
+ ```jsonc
297
+ {
298
+ "experimentalGlobal": true
299
+ }
300
+ ```
301
+ 4. Edit `~/.aiglobal/.rulesync/rules/overview.md` to your preferences.
302
+ ```md
303
+ ---
304
+ root: true
305
+ ---
306
+ # The Project Overview
307
+ ...
308
+ ```
309
+ 5. Generate rules for global settings.
310
+ ```bash
311
+ # Run in the `~/.aiglobal` directory
312
+ npx rulesync generate
313
+ ```
314
+
315
+ > [!WARNING]
316
+ > Currently, when in the directory enabled global mode:
317
+ > * `rulesync.jsonc` only supports `global`, `features`, `delete` and `verbose`. `Features` can be set `"rules"` only. Other parameters are ignored.
318
+ > * `rules/*.md` only supports single file has `root: true`, and frontmatter parameters without `root` are ignored.
319
+
320
+ ## Simulate Commands and Subagents(Experimental Feature)
279
321
 
280
322
  Simulated commands and subagents are experimental features that allow you to generate simulated commands and subagents for copilot, cursor, codexcli and etc. This is useful for shortening your prompts.
281
323