feat(admin): add live key+model fallback telemetry and RAM-buffered live request log watcher
- Add TelemetryTracker to record request fallback journeys, tracking step-by-step cascades across tiers, candidate error codes, cooldowns, and next actions - Add LiveWatcher for RAM-only interactive request inspection with 250-item FIFO safety cap and automatic memory flush on toggle off - Add REST and SSE streaming endpoints for real-time telemetry and live request logs - Upgrade Admin Telemetry tab with visual fallback breadcrumbs and live key health matrix - Add dedicated Live Logs tab with deep multi-tab inspector (Input, Output, Metadata, Debug), search, filters, and JSON export - Add unit and integration tests (test-live-watcher.ts, test-telemetry-fallback.ts)
This commit is contained in:
parent
0e83233715
commit
299c5f4c9e
11 changed files with 2603 additions and 71 deletions
|
|
@ -20,8 +20,8 @@ export const authenticateApiKey = (req: Request, res: Response, next: NextFuncti
|
|||
providedKey = (req.headers['x-api-key'] as string) || (req.headers['x-admin-key'] as string);
|
||||
}
|
||||
|
||||
if (!providedKey && req.query.api_key) {
|
||||
providedKey = req.query.api_key as string;
|
||||
if (!providedKey && (req.query.api_key || req.query.token || req.query.apiKey)) {
|
||||
providedKey = (req.query.api_key || req.query.token || req.query.apiKey) as string;
|
||||
}
|
||||
|
||||
if (!providedKey) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue