@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.
- package/README.md +20 -33
- 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 +167 -88
- 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 +276 -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 +268 -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 +10 -30
- package/bin/lib/html-escape.mjs +19 -0
- package/bin/lib/http-util.mjs +49 -0
- package/bin/lib/legacy-flow-execution.mjs +43 -0
- package/bin/lib/locales/en.json +1 -1
- package/bin/lib/locales/zh.json +1 -1
- package/bin/lib/main.mjs +153 -283
- 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 +1106 -18013
- 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 +74 -0
- 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-DPbR2UaN.js → WorkflowAssistantThread-CKClwj96.js} +1 -1
- package/builtin/web-ui/dist/assets/index-BZ5KqLur.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 +2 -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 +8 -47
- package/skills/agentflow-cli/SKILL.md +158 -25
- package/skills/agentflow-cli/agents/openai.yaml +2 -2
- package/skills/agentflow-cli/scripts/agentflow-cli.mjs +668 -18
- package/skills/agentflow-cli/scripts/agentflow-runtime.mjs +97 -0
- package/skills/agentflow-flow-add-instances/SKILL.md +7 -248
- 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 +4 -73
- package/skills/agentflow-flow-recipes/SKILL.md +7 -18
- package/skills/agentflow-flow-recipes/references/recipes.md +97 -43
- package/skills/agentflow-flow-sync-ui/SKILL.md +3 -54
- 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 +5 -4
- package/skills/agentflow-node-reference/references/builtin-nodes.md +166 -115
- package/skills/agentflow-placeholder-reference/SKILL.md +2 -2
- package/skills/agentflow-runtime-reference/SKILL.md +2 -2
- 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-BSCpd5la.js +0 -889
- package/builtin/web-ui/dist/assets/index-DZ328oSo.css +0 -1
- 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
|
|
@@ -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**:
|
|
13
|
-
|
|
14
|
-
|
|
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.
|
|
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
|
|
30
|
+
node <skill-dir>/scripts/agentflow-cli.mjs <command> [options]
|
|
29
31
|
```
|
|
30
32
|
|
|
31
|
-
|
|
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
|
|
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
|
|
104
|
+
node <skill-dir>/scripts/agentflow-cli.mjs list-flows
|
|
89
105
|
```
|
|
90
106
|
|
|
91
|
-
For
|
|
92
|
-
|
|
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
|
|
102
|
-
|
|
103
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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: "
|
|
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."
|