/** * Semantic input extraction for YAML workflow generator. * * Analyzes all steps from an execution and classifies each argument as: * - **dynamic**: user-provided at invocation time (e.g., url, query, password) * - **fixed**: implementation detail with a sensible default (e.g., selector, timeout) * - **wired**: inter-step data from previous step output (e.g., page_id, content) */ import type { InputFieldMeta } from '../../types/yaml-workflow'; import type { ExtractedStepLike } from './input-analyzer-helpers'; export { classifyArgument } from './input-analyzer-helpers'; export type { ExtractedStepLike } from './input-analyzer-helpers'; /** * Scan ALL steps from an execution and return classified `InputFieldMeta[]`. * * - Iterates every step's arguments and classifies each key * - Deduplicates by key (first occurrence wins) * - Skips wired arguments (they come from step chaining) * - Flattens nested objects that contain dynamic keys * - Caps large defaults (arrays, objects) to prevent hardcoded execution data * - Enhances descriptions using the original prompt where possible */ export declare function extractSemanticInputs(steps: ExtractedStepLike[], originalPrompt: string): InputFieldMeta[]; /** * Build a JSON Schema from classified input field metadata. * * - `dynamic` fields become required properties (no default — user must provide) * - `fixed` fields become optional properties with defaults from the execution */ export declare function buildEnrichedInputSchema(fieldMeta: InputFieldMeta[]): Record;