UNPKG

@agentled/cli

Version:

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

26 lines (25 loc) 926 B
/** * Client-side preflight checks for a pipeline JSON before it's sent to the * server. Catches the silent-strip failure mode (invalid step types, missing * required fields, unreachable steps, silently-stripped root fields) without * spending a create + validate + delete round trip. * * The valid step types list is kept in sync with the orchestrator's runtime * VALID_STEP_TYPES via the drift test in * agentled-mcp-server/__tests__/skill-step-types.test.ts. */ export interface PreflightIssue { severity: 'error' | 'warning'; stepId?: string; code: string; message: string; suggestedFix?: string; } export interface PreflightResult { valid: boolean; errors: PreflightIssue[]; warnings: PreflightIssue[]; stepCount: number; } export declare function preflightPipeline(pipeline: any): PreflightResult; export declare function formatPreflightIssue(issue: PreflightIssue): string;