@accio-ai/workflow-builder-cli 0.0.0-stage → 0.2.22

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.
package/README.md CHANGED
@@ -1,3 +1,28 @@
1
- # Temporary Holding Version
1
+ # Accio Workflow Builder CLI
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ `workflow-builder` 用于创建和修改工作流、查看历史修订,以及导出 `fde.workflow` v2 JSON。
4
+
5
+ ## 安装
6
+
7
+ 使用 Node.js 22 或更高版本。
8
+
9
+ ```sh
10
+ npm install --global @accio-ai/workflow-builder-cli
11
+ workflow-builder --version
12
+ ```
13
+
14
+ ## 创建本地工作图
15
+
16
+ 在同一个工作目录运行以下命令。CLI 将工作图和修订保存在该目录的 `.workflow-builder` 中。
17
+
18
+ ```sh
19
+ workflow-builder create order-review --name '订单审核'
20
+ workflow-builder show order-review
21
+ workflow-builder apply --help
22
+ ```
23
+
24
+ `apply --help` 给出修改请求示例。将请求以 JSON 格式传给 `apply order-review --stdin`,再用 `show order-review` 查看修订。运行 `workflow-builder --help` 可查看完整命令列表。
25
+
26
+ ## 使用 Accio Work 在线草稿
27
+
28
+ 查询团队资源和同步在线草稿需要 Python 3,以及已登录并具备相应权限的 Accio Work 团队会话提供的 `accio-mcp-cli`。在该会话中运行 `workflow-builder list-workflows --status DRAFT` 可查看团队草稿。