Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

Merge pull request #1081 from evan188199-tech/codex/assessment-history

Bingxi Zhao (Frank)542204d2dfb1
diff --cc deeptutor/api/routers/book.py
index 6277b69ad,170761fd1..6f8ec1ef8
--- a/deeptutor/api/routers/book.py
+++ b/deeptutor/api/routers/book.py
@@@ -960,6 -988,46 +988,56 @@@ async def quiz_attempt(req: QuizAttempt
},
)
resolved.learning.save_progress(progress)
+ if req.is_correct is not None and resolved_question is not None and book is not None:
+ question_id, question = resolved_question
+ try:
+ from deeptutor.services.session import get_sqlite_session_store
+
+ store = get_sqlite_session_store()
- session_id = f"book_{req.book_id}"
- if await store.get_session(session_id) is None:
- await store.create_session(
- session_id=session_id, title=book.title or "Immersive Reading"
++ metadata = book.metadata if isinstance(book.metadata, dict) else {}
++ page_sessions = metadata.get("page_chat_sessions")
++ session_id = str(
++ (page_sessions.get(req.page_id) if isinstance(page_sessions, dict) else "")
++ or book.chat_session_id
++ or ""
++ ).strip()
++ # Notebook entries belong to real conversations. Creating a hidden
++ # ``book_<id>`` chat solely to satisfy the FK polluted history and
++ # made a Book Focus Check look like Immersive Reading. If the page
++ # has no conversation yet, progress still persists and the optional
++ # review sync waits for a later attempt after chat exists.
++ if session_id and await store.get_session(session_id) is not None:
++ await store.upsert_notebook_entries(
++ session_id,
++ [
++ {
++ "turn_id": req.block_id,
++ "question_id": question_id,
++ "question": str(
++ question.get("question") or block.title or "Focus check"
++ ),
++ "question_type": str(question.get("question_type") or ""),
++ "options": question.get("options") or {},
++ "correct_answer": str(question.get("correct_answer") or ""),
++ "explanation": str(question.get("explanation") or ""),
++ "difficulty": str(question.get("difficulty") or ""),
++ "user_answer": req.user_answer,
++ "is_correct": bool(req.is_correct),
++ "source": "book",
++ "material_id": req.book_id,
++ "material_title": book.title,
++ "section_id": req.page_id,
++ "section_title": page.title if page is not None else "",
++ }
++ ],
+ )
- await store.upsert_notebook_entries(
- session_id,
- [
- {
- "turn_id": req.block_id,
- "question_id": question_id,
- "question": str(question.get("question") or block.title or "Focus check"),
- "question_type": str(question.get("question_type") or ""),
- "options": question.get("options") or {},
- "correct_answer": str(question.get("correct_answer") or ""),
- "explanation": str(question.get("explanation") or ""),
- "difficulty": str(question.get("difficulty") or ""),
- "user_answer": req.user_answer,
- "is_correct": bool(req.is_correct),
- "source": "immersive_reading",
- "material_id": req.book_id,
- "material_title": book.title,
- "section_id": req.page_id,
- "section_title": page.title if page is not None else "",
- }
- ],
- )
+ except Exception:
+ logger.warning(
+ "Failed to sync Focus-Check %s to question bank for book %s",
+ req.question_id,
+ req.book_id,
+ exc_info=True,
+ )
return {"progress": progress.model_dump(mode="json")}
diff --cc deeptutor/api/routers/question_notebook.py
index 7c49b1774,ec0819983..7751ba324
--- a/deeptutor/api/routers/question_notebook.py
+++ b/deeptutor/api/routers/question_notebook.py
@@@ -6,7 -6,7 +6,7 @@@ from __future__ import annotation
import base64 as _b64
import logging
- from typing import Any
-from typing import Literal
++from typing import Any, Literal
import uuid as _uuid
from fastapi import APIRouter, HTTPException, Query, Response
@@@ -18,6 -18,8 +18,8 @@@ from deeptutor.services.storage import
logger = logging.getLogger(__name__)
router = APIRouter()
-AssessmentSource = Literal["deep_question", "mastery_path", "immersive_reading"]
++AssessmentSource = Literal["deep_question", "mastery_path", "immersive_reading", "book"]
+ ScoreTrend = Literal["new", "improved", "declined", "unchanged"]
# ── Models ────────────────────────────────────────────────────────
@@@ -258,7 -256,11 +282,14 @@@ async def list_entries
),
bookmarked: bool | None = Query(default=None),
is_correct: bool | None = Query(default=None),
- source: str = Query(default="", pattern="^(deep_question|mastery_path|immersive_reading)?$"),
+ course_id: str = Query(default=""),
++ source: str = Query(
++ default="", pattern="^(deep_question|mastery_path|immersive_reading|book)?$"
++ ),
+ material_id: str = Query(default="", max_length=500),
+ section_id: str = Query(default="", max_length=500),
+ resolved: bool | None = Query(default=None),
+ score_trend: str = Query(default="", pattern="^(new|improved|declined|unchanged)?$"),
search: str = Query(default="", max_length=200),
sort: str = Query(default="recent", pattern="^(recent|oldest)$"),
limit: int = Query(default=50, ge=1, le=200),
@@@ -271,7 -272,11 +302,12 @@@
uncategorized=uncategorized,
bookmarked=bookmarked,
is_correct=is_correct,
+ session_ids=session_ids,
+ source=source,
+ material_id=material_id,
+ section_id=section_id,
+ resolved=resolved,
+ score_trend=score_trend,
search=search,
sort=sort,
limit=limit,
@@@ -376,19 -381,19 +412,32 @@@ async def remove_entry_from_category(en
@router.get("/stats", response_model=QuestionBankStats)
-async def question_bank_stats() -> QuestionBankStats:
- """Counts behind the filter chips; also the agent's one-call overview."""
+async def question_bank_stats(
+ course_id: str = Query(default=""),
+) -> QuestionBankStats:
+ """Counts behind the filter chips; also the agent's one-call overview.
+
+ Takes the same course scope as the listing: showing one course's questions
+ next to whole-library counts would make the rail lie about how much is there.
+ """
store = get_sqlite_session_store()
- return QuestionBankStats(**await store.question_bank_stats())
+ session_ids = await _course_session_ids(store, course_id)
+ return QuestionBankStats(**await store.question_bank_stats(session_ids))
+ @router.get("/materials", response_model=list[QuestionBankMaterial])
-async def list_question_bank_materials() -> list[QuestionBankMaterial]:
++async def list_question_bank_materials(
++ course_id: str = Query(default=""),
++) -> list[QuestionBankMaterial]:
+ """Materials represented in the unified review history."""
+ store = get_sqlite_session_store()
- return [QuestionBankMaterial(**item) for item in await store.list_question_bank_materials()]
++ session_ids = await _course_session_ids(store, course_id)
++ return [
++ QuestionBankMaterial(**item)
++ for item in await store.list_question_bank_materials(session_ids)
++ ]
+
+
# ── Category CRUD ────────────────────────────────────────────────
diff --cc deeptutor/services/session/sqlite_store.py
index f0016c9df,68f3e5898..51fe68905
--- a/deeptutor/services/session/sqlite_store.py
+++ b/deeptutor/services/session/sqlite_store.py
@@@ -60,6 -59,8 +60,8 @@@ def _json_loads(value: str | None, defa
# this id prefix as their discriminator (see ``SQLiteSessionStore._WHERE_*``).
_IMPORTED_ID_PREFIX = "imported_"
_ID_SAFE = re.compile(r"[^A-Za-z0-9_-]")
-ASSESSMENT_SOURCES = frozenset({"deep_question", "mastery_path", "immersive_reading"})
++ASSESSMENT_SOURCES = frozenset({"deep_question", "mastery_path", "immersive_reading", "book"})
+ SCORE_TRENDS = frozenset({"new", "improved", "declined", "unchanged"})
def make_imported_session_id(source: str, external_id: str) -> str:
@@@ -119,9 -120,13 +121,14 @@@ class QuestionBankQuery
uncategorized: bool = False
bookmarked: bool | None = None
is_correct: bool | None = None
+ source: str = ""
+ material_id: str = ""
+ section_id: str = ""
+ resolved: bool | None = None
+ score_trend: str = ""
search: str = ""
session_id: str | None = None
+ session_ids: Sequence[str] | None = None
sort: str = "recent"
limit: int = 50
offset: int = 0
@@@ -133,9 -138,17 +140,18 @@@
uncategorized=self.uncategorized and self.category_id is None,
bookmarked=self.bookmarked,
is_correct=self.is_correct,
+ source=(self.source or "").strip()
+ if (self.source or "").strip() in ASSESSMENT_SOURCES
+ else "",
+ material_id=(self.material_id or "").strip(),
+ section_id=(self.section_id or "").strip(),
+ resolved=self.resolved,
+ score_trend=(self.score_trend or "").strip()
+ if (self.score_trend or "").strip() in SCORE_TRENDS
+ else "",
search=(self.search or "").strip()[:200],
session_id=self.session_id,
+ session_ids=None if self.session_ids is None else tuple(self.session_ids),
sort="oldest" if self.sort == "oldest" else "recent",
limit=max(1, min(int(self.limit), 500)),
offset=max(0, int(self.offset)),
@@@ -1835,7 -1929,11 +1976,12 @@@ class SQLiteSessionStore
offset: int = 0,
*,
session_id: str | None = None,
+ session_ids: Sequence[str] | None = None,
+ source: str = "",
+ material_id: str = "",
+ section_id: str = "",
+ resolved: bool | None = None,
+ score_trend: str = "",
search: str = "",
uncategorized: bool = False,
sort: str = "recent",
@@@ -1848,9 -1946,13 +1994,14 @@@
uncategorized=uncategorized,
bookmarked=bookmarked,
is_correct=is_correct,
+ source=source,
+ material_id=material_id,
+ section_id=section_id,
+ resolved=resolved,
+ score_trend=score_trend,
search=search,
session_id=session_id,
+ session_ids=session_ids,
sort=sort,
limit=limit,
offset=offset,
@@@ -1882,12 -1975,16 +2034,18 @@@
) THEN 1 ELSE 0 END
), 0) AS uncategorized
FROM notebook_entries
- """
+ {where}
+ """, # noqa: S608 # nosec B608 - placeholders only; every value stays bound
+ params,
).fetchone()
if row is None:
- return {"total": 0, "wrong": 0, "bookmarked": 0, "uncategorized": 0}
+ return {
+ "total": 0,
+ "wrong": 0,
+ "unresolved": 0,
+ "bookmarked": 0,
+ "uncategorized": 0,
+ }
return {
"total": int(row["total"]),
"wrong": int(row["wrong"]),
@@@ -1909,16 -2007,32 +2068,54 @@@
except Exception:
return False
- async def question_bank_stats(self) -> dict[str, int]:
+ async def question_bank_stats(
+ self,
+ session_ids: Sequence[str] | None = None,
+ ) -> dict[str, int]:
"""Counts behind the bank's filter chips (and the agent's overview)."""
- return await self._run(self._question_bank_stats_sync)
+ return await self._run(
+ self._question_bank_stats_sync,
+ None if session_ids is None else tuple(session_ids),
+ )
- def _list_question_bank_materials_sync(self) -> list[dict[str, Any]]:
++ def _list_question_bank_materials_sync(
++ self,
++ session_ids: Sequence[str] | None = None,
++ ) -> list[dict[str, Any]]:
++ where = "material_id != ''"
++ params: list[str] = []
++ if session_ids is not None:
++ placeholders = ",".join("?" for _ in session_ids) or "NULL"
++ where += f" AND session_id IN ({placeholders})"
++ params.extend(session_ids)
+ with self._connect() as conn:
+ rows = conn.execute(
- """
++ f"""
+ SELECT
+ source,
+ material_id,
+ COALESCE(NULLIF(MAX(material_title), ''), material_id, 'Unnamed material') AS material_title,
+ COUNT(*) AS entry_count,
+ COALESCE(SUM(CASE WHEN is_correct = 0 AND resolved = 0 THEN 1 ELSE 0 END), 0) AS unresolved_count
+ FROM notebook_entries
- WHERE material_id != ''
++ WHERE {where}
+ GROUP BY source, material_id
+ ORDER BY material_title COLLATE NOCASE
- """
++ """, # nosec B608 - only placeholder shape is interpolated
++ params,
+ ).fetchall()
+ return [dict(row) for row in rows]
+
- async def list_question_bank_materials(self) -> list[dict[str, Any]]:
++ async def list_question_bank_materials(
++ self,
++ session_ids: Sequence[str] | None = None,
++ ) -> list[dict[str, Any]]:
+ """Distinct materials for review filters, with wrong-review counts."""
- return await self._run(self._list_question_bank_materials_sync)
++ return await self._run(
++ self._list_question_bank_materials_sync,
++ None if session_ids is None else tuple(session_ids),
++ )
+
def _get_notebook_entry_sync(self, entry_id: int) -> dict[str, Any] | None:
with self._connect() as conn:
row = conn.execute(
diff --cc tests/api/test_book_quiz_attempt_notebook.py
index 000000000,31d7ff8fe..159afae6b
mode 000000,100644..100644
--- a/tests/api/test_book_quiz_attempt_notebook.py
+++ b/tests/api/test_book_quiz_attempt_notebook.py
@@@ -1,0 -1,92 +1,125 @@@
+ from __future__ import annotations
+
+ import asyncio
+ from types import SimpleNamespace
+
+ from fastapi import FastAPI
+ from starlette.testclient import TestClient
+
+ from deeptutor.api.routers import book as book_router
+ from deeptutor.book.models import Progress
+ import deeptutor.services.session as session_package
+ from deeptutor.services.session.sqlite_store import SQLiteSessionStore
+
+
+ class _FakeLearningStore:
+ def __init__(self) -> None:
+ self.saved: list[Progress] = []
+
+ def load_progress(self, book_id: str) -> Progress:
+ return Progress(book_id=book_id)
+
+ def save_progress(self, progress: Progress) -> None:
+ self.saved.append(progress)
+
+
+ class _FakeResolvedBook:
+ def __init__(self) -> None:
+ question = {
+ "question_id": "q1",
+ "question": "Which chapter?",
+ "question_type": "choice",
+ "options": {"A": "One", "B": "Two"},
+ "correct_answer": "B",
+ "explanation": "The book has two chapters.",
+ "difficulty": "easy",
+ }
+ block = SimpleNamespace(
+ title="Focus check",
+ payload={"questions": [question]},
+ )
+ self.page = SimpleNamespace(
+ id="page-1",
+ title="Page 1",
+ chapter_id="",
+ block_by_id=lambda _: block,
+ )
- self.book = SimpleNamespace(title="Compiled Book")
++ self.book = SimpleNamespace(
++ title="Compiled Book",
++ chat_session_id="",
++ metadata={"page_chat_sessions": {"page-1": "page-chat-1"}},
++ )
+ self.engine = SimpleNamespace(
+ load_book=lambda _: self.book,
+ list_pages=lambda _: [self.page],
+ )
+ self.learning = _FakeLearningStore()
+
+ def load_progress(self, book_id: str) -> Progress:
+ return self.learning.load_progress(book_id)
+
+
+ def test_quiz_attempt_syncs_focus_check_to_question_bank(tmp_path, monkeypatch) -> None:
+ store = SQLiteSessionStore(db_path=tmp_path / "sessions.db")
++ asyncio.run(store.create_session(session_id="page-chat-1", title="Page 1 chat"))
+ resolved = _FakeResolvedBook()
+ monkeypatch.setattr(book_router, "_resolve_book_or_404", lambda _: resolved)
+ monkeypatch.setattr(session_package, "get_sqlite_session_store", lambda: store)
+
+ app = FastAPI()
+ app.include_router(book_router.router, prefix="/api/v1/book")
+
+ payload = {
+ "book_id": "book-1",
+ "page_id": "page-1",
+ "block_id": "block-1",
+ "question_id": "q1",
+ "user_answer": "A",
+ "is_correct": False,
+ }
+ with TestClient(app) as client:
+ response = client.post("/api/v1/book/books/quiz-attempt", json=payload)
+
+ assert response.status_code == 200
+ assert len(resolved.learning.saved) == 1
- entries = asyncio.run(store.list_notebook_entries(source="immersive_reading"))
++ entries = asyncio.run(store.list_notebook_entries(source="book"))
+ assert entries["total"] == 1
+ entry = entries["items"][0]
- assert entry["session_id"] == "book_book-1"
- assert entry["session_title"] == "Compiled Book"
++ assert entry["session_id"] == "page-chat-1"
++ assert entry["session_title"] == "Page 1 chat"
+ assert entry["question"] == "Which chapter?"
- assert entry["source"] == "immersive_reading"
++ assert entry["source"] == "book"
+ assert entry["material_id"] == "book-1"
+ assert entry["material_title"] == "Compiled Book"
+ assert entry["section_id"] == "page-1"
+ assert entry["section_title"] == "Page 1"
+ assert entry["score_trend"] == "new"
+ assert entry["resolved"] is False
++
++
++def test_quiz_attempt_does_not_create_a_synthetic_chat_session(tmp_path, monkeypatch) -> None:
++ store = SQLiteSessionStore(db_path=tmp_path / "sessions.db")
++ resolved = _FakeResolvedBook()
++ resolved.book.metadata = {}
++ monkeypatch.setattr(book_router, "_resolve_book_or_404", lambda _: resolved)
++ monkeypatch.setattr(session_package, "get_sqlite_session_store", lambda: store)
++
++ app = FastAPI()
++ app.include_router(book_router.router, prefix="/api/v1/book")
++ with TestClient(app) as client:
++ response = client.post(
++ "/api/v1/book/books/quiz-attempt",
++ json={
++ "book_id": "book-1",
++ "page_id": "page-1",
++ "block_id": "block-1",
++ "question_id": "q1",
++ "user_answer": "A",
++ "is_correct": False,
++ },
++ )
++
++ assert response.status_code == 200
++ assert len(resolved.learning.saved) == 1
++ assert asyncio.run(store.get_session("book_book-1")) is None
++ assert asyncio.run(store.list_notebook_entries(source="book"))["total"] == 0
diff --cc tests/services/session/test_sqlite_store.py
index 4fb46e598,032cb1e46..b8c98e78d
--- a/tests/services/session/test_sqlite_store.py
+++ b/tests/services/session/test_sqlite_store.py
@@@ -254,6 -238,90 +326,135 @@@ def test_list_entries_filters_is_correc
assert wrong["items"][0]["question_id"] == "q1"
+ def test_notebook_review_metadata_filters_and_transitions(
+ store: SQLiteSessionStore,
+ ) -> None:
+ session = asyncio.run(store.create_session(title="Sources"))
+ asyncio.run(
+ store.upsert_notebook_entries(
+ session["id"],
+ [
+ {
+ "question_id": "q1",
+ "question": "Mastery?",
+ "is_correct": False,
+ "source": "mastery_path",
+ "material_id": "path-1",
+ "material_title": "Algebra",
+ "section_id": "kp-1",
+ "section_title": "Equations",
+ },
+ {
+ "question_id": "q2",
+ "question": "Reading?",
+ "is_correct": True,
+ "source": "immersive_reading",
+ "material_id": "book-1",
+ "material_title": "EPUB",
+ "section_id": "page-1",
+ "section_title": "Page 1",
+ },
+ ],
+ )
+ )
+
+ mastery = asyncio.run(
+ store.list_notebook_entries(source="mastery_path", material_id="path-1", section_id="kp-1")
+ )
+ assert mastery["total"] == 1
+ entry = mastery["items"][0]
+ assert entry["score_trend"] == "new"
+ assert entry["resolved"] is False
+ assert asyncio.run(store.question_bank_stats())["unresolved"] == 1
+ assert asyncio.run(store.list_question_bank_materials()) == [
+ {
+ "source": "mastery_path",
+ "material_id": "path-1",
+ "material_title": "Algebra",
+ "entry_count": 1,
+ "unresolved_count": 1,
+ },
+ {
+ "source": "immersive_reading",
+ "material_id": "book-1",
+ "material_title": "EPUB",
+ "entry_count": 1,
+ "unresolved_count": 0,
+ },
+ ]
+
+ eid = entry["id"]
+ assert asyncio.run(store.update_notebook_entry(eid, {"resolved": True}))
+ resolved = asyncio.run(store.list_notebook_entries(resolved=True))
+ assert {item["id"] for item in resolved["items"]} == {eid, entry["id"] + 1}
+
+ retry = {
+ "question_id": "q1",
+ "question": "Mastery?",
+ "is_correct": True,
+ "source": "mastery_path",
+ "material_id": "path-1",
+ "section_id": "kp-1",
+ }
+ asyncio.run(store.upsert_notebook_entries(session["id"], [retry]))
+ improved = asyncio.run(store.list_notebook_entries(score_trend="improved"))["items"][0]
+ assert improved["resolved"] is True
+
+ retry["is_correct"] = False
+ asyncio.run(store.upsert_notebook_entries(session["id"], [retry]))
+ declined = asyncio.run(store.list_notebook_entries(score_trend="declined"))["items"][0]
+ assert declined["resolved"] is False
+
+ asyncio.run(store.upsert_notebook_entries(session["id"], [retry]))
+ unchanged = asyncio.run(store.list_notebook_entries(score_trend="unchanged"))["items"][0]
+ assert unchanged["resolved"] is False
+
+
++def test_question_bank_materials_respect_session_scope(store: SQLiteSessionStore) -> None:
++ first = asyncio.run(store.create_session(title="Course A"))
++ second = asyncio.run(store.create_session(title="Course B"))
++ asyncio.run(
++ store.upsert_notebook_entries(
++ first["id"],
++ [
++ {
++ "question_id": "q-a",
++ "question": "A?",
++ "is_correct": False,
++ "source": "book",
++ "material_id": "book-a",
++ "material_title": "Book A",
++ }
++ ],
++ )
++ )
++ asyncio.run(
++ store.upsert_notebook_entries(
++ second["id"],
++ [
++ {
++ "question_id": "q-b",
++ "question": "B?",
++ "is_correct": True,
++ "source": "book",
++ "material_id": "book-b",
++ "material_title": "Book B",
++ }
++ ],
++ )
++ )
++
++ assert asyncio.run(store.list_question_bank_materials([first["id"]])) == [
++ {
++ "source": "book",
++ "material_id": "book-a",
++ "material_title": "Book A",
++ "entry_count": 1,
++ "unresolved_count": 1,
++ }
++ ]
++
++
def test_update_notebook_entry_bookmark_roundtrip(store: SQLiteSessionStore) -> None:
session = asyncio.run(store.create_session())
asyncio.run(store.upsert_notebook_entries(session["id"], _make_items(("q1", "Q?", False))))
diff --cc web/components/space/question-bank/BankToolbar.tsx
index aeb3ed116,e3c7a8f79..92d7bf86a
--- a/web/components/space/question-bank/BankToolbar.tsx
+++ b/web/components/space/question-bank/BankToolbar.tsx
@@@ -73,6 -80,64 +80,65 @@@ export default function BankToolbar(
{sort === "recent" ? t("Newest first") : t("Oldest first")}
</button>
+ <select
+ value={filters.source}
+ onChange={(event) =>
+ onFiltersChange({
+ ...filters,
+ source: event.target.value as AssessmentSource | "",
+ materialId: "",
+ })
+ }
+ aria-label={t("Source")}
+ className="h-[34px] rounded-lg border border-[var(--border)] bg-[var(--card)] px-2 text-[12px] text-[var(--foreground)] outline-none"
+ >
+ <option value="">{t("All Sources")}</option>
+ <option value="deep_question">{t("Deep Question")}</option>
+ <option value="mastery_path">{t("Mastery Path")}</option>
+ <option value="immersive_reading">{t("Immersive Reading")}</option>
++ <option value="book">{t("Book")}</option>
+ </select>
+
+ <select
+ value={filters.materialId}
+ onChange={(event) =>
+ onFiltersChange({ ...filters, materialId: event.target.value })
+ }
+ aria-label={t("Material")}
+ disabled={materials.length === 0}
+ className="h-[34px] max-w-[180px] rounded-lg border border-[var(--border)] bg-[var(--card)] px-2 text-[12px] text-[var(--foreground)] outline-none disabled:opacity-50"
+ >
+ <option value="">{t("All Materials")}</option>
+ {materials
+ .filter((item) => !filters.source || item.source === filters.source)
+ .map((item) => (
+ <option
+ key={`${item.source}:${item.material_id}`}
+ value={item.material_id}
+ >
+ {item.material_title}
+ </option>
+ ))}
+ </select>
+
+ <select
+ value={filters.scoreTrend}
+ onChange={(event) =>
+ onFiltersChange({
+ ...filters,
+ scoreTrend: event.target.value as ScoreTrend | "",
+ })
+ }
+ aria-label={t("Score Trend")}
+ className="h-[34px] rounded-lg border border-[var(--border)] bg-[var(--card)] px-2 text-[12px] text-[var(--foreground)] outline-none"
+ >
+ <option value="">{t("All Trends")}</option>
+ <option value="new">{t("First Attempt")}</option>
+ <option value="improved">{t("Improved")}</option>
+ <option value="declined">{t("Declined")}</option>
+ <option value="unchanged">{t("Unchanged")}</option>
+ </select>
+
<button
type="button"
onClick={onToggleManager}
diff --cc web/components/space/question-bank/QuestionCard.tsx
index bd4085e27,fb6623fb6..32dbe08c1
--- a/web/components/space/question-bank/QuestionCard.tsx
+++ b/web/components/space/question-bank/QuestionCard.tsx
@@@ -12,6 -20,19 +20,20 @@@ const MarkdownRenderer = dynamic
{ ssr: false },
);
+ const SOURCE_LABELS: Record<NotebookEntry["source"], string> = {
+ deep_question: "Deep Question",
+ mastery_path: "Mastery Path",
+ immersive_reading: "Immersive Reading",
++ book: "Book",
+ };
+
+ const TREND_LABELS: Record<NotebookEntry["score_trend"], string> = {
+ new: "First Attempt",
+ improved: "Improved",
+ declined: "Declined",
+ unchanged: "Unchanged",
+ };
+
interface QuestionCardProps {
entry: NotebookEntry;
categories: NotebookCategory[];
@@@ -311,6 -372,25 +373,25 @@@ export default function QuestionCard(
<ExternalLink size={10} />
{entry.session_title || t("Original Session")}
</Link>
- {entry.source === "immersive_reading" && entry.material_id && (
++ {entry.source === "book" && entry.material_id && (
+ <Link
+ href={`/book?book=${encodeURIComponent(entry.material_id)}${
+ entry.section_id
+ ? `&page=${encodeURIComponent(entry.section_id)}`
+ : ""
+ }`}
+ className="inline-flex items-center gap-1.5 rounded-md border border-[var(--border)] bg-[var(--muted)]/40 px-2 py-0.5 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)]"
+ >
+ <ExternalLink size={10} />
+ {entry.section_title || entry.material_title || t("Material")}
+ </Link>
+ )}
+ {entry.source === "mastery_path" && entry.material_title && (
+ <span className="inline-flex items-center rounded-md border border-[var(--border)] bg-[var(--muted)]/40 px-2 py-0.5 text-[var(--muted-foreground)]">
+ {entry.material_title}
+ {entry.section_title ? ` · ${entry.section_title}` : ""}
+ </span>
+ )}
{entry.followup_session_id && (
<Link
href={`/?session=${encodeURIComponent(entry.followup_session_id)}`}
diff --cc web/components/space/question-bank/useQuestionBank.ts
index 4f1ac5763,cbf754bf9..702d48e1f
--- a/web/components/space/question-bank/useQuestionBank.ts
+++ b/web/components/space/question-bank/useQuestionBank.ts
@@@ -39,17 -43,17 +43,24 @@@ const SEARCH_DEBOUNCE_MS = 250
export const DEFAULT_SCOPE: BankScope = { kind: "all" };
+ export interface ReviewFilters {
+ source: AssessmentSource | "";
+ materialId: string;
+ scoreTrend: ScoreTrend | "";
+ }
+
+/**
+ * A course narrows *which questions exist* for this visit; a scope narrows
+ * which of those to show. They are separate axes on purpose — the course comes
+ * from the URL and stays put while the learner clicks through wrong / bookmarked
+ * / a category inside it.
+ */
- function scopeToFilter(
+ export function buildQuestionBankFilter(
scope: BankScope,
+ filters: ReviewFilters,
search: string,
sort: BankSort,
- courseId: string,
++ courseId = "",
) {
return {
category_id: scope.kind === "category" ? scope.categoryId : undefined,
@@@ -157,7 -176,7 +187,7 @@@ export function useQuestionBank
setError(null);
try {
const response = await listNotebookEntries(
- scopeToFilter(scope, search, sort, courseId),
- buildQuestionBankFilter(scope, reviewFilters, search, sort),
++ buildQuestionBankFilter(scope, reviewFilters, search, sort, courseId),
);
if (seq !== requestSeq.current) return;
setItems(response.items);
@@@ -181,17 -200,19 +211,19 @@@
setRefreshing(false);
}
}
- }, [courseId, scope, search, sort]);
- }, [scope, reviewFilters, search, sort]);
++ }, [courseId, scope, reviewFilters, search, sort]);
const loadMeta = useCallback(async () => {
- const [nextCategories, nextStats] = await Promise.allSettled([
+ const [nextCategories, nextStats, nextMaterials] = await Promise.allSettled([
- listCategories(),
- getQuestionBankStats(),
- listQuestionBankMaterials(),
+ listCategories(courseId),
+ getQuestionBankStats(courseId),
++ listQuestionBankMaterials(courseId),
]);
if (nextCategories.status === "fulfilled")
setCategories(nextCategories.value);
if (nextStats.status === "fulfilled") setStats(nextStats.value);
+ if (nextMaterials.status === "fulfilled") setMaterials(nextMaterials.value);
- }, []);
+ }, [courseId]);
useEffect(() => {
void loadEntries();
diff --cc web/lib/notebook-api.ts
index f8e05fc18,d62ce106f..fcc4c6b0f
--- a/web/lib/notebook-api.ts
+++ b/web/lib/notebook-api.ts
@@@ -226,6 -232,21 +233,22 @@@ export interface NotebookCategory
entry_count: number;
}
+ export type AssessmentSource =
+ | "deep_question"
+ | "mastery_path"
- | "immersive_reading";
++ | "immersive_reading"
++ | "book";
+
+ export type ScoreTrend = "new" | "improved" | "declined" | "unchanged";
+
+ export interface QuestionBankMaterial {
+ source: AssessmentSource;
+ material_id: string;
+ material_title: string;
+ entry_count: number;
+ unresolved_count: number;
+ }
+
export interface NotebookEntryListResponse {
items: NotebookEntry[];
total: number;
@@@ -474,6 -493,16 +515,19 @@@ export async function getQuestionBankSt
return expectJson<QuestionBankStats>(response);
}
-export async function listQuestionBankMaterials(): Promise<
++export async function listQuestionBankMaterials(
++ courseId = "",
++): Promise<
+ QuestionBankMaterial[]
+ > {
++ const query = courseId ? `?course_id=${encodeURIComponent(courseId)}` : "";
+ const response = await apiFetch(
- apiUrl("/api/v1/question-notebook/materials"),
++ apiUrl(`/api/v1/question-notebook/materials${query}`),
+ { cache: "no-store" },
+ );
+ return expectJson<QuestionBankMaterial[]>(response);
+ }
+
export async function removeEntryFromCategory(
entryId: number,
categoryId: number,
diff --cc web/locales/en/app.json
index 7137c8f63,acdae218b..6d9ca8b65
--- a/web/locales/en/app.json
+++ b/web/locales/en/app.json
@@@ -3615,720 -3403,17 +3615,734 @@@
"Filter by archive status": "Filter by archive status",
"Active and archived": "Active and archived",
"Loading conversations": "Loading conversations",
+ "Immersive Reading tooltip": "Read documents, web pages, and media with a grounded AI companion.",
+ "Reading Room": "Reading Room",
+ "All workspaces": "All workspaces",
+ "Folders": "Folders",
+ "Tag name": "Tag name",
+ "Create folders to group long-running reading projects.": "Create folders to group long-running reading projects.",
+ "No tags yet": "No tags yet",
+ "Private by default": "Private by default",
+ "Your sources, notes and reading conversations stay in your account.": "Your sources, notes and reading conversations stay in your account.",
+ "Your reading library": "Your reading library",
+ "Read documents, web pages and media with an AI companion that keeps every citation grounded.": "Read documents, web pages and media with an AI companion that keeps every citation grounded.",
+ "Add reading": "Add reading",
+ "Search workspaces and sources": "Search workspaces and sources",
+ "{{count}} workspaces": "{{count}} workspaces",
+ "Grid view": "Grid view",
+ "List view": "List view",
+ "Opening your library…": "Opening your library…",
+ "Unable to load library.": "Unable to load library.",
+ "Start your first reading workspace": "Start your first reading workspace",
+ "Bring a paper, book, web page, lecture or recording. DeepTutor will keep the material, notes and conversations together.": "Bring a paper, book, web page, lecture or recording. DeepTutor will keep the material, notes and conversations together.",
+ "A focused space for close reading and grounded conversation.": "A focused space for close reading and grounded conversation.",
+ "{{count}} sources": "{{count}} sources",
+ "Workspace menu": "Workspace menu",
+ "Delete workspace": "Delete workspace",
+ "Delete this reading workspace?": "Delete this reading workspace?",
+ "Source shelf": "Source shelf",
+ "Reusable materials across all reading workspaces": "Reusable materials across all reading workspaces",
+ "Create one workspace from one or many sources.": "Create one workspace from one or many sources.",
+ "Files & media": "Files & media",
+ "Web & YouTube": "Web & YouTube",
+ "Web & video": "Web & video",
+ "Workspace title": "Workspace title",
+ "Optional — inferred from the first source": "Optional — inferred from the first source",
+ "Choose documents, slides, audio or video": "Choose documents, slides, audio or video",
+ "PDF, EPUB, DOCX, PPTX, text, MP3, WAV, MP4, MOV": "PDF, EPUB, DOCX, PPTX, text, MP3, WAV, MP4, MOV",
+ "{{count}} files selected": "{{count}} files selected",
+ "{{size}} MB": "{{size}} MB",
+ "Links": "Links",
+ "One URL per line — articles, documentation, or YouTube": "One URL per line — articles, documentation, or YouTube",
+ "One URL per line — articles, documentation, YouTube, or Bilibili": "One URL per line — articles, documentation, YouTube, or Bilibili",
+ "Create workspace": "Create workspace",
+ "Importing…": "Importing…",
+ "Imported reading": "Imported reading",
+ "Choose one or more files.": "Choose one or more files.",
+ "Paste at least one URL.": "Paste at least one URL.",
+ "Import failed.": "Import failed.",
+ "Opening reading workspace…": "Opening reading workspace…",
+ "This reading workspace could not be opened.": "This reading workspace could not be opened.",
+ "The reading conversation could not be loaded.": "The reading conversation could not be loaded.",
+ "Back to library": "Back to library",
+ "Rename workspace": "Rename workspace",
+ "Organize notes": "Organize notes",
+ "Send to Notebook": "Send to Notebook",
+ "Build Mastery Path": "Build Mastery Path",
+ "AI Companion": "AI Companion",
+ "Add source": "Add source",
+ "Remove source": "Remove source",
+ "Remove this source from the workspace?": "Remove this source from the workspace?",
+ "Transcript": "Transcript",
+ "Search this source": "Search this source",
+ "This source has no navigable outline yet.": "This source has no navigable outline yet.",
+ "Source structure will appear after processing.": "Source structure will appear after processing.",
+ "{{count}} passages available to the companion": "{{count}} passages available to the companion",
+ "Source grounded": "Source grounded",
+ "Current passage": "Current passage",
+ "Beginning": "Beginning",
+ "Ask AI": "Ask AI",
+ "Grounded in your sources": "Grounded in your sources",
+ "Link earlier reading conversations": "Link earlier reading conversations",
+ "Send a message first, then link earlier reading conversations": "Send a message first, then link earlier reading conversations",
+ "Reading conversations": "Reading conversations",
+ "Jump to a question": "Jump to a question",
+ "Resize reading companion": "Resize reading companion",
+ "Delete “{{title}}”? The transcript cannot be recovered.": "Delete “{{title}}”? The transcript cannot be recovered.",
+ "New reading conversation": "New reading conversation",
+ "Reading conversation": "Reading conversation",
+ "Reading guide": "Reading guide",
+ "Summarize here": "Summarize here",
+ "Compare sources": "Compare sources",
+ "Create a concise reading guide for the active material. Identify its thesis, structure, difficult concepts, and the best order to study it. Cite every claim.": "Create a concise reading guide for the active material. Identify its thesis, structure, difficult concepts, and the best order to study it. Cite every claim.",
+ "Summarize the passage currently visible in the reader, explain why it matters, and cite the exact source location.": "Summarize the passage currently visible in the reader, explain why it matters, and cite the exact source location.",
+ "Compare the materials open in this workspace. First list the tabs, then switch and read only the passages needed. Highlight agreements, tensions, and evidence with citations.": "Compare the materials open in this workspace. First list the tabs, then switch and read only the passages needed. Highlight agreements, tensions, and evidence with citations.",
+ "Read with a grounded companion": "Read with a grounded companion",
+ "Ask about {{title}}, select a passage, or use a guided action above.": "Ask about {{title}}, select a passage, or use a guided action above.",
+ "Open a source to begin a reading conversation.": "Open a source to begin a reading conversation.",
+ "Explain the key argument": "Explain the key argument",
+ "Challenge this evidence": "Challenge this evidence",
+ "Turn this into study notes": "Turn this into study notes",
+ "Ask about this source…": "Ask about this source…",
+ "Using {{count}} linked conversations as context": "Using {{count}} linked conversations as context",
+ "Answers stay bound to the active source unless you switch tabs.": "Answers stay bound to the active source unless you switch tabs.",
+ "Link reading conversations": "Link reading conversations",
+ "Linked conversations are passed explicitly as historical context. They remain separate and never appear in regular Chat history.": "Linked conversations are passed explicitly as historical context. They remain separate and never appear in regular Chat history.",
+ "Create another reading conversation first.": "Create another reading conversation first.",
+ "Link conversations": "Link conversations",
+ "Send reading notes to Notebook": "Send reading notes to Notebook",
+ "Highlights and notes are organized by source and locator before they are copied. Your material stays private in the reading workspace.": "Highlights and notes are organized by source and locator before they are copied. Your material stays private in the reading workspace.",
+ "Could not load notebooks.": "Could not load notebooks.",
+ "Create a Notebook first.": "Create a Notebook first.",
+ "Reading notes sent to Notebook.": "Reading notes sent to Notebook.",
+ "Organizing notes…": "Organizing notes…",
+ "Notes organized with source provenance.": "Notes organized with source provenance.",
+ "Could not organize notes.": "Could not organize notes.",
+ "Organized reading notes": "Organized reading notes",
+ "Copy Markdown": "Copy Markdown",
+ "Building Mastery Path…": "Building Mastery Path…",
+ "Choose a Mastery Path ID for this reading workspace": "Choose a Mastery Path ID for this reading workspace",
+ "Mastery Path created. Open Learning Space to begin.": "Mastery Path created. Open Learning Space to begin.",
+ "Mastery Path creation failed.": "Mastery Path creation failed.",
+ "Add a source to begin": "Add a source to begin",
+ "Open library": "Open library",
+ "Preparing {{title}}": "Preparing {{title}}",
+ "Extracting structure and grounded passages…": "Extracting structure and grounded passages…",
+ "This source could not be prepared": "This source could not be prepared",
+ "Try importing the source again.": "Try importing the source again.",
+ "Open failed.": "Open failed.",
+ "Save failed.": "Save failed.",
+ "Open in Immersive Reading": "Open in Immersive Reading",
+ "Open in Reading": "Open in Reading",
+ "The attachment could not be downloaded.": "The attachment could not be downloaded.",
+ "The attachment could not be opened in Immersive Reading.": "The attachment could not be opened in Immersive Reading.",
+ "Move to folder": "Move to folder",
+ "Move to folder — enter a folder name": "Move to folder — enter a folder name",
+ "Add tag": "Add tag",
+ "Add tag — enter a tag name": "Add tag — enter a tag name",
+ "No transcript available": "No transcript available",
+ "Playback still works. Transcript-grounded explanation and timestamp search are unavailable for this video.": "Playback still works. Transcript-grounded explanation and timestamp search are unavailable for this video.",
+ "Native media": "Native media",
+ "Open official": "Open official",
+ "Video timeline": "Video timeline",
+ "This video's owner disabled embedded playback. Open it on YouTube; DeepTutor can still use captions when they are available.": "This video's owner disabled embedded playback. Open it on YouTube; DeepTutor can still use captions when they are available.",
+ "YouTube could not verify this embedded player. Open the official video, or check the browser's referrer policy.": "YouTube could not verify this embedded player. Open the official video, or check the browser's referrer policy.",
+ "YouTube playback failed ({{code}}).": "YouTube playback failed ({{code}}).",
+ "Only chapter markers are available for this video. You can navigate by chapter, but the companion will not treat them as a spoken transcript.": "Only chapter markers are available for this video. You can navigate by chapter, but the companion will not treat them as a spoken transcript.",
+ "This video has no accessible transcript. Playback works, but the companion cannot ground explanations in its spoken content.": "This video has no accessible transcript. Playback works, but the companion cannot ground explanations in its spoken content.",
+ "Add source to workspace": "Add source to workspace",
+ "Each source opens as its own tab. The companion stays bound to one active tab at a time.": "Each source opens as its own tab. The companion stays bound to one active tab at a time.",
+ "From library": "From library",
+ "Could not load sources.": "Could not load sources.",
+ "Choose a source from your library.": "Choose a source from your library.",
+ "Source could not be added.": "Source could not be added.",
+ "No unused sources in your library yet.": "No unused sources in your library yet.",
+ "Close panels": "Close panels",
+ "Close AI Companion": "Close AI Companion",
+ "Close contents": "Close contents",
+ "Back to the library": "Back to the library",
+ "This source could not be opened.": "This source could not be opened.",
+ "This transcript could not be loaded.": "This transcript could not be loaded.",
+ "This Bilibili video would not load in an embedded player. Open it on Bilibili; DeepTutor can still use its captions.": "This Bilibili video would not load in an embedded player. Open it on Bilibili; DeepTutor can still use its captions.",
+ "This Bilibili video could not be loaded.": "This Bilibili video could not be loaded.",
+ "This player does not report playback position, so the passage follows the controls below rather than the video.": "This player does not report playback position, so the passage follows the controls below rather than the video.",
+ "Ask once and every Partner answers from their own angle. Use @name to narrow it down.": "Ask once and every Partner answers from their own angle. Use @name to narrow it down.",
+ "Thinking…": "Thinking…",
+ "This Partner could not answer.": "This Partner could not answer.",
+ "Quote this in a reply": "Quote this in a reply",
+ "Follow up": "Follow up",
+ "Shared context": "Shared context",
+ "Visible to every Partner in this group": "Visible to every Partner in this group",
+ "Nothing shared yet": "Nothing shared yet",
+ "Let them discuss": "Let them discuss",
+ "Not now": "Not now",
+ "Waiting for {{name}}": "Waiting for {{name}}",
+ "Discussed": "Discussed",
+ "Declined": "Declined",
+ "Unrecognized: {{names}}": "Unrecognized: {{names}}",
+ "Following up on {{name}}": "Following up on {{name}}",
+ "{{done}} of {{total}} answered": "{{done}} of {{total}} answered",
+ "{{count}} selected · at least 2": "{{count}} selected · at least 2",
+ "Delete permanently": "Delete permanently",
+ "The map could not be loaded": "The map could not be loaded",
+ "This map could not be found": "This map could not be found",
+ "Back to topics": "Back to topics",
+ "Learning topics": "Learning topics",
+ "Reconnecting": "Reconnecting",
+ "Edit modules": "Edit modules",
+ "More actions": "More actions",
+ "Reset progress": "Reset progress",
+ "Delete topic": "Delete topic",
+ "knowledge points": "knowledge points",
+ "modules": "modules",
+ "Next up": "Next up",
+ "Outline is empty": "Outline is empty",
+ "Celebrate completion": "Celebrate completion",
+ "This migrated topic has no modules yet. Add at least one module and knowledge point to begin.": "This migrated topic has no modules yet. Add at least one module and knowledge point to begin.",
+ "Add modules": "Add modules",
+ "Continue learning": "Continue learning",
+ "Begin first waypoint": "Begin first waypoint",
+ "Add the missing modules": "Add the missing modules",
+ "The topic migrated safely but has no modules yet. Define the abilities you want to master before tutoring begins.": "The topic migrated safely but has no modules yet. Define the abilities you want to master before tutoring begins.",
+ "Add modules and knowledge points": "Add modules and knowledge points",
+ "Reset learning progress?": "Reset learning progress?",
+ "Modules and knowledge points stay. Mastery evidence, pending questions, and review schedules will be cleared.": "Modules and knowledge points stay. Mastery evidence, pending questions, and review schedules will be cleared.",
+ "Confirm reset": "Confirm reset",
+ "Permanently delete this topic?": "Permanently delete this topic?",
+ "The map, evidence, review schedule, and linked records will be deleted. This cannot be undone.": "The map, evidence, review schedule, and linked records will be deleted. This cannot be undone.",
+ "The atlas could not be loaded.": "The atlas could not be loaded.",
+ "Marked as known": "Marked as known",
+ "Mastered": "Mastered",
+ "Not started": "Not started",
+ "Topic outline": "Topic outline",
+ "Evidence could not be loaded": "Evidence could not be loaded",
+ "Update failed": "Update failed",
+ "Evidence": "Evidence",
+ "Confirmed by you": "Confirmed by you",
+ "Marked as known by you; assessed evidence is unchanged.": "Marked as known by you; assessed evidence is unchanged.",
+ "Return to assessment": "Return to assessment",
+ "Optional: why are you skipping this?": "Optional: why are you skipping this?",
+ "Confirm mastery": "Confirm mastery",
+ "I already know this — advance": "I already know this — advance",
+ "Learning goal": "Learning goal",
+ "Could not generate the outline. Please retry.": "Could not generate the outline. Please retry.",
+ "Creation failed. Please retry.": "Creation failed. Please retry.",
+ "New topic": "New topic",
+ "Plan the modules": "Plan the modules",
+ "Creation steps": "Creation steps",
+ "Goal": "Goal",
+ "Choose sources": "Choose sources",
+ "Charting…": "Charting…",
+ "Generate outline": "Generate outline",
+ "Saving map…": "Saving map…",
+ "Map workshop": "Map workshop",
+ "Renaming preserves existing evidence. Removing a knowledge point also removes its mastery, review schedule, and manual override. Confirm the structure before saving.": "Renaming preserves existing evidence. Removing a knowledge point also removes its mastery, review schedule, and manual override. Confirm the structure before saving.",
+ "All complete": "All complete",
+ "The learning map could not be loaded": "The learning map could not be loaded",
+ "This session belongs to a different topic. Open a session from this topic instead.": "This session belongs to a different topic. Open a session from this topic instead.",
+ "This learning session could not be opened": "This learning session could not be opened",
+ "This learning map could not be found": "This learning map could not be found",
+ "Back to topic map": "Back to topic map",
+ "Guided trail": "Guided",
+ "Reopening this session…": "Reopening this session…",
+ "The session did not open": "The session did not open",
+ "Start a new session": "Start a new session",
+ "Your tutor adapts to your answers. Begin with a quick check, an intuitive explanation, or a challenge.": "Your tutor adapts to your answers. Begin with a quick check, an intuitive explanation, or a challenge.",
+ "Stop response": "Stop response",
+ "The tutor records verifiable evidence for each knowledge point; you can always mark one as known yourself.": "The tutor records verifiable evidence for each knowledge point; you can always mark one as known yourself.",
+ "Spaced review": "Spaced review",
+ "Not scheduled": "Not scheduled",
+ "Your explanation": "Your explanation",
+ "(prompt unavailable)": "(prompt unavailable)",
+ "You said: ": "You said: ",
+ "(blank)": "(blank)",
+ "Error diagnosis": "Error diagnosis",
+ " · cleared": " · cleared",
+ "No attempts yet. Once you work through this waypoint, its questions, your answers, and the grading evidence will appear here.": "No attempts yet. Once you work through this waypoint, its questions, your answers, and the grading evidence will appear here.",
+ "Qualitative gate: explain it in your own words": "Qualitative gate: explain it in your own words",
+ "Topic name": "Topic name",
+ "What is this path called?": "What is this path called?",
+ "Review plan": "Review plan",
+ "Scheduled by your forgetting curve": "Scheduled by your forgetting curve",
+ "Nothing is due today. Keep going — reviews will resurface at the right time.": "Nothing is due today. Keep going — reviews will resurface at the right time.",
+ "Ready now": "Ready now",
+ "New knowledge point": "New knowledge point",
+ "Review and adjust the modules": "Review and adjust the modules",
+ "Modules define learning phases and knowledge points define the abilities to master. Up/down controls make the order editable by keyboard as well as pointer.": "Modules define learning phases and knowledge points define the abilities to master. Up/down controls make the order editable by keyboard as well as pointer.",
+ "Map description": "Map description",
+ "Keep at least one module.": "Keep at least one module.",
+ "Module name cannot be blank.": "Module name cannot be blank.",
+ "Procedure": "Procedure",
+ "Design": "Design",
+ "Knowledge point name cannot be blank.": "Knowledge point name cannot be blank.",
+ "Every module needs at least one knowledge point.": "Every module needs at least one knowledge point.",
+ "Add knowledge point": "Add knowledge point",
+ "Add module": "Add module",
+ "Sessions": "Sessions",
+ "Your sessions": "Your sessions",
+ "Start a new learning session": "Start a new learning session",
+ "No sessions yet": "No sessions yet",
+ "Start your first session. Later you can resume this thread or begin again from a fresh angle.": "Start your first session. Later you can resume this thread or begin again from a fresh angle.",
+ "Begin learning": "Begin learning",
+ "Tutor is responding": "Tutor is responding",
+ "Start from a fresh angle": "Start from a fresh angle",
+ "Learning space": "Learning space",
+ "Your learning topics": "Your learning topics",
+ "Work through each topic's knowledge points, then pick up any session where you left off.": "Work through each topic's knowledge points, then pick up any session where you left off.",
+ "Chart a new topic": "Chart a new topic",
+ "Open their maps for a short review without losing your main route.": "Open their maps for a short review without losing your main route.",
+ "Start review": "Start review",
+ "Active learning topics": "Active learning topics",
+ "Your atlas is still uncharted": "Your atlas is still uncharted",
+ "Tell DeepTutor what you want to learn, mix in your books, notes, and knowledge bases, and it will draft the first outline.": "Tell DeepTutor what you want to learn, mix in your books, notes, and knowledge bases, and it will draft the first outline.",
+ "Chart the first map": "Chart the first map",
+ "due": "due",
+ "What do you want to learn?": "What do you want to learn?",
+ "The more specific the goal, the closer each knowledge point lands to the ability you actually want.": "The more specific the goal, the closer each knowledge point lands to the ability you actually want.",
+ "e.g. Linear algebra": "e.g. Linear algebra",
+ "I want to build geometric intuition for vector spaces and transformations, then solve eigenvalue problems independently.": "I want to build geometric intuition for vector spaces and transformations, then solve eigenvalue problems independently.",
+ "Map emblem": "Map emblem",
+ "Which materials should it draw on?": "Which materials should it draw on?",
+ "Mix as many sources as useful. Your goal is always included; the rest grounds the outline in your own material.": "Mix as many sources as useful. Your goal is always included; the rest grounds the outline in your own material.",
+ "No books are available yet": "No books are available yet",
+ "No saved notebooks yet": "No saved notebooks yet",
+ "No retrievable knowledge bases yet": "No retrievable knowledge bases yet",
+ "Currently unavailable": "Currently unavailable",
+ "Module {{n}}": "Module {{n}}",
+ "Ask your tutor about “{{waypoint}}”…": "Ask your tutor about “{{waypoint}}”…",
+ "Tab to complete": "Tab to complete",
+ "Due {{relative}} · {{absolute}}": "Due {{relative}} · {{absolute}}",
+ "interval {{interval}} · {{streak}} in a row": "interval {{interval}} · {{streak}} in a row",
+ "Attempts ({{correct}}/{{total}} correct)": "Attempts ({{correct}}/{{total}} correct)",
+ " · {{count}} retries": " · {{count}} retries",
+ "Quantitative gate: {{pct}}%": "Quantitative gate: {{pct}}%",
+ "Even with {{correct}}/{{total}} correct so far, mastery also weighs evidence volume, difficulty, and recent consistency. One more discriminating practice can raise it further.": "Even with {{correct}}/{{total}} correct so far, mastery also weighs evidence volume, difficulty, and recent consistency. One more discriminating practice can raise it further.",
+ "New module {{n}}": "New module {{n}}",
+ "Module {{n}} name": "Module {{n}} name",
+ "Move module “{{name}}” up": "Move module “{{name}}” up",
+ "Move module “{{name}}” down": "Move module “{{name}}” down",
+ "Remove module “{{name}}”": "Remove module “{{name}}”",
+ "Knowledge point {{point}} name in module {{region}}": "Knowledge point {{point}} name in module {{region}}",
+ "Type for “{{name}}”": "Type for “{{name}}”",
+ "Move “{{name}}” up": "Move “{{name}}” up",
+ "Move “{{name}}” down": "Move “{{name}}” down",
+ "Remove “{{name}}”": "Remove “{{name}}”",
+ "{{beacons}} reviews are due across {{count}} topics": "{{beacons}} reviews are due across {{count}} topics",
+ "Open {{name}}, {{mastered}} of {{total}} knowledge points complete": "Open {{name}}, {{mastered}} of {{total}} knowledge points complete",
+ "Choose map emblem {{emblem}}": "Choose map emblem {{emblem}}",
+ "{{sources}} could not be loaded; you can still generate from the available sources.": "{{sources}} could not be loaded; you can still generate from the available sources.",
+ "source list separator": "source list separator",
+ "structural": "structural",
+ "deviation": "deviation",
+ "application": "application",
+ "metacognitive": "metacognitive",
+ "Materials": "Materials",
+ "Ask several Partners at once and compare how they differ.": "Ask several Partners at once and compare how they differ.",
+ "Bring two or more Partners together — they share the conversation but reason on their own.": "Bring two or more Partners together — they share the conversation but reason on their own.",
+ "Create one more Partner to form your first group.": "Create one more Partner to form your first group.",
+ "This round could not finish": "This round could not finish",
+ "{{requester}} asked {{target}}": "{{requester}} asked {{target}}",
+ "Follow-up discussion": "Follow-up discussion",
+ "Untitled group": "Untitled group",
+ "Pick {{count}} more Partner(s)": "Pick {{count}} more Partner(s)",
+ "A group needs at least two Partners. Create one more first.": "A group needs at least two Partners. Create one more first.",
+ "No reasoning to show yet": "No reasoning to show yet",
+ "Reasoning steps": "Reasoning",
+ "You stopped this round": "You stopped this round",
+ "New discussion": "New discussion",
+ "{{count}} messages": "{{count}} messages",
+ "Ask a peer": "Ask a peer",
+ "Who should respond to {{name}}?": "Who should respond to {{name}}?",
+ "Here is the point I just made: “{{excerpt}}”. What is your take on it?": "Here is the point I just made: “{{excerpt}}”. What is your take on it?",
+ "How they discuss": "How they discuss",
+ "Parallel answers": "Parallel answers",
+ "One after another": "One after another",
+ "Cross-examination": "Cross-examination",
+ "Everyone answers the same question at once, independently.": "Everyone answers the same question at once, independently.",
+ "Each member sees what the others already said and builds on it.": "Each member sees what the others already said and builds on it.",
+ "First everyone states a position, then each responds to the disagreements.": "First everyone states a position, then each responds to the disagreements.",
+ "Fastest": "Fastest",
+ "Slower · they wait for each other": "Slower · they wait for each other",
+ "Two rounds · about twice the wait": "Two rounds · about twice the wait",
+ "Whatever the mode, each member's tool traces and intermediate reasoning stay private.": "Whatever the mode, each member's tool traces and intermediate reasoning stay private.",
+ "Choose at least two Partners, then how they should discuss.": "Choose at least two Partners, then how they should discuss.",
+ "Rebuttal": "Rebuttal",
+ "Summarise this round": "Summarise this round",
+ "Who should sum it up?": "Who should sum it up?",
+ "Could not refresh — retry": "Could not refresh — retry",
+ "Start with a quick check of what I already know": "Start with a quick check of what I already know",
+ "Teach me from intuition and one concrete example": "Teach me from intuition and one concrete example",
+ "Give me a challenging question right away": "Give me a challenging question right away",
+ "Ask once and they answer in turn — each one sees what came before and builds on it.": "Ask once and they answer in turn — each one sees what came before and builds on it.",
+ "Ask once and they each take a position, then respond to where they disagree.": "Ask once and they each take a position, then respond to where they disagree.",
+ "Ask once and every Partner answers from their own angle.": "Ask once and every Partner answers from their own angle.",
+ "Use @name to narrow it down.": "Use @name to narrow it down.",
+ "{{count}} modules_one": "{{count}} module",
+ "{{count}} modules_other": "{{count}} modules",
+ "{{count}} sessions_one": "{{count}} session",
+ "{{count}} sessions_other": "{{count}} sessions",
+ "Clash round · {{done}} of {{total}}": "Clash round · {{done}} of {{total}}",
+ "Course conventions": "Course conventions",
+ "Notation, the teacher's angle, how you want to be taught. Every conversation in this course starts knowing this.": "Notation, the teacher's angle, how you want to be taught. Every conversation in this course starts knowing this.",
+ "Saving": "Saving",
+ "e.g. Use C for examples. Focus on POSIX. Exams are proof-based.": "e.g. Use C for examples. Focus on POSIX. Exams are proof-based.",
+ "What DeepTutor has noticed": "What DeepTutor has noticed",
+ "Mastery path": "Mastery path",
+ "Reading": "Reading",
+ "Read aloud": "Read aloud",
+ "Reading aloud": "Reading aloud",
+ "Stop reading aloud": "Stop reading aloud",
+ "Partner group": "Partner group",
+ "Everything this course studies with. Conversations here start with these already in hand.": "Everything this course studies with. Conversations here start with these already in hand.",
+ "Nothing attached yet. Add a textbook or knowledge base and this course starts knowing what it is about.": "Nothing attached yet. Add a textbook or knowledge base and this course starts knowing what it is about.",
+ "Unavailable": "Unavailable",
+ "Remove from course": "Remove from course",
+ "Nothing available to attach yet — create a knowledge base, book, or mastery path first.": "Nothing available to attach yet — create a knowledge base, book, or mastery path first.",
+ "Weakest: {{name}}": "Weakest: {{name}}",
+ "{{count}} paths": "{{count}} paths",
+ "Attach or build a path to track mastery": "Attach or build a path to track mastery",
+ "{{count}} still wrong": "{{count}} still wrong",
+ "Questions you get wrong land here": "Questions you get wrong land here",
+ "{{count}} materials open": "{{count}} materials open",
+ "Attach a reading workspace to read alongside the tutor": "Attach a reading workspace to read alongside the tutor",
+ "Attach a notebook to keep this course's notes together": "Attach a notebook to keep this course's notes together",
+ "Worth doing next": "Worth doing next",
+ "Opens with": "Opens with",
+ "Course Study": "Course Study",
+ "Courses": "Courses",
+ "Back to Courses": "Back to Courses",
+ "Everything one subject needs, in one place": "Everything one subject needs, in one place",
+ "See where a course stands and what to do next": "See where a course stands and what to do next",
+ "One subject's material, paths, notes and conversations, all in one place.": "One subject's material, paths, notes and conversations, all in one place.",
+ "Nothing attached yet": "Nothing attached yet",
+ "Attach its textbook, then let DeepTutor plan from there.": "Attach its textbook, then let DeepTutor plan from there.",
+ "Start course study": "Start course study",
+ "This course has nothing to work with yet": "This course has nothing to work with yet",
+ "Attach its textbook or knowledge base and DeepTutor can start planning from the material itself.": "Attach its textbook or knowledge base and DeepTutor can start planning from the material itself.",
+ "{{name}} is where you are losing marks": "{{name}} is where you are losing marks",
+ "{{count}} questions wrong in this area": "{{count}} questions wrong in this area",
+ "Work through them": "Work through them",
+ "Take me through my {{name}} mistakes one at a time.": "Take me through my {{name}} mistakes one at a time.",
+ "{{name}} is {{done}} of {{total}} done": "{{name}} is {{done}} of {{total}} done",
+ "Pick up where the path left off": "Pick up where the path left off",
+ "Keep going": "Keep going",
+ "Continue this path from where I stopped.": "Continue this path from where I stopped.",
+ "{{title}} is open and waiting": "{{title}} is open and waiting",
+ "{{count}} materials in this reading workspace": "{{count}} materials in this reading workspace",
+ "Read on": "Read on",
+ "Summarise where I left off, then continue from there.": "Summarise where I left off, then continue from there.",
+ "The material is in place": "The material is in place",
+ "Nothing has been built from it yet — a mastery path turns it into something you can practise.": "Nothing has been built from it yet — a mastery path turns it into something you can practise.",
+ "Plan this course": "Plan this course",
+ "Look at what this course has and plan what I should do first.": "Look at what this course has and plan what I should do first.",
+ "{{count}} objectives · weakest {{name}}": "{{count}} objectives · weakest {{name}}",
+ "{{count}} objectives across {{paths}} paths": "{{count}} objectives across {{paths}} paths",
+ "wrong of {{total}} · weakest {{name}}": "wrong of {{total}} · weakest {{name}}",
+ "wrong of {{total}}": "wrong of {{total}}",
+ "{{name}}: {{done}} of {{total}} objectives cleared": "{{name}}: {{done}} of {{total}} objectives cleared",
+ "This target no longer exists — remove the reference, or attach the resource again.": "This target no longer exists — remove the reference, or attach the resource again.",
+ "Opening": "Opening",
+ "This course": "This course",
+ "Show every course": "Show every course",
+ "Show every notebook": "Show every notebook",
+ "No questions from this course yet": "No questions from this course yet",
+ "Questions you answer in this course's conversations collect here.": "Questions you answer in this course's conversations collect here.",
+ "Syllabus": "Syllabus",
+ "{{covered}} of {{total}} units covered": "{{covered}} of {{total}} units covered",
+ "What this course should cover. Without it, progress has no denominator.": "What this course should cover. Without it, progress has no denominator.",
+ "One unit per line. Add keywords after a | so DeepTutor can tell which questions belong to it:\n\nProcesses and threads | context switch, scheduling\nVirtual memory | address translation, page replacement": "One unit per line. Add keywords after a | so DeepTutor can tell which questions belong to it:\n\nProcesses and threads | context switch, scheduling\nVirtual memory | address translation, page replacement",
+ "Paste the course outline and every number on this page gains a denominator.": "Paste the course outline and every number on this page gains a denominator.",
+ "Evidence, not a verdict — you decide whether this unit is done.": "Evidence, not a verdict — you decide whether this unit is done.",
+ "{{count}} wrong": "{{count}} wrong",
+ "Archive course": "Archive course",
+ "Restore course": "Restore course",
+ "Archived courses": "Archived courses",
+ "Put PDFs, web pages and lectures into one collection and read them with an AI companion that can always point back to the source.": "Put PDFs, web pages and lectures into one collection and read them with an AI companion that can always point back to the source.",
+ "Collections": "Collections",
+ "Material library": "Material library",
+ "New collection": "New collection",
+ "New collection…": "New collection…",
+ "Search collections and materials": "Search collections and materials",
+ "Could not load your collections.": "Could not load your collections.",
+ "No collections yet": "No collections yet",
+ "A collection is one reading task: a paper with its survey, every lecture of a course, a few chapters of a book. Everything in it shares the same conversations and annotations.": "A collection is one reading task: a paper with its survey, every lecture of a course, a few chapters of a book. Everything in it shares the same conversations and annotations.",
+ "No material yet": "No material yet",
+ "+{{count}} more": "+{{count}} more",
+ "Collection menu": "Collection menu",
+ "Delete collection": "Delete collection",
+ "{{title}} could not be prepared": "{{title}} could not be prepared",
+ "Nothing matches that.": "Nothing matches that.",
+ "Upload material": "Upload material",
+ "Add material": "Add material",
+ "Search by title, file name or link": "Search by title, file name or link",
+ "Could not load your library.": "Could not load your library.",
+ "Not in a collection": "Not in a collection",
+ "Preparing": "Preparing",
+ "In collections": "In collections",
+ "Added": "Added",
+ "reading.column.material": "Material",
+ "Material menu": "Material menu",
+ "Add to a collection": "Add to a collection",
+ "Delete material": "Delete material",
+ "Everything you upload shows up here.": "Everything you upload shows up here.",
+ "Nothing here yet.": "Nothing here yet.",
+ "It is already in every collection you have.": "It is already in every collection you have.",
+ "You have no collections yet.": "You have no collections yet.",
+ "Document": "Document",
+ "Web page": "Web page",
+ "Audio": "Audio",
+ "YouTube": "YouTube",
+ "Bilibili": "Bilibili",
+ "A collection holds several materials you read and discuss together.": "A collection holds several materials you read and discuss together.",
+ "Files, links and materials already in your library.": "Files, links and materials already in your library.",
+ "Uploaded material stays in your library until you put it in a collection.": "Uploaded material stays in your library until you put it in a collection.",
+ "Collection name": "Collection name",
+ "Optional — taken from the first material": "Optional — taken from the first material",
+ "Drop PDF, EPUB, Word, slides, audio or video here": "Drop PDF, EPUB, Word, slides, audio or video here",
+ "or click to choose files": "or click to choose files",
+ "or paste a link — web page, YouTube, Bilibili": "or paste a link — web page, YouTube, Bilibili",
+ "Checking your library for duplicates…": "Checking your library for duplicates…",
+ "Choose from material you already uploaded": "Choose from material you already uploaded",
+ "Create and start reading": "Create and start reading",
+ "Already in your library. It will be reused, with its annotations.": "Already in your library. It will be reused, with its annotations.",
+ "Already in your library, used by {{where}}. It will be reused, with its annotations.": "Already in your library, used by {{where}}. It will be reused, with its annotations.",
+ "Add a separate copy instead": "Add a separate copy instead",
+ "Reuse the existing one": "Reuse the existing one",
+ "A material with this name is already in your library, but its content differs.": "A material with this name is already in your library, but its content differs.",
+ "A material with this name is already in {{where}}, but its content differs.": "A material with this name is already in {{where}}, but its content differs.",
+ "Upload as a new one": "Upload as a new one",
+ "Back to collections": "Back to collections",
+ "Rename collection": "Rename collection",
+ "Rename conversation": "Rename conversation",
+ "Conversation name": "Conversation name",
+ "Remove from collection": "Remove from collection",
+ "Remove this material from the collection? It stays in your library.": "Remove this material from the collection? It stays in your library.",
+ "Collection actions": "Collection actions",
+ "Show contents": "Show contents",
+ "Hide contents": "Hide contents",
+ "Reading companion": "Reading companion",
+ "Choose a Mastery Path ID for this collection": "Choose a Mastery Path ID for this collection",
+ "Add material to begin": "Add material to begin",
+ "{{count}} collections_one": "{{count}} collection",
+ "{{count}} collections_other": "{{count}} collections",
+ "{{count}} materials_one": "{{count}} material",
+ "{{count}} materials_other": "{{count}} materials",
+ "{{count}} pages_one": "{{count}} page",
+ "{{count}} pages_other": "{{count}} pages",
+ "{{count}} sections_one": "{{count}} section",
+ "{{count}} sections_other": "{{count}} sections",
+ "“{{title}}” and its reading conversations will be deleted. The {{count}} materials in it stay in your library._one": "“{{title}}” and its reading conversation will be deleted. The material in it stays in your library.",
+ "“{{title}}” and its reading conversations will be deleted. The {{count}} materials in it stay in your library._other": "“{{title}}” and its reading conversations will be deleted. The {{count}} materials in it stay in your library.",
+ "Search your library": "Search your library",
+ "“{{title}}” and its annotations will be deleted.": "“{{title}}” and its annotations will be deleted.",
+ "“{{title}}” is used by {{where}}. Deleting it removes it from those collections, along with its annotations.": "“{{title}}” is used by {{where}}. Deleting it removes it from those collections, along with its annotations.",
+ "Close reading companion": "Close reading companion",
+ "Opening collection…": "Opening collection…",
+ "Grounded in your materials": "Grounded in your materials",
+ "Ask about this material…": "Ask about this material…",
+ "Answers stay with the material you have open until you switch.": "Answers stay with the material you have open until you switch.",
+ "This collection could not be opened.": "This collection could not be opened.",
+ "This material could not be opened.": "This material could not be opened.",
+ "Notes organized, each one citing where it came from.": "Notes organized, each one citing where it came from.",
+ "Search this material": "Search this material",
+ "This material has no outline to navigate yet.": "This material has no outline to navigate yet.",
+ "The outline appears once processing finishes.": "The outline appears once processing finishes.",
+ "Compare materials": "Compare materials",
+ "Compare the materials in this collection. First list them, then switch and read only the passages needed. Highlight agreements, tensions, and evidence with citations.": "Compare the materials in this collection. First list them, then switch and read only the passages needed. Highlight agreements, tensions, and evidence with citations.",
+ "Add material to begin a reading conversation.": "Add material to begin a reading conversation.",
+ "Try importing this material again.": "Try importing this material again.",
+ "This material could not be prepared": "This material could not be prepared",
+ "Already in your library as “{{title}}”, used by {{where}}. It will be reused, with its annotations.": "Already in your library as “{{title}}”, used by {{where}}. It will be reused, with its annotations.",
+ "Already in your library as “{{title}}”. It will be reused, with its annotations.": "Already in your library as “{{title}}”. It will be reused, with its annotations.",
+ "Remove “{{title}}” from this collection? It stays in your library.": "Remove “{{title}}” from this collection? It stays in your library.",
+ "{{count}} connection": "{{count}} connection",
+ "{{count}} connection_one": "{{count}} connection",
+ "{{count}} connection_other": "{{count}} connections",
+ "No connections yet.": "No connections yet.",
+ "Add connection": "Add connection",
+ "Connection added.": "Connection added.",
+ "A connection holds one vendor credential and supplies every model service that can use it.": "A connection holds one vendor credential and supplies every model service that can use it.",
+ "Credentials are currently entered separately for {{services}}.": "Credentials are currently entered separately for {{services}}.",
+ "{{service}} now uses {{name}}.": "{{service}} now uses {{name}}.",
+ "Added a {{service}} profile — switch to it on its own page.": "Added a {{service}} profile — switch to it on its own page.",
+ "No key": "No key",
+ "Not supplying any service yet": "Not supplying any service yet",
+ "Profiles it supplies keep their current credentials but stop following this connection.": "Profiles it supplies keep their current credentials but stop following this connection.",
+ "Nothing is using this connection.": "Nothing is using this connection.",
+ "Saving pushes these values into every profile this connection supplies.": "Saving pushes these values into every profile this connection supplies.",
+ "The provider returned no models.": "The provider returned no models.",
+ "Could not reach provider.": "Could not reach provider.",
+ "Leave blank to use each service's official endpoint.": "Leave blank to use each service's official endpoint.",
+ "Configure these services": "Configure these services",
+ "Select a model...": "Select a model...",
+ "List models": "List models",
+ "Set on its own page": "Set on its own page",
+ "No chat model picked yet — the profile is still created, pick one on the LLM page.": "No chat model picked yet — the profile is still created, pick one on the LLM page.",
+ "No language models are configured yet.": "No language models are configured yet.",
+ "Configure one": "Configure one",
+ "Resolves at call time.": "Resolves at call time.",
+ "Both calls are short and frequent, so a smaller, faster model is usually the better trade here.": "Both calls are short and frequent, so a smaller, faster model is usually the better trade here.",
+ "Credentials come from the {{name}} connection.": "Credentials come from the {{name}} connection.",
+ "Edit connection": "Edit connection",
+ "Use its own key": "Use its own key",
+ "Connections": "Connections",
+ "One vendor credential, supplying every model service that can use it. Services can still hold their own key instead.": "One vendor credential, supplying every model service that can use it. Services can still hold their own key instead.",
+ "Task models": "Task models",
+ "The model behind work DeepTutor starts on its own, rather than in a turn you asked for.": "The model behind work DeepTutor starts on its own, rather than in a turn you asked for.",
+ "These lines are written by the active model unless you pin one.": "These lines are written by the active model unless you pin one.",
+ "Voice": "Voice",
+ "Provider-specific voice name, e.g. alloy (OpenAI) or model:voice (SiliconFlow).": "Provider-specific voice name, e.g. alloy (OpenAI) or model:voice (SiliconFlow).",
+ "Output format": "Output format",
+ "Image size": "Image size",
+ "Default pixel size sent with each request. Leave empty for the provider default.": "Default pixel size sent with each request. Leave empty for the provider default.",
+ "Quality / Style": "Quality / Style",
+ "quality (e.g. hd)": "quality (e.g. hd)",
+ "style (e.g. vivid)": "style (e.g. vivid)",
+ "Aspect ratio": "Aspect ratio",
+ "Defaults sent with each request. Leave empty for the provider default.": "Defaults sent with each request. Leave empty for the provider default.",
+ "Duration / Resolution": "Duration / Resolution",
+ "seconds": "seconds",
+ "Configured {{count}} services and made them active.": "Configured {{count}} services and made them active.",
+ "Configured {{count}} services — {{kept}} kept your existing choice.": "Configured {{count}} services — {{kept}} kept your existing choice.",
+ "Opened from Connections. Applying will also make this the {{service}} profile in use.": "Opened from Connections. Applying will also make this the {{service}} profile in use.",
+ "Back to {{name}}": "Back to {{name}}",
+ "Save draft": "Save draft",
+ "Draft not applied yet": "Draft not applied yet",
+ "Draft saved — not applied yet": "Draft saved — not applied yet",
+ "Draft discarded": "Draft discarded",
+ "Applied": "Applied",
+ "Store these changes without putting them into effect.": "Store these changes without putting them into effect.",
+ "Put these settings into effect.": "Put these settings into effect.",
+ "Go back to what is currently live.": "Go back to what is currently live.",
+ "Could not save the draft: {{message}}": "Could not save the draft: {{message}}",
+ "Could not apply: {{message}}": "Could not apply: {{message}}",
+ "Search settings": "Search settings",
+ "Settings sections": "Settings sections",
+ "No settings match “{{query}}”.": "No settings match “{{query}}”.",
+ "Nothing to do — everything configured is working.": "Nothing to do — everything configured is working.",
+ "A saved draft is waiting to be applied.": "A saved draft is waiting to be applied.",
+ "There are changes you have not saved anywhere yet.": "There are changes you have not saved anywhere yet.",
+ "{{service}} failed its last connection test.": "{{service}} failed its last connection test.",
+ "In use": "In use",
+ "Not set up yet": "Not set up yet",
+ "{{ready}} of {{total}} model services set up.": "{{ready}} of {{total}} model services set up.",
+ "Appearance, models, knowledge, chat, and memory.": "Appearance, models, knowledge, chat, and memory.",
+ "Take the tour": "Take the tour",
+ "Draft saved {{when}}": "Draft saved {{when}}",
+ "Set up with DeepTutor": "Set up with DeepTutor",
+ "Delete this profile and every model under it?": "Delete this profile and every model under it?",
+ "Model services": "Model services",
+ "Test passed": "Test passed",
+ "Providers": "Providers",
+ "Add provider": "Add provider",
+ "Add model": "Add model",
+ "All providers": "All providers",
+ "Edit model": "Edit model",
+ "Provider default endpoint": "Provider default endpoint",
+ "{{n}} ctx": "{{n}} ctx",
+ "{{n}} dim": "{{n}} dim",
+ "No model id yet": "No model id yet",
+ "Set as active": "Set as active",
+ "Task model": "Task model",
+ "Nothing configured here, so both calls use the language model.": "Nothing configured here, so both calls use the language model.",
+ "No language model is configured yet.": "No language model is configured yet.",
+ "Bring a provider over from the LLM": "Bring a provider over from the LLM",
+ "Choose a provider to copy...": "Choose a provider to copy...",
+ "Copy over": "Copy over",
+ "Conversation titles and home screen starting points. Configured like the LLM — pick a provider, then a model. Left empty, both use the LLM.": "Conversation titles and home screen starting points. Configured like the LLM — pick a provider, then a model. Left empty, both use the LLM.",
+ "Pick a course": "Pick a course",
+ "No courses yet — make one to group a subject's material.": "No courses yet — make one to group a subject's material.",
+ "Not in a course": "Not in a course",
+ "Manage courses": "Manage courses",
+ "nothing here yet — you'll set one up": "nothing here yet — you'll set one up",
+ "Nothing made yet to attach. Start one below and it joins this course as soon as it exists.": "Nothing made yet to attach. Start one below and it joins this course as soon as it exists.",
+ "Start something new": "Start something new",
+ "New mastery path": "New mastery path",
+ "New reading collection": "New reading collection",
+ "How conversations here start": "How conversations here start",
+ "Persona": "Persona",
+ "Applied when a conversation opens from this course, along with its knowledge bases. You can change any of it once inside.": "Applied when a conversation opens from this course, along with its knowledge bases. You can change any of it once inside.",
+ "This course has no notebook yet": "This course has no notebook yet",
+ "Make one here and it joins this course — its notes then travel with everything else in it.": "Make one here and it joins this course — its notes then travel with everything else in it.",
+ "Guided Solving": "Guided Solving",
+ "Generate charts, diagrams, interactive pages, or math animations": "Generate charts, diagrams, interactive pages, or math animations",
+ "Arrange sidebar": "Arrange sidebar",
+ "Arrange {{feature}}": "Arrange {{feature}}",
+ "Move to More": "Move to More",
+ "Move out of More": "Move out of More",
+ "Reset sidebar order": "Reset sidebar order",
+ "Reset chat order": "Reset chat order",
+ "Delete provider": "Delete provider",
+ "Delete this provider?": "Delete this provider?",
+ "This is your active {{service}} provider — deleting it switches to {{next}}.": "This is your active {{service}} provider — deleting it switches to {{next}}.",
+ "This removes {{count}} model(s) and its saved credentials. This can't be undone.": "This removes {{count}} model(s) and its saved credentials. This can't be undone.",
+ "nothing configured": "nothing configured",
+ "Immersive Watching": "Immersive Watching",
+ "Native YouTube learning": "Native YouTube learning",
+ "Refresh provider": "Refresh provider",
+ "Close video learning": "Close video learning",
+ "Open a YouTube learning video": "Open a YouTube learning video",
+ "Paste a watch, Shorts, Live, Embed, or youtu.be link.": "Paste a watch, Shorts, Live, Embed, or youtu.be link.",
+ "YouTube URL": "https://youtu.be/…",
+ "Use native YouTube for this video": "Use native YouTube for this video",
+ "Use native YouTube": "Use native YouTube",
+ "Transcript learning is unavailable ({{reason}}). Playback still works, but Explain here is disabled.": "Transcript learning is unavailable ({{reason}}). Playback still works, but Explain here is disabled.",
+ "no captions": "no captions",
+ "Retry captions": "Retry captions",
+ "Explain here": "Explain here",
+ "YouTube playback failed.": "YouTube playback failed.",
+ "YouTube learning video": "YouTube learning video",
+ "The configured Invidious stream could not be played.": "The configured Invidious stream could not be played.",
+ "Settings could not be loaded.": "Settings could not be loaded.",
+ "Saved. New and reopened videos use this provider immediately.": "Saved. New and reopened videos use this provider immediately.",
+ "Settings could not be saved.": "Settings could not be saved.",
+ "Testing Invidious…": "Testing Invidious…",
+ "Invidious connected ({{message}}).": "Invidious connected ({{message}}).",
+ "Invidious unavailable: {{message}}": "Invidious unavailable: {{message}}",
+ "Video Learning": "Video Learning",
+ "Choose native YouTube or a self-hosted Invidious instance. Provider changes do not rebuild learning materials or reset progress.": "Choose native YouTube or a self-hosted Invidious instance. Provider changes do not rebuild learning materials or reset progress.",
+ "Official privacy-enhanced IFrame Player. No media is proxied or stored.": "Official privacy-enhanced IFrame Player. No media is proxied or stored.",
+ "HTML5 playback through your configured Invidious instance.": "HTML5 playback through your configured Invidious instance.",
+ "Native YouTube": "Native YouTube",
+ "Self-hosted Invidious": "Self-hosted Invidious",
+ "Invidious connection": "Invidious connection",
+ "Backend API origin": "Backend API origin",
+ "Invidious API URL": "http://127.0.0.1:3000",
+ "Browser-facing origin (optional)": "Browser-facing origin (optional)",
+ "Defaults to the API origin": "Defaults to the API origin",
+ "YouTube transcript adapter": "YouTube transcript adapter",
+ "Optional captions; playback remains available when the package or captions are unavailable.": "Optional captions; playback remains available when the package or captions are unavailable.",
+ "youtube-transcript-api": "youtube-transcript-api",
+ "The player provider is unavailable.": "The player provider is unavailable.",
+ "This video could not be opened.": "This video could not be opened.",
+ "Explain this part of the video": "Explain this part of the video",
+ "YouTube Player API did not initialize.": "YouTube Player API did not initialize.",
+ "YouTube Player API timed out.": "YouTube Player API timed out.",
+ "YouTube Player API could not be loaded.": "YouTube Player API could not be loaded.",
+ "Vector index": "Vector index",
+ "Applies on the next full re-index": "Applies on the next full re-index",
+ "Exact nearest-neighbor search. Best for small and medium knowledge bases.": "Exact nearest-neighbor search. Best for small and medium knowledge bases.",
+ "Approximate graph search for large knowledge bases. Faster at scale with a small recall trade-off.": "Approximate graph search for large knowledge bases. Faster at scale with a small recall trade-off.",
+ "HNSW graph degree": "HNSW graph degree",
+ "HNSW construction candidates": "HNSW construction candidates",
+ "HNSW search candidates": "HNSW search candidates",
+ "Reranking": "Reranking",
+ "Applies on the next query": "Applies on the next query",
+ "Reranker model": "Reranker model",
+ "Leave empty to disable. Example: BAAI/bge-reranker-base. Requires the optional rag-rerank extra.": "Leave empty to disable. Example: BAAI/bge-reranker-base. Requires the optional rag-rerank extra.",
- "Rerank candidates": "Rerank candidates"
++ "Rerank candidates": "Rerank candidates",
+ "Needs Review": "Needs Review",
+ "All Sources": "All Sources",
+ "Deep Question": "Deep Question",
++ "Book": "Book",
+ "All Materials": "All Materials",
+ "Score Trend": "Score Trend",
+ "All Trends": "All Trends",
+ "First Attempt": "First Attempt",
+ "Improved": "Improved",
+ "Declined": "Declined",
+ "Unchanged": "Unchanged",
+ "Resolved": "Resolved",
+ "Mark Resolved": "Mark Resolved",
+ "Reopen Review": "Reopen Review"
}
diff --cc web/locales/zh/app.json
index b94498953,6ec5942b8..baa0959fa
--- a/web/locales/zh/app.json
+++ b/web/locales/zh/app.json
@@@ -3615,720 -3403,17 +3615,734 @@@
"Filter by archive status": "按归档状态筛选",
"Active and archived": "进行中与已归档",
"Loading conversations": "正在加载聊天",
+ "Immersive Reading tooltip": "与有出处依据的 AI 伙伴一起阅读文档、网页和音视频。",
+ "Reading Room": "阅读室",
+ "All workspaces": "全部阅读空间",
+ "Folders": "文件夹",
+ "Tag name": "标签名称",
+ "Create folders to group long-running reading projects.": "创建文件夹,归纳长期阅读项目。",
+ "No tags yet": "暂无标签",
+ "Private by default": "默认私密",
+ "Your sources, notes and reading conversations stay in your account.": "你的资料、笔记和阅读对话只保存在自己的账户中。",
+ "Your reading library": "你的阅读资料库",
+ "Read documents, web pages and media with an AI companion that keeps every citation grounded.": "与 AI 阅读伙伴一起阅读文档、网页和音视频,每个引用都有原文依据。",
+ "Add reading": "添加阅读资料",
+ "Search workspaces and sources": "搜索阅读空间和资料",
+ "{{count}} workspaces": "{{count}} 个阅读空间",
+ "Grid view": "网格视图",
+ "List view": "列表视图",
+ "Opening your library…": "正在打开资料库…",
+ "Unable to load library.": "无法加载资料库。",
+ "Start your first reading workspace": "创建第一个阅读空间",
+ "Bring a paper, book, web page, lecture or recording. DeepTutor will keep the material, notes and conversations together.": "导入论文、书籍、网页、讲座或录音;DeepTutor 会把资料、笔记和对话集中保存。",
+ "A focused space for close reading and grounded conversation.": "用于精读和有据讨论的专注空间。",
+ "{{count}} sources": "{{count}} 份资料",
+ "Workspace menu": "阅读空间菜单",
+ "Delete workspace": "删除阅读空间",
+ "Delete this reading workspace?": "删除这个阅读空间?",
+ "Source shelf": "资料书架",
+ "Reusable materials across all reading workspaces": "可在不同阅读空间中重复使用的资料",
+ "Create one workspace from one or many sources.": "用一份或多份资料创建阅读空间。",
+ "Files & media": "文件与媒体",
+ "Web & YouTube": "网页与 YouTube",
+ "Web & video": "网页与视频",
+ "Workspace title": "阅读空间名称",
+ "Optional — inferred from the first source": "可选——默认从第一份资料推断",
+ "Choose documents, slides, audio or video": "选择文档、幻灯片、音频或视频",
+ "PDF, EPUB, DOCX, PPTX, text, MP3, WAV, MP4, MOV": "支持 PDF、EPUB、DOCX、PPTX、文本、MP3、WAV、MP4、MOV",
+ "{{count}} files selected": "已选择 {{count}} 个文件",
+ "{{size}} MB": "{{size}} MB",
+ "Links": "链接",
+ "One URL per line — articles, documentation, or YouTube": "每行一个网址——文章、文档或 YouTube",
+ "One URL per line — articles, documentation, YouTube, or Bilibili": "每行一个网址——文章、文档、YouTube 或 Bilibili",
+ "Create workspace": "创建阅读空间",
+ "Importing…": "正在导入…",
+ "Imported reading": "导入的阅读资料",
+ "Choose one or more files.": "请选择一个或多个文件。",
+ "Paste at least one URL.": "请粘贴至少一个网址。",
+ "Import failed.": "导入失败。",
+ "Opening reading workspace…": "正在打开阅读空间…",
+ "This reading workspace could not be opened.": "无法打开这个阅读空间。",
+ "The reading conversation could not be loaded.": "无法加载阅读对话。",
+ "Back to library": "返回资料库",
+ "Rename workspace": "重命名阅读空间",
+ "Organize notes": "整理笔记",
+ "Send to Notebook": "发送到 Notebook",
+ "Build Mastery Path": "生成精通之路",
+ "AI Companion": "AI 阅读伙伴",
+ "Add source": "添加资料",
+ "Remove source": "移除资料",
+ "Remove this source from the workspace?": "从阅读空间中移除这份资料?",
+ "Transcript": "转写文本",
+ "Search this source": "搜索当前资料",
+ "This source has no navigable outline yet.": "这份资料暂时没有可导航的大纲。",
+ "Source structure will appear after processing.": "处理完成后会显示资料结构。",
+ "{{count}} passages available to the companion": "AI 伙伴可读取 {{count}} 个段落",
+ "Source grounded": "已绑定原始资料",
+ "Current passage": "当前段落",
+ "Beginning": "开头",
+ "Ask AI": "询问 AI",
+ "Grounded in your sources": "回答基于你的资料",
+ "Link earlier reading conversations": "关联之前的阅读对话",
+ "Send a message first, then link earlier reading conversations": "先发一条消息,才能关联其他阅读对话",
+ "Reading conversations": "阅读对话",
+ "Jump to a question": "跳到某个提问",
+ "Resize reading companion": "调整阅读伙伴宽度",
+ "Delete “{{title}}”? The transcript cannot be recovered.": "删除「{{title}}」?对话记录将无法恢复。",
+ "New reading conversation": "新建阅读对话",
+ "Reading conversation": "阅读对话",
+ "Reading guide": "阅读指南",
+ "Summarize here": "总结当前内容",
+ "Compare sources": "比较资料",
+ "Create a concise reading guide for the active material. Identify its thesis, structure, difficult concepts, and the best order to study it. Cite every claim.": "为当前资料制作简洁的阅读指南:找出主旨、结构、难点和最佳阅读顺序,并为每项判断标注出处。",
+ "Summarize the passage currently visible in the reader, explain why it matters, and cite the exact source location.": "总结阅读器中当前可见的段落,解释它为何重要,并引用准确的原文位置。",
+ "Compare the materials open in this workspace. First list the tabs, then switch and read only the passages needed. Highlight agreements, tensions, and evidence with citations.": "比较此阅读空间中打开的资料。先列出标签页,再按需切换并只读取必要段落;标出共识、分歧与证据,并给出引用。",
+ "Read with a grounded companion": "和有依据的 AI 伙伴一起阅读",
+ "Ask about {{title}}, select a passage, or use a guided action above.": "可以询问《{{title}}》、选中一段原文,或使用上方的引导操作。",
+ "Open a source to begin a reading conversation.": "打开一份资料,开始阅读对话。",
+ "Explain the key argument": "解释核心论点",
+ "Challenge this evidence": "质疑这项证据",
+ "Turn this into study notes": "整理成学习笔记",
+ "Ask about this source…": "询问当前资料…",
+ "Using {{count}} linked conversations as context": "正在引用 {{count}} 个关联对话作为上下文",
+ "Answers stay bound to the active source unless you switch tabs.": "除非切换标签页,否则回答始终绑定当前资料。",
+ "Link reading conversations": "关联阅读对话",
+ "Linked conversations are passed explicitly as historical context. They remain separate and never appear in regular Chat history.": "关联对话会被明确作为历史上下文传入;它们仍彼此独立,也不会出现在普通 Chat 历史中。",
+ "Create another reading conversation first.": "请先创建另一个阅读对话。",
+ "Link conversations": "关联对话",
+ "Send reading notes to Notebook": "把阅读笔记发送到 Notebook",
+ "Highlights and notes are organized by source and locator before they are copied. Your material stays private in the reading workspace.": "复制前会按资料和原文位置整理高亮与笔记;原始资料仍私密保存在阅读空间中。",
+ "Could not load notebooks.": "无法加载 Notebook。",
+ "Create a Notebook first.": "请先创建一个 Notebook。",
+ "Reading notes sent to Notebook.": "阅读笔记已发送到 Notebook。",
+ "Organizing notes…": "正在整理笔记…",
+ "Notes organized with source provenance.": "笔记已按资料出处整理。",
+ "Could not organize notes.": "无法整理笔记。",
+ "Organized reading notes": "已整理的阅读笔记",
+ "Copy Markdown": "复制 Markdown",
+ "Building Mastery Path…": "正在生成精通之路…",
+ "Choose a Mastery Path ID for this reading workspace": "为这个阅读空间设置掌握路径 ID",
+ "Mastery Path created. Open Learning Space to begin.": "精通之路已创建,可前往学习空间开始学习。",
+ "Mastery Path creation failed.": "精通之路创建失败。",
+ "Add a source to begin": "添加资料以开始阅读",
+ "Open library": "打开资料库",
+ "Preparing {{title}}": "正在准备《{{title}}》",
+ "Extracting structure and grounded passages…": "正在提取结构与可引用段落…",
+ "This source could not be prepared": "无法处理这份资料",
+ "Try importing the source again.": "请尝试重新导入资料。",
+ "Open failed.": "打开失败。",
+ "Save failed.": "保存失败。",
+ "Open in Immersive Reading": "在沉浸式阅读中打开",
+ "Open in Reading": "进入阅读",
+ "The attachment could not be downloaded.": "无法下载该附件。",
+ "The attachment could not be opened in Immersive Reading.": "无法在沉浸式阅读中打开该附件。",
+ "Move to folder": "移动到文件夹",
+ "Move to folder — enter a folder name": "移动到文件夹——请输入文件夹名称",
+ "Add tag": "添加标签",
+ "Add tag — enter a tag name": "添加标签——请输入标签名称",
+ "No transcript available": "暂无可用字幕",
+ "Playback still works. Transcript-grounded explanation and timestamp search are unavailable for this video.": "视频仍可正常播放,但当前无法进行基于字幕的讲解与时间戳搜索。",
+ "Native media": "原生媒体",
+ "Open official": "在官方页面打开",
+ "Video timeline": "视频时间线",
+ "This video's owner disabled embedded playback. Open it on YouTube; DeepTutor can still use captions when they are available.": "视频所有者已禁止嵌入播放。请前往 YouTube 观看;如果字幕可用,DeepTutor 仍可继续基于字幕伴读。",
+ "YouTube could not verify this embedded player. Open the official video, or check the browser's referrer policy.": "YouTube 无法验证当前嵌入播放器。请打开官方视频,或检查浏览器的来源策略。",
+ "YouTube playback failed ({{code}}).": "YouTube 播放失败({{code}})。",
+ "Only chapter markers are available for this video. You can navigate by chapter, but the companion will not treat them as a spoken transcript.": "这个视频只提供了章节标记。你可以按章节跳转,但 AI 伴读不会把章节标题当作视频逐字稿。",
+ "This video has no accessible transcript. Playback works, but the companion cannot ground explanations in its spoken content.": "这个视频没有可访问的字幕。视频仍可播放,但 AI 伴读无法依据其中的语音内容进行讲解。",
+ "Add source to workspace": "向工作区添加资料",
+ "Each source opens as its own tab. The companion stays bound to one active tab at a time.": "每份资料都会在独立标签页中打开;AI 伴读每次只绑定当前标签页。",
+ "From library": "从资料库选择",
+ "Could not load sources.": "无法加载资料。",
+ "Choose a source from your library.": "请从资料库选择一份资料。",
+ "Source could not be added.": "无法添加这份资料。",
+ "No unused sources in your library yet.": "资料库里暂时没有可添加的其他资料。",
+ "Close panels": "关闭面板",
+ "Close AI Companion": "关闭 AI 阅读伙伴",
+ "Close contents": "关闭目录",
+ "Back to the library": "返回资料库",
+ "This source could not be opened.": "这份资料打不开。",
+ "This transcript could not be loaded.": "字幕加载失败。",
+ "This Bilibili video would not load in an embedded player. Open it on Bilibili; DeepTutor can still use its captions.": "这个 B 站视频无法在嵌入播放器中加载。可以到 B 站打开;DeepTutor 仍然可以使用它的字幕。",
+ "This Bilibili video could not be loaded.": "这个 B 站视频加载失败。",
+ "This player does not report playback position, so the passage follows the controls below rather than the video.": "这个播放器不会回报播放进度,因此当前段落跟随下方的控件,而不是视频本身。",
+ "Ask once and every Partner answers from their own angle. Use @name to narrow it down.": "问一次,每位伙伴都会从自己的角度回答。用 @名字 可以只问其中几位。",
+ "Thinking…": "正在思考…",
+ "This Partner could not answer.": "这位伙伴没能回答。",
+ "Quote this in a reply": "引用这段发言追问",
+ "Follow up": "追问",
+ "Shared context": "共享上下文",
+ "Visible to every Partner in this group": "群组里每位伙伴都能看到",
+ "Nothing shared yet": "还没有共享内容",
+ "Let them discuss": "让他们讨论",
+ "Not now": "暂不",
+ "Waiting for {{name}}": "正在等 {{name}}",
+ "Discussed": "已讨论",
+ "Declined": "已拒绝",
+ "Unrecognized: {{names}}": "无法识别:{{names}}",
+ "Following up on {{name}}": "追问 {{name}}",
+ "{{done}} of {{total}} answered": "{{total}} 位中已有 {{done}} 位回答",
+ "{{count}} selected · at least 2": "已选 {{count}} 位 · 至少 2 位",
+ "Delete permanently": "确认删除",
+ "The map could not be loaded": "地图读取失败",
+ "This map could not be found": "找不到这张地图",
+ "Back to topics": "返回主题列表",
+ "Learning topics": "学习主题",
+ "Reconnecting": "正在重连",
+ "Edit modules": "编辑模块",
+ "More actions": "更多操作",
+ "Reset progress": "重置进度",
+ "Delete topic": "删除主题",
+ "knowledge points": "知识点",
+ "modules": "个模块",
+ "Next up": "下一个",
+ "Outline is empty": "大纲为空",
+ "Celebrate completion": "完成庆祝",
+ "This migrated topic has no modules yet. Add at least one module and knowledge point to begin.": "这个迁移过来的主题还没有模块。添加至少一个模块和知识点后即可开始。",
+ "Add modules": "添加模块",
+ "Continue learning": "继续学习",
+ "Begin first waypoint": "开始第一关",
+ "Add the missing modules": "补上缺失的模块",
+ "The topic migrated safely but has no modules yet. Define the abilities you want to master before tutoring begins.": "主题已安全迁移,但还没有模块。请先定义你想掌握的能力,再开始学习。",
+ "Add modules and knowledge points": "添加模块和知识点",
+ "Reset learning progress?": "重置学习进度?",
+ "Modules and knowledge points stay. Mastery evidence, pending questions, and review schedules will be cleared.": "模块和知识点会保留;掌握证据、待回答问题和复习计划会被清空。",
+ "Confirm reset": "确认重置",
+ "Permanently delete this topic?": "永久删除学习主题?",
+ "The map, evidence, review schedule, and linked records will be deleted. This cannot be undone.": "地图、证据、复习计划和关联记录都会删除。此操作无法撤销。",
+ "The atlas could not be loaded.": "暂时无法读取地图。",
+ "Marked as known": "已标记掌握",
+ "Mastered": "已掌握",
+ "Not started": "未开始",
+ "Topic outline": "主题大纲",
+ "Evidence could not be loaded": "证据读取失败",
+ "Update failed": "更新失败",
+ "Evidence": "掌握证据",
+ "Confirmed by you": "由你确认",
+ "Marked as known by you; assessed evidence is unchanged.": "已由你标记为掌握;测评证据保持不变。",
+ "Return to assessment": "回到正常测评",
+ "Optional: why are you skipping this?": "可选:为什么跳过这一项?",
+ "Confirm mastery": "确认已掌握",
+ "I already know this — advance": "我已经掌握,直接放行",
+ "Learning goal": "学习目标",
+ "Could not generate the outline. Please retry.": "大纲生成失败,请重试。",
+ "Creation failed. Please retry.": "创建失败,请重试。",
+ "New topic": "新建主题",
+ "Plan the modules": "规划学习模块",
+ "Creation steps": "创建步骤",
+ "Goal": "目标",
+ "Choose sources": "选择资料",
+ "Charting…": "正在绘图…",
+ "Generate outline": "生成大纲",
+ "Saving map…": "正在落图…",
+ "Map workshop": "地图工坊",
+ "Renaming preserves existing evidence. Removing a knowledge point also removes its mastery, review schedule, and manual override. Confirm the structure before saving.": "只改名会保留已有证据;删除知识点会同时移除它的掌握度、复习计划和手动标记。保存前请确认结构。",
+ "All complete": "全部完成",
+ "The learning map could not be loaded": "学习地图读取失败",
+ "This session belongs to a different topic. Open a session from this topic instead.": "这个会话属于另一个主题。请从当前主题里打开会话。",
+ "This learning session could not be opened": "这个学习会话无法打开",
+ "This learning map could not be found": "找不到这张学习地图",
+ "Back to topic map": "返回主题地图",
+ "Guided trail": "引导学习",
+ "Reopening this session…": "正在重新打开这个会话…",
+ "The session did not open": "会话没有成功打开",
+ "Start a new session": "开启新会话",
+ "Your tutor adapts to your answers. Begin with a quick check, an intuitive explanation, or a challenge.": "导师会根据你的回答调整。你可以从一道摸底题、直观讲解或一个挑战开始。",
+ "Stop response": "停止回答",
+ "The tutor records verifiable evidence for each knowledge point; you can always mark one as known yourself.": "导师会为每个知识点记录可验证的证据;你也可以随时自己标记为已掌握。",
+ "Spaced review": "间隔复习",
+ "Not scheduled": "未排期",
+ "Your explanation": "你的解释",
+ "(prompt unavailable)": "(题面已不可用)",
+ "You said: ": "你答:",
+ "(blank)": "(空)",
+ "Error diagnosis": "错因",
+ " · cleared": " · 已订正",
+ "No attempts yet. Once you work through this waypoint, its questions, your answers, and the grading evidence will appear here.": "还没有作答记录。在对话里继续辅导后,这里会出现题目、你的回答和判分。",
+ "Qualitative gate: explain it in your own words": "定性门槛:用自己的话讲清楚",
+ "Topic name": "主题名称",
+ "What is this path called?": "这条路叫什么?",
+ "Review plan": "复习计划",
+ "Scheduled by your forgetting curve": "按遗忘曲线安排",
+ "Nothing is due today. Keep going — reviews will resurface at the right time.": "今天没有待复习的内容。继续学习,到时间会自动提醒你复习。",
+ "Ready now": "现在可复习",
+ "New knowledge point": "新知识点",
+ "Review and adjust the modules": "检查并调整模块",
+ "Modules define learning phases and knowledge points define the abilities to master. Up/down controls make the order editable by keyboard as well as pointer.": "模块划分学习阶段,知识点定义要掌握的能力。上下按钮让顺序也能用键盘调整。",
+ "Map description": "地图简介",
+ "Keep at least one module.": "至少保留一个模块。",
+ "Module name cannot be blank.": "模块名称不能为空。",
+ "Procedure": "过程",
+ "Design": "设计",
+ "Knowledge point name cannot be blank.": "知识点名称不能为空。",
+ "Every module needs at least one knowledge point.": "每个模块至少需要一个知识点。",
+ "Add knowledge point": "添加知识点",
+ "Add module": "添加模块",
+ "Sessions": "学习会话",
+ "Your sessions": "你的会话",
+ "Start a new learning session": "新建学习会话",
+ "No sessions yet": "还没有学习会话",
+ "Start your first session. Later you can resume this thread or begin again from a fresh angle.": "开始第一次学习。之后你可以回到同一个会话,或换个角度重新开始。",
+ "Begin learning": "开始学习",
+ "Tutor is responding": "导师正在回应",
+ "Start from a fresh angle": "从新视角开启会话",
+ "Learning space": "学习空间",
+ "Your learning topics": "你的学习主题",
+ "Work through each topic's knowledge points, then pick up any session where you left off.": "逐个攻克主题里的知识点,随时回到任意一次会话继续。",
+ "Chart a new topic": "开启新主题",
+ "Open their maps for a short review without losing your main route.": "进入对应地图即可开始短复习,不会打断当前主线。",
+ "Start review": "开始复习",
+ "Active learning topics": "正在学习的主题",
+ "Your atlas is still uncharted": "地图仍是一张空白纸",
+ "Tell DeepTutor what you want to learn, mix in your books, notes, and knowledge bases, and it will draft the first outline.": "告诉 DeepTutor 你想学什么,再加上你的书、笔记和知识库,它会草拟第一版大纲。",
+ "Chart the first map": "绘制第一张地图",
+ "due": "待复习",
+ "What do you want to learn?": "你想学什么?",
+ "The more specific the goal, the closer each knowledge point lands to the ability you actually want.": "目标越具体,知识点就越贴近你真正想获得的能力。",
+ "e.g. Linear algebra": "例如:线性代数",
+ "I want to build geometric intuition for vector spaces and transformations, then solve eigenvalue problems independently.": "我希望能从几何直觉出发,理解向量空间、线性变换,并能独立解决特征值问题。",
+ "Map emblem": "地图徽记",
+ "Which materials should it draw on?": "用哪些资料作为依据?",
+ "Mix as many sources as useful. Your goal is always included; the rest grounds the outline in your own material.": "可以混合多个来源。目标始终会包含在内,其余来源让大纲贴近你自己的材料。",
+ "No books are available yet": "书架里还没有可用内容",
+ "No saved notebooks yet": "还没有保存过笔记",
+ "No retrievable knowledge bases yet": "还没有可检索的知识库",
+ "Currently unavailable": "当前不可用",
+ "Module {{n}}": "模块 {{n}}",
+ "Ask your tutor about “{{waypoint}}”…": "问导师关于「{{waypoint}}」的问题…",
+ "Tab to complete": "Tab 补全",
+ "Due {{relative}} · {{absolute}}": "{{relative}}复习 · {{absolute}}",
+ "interval {{interval}} · {{streak}} in a row": "第 {{interval}} 档 · 连对 {{streak}}",
+ "Attempts ({{correct}}/{{total}} correct)": "作答记录({{correct}}/{{total}} 正确)",
+ " · {{count}} retries": " · 重试 {{count}} 次",
+ "Quantitative gate: {{pct}}%": "定量门槛:{{pct}}%",
+ "Even with {{correct}}/{{total}} correct so far, mastery also weighs evidence volume, difficulty, and recent consistency. One more discriminating practice can raise it further.": "虽然目前 {{correct}}/{{total}} 全部答对,掌握分仍会结合证据数量、难度与近期稳定性计算;再完成一次有区分度的练习即可继续提高。",
+ "New module {{n}}": "新模块 {{n}}",
+ "Module {{n}} name": "第 {{n}} 个模块名称",
+ "Move module “{{name}}” up": "将模块「{{name}}」上移",
+ "Move module “{{name}}” down": "将模块「{{name}}」下移",
+ "Remove module “{{name}}”": "删除模块「{{name}}」",
+ "Knowledge point {{point}} name in module {{region}}": "模块 {{region}} 的第 {{point}} 个知识点名称",
+ "Type for “{{name}}”": "「{{name}}」类型",
+ "Move “{{name}}” up": "将「{{name}}」上移",
+ "Move “{{name}}” down": "将「{{name}}」下移",
+ "Remove “{{name}}”": "删除「{{name}}」",
+ "{{beacons}} reviews are due across {{count}} topics": "{{count}} 个主题共有 {{beacons}} 项待复习",
+ "Open {{name}}, {{mastered}} of {{total}} knowledge points complete": "打开 {{name}},已完成 {{mastered}}/{{total}} 个知识点",
+ "Choose map emblem {{emblem}}": "选择地图徽记 {{emblem}}",
+ "{{sources}} could not be loaded; you can still generate from the available sources.": "{{sources}} 暂时无法读取;仍可只用现有来源生成。",
+ "source list separator": "、",
+ "structural": "知识结构性",
+ "deviation": "理解偏差",
+ "application": "应用错误",
+ "metacognitive": "元认知",
+ "Materials": "资料",
+ "Ask several Partners at once and compare how they differ.": "一次问多位伙伴,比较他们的判断有何不同。",
+ "Bring two or more Partners together — they share the conversation but reason on their own.": "把两位以上的伙伴组到一起——他们共享这段对话,但各自独立思考。",
+ "Create one more Partner to form your first group.": "再创建一位伙伴,就能组成第一个群组。",
+ "This round could not finish": "这一轮没能完成",
+ "{{requester}} asked {{target}}": "{{requester}} 追问了 {{target}}",
+ "Follow-up discussion": "追加讨论",
+ "Untitled group": "未命名群组",
+ "Pick {{count}} more Partner(s)": "还需再选 {{count}} 位伙伴",
+ "A group needs at least two Partners. Create one more first.": "群组至少需要两位伙伴,先再创建一位。",
+ "No reasoning to show yet": "还没有可查看的思考过程",
+ "Reasoning steps": "思考过程",
+ "You stopped this round": "你停止了这一轮",
+ "New discussion": "新的讨论",
+ "{{count}} messages": "{{count}} 条消息",
+ "Ask a peer": "让同伴回应",
+ "Who should respond to {{name}}?": "让谁回应 {{name}}?",
+ "Here is the point I just made: “{{excerpt}}”. What is your take on it?": "我刚才的看法是:「{{excerpt}}」。你怎么看?",
+ "How they discuss": "讨论方式",
+ "Parallel answers": "并行回答",
+ "One after another": "依次补充",
+ "Cross-examination": "交叉辩论",
+ "Everyone answers the same question at once, independently.": "所有人同时独立回答同一个问题。",
+ "Each member sees what the others already said and builds on it.": "每位伙伴都能看到前面说过的内容,在此之上补充。",
+ "First everyone states a position, then each responds to the disagreements.": "先各自表明立场,再针对分歧互相回应。",
+ "Fastest": "最快",
+ "Slower · they wait for each other": "较慢 · 需要依次等待",
+ "Two rounds · about twice the wait": "两轮 · 等待约翻倍",
+ "Whatever the mode, each member's tool traces and intermediate reasoning stay private.": "无论哪种方式,每位伙伴的工具调用与中间思考都只有你能看到。",
+ "Choose at least two Partners, then how they should discuss.": "先选至少两位伙伴,再决定他们怎么讨论。",
+ "Rebuttal": "交锋",
+ "Summarise this round": "总结这一轮",
+ "Who should sum it up?": "让谁来总结?",
+ "Could not refresh — retry": "刷新失败,重试",
+ "Start with a quick check of what I already know": "先出一道题,看看我已经会了什么",
+ "Teach me from intuition and one concrete example": "从直觉和一个具体例子讲起",
+ "Give me a challenging question right away": "直接来一道有挑战的题",
+ "Ask once and they answer in turn — each one sees what came before and builds on it.": "问一次,伙伴们依次作答——后面的人能看到前面说过的,负责补充而不是重复。",
+ "Ask once and they each take a position, then respond to where they disagree.": "问一次,伙伴们先各自表明立场,再针对分歧互相回应。",
+ "Ask once and every Partner answers from their own angle.": "问一次,每位伙伴都会从自己的角度回答。",
+ "Use @name to narrow it down.": "用 @名字 可以只问其中几位。",
+ "{{count}} modules_one": "{{count}} 个模块",
+ "{{count}} modules_other": "{{count}} 个模块",
+ "{{count}} sessions_one": "{{count}} 次会话",
+ "{{count}} sessions_other": "{{count}} 次会话",
+ "Clash round · {{done}} of {{total}}": "交锋轮 · {{done}}/{{total}}",
+ "Course conventions": "课程约定",
+ "Notation, the teacher's angle, how you want to be taught. Every conversation in this course starts knowing this.": "记号习惯、老师的讲法、你希望被怎么教。这门课的每次对话都从知道这些开始。",
+ "Saving": "保存中",
+ "e.g. Use C for examples. Focus on POSIX. Exams are proof-based.": "例如:用 C 举例,侧重 POSIX,考试考证明。",
+ "What DeepTutor has noticed": "DeepTutor 注意到的",
+ "Mastery path": "精通之路",
+ "Reading": "阅读",
+ "Read aloud": "朗读",
+ "Reading aloud": "正在朗读",
+ "Stop reading aloud": "停止朗读",
+ "Partner group": "伙伴群组",
+ "Everything this course studies with. Conversations here start with these already in hand.": "这门课用到的一切。课内对话开口就带着它们。",
+ "Nothing attached yet. Add a textbook or knowledge base and this course starts knowing what it is about.": "还没挂任何资料。挂上教材或知识库,这门课就知道自己在讲什么了。",
+ "Unavailable": "已不可用",
+ "Remove from course": "从课程移除",
+ "Nothing available to attach yet — create a knowledge base, book, or mastery path first.": "暂时没有可挂的东西 —— 先建一个知识库、书籍或精通之路。",
+ "Weakest: {{name}}": "最弱:{{name}}",
+ "{{count}} paths": "{{count}} 条路径",
+ "Attach or build a path to track mastery": "挂上或新建一条路径来跟踪掌握度",
+ "{{count}} still wrong": "还错 {{count}} 题",
+ "Questions you get wrong land here": "做错的题会落到这里",
+ "{{count}} materials open": "{{count}} 份材料在读",
+ "Attach a reading workspace to read alongside the tutor": "挂上阅读工作区,边读边问",
+ "Attach a notebook to keep this course's notes together": "挂上笔记本,把这门课的笔记收在一起",
+ "Worth doing next": "接下来值得做",
+ "Opens with": "开场说",
+ "Course Study": "课程学习",
+ "Courses": "课程",
+ "Back to Courses": "返回课程",
+ "Everything one subject needs, in one place": "一门课需要的一切,都在这里",
+ "See where a course stands and what to do next": "看清这门课的进度,决定下一步做什么",
+ "One subject's material, paths, notes and conversations, all in one place.": "一门课的资料、路径、笔记和对话,都在一处。",
+ "Nothing attached yet": "还没挂资料",
+ "Attach its textbook, then let DeepTutor plan from there.": "挂上教材,剩下的交给 DeepTutor 规划。",
+ "Start course study": "开始课程学习",
+ "This course has nothing to work with yet": "这门课还没有可用的材料",
+ "Attach its textbook or knowledge base and DeepTutor can start planning from the material itself.": "挂上教材或知识库,DeepTutor 就能从材料本身开始规划。",
+ "{{name}} is where you are losing marks": "{{name}} 是你失分最多的地方",
+ "{{count}} questions wrong in this area": "这一块错了 {{count}} 题",
+ "Work through them": "逐题过一遍",
+ "Take me through my {{name}} mistakes one at a time.": "把我{{name}}的错题一道一道讲给我。",
+ "{{name}} is {{done}} of {{total}} done": "{{name}} 已完成 {{done}}/{{total}}",
+ "Pick up where the path left off": "从上次停下的地方接着来",
+ "Keep going": "继续",
+ "Continue this path from where I stopped.": "从我上次停下的地方继续这条路径。",
+ "{{title}} is open and waiting": "{{title}} 还开着",
+ "{{count}} materials in this reading workspace": "这个阅读工作区里有 {{count}} 份材料",
+ "Read on": "接着读",
+ "Summarise where I left off, then continue from there.": "先概括我读到哪了,然后接着往下。",
+ "The material is in place": "材料已经到位",
+ "Nothing has been built from it yet — a mastery path turns it into something you can practise.": "但还没在它上面建任何东西 —— 一条精通之路能把它变成可以练的东西。",
+ "Plan this course": "规划这门课",
+ "Look at what this course has and plan what I should do first.": "看看这门课现在有什么,帮我规划先做什么。",
+ "{{count}} objectives · weakest {{name}}": "{{count}} 个目标 · 最弱 {{name}}",
+ "{{count}} objectives across {{paths}} paths": "{{paths}} 条路径共 {{count}} 个目标",
+ "wrong of {{total}} · weakest {{name}}": "错题 · 共 {{total}} 题 · 最弱 {{name}}",
+ "wrong of {{total}}": "错题 · 共 {{total}} 题",
+ "{{name}}: {{done}} of {{total}} objectives cleared": "{{name}}:{{total}} 个目标里过了 {{done}} 个",
+ "This target no longer exists — remove the reference, or attach the resource again.": "目标已经不存在了 —— 移除这条引用,或者重新挂一次。",
+ "Opening": "正在打开",
+ "This course": "这门课",
+ "Show every course": "显示全部课程",
+ "Show every notebook": "显示全部笔记本",
+ "No questions from this course yet": "这门课还没有题目",
+ "Questions you answer in this course's conversations collect here.": "你在这门课的对话里做过的题会收在这里。",
+ "Syllabus": "教学大纲",
+ "{{covered}} of {{total}} units covered": "已覆盖 {{covered}}/{{total}} 个单元",
+ "What this course should cover. Without it, progress has no denominator.": "这门课应该覆盖什么。没有它,进度就没有分母。",
+ "One unit per line. Add keywords after a | so DeepTutor can tell which questions belong to it:\n\nProcesses and threads | context switch, scheduling\nVirtual memory | address translation, page replacement": "一行一个单元。在 | 后面写关键词,DeepTutor 就能认出哪些题属于它:\n\n进程与线程 | 上下文切换, 调度\n虚拟内存 | 地址翻译, 页替换",
+ "Paste the course outline and every number on this page gains a denominator.": "把课程大纲粘进来,这一页的每个数字就都有了分母。",
+ "Evidence, not a verdict — you decide whether this unit is done.": "这是证据,不是判断 —— 这个单元算不算学完由你决定。",
+ "{{count}} wrong": "错 {{count}} 题",
+ "Archive course": "归档课程",
+ "Restore course": "恢复课程",
+ "Archived courses": "已归档的课程",
+ "Put PDFs, web pages and lectures into one collection and read them with an AI companion that can always point back to the source.": "把 PDF、网页、讲座视频放进一个资料组,和 AI 一起精读,每句话都能回到原文。",
+ "Collections": "资料组",
+ "Material library": "资料库",
+ "New collection": "新建资料组",
+ "New collection…": "新建资料组…",
+ "Search collections and materials": "搜索资料组和资料",
+ "Could not load your collections.": "无法加载你的资料组。",
+ "No collections yet": "还没有资料组",
+ "A collection is one reading task: a paper with its survey, every lecture of a course, a few chapters of a book. Everything in it shares the same conversations and annotations.": "一个资料组就是一次阅读任务:一篇论文加它的综述、一门课的全部讲座、一本书的几个章节。放进去的资料共享同一批对话和批注。",
+ "No material yet": "还没有资料",
+ "+{{count}} more": "另有 {{count}} 份",
+ "Collection menu": "资料组菜单",
+ "Delete collection": "删除资料组",
+ "{{title}} could not be prepared": "{{title}} 解析失败",
+ "Nothing matches that.": "没有匹配的内容。",
+ "Upload material": "上传资料",
+ "Add material": "添加资料",
+ "Search by title, file name or link": "搜索资料名、文件名、链接",
+ "Could not load your library.": "无法加载资料库。",
+ "Not in a collection": "未归入资料组",
+ "Preparing": "处理中",
+ "In collections": "所在资料组",
+ "Added": "上传于",
+ "reading.column.material": "资料",
+ "Material menu": "资料菜单",
+ "Add to a collection": "加入资料组",
+ "Delete material": "删除资料",
+ "Everything you upload shows up here.": "你上传的资料都会出现在这里。",
+ "Nothing here yet.": "这里还没有内容。",
+ "It is already in every collection you have.": "它已经在你所有的资料组里了。",
+ "You have no collections yet.": "你还没有资料组。",
+ "Document": "文档",
+ "Web page": "网页",
+ "Audio": "音频",
+ "YouTube": "YouTube",
+ "Bilibili": "Bilibili",
+ "A collection holds several materials you read and discuss together.": "一个资料组可以放多份资料,一起读、一起问。",
+ "Files, links and materials already in your library.": "文件、链接,或资料库里已有的资料。",
+ "Uploaded material stays in your library until you put it in a collection.": "上传的资料会先留在资料库,随时可以放进资料组。",
+ "Collection name": "资料组名称",
+ "Optional — taken from the first material": "可留空——取第一份资料的名字",
+ "Drop PDF, EPUB, Word, slides, audio or video here": "把 PDF、EPUB、Word、幻灯片、音视频拖到这里",
+ "or click to choose files": "或点击选择文件",
+ "or paste a link — web page, YouTube, Bilibili": "也可以粘贴链接:网页 / YouTube / Bilibili",
+ "Checking your library for duplicates…": "正在检查资料库里是否已有…",
+ "Choose from material you already uploaded": "从已上传的资料中选择",
+ "Create and start reading": "创建并开始阅读",
+ "Already in your library. It will be reused, with its annotations.": "资料库里已有这一份,将直接复用,批注一并带过来。",
+ "Already in your library, used by {{where}}. It will be reused, with its annotations.": "资料库里已有这一份(用于 {{where}}),将直接复用,批注一并带过来。",
+ "Add a separate copy instead": "改为单独存一份",
+ "Reuse the existing one": "复用已有的那份",
+ "A material with this name is already in your library, but its content differs.": "资料库里已有同名资料,但内容不一样。",
+ "A material with this name is already in {{where}}, but its content differs.": "{{where}} 里已有同名资料,但内容不一样。",
+ "Upload as a new one": "作为新的一份上传",
+ "Back to collections": "返回资料组",
+ "Rename collection": "重命名资料组",
+ "Rename conversation": "重命名对话",
+ "Conversation name": "对话名称",
+ "Remove from collection": "从资料组移除",
+ "Remove this material from the collection? It stays in your library.": "把这份资料从资料组移除?它仍保留在资料库中。",
+ "Collection actions": "资料组操作",
+ "Show contents": "展开目录",
+ "Hide contents": "收起目录",
+ "Reading companion": "阅读伙伴",
+ "Choose a Mastery Path ID for this collection": "为这个资料组选择精通之路 ID",
+ "Add material to begin": "添加资料后开始阅读",
+ "{{count}} collections_one": "{{count}} 个资料组",
+ "{{count}} collections_other": "{{count}} 个资料组",
+ "{{count}} materials_one": "{{count}} 份资料",
+ "{{count}} materials_other": "{{count}} 份资料",
+ "{{count}} pages_one": "{{count}} 页",
+ "{{count}} pages_other": "{{count}} 页",
+ "{{count}} sections_one": "{{count}} 节",
+ "{{count}} sections_other": "{{count}} 节",
+ "“{{title}}” and its reading conversations will be deleted. The {{count}} materials in it stay in your library._one": "将删除《{{title}}》及其阅读对话。其中的 {{count}} 份资料仍保留在资料库中。",
+ "“{{title}}” and its reading conversations will be deleted. The {{count}} materials in it stay in your library._other": "将删除《{{title}}》及其阅读对话。其中的 {{count}} 份资料仍保留在资料库中。",
+ "Search your library": "搜索资料库",
+ "“{{title}}” and its annotations will be deleted.": "将删除《{{title}}》及其批注。",
+ "“{{title}}” is used by {{where}}. Deleting it removes it from those collections, along with its annotations.": "《{{title}}》正在 {{where}} 中使用。删除后它会从这些资料组里消失,批注也一并删除。",
+ "Close reading companion": "关闭阅读伙伴",
+ "Opening collection…": "正在打开资料组…",
+ "Grounded in your materials": "以你的资料为依据",
+ "Ask about this material…": "就这份资料提问…",
+ "Answers stay with the material you have open until you switch.": "回答只依据当前打开的这份资料,切换后才会变。",
+ "This collection could not be opened.": "无法打开这个资料组。",
+ "This material could not be opened.": "无法打开这份资料。",
+ "Notes organized, each one citing where it came from.": "笔记已整理,每条都标注了出处。",
+ "Search this material": "搜索这份资料",
+ "This material has no outline to navigate yet.": "这份资料还没有可导航的目录。",
+ "The outline appears once processing finishes.": "解析完成后会显示目录。",
+ "Compare materials": "对比这些资料",
+ "Compare the materials in this collection. First list them, then switch and read only the passages needed. Highlight agreements, tensions, and evidence with citations.": "对比这个资料组里的资料。先列出它们,再逐一切换、只读需要的段落,指出一致之处、分歧之处,并给出带引用的证据。",
+ "Add material to begin a reading conversation.": "添加资料后开始阅读对话。",
+ "Try importing this material again.": "可以重新导入这份资料试试。",
+ "This material could not be prepared": "这份资料解析失败",
+ "Already in your library as “{{title}}”, used by {{where}}. It will be reused, with its annotations.": "资料库里已有这份内容(《{{title}}》,用于 {{where}}),将直接复用,批注一并带过来。",
+ "Already in your library as “{{title}}”. It will be reused, with its annotations.": "资料库里已有这份内容(《{{title}}》),将直接复用,批注一并带过来。",
+ "Remove “{{title}}” from this collection? It stays in your library.": "把《{{title}}》从这个资料组移除?它仍保留在资料库中。",
+ "{{count}} connection": "{{count}} 个连接",
+ "{{count}} connection_one": "{{count}} 个连接",
+ "{{count}} connection_other": "{{count}} 个连接",
+ "No connections yet.": "还没有连接。",
+ "Add connection": "添加连接",
+ "Connection added.": "已添加连接。",
+ "A connection holds one vendor credential and supplies every model service that can use it.": "一个连接保存一份供应商凭据,供给所有能用它的模型服务。",
+ "Credentials are currently entered separately for {{services}}.": "目前 {{services}} 的凭据是各自单独填写的。",
+ "{{service}} now uses {{name}}.": "{{service}} 现在使用 {{name}}。",
+ "Added a {{service}} profile — switch to it on its own page.": "已添加 {{service}} 配置;到它自己的页面切换启用。",
+ "No key": "未填 key",
+ "Not supplying any service yet": "还没有供给任何服务",
+ "Profiles it supplies keep their current credentials but stop following this connection.": "由它供给的配置会保留当前凭据,但不再跟随此连接。",
+ "Nothing is using this connection.": "没有配置在使用这个连接。",
+ "Saving pushes these values into every profile this connection supplies.": "保存后,这些值会写入由此连接供给的每一个配置。",
+ "The provider returned no models.": "供应商没有返回任何模型。",
+ "Could not reach provider.": "无法连接到供应商。",
+ "Leave blank to use each service's official endpoint.": "留空则各服务使用官方地址。",
+ "Configure these services": "为这些服务创建配置",
+ "Select a model...": "选择模型…",
+ "List models": "获取模型",
+ "Set on its own page": "在它自己的页面设置",
+ "No chat model picked yet — the profile is still created, pick one on the LLM page.": "还没选聊天模型;配置仍会创建,可到 LLM 页面再选。",
+ "No language models are configured yet.": "还没有配置任何语言模型。",
+ "Configure one": "去配置",
+ "Resolves at call time.": "调用时再解析。",
+ "Both calls are short and frequent, so a smaller, faster model is usually the better trade here.": "这两处调用都短小且频繁,指向一个更小更快的模型通常更划算。",
+ "Credentials come from the {{name}} connection.": "凭据来自连接「{{name}}」。",
+ "Edit connection": "编辑连接",
+ "Use its own key": "改用独立凭据",
+ "Connections": "连接",
+ "One vendor credential, supplying every model service that can use it. Services can still hold their own key instead.": "一份供应商凭据,供给所有能用它的模型服务。各服务也可以继续单独填写自己的 key。",
+ "Task models": "任务模型",
+ "The model behind work DeepTutor starts on its own, rather than in a turn you asked for.": "DeepTutor 自己发起的调用使用的模型,不属于你主动开始的某一轮对话。",
+ "These lines are written by the active model unless you pin one.": "这三行由当前模型生成,除非你为它单独指定。",
+ "Voice": "音色",
+ "Provider-specific voice name, e.g. alloy (OpenAI) or model:voice (SiliconFlow).": "供应商各自的音色名,例如 alloy(OpenAI)或 model:voice(SiliconFlow)。",
+ "Output format": "输出格式",
+ "Image size": "图像尺寸",
+ "Default pixel size sent with each request. Leave empty for the provider default.": "每次请求默认发送的像素尺寸。留空则用供应商默认值。",
+ "Quality / Style": "质量 / 风格",
+ "quality (e.g. hd)": "质量(如 hd)",
+ "style (e.g. vivid)": "风格(如 vivid)",
+ "Aspect ratio": "画面比例",
+ "Defaults sent with each request. Leave empty for the provider default.": "每次请求默认发送的参数。留空则用供应商默认值。",
+ "Duration / Resolution": "时长 / 分辨率",
+ "seconds": "秒",
+ "Configured {{count}} services and made them active.": "已配置 {{count}} 个服务并设为当前使用。",
+ "Configured {{count}} services — {{kept}} kept your existing choice.": "已配置 {{count}} 个服务;{{kept}} 保留了你原有的选择。",
+ "Opened from Connections. Applying will also make this the {{service}} profile in use.": "从「连接」跳转而来。应用后,{{service}} 将改用这个配置。",
+ "Back to {{name}}": "改回 {{name}}",
+ "Save draft": "存草稿",
+ "Draft not applied yet": "草稿尚未应用",
+ "Draft saved — not applied yet": "草稿已保存,尚未应用",
+ "Draft discarded": "已放弃草稿",
+ "Applied": "已应用",
+ "Store these changes without putting them into effect.": "保存这些更改,但先不生效。",
+ "Put these settings into effect.": "让这些设置生效。",
+ "Go back to what is currently live.": "回到当前生效的设置。",
+ "Could not save the draft: {{message}}": "草稿保存失败:{{message}}",
+ "Could not apply: {{message}}": "应用失败:{{message}}",
+ "Search settings": "搜索设置",
+ "Settings sections": "设置分区",
+ "No settings match “{{query}}”.": "没有匹配「{{query}}」的设置。",
+ "Nothing to do — everything configured is working.": "没有待处理项 —— 已配置的都在正常工作。",
+ "A saved draft is waiting to be applied.": "有一份已保存的草稿等待应用。",
+ "There are changes you have not saved anywhere yet.": "有一些更改还没有保存到任何地方。",
+ "{{service}} failed its last connection test.": "{{service}} 上次连接测试失败。",
+ "In use": "当前使用",
+ "Not set up yet": "尚未配置",
+ "{{ready}} of {{total}} model services set up.": "已配置 {{ready}}/{{total}} 个模型服务。",
+ "Appearance, models, knowledge, chat, and memory.": "外观、模型、知识库、聊天与记忆。",
+ "Take the tour": "看看引导",
+ "Draft saved {{when}}": "草稿保存于 {{when}}",
+ "Set up with DeepTutor": "让 DeepTutor 帮我配置",
+ "Delete this profile and every model under it?": "删除这个配置,以及它下面的所有模型?",
+ "Model services": "模型服务",
+ "Test passed": "测试通过",
+ "Providers": "供应商",
+ "Add provider": "添加供应商",
+ "Add model": "添加模型",
+ "All providers": "全部供应商",
+ "Edit model": "编辑模型",
+ "Provider default endpoint": "供应商默认地址",
+ "{{n}} ctx": "{{n}} 上下文",
+ "{{n}} dim": "{{n}} 维",
+ "No model id yet": "还没填模型 ID",
+ "Set as active": "设为使用中",
+ "Task model": "任务模型",
+ "Nothing configured here, so both calls use the language model.": "这里没有配置,所以两处调用都使用语言模型。",
+ "No language model is configured yet.": "还没有配置语言模型。",
+ "Bring a provider over from the LLM": "从 LLM 引入一个供应商",
+ "Choose a provider to copy...": "选择要复制的供应商…",
+ "Copy over": "引入",
+ "Conversation titles and home screen starting points. Configured like the LLM — pick a provider, then a model. Left empty, both use the LLM.": "会话标题与主页起始建议。配置方式与 LLM 相同:先选供应商,再配模型。留空则两者都使用 LLM 的配置。",
+ "Pick a course": "选择课程",
+ "No courses yet — make one to group a subject's material.": "还没有课程——建一门,把一个科目的材料收在一起。",
+ "Not in a course": "不属于任何课程",
+ "Manage courses": "管理课程",
+ "nothing here yet — you'll set one up": "这里还是空的,去建一个",
+ "Nothing made yet to attach. Start one below and it joins this course as soon as it exists.": "还没有可挂接的东西。在下面新建一个,建好就会自动加入这门课。",
+ "Start something new": "新建",
+ "New mastery path": "新建精通之路",
+ "New reading collection": "新建阅读合集",
+ "How conversations here start": "这门课的对话怎么开场",
+ "Persona": "人格",
+ "Applied when a conversation opens from this course, along with its knowledge bases. You can change any of it once inside.": "从这门课打开对话时生效,连同它的知识库一起带上。进去之后随时可以改。",
+ "This course has no notebook yet": "这门课还没有笔记本",
+ "Make one here and it joins this course — its notes then travel with everything else in it.": "在这里新建一个,它就会加入这门课——笔记从此和这门课的其它东西放在一起。",
+ "Guided Solving": "主动辅导",
+ "Generate charts, diagrams, interactive pages, or math animations": "生成图表、示意图、交互页面或数学动画",
+ "Arrange sidebar": "调整侧边栏",
+ "Arrange {{feature}}": "调整「{{feature}}」",
+ "Move to More": "收进「更多」",
+ "Move out of More": "移出「更多」",
+ "Reset sidebar order": "恢复默认排列",
+ "Reset chat order": "恢复默认顺序",
+ "Delete provider": "删除供应商",
+ "Delete this provider?": "删除这个供应商?",
+ "This is your active {{service}} provider — deleting it switches to {{next}}.": "这是当前使用中的 {{service}} 供应商,删除后会切换到 {{next}}。",
+ "This removes {{count}} model(s) and its saved credentials. This can't be undone.": "这会删除 {{count}} 个模型及已保存的密钥,且不可撤销。",
+ "nothing configured": "未配置",
+ "Immersive Watching": "沉浸式观看",
+ "Native YouTube learning": "原生 YouTube 学习",
+ "Refresh provider": "刷新播放提供方",
+ "Close video learning": "关闭视频学习",
+ "Open a YouTube learning video": "打开 YouTube 学习视频",
+ "Paste a watch, Shorts, Live, Embed, or youtu.be link.": "粘贴 watch、Shorts、Live、Embed 或 youtu.be 链接。",
+ "YouTube URL": "https://youtu.be/…",
+ "Use native YouTube for this video": "本次使用原生 YouTube",
+ "Use native YouTube": "使用原生 YouTube",
+ "Transcript learning is unavailable ({{reason}}). Playback still works, but Explain here is disabled.": "字幕学习不可用({{reason}})。视频仍可播放,但“解释此处”已禁用。",
+ "no captions": "没有字幕",
+ "Retry captions": "重试字幕",
+ "Explain here": "解释此处",
+ "YouTube playback failed.": "YouTube 播放失败。",
+ "YouTube learning video": "YouTube 学习视频",
+ "The configured Invidious stream could not be played.": "无法播放已配置的 Invidious 视频流。",
+ "Settings could not be loaded.": "无法加载设置。",
+ "Saved. New and reopened videos use this provider immediately.": "已保存。新打开或重新打开的视频会立即使用该提供方。",
+ "Settings could not be saved.": "无法保存设置。",
+ "Testing Invidious…": "正在测试 Invidious…",
+ "Invidious connected ({{message}}).": "Invidious 已连接({{message}})。",
+ "Invidious unavailable: {{message}}": "Invidious 不可用:{{message}}",
+ "Video Learning": "视频学习",
+ "Choose native YouTube or a self-hosted Invidious instance. Provider changes do not rebuild learning materials or reset progress.": "选择原生 YouTube 或自托管 Invidious。切换提供方不会重建学习材料或重置进度。",
+ "Official privacy-enhanced IFrame Player. No media is proxied or stored.": "官方隐私增强型 IFrame Player;不代理或存储媒体。",
+ "HTML5 playback through your configured Invidious instance.": "通过已配置的 Invidious 实例进行 HTML5 播放。",
+ "Native YouTube": "原生 YouTube",
+ "Self-hosted Invidious": "自托管 Invidious",
+ "Invidious connection": "Invidious 连接",
+ "Backend API origin": "后端 API 地址",
+ "Invidious API URL": "http://127.0.0.1:3000",
+ "Browser-facing origin (optional)": "浏览器访问地址(可选)",
+ "Defaults to the API origin": "默认使用 API 地址",
+ "YouTube transcript adapter": "YouTube 字幕适配器",
+ "Optional captions; playback remains available when the package or captions are unavailable.": "字幕为可选能力;依赖包或字幕不可用时仍可播放视频。",
+ "youtube-transcript-api": "youtube-transcript-api",
+ "The player provider is unavailable.": "播放提供方不可用。",
+ "This video could not be opened.": "无法打开此视频。",
+ "Explain this part of the video": "解释视频的这一部分",
+ "YouTube Player API did not initialize.": "YouTube Player API 未能初始化。",
+ "YouTube Player API timed out.": "YouTube Player API 加载超时。",
+ "YouTube Player API could not be loaded.": "无法加载 YouTube Player API。",
+ "Vector index": "向量索引",
+ "Applies on the next full re-index": "在下次完整重建索引时生效",
+ "Exact nearest-neighbor search. Best for small and medium knowledge bases.": "精确最近邻搜索,适合中小型知识库。",
+ "Approximate graph search for large knowledge bases. Faster at scale with a small recall trade-off.": "面向大型知识库的近似图搜索,规模更大时更快,但会有少量召回损失。",
+ "HNSW graph degree": "HNSW 图连接度",
+ "HNSW construction candidates": "HNSW 构建候选数",
+ "HNSW search candidates": "HNSW 搜索候选数",
+ "Reranking": "重排序",
+ "Applies on the next query": "在下次查询时生效",
+ "Reranker model": "重排序模型",
+ "Leave empty to disable. Example: BAAI/bge-reranker-base. Requires the optional rag-rerank extra.": "留空表示禁用。示例:BAAI/bge-reranker-base。需要可选的 rag-rerank 依赖。",
- "Rerank candidates": "重排序候选数"
++ "Rerank candidates": "重排序候选数",
+ "Needs Review": "待复习",
+ "All Sources": "全部来源",
+ "Deep Question": "深度提问",
++ "Book": "书籍",
+ "All Materials": "全部材料",
+ "Score Trend": "得分趋势",
+ "All Trends": "全部趋势",
+ "First Attempt": "首次作答",
+ "Improved": "已提升",
+ "Declined": "已下降",
+ "Unchanged": "无变化",
+ "Resolved": "已解决",
+ "Mark Resolved": "标记已解决",
+ "Reopen Review": "重新复习"
}
diff --cc web/tests/question-bank-filter.test.ts
index 000000000,e340ff17a..ef90be443
mode 000000,100644..100644
--- a/web/tests/question-bank-filter.test.ts
+++ b/web/tests/question-bank-filter.test.ts
@@@ -1,0 -1,27 +1,42 @@@
+ import assert from "node:assert/strict";
+ import test from "node:test";
+
+ import { buildQuestionBankFilter } from "@/components/space/question-bank/useQuestionBank";
+
+ test("the unresolved view combines wrong answers with review state", () => {
+ const filter = buildQuestionBankFilter(
+ { kind: "unresolved" },
+ { source: "mastery_path", materialId: "path-1", scoreTrend: "declined" },
+ "equation",
+ "oldest",
+ );
+
+ assert.deepEqual(filter, {
+ category_id: undefined,
+ uncategorized: undefined,
+ bookmarked: undefined,
+ is_correct: false,
+ source: "mastery_path",
+ material_id: "path-1",
+ resolved: false,
+ score_trend: "declined",
+ search: "equation",
+ sort: "oldest",
+ limit: 60,
++ course_id: undefined,
+ });
+ });
++
++test("review filters preserve the current course scope", () => {
++ const filter = buildQuestionBankFilter(
++ { kind: "all" },
++ { source: "book", materialId: "book-1", scoreTrend: "" },
++ "",
++ "recent",
++ "course-1",
++ );
++
++ assert.equal(filter.source, "book");
++ assert.equal(filter.material_id, "book-1");
++ assert.equal(filter.course_id, "course-1");
++});