@fluidgrids/cli 2026.1124.3 → 2026.1126.1
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 +30 -0
- package/dist/cli.js +947 -532
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -465,6 +465,36 @@ fluidgrids --profile alpha runs list
|
|
|
465
465
|
profile; `FLUIDGRIDS_<KEY>` variables and the usual `FLUIDGRIDS_*` overrides
|
|
466
466
|
win over it key by key. Without a config file nothing changes.
|
|
467
467
|
|
|
468
|
+
## AI: generate, explain a run, propose a fix
|
|
469
|
+
|
|
470
|
+
```bash
|
|
471
|
+
# Propose a new workflow and print the graph diff (nothing is saved)
|
|
472
|
+
fluidgrids ai generate "notify Slack when a Stripe refund exceeds 500"
|
|
473
|
+
|
|
474
|
+
# The same, applied as a new DRAFT workflow you review and activate in the builder
|
|
475
|
+
fluidgrids ai generate "notify Slack when a Stripe refund exceeds 500" --apply
|
|
476
|
+
|
|
477
|
+
# A change to an existing workflow, applied as its next DRAFT version
|
|
478
|
+
fluidgrids ai generate "retry the HTTP call twice" --workflow refund-alert --apply
|
|
479
|
+
|
|
480
|
+
# Why a run failed (no model call, no AI credit), then a fix as a DRAFT, re-run as a TEST run
|
|
481
|
+
fluidgrids ai explain-run <runId>
|
|
482
|
+
fluidgrids ai propose-fix <runId> --apply --rerun
|
|
483
|
+
```
|
|
484
|
+
|
|
485
|
+
- `ai generate` and `ai propose-fix` wait while the model works (`--timeout`, default 5 minutes)
|
|
486
|
+
and print the graph diff: added, removed and changed nodes and edges, the explanation and any
|
|
487
|
+
validation warning. `--apply` creates a new DRAFT version (a new DRAFT workflow for a new one)
|
|
488
|
+
and prints where it went; nothing is ever activated.
|
|
489
|
+
- A proposal is never lost: a timeout names its id, and `--resume <proposalId>` waits for it
|
|
490
|
+
again (with `--apply`, applies it) without a new model call.
|
|
491
|
+
- A proposal that ends FAILED, REFUSED or STALE exits non-zero with the reason.
|
|
492
|
+
- `-f json` (or `--output json`) prints `{ proposal, applied }` and the explanation as data.
|
|
493
|
+
- The same three operations are `ai.generate`, `ai.explainRun` and `ai.proposeFix` in
|
|
494
|
+
`@fluidgrids/sdk` and `fluidgrids-sdk`, and the `fluidgrids_ai_generate`,
|
|
495
|
+
`fluidgrids_ai_explain_run` and `fluidgrids_ai_propose_fix` tools of the MCP server. The
|
|
496
|
+
service records every model call in the workspace's AI usage against the signed-in account.
|
|
497
|
+
|
|
468
498
|
## AI to code, n8n import, the replay debugger and standalone activities (Phase D)
|
|
469
499
|
|
|
470
500
|
Each command except the n8n import needs its Phase D flag on the workspace;
|