UNPKG

@agentled/cli

Version:

CLI for Agentled — manage workflows, apps, and knowledge from the command line. Zero context-window cost for AI agents.

24 lines (23 loc) 1.1 kB
/** * `agentled dryrun <file>` — zero-credit variable-resolution walk over a pipeline. * * Walks the step graph from the trigger, synthesizes mock outputs for each step * (from responseStructure / app output schemas / fixture data), substitutes * template variables, and reports: * * - Unresolved `{{steps.X.field}}` / `{{input.Y}}` / `{{currentItem.Z}}` refs * - Always-skip / always-stop branches based on entryConditions * - Credit estimate (sum of step.creditCost or per-action defaults) * * Inputs (in priority order, latest wins): * 1. Synthetic defaults from context.executionInputConfig.fields * 2. --input '<json>' or --input-file <path> * 3. --mocks <path> — full {stepId: output} object overriding any synthetic * 4. --from-execution <execId> — load each step's output from * fixtures/step-outputs/<execId>/<stepId>.json (most realistic) * * Exit codes: 0 clean, 1 warnings (always-skip branches, no terminal step), * 2 unresolved refs. */ import { Command } from 'commander'; export declare function registerDryRunCommand(program: Command): void;