@dazitech/cli 3.0.5 → 3.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,18 +12,25 @@
12
12
  ```powershell
13
13
  $flowDir = "D:\path\to\dazi-work\项目\<业务名>\流程\flows\MyFlow"
14
14
 
15
- # node_uuid 测试(CLI 内部翻译为语义 nodeId)
15
+ # code.* 后必须先 push,再测(node-exec 执行的是平台代码,不是本地未提交文件)
16
+ dazi flow node push --node <node_uuid> --dir $flowDir
16
17
  dazi flow run node-exec --node <node_uuid> --dir $flowDir
18
+
19
+ # 若节点配置了 output_variable_name,须 pull 核对(不能仅凭 node-exec 退出码)
20
+ dazi flow variable pull --name <output_variable_name> --dir $flowDir
17
21
  ```
18
22
 
19
23
  **行为**
20
24
 
21
- 1. `GET /flows/{id}/debug-run` — 确保 `ads_flows.debug_run_id` 已绑定调试 Run
22
- 2. `POST /flows/{id}/nodes/{nodeId}/run` — 执行单节点
23
- 3. 成功时同步该节点 `output_variable_name` **`变量/<名>.json`**
24
- 4. 失败时写入 **`_run/<节点名>.last-error.md`**(扩展会自动打开)
25
+ 1. `node push` — 将本地 `code.*` 同步到平台 `flow_nodes.code_body`
26
+ 2. `GET /flows/{id}/debug-run` — 确保 `ads_flows.debug_run_id` 已绑定调试 Run
27
+ 3. `POST /flows/{id}/nodes/{nodeId}/run` 在平台执行**已 push** 的节点代码
28
+ 4. 成功时 CLI 会尝试同步该节点 `output_variable_name` 到 **`变量/<名>.json`**
29
+ 5. 失败时写入 **`_run/<节点名>.last-error.md`**
30
+
31
+ **成功判据(代码节点)**:`node push` 成功 → `node-exec` JSON `success: true` →(有 `output_variable_name` 时)`variable pull` 后变量为 ready 且预览合理。
25
32
 
26
- 扩展:右键 **节点/** 或 **code.\*** → **测试运行节点**。
33
+ 扩展:设计器/运行面板 **搭子执行** 前请确认已 `node push`;右键 **节点/** 或 **code.\*** → **测试运行节点**(同样依赖平台已 push 代码)。
27
34
 
28
35
  ---
29
36