Spaces:
Running
Running
Commit History
Yesterday
-
Link the demo's trace to exact lines of code
Verified signature## What Exact-line links in the demo's trace, instead of whole files: - **Reply text:** "the reply's text is in knowledge/science.py, line 2,911" links to that line (the gravity answer; the same line the video shows). - **Winning module:** its name links to its own `respond()` in `bot/modules/<name>.py` (e.g. `answers.py#L8331-L8577`). - **File map:** clicking a highlighted file opens the reply's line, the winner's `respond()`, or the first function the winner ran in that file. The hover text says which. ## Why Lewis asked whether the demo could point at the code that ran, not just the file (option 1 of the three discussed on the board). ## How - `pybot_web.py`: the existing `sys.monitoring` trace now also records each function's line range. It unwraps the bot's decorators to find each handler's own `respond()`: 97 of 97 found. The reply-text match becomes a line number. - `build/build_bundle.py`: the bundle gains `lines.json` (letters/digits per line), +0.6 MB (22.2 MB). It's rename…7d80790
5 days ago
-
Turn PyBot into an in-browser web demo of the best bot (3185a7a, 26.55%)
Verified signaturePyodide runs SwarmChat-v8 commit 3185a7a9bc50 (the leaderboard's best) in a Web Worker; no server. Keeps the chat, trace and file treemap; drops the story text, progress chart, FastAPI server and old bot zip. Switches the Space to sdk: static.b56ec7a