ai-rulez 4.8.0 → 4.9.1
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 +36 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -274,13 +274,47 @@ Add to `.pre-commit-config.yaml`:
|
|
|
274
274
|
```yaml
|
|
275
275
|
repos:
|
|
276
276
|
- repo: https://github.com/Goldziher/ai-rulez
|
|
277
|
-
rev: v4.
|
|
277
|
+
rev: v4.9.1
|
|
278
278
|
hooks:
|
|
279
279
|
- id: ai-rulez-recursive # generate outputs across the repo
|
|
280
280
|
- id: ai-rulez-validate # dry-run validation
|
|
281
281
|
```
|
|
282
282
|
|
|
283
|
-
Available hook ids: `ai-rulez-validate`, `ai-rulez-generate`,
|
|
283
|
+
Available hook ids: `ai-rulez-validate`, `ai-rulez-generate`,
|
|
284
|
+
`ai-rulez-recursive`, `ai-rulez-plugin-generate`,
|
|
285
|
+
`ai-rulez-plugin-verify`, `ai-rulez-enforce`, and
|
|
286
|
+
`ai-rulez-enforce-fix`. They trigger on root or nested `.ai-rulez/` changes.
|
|
287
|
+
</details>
|
|
288
|
+
|
|
289
|
+
<details>
|
|
290
|
+
<summary><strong>poly hook source</strong></summary>
|
|
291
|
+
|
|
292
|
+
Add ai-rulez as a managed source in your existing `poly.toml` and select the hooks your
|
|
293
|
+
repository needs. This requires AI-Rulez 4.9.0+ and Poly 0.14.0+:
|
|
294
|
+
|
|
295
|
+
```toml
|
|
296
|
+
[[hooks.sources]]
|
|
297
|
+
id = "ai-rulez"
|
|
298
|
+
git = "https://github.com/Goldziher/ai-rulez.git"
|
|
299
|
+
revision = "v4.9.0"
|
|
300
|
+
hooks = ["ai-rulez-recursive", "ai-rulez-plugin-verify"]
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
The source also provides `ai-rulez-validate`, `ai-rulez-generate`,
|
|
304
|
+
`ai-rulez-enforce`, `ai-rulez-enforce-fix`, and `ai-rulez-plugin-generate`.
|
|
305
|
+
Plugin hooks use `--if-configured`, so they skip consumer-only repositories that
|
|
306
|
+
do not contain a producer `[plugin]` or multi-member `[marketplace]` block.
|
|
307
|
+
|
|
308
|
+
Resolve and commit the source lock, then install the Git shims:
|
|
309
|
+
|
|
310
|
+
```bash
|
|
311
|
+
poly hooks update
|
|
312
|
+
git add poly.toml poly-hooks.lock
|
|
313
|
+
poly hooks install
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
See the [Poly hooks guide](docs/poly-hooks.md) for local sources, machine install
|
|
317
|
+
preferences, hook behavior, and the producer catalog.
|
|
284
318
|
</details>
|
|
285
319
|
|
|
286
320
|
<details>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-rulez",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.9.1",
|
|
4
4
|
"description": "Complete AI development workflow for 19+ 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
|
"ai",
|