@rogatio/cli 6.21.1 → 6.21.2

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 CHANGED
@@ -42,7 +42,7 @@ rogatio <command> [options]
42
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. |
43
43
  | `rogatio test [path] [url...]` | Run offline dry-run tests. Any filename is accepted; the default is `.rogatio.json` in the current directory. |
44
44
  | `rogatio ai <setup\|ls\|show\|delete\|test>` | AI provider configuration. `setup` interactive; `ls` list; `show` redacted; `delete` remove; `test` connection. |
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
+ | `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). If the trust-store refresh fails, it exits `1` and does not print `runtime uninstall complete`. `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. |
46
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`. |
47
47
 
48
48
  `rogatio edit` includes **Run checks**. It calls `POST /e/<session>/api/doctor` (session path, loopback Origin, and `X-CSRF-Token`) 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`.
@@ -2306,7 +2306,7 @@ import { lstat as lstat3, mkdtemp, open as open4, rm as rm2 } from "node:fs/prom
2306
2306
  import { tmpdir } from "node:os";
2307
2307
  import { join as join3 } from "node:path";
2308
2308
  import { spawn as spawn2, spawnSync as spawnSync2 } from "node:child_process";
2309
- import { accessSync as accessSync2, constants as constants5, mkdirSync, unlinkSync } from "node:fs";
2309
+ import { accessSync as accessSync2, constants as constants5, mkdirSync } from "node:fs";
2310
2310
  import { dirname as dirname4 } from "node:path";
2311
2311
  import { join as posixJoin2 } from "node:path/posix";
2312
2312
  import { spawn as spawn3, spawnSync as spawnSync3 } from "node:child_process";
@@ -23706,9 +23706,10 @@ var linuxAdapter = {
23706
23706
  throw new TrustError("trust.internal", reason, [reason]);
23707
23707
  },
23708
23708
  async caTrustRemover() {
23709
- try {
23710
- unlinkSync(DEBIAN_CERT);
23711
- } catch {
23709
+ if (caBackend() === "debian") {
23710
+ await sudoOrThrow(["rm", "-f", DEBIAN_CERT]);
23711
+ await sudoOrThrow(["update-ca-certificates"]);
23712
+ return;
23712
23713
  }
23713
23714
  if (!toolOnPath("update-ca-trust")) return;
23714
23715
  const present = P11_CERTS.filter((path2) => exists(path2));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rogatio/cli",
3
- "version": "6.21.1",
3
+ "version": "6.21.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Local-first browser request and response rules — editor host, file verification, test runner, and runtime dispatch.",