Files
DeepTutor/deeptutor/book/__init__.py
Bingxi Zhao (Frank) 2745e8bde9 feat(book): introduce book capability and restructure guide/co_writer modules
- Add new `deeptutor/book/` module with multi-agent pipeline
  (ideation, spine, page planner, source explorer, synthesizer)
  and rich block system (text, code, figure, quiz, flash cards,
  callout, deep dive, timeline, animation, concept graph, etc.)
- Add `/api/routers/book.py` and `deeptutor_cli/book.py` entry points
- Add web UI under `web/app/(workspace)/book/` with sidebar,
  chat panel, page reader, spine editor, progress timeline, and
  block renderers
- Move `deeptutor/agents/co_writer` -> `deeptutor/co_writer` and
  `deeptutor/agents/guide` -> `deeptutor/guide` (then remove guide
  entirely now superseded by book)
- Remove legacy guide UI, hooks, types, and API router
- Update visualize agents/prompts, notebook service, prompt manager,
  session turn runtime, and shared services to support new flows
- Refresh chat composer, sidebar, notebook selector, and locales

Made-with: Cursor
2026-04-20 00:33:33 +08:00

43 lines
812 B
Python

"""
Book Engine
===========
Independent runtime engine that compiles user inputs (chat history, notebooks,
knowledge bases, intent) into structured, block-based, interactive "living
books". Sits parallel to ``ChatOrchestrator`` and reuses the existing
``ToolRegistry`` / ``CapabilityRegistry`` / ``StreamBus`` plumbing.
"""
from .engine import BookEngine, get_book_engine
from .models import (
Block,
BlockStatus,
BlockType,
Book,
BookInputs,
BookProposal,
BookStatus,
Chapter,
Page,
PageStatus,
Progress,
Spine,
)
__all__ = [
"BookEngine",
"get_book_engine",
"Book",
"BookInputs",
"BookProposal",
"BookStatus",
"Spine",
"Chapter",
"Page",
"PageStatus",
"Block",
"BlockType",
"BlockStatus",
"Progress",
]