omnigateway 0.5.0 → 0.6.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.
- package/README.md +23 -5
- package/bin/omni.js +9525 -8480
- package/gateway.js +21192 -19749
- package/package.json +1 -1
- package/public/assets/Chip-BWxO0uV7.js +32 -0
- package/public/assets/CopyValue-DIR5A6PG.js +27 -0
- package/public/assets/{Field-DTQ2LPzA.js → Field-DI5YTYOX.js} +1 -1
- package/public/assets/Lamp-DN2EKL4m.js +25 -0
- package/public/assets/Panel-BCpZVY4U.js +198 -0
- package/public/assets/Rack-B03tpeW-.js +466 -0
- package/public/assets/{Readout-DJR1qKja.js → Readout-B0TZE8aA.js} +1 -1
- package/public/assets/RequestTable-D4z82uxG.js +11 -0
- package/public/assets/SummaryDeck-CzozuXOu.js +15 -0
- package/public/assets/{Toggle-BQI8jz09.js → Toggle-ByxBCMfb.js} +1 -1
- package/public/assets/TokenBreakdown-BMEiZhRX.js +31 -0
- package/public/assets/WindowChart-nxC4SCRC.js +11 -0
- package/public/assets/_app-D9B6OIjd.js +1 -0
- package/public/assets/_app.accounts-BiRGhH3s.js +59 -0
- package/public/assets/{_app.console-bzKNP_8Y.js → _app.console-CZiI6B3b.js} +4 -4
- package/public/assets/_app.database-Y3lFDxoP.js +24 -0
- package/public/assets/_app.index-BZCUXxIF.js +62 -0
- package/public/assets/_app.keys-DRfXCzMJ.js +82 -0
- package/public/assets/_app.logs-BQT3kFZr.js +58 -0
- package/public/assets/_app.models-eOJ6ofIb.js +148 -0
- package/public/assets/_app.plugins._pluginId-CtEAGvad.js +2 -0
- package/public/assets/_app.plugins._pluginId-jaswB8Z5.js +20 -0
- package/public/assets/_app.settings-CG63splg.js +58 -0
- package/public/assets/_app.usage-BaT54Vee.js +76 -0
- package/public/assets/chevron-right-0adI8395.js +1 -0
- package/public/assets/client-Pvf9SEam.js +39 -0
- package/public/assets/index-Cn4_VeBU.js +13 -0
- package/public/assets/login-BSWCo_Fz.js +45 -0
- package/public/assets/login-C7v-Fr28.js +2 -0
- package/public/assets/plus-B_f8M9yB.js +1 -0
- package/public/assets/preload-helper-CD37DT-E.js +1 -0
- package/public/assets/reasons-Du1OBWAM.js +1 -0
- package/public/assets/shared-dShKzjig.js +77 -0
- package/public/assets/stream-BXI9HD3l.js +1 -0
- package/public/assets/{trash-2-DbutVvFY.js → trash-2-DrDlpCqO.js} +1 -1
- package/public/index.html +8 -4
- package/public/shared/dashboard-sdk.js +1 -1
- package/public/assets/Chip-BltJSw8A.js +0 -32
- package/public/assets/CopyValue-dQWAaTxf.js +0 -27
- package/public/assets/Match-C85GObiU.js +0 -1
- package/public/assets/Panel-CQVz9yeR.js +0 -25
- package/public/assets/Rack-V32CHmN6.js +0 -316
- package/public/assets/States-CauIsA0N.js +0 -54
- package/public/assets/TokenBreakdown-B2_gfuqt.js +0 -31
- package/public/assets/_app-DzzXdoyU.js +0 -1
- package/public/assets/_app.accounts-owsnxlbn.js +0 -64
- package/public/assets/_app.database-CsJbkedE.js +0 -24
- package/public/assets/_app.index-D4ydl2mY.js +0 -62
- package/public/assets/_app.keys-DKX0smty.js +0 -82
- package/public/assets/_app.logs-CFFsj2zR.js +0 -68
- package/public/assets/_app.models-B0ZxWGHV.js +0 -148
- package/public/assets/_app.plugins._pluginId-C5X4B1cE.js +0 -20
- package/public/assets/_app.settings-Yg_6az-L.js +0 -46
- package/public/assets/_app.usage-BRIz_GCn.js +0 -83
- package/public/assets/catalog-BBKm8Ih8.js +0 -1
- package/public/assets/index-DiCU8bLB.js +0 -178
- package/public/assets/login-B4LoiALI.js +0 -36
- package/public/assets/matchContext-BOenO3J2.js +0 -1
- package/public/assets/plus-xu9reaJp.js +0 -1
- package/public/assets/queries-DuSqKybM.js +0 -145
- package/public/assets/reasons-Cb8yF4Oy.js +0 -1
- package/public/assets/shared-DYkFSPbd.js +0 -84
- package/public/assets/stream-Dz5HjHBh.js +0 -1
package/README.md
CHANGED
|
@@ -27,6 +27,12 @@ omni start
|
|
|
27
27
|
- **Filters bulky tool history, optionally.** Built-in RTK filters shorten
|
|
28
28
|
eligible large or repetitive shell and recognizable command output before
|
|
29
29
|
provider dispatch, preserve errors and non-tool-result content, and default off.
|
|
30
|
+
- **Enforces a coding style, optionally.** With `ponytailMode` set, the gateway
|
|
31
|
+
appends the [ponytail](https://github.com/DietrichGebert/ponytail) ruleset —
|
|
32
|
+
build the smallest thing that works — to the system prompt of every request,
|
|
33
|
+
so any client gets it without installing anything. About 1,240 tokens, cached
|
|
34
|
+
with the prompt it joins; skipped when the client already carries it.
|
|
35
|
+
Defaults off.
|
|
30
36
|
- **Routes across your accounts.** Define a virtual model like `fast` or
|
|
31
37
|
`smart` with several targets; the gateway ranks them by tier, health,
|
|
32
38
|
remaining quota, cost, latency, and current load.
|
|
@@ -70,23 +76,28 @@ graph TD
|
|
|
70
76
|
store["@omni/store<br/><i>SQLite + field encryption</i>"]
|
|
71
77
|
providers["@omni/providers<br/><i>adapters, wire codecs,<br/>catalog, HTTP client</i>"]
|
|
72
78
|
rtk["@omni/rtk<br/><i>tool-result filters</i>"]
|
|
79
|
+
ponytail["@omni/ponytail<br/><i>vendored coding ruleset</i>"]
|
|
73
80
|
ratelimit["@omni/ratelimit<br/><i>key limit arithmetic;<br/>no clock, no state</i>"]
|
|
74
81
|
ir["@omni/ir<br/><i>domain model — depends on nothing</i>"]
|
|
75
82
|
|
|
76
83
|
gateway --> control
|
|
77
84
|
gateway --> rtk
|
|
85
|
+
gateway --> ponytail
|
|
78
86
|
gateway --> ratelimit
|
|
79
87
|
cli --> control
|
|
80
|
-
dashboard -. "types
|
|
88
|
+
dashboard -. "types only" .-> ir
|
|
81
89
|
dashboard -. "types only" .-> store
|
|
82
90
|
control --> router
|
|
91
|
+
control --> ponytail
|
|
83
92
|
control --> ratelimit
|
|
84
93
|
router -. "types + 2 pure helpers,<br/>via /types subpath" .-> store
|
|
85
94
|
router --> providers
|
|
86
95
|
store --> rtk
|
|
96
|
+
store --> ponytail
|
|
87
97
|
store --> ratelimit
|
|
88
98
|
providers --> ir
|
|
89
99
|
rtk --> ir
|
|
100
|
+
ponytail --> ir
|
|
90
101
|
store --> ir
|
|
91
102
|
```
|
|
92
103
|
|
|
@@ -103,9 +114,14 @@ even `@omni/ir`. The rings and the in-flight gauge live in the gateway, because
|
|
|
103
114
|
state is not the package's job, and that split is what lets sliding-window
|
|
104
115
|
arithmetic be tested without a gateway, a store, or a clock.
|
|
105
116
|
|
|
106
|
-
The dashboard's edges are dotted because they are type-level only.
|
|
107
|
-
`@omni/providers
|
|
108
|
-
|
|
117
|
+
The dashboard's edges are dotted because they are type-level only. It has no edge
|
|
118
|
+
to `@omni/providers` at all: provider names, colours, order and model lists reach
|
|
119
|
+
the console over `GET /api/catalog`, because a provider loaded from
|
|
120
|
+
`<root>/plugins/` exists only at runtime and no build-time import could see one.
|
|
121
|
+
|
|
122
|
+
`@omni/providers/catalog` and `/descriptors` are still deliberately import-free,
|
|
123
|
+
for a different reason than they used to be: the pure router imports
|
|
124
|
+
`descriptors`, and the leaf property is what lets it.
|
|
109
125
|
|
|
110
126
|
The router's dotted edge into `@omni/store` is nearly the same story: its
|
|
111
127
|
package-root imports are all `import type`. Two pure arithmetic helpers,
|
|
@@ -496,6 +512,7 @@ Everything else lives in the database rather than the environment, so it can be
|
|
|
496
512
|
changed without a restart: the six routing weights, `maxAttempts`,
|
|
497
513
|
`requestDeadlineMs`, the circuit breaker's `breakerThreshold` and
|
|
498
514
|
`breakerCooldownMs`, `logRetentionDays`, `quotaPollIntervalMs`, `rtkEnabled`,
|
|
515
|
+
`ponytailMode` (`off` | `lite` | `full` | `ultra`),
|
|
499
516
|
and the two body-capture switches. Edit them with `omni settings set` or in the
|
|
500
517
|
console. `quotaPollIntervalMs` is the one exception: the poller reads it once at
|
|
501
518
|
boot, so a change to it takes a restart. Snapshot retention —
|
|
@@ -685,7 +702,8 @@ Worth knowing before you deploy it:
|
|
|
685
702
|
|
|
686
703
|
## Plugins
|
|
687
704
|
|
|
688
|
-
A plugin adds routes, storage, and a screen in the console to one
|
|
705
|
+
A plugin adds routes, storage, a provider, and a screen in the console to one
|
|
706
|
+
installation,
|
|
689
707
|
without being part of OmniGateway. Most installations run none.
|
|
690
708
|
|
|
691
709
|
```bash
|