omnigateway 0.7.0 → 0.7.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 +15 -2
- package/bin/omni.js +6054 -5909
- package/gateway.js +5683 -5630
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -376,7 +376,7 @@ Use `--db <path>` to point one command somewhere else.
|
|
|
376
376
|
| `omni credentials …` | list, show, enable, disable, `set`, `rm`, refresh, `add-key`, health |
|
|
377
377
|
| `omni models …` | list, show, put, `rm`, `dry-run`, `catalog` |
|
|
378
378
|
| `omni keys …` | list, create, `limits`, revoke |
|
|
379
|
-
| `omni plugin …` | list, verify, install, remove; see [Plugins](#plugins) |
|
|
379
|
+
| `omni plugin …` | list, verify, install, update, remove; see [Plugins](#plugins) |
|
|
380
380
|
| `omni service install` / `uninstall` | write or remove a systemd unit for this installation |
|
|
381
381
|
| `omni setup claude` / `opencode` | point a client's config at this gateway |
|
|
382
382
|
| `omni settings get` / `set` | routing weights, retention, deadlines, and the runtime switches |
|
|
@@ -384,7 +384,7 @@ Use `--db <path>` to point one command somewhere else.
|
|
|
384
384
|
| `omni db migrate` | create or upgrade the database |
|
|
385
385
|
| `omni db stats` | size on disk, free pages, schema version, and what snapshots are held |
|
|
386
386
|
| `omni db backup` / `snapshots` | take a snapshot, and list the ones retention has kept |
|
|
387
|
-
| `omni db restore <id>` | put a snapshot back;
|
|
387
|
+
| `omni db restore <id>` | put a snapshot back; shows a live-vs-snapshot count table, then asks. `--dry-run` shows the table and stops |
|
|
388
388
|
| `omni db vacuum` | rewrite the database, reclaiming the pages deletion left free |
|
|
389
389
|
|
|
390
390
|
Two worth knowing:
|
|
@@ -616,6 +616,12 @@ request-log rows, 1.6 s at 2M, 6.5 s at 8M. A failure is logged rather than
|
|
|
616
616
|
raised — the database is live either way, and `omni doctor` reports a rollup
|
|
617
617
|
that disagrees with its rows.
|
|
618
618
|
|
|
619
|
+
Before it asks, `restore` prints one row per table with what the snapshot holds
|
|
620
|
+
against what is live, so the confirmation is informed rather than a judgement on
|
|
621
|
+
an id and an mtime. `--dry-run` prints the same table and exits without asking.
|
|
622
|
+
The counts cover the tables the integrity check reads, so they are a floor on
|
|
623
|
+
what a restore replaces rather than the whole of it.
|
|
624
|
+
|
|
619
625
|
**`omni db restore <id>` refuses while a gateway is running** against that
|
|
620
626
|
installation, and there is no override flag. A second process can open its own
|
|
621
627
|
handle but cannot quiesce the gateway's, and moving the file out from under a live
|
|
@@ -715,9 +721,16 @@ omni plugin install https://…/x.tgz # a tarball over https, never http
|
|
|
715
721
|
omni plugin install some-plugin@1.2.3 # a package name, through the npm registry
|
|
716
722
|
omni plugin verify some-plugin # every check the next boot will run
|
|
717
723
|
omni plugin list # what is installed, and whether it would load
|
|
724
|
+
omni plugin update some-plugin # reinstall from whatever it was installed from
|
|
718
725
|
omni restart # plugins load at boot, so this is required
|
|
719
726
|
```
|
|
720
727
|
|
|
728
|
+
`update` needs no spec: `install` records the one you typed in
|
|
729
|
+
`.omni-install.json` beside the plugin, so picking up a patch release is the
|
|
730
|
+
plugin's id and nothing else. A bare package name re-resolves to the current
|
|
731
|
+
release; `name@1.2.3` reinstalls that version exactly. A plugin copied in by
|
|
732
|
+
hand has no record and `update` says so rather than guessing.
|
|
733
|
+
|
|
721
734
|
**Nothing in the package is executed by any of these.** There is no dependency
|
|
722
735
|
resolution, no `node_modules`, and no lifecycle script — the installer fetches,
|
|
723
736
|
checks, and unpacks, and the plugin's own code is first imported at the next boot.
|