Commit Graph

330 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
7f5092ec60 refactor(auth): single source of truth for session cookie attributes
Follow-up to #625: login's two set_cookie calls and logout's
delete_cookie now share one _cookie_attrs() helper, so the
create/delete attribute sets can never drift apart again (the drift
that caused #623). Reads module globals at call time to keep the
regression tests' monkeypatching working.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-19 00:50:07 +08:00
Bingxi Zhao (Frank)
96a3b5db6b refactor(knowledge): unify all manager JSON writes on services.file_io atomic writer
Follow-up to #619: every kb_config.json / metadata.json write in
KnowledgeBaseManager now goes through atomic_write_json (temp file +
fsync + os.replace) instead of the truncate-then-lock pattern, so a
crash mid-write can no longer leave a truncated config and concurrent
readers always see a complete previous or new file. The JSON variant
in services.file_io gains the same tolerant fsync as its text sibling,
the now-redundant private helper and dead file_lock_exclusive are
removed, and the atomicity-contract test moves next to the shared
writer in tests/services/test_file_io.py.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-19 00:50:07 +08:00
Bingxi Zhao
3528dd071f Merge pull request #631 from tianrking/agent/fix-wecom-sdk-startup
fix(partners): align WeCom with SDK 1.0.8
2026-07-19 00:32:32 +08:00
Bingxi Zhao
9379e78018 Merge pull request #628 from xor-xe/fix/624-mineru-image-paths
fix: resolve relative img_path in parsed content lists to absolute paths
2026-07-19 00:32:28 +08:00
Bingxi Zhao
8192029519 Merge pull request #626 from NoxsMedia/fix/openai-codex-native-tools
fix(llm): enable OpenAI Codex native tool calls
2026-07-19 00:31:38 +08:00
Bingxi Zhao
ae3c71ab98 Merge pull request #625 from whm8016/fix/logout-cookie-secure-samesite
fix: set Secure attribute when clearing dt_token on logout
2026-07-19 00:31:34 +08:00
Bingxi Zhao
f8ede5e20f Merge pull request #622 from whm8016/fix/mastery-recency-weighting
fix: restore recency weighting in compute_mastery (#618)
2026-07-19 00:31:31 +08:00
Bingxi Zhao
38f2e8cf1d Merge pull request #619 from huytg2610/fix/persist-linked-folder-sync-state
fix(knowledge): persist linked folder sync state updates
2026-07-19 00:31:27 +08:00
Bingxi Zhao (Frank)
fb3c568697 fix pageindex & minor bugs 2026-07-18 19:47:03 +08:00
tianrking
8cf604577e fix(partners): align WeCom with SDK 1.0.8 2026-07-16 13:23:36 +08:00
BukeLy
7d270b3956 fix(pageindex): update stale provider description in factory list_pipelines 2026-07-15 18:35:07 +08:00
BukeLy
3288ce7931 refactor(pageindex): trim review findings — drop redundant dir resolution in search, dedupe deferred_tools() call, inline blocklist, fix stale docstrings 2026-07-15 18:30:04 +08:00
BukeLy
2e82ad4d27 feat(pageindex): agentic retrieval via MCP tools + full document-endpoint format support
PageIndex deprecated its REST retrieval endpoint; deep retrieval is now
agentic through the hosted PageIndex MCP server, while search() serves
programmatic callers with real document tree outlines.

- New built-in "pageindex" MCP server entry, code-injected at manager load
  when an API key is configured (never persisted to mcp.json; user-defined
  entry wins; hot-reloads on key change). remove_document is blocked via a
  new MCPServerConfig.disabled_tools blocklist.
- Chat turns with a PageIndex KB attached get the server's tools preloaded
  under a narrowed implicit grant (KB access = permission), plus a system
  prompt block listing the KB's file -> doc_id manifest with usage notes.
  The rag tool's kb_name enum excludes PageIndex KBs (a pure-PageIndex
  conversation doesn't mount rag), so the agent reads those docs via MCP.
- PageIndexPipeline.search() now returns each document's tree outline
  (titles / pages / summaries) fetched over REST (GET /doc/{id}/?summary=true)
  as honest structural context for programmatic callers (book, co-writer,
  seed, CLI). No new error_type; existing not_configured / retrieval_error /
  needs_reindex semantics are unchanged. The dead REST retrieval client
  methods are deleted. Existing KBs need no migration.
- SUPPORTED_EXTENSIONS now mirrors POST /doc/: pdf, md, markdown, txt, docx,
  doc, pptx, ppt, xlsx, xls, csv (zip stays a local container); frontend
  format list + copy updated (en/zh).
2026-07-15 18:21:43 +08:00
xor_xe
68613a6418 fix: resolve relative img_path in parsed content lists to absolute paths
MinerU emits img_path entries like images/x.png relative to the
content-list file inside the parse cache. RAG-Anything resolves them
against its own working directory, so the vision stage cannot open the
images when indexing with LightRAG. Anchor relative img_path values at
the content dir when loading the cached IR; the cached JSON itself stays
relative so cache dirs remain relocatable.

Fixes #624
2026-07-15 13:53:50 +04:00
NoxsMedia
c6b6d87651 fix(llm): enable OpenAI Codex native tool calls 2026-07-15 15:59:37 +08:00
whm
ec3b12c4f2 fix: set Secure attribute when clearing dt_token on logout
logout() called delete_cookie() with only samesite, which defaults
secure=False. When cookie_secure=true (SameSite=None), that produces
an invalid SameSite=None-without-Secure expiry header that browsers
reject, leaving the original dt_token cookie in place after sign-out.

Closes #623

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-14 19:59:23 +08:00
whm
5d7647002e fix: restore recency weighting in compute_mastery (#618) 2026-07-12 16:36:02 +08:00
huy
6ae7a68120 fix(knowledge): persist linked folder sync state updates
update_folder_sync_state() mutated the loaded metadata dict and
returned without writing it back, so last_sync/synced_files never
reached metadata.json while the API layer logged success. Future
scans re-treated already-synced files as new.

Write back through a same-directory temp file + os.replace so
readers never observe a truncated metadata.json.
2026-07-11 23:01:04 +07: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)
3d5b669cd3 minor fix 2026-07-04 15:49:11 +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)
4fab448977 minor fix & new channel 2026-06-30 22:11:40 +08:00
Bingxi Zhao
0bbd4668f2 Merge pull request #604 from spring618/codex/fix-mastery-choice-persistence
[codex] fix mastery choice persistence and grading
2026-06-30 21:38:40 +08:00
R-Turing
943e9fb7e8 fix mastery choice persistence and grading 2026-06-30 20:52:47 +08:00
VectorPeak
8ba7dd2f38 fix: preserve zero LlamaIndex chunk overlap 2026-06-30 10:32:34 +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)
3b823ae5f7 minor fixes 2026-06-29 23:06:30 +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
Bingxi Zhao (Frank)
9983c0a3d1 fix: partners & multi-user 2026-06-27 18:27:16 +08:00
Bingxi Zhao (Frank)
2af83c5dc5 fix(rag): clamp BM25 top_k to corpus size so small KBs don't crash hybrid retrieval
QueryFusionRetriever asks BM25 for top_k x bm25_multiplier candidates; on a
knowledge base with fewer nodes than that (e.g. a single short document),
newer llama-index-retrievers-bm25 raises "k of N is larger than the number of
available scores" at query time instead of returning what it has. Clamp the
BM25 retriever's similarity_top_k to the docstore node count.

This was latent — the BM25 path is skipped when the optional package is absent
(as in the local dev env) — and was surfaced by the new FAISS end-to-end test
(1-node corpus), which failed CI on the v1.4.12 commit across Python 3.11-3.14.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 19:58:21 +08:00
Bingxi Zhao (Frank)
30b92dfe86 release: v1.4.12
LightRAG Server retrieval engine, PyMuPDF4LLM document parsing, and a
FAISS vector backend that makes large knowledge-base retrieval far faster.
Drop-in — existing knowledge bases keep working; re-index to move onto FAISS.

- LightRAG Server: connect a KB to a standalone LightRAG server over HTTP
  (no local index); per-KB server URL + optional API key, always available.
- PyMuPDF4LLM: lightweight, image-capable parsing engine (no CUDA, no model
  downloads); background install from Settings → Document Parsing.
- FAISS: faiss-cpu + llama-index-vector-stores-faiss as core deps, lazy
  import with graceful SimpleVectorStore fallback (issue #552).
- Release notes (ver1-4-12.md), version bump to 1.4.12, README prose +
  Releases row, and all 10 translated READMEs synced.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 16:24:08 +08:00
Bingxi Zhao (Frank)
eef785ae1e integrate lightrag-server & other fixes. 2026-06-24 15:54:12 +08:00
Bingxi Zhao (Frank)
26a2df95dd release: v1.4.11
Native tool calling now lights up on every cloud OpenAI-compatible
provider (SiliconFlow, Gemini, Zhipu, Qianfan, NVIDIA NIM, the
Volc/BytePlus coding plans) instead of silently falling back to prose —
so KB retrieval and capability tools actually fire. Plus a redesigned
admin Users page (avatars, search, skeleton, confirm dialog), LaTeX in
quiz options, configurable container host binding (BACKEND_HOST/
FRONTEND_HOST) with root-supervisord and dead gosu/libcap2-bin removed,
and an honest indeterminate session-loading overlay.

Bump __version__ to 1.4.11 and add the README Releases row. Drop-in —
no migrations. Release notes: assets/releases/ver1-4-11.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 23:53:56 +08:00
Bingxi Zhao (Frank)
61f9c66718 fix(llm): enable native tool calls for all registered cloud OpenAI-compatible providers
#584 fixed SiliconFlow by adding a PROVIDER_CAPABILITIES entry, but the same
class of bug affected every registered openai_compat cloud provider lacking an
explicit entry: get_capability fell to DEFAULT_CAPABILITIES (supports_tools=
False), so can_use_native_tool_calling() returned False and models emitted
textual <tool_calls> markup instead of executable tool calls. Affected:
gemini, zhipu, qianfan, stepfun, xiaomi_mimo, nvidia_nim, aihubmix, and the
volcengine/byteplus coding-plan variants.

Make the decision registry-backend-driven instead of per-provider data:
can_use_native_tool_calling now treats a registered, non-local openai_compat
provider as tool-capable by default (matching the catch-all 'custom' provider
and the OpenAI-compatible API contract). Anthropic backends stay always-on;
local servers (Ollama/vLLM/LM Studio/llama.cpp/Lemonade/OVMS) and bindings in
_NATIVE_TOOL_BLOCKED_BINDINGS stay opted out; an explicit supports_tools flag
still wins. This removes the registry/capabilities duplication for the tools
flag and prevents the gap from recurring when new cloud providers are added.

capabilities.py stays a pure static-data module (no registry coupling); the
policy lives in client.py, which already consults the registry.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 21:35:12 +08:00
TyrionH-is-coding
effbb82798 fix(llm): enable SiliconFlow native tool calls 2026-06-22 22:48:42 +08:00
Bingxi Zhao (Frank)
42941faaff fix prs 2026-06-21 14:43:41 +08:00
Bingxi Zhao (Frank)
5eafa0c2fb refactor(multi-user): consolidate partner-turn detection + align MCP grant UI
Follow-up refinements on top of #579 (deny MCP tools until explicitly
granted), tightening decoupling and front/back consistency:

- Decouple: extract the duplicated `metadata.source == "partner"` check
  (deferred-tools, exec gate, tool composition, cron owner routing) into a
  single `AgenticChatPipeline._is_partner_turn` helper, so the partner
  authority-via-metadata contract has one definition instead of four
  inline copies.
- Frontend parity: the backend now denies MCP for non-admin users when the
  grant omits `mcp_tools`, but GrantEditor still showed `null` as
  "Default · all" / "all MCP". Make ModeSwitch's default-mode label
  caller-supplied, label the MCP section "Default · none" / "no MCP", and
  add a one-line rationale so admins are not misled into granting nothing.

Built-in optional tools keep `null = all`; only MCP tools fail closed.

Tests: ruff clean; pytest multi_user/mcp/partners/chat (545 passed);
web tsc + eslint clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 13:48:00 +08:00
hinotoi-agent
dab6347e59 fix: deny ungranted MCP tools for non-admin users 2026-06-21 11:03:24 +08:00
Bingxi Zhao (Frank)
2729b75dde Merge pull request #573: user profile page with avatar
Self-service /profile page (account info, icon/image avatar, sign out)
implementing the profile half of #553. Contributed by @IliaAvdeev.

Integration performed during merge onto current dev:
- Migrate ProfileLink and the profile page off the removed AUTH_ENABLED
  build-time export to runtime auth status (auth.ts was refactored on dev
  by #577). ProfileLink reads the full status via fetchAuthStatus (it needs
  username/avatar, which the useAuthStatus hook does not expose); the page
  gates on status.enabled.
- Resolve en/zh locale conflicts as a union of dev and PR keys.
- Honor EXIF orientation in createImageBitmap so the primary decode path
  matches the <img> fallback.
- Drop an unreachable AUTH_ENABLED render guard in the profile page.

Verified locally: tsc, eslint, ruff, web node tests (142), pytest
tests/multi_user (81 passed).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-20 23:57:21 +08:00
Bingxi Zhao (Frank)
1d9a4a904d fix(logging): silence routine 200 access-log spam on all launch paths
The backend was logging every request (the chatty frontend polling of
/settings, /tools, /knowledge/list, /settings/llm-options, ...) as
`::1:0 - "GET ... 200 OK"`. uvicorn's per-request access log was only disabled
in run_server.py (access_log=False); the `deeptutor start` launcher and the
Docker entrypoints invoked uvicorn directly with it still on, so the 200s
leaked.

- launcher.py + Dockerfile (production start-backend.sh and the dev supervisord
  program): add `--no-access-log` so all launch paths match run_server.py.
- Funnel access logging through the existing selective_access_log middleware
  (non-200 only), but log via a `deeptutor.access` logger with its own INFO
  stdout handler (propagate=False). Previously it used `uvicorn.access`, which
  has no handler once uvicorn's access log is off, and the root console handler
  runs at WARNING — so non-200s were being silently dropped. Now 200s are quiet
  and 4xx/5xx still surface.
- Rewrite the middleware test to capture on the deeptutor.access logger directly
  (it no longer propagates to root).

Verified: live server with --no-access-log logs nothing for 200s and prints
`127.0.0.1 - "GET /api/v1/... HTTP/1.1" 404` for a 404. ruff + pytest (2447) green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-20 22:01:01 +08:00
Bingxi Zhao (Frank)
dfa0c9b1ea fix(deploy): wire DEEPTUTOR_* proxy env via single JSON-backed exporter
The PR's relative-path + proxy.ts rewrite design depends on two env vars
(DEEPTUTOR_API_BASE_URL, DEEPTUTOR_AUTH_ENABLED) read server-side by the
Next.js middleware. As submitted they were only set by the Docker entrypoint,
and the auth one read a non-existent auth.json key — so auth enforcement was
silently disabled and the PyPI `deeptutor start` path was unwired.

- Export both vars from render_environment() (the single JSON-backed source of
  truth), so the Docker entrypoint AND the `deeptutor start` launcher get them
  consistently. DEEPTUTOR_API_BASE_URL falls back to localhost:<backend_port>.
- launcher.py: set both in common_env using the resolved backend_url, so they
  track port-conflict reassignment.
- Dockerfile: drop the duplicated, buggy per-var heredocs (one read the wrong
  key `auth_enabled` instead of `enabled`, leaving the proxy auth gate always
  off); the export_runtime_settings_to_env eval now provides both. Add them to
  the env-unset list for hygiene.
- Update the two placeholder tests to assert the new proxy-based design instead
  of the removed build-time sed mechanism; add DEEPTUTOR_* coverage in
  test_runtime_settings.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-20 21:12:40 +08:00
Bingxi Zhao (Frank)
f8349fc1e5 Release v1.4.9
Settings polish and a Mastery -> Question Bank link:
- Search settings show only the connection fields the selected provider uses
- Connection profiles can be renamed and auto-name after their provider
- Graded Mastery Path questions sync into the session Question Bank
- Fix untranslated Settings-tour Tools step (en/zh) + guard test
- Refresh README / translated READMEs for the current v1.4.6+ UI

Bump __version__ to 1.4.9, add assets/releases/ver1-4-9.md, restore the
v1.4.7/v1.4.8 README rows dropped by an earlier docs-update commit, and
compress every README release row to <=30 words.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 20:05:19 +08:00
Bingxi Zhao (Frank)
b364ffc593 minor fixes & docs update 2026-06-19 17:34:13 +08:00
Bingxi Zhao (Frank)
88c2565389 release: v1.4.8
Partners become consultable agents and gain their own memory.

- My Agents now lists your Partners next to local Claude Code / Codex;
  connect one and the turn runs on `consult_subagent` against the
  partner's own chat loop, streaming its trace live. Every consult in a
  DeepTutor chat threads into one archived partner session.
- Partners get a split memory model via three always-on tools that
  replace chat's read_memory/write_memory on partner turns:
  partner_read (owner shared + own), partner_memorize (own only),
  partner_search (own history). The per-Partner memory toggles are gone.
- A `partner:` history reference resolves a partner transcript
  (admin-only) into a DeepTutor chat as third-party context.

Release-prep fixes for a clean CI parity run:
- partner.py: replace mypy-misparsed `# type:` dict-entry comments with
  a proper variable annotation.
- claude_models.py: `# nosec B606 B607` on the PATH-resolved `os.execvp`
  in the forked PTY child (no shell; pre-existed since v1.4.7).

Bump __version__ to 1.4.8, add assets/releases/ver1-4-8.md, README row.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 22:16:31 +08:00
Bingxi Zhao (Frank)
7871955ab5 fix:partners & improve my agents 2026-06-18 22:00:59 +08:00
Bingxi Zhao (Frank)
1bf11d13e7 prepare 1.4.7 2026-06-18 00:22:48 +08:00
Bingxi Zhao (Frank)
7d3a06ca8f fix: repair v1.4.6 CI failures (lint + RAG/partner test isolation)
The v1.4.6 squash shipped three CI-red issues that the release pre-commit
gate could not see (ruff hook runs with --exit-zero; the release process
never runs pytest):

- partners WS chat referenced an undefined `mgr` (ruff F821, and a real
  runtime NameError on the partner WebSocket chat path) — bind
  `mgr = get_partner_manager()` in the handler, matching the file's idiom.
- GraphRAG initialize/search tests drove write_settings() through the real
  catalog, which has no active embedding model in CI — pin fake llm +
  embedding configs in `_stub_build`, the same way the LightRAG test does.
- PageIndex `test_factory_dispatches_by_provider` constructed a real
  LlamaIndexPipeline whose __init__ resolves the embedding catalog — stub
  `_configure_settings`, matching the LlamaIndex pipeline tests.
- New `test_chat_does_not_auto_start_stopped_partner` spawned a real
  PartnerRunner task and cancelled it across TestClient per-request event
  loops — drive the start/stop/chat sequence through one shared loop via a
  context-managed TestClient.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-17 11:28:18 +08:00
Bingxi Zhao (Frank)
7ac3a3ba79 release: v1.4.6
A broad consolidation release across four product surfaces.

- Learning Space: Space becomes a learning dashboard; My Agents imports
  local Claude Code / Codex chat history into resumable agents (with an
  objective explore_context briefing so the tutor never role-plays the
  user); Memory is promoted to a top-level /memory route; Partner
  conversations flow into Memory; EduHub skills install inline.
- Knowledge Center: /knowledge rebuilt as a console with per-engine
  detail pages; GraphRAG / PageIndex / LightRAG engines join LlamaIndex;
  linked-KB read-only mounts; Obsidian live-vault capability.
- Settings: pluggable document parsing (MinerU / Docling / MarkItDown)
  with a content-addressed cache and MinerU cloud/local backends; voice
  TTS/STT; image & video generation; rebuilt settings navigation.
- Platform: per-user capability gating by assigned model; Solve rebuilt
  on the chat loop with a per-step gate and mid-run failure fallback;
  username login + inline errors; CLI skill publish/update; picker
  polish; math-before-citation render fix.

Docs were split out to a standalone site, so site/ is now landing-page
only. Bumps __version__ to 1.4.6 and adds assets/releases/ver1-4-6.md.

Folds in mypy fixes surfaced by pre-commit (mineru/local Path typing,
knowledge/manager no-redef, explore_context token kwargs, CLI
set_dist_tag capability probe) plus prettier reformatting of
previously-committed web files.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-17 10:50:44 +08:00
Bingxi Zhao (Frank)
7ed16cf48a update tests 2026-06-17 10:30:25 +08:00