Remove course pages, APIs and the course_study capability. Add anchored note
threads and reviewed learning-block generation, queued and withdrawable chat
messages, quote attachments, side chats, and the calendar/favorites/navigation
updates.
Keep preview's existing backend architecture. Wire the new features through
its Python application and existing chat engine, retain legacy selected-text
requests, persist mid-turn messages in replay, and restore note context when
regenerating. Leave stored user data intact.
Validate frontend contracts, dependency boundaries, types, 1290 node tests,
840 rendered tests, lint, localization and the production build. Exercise
session/notes/API regressions, 53 chat-engine tests and 20 Python/native
integration tests with isolated runtime data.
The writer now returns a narration line per scene. The host speaks each one
with Edge's free read-aloud voices, times the captions from the sentence
boundaries, and inlines the audio into the lesson page. edge-tts is an optional
extra (video-lesson); without it, or when the service fails, the scene keeps
captions timed from an estimated speaking rate and plays silently.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
<Scenes> plays a lesson's scenes back to back and gives each one its voice-over
and captions from a per-lesson voice.ts. A scene stretches to fit its narration,
so the picture never cuts the voice short. The kit ships an empty voice.ts so
it still compiles on its own, and the player now shows a volume control.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`video_lesson` (CLI alias `lesson`) turns a question into a playable
Remotion explainer:
1. code_generation: the lesson writer drafts Lesson.tsx
2. render_check: compile and frame-check it, feeding failures back,
up to three attempts
3. render_output: write the player page and emit it as an html artifact,
along with the lesson's summary and source
npm packages are installed on first use while the first LLM call is
still running. The capability reports itself unavailable when node or
npm is missing. Its LLM budget lives under plugins.video_lesson in
agents.yaml (48k tokens by default: a whole lesson comes back in one
reply).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Edge's online voices need no account or API key, so they give read-aloud a
working default before anyone sets up a paid speech provider. The adapter
streams mp3 through the edge-tts package (a new optional extra), maps the
speed setting onto Edge's rate, and voice discovery lists Edge's public voices.
It is not an official API and may be rate limited; the settings note says so.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A video lesson's turn directory holds the model's source next to the
built page. Only artifacts/lesson.html is added to the public-output
allowlist; Lesson.tsx and anything else in the directory stay private.
The page runs model-written script, so it is served with
"Content-Security-Policy: sandbox allow-scripts allow-popups". It then
runs in an opaque origin even when opened in its own tab, without the
API's cookies or same-origin access.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One agent writes Lesson.tsx. Its system prompt covers the Remotion rules
a lesson needs (frame-driven animation, sequences, the 1920x1080 frame),
an art direction meant to keep lessons from looking machine-made
(textbook and documentary references, a list of tells to avoid,
captions in a teacher's voice), and the kit's source.
The conversation is kept across attempts, so a failed compile or frame
check goes back to the model with the errors and its previous reply.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Groundwork for a capability that answers with an animated explainer the
learner plays in the browser, rather than a server-rendered video.
kit.tsx is the component library lessons are written against: a paper
page, serif titles, captions, pen marks, plots (curves, point sequences,
cobwebs), an honest-scale timeline and a China map, all in DeepTutor's
palette. Style comes from the kit, so the model only arranges content.
build.mjs compiles Lesson.tsx with esbuild, renders 25 sample frames in
Node and bundles the composition into @remotion/player. Lessons may
import only react, remotion and ./kit, and the frame check runs under
Node's permission model (no file writes, child processes or workers).
Errors thrown during rendering are reported through renderToPipeableStream
so the model sees the real message.
runtime.py installs the pinned npm packages on first use, then wraps a
bundle into one self-contained page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>