mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-03 23:51:19 +08:00
Finishes the visualize overhaul (517c90bbackend +b499ba7frontend). - Book figure/interactive now share the chat path: deterministic local validate_visualization, one targeted repair on failure (figure), and GenerationFailure on residual invalidity so the book engine retries instead of baking a broken figure/placeholder into the book. - Delete the now-dead open-ended LLM review: pipeline.run_review and the review prompts (review_agent.yaml keeps only repair_system/ repair_user_template). ReviewAgent's process() IS the repair pass now (BaseAgent.process is abstract, so repair was renamed, not stubbed). - Prompts: drop the 'split into an overview plus a detail figure' wording that contradicted the single-<svg> policy; add a text vertical-centering rule (y = box center, host centers via CSS) and a visual_genre fallback line. en + zh kept in sync. - svg-theme.css: dominant-baseline: central on .dt-svg-root text — the host guarantees vertical centering so the model never has to emit (or misspell) dominant-baseline itself. - tests: replace the stale FakeReview/run_review fake with a valid-svg no-repair path in test_capabilities_runtime. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>