Commit Graph

162 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
e7d04fccfc fix(knowledge): validate KB names on the manager, and let a bad one be deleted
A knowledge-base name is three things at once: a kb_config.json key, a
directory under data/knowledge_bases, and a path segment in every per-KB API
route. `validate_knowledge_base_name` exists to keep those three uses
compatible — its docstring says so — but it was called from one of the eight
HTTP entry points that can write a name into the config. The seven connect-*
endpoints (Obsidian, MarginNote, folder, LightRAG server, WeKnora, IMA, and
the subagent connection) did `(name or "").strip()` and wrote the result.

A name holding a "/" registers fine that way and is then unreachable.
uvicorn percent-decodes the path before routing, so %2F is a real separator
by the time Starlette matches `{kb_name}` — compiled to `[^/]+`, which cannot
span it. All 29 per-KB routes 404, delete included, while the list endpoint
takes no path parameter and keeps rendering the KB. Connected KBs are also
exempt from the orphan prune, so nothing collects it either: visible, unusable,
and removable only by hand-editing kb_config.json.

Two changes, both needed. Validation moves onto the eight `register_*`
methods, which is the seam every route already goes through — no route file
changes, since they all map ValueError to 400 — and the now-unreachable
"name is required" guards go with it. And a path-free
`POST /knowledge-bases/delete` gives the entries that predate the guard a way
out; a body is never split into segments. Widening the path route to
`{kb_name:path}` would not work: it is declared ahead of the DELETE routes
for linked folders, GitHub sources and web sources, and a greedy converter
would silently swallow all three.

Two smaller fixes ride along. The delete handler's catch-all swallowed its
own HTTPException and answered 500 with "404: ... not found" in the detail;
it now re-raises. And CreateKbModal states the rule under the field instead
of letting an untranslated English 400 be the first the user hears of it.

test_marginnote4_kb's store-collision case used "My Lib" / "My/Lib"; the
slash is now refused before that guard is reached, so it uses "My.Lib" —
still a name the rule allows, still sanitized to the same My_Lib.db.
2026-09-08 00:31:59 +08:00
Bingxi Zhao
a5847eebb8 Merge pull request #1258 from wangyuxy9805-web/fix/1245-question-notebook-image-upsert
fix: persist notebook answer images
2026-09-07 23:43:39 +08:00
Bingxi Zhao (Frank)
04040a2c06 release: v1.6.5
Ship a content workspace you choose, one exec tool for every language,
Mastery Path modes that gate its tools, and Settings that grades
readiness instead of listing faults.

Release notes: assets/releases/ver1-6-5.md
2026-09-06 13:46:29 +08:00
wangyuxy9805-web
44ae34f653 fix: persist notebook answer images 2026-09-05 22:27:49 +08:00
Bingxi Zhao
269f65dede feat(subagents): add hardened remote Hermes backend (#1213) 2026-09-03 16:24:34 +08:00
NoxsMedia
9cd1912c14 feat: add LightRAG indexing model controls and provenance (#1174)
* feat(knowledge): add LightRAG indexing model controls

* fix(knowledge): close NOX-21 review findings

* fix(knowledge): resolve NOX-21 review blockers

* fix(knowledge): identify unpublished LightRAG builds

* style: format LightRAG indexing changes

* fix(knowledge): align indexing controls with LightRAG model

* fix(knowledge): close indexing UI review blockers

* style: format knowledge router
2026-09-03 15:56:55 +08:00
NoxsMedia
ecc150d960 feat: pin LightRAG indexing models per knowledge base (#1171)
* feat(lightrag): pin indexing model per knowledge base

* fix(lightrag): close indexing isolation gaps

* fix(lightrag): integrate released dedicated model contract

* fix(lightrag): fingerprint vision capability

* test(rag): update LightRAG policy fixtures and harden redaction

---------

Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>
2026-09-03 15:55:27 +08:00
evan188199-tech
f9721b61c4 perf(session): lazily load turn event traces (#1191)
* perf(session): lazily load turn event traces

* fix(session): bound trace previews at the storage layer

---------

Co-authored-by: XZH <cto@xzh.ai>
Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>
2026-09-03 15:46:04 +08:00
Bingxi Zhao
97cb143cbc fix(ci): stabilize current dependency and reading gates (#1210) 2026-09-03 15:20:13 +08:00
Bingxi Zhao (Frank)
93df3d48b7 release: v1.6.4
Ship lighter isolated runtimes, richer Books and Mastery flows,
Reading/session polish, and explicit model API capabilities.

Release notes: assets/releases/ver1-6-4.md
2026-09-03 01:38:54 +08:00
Bingxi Zhao (Frank)
6e6e56aedb release: v1.6.3
Ship the breaking front- and back-end runtime and route refactor,
learner and guardian flows, grounded reading, knowledge and parser
updates, and recoverable long-running streams.

Release notes: assets/releases/ver1-6-3.md
2026-09-02 04:09:11 +08:00
Bingxi Zhao (Frank)
fc39543bc0 feat: integrate frontend backend and canonical routes 2026-09-01 22:24:29 +08:00
Bingxi Zhao (Frank)
02ba56793e chore: checkpoint backend stabilization workspace 2026-09-01 21:28:15 +08:00
Bingxi Zhao (Frank)
a36e902c38 feat(web): generate typed backend contracts 2026-09-01 17:06:01 +08:00
Bingxi Zhao (Frank)
3403f97b2a feat(contracts): export frontend REST and turn schemas 2026-09-01 16:48:55 +08:00
Bingxi Zhao (Frank)
542204d2df Merge pull request #1081 from evan188199-tech/codex/assessment-history
# Conflicts:
#	deeptutor/api/routers/question_notebook.py
#	deeptutor/services/session/sqlite_store.py
#	web/components/space/question-bank/useQuestionBank.ts
#	web/locales/en/app.json
#	web/locales/zh/app.json
2026-08-31 19:51:48 +08:00
Bingxi Zhao (Frank)
cd286801b6 Merge pull request #1074 from evan188199-tech/codex/feat/weknora-server
# Conflicts:
#	web/components/knowledge/CreateKbModal.tsx
#	web/components/knowledge/EngineDetail.tsx
#	web/components/knowledge/KnowledgeHome.tsx
2026-08-31 19:40:31 +08:00
Bingxi Zhao (Frank)
1b7643c558 Merge pull request #1067 from evan188199-tech
# Conflicts:
#	deeptutor/agents/chat/agent_loop.py
2026-08-31 19:00:32 +08:00
Bingxi Zhao (Frank)
8cfec4e685 Merge pull request #1033 from contributor
# Conflicts:
#	deeptutor/tools/prompting/hints/en/exec.yaml
#	deeptutor/tools/prompting/hints/zh/exec.yaml
2026-08-31 18:36:05 +08:00
Bingxi Zhao (Frank)
72885edfcf Merge pull request #1070 from contributor
# Conflicts:
#	deeptutor/services/config/runtime_settings.py
#	deeptutor/services/rag/pipelines/lightrag/config.py
#	deeptutor/services/rag/pipelines/lightrag/engine.py
#	tests/api/test_knowledge_router.py
#	tests/services/rag/test_lightrag_pipeline.py
#	tests/services/rag/test_lightrag_settings_wiring.py
2026-08-31 18:30:33 +08:00
Bingxi Zhao (Frank)
b7abfae652 Merge pull request #1084 from contributor
# Conflicts:
#	web/components/settings/ServiceConfigEditor.tsx
#	web/components/settings/SettingsContext.tsx
#	web/components/settings/SettingsMain.tsx
2026-08-31 18:13:31 +08:00
Bingxi Zhao (Frank)
9e3ef6dc34 Merge pull request #1045 from contributor
# Conflicts:
#	deeptutor/api/routers/knowledge.py
#	deeptutor/services/config/runtime_settings.py
#	deeptutor/services/rag/pipelines/llamaindex/config.py
#	tests/api/test_knowledge_router.py
#	tests/services/config/test_llamaindex_settings.py
#	web/components/knowledge/EngineDetail.tsx
#	web/lib/knowledge-api.ts
#	web/locales/en/app.json
#	web/locales/zh/app.json
2026-08-31 18:08:53 +08:00
Bingxi Zhao (Frank)
8c9a0687d3 Merge pull request #1044 from contributor
# Conflicts:
#	tests/api/test_knowledge_router.py
#	web/locales/en/app.json
#	web/locales/zh/app.json
2026-08-31 17:59:30 +08:00
Bingxi Zhao (Frank)
ba239b6cd5 Merge pull request #1134 from contributor 2026-08-31 17:52:16 +08:00
Bingxi Zhao (Frank)
f430bfe915 Merge pull request #1120 from contributor 2026-08-31 17:52:13 +08:00
Bingxi Zhao (Frank)
eab16edf52 Merge pull request #1094 from contributor 2026-08-31 17:51:40 +08:00
Bingxi Zhao (Frank)
46e742f196 Merge pull request #1046 from contributor 2026-08-31 17:51:29 +08:00
XZH
7f98cac388 chore(ci): format Python baseline for ruff 2026-08-30 18:30:22 -07:00
Bingxi Zhao (Frank)
3dc372f551 release: v1.6.2 — immersive watching and extensible visualizers
Add synchronized YouTube learning, a plugin-driven visualizer catalog, and Hermes, OpenClaw, and DeepSeek agent harnesses. Refresh Reading, Knowledge, Partner status, guided updates, documentation, translations, and release notes for v1.6.2.
2026-08-31 01:13:07 +08:00
Alok Saboo
6bfff9d3cf style: ruff format 2026-08-30 12:10:26 -04:00
Alok Saboo
580286b844 add initial docx support for cowriter 2026-08-30 12:03:07 -04:00
Bingxi Zhao (Frank)
f694f204a8 feat: add app updater and unify workspace chat flows 2026-08-30 17:40:47 +08:00
Codex
f13ede2f29 fix: persist reindex terminal state 2026-08-30 06:32:41 +00:00
Bingxi Zhao (Frank)
fc0be68d6f wip: course / partner groups in progress 2026-08-29 22:29:53 +08:00
wayblink
2ba5e3aa5d feat(llm): support explicit OpenAI wire API selection 2026-08-29 15:02:31 +08:00
XZH
7a0f1f6a07 feat(assessment): unify persisted review records (#824) 2026-08-28 20:54:48 -07:00
Bingxi Zhao
92a2fcf077 Merge pull request #1052 from evan188199-tech/codex/fix/book-language-options 2026-08-29 11:51:18 +08:00
Bingxi Zhao
bb37982279 Merge pull request #1017 from ZQR1101/fix/partner-output-fallback 2026-08-29 11:27:52 +08:00
XZH
8460fb7ec5 feat(knowledge): add WeKnora retrieval connections (#918) 2026-08-28 16:47:43 -07:00
XZH
f43347b915 feat(lightrag): add dedicated model selection (#640) 2026-08-28 11:16:06 -07:00
XZH
a32a9a98a1 fix(llm): persist DeepSeek reasoning across turns 2026-08-28 03:09:00 -07:00
XZH
c9920a237c feat(book): infer requested language 2026-08-27 20:27:37 -07:00
XZH
db9a3bf8ac feat(rag): add optional cross-encoder reranking 2026-08-27 12:18:55 -07:00
XZH
9ca18f66bd feat(rag): add opt-in HNSW vector indexes 2026-08-27 11:40:15 -07:00
XZH
d9538192d2 feat(media): add DashScope providers (#1016) 2026-08-27 10:25:41 -07:00
Bingxi Zhao (Frank)
bd9f6a7625 release: v1.6.0 — connected learning workspaces
Release notes: assets/releases/ver1-6-0.md

Ship source-faithful reading, Courses and Little Tutor, Ask Questions,
bounded web-source sync, and shared Books with private reader state.
2026-08-27 22:03:09 +08:00
zhou2030109-glitch
b342b63b7a fix: align Windows exec runtime and search readiness 2026-08-27 17:17:03 +08:00
ZQR1101
0d1696abdc fix(partners): serve partner artifacts from output downloads
When a partner chat generates files, resolve /api/outputs against the caller''s visible partner workspaces after their own scope misses so partner images stop 404ing in the web UI.
2026-08-26 17:17:08 +08:00
Bingxi Zhao (Frank)
69b472b109 fix(courses): enforce organization and tutor grounding integrity 2026-08-26 02:25:23 +08:00
Bingxi Zhao (Frank)
bd80a4d28a release: v1.5.17
Partners stop being a deployment-wide admin resource and become
per-user: three nested rights (manage / use / neither) replace the
blanket admin gate on the router, each member can build and own their
own, and every person's conversations with a partner stay private to
their account. Grants keep working and now offer only admin-managed
partners. Channel runtime state moves from one directory per channel to
one per partner — copied, not moved, and only when its owner is
unambiguous — so two partners can finally run the same channel.

Around that: a knowledge base can track GitHub repositories and re-sync
their Markdown (#903); Antigravity CLI joins My Agents now that Gemini
CLI is retired (#828); personal WeChat signs in from a QR code drawn in
the browser instead of the server log (#951); a chat account can be
linked to a DeepTutor account with /link; containers re-apply the extras
they declare instead of losing them at compose down (#762); and
`deeptutor doctor` answers whether a workspace is ready to run (#959).

Reliability, largely from community PRs: embeddings survive a
rate-limited provider through key rotation, a retry budget and a global
throttle (#962); MinerU parsing and code execution work on Windows
(#844, #964); indexing fails bounded instead of hanging (#946); MinerU
page-layout blocks stop being indexed as content (#949); voice uploads
carry a MIME the transcription API accepts (#945); and reasoning effort
can be overridden per conversation (#641).

Release plumbing: notes in assets/releases/ver1-5-17.md, v1.5.13
archived, __version__ 1.5.17, README Releases row and all eleven
translations synced.

Two defects found by the release gate and fixed here:

- Six partner routes — the four channel-onboarding endpoints and both
  WeChat QR endpoints — kept the _auth-only mount they had inherited
  from the blanket admin gate, so any signed-in account could start a
  QR login for someone else's partner and write a bot token into its
  channel config. All six now declare _MANAGEABLE, and a sweep test
  asserts no {partner_id} route is left ungated.
- A configured api_key became `str | list[str]` when key rotation
  landed, but ten call sites pass it somewhere that takes one key; a
  list would have rendered into an Authorization header verbatim.
  keypool.primary_api_key reduces at each boundary.

Gates: pre-commit (all 15 hooks), ruff check + format, pytest
5276 passed, web 605 node tests, docs build.
2026-08-25 02:24:35 +08:00