@unotest/web 0.54.0 → 0.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/.claude/skills/write-e2e-test/SKILL.md +30 -7
  2. package/.claude/skills/write-e2e-test-ground/SKILL.md +6 -5
  3. package/CHANGELOG.md +160 -3
  4. package/README.md +24 -6
  5. package/dist/config/schema.d.ts +25 -19
  6. package/dist/config/schema.js +1 -1
  7. package/dist/driver/index.d.ts +8 -2
  8. package/dist/driver/index.js +1 -1
  9. package/dist/dsl/index.d.ts +29 -82
  10. package/dist/dsl/index.js +1 -1
  11. package/dist/dsl/v8/scenario-worker.js +1 -1
  12. package/dist/dsl/web-dsl-language-service.d.ts +30 -3
  13. package/dist/dsl/web-dsl-language-service.js +1 -1
  14. package/dist/inspection/page-inject.d.ts +31 -7
  15. package/dist/inspection/page-inject.js +80 -19
  16. package/dist/{interfaces-BU-PQbt4.d.ts → interfaces-BiGd3BdD.d.ts} +29 -4
  17. package/dist/{linter-BpaIstU3.d.ts → linter-DIAb0JOB.d.ts} +8 -0
  18. package/dist/mcp/server.js +1 -1
  19. package/dist/runner/cli.d.ts +1 -1
  20. package/dist/runner/cli.js +1 -1
  21. package/dist/runner/init/chrome-probe.js +1 -1
  22. package/dist/runner/init.js +1 -1
  23. package/dist/runner/install-chromium.js +1 -1
  24. package/dist/runner/prepare-fix.js +1 -1
  25. package/dist/runner/scaffold-workspace.js +1 -1
  26. package/dist/runner/serve-fixture.js +1 -1
  27. package/dist/runner/web-runner-adapter.js +1 -1
  28. package/dist/scenario-variables-B-ULUTHt.d.ts +88 -0
  29. package/examples/idioms/README.md +16 -0
  30. package/examples/idioms/animations-list.js +24 -0
  31. package/examples/idioms/api-call-timeout.js +14 -0
  32. package/examples/idioms/background-tab.js +24 -0
  33. package/examples/idioms/clipboard-paste.js +25 -0
  34. package/examples/idioms/computed-style.js +21 -0
  35. package/examples/idioms/image-size.js +20 -0
  36. package/examples/idioms/never-appears.js +20 -0
  37. package/examples/idioms/never-condition.js +24 -0
  38. package/examples/idioms/page-code-function.js +18 -0
  39. package/examples/idioms/select-by-label.js +22 -0
  40. package/examples/idioms/wait-enabled.js +21 -0
  41. package/examples/idioms/wait-for-animations.js +16 -0
  42. package/examples/idioms/wait-until-value.js +32 -0
  43. package/guides/agent-integration.md +43 -5
  44. package/guides/dsl-reference.md +589 -34
  45. package/llms.txt +26 -6
  46. package/package.json +9 -8
  47. package/types/unotest-dsl.d.ts +36 -22
  48. package/types/unotest-lib.d.ts +5 -3
@@ -125,7 +125,7 @@ type DialogPolicy = z.infer<typeof DialogPolicySchema>;
125
125
  * loads, and `lint` warns that the entry does nothing. Gone in the next
126
126
  * major. */
127
127
  declare const REMOVED_VALIDATOR_RULE_IDS: readonly ["validator:unsupported-statement", "validator:unsupported-expression", "validator:unsupported-string-member", "validator:out-of-language", "validator:library-member", "validator:implicit-declaration"];
128
- declare const LinterRuleIdSchema: z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:external-variable-no-value", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:wait-exceeds-test-budget", "lint:filter-unknown-option", "lint:role-unknown-option", "lint:typed-step-available", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:top-level-statement", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format", "validator:const-assign", "validator:teardown-shape", "validator:teardown-name-conflict", "validator:wait-until-shape", "validator:assert-never-shape", "validator:locator-index-access", "validator:chain-receiver", "validator:top-level-const", "validator:string-member-receiver", "validator:array-member-receiver", "validator:options", "validator:implicit-global", "validator:async-await", "validator:evaluate-interpolation", "validator:page-code-closure", "validator:page-code-syntax", "validator:page-code-string", "validator:template-escape-changed", "validator:unknown-member", "validator:unsupported-statement", "validator:unsupported-expression", "validator:unsupported-string-member", "validator:out-of-language", "validator:library-member", "validator:implicit-declaration"]>;
128
+ declare const LinterRuleIdSchema: z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:external-variable-no-value", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:wait-exceeds-test-budget", "lint:filter-unknown-option", "lint:role-unknown-option", "lint:typed-step-available", "lint:function-newer-than-suite", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:top-level-statement", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format", "validator:const-assign", "validator:teardown-shape", "validator:teardown-name-conflict", "validator:wait-until-shape", "validator:assert-never-shape", "validator:locator-index-access", "validator:chain-receiver", "validator:top-level-const", "validator:string-member-receiver", "validator:array-member-receiver", "validator:options", "validator:implicit-global", "validator:async-await", "validator:evaluate-interpolation", "validator:page-code-closure", "validator:page-code-syntax", "validator:page-code-string", "validator:template-escape-changed", "validator:unknown-member", "validator:unsupported-statement", "validator:unsupported-expression", "validator:unsupported-string-member", "validator:out-of-language", "validator:library-member", "validator:implicit-declaration"]>;
129
129
  type LinterRuleId = z.infer<typeof LinterRuleIdSchema>;
130
130
  declare const LinterSeveritySchema: z.ZodEnum<["off", "warn", "error"]>;
131
131
  type LinterSeverity = z.infer<typeof LinterSeveritySchema>;
@@ -134,13 +134,13 @@ type LinterSeverity = z.infer<typeof LinterSeveritySchema>;
134
134
  declare const REMOVED_RULE_SUCCESSORS: ReadonlyMap<string, LinterRuleId>;
135
135
  declare const LinterConfigSchema: z.ZodObject<{
136
136
  enabled: z.ZodBoolean;
137
- rules: z.ZodEffects<z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:external-variable-no-value", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:wait-exceeds-test-budget", "lint:filter-unknown-option", "lint:role-unknown-option", "lint:typed-step-available", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:top-level-statement", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format", "validator:const-assign", "validator:teardown-shape", "validator:teardown-name-conflict", "validator:wait-until-shape", "validator:assert-never-shape", "validator:locator-index-access", "validator:chain-receiver", "validator:top-level-const", "validator:string-member-receiver", "validator:array-member-receiver", "validator:options", "validator:implicit-global", "validator:async-await", "validator:evaluate-interpolation", "validator:page-code-closure", "validator:page-code-syntax", "validator:page-code-string", "validator:template-escape-changed", "validator:unknown-member", "validator:unsupported-statement", "validator:unsupported-expression", "validator:unsupported-string-member", "validator:out-of-language", "validator:library-member", "validator:implicit-declaration"]>, z.ZodEnum<["off", "warn", "error"]>>, Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>, Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>>;
137
+ rules: z.ZodEffects<z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:external-variable-no-value", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:wait-exceeds-test-budget", "lint:filter-unknown-option", "lint:role-unknown-option", "lint:typed-step-available", "lint:function-newer-than-suite", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:top-level-statement", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format", "validator:const-assign", "validator:teardown-shape", "validator:teardown-name-conflict", "validator:wait-until-shape", "validator:assert-never-shape", "validator:locator-index-access", "validator:chain-receiver", "validator:top-level-const", "validator:string-member-receiver", "validator:array-member-receiver", "validator:options", "validator:implicit-global", "validator:async-await", "validator:evaluate-interpolation", "validator:page-code-closure", "validator:page-code-syntax", "validator:page-code-string", "validator:template-escape-changed", "validator:unknown-member", "validator:unsupported-statement", "validator:unsupported-expression", "validator:unsupported-string-member", "validator:out-of-language", "validator:library-member", "validator:implicit-declaration"]>, z.ZodEnum<["off", "warn", "error"]>>, Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "lint:function-newer-than-suite" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>, Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "lint:function-newer-than-suite" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>>;
138
138
  }, "strict", z.ZodTypeAny, {
139
139
  enabled: boolean;
140
- rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
140
+ rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "lint:function-newer-than-suite" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
141
141
  }, {
142
142
  enabled: boolean;
143
- rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
143
+ rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "lint:function-newer-than-suite" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
144
144
  }>;
145
145
  type LinterConfig = z.infer<typeof LinterConfigSchema>;
146
146
  declare const QueueConfigSchema: z.ZodObject<{
@@ -209,13 +209,16 @@ declare const SandboxConfigSchema: z.ZodObject<{
209
209
  * masked in logs by the SecretRegistry. */
210
210
  exportSecrets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
211
211
  /** Database connection string consumed by `dbQuery` / `dbExec`. URL form
212
- * picks the dialect: `postgres://`, `mysql://`, `sqlite:`. */
213
- database: z.ZodOptional<z.ZodString>;
212
+ * picks the dialect: `postgres://`, `mysql://`, `sqlite:`. Or
213
+ * `{{NAME}}`: the value of NAME in the active environment's layer
214
+ * files, resolved when the run starts (`resolveSandbox`). */
215
+ database: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
214
216
  /** Base URL for `apiCall(method, path, body?, headers?)`. The path
215
217
  * passed to `apiCall` MUST be relative (starts with `/`); absolute
216
218
  * URLs are rejected at runtime. Additional bases come from env
217
- * variables via `apiCall(..., {base: "API_BASE_X"})`. */
218
- apiBaseUrl: z.ZodOptional<z.ZodString>;
219
+ * variables via `apiCall(..., {base: "API_BASE_X"})`. `{{NAME}}` as
220
+ * for `database`. */
221
+ apiBaseUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
219
222
  /** Root for `upload()` fixtures. Relative upload paths resolve
220
223
  * against it and may not escape it. Defaults to the project root
221
224
  * (the runner's cwd). */
@@ -642,13 +645,13 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
642
645
  }>;
643
646
  linter: z.ZodObject<{
644
647
  enabled: z.ZodBoolean;
645
- rules: z.ZodEffects<z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:external-variable-no-value", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:wait-exceeds-test-budget", "lint:filter-unknown-option", "lint:role-unknown-option", "lint:typed-step-available", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:top-level-statement", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format", "validator:const-assign", "validator:teardown-shape", "validator:teardown-name-conflict", "validator:wait-until-shape", "validator:assert-never-shape", "validator:locator-index-access", "validator:chain-receiver", "validator:top-level-const", "validator:string-member-receiver", "validator:array-member-receiver", "validator:options", "validator:implicit-global", "validator:async-await", "validator:evaluate-interpolation", "validator:page-code-closure", "validator:page-code-syntax", "validator:page-code-string", "validator:template-escape-changed", "validator:unknown-member", "validator:unsupported-statement", "validator:unsupported-expression", "validator:unsupported-string-member", "validator:out-of-language", "validator:library-member", "validator:implicit-declaration"]>, z.ZodEnum<["off", "warn", "error"]>>, Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>, Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>>;
648
+ rules: z.ZodEffects<z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:external-variable-no-value", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:wait-exceeds-test-budget", "lint:filter-unknown-option", "lint:role-unknown-option", "lint:typed-step-available", "lint:function-newer-than-suite", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:top-level-statement", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format", "validator:const-assign", "validator:teardown-shape", "validator:teardown-name-conflict", "validator:wait-until-shape", "validator:assert-never-shape", "validator:locator-index-access", "validator:chain-receiver", "validator:top-level-const", "validator:string-member-receiver", "validator:array-member-receiver", "validator:options", "validator:implicit-global", "validator:async-await", "validator:evaluate-interpolation", "validator:page-code-closure", "validator:page-code-syntax", "validator:page-code-string", "validator:template-escape-changed", "validator:unknown-member", "validator:unsupported-statement", "validator:unsupported-expression", "validator:unsupported-string-member", "validator:out-of-language", "validator:library-member", "validator:implicit-declaration"]>, z.ZodEnum<["off", "warn", "error"]>>, Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "lint:function-newer-than-suite" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>, Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "lint:function-newer-than-suite" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>>;
646
649
  }, "strict", z.ZodTypeAny, {
647
650
  enabled: boolean;
648
- rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
651
+ rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "lint:function-newer-than-suite" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
649
652
  }, {
650
653
  enabled: boolean;
651
- rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
654
+ rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "lint:function-newer-than-suite" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
652
655
  }>;
653
656
  mcp: z.ZodObject<{
654
657
  transport: z.ZodLiteral<"stdio">;
@@ -714,13 +717,16 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
714
717
  * masked in logs by the SecretRegistry. */
715
718
  exportSecrets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
716
719
  /** Database connection string consumed by `dbQuery` / `dbExec`. URL form
717
- * picks the dialect: `postgres://`, `mysql://`, `sqlite:`. */
718
- database: z.ZodOptional<z.ZodString>;
720
+ * picks the dialect: `postgres://`, `mysql://`, `sqlite:`. Or
721
+ * `{{NAME}}`: the value of NAME in the active environment's layer
722
+ * files, resolved when the run starts (`resolveSandbox`). */
723
+ database: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
719
724
  /** Base URL for `apiCall(method, path, body?, headers?)`. The path
720
725
  * passed to `apiCall` MUST be relative (starts with `/`); absolute
721
726
  * URLs are rejected at runtime. Additional bases come from env
722
- * variables via `apiCall(..., {base: "API_BASE_X"})`. */
723
- apiBaseUrl: z.ZodOptional<z.ZodString>;
727
+ * variables via `apiCall(..., {base: "API_BASE_X"})`. `{{NAME}}` as
728
+ * for `database`. */
729
+ apiBaseUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
724
730
  /** Root for `upload()` fixtures. Relative upload paths resolve
725
731
  * against it and may not escape it. Defaults to the project root
726
732
  * (the runner's cwd). */
@@ -777,7 +783,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
777
783
  defaultNavigationTimeoutMs: number;
778
784
  linter: {
779
785
  enabled: boolean;
780
- rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
786
+ rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "lint:function-newer-than-suite" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
781
787
  };
782
788
  mcp: {
783
789
  transport: "stdio";
@@ -859,7 +865,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
859
865
  defaultNavigationTimeoutMs: number;
860
866
  linter: {
861
867
  enabled: boolean;
862
- rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
868
+ rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "lint:function-newer-than-suite" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
863
869
  };
864
870
  mcp: {
865
871
  transport: "stdio";
@@ -946,7 +952,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
946
952
  defaultNavigationTimeoutMs: number;
947
953
  linter: {
948
954
  enabled: boolean;
949
- rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
955
+ rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "lint:function-newer-than-suite" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
950
956
  };
951
957
  mcp: {
952
958
  transport: "stdio";
@@ -1028,7 +1034,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
1028
1034
  defaultNavigationTimeoutMs: number;
1029
1035
  linter: {
1030
1036
  enabled: boolean;
1031
- rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
1037
+ rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "lint:function-newer-than-suite" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
1032
1038
  };
1033
1039
  mcp: {
1034
1040
  transport: "stdio";
@@ -1 +1 @@
1
- var _0x5c18ee=_0x5299;(function(_0x33ead3,_0x1b1733){var _0x4b9fdd={_0x948307:0x206,_0xd72b91:0x1d5,_0x266206:0x1d8,_0x553389:0x1d0},_0x40347b=_0x5299,_0x29baa7=_0x33ead3();while(!![]){try{var _0x59ba30=parseInt(_0x40347b(_0x4b9fdd._0x948307))/0x1+parseInt(_0x40347b(0x1ce))/0x2*(parseInt(_0x40347b(_0x4b9fdd._0xd72b91))/0x3)+-parseInt(_0x40347b(0x1e8))/0x4+-parseInt(_0x40347b(_0x4b9fdd._0x266206))/0x5+-parseInt(_0x40347b(0x23f))/0x6+parseInt(_0x40347b(0x220))/0x7*(parseInt(_0x40347b(_0x4b9fdd._0x553389))/0x8)+parseInt(_0x40347b(0x1cc))/0x9*(parseInt(_0x40347b(0x1c9))/0xa);if(_0x59ba30===_0x1b1733)break;else _0x29baa7['push'](_0x29baa7['shift']());}catch(_0x4c60e3){_0x29baa7['push'](_0x29baa7['shift']());}}}(_0x1b9d,0x639b7));var __defProp=Object[_0x5c18ee(0x1d7)],__name=(_0x3d9ab9,_0x21dd48)=>__defProp(_0x3d9ab9,_0x5c18ee(0x1bb),{'value':_0x21dd48,'configurable':!![]});import{z as _0x553f6a}from'zod';function _0x1b9d(){var _0x43b52d=['ywnJzxb0','DMfSAwrHDg9YoNrLyxjKB3DUlxnOyxbL','DMfSAwrHDg9YoMnOywLUlxjLy2vPDMvY','BgLUDdPNB3rVlwnVBMnHDa','DMfSAwrHDg9YoMfYzY1RAw5K','zNvSBa','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','BgLUDdPYB2XLlxvUA25VD24TB3b0Aw9U','B2zM','B2jQzwn0','y2HYB21LlwjLDge','BwfUDwfS','DMfSAwrHDg9YoMnVBNn0lwfZC2LNBG','zw4Tvvm','Dw5RBM93BKTLEu1LC3nHz2u','BgLUDdPLy2HVlwfZC2vYDa','mtyWnJqYmMnVyvDMyG','BgLUDdPKzwvWlwnZCW','BgLUDdPLEhrLCM5HBc12yxjPywjSzs11BMrLy2XHCMvK','Cg9ZAxrPDMu','zNvSBhnJCMvLBG','DhjHBNnMB3jT','DMfSAwrHDg9YoNrLyxjKB3DUlw5HBwuTy29UzMXPy3q','BgLUDdPVBMuTDgvZDc1WzxiTzMLSzq','AM9PBG','zMLYzwzVEa','iIdIGjqGzgLKihLVDsbTzwfUici','rgf0zvrPBwvgB3jTyxq','BwLU','BgL0zxjHBa','zM9YrwfJAa','C3rYAw5N','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','DMfSAwrHDg9YoMLMlxnOyxbL','BgvUz3rO','BMfTzq','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','BgLUDdPZy2vUyxjPBY1PBI1YB290','DMfSAwrHDg9YoMXPC3qTyxjN','wM9KsxnZDwvdB2rL','y3vZDg9T','DMfSAwrHDg9YoNbHz2uTy29Kzs1ZEw50yxG','igzYB20GDgHLignVBMzPzYWGB3iGzhjVCcb0AguGChjVzMLSzs4','yM9VBgvHBG','BgLUDdPZzxqTDgvZDc10Aw1LB3v0lw91DhnPzguTDgvZDa','BMv0D29YAW','DMfSAwrHDg9YoM91Dc1VzI1Syw5NDwfNzq','Dw5PB24','C3vWzxjszwzPBMu','mtbUDLLwzwe','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','DMfSAwrHDg9YoNzHCI1ZAgfWzq','ndKXnZa5nMjuBwPjwq','lNvUB3rLC3qVzMfPBhvYzxm','mJm1mJu2t1HTDKPf','CMvMAw5L','mJGYngfSsgjyAG','DMfSAwrHDg9YoNvUA25VD24TBwvTyMvY','DMfSAwrHDg9YoNrVCc1SzxzLBc1ZDgf0zw1LBNq','DMfSAwrHDg9YoM1LDgeTC2HHCgu','DMfSAwrHDg9YoNbHz2uTy29Kzs1ZDhjPBMC','nNrIBKPLBW','DMLLD3bVCNq','zgvMAw5LuhjVCgvYDhK','mteZmZmWnuf4CLDeuq','DMfSAwrHDg9YoNbHz2uTy29Kzs1JBg9ZDxjL','BgLUDdP4Cgf0Aa','xs51CMWG','CMvKywn0zwq','A2v5','DMfSAwrHDg9YoMfYCMf5lw1LBwjLCI1YzwnLAxzLCG','C3rKAw8','igTLzxbZihrOzsbYzwfSigjYB3DZzxiGD2LUzg93lcbHBMqGzgv2AwnLici','iIbZzxrZigL0CYbVD24GC2L6zsbHBMqGC2nHBguG4OcuigrYB3aGB25Lig9MihrOzw0U','yNjVD3nLCNm','AxnbCNjHEq','iIbZzxrZia','BwfW','y29Kzq','BgLUDdPZA2LWlw91DhnPzguTDgvZDa','mte5nZG0ngDnEeXvAG','igL0C2vSzIdIGjqGzhjVCca','zgv2AwnL','y2HYB21L','Bwf4','DhjHBNnPzw50','DMfSAwrHDg9YoMXVy2f0B3iTAw5KzxGTywnJzxnZ','y2HYB21PDw0','zgvMyxvSDevYCM9Y','D2vIA2L0','D2fYBG','y2XVC2vZDeTLEq','C3rYAwn0','DMfSAwrHDg9YoMzVCI1ZAgfWzq','C3rHBMrHBg9Uzq','BwLUAw1HBc11Aq','BNvSBgfIBgu','DMfSAwrHDg9YoNrLBxbSyxrLlwvZy2fWzs1JAgfUz2vK','ChjVzMLSzunVBMzSAwn0','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0yxrLBwvUDa','yxjYyxK','DMfSAwrHDg9YoMv2ywX1yxrLlwLUDgvYCg9SyxrPB24','Aw52ywXPzcbSB2nHBguGiG','z2v0q2fUB25Py2fStg9JywXLCW','zgvMyxvSDa','DMfSAwrHDg9YoM9WDgLVBNm','CgvYlxrLC3q','BgLUDdPYzwDLEc1PBNzHBgLK','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0CMLUzY1Tzw1Izxi','Dw5RBM93BIbRzxKGiG','mteWnJy5vu5Ivef1','Dw5VDgvZDc9LmMu','B3b0Aw9UywW','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','BgLUDdPZAgfKB3DZlwrZBc1MDw5JDgLVBG','BgLUDdPVyMz1C2nHDgvKlwnSyxnZ','ChjVzMLSzq','AgfZ','BNvSBa','DMfSAwrHDg9YoMXPyNjHCNKTBwvTyMvY','DMfSAwrHDg9YoMLTCgXPy2L0lwrLy2XHCMf0Aw9U','DMfSAwrHDg9YoMLTCgXPy2L0lwDSB2jHBa','BgLUDdP3ywL0lwv4y2vLzhmTDgvZDc1IDwrNzxq','BgLUDdPLBNyTAg9ZDc1MCM9TlwjHC2u','BgLUDdPLEhrLCM5HBc12yxjPywjSzs1UBY12ywX1zq','BgLUDdPSzwDHy3KTBgf5B3v0','A2v5CW','zw51Bq','ywrKsxnZDwu','AxnmB2nHBgu','DMfSAwrHDg9YoMfZC2vYDc1UzxzLCI1ZAgfWzq','zxjYB3i','DMfSAwrHDg9YoNn0CMLUzY1Tzw1IzxiTCMvJzwL2zxi','BgLUDdP0ExbLzc1ZDgvWlwf2ywLSywjSzq','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','DgHLBq','nJeZoxvxze1mDG','zgLZDgfUy2u','Aw50','CMvJB3jK','DMfSAwrHDg9YoNDYyxbWzwqTzM9YBwf0','D2vIu2vYDMvYwW','BNvTyMvY','DMLLD3bVCNq6ig51BgW','ChjVzMLSzsaI','BgLUDdPHCgKTy2fSBc1MAwXLlwjVzhK','BgLUDdPWyxvZzs1LEhbSAwnPDa','DxjS','DMLLD3bVCNrezxzPy2vdB25MBgLJDa','DMfSAwrHDg9YoNDHAxqTDw50AwWTC2HHCgu','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlwv4ChjLC3nPB24'];_0x1b9d=function(){return _0x43b52d;};return _0x1b9d();}import{z}from'zod';import{levenshteinDistance}from'@unotest/core';var MAX_EDITS=0x2;function closestKey(_0xd02fbc,_0x4e3ca7){var _0x587f0b={_0x5c3ab9:0x221},_0x37baab=_0x5c18ee;let _0x22158e;for(const _0x49372c of _0x4e3ca7){const _0x48c016=levenshteinDistance(_0xd02fbc['toLowerCase'](),_0x49372c['toLowerCase']());if(_0x48c016>MAX_EDITS)continue;if(_0x22158e===void 0x0||_0x48c016<_0x22158e[_0x37baab(_0x587f0b._0x5c3ab9)])_0x22158e={'key':_0x49372c,'distance':_0x48c016};}return _0x22158e?.[_0x37baab(0x1dd)];}__name(closestKey,_0x5c18ee(0x1f3));function unknownKeyMessage(_0x5cea31,_0x27b057){var _0xfa2adc={_0x6ee80e:0x1e5,_0x5c0efa:0x247},_0x28a21b={_0x350253:0x249},_0x4b5dd9=_0x5c18ee;return _0x5cea31[_0x4b5dd9(_0xfa2adc._0x6ee80e)](_0x359732=>{var _0x55f4fa=_0x4b5dd9;const _0x1551f5=closestKey(_0x359732,_0x27b057);return _0x1551f5===void 0x0?'unknown\x20key\x20\x22'+_0x359732+'\x22\x20—\x20not\x20a\x20config\x20key;\x20check\x20your\x20@unotest/web\x20version\x20if\x20it\x20comes\x20from\x20a\x20newer\x20release':_0x55f4fa(0x205)+_0x359732+_0x55f4fa(_0x28a21b._0x350253)+_0x1551f5+'\x22?';})[_0x4b5dd9(_0xfa2adc._0x5c0efa)](';\x20');}__name(unknownKeyMessage,_0x5c18ee(0x23d));function strictObject(_0xc92c77){var _0x1398b0={_0x29852c:0x216,_0xe2b0dd:0x1f4},_0x123cb1=_0x5c18ee;const _0x36e469=Object[_0x123cb1(_0x1398b0._0x29852c)](_0xc92c77);return z[_0x123cb1(0x238)](_0xc92c77,{'errorMap':__name((_0x3d8a39,_0x25eaa1)=>_0x3d8a39[_0x123cb1(0x1e6)]===z[_0x123cb1(0x1bf)]['unrecognized_keys']?{'message':unknownKeyMessage(_0x3d8a39[_0x123cb1(0x216)],_0x36e469)}:{'message':_0x25eaa1[_0x123cb1(0x1f0)]},'errorMap')})[_0x123cb1(_0x1398b0._0xe2b0dd)]();}__name(strictObject,'strictObject');import{BUNDLED_BROWSER_CHANNEL}from'@unotest/protocol';import{z as _0x23f993}from'zod';import{UnotestError}from'@unotest/core';var LaunchConfigSchema=_0x23f993[_0x5c18ee(0x238)]({'userDataDir':_0x23f993[_0x5c18ee(0x24e)]()[_0x5c18ee(0x24b)](0x1)[_0x5c18ee(0x208)](),'profile':_0x23f993[_0x5c18ee(0x24c)](_0x5c18ee(0x202))[_0x5c18ee(0x208)](),'args':_0x23f993[_0x5c18ee(0x1fc)](_0x23f993['string']()[_0x5c18ee(0x24b)](0x1))[_0x5c18ee(0x208)]()})[_0x5c18ee(0x1f4)](),PROFILES={'ios':{'browsers':[_0x5c18ee(0x1f1)],'device':'iPhone\x2015','displayMode':_0x5c18ee(0x1f6)}},PROFILE_NAMES=Object[_0x5c18ee(0x216)](PROFILES);function profileConflict(_0x5d6adc,_0x55fb3f){var _0x43aafd={_0x655ebf:0x228,_0x499b3c:0x1e4,_0x43ef9b:0x251,_0x552518:0x21f},_0x527838=_0x5c18ee;return _0x527838(_0x43aafd._0x655ebf)+_0x5d6adc+_0x527838(_0x43aafd._0x499b3c)+_0x55fb3f[_0x527838(0x1e5)](_0x3fd6e7=>'`'+_0x3fd6e7+'`')[_0x527838(0x247)]('\x20and\x20')+_0x527838(0x1e9)+(_0x55fb3f[_0x527838(_0x43aafd._0x43ef9b)]===0x1?'it':_0x527838(_0x43aafd._0x552518))+_0x527838(0x1c2);}__name(profileConflict,_0x5c18ee(0x1fa));var BrowserSchema=_0x553f6a[_0x5c18ee(0x217)]([_0x5c18ee(0x1ef),_0x5c18ee(0x248),'webkit']),SYSTEM_BROWSER_CHANNELS=[_0x5c18ee(0x1eb),'msedge',_0x5c18ee(0x239),_0x5c18ee(0x1ef)],BROWSER_CHANNEL_WORDS=[...SYSTEM_BROWSER_CHANNELS,BUNDLED_BROWSER_CHANNEL],BrowserChannelSchema=_0x553f6a[_0x5c18ee(0x1c7)]([_0x553f6a[_0x5c18ee(0x217)](SYSTEM_BROWSER_CHANNELS),_0x553f6a[_0x5c18ee(0x24c)](BUNDLED_BROWSER_CHANNEL)[_0x5c18ee(0x244)](()=>null),_0x553f6a[_0x5c18ee(0x20e)]()])[_0x5c18ee(0x208)](),DisplayModeSchema=_0x553f6a['enum'](['browser',_0x5c18ee(0x1f6),_0x5c18ee(0x1f7),_0x5c18ee(0x243)]),ViewportSchema=strictObject({'width':_0x553f6a[_0x5c18ee(0x226)]()['int']()['positive']()['optional'](),'height':_0x553f6a[_0x5c18ee(0x226)]()[_0x5c18ee(0x222)]()['positive']()['optional'](),'deviceScaleFactor':_0x553f6a[_0x5c18ee(0x226)]()['positive']()[_0x5c18ee(0x208)]()}),ConfigViewportSchema=ViewportSchema[_0x5c18ee(0x1f8)]();function viewportDeviceConflict(_0x36a33b,_0x38d7b9,_0x42193e=_0x5c18ee(0x227)){var _0x4df4b8={_0x112289:0x1e0},_0x11cd41=_0x5c18ee;if(_0x36a33b!==null||_0x38d7b9===void 0x0)return void 0x0;return _0x42193e+_0x11cd41(_0x4df4b8._0x112289)+_0x38d7b9+_0x11cd41(0x1e1);}__name(viewportDeviceConflict,_0x5c18ee(0x22c));var RetryReasonSchema=_0x553f6a[_0x5c18ee(0x217)]([_0x5c18ee(0x1ed),_0x5c18ee(0x1c5),'crash']),RetryConfigSchema=strictObject({'count':_0x553f6a[_0x5c18ee(0x226)]()[_0x5c18ee(0x222)]()[_0x5c18ee(0x24b)](0x0)[_0x5c18ee(0x1ec)](0xa),'on':_0x553f6a[_0x5c18ee(0x1fc)](RetryReasonSchema)}),FailureBundleConfigSchema=strictObject({'tier1':_0x553f6a[_0x5c18ee(0x24c)](!![])[_0x5c18ee(0x200)](!![]),'tier2':_0x553f6a[_0x5c18ee(0x1c3)](),'tier3':strictObject({'network':_0x553f6a[_0x5c18ee(0x1c3)](),'video':_0x553f6a[_0x5c18ee(0x1c3)]()}),'retention':strictObject({'runs':_0x553f6a['number']()[_0x5c18ee(0x222)]()[_0x5c18ee(0x242)](),'days':_0x553f6a['number']()[_0x5c18ee(0x222)]()['positive']()}),'storageDir':_0x553f6a[_0x5c18ee(0x24e)]()[_0x5c18ee(0x24b)](0x1),'pageHtml':_0x553f6a[_0x5c18ee(0x217)]([_0x5c18ee(0x1dc),_0x5c18ee(0x234)])}),DialogPolicySchema=_0x553f6a[_0x5c18ee(0x217)]([_0x5c18ee(0x22f),'dismiss',_0x5c18ee(0x23a)]),REMOVED_VALIDATOR_RULE_IDS=[_0x5c18ee(0x1fb),_0x5c18ee(0x22e),_0x5c18ee(0x204),_0x5c18ee(0x1c6),_0x5c18ee(0x20f),_0x5c18ee(0x210)],LinterRuleIdSchema=_0x553f6a[_0x5c18ee(0x217)]([_0x5c18ee(0x240),_0x5c18ee(0x1da),_0x5c18ee(0x20b),_0x5c18ee(0x22a),_0x5c18ee(0x209),_0x5c18ee(0x1bc),_0x5c18ee(0x1bd),'lint:mustache-in-dsl',_0x5c18ee(0x232),_0x5c18ee(0x203),_0x5c18ee(0x23e),_0x5c18ee(0x229),_0x5c18ee(0x21e),'lint:flow-returns-value',_0x5c18ee(0x215),_0x5c18ee(0x241),_0x5c18ee(0x214),_0x5c18ee(0x213),_0x5c18ee(0x246),_0x5c18ee(0x20a),_0x5c18ee(0x1e7),_0x5c18ee(0x1c4),_0x5c18ee(0x212),'lint:filter-unknown-option',_0x5c18ee(0x236),_0x5c18ee(0x21d),'validator:unknown-function','validator:arity',_0x5c18ee(0x233),_0x5c18ee(0x235),'validator:step-shape',_0x5c18ee(0x1d3),'validator:function-shape',_0x5c18ee(0x1f5),_0x5c18ee(0x250),_0x5c18ee(0x1cb),_0x5c18ee(0x1d2),_0x5c18ee(0x24f),_0x5c18ee(0x1ca),_0x5c18ee(0x1be),_0x5c18ee(0x224),_0x5c18ee(0x23b),_0x5c18ee(0x230),_0x5c18ee(0x245),_0x5c18ee(0x22d),_0x5c18ee(0x21a),_0x5c18ee(0x1ee),_0x5c18ee(0x231),'validator:top-level-const',_0x5c18ee(0x21c),_0x5c18ee(0x1de),_0x5c18ee(0x201),_0x5c18ee(0x211),'validator:async-await',_0x5c18ee(0x1fd),_0x5c18ee(0x1d9),_0x5c18ee(0x1c1),_0x5c18ee(0x1d4),_0x5c18ee(0x1f9),_0x5c18ee(0x1d1),...REMOVED_VALIDATOR_RULE_IDS]),LinterSeveritySchema=_0x553f6a[_0x5c18ee(0x217)]([_0x5c18ee(0x237),_0x5c18ee(0x1f2),_0x5c18ee(0x21b)]),SUCCESSORS=new Map([[_0x5c18ee(0x210),'validator:implicit-global'],[_0x5c18ee(0x1fb),_0x5c18ee(0x1d2)]]),REMOVED_RULE_SUCCESSORS=SUCCESSORS;function carrySuccessorLevels(_0x1cd2a3){const _0xb516b6={..._0x1cd2a3};for(const [_0x55539c,_0x2a4c18]of SUCCESSORS){const _0x111eeb=_0x1cd2a3[_0x55539c];if(_0x111eeb!==void 0x0&&_0x1cd2a3[_0x2a4c18]===void 0x0)_0xb516b6[_0x2a4c18]=_0x111eeb;}return _0xb516b6;}__name(carrySuccessorLevels,'carrySuccessorLevels');var LinterConfigSchema=strictObject({'enabled':_0x553f6a[_0x5c18ee(0x1c3)](),'rules':_0x553f6a[_0x5c18ee(0x223)](LinterRuleIdSchema,LinterSeveritySchema)[_0x5c18ee(0x244)](carrySuccessorLevels)}),QueueConfigSchema=strictObject({'enabled':_0x553f6a[_0x5c18ee(0x1c3)]()[_0x5c18ee(0x200)](!![]),'concurrency':_0x553f6a[_0x5c18ee(0x226)]()[_0x5c18ee(0x222)]()[_0x5c18ee(0x242)]()['default'](0x1)}),ScheduleSchema=strictObject({'collection':_0x553f6a['string']()[_0x5c18ee(0x24b)](0x1),'cron':_0x553f6a['string']()[_0x5c18ee(0x24b)](0x1),'env':_0x553f6a[_0x5c18ee(0x24e)]()[_0x5c18ee(0x24b)](0x1)[_0x5c18ee(0x208)](),'prepare':_0x553f6a[_0x5c18ee(0x24e)]()['min'](0x1)[_0x5c18ee(0x208)]()}),McpConfigSchema=strictObject({'transport':_0x553f6a['literal'](_0x5c18ee(0x1df))}),SandboxConfigSchema=strictObject({'shellCwd':_0x553f6a['string']()[_0x5c18ee(0x208)](),'shellTimeoutMs':_0x553f6a[_0x5c18ee(0x226)]()[_0x5c18ee(0x222)]()['positive']()[_0x5c18ee(0x208)](),'exportSecrets':_0x553f6a[_0x5c18ee(0x1fc)](_0x553f6a[_0x5c18ee(0x24e)]())['optional'](),'database':_0x553f6a[_0x5c18ee(0x24e)]()[_0x5c18ee(0x208)](),'apiBaseUrl':_0x553f6a['string']()[_0x5c18ee(0x22b)]()[_0x5c18ee(0x208)](),'uploadDir':_0x553f6a[_0x5c18ee(0x24e)]()[_0x5c18ee(0x208)](),'readRoots':_0x553f6a[_0x5c18ee(0x1fc)](_0x553f6a['string']()[_0x5c18ee(0x24b)](0x1))[_0x5c18ee(0x208)]()}),WebServerConfigSchema=strictObject({'command':_0x553f6a[_0x5c18ee(0x24e)]()[_0x5c18ee(0x24b)](0x1),'url':_0x553f6a['string']()['url'](),'reuseExistingServer':_0x553f6a[_0x5c18ee(0x1c3)]()['default'](!![]),'timeoutMs':_0x553f6a[_0x5c18ee(0x226)]()['int']()['positive']()['default'](0xea60)}),WebServersConfigSchema=_0x553f6a['union']([WebServerConfigSchema,_0x553f6a['array'](WebServerConfigSchema)['min'](0x1)])[_0x5c18ee(0x244)](_0x2c14fa=>Array[_0x5c18ee(0x1e3)](_0x2c14fa)?_0x2c14fa:[_0x2c14fa])[_0x5c18ee(0x1c8)]((_0x587f9d,_0x12496a)=>{var _0x3954cb={_0x31eb88:0x20d,_0x90d603:0x22b,_0x25589e:0x1c0,_0x38fa97:0x1db,_0xd59929:0x22b},_0xe6ef19=_0x5c18ee;const _0x52317e=new Set();_0x587f9d[_0xe6ef19(0x24d)]((_0x4a8f2e,_0x94857e)=>{var _0x24da65=_0xe6ef19;_0x52317e[_0x24da65(_0x3954cb._0x31eb88)](_0x4a8f2e[_0x24da65(_0x3954cb._0x90d603)])&&_0x12496a[_0x24da65(0x218)]({'code':_0x553f6a[_0x24da65(0x1bf)][_0x24da65(_0x3954cb._0x25589e)],'path':[_0x94857e,_0x24da65(0x22b)],'message':_0x24da65(0x225)+_0x94857e+_0x24da65(_0x3954cb._0x38fa97)+_0x4a8f2e['url']+'\x20is\x20already\x20another\x20server\x27s\x20—\x20each\x20server\x20needs\x20its\x20own\x20readiness\x20URL.'}),_0x52317e['add'](_0x4a8f2e[_0x24da65(_0x3954cb._0xd59929)]);});}),EnvConfigSchema=strictObject({'shared':_0x553f6a[_0x5c18ee(0x1fc)](_0x553f6a[_0x5c18ee(0x24e)]())[_0x5c18ee(0x200)]([])}),UnotestConfigSchema=strictObject({'baseUrl':_0x553f6a[_0x5c18ee(0x24e)]()[_0x5c18ee(0x22b)]()[_0x5c18ee(0x208)](),'webServer':WebServersConfigSchema[_0x5c18ee(0x208)](),'generate':_0x553f6a[_0x5c18ee(0x24e)]()[_0x5c18ee(0x24b)](0x1)[_0x5c18ee(0x208)](),'browsers':_0x553f6a['array'](BrowserSchema)[_0x5c18ee(0x24b)](0x1),'channel':BrowserChannelSchema,'viewport':ConfigViewportSchema[_0x5c18ee(0x208)](),'device':_0x553f6a['string']()[_0x5c18ee(0x24b)](0x1)[_0x5c18ee(0x208)](),'profile':_0x553f6a['enum'](PROFILE_NAMES)[_0x5c18ee(0x208)](),'displayMode':DisplayModeSchema['optional'](),'timezone':_0x553f6a[_0x5c18ee(0x24e)]()[_0x5c18ee(0x1cf)](isTimeZone,_0x1be7e4=>({'message':'unknown\x20time\x20zone\x20\x22'+_0x1be7e4+'\x22\x20—\x20expected\x20an\x20IANA\x20name\x20such\x20as\x20\x22Europe/Madrid\x22'}))[_0x5c18ee(0x208)](),'locale':_0x553f6a['string']()[_0x5c18ee(0x1cf)](isLocale,_0x361ad5=>({'message':_0x5c18ee(0x1fe)+_0x361ad5+'\x22\x20—\x20expected\x20a\x20BCP\x2047\x20tag\x20such\x20as\x20\x22es-ES\x22'}))[_0x5c18ee(0x208)](),'maxContexts':_0x553f6a[_0x5c18ee(0x226)]()[_0x5c18ee(0x222)]()['positive']()[_0x5c18ee(0x208)](),'launch':LaunchConfigSchema[_0x5c18ee(0x208)](),'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':_0x553f6a[_0x5c18ee(0x24e)]()[_0x5c18ee(0x208)](),'testDir':_0x553f6a[_0x5c18ee(0x24e)]()['min'](0x1),'helpersDir':_0x553f6a[_0x5c18ee(0x24e)]()[_0x5c18ee(0x24b)](0x1),'defaultTimeoutMs':_0x553f6a[_0x5c18ee(0x226)]()['int']()[_0x5c18ee(0x242)](),'defaultNavigationTimeoutMs':_0x553f6a[_0x5c18ee(0x226)]()['int']()[_0x5c18ee(0x242)](),'teardownTimeoutMs':_0x553f6a['number']()['int']()['positive']()[_0x5c18ee(0x208)](),'testTimeoutMs':_0x553f6a[_0x5c18ee(0x226)]()[_0x5c18ee(0x222)]()[_0x5c18ee(0x242)]()[_0x5c18ee(0x208)](),'env':EnvConfigSchema,'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':_0x553f6a[_0x5c18ee(0x1fc)](ScheduleSchema)[_0x5c18ee(0x200)]([]),'sandbox':SandboxConfigSchema})[_0x5c18ee(0x1c8)]((_0x3523ca,_0x3bf840)=>{var _0x2138c9={_0x36db53:0x1ea,_0x19ff36:0x20c,_0x3c9bcc:0x247,_0x1ca0a2:0x1e2,_0x345d07:0x247,_0x5ba907:0x1c0,_0x1898dd:0x20c},_0x1682d4=_0x5c18ee;const _0x3e86a3=viewportDeviceConflict(_0x3523ca[_0x1682d4(0x1d6)],_0x3523ca[_0x1682d4(_0x2138c9._0x36db53)]);_0x3e86a3!==void 0x0&&_0x3bf840[_0x1682d4(0x218)]({'code':_0x553f6a[_0x1682d4(0x1bf)][_0x1682d4(0x1c0)],'path':[_0x1682d4(0x1d6)],'message':_0x3e86a3});if(_0x3523ca[_0x1682d4(_0x2138c9._0x19ff36)]!==void 0x0){const _0x3a8eaa=PROFILES[_0x3523ca['profile']],_0x6ceec=[..._0x3523ca[_0x1682d4(0x1e2)][_0x1682d4(_0x2138c9._0x3c9bcc)]()!==_0x3a8eaa[_0x1682d4(_0x2138c9._0x1ca0a2)][_0x1682d4(_0x2138c9._0x345d07)]()?['browsers']:[],..._0x3523ca[_0x1682d4(0x1ea)]!==_0x3a8eaa[_0x1682d4(0x1ea)]?[_0x1682d4(0x1ea)]:[]];_0x6ceec[_0x1682d4(0x251)]>0x0&&_0x3bf840[_0x1682d4(0x218)]({'code':_0x553f6a['ZodIssueCode'][_0x1682d4(_0x2138c9._0x5ba907)],'path':[_0x1682d4(_0x2138c9._0x1898dd)],'message':profileConflict(_0x3523ca[_0x1682d4(0x20c)],_0x6ceec)});}});function isTimeZone(_0x45cb16){var _0x24e0b2=_0x5c18ee;try{return new Intl[(_0x24e0b2(0x24a))](_0x24e0b2(0x23c),{'timeZone':_0x45cb16}),_0x45cb16[_0x24e0b2(0x251)]>0x0;}catch{return![];}}function _0x5299(_0x37a812,_0x53e9c9){_0x37a812=_0x37a812-0x1bb;var _0x1b9dad=_0x1b9d();var _0x5299f8=_0x1b9dad[_0x37a812];if(_0x5299['ndUckk']===undefined){var _0x2cea1d=function(_0x3ac257){var _0x10450e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x553f6a='',_0x23f993='';for(var _0x3d9ab9=0x0,_0x21dd48,_0xd02fbc,_0x4e3ca7=0x0;_0xd02fbc=_0x3ac257['charAt'](_0x4e3ca7++);~_0xd02fbc&&(_0x21dd48=_0x3d9ab9%0x4?_0x21dd48*0x40+_0xd02fbc:_0xd02fbc,_0x3d9ab9++%0x4)?_0x553f6a+=String['fromCharCode'](0xff&_0x21dd48>>(-0x2*_0x3d9ab9&0x6)):0x0){_0xd02fbc=_0x10450e['indexOf'](_0xd02fbc);}for(var _0x22158e=0x0,_0x49372c=_0x553f6a['length'];_0x22158e<_0x49372c;_0x22158e++){_0x23f993+='%'+('00'+_0x553f6a['charCodeAt'](_0x22158e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x23f993);};_0x5299['SovqMJ']=_0x2cea1d,_0x5299['xhRjtV']={},_0x5299['ndUckk']=!![];}var _0x5e8c45=_0x1b9dad[0x0],_0x31c26d=_0x37a812+_0x5e8c45,_0x2dd9a9=_0x5299['xhRjtV'][_0x31c26d];return!_0x2dd9a9?(_0x5299f8=_0x5299['SovqMJ'](_0x5299f8),_0x5299['xhRjtV'][_0x31c26d]=_0x5299f8):_0x5299f8=_0x2dd9a9,_0x5299f8;}__name(isTimeZone,'isTimeZone');function isLocale(_0x1b72c4){var _0x434733=_0x5c18ee;try{return Intl[_0x434733(0x1ff)](_0x1b72c4)[_0x434733(0x251)]===0x1;}catch{return![];}}__name(isLocale,_0x5c18ee(0x219));var DEFAULT_CONFIG={'browsers':[_0x5c18ee(0x1ef)],'retry':{'count':0x0,'on':[_0x5c18ee(0x1ed)]},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x5c18ee(0x1cd),'pageHtml':_0x5c18ee(0x1dc)},'dialogPolicy':_0x5c18ee(0x22f),'testDir':_0x5c18ee(0x207),'helpersDir':'unotest/e2e/_helpers','defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0x5c18ee(0x1f2),'lint:xpath':'warn','lint:obfuscated-class':'warn','lint:pause-explicit':_0x5c18ee(0x1f2),'lint:disambig-by-index':_0x5c18ee(0x237),'lint:evaluate-discouraged':'warn','lint:scenario-in-root':_0x5c18ee(0x21b),'lint:mustache-in-dsl':'error','lint:goto-concat':_0x5c18ee(0x1f2),'lint:regex-invalid':_0x5c18ee(0x21b),'lint:echo-assert':_0x5c18ee(0x1f2),'lint:lint-ok-missing-reason':_0x5c18ee(0x1f2),'lint:flow-returns-value':'warn','lint:legacy-layout':_0x5c18ee(0x1f2),'lint:external-variable-undeclared':_0x5c18ee(0x21b),'lint:external-variable-no-value':'error','lint:env-host-from-base':_0x5c18ee(0x21b),'lint:one-test-per-file':_0x5c18ee(0x1f2),'lint:shadows-dsl-function':'warn','lint:skip-outside-test':_0x5c18ee(0x21b),'lint:set-test-timeout-outside-test':_0x5c18ee(0x21b),'lint:wait-exceeds-test-budget':'warn','lint:filter-unknown-option':'error','lint:role-unknown-option':_0x5c18ee(0x21b),'validator:unknown-function':_0x5c18ee(0x21b)}},'env':{'shared':[]},'mcp':{'transport':_0x5c18ee(0x1df)},'queue':{'enabled':!![],'concurrency':0x1},'schedules':[],'sandbox':{}};export{BROWSER_CHANNEL_WORDS,BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,DisplayModeSchema,EnvConfigSchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,QueueConfigSchema,REMOVED_RULE_SUCCESSORS,REMOVED_VALIDATOR_RULE_IDS,RetryConfigSchema,RetryReasonSchema,SYSTEM_BROWSER_CHANNELS,SandboxConfigSchema,ScheduleSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema,WebServersConfigSchema,viewportDeviceConflict};
1
+ var _0x347bcc=_0x44a3;(function(_0x4ec5d2,_0x26bfca){var _0x4e6ef6={_0x59019d:0x12c,_0x55ce06:0x147,_0x1a50de:0x115,_0x5ec975:0x12d,_0x1a01b4:0x114,_0x37a529:0x17c},_0x2ba3f0=_0x44a3,_0x33238d=_0x4ec5d2();while(!![]){try{var _0x5679f4=-parseInt(_0x2ba3f0(_0x4e6ef6._0x59019d))/0x1+parseInt(_0x2ba3f0(_0x4e6ef6._0x55ce06))/0x2+-parseInt(_0x2ba3f0(0x103))/0x3*(-parseInt(_0x2ba3f0(_0x4e6ef6._0x1a50de))/0x4)+parseInt(_0x2ba3f0(_0x4e6ef6._0x5ec975))/0x5+-parseInt(_0x2ba3f0(0x102))/0x6*(-parseInt(_0x2ba3f0(_0x4e6ef6._0x1a01b4))/0x7)+-parseInt(_0x2ba3f0(_0x4e6ef6._0x37a529))/0x8+-parseInt(_0x2ba3f0(0x143))/0x9;if(_0x5679f4===_0x26bfca)break;else _0x33238d['push'](_0x33238d['shift']());}catch(_0x369ab9){_0x33238d['push'](_0x33238d['shift']());}}}(_0x3c27,0xf118d));var __defProp=Object['defineProperty'],__name=(_0x24787b,_0x349668)=>__defProp(_0x24787b,_0x347bcc(0x126),{'value':_0x349668,'configurable':!![]});import{z as _0x55693f}from'zod';import{z}from'zod';import{levenshteinDistance}from'@unotest/core';var MAX_EDITS=0x2;function closestKey(_0x235722,_0x4f2bf1){var _0x3d28d2={_0x2db525:0x170,_0x13c06b:0x116},_0x485e88=_0x347bcc;let _0x3384d7;for(const _0x31470a of _0x4f2bf1){const _0x3e3fc1=levenshteinDistance(_0x235722[_0x485e88(_0x3d28d2._0x2db525)](),_0x31470a[_0x485e88(0x170)]());if(_0x3e3fc1>MAX_EDITS)continue;if(_0x3384d7===void 0x0||_0x3e3fc1<_0x3384d7[_0x485e88(_0x3d28d2._0x13c06b)])_0x3384d7={'key':_0x31470a,'distance':_0x3e3fc1};}return _0x3384d7?.[_0x485e88(0x10a)];}__name(closestKey,_0x347bcc(0x142));function unknownKeyMessage(_0x4f6445,_0x2ce852){var _0x5968c2={_0x4c48e2:0x113},_0x20e7e0=_0x347bcc;return _0x4f6445[_0x20e7e0(0x11c)](_0x37cd27=>{var _0x9cd467=_0x20e7e0;const _0x4daa6f=closestKey(_0x37cd27,_0x2ce852);return _0x4daa6f===void 0x0?_0x9cd467(0x113)+_0x37cd27+_0x9cd467(0x152):_0x9cd467(_0x5968c2._0x4c48e2)+_0x37cd27+_0x9cd467(0x159)+_0x4daa6f+'\x22?';})['join'](';\x20');}__name(unknownKeyMessage,_0x347bcc(0x13f));function strictObject(_0x54ed89){var _0x58fc45={_0x4c619b:0x171,_0x13d3cb:0xf4},_0xe5d45c=_0x347bcc;const _0xcc3f8d=Object[_0xe5d45c(_0x58fc45._0x4c619b)](_0x54ed89);return z[_0xe5d45c(_0x58fc45._0x13d3cb)](_0x54ed89,{'errorMap':__name((_0x2ae4be,_0x4cbe92)=>_0x2ae4be['code']===z['ZodIssueCode'][_0xe5d45c(0x10f)]?{'message':unknownKeyMessage(_0x2ae4be[_0xe5d45c(0x171)],_0xcc3f8d)}:{'message':_0x4cbe92[_0xe5d45c(0x146)]},_0xe5d45c(0x165))})[_0xe5d45c(0x164)]();}__name(strictObject,'strictObject');import{BUNDLED_BROWSER_CHANNEL}from'@unotest/protocol';import{z as _0x4d0281}from'zod';import{UnotestError}from'@unotest/core';import{ENV_FILE,SECRETS_FILE}from'@unotest/protocol';import{activeEnvName,envLayerFilesFor,secretsLayerFilesFor}from'@unotest/protocol';var LaunchConfigSchema=_0x4d0281[_0x347bcc(0xf4)]({'userDataDir':_0x4d0281[_0x347bcc(0x15b)]()[_0x347bcc(0x110)](0x1)[_0x347bcc(0x185)](),'profile':_0x4d0281['literal'](_0x347bcc(0x16b))['optional'](),'args':_0x4d0281['array'](_0x4d0281[_0x347bcc(0x15b)]()[_0x347bcc(0x110)](0x1))['optional']()})[_0x347bcc(0x164)](),PROFILES={'ios':{'browsers':[_0x347bcc(0x156)],'device':_0x347bcc(0x12f),'displayMode':_0x347bcc(0x11a)}},PROFILE_NAMES=Object[_0x347bcc(0x171)](PROFILES);function profileConflict(_0x4a7caf,_0x66ad19){var _0x1bbab0={_0x46d00c:0xef,_0x1069fc:0x167,_0x2582a6:0x10b,_0xfad68f:0x122,_0x27143a:0x15d},_0x106992=_0x347bcc;return _0x106992(0xf9)+_0x4a7caf+_0x106992(_0x1bbab0._0x46d00c)+_0x66ad19[_0x106992(0x11c)](_0x2bc2af=>'`'+_0x2bc2af+'`')[_0x106992(_0x1bbab0._0x1069fc)](_0x106992(_0x1bbab0._0x2582a6))+_0x106992(_0x1bbab0._0xfad68f)+(_0x66ad19['length']===0x1?'it':'them')+_0x106992(_0x1bbab0._0x27143a);}__name(profileConflict,_0x347bcc(0x133));function _0x44a3(_0x1881c0,_0x33e5e0){_0x1881c0=_0x1881c0-0xeb;var _0x3c27f1=_0x3c27();var _0x44a38a=_0x3c27f1[_0x1881c0];if(_0x44a3['PFHRXA']===undefined){var _0x3be5b3=function(_0x40025c){var _0x26e6e5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x55693f='',_0x4d0281='';for(var _0x24787b=0x0,_0x349668,_0x235722,_0x4f2bf1=0x0;_0x235722=_0x40025c['charAt'](_0x4f2bf1++);~_0x235722&&(_0x349668=_0x24787b%0x4?_0x349668*0x40+_0x235722:_0x235722,_0x24787b++%0x4)?_0x55693f+=String['fromCharCode'](0xff&_0x349668>>(-0x2*_0x24787b&0x6)):0x0){_0x235722=_0x26e6e5['indexOf'](_0x235722);}for(var _0x3384d7=0x0,_0x31470a=_0x55693f['length'];_0x3384d7<_0x31470a;_0x3384d7++){_0x4d0281+='%'+('00'+_0x55693f['charCodeAt'](_0x3384d7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4d0281);};_0x44a3['boaPTf']=_0x3be5b3,_0x44a3['ttrIpF']={},_0x44a3['PFHRXA']=!![];}var _0x5853d3=_0x3c27f1[0x0],_0x28991d=_0x1881c0+_0x5853d3,_0x25a7c2=_0x44a3['ttrIpF'][_0x28991d];return!_0x25a7c2?(_0x44a38a=_0x44a3['boaPTf'](_0x44a38a),_0x44a3['ttrIpF'][_0x28991d]=_0x44a38a):_0x44a38a=_0x25a7c2,_0x44a38a;}var MUSTACHE_RE=/^\{\{\s*([A-Z][A-Z0-9_]*)\s*\}\}$/,MUSTACHE_OPEN='{{';function explicitRefName(_0x223a8f){var _0x3a6be3={_0x3a081f:0x132},_0x4e8d53=_0x347bcc;const _0x471729=MUSTACHE_RE[_0x4e8d53(_0x3a6be3._0x3a081f)](_0x223a8f);return _0x471729?_0x471729[0x1]:null;}__name(explicitRefName,_0x347bcc(0x13a));function hasPartialRef(_0x42657d){var _0x15105e=_0x347bcc;return _0x42657d[_0x15105e(0x172)](MUSTACHE_OPEN)&&explicitRefName(_0x42657d)===null;}__name(hasPartialRef,'hasPartialRef');var BrowserSchema=_0x55693f[_0x347bcc(0xf1)]([_0x347bcc(0x13e),'firefox','webkit']),SYSTEM_BROWSER_CHANNELS=[_0x347bcc(0x163),_0x347bcc(0x10d),_0x347bcc(0x138),'chromium'],BROWSER_CHANNEL_WORDS=[...SYSTEM_BROWSER_CHANNELS,BUNDLED_BROWSER_CHANNEL],BrowserChannelSchema=_0x55693f[_0x347bcc(0x13c)]([_0x55693f[_0x347bcc(0xf1)](SYSTEM_BROWSER_CHANNELS),_0x55693f[_0x347bcc(0x134)](BUNDLED_BROWSER_CHANNEL)[_0x347bcc(0x155)](()=>null),_0x55693f['null']()])[_0x347bcc(0x185)](),DisplayModeSchema=_0x55693f[_0x347bcc(0xf1)]([_0x347bcc(0xfd),_0x347bcc(0x11a),_0x347bcc(0x17b),_0x347bcc(0x109)]),ViewportSchema=strictObject({'width':_0x55693f[_0x347bcc(0x16f)]()[_0x347bcc(0x140)]()['positive']()[_0x347bcc(0x185)](),'height':_0x55693f[_0x347bcc(0x16f)]()[_0x347bcc(0x140)]()[_0x347bcc(0x17e)]()[_0x347bcc(0x185)](),'deviceScaleFactor':_0x55693f[_0x347bcc(0x16f)]()[_0x347bcc(0x17e)]()[_0x347bcc(0x185)]()}),ConfigViewportSchema=ViewportSchema[_0x347bcc(0x150)]();function viewportDeviceConflict(_0x5ae8f7,_0x34fce7,_0x326e55=_0x347bcc(0x141)){var _0x23bbde={_0x454f39:0x173},_0x41a656=_0x347bcc;if(_0x5ae8f7!==null||_0x34fce7===void 0x0)return void 0x0;return _0x326e55+_0x41a656(_0x23bbde._0x454f39)+_0x34fce7+_0x41a656(0x160);}function _0x3c27(){var _0x9b753e=['B2zM','zgvMyxvSDa','BNvTyMvY','Dg9mB3DLCKnHC2u','A2v5CW','Aw5JBhvKzxm','igTLzxbZihrOzsbYzwfSigjYB3DZzxiGD2LUzg93lcbHBMqGzgv2AwnLici','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','ywrKsxnZDwu','zgLZBwLZCW','DMfSAwrHDg9YoMXPC3qTyxjN','DhjHBNnPzw50','yNjVD3nLCNm','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','BwLUAw1HBc11Aq','mJG1mZCWngDYwwnuyG','DMfSAwrHDg9YoMfZEw5Jlwf3ywL0','Cg9ZAxrPDMu','CMvKywn0zwq','yxbPqMfZzvvYBa','DMfSAwrHDg9YoNbHz2uTy29Kzs1ZDhjPBMC','C3vJy2vZCW','BgLUDdPVBMuTDgvZDc1WzxiTzMLSzq','DMfSAwrHDg9YoMzVCI1ZAgfWzq','B3b0Aw9UywW','zw4Tvvm','zgv2AwnL','iIdIGjqGzxHWzwn0zwqGyw4GsufoqsbUyw1Lihn1y2GGyxmGiKv1CM9Wzs9nywrYAwqI','BgLUDdPZA2LWlw91DhnPzguTDgvZDa','DMfSAwrHDg9YoMLTCgXPy2L0lwrLy2XHCMf0Aw9U','iIbZzxrZia','Bwf4','zw51Bq','DMfSAwrHDg9YoM9WDgLVBNm','CMvMAw5L','B2jQzwn0','DMLLD3bVCNq','D2vIu2vYDMvYwW','BgLUDdPSzwDHy3KTBgf5B3v0','AgfZ','ChjVzMLSzsaI','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlwv4ChjLC3nPB24','AxnbCNjHEq','y29UBMvJDgLVBIbZDhjPBMC','yNjVD3nLCG','C3vWzxjszwzPBMu','DMfSAwrHDg9YoMLTCgXPy2L0lwDSB2jHBa','BgLUDdPWyxvZzs1LEhbSAwnPDa','BgLUDdPLEhrLCM5HBc12yxjPywjSzs1UBY12ywX1zq','ntq3mtm0q056AfLb','m0zmAu1gyq','DMfSAwrHDg9YoNn0zxaTC2HHCgu','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','DMfSAwrHDg9YoNDYyxbWzwqTzM9YBwf0','zNvSBhnJCMvLBG','A2v5','igfUzca','AxnuAw1LwM9Uzq','BxnLzgDL','DMfSAwrHDg9YoNrLyxjKB3DUlw5HBwuTy29UzMXPy3q','Dw5YzwnVz25PEMvKx2TLExm','BwLU','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0CMLUzY1Tzw1Izxi','z2v0q2fUB25Py2fStg9JywXLCW','Dw5RBM93BIbRzxKGiG','nJnqsLLbt0q','mJqZnZK3nLrOt0XUvq','zgLZDgfUy2u','C2fUzgjVEc4','C2fUzgjVEfzHBhvLu2nOzw1H','C2fMzvbHCNnL','C3rHBMrHBg9Uzq','D2fYBG','BwfW','C3rKAw8','DMfSAwrHDg9YoNzHCI1ZAgfWzq','igLZigfSCMvHzhKGyw5VDgHLCIbZzxj2zxiNCYdIGjqGzwfJAcbZzxj2zxiGBMvLzhmGAxrZig93BIbYzwfKAw5LC3mGvvjmlG','BgLUDdPLy2HVlwfZC2vYDa','BgLUDdPHCgKTy2fSBc1MAwXLlwjVzhK','igL0C2vSzIdIGjqGzhjVCca','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0yxrLBwvUDa','CMvJB3jK','zgf0ywjHC2u','BMfTzq','y3vZDg9T','lNvUB3rLC3qVzMfPBhvYzxm','DMfSAwrHDg9YoNrLBxbSyxrLlwvZy2fWzs1JAgfUz2vK','BgLUDdPZy2vUyxjPBY1PBI1YB290','BgLUDdPMDw5JDgLVBI1UzxDLCI10AgfUlxn1AxrL','mtyZmZq0m0fMrLfMva','odGZndG0nu9orKjera','DMLLD3bVCNrezxzPy2vdB25MBgLJDa','AvbOB25Lide1','yM9VBgvHBG','DMfSAwrHDg9YoMfZC2vYDc1UzxzLCI1ZAgfWzq','zxHLyW','ChjVzMLSzunVBMzSAwn0','BgL0zxjHBa','y3jHC2G','DMfSAwrHDg9YoNrVCc1SzxzLBc1ZDgf0zw1LBNq','ywrK','y2HYB21LlwjLDge','zxjYB3i','zxHWBgLJAxrszwzoyw1L','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','Dw5PB24','DMfSAwrHDg9YoNDHAxqTDw50AwWTC2HHCgu','y2HYB21PDw0','Dw5RBM93BKTLEu1LC3nHz2u','Aw50','DMLLD3bVCNq6ig51BgW','y2XVC2vZDeTLEq','ody1mZe0ouzsrxLMta','ChjVzMLSzq','DxjS','zgvMyxvSDevYCM9Y','mtq4mZK3mKH2BwPtCW','BgLUDdP4Cgf0Aa','vvjm','DMfSAwrHDg9YoMnVBNn0lwfZC2LNBG','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','yxjYyxK','ywnJzxb0','DMfSAwrHDg9YoMfYzY1RAw5K','DMfSAwrHDg9YoNbHz2uTy29Kzs1JBg9ZDxjL','BNvSBgfIBgu','BgLUDdPTDxn0ywnOzs1PBI1KC2W','iIdIGjqGBM90igeGy29UzMLNigTLEtSGy2HLy2SGEw91CIbaDw5VDgvZDc93zwiGDMvYC2LVBIbPzIbPDcbJB21LCYbMCM9TigeGBMv3zxiGCMvSzwfZzq','BgLUDdPZAgfKB3DZlwrZBc1MDw5JDgLVBG','wM9KsxnZDwvdB2rL','DhjHBNnMB3jT','D2vIA2L0','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','zNvSBa','iIdIGjqGzgLKihLVDsbTzwfUici','DMfSAwrHDg9YoMLMlxnOyxbL','C3rYAw5N','DMfSAwrHDg9YoMXVy2f0B3iTAw5KzxGTywnJzxnZ','igzYB20GDgHLignVBMzPzYWGB3iGzhjVCcb0AguGChjVzMLSzs4','DMfSAwrHDg9YoNvUA25VD24TBwvTyMvY','rgf0zvrPBwvgB3jTyxq','iIbZzxrZigL0CYbVD24GC2L6zsbHBMqGC2nHBguG4OcuigrYB3aGB25Lig9MihrOzw0U','BgvUz3rO','BwfUDwfS','y2HYB21L','C3rYAwn0','zxjYB3jnyxa','igLUihrOzsb2yxjPywjSzsbHBMqGD3jPDguGj3T7tKfnrx19jY4','AM9PBG','DMfSAwrHDg9YoMXPyNjHCNKTBwvTyMvY','DMfSAwrHDg9YoMv2ywX1yxrLlwLUDgvYCg9SyxrPB24','BgLUDdPKzwvWlwnZCW','CgvYlxrLC3q','DMfSAwrHDg9YoNbHz2uTy29Kzs1ZEw50yxG'];_0x3c27=function(){return _0x9b753e;};return _0x3c27();}__name(viewportDeviceConflict,_0x347bcc(0x12e));var RetryReasonSchema=_0x55693f[_0x347bcc(0xf1)]([_0x347bcc(0x178),'network',_0x347bcc(0x135)]),RetryConfigSchema=strictObject({'count':_0x55693f[_0x347bcc(0x16f)]()[_0x347bcc(0x140)]()[_0x347bcc(0x110)](0x0)[_0x347bcc(0xf0)](0xa),'on':_0x55693f[_0x347bcc(0x14c)](RetryReasonSchema)}),FailureBundleConfigSchema=strictObject({'tier1':_0x55693f[_0x347bcc(0x134)](!![])[_0x347bcc(0x16e)](!![]),'tier2':_0x55693f['boolean'](),'tier3':strictObject({'network':_0x55693f[_0x347bcc(0x130)](),'video':_0x55693f['boolean']()}),'retention':strictObject({'runs':_0x55693f[_0x347bcc(0x16f)]()[_0x347bcc(0x140)]()['positive'](),'days':_0x55693f[_0x347bcc(0x16f)]()[_0x347bcc(0x140)]()[_0x347bcc(0x17e)]()}),'storageDir':_0x55693f['string']()['min'](0x1),'pageHtml':_0x55693f[_0x347bcc(0xf1)]([_0x347bcc(0x17f),_0x347bcc(0x158)])}),DialogPolicySchema=_0x55693f[_0x347bcc(0xf1)]([_0x347bcc(0x14d),_0x347bcc(0x176),_0x347bcc(0x162)]),REMOVED_VALIDATOR_RULE_IDS=[_0x347bcc(0x123),_0x347bcc(0xfa),_0x347bcc(0x111),'validator:out-of-language',_0x347bcc(0x168),_0x347bcc(0xee)],LinterRuleIdSchema=_0x55693f[_0x347bcc(0xf1)]([_0x347bcc(0x16a),_0x347bcc(0x148),'lint:obfuscated-class',_0x347bcc(0x100),_0x347bcc(0x17a),_0x347bcc(0x106),_0x347bcc(0x12a),_0x347bcc(0x151),'lint:goto-concat','lint:regex-invalid',_0x347bcc(0x120),_0x347bcc(0x121),_0x347bcc(0x13b),'lint:flow-returns-value',_0x347bcc(0xf7),'lint:external-variable-undeclared',_0x347bcc(0x101),'lint:env-host-from-base',_0x347bcc(0x183),_0x347bcc(0x153),_0x347bcc(0xed),'lint:set-test-timeout-outside-test','lint:wait-exceeds-test-budget','lint:filter-unknown-option','lint:role-unknown-option','lint:typed-step-available',_0x347bcc(0x12b),_0x347bcc(0x174),'validator:arity',_0x347bcc(0x14e),_0x347bcc(0x157),_0x347bcc(0x104),'validator:meta-shape',_0x347bcc(0x105),_0x347bcc(0x184),_0x347bcc(0x15a),_0x347bcc(0x11e),_0x347bcc(0x136),_0x347bcc(0x107),_0x347bcc(0x14b),_0x347bcc(0x177),_0x347bcc(0x108),_0x347bcc(0x14a),'validator:teardown-shape',_0x347bcc(0x10e),_0x347bcc(0x13d),_0x347bcc(0x131),_0x347bcc(0x15c),'validator:chain-receiver','validator:top-level-const','validator:string-member-receiver','validator:array-member-receiver',_0x347bcc(0xf2),_0x347bcc(0xff),_0x347bcc(0x17d),_0x347bcc(0x169),_0x347bcc(0x14f),_0x347bcc(0x16c),_0x347bcc(0x181),_0x347bcc(0x129),_0x347bcc(0x15e),...REMOVED_VALIDATOR_RULE_IDS]),LinterSeveritySchema=_0x55693f[_0x347bcc(0xf1)]([_0x347bcc(0x16d),'warn',_0x347bcc(0x139)]),SUCCESSORS=new Map([[_0x347bcc(0xee),_0x347bcc(0xff)],['validator:unsupported-statement',_0x347bcc(0x136)]]),REMOVED_RULE_SUCCESSORS=SUCCESSORS;function carrySuccessorLevels(_0x4798c3){const _0x5797c5={..._0x4798c3};for(const [_0x408e0a,_0x55abb0]of SUCCESSORS){const _0x27d71f=_0x4798c3[_0x408e0a];if(_0x27d71f!==void 0x0&&_0x4798c3[_0x55abb0]===void 0x0)_0x5797c5[_0x55abb0]=_0x27d71f;}return _0x5797c5;}__name(carrySuccessorLevels,'carrySuccessorLevels');var LinterConfigSchema=strictObject({'enabled':_0x55693f[_0x347bcc(0x130)](),'rules':_0x55693f[_0x347bcc(0x124)](LinterRuleIdSchema,LinterSeveritySchema)[_0x347bcc(0x155)](carrySuccessorLevels)}),QueueConfigSchema=strictObject({'enabled':_0x55693f[_0x347bcc(0x130)]()[_0x347bcc(0x16e)](!![]),'concurrency':_0x55693f[_0x347bcc(0x16f)]()[_0x347bcc(0x140)]()['positive']()[_0x347bcc(0x16e)](0x1)}),ScheduleSchema=strictObject({'collection':_0x55693f['string']()[_0x347bcc(0x110)](0x1),'cron':_0x55693f[_0x347bcc(0x15b)]()[_0x347bcc(0x110)](0x1),'env':_0x55693f[_0x347bcc(0x15b)]()[_0x347bcc(0x110)](0x1)[_0x347bcc(0x185)](),'prepare':_0x55693f['string']()[_0x347bcc(0x110)](0x1)[_0x347bcc(0x185)]()}),McpConfigSchema=strictObject({'transport':_0x55693f['literal'](_0x347bcc(0x11d))});function sandboxValueSchema(_0x221b92,_0x29c8ec){var _0x2cb6a7={_0x34b297:0x127,_0x50517a:0x125,_0x47364f:0x149,_0x3a0490:0x166,_0x266226:0x119,_0x435cd2:0x139,_0x3b2742:0x175},_0x244bd8=_0x347bcc;return _0x55693f[_0x244bd8(0x15b)]()[_0x244bd8(0xfe)]((_0x1bea3b,_0x14d7b7)=>{var _0x2db963=_0x244bd8;if(explicitRefName(_0x1bea3b)!==null)return;if(hasPartialRef(_0x1bea3b)){_0x14d7b7[_0x2db963(0x175)]({'code':_0x55693f[_0x2db963(0x154)][_0x2db963(_0x2cb6a7._0x34b297)],'message':_0x2db963(0x117)+_0x221b92+':\x20\x22{{NAME}}\x22\x20must\x20be\x20the\x20whole\x20value\x20—\x20put\x20the\x20complete\x20'+(_0x221b92===_0x2db963(_0x2cb6a7._0x50517a)?_0x2db963(0xfc):_0x2db963(_0x2cb6a7._0x47364f))+_0x2db963(_0x2cb6a7._0x3a0490)});return;}const _0x1783a7=_0x29c8ec[_0x2db963(_0x2cb6a7._0x266226)](_0x1bea3b);if(!_0x1783a7[_0x2db963(0x182)]){for(const _0x1b5943 of _0x1783a7[_0x2db963(_0x2cb6a7._0x435cd2)]['issues'])_0x14d7b7[_0x2db963(_0x2cb6a7._0x3b2742)]({..._0x1b5943,'path':[]});}});}__name(sandboxValueSchema,_0x347bcc(0x118));var SandboxConfigSchema=strictObject({'shellCwd':_0x55693f['string']()['optional'](),'shellTimeoutMs':_0x55693f[_0x347bcc(0x16f)]()[_0x347bcc(0x140)]()[_0x347bcc(0x17e)]()['optional'](),'exportSecrets':_0x55693f['array'](_0x55693f[_0x347bcc(0x15b)]())[_0x347bcc(0x185)](),'database':sandboxValueSchema(_0x347bcc(0x125),_0x55693f['string']())['optional'](),'apiBaseUrl':sandboxValueSchema(_0x347bcc(0x180),_0x55693f['string']()[_0x347bcc(0x145)]())['optional'](),'uploadDir':_0x55693f[_0x347bcc(0x15b)]()['optional'](),'readRoots':_0x55693f['array'](_0x55693f[_0x347bcc(0x15b)]()[_0x347bcc(0x110)](0x1))[_0x347bcc(0x185)]()}),WebServerConfigSchema=strictObject({'command':_0x55693f['string']()[_0x347bcc(0x110)](0x1),'url':_0x55693f['string']()[_0x347bcc(0x145)](),'reuseExistingServer':_0x55693f['boolean']()[_0x347bcc(0x16e)](!![]),'timeoutMs':_0x55693f[_0x347bcc(0x16f)]()['int']()[_0x347bcc(0x17e)]()['default'](0xea60)}),WebServersConfigSchema=_0x55693f['union']([WebServerConfigSchema,_0x55693f[_0x347bcc(0x14c)](WebServerConfigSchema)['min'](0x1)])[_0x347bcc(0x155)](_0x22628a=>Array[_0x347bcc(0xfb)](_0x22628a)?_0x22628a:[_0x22628a])[_0x347bcc(0xfe)]((_0x500a00,_0x469ea1)=>{var _0xd28e53={_0x337eee:0xf8,_0x2e2385:0x127,_0x5c6b1a:0x11f,_0x3c744e:0x137,_0x4596b4:0x145};const _0x4a0728=new Set();_0x500a00['forEach']((_0x4b13ed,_0x3a222b)=>{var _0x2aef8b=_0x44a3;_0x4a0728[_0x2aef8b(_0xd28e53._0x337eee)](_0x4b13ed[_0x2aef8b(0x145)])&&_0x469ea1[_0x2aef8b(0x175)]({'code':_0x55693f['ZodIssueCode'][_0x2aef8b(_0xd28e53._0x2e2385)],'path':[_0x3a222b,'url'],'message':_0x2aef8b(0xf6)+_0x3a222b+'].url\x20'+_0x4b13ed[_0x2aef8b(0x145)]+_0x2aef8b(_0xd28e53._0x5c6b1a)}),_0x4a0728[_0x2aef8b(_0xd28e53._0x3c744e)](_0x4b13ed[_0x2aef8b(_0xd28e53._0x4596b4)]);});}),EnvConfigSchema=strictObject({'shared':_0x55693f['array'](_0x55693f[_0x347bcc(0x15b)]())['default']([])}),UnotestConfigSchema=strictObject({'baseUrl':_0x55693f[_0x347bcc(0x15b)]()[_0x347bcc(0x145)]()[_0x347bcc(0x185)](),'webServer':WebServersConfigSchema['optional'](),'generate':_0x55693f[_0x347bcc(0x15b)]()[_0x347bcc(0x110)](0x1)[_0x347bcc(0x185)](),'browsers':_0x55693f[_0x347bcc(0x14c)](BrowserSchema)['min'](0x1),'channel':BrowserChannelSchema,'viewport':ConfigViewportSchema[_0x347bcc(0x185)](),'device':_0x55693f['string']()['min'](0x1)[_0x347bcc(0x185)](),'profile':_0x55693f['enum'](PROFILE_NAMES)[_0x347bcc(0x185)](),'displayMode':DisplayModeSchema[_0x347bcc(0x185)](),'timezone':_0x55693f[_0x347bcc(0x15b)]()[_0x347bcc(0xf3)](isTimeZone,_0x18f243=>({'message':'unknown\x20time\x20zone\x20\x22'+_0x18f243+_0x347bcc(0xec)}))['optional'](),'locale':_0x55693f[_0x347bcc(0x15b)]()[_0x347bcc(0xf3)](isLocale,_0x531344=>({'message':'invalid\x20locale\x20\x22'+_0x531344+'\x22\x20—\x20expected\x20a\x20BCP\x2047\x20tag\x20such\x20as\x20\x22es-ES\x22'}))[_0x347bcc(0x185)](),'maxContexts':_0x55693f[_0x347bcc(0x16f)]()[_0x347bcc(0x140)]()['positive']()['optional'](),'launch':LaunchConfigSchema[_0x347bcc(0x185)](),'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':_0x55693f[_0x347bcc(0x15b)]()[_0x347bcc(0x185)](),'testDir':_0x55693f['string']()[_0x347bcc(0x110)](0x1),'helpersDir':_0x55693f[_0x347bcc(0x15b)]()[_0x347bcc(0x110)](0x1),'defaultTimeoutMs':_0x55693f[_0x347bcc(0x16f)]()[_0x347bcc(0x140)]()['positive'](),'defaultNavigationTimeoutMs':_0x55693f['number']()[_0x347bcc(0x140)]()['positive'](),'teardownTimeoutMs':_0x55693f['number']()[_0x347bcc(0x140)]()[_0x347bcc(0x17e)]()[_0x347bcc(0x185)](),'testTimeoutMs':_0x55693f[_0x347bcc(0x16f)]()['int']()[_0x347bcc(0x17e)]()[_0x347bcc(0x185)](),'env':EnvConfigSchema,'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':_0x55693f[_0x347bcc(0x14c)](ScheduleSchema)[_0x347bcc(0x16e)]([]),'sandbox':SandboxConfigSchema})[_0x347bcc(0xfe)]((_0x4c56c,_0x576cc8)=>{var _0x223f9c={_0xabf83a:0x175,_0x400a43:0x144,_0x4d7e6c:0x179,_0x1c252c:0x167,_0x18181f:0x154},_0x11e61d=_0x347bcc;const _0x46f7cc=viewportDeviceConflict(_0x4c56c[_0x11e61d(0xf5)],_0x4c56c[_0x11e61d(0xeb)]);_0x46f7cc!==void 0x0&&_0x576cc8[_0x11e61d(_0x223f9c._0xabf83a)]({'code':_0x55693f['ZodIssueCode'][_0x11e61d(0x127)],'path':[_0x11e61d(0xf5)],'message':_0x46f7cc});if(_0x4c56c[_0x11e61d(_0x223f9c._0x400a43)]!==void 0x0){const _0x89638d=PROFILES[_0x4c56c[_0x11e61d(_0x223f9c._0x400a43)]],_0x27b3ef=[..._0x4c56c['browsers'][_0x11e61d(0x167)]()!==_0x89638d[_0x11e61d(_0x223f9c._0x4d7e6c)][_0x11e61d(_0x223f9c._0x1c252c)]()?[_0x11e61d(0x179)]:[],..._0x4c56c[_0x11e61d(0xeb)]!==_0x89638d[_0x11e61d(0xeb)]?['device']:[]];_0x27b3ef[_0x11e61d(0x161)]>0x0&&_0x576cc8[_0x11e61d(0x175)]({'code':_0x55693f[_0x11e61d(_0x223f9c._0x18181f)][_0x11e61d(0x127)],'path':[_0x11e61d(_0x223f9c._0x400a43)],'message':profileConflict(_0x4c56c[_0x11e61d(0x144)],_0x27b3ef)});}});function isTimeZone(_0x2db1c1){var _0x43f41f={_0x1d9c0e:0x186,_0x396523:0x161},_0x47da6a=_0x347bcc;try{return new Intl[(_0x47da6a(0x15f))](_0x47da6a(_0x43f41f._0x1d9c0e),{'timeZone':_0x2db1c1}),_0x2db1c1[_0x47da6a(_0x43f41f._0x396523)]>0x0;}catch{return![];}}__name(isTimeZone,_0x347bcc(0x10c));function isLocale(_0x24cebb){var _0x46b066={_0x361a7b:0x161},_0x4a431a=_0x347bcc;try{return Intl[_0x4a431a(0x112)](_0x24cebb)[_0x4a431a(_0x46b066._0x361a7b)]===0x1;}catch{return![];}}__name(isLocale,'isLocale');var DEFAULT_CONFIG={'browsers':[_0x347bcc(0x13e)],'retry':{'count':0x0,'on':[_0x347bcc(0x178)]},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x347bcc(0x128),'pageHtml':_0x347bcc(0x17f)},'dialogPolicy':_0x347bcc(0x14d),'testDir':'unotest/e2e','helpersDir':'unotest/e2e/_helpers','defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0x347bcc(0x11b),'lint:xpath':_0x347bcc(0x11b),'lint:obfuscated-class':_0x347bcc(0x11b),'lint:pause-explicit':'warn','lint:disambig-by-index':_0x347bcc(0x16d),'lint:evaluate-discouraged':'warn','lint:scenario-in-root':_0x347bcc(0x139),'lint:mustache-in-dsl':'error','lint:goto-concat':'warn','lint:regex-invalid':_0x347bcc(0x139),'lint:echo-assert':'warn','lint:lint-ok-missing-reason':_0x347bcc(0x11b),'lint:flow-returns-value':_0x347bcc(0x11b),'lint:legacy-layout':_0x347bcc(0x11b),'lint:external-variable-undeclared':'error','lint:external-variable-no-value':_0x347bcc(0x139),'lint:env-host-from-base':_0x347bcc(0x139),'lint:one-test-per-file':'warn','lint:shadows-dsl-function':_0x347bcc(0x11b),'lint:skip-outside-test':_0x347bcc(0x139),'lint:set-test-timeout-outside-test':_0x347bcc(0x139),'lint:wait-exceeds-test-budget':'warn','lint:filter-unknown-option':_0x347bcc(0x139),'lint:role-unknown-option':_0x347bcc(0x139),'validator:unknown-function':_0x347bcc(0x139)}},'env':{'shared':[]},'mcp':{'transport':'stdio'},'queue':{'enabled':!![],'concurrency':0x1},'schedules':[],'sandbox':{}};export{BROWSER_CHANNEL_WORDS,BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,DisplayModeSchema,EnvConfigSchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,QueueConfigSchema,REMOVED_RULE_SUCCESSORS,REMOVED_VALIDATOR_RULE_IDS,RetryConfigSchema,RetryReasonSchema,SYSTEM_BROWSER_CHANNELS,SandboxConfigSchema,ScheduleSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema,WebServersConfigSchema,viewportDeviceConflict};
@@ -1,5 +1,5 @@
1
- import { V as VirtualCredential, B as BoundingBox, I as ImageSize, A as AnimationInfo, E as ElementHint, S as ScreenshotOptions, L as LocatorValue, C as CaptureFrame, a as CaptureRect, P as PageConsole, b as PageNetworkEntry, N as NetworkEntry, W as WebDriver, c as LaunchOptions, d as ContextOptions, D as DriverContext, e as AttachOptions } from '../interfaces-BU-PQbt4.js';
2
- export { f as ActionTimeout, g as CheckOptions, h as ClickOptions, i as CookieOptions, j as DriverPage, F as FillOptions, G as GotoOptions, H as HoverOptions, k as NavigationOptions, l as PressOptions, R as ReloadOptions, m as SelectOptions, n as Viewport, o as ViewportSize, p as WaitOptions, q as WaitState } from '../interfaces-BU-PQbt4.js';
1
+ import { V as VirtualCredential, B as BoundingBox, I as ImageSize, A as AnimationInfo, E as ElementHint, S as ScreenshotOptions, L as LocatorValue, C as CaptureFrame, a as CaptureRect, P as PageConsole, b as PageNetworkEntry, N as NetworkEntry, W as WebDriver, c as LaunchOptions, d as ContextOptions, D as DriverContext, e as AttachOptions } from '../interfaces-BiGd3BdD.js';
2
+ export { f as ActionTimeout, g as CheckOptions, h as ClickOptions, i as CookieOptions, j as DriverPage, F as FillOptions, G as GotoOptions, H as HoverOptions, k as NavigationOptions, l as PressOptions, R as ReloadOptions, m as SelectOptions, n as Viewport, o as ViewportSize, p as WaitOptions, q as WaitState } from '../interfaces-BiGd3BdD.js';
3
3
  import '@unotest/protocol';
4
4
  import '../config/schema.js';
5
5
  import 'zod';
@@ -62,6 +62,9 @@ interface FakeBehavior {
62
62
  localStorage?: Record<string, string>;
63
63
  /** Per-name cookie seed. */
64
64
  cookies?: Record<string, string>;
65
+ /** What `documentCookie()` answers — the page's `document.cookie`.
66
+ * Default: "". */
67
+ documentCookie?: string;
65
68
  /** Per-attribute default response for getAttribute(loc, name). */
66
69
  attributesByDefault?: Record<string, string | null>;
67
70
  /** Programmable response for inspectElement(loc). Keys are
@@ -76,6 +79,9 @@ interface FakeBehavior {
76
79
  * when unspecified) for tests that exercise a format fallback. Default:
77
80
  * the literal "fake-png"; tests that read dimensions seed a real PNG header. */
78
81
  screenshotBytes?: Buffer | ((type: ScreenshotOptions["type"]) => Buffer);
82
+ /** What a page screenshot() throws instead of returning bytes — a
83
+ * capture that ran out of time, or one that failed otherwise. */
84
+ screenshotError?: unknown;
79
85
  /** What a context's close() waits on — a promise that never settles is
80
86
  * a browser that never lets the context go. Absent: closes at once. */
81
87
  contextCloseResult?: Promise<void>;