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

@@ -27,6 +27,9 @@ mod intelligence;
// Internal ZCLAW Kernel commands (replaces external OpenFang process)
mod kernel_commands;
// Pipeline commands (DSL-based workflows)
mod pipeline_commands;
use serde::Serialize;
use serde_json::{json, Value};
use std::fs;
@@ -1314,6 +1317,9 @@ pub fn run() {
// Initialize internal ZCLAW Kernel state
let kernel_state = kernel_commands::create_kernel_state();
// Initialize Pipeline state (DSL-based workflows)
let pipeline_state = pipeline_commands::create_pipeline_state();
tauri::Builder::default()
.plugin(tauri_plugin_opener::init())
.manage(browser_state)
@@ -1322,6 +1328,7 @@ pub fn run() {
.manage(reflection_state)
.manage(identity_state)
.manage(kernel_state)
.manage(pipeline_state)
.invoke_handler(tauri::generate_handler![
// Internal ZCLAW Kernel commands (preferred)
kernel_commands::kernel_init,
@@ -1333,6 +1340,22 @@ pub fn run() {
kernel_commands::agent_delete,
kernel_commands::agent_chat,
kernel_commands::agent_chat_stream,
// Skills commands (dynamic discovery)
kernel_commands::skill_list,
kernel_commands::skill_refresh,
kernel_commands::skill_execute,
// Hands commands (autonomous capabilities)
kernel_commands::hand_list,
kernel_commands::hand_execute,
// Pipeline commands (DSL-based workflows)
pipeline_commands::pipeline_list,
pipeline_commands::pipeline_get,
pipeline_commands::pipeline_run,
pipeline_commands::pipeline_progress,
pipeline_commands::pipeline_cancel,
pipeline_commands::pipeline_result,
pipeline_commands::pipeline_runs,
pipeline_commands::pipeline_refresh,
// OpenFang commands (new naming)
openfang_status,
openfang_start,
@@ -1429,6 +1452,7 @@ pub fn run() {
intelligence::heartbeat::heartbeat_get_history,
intelligence::heartbeat::heartbeat_update_memory_stats,
intelligence::heartbeat::heartbeat_record_correction,
intelligence::heartbeat::heartbeat_record_interaction,
// Context Compactor
intelligence::compactor::compactor_estimate_tokens,
intelligence::compactor::compactor_estimate_messages_tokens,