ai-rulez 4.18.0 → 4.20.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 +14 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -35,6 +35,8 @@ Write your rules, context, skills, agents, and commands once in `.ai-rulez/`. Ru
35
35
  npx ai-rulez@latest init && npx ai-rulez@latest generate
36
36
  ```
37
37
 
38
+ Prefer the project-level [`.config/` convention](https://github.com/pi0/config-dir)? `ai-rulez` auto-discovers `.config/ai-rulez/` as well, and `ai-rulez init --config-dir .config/ai-rulez` scaffolds it.
39
+
38
40
  ai-rulez generates correct, tool-native output for **14 platforms**: Claude, Cursor, Windsurf, Copilot, Gemini, Cline, Continue.dev, Codex, OpenCode, Hermes, Amp, Junie, Antigravity, and Xum. Each preset respects the target tool's conventions — proper frontmatter, directory structure, file extensions, agent formats.
39
41
 
40
42
  For a tool that isn't built in, a custom preset can point at a declarative **provider spec** (`provider = ".ai-rulez/providers/my-tool.toml"`) and get the same full feature set as a built-in — root instructions file, skills/agents/commands, per-agent frontmatter, and MCP sidecars. See [Custom Presets](docs/configuration.md#provider-backed-presets-full-parity).
@@ -239,6 +241,13 @@ command = "npx"
239
241
  args = ["-y", "ai-rulez@latest", "mcp"]
240
242
  ```
241
243
 
244
+ Or let `generate` add it for you. With `[mcp] self_server = true` the entry is merged into the project `.mcp.json`, pinned to the running ai-rulez version, without touching hand-authored servers or `.claude/settings.json`:
245
+
246
+ ```toml
247
+ [mcp]
248
+ self_server = true
249
+ ```
250
+
242
251
  ## Installation
243
252
 
244
253
  No install needed — `npx ai-rulez@latest <command>` works out of the box. Pick a permanent option below:
@@ -307,7 +316,7 @@ Add to `.pre-commit-config.yaml`:
307
316
  ```yaml
308
317
  repos:
309
318
  - repo: https://github.com/Goldziher/ai-rulez
310
- rev: v4.18.0
319
+ rev: v4.20.0
311
320
  hooks:
312
321
  - id: ai-rulez-recursive # generate outputs across the repo
313
322
  - id: ai-rulez-validate # dry-run validation
@@ -328,7 +337,7 @@ repository needs. This requires AI-Rulez 4.9.0+ and Poly 0.14.0+:
328
337
  [[hooks.sources]]
329
338
  id = "ai-rulez"
330
339
  git = "https://github.com/Goldziher/ai-rulez.git"
331
- revision = "v4.18.0"
340
+ revision = "v4.20.0"
332
341
  hooks = ["ai-rulez-recursive", "ai-rulez-plugin-verify"]
333
342
  ```
334
343
 
@@ -362,6 +371,9 @@ pre-commit:
362
371
  run: ai-rulez generate --recursive
363
372
  ```
364
373
 
374
+ In a monorepo, `ai-rulez generate --recursive` and `ai-rulez validate --recursive` (`-r`) process every nested
375
+ `.ai-rulez/` root, report all failures, and exit non-zero if any root failed.
376
+
365
377
  Or run `ai-rulez init --setup-hooks` while initializing a repo to wire hooks in automatically.
366
378
  </details>
367
379
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-rulez",
3
- "version": "4.18.0",
3
+ "version": "4.20.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",