web/lib/api.ts: defer NEXT_PUBLIC_API_BASE placeholder check from
module-load to first call. Docker bakes the literal placeholder for
runtime sed substitution, but Next.js evaluates this module during
static export of every prerendered page — the old throw failed the
admin/users page export and aborted the entire build.
Test alignment with shipped code (no behavior change):
- test_path_service: override _workspace_root alongside _project_root,
since get_memory_dir() reads workspace_root, not _user_data_dir.
- test_meta_settings: assertions now match shipped defaults
(l2_budget=20, min_chunk_chars=1000, max_chunk_chars=64000).
- test_unified_ws_turn_runtime + test_regenerate: drop emit_calls
assertions; turn_runtime doesn't emit a memory trace after chat
turns (feature was never wired up).
- test_turn_runtime_subscribe: 200 polls × 10ms instead of 20 × 0,
Python 3.14's asyncio scheduler doesn't give sleep(0) enough ticks
for the subscriber-append race.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
VitePress GitHub Pages deploy is not in use; remove the workflow added
alongside the pypi-release fix.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The .github entry in .gitignore silently excluded pypi-release.yml and
docs.yml from version control, so the PyPI publish workflow never reached
the default branch and didn't fire for release events.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Restores shields.io default internal padding on each pill and keeps
the single between pills. Height stays at 40 so the glyphs
read at the size we landed on.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Resize from 2940 px wide to 1600 px and palette-quantize to 256 colors,
keeping text/labels readable while bringing the file in line with the
other dt-*.png screenshots used in the README.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- height 36 -> 40 so glyphs read clearly without a magnifier
- gap between pills -> single so the row stays
compact
- one leading + trailing %20 space inside each badge label so the
text doesn't kiss the pill edges
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Inserts two non-breaking spaces between each language pill so the
row reads less cramped without forcing a wrap.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Bumps the language-switcher SVGs to 28px tall so the pills line up
better with the Trendshift badge above and the Python / Next.js
shields below, and gives the labels a more readable text size on
high-DPI displays.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
shields.io uses Verdana/Helvetica fallbacks that lack proper text
shaping for Arabic (RTL join), Devanagari (combining marks), and
Thai (combining tone marks), so the native names rendered as
separated, broken glyphs. Switch those three to ASCII names
(Arabic / Hindi / Thai) to mirror ragflow's same workaround; the
links still resolve to the Arabic / Hindi / Thai README files.
Also bump pill colors from DBEDFA / DFE0E5 to BCDCF7 / CDCFD4 so
they read better against the page background.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Drops the flat-square shields in favor of the lighter ragflow pattern:
an HTML <p align="center"> wrapper with <a><img> pills using DBEDFA
(soft blue) for the active English link and DFE0E5 (soft grey) for
the ten translations. The header now reads cleaner alongside the
existing Trendshift / Python / Next.js / License badges.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Replaces the flag-based language line at the bottom of the header
with shields.io badge pills positioned right under the Trendshift
badge. English is highlighted (blue), the ten translations use a
neutral grey. Same destinations as before.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
PyPI normalizes ``1.4.0-beta`` to ``1.4.0b0``, so the default
``pip install -U deeptutor`` stays on the latest stable. Add a short
callout under Option 1 covering ``pip install --pre`` and the exact
``deeptutor==1.4.0b0`` pin.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Quiz follow-up:
- New FollowupChatComposer + QuizFollowupContext let the user start a
chat thread directly from a quiz question. The composer reuses the
main ChatComposer (look, @space pickers, KB picker, attachments,
LLM selector) but routes sends through a dedicated follow-up
controller.
- New quiz_judge router + quiz-judge.ts helper power judging
follow-up answers inline.
- The older QuestionFollowupPanel.tsx is removed; QuizConfigPanel /
QuizViewer are updated to the new follow-up surface.
GeoGebra viewer:
- New Geogebra.tsx applet renderer (loaded via the official GGB
applet script) so geometry / algebra snippets can open inline
alongside chat answers. GeogebraOpenCTA + GeogebraTabContext add
the tab plumbing.
Book updates:
- book/blocks/quiz.py + book/engine.py + storage.py and the related
book components pick up the new quiz surface.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Capability infrastructure:
- New capabilities/_shared.emit_capability_result helper fills the
result envelope (label, summary, payload, render hints, UsageTracker
totals) consistently across modes.
- StatusI18n loads capability status copy from
capabilities/prompts/{en,zh}/<name>.yaml; legacy main.yaml strings
removed.
- New capabilities_settings router + service-config module power the
/settings/capabilities admin page (live capability list, defaults,
per-capability overrides).
Visualize + Animator merge:
- Visualize's AnalysisAgent now picks one of six render_types:
svg / chartjs / mermaid / html (text pipeline) or manim_video /
manim_image (Manim subprocess). The result envelope carries
render_type so the frontend delegates to the right viewer.
- math_animator capability is folded behind Visualize; the standalone
MathAnimatorConfigPanel.tsx is removed. The Animator sidebar entry
is gone, but Manim outputs and existing records remain unaffected.
Settings UI:
- /settings page split into appearance / capabilities / embedding /
llm / mcp / memory / search / status / tools tabs with a shared
layout and items index.
- New /settings/tools page lists chat-mountable tools and surfaces
availability (e.g. gh for github_query) via a new tools router.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Auto capability (agents/auto/) gains a three-stage agent loop:
ANALYZING (one LLM call, streamed as thinking) -> DELEGATING (router
emits delegate_to_<cap> tool calls or atomic tool calls, with bounded
retries and a same-cap quota) -> SYNTHESIZING (final inline answer).
Sub-capability events flow through forward_events with call_id tagging
so conversation history keeps only Auto's own synthesis.
New chat-mountable tools:
- ask_user: pauses the turn for 1-3 structured questions, frontend
renders a card the user navigates and submits in one batch
- web_fetch: HTTP + readable-content extraction with strict
scheme/private-IP/size guards (pre-flight + post-redirect)
- write_note: replaces save_to_notebook; append (new record) and
edit (existing record by id) modes
- list_notebook: read-only index / drill-down listing; only mounted
when the user has notebooks
- github_query: read-only ``gh`` CLI wrapper (pr/issue/run/repo plus
GET-only api); no mutation verbs reachable
Updates chat agentic_pipeline.py + agentic_chat.yaml (en/zh) to the
new tool surface and source-inventory contract, refits
tools/builtin/__init__.py as the single place to register
chat-mounted tools and their argument-augmentation wrappers, and
tightens core stream + tool_protocol around tool-result metadata.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Replaces three bespoke multi-agent pipelines with orchestrators on top
of a shared agentic-engine primitive set (core/agentic/: labeled_step,
loop, tool_dispatch, usage, client). Each capability now lives in one
pipeline.py file with one pipeline.yaml prompt.
- Deep Research: Rephrase (ask_user loop) -> Decompose (OUTLINE) ->
Research blocks (THINK/TOOL/APPEND/FINISH per topic, dynamic queue
preserved) -> Reporting (OUTLINE/INTRO/SECTION/CONCLUSION).
CitationManager and the dynamic topic queue are kept.
- Deep Solve: Pre-retrieve (KB-only, QUERIES/rag/SUMMARY) -> Plan ->
per-step THINK/TOOL/FINISH/REPLAN loop with back-edge to Plan ->
Synthesize. Step FINISH text flows into the next step's context.
- Question: coordinator + pipeline replace generator / idea_agent /
models, with new history.py and mimic_source.py helpers.
Removed: research/agents/, research/research_pipeline.py,
research/prompts/{en,zh}/*.yaml (legacy multi-agent prompts);
solve/agents/, solve/memory/, solve/utils/, main_solver.py,
session_manager.py, tool_runtime.py and old prompts;
question/agents/{generator,idea_agent}.py, example.py, models.py,
old prompts; api/routers/solve.py (capability owns its own routing).
Adds shared agents/_shared/tool_composition.py for cross-pipeline
tool wiring. Updates deep_research/deep_solve/deep_question
capabilities to dispatch through the new pipelines.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Replaces the flat single-blob memory page with a structured store:
- L1 captures raw run traces; L2 holds normalized document records;
L3 holds curated slots per surface (chat, notebook, book, TutorBot).
- New consolidator pipeline (chunker, guards, parse, references, runs,
modes, line-doc, meta) turns traces into versioned line-oriented
documents with stable ids and snapshot history.
- Per-user isolation flows through PathService; the store API is
stateless.
UI ships a dedicated /memory workbench with graph / L1 / L2 / L3 /
resolve subpages, plus a reusable MemorySection embedded where the
legacy panel lived.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
deleteMessage was the one remaining raw fetch() call in session-api.ts.
After PR #474 wired multi-user auth through apiFetch (which attaches the
JWT bearer token from local storage / cookies), this call would fail with
401 Unauthorized in multi-user mode.
Switch to apiFetch to match the convention established for every other
authenticated session call in this file.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>