feat(pipeline): implement Pipeline DSL system for automated workflows
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

Add complete Pipeline DSL system including:
- Rust backend (zclaw-pipeline crate) with parser, executor, and state management
- Frontend components: PipelinesPanel, PipelineResultPreview, ClassroomPreviewer
- Pipeline recommender for Agent conversation integration
- 5 pipeline templates: education, marketing, legal, research, productivity
- Documentation for Pipeline DSL architecture

Pipeline DSL enables declarative workflow definitions with:
- YAML-based configuration
- Expression resolution (${inputs.topic}, ${steps.step1.output})
- LLM integration, parallel execution, file export
- Agent smart recommendations in conversations

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
iven
2026-03-25 00:52:12 +08:00
parent 0179f947aa
commit 9c781f5f2a
30 changed files with 6944 additions and 24 deletions

View File

@@ -1,8 +1,8 @@
# ZCLAW 功能全景文档
> **版本**: v0.2.0
> **更新日期**: 2026-03-24
> **项目状态**: 内部 Kernel 架构Streaming + MCP 协议
> **版本**: v0.3.0
> **更新日期**: 2026-03-25
> **项目状态**: 内部 Kernel 架构Streaming + MCP 协议Pipeline DSL 系统
> **架构**: Tauri 桌面应用Rust 后端 + React 前端
> 📋 **重要**: ZCLAW 现已采用内部 Kernel 架构,所有核心能力集成在 Tauri 桌面应用中,无需外部进程
@@ -30,18 +30,18 @@
| [04-team-collaboration.md](01-core-features/04-team-collaboration.md) | 团队协作 | L3 | 中 |
| [05-swarm-coordination.md](01-core-features/05-swarm-coordination.md) | 多 Agent 协作 | L4 | 高 |
### 1.3 智能层 (Intelligence Layer) - ✅ 集成 (2026-03-17 更新)
### 1.3 智能层 (Intelligence Layer) - ✅ 完全集成 (2026-03-24 更新)
| 文档 | 功能 | 成熟度 | UI 集成 |
|------|------|--------|---------|
| [00-agent-memory.md](02-intelligence-layer/00-agent-memory.md) | Agent 记忆 | L4 | ✅ RightPanel |
| [01-identity-evolution.md](02-intelligence-layer/01-identity-evolution.md) | 身份演化 | L4 | ❓ 待验证 |
| [02-context-compaction.md](02-intelligence-layer/02-context-compaction.md) | 上下文压缩 | L4 | 后端 |
| [03-reflection-engine.md](02-intelligence-layer/03-reflection-engine.md) | 自我反思 | L4 | ✅ **RightPanel 'reflection' tab** |
| [04-heartbeat-proactive.md](02-intelligence-layer/04-heartbeat-proactive.md) | 心跳巡检 | L4 | ❓ 后端 |
| [05-autonomy-manager.md](02-intelligence-layer/05-autonomy-manager.md) | 自主授权 | L4 | ✅ **RightPanel 'autonomy' tab** |
| 文档 | 功能 | 成熟度 | UI 集成 | 后端状态 |
|------|------|--------|---------|----------|
| [00-agent-memory.md](02-intelligence-layer/00-agent-memory.md) | Agent 记忆 | L4 | ✅ RightPanel | ✅ Rust + SQLite |
| [01-identity-evolution.md](02-intelligence-layer/01-identity-evolution.md) | 身份演化 | L4 | ✅ IdentityChangeProposal | ✅ Rust 实现 |
| [02-context-compaction.md](02-intelligence-layer/02-context-compaction.md) | 上下文压缩 | L4 | ⚙️ 后端自动 | ✅ Rust 实现 |
| [03-reflection-engine.md](02-intelligence-layer/03-reflection-engine.md) | 自我反思 | L4 | ✅ RightPanel 'reflection' | ✅ Rust 实现 |
| [04-heartbeat-proactive.md](02-intelligence-layer/04-heartbeat-proactive.md) | 心跳巡检 | L4 | ✅ HeartbeatConfig | ✅ Rust 实现 |
| [05-autonomy-manager.md](02-intelligence-layer/05-autonomy-manager.md) | 自主授权 | L4 | ✅ RightPanel 'autonomy' | ✅ TypeScript |
> ✅ 智能层核心组件(记忆、反思、自主授权)已全部集成到 RightPanel
> **智能层完全实现**: 所有 6 个核心组件均已实现,包括 Rust 后端 (Memory, Heartbeat, Reflection, Identity, Compaction) 和 TypeScript 实现 (Autonomy)
### 1.4 上下文数据库 (Context Database)
@@ -52,15 +52,15 @@
| [02-session-persistence.md](03-context-database/02-session-persistence.md) | 会话持久化 | L4 | 高 |
| [03-memory-extraction.md](03-context-database/03-memory-extraction.md) | 记忆提取 | L4 | 高 |
### 1.5 Skills 生态 - ✅ 动态扫描已实现
### 1.5 Skills 生态 - ✅ 动态扫描 + execute_skill 已实现
| 文档 | 功能 | 成熟度 | UI 集成 |
|------|------|--------|---------|
| [00-skill-system.md](04-skills-ecosystem/00-skill-system.md) | Skill 系统概述 | L4 | ✅ 通过 Tauri 命令 |
| [01-builtin-skills.md](04-skills-ecosystem/01-builtin-skills.md) | 内置技能 (73个 SKILL.md) | L4 | N/A |
| [02-skill-discovery.md](04-skills-ecosystem/02-skill-discovery.md) | 技能发现 (动态扫描 73 个) | **L4** | ✅ **已集成** |
| [01-builtin-skills.md](04-skills-ecosystem/01-builtin-skills.md) | 内置技能 (**69个** SKILL.md) | L4 | N/A |
| [02-skill-discovery.md](04-skills-ecosystem/02-skill-discovery.md) | 技能发现 (动态扫描) | **L4** | ✅ **已集成** |
> ✅ **更新**: Skills 动态扫描已实现。Kernel 集成 `SkillRegistry`,通过 Tauri 命令 `skill_list` 和 `skill_refresh` 动态发现所有 73 个技能。
> ✅ **更新**: Skills 动态扫描已实现。Kernel 集成 `SkillRegistry`,通过 Tauri 命令 `skill_list` 和 `skill_refresh` 动态发现所有 **69 个**技能。**新增 `execute_skill` 工具**,允许 Agent 在对话中直接调用技能。
### 1.6 Hands 系统 - ✅ 9/11 已实现 (2026-03-24 更新)
@@ -68,7 +68,18 @@
|------|------|--------|-----------|
| [00-hands-overview.md](05-hands-system/00-hands-overview.md) | Hands 概述 (11个) | L3 | **9/11 (82%)** |
> ✅ **更新**: 9 个 Hands 已有完整 Rust 后端实现: Browser, Slideshow, Speech, Quiz, Whiteboard, Researcher, Collector, Clip (需 FFmpeg), Twitter (需 API Key)。所有 9 个已实现 Hands 均已在 Kernel 中注册,通过 Tauri 命令 `hand_list` 和 `hand_execute` 可用。
> ✅ **更新**: 9 个 Hands 已有完整 Rust 后端实现:
> - ✅ **Browser** - Fantoccini WebDriver支持 Chrome/Firefox
> - ✅ **Slideshow** - 演示控制,支持 spotlight/laser/highlight
> - ✅ **Speech** - 语音合成,支持 SSML
> - ✅ **Quiz** - 问答生成,支持自适应学习
> - ✅ **Whiteboard** - 白板绘图,支持图表/LaTeX
> - ✅ **Researcher** - 深度研究,支持多源搜索
> - ✅ **Collector** - 数据采集,支持分页/选择器
> - ✅ **Clip** - 视频处理,需 FFmpeg
> - ✅ **Twitter** - Twitter 自动化,需 API Key
>
> ❌ **Predictor** 和 **Lead** 仍在规划中。
### 1.7 Tauri 后端
@@ -78,6 +89,21 @@
| [01-secure-storage.md](06-tauri-backend/01-secure-storage.md) | 安全存储 | L4 | 高 |
| [02-local-gateway.md](06-tauri-backend/02-local-gateway.md) | 本地 Gateway | L4 | 高 |
### 1.8 Pipeline DSL 系统 - ✅ 新增 (v0.3.0)
| 文档 | 功能 | 成熟度 | UI 集成 |
|------|------|--------|---------|
| [00-pipeline-overview.md](07-pipeline-dsl/00-pipeline-overview.md) | Pipeline 概述 | **L4** | ✅ PipelinesPanel |
> ✅ **新增**: Pipeline DSL 自动化工作流系统
> - **教育类**: 互动课堂生成器
> - **营销类**: 营销方案生成器
> - **法律类**: 合同智能审查
> - **研究类**: 文献综述生成器
> - **生产力类**: 智能会议纪要
>
> **特性**: YAML 声明式配置、状态管理、LLM 集成、Agent 智能推荐、结果预览组件
---
## 二、后续工作计划
@@ -182,16 +208,22 @@
| 指标 | 数值 |
|------|------|
| 功能模块总数 | 25+ |
| SKILL.md 文件 | 73 |
| 动态发现技能 | 73 (100%) |
| SKILL.md 文件 | **69** |
| 动态发现技能 | 69 (100%) |
| Hands 总数 | 11 |
| **已实现 Hands** | **9 (82%)** |
| **Kernel 注册 Hands** | **9/9 (100%)** |
| Zustand Store | 15 |
| **Pipeline 模板** | **5** (教育/营销/法律/研究/生产力) |
| **Pipeline 分类** | **5** 类 |
| Zustand Store | 15+ |
| Tauri 命令 | 100+ |
| 代码行数 (前端) | ~20,000 |
| 代码行数 (后端 Rust) | ~8,000 |
| LLM Provider 支持 | 7+ (Kimi, Qwen, DeepSeek, Zhipu, OpenAI, Anthropic, Local) |
| 代码行数 (前端) | ~25,000 |
| 代码行数 (后端 Rust) | ~12,000 |
| LLM Provider 支持 | **8** (Kimi, Qwen, DeepSeek, Zhipu, OpenAI, Anthropic, Gemini, Local/Ollama) |
| 智能层组件 | 5 (Memory, Heartbeat, Reflection, Identity, Compaction) |
| MCP 协议 | ✅ 已实现 |
| execute_skill 工具 | ✅ 已实现 |
| **Pipeline DSL** | ✅ **新增** |
---
@@ -199,6 +231,8 @@
| 日期 | 版本 | 变更内容 |
|------|------|---------|
| 2026-03-25 | v0.3.0 | **Pipeline DSL 系统实现**5 类 Pipeline 模板Agent 智能推荐,结果预览组件 |
| 2026-03-24 | v0.2.5 | **execute_skill 工具实现**,智能层完全实现验证,技能数更新为 69 |
| 2026-03-24 | v0.2.4 | Hands Review: 修复 BrowserHand Kernel 注册问题,所有 9 个已实现 Hands 均可访问 |
| 2026-03-24 | v0.2.3 | Hands 后端集成: 9/11 Hands 可用 (新增 Clip, Twitter) |
| 2026-03-24 | v0.2.2 | Hands 后端集成: 7/11 Hands 可用 (新增 Researcher, Collector) |