feat(workflow): implement script linting and offline sandbox evaluation
This commit is contained in:
1 parent
97eaed1066
commit
d293bb47a4
10 files changed
+1255
-3
No files matched your search
@@ -11,6 +11,7 @@ src/domains/platform/
|
||||
├── analysis.ts # 工作流静态分析(禁用状态、SKIP 无状态守卫、单据联动覆盖诊断)
|
||||
├── workflow-nodes.ts # 节点树展平、树形索引定位、声明式增删改与索引重排 SDK
|
||||
├── workflow-watch.ts # 实时任务监听、增量状态跃迁追踪与执行日志流引擎
|
||||
├── workflow-script.ts# 脚本静态语法分析 (JS/MVEL)、AST 括号校验、上游依赖扫描与离线沙箱仿真引擎
|
||||
└── tools.ts # MCP tool 注册 + 服务层聚合函数
|
||||
```
|
||||
|
||||
@@ -35,6 +36,10 @@ hose-use workflow node add <pipelineId> --type=code-js2 --label="清洗" --code=
|
||||
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]
|
||||
hose-use workflow lint-script <pipelineId> [节点标识] [--json]
|
||||
hose-use workflow lint-script --code="<code>" [--type=code-js2|code]
|
||||
hose-use workflow eval-script <pipelineId> <节点标识> [--input='{...}'] [--sample=1] [--timeout=3000]
|
||||
hose-use workflow eval-script --code="return a + b;" --input='{"a":1,"b":2}'
|
||||
```
|
||||
|
||||
## 触发器分类与调测路径分支 (Path Branching)
|
||||
|
||||
Reference in new issue
Block a user