Adapt the Phase 1 foundation from PR #1309 and complete scoped API lifecycle, pre-import approval, artifact-bound revocation, recovery, bounded workers and frontend isolation. Keep the stronger ecosystem roadmap explicit in the RFC.
Co-authored-by: XZH <cto@xzh.ai>
* fix(cli): declare standalone runtime dependencies
* style: satisfy ruff format in the packaging metadata test
`ruff format --check .` is a CI gate and wanted the `open("rb")` call on one
line (99 chars). This was the only red check; every test job passed.
---------
Co-authored-by: Frank <bingxizhao@novix.science>
Adds PageIndex OSS as a knowledge-base type and moves PageIndex retrieval from traditional RAG to reasoning-based retrieval: a small workflow-owned agent loop reads the document tree instead of going through the built-in MCP server, which this removes.
The `mcp` client was declared only under the `partners` extra, but the MCP
connection manager and the built-in PageIndex MCP server are core: the manager
overlays a reserved `pageindex` entry onto the config whenever a PageIndex API
key is set, on any turn. A plain `pip install deeptutor` therefore had no `mcp`,
so the connection task raised ModuleNotFoundError, never resolved the caller's
ready future, and every turn stalled for the full 15s connect timeout before
reporting the one cause that was not responsible: "connect timed out after 15s".
Declare `mcp>=1.26.0,<2.0.0` as a core dependency of both published
distributions and drop it from the `partners` extra, which now inherits it.
Mirror the move in requirements/ (cli.txt gains it, partners.txt inherits it
via server.txt).
Also import `mcp` inside `_run_server`'s guarded block rather than above it. At
function scope the import raised before anything could fail `ready`, which is
what turned a permanent, instantly-knowable error into a timeout plus an
orphaned "Task exception was never retrieved". Inside the block the real cause
reaches the caller immediately.
Closes#792
* fix: make prompt loading and capability failures terminal
* fix: handle remote knowledge base file listings
* fix: proxy uploads to LightRAG servers
* fix: show remote LightRAG document status
* fix: clarify knowledge upload confirmation
* fix(knowledge): hide reindex for connected bases
* refactor: narrow this branch to the prompt-resource fix
Split out of the original PR so #737's two halves land separately:
- The terminal-failure change to runtime/orchestrator.py is already on dev
via #732, which shipped the same turn_terminal/status metadata. Dropped
here rather than merged twice.
- The LightRAG Server upload forwarding and remote document listing belong
to #755, not #737. Preserved on origin/keep/738-lightrag-server for a
follow-up PR against that issue.
- Dropped the third prompt fallback that read the adjacent YAML with
pathlib+yaml directly. With the cache no longer poisoned by a miss,
reload_prompts() recovers on its own, and PromptManager stays the only
thing that knows how to locate a prompt file.
---------
Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>
On Python 3.14 pip finds no wheels for some compiled base deps (e.g.
faiss-cpu) and silently backtracks into a source build that dies with
subprocess-exited-with-error. The heavy RAG extras already carry a
python_version < '3.14' marker; capping requires-python makes pip refuse
3.14 with a readable message instead of a build failure.