@rogatio/cli 5.0.0 → 5.1.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 +21 -0
- package/dist/editor/index.js +479 -61
- package/dist/node/index.js +3744 -2951
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -39,6 +39,7 @@ rogatio <command> [options]
|
|
|
39
39
|
| `rogatio edit [path]` | Launch the browser editor for `.rogatio.json`. |
|
|
40
40
|
| `rogatio verify [path]` | Validate a `.rogatio.json` file (schema + compiler). |
|
|
41
41
|
| `rogatio test [path] [url...]` | Run offline dry-run tests against `.rogatio.json`. |
|
|
42
|
+
| `rogatio ai <setup\|ls\|show\|delete\|test>` | AI provider configuration. `setup` interactive; `ls` list; `show` redacted; `delete` remove; `test` connection. |
|
|
42
43
|
| `rogatio runtime <install\|uninstall>` | Register the native-messaging host (and, on capable platforms, the device-local CA) in one transactional install; `uninstall` removes the host manifest, the device-local CA files, and the CA trust installation (idempotent). |
|
|
43
44
|
| `rogatio runtime host <path>` | Run the consolidated native-messaging host for the project (mock/pair/authorize over stdio). Normally launched by the browser; run manually only for debugging. |
|
|
44
45
|
|
|
@@ -67,6 +68,26 @@ rogatio runtime host .rogatio.json
|
|
|
67
68
|
- `1` — invalid project (diagnostics present) or test/validation errors
|
|
68
69
|
- `2` — usage or IO error
|
|
69
70
|
|
|
71
|
+
## AI-Assisted Rule Authoring
|
|
72
|
+
|
|
73
|
+
```sh
|
|
74
|
+
# Configure AI provider (interactive)
|
|
75
|
+
rogatio ai setup
|
|
76
|
+
|
|
77
|
+
# List/show/test/delete AI configuration
|
|
78
|
+
rogatio ai ls
|
|
79
|
+
rogatio ai show
|
|
80
|
+
rogatio ai test
|
|
81
|
+
rogatio ai delete
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Configuration is stored at `~/.config/rogatio/provider.json` (Linux), `~/Library/Application Support/rogatio/provider.json` (macOS), or `%LOCALAPPDATA%\rogatio\provider.json` (Windows) with `600` permissions.
|
|
85
|
+
|
|
86
|
+
When AI is configured, `rogatio edit` shows an **AI Assist** button in the command bar. Click it to:
|
|
87
|
+
- Generate rules from natural language
|
|
88
|
+
- Fix validation errors (max 3 auto-fix iterations)
|
|
89
|
+
- Fix dry-run mismatches
|
|
90
|
+
|
|
70
91
|
## Related
|
|
71
92
|
|
|
72
93
|
- [Rogatio repository](https://github.com/drmaas/rogatio)
|