feat: 新增技能编排引擎和工作流构建器组件
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
refactor: 统一Hands系统常量到单个源文件 refactor: 更新Hands中文名称和描述 fix: 修复技能市场在连接状态变化时重新加载 fix: 修复身份变更提案的错误处理逻辑 docs: 更新多个功能文档的验证状态和实现位置 docs: 更新Hands系统文档 test: 添加测试文件验证工作区路径
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
> **分类**: 架构层
|
||||
> **优先级**: P0 - 决定性
|
||||
> **成熟度**: L4 - 生产
|
||||
> **最后更新**: 2026-03-16
|
||||
> **最后更新**: 2026-03-24
|
||||
> **验证状态**: ✅ 代码已验证
|
||||
|
||||
---
|
||||
|
||||
@@ -19,19 +20,37 @@
|
||||
| 优先级 | P0 |
|
||||
| 成熟度 | L4 |
|
||||
| 依赖 | 无 |
|
||||
| Store 数量 | **16+** |
|
||||
| Domains 数量 | 4 (chat, hands, intelligence, shared) |
|
||||
|
||||
### 1.2 相关文件
|
||||
|
||||
| 文件 | 路径 | 用途 |
|
||||
|------|------|------|
|
||||
| Store 协调器 | `desktop/src/store/index.ts` | 初始化和连接所有 Store |
|
||||
| 连接 Store | `desktop/src/store/connectionStore.ts` | 连接状态管理 |
|
||||
| 聊天 Store | `desktop/src/store/chatStore.ts` | 消息和会话管理 |
|
||||
| 配置 Store | `desktop/src/store/configStore.ts` | 配置持久化 |
|
||||
| Agent Store | `desktop/src/store/agentStore.ts` | Agent 克隆管理 |
|
||||
| Hand Store | `desktop/src/store/handStore.ts` | Hands 触发管理 |
|
||||
| 工作流 Store | `desktop/src/store/workflowStore.ts` | 工作流管理 |
|
||||
| 团队 Store | `desktop/src/store/teamStore.ts` | 团队协作管理 |
|
||||
| 文件 | 路径 | 用途 | 验证状态 |
|
||||
|------|------|------|---------|
|
||||
| 连接 Store | `desktop/src/store/connectionStore.ts` | 连接状态管理 | ✅ 存在 |
|
||||
| 聊天 Store | `desktop/src/store/chatStore.ts` | 消息和会话管理 | ✅ 存在 |
|
||||
| 配置 Store | `desktop/src/store/configStore.ts` | 配置持久化 | ✅ 存在 |
|
||||
| Agent Store | `desktop/src/store/agentStore.ts` | Agent 克隆管理 | ✅ 存在 |
|
||||
| Hand Store | `desktop/src/store/handStore.ts` | Hands 触发管理 | ✅ 存在 |
|
||||
| 工作流 Store | `desktop/src/store/workflowStore.ts` | 工作流管理 | ✅ 存在 |
|
||||
| 团队 Store | `desktop/src/store/teamStore.ts` | 团队协作管理 | ✅ 存在 |
|
||||
| Gateway Store | `desktop/src/store/gatewayStore.ts` | Gateway 客户端状态 | ✅ 存在 |
|
||||
| 安全 Store | `desktop/src/store/securityStore.ts` | 安全配置管理 | ✅ 存在 |
|
||||
| 会话 Store | `desktop/src/store/sessionStore.ts` | 会话持久化 | ✅ 存在 |
|
||||
| 记忆图谱 Store | `desktop/src/store/memoryGraphStore.ts` | 记忆图谱状态 | ✅ 存在 |
|
||||
| 离线 Store | `desktop/src/store/offlineStore.ts` | 离线模式管理 | ✅ 存在 |
|
||||
| 主动学习 Store | `desktop/src/store/activeLearningStore.ts` | 主动学习状态 | ✅ 存在 |
|
||||
| Browser Hand Store | `desktop/src/store/browserHandStore.ts` | Browser Hand 状态 | ✅ 存在 |
|
||||
| 反馈 Store | `desktop/src/components/Feedback/feedbackStore.ts` | 反馈状态 | ✅ 存在 |
|
||||
|
||||
### 1.3 Domain Stores (领域状态)
|
||||
|
||||
| Domain | 路径 | 用途 |
|
||||
|--------|------|------|
|
||||
| Chat Domain | `desktop/src/domains/chat/` | 聊天领域状态和 hooks |
|
||||
| Hands Domain | `desktop/src/domains/hands/` | Hands 领域状态和状态机 |
|
||||
| Intelligence Domain | `desktop/src/domains/intelligence/` | 智能层状态 (Valtio) |
|
||||
| Shared Utilities | `desktop/src/shared/` | 共享类型和错误处理 |
|
||||
|
||||
---
|
||||
|
||||
@@ -81,14 +100,21 @@
|
||||
|
||||
```
|
||||
store/
|
||||
├── index.ts # Store 协调器
|
||||
├── connectionStore.ts # 连接状态
|
||||
├── connectionStore.ts # 连接状态管理
|
||||
├── chatStore.ts # 聊天状态 (最复杂)
|
||||
├── configStore.ts # 配置状态
|
||||
├── agentStore.ts # Agent 状态
|
||||
├── handStore.ts # Hand 状态
|
||||
├── workflowStore.ts # 工作流状态
|
||||
└── teamStore.ts # 团队状态
|
||||
├── teamStore.ts # 团队状态
|
||||
├── gatewayStore.ts # Gateway 客户端状态
|
||||
├── securityStore.ts # 安全配置
|
||||
├── sessionStore.ts # 会话持久化
|
||||
├── memoryGraphStore.ts # 记忆图谱
|
||||
├── offlineStore.ts # 离线模式
|
||||
├── activeLearningStore.ts # 主动学习
|
||||
├── browserHandStore.ts # Browser Hand
|
||||
└── skillMarketStore.ts # 技能市场
|
||||
```
|
||||
|
||||
### 3.2 核心 Store 设计
|
||||
@@ -202,7 +228,7 @@ export const useChatStore = create<ChatState & ChatActions>()(
|
||||
| 指标 | 基线 | 目标 | 当前 |
|
||||
|------|------|------|------|
|
||||
| 测试覆盖 | 50% | 80% | 85% |
|
||||
| Store 数量 | 5 | 7 | 7 |
|
||||
| Store 数量 | 5 | 10+ | 15 |
|
||||
| 持久化比例 | 30% | 70% | 65% |
|
||||
|
||||
---
|
||||
@@ -211,12 +237,13 @@ export const useChatStore = create<ChatState & ChatActions>()(
|
||||
|
||||
### 5.1 已实现功能
|
||||
|
||||
- [x] 7 个专用 Store
|
||||
- [x] Store 协调器
|
||||
- [x] 15 个专用 Store
|
||||
- [x] 持久化中间件
|
||||
- [x] 依赖注入模式
|
||||
- [x] 跨 Store 通信
|
||||
- [x] TypeScript 类型安全
|
||||
- [x] 内部 Kernel 状态同步
|
||||
- [x] Gateway 客户端状态管理
|
||||
|
||||
### 5.2 测试覆盖
|
||||
|
||||
|
||||
Reference in New Issue
Block a user