@fieldwangai/agentflow 0.1.153 → 0.1.156
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 +16 -34
- package/README.zh-CN.md +14 -34
- package/agents/agentflow-node-executor-code.md +13 -3
- package/agents/agentflow-node-executor-planning.md +13 -3
- package/agents/agentflow-node-executor-requirement.md +13 -3
- package/agents/agentflow-node-executor-test.md +13 -3
- package/agents/agentflow-node-executor-ui.md +13 -3
- package/agents/agentflow-node-executor.md +13 -3
- package/agents/en/agentflow-node-executor.md +13 -3
- package/agents/zh/agentflow-node-executor.md +13 -3
- package/bin/agentflow.mjs +3 -3
- package/bin/lib/admin-builtin-pipelines.mjs +3 -2
- package/bin/lib/agent-runners.mjs +0 -929
- package/bin/lib/auth.mjs +2 -1
- package/bin/lib/catalog-agents.mjs +2 -1
- package/bin/lib/catalog-flows.mjs +165 -90
- package/bin/lib/composer-agent.mjs +3 -793
- package/bin/lib/composer-skill-router.mjs +3 -323
- package/bin/lib/exec-buffered.mjs +32 -0
- package/bin/lib/flow-dsl/cli.mjs +277 -0
- package/bin/lib/flow-dsl/codegen.mjs +358 -0
- package/bin/lib/flow-dsl/defs.mjs +103 -0
- package/bin/lib/flow-dsl/index.mjs +77 -0
- package/bin/lib/flow-dsl/ir.mjs +305 -0
- package/bin/lib/flow-dsl/layout.mjs +115 -0
- package/bin/lib/flow-dsl/legacy-yaml.mjs +303 -0
- package/bin/lib/flow-dsl/lint.mjs +241 -0
- package/bin/lib/flow-dsl/packages.mjs +251 -0
- package/bin/lib/flow-dsl/parser.mjs +444 -0
- package/bin/lib/flow-import.mjs +96 -26
- package/bin/lib/flow-write.mjs +48 -12
- package/bin/lib/help.mjs +8 -28
- package/bin/lib/html-escape.mjs +19 -0
- package/bin/lib/http-util.mjs +49 -0
- package/bin/lib/legacy-flow-execution.mjs +37 -0
- package/bin/lib/locales/en.json +1 -1
- package/bin/lib/locales/zh.json +1 -1
- package/bin/lib/main.mjs +152 -286
- package/bin/lib/marketplace.mjs +206 -61
- package/bin/lib/model-config.mjs +10 -0
- package/bin/lib/node-package-archive.mjs +240 -0
- package/bin/lib/node-package-bootstrap.mjs +72 -0
- package/bin/lib/node-package-manifest.mjs +174 -0
- package/bin/lib/paths.mjs +42 -19
- package/bin/lib/prd-workflow-routes.mjs +2949 -0
- package/bin/lib/prd-workflow-server.mjs +4884 -0
- package/bin/lib/run-events.mjs +0 -66
- package/bin/lib/schedule-config.mjs +4 -4
- package/bin/lib/skill-runtime.mjs +35 -0
- package/bin/lib/startup-storage-migrations.mjs +274 -0
- package/bin/lib/ui-server.mjs +1092 -18123
- package/bin/lib/user-env.mjs +16 -0
- package/bin/lib/workspace-auto-layout.mjs +234 -0
- package/bin/lib/workspace-flow-store.mjs +478 -0
- package/bin/lib/workspace-graph-merge.mjs +41 -34
- package/bin/lib/workspace-preview.mjs +12 -2
- package/bin/lib/workspace-routes.mjs +3088 -0
- package/bin/lib/workspace-server.mjs +6199 -0
- package/bin/lib/workspace-state.mjs +331 -0
- package/bin/lib/workspace.mjs +2 -1
- package/builtin/nodes/agent_subAgent.md +1 -0
- package/builtin/nodes/control_agent_toBool.md +2 -0
- package/builtin/nodes/control_anyOne.md +2 -0
- package/builtin/nodes/control_cancelled.md +2 -0
- package/builtin/nodes/control_cd_workspace.md +5 -11
- package/builtin/nodes/control_delay.md +2 -0
- package/builtin/nodes/control_end.md +2 -0
- package/builtin/nodes/control_if.md +1 -0
- package/builtin/nodes/control_interval_loop.md +2 -0
- package/builtin/nodes/control_load_mcp.md +24 -0
- package/builtin/nodes/control_load_skills.md +8 -23
- package/builtin/nodes/control_start.md +2 -0
- package/builtin/nodes/control_toBool.md +2 -0
- package/builtin/nodes/control_user_workspace.md +2 -0
- package/builtin/nodes/control_wait_until.md +2 -0
- package/builtin/nodes/display_ascii.md +1 -0
- package/builtin/nodes/display_chart.md +1 -0
- package/builtin/nodes/display_html.md +1 -0
- package/builtin/nodes/display_image.md +1 -0
- package/builtin/nodes/display_markdown.md +1 -0
- package/builtin/nodes/display_mermaid.md +1 -0
- package/builtin/nodes/display_react_app.md +1 -0
- package/builtin/nodes/display_table.md +1 -0
- package/builtin/nodes/provide_bool.md +1 -0
- package/builtin/nodes/provide_file.md +1 -0
- package/builtin/nodes/provide_password.md +1 -0
- package/builtin/nodes/provide_str.md +1 -0
- package/builtin/nodes/tool_display_share_link.md +1 -0
- package/builtin/nodes/tool_get_env.md +2 -0
- package/builtin/nodes/tool_git_checkout.md +1 -0
- package/builtin/nodes/tool_git_worktree_load.md +1 -0
- package/builtin/nodes/tool_git_worktree_unload.md +1 -0
- package/builtin/nodes/tool_gitlab_create_mr.md +1 -0
- package/builtin/nodes/tool_jenkins_build.md +2 -0
- package/builtin/nodes/tool_load_key.md +2 -0
- package/builtin/nodes/tool_nodejs.md +17 -19
- package/builtin/nodes/tool_print.md +2 -0
- package/builtin/nodes/tool_save_key.md +2 -0
- package/builtin/nodes/tool_set_run_env.md +1 -0
- package/builtin/nodes/tool_user_ask.md +2 -0
- package/builtin/nodes/tool_user_check.md +2 -0
- package/builtin/nodes/tool_wecom_send_app_markdown.md +1 -0
- package/builtin/nodes/tool_wecom_send_group_markdown.md +1 -0
- package/builtin/nodes/workspace_one_click_task.md +44 -0
- package/builtin/nodes/workspace_run.md +16 -0
- package/builtin/nodes/workspace_scheduled_run.md +16 -0
- package/builtin/pipelines/module-migrate/scripts/gate.mjs +37 -0
- package/builtin/pipelines/module-migrate/scripts/static-check.mjs +82 -0
- package/builtin/pipelines/module-migrate/workspace.flow.js +172 -0
- package/builtin/pipelines/module-migrate/workspace.layout.json +134 -0
- package/builtin/pipelines/new/scripts/lint-flow.mjs +38 -0
- package/builtin/pipelines/new/workspace.flow.js +91 -0
- package/builtin/pipelines/new/workspace.layout.json +70 -0
- package/builtin/web-ui/dist/assets/{WorkflowAssistantThread-B9xslwI0.js → WorkflowAssistantThread-ClNxY2Wu.js} +1 -1
- package/builtin/web-ui/dist/assets/index-BJzMYRK3.js +870 -0
- package/builtin/web-ui/dist/assets/index-CEXmmwM2.css +1 -0
- package/builtin/web-ui/dist/index.html +2 -2
- package/package.json +3 -1
- package/reference/flow-control-capabilities.md +77 -158
- package/reference/flow-layout.md +1 -1
- package/reference/flow-prompt-handler-check.md +2 -2
- package/skills/agentflow-author-flow/SKILL.md +1 -1
- package/skills/agentflow-cli/SKILL.md +139 -24
- package/skills/agentflow-cli/agents/openai.yaml +2 -2
- package/skills/agentflow-cli/scripts/agentflow-cli.mjs +654 -20
- package/skills/agentflow-cli/scripts/agentflow-runtime.mjs +97 -0
- package/skills/agentflow-flow-add-instances/SKILL.md +1 -1
- package/skills/agentflow-flow-dsl/SKILL.md +206 -0
- package/skills/agentflow-flow-dsl/agents/openai.yaml +4 -0
- package/skills/agentflow-flow-dsl/references/node-calls.md +39 -0
- package/skills/agentflow-flow-edit-node-fields/SKILL.md +1 -1
- package/skills/agentflow-flow-recipes/SKILL.md +7 -4
- package/skills/agentflow-flow-recipes/references/recipes.md +97 -43
- package/skills/agentflow-flow-sync-ui/SKILL.md +1 -1
- package/skills/agentflow-node-dsl/SKILL.md +212 -0
- package/skills/agentflow-node-dsl/agents/openai.yaml +4 -0
- package/skills/agentflow-node-reference/SKILL.md +2 -2
- package/skills/agentflow-node-reference/references/builtin-nodes.md +166 -115
- package/skills/agentflow-runtime-reference/references/runtime.md +1 -1
- package/skills/agentflow-workspace-ascii/SKILL.md +9 -16
- package/skills/agentflow-workspace-graph/SKILL.md +62 -48
- package/skills/agentflow-workspace-html/SKILL.md +7 -2
- package/skills/agentflow-workspace-image/SKILL.md +6 -2
- package/skills/agentflow-workspace-markdown/SKILL.md +14 -21
- package/skills/agentflow-workspace-mermaid/SKILL.md +8 -16
- package/bin/lib/api-runner.mjs +0 -387
- package/bin/lib/apply.mjs +0 -903
- package/bin/lib/composer-flow-instances.mjs +0 -68
- package/bin/lib/composer-flow-skeleton.mjs +0 -334
- package/bin/lib/composer-flow-validate.mjs +0 -47
- package/bin/lib/composer-model-router.mjs +0 -185
- package/bin/lib/composer-node-schema.mjs +0 -303
- package/bin/lib/composer-planner.mjs +0 -751
- package/bin/lib/composer-script-ops.mjs +0 -233
- package/bin/lib/flow-static-preview.mjs +0 -104
- package/bin/lib/hub-login.mjs +0 -54
- package/bin/lib/hub-publish.mjs +0 -159
- package/bin/lib/hub-remote.mjs +0 -189
- package/bin/lib/hub.mjs +0 -299
- package/bin/lib/jenkins.mjs +0 -380
- package/bin/lib/node-execute.mjs +0 -539
- package/bin/lib/normalize-node-tool-command.mjs +0 -97
- package/bin/lib/runtime-context.mjs +0 -243
- package/bin/lib/scheduler.mjs +0 -601
- package/bin/lib/ui-print.mjs +0 -94
- package/bin/pipeline/build-node-prompt.mjs +0 -271
- package/bin/pipeline/check-cache.mjs +0 -191
- package/bin/pipeline/check-flow.mjs +0 -543
- package/bin/pipeline/collect-nodes.mjs +0 -212
- package/bin/pipeline/compute-cache-md5.mjs +0 -177
- package/bin/pipeline/ensure-run-dir.mjs +0 -71
- package/bin/pipeline/gc.mjs +0 -129
- package/bin/pipeline/get-env.mjs +0 -59
- package/bin/pipeline/get-resolved-values.mjs +0 -344
- package/bin/pipeline/load-key.mjs +0 -62
- package/bin/pipeline/parse-flow.mjs +0 -708
- package/bin/pipeline/post-process-control-if.mjs +0 -23
- package/bin/pipeline/post-process-node.mjs +0 -490
- package/bin/pipeline/pre-process-node.mjs +0 -1430
- package/bin/pipeline/resolve-inputs.mjs +0 -201
- package/bin/pipeline/run-tool-nodejs.mjs +0 -167
- package/bin/pipeline/save-key.mjs +0 -93
- package/bin/pipeline/snapshot-prior-round.mjs +0 -70
- package/bin/pipeline/validate-for-ui.mjs +0 -234
- package/bin/pipeline/validate-script-output.mjs +0 -130
- package/bin/pipeline/write-result.mjs +0 -182
- package/builtin/pipelines/module-migrate/flow.yaml +0 -819
- package/builtin/pipelines/new/flow.yaml +0 -545
- package/builtin/pipelines/new/scripts/check-flow.mjs +0 -9
- package/builtin/pipelines/new/scripts/collect-nodes.mjs +0 -211
- package/builtin/web-ui/dist/assets/index-DZ328oSo.css +0 -1
- package/builtin/web-ui/dist/assets/index-DmUV7ZCL.js +0 -888
- package/skills/agentflow-node-authoring/SKILL.md +0 -57
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: agentflow-cli
|
|
3
|
-
description: Direct AgentFlow
|
|
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.
|
|
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.
|
|
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
|
|
30
|
+
node <skill-dir>/scripts/agentflow-cli.mjs <command> [options]
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
|
|
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
|
|
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
|
|
104
|
+
node <skill-dir>/scripts/agentflow-cli.mjs list-flows
|
|
91
105
|
```
|
|
92
106
|
|
|
93
|
-
For
|
|
94
|
-
|
|
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
|
|
104
|
-
|
|
105
|
-
|
|
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
|
|
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
|
|
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
|
|
129
|
-
--file .workspace/agentflow/pipelines/<flow-id
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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: "
|
|
4
|
-
default_prompt: "Use $agentflow-cli to
|
|
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."
|