Commit Graph

896 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 (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)
be596676f7 fix: restore preview calendar and navigation workspace boundaries 2026-10-27 02:04:20 +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
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
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
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
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.
2026-10-19 04:12:56 +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)
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)
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)
583bdfc714 Merge PR #1945: fence edited submissions and isolate recovery by account and backend support 2026-10-19 01:03:40 +08:00
Bingxi Zhao (Frank)
8b73efbaeb Merge PR #1958: stabilize cached prefixes with bounded sources and complete summary accounting 2026-10-19 00:59:30 +08:00
Bingxi Zhao (Frank)
1497994c9f Merge PR #1938: bound tutoring history and retain exact recall when condensation fails 2026-10-19 00:57:48 +08:00
Bingxi Zhao (Frank)
9aae961412 Merge PR #1957: separate private source evidence from explicit public presentation 2026-10-19 00:53:44 +08:00
Bingxi Zhao (Frank)
3196b6d792 Merge PR #1954: prepare source evidence through a generic capability prerequisite contract 2026-10-19 00:48:43 +08:00
Bingxi Zhao (Frank)
0fd8dc8384 Merge PR #1953: source-bound assessment with portable lexical page lookup 2026-10-19 00:43:33 +08:00
Bingxi Zhao (Frank)
59cdd81170 Merge PR #1943: preserve grouped questions through reviewed outline revisions 2026-10-19 00:40:44 +08:00
Bingxi Zhao
cb01db5260 Merge pull request #1937 from yepyhun/contrib/mineru-owned-process
fix(mineru): own CLI worker lifecycle and avoid pipe-related hangs
2026-10-19 00:32:37 +08:00
Bingxi Zhao (Frank)
0d6eb0a5fe fix(rag): preserve runtime settings when enabling query rewrite 2026-10-19 00:32:12 +08:00
Bingxi Zhao
9036bce614 Merge pull request #1917 from Hi-Kung/feature/rag-query-rewrite
feat(rag): add pluggable query rewrite layer for retrieval quality
2026-10-19 00:32:04 +08:00
Bingxi Zhao
5a3e644b94 Merge pull request #1840 from dajiaohuang/fix/memory-audit-line-identity
fix(memory): anchor audit edits to the original document view
2026-10-19 00:23:48 +08:00
Bingxi Zhao
f2f605523b Merge pull request #1897 from qirh/feat/perplexity-integration-header
feat(search): send X-Pplx-Integration header to Perplexity
2026-10-19 00:23:26 +08:00
Bingxi Zhao
6c693e7b8e Merge pull request #1850 from dajiaohuang/fix/evaluation-search-errors
fix(rag): report native retrieval errors in evaluation
2026-10-19 00:23:09 +08:00
Bingxi Zhao
bb71b53a4b Merge pull request #1842 from dajiaohuang/fix/subagent-stream-lines
fix(subagent): read oversized JSONL frames without truncation
2026-10-19 00:21:50 +08:00
Bingxi Zhao
c99378c389 Merge pull request #1828 from dajiaohuang/fix/codebuddy-authentication-errors
fix(llm): reload CodeBuddy credentials after SDK authentication errors
2026-10-19 00:21:35 +08:00
Bingxi Zhao
31e9080ae5 Merge pull request #1846 from dajiaohuang/fix/partner-turn-stop
fix(partners): cancel live web turns when stopping a partner
2026-10-19 00:21:08 +08:00
Bingxi Zhao
2c4a02f7cc Merge pull request #1830 from dajiaohuang/fix/turn-admission-lease
fix(session): release admission leases after preference failures
2026-10-19 00:20:58 +08:00
Bingxi Zhao
3de64fdd02 Merge pull request #1834 from dajiaohuang/fix/pocketbase-message-cursors
fix(session): preserve opaque PocketBase message cursors
2026-10-19 00:20:34 +08:00
Bingxi Zhao
338b2e02f8 Merge pull request #1836 from dajiaohuang/fix/skill-install-rollback
fix(skills): restore installed skills after replacement failure
2026-10-19 00:20:20 +08:00
Bingxi Zhao
f40c3dfca4 Merge pull request #1818 from dajiaohuang/fix/settings-lock-path
fix(settings): normalize Windows lock path aliases
2026-10-19 00:20:01 +08:00
Bingxi Zhao
06443db9bc Merge pull request #1822 from dajiaohuang/fix/cron-connection-lifetime
fix(storage): close short-lived SQLite connections deterministically
2026-10-19 00:19:44 +08:00
Bingxi Zhao
917d9c0078 Merge pull request #1848 from dajiaohuang/fix/custom-soul-preservation
fix(partners): preserve customized legacy persona text
2026-10-19 00:18:44 +08:00
Bingxi Zhao
455111efc0 Merge pull request #1824 from dajiaohuang/fix/catalog-read-errors
fix(config): preserve catalogs after filesystem read failures
2026-10-19 00:18:26 +08:00
Bingxi Zhao
ab45d2aa98 Merge pull request #1980 from rennf93/feat/fastapi-guard-security-middleware
feat(api): optional application-layer security with fastapi-guard (off by default)
2026-10-19 00:17:46 +08:00
Bingxi Zhao
bba68cc7a1 Merge pull request #1978 from mayuriphad/fix/responses-tool-strict
fix(llm): keep an explicit strict setting when converting tools for the Responses API
2026-10-19 00:15:12 +08:00
Bingxi Zhao
0fc78ab233 Merge pull request #1985 from 0xTidalBore/fix/doctor-online-resolved-config
fix(doctor): convert resolved LLM config before the online probe
2026-10-19 00:14:42 +08:00
Bingxi Zhao (Frank)
399297e7f0 feat: preserve TypeScript engine migration and workspace updates 2026-10-18 23:09:10 +08:00
Kung
e2a5f45046 Merge remote-tracking branch 'upstream/dev' into feature/rag-query-rewrite 2026-10-18 18:28:28 +08:00
0xtidalbore
6af53e2582 fix(doctor): convert resolved LLM config before the online probe
e3ae36f5 switched the probe to complete_with_config(config), which
expects an LLMConfig, but run_diagnostics' default resolver returns the
provider-runtime ResolvedLLMConfig. Every real `deeptutor doctor
--online` therefore failed with:

  'ResolvedLLMConfig' object has no attribute 'get_api_key'

The existing tests injected LLMConfig/SimpleNamespace resolvers, so
the default path was never exercised. Convert through
llm_config_from_resolved (the same helper chat selection uses) and add
a regression test that drives the default resolver.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 20:06:39 -04:00