DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.
Python ai-agentsai-tutorclawbotcli-tooldeepresearchinteractive-learninglearningmulti-agent-systemsrag
v1.0.3
Bingxi Zhao (Frank)8659d996f5e1
diff --git a/README.md b/README.mdindex 00664f683..4450756f7 100644--- a/README.md+++ b/README.md@@ -23,9 +23,10 @@</div>----### ๐ฆ Releases+> **[2026.4.13]** [v1.0.3](https://github.com/HKUDS/DeepTutor/releases/tag/v1.0.3) โ Question Notebook for unified quiz review with bookmarks & categories, Mermaid diagram support in Visualize, embedding model mismatch detection, system message merging for Qwen/vLLM compatibility, LM Studio & llama.cpp provider support, and Glass theme.+> **[2026.4.11]** [v1.0.2](https://github.com/HKUDS/DeepTutor/releases/tag/v1.0.2) โ Search consolidation simplification with SearXNG fallback, provider switch fix, explicit runtime config in test runner, and frontend resource leak fixes.> **[2026.4.10]** [v1.0.1](https://github.com/HKUDS/DeepTutor/releases/tag/v1.0.1) โ New Visualize capability with Chart.js/SVG rendering pipeline, quiz duplicate prevention with generation history, o4-mini model support, and server logging improvements.@@ -38,17 +39,6 @@> **[2026.4.4]** [v1.0.0-beta.1](https://github.com/HKUDS/DeepTutor/releases/tag/v1.0.0-beta.1) โ Agent-native architecture rewrite (๏ฝ200k lines) with two-layer plugin model (Tools + Capabilities), CLI & SDK entry points, TutorBot multi-channel bot agent, Co-Writer, Guided Learning, and persistent memory.-### ๐ฐ News--> **[2026.4.4]** Long time no see! โจ DeepTutor v1.0.0 is finally here โ an agent-native evolution featuring a ground-up architecture rewrite, TutorBot, and flexible mode switching under the Apache-2.0 license. A new chapter begins, and our story continues!--> **[2026.2.6]** ๐ We've reached 10k stars in just 39 days! A huge thank you to our incredible community for the support!--> **[2026.1.1]** Happy New Year! Join our [Discord](https://discord.gg/eRsjPgMU4t), [WeChat](https://github.com/HKUDS/DeepTutor/issues/78), or [Discussions](https://github.com/HKUDS/DeepTutor/discussions) โ let's shape the future of DeepTutor together!--> **[2025.12.29]** DeepTutor is officially released!--<details><summary><b>Past releases</b></summary>@@ -66,6 +56,17 @@</details>+### ๐ฐ News++> **[2026.4.4]** Long time no see! โจ DeepTutor v1.0.0 is finally here โ an agent-native evolution featuring a ground-up architecture rewrite, TutorBot, and flexible mode switching under the Apache-2.0 license. A new chapter begins, and our story continues!++> **[2026.2.6]** ๐ We've reached 10k stars in just 39 days! A huge thank you to our incredible community for the support!++> **[2026.1.1]** Happy New Year! Join our [Discord](https://discord.gg/eRsjPgMU4t), [WeChat](https://github.com/HKUDS/DeepTutor/issues/78), or [Discussions](https://github.com/HKUDS/DeepTutor/discussions) โ let's shape the future of DeepTutor together!++> **[2025.12.29]** DeepTutor is officially released!++## โจ Key Features- **Unified Chat Workspace** โ Five modes, one thread. Chat, Deep Solve, Quiz Generation, Deep Research, and Math Animator share the same context โ start a conversation, escalate to multi-agent problem solving, generate quizzes, then deep-dive into research, all without losing a single message.@@ -159,6 +160,8 @@ EMBEDDING_DIMENSION=3072| Gemini | `gemini` | `https://generativelanguage.googleapis.com/v1beta/openai/` || GitHub Copilot | `github_copilot` | `https://api.githubcopilot.com` || Groq | `groq` | `https://api.groq.com/openai/v1` |+| llama.cpp | `llama_cpp` | `http://localhost:8080/v1` |+| LM Studio | `lm_studio` | `http://localhost:1234/v1` || MiniMax | `minimax` | `https://api.minimax.io/v1` || Mistral | `mistral` | `https://api.mistral.ai/v1` || Moonshot (Kimi) | `moonshot` | `https://api.moonshot.ai/v1` |@@ -188,6 +191,7 @@ Embedding uses the same provider list as LLM. Common choices:| OpenAI | `openai` | `text-embedding-3-large` || DashScope | `dashscope` | `text-embedding-v3` || Ollama | `ollama` | `nomic-embed-text` |+| LM Studio | `lm_studio` | Any embedding model || SiliconFlow | `siliconflow` | `BAAI/bge-m3` || vLLM | `vllm` | Any embedding model || Any OpenAI-compatible | `custom` | โ |diff --git a/assets/releases/ver1-0-3.md b/assets/releases/ver1-0-3.mdnew file mode 100644index 000000000..7e2216a3b--- /dev/null+++ b/assets/releases/ver1-0-3.md@@ -0,0 +1,37 @@+# DeepTutor v1.0.3 Release Notes++**Release Date:** 2026.04.13++## Highlights++### Question Notebook โ Unified Quiz Review System+Replaced the single-purpose "Wrong Answer Note" with a full **Question Notebook** that stores every quiz question (correct and incorrect) with rich metadata โ question type, options, explanation, and difficulty. Each entry supports **bookmarking** and **category tagging** for organised review. A new dedicated `/notebook` page provides filtering (all / bookmarked / wrong), category management (create, rename, delete), and direct links back to the originating session. The `QuizViewer` component now integrates inline bookmark and category controls so users can organise questions without leaving the quiz flow.++### Mermaid Diagram Support in Visualize+Extended the Visualize capability with a third render type โ **Mermaid**. The analysis agent now chooses between `svg`, `chartjs`, and `mermaid`, preferring Mermaid for structured diagrams (flowcharts, sequence diagrams, class diagrams, mindmaps, etc.). The code generator and review agents received corresponding prompt updates, and the frontend `VisualizationViewer` renders Mermaid diagrams via a dedicated `<Mermaid>` component.++### Embedding Model Mismatch Detection+Knowledge bases now record the embedding model and dimension used at index time. On load, the system compares stored fingerprints against the currently configured embedding model; mismatched KBs are flagged with `embedding_mismatch` and `needs_reindex`. The RAG search pipeline surfaces a warning when querying a mismatched KB, and the Knowledge page displays an alert badge so users know to re-index.++### System Message Merging for Qwen / vLLM Compatibility+Consolidated multiple system messages into a single merged system message in both `AgenticChatPipeline` and `ChatAgent`, fixing compatibility with Qwen models served via vLLM that reject multi-system-message conversations. The context builder now filters duplicate system messages from stored history to avoid redundancy.++### LM Studio & llama.cpp Provider Support+Added first-class `ProviderSpec` entries for **LM Studio** (`localhost:1234`) and **llama.cpp** (`localhost:8080`) with automatic base-URL detection and the `openai_compat` backend, plus embedding-provider alias mapping.++### Glass Theme+Introduced a new **Glass** theme with frosted-glass card surfaces, gradient backgrounds, and glow-accent buttons. The theme switcher now cycles through light โ dark โ glass.++### Deep Research Reporting Agent Resilience+Extracted a shared `_call_llm_json` helper with configurable retry logic in the reporting agent, replacing three identical inline LLM-call-then-parse blocks for introduction, section body, and conclusion generation.++### Documentation Migration+Removed the legacy VitePress `docs/` folder; documentation has been migrated to the project website.++## Community Contributions++- **@cskwork** โ Wrong-answer note for cross-session quiz review (#292)+- **@OlegSob-glitch** โ Merge system messages and add history reference fallback (#295)+- **@SuperMarioYL** โ Embedding model mismatch detection in knowledge bases (#299)++**Full Changelog**: https://github.com/HKUDS/DeepTutor/compare/v1.0.2...v1.0.3diff --git a/deeptutor/agents/chat/agentic_pipeline.py b/deeptutor/agents/chat/agentic_pipeline.pyindex f879e3fcc..7b2df7646 100644--- a/deeptutor/agents/chat/agentic_pipeline.py+++ b/deeptutor/agents/chat/agentic_pipeline.py@@ -851,21 +851,18 @@ class AgenticChatPipeline:system_prompt: str,user_content: str,) -> list[dict[str, Any]]:- # Merge all system content into a single message to comply with Qwen vLLM requirementssystem_parts = [system_prompt]if context.memory_context:system_parts.append(context.memory_context)- system_content = "\n\n".join(system_parts)-- messages: list[dict[str, Any]] = [{"role": "system", "content": system_content}]-- # Add conversation history (filter out system messages to avoid duplicates)++ messages: list[dict[str, Any]] = [+ {"role": "system", "content": "\n\n".join(system_parts)}+ ]for item in context.conversation_history:role = item.get("role")content = item.get("content")if role in {"user", "assistant"} and isinstance(content, (str, list)):messages.append({"role": role, "content": content})-messages.append({"role": "user", "content": user_content})return messagesdiff --git a/deeptutor/agents/chat/chat_agent.py b/deeptutor/agents/chat/chat_agent.pyindex aa1cf1369..4d78dc4d1 100644--- a/deeptutor/agents/chat/chat_agent.py+++ b/deeptutor/agents/chat/chat_agent.py@@ -245,13 +245,11 @@ class ChatAgent(BaseAgent):"""messages = []- # Merge system prompt and context into single system message to comply with Qwen vLLM requirementssystem_parts = [self.get_prompt("system", "You are a helpful AI assistant.")]if context:context_template = self.get_prompt("context_template", "Reference context:\n{context}")system_parts.append(context_template.format(context=context))- system_content = "\n\n".join(system_parts)- messages.append({"role": "system", "content": system_content})+ messages.append({"role": "system", "content": "\n\n".join(system_parts)})# Add conversation historyfor msg in history:diff --git a/deeptutor/agents/research/agents/reporting_agent.py b/deeptutor/agents/research/agents/reporting_agent.pyindex ce0e8c896..b11b67336 100644--- a/deeptutor/agents/research/agents/reporting_agent.py+++ b/deeptutor/agents/research/agents/reporting_agent.py@@ -518,6 +518,45 @@ class ReportingAgent(BaseAgent):return "\n".join(lines)+ async def _call_llm_json(+ self,+ prompt: str,+ system_prompt: str,+ stage: str,+ trace_label: str,+ required_keys: list[str],+ max_retries: int = 1,+ ) -> dict[str, Any]:+ """Call LLM and extract JSON with retry logic."""+ last_error = None+ for attempt in range(max_retries + 1):+ if attempt > 0:+ self.logger.info(f"Retrying {stage} (attempt {attempt}/{max_retries})...")++ _chunks: list[str] = []+ async for _c in self.stream_llm(+ prompt,+ system_prompt,+ stage=stage,+ trace_meta=self._build_trace_meta(trace_label),+ ):+ _chunks.append(_c)+ resp = "".join(_chunks)+ data = extract_json_from_text(resp)++ try:+ obj = ensure_json_dict(data)+ ensure_keys(obj, required_keys)+ return obj+ except (ValueError, KeyError) as e:+ last_error = e+ self.logger.warning(f"JSON parsing failed for {stage} (attempt {attempt}): {e}")++ raise ValueError(+ f"Failed to get valid JSON from LLM after {max_retries} retries for {stage}. "+ f"Required keys: {required_keys}. Last error: {last_error}"+ )+async def _write_introduction(self, topic: str, blocks: list[TopicBlock], outline: dict[str, Any]) -> str:@@ -562,28 +601,14 @@ class ReportingAgent(BaseAgent):self._get_mode_contract("introduction"),)- _chunks: list[str] = []- async for _c in self.stream_llm(- filled,- system_prompt,+ data = await self._call_llm_json(+ prompt=filled,+ system_prompt=system_prompt,stage="write_introduction",- trace_meta=self._build_trace_meta("Write introduction"),- ):- _chunks.append(_c)- resp = "".join(_chunks)- data = extract_json_from_text(resp)-- try:- obj = ensure_json_dict(data)- ensure_keys(obj, ["introduction"])- intro = obj.get("introduction", "")- if isinstance(intro, str) and intro.strip():- return intro- raise ValueError("LLM returned empty or invalid introduction field")- except Exception as e:- raise ValueError(- f"Unable to parse LLM returned introduction content: {e!s}. Report generation failed."- )+ trace_label="Write introduction",+ required_keys=["introduction"],+ )+ return data["introduction"]async def _write_section_body(self, topic: str, block: TopicBlock, section_outline: dict[str, Any]@@ -638,28 +663,14 @@ class ReportingAgent(BaseAgent):self._get_mode_contract("section"),)- _chunks: list[str] = []- async for _c in self.stream_llm(- filled,- system_prompt,+ data = await self._call_llm_json(+ prompt=filled,+ system_prompt=system_prompt,stage="write_section_body",- trace_meta=self._build_trace_meta("Write section"),- ):- _chunks.append(_c)- resp = "".join(_chunks)- data = extract_json_from_text(resp)-- try:- obj = ensure_json_dict(data)- ensure_keys(obj, ["section_content"])- content = obj.get("section_content", "")- if isinstance(content, str) and content.strip():- return content- raise ValueError("LLM returned empty or invalid section_content field")- except Exception as e:- raise ValueError(- f"Unable to parse LLM returned section content: {e!s}. Report generation failed."- )+ trace_label="Write section",+ required_keys=["section_content"],+ )+ return data["section_content"]async def _write_conclusion(self, topic: str, blocks: list[TopicBlock], outline: dict[str, Any]@@ -710,28 +721,14 @@ class ReportingAgent(BaseAgent):self._get_mode_contract("conclusion"),)- _chunks: list[str] = []- async for _c in self.stream_llm(- filled,- system_prompt,+ data = await self._call_llm_json(+ prompt=filled,+ system_prompt=system_prompt,stage="write_conclusion",- trace_meta=self._build_trace_meta("Write conclusion"),- ):- _chunks.append(_c)- resp = "".join(_chunks)- data = extract_json_from_text(resp)-- try:- obj = ensure_json_dict(data)- ensure_keys(obj, ["conclusion"])- conclusion = obj.get("conclusion", "")- if isinstance(conclusion, str) and conclusion.strip():- return conclusion- raise ValueError("LLM returned empty or invalid conclusion field")- except Exception as e:- raise ValueError(- f"Unable to parse LLM returned conclusion content: {e!s}. Report generation failed."- )+ trace_label="Write conclusion",+ required_keys=["conclusion"],+ )+ return data["conclusion"]def _build_citation_number_map(self, blocks: list[TopicBlock]) -> dict[str, int]:"""Build citation_id to reference number mapping with deduplicationdiff --git a/deeptutor/agents/visualize/agents/analysis_agent.py b/deeptutor/agents/visualize/agents/analysis_agent.pyindex 4265e685d..0fd457b69 100644--- a/deeptutor/agents/visualize/agents/analysis_agent.py+++ b/deeptutor/agents/visualize/agents/analysis_agent.py@@ -33,7 +33,7 @@ class AnalysisAgent(BaseAgent):history_context: str,render_mode: str = "auto",) -> VisualizationAnalysis:- if render_mode in ("svg", "chartjs"):+ if render_mode in ("svg", "chartjs", "mermaid"):system_prompt = self.get_prompt("system_fixed")user_template = self.get_prompt("user_template_fixed")else:@@ -46,7 +46,7 @@ class AnalysisAgent(BaseAgent):"user_input": user_input.strip(),"history_context": history_context.strip() or "(none)",}- if render_mode in ("svg", "chartjs"):+ if render_mode in ("svg", "chartjs", "mermaid"):format_kwargs["render_type"] = render_modeuser_prompt = user_template.format(**format_kwargs)@@ -69,6 +69,6 @@ class AnalysisAgent(BaseAgent):chunks.append(chunk)response = "".join(chunks)result = VisualizationAnalysis.model_validate(extract_json_object(response))- if render_mode in ("svg", "chartjs"):+ if render_mode in ("svg", "chartjs", "mermaid"):result.render_type = render_mode # type: ignore[assignment]return resultdiff --git a/deeptutor/agents/visualize/agents/code_generator_agent.py b/deeptutor/agents/visualize/agents/code_generator_agent.pyindex e10c01688..c26be402a 100644--- a/deeptutor/agents/visualize/agents/code_generator_agent.py+++ b/deeptutor/agents/visualize/agents/code_generator_agent.py@@ -64,5 +64,10 @@ class CodeGeneratorAgent(BaseAgent):chunks.append(chunk)response = "".join(chunks)- lang_hint = "svg" if analysis.render_type == "svg" else "javascript"+ if analysis.render_type == "svg":+ lang_hint = "svg"+ elif analysis.render_type == "mermaid":+ lang_hint = "mermaid"+ else:+ lang_hint = "javascript"return extract_code_block(response, lang_hint) or extract_code_block(response)diff --git a/deeptutor/agents/visualize/models.py b/deeptutor/agents/visualize/models.pyindex ae1d3eae7..9345f6391 100644--- a/deeptutor/agents/visualize/models.py+++ b/deeptutor/agents/visualize/models.py@@ -10,8 +10,8 @@ from pydantic import BaseModel, Fieldclass VisualizationAnalysis(BaseModel):"""Output of the analysis stage."""- render_type: Literal["svg", "chartjs"] = Field(- description="Whether to render as raw SVG or as a Chart.js configuration.",+ render_type: Literal["svg", "chartjs", "mermaid"] = Field(+ description="Whether to render as raw SVG, a Chart.js configuration, or Mermaid diagram code.",)description: str = Field(default="",@@ -23,7 +23,11 @@ class VisualizationAnalysis(BaseModel):)chart_type: str = Field(default="",- description="Chart.js chart type (bar, line, pie, doughnut, radar, etc.) when render_type is chartjs.",+ description=(+ "Chart.js chart type (bar, line, pie, doughnut, radar, etc.) when render_type is chartjs, "+ "or Mermaid diagram type (flowchart, sequenceDiagram, mindmap, classDiagram, stateDiagram, etc.) "+ "when render_type is mermaid."+ ),)visual_elements: list[str] = Field(default_factory=list,diff --git a/deeptutor/agents/visualize/prompts/en/analysis_agent.yaml b/deeptutor/agents/visualize/prompts/en/analysis_agent.yamlindex 90ecad3dd..dd292bb8d 100644--- a/deeptutor/agents/visualize/prompts/en/analysis_agent.yaml+++ b/deeptutor/agents/visualize/prompts/en/analysis_agent.yaml@@ -2,12 +2,16 @@ system: |You are a visualization analyst. Given a user request and conversation history,decide the best rendering approach and produce a structured analysis.- Choose between two render types:- - "svg": Use when the visualization is a diagram, flowchart, illustration, schematic,- concept map, architecture diagram, or any free-form graphic that does not represent- quantitative data in a standard chart form.+ Choose between three render types:+ - "svg": Use when the visualization is a custom illustration, schematic, or any+ free-form graphic that requires precise coordinate-level control and does not+ fit a standard chart or structured diagram.- "chartjs": Use when the visualization involves quantitative data that fits astandard chart type (bar, line, pie, doughnut, radar, scatter, bubble, polar area).+ - "mermaid": Use when the visualization is a structured diagram such as a flowchart,+ sequence diagram, class diagram, state diagram, entity-relationship diagram,+ Gantt chart, mindmap, or any graph that can be expressed with Mermaid.js syntax.+ Prefer mermaid over svg for these structured diagram types.Return your analysis as a single JSON object. Do not include any text outside the JSON.@@ -20,10 +24,10 @@ user_template: |Return JSON:{{- "render_type": "svg" or "chartjs",+ "render_type": "svg" or "chartjs" or "mermaid","description": "High-level description of what the visualization should show","data_description": "Description of the data or elements to be visualized",- "chart_type": "Chart.js chart type if render_type is chartjs, otherwise empty string",+ "chart_type": "Chart.js chart type if chartjs, Mermaid diagram type if mermaid, otherwise empty string","visual_elements": ["key visual elements to include"],"rationale": "Why this render_type was chosen"}}@@ -49,7 +53,7 @@ user_template_fixed: |"render_type": "{render_type}","description": "High-level description of what the visualization should show","data_description": "Description of the data or elements to be visualized",- "chart_type": "Chart.js chart type if render_type is chartjs, otherwise empty string",+ "chart_type": "Chart.js chart type if chartjs, Mermaid diagram type if mermaid, otherwise empty string","visual_elements": ["key visual elements to include"],"rationale": "Analysis notes"}}diff --git a/deeptutor/agents/visualize/prompts/en/code_generator_agent.yaml b/deeptutor/agents/visualize/prompts/en/code_generator_agent.yamlindex 8f16bca78..5b0ebbf92 100644--- a/deeptutor/agents/visualize/prompts/en/code_generator_agent.yaml+++ b/deeptutor/agents/visualize/prompts/en/code_generator_agent.yaml@@ -11,9 +11,14 @@ system: |can be passed as the configuration to `new Chart(ctx, config)`.The config must include `type`, `data`, and `options` fields.Use modern color palettes and ensure labels are readable.+ - If render_type is "mermaid", output valid Mermaid.js diagram code.+ The code must start with a valid diagram type keyword (graph, flowchart,+ sequenceDiagram, classDiagram, stateDiagram-v2, erDiagram, gantt, mindmap, etc.).+ Use clear node labels and readable edge descriptions. Do NOT use spaces in+ node IDs โ use camelCase or underscores. Avoid reserved keywords as node IDs.- Do NOT include any explanation outside the code fence.- Wrap the code in a fenced code block with the appropriate language tag- (```svg or ```javascript).+ (```svg, ```javascript, or ```mermaid).user_template: |User request:@@ -30,3 +35,4 @@ user_template: |Generate the visualization code now. Wrap it in a fenced code block:- For SVG: ```svg ... ```- For Chart.js: ```javascript ... ```+ - For Mermaid: ```mermaid ... ```diff --git a/deeptutor/agents/visualize/prompts/en/review_agent.yaml b/deeptutor/agents/visualize/prompts/en/review_agent.yamlindex 44a6ccb5a..e9fb48583 100644--- a/deeptutor/agents/visualize/prompts/en/review_agent.yaml+++ b/deeptutor/agents/visualize/prompts/en/review_agent.yaml@@ -16,6 +16,14 @@ system: |- Color accessibility and readability- Responsive configuration+ For Mermaid code, check:+ - Valid Mermaid.js syntax with correct diagram type keyword+ - No spaces in node IDs (use camelCase or underscores)+ - No reserved keywords (end, subgraph, graph) as bare node IDs+ - Clear and readable node labels and edge descriptions+ - Proper subgraph structure and nesting if used+ - No syntax errors that would cause rendering failure+If the code is already good, return it unchanged with changed=false.If you make improvements, return the optimized code with changed=true.diff --git a/deeptutor/agents/visualize/prompts/zh/analysis_agent.yaml b/deeptutor/agents/visualize/prompts/zh/analysis_agent.yamlindex 5bd7248da..bd369688b 100644--- a/deeptutor/agents/visualize/prompts/zh/analysis_agent.yaml+++ b/deeptutor/agents/visualize/prompts/zh/analysis_agent.yaml@@ -1,9 +1,10 @@system: |ไฝ ๆฏไธไธชๅฏ่งๅๅๆๅธใๆ นๆฎ็จๆท่ฏทๆฑๅๅฏน่ฏๅๅฒ๏ผๅณๅฎๆไฝณ็ๆธฒๆๆนๅผๅนถ็ๆ็ปๆๅๅๆใ- ๅจไธค็งๆธฒๆ็ฑปๅไธญ้ๆฉ๏ผ- - "svg"๏ผๅฝๅฏ่งๅๆฏๆต็จๅพใ็คบๆๅพใๆฆๅฟตๅพใๆถๆๅพๆไปปไฝไธ้ๅๆ ๅๅพ่กจๅฝขๅผ็่ช็ฑๅพๅฝขๆถไฝฟ็จใ+ ๅจไธ็งๆธฒๆ็ฑปๅไธญ้ๆฉ๏ผ+ - "svg"๏ผๅฝๅฏ่งๅๆฏ่ชๅฎไนๆๅพใ็คบๆๅพๆไปปไฝ้่ฆ็ฒพ็กฎๅๆ ๆงๅถ็่ช็ฑๅพๅฝข๏ผไธไธ้ๅๆ ๅๅพ่กจๆ็ปๆๅๅพๅฝขๆถไฝฟ็จใ- "chartjs"๏ผๅฝๅฏ่งๅๆถๅๅฏไปฅ็จๆ ๅๅพ่กจ็ฑปๅ๏ผๆฑ็ถๅพใๆ็บฟๅพใ้ฅผๅพใ็ฏๅฝขๅพใ้ท่พพๅพใๆฃ็นๅพใๆฐๆณกๅพใๆๅๆ ๅพ๏ผ่กจ็คบ็ๅฎ้ๆฐๆฎๆถไฝฟ็จใ+ - "mermaid"๏ผๅฝๅฏ่งๅๆฏ็ปๆๅๅพๅฝขๆถไฝฟ็จ๏ผๅฆๆต็จๅพใๅบๅๅพใ็ฑปๅพใ็ถๆๅพใๅฎไฝๅ ณ็ณปๅพใ็็นๅพใๆ็ปดๅฏผๅพๆไปปไฝๅฏไปฅ็จ Mermaid.js ่ฏญๆณ่กจ่พพ็ๅพๅฝขใๅฏนไบ่ฟไบ็ปๆๅๅพๅฝข็ฑปๅ๏ผไผๅ ไฝฟ็จ mermaid ่้ svgใ่ฟๅไธไธช JSON ๅฏน่ฑก๏ผไธ่ฆๅ ๅซ JSON ไปฅๅค็ไปปไฝๆๆฌใ@@ -16,10 +17,10 @@ user_template: |่ฟๅ JSON๏ผ{{- "render_type": "svg" ๆ "chartjs",+ "render_type": "svg" ๆ "chartjs" ๆ "mermaid","description": "ๅฏ่งๅๅบๅฑ็คบ็ๅ ๅฎน็้ซๅฑๆ่ฟฐ","data_description": "่ฆๅฏ่งๅ็ๆฐๆฎๆๅ ็ด ็ๆ่ฟฐ",- "chart_type": "ๅฆๆ render_type ๆฏ chartjs ๅๅกซๅ Chart.js ๅพ่กจ็ฑปๅ๏ผๅฆๅไธบ็ฉบๅญ็ฌฆไธฒ",+ "chart_type": "ๅฆๆๆฏ chartjs ๅๅกซๅ Chart.js ๅพ่กจ็ฑปๅ๏ผๅฆๆๆฏ mermaid ๅๅกซๅ Mermaid ๅพ่กจ็ฑปๅ๏ผๅฆๅไธบ็ฉบๅญ็ฌฆไธฒ","visual_elements": ["้่ฆๅ ๅซ็ๅ ณ้ฎ่ง่งๅ ็ด "],"rationale": "ไธบไปไน้ๆฉ่ฟ็ง render_type"}}@@ -45,7 +46,7 @@ user_template_fixed: |"render_type": "{render_type}","description": "ๅฏ่งๅๅบๅฑ็คบ็ๅ ๅฎน็้ซๅฑๆ่ฟฐ","data_description": "่ฆๅฏ่งๅ็ๆฐๆฎๆๅ ็ด ็ๆ่ฟฐ",- "chart_type": "ๅฆๆ render_type ๆฏ chartjs ๅๅกซๅ Chart.js ๅพ่กจ็ฑปๅ๏ผๅฆๅไธบ็ฉบๅญ็ฌฆไธฒ",+ "chart_type": "ๅฆๆๆฏ chartjs ๅๅกซๅ Chart.js ๅพ่กจ็ฑปๅ๏ผๅฆๆๆฏ mermaid ๅๅกซๅ Mermaid ๅพ่กจ็ฑปๅ๏ผๅฆๅไธบ็ฉบๅญ็ฌฆไธฒ","visual_elements": ["้่ฆๅ ๅซ็ๅ ณ้ฎ่ง่งๅ ็ด "],"rationale": "ๅๆ่ฏดๆ"}}diff --git a/deeptutor/agents/visualize/prompts/zh/code_generator_agent.yaml b/deeptutor/agents/visualize/prompts/zh/code_generator_agent.yamlindex 97f4488cd..41d95b941 100644--- a/deeptutor/agents/visualize/prompts/zh/code_generator_agent.yaml+++ b/deeptutor/agents/visualize/prompts/zh/code_generator_agent.yaml@@ -10,8 +10,13 @@ system: |ๅฏไปฅไฝไธบ้ ็ฝฎไผ ้็ป `new Chart(ctx, config)`ใ้ ็ฝฎๅฟ ้กปๅ ๅซ `type`ใ`data` ๅ `options` ๅญๆฎตใไฝฟ็จ็ฐไปฃ้ ่ฒๆนๆกๅนถ็กฎไฟๆ ็ญพๅฏ่ฏปใ+ - ๅฆๆ render_type ๆฏ "mermaid"๏ผ่พๅบๆๆ็ Mermaid.js ๅพ่กจไปฃ็ ใ+ ไปฃ็ ๅฟ ้กปไปฅๆๆ็ๅพ่กจ็ฑปๅๅ ณ้ฎ่ฏๅผๅคด๏ผgraphใflowchartใsequenceDiagramใ+ classDiagramใstateDiagram-v2ใerDiagramใganttใmindmap ็ญ๏ผใ+ ไฝฟ็จๆธ ๆฐ็่็นๆ ็ญพๅๅฏ่ฏป็่พนๆ่ฟฐใ่็น ID ไธ่ฆไฝฟ็จ็ฉบๆ ผโโไฝฟ็จ+ camelCase ๆไธๅ็บฟใ้ฟๅ ไฝฟ็จไฟ็ๅ ณ้ฎ่ฏไฝไธบ่็น IDใ- ไธ่ฆๅจไปฃ็ ๅไนๅคๅ ๅซไปปไฝ่งฃ้ใ- - ็จๅธฆๆ้ๅฝ่ฏญ่จๆ ็ญพ็ไปฃ็ ๅๅ ่ฃนไปฃ็ ๏ผ```svg ๆ ```javascript๏ผใ+ - ็จๅธฆๆ้ๅฝ่ฏญ่จๆ ็ญพ็ไปฃ็ ๅๅ ่ฃนไปฃ็ ๏ผ```svgใ```javascript ๆ ```mermaid๏ผใuser_template: |็จๆท่ฏทๆฑ๏ผ@@ -28,3 +33,4 @@ user_template: |็ฐๅจ็ๆๅฏ่งๅไปฃ็ ใ็จไปฃ็ ๅๅ ่ฃน๏ผ- SVG ไฝฟ็จ๏ผ```svg ... ```- Chart.js ไฝฟ็จ๏ผ```javascript ... ```+ - Mermaid ไฝฟ็จ๏ผ```mermaid ... ```diff --git a/deeptutor/agents/visualize/prompts/zh/review_agent.yaml b/deeptutor/agents/visualize/prompts/zh/review_agent.yamlindex d584abe10..6d3316873 100644--- a/deeptutor/agents/visualize/prompts/zh/review_agent.yaml+++ b/deeptutor/agents/visualize/prompts/zh/review_agent.yaml@@ -15,6 +15,14 @@ system: |- ้ข่ฒ็ๅฏ่ฎฟ้ฎๆงๅๅฏ่ฏปๆง- ๅๅบๅผ้ ็ฝฎ+ ๅฏนไบ Mermaid ไปฃ็ ๏ผๆฃๆฅ๏ผ+ - ๆๆ็ Mermaid.js ่ฏญๆณ๏ผๅ ๅซๆญฃ็กฎ็ๅพ่กจ็ฑปๅๅ ณ้ฎ่ฏ+ - ่็น ID ไธๅ ๅซ็ฉบๆ ผ๏ผไฝฟ็จ camelCase ๆไธๅ็บฟ๏ผ+ - ไธไฝฟ็จไฟ็ๅ ณ้ฎ่ฏ๏ผendใsubgraphใgraph๏ผไฝไธบ่ฃธ่็น ID+ - ๆธ ๆฐๅฏ่ฏป็่็นๆ ็ญพๅ่พนๆ่ฟฐ+ - ๆญฃ็กฎ็ๅญๅพ็ปๆๅๅตๅฅ๏ผๅฆไฝฟ็จ๏ผ+ - ๆ ไผๅฏผ่ดๆธฒๆๅคฑ่ดฅ็่ฏญๆณ้่ฏฏ+ๅฆๆไปฃ็ ๅทฒ็ปๅพๅฅฝ๏ผๅๆ ท่ฟๅๅนถ่ฎพ็ฝฎ changed=falseใๅฆๆไฝ ๅไบๆน่ฟ๏ผ่ฟๅไผๅๅ็ไปฃ็ ๅนถ่ฎพ็ฝฎ changed=trueใdiff --git a/deeptutor/api/main.py b/deeptutor/api/main.pyindex bfd3af949..ceee8107d 100644--- a/deeptutor/api/main.py+++ b/deeptutor/api/main.py@@ -214,7 +214,7 @@ from deeptutor.api.routers import (tutorbot,unified_ws,vision_solver,- wrong_answers,+ question_notebook,)# Include routers@@ -228,7 +228,7 @@ app.include_router(notebook.router, prefix="/api/v1/notebook", tags=["notebook"]app.include_router(guide.router, prefix="/api/v1/guide", tags=["guide"])app.include_router(memory.router, prefix="/api/v1/memory", tags=["memory"])app.include_router(sessions.router, prefix="/api/v1/sessions", tags=["sessions"])-app.include_router(wrong_answers.router, prefix="/api/v1/wrong-answers", tags=["wrong-answers"])+app.include_router(question_notebook.router, prefix="/api/v1/question-notebook", tags=["question-notebook"])app.include_router(settings.router, prefix="/api/v1/settings", tags=["settings"])app.include_router(system.router, prefix="/api/v1/system", tags=["system"])app.include_router(plugins_api.router, prefix="/api/v1/plugins", tags=["plugins"])diff --git a/deeptutor/api/routers/question_notebook.py b/deeptutor/api/routers/question_notebook.pynew file mode 100644index 000000000..47b444e89--- /dev/null+++ b/deeptutor/api/routers/question_notebook.py@@ -0,0 +1,213 @@+"""+Question Notebook API โ persists quiz questions, bookmarks, and categories.+"""++from __future__ import annotations++import logging++from fastapi import APIRouter, HTTPException, Query+from pydantic import BaseModel, Field++from deeptutor.services.session import get_sqlite_session_store++logger = logging.getLogger(__name__)++router = APIRouter()+++# โโ Models โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ++class NotebookEntryItem(BaseModel):+ id: int+ session_id: str+ session_title: str = ""+ question_id: str = ""+ question: str+ question_type: str = ""+ options: dict[str, str] = {}+ correct_answer: str = ""+ explanation: str = ""+ difficulty: str = ""+ user_answer: str = ""+ is_correct: bool = False+ bookmarked: bool = False+ followup_session_id: str = ""+ created_at: float+ updated_at: float+ categories: list[CategoryItem] | None = None+++class NotebookEntryListResponse(BaseModel):+ items: list[NotebookEntryItem]+ total: int+++class EntryUpdateRequest(BaseModel):+ bookmarked: bool | None = None+ followup_session_id: str | None = None+++class CategoryItem(BaseModel):+ id: int+ name: str+ created_at: float = 0+ entry_count: int = 0+++class CategoryCreateRequest(BaseModel):+ name: str = Field(..., min_length=1, max_length=100)+++class CategoryRenameRequest(BaseModel):+ name: str = Field(..., min_length=1, max_length=100)+++class CategoryAddRequest(BaseModel):+ category_id: int+++class UpsertEntryRequest(BaseModel):+ session_id: str+ question_id: str+ question: str+ question_type: str = ""+ options: dict[str, str] | None = None+ correct_answer: str = ""+ explanation: str = ""+ difficulty: str = ""+ user_answer: str = ""+ is_correct: bool = False+++# โโ Entry endpoints โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ+[email protected]("/entries/upsert")+async def upsert_single_entry(payload: UpsertEntryRequest):+ store = get_sqlite_session_store()+ try:+ await store.upsert_notebook_entries(payload.session_id, [payload.model_dump()])+ except ValueError as e:+ raise HTTPException(status_code=404, detail=str(e))+ entry = await store.find_notebook_entry(payload.session_id, payload.question_id)+ if entry is None:+ raise HTTPException(status_code=500, detail="Upsert failed")+ return entry+[email protected]("/entries", response_model=NotebookEntryListResponse)+async def list_entries(+ category_id: int | None = Query(default=None),+ bookmarked: bool | None = Query(default=None),+ is_correct: bool | None = Query(default=None),+ limit: int = Query(default=50, ge=1, le=200),+ offset: int = Query(default=0, ge=0),+) -> NotebookEntryListResponse:+ store = get_sqlite_session_store()+ result = await store.list_notebook_entries(+ category_id=category_id,+ bookmarked=bookmarked,+ is_correct=is_correct,+ limit=limit,+ offset=offset,+ )+ return NotebookEntryListResponse(+ items=[NotebookEntryItem(**item) for item in result["items"]],+ total=result["total"],+ )++[email protected]("/entries/lookup/by-question")+async def lookup_entry(session_id: str = Query(...), question_id: str = Query(...)):+ store = get_sqlite_session_store()+ entry = await store.find_notebook_entry(session_id, question_id)+ if entry is None:+ raise HTTPException(status_code=404, detail="Entry not found")+ return entry++[email protected]("/entries/{entry_id}", response_model=NotebookEntryItem)+async def get_entry(entry_id: int) -> NotebookEntryItem:+ store = get_sqlite_session_store()+ entry = await store.get_notebook_entry(entry_id)+ if entry is None:+ raise HTTPException(status_code=404, detail="Entry not found")+ return NotebookEntryItem(**entry)++[email protected]("/entries/{entry_id}")+async def update_entry(entry_id: int, payload: EntryUpdateRequest):+ store = get_sqlite_session_store()+ updates = payload.model_dump(exclude_none=True)+ if not updates:+ raise HTTPException(status_code=400, detail="No fields to update")+ updated = await store.update_notebook_entry(entry_id, updates)+ if not updated:+ raise HTTPException(status_code=404, detail="Entry not found")+ return {"updated": True, "id": entry_id}++[email protected]("/entries/{entry_id}")+async def delete_entry(entry_id: int):+ store = get_sqlite_session_store()+ deleted = await store.delete_notebook_entry(entry_id)+ if not deleted:+ raise HTTPException(status_code=404, detail="Entry not found")+ return {"deleted": True, "id": entry_id}+++# โโ Entry โ Category linking โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ+[email protected]("/entries/{entry_id}/categories")+async def add_entry_to_category(entry_id: int, payload: CategoryAddRequest):+ store = get_sqlite_session_store()+ entry = await store.get_notebook_entry(entry_id)+ if entry is None:+ raise HTTPException(status_code=404, detail="Entry not found")+ ok = await store.add_entry_to_category(entry_id, payload.category_id)+ if not ok:+ raise HTTPException(status_code=400, detail="Failed to add to category")+ return {"added": True, "entry_id": entry_id, "category_id": payload.category_id}++[email protected]("/entries/{entry_id}/categories/{category_id}")+async def remove_entry_from_category(entry_id: int, category_id: int):+ store = get_sqlite_session_store()+ removed = await store.remove_entry_from_category(entry_id, category_id)+ if not removed:+ raise HTTPException(status_code=404, detail="Link not found")+ return {"removed": True, "entry_id": entry_id, "category_id": category_id}+++# โโ Category CRUD โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ+[email protected]("/categories", response_model=list[CategoryItem])+async def list_categories():+ store = get_sqlite_session_store()+ return await store.list_categories()++[email protected]("/categories", response_model=CategoryItem, status_code=201)+async def create_category(payload: CategoryCreateRequest):+ store = get_sqlite_session_store()+ try:+ return await store.create_category(payload.name)+ except Exception:+ raise HTTPException(status_code=409, detail="Category name already exists")++[email protected]("/categories/{category_id}")+async def rename_category(category_id: int, payload: CategoryRenameRequest):+ store = get_sqlite_session_store()+ updated = await store.rename_category(category_id, payload.name)+ if not updated:+ raise HTTPException(status_code=404, detail="Category not found")+ return {"updated": True, "id": category_id, "name": payload.name}++[email protected]("/categories/{category_id}")+async def delete_category(category_id: int):+ store = get_sqlite_session_store()+ deleted = await store.delete_category(category_id)+ if not deleted:+ raise HTTPException(status_code=404, detail="Category not found")+ return {"deleted": True, "id": category_id}diff --git a/deeptutor/api/routers/sessions.py b/deeptutor/api/routers/sessions.pyindex 8986e6c92..3497bd5bd 100644--- a/deeptutor/api/routers/sessions.py+++ b/deeptutor/api/routers/sessions.py@@ -4,11 +4,15 @@ Unified session history API.from __future__ import annotations-from pydantic import BaseModel, Field+import logging++from pydantic import BaseModel, Field, field_validatorfrom fastapi import APIRouter, HTTPException, Queryfrom deeptutor.services.session import get_sqlite_session_store+logger = logging.getLogger(__name__)+router = APIRouter()@@ -19,10 +23,24 @@ class SessionRenameRequest(BaseModel):class QuizResultItem(BaseModel):question_id: str = ""question: str = Field(..., min_length=1)+ question_type: str = ""+ options: dict[str, str] | None = Noneuser_answer: str = ""correct_answer: str = ""+ explanation: str | None = ""+ difficulty: str | None = ""is_correct: bool+ @field_validator("options", mode="before")+ @classmethod+ def _coerce_options(cls, v):+ return v if isinstance(v, dict) else {}++ @field_validator("explanation", "difficulty", mode="before")+ @classmethod+ def _coerce_str(cls, v):+ return v if isinstance(v, str) else ""+class QuizResultsRequest(BaseModel):answers: list[QuizResultItem] = Field(default_factory=list)@@ -99,14 +117,18 @@ async def record_quiz_results(session_id: str, payload: QuizResultsRequest):content=content,capability="deep_question",)- wrong_answer_count = await store.add_wrong_answers(- session_id,- [item.model_dump() for item in payload.answers],- )+ notebook_count = 0+ try:+ notebook_count = await store.upsert_notebook_entries(+ session_id,+ [item.model_dump() for item in payload.answers],+ )+ except Exception:+ logger.warning("Failed to upsert notebook entries for session %s", session_id, exc_info=True)return {"recorded": True,"session_id": session_id,"answer_count": len(payload.answers),- "wrong_answer_count": wrong_answer_count,+ "notebook_count": notebook_count,"content": content,}diff --git a/deeptutor/api/routers/wrong_answers.py b/deeptutor/api/routers/wrong_answers.pydeleted file mode 100644index cc900867a..000000000--- a/deeptutor/api/routers/wrong_answers.py+++ /dev/null@@ -1,74 +0,0 @@-"""-Wrong answer notebook API โ persists and exposes quiz mistakes for review.-"""--from __future__ import annotations--from fastapi import APIRouter, HTTPException, Query-from pydantic import BaseModel--from deeptutor.services.session import get_sqlite_session_store--router = APIRouter()---class WrongAnswerItem(BaseModel):- id: int- session_id: str- session_title: str = ""- question_id: str = ""- question: str- user_answer: str = ""- correct_answer: str = ""- resolved: bool- created_at: float- resolved_at: float | None = None---class WrongAnswerListResponse(BaseModel):- items: list[WrongAnswerItem]- total: int---class WrongAnswerResolveRequest(BaseModel):- resolved: bool--[email protected]("", response_model=WrongAnswerListResponse)-async def list_wrong_answers(- resolved: bool | None = Query(default=None),- limit: int = Query(default=50, ge=1, le=200),- offset: int = Query(default=0, ge=0),-) -> WrongAnswerListResponse:- store = get_sqlite_session_store()- items = await store.list_wrong_answers(- resolved=resolved, limit=limit, offset=offset- )- total = await store.count_wrong_answers(resolved=resolved)- return WrongAnswerListResponse(- items=[WrongAnswerItem(**item) for item in items],- total=total,- )--[email protected]("/{wrong_answer_id}")-async def update_wrong_answer(- wrong_answer_id: int,- payload: WrongAnswerResolveRequest,-):- store = get_sqlite_session_store()- updated = await store.update_wrong_answer_resolved(- wrong_answer_id, payload.resolved- )- if not updated:- raise HTTPException(status_code=404, detail="Wrong answer not found")- return {"updated": True, "id": wrong_answer_id, "resolved": payload.resolved}--[email protected]("/{wrong_answer_id}")-async def delete_wrong_answer(wrong_answer_id: int):- store = get_sqlite_session_store()- deleted = await store.delete_wrong_answer(wrong_answer_id)- if not deleted:- raise HTTPException(status_code=404, detail="Wrong answer not found")- return {"deleted": True, "id": wrong_answer_id}diff --git a/deeptutor/capabilities/request_contracts.py b/deeptutor/capabilities/request_contracts.pyindex 5e95c3193..8b1774975 100644--- a/deeptutor/capabilities/request_contracts.py+++ b/deeptutor/capabilities/request_contracts.py@@ -44,7 +44,7 @@ class DeepQuestionRequestConfig(BaseModel):class VisualizeRequestConfig(BaseModel):model_config = ConfigDict(extra="forbid")- render_mode: Literal["auto", "svg", "chartjs"] = "auto"+ render_mode: Literal["auto", "svg", "chartjs", "mermaid"] = "auto"def _clean_public_config(raw_config: dict[str, Any] | None) -> dict[str, Any]:diff --git a/deeptutor/capabilities/visualize.py b/deeptutor/capabilities/visualize.pyindex 9835f33ac..f7479c942 100644--- a/deeptutor/capabilities/visualize.py+++ b/deeptutor/capabilities/visualize.py@@ -20,7 +20,7 @@ from deeptutor.core.trace import merge_trace_metadataclass VisualizeCapability(BaseCapability):manifest = CapabilityManifest(name="visualize",- description="Generate SVG or Chart.js visualizations.",+ description="Generate SVG, Chart.js, or Mermaid visualizations.",stages=["analyzing", "generating", "reviewing"],tools_used=[],cli_aliases=["visualize", "viz"],@@ -110,7 +110,12 @@ class VisualizeCapability(BaseCapability):)# Emit final content as a fenced code block for the chat area- lang_tag = "svg" if analysis.render_type == "svg" else "javascript"+ if analysis.render_type == "svg":+ lang_tag = "svg"+ elif analysis.render_type == "mermaid":+ lang_tag = "mermaid"+ else:+ lang_tag = "javascript"content_md = f"```{lang_tag}\n{final_code}\n```"await stream.content(content_md, source=self.name, stage="reviewing")diff --git a/deeptutor/knowledge/manager.py b/deeptutor/knowledge/manager.pyindex 97ffe721b..ae4773653 100644--- a/deeptutor/knowledge/manager.py+++ b/deeptutor/knowledge/manager.py@@ -19,8 +19,6 @@ from deeptutor.services.rag.components.routing import FileTypeRouterfrom deeptutor.services.rag.factory import DEFAULT_PROVIDER, LEGACY_PROVIDER_ALIASES, normalize_provider_name-_EMBEDDING_FINGERPRINT_KEYS = ("embedding_model", "embedding_dim")-logger = get_logger("KnowledgeBaseManager")@@ -69,21 +67,54 @@ def file_lock_exclusive(file_handle):fcntl.flock(file_handle.fileno(), fcntl.LOCK_UN)-def _get_current_embedding_fingerprint() -> dict[str, str | int] | None:- """Return the active embedding model name and dimension, or *None* on failure.-- The fingerprint is stored alongside each knowledge-base entry so that a- mismatch can be detected after the user switches embedding models.- """+def _get_embedding_fingerprint() -> tuple[str, int] | None:+ """Return ``(model_name, dimension)`` of the active embedding config."""try:from deeptutor.services.embedding import get_embedding_configcfg = get_embedding_config()- return {"embedding_model": cfg.model, "embedding_dim": cfg.dim}+ return (cfg.model, cfg.dim)except Exception:return None+def _reconcile_embedding_flags(knowledge_bases: dict) -> bool:+ """Flag KBs whose stored embedding fingerprint differs from the active config.++ Compares both model name and dimension. Auto-clears the flag when the+ user reverts to the original model. Returns *True* when any entry changed.+ """+ fp = _get_embedding_fingerprint()+ if not fp:+ return False++ current_model, current_dim = fp+ changed = False++ for kb_entry in knowledge_bases.values():+ if not isinstance(kb_entry, dict):+ continue+ stored_model = kb_entry.get("embedding_model")+ if not stored_model:+ continue++ stored_dim = kb_entry.get("embedding_dim")+ mismatch = stored_model != current_model or (+ stored_dim is not None and stored_dim != current_dim+ )++ if mismatch and not kb_entry.get("embedding_mismatch"):+ kb_entry["embedding_mismatch"] = True+ if not kb_entry.get("needs_reindex"):+ kb_entry["needs_reindex"] = True+ changed = True+ elif not mismatch and kb_entry.get("embedding_mismatch"):+ del kb_entry["embedding_mismatch"]+ changed = True++ return changed++class KnowledgeBaseManager:"""Manager for knowledge bases"""@@ -149,29 +180,8 @@ class KnowledgeBaseManager:kb_entry["needs_reindex"] = Trueconfig_changed = True- # Detect embedding model mismatch: if the currently configured- # embedding model differs from the one used to index a KB, mark- # the KB so the user knows search quality may be degraded.- current_fp = _get_current_embedding_fingerprint()- if current_fp:- for kb_name, kb_entry in knowledge_bases.items():- if not isinstance(kb_entry, dict):- continue- stored_model = kb_entry.get("embedding_model")- if not stored_model:- # Legacy KB without fingerprint โ skip detection- continue- if stored_model != current_fp["embedding_model"]:- if not kb_entry.get("embedding_mismatch"):- kb_entry["embedding_mismatch"] = True- if not kb_entry.get("needs_reindex", False):- kb_entry["needs_reindex"] = True- config_changed = True- else:- # Model matches again (user reverted) โ clear flag- if kb_entry.get("embedding_mismatch"):- del kb_entry["embedding_mismatch"]- config_changed = True+ if _reconcile_embedding_flags(knowledge_bases):+ config_changed = Trueif config_changed:try:@@ -246,13 +256,10 @@ class KnowledgeBaseManager:"percent": 100,}- # Record the embedding model used for indexing so we can detect- # mismatches after the user switches to a different model.if status == "ready":- fingerprint = _get_current_embedding_fingerprint()- if fingerprint:- kb_config["embedding_model"] = fingerprint["embedding_model"]- kb_config["embedding_dim"] = fingerprint["embedding_dim"]+ fp = _get_embedding_fingerprint()+ if fp:+ kb_config["embedding_model"], kb_config["embedding_dim"] = fpself._save_config()@@ -464,6 +471,18 @@ class KnowledgeBaseManager:return None+ @staticmethod+ def _embedding_fields(kb_config: dict) -> dict:+ """Extract embedding fingerprint fields from a KB config entry."""+ fields = {}+ for key in ("embedding_model", "embedding_dim"):+ val = kb_config.get(key)+ if val is not None:+ fields[key] = val+ if kb_config.get("embedding_mismatch"):+ fields["embedding_mismatch"] = True+ return fields+def get_metadata(self, name: str | None = None) -> dict:"""Get knowledge base metadata.@@ -490,12 +509,7 @@ class KnowledgeBaseManager:"created_at": kb_config.get("created_at"),"last_updated": kb_config.get("updated_at"),}- if kb_config.get("embedding_model"):- metadata["embedding_model"] = kb_config["embedding_model"]- if kb_config.get("embedding_dim"):- metadata["embedding_dim"] = kb_config["embedding_dim"]- if kb_config.get("embedding_mismatch"):- metadata["embedding_mismatch"] = True+ metadata.update(self._embedding_fields(kb_config))# Remove None valuesmetadata = {k: v for k, v in metadata.items() if v is not None}return metadata@@ -562,14 +576,7 @@ class KnowledgeBaseManager:if updated_at:metadata["last_updated"] = updated_at- # Include embedding fingerprint so callers can see which model was- # used to index this KB and whether it still matches the active config.- if kb_config.get("embedding_model"):- metadata["embedding_model"] = kb_config["embedding_model"]- if kb_config.get("embedding_dim"):- metadata["embedding_dim"] = kb_config["embedding_dim"]- if kb_config.get("embedding_mismatch"):- metadata["embedding_mismatch"] = True+ metadata.update(self._embedding_fields(kb_config))# Remove None valuesmetadata = {k: v for k, v in metadata.items() if v is not None}diff --git a/deeptutor/services/config/provider_runtime.py b/deeptutor/services/config/provider_runtime.pyindex 3cac671d8..f0608cdeb 100644--- a/deeptutor/services/config/provider_runtime.py+++ b/deeptutor/services/config/provider_runtime.py@@ -38,6 +38,7 @@ EMBEDDING_PROVIDER_ALIASES = {"gemini": "openai","huggingface": "custom","lm_studio": "vllm",+ "llama_cpp": "vllm","openai_compatible": "custom",}diff --git a/deeptutor/services/provider_registry.py b/deeptutor/services/provider_registry.pyindex ca5bcf735..6bf0e8b01 100644--- a/deeptutor/services/provider_registry.py+++ b/deeptutor/services/provider_registry.py@@ -69,7 +69,6 @@ PROVIDER_ALIASES = {"google_genai": "gemini","claude": "anthropic","openai_compatible": "custom",- "lm_studio": "vllm","volcenginecodingplan": "volcengine_coding_plan","volcengineCodingPlan": "volcengine_coding_plan","bytepluscodingplan": "byteplus_coding_plan",@@ -319,6 +318,26 @@ PROVIDERS: tuple[ProviderSpec, ...] = (detect_by_base_keyword="11434",default_api_base="http://localhost:11434/v1",),+ ProviderSpec(+ name="lm_studio",+ keywords=("lmstudio", "lm_studio"),+ env_key="",+ display_name="LM Studio",+ backend="openai_compat",+ is_local=True,+ detect_by_base_keyword="1234",+ default_api_base="http://localhost:1234/v1",+ ),+ ProviderSpec(+ name="llama_cpp",+ keywords=("llama_cpp", "llama.cpp"),+ env_key="",+ display_name="llama.cpp",+ backend="openai_compat",+ is_local=True,+ detect_by_base_keyword="8080",+ default_api_base="http://localhost:8080/v1",+ ),ProviderSpec(name="ovms",keywords=("openvino", "ovms"),diff --git a/deeptutor/services/rag/pipelines/llamaindex.py b/deeptutor/services/rag/pipelines/llamaindex.pyindex a3986b497..5e2b4577f 100644--- a/deeptutor/services/rag/pipelines/llamaindex.py+++ b/deeptutor/services/rag/pipelines/llamaindex.py@@ -310,25 +310,24 @@ class LlamaIndexPipeline:"provider": "llamaindex",}- # Detect embedding model mismatch before searching.embedding_mismatch_warning = ""try:- from deeptutor.knowledge.manager import KnowledgeBaseManager-- kb_mgr = KnowledgeBaseManager(self.kb_base_dir)- kb_meta = kb_mgr.get_metadata(kb_name)- if kb_meta.get("embedding_mismatch"):- stored = kb_meta.get("embedding_model", "unknown")- current_cfg = get_embedding_config()- embedding_mismatch_warning = (- f"Warning: This knowledge base was indexed with embedding model "- f"'{stored}' but the current model is '{current_cfg.model}'. "- f"Search quality may be degraded. Please re-index the knowledge "- f"base for accurate results."- )- self.logger.warning(embedding_mismatch_warning)- except Exception as exc:- self.logger.debug(f"Embedding mismatch check skipped: {exc}")+ import json as _json++ cfg_path = Path(self.kb_base_dir) / "kb_config.json"+ if cfg_path.exists():+ with open(cfg_path, encoding="utf-8") as _f:+ kb_entry = _json.load(_f).get("knowledge_bases", {}).get(kb_name, {})+ if kb_entry.get("embedding_mismatch"):+ stored = kb_entry.get("embedding_model", "unknown")+ current = get_embedding_config().model+ embedding_mismatch_warning = (+ f"Warning: KB '{kb_name}' was indexed with '{stored}' "+ f"but current model is '{current}'. Re-index recommended."+ )+ self.logger.warning(embedding_mismatch_warning)+ except Exception:+ passtry:# Load index from storage (run in thread pool)diff --git a/deeptutor/services/session/context_builder.py b/deeptutor/services/session/context_builder.pyindex 44b411d28..aedd69243 100644--- a/deeptutor/services/session/context_builder.py+++ b/deeptutor/services/session/context_builder.py@@ -112,14 +112,13 @@ class ContextBuilder:cleaned_summary = summary.strip()if cleaned_summary:history.append({"role": "system", "content": cleaned_summary})- # Filter out system messages from DB since summary is already added as systemhistory.extend({"role": item.get("role", "user"),"content": str(item.get("content", "") or ""),}for item in messages- if item.get("role") in {"user", "assistant"} # Removed "system" to avoid duplicate system messages+ if item.get("role") in {"user", "assistant"}and str(item.get("content", "") or "").strip())return historydiff --git a/deeptutor/services/session/sqlite_store.py b/deeptutor/services/session/sqlite_store.pyindex b28d686db..eae63e343 100644--- a/deeptutor/services/session/sqlite_store.py+++ b/deeptutor/services/session/sqlite_store.py@@ -146,23 +146,42 @@ class SQLiteSessionStore:CREATE INDEX IF NOT EXISTS idx_turn_events_turn_seqON turn_events(turn_id, seq);- CREATE TABLE IF NOT EXISTS wrong_answers (+ CREATE TABLE IF NOT EXISTS notebook_entries (id INTEGER PRIMARY KEY AUTOINCREMENT,session_id TEXT NOT NULL REFERENCES sessions(id) ON DELETE CASCADE,- question_id TEXT DEFAULT '',+ question_id TEXT NOT NULL,question TEXT NOT NULL,- user_answer TEXT DEFAULT '',+ question_type TEXT DEFAULT '',+ options_json TEXT DEFAULT '{}',correct_answer TEXT DEFAULT '',- resolved INTEGER NOT NULL DEFAULT 0,+ explanation TEXT DEFAULT '',+ difficulty TEXT DEFAULT '',+ user_answer TEXT DEFAULT '',+ is_correct INTEGER DEFAULT 0,+ bookmarked INTEGER DEFAULT 0,+ followup_session_id TEXT DEFAULT '',created_at REAL NOT NULL,- resolved_at REAL+ updated_at REAL NOT NULL,+ UNIQUE(session_id, question_id));- CREATE INDEX IF NOT EXISTS idx_wrong_answers_session- ON wrong_answers(session_id, created_at DESC);+ CREATE INDEX IF NOT EXISTS idx_notebook_entries_session+ ON notebook_entries(session_id, created_at DESC);++ CREATE INDEX IF NOT EXISTS idx_notebook_entries_bookmarked+ ON notebook_entries(bookmarked, created_at DESC);- CREATE INDEX IF NOT EXISTS idx_wrong_answers_resolved- ON wrong_answers(resolved, created_at DESC);+ CREATE TABLE IF NOT EXISTS notebook_categories (+ id INTEGER PRIMARY KEY AUTOINCREMENT,+ name TEXT NOT NULL UNIQUE,+ created_at REAL NOT NULL+ );++ CREATE TABLE IF NOT EXISTS notebook_entry_categories (+ entry_id INTEGER NOT NULL REFERENCES notebook_entries(id) ON DELETE CASCADE,+ category_id INTEGER NOT NULL REFERENCES notebook_categories(id) ON DELETE CASCADE,+ PRIMARY KEY (entry_id, category_id)+ );""")columns = {row[1] for row in conn.execute("PRAGMA table_info(sessions)").fetchall()}@@ -749,163 +768,320 @@ class SQLiteSessionStore:session["active_turns"] = await self.list_active_turns(session_id)return session- def _add_wrong_answers_sync(- self,- session_id: str,- items: list[dict[str, Any]],+ # โโ Notebook entries โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ++ def _upsert_notebook_entries_sync(+ self, session_id: str, items: list[dict[str, Any]]) -> int:if not items:return 0now = time.time()with self._connect() as conn:- session = conn.execute(- "SELECT id FROM sessions WHERE id = ?",- (session_id,),- ).fetchone()- if session is None:+ if conn.execute("SELECT id FROM sessions WHERE id = ?", (session_id,)).fetchone() is None:raise ValueError(f"Session not found: {session_id}")- inserted = 0+ upserted = 0for item in items:- if item.get("is_correct"):- continuequestion = (item.get("question") or "").strip()- if not question:+ question_id = (item.get("question_id") or "").strip()+ if not question or not question_id:continueconn.execute("""- INSERT INTO wrong_answers (- session_id, question_id, question, user_answer,- correct_answer, resolved, created_at, resolved_at- ) VALUES (?, ?, ?, ?, ?, 0, ?, NULL)+ INSERT INTO notebook_entries (+ session_id, question_id, question, question_type,+ options_json, correct_answer, explanation, difficulty,+ user_answer, is_correct, bookmarked, followup_session_id,+ created_at, updated_at+ ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 0, '', ?, ?)+ ON CONFLICT(session_id, question_id) DO UPDATE SET+ user_answer = excluded.user_answer,+ is_correct = excluded.is_correct,+ updated_at = excluded.updated_at""",(session_id,- item.get("question_id") or "",+ question_id,question,- item.get("user_answer") or "",+ item.get("question_type") or "",+ _json_dumps(item.get("options") or {}),item.get("correct_answer") or "",+ item.get("explanation") or "",+ item.get("difficulty") or "",+ item.get("user_answer") or "",+ 1 if item.get("is_correct") else 0,+ now,now,),)- inserted += 1+ upserted += 1conn.commit()- return inserted+ return upserted- async def add_wrong_answers(- self,- session_id: str,- items: list[dict[str, Any]],+ async def upsert_notebook_entries(+ self, session_id: str, items: list[dict[str, Any]]) -> int:- return await self._run(self._add_wrong_answers_sync, session_id, items)+ return await self._run(self._upsert_notebook_entries_sync, session_id, items)++ @staticmethod+ def _serialize_notebook_entry(row: sqlite3.Row) -> dict[str, Any]:+ return {+ "id": int(row["id"]),+ "session_id": row["session_id"],+ "session_title": row["session_title"] or "" if "session_title" in row.keys() else "",+ "question_id": row["question_id"] or "",+ "question": row["question"],+ "question_type": row["question_type"] or "",+ "options": _json_loads(row["options_json"], {}),+ "correct_answer": row["correct_answer"] or "",+ "explanation": row["explanation"] or "",+ "difficulty": row["difficulty"] or "",+ "user_answer": row["user_answer"] or "",+ "is_correct": bool(row["is_correct"]),+ "bookmarked": bool(row["bookmarked"]),+ "followup_session_id": row["followup_session_id"] or "",+ "created_at": float(row["created_at"]),+ "updated_at": float(row["updated_at"]),+ }- def _list_wrong_answers_sync(+ def _list_notebook_entries_sync(self,- resolved: bool | None,+ category_id: int | None,+ bookmarked: bool | None,+ is_correct: bool | None,limit: int,offset: int,- ) -> list[dict[str, Any]]:- query = """+ ) -> dict[str, Any]:+ base = """SELECT- w.id,- w.session_id,- COALESCE(s.title, '') AS session_title,- w.question_id,- w.question,- w.user_answer,- w.correct_answer,- w.resolved,- w.created_at,- w.resolved_at- FROM wrong_answers w- LEFT JOIN sessions s ON s.id = w.session_id+ n.id, n.session_id, COALESCE(s.title, '') AS session_title,+ n.question_id, n.question, n.question_type, n.options_json,+ n.correct_answer, n.explanation, n.difficulty,+ n.user_answer, n.is_correct, n.bookmarked,+ n.followup_session_id, n.created_at, n.updated_at+ FROM notebook_entries n+ LEFT JOIN sessions s ON s.id = n.session_id"""+ count_base = "SELECT COUNT(*) AS cnt FROM notebook_entries n"+ conditions: list[str] = []params: list[Any] = []- if resolved is not None:- query += " WHERE w.resolved = ?"- params.append(1 if resolved else 0)- query += " ORDER BY w.created_at DESC LIMIT ? OFFSET ?"- params.extend([limit, offset])+ if category_id is not None:+ join = " INNER JOIN notebook_entry_categories ec ON ec.entry_id = n.id"+ base += join+ count_base += join+ conditions.append("ec.category_id = ?")+ params.append(category_id)+ if bookmarked is not None:+ conditions.append("n.bookmarked = ?")+ params.append(1 if bookmarked else 0)+ if is_correct is not None:+ conditions.append("n.is_correct = ?")+ params.append(1 if is_correct else 0)+ where = (" WHERE " + " AND ".join(conditions)) if conditions else ""with self._connect() as conn:- rows = conn.execute(query, tuple(params)).fetchall()- return [- {- "id": int(row["id"]),- "session_id": row["session_id"],- "session_title": row["session_title"] or "",- "question_id": row["question_id"] or "",- "question": row["question"],- "user_answer": row["user_answer"] or "",- "correct_answer": row["correct_answer"] or "",- "resolved": bool(row["resolved"]),- "created_at": float(row["created_at"]),- "resolved_at": (- float(row["resolved_at"]) if row["resolved_at"] is not None else None- ),- }- for row in rows- ]+ total_row = conn.execute(count_base + where, tuple(params)).fetchone()+ total = int(total_row["cnt"]) if total_row else 0+ rows = conn.execute(+ base + where + " ORDER BY n.created_at DESC LIMIT ? OFFSET ?",+ tuple(params) + (limit, offset),+ ).fetchall()+ items = [self._serialize_notebook_entry(r) for r in rows]+ return {"items": items, "total": total}- async def list_wrong_answers(+ async def list_notebook_entries(self,- resolved: bool | None = None,+ category_id: int | None = None,+ bookmarked: bool | None = None,+ is_correct: bool | None = None,limit: int = 50,offset: int = 0,- ) -> list[dict[str, Any]]:+ ) -> dict[str, Any]:return await self._run(- self._list_wrong_answers_sync, resolved, limit, offset+ self._list_notebook_entries_sync,+ category_id, bookmarked, is_correct, limit, offset,)- def _count_wrong_answers_sync(self, resolved: bool | None) -> int:- query = "SELECT COUNT(*) AS count FROM wrong_answers"- params: tuple[Any, ...] = ()- if resolved is not None:- query += " WHERE resolved = ?"- params = (1 if resolved else 0,)+ def _get_notebook_entry_sync(self, entry_id: int) -> dict[str, Any] | None:with self._connect() as conn:- row = conn.execute(query, params).fetchone()- return int(row["count"]) if row else 0+ row = conn.execute(+ """+ SELECT+ n.*, COALESCE(s.title, '') AS session_title+ FROM notebook_entries n+ LEFT JOIN sessions s ON s.id = n.session_id+ WHERE n.id = ?+ """,+ (entry_id,),+ ).fetchone()+ if row is None:+ return None+ entry = self._serialize_notebook_entry(row)+ cats = conn.execute(+ """+ SELECT c.id, c.name+ FROM notebook_categories c+ INNER JOIN notebook_entry_categories ec ON ec.category_id = c.id+ WHERE ec.entry_id = ?+ ORDER BY c.name+ """,+ (entry_id,),+ ).fetchall()+ entry["categories"] = [{"id": c["id"], "name": c["name"]} for c in cats]+ return entry- async def count_wrong_answers(self, resolved: bool | None = None) -> int:- return await self._run(self._count_wrong_answers_sync, resolved)+ async def get_notebook_entry(self, entry_id: int) -> dict[str, Any] | None:+ return await self._run(self._get_notebook_entry_sync, entry_id)- def _update_wrong_answer_resolved_sync(- self,- wrong_answer_id: int,- resolved: bool,+ def _find_notebook_entry_sync(self, session_id: str, question_id: str) -> dict[str, Any] | None:+ with self._connect() as conn:+ row = conn.execute(+ """+ SELECT n.*, COALESCE(s.title, '') AS session_title+ FROM notebook_entries n+ LEFT JOIN sessions s ON s.id = n.session_id+ WHERE n.session_id = ? AND n.question_id = ?+ """,+ (session_id, question_id),+ ).fetchone()+ if row is None:+ return None+ return self._serialize_notebook_entry(row)++ async def find_notebook_entry(self, session_id: str, question_id: str) -> dict[str, Any] | None:+ return await self._run(self._find_notebook_entry_sync, session_id, question_id)++ def _update_notebook_entry_sync(+ self, entry_id: int, updates: dict[str, Any]) -> bool:- now = time.time() if resolved else None+ allowed = {"bookmarked", "followup_session_id", "user_answer", "is_correct"}+ fields = {k: v for k, v in updates.items() if k in allowed}+ if not fields:+ return False+ fields["updated_at"] = time.time()+ if "bookmarked" in fields:+ fields["bookmarked"] = 1 if fields["bookmarked"] else 0+ if "is_correct" in fields:+ fields["is_correct"] = 1 if fields["is_correct"] else 0+ set_clause = ", ".join(f"{k} = ?" for k in fields)+ values = list(fields.values()) + [entry_id]+ with self._connect() as conn:+ cur = conn.execute(+ f"UPDATE notebook_entries SET {set_clause} WHERE id = ?",+ tuple(values),+ )+ conn.commit()+ return cur.rowcount > 0++ async def update_notebook_entry(self, entry_id: int, updates: dict[str, Any]) -> bool:+ return await self._run(self._update_notebook_entry_sync, entry_id, updates)++ def _delete_notebook_entry_sync(self, entry_id: int) -> bool:+ with self._connect() as conn:+ cur = conn.execute("DELETE FROM notebook_entries WHERE id = ?", (entry_id,))+ conn.commit()+ return cur.rowcount > 0++ async def delete_notebook_entry(self, entry_id: int) -> bool:+ return await self._run(self._delete_notebook_entry_sync, entry_id)++ # โโ Notebook categories โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ++ def _create_category_sync(self, name: str) -> dict[str, Any]:+ now = time.time()with self._connect() as conn:cur = conn.execute(+ "INSERT INTO notebook_categories (name, created_at) VALUES (?, ?)",+ (name.strip(), now),+ )+ conn.commit()+ return {"id": int(cur.lastrowid), "name": name.strip(), "created_at": now}++ async def create_category(self, name: str) -> dict[str, Any]:+ return await self._run(self._create_category_sync, name)++ def _list_categories_sync(self) -> list[dict[str, Any]]:+ with self._connect() as conn:+ rows = conn.execute("""- UPDATE wrong_answers- SET resolved = ?, resolved_at = ?- WHERE id = ?+ SELECT c.id, c.name, c.created_at,+ COUNT(ec.entry_id) AS entry_count+ FROM notebook_categories c+ LEFT JOIN notebook_entry_categories ec ON ec.category_id = c.id+ GROUP BY c.id+ ORDER BY c.name""",- (1 if resolved else 0, now, wrong_answer_id),+ ).fetchall()+ return [+ {"id": r["id"], "name": r["name"], "created_at": float(r["created_at"]),+ "entry_count": int(r["entry_count"])}+ for r in rows+ ]++ async def list_categories(self) -> list[dict[str, Any]]:+ return await self._run(self._list_categories_sync)++ def _rename_category_sync(self, category_id: int, name: str) -> bool:+ with self._connect() as conn:+ cur = conn.execute(+ "UPDATE notebook_categories SET name = ? WHERE id = ?",+ (name.strip(), category_id),)conn.commit()return cur.rowcount > 0- async def update_wrong_answer_resolved(- self,- wrong_answer_id: int,- resolved: bool,- ) -> bool:- return await self._run(- self._update_wrong_answer_resolved_sync, wrong_answer_id, resolved- )+ async def rename_category(self, category_id: int, name: str) -> bool:+ return await self._run(self._rename_category_sync, category_id, name)- def _delete_wrong_answer_sync(self, wrong_answer_id: int) -> bool:+ def _delete_category_sync(self, category_id: int) -> bool:+ with self._connect() as conn:+ cur = conn.execute("DELETE FROM notebook_categories WHERE id = ?", (category_id,))+ conn.commit()+ return cur.rowcount > 0++ async def delete_category(self, category_id: int) -> bool:+ return await self._run(self._delete_category_sync, category_id)++ def _add_entry_to_category_sync(self, entry_id: int, category_id: int) -> bool:+ with self._connect() as conn:+ try:+ conn.execute(+ "INSERT OR IGNORE INTO notebook_entry_categories (entry_id, category_id) VALUES (?, ?)",+ (entry_id, category_id),+ )+ conn.commit()+ except sqlite3.IntegrityError:+ return False+ return True++ async def add_entry_to_category(self, entry_id: int, category_id: int) -> bool:+ return await self._run(self._add_entry_to_category_sync, entry_id, category_id)++ def _remove_entry_from_category_sync(self, entry_id: int, category_id: int) -> bool:with self._connect() as conn:cur = conn.execute(- "DELETE FROM wrong_answers WHERE id = ?",- (wrong_answer_id,),+ "DELETE FROM notebook_entry_categories WHERE entry_id = ? AND category_id = ?",+ (entry_id, category_id),)conn.commit()return cur.rowcount > 0- async def delete_wrong_answer(self, wrong_answer_id: int) -> bool:- return await self._run(self._delete_wrong_answer_sync, wrong_answer_id)+ async def remove_entry_from_category(self, entry_id: int, category_id: int) -> bool:+ return await self._run(self._remove_entry_from_category_sync, entry_id, category_id)++ def _get_entry_categories_sync(self, entry_id: int) -> list[dict[str, Any]]:+ with self._connect() as conn:+ rows = conn.execute(+ """+ SELECT c.id, c.name FROM notebook_categories c+ INNER JOIN notebook_entry_categories ec ON ec.category_id = c.id+ WHERE ec.entry_id = ?+ ORDER BY c.name+ """,+ (entry_id,),+ ).fetchall()+ return [{"id": r["id"], "name": r["name"]} for r in rows]++ async def get_entry_categories(self, entry_id: int) -> list[dict[str, Any]]:+ return await self._run(self._get_entry_categories_sync, entry_id)_instance: SQLiteSessionStore | None = Nonediff --git a/deeptutor/services/session/turn_runtime.py b/deeptutor/services/session/turn_runtime.pyindex 1d2c62d2e..f90cd5251 100644--- a/deeptutor/services/session/turn_runtime.py+++ b/deeptutor/services/session/turn_runtime.py@@ -458,13 +458,23 @@ class TurnRuntimeManager:records=history_records,emit=lambda event: self._persist_and_publish(execution, event),)- # Fallback: if analysis returns empty, use raw record contentif not history_context.strip():- history_context = "\n\n".join(- f"## Session: {record.get('title', 'Untitled')}\n{record.get('output', '')}"- for record in history_records- if record.get("output")- )+ MAX_FALLBACK_CHARS = 8000+ parts: list[str] = []+ total = 0+ for record in history_records:+ output = record.get("output")+ if not output:+ continue+ part = f"## Session: {record.get('title', 'Untitled')}\n{output}"+ if total + len(part) > MAX_FALLBACK_CHARS:+ remaining = MAX_FALLBACK_CHARS - total+ if remaining > 100:+ parts.append(part[:remaining] + "\n...(truncated)")+ break+ parts.append(part)+ total += len(part)+ history_context = "\n\n".join(parts)effective_user_message = raw_user_contentcontext_parts: list[str] = []diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mtsdeleted file mode 100644index 87841f4ef..000000000--- a/docs/.vitepress/config.mts+++ /dev/null@@ -1,121 +0,0 @@-import { defineConfig } from 'vitepress'--export default defineConfig({- title: "DeepTutor",- description: "AI-Powered Personalized Learning Assistant",-- base: '/DeepTutor/',-- head: [- ['link', { rel: 'icon', href: '/DeepTutor/logo.png' }]- ],-- ignoreDeadLinks: [- /^http:\/\/localhost/- ],-- locales: {- root: {- label: 'English',- lang: 'en',- themeConfig: {- nav: [- { text: 'Home', link: '/' },- { text: 'Guide', link: '/guide/pre-config' },- { text: 'Contribute', link: '/contribution' },- { text: 'GitHub', link: 'https://github.com/HKUDS/DeepTutor' }- ],- sidebar: {- '/guide/': [- {- text: 'Getting Started',- items: [- { text: 'Pre-Configuration', link: '/guide/pre-config' },- { text: 'Data Preparation', link: '/guide/data-preparation' },- { text: 'Local Installation', link: '/guide/local-start' },- { text: 'Docker Deployment', link: '/guide/docker-start' }- ]- },- {- text: 'Resources',- items: [- { text: 'Troubleshooting', link: '/guide/troubleshooting' }- ]- }- ]- },- editLink: {- pattern: 'https://github.com/HKUDS/DeepTutor/edit/main/docs/:path',- text: 'Edit this page on GitHub'- },- footer: {- message: 'Released under the AGPL-3.0 License.',- copyright: 'ยฉ 2025-2026 Data Intelligence Lab @ HKU'- }- }- },- zh: {- label: '็ฎไฝไธญๆ',- lang: 'zh-CN',- link: '/zh/',- themeConfig: {- nav: [- { text: '้ฆ้กต', link: '/zh/' },- { text: 'ๆๅ', link: '/zh/guide/pre-config' },- { text: 'ๅไธ่ดก็ฎ', link: '/zh/contribution' },- { text: 'GitHub', link: 'https://github.com/HKUDS/DeepTutor' }- ],- sidebar: {- '/zh/guide/': [- {- text: 'ๅฟซ้ๅผๅง',- items: [- { text: '้ข้ ็ฝฎ', link: '/zh/guide/pre-config' },- { text: 'ๆฐๆฎๅๅค', link: '/zh/guide/data-preparation' },- { text: 'ๆฌๅฐๅฎ่ฃ ', link: '/zh/guide/local-start' },- { text: 'Docker ้จ็ฝฒ', link: '/zh/guide/docker-start' }- ]- },- {- text: '่ตๆบ',- items: [- { text: 'ๅธธ่ง้ฎ้ข', link: '/zh/guide/troubleshooting' }- ]- }- ]- },- editLink: {- pattern: 'https://github.com/HKUDS/DeepTutor/edit/main/docs/:path',- text: 'ๅจ GitHub ไธ็ผ่พๆญค้กต'- },- footer: {- message: 'ๅบไบ AGPL-3.0 ่ฎธๅฏ่ฏๅๅธ',- copyright: 'ยฉ 2025-2026 ้ฆๆธฏๅคงๅญฆๆฐๆฎๆบ่ฝๅฎ้ชๅฎค'- },- outline: { label: 'ๆฌ้กต็ฎๅฝ' },- docFooter: { prev: 'ไธไธ็ฏ', next: 'ไธไธ็ฏ' },- lastUpdated: { text: 'ๆๅๆดๆฐไบ' },- darkModeSwitchLabel: 'ๅค่ง',- sidebarMenuLabel: '่ๅ',- returnToTopLabel: '่ฟๅ้กถ้จ',- langMenuLabel: 'ๅๆข่ฏญ่จ'- }- }- },-- themeConfig: {- logo: '/logo.png',- socialLinks: [- { icon: 'github', link: 'https://github.com/HKUDS/DeepTutor' },- { icon: 'discord', link: 'https://discord.gg/eRsjPgMU4t' },- {- icon: {- svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 0 1 .213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.32.32 0 0 0 .167-.054l1.903-1.114a.864.864 0 0 1 .717-.098 10.16 10.16 0 0 0 2.837.403c.276 0 .543-.027.811-.05-.857-2.578.157-4.972 1.932-6.446 1.703-1.415 3.882-1.98 5.853-1.838-.576-3.583-4.196-6.348-8.596-6.348zM5.785 5.991c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178A1.17 1.17 0 0 1 4.623 7.17c0-.651.52-1.18 1.162-1.18zm5.813 0c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178 1.17 1.17 0 0 1-1.162-1.178c0-.651.52-1.18 1.162-1.18zm5.34 2.867c-1.797-.052-3.746.512-5.28 1.786-1.72 1.428-2.687 3.72-1.78 6.22.942 2.453 3.666 4.229 6.884 4.229.826 0 1.622-.12 2.361-.336a.722.722 0 0 1 .598.082l1.584.926a.272.272 0 0 0 .14.047c.134 0 .24-.111.24-.247 0-.06-.023-.12-.038-.177l-.327-1.233a.49.49 0 0 1 .176-.554C23.048 18.276 24 16.577 24 14.71c0-3.38-3.251-6.136-7.062-5.852zm-2.073 2.703c.536 0 .97.44.97.983a.976.976 0 0 1-.97.983.976.976 0 0 1-.97-.983c0-.542.434-.983.97-.983zm4.146 0c.536 0 .97.44.97.983a.976.976 0 0 1-.97.983.976.976 0 0 1-.97-.983c0-.542.434-.983.97-.983z"/></svg>'- },- link: 'https://github.com/HKUDS/DeepTutor/issues/78',- ariaLabel: 'WeChat'- }- ],- search: { provider: 'local' }- }-})diff --git a/docs/.vitepress/theme/custom.css b/docs/.vitepress/theme/custom.cssdeleted file mode 100644index 3b671ad35..000000000--- a/docs/.vitepress/theme/custom.css+++ /dev/null@@ -1,47 +0,0 @@-/* Roadmap ๅฏผ่ชๆ ็ญพ็นๆฎๆ ทๅผ - ๆดๆพ็ผ & ็ฌ็ซ */-.VPNavBarMenuLink[href="/DeepTutor/roadmap"],-.VPNavScreenMenuLink[href="/DeepTutor/roadmap"] {- position: relative;- color: white !important;- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);- padding: 6px 16px !important; /* ็จๅพฎๅ ๅฎฝ padding */- border-radius: 20px;- font-weight: 700 !important;- margin-left: 24px !important; /* ๅขๅ ๅทฆไพง้ด่ท๏ผๅถ้ ็ฌ็ซๆ */- transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);- box-shadow: 0 4px 6px -1px rgba(102, 126, 234, 0.2), 0 2px 4px -1px rgba(102, 126, 234, 0.1);- letter-spacing: 0.5px;-}--/* ๅผบๅถ่ฆ็ๅฏ่ฝ็้ป่ฎคๆ ทๅผ */-.VPNavBarMenuLink[href="/DeepTutor/roadmap"]:hover,-.VPNavScreenMenuLink[href="/DeepTutor/roadmap"]:hover {- background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;- transform: translateY(-2px);- box-shadow: 0 10px 15px -3px rgba(102, 126, 234, 0.3), 0 4px 6px -2px rgba(102, 126, 234, 0.1);-}--.VPNavBarMenuLink[href="/DeepTutor/roadmap"]::before,-.VPNavScreenMenuLink[href="/DeepTutor/roadmap"]::before {- content: '๐';- margin-right: 6px;- font-size: 1.1em;- vertical-align: -1px;-}--/* ๆดป่ท็ถๆ */-.VPNavBarMenuLink[href="/DeepTutor/roadmap"].active,-.VPNavBarMenuLink[href="/DeepTutor/roadmap"].VPLink--active {- background: linear-gradient(135deg, #5b21b6 0%, #4c1d95 100%) !important; /* ๆทฑ็ดซ่ฒ */- box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.2);-}--/* ็งปๅจ็ซฏๆ ทๅผไผๅ */-@media (max-width: 768px) {- .VPNavScreenMenuLink[href="/DeepTutor/roadmap"] {- display: inline-flex;- align-items: center;- margin: 12px 0 12px 12px;- width: auto;- }-}diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.tsdeleted file mode 100644index 42fe9a936..000000000--- a/docs/.vitepress/theme/index.ts+++ /dev/null@@ -1,4 +0,0 @@-import DefaultTheme from 'vitepress/theme'-import './custom.css'--export default DefaultThemediff --git a/docs/contribution.md b/docs/contribution.mddeleted file mode 100644index 695cbb369..000000000--- a/docs/contribution.md+++ /dev/null@@ -1,104 +0,0 @@-# Make Contribution--We hope DeepTutor could become a gift for the community. ๐--## Join Our Community--<div class="community-links">- <a href="https://github.com/HKUDS/DeepTutor/issues/78" class="community-badge wechat">- ๐ฌ WeChat Community- </a>- <a href="https://github.com/HKUDS/DeepTutor/issues/167" class="community-badge wechat-collab">- ๐ค WeChat Co-creators- </a>- <a href="https://discord.gg/eRsjPgMU4t" class="community-badge discord">- ๐ Discord- </a>-</div>--## We Welcome Contributions!--Whether you're fixing bugs, improving documentation, or adding new features, your contributions are valuable to us.--### How to Contribute--1. **Report Bugs** โ Found a bug? Open an issue on GitHub with reproduction steps-2. **Suggest Features** โ Share ideas in GitHub Discussions or our community channels-3. **Improve Docs** โ Help us improve documentation, tutorials, and examples-4. **Submit Code** โ Fix bugs or implement new features through pull requests--### Contribution Guidelines--For detailed guidelines, see [CONTRIBUTING.md](https://github.com/HKUDS/DeepTutor/blob/dev/CONTRIBUTING.md).--**Key Points:**--- All contributions must be based on the `dev` branch-- Run `pre-commit run --all-files` before submitting-- Use conventional commit format: `feat:`, `fix:`, `docs:`, etc.--### Quick Start--```bash-# Fork and clone-git clone https://github.com/YOUR_USERNAME/DeepTutor.git-cd DeepTutor--# Create feature branch from dev-git checkout dev && git pull origin dev-git checkout -b feature/your-feature-name--# Install pre-commit hooks-pip install pre-commit && pre-commit install--# Make changes, then submit PR to dev branch-```--## Our Contributors--<a href="https://github.com/HKUDS/DeepTutor/graphs/contributors">- <img src="https://contrib.rocks/image?repo=HKUDS/DeepTutor&max=999" alt="Contributors" />-</a>-------Thank you for your interest in contributing to DeepTutor! ๐--<style>-.community-links {- display: flex;- gap: 12px;- flex-wrap: wrap;- margin: 20px 0;-}--.community-badge {- display: inline-flex;- align-items: center;- padding: 10px 18px;- border-radius: 8px;- font-weight: 500;- font-size: 0.95rem;- text-decoration: none;- transition: all 0.2s ease;-}--.community-badge:hover {- transform: translateY(-2px);-}--.community-badge.wechat {- background: #07C160;- color: white;-}--.community-badge.wechat-collab {- background: #1AAD19;- color: white;-}--.community-badge.discord {- background: #5865F2;- color: white;-}-</style>diff --git a/docs/features/overview.md b/docs/features/overview.mddeleted file mode 100644index 7a02ba3ee..000000000--- a/docs/features/overview.md+++ /dev/null@@ -1,153 +0,0 @@-# ๐๏ธ DeepTutor's Framework--<img src="/full-pipe.png" alt="DeepTutor Full-Stack Workflow" width="100%">--## ๐ฌ User Interface Layer-โข **Intuitive Interaction**: Simple bidirectional query-response flow for intuitive interaction.-โข **Structured Output**: Structured response generation that organizes complex information into actionable outputs.-โข **Dark/Light Mode**: System-wide theme support with automatic system preference detection.-โข **Collapsible Sidebar**: Compact navigation with icon-only mode for focused learning.--## ๐ค Intelligent Agent Modules-โข **Problem Solving & Assessment**: Step-by-step problem solving and custom assessment generation.-โข **Research & Learning**: Deep Research for topic exploration, Co-Writer drafting, and Guided Learning with visualization.--## ๐ง Tool Integration Layer-โข **Information Retrieval**: RAG hybrid retrieval, real-time web search, and academic paper databases.-โข **Processing & Analysis**: Python code execution and PDF parsing for document analysis.-โข **Multi-Provider Support**: Flexible LLM providers (OpenAI, Anthropic, Ollama, etc.) and embedding adapters (OpenAI, Jina, Cohere, Ollama, etc.).--## ๐ง Knowledge & Memory Foundation-โข **Knowledge Graph**: Entity-relation mapping for semantic connections and knowledge discovery.-โข **Vector Store**: Embedding-based semantic search for intelligent content retrieval.-โข **Memory System**: Session state management and citation tracking for contextual continuity.-------# Key Features of DeepTutor--## ๐ Massive Document Knowledge Q&A--โข **Smart Knowledge Base**: Upload textbooks, research papers, technical manuals, and domain-specific documents. Build a comprehensive AI-powered knowledge repository for instant access.--โข **Multi-Agent Problem Solving**: Dual-loop reasoning architecture with RAG, web search, paper search, and code executionโdelivering step-by-step solutions with precise citations.--## ๐จ Interactive Learning Visualization--โข **Knowledge Simplification & Explanations**: Transform complex concepts, knowledge, and algorithms into easy-to-understand visual aids, detailed step-by-step breakdowns, and engaging interactive demonstrations.--โข **Personalized Q&A**: Context-aware conversations that adapt to your learning progress, with interactive pages and session-based knowledge tracking.--## ๐ฏ Knowledge Reinforcement with Practice Problem Generator--โข **Intelligent Exercise Creation**: Generate targeted quizzes, practice problems, and customized assessments tailored to your current knowledge level and specific learning objectives.--โข **Authentic Exam Simulation**: Upload reference exams to generate practice questions that perfectly match the original style, format, and difficultyโgiving you realistic preparation for the actual test.--## ๐ Deep Research & Co-Writer--โข **Comprehensive Research & Literature Review**: Conduct in-depth topic exploration with systematic analysis. Identify patterns, connect related concepts across disciplines, and synthesize existing research findings.--โข **Novel Insight Discovery**: Generate structured learning materials and uncover knowledge gaps. Identify promising new research directions through intelligent cross-domain knowledge synthesis.-------<!-- Core Learning Experience -->--<table>-<tr>-<td width="50%" align="center" valign="top">--### ๐ Massive Document Knowledge Q&A--<img src="/solve.gif" alt="Document Q&A demonstration" width="100%">--Document Q&A and Step-by-Step Problem Solving--</td>-<td width="50%" align="center" valign="top">--### ๐จ Interactive Learning Visualization--<img src="/guided-learning.gif" alt="Interactive learning visualization demo" width="100%">--Interactive AI Learning with Knowledge Visual Explanations--</td>-</tr>-</table>--<!-- Practice & Reinforcement -->--### ๐ฏ Knowledge Reinforcement--<table>-<tr>-<td width="50%" valign="top" align="center">--<img src="/question-1.gif" alt="Custom question generation demo" width="100%">--**Custom Questions**-Auto-Validated Practice Questions with Instant Feedback--</td>-<td width="50%" valign="top" align="center">--<img src="/question-2.gif" alt="Mimic exam style questions demo" width="100%">--**Mimic Questions**-Clone Exam Style for Authentic Practice--</td>-</tr>-</table>--<!-- Research & Creation -->--### ๐ Deep Research & Co-Writer--<table>-<tr>-<td width="50%" align="center">--<img src="/deepresearch.gif" alt="Deep research with web and paper search demo" width="100%">--**Deep Research**-Web and Paper Search with Literature Review--</td>-<td width="50%" align="center">--<img src="/co-writer.gif" alt="Interactive idea generation demo" width="100%">--**Co-Writer**-AI-assisted drafting, editing, and refinement--</td>-</tr>-</table>--<!-- Knowledge Infrastructure -->--### ๐๏ธ All-in-One Knowledge System--<table>-<tr>-<td width="50%" align="center">--<img src="/knowledge_bases.png" alt="Personal knowledge base demo" width="100%">--**Personal Knowledge Base**-Build and Organize Your Own Knowledge Repository--</td>-<td width="50%" align="center">--<img src="/notebooks.png" alt="Personal notebook demo" width="100%">--**Personal Notebook**-Your Contextual Memory for Learning Sessions--</td>-</tr>-</table>diff --git a/docs/guide/data-preparation.md b/docs/guide/data-preparation.mddeleted file mode 100644index edc39859a..000000000--- a/docs/guide/data-preparation.md+++ /dev/null@@ -1,185 +0,0 @@-# Data Preparation--DeepTutor provides demo knowledge bases and sample questions to help you get started quickly.--## Demo Knowledge Bases--We provide two pre-built knowledge bases on [Google Drive](https://drive.google.com/drive/folders/1iWwfZXiTuQKQqUYb5fGDZjLCeTUP6DA6?usp=sharing):--### 1. Research Papers Collection--<div class="info-card">- <div class="info-header">- <span class="info-icon">๐</span>- <span class="info-title">5 Research Papers (20-50 pages each)</span>- </div>- <div class="info-content">- <p>A curated collection of cutting-edge research papers from our lab, covering RAG and Agent fields.</p>- <p><strong>Included Papers:</strong></p>- <ul>- <li><a href="https://github.com/HKUDS/AI-Researcher">AI-Researcher</a> - Automated research paper generation</li>- <li><a href="https://github.com/HKUDS/AutoAgent">AutoAgent</a> - Autonomous agent framework</li>- <li><a href="https://github.com/HKUDS/AutoAgent">AutoAgent</a> - Autonomous agent framework</li>- <li><a href="https://github.com/HKUDS/DeepCode">DeepCode</a> - AI code assistant</li>- <li><a href="https://github.com/HKUDS/VideoRAG">VideoRAG</a> - Video understanding with RAG</li>- </ul>- <p><strong>Best for:</strong> Research scenarios, broad knowledge coverage</p>- </div>-</div>--### 2. Data Science Textbook--<div class="info-card">- <div class="info-header">- <span class="info-icon">๐</span>- <span class="info-title">8 Chapters, 296 Pages</span>- </div>- <div class="info-content">- <p>A comprehensive deep learning textbook from UC Berkeley.</p>- <p><strong>Source:</strong> <a href="https://ma-lab-berkeley.github.io/deep-representation-learning-book/">Deep Representation Learning Book</a></p>- <p><strong>Topics Covered:</strong></p>- <ul>- <li>Neural Network Fundamentals</li>- <li>Representation Learning</li>- <li>Deep Learning Architectures</li>- <li>Advanced Topics</li>- </ul>- <p><strong>Best for:</strong> Learning scenarios, deep knowledge depth</p>- </div>-</div>--## Download & Setup--### Step 1: Download--Visit our [Google Drive folder](https://drive.google.com/drive/folders/1iWwfZXiTuQKQqUYb5fGDZjLCeTUP6DA6?usp=sharing) and download:--- `knowledge_bases.zip` - Pre-built knowledge bases with embeddings-- `questions.zip` - Sample questions and usage examples (optional)--### Step 2: Extract--Extract the downloaded files into the `data/` directory:--```-DeepTutor/-โโโ data/-โ โโโ knowledge_bases/-โ โโโ research_papers/ # Research papers KB-โ โโโ data_science_book/ # Textbook KB-โ โโโ kb_config.json # Knowledge base config-โโโ user/ # User data (auto-created)-```--### Step 3: Verify--After extracting, your knowledge bases will be automatically available when you start DeepTutor.--::: warning Embedding Compatibility-Our demo knowledge bases use `text-embedding-3-large` with `dimensions = 3072`.--If your embedding model has different dimensions, you'll need to create your own knowledge base instead.-:::--## Creating Custom Knowledge Bases--### Supported File Formats--| Format | Extension | Notes |-|:-------|:----------|:------|-| PDF | `.pdf` | Supports text extraction and layout analysis |-| Text | `.txt` | Plain text files |-| Markdown | `.md` | Markdown with formatting support |--### Via Web Interface--1. Navigate to `http://localhost:3782/knowledge`-2. Click **"New Knowledge Base"**-3. Enter a unique name for your knowledge base-4. Upload your documents (single or batch upload)-5. Wait for processing to complete--::: tip Processing Time-- Small documents (< 10 pages): ~1 minute-- Medium documents (10-100 pages): ~5-10 minutes-- Large documents (100+ pages): May take longer-:::--### Via Command Line--```bash-# Initialize a new knowledge base with documents-deeptutor kb create <kb_name> --doc <pdf_path>--# Add documents to existing knowledge base-deeptutor kb add <kb_name> --doc <new_document.pdf>-```--## Data Storage Structure--All user data is stored in the `data/` directory:--```-data/-โโโ knowledge_bases/ # Knowledge base storage-โ โโโ <kb_name>/-โ โ โโโ documents/ # Original documents-โ โ โโโ chunks/ # Chunked content-โ โ โโโ embeddings/ # Vector embeddings-โ โ โโโ graph/ # Knowledge graph data-โโโ user/ # User activity data- โโโ solve/ # Problem solving results- โโโ question/ # Generated questions- โโโ research/ # Research reports- โโโ notebook/ # Notebook records- โโโ logs/ # System logs-```-------**Next Step:** [Local Installation โ](/guide/local-start)--<style>-.info-card {- background: var(--vp-c-bg-soft);- border: 1px solid var(--vp-c-border);- border-radius: 12px;- padding: 20px;- margin: 16px 0;-}--.info-header {- display: flex;- align-items: center;- gap: 12px;- margin-bottom: 16px;-}--.info-icon {- font-size: 1.5rem;-}--.info-title {- font-size: 1.1rem;- font-weight: 600;- color: var(--vp-c-text-1);-}--.info-content {- color: var(--vp-c-text-2);- line-height: 1.7;-}--.info-content ul {- margin: 12px 0;- padding-left: 20px;-}--.info-content li {- margin: 6px 0;-}--.info-content a {- color: var(--vp-c-brand-1);-}-</style>diff --git a/docs/guide/docker-start.md b/docs/guide/docker-start.mddeleted file mode 100644index f15a1b55b..000000000--- a/docs/guide/docker-start.md+++ /dev/null@@ -1,259 +0,0 @@-# Docker Deployment--Docker deployment requires no Python or Node.js setup โ everything runs in containers.--## Prerequisites--- **Docker** โ [Install Docker](https://docs.docker.com/get-docker/)-- **Docker Compose** โ [Install Docker Compose](https://docs.docker.com/compose/install/)--## Quick Start Options--Choose your preferred deployment method:--<div class="method-tabs">--### Option A: Build from Source--Build and run DeepTutor locally from the source code.--```bash-# Clone repository (if not done)-git clone https://github.com/HKUDS/DeepTutor.git-cd DeepTutor--# Create and configure .env file-cp .env.example .env-# Edit .env with your API keys--# Build and start-docker compose up--# First run takes ~11 minutes on Mac Mini M4-```--#### Common Commands--```bash-# Start in background-docker compose up -d--# Stop services-docker compose down--# View logs-docker compose logs -f--# Rebuild after code changes-docker compose up --build--# Clear cache and rebuild-docker compose build --no-cache-```--</div>--<div class="method-tabs">--### Option B: Pull Pre-built Image (Faster)--Use our official pre-built images from GitHub Container Registry.--```bash-# Works on all platforms - Docker auto-detects your architecture-docker run -d --name deeptutor \- -p 8001:8001 -p 3782:3782 \- --env-file .env \- -v $(pwd)/data:/app/data \- -v $(pwd)/config:/app/config:ro \- ghcr.io/hkuds/deeptutor:latest-```--::: warning Windows PowerShell-Use `${PWD}` instead of `$(pwd)`:--```powershell-docker run -d --name deeptutor `- -p 8001:8001 -p 3782:3782 `- --env-file .env `- -v ${PWD}/data:/app/data `- -v ${PWD}/config:/app/config:ro `- ghcr.io/hkuds/deeptutor:latest-```-:::--</div>--## Available Image Tags--| Tag | Architectures | Description |-|:----|:--------------|:------------|-| `:latest` | AMD64 + ARM64 | Latest stable release (auto-detects architecture) |-| `:v0.5.x` | AMD64 + ARM64 | Specific version (auto-detects architecture) |-| `:v0.5.x-amd64` | AMD64 only | Explicit AMD64 image |-| `:v0.5.x-arm64` | ARM64 only | Explicit ARM64 image |--::: tip Multi-Architecture Support-The `:latest` tag is a **multi-architecture image** โ Docker automatically pulls the correct version for your system (Intel/AMD or Apple Silicon/ARM).-:::--## Cloud Deployment--When deploying to a cloud server, you must set the external API URL:--```bash-docker run -d --name deeptutor \- -p 8001:8001 -p 3782:3782 \- -e NEXT_PUBLIC_API_BASE_EXTERNAL=https://your-server.com:8001 \- --env-file .env \- -v $(pwd)/data:/app/data \- ghcr.io/hkuds/deeptutor:latest-```--::: warning Why is this needed?-The default API URL is `localhost:8001`, which points to the user's local machine in the browser, not your server. Setting `NEXT_PUBLIC_API_BASE_EXTERNAL` ensures the frontend connects to your server's public address.-:::--## Custom Ports--To use different ports:--```bash-docker run -d --name deeptutor \- -p 9001:9001 -p 4000:4000 \- -e BACKEND_PORT=9001 \- -e FRONTEND_PORT=4000 \- -e NEXT_PUBLIC_API_BASE_EXTERNAL=http://localhost:9001 \- --env-file .env \- -v $(pwd)/data:/app/data \- ghcr.io/hkuds/deeptutor:latest-```--::: warning Important-The `-p` port mapping must match the `BACKEND_PORT`/`FRONTEND_PORT` values.-:::--## Access URLs--| Service | URL | Description |-|:---:|:---|:---|-| **Frontend** | http://localhost:3782 | Main web interface |-| **API Docs** | http://localhost:8001/docs | Interactive API documentation |--## Container Management--### View Running Containers--```bash-docker ps-```--### Stop Container--```bash-docker stop deeptutor-```--### Remove Container--```bash-docker rm deeptutor-```--### View Logs--```bash-# All logs-docker logs deeptutor--# Follow logs in real-time-docker logs -f deeptutor--# Last 100 lines-docker logs --tail 100 deeptutor-```--## Troubleshooting--### Frontend cannot connect in cloud deployment--**Problem:** Frontend shows "Failed to fetch" or "NEXT_PUBLIC_API_BASE is not configured"--**Solution:** Set `NEXT_PUBLIC_API_BASE_EXTERNAL` to your server's public URL:--```bash--e NEXT_PUBLIC_API_BASE_EXTERNAL=https://your-server.com:8001-```--### Settings page shows "Error loading data" with HTTPS reverse proxy--**Problem:** HTTPS requests are being redirected to HTTP (307 redirect)--**Solution:** This issue has been fixed in v0.5.0+. Update to the latest version.--**nginx Configuration:**--```nginx-# Frontend-location / {- proxy_pass http://localhost:3782;- proxy_set_header Host $host;- proxy_set_header X-Forwarded-Proto $scheme;-}--# Backend API-location /api/ {- proxy_pass http://localhost:8001;- proxy_set_header Host $host;- proxy_set_header X-Forwarded-Proto $scheme;-}--# WebSocket support-location /api/v1/ {- proxy_pass http://localhost:8001;- proxy_http_version 1.1;- proxy_set_header Upgrade $http_upgrade;- proxy_set_header Connection "upgrade";- proxy_set_header X-Forwarded-Proto $scheme;-}-```--### Data not persisting after restart--**Solution:** Ensure you're mounting the data directory:--```bash--v $(pwd)/data:/app/data-```--### HuggingFace models fail to download (restricted networks)--**Solution:** Add HuggingFace configuration to your `.env`:--```bash-# Use a mirror endpoint-HF_ENDPOINT=https://your-hf-mirror.example.com--# Or force offline mode (requires pre-cached models)-HF_HUB_OFFLINE=1-```-------**Next Step:** [Make Contribution โ](/contribution)--<style>-.method-tabs {- background: var(--vp-c-bg-soft);- border: 1px solid var(--vp-c-border);- border-radius: 12px;- padding: 20px;- margin: 16px 0;-}--.method-tabs h3 {- margin-top: 0;- padding-top: 0;- border-top: none;-}-</style>diff --git a/docs/guide/local-start.md b/docs/guide/local-start.mddeleted file mode 100644index 9d010a31e..000000000--- a/docs/guide/local-start.md+++ /dev/null@@ -1,61 +0,0 @@-# Local Start--DeepTutor now has a single local onboarding flow.--## Recommended flow--1. Clone the repository.-2. Activate a Python 3.11+ environment.-3. Install from source:--```bash-pip install -e .-pip install ".[server]"-pip install ".[math-animator]" # optional-```--4. Run:--```bash-python scripts/start_tour.py-```--The tour runs directly in the terminal and asks whether you want `Web` or `CLI` guidance.--Both flows end by writing a clean project-root `.env`. Runtime behavior config is loaded only from:--- `data/user/settings/main.yaml`-- `data/user/settings/agents.yaml`-- `data/user/settings/interface.json`--## What the tour does--- chooses the frontend and backend ports DeepTutor will keep using-- installs the selected dependency profile-- collects LLM, embedding, and optional search settings-- lets you test LLM and embedding before finalizing-- writes `.env` and clears any stale temporary `data/user/settings/env.json`--## Start the app after onboarding--```bash-python scripts/start_web.py-```--This launcher reads the project-root `.env`, starts the FastAPI backend, and injects `NEXT_PUBLIC_API_BASE` into the frontend process automatically.--## CLI-only usage--If you only want the terminal workflow, choose `CLI` inside `start_tour.py`. After that, common commands remain:--```bash-deeptutor chat-deeptutor kb list-deeptutor serve --port 8001-```--## Notes--- `config/` is no longer used at runtime.-- `web/.env.local` is no longer part of the supported local setup flow.-- TTS settings are no longer part of the official configuration surface.diff --git a/docs/guide/pre-config.md b/docs/guide/pre-config.mddeleted file mode 100644index 431cd6207..000000000--- a/docs/guide/pre-config.md+++ /dev/null@@ -1,193 +0,0 @@-# Pre-Configuration--Before starting DeepTutor, you need to complete the following setup steps.--## 1. Clone Repository--```bash-git clone https://github.com/HKUDS/DeepTutor.git-cd DeepTutor-```--## 2. Environment Variables Setup--Create your `.env` file from the template:--```bash-cp .env.example .env-```--Then edit the `.env` file with your API keys:--```bash-# ============================================================================-# Server Configuration-# ============================================================================-BACKEND_PORT=8001 # Backend API port-FRONTEND_PORT=3782 # Frontend web port--# For remote/LAN access - set to your server's IP address-# NEXT_PUBLIC_API_BASE=http://192.168.1.100:8001--# ============================================================================-# LLM (Large Language Model) Configuration - Required-# ============================================================================-LLM_BINDING=openai # Provider: openai, anthropic, azure_openai, ollama, etc.-LLM_MODEL=gpt-4o # Model name: gpt-4o, deepseek-chat, claude-3-5-sonnet, etc.-LLM_HOST=https://api.openai.com/v1 # API endpoint URL-LLM_API_KEY=your_api_key # Your LLM API key--# ============================================================================-# Embedding Model Configuration - Required for Knowledge Base-# ============================================================================-EMBEDDING_BINDING=openai # Provider type-EMBEDDING_MODEL=text-embedding-3-large # Embedding model name-EMBEDDING_DIMENSION=3072 # Must match model dimensions-EMBEDDING_HOST=https://api.openai.com/v1 # API endpoint-EMBEDDING_API_KEY=your_api_key # Embedding API key--# ============================================================================-# Web Search Configuration - Optional-# ============================================================================-SEARCH_PROVIDER=perplexity # Options: perplexity, tavily, serper, jina, exa, baidu-SEARCH_API_KEY=your_search_api_key # API key for search provider-```--### Environment Variables Reference--| Variable | Required | Description |-|:---|:---:|:---|-| `LLM_MODEL` | **Yes** | Model name (e.g., `gpt-4o`, `deepseek-chat`) |-| `LLM_API_KEY` | **Yes** | Your LLM API key |-| `LLM_HOST` | **Yes** | API endpoint URL |-| `EMBEDDING_MODEL` | **Yes** | Embedding model name |-| `EMBEDDING_DIMENSION` | **Yes** | Must match model output dimensions |-| `EMBEDDING_API_KEY` | **Yes** | Embedding API key |-| `EMBEDDING_HOST` | **Yes** | Embedding API endpoint |-| `BACKEND_PORT` | No | Backend port (default: `8001`) |-| `FRONTEND_PORT` | No | Frontend port (default: `3782`) |-| `NEXT_PUBLIC_API_BASE` | No | Set for remote/LAN access |-| `SEARCH_PROVIDER` | No | Web search provider |-| `SEARCH_API_KEY` | No | Search API key |--### Supported LLM Providers--| Provider | `LLM_BINDING` Value | Notes |-|:---------|:--------------------|:------|-| OpenAI | `openai` | GPT-4o, GPT-4, GPT-3.5 |-| Anthropic | `anthropic` | Claude 3.5, Claude 3 |-| Azure OpenAI | `azure_openai` | Enterprise deployments |-| Ollama | `ollama` | Local models |-| DeepSeek | `deepseek` | DeepSeek-V3, DeepSeek-R1 |-| Groq | `groq` | Fast inference |-| OpenRouter | `openrouter` | Multi-model gateway |-| Google Gemini | `gemini` | OpenAI-compatible mode |--### Supported Embedding Providers--| Provider | `EMBEDDING_BINDING` Value | Notes |-|:---------|:--------------------------|:------|-| OpenAI | `openai` | text-embedding-3-large/small |-| Azure OpenAI | `azure_openai` | Enterprise deployments |-| Jina AI | `jina` | jina-embeddings-v3 |-| Cohere | `cohere` | embed-v3 series |-| Ollama | `ollama` | Local embedding models |-| LM Studio | `lm_studio` | Local inference server |-| HuggingFace | `huggingface` | OpenAI-compatible endpoints |--## 3. Configuration Files--DeepTutor uses two YAML configuration files for customization:--### `config/agents.yaml` - Agent Parameters--This file controls LLM parameters for each module:--```yaml-# Solve Module - Problem solving agents-solve:- temperature: 0.3- max_tokens: 8192--# Research Module - Deep research agents-research:- temperature: 0.5- max_tokens: 12000--# Question Module - Question generation agents-question:- temperature: 0.7- max_tokens: 4096--# Guide Module - Learning guidance agents-guide:- temperature: 0.5- max_tokens: 16192--# CoWriter Module - Collaborative writing agents-co_writer:- temperature: 0.7- max_tokens: 4096-```--### `data/user/settings/main.yaml` - System Settings--This file controls paths, tools, and module-specific settings:--```yaml-# System language-system:- language: en--# Data paths-paths:- user_data_dir: ./data/user- knowledge_bases_dir: ./data/knowledge_bases--# Tool configuration-tools:- rag_tool:- kb_base_dir: ./data/knowledge_bases- default_kb: ai_textbook- run_code:- workspace: ./data/user/workspace/chat/_detached_code_execution- web_search:- enabled: true--# Module-specific settings-research:- researching:- execution_mode: series # "series" or "parallel"- max_iterations: 5- enable_rag_hybrid: true- enable_paper_search: true- enable_web_search: true-```--> **Tip:** For most users, the default configuration works well. Only modify these files if you need specific customizations.--## 4. Knowledge Base Preparation (Optional)--You can use our pre-built demo knowledge bases to get started quickly.--### Download Demo Knowledge Bases--Download from [Google Drive](https://drive.google.com/drive/folders/1iWwfZXiTuQKQqUYb5fGDZjLCeTUP6DA6?usp=sharing) and extract into the `data/` directory.--::: info Important-The demo knowledge bases use `text-embedding-3-large` with `dimensions = 3072`. Make sure your embedding model has matching dimensions.-:::--### Create Your Own Knowledge Base--After launching DeepTutor:--1. Navigate to `http://localhost:3782/knowledge`-2. Click **"New Knowledge Base"**-3. Enter a unique name-4. Upload PDF/TXT/MD files-5. Monitor progress in the terminal-------**Next Step:** [Data Preparation โ](/guide/data-preparation)diff --git a/docs/guide/troubleshooting.md b/docs/guide/troubleshooting.mddeleted file mode 100644index b422d9178..000000000--- a/docs/guide/troubleshooting.md+++ /dev/null@@ -1,150 +0,0 @@-# โ FAQ--## Backend fails to start?--**Checklist**-- Confirm Python version >= 3.11-- Confirm all dependencies installed: `pip install -r requirements.txt`-- Check if port 8001 is in use (configurable in `config/main.yaml`)-- Check `.env` file configuration--**Solutions**-- **Change port**: Edit `config/main.yaml` server.backend_port-- **Check logs**: Review terminal error messages-------## Port occupied after Ctrl+C?--**Problem**--After pressing Ctrl+C during a running task (e.g., deep research), restarting shows "port already in use" error.--**Cause**--Ctrl+C sometimes only terminates the frontend process while the backend continues running in the background.--**Solution**--```bash-# macOS/Linux-kill -9 $(lsof -t -i :8001)--# Windows-netstat -ano | findstr :8001-taskkill /PID <PID> /F-```--Then restart the service with `python scripts/start_web.py`.-------## npm: command not found error?--**Problem**--Running `scripts/start_web.py` shows `npm: command not found` or exit status 127.--**Checklist**-- Check if npm is installed: `npm --version`-- Check if Node.js is installed: `node --version`-- Confirm conda environment is activated (if using conda)--**Solutions**-```bash-# Option A: Using Conda (Recommended)-conda install -c conda-forge nodejs--# Option B: Using Official Installer-# Download from https://nodejs.org/--# Option C: Using nvm-nvm install 18-nvm use 18-```--**Verify Installation**-```bash-node --version # Should show v18.x.x or higher-npm --version # Should show version number-```-------## Frontend cannot connect to backend?--**Checklist**-- Confirm backend is running (visit `http://localhost:8001/docs`)-- Check browser console for error messages--**Solution**--Create `.env.local` in `web` directory:--```bash-NEXT_PUBLIC_API_BASE=http://localhost:8001-```-------## WebSocket connection fails?--**Checklist**-- Confirm backend is running-- Check firewall settings-- Confirm WebSocket URL is correct--**Solution**-- **Check backend logs**-- **Confirm URL format**: `ws://localhost:8001/api/v1/...`-------## Where are module outputs stored?--| Module | Output Path |-|:---:|:---|-| Solve | `data/user/solve/solve_YYYYMMDD_HHMMSS/` |-| Question | `data/user/question/question_YYYYMMDD_HHMMSS/` |-| Research | `data/user/research/reports/` |-| Co-Writer | `data/user/co-writer/` |-| Notebook | `data/user/notebook/` |-| Guide | `data/user/guide/session_{session_id}.json` |-| Logs | `data/user/logs/` |-------## How to add a new knowledge base?--**Web Interface**-1. Visit `http://localhost:3782/knowledge`-2. Click "New Knowledge Base"-3. Enter knowledge base name-4. Upload PDF/TXT/MD documents-5. System will process documents in background--**CLI**-```bash-deeptutor kb create <kb_name> --doc <pdf_path>-```-------## How to incrementally add documents to existing KB?--**CLI (Recommended)**-```bash-deeptutor kb add <kb_name> --doc <new_document.pdf>-```--**Benefits**-- Only processes new documents, saves time and API costs-- Automatically merges with existing vector index-- Preserves all existing data-------## Numbered items extraction / uvloop issue--Numbered items extraction has been removed in llamaindex-only mode.-If you previously encountered `uvloop.Loop` errors from that flow, no action is required now.diff --git a/docs/index.md b/docs/index.mddeleted file mode 100644index 038e8f15d..000000000--- a/docs/index.md+++ /dev/null@@ -1,74 +0,0 @@-----layout: home--hero:- name: "DeepTutor"- text: "Your AI Learning Companion"- tagline: Transform any document into an interactive learning experience with multi-agent intelligence- image:- src: /logo.png- alt: DeepTutor- actions:- - theme: brand- text: Get Started โ- link: /guide/pre-config- - theme: alt- text: GitHub- link: https://github.com/HKUDS/DeepTutor--features:- - icon: ๐- title: Massive Document Q&A- details: Upload textbooks, papers, and manuals. Build AI-powered knowledge repositories with RAG and knowledge graph integration.- - icon: ๐ง- title: Smart Problem Solving- details: Dual-loop reasoning architecture with multi-agent collaboration, delivering step-by-step solutions with precise citations.- - icon: ๐ฏ- title: Practice Generator- details: Generate custom quizzes based on your knowledge base, or mimic real exam styles for authentic practice.- - icon: ๐- title: Guided Learning- details: Personalized learning paths with interactive visualizations and adaptive explanations.- - icon: ๐ฌ- title: Deep Research- details: Systematic topic exploration with web search, paper retrieval, and literature synthesis.------## Why DeepTutor?--- **Deep Understanding** โ Not just answers, but guided learning journeys with visual explanations-- **Multi-Modal Support** โ PDF, LaTeX, images, code execution, and more-- **Knowledge Retrieval** โ Unified llamaindex-based retrieval for better comprehension-- **All-in-One Platform** โ Problem solving, question generation, research, and guided learning in one place--<style>-:root {- --vp-home-hero-name-color: transparent;- --vp-home-hero-name-background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);- --vp-home-hero-image-background-image: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 50%, rgba(240, 147, 251, 0.15) 100%);- --vp-home-hero-image-filter: blur(72px);-}--.dark {- --vp-home-hero-image-background-image: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 50%, rgba(240, 147, 251, 0.1) 100%);-}--.VPHero .name {- font-size: 4.5rem !important;- line-height: 1.1 !important;-}--.VPHero .text {- font-size: 2.4rem !important;- font-weight: 600 !important;-}--@media (max-width: 768px) {- .VPHero .name {- font-size: 3rem !important;- }- .VPHero .text {- font-size: 1.8rem !important;- }-}-</style>diff --git a/docs/package-lock.json b/docs/package-lock.jsondeleted file mode 100644index 7634fc541..000000000--- a/docs/package-lock.json+++ /dev/null@@ -1,2572 +0,0 @@-{- "name": "opentutor-docs",- "version": "1.0.0",- "lockfileVersion": 3,- "requires": true,- "packages": {- "": {- "name": "opentutor-docs",- "version": "1.0.0",- "devDependencies": {- "vitepress": "^1.6.4"- }- },- "node_modules/@algolia/abtesting": {- "version": "1.12.2",- "resolved": "https://registry.npmjs.org/@algolia/abtesting/-/abtesting-1.12.2.tgz",- "integrity": "sha512-oWknd6wpfNrmRcH0vzed3UPX0i17o4kYLM5OMITyMVM2xLgaRbIafoxL0e8mcrNNb0iORCJA0evnNDKRYth5WQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@algolia/client-common": "5.46.2",- "@algolia/requester-browser-xhr": "5.46.2",- "@algolia/requester-fetch": "5.46.2",- "@algolia/requester-node-http": "5.46.2"- },- "engines": {- "node": ">= 14.0.0"- }- },- "node_modules/@algolia/autocomplete-core": {- "version": "1.17.7",- "resolved": "https://registry.npmjs.org/@algolia/autocomplete-core/-/autocomplete-core-1.17.7.tgz",- "integrity": "sha512-BjiPOW6ks90UKl7TwMv7oNQMnzU+t/wk9mgIDi6b1tXpUek7MW0lbNOUHpvam9pe3lVCf4xPFT+lK7s+e+fs7Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@algolia/autocomplete-plugin-algolia-insights": "1.17.7",- "@algolia/autocomplete-shared": "1.17.7"- }- },- "node_modules/@algolia/autocomplete-plugin-algolia-insights": {- "version": "1.17.7",- "resolved": "https://registry.npmjs.org/@algolia/autocomplete-plugin-algolia-insights/-/autocomplete-plugin-algolia-insights-1.17.7.tgz",- "integrity": "sha512-Jca5Ude6yUOuyzjnz57og7Et3aXjbwCSDf/8onLHSQgw1qW3ALl9mrMWaXb5FmPVkV3EtkD2F/+NkT6VHyPu9A==",- "dev": true,- "license": "MIT",- "dependencies": {- "@algolia/autocomplete-shared": "1.17.7"- },- "peerDependencies": {- "search-insights": ">= 1 < 3"- }- },- "node_modules/@algolia/autocomplete-preset-algolia": {- "version": "1.17.7",- "resolved": "https://registry.npmjs.org/@algolia/autocomplete-preset-algolia/-/autocomplete-preset-algolia-1.17.7.tgz",- "integrity": "sha512-ggOQ950+nwbWROq2MOCIL71RE0DdQZsceqrg32UqnhDz8FlO9rL8ONHNsI2R1MH0tkgVIDKI/D0sMiUchsFdWA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@algolia/autocomplete-shared": "1.17.7"- },- "peerDependencies": {- "@algolia/client-search": ">= 4.9.1 < 6",- "algoliasearch": ">= 4.9.1 < 6"- }- },- "node_modules/@algolia/autocomplete-shared": {- "version": "1.17.7",- "resolved": "https://registry.npmjs.org/@algolia/autocomplete-shared/-/autocomplete-shared-1.17.7.tgz",- "integrity": "sha512-o/1Vurr42U/qskRSuhBH+VKxMvkkUVTLU6WZQr+L5lGZZLYWyhdzWjW0iGXY7EkwRTjBqvN2EsR81yCTGV/kmg==",- "dev": true,- "license": "MIT",- "peerDependencies": {- "@algolia/client-search": ">= 4.9.1 < 6",- "algoliasearch": ">= 4.9.1 < 6"- }- },- "node_modules/@algolia/client-abtesting": {- "version": "5.46.2",- "resolved": "https://registry.npmjs.org/@algolia/client-abtesting/-/client-abtesting-5.46.2.tgz",- "integrity": "sha512-oRSUHbylGIuxrlzdPA8FPJuwrLLRavOhAmFGgdAvMcX47XsyM+IOGa9tc7/K5SPvBqn4nhppOCEz7BrzOPWc4A==",- "dev": true,- "license": "MIT",- "dependencies": {- "@algolia/client-common": "5.46.2",- "@algolia/requester-browser-xhr": "5.46.2",- "@algolia/requester-fetch": "5.46.2",- "@algolia/requester-node-http": "5.46.2"- },- "engines": {- "node": ">= 14.0.0"- }- },- "node_modules/@algolia/client-analytics": {- "version": "5.46.2",- "resolved": "https://registry.npmjs.org/@algolia/client-analytics/-/client-analytics-5.46.2.tgz",- "integrity": "sha512-EPBN2Oruw0maWOF4OgGPfioTvd+gmiNwx0HmD9IgmlS+l75DatcBkKOPNJN+0z3wBQWUO5oq602ATxIfmTQ8bA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@algolia/client-common": "5.46.2",- "@algolia/requester-browser-xhr": "5.46.2",- "@algolia/requester-fetch": "5.46.2",- "@algolia/requester-node-http": "5.46.2"- },- "engines": {- "node": ">= 14.0.0"- }- },- "node_modules/@algolia/client-common": {- "version": "5.46.2",- "resolved": "https://registry.npmjs.org/@algolia/client-common/-/client-common-5.46.2.tgz",- "integrity": "sha512-Hj8gswSJNKZ0oyd0wWissqyasm+wTz1oIsv5ZmLarzOZAp3vFEda8bpDQ8PUhO+DfkbiLyVnAxsPe4cGzWtqkg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 14.0.0"- }- },- "node_modules/@algolia/client-insights": {- "version": "5.46.2",- "resolved": "https://registry.npmjs.org/@algolia/client-insights/-/client-insights-5.46.2.tgz",- "integrity": "sha512-6dBZko2jt8FmQcHCbmNLB0kCV079Mx/DJcySTL3wirgDBUH7xhY1pOuUTLMiGkqM5D8moVZTvTdRKZUJRkrwBA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@algolia/client-common": "5.46.2",- "@algolia/requester-browser-xhr": "5.46.2",- "@algolia/requester-fetch": "5.46.2",- "@algolia/requester-node-http": "5.46.2"- },- "engines": {- "node": ">= 14.0.0"- }- },- "node_modules/@algolia/client-personalization": {- "version": "5.46.2",- "resolved": "https://registry.npmjs.org/@algolia/client-personalization/-/client-personalization-5.46.2.tgz",- "integrity": "sha512-1waE2Uqh/PHNeDXGn/PM/WrmYOBiUGSVxAWqiJIj73jqPqvfzZgzdakHscIVaDl6Cp+j5dwjsZ5LCgaUr6DtmA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@algolia/client-common": "5.46.2",- "@algolia/requester-browser-xhr": "5.46.2",- "@algolia/requester-fetch": "5.46.2",- "@algolia/requester-node-http": "5.46.2"- },- "engines": {- "node": ">= 14.0.0"- }- },- "node_modules/@algolia/client-query-suggestions": {- "version": "5.46.2",- "resolved": "https://registry.npmjs.org/@algolia/client-query-suggestions/-/client-query-suggestions-5.46.2.tgz",- "integrity": "sha512-EgOzTZkyDcNL6DV0V/24+oBJ+hKo0wNgyrOX/mePBM9bc9huHxIY2352sXmoZ648JXXY2x//V1kropF/Spx83w==",- "dev": true,- "license": "MIT",- "dependencies": {- "@algolia/client-common": "5.46.2",- "@algolia/requester-browser-xhr": "5.46.2",- "@algolia/requester-fetch": "5.46.2",- "@algolia/requester-node-http": "5.46.2"- },- "engines": {- "node": ">= 14.0.0"- }- },- "node_modules/@algolia/client-search": {- "version": "5.46.2",- "resolved": "https://registry.npmjs.org/@algolia/client-search/-/client-search-5.46.2.tgz",- "integrity": "sha512-ZsOJqu4HOG5BlvIFnMU0YKjQ9ZI6r3C31dg2jk5kMWPSdhJpYL9xa5hEe7aieE+707dXeMI4ej3diy6mXdZpgA==",- "dev": true,- "license": "MIT",- "peer": true,- "dependencies": {- "@algolia/client-common": "5.46.2",- "@algolia/requester-browser-xhr": "5.46.2",- "@algolia/requester-fetch": "5.46.2",- "@algolia/requester-node-http": "5.46.2"- },- "engines": {- "node": ">= 14.0.0"- }- },- "node_modules/@algolia/ingestion": {- "version": "1.46.2",- "resolved": "https://registry.npmjs.org/@algolia/ingestion/-/ingestion-1.46.2.tgz",- "integrity": "sha512-1Uw2OslTWiOFDtt83y0bGiErJYy5MizadV0nHnOoHFWMoDqWW0kQoMFI65pXqRSkVvit5zjXSLik2xMiyQJDWQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@algolia/client-common": "5.46.2",- "@algolia/requester-browser-xhr": "5.46.2",- "@algolia/requester-fetch": "5.46.2",- "@algolia/requester-node-http": "5.46.2"- },- "engines": {- "node": ">= 14.0.0"- }- },- "node_modules/@algolia/monitoring": {- "version": "1.46.2",- "resolved": "https://registry.npmjs.org/@algolia/monitoring/-/monitoring-1.46.2.tgz",- "integrity": "sha512-xk9f+DPtNcddWN6E7n1hyNNsATBCHIqAvVGG2EAGHJc4AFYL18uM/kMTiOKXE/LKDPyy1JhIerrh9oYb7RBrgw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@algolia/client-common": "5.46.2",- "@algolia/requester-browser-xhr": "5.46.2",- "@algolia/requester-fetch": "5.46.2",- "@algolia/requester-node-http": "5.46.2"- },- "engines": {- "node": ">= 14.0.0"- }- },- "node_modules/@algolia/recommend": {- "version": "5.46.2",- "resolved": "https://registry.npmjs.org/@algolia/recommend/-/recommend-5.46.2.tgz",- "integrity": "sha512-NApbTPj9LxGzNw4dYnZmj2BoXiAc8NmbbH6qBNzQgXklGklt/xldTvu+FACN6ltFsTzoNU6j2mWNlHQTKGC5+Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@algolia/client-common": "5.46.2",- "@algolia/requester-browser-xhr": "5.46.2",- "@algolia/requester-fetch": "5.46.2",- "@algolia/requester-node-http": "5.46.2"- },- "engines": {- "node": ">= 14.0.0"- }- },- "node_modules/@algolia/requester-browser-xhr": {- "version": "5.46.2",- "resolved": "https://registry.npmjs.org/@algolia/requester-browser-xhr/-/requester-browser-xhr-5.46.2.tgz",- "integrity": "sha512-ekotpCwpSp033DIIrsTpYlGUCF6momkgupRV/FA3m62SreTSZUKjgK6VTNyG7TtYfq9YFm/pnh65bATP/ZWJEg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@algolia/client-common": "5.46.2"- },- "engines": {- "node": ">= 14.0.0"- }- },- "node_modules/@algolia/requester-fetch": {- "version": "5.46.2",- "resolved": "https://registry.npmjs.org/@algolia/requester-fetch/-/requester-fetch-5.46.2.tgz",- "integrity": "sha512-gKE+ZFi/6y7saTr34wS0SqYFDcjHW4Wminv8PDZEi0/mE99+hSrbKgJWxo2ztb5eqGirQTgIh1AMVacGGWM1iw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@algolia/client-common": "5.46.2"- },- "engines": {- "node": ">= 14.0.0"- }- },- "node_modules/@algolia/requester-node-http": {- "version": "5.46.2",- "resolved": "https://registry.npmjs.org/@algolia/requester-node-http/-/requester-node-http-5.46.2.tgz",- "integrity": "sha512-ciPihkletp7ttweJ8Zt+GukSVLp2ANJHU+9ttiSxsJZThXc4Y2yJ8HGVWesW5jN1zrsZsezN71KrMx/iZsOYpg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@algolia/client-common": "5.46.2"- },- "engines": {- "node": ">= 14.0.0"- }- },- "node_modules/@babel/helper-string-parser": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",- "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-validator-identifier": {- "version": "7.28.5",- "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",- "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/parser": {- "version": "7.28.5",- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.5.tgz",- "integrity": "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/types": "^7.28.5"- },- "bin": {- "parser": "bin/babel-parser.js"- },- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/@babel/types": {- "version": "7.28.5",- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.5.tgz",- "integrity": "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-string-parser": "^7.27.1",- "@babel/helper-validator-identifier": "^7.28.5"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@docsearch/css": {- "version": "3.8.2",- "resolved": "https://registry.npmjs.org/@docsearch/css/-/css-3.8.2.tgz",- "integrity": "sha512-y05ayQFyUmCXze79+56v/4HpycYF3uFqB78pLPrSV5ZKAlDuIAAJNhaRi8tTdRNXh05yxX/TyNnzD6LwSM89vQ==",- "dev": true,- "license": "MIT"- },- "node_modules/@docsearch/js": {- "version": "3.8.2",- "resolved": "https://registry.npmjs.org/@docsearch/js/-/js-3.8.2.tgz",- "integrity": "sha512-Q5wY66qHn0SwA7Taa0aDbHiJvaFJLOJyHmooQ7y8hlwwQLQ/5WwCcoX0g7ii04Qi2DJlHsd0XXzJ8Ypw9+9YmQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@docsearch/react": "3.8.2",- "preact": "^10.0.0"- }- },- "node_modules/@docsearch/react": {- "version": "3.8.2",- "resolved": "https://registry.npmjs.org/@docsearch/react/-/react-3.8.2.tgz",- "integrity": "sha512-xCRrJQlTt8N9GU0DG4ptwHRkfnSnD/YpdeaXe02iKfqs97TkZJv60yE+1eq/tjPcVnTW8dP5qLP7itifFVV5eg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@algolia/autocomplete-core": "1.17.7",- "@algolia/autocomplete-preset-algolia": "1.17.7",- "@docsearch/css": "3.8.2",- "algoliasearch": "^5.14.2"- },- "peerDependencies": {- "@types/react": ">= 16.8.0 < 19.0.0",- "react": ">= 16.8.0 < 19.0.0",- "react-dom": ">= 16.8.0 < 19.0.0",- "search-insights": ">= 1 < 3"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- },- "react": {- "optional": true- },- "react-dom": {- "optional": true- },- "search-insights": {- "optional": true- }- }- },- "node_modules/@esbuild/aix-ppc64": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz",- "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "aix"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/android-arm": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz",- "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/android-arm64": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz",- "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/android-x64": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz",- "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/darwin-arm64": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz",- "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/darwin-x64": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz",- "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/freebsd-arm64": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz",- "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/freebsd-x64": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz",- "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-arm": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz",- "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-arm64": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz",- "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-ia32": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz",- "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-loong64": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz",- "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==",- "cpu": [- "loong64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-mips64el": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz",- "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==",- "cpu": [- "mips64el"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-ppc64": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz",- "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-riscv64": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz",- "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-s390x": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz",- "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==",- "cpu": [- "s390x"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-x64": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz",- "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/netbsd-arm64": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz",- "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "netbsd"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/netbsd-x64": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz",- "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "netbsd"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/openbsd-arm64": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz",- "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openbsd"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/openbsd-x64": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz",- "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openbsd"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/openharmony-arm64": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz",- "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openharmony"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/sunos-x64": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz",- "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "sunos"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/win32-arm64": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz",- "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/win32-ia32": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz",- "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/win32-x64": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz",- "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@iconify-json/simple-icons": {- "version": "1.2.65",- "resolved": "https://registry.npmjs.org/@iconify-json/simple-icons/-/simple-icons-1.2.65.tgz",- "integrity": "sha512-v/O0UeqrDz6ASuRVE5g2Puo5aWyej4M/CxX6WYDBARgswwxK0mp3VQbGgPFEAAUU9QN02IjTgjMuO021gpWf2w==",- "dev": true,- "license": "CC0-1.0",- "dependencies": {- "@iconify/types": "*"- }- },- "node_modules/@iconify/types": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/@iconify/types/-/types-2.0.0.tgz",- "integrity": "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==",- "dev": true,- "license": "MIT"- },- "node_modules/@jridgewell/sourcemap-codec": {- "version": "1.5.5",- "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",- "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",- "dev": true,- "license": "MIT"- },- "node_modules/@rollup/rollup-android-arm-eabi": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.55.1.tgz",- "integrity": "sha512-9R0DM/ykwfGIlNu6+2U09ga0WXeZ9MRC2Ter8jnz8415VbuIykVuc6bhdrbORFZANDmTDvq26mJrEVTl8TdnDg==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ]- },- "node_modules/@rollup/rollup-android-arm64": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.55.1.tgz",- "integrity": "sha512-eFZCb1YUqhTysgW3sj/55du5cG57S7UTNtdMjCW7LwVcj3dTTcowCsC8p7uBdzKsZYa8J7IDE8lhMI+HX1vQvg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ]- },- "node_modules/@rollup/rollup-darwin-arm64": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.55.1.tgz",- "integrity": "sha512-p3grE2PHcQm2e8PSGZdzIhCKbMCw/xi9XvMPErPhwO17vxtvCN5FEA2mSLgmKlCjHGMQTP6phuQTYWUnKewwGg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ]- },- "node_modules/@rollup/rollup-darwin-x64": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.55.1.tgz",- "integrity": "sha512-rDUjG25C9qoTm+e02Esi+aqTKSBYwVTaoS1wxcN47/Luqef57Vgp96xNANwt5npq9GDxsH7kXxNkJVEsWEOEaQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ]- },- "node_modules/@rollup/rollup-freebsd-arm64": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.55.1.tgz",- "integrity": "sha512-+JiU7Jbp5cdxekIgdte0jfcu5oqw4GCKr6i3PJTlXTCU5H5Fvtkpbs4XJHRmWNXF+hKmn4v7ogI5OQPaupJgOg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ]- },- "node_modules/@rollup/rollup-freebsd-x64": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.55.1.tgz",- "integrity": "sha512-V5xC1tOVWtLLmr3YUk2f6EJK4qksksOYiz/TCsFHu/R+woubcLWdC9nZQmwjOAbmExBIVKsm1/wKmEy4z4u4Bw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ]- },- "node_modules/@rollup/rollup-linux-arm-gnueabihf": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.55.1.tgz",- "integrity": "sha512-Rn3n+FUk2J5VWx+ywrG/HGPTD9jXNbicRtTM11e/uorplArnXZYsVifnPPqNNP5BsO3roI4n8332ukpY/zN7rQ==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-arm-musleabihf": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.55.1.tgz",- "integrity": "sha512-grPNWydeKtc1aEdrJDWk4opD7nFtQbMmV7769hiAaYyUKCT1faPRm2av8CX1YJsZ4TLAZcg9gTR1KvEzoLjXkg==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-arm64-gnu": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.55.1.tgz",- "integrity": "sha512-a59mwd1k6x8tXKcUxSyISiquLwB5pX+fJW9TkWU46lCqD/GRDe9uDN31jrMmVP3feI3mhAdvcCClhV8V5MhJFQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-arm64-musl": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.55.1.tgz",- "integrity": "sha512-puS1MEgWX5GsHSoiAsF0TYrpomdvkaXm0CofIMG5uVkP6IBV+ZO9xhC5YEN49nsgYo1DuuMquF9+7EDBVYu4uA==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-loong64-gnu": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.55.1.tgz",- "integrity": "sha512-r3Wv40in+lTsULSb6nnoudVbARdOwb2u5fpeoOAZjFLznp6tDU8kd+GTHmJoqZ9lt6/Sys33KdIHUaQihFcu7g==",- "cpu": [- "loong64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-loong64-musl": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.55.1.tgz",- "integrity": "sha512-MR8c0+UxAlB22Fq4R+aQSPBayvYa3+9DrwG/i1TKQXFYEaoW3B5b/rkSRIypcZDdWjWnpcvxbNaAJDcSbJU3Lw==",- "cpu": [- "loong64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-ppc64-gnu": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.55.1.tgz",- "integrity": "sha512-3KhoECe1BRlSYpMTeVrD4sh2Pw2xgt4jzNSZIIPLFEsnQn9gAnZagW9+VqDqAHgm1Xc77LzJOo2LdigS5qZ+gw==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-ppc64-musl": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.55.1.tgz",- "integrity": "sha512-ziR1OuZx0vdYZZ30vueNZTg73alF59DicYrPViG0NEgDVN8/Jl87zkAPu4u6VjZST2llgEUjaiNl9JM6HH1Vdw==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-riscv64-gnu": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.55.1.tgz",- "integrity": "sha512-uW0Y12ih2XJRERZ4jAfKamTyIHVMPQnTZcQjme2HMVDAHY4amf5u414OqNYC+x+LzRdRcnIG1YodLrrtA8xsxw==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-riscv64-musl": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.55.1.tgz",- "integrity": "sha512-u9yZ0jUkOED1BFrqu3BwMQoixvGHGZ+JhJNkNKY/hyoEgOwlqKb62qu+7UjbPSHYjiVy8kKJHvXKv5coH4wDeg==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-s390x-gnu": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.55.1.tgz",- "integrity": "sha512-/0PenBCmqM4ZUd0190j7J0UsQ/1nsi735iPRakO8iPciE7BQ495Y6msPzaOmvx0/pn+eJVVlZrNrSh4WSYLxNg==",- "cpu": [- "s390x"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-x64-gnu": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.55.1.tgz",- "integrity": "sha512-a8G4wiQxQG2BAvo+gU6XrReRRqj+pLS2NGXKm8io19goR+K8lw269eTrPkSdDTALwMmJp4th2Uh0D8J9bEV1vg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-x64-musl": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.55.1.tgz",- "integrity": "sha512-bD+zjpFrMpP/hqkfEcnjXWHMw5BIghGisOKPj+2NaNDuVT+8Ds4mPf3XcPHuat1tz89WRL+1wbcxKY3WSbiT7w==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-openbsd-x64": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.55.1.tgz",- "integrity": "sha512-eLXw0dOiqE4QmvikfQ6yjgkg/xDM+MdU9YJuP4ySTibXU0oAvnEWXt7UDJmD4UkYialMfOGFPJnIHSe/kdzPxg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openbsd"- ]- },- "node_modules/@rollup/rollup-openharmony-arm64": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.55.1.tgz",- "integrity": "sha512-xzm44KgEP11te3S2HCSyYf5zIzWmx3n8HDCc7EE59+lTcswEWNpvMLfd9uJvVX8LCg9QWG67Xt75AuHn4vgsXw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openharmony"- ]- },- "node_modules/@rollup/rollup-win32-arm64-msvc": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.55.1.tgz",- "integrity": "sha512-yR6Bl3tMC/gBok5cz/Qi0xYnVbIxGx5Fcf/ca0eB6/6JwOY+SRUcJfI0OpeTpPls7f194as62thCt/2BjxYN8g==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@rollup/rollup-win32-ia32-msvc": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.55.1.tgz",- "integrity": "sha512-3fZBidchE0eY0oFZBnekYCfg+5wAB0mbpCBuofh5mZuzIU/4jIVkbESmd2dOsFNS78b53CYv3OAtwqkZZmU5nA==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@rollup/rollup-win32-x64-gnu": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.55.1.tgz",- "integrity": "sha512-xGGY5pXj69IxKb4yv/POoocPy/qmEGhimy/FoTpTSVju3FYXUQQMFCaZZXJVidsmGxRioZAwpThl/4zX41gRKg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@rollup/rollup-win32-x64-msvc": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.55.1.tgz",- "integrity": "sha512-SPEpaL6DX4rmcXtnhdrQYgzQ5W2uW3SCJch88lB2zImhJRhIIK44fkUrgIV/Q8yUNfw5oyZ5vkeQsZLhCb06lw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@shikijs/core": {- "version": "2.5.0",- "resolved": "https://registry.npmjs.org/@shikijs/core/-/core-2.5.0.tgz",- "integrity": "sha512-uu/8RExTKtavlpH7XqnVYBrfBkUc20ngXiX9NSrBhOVZYv/7XQRKUyhtkeflY5QsxC0GbJThCerruZfsUaSldg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@shikijs/engine-javascript": "2.5.0",- "@shikijs/engine-oniguruma": "2.5.0",- "@shikijs/types": "2.5.0",- "@shikijs/vscode-textmate": "^10.0.2",- "@types/hast": "^3.0.4",- "hast-util-to-html": "^9.0.4"- }- },- "node_modules/@shikijs/engine-javascript": {- "version": "2.5.0",- "resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-2.5.0.tgz",- "integrity": "sha512-VjnOpnQf8WuCEZtNUdjjwGUbtAVKuZkVQ/5cHy/tojVVRIRtlWMYVjyWhxOmIq05AlSOv72z7hRNRGVBgQOl0w==",- "dev": true,- "license": "MIT",- "dependencies": {- "@shikijs/types": "2.5.0",- "@shikijs/vscode-textmate": "^10.0.2",- "oniguruma-to-es": "^3.1.0"- }- },- "node_modules/@shikijs/engine-oniguruma": {- "version": "2.5.0",- "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-2.5.0.tgz",- "integrity": "sha512-pGd1wRATzbo/uatrCIILlAdFVKdxImWJGQ5rFiB5VZi2ve5xj3Ax9jny8QvkaV93btQEwR/rSz5ERFpC5mKNIw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@shikijs/types": "2.5.0",- "@shikijs/vscode-textmate": "^10.0.2"- }- },- "node_modules/@shikijs/langs": {- "version": "2.5.0",- "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-2.5.0.tgz",- "integrity": "sha512-Qfrrt5OsNH5R+5tJ/3uYBBZv3SuGmnRPejV9IlIbFH3HTGLDlkqgHymAlzklVmKBjAaVmkPkyikAV/sQ1wSL+w==",- "dev": true,- "license": "MIT",- "dependencies": {- "@shikijs/types": "2.5.0"- }- },- "node_modules/@shikijs/themes": {- "version": "2.5.0",- "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-2.5.0.tgz",- "integrity": "sha512-wGrk+R8tJnO0VMzmUExHR+QdSaPUl/NKs+a4cQQRWyoc3YFbUzuLEi/KWK1hj+8BfHRKm2jNhhJck1dfstJpiw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@shikijs/types": "2.5.0"- }- },- "node_modules/@shikijs/transformers": {- "version": "2.5.0",- "resolved": "https://registry.npmjs.org/@shikijs/transformers/-/transformers-2.5.0.tgz",- "integrity": "sha512-SI494W5X60CaUwgi8u4q4m4s3YAFSxln3tzNjOSYqq54wlVgz0/NbbXEb3mdLbqMBztcmS7bVTaEd2w0qMmfeg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@shikijs/core": "2.5.0",- "@shikijs/types": "2.5.0"- }- },- "node_modules/@shikijs/types": {- "version": "2.5.0",- "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-2.5.0.tgz",- "integrity": "sha512-ygl5yhxki9ZLNuNpPitBWvcy9fsSKKaRuO4BAlMyagszQidxcpLAr0qiW/q43DtSIDxO6hEbtYLiFZNXO/hdGw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@shikijs/vscode-textmate": "^10.0.2",- "@types/hast": "^3.0.4"- }- },- "node_modules/@shikijs/vscode-textmate": {- "version": "10.0.2",- "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.0.2.tgz",- "integrity": "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/estree": {- "version": "1.0.8",- "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",- "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/hast": {- "version": "3.0.4",- "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz",- "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/unist": "*"- }- },- "node_modules/@types/linkify-it": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz",- "integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/markdown-it": {- "version": "14.1.2",- "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.1.2.tgz",- "integrity": "sha512-promo4eFwuiW+TfGxhi+0x3czqTYJkG8qB17ZUJiVF10Xm7NLVRSLUsfRTU/6h1e24VvRnXCx+hG7li58lkzog==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/linkify-it": "^5",- "@types/mdurl": "^2"- }- },- "node_modules/@types/mdast": {- "version": "4.0.4",- "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz",- "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/unist": "*"- }- },- "node_modules/@types/mdurl": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz",- "integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/unist": {- "version": "3.0.3",- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz",- "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/web-bluetooth": {- "version": "0.0.21",- "resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.21.tgz",- "integrity": "sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA==",- "dev": true,- "license": "MIT"- },- "node_modules/@ungap/structured-clone": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz",- "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==",- "dev": true,- "license": "ISC"- },- "node_modules/@vitejs/plugin-vue": {- "version": "5.2.4",- "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-5.2.4.tgz",- "integrity": "sha512-7Yx/SXSOcQq5HiiV3orevHUFn+pmMB4cgbEkDYgnkUWb0WfeQ/wa2yFv6D5ICiCQOVpjA7vYDXrC7AGO8yjDHA==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^18.0.0 || >=20.0.0"- },- "peerDependencies": {- "vite": "^5.0.0 || ^6.0.0",- "vue": "^3.2.25"- }- },- "node_modules/@vue/compiler-core": {- "version": "3.5.26",- "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.26.tgz",- "integrity": "sha512-vXyI5GMfuoBCnv5ucIT7jhHKl55Y477yxP6fc4eUswjP8FG3FFVFd41eNDArR+Uk3QKn2Z85NavjaxLxOC19/w==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/parser": "^7.28.5",- "@vue/shared": "3.5.26",- "entities": "^7.0.0",- "estree-walker": "^2.0.2",- "source-map-js": "^1.2.1"- }- },- "node_modules/@vue/compiler-dom": {- "version": "3.5.26",- "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.26.tgz",- "integrity": "sha512-y1Tcd3eXs834QjswshSilCBnKGeQjQXB6PqFn/1nxcQw4pmG42G8lwz+FZPAZAby6gZeHSt/8LMPfZ4Rb+Bd/A==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vue/compiler-core": "3.5.26",- "@vue/shared": "3.5.26"- }- },- "node_modules/@vue/compiler-sfc": {- "version": "3.5.26",- "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.26.tgz",- "integrity": "sha512-egp69qDTSEZcf4bGOSsprUr4xI73wfrY5oRs6GSgXFTiHrWj4Y3X5Ydtip9QMqiCMCPVwLglB9GBxXtTadJ3mA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/parser": "^7.28.5",- "@vue/compiler-core": "3.5.26",- "@vue/compiler-dom": "3.5.26",- "@vue/compiler-ssr": "3.5.26",- "@vue/shared": "3.5.26",- "estree-walker": "^2.0.2",- "magic-string": "^0.30.21",- "postcss": "^8.5.6",- "source-map-js": "^1.2.1"- }- },- "node_modules/@vue/compiler-ssr": {- "version": "3.5.26",- "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.26.tgz",- "integrity": "sha512-lZT9/Y0nSIRUPVvapFJEVDbEXruZh2IYHMk2zTtEgJSlP5gVOqeWXH54xDKAaFS4rTnDeDBQUYDtxKyoW9FwDw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vue/compiler-dom": "3.5.26",- "@vue/shared": "3.5.26"- }- },- "node_modules/@vue/devtools-api": {- "version": "7.7.9",- "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-7.7.9.tgz",- "integrity": "sha512-kIE8wvwlcZ6TJTbNeU2HQNtaxLx3a84aotTITUuL/4bzfPxzajGBOoqjMhwZJ8L9qFYDU/lAYMEEm11dnZOD6g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vue/devtools-kit": "^7.7.9"- }- },- "node_modules/@vue/devtools-kit": {- "version": "7.7.9",- "resolved": "https://registry.npmjs.org/@vue/devtools-kit/-/devtools-kit-7.7.9.tgz",- "integrity": "sha512-PyQ6odHSgiDVd4hnTP+aDk2X4gl2HmLDfiyEnn3/oV+ckFDuswRs4IbBT7vacMuGdwY/XemxBoh302ctbsptuA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vue/devtools-shared": "^7.7.9",- "birpc": "^2.3.0",- "hookable": "^5.5.3",- "mitt": "^3.0.1",- "perfect-debounce": "^1.0.0",- "speakingurl": "^14.0.1",- "superjson": "^2.2.2"- }- },- "node_modules/@vue/devtools-shared": {- "version": "7.7.9",- "resolved": "https://registry.npmjs.org/@vue/devtools-shared/-/devtools-shared-7.7.9.tgz",- "integrity": "sha512-iWAb0v2WYf0QWmxCGy0seZNDPdO3Sp5+u78ORnyeonS6MT4PC7VPrryX2BpMJrwlDeaZ6BD4vP4XKjK0SZqaeA==",- "dev": true,- "license": "MIT",- "dependencies": {- "rfdc": "^1.4.1"- }- },- "node_modules/@vue/reactivity": {- "version": "3.5.26",- "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.26.tgz",- "integrity": "sha512-9EnYB1/DIiUYYnzlnUBgwU32NNvLp/nhxLXeWRhHUEeWNTn1ECxX8aGO7RTXeX6PPcxe3LLuNBFoJbV4QZ+CFQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vue/shared": "3.5.26"- }- },- "node_modules/@vue/runtime-core": {- "version": "3.5.26",- "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.26.tgz",- "integrity": "sha512-xJWM9KH1kd201w5DvMDOwDHYhrdPTrAatn56oB/LRG4plEQeZRQLw0Bpwih9KYoqmzaxF0OKSn6swzYi84e1/Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vue/reactivity": "3.5.26",- "@vue/shared": "3.5.26"- }- },- "node_modules/@vue/runtime-dom": {- "version": "3.5.26",- "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.26.tgz",- "integrity": "sha512-XLLd/+4sPC2ZkN/6+V4O4gjJu6kSDbHAChvsyWgm1oGbdSO3efvGYnm25yCjtFm/K7rrSDvSfPDgN1pHgS4VNQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vue/reactivity": "3.5.26",- "@vue/runtime-core": "3.5.26",- "@vue/shared": "3.5.26",- "csstype": "^3.2.3"- }- },- "node_modules/@vue/server-renderer": {- "version": "3.5.26",- "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.26.tgz",- "integrity": "sha512-TYKLXmrwWKSodyVuO1WAubucd+1XlLg4set0YoV+Hu8Lo79mp/YMwWV5mC5FgtsDxX3qo1ONrxFaTP1OQgy1uA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vue/compiler-ssr": "3.5.26",- "@vue/shared": "3.5.26"- },- "peerDependencies": {- "vue": "3.5.26"- }- },- "node_modules/@vue/shared": {- "version": "3.5.26",- "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.26.tgz",- "integrity": "sha512-7Z6/y3uFI5PRoKeorTOSXKcDj0MSasfNNltcslbFrPpcw6aXRUALq4IfJlaTRspiWIUOEZbrpM+iQGmCOiWe4A==",- "dev": true,- "license": "MIT"- },- "node_modules/@vueuse/core": {- "version": "12.8.2",- "resolved": "https://registry.npmjs.org/@vueuse/core/-/core-12.8.2.tgz",- "integrity": "sha512-HbvCmZdzAu3VGi/pWYm5Ut+Kd9mn1ZHnn4L5G8kOQTPs/IwIAmJoBrmYk2ckLArgMXZj0AW3n5CAejLUO+PhdQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/web-bluetooth": "^0.0.21",- "@vueuse/metadata": "12.8.2",- "@vueuse/shared": "12.8.2",- "vue": "^3.5.13"- },- "funding": {- "url": "https://github.com/sponsors/antfu"- }- },- "node_modules/@vueuse/integrations": {- "version": "12.8.2",- "resolved": "https://registry.npmjs.org/@vueuse/integrations/-/integrations-12.8.2.tgz",- "integrity": "sha512-fbGYivgK5uBTRt7p5F3zy6VrETlV9RtZjBqd1/HxGdjdckBgBM4ugP8LHpjolqTj14TXTxSK1ZfgPbHYyGuH7g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vueuse/core": "12.8.2",- "@vueuse/shared": "12.8.2",- "vue": "^3.5.13"- },- "funding": {- "url": "https://github.com/sponsors/antfu"- },- "peerDependencies": {- "async-validator": "^4",- "axios": "^1",- "change-case": "^5",- "drauu": "^0.4",- "focus-trap": "^7",- "fuse.js": "^7",- "idb-keyval": "^6",- "jwt-decode": "^4",- "nprogress": "^0.2",- "qrcode": "^1.5",- "sortablejs": "^1",- "universal-cookie": "^7"- },- "peerDependenciesMeta": {- "async-validator": {- "optional": true- },- "axios": {- "optional": true- },- "change-case": {- "optional": true- },- "drauu": {- "optional": true- },- "focus-trap": {- "optional": true- },- "fuse.js": {- "optional": true- },- "idb-keyval": {- "optional": true- },- "jwt-decode": {- "optional": true- },- "nprogress": {- "optional": true- },- "qrcode": {- "optional": true- },- "sortablejs": {- "optional": true- },- "universal-cookie": {- "optional": true- }- }- },- "node_modules/@vueuse/metadata": {- "version": "12.8.2",- "resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-12.8.2.tgz",- "integrity": "sha512-rAyLGEuoBJ/Il5AmFHiziCPdQzRt88VxR+Y/A/QhJ1EWtWqPBBAxTAFaSkviwEuOEZNtW8pvkPgoCZQ+HxqW1A==",- "dev": true,- "license": "MIT",- "funding": {- "url": "https://github.com/sponsors/antfu"- }- },- "node_modules/@vueuse/shared": {- "version": "12.8.2",- "resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-12.8.2.tgz",- "integrity": "sha512-dznP38YzxZoNloI0qpEfpkms8knDtaoQ6Y/sfS0L7Yki4zh40LFHEhur0odJC6xTHG5dxWVPiUWBXn+wCG2s5w==",- "dev": true,- "license": "MIT",- "dependencies": {- "vue": "^3.5.13"- },- "funding": {- "url": "https://github.com/sponsors/antfu"- }- },- "node_modules/algoliasearch": {- "version": "5.46.2",- "resolved": "https://registry.npmjs.org/algoliasearch/-/algoliasearch-5.46.2.tgz",- "integrity": "sha512-qqAXW9QvKf2tTyhpDA4qXv1IfBwD2eduSW6tUEBFIfCeE9gn9HQ9I5+MaKoenRuHrzk5sQoNh1/iof8mY7uD6Q==",- "dev": true,- "license": "MIT",- "peer": true,- "dependencies": {- "@algolia/abtesting": "1.12.2",- "@algolia/client-abtesting": "5.46.2",- "@algolia/client-analytics": "5.46.2",- "@algolia/client-common": "5.46.2",- "@algolia/client-insights": "5.46.2",- "@algolia/client-personalization": "5.46.2",- "@algolia/client-query-suggestions": "5.46.2",- "@algolia/client-search": "5.46.2",- "@algolia/ingestion": "1.46.2",- "@algolia/monitoring": "1.46.2",- "@algolia/recommend": "5.46.2",- "@algolia/requester-browser-xhr": "5.46.2",- "@algolia/requester-fetch": "5.46.2",- "@algolia/requester-node-http": "5.46.2"- },- "engines": {- "node": ">= 14.0.0"- }- },- "node_modules/birpc": {- "version": "2.9.0",- "resolved": "https://registry.npmjs.org/birpc/-/birpc-2.9.0.tgz",- "integrity": "sha512-KrayHS5pBi69Xi9JmvoqrIgYGDkD6mcSe/i6YKi3w5kekCLzrX4+nawcXqrj2tIp50Kw/mT/s3p+GVK0A0sKxw==",- "dev": true,- "license": "MIT",- "funding": {- "url": "https://github.com/sponsors/antfu"- }- },- "node_modules/ccount": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz",- "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==",- "dev": true,- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/character-entities-html4": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz",- "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==",- "dev": true,- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/character-entities-legacy": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz",- "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==",- "dev": true,- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/comma-separated-tokens": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz",- "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==",- "dev": true,- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/copy-anything": {- "version": "4.0.5",- "resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-4.0.5.tgz",- "integrity": "sha512-7Vv6asjS4gMOuILabD3l739tsaxFQmC+a7pLZm02zyvs8p977bL3zEgq3yDk5rn9B0PbYgIv++jmHcuUab4RhA==",- "dev": true,- "license": "MIT",- "dependencies": {- "is-what": "^5.2.0"- },- "engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/mesqueeb"- }- },- "node_modules/csstype": {- "version": "3.2.3",- "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",- "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",- "dev": true,- "license": "MIT"- },- "node_modules/dequal": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",- "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/devlop": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz",- "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==",- "dev": true,- "license": "MIT",- "dependencies": {- "dequal": "^2.0.0"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/emoji-regex-xs": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/emoji-regex-xs/-/emoji-regex-xs-1.0.0.tgz",- "integrity": "sha512-LRlerrMYoIDrT6jgpeZ2YYl/L8EulRTt5hQcYjy5AInh7HWXKimpqx68aknBFpGL2+/IcogTcaydJEgaTmOpDg==",- "dev": true,- "license": "MIT"- },- "node_modules/entities": {- "version": "7.0.0",- "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.0.tgz",- "integrity": "sha512-FDWG5cmEYf2Z00IkYRhbFrwIwvdFKH07uV8dvNy0omp/Qb1xcyCWp2UDtcwJF4QZZvk0sLudP6/hAu42TaqVhQ==",- "dev": true,- "license": "BSD-2-Clause",- "engines": {- "node": ">=0.12"- },- "funding": {- "url": "https://github.com/fb55/entities?sponsor=1"- }- },- "node_modules/esbuild": {- "version": "0.25.12",- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz",- "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==",- "dev": true,- "hasInstallScript": true,- "license": "MIT",- "bin": {- "esbuild": "bin/esbuild"- },- "engines": {- "node": ">=18"- },- "optionalDependencies": {- "@esbuild/aix-ppc64": "0.25.12",- "@esbuild/android-arm": "0.25.12",- "@esbuild/android-arm64": "0.25.12",- "@esbuild/android-x64": "0.25.12",- "@esbuild/darwin-arm64": "0.25.12",- "@esbuild/darwin-x64": "0.25.12",- "@esbuild/freebsd-arm64": "0.25.12",- "@esbuild/freebsd-x64": "0.25.12",- "@esbuild/linux-arm": "0.25.12",- "@esbuild/linux-arm64": "0.25.12",- "@esbuild/linux-ia32": "0.25.12",- "@esbuild/linux-loong64": "0.25.12",- "@esbuild/linux-mips64el": "0.25.12",- "@esbuild/linux-ppc64": "0.25.12",- "@esbuild/linux-riscv64": "0.25.12",- "@esbuild/linux-s390x": "0.25.12",- "@esbuild/linux-x64": "0.25.12",- "@esbuild/netbsd-arm64": "0.25.12",- "@esbuild/netbsd-x64": "0.25.12",- "@esbuild/openbsd-arm64": "0.25.12",- "@esbuild/openbsd-x64": "0.25.12",- "@esbuild/openharmony-arm64": "0.25.12",- "@esbuild/sunos-x64": "0.25.12",- "@esbuild/win32-arm64": "0.25.12",- "@esbuild/win32-ia32": "0.25.12",- "@esbuild/win32-x64": "0.25.12"- }- },- "node_modules/estree-walker": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",- "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",- "dev": true,- "license": "MIT"- },- "node_modules/focus-trap": {- "version": "7.7.1",- "resolved": "https://registry.npmjs.org/focus-trap/-/focus-trap-7.7.1.tgz",- "integrity": "sha512-Pkp8m55GjxBLnhBoT6OXdMvfRr4TjMAKLvFM566zlIryq5plbhaTmLAJWTGR0EkRwLjEte1lCOG9MxF1ipJrOg==",- "dev": true,- "license": "MIT",- "peer": true,- "dependencies": {- "tabbable": "^6.4.0"- }- },- "node_modules/fsevents": {- "version": "2.3.3",- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",- "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",- "dev": true,- "hasInstallScript": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": "^8.16.0 || ^10.6.0 || >=11.0.0"- }- },- "node_modules/hast-util-to-html": {- "version": "9.0.5",- "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.5.tgz",- "integrity": "sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/hast": "^3.0.0",- "@types/unist": "^3.0.0",- "ccount": "^2.0.0",- "comma-separated-tokens": "^2.0.0",- "hast-util-whitespace": "^3.0.0",- "html-void-elements": "^3.0.0",- "mdast-util-to-hast": "^13.0.0",- "property-information": "^7.0.0",- "space-separated-tokens": "^2.0.0",- "stringify-entities": "^4.0.0",- "zwitch": "^2.0.4"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/hast-util-whitespace": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz",- "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/hast": "^3.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/hookable": {- "version": "5.5.3",- "resolved": "https://registry.npmjs.org/hookable/-/hookable-5.5.3.tgz",- "integrity": "sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==",- "dev": true,- "license": "MIT"- },- "node_modules/html-void-elements": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-3.0.0.tgz",- "integrity": "sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==",- "dev": true,- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/is-what": {- "version": "5.5.0",- "resolved": "https://registry.npmjs.org/is-what/-/is-what-5.5.0.tgz",- "integrity": "sha512-oG7cgbmg5kLYae2N5IVd3jm2s+vldjxJzK1pcu9LfpGuQ93MQSzo0okvRna+7y5ifrD+20FE8FvjusyGaz14fw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/mesqueeb"- }- },- "node_modules/magic-string": {- "version": "0.30.21",- "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",- "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/sourcemap-codec": "^1.5.5"- }- },- "node_modules/mark.js": {- "version": "8.11.1",- "resolved": "https://registry.npmjs.org/mark.js/-/mark.js-8.11.1.tgz",- "integrity": "sha512-1I+1qpDt4idfgLQG+BNWmrqku+7/2bi5nLf4YwF8y8zXvmfiTBY3PV3ZibfrjBueCByROpuBjLLFCajqkgYoLQ==",- "dev": true,- "license": "MIT"- },- "node_modules/mdast-util-to-hast": {- "version": "13.2.1",- "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz",- "integrity": "sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/hast": "^3.0.0",- "@types/mdast": "^4.0.0",- "@ungap/structured-clone": "^1.0.0",- "devlop": "^1.0.0",- "micromark-util-sanitize-uri": "^2.0.0",- "trim-lines": "^3.0.0",- "unist-util-position": "^5.0.0",- "unist-util-visit": "^5.0.0",- "vfile": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/micromark-util-character": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz",- "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==",- "dev": true,- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-util-encode": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz",- "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==",- "dev": true,- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT"- },- "node_modules/micromark-util-sanitize-uri": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz",- "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==",- "dev": true,- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-character": "^2.0.0",- "micromark-util-encode": "^2.0.0",- "micromark-util-symbol": "^2.0.0"- }- },- "node_modules/micromark-util-symbol": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz",- "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==",- "dev": true,- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT"- },- "node_modules/micromark-util-types": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.2.tgz",- "integrity": "sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==",- "dev": true,- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT"- },- "node_modules/minisearch": {- "version": "7.2.0",- "resolved": "https://registry.npmjs.org/minisearch/-/minisearch-7.2.0.tgz",- "integrity": "sha512-dqT2XBYUOZOiC5t2HRnwADjhNS2cecp9u+TJRiJ1Qp/f5qjkeT5APcGPjHw+bz89Ms8Jp+cG4AlE+QZ/QnDglg==",- "dev": true,- "license": "MIT"- },- "node_modules/mitt": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz",- "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==",- "dev": true,- "license": "MIT"- },- "node_modules/nanoid": {- "version": "3.3.11",- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",- "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "bin": {- "nanoid": "bin/nanoid.cjs"- },- "engines": {- "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"- }- },- "node_modules/oniguruma-to-es": {- "version": "3.1.1",- "resolved": "https://registry.npmjs.org/oniguruma-to-es/-/oniguruma-to-es-3.1.1.tgz",- "integrity": "sha512-bUH8SDvPkH3ho3dvwJwfonjlQ4R80vjyvrU8YpxuROddv55vAEJrTuCuCVUhhsHbtlD9tGGbaNApGQckXhS8iQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "emoji-regex-xs": "^1.0.0",- "regex": "^6.0.1",- "regex-recursion": "^6.0.2"- }- },- "node_modules/perfect-debounce": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-1.0.0.tgz",- "integrity": "sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==",- "dev": true,- "license": "MIT"- },- "node_modules/picocolors": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",- "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",- "dev": true,- "license": "ISC"- },- "node_modules/postcss": {- "version": "8.5.6",- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz",- "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/postcss/"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/postcss"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "nanoid": "^3.3.11",- "picocolors": "^1.1.1",- "source-map-js": "^1.2.1"- },- "engines": {- "node": "^10 || ^12 || >=14"- }- },- "node_modules/preact": {- "version": "10.28.2",- "resolved": "https://registry.npmjs.org/preact/-/preact-10.28.2.tgz",- "integrity": "sha512-lbteaWGzGHdlIuiJ0l2Jq454m6kcpI1zNje6d8MlGAFlYvP2GO4ibnat7P74Esfz4sPTdM6UxtTwh/d3pwM9JA==",- "dev": true,- "license": "MIT",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/preact"- }- },- "node_modules/property-information": {- "version": "7.1.0",- "resolved": "https://registry.npmjs.org/property-information/-/property-information-7.1.0.tgz",- "integrity": "sha512-TwEZ+X+yCJmYfL7TPUOcvBZ4QfoT5YenQiJuX//0th53DE6w0xxLEtfK3iyryQFddXuvkIk51EEgrJQ0WJkOmQ==",- "dev": true,- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/regex": {- "version": "6.1.0",- "resolved": "https://registry.npmjs.org/regex/-/regex-6.1.0.tgz",- "integrity": "sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==",- "dev": true,- "license": "MIT",- "dependencies": {- "regex-utilities": "^2.3.0"- }- },- "node_modules/regex-recursion": {- "version": "6.0.2",- "resolved": "https://registry.npmjs.org/regex-recursion/-/regex-recursion-6.0.2.tgz",- "integrity": "sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==",- "dev": true,- "license": "MIT",- "dependencies": {- "regex-utilities": "^2.3.0"- }- },- "node_modules/regex-utilities": {- "version": "2.3.0",- "resolved": "https://registry.npmjs.org/regex-utilities/-/regex-utilities-2.3.0.tgz",- "integrity": "sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==",- "dev": true,- "license": "MIT"- },- "node_modules/rfdc": {- "version": "1.4.1",- "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz",- "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==",- "dev": true,- "license": "MIT"- },- "node_modules/rollup": {- "version": "4.55.1",- "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.55.1.tgz",- "integrity": "sha512-wDv/Ht1BNHB4upNbK74s9usvl7hObDnvVzknxqY/E/O3X6rW1U1rV1aENEfJ54eFZDTNo7zv1f5N4edCluH7+A==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/estree": "1.0.8"- },- "bin": {- "rollup": "dist/bin/rollup"- },- "engines": {- "node": ">=18.0.0",- "npm": ">=8.0.0"- },- "optionalDependencies": {- "@rollup/rollup-android-arm-eabi": "4.55.1",- "@rollup/rollup-android-arm64": "4.55.1",- "@rollup/rollup-darwin-arm64": "4.55.1",- "@rollup/rollup-darwin-x64": "4.55.1",- "@rollup/rollup-freebsd-arm64": "4.55.1",- "@rollup/rollup-freebsd-x64": "4.55.1",- "@rollup/rollup-linux-arm-gnueabihf": "4.55.1",- "@rollup/rollup-linux-arm-musleabihf": "4.55.1",- "@rollup/rollup-linux-arm64-gnu": "4.55.1",- "@rollup/rollup-linux-arm64-musl": "4.55.1",- "@rollup/rollup-linux-loong64-gnu": "4.55.1",- "@rollup/rollup-linux-loong64-musl": "4.55.1",- "@rollup/rollup-linux-ppc64-gnu": "4.55.1",- "@rollup/rollup-linux-ppc64-musl": "4.55.1",- "@rollup/rollup-linux-riscv64-gnu": "4.55.1",- "@rollup/rollup-linux-riscv64-musl": "4.55.1",- "@rollup/rollup-linux-s390x-gnu": "4.55.1",- "@rollup/rollup-linux-x64-gnu": "4.55.1",- "@rollup/rollup-linux-x64-musl": "4.55.1",- "@rollup/rollup-openbsd-x64": "4.55.1",- "@rollup/rollup-openharmony-arm64": "4.55.1",- "@rollup/rollup-win32-arm64-msvc": "4.55.1",- "@rollup/rollup-win32-ia32-msvc": "4.55.1",- "@rollup/rollup-win32-x64-gnu": "4.55.1",- "@rollup/rollup-win32-x64-msvc": "4.55.1",- "fsevents": "~2.3.2"- }- },- "node_modules/search-insights": {- "version": "2.17.3",- "resolved": "https://registry.npmjs.org/search-insights/-/search-insights-2.17.3.tgz",- "integrity": "sha512-RQPdCYTa8A68uM2jwxoY842xDhvx3E5LFL1LxvxCNMev4o5mLuokczhzjAgGwUZBAmOKZknArSxLKmXtIi2AxQ==",- "dev": true,- "license": "MIT",- "peer": true- },- "node_modules/shiki": {- "version": "2.5.0",- "resolved": "https://registry.npmjs.org/shiki/-/shiki-2.5.0.tgz",- "integrity": "sha512-mI//trrsaiCIPsja5CNfsyNOqgAZUb6VpJA+340toL42UpzQlXpwRV9nch69X6gaUxrr9kaOOa6e3y3uAkGFxQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@shikijs/core": "2.5.0",- "@shikijs/engine-javascript": "2.5.0",- "@shikijs/engine-oniguruma": "2.5.0",- "@shikijs/langs": "2.5.0",- "@shikijs/themes": "2.5.0",- "@shikijs/types": "2.5.0",- "@shikijs/vscode-textmate": "^10.0.2",- "@types/hast": "^3.0.4"- }- },- "node_modules/source-map-js": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",- "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",- "dev": true,- "license": "BSD-3-Clause",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/space-separated-tokens": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz",- "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==",- "dev": true,- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/speakingurl": {- "version": "14.0.1",- "resolved": "https://registry.npmjs.org/speakingurl/-/speakingurl-14.0.1.tgz",- "integrity": "sha512-1POYv7uv2gXoyGFpBCmpDVSNV74IfsWlDW216UPjbWufNf+bSU6GdbDsxdcxtfwb4xlI3yxzOTKClUosxARYrQ==",- "dev": true,- "license": "BSD-3-Clause",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/stringify-entities": {- "version": "4.0.4",- "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz",- "integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==",- "dev": true,- "license": "MIT",- "dependencies": {- "character-entities-html4": "^2.0.0",- "character-entities-legacy": "^3.0.0"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/superjson": {- "version": "2.2.6",- "resolved": "https://registry.npmjs.org/superjson/-/superjson-2.2.6.tgz",- "integrity": "sha512-H+ue8Zo4vJmV2nRjpx86P35lzwDT3nItnIsocgumgr0hHMQ+ZGq5vrERg9kJBo5AWGmxZDhzDo+WVIJqkB0cGA==",- "dev": true,- "license": "MIT",- "dependencies": {- "copy-anything": "^4"- },- "engines": {- "node": ">=16"- }- },- "node_modules/tabbable": {- "version": "6.4.0",- "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.4.0.tgz",- "integrity": "sha512-05PUHKSNE8ou2dwIxTngl4EzcnsCDZGJ/iCLtDflR/SHB/ny14rXc+qU5P4mG9JkusiV7EivzY9Mhm55AzAvCg==",- "dev": true,- "license": "MIT"- },- "node_modules/trim-lines": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz",- "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==",- "dev": true,- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/unist-util-is": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz",- "integrity": "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/unist-util-position": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz",- "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/unist-util-stringify-position": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz",- "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/unist-util-visit": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.0.0.tgz",- "integrity": "sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0",- "unist-util-is": "^6.0.0",- "unist-util-visit-parents": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/unist-util-visit-parents": {- "version": "6.0.2",- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.2.tgz",- "integrity": "sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0",- "unist-util-is": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/vfile": {- "version": "6.0.3",- "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz",- "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0",- "vfile-message": "^4.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/vfile-message": {- "version": "4.0.3",- "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz",- "integrity": "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0",- "unist-util-stringify-position": "^4.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/vite": {- "version": "5.4.21",- "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz",- "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",- "dev": true,- "license": "MIT",- "peer": true,- "dependencies": {- "esbuild": "^0.21.3",- "postcss": "^8.4.43",- "rollup": "^4.20.0"- },- "bin": {- "vite": "bin/vite.js"- },- "engines": {- "node": "^18.0.0 || >=20.0.0"- },- "funding": {- "url": "https://github.com/vitejs/vite?sponsor=1"- },- "optionalDependencies": {- "fsevents": "~2.3.3"- },- "peerDependencies": {- "@types/node": "^18.0.0 || >=20.0.0",- "less": "*",- "lightningcss": "^1.21.0",- "sass": "*",- "sass-embedded": "*",- "stylus": "*",- "sugarss": "*",- "terser": "^5.4.0"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- },- "less": {- "optional": true- },- "lightningcss": {- "optional": true- },- "sass": {- "optional": true- },- "sass-embedded": {- "optional": true- },- "stylus": {- "optional": true- },- "sugarss": {- "optional": true- },- "terser": {- "optional": true- }- }- },- "node_modules/vitepress": {- "version": "1.6.4",- "resolved": "https://registry.npmjs.org/vitepress/-/vitepress-1.6.4.tgz",- "integrity": "sha512-+2ym1/+0VVrbhNyRoFFesVvBvHAVMZMK0rw60E3X/5349M1GuVdKeazuksqopEdvkKwKGs21Q729jX81/bkBJg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@docsearch/css": "3.8.2",- "@docsearch/js": "3.8.2",- "@iconify-json/simple-icons": "^1.2.21",- "@shikijs/core": "^2.1.0",- "@shikijs/transformers": "^2.1.0",- "@shikijs/types": "^2.1.0",- "@types/markdown-it": "^14.1.2",- "@vitejs/plugin-vue": "^5.2.1",- "@vue/devtools-api": "^7.7.0",- "@vue/shared": "^3.5.13",- "@vueuse/core": "^12.4.0",- "@vueuse/integrations": "^12.4.0",- "focus-trap": "^7.6.4",- "mark.js": "8.11.1",- "minisearch": "^7.1.1",- "shiki": "^2.1.0",- "vite": "^5.4.14",- "vue": "^3.5.13"- },- "bin": {- "vitepress": "bin/vitepress.js"- },- "peerDependencies": {- "markdown-it-mathjax3": "^4",- "postcss": "^8"- },- "peerDependenciesMeta": {- "markdown-it-mathjax3": {- "optional": true- },- "postcss": {- "optional": true- }- }- },- "node_modules/vue": {- "version": "3.5.26",- "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.26.tgz",- "integrity": "sha512-SJ/NTccVyAoNUJmkM9KUqPcYlY+u8OVL1X5EW9RIs3ch5H2uERxyyIUI4MRxVCSOiEcupX9xNGde1tL9ZKpimA==",- "dev": true,- "license": "MIT",- "peer": true,- "dependencies": {- "@vue/compiler-dom": "3.5.26",- "@vue/compiler-sfc": "3.5.26",- "@vue/runtime-dom": "3.5.26",- "@vue/server-renderer": "3.5.26",- "@vue/shared": "3.5.26"- },- "peerDependencies": {- "typescript": "*"- },- "peerDependenciesMeta": {- "typescript": {- "optional": true- }- }- },- "node_modules/zwitch": {- "version": "2.0.4",- "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz",- "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==",- "dev": true,- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- }- }-}diff --git a/docs/package.json b/docs/package.jsondeleted file mode 100644index 724f8513e..000000000--- a/docs/package.json+++ /dev/null@@ -1,16 +0,0 @@-{- "name": "opentutor-docs",- "version": "1.0.0",- "private": true,- "scripts": {- "dev": "vitepress dev",- "build": "vitepress build",- "preview": "vitepress preview"- },- "devDependencies": {- "vitepress": "^1.6.4"- },- "overrides": {- "esbuild": "^0.25.0"- }-}diff --git a/docs/public/co-writer.gif b/docs/public/co-writer.gifdeleted file mode 100644index 2389ad8bd..000000000Binary files a/docs/public/co-writer.gif and /dev/null differdiff --git a/docs/public/deepresearch.gif b/docs/public/deepresearch.gifdeleted file mode 100644index b64c22d30..000000000Binary files a/docs/public/deepresearch.gif and /dev/null differdiff --git a/docs/public/full-pipe.png b/docs/public/full-pipe.pngdeleted file mode 100644index 5e0de9da0..000000000Binary files a/docs/public/full-pipe.png and /dev/null differdiff --git a/docs/public/guided-learning.gif b/docs/public/guided-learning.gifdeleted file mode 100644index 1ef1ff740..000000000Binary files a/docs/public/guided-learning.gif and /dev/null differdiff --git a/docs/public/ideagen.gif b/docs/public/ideagen.gifdeleted file mode 100644index e9319ce2d..000000000Binary files a/docs/public/ideagen.gif and /dev/null differdiff --git a/docs/public/knowledge_bases.png b/docs/public/knowledge_bases.pngdeleted file mode 100644index d1f2be1a3..000000000Binary files a/docs/public/knowledge_bases.png and /dev/null differdiff --git a/docs/public/logo.png b/docs/public/logo.pngdeleted file mode 100644index 856aee98b..000000000Binary files a/docs/public/logo.png and /dev/null differdiff --git a/docs/public/notebooks.png b/docs/public/notebooks.pngdeleted file mode 100644index ddab9d17b..000000000Binary files a/docs/public/notebooks.png and /dev/null differdiff --git a/docs/public/question-1.gif b/docs/public/question-1.gifdeleted file mode 100644index 28821fbef..000000000Binary files a/docs/public/question-1.gif and /dev/null differdiff --git a/docs/public/question-2.gif b/docs/public/question-2.gifdeleted file mode 100644index eeccc51c4..000000000Binary files a/docs/public/question-2.gif and /dev/null differdiff --git a/docs/public/solve.gif b/docs/public/solve.gifdeleted file mode 100644index 35051199a..000000000Binary files a/docs/public/solve.gif and /dev/null differdiff --git "a/docs/ref/wiki/ GeoGebra\344\275\277\347\224\250\346\214\207\345\215\227.md" "b/docs/ref/wiki/ GeoGebra\344\275\277\347\224\250\346\214\207\345\215\227.md"deleted file mode 100644index e11291373..000000000--- "a/docs/ref/wiki/ GeoGebra\344\275\277\347\224\250\346\214\207\345\215\227.md"+++ /dev/null@@ -1,2408 +0,0 @@-# ๅจๆๆฐๅญฆ่ฝฏไปถ----# GeoGebraไฝฟ็จๆๅ--ๅไบฌๅธ่ๅคงๅญฆ GeoGebra ๅญฆ้ข๏ผไธญๅฝๆป้จ๏ผ--GeoGebra Institute of Beijing Normal University--(BNU), China Network--# ๅ่จ--ๆฌไฝฟ็จๆๅๅบไบGeoGebra Help 3.2ๅนถๆ นๆฎไธญๅฝ็จๆท็ไฝฟ็จไน ๆฏๅฏน็ซ ่ๅๅ ๅฎนๅไบ่ฐๆดๅไฟฎๆนใๆไธญๆๆ็ๆไฝๅๆชๅพๅไฝฟ็จGeoGebra 3.2ๅจwindows็ฏๅขไธๅฎๆใ--GeoGebra Help 3.2 ไฝ่ ๏ผ--Markus Hohenwarter, [email protected]--Judith Hohenwarter, [email protected]--ใๅจๆๆฐๅญฆ่ฝฏไปถ GeoGebra ไฝฟ็จๆๅใ็ผ่ฏ๏ผ--้ญ่ก๏ผ[email protected]--GeoGebra Institute of Beijing Normal University(BNU), China Network ไบ 2011 ๅนด 5 ๆ 25 ๆฅ็ณ่ฏทๆ็ซ๏ผไฝไธบ GeoGebra ๅจไธญๅฝ็้ฆๅธญๅญฆ้ข๏ผGeoGebra Institute BNU, China Network ๅฐ้ขๅฏผๅๅฉๅ ถไปไธญๅฝๅ ถไปๅฐๆนๅญฆ้ข็ๅปบ่ฎพไธๅๅฑ๏ผ่ดๅไบ GeoGebra ็ธๅ ณ็ๆฐๅญฆๆๅญฆๅๅญฆไน ็็ ็ฉถๅทฅไฝ๏ผ้ขๅไธญๅฝ GeoGebra ็จๆทๆฐดๅนณ่ฎค่ฏ๏ผๆไพๅธ่็ๅไธ็บฟๆๅธ็ไธไธๅน่ฎญ๏ผๅไบซๆฐๅญฆๅญฆไน ไธๆๅญฆ็ๆๅๆกไพๅๅ ่ฟ็ป้ช๏ผไฟ่ฟไธญๅฝ GeoGebra ๅๅฐๆนๅญฆ้ข้ด็ๅไฝใ--็ป็ปๆๅ๏ผ--ใไธปๅธญใ--ๆนไธ้ธฃ๏ผๅไบฌๅธ่ๅคงๅญฆๆฐๅญฆ็งๅญฆๅญฆ้ขๆๆ๏ผๅๅฃซ็ๅฏผๅธ๏ผไธญๅฝๆฐๅญฆไผๆ่ฒๅทฅไฝๅงๅไผๅฏไธปไปป๏ผๅ จๅฝๆฐๅญฆๆ่ฒ็ ็ฉถไผ็งไนฆ้ฟใ--ใๅ ถไปๆๅใ--็ๅ ๆ๏ผๅคฉๆดฅๅธ่ๅคงๅญฆๆฐๅญฆ็งๅญฆๅญฆ้ขๆๆ๏ผใๆฐๅญฆๆ่ฒๅญฆๆฅใ็ผ่พ้จไธปไปปใ--ๅฎ่ฟๅ๏ผๅไบฌๅธ่ๅคงๅญฆๆฐๅญฆ็งๅญฆๅญฆ้ขๅฏๆๆ๏ผ็กๅฃซ็ๅฏผๅธใ--้ฉฌๆณข๏ผๅไบฌๅธ่ๅคงๅญฆๆฐๅญฆ็งๅญฆๅญฆ้ขๅฏๆๆ๏ผ็กๅฃซ็ๅฏผๅธใ--่ฃ่ฟๆฅ๏ผๅไบฌๅธ่ๅคงๅญฆ็ ็ฉถ็๏ผๆฐๅญฆๆ่ฒๆนๅใ--้ญ ่ก๏ผๅไบฌๅธ่ๅคงๅญฆ็ ็ฉถ็๏ผๆฐๅญฆๆ่ฒๆนๅใ--ๅฆๅ็ฐไนฆๅๆ่ฏฏๆๅ ๅฎนไธๅฝไนๅค่ฏทๅ้้ฎไปถ่ณ๏ผ[email protected]--# ็ฎๅฝ--# ็ฌฌไธ็ซ GEOGEBRA็ฎไป--1. ไปไนๆฏ GEOGEBRA?-2. ๅฆไฝๅฎ่ฃ GEOGEBRA? 3-3. ่ฎค่ฏ GEOGEBRA 4--# ็ฌฌไบ็ซ GEOGEBRA ็็จ้ 6--1. ๅญฆไน ๆถไฝฟ็จ 6-2. ๆผ็คบๆถไฝฟ็จ-3.็ผ่พๆถไฝฟ็จ 9--# ็ฌฌไธ็ซ ็ปๅพๅทฅๅ ท. 11--1.ๅบๆฌๆไฝ 11-2. ไธ่ฌๅทฅๅ ท ..... 11-3.็น 13-4. ็บฟ ..... 13-5. ๅ้ ..... 14-6. ๅ้ฅๆฒ็บฟ ..... 15-7. ๅไธๅค่พนๅฝข ..... 15-8. ๆฐๅผไธ่งๅบฆ 16-9. ๅ ไฝๅๆข ..... 17-10. ๆๅญ ..... 18-11. ๅพ็ ..... 19--# ็ฌฌๅ็ซ ไปฃๆฐ่พๅ ฅ ..... 20--1. ๅบๆฌๆไฝ ..... 20-2. ๆฐๅญๅ่ง ..... 21-3. ็นๅๅ้ ..... 22-4. ็ด็บฟๅๅๆ ่ฝด ..... 22-5. ๅ้ฅๆฒ็บฟ ..... 23-6. ๅฝๆฐๅ่ฟ็ฎ ..... 23-7. ๅฏน่ฑกๅ่กจๅ่ฟ็ฎ ..... 24-8. ็ฉ้ตไธ่ฟ็ฎ ..... 25-9. ๅคๆฐไธ่ฟ็ฎ ..... 26--# ็ฌฌไบ็ซ ๅฝไปค่พๅ ฅ ..... 28--1. ไธ่ฌๅฝไปค ..... 28-2.ๆฐๅผ 28--3.่ง 30-4.็น 31-5. ็บฟ 32-6. ๅค่พนๅฝข 33-7. ๅ้ 33-8. ๅฝๆฐ 33-9. ๅ้ฅๆฒ็บฟ 34-10. ๅๆฐๆฒ็บฟ 35-11. ๅๅผงๅๆๅฝข 35-12. ๆๅญ 36-13. ่ฝจ่ฟน 37-14.ๅ่กจ 37-15. ๅ ไฝๅๆข 39-16. ็ป่ฎก 40-17. ็ตๅญ่กจๆ ผ 42-18. ้ป่พๅฝไปค 43--# ็ฌฌๅ ญ็ซ ่ๅ 44--1.ๆไปถ 44-2.็ผ่พ 45-3. ๆฅ็ 45-4. ้้กน ..... 46-5.ๅทฅๅ ท 47-6.็ชๅฃ 47-7. ๅธฎๅฉ ..... 47--# ็ฌฌไธ็ซ GEOGEBRA ็็นๆง ..... 49--1. ๅจ็ป ..... 49-2. ๆพ็คบๆกไปถ 49-3.่ชๅฎไนๅทฅๅ ท 50-4.ๅจๆ้ข่ฒ 52-5.JAVAsCRPT 52-6.ๅฏน่ฑกๅ็งฐไธๆ ็ญพ 52-7. ๅพๅฑ 53-8. ้ๆฐๅฎไน ..... 53-9. ็่ฟนไธ่ฝจ่ฟน ..... 54--# ็ฌฌไธ็ซ GeoGebra็ฎไป--# 1. ไปไนๆฏ GeoGebra?--GeoGebra ่ฟๆฌพ่ฝฏไปถ็ๅ็งฐๆๅผๆฅๅฐฑๆฏโGeoโ+โGebraโ๏ผๆๆๆฏ็ปๅไบๅ ไฝ(Geometry)ไธไปฃๆฐ(Algebra)ใGeoGebra ๆฏไธไธช็ปๅๅ ไฝใไปฃๆฐใๅพฎ็งฏๅๅ็ป่ฎกๅ่ฝ็ๅจๆๆฐๅญฆ่ฝฏไปถ๏ผๅฏๅบ็จไบๅคๅนณๅฐ๏ผWindowใMacใLinux ็ญ๏ผ๏ผๆไพ 56 ็ง่ฏญ่จๆฏๆ๏ผๅทฒๅจๆฌงๆดฒๅ็พๅฝ่ฃ่ทๅค้กนๆ่ฒ็ฑป่ฝฏไปถๅฅ้กนใ--่ฟๆฏไธๆฌพๅ ่ดน็ๅผๆบ่ฝฏไปถ๏ผๆจๅจๅธฎๅฉ่ๅธ่ฎพ่ฎกๆ่ถฃ็ๆๅญฆๆนๆณ๏ผไธบๅญฆๆ กๆไพๅ ๆปกๆดปๅ็ๆฐๅญฆๆๅญฆใ--# 1.1. ไธโๅ ไฝ็ปๆฟโ็ๆฏ่พ--ๆฆๆฌ่ฏดๆฅ๏ผGeoGebra ๅ ไนๅ ทๅคโๅ ไฝ็ปๆฟโ็ๅ จ้จๅ่ฝ๏ผๅจ็ปๅพ็้ข็่ณๆฏโๅ ไฝ็ปๆฟโๆดๅ ๅๅฅฝใๆๆไฝ๏ผๅๆถๅ ทๅคโๅ ไฝ็ปๆฟโๆฒกๆ็็ฌฆๅท่ฎก็ฎใๅพฎ็งฏๅใ็ป่ฎก็ญๅ่ฝใๅฆๅค๏ผGeoGebra ๅ ทๅคๅผๆบ็็ฒพ็ฅ๏ผๅจไฝฟ็จใไบคๆตใๅไบซๆน้ข้ฝ็ปไฝฟ็จ่ ๆไพไบๆๅคงไพฟๅฉใ--็ฎๅๅคงๅคๆฐไธปๆตๆๅญฆ่ฝฏไปถๆฏๅไธๅ็๏ผ่ฟๆๅณ่ฝฏไปถ็ๅฏๅพๆงๆฏๅๅญฆๆ กๆๅญฆ็็่ดขๅก่ฝๅๅฝฑๅ็ใๆไปฅ๏ผๆ ๆณไนฐๅไธ่ฝฏไปถ็ไธไบ่ๅธๆๅญฆ็ไธ็ฝๆฅๅฏปๅ ่ดน่ฝฏไปถ๏ผๅนถๆ นๆฎไปไปฌ็็ฎ็ไธ่ฝฝๅนถไฝฟ็จ่ฟไบ่ฝฏไปถใๅผๆบ่ฝฏไปถๆฏๆๅ ฌๅผ็่ฝฏไปถ็ๆบไปฃ็ ๏ผไฝฟ็จ่ ๅฏไปฅ่ช็ฑไฝฟ็จใไธ่ฝฝใไฟฎๆนไธๅๅธ่ฝฏไปถ็ๅฏๆง่ก็จๅบๅ็จๅบๆบไปฃ็ ใ่ฟ้ผๅฑไบๅผๅใๆดๆฐใ็ปดๆคๅผๆบ่ฝฏไปถ็็จๆทๅๅขไฝๅ่ตๅฉๅผๅ่ฝฏไปถ็ๅผๅๅๅนถๅฝขๆไธไธชๅไฝ็ๅข้๏ผไฝฟๅพ่ฝฏไปถๆฅ่ปๅฎๅ๏ผ่่ฟ็ง่ฟๆญฅๆฏๅไธ่ฝฏไปถ่ฟไธ่ฝๅ็ใๆ่ฒๆๆฏไน้ๆธๅ ๅ ฅไบ่ฟไธช่ถๅฟ๏ผๅๅฐ่ฟ็งโ่ช็ฑ่ฝฏไปถโ็GeoGebraๅฐฑๆฏๅ ถไธญ็ไธไธชใ่ฝฏไปถไฝ่ Hohenwarter่ฏด๏ผโGeoGebraๆฏๅ ่ดน่ฝฏไปถ๏ผๅ ไธบๆ็ธไฟกๆ่ฒๅบ่ฏฅๆฏๅ ่ดน็ใโ--่ฟๆฌพ่ฝฏไปถๅพไผ็ง๏ผไฝ GeoCebra ่ฝฏไปถ่ๅ็่ฟ็งโๅผๆพไธๅไฝโ็็ฒพ็ฅๆฏ่ฝฏไปถๆฌ่บซๆดๅ ๅฏ่ดตใ--# ใ่ฝฏไปถไฝฟ็จ่ดน็จใ--โๅ ไฝ็ปๆฟโ่ฝฏไปถๆฏ็ฑ็พๅฝKey Curriculum Pressๅ ฌๅธๅถไฝๅนถๅบ็็ไผ็งๆ่ฒ่ฝฏไปถ๏ผ1996ๅนด่ฏฅๅ ฌๅธๆๆไบบๆฐๆ่ฒๅบ็็คพๅจไธญๅฝๅ่ก่ฏฅ่ฝฏไปถ็ไธญๆ็ใๅจโๅ ไฝ็ปๆฟโ็ๅฎๆน็ฝ็ซ็ปๅบ็ๅ ไฝ็ปๆฟ5.0็๏ผThe Geometerโs Sketchpad version 5๏ผ็ๅฎไปทไธบ๏ผๅค็จๆท็ไธบ69.95็พๅ ๏ผ่ฎข่ดญ100ๅฅไปฅไธไธบๆฏไธช็จๆท15็พๅ ๏ผๆๅธ็ไธบ69.95็พๅ ๏ผๅญฆ็็ไธบ29.95็พๅ ใไฝๆฏๅจ็ฝไธๆ็ดขไบๅพไน ไนๆฒกๆๆพๅฐโๅ ไฝ็ปๆฟโๅจไธญๅฝๅคง้ๅฐๅบ็ๅฎไปท๏ผๅจไบบๆฐๆ่ฒๅบ็็คพ็็ฝ็ซไธไนๆฒก็จๆพๅฐโๅ ไฝ็ปๆฟโ็็ธๅ ณ่ดญไนฐไฟกๆฏใๆไปฅไนๆ ๆณๅพ็ฅ่ฏฅ่ฝฏไปถๅจๅคง้ๅฐ--ๅบ็ๅฎไปทไบใ--่GeoGebraๆฏๅผๆบ่ฝฏไปถ๏ผๆไพๅ ่ดนๅจ็บฟๅฎ่ฃ ๅไธ่ฝฝ็ฆป็บฟๅฎ่ฃ ๅ ใ--# ใ่ฝฏไปถ่ฟ่กๆ ๅตใ--โๅ ไฝ็ปๆฟโๅฎ่ฃ ๅๅฏ็ดๆฅ่ฟ่ก๏ผ่ฟ่กๆๆๆต็ ใ--GeoGebra้ๅจjava็ฏๅขไธ่ฟ่ก๏ผๆไปฅๅ ่ฆๅจ็ต่ไธญๅฎ่ฃ java่ๆๆบ๏ผ้็จๆท่ชๅทฑไธ่ฝฝๅฎ่ฃ ใ็ฎๅ็็ๆฌๅทฒ็ปไผๆ็คบๅฎ่ฃ ๏ผๅจ็ฝ็ป็ฏๅขไธๅฏไปฅ่ชๅจไธ่ฝฝjavaๅนถๅฎ่ฃ ใ--ๅ ไธบๆฏๅจjavaไธๅ็๏ผๆไปฅGeoGebraไนๆ็java็ไผ็น๏ผ่ทจๅนณๅฐใ็ฝ้กตๆฏๆๅฅฝใๆญคๅค๏ผGeoGebra่ฟๆฏๆLaTex่ฏญๆณ๏ผๅฏๅจ็ป้ขไธๆพ็คบๆ นๅทใๆฌกๆนๅๅๆฐ๏ผ่ฟ้ฝๆฏโๅ ไฝ็ปๆฟโๆๅฐ่ซๅ็๏ผๅ ๆญคๅจ็ฝ็ปไธ่ฆ่ฎจ่ฎบๆฐๅญฆ้ฎ้ขๆถ๏ผ็จGeoGebraๆฅ็ปๅพๆฏไธไธชๅพๅฅฝ็้ๆฉใ--# ใๅฝๅ ๆฎๅๆ ๅตใ--ๅ ไฝ็ปๆฟๅจๆๅฝๅทฒๆตไผ ไฝฟ็จๅๅ ๅนดไบ๏ผๆทฑๅๅนฟๅคง็็งๆๅธ็นๅซๆฏๆฐๅญฆๆๅธ็ๅ็ฑใ็ธๅฏนไนไธ GeoGebra ไผผไนๅฐๆไบบ้ฎๆดฅ๏ผ่ฟๆฏ็พๅบฆๆ็ดข็ปๆ็ๆฏ่พใ--ไฝๅ่ฅไฝฟ็จgoogle็ๅคๆๆ็ดข๏ผGeoGebraๅGeometer's Sketchpad๏ผๅ ไฝ็ปๆฟ๏ผ็ๆก็ฎๅๅซๆฏ672,000ๅ98,500ใ่ฟ่ฏดๆ๏ผGeoGebraๅจๅฝ้ ไธ็ๅฝฑๅๅๆฏ่ฆๅคงไบๅ ไฝ็ปๆฟ็ใ๏ผๆฌง็พๅฝๅฎถๅผๆบ่ฝฏไปถ็ไฝฟ็จ็ๆฏ่ฆ้ซไบๅฝๅ ็๏ผๅ ่ดน่ฝฏไปถๅพๅฎนๆๆฎๅ๏ผๅ ไธGeoGebraๅผๆบ็ๅฅฝๅค๏ผ้ๅบๅค่ฏญ่จ็ๆฏๆ๏ผไฝฟ็จ่ฏฅ่ฝฏไปถๆดๆนไพฟๅฝ้ ้ด็ไบคๆตใ--# ใๆไฝ้พๆ็จๅบฆใ--ๅญฆไน GeoGebra ่ฝฏไปถๅนถไธ้พ๏ผไธป่ฆๆฏ็จ้ผ ๆ ๆฅๆจกๆๅฐบ่งไฝๅพ๏ผๅ ไฝ็ปๆฟๅ GeoGebra ็ไฝฟ็จๆนๆณๅ ถๅฎๅคงๅๅฐๅผ๏ผ่ฅๆฏๆๆไฝ่ฟๅ ไฝ็ปๆฟ็็ป้ช๏ผๅญฆไน GeoGebra ๅบๅพๅฟซๅฐฑๅฏ็ๆใ--่ฅๅฏน GeoGebra ็ไฝฟ็จๆไปปไฝ้ฎ้ข๏ผๅฏไธ GeoGebra ็่ฎจ่ฎบๅบๅไธ็ๅๅฐ็ไฝฟ็จ่ ่ฏทๆ่งฃๅณๆนๆณ๏ผไนๅฏๅฏน GeoGebra ็ๆชๆฅๅๅฑๆๅบๅปบ่ฎฎ๏ผๆฏ่ฆๅคๅ ไบไปไนๅ่ฝๆๆไปค๏ผ็จๅบ่ฎพ่ฎก่ Markus Hohenwarter ่ฟไผไบฒ่ชๅ็ญใ--ๆญคๅค๏ผGeoGebra ่ฟๆฏๅ ไฝ็ปๆฟๅคไบ็ป่ฎกๅๅพฎ็งฏๅ็็ธๅ ณๅ่ฝใ--# 1.2. ๅฝ้ GeoGebra ๅญฆ้ข--ๅฝ้ GeoGebra ๅญฆ้ข๏ผInternational GeoGebra Institute๏ผIGI๏ผๆไพๅ ่ดน็ๅจๆๆฐๅญฆ่ฝฏไปถๅไธไธ็ฅ่ฏ็ๅน่ฎญ๏ผๆฏๆๅๅฑ้ขๅๅ จไฝๅญฆ็ๅๆๅธ็ๆๅญฆ่ตๆบๅไบซ๏ผไปฅๆนๅไธ็ๅๅฐ็ๆฐๅญฆใ็งๅญฆๅๆๆฏๆ่ฒใๅฎๅน่ฒๅไฟ่ฟไธ็บฟๆๅธๅ็ ็ฉถไบบๅไน้ด็ๅไฝ๏ผๅชๅๅปบ็ซ่ชๆ็ปดๆๅๅฑ็็จๆท็พคไฝใ--ๅฝ้ GeoGebra ๅญฆ้ขๆฏไธไธช้่ฅๅฉ็ป็ป๏ผ่ฎพ็ซไบไปฅไธไธไธช็ฎๆ ๏ผ--ไธ๏ผๅน่ฎญๅๆฏๆ๏ผๆไพไธไธๅๅฑๆบไผ๏ผๆๅกๅธฎๅฉ่ๅๆๅธๅๅจ่ๆๅธใ-ไบ๏ผๅๅฑๅๅ ฑไบซ๏ผๅไบซ็ ็ฉถ็ด ๆใๆๅญฆ่ตๆบ๏ผไธๆญๆนๅๅๅๅฑๅจๆๆฐๅญฆ่ฝฏไปถGeoGebraใ--ไธ๏ผ็ ็ฉถไธๅไฝ๏ผๆฏๆไธGeoGebra็ธๅ ณ็ๆฐๅญฆๆๅญฆๅๅญฆไน ็็ ็ฉถๅทฅไฝ๏ผไฟ่ฟๅฝ้ GeoGebraๅๅฐๆนGeoGebraๅญฆ้ข้ด็ๅฝ้ ๅไฝใ--# 2. ๅฆไฝๅฎ่ฃ GeoGebra?--ไธ้ขไป็ปๅจwindowsไธGeoGebra่ฝฏไปถ็ๅฎ่ฃ ๆนๆณใ--# 2.1. ๅจ็บฟๅฎ่ฃ--้ฆๅ ๆๅผ GeoGebra ็ๅฎๆน็ฝ็ซ๏ผhttp://www.geogebra.org/cms/--็นๅปๅฏผ่ชๆ ไธญ็โDownloadโ๏ผๆไธโWebstartโๅณๅฏๅจ็บฟๅฎ่ฃ ใ--็ฑไบ GeoGebra ๆฏๅจ Java ็ฏๅขไธ่ฟ่ก็่ฝฏไปถ๏ผๆไปฅ่ฅๆจ็็ต่ๆฒกๆๅฎ่ฃ Java๏ผๅฎ่ฃ ่ฟ็จไธญไผ่ฟ่ก Java ็ฏๅข็ๅฎ่ฃ ใ็ปๆ Java ็ๅฎ่ฃ ๅ๏ผๅฐฑๅฏไปฅๅฎ่ฃ GeoGebra ่ฝฏไปถไบใ--# 2.2. ็ฆป็บฟๅฎ่ฃ--ๅฆๆๆจ็็ต่ๆฒกๆ็ฝ็ป็ฏๅข๏ผๅฏไปฅไฝฟ็จ็ฆป็บฟๅฎ่ฃ ๅ ๅฎ่ฃ GeoGebra ่ฝฏไปถใ--้ฆๅ ๆพๅฐไธๅฐๅ ทๅค็ฝ็ปๆกไปถ็็ต่๏ผๅจ็นๅปโDownloadโๅ็นๅปโOffline Installersโ้พๆฅ๏ผๅจๆฐๆๅผ็้กต้ขไธญ้ๆฉโWindowsโไธ่ฝฝ็ฆป็บฟๅฎ่ฃ ๅ ใ--ๅๅป่ฟ่ก็ฆป็บฟๅฎ่ฃ ๅ ๏ผๅจๅฎ่ฃ ็้ขไธญ้ๆฉโChinese๏ผSimplified๏ผโๅณๅฏๅฎ่ฃ ็ฎไฝไธญๆ็็GeoGebra่ฝฏไปถใ----GeoGebra ็ๅฎ่ฃ ๆไปถๅพๅฐ๏ผๅฏไปฅๆนไพฟ็ๆพๅจ็งปๅจๅญๅจ่ฎพๅคไธญๅคๅถๅฐๆฒกๆๆฒกๆ็ฝ็ป็ฏๅข็็ต่ไธ๏ผ่ฟ่ก็ฆป็บฟๅฎ่ฃ ใ--# 3. ่ฎค่ฏ GeoGebra--ไธบไบ้ ๅๅค็งๆฐๅญฆๅ่ฝ็ๅฎ็ฐ๏ผGeoGebra ๆไพไธ็งๆไฝๅบๅ๏ผไปฃๆฐๅบใ็ปๅพๅบๅ็ตๅญ่กจๆ ผใ่ฟไบๆไฝๅบๅๅๅซๅฏนๅบๅฎ็ฐไธๅ็ๆฐๅญฆ้ๆฑ๏ผๅฆไปฃๆฐๅ่ฝ๏ผๆน็จใๅฝๆฐ๏ผใๅ ไฝๅ่ฝ๏ผ็ปๅพใๆ็นใๅฝๆฐๅพๅ๏ผๅ็ป่ฎกๅ่ฝใ----# 3.1. ไปฃๆฐๅบ--GeoGebra ๆฏๆๅจๅฝไปคๆกไธญ็ดๆฅ่พๅ ฅไปฃๆฐ่กจ่พพๅผ๏ผ่พๅ ฅๅฎๆๅๅ่ฝฆ๏ผๆ่พๅ ฅ็ไปฃๆฐ่กจ่พพๅผๅณๅฏๅจไปฃๆฐๅบไธญๆพ็คบ๏ผๅๆถ็ธๅบ็ๅ ไฝๅพๅฝขไนไผๅจ็ปๅพๅบๅบ็ฐใGeoGebra ๆไพไบๅพๅคๅฝไปค๏ผๅฏไปฅๅจๅฝไปคๆกๅณไพง็โCommandโไธญ้ๆฉ้่ฆ็ๅฝไปค๏ผ้ๆฉๅฝไปคๅๅฏไปฅๆ F1 ้ฎ่ทๅพ็ธๅบ็่ฏญๆณๅธฎๅฉใ--ๅจไปฃๆฐๅบไธญ๏ผๆฐๅญฆๅฏน่ฑก่ขซๅๆโ่ช็ฑๅฏน่ฑกโๅโๆดพ็ๅฏน่ฑกโ๏ผๅฆๆ็ๆ็ไธไธชๅฏน่ฑกๆฒกๆไฝฟ็จไปปไฝๅทฒๆ็ๅฏน่ฑก๏ผ้ฃไน่ฟไธชๅฏน่ฑกๅณ็งฐไธบโ่ช็ฑๅฏน่ฑกโ๏ผ็ธๅ๏ผๅฆๆๆฐ็ๆ็ๅฏน่ฑกๆฏไพ่ตๅทฒๆ็ๅฏน่ฑก๏ผๅ่ขซ็งฐไธบโๆดพ็ๅฏน่ฑกโใ--่ฟๆไธ็ฑปๅฏน่ฑก็งฐไธบโ่พ ๅฉๅฏน่ฑกโใๅจไปฃๆฐๅบไธญ๏ผ้ไธญๆไธชๅฏน่ฑก๏ผ็นๅปๅณ้ฎ้ๆฉโๅฑๆงโ๏ผๅจๅฑๆงๅฏน่ฏๆก็โๅบๆฌโ้้กนๅกไธญ๏ผๅพ้โ่พ ๅฉๅฏน่ฑกโ๏ผ่ฏฅๅฏน่ฑกไพฟไผๆไธบโ่พ ๅฉๅฏน่ฑกโ๏ผๅจ้ป่ฎค่ฎพ็ฝฎไธโ่พ ๅฉๅฏน่ฑกโๅจไปฃๆฐๅบไธญไธๆพ็คบใ--# 3.2. ็ปๅพๅบ--ๅฏไปฅไฝฟ็จๅทฅๅ ทๆ ไธญ็็ปๅพๅทฅๅ ทๅจ็ปๅพๅบไธญๅฉ็จ้ผ ๆ ่ฟ่กๅ ไฝไฝๅพใไปๅทฅๅ ทๆ ไธญ้ๆฉไธ็ง็ปๅพๅทฅๅ ท๏ผๅฏ็ฑๅจๅทฅๅ ทๆ ๅณไพงๆพ็คบ็ๅทฅๅ ท่ฏดๆๆฅไบ่งฃ็ปๅพๅทฅๅ ท็ไฝฟ็จๆนๆณใๅจ็ปๅพๅบๅ ็ปๅบ็ๅ ไฝๅฏน่ฑก้ฝไผๅจไปฃๆฐๅบไธญไบง็ไธไธชไปฃๆฐ่กจ่พพๅผใ--็ปๅพๅทฅๅ ทๆ ไธญ็ๆฏไธชๅพๆ ้ฝๆฏไธไธชๅทฅๅ ท็ฎฑ๏ผ้้ขๅ ๆฌไบไธ็ณปๅ็ธไผผ็็ปๅพๅทฅๅ ท๏ผ็นๅปๅพ--ๆ ๅณไธๆน็็ฎญๅคดๅฐฑๅฏไปฅๆๅผๅทฅๅ ท็ฎฑ๏ผๆพ็คบ่ฏฅๅทฅๅ ท็ฎฑไธญ็ๆๆ็ปๅพๅทฅๅ ทใ--GeoGebra ไธญ็ๆฐๅญฆๅฏน่ฑกๆฏๅฏไปฅ่ขซไฟฎๆน็ใๅจไปฃๆฐๅบไธญๅๅป่ฆไฟฎๆน็ๆฐๅญฆๅฏน่ฑก๏ผๅณๅฏไฟฎๆน่กจ่พพๅผ๏ผไฟฎๆนๅฎๆๅๅ่ฝฆๅณๅฏ๏ผๆ่ ้ๆฉ็งปๅจๅทฅๅ ท๏ผๅจ็ปๅพๅบไธญๅๅป่ฆไฟฎๆน็ๆฐๅญฆๅฏน่ฑก๏ผๅผนๅบโ้ๆฐๅฎไนโๅฏน่ฏๆก๏ผไฟฎๆน่กจ่พพๅผๅ็นๅปโ็กฎๅฎโๅณๅฏใ--# 3.3. ็ตๅญ่กจๆ ผ--ๅจ็ตๅญ่กจๆ ผไธญ๏ผๆฏไธชๅๅ ๆ ผ้ฝๆ็ธๅบ็ๅ็งฐๆฅๆๅฎไฝ็ฝฎใๅฆๅจ็ฌฌไธ่ก็ฌฌไธๅ็ๅๅ ๆ ผ็งฐไธบA1๏ผ่ฟๆไบ็ฑปไผผOfficeExcelใๅจ็ธๅ ณ่กจ่พพๅผไธญ๏ผๅฏไปฅ็จๅๅ ๆ ผ็ไฝ็ฝฎๅ็งฐๆฅไปฃๆฟๅๅ ๆ ผไธญ็ๆฐๆฎใ--ๅจ็ตๅญ่กจๆ ผไธญ๏ผไธไฝๅฏไปฅ่พๅ ฅๆฐๅผ๏ผ่ฟๅฏไปฅ่พๅ ฅ GeoGebra ๅฏๆง่ก็ๆฐๅญฆๅฏน่ฑก๏ผๅฆๅๆ ใๅฝๆฐใๅฝไปค็ญ๏ผใๅจ็ตๅญ่กจๆ ผๆฑๆป่พๅ ฅ็ๆฐๅญฆๅฏน่ฑก GeoGebra ไผๅจ็ปๅพๅบ็ปๅบ็ธๅบ็ๅพๅ๏ผๅนถ็จๅๅ ๆ ผ็ไฝ็ฝฎๅ็งฐไธบ่ฏฅๅพๅๅฝๅใ--# ็ฌฌไบ็ซ GeoGebra ็็จ้--# 1. ๅญฆไน ๆถไฝฟ็จ--# 1.1. ่ชๅฎไน็จๆท็้ข--GeoGebra ็็จๆทๅฏไปฅๆ นๆฎ่ชๅทฑ็้่ฆๅจโๆฅ็โ่ๅไธญ่ชๅฎไน่ฝฏไปถ็้ข๏ผ้ๆฉๆฏๅฆๆพ็คบๆไบๆไฝๅบใๅฏน่ฑกไปฅๅๆดๆน็ชๅฃๅธๅฑใ--# u ่ชๅฎไนๆไฝๅบ--็จๆทๅฏไปฅ้ๆฉๆพ็คบๆ้่็ปๅพๅบไธญ็ๅฏน่ฑกใๅจไปฃๆฐๅบไธญๆพๅฐๅพๅๆๅฏนๅบ็ไปฃๆฐ่กจ่พพๅผ๏ผๅๅป่กจ่พพๅผๅๆน็ๅฐๅ็น๏ผๅณๅฏๆนๅๅ ไฝๅฏน่ฑก็ๆพ็คบๆ่ ้่ใ็ฉบๅฟ็น่กจ็คบ้่ๅฏน่ฑก๏ผๅฎๅฟ็น่กจ็คบๆพ็คบๅฏน่ฑกใ--ไธบไบ่ฐๆด็ปๅพๅบ็ๅฏ่ง้จๅ๏ผๅฏไปฅไฝฟ็จ็งปๅจ็ปๅพๅบๅทฅๅ ท๏ผ็ถๅๆไฝ็ปๅพๅบๆๅจๅณๅฏๆนๅ็ปๅพๅบ็ๅฏ่ง้จๅใ--ๆญคๅค๏ผ่ฟๅฏไปฅ้่ฟไปฅไธๆนๆณๆฅๆนๅ็ปๅพๅบ็ๆพ็คบๆฏไพ๏ผ--1. ไฝฟ็จๅทฅๅ ทๆ ไธญ็ๆพๅคงๅ็ผฉๅฐๅทฅๅ ทๆฅๆพ็ผฉ็ปๅพๅบ๏ผ--2. ไฝฟ็จ้ผ ๆ ็ๆป่ฝฎๆฅๆพ็ผฉ็ปๅพๅบ๏ผ-3. ไฝฟ็จๅฟซๆท้ฎ Ctrl + ๆพๅคงๅ Ctrl - ๆฅ็ผฉๅฐ๏ผ-4. ๅจ็ปๅพๅบไธญ็จ้ผ ๆ ๅณ้ฎๆ้็ฉๅฝขๅบๅ๏ผๆพๅผ้ผ ๆ ๅ่ขซ้ไธญๅบๅๅณๅฏๆพๅคงใ--# u ่ชๅฎไนๅๆ ่ฝดๅ็ฝๆ ผ--ๅจโๆพ็คบโ่ๅไธญๅฏไปฅ้ๆฉๆพ็คบๆ้่็ปๅพๅบ็ๅๆ ่ฝดๅ็ฝๆ ผใๅจ็ปๅพๅบไธญ็นๅปๅณ้ฎ๏ผ้ๆฉโ็ปๅพๅบโๅฏไปฅไฟฎๆน็ปๅพๅบๅฑๆง๏ผ--1. ไฟฎๆนๅๆ ่ฝดใๅจโๅๆ ่ฝดโ้้กนๅกไธญ๏ผๅฏไปฅๆนๅๅๆ ็บฟ็ๆ ทๅผๅๅๆ ่ฝด็ๅไฝๅ่ๅดๅคงๅฐใ่ฟๅฏไปฅ้ๆฉโX่ฝดโๅโY่ฝดโ้้กนๅกๅๅซไฟฎๆนๅๆ ่ฝดใ-2. ไฟฎๆน็ฝๆ ผใๅจโ็ฝๆ ผโ้้กนๅกไธญ๏ผๅฏไปฅไฟฎๆน็ฝๆ ผ็้ข่ฒใๆ ทๅผๅ่ๅดๅคงๅฐใ--# u ่ชๅฎไนๅทฅๅ ทๆ --ๅจโๅทฅๅ ทโ่ๅไธญ้ๆฉโ่ชๅฎไนๅทฅๅ ทๆ โๆฅ่ชๅฎไนๅทฅๅ ทๆ ๏ผๅจๆๅผ็ๅฏน่ฏๆกไธญๅทฆไพงๆฏๅทฅๅ ทๆ ๅฝๅ็็ถๆ๏ผๅณไพงๆฏๅฏไพๆทปๅ ็ๅทฅๅ ท๏ผๅฏไปฅไฝฟ็จโๆๅ ฅโๆโ็งป้คโๆฅไฟฎๆนๅฝๅๅทฅๅ ท็ฎฑใ--ๅฆๆๆณๆขๅคๅๆฅ็่ฎพ็ฝฎ๏ผๅฏไปฅ็นๅปๅฏน่ฏๆกๅทฆไธ่ง็โๆขๅคๅทฅๅ ทๆ ้ป่ฎค่ฎพ็ฝฎโๆ้ฎใ--# 1.2. ไฟฎๆนๅฏน่ฑกๅฑๆง--ๅจ่ฆไฟฎๆน็ๅฏน่ฑกไธ็นๅปๅณ้ฎ๏ผ้ๆฉโๅฑๆงโๅฏน่ฏๆก๏ผๅณๅฏไฟฎๆนๅฏน่ฑกๅฑๆง๏ผ้ข่ฒใ้ข่ฒๅๆฏๅฆๆพ็คบ็ญ๏ผใ--ๅจๅฑๆงๅฏน่ฏๆกไธญ๏ผๅฏน่ฑกๆฏๅ็ฑปๆๅ็๏ผๅฆ็นใ็ด็บฟใๅ็ญ๏ผ๏ผๅฝๅฏน่ฑก็ๆฐ้่พๅคๆถ๏ผๅพๅฎนๆๅจๆไธช็ฑปๅซไธญไฟฎๆนไธไธชๆๅคไธชๅฏน่ฑกใๅฆ้ๆฉ็ฑปๅซโ็ด็บฟโ๏ผๅฏไปฅๅฏนๆๆๆญค็ฑปๅฏน่ฑก่ฟ่กไฟฎ--ๆนใ--ไฟฎๆนๆถไฝฟ็จๅณไพง็้้กนๅกๆฅไฟฎๆนๅฏน่ฑก็้ข่ฒใๆ ทๅผ็ญๅฑๆงใไฟฎๆนๅฎๆๅ็นๅปๅฏน่ฏๆกๅณไธ่ง็โๅ ณ้ญโๆ้ฎๅณๅฏใ--# 1.3. ๅฏน่ฑก็ๅณ้ฎ่ๅ--ๅฏน่ฑก็ๅณ้ฎ่ๅๅฏไปฅ่ฟไธๆญฅไฟฎๆนๆฐๅญฆๅฏน่ฑก็่กไธบๆๅฑๆงใ----ๅจๅฏน่ฑกไธ็นๅปๅณ้ฎ๏ผๅณๅฏๆพ็คบๅฏน่ฑก็ๅณ้ฎ่ๅใๅฏไปฅไฟฎๆนๅฏน่ฑก็ไปฃๆฐ่กจ่พพๅผ็ๅฝขๅผ๏ผๅฏไปฅ้ๆฉๆฏๅฆๆพ็คบๅฏน่ฑก๏ผ่ฟๅฏไปฅๆง่กๆนๅใๅ ้ค็ญๆไฝใ--# 2. ๆผ็คบๆถไฝฟ็จ--# 2.1. ไฝๅพ่ฟ็จๅฏผ่ชๆก----GeoGebra ๆไพๅนถ่ฟ่ก้่ฟๆญคๅ่ฝๅฑ็คบ GeoGebra ๆไปถ็็ปๅพๆญฅ้ชคใๅช้ๅจโๆฅ็โ่ๅไธญๅพ้โ็ปๅพ่ฟ็จๅฏผ่ชๆกโๅณๅฏๆพ็คบ่ฏฅๅ่ฝ๏ผๅฏผ่ชๆกไฝไบ็ปๅพๅบๅบ้จใ--ๆ้ฎ๏ผๅๅฐ็ฌฌไธๆญฅ๏ผ-ๆ้ฎ๏ผๅๅฐๅไธๆญฅ๏ผ-ๆ้ฎ๏ผๅ่ฟๅฐไธไธๆญฅ๏ผ-ๆ้ฎ๏ผๅ่ฟๅฐๆๅไธๆญฅ๏ผ-ๆญๆพ ๆ้ฎ๏ผ่ชๅจๆญๆพ๏ผๆญๆพ้ๅบฆๅฏ่ฎพๅฎ๏ผ๏ผ-ๆๅ ๆ้ฎ๏ผๅๆญข่ชๅจๆญๆพ๏ผ-ๆ้ฎ๏ผๆพ็คบไฝๅพ่ฟ็จใ--# 2.2. ไฝๅพ่ฟ็จ--ๅจโๆฅ็โ่ๅไธญ้ๆฉโไฝๅพ่ฟ็จโ้้กน๏ผๅฏๆพ็คบไฝๅพ่ฟ็จ็ชๅฃใ่ฏฅ็ชๅฃไปฅ่กจๆ ผ็ๅฝขๅผๅ็ฐใๅๅฉโไฝๅพ่ฟ็จโๅฏน่ฏๆกๅบ้จ็ๅฏผ่ชๆก๏ผๅฏไปฅ้ๆญฅ้็ฐๅทฒ็ปๅฎๆ็ไฝๅพ่ฟ็จใ--# ๅจโไฝๅพ่ฟ็จโๅฏน่ฏๆกไธญ๏ผๅฏไปฅไฝฟ็จ้ฎ็่ฟ่กๆไฝ๏ผ--1. ไฝฟ็จ้ฎ็็ $\uparrow$ ้ฎๅฏไปฅ็งปๅจๅฐๅไธไธชๆญฅ้ชค๏ผ-2. ไฝฟ็จ้ฎ็็ $\downarrow$ ้ฎๅฏไปฅ็งปๅจๅฐไธไธไธชๆญฅ้ชค๏ผ-3. ไฝฟ็จ้ฎ็็ Home ้ฎๅฏไปฅ็งปๅจๅฐ็ฌฌไธไธชๆญฅ้ชค๏ผ-4. ไฝฟ็จ้ฎ็็ End ้ฎๅฏไปฅ็งปๅจๅฐๆๅไธไธชๆญฅ้ชค๏ผ-5. ไฝฟ็จ้ฎ็็ Delete ้ฎๅฏไปฅๅ ้คๆ้ๆฉ็ๆญฅ้ชคใ--# ๅจโไฝๅพ่ฟ็จโๅฏน่ฏๆกไธญ๏ผไนๅฏไปฅไฝฟ็จ้ผ ๆ ่ฟ่กๆไฝ๏ผ--1. ๅๅป้ผ ๆ ๅทฆ้ฎ้ๅๆณ่ฆ้ๆฉ็ๆญฅ้ชค๏ผ-2. ๆณ่ฆ็งปๅจไฝๅพๆญฅ้ชคๅฏไปฅไฝฟ็จ้ผ ๆ ่ฟ่กๆๆฝ๏ผไฝๅฆๆ่ฏฅๆญฅ้ชคๆไพ่ต็ๅ ถไปๆญฅ้ชค๏ผๅ่ฟไธชๆไฝไธไธๅฎๅฏไปฅๅฎ็ฐ๏ผ-3. ๅจไปปไฝไธ่กไธ็นๅป้ผ ๆ ๅณ้ฎๅฏไปฅๆๅผ่ฏฅๆญฅ้ชค็ๅณ้ฎ่ๅ๏ผๅฏไปฅไฟฎๆน็ธๅ ณๅฑๆงใ--ๅจโไฝๅพ่ฟ็จโๅฏน่ฏๆกไธญๅฏไปฅๅจไปปๆไฝ็ฝฎๆๅ ฅไฝๅพๆญฅ้ชค๏ผไฝฟ็จ้ผ ๆ ๅทฆ้ฎ้ๅ่ฆๆๅ ฅ็ๆญฅ้ชค็ๅไธๆญฅ๏ผๅ ณ้ญไฝๅพ่ฟ็จๅฏน่ฏๆกๅๆฐๅปบๅฏน่ฑก๏ผ่ฟๆ ทๆฐ็ไฝๅพๆญฅ้ชคๅฐฑไผ่ขซๆๅ ฅโไฝๅพ่ฟ็จโไธญไบใ--# โไฝๅพ่ฟ็จโๅฏผๅบไธบ็ฝ้กต๏ผ--GeoGebra ๅฏไปฅๅฐโไฝๅพ่ฟ็จโๅฏผๅบไธบ็ฝ้กตใ้ฆๅ ๅจโๆฅ็โไธญๆๅผโไฝๅพ่ฟ็จโๅฏน่ฏๆก๏ผ็ถๅๅจ่ฏฅๅฏน่ฏๆก็โๆไปถโ่ๅไธญ้ๆฉโๅฏผๅบไธบ็ฝ้กตโ้้กนใ----ๅจโๅฏผๅบ๏ผไฝๅพ่ฟ็จโๅฏน่ฏๆกไธญ๏ผๅฏไปฅ่พๅ ฅโๆ ้ขโโไฝ่ โๅๆฅๆ๏ผไปฅๅๆฏๅฆ่พๅบ็ปๅพๅบ็ๅพๅ๏ผๅฎฝๅบฆๅ้ซๅบฆใๆญคๅค๏ผ่ฟๅฏไปฅ้ๆฉโๅฝฉ่ฒๆพ็คบไฝๅพ่ฟ็จโ๏ผ่ฟๆ ทๆฏไธไธชไฝๅพๆญฅ้ชคไธๆฐๅญฆๅฏน่ฑกๅฐฑไผ็จ็ธๅ็้ข่ฒๆพ็คบใ--# 2.3. ๆดๆนGeoGebra็่ฎพๅฎ--ๅฏไปฅๅจ GeoGebra ็้้กน่ๅไธญไฟฎๆนๅนถๅญๅจ็จๆท็ๅๅฅฝ่ฎพๅฎใ--ไพๅฆ๏ผๅฏไปฅๆนๅโ่ง็ๅไฝโ๏ผๅฏไปฅ้ๆฉโ่งๅบฆโๆ่ โๅผงๅบฆโใ่ฟๅฏไปฅๆดๆนโ็น็ๆ ทๅผโโๅค้ๆกๅคงๅฐโๅโ็ด่งๆ ทๅผโ็ญ็ญใ--ๆ นๆฎไฝฟ็จ้่ฆๆดๆนๅฅฝ GeoGebra ็่ฎพๅฎๅ๏ผๅฏไปฅ็นๅปโ้้กนโ่ๅไธญ็โไฟๅญ่ฎพๅฎโใGeoGebra ๅฐฑไผไฟๅญ็จๆท็ไธชไบบๅๅฅฝ่ฎพๅฎ๏ผไปฅๅๅฐฑไผไปฅ็จๆทๅๅฅฝไฝไธบ้ข่ฎพๆฅๅฏๅจ่ฝฏไปถใ--# 3. ็ผ่พๆถไฝฟ็จ--# 3.1. ๆๅฐ--# ๆๅฐ็ปๅพๅบ--GeoGebra ๅฏไปฅๆๅฐ็ปๅพๅบ็ๅพๅฝขใๅจโๆไปถโ่ๅไธญ็นๅปโๆๅฐ้ข่งโ้้กนใๅจๅผนๅบ็็ชๅฃไธญ๏ผๅฏไปฅๅกซๅโๆ ้ขโโไฝ่ โๅโๆฅๆโใ่ฟๅฏไปฅ่ฎพๅฎๆๅฐ็ๆฏไพๅคงๅฐไปฅๅๆๅฐๆฟๅผ๏ผๆจช็ๆ็ซ็๏ผใ--# ๆๅฐไฝๅพ่ฟ็จ--่ฆๆๅฐไฝๅพ่ฟ็จ๏ผ้ฆๅ ่ฆๅจโๆพ็คบโ่ๅไธญ้ๆฉๆพ็คบโไฝๅพ่ฟ็จโใ็ถๅ็นๅปโๆไปถโไธญ็โๆๅฐ้ข่งโ๏ผๅๆๅฐ็ปๅพๅบ็ฑปไผผ็๏ผๅฏไปฅ่พๅ ฅโๆ ้ขโโไฝ่ โๅโๆฅๆโไปฅๅ่ฎพๅฎ็ธๅบ้้กนใ--# 3.2. ๅฏผๅบ็ปๅพๅบ--# ็ๆๅพๅ--ๅจ GeoGebra ็ๆไปถ่ๅไธญ๏ผๅฏไปฅๅฐ็ปๅพๅบไปฅๅพ็็ๆนๅผๅญๅจๅจ็ต่ไธญใ--ๅจ็ปๅพๅบๅฎๆ็ปๅพๅทฅไฝๅ๏ผๅๅปโๆไปถโ้ๆฉไธๆ่ๅไธญ็โๅฏผๅบโไธ็โ็ๆๅพๅโใ----ๅจๆน็ชๅฃไธญ๏ผๅฏไปฅ้ๆฉๅฏผๅบๅพ็็ๆ ผๅผ๏ผๅฏไพ้ๆฉ็ๆ ผๅผๆpngใpdfใepsใsvgๅemfใ--# ๅคๅถๅพๅ--ๆๅค็งๆนๆณๅฏไปฅๅคๅถ็ปๅพๅบๅฐ็ต่็ๅช่ดด็ฐฟ๏ผ--1. ๅๅปโๆไปถโ้ๆฉไธๆ่ๅไธญ็โๅฏผๅบโไธ็โๅฐ็ปๅพๅบๆพๅ ฅๅช่ดดๆฟโ-2. ๅๅปโ็ผ่พโ่ๅ๏ผ็นๅปโๅฐ็ปๅพๅบๆพๅ ฅๅช่ดดๆฟโ--็ปๅพๅบ็ๆชๅพๅฐไปฅpngๆ ผๅผ่ขซๅคๅถๅฐ็ณป็ป็ๅช่ดดๆฟไธญ๏ผ่ฏฅๅพ็ๅฏไปฅ่ขซ็ฒ่ดดๅฐๅ ถไป็จๅบไนไธญ๏ผๅฆ๏ผOffice WordๆPowerPoint--# 3.3. ็ๆๅจๆ็ฝ้กต--GeoGebra ๅฏไปฅๅฏผๅบๆไธบๅจๆ็ฝ้กต๏ผๆไธบโ็ฝ้กตๅฝขๅผ็ๅจๆๅทฅไฝ่กจ๏ผhtml๏ผโใๅจโๆไปถโ่ๅไธญ๏ผ้ๆฉโๅฏผๅบโๅ็นๅปโ็ฝ้กตๅฝขๅผ็ๅจๆๅทฅไฝ่กจ๏ผhtml๏ผโ๏ผๆๅผโๅฏผๅบ๏ผๅจๆ็ฝ้กตโๅฏน่ฏๆกใ--1. ๅจๅฏน่ฏๆกไธญๅฏไปฅ่พๅ ฅ็ฝ้กต็โๆ ้ขโโไฝ่ โๅโๆฅๆโ-2. ๅจโไธ่ฌโ้้กนๅกไธญ๏ผๅฏไปฅๅจๅจๆๅพๅฝข็ๅๅๅ ๅ ฅไธไบๆๅญ๏ผไนๅฏไปฅๅฐ็ปๅพ็ชๅฃ็ดๆฅๆพๅจ็ฝ้กตไนไธญ๏ผๅจ็ปๅพๅบไธญๆๅผ็จๅบ็ชๅฃ็ๆ้ฎ๏ผ-3. ๅจโ้ซ็บงโ้้กนๅกไธญ๏ผๅฏไปฅ่ฎพๅฎๅจๆ็ฝ้กต็ไธไบๅ่ฝ๏ผๅฆ๏ผๅ ่ฎธไฝฟ็จ้ผ ๆ ๅณ้ฎใๅจ็ปๅพๅบไธๆไธคไธ๏ผๅฐฑๅฏไปฅๅฏๅจGeoGebra๏ผไปฅๅไฟฎๆน็จๆท็้ข๏ผๅฆ๏ผๆพ็คบโ่ๅๆ โใๆพ็คบโๅทฅๅ ทๆ โ็ญใ--่ฏดๆ๏ผๅฏผๅบๅจๆๅทฅไฝ่กจๆถไผ็ไบงไธ็งๆไปถ๏ผ--1. html ๆไปถ๏ผๆญคๆไปถๆฏๅทฅไฝ่กจๆฌ่บซ-2. ggb ๆไปถ๏ผๆญคๆไปถๅ ๆฌ GeoGebra ๅพๅฝข-3. geogebra.jar๏ผๆญคๆไปถๅ ๅซGeoGebraไปฅไฟ่ฏๅทฅไฝ่กจ็ไบๅจๅ่ฝใ--่ฟไบๆไปถๅฟ ้กปๆพๅจๅไธไธชๆไปถๅคนไธ๏ผๅจๆ็ฝ้กตๆ่ฝๆญฃๅธธ่ฟ่กใ--ๅฏผๅบ็htmlๆไปถๅฏไปฅๅจ็ฝ้กตๆต่งๅจไธๆฅ็๏ผๅฆ๏ผInternet Explorer๏ผChrome๏ผFirefox็ญ๏ผใ่ฆๆฑ็ต่ๅฟ ้กปๅฎ่ฃ Javaๆจกๆๅจๆ่ฝๆญฃๅธธๆฅ็ๅไฝฟ็จๅจๆ็ฝ้กตใ--# ็ฌฌไธ็ซ ็ปๅพๅทฅๅ ท--ๅฝ้ผ ๆ ็งปๅจๅฐ็ปๅพๅบไธญ็ๆฐๅญฆๅฏน่ฑก๏ผๅฆ๏ผ็นใๅ้ใ็บฟๆฎตใๅค่พนๅฝขใๆฒ็บฟใ็ด็บฟๅๅ้ฅๆฒ็บฟ๏ผไธๆถ๏ผ่ฏฅๅฏน่ฑกไผๅบ็ฐ้ไธญๆๆ๏ผๅนถๅบ็ฐ่ฏฅๅฏน่ฑก็่ฏดๆใ--ไธ้ขไป็ป็็ปๅพๅทฅๅ ท๏ผๅทฅๅ ท็ป๏ผๅฏไปฅ็ฑ็นๅปๅทฅๅ ทๆ ็ๆ้ฎๆฅๅฏๅจ๏ผ็นๅปๅทฅๅ ทๆ้ฎๅณไธ่ง็ๅฐ็ฎญๅคดๅฏไปฅๅผๅฏๅทฅๅ ท็ป๏ผๆ็ฑปไผผ็ๅทฅๅ ทๅฏไพ้ๆฉใ--# 1. ๅบๆฌๆไฝ--# 1.1. ้ๅๅฏน่ฑก--่ฆ้ๅๅฏน่ฑก๏ผๅ ็นๅป็งปๅจๅทฅๅ ท๏ผ็ถๅไฝฟ็จ้ผ ๆ ้ๅๅฏน่ฑกใ--ๅ ๅ ฅๆณ่ฆๅๆถ้ๅๅคไธชๅฏน่ฑก๏ผๅฏไปฅไฝฟ็จ้ผ ๆ ๆๆฝๅบไธไธชๅบๅ๏ผๅ ็นๅป็งปๅจๅทฅๅ ท๏ผ็ถๅๅ่ฆ้ๅ็ๅบๅๅทฆไธ่งๆไธ้ผ ๆ ๅทฆ้ฎ๏ผไธๆพๅผ็ดๅฐ่ฆ้ๅๅบๅ็ๅณไธ่ง๏ผๆพๅผ้ผ ๆ ๅทฆ้ฎ๏ผๆๆๅจ่ฏฅๅบๅๅ ็ๅฏน่ฑกๅฐฑ้ฝ่ขซ้ๅไบใ--ไนๅฏไปฅๆไฝCtrl้ฎ็นๅปๅคไธชๅฏน่ฑก๏ผไนๅฏไปฅ้ๅๅคไธชๅฏน่ฑกใ--# 1.2. ๅฏน่ฑกๆนๅ--ๅฆๆ่ฆๆดๆน้ๅๅฏน่ฑกๆๆฐๅขๅฏน่ฑก็ๅ็งฐ๏ผๅช้ๅจ่ฏฅๅฏน่ฑกไธ็นๅป้ผ ๆ ๅณ้ฎ๏ผ้ๆฉโๆนๅโๆๅผๅฏน่ฏๆก๏ผ่พๅ ฅๆฐ็ๅ็งฐ๏ผ็นๅปโ็กฎๅฎโๅณๅฏใ--# 2. ไธ่ฌๅทฅๅ ท----# ๅคๅถๆ ทๅผ--ๆญคๅทฅๅ ทๅฏไปฅๅคๅถๅฏน่ฑก็ๆ ทๅผ๏ผๅฆ๏ผ้ข่ฒใๅคงๅฐใ็บฟๅฎฝ๏ผใ--ๅ ้ๅๆณ่ฆๅคๅถๆ ทๅผ็ๅฏน่ฑก๏ผ็ถๅ็นๅปๅ ถไปๅฏน่ฑกใ----# ๅ ้ค--็นๅป่ฆๅ ้ค็ๅฏน่ฑกใ----# ็งปๅจ--ไฝฟ็จ้ผ ๆ ๆๆฝๅฏน่ฑกใๅจ็งปๅจๆจกๅผไธ๏ผไฝฟ็จ้ผ ๆ ็นๅปไธไธชๅฏน่ฑก๏ผๅฏไปฅๆ Del ้ฎๅ ้คๅฏน่ฑก๏ผไนๅฏไปฅไฝฟ็จๆนๅ้ฎ็งปๅจๅฏน่ฑกใ----# ็งปๅจ็ปๅพๅบ--ไฝฟ็จ้ผ ๆ ๆๆฝ็งปๅจ็ปๅพๅบๆฅๆนๅๅฏ่ง่ๅดใ--ๅจๆญคๆจกๅผไธไฝฟ็จ้ผ ๆ ๆๆฝๅๆ ่ฝด๏ผๅฏไปฅๆนๅๅๆ ่ฝดๆฏไพใ----# ่ฎฐๅฝๅฐ็ตๅญ่กจๆ ผ--ๆญคๅทฅๅ ท่ฝๅคๅจๅฏน่ฑก็งปๅจ็ๅๆถ๏ผๅฐ่ฏฅๅฏน่ฑก็ๅๅๆฐๅผ่ฎฐๅฝๅจ็ตๅญ่กจๆ ผไธญใๆญคๅทฅๅ ทไป ๅฏนๆฐๅผใ็นใๅ้ๆๆใ--GeoGebraไผไฝฟ็จ็ตๅญ่กจๆ ผ็ๅไธคไธชๅๅ ๆ ผๆฅ่ฎฐๅฝ่ขซ้ๅๅฏน่ฑก็ๆฐๅผใใ--# a=ๅคๆญๅฏน่ฑกๅ ณ็ณป--้ๅไธคไธชๅฏน่ฑก๏ผๅจๅผนๅบ็ Relation ็ชๅฃไธญๅณๅฏๆพ็คบไบ่ ็ๅ ณ็ณปใ๏ผๅฆไธๅพ๏ผไธค็นไธ็ธ็ญ๏ผ------# ็ป็น่ฝฌๅจ--ๅ ้ๅๆ่ฝฌ็ไธญๅฟ็น๏ผ็ถๅ็จ้ผ ๆ ๆๆฝๅฏน่ฑกไปฅๆญคไธญๅฟๆ่ฝฌใ----# ๆพ็คบๆ้่ๆ ็ญพ--็นๅปๅฏน่ฑกๆพ็คบๆ้่ๅ ถๆ ็ญพใ----# ๆพ็คบๆ้่ๅฏน่ฑก--็น้ๅฏน่ฑกๆฅๅๆขๅ ถๆพ็คบๆ้่็ถๆใ็น้ๅฎๅ๏ผ้่ฆๆ Esc ้ฎใ----# ๆพๅคง--ๆไธไธ็ปๅพๅบๅณๅฏๆพๅคง๏ผๆไฝฟ็จ้ผ ๆ ๆป่ฝฎ๏ผใ----# ็ผฉๅฐ--ๆไธไธ็ปๅพๅบๅณๅฏ็ผฉๅฐ๏ผๆไฝฟ็จ้ผ ๆ ๆป่ฝฎ๏ผใ----# ๅฏน่ฑก็พค็ปๆพ็คบ้่ๆ้ฎ--็นๅป็ปๅพๅบ๏ผไผ็ๆไธไธชๅฏไปฅๆพ็คบๆ้่ๅฏน่ฑก็พค็ป็้ๆฉๆ้ฎ๏ผๅฏไปฅๅจ็ชๅฃไธญ่ฎพ็ฝฎๅชไบๅฏน่ฑกๅ่ฏฅๆ้ฎๆงๅถใ----# ่ฝจ่ฟน--็น้ไธไธชไผ้็็นAๅๅ็็นB๏ผ็ถๅ็นๅป็นA๏ผๅฐฑไผไบง็B็่ฝจ่ฟนใ--# 3. ็น----# ไบค็น--ๅๅซ้ๆฉไธคไธช็ธไบค็ๅฏน่ฑก๏ผๆ่ ็ดๆฅ็จ้ผ ๆ ็นๅบไบค็นใ--ๅฏนๅ็บฟๆฎตใๅฐ็บฟๆ่ ๅผง๏ผๅฏไปฅ้ๆฉๆฏๅฆ่ฆ่ฝๅจๅค้จไบค็นใ่ฟๅฏไปฅ็จไบๅๅบ่ฝๅจๅฏน่ฑกๅปถ้ฟ็บฟไธ็็นใๅฆ๏ผๅฐ็บฟๆ็บฟๆฎตๅปถไผธๅฐฑๆฏไธๆก็ด็บฟใ----# ไธญ็นๆไธญๅฟ็น--ๅฏไปฅ็น้ไธค็นๆไธๆก็บฟๆฎตไปฅๅพๅฐไธญ็น๏ผไนๅฏไปฅ็น้ไธๆกๅ้ฅๆฒ็บฟไปฅๅพๅฐ่ฏฅๅ้ฅๆฒ็บฟ็ไธญๅฟ็นใ----# ๆฐ็น--็นๅป็ปๅพๅบ็ฉบ็ฝๅค๏ผๆ่ ็นๅปๆๅฏน่ฑกใ--ๅฝ็นๅป็บฟๆฎตใ็ด็บฟใๅค่พนๅฝขใๅ้ฅๆฒ็บฟใๅฝๆฐๆๆฒ็บฟๅฏไปฅๅจๅฏน่ฑกไธๆฐๅขไธ็นใ--ๅฝ็นๅปไธคๅฏน่ฑก็ธไบคๅคๆถๅฏๅปบ็ซไบค็นใ--# 4. ็บฟ--# 4.1. ็ด็บฟ----# ็ด็บฟ๏ผ่ฟไธค็น๏ผ--็น้ไธค็นAๅB๏ผๅฏไปฅๅปบ็ซ่ฟ็นAๅB็็ด็บฟ๏ผไปฃๆฐๅบไผๆพ็คบ็ธๅ ณ็็ด็บฟๆน็จใ----# ๅนณ่ก็บฟ--็น้ไธๆก็ด็บฟaๅไธ็นA๏ผๅฏไปฅ็ปๅบไธๆก่ฟ็นAๅนถๅนณ่กไบa็็ด็บฟใ----# ๅ็บฟ--็น้ไธๆก็ด็บฟaๅไธ็นA๏ผๅปบ็ซไธๆก่ฟ็นAไธๅ็ดไบa็็ด็บฟใ----# ไธญๅ็บฟ--็น้ไธๆก็บฟๆฎตaๆไธค็นAๅBๅปบ็ซไธญๅ็บฟ๏ผๅ็ดๅนณๅ็บฟ๏ผใ----# ่งๅนณๅ็บฟ--ๆไธค็งๆนๅผๅฏไปฅไฝๅบ่งๅนณๅ็บฟ๏ผ--1. ็น้ไธ็น A, B, C, ๅฐ็ๆไปฅ B ไธบ้กถ็น, ไธ็นๅดๆ็่ง็่งๅนณๅ็บฟ-2. ็น้ไธคๆก็บฟๆฎต๏ผ็ๆๅ ถ่งๅนณๅ็บฟ----# ๅ็บฟ--ๆไธ็งๆนๅผๅฏไปฅไฝๅบๅ็บฟ๏ผ--1. ้ๅไธ็นAๅไธๅ้ฅๆฒ็บฟa๏ผๅฏไปฅ็ๆ่ฟ็นAๅไธa็ธๅ็ๅ็บฟ-2. ้ๅไธๆก็บฟ c ๅไธๅ้ฅๆฒ็บฟ a๏ผๅฏไปฅ็ๆๅนณ่กไบ c ไธ a ็ธๅ็ๅ็บฟ-3. ้ๅไธ็นAๅไธๅฝๆฐf๏ผๅฏไปฅ็ๆfๅจ $\mathbf{x} = \mathbf{x}$ ๏ผA๏ผๅค็ๅ็บฟ----# ๆ็บฟๆๅพ็บฟ--1. ็น้ไธ็นๅๅ้ฅๆฒ็บฟ๏ผๅฏไปฅ็ปๅบๆ็บฟ-2. ้ๅไธ็บฟๅๅ้ฅๆฒ็บฟ๏ผๅฏไปฅ็ปๅบๅพ็บฟ----# ๅๅฝ็ด็บฟ--็จ้ผ ๆ ๆๆฝ้ๅไธไบ็นๅฏไปฅๅพๅฐๅฎไปฌ็ๅๅฝ็ด็บฟ๏ผไปฃๆฐๅบไผๆพ็คบๅๅฝๆน็จใ--# 4.2. ็บฟๆฎต----# ็บฟๆฎต๏ผ่ฟไธค็น๏ผ--้ๅ็นAๅ็นB๏ผๅปบ็ซ็บฟๆฎตABใๅจไปฃๆฐๅบไผๆพ็คบไปฃๆฐ็้ฟๅบฆใ----# ็บฟๆฎต๏ผๆๅฎ่ตท็นใ้ฟๅบฆ๏ผ--็น้็น A ไฝไธบ็บฟๆฎต็่ตท็น๏ผๅจๅบ็ฐ็็ชๅฃไธญ่พๅ ฅ้ฟๅบฆ๏ผ็นๅปโ็กฎๅฎโใ--# 4.3. ๅฐ็บฟ----# ๅฐ็บฟ๏ผ่ฟไธค็น๏ผ--็น้ไธค็น A ๅ B๏ผๅปบ็ซไปฅ A ไธบ่ตท็น้่ฟ B ็ๅฐ็บฟ๏ผๅจไปฃๆฐๅบไผๆพ็คบ็ธๅ ณ็ๆน็จใ--# 5. ๅ้----# ๅ้๏ผ่ฟไธค็น๏ผ--็น้ๅ้็่ตท็นๆ็ป็นใ----# ๅ้๏ผๆๅฎ่ตท็นใๅ้๏ผ--็น้่ตท็น A ๅๅฆไธไธชๅ้ v ไปฅๅปบ็ซ็น $\mathrm{B} = \mathrm{A} + \mathrm{v}$ , ๅฏไปฅๅๅบไป A ๅฐ B ็ๅ้ใ--# 6. ๅ้ฅๆฒ็บฟ----# ๅ๏ผๆๅฎๅๅฟไธไธ็น๏ผ--็น้ไธ็น M ๅไธ็น P๏ผๅฏไปฅ็ปๅบไปฅ M ไธบๅๅฟ่ฟ็น P ็ๅใ----# ๅ๏ผๆๅฎๅๅฟไธๅๅพ๏ผ--็น้ๅๅฟM๏ผๅจๅบ็ฐ็็ชๅฃไธญ่พๅ ฅๅๅพ๏ผ็นๅปโ็กฎๅฎโ๏ผๅณๅฏ็ปๅบๆๅฎๅๅฟไธๅๅพ็ๅใ----# ๅ๏ผ่ฟไธ็น๏ผ--็น้ไธ็นA๏ผB๏ผCๅฏไปฅ็ปๅบ่ฟๆญคไธ็น็ๅใ----# ๅ๏ผๅๅพ้ฟใๅๅฟ๏ผ--ๅ ้ๆฉไธๆกไฝไธบๅๅพ้ฟ็ๅๅพ๏ผๅๆๅฎๅๅฟ็ปๅใ----# ๅ้ฅๆฒ็บฟ๏ผ่ฟไบ็น๏ผ--็น้ไบไธช็น๏ผ็ๆไธไธช่ฟๆญคไบ็น็ๅ้ฅๆฒ็บฟใ----# ๆคญๅ--็น้ไธค็นไฝไธบๆคญๅ็็ฆ็น๏ผ็ถๅ้ๅฎๆคญๅไธไธ็น๏ผ็ปๅบๆคญๅใ----# ๅๆฒ็บฟ--็น้ไธค็นไฝไธบๅๆฒ็บฟ็็ฆ็น๏ผ็ถๅ้ๅฎ่ฝๅจๅๆฒ็บฟไธ็ไธ็น๏ผ็ปๅบๅๆฒ็บฟใ----# ๆ็ฉ็บฟ--็น้ไธ็นๅๆ็ฉ็บฟ็ๅ็บฟ๏ผ็ปๅบๆ็ฉ็บฟใ--# 7. ๅไธๅค่พนๅฝข--# 7.1. ๅๅผงไธๆๅฝข--ๅๅผง็ไปฃๆฐๅผๅณไธบๅ ถ้ฟๅบฆ๏ผๆๅฝข็ไปฃๆฐๅผไธบๅ ถ้ข็งฏใ----# ๅๅผง๏ผๆๅฎๅๅฟไธไธค็น๏ผ--ๅ ้ๅๅๅผง็ๅๅฟM๏ผ็ถๅ็น้่ตท็นAๅ็ป็นB๏ผ็ปๅบๅๅผงABใ----# ๆๅฝข๏ผๆๅฎๅๅฟไธไธค็น๏ผ--ๅ ้ๅๆๅฝข็ๅๅฟM๏ผ็ถๅ็น้่ตท็นAๅ็ป็นB๏ผ็ปๅบๆๅฝขใ----# ๅๅผง๏ผ่ฟไธ็น๏ผ--็น้ไธ็น A, B ๅ C ๅปบ็ซ้่ฟไธ็น็ๅๅผงใ็น A ไธบๅๅผง่ตท็น, ็น B ๅจๅๅผงไธ, ็น C ไธบๅๅผง็็ป็นใ----# ๆๅฝข๏ผ่ฟไธ็น๏ผ--็น้ไธ็นA๏ผBๅCๅปบ็ซๆๅฝขใ็นAไธบๆๅฝขๅๅผง่ตท็น๏ผ็นBๅจๆๅฝขๅๅผงไธ๏ผ็นCไธบๆๅฝขๅๅผง็็ป็นใ----# ๅๅ๏ผ่ฟไธค็น๏ผ--็น้ไธค็นAๅB๏ผๅปบ็ซไปฅ็บฟๆฎตABไธบ็ดๅพ็ๅๅใ--# 7.2. ๅค่พนๅฝข----# ๅค่พนๅฝข--่ณๅฐ็น้ไธไธช็นไฝไธบๅค่พนๅฝข็้กถ็น๏ผๆๅๅ็นไธไธ็ฌฌไธไธช้กถ็นไปฅๅปบ็ซไธไธชๅฐ้ญ็ๅค่พนๅฝขใๅจไปฃๆฐๅบไผๆพ็คบๅค่พนๅฝข็้ข็งฏใ----# ๆญฃๅค่พนๅฝข--็น้ไธค็น A ๅ B ๅนถๅจๅบ็ฐ็็ชๅฃไธญ่พๅ ฅๆดๆฐ n๏ผๅณๅพๅฐไธไธชๆ n ไธช้กถ็น๏ผ็บฟๆฎต AB ไธบ่พน้ฟ็ๆญฃๅค่พนๅฝขใ--# 8. ๆฐๅผไธ่งๅบฆ----# ๆต้่งๅบฆ--่ฏฅๅทฅๅ ทๅฏไปฅๆต้ไธ็น้ด็่งๅบฆ๏ผไธคๆก็บฟๆฎตใไธคๆก็ด็บฟใไธคๅ้็่งๅบฆๅๅค่พนๅฝข็ๅ ่งใ----# ็ปๆๅฎ่ง--็น้ไธค็น A ๅ B, ๅจ็ชๅฃไธญ่พๅ ฅ่งๅบฆๅคงๅฐ, ๅฐๅปบ็ซ็น C ๅ่งๅบฆ $\alpha, \alpha$ ไธบ่ง ABCใ----# ๆต้้ข็งฏ--ๅฏไปฅๆต้ๅค่พนๅฝขใๅๆ่ ๆคญๅ็้ข็งฏ๏ผๅฐ้ข็งฏๅผๆพ็คบๅจ็ปๅพๅบไธญใ----# ๆต้่ท็ฆป--ๅฏไปฅๆต้ไธค็นใไธค็ด็บฟๆ่ ไธ็นไธไธ็ด็บฟ้ด็่ท็ฆป๏ผๅฐ่ท็ฆปๅผๆพ็คบๅจ็ปๅพๅบไธญใไนๅฏไปฅๆต้็บฟๆฎต้ฟๅบฆใๅ็ๅจ้ฟๆ่ ๅค่พนๅฝขๅจ้ฟใ----# ๆ็--ๅฏไปฅๆฑๅบ็ด็บฟ็ๆ็๏ผๅฐๆ็ๅผๆพ็คบๅจ็ปๅพๅบไธญใ----# ๆปๆ--็นๅป็ปๅพๅบ็ไปปๆไฝ็ฝฎๅฏไปฅๅปบ็ซๆฐๅผๆ่งๅบฆๆปๆ๏ผๅจๅบ็ฐ็็ชๅฃไธญ๏ผๅฏไปฅๆๅฎๅ็งฐใๆฐๅผๆ่งๅบฆ็ๅๅๅบ้ด๏ผ่งๅบฆๆ่ ้ฟๅบฆ็ๅข้๏ผ่ฟๅฏไปฅ่ฎพๅฎๆปๆๆฐดๅนณๆๅ็ดไปฅๅๅฎฝๅบฆใ--ๆฐๅผๆปๆ็ไฝ็ฝฎๅจ็ปๅพๅบๅฏไปฅๆฏ็ปๅฏนๅฎไฝ็๏ผๆปๆๅบๅฎๅจ็ปๅพๅบไธ๏ผไธไผๅ ไธบๆพๅคง็ผฉๅฐ่ๆนๅๆๆฏๆถๆฃ๏ผไนๅฏไปฅๆฏ็ธๅฏนไบๅๆ ็ณป็ใ--# 9. ๅ ไฝๅๆข--ไธๅๅ ไฝๅๆขๅฏ็จไบ็นใ็ด็บฟใๅ้ฅๆฒ็บฟใๅค่พนๅฝขๅๅพ็ใ----# ไปฅๆ็นไธบไธญๅฟไผธ็ผฉๅฏน่ฑก--ๅ ้ๅ่ฆ่ฟ่กไผธ็ผฉๅๆข็ๅฏน่ฑก๏ผๅจ็น้็ผฉๆพไธญๅฟ๏ผๅจ็ชๅฃไธญ่พๅ ฅ็ผฉๆพๆฏไพใ----# ๅ่ฝดๅฏน็งฐ--ๅ ้่ฆๅ่ฝดๅฏน็งฐ็ๅฏน่ฑก๏ผๅ้ๅฏน็งฐ่ฝดใ----# ๅ็นๅฏน็งฐ--ๅ ้่ฆๅๅฏน็งฐ็ๅฏน่ฑก๏ผๅ้ๅฏน็งฐไธญๅฟใ----# ๅๆผ--่ฏฅๅทฅๅ ทๅฏไปฅ่ฎฉไธไธช็นๅฏนไธไธชๅ่ฟ่กๅๆผใๅ ้ๅ่ฆ่ฟ่กๅๆผ็็น๏ผๅๆๅฎๅๆๅฎไธบๅๆผๅใ----# ๆ่ฝฌ--ๅ ้ๅ่ฆ่ฟ่กๆ่ฝฌ็ๅฏน่ฑก๏ผๅ็น้ๆ็นไฝไธบๆ่ฝฌไธญๅฟ๏ผๅจ็ชๅฃไธญ่พๅ ฅๆ่ฝฌ่งๅบฆใ----# ๅนณ็งป--ๅ ้ๅ่ฆๅนณ็งป็ๅฏน่ฑก๏ผๅ็นๅปๅนณ็งป็ๅ้ใ--# 10. ๆๅญ--# ABC ๆๅ ฅๆๅญ--ๆญคๅทฅๅ ทๅฏไปฅๅจ็ปๅพๅบไธญ่พๅ ฅ้ๆๆๅญ๏ผ็บฏๅญ็ฌฆ๏ผๅจๆๆๅญ๏ผๅ ๅซๅ้๏ผๆLaTexๅ ฌๅผใ้ฆๅ ๏ผ้่ฆๆๅฎๆๅญ็ไฝ็ฝฎ๏ผ็ถๅๅจ็ชๅฃไธญ่พๅ ฅๆๅญใ--ๅจๆๆๅญๅ ๅซๅฏน่ฑก็ๆฐๅผใๅฏไปฅ็จ้ฎ็่พๅ ฅ้ๆ้จๅ๏ผๅฆ๏ผPoint A=๏ผ็ถๅ็นๅป่ฆๆพ็คบๅ ถๆฐๅผ็ๅฏน่ฑกใGeoGebra ไผๅจๅ้ๆๅญไธญ่ชๅจๅขๅ ๅฟ ่ฆ็่ฏญๆณ็ปๆ๏ผๆๅญ็้ๆ้จๅๅ ไธๅๅผๅทๅๅ ไธ+่ฟไธชๅญ็ฌฆๆฅ่ฟๆฅๆๅญ็ไธๅ้จๅใๅฆไธไพ๏ผ----<table><tr><td>่พๅ ฅ</td><td>่ฏดๆ</td></tr><tr><td>ๆๅญ</td><td>ๆพ็คบโๆๅญโ๏ผ้ๆๆๅญ๏ผ</td></tr><tr><td>โPoint A=โ+A</td><td>ๅจๆๆพ็คบโPoint A=(1.19,1.47)โ๏ผๅๆ ไผ้็A็น็ไฝ็ฝฎ่ๅๅ๏ผ</td></tr><tr><td>โa=โ+a+โcmโ</td><td>ๅจๆๆพ็คบโa=1cmโ</td></tr></table>--ๅฆๆๅฏน่ฑก็ๅ็งฐๅทฒ็ปๅญๅจ๏ผๅฏไปฅๅปบ็ซ้ๆๆๅญไฝไธบๅฏน่ฑก็ๅ็งฐ๏ผไฝ้่ฆไฝฟ็จๅๅผๅท๏ผๅฆๅGeoGebraไผ่งไธบๅจๆๆๅญ๏ผๆพ็คบๅฏน่ฑก็ๆฐๅผใไฝๆฏๅฆๆ่พๅ ฅ็ๆๅญไธๆฏๅทฒ็ปๅญๅจ็ๅฏน่ฑกๅ็งฐ๏ผๅไธ้่ฆๅ ๅๅผๅทใ--ๅจGeoGebraไธญๅฏไปฅ่พๅ ฅLaTexๅ ฌๅผ๏ผๅจ็ชๅฃไธญๅพ้โLaTexๅ ฌๅผโๅณๅฏ่พๅ ฅ็ฌฆๅLaTex่ฏญๆณ็ๅ ฌๅผใไธ้ข้ๅฝ่ฏดๆไธไบ้่ฆ็LaTex่ฏญๅฅ๏ผ--<table><tr><td>LaTex ่พๅ ฅ</td><td>่พๅบ็ปๆ</td></tr><tr><td>a \cdot b</td><td>a ยท b</td></tr><tr><td>\frac{a}{b}</td><td></td></tr><tr><td>\sqrt{x}</td><td></td></tr><tr><td>\sqrt[n]{x}</td><td></td></tr><tr><td>\vec{v}</td><td></td></tr><tr><td>\overline{overline{1}}</td><td></td></tr><tr><td>x^2</td><td></td></tr><tr><td>a_{1}</td><td>x1</td></tr><tr><td>\sin\alpha\beta + \cos\alpha\beta</td><td>sin a + cos b</td></tr><tr><td>\int_{a}^{b} xdx</td><td>\(\int_{a}^{b}x dx\)</td></tr><tr><td>\sum_{i=1}^{n} i^2</td><td>\(\sum_{i=1}^{n} i^2\)</td></tr></table>--# 11. ๅพ็----# ๆๅ ฅๅพ็--่ฏฅๅทฅๅ ทๅฏไปฅๅจ็ปๅพๅบๆๅ ฅๅพ็ใๅ ๅจ็ปๅพๅบ้ๅฎไฝ็ฝฎ๏ผ็ถๅๅบ็ฐโๆๅผโ็ชๅฃ๏ผ้ๆฉ่ฆๆๅ ฅ็ๅพ็๏ผ็นๅปโๆๅผโใ--ไฝ็ฝฎ๏ผๅพ็็ไฝ็ฝฎๅฏไปฅๆฏ็ปๅฏนๅฎไฝไนๅฏไปฅๆฏ็ธๅฏนไบๅๆ ็ณป็๏ผๅฏไปฅๅจๅพ็็โๅฑๆงโไธญ่ฎพ็ฝฎใไนๅฏไปฅๅจโๅฑๆงโไธญๆๅฎไธไธช้กถ็นๆฅ่ฎพ็ฝฎๅพ็ไฝ็ฝฎ๏ผ่ฟๆ ทๅฐฑๅฏไปฅ็ผฉๆพใ้ๆฉ็่ณๆญๆฒๅพ็ไบใ--่ๆฏๅพ๏ผๅฏไปฅๅจโๅฑๆงโไธญๅฐๅพ็่ฎพ็ฝฎไธบ่ๆฏๅพ๏ผ่ๆฏๅพไผๆพๅจๅๆ ่ฝดๅ๏ผไธๆ ๆณ่ขซ้ผ ๆ ้ๅใ--้ๆๅบฆ๏ผไธบไบไฝฟๅพ็ๅ้ข็ๅฏน่ฑกๆๅๆ ่ฝดๅฏ่ง๏ผๅพ็ๅฏไปฅ่ฎพๅฎไธบ้ๆ๏ผ้ๆๅบฆๅฏไปฅๅจโๅฑๆงโไธญ่ฎพๅฎ๏ผไป $0\%$ ๅฐ $100\%$ ใ--# ็ฌฌๅ็ซ ไปฃๆฐ่พๅ ฅ--ๆฐๅญฆๅฏน่ฑก็ไปฃๆฐ็นๆง๏ผๅฆ๏ผๆฐๅผใๅๆ ใๆน็จๅผ๏ผ้ฝไผๅจๅทฆไพง็โไปฃๆฐๅบโๆพ็คบใๅฆๆ่ฆๅปบ็ซๆ่ ไฟฎๆนๅฏน่ฑก๏ผๅฏไปฅไฝฟ็จGeoGebraๅบ้จ็โๅฝไปคๆกโ็ดๆฅ่พๅ ฅไปฃๆฐๅผใ--ๅจๅฝไปคๆกไธญ่พๅ ฅไปฃๆฐๅผๅ๏ผๆEnterๅณๅฏใๆEnter้ฎๅฏไปฅๅจๅฝไปคๆกๅ็ปๅพๅบไน้ดๅฟซ้ๅๆข๏ผ่ไธ้่ฆไฝฟ็จ้ผ ๆ ็นๅปใ--# 1. ๅบๆฌๆไฝ--# 1.1. ๅฏน่ฑกๅฝๅ--ไฝฟ็จๅฝไปคๆกๅปบ็ซไธไธชๅฏน่ฑกๆถ๏ผๅฏไปฅ็ปไบๅฏน่ฑก็นๅฎ็ๅ็งฐ๏ผ--ใ็นใๅจ GeoGebra ไธญ๏ผ็น็ๅฝๅๆฏ็จๅคงๅๅญๆฏ่กจ็คบ็๏ผๅช่ฆๅจๅๆ ๅ้ขๅ ไธๅ็งฐไธ็ฌฆๅทๅณๅฏใ--ๅฆ๏ผ $\mathbf{C} = (2,4)$ ๏ผ $\mathrm{P} = (1;180^{\circ})$ ๏ผComplex $= 2 + \mathrm{i}$--ใๅ้ใไธบไบๅบๅซ็นๅๅ้๏ผๅจGeoGebraไธญไฝฟ็จๅฐๅๅญๆฏๅฝๅๅ้ใๅๆ ท๏ผๅจๅ้ๅๆ ๅๅ ไธๅ็งฐๅ็ญๅทๅณๅฏใ--ๅฆ๏ผ $\mathrm{v} = (1,3)$ ๏ผ $\mathbf{u} = (3;90^{\circ})$ ๏ผComplex $= 1 - 2\mathrm{i}$--ใ็ด็บฟใๅใๅ้ฅๆฒ็บฟใ่ฟไบๅฏน่ฑก็ๅฝๅๆฏๅจๆน็จๅผๅ้ขๅ ไธๅ็งฐไธๅๅทใ--ๅฆ๏ผg: $\mathrm{y} = \mathrm{x} + 3$ ๏ผc:(x-1) $\hat{\mathbf{\alpha}} 2+$ (y-2) $\hat{\mathbf{\alpha}} 2 = 4$ ๏ผhyp: $\mathrm{x^2 - y^2} = 2$--ใๅฝๆฐใๅจๅฝๆฐๅผๅ้ขๅ ไธๅ็งฐๅณๅฏใ--ๅฆ๏ผf๏ผx๏ผ=2x+4๏ผg๏ผx๏ผ=x^2๏ผtrig๏ผx๏ผ=sin๏ผx๏ผ--ๅฆๆไธๆๅจ่พๅ ฅๅฏน่ฑกๅ็งฐ๏ผGeoGebraไผๆๅญๆฏ้กบๅบ่ชๅจๅฝๅ๏ผ--ๅฆๆๅฏน่ฑกๅ็งฐๅ ๅซไธๆ ๅฏไปฅไฝฟ็จโ_โๆฅๅปบ็ซไธๆ ๏ผๅฆ๏ผ่พๅ ฅA_1ๅฏไปฅๅพๅฐ $\mathrm{A}_{1}$--# 1.2. ไฟฎๆนๆฐๅผ--ๆไธค็งๆนๆณๅฏไปฅๆนๅ่ช็ฑๅฏน่ฑก็ๆฐๅผ๏ผ--1. ไฟฎๆนๅฏน่ฑก็ๆฐๅผ๏ผๅฏไปฅๅจๅฝไปคๆก่พๅ ฅๅ็งฐไธๆฐ็ๆฐๅผ--ๅฆ๏ผๅฆๆ่ฆไฟฎๆน $a = 3$ ๏ผๅฏไปฅๅจๅฝไปคๆก่พๅ ฅ $a = 5$ ๏ผ็ถๅๆ Enter ้ฎๅณๅฏใ--2. ็ผ่พไปฃๆฐๅผ๏ผไฝฟ็จ็งปๅจๅทฅๅ ทๅจไปฃๆฐๅบๅๅปๅฏน่ฑก๏ผๅณๅฏ็ผ่พๅฏน่ฑก็ๆฐๅผ๏ผ็ผ่พๅฎๆๅๆ Enter ๅณๅฏใ--ๅฆๆ็ดๆฅไฟฎๆน่ช็ฑๅฏน่ฑก็ๆฐๅผ๏ผๅ็ธๅบ็ๆดพ็ๅฏน่ฑก็ๆฐๅผไนไผ่ท็ๆนๅใ--# 1.3. ๆพ็คบๅฝไปคๆก็่พๅ ฅ่ฎฐๅฝ--ๅฐ้ผ ๆ ็งป่ณๅฝไปคๆก๏ผๅฏไปฅไฝฟ็จ้ฎ็็ไธไธ้ฎ๏ผไธๆญฅไธๆญฅๆต่งๅ ๅ่พๅ ฅ็ๅฝไปคใ--็นๅปๅฝไปคๆกๅทฆไพง็ๅธฎๅฉๆ้ฎ๏ผๅฏไปฅๆพ็คบๅฝไปคๆก็่ฏดๆใ----# 1.4. ๅฝไปคๆกๆๅ ฅๅ็งฐใๆฐๅผๆๅฏน่ฑก็ๅฎไน--ใๆๅ ฅๅฏน่ฑก็ๅ็งฐใไฝฟ็จ็งปๅจๅทฅๅ ทๅนถ็น้่ฆๆๅ ฅๅ็งฐ็ๅฏน่ฑก๏ผ็ถๅๆไธ้ฎ็็ F5 ้ฎใๅจๆไธ F5 ้ฎไนๅ๏ผๅฏน่ฑก็ๅ็งฐไผ่ขซ้ๅ ๅฐๅทฒๅจๅฝไปคๆก่พๅ ฅ็ๆน็จๅผใ--ใๆๅ ฅๅฏน่ฑก็ๆฐๅผใๆไธค็งๆนๅผๅฏไปฅๆๅ ฅๅฏน่ฑก็ๆฐๅผ๏ผ--1. ๅจๅฏน่ฑกไธ็นๅป้ผ ๆ ๅณ้ฎ๏ผๅจ่ๅไธญ้ๅโๅคๅถๅฐๅฝไปคๆกโใ-2. ไฝฟ็จ็งปๅจๅทฅๅ ทๅนถ็น้่ฆๆๅ ฅๆฐๅผ็ๅฏน่ฑก๏ผ็ถๅๆไธ้ฎ็ไธ็ F4 ้ฎใ--ใๆๅ ฅๅฏน่ฑก็ๅฎไนใๆไธค็ง็ฆๆญปๅฏไปฅๆๅ ฅๅฏน่ฑก็ๅฎไน๏ผ--1. ๆไฝ Alt ็นๅปๅฏน่ฑกๆฅๆๅ ฅๅฏน่ฑก็ๅฎไนใ-2. ไฝฟ็จ็งปๅจๅทฅๅ ท็น้่ฆๆๅ ฅๅฎไน็ๅฏน่ฑก๏ผ็ถๅๅๆไธ้ฎ็ไธ็ F3 ้ฎใ--# 2. ๆฐๅญๅ่ง--GeoGebra ๅฏไปฅ่พๅ ฅๆฐๅผใ่งใ็นใๅ้ใ็บฟๆฎตใ็ด็บฟใๅ้ฅๆฒ็บฟใๅฝๆฐๅๅๆฐๆฒ็บฟใๅฏไปฅๅจๅฝไปคๆก่พๅ ฅ่ฟไบๅฏน่ฑก๏ผ่พๅ ฅๅๆ ๆๆน็จๅผๅๆ Enter ๅณๅฏใ--# 2.1. ๆฐๅญ--ๅฏไปฅๅฉ็จๅฝไปคๆกๅปบ็ซไธไธชๆฐๅญ๏ผๅฆๆๅช่พๅ ฅไธไธชๆฐๅญ๏ผๅฆ๏ผ2๏ผGeoGebraไผๅฐๆๅฎไธไธชๅฐๅๅญๆฏไฝไธบๅฎ็ๅ็งฐใๅฆๆ่ฆ็ปๆฐๅญๆ็กฎ็ๅฝๅ๏ผๅฏไปฅๅ ่พๅ ฅๅ็งฐ๏ผๅ่พๅ ฅ็ญๅทๅๆฐๅญใๅฏไปฅไฝฟ็จๅฝไปคๆกๅณไพง็ไธๆ่ๅ้็จๆไบๅธธๆฐ๏ผๅฆๅๅจ็ $\pi$ ๏ผใ--------------------# 2.2.่ง--ๅฏไปฅ่พๅ ฅ่งๅบฆโยฐโๆ่ ๅผงๅบฆโradโ๏ผๅฏไปฅไฝฟ็จpi่พๅ ฅฯ--ๅฏไปฅไฝฟ็จๅฟซๆท้ฎ่พๅ ฅยฐๅฯ๏ผAlt+O๏ผๅฏไปฅ็ๆ็ฌฆๅทโยฐโ๏ผAlt+P๏ผๅฏไปฅ็ๆ็ฌฆๅทโฯโใ--ๅฆ๏ผ่ง $\alpha$ ๅฏไปฅ่พๅ ฅ่งๅบฆ๏ผ $\alpha = 60^{\circ}$ ๏ผๆๅผงๅบฆ๏ผ $\alpha = \mathrm{pi} / 3$ ๏ผ--# ใๆปๆๅๆนๅ้ฎใ--ๅจ็ปๅพๅบๅฏไปฅไฝฟ็จโๆปๆโๆฅๅฎ็ฐๆฐๅญๅ่งๅบฆ็ๅๅ๏ผ่ๅจไปฃๆฐๅบๅไฝฟ็จๆนๅ้ฎๆฅๆนๅๆฐๅญๅ่งๅบฆใ--# ใ้ๅถๆฐๅผ่ๅดใ--ๆฐๅญไธ่งๅบฆ็ๅๅๅฏไปฅๆๅฎไธไธชๅบ้ด๏ผไฝฟ็จๆปๆ็โๅฑๆงโๆฅ่ฎพๅฎๆๅคงๅผๅๆๅฐๅผใ--# 3. ็นๅๅ้--็นๅๅ้ๅฏไปฅไฝฟ็จ็ด่งๅๆ ๆๆๅๆ ๆฅ่พๅ ฅใๅ ถไธญ๏ผๅคงๅๅญๆฏ่กจ็คบ็น๏ผๅฐๅๅญๆฏ่กจ็คบๅ้ใๅฆ๏ผ--ๅจ็ด่งๅๆ ไธ๏ผ่พๅ ฅ็นPๆๅ้v๏ผๅฏไปฅ่พๅ ฅ $\mathbf{P} = (1,0)$ ๏ผ $\mathrm{v} = (0,5)$ ใ--ๅจๆๅๆ ไธ๏ผ่พๅ ฅ็นPๆๅ้๏ผๅฏไปฅ่พๅ ฅ $\mathrm{P} = (1;0^{\circ})$ ๏ผ $\mathbf{v} = (5;90^{\circ})$ ใ--ๅฟ ้กปไฝฟ็จๅๅทๆฅๅ้ๆๅๆ ็้ฟๅบฆๅ่งๅบฆ๏ผๅฆๆๆฒกๆ่พๅ ฅ่งๅบฆ็ฌฆๅท๏ผGeoGebraๅฐๆญค่ง่งไธบๅผงๅบฆใ--ๅจGeoGebraไธญ๏ผๅฏไปฅไฝฟ็จ็นๅๅ้่ฟ่ก่ฟ็ฎ๏ผ--ๆฑ็นAๅB็ไธญ็นM๏ผๅฏไปฅๅจๅฝไปคๆก่พๅ ฅ $\mathbf{M} = (\mathbf{A} + \mathbf{B}) / 2$--่ฎก็ฎๅ้ $\mathbf{v}$ ็ๆจก้ฟ๏ผๅฏไปฅๅจๅฝไปคๆก่พๅ ฅlength $=$ sqrt๏ผ $\mathbf{v}^{*}\mathbf{v}$ ๏ผใ--# 4. ็ด็บฟๅๅๆ ่ฝด--# 4.1. ็ด็บฟ--ๅฏไปฅๅจๅฝไปคๆกไธญ่พๅ ฅโๆน็จๅผโๆโๅๆฐๅผโๆฅ่กจ็คบ็ด็บฟ๏ผๅจ่ฟไธค็งๆ ๅตไธ๏ผ่ขซไฝฟ็จ็ๅ้ๅฟ ้กปๆฏๅทฒ็ปๅฎไน็ๆฐๅญใ็นๆๅ้ใๅฆ๏ผ--่พๅ ฅ $\mathbf{g}$ ๏ผ $3\mathrm{x} + 4\mathrm{y} = 2$ ๏ผๅฏไปฅๅพๅฐ็ด็บฟ $\mathbf{g}$ ใ--ๅ ๅฎไนๅๆฐ $\mathrm{t}$ ๏ผๅฆ $\mathrm{t} = 3$ ๏ผๅ่พๅ ฅๅๆฐๅผ $\mathbf{g} : \mathbf{X} = (-5, 5) + \mathrm{t}$ ๏ผ4๏ผ-3๏ผใ--ๅ ๅฎไนๅๆฐ $\mathrm{m} = 2$ ๅ $\mathrm{b} = -1$ ๏ผ็ถๅ่พๅ ฅๆน็จๅผ $\mathrm{g} : \mathrm{y} = \mathrm{mx} + \mathrm{b}$ ใ--# 4.2. ๅๆ ่ฝด--ๅจๅฝไปคๆกไธญๅฏไปฅไฝฟ็จxAxisๆyAxisๆฅๅฝๅๅๆ ่ฝด็ๅ็งฐใ--ๅฆ๏ผ่พๅ ฅๅฝไปค Perpendicular[A๏ผxAxis]ๅฏไปฅ็ปๅบ่ฟ็น A ไธๅ็ดไบ x ่ฝด็ๅ็ด็บฟใ--# 5. ๅ้ฅๆฒ็บฟ--ๅฏไปฅ็จ $\mathbf{x}$ ๅ $\mathbf{y}$ ็ไบๅ ไบๆฌกๆน็จๅผๆฅ่พๅ ฅๅ้ฅๆฒ็บฟ๏ผๅทฒ็ปๅฎไน็ๅ้ๅฏไปฅ่ขซไฝฟ็จๅจๆน็จๅผไธญใๅ้ฅๆฒ็บฟ็ๅ็งฐๅ ๅๅทๅ่พๅ ฅๆน็จๅผๅณๅฏใๅฆ๏ผ--<table><tr><td>ๆคญๅ</td><td>ell: 9x^2 + 16y^2 = 144</td></tr><tr><td>ๅๆฒ็บฟ</td><td>hyp: 9x^2 - 16y^2 = 144</td></tr><tr><td>ๆ็ฉ็บฟ</td><td>par: y^2 = 4x</td></tr><tr><td>ๅ c1</td><td>c1: x^2 + y^2 = 25</td></tr><tr><td>ๅ c2</td><td>c2: (x-5)^2 + (y+2)^2 = 25</td></tr></table>--# 6. ๅฝๆฐๅ่ฟ็ฎ--ๅฏไปฅไฝฟ็จๅทฒ็ปๅฎไน็ๅ้ๆๅฝๆฐ่พๅ ฅไธไธชๆฐ็ๅฝๆฐใๅฆ๏ผ--ๅฝๆฐf๏ผf๏ผx๏ผ=3x^3-x^2--ๅฝๆฐ $\mathrm{g}$ ๏ผ $\mathrm{g}(\mathbf{x}) = \tan (\mathrm{f}(\mathbf{x}))$--ๆชๅฝๅ็ๅฝๆฐ๏ผ $\sin (3x) + \tan (x)$--ๅจGeoGebraไธญๅฏไปฅไฝฟ็จๅฝไปคๆฑๅบๅฝๆฐ็็งฏๅๅๅพฎๅใๅฆ๏ผ--ๅ ๅฎไนๅฝๆฐ $f(x) = 3x^3 - x^2$ ๏ผ็ถๅ่พๅ ฅ $g(x) = \cos(f'(x + 2))$ ๅพๅฐๅฝๆฐ $g$ ใ--# 6.1. ๅธธ็จๅฝๆฐๅ่ฟ็ฎ--ๅปบ็ซๆฐๅญใๅๆ ๆๆน็จๅผๆถ๏ผๅฏไปฅๅฉ็จไธ้ข็ๅธธ็จๅฝๆฐๅ่ฟ็ฎใ--<table><tr><td>่ฟ็ฎ</td><td>่พๅ ฅ</td></tr><tr><td>ๅ ๆณ</td><td>+</td></tr><tr><td>ๅๆณ</td><td>-</td></tr><tr><td>ไนๆณ</td><td>*ๆ็ฉบๆ ผ้ฎ</td></tr><tr><td>ๅ ็งฏ</td><td>*ๆ็ฉบๆ ผ้ฎ</td></tr><tr><td>ๅคๆฐไนๆณ</td><td>โ</td></tr><tr><td>้คๆณ</td><td>/</td></tr><tr><td>ๆฌกๆน</td><td>^</td></tr><tr><td>้ถๅฑ</td><td>!</td></tr><tr><td>Gammaๅฝๆฐ</td><td>gamma()</td></tr><tr><td>ๆฌๅท</td><td>()</td></tr><tr><td>่ฎก็ฎๆ็น็xๅๆ </td><td>x()</td></tr><tr><td>่ฎก็ฎๆ็น็yๅๆ </td><td>y()</td></tr><tr><td>็ปๅฏนๅผ</td><td>abs()</td></tr><tr><td>ๆญฃ่ดๅท</td><td>sgn()</td></tr><tr><td>ๅนณๆนๆ น</td><td>sqrt()</td></tr><tr><td>็ซๆนๆ น</td><td>cbrt()</td></tr><tr><td>0ๅฐ1็้ๆบๆฐ</td><td>random()</td></tr><tr><td>ๆๆฐๅฝๆฐ</td><td>exp()</td></tr><tr><td>่ช็ถๅฏนๆฐ</td><td>ln()</td></tr><tr><td>ไปฅ2ไธบๅบ็ๅฏนๆฐ</td><td>ld()</td></tr><tr><td>ๅธธ็จๅฏนๆฐ</td><td>lg()</td></tr><tr><td>ไฝๅผฆ</td><td>cos()</td></tr><tr><td>ๆญฃๅผฆ</td><td>sin()</td></tr><tr><td>ๆญฃๅ</td><td>tan()</td></tr><tr><td>ๅไฝๅผฆ</td><td>acos()</td></tr><tr><td>ๅๆญฃๅผฆ</td><td>asin()</td></tr><tr><td>ๅๆญฃๅ</td><td>atan()</td></tr><tr><td>ๅฐไบ็ญไบ็ๆๅคงๆดๆฐ</td><td>floor()</td></tr><tr><td>ๅคงไบ็ญไบ็ๆๅฐๆดๆฐ</td><td>ceil()</td></tr><tr><td>่ฟไผผ๏ผๅ่ไบๅ ฅ๏ผ</td><td>round()</td></tr></table>--# 6.2. ๅธๆ่ฟ็ฎ--ๅจGeoGebraไธญ๏ผๅฏไปฅไฝฟ็จๅธๆๅฝๆฐโtrueโๅโfalseโใๅฆ๏ผๅจๅฝไปคๆกไธญ่พๅ ฅ $a = true$ ๆ่ $b = false$ ๅนถๆไธEnter้ฎใ--ๅจ GeoGebra ไธญๅฏไปฅไฝฟ็จไธๅๅธๆๅฝๆฐ็่ฟ็ฎไธๆกไปถ๏ผ่่ฟไบๅฝไปคๅฏไปฅไปๅฝไปคๆกๅณไพง็ไธๆ่ๅไธญ้ๅ๏ผๆ่ ไฝฟ็จ้ฎ็่พๅ ฅ๏ผ--<table><tr><td></td><td>่ๅ้ๆฉ</td><td>้ฎ็่พๅ ฅ</td><td>ไพๅญ</td><td>็ฑปๅ</td></tr><tr><td>็ญไบ</td><td>\(\underline{\underline{2}}\)</td><td>==</td><td>\(a^{\underline{2}}b\) ๆ \(a= =b\)</td><td>ๆฐๅผใ็นใ็ด็บฟใๅ้ฅๆฒ็บฟ</td></tr><tr><td>ไธ็ญไบ</td><td>โ </td><td>!=</td><td>\(a \neq b\) ๆ \(a != b\)</td><td>ๆฐๅผใ็นใ็ด็บฟใๅ้ฅๆฒ็บฟ</td></tr><tr><td>ๅฐไบ</td><td><</td><td><</td><td>\(a < b\)</td><td>ๆฐๅผ</td></tr><tr><td>ๅคงไบ</td><td>></td><td>></td><td>\(a > b\)</td><td>ๆฐๅผ</td></tr><tr><td>ๅฐไบ็ญไบ</td><td>โค</td><td><=</td><td>\(a \leqslant b\) ๆ \(a <= b\)</td><td>ๆฐๅผ</td></tr><tr><td>ๅคงไบ็ญไบ</td><td>โฅ</td><td>>=</td><td>\(a \geqslant b\) ๆ \(a >= b\)</td><td>ๆฐๅผ</td></tr><tr><td>ไธ</td><td>โง</td><td>&&</td><td>\(a \land b\)</td><td>ๅธๆๅฝๆฐ</td></tr><tr><td>ๆ</td><td>โจ</td><td>||</td><td>\(a \lor b\)</td><td>ๅธๆๅฝๆฐ</td></tr><tr><td>้</td><td>ยฌ</td><td>!</td><td>ยฌa ๆ !a</td><td>ๅธๆๅฝๆฐ</td></tr><tr><td>ๅนณ่กไบ</td><td>//</td><td></td><td>a // b</td><td>็ด็บฟ</td></tr><tr><td>ๅ็ดไบ</td><td>โฅ</td><td></td><td>aโฅb</td><td>็ด็บฟ</td></tr></table>--# 7. ๅฏน่ฑกๅ่กจๅ่ฟ็ฎ--ๅฆๆ่ฆๅปบ็ซไธไบๅฏน่ฑก๏ผๅฆ๏ผ็นใ็บฟๆฎตใๅ๏ผ็ๅ่กจ๏ผๅฏไปฅไฝฟ็จๅคงๆฌๅทใๅฆ๏ผ--$\mathrm{L} = \{\mathrm{A},\mathrm{B},\mathrm{C}\}$ ไธบๅ ๅซไธ็นA๏ผB๏ผC็ๅ่กจ--$\mathrm{L} = \{(0,0), (1,1), (2,2)\}$ ไธบๅ ๅซไธไธชๆชๅฝๅ็น็ๅ่กจ--# ใๆฏ่พๅฏน่ฑกๅ่กจใ--ๆฏ่พไธคไธชๅฏน่ฑกๅ่กจ๏ผๅฏไปฅไฝฟ็จไธๅ่ฏญๆณ็ปๆ๏ผ--list1 = list2: ๆฃๆฅไธคไธชๅ่กจๆฏๅฆ็ธ็ญๅนถ่ฟๅ true ๆ false--list1 != list2: ๆฃๆฅไธคไธชๅ่กจๆฏๅฆไธ็ธ็ญๅนถ่ฟๅ true ๆ false--# ใๅ่กจ็่ฟ็ฎไธๅฝๆฐใ--ๅฆๆๅจๅ่กจไธๆง่ก่ฟ็ฎไธๅฝๆฐ่ฟ็ฎ๏ผๅฏไปฅๅพๅฐไธไธชๆฐ็ๅ่กจใ--# ๅ ๆณไธๅๆณ๏ผ--- list1 + list2๏ผๅฐไธคๅ่กจไธญๅฏนๅบ็ๅ ็ด ็ธๅ ๏ผไฝ่ฆๆฑไธคๅ่กจ็้ฟๅบฆ็ธๅใ-- list + number: ็จๅ่กจไธญ็ๆฏไธชๅ ็ด ๅ ไธๆไธชๆฐใ-- list1 - list2๏ผ็ฌฌไธไธชๅ่กจๅ ็ๅ ็ด ๅๅป็ฌฌไบไธชๅ่กจๅ ็็ธๅบๅ ็ด ๏ผไน่ฆๆฑไธคๅ่กจ็้ฟๅบฆ็ธๅใ-- list-number: ็จๅ่กจไธญ็ๆฏไธชๅ ็ด ๅๅปๆไธชๆฐใ--# ไนๆณไธ้คๆณ๏ผ--- list1 * list2: ๅฐไธคๅ่กจไธญๅฏนๅบ็ๅ ็ด ็ธไนใ่ฆๆฑไธคๅ่กจ็้ฟๅบฆ็ธๅ๏ผๅฆๆๅ่กจๅ ๅ ็ด ไธบ็ฉ้ต๏ผๅ่ฆ่ฟ่ก็ฉ้ตไนๆณ่ฟ็ฎใ-- list * number: ็จๅ่กจๅ ๆฏไธชๅ ็ด ไนไปฅๆไธชๆฐใ-- list1 / list2๏ผ็ฌฌไธไธชๅ่กจๅ ็ๅ ็ด ้คไปฅ็ฌฌไบๆฌกๅ่กจๅ ๅฏนๅบ็ๅ ็ด ๏ผไน่ฆๆฑไธคๅ่กจ็้ฟๅบฆ็ธๅใ-- list / number: ็จๅ่กจไธญๆฏไธชๅ ็ด ้คไปฅๆไธชๆฐใ-- number/list๏ผ็จๆญคๆฐ้คไปฅๅ่กจๅ ็ๆฏไธชๅ ็ด ใ--# ๅ ถไป๏ผ--- list^2๏ผๅฐๅ่กจๅ ๆฏไธชๅ ็ด ๅนณๆนใ-- sin(list)๏ผๅ่กจๅ ๆฏไธชๅ ็ด ๅปsinๅฝๆฐใ--# 8. ็ฉ้ตไธ่ฟ็ฎ--GeoGebra ไน่ฝไฝฟ็จ็ฉ้ต๏ผ็จ็ฉ้ต็ๆฏไธ่ก่กจ็คบใๅฆ๏ผ--ๅจ GeoGebra ไธญ๏ผ $\{\{1,2,3\}, \{4,5,6\}, \{7,8,9\}\}$ ่กจ็คบ็ฉ้ต $\left\{ \begin{array}{lll} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{array} \right\}$--# ใ่กๅๅผใ--Determinant[Matrix]: ่ฎก็ฎ็ฉ้ต่กๅๅผ็ๅผใ--# ใ้็ฉ้ตใ--Invert[Matrix]: ๅพๅฐ็ฉ้ต็้็ฉ้ตใ--# ใ่ฝฌ็ฝฎ็ฉ้ตใ--Transpose[Matrix]: ๅพๅฐ็ฉ้ต็่ฝฌ็ฝฎ็ฉ้ตใ--# ใ็ฉ้ต่ฟ็ฎใ--# ๅ ๆณๅๅๆณ๏ผ--- Matrix1 + Matrix2๏ผไธคไธช็ธๅๅคงๅฐ็็ฉ้ตๅฏนๅบไฝ็ฝฎ็ธๅ ใ-- Matrix1 - Matrix2๏ผไธคไธช็ธๅๅคงๅฐ็็ฉ้ตๅฏนๅบไฝ็ฝฎ็ธๅใ--ไนๆณ:--- Matrix * Number: ๅจ็ฉ้ต็ๆฏไธชๅ ็ด ไธไนไปฅๆไธชๆฐใ-- Matrix1 * Matrix2: ไฝฟ็จ็ฉ้ตไนๆณๆฑๅบๆฐ็็ฉ้ตใ็ฌฌไธไธช็ฉ้ต็ๅๆฐๅฟ ้กปไธ็ฌฌไบไธช็ฉ้ต็่กๆฐ็ธ็ญใๅฆ๏ผ--่พๅ ฅ{1,2,3}, {4,5,6}, {7,8,9}]*{1,2,3}, {4,5,6}, {7,8,9}ๅพๅฐ{30,36,42}, {66,81,96}, {102,126,150}ใ--- $2 \times 2$ Matrix * Point๏ผๆๅ้๏ผ๏ผ็ฉ้ตไนไปฅๆไธ็นๆๅ้๏ผๅฐๅพๅฐไธไธชๆฐ็็นใๅฆ๏ผ่พๅ ฅ\{\{1,2\}, \{3,4\}\}*(3,4)ๅพๅฐA=(11,25)ใ-- $3 \times 3$ Matrix * Point๏ผๆๅ้๏ผ๏ผ็ฉ้ตไนไปฅๆไธ็นๆๅ้๏ผๅฐๅพๅฐไธไธชๆฐ็็นใๅฆ๏ผ่พๅ ฅ\{\{1,2,3\}, \{4,5,6\}, \{0,0,1\}\}^* (1,2)ๅพๅฐA=(8,20)ใ--ๅ ถไป๏ผ--- Determinant[Matrix]: ่ฎก็ฎ็ฉ้ต็่กๅๅผ็ๅผใ-- Invert[Matrix]: ็ปๅบ็ฉ้ต็้็ฉ้ตใ-- Transpose[Matrix]: ็ปๅบ็ฉ้ต็่ฝฌ็ฝฎ็ฉ้ตใ--# 9. ๅคๆฐไธ่ฟ็ฎ--GeoGebraไธ่ฝ็ดๆฅๆฏๆๅคๆฐ๏ผไฝๅฏไปฅไฝฟ็จ็นๆฅๆจกๆๅคๆฐ่ฟ็ฎใๅฆ๏ผ--ๅจๅฝไปคๆก่พๅ ฅๅคๆฐ $3 + 4\mathrm{i}$ ๏ผๅจ็ปๅพๅบๅฏไปฅๅพๅฐไธไธช็น๏ผ3,4๏ผ๏ผ่ฏฅ็น็ๅๆ ๅจไปฃๆฐๅบๆพ็คบไธบ $\mathrm{z} = 3 + 4\mathrm{i}$ ใๅจไปฃๆฐๅบไธญไปปไฝ็นๅฏไปฅไปฅๅคๆฐๅฝขๅผๆพ็คบ๏ผๅจโๅฑๆงโไธญ็โไปฃๆฐโ้้กนๅกไธญๅฏไปฅ้ๆฉๅคๆฐๅฝขๅผใ----ๅฆๆๅคๆฐiๆช่ขซๅฎไน๏ผGeoGebraๅฐ่ขซ่ฎคๅฎไธบๆๅบๆฐๅฏน $\mathrm{i} = (0,1)$ ๆ่ ๅคๆฐ $0 + 1\mathrm{i}$ ใไนๅฐฑๆฏ่ฏด๏ผๅฏไปฅๅจๅฝไปคๆก่พๅ ฅiไฝไธบๅคๆฐๅไฝใ--# ๅ ๆณๅๅๆณ๏ผ--$\cdot (2,1) + (1, - 2)$ ็ญไปทไบ $(2 + 1\mathrm{i}) + (1 - 2\mathrm{i})$ ๅนถๅพๅฐๅคๆฐ๏ผ3๏ผ-1๏ผไนๅฏไปฅๆพ็คบไธบ3-1i-- (2,1) - (1, -2) ็ญไปทไบ $(2 + 1\mathrm{i}) - (1 - 2\mathrm{i})$ ๅนถๅพๅฐๅคๆฐ๏ผ1,3๏ผไนๅฏไปฅๆพ็คบไธบ 1-3i--# ไนๆณๅ้คๆณ๏ผ--- (2,1) * (1, -2) ็ญไปทไบ $(2 + 1\mathrm{i}) * (1 - 2\mathrm{i})$ ๅนถๅพๅฐๅคๆฐ๏ผ4๏ผ-3๏ผไนๅฏไปฅๆพ็คบไธบ 4-3i-- (2,1)/(1,-2)็ญไปทไบ(2+1i)/(1-2i)ๅนถๅพๅฐๅคๆฐ(0,1)ไนๅฏไปฅๆพ็คบไธบ $0 + 1\mathrm{i}$--# ๅ ถไป๏ผ--- $3+$ (4,5) ็ญไปทไบ $3+$ (4+5i) ๅนถๅพๅฐๅคๆฐ (7,5) ๆ $7+5\mathrm{i}$-- 3-(4,5) ็ญไปทไบ 3-(4+5i) ๅนถๅพๅฐๅคๆฐ (-1,-5) ๆ -1-5i-- 3/๏ผ0,1๏ผ็ญไปทไบ $3 / (0 + 1\mathrm{i})$ ๅนถๅพๅฐๅคๆฐ๏ผ0,-3๏ผๆ0-3i--- $3^{*}$ (1,2๏ผ็ญไปทไบ $3^{*}(1 + 2\mathrm{i})$ ๅนถๅพๅฐๅคๆฐ๏ผ3,6๏ผๆ3-6i--# ็ฌฌไบ็ซ ๅฝไปค่พๅ ฅ--ไฝฟ็จๅฝไปคๅฏไปฅ็ๆๆฐๅฏน่ฑกๆ่ ไฟฎๆนๅทฒๆๅฏน่ฑกใ--ๅฝๅจ GeoGebra ็ๅฝไปคๆกไธญ่พๅ ฅๅฝไปค๏ผ่ฝฏไปถไผๅฐ่ฏ็่ชๅจ่กฅ้ฝๅฝไปค๏ผไนๅฐฑๆฏ่ฏด๏ผๅจๅฝไปคๆกไธญๅช่ฆ่พๅ ฅๅฝไปค็ๅไธคไธชๅญ็ฌฆ๏ผGeoGebra ไผๆพ็คบๆ็ธ่ฟ็ๅฝไปค๏ผ็ฑปไผผไบ่พๅ ฅๆณ็่ๆณๅ่ฝ๏ผ๏ผ--ๅฆๆๆ็คบ็ๅฝไปคๅๅฅฝๆฏๆณ่พๅ ฅ็๏ผๅช้ๆไธEnter้ฎ๏ผๅณๅฏๆฅๅๅปบ่ฎฎๅฐๆ็คบ็ๅฝไปค่พๅ ฅๅฝไปคๆก๏ผ--ๅฆๆๆ็คบ็ๅฝไปคๅนถไธๆฏๆณ่พๅ ฅ็๏ผๅฏไปฅ็ปง็ปญ่พๅ ฅ๏ผGeoGebraไผๅๆ็คบๅ ถไป็ธ่ฟ็ๅฝไปคใ--# 1. ไธ่ฌๅฝไปค--# ใ็ปๅพๆญฅ้ชคใ--ConstructionStep[]๏ผ่ฟๅ็ฎๅ็ๆญฅ้ชคๆฐ--ConstructionStep[Object]: ่ฟๅๆๅฎๅฏน่ฑก็ฎๅ็ๆญฅ้ชคๆฐ--# ใๅ ้คใ--Delete[Object]: ๅ ้คๆไธๅฏน่ฑกไปฅๅๆๆไธไน็ธๅ ณ็ๅฏน่ฑก--# ใๅ ณ็ณปใ--Relation[Object a, Object b]: ๆพ็คบไธไธช็ชๅฃ่ฎฉๆไปฌๅพ็ฅ Object a ๅ Object b ไน้ด็ๅ ณ็ณปใ--ๅฆ๏ผ่ฏฅๅฝไปคๅฏไปฅ็ฅ้ๆฏๅฆไธ็นๅจไธๆก็ด็บฟไธ๏ผๆไธๆกๅ้ฅๆฒ็บฟไธ๏ผใไธ็ด็บฟๆฏไธไธๅ้ฅๆฒ็บฟ็ธๅใไธ็ด็บฟๆฏๅฆไธไธๅ้ฅๆฒ็บฟ็ธไบคๆไธคๅฏน่ฑกๆฏๅฆ็ธ็ญใ--# 2. ๆฐๅผ--# ใไปฟๅฐๆฏใ--AffineRatio[Point A, Point B, Point C]: ๅพๅบๅ ฑ็บฟ็ไธ็น A, B, C ็ๆฏๅผ $\lambda$ , ๅ ถไธญ $C = A + \lambda * AB$ ใ--# ใ้ข็งฏใ--Area[Point A, Point B, Point C, ...]: ่ฎก็ฎ็นA๏ผB๏ผC๏ผโฆโฆๆๅดๆ็ๅค่พนๅฝข้ข็งฏใ--Area[Conic c]: ่ฎก็ฎๅ้ฅๆฒ็บฟ $c$ ็้ข็งฏใ--# ใๅๆ ่ฝดใ--AxisStepX[]๏ผๅพๅฐๅฝๅX่ฝดๅไฝๅๆฐๅผใ--AxisStepY[]๏ผๅพๅฐๅฝๅ Y ่ฝดๅไฝๅๆฐๅผใ--# ใไบ้กนๅผ็ณปๆฐใ--BinomialCoefficient[Number n, Number r]: ่ฎก็ฎโn้rโ็ไบ้กนๅผ็ณปๆฐใ--# ใๅจ้ฟใ--Circumference[Conic]: ่ฎก็ฎๅ้ฅๆฒ็บฟ็ๅจ้ฟใ--# ใไบคๆฏใ--CrossRatio[Point A, Point B, Point C, Point D]: ่ฎก็ฎๅ ฑ็บฟ็ๅ็น A, B, C, D ็ไบคๆฏไธบ $\lambda$ ใ $\lambda = \text{AffineRatio}[\text{B}, \text{C}, \text{D}] / \text{AffineRatio}[\text{A}, \text{C}, \text{D}]$ ใ--# ใๆฒ็ใ--Curvature[Point, Function]: ่ฎก็ฎๅฝๆฐๅจๅถๅฎ็น็ๆฒ็ใ--Curvature[Point, Curve]: ่ฎก็ฎๆฒ็บฟๅจๆๅฎ็น็ๆฒ็ใ--# ใ่ท็ฆปใ--Distance[Point A, Point B]: ่ฎก็ฎไธค็นAๅBไน้ด็่ท็ฆปใ--Distance[Point, Line]: ่ฎก็ฎ็นๅ็บฟไน้ด็่ท็ฆปใ--Distance[Line g, Line h]: ่ฎก็ฎไธค็ด็บฟ $\mathbf{g}$ ๅ $\mathbf{h}$ ไน้ด็่ท็ฆปใ--# ใ่ฝด้ฟใ--FirstAxisLength[Conic]๏ผ่ฎก็ฎๅ้ฅๆฒ็บฟไธป่ฝด็้ฟๅบฆใๅฆ๏ผๆคญๅไธญๆฏ้ฟ่ฝด็ไธๅใ--SecondAxisLength[Conic]๏ผ่ฎก็ฎๅ้ฅๆฒ็บฟๅฏ่ฝด็้ฟๅบฆใๅฆ๏ผๆคญๅไธญๆฏ็ญ่ฝด็ไธๅใ--# ใๆๅคงๅ ฌๅ ๆฐใ--GCD[Number a, Number b]: ่ฎก็ฎไธคไธชๆฐๅญ a ๅ b ็ๆๅคงๅ ฌๅ ๆฐใ--GCD[List of numbers]: ่ฎก็ฎๆฐๅ็ๆๅคงๅ ฌๅ ๆฐใ--# ใๆๅฐๅ ฌๅๆฐใ--LCM[Number a, Number b]: ่ฎก็ฎไธคไธชๆฐๅญ a ๅ b ็ๆๅฐๅ ฌๅๆฐใ--LCM[List of numbers]: ่ฎก็ฎๆฐๅ็ๆๅฐๅ ฌๅๆฐใ--# ใๆด้คใ--Div[Number a, Number b]: ่ฎก็ฎๆฐๅญ a ้ค b ็ๅใ--# ใ็งฏๅใ--Integral[Function, Number a, Number b]: ่ฎก็ฎๆๅฝๆฐๅจ[a,b]็็งฏๅใ--Integral[Function f, Function g, Number a, Number b]: ่ฎก็ฎๅจๅบ้ด[a,b]ไธ๏ผf(x)-g(x)็็งฏๅใ--# ใ่ฟญไปฃใ--Iteration[Function, Number x0, Number n]: ็ปๅฎ่ตทๅงๅผ x0๏ผ้ๅคๅธฆๅ ฅ f ๅฝๆฐ n ๆฌกใๅฆ๏ผๅฎไน $f(x) = x^{\wedge}2$ ๏ผ่พๅ ฅๅฝไปค Iteration[f, 3, 2] ๅฐฑๅฏไปฅๅพๅฐ็ปๆ 81ใ--# ใ้ฟๅบฆใ--Length[Vector]: ่ฎก็ฎๅ้็้ฟๅบฆใ--Length[Point A]: ่ฎก็ฎๅ็นๅฐ็น A ็้ฟๅบฆใ--Length[Function, Number x1, Number x2]: ่ฎก็ฎๅฝๆฐ f ไป x1 ๅฐ x2 ไน้ด็้ฟๅบฆใ--Length[Function, Point A, Point B]: ่ฎก็ฎๅฝๆฐ f ไป็น A ๅฐ็น B ไน้ด็้ฟๅบฆใๅฆๆ็ปๅฎ็--็นไธๅจๅฝๆฐๅพๅไธ๏ผ้ฃไนๅฐไปฅ็น็ $x$ ๅๆ ไฝไธบๅบ้ดใ--Length[Curve, Number t1, Number t2]: ่ฎก็ฎๆฒ็บฟๅจๅๆฐ t1 ๅฐ t2 ไน้ด็้ฟๅบฆใ--Length[Curve c, Point A, Point B]: ่ฎก็ฎๆฒ็บฟcๅจ็นAๅBไน้ด็ๆฒ็บฟ้ฟๅบฆใ--Length[List]๏ผ่ฎก็ฎๅ่กจ็้ฟๅบฆ๏ผๅ่กจ็ๅ ็ด ไธชๆฐ๏ผใ--# ใ็ฆปๅฟ็ใ--LinearEccentricity[Conic]: ่ฎก็ฎๅ้ฅๆฒ็บฟ็็ฆปๅฟ็ใ--# ใๆๅคงๅผใๆๅฐๅผใ--Min[Number a, Number b]: ๆฑ a ๅ b ไธญ็ๅฐ่ ใ--Max[Number a, Number b]: ๆฑ a ๅ b ไธญ็ๅคง่ ใ--# ใไฝๆฐใ--Mod[Integers a, Integers b]: ่ฎก็ฎ a ้คไปฅ b ็ไฝๆฐใ--# ใๅๆฐใ--Parameter[Parabola]: ่ฎก็ฎๆ็ฉ็บฟ $p$ ็ๅๆฐ๏ผๅ็บฟๅ็ฆ็น้ด็่ท็ฆป๏ผใ--# ใๅจ้ฟใ--Perimeter[Polygon]: ่ฎก็ฎๅค่พนๅฝขๅจ้ฟใ--# ใๅๅพใ--Radius[Circle]: ่ฎก็ฎๅ $c$ ็ๅๅพใ--# ใ้ๆบๆฐใ--RandomBetween[Min integer, Max integer]: ๅจๆๅคงๅผๅๆๅฐๅผ็ดๆฅไบง็้ๆบๆฐใ--RandomBinomial[Number n of trials, Probability p]: ไฝฟ็จไบ้กนๅๅธไบง็้ๆบๆฐใ--RandomNormal[Mean, Standard deviation]: ไฝฟ็จๆญฃๆๅๅธไบง็้ๆบๆฐใ--RandomPoisson[Mean]๏ผไฝฟ็จๆณๆพๅๅธไบง็้ๆบๆฐใ--# ใๆ็ใ--Slope[Line]: ่ฎก็ฎ็ปๅฎ็ด็บฟ็ๆ็ใ--# 3.่ง--Angle[Vector v1, Vector v2]: ่ฎก็ฎไธคๅ้ v1 ๅ v2 ไน้ด็ๅคน่งใ--Angle[Line g, Line h]: ่ฎก็ฎไธค็ด็บฟ $\mathbf{g}$ ๅ $\mathrm{h}$ ๆนๅๅ้ไน้ด็ๅคน่งใ--Angle[Point A, Point B, Point C]: ไปฅBไธบ้กถ็น๏ผ่ฎก็ฎBAๅBCไน้ด็ๅคน่งใ--Angle[Point A, Point B, Angle $\alpha$ ]๏ผไปฅ็บฟๆฎต AB ไธบๅง่พน๏ผ็ปๅบๅคงๅฐไธบ $\alpha$ ็่งใ--Angle[Conic]: ่ฎก็ฎๅ้ฅๆฒ็บฟ c ไธป่ฝด็่ฝฌ่งใ--Angle[Vector]: ่ฎก็ฎ $\mathbf{X}$ ่ฝดๅฐๅ้ $\mathbf{v}$ ไน้ด็ๅคน่งใ--Angle[Point]: ่ฎก็ฎ $\mathbf{x}$ ่ฝดๅฐ็นAไน้ด็ๅคน่งใ--Angle[Number]: ๅฐไธไธชๆฐๅญ n ่ฝฌๆขๆๅผงๅบฆ๏ผไปไบ 0 ๅฐ 2pi ไน้ด๏ผใ--Angle[Polygon]: ๅปบ็ซๅค่พนๅฝข $p$ ็ๆๆๅ ่งใๅฆๆๅค่พนๅฝขๆฏไปฅ้ๆถ้ๆนๅ้ๅ๏ผๅฏไปฅๅพๅฐๅ ่งๅใๅฆๆๅค่พนๅฝขๆฏ้กบๆถ้ๆนๅ้ๅ๏ผๅฏไปฅๅพๅฐๅค่งๅใ--# 4. ็น--# ใไธญๅฟ็นใ--Center[Conic]: ่ฎก็ฎๅ้ฅๆฒ็บฟ็ไธญๅฟ็นใ--# ใ้ๅฟใ--Centroid[Polygon]: ่ฎก็ฎๅค่พนๅฝข $\mathfrak{p}$ ็้ๅฟใ--# ใๆๅผใ--Extremum[Polynomial]: ่ฎก็ฎๅค้กนๅผๅฝๆฐๅพๅไธ็ๅฑ้จๆๅผใ--# ใ็ฆ็นใ--Focus[Conic]: ๅพๅฐๅ้ฅๆฒ็บฟ $c$ ็็ฆ็นใ--# ใๆ็นใ--InflectionPoint[Polynomial]: ่ฎก็ฎๅค้กนๅผ $f$ ็ๆๆๆ็นใ--# ใไบค็นใ--Intersect[Line g, Line h]: ่ฎก็ฎ็ด็บฟ $\mathbf{g}$ ๅ $\mathbf{h}$ ็ไบค็นใ--Intersect[Line, Conic]: ่ฎก็ฎ็ด็บฟ $\mathbf{g}$ ๅๅ้ฅๆฒ็บฟ $\mathbf{c}$ ็ๆๆไบค็นใ--Intersect[Line, Conic, Number n]: ่ฎก็ฎ็ด็บฟ $\mathbf{g}$ ๅๅ้ฅๆฒ็บฟ $\mathbf{c}$ ็็ฌฌ $\mathbf{n}$ ไธชไบค็นใ--Intersect[Conic c1, Conic c2]: ่ฎก็ฎไธคๅ้ฅๆฒ็บฟ c ๅ d ็ๆๆไบค็นใ--Intersect[Conic c1, Conic c2, Number n]: ่ฎก็ฎไธคๅ้ฅๆฒ็บฟ c ๅ d ็็ฌฌ n ไธชไบค็นใ--Intersect[Polynomial f1, Polynomial f2]: ่ฎก็ฎๅค้กนๅผf1ๅๅค้กนๅผf2็ๆๆไบค็นใ--Intersect[Polynomial f1, Polynomial f2, Number n]: ่ฎก็ฎๅค้กนๅผ f1 ๅๅค้กนๅผ f2 ็็ฌฌ n ไธชไบค็นใ--Intersect[Polynomial, Line]: ่ฎก็ฎๅค้กนๅผ $f$ ๅ็ด็บฟ $g$ ็ๆๆไบค็นใ--Intersect[Polynomial, Line, Number n]: ่ฎก็ฎๅค้กนๅผ $f$ ๅ็ด็บฟ $g$ ็็ฌฌ $n$ ไธชไบค็นใ--Intersect[Function f, Function g, Point A]: ่ฎก็ฎๅฝๆฐ $\mathrm{f}$ ๅ $\mathrm{g}$ ๅจ่ตทๅง็น $\mathrm{A}$ ็ๆๆไบค็นใ--Intersect[Function, Line, Point A]: ่ฎก็ฎๅฝๆฐ f ๅ็ด็บฟ g ๅจ่ตทๅง็น A ็ๆๆไบค็นใ--# ใไธญ็นใ--Midpoint[Point A, Point B]: ่ฎก็ฎ็นAๅB็ไธญ็นใ--Midpoint[Segment]: ่ฎก็ฎ็บฟๆฎต s ็ไธญ็นใ--# ใ็นใ--Point[Line]: ๅพๅฐ็ด็บฟไธไธ็นใ--Point[Conic]: ๅพๅฐๅ้ฅๆฒ็บฟไธไธ็นใ--Point[Function]: ๅพๅฐๅฝๆฐ $f$ ไธไธ็นใ--Point[Polygon]: ๅพๅฐๅค่พนๅฝข $p$ ไธไธ็นใ--Point[Vector]: ๅพๅฐๅ้ $\mathbf{v}$ ไธไธ็นใ--Point[Point, Vector]: ๅพๅฐไป P ็นๅนณ็งปๅ้ v ไนๅ็็นใ--# ใๆ นใ--Root[Polynomial]: ๅพๅฐๅค้กนๅผ็ๆๆๆ นใ--Root[Function, Number a]: ๅพๅฐๅฝๆฐ f ๅจ่ตทๅงๅผ a ็ไธไธชๆ นใ--Root[Function, Number a, Number b]: ๅพๅฐๅฝๆฐ f ๅจๅบ้ด[a,b]ไธ็ๆ นใ--# ใ้กถ็นใ--Vertex[Conic]: ็ๆๅ้ฅๆฒ็บฟ็ๅ จ้จ้กถ็นใ--# 5. ็บฟ--# ใ็ด็บฟใ--Line[Point A, Point B]: ๅปบ็ซ่ฟ็นAๅB็็ด็บฟใ--Line[Point, Line]: ๅปบ็ซ่ฟ็น A ไธๅนณ่กไบ็ด็บฟ g ็็ด็บฟใ--Line[Point, Vector v]: ๅปบ็ซ่ฟ็น A ไธๆนๅไธบ v ็็ด็บฟใ--# ใ็บฟๆฎตใ--Segment[Point A, Point B]: ๅปบ็ซ็นAๅ็นBไน้ด็็บฟๆฎตใ--Segment[Point A, Number a]: ๅปบ็ซไปฅ็น A ไธบ่ตท็น๏ผ็บฟๆฎต้ฟไธบ a ็็บฟๆฎตใ--# ใๅฐ็บฟใ--Ray[PointA, PointB]๏ผๅปบ็ซ่ตท็นไธบA่ฟB็น็ๅฐ็บฟใ--Ray[Point, Vector v]: ๅปบ็ซ่ตท็นไธบ A ๅนถๆนๅๅ้ไธบ v ็ๅฐ็บฟใ--# ใๅ็บฟใ--Perpendicular[Point, Line]: ๅปบ็ซ่ฟ็น A ไธๅ็ดไบ็ด็บฟ g ็็ด็บฟใ--Perpendicular[Point, Vector]: ๅปบ็ซ่ฟ็น A ไธๅ็ดไบๅ้ v ็็ด็บฟใ--# ใไธญๅ็บฟใ--PerpendicularBisector[Point A, Point B]: ๅปบ็ซ็บฟๆฎต AB ็ๅ็ดๅนณๅ็บฟใ--PerpendicularBisector[Segment]: ๅปบ็ซ็บฟๆฎต็ๅ็ดๅนณๅ็บฟใ--# ใ่งๅนณๅ็บฟใ--AngleBisector[Point A, Point B, Point C]: ็ๆ่ง ABC ็่งๅนณๅ็บฟใ--AngleBisector[Line g, Line h]: ็ๆ็ด็บฟ $\mathbf{g}$ ๅ $\mathrm{h}$ ็่งๅนณๅ็บฟใ--# ใๆธ่ฟ็บฟใ--Asymptote[Hyperbola]: ๅปบ็ซๅๆฒ็บฟ $h$ ็ไธคๆกๆธ่ฟ็บฟใ--# ใๅฏน็งฐ่ฝดใ--Axes[Conic]: ๅปบ็ซๅ้ฅๆฒ็บฟ $c$ ็ๅฏน็งฐ่ฝดใ--# ใๅพใ--Diameter[Line, Conic]: ๅ้ฅๆฒ็บฟ c ๅนณ่กไบ็ด็บฟ g ็ๅพใ--Diameter[Vector, Conic]: ๅ้ฅๆฒ็บฟ $c$ ๅนณ่กไบๅ้ $v$ ็ๅพใ--# ใๅ็บฟใ--Directrix[Parabola]: ๅปบ็ซๆ็ฉ็บฟ $p$ ็ๅ็บฟใ--# ใๆ็บฟใ--Polar[Point, Conic]: ๅปบ็ซ็ธๅฏนไบๅ้ฅๆฒ็บฟ $c$ ็ๆ็บฟใ--# ใๅ็บฟใ--Tangent[Point, Conic]: ๅปบ็ซๅ้ฅๆฒ็บฟ $c$ ่ฟ็น A ็ๆๆๅ็บฟใ--Tangent[Line, Conic]: ๅปบ็ซๅ้ฅๆฒ็บฟ $c$ ็ๆๆๅนณ่กไบ็ด็บฟ $g$ ็ๅ็บฟใ--Tangent[Number a, Function]: ๅปบ็ซ $f(x)$ ๅจ $x = a$ ็ๅ็บฟใ--Tangent[Point A, Function]: ๅปบ็ซ $f(x)$ ๅจ $x = x(A)$ ็ๅ็บฟใ--# 6. ๅค่พนๅฝข--Polygon[Point A, Point B, Point C,...]: ็ๆ็ฑ็ปๅฎ็น A, B, Cโฆโฆๆๅดๆ็ๅค่พนๅฝขใ--Polygon[Point A, Point B, Number n]: ไปฅ็บฟๆฎต AB ไธบ่พน้ฟ๏ผ็ๆ็ฑ n ไธช้กถ็น็ๆญฃๅค่พนๅฝขใ--# 7. ๅ้--# ใๅ้ใ--Vector[Point A, Point B]: ไป็นAๅฐ็นB็ๅ้ใ--Vector[Point]: ็น A ็ไฝ็ฝฎๅ้ใ--# ใๅไฝๅ้ใ--UnitVector[Line]: ็ด็บฟ $\mathbf{g}$ ็ๅไฝๆนๅๅ้ใ--UnitVector[Vector]: ไธๅ้ v ๅๆนๅ็ๅไฝๅ้ใ--# ใๆณๅ้ใ--PerpendicularVector[Line]๏ผๆฑ็ด็บฟ $\mathbf{g}$ ็ๆณๅ้ใๅฆ๏ผ็ด็บฟ $\mathrm{ax + by = c}$ ็ๆณๅ้ไธบ๏ผa,b๏ผใ--PerpendicularVector[Vector v]: ๆฑๅ้ $\mathbf{v}$ ็ๆณๅ้ใ--# ใๅไฝๆณๅ้ใ--UnitPerpendicularVector[Line]๏ผๆฑ็ด็บฟ $\mathbf{g}$ ็ๅไฝๆณๅ้ใ--UnitPerpendicularVector[Vector]: ๆฑๅ้ $\mathbf{v}$ ็ๅไฝๆณๅ้--# ใๆฒ็ๅ้ใ--CurvatureVector[Point, Function]: ๆฑๅฝๆฐ $f$ ๅจ็น $A$ ็ๆฒ็ๅ้ใ--CurvatureVector[Point, Curve]: ๆฑๆฒ็บฟ $c$ ๅจ็น A ็ๆฒ็ๅ้ใ--# 8. ๅฝๆฐ--# ใๅฝๆฐใ--Function[Function, Number a, Number b]: ็ๆๅฝๆฐ f ๅจ [a,b] ๅบ้ดไธๅฝๆฐๅพๅใๅฆ:--$\mathrm{f(x) =}$ Function[x^2, -1, 1]ๅพๅฐๅฝๆฐ $\mathbf{x}^2$ ๅจๅบ้ด[-1,1]ไธ็ๅฝๆฐๅพๅใๅฆๆ่พๅ ฅ $\mathrm{g(x)} = 2\mathrm{f(x)}$ ๅฐไผๅพๅฐ $\mathrm{g(x)} = 2\mathrm{x}^2$ ๏ผไฝ่ฟไธชๅฝๆฐ็ๅฎไนๅๅนถไธ้ๅถๅจ[-1,1]ๅบ้ดไธใ--# ใๆกไปถๅฝๆฐใ--ๅฆๆ่ฆๅปบ็ซๆกไปถๅฝๆฐๅฏไปฅไฝฟ็จๅธๆๅฝไปค Ifใๅฆ๏ผ--$$-\mathrm {f (x) = I f [ x < 3 , \sin (x) , x ^ {\wedge} 2 ] \text {็ธ ๅฝ ไบ :} f (x) = \left\{ \begin{array}{l l} {\sin (x), \text {ๅฝ} x < 3} \\ {x ^ {2}, \text {ๅฝ} x \geq 3} \end{array} \right.}-$$--# ใๅฏผๆฐ๏ผๅพฎๅ๏ผใ--Derivative[Function]: ๆฑๅฝๆฐ $f(x)$ ็ๅฏผๆฐ๏ผๅพฎๅ๏ผใ--Derivative[Function, Number n]: ๆฑๆฑๅฝๆฐ $f(x)$ ็ $n$ ้ถๅฏผๆฐ๏ผ $n$ ๆฌกๅพฎๅ๏ผใ--# ใ็งฏๅใ--Integral[Function]: ๆฑๅฝๆฐ $f(x)$ ็ไธๅฎ็งฏๅใ--# ใๅค้กนๅผใ--Polynomial[Function]: ๆฑๅฝๆฐ $f$ ็ๅฑๅผๅผใ--Polynomial[List of n points]: ๅปบ็ซ็ป่ฟ $\mathbf{n}$ ไธช็น็ $\mathrm{n - 1}$ ๆฌกๅค้กนๅผใ--# ใๅฑๅผๅผใ--Expand[Function]: ๅฐๅผๅญๆไนๆณๅฑๅผใ--# ใๅ ๅผใ--Factor[Polynomial]: ๅฐๅค้กนๅผ่ฝฌๆขๆๅ ๅผไนๆณๅฝขๅผใ--# ใๅ็ฎใ--Simplify[Function]: ๅ็ฎ็ปๅฎ็ๅฝๆฐใๅฆ:--- Simplify $[\mathrm{x} + \mathrm{x} + \mathrm{x}]$ ๅพๅฐ $\mathrm{f(x)} = 3\mathrm{x}$-- Simplify $\left[\sin (\mathrm{x}) / \cos (\mathrm{x})\right]$ ๅพๅฐ $\mathrm{f(x)} = \tan (\mathrm{x})$-- Simplify $[-2\sin(x)\cos(x)]$ ๅพๅฐ $f(x) = \sin(-2x)$--# ใๆณฐๅๅฑๅผๅผใ--TaylorPolynomial[Function, Number a, Number n]: ๅปบ็ซๅฝๆฐ $f(x)$ ๅจ็น $x = a$ ็ $n$ ๆฌกๆณฐๅๅฑๅผๅผใ--# 9. ๅ้ฅๆฒ็บฟ--# ใๅใ--Circle[Point M, Number r]: ๅปบ็ซๅๅฟไธบ M ๅๅพไธบ r ็ๅใ--Circle[Point M, Segment]: ๅปบ็ซๅๅฟไธบ M ๅๅพไธบ s ็ๅ๏ผๅ่ๅ ็กฎๅฎๅๅพๅ็ปๅ็็ปๅพๅทฅๅ ท๏ผใ--Circle[Point M, Point A]: ๅปบ็ซๅๅฟไธบ M ไธ่ฟ็น A ็ๅใ--Circle[Point A, Point B, Point C]: ๅปบ็ซ่ฟไธ็นA๏ผB๏ผC็ๅใ--# ใๅ้ฅๆฒ็บฟใ--Conic[Point A, Point B, Point C, Point D, Point E]: ๅพๅฐ่ฟไบ็น A, B, C, D, E ็ๅ้ฅๆฒ็บฟใ--# ใๆคญๅใ--Ellipse[Point F, Point G, Number a]: ๅปบ็ซ็ฆ็นไธบ F ๅ G ไธๅ้ฟ่ฝด้ฟไธบ a ็ๆคญๅใ--Ellipse[PointF, PointG, Segment]: ๅปบ็ซ็ฆ็นไธบ F ๅ G ไธๅ้ฟ่ฝด้ฟ็ญไบ็บฟๆฎต s ้ฟๅบฆ็ๆคญๅใ--Ellipse[PointA,PointB,PointC]๏ผๅปบ็ซ็ฆ็นไธบAๅBไธ่ฟ็นC็ๅใ--# ใๅๆฒ็บฟใ--Hyperbola[Point F, Point G, Number a]: ๅปบ็ซ็ฆ็นไธบ F ๅ G ไธๅ้ฟ่ฝด้ฟไธบ a ็ๅๆฒ็บฟใ--Hyperbola[Point F, Point G, Segment]: ๅปบ็ซ็ฆ็นไธบ F ๅ G ไธๅ้ฟ่ฝด้ฟ็ญไบ็บฟๆฎต s ้ฟๅบฆ็ๅๆฒ็บฟใ--Hyperbola[Point A, Point B, Point C]: ๅปบ็ซ็ฆ็นไธบ A ๅ B ไธ่ฟ็น C ็ๅๆฒ็บฟใ--# ใๆ็ฉ็บฟใ--Parabola[Point F, Line g]: ๅปบ็ซ็ฆ็นไธบ F ๅ็บฟไธบ g ็ๆ็ฉ็บฟใ--# ใๅฏๅๅใ--OsculatingCircle[Point, Function]: ๅปบ็ซๅฝๆฐ $f$ ๅจ็น $A$ ็ๅฏๅๅใ--OsculatingCircle[Point, Curve]: ๅปบ็ซๆฒ็บฟ c ๅจ็น A ็ๅฏๅๅใ--# 10. ๅๆฐๆฒ็บฟ--# ใๆฒ็บฟใ--Curve[Expression e1, Expression e2, Parameter t, Number a, Number b]: ็ๆๅๆ ไธบ(e1,e2)็ๆฒ็บฟ๏ผๅ ถไธญe1๏ผe2ไธบๅๆฐๅผใๅฆ๏ผ--$$-c = \operatorname {C u r v e} [ 2 \cos (t), 2 \sin (t), t, 0, 2 p i ]-$$--# ใๅๆฐๆฒ็บฟ็ธๅ ณใ--Curvature[Point, Curve]: ่ฎก็ฎๆฒ็บฟไธไธ็น็ๆฒ็ใ--CurvatureVector[Point, Curve]: ็ๆๆฒ็บฟไธไธ็น็ๆฒ็ๅ้ใ--Derivative[Function]: ่ฎก็ฎๅฝๆฐ $f(x)$ ็ๅพฎๅใ--Derivative[Function, Number n]: ่ฎก็ฎๅฝๆฐ $f(x)$ ็ $n$ ๆฌกๅพฎๅใ--Length[Curve, Number t1, Number t2]: ่ฎก็ฎๆฒ็บฟๅจๅๆฐ t1 ๅ t2 ไน้ด็้ฟๅบฆใ--Length[Curve c, Point A, Point B]: ่ฎก็ฎๆฒ็บฟcๅจ็นAๅBไน้ด็ๆฒ็บฟ้ฟๅบฆใ--# 11. ๅๅผงๅๆๅฝข--# ใๅผงใ--Arc[Conic, Point A, Point B]: ๅพๅฐไปไบๅ้ฅๆฒ็บฟ c ไธไธค็น A ๅ B ไน้ด็ๅผงใ--Arc[Conic, Number t1, Number t2]: ๅพๅฐไปไบๅ้ฅๆฒ็บฟ c ไธๆขๅๆฐ t1 ๅ t2 ไน้ด็ๅผงใ--# ใๅๅผงใ--CircularArc[Point M, Point A, Point B]: ๅปบ็ซไปฅ M ็นไธบๅๅฟ๏ผ่ตท็นไธบ A ็ป็นไธบ B ็ๅๅผงใ--CircumcircularArc[Point A, Point B, Point C]: ๅปบ็ซ้่ฟA๏ผB๏ผCไธ็น็ๅๅผงใ--# ใๆๅฝขใ--CircularSector[Point M, Point A, Point B]: ๅปบ็ซ M ็นไธบๅๅฟ๏ผ่ตท็นไธบ A ็ป็นไธบ B ็ๆๅฝขใ--CircumcircularSector[Point A, Point B, Point C]: ๅปบ็ซ้่ฟA๏ผB๏ผCไธ็น็ๆๅฝขใ--Sector[Conic, Point A, Point B]: ๅปบ็ซไปไบๅ้ฅๆฒ็บฟ c ไธ็ไธค็น A ๅ B ไน้ด็ๅ้ฅๆฒ็บฟๆๅฝขๅบๅใ--Sector[Conic, Number t1, Number t2]: ๅปบ็ซไปไบๅ้ฅๆฒ็บฟ c ไธ็ไธคๅๆฐ t1 ๅ t2 ไน้ด็ๅ้ฅๆฒ็บฟๆๅฝขๅบๅใ--# ใๅๅใ--Semicircle[Point A, Point B]: ๅปบ็ซ็บฟๆฎต AB ไธ็ๅๅใ--# 12. ๆๅญ--# ใๅๆฐใ--FractionText[Number]๏ผๅฐๆฐๅผ่ฝฌๆขๆๅๆฐๅฝขๅผใ--# ใLaTexใ--LaTeX[Object]: ๅพๅฐ็จLaTex่กจ่พพ็ๅฏน่ฑก็ๆๅญใๅฆ๏ผ--่ฅ $a = 2$ ๅ $\mathrm{f(x) = ax^2}$ ๏ผ้ฃไนLaTeX[f]ๅพๅฐ $2\mathrm{x}^{2}$--LaTeX[Object, Boolean]: ้่ฟ้ป่พๅคๆญๅพๅฐ็จLaTex่กจ่พพ็ๅฏน่ฑก็ๆๅญใๅฆๆไธบ็๏ผ้ฃไน็จๆฐๅผไปฃๆฟไปฃๆฐ๏ผๅฆๅๆพ็คบไปฃๆฐๅผใ--่งฃ้๏ผLaTeX ๆฏไธ็งๅบไบ TeX ็ๆ็็ณป็ป๏ผๅฉ็จ่ฟ็งๆ ผๅผๅณไฝฟไฝฟ็จ่ ๆฒกๆๆ็ๅ็จๅบ่ฎพ่ฎก็็ฅ่ฏไนๅฏไปฅๅ ๅๅๆฅ็ฑ TeX ๆๆไพ็ๅผบๅคงๅ่ฝ๏ผ่ฝๅจๅ ๅคฉ๏ผ็่ณๅ ๅฐๆถๅ ็ๆๅพๅคๅ ทๆไนฆ็ฑ่ดจ้็ๅฐๅทๅใๅฏนไบ็ๆๅคๆ่กจๆ ผๅๆฐๅญฆๅ ฌๅผ๏ผ่ฟไธ็น่กจ็ฐๅพๅฐคไธบ็ชๅบใๅ ๆญคๅฎ้ๅธธ้็จไบ็ๆ้ซๅฐๅท่ดจ้็็งๆๅๆฐๅญฆ็ฑปๆๆกฃใ--# ใUnicodeใ--LetterToUnicode["Letter']: ๅฐๅญ็ฌฆ่ฝฌๅๆ Unicode๏ผ็ปไธ็ ๏ผใๅฆ๏ผLetterToUnicode["a"]ๅพๅฐ 97ใ--TextToUnicode["Text']: ๅฐๆๅญ่ฝฌๅๆ Unicode(็ปไธ็ )ใๅฆ: TextToUnicode["Some text"]ๅพๅฐ{83, 111, 109, 101, 32, 116, 101, 120, 116}ใ--UnicodeToText[List of Integers]: ๅฐ Unicode ่ฝฌๅๆๆๅญใๅฆ: UnicodeToText[\{104, 101, 108, 108, 111\}]ไผๅพๅฐๆๅญโhelloโใ--่งฃ้๏ผUnicode๏ผ็ปไธ็ ใไธๅฝ็ ใๅไธ็ ๏ผๆฏไธ็งๅจ่ฎก็ฎๆบไธไฝฟ็จ็ๅญ็ฌฆ็ผ็ ใๅฎไธบๆฏ็ง่ฏญ่จไธญ็ๆฏไธชๅญ็ฌฆ่ฎพๅฎไบ็ปไธๅนถไธๅฏไธ็ไบ่ฟๅถ็ผ็ ๏ผไปฅๆปก่ถณ่ทจ่ฏญ่จใ่ทจๅนณๅฐ่ฟ่กๆๆฌ่ฝฌๆขใๅค็็่ฆๆฑใ--# ใๅ็งฐใ--Name[Object]: ๅพๅฐ็ปๅพๅบ็ๅฏน่ฑกๅ็งฐใ--# ใๅฏน่ฑกใ--Object[Name of object as text]: ๅพๅฐๅฏน่ฑก็ๅ็งฐใๆนๅฝไปคไธโๅ็งฐโ็ธๅใ--# ใๆๅญใ--Text[Object]๏ผๅฐๅฏน่ฑก็ๆน็จๅผ่ฝฌๅๆๆๅญใๆ็ปๅบ็ฐ็ๆฐๅผๆๅญ็ฌฆ็ปๆใ--Text[Object, Boolean]: ้่ฟ้ป่พๅคๆญๅพๅฐๅฏน่ฑก็ๆๅญใๅ่LaTeX[Object, Boolean],--LaTex ๅฝไปคๅพๅฐ็ๆๅญๅฝขๅผไฝฟ็จ LaTeX ่ฏญๆณ่กจ่พพ็ใ--# 13. ่ฝจ่ฟน--Locus[PointQ,PointP]๏ผๆฑ็นQ็่ฝจ่ฟน็บฟ๏ผPไธบๆงๅถ็น๏ผใ--# 14.ๅ่กจ--# ใAppendใ--Append[List, Object]: ๅฐๅฏน่ฑกๅ ๅ ฅๅ่กจไธญๆไธบๆฐ็ๅ่กจ็ๆๅไธไธชๅ ็ด ใ--Append[Object, List]: ๅฐๅฏน่ฑกๅ ๅ ฅๅ่กจไธญๆไธบๆฐ็ๅ่กจ็็ฌฌไธไธชๅ ็ด ใ--# ใCountIfใ--CountIf[Condition, List]: ่ฎก็ฎ็ฌฆๅๆกไปถ็ๅ ็ด ไธชๆฐใๅฆ๏ผCountIf[x < 3, {1, 2, 3, 4, 5}]ๅพๅฐ 2ใ--# ใๅ ็ด ใ--Element[List, Number n]: ่ฐ็จๅ่กจไธญ็็ฌฌ $\mathbf{n}$ ไธชๅ ็ด ใ--# ใFirstใ--First[List]๏ผๅพๅฐๅ่กจไธญ็็ฌฌไธไธชๅ ็ด ใ--First[List, Number of elements]: ๅพๅฐไธไธชๅ ๅซ็ปๅฎๅ่กจไธญๅ $n$ ไธชๅ ็ด ็ๆฐๅ่กจใ--# ใLastใ--Last[List]: ๅพๅฐๅ่กจไธญ็ๆๅไธไธชๅ ็ด ใ--Last[List, Number of elements]: ๅพๅฐไธไธชๅ ๅซ็ปๅฎๅ่กจไธญๅ $n$ ไธชๅ ็ด ็ๆฐๅ่กจใ--# ใๆๅ ฅใ--Insert[Object, List, Position]: ๅฐๅฏน่ฑกๆๅ ฅๅฐๅ่กจ็ๆๅฎไฝ็ฝฎใ--# ใไบค้ใ--Intersection[List 1, List 2]: ๅฐไธคไธชๅ่กจ็ๅ ฌๅ ฑ้จๅ็ๆไธไธชๆฐ็ๅ่กจใ--# ใๅนถ้ใ--Union[List 1, List 2]: ๅๅนถไธคๅ่กจๅนถๅป้ค้ๅค็ๅ ็ด ใ--# ใ่ฟญไปฃๆฐๅใ--IterationList[Function, Number x0, Number n]: ๅฏไปฅๅพๅฐ $n + 1$ ไธชๅ ็ด ็ๅ่กจ๏ผๅ ถไธญๅ ็ด ๆฏ็ฑๅฝๆฐๅธฆๅ ฅ x0 ็ป่ฟๅคๆฌก่ฟญไปฃ็ๆ็ใๅฆ๏ผๅฎไน $f(x) = x^{\wedge}2$ ๏ผ่พๅ ฅ L = IterationList[f, 3, 2] ๅฏไปฅๅพๅฐ L = {3, 9, 81}--# ใๅๅนถใ--Join[List 1, List 2, ...]: ๅฐๅคไธชๅ่กจๅๅนถๆไธไธชๅ่กจใ่ฟ็งๅๅนถไฟ็็ธๅๅ ็ด ๏ผไธไผ้ๆฐๆๅบใ--Join[List of lists]: ๅฐๅญๅ่กจๅๅนถๅพๅฐไธไธชๆดๅคง็ๅ่กจใๆฐๅ่กจๅ ๅซๆๆๅ ็ด ๏ผๅนถไฟ็็ธ--ๅๅ ็ด ๏ผไธไผ้ๆฐๆๅบใ--# ใ็ญ้ใ--KeepIf[Condition, List]: ็ญ้ๅ่กจไธญ็ฌฆๅๆกไปถ็ๅ ็ด ใๅฆ: KeepIf[x<3, {1, 2, 3, 4, 1, 5, 6}] ๅฏๅพๅฐๆฐๅ่กจ{1, 2, 1}ใ--# ใ้ฟๅบฆใ--Length[List]: ่ฎก็ฎๅ่กจ็้ฟๅบฆ๏ผไนๅฐฑๆฏๅ ็ด ไธชๆฐใ--# ใๆๅฐๅผใ--Min[List]: ๅพๅฐๅ่กจไธญๆๅฐ็ๅ ็ด ใ--# ใๆๅคงๅผใ--Max[List]๏ผๅพๅฐๅ่กจไธญๆๅคง็ๅ ็ด ใ--# ใๅ ็งฏใ--Product[List of numbers]: ่ฎก็ฎๅ่กจไธญๆๆๆฐๅญ็ไน็งฏใ--# ใ็งป้คๆชๅฎไนๅฏน่ฑกใ--RemoveUndefined[List]: ็งป้คๅ่กจไธญๆฒกๆๅฎไน็ๅฏน่ฑกใ--# ใๆๅบใ--Sort[List]๏ผๅฏนๅ่กจไธญ็ๆฐๅผใๆๅญๆ็นๅๆๅบใๅฆ๏ผSort[\{3,2,1\}]ๅฏๅพๅฐๅ่กจ $\{1,2,3\}$ ใ--# ใๅๅบใ--Reverse[List]: ๅๅบๆๅๅ่กจใ--# ใๆฑๅใ--Sum[List]๏ผ่ฎก็ฎๅ่กจไธญๆๆๅ ็ด ไนๅใ่ฏฅๅฝไปคๅฏไปฅ็จไบๆฐๅผใ็นใๅ้ใๆๅญๅๅฝๆฐใ--# ใๆๅใ--Take[List, Start position m, End position n]: ๆๅๅ่กจไธญ็ฌฌ $\mathrm{m}$ ไธชๅ ็ด ๅฐ็ฌฌ $\mathrm{n}$ ไธชๅ ็ด ็ปๆๆฐ็ๅ่กจใ--# ใๅบๅใ--Sequence[Expression, Variable i, Number a, Number b]: ็ๆไธไธชๅบๅ๏ผไฝฟ็จ็ปๅฎ็่กจ่พพๅผๅๅ้iไปaๅฐbๅๅใๅฆ๏ผL = Sequence[(i, 1), i, 1, 5]ๅพๅฐ็็นๅบๅ๏ผxๅๆ ๅๅไป1ๅฐ5๏ผๅฆไธๅพๆ็คบใ----Sequence[Expression, Variable i, Number a, Number b, Numbers]๏ผ็ๆไธไธชๅบๅ๏ผไฝฟ็จ็ปๅฎ็่กจ่พพๅผๅๅ้iไปaๅฐbๅๅ๏ผๅ ถไธญๆญฅ้ฟไธบsใๅฆ๏ผL = Sequence[(i, 1), i, 1, 5, 0.5]ๅพๅฐ็็นๅบๅ๏ผxๅๆ ๅๅไป1ๅฐ5๏ผๆญฅ้ฟไธบ0.5ใๅฆไธๅพๆ็คบใ----# 15. ๅ ไฝๅๆข--# ใไผธ็ผฉใ--Dilate[Point A, Number, Point S]: ็นAๅ ณไบ็นSๅๆๅฎๆฏไพ็ไผธ็ผฉๅๆขใ--Dilate[Line, Number, Point S]: ็ด็บฟๅ ณไบ็นSๅๆๅฎๆฏไพ็ไผธ็ผฉๅๆขใ--Dilate[Conic, Number, Point S]: ๅ้ฅๆฒ็บฟๅ ณไบ็นSๅๆๅฎๆฏไพ็ไผธ็ผฉๅๆขใ--Dilate[Polygon, Number, Point S]: ๅค่พนๅฝขๅ ณไบ็นSๅๆๅฎๆฏไพ็ไผธ็ผฉๅๆขใ--Dilate[Image, Number, Point S]: ๅพ็ๅ ณไบ็นSๅๆๅฎๆฏไพ็ไผธ็ผฉๅๆขใ--# ใ้ๅใ--Reflect[Point A, Point B]: ็น A ๅฏน็น B ๅ้ๅใ--Reflect[Line, Point]: ็ด็บฟๅฏนๆๅฎ็นๅ้ๅใ--Reflect[Conic, Point]: ๅ้ฅๆฒ็บฟๅฏนๆๅฎ็นๅ้ๅใ--Reflect[Polygon, Point]: ๅค่พนๅฝขๅฏนๆๅฎ็นๅ้ๅใ--Reflect[Image, Point]: ๅพ็ๅฏนๆๅฎ็นๅ้ๅใ--Reflect[Point, Line]: ็นๅฏนๆๅฎ็ด็บฟๅ้ๅใ--Reflect[Line g, Line h]: ็ด็บฟ $\mathbf{g}$ ๅฏนๆๅฎ็ด็บฟ $\mathrm{h}$ ๅ้ๅใ--Reflect[Conic, Line]: ๅ้ฅๆฒ็บฟๅฏนๆๅฎ็ด็บฟๅ้ๅใ--Reflect[Polygon, Line]: ๅค่พนๅฝขๅฏนๆๅฎ็ด็บฟๅ้ๅใ--Reflect[Image, Line]: ๅพ็ๅฏนๆๅฎ็ด็บฟๅ้ๅใ--Reflect[Point, Circle]: ็นๅฏนๅ่ฟ่กๅๆผใ--# ใๆ่ฝฌใ--Rotate[Point, Angle]: ็นๅ ณไบๅ็นๆ่ฝฌๆๅฎ็่งๅบฆใ--Rotate[Vector, Angle]: ๅ้ๅ ณไบๅ็นๆ่ฝฌๆๅฎ็่งๅบฆใ--Rotate[Line, Angle]: ็ด็บฟๅ ณไบๅ็นๆ่ฝฌๆๅฎ็่งๅบฆใ--Rotate[Conic, Angle]: ๅ้ฅๆฒ็บฟๅ ณไบๅ็นๆ่ฝฌๆๅฎ็่งๅบฆใ--Rotate[Polygon, Angle]: ๅค่พนๅฝขๅ ณไบๅ็นๆ่ฝฌๆๅฎ็่งๅบฆใ--Rotate[Image, Angle]: ๅพ็ๅ ณไบๅ็นๆ่ฝฌๆๅฎ็่งๅบฆใ--Rotate[Point A, Angle, Point B]: ็นAๅ ณไบ็นBๆ่ฝฌๆๅฎ็่งๅบฆใ--Rotate[Line, Angle, Point]: ็ด็บฟๅ ณไบๆๅฎ็นๆ่ฝฌๆๅฎ็่งๅบฆใ--Rotate[Vector, Angle, Point]: ๅ้ๅ ณไบๆๅฎ็นๆ่ฝฌๆๅฎ็่งๅบฆใ--Rotate[Conic, Angle, Point]: ๅ้ฅๆฒ็บฟๅ ณไบๆๅฎ็นๆ่ฝฌๆๅฎ็่งๅบฆใ--Rotate[Polygon, Angle, Point]: ๅค่พนๅฝขๅ ณไบๆๅฎ็นๆ่ฝฌๆๅฎ็่งๅบฆใ--Rotate[Image, Angle, Point]: ๅพ็ๅ ณไบๆๅฎ็นๆ่ฝฌๆๅฎ็่งๅบฆใ--# ใๅนณ็งปใ--Translate[Point, Vector]: ็นๆฒฟๆๅฎๅ้ๅนณ็งปใ--Translate[Line, Vector]: ็ด็บฟๆฒฟๆๅฎๅ้ๅนณ็งปใ--Translate[Conic, Vector]: ๅ้ฅๆฒ็บฟๆฒฟๆๅฎๅ้ๅนณ็งปใ--Translate[Function, Vector]: ๅฝๆฐๆฒฟๆๅฎๅ้ๅนณ็งปใ--Translate[Polygon, Vector]: ๅค่พนๅฝขๆฒฟๆๅฎๅ้ๅนณ็งปใ--Translate[Image, Vector]: ๅพ็ๆฒฟๆๅฎๅ้ๅนณ็งปใ--Translate[Vector, Point]: ๅ้ v ๅนณ็งปๅฐๆๅฎ็็นใ--# 16. ็ป่ฎก--# ใๆฑๅใ--SigmaXX[List of numbers]: ่ฎก็ฎ็ปๅฎๆฐๅผ็ๅนณๆนๅใ--SigmaXX[List of points]: ่ฎก็ฎ็ปๅฎ็นๅ็ $\mathbf{X}$ ๅๆ ็ๅนณๆนๅใ--SigmaXY[List of x-coordinates, List of y-coordinates]: ่ฎก็ฎไธค็นๅ็ $\mathbf{x}$ ไธ $\mathbf{y}$ ๅๆ ไน็งฏ็ๅใ--SigmaXY[List of points]: ่ฎก็ฎ $\mathbf{x}$ ๅๆ ๅ $\mathbf{y}$ ๅๆ ็ไน็งฏๅใ--SigmaYY[List of Points]: ่ฎก็ฎ็ปๅฎ็นๅ $\mathbf{y}$ ๅๆ ็ๅนณๆนๅใ--# ใไธญไฝๆฐใ--Median[List of numbers]: ๅพๅฐๅ่กจไธญๅ ็ด ็ไธญไฝๆฐใ--# ใไผๆฐใ--Mode[List of numbers]: ๅพๅฐๅ่กจไธญๅ ็ด ็ไผๆฐใ--# ใๅนณๅๆฐใ--Mean[List of numbers]: ่ฎก็ฎๅ่กจไธญๅ ็ด ็ๅนณๅๆฐใ--MeanX[List of points]: ่ฎก็ฎๅ่กจไธญๅ ็ด $\mathbf{x}$ ๅๆ ็ๅนณๅๆฐใ--MeanY[List of points]: ่ฎก็ฎๅ่กจไธญๅ ็ด y ๅๆ ็ๅนณๅๆฐใ--# ใๅๅไฝๆฐใ--Q1[List of numbers]: ๅพๅฐๅ่กจๅ ็ด ไธญ็็ฌฌไธๅๅไฝๆฐใ--Q3[List of numbers]: ๅพๅฐๅ่กจๅ ็ด ไธญ็็ฌฌไธๅๅไฝๆฐใ--# ใๆนๅทฎใ--Variance[List of numbers]: ่ฎก็ฎๅ่กจๅ ็ด ็ๆนๅทฎใ--# ใๆ ๅๅทฎใ--SD[List of Numbers]: ่ฎก็ฎๅ่กจไธญๆฐๅผ็ๆ ๅๅทฎใ--# ใ็ธๅ ณ็ณปๆฐใ--CorrelationCoefficient[List of x-coordinates, List of y-coordinates]: ไฝฟ็จ็ปๅฎ็ x ๅๆ ๅ y ๅๆ ่ฎก็ฎ็ธๅ ณ็ณปๆฐ็ไน็งฏใ--CorrelationCoefficient[List of points]: ไฝฟ็จ็ปๅฎ็น็ๅๆ ่ฎก็ฎ็ธๅ ณ็ณปๆฐ็ไน็งฏใ--# ใๅๆนๅทฎใ--Covariance[List 1 of numbers, List 2 of numbers]: ่ฎก็ฎไธคๅ่กจ็ๅๆนๅทฎใ--Covariance[List of points]: ่ฎก็ฎ $\mathbf{X}$ ๅๆ ๅyๅๆ ็ๅๆนๅทฎใ--# ใๆญฃๆๅๅธๅฝๆฐใ--Normal[Mean, Standard deviation, Variable value]: ่ฎก็ฎๅฝๆฐ $(\Phi(\mathbf{x})$ -mean)/(standard deviation) ๅ ถไธญ $\Phi(\mathbf{x})$ ๆฏ็ฌฆๅ $\mathrm{N}(0,1)$ ๅๅธ็ๆฆ็ๅฏๅบฆๅฝๆฐใ--# ใๅๆญฃๆๅฝๆฐใ--InverseNormal[Mean, Standard deviation, Probability]: ่ฎก็ฎๅ ทๆ็ปๅฎๆฆ็ๆญฃๆๅๅธ็ๅบ้ด็นใ--# ใๆกๅฝขๅพใ--BarChart[Start value, End value, List of heights]: ๅปบ็ซๆๅฎๅบ้ดๅ ็ๆกๅฝขๅพ๏ผๆกๅฝขไธชๆฐๅๅณไบ่กจๆ ผ้ฟๅบฆ๏ผ้ซๅบฆๅๅณไบๅ ็ด ๅคงๅฐใๅฆ๏ผBarChart[10, 20, {1,2,3,4,5}]ๅพๅฐๅฆไธๅพๆ็คบใ----BarChart[Start value a, End value b, Expression, Variable k, From number c, To number d]: ๅปบ็ซ[a,b]ไน้ด็ๆกๅฝขๅพ๏ผ็จๅซๅ้k็่กจ่พพๅผ่กจ็คบๆกๅฝข้ซๅบฆ๏ผๅ ถไธญkไปcๅฐdๅๅใ--BarChart[List of raw data, Width of bars]: ็ฑ็ปๅฎๆฐๆฎ็ๆๆกๅฝขๅพใๅฏ่ฎพๅฎๆกๅฎฝใ--BarChart[List of data, List of frequencies]: ๅปบ็ซไฝ็ฝฎ้ฟๅบฆ็ๆกๅฝขๅพใ--BarChart[List of data, List of frequencies, Width of bars w]: ๅปบ็ซไฝ็ฝฎ้ฟๅบฆ็ๆกๅฝขๅพ๏ผๅนถๆๅฎๆกๅฎฝใๅฆ๏ผBarChart[{10,11,12,13,14}, {1,2,3,0,3}, 0.5] ๅพๅฐๅฆไธๅพๆ็คบใ----# ใ็ดๆนๅพใ--Histogram[List of class boundaries, List of heights]: ็ฑ็ปๅฎ็้ซๅบฆๅปบ็ซ็ดๆนๅพใ--Histogram[List of class boundaries, List of raw data]: ไฝฟ็จ็ปๅฎ็ๆฐๆฎๅปบ็ซ็ดๆนๅพใๅฆ: Histogram[\{1, 2, 3, 4\}, \{1.0, 1.1, 1.1, 1.2, 1.7, 2.2, 2.5, 4.0\}]ๅพๅฐๅฆไธๅพๆ็คบใ----# ใ็ๅฝขๅพใ--BoxPlot[yOffset, yScale, List of raw data]: ๅปบ็ซ็ปๅฎๆฐๆฎ็็็ถๅพ๏ผๅนถๅจๅๆ ็ณป็ๅ็ดๆนๅๆฏ็ฑy็ๅ็งป้ๆงๅถ็๏ผ้ซๅบฆๅy็ๅบฆ้ๅฝฑๅใ--BoxPlot[yOffset, yScale, Start value, Q1, Median, Q3, End value]: ๅจๅบ้ดไธๅปบ็ซ็ๅฝขๅพใ--# ใ็บฟๆงๅๅฝใ--FitLine[List of points]: ่ฎก็ฎ xy ๅๆ ไธ็็บฟๆงๅๅฝใ--# ใๅ ถไปๅๅฝใ--FitExp[List of points]: ่ฎก็ฎๆๆฐๅๅฝๆฒ็บฟใ--FitLineX[List of points]: ่ฎก็ฎ xy ๅๆ ๅนณ้ขไธ็็บฟๆงๅๅฝใ--FitLog[List of points]: ่ฎก็ฎๅฏนๆฐๅๅฝๆฒ็บฟใ--FitLogistic[List of points]: ่ฎก็ฎ Logistic ๅๅฝๆฒ็บฟใ--FitPoly[List of points, Degree n of polynomial]: ่ฎก็ฎ $\mathbf{n}$ ๆฌกๅค้กนๅผ็ๅๅฝๆน็จใ--FitPow[List of points]: ่ฎก็ฎ $\mathbf{a}\mathbf{x}^{\mathrm{b}}$ ๅ็ๅๅฝๆฒ็บฟใ--FitSin[List of points]: ่ฎก็ฎ $a + b \sin (cx + d)$ ๅ็ๅๅฝๆฒ็บฟใ--# 17. ็ตๅญ่กจๆ ผ--# ใ่กๅทใ--Row[Spreadsheet cell]๏ผๅพๅฐ้็ฉบๅๅ ๆ ผ็่กๅทใๅฆ๏ผ่ฅB3้็ฉบ๏ผ้ฃไนColumn[B3]ๅฏไปฅๅพๅฐๆฐๅผ $a = 3$ ๏ผๅ ไธบB3ๅจ็ฌฌไธ่กใ--# ใๅๅทใ--Column[Spreadsheet cell]๏ผๅพๅฐ้็ฉบๅๅ ๆ ผ็ๅๅทใๅฆ๏ผ่ฅB3้็ฉบ๏ผ้ฃไนColumn[B3]ๅฏไปฅๅพๅฐๆฐๅผ $a = 2$ ๏ผๅ ไธบBๆฏ็ฌฌไบๅใ--# ใ็ๆๅ่กจใ--CellRange[Start cell, End cell]: ็ฑๆๅฎ่ๅด็ๅๅ ๆ ผ็ๆๅ่กจใ--# 18. ้ป่พๅฝไปค--# ใIfใ--If[Condition, Object]: ๅฆๆๆกไปถๅผไธบ็๏ผๅฏไปฅๅพๅฐ Objectใๅฆๆๆกไปถๅผไธบๅๆถ๏ผไธบ undefined Objectใ--If[Condition, Object a, Object b]: ๅฆๆๆกไปถๅผไธบ็๏ผๅฏไปฅๅพๅฐ Objectใๅฆๆๆกไปถๅผไธบๅๆถ๏ผไธบ Object bใ--# ใIsDefinedใ--IsDefined[Object]: ๆ นๆฎๅฏน่ฑกๆฏๅฆๆๅฎไน๏ผ่ฟๅ็ๅๅผใ--# ใIsIntegerใ--IsInteger[Number]: ๆ นๆฎๅฏน่ฑกๆฏๅฆไธบๆดๆฐ๏ผ่ฟๅ็ๅๅผใ--# ็ฌฌๅ ญ็ซ ่ๅ--# 1. ๆไปถ--# ใๆฐ็ชๅฃใ--็นๅป่ฏฅ้กนๅฏไปฅๆฐๅปบ GeoGebra ็ชๅฃ๏ผ็ชๅฃๅธๅฑ็ฌฆๅไนๅ็้ข่ฎพใ--# ใๆฐๅปบใ--็นๅป่ฏฅ้้กนๅฏไปฅๅจๅไธไธชGeoGebra็ชๅฃๅ ๆฐๅปบ็ฉบ็ฝ็้ข๏ผๅจๅผๅฏๆฐ็ๆไปถๅ๏ผ็ต่ไผ่ฏข้ฎๆฏๅฆไฟๅญๅฝๅๆไปถใ--# ใๆๅผใ--็นๅป่ฏฅ้้กนๅฏไปฅ็จๆฅๆๅผ็ต่ไธญ็ GeoGebra ๆไปถ๏ผๆไปถๅ็ผไธบ .ggbใ--# ใไฟๅญใ--็นๅป่ฏฅ้้กนๅฏไปฅๅฐๆไปถๅญๅจไธบ GeoGebra ๆไปถ๏ผๆไปถๅ็ผไธบ.ggbใ--# ใๅฆๅญไธบใ--็นๅป่ฏฅ้้กนๅฏไปฅๅฐๆไปถๅฆๅญไธบๆฐ็ GeoGebra ๆไปถ๏ผ็ต่ไผ่ฆๆฑ่พๅ ฅๆฐ็ๆไปถๅใ--# ใๅฏผๅบใ--็นๅป่ฏฅ้้กนๅนถ้ๆฉไธไธ็บง้้กนๅฏไปฅๅฐๆไปถไฟๅญๆๅ ถไปๆ ผๅผ๏ผๅฆ๏ผ็ฝ้กตใๅพ็ใ--ๆไธๅๅพ็ๆ ผๅผๅฏไพ้ๆฉ๏ผ--PNGโโๆตๅผ็ฝ็ปๅพๅฝขๆ ผๅผ(Portable Network Graphic Format)ๆฏไธ็งไฝๅพๆไปถ(bitmap file)ๅญๅจๆ ผๅผใPNGๆ ผๅผๅพ็ๅ ๅ ถ้ซไฟ็ๆงใ้ๆๆงๅๆไปถไฝ็งฏ่พๅฐ็ญ็นๆง๏ผ่ขซๅนฟๆณๅบ็จไบ็ฝ้กต่ฎพ่ฎกใๅนณ้ข่ฎพ่ฎกไธญใ็ฝ็ป้่ฎฏไธญๅ ๅๅธฆๅฎฝๅถ็บฆ๏ผๅจไฟ่ฏๅพ็ๆธ ๆฐใ้ผ็็ๅๆไธ๏ผไธ่ฝๅคง่ๅด็ไฝฟ็จๆไปถ่พๅคง็bmpใ.jpgๆ ผๅผๆไปถ๏ผๆไปฅPNGๆ ผๅผๆไปถ่ช่ฏ็ไนๆฅ่ตทๅฐฑๅคง่กๅ ถ้ใ--EPSโโEPS(Encapsulated PostScript)ๆฏๅค็ๅพๅๅทฅไฝไธญ็ๆ้่ฆ็ๆ ผๅผ๏ผๅฎๅจMacๅPC็ฏๅขไธ็ๅพๅฝขๅ็้ข่ฎพ่ฎกไธญๅนฟๆณไฝฟ็จใEPSๆไปถๆฏ็ฎๅๆก้ขๅฐๅ็ณป็ปๆฎ้ไฝฟ็จ็้็จไบคๆขๆ ผๅผๅฝไธญ็ไธ็ง็ปผๅๆ ผๅผ๏ผๅคง้จๅๆ็ๅๅพๅฝขๅค็่ฝฏไปถ้ฝๅฏไปฅไฝฟ็จๅฎใEPSๆไปถๅฏไปฅๅบ็จไบๆ็ใ่ฎพ่ฎกใ--PStricksโโๆนไพฟLatexไฝฟ็จ็ๅพ็ๆ ผๅผใ--PGF/TikZโโๆนไพฟLaTexไฝฟ็จ็ๅพ็ๆ ผๅผใ--# ใๆๅฐ้ข่งใ--็นๅป่ฏฅ้้กนๅฏไปฅๆๅผโๆๅฐ้ข่งโ็ชๅฃ๏ผๅฏไปฅ่พๅ ฅโๆ ้ขโโไฝ่ โโๆฅๆโๅนถ่ฎพ็ฝฎๆพ็คบๆฏไพใ--# ใๅ ณ้ญใ--็นๅป่ฏฅ้้กนๅฏไปฅๅ ณ้ญGeoGebra็ชๅฃใ--# 2. ็ผ่พ--# ใๆค้ใ--็นๅป่ฏฅ้้กนๅฏไปฅๅๅฐไธไธไธชๅจไฝใๅทฅๅ ทๆ ๅณไพงไนๆๅๆ ทๅ่ฝ็ๆ้ฎใ--# ใ้ๅใ--็นๅป่ฏฅ้้กนๅฏไปฅ้ๅไธไธไธช็ๅจไฝใๅทฅๅ ทๆ ๅณไพงไนๆๅๆ ทๅ่ฝ็ๆ้ฎใ--# ใๅ ้คใ--็นๅป่ฏฅ้้กนๅฏไปฅๅ ้ค้ไธญ็ๅฏน่ฑกไปฅๅไธไน็ธๅ ณ็ๅฏน่ฑกใ--# ใ้ๆฉๅ จ้จใ--็นๅป่ฏฅ้้กนๅฏไปฅ้ๅๆๆๅฏน่ฑกใ--# ใ้ๆฉๅฝๅๅฑใ--็นๅป่ฏฅ้้กนๅฏไปฅ้ๅๅจๅไธๅฑ็ๅฏน่ฑกใไฝฟ็จ่ฏฅ้้กนๅ้่ฆๅ ็น้ไธไธชๅฏน่ฑกไฝไธบๅพๅฑ็ไพๆฎใ--# ใ้ๆฉๅ็ปงใ--็นๅป่ฏฅ้้กนๅฏไปฅ้ๅๆๆ่ฏฅๅฏน่ฑกๆๅ ณ็ๆดพ็ๅฏน่ฑกใ--# ใ้ๆฉ็ฅๅ ใ--็นๅป่ฏฅ้้กนๅฏไปฅ้ๅๆๆๅฏน่ฑก็็ฅๅ ใ--# ใๅฑๆงใ--็นๅป่ฏฅ้้กนๅฏไปฅๆๅผๅฑๆงๅฏน่ฏๆก๏ผไพไฟฎๆนๅฏน่ฑกๅฑๆงใ--# 3. ๆฅ็--# ใๅๆ ่ฝดใ--็นๅป่ฏฅ้้กนๅฏไปฅๆพ็คบๆ้่็ปๅพๅบไธญ็ๅๆ ่ฝดใ--# ใ็ฝๆ ผใ--็นๅป่ฏฅ้้กนๅฏไปฅๆพ็คบๆ้่็ปๅพๅบไธญๅๆ ็็ฝๆ ผใ--# ใไปฃๆฐๅบใ--ๅพ้่ฏฅ้้กนๅฏไปฅๆพ็คบไปฃๆฐๅบใ--# ใ็ตๅญ่กจๆ ผใ--ๅพ้่ฏฅ้้กนๅฏไปฅๆพ็คบ็ตๅญ่กจๆ ผใ--# ใ่พ ๅฉๅฏน่ฑกใ--ๅพ้่ฏฅ้้กนๅฏไปฅๆพ็คบไปฃๆฐๅปไธญ็่พ ๅฉๅฏน่ฑกใ--# ใ็ชๅฃๅทฆๅณๅนถๆใ--ๅพ้่ฏฅ้้กนๅ็ชๅฃๅธๅฑไธบๅทฆๅณๆๅ๏ผๅฆๅไธบไธไธๆๅใ--# ใๅฝไปคๆกใ--ๅพ้่ฏฅ้้กนๅฏไปฅๆพ็คบๅฝไปคๆก๏ผๅฝไปคๆกไฝไบGeoGebra็ชๅฃๅบ้จใ--# ใๅฝไปคๅ่กจใ--ๅพ้่ฏฅ้้กนๅฏไปฅๆพ็คบๅฝไปคๆกไธญ็ๅฝไปคๅ่กจใ--# ใไฝๅพ่ฟ็จใ--็นๅป่ฏฅ้้กนๅฏไปฅๆๅผโไฝๅพ่ฟ็จโ็ชๅฃใ--# ใไฝๅพ่ฟ็จๅฏผ่ชๆกใ--ๅพ้่ฏฅ้้กนๅฏไปฅๆพ็คบไฝๅพ่ฟ็จๅฏผ่ชๆกใ--# ใๅทๆฐ่งๅพใ--็นๅป่ฏฅ้้กนๅฏไปฅ้ๆฐๆด็ๆไปฅ่งๅพ๏ผๆธ ๆฅๆๆ็นๆ็บฟ็่ฝจ่ฟนใ--# ใ้ๆฐ่ฎก็ฎๆๆๅฏน่ฑกใ--็นๅป่ฏฅ้้กนๅฏไปฅ้ๆฐ่ฎก็ฎ GeoGebra ๆไปถไธญ็ๆๆๅฏน่ฑกใ--# 4. ้้กน--# ใๅธ้ๆ ผ็นใ--่ฏฅ้้กนๅฏไปฅ้ๆฉๅผๅฏๆๅ ณ้ญ็นๅธ้ๆ ผ็น็ๅ่ฝใๅฆๆ้ๆฉโ่ชๅจโ๏ผๅฝๆพ็คบ็ฝๆ ผๆถๅธ้ๆ ผ็นๅ่ฝๅฐๅผๅฏ๏ผไธๆพ็คบ็ฝๆ ผๆถๅ่ฏฅๅ่ฝๅ ณ้ญใ--# ใ่ง็ๅไฝใ--่ฏฅ้้กนๅฏไปฅ้ๆฉ่ง็ๅไฝๆฏ่งๅบฆๆๆฏๅผงๅบฆใ--# ใๆฐๅผ่ฟไผผใ--่ฏฅ้้กนๅฏไปฅ้ๆฉไฟ็็ๅคๅฐไฝๅฐๆฐใ--# ใ็งปๅจ่ฟ็ปญๆงใ--ๅฏไปฅ้ๆฉๅผๅฏๆๅ ณ้ญ็งปๅจ่ฟ็ปญๆงใ--# ใ็น็ๆ ทๅผใ--็นๅป่ฏฅ้้กนๅฏไปฅ้ๆฉ็น็ๆ ทๅผ๏ผGeoGebraไธญๆ7็งๆ ทๅผๅฏไพ้ๆฉใ--# ใๅๆ ใ--่ฏฅ้้กนๅฏไปฅ้ๆฉๅๆ ็ๆพ็คบๆนๅผ๏ผๅ ฑๆไธ็งๅฝขๅผ๏ผ $\mathrm{A = (x,y)}$ ๏ผ $\mathrm{A(x|y)}$ ๏ผ $\mathrm{A:(x,y)}$ ใ--# ใๅค้ๆกๅคงๅฐใ--็นๅป่ฏฅ้้กนๅฏไปฅ้ๆฉๅค้ๆก็ๅคงๅฐใ--# ใ็ด่งๆ ทๅผใ--่ฏฅ้้กนๅฏไปฅ้ๆฉๅฆไฝๆฅๆ ่ฎฐ็ด่ง๏ผ็ฉๅฝขใ็นใๆไธ่ฌใ--# ใๅฏน่ฑกๆ ็ญพใ--่ฏฅ้้กนๅฏไปฅ้ๆฉๆฏๅฆๆพ็คบๆฐๅขๅฏน่ฑก็ๆ ็ญพใๅฏไพ้ๆฉ็ๆ๏ผ่ชๅจใๆพ็คบๆฐๅฏน่ฑกๆ ็ญพใ้่ๆฐๅฏน่ฑกๆ ็ญพๆๅชๆพ็คบๆฐๅฏน่ฑกๆ ็ญพใ--# ใๅญไฝๅคงๅฐใ--่ฏฅ้้กนๅฏไปฅ่ฐๆดๆ ็ญพๅๆๅญ็ๅญไฝๅคงๅฐใ--# ใ่ฏญ่จใ--GeoGebra ๆๅค็ง่ฏญ่จๅฏไพ้ๆฉ๏ผๅฏไปฅ้่ฟ่ฏฅ้้กน่ฎพๅฎ่ฏญ่จใ--# ใ็ปๅพๅบใ--็นๅป่ฏฅ้้กนๅฏไปฅๆๅผ็ปๅพๅบๅฑๆงๅฏน่ฏๆก๏ผๅฏไปฅไฟฎๆนๅๆ ่ฝดใ็ฝๆ ผไปฅๅ่ๆฏ้ข่ฒใ--# ใไฟๅญ่ฎพๅฎใ--็นๅป่ฏฅ้้กนๅฏไปฅไฟๅญๅฏนไบGeoGebra็ๅๅฅฝ่ฎพๅฎ๏ผไธๆฌกๆๅผ่ฝฏไปถๆถ่ๅๆ ใๅทฅๅ ทๆ ๅ็ปๅพๅบ้ฝๅฐๆ นๆฎไนๅ็่ฎพๅฎๆพ็คบใ--# ใๆขๅค้ป่ฎค่ฎพ็ฝฎใ--็นๅป่ฏฅ้้กนๅฏไปฅๆขๅค GeoGebra ็้ป่ฎค่ฎพ็ฝฎใ--# 5. ๅทฅๅ ท--# ใๆฐๅทฅๅ ทใ--ๅจ GeoGebra ไธญๅฏไปฅๆ นๆฎ็ฐๆ็ๆๅพ๏ผๅปบ็ซ่ชๅฎไนๅทฅๅ ทใๅจๅบ็ฐ็ๅฏน่ฏๆกไธญ๏ผๅฏไปฅ่ฎพๅฎๅทฅๅ ท่พๅ ฅ่พๅบ็ๅฏน่ฑก๏ผๅนถไธ้ๆฉๅทฅๅ ทๆ ๆพ็คบ็ๅ็งฐๅๅพๆ ใ--# ใๅทฅๅ ท็ฎก็ใ--็นๅป่ฏฅ้้กนๅฐไผๆๅผโๅทฅๅ ท็ฎก็โๅฏน่ฏๆก๏ผๅฏไปฅๅ ้คๅทฅๅ ทๆ่ ไฟฎๆนๅทฅๅ ท็ๅ็งฐๅๅพๆ ใไนๅฏไปฅๅฐ้ๅ็ๅทฅๅ ทๅญๅจไธบ.ggtๆ ผๅผใ--# ใ่ชๅฎไนๅทฅๅ ทๆ ใ--็นๅป่ฏฅ้้กน๏ผๅฏไปฅ่ชๅฎไนๅทฅๅ ทๆ ไธญ็ๅพๆ ใๅฏไปฅ้ๅถไธไบๅทฅๅ ทๅบ็ฐๅจๅทฅๅ ทๆ ไธญใ--# 6. ็ชๅฃ--# ใๆฐ็ชๅฃใ--็นๅป่ฏฅ้้กนๅฏไปฅๅปบ็ซๆฐ็GeoGebra็ชๅฃใ--# 7. ๅธฎๅฉ--# ใๅธฎๅฉใ--็นๅป่ฏฅ้้กนๅฏไปฅๆๅผ GeoGebra ็ๅจ็บฟๅธฎๅฉๆไปถใๅฆๆๆฏ็ฆป็บฟๅฎ่ฃ ็ GeoGebra ๅๅฏไปฅ--# ๅจๆๆฐๅญฆ่ฝฏไปถ GeoGebra ไฝฟ็จๆๅ--็ฆป็บฟๆฅ็่ฏฅๆไปถ๏ผๅฆๆๆฏๅจ็บฟๅฎ่ฃ ็GeoGebraๅ้่ฆๅจ็บฟๆฅ็ใ--# ใ็ฝ็ซใ--็นๅป่ฏฅ้้กนๅฏไปฅๆๅผ GeoGebra ็ๅฎๆน็ฝ็ซใ(www.geogebra.org)--# ใ่ฎบๅใ--็นๅป่ฏฅ้้กนๅฏไปฅๆๅผ GeoGebra ็็จๆท่ฎบๅใ(www.geogebra.org/forum)--# ใGeoGebra ็ปดๅบใ--็นๅป่ฏฅ้้กนๅฏไปฅๆๅผ GeoGebra Wiki. (www.geogebra.org/wiki)--# ใๅ ณไบ/็ๆๅฎฃๅใ--็นๅป่ฏฅ้้กนๅฏไปฅๆๅผๅ ณไบ GeoGebra ็ๆไฟกๆฏ็็ชๅฃไปฅๅ้ธฃ่ฐขไปฅไธๅๆนๅผๆฏๆ GeoGebra ่ฎกๅ็ไบบๅใ--# ็ฌฌไธ็ซ GeoGebra ็็นๆง--# 1. ๅจ็ป--# 1.1๏ผ่ชๅจๅจ็ป--GeoGebra ๅฏไปฅๅฎ็ฐไธไธชๆๅคไธช่ชๅ้ๆ่ ่งๅบฆ็ๅจ็ปๆๆ๏ผ่ฟ็งๅจ็ปๆๆๅฏไปฅๅจ็ปๅพๅบไธญ้่ฟๆปๆๆฅๅฎ็ฐใ--ๅจ GeoGebra ไธญ๏ผๅฆๆ่ฆๅฎ็ฐ่ชๅจๅจ็ปๆๆ๏ผ้่ฆๅจๆปๆไธ็นๅป้ผ ๆ ๅณ้ฎ๏ผๅจๅณ้ฎ่ๅไธญๅพ้โๅผๅฏๅจ็ปโใๅจโๅฑๆงโไธญๅฏไปฅ่ฎพๅฎๅจ็ป็ไธไบ่กไธบ๏ผ----1. ๆงๅถๅจ็ป็้ๅบฆใๅฝ้ๅบฆ่ฎพๅฎไธบ 1 ๆถ๏ผ่กจ็คบๅฎๆๆปๆไธ็ไธไธชๅบ้ด้่ฆ 10 ็งใ-2. ๆนๅๅจ็ป็้ๅคๆนๅผใๆ๏ผ--- <=>ๅพๅคๆฏ่ก็-$\cdot = >$ ๅข้ฟ็-$< =$ ๅๅฐ็--# 1.2. ๆๅจๅจ็ป--ๆ่ฐโๆๅจโๅฐฑๆฏไฝฟ็จ็งปๅจๅทฅๅ ทๆฅๅฎ็ฐๅจ็ปๆๆ๏ผ็น้่ฆๆนๅ็ๅ้ๆ่งๅบฆ๏ผ็ถๅไฝฟ็จ้ฎ็ไธ็+ๆ-้ฎ๏ผๆ่ ไธไธๆนๅ้ฎ๏ผๆ็ปญๆไฝๆฅๅฎ็ฐๆๅจๅๅๆๆใ--# 2. ๆพ็คบๆกไปถ--ๅจGeoGebraไธญ้คไบๅฏไปฅ็ดๆฅๆพ็คบๆ้่ๆไธชๅฏน่ฑก๏ผไนๅฏไปฅ่ฎพๅฎๅฏน่ฑก็ๆพ็คบ้่ๆกไปถใไพๅฆ๏ผๅจ็ปๅพๅบไธญๆฐๅขไธไธชๅค้ๆก๏ผๅฝๅพ้ๆถๆๅฏน่ฑกๆไผๅบ็ฐ๏ผๆๆ่ ่ฎพๅฎๅฝๆปๆๅๅๅฐๆไธไธชๅผๆถๅฏน่ฑกๆไผๅบ็ฐใ--ๅฏไปฅ้็จ็ปๅพๅทฅๅ ทไธญ็โๅฏน่ฑก็พค็ป้่ๆพ็คบๆ้ฎโๆฅๅปบ็ซไธไธชๅค้ๆก๏ผๅฉ็จๅพ้ๅค้ๆกๆฅๆพ็คบไธไธชๆๅคไธชๅฏน่ฑกใๆญคๅค๏ผไนๅฏไปฅๅจๅฝไปคๆก้่พๅ ฅไธไธชๅธๆๅฝๆฐ๏ผ้่ฟ่ฟไธชๅฝๆฐ็้ป่พๅผๆฅๆนๅๅฏน่ฑกๅจ็ปๅพไธญ็ๆพ็คบๆ้่ใ--ๅจๅฏน่ฑกไธ็นๅป้ผ ๆ ๅณ้ฎ๏ผๆๅผโๅฑๆงโๅฏน่ฏๆก๏ผๅจโ้ซ็บงโ้้กนๅกไธญๅฏไปฅ่ฎพๅฎๅฏน่ฑก็ๆพ็คบๆกไปถใๅจ่ฎพๅฎๅฏน่ฑก็ๆพ็คบๆกไปถๆถ๏ผๅฏไปฅไฝฟ็จๅณไพง็ไธๆๅ่กจ๏ผ้็จๅ็ง้ป่พ็ฌฆๅทใๅฆ๏ผ $\neq$ ใ $\geq$ ใ $\land$ ็ญใไพๅญๅฆไธ๏ผ--- ๅฆๆ a ๆฏๆฐๅผๆปๆ๏ผๅจๆๅฏน่ฑก็ๆพ็คบๆกไปถไธญ่พๅ ฅ $a < 2$ ๏ผ้ฃไนๅฝ a ๆปๅฐๅฐไบ 2 ็ๆถๅ่ฏฅๅฏน่ฑกๆไผๆพ็คบๅจ็ปๅพๅบใๅฆไธๅพๆ็คบ๏ผๅฝ a ๅคงไบ 2 ๆถ๏ผๅ้่๏ผๅฝ a ๅฐไบ 2 ๆถ๏ผๅๆพ็คบใ----- ๅฆๆ b ๆฏๅธๆไปฃๆฐ๏ผๅฏไปฅ่ฟ่ก้ป่พ่ฟ็ฎ๏ผๅฝ b ็ๅผไธบ true ๆถ๏ผๅฏน่ฑกๆพ็คบ๏ผๅฝ b ็ๅผไธบ false ๆถ๏ผๅฏน่ฑก้่ใ-- ๅฆๆ $\mathrm{g}$ ๅ $\mathrm{h}$ ๆฏไธคๆก็ด็บฟ๏ผๅฏไปฅไฝฟ็จ $\mathrm{g} \parallel \mathrm{h}$ ไฝไธบๆกไปถ๏ผๅฝไธค็ด็บฟๅนณ่กๆถๅฏน่ฑกๆไผๆพ็คบใ--# 3. ่ชๅฎไนๅทฅๅ ท--ๅจ GeoGebra ๅฏไปฅๆ นๆฎ็จๆท็้่ฆ่ชๅทฑๅปบ็ซ็ปๅพๅทฅๅ ทใ--# 3.1. ๅปบ็ซ่ชๅฎไนๅทฅๅ ท--้ฆๅ ๅปบ็ซๅทฅๅ ท็ปๅถๅ็ๅพๅ๏ผ็ถๅ็นๅปโๅทฅๅ ทโ่ๅไธญ็โๆฐๅทฅๅ ทโ๏ผๅจๅฏน่ฏๆก็ๅกซๅ่พๅ ฅๅฏน่ฑกใ่พๅบๅฏน่ฑกใๅ็งฐไธๅพๆ ็ฏไฟกๆฏ๏ผๅปบ็ซ่ชๅฎไนๅทฅๅ ทใ----ไพๅฆ๏ผๅปบ็ซไธไธชๅฏไปฅ็ๆๅไฝๅ็ๅทฅๅ ทใๅธๆ้่ฟๅจ็ปๅพๅบ็น้ไธไธช็นๆ็นๅป็ปๅพๅบ็ฉบ็ฝๅคๅฐฑๅฏไปฅ็ปๅบไธไธชๅไฝๅใ--- ้ฆๅ ็ปๅบไธไธชๅไฝๅใๅปบ็ซไธไธช่ช็ฑ็นA๏ผ็ถๅ้ๆฉ็ปๅพๅทฅๅ ทโๅ๏ผๆๅฎๅๅฟไธๅๅพ๏ผโ็ปๅบไธไธชๅๅพไธบ1็ๅ๏ผc๏ผใ--- ็นๅปโๅทฅๅ ทโ่ๅไธญ็โๆฐๅทฅๅ ทโใ-- ้ๆฉ่พๅบๅฏน่ฑก๏ผ็นๅปไธๆฅ่ๅ๏ผ้ๆฉโๅcโใ-- ้ๆฉ่พๅ ฅๅฏน่ฑก๏ผGeoGebraไผ่ชๅจๅกซๅ ่พๅ ฅๅฏน่ฑก๏ผๆญคๅคไธบ็นA๏ผใๅฆๆ่ฆ้ๆฉๅ ถไป๏ผไนๅฏไปฅๅจไธๆ่ๅไธญ้ๆฉใ-- ่พๅ ฅๅ็งฐ๏ผ่พๅ ฅๅทฅๅ ทๆๅฝไปค็ๅ็งฐโ็ปๅไฝๅโใ-- ๅทฅๅ ท่ฏดๆ๏ผๅฆๆๅฟ ่ฆ๏ผๅฏไปฅๅกซๅๅทฅๅ ท่ฏดๆ๏ผ่งฃ้ๅฆไฝไฝฟ็จ่ฟไธช่ชๅฎไนๅทฅๅ ทใ-- ๅจๅทฅๅ ทๆ ไธญๆพ็คบ๏ผๅพ้่ฟไธช้้กน๏ผๅฏไปฅ่ฎฉ่ชๅฎไนๅทฅๅ ทๅจๅทฅๅ ทๆ ไธญๅบ็ฐใ-- ๅพๆ ๏ผๅฏไปฅ้ๆฉ็ต่ไธญ็ๅพ็ไฝไธบ่ฏฅๅทฅๅ ท็ๅพๆ ๏ผๅพ็ไผ่ช้ๅบๅคงๅฐ๏ผๅๆไธไธชๆ้ฎๅคงๅฐๅๅ ถไป็ปๅพๅทฅๅ ทๅพๆ ็ฑปไผผใ----ๅจๅทฅๅ ทๆ ไธญ้ไธญโ็ปๅไฝๅโๅทฅๅ ท๏ผ็นๅป็ปๅพๅบ็ฉบ็ฝๅคๆ่ ็น้ๅทฒๆ็น๏ผๅฐฑๅฏไปฅ็ปๅบไธไธชๅไฝๅไบใ--# 3.2. ไฟๅญ่ชๅฎไนๅทฅๅ ท--่ชๅฎไนๅทฅๅ ทๅฏไปฅๅญๆๅ็ฌ็ๆไปถ๏ผๅไบซไพๅ ถไป็ GeoGebra ็จๆทไฝฟ็จใ--็นๅปโๅทฅๅ ทโ่ๅไธญ็โๅทฅๅ ท็ฎก็โ๏ผๅจ่ๅไธญ้ๆฉ่ฆไฟๅญ็ๅทฅๅ ท๏ผ็นๅปโๅฆๅญไธบโๆฅๅญๅจๅทฅๅ ทใๅทฅๅ ทๅฐไฟๅญไธบ.ggtๆ ผๅผ๏ผ่ไธ่ฌ็GeoGebraๆไปถไธบ.ggbใ----# 3.3. ไฝฟ็จ่ชๅฎไนๅทฅๅ ท--็นๅปโๆไปถโ่ๅไธญ็โๆฐๅปบโ๏ผๅฐๆๅผไธไธชๆฐ็GeoGebraๆไปถ๏ผ่่ชๅฎไนๅทฅๅ ท่ฟไผๅบ็ฐๅจๅทฅๅ ทๆ ไธญใไฝๆฏ๏ผๅฆๆๅ ณ้ญไบGeoGebra่ฝฏไปถ๏ผ่ชๅฎไนๅทฅๅ ทๅฏ่ฝๅฐไธๅๅบ็ฐๅจๅทฅๅ ทๆ ไธญใๆๅ ็งๆนๆณๅฏไปฅ้ๆฐ่ฐ็จ่ชๅฎไนๅทฅๅ ท๏ผ--- ๅจๅปบ็ซ่ชๅฎไนๅทฅๅ ทๅ๏ผ็นๅปโ้้กนโ่ๅไธญ็โไฟๅญ่ฎพๅฎโ๏ผ้ฃไน่ชๅฎไนๅทฅๅ ทๅฐไผไธ--็ดๅบ็ฐๅจๅทฅๅ ทๆ ไธญใ--- ๅฆๆๅทฒ็ปๅฐ่ชๅฎไนๅทฅๅ ทๅฆๅญไธบไบ ggt ๆ ผๅผ๏ผๅฏไปฅ็นๅปโๆไปถโ่ๅไธญ็โๆๅผโ้ๆฉ่ฆ็จ็่ชๅฎไนๅทฅๅ ท๏ผๆๅผๅ่ชๅฎไนๅทฅๅ ทๅฐไผๅบ็ฐๅจๅทฅๅ ทๆ ไธญใๆๅผๅทฅๅ ทๆไปถไธไผๅฝฑๅๅทฒๆ็็ปๅพๅบ๏ผๅชไผๅจๅทฅๅ ทๆ ไธญๆฐๅขไธไธชๅทฅๅ ทใ--# 4. ๅจๆ้ข่ฒ--ไฝฟ็จ้ผ ๆ ๅณ้ฎ็นๅปๅฏน่ฑก๏ผๆๅผโๅฑๆงโๅฏน่ฏๆก๏ผๅฏไปฅ่ฎพ็ฝฎๅฏน่ฑก็้ข่ฒใๅจโ้ซ็บงโ้้กนๅกไธญๅฏไปฅๅฏนๅฏน่ฑก่ฎพๅฎๅจๆ้ข่ฒใ----ๅฏไปฅๅจ่พๅ ฅๆกไธญ่พๅ ฅ0ๅฐ1ไน้ด็ๆฐๅผๆๅฝๆฐ๏ผๅฏน่ฑก้ข่ฒๅฐไผ็ฑRGB๏ผ็บข็ปฟ่๏ผไธ่ ็้ ่ฒๅณๅฎใไพๅฆ๏ผ--- ๅปบ็ซไธไธชๆปๆ a, b, c, ๅนถ่ฎพ็ฝฎๅฎไปฌ็ๅๅ่ๅดไธบ 0 ๅฐ 1ใ-- ไฝฟ็จโๅค่พนๅฝขโๅทฅๅ ท็ปๅบไธไธชๅค่พนๅฝขใ-- ๅจโๅฑๆงโๅฏน่ฏๆกไธญ้ๆฉโ้ซ็บงโ้้กนๅก๏ผๅจไธไธช้ข่ฒๅๅๅซ่พๅ ฅa๏ผb๏ผcใ-- ๅ ณ้ญๅฏน่ฏๆก๏ผๆปๅจๆปๆ๏ผๅฏไปฅๅ็ฐๅค่พนๅฝข็้ข่ฒไน้็ๅๅใ----่ฏดๆ๏ผ่ฟ้ไฝฟ็จ็ๅฎ้ ๆฏ RGB ้ ่ฒๅ็ใRGB ่ฒๅฝฉๆจกๅผๆฏไธ็ง้ข่ฒๆ ๅ๏ผๆฏ้่ฟๅฏน็บข(R)ใ็ปฟ(G)ใ่(B)ไธไธช้ข่ฒ้้็ๅๅไปฅๅๅฎไปฌ็ธไบไน้ด็ๅ ๅ ๆฅๅพๅฐๅๅผๅๆ ท็้ข่ฒ็๏ผ่ฟไธชๆ ๅๅ ไนๅ ๆฌไบไบบ็ฑป่งๅๆ่ฝๆ็ฅ็ๆๆ้ข่ฒ๏ผๆฏ็ฎๅ่ฟ็จๆๅนฟ็้ข่ฒ็ณป็ปไนไธใ--# 5. JavaScript--JavaScript ๆฏไธ็งๅนฟๆณ็จไบๅฎขๆท็ซฏ Web ๅผๅ็่ๆฌ่ฏญ่จ๏ผๅธธ็จๆฅ็ป HTML ็ฝ้กตๆทปๅ ๅจๆๅ่ฝใGeoGebra ๆไพ็ JavaScript ็้ขๅฏนไบไผไฝฟ็จ HTML ๆบไปฃ็ ็ผ่พ็ฝ้กต็ไฝฟ็จ่ ๆฅ่ฏดๆฏไธไธช้ๅธธไพฟๅฉๆ่ถฃ็ๅ่ฝใ--ๅจ GeoGebra ๅฏผๅบ็ๅจๆ็ฝ้กตไธญ๏ผGeoGebra ๆไพไบไธไธช JavaScript ็้ข๏ผๅฏไปฅๆนไพฟ็ๅจ็ฝ้กตไธญๆทปๅ ๆ้ฎ็ญ็ญ๏ผๆฅๅฎ็ฐๅจๆๆๆใ--# 6. ๅฏน่ฑกๅ็งฐไธๆ ็ญพ--# 6.1. ๆพ็คบ้่ๅฏน่ฑกๅ็งฐ--ๅจ็ปๅพๅบไธญๆๅ ไธชๆนๆณๅฏไปฅๆพ็คบๆ้่ๅฏน่ฑก็ๅ็งฐ๏ผ--- ็นๅปๅทฅๅ ทๆ ไธญ็โๆพ็คบๆ้่ๅฏน่ฑกโๅทฅๅ ท๏ผ็ถๅ็นๅป่ฆๆพ็คบๆ้่ๅ็งฐ็ๅฏน่ฑกใ-- ไฝฟ็จ้ผ ๆ ๅณ้ฎ็นๅปๅฏน่ฑก๏ผๅพ้ๆๅๆถโๆพ็คบๅฏน่ฑกโใ--- ไฝฟ็จ้ผ ๆ ๅณ้ฎ็นๅปๅฏน่ฑก๏ผๆๅผโๅฑๆงโๅฏน่ฏๆก๏ผๅจโๅบๆฌโ้้กนๅกไธญๅพ้ๆๅๆถโๆพ็คบๅฏน่ฑกโใ--# 6.2. ๅ็งฐๅๆฐๅผ--ๅจGeoGebraไธญๆฏไธชๅฏน่ฑก้ฝๆๅฏไธ็ๅ็งฐๆฅๆ ็คบ๏ผๅฏไปฅ้ๆฉๆพ็คบๅฏน่ฑก็ๅ็งฐๆๆฐๅผใไฝฟ็จ้ผ ๆ ๅณ้ฎ็นๅปๅฏน่ฑก๏ผๆๅผโๅฑๆงโๅฏน่ฏๆก๏ผๅจโๅบๆฌโ้้กนๅกไธญ๏ผๅฏไปฅๅพ้ๆพ็คบโๅ็งฐโโๅ็งฐๅๅผโโๆฐๅผโๅโๆ ็ญพๆๅญโๅ็งๆจกๅผใ----ๅจGeoGebraไธญ๏ผไธไธช็น็ๆฐๅผๅณไธบๅ ถๅๆ ๏ผไธไธชๅฝๆฐ็ๆฐๅผไธบๅ ถๆน็จๅผใ--# 6.3. ๆ ็ญพๆๅญ--GeoGebra ๅฏนๆไปฅ็ๅฏน่ฑกๆไพๆ ็ญพๆ ็คบ๏ผๅฏไปฅ้ๅ ๅจๅฏน่ฑกไธใไฝฟ็จ้ผ ๆ ๅณ้ฎ็นๅปๅฏน่ฑก๏ผๆๅผโๅฑๆงโๅฏน่ฏๆก๏ผๅจโๅบๆฌโ้้กนๅกไธญ๏ผ่พๅ ฅๆ ็ญพๆๅญๅนถ้ๆฉๆพ็คบโๆ ็ญพๆๅญโๅณๅฏใ--# 7. ๅพๅฑ--ๅจ็ปๅพๅบไธญๅฏ่ฝไผๅบ็ฐๅคไธชๅฏน่ฑก็ธ่ฆ็็ๆ ๅต๏ผๅพๅฑ็้ๅฎๅฏไปฅๅณๅฎๅชไบๅฏน่ฑกๅฏไปฅ่ขซๆไฝใ--้ป่ฎคๆ ๅตไธ๏ผๆไปฅ็ปๅพๅบไธญ็ปๅถ็ๅฏน่ฑกๅจๅพๅฑ0๏ผไนๅฐฑๆฏ็ปๅพๅบ็่ๆฏๅฑใGeoGebraไธๅ ฑๆไพไบ10ไธชๅพๅฑ๏ผไป0ๅฐ9๏ผๆฐๅญ่ถๅคง่ถๅจไธๅฑใไฝฟ็จ้ผ ๆ ๅณ้ฎ็นๅปๅฏน่ฑก๏ผๆๅผโๅฑๆงโๅฏน่ฏๆก๏ผๅจโ้ซ็บงโ้้กนๅกไธญ๏ผๅฏไปฅๆน้ๅฏน่ฑกๆๅค็ๅพๅฑใ--ๅจ GeoGebra ๅฏไปฅๆนไพฟ็้ๅๅไธๅฑ็ๆๆๅฏน่ฑก๏ผ็น้ๆไธๅพๅฑ็ไธไธชๅฏน่ฑก๏ผ็ถๅๅจโ็ผ่พโ่ๅไธญ้ๆฉโ้ๆฉๅฝๅๅฑโ๏ผๅฐฑๅฏไปฅ้ๆฉ่ฏฅๅพๅฑ็ๆไปฅๅฏน่ฑกไบใ--# 8. ้ๆฐๅฎไน--ๅจ็ปๅพๅบไธญไฟฎๆนๅฏน่ฑกๆถ๏ผไฝฟ็จ้ผ ๆ ๅทฆ้ฎๅๅปๅฏน่ฑก๏ผๅฏไปฅๅผนๅบโ้ๆฐๅฎไนโๅฏน่ฏๆก๏ผ็ฑๆญคๅฏไปฅๆนไพฟ็ไฟฎๆนๅฏน่ฑกใ----ไพๅญๅฆไธ๏ผ--- ๅฆๆ่ฆ่ฎฉไธๆก้่ฟ็น A ๅ B ็็ด็บฟๅๆ็บฟๆฎต AB๏ผๅฏไปฅๆๅผๅฏน่ฑก็โ้ๆฐๅฎไนโๅฏน่ฏๆก๏ผ็ถๅไฟฎๆน่กจ่พพๅผไธบ Segment[A,B]ๅณๅฏใ--ๅบๅฎๅฏน่ฑกๆฏๆ ๆณ้ๆฐๅฎไน็๏ผๅฆๆ่ฆ้ๆฐๅฎไนๅบๅฎๅฏน่ฑก๏ผๅฏไปฅๅจโๅฑๆงโๅฏน่ฏๆกไธญ็โๅบๆฌโ้้กนๅกไธๅๆถโๅบๅฎๅฏน่ฑกโ็ๅพ้ใ--# 9. ็่ฟนไธ่ฝจ่ฟน--ๅจGeoGebraไธญ๏ผๅฏไปฅ่ฎฉๅฏน่ฑก็งปๅจๆถๅจ็ปๅพๅบไธญ็ไธ่ฝจ่ฟนใๅจๅฏน่ฑกไธ็นๅปๅณ้ฎ๏ผๅจๅณ้ฎ่ๅไธญ็นๅปโๆพ็คบ็งปๅจ็่ฟนโใๆญคๅไฟฎๆนๅฏน่ฑกๆถ๏ผGeoGebraไผ่ฟฝ่ธชๅฏน่ฑก็ไฝ็ฝฎๅๅๅนถ็ไธ็่ฟนใ--ๆญคๅค๏ผ่ฟๅฏไปฅ่ฎฉ GeoGebra ่ช่กๅปบ็ซ็น็่ฟๅฐ่ฝจ่ฟนใไฝฟ็จๅทฅๅ ทๆ ไธญ็โ่ฝจ่ฟนโๅทฅๅ ท๏ผๆๅจๅฝไปคๆกไธญ่พๅ ฅโLocusโๅฝไปคใ่ฟๅจ่ฝจ่ฟนๅฟ ้กปไพ่ตๅฆๅคไธ็น็็งปๅจใ--ไพๅญๅฆไธ๏ผ--- ๅปบ็ซ็น $\mathrm{A} = (-1, - 1)$ ๅ็น $\mathbf{B} = (1, - 1)$ ๏ผๅนถๅปบ็ซ็บฟๆฎตABใ-- ๅจ็บฟๆฎตไธๅไธ็น C๏ผ็น C ๅช่ฝๆฒฟ็บฟๆฎต็งปๅจใ-- ๅปบ็ซไธ็น $\mathbf{P}$ , ไธ $\mathbf{C}$ ็ธๅ ณ, $\mathrm{P} = (\mathrm{x}(\mathrm{C}), \mathrm{x}(\mathrm{C})^{\wedge}2)$ .-- ไฝฟ็จๅทฅๅ ทๆๅฝไปคๆฅๅปบ็ซ็น P ็่ฝจ่ฟนใ--diff --git a/docs/ref/wiki/geogrebra-llms.md b/docs/ref/wiki/geogrebra-llms.mddeleted file mode 100644index a9e0f0591..000000000--- a/docs/ref/wiki/geogrebra-llms.md+++ /dev/null@@ -1,7 +0,0 @@-## This page describes the GeoGebra Apps API to interact with GeoGebra apps. Please see GeoGebra Apps Embedding on how to embed our apps into your web pages.--- https://geogebra.github.io/docs/reference/en/GeoGebra_Apps_API/--## This page lists all parameters that can be used to configure GeoGebra Apps. Please see GeoGebra Apps Embedding to learn how to embed GeoGebra apps into your pages and where these parameters can be used.--- https://geogebra.github.io/docs/reference/en/GeoGebra_App_Parameters/diff --git a/docs/ref/wiki/langchain-llms.txt b/docs/ref/wiki/langchain-llms.txtdeleted file mode 100644index 9100a70d6..000000000--- a/docs/ref/wiki/langchain-llms.txt+++ /dev/null@@ -1,149 +0,0 @@--# Guides--- [LangGraph Documentation](https://langchain-ai.github.io/langgraph/index/): This page provides an overview of the LangGraph project, including its logo and essential scripts for functionality within MkDocs. It also includes a reference to the README.md file for detailed information about the project. The content is designed to be user-friendly and visually appealing.-- [LangGraph Quickstart Guide](https://langchain-ai.github.io/langgraph/agents/agents/): This quickstart guide provides step-by-step instructions for setting up and using LangGraph's prebuilt components to create agentic systems. It covers prerequisites, installation, agent creation, configuration of language models, and advanced features like memory and structured output. Ideal for developers looking to leverage LangGraph for building intelligent agents.-- [Getting Started with LangGraph: Building AI Agents](https://langchain-ai.github.io/langgraph/concepts/why-langgraph/): This page provides an overview of LangGraph, a platform designed for developers to create adaptable AI agents. It highlights key features such as reliability, extensibility, and streaming support, and offers a series of tutorials to help users build a support chatbot with various capabilities. By following the tutorials, developers will learn to implement essential functionalities like conversation state management and human-in-the-loop controls.-- [Building a Basic Chatbot with LangGraph](https://langchain-ai.github.io/langgraph/tutorials/get-started/1-build-basic-chatbot/): This tutorial guides you through the process of creating a basic chatbot using LangGraph. It covers prerequisites, installation of necessary packages, and step-by-step instructions to set up a state machine for the chatbot. By the end of the tutorial, you will have a functional chatbot that can engage in simple conversations.-- [Integrating Web Search Tools into Your Chatbot](https://langchain-ai.github.io/langgraph/tutorials/get-started/2-add-tools/): This tutorial guides you through the process of enhancing your chatbot's capabilities by integrating a web search tool, specifically the Tavily Search Engine. It covers prerequisites, installation, configuration, and the implementation of the search tool within a LangGraph-based chatbot. By the end, you'll have a functional chatbot that can retrieve real-time information to answer user queries beyond its training data.-- [Implementing Memory in Chatbots with LangGraph](https://langchain-ai.github.io/langgraph/tutorials/get-started/3-add-memory/): This page provides a comprehensive guide on how to add memory functionality to chatbots using LangGraph's persistent checkpointing feature. It details the steps to create a `MemorySaver` checkpointer, compile the graph, and interact with the chatbot to maintain context across multiple interactions. Additionally, it explains how to inspect the state of the chatbot and highlights the advantages of checkpointing over simple memory solutions.-- [Implementing Human-in-the-Loop Controls in LangGraph](https://langchain-ai.github.io/langgraph/tutorials/get-started/4-human-in-the-loop/): This page provides a comprehensive guide on adding human-in-the-loop controls to LangGraph workflows, enabling agents to pause execution for human input. It details the use of the `interrupt` function to facilitate user feedback and outlines the steps to integrate a `human_assistance` tool into a chatbot. Additionally, the tutorial covers graph compilation, visualization, and resuming execution with human input.-- [Customizing State in LangGraph for Enhanced Chatbot Functionality](https://langchain-ai.github.io/langgraph/tutorials/get-started/5-customize-state/): This tutorial guides you through the process of adding custom fields to the state in LangGraph, enabling complex behaviors in your chatbot without relying solely on message lists. You will learn how to implement human-in-the-loop controls to verify information before it is stored in the state. By the end of this tutorial, you will have a deeper understanding of state management and how to enhance your chatbot's capabilities.-- [Implementing Time Travel in LangGraph Chatbots](https://langchain-ai.github.io/langgraph/tutorials/get-started/6-time-travel/): This page provides a comprehensive guide on utilizing the time travel functionality in LangGraph to enhance chatbot interactions. It covers how to rewind, add steps, and replay the state history of a chatbot, allowing users to explore different outcomes and fix mistakes. Additionally, it includes code snippets and practical examples to help developers implement these features effectively.-- [LangGraph Deployment Options](https://langchain-ai.github.io/langgraph/tutorials/deployment/): This page outlines the various options available for deploying LangGraph applications, including local testing and different cloud-based solutions. It details free deployment methods such as Local, as well as production options like Cloud SaaS and self-hosted solutions. Each deployment method is linked to further documentation for in-depth guidance.-- [Agent Development with LangGraph](https://langchain-ai.github.io/langgraph/agents/overview/): This page provides an overview of agent development using LangGraph, highlighting its prebuilt components and capabilities for building agent-based applications. It explains the structure of an agent, key features such as memory integration and human-in-the-loop control, and outlines the package ecosystem available for developers. With LangGraph, users can focus on application logic while leveraging robust infrastructure for state management and feedback.-- [Guide to Running Agents in LangGraph](https://langchain-ai.github.io/langgraph/agents/run_agents/): This page provides a comprehensive overview of how to execute agents in LangGraph, detailing both synchronous and asynchronous methods. It covers input and output formats, streaming capabilities, and how to manage execution limits to prevent infinite loops. Additionally, it includes code examples and links to further resources for deeper understanding.-- [Streaming Data in LangGraph](https://langchain-ai.github.io/langgraph/agents/streaming/): This page provides an overview of streaming data types in LangGraph, including agent progress, LLM tokens, and custom updates. It includes code examples for both synchronous and asynchronous streaming methods. Additionally, it covers how to stream multiple modes and disable streaming when necessary.-- [Configuring Chat Models for Agents](https://langchain-ai.github.io/langgraph/agents/models/): This page provides detailed instructions on how to configure various chat models for use with agents in LangChain. It covers model initialization, tool calling support, and how to specify models from different providers such as OpenAI, Anthropic, Azure, Google Gemini, and AWS Bedrock. Additionally, it includes information on disabling streaming, adding model fallbacks, and links to further resources.-- [Using Tools in LangChain](https://langchain-ai.github.io/langgraph/agents/tools/): This page provides an overview of how to define, customize, and manage tools within the LangChain framework. It covers creating simple tools, handling tool errors, and utilizing prebuilt integrations for enhanced functionality. Additionally, it discusses advanced features such as memory management and controlling tool behavior during agent execution.-- [Integrating MCP with LangGraph Agents](https://langchain-ai.github.io/langgraph/agents/mcp/): This page provides a comprehensive guide on how to integrate the Model Context Protocol (MCP) with LangGraph agents using the `langchain-mcp-adapters` library. It includes installation instructions, example code for using MCP tools, and guidance on creating custom MCP servers. Additional resources for further reading on MCP are also provided.-- [Understanding Context in LangGraph Agents](https://langchain-ai.github.io/langgraph/agents/context/): This page provides an overview of how to supply context to agents in LangGraph, detailing the three primary types: Config, State, and Long-Term Memory. It explains how to use these context types to enhance agent behavior, customize prompts, and access context in tools. Additionally, it includes code examples for implementing context in various scenarios.-- [Understanding Memory in LangGraph for Conversational Agents](https://langchain-ai.github.io/langgraph/agents/memory/): This documentation page provides an overview of the two types of memory supported by LangGraph: short-term and long-term memory. It explains how to implement these memory types in conversational agents, including code examples and best practices for managing message history. Additionally, it covers the use of persistent storage and tools for enhancing memory functionality.-- [Implementing Human-in-the-Loop in LangGraph](https://langchain-ai.github.io/langgraph/agents/human-in-the-loop/): This documentation page provides a comprehensive guide on how to implement Human-in-the-Loop (HIL) features in LangGraph, allowing for human review and approval of tool calls in agents. It covers the use of the `interrupt()` function to pause execution for human input, along with practical examples and code snippets. Additionally, it explains how to create a wrapper to add HIL capabilities to any tool seamlessly.-- [Building Multi-Agent Systems](https://langchain-ai.github.io/langgraph/agents/multi-agent/): This page provides an overview of multi-agent systems, detailing how to create and manage them using supervisor and swarm architectures. It includes practical examples of implementing a flight and hotel booking assistant using the LangGraph libraries. Additionally, the page explains the concept of handoffs between agents, allowing for seamless communication and task delegation.-- [Evaluating Agent Performance with LangSmith](https://langchain-ai.github.io/langgraph/agents/evals/): This page provides a comprehensive guide on how to evaluate the performance of agents using the LangSmith evaluations framework. It includes instructions on defining evaluator functions, utilizing prebuilt evaluators from the AgentEvals package, and running evaluations with specific datasets. Additionally, it covers different evaluation techniques, including trajectory matching and using LLMs as judges.-- [Deploying Your LangGraph Agent](https://langchain-ai.github.io/langgraph/agents/deployment/): This page provides a comprehensive guide on how to deploy a LangGraph agent, including setting up a LangGraph app for both local development and production. It covers essential features, installation steps, and configuration requirements, along with instructions for launching the local server and utilizing the LangGraph Studio Web UI for debugging. Additionally, it offers links to further resources for deployment options.-- [Agent Chat UI Documentation](https://langchain-ai.github.io/langgraph/agents/ui/): This page provides comprehensive guidance on using the Agent Chat UI for interacting with LangGraph agents. It covers setup instructions, features like human-in-the-loop workflows, and the integration of generative UI components. Users can find links to relevant resources and tips for customizing their chat experience.-- [Overview of Agent Architectures in LLM Applications](https://langchain-ai.github.io/langgraph/concepts/agentic_concepts/): This page provides a comprehensive overview of various agent architectures used in large language model (LLM) applications, highlighting their control flows and functionalities. It discusses key concepts such as routers, tool-calling agents, memory management, and planning, along with customization options for specific tasks. Additionally, it covers advanced features like human-in-the-loop, parallelization, subgraphs, and reflection mechanisms to enhance agent performance.-- [Understanding Workflows and Agents in LangGraph](https://langchain-ai.github.io/langgraph/tutorials/workflows/): This documentation page provides an in-depth overview of workflows and agents within LangGraph, highlighting their differences and use cases. It covers various patterns for building agentic systems, including setup instructions, building blocks, and advanced concepts like prompt chaining, parallelization, and routing. Additionally, it offers practical examples and code snippets to help users implement these workflows effectively.-- [Understanding LangGraph: Core Concepts and Components](https://langchain-ai.github.io/langgraph/concepts/low_level/): This documentation page provides an in-depth overview of the core concepts of LangGraph, focusing on how agent workflows are modeled as graphs. It covers essential components such as States, Nodes, and Edges, and explains how they interact to create complex workflows. Additionally, it discusses graph compilation, message handling, and configuration options to enhance the functionality of your graphs.-- [LangGraph Runtime Overview](https://langchain-ai.github.io/langgraph/concepts/pregel/): This page provides a comprehensive overview of the LangGraph runtime, specifically focusing on the Pregel execution model. It details the structure and functionality of actors and channels within the Pregel framework, along with examples of how to implement applications. Additionally, it introduces high-level APIs for creating Pregel applications using StateGraph and Functional API.-- [Using the LangGraph API: A Comprehensive Guide](https://langchain-ai.github.io/langgraph/how-tos/graph-api/): This documentation provides a detailed overview of how to utilize the LangGraph Graph API, covering essential concepts such as state management, node creation, and control flow. It includes practical examples for building sequences, branches, and loops, as well as advanced features like retry policies and async execution. Additionally, the guide offers insights into visualizing graphs and integrating with external tools.-- [LangGraph Streaming System](https://langchain-ai.github.io/langgraph/concepts/streaming/): This page provides an overview of the streaming capabilities of LangGraph, enabling real-time updates for enhanced user experiences. It details the types of data that can be streamed, including workflow progress, LLM tokens, and custom updates. Additionally, it outlines various functionalities and modes available for streaming within the LangGraph framework.-- [Streaming Outputs in LangGraph](https://langchain-ai.github.io/langgraph/how-tos/streaming/): This documentation page provides an overview of how to utilize the streaming capabilities of LangGraph, including synchronous and asynchronous streaming methods. It covers various stream modes, such as updates, values, and custom data, along with examples of how to implement them in your graphs. Additionally, it discusses the integration of Large Language Models (LLMs) and how to handle streaming outputs effectively.-- [LangGraph Persistence and Checkpointing](https://langchain-ai.github.io/langgraph/concepts/persistence/): This page provides an in-depth overview of the persistence layer in LangGraph, focusing on the use of checkpointers to save graph states at each super-step. It covers key concepts such as threads, checkpoints, state retrieval, and memory management, along with practical examples and code snippets. Additionally, it discusses advanced features like time travel, fault tolerance, and the integration of memory stores for cross-thread information retention.-- [Understanding Durable Execution in LangGraph](https://langchain-ai.github.io/langgraph/concepts/durable_execution/): This page provides an overview of durable execution, a technique that allows workflows to save their progress and resume from key points. It details the requirements for implementing durable execution in LangGraph, including the use of persistence and tasks to ensure deterministic and consistent replay. Additionally, it covers how to handle pausing, resuming, and recovering workflows effectively.-- [Implementing Memory in LangGraph for AI Applications](https://langchain-ai.github.io/langgraph/how-tos/persistence/): This documentation page provides a comprehensive guide on adding persistence to AI applications using LangGraph. It covers both short-term and long-term memory implementations, including code examples for managing conversation context and user-specific data. Additionally, it discusses the use of various storage backends and semantic search capabilities for enhanced memory management.-- [Understanding Memory in AI Agents](https://langchain-ai.github.io/langgraph/concepts/memory/): This documentation page provides an in-depth overview of memory types in AI agents, focusing on short-term and long-term memory. It explains how these memory types can be implemented and managed within applications using LangGraph, including techniques for handling conversation history and storing memories. Additionally, it discusses the importance of memory in enhancing user interactions and the various strategies for writing and updating memories.-- [Memory Management in LangGraph for AI Applications](https://langchain-ai.github.io/langgraph/how-tos/memory/): This page provides an overview of memory management in LangGraph, focusing on short-term and long-term memory functionalities essential for conversational agents. It includes detailed instructions on how to implement memory strategies such as trimming, summarizing, and deleting messages to optimize conversation tracking without exceeding context limits. Code examples are provided to illustrate the implementation of these memory management techniques.-- [Human-in-the-Loop Workflows in LangGraph](https://langchain-ai.github.io/langgraph/concepts/human_in_the_loop/): This page provides an overview of the human-in-the-loop (HIL) capabilities within LangGraph, highlighting how human intervention can enhance automated processes. It details key features such as persistent execution state and flexible integration points, along with typical use cases for validating outputs and providing context. Additionally, it outlines the implementation of HIL through specific functions and primitives.-- [Implementing Human-in-the-Loop Workflows with Interrupts](https://langchain-ai.github.io/langgraph/how-tos/human_in_the_loop/add-human-in-the-loop/): This documentation page provides a comprehensive guide on using the `interrupt` function in LangGraph to facilitate human-in-the-loop workflows. It covers the implementation details, design patterns, and best practices for pausing graph execution to gather human input, as well as how to resume execution with that input. Additionally, it highlights common pitfalls and offers extended examples to illustrate various use cases.-- [Understanding Breakpoints in LangGraph](https://langchain-ai.github.io/langgraph/concepts/breakpoints/): This page provides an overview of breakpoints in LangGraph, which allow users to pause graph execution at specific points for inspection. It explains how breakpoints utilize the persistence layer to save the graph state and how execution can be resumed after inspection. An illustrative example is included to demonstrate the concept visually.-- [Using Breakpoints in Graph Execution](https://langchain-ai.github.io/langgraph/how-tos/human_in_the_loop/breakpoints/): This page provides a comprehensive guide on how to implement breakpoints in graph execution for debugging purposes. It covers the requirements for setting breakpoints, the difference between static and dynamic breakpoints, and includes code examples for both compile-time and run-time configurations. Additionally, it explains how to manage breakpoints in subgraphs.-- [Time Travel Functionality in LangGraph](https://langchain-ai.github.io/langgraph/concepts/time-travel/): This page explains the time travel feature in LangGraph, which allows users to analyze and debug decision-making processes in non-deterministic systems. It outlines how to understand reasoning, debug mistakes, and explore alternative solutions by resuming execution from prior checkpoints. The functionality enables users to create new forks in the execution history for deeper insights.-- [Using Time-Travel in LangGraph](https://langchain-ai.github.io/langgraph/how-tos/human_in_the_loop/time-travel/): This page provides a comprehensive guide on how to implement time-travel functionality in LangGraph. It outlines the steps to run a graph, identify checkpoints, modify graph states, and resume execution from specific checkpoints. Additionally, an example workflow is included to illustrate the process of generating and modifying jokes using LangGraph.-- [Integrating Tools with AI Models](https://langchain-ai.github.io/langgraph/concepts/tools/): This page provides an overview of how AI models can interact with external systems using tool calling. It explains the concept of tools, their integration with chat models, and how to create or use prebuilt tools for various applications. Additionally, it highlights the importance of relevance in tool invocation and offers links to further resources and guides.-- [Using Tools in LangChain](https://langchain-ai.github.io/langgraph/how-tos/tool-calling/): This documentation page provides a comprehensive guide on how to create and utilize tools within the LangChain framework. It covers defining simple and customized tools, managing tool arguments, accessing configuration and state, and integrating tools with chat models and agents. Additionally, it discusses error handling and strategies for managing a large number of tools.-- [Understanding Subgraphs in LangGraph](https://langchain-ai.github.io/langgraph/concepts/subgraphs/): This page provides an overview of subgraphs in LangGraph, explaining their role as encapsulated nodes within larger graphs. It discusses the benefits of using subgraphs, such as facilitating multi-agent systems and enabling independent team work. Additionally, it outlines the communication methods between parent graphs and subgraphs, detailing scenarios involving shared and different state schemas.-- [Using Subgraphs in LangGraph](https://langchain-ai.github.io/langgraph/how-tos/subgraph/): This guide provides an overview of how to effectively use subgraphs within LangGraph, including communication methods between parent graphs and subgraphs. It covers shared and different state schemas, setup instructions, and examples for implementing subgraphs in multi-agent systems. Additionally, it discusses persistence, state management, and streaming outputs from subgraphs.-- [Understanding Multi-Agent Systems](https://langchain-ai.github.io/langgraph/concepts/multi_agent/): This page provides an in-depth overview of multi-agent systems, focusing on the architecture and benefits of using multiple independent agents to manage complex applications. It discusses various multi-agent architectures, including network, supervisor, and hierarchical models, as well as communication strategies and state management techniques for effective agent interaction.-- [Building Multi-Agent Systems with LangGraph](https://langchain-ai.github.io/langgraph/how-tos/multi_agent/): This guide provides an overview of how to build multi-agent systems using LangGraph, focusing on the implementation of handoffs for agent communication. It covers the creation of independent agents, the use of handoffs to transfer control and data between agents, and examples of prebuilt multi-agent architectures. Additionally, it includes code snippets and best practices for managing agent interactions and state.-- [Understanding the Functional API in LangGraph](https://langchain-ai.github.io/langgraph/concepts/functional_api/): This documentation page provides an overview of the Functional API in LangGraph, detailing its key features such as persistence, memory, and human-in-the-loop capabilities. It explains how to define workflows using the `@entrypoint` and `@task` decorators, along with examples and best practices for implementing workflows with state management and streaming. Additionally, it compares the Functional API with the Graph API, highlighting their differences and use cases.-- [Functional API Documentation](https://langchain-ai.github.io/langgraph/how-tos/use-functional-api/): This page provides comprehensive guidance on using the Functional API, including creating workflows, handling parallel execution, and integrating with other APIs. It covers various features such as retry policies, caching, and human-in-the-loop workflows, along with practical examples. Additionally, it discusses memory management strategies for both short-term and long-term use cases.-- [Overview of LangGraph Platform](https://langchain-ai.github.io/langgraph/concepts/langgraph_platform/): The LangGraph Platform is designed for developing, deploying, and managing long-running agent workflows with ease. This page outlines the platform's features, including streaming support, background runs, and memory management, which enhance the performance and reliability of agent applications. Additionally, it provides links to resources for getting started and deploying agents effectively.-- [LangGraph Platform Quickstart Guide](https://langchain-ai.github.io/langgraph/tutorials/langgraph-platform/local-server/): This quickstart guide provides step-by-step instructions for running a LangGraph application locally. It covers prerequisites, installation of the LangGraph CLI, app creation, dependency installation, and launching the server. Additionally, it includes testing your application using the LangGraph Studio and API.-- [LangGraph Platform Deployment Quickstart](https://langchain-ai.github.io/langgraph/cloud/quick_start/): This quickstart guide provides step-by-step instructions for deploying an application on the LangGraph Platform using GitHub. It covers prerequisites, repository creation, deployment procedures, and testing your application and API. Follow these steps to successfully set up and run your application in the LangGraph environment.-- [Overview of LangGraph Platform Components](https://langchain-ai.github.io/langgraph/concepts/langgraph_components/): This page provides a comprehensive overview of the various components that make up the LangGraph Platform. It details the functionalities of each component, including the LangGraph Server, CLI, Studio, SDKs, and the control and data planes. Users can learn how these components work together to facilitate the development, deployment, and management of LangGraph applications.-- [LangGraph Server Documentation](https://langchain-ai.github.io/langgraph/concepts/langgraph_server/): This page provides an overview of the LangGraph Server, an API designed for creating and managing agent-based applications. It details the server versions, application structure, deployment components, and the use of assistants, persistence, and task queues. Additionally, it includes links to further resources and guides for effective deployment and usage.-- [LangGraph Application Structure Guide](https://langchain-ai.github.io/langgraph/concepts/application_structure/): This page provides an overview of the structure of a LangGraph application, detailing the essential components such as the configuration file, dependencies, graphs, and environment variables. It includes examples of directory structures for both Python and JavaScript applications, as well as guidance on how to specify the necessary information for deployment. Additionally, it covers key concepts related to the configuration file and the role of dependencies and environment variables in the application.-- [Setting Up a LangGraph Application with requirements.txt](https://langchain-ai.github.io/langgraph/cloud/deployment/setup/): This guide provides step-by-step instructions for configuring a LangGraph application for deployment using a requirements.txt file to manage dependencies. It covers essential topics such as specifying dependencies, defining environment variables, and creating the LangGraph configuration file. Additionally, it includes examples and tips for alternative setup methods.-- [Setting Up a LangGraph Application with pyproject.toml](https://langchain-ai.github.io/langgraph/cloud/deployment/setup_pyproject/): This guide provides step-by-step instructions for configuring a LangGraph application using the `pyproject.toml` file for dependency management. It covers the necessary components, including specifying dependencies, environment variables, and defining graphs, along with examples and best practices. Additionally, it offers tips for alternative setups and links to further resources for deployment.-- [Setting Up a LangGraph.js Application](https://langchain-ai.github.io/langgraph/cloud/deployment/setup_javascript/): This guide provides step-by-step instructions for configuring a LangGraph.js application for deployment on the LangGraph Platform or for self-hosting. It covers essential topics such as specifying dependencies, environment variables, defining graphs, and creating the necessary configuration file. By following this walkthrough, users will learn how to structure their application and prepare it for deployment.-- [Customizing Your Dockerfile in LangGraph](https://langchain-ai.github.io/langgraph/cloud/deployment/custom_docker/): This page provides a guide on how to customize your Dockerfile by adding additional commands through the `langgraph.json` configuration file. It explains how to specify the `dockerfile_lines` key to include necessary dependencies, such as installing system packages and Python libraries. An example is provided to illustrate the process of integrating the Pillow library for image processing.-- [LangGraph CLI Documentation](https://langchain-ai.github.io/langgraph/concepts/langgraph_cli/): This page provides an overview of the LangGraph CLI, a command-line tool for building and running the LangGraph API server locally. It includes installation instructions, a list of core commands, and their descriptions to help users effectively utilize the CLI for development and deployment. For further details, users can refer to the LangGraph CLI Reference.-- [LangGraph Studio Documentation](https://langchain-ai.github.io/langgraph/concepts/langgraph_studio/): This page provides an overview of LangGraph Studio, an IDE for visualizing, interacting with, and debugging agentic systems that utilize the LangGraph Server API. It outlines the prerequisites for using the studio, key features, and the two operational modes: Graph mode and Chat mode. Additionally, it includes links to further resources for getting started with LangGraph Studio.-- [Getting Started with LangGraph Studio](https://langchain-ai.github.io/langgraph/cloud/how-tos/studio/quick_start/): This page provides a comprehensive guide on how to connect and use LangGraph Studio with both deployed applications on the LangGraph Platform and local development servers. It includes instructions for installation, running the server, accessing the Studio UI, and debugging options. Additionally, troubleshooting tips and next steps for further exploration of LangGraph Studio features are also provided.-- [Running Applications: A Comprehensive Guide](https://langchain-ai.github.io/langgraph/cloud/how-tos/invoke_studio/): This page provides a detailed guide on how to submit a run to your application, covering both Graph and Chat modes. It includes instructions on specifying input, managing assistants, enabling streaming, and using breakpoints. Additionally, it offers tips for running applications from specific checkpoints in existing threads.-- [Managing Assistants in LangGraph Studio](https://langchain-ai.github.io/langgraph/cloud/how-tos/studio/manage_assistants/): This page provides guidance on how to manage assistants within LangGraph Studio, including viewing, editing, and updating assistant configurations. It covers both Graph mode and Chat mode, detailing how to activate assistants and make changes to their settings. Users will learn how to navigate the interface to effectively manage their assistant configurations for graph runs.-- [Managing Threads in Studio](https://langchain-ai.github.io/langgraph/cloud/how-tos/threads_studio/): This page provides a comprehensive guide on how to view and edit threads within the Studio application. It covers both Graph and Chat modes, detailing the steps to create new threads, view thread history, and edit thread states. Additionally, it includes links to related concepts for further learning.-- [Modifying Prompts in LangGraph Studio](https://langchain-ai.github.io/langgraph/cloud/how-tos/iterate_graph_studio/): This page provides guidance on how to modify prompts within LangGraph Studio using two methods: direct node editing and the LangSmith Playground interface. It details the configuration options available for nodes, including `langgraph_nodes` and `langgraph_type`, along with examples for both Pydantic models and dataclasses. Additionally, it outlines the steps for editing prompts in the UI and utilizing the LangSmith Playground for testing LLM calls.-- [Debugging LangSmith Traces in LangGraph Studio](https://langchain-ai.github.io/langgraph/cloud/how-tos/clone_traces_studio/): This guide provides step-by-step instructions for opening and debugging LangSmith traces in LangGraph Studio. It covers how to deploy threads and test local agents with remote traces, ensuring a seamless debugging experience. Additionally, it outlines the requirements for local agents and the process for cloning threads for local testing.-- [How to Add Nodes to LangSmith Datasets](https://langchain-ai.github.io/langgraph/cloud/how-tos/datasets_studio/): This guide provides step-by-step instructions on how to add examples from nodes in the thread log to LangSmith datasets. It covers selecting threads, choosing nodes, and editing inputs/outputs before adding them to the dataset. Additionally, it includes links to further resources on evaluating intermediate steps.-- [LangGraph SDK Documentation](https://langchain-ai.github.io/langgraph/concepts/sdk/): This page provides an overview of the LangGraph SDK, including installation instructions for both Python and JavaScript. It details the synchronous and asynchronous client options available for interacting with the LangGraph Server. Additionally, it offers links to further resources and references for the SDK.-- [Integrating Semantic Search in LangGraph](https://langchain-ai.github.io/langgraph/cloud/deployment/semantic_search/): This guide provides step-by-step instructions on how to implement semantic search in your LangGraph deployment. It covers prerequisites, configuration of the store, and usage examples for searching memories and documents by semantic similarity. Additionally, it includes information on using custom embeddings and querying via the LangGraph SDK.-- [Configuring Time-to-Live (TTL) in LangGraph Applications](https://langchain-ai.github.io/langgraph/how-tos/ttl/configure_ttl/): This guide provides detailed instructions on how to configure Time-to-Live (TTL) settings for checkpoints and store items in LangGraph applications. It covers the necessary configurations in the `langgraph.json` file, including strategies for managing data lifecycle and memory. Additionally, it explains how to combine TTL configurations and override them at runtime.-- [LangGraph Authentication & Access Control Overview](https://langchain-ai.github.io/langgraph/concepts/auth/): This page provides a comprehensive guide to the authentication and authorization mechanisms within the LangGraph Platform. It explains the core concepts of authentication versus authorization, outlines default security models, and details the system architecture involved in user identity management. Additionally, it covers implementation examples for authentication and authorization handlers, along with common access patterns and supported resources.-- [Custom Authentication Setup for LangGraph Platform](https://langchain-ai.github.io/langgraph/how-tos/auth/custom_auth/): This guide provides step-by-step instructions on how to implement custom authentication in your LangGraph Platform application. It covers the necessary prerequisites, implementation details, configuration updates, and client connection methods. The guide is applicable to both managed and Enterprise self-hosted deployments.-- [Documenting API Authentication in OpenAPI for LangGraph](https://langchain-ai.github.io/langgraph/how-tos/auth/openapi_security/): This guide provides instructions on how to customize the security schema for your LangGraph Platform API documentation using OpenAPI. It covers default security schemes for both LangGraph Platform and self-hosted deployments, as well as how to implement custom authentication. Additionally, it includes examples for OAuth2 and API key authentication, along with testing procedures.-- [Managing Assistants in LangGraph](https://langchain-ai.github.io/langgraph/concepts/assistants/): This page provides an overview of how to create and manage assistants within the LangGraph Platform, which allows for separate configuration of agents without altering the core graph logic. It covers the prerequisites, configuration options, and versioning of assistants, highlighting their role in optimizing agent performance for different tasks. Additionally, it includes links to relevant API references and how-to guides for further assistance.-- [Managing Assistants in LangGraph](https://langchain-ai.github.io/langgraph/cloud/how-tos/configuration_cloud/): This documentation page provides a comprehensive guide on how to create, configure, and manage assistants using the LangGraph SDK and Platform UI. It includes code examples in Python and JavaScript, as well as instructions for creating new versions and using previous versions of assistants. Additionally, it covers the process of utilizing assistants in various environments.-- [Understanding Threads in LangGraph](https://langchain-ai.github.io/langgraph/cloud/concepts/threads/): This page provides an overview of threads in the LangGraph framework, detailing how they accumulate the state of runs and the importance of checkpoints. It explains the process of creating threads and retrieving their current and historical states. Additionally, it offers links to further resources on threads, checkpoints, and the LangGraph API for managing thread states.-- [Managing Threads in LangGraph](https://langchain-ai.github.io/langgraph/cloud/how-tos/use_threads/): This documentation page provides a comprehensive guide on how to create, view, and inspect threads using the LangGraph SDK. It includes detailed instructions for creating empty threads, copying existing threads, and initializing threads with prepopulated states. Additionally, it covers how to list and inspect threads, including filtering and sorting options.-- [Understanding Runs in LangGraph Platform](https://langchain-ai.github.io/langgraph/cloud/concepts/runs/): This page provides an overview of what constitutes a run in the LangGraph Platform, including its input, configuration, and metadata. It also highlights the ability to execute runs on threads and offers links to the API reference for managing runs.-- [Starting Background Runs for Your Agent](https://langchain-ai.github.io/langgraph/cloud/how-tos/background_run/): This guide provides step-by-step instructions on how to initiate background runs for your agent using Python, JavaScript, and CURL. It covers the setup process, checking current runs, starting new runs, and retrieving the final results. By following this documentation, users can efficiently manage long-running jobs within their applications.-- [Running Multiple Agents on the Same Thread in LangGraph](https://langchain-ai.github.io/langgraph/cloud/how-tos/same-thread/): This documentation page explains how to run multiple agents on the same thread using the LangGraph Platform. It provides step-by-step examples in Python, JavaScript, and CURL to create agents, run them on a thread, and demonstrate how the second agent can utilize the context from the first agent's responses. By following the examples, users can learn to effectively manage multiple agents and their interactions.-- [Scheduling Cron Jobs with LangGraph](https://langchain-ai.github.io/langgraph/cloud/how-tos/cron_jobs/): This page provides a comprehensive guide on how to schedule cron jobs using the LangGraph Platform. It includes setup instructions for different programming languages, examples of creating and deleting cron jobs, and details on managing stateless cron jobs. Users will learn how to automate tasks such as sending weekly emails without writing custom scripts.-- [Guide to Stateless Runs in LangGraph](https://langchain-ai.github.io/langgraph/cloud/how-tos/stateless_runs/): This page provides a comprehensive guide on how to implement stateless runs using the LangGraph Platform. It includes setup instructions for various programming languages, examples of streaming results, and methods for waiting for stateless results. Users will learn how to execute runs without maintaining persistent state, making their applications more efficient.-- [Configurable Headers in LangGraph](https://langchain-ai.github.io/langgraph/cloud/how-tos/configurable_headers/): This page provides guidance on how to configure headers dynamically in the LangGraph platform to modify agent behavior and permissions. It details how to include or exclude specific headers in the runtime configuration using the `langgraph.json` file. Additionally, it explains how to access these headers within your graph and offers an option to opt-out of configurable headers.-- [Streaming in LangGraph Platform](https://langchain-ai.github.io/langgraph/cloud/concepts/streaming/): This page provides an overview of streaming capabilities within the LangGraph Platform, detailing the various streaming modes available for LLM applications. It includes instructions for creating streaming runs, handling stateless runs, and joining active background runs. Additionally, code examples in Python, JavaScript, and cURL are provided to illustrate the implementation of these features.-- [Streaming Outputs with LangGraph SDK](https://langchain-ai.github.io/langgraph/cloud/how-tos/streaming/): This documentation page provides detailed instructions on how to stream outputs from the LangGraph API server using the LangGraph SDK in Python, JavaScript, and cURL. It covers various streaming modes, including updates, values, and custom data, along with examples for each mode. Additionally, it explains how to handle subgraphs, debug information, and LLM tokens during streaming.-- [Human-in-the-Loop Workflows in LangGraph](https://langchain-ai.github.io/langgraph/cloud/how-tos/add-human-in-the-loop/): This page provides an overview of the human-in-the-loop (HIL) capabilities in LangGraph, allowing for human intervention in automated processes. It details the `interrupt` function, which pauses execution for human input, and includes examples in Python, JavaScript, and cURL for implementing HIL workflows. Additionally, it links to further resources for understanding and utilizing HIL features effectively.-- [Using Breakpoints in LangGraph](https://langchain-ai.github.io/langgraph/cloud/how-tos/human_in_the_loop_breakpoint/): This page provides an overview of how to set and use breakpoints in LangGraph to pause graph execution for inspection. It includes examples for setting breakpoints at compile time and run time in Python, JavaScript, and cURL. Additionally, it offers guidance on resuming execution after hitting a breakpoint.-- [Using Time Travel in LangGraph](https://langchain-ai.github.io/langgraph/cloud/how-tos/human_in_the_loop_time_travel/): This page provides a comprehensive guide on how to utilize the time travel functionality in LangGraph, allowing users to resume execution from previous checkpoints. It outlines the steps to run a graph, identify checkpoints, modify graph states, and resume execution. Additionally, the page includes code examples in Python, JavaScript, and cURL for practical implementation.-- [Model Context Protocol (MCP) Endpoint Documentation](https://langchain-ai.github.io/langgraph/concepts/server-mcp/): This page provides comprehensive documentation on the Model Context Protocol (MCP) endpoint available in LangGraph Server. It covers the requirements for using MCP, how to expose agents as MCP tools, and includes examples for connecting with MCP-compliant clients in various programming languages. Additionally, it outlines session behavior, authentication, and instructions for disabling the MCP endpoint.-- [Managing Double Texting in LangGraph](https://langchain-ai.github.io/langgraph/concepts/double_texting/): This page provides an overview of how to handle double texting scenarios in LangGraph, where users may send multiple messages before the first has completed. It outlines four strategies: Reject, Enqueue, Interrupt, and Rollback, each with links to detailed configuration guides. Prerequisites for implementing these strategies include having the LangGraph Server set up.-- [Using the Interrupt Option in Double Texting](https://langchain-ai.github.io/langgraph/cloud/how-tos/interrupt_concurrent/): This guide provides detailed instructions on how to utilize the `interrupt` option for double texting, allowing users to interrupt a prior run of a graph and start a new one. It includes setup instructions, code examples in Python, JavaScript, and CURL, as well as guidance on viewing run results and verifying the status of interrupted runs. Familiarity with double texting is assumed, and a link to a conceptual guide is provided for further understanding.-- [Using the Rollback Option in Double Texting](https://langchain-ai.github.io/langgraph/cloud/how-tos/rollback_concurrent/): This guide provides detailed instructions on how to utilize the `rollback` option in double texting, which allows users to interrupt a previous run and start a new one while permanently deleting the prior run from the database. It includes setup instructions, code examples in Python, JavaScript, and CURL, and demonstrates how to view run results and verify the deletion of the original run. Familiarity with double texting is assumed, and a link to a conceptual guide is provided for further reading.-- [Using the Reject Option in Double Texting](https://langchain-ai.github.io/langgraph/cloud/how-tos/reject_concurrent/): This guide provides an overview of the `reject` option in double texting, which prevents new runs of a graph from starting while an original run is still in progress. It includes setup instructions, code examples in Python, JavaScript, and CURL, and demonstrates how to handle errors when attempting to create concurrent runs. Additionally, it shows how to view the results of the original run after the rejection.-- [Using the Enqueue Option for Double Texting](https://langchain-ai.github.io/langgraph/cloud/how-tos/enqueue_concurrent/): This guide provides an overview of the `enqueue` option for double texting, which allows interruptions to be queued and executed in the order they are received. It includes setup instructions, code examples in Python, JavaScript, and CURL for creating runs, and methods for viewing run results. Familiarity with double texting concepts is assumed, and a helper function for output formatting is also provided.-- [Understanding Webhooks in LangGraph Platform](https://langchain-ai.github.io/langgraph/cloud/concepts/webhooks/): This page provides an overview of webhooks and their role in enabling event-driven communication between LangGraph Platform applications and external services. It explains how to use the `webhook` parameter in various endpoints to trigger requests upon the completion of API calls. For further details, a link to a comprehensive how-to guide is also included.-- [Using Webhooks with LangGraph Platform](https://langchain-ai.github.io/langgraph/cloud/how-tos/webhooks/): This documentation page provides a comprehensive guide on how to implement webhooks in the LangGraph Platform to receive updates after API calls. It includes details on supported endpoints, setup instructions for different programming languages, and examples of how to specify webhook parameters in API requests. Additionally, it covers security measures and testing tools for verifying webhook functionality.-- [Scheduling Tasks with Cron Jobs on LangGraph Platform](https://langchain-ai.github.io/langgraph/cloud/concepts/cron_jobs/): This page provides an overview of how to use cron jobs on the LangGraph Platform to run assistants on a defined schedule. It explains the process of setting up a cron job, including specifying the schedule, assistant, and input. Additionally, it includes links to a how-to guide and API reference for further details.-- [Scheduling Cron Jobs with LangGraph](https://langchain-ai.github.io/langgraph/cloud/how-tos/cron_jobs/): This page provides a comprehensive guide on how to use cron jobs with the LangGraph Platform to automate graph executions on a schedule. It includes setup instructions for various programming languages, examples of creating and deleting cron jobs, and tips for managing stateless cron jobs. Users will learn how to efficiently schedule tasks without manual intervention, ensuring timely execution of automated processes.-- [Adding Custom Lifespan Events in LangGraph](https://langchain-ai.github.io/langgraph/how-tos/http/custom_lifespan/): This page provides a guide on how to implement custom lifespan events in your LangGraph Platform applications, specifically for Python deployments. It covers the initialization and cleanup of resources during server startup and shutdown using FastAPI. Additionally, it includes code examples and configuration steps to help you integrate these events into your application.-- [Adding Custom Middleware to LangGraph Platform](https://langchain-ai.github.io/langgraph/how-tos/http/custom_middleware/): This page provides a step-by-step guide on how to add custom middleware to your server when deploying agents to the LangGraph Platform. It covers the necessary code implementation using FastAPI, configuration settings in `langgraph.json`, and instructions for testing and deploying your application. Additionally, it offers links to related topics such as custom routes and lifespan events for further customization.-- [Adding Custom Routes in LangGraph](https://langchain-ai.github.io/langgraph/how-tos/http/custom_routes/): This page provides a step-by-step guide on how to add custom routes to your LangGraph platform application using a Starlette or FastAPI app. It includes instructions for creating a new app, configuring the `langgraph.json` file, and testing the server locally. Additionally, it explains how custom routes can override default endpoints and offers suggestions for further customization.-- [LangGraph Deployment Options](https://langchain-ai.github.io/langgraph/concepts/deployment_options/): This page outlines the various deployment options available for the LangGraph Platform, including Cloud SaaS, Self-Hosted Data Plane, Self-Hosted Control Plane, and Standalone Container. Each option is described in detail, highlighting key features, management responsibilities, and compatibility. A comparison table is also provided to help users choose the best deployment strategy for their needs.-- [LangGraph Data Plane Overview](https://langchain-ai.github.io/langgraph/concepts/langgraph_data_plane/): This page provides a comprehensive overview of the LangGraph Data Plane, detailing its components including the server infrastructure, listener application, and data management systems like Postgres and Redis. It also covers key features such as autoscaling, static IP addresses, and custom configurations for Postgres and Redis. Additionally, the page outlines telemetry, licensing, and tracing functionalities relevant to different deployment options.-- [LangGraph Control Plane Overview](https://langchain-ai.github.io/langgraph/concepts/langgraph_control_plane/): This page provides a comprehensive overview of the LangGraph Control Plane, detailing its UI and API functionalities for managing LangGraph Servers. It covers deployment types, environment variables, database provisioning, and asynchronous deployment processes. Additionally, it highlights the integration with LangSmith for tracing projects.-- [Cloud SaaS Deployment Guide](https://langchain-ai.github.io/langgraph/concepts/langgraph_cloud/): This page provides a comprehensive guide on deploying the LangGraph Server using the Cloud SaaS model. It outlines the roles of the control plane and data plane, detailing their functionalities and management. Additionally, it includes an architectural diagram to illustrate the deployment structure.-- [Deployment Guide for LangGraph Platform](https://langchain-ai.github.io/langgraph/cloud/deployment/cloud/): This page provides a comprehensive guide on how to deploy applications to the LangGraph Platform using GitHub repositories. It covers prerequisites, steps for creating new deployments and revisions, managing deployment settings, and viewing logs. Additionally, it includes instructions for whitelisting IP addresses and modifying GitHub repository access.-- [Self-Hosted Data Plane Deployment Guide](https://langchain-ai.github.io/langgraph/concepts/langgraph_self_hosted_data_plane/): This page provides an overview of the Self-Hosted Data Plane deployment option, which allows users to manage their data plane infrastructure while offloading control plane management to LangChain. It outlines the requirements, architecture, and supported compute platforms for deployment. Additionally, it includes important information regarding the beta status of this deployment option.-- [Deploying a Self-Hosted Data Plane](https://langchain-ai.github.io/langgraph/cloud/deployment/self_hosted_data_plane/): This page provides a comprehensive guide on deploying a Self-Hosted Data Plane using Kubernetes and Amazon ECS. It outlines the prerequisites, setup steps, and configuration details necessary for a successful deployment. Additionally, it highlights the current beta status of this deployment option.-- [Self-Hosted Control Plane Deployment Guide](https://langchain-ai.github.io/langgraph/concepts/langgraph_self_hosted_control_plane/): This page provides an overview of the Self-Hosted Control Plane deployment option, currently in beta. It outlines the requirements, architecture, and compute platforms supported for deploying the control and data planes in your cloud environment. Additionally, it includes important links and resources for managing your self-hosted infrastructure.-- [Deploying a Self-Hosted Control Plane](https://langchain-ai.github.io/langgraph/cloud/deployment/self_hosted_control_plane/): This page provides a comprehensive guide on deploying a Self-Hosted Control Plane using Kubernetes. It outlines the prerequisites, setup steps, and configuration details necessary for a successful deployment. Additionally, it highlights the beta status of this deployment option and includes links to relevant resources for further assistance.-- [Deploying LangGraph Server with Standalone Container](https://langchain-ai.github.io/langgraph/concepts/langgraph_standalone_container/): This page provides a comprehensive guide on deploying a LangGraph Server using the Standalone Container option. It outlines the architecture, supported compute platforms, and Enterprise server version features. Users will find essential information on managing the data plane infrastructure without a control plane.-- [Deploying a Standalone Container with LangGraph](https://langchain-ai.github.io/langgraph/cloud/deployment/standalone_container/): This documentation provides a comprehensive guide on deploying a standalone container for the LangGraph application. It covers prerequisites, environment variable configurations, and deployment methods using Docker and Docker Compose. Additionally, it includes instructions for deploying on Kubernetes using Helm.-- [Scalability and Resilience of LangGraph Platform](https://langchain-ai.github.io/langgraph/concepts/scalability_and_resilience/): This page provides an overview of the scalability and resilience features of the LangGraph Platform. It details how the platform handles server and queue scalability, as well as the mechanisms in place for ensuring resilience during both graceful and hard shutdowns. Additionally, it covers the resilience strategies employed for Postgres and Redis to maintain service availability.-- [LangGraph Platform Plans Overview](https://langchain-ai.github.io/langgraph/concepts/plans/): This page provides an overview of the different plans available for the LangGraph Platform, including Developer, Plus, and Enterprise options. Each plan offers varying deployment options, usage limits, and features tailored to different user needs. For detailed pricing and related resources, links to additional documentation are also included.--# Examples--- [Building an Agentic RAG System](https://langchain-ai.github.io/langgraph/tutorials/rag/langgraph_agentic_rag/): This tutorial guides you through the process of creating a retrieval agent (RAG) system using LangChain and LangGraph. You will learn how to fetch and preprocess documents, create a retriever tool, and build an agentic RAG that intelligently decides when to retrieve information or respond directly to user queries. By the end, you'll have a functional system capable of semantic search and context-aware responses.-- [Building a Multi-Agent Supervisor System](https://langchain-ai.github.io/langgraph/tutorials/multi_agent/agent_supervisor/): This tutorial guides you through the process of creating a multi-agent supervisor system using specialized agents for research and math tasks. You will learn how to set up the environment, create individual worker agents, and implement a supervisor that orchestrates their interactions. By the end, you'll have a fully functional multi-agent architecture capable of handling complex queries.-- [Building a SQL Agent with LangChain](https://langchain-ai.github.io/langgraph/tutorials/sql-agent/): This tutorial provides a step-by-step guide on how to create a SQL agent capable of answering questions about a SQL database. It covers the setup of necessary dependencies, configuration of a SQLite database, and the implementation of a prebuilt agent that interacts with the database to generate and execute queries. Additionally, it discusses customizing the agent for more control over its behavior.-- [Custom Run ID, Tags, and Metadata for LangSmith Graph Runs](https://langchain-ai.github.io/langgraph/how-tos/run-id-langsmith/): This guide provides instructions on how to pass a custom run ID and set tags and metadata for graph runs in LangSmith. It covers prerequisites, configuration options, and includes code examples for setting up and running a graph with LangGraph. Additionally, it explains how to view and filter traces in the LangSmith platform.-- [Custom Authentication Setup for Chatbots](https://langchain-ai.github.io/langgraph/tutorials/auth/getting_started/): This tutorial guides you through the process of setting up custom authentication for a chatbot using the LangGraph platform. You will learn how to implement token-based security to control user access, starting with a basic example and preparing for more advanced authentication methods in future tutorials. By the end, you'll have a functional chatbot that restricts access to authenticated users.-- [Implementing Private Conversations in Chatbots](https://langchain-ai.github.io/langgraph/tutorials/auth/resource_auth/): This tutorial guides you through extending a chatbot to enable private conversations for each user by implementing resource-level access control. You'll learn how to add authorization handlers to ensure users can only access their own threads and test the functionality to confirm proper access restrictions. Additionally, the tutorial covers scoped authorization handlers for more granular control over resource access.-- [Integrating OAuth2 Authentication with Supabase](https://langchain-ai.github.io/langgraph/tutorials/auth/add_auth_server/): This tutorial guides you through replacing hard-coded tokens with real user accounts using OAuth2 for secure authentication in your LangGraph application. You'll learn how to set up Supabase as your identity provider, implement token validation, and ensure proper user authorization. By the end, you'll have a production-ready authentication system that allows users to securely access their own data.-- [Rebuilding Graphs at Runtime in LangGraph](https://langchain-ai.github.io/langgraph/cloud/deployment/graph_rebuild/): This guide explains how to rebuild your graph at runtime with different configurations in LangGraph. It covers the necessary prerequisites, how to define graphs, and the steps to modify your graph-making function for dynamic behavior based on user input. Additionally, it provides examples of both static and dynamic graph configurations.-- [Interacting with RemoteGraph in LangGraph](https://langchain-ai.github.io/langgraph/how-tos/use-remote-graph/): This documentation page provides a comprehensive guide on how to interact with a LangGraph Platform deployment using the RemoteGraph interface. It covers the initialization of RemoteGraph, invoking the graph both asynchronously and synchronously, and utilizing it as a subgraph. Additionally, it includes code examples in Python and JavaScript to facilitate understanding and implementation.-- [Deploying Agents on LangGraph Platform](https://langchain-ai.github.io/langgraph/how-tos/autogen-langgraph-platform/): This page provides a comprehensive guide on how to deploy agents like AutoGen and CrewAI using the LangGraph Platform. It covers the necessary setup, agent definition, and wrapping the agent in a LangGraph node for deployment. Additionally, it highlights the benefits of using LangGraph for scalable infrastructure and memory support.-- [Integrating LangGraph with React: A Comprehensive Guide](https://langchain-ai.github.io/langgraph/cloud/how-tos/use_stream_react/): This documentation provides a detailed guide on how to integrate the LangGraph platform into your React applications using the `useStream()` hook. It covers installation, key features, example implementations, and customization options for building chat experiences. Additionally, it includes advanced topics such as event handling, TypeScript support, and managing conversation threads.-- [Implementing Generative User Interfaces with LangGraph](https://langchain-ai.github.io/langgraph/cloud/how-tos/generative_ui_react/): This documentation provides a comprehensive guide on how to implement Generative User Interfaces (Generative UI) using the LangGraph platform. It covers prerequisites, step-by-step tutorials for defining UI components, sending them in graphs, and handling them in React applications. Additionally, it includes how-to guides for customizing components and managing UI state effectively.--# Resources--- [LangGraph FAQ](https://langchain-ai.github.io/langgraph/concepts/faq/): This FAQ page provides answers to common questions about LangGraph, an orchestration framework for complex agentic systems. It covers topics such as the differences between LangGraph and LangChain, performance impacts, open-source status, and compatibility with various LLMs. Additionally, it outlines the distinctions between LangGraph and LangGraph Platform, including features and deployment options.-- [Getting Started with LangGraph Templates](https://langchain-ai.github.io/langgraph/concepts/template_applications/): This page provides an overview of open source reference applications known as templates, designed to help users quickly build applications with LangGraph. It includes installation instructions for the LangGraph CLI, a list of available templates with their descriptions, and guidance on creating and deploying a new LangGraph app. Users can find links to repositories for each template and next steps for customizing their applications.-- [Guide to Using llms.txt and llms-full.txt for LLMs](https://langchain-ai.github.io/langgraph/llms-txt-overview/): This page provides an overview of the `llms.txt` and `llms-full.txt` formats, which facilitate access to programming documentation for large language models (LLMs) and agents. It outlines the differences between the two formats, usage instructions via an MCP server, and best practices for integrating these files into integrated development environments (IDEs). Additionally, it highlights considerations for managing large documentation files effectively.-- [Community Agents for LangGraph](https://langchain-ai.github.io/langgraph/agents/prebuilt/): This page provides a list of community-built libraries that extend the functionality of LangGraph. Each entry includes the library name, GitHub URL, a brief description, and additional metrics like weekly downloads and stars. Additionally, it outlines how to contribute your own library to the LangGraph documentation.-- [LangGraph Error Reference Guide](https://langchain-ai.github.io/langgraph/troubleshooting/errors/index/): This page serves as a comprehensive reference for resolving common errors encountered while using the LangGraph platform. It includes a list of error codes and links to detailed guides for troubleshooting specific issues. Users can find solutions for errors related to graph recursion, concurrent updates, node return values, and more.-- [Handling Recursion Limits in LangGraph](https://langchain-ai.github.io/langgraph/troubleshooting/errors/GRAPH_RECURSION_LIMIT/): This page provides guidance on managing recursion limits in LangGraph's StateGraph. It explains how to identify potential infinite loops in your graph and offers solutions for increasing the recursion limit when working with complex graphs. Additionally, it includes code examples to illustrate the concepts discussed.-- [Handling INVALID_CONCURRENT_GRAPH_UPDATE in LangGraph](https://langchain-ai.github.io/langgraph/troubleshooting/errors/INVALID_CONCURRENT_GRAPH_UPDATE/): This page explains the INVALID_CONCURRENT_GRAPH_UPDATE error that occurs in LangGraph when multiple nodes attempt to update the same state property concurrently. It provides an example of how this error can arise and offers a solution by using a reducer to combine values from parallel node executions. Additionally, troubleshooting tips are included to help resolve this issue.-- [Handling Invalid Node Return Values in LangGraph](https://langchain-ai.github.io/langgraph/troubleshooting/errors/INVALID_GRAPH_NODE_RETURN_VALUE/): This page provides guidance on the error encountered when a LangGraph node returns a non-dict value. It includes an example of incorrect node implementation and the resulting error message. Additionally, troubleshooting tips are offered to ensure that all nodes return the expected dictionary format.-- [Handling Multiple Subgraphs in LangGraph](https://langchain-ai.github.io/langgraph/troubleshooting/errors/MULTIPLE_SUBGRAPHS/): This page discusses the limitations of calling multiple subgraphs within a single LangGraph node when checkpointing is enabled. It provides troubleshooting tips to resolve related errors, including suggestions for compiling subgraphs without checkpointing and using the Send API for graph calls.-- [Handling INVALID_CHAT_HISTORY Error in create_react_agent](https://langchain-ai.github.io/langgraph/troubleshooting/errors/INVALID_CHAT_HISTORY/): This page provides an overview of the INVALID_CHAT_HISTORY error encountered in the create_react_agent function when a malformed list of messages is passed. It outlines the potential causes of the error and offers troubleshooting steps to resolve it. Users can learn how to properly invoke the graph and manage tool calls to avoid this issue.-- [Handling INVALID_LICENSE Error in LangGraph Platform](https://langchain-ai.github.io/langgraph/troubleshooting/errors/INVALID_LICENSE/): This page provides guidance on troubleshooting the INVALID_LICENSE error encountered when starting a self-hosted LangGraph Platform server. It outlines the scenarios in which this error may occur and offers solutions based on different deployment types. Additionally, it includes steps to verify the necessary credentials for successful deployment.-- [LangGraph Studio Troubleshooting Guide](https://langchain-ai.github.io/langgraph/troubleshooting/studio/): This page provides troubleshooting solutions for common connection issues encountered in LangGraph Studio, particularly with Safari and Brave browsers. It also addresses potential graph edge issues and offers methods to define routing paths for conditional edges. Users can find step-by-step instructions for resolving these issues using Cloudflare Tunnel and browser settings.-- [LangGraph Case Studies](https://langchain-ai.github.io/langgraph/adopters/): This page provides a comprehensive list of companies that have successfully implemented LangGraph, showcasing their unique use cases and the benefits they have achieved. Each entry includes links to detailed case studies or blog posts for further reading. If your company uses LangGraph, you are encouraged to share your success story to contribute to this growing collection.diff --git a/docs/roadmap.md b/docs/roadmap.mddeleted file mode 100644index ff0ac2380..000000000--- a/docs/roadmap.md+++ /dev/null@@ -1,41 +0,0 @@-# Roadmap--Our vision for DeepTutor's future development.--## โ Recently Completed (v0.4.0)--- [x] **RAG Module Decoupling** โ Modular RAG architecture with provider-agnostic interface- - Currently standardized on llamaindex- - More backends coming soon-- [x] **Multi-Provider Support** โ Expanded LLM and Embedding provider options- - LLM: OpenAI, Anthropic, Azure, Ollama, Groq, OpenRouter, DeepSeek, Gemini- - Embedding: OpenAI, Jina, Cohere, Ollama, LM Studio, HuggingFace-- [x] **Dark Mode** โ System-wide dark/light theme support-- [x] **Environment Configuration** โ Unified `.env` based configuration--## ๐ Planned Features--- [ ] **Deepcoding from Research Drafts** โ Transform research and Co-Writer outputs into working prototypes-- [ ] **Personalized Memory** โ Adapt tutoring style based on user learning history-- [ ] **Additional RAG Backends** โ ChromaDB, Pinecone integration-- [ ] **More Embedding Adapters** โ Voyage AI, Mixedbread, local transformers--## ๐ญ Under Consideration--- Multi-language support-- Mobile-friendly interface-- Collaborative learning features-- Voice interaction support-- Faster frontend framework--## ๐ค Community Requests--Have a feature idea? We'd love to hear it!--- Open a [Feature Request](https://github.com/HKUDS/DeepTutor/issues/new?template=feature_request.yml)-- Join the discussion on existing proposals-- Check our [GitHub Discussions](https://github.com/HKUDS/DeepTutor/discussions)-------โญ **Star the repo** to follow our future updates!diff --git a/docs/zh/contribution.md b/docs/zh/contribution.mddeleted file mode 100644index ce9f25a81..000000000--- a/docs/zh/contribution.md+++ /dev/null@@ -1,104 +0,0 @@-# ๅไธ่ดก็ฎ--ๆไปฌๅธๆ DeepTutor ่ฝๆไธบ้็ป็คพๅบ็็คผ็ฉใ๐--## ๅ ๅ ฅๆไปฌ็็คพๅบ--<div class="community-links">- <a href="https://github.com/HKUDS/DeepTutor/issues/78" class="community-badge wechat">- ๐ฌ ๅพฎไฟก็คพๅบ็พค- </a>- <a href="https://github.com/HKUDS/DeepTutor/issues/167" class="community-badge wechat-collab">- ๐ค ๅพฎไฟกๅ ฑๅ็พค- </a>- <a href="https://discord.gg/eRsjPgMU4t" class="community-badge discord">- ๐ Discord- </a>-</div>--## ๆไปฌๆฌข่ฟ่ดก็ฎ๏ผ--ๆ ่ฎบๆจๆฏไฟฎๅค bugใๆน่ฟๆๆกฃ่ฟๆฏๆทปๅ ๆฐๅ่ฝ๏ผๆจ็่ดก็ฎๅฏนๆไปฌ้ฝๅพๆไปทๅผใ--### ๅฆไฝ่ดก็ฎ--1. **ๆฅๅ Bug** โ ๅ็ฐไบ bug๏ผๅจ GitHub ไธๅผไธไธช issue๏ผ้ไธๅค็ฐๆญฅ้ชค-2. **ๅปบ่ฎฎๅ่ฝ** โ ๅจ GitHub Discussions ๆๆไปฌ็็คพๅบๆธ ้ๅไบซๆณๆณ-3. **ๆน่ฟๆๆกฃ** โ ๅธฎๅฉๆไปฌๆน่ฟๆๆกฃใๆ็จๅ็คบไพ-4. **ๆไบคไปฃ็ ** โ ้่ฟ Pull Request ไฟฎๅค bug ๆๅฎ็ฐๆฐๅ่ฝ--### ่ดก็ฎๆๅ--่ฏฆ็ปๆๅ่ฏทๅ้ [CONTRIBUTING.md](https://github.com/HKUDS/DeepTutor/blob/dev/CONTRIBUTING.md)ใ--**่ฆ็น๏ผ**--- ๆๆ่ดก็ฎๅฟ ้กปๅบไบ `dev` ๅๆฏ-- ๆไบคๅ่ฟ่ก `pre-commit run --all-files`-- ไฝฟ็จ็บฆๅฎๅผๆไบคๆ ผๅผ๏ผ`feat:`ใ`fix:`ใ`docs:` ็ญ--### ๅฟซ้ๅ ฅ้จ--```bash-# Fork ๅนถๅ ้-git clone https://github.com/YOUR_USERNAME/DeepTutor.git-cd DeepTutor--# ไป dev ๅๅปบๅ่ฝๅๆฏ-git checkout dev && git pull origin dev-git checkout -b feature/your-feature-name--# ๅฎ่ฃ ้ขๆไบค้ฉๅญ-pip install pre-commit && pre-commit install--# ่ฟ่กๆดๆน๏ผ็ถๅๅ dev ๅๆฏๆไบค PR-```--## ๆไปฌ็่ดก็ฎ่--<a href="https://github.com/HKUDS/DeepTutor/graphs/contributors">- <img src="https://contrib.rocks/image?repo=HKUDS/DeepTutor&max=999" alt="่ดก็ฎ่ " />-</a>-------ๆ่ฐขๆจๅฏน DeepTutor ่ดก็ฎ็ๅ ด่ถฃ๏ผ๐--<style>-.community-links {- display: flex;- gap: 12px;- flex-wrap: wrap;- margin: 20px 0;-}--.community-badge {- display: inline-flex;- align-items: center;- padding: 10px 18px;- border-radius: 8px;- font-weight: 500;- font-size: 0.95rem;- text-decoration: none;- transition: all 0.2s ease;-}--.community-badge:hover {- transform: translateY(-2px);-}--.community-badge.wechat {- background: #07C160;- color: white;-}--.community-badge.wechat-collab {- background: #1AAD19;- color: white;-}--.community-badge.discord {- background: #5865F2;- color: white;-}-</style>diff --git a/docs/zh/features/overview.md b/docs/zh/features/overview.mddeleted file mode 100644index d14d7650a..000000000--- a/docs/zh/features/overview.md+++ /dev/null@@ -1,56 +0,0 @@-# ๅ่ฝไป็ป--DeepTutor ๆไพไบไธชไธไธๆจกๅ๏ผๅฉๅ AI ้ฉฑๅจ็ๅญฆไน ไฝ้ชใ--<div class="feature-nav">--## ๆ ธๅฟๆจกๅ--| ๆจกๅ | ๆ่ฟฐ | ๆๆกฃ |-|:-------|:------------|:--------------|-| ๐ง **ๆบ่ฝ่งฃ้ข** | ๅค Agent ๅไฝ่งฃ้ข๏ผๅๅพช็ฏๆจ็ๆถๆ | [่ฏฆๆ โ](https://github.com/HKUDS/DeepTutor#-smart-solver) |-| ๐ฏ **้ข็ฎ็ๆ** | ่ชๅฎไนๆต้ช็ๆ๏ผๆจกๆ็ๅฎ่่ฏ้ฃๆ ผ | [่ฏฆๆ โ](https://github.com/HKUDS/DeepTutor#-question-generator) |-| ๐ **ๅผๅฏผๅญฆไน ** | ไธชๆงๅๅญฆไน ่ทฏๅพ๏ผไบคไบๅผๅฏ่งๅ | [่ฏฆๆ โ](https://github.com/HKUDS/DeepTutor#-guided-learning) |-| ๐ฌ **ๆทฑๅบฆ็ ็ฉถ** | ็ณป็ปๅไธป้ขๆข็ดข๏ผๅจๆไธป้ข้ๅ | [่ฏฆๆ โ](https://github.com/HKUDS/DeepTutor#-deep-research) |-| โ๏ธ **ๅไฝๅไฝ** | AI ่พ ๅฉๅไฝ๏ผTTS ่ฏญ้ณๆ่ฏป | [่ฏฆๆ โ](https://github.com/HKUDS/DeepTutor#-co-writer) |--## ็ณป็ปๆถๆ--<img src="/full-pipe.png" alt="DeepTutor ๆถๆ" style="width: 100%; border-radius: 8px; margin: 24px 0;">--### ็ณป็ปๅฑๆฌก--- **็จๆท็้ข** โ ๅๅๆฅ่ฏขๅๅบ๏ผ็ปๆๅ่พๅบ-- **Agent ๆจกๅ** โ ๅๅญฆไน ไปปๅก็ไธไธ AI Agent-- **ๅทฅๅ ท้ๆ** โ RAGใ็ฝ็ปๆ็ดขใ่ฎบๆๆฃ็ดขใไปฃ็ ๆง่ก-- **็ฅ่ฏๅบ็ก** โ ็ฅ่ฏๅพ่ฐฑ + ๅ้ๅญๅจ + ่ฎฐๅฟ็ณป็ป--</div>--## ๆฏๆ็ๆๅกๅ--DeepTutor ๆฏๆๅค็ง LLM ๅ Embedding ๆๅกๅ๏ผ--::: details LLM ๆๅกๅ-- OpenAI (GPT-4o, GPT-4)-- Anthropic (Claude 3.5)-- Azure OpenAI-- DeepSeek-- Groq-- OpenRouter-- Ollama๏ผๆฌๅฐ้จ็ฝฒ๏ผ-- Google Gemini-:::--::: details Embedding ๆๅกๅ-- OpenAI-- Jina AI-- Cohere-- Ollama-- LM Studio-- HuggingFace-:::-------๐ **ๅฎๆดๆๆกฃ**: [GitHub README](https://github.com/HKUDS/DeepTutor)diff --git a/docs/zh/guide/data-preparation.md b/docs/zh/guide/data-preparation.mddeleted file mode 100644index d22f03d41..000000000--- a/docs/zh/guide/data-preparation.md+++ /dev/null@@ -1,185 +0,0 @@-# ๆฐๆฎๅๅค--DeepTutor ๆไพ็คบไพ็ฅ่ฏๅบๅๆ ทไพ้ฎ้ข๏ผๅธฎๅฉๆจๅฟซ้ไธๆใ--## ็คบไพ็ฅ่ฏๅบ--ๆไปฌๅจ [Google Drive](https://drive.google.com/drive/folders/1iWwfZXiTuQKQqUYb5fGDZjLCeTUP6DA6?usp=sharing) ไธๆไพไธคไธช้ขๆๅปบ็็ฅ่ฏๅบ๏ผ--### 1. ็ ็ฉถ่ฎบๆๅ้--<div class="info-card">- <div class="info-header">- <span class="info-icon">๐</span>- <span class="info-title">5 ็ฏ็ ็ฉถ่ฎบๆ๏ผๆฏ็ฏ 20-50 ้กต๏ผ</span>- </div>- <div class="info-content">- <p>ๆฅ่ชๆไปฌๅฎ้ชๅฎค็ๅๆฒฟ็ ็ฉถ่ฎบๆ็ฒพ้้๏ผๆถต็ RAG ๅ Agent ้ขๅใ</p>- <p><strong>ๅ ๅซ่ฎบๆ๏ผ</strong></p>- <ul>- <li><a href="https://github.com/HKUDS/AI-Researcher">AI-Researcher</a> - ่ชๅจๅ็ ็ฉถ่ฎบๆ็ๆ</li>- <li><a href="https://github.com/HKUDS/AutoAgent">AutoAgent</a> - ่ชไธปๆบ่ฝไฝๆกๆถ</li>- <li><a href="https://github.com/HKUDS/AutoAgent">AutoAgent</a> - ่ชไธปๆบ่ฝไฝๆกๆถ</li>- <li><a href="https://github.com/HKUDS/DeepCode">DeepCode</a> - AI ็ผ็ ๅฉๆ</li>- <li><a href="https://github.com/HKUDS/VideoRAG">VideoRAG</a> - ๅบไบ RAG ็่ง้ข็่งฃ</li>- </ul>- <p><strong>้็จๅบๆฏ๏ผ</strong> ็ ็ฉถๅบๆฏ๏ผๅนฟๆณ็ฅ่ฏ่ฆ็</p>- </div>-</div>--### 2. ๆฐๆฎ็งๅญฆๆๆ--<div class="info-card">- <div class="info-header">- <span class="info-icon">๐</span>- <span class="info-title">8 ็ซ ๏ผ296 ้กต</span>- </div>- <div class="info-content">- <p>ๆฅ่ชๅ ๅทๅคงๅญฆไผฏๅ ๅฉๅๆ ก็็ปผๅๆทฑๅบฆๅญฆไน ๆๆใ</p>- <p><strong>ๆฅๆบ๏ผ</strong> <a href="https://ma-lab-berkeley.github.io/deep-representation-learning-book/">Deep Representation Learning Book</a></p>- <p><strong>ๆถต็ไธป้ข๏ผ</strong></p>- <ul>- <li>็ฅ็ป็ฝ็ปๅบ็ก</li>- <li>่กจ็คบๅญฆไน </li>- <li>ๆทฑๅบฆๅญฆไน ๆถๆ</li>- <li>้ซ็บงไธป้ข</li>- </ul>- <p><strong>้็จๅบๆฏ๏ผ</strong> ๅญฆไน ๅบๆฏ๏ผๆทฑๅบฆ็ฅ่ฏๆๆ</p>- </div>-</div>--## ไธ่ฝฝไธ่ฎพ็ฝฎ--### ๆญฅ้ชค 1๏ผไธ่ฝฝ--่ฎฟ้ฎๆไปฌ็ [Google Drive ๆไปถๅคน](https://drive.google.com/drive/folders/1iWwfZXiTuQKQqUYb5fGDZjLCeTUP6DA6?usp=sharing) ๅนถไธ่ฝฝ๏ผ--- `knowledge_bases.zip` - ๅ ๅซๅตๅ ฅ็้ขๆๅปบ็ฅ่ฏๅบ-- `questions.zip` - ๆ ทไพ้ฎ้ขๅไฝฟ็จ็คบไพ๏ผๅฏ้๏ผ--### ๆญฅ้ชค 2๏ผ่งฃๅ--ๅฐไธ่ฝฝ็ๆไปถ่งฃๅๅฐ `data/` ็ฎๅฝ๏ผ--```-DeepTutor/-โโโ data/-โ โโโ knowledge_bases/-โ โโโ research_papers/ # ็ ็ฉถ่ฎบๆ็ฅ่ฏๅบ-โ โโโ data_science_book/ # ๆๆ็ฅ่ฏๅบ-โ โโโ kb_config.json # ็ฅ่ฏๅบ้ ็ฝฎ-โโโ user/ # ็จๆทๆฐๆฎ๏ผ่ชๅจๅๅปบ๏ผ-```--### ๆญฅ้ชค 3๏ผ้ช่ฏ--่งฃๅๅ๏ผๅฏๅจ DeepTutor ๆถๆจ็็ฅ่ฏๅบๅฐ่ชๅจๅฏ็จใ--::: warning ๅตๅ ฅๅ ผๅฎนๆง-ๆไปฌ็็คบไพ็ฅ่ฏๅบไฝฟ็จ `text-embedding-3-large`๏ผ`dimensions = 3072`ใ--ๅฆๆๆจ็ๅตๅ ฅๆจกๅๅ ทๆไธๅ็็ปดๅบฆ๏ผๆจ้่ฆๅๅปบ่ชๅทฑ็็ฅ่ฏๅบใ-:::--## ๅๅปบ่ชๅฎไน็ฅ่ฏๅบ--### ๆฏๆ็ๆไปถๆ ผๅผ--| ๆ ผๅผ | ๆฉๅฑๅ | ่ฏดๆ |-|:-------|:----------|:------|-| PDF | `.pdf` | ๆฏๆๆๆฌๆๅๅ็้ขๅๆ |-| ๆๆฌ | `.txt` | ็บฏๆๆฌๆไปถ |-| Markdown | `.md` | ๆฏๆๆ ผๅผๅ็ Markdown |--### ้่ฟ Web ็้ข--1. ๅฏผ่ชๅฐ `http://localhost:3782/knowledge`-2. ็นๅป **"New Knowledge Base"**-3. ไธบๆจ็็ฅ่ฏๅบ่พๅ ฅๅฏไธๅ็งฐ-4. ไธไผ ๆจ็ๆๆกฃ๏ผๅไธชๆๆน้ไธไผ ๏ผ-5. ็ญๅพ ๅค็ๅฎๆ--::: tip ๅค็ๆถ้ด-- ๅฐๆๆกฃ๏ผ< 10 ้กต๏ผ๏ผ็บฆ 1 ๅ้-- ไธญ็ญๆๆกฃ๏ผ10-100 ้กต๏ผ๏ผ็บฆ 5-10 ๅ้-- ๅคงๆๆกฃ๏ผ100+ ้กต๏ผ๏ผๅฏ่ฝ้่ฆๆด้ฟๆถ้ด-:::--### ้่ฟๅฝไปค่ก--```bash-# ไฝฟ็จๆๆกฃๅๅงๅๆฐ็ฅ่ฏๅบ-deeptutor kb create <kb_name> --doc <pdf_path>--# ๅ็ฐๆ็ฅ่ฏๅบๆทปๅ ๆๆกฃ-deeptutor kb add <kb_name> --doc <new_document.pdf>-```--## ๆฐๆฎๅญๅจ็ปๆ--ๆๆ็จๆทๆฐๆฎๅญๅจๅจ `data/` ็ฎๅฝไธญ๏ผ--```-data/-โโโ knowledge_bases/ # ็ฅ่ฏๅบๅญๅจ-โ โโโ <kb_name>/-โ โ โโโ documents/ # ๅๅงๆๆกฃ-โ โ โโโ chunks/ # ๅๅๅ ๅฎน-โ โ โโโ embeddings/ # ๅ้ๅตๅ ฅ-โ โ โโโ graph/ # ็ฅ่ฏๅพ่ฐฑๆฐๆฎ-โโโ user/ # ็จๆทๆดปๅจๆฐๆฎ- โโโ solve/ # ่งฃ้ข็ปๆ- โโโ question/ # ็ๆ็้ข็ฎ- โโโ research/ # ็ ็ฉถๆฅๅ- โโโ notebook/ # ็ฌ่ฎฐๆฌ่ฎฐๅฝ- โโโ logs/ # ็ณป็ปๆฅๅฟ-```-------**ไธไธๆญฅ๏ผ** [ๆฌๅฐๅฎ่ฃ โ](/zh/guide/local-start)--<style>-.info-card {- background: var(--vp-c-bg-soft);- border: 1px solid var(--vp-c-border);- border-radius: 12px;- padding: 20px;- margin: 16px 0;-}--.info-header {- display: flex;- align-items: center;- gap: 12px;- margin-bottom: 16px;-}--.info-icon {- font-size: 1.5rem;-}--.info-title {- font-size: 1.1rem;- font-weight: 600;- color: var(--vp-c-text-1);-}--.info-content {- color: var(--vp-c-text-2);- line-height: 1.7;-}--.info-content ul {- margin: 12px 0;- padding-left: 20px;-}--.info-content li {- margin: 6px 0;-}--.info-content a {- color: var(--vp-c-brand-1);-}-</style>diff --git a/docs/zh/guide/docker-start.md b/docs/zh/guide/docker-start.mddeleted file mode 100644index 110042538..000000000--- a/docs/zh/guide/docker-start.md+++ /dev/null@@ -1,259 +0,0 @@-# Docker ้จ็ฝฒ--Docker ้จ็ฝฒๆ ้ Python ๆ Node.js ่ฎพ็ฝฎโโไธๅ้ฝๅจๅฎนๅจไธญ่ฟ่กใ--## ๅๆๆกไปถ--- **Docker** โ [ๅฎ่ฃ Docker](https://docs.docker.com/get-docker/)-- **Docker Compose** โ [ๅฎ่ฃ Docker Compose](https://docs.docker.com/compose/install/)--## ๅฟซ้ๅฏๅจ้้กน--้ๆฉๆจๅๆฌข็้จ็ฝฒๆนๅผ๏ผ--<div class="method-tabs">--### ้้กน A๏ผไปๆบ็ ๆๅปบ--ไปๆบไปฃ็ ๆฌๅฐๆๅปบๅนถ่ฟ่ก DeepTutorใ--```bash-# ๅ ้ไปๅบ๏ผๅฆๆๅฐๆชๅฎๆ๏ผ-git clone https://github.com/HKUDS/DeepTutor.git-cd DeepTutor--# ๅๅปบๅนถ้ ็ฝฎ .env ๆไปถ-cp .env.example .env-# ็ผ่พ .env ๅกซๅ ฅๆจ็ API ๅฏ้ฅ--# ๆๅปบๅนถๅฏๅจ-docker compose up--# ้ฆๆฌก่ฟ่กๅจ Mac Mini M4 ไธ็บฆ้ 11 ๅ้-```--#### ๅธธ็จๅฝไปค--```bash-# ๅๅฐๅฏๅจ-docker compose up -d--# ๅๆญขๆๅก-docker compose down--# ๆฅ็ๆฅๅฟ-docker compose logs -f--# ไปฃ็ ๆดๆนๅ้ๅปบ-docker compose up --build--# ๆธ ้ค็ผๅญๅนถ้ๅปบ-docker compose build --no-cache-```--</div>--<div class="method-tabs">--### ้้กน B๏ผๆๅ้ขๆๅปบ้ๅ๏ผๆดๅฟซ๏ผ--ไฝฟ็จๆไปฌๅจ GitHub Container Registry ไธ็ๅฎๆน้ขๆๅปบ้ๅใ--```bash-# ้็จไบๆๆๅนณๅฐ - Docker ่ชๅจๆฃๆตๆจ็ๆถๆ-docker run -d --name deeptutor \- -p 8001:8001 -p 3782:3782 \- --env-file .env \- -v $(pwd)/data:/app/data \- -v $(pwd)/config:/app/config:ro \- ghcr.io/hkuds/deeptutor:latest-```--::: warning Windows PowerShell-ไฝฟ็จ `${PWD}` ไปฃๆฟ `$(pwd)`๏ผ--```powershell-docker run -d --name deeptutor `- -p 8001:8001 -p 3782:3782 `- --env-file .env `- -v ${PWD}/data:/app/data `- -v ${PWD}/config:/app/config:ro `- ghcr.io/hkuds/deeptutor:latest-```-:::--</div>--## ๅฏ็จ้ๅๆ ็ญพ--| ๆ ็ญพ | ๆถๆ | ่ฏดๆ |-|:----|:--------------|:------------|-| `:latest` | AMD64 + ARM64 | ๆๆฐ็จณๅฎ็๏ผ่ชๅจๆฃๆตๆถๆ๏ผ |-| `:v0.5.x` | AMD64 + ARM64 | ็นๅฎ็ๆฌ๏ผ่ชๅจๆฃๆตๆถๆ๏ผ |-| `:v0.5.x-amd64` | ไป AMD64 | ๆพๅผ AMD64 ้ๅ |-| `:v0.5.x-arm64` | ไป ARM64 | ๆพๅผ ARM64 ้ๅ |--::: tip ๅคๆถๆๆฏๆ-`:latest` ๆ ็ญพๆฏ**ๅคๆถๆ้ๅ**โโDocker ไผ่ชๅจไธบๆจ็็ณป็ป๏ผIntel/AMD ๆ Apple Silicon/ARM๏ผๆๅๆญฃ็กฎ็็ๆฌใ-:::--## ไบ็ซฏ้จ็ฝฒ--้จ็ฝฒๅฐไบๆๅกๅจๆถ๏ผๅฟ ้กป่ฎพ็ฝฎๅค้จ API URL๏ผ--```bash-docker run -d --name deeptutor \- -p 8001:8001 -p 3782:3782 \- -e NEXT_PUBLIC_API_BASE_EXTERNAL=https://your-server.com:8001 \- --env-file .env \- -v $(pwd)/data:/app/data \- ghcr.io/hkuds/deeptutor:latest-```--::: warning ไธบไปไน้่ฆ่ฟๆ ทๅ๏ผ-้ป่ฎค API URL ๆฏ `localhost:8001`๏ผๅจๆต่งๅจไธญ่ฟๆๅ็จๆท็ๆฌๅฐๆบๅจ๏ผ่ไธๆฏๆจ็ๆๅกๅจใ่ฎพ็ฝฎ `NEXT_PUBLIC_API_BASE_EXTERNAL` ็กฎไฟๅ็ซฏ่ฟๆฅๅฐๆจๆๅกๅจ็ๅ ฌๅ ฑๅฐๅใ-:::--## ่ชๅฎไน็ซฏๅฃ--ไฝฟ็จไธๅ็็ซฏๅฃ๏ผ--```bash-docker run -d --name deeptutor \- -p 9001:9001 -p 4000:4000 \- -e BACKEND_PORT=9001 \- -e FRONTEND_PORT=4000 \- -e NEXT_PUBLIC_API_BASE_EXTERNAL=http://localhost:9001 \- --env-file .env \- -v $(pwd)/data:/app/data \- ghcr.io/hkuds/deeptutor:latest-```--::: warning ้่ฆ-`-p` ็ซฏๅฃๆ ๅฐๅฟ ้กปไธ `BACKEND_PORT`/`FRONTEND_PORT` ๅผๅน้ ใ-:::--## ่ฎฟ้ฎๅฐๅ--| ๆๅก | URL | ่ฏดๆ |-|:---:|:---|:---|-| **ๅ็ซฏ** | http://localhost:3782 | ไธป Web ็้ข |-| **API ๆๆกฃ** | http://localhost:8001/docs | ไบคไบๅผ API ๆๆกฃ |--## ๅฎนๅจ็ฎก็--### ๆฅ็่ฟ่กไธญ็ๅฎนๅจ--```bash-docker ps-```--### ๅๆญขๅฎนๅจ--```bash-docker stop deeptutor-```--### ๅ ้คๅฎนๅจ--```bash-docker rm deeptutor-```--### ๆฅ็ๆฅๅฟ--```bash-# ๆๆๆฅๅฟ-docker logs deeptutor--# ๅฎๆถ่ท่ธชๆฅๅฟ-docker logs -f deeptutor--# ๆๅ 100 ่ก-docker logs --tail 100 deeptutor-```--## ๆ ้ๆ้ค--### ไบ็ซฏ้จ็ฝฒๆถๅ็ซฏๆ ๆณ่ฟๆฅ--**้ฎ้ข๏ผ** ๅ็ซฏๆพ็คบ "Failed to fetch" ๆ "NEXT_PUBLIC_API_BASE is not configured"--**่งฃๅณๆนๆก๏ผ** ๅฐ `NEXT_PUBLIC_API_BASE_EXTERNAL` ่ฎพ็ฝฎไธบๆจๆๅกๅจ็ๅ ฌๅ ฑ URL๏ผ--```bash--e NEXT_PUBLIC_API_BASE_EXTERNAL=https://your-server.com:8001-```--### ไฝฟ็จ HTTPS ๅๅไปฃ็ๆถ่ฎพ็ฝฎ้กต้ขๆพ็คบ "Error loading data"--**้ฎ้ข๏ผ** HTTPS ่ฏทๆฑ่ขซ้ๅฎๅๅฐ HTTP๏ผ307 ้ๅฎๅ๏ผ--**่งฃๅณๆนๆก๏ผ** ๆญค้ฎ้ขๅทฒๅจ v0.5.0+ ไธญไฟฎๅคใ่ฏทๆดๆฐๅฐๆๆฐ็ๆฌใ--**nginx ้ ็ฝฎ๏ผ**--```nginx-# ๅ็ซฏ-location / {- proxy_pass http://localhost:3782;- proxy_set_header Host $host;- proxy_set_header X-Forwarded-Proto $scheme;-}--# ๅ็ซฏ API-location /api/ {- proxy_pass http://localhost:8001;- proxy_set_header Host $host;- proxy_set_header X-Forwarded-Proto $scheme;-}--# WebSocket ๆฏๆ-location /api/v1/ {- proxy_pass http://localhost:8001;- proxy_http_version 1.1;- proxy_set_header Upgrade $http_upgrade;- proxy_set_header Connection "upgrade";- proxy_set_header X-Forwarded-Proto $scheme;-}-```--### ้ๅฏๅๆฐๆฎๆชไฟ็--**่งฃๅณๆนๆก๏ผ** ็กฎไฟๆ่ฝฝไบๆฐๆฎ็ฎๅฝ๏ผ--```bash--v $(pwd)/data:/app/data-```--### HuggingFace ๆจกๅไธ่ฝฝๅคฑ่ดฅ๏ผๅ้็ฝ็ป๏ผ--**่งฃๅณๆนๆก๏ผ** ๅจ `.env` ไธญๆทปๅ HuggingFace ้ ็ฝฎ๏ผ--```bash-# ไฝฟ็จ้ๅ็ซฏ็น-HF_ENDPOINT=https://your-hf-mirror.example.com--# ๆๅผบๅถ็ฆป็บฟๆจกๅผ๏ผ้่ฆ้ข็ผๅญ็ๆจกๅ๏ผ-HF_HUB_OFFLINE=1-```-------**ไธไธๆญฅ๏ผ** [ๅไธ่ดก็ฎ โ](/zh/contribution)--<style>-.method-tabs {- background: var(--vp-c-bg-soft);- border: 1px solid var(--vp-c-border);- border-radius: 12px;- padding: 20px;- margin: 16px 0;-}--.method-tabs h3 {- margin-top: 0;- padding-top: 0;- border-top: none;-}-</style>diff --git a/docs/zh/guide/local-start.md b/docs/zh/guide/local-start.mddeleted file mode 100644index a01d8c0a7..000000000--- a/docs/zh/guide/local-start.md+++ /dev/null@@ -1,61 +0,0 @@-# ๆฌๅฐๅฏๅจ--DeepTutor ็ฐๅจๅชๆไธๅฅๅฎๆนๆฌๆบๅผๅฏผๆต็จใ--## ๆจ่ๆต็จ--1. `git clone` ้กน็ฎใ-2. ๆฟๆดป Python 3.11+ ็ฏๅขใ-3. ไปๆบ็ ๅฎ่ฃ ๏ผ--```bash-pip install -e .-pip install ".[server]"-pip install ".[math-animator]" # ๅฏ้-```--4. ่ฟ่ก๏ผ--```bash-python scripts/start_tour.py-```--ๅผๅฏผไผ็ดๆฅๅจ็ป็ซฏ้่ฟ่ก๏ผๅนถๅ ่ฏข้ฎไฝ ๆณไฝฟ็จ `Web` ่ฟๆฏ `CLI`ใ--ไธค็งๆจกๅผๆ็ป้ฝไผๅๅ ฅ้กน็ฎๆ น็ฎๅฝ `.env`ใ่ฟ่ก่กไธบ้ ็ฝฎๅชไปไธ้ข่ฟไบๆไปถ่ฏปๅ๏ผ--- `data/user/settings/main.yaml`-- `data/user/settings/agents.yaml`-- `data/user/settings/interface.json`--## ๅผๅฏผไผๅฎๆไปไน--- ้ๆฉ DeepTutor ๅ็ปญไธ็ดไฝฟ็จ็ๅ็ซฏ็ซฏๅฃๅๅ็ซฏ็ซฏๅฃ-- ๅฎ่ฃ ๆ้ๆกฃไฝ็ไพ่ต-- ๆถ้ LLMใEmbeddingใๅฏ้ Search ้ ็ฝฎ-- ๅจๆ็ปๅๅ ฅๅๆต่ฏ LLM ๅ Embedding-- ๅๅ ฅ `.env`๏ผๅนถๆธ ็ๅฏ่ฝๆฎ็็ไธดๆถ่็จฟ `data/user/settings/env.json`--## ๅผๅฏผๅฎๆๅๅฏๅจๅบ็จ--```bash-python scripts/start_web.py-```--่ฟไธชๅฏๅจๅจไผ่ฏปๅ้กน็ฎๆ น็ฎๅฝ `.env`๏ผๅฏๅจ FastAPI ๅ็ซฏ๏ผๅนถ่ชๅจๆ `NEXT_PUBLIC_API_BASE` ๆณจๅ ฅๅ็ซฏ่ฟ็จใ--## ไป ไฝฟ็จ CLI--ๅฆๆไฝ ๅชๆณไฝฟ็จ็ป็ซฏๅทฅไฝๆต๏ผๅจ `start_tour.py` ้้ๆฉ `CLI` ๅณๅฏใไนๅๅธธ็จๅฝไปคไป็ถๆฏ๏ผ--```bash-deeptutor chat-deeptutor kb list-deeptutor serve --port 8001-```--## ่ฏดๆ--- `config/` ๅทฒไธๅๅไธ่ฟ่กๆถๅ ่ฝฝใ-- `web/.env.local` ไธๅๆฏๅฎๆนๆฌๆบ้ ็ฝฎๆต็จ็ไธ้จๅใ-- TTS ่ฎพ็ฝฎๅทฒไธๅๅฑไบๅฎๆน้ ็ฝฎ้ขใdiff --git a/docs/zh/guide/pre-config.md b/docs/zh/guide/pre-config.mddeleted file mode 100644index 6d776d58d..000000000--- a/docs/zh/guide/pre-config.md+++ /dev/null@@ -1,193 +0,0 @@-# ้ข้ ็ฝฎ--ๅจๅฏๅจ DeepTutor ไนๅ๏ผๆจ้่ฆๅฎๆไปฅไธ่ฎพ็ฝฎๆญฅ้ชคใ--## 1. ๅ ้ไปๅบ--```bash-git clone https://github.com/HKUDS/DeepTutor.git-cd DeepTutor-```--## 2. ็ฏๅขๅ้้ ็ฝฎ--ไปๆจกๆฟๅๅปบ `.env` ๆไปถ๏ผ--```bash-cp .env.example .env-```--็ถๅ็ผ่พ `.env` ๆไปถ๏ผๅกซๅ ฅๆจ็ API ๅฏ้ฅ๏ผ--```bash-# ============================================================================-# ๆๅกๅจ้ ็ฝฎ-# ============================================================================-BACKEND_PORT=8001 # ๅ็ซฏ API ็ซฏๅฃ-FRONTEND_PORT=3782 # ๅ็ซฏ Web ็ซฏๅฃ--# ่ฟ็จ/ๅฑๅ็ฝ่ฎฟ้ฎ - ่ฎพ็ฝฎไธบๆจๆๅกๅจ็ IP ๅฐๅ-# NEXT_PUBLIC_API_BASE=http://192.168.1.100:8001--# ============================================================================-# LLM (ๅคง่ฏญ่จๆจกๅ) ้ ็ฝฎ - ๅฟ ๅกซ-# ============================================================================-LLM_BINDING=openai # ๆไพๅ: openai, anthropic, azure_openai, ollama ็ญ-LLM_MODEL=gpt-4o # ๆจกๅๅ: gpt-4o, deepseek-chat, claude-3-5-sonnet ็ญ-LLM_HOST=https://api.openai.com/v1 # API ็ซฏ็น URL-LLM_API_KEY=your_api_key # ๆจ็ LLM API ๅฏ้ฅ--# ============================================================================-# ๅตๅ ฅๆจกๅ้ ็ฝฎ - ็ฅ่ฏๅบๅฟ ๅกซ-# ============================================================================-EMBEDDING_BINDING=openai # ๆไพๅ็ฑปๅ-EMBEDDING_MODEL=text-embedding-3-large # ๅตๅ ฅๆจกๅๅ็งฐ-EMBEDDING_DIMENSION=3072 # ๅฟ ้กปไธๆจกๅ็ปดๅบฆๅน้ -EMBEDDING_HOST=https://api.openai.com/v1 # API ็ซฏ็น-EMBEDDING_API_KEY=your_api_key # ๅตๅ ฅ API ๅฏ้ฅ--# ============================================================================-# ็ฝ็ปๆ็ดข้ ็ฝฎ - ๅฏ้-# ============================================================================-SEARCH_PROVIDER=perplexity # ้้กน: perplexity, tavily, serper, jina, exa, baidu-SEARCH_API_KEY=your_search_api_key # ๆ็ดขๆไพๅ็ API ๅฏ้ฅ-```--### ็ฏๅขๅ้ๅ่--| ๅ้ | ๅฟ ๅกซ | ่ฏดๆ |-|:---|:---:|:---|-| `LLM_MODEL` | **ๆฏ** | ๆจกๅๅ็งฐ (ๅฆ `gpt-4o`, `deepseek-chat`) |-| `LLM_API_KEY` | **ๆฏ** | ๆจ็ LLM API ๅฏ้ฅ |-| `LLM_HOST` | **ๆฏ** | API ็ซฏ็น URL |-| `EMBEDDING_MODEL` | **ๆฏ** | ๅตๅ ฅๆจกๅๅ็งฐ |-| `EMBEDDING_DIMENSION` | **ๆฏ** | ๅฟ ้กปไธๆจกๅ่พๅบ็ปดๅบฆๅน้ |-| `EMBEDDING_API_KEY` | **ๆฏ** | ๅตๅ ฅ API ๅฏ้ฅ |-| `EMBEDDING_HOST` | **ๆฏ** | ๅตๅ ฅ API ็ซฏ็น |-| `BACKEND_PORT` | ๅฆ | ๅ็ซฏ็ซฏๅฃ (้ป่ฎค: `8001`) |-| `FRONTEND_PORT` | ๅฆ | ๅ็ซฏ็ซฏๅฃ (้ป่ฎค: `3782`) |-| `NEXT_PUBLIC_API_BASE` | ๅฆ | ่ฎพ็ฝฎ็จไบ่ฟ็จ/ๅฑๅ็ฝ่ฎฟ้ฎ |-| `SEARCH_PROVIDER` | ๅฆ | ็ฝ็ปๆ็ดขๆไพๅ |-| `SEARCH_API_KEY` | ๅฆ | ๆ็ดข API ๅฏ้ฅ |--### ๆฏๆ็ LLM ๆไพๅ--| ๆไพๅ | `LLM_BINDING` ๅผ | ่ฏดๆ |-|:---------|:--------------------|:------|-| OpenAI | `openai` | GPT-4o, GPT-4, GPT-3.5 |-| Anthropic | `anthropic` | Claude 3.5, Claude 3 |-| Azure OpenAI | `azure_openai` | ไผไธ้จ็ฝฒ |-| Ollama | `ollama` | ๆฌๅฐๆจกๅ |-| DeepSeek | `deepseek` | DeepSeek-V3, DeepSeek-R1 |-| Groq | `groq` | ๅฟซ้ๆจ็ |-| OpenRouter | `openrouter` | ๅคๆจกๅ็ฝๅ ณ |-| Google Gemini | `gemini` | OpenAI ๅ ผๅฎนๆจกๅผ |--### ๆฏๆ็ๅตๅ ฅๆไพๅ--| ๆไพๅ | `EMBEDDING_BINDING` ๅผ | ่ฏดๆ |-|:---------|:--------------------------|:------|-| OpenAI | `openai` | text-embedding-3-large/small |-| Azure OpenAI | `azure_openai` | ไผไธ้จ็ฝฒ |-| Jina AI | `jina` | jina-embeddings-v3 |-| Cohere | `cohere` | embed-v3 ็ณปๅ |-| Ollama | `ollama` | ๆฌๅฐๅตๅ ฅๆจกๅ |-| LM Studio | `lm_studio` | ๆฌๅฐๆจ็ๆๅกๅจ |-| HuggingFace | `huggingface` | OpenAI ๅ ผๅฎน็ซฏ็น |--## 3. ้ ็ฝฎๆไปถ--DeepTutor ไฝฟ็จไธคไธช YAML ้ ็ฝฎๆไปถ่ฟ่ก่ชๅฎไน๏ผ--### `config/agents.yaml` - Agent ๅๆฐ--ๆญคๆไปถๆงๅถๆฏไธชๆจกๅ็ LLM ๅๆฐ๏ผ--```yaml-# ่งฃ้ขๆจกๅ - ้ฎ้ขๆฑ่งฃ agents-solve:- temperature: 0.3- max_tokens: 8192--# ็ ็ฉถๆจกๅ - ๆทฑๅบฆ็ ็ฉถ agents-research:- temperature: 0.5- max_tokens: 12000--# ้ข็ฎๆจกๅ - ้ข็ฎ็ๆ agents-question:- temperature: 0.7- max_tokens: 4096--# ๅผๅฏผๆจกๅ - ๅญฆไน ๅผๅฏผ agents-guide:- temperature: 0.5- max_tokens: 16192--# ๅไฝๅไฝๆจกๅ - ๅไฝๅไฝ agents-co_writer:- temperature: 0.7- max_tokens: 4096-```--### `data/user/settings/main.yaml` - ็ณป็ป่ฎพ็ฝฎ--ๆญคๆไปถๆงๅถ่ทฏๅพใๅทฅๅ ทๅๆจกๅ็นๅฎ่ฎพ็ฝฎ๏ผ--```yaml-# ็ณป็ป่ฏญ่จ-system:- language: en--# ๆฐๆฎ่ทฏๅพ-paths:- user_data_dir: ./data/user- knowledge_bases_dir: ./data/knowledge_bases--# ๅทฅๅ ท้ ็ฝฎ-tools:- rag_tool:- kb_base_dir: ./data/knowledge_bases- default_kb: ai_textbook- run_code:- workspace: ./data/user/workspace/chat/_detached_code_execution- web_search:- enabled: true--# ๆจกๅ็นๅฎ่ฎพ็ฝฎ-research:- researching:- execution_mode: series # "series" ๆ "parallel"- max_iterations: 5- enable_rag_hybrid: true- enable_paper_search: true- enable_web_search: true-```--> **ๆ็คบ๏ผ** ๅฏนไบๅคงๅคๆฐ็จๆท๏ผ้ป่ฎค้ ็ฝฎๅทฒ็ป่ถณๅคๅฅฝ็จใๅชๆๅจ้่ฆ็นๅฎ่ชๅฎไนๆถๆไฟฎๆน่ฟไบๆไปถใ--## 4. ็ฅ่ฏๅบๅๅค๏ผๅฏ้๏ผ--ๆจๅฏไปฅไฝฟ็จๆไปฌ้ขๆๅปบ็็คบไพ็ฅ่ฏๅบๆฅๅฟซ้ๅผๅงใ--### ไธ่ฝฝ็คบไพ็ฅ่ฏๅบ--ไป [Google Drive](https://drive.google.com/drive/folders/1iWwfZXiTuQKQqUYb5fGDZjLCeTUP6DA6?usp=sharing) ไธ่ฝฝๅนถ่งฃๅๅฐ `data/` ็ฎๅฝใ--::: info ้่ฆๆ็คบ-็คบไพ็ฅ่ฏๅบไฝฟ็จ `text-embedding-3-large`๏ผ`dimensions = 3072`ใ่ฏท็กฎไฟๆจ็ๅตๅ ฅๆจกๅๅ ทๆๅน้ ็็ปดๅบฆใ-:::--### ๅๅปบๆจ่ชๅทฑ็็ฅ่ฏๅบ--ๅฏๅจ DeepTutor ๅ๏ผ--1. ๅฏผ่ชๅฐ `http://localhost:3782/knowledge`-2. ็นๅป **"New Knowledge Base"**-3. ่พๅ ฅๅฏไธ็ๅ็งฐ-4. ไธไผ PDF/TXT/MD ๆไปถ-5. ๅจ็ป็ซฏไธญ็ๆง่ฟๅบฆ-------**ไธไธๆญฅ๏ผ** [ๆฐๆฎๅๅค โ](/zh/guide/data-preparation)diff --git a/docs/zh/guide/troubleshooting.md b/docs/zh/guide/troubleshooting.mddeleted file mode 100644index 9be19db2c..000000000--- a/docs/zh/guide/troubleshooting.md+++ /dev/null@@ -1,48 +0,0 @@-# ๅธธ่ง้ฎ้ข--ๅฟซ้่งฃๅณๅธธ่ง้ฎ้ขใ--## ๅฏๅจ้ฎ้ข--| ้ฎ้ข | ่งฃๅณๆนๆก |-|:--------|:---------|-| ๅ็ซฏๅฏๅจๅคฑ่ดฅ | ๆฃๆฅ Python โฅ 3.11๏ผ้ช่ฏ `.env` ้ ็ฝฎ |-| `npm: command not found` | ๅฎ่ฃ Node.js: `conda install -c conda-forge nodejs` |-| ็ซฏๅฃๅทฒ่ขซๅ ็จ | ็ปๆญข่ฟ็จ๏ผ`lsof -i :8001` โ `kill -9 <PID>` |--## ่ฟๆฅ้ฎ้ข--| ้ฎ้ข | ่งฃๅณๆนๆก |-|:--------|:---------|-| ๅ็ซฏๆ ๆณ่ฟๆฅๅ็ซฏ | ็กฎ่ฎคๅ็ซฏ่ฟ่กๅจ <http://localhost:8001/docs> |-| WebSocket ่ฟๆฅๅคฑ่ดฅ | ๆฃๆฅ้ฒ็ซๅข๏ผ็กฎ่ฎค `ws://localhost:8001/api/v1/...` ๆ ผๅผ |-| ่ฟ็จ่ฎฟ้ฎๅคฑ่ดฅ | ๅจ `.env` ไธญ่ฎพ็ฝฎ `NEXT_PUBLIC_API_BASE=http://your-ip:8001` |--## Docker ้ฎ้ข--| ้ฎ้ข | ่งฃๅณๆนๆก |-|:--------|:---------|-| ไบ็ซฏๅ็ซฏๆ ๆณ่ฟๆฅ | ่ฎพ็ฝฎ `NEXT_PUBLIC_API_BASE_EXTERNAL=https://your-server:8001` |-| ๆถๆไธๅน้ | ไฝฟ็จ `uname -m` ๆฃๆฅ๏ผAMD64 ็จ `:latest`๏ผARM ็จ `:latest-arm64` |--## ็ฅ่ฏๅบ้ฎ้ข--| ้ฎ้ข | ่งฃๅณๆนๆก |-|:--------|:---------|-| ๅค็ๅกไฝ | ๆฃๆฅ็ป็ซฏๆฅๅฟ๏ผ้ช่ฏ API ๅฏ้ฅ |-| `uvloop.Loop` ้่ฏฏ | ่ฏฅ็ผๅทๆก็ฎๆๅๆต็จๅทฒ็งป้ค๏ผllamaindex-only๏ผ๏ผๆ ้้ขๅคๅค็ |--## ็ปๆญขๅๅฐ่ฟ็จ--```bash-# macOS/Linux-lsof -i :8001 && kill -9 <PID>--# Windows-netstat -ano | findstr :8001-taskkill /PID <PID> /F-```-------๐ **ๅฎๆด FAQ**: [GitHub README](https://github.com/HKUDS/DeepTutor#-faq)diff --git a/docs/zh/index.md b/docs/zh/index.mddeleted file mode 100644index 505cd9cd1..000000000--- a/docs/zh/index.md+++ /dev/null@@ -1,77 +0,0 @@-----layout: home--hero:- name: "DeepTutor"- text: "ไฝ ็ AI ๅญฆไน ไผไผด"- tagline: ๅฐไปปไฝๆๆกฃ่ฝฌๅไธบๅคๆบ่ฝไฝ้ฉฑๅจ็ไบๅจๅญฆไน ไฝ้ช- image:- src: /logo.png- alt: DeepTutor- actions:- - theme: brand- text: ๅฟซ้ๅผๅง โ- link: /zh/guide/pre-config- - theme: alt- text: GitHub- link: https://github.com/HKUDS/DeepTutor--features:- - icon: ๐- title: ๆตท้ๆๆกฃ้ฎ็ญ- details: ไธไผ ๆๆใ่ฎบๆๅๆๅ๏ผๆๅปบๅบไบ RAG ๅ็ฅ่ฏๅพ่ฐฑ็ AI ็ฅ่ฏๅบใ- - icon: ๐ง- title: ๆบ่ฝ่งฃ้ข- details: ๅๅพช็ฏๆจ็ๆถๆ้ ๅๅคๆบ่ฝไฝๅไฝ๏ผๆไพๅธฆๆ็ฒพๅๆๆกฃๅผ็จ็้ๆญฅ่งฃ็ญใ- - icon: ๐ฏ- title: ้ข็ฎ็ๆ- details: ๅบไบ็ฅ่ฏๅบ็ๆ่ชๅฎไนๆต้ช๏ผๆๆจกๆ็ๅฎ่่ฏ้ฃๆ ผ่ฟ่ก็ปไน ใ- - icon: ๐- title: ๅผๅฏผๅญฆไน- details: ไธชๆงๅๅญฆไน ่ทฏๅพ๏ผ้ ๅไบคไบๅผๅฏ่งๅๅ่ช้ๅบ่ฎฒ่งฃใ- - icon: ๐ฌ- title: ๆทฑๅบฆ็ ็ฉถ- details: ็ณป็ปๅไธป้ขๆข็ดข๏ผๆดๅ็ฝ็ปๆ็ดขใ่ฎบๆๆฃ็ดขๅๆ็ฎ็ปผๅใ- - icon: ๐ก- title: ็ตๆ็ๆ- details: AI ่พ ๅฉๅคด่้ฃๆด๏ผ็ฅ่ฏๆๅไธๅค้ถๆฎต็ญ้ใ------## ไธบไปไน้ๆฉ DeepTutor๏ผ--- **ๆทฑๅบฆ็่งฃ** โ ไธๅชๆฏ็ญๆก๏ผ่ๆฏๅธฆๆๅฏ่งๅ่ฎฒ่งฃ็ๅผๅฏผๅผๅญฆไน ไนๆ-- **ๅคๆจกๆๆฏๆ** โ PDFใLaTeXใๅพ็ใไปฃ็ ๆง่ก็ญๅ จ้ขๆฏๆ-- **็ฅ่ฏๆฃ็ดข** โ ๅบไบ llamaindex ็็ปไธๆฃ็ดข่ฝๅ๏ผๅฎ็ฐๆดๅฅฝ็็่งฃ-- **ไธ็ซๅผๅนณๅฐ** โ ่งฃ้ขใ้ข็ฎ็ๆใ็ ็ฉถใ็ตๆ็ๆ้ไบไธไฝ--<style>-:root {- --vp-home-hero-name-color: transparent;- --vp-home-hero-name-background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);- --vp-home-hero-image-background-image: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 50%, rgba(240, 147, 251, 0.15) 100%);- --vp-home-hero-image-filter: blur(72px);-}--.dark {- --vp-home-hero-image-background-image: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 50%, rgba(240, 147, 251, 0.1) 100%);-}--.VPHero .name {- font-size: 4.5rem !important;- line-height: 1.1 !important;-}--.VPHero .text {- font-size: 2.4rem !important;- font-weight: 600 !important;-}--@media (max-width: 768px) {- .VPHero .name {- font-size: 3rem !important;- }- .VPHero .text {- font-size: 1.8rem !important;- }-}-</style>diff --git a/docs/zh/roadmap.md b/docs/zh/roadmap.mddeleted file mode 100644index a5df883f3..000000000--- a/docs/zh/roadmap.md+++ /dev/null@@ -1,177 +0,0 @@-# ่ทฏ็บฟๅพ--## โก ๅฝๅ้็น--- ๐ **ๆดๅค RAG ็ฎก้** โ ๆฉๅฑๆฃ็ดขๆถๆๅๅ็ซฏ-- **ๆฐๆฎๅบ็จณๅฎๆงไธๅฏ่งๅ** โ ็จณๅฎๆงๆน่ฟๅๅฏ่งๅๆดๅฏ-- ๐ **Bug ไฟฎๅค** โ ๅค็ๅทฒๆฅๅ็้ฎ้ขๅ่พน็ผๆ ๅต--## ๐ฌ ็คพๅบ้ๆฑๆธ ๅ--ๆฅ่ช็คพๅบ็ๅ่ฝ่ฏทๆฑ๏ผ--- ๐ฅ **ๅค็จๆทๅไฝๅญฆไน ** โ ๅฎๆถๅ ฑไบซๅญฆไน ไผ่ฏ-- ๐ **้็จๅผๅฏผๅญฆไน ** โ ๆดๅนฟๆณ็่ช้ๅบๅญฆไน ่ทฏๅพ-- ๐ **่ชๅจ็ฌ่ฎฐ็ๆ** โ AI ้ฉฑๅจ็ๆ่ฆๅ็ฌ่ฎฐๅๅปบ-------<div class="community-wrapper">--<div class="community-header">- <h2>๐ค ๅ ฑๅๆชๆฅ๏ผ</h2>- <p>DeepTutor ็ฑ็คพๅบๆๅปบ๏ผไธบ็คพๅบๆๅกใ</p>-</div>--<div class="community-grid">--<div class="community-card">- <div class="card-icon">๐ก</div>- <div class="card-title">ๆณๆณ</div>- <div class="card-desc">ๅไบซๅ้ฆ๏ผๆๅบๅ่ฝๅปบ่ฎฎ</div>- <div class="card-links">- <div class="link-row">- <a href="https://discord.gg/zpP9cssj" class="discord">Discord</a>- <a href="https://github.com/HKUDS/DeepTutor/issues/78" class="wechat">ๅพฎไฟก็พค</a>- </div>- <div class="link-row">- <a href="https://github.com/HKUDS/DeepTutor/discussions" class="github">GitHub Discussions</a>- </div>- </div>-</div>--<div class="community-card">- <div class="card-icon">๐ง</div>- <div class="card-title">ไปฃ็ </div>- <div class="card-desc">ๆฌข่ฟๅ <code>dev</code> ๅๆฏๆไบค PR</div>- <div class="card-links">- <a href="https://github.com/HKUDS/DeepTutor/blob/main/CONTRIBUTING.md" class="github">่ดก็ฎๆๅ โ</a>- </div>-</div>--</div>--</div>--<style>-.community-wrapper {- margin-top: 24px;- padding: 40px;- background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);- border: 1px solid rgba(102, 126, 234, 0.1);- border-radius: 16px;-}--.community-header {- text-align: center;- margin-bottom: 32px;-}--.community-header h2 {- margin: 0 0 8px;- font-size: 1.6rem;- border: none;-}--.community-header p {- margin: 0;- color: var(--vp-c-text-2);- font-size: 1rem;-}--.community-grid {- display: grid;- grid-template-columns: repeat(2, 1fr);- gap: 20px;- max-width: 600px;- margin: 0 auto;-}--@media (max-width: 640px) {- .community-grid {- grid-template-columns: 1fr;- }-}--.community-card {- background: var(--vp-c-bg);- border: 1px solid var(--vp-c-divider);- border-radius: 12px;- padding: 24px;- text-align: center;- transition: all 0.25s ease;-}--.community-card:hover {- border-color: rgba(102, 126, 234, 0.4);- box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);- transform: translateY(-2px);-}--.card-icon {- font-size: 2rem;- margin-bottom: 12px;-}--.card-title {- font-size: 1.15rem;- font-weight: 600;- margin-bottom: 6px;- color: var(--vp-c-text-1);-}--.card-desc {- font-size: 0.9rem;- color: var(--vp-c-text-2);- margin-bottom: 16px;-}--.card-links {- display: flex;- flex-direction: column;- align-items: center;- gap: 8px;-}--.link-row {- display: flex;- gap: 8px;- justify-content: center;-}--.card-links a {- font-size: 0.85rem;- font-weight: 500;- text-decoration: none;- padding: 6px 14px;- border-radius: 6px;- transition: all 0.2s;-}--/* Discord - ่็ดซ่ฒ */-.card-links a.discord {- color: #5865F2;- background: rgba(88, 101, 242, 0.1);-}-.card-links a.discord:hover {- background: rgba(88, 101, 242, 0.2);-}--/* WeChat - ็ปฟ่ฒ */-.card-links a.wechat {- color: #07C160;- background: rgba(7, 193, 96, 0.1);-}-.card-links a.wechat:hover {- background: rgba(7, 193, 96, 0.2);-}--/* GitHub - ๆทฑ็ฐ็ดซ */-.card-links a.github {- color: #6e5494;- background: rgba(110, 84, 148, 0.1);-}-.card-links a.github:hover {- background: rgba(110, 84, 148, 0.2);-}-</style>diff --git a/scripts/start_tour.py b/scripts/start_tour.pyindex 250741dcb..f9d6eee71 100644--- a/scripts/start_tour.py+++ b/scripts/start_tour.py@@ -18,6 +18,30 @@ PROJECT_ROOT = Path(__file__).resolve().parent.parentif str(PROJECT_ROOT) not in sys.path:sys.path.insert(0, str(PROJECT_ROOT))++def _resolve_python() -> str:+ """Return a validated path to the current Python interpreter.++ ``sys.executable`` can be empty or point to a non-existent path on+ some platforms (notably Windows with Python 3.14+). This helper+ resolves the real path first, then falls back to ``shutil.which``.+ """+ exe = sys.executable+ if exe:+ resolved = str(Path(exe).resolve())+ if Path(resolved).exists():+ return resolved+ if Path(exe).exists():+ return exe+ for name in ("python3", "python"):+ found = shutil.which(name)+ if found:+ return found+ return exe or "python3"+++_PYTHON: str = _resolve_python()+# ---------------------------------------------------------------------------# Bootstrap: ensure minimum packages required to import project modules# ---------------------------------------------------------------------------@@ -33,7 +57,7 @@ def _bootstrap() -> None:returnprint(f" Installing bootstrap dependencies: {', '.join(missing)} ...")subprocess.check_call(- [sys.executable, "-m", "pip", "install", *missing, "-q"],+ [_PYTHON, "-m", "pip", "install", *missing, "-q"],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL,)@@ -350,10 +374,10 @@ def _install_commands(cmds: list[tuple[list[str], Path]] = []for req in PROFILE_COMMANDS[profile]:- cmds.append(([sys.executable, "-m", "pip", "install", "-r", req], PROJECT_ROOT))+ cmds.append(([_PYTHON, "-m", "pip", "install", "-r", req], PROJECT_ROOT))if include_math_animator:- cmds.append(([sys.executable, "-m", "pip", "install", "-r", MATH_ANIMATOR_REQUIREMENTS], PROJECT_ROOT))- cmds.append(([sys.executable, "-m", "pip", "install", "-e", ".", "--no-deps"], PROJECT_ROOT))+ cmds.append(([_PYTHON, "-m", "pip", "install", "-r", MATH_ANIMATOR_REQUIREMENTS], PROJECT_ROOT))+ cmds.append(([_PYTHON, "-m", "pip", "install", "-e", ".", "--no-deps"], PROJECT_ROOT))if profile.startswith("web"):cmds.append((["npm", "install"], PROJECT_ROOT / "web"))# Provider SDKs are now bundled in cli.txt, no separate install needed.@@ -653,7 +677,7 @@ def _run_web_tour() -> None:frontend_env = os.environ.copy()frontend_env["NEXT_PUBLIC_API_BASE"] = f"http://localhost:{ports['backend']}"- backend_cmd = [sys.executable, "-m", "deeptutor.api.run_server"]+ backend_cmd = [_PYTHON, "-m", "deeptutor.api.run_server"]frontend_cmd = [npm, "run", "dev", "--", "--port", str(ports["frontend"])]log_info("Starting temporary server ...")@@ -714,7 +738,7 @@ def _run_web_tour() -> None:countdown(remaining, "Launching in")print()- os.execvp(sys.executable, [sys.executable, str(PROJECT_ROOT / "scripts" / "start_web.py")])+ os.execvp(_PYTHON, [_PYTHON, str(PROJECT_ROOT / "scripts" / "start_web.py")])# ===================================================================diff --git a/tests/api/test_notebook_router.py b/tests/api/test_notebook_router.pynew file mode 100644index 000000000..ec1b406d0--- /dev/null+++ b/tests/api/test_notebook_router.py@@ -0,0 +1,206 @@+from __future__ import annotations++import asyncio+import importlib+from pathlib import Path++import pytest++pytest.importorskip("fastapi")++FastAPI = pytest.importorskip("fastapi").FastAPI+TestClient = pytest.importorskip("fastapi.testclient").TestClient+notebook_router = importlib.import_module(+ "deeptutor.api.routers.question_notebook"+).router+sessions_router = importlib.import_module("deeptutor.api.routers.sessions").router++from deeptutor.services.session.sqlite_store import SQLiteSessionStore+++def _build_app(store: SQLiteSessionStore) -> FastAPI:+ app = FastAPI()+ app.include_router(notebook_router, prefix="/api/v1/question-notebook")+ app.include_router(sessions_router, prefix="/api/v1/sessions")+ return app+++def store(tmp_path: Path, monkeypatch) -> SQLiteSessionStore:+ instance = SQLiteSessionStore(db_path=tmp_path / "router-test.db")+ monkeypatch.setattr(+ "deeptutor.api.routers.question_notebook.get_sqlite_session_store",+ lambda: instance,+ )+ monkeypatch.setattr(+ "deeptutor.api.routers.sessions.get_sqlite_session_store",+ lambda: instance,+ )+ return instance+++def _quiz_answers():+ return [+ {+ "question_id": "q1",+ "question": "Capital of France?",+ "question_type": "choice",+ "options": {"A": "Berlin", "B": "Paris"},+ "user_answer": "A",+ "correct_answer": "B",+ "explanation": "Paris is the capital.",+ "difficulty": "easy",+ "is_correct": False,+ },+ {+ "question_id": "q2",+ "question": "2+2?",+ "question_type": "choice",+ "options": {"A": "3", "B": "4"},+ "user_answer": "B",+ "correct_answer": "B",+ "is_correct": True,+ },+ ]+++def test_list_entries_empty(store: SQLiteSessionStore) -> None:+ with TestClient(_build_app(store)) as client:+ resp = client.get("/api/v1/question-notebook/entries")+ assert resp.status_code == 200+ assert resp.json() == {"items": [], "total": 0}+++def test_quiz_results_populates_notebook(store: SQLiteSessionStore) -> None:+ session = asyncio.run(store.create_session(title="Quiz Session"))+ sid = session["id"]++ with TestClient(_build_app(store)) as client:+ resp = client.post(+ f"/api/v1/sessions/{sid}/quiz-results",+ json={"answers": _quiz_answers()},+ )+ assert resp.status_code == 200+ body = resp.json()+ assert body["recorded"] is True+ assert body["notebook_count"] == 2+ assert "[Quiz Performance]" in body["content"]++ listing = client.get("/api/v1/question-notebook/entries")+ assert listing.status_code == 200+ items = listing.json()["items"]+ assert len(items) == 2+++def test_quiz_results_upserts_on_retry(store: SQLiteSessionStore) -> None:+ session = asyncio.run(store.create_session())+ sid = session["id"]++ with TestClient(_build_app(store)) as client:+ client.post(f"/api/v1/sessions/{sid}/quiz-results", json={"answers": _quiz_answers()})+ updated = _quiz_answers()+ updated[0]["user_answer"] = "B"+ updated[0]["is_correct"] = True+ client.post(f"/api/v1/sessions/{sid}/quiz-results", json={"answers": updated})++ listing = client.get("/api/v1/question-notebook/entries").json()+ assert listing["total"] == 2+ q1 = next(e for e in listing["items"] if e["question_id"] == "q1")+ assert q1["is_correct"] is True+ assert q1["user_answer"] == "B"+++def test_bookmark_toggle(store: SQLiteSessionStore) -> None:+ session = asyncio.run(store.create_session())+ asyncio.run(store.upsert_notebook_entries(session["id"], [{+ "question_id": "q1", "question": "Q?", "is_correct": False,+ }]))+ eid = asyncio.run(store.list_notebook_entries())["items"][0]["id"]++ with TestClient(_build_app(store)) as client:+ resp = client.patch(+ f"/api/v1/question-notebook/entries/{eid}",+ json={"bookmarked": True},+ )+ assert resp.status_code == 200++ bm = client.get("/api/v1/question-notebook/entries?bookmarked=true").json()+ assert bm["total"] == 1++ client.patch(f"/api/v1/question-notebook/entries/{eid}", json={"bookmarked": False})+ bm2 = client.get("/api/v1/question-notebook/entries?bookmarked=true").json()+ assert bm2["total"] == 0+++def test_delete_entry(store: SQLiteSessionStore) -> None:+ session = asyncio.run(store.create_session())+ asyncio.run(store.upsert_notebook_entries(session["id"], [{+ "question_id": "q1", "question": "Q?", "is_correct": False,+ }]))+ eid = asyncio.run(store.list_notebook_entries())["items"][0]["id"]++ with TestClient(_build_app(store)) as client:+ assert client.delete(f"/api/v1/question-notebook/entries/{eid}").status_code == 200+ assert client.delete(f"/api/v1/question-notebook/entries/{eid}").status_code == 404+++def test_category_crud_and_association(store: SQLiteSessionStore) -> None:+ session = asyncio.run(store.create_session())+ asyncio.run(store.upsert_notebook_entries(session["id"], [{+ "question_id": "q1", "question": "Q?", "is_correct": False,+ }]))+ eid = asyncio.run(store.list_notebook_entries())["items"][0]["id"]++ with TestClient(_build_app(store)) as client:+ cat_resp = client.post(+ "/api/v1/question-notebook/categories",+ json={"name": "Math"},+ )+ assert cat_resp.status_code == 201+ cat_id = cat_resp.json()["id"]++ cats = client.get("/api/v1/question-notebook/categories").json()+ assert len(cats) == 1+ assert cats[0]["name"] == "Math"++ add_resp = client.post(+ f"/api/v1/question-notebook/entries/{eid}/categories",+ json={"category_id": cat_id},+ )+ assert add_resp.status_code == 200++ by_cat = client.get(f"/api/v1/question-notebook/entries?category_id={cat_id}").json()+ assert by_cat["total"] == 1++ rm_resp = client.delete(f"/api/v1/question-notebook/entries/{eid}/categories/{cat_id}")+ assert rm_resp.status_code == 200+ by_cat2 = client.get(f"/api/v1/question-notebook/entries?category_id={cat_id}").json()+ assert by_cat2["total"] == 0++ client.patch(f"/api/v1/question-notebook/categories/{cat_id}", json={"name": "Algebra"})+ cats2 = client.get("/api/v1/question-notebook/categories").json()+ assert cats2[0]["name"] == "Algebra"++ client.delete(f"/api/v1/question-notebook/categories/{cat_id}")+ assert client.get("/api/v1/question-notebook/categories").json() == []+++def test_lookup_entry_by_question(store: SQLiteSessionStore) -> None:+ session = asyncio.run(store.create_session())+ asyncio.run(store.upsert_notebook_entries(session["id"], [{+ "question_id": "q1", "question": "Q?", "is_correct": False,+ }]))++ with TestClient(_build_app(store)) as client:+ resp = client.get(+ "/api/v1/question-notebook/entries/lookup/by-question",+ params={"session_id": session["id"], "question_id": "q1"},+ )+ assert resp.status_code == 200+ assert resp.json()["question_id"] == "q1"++ resp404 = client.get(+ "/api/v1/question-notebook/entries/lookup/by-question",+ params={"session_id": session["id"], "question_id": "nope"},+ )+ assert resp404.status_code == 404diff --git a/tests/api/test_wrong_answers_router.py b/tests/api/test_wrong_answers_router.pydeleted file mode 100644index 95f518541..000000000--- a/tests/api/test_wrong_answers_router.py+++ /dev/null@@ -1,191 +0,0 @@-from __future__ import annotations--import importlib-from pathlib import Path--import pytest--pytest.importorskip("fastapi")--FastAPI = pytest.importorskip("fastapi").FastAPI-TestClient = pytest.importorskip("fastapi.testclient").TestClient-wrong_answers_router = importlib.import_module(- "deeptutor.api.routers.wrong_answers"-).router-sessions_router = importlib.import_module("deeptutor.api.routers.sessions").router--from deeptutor.services.session.sqlite_store import SQLiteSessionStore---def _build_app(store: SQLiteSessionStore) -> FastAPI:- app = FastAPI()- app.include_router(wrong_answers_router, prefix="/api/v1/wrong-answers")- app.include_router(sessions_router, prefix="/api/v1/sessions")- return app---def store(tmp_path: Path, monkeypatch) -> SQLiteSessionStore:- instance = SQLiteSessionStore(db_path=tmp_path / "router-test.db")- monkeypatch.setattr(- "deeptutor.api.routers.wrong_answers.get_sqlite_session_store",- lambda: instance,- )- monkeypatch.setattr(- "deeptutor.api.routers.sessions.get_sqlite_session_store",- lambda: instance,- )- return instance---def test_list_wrong_answers_empty(store: SQLiteSessionStore) -> None:- with TestClient(_build_app(store)) as client:- response = client.get("/api/v1/wrong-answers")- assert response.status_code == 200- payload = response.json()- assert payload == {"items": [], "total": 0}---def test_record_quiz_results_populates_wrong_answers(- store: SQLiteSessionStore,-) -> None:- import asyncio-- session = asyncio.run(store.create_session(title="Quiz Session"))- session_id = session["id"]-- with TestClient(_build_app(store)) as client:-- resp = client.post(- f"/api/v1/sessions/{session_id}/quiz-results",- json={- "answers": [- {- "question_id": "q1",- "question": "Capital of France?",- "user_answer": "Berlin",- "correct_answer": "Paris",- "is_correct": False,- },- {- "question_id": "q2",- "question": "2+2?",- "user_answer": "4",- "correct_answer": "4",- "is_correct": True,- },- ]- },- )- assert resp.status_code == 200- body = resp.json()- assert body["recorded"] is True- assert body["answer_count"] == 2- assert body["wrong_answer_count"] == 1- # Regression: the formatted text message is still added.- assert "[Quiz Performance]" in body["content"]-- listing = client.get("/api/v1/wrong-answers")- assert listing.status_code == 200- items = listing.json()["items"]- assert len(items) == 1- assert items[0]["question_id"] == "q1"- assert items[0]["resolved"] is False- assert items[0]["session_title"] == "Quiz Session"---def test_update_wrong_answer_resolved_endpoint(- store: SQLiteSessionStore,-) -> None:- import asyncio-- session = asyncio.run(store.create_session())- asyncio.run(- store.add_wrong_answers(- session["id"],- [{"question": "Q?", "is_correct": False}],- )- )- rows = asyncio.run(store.list_wrong_answers())- row_id = rows[0]["id"]-- with TestClient(_build_app(store)) as client:- resp = client.patch(- f"/api/v1/wrong-answers/{row_id}",- json={"resolved": True},- )- assert resp.status_code == 200- assert resp.json() == {- "updated": True,- "id": row_id,- "resolved": True,- }-- listing = client.get(- "/api/v1/wrong-answers", params={"resolved": "false"}- )- assert listing.json()["items"] == []-- not_found = client.patch(- "/api/v1/wrong-answers/99999",- json={"resolved": True},- )- assert not_found.status_code == 404---def test_delete_wrong_answer_endpoint(store: SQLiteSessionStore) -> None:- import asyncio-- session = asyncio.run(store.create_session())- asyncio.run(- store.add_wrong_answers(- session["id"],- [{"question": "Q?", "is_correct": False}],- )- )- row_id = asyncio.run(store.list_wrong_answers())[0]["id"]-- with TestClient(_build_app(store)) as client:- resp = client.delete(f"/api/v1/wrong-answers/{row_id}")- assert resp.status_code == 200- assert resp.json() == {"deleted": True, "id": row_id}-- missing = client.delete(f"/api/v1/wrong-answers/{row_id}")- assert missing.status_code == 404---def test_list_wrong_answers_filter_by_resolved(- store: SQLiteSessionStore,-) -> None:- import asyncio-- session = asyncio.run(store.create_session())- asyncio.run(- store.add_wrong_answers(- session["id"],- [- {"question": "Q1", "is_correct": False},- {"question": "Q2", "is_correct": False},- ],- )- )- rows = asyncio.run(store.list_wrong_answers())- asyncio.run(store.update_wrong_answer_resolved(rows[0]["id"], True))-- with TestClient(_build_app(store)) as client:- all_resp = client.get("/api/v1/wrong-answers").json()- assert all_resp["total"] == 2- assert len(all_resp["items"]) == 2-- unresolved = client.get(- "/api/v1/wrong-answers", params={"resolved": "false"}- ).json()- assert unresolved["total"] == 1- assert len(unresolved["items"]) == 1- assert unresolved["items"][0]["resolved"] is False-- resolved = client.get(- "/api/v1/wrong-answers", params={"resolved": "true"}- ).json()- assert resolved["total"] == 1- assert resolved["items"][0]["resolved"] is Truediff --git a/tests/scripts/test_start_tour.py b/tests/scripts/test_start_tour.pyindex 26e0341b1..94cdccce2 100644--- a/tests/scripts/test_start_tour.py+++ b/tests/scripts/test_start_tour.py@@ -3,8 +3,10 @@ from __future__ import annotationsimport importlib.utilimport localefrom pathlib import Path+import shutilimport sysimport types+from unittest import mockdef _load_start_tour_module():@@ -71,3 +73,70 @@ def test_stream_text_kwargs_use_best_effort_decoding() -> None:assert kwargs["text"] is Trueassert kwargs["errors"] == "replace"assert kwargs["encoding"] == locale.getpreferredencoding(False)+++# ---------------------------------------------------------------------------+# _resolve_python tests (issue #289 โ Python 3.14+ compatibility)+# ---------------------------------------------------------------------------++def _get_resolve_python():+ """Import _resolve_python without triggering full module load."""+ start_tour = _load_start_tour_module()+ return start_tour._resolve_python+++class TestResolvePython:+ """Verify _resolve_python handles broken sys.executable gracefully."""++ def test_returns_resolved_path_when_executable_exists(self) -> None:+ resolve = _get_resolve_python()+ real_python = sys.executable+ with mock.patch("sys.executable", real_python):+ result = resolve()+ assert Path(result).exists()++ def test_falls_back_to_shutil_which_when_executable_missing(self) -> None:+ """Simulates Python 3.14+ on Windows where sys.executable is bogus."""+ resolve = _get_resolve_python()+ fake_path = "/nonexistent/python3.14"+ expected = shutil.which("python3") or shutil.which("python") or "python3"+ with mock.patch("sys.executable", fake_path):+ result = resolve()+ assert result == expected++ def test_falls_back_when_executable_is_empty(self) -> None:+ """sys.executable can be '' in embedded or frozen environments."""+ resolve = _get_resolve_python()+ expected = shutil.which("python3") or shutil.which("python") or "python3"+ with mock.patch("sys.executable", ""):+ result = resolve()+ assert result == expected++ def test_ultimate_fallback_when_nothing_found(self) -> None:+ """If sys.executable is empty and PATH has no python, return 'python3'."""+ resolve = _get_resolve_python()+ with (+ mock.patch("sys.executable", ""),+ mock.patch("shutil.which", return_value=None),+ ):+ result = resolve()+ assert result == "python3"++ def test_preserves_valid_sys_executable(self) -> None:+ """Normal case: sys.executable points to a real file."""+ resolve = _get_resolve_python()+ result = resolve()+ assert Path(result).exists()+ assert "python" in Path(result).name.lower()++ def test_install_commands_use_resolved_python(self) -> None:+ """_install_commands should embed _PYTHON, not raw sys.executable."""+ start_tour = _load_start_tour_module()+ python_used = start_tour._PYTHON+ catalog: dict = {"services": {}}+ cmds = start_tour._install_commands("cli-core", catalog)+ for cmd, _cwd in cmds:+ if cmd[0] != "npm":+ assert cmd[0] == python_used, (+ f"Expected resolved python {python_used!r}, got {cmd[0]!r}"+ )diff --git a/tests/services/session/test_sqlite_store.py b/tests/services/session/test_sqlite_store.pyindex 2728103e0..5a33654ab 100644--- a/tests/services/session/test_sqlite_store.py+++ b/tests/services/session/test_sqlite_store.py@@ -56,164 +56,180 @@ def store(tmp_path: Path) -> SQLiteSessionStore:return SQLiteSessionStore(db_path=tmp_path / "test.db")-def _run(coro):- return asyncio.get_event_loop().run_until_complete(coro) if False else asyncio.run(coro)---def test_add_wrong_answers_only_persists_incorrect(store: SQLiteSessionStore) -> None:- session = _run(store.create_session(title="Test"))- session_id = session["id"]-- items = [- {- "question_id": "q1",- "question": "What is 2+2?",- "user_answer": "5",- "correct_answer": "4",- "is_correct": False,- },- {- "question_id": "q2",- "question": "What is 3+3?",- "user_answer": "6",- "correct_answer": "6",- "is_correct": True,- },- {- "question_id": "q3",- "question": "What is 5+5?",- "user_answer": "9",- "correct_answer": "10",- "is_correct": False,- },- ]-- inserted = _run(store.add_wrong_answers(session_id, items))- assert inserted == 2-- listed = _run(store.list_wrong_answers())- assert len(listed) == 2- question_ids = {row["question_id"] for row in listed}- assert question_ids == {"q1", "q3"}- assert all(row["resolved"] is False for row in listed)- assert all(row["session_title"] == "Test" for row in listed)---def test_add_wrong_answers_skips_blank_questions(store: SQLiteSessionStore) -> None:- session = _run(store.create_session())+def _make_items(*specs):+ """Build notebook entry dicts from (qid, question, is_correct) tuples."""+ items = []+ for qid, question, is_correct in specs:+ items.append({+ "question_id": qid,+ "question": question,+ "question_type": "choice",+ "options": {"A": "opt_a", "B": "opt_b"},+ "user_answer": "A",+ "correct_answer": "B",+ "explanation": "expl",+ "difficulty": "medium",+ "is_correct": is_correct,+ })+ return items+++# โโ Notebook entries โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ++def test_upsert_notebook_entries_persists_all(store: SQLiteSessionStore) -> None:+ session = asyncio.run(store.create_session(title="Test"))+ items = _make_items(("q1", "2+2?", False), ("q2", "3+3?", True), ("q3", "5+5?", False))+ upserted = asyncio.run(store.upsert_notebook_entries(session["id"], items))+ assert upserted == 3+ result = asyncio.run(store.list_notebook_entries())+ assert result["total"] == 3+ assert all(e["session_title"] == "Test" for e in result["items"])+++def test_upsert_notebook_entries_updates_on_conflict(store: SQLiteSessionStore) -> None:+ session = asyncio.run(store.create_session())+ sid = session["id"]+ asyncio.run(store.upsert_notebook_entries(sid, _make_items(("q1", "Q?", False))))+ result = asyncio.run(store.list_notebook_entries())+ assert result["items"][0]["is_correct"] is False++ asyncio.run(store.upsert_notebook_entries(sid, [{+ "question_id": "q1", "question": "Q?", "user_answer": "B",+ "correct_answer": "B", "is_correct": True,+ }]))+ result = asyncio.run(store.list_notebook_entries())+ assert result["total"] == 1+ assert result["items"][0]["is_correct"] is True+ assert result["items"][0]["user_answer"] == "B"+++def test_upsert_skips_blank_questions(store: SQLiteSessionStore) -> None:+ session = asyncio.run(store.create_session())items = [- {"question": "", "is_correct": False},- {"question": " ", "is_correct": False},- {"question": "Valid?", "is_correct": False},+ {"question_id": "q1", "question": "", "is_correct": False},+ {"question_id": "", "question": "Valid?", "is_correct": False},+ {"question_id": "q3", "question": "OK?", "is_correct": False},]- inserted = _run(store.add_wrong_answers(session["id"], items))- assert inserted == 1+ upserted = asyncio.run(store.upsert_notebook_entries(session["id"], items))+ assert upserted == 1-def test_add_wrong_answers_unknown_session_raises(store: SQLiteSessionStore) -> None:+def test_upsert_unknown_session_raises(store: SQLiteSessionStore) -> None:with pytest.raises(ValueError, match="Session not found"):- _run(- store.add_wrong_answers(- "does_not_exist",- [{"question": "Q?", "is_correct": False}],- )- )---def test_list_wrong_answers_filters_by_resolved(store: SQLiteSessionStore) -> None:- session = _run(store.create_session())- session_id = session["id"]- _run(- store.add_wrong_answers(- session_id,- [- {"question": "Q1", "is_correct": False},- {"question": "Q2", "is_correct": False},- ],- )- )- listed = _run(store.list_wrong_answers())- first_id = listed[0]["id"]- _run(store.update_wrong_answer_resolved(first_id, True))-- unresolved = _run(store.list_wrong_answers(resolved=False))- resolved = _run(store.list_wrong_answers(resolved=True))- all_rows = _run(store.list_wrong_answers())-- assert len(unresolved) == 1- assert unresolved[0]["id"] != first_id- assert len(resolved) == 1- assert resolved[0]["id"] == first_id- assert resolved[0]["resolved"] is True- assert resolved[0]["resolved_at"] is not None- assert len(all_rows) == 2---def test_count_wrong_answers(store: SQLiteSessionStore) -> None:- session = _run(store.create_session())- _run(- store.add_wrong_answers(- session["id"],- [- {"question": "Q1", "is_correct": False},- {"question": "Q2", "is_correct": False},- {"question": "Q3", "is_correct": True},- ],- )- )- assert _run(store.count_wrong_answers()) == 2- assert _run(store.count_wrong_answers(resolved=False)) == 2- assert _run(store.count_wrong_answers(resolved=True)) == 0---def test_update_wrong_answer_resolved_roundtrip(store: SQLiteSessionStore) -> None:- session = _run(store.create_session())- _run(- store.add_wrong_answers(- session["id"],- [{"question": "Q?", "is_correct": False}],- )- )- rows = _run(store.list_wrong_answers())- row_id = rows[0]["id"]-- assert _run(store.update_wrong_answer_resolved(row_id, True)) is True- assert _run(store.list_wrong_answers())[0]["resolved"] is True-- assert _run(store.update_wrong_answer_resolved(row_id, False)) is True- resurrected = _run(store.list_wrong_answers())[0]- assert resurrected["resolved"] is False- assert resurrected["resolved_at"] is None-- assert _run(store.update_wrong_answer_resolved(99999, True)) is False---def test_delete_wrong_answer(store: SQLiteSessionStore) -> None:- session = _run(store.create_session())- _run(- store.add_wrong_answers(- session["id"],- [- {"question": "Q1", "is_correct": False},- {"question": "Q2", "is_correct": False},- ],- )- )- rows = _run(store.list_wrong_answers())- first_id = rows[0]["id"]- assert _run(store.delete_wrong_answer(first_id)) is True- assert len(_run(store.list_wrong_answers())) == 1- assert _run(store.delete_wrong_answer(99999)) is False---def test_wrong_answers_cascade_on_session_delete(store: SQLiteSessionStore) -> None:- session = _run(store.create_session())- _run(- store.add_wrong_answers(- session["id"],- [{"question": "Q?", "is_correct": False}],- )- )- assert len(_run(store.list_wrong_answers())) == 1- _run(store.delete_session(session["id"]))- assert _run(store.list_wrong_answers()) == []+ asyncio.run(store.upsert_notebook_entries("nope", _make_items(("q1", "Q?", False))))+++def test_list_entries_filters_bookmarked(store: SQLiteSessionStore) -> None:+ session = asyncio.run(store.create_session())+ asyncio.run(store.upsert_notebook_entries(session["id"], _make_items(+ ("q1", "Q1?", False), ("q2", "Q2?", True),+ )))+ entries = asyncio.run(store.list_notebook_entries())["items"]+ asyncio.run(store.update_notebook_entry(entries[0]["id"], {"bookmarked": True}))+ bm = asyncio.run(store.list_notebook_entries(bookmarked=True))+ assert bm["total"] == 1+ assert bm["items"][0]["bookmarked"] is True+++def test_list_entries_filters_is_correct(store: SQLiteSessionStore) -> None:+ session = asyncio.run(store.create_session())+ asyncio.run(store.upsert_notebook_entries(session["id"], _make_items(+ ("q1", "Q1?", False), ("q2", "Q2?", True),+ )))+ wrong = asyncio.run(store.list_notebook_entries(is_correct=False))+ assert wrong["total"] == 1+ assert wrong["items"][0]["question_id"] == "q1"+++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))))+ eid = asyncio.run(store.list_notebook_entries())["items"][0]["id"]+ assert asyncio.run(store.update_notebook_entry(eid, {"bookmarked": True})) is True+ assert asyncio.run(store.get_notebook_entry(eid))["bookmarked"] is True+ assert asyncio.run(store.update_notebook_entry(eid, {"bookmarked": False})) is True+ assert asyncio.run(store.get_notebook_entry(eid))["bookmarked"] is False+ assert asyncio.run(store.update_notebook_entry(99999, {"bookmarked": True})) is False+++def test_update_followup_session_id(store: SQLiteSessionStore) -> None:+ session = asyncio.run(store.create_session())+ asyncio.run(store.upsert_notebook_entries(session["id"], _make_items(("q1", "Q?", False))))+ eid = asyncio.run(store.list_notebook_entries())["items"][0]["id"]+ asyncio.run(store.update_notebook_entry(eid, {"followup_session_id": "sess_fu"}))+ entry = asyncio.run(store.get_notebook_entry(eid))+ assert entry["followup_session_id"] == "sess_fu"+++def test_find_notebook_entry(store: SQLiteSessionStore) -> None:+ session = asyncio.run(store.create_session())+ asyncio.run(store.upsert_notebook_entries(session["id"], _make_items(("q1", "Q?", False))))+ found = asyncio.run(store.find_notebook_entry(session["id"], "q1"))+ assert found is not None+ assert found["question_id"] == "q1"+ assert asyncio.run(store.find_notebook_entry(session["id"], "nope")) is None+++def test_delete_notebook_entry(store: SQLiteSessionStore) -> None:+ session = asyncio.run(store.create_session())+ asyncio.run(store.upsert_notebook_entries(session["id"], _make_items(+ ("q1", "Q1?", False), ("q2", "Q2?", False),+ )))+ eid = asyncio.run(store.list_notebook_entries())["items"][0]["id"]+ assert asyncio.run(store.delete_notebook_entry(eid)) is True+ assert asyncio.run(store.list_notebook_entries())["total"] == 1+ assert asyncio.run(store.delete_notebook_entry(99999)) is False+++def test_entries_cascade_on_session_delete(store: SQLiteSessionStore) -> None:+ session = asyncio.run(store.create_session())+ asyncio.run(store.upsert_notebook_entries(session["id"], _make_items(("q1", "Q?", False))))+ assert asyncio.run(store.list_notebook_entries())["total"] == 1+ asyncio.run(store.delete_session(session["id"]))+ assert asyncio.run(store.list_notebook_entries())["total"] == 0+++# โโ Categories โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ++def test_category_crud(store: SQLiteSessionStore) -> None:+ cat = asyncio.run(store.create_category("Math"))+ assert cat["name"] == "Math"+ cats = asyncio.run(store.list_categories())+ assert len(cats) == 1+ assert cats[0]["entry_count"] == 0++ asyncio.run(store.rename_category(cat["id"], "Algebra"))+ cats = asyncio.run(store.list_categories())+ assert cats[0]["name"] == "Algebra"++ asyncio.run(store.delete_category(cat["id"]))+ assert asyncio.run(store.list_categories()) == []+++def test_entry_category_association(store: SQLiteSessionStore) -> None:+ session = asyncio.run(store.create_session())+ asyncio.run(store.upsert_notebook_entries(session["id"], _make_items(("q1", "Q?", False))))+ eid = asyncio.run(store.list_notebook_entries())["items"][0]["id"]+ cat = asyncio.run(store.create_category("Physics"))++ assert asyncio.run(store.add_entry_to_category(eid, cat["id"])) is True+ entry = asyncio.run(store.get_notebook_entry(eid))+ assert len(entry["categories"]) == 1+ assert entry["categories"][0]["name"] == "Physics"++ by_cat = asyncio.run(store.list_notebook_entries(category_id=cat["id"]))+ assert by_cat["total"] == 1++ asyncio.run(store.remove_entry_from_category(eid, cat["id"]))+ assert asyncio.run(store.get_entry_categories(eid)) == []+++def test_category_cascade_on_entry_delete(store: SQLiteSessionStore) -> None:+ session = asyncio.run(store.create_session())+ asyncio.run(store.upsert_notebook_entries(session["id"], _make_items(("q1", "Q?", False))))+ eid = asyncio.run(store.list_notebook_entries())["items"][0]["id"]+ cat = asyncio.run(store.create_category("History"))+ asyncio.run(store.add_entry_to_category(eid, cat["id"]))+ asyncio.run(store.delete_notebook_entry(eid))+ cats = asyncio.run(store.list_categories())+ assert cats[0]["entry_count"] == 0diff --git a/web/app/(utility)/knowledge/page.tsx b/web/app/(utility)/knowledge/page.tsxindex 3657eba1a..f35cb8a9d 100644--- a/web/app/(utility)/knowledge/page.tsx+++ b/web/app/(utility)/knowledge/page.tsx@@ -1,27 +1,34 @@"use client";import dynamic from "next/dynamic";-import { useEffect, useMemo, useRef, useState } from "react";-import { useRouter } from "next/navigation";+import Link from "next/link";+import { Suspense, useCallback, useEffect, useMemo, useRef, useState } from "react";+import { useRouter, useSearchParams } from "next/navigation";import { useTranslation } from "react-i18next";import {+ AlertTriangle,ArrowRight,+ Bookmark,BookOpen,ChevronDown,ChevronRight,+ ClipboardList,Database,ExternalLink,FileUp,+ FolderOpen,GraduationCap,Loader2,MessageSquare,NotebookPen,+ Pencil,PenLine,Plus,Search,Star,Trash2,Upload,+ X,} from "lucide-react";import { apiUrl, wsUrl } from "@/lib/api";import {@@ -30,9 +37,16 @@ import {listRagProviders,} from "@/lib/knowledge-api";import {- getNotebookDetail,- invalidateNotebookCaches,- listNotebooks,+ listCategories,+ listNotebookEntries,+ createCategory,+ deleteCategory,+ renameCategory,+ updateNotebookEntry,+ deleteNotebookEntry,+ removeEntryFromCategory,+ type NotebookEntry,+ type NotebookCategory,} from "@/lib/notebook-api";const MarkdownRenderer = dynamic(() => import("@/components/common/MarkdownRenderer"), {@@ -127,10 +141,14 @@ const kbNeedsReindex = (kb: KnowledgeBase): boolean =>const kbIsUploadable = (kb: KnowledgeBase): boolean =>resolveKbStatus(kb) === "ready" && !kbNeedsReindex(kb);-export default function KnowledgePage() {+type TabKey = "knowledge" | "notebooks" | "questions";++function KnowledgePageContent() {const router = useRouter();+ const searchParams = useSearchParams();const { t } = useTranslation();- const [tab, setTab] = useState<"knowledge" | "notebooks">("knowledge");+ const initialTab = (searchParams.get("tab") as TabKey) || "knowledge";+ const [tab, setTab] = useState<TabKey>(initialTab);const [knowledgeBases, setKnowledgeBases] = useState<KnowledgeBase[]>([]);const [notebooks, setNotebooks] = useState<NotebookInfo[]>([]);const [providers, setProviders] = useState<RAGProvider[]>([]);@@ -160,6 +178,131 @@ export default function KnowledgePage() {const createFileRef = useRef<HTMLInputElement>(null);const uploadFileRef = useRef<HTMLInputElement>(null);+ // โโ Question Notebook state โโ+ type QFilterMode = "all" | "bookmarked" | "wrong";+ const [qItems, setQItems] = useState<NotebookEntry[]>([]);+ const [qTotal, setQTotal] = useState(0);+ const [qLoading, setQLoading] = useState(true);+ const [qError, setQError] = useState<string | null>(null);+ const [qRefreshing, setQRefreshing] = useState(false);+ const [qFilter, setQFilter] = useState<QFilterMode>("all");+ const [qActiveCategoryId, setQActiveCategoryId] = useState<number | null>(null);+ const [qCategories, setQCategories] = useState<NotebookCategory[]>([]);+ const [qPendingId, setQPendingId] = useState<number | null>(null);+ const [qShowCategoryManager, setQShowCategoryManager] = useState(false);+ const [qNewCatName, setQNewCatName] = useState("");+ const [qRenamingCat, setQRenamingCat] = useState<{ id: number; name: string } | null>(null);++ // โโ Question Notebook handlers โโ+ const loadQCategories = useCallback(async () => {+ try { setQCategories(await listCategories()); } catch { /* ignore */ }+ }, []);++ const loadQItems = useCallback(+ async (mode: QFilterMode, catId: number | null) => {+ setQRefreshing(true);+ setQError(null);+ try {+ const response = await listNotebookEntries({+ bookmarked: mode === "bookmarked" ? true : undefined,+ is_correct: mode === "wrong" ? false : undefined,+ category_id: catId ?? undefined,+ limit: 200,+ });+ setQItems(response.items);+ setQTotal(response.total);+ } catch (err) {+ setQError(String(err instanceof Error ? err.message : err));+ } finally {+ setQLoading(false);+ setQRefreshing(false);+ }+ },+ [],+ );++ const handleQToggleBookmark = useCallback(+ async (item: NotebookEntry) => {+ const next = !item.bookmarked;+ setQPendingId(item.id);+ try {+ await updateNotebookEntry(item.id, { bookmarked: next });+ setQItems((prev) =>+ qFilter === "bookmarked" && !next+ ? prev.filter((e) => e.id !== item.id)+ : prev.map((e) => (e.id === item.id ? { ...e, bookmarked: next } : e)),+ );+ if (qFilter === "bookmarked" && !next) setQTotal((p) => Math.max(0, p - 1));+ } catch { /* ignore */ }+ setQPendingId(null);+ },+ [qFilter],+ );++ const handleQDelete = useCallback(+ async (item: NotebookEntry) => {+ if (!window.confirm(t("Delete this entry?"))) return;+ setQPendingId(item.id);+ try {+ await deleteNotebookEntry(item.id);+ setQItems((prev) => prev.filter((e) => e.id !== item.id));+ setQTotal((p) => Math.max(0, p - 1));+ } catch { /* ignore */ }+ setQPendingId(null);+ },+ [t],+ );++ const handleQRemoveFromCategory = useCallback(+ async (item: NotebookEntry) => {+ if (qActiveCategoryId === null) return;+ setQPendingId(item.id);+ try {+ await removeEntryFromCategory(item.id, qActiveCategoryId);+ setQItems((prev) => prev.filter((e) => e.id !== item.id));+ setQTotal((p) => Math.max(0, p - 1));+ } catch { /* ignore */ }+ setQPendingId(null);+ },+ [qActiveCategoryId],+ );++ const handleQCreateCategory = useCallback(async () => {+ if (!qNewCatName.trim()) return;+ try {+ await createCategory(qNewCatName.trim());+ setQNewCatName("");+ await loadQCategories();+ } catch { /* ignore */ }+ }, [loadQCategories, qNewCatName]);++ const handleQRenameCategory = useCallback(async () => {+ if (!qRenamingCat || !qRenamingCat.name.trim()) return;+ try {+ await renameCategory(qRenamingCat.id, qRenamingCat.name.trim());+ setQRenamingCat(null);+ await loadQCategories();+ } catch { /* ignore */ }+ }, [loadQCategories, qRenamingCat]);++ const handleQDeleteCategory = useCallback(+ async (catId: number) => {+ if (!window.confirm(t("Delete this category?"))) return;+ try {+ await deleteCategory(catId);+ if (qActiveCategoryId === catId) setQActiveCategoryId(null);+ await loadQCategories();+ } catch { /* ignore */ }+ },+ [qActiveCategoryId, loadQCategories, t],+ );++ const Q_FILTERS: { mode: QFilterMode; label: string }[] = [+ { mode: "all", label: "All" },+ { mode: "bookmarked", label: "Bookmarked" },+ { mode: "wrong", label: "Wrong Only" },+ ];+const getProcessSetter = (kind: ProcessKind) =>kind === "create" ? setCreateProcess : setUploadProcess;@@ -254,10 +397,10 @@ export default function KnowledgePage() {setLoading(true);setPageError(null);try {- const [kbs, providerData, nextNotebooks] = await Promise.all([+ const [kbs, providerData, cats] = await Promise.all([listKnowledgeBases(),listRagProviders(),- listNotebooks(),+ listCategories(),]);setKnowledgeBases(kbs);setProviders(@@ -271,6 +414,11 @@ export default function KnowledgePage() {},],);+ const nextNotebooks: NotebookInfo[] = cats.map((c) => ({+ id: String(c.id),+ name: c.name,+ record_count: c.entry_count ?? 0,+ }));setNotebooks(nextNotebooks);if (!selectedNotebookId && nextNotebooks.length > 0) {void loadNotebookDetail(nextNotebooks[0].id);@@ -328,6 +476,14 @@ export default function KnowledgePage() {// eslint-disable-next-line react-hooks/exhaustive-deps}, []);+ useEffect(() => {+ if (tab === "questions") {+ void loadQItems(qFilter, qActiveCategoryId);+ void loadQCategories();+ }+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, [tab, qFilter, qActiveCategoryId]);+const subscribeProgress = (kbName: string, expectedTaskId?: string) => {closeProgressSocket(kbName);@@ -494,15 +650,7 @@ export default function KnowledgePage() {const createNotebook = async () => {if (!newNotebookName.trim()) return;- await fetch(apiUrl("/api/v1/notebook/create"), {- method: "POST",- headers: { "Content-Type": "application/json" },- body: JSON.stringify({- name: newNotebookName.trim(),- description: newNotebookDescription.trim(),- }),- });- invalidateNotebookCaches();+ await createCategory(newNotebookName.trim());setNewNotebookName("");setNewNotebookDescription("");await loadAll();@@ -513,8 +661,25 @@ export default function KnowledgePage() {setExpandedRecordId(null);setLoadingNotebookDetail(true);try {- const notebook = (await getNotebookDetail(notebookId)) as NotebookDetail;- setSelectedNotebook(notebook);+ const info = notebooks.find((n) => n.id === notebookId);+ const data = await listNotebookEntries({ category_id: Number(notebookId) });+ const records: NotebookRecord[] = (data.items || []).map((e) => ({+ id: String(e.id),+ type: e.question_type,+ title: e.question,+ summary: e.explanation,+ user_query: e.question,+ output: e.correct_answer,+ created_at: e.created_at,+ }));+ setSelectedNotebook({+ id: notebookId,+ name: info?.name ?? "",+ description: info?.description,+ record_count: data.total,+ color: info?.color,+ records,+ });} catch {setSelectedNotebook(null);} finally {@@ -607,10 +772,11 @@ export default function KnowledgePage() {{[{ key: "knowledge", label: t("Knowledge Bases"), icon: Database },{ key: "notebooks", label: t("Notebooks"), icon: NotebookPen },+ { key: "questions", label: t("Question Notebook"), icon: ClipboardList },].map((item) => (<buttonkey={item.key}- onClick={() => setTab(item.key as "knowledge" | "notebooks")}+ onClick={() => setTab(item.key as TabKey)}className={`inline-flex items-center gap-1.5 rounded-md px-3.5 py-1.5 text-[13px] font-medium transition-all ${tab === item.key? "bg-[var(--card)] text-[var(--foreground)] shadow-sm"@@ -961,7 +1127,7 @@ export default function KnowledgePage() {</div></section></div>- ) : (+ ) : tab === "notebooks" ? (<div className="space-y-5">{/* Create notebook */}<section className="rounded-xl border border-[var(--border)] bg-[var(--card)] p-5 shadow-sm">@@ -1166,8 +1332,386 @@ export default function KnowledgePage() {</div></section></div>+ ) : (+ /* โโ Questions tab content โโ */+ <div className="space-y-0">+ {/* Category manager */}+ <div className={`mb-4 overflow-hidden rounded-xl border transition-colors ${qShowCategoryManager ? "border-[var(--border)] bg-[var(--card)]" : "border-[var(--border)]/50 bg-transparent"}`}>+ <button+ onClick={() => setQShowCategoryManager((v) => !v)}+ className="flex w-full items-center justify-between px-4 py-2.5 text-[13px] font-medium text-[var(--foreground)] transition-colors hover:bg-[var(--muted)]/40"+ >+ <span className="flex items-center gap-2">+ <FolderOpen className="h-3.5 w-3.5 text-[var(--muted-foreground)]" />+ {t("Manage Categories")}+ {qCategories.length > 0 && (+ <span className="rounded-full bg-[var(--muted)] px-1.5 py-0.5 text-[10px] text-[var(--muted-foreground)]">+ {qCategories.length}+ </span>+ )}+ </span>+ <ChevronDown className={`h-3.5 w-3.5 text-[var(--muted-foreground)] transition-transform duration-200 ${qShowCategoryManager ? "rotate-180" : ""}`} />+ </button>++ {qShowCategoryManager && (+ <div className="border-t border-[var(--border)] px-4 pb-4 pt-3">+ <div className="space-y-1.5">+ {qCategories.map((cat) => (+ <div key={cat.id} className="flex items-center justify-between gap-2 rounded-lg bg-[var(--muted)]/30 px-3 py-2">+ {qRenamingCat?.id === cat.id ? (+ <input+ autoFocus+ value={qRenamingCat.name}+ onChange={(e) => setQRenamingCat({ ...qRenamingCat, name: e.target.value })}+ onKeyDown={(e) => { if (e.key === "Enter") void handleQRenameCategory(); if (e.key === "Escape") setQRenamingCat(null); }}+ onBlur={() => void handleQRenameCategory()}+ className="flex-1 rounded border border-[var(--border)] bg-[var(--background)] px-2 py-0.5 text-[12px] text-[var(--foreground)] outline-none"+ />+ ) : (+ <span className="text-[12px] text-[var(--foreground)]">+ {cat.name}+ <span className="ml-1.5 text-[var(--muted-foreground)]">({cat.entry_count})</span>+ </span>+ )}+ <div className="flex items-center gap-1">+ <button onClick={() => setQRenamingCat({ id: cat.id, name: cat.name })} className="rounded p-1 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)]">+ <Pencil size={12} />+ </button>+ <button onClick={() => void handleQDeleteCategory(cat.id)} className="rounded p-1 text-[var(--muted-foreground)] transition-colors hover:bg-red-50 hover:text-red-500 dark:hover:bg-red-950/30">+ <Trash2 size={12} />+ </button>+ </div>+ </div>+ ))}+ {!qCategories.length && (+ <p className="py-2 text-center text-[12px] text-[var(--muted-foreground)]">+ {t("No categories yet.")}+ </p>+ )}+ </div>+ <div className="mt-3 flex items-center gap-1.5">+ <input+ value={qNewCatName}+ onChange={(e) => setQNewCatName(e.target.value)}+ onKeyDown={(e) => e.key === "Enter" && void handleQCreateCategory()}+ placeholder={t("New category name...")}+ className="flex-1 rounded-lg border border-[var(--border)] bg-[var(--background)] px-3 py-1.5 text-[12px] text-[var(--foreground)] outline-none placeholder:text-[var(--muted-foreground)]"+ />+ <button+ onClick={() => void handleQCreateCategory()}+ disabled={!qNewCatName.trim()}+ className="rounded-lg bg-[var(--primary)] px-3 py-1.5 text-[12px] font-medium text-white disabled:opacity-30"+ >+ <Plus size={13} />+ </button>+ </div>+ </div>+ )}+ </div>++ {/* Filter bar */}+ <div className="mb-5 flex items-center justify-between border-b border-[var(--border)]/50 pb-3">+ <div className="flex items-center gap-1 overflow-x-auto">+ {Q_FILTERS.map(({ mode, label }) => {+ const active = qFilter === mode && qActiveCategoryId === null;+ return (+ <button+ key={mode}+ onClick={() => { setQFilter(mode); setQActiveCategoryId(null); }}+ className={`inline-flex shrink-0 items-center gap-1.5 rounded-lg px-3 py-1.5 text-[13px] transition-colors ${+ active+ ? "bg-[var(--muted)] font-medium text-[var(--foreground)]"+ : "text-[var(--muted-foreground)] hover:text-[var(--foreground)]"+ }`}+ >+ {t(label)}+ </button>+ );+ })}+ {qCategories.length > 0 && (+ <span className="mx-1 text-[var(--border)]">|</span>+ )}+ {qCategories.map((cat) => {+ const active = qActiveCategoryId === cat.id;+ return (+ <button+ key={cat.id}+ onClick={() => { setQActiveCategoryId(cat.id); setQFilter("all"); }}+ className={`inline-flex shrink-0 items-center gap-1.5 rounded-lg px-3 py-1.5 text-[13px] transition-colors ${+ active+ ? "bg-[var(--muted)] font-medium text-[var(--foreground)]"+ : "text-[var(--muted-foreground)] hover:text-[var(--foreground)]"+ }`}+ >+ <FolderOpen size={12} />+ {cat.name}+ </button>+ );+ })}+ </div>+ <span className="shrink-0 text-[12px] text-[var(--muted-foreground)]">+ {t("Total")}: {qTotal}+ </span>+ </div>++ {/* Content */}+ {qLoading ? (+ <div className="flex min-h-[420px] items-center justify-center">+ <Loader2 className="h-5 w-5 animate-spin text-[var(--muted-foreground)]" />+ </div>+ ) : qError ? (+ <div className="flex min-h-[320px] flex-col items-center justify-center rounded-xl border border-dashed border-red-300 text-center dark:border-red-900">+ <div className="mb-3 rounded-xl bg-red-50 p-2.5 text-red-500 dark:bg-red-950/30">+ <AlertTriangle size={18} />+ </div>+ <p className="text-[14px] font-medium text-[var(--foreground)]">+ {t("Failed to load entries")}+ </p>+ <p className="mt-1.5 max-w-xs text-[13px] text-[var(--muted-foreground)]">{qError}</p>+ <button+ onClick={() => void loadQItems(qFilter, qActiveCategoryId)}+ className="mt-3 rounded-lg bg-[var(--primary)] px-4 py-1.5 text-[12px] font-medium text-white"+ >+ {t("Retry")}+ </button>+ </div>+ ) : qItems.length === 0 ? (+ <div className="flex min-h-[320px] flex-col items-center justify-center rounded-xl border border-dashed border-[var(--border)] text-center">+ <div className="mb-3 rounded-xl bg-[var(--muted)] p-2.5 text-[var(--muted-foreground)]">+ <ClipboardList size={18} />+ </div>+ <p className="text-[14px] font-medium text-[var(--foreground)]">+ {t("No entries yet")}+ </p>+ <p className="mt-1.5 max-w-xs text-[13px] text-[var(--muted-foreground)]">+ {t("Questions from your quizzes will appear here.")}+ </p>+ </div>+ ) : (+ <ul className="flex flex-col gap-3">+ {qItems.map((item) => {+ const disabled = qPendingId === item.id;+ return (+ <li+ key={item.id}+ className={`rounded-xl border border-[var(--border)] px-5 py-4 transition-opacity ${+ disabled ? "opacity-60" : ""+ }`}+ >+ {/* Question header */}+ <div className="mb-3 flex items-start justify-between gap-3">+ <div className="min-w-0 flex-1">+ <div className="mb-1.5 flex flex-wrap items-center gap-1.5">+ {item.difficulty && (+ <span className={`rounded-md px-1.5 py-0.5 text-[10px] font-medium uppercase ${+ item.difficulty === "hard"+ ? "bg-red-50 text-red-600 dark:bg-red-950/30 dark:text-red-400"+ : item.difficulty === "medium"+ ? "bg-amber-50 text-amber-600 dark:bg-amber-950/30 dark:text-amber-400"+ : "bg-green-50 text-green-600 dark:bg-green-950/30 dark:text-green-400"+ }`}>{item.difficulty}</span>+ )}+ {item.question_type && (+ <span className="rounded-md bg-[var(--muted)] px-1.5 py-0.5 text-[10px] font-medium text-[var(--muted-foreground)]">+ {item.question_type}+ </span>+ )}+ <span className={`rounded-md px-1.5 py-0.5 text-[10px] font-semibold ${+ item.is_correct+ ? "bg-green-100 text-green-700 dark:bg-green-950/30 dark:text-green-400"+ : "bg-red-100 text-red-700 dark:bg-red-950/30 dark:text-red-400"+ }`}>+ {item.is_correct ? t("Correct") : t("Incorrect")}+ </span>+ </div>+ <div className="text-[14px] font-medium text-[var(--foreground)]">+ <MarkdownRenderer+ content={item.question}+ variant="prose"+ className="text-[14px] leading-relaxed"+ />+ </div>+ </div>+ <div className="flex items-center gap-1">+ <button+ onClick={() => void handleQToggleBookmark(item)}+ disabled={disabled}+ title={item.bookmarked ? t("Remove Bookmark") : t("Bookmark")}+ className={`rounded-lg p-1.5 transition-colors disabled:opacity-40 ${+ item.bookmarked+ ? "text-[var(--primary)]"+ : "text-[var(--muted-foreground)] hover:text-[var(--foreground)]"+ }`}+ >+ <Bookmark className="h-4 w-4" fill={item.bookmarked ? "currentColor" : "none"} />+ </button>+ {qActiveCategoryId !== null && (+ <button+ onClick={() => void handleQRemoveFromCategory(item)}+ disabled={disabled}+ title={t("Remove from category")}+ className="rounded-lg p-1.5 text-[var(--muted-foreground)] transition-colors hover:text-[var(--foreground)] disabled:opacity-40"+ >+ <X className="h-4 w-4" />+ </button>+ )}+ <button+ onClick={() => void handleQDelete(item)}+ disabled={disabled}+ title={t("Delete")}+ className="rounded-lg p-1.5 text-[var(--muted-foreground)] transition-colors hover:text-[var(--foreground)] disabled:opacity-40"+ >+ <Trash2 className="h-4 w-4" />+ </button>+ </div>+ </div>++ {/* Options for choice questions */}+ {item.options && Object.keys(item.options).length > 0 && (+ <div className="mb-3 space-y-1.5">+ {Object.entries(item.options).map(([key, text]) => {+ const isUserAnswer = item.user_answer?.toUpperCase() === key.toUpperCase();+ const isCorrectAnswer = item.correct_answer?.toUpperCase() === key.toUpperCase();+ const isWrongPick = isUserAnswer && !item.is_correct;+ return (+ <div+ key={key}+ className={`flex items-start gap-2.5 rounded-lg border px-3 py-2 text-[13px] transition-colors ${+ isCorrectAnswer+ ? "border-green-200 bg-green-50/60 dark:border-green-900 dark:bg-green-950/20"+ : isWrongPick+ ? "border-red-200 bg-red-50/60 dark:border-red-900 dark:bg-red-950/20"+ : "border-transparent bg-[var(--muted)]/30"+ }`}+ >+ <span className={`mt-px shrink-0 font-semibold ${+ isCorrectAnswer+ ? "text-green-600 dark:text-green-400"+ : isWrongPick+ ? "text-red-600 dark:text-red-400"+ : "text-[var(--muted-foreground)]"+ }`}>+ {key}.+ </span>+ <span className={`flex-1 ${+ isCorrectAnswer || isWrongPick ? "text-[var(--foreground)]" : "text-[var(--muted-foreground)]"+ }`}>+ {text}+ </span>+ {isCorrectAnswer && (+ <span className="mt-px shrink-0 text-[10px] font-medium text-green-600 dark:text-green-400">โ {t("Correct")}</span>+ )}+ {isWrongPick && (+ <span className="mt-px shrink-0 text-[10px] font-medium text-red-600 dark:text-red-400">โ {t("Your pick")}</span>+ )}+ </div>+ );+ })}+ </div>+ )}++ {/* Answers for coding / written / fill-in questions */}+ {(!item.options || Object.keys(item.options).length === 0) && (+ <div className="mb-3 space-y-2 text-[13px]">+ <div className={`rounded-lg border px-3 py-2.5 ${+ !item.is_correct+ ? "border-red-200/60 bg-red-50/40 dark:border-red-900/40 dark:bg-red-950/15"+ : "border-green-200/60 bg-green-50/40 dark:border-green-900/40 dark:bg-green-950/15"+ }`}>+ <div className={`mb-1 text-[11px] font-medium uppercase tracking-wide ${+ !item.is_correct+ ? "text-red-500 dark:text-red-400"+ : "text-green-600 dark:text-green-400"+ }`}>+ {t("Your Answer")} {item.is_correct ? "โ" : "โ"}+ </div>+ <div className="text-[var(--foreground)]">+ {item.user_answer ? (+ item.question_type === "coding" ? (+ <MarkdownRenderer content={`\`\`\`python\n${item.user_answer}\n\`\`\``} variant="prose" className="text-[13px]" />+ ) : (+ <MarkdownRenderer content={item.user_answer} variant="prose" className="text-[13px] leading-relaxed" />+ )+ ) : (+ <span className="text-[var(--muted-foreground)]">โ</span>+ )}+ </div>+ </div>+ <div className="rounded-lg border border-green-200/60 bg-green-50/40 px-3 py-2.5 dark:border-green-900/40 dark:bg-green-950/15">+ <div className="mb-1 text-[11px] font-medium uppercase tracking-wide text-green-600 dark:text-green-400">+ {t("Reference Answer")}+ </div>+ <div className="text-[var(--foreground)]">+ {item.correct_answer ? (+ item.question_type === "coding" ? (+ <MarkdownRenderer content={item.correct_answer.trimStart().startsWith("```") ? item.correct_answer : `\`\`\`python\n${item.correct_answer}\n\`\`\``} variant="prose" className="text-[13px]" />+ ) : (+ <MarkdownRenderer content={item.correct_answer} variant="prose" className="text-[13px] leading-relaxed" />+ )+ ) : (+ <span className="text-[var(--muted-foreground)]">โ</span>+ )}+ </div>+ </div>+ </div>+ )}++ {/* Explanation */}+ {item.explanation && (+ <div className="mb-3 rounded-lg border border-blue-200/60 bg-blue-50/30 px-3 py-2.5 dark:border-blue-900/40 dark:bg-blue-950/15">+ <div className="mb-1 text-[11px] font-medium uppercase tracking-wide text-blue-600 dark:text-blue-400">+ {t("Explanation")}+ </div>+ <div className="text-[13px] leading-relaxed text-[var(--foreground)]">+ <MarkdownRenderer content={item.explanation} variant="prose" className="text-[13px] leading-relaxed" />+ </div>+ </div>+ )}++ {/* Footer */}+ <div className="mt-3 flex flex-wrap items-center justify-between gap-2 text-[11px]">+ <div className="flex items-center gap-2">+ <Link+ href={`/?session=${encodeURIComponent(item.session_id)}`}+ className="inline-flex items-center gap-1.5 rounded-md border border-[var(--border)] bg-[var(--muted)]/40 px-2.5 py-1 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)]"+ >+ <ExternalLink size={10} />+ {item.session_title || t("Original Session")}+ </Link>+ {item.followup_session_id && (+ <Link+ href={`/?session=${encodeURIComponent(item.followup_session_id)}`}+ className="inline-flex items-center gap-1.5 rounded-md border border-[var(--border)] bg-[var(--muted)]/40 px-2.5 py-1 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)]"+ >+ <MessageSquare size={10} />+ {t("Follow-up")}+ </Link>+ )}+ </div>+ <span className="text-[var(--muted-foreground)]">{new Date(item.created_at * 1000).toLocaleString()}</span>+ </div>+ </li>+ );+ })}+ </ul>+ )}+ </div>)}</div></div>);}++export default function KnowledgePage() {+ return (+ <Suspense+ fallback={+ <div className="flex min-h-[50vh] items-center justify-center text-[13px] text-[var(--muted-foreground)]">+ <Loader2 className="h-5 w-5 animate-spin" />+ </div>+ }+ >+ <KnowledgePageContent />+ </Suspense>+ );+}diff --git a/web/app/(utility)/notebook/page.tsx b/web/app/(utility)/notebook/page.tsxnew file mode 100644index 000000000..b97860b3a--- /dev/null+++ b/web/app/(utility)/notebook/page.tsx@@ -0,0 +1,550 @@+"use client";++import dynamic from "next/dynamic";+import Link from "next/link";+import { useCallback, useEffect, useState } from "react";+import {+ AlertTriangle,+ Bookmark,+ ChevronDown,+ ExternalLink,+ FolderOpen,+ Loader2,+ MessageSquare,+ NotebookPen,+ Pencil,+ Plus,+ Trash2,+ X,+} from "lucide-react";+import { useTranslation } from "react-i18next";+import {+ createCategory,+ deleteCategory,+ deleteNotebookEntry,+ listCategories,+ listNotebookEntries,+ removeEntryFromCategory,+ renameCategory,+ updateNotebookEntry,+ type NotebookCategory,+ type NotebookEntry,+} from "@/lib/notebook-api";++const MarkdownRenderer = dynamic(+ () => import("@/components/common/MarkdownRenderer"),+ { ssr: false },+);++type FilterMode = "all" | "bookmarked" | "wrong";++export default function NotebookPage() {+ const { t } = useTranslation();+ const [items, setItems] = useState<NotebookEntry[]>([]);+ const [total, setTotal] = useState(0);+ const [loading, setLoading] = useState(true);+ const [error, setError] = useState<string | null>(null);+ const [refreshing, setRefreshing] = useState(false);+ const [filter, setFilter] = useState<FilterMode>("all");+ const [activeCategoryId, setActiveCategoryId] = useState<number | null>(null);+ const [categories, setCategories] = useState<NotebookCategory[]>([]);+ const [pendingId, setPendingId] = useState<number | null>(null);++ const [showCategoryManager, setShowCategoryManager] = useState(false);+ const [newCatName, setNewCatName] = useState("");+ const [renamingCat, setRenamingCat] = useState<{ id: number; name: string } | null>(null);++ const loadCategories = useCallback(async () => {+ try {+ setCategories(await listCategories());+ } catch { /* ignore */ }+ }, []);++ const loadItems = useCallback(+ async (mode: FilterMode, catId: number | null) => {+ setRefreshing(true);+ setError(null);+ try {+ const response = await listNotebookEntries({+ bookmarked: mode === "bookmarked" ? true : undefined,+ is_correct: mode === "wrong" ? false : undefined,+ category_id: catId ?? undefined,+ limit: 200,+ });+ setItems(response.items);+ setTotal(response.total);+ } catch (err) {+ setError(String(err instanceof Error ? err.message : err));+ } finally {+ setLoading(false);+ setRefreshing(false);+ }+ },+ [],+ );++ useEffect(() => {+ void loadItems(filter, activeCategoryId);+ void loadCategories();+ }, [filter, activeCategoryId, loadItems, loadCategories]);++ const handleToggleBookmark = useCallback(+ async (item: NotebookEntry) => {+ const next = !item.bookmarked;+ setPendingId(item.id);+ try {+ await updateNotebookEntry(item.id, { bookmarked: next });+ setItems((prev) =>+ filter === "bookmarked" && !next+ ? prev.filter((e) => e.id !== item.id)+ : prev.map((e) => (e.id === item.id ? { ...e, bookmarked: next } : e)),+ );+ if (filter === "bookmarked" && !next) setTotal((p) => Math.max(0, p - 1));+ } catch { /* ignore */ }+ setPendingId(null);+ },+ [filter],+ );++ const handleDelete = useCallback(+ async (item: NotebookEntry) => {+ if (!window.confirm(t("Delete this entry?"))) return;+ setPendingId(item.id);+ try {+ await deleteNotebookEntry(item.id);+ setItems((prev) => prev.filter((e) => e.id !== item.id));+ setTotal((p) => Math.max(0, p - 1));+ } catch { /* ignore */ }+ setPendingId(null);+ },+ [t],+ );++ const handleRemoveFromCategory = useCallback(+ async (item: NotebookEntry) => {+ if (activeCategoryId === null) return;+ setPendingId(item.id);+ try {+ await removeEntryFromCategory(item.id, activeCategoryId);+ setItems((prev) => prev.filter((e) => e.id !== item.id));+ setTotal((p) => Math.max(0, p - 1));+ } catch { /* ignore */ }+ setPendingId(null);+ },+ [activeCategoryId],+ );++ const handleCreateCategory = useCallback(async () => {+ if (!newCatName.trim()) return;+ try {+ await createCategory(newCatName.trim());+ setNewCatName("");+ await loadCategories();+ } catch { /* ignore */ }+ }, [loadCategories, newCatName]);++ const handleRenameCategory = useCallback(async () => {+ if (!renamingCat || !renamingCat.name.trim()) return;+ try {+ await renameCategory(renamingCat.id, renamingCat.name.trim());+ setRenamingCat(null);+ await loadCategories();+ } catch { /* ignore */ }+ }, [loadCategories, renamingCat]);++ const handleDeleteCategory = useCallback(+ async (catId: number) => {+ if (!window.confirm(t("Delete this category?"))) return;+ try {+ await deleteCategory(catId);+ if (activeCategoryId === catId) setActiveCategoryId(null);+ await loadCategories();+ } catch { /* ignore */ }+ },+ [activeCategoryId, loadCategories, t],+ );++ const FILTERS: { mode: FilterMode; label: string }[] = [+ { mode: "all", label: "All" },+ { mode: "bookmarked", label: "Bookmarked" },+ { mode: "wrong", label: "Wrong Only" },+ ];++ return (+ <div className="h-full overflow-y-auto [scrollbar-gutter:stable]">+ <div className="mx-auto max-w-[960px] px-6 py-8">+ {/* Header */}+ <div className="mb-6 flex items-start justify-between">+ <div>+ <h1 className="text-[24px] font-semibold tracking-tight text-[var(--foreground)]">+ {t("Question Notebook")}+ </h1>+ <p className="mt-1 text-[13px] text-[var(--muted-foreground)]">+ {t("Review and organize quiz questions across sessions.")}+ </p>+ </div>+ </div>++ <div className={`mb-4 overflow-hidden rounded-xl border transition-colors ${showCategoryManager ? "border-[var(--border)] bg-[var(--card)]" : "border-[var(--border)]/50 bg-transparent"}`}>+ <button+ onClick={() => setShowCategoryManager((v) => !v)}+ className="flex w-full items-center justify-between px-4 py-2.5 text-[13px] font-medium text-[var(--foreground)] transition-colors hover:bg-[var(--muted)]/40"+ >+ <span className="flex items-center gap-2">+ <FolderOpen className="h-3.5 w-3.5 text-[var(--muted-foreground)]" />+ {t("Manage Categories")}+ {categories.length > 0 && (+ <span className="rounded-full bg-[var(--muted)] px-1.5 py-0.5 text-[10px] text-[var(--muted-foreground)]">+ {categories.length}+ </span>+ )}+ </span>+ <ChevronDown className={`h-3.5 w-3.5 text-[var(--muted-foreground)] transition-transform duration-200 ${showCategoryManager ? "rotate-180" : ""}`} />+ </button>++ {showCategoryManager && (+ <div className="border-t border-[var(--border)] px-4 pb-4 pt-3">+ <div className="space-y-1.5">+ {categories.map((cat) => (+ <div key={cat.id} className="flex items-center justify-between gap-2 rounded-lg bg-[var(--muted)]/30 px-3 py-2">+ {renamingCat?.id === cat.id ? (+ <input+ autoFocus+ value={renamingCat.name}+ onChange={(e) => setRenamingCat({ ...renamingCat, name: e.target.value })}+ onKeyDown={(e) => { if (e.key === "Enter") void handleRenameCategory(); if (e.key === "Escape") setRenamingCat(null); }}+ onBlur={() => void handleRenameCategory()}+ className="flex-1 rounded border border-[var(--border)] bg-[var(--background)] px-2 py-0.5 text-[12px] text-[var(--foreground)] outline-none"+ />+ ) : (+ <span className="text-[12px] text-[var(--foreground)]">+ {cat.name}+ <span className="ml-1.5 text-[var(--muted-foreground)]">({cat.entry_count})</span>+ </span>+ )}+ <div className="flex items-center gap-1">+ <button onClick={() => setRenamingCat({ id: cat.id, name: cat.name })} className="rounded p-1 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)]">+ <Pencil size={12} />+ </button>+ <button onClick={() => void handleDeleteCategory(cat.id)} className="rounded p-1 text-[var(--muted-foreground)] transition-colors hover:bg-red-50 hover:text-red-500 dark:hover:bg-red-950/30">+ <Trash2 size={12} />+ </button>+ </div>+ </div>+ ))}+ {!categories.length && (+ <p className="py-2 text-center text-[12px] text-[var(--muted-foreground)]">+ {t("No categories yet.")}+ </p>+ )}+ </div>+ <div className="mt-3 flex items-center gap-1.5">+ <input+ value={newCatName}+ onChange={(e) => setNewCatName(e.target.value)}+ onKeyDown={(e) => e.key === "Enter" && void handleCreateCategory()}+ placeholder={t("New category name...")}+ className="flex-1 rounded-lg border border-[var(--border)] bg-[var(--background)] px-3 py-1.5 text-[12px] text-[var(--foreground)] outline-none placeholder:text-[var(--muted-foreground)]"+ />+ <button+ onClick={() => void handleCreateCategory()}+ disabled={!newCatName.trim()}+ className="rounded-lg bg-[var(--primary)] px-3 py-1.5 text-[12px] font-medium text-white disabled:opacity-30"+ >+ <Plus size={13} />+ </button>+ </div>+ </div>+ )}+ </div>++ {/* Filter bar */}+ <div className="mb-5 flex items-center justify-between border-b border-[var(--border)]/50 pb-3">+ <div className="flex items-center gap-1 overflow-x-auto">+ {FILTERS.map(({ mode, label }) => {+ const active = filter === mode && activeCategoryId === null;+ return (+ <button+ key={mode}+ onClick={() => { setFilter(mode); setActiveCategoryId(null); }}+ className={`inline-flex shrink-0 items-center gap-1.5 rounded-lg px-3 py-1.5 text-[13px] transition-colors ${+ active+ ? "bg-[var(--muted)] font-medium text-[var(--foreground)]"+ : "text-[var(--muted-foreground)] hover:text-[var(--foreground)]"+ }`}+ >+ {t(label)}+ </button>+ );+ })}+ {categories.length > 0 && (+ <span className="mx-1 text-[var(--border)]">|</span>+ )}+ {categories.map((cat) => {+ const active = activeCategoryId === cat.id;+ return (+ <button+ key={cat.id}+ onClick={() => { setActiveCategoryId(cat.id); setFilter("all"); }}+ className={`inline-flex shrink-0 items-center gap-1.5 rounded-lg px-3 py-1.5 text-[13px] transition-colors ${+ active+ ? "bg-[var(--muted)] font-medium text-[var(--foreground)]"+ : "text-[var(--muted-foreground)] hover:text-[var(--foreground)]"+ }`}+ >+ <FolderOpen size={12} />+ {cat.name}+ </button>+ );+ })}+ </div>+ <span className="shrink-0 text-[12px] text-[var(--muted-foreground)]">+ {t("Total")}: {total}+ </span>+ </div>++ {/* Content */}+ {loading ? (+ <div className="flex min-h-[420px] items-center justify-center">+ <Loader2 className="h-5 w-5 animate-spin text-[var(--muted-foreground)]" />+ </div>+ ) : error ? (+ <div className="flex min-h-[320px] flex-col items-center justify-center rounded-xl border border-dashed border-red-300 text-center dark:border-red-900">+ <div className="mb-3 rounded-xl bg-red-50 p-2.5 text-red-500 dark:bg-red-950/30">+ <AlertTriangle size={18} />+ </div>+ <p className="text-[14px] font-medium text-[var(--foreground)]">+ {t("Failed to load entries")}+ </p>+ <p className="mt-1.5 max-w-xs text-[13px] text-[var(--muted-foreground)]">{error}</p>+ <button+ onClick={() => void loadItems(filter, activeCategoryId)}+ className="mt-3 rounded-lg bg-[var(--primary)] px-4 py-1.5 text-[12px] font-medium text-white"+ >+ {t("Retry")}+ </button>+ </div>+ ) : items.length === 0 ? (+ <div className="flex min-h-[320px] flex-col items-center justify-center rounded-xl border border-dashed border-[var(--border)] text-center">+ <div className="mb-3 rounded-xl bg-[var(--muted)] p-2.5 text-[var(--muted-foreground)]">+ <NotebookPen size={18} />+ </div>+ <p className="text-[14px] font-medium text-[var(--foreground)]">+ {t("No entries yet")}+ </p>+ <p className="mt-1.5 max-w-xs text-[13px] text-[var(--muted-foreground)]">+ {t("Questions from your quizzes will appear here.")}+ </p>+ </div>+ ) : (+ <ul className="flex flex-col gap-3">+ {items.map((item) => {+ const disabled = pendingId === item.id;+ return (+ <li+ key={item.id}+ className={`rounded-xl border border-[var(--border)] px-5 py-4 transition-opacity ${+ disabled ? "opacity-60" : ""+ }`}+ >+ {/* Question header */}+ <div className="mb-3 flex items-start justify-between gap-3">+ <div className="min-w-0 flex-1">+ <div className="mb-1.5 flex flex-wrap items-center gap-1.5">+ {item.difficulty && (+ <span className={`rounded-md px-1.5 py-0.5 text-[10px] font-medium uppercase ${+ item.difficulty === "hard"+ ? "bg-red-50 text-red-600 dark:bg-red-950/30 dark:text-red-400"+ : item.difficulty === "medium"+ ? "bg-amber-50 text-amber-600 dark:bg-amber-950/30 dark:text-amber-400"+ : "bg-green-50 text-green-600 dark:bg-green-950/30 dark:text-green-400"+ }`}>{item.difficulty}</span>+ )}+ {item.question_type && (+ <span className="rounded-md bg-[var(--muted)] px-1.5 py-0.5 text-[10px] font-medium text-[var(--muted-foreground)]">+ {item.question_type}+ </span>+ )}+ <span className={`rounded-md px-1.5 py-0.5 text-[10px] font-semibold ${+ item.is_correct+ ? "bg-green-100 text-green-700 dark:bg-green-950/30 dark:text-green-400"+ : "bg-red-100 text-red-700 dark:bg-red-950/30 dark:text-red-400"+ }`}>+ {item.is_correct ? t("Correct") : t("Incorrect")}+ </span>+ </div>+ <div className="text-[14px] font-medium text-[var(--foreground)]">+ <MarkdownRenderer+ content={item.question}+ variant="prose"+ className="text-[14px] leading-relaxed"+ />+ </div>+ </div>+ <div className="flex items-center gap-1">+ <button+ onClick={() => void handleToggleBookmark(item)}+ disabled={disabled}+ title={item.bookmarked ? t("Remove Bookmark") : t("Bookmark")}+ className={`rounded-lg p-1.5 transition-colors disabled:opacity-40 ${+ item.bookmarked+ ? "text-[var(--primary)]"+ : "text-[var(--muted-foreground)] hover:text-[var(--foreground)]"+ }`}+ >+ <Bookmark className="h-4 w-4" fill={item.bookmarked ? "currentColor" : "none"} />+ </button>+ {activeCategoryId !== null && (+ <button+ onClick={() => void handleRemoveFromCategory(item)}+ disabled={disabled}+ title={t("Remove from category")}+ className="rounded-lg p-1.5 text-[var(--muted-foreground)] transition-colors hover:text-[var(--foreground)] disabled:opacity-40"+ >+ <X className="h-4 w-4" />+ </button>+ )}+ <button+ onClick={() => void handleDelete(item)}+ disabled={disabled}+ title={t("Delete")}+ className="rounded-lg p-1.5 text-[var(--muted-foreground)] transition-colors hover:text-[var(--foreground)] disabled:opacity-40"+ >+ <Trash2 className="h-4 w-4" />+ </button>+ </div>+ </div>++ {/* Options for choice questions */}+ {item.options && Object.keys(item.options).length > 0 && (+ <div className="mb-3 space-y-1.5">+ {Object.entries(item.options).map(([key, text]) => {+ const isUserAnswer = item.user_answer?.toUpperCase() === key.toUpperCase();+ const isCorrectAnswer = item.correct_answer?.toUpperCase() === key.toUpperCase();+ const isWrongPick = isUserAnswer && !item.is_correct;+ return (+ <div+ key={key}+ className={`flex items-start gap-2.5 rounded-lg border px-3 py-2 text-[13px] transition-colors ${+ isCorrectAnswer+ ? "border-green-200 bg-green-50/60 dark:border-green-900 dark:bg-green-950/20"+ : isWrongPick+ ? "border-red-200 bg-red-50/60 dark:border-red-900 dark:bg-red-950/20"+ : "border-transparent bg-[var(--muted)]/30"+ }`}+ >+ <span className={`mt-px shrink-0 font-semibold ${+ isCorrectAnswer+ ? "text-green-600 dark:text-green-400"+ : isWrongPick+ ? "text-red-600 dark:text-red-400"+ : "text-[var(--muted-foreground)]"+ }`}>+ {key}.+ </span>+ <span className={`flex-1 ${+ isCorrectAnswer || isWrongPick ? "text-[var(--foreground)]" : "text-[var(--muted-foreground)]"+ }`}>+ {text}+ </span>+ {isCorrectAnswer && (+ <span className="mt-px shrink-0 text-[10px] font-medium text-green-600 dark:text-green-400">โ {t("Correct")}</span>+ )}+ {isWrongPick && (+ <span className="mt-px shrink-0 text-[10px] font-medium text-red-600 dark:text-red-400">โ {t("Your pick")}</span>+ )}+ </div>+ );+ })}+ </div>+ )}++ {/* Answers for coding / written / fill-in questions */}+ {(!item.options || Object.keys(item.options).length === 0) && (+ <div className="mb-3 space-y-2 text-[13px]">+ <div className={`rounded-lg border px-3 py-2.5 ${+ !item.is_correct+ ? "border-red-200/60 bg-red-50/40 dark:border-red-900/40 dark:bg-red-950/15"+ : "border-green-200/60 bg-green-50/40 dark:border-green-900/40 dark:bg-green-950/15"+ }`}>+ <div className={`mb-1 text-[11px] font-medium uppercase tracking-wide ${+ !item.is_correct+ ? "text-red-500 dark:text-red-400"+ : "text-green-600 dark:text-green-400"+ }`}>+ {t("Your Answer")} {item.is_correct ? "โ" : "โ"}+ </div>+ <div className="text-[var(--foreground)]">+ {item.user_answer ? (+ item.question_type === "coding" ? (+ <MarkdownRenderer content={`\`\`\`python\n${item.user_answer}\n\`\`\``} variant="prose" className="text-[13px]" />+ ) : (+ <MarkdownRenderer content={item.user_answer} variant="prose" className="text-[13px] leading-relaxed" />+ )+ ) : (+ <span className="text-[var(--muted-foreground)]">โ</span>+ )}+ </div>+ </div>+ <div className="rounded-lg border border-green-200/60 bg-green-50/40 px-3 py-2.5 dark:border-green-900/40 dark:bg-green-950/15">+ <div className="mb-1 text-[11px] font-medium uppercase tracking-wide text-green-600 dark:text-green-400">+ {t("Reference Answer")}+ </div>+ <div className="text-[var(--foreground)]">+ {item.correct_answer ? (+ item.question_type === "coding" ? (+ <MarkdownRenderer content={item.correct_answer.trimStart().startsWith("```") ? item.correct_answer : `\`\`\`python\n${item.correct_answer}\n\`\`\``} variant="prose" className="text-[13px]" />+ ) : (+ <MarkdownRenderer content={item.correct_answer} variant="prose" className="text-[13px] leading-relaxed" />+ )+ ) : (+ <span className="text-[var(--muted-foreground)]">โ</span>+ )}+ </div>+ </div>+ </div>+ )}++ {/* Explanation */}+ {item.explanation && (+ <div className="mb-3 rounded-lg border border-blue-200/60 bg-blue-50/30 px-3 py-2.5 dark:border-blue-900/40 dark:bg-blue-950/15">+ <div className="mb-1 text-[11px] font-medium uppercase tracking-wide text-blue-600 dark:text-blue-400">+ {t("Explanation")}+ </div>+ <div className="text-[13px] leading-relaxed text-[var(--foreground)]">+ <MarkdownRenderer content={item.explanation} variant="prose" className="text-[13px] leading-relaxed" />+ </div>+ </div>+ )}++ {/* Footer */}+ <div className="mt-3 flex flex-wrap items-center justify-between gap-2 text-[11px]">+ <div className="flex items-center gap-2">+ <Link+ href={`/?session=${encodeURIComponent(item.session_id)}`}+ className="inline-flex items-center gap-1.5 rounded-md border border-[var(--border)] bg-[var(--muted)]/40 px-2.5 py-1 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)]"+ >+ <ExternalLink size={10} />+ {item.session_title || t("Original Session")}+ </Link>+ {item.followup_session_id && (+ <Link+ href={`/?session=${encodeURIComponent(item.followup_session_id)}`}+ className="inline-flex items-center gap-1.5 rounded-md border border-[var(--border)] bg-[var(--muted)]/40 px-2.5 py-1 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)]"+ >+ <MessageSquare size={10} />+ {t("Follow-up")}+ </Link>+ )}+ </div>+ <span className="text-[var(--muted-foreground)]">{new Date(item.created_at * 1000).toLocaleString()}</span>+ </div>+ </li>+ );+ })}+ </ul>+ )}+ </div>+ </div>+ );+}diff --git a/web/app/(utility)/settings/page.tsx b/web/app/(utility)/settings/page.tsxindex dfbd0efcf..3ad310543 100644--- a/web/app/(utility)/settings/page.tsx+++ b/web/app/(utility)/settings/page.tsx@@ -66,7 +66,7 @@ type Catalog = {};type UiSettings = {- theme: "light" | "dark";+ theme: "light" | "dark" | "glass";language: "en" | "zh";};@@ -367,7 +367,7 @@ function SettingsPageContent() {const isTourMode = searchParams.get("tour") === "true";const [status, setStatus] = useState<SystemStatus | null>(null);- const [theme, setTheme] = useState<"light" | "dark">("light");+ const [theme, setTheme] = useState<"light" | "dark" | "glass">("light");const [language, setLanguage] = useState<"en" | "zh">("en");const [catalog, setCatalog] = useState<Catalog>(defaultCatalog());const [draft, setDraft] = useState<Catalog>(defaultCatalog());@@ -460,7 +460,7 @@ function SettingsPageContent() {// -- UI preference helpers ----------------------------------------------- const persistUi = async (nextTheme: "light" | "dark", nextLanguage: "en" | "zh") => {+ const persistUi = async (nextTheme: "light" | "dark" | "glass", nextLanguage: "en" | "zh") => {await fetch(apiUrl("/api/v1/settings/ui"), {method: "PUT",headers: { "Content-Type": "application/json" },@@ -468,7 +468,7 @@ function SettingsPageContent() {});};- const updateTheme = async (nextTheme: "light" | "dark") => {+ const updateTheme = async (nextTheme: "light" | "dark" | "glass") => {setTheme(nextTheme);applyThemePreference(nextTheme);await persistUi(nextTheme, language);@@ -861,7 +861,7 @@ function SettingsPageContent() {<div className="flex items-center gap-2"><span className="text-[12px] text-[var(--muted-foreground)]">{t("Theme")}</span><div className="flex gap-0.5 rounded-lg bg-[var(--muted)] p-0.5">- {(["light", "dark"] as const).map((v) => (+ {(["light", "dark", "glass"] as const).map((v) => (<buttonkey={v}onClick={() => updateTheme(v)}@@ -871,7 +871,7 @@ function SettingsPageContent() {: "text-[var(--muted-foreground)] hover:text-[var(--foreground)]"}`}>- {v === "light" ? t("Light") : t("Dark")}+ {v === "light" ? t("Light") : v === "dark" ? t("Dark") : t("Glass")}</button>))}</div>diff --git a/web/app/(utility)/wrong-answers/page.tsx b/web/app/(utility)/wrong-answers/page.tsxdeleted file mode 100644index 3490976bd..000000000--- a/web/app/(utility)/wrong-answers/page.tsx+++ /dev/null@@ -1,263 +0,0 @@-"use client";--import dynamic from "next/dynamic";-import Link from "next/link";-import { useCallback, useEffect, useState } from "react";-import {- CheckCircle2,- Circle,- Loader2,- NotebookPen,- RefreshCw,- Trash2,-} from "lucide-react";-import { useTranslation } from "react-i18next";-import {- deleteWrongAnswer,- listWrongAnswers,- updateWrongAnswerResolved,- type WrongAnswer,-} from "@/lib/wrong-answer-api";--const MarkdownRenderer = dynamic(- () => import("@/components/common/MarkdownRenderer"),- { ssr: false },-);--type FilterMode = "unresolved" | "all";--function formatDate(value: number): string {- const date = new Date(value * 1000);- if (Number.isNaN(date.getTime())) return "";- return date.toLocaleString();-}--export default function WrongAnswersPage() {- const { t } = useTranslation();- const [items, setItems] = useState<WrongAnswer[]>([]);- const [total, setTotal] = useState(0);- const [loading, setLoading] = useState(true);- const [refreshing, setRefreshing] = useState(false);- const [filter, setFilter] = useState<FilterMode>("unresolved");- const [pendingId, setPendingId] = useState<number | null>(null);-- const loadItems = useCallback(- async (mode: FilterMode) => {- setRefreshing(true);- try {- const response = await listWrongAnswers({- resolved: mode === "unresolved" ? false : undefined,- limit: 200,- });- setItems(response.items);- setTotal(response.total);- } catch (error) {- console.error("Failed to load wrong answers", error);- } finally {- setLoading(false);- setRefreshing(false);- }- },- [],- );-- useEffect(() => {- void loadItems(filter);- }, [filter, loadItems]);-- const handleToggleResolved = useCallback(- async (item: WrongAnswer) => {- const nextResolved = !item.resolved;- setPendingId(item.id);- try {- await updateWrongAnswerResolved(item.id, nextResolved);- setItems((prev) =>- filter === "unresolved" && nextResolved- ? prev.filter((entry) => entry.id !== item.id)- : prev.map((entry) =>- entry.id === item.id- ? { ...entry, resolved: nextResolved }- : entry,- ),- );- if (filter === "unresolved" && nextResolved) {- setTotal((prev) => Math.max(0, prev - 1));- }- } catch (error) {- console.error("Failed to update wrong answer", error);- } finally {- setPendingId(null);- }- },- [filter],- );-- const handleDelete = useCallback(- async (item: WrongAnswer) => {- if (!window.confirm(t("Delete this wrong answer?"))) return;- setPendingId(item.id);- try {- await deleteWrongAnswer(item.id);- setItems((prev) => prev.filter((entry) => entry.id !== item.id));- setTotal((prev) => Math.max(0, prev - 1));- } catch (error) {- console.error("Failed to delete wrong answer", error);- } finally {- setPendingId(null);- }- },- [t],- );-- return (- <div className="h-full overflow-y-auto [scrollbar-gutter:stable]">- <div className="mx-auto max-w-[960px] px-6 py-8">- <div className="mb-6 flex items-start justify-between">- <div>- <h1 className="text-[24px] font-semibold tracking-tight text-[var(--foreground)]">- {t("Wrong Answer Note")}- </h1>- <p className="mt-1 text-[13px] text-[var(--muted-foreground)]">- {t("Review mistakes from past quizzes across sessions.")}- </p>- </div>- <button- onClick={() => void loadItems(filter)}- disabled={refreshing}- className="inline-flex items-center gap-1.5 rounded-lg border border-[var(--border)]/50 px-3 py-1.5 text-[12px] font-medium text-[var(--muted-foreground)] transition-colors hover:border-[var(--border)] hover:text-[var(--foreground)] disabled:opacity-40"- >- {refreshing ? (- <Loader2 className="h-3 w-3 animate-spin" />- ) : (- <RefreshCw className="h-3 w-3" />- )}- {t("Refresh")}- </button>- </div>-- <div className="mb-5 flex items-center justify-between border-b border-[var(--border)]/50 pb-3">- <div className="flex items-center gap-1">- {(["unresolved", "all"] as const).map((mode) => {- const active = filter === mode;- return (- <button- key={mode}- onClick={() => setFilter(mode)}- className={`inline-flex items-center gap-1.5 rounded-lg px-3 py-1.5 text-[13px] transition-colors ${- active- ? "bg-[var(--muted)] font-medium text-[var(--foreground)]"- : "text-[var(--muted-foreground)] hover:text-[var(--foreground)]"- }`}- >- {mode === "unresolved" ? t("Unresolved") : t("All")}- </button>- );- })}- </div>- <span className="text-[12px] text-[var(--muted-foreground)]">- {t("Total")}: {total}- </span>- </div>-- {loading ? (- <div className="flex min-h-[420px] items-center justify-center">- <Loader2 className="h-5 w-5 animate-spin text-[var(--muted-foreground)]" />- </div>- ) : items.length === 0 ? (- <div className="flex min-h-[320px] flex-col items-center justify-center rounded-xl border border-dashed border-[var(--border)] text-center">- <div className="mb-3 rounded-xl bg-[var(--muted)] p-2.5 text-[var(--muted-foreground)]">- <NotebookPen size={18} />- </div>- <p className="text-[14px] font-medium text-[var(--foreground)]">- {t("No wrong answers yet")}- </p>- <p className="mt-1.5 max-w-xs text-[13px] text-[var(--muted-foreground)]">- {t("Mistakes from your quizzes will appear here for review.")}- </p>- </div>- ) : (- <ul className="flex flex-col gap-3">- {items.map((item) => {- const disabled = pendingId === item.id;- return (- <li- key={item.id}- className={`rounded-xl border border-[var(--border)] px-5 py-4 transition-opacity ${- disabled ? "opacity-60" : ""- } ${item.resolved ? "bg-[var(--muted)]/30" : ""}`}- >- <div className="mb-3 flex items-start justify-between gap-3">- <div className="flex-1 min-w-0">- <div className="text-[14px] font-medium text-[var(--foreground)]">- <MarkdownRenderer- content={item.question}- variant="prose"- className="text-[14px] leading-relaxed"- />- </div>- </div>- <div className="flex items-center gap-1">- <button- onClick={() => void handleToggleResolved(item)}- disabled={disabled}- title={- item.resolved- ? t("Mark as Unresolved")- : t("Mark as Resolved")- }- className="rounded-lg p-1.5 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)] disabled:opacity-40"- >- {item.resolved ? (- <CheckCircle2 className="h-4 w-4 text-[var(--primary)]" />- ) : (- <Circle className="h-4 w-4" />- )}- </button>- <button- onClick={() => void handleDelete(item)}- disabled={disabled}- title={t("Delete")}- className="rounded-lg p-1.5 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)] disabled:opacity-40"- >- <Trash2 className="h-4 w-4" />- </button>- </div>- </div>-- <div className="grid gap-2 text-[13px] sm:grid-cols-2">- <div className="rounded-lg bg-[var(--muted)]/40 px-3 py-2">- <div className="text-[11px] uppercase tracking-wide text-[var(--muted-foreground)]">- {t("Your Answer")}- </div>- <div className="mt-1 text-[var(--foreground)]">- {item.user_answer || <span className="text-[var(--muted-foreground)]">โ</span>}- </div>- </div>- <div className="rounded-lg bg-[var(--muted)]/40 px-3 py-2">- <div className="text-[11px] uppercase tracking-wide text-[var(--muted-foreground)]">- {t("Correct Answer")}- </div>- <div className="mt-1 text-[var(--foreground)]">- {item.correct_answer || <span className="text-[var(--muted-foreground)]">โ</span>}- </div>- </div>- </div>-- <div className="mt-3 flex items-center justify-between text-[11px] text-[var(--muted-foreground)]">- <Link- href={`/?session=${encodeURIComponent(item.session_id)}`}- className="truncate hover:text-[var(--foreground)] hover:underline"- >- {t("From session")}: {item.session_title || item.session_id}- </Link>- <span>{formatDate(item.created_at)}</span>- </div>- </li>- );- })}- </ul>- )}- </div>- </div>- );-}diff --git a/web/app/(workspace)/guide/hooks/useNotebookSelection.ts b/web/app/(workspace)/guide/hooks/useNotebookSelection.tsindex 3b2361419..4e1d6a9ea 100644--- a/web/app/(workspace)/guide/hooks/useNotebookSelection.ts+++ b/web/app/(workspace)/guide/hooks/useNotebookSelection.ts@@ -1,5 +1,5 @@import { useState, useCallback } from "react";-import { getNotebookDetail, listNotebooks } from "@/lib/notebook-api";+import { listCategories, listNotebookEntries } from "@/lib/notebook-api";import { Notebook, NotebookRecord, SelectedRecord } from "../types";/**@@ -23,16 +23,16 @@ export function useNotebookSelection() {const fetchNotebooks = useCallback(async () => {try {- const data = await listNotebooks();- const notebooksWithRecords = data- .filter((nb) => (nb.record_count ?? 0) > 0)+ const categories = await listCategories();+ const notebooksWithRecords = categories+ .filter((cat) => (cat.entry_count ?? 0) > 0).map(- (nb): Notebook => ({- id: nb.id,- name: nb.name,- description: nb.description ?? "",- record_count: nb.record_count ?? 0,- color: nb.color ?? "",+ (cat): Notebook => ({+ id: String(cat.id),+ name: cat.name,+ description: "",+ record_count: cat.entry_count ?? 0,+ color: "",}),);setNotebooks(notebooksWithRecords);@@ -53,15 +53,15 @@ export function useNotebookSelection() {return newSet;});try {- const data = await getNotebookDetail(notebookId);- const records = (data.records || []).map(- (record): NotebookRecord => ({- id: record.id,- title: record.title,- summary: record.summary,- user_query: record.user_query ?? "",- output: record.output,- type: record.type,+ const data = await listNotebookEntries({ category_id: Number(notebookId) });+ const records = (data.items || []).map(+ (entry): NotebookRecord => ({+ id: String(entry.id),+ title: entry.question,+ summary: entry.explanation,+ user_query: entry.question,+ output: entry.correct_answer,+ type: entry.question_type,}),);setNotebookRecordsMap((prev) =>diff --git a/web/app/(workspace)/page.tsx b/web/app/(workspace)/page.tsxindex e84508765..e6ca48cd5 100644--- a/web/app/(workspace)/page.tsx+++ b/web/app/(workspace)/page.tsx@@ -161,7 +161,7 @@ const CAPABILITIES: CapabilityDef[] = [{value: "visualize",label: "Visualize",- description: "Generate SVG or Chart.js visualizations",+ description: "Generate SVG, Chart.js, or Mermaid visualizations",icon: BarChart3,allowedTools: [],defaultTools: [],diff --git a/web/app/globals.css b/web/app/globals.cssindex 1c2772899..e085f56e9 100644--- a/web/app/globals.css+++ b/web/app/globals.css@@ -47,6 +47,57 @@--ring: #D4734B;}+ .theme-glass {+ --background: #111111;+ --foreground: #ffffff;+ --card: rgba(255, 255, 255, 0.05);+ --card-foreground: #ffffff;+ --popover: rgba(255, 255, 255, 0.1);+ --popover-foreground: #ffffff;+ --primary: #9d50bb;+ --primary-foreground: #ffffff;+ --secondary: rgba(255, 255, 255, 0.03);+ --secondary-foreground: #eeeeee;+ --muted: rgba(255, 255, 255, 0.05);+ --muted-foreground: #aaaaaa;+ --accent: rgba(255, 255, 255, 0.1);+ --accent-foreground: #ffffff;+ --border: rgba(255, 255, 255, 0.1);+ --input: rgba(255, 255, 255, 0.05);+ --ring: #6e48aa;+ }++ .theme-glass body {+ background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #0f0f1a 100%);+ background-attachment: fixed;+ }++ .theme-glass .surface-card {+ backdrop-filter: blur(8px);+ -webkit-backdrop-filter: blur(8px);+ border: 1px solid rgba(255, 255, 255, 0.1);+ box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);+ }++ @media (min-width: 768px) {+ .theme-glass .surface-card {+ backdrop-filter: blur(12px);+ -webkit-backdrop-filter: blur(12px);+ }+ }++ .theme-glass .btn-primary {+ background: linear-gradient(45deg, #9d50bb, #6e48aa);+ box-shadow: 0 0 15px rgba(157, 80, 187, 0.4);+ border: none;+ transition: all 0.3s ease;+ }++ .theme-glass .btn-primary:hover {+ box-shadow: 0 0 25px rgba(157, 80, 187, 0.6);+ transform: translateY(-1px);+ }+* {@apply border-[color:var(--border)];scrollbar-width: thin;diff --git a/web/components/ThemeScript.tsx b/web/components/ThemeScript.tsxindex 7772f3eae..c3ba44874 100644--- a/web/components/ThemeScript.tsx+++ b/web/components/ThemeScript.tsx@@ -10,10 +10,14 @@ export default function ThemeScript() {try {const stored = localStorage.getItem('deeptutor-theme');+ document.documentElement.classList.remove('dark', 'theme-glass');+if (stored === 'dark') {document.documentElement.classList.add('dark');+ } else if (stored === 'glass') {+ document.documentElement.classList.add('dark', 'theme-glass');} else if (stored === 'light') {- document.documentElement.classList.remove('dark');+ // already clean} else {// Use system preference if not setif (window.matchMedia('(prefers-color-scheme: dark)').matches) {diff --git a/web/components/chat/home/ChatMessages.tsx b/web/components/chat/home/ChatMessages.tsxindex 45701f0d9..60cdba21a 100644--- a/web/components/chat/home/ChatMessages.tsx+++ b/web/components/chat/home/ChatMessages.tsx@@ -315,6 +315,7 @@ export function ChatMessageList({<>{messageRows.map(({ msg, pairedUserMessage }, i) => {if (msg.role === "user") {+ if (msg.content.startsWith("[Quiz Performance]")) return null;const showInlineControls =i === activeUserIndex &&(!msg.capability || msg.capability === "chat") &&diff --git a/web/components/notebook/SaveToNotebookModal.tsx b/web/components/notebook/SaveToNotebookModal.tsxindex 7755d494a..7cf0cf80a 100644--- a/web/components/notebook/SaveToNotebookModal.tsx+++ b/web/components/notebook/SaveToNotebookModal.tsx@@ -4,7 +4,7 @@ import { useEffect, useMemo, useRef, useState } from "react";import { Loader2, X } from "lucide-react";import { useTranslation } from "react-i18next";import { apiUrl } from "@/lib/api";-import { invalidateNotebookCaches, listNotebooks } from "@/lib/notebook-api";+import { listCategories } from "@/lib/notebook-api";type RecordType =| "solve"@@ -83,7 +83,8 @@ export default function SaveToNotebookModal({setSelectedIds([]);void (async () => {try {- setNotebooks(await listNotebooks());+ const cats = await listCategories();+ setNotebooks(cats.map((c) => ({ id: String(c.id), name: c.name })));} catch {setNotebooks([]);}@@ -162,7 +163,6 @@ export default function SaveToNotebookModal({} else if (type === "result") {const summary = String(event.payload.summary || finalSummary);setSummaryPreview(summary);- invalidateNotebookCaches();onSaved?.({ summary });setIsLoading(false);onClose();diff --git a/web/components/quiz/QuizViewer.tsx b/web/components/quiz/QuizViewer.tsxindex ef3a1c61c..93397ba15 100644--- a/web/components/quiz/QuizViewer.tsx+++ b/web/components/quiz/QuizViewer.tsx@@ -1,13 +1,33 @@"use client";import { useCallback, useEffect, useMemo, useRef, useState } from "react";-import { Check, ChevronLeft, ChevronRight, Eye, RotateCcw } from "lucide-react";+import {+ Bookmark,+ Check,+ ChevronDown,+ ChevronLeft,+ ChevronRight,+ Eye,+ FolderPlus,+ Loader2,+ Plus,+ RotateCcw,+} from "lucide-react";import { useTranslation } from "react-i18next";import MarkdownRenderer from "@/components/common/MarkdownRenderer";import QuestionFollowupPanel, {type FollowupThreadState,} from "@/components/quiz/QuestionFollowupPanel";import { buildQuizFollowupConfig, type QuizQuestion } from "@/lib/quiz-types";+import {+ addEntryToCategory,+ createCategory,+ listCategories,+ lookupNotebookEntry,+ updateNotebookEntry,+ upsertNotebookEntry,+ type NotebookCategory,+} from "@/lib/notebook-api";import { recordQuizResults } from "@/lib/session-api";import { shouldAppendEventContent } from "@/lib/stream";import { type StartTurnMessage, type StreamEvent, UnifiedWSClient } from "@/lib/unified-ws";@@ -86,6 +106,13 @@ export default function QuizViewer({Map<string, { questionKey: string; client: UnifiedWSClient }>>(new Map());+ const [entryIds, setEntryIds] = useState<Record<string, number>>({});+ const [bookmarked, setBookmarked] = useState<Record<string, boolean>>({});+ const [categories, setCategories] = useState<NotebookCategory[]>([]);+ const [categoryDropdownKey, setCategoryDropdownKey] = useState<string | null>(null);+ const [newCategoryName, setNewCategoryName] = useState("");+ const [categoryBusy, setCategoryBusy] = useState(false);+const q = questions[idx];const ans = answers[idx] ?? EMPTY_ANSWER;const total = questions.length;@@ -130,6 +157,108 @@ export default function QuizViewer({[],);+ // โโ Notebook integration โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ++ const refreshEntryId = useCallback(+ async (qKey: string, sId: string, questionIndex?: number) => {+ try {+ const entry = await lookupNotebookEntry(sId, qKey);+ if (entry) {+ setEntryIds((prev) => ({ ...prev, [qKey]: entry.id }));+ setBookmarked((prev) => ({ ...prev, [qKey]: entry.bookmarked }));+ if (questionIndex !== undefined && entry.user_answer) {+ setAnswers((prev) => {+ if (prev[questionIndex]?.submitted) return prev;+ return {+ ...prev,+ [questionIndex]: {+ selected: entry.user_answer || null,+ typed: entry.user_answer || "",+ submitted: true,+ },+ };+ });+ }+ }+ } catch {+ /* entry may not exist yet */+ }+ },+ [],+ );++ useEffect(() => {+ if (!sessionId) return;+ questions.forEach((question, i) => {+ const key = getQuestionKey(question, i);+ void refreshEntryId(key, sessionId, i);+ });+ }, [sessionId, questions, refreshEntryId]);++ const handleToggleBookmark = useCallback(async () => {+ if (!q || !sessionId) return;+ const key = getQuestionKey(q, idx);+ const eId = entryIds[key];+ if (!eId) return;+ const next = !bookmarked[key];+ setBookmarked((prev) => ({ ...prev, [key]: next }));+ try {+ await updateNotebookEntry(eId, { bookmarked: next });+ } catch {+ setBookmarked((prev) => ({ ...prev, [key]: !next }));+ }+ }, [bookmarked, entryIds, idx, q, sessionId]);++ const loadCategories = useCallback(async () => {+ try {+ setCategories(await listCategories());+ } catch { /* ignore */ }+ }, []);++ const handleOpenCategoryDropdown = useCallback(() => {+ if (!q) return;+ const key = getQuestionKey(q, idx);+ if (categoryDropdownKey === key) {+ setCategoryDropdownKey(null);+ return;+ }+ setCategoryDropdownKey(key);+ void loadCategories();+ }, [categoryDropdownKey, idx, loadCategories, q]);++ const handleAddToCategory = useCallback(+ async (catId: number) => {+ if (!q) return;+ const key = getQuestionKey(q, idx);+ const eId = entryIds[key];+ if (!eId) return;+ setCategoryBusy(true);+ try {+ await addEntryToCategory(eId, catId);+ setCategoryDropdownKey(null);+ } catch { /* ignore */ }+ setCategoryBusy(false);+ },+ [entryIds, idx, q],+ );++ const handleCreateAndAdd = useCallback(async () => {+ if (!q || !newCategoryName.trim()) return;+ const key = getQuestionKey(q, idx);+ const eId = entryIds[key];+ if (!eId) return;+ setCategoryBusy(true);+ try {+ const cat = await createCategory(newCategoryName.trim());+ await addEntryToCategory(eId, cat.id);+ setNewCategoryName("");+ setCategoryDropdownKey(null);+ } catch { /* ignore */ }+ setCategoryBusy(false);+ }, [entryIds, idx, newCategoryName, q]);++ // โโ Follow-up thread event handling โโโโโโโโโโโโโโโโโโโโโโโโโโโ+const handleThreadEvent = useCallback((key: string, event: StreamEvent) => {if (event.type === "session") {@@ -147,6 +276,10 @@ export default function QuizViewer({}));const runner = threadRunnersRef.current.get(key);if (runner) runner.questionKey = nextSessionId;+ const eId = entryIds[key];+ if (eId) {+ void updateNotebookEntry(eId, { followup_session_id: nextSessionId }).catch(() => {});+ }return;}@@ -201,7 +334,7 @@ export default function QuizViewer({return next;});},- [updateThread],+ [entryIds, updateThread],);const ensureThreadRunner = useCallback(@@ -282,8 +415,12 @@ export default function QuizViewer({{question_id: question.question_id,question: question.question,+ question_type: question.question_type,+ options: question.options ?? {},user_answer: getUserAnswer(question, answer),correct_answer: question.correct_answer,+ explanation: question.explanation ?? "",+ difficulty: question.difficulty ?? "",is_correct: isAnswerCorrect(question, answer),},];@@ -296,17 +433,51 @@ export default function QuizViewer({const signature = JSON.stringify(submittedResults);if (!signature || signature === lastReportedSignatureRef.current) return;lastReportedSignatureRef.current = signature;- void recordQuizResults(sessionId, submittedResults).catch((error) => {- console.error("Failed to record quiz results:", error);- if (lastReportedSignatureRef.current === signature) {- lastReportedSignatureRef.current = "";+ void recordQuizResults(sessionId, submittedResults)+ .then(() => {+ questions.forEach((question, i) => {+ void refreshEntryId(getQuestionKey(question, i), sessionId);+ });+ })+ .catch((error) => {+ console.error("Failed to record quiz results:", error);+ if (lastReportedSignatureRef.current === signature) {+ lastReportedSignatureRef.current = "";+ }+ });+ }, [completedCount, questions, refreshEntryId, sessionId, submittedResults, total]);++ const upsertSingleQuestion = useCallback(+ async (question: QuizQuestion, answer: AnswerState) => {+ if (!sessionId) return;+ const key = getQuestionKey(question, questions.indexOf(question));+ try {+ const entry = await upsertNotebookEntry({+ session_id: sessionId,+ question_id: question.question_id,+ question: question.question,+ question_type: question.question_type,+ options: question.options ?? {},+ correct_answer: question.correct_answer,+ explanation: question.explanation ?? "",+ difficulty: question.difficulty ?? "",+ user_answer: getUserAnswer(question, answer),+ is_correct: isAnswerCorrect(question, answer),+ });+ setEntryIds((prev) => ({ ...prev, [key]: entry.id }));+ setBookmarked((prev) => ({ ...prev, [key]: entry.bookmarked }));+ } catch {+ /* best-effort */}- });- }, [completedCount, sessionId, submittedResults, total]);+ },+ [questions, sessionId],+ );const handleSubmit = () => {- if (ans.submitted) return;+ if (ans.submitted || !q) return;+ const newAnswer = { ...(answers[idx] ?? EMPTY_ANSWER), submitted: true };updateAnswer({ submitted: true });+ void upsertSingleQuestion(q, newAnswer);};const handleReset = () => {@@ -367,6 +538,10 @@ export default function QuizViewer({if (!q) return null;+ const currentEntryId = entryIds[questionKey];+ const currentBookmarked = bookmarked[questionKey] ?? false;+ const showCategoryDropdown = categoryDropdownKey === questionKey;+return (<div className="overflow-hidden rounded-xl border border-[var(--border)] bg-[var(--card)]"><div className="flex items-center gap-1 border-b border-[var(--border)] px-3 py-2">@@ -416,26 +591,90 @@ export default function QuizViewer({</div><div className="px-4 py-3">- <div className="mb-2 flex flex-wrap items-center gap-1.5">- <span className="rounded-md bg-[var(--muted)] px-1.5 py-0.5 text-[10px] font-medium uppercase text-[var(--muted-foreground)]">- Q{idx + 1}- </span>- {q.difficulty && (- <span- className={`rounded-md px-1.5 py-0.5 text-[10px] font-medium uppercase ${- q.difficulty === "hard"- ? "bg-red-50 text-red-600 dark:bg-red-950/30 dark:text-red-400"- : q.difficulty === "medium"- ? "bg-amber-50 text-amber-600 dark:bg-amber-950/30 dark:text-amber-400"- : "bg-green-50 text-green-600 dark:bg-green-950/30 dark:text-green-400"- }`}- >- {q.difficulty}+ <div className="mb-2 flex items-center justify-between gap-2">+ <div className="flex flex-wrap items-center gap-1.5">+ <span className="rounded-md bg-[var(--muted)] px-1.5 py-0.5 text-[10px] font-medium uppercase text-[var(--muted-foreground)]">+ Q{idx + 1}+ </span>+ {q.difficulty && (+ <span+ className={`rounded-md px-1.5 py-0.5 text-[10px] font-medium uppercase ${+ q.difficulty === "hard"+ ? "bg-red-50 text-red-600 dark:bg-red-950/30 dark:text-red-400"+ : q.difficulty === "medium"+ ? "bg-amber-50 text-amber-600 dark:bg-amber-950/30 dark:text-amber-400"+ : "bg-green-50 text-green-600 dark:bg-green-950/30 dark:text-green-400"+ }`}+ >+ {q.difficulty}+ </span>+ )}+ <span className="rounded-md bg-[var(--muted)] px-1.5 py-0.5 text-[10px] font-medium text-[var(--muted-foreground)]">+ {q.question_type}</span>+ </div>++ {ans.submitted && (+ <div className="relative flex items-center gap-1">+ <button+ onClick={handleToggleBookmark}+ disabled={!currentEntryId}+ title={currentBookmarked ? t("Remove Bookmark") : t("Bookmark")}+ className={`rounded-lg p-1.5 transition-all disabled:opacity-30 ${+ currentBookmarked+ ? "scale-110 text-amber-500 dark:text-amber-400"+ : "text-[var(--muted-foreground)] hover:text-amber-500 dark:hover:text-amber-400"+ }`}+ >+ <Bookmark size={18} strokeWidth={currentBookmarked ? 2.5 : 1.8} fill={currentBookmarked ? "currentColor" : "none"} />+ </button>+ <button+ onClick={handleOpenCategoryDropdown}+ disabled={!currentEntryId}+ title={t("Add to Category")}+ className="rounded-lg p-1.5 text-[var(--muted-foreground)] transition-colors hover:text-[var(--foreground)] disabled:opacity-30"+ >+ <FolderPlus size={16} />+ </button>++ {showCategoryDropdown && (+ <div className="absolute right-0 top-8 z-20 w-48 rounded-lg border border-[var(--border)] bg-[var(--card)] py-1 shadow-lg">+ {categories.length > 0 && (+ <div className="max-h-[160px] overflow-y-auto">+ {categories.map((cat) => (+ <button+ key={cat.id}+ disabled={categoryBusy}+ onClick={() => void handleAddToCategory(cat.id)}+ className="flex w-full items-center gap-2 px-3 py-1.5 text-left text-[12px] text-[var(--foreground)] transition-colors hover:bg-[var(--muted)] disabled:opacity-40"+ >+ {cat.name}+ </button>+ ))}+ </div>+ )}+ <div className="border-t border-[var(--border)] px-2 py-1.5">+ <div className="flex items-center gap-1">+ <input+ value={newCategoryName}+ onChange={(e) => setNewCategoryName(e.target.value)}+ onKeyDown={(e) => e.key === "Enter" && void handleCreateAndAdd()}+ placeholder={t("New category...")}+ className="flex-1 rounded border border-[var(--border)] bg-[var(--background)] px-2 py-1 text-[11px] text-[var(--foreground)] outline-none placeholder:text-[var(--muted-foreground)]"+ />+ <button+ disabled={!newCategoryName.trim() || categoryBusy}+ onClick={() => void handleCreateAndAdd()}+ className="rounded p-1 text-[var(--primary)] disabled:opacity-30"+ >+ {categoryBusy ? <Loader2 size={12} className="animate-spin" /> : <Plus size={12} />}+ </button>+ </div>+ </div>+ </div>+ )}+ </div>)}- <span className="rounded-md bg-[var(--muted)] px-1.5 py-0.5 text-[10px] font-medium text-[var(--muted-foreground)]">- {q.question_type}- </span></div><div className="mb-3 text-[14px] leading-relaxed">@@ -554,7 +793,14 @@ export default function QuizViewer({{t("Reference Answer")}</div><div className="text-[13px] leading-relaxed text-[var(--foreground)]">- <MarkdownRenderer content={q.correct_answer} variant="prose" />+ <MarkdownRenderer+ content={+ q.question_type === "coding" && !q.correct_answer.trimStart().startsWith("```")+ ? `\`\`\`python\n${q.correct_answer}\n\`\`\``+ : q.correct_answer+ }+ variant="prose"+ /></div></div>)}diff --git a/web/components/sidebar/SidebarShell.tsx b/web/components/sidebar/SidebarShell.tsxindex 74d3074d6..1712981ee 100644--- a/web/components/sidebar/SidebarShell.tsx+++ b/web/components/sidebar/SidebarShell.tsx@@ -10,7 +10,6 @@ import {Brain,GraduationCap,MessageSquare,- NotebookPen,PanelLeftClose,PanelLeftOpen,PenLine,@@ -36,7 +35,6 @@ const PRIMARY_NAV: NavEntry[] = [{ href: "/guide", label: "Guided Learning", icon: GraduationCap },{ href: "/knowledge", label: "Knowledge", icon: BookOpen },{ href: "/memory", label: "Memory", icon: Brain },- { href: "/wrong-answers", label: "Wrong Answer Note", icon: NotebookPen },];const SECONDARY_NAV: NavEntry[] = [{ href: "/settings", label: "Settings", icon: Settings }];diff --git a/web/components/visualize/VisualizationViewer.tsx b/web/components/visualize/VisualizationViewer.tsxindex 987e68f5b..7899ed079 100644--- a/web/components/visualize/VisualizationViewer.tsx+++ b/web/components/visualize/VisualizationViewer.tsx@@ -3,6 +3,7 @@import { useEffect, useMemo, useRef, useState } from "react";import { Code2, Copy, Check } from "lucide-react";import { useTranslation } from "react-i18next";+import { Mermaid } from "@/components/Mermaid";import type { VisualizeResult } from "@/lib/visualize-types";function ChartJsRenderer({ config }: { config: string }) {@@ -127,6 +128,8 @@ export default function VisualizationViewer({<div className="overflow-hidden rounded-xl border border-[var(--border)] bg-[var(--background)] p-4">{result.render_type === "svg" ? (<SvgRenderer svg={result.code.content} />+ ) : result.render_type === "mermaid" ? (+ <Mermaid chart={result.code.content} />) : (<ChartJsRenderer config={result.code.content} />)}@@ -153,7 +156,11 @@ export default function VisualizationViewer({</button><span className="ml-auto text-[10px] uppercase tracking-wider text-[var(--muted-foreground)]/50">- {result.render_type === "svg" ? "SVG" : `Chart.js ยท ${result.analysis.chart_type || "chart"}`}+ {result.render_type === "svg"+ ? "SVG"+ : result.render_type === "mermaid"+ ? `Mermaid ยท ${result.analysis.chart_type || "diagram"}`+ : `Chart.js ยท ${result.analysis.chart_type || "chart"}`}</span></div>diff --git a/web/components/visualize/VisualizeConfigPanel.tsx b/web/components/visualize/VisualizeConfigPanel.tsxindex 5de7baa10..3a39ebff1 100644--- a/web/components/visualize/VisualizeConfigPanel.tsx+++ b/web/components/visualize/VisualizeConfigPanel.tsx@@ -28,6 +28,7 @@ export default function VisualizeConfigPanel({<option value="auto">{t("Auto")}</option><option value="chartjs">{t("Chart.js")}</option><option value="svg">{t("SVG")}</option>+ <option value="mermaid">{t("Mermaid")}</option></select></Field></div>diff --git a/web/lib/notebook-api.ts b/web/lib/notebook-api.tsindex d52b0d1c3..966ae3000 100644--- a/web/lib/notebook-api.ts+++ b/web/lib/notebook-api.ts@@ -1,65 +1,185 @@import { apiUrl } from "@/lib/api";-import { invalidateClientCache, withClientCache } from "@/lib/client-cache";-const NOTEBOOK_CACHE_PREFIX = "notebook:";+export interface NotebookEntry {+ id: number;+ session_id: string;+ session_title: string;+ question_id: string;+ question: string;+ question_type: string;+ options: Record<string, string>;+ correct_answer: string;+ explanation: string;+ difficulty: string;+ user_answer: string;+ is_correct: boolean;+ bookmarked: boolean;+ followup_session_id: string;+ created_at: number;+ updated_at: number;+ categories?: NotebookCategory[];+}-export interface NotebookSummary {- id: string;+export interface NotebookCategory {+ id: number;name: string;- description?: string;- record_count?: number;- color?: string;- icon?: string;- updated_at?: number;-}--export interface NotebookRecordSummary {- id: string;- type: string;- title: string;- summary?: string;- user_query?: string;- output: string;- metadata?: Record<string, unknown>;- created_at?: number;-}--export interface NotebookDetail extends NotebookSummary {- records: NotebookRecordSummary[];-}--export async function listNotebooks(options?: { force?: boolean }) {- return withClientCache<NotebookSummary[]>(- `${NOTEBOOK_CACHE_PREFIX}list`,- async () => {- const response = await fetch(apiUrl("/api/v1/notebook/list"), {- cache: "no-store",- });- const data = await response.json();- return Array.isArray(data?.notebooks) ? data.notebooks : [];- },- {- force: options?.force,- },+ created_at: number;+ entry_count: number;+}++export interface NotebookEntryListResponse {+ items: NotebookEntry[];+ total: number;+}++async function expectJson<T>(response: Response): Promise<T> {+ if (!response.ok) {+ throw new Error(`Request failed: ${response.status}`);+ }+ return response.json() as Promise<T>;+}++// โโ Entries โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ++export async function listNotebookEntries(filter: {+ category_id?: number;+ bookmarked?: boolean;+ is_correct?: boolean;+ limit?: number;+ offset?: number;+} = {}): Promise<NotebookEntryListResponse> {+ const params = new URLSearchParams();+ if (filter.category_id !== undefined) params.set("category_id", String(filter.category_id));+ if (filter.bookmarked !== undefined) params.set("bookmarked", String(filter.bookmarked));+ if (filter.is_correct !== undefined) params.set("is_correct", String(filter.is_correct));+ if (filter.limit !== undefined) params.set("limit", String(filter.limit));+ if (filter.offset !== undefined) params.set("offset", String(filter.offset));+ const query = params.toString();+ const response = await fetch(+ apiUrl(`/api/v1/question-notebook/entries${query ? `?${query}` : ""}`),+ { cache: "no-store" },);+ return expectJson<NotebookEntryListResponse>(response);}-export async function getNotebookDetail(notebookId: string, options?: { force?: boolean }) {- return withClientCache<NotebookDetail>(- `${NOTEBOOK_CACHE_PREFIX}detail:${notebookId}`,- async () => {- const response = await fetch(apiUrl(`/api/v1/notebook/${notebookId}`), {- cache: "no-store",- });- return response.json() as Promise<NotebookDetail>;- },+export async function getNotebookEntry(entryId: number): Promise<NotebookEntry> {+ const response = await fetch(apiUrl(`/api/v1/question-notebook/entries/${entryId}`), {+ cache: "no-store",+ });+ return expectJson<NotebookEntry>(response);+}++export async function lookupNotebookEntry(+ sessionId: string,+ questionId: string,+): Promise<NotebookEntry | null> {+ const params = new URLSearchParams({ session_id: sessionId, question_id: questionId });+ const response = await fetch(+ apiUrl(`/api/v1/question-notebook/entries/lookup/by-question?${params}`),+ );+ if (response.status === 404) return null;+ return expectJson<NotebookEntry>(response);+}++export async function updateNotebookEntry(+ entryId: number,+ updates: { bookmarked?: boolean; followup_session_id?: string },+): Promise<void> {+ const response = await fetch(apiUrl(`/api/v1/question-notebook/entries/${entryId}`), {+ method: "PATCH",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify(updates),+ });+ await expectJson<{ updated: boolean }>(response);+}++export async function upsertNotebookEntry(data: {+ session_id: string;+ question_id: string;+ question: string;+ question_type?: string;+ options?: Record<string, string>;+ correct_answer?: string;+ explanation?: string;+ difficulty?: string;+ user_answer?: string;+ is_correct?: boolean;+}): Promise<NotebookEntry> {+ const response = await fetch(apiUrl("/api/v1/question-notebook/entries/upsert"), {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({+ ...data,+ options: data.options || {},+ explanation: data.explanation || "",+ difficulty: data.difficulty || "",+ }),+ });+ return expectJson<NotebookEntry>(response);+}++export async function deleteNotebookEntry(entryId: number): Promise<void> {+ const response = await fetch(apiUrl(`/api/v1/question-notebook/entries/${entryId}`), {+ method: "DELETE",+ });+ await expectJson<{ deleted: boolean }>(response);+}++// โโ Entry โ Category โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ++export async function addEntryToCategory(entryId: number, categoryId: number): Promise<void> {+ const response = await fetch(+ apiUrl(`/api/v1/question-notebook/entries/${entryId}/categories`),{- ttlMs: 15_000,- force: options?.force,+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({ category_id: categoryId }),},);+ await expectJson<{ added: boolean }>(response);+}++export async function removeEntryFromCategory(+ entryId: number,+ categoryId: number,+): Promise<void> {+ const response = await fetch(+ apiUrl(`/api/v1/question-notebook/entries/${entryId}/categories/${categoryId}`),+ { method: "DELETE" },+ );+ await expectJson<{ removed: boolean }>(response);+}++// โโ Categories โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ++export async function listCategories(): Promise<NotebookCategory[]> {+ const response = await fetch(apiUrl("/api/v1/question-notebook/categories"), {+ cache: "no-store",+ });+ return expectJson<NotebookCategory[]>(response);+}++export async function createCategory(name: string): Promise<NotebookCategory> {+ const response = await fetch(apiUrl("/api/v1/question-notebook/categories"), {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({ name }),+ });+ return expectJson<NotebookCategory>(response);+}++export async function renameCategory(categoryId: number, name: string): Promise<void> {+ const response = await fetch(apiUrl(`/api/v1/question-notebook/categories/${categoryId}`), {+ method: "PATCH",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({ name }),+ });+ await expectJson<{ updated: boolean }>(response);}-export function invalidateNotebookCaches() {- invalidateClientCache(NOTEBOOK_CACHE_PREFIX);+export async function deleteCategory(categoryId: number): Promise<void> {+ const response = await fetch(apiUrl(`/api/v1/question-notebook/categories/${categoryId}`), {+ method: "DELETE",+ });+ await expectJson<{ deleted: boolean }>(response);}diff --git a/web/lib/session-api.ts b/web/lib/session-api.tsindex 77c4084eb..b763d9872 100644--- a/web/lib/session-api.ts+++ b/web/lib/session-api.ts@@ -73,8 +73,12 @@ export interface SessionDetail {export interface QuizResultItem {question_id?: string;question: string;+ question_type?: string;+ options?: Record<string, string>;user_answer: string;correct_answer: string;+ explanation?: string;+ difficulty?: string;is_correct: boolean;}diff --git a/web/lib/theme-utils.ts b/web/lib/theme-utils.tsindex c82bf108e..4b2cb7b9e 100644--- a/web/lib/theme-utils.ts+++ b/web/lib/theme-utils.ts@@ -9,7 +9,9 @@ import { setTheme, type Theme } from "./theme";* Toggle theme between light and dark*/export function toggleTheme(currentTheme: Theme): Theme {- const newTheme = currentTheme === "light" ? "dark" : "light";+ const order: Theme[] = ["light", "dark", "glass"];+ const idx = order.indexOf(currentTheme);+ const newTheme = order[(idx + 1) % order.length];setTheme(newTheme);return newTheme;}@@ -32,7 +34,9 @@ export function setDarkTheme(): void {* Get CSS class for theme-aware styling*/export function getThemeClass(theme: Theme): string {- return theme === "dark" ? "dark" : "";+ if (theme === "dark") return "dark";+ if (theme === "glass") return "dark theme-glass";+ return "";}/**@@ -58,7 +62,7 @@ export function onThemeChange(callback: (theme: Theme) => void): () => void {const handleStorageChange = (e: StorageEvent) => {if (e.key === "deeptutor-theme" &&- (e.newValue === "light" || e.newValue === "dark")+ (e.newValue === "light" || e.newValue === "dark" || e.newValue === "glass")) {callback(e.newValue);}diff --git a/web/lib/theme.ts b/web/lib/theme.tsindex 4d7630bd1..757fae624 100644--- a/web/lib/theme.ts+++ b/web/lib/theme.ts@@ -3,7 +3,7 @@* Handles light/dark theme with localStorage fallback and system preference detection*/-export type Theme = "light" | "dark";+export type Theme = "light" | "dark" | "glass";export const THEME_STORAGE_KEY = "deeptutor-theme";@@ -35,7 +35,7 @@ export function getStoredTheme(): Theme | null {try {const stored = localStorage.getItem(THEME_STORAGE_KEY);- if (stored === "light" || stored === "dark") {+ if (stored === "light" || stored === "dark" || stored === "glass") {return stored;}} catch (e) {@@ -78,10 +78,13 @@ export function applyThemeToDocument(theme: Theme): void {if (typeof document === "undefined") return;const html = document.documentElement;++ html.classList.remove("dark", "theme-glass");+if (theme === "dark") {html.classList.add("dark");- } else {- html.classList.remove("dark");+ } else if (theme === "glass") {+ html.classList.add("dark", "theme-glass");}}diff --git a/web/lib/visualize-types.ts b/web/lib/visualize-types.tsindex ba6a3b411..0a04fcd01 100644--- a/web/lib/visualize-types.ts+++ b/web/lib/visualize-types.ts@@ -1,5 +1,5 @@-export type VisualizeRenderType = "svg" | "chartjs";-export type VisualizeRenderMode = "auto" | "svg" | "chartjs";+export type VisualizeRenderType = "svg" | "chartjs" | "mermaid";+export type VisualizeRenderMode = "auto" | "svg" | "chartjs" | "mermaid";export interface VisualizeFormConfig {render_mode: VisualizeRenderMode;@@ -43,7 +43,7 @@ export function extractVisualizeResult(if (!resultMetadata) return null;const renderType = resultMetadata.render_type;- if (renderType !== "svg" && renderType !== "chartjs") return null;+ if (renderType !== "svg" && renderType !== "chartjs" && renderType !== "mermaid") return null;const codeRaw =resultMetadata.code && typeof resultMetadata.code === "object"diff --git a/web/lib/wrong-answer-api.ts b/web/lib/wrong-answer-api.tsdeleted file mode 100644index 5223e9111..000000000--- a/web/lib/wrong-answer-api.ts+++ /dev/null@@ -1,66 +0,0 @@-import { apiUrl } from "@/lib/api";--export interface WrongAnswer {- id: number;- session_id: string;- session_title: string;- question_id: string;- question: string;- user_answer: string;- correct_answer: string;- resolved: boolean;- created_at: number;- resolved_at: number | null;-}--export interface WrongAnswerListResponse {- items: WrongAnswer[];- total: number;-}--async function expectJson<T>(response: Response): Promise<T> {- if (!response.ok) {- throw new Error(`Request failed: ${response.status}`);- }- return response.json() as Promise<T>;-}--export async function listWrongAnswers(- filter: { resolved?: boolean; limit?: number; offset?: number } = {},-): Promise<WrongAnswerListResponse> {- const params = new URLSearchParams();- if (filter.resolved !== undefined) {- params.set("resolved", String(filter.resolved));- }- if (filter.limit !== undefined) {- params.set("limit", String(filter.limit));- }- if (filter.offset !== undefined) {- params.set("offset", String(filter.offset));- }- const query = params.toString();- const response = await fetch(- apiUrl(`/api/v1/wrong-answers${query ? `?${query}` : ""}`),- { cache: "no-store" },- );- return expectJson<WrongAnswerListResponse>(response);-}--export async function updateWrongAnswerResolved(- id: number,- resolved: boolean,-): Promise<void> {- const response = await fetch(apiUrl(`/api/v1/wrong-answers/${id}`), {- method: "PATCH",- headers: { "Content-Type": "application/json" },- body: JSON.stringify({ resolved }),- });- await expectJson<{ updated: boolean }>(response);-}--export async function deleteWrongAnswer(id: number): Promise<void> {- const response = await fetch(apiUrl(`/api/v1/wrong-answers/${id}`), {- method: "DELETE",- });- await expectJson<{ deleted: boolean }>(response);-}diff --git a/web/locales/en/app.json b/web/locales/en/app.jsonindex e490849c6..f6bd94838 100644--- a/web/locales/en/app.json+++ b/web/locales/en/app.json@@ -858,19 +858,33 @@"Image Output": "Image Output","Fullscreen math animation output": "Fullscreen math animation output","Delete this chat history?": "Delete this chat history?",- "Wrong Answer Note": "Wrong Answer Note",- "Review mistakes from past quizzes across sessions.": "Review mistakes from past quizzes across sessions.",- "Unresolved": "Unresolved",+ "Question Notebook": "Question Notebook",+ "Review and organize quiz questions across sessions.": "Review and organize quiz questions across sessions.","All": "All",+ "Bookmarked": "Bookmarked",+ "Wrong Only": "Wrong Only","Total": "Total","Refresh": "Refresh",- "No wrong answers yet": "No wrong answers yet",- "Mistakes from your quizzes will appear here for review.": "Mistakes from your quizzes will appear here for review.",+ "Categories": "Categories",+ "Manage Categories": "Manage Categories",+ "New category name...": "New category name...",+ "New category...": "New category...",+ "Delete this category?": "Delete this category?",+ "Remove from category": "Remove from category",+ "No entries yet": "No entries yet",+ "Questions from your quizzes will appear here.": "Questions from your quizzes will appear here.","Your Answer": "Your Answer","Correct Answer": "Correct Answer","From session": "From session",- "Mark as Resolved": "Mark as Resolved",- "Mark as Unresolved": "Mark as Unresolved",+ "Follow-up": "Follow-up",+ "Bookmark": "Bookmark",+ "Remove Bookmark": "Remove Bookmark",+ "Add to Category": "Add to Category","Delete": "Delete",- "Delete this wrong answer?": "Delete this wrong answer?"+ "Delete this entry?": "Delete this entry?",+ "Failed to load entries": "Failed to load entries",+ "Retry": "Retry",+ "Your pick": "Your pick",+ "No categories yet.": "No categories yet.",+ "Original Session": "Original Session"}diff --git a/web/locales/zh/app.json b/web/locales/zh/app.jsonindex 3911f94dd..4414dea46 100644--- a/web/locales/zh/app.json+++ b/web/locales/zh/app.json@@ -858,19 +858,33 @@"Image Output": "ๅพ็่พๅบ","Fullscreen math animation output": "ๅ จๅฑๆฐๅญฆๅจ็ป่พๅบ","Delete this chat history?": "็กฎๅฎๅ ้คๆญค่ๅคฉ่ฎฐๅฝๅ๏ผ",- "Wrong Answer Note": "้้ขๆฌ",- "Review mistakes from past quizzes across sessions.": "่ทจไผ่ฏๅ้กพ่ฟๅพๆต้ชไธญ็ญ้็้ข็ฎใ",- "Unresolved": "ๆช่งฃๅณ",+ "Question Notebook": "้ข็ฎ็ฌ่ฎฐๆฌ",+ "Review and organize quiz questions across sessions.": "่ทจไผ่ฏๅ้กพๅๆด็ๆต้ช้ข็ฎใ","All": "ๅ จ้จ",+ "Bookmarked": "ๅทฒๆถ่",+ "Wrong Only": "ไป ้้ข","Total": "ๆป่ฎก","Refresh": "ๅทๆฐ",- "No wrong answers yet": "ๆๆ ้้ข",- "Mistakes from your quizzes will appear here for review.": "ๆต้ชไธญ็ญ้็้ข็ฎๅฐๆฑๆปๅฐๆญคๅคไพๅคไน ไฝฟ็จใ",+ "Categories": "ๅ็ฑป",+ "Manage Categories": "็ฎก็ๅ็ฑป",+ "New category name...": "ๆฐๅ็ฑปๅ็งฐ...",+ "New category...": "ๆฐๅ็ฑป...",+ "Delete this category?": "็กฎๅฎๅ ้คๆญคๅ็ฑปๅ๏ผ",+ "Remove from category": "ไปๅ็ฑปไธญ็งป้ค",+ "No entries yet": "ๆๆ ้ข็ฎ",+ "Questions from your quizzes will appear here.": "ๆต้ชไธญ็้ข็ฎๅฐๆฑๆปๅฐๆญคๅคใ","Your Answer": "ไฝ ็็ญๆก","Correct Answer": "ๆญฃ็กฎ็ญๆก","From session": "ๆฅ่ชไผ่ฏ",- "Mark as Resolved": "ๆ ่ฎฐไธบๅทฒ่งฃๅณ",- "Mark as Unresolved": "ๆ ่ฎฐไธบๆช่งฃๅณ",+ "Follow-up": "่ฟฝ้ฎๅฏน่ฏ",+ "Bookmark": "ๆถ่",+ "Remove Bookmark": "ๅๆถๆถ่",+ "Add to Category": "ๆทปๅ ๅฐๅ็ฑป","Delete": "ๅ ้ค",- "Delete this wrong answer?": "็กฎๅฎๅ ้คๆญค้้ขๅ๏ผ"+ "Delete this entry?": "็กฎๅฎๅ ้คๆญคๆก็ฎๅ๏ผ",+ "Failed to load entries": "ๅ ่ฝฝๅคฑ่ดฅ",+ "Retry": "้่ฏ",+ "Your pick": "ไฝ ็้ๆฉ",+ "No categories yet.": "ๆๆ ๅ็ฑปใ",+ "Original Session": "ๅๅงไผ่ฏ"}