Files
SeleiXi 53c08252d7 feat(video_lesson): add a Remotion lesson kit and build runtime
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>
2026-10-21 20:55:34 +08:00

0 lines
0 B
Python

The file is empty.