Commit Graph

259 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
eabc17d79f release: v1.6.10
Native LightRAG role models: extraction, keyword, query and vision each
resolve their own model, vision indexing pins a vision-capable model
instead of silently degrading, and a knowledge base records which models
and which embedding built it. A published index refuses queries after its
embedding identity changes rather than searching a foreign vector space,
and a rebuild is confirmed against the configuration it will actually
use — a stale confirmation is rejected instead of quietly rebuilding
something else. A failed publication is withdrawn, not left half-written.

PDF attachments follow the parsing engine configured for the workspace,
report the stage they are in, and a truncated answer says it was
truncated with the counters that prove it. Providers are no longer
filtered out of the embedding picker on an unverifiable capability guess:
configure the model and test it. Visualize's temperature and token budget
are settings rather than literals. Notebook evidence no longer depends on
the chat session that produced it.

See assets/releases/ver1-6-10.md for the full notes, and the README
translations for the propagated prose.
2026-09-22 21:36:27 +08:00
Bingxi Zhao (Frank)
17b3aaf60c docs: sync 40k milestone and badges across README translations 2026-09-21 02:49:03 +08:00
Bingxi Zhao (Frank)
da856ad670 release: v1.6.9
Ship folder-based workspaces and data migration, daily practice, redesigned
provider and model settings, and streaming conversation improvements.
Synchronize README translations and document the archive/permanent-delete
upgrade behavior in assets/releases/ver1-6-9.md.

Reduce initial JavaScript by deduplicating English resources and loading
animation features after hydration. Keep the existing route size budgets.
Update regression fixtures and browser audits for scoped URLs and the new
settings and learning interfaces.
2026-09-21 02:30:40 +08:00
Bingxi Zhao (Frank)
a7c30a588f release: v1.6.8
Twenty-two community pull requests and the reports behind them. Where
v1.6.7 chased a token budget spent on hidden thinking, this one answers
a different complaint: I did a thing and the app quietly did nothing.

New surfaces: a recycle bin that makes a deleted chat recoverable,
search across the full text of your conversation history, and
`knowledge_frontier` — a tool that reads a knowledge base and goes
looking for what is not in it.

Fixes worth naming: a reasoning model that stops mid-thought now fails
with the counters that prove it rather than an opaque error; deep book
URLs open the book instead of the library; the reading outline tracks
the page again; an EPUB that macOS re-zipped reads as the book it is; a
file whose extraction produced nothing is listed with the reason instead
of skipped in silence; the launcher stops killing a backend that is
merely still starting.

Also in this commit: README prose plus all eleven translations, the
v1.6.8 release notes with v1.6.5 archived past the one-week line, three
duplicate keys removed from the locale files (`Delete permanently` had
two different zh values, and the wrong one was winning), and the mypy
annotation that made every `conn.execute` in the new file library look
like a call on None.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 14:54:16 +08:00
Bingxi Zhao (Frank)
2e0816b090 release: v1.6.7
Nineteen community pull requests plus the fixes behind this week's
reports. The thread through most of it is reasoning models: a book that
came back as one empty chapter, a quiz that produced no questions, and a
chapter body carrying the model's own scratchpad are the same failure —
a token budget spent on hidden thinking with nothing left for the
answer, and no error to say so.

Release notes: assets/releases/ver1-6-7.md
2026-09-11 00:24:23 +08:00
evan188199-tech
ad0b14bf22 docs(web): add v1.6.5 settings screenshots (#1337)
Co-authored-by: XZH <cto@xzh.ai>
2026-09-10 23:41:46 +08:00
evan188199-tech
3f232add34 docs(web): document v1.6.4/v1.6.5 screenshot status (#1306)
Co-authored-by: XZH <cto@xzh.ai>
2026-09-10 23:41:41 +08:00
Bingxi Zhao (Frank)
7a96bba1ae release: v1.6.6
Ship the v1.6.5 feedback sweep: answers that could not submit now
arrive, a copy button reports what actually happened, partners can use
connected knowledge bases, Codex sign-in finishes inside Docker, and the
home route is 100KB lighter.

Release notes: assets/releases/ver1-6-6.md
2026-09-08 15:46:59 +08:00
XZH
052b82633b docs(web): update overview screenshot for v1.6.5 2026-09-06 01:10:00 -07: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
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)
02ba56793e chore: checkpoint backend stabilization workspace 2026-09-01 21:28:15 +08:00
Bingxi Zhao (Frank)
f430bfe915 Merge pull request #1120 from contributor 2026-08-31 17:52:13 +08: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
580286b844 add initial docx support for cowriter 2026-08-30 12:03:07 -04:00
Bingxi Zhao (Frank)
52f3dccd52 docs(assets): refresh 29 README screenshots for v1.6.1
45 of 53 screenshots under assets/figs/web-1.4.6+/ were stale against
the current UI (see #1039) — mostly because the sidebar redesign
(arrangeable nav, More group, Mastery Path, Immersive Reading) shows
up in nearly every full-page capture. Recaptured 29 of them against a
clean, isolated v1.6.1 instance at 2x scale to match the existing
convention: the hero overview, the new Settings navigator, Knowledge
Center, Learning Space and its sub-pages, Memory, Extensions (MCP
Store / CLI Apps), Partners, My Agents, Book, Co-Writer, Reading, and
a few composer menu crops.

Remaining ~16 need either a configured LLM provider (book chapters,
chat responses, subagent and image-gen demos, Partner conversations,
a populated Mastery Path) or further interaction scripting (the model
picker, the capability picker) — left untouched rather than faked.

Co-Authored-By: Codex <noreply@openai.com>
2026-08-30 19:24:36 +08:00
XZH
89fba155bd docs(web): update overview screenshot 2026-08-30 15:44:11 +08:00
Bingxi Zhao (Frank)
ce7c2dc2dc release: v1.6.1 — one key, one navigator, one sidebar you arrange
Model configuration was one layer replicated seven times: every service
stored its own profile with its own credentials, so a single OpenRouter
key had to be pasted into five separate pages. This release splits that
in two — a **connection** holds one vendor credential and links it down
to every service that vendor can serve, and a **task model** takes the
calls nobody asks for (naming a conversation, writing the composer's
starting points) off the model picked for actual reasoning. Both are
opt-in; existing per-service profiles resolve exactly as before.

Around that: Settings drops the card grid for a persistent searchable
navigator whose landing page answers "what state am I in" instead of
repeating the directory; Mastery Path files study conversations under
their topic and opens them in the tutor rather than dropping them on
/home; the sidebar folds features into More and reorders by drag; the
reading companion is rebuilt from /home's own chat components; and the
LightRAG engine talks to the SDK directly, so its extra no longer drags
MinerU in transitively.

Also back-merges PR #1041 (Anthropic SDK 1.x temperature via extra_body)
and PR #741 (owner-only auth secret/token files), which had been merged
straight into main and never flowed back to dev.

Release notes: assets/releases/ver1-6-1.md
Gates: pre-commit 15/15, ruff clean, pytest 5802 passed, web 450 node
tests, eslint 0 errors, docs build clean.
2026-08-30 13:19:42 +08: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
XZH
32f82dcfb8 feat(knowledge): expose bounded web sources in detail view 2026-08-26 02:26:58 +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
Bingxi Zhao (Frank)
8515dfdbe6 release: v1.5.16
Release notes: assets/releases/ver1-5-16.md

Content bundled into this commit:

* Release notes for v1.5.16 and the version bump to 1.5.16.
* README: the Releases row for v1.5.16, and MarginNote 4 added to the two
  places that enumerate the retrieval engines (Key Features, Knowledge
  Center) — the engine list was the only prose the release made stale.
* All 11 translated READMEs patched for that same engine-list change.
* Book: make the reader's row a flex column. v1.5.15 added the capture
  inbox as a second child without it, so `PageReader`'s `h-full`
  collapsed to `auto` — the body stopped scrolling and the page-turn
  footer was clipped away.
* progress_tracker: annotate the progress dict as `dict[str, object]`.
  The i18n work added a dict-valued `message_params` to a mapping mypy
  had inferred as `dict[str, int | str]`.
* prettier on the two MarginNote 4 frontend files it had not yet seen.

Gates: pre-commit (15/15), `ruff check .` clean, pytest 5007 passed /
22 skipped, `npm run test:node` 586/586, and the docs site builds.
2026-08-22 01:36:30 +08:00
Bingxi Zhao (Frank)
31bf66b5e1 release: v1.5.15
Self-hostable PageIndex, a fileable question bank, and third-party plugins.

- PageIndex: adds PageIndex OSS as its own knowledge-base type, bound to
  the base's local library and driven by the configured LLM rather than a
  PageIndex API key. Retrieval moves off the built-in MCP server (removed)
  onto a workflow-owned reading loop that walks the document tree.
- Question bank: addEntryToCategory shipped in v1.3.6 and was never called
  from the frontend, so categories could be created but never filled. The
  quiz card now uses the shared CategoryMenu, the page is rebuilt around
  search / batch selection / an unfiled inbox, and a new question_bank tool
  lets the tutor file questions instead of misrouting them to write_note.
- Plugins: deeptutor.plugins was imported behind a try/except but the
  module never existed — implemented, plus a deeptutor.loop_capabilities
  group so third-party packages can register chat-loop capabilities.
  Builtins win on name collisions; broken entry points are skipped.
- Parsing: remote Apache Tika engine (TIKA_SERVER_URL), with no local
  package and no model download.
- LightRAG: the three indexing knobs from #877 get inputs under their own
  Indexing divider; unsupported keywords are dropped with a warning.
- Knowledge bases: uploads take a destination folder, same-named documents
  from different subtrees stop dropping one another, and linked folders
  keep their source-relative structure — closing #866.
- Book: a learning-capture inbox with an explicit status lifecycle, and
  drift warnings scoped to the KB documents that actually changed.
- Whisper: /whisper moves out of the primary nav into Learning Space →
  More Projects, credited to its contributor; the room needs its own
  capability package. The reusable half is CAPABILITY_COMPLETE forwarding
  of a capability-declared body and its declared extras.
- README: a Collaborate badge beside the Docs badge, in all twelve
  languages.
- Lint: nosec B608 on four false-positive question-bank queries (literal
  fragments only, every value bound), and three mypy fixes.

Release notes: assets/releases/ver1-5-15.md
2026-08-20 14:15:53 +08:00
Bingxi Zhao (Frank)
83c13ccc1f docs(assets): refresh the guide screenshots for the current UI 2026-08-20 01:30:28 +08:00
Bingxi Zhao (Frank)
7c6bcfaef7 release: v1.5.14
Immersive Reading, self-configuration, and a two-way IMA library.

- Immersive Reading: a new capability that opens a document beside the
  thread. New reading engine (PDF pages / slides / page-sized sections),
  five reading tools, a deterministic locate pre-pass that grounds the
  turn without a second LLM call, /api/v1/reading, and a reader pane with
  selection, highlights, notes, and export to an annotated PDF or Markdown.
- Setup capability: inspect the install, apply a setting, install a
  parsing engine, or request a credential from a chat turn. New settings
  spec table; a candidate value is probed before it is committed, and API
  keys never enter the model's context.
- Tencent IMA: pipeline split into transport/envelope/models/sources/
  notes/media/inventory, an additive capability with five tools, and
  connected libraries that can finally be enumerated (bounded listings
  are reported as a lower bound).
- Retrieval: supports_rag_retrieval() replaces is_connected_kb() for the
  "can I sweep this?" question, so linked / lightrag_server / ima sources
  stop being silently dropped from every book.
- Notebooks: their own console at /notebook, per-notebook locks and atomic
  writes, copy / move / export routes, damaged files surfaced instead of
  dropped, and renaming a record no longer clears its knowledge-base link.
- Settings persistence: one lock and one atomic replace shared by every
  writer of interface.json; the PUT endpoints stop writing the
  defaults-merged view back to disk.

Release notes: assets/releases/ver1-5-14.md
2026-08-19 17:34:52 +08:00
Bingxi Zhao (Frank)
96d6df9eb1 release: v1.5.13
Book is the bulk of this one. Compilation outlives the request that
started it, so a bus owned by that request dropped every background event
and "watch your book being written" degraded into a frozen page; the
stream is now owned per book by the process and survives a refresh or a
reconnect. Reading progress is finally recorded — `visited_page_ids` and
`bookmarked_page_ids` had been declared but never written for the life of
the feature — and rolls up into a completion score and weak chapters. A
book can also leave the app now, as one self-contained Markdown document,
with non-ASCII titles surviving the download.

Two scheduling defects that were invisible in production are fixed: the
same page compiled twice concurrently (billed twice, one result
discarded), and a book grinding on through a provider outage until every
chapter was half-generated. The source sweep is bounded and allocated
round-robin rather than spent on the first few knowledge bases, and
retrieval now tells indexed bases from connected pointers, so an Obsidian
vault or a remote IMA library no longer contributes zero while looking
like a source with nothing relevant. Confirming a spine shows a live
per-chapter estimate derived from the Section Architect's own templates.

Also here: three home starter suggestions built from memory recall,
mastery-path handoff moved into one module that changes lease, session
preference, and live turn together, and account-level Tencent IMA
credentials with the per-KB pair still winning.

Notes: assets/releases/ver1-5-13.md

This commit also carries the README prose sync, the eleven translated
READMEs, the release-notes archive sweep, and the version bump. Two gate
fixes ride along: the `Stamped` protocol is declared read-only so the
frozen `EntityStamp` satisfies it, and six GraphRAG adapter tests that
reached a deep `graphrag` import without guarding it now skip like their
four neighbours instead of failing where the extra is not installed.
2026-08-17 11:22:26 +08:00
Elias Shieh
048f7fec9a docs: add Traditional Chinese README (#822)
* docs: add Traditional Chinese README

* docs: refresh Traditional Chinese README navigation

---------

Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>
2026-08-16 19:14:05 +08:00
Bingxi Zhao (Frank)
23ad80d1bf release: v1.5.12
Web search was rebuilt onto a single spec table and six providers were
added on it — Doubao, Bocha, Zhipu, Firecrawl, Baidu Qianfan, and Aliyun
IQS. Consolidating seven copies of the provider list is what surfaced
three silent defects: Serper's `num` never reached the API, Serper
dropped its proxies, and Jina had no result-count limit. A runtime search
failure now walks the account's other credentialed profiles and finally
DuckDuckGo instead of failing the turn, recording the downgrade under a
top-level `search_fallback` key; a *missing* key still fails loudly for
the six new providers, five of which are China-hosted and cannot reach
the fallback anyway.

Also here, by way of main: LiteParse as a sixth document-parsing engine,
and MCP servers that reconnect when a stored credential is rotated and
report a dead transport as itself rather than as a tool timeout. Plus
CodeBuddy and OrcaRouter model providers, a persisted Codex
reasoning-effort override, and vision on OpenAI Codex.

Notes: assets/releases/ver1-5-12.md

This commit also carries the README prose sync, the ten translated
READMEs (which gain the Open Source Partners section they were missing),
the release-notes archive sweep, and the version bump.
2026-08-13 18:49:48 +08:00
Bingxi Zhao (Frank)
c488037e92 docs: add Open Source Partners section with PageIndex 2026-08-11 16:46:42 +08:00
Bingxi Zhao (Frank)
456f9c2422 release: v1.5.11
What happens while the answer is still being written. Prose that shared a
round with a tool call vanished into the trace, a truncated generation read as
the model deciding it had finished, and local indexing sat on the event loop
everything else needed.

- DSML tool calls are stripped from the stream incrementally instead of
  all-or-nothing. Once a round's content channel showed markup, the rest of it
  was diverted to the thinking channel, so any prose around the call left the
  answer. DSMLStreamFilter suppresses only the envelope and the invoke blocks;
  text before, between and after streams and persists (turn_runtime carries
  answer_visible rounds into the assembled answer). An incomplete invoke is
  released verbatim by flush, and a 512-char ceiling stops a stray `<` in
  ordinary prose from making the live stream wait for a closing bracket.
- DSML parameter decoding consults the declared schema. DeepSeek marks
  essentially every parameter string="true", arrays and objects included, so a
  container argument reached the tool as a string of JSON. A parameter the
  schema types array/object is parsed when the payload actually matches; the
  provider's string contract still wins elsewhere. The catalog is kept when a
  provider rejects native `tools` and the loop falls back to DSML — exactly
  when the parser needs it.
- The round budget is three stages: exploration, a bounded settlement window
  (MAX_SETTLEMENT_ROUNDS, tools still available so an already-started
  interaction can finish), then one tool-less hard finish. A `length` finish is
  an incomplete generation, not a decision to stop: the visible prefix is kept
  and a continuation requested, under the same upper bound of exploration + 4.
- Resident memory across the process tree, at GET /api/v1/system/memory and in
  the settings strip. runtime/memory_probe.py walks the tree; psutil is
  imported lazily with a /proc fallback, so a missing wheel costs the strip and
  not the app, and non-admins get {available: false}. The strip drops
  LLM/Embedding/Search, which restated what the Models and Chat pages own.
- Local LightRAG indexing runs on a worker thread's own event loop.
  RAG-Anything's local backends do synchronous graph merging and JSON
  serialization inside async methods, stalling unrelated API and LLM work;
  OwnerLoopBridge forwards LLM, vision and embedding calls back to the
  request's loop with a copy of the caller's contextvars.
- Mastery works from the persisted question. learning/pending.py projects a
  PendingQuestion into the public contract (prompt, type, label/body map) with
  the expected answer server-side; ask_user renders that instead of display
  data the model re-authored, and registration validates the quiz shape rather
  than silently accepting a contradictory one.
- Connected KBs answer honestly about local files (empty listing, explicit 409
  where a local file is required) instead of resolving a raw/ directory that
  does not exist. resolve_public_output_path replaces is_public_output_path so
  the new request-scoped /api/outputs endpoint authorizes and resolves in one
  operation and fails closed with no request user. Visualize iframes measure
  body content so they shrink as well as grow, and the chat page's model list
  is fetched once behind a single-flight hook.

test_forced_finish_still_reports_the_tools_the_turn_carried asserted the old
two-stage budget (exhausted exploration = the next call is the tool-less
finish); it now drives through settlement to reach the real hard finish. Also
syncs the README prose, all ten translations, and the release-notes archive.
2026-08-10 00:47:37 +08:00
Bingxi Zhao (Frank)
8865da7c6d release: v1.5.10
The paths underneath the providers. A batch upload that stalled every other
request, a knowledge-base list that rescanned every index, a tool call
dispatched with no arguments and retried until the budget ran out — plus two
things that were quietly missing.

- Every account can sign in to its own Codex. The token authorizes one
  person's ChatGPT plan so the profile was correctly never grantable, but the
  OAuth endpoints were admin-only too, leaving ordinary users no route at all.
  A sign-in now publishes into the OWNER's catalog
  (data/users/<uid>/settings/model_catalog.json), keyed by the same owner
  resolution as the credential store; redacted_model_access gains those
  personal rows for the caller's own id only, so the option list, capability
  gate and selection validation cannot disagree. Partners are refused.
- Model output language is its own setting. Settings -> Appearance carries two
  independent toggles; resolve_languages() in interface_settings.py owns the
  legacy migration (a pre-split file inherits its single `language` into both),
  and both readers go through it. GET /settings/ui is public so /login and
  /register can bootstrap before a session, projected down to theme+language.
- A tool call with empty `arguments` is rejected in front of dispatch instead
  of run. The tool used to do the rejecting ("requires a non-empty command",
  "Unknown mode ''"), which does not read as a missing argument, so the model
  re-emitted the same call until the loop budget ran out. The guard names the
  missing arguments and their accepted values, enums included.
- Batch uploads move off the event loop (the chunked write, zip extraction and
  per-file PocketBase upload ran inline; the staging pass sat in an async
  BackgroundTasks entry, which starlette awaits ON the loop). KB listing reuses
  one reconciled snapshot instead of reloading config and rescanning every
  index per item.
- Deep Research mounts the read-only Obsidian tools instead of rag for a linked
  vault, injects the vault path server-side, and treats their evidence as
  citable.
- The server-side backend address is the IPv4 loopback on all three paths
  (launcher, Docker entrypoint, web/proxy.ts default): `localhost` resolves to
  ::1 first on a dual-stack host while uvicorn binds 0.0.0.0.
- Escape stops a streaming Partner reply and bails while any dialog overlay is
  mounted; vision overrides match `claude-` by vendor prefix and recognize Kimi
  K3 and Qwen3.8-Max; Codex context-window metadata survives the catalog round
  trip; editing a message no longer races its refresh; the deeptutor-cli wheel
  ships the agents' prompt YAML again and prompt misses are no longer cached.

Also fixes the `ruff format --check` failure red on dev since 6cd55939, and
syncs the README prose, all ten translations, and the release-notes archive.
2026-08-07 22:28:33 +08:00
Bingxi Zhao (Frank)
37c3db6df7 release: v1.5.9
Providers. Gemini's native Embedding 2 endpoint, a per-model reasoning-effort
control, and a Novita AI gateway — plus the paths that were quietly wrong
underneath them.

- Gemini embedding profiles default to the native
  `.../models/<model>:batchEmbedContents` endpoint with gemini-embedding-2 and
  x-goog-api-key, and the URL follows the selected model (through a gateway
  prefix too). Existing gemini-embedding-001 profiles stay on the
  OpenAI-compatible path on purpose: the native route sends a taskType and
  L2-normalizes its output, so moving them would change document vectors and
  invalidate the index built from them.
- Retrieval embeddings carry a role. LlamaIndex tags queries search_query and
  passages search_document, LightRAG maps its context hint the same way, and
  adapters opt in via SUPPORTS_INPUT_TYPE so a backend that never sent a role
  keeps not sending one. Only Cohere changes today (it requires the field and
  already defaulted to search_document) — document vectors untouched, no
  re-index.
- A per-model default reasoning effort sits next to the context window, offered
  only where the provider supports one and labelled in that provider's own
  vocabulary. Two Anthropic bugs surfaced while wiring it: `none` turned
  thinking on with a 4096-token budget, and a stored `adaptive` sent to an
  older family drew a 400 instead of the default budget.
- Novita AI joins the LLM gateways. MiniMax defaults to the global platform
  (api.minimax.io) rather than the mainland-China one whose keys are not
  interchangeable; minimax-m3 / m2.7 context windows are recorded and detection
  reads a context_size field.
- docker-compose.ghcr.yml mounts all of ./data. It bind-mounted only
  data/user, data/memory and data/knowledge_bases, so data/system (JWT signing
  secret, accounts, grants, per-owner Codex tokens), data/users, data/partners
  and data/cli-apps lived in the container's writable layer and were discarded
  on recreate. Existing Compose users must copy that state out before the next
  `up -d` — see CONTAINERIZATION.md.
- Codex sign-in works in a local container via a temporary
  compose.codex-oauth.yaml overlay that publishes 1455/1457 only during
  sign-in, with teardown.
- A capability that raised, or a request for one that does not exist, ended the
  stream with no verdict and persisted the turn as completed with an empty
  answer. The error is now terminal and carried through DONE, so the turn is
  stored as failed with its message.
- The saved interface language is honored on first load (it lived in the
  backend ui settings that only the Settings route read); Visualize drops an
  off-enum render_type / visual_genre instead of aborting; credential-like
  query parameters are redacted in printed endpoints.

Release content: assets/releases/ver1-5-9.md, __version__ 1.5.9, the README
Releases row, and the 10 translated READMEs synced for the Codex OAuth bridge
paragraph.
2026-08-04 16:34:01 +08:00
Bingxi Zhao (Frank)
44fa7a1552 release: v1.5.8
Memory. A v1.5.7 source deployment grew past 14 GB before V8 aborted; the
causes were independent, so this cut fixes each one and bounds what was
previously unbounded.

- The dev server was never actually capped: `next dev` renders in a worker it
  spawns, and V8 flags in argv are not inherited, so
  `node --max-old-space-size=4096 .../next dev` never reached the process
  holding the memory. Next then substituted 50% of total RAM — a 12 GB heap on
  a 24 GB machine. web/scripts/dev.mjs routes the ceiling through NODE_OPTIONS
  (which the worker inherits and Next honors), clamped to 4 GB and sized off
  the cgroup limit in a container.
- Source installs serve a production build: `deeptutor start` builds once into
  .next-deeptutor and reuses it until a fingerprint over the web/ tree, the
  version file, or the build-time public settings changes. `--dev` is the
  opt-in for HMR and keeps using .next, so neither mode invalidates the other.
- LLM clients and providers come from a bounded event-loop-local LRU pool of 2
  instead of one per turn, closed on shutdown and retired on a settings
  reload; only the selected backend's SDK is imported.
- Caches gained ceilings: knowledge-task log streams cap events and bytes per
  task with a 1h TTL and a completion tombstone, the completed-task table
  keeps 256, the LlamaIndex index cache drops 8 -> 2 with a 10-minute idle
  evict, and a book runtime is released when its queue drains.
- After a turn, a finished book job, or a completed KB task, cycles are
  collected and glibc is asked to return free pages via malloc_trim; the
  container and launcher set MALLOC_ARENA_MAX=2 and a lower trim threshold,
  both operator-overridable.
- Every uvicorn launch sets --timeout-keep-alive 300. web/proxy.ts forwards
  over Node's http.globalAgent, whose 5s idle reaper matched uvicorn's default
  exactly; both ends raced to close the same socket and the loser's request
  died with ECONNRESET ("Failed to load sessions").
- deeptutor.agents, deeptutor.core.agentic, provider_core, the document
  extractor's parser libraries and the LLM error-mapping rules resolve on
  first use. `python -m deeptutor.api.run_server` no longer reloads by
  default (DEEPTUTOR_DEV_RELOAD=1 restores it).

README prose and all ten translated READMEs now describe the production-build
default instead of dev mode. Release notes: assets/releases/ver1-5-8.md
2026-08-02 13:23:45 +08:00
Bingxi Zhao (Frank)
ef5ce9f952 fix: RAM issues 2026-08-02 13:07:32 +08:00
Bingxi Zhao (Frank)
740ec413a0 release: v1.5.7
Per-account MCP Services and CLI Apps — the two ways a deployment plugs in
tools DeepTutor never shipped — plus the isolation that makes them safe on a
shared install.

- MCP Services: a 45-entry curated store of hosted servers each account
  installs for itself, OAuth 2.1 (PKCE + dynamic client registration) for the
  servers that require it, static keys held by reference and resolved in memory
  at connect time, stdio refused for self-service. Settings no longer
  configures MCP; /settings/mcp redirects to the store.
- CLI Apps: 101 tools snapshotted from the two CLI-Anything registries.
  Installs are admin-only, the registry's install_cmd is parsed into an argv we
  build rather than executed, npm install scripts are forced off, and 66
  first-party entries are pinned to one reviewed commit. Apps land in
  data/cli-apps, one environment each, mounted read-only into the runner.
- Credentials that authorise a person move to data/system, the one branch the
  exec sandbox never mounts: Codex tokens relocate themselves on first use
  (refusing to follow a symlink), per-user MCP configs and keys land beside
  them.
- Grants gain a cli_apps whitelist with the same deny-by-default posture as
  MCP tools; a per-turn registry view keeps one owner's provider tools out of
  the process-global registry and refuses an unauthorised tool at execute, not
  just in the manifest.
- The composer reports what filled this turn's context window, a gutter rail
  jumps back through long conversations, and the workspace collapses to a
  drawer on small screens.
- The composer keeps focus after sending and across tab switches (#720);
  released images carry provenance and SBOM attestations (#722).

README prose, all ten translated READMEs, and the docs-site pages that named
Settings → MCP are updated to match. Release notes:
assets/releases/ver1-5-7.md
2026-07-31 00:25:48 +08:00
Bingxi Zhao (Frank)
f2aa49f42e release: v1.5.6
Maintenance release on top of v1.5.5, finishing the Codex sign-in it
shipped and adding a connected knowledge engine.

- Tencent IMA joins as a connected knowledge engine: a KB bound to `ima`
  is a connection pointer, not an index, following the lightrag-server
  shape. Documents are added in IMA and retrieval calls IMA's OpenAPI;
  credentials (client_id + api_key) and the library id live per-KB, so
  each user on a shared deployment retrieves through their own account.
- The activity panel splits what a conversation produced from what you
  uploaded: generated files get their own card above attachments, with a
  size and a hover title derived from the artifact URL, so no absolute
  server path is persisted or sent to the browser.
- Remote Codex OAuth completes (#716): the loopback listener stays
  private while the exact callback path is forwarded through the Web
  origin to a state-validating broker, with the real callback address,
  the SSH tunnel command, an authorize action, and a reload-surviving
  countdown surfaced in the settings card and CLI.
- That callback is delivered by OAuth state rather than the request's
  user, since the browser arrives through the user's own tunnel with no
  session cookie -- without it remote sign-in returned login_not_active
  for every non-administrator. Partner scopes resolve Codex credentials
  to the owner's root (#713) instead of the partner's synthetic
  workspace.
- parse_language() no longer collapses every non-English language to
  Chinese (#712), which is why a Japanese book came back with Chinese
  quizzes; prompt fallbacks now try [code, base locale, "en"].
- Assorted: book creation and block regeneration run over WebSocket to
  dodge proxy timeouts with non-streaming spine synthesis (#707, routed
  through the agent seam so image attachments, trace metadata, and
  per-agent routing survive), deeptutor start installs web/node_modules
  when missing (#710), admin user management is localized (#718), and
  the service lazy loader uses literal import paths (#717).

README prose, the ten translated READMEs, release notes, and the version
bump ride along in this commit.
2026-07-29 01:56:12 +08:00
TyrionH-is-coding
1117e6fe93 fix(codex-auth): guide remote Codex OAuth loopback callbacks (#716)
For a remote or containerized deployment the browser's localhost is the
user's workstation while the OAuth listener runs on the server, so a
reverse proxy cannot deliver http://localhost:1455/auth/callback to that
private listener and Codex sign-in could never complete.

Keep the listener loopback-only and forward just the exact browser
callback path through the Web origin to a state-validating broker. The
settings card and CLI now show the real callback address, the SSH tunnel
command, an explicit authorize action and a countdown, and survive a page
reload; the deployment docs cover the Docker host-port and reverse-proxy
caveats.

The listener stays bound to loopback and ports 1455/1457 are never
published; the Web bridge rewrites only /auth/callback; the broker
requires an active operation and a constant-time state match; callback
responses are no-store HTML that never echo the code or state; PKCE and
the token exchange are unchanged. Binding the listener with
start_serving=False also closes a window where a connection could be
accepted before the callback object existed.
2026-07-28 19:20:27 +08:00
Bingxi Zhao (Frank)
47d05809ea release: v1.5.5
Maintenance release on top of v1.5.4, with two new ways to bring a model.

- OpenAI Codex is a first-party OAuth provider (#690): browser sign-in
  against your own ChatGPT plan replaces the API-key fields, credentials
  stay in <user-root>/private/openai-codex/ with owner-only permissions,
  and the managed profile is owner-bound so it is never handed out through
  grants or made active over an already-configured LLM.
- Eden AI joins as the 35th LLM binding (#671), an OpenAI-compatible
  gateway addressed as <provider>/<model>.
- Knowledge bases answer from a real document inventory instead of
  guessing from retrieval hits: a per-KB inventory rides the system prompt
  and a new kb_files tool enumerates on demand with glob/substring
  filters, mounted under rag's gate and deniable per partner.
- The rag tool cites the chunks, entities, and reports retrieval actually
  returned (#694) rather than an echo of its own query; the local LightRAG
  pipeline still surfaces nothing to cite.
- GraphRAG indexing runs on a worker thread with its own asyncio loop
  (#695), so UVICORN_LOOP=asyncio is no longer needed, and two config
  faults that broke the first run are fixed (#699).
- Assorted: unique optimistic message ids (#698, a v1.5.4 regression that
  dropped the assistant reply from the visible thread), partner-chat
  manual scrolling respected (#704), claude-opus-5 recognized as
  effort-based (#703), Kimi models omit temperature outright, and
  deeptutor start keeps relaying logs on legacy Windows code pages (#702).
- Typing: narrow the loopback callback server to asyncio.Server and gate
  the msvcrt lock path on sys.platform so it type-checks off Windows.

Release notes: assets/releases/ver1-5-5.md
2026-07-26 23:19:09 +08:00
Bingxi Zhao (Frank)
d068519de8 release: v1.5.4
Same-day maintenance follow-up to v1.5.3, focused on how chat feels.

- Chat responsiveness: the post-answer "generating" stall is gone (DONE
  carries the persisted message ids so the frontend reconciles in place
  instead of refetching the session), turn events flush in one
  transaction (#678), the streaming autoscroll stops forcing per-frame
  layouts, and Enter during streaming no longer fires an interleaved
  message (#674).
- Partners: markdown-table row splitting unified across channels — empty
  cells survive Slack (#679) and Feishu (#683) tables, and empty rows are
  no longer misread as header separators (#682).
- LLM-output parsing: <think> reasoning tags stripped before parsing
  (#675), adjacent JSON values no longer break Deep Research extraction
  (#680), and the parser returns the longest decodable value instead of
  the first prefix (#692).
- Assorted: streaming quiz cards stay scoped to their own turn (#677),
  the create-KB form survives the background indexing poll (#691), and
  Math Animator reads ms as milliseconds, not minutes (#681).
- Typing: SQLite session store add_message accepts str parents to match
  SessionStoreProtocol (PocketBase record ids).

Release notes: assets/releases/ver1-5-4.md
2026-07-24 18:16:04 +08:00
Bingxi Zhao (Frank)
3a19752a44 release: v1.5.3
Maintenance release on top of v1.5.2.

- Themeable code blocks: Settings → Appearance gains a Code blocks panel
  (syntax theme, line numbers, wrapping) applied across chat, Book, and
  Co-Writer.
- My Agents connects four more coding CLIs — Gemini, Kimi, opencode, and
  MiMo Code — alongside Claude Code and Codex.
- Atlas Cloud joins as an LLM provider (34 bindings total); DashScope text
  embeddings route correctly and encoding_format is omitted for strict
  OpenAI-compatible gateways.
- Reliability sweep: RAG coexists with an exclusive knowledge capability
  (#650), DeepSeek DSML tool-call parsing (#666), autoscroll release (#649),
  idempotent write_memory (#647), seeded persona presets (#659), plus Book
  WebSocket streaming, partner filename/split fixes, Visualize fences, and
  CLI UTF-8 input hardening.
- Packaging: cap requires-python to >=3.11,<3.14 so pip refuses 3.14 with a
  readable message instead of a failed source build (#664).

Release notes: assets/releases/ver1-5-3.md
2026-07-24 03:06:58 +08:00
Bingxi Zhao (Frank)
b728354863 release: v1.5.2
Configurable chat attachment limits, PageIndex retrieval by reasoning
over your documents, broader Anthropic/OpenAI model support, and a
sweep of Book / Knowledge Base / chat-UI reliability fixes. Drop-in —
no migrations.

- attachments: size caps + extraction budgets editable in Settings →
  Chat → Attachments (admin), stored in system.json with CHAT_ATTACHMENT_*
  env overrides; the WebSocket frame ceiling is now derived from the
  total cap, fixing large uploads silently dropping the connection.
- pageindex: chat retrieves via an internal MCP server (agentic tool
  calls over the document tree); search() returns the outline; ingestion
  accepts PDF/Office/Markdown/text/CSV.
- llm: newer Anthropic/OpenAI models via official SDKs incl. Codex native
  tools; effort-based Claude → adaptive thinking; corrected temperature-
  rejection set; streamed usage counted once per completion.
- book/knowledge: rescue stuck GENERATING/PLANNING pages + reset on
  failure; KB status updates on upload/sync; atomic manager writes.
- web/channels: full-width chat + single scrollbar, aligned composer,
  Enter sends edited message, malformed-markdown crash fix; WeCom aligned
  with SDK 1.0.8; Mastery recency weighting restored (#618).
- release notes ver1-5-2.md (v1.5.0/v1.5.1 archived to past_releases/),
  __version__ bump to 1.5.2, README Releases row + one-week fold.
- README Settings/config prose + all 10 translations synced; docs
  settings/knowledge/chat pages updated separately in site/.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-19 17:15:36 +08:00
Bingxi Zhao
94acb597b5 Merge pull request #629 from nyxst4ck/nyxst4ck/auto-quote-pip-extras-20260715-094558
docs: quote pip extras install examples
2026-07-19 00:50:56 +08:00
Bingxi Zhao (Frank)
fb3c568697 fix pageindex & minor bugs 2026-07-18 19:47:03 +08:00
nyxst4ck
0c6b7f1518 docs: quote pip extras install examples 2026-07-15 09:46:14 -03:00
Bingxi Zhao (Frank)
3e3b9a6ecb release: v1.5.1
Knowledge Center: remove a single raw document from a knowledge base —
even one stuck in an error state — instead of deleting and rebuilding
the whole base. A file that failed to parse (e.g. one over the cloud
parser's page limit) can now be dropped in place, with replace/retry.

- backend: remove_raw_document() decoupled from DocumentAdder (needs no
  ready index) + DELETE /{kb_name}/files/{filename:path}; shared
  _read_metadata / _write_metadata / _raw_hash_key helpers so indexing
  and removal agree on the hash key. Connected/legacy KBs still rejected.
- web: deleteKbFile() API, per-file delete in the Files tab, and
  error-state KBs unlocked for drop / upload-replacement / retry.
- release notes ver1-5-1.md (old notes archived to past_releases/),
  __version__ bump to 1.5.1, README Releases row + one-week fold.
- README KB prose + all 10 translations synced; docs knowledge page
  updated separately in site/.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 23:23:27 +08:00
Bingxi Zhao (Frank)
df6922bb1b release: v1.5.0
Cap the v1.4 line and cut v1.5.0.

Code changes in this tag:
- LlamaIndex ingestion now routes through the shared document-parse layer
  (get_parse_service), so the engine chosen in Settings -> Document Parsing
  owns extraction on the default engine too, and extracted images flow into
  the multimodal ImageNode path — the same seam LightRAG/GraphRAG use (#606).
- Partner/Soul ids are ASCII/URL-safe: pure-CJK names get a stable
  partner-/soul-<hash> id so non-Latin names stay reachable in /partners/<id>
  and /souls/<id> URLs; soul ids are slugged authoritatively server-side and
  session filenames are hardened.
- The graphrag/rag-lightrag extras carry a python_version < '3.14' marker so
  pip no-ops them on 3.14+ instead of silently backtracking DeepTutor to an
  old extra-free version; floors/ceilings tightened.

Release notes recap the whole v1.4.0-beta -> v1.5.0 arc: 36 merged community
PRs and 53 resolved issues, with contributor credits. Old notes archived past
the one-week fold; version bumped to 1.5.0.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-04 16:40:08 +08:00
Bingxi Zhao (Frank)
bca6f6e983 release: v1.4.15
Native Mattermost channel for Partners (issue #590): a self-hosted
Mattermost server connects through its own v4 WebSocket + REST API
instead of the Slack-compatibility shim, reusing the existing
httpx + websockets transport.

Guided Learning multiple-choice questions now register every full option
body with mastery_quiz (not bare A/B/C labels), so grading is
deterministic and the saved Question Bank entry shows the real choices;
pre-existing paths recover option text from the original ask_user card.

A configured zero chunk_overlap (or chunk_size) on the LlamaIndex engine
is no longer coerced to the default 50.

Bundles the README Releases update, translated-README channel-list sync
(10 languages), release notes (assets/releases/ver1-4-15.md), version
bump to 1.4.15, and the ruff-format of the new Mattermost channel files.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-30 22:33:04 +08:00
Bingxi Zhao (Frank)
8f39545d6b release: v1.4.14
Fixes-and-polish follow-up to v1.4.13: open an assigned partner straight
into chat, Deep Research flags partial reports, LightRAG indexes without
MinerU, FAISS handles non-ASCII paths, and PocketBase sessions are isolated
per user. Drop-in for the default backend — no migrations.

- Partners: a non-admin clicking an assigned partner now connects it as an
  agent and opens a fresh chat targeting it (?agent=<name> preselect on the
  home page); admins still drill into the management page.
- Deep Research: blocks that raise or exhaust their iteration budget are
  surfaced — a warning notice plus partial / failed_block_count /
  failed_block_titles in the result envelope — so a report no longer looks
  like a clean success (#595).
- LightRAG: skip RAG-Anything's one-time install check on its default parser
  (mineru); DeepTutor feeds pre-parsed content, so indexing proceeds
  regardless of the chosen parse engine (#594).
- FAISS: persist/load the index through a Python byte stream so non-ASCII
  paths (Chinese KB names, C:\Users\张三) work on Windows; on-disk format
  unchanged and cross-readable with stock FAISS.
- PocketBase: every session is stamped with and filtered by user_id, with
  messages/turns reachable only through the owning session, mirroring the
  SQLite per-user-file isolation (#596).
- Release notes (ver1-4-14.md, older notes archived to past_releases/),
  version bump to 1.4.14, README Releases row + one-week fold. README prose
  + translations already in sync; docs PocketBase caveat updated separately
  in the site/ repo.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-29 23:23:54 +08:00
Bingxi Zhao (Frank)
284066ad71 release: v1.4.13
Partners with non-Latin names create correctly and become assignable to
specific users; logos render after login in multi-user mode (#599); small
knowledge bases retrieve reliably; and containers start cleanly under
rootless Podman. Drop-in — no migrations.

- Partners: slugify keeps Unicode letters so Chinese (and other non-Latin)
  names no longer collapse to an empty id; partners become a grantable
  resource (admin assigns; assignee can connect + consult; CRUD stays
  admin-only) via new partner_access.py + /subagents/partners endpoint.
- Multi-user: public static assets bypass the auth gate so the Next.js image
  optimizer's cookie-less loopback fetch no longer 307s to /login and breaks
  logos/banners (#599); routing policy extracted to a pure, tested proxy-policy.ts.
- RAG: BM25 top_k clamped to corpus size so a tiny KB no longer crashes
  hybrid retrieval at query time.
- Uploads: one 200MB limit for every format (dropped the separate PDF cap);
  proxy body limit raised to match.
- Docker: supervisord runs as PID 1's UID with its pidfile in /tmp, portable
  across rootful Docker and rootless podman keep-id.
- Release notes (ver1-4-13.md), version bump to 1.4.13, README prose +
  Releases row, and all 10 translated READMEs synced.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-27 18:47:53 +08:00