## ChatEntryContext 模型 - ChatScopeType enum (knowledgeBase/folder/material/knowledgeItem/global) - ChatEntryContext struct + ChatScopeSnapshot - ChatSession 更新 (新增 13 个 scope 字段) - CreateSessionRequest/UpdateChatSessionRequest ## Route + Service - Route.aiChat 从 knowledgeBaseId 改为 ChatEntryContext - RagChatService.createSession 接入 open-or-create API - listSessions 支持 scope 过滤 - 新增 updateSession (PATCH) ## 6 个入口全部接入 - 知识库详情 → knowledge_base scope - 资料详情 → material scope - 资料阅读页 → material scope - 知识点详情 → knowledge_item scope - 全局入口 → global scope ## AI Chat View - open-or-create: load() 直接调 POST /sessions - 顶部 scope 指示器 (scopeLabel + scopeIcon) - 新对话按钮在当前 scope 下工作 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Description
No description provided
Languages
Swift
88.6%
C
11.4%