@rogatio/cli 6.14.3 → 6.16.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 (3) hide show
  1. package/README.md +6 -3
  2. package/dist/node/index.js +7251 -5956
  3. package/package.json +3 -2
package/README.md CHANGED
@@ -9,7 +9,7 @@ optional local runtime used for response/request body rewriting.
9
9
 
10
10
  ## Install
11
11
 
12
- Requires Node.js 24 or newer. Install the CLI globally with your preferred
12
+ Requires Node.js 26 or newer. Install the CLI globally with your preferred
13
13
  package manager:
14
14
 
15
15
  ```sh
@@ -38,12 +38,15 @@ rogatio <command> [options]
38
38
  | --- | --- |
39
39
  | `rogatio edit [path]` | Launch the browser editor. Any filename is accepted; the default is `.rogatio.json` in the current directory. `--port <n>` fixes the port; `--no-open` skips opening a browser. Edits save back to the file that was opened. |
40
40
  | `rogatio verify [path]` | Validate a project file (schema + compiler). Any filename is accepted; the default is `.rogatio.json` in the current directory. |
41
+ | `rogatio doctor [path]` | Check Node, the project file, the native host, the device CA, a loopback PAC answer, and optional AI Assist. `--json` prints a stable report. `--check-updates` asks the npm registry about a newer CLI. Release users never pass `--extension-id`. |
41
42
  | `rogatio import requestly <export.json>` | Migrate a Requestly export into `.rogatio.json`. `--out <path>` chooses the file (default `.rogatio.json`); `--merge` appends onto an existing project; `--json` prints the report. |
42
43
  | `rogatio test [path] [url...]` | Run offline dry-run tests. Any filename is accepted; the default is `.rogatio.json` in the current directory. |
43
44
  | `rogatio ai <setup\|ls\|show\|delete\|test>` | AI provider configuration. `setup` interactive; `ls` list; `show` redacted; `delete` remove; `test` connection. |
44
45
  | `rogatio runtime <install\|uninstall\|verify>` | Register the native-messaging host with `install` and trust the device-local CA in one **transactional** call; it needs elevated privileges (Linux `sudo`, macOS keychain authorization, Windows Administrator) and rolls back with exit `1` and `trust unsupported: <reasons>` when a capability or elevation is missing. Release users never pass `--extension-id`. That flag is only for development (a local unpacked build without the release key) and for forks. `uninstall` removes the host manifest, the device-local CA files, and the CA trust installation (idempotent). `verify` reports whether manifest, `runtime-host` wrapper, allowed origins, and CA trust are all valid, and fails when `allowed_origins` omits the release ID. Release users never pass `--extension-id` on verify either. |
45
46
  | `rogatio runtime host [path]` | Run the consolidated native-messaging host for the project (pair/authorize/body transforms and mock responses over stdio). Normally launched by the browser; run manually only for debugging. `--root <dir>` overrides the confined mock file root. When omitted, a saved device-local root for that project file is used, otherwise the project directory. A stdin project that contains a file mock requires `--root`. |
46
47
 
48
+ `rogatio edit` includes **Run checks**. It calls `POST /api/doctor` (CSRF-protected) and shows editor checks plus the same report as `rogatio doctor` for the open file. A provider configured after the page opened is picked up on the next `rogatio edit`.
49
+
47
50
  Global options: `--help, -h` and `--version, -v`. Run `rogatio <command> --help`
48
51
  for command-specific usage.
49
52
 
@@ -66,8 +69,8 @@ rogatio runtime host .rogatio.json
66
69
  ## Exit codes
67
70
 
68
71
  - `0` — success
69
- - `1` — invalid project (diagnostics present), test/validation errors, or a failed
70
- `runtime install` / `runtime verify` check
72
+ - `1` — invalid project (diagnostics present), test/validation errors, a failed
73
+ `runtime install` / `runtime verify` check, or a required `rogatio doctor` check
71
74
  - `2` — usage or IO error
72
75
 
73
76
  ## Local runtime