Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

docs: add v1.2.0 release notes and update README

Bingxi Zhao (Frank)3f90a0b07f70
diff --git a/README.md b/README.md
index e2cee48cd..db3e1e48c 100644
--- a/README.md
+++ b/README.md
@@ -26,6 +26,8 @@
### πŸ“¦ Releases
+> **[2026.4.20]** [v1.2.0](https://github.com/HKUDS/DeepTutor/releases/tag/v1.2.0) β€” Book Engine multi-agent "living book" compiler with 14 block types, multi-document Co-Writer workspace, interactive HTML visualizations, Question Bank @-mention in chat, prompt externalization phase 2, and sidebar overhaul.
+
> **[2026.4.18]** [v1.1.2](https://github.com/HKUDS/DeepTutor/releases/tag/v1.1.2) β€” Schema-driven Channels tab with secret masking, RAG collapsed to single pipeline, RAG/KB consistency hardening, externalized chat prompts, and Thai README.
> **[2026.4.17]** [v1.1.1](https://github.com/HKUDS/DeepTutor/releases/tag/v1.1.1) β€” Universal "Answer now" across all capabilities, Co-Writer scroll sync, Save-to-Notebook message selection, unified settings panel, streaming Stop button, and TutorBot atomic config writes.
@@ -425,17 +427,6 @@ deeptutor kb create my-kb --doc textbook.pdf # Build a knowledge base
> See [DeepTutor CLI](#%EF%B8%8F-deeptutor-cli--agent-native-interface) for the full feature guide and command reference.
-### What's Next?
-
-Once DeepTutor is running, here are some things to try first:
-
-1. **Upload a document** β€” Go to the Knowledge page and create a knowledge base from a PDF or Markdown file.
-2. **Start a conversation** β€” Open Chat, select your knowledge base, and ask a question.
-3. **Try Deep Solve** β€” Switch to Deep Solve mode for a step-by-step, multi-agent solution with citations.
-4. **Create a TutorBot** β€” Build a persistent AI tutor with its own personality and memory.
-
-Explore all features in the [Explore DeepTutor](#-explore-deeptutor) section below.
-
---
## πŸ“– Explore DeepTutor
diff --git a/assets/releases/ver1-2-0.md b/assets/releases/ver1-2-0.md
new file mode 100644
index 000000000..e682fe071
--- /dev/null
+++ b/assets/releases/ver1-2-0.md
@@ -0,0 +1,67 @@
+# DeepTutor v1.2.0 Release Notes
+
+**Release Date:** 2026.04.20
+
+## Highlights
+
+### Book Engine β€” Multi-Agent "Living Book" Compiler
+Introduced a brand-new **Book Engine** (`deeptutor/book/`) that compiles user inputs β€” chat history, notebooks, knowledge bases, and free-form intent β€” into structured, block-based, interactive "living books". The engine sits parallel to `ChatOrchestrator` and drives a five-stage multi-agent pipeline:
+
+1. **Ideation** β€” an LLM proposes a book outline from the user's intent and source material.
+2. **Source exploration** β€” a `SourceExplorer` agent performs deep RAG retrieval and knowledge-base health checks (`kb_health.py`) to surface the most relevant passages.
+3. **Spine synthesis** β€” a `SpineSynthesizer` agent merges the proposal with explored sources into a chapter/page tree (`Spine β†’ Chapter β†’ Page`).
+4. **Page planning** β€” a `PagePlanner` agent designs each page as an ordered sequence of typed blocks.
+5. **Block compilation** β€” a `BookCompiler` dispatches each block to its dedicated generator.
+
+14 block types ship in Phase 1: **text**, **callout**, **quiz**, **flash cards**, **code**, **figure**, **deep dive**, **animation**, **interactive**, **timeline**, **concept graph**, **section**, **user note**, and a **placeholder** for blocks still compiling. Each generator has its own bilingual (en/zh) YAML prompts and can call RAG helpers for grounded content.
+
+The web UI (`web/app/(workspace)/book/`) includes a **BookCreator** wizard (intent β†’ proposal β†’ spine confirmation), a **SpineEditor** for drag-and-drop chapter reordering, a **PageReader** with an outline nav rail and per-block renderers (concept graphs rendered as interactive force-directed diagrams, quizzes with inline grading, flash cards with flip animations, etc.), a **BookProgressTimeline** for real-time compilation tracking, a **BookChatPanel** for in-context Q&A, and a **BookHealthBanner** that warns when the underlying KB is unhealthy. A per-book WebSocket stream fans out compilation events to all connected clients.
+
+Backend: `POST /api/v1/book/create`, `POST /confirm-proposal`, `POST /confirm-spine`, `POST /compile-page`, `GET /list`, `GET /{book_id}`, `DELETE /{book_id}`, plus `WS /ws/{book_id}`. CLI: `deeptutor book create`, `deeptutor book list`, `deeptutor book show`, `deeptutor book delete`.
+
+### Legacy Guided Learning Removed
+The `deeptutor/agents/guide/` module (guide manager, 4 agents, 8 prompt YAMLs) and the entire `/guide` web UI (components, hooks, types, API router β€” ~5,300 lines) have been removed. The Book Engine supersedes Guided Learning with a richer, more extensible architecture.
+
+### Multi-Document Co-Writer Workspace
+Co-Writer is no longer a single-document scratchpad. Each document now gets its own persistent directory under `data/user/workspace/co-writer/documents/` with atomic manifest writes (`CoWriterStorage`). The web UI routes to per-document pages (`/co-writer/[docId]`) and the sidebar shows a **CoWriterRecent** section for quick access. New API endpoints handle full document CRUD (`GET /list`, `POST /create`, `GET /{doc_id}`, `PATCH /{doc_id}`, `DELETE /{doc_id}`).
+
+### Interactive HTML Visualizations
+The Visualize capability now supports a fourth render type β€” **`html`** β€” alongside `svg`, `chartjs`, and `mermaid`. When the LLM determines that the user request requires "user interaction + state changes + mixed text/graphics" (e.g. draggable demos, step-by-step walkthroughs, clickable practice exercises), it produces a self-contained single-file HTML page that renders inside an iframe. A local validation pass (`is_valid_html_document`) checks the output before serving; if the model returns something unrenderable, a styled fallback template is injected instead. The LLM review stage is skipped for HTML pages (saving 30–60s of latency with negligible quality loss). A new `figure` constraint mode restricts the LLM to svg/chartjs/mermaid only β€” used internally by the Book Engine's figure block.
+
+### Question Bank @-Mention in Chat
+A new `QuestionBankPicker` component lets users @-mention individual Question Bank entries directly in the chat composer. Selected entries are resolved by the turn runtime (`_build_question_bank_context`) into structured Markdown context β€” including question text, options, user/reference answers, and explanations β€” and injected alongside notebook and history references so the LLM can reason over specific past quiz performance.
+
+### Prompt Externalization β€” Phase 2
+Continued the migration of hard-coded LLM strings into editable YAML files:
+
+- **answer_now** β€” `question`, `research`, `solve`, and `visualize` capabilities now load their fast-path prompts from `prompts/{en,zh}/answer_now.yaml`.
+- **notebook agents** β€” `analysis_agent` and `summarize_agent` prompts moved to YAML; the Python modules now delegate to the prompt manager.
+- Capability modules (`_answer_now.py`, `deep_question.py`, `deep_research.py`, `deep_solve.py`, `visualize.py`) slimmed down accordingly.
+
+### Co-Writer Module Restructured
+Moved `deeptutor/agents/co_writer/` to `deeptutor/co_writer/` (top-level service module) to reflect its standalone nature alongside `deeptutor/book/`.
+
+### Sidebar Overhaul
+- "Guided Learning" nav entry replaced with **Book** (Library icon).
+- Added **BookRecent** and **CoWriterRecent** sidebar sections with per-item navigation.
+- Sidebar collapsed/expanded state lifted into `AppShellContext` so it persists across route transitions.
+- Collapsed sidebar refined: logo + expand toggle layered with hover reveal, circular "New Chat" button, subtle dividers, and consistent spacing.
+
+### Capability & Config Panel Refresh
+Updated shared type definitions and config panels across Quiz, Research, Visualize, and Math Animator to align with new capability options (e.g. `html` render mode, expanded locale keys). `TracePanels` in the chat UI received layout and styling improvements.
+
+### README & Localization Update
+All nine localized README files (AR, CN, ES, FR, HI, JA, PT, RU, TH) updated to reflect the Book Engine, multi-document Co-Writer, and other v1.2.0 features.
+
+### Bug Fixes
+- **Channel manager import-time crash** β€” `loguru.logger` was imported at module scope, causing `ImportError` when TutorBot dependencies were absent. Replaced with a lazy `_logger()` factory function.
+- **Obsolete `test_app_facade.py`** β€” removed a stale test module that referenced deleted code paths.
+- **Missing `__init__.py` in test packages** β€” added init files across `tests/agents/`, `tests/api/`, `tests/cli/`, `tests/knowledge/`, `tests/scripts/`, `tests/services/llm/`, `tests/services/memory/`, `tests/services/search/`, `tests/services/session/`, and `tests/tools/` to fix import resolution.
+
+### Test Suite & CI
+- CI now installs `requirements/tutorbot.txt` and caches it alongside server/cli requirements.
+- Removed the obsolete `test_app_facade` from the CI test manifest.
+- Updated `conftest.py` for RAG pipeline tests; refreshed prompt parity, capabilities runtime, LLM probe config, factory provider, model catalog, config loader, and notebook service tests to match restructured imports.
+- Added `favicon` and `apple-touch-icon` assets for PWA metadata.
+
+**Full Changelog**: https://github.com/HKUDS/DeepTutor/compare/v1.1.2...v1.2.0