Commit Graph

540 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
2c47cc22ce fix(integration): authenticate search and regenerate route contracts 2026-10-29 01:19:18 +08:00
Bingxi Zhao (Frank)
f50ab3afb0 Merge pull request #2050: inspect and clean generated files 2026-10-29 01:10:37 +08:00
Bingxi Zhao (Frank)
9269029699 Merge pull request #2086: server folder picker with all supported locales 2026-10-29 01:10:00 +08:00
Bingxi Zhao (Frank)
b89748200a Merge pull request #2109: Claude Agent SDK provider 2026-10-29 01:07:23 +08:00
Bingxi Zhao (Frank)
04daf46c5d fix(learning): preserve legacy review history and idempotent strategy bindings 2026-10-29 01:04:55 +08:00
Bingxi Zhao (Frank)
d09a4d3a4f Merge pull request #2028: configurable review strategies 2026-10-29 01:04:33 +08:00
Bingxi Zhao (Frank)
aabf8d3a99 Merge pull request #2099: Anki flashcard export 2026-10-29 01:02:52 +08:00
Bingxi Zhao (Frank)
4531e26993 fix(calendar): export UTC-derived transitions through the recurrence horizon 2026-10-29 01:02:35 +08:00
Bingxi Zhao (Frank)
f3710ce0ab Merge pull request #2098: calendar ICS export 2026-10-29 01:01:59 +08:00
Bingxi Zhao (Frank)
28ca8ed0b7 Merge pull request #2065 into validated PR integration 2026-10-29 00:56:12 +08:00
Bingxi Zhao (Frank)
8f60fa8339 Merge pull request #2121 into validated PR integration 2026-10-29 00:56:09 +08:00
Bingxi Zhao (Frank)
1ea7df1554 docs: consolidate developer and agent handbook 2026-10-29 00:36:18 +08:00
Frank-zhu2000
586a0d9430 fix: restage the confirmed theme after settings retry
A UI draft staged while GET /api/settings was failing omitted theme.
Retry showed the server theme in the form but Apply still saved that
draft, so localStorage and the document kept the old palette.

Rebuild the pending UI payload with the confirmed theme once the load
succeeds. Regenerate the router index, and correct the System preview
split and the French blurb.
2026-10-28 19:53:07 +08:00
Bingxi Zhao (Frank)
e99d632de5 fix: prepare modular installs and align dev documentation 2026-10-28 19:02:44 +08:00
Frank-zhu2000
9a04808c33 fix: follow the OS theme until the user picks one
The first visit stored the detected palette and never listened for
prefers-color-scheme changes, so the theme stopped tracking the OS and
Settings had no System choice.

Do not write that fallback. Subscribe while the preference is missing or
"system", and add a System option in Appearance. New accounts default to
system so Apply does not freeze the snow palette.
2026-10-28 16:31:49 +08:00
quocldce-sys
6cc31b197c feat: list Claude Code models with display names and sync them in settings
- `fetch_claude_code_catalog()` reads the account's model list from the
  Claude Code CLI handshake (`get_server_info`), so no model request is made,
  and returns display names such as "Opus 5.5" and "Fable 5.1". The
  `default` entry is labelled "Default (account setting)" because managed or
  user settings can pin a different model at run time. It falls back to the
  bare aliases when the CLI cannot start.
- `/api/settings/fetch-models` returns those names for `claude_code`.
- Settings UI: `codebuddy` and `claude_code` now share a CLI_LOGIN_BINDINGS
  set. Claude Code gets the same "Sync models" button, auto-sync on provider
  switch, and hidden base URL / API key fields, without the CodeBuddy login
  card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 15:28:08 +07:00
quocldce-sys
b16b187244 feat: add Claude Code provider backed by the Claude Agent SDK
Adds a `claude_code` LLM provider that runs turns through the local Claude
Code CLI via `claude-agent-sdk`, so DeepTutor can use the account signed in
with `claude /login` (including a Claude subscription) without an Anthropic
API key.

- One long-lived Claude Code process per DeepTutor session, mirroring the
  CodeBuddy SDK provider's owner-task pattern.
- Claude Code's built-in tools, settings, CLAUDE.md and hooks are disabled;
  DeepTutor tools are exposed through an in-process SDK MCP server and tool
  calls are returned to DeepTutor's dispatcher.
- Tool turns end via max_turns=1 and are drained instead of interrupted, so
  the transcript does not record an interrupted request.
- System messages become Claude's real system prompt.
- Optional extra: `pip install deeptutor[claude-code]`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 15:07:04 +07:00
Bingxi Zhao (Frank)
9ce7ba9059 fix 2026-10-28 12:28:20 +08:00
Matt Van Horn
d7fb17ebfb fix(calendar): refresh the router index and keep export off the shared client
The new export.ics route needs a regenerated lazy-routing fingerprint.
Move the .ics download helper out of the shared calendar transport so the
workspace reminder runtime does not add blob-saving code to every layout.
2026-10-27 22:08:36 +00:00
Matt Van Horn
7f061c5675 feat(notes): export flashcards for Anki
Add a tab-separated Anki import from a note page and from the review
queue so learners can File -> Import cards into a deck named after the
note. Re-importing uses stable card GUIDs and does not include review
scheduling.
2026-10-27 22:07:06 +00:00
Matt Van Horn
9ede0fb10e feat(calendar): export calendars as iCalendar files
Download one calendar or every visible calendar as an RFC 5545 .ics file,
including recurring series, occurrence exceptions, reminders, and a rail
action that fetches the file through the existing authenticated API.
2026-10-27 22:03:37 +00:00
0x-IHRR
7748e81a20 feat: manage generated chat output files 2026-10-28 02:44:07 +08:00
Bingxi Zhao (Frank)
9aadac3e3b merge: integrate current dev with modular installation 2026-10-28 01:23:48 +08:00
Bingxi Zhao (Frank)
fbab59acbf feat: modularize installation and enforce feature dependency boundaries 2026-10-28 01:02:29 +08:00
Bingxi Zhao (Frank)
6be031d6b6 fix: refresh lazy router index after review gate change 2026-10-27 21:49:17 +08:00
Bingxi Zhao (Frank)
ed13b6c045 Merge remote-tracking branch 'origin/dev' into HEAD 2026-10-27 21:41:01 +08:00
Bingxi Zhao (Frank)
e347c0c2e0 fix: preserve tutoring replies and stabilize preview runtime
Keep learner-facing explanations visible across finish checks, persistence, and replay. Remove mastery prose heuristics and prioritize learner objections.

Coordinate service shutdown and descendant cleanup, and preserve video lesson identity and playable results across chat completion and reload.
2026-10-27 17:58:46 +08:00
yh wang
98d2bddb92 feat(workspace): add a server-side folder picker for project workspaces 2026-10-27 12:32:45 +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)
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)
cb0c0f523d Merge branch 'codex/pr2014-ready' into codex/pr2013-sandbox 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)
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
Rudy Celekli
3119cf2c5d fix(api): strip control chars from Content-Disposition ASCII fallback
content_disposition neutralized quotes and backslashes in the ASCII
filename= fallback but left C0 control characters untouched. A filename
containing CR/LF produced a header value with a raw newline — a malformed
header / response-splitting shape that the ASGI server rejects (500). Strip
control chars like the sibling partners.helpers.safe_filename already does.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-26 10:40:14 -04: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
0x-IHRR
38cf3979d3 feat: add Math Animator output paths and render-file cleanup 2026-10-26 00:50:41 +08:00
XZH
aa7d54bd7b feat(learning): add mastery review strategies (#1908)
Mastery paths previously scheduled with one fixed interval template per knowledge type, which did not fit exam cramming, language drilling, science review, or learner-specific pacing.

Add four built-in strategy presets and custom per-round interval templates with validated persistence, CRUD, duplication, and path bindings. Bound paths keep a frozen strategy snapshot, replay durable evidence when switching, and mastery tools follow the bound path scheduler.

Expose strategy management in the mastery review trail, including custom interval editing and loading, empty, busy, invalid-input, and error states. Regenerate the OpenAPI contract and add focused backend and web regression coverage. Legacy paths without a binding continue to use the previous default scheduler.
2026-10-22 18:37:54 -07:00
dajiaohuang
3ce2937c82 fix: keep mastery review within the gate 2026-10-22 12:44:45 +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
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)
ab34b71d42 fix(auth): respect learner grants in learning navigation (#1987) 2026-10-19 01:52:23 +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
1aed52fd0d Merge pull request #1814 from dajiaohuang/fix/quiz-judge-attachments
fix(api): materialize saved quiz answer attachments
2026-10-19 00:22:53 +08:00
Bingxi Zhao
b82439042a Merge pull request #1812 from dajiaohuang/fix/co-writer-http-errors
fix(api): preserve Co-Writer model-selection HTTP errors
2026-10-19 00:22:28 +08:00
Bingxi Zhao (Frank)
399297e7f0 feat: preserve TypeScript engine migration and workspace updates 2026-10-18 23:09:10 +08:00
Bingxi Zhao (Frank)
857a82e74a feat(notes): add block notebooks with inline reviews and linked favorites
Add rich text and learning blocks, media uploads, page trees, and revisioned notebook storage. Present AI suggestions at their target blocks with durable accept and dismiss actions.

Unify saved outputs as Favorites with typed expandable blocks, stable source links, atomic batch insertion, nesting, dragging, and undo/redo.

Validation: 99 frontend tests and 99 backend tests pass in an isolated snapshot, along with TypeScript, scoped ESLint, dependency architecture, and locale parity checks.
2026-10-17 23:15:23 +08:00
Renn F
53fa3627d9 fix(api): disable the ssrf category and qualify guard behaviour notes
Browsers send the page URL as Referer, and guard-core 4.4.0 flags
localhost and LAN addresses in it as ssrf, which returned 400 for every
UI request. Pass every detection category except ssrf, with tests for
local-address Referers (200) and an attack pattern in a Referer (400).

Say that system.json gains the disabled security_guard block on the next
load instead of claiming nothing changes, document the IPv4-mapped peer
caveat of guard-core 4.4.0 with the mapped-form workaround, fix the
session handoff line citation, and drop the launch-flag test that
duplicates tests/runtime/test_uvicorn_launch_flags.py.

Add tests for the mapped-form workaround and for the access log
recording a guard rejection through the real application stack.
2026-10-16 17:21:34 +02:00