UNPKG

donobu

Version:

Create browser automations with an LLM agent and replay them as Playwright scripts.

42 lines 2.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CodeGenerationOptionsSchema = void 0; const v4_1 = require("zod/v4"); exports.CodeGenerationOptionsSchema = v4_1.z.object({ areElementIdsVolatile: v4_1.z.coerce.boolean().optional() .describe(`If true, ID-only selectors (e.g. '#submit-btn') are *dropped* because the element's 'id' attribute is considered volatile. When every candidate is ID-based the list is left unchanged (something is better than nothing).`), disableSelectorFailover: v4_1.z.coerce.boolean().optional() .describe(`If false, only the **first** selector (the most specific one) is used, disabling automatic fail-over to broader selectors.`), disableSelfHealingTests: v4_1.z.coerce .boolean() .optional() .describe(`Disable self-healing tests.`), disablePullRequestCreation: v4_1.z.coerce .boolean() .optional() .describe(`Disable the automatic creation of pull requests for tests that have self healed.`), runInHeadedMode: v4_1.z.coerce .boolean() .optional() .describe(`Run tests with visible browser windows instead of headless mode. Useful for debugging and demos.`), slowMotionDelay: v4_1.z.coerce .number() .min(0) .optional() .describe(`Delay in milliseconds between actions. Set to 0 to disable slow motion. Useful for debugging and demos.`), playwrightScriptVariant: v4_1.z .enum(['ai', 'classic']) .optional() .describe(`Choose whether generated tests use page.ai ('ai') or the classic tool-by-tool Playwright scripts ('classic').`), flowAnnotations: v4_1.z .record(v4_1.z.string(), v4_1.z.array(v4_1.z.object({ type: v4_1.z.string(), description: v4_1.z.string(), }))) .optional() .describe(`Optional annotations to attach to generated tests, keyed by flow ID. Each annotation is added to testInfo.annotations at runtime for reporting.`), }); //# sourceMappingURL=CodeGenerationOptions.js.map