/** * Recipe replay engine. Executes a recipe's serialised steps against * a Playwright Page and reports per-step success / failure. * * Each step has an optional `expectAfter` clause. If it doesn't hold * after the step's primary action, replay fails at that index — the * caller (driver / verifier) records the failure on the recipe and * falls back to the LLM path. * * Replay is NOT atomic: a failure mid-recipe leaves the page in * whatever intermediate state the user's app produced. That's * intentional — undoing actions would re-execute logic the recipe is * trying to test. */ import type { Page } from "playwright"; import type { ActionRecipe, ReplayResult } from "./types.js"; import { type RecipeVars } from "./templating.js"; export interface RunRecipeOptions { /** * Variable bag for template substitution. Templated values in * recipe steps (`{{email}}` etc.) are resolved against this map * before each step executes. Throws if a referenced variable is * missing — silent fallback would let typos bypass form fills. */ vars?: RecipeVars; } export declare function runRecipe(page: Page, recipe: ActionRecipe, opts?: RunRecipeOptions): Promise; //# sourceMappingURL=replay.d.ts.map