DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.
Python ai-agentsai-tutorclawbotcli-tooldeepresearchinteractive-learninglearningmulti-agent-systemsrag
merge: upstream/dev into feature/guided-learning
unknown77b24725c57b
diff --cc deeptutor/agents/chat/agentic_pipeline.pyindex 8df0062d3,9d75d04ac..9673467a6--- a/deeptutor/agents/chat/agentic_pipeline.py+++ b/deeptutor/agents/chat/agentic_pipeline.py@@@ -23,13 -30,35 +30,36 @@@ History compression (branch-safe) is hafrom __future__ import annotations+import asyncioimport logging+ import refrom typing import Any- import httpx- from openai import AsyncAzureOpenAI, AsyncOpenAI-+ from deeptutor.agents._shared.tool_composition import (+ ToolMountFlags,+ compose_enabled_tools,+ default_optional_tools,+ user_has_memory,+ user_has_notebooks,+ )+ from deeptutor.capabilities._shared import emit_capability_result+ from deeptutor.core.agentic import (+ LABEL_PROBE_MAX_CHARS,+ LABEL_UNKNOWN,+ DispatchOutcome,+ LabeledStepResult,+ LabelProtocol,+ LLMClientConfig,+ UsageTracker,+ build_completion_kwargs,+ build_openai_client,+ can_use_native_tool_calling,+ dispatch_tool_calls,+ run_agentic_loop,+ run_labeled_step,+ )+ from deeptutor.core.agentic.labels import find_inline_labels, strip_label_probe_prefix+ from deeptutor.core.agentic.tool_dispatch import MAX_PARALLEL_TOOL_CALLSfrom deeptutor.core.context import UnifiedContextfrom deeptutor.core.stream_bus import StreamBusfrom deeptutor.core.trace import (diff --cc deeptutor/core/stream.pyindex 75117666f,dfd1d59ce..a0fbe1a1c--- a/deeptutor/core/stream.py+++ b/deeptutor/core/stream.py@@@ -29,9 -29,8 +29,10 @@@ class StreamEventType(str, Enum)RESULT = "result"ERROR = "error"SESSION = "session"+ SESSION_META = "session_meta"DONE = "done"+ WAIT_FOR_INPUT = "wait_for_input"+ USER_INPUT = "user_input"@dataclassdiff --cc deeptutor/services/session/pocketbase_store.pyindex 2b58fb94f,1d3ed748d..493953d82--- a/deeptutor/services/session/pocketbase_store.py+++ b/deeptutor/services/session/pocketbase_store.py@@@ -102,12 -90,9 +99,10 @@@ class PocketBaseSessionStore)record = await asyncio.to_thread(_create)- result = self._session_record_to_dict(record, resolved_id, resolved_title, now)- result.setdefault("kind", resolved_kind)- return result+ return self._session_record_to_dict(record, resolved_id, resolved_title, now)async def get_session(self, session_id: str) -> dict[str, Any] | None:+ sid = _validate_id(session_id, "session_id")def _get():try:records = (diff --cc deeptutor/services/session/turn_runtime.pyindex 5e778bc3e,76c441e66..37aa2ea28--- a/deeptutor/services/session/turn_runtime.py+++ b/deeptutor/services/session/turn_runtime.py@@@ -649,14 -811,37 +811,43 @@@ class TurnRuntimeManagerawait self.store.update_turn_status(turn_id, "cancelled", "Turn cancelled")return Trueexecution.task.cancel()+ # Wait for the task to finish so its finally block (including save)+ # completes before the caller proceeds.+ try:+ await execution.task+ except asyncio.CancelledError:+ passreturn True+ async def submit_user_reply(+ self,+ turn_id: str,+ text: str | None = None,+ *,+ answers: list[dict[str, Any]] | None = None,+ ) -> bool:+ """Deliver a user reply to a turn that's paused on ``ask_user``.++ Returns ``True`` if the turn was waiting and the reply was+ accepted; ``False`` if no waiter is registered (turn finished,+ was cancelled, or the model never asked).++ Accepts either ``text`` (single free-form reply, legacy single-+ question shape) or ``answers`` (list of ``{questionId, text}``+ pairs, v2 multi-question shape). Both may be passed; the+ consumer prefers structured ``answers`` when present and falls+ back to ``text`` for the legacy case. The payload is enqueued —+ the pipeline's ``await waiter()`` call unblocks on the next+ event-loop tick and substitutes the reply into the matching+ ``role=tool`` message.+ """+ queue = self._reply_queues.get(turn_id)+ if queue is None:+ return False+ payload: dict[str, Any] = {"text": text or "", "answers": answers}+ await queue.put(payload)+ return True+async def subscribe_turn(self,turn_id: str,diff --cc web/components/sidebar/SidebarShell.tsxindex 57eaf67d1,2b10d304a..5c3977d56--- a/web/components/sidebar/SidebarShell.tsx+++ b/web/components/sidebar/SidebarShell.tsx@@@ -8,8 -8,8 +8,9 @@@ import { useAppShell } from "@/context/import {BookOpen,Bot,+ Brain,Github,+ GraduationCap,LayoutGrid,Library,MessageSquare,diff --cc web/components/sidebar/WorkspaceSidebar.tsxindex 9342fa428,393db9819..e84ee471a--- a/web/components/sidebar/WorkspaceSidebar.tsx+++ b/web/components/sidebar/WorkspaceSidebar.tsx@@@ -18,11 -17,8 +17,9 @@@ importexport default function WorkspaceSidebar() {const { t } = useTranslation();const router = useRouter();- const pathname = usePathname();- const surface = useMemo(() => surfaceForPath(pathname), [pathname]);const {newSession,+ cancelStreamingTurn,selectedSessionId,sessionStatuses,sidebarRefreshToken,@@@ -77,9 -73,8 +74,9 @@@.map(({ session }) => session);const handleNewChat = () => {+ cancelStreamingTurn();newSession();- router.push(surface.basePath);+ router.push("/chat");};const handleSelectSession = useCallback(@@@ -115,13 -110,11 +112,12 @@@prev.filter((session) => session.session_id !== sessionId),);if (selectedSessionId === sessionId) {+ cancelStreamingTurn();newSession();- router.push(surface.basePath);+ router.push("/chat");}},- [newSession, router, selectedSessionId, surface.basePath, t],- [newSession, router, selectedSessionId, t],+ [cancelStreamingTurn, newSession, router, selectedSessionId, t],);return (diff --cc web/context/UnifiedChatContext.tsxindex 0841de21e,1b764f467..a3604d182--- a/web/context/UnifiedChatContext.tsx+++ b/web/context/UnifiedChatContext.tsx@@@ -1358,11 -1496,47 +1498,49 @@@ export function UnifiedChatProvider(runner.client.disconnect();runnersRef.current.delete(key);}- dispatch({ type: "STREAM_END", key, status: "cancelled" });+ if (session.isStreaming) {+ dispatch({ type: "STREAM_END", key, status: "cancelled" });+ }}, []);+ const submitUserReply = useCallback(+ (+ reply:+ | string+ | {+ text?: string;+ answers?: Array<{ questionId: string; text: string }>;+ },+ ) => {+ const currentState = stateRef.current;+ const key = currentState.selectedKey;+ if (!key) return;+ const session = currentState.sessions[key];+ const turnId = session?.activeTurnId;+ const pendingAskUser = session+ ? hasPendingAskUserInMessages(session.messages, turnId)+ : false;+ // Only meaningful while a turn is live. A paused ask_user turn can be+ // silent long enough for the socket to reconnect, so allow submission+ // whenever the unresolved card and active turn id are still present.+ if (!session || !turnId || (!session.isStreaming && !pendingAskUser)) {+ return;+ }+ const message: import("@/lib/unified-ws").SubmitUserReplyMessage = {+ type: "submit_user_reply",+ turn_id: turnId,+ };+ if (typeof reply === "string") {+ message.text = reply;+ } else {+ if (typeof reply.text === "string") message.text = reply.text;+ if (Array.isArray(reply.answers)) message.answers = reply.answers;+ }+ sendThroughRunner(key, message);+ },+ [sendThroughRunner],+ );+const regenerateLastMessage = useCallback(() => {const currentState = stateRef.current;const key = currentState.selectedKey;diff --cc web/locales/en/app.jsonindex 1c40e8cf6,c31348b94..d6be312bd--- a/web/locales/en/app.json+++ b/web/locales/en/app.json@@@ -1646,103 -1656,377 +1658,476 @@@"Edit any field to update settings.": "Edit any field to update settings.","Confirm settings to enable sending.": "Confirm settings to enable sending.","Confirm settings on the right to send.": "Confirm settings on the right to send.",+ "Learning": "Learning",+ "Learning tooltip": "Structured mastery-based guided learning.",+ "Space tooltip": "Your personal learning library.",+ "guidedLearning.title": "Guided Learning",+ "guidedLearning.description": "Framework v1.8.2 — structured mastery-based learning",+ "guidedLearning.noModules": "No modules yet",+ "guidedLearning.startLearning": "Start Learning",+ "guidedLearning.modules": "Modules",+ "guidedLearning.knowledgePoints": "knowledge points",+ "guidedLearning.knowledgePointsLabel": "Knowledge Points",+ "guidedLearning.mastered": "mastered",+ "guidedLearning.stages": "Learning Stages",+ "guidedLearning.ready": "Ready to start learning",+ "guidedLearning.selectModule": "Select a Module",+ "guidedLearning.selectModuleDesc": "Choose a module to start guided learning",+ "guidedLearning.generatingDiagnostic": "Generating diagnostic questions...",+ "guidedLearning.connectionError": "Connection error",+ "guidedLearning.stageFailed": "Stage execution failed. Progress saved, will retry this stage.",+ "guidedLearning.moduleProgress": "{{count}} knowledge point(s)",+ "guidedLearning.masteredProgress": "{{mastered}}/{{total}} mastered",+ "guidedLearning.inputPlaceholder": "Type your answer...",+ "guidedLearning.submit": "Submit",+ "guidedLearning.noModulesLoaded": "No modules loaded",+ "guidedLearning.createModule": "Create Module",+ "guidedLearning.tabCurrent": "In Progress",+ "guidedLearning.tabCompleted": "Completed",+ "guidedLearning.tabAll": "All",+ "guidedLearning.mastered": "Mastered",+ "guidedLearning.continueLearning": "Continue Learning",+ "guidedLearning.redo": "Redo",+ "guidedLearning.redoConfirm": "This will reset your progress but keep modules. Continue?",+ "guidedLearning.redoFailed": "Failed to redo progress",+ "guidedLearning.delete": "Delete",+ "guidedLearning.deleteConfirm": "This will permanently delete all progress and modules. Continue?",+ "guidedLearning.deleteFailed": "Failed to delete progress",+ "guidedLearning.stage.diagnostic_phase1": "Diagnostic Phase 1",+ "guidedLearning.stage.diagnostic_phase2": "Diagnostic Phase 2",+ "guidedLearning.stage.metacognitive_intro": "Metacognitive Intro",+ "guidedLearning.stage.plan": "Learning Plan",+ "guidedLearning.stage.pretest": "Pretest",+ "guidedLearning.stage.explain": "Explain",+ "guidedLearning.stage.feynman_check": "Feynman Check",+ "guidedLearning.stage.practice_quiz": "Practice Quiz",+ "guidedLearning.stage.practice": "Practice",+ "guidedLearning.stage.error_diagnosis": "Error Diagnosis",+ "guidedLearning.stage.module_test": "Module Test",+ "guidedLearning.stage.review": "Review",+ "guidedLearning.stage.completed": "Completed",+ "Start learning": "Start learning",+ "guidedLearning.alreadyHasProgress": "You already have learning progress for this book. Continuing...",+ "guidedLearning.tabManual": "Manual",+ "guidedLearning.tabBook": "From Book",+ "guidedLearning.tabKb": "From KB",+ "guidedLearning.tabNotebook": "From Notebook",+ "guidedLearning.bookId": "Book ID",+ "guidedLearning.moduleName": "Module Name",+ "guidedLearning.moduleNamePlaceholder": "e.g. Introduction to Algebra",+ "guidedLearning.kpNamePlaceholder": "Knowledge point name",+ "guidedLearning.addKp": "Add knowledge point",+ "guidedLearning.noBooks": "No books available",+ "guidedLearning.chapters": "chapters",+ "guidedLearning.loadingChapters": "Loading chapters...",+ "guidedLearning.noChapters": "No chapters found in this book",+ "guidedLearning.chaptersToImport": "{{count}} chapters to import",+ "guidedLearning.kps": "KPs",+ "guidedLearning.noKb": "No knowledge bases available",+ "guidedLearning.noNotebooks": "No notebooks available",+ "guidedLearning.records": "records",+ "guidedLearning.loadingRecords": "Loading records...",+ "guidedLearning.noRecords": "This notebook has no records",+ "guidedLearning.selectRecords": "Select records to import",+ "guidedLearning.selected": "selected",+ "guidedLearning.recordsLimited": "Only the first 20 records are shown.",+ "guidedLearning.cancel": "Cancel",+ "guidedLearning.create": "Create",+ "guidedLearning.generateModules": "Generate Modules",+ "guidedLearning.moduleNameRequired": "Please enter at least one knowledge point.",+ "guidedLearning.untitledModule": "Untitled Module",+ "guidedLearning.createModuleFailed": "Failed to create module",+ "guidedLearning.importBookFailed": "Failed to import from book",+ "guidedLearning.importKbFailed": "Failed to import from knowledge base",+ "guidedLearning.importNotebookFailed": "Failed to generate modules from notebook",+ "guidedLearning.loadBooksFailed": "Failed to load books",+ "guidedLearning.loadKbFailed": "Failed to load knowledge bases",+ "guidedLearning.loadNotebooksFailed": "Failed to load notebooks",+ "guidedLearning.loadChaptersFailed": "Failed to load chapters",+ "guidedLearning.loadRecordsFailed": "Failed to load notebook records",+ "guidedLearning.comingSoon": "coming soon",+ "guidedLearning.kbComingSoon": "Knowledge Base import coming soon",+ "guidedLearning.kbComingSoonDesc": "This feature will use AI to extract learning modules from your knowledge base.",+ "guidedLearning.startLearningFailed": "Failed to start learning for this book",+ "knowledgeType.memory": "Rote Memory",+ "knowledgeType.concept": "Conceptual",+ "knowledgeType.procedure": "Procedural",+ "knowledgeType.design": "Design",+ "errorType.structural": "Knowledge Structure Gap",+ "errorType.deviation": "Misunderstanding",+ "errorType.application": "Application Error",- "errorType.metacognitive": "Metacognitive Error"++ "errorType.metacognitive": "Metacognitive Error",+ "Provider connection": "Provider connection",+ "Delete “{{name}}”": "Delete “{{name}}”",+ "Permanently remove the currently selected profile.": "Permanently remove the currently selected profile.",+ "Extra (optional)": "Extra (optional)",+ "API version and extra request headers": "API version and extra request headers",+ "API version and proxy": "API version and proxy",+ "Rename model": "Rename model",+ "Rename profile": "Rename profile",+ "Detected context window written to draft": "Detected context window written to draft",+ "Detected value matches your current setting": "Detected value matches your current setting",+ "Concept Question": "Concept Question",+ "Fill in the Blank": "Fill in the Blank",+ "Short Answer": "Short Answer",+ "Essay": "Essay",+ "Type Mix": "Type Mix",+ "Decrease": "Decrease",+ "Increase": "Increase",+ "True": "True",+ "False": "False",+ "AI Judge": "AI Judge",+ "AI Judgment": "AI Judgment",+ "Back to question": "Back to question",+ "No answer recorded.": "No answer recorded.",+ "Ask anything about this question, your answer, or the AI judgment.": "Ask anything about this question, your answer, or the AI judgment.",+ "Attach image": "Attach image",+ "Judging...": "Judging...",+ "Re-judge": "Re-judge",+ "Attach an image as your answer": "Attach an image as your answer",+ "Add another image": "Add another image",+ "Replace image": "Replace image",+ "Remove image": "Remove image",+ "AI judge failed. Please retry.": "AI judge failed. Please retry.",+ "AI judge connection closed unexpectedly.": "AI judge connection closed unexpectedly.",+ "Switch user-toggleable tools on or off. Locked tools are mounted automatically when the chat agent needs them.": "Switch user-toggleable tools on or off. Locked tools are mounted automatically when the chat agent needs them.",+ "Always on": "Always on",+ "Auto-mounted by the agent when needed. Not user-toggleable.": "Auto-mounted by the agent when needed. Not user-toggleable.",+ "Failed to save": "Failed to save",+ "On": "On",+ "Off": "Off",+ "Tune the app, configure model services, and inspect built-in tools.": "Tune the app, configure model services, and inspect built-in tools.",+ "Appearance": "Appearance",+ "Tune the visual theme and interface language. Changes apply immediately and are stored in your account.": "Tune the visual theme and interface language. Changes apply immediately and are stored in your account.",+ "Pick the colour palette you prefer.": "Pick the colour palette you prefer.",+ "Pick the colour palette and interface style. Each tile previews the theme it applies.": "Pick the colour palette and interface style. Each tile previews the theme it applies.",+ "Snow is the warm default; Light is a cool blue-grey; Dark mirrors Snow's accent on a warm near-black; Glass adds translucent panels on pure black.": "Snow is the warm default; Light is a cool blue-grey; Dark mirrors Snow's accent on a warm near-black; Glass adds translucent panels on pure black.",+ "Cream is a warm, paper-like default with a terracotta accent. Snow is its cool, blue-tinted sibling with a royal-blue accent. Dark keeps Cream's warmth on near-black. Glass adds translucent purple panels on a deep gradient.": "Cream is a warm, paper-like default with a terracotta accent. Snow is its cool, blue-tinted sibling with a royal-blue accent. Dark keeps Cream's warmth on near-black. Glass adds translucent purple panels on a deep gradient.",+ "Snow keeps things minimal; Glass adds translucent panels. Dark mode follows the same accent palette.": "Snow keeps things minimal; Glass adds translucent panels. Dark mode follows the same accent palette.",+ "Choose the interface language.": "Choose the interface language.",+ "Interface language": "Interface language",+ "Affects the UI only. Model output language is controlled by your prompt.": "Affects the UI only. Model output language is controlled by your prompt.",+ "Runtime status for backend and configured services.": "Runtime status for backend and configured services.",+ "Live state of the backend and the model services your configuration applies to.": "Live state of the backend and the model services your configuration applies to.",+ "Status reflects the runtime values after the last Apply. Draft changes only take effect once applied.": "Status reflects the runtime values after the last Apply. Draft changes only take effect once applied.",+ "Built-in tools the chat agent can invoke.": "Built-in tools the chat agent can invoke.",+ "Built-in tools the chat agent can invoke. Each shows its description, parameters, and prompt hints in your current language.": "Built-in tools the chat agent can invoke. Each shows its description, parameters, and prompt hints in your current language.",+ "Failed to load tools": "Failed to load tools",+ "When to use": "When to use",+ "Input format": "Input format",+ "Guideline": "Guideline",+ "optional": "optional",+ "MCP servers": "MCP servers",+ "External MCP servers (coming soon).": "External MCP servers (coming soon).",+ "Connect external MCP (Model Context Protocol) servers to extend the agent's capabilities.": "Connect external MCP (Model Context Protocol) servers to extend the agent's capabilities.",+ "MCP server support is coming soon": "MCP server support is coming soon",+ "We're working on a way to register and authenticate MCP servers from this page so the chat agent can call tools they expose. Until then, this section is reserved as a placeholder.": "We're working on a way to register and authenticate MCP servers from this page so the chat agent can call tools they expose. Until then, this section is reserved as a placeholder.",+ "Language model providers and active profile.": "Language model providers and active profile.",+ "Configure language model profiles. The active model is used for chat and most agent reasoning.": "Configure language model profiles. The active model is used for chat and most agent reasoning.",+ "Embedding model providers and dimensions.": "Embedding model providers and dimensions.",+ "Configure embedding model profiles. Used by retrieval and knowledge-base ingestion.": "Configure embedding model profiles. Used by retrieval and knowledge-base ingestion.",+ "Web search providers.": "Web search providers.",+ "Configure web search providers. Used by the web_search tool and any agent step that hits the open web.": "Configure web search providers. Used by the web_search tool and any agent step that hits the open web.",+ "{{count}} profiles": "{{count}} profiles",+ "Memory tooltip": "Memory tooltip",+ "Browse L1 trace for this surface": "Browse L1 trace for this surface",+ "L1 trace · {{surface}}": "L1 trace · {{surface}}",+ "{{count}} events": "{{count}} events",+ "Clear focus": "Clear focus",+ "No trace events recorded yet.": "No trace events recorded yet.",+ "L1 · Raw traces": "L1 · Raw traces",+ "L2 · Per-surface": "L2 · Per-surface",+ "L3 · Cross-surface": "L3 · Cross-surface",+ "Every L1 trace event, click to jump to the source.": "Every L1 trace event, click to jump to the source.",+ "Per-surface summaries consolidated from L1.": "Per-surface summaries consolidated from L1.",+ "Cross-surface knowledge consolidated from L2.": "Cross-surface knowledge consolidated from L2.",+ "All surfaces": "All surfaces",+ "Clear all L1 trace for {{surface}}": "Clear all L1 trace for {{surface}}",+ "Open in {{label}}": "Open in {{label}}",+ "Workspace coverage": "Workspace coverage",+ "{{n}} items in workspace not yet in trace": "{{n}} items in workspace not yet in trace",+ "All discoverable items already traced": "All discoverable items already traced",+ "Backfill {{n}}": "Backfill {{n}}",+ "L1 mirrors your workspace, L2 summarises per-surface content, L3 is cross-surface knowledge.": "L1 mirrors your workspace, L2 summarises per-surface content, L3 is cross-surface knowledge.",+ "L1 · Workspace": "L1 · Workspace",+ "Live snapshot of your workspace — one entry per real artifact.": "Live snapshot of your workspace — one entry per real artifact.",+ "Re-scan workspace and record any changes": "Re-scan workspace and record any changes",+ "Refreshed: {{n}} changes": "Refreshed: {{n}} changes",+ "Refreshed: no changes": "Refreshed: no changes",+ "Snapshot": "Snapshot",+ "Changes": "Changes",+ "Queries": "Queries",+ "{{n}} entities": "{{n}} entities",+ "last refresh {{ts}}": "last refresh {{ts}}",+ "Nothing in workspace yet.": "Nothing in workspace yet.",+ "No changes recorded yet. Run Refresh to capture the baseline.": "No changes recorded yet. Run Refresh to capture the baseline.",+ "{{n}} pending": "{{n}} pending",+ "Workspace changed since last refresh. Click Refresh to commit these to the changes log.": "Workspace changed since last refresh. Click Refresh to commit these to the changes log.",+ "Pending — {{n}} change(s) since last refresh": "Pending — {{n}} change(s) since last refresh",+ "Pending — not yet committed to changes log": "Pending — not yet committed to changes log",+ "Click Refresh to commit": "Click Refresh to commit",+ "new": "new",+ "modified": "modified",+ "removed": "removed",+ "No RAG queries recorded yet.": "No RAG queries recorded yet.",+ "Empty. Click Update to consolidate from the current snapshot.": "Empty. Click Update to consolidate from the current snapshot.",+ "Per-surface summaries consolidated from L1 content.": "Per-surface summaries consolidated from L1 content.",+ "Tool Calling…": "Tool Calling…",+ "DeepTutor Planning…": "DeepTutor Planning…",+ "DeepTutor Drafting…": "DeepTutor Drafting…",+ "DeepTutor Responding…": "DeepTutor Responding…",+ "DeepTutor Reasoning…": "DeepTutor Reasoning…",+ "DeepTutor responded.": "DeepTutor responded.",+ "DeepTutor Exploring…": "DeepTutor Exploring…",+ "DeepTutor Quizzing…": "DeepTutor Quizzing…",+ "DeepTutor Reflecting…": "DeepTutor Reflecting…",+ "Decomposing Target": "Decomposing Target",+ "Researching Topic": "Researching Topic",+ "Researching Topic #{{n}}": "Researching Topic #{{n}}",+ "Reporting Outline": "Reporting Outline",+ "Reporting Intro": "Reporting Intro",+ "Reporting Section": "Reporting Section",+ "Reporting Section #{{n}}": "Reporting Section #{{n}}",+ "Reporting Conclusion": "Reporting Conclusion",+ "Reflecting": "Reflecting",+ "Everything DeepTutor remembers about you, organised across three layers. Click into any layer to inspect or curate it.": "Everything DeepTutor remembers about you, organised across three layers. Click into any layer to inspect or curate it.",+ "Memory settings": "Memory settings",+ "L1 · Workspace mirror": "L1 · Workspace mirror",+ "L2 · Per-surface summaries": "L2 · Per-surface summaries",+ "L3 · Cross-surface knowledge": "L3 · Cross-surface knowledge",+ "Live": "Live",+ "Curated": "Curated",+ "entities tracked": "entities tracked",+ "Snapshot of your live workspace across {{n}} surfaces. Refresh to record changes.": "Snapshot of your live workspace across {{n}} surfaces. Refresh to record changes.",+ "facts across {{n}} surfaces": "facts across {{n}} surfaces",+ "Surface-specific facts extracted by the consolidator. Run Update / Audit / Dedup per doc.": "Surface-specific facts extracted by the consolidator. Run Update / Audit / Dedup per doc.",+ "propositions across {{n}} slots": "propositions across {{n}} slots",+ "Cross-surface synthesis: profile, recent timeline, knowledge scope. Hedged claims with L2 evidence.": "Cross-surface synthesis: profile, recent timeline, knowledge scope. Hedged claims with L2 evidence.",+ "See all three layers at once — L3 synthesis at the centre, L2 facts in the middle, L1 traces on the outside. Hover any node for a preview.": "See all three layers at once — L3 synthesis at the centre, L2 facts in the middle, L1 traces on the outside. Hover any node for a preview.",+ "Pick a surface to open its workbench. Each L2 doc has Update / Audit / Dedup modes.": "Pick a surface to open its workbench. Each L2 doc has Update / Audit / Dedup modes.",+ "{{n}} facts captured": "{{n}} facts captured",+ "Not built yet": "Not built yet",+ "Open workbench": "Open workbench",+ "Cross-surface synthesis: profile, recent timeline, knowledge scope. Each slot has its own workbench.": "Cross-surface synthesis: profile, recent timeline, knowledge scope. Each slot has its own workbench.",+ "A rolling timeline across all surfaces, last 1–4 weeks.": "A rolling timeline across all surfaces, last 1–4 weeks.",+ "Durable identity, learning style, knowledge level — only multi-surface evidence.": "Durable identity, learning style, knowledge level — only multi-surface evidence.",+ "Concepts you've engaged with, tagged familiar / practicing / unsure.": "Concepts you've engaged with, tagged familiar / practicing / unsure.",+ "{{n}} propositions": "{{n}} propositions",+ "Surface-specific facts about the user. Update extracts new facts; Audit checks vs raw evidence; Dedup tidies.": "Surface-specific facts about the user. Update extracts new facts; Audit checks vs raw evidence; Dedup tidies.",+ "Cross-surface synthesis. Hedged claims with L2 evidence.": "Cross-surface synthesis. Hedged claims with L2 evidence.",+ "Edit raw": "Edit raw",+ "Rendered": "Rendered",+ "Line numbers": "Line numbers",+ "Empty. Click Update to extract facts from your traces.": "Empty. Click Update to extract facts from your traces.",+ "Update memory": "Update memory",+ "Extract facts from new traces since last update. Append-only.": "Extract facts from new traces since last update. Append-only.",+ "LLM budget (rounds)": "LLM budget (rounds)",+ "Audit memory": "Audit memory",+ "Check existing facts against full raw evidence. Line-level edits.": "Check existing facts against full raw evidence. Line-level edits.",+ "Dedup": "Dedup",+ "Iteratively merge duplicates & rewrite muddled entries.": "Iteratively merge duplicates & rewrite muddled entries.",+ "Adjust defaults in": "Adjust defaults in",+ "Run progress": "Run progress",+ "Tune the chunk-based consolidator: how many LLM rounds per Update / Audit / Dedup, how aggressively to chunk, and how strictly to validate references.": "Tune the chunk-based consolidator: how many LLM rounds per Update / Audit / Dedup, how aggressively to chunk, and how strictly to validate references.",+ "Update mode": "Update mode",+ "Default LLM rounds for chunk-based incremental fact extraction. Per-doc overrides live in the workbench.": "Default LLM rounds for chunk-based incremental fact extraction. Per-doc overrides live in the workbench.",+ "L2 budget (per surface)": "L2 budget (per surface)",+ "L3 budget (per slot)": "L3 budget (per slot)",+ "Maximum chunks the chunker emits for an L2 update.": "Maximum chunks the chunker emits for an L2 update.",+ "Maximum chunks for an L3 update across the 7 L2 docs.": "Maximum chunks for an L3 update across the 7 L2 docs.",+ "Audit mode": "Audit mode",+ "Default LLM rounds for line-level edits against raw evidence.": "Default LLM rounds for line-level edits against raw evidence.",+ "Iterative dedup over the full doc. Stops early when an iteration emits zero edits.": "Iterative dedup over the full doc. Stops early when an iteration emits zero edits.",+ "Run dedup automatically after Update": "Run dedup automatically after Update",+ "Chunking": "Chunking",+ "Lower-level knobs that shape how content is split.": "Lower-level knobs that shape how content is split.",+ "Overlap ratio": "Overlap ratio",+ "Fraction of chunk size carried into the next chunk. 0–0.5.": "Fraction of chunk size carried into the next chunk. 0–0.5.",+ "Boundary": "Boundary",+ "Where the chunker prefers to cut.": "Where the chunker prefers to cut.",+ "Paragraph": "Paragraph",+ "Sentence": "Sentence",+ "Min chunk chars": "Min chunk chars",+ "Max chunk chars": "Max chunk chars",+ "Floor for individual chunk size.": "Floor for individual chunk size.",+ "Ceiling for individual chunk size.": "Ceiling for individual chunk size.",+ "References": "References",+ "How strictly facts must cite the chunk they were extracted from.": "How strictly facts must cite the chunk they were extracted from.",+ "Require ref on every fact": "Require ref on every fact",+ "Drops facts that come back without a ref.": "Drops facts that come back without a ref.",+ "Drop invalid refs (vs reject the whole fact)": "Drop invalid refs (vs reject the whole fact)",+ "On: keep the fact, drop only out-of-pool refs. Off: any bad ref rejects the fact.": "On: keep the fact, drop only out-of-pool refs. Off: any bad ref rejects the fact.",+ "Run": "Run",+ "Failed to save to notebook.": "Failed to save to notebook.",+ "Notebook save stream ended unexpectedly.": "Notebook save stream ended unexpectedly.",+ "Failed to edit selected text.": "Failed to edit selected text.",+ "Streaming response body is missing.": "Streaming response body is missing.",+ "Did not receive a final edit result.": "Did not receive a final edit result.",+ "The draft changed before AI edit finished. Please reselect the text and try again.": "The draft changed before AI edit finished. Please reselect the text and try again.",+ "Failed to edit document.": "Failed to edit document.",+ "Failed to auto-mark document.": "Failed to auto-mark document.",+ "Failed to save capability settings (HTTP {{status}})": "Failed to save capability settings (HTTP {{status}})",+ "Backend returned an unexpected payload after save.": "Backend returned an unexpected payload after save.",+ "Knowledge base": "Knowledge base",+ "Co-writer": "Co-writer",+ "Recent summary": "Recent summary",+ "User profile": "User profile",+ "Knowledge scope": "Knowledge scope",+ "Failed to load capability settings (HTTP {{status}}). Make sure the backend is running the latest build — the /api/v1/capabilities/settings endpoint was added in this release.": "Failed to load capability settings (HTTP {{status}}). Make sure the backend is running the latest build — the /api/v1/capabilities/settings endpoint was added in this release.",+ "The backend returned an unexpected payload for /api/v1/capabilities/settings. Restart the backend to pick up the latest schema.": "The backend returned an unexpected payload for /api/v1/capabilities/settings. Restart the backend to pick up the latest schema.",+ "Failed to load capability settings.": "Failed to load capability settings.",+ "Preparing {{service}} diagnostics...": "Preparing {{service}} diagnostics...",+ "Could not start diagnostics.": "Could not start diagnostics.",+ "Diagnostics stream disconnected.": "Diagnostics stream disconnected.",+ "System status unavailable.": "System status unavailable.",+ "System status unavailable: {{message}}": "System status unavailable: {{message}}",+ "http://127.0.0.1:7890 (optional)": "http://127.0.0.1:7890 (optional)",+ "stream failed": "stream failed",+ "start failed": "start failed",+ "start failed: {{status}}": "start failed: {{status}}",+ "undo failed": "undo failed",+ "undo failed: {{status}}": "undo failed: {{status}}",+ "reset failed: {{status}}": "reset failed: {{status}}",+ "unknown error": "unknown error",+ "Answer-now (max tokens)": "Answer-now (max tokens)",+ "Budget for the user-forced short-circuit response.": "Budget for the user-forced short-circuit response.",+ "Cap on the THINK / TOOL inner loop within a single plan step.": "Cap on the THINK / TOOL inner loop within a single plan step.",+ "Cap on the explore loop before planning.": "Cap on the explore loop before planning.",+ "Couldn't load capability settings": "Couldn't load capability settings",+ "Deep question (quiz) generation pipeline.": "Deep question (quiz) generation pipeline.",+ "Deep research pipeline. Iteration count is controlled per request via the depth selector (quick / standard / deep / manual) in the chat input, not here.": "Deep research pipeline. Iteration count is controlled per request via the depth selector (quick / standard / deep / manual) in the chat input, not here.",+ "Deep solve pipeline: chained THINK / TOOL / FINISH / REPLAN loop.": "Deep solve pipeline: chained THINK / TOOL / FINISH / REPLAN loop.",+ "Explore max iterations": "Explore max iterations",+ "Hard cap on chat loop iterations per turn.": "Hard cap on chat loop iterations per turn.",+ "How far back paper search will scan.": "How far back paper search will scan.",+ "How many times the planner may revise the plan within one turn.": "How many times the planner may revise the plan within one turn.",+ "Manim animation / image generation pipeline.": "Manim animation / image generation pipeline.",+ "Math animator": "Math animator",+ "Max iterations": "Max iterations",+ "Max iterations per step": "Max iterations per step",+ "Max replans": "Max replans",+ "Max tokens": "Max tokens",+ "Paper search years limit": "Paper search years limit",+ "Per-capability LLM parameters and runtime knobs. Values are persisted to data/user/settings/agents.yaml (LLM params) and data/user/settings/main.yaml (runtime knobs).": "Per-capability LLM parameters and runtime knobs. Values are persisted to data/user/settings/agents.yaml (LLM params) and data/user/settings/main.yaml (runtime knobs).",+ "Per-iteration budget for the chat LLM call (which emits THINK / TOOL / FINISH labels in a single stream).": "Per-iteration budget for the chat LLM call (which emits THINK / TOOL / FINISH labels in a single stream).",+ "Per-tool wall-clock timeout for the researching phase.": "Per-tool wall-clock timeout for the researching phase.",+ "Sampling temperature shared across every chat stage.": "Sampling temperature shared across every chat stage.",+ "Selection edit / inline rewrite agent.": "Selection edit / inline rewrite agent.",+ "Summarize long tool outputs to keep the prompt budget low.": "Summarize long tool outputs to keep the prompt budget low.",+ "Temperature": "Temperature",+ "The agentic chat loop. Stage budgets cap max_tokens per stage; lower the intermediate stages on small-context models.": "The agentic chat loop. Stage budgets cap max_tokens per stage; lower the intermediate stages on small-context models.",+ "Tool max retries": "Tool max retries",+ "Tool summarizer (max tokens)": "Tool summarizer (max tokens)",+ "Tool summarizer enabled": "Tool summarizer enabled",+ "Tool timeout (s)": "Tool timeout (s)",+ "Clear trace": "Clear trace",+ "Default model": "Default model",+ "Edit applied": "Edit applied",+ "Edit rejected": "Edit rejected",+ "Facts extracted": "Facts extracted",+ "LLM workspace": "LLM workspace",+ "Markdown updated": "Markdown updated",+ "Pick a mode and click Run. The LLM trace — system prompt, user prompt, response — appears here, turn by turn.": "Pick a mode and click Run. The LLM trace — system prompt, user prompt, response — appears here, turn by turn.",+ "Ref dropped": "Ref dropped",+ "Reset failed: {{msg}}": "Reset failed: {{msg}}",+ "Reset memory (delete md + seen-id state)": "Reset memory (delete md + seen-id state)",+ "Reset will delete the current memory file AND its seen-id state. The next Update will re-ingest every L1 entity from scratch. Continue?": "Reset will delete the current memory file AND its seen-id state. The next Update will re-ingest every L1 entity from scratch. Continue?",+ "Run ended": "Run ended",+ "Run started": "Run started",+ "Streaming…": "Streaming…",+ "System prompt": "System prompt",+ "Traces loaded": "Traces loaded",+ "Undo applied": "Undo applied",+ "Undo last memory edit": "Undo last memory edit",+ "User prompt": "User prompt",+ "Working…": "Working…",+ "(skipped)": "(skipped)",+ "All questions answered.": "All questions answered.",+ "Next question": "Next question",+ "Other — write your own reply…": "Other — write your own reply…",+ "Other: {{text}}": "Other: {{text}}",+ "Pick an option or type your own to continue.": "Pick an option or type your own to continue.",+ "Please answer to continue.": "Please answer to continue.",+ "Previous question": "Previous question",+ "Sending your answers…": "Sending your answers…",+ "Submit answers": "Submit answers",+ "Type your reply…": "Type your reply…",+ "Unanswered questions will be submitted as skipped.": "Unanswered questions will be submitted as skipped.",+ "Your answers": "Your answers",+ "{{count}} questions — tap a tab to switch.": "{{count}} questions — tap a tab to switch.",+ "Close tab": "Close tab",+ "Close viewer": "Close viewer",+ "Loading {{host}}…": "Loading {{host}}…",+ "Many sites refuse to embed for security reasons. If the page below stays blank, use “Open in browser”.": "Many sites refuse to embed for security reasons. If the page below stays blank, use “Open in browser”.",+ "Open URL": "Open URL",+ "Open a local file": "Open a local file",+ "Open in browser": "Open in browser",+ "Paste a URL or open a local file. Attachments from chat will also land here.": "Paste a URL or open a local file. Attachments from chat will also land here.",+ "This site looks like it refused to embed (its security headers block iframes). Use “Open in browser” to view it in a real tab.": "This site looks like it refused to embed (its security headers block iframes). Use “Open in browser” to view it in a real tab.",+ "https://example.com": "https://example.com",+ "Pick a document to view or update": "Pick a document to view or update",+ "Preferences are written when you explicitly tell the chat assistant your preferences (style, language, format).": "Preferences are written when you explicitly tell the chat assistant your preferences (style, language, format).",+ "Preferences is written by the chat assistant, not consolidated.": "Preferences is written by the chat assistant, not consolidated.",+ "Stored at memory/backup/{{name}}. v2 starts fresh — interact with DeepTutor and click Update on each doc to build memory.": "Stored at memory/backup/{{name}}. v2 starts fresh — interact with DeepTutor and click Update on each doc to build memory.",+ "Update progress": "Update progress",+ "Your v1 memory was archived": "Your v1 memory was archived",+ "not built": "not built",+ "Click to rename session": "Click to rename session",+ "Open viewer": "Open viewer",+ "Rename failed": "Rename failed",+ "Session activity": "Session activity",+ "Session title": "Session title",+ "Start a conversation to rename": "Start a conversation to rename",+ "As you chat, the tools, references and attachments you use will appear here.": "As you chat, the tools, references and attachments you use will appear here.",+ "Question #{{n}}": "Question #{{n}}",+ "Tools used": "Tools used",+ "{{n}} page(s)": "{{n}} page(s)",+ "Merge automatically after Audit": "Merge automatically after Audit",+ "Merge automatically after Dedup": "Merge automatically after Dedup",+ "Merge automatically after Update": "Merge automatically after Update",+ "Merge footnotes": "Merge footnotes",+ "No-LLM consolidation: collapse duplicate ref rows into one footnote each, then renumber. Idempotent, safe to run any time.": "No-LLM consolidation: collapse duplicate ref rows into one footnote each, then renumber. Idempotent, safe to run any time.",+ "Click to open an interactive GeoGebra canvas in the side viewer.": "Click to open an interactive GeoGebra canvas in the side viewer.",+ "GeoGebra figure": "GeoGebra figure",+ "GeoGebra viewer is not available in this surface": "GeoGebra viewer is not available in this surface",+ "Interactive GeoGebra figure": "Interactive GeoGebra figure",+ "Embedding requests are sent to this URL exactly; DeepTutor does not append /embeddings or /api/embed at request time.": "Embedding requests are sent to this URL exactly; DeepTutor does not append /embeddings or /api/embed at request time.",+ "Endpoint URL": "Endpoint URL",+ "Model endpoints are assigned by your administrator. You can still personalize theme and language here.": "Model endpoints are assigned by your administrator. You can still personalize theme and language here.",+ "Waiting for test run...": "Waiting for test run...",+ "Browse, rename, delete, and reopen previous conversations from your learning space.": "Browse, rename, delete, and reopen previous conversations from your learning space.",+ "Delete this chat?": "Delete this chat?",+ "Search chat history...": "Search chat history...",+ "Attach knowledge bases": "Attach knowledge bases",+ "No knowledge bases available": "No knowledge bases available",+ "Could not load settings from the backend.": "Could not load settings from the backend.",+ "Verify the backend is running and NEXT_PUBLIC_API_BASE points to a reachable host. For Docker, see data/user/settings/system.json.": "Verify the backend is running and NEXT_PUBLIC_API_BASE points to a reachable host. For Docker, see data/user/settings/system.json.",+ "Delete this turn?": "Delete this turn?",+ "Skills Auto": "Skills Auto",+ "Failed to load GeoGebra": "Failed to load GeoGebra",+ "Loading GeoGebra...": "Loading GeoGebra...",+ "HTML visualization": "HTML visualization",+ "SVG visualization": "SVG visualization",+ "Assigned by admin": "Assigned by admin",+ "Assigned knowledge bases are read-only": "Assigned knowledge bases are read-only",+ "Describe the chart, diagram, or animation you want to visualize...": "Describe the chart, diagram, or animation you want to visualize...",+ "sub-topics": "sub-topics",+ "{{count}} round": "{{count}} round",+ "Memory graph": "Memory graph",+ "L3 synthesis at the centre, L2 facts in the middle ring, L1 traces on the outside.": "L3 synthesis at the centre, L2 facts in the middle ring, L1 traces on the outside.",+ "Composing memory graph…": "Composing memory graph…",+ "Zoom in": "Zoom in",+ "Zoom out": "Zoom out",+ "Fit": "Fit",+ "Per-surface": "Per-surface",+ "Raw traces": "Raw traces",+ "Recent": "Recent",+ "facts": "facts",+ "traces": "traces",+ "synthesis": "synthesis",+ "L3 · synthesis": "L3 · synthesis",+ "L2 · curated": "L2 · curated",+ "L1 · raw trace": "L1 · raw trace",+ "Click to lock · open in workbench": "Click to lock · open in workbench",+ "Hover a node to preview the memory. Click to lock the highlight and trace its references inward (L1 → L2 → L3) or outward.": "Hover a node to preview the memory. Click to lock the highlight and trace its references inward (L1 → L2 → L3) or outward."}diff --cc web/locales/zh/app.jsonindex e1f5f6a4f,3dc92024f..f8c078cd9--- a/web/locales/zh/app.json+++ b/web/locales/zh/app.json@@@ -1646,103 -1767,264 +1769,363 @@@"Edit any field to update settings.": "修改任意字段即可更新设置。","Confirm settings to enable sending.": "确认设置后即可发送。","Confirm settings on the right to send.": "请先在右侧确认设置后再发送。",+ "Learning": "学习",+ "Learning tooltip": "结构化掌握式引导学习。",+ "Space tooltip": "你的个人学习空间。",+ "guidedLearning.title": "引导式学习",+ "guidedLearning.description": "框架 v1.8.2 — 结构化掌握式学习",+ "guidedLearning.noModules": "暂无模块",+ "guidedLearning.startLearning": "开始学习",+ "guidedLearning.modules": "学习模块",+ "guidedLearning.knowledgePoints": "个知识点",+ "guidedLearning.knowledgePointsLabel": "知识点",+ "guidedLearning.mastered": "已掌握",+ "guidedLearning.stages": "学习阶段",+ "guidedLearning.ready": "准备开始学习",+ "guidedLearning.selectModule": "选择模块",+ "guidedLearning.selectModuleDesc": "选择一个模块开始引导学习",+ "guidedLearning.generatingDiagnostic": "正在生成诊断题...",+ "guidedLearning.connectionError": "连接错误",+ "guidedLearning.stageFailed": "阶段执行失败。进度已保存,将重试该阶段。",+ "guidedLearning.moduleProgress": "{{count}} 个知识点",+ "guidedLearning.masteredProgress": "已掌握 {{mastered}}/{{total}}",+ "guidedLearning.inputPlaceholder": "输入你的答案...",+ "guidedLearning.submit": "提交",+ "guidedLearning.noModulesLoaded": "暂无模块",+ "guidedLearning.createModule": "创建模块",+ "guidedLearning.tabCurrent": "当前学习",+ "guidedLearning.tabCompleted": "已完成",+ "guidedLearning.tabAll": "全部",+ "guidedLearning.mastered": "已掌握",+ "guidedLearning.continueLearning": "继续学习",+ "guidedLearning.redo": "重做",+ "guidedLearning.redoConfirm": "将重置学习进度但保留模块结构,确认继续?",+ "guidedLearning.redoFailed": "重做失败",+ "guidedLearning.delete": "删除",+ "guidedLearning.deleteConfirm": "将永久删除所有进度和模块,确认继续?",+ "guidedLearning.deleteFailed": "删除失败",+ "guidedLearning.stage.diagnostic_phase1": "诊断阶段一",+ "guidedLearning.stage.diagnostic_phase2": "诊断阶段二",+ "guidedLearning.stage.metacognitive_intro": "元认知导入",+ "guidedLearning.stage.plan": "学习计划",+ "guidedLearning.stage.pretest": "预测试",+ "guidedLearning.stage.explain": "讲解",+ "guidedLearning.stage.feynman_check": "费曼检验",+ "guidedLearning.stage.practice_quiz": "练习测验",+ "guidedLearning.stage.practice": "练习",+ "guidedLearning.stage.error_diagnosis": "错因诊断",+ "guidedLearning.stage.module_test": "模块测试",+ "guidedLearning.stage.review": "复习",+ "guidedLearning.stage.completed": "已完成",+ "Start learning": "开始学习",+ "guidedLearning.alreadyHasProgress": "该书已有学习进度,将直接继续学习。",+ "guidedLearning.tabManual": "手动创建",+ "guidedLearning.tabBook": "从书籍导入",+ "guidedLearning.tabKb": "从知识库导入",+ "guidedLearning.tabNotebook": "从笔记本导入",+ "guidedLearning.bookId": "书籍 ID",+ "guidedLearning.moduleName": "模块名称",+ "guidedLearning.moduleNamePlaceholder": "如:线性代数入门",+ "guidedLearning.kpNamePlaceholder": "知识点名称",+ "guidedLearning.addKp": "添加知识点",+ "guidedLearning.noBooks": "暂无可用书籍",+ "guidedLearning.chapters": "章节",+ "guidedLearning.loadingChapters": "加载章节中...",+ "guidedLearning.noChapters": "该书未找到章节",+ "guidedLearning.chaptersToImport": "将导入 {{count}} 个章节",+ "guidedLearning.kps": "知识点",+ "guidedLearning.noKb": "暂无可用知识库",+ "guidedLearning.noNotebooks": "暂无可用笔记本",+ "guidedLearning.records": "条记录",+ "guidedLearning.loadingRecords": "加载记录中...",+ "guidedLearning.noRecords": "该笔记本暂无记录",+ "guidedLearning.selectRecords": "选择要导入的记录",+ "guidedLearning.selected": "已选",+ "guidedLearning.recordsLimited": "仅显示前 20 条记录。",+ "guidedLearning.cancel": "取消",+ "guidedLearning.create": "创建",+ "guidedLearning.generateModules": "生成模块",+ "guidedLearning.moduleNameRequired": "请至少输入一个知识点。",+ "guidedLearning.untitledModule": "未命名模块",+ "guidedLearning.createModuleFailed": "创建模块失败",+ "guidedLearning.importBookFailed": "从书籍导入失败",+ "guidedLearning.importKbFailed": "从知识库导入失败",+ "guidedLearning.importNotebookFailed": "从笔记本生成模块失败",+ "guidedLearning.loadBooksFailed": "加载书籍失败",+ "guidedLearning.loadKbFailed": "加载知识库失败",+ "guidedLearning.loadNotebooksFailed": "加载笔记本失败",+ "guidedLearning.loadChaptersFailed": "加载章节失败",+ "guidedLearning.loadRecordsFailed": "加载笔记本记录失败",+ "guidedLearning.comingSoon": "即将推出",+ "guidedLearning.kbComingSoon": "知识库导入即将推出",+ "guidedLearning.kbComingSoonDesc": "此功能将使用 AI 从知识库中提取学习模块。",+ "guidedLearning.startLearningFailed": "启动学习失败",+ "knowledgeType.memory": "记忆型",+ "knowledgeType.concept": "概念型",+ "knowledgeType.procedure": "程序型",+ "knowledgeType.design": "设计型",+ "errorType.structural": "知识结构性",+ "errorType.deviation": "理解偏差型",+ "errorType.application": "应用错误",- "errorType.metacognitive": "元认知型"++ "errorType.metacognitive": "元认知型",+ "Tool Calling…": "调用工具中…",+ "DeepTutor Planning…": "DeepTutor 规划中…",+ "DeepTutor Drafting…": "DeepTutor 撰写中…",+ "DeepTutor Responding…": "DeepTutor 回答中…",+ "DeepTutor Reasoning…": "DeepTutor 推理中…",+ "DeepTutor responded.": "DeepTutor 已回答。",+ "DeepTutor Exploring…": "DeepTutor 探索中…",+ "DeepTutor Quizzing…": "DeepTutor 出题中…",+ "DeepTutor Reflecting…": "DeepTutor 反思中…",+ "Decomposing Target": "Decomposing Target",+ "Researching Topic": "Researching Topic",+ "Researching Topic #{{n}}": "Researching Topic #{{n}}",+ "Reporting Outline": "Reporting Outline",+ "Reporting Intro": "Reporting Intro",+ "Reporting Section": "Reporting Section",+ "Reporting Section #{{n}}": "Reporting Section #{{n}}",+ "Reporting Conclusion": "Reporting Conclusion",+ "Reflecting": "反思",+ "Everything DeepTutor remembers about you, organised across three layers. Click into any layer to inspect or curate it.": "DeepTutor 关于你的全部记忆,分为三层组织。点击任何一层进入查看或整理。",+ "Memory settings": "记忆设置",+ "L1 · Workspace mirror": "L1 · 工作区镜像",+ "L2 · Per-surface summaries": "L2 · 各模块摘要",+ "L3 · Cross-surface knowledge": "L3 · 跨模块知识",+ "Live": "实时",+ "Curated": "整理后",+ "entities tracked": "条 workspace 实体",+ "Snapshot of your live workspace across {{n}} surfaces. Refresh to record changes.": "对你 {{n}} 个 surface 工作区的快照。点击 Refresh 记录变化。",+ "facts across {{n}} surfaces": "条事实,共 {{n}} 个 surface",+ "Surface-specific facts extracted by the consolidator. Run Update / Audit / Dedup per doc.": "由 consolidator 抽取的、每个 surface 的事实。每个文档支持 更新 / 检查 / 去重。",+ "propositions across {{n}} slots": "条命题,共 {{n}} 个 slot",+ "Cross-surface synthesis: profile, recent timeline, knowledge scope. Hedged claims with L2 evidence.": "跨 surface 综合:用户画像、近期时间线、知识 scope。每条判断都有 L2 证据。",+ "See all three layers at once — L3 synthesis at the centre, L2 facts in the middle, L1 traces on the outside. Hover any node for a preview.": "一次查看全部三层 —— 中心为 L3 综合,中圈为 L2 事实,外圈为 L1 原始事件。悬停任意节点可预览。",+ "Pick a surface to open its workbench. Each L2 doc has Update / Audit / Dedup modes.": "选择一个 surface 进入工作台。每个 L2 文档支持更新 / 检查 / 去重三种模式。",+ "{{n}} facts captured": "已记录 {{n}} 条事实",+ "Not built yet": "尚未构建",+ "Open workbench": "进入工作台",+ "Cross-surface synthesis: profile, recent timeline, knowledge scope. Each slot has its own workbench.": "跨 surface 综合:用户画像、近期时间线、知识 scope。每个 slot 都有独立工作台。",+ "A rolling timeline across all surfaces, last 1–4 weeks.": "跨所有 surface 的近 1-4 周滚动时间线。",+ "Durable identity, learning style, knowledge level — only multi-surface evidence.": "持久的身份、学习风格、知识水平 — 仅接受多 surface 证据。",+ "Concepts you've engaged with, tagged familiar / practicing / unsure.": "你接触过的概念,含 熟悉 / 练习中 / 不确定 标签。",+ "{{n}} propositions": "{{n}} 条命题",+ "Surface-specific facts about the user. Update extracts new facts; Audit checks vs raw evidence; Dedup tidies.": "关于用户的、surface 特定的事实。更新抽取新事实;检查对照原始证据;去重整理冗余。",+ "Cross-surface synthesis. Hedged claims with L2 evidence.": "跨 surface 综合。每条判断都有 L2 证据。",+ "Edit raw": "编辑原文",+ "Rendered": "渲染视图",+ "Line numbers": "带行号",+ "Empty. Click Update to extract facts from your traces.": "空。点击 更新 从原始 trace 中抽取事实。",+ "Update memory": "更新记忆",+ "Extract facts from new traces since last update. Append-only.": "抽取自上次更新以来新增 trace 中的事实。增量追加。",+ "LLM budget (rounds)": "LLM 预算(轮数)",+ "Audit memory": "检查记忆",+ "Check existing facts against full raw evidence. Line-level edits.": "对照完整原始证据检查已有事实。行级编辑。",+ "Dedup": "去重",+ "Iteratively merge duplicates & rewrite muddled entries.": "迭代式合并重复、改写混乱条目。",+ "Adjust defaults in": "默认值可在",+ "Run progress": "执行进度",+ "Tune the chunk-based consolidator: how many LLM rounds per Update / Audit / Dedup, how aggressively to chunk, and how strictly to validate references.": "调整基于分块的 consolidator:每个模式 LLM 调用轮数、分块强度、引用校验严格程度。",+ "Update mode": "更新模式",+ "Default LLM rounds for chunk-based incremental fact extraction. Per-doc overrides live in the workbench.": "增量抽取事实时默认的 LLM 轮数。工作台可单文档覆盖。",+ "L2 budget (per surface)": "L2 预算(每个 surface)",+ "L3 budget (per slot)": "L3 预算(每个 slot)",+ "Maximum chunks the chunker emits for an L2 update.": "L2 更新时分块器最多产生的 chunk 数。",+ "Maximum chunks for an L3 update across the 7 L2 docs.": "L3 更新时跨 7 个 L2 文档的最大 chunk 数。",+ "Audit mode": "检查模式",+ "Default LLM rounds for line-level edits against raw evidence.": "对照原始证据做行级编辑时的默认 LLM 轮数。",+ "Iterative dedup over the full doc. Stops early when an iteration emits zero edits.": "对整个文档迭代去重。某轮无任何编辑时提前停止。",+ "Run dedup automatically after Update": "更新后自动跑去重",+ "Chunking": "分块",+ "Lower-level knobs that shape how content is split.": "底层旋钮:控制内容如何切分。",+ "Overlap ratio": "重叠比例",+ "Fraction of chunk size carried into the next chunk. 0–0.5.": "相邻 chunk 的字符重叠比例,0–0.5。",+ "Boundary": "切分边界",+ "Where the chunker prefers to cut.": "分块器倾向于在哪里切。",+ "Paragraph": "段落",+ "Sentence": "句子",+ "Min chunk chars": "Chunk 最小字符数",+ "Max chunk chars": "Chunk 最大字符数",+ "Floor for individual chunk size.": "单个 chunk 字符数下限。",+ "Ceiling for individual chunk size.": "单个 chunk 字符数上限。",+ "References": "引用",+ "How strictly facts must cite the chunk they were extracted from.": "事实必须如何严格地引用其所在 chunk。",+ "Require ref on every fact": "每条事实必须有 ref",+ "Drops facts that come back without a ref.": "丢弃没有 ref 的事实。",+ "Drop invalid refs (vs reject the whole fact)": "丢弃无效 ref(vs 拒绝整条事实)",+ "On: keep the fact, drop only out-of-pool refs. Off: any bad ref rejects the fact.": "开启:保留事实,只丢弃 chunk 范围之外的 ref。关闭:任何无效 ref 都会拒绝整条事实。",+ "Run": "运行",+ "Preference": "偏好设置",+ "Extra constraints, style, focus areas...": "额外约束、风格、关注点...",+ "Failed to save to notebook.": "保存到 Notebook 失败。",+ "Notebook save stream ended unexpectedly.": "Notebook 保存流意外中断。",+ "Failed to edit selected text.": "编辑选中文本失败。",+ "Streaming response body is missing.": "流式响应体缺失。",+ "Did not receive a final edit result.": "未接收到最终的编辑结果。",+ "The draft changed before AI edit finished. Please reselect the text and try again.": "在 AI 编辑完成前草稿已发生变化。请重新选择文本并重试。",+ "Failed to edit document.": "编辑文档失败。",+ "Failed to auto-mark document.": "自动标注文档失败。",+ "Failed to save capability settings (HTTP {{status}})": "保存能力设置失败(HTTP {{status}})",+ "Backend returned an unexpected payload after save.": "保存后后端返回了意外的数据格式。",+ "Knowledge base": "知识库",+ "Co-writer": "Co-writer",+ "Recent summary": "近期总结",+ "User profile": "用户画像",+ "Knowledge scope": "知识 Scope",+ "Failed to load capability settings (HTTP {{status}}). Make sure the backend is running the latest build — the /api/v1/capabilities/settings endpoint was added in this release.": "加载能力设置失败 (HTTP {{status}})。请确认后端已运行最新版本——/api/v1/capabilities/settings 接口是在本次发布中新增的。",+ "The backend returned an unexpected payload for /api/v1/capabilities/settings. Restart the backend to pick up the latest schema.": "后端为 /api/v1/capabilities/settings 返回了意外的数据格式。请重启后端以加载最新 schema。",+ "Failed to load capability settings.": "加载能力设置失败。",+ "Preparing {{service}} diagnostics...": "正在准备 {{service}} 诊断...",+ "Could not start diagnostics.": "无法启动诊断。",+ "Diagnostics stream disconnected.": "诊断流已断开。",+ "System status unavailable.": "系统状态不可用。",+ "System status unavailable: {{message}}": "系统状态不可用:{{message}}",+ "http://127.0.0.1:7890 (optional)": "http://127.0.0.1:7890(可选)",+ "stream failed": "流传输失败",+ "start failed": "启动失败",+ "start failed: {{status}}": "启动失败:{{status}}",+ "undo failed": "撤销失败",+ "undo failed: {{status}}": "撤销失败:{{status}}",+ "reset failed: {{status}}": "重置失败:{{status}}",+ "unknown error": "未知错误",+ "Answer-now (max tokens)": "立即回答(最大 token 数)",+ "Budget for the user-forced short-circuit response.": "用户强制短路响应的 token 预算。",+ "Cap on the THINK / TOOL inner loop within a single plan step.": "单个计划步骤内 THINK / TOOL 内循环的上限。",+ "Cap on the explore loop before planning.": "规划前探索循环的上限。",+ "Couldn't load capability settings": "无法加载能力设置",+ "Deep question (quiz) generation pipeline.": "Deep Question(出题)生成流水线。",+ "Deep research pipeline. Iteration count is controlled per request via the depth selector (quick / standard / deep / manual) in the chat input, not here.": "Deep Research 流水线。迭代次数按请求由聊天输入框中的深度选择器(快速 / 标准 / 深度 / 手动)控制,不在此处设置。",+ "Deep solve pipeline: chained THINK / TOOL / FINISH / REPLAN loop.": "Deep Solve 流水线:链式 THINK / TOOL / FINISH / REPLAN 循环。",+ "Explore max iterations": "探索阶段最大迭代次数",+ "Hard cap on chat loop iterations per turn.": "单轮聊天循环迭代次数的硬上限。",+ "How far back paper search will scan.": "论文搜索回溯多少年。",+ "How many times the planner may revise the plan within one turn.": "单轮内规划器可以修订计划的次数。",+ "Manim animation / image generation pipeline.": "Manim 动画 / 图像生成流水线。",+ "Math animator": "数学动画",+ "Max iterations": "最大迭代次数",+ "Max iterations per step": "每步最大迭代次数",+ "Max replans": "最大重新规划次数",+ "Max tokens": "最大 token 数",+ "Paper search years limit": "论文搜索年限",+ "Per-capability LLM parameters and runtime knobs. Values are persisted to data/user/settings/agents.yaml (LLM params) and data/user/settings/main.yaml (runtime knobs).": "每个能力的 LLM 参数和运行时旋钮。配置会持久化到 data/user/settings/agents.yaml(LLM 参数)和 data/user/settings/main.yaml(运行时旋钮)。",+ "Per-iteration budget for the chat LLM call (which emits THINK / TOOL / FINISH labels in a single stream).": "聊天 LLM 调用的每次迭代 token 预算(在单一流中输出 THINK / TOOL / FINISH 标签)。",+ "Per-tool wall-clock timeout for the researching phase.": "研究阶段每个工具的实际耗时超时上限。",+ "Sampling temperature shared across every chat stage.": "所有聊天阶段共享的采样温度。",+ "Selection edit / inline rewrite agent.": "选区编辑 / 行内改写 Agent。",+ "Summarize long tool outputs to keep the prompt budget low.": "对过长的工具输出进行摘要以控制 prompt 预算。",+ "Temperature": "温度",+ "The agentic chat loop. Stage budgets cap max_tokens per stage; lower the intermediate stages on small-context models.": "Agentic 聊天循环。Stage budgets 限定每个阶段的 max_tokens;在小上下文模型上调低中间阶段。",+ "Tool max retries": "工具最大重试次数",+ "Tool summarizer (max tokens)": "工具摘要器(最大 token 数)",+ "Tool summarizer enabled": "启用工具摘要器",+ "Tool timeout (s)": "工具超时(秒)",+ "Clear trace": "清空轨迹",+ "Default model": "默认模型",+ "Edit applied": "编辑已应用",+ "Edit rejected": "编辑已拒绝",+ "Facts extracted": "已抽取的事实",+ "LLM workspace": "LLM 工作区",+ "Markdown updated": "Markdown 已更新",+ "Pick a mode and click Run. The LLM trace — system prompt, user prompt, response — appears here, turn by turn.": "选择一个模式并点击「运行」。LLM 轨迹(system prompt、user prompt、response)将按轮次显示在此处。",+ "Ref dropped": "Ref 已丢弃",+ "Reset failed: {{msg}}": "重置失败:{{msg}}",+ "Reset memory (delete md + seen-id state)": "重置记忆(删除 md + seen-id 状态)",+ "Reset will delete the current memory file AND its seen-id state. The next Update will re-ingest every L1 entity from scratch. Continue?": "重置将删除当前记忆文件以及 seen-id 状态。下次「更新」会从零重新摄取所有 L1 实体。是否继续?",+ "Run ended": "运行已结束",+ "Run started": "运行已启动",+ "Streaming…": "流式传输中…",+ "System prompt": "System prompt",+ "Traces loaded": "轨迹已加载",+ "Undo applied": "撤销已应用",+ "Undo last memory edit": "撤销上一次记忆编辑",+ "User prompt": "User prompt",+ "Working…": "处理中…",+ "(skipped)": "(已跳过)",+ "All questions answered.": "所有问题已回答。",+ "Next question": "下一题",+ "Other — write your own reply…": "其他 — 自定义回复…",+ "Other: {{text}}": "其他:{{text}}",+ "Pick an option or type your own to continue.": "选择一个选项或输入自定义回复以继续。",+ "Please answer to continue.": "请作答以继续。",+ "Previous question": "上一题",+ "Sending your answers…": "正在发送回答…",+ "Submit answers": "提交回答",+ "Type your reply…": "输入回复…",+ "Unanswered questions will be submitted as skipped.": "未回答的问题将作为「已跳过」提交。",+ "Your answers": "你的回答",+ "{{count}} questions — tap a tab to switch.": "{{count}} 个问题 — 点击标签切换。",+ "Close tab": "关闭标签页",+ "Close viewer": "关闭查看器",+ "Loading {{host}}…": "正在加载 {{host}}…",+ "Many sites refuse to embed for security reasons. If the page below stays blank, use “Open in browser”.": "出于安全原因,许多网站拒绝嵌入。如果下方页面保持空白,请使用「在浏览器中打开」。",+ "Open URL": "打开 URL",+ "Open a local file": "打开本地文件",+ "Open in browser": "在浏览器中打开",+ "Paste a URL or open a local file. Attachments from chat will also land here.": "粘贴 URL 或打开本地文件。聊天中的附件也会在此处打开。",+ "This site looks like it refused to embed (its security headers block iframes). Use “Open in browser” to view it in a real tab.": "该网站似乎拒绝了嵌入(其安全头阻止了 iframe)。请使用「在浏览器中打开」在真实标签页中查看。",+ "https://example.com": "https://example.com",+ "Pick a document to view or update": "选择一个文档以查看或更新",+ "Preferences are written when you explicitly tell the chat assistant your preferences (style, language, format).": "当你向聊天助手明确告知偏好(风格、语言、格式)时,偏好才会被写入。",+ "Preferences is written by the chat assistant, not consolidated.": "偏好由聊天助手写入,不经过 consolidate。",+ "Stored at memory/backup/{{name}}. v2 starts fresh — interact with DeepTutor and click Update on each doc to build memory.": "已存储到 memory/backup/{{name}}。v2 从零开始 — 与 DeepTutor 交互,并对每个文档点击「更新」以构建记忆。",+ "Update progress": "更新进度",+ "Your v1 memory was archived": "你的 v1 记忆已归档",+ "not built": "未构建",+ "Click to rename session": "点击重命名会话",+ "Open viewer": "打开查看器",+ "Rename failed": "重命名失败",+ "Session activity": "会话活动",+ "Session title": "会话标题",+ "Start a conversation to rename": "开始对话后即可重命名",+ "As you chat, the tools, references and attachments you use will appear here.": "随着你聊天,使用过的工具、引用和附件会显示在这里。",+ "Question #{{n}}": "第 {{n}} 题",+ "Tools used": "使用的工具",+ "{{n}} page(s)": "共 {{n}} 页",+ "Merge automatically after Audit": "Audit 后自动合并",+ "Merge automatically after Dedup": "Dedup 后自动合并",+ "Merge automatically after Update": "Update 后自动合并",+ "Merge footnotes": "合并脚注",+ "No-LLM consolidation: collapse duplicate ref rows into one footnote each, then renumber. Idempotent, safe to run any time.": "无需 LLM 的整理:将重复的 ref 行合并为一个脚注后重新编号。幂等操作,任意时刻可安全运行。",+ "Click to open an interactive GeoGebra canvas in the side viewer.": "点击在侧边查看器中打开交互式 GeoGebra 画布。",+ "GeoGebra figure": "GeoGebra 图形",+ "GeoGebra viewer is not available in this surface": "此界面不支持 GeoGebra 查看器",+ "Interactive GeoGebra figure": "交互式 GeoGebra 图形",+ "Embedding requests are sent to this URL exactly; DeepTutor does not append /embeddings or /api/embed at request time.": "向量化请求会直接发送到此 URL;DeepTutor 不会在请求时追加 /embeddings 或 /api/embed。",+ "Endpoint URL": "端点 URL",+ "Model endpoints are assigned by your administrator. You can still personalize theme and language here.": "模型端点由管理员分配。你仍可在此处自定义主题和语言。",+ "Waiting for test run...": "等待测试运行...",+ "Browse, rename, delete, and reopen previous conversations from your learning space.": "浏览、重命名、删除并重新打开学习空间中的历史对话。",+ "Delete this chat?": "删除此对话?",+ "Search chat history...": "搜索历史对话...",+ "Attach knowledge bases": "附加知识库",+ "No knowledge bases available": "暂无可用的知识库",+ "Could not load settings from the backend.": "无法从后端加载设置。",+ "Verify the backend is running and NEXT_PUBLIC_API_BASE points to a reachable host. For Docker, see data/user/settings/system.json.": "请确认后端正在运行,且 NEXT_PUBLIC_API_BASE 指向可访问的主机。Docker 部署请参考 data/user/settings/system.json。",+ "Delete this turn?": "删除此轮对话?",+ "Skills Auto": "Skills Auto",+ "Failed to load GeoGebra": "加载 GeoGebra 失败",+ "Loading GeoGebra...": "正在加载 GeoGebra...",+ "HTML visualization": "HTML 可视化",+ "SVG visualization": "SVG 可视化",+ "Assigned by admin": "由管理员分配",+ "Assigned knowledge bases are read-only": "管理员分配的知识库为只读",+ "Describe the chart, diagram, or animation you want to visualize...": "描述你想可视化的图表、示意图或动画...",+ "sub-topics": "子主题",+ "{{count}} round": "{{count}} 轮",+ "Memory graph": "记忆图谱",+ "L3 synthesis at the centre, L2 facts in the middle ring, L1 traces on the outside.": "中心为 L3 综合,中圈为 L2 事实,外圈为 L1 原始事件。",+ "Composing memory graph…": "正在构建记忆图谱…",+ "Zoom in": "放大",+ "Zoom out": "缩小",+ "Fit": "适配",+ "Per-surface": "各模块",+ "Raw traces": "原始事件",+ "Recent": "近期",+ "facts": "条事实",+ "traces": "条事件",+ "synthesis": "综合",+ "L3 · synthesis": "L3 · 综合",+ "L2 · curated": "L2 · 已归纳",+ "L1 · raw trace": "L1 · 原始事件",+ "Click to lock · open in workbench": "点击锁定 · 在工作台中打开",+ "Hover a node to preview the memory. Click to lock the highlight and trace its references inward (L1 → L2 → L3) or outward.": "悬停节点可预览记忆。点击可锁定高亮,并追踪其向内(L1 → L2 → L3)或向外的引用关系。"}