@dev-blinq/bvt-playwright-js 1.0.0-dev.4.staging.69.1 → 1.0.0-dev.4.staging.79.1

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.
package/index.d.mts CHANGED
@@ -8212,11 +8212,13 @@ type CustomCodeRuntimeOptions = {
8212
8212
  readonly driver?: CustomCodeDriver;
8213
8213
  readonly policy?: CustomCodePolicy;
8214
8214
  readonly logger?: AgentLoggerInput;
8215
+ readonly pgHostBridge?: boolean;
8215
8216
  };
8216
8217
  declare class CustomCodeRuntime {
8217
8218
  private readonly driver;
8218
8219
  private readonly policy;
8219
8220
  private readonly logger?;
8221
+ private readonly pgHostBridge;
8220
8222
  constructor(options?: CustomCodeRuntimeOptions);
8221
8223
  execute(input: ExecuteCustomCodeInput): Promise<CustomCodeExecutionResult>;
8222
8224
  }
package/index.mjs CHANGED
@@ -9803,6 +9803,7 @@ const FieldKindSchema = _enum([
9803
9803
  "number",
9804
9804
  "date",
9805
9805
  "select",
9806
+ "custom-select",
9806
9807
  "multiselect",
9807
9808
  "checkbox",
9808
9809
  "radio",
@@ -9829,12 +9830,23 @@ const FillFormBatchResultEntrySchema = object({
9829
9830
  "error"
9830
9831
  ]),
9831
9832
  error: string().optional(),
9832
- actualValue: string().optional()
9833
+ actualValue: string().optional(),
9834
+ signal: object({
9835
+ filled: boolean(),
9836
+ matchesConfirmField: boolean().optional(),
9837
+ valueSatisfiesIntent: boolean().optional()
9838
+ }).strict().optional()
9833
9839
  }).strict();
9834
9840
  const FillFormBatchResultSchema = object({
9835
9841
  results: array(FillFormBatchResultEntrySchema),
9836
- domGrew: boolean()
9842
+ domGrew: boolean(),
9843
+ fieldTimingsMs: array(number().nonnegative()).optional()
9844
+ }).strict();
9845
+ const FormFieldDataTokenSchema = object({
9846
+ fieldId: string().min(1),
9847
+ value: union([string(), array(string())])
9837
9848
  }).strict();
9849
+ const FormFieldDataTokenPlanSchema = object({ tokens: array(FormFieldDataTokenSchema) }).strict();
9838
9850
 
9839
9851
  //#endregion
9840
9852
  //#region ../../core/schemas/src/ai-chat/types.ts
@@ -9885,13 +9897,31 @@ const GenerateParameterizedStepNameRequestSchema = object({
9885
9897
  scenarioId: string().min(1).optional(),
9886
9898
  projectId: string().min(1).optional()
9887
9899
  });
9900
+ const AiChatFormFieldSnapshotSchema = object({
9901
+ tag: string().min(1),
9902
+ type: string().nullable(),
9903
+ id: string().nullable(),
9904
+ name: string().nullable(),
9905
+ ariaLabel: string().nullable(),
9906
+ placeholder: string().nullable(),
9907
+ required: boolean(),
9908
+ disabled: boolean(),
9909
+ readOnly: boolean().default(false),
9910
+ label: string().nullable(),
9911
+ selector: string().nullable(),
9912
+ options: array(string()).optional(),
9913
+ formIndex: number().int().nonnegative().nullable().optional(),
9914
+ formName: string().nullable().optional()
9915
+ }).strict();
9888
9916
  const AiChatPageContextSchema = object({
9889
9917
  url: string().url(),
9890
9918
  title: string().min(1),
9891
9919
  accessibilityTree: string().min(1),
9892
9920
  visibleText: string().min(1).optional(),
9893
9921
  domSnapshot: string().min(1).optional(),
9894
- screenshotBase64: string().min(1).optional()
9922
+ screenshotBase64: string().min(1).optional(),
9923
+ formFields: array(AiChatFormFieldSnapshotSchema).optional(),
9924
+ formFieldsCapped: boolean().optional()
9895
9925
  }).strict();
9896
9926
  const ValidationComplexitySchema = _enum([
9897
9927
  "simple",
@@ -27734,7 +27764,25 @@ var DateEvaluator = class {
27734
27764
  const upperBound = rest ? parseDate(`in ${rest}`, now, { forwardDate: true }) ?? new Date(now.getTime() + 720 * 60 * 60 * 1e3) : new Date(now.getTime() + 720 * 60 * 60 * 1e3);
27735
27765
  return new Date(now.getTime() + Math.random() * (upperBound.getTime() - now.getTime()));
27736
27766
  }
27737
- return parseDate(expr, now, { forwardDate: true });
27767
+ const monthDay = this.parseMonthWithDay(expr, now);
27768
+ if (monthDay) return monthDay;
27769
+ return parseDate(this.normalizeExpression(expr), now, { forwardDate: true });
27770
+ }
27771
+ normalizeExpression(expr) {
27772
+ return expr.replace(/\b(next|last|previous|this)\s+week\s+(mon|tues?|wed(?:nes)?|thurs?|fri|sat(?:ur)?|sun)(day)?\b/gi, (_match, qualifier, weekdayStem, daySuffix) => `${weekdayStem}${daySuffix ?? ""} ${qualifier} week`);
27773
+ }
27774
+ parseMonthWithDay(expr, now) {
27775
+ const trimmed = expr.trim();
27776
+ const qualifierFirst = trimmed.match(/^(next|last|previous|this)\s+month\s+(\d{1,2})(?:st|nd|rd|th)?$/i);
27777
+ const dayFirst = trimmed.match(/^(\d{1,2})(?:st|nd|rd|th)?\s+(?:of\s+)?(next|last|previous|this)\s+month$/i);
27778
+ const match = qualifierFirst ?? dayFirst;
27779
+ if (!match) return null;
27780
+ const qualifier = (qualifierFirst ? match[1] : match[2]).toLowerCase();
27781
+ const day = parseInt(qualifierFirst ? match[2] : match[1], 10);
27782
+ const monthOffset = qualifier === "next" ? 1 : qualifier === "last" || qualifier === "previous" ? -1 : 0;
27783
+ const target = new Date(now.getFullYear(), now.getMonth() + monthOffset, day, now.getHours(), now.getMinutes(), now.getSeconds(), now.getMilliseconds());
27784
+ if (target.getDate() !== day) return null;
27785
+ return target;
27738
27786
  }
27739
27787
  formatDate(date, format) {
27740
27788
  if (format === "iso") return date.toISOString();