From 41a73264e03b7b8f689e77b470c719e55f242d6e Mon Sep 17 00:00:00 2001 From: l1shen <648952316@qq.com> Date: Tue, 13 Oct 2026 17:09:05 +0800 Subject: [PATCH] chore(deps): upgrade open-flow to beta.63 --- bun.lock | 4 ++-- docs/commands.md | 11 +++++++++++ docs/commands.zh-CN.md | 8 ++++++++ package.json | 2 +- 4 files changed, 22 insertions(+), 3 deletions(-) diff --git a/bun.lock b/bun.lock index 2585b11d..f2da47b8 100644 --- a/bun.lock +++ b/bun.lock @@ -5,7 +5,7 @@ "": { "name": "oo", "dependencies": { - "@oomol-lab/open-flow": "0.1.0-beta.62", + "@oomol-lab/open-flow": "0.1.0-beta.63", "@vercel/detect-agent": "^1.2.5", "@wopjs/cast": "^0.1.16", "agentic-markdown": "^0.0.4", @@ -110,7 +110,7 @@ "@napi-rs/wasm-runtime": ["@napi-rs/wasm-runtime@1.1.4", "", { "dependencies": { "@tybys/wasm-util": "^0.10.1" }, "peerDependencies": { "@emnapi/core": "^1.7.1", "@emnapi/runtime": "^1.7.1" } }, "sha512-3NQNNgA1YSlJb/kMH1ildASP9HW7/7kYnRI2szWJaofaS1hWmbGI4H+d3+22aGzXXN9IJ+n+GiFVcGipJP18ow=="], - "@oomol-lab/open-flow": ["@oomol-lab/open-flow@0.1.0-beta.62", "", { "peerDependencies": { "effect": "4.0.0-rc.112", "react": "^18.3.1 || ^19.0.0", "react-dom": "^18.3.1 || ^19.0.0", "zod": "^4.6.5" } }, "sha512-Y3D6qWFCd7t4xmk5j8inphqJqOS/7+C3kXP9v4WTUDNhtx+943xIpCCg37C+ZoHJIRhEkcdvMJmQQC2PUEVmHQ=="], + "@oomol-lab/open-flow": ["@oomol-lab/open-flow@0.1.0-beta.63", "", { "peerDependencies": { "effect": "4.0.0-rc.112", "react": "^18.3.1 || ^19.0.0", "react-dom": "^18.3.1 || ^19.0.0", "zod": "^4.6.5" } }, "sha512-bWond8Mgsz++y35c0FLwfd5z0gah/MhaQhq/ylAlwgx+7Ugg5Y5sGnoE9Bddqy0w/XTMmImQKFjXjMdbXqJKwA=="], "@ota-meshi/ast-token-store": ["@ota-meshi/ast-token-store@0.3.0", "", {}, "sha512-XRO0zi2NIUKq2lUk3T1ecFSld1fMWRKE6naRFGkgkdeosx7IslyUKNv5Dcb5PJTja9tHJoFu0v/7yEpAkrkrTg=="], diff --git a/docs/commands.md b/docs/commands.md index b052f02b..94ce9b8f 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -164,6 +164,17 @@ a Hosted or self-hosted Server still require a connection to that service. machine output. Flows are selected by ID or an unambiguous exact name; Team selection belongs to the `oo` invocation, and Connector discovery accepts `--flow ` to use that Flow's Team scope. +- `oo flow export > template.openflow.json` writes a workflow template + as JSON to stdout. `oo flow import --file --name + --idempotency-key --json` imports a template from a file or stdin into + a new unpublished Draft; `--name` is optional. Import never overwrites the + source Flow. Retry an uncertain import with the same file, name, and key. + Both operations clear structured accounts, Variables, error-source workflows, + and Trigger resource selections while preserving the graph, shared code + Modules, fixed inputs, prompts, model choices, and layout. Review literal + sensitive data in code, prompts, and business JSON before sharing a template. + Configure missing resources and check the imported Draft before running or + publishing it. - `oo flow read --json` returns a Draft graph outline. Supply `nodes` for selected node details or `text` for a Code/prompt excerpt; these modes are mutually exclusive. Keep the returned `revision` for subsequent reads. diff --git a/docs/commands.zh-CN.md b/docs/commands.zh-CN.md index 3395a87e..582249e9 100644 --- a/docs/commands.zh-CN.md +++ b/docs/commands.zh-CN.md @@ -134,6 +134,14 @@ CLI 读取以下环境变量以支持内置和自动化场景。真值为 `1`、 Workbench deep link。`--json` 输出带版本的机器格式。Flow 使用 ID 或无歧义的精确 名称选择;团队由本次 `oo` 调用统一选择,Connector 发现命令接受 `--flow `,以该 Flow 的 Team 为查询范围。 +- `oo flow export > template.openflow.json` 将工作流模板以 JSON 输出到 + stdout。`oo flow import --file --name + --idempotency-key --json` 从文件或 stdin 导入模板,创建新的未发布 Draft; + `--name` 可省略。导入不会覆盖源 Flow;提交结果不确定时,使用相同文件、名称和 + key 重试。导入和导出都会清除结构化账号、Variables、错误来源工作流和 Trigger + 资源选择,保留图、共享代码 Module、固定输入、prompt、模型选择和布局。 + 分享模板前应检查代码、prompt 和业务 JSON 中直接写入的敏感数据;运行或发布 + 导入的 Draft 前,先配置缺失资源并执行检查。 - `oo flow read --json` 返回 Draft graph 概览。传入 `nodes` 读取选定节点 的详情,或传入 `text` 读取 Code/prompt 片段;两种模式互斥。后续读取保留返回的 `revision`。文本通过 `nextStart` 分页,直到 `truncated` 为 false。 diff --git a/package.json b/package.json index e2d22700..4bf0f6f0 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "typescript": "^5" }, "dependencies": { - "@oomol-lab/open-flow": "0.1.0-beta.62", + "@oomol-lab/open-flow": "0.1.0-beta.63", "@vercel/detect-agent": "^1.2.5", "@wopjs/cast": "^0.1.16", "agentic-markdown": "^0.0.4",