release: v1.1.2 — schema-driven channels, secret masking, RAG simplification, KB-consistency hardening

* TutorBot Channels tab is now schema-driven across every built-in & plugin channel
  (GET /api/v1/tutorbot/channels/schema), with per-field secret reveal toggles.
* Channel secrets are masked end-to-end; raw values only surface via the explicit
  ?include_secrets=true edit-form route. PATCH validates ChannelsConfig at the API
  boundary and returns 422 on bad payloads. reload_channels is serialised by an
  asyncio.Lock and records last_reload_error for the UI.
* Collapsed services/rag/ to a single LlamaIndex pipeline: removed ~2.6k lines of
  unused components/* + pipeline.py + types.py + utils/ + parsers/. rag_provider
  is now a stub; legacy values silently coerce to llamaindex.
* Centralised file routing into services/rag/file_routing.py (FileTypeRouter /
  DocumentType / FileClassification); dropped per-provider extension helpers.
* Defensive RAG/KB consistency: deep_solve / deep_research strip rag/kb when no
  KB is attached; SolveToolRuntime + ResearchPipeline + DecomposeAgent
  short-circuit instead of falling back to non-existent default KBs (DE-all,
  ai_textbook).
* Externalised AgenticChatPipeline prompts into agentic_chat.yaml (zh + en).
* Added Thai README (#337).
* New test modules: file_routing, knowledge_base_config, channel_schema,
  channel_secrets, rag_consistency, research_pipeline_rag.

Full notes: assets/releases/ver1-1-2.md

Made-with: Cursor
This commit is contained in:
Bingxi Zhao (Frank)
2026-04-18 11:33:53 +08:00
parent 439630cc54
commit 100576da69
65 changed files with 3051 additions and 2643 deletions

View File

@@ -18,7 +18,7 @@ from rich.table import Table
from deeptutor.knowledge.manager import KnowledgeBaseManager
from deeptutor.services.path_service import get_path_service
from deeptutor.services.rag.components.routing import FileTypeRouter
from deeptutor.services.rag.file_routing import FileTypeRouter
from deeptutor.services.rag.factory import DEFAULT_PROVIDER
console = Console()
@@ -43,7 +43,7 @@ def _collect_documents(docs: list[str], docs_dir: Optional[str]) -> list[str]:
base = Path(docs_dir).expanduser().resolve()
if not base.exists() or not base.is_dir():
raise typer.BadParameter(f"docs directory does not exist: {base}")
for pattern in FileTypeRouter.get_glob_patterns_for_provider(DEFAULT_PROVIDER):
for pattern in FileTypeRouter.get_glob_patterns():
candidates.extend(path for path in base.rglob(pattern) if path.is_file())
unique: list[str] = []