@fieldwangai/agentflow 0.1.149 → 0.1.154

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.
Files changed (195) hide show
  1. package/README.md +20 -33
  2. package/README.zh-CN.md +14 -34
  3. package/agents/agentflow-node-executor-code.md +13 -3
  4. package/agents/agentflow-node-executor-planning.md +13 -3
  5. package/agents/agentflow-node-executor-requirement.md +13 -3
  6. package/agents/agentflow-node-executor-test.md +13 -3
  7. package/agents/agentflow-node-executor-ui.md +13 -3
  8. package/agents/agentflow-node-executor.md +13 -3
  9. package/agents/en/agentflow-node-executor.md +13 -3
  10. package/agents/zh/agentflow-node-executor.md +13 -3
  11. package/bin/agentflow.mjs +3 -3
  12. package/bin/lib/admin-builtin-pipelines.mjs +3 -2
  13. package/bin/lib/agent-runners.mjs +0 -929
  14. package/bin/lib/auth.mjs +2 -1
  15. package/bin/lib/catalog-agents.mjs +2 -1
  16. package/bin/lib/catalog-flows.mjs +167 -88
  17. package/bin/lib/composer-agent.mjs +3 -793
  18. package/bin/lib/composer-skill-router.mjs +3 -323
  19. package/bin/lib/exec-buffered.mjs +32 -0
  20. package/bin/lib/flow-dsl/cli.mjs +276 -0
  21. package/bin/lib/flow-dsl/codegen.mjs +358 -0
  22. package/bin/lib/flow-dsl/defs.mjs +103 -0
  23. package/bin/lib/flow-dsl/index.mjs +77 -0
  24. package/bin/lib/flow-dsl/ir.mjs +305 -0
  25. package/bin/lib/flow-dsl/layout.mjs +115 -0
  26. package/bin/lib/flow-dsl/legacy-yaml.mjs +268 -0
  27. package/bin/lib/flow-dsl/lint.mjs +241 -0
  28. package/bin/lib/flow-dsl/packages.mjs +251 -0
  29. package/bin/lib/flow-dsl/parser.mjs +444 -0
  30. package/bin/lib/flow-import.mjs +96 -26
  31. package/bin/lib/flow-write.mjs +48 -12
  32. package/bin/lib/help.mjs +10 -30
  33. package/bin/lib/html-escape.mjs +19 -0
  34. package/bin/lib/http-util.mjs +49 -0
  35. package/bin/lib/legacy-flow-execution.mjs +43 -0
  36. package/bin/lib/locales/en.json +1 -1
  37. package/bin/lib/locales/zh.json +1 -1
  38. package/bin/lib/main.mjs +153 -283
  39. package/bin/lib/marketplace.mjs +206 -61
  40. package/bin/lib/model-config.mjs +10 -0
  41. package/bin/lib/node-package-archive.mjs +240 -0
  42. package/bin/lib/node-package-bootstrap.mjs +72 -0
  43. package/bin/lib/node-package-manifest.mjs +174 -0
  44. package/bin/lib/paths.mjs +42 -19
  45. package/bin/lib/prd-workflow-routes.mjs +2949 -0
  46. package/bin/lib/prd-workflow-server.mjs +4884 -0
  47. package/bin/lib/run-events.mjs +0 -66
  48. package/bin/lib/schedule-config.mjs +4 -4
  49. package/bin/lib/skill-runtime.mjs +35 -0
  50. package/bin/lib/startup-storage-migrations.mjs +274 -0
  51. package/bin/lib/ui-server.mjs +1106 -18013
  52. package/bin/lib/user-env.mjs +16 -0
  53. package/bin/lib/workspace-auto-layout.mjs +234 -0
  54. package/bin/lib/workspace-flow-store.mjs +478 -0
  55. package/bin/lib/workspace-graph-merge.mjs +41 -34
  56. package/bin/lib/workspace-preview.mjs +74 -0
  57. package/bin/lib/workspace-routes.mjs +3088 -0
  58. package/bin/lib/workspace-server.mjs +6199 -0
  59. package/bin/lib/workspace-state.mjs +331 -0
  60. package/bin/lib/workspace.mjs +2 -1
  61. package/builtin/nodes/agent_subAgent.md +1 -0
  62. package/builtin/nodes/control_agent_toBool.md +2 -0
  63. package/builtin/nodes/control_anyOne.md +2 -0
  64. package/builtin/nodes/control_cancelled.md +2 -0
  65. package/builtin/nodes/control_cd_workspace.md +5 -11
  66. package/builtin/nodes/control_delay.md +2 -0
  67. package/builtin/nodes/control_end.md +2 -0
  68. package/builtin/nodes/control_if.md +1 -0
  69. package/builtin/nodes/control_interval_loop.md +2 -0
  70. package/builtin/nodes/control_load_mcp.md +24 -0
  71. package/builtin/nodes/control_load_skills.md +8 -23
  72. package/builtin/nodes/control_start.md +2 -0
  73. package/builtin/nodes/control_toBool.md +2 -0
  74. package/builtin/nodes/control_user_workspace.md +2 -0
  75. package/builtin/nodes/control_wait_until.md +2 -0
  76. package/builtin/nodes/display_ascii.md +1 -0
  77. package/builtin/nodes/display_chart.md +1 -0
  78. package/builtin/nodes/display_html.md +1 -0
  79. package/builtin/nodes/display_image.md +1 -0
  80. package/builtin/nodes/display_markdown.md +1 -0
  81. package/builtin/nodes/display_mermaid.md +1 -0
  82. package/builtin/nodes/display_react_app.md +1 -0
  83. package/builtin/nodes/display_table.md +1 -0
  84. package/builtin/nodes/provide_bool.md +1 -0
  85. package/builtin/nodes/provide_file.md +1 -0
  86. package/builtin/nodes/provide_password.md +1 -0
  87. package/builtin/nodes/provide_str.md +1 -0
  88. package/builtin/nodes/tool_display_share_link.md +1 -0
  89. package/builtin/nodes/tool_get_env.md +2 -0
  90. package/builtin/nodes/tool_git_checkout.md +1 -0
  91. package/builtin/nodes/tool_git_worktree_load.md +1 -0
  92. package/builtin/nodes/tool_git_worktree_unload.md +1 -0
  93. package/builtin/nodes/tool_gitlab_create_mr.md +1 -0
  94. package/builtin/nodes/tool_jenkins_build.md +2 -0
  95. package/builtin/nodes/tool_load_key.md +2 -0
  96. package/builtin/nodes/tool_nodejs.md +17 -19
  97. package/builtin/nodes/tool_print.md +2 -0
  98. package/builtin/nodes/tool_save_key.md +2 -0
  99. package/builtin/nodes/tool_set_run_env.md +1 -0
  100. package/builtin/nodes/tool_user_ask.md +2 -0
  101. package/builtin/nodes/tool_user_check.md +2 -0
  102. package/builtin/nodes/tool_wecom_send_app_markdown.md +1 -0
  103. package/builtin/nodes/tool_wecom_send_group_markdown.md +1 -0
  104. package/builtin/nodes/workspace_one_click_task.md +44 -0
  105. package/builtin/nodes/workspace_run.md +16 -0
  106. package/builtin/nodes/workspace_scheduled_run.md +16 -0
  107. package/builtin/pipelines/module-migrate/scripts/gate.mjs +37 -0
  108. package/builtin/pipelines/module-migrate/scripts/static-check.mjs +82 -0
  109. package/builtin/pipelines/module-migrate/workspace.flow.js +172 -0
  110. package/builtin/pipelines/module-migrate/workspace.layout.json +134 -0
  111. package/builtin/pipelines/new/scripts/lint-flow.mjs +38 -0
  112. package/builtin/pipelines/new/workspace.flow.js +91 -0
  113. package/builtin/pipelines/new/workspace.layout.json +70 -0
  114. package/builtin/web-ui/dist/assets/{WorkflowAssistantThread-DPbR2UaN.js → WorkflowAssistantThread-CKClwj96.js} +1 -1
  115. package/builtin/web-ui/dist/assets/index-BZ5KqLur.js +870 -0
  116. package/builtin/web-ui/dist/assets/index-CEXmmwM2.css +1 -0
  117. package/builtin/web-ui/dist/index.html +2 -2
  118. package/package.json +2 -1
  119. package/reference/flow-control-capabilities.md +77 -158
  120. package/reference/flow-layout.md +1 -1
  121. package/reference/flow-prompt-handler-check.md +2 -2
  122. package/skills/agentflow-author-flow/SKILL.md +8 -47
  123. package/skills/agentflow-cli/SKILL.md +158 -25
  124. package/skills/agentflow-cli/agents/openai.yaml +2 -2
  125. package/skills/agentflow-cli/scripts/agentflow-cli.mjs +668 -18
  126. package/skills/agentflow-cli/scripts/agentflow-runtime.mjs +97 -0
  127. package/skills/agentflow-flow-add-instances/SKILL.md +7 -248
  128. package/skills/agentflow-flow-dsl/SKILL.md +206 -0
  129. package/skills/agentflow-flow-dsl/agents/openai.yaml +4 -0
  130. package/skills/agentflow-flow-dsl/references/node-calls.md +39 -0
  131. package/skills/agentflow-flow-edit-node-fields/SKILL.md +4 -73
  132. package/skills/agentflow-flow-recipes/SKILL.md +7 -18
  133. package/skills/agentflow-flow-recipes/references/recipes.md +97 -43
  134. package/skills/agentflow-flow-sync-ui/SKILL.md +3 -54
  135. package/skills/agentflow-node-dsl/SKILL.md +212 -0
  136. package/skills/agentflow-node-dsl/agents/openai.yaml +4 -0
  137. package/skills/agentflow-node-reference/SKILL.md +5 -4
  138. package/skills/agentflow-node-reference/references/builtin-nodes.md +166 -115
  139. package/skills/agentflow-placeholder-reference/SKILL.md +2 -2
  140. package/skills/agentflow-runtime-reference/SKILL.md +2 -2
  141. package/skills/agentflow-runtime-reference/references/runtime.md +1 -1
  142. package/skills/agentflow-workspace-ascii/SKILL.md +9 -16
  143. package/skills/agentflow-workspace-graph/SKILL.md +62 -48
  144. package/skills/agentflow-workspace-html/SKILL.md +7 -2
  145. package/skills/agentflow-workspace-image/SKILL.md +6 -2
  146. package/skills/agentflow-workspace-markdown/SKILL.md +14 -21
  147. package/skills/agentflow-workspace-mermaid/SKILL.md +8 -16
  148. package/bin/lib/api-runner.mjs +0 -387
  149. package/bin/lib/apply.mjs +0 -903
  150. package/bin/lib/composer-flow-instances.mjs +0 -68
  151. package/bin/lib/composer-flow-skeleton.mjs +0 -334
  152. package/bin/lib/composer-flow-validate.mjs +0 -47
  153. package/bin/lib/composer-model-router.mjs +0 -185
  154. package/bin/lib/composer-node-schema.mjs +0 -303
  155. package/bin/lib/composer-planner.mjs +0 -751
  156. package/bin/lib/composer-script-ops.mjs +0 -233
  157. package/bin/lib/flow-static-preview.mjs +0 -104
  158. package/bin/lib/hub-login.mjs +0 -54
  159. package/bin/lib/hub-publish.mjs +0 -159
  160. package/bin/lib/hub-remote.mjs +0 -189
  161. package/bin/lib/hub.mjs +0 -299
  162. package/bin/lib/jenkins.mjs +0 -380
  163. package/bin/lib/node-execute.mjs +0 -539
  164. package/bin/lib/normalize-node-tool-command.mjs +0 -97
  165. package/bin/lib/runtime-context.mjs +0 -243
  166. package/bin/lib/scheduler.mjs +0 -601
  167. package/bin/lib/ui-print.mjs +0 -94
  168. package/bin/pipeline/build-node-prompt.mjs +0 -271
  169. package/bin/pipeline/check-cache.mjs +0 -191
  170. package/bin/pipeline/check-flow.mjs +0 -543
  171. package/bin/pipeline/collect-nodes.mjs +0 -212
  172. package/bin/pipeline/compute-cache-md5.mjs +0 -177
  173. package/bin/pipeline/ensure-run-dir.mjs +0 -71
  174. package/bin/pipeline/gc.mjs +0 -129
  175. package/bin/pipeline/get-env.mjs +0 -59
  176. package/bin/pipeline/get-resolved-values.mjs +0 -344
  177. package/bin/pipeline/load-key.mjs +0 -62
  178. package/bin/pipeline/parse-flow.mjs +0 -708
  179. package/bin/pipeline/post-process-control-if.mjs +0 -23
  180. package/bin/pipeline/post-process-node.mjs +0 -490
  181. package/bin/pipeline/pre-process-node.mjs +0 -1430
  182. package/bin/pipeline/resolve-inputs.mjs +0 -201
  183. package/bin/pipeline/run-tool-nodejs.mjs +0 -167
  184. package/bin/pipeline/save-key.mjs +0 -93
  185. package/bin/pipeline/snapshot-prior-round.mjs +0 -70
  186. package/bin/pipeline/validate-for-ui.mjs +0 -234
  187. package/bin/pipeline/validate-script-output.mjs +0 -130
  188. package/bin/pipeline/write-result.mjs +0 -182
  189. package/builtin/pipelines/module-migrate/flow.yaml +0 -819
  190. package/builtin/pipelines/new/flow.yaml +0 -545
  191. package/builtin/pipelines/new/scripts/check-flow.mjs +0 -9
  192. package/builtin/pipelines/new/scripts/collect-nodes.mjs +0 -211
  193. package/builtin/web-ui/dist/assets/index-BSCpd5la.js +0 -889
  194. package/builtin/web-ui/dist/assets/index-DZ328oSo.css +0 -1
  195. package/skills/agentflow-node-authoring/SKILL.md +0 -57
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: agentflow-cli
3
- description: Direct AgentFlow platform operation through a bundled token-backed CLI, without MCP. Use when Codex needs to list or publish AgentFlow flows, start or inspect runs, read graphs and logs, or fetch display outputs through AgentFlow HTTP APIs using AGENTFLOW_TOKEN from env or .env. Default AgentFlow base URL is http://ai.mengma.bigo.inner/.
3
+ description: Direct AgentFlow operation through a bundled token-backed CLI, without MCP. Use when Codex needs to search, publish, install, or synchronize versioned node packages; pull or publish portable Workspace DSL flows; upload previews; run or inspect Workspace graphs; or read logs and display outputs through AgentFlow HTTP APIs using AGENTFLOW_TOKEN from env or .env.
4
4
  ---
5
5
 
6
6
  # AgentFlow CLI
@@ -9,9 +9,11 @@ description: Direct AgentFlow platform operation through a bundled token-backed
9
9
 
10
10
  AgentFlow has two different resource families:
11
11
 
12
- - **Flow/Pipeline**: an executable node graph backed by `flow.yaml`. The
13
- `list-flows`, `publish-flow`, `get-graph`, `run`, and schedule commands in
14
- this skill operate on this family.
12
+ - **Flow/Pipeline**: historical `flow.yaml` resources. Start/End execution and
13
+ new Pipeline authoring are retired; only read/migration operations remain.
14
+ - **Workspace**: the active node graph backed by `workspace.flow.js` (plus layout/nodes/state sidecars).
15
+ `workspace-preview`, `get-graph`, `run`, and display-output commands target
16
+ this family.
15
17
  - **Workflow**: a TAPD-derived product/requirement record addressed as
16
18
  `tapd:<id>`. It is not a Flow/Pipeline and must be read or changed through
17
19
  the `workflow-*` commands and the `agentflow-workflow-report` protocol.
@@ -22,13 +24,13 @@ change Workflow data. Before any Flow write, show the exact `flowId`, source,
22
24
  and destination; before any Workflow write, resolve the canonical `tapd:<id>`
23
25
  reference and follow the Workflow skill's read/merge/concurrency rules.
24
26
 
25
- Use this skill when the task is to operate AgentFlow itself from an AI agent. Do not configure or call MCP for this skill. Use the bundled CLI script instead:
27
+ Use this skill when the task is to operate AgentFlow itself from an AI agent. Do not configure or call MCP for this skill. Resolve `<skill-dir>` as the directory containing this `SKILL.md`, then use the bundled CLI script:
26
28
 
27
29
  ```bash
28
- node skills/agentflow-cli/scripts/agentflow-cli.mjs <command> [options]
30
+ node <skill-dir>/scripts/agentflow-cli.mjs <command> [options]
29
31
  ```
30
32
 
31
- If the skill is installed outside this repository, resolve the script path relative to this `SKILL.md`.
33
+ Never assume the current project contains `skills/agentflow-cli`.
32
34
 
33
35
  ## Installation
34
36
 
@@ -52,6 +54,20 @@ skillhub install agentflow-cli --global --agent claude-code
52
54
 
53
55
  After installation, configure only the direct API token. Do not add an MCP server for this skill.
54
56
 
57
+ Install or update the `@fieldwangai/agentflow` CLI as the local runtime and keep `agentflow` on
58
+ `PATH`. The bundled skill intentionally does not copy AgentFlow's parser/runtime modules. It locates
59
+ the runtime from an explicit `--agentflow-package-root`, `AGENTFLOW_PACKAGE_ROOT`, the current
60
+ project's `node_modules`, or the `agentflow` executable on `PATH`.
61
+
62
+ Verify both token and runtime discovery before local DSL or node-package work:
63
+
64
+ ```bash
65
+ node <skill-dir>/scripts/agentflow-cli.mjs config
66
+ ```
67
+
68
+ Require `localRuntime.available: true`. Pure remote reporting commands can still run without a local
69
+ runtime, but package creation, installation, Flow pull/publish, and Workspace graph parsing cannot.
70
+
55
71
  ## Configuration
56
72
 
57
73
  The CLI reads configuration in this order:
@@ -79,56 +95,173 @@ Prefer JSON output and let the CLI handle auth headers.
79
95
  List knowledge/workspace entries:
80
96
 
81
97
  ```bash
82
- node skills/agentflow-cli/scripts/agentflow-cli.mjs list-workspace
98
+ node <skill-dir>/scripts/agentflow-cli.mjs list-workspace
83
99
  ```
84
100
 
85
101
  List flows:
86
102
 
87
103
  ```bash
88
- node skills/agentflow-cli/scripts/agentflow-cli.mjs list-flows
104
+ node <skill-dir>/scripts/agentflow-cli.mjs list-flows
89
105
  ```
90
106
 
91
- For local marketplace node authoring, use the packaged AgentFlow CLI (the
92
- node-authoring workflow is documented in `agentflow-node-authoring`):
107
+ For a package used only in the current local checkout, use the packaged AgentFlow CLI (the
108
+ Node DSL workflow is documented in `agentflow-node-dsl`):
93
109
 
94
110
  ```bash
95
111
  agentflow marketplace list --json
96
112
  agentflow marketplace publish-node ./my-node --json
97
- agentflow marketplace install-node MyFlow marketplace:my-node@1.0.0 --json
98
113
  agentflow validate MyFlow --json
99
114
  ```
100
115
 
101
- These commands operate on the local workspace marketplace. They are usable
102
- after any Agent CLI (Cursor, Codex, Claude Code, or OpenCode) has generated the
103
- node package; no MCP server is required for publishing.
116
+ These commands copy a package only into the current workspace marketplace.
117
+
118
+ To distribute a complete package directory (including `scripts/`, `templates/`, or assets) through
119
+ an AgentFlow server, use the token-backed commands. The CLI packs the directory as ZIP; `index.mjs`
120
+ must be at the package root. The server validates all paths/files and keeps each `id@version`
121
+ immutable:
122
+
123
+ ```bash
124
+ node <skill-dir>/scripts/agentflow-cli.mjs node-package-publish --file ./my-node
125
+ node <skill-dir>/scripts/agentflow-cli.mjs node-package-list
126
+ node <skill-dir>/scripts/agentflow-cli.mjs node-package-install \
127
+ --node my_node@1.0.0 \
128
+ --workspace-root "$PWD"
129
+ ```
130
+
131
+ Before authoring a new code node, search the remote catalog. The result is structured JSON with the
132
+ exact import specifier, input/output slots, content hash, and install hint:
133
+
134
+ ```bash
135
+ node <skill-dir>/scripts/agentflow-cli.mjs node-package-search --query "read csv"
136
+ ```
137
+
138
+ Prefer an existing suitable exact version. Install it and import its returned `specifier`; create a
139
+ new local package only when no result meets the requested behavior.
140
+
141
+ When a Flow already declares its dependencies, do not install packages one by one. Synchronize the
142
+ whole Flow from its versioned imports:
143
+
144
+ ```bash
145
+ node <skill-dir>/scripts/agentflow-cli.mjs node-package-sync \
146
+ --flow .workspace/agentflow/pipelines/<flow-id> \
147
+ --workspace-root "$PWD"
148
+ ```
149
+
150
+ The command reports `installed`, `unchanged`, `missing`, and `conflicts`. It downloads and verifies
151
+ every required ZIP before writing any package, records the server and hashes in each installed
152
+ package's metadata, and exits with code 2 when dependencies cannot be satisfied.
153
+
154
+ After installation, local AI can author a portable DSL reference directly in `workspace.flow.js`:
155
+
156
+ ```js
157
+ import myNode from "marketplace:my_node@1.0.0";
158
+ const result = myNode("My node", { input: "value" });
159
+ ```
160
+
161
+ Run `agentflow flow dsl lint <flowDir>` with that workspace as the current project before publishing
162
+ the flow. `publish-flow` also checks that the server contains every exact imported version before it
163
+ writes the Flow. Do not unpack ZIPs by hand or copy only `index.mjs`; relative package files are part
164
+ of the node's versioned content.
104
165
 
105
166
  Publish a new local Flow after the user has reviewed it:
106
167
 
107
168
  ```bash
108
- node skills/agentflow-cli/scripts/agentflow-cli.mjs publish-flow \
169
+ node <skill-dir>/scripts/agentflow-cli.mjs publish-flow \
109
170
  --flow-id release-check \
110
171
  --file .workspace/agentflow/pipelines/release-check/flow.yaml \
111
172
  --target-space personal
112
173
  ```
113
174
 
175
+ When the reviewed code Flow contains `nodes/`, publish the Flow and all complete package directories
176
+ in one operation:
177
+
178
+ ```bash
179
+ node <skill-dir>/scripts/agentflow-cli.mjs publish-flow \
180
+ --flow-id release-check \
181
+ --file .workspace/agentflow/pipelines/release-check \
182
+ --target-space personal \
183
+ --with-dependencies
184
+ ```
185
+
186
+ This validates every package before any upload, rejects same-version content conflicts, uploads ZIPs,
187
+ and rewrites relative node imports only in the upload payload. It never edits local
188
+ `workspace.flow.js`. Without `--with-dependencies`, `publish-flow` continues to reject Flow directories
189
+ that contain `nodes/` or `workspace.nodes.json` rather than silently dropping them.
190
+
114
191
  Destinations are `personal`, `workspace`, and `team`. `team` creates a workspace Flow and shares it as editor with the current account's active team. Publishing is create-only by default. If the exact Flow already exists, stop and ask whether to update it; only after explicit confirmation rerun with `--replace`. Replacement first reads the server revision and submits it with the update.
115
192
 
116
193
  Read one flow graph:
117
194
 
118
195
  ```bash
119
- node skills/agentflow-cli/scripts/agentflow-cli.mjs get-graph --flow-id TestNodes --flow-source user
196
+ node <skill-dir>/scripts/agentflow-cli.mjs get-graph --flow-id TestNodes --flow-source user
197
+ ```
198
+
199
+ To make a server Flow locally editable, pull it instead of copying graph JSON. Pull synchronizes and
200
+ verifies all exact node-package dependencies first, removes remote runtime state, then writes the
201
+ canonical local DSL:
202
+
203
+ ```bash
204
+ node <skill-dir>/scripts/agentflow-cli.mjs pull-flow \
205
+ --flow-id TestNodes \
206
+ --flow-source user \
207
+ --workspace-root "$PWD"
120
208
  ```
121
209
 
122
- Run a flow:
210
+ The default target is `.workspace/agentflow/pipelines/<flow-id>`. A non-empty target is refused; use
211
+ `--replace` only after the user has explicitly approved updating its managed Flow files.
212
+
213
+ The AgentFlow server automatically performs all lossless storage migrations before it starts
214
+ listening. Use the following commands only to inspect or repair an older deployment, or to resolve a
215
+ Flow listed in the server's `storage-migrations.json` report.
216
+
217
+ Migrate one flow that is still stored as `flow.yaml`:
123
218
 
124
219
  ```bash
125
- node skills/agentflow-cli/scripts/agentflow-cli.mjs run --flow-id TestNodes --flow-source user
220
+ node <skill-dir>/scripts/agentflow-cli.mjs migrate-flow --flow-id <id> --flow-source user
126
221
  ```
127
222
 
223
+ Lossy migration is refused by default: nodes with no Workspace equivalent
224
+ (`control_anyOne`, the two human-gate nodes, …) come back in a `dropped` list
225
+ and nothing is written. Show the user that list and get explicit confirmation
226
+ before rerunning with `--allow-loss`. The `flow.yaml` original is never deleted.
227
+
228
+ Manually rescan everything visible to the current account (does the lossless ones, reports the rest):
229
+
230
+ ```bash
231
+ node <skill-dir>/scripts/agentflow-cli.mjs migrate-all --dry-run
232
+ node <skill-dir>/scripts/agentflow-cli.mjs migrate-all
233
+ ```
234
+
235
+ Read `needsDecision` and `skipped` in the output before telling the user it is
236
+ done — read-only catalogs (`builtin`, `admin`) and archived flows are skipped
237
+ unless `--include-archived` is passed.
238
+
239
+ Upload a Workspace graph to a server-side temporary preview project (the
240
+ server returns a Workspace URL and cleans the project after its TTL):
241
+
242
+ ```bash
243
+ node <skill-dir>/scripts/agentflow-cli.mjs workspace-preview \
244
+ --file .workspace/agentflow/pipelines/<flow-id> \
245
+ --ttl-seconds 7200
246
+ ```
247
+
248
+ This is for visual review only. It does not publish a formal Flow/Pipeline or
249
+ create schedules. The returned temporary project is hidden from the normal
250
+ Flow list and must not be treated as a durable source of truth.
251
+
252
+ Run a Workspace graph:
253
+
254
+ ```bash
255
+ node <skill-dir>/scripts/agentflow-cli.mjs run --flow-id TestNodes --flow-source user
256
+ ```
257
+
258
+ The legacy `agentflow apply`, `/api/flow/run`, and Start/End Pipeline execution
259
+ path are retired. Do not use them for new work.
260
+
128
261
  Run a specific run node with inputs:
129
262
 
130
263
  ```bash
131
- node skills/agentflow-cli/scripts/agentflow-cli.mjs run \
264
+ node <skill-dir>/scripts/agentflow-cli.mjs run \
132
265
  --flow-id TestNodes \
133
266
  --flow-source user \
134
267
  --run-node-id workspace_run_1 \
@@ -139,25 +272,25 @@ node skills/agentflow-cli/scripts/agentflow-cli.mjs run \
139
272
  List runs for a flow or workspace alias:
140
273
 
141
274
  ```bash
142
- node skills/agentflow-cli/scripts/agentflow-cli.mjs list-run-by-workspace --workspace TestNodes --limit 20
275
+ node <skill-dir>/scripts/agentflow-cli.mjs list-run-by-workspace --workspace TestNodes --limit 20
143
276
  ```
144
277
 
145
278
  Read run logs:
146
279
 
147
280
  ```bash
148
- node skills/agentflow-cli/scripts/agentflow-cli.mjs logs --run-id workspace-123
281
+ node <skill-dir>/scripts/agentflow-cli.mjs logs --run-id workspace-123
149
282
  ```
150
283
 
151
284
  Get active run status:
152
285
 
153
286
  ```bash
154
- node skills/agentflow-cli/scripts/agentflow-cli.mjs status --flow-id TestNodes --flow-source user
287
+ node <skill-dir>/scripts/agentflow-cli.mjs status --flow-id TestNodes --flow-source user
155
288
  ```
156
289
 
157
290
  Extract display outputs from a flow:
158
291
 
159
292
  ```bash
160
- node skills/agentflow-cli/scripts/agentflow-cli.mjs display-outputs --flow-id TestNodes --flow-source user
293
+ node <skill-dir>/scripts/agentflow-cli.mjs display-outputs --flow-id TestNodes --flow-source user
161
294
  ```
162
295
 
163
296
  ## Workflow reporting
@@ -174,7 +307,7 @@ The only admin write exception is audited version-membership repair. Read its st
174
307
  ## Workflow
175
308
 
176
309
  1. Check token availability with `config`.
177
- 2. Use `list-workspace` or `list-flows` to discover Flow/Pipeline targets only. Use `publish-flow` only after a local Flow has passed validation and the user has confirmed the preview.
310
+ 2. Use `list-workspace` or `list-flows` to discover Flow/Pipeline targets only. Use `node-package-search` before creating a new code node. Use `publish-flow` only after a local Flow has passed validation and the user has confirmed the preview.
178
311
  3. Use `run` to start the flow. If the task needs the generated page/text, inspect returned `displayOutputs` or call `display-outputs`.
179
312
  4. Use `status`, `list-run-by-workspace`, and `logs` when a run is active, failed, or needs debugging.
180
313
 
@@ -1,4 +1,4 @@
1
1
  interface:
2
2
  display_name: "AgentFlow CLI"
3
- short_description: "Operate AgentFlow workspaces, flows, runs, graphs, and logs"
4
- default_prompt: "Use $agentflow-cli to inspect or operate AgentFlow with the bundled token-backed CLI."
3
+ short_description: "Search packages and operate portable AgentFlow workspaces"
4
+ default_prompt: "Use $agentflow-cli to search node packages and operate a portable AgentFlow workspace."