ai-rulez 4.20.1 → 4.22.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 (2) hide show
  1. package/README.md +11 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -159,6 +159,8 @@ Include sources can use a bare/flattened layout — expose `rules/`, `context/`,
159
159
  directly (at the repo root or a sub-path via `path = "modules/core"`) with no `.ai-rulez/` wrapper.
160
160
  Recommended for shared, skill-first modules.
161
161
 
162
+ **Native rules folders** — Rules are written to each tool's own rules folder (`.claude/rules`, `.cursor/rules`, `.github/instructions`, `.windsurf/rules`, ...) with native `paths`/`globs` frontmatter, so path-scoped rules load only when relevant. `split` is the default since 4.22.0; set `[rules] mode = "inline"` to keep rules in the root files. See [docs/rules.md](docs/rules.md).
163
+
162
164
  **Local overrides** — Personal, machine-local instructions that never get committed:
163
165
 
164
166
  ```bash
@@ -230,6 +232,13 @@ name = "kreuzberg"
230
232
  source = "https://github.com/kreuzberg-dev/kreuzberg"
231
233
  ```
232
234
 
235
+ **Committing generated output** — every generated file carries a `Content-Hash` and a `Source-Hash` line. `Source-Hash` covers the whole source set, so editing one skill rewrites a line in every generated file. If you commit the output, keep headers stable:
236
+
237
+ ```toml
238
+ [header]
239
+ hashes = "content" # "full" (default) | "content" (Content-Hash only) | "none"
240
+ ```
241
+
233
242
  ## MCP Server
234
243
 
235
244
  ai-rulez includes a built-in MCP server with 36 tools that lets AI assistants manage their own governance. Add rules, update context, generate configs — all programmatically.
@@ -316,7 +325,7 @@ Add to `.pre-commit-config.yaml`:
316
325
  ```yaml
317
326
  repos:
318
327
  - repo: https://github.com/Goldziher/ai-rulez
319
- rev: v4.20.1
328
+ rev: v4.22.0
320
329
  hooks:
321
330
  - id: ai-rulez-recursive # generate outputs across the repo
322
331
  - id: ai-rulez-validate # dry-run validation
@@ -337,7 +346,7 @@ repository needs. This requires AI-Rulez 4.9.0+ and Poly 0.14.0+:
337
346
  [[hooks.sources]]
338
347
  id = "ai-rulez"
339
348
  git = "https://github.com/Goldziher/ai-rulez.git"
340
- revision = "v4.20.1"
349
+ revision = "v4.22.0"
341
350
  hooks = ["ai-rulez-recursive", "ai-rulez-plugin-verify"]
342
351
  ```
343
352
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-rulez",
3
- "version": "4.20.1",
3
+ "version": "4.22.0",
4
4
  "description": "Complete AI development workflow for 14 AI coding tools. Ships with builtin rules, agents, and conventions. Generate native configs for Claude, Cursor, Copilot, Windsurf, Gemini, Codex and more from a single source.",
5
5
  "keywords": [
6
6
  "agents",