Commit Graph

2974 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
e38a1f63a1 fix(video-lesson): isolate rendering without requiring Docker 2026-10-27 03:43:53 +08:00
Bingxi Zhao
abdaac1976 Merge pull request #2013 from SeleiXi/feat/video-lesson
feat: animated video lessons rendered live with Remotion
2026-10-27 02:22:12 +08:00
Bingxi Zhao
4c6c5100a9 Merge pull request #2014 from SeleiXi/feat/edge-tts-provider
feat(voice): add Microsoft Edge as a TTS provider
2026-10-27 02:20:35 +08:00
Bingxi Zhao (Frank)
8bdc6202f1 Merge branch 'codex/pr2014-ready' into codex/pr2013-sandbox
# Conflicts:
#	deeptutor/api/router_index.json
2026-10-27 02:05:57 +08:00
Bingxi Zhao (Frank)
da9b3f0023 test(reading): distinguish navigator entries from breadcrumbs 2026-10-27 02:05:33 +08:00
Bingxi Zhao (Frank)
c4f6b4972e fix(web): keep reading history controls reachable and refresh audit fixtures 2026-10-27 02:04:21 +08:00
Bingxi Zhao (Frank)
be596676f7 fix: restore preview calendar and navigation workspace boundaries 2026-10-27 02:04:20 +08:00
Bingxi Zhao (Frank)
ca64668600 Merge branch 'codex/pr2014-ready' into codex/pr2013-sandbox 2026-10-27 01:57:05 +08:00
Bingxi Zhao (Frank)
07546030a8 ci(web): rebaseline measured preview route budgets 2026-10-27 01:56:47 +08:00
Bingxi Zhao (Frank)
c1bb41d38d Merge branch 'codex/pr2014-ready' into codex/pr2013-sandbox
# Conflicts:
#	web/locales/de/app.json
#	web/locales/pl/app.json
#	web/locales/uk/app.json
2026-10-27 01:52:43 +08:00
Bingxi Zhao (Frank)
bf024d85d1 fix(ci): refresh preview route and locale contracts 2026-10-27 01:52:06 +08:00
Bingxi Zhao (Frank)
9410ef3ca2 docs(video-lesson): clarify runtime prerequisites 2026-10-27 01:49:05 +08:00
Bingxi Zhao (Frank)
cb0c0f523d Merge branch 'codex/pr2014-ready' into codex/pr2013-sandbox 2026-10-27 01:46:42 +08:00
Bingxi Zhao (Frank)
9237139fb8 fix(video-lesson): isolate render checks and clean up cancelled processes 2026-10-27 01:46:42 +08:00
Bingxi Zhao (Frank)
9d822fcdf0 fix(ci): align preview fixtures and formatting with current contracts 2026-10-27 01:44:57 +08:00
Bingxi Zhao (Frank)
addb783d2f Merge preview and CI fixes into video lesson branch 2026-10-27 01:40:39 +08:00
Bingxi Zhao (Frank)
9470720a00 fix(ci): validate preview on supported Linux runners 2026-10-27 01:39:54 +08:00
Bingxi Zhao
79d3319c68 Merge branch 'preview' into feat/edge-tts-provider 2026-10-27 01:39:39 +08:00
Bingxi Zhao (Frank)
6bbcc00c55 Merge dev into preview, preserving preview features
Integrate dev fixes with preview's Python/TypeScript schedulers, chat queue, learning navigation, and live turn persistence.
2026-10-27 01:16:58 +08:00
Bingxi Zhao (Frank)
28c11e2ae8 feat: update notes, chat interactions and workspace UI on preview
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.
2026-10-26 22:13:34 +08:00
SeleiXi
26ac083be6 docs: list the video_lesson capability in AGENTS.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 23:58:03 +08:00
SeleiXi
26c3a39174 feat(video_lesson): voice lessons with edge-tts
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>
2026-10-21 23:58:03 +08:00
SeleiXi
40f50641a9 feat(video_lesson): add narrated scenes to the lesson kit
<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>
2026-10-21 23:58:03 +08:00
SeleiXi
78877ee2ba feat(web): play video lessons in chat
Adds "Video Lesson" to the capability picker. A video_lesson result is
shown as its player page in an iframe sandboxed to allow-scripts only,
with the summary underneath, a link to open it in a tab, the lesson's
length and the Remotion source behind a disclosure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 23:58:03 +08:00
SeleiXi
6b7897a32f feat(video_lesson): register the video lesson capability
`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>
2026-10-21 23:58:03 +08:00
SeleiXi
a39f1ace58 feat(web): show the Microsoft mark for the Edge speech provider
Every non-generic provider needs an icon (provider-branding.spec). The mark is
LobeHub's microsoft-color.svg, vendored like the other icons and recorded in
sources.json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 23:57:44 +08:00
SeleiXi
6e047d9054 feat(voice): add Microsoft Edge read-aloud as a free TTS provider
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>
2026-10-21 21:00:39 +08:00
SeleiXi
dfe4f285a8 feat(outputs): publish video lesson pages from a sandboxed origin
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>
2026-10-21 20:55:35 +08:00
SeleiXi
3182131158 feat(video_lesson): add the lesson writer agent
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>
2026-10-21 20:55:35 +08:00
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
Bingxi Zhao (Frank)
a31d82624c release: v1.6.15
Document Guided Learning improvements, chat and parsing recovery, retrieval comparisons, and native Gemini speech in assets/releases/ver1-6-15.md.

Synchronize README prose and 11 translations, archive older release notes, and bump the version. Resolve release-gate typing diagnostics, a prompt-only Bandit false positive, and SVG formatting.
v1.6.15
2026-10-19 04:12:56 +08:00
Bingxi Zhao (Frank)
0aa12fdfb6 fix(mastery): explain failed source repair in the session language (#1902) 2026-10-19 03:44:57 +08:00
Bingxi Zhao (Frank)
4fe1b5b24a fix(mastery): finish bounded memory and count preparation usage (#1920, #1926) 2026-10-19 03:44:51 +08:00
Bingxi Zhao (Frank)
c49d130d5c fix(mastery): stream localized lesson preparation progress (#1902) 2026-10-19 03:29:21 +08:00
Bingxi Zhao (Frank)
df7621d3ac fix(settings): preserve actionable apply and usage errors (#1984, #1907) 2026-10-19 03:29:21 +08:00
Bingxi Zhao (Frank)
54b2ee8e83 fix(web): keep indexing cancellation scoped to its run (#1972) 2026-10-19 03:29:21 +08:00
Bingxi Zhao (Frank)
c812cbffd5 test(parsing): verify MinerU process cleanup on Windows (#1903) 2026-10-19 03:29:21 +08:00
Bingxi Zhao (Frank)
e98e3d7558 fix(rag): isolate unreadable PDF evidence during KB indexing (#1982) 2026-10-19 03:29:21 +08:00
Bingxi Zhao (Frank)
e28c803636 fix(runtime): persist live prefixes and reclaim completed streams (#1971) 2026-10-19 03:29:21 +08:00
Bingxi Zhao (Frank)
8a228e40f7 fix(settings): serialize catalog migration reads with updates (#1984) 2026-10-19 02:57:26 +08:00
Bingxi Zhao (Frank)
e63bb09e6c fix(mastery): budget distinct pixels in grouped assessments (#1901) 2026-10-19 02:57:26 +08:00
Bingxi Zhao (Frank)
148bb1ec26 fix(mastery): refresh lesson intent and preserve source diagnostics (#1902) 2026-10-19 02:57:26 +08:00
Bingxi Zhao (Frank)
a509ec2362 fix(settings): explain denied catalog writes without losing drafts (#1984) 2026-10-19 02:10:06 +08:00
Bingxi Zhao (Frank)
35cea56187 fix(parsing): isolate native MinerU failures during KB indexing (#1982) 2026-10-19 02:10:06 +08:00
Bingxi Zhao (Frank)
c3b98baf34 fix(parsing): align MinerU deadlines and retain terminal errors (#1982) 2026-10-19 01:52:28 +08:00
Bingxi Zhao (Frank)
ce48fc2d4c fix(math-animator): stop truncation retries at the output ceiling (#1914) 2026-10-19 01:52:28 +08:00
Bingxi Zhao (Frank)
ab34b71d42 fix(auth): respect learner grants in learning navigation (#1987) 2026-10-19 01:52:23 +08:00
Bingxi Zhao (Frank)
784de5fa6d fix: align integrated mastery catalog and regression fixtures 2026-10-19 01:17:50 +08:00
Bingxi Zhao (Frank)
4b9b73a73f perf(chat): load specialized teaching and handoff cards only when present 2026-10-19 01:11:31 +08:00
Bingxi Zhao (Frank)
261206460f test(chat): align recovery integration checks with account-scoped causal retries 2026-10-19 01:07:32 +08:00