docs: sync features docs with current project state
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
Update docs/features/ to reflect latest architecture: - Tauri commands: 177 (160 @connected + 16 @reserved) - Zustand stores: 18 (including chatStore 4 sub-stores) - SaaS API routes: 131 (12 modules, 34 data tables) - Workers: 7 (added AggregateUsage + GenerateEmbedding) - React 19 + Tailwind 4 tech stack - Schema v8, subtaskStatus taskId threading
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
> **分类**: 架构层
|
||||
> **优先级**: P0 - 决定性
|
||||
> **成熟度**: L4 - 生产
|
||||
> **最后更新**: 2026-04-01
|
||||
> **最后更新**: 2026-04-06
|
||||
> **验证状态**: 代码已验证
|
||||
|
||||
---
|
||||
@@ -20,10 +20,10 @@
|
||||
| 优先级 | P0 |
|
||||
| 成熟度 | L4 |
|
||||
| 依赖 | Tauri Runtime 2.x |
|
||||
| Tauri 命令数量 | **175** (kernel 34 + pipeline 10 + browser 22 + intelligence 35 + memory 14 + cli 13 + viking 13 + llm 3 + secure_storage 4 + classroom 27) |
|
||||
| Tauri 命令数量 | **177** (160 @connected + 16 @reserved + 1 unregistered) |
|
||||
| Rust Crates | 10 个 (types, memory, runtime, kernel, skills, hands, protocols, pipeline, growth, saas) |
|
||||
| 连接模式 | 3 种 (Tauri Kernel / Gateway WebSocket / SaaS Cloud) |
|
||||
| SaaS API 路由 | 58 (Axum + PostgreSQL, 10 模块 + 1 health) |
|
||||
| SaaS API 路由 | 131 (Axum + PostgreSQL, 10 模块 + 1 health) |
|
||||
|
||||
### 1.2 相关文件
|
||||
|
||||
@@ -321,6 +321,7 @@ try {
|
||||
- [x] 8 个 LLM Provider 支持 (含 Gemini)
|
||||
- [x] UI 模型配置
|
||||
- [x] 流式响应 (Tauri 事件 stream:chunk + SSE)
|
||||
- [x] `subtaskStatus` 流式事件 — 子任务状态变更通过 `taskId` 字段标识,用于跟踪 Agent 子任务执行进度
|
||||
- [x] 连接状态管理
|
||||
- [x] 错误处理
|
||||
- [x] SaaS 30+ API 方法客户端
|
||||
@@ -367,4 +368,4 @@ try {
|
||||
|
||||
---
|
||||
|
||||
**最后更新**: 2026-04-01
|
||||
**最后更新**: 2026-04-06
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
> **分类**: 架构层
|
||||
> **优先级**: P0 - 决定性
|
||||
> **成熟度**: L4 - 生产
|
||||
> **最后更新**: 2026-04-01
|
||||
> **最后更新**: 2026-04-06
|
||||
> **验证状态**: ✅ 代码已验证
|
||||
|
||||
---
|
||||
@@ -20,29 +20,36 @@
|
||||
| 优先级 | P0 |
|
||||
| 成熟度 | L4 |
|
||||
| 依赖 | 无 |
|
||||
| Store 数量 | **14** |
|
||||
| Store 数量 | **18** |
|
||||
| Domains 数量 | 4 (chat, hands, intelligence, saas) |
|
||||
| 匁久化策略 | localStorage + IndexedDB (计划中) |
|
||||
| 持久化策略 | localStorage + IndexedDB (chatStore sub-stores 使用 IDB) |
|
||||
|
||||
### 1.2 Store 清单 (14 个实际存在的 Store)
|
||||
### 1.2 Store 清单 (18 个实际存在的 Zustand Store)
|
||||
|
||||
| Store | 路径 | 用途 | 验证状态 |
|
||||
|------|------|------|---------|
|
||||
| agentStore | `desktop/src/store/agentStore.ts` | Agent 克隆管理 | ✅ 存在 |
|
||||
| artifactStore | `desktop/src/store/artifactStore.ts` | 生成物(Artifact)管理 | ✅ 存在 |
|
||||
| browserHandStore | `desktop/src/store/browserHandStore.ts` | Browser Hand 状态 | ✅ 存在 |
|
||||
| chatStore | `desktop/src/store/chatStore.ts` | 消息和会话管理 (DeerFlow 视觉) | ✅ 存在 |
|
||||
| chatStore | `desktop/src/store/chatStore.ts` | 聊天协调器(重构后为 4 sub-store 入口) | ✅ 存在 |
|
||||
| classroomStore | `desktop/src/store/classroomStore.ts` | 课堂/教学场景状态 | ✅ 存在 |
|
||||
| configStore | `desktop/src/store/configStore.ts` | 配置持久化 | ✅ 存在 |
|
||||
| connectionStore | `desktop/src/store/connectionStore.ts` | 连接状态管理 | ✅ 存在 |
|
||||
| conversationStore | `desktop/src/store/conversationStore.ts` | 会话管理 (chatStore sub-store) | ✅ 存在 |
|
||||
| handStore | `desktop/src/store/handStore.ts` | Hands 触发管理 | ✅ 存在 |
|
||||
| memoryGraphStore | `desktop/src/store/memoryGraphStore.ts` | 记忆图谱状态 | ✅ 存在 |
|
||||
| messageStore | `desktop/src/store/messageStore.ts` | 消息管理 (chatStore sub-store) | ✅ 存在 |
|
||||
| offlineStore | `desktop/src/store/offlineStore.ts` | 离线模式管理 | ✅ 存在 |
|
||||
| saasStore | `desktop/src/store/saasStore.ts` | SaaS 平台集成 (登录/配置/Prompt OTA) | ✅ 存在 |
|
||||
| securityStore | `desktop/src/store/securityStore.ts` | 安全配置管理 | ✅ 存在 |
|
||||
| sessionStore | `desktop/src/store/sessionStore.ts` | 会话持久化 | ✅ 存在 |
|
||||
| streamStore | `desktop/src/store/streamStore.ts` | 流式响应管理 (chatStore sub-store) | ✅ 存在 |
|
||||
| workflowBuilderStore | `desktop/src/store/workflowBuilderStore.ts` | 工作流构建器状态 | ✅ 存在 |
|
||||
| workflowStore | `desktop/src/store/workflowStore.ts` | 工作流管理 | ✅ 存在 |
|
||||
|
||||
> **注**: 以下 Store 在早期文档中出现但已被移除或合并: teamStore (多 Agent 功能 feature-gated), meshStore, personaStore (合并到 identity 系统), activeLearningStore, skillMarketStore, gatewayStore (功能合并到 connectionStore)
|
||||
> **注**: ChatStore 经历了结构性重构,从单一大 Store 拆分为 4 个专职 sub-store:`chatStore`(协调器)、`streamStore`(流式响应)、`messageStore`(消息管理)、`conversationStore`(会话管理)。拆分后各 Store 职责单一,支持独立持久化(conversationStore/messageStore 使用 IndexedDB)。
|
||||
>
|
||||
> 以下 Store 在早期文档中出现但已被移除或合并: teamStore (多 Agent 功能 feature-gated), meshStore, personaStore (合并到 identity 系统), activeLearningStore, skillMarketStore, gatewayStore (功能合并到 connectionStore)
|
||||
|
||||
### 1.3 Domain Stores (领域状态)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user