/** * authentication-flow.skill.ts * * Detects login, sign-in, OTP, and MFA form patterns on the current page * and generates the corresponding Playwright fill/click steps. * * This skill is triggered automatically by the SkillOrchestrator when the * user's prompt contains words like "login", "sign in", "auth", or "password". * * It identifies: * - Email / username fields (by label, placeholder, or name attribute) * - Password fields (by label, placeholder, type="password") * - OTP / verification code fields * - Submit / sign-in buttons * * The confidence score is high (0.9) when at least one of email or password * fields is found, and low (0.2) when no authentication-related fields are detected. * * Role in the overall flow: * SkillOrchestrator.autoExecute() → AuthenticationFlowSkill.execute() * → selectors and code snippet included in generate_test result */ import { SkillContext, SkillResult } from '../types'; import { BaseSkill } from './base.skill'; /** * Identifies authentication-related form fields and generates the corresponding * Playwright interaction code. */ export declare class AuthenticationFlowSkill extends BaseSkill { readonly name = "authentication-flow"; /** * Scan the page for login/auth patterns and return locators and interaction code. * * @param ctx - The skill context containing the full page analysis. * @returns A SkillResult with selectors, a confidence score, and optional * metadata indicating which auth fields were found (hasEmail, hasPassword, * hasOtp, hasSubmit). */ execute(ctx: SkillContext): Promise; } //# sourceMappingURL=authentication-flow.skill.d.ts.map