@fieldwangai/agentflow 0.1.153 → 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 (192) hide show
  1. package/README.md +16 -34
  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 +165 -90
  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 +8 -28
  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 +37 -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 +152 -286
  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 +1087 -18122
  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-routes.mjs +3088 -0
  57. package/bin/lib/workspace-server.mjs +6199 -0
  58. package/bin/lib/workspace-state.mjs +331 -0
  59. package/bin/lib/workspace.mjs +2 -1
  60. package/builtin/nodes/agent_subAgent.md +1 -0
  61. package/builtin/nodes/control_agent_toBool.md +2 -0
  62. package/builtin/nodes/control_anyOne.md +2 -0
  63. package/builtin/nodes/control_cancelled.md +2 -0
  64. package/builtin/nodes/control_cd_workspace.md +5 -11
  65. package/builtin/nodes/control_delay.md +2 -0
  66. package/builtin/nodes/control_end.md +2 -0
  67. package/builtin/nodes/control_if.md +1 -0
  68. package/builtin/nodes/control_interval_loop.md +2 -0
  69. package/builtin/nodes/control_load_mcp.md +24 -0
  70. package/builtin/nodes/control_load_skills.md +8 -23
  71. package/builtin/nodes/control_start.md +2 -0
  72. package/builtin/nodes/control_toBool.md +2 -0
  73. package/builtin/nodes/control_user_workspace.md +2 -0
  74. package/builtin/nodes/control_wait_until.md +2 -0
  75. package/builtin/nodes/display_ascii.md +1 -0
  76. package/builtin/nodes/display_chart.md +1 -0
  77. package/builtin/nodes/display_html.md +1 -0
  78. package/builtin/nodes/display_image.md +1 -0
  79. package/builtin/nodes/display_markdown.md +1 -0
  80. package/builtin/nodes/display_mermaid.md +1 -0
  81. package/builtin/nodes/display_react_app.md +1 -0
  82. package/builtin/nodes/display_table.md +1 -0
  83. package/builtin/nodes/provide_bool.md +1 -0
  84. package/builtin/nodes/provide_file.md +1 -0
  85. package/builtin/nodes/provide_password.md +1 -0
  86. package/builtin/nodes/provide_str.md +1 -0
  87. package/builtin/nodes/tool_display_share_link.md +1 -0
  88. package/builtin/nodes/tool_get_env.md +2 -0
  89. package/builtin/nodes/tool_git_checkout.md +1 -0
  90. package/builtin/nodes/tool_git_worktree_load.md +1 -0
  91. package/builtin/nodes/tool_git_worktree_unload.md +1 -0
  92. package/builtin/nodes/tool_gitlab_create_mr.md +1 -0
  93. package/builtin/nodes/tool_jenkins_build.md +2 -0
  94. package/builtin/nodes/tool_load_key.md +2 -0
  95. package/builtin/nodes/tool_nodejs.md +17 -19
  96. package/builtin/nodes/tool_print.md +2 -0
  97. package/builtin/nodes/tool_save_key.md +2 -0
  98. package/builtin/nodes/tool_set_run_env.md +1 -0
  99. package/builtin/nodes/tool_user_ask.md +2 -0
  100. package/builtin/nodes/tool_user_check.md +2 -0
  101. package/builtin/nodes/tool_wecom_send_app_markdown.md +1 -0
  102. package/builtin/nodes/tool_wecom_send_group_markdown.md +1 -0
  103. package/builtin/nodes/workspace_one_click_task.md +44 -0
  104. package/builtin/nodes/workspace_run.md +16 -0
  105. package/builtin/nodes/workspace_scheduled_run.md +16 -0
  106. package/builtin/pipelines/module-migrate/scripts/gate.mjs +37 -0
  107. package/builtin/pipelines/module-migrate/scripts/static-check.mjs +82 -0
  108. package/builtin/pipelines/module-migrate/workspace.flow.js +172 -0
  109. package/builtin/pipelines/module-migrate/workspace.layout.json +134 -0
  110. package/builtin/pipelines/new/scripts/lint-flow.mjs +38 -0
  111. package/builtin/pipelines/new/workspace.flow.js +91 -0
  112. package/builtin/pipelines/new/workspace.layout.json +70 -0
  113. package/builtin/web-ui/dist/assets/{WorkflowAssistantThread-B9xslwI0.js → WorkflowAssistantThread-CKClwj96.js} +1 -1
  114. package/builtin/web-ui/dist/assets/index-BZ5KqLur.js +870 -0
  115. package/builtin/web-ui/dist/assets/index-CEXmmwM2.css +1 -0
  116. package/builtin/web-ui/dist/index.html +2 -2
  117. package/package.json +2 -1
  118. package/reference/flow-control-capabilities.md +77 -158
  119. package/reference/flow-layout.md +1 -1
  120. package/reference/flow-prompt-handler-check.md +2 -2
  121. package/skills/agentflow-author-flow/SKILL.md +1 -1
  122. package/skills/agentflow-cli/SKILL.md +139 -24
  123. package/skills/agentflow-cli/agents/openai.yaml +2 -2
  124. package/skills/agentflow-cli/scripts/agentflow-cli.mjs +654 -20
  125. package/skills/agentflow-cli/scripts/agentflow-runtime.mjs +97 -0
  126. package/skills/agentflow-flow-add-instances/SKILL.md +1 -1
  127. package/skills/agentflow-flow-dsl/SKILL.md +206 -0
  128. package/skills/agentflow-flow-dsl/agents/openai.yaml +4 -0
  129. package/skills/agentflow-flow-dsl/references/node-calls.md +39 -0
  130. package/skills/agentflow-flow-edit-node-fields/SKILL.md +1 -1
  131. package/skills/agentflow-flow-recipes/SKILL.md +7 -4
  132. package/skills/agentflow-flow-recipes/references/recipes.md +97 -43
  133. package/skills/agentflow-flow-sync-ui/SKILL.md +1 -1
  134. package/skills/agentflow-node-dsl/SKILL.md +212 -0
  135. package/skills/agentflow-node-dsl/agents/openai.yaml +4 -0
  136. package/skills/agentflow-node-reference/SKILL.md +2 -2
  137. package/skills/agentflow-node-reference/references/builtin-nodes.md +166 -115
  138. package/skills/agentflow-runtime-reference/references/runtime.md +1 -1
  139. package/skills/agentflow-workspace-ascii/SKILL.md +9 -16
  140. package/skills/agentflow-workspace-graph/SKILL.md +62 -48
  141. package/skills/agentflow-workspace-html/SKILL.md +7 -2
  142. package/skills/agentflow-workspace-image/SKILL.md +6 -2
  143. package/skills/agentflow-workspace-markdown/SKILL.md +14 -21
  144. package/skills/agentflow-workspace-mermaid/SKILL.md +8 -16
  145. package/bin/lib/api-runner.mjs +0 -387
  146. package/bin/lib/apply.mjs +0 -903
  147. package/bin/lib/composer-flow-instances.mjs +0 -68
  148. package/bin/lib/composer-flow-skeleton.mjs +0 -334
  149. package/bin/lib/composer-flow-validate.mjs +0 -47
  150. package/bin/lib/composer-model-router.mjs +0 -185
  151. package/bin/lib/composer-node-schema.mjs +0 -303
  152. package/bin/lib/composer-planner.mjs +0 -751
  153. package/bin/lib/composer-script-ops.mjs +0 -233
  154. package/bin/lib/flow-static-preview.mjs +0 -104
  155. package/bin/lib/hub-login.mjs +0 -54
  156. package/bin/lib/hub-publish.mjs +0 -159
  157. package/bin/lib/hub-remote.mjs +0 -189
  158. package/bin/lib/hub.mjs +0 -299
  159. package/bin/lib/jenkins.mjs +0 -380
  160. package/bin/lib/node-execute.mjs +0 -539
  161. package/bin/lib/normalize-node-tool-command.mjs +0 -97
  162. package/bin/lib/runtime-context.mjs +0 -243
  163. package/bin/lib/scheduler.mjs +0 -601
  164. package/bin/lib/ui-print.mjs +0 -94
  165. package/bin/pipeline/build-node-prompt.mjs +0 -271
  166. package/bin/pipeline/check-cache.mjs +0 -191
  167. package/bin/pipeline/check-flow.mjs +0 -543
  168. package/bin/pipeline/collect-nodes.mjs +0 -212
  169. package/bin/pipeline/compute-cache-md5.mjs +0 -177
  170. package/bin/pipeline/ensure-run-dir.mjs +0 -71
  171. package/bin/pipeline/gc.mjs +0 -129
  172. package/bin/pipeline/get-env.mjs +0 -59
  173. package/bin/pipeline/get-resolved-values.mjs +0 -344
  174. package/bin/pipeline/load-key.mjs +0 -62
  175. package/bin/pipeline/parse-flow.mjs +0 -708
  176. package/bin/pipeline/post-process-control-if.mjs +0 -23
  177. package/bin/pipeline/post-process-node.mjs +0 -490
  178. package/bin/pipeline/pre-process-node.mjs +0 -1430
  179. package/bin/pipeline/resolve-inputs.mjs +0 -201
  180. package/bin/pipeline/run-tool-nodejs.mjs +0 -167
  181. package/bin/pipeline/save-key.mjs +0 -93
  182. package/bin/pipeline/snapshot-prior-round.mjs +0 -70
  183. package/bin/pipeline/validate-for-ui.mjs +0 -234
  184. package/bin/pipeline/validate-script-output.mjs +0 -130
  185. package/bin/pipeline/write-result.mjs +0 -182
  186. package/builtin/pipelines/module-migrate/flow.yaml +0 -819
  187. package/builtin/pipelines/new/flow.yaml +0 -545
  188. package/builtin/pipelines/new/scripts/check-flow.mjs +0 -9
  189. package/builtin/pipelines/new/scripts/collect-nodes.mjs +0 -211
  190. package/builtin/web-ui/dist/assets/index-DZ328oSo.css +0 -1
  191. package/builtin/web-ui/dist/assets/index-DmUV7ZCL.js +0 -888
  192. package/skills/agentflow-node-authoring/SKILL.md +0 -57
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: agentflow-cli
3
- description: Direct AgentFlow Workspace operation through a bundled token-backed CLI, without MCP. Use when Codex needs to upload temporary Workspace previews, run or inspect Workspace graphs, read graphs and 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
@@ -11,7 +11,7 @@ AgentFlow has two different resource families:
11
11
 
12
12
  - **Flow/Pipeline**: historical `flow.yaml` resources. Start/End execution and
13
13
  new Pipeline authoring are retired; only read/migration operations remain.
14
- - **Workspace**: the active node graph backed by `workspace.graph.json`.
14
+ - **Workspace**: the active node graph backed by `workspace.flow.js` (plus layout/nodes/state sidecars).
15
15
  `workspace-preview`, `get-graph`, `run`, and display-output commands target
16
16
  this family.
17
17
  - **Workflow**: a TAPD-derived product/requirement record addressed as
@@ -24,13 +24,13 @@ change Workflow data. Before any Flow write, show the exact `flowId`, source,
24
24
  and destination; before any Workflow write, resolve the canonical `tapd:<id>`
25
25
  reference and follow the Workflow skill's read/merge/concurrency rules.
26
26
 
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. 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:
28
28
 
29
29
  ```bash
30
- node skills/agentflow-cli/scripts/agentflow-cli.mjs <command> [options]
30
+ node <skill-dir>/scripts/agentflow-cli.mjs <command> [options]
31
31
  ```
32
32
 
33
- 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`.
34
34
 
35
35
  ## Installation
36
36
 
@@ -54,6 +54,20 @@ skillhub install agentflow-cli --global --agent claude-code
54
54
 
55
55
  After installation, configure only the direct API token. Do not add an MCP server for this skill.
56
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
+
57
71
  ## Configuration
58
72
 
59
73
  The CLI reads configuration in this order:
@@ -81,52 +95,153 @@ Prefer JSON output and let the CLI handle auth headers.
81
95
  List knowledge/workspace entries:
82
96
 
83
97
  ```bash
84
- node skills/agentflow-cli/scripts/agentflow-cli.mjs list-workspace
98
+ node <skill-dir>/scripts/agentflow-cli.mjs list-workspace
85
99
  ```
86
100
 
87
101
  List flows:
88
102
 
89
103
  ```bash
90
- node skills/agentflow-cli/scripts/agentflow-cli.mjs list-flows
104
+ node <skill-dir>/scripts/agentflow-cli.mjs list-flows
91
105
  ```
92
106
 
93
- For local marketplace node authoring, use the packaged AgentFlow CLI (the
94
- 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`):
95
109
 
96
110
  ```bash
97
111
  agentflow marketplace list --json
98
112
  agentflow marketplace publish-node ./my-node --json
99
- agentflow marketplace install-node MyFlow marketplace:my-node@1.0.0 --json
100
113
  agentflow validate MyFlow --json
101
114
  ```
102
115
 
103
- These commands operate on the local workspace marketplace. They are usable
104
- after any Agent CLI (Cursor, Codex, Claude Code, or OpenCode) has generated the
105
- 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.
106
165
 
107
166
  Publish a new local Flow after the user has reviewed it:
108
167
 
109
168
  ```bash
110
- node skills/agentflow-cli/scripts/agentflow-cli.mjs publish-flow \
169
+ node <skill-dir>/scripts/agentflow-cli.mjs publish-flow \
111
170
  --flow-id release-check \
112
171
  --file .workspace/agentflow/pipelines/release-check/flow.yaml \
113
172
  --target-space personal
114
173
  ```
115
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
+
116
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.
117
192
 
118
193
  Read one flow graph:
119
194
 
120
195
  ```bash
121
- 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"
208
+ ```
209
+
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`:
218
+
219
+ ```bash
220
+ node <skill-dir>/scripts/agentflow-cli.mjs migrate-flow --flow-id <id> --flow-source user
122
221
  ```
123
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
+
124
239
  Upload a Workspace graph to a server-side temporary preview project (the
125
240
  server returns a Workspace URL and cleans the project after its TTL):
126
241
 
127
242
  ```bash
128
- node skills/agentflow-cli/scripts/agentflow-cli.mjs workspace-preview \
129
- --file .workspace/agentflow/pipelines/<flow-id>/workspace.graph.json \
243
+ node <skill-dir>/scripts/agentflow-cli.mjs workspace-preview \
244
+ --file .workspace/agentflow/pipelines/<flow-id> \
130
245
  --ttl-seconds 7200
131
246
  ```
132
247
 
@@ -137,7 +252,7 @@ Flow list and must not be treated as a durable source of truth.
137
252
  Run a Workspace graph:
138
253
 
139
254
  ```bash
140
- node skills/agentflow-cli/scripts/agentflow-cli.mjs run --flow-id TestNodes --flow-source user
255
+ node <skill-dir>/scripts/agentflow-cli.mjs run --flow-id TestNodes --flow-source user
141
256
  ```
142
257
 
143
258
  The legacy `agentflow apply`, `/api/flow/run`, and Start/End Pipeline execution
@@ -146,7 +261,7 @@ path are retired. Do not use them for new work.
146
261
  Run a specific run node with inputs:
147
262
 
148
263
  ```bash
149
- node skills/agentflow-cli/scripts/agentflow-cli.mjs run \
264
+ node <skill-dir>/scripts/agentflow-cli.mjs run \
150
265
  --flow-id TestNodes \
151
266
  --flow-source user \
152
267
  --run-node-id workspace_run_1 \
@@ -157,25 +272,25 @@ node skills/agentflow-cli/scripts/agentflow-cli.mjs run \
157
272
  List runs for a flow or workspace alias:
158
273
 
159
274
  ```bash
160
- 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
161
276
  ```
162
277
 
163
278
  Read run logs:
164
279
 
165
280
  ```bash
166
- 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
167
282
  ```
168
283
 
169
284
  Get active run status:
170
285
 
171
286
  ```bash
172
- 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
173
288
  ```
174
289
 
175
290
  Extract display outputs from a flow:
176
291
 
177
292
  ```bash
178
- 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
179
294
  ```
180
295
 
181
296
  ## Workflow reporting
@@ -192,7 +307,7 @@ The only admin write exception is audited version-membership repair. Read its st
192
307
  ## Workflow
193
308
 
194
309
  1. Check token availability with `config`.
195
- 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.
196
311
  3. Use `run` to start the flow. If the task needs the generated page/text, inspect returned `displayOutputs` or call `display-outputs`.
197
312
  4. Use `status`, `list-run-by-workspace`, and `logs` when a run is active, failed, or needs debugging.
198
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."