feat(workflow): implement real-time workflow tail and watch commands

This commit is contained in:
gitea committed 2026-10-15 16:37:27 +08:00
1 parent 71f9879f68
commit 53201ba4e1
11 files changed
+1310 -7

No files matched your search

+2
View File
@@ -10,6 +10,7 @@ src/domains/platform/
├── api.ts # HTTP 传输层(含 unwrap 空安全校验与 Piper Job 5 大诊断端点)
├── analysis.ts # 工作流静态分析(禁用状态、SKIP 无状态守卫、单据联动覆盖诊断)
├── workflow-nodes.ts # 节点树展平、树形索引定位、声明式增删改与索引重排 SDK
├── workflow-watch.ts # 实时任务监听、增量状态跃迁追踪与执行日志流引擎
└── tools.ts # MCP tool 注册 + 服务层聚合函数
```
@@ -33,6 +34,7 @@ hose-use workflow node get <pipelineId> <节点name或#序号>
hose-use workflow node add <pipelineId> --type=code-js2 --label="清洗" --code="..." [--after=<节点>] [--parent=<容器>] [--dry-run|--yes]
hose-use workflow node edit <pipelineId> <节点name或#序号> --label="新标题" [--code="..."] [--dry-run|--yes]
hose-use workflow node rm <pipelineId> <节点name或#序号> [--dry-run|--yes]
hose-use workflow tail <pipelineId> [--job=<jobId>] [--once] [--failed-only] [--interval=2] [--json]
```
## 触发器分类与调测路径分支 (Path Branching)