Admin view in the web UI

This commit is contained in:
Ian Gulliver
2026-10-14 21:06:30 -07:00
parent b2bd894677
commit 4a2bbe0859
34 changed files with 838 additions and 214 deletions
+28 -3
View File
@@ -726,11 +726,18 @@ components:
Status:
type: object
required: [started_at, db_bytes, last_event_seq, projects, active_tasks, sse_clients, live_agents, running_turns, queued_turns, rate_limits]
required: [started_at, db_bytes, last_event_seq, projects, active_tasks, sse_clients, live_agents, running_turns, queued_turns, caps, rate_limits]
properties:
live_agents: { type: integer, description: Agent processes currently running. }
running_turns: { type: integer }
queued_turns: { type: integer }
running_turns:
type: array
description: Turns running now, oldest session first.
items: { $ref: "#/components/schemas/TurnRef" }
queued_turns:
type: array
description: Turns waiting for room under the caps, in the order they will start.
items: { $ref: "#/components/schemas/TurnRef" }
caps: { $ref: "#/components/schemas/Caps" }
rate_limits:
type: object
description: The latest rate-limit status each vendor reported, keyed by vendor.
@@ -741,3 +748,21 @@ components:
projects: { type: integer }
active_tasks: { type: integer }
sse_clients: { type: integer }
Caps:
type: object
required: [global, per_vendor]
properties:
global: { type: integer, description: Most turns running at once across all vendors. }
per_vendor:
type: object
description: Most turns running at once per vendor, keyed by vendor.
additionalProperties: { type: integer }
TurnRef:
type: object
required: [session_id, task_id, vendor]
properties:
session_id: { type: string }
task_id: { type: string }
vendor: { type: string }