docs(wiki): 全量代码验证驱动更新 — 10页基于实际扫描非文档推测
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
关键数字修正: - Rust 74.5K行(原66K), Tauri命令 183(原182), SaaS路由 121 - 前端组件 104, lib/ 85文件, Store 17+4子store - TODO/FIXME 仅 8 个(前端4+Rust4) 内容增强: - 中间件完整14层注册清单含注册条件和优先级分类 - Store完整目录结构, Pipeline完整目录树 - Hands测试分布, Memory 16个Tauri命令列表 - 管家模式: 关键词路由→语义路由(TF-IDF)修正 - 代码健康度指标新增
This commit is contained in:
@@ -86,6 +86,46 @@ listModels() 失败
|
||||
`getClient()` 定义: `connectionStore.ts:844`
|
||||
所有 Store 通过 `initializeStores()` (store/index.ts:94) 获取共享 client。
|
||||
|
||||
### Store 层 (17 文件 + chat/4)
|
||||
|
||||
```
|
||||
desktop/src/store/
|
||||
├── index.ts Store 协调器 + client 注入
|
||||
├── agentStore.ts Agent 分身管理
|
||||
├── browserHandStore.ts 浏览器 Hand 状态
|
||||
├── chatStore.ts 聊天通用状态
|
||||
├── classroomStore.ts 课堂模式
|
||||
├── configStore.ts 配置读写
|
||||
├── connectionStore.ts 路由决策核心
|
||||
├── handStore.ts Hand 状态管理
|
||||
├── memoryGraphStore.ts 记忆图谱
|
||||
├── offlineStore.ts 离线队列
|
||||
├── saasStore.ts SaaS 认证
|
||||
├── securityStore.ts 安全状态
|
||||
├── sessionStore.ts 会话管理
|
||||
├── uiModeStore.ts 双模式 UI
|
||||
├── workflowBuilderStore.ts 工作流构建器
|
||||
├── workflowStore.ts 工作流状态
|
||||
└── chat/
|
||||
├── artifactStore.ts 聊天产物
|
||||
├── conversationStore.ts 会话管理
|
||||
├── messageStore.ts 消息持久化
|
||||
└── streamStore.ts 流式编排
|
||||
```
|
||||
|
||||
### lib/ 工具层 (85 个文件)
|
||||
|
||||
关键分类:
|
||||
|
||||
| 类别 | 文件 | 数量 |
|
||||
|------|------|------|
|
||||
| Kernel 通信 | kernel-chat/kernel-client/kernel-agent/... | 7 |
|
||||
| SaaS 通信 | saas-client/saas-auth/saas-billing/... | 9 |
|
||||
| Gateway | gateway-client/gateway-api/gateway-auth/... | 6 |
|
||||
| Intelligence | intelligence-client/ + 5 fallback | 7 |
|
||||
| 工具 | config-parser/crypto-utils/logger/utils | 10+ |
|
||||
| Tauri 集成 | safe-tauri/tauri-gateway/secure-storage | 3 |
|
||||
|
||||
## 关联模块
|
||||
|
||||
- [[chat]] — 路由决定使用哪种 ChatStream
|
||||
@@ -97,9 +137,10 @@ listModels() 失败
|
||||
|
||||
| 文件 | 职责 |
|
||||
|------|------|
|
||||
| `desktop/src/store/connectionStore.ts` | 路由决策核心 (844行) |
|
||||
| `desktop/src/store/connectionStore.ts` | 路由决策核心 |
|
||||
| `desktop/src/lib/gateway-client.ts` | WebSocket 客户端 |
|
||||
| `desktop/src/lib/kernel-chat.ts` | Tauri 内核聊天 |
|
||||
| `desktop/src/lib/kernel-client.ts` | Kernel 客户端配置 |
|
||||
| `desktop/src/lib/saas-relay-client.ts` | SaaS SSE 中继 |
|
||||
| `desktop/src/lib/saas-client.ts` | SaaS API 客户端 |
|
||||
| `desktop/src/store/index.ts` | Store 协调器 + client 注入 |
|
||||
|
||||
Reference in New Issue
Block a user