mirror of
https://github.com/MervinPraison/PraisonAIUI.git
synced 2026-11-07 05:56:17 -10:00
- create_replay_app(run=None): the Replay view as a small ASGI app (no dashboard)
to mount in any FastAPI/Starlette app; /?run=<id> pins one run (iframe-friendly).
With run(input, run_id) it shows a Run box: POST /api/replay/run (JSON only,
one run at a time) starts a run and the page follows it live.
- render(el, {base, run, runner, approve}) so the view works under a mount prefix.
- Map nodes show their state at the cursor: not reached / running / done / failed /
skipped, and "×N" counts real runs instead of events (a step that ran once
no longer reads "×2"). Scrubbing or Play rewinds the map with the cursor.
- ▶ Play steps through a run on its own.
- events?wait=1 answers a not-yet-started run without a 404.
- Node names stay whole (squeezed or clipped) so accessible names contain the
visible text (WCAG 2.5.3; axe flagged truncated tool names).
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>