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

refactor: 统一Hands系统常量到单个源文件
refactor: 更新Hands中文名称和描述

fix: 修复技能市场在连接状态变化时重新加载
fix: 修复身份变更提案的错误处理逻辑

docs: 更新多个功能文档的验证状态和实现位置
docs: 更新Hands系统文档

test: 添加测试文件验证工作区路径
This commit is contained in:
iven
2026-03-25 08:27:25 +08:00
parent 9c781f5f2a
commit aa6a9cbd84
110 changed files with 12384 additions and 1337 deletions

View File

@@ -301,3 +301,60 @@ pnpm start:dev
- [ ] 记忆统计同步正常(启动 + 周期)
- [ ] 提案审批流程正常
- [ ] 错误信息清晰可读
---
## 深度复验报告 (2026-03-24)
### 前端修复验证
| 修复项 | 文件 | 状态 | 说明 |
|--------|------|------|------|
| Fix 1.1 | intelligence-client.ts | ✅ 已正确实现 | `updateMemoryStats``recordCorrection` 使用 snake_case |
| Fix 1.2 | App.tsx | ✅ 已正确实现 | 5分钟周期同步 + 清理逻辑完整 |
| Fix 2.1 | intelligence-backend.ts | ✅ 已正确实现 | `MemoryStats` 使用 `total_entries` 等 |
| Fix 2.1 | intelligence-client.ts | ✅ 已正确实现 | `toFrontendStats` 正确映射字段 |
| Fix 2.2 | IdentityChangeProposal.tsx | ✅ 已正确实现 | `parseProposalError` 函数 + 3处调用 |
| Fix 3.1 | intelligence-client.ts | ✅ 已正确实现 | `fallbackMemory.stats()` 计算 `storageSizeBytes` |
**前端修复验证结果**: 全部 6/6 通过 ✅
### 后端修复验证
| 修复项 | 文件 | 状态 | 说明 |
|--------|------|------|------|
| Fix 1.3 | heartbeat.rs:451-480 | ✅ 已正确实现 | `check_pending_tasks` 缓存为空时返回告警 |
| Fix 1.3 | heartbeat.rs:484-521 | ⚠️ 设计偏差 | `check_memory_health` 缓存为空时返回 None避免重复告警 |
| Fix 2.3 | heartbeat.rs:347 | ✅ 已正确实现 | `LAST_INTERACTION` 静态变量 |
| Fix 2.3 | heartbeat.rs:366-368 | ✅ 已正确实现 | `get_last_interaction_map()` 函数 |
| Fix 2.3 | heartbeat.rs:371-376 | ✅ 已正确实现 | `record_interaction()` 函数 |
| Fix 2.3 | heartbeat.rs:524-559 | ✅ 已正确实现 | `check_idle_greeting` 完整实现24小时阈值 |
| Fix 2.3 | heartbeat.rs:736-741 | ✅ 已正确实现 | `heartbeat_record_interaction` Tauri 命令 |
| 命令注册 | lib.rs:1432 | ✅ 已正确注册 | `heartbeat_record_interaction` 已注册 |
**后端修复验证结果**: 7/8 完全通过1/8 设计偏差(合理)
### 设计偏差说明
**`check_memory_health` 缓存为空时返回 None**
原计划要求:返回告警
实际实现:返回 None
设计理由(代码注释):
> Cache is empty - skip check (already reported in check_pending_tasks)
**评估**: 这是合理的设计决策,避免在缓存为空时产生重复告警。`check_pending_tasks` 已经报告了缓存未同步的问题,`check_memory_health` 无需再次告警。
### 复验结论
| 类别 | 结果 |
|------|------|
| 前端修复 | 6/6 ✅ 通过 |
| 后端修复 | 7/8 ✅ 通过 |
| 设计偏差 | 1 ⚠️ 合理(不视为问题)|
| 总体评估 | **全部修复已正确实现** |
**编译验证**:
- TypeScript 类型检查: ✅ 通过
- Rust 编译: ✅ 通过(仅有预先存在的警告)