Commit Graph
372 Commits
Author SHA1 Message Date
lukaszraczylo 6bc144cc12 refactor(webui): migrate remaining shadcn components to perfect-design
Move AuthGate, ConfigWarningsBanner, ToastViewport, SnippetBlock,
PageLoadError, LabeledSelect and the helper forms to perfect-design
Button, Input, Card, Callout, NativeSelect and ToastItem. Number fields
use a small native input because the library input rewrites typed text.

Delete components/ui, the unused ModelChip, CompactNumber, AliasBadge and
lib/utils, and the shadcn config. Remove shadcn-vue, tw-animate-css,
class-variance-authority and clsx. Give FaIcon an optional title and drop
role from decorative icons. Refresh stale comments and the README.
2026-11-25 11:52:38 +00:00
lukaszraczylo e1f1a60d4d refactor(webui): remove shadcn-vue, chart.js and replaced components
Delete 89 files that no live entry imports, drop chart.js, vue-chartjs,
@tanstack/vue-table and the FontAwesome runtime, and replace the Vue
FontAwesome wrapper with a small SVG component.

Limit Tailwind source scanning to the perfect-design components the app
bundles. Add the bundle gate script and spec: gzip JS+CSS of dist/assets
must stay at or below 324300 bytes.
2026-11-25 11:52:38 +00:00
lukaszraczylo 945621a3c5 fix(webui): compact config viewer, clear unknown helper sel, harness port guard 2026-11-25 11:52:38 +00:00
lukaszraczylo 1f8bdd8777 feat(webui): config page 2026-11-25 11:52:38 +00:00
lukaszraczylo 32a6d0c51f fix(events): keep sub-100ms paced delays readable 2026-11-25 11:52:38 +00:00
lukaszraczylo dd11ada41f fix(webui): events dates, phone detail, model links, caller coverage
Events show the date for rows from earlier days, the message sits on a second line on phones, and consecutive identical events collapse into one row with a count. Unpriced events link to the model panel or a models search. The provider filter keeps one control type. The harness covers the target callers list and the mock gains a readitall caller fixture.
2026-11-25 11:52:38 +00:00
lukaszraczylo e0e5989326 fix(events): round paced delay in event message 2026-11-25 11:52:37 +00:00
lukaszraczylo 55f1e743fe feat(webui): targets and events pages 2026-11-25 11:52:37 +00:00
lukaszraczylo ec9df6a92d fix(webui): router fixture consistency and panel screenshots
Router escalation fixtures now scale tiers, reasons and outcomes with requests, and the shadow classifier differs from live. The harness captures each panel's full scroll height, runs checks on the expanded panel, and samples smartrouter/uni. RoutersPage no longer refetches on range change. The breaker State column sorts by severity.
2026-11-25 11:52:37 +00:00
lukaszraczylo b9ca05be66 feat(webui): routers page 2026-11-25 11:52:37 +00:00
lukaszraczylo 7b660363e7 fix(webui): sort users and breaker tables before paging 2026-11-25 11:52:37 +00:00
lukaszraczylo f7cf402564 fix(webui): models page sort, request totals, panel polish 2026-11-25 11:52:37 +00:00
lukaszraczylo 9dfc663b38 feat(admin): expose model vision capability in admin meta view 2026-11-25 11:52:37 +00:00
lukaszraczylo 0f6201da38 feat(webui): models page 2026-11-25 11:52:37 +00:00
lukaszraczylo 19950c40f6 fix(webui): users page filter, labels, panel fetches 2026-11-25 11:52:37 +00:00
lukaszraczylo a138b186b6 fix(admin): count prefixed model globs in consumer model access 2026-11-25 11:52:37 +00:00
lukaszraczylo abdc059ed3 feat(webui): users page 2026-11-25 11:52:36 +00:00
lukaszraczylo 713a8acb09 fix(webui): reliability degraded breakers, failure rates, TTFB coverage 2026-11-25 11:52:36 +00:00
lukaszraczylo 31a09f5064 feat(webui): reliability page 2026-11-25 11:52:36 +00:00
lukaszraczylo 0ac9f5fb10 fix(webui): usage CSV, detail flags, burn-down labels 2026-11-25 11:52:36 +00:00
lukaszraczylo ed57488980 feat(webui): usage and spend page 2026-11-25 11:52:36 +00:00
lukaszraczylo bbb397cd75 fix(webui): compact overview events and request-ranked top lists 2026-11-25 11:52:36 +00:00
lukaszraczylo d2334d879b feat(webui): overview page 2026-11-25 11:52:36 +00:00
lukaszraczylo 6c151d3515 fix(webui): make visual harness checks meaningful 2026-11-25 11:52:36 +00:00
lukaszraczylo 0ef0894140 test(webui): visual harness and Workbench table widgets 2026-11-25 11:52:36 +00:00
lukaszraczylo 5177b2209c feat(webui): perfect-design app shell, command palette and theme boot 2026-11-25 11:52:35 +00:00
lukaszraczylo c6da612215 feat(admin): live tokens-per-minute usage per scope 2026-11-25 11:52:35 +00:00
lukaszraczylo af3628d13d fix(webui): mock live token meters and consistent huge scenario
Add tokensPerMinute to the live and limits-hot scenarios. Make the huge scenario agree across overview, catalog, performance and usage endpoints. Derive hot users from the friends group.
2026-11-25 11:52:35 +00:00
lukaszraczylo 853a66dcb7 feat(webui): mock admin API with scenarios for local development
Serve captured fixtures from the Vite dev server under MOCK=1. Synthesise missing ranges from the nearest fixture and select failure scenarios with ?mock=.
2026-11-25 11:52:35 +00:00
lukaszraczylo 0bf4e4015c test(webui): keep per-range admin fixtures 2026-11-25 11:52:35 +00:00
lukaszraczylo 4d77623f5d test(webui): anonymised admin API fixtures with leak scan 2026-11-25 11:52:35 +00:00
lukaszraczyloandGitHub 4c61d19a72 feat(router): smart routers and per-member rate limits (#9)
Add smart routers: virtual models that score each request and route it to admin-defined model tiers. A retryable failure moves the request to a higher tier. The classifier v2 extracts prose, finds the original ask in long tool loops, adds an uncertainty margin and reads tool-output failures. Sessions, outcome signals, bounded calibration, adaptive selection within a tier, gated saturation downgrade, a first-byte timeout and an opt-in timeout fallback are included. Every new feature is off by default.

Add per-member group limits, a tokensPerMinute window that counts uncached input and output, rate-limit headers in three dialects, soft pacing before the hard limit, and a limitExemptKinds list so embedding and reranking traffic never counts toward or hits a limit.

Fix yaegi named-result state that made smartContentSize grow between calls.
2026-11-25 00:40:30 +00:00
lukaszraczylo 6fb048b599 fix(admin): show kinds and endpoints in the providers panel
The provider accordion reads the overview response, not the catalog, so
the earlier change never reached it. Add kinds and endpoints to the
overview provider view and group the accordion rows by kind. Endpoint ids
now read gx10/v1/decide, without a doubled slash.
2026-11-10 12:38:33 +00:00
lukaszraczylo 085292143c feat(admin): group catalog models by kind
Add a display-only kinds map to the provider config. Each pathBaseUrls key
now appears in the admin catalog as an endpoint row. The Models page splits
a provider into one sub-section per kind.
2026-11-10 12:24:34 +00:00
lukaszraczyloandGitHub a4fda5f9cb feat(provider): per-model and per-path upstreams (#8)
Add modelBaseUrls and pathBaseUrls to openai-type providers.
2026-11-08 07:26:14 +00:00
lukaszraczylo aa9a925d49 fix(admin-ui): distinct percent ticks and a type-clean build
The error-rate axis rounded half-percent ticks up, so labels repeated (4%, 4%, 3%, 3%). Ticks now show one decimal where needed. The CSS layer test imported node:fs, which broke npm run build under vue-tsc, so it is removed.
2026-11-08 02:38:50 +00:00
lukaszraczylo 3e1750ddb9 fix(admin-ui): cap user detail cache, gate breakdown on ranking, restore single chevron
The per-user detail cache grew without limit and now keeps the 20 most recently fetched users. Spend refresh built the breakdown from a stale ranking after the ranking failed or was superseded, and now skips that step. The FontAwesome stylesheet overrode Tailwind hidden and showed two accordion chevrons, so it now loads in a low cascade layer.
2026-11-08 02:35:06 +00:00
lukaszraczylo 8c5e4fbcda fix(admin-ui): clear data on key change and show empty Spend chart
A new API key kept the previous key's data on screen until each store refreshed. All data stores now reset when the key changes. The Spend breakdown chart showed a column of identical zero ticks for an empty range, so it now shows an empty message. A stray quote in the Reliability page markup is removed.
2026-11-08 02:32:09 +00:00
lukaszraczylo 0a05dfc035 fix(admin-ui): keep sign and precision in CSV, YAML and context labels
CSV export prefixed negative numbers with an apostrophe, which corrupted the data. YAML emitted NaN and Infinity as plain strings. Context windows such as 1500 read as 2k. Numbers now skip the CSV formula guard, non-finite values use YAML float forms, and counts below 10k keep one decimal.
2026-11-08 02:29:28 +00:00
lukaszraczylo e985fded45 feat(admin-ui): hide runaway budget line and link form errors to inputs
The burn-down chart drew the budget line even when it was more than ten times the spend, which flattened the spend curve. The line now hides with a note. Limits, pricing, model metadata and grant forms mark invalid inputs with aria-invalid and aria-describedby.
2026-11-08 02:28:27 +00:00
lukaszraczylo 1ec8aacee7 feat(admin-ui): fit the Models catalog table without horizontal scroll
The table had 11 columns and scrolled at 1280px, hiding p50, p95 and error rate. It now shows compact price, one token column and a short error header. Context window stays in the model chip hover, and the :free flag moves into the price cell.
2026-11-08 02:27:10 +00:00
lukaszraczylo 429edb873d fix(admin-ui): ship FontAwesome CSS in bundle to satisfy style-src 'self'
FontAwesome injected a style element at runtime. The admin CSP blocks that and logged a console error on every load. The UI now imports the stylesheet and disables auto injection.
2026-11-08 02:24:47 +00:00
lukaszraczylo 758d7c7020 feat(admin-ui): alias labels, active-provider legends, denser tables and readable money
Label configured model aliases with an alias badge wherever a model id shows.
List only providers with traffic in the window in provider chart legends.
Page long tables, show a scroll shadow on wide ones and drop the duplicate model link.
Show costs with thousands separators and magnitude-scaled decimals on cards and chart axes.
Use whole-number ticks for count charts and replace all-zero charts with a message.
Back off polling after failures.
Keep the CSV status region from widening the page on phones.
Regenerate admin_assets_gen.go.
2026-11-08 02:22:22 +00:00
lukaszraczylo 05a7c114f5 fix(admin-ui): page-level loading, stale and form fixes
Fetch the consumers list on the user detail page so admin and grant data show on a deep link.
Gate Recent errors, the Spend total and the forecast card on load state instead of showing zeros.
Show a stale notice on top lists when a refresh fails.
Clear the target name when the target kind changes.
Ignore out-of-order config responses.
Wrap long group names and event messages, and announce projected budget overruns to screen readers.
Regenerate admin_assets_gen.go.
2026-11-08 02:04:23 +00:00
lukaszraczylo fcfb298077 fix(admin-ui): stale-data notice, request timeout and dedupe, hash and format edge cases
Show a persistent notice when a refresh fails while old data is on screen.
Add retry to the Targets and Access Matrix error states.
Give tables names, skeletons a status role and CSV export a live region.
Abort admin requests after 15 seconds and share concurrent identical GETs.
Show a reload prompt when a lazy page chunk fails to load.
Ignore prototype keys in the location hash.
Stop formatContextWindow emitting 1000k, round latency before the 1s cutoff,
and treat NaN as not enough data in the month projection.
Regenerate admin_assets_gen.go.
2026-11-08 01:59:34 +00:00
lukaszraczylo 5f5efa5a8d docs: state the concurrent budget overshoot bound
The README claimed an at-most-one-request overshoot. Requests in flight
together all pass the pre-check, so the bound is concurrency times the
largest request cost.
2026-11-03 01:05:27 +00:00
lukaszraczylo d9ec84ebc0 fix(retry): stop the backoff timer when the wait ends early
time.After keeps its timer alive until it fires on go 1.22 semantics,
so each cancelled retry wait pinned a timer for up to 2s. A stoppable
timer releases it at once.
2026-11-03 00:51:15 +00:00
lukaszraczylo a96ecb2dc9 test(admin): guard that every Config string key is redaction-classified
A secret field added under a new JSON key would pass through the config
endpoint unredacted because the redactor matches keys by name. The test
fails until each string key is redacted or declared non-secret.
2026-11-03 00:29:20 +00:00
lukaszraczylo 8998d70654 fix(translate): cap the gemini image count at 10
A client could send a huge n and the translator forwarded it as the Imagen sampleCount. The translator now refuses n above 10 with a request error.
2026-11-03 00:27:13 +00:00
lukaszraczylo 138ced884e fix(translate): saturate out-of-range integer fields
Go leaves a float to int64 conversion implementation-defined when the value is out of range, so a huge max_tokens could become a negative number on some architectures. The conversion now saturates to the int64 range and refuses NaN.
2026-11-03 00:27:11 +00:00