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:
@@ -15,7 +15,7 @@ tags: [module, pipeline, dsl]
|
||||
|
||||
- YAML 定义 Pipeline 结构(步骤、依赖、输入/输出)
|
||||
- DAG 执行器按依赖拓扑排序执行
|
||||
- 17 个行业模板覆盖 10 大行业
|
||||
- 17 个 YAML 模板覆盖 8 大行业目录
|
||||
- 前端已接通 8 个 Tauri invoke 调用
|
||||
|
||||
## 代码逻辑
|
||||
@@ -38,33 +38,72 @@ YAML Pipeline 定义
|
||||
enum RunStatus { Pending, Running, Completed, Failed, Cancelled }
|
||||
```
|
||||
|
||||
### 模板 (17 个 YAML)
|
||||
### 模板分布 (17 个 YAML)
|
||||
|
||||
位于 `pipelines/` 目录,覆盖:
|
||||
- 汕头玩具行业、服装设计、医疗
|
||||
- 数据分析、报告生成
|
||||
- 教育、营销
|
||||
- 等 10 大行业
|
||||
```
|
||||
pipelines/
|
||||
├── _templates/ (2 模板)
|
||||
│ ├── article-summary.yaml
|
||||
│ └── competitor-analysis.yaml
|
||||
├── design-shantou/ (4 模板) — 汕头玩具/服装行业
|
||||
│ ├── client-communication.yaml
|
||||
│ ├── competitor-research.yaml
|
||||
│ ├── supply-chain-collect.yaml
|
||||
│ └── trend-to-design.yaml
|
||||
├── education/ (4 模板)
|
||||
│ ├── classroom.yaml
|
||||
│ ├── lesson-plan.yaml
|
||||
│ ├── research-to-quiz.yaml
|
||||
│ └── student-analysis.yaml
|
||||
├── healthcare/ (3 模板)
|
||||
│ ├── data-report.yaml
|
||||
│ ├── meeting-minutes.yaml
|
||||
│ └── policy-compliance.yaml
|
||||
├── legal/ (1 模板)
|
||||
│ └── contract-review.yaml
|
||||
├── marketing/ (1 模板)
|
||||
│ └── campaign.yaml
|
||||
├── productivity/ (1 模板)
|
||||
│ └── meeting-summary.yaml
|
||||
└── research/ (1 模板)
|
||||
└── literature-review.yaml
|
||||
```
|
||||
|
||||
### 前端集成
|
||||
|
||||
| 组件 | 文件 |
|
||||
|------|------|
|
||||
| PipelineClient | `desktop/src/lib/pipeline-client.ts` |
|
||||
| WorkflowBuilderStore | `desktop/src/store/workflowBuilderStore.ts` |
|
||||
| Pipeline UI | `desktop/src/components/pipeline/` |
|
||||
| Tauri 命令 | `desktop/src-tauri/src/pipeline_commands/` |
|
||||
|
||||
8 个前端 invoke 调用匹配 8 个 Rust 命令,完整可用。
|
||||
Pipeline Tauri 命令 (12 个):
|
||||
|
||||
| 文件 | 命令数 | 命令 |
|
||||
|------|--------|------|
|
||||
| discovery.rs | 8 | list/get/run/progress/cancel/result/runs/refresh |
|
||||
| crud.rs | 3 | create/update/delete |
|
||||
| intent_router.rs | 1 | route_intent |
|
||||
| presentation.rs | 2 | analyze_presentation/pipeline_templates |
|
||||
|
||||
前端 invoke 匹配: 8 个调用对应 8 个 discovery 命令,完整可用。
|
||||
|
||||
### 测试
|
||||
|
||||
`parser_v2.rs`: 11 tests — YAML 解析和 DAG 构建验证。
|
||||
|
||||
## 关联模块
|
||||
|
||||
- [[hands-skills]] — Pipeline 步骤可能调用 Hand/Skill
|
||||
- [[chat]] — Pipeline 可通过聊天触发
|
||||
|
||||
## 关键文件
|
||||
|
||||
| 文件 | 职责 |
|
||||
|------|------|
|
||||
| `crates/zclaw-pipeline/src/executor.rs` | DAG 执行器 |
|
||||
| `crates/zclaw-pipeline/src/` | Pipeline DSL 解析 |
|
||||
| `pipelines/` | 17 个 YAML 模板 |
|
||||
| `crates/zclaw-pipeline/src/parser_v2.rs` | YAML 解析 (11 tests) |
|
||||
| `pipelines/` | 17 个 YAML 模板 (8 目录) |
|
||||
| `desktop/src/lib/pipeline-client.ts` | 前端 Pipeline 客户端 |
|
||||
| `desktop/src-tauri/src/pipeline_commands/` | Tauri 命令桥接 |
|
||||
| `desktop/src-tauri/src/pipeline_commands/` | 12 个 Tauri 命令 (4 文件) |
|
||||
|
||||
Reference in New Issue
Block a user