Commit Graph

59 Commits

Author SHA1 Message Date
Srini
957b3b099f feat(embedding): add Gemini embedding provider support across runtime and setup tour
Register Gemini as a first-class embedding provider with endpoint/env defaults, expose it in start_tour embedding selection, and add regression coverage for runtime resolution and wizard options
2026-04-29 12:35:36 -07:00
Bingxi Zhao (Frank)
28e225ee0e chore: prepare v1.3.1 release
Stability release after v1.3.0 covering safer RAG/KB routing, stronger
embedding validation, more reliable Docker/TutorBot restarts, Web UX
fixes, and Windows/encoding hardening. See assets/releases/ver1-3-1.md
for the full notes.

Made-with: Cursor
2026-04-28 12:00:11 +08:00
Bingxi Zhao
8594b46cf8 Merge pull request #391 from jonathanzhan1975/fix/server-deps-and-utf8-encoding
fix: server startup on Windows + missing runtime deps in server.txt
2026-04-27 10:32:56 +08:00
jonathanzhan1975
8e1ceba3aa fix: server startup on Windows + missing runtime deps
Two independent issues that block `python scripts/start_web.py` after a
clean install on Windows:

1. UnicodeDecodeError when streaming subprocess output

   `_spawn()` opened the backend / frontend stdout pipe with `text=True`
   but no explicit encoding. On Windows this defaults to the system
   ANSI codepage (e.g. `gbk` on Chinese Windows), which raises
   `UnicodeDecodeError` as soon as the child process emits a UTF-8 byte.

   Fix: pin `encoding="utf-8"` and `errors="replace"` so any locale
   produces clean, lossless output.

2. Missing runtime dependencies in requirements/server.txt

   `deeptutor/services/llm/provider_core/__init__.py` unconditionally
   imports `AnthropicProvider`, `OpenAICompatProvider`, and
   `OpenAIResponses`, which in turn import:

     - `loguru`        (provider_core/base.py, openai_codex_provider.py,
                        openai_responses/parsing.py)
     - `json_repair`   (anthropic_provider.py, openai_compat_provider.py,
                        openai_responses/parsing.py)

   These are declared only in `requirements/tutorbot.txt`, so
   `pip install -r requirements/server.txt && pip install -e .` followed
   by `python scripts/start_web.py` crashes with `ModuleNotFoundError`
   before the API server can serve a single request.

   Fix: declare both packages in `server.txt` with the same version
   bounds used by `tutorbot.txt`.

Reproduced and verified on Windows 11 + Python 3.12 + a fresh venv.
2026-04-26 09:16:06 +08:00
Bingxi Zhao (Frank)
6428458049 chore: prepare v1.2.5 release 2026-04-25 22:08:44 +08:00
Bingxi Zhao (Frank)
c89a3df8a5 chore: prepare v1.2.4 release 2026-04-25 15:10:55 +08:00
Bingxi Zhao
f2686c4820 Merge pull request #376 from rogercsi/fix/uv-pip-compat
fix(scripts): prefer uv pip over python -m pip in start_tour.py
2026-04-25 14:19:52 +08:00
jonathanzhan1975
5586b7861e fix: use npm.cmd for version detection on Windows
On Windows, npm is installed as npm.cmd rather than a plain executable.
subprocess.run(['npm', '--version']) without shell=True raises
FileNotFoundError, causing the Node.js detection step to always report
npm as missing even when it is properly installed.

Reuse the existing _get_npm_command() helper (which already returns
npm.cmd on Windows) for the version-detection call, consistent with
how npm is invoked later during npm install.
2026-04-25 08:59:12 +08:00
Bingxi Zhao (Frank)
b5eab8b67a fix: tour 2026-04-24 23:15:26 +08:00
zouchengfu
55e744ac63 fix(scripts): prefer uv pip over python -m pip in start_tour.py
uv-managed .venv environments may have pip disabled (PEP 668 / uv's
default hardening).  Running `python -m pip install` inside such a venv
raises a CalledProcessError even though uv itself is available.

Introduce `_resolve_pip_cmd()` which checks `shutil.which("uv")` at startup:

- uv found  → use ["uv", "pip"] (uv auto-detects the active venv)
- uv absent → fall back to [_PYTHON, "-m", "pip"] (no regression)

All pip invocations in `_bootstrap()` and `_install_commands()` now use
`_PIP_CMD` instead of the hard-coded `[_PYTHON, "-m", "pip"]` prefix.
2026-04-24 22:53:16 +08:00
Bingxi Zhao (Frank)
4b7d24d33e release: v1.2.3 — document attachments, thinking blocks, provider core refactor
- Chat document attachments (PDF/DOCX/XLSX/PPTX) with text extraction
- Reasoning model <think> block display as collapsible cards
- Tri-state send_dimensions toggle for embeddings (#368)
- LLM provider_core module refactor + context_window detection
- Soul template editor (PR #373), Co-Writer save-to-notebook
- Knowledge Base drag-and-drop upload, delete resilience (#370),
  progress persistence, supported-file-types endpoint
- Question generation language fidelity via shared prompt directives
- Settings tour redesign, CLI notebook add-md/replace-md
- Bug fixes: CJK bot name slug, I18nProvider init, Skills default off,
  Moonshot base URL, version badge
- Provider registry: custom_anthropic, thinking_style, alias expansion
- +1900 test lines across 15 new/expanded test files

Made-with: Cursor
2026-04-24 22:36:32 +08:00
Bingxi Zhao (Frank)
77f29cbcc7 fix lint 2026-04-23 19:29:16 +08:00
Bingxi Zhao (Frank)
2745e8bde9 feat(book): introduce book capability and restructure guide/co_writer modules
- Add new `deeptutor/book/` module with multi-agent pipeline
  (ideation, spine, page planner, source explorer, synthesizer)
  and rich block system (text, code, figure, quiz, flash cards,
  callout, deep dive, timeline, animation, concept graph, etc.)
- Add `/api/routers/book.py` and `deeptutor_cli/book.py` entry points
- Add web UI under `web/app/(workspace)/book/` with sidebar,
  chat panel, page reader, spine editor, progress timeline, and
  block renderers
- Move `deeptutor/agents/co_writer` -> `deeptutor/co_writer` and
  `deeptutor/agents/guide` -> `deeptutor/guide` (then remove guide
  entirely now superseded by book)
- Remove legacy guide UI, hooks, types, and API router
- Update visualize agents/prompts, notebook service, prompt manager,
  session turn runtime, and shared services to support new flows
- Refresh chat composer, sidebar, notebook selector, and locales

Made-with: Cursor
2026-04-20 00:33:33 +08:00
Bingxi Zhao (Frank)
9544075d60 v1.1.0-beta
URL-based chat routing, Snow theme, WebSocket heartbeat & auto-reconnect,
ChatComposer perf optimization, embedding provider registry overhaul,
Serper search provider, streaming idle timeout, and expanded test suite.

Made-with: Cursor
2026-04-14 22:11:48 +08:00
Bingxi Zhao
83e8b4a796 Merge pull request #309 from pietrondo/fix/windows-npm-cmd
fix: handle npm.cmd correctly on Windows
2026-04-14 20:20:08 +08:00
Mark Janzer
9010491bfd fix: prefer unresolved sys.executable to stay inside venv
On macOS with Homebrew Python, `Path(sys.executable).resolve()` follows
the venv symlink back to the system interpreter.  PEP 668 then blocks
pip installs with "externally-managed-environment", causing the setup
tour to fail.

Swap the check order so the unresolved venv path is preferred when it
exists, falling back to the resolved path only when necessary.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 11:36:05 -07:00
Pietro
d0c7406cb1 fix: use npm.cmd on Windows for proper npm command execution 2026-04-13 17:22:50 +02:00
Pietro
280d14bc0c fix: handle npm.cmd correctly on Windows
- Add _get_npm_command() helper to resolve npm path on Windows
- Use shell=True in _run_cmd() on Windows to support .cmd files
- Fix FileNotFoundError when running npm install on Windows

This fixes the issue where shutil.which('npm') fails to find npm.cmd
on Windows, causing the setup tour to fail during dependency installation.
2026-04-13 17:02:28 +02:00
Bingxi Zhao (Frank)
8659d996f5 v1.0.3
Question Notebook with bookmarks & categories, Mermaid diagram support
in Visualize, embedding mismatch detection refinement, system message
merging for Qwen/vLLM, LM Studio & llama.cpp providers, Glass theme,
reporting agent retry resilience, and docs migration.

Made-with: Cursor
2026-04-13 03:18:26 +08:00
Bingxi Zhao (Frank)
3bc12fe28d fix: library management when start tour 2026-04-10 00:29:17 +08:00
yinlixin
0ec86bf8e7 fix(start-tour): tolerate non-utf8 subprocess output 2026-04-07 20:08:09 +08:00
zzhtx258
f04851e536 fix bugs, and enforce math video length 2026-03-22 19:49:14 +08:00
Bingxi Zhao (Frank)
c15e22a4b3 chore: stable fix, add tutorbot 2026-03-20 20:27:17 +08:00
Bingxi Zhao (Frank)
e11db5001b fix: improv cli 2026-03-15 00:04:34 +08:00
Bingxi Zhao (Frank)
0f21d9c4e8 fix: rag clean-up 2026-03-14 01:56:59 +08:00
Bingxi Zhao (Frank)
a5d601d39f fix: RAM buffer problems 2026-03-14 01:46:13 +08:00
Bingxi Zhao (Frank)
f3779138ae fix: remove lightrag and unify llm & search config 2026-03-13 23:48:49 +08:00
Bingxi Zhao (Frank)
9c18bf0705 codebase cleanup and decoupled, introduce cli operation 2026-03-13 20:42:16 +08:00
Bingxi Zhao (Frank)
91197f3729 chore: deeptutor 2.0 2026-03-13 01:47:38 +08:00
Bingxi Zhao (Frank)
6ff107d960 Merge branch 'dev' into feat/vision_slover 2026-03-09 14:47:53 +08:00
Bingxi Zhao
e1bedcb336 refact solver+questiongen, add base module for personalization 2026-02-12 12:29:16 +08:00
logo
4e5a6559d2 Merge branch 'dev' into feat/vision_slover 2026-02-04 00:46:38 +08:00
Pancake
2384bd8e75 updage mem 2026-02-03 01:33:24 +08:00
logo
2cb225aab2 Merge branch 'main' into feat/debug_run 2026-01-27 11:09:44 +08:00
Pancake
0d860a2d12 fix: lint 2026-01-23 01:42:25 +08:00
Pancake
100ae27105 feat: add Chinese, frontend persistence, flexible import of rag library 2026-01-21 21:05:48 +08:00
Bingxi Zhao
1e9cc6b26d fix: KB init & migrate, code structure 2026-01-18 15:30:28 +08:00
Bingxi Zhao
93b5018501 fix: DB init & migrate 2026-01-18 14:49:07 +08:00
Bingxi Zhao
c1752f0512 fix: rag-provider 2026-01-18 13:52:29 +08:00
Bingxi Zhao
b3f511d45f feat: enhance RAG pipeline with Docling support and improve CI/CD workflows 2026-01-18 12:25:45 +08:00
Bingxi Zhao
5a546b53f6 feat: enhance RAG pipeline with Docling support and improve CI/CD workflows 2026-01-18 12:25:45 +08:00
logo
321c4b1011 增加发布兼容性 2026-01-11 21:58:21 +08:00
Pancake
42fb0ec8fd release ver0.4.0 2026-01-09 00:57:28 +08:00
Pancake
99ae39fcec Add new development files: RAG diagnostics, chat session detail, text parser 2026-01-09 00:47:24 +08:00
Pancake
efc2007911 Apply local configuration and UI enhancements after dev merge 2026-01-09 00:43:52 +08:00
Pancake
89fab8ace1 Merge dev into main: service refactoring with preserved main features 2026-01-08 21:11:11 +08:00
Pancake
8d25d121ad fix: ui, security and web-search 2026-01-07 10:53:01 +08:00
Pancake
cf595bf562 refactor: restructure project architecture with new services and logging modules 2026-01-06 23:49:33 +08:00
Pancake
7cb4696e42 Refactor: Consolidate base agent classes and update imports 2026-01-06 19:33:58 +08:00
Bingxi Zhao
f852837efd update docs 2026-01-06 02:32:29 +08:00