@sedum-dev/core 0.1.0-alpha.7 → 0.1.0-alpha.9

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.
@@ -343,9 +343,20 @@ var SedumPageScript = (() => {
343
343
  if (!best || distance < best.distance) best = { text: value, distance };
344
344
  }
345
345
  return best?.text ?? "";
346
- }, candidateName = function(element) {
346
+ }, hiddenControlText = function(element) {
347
+ const parts = [];
348
+ for (const node of flatTextNodes(element)) {
349
+ const parent = node.parentElement;
350
+ if (!parent || parent.closest(
351
+ "script,style,noscript,input,textarea,select,[contenteditable]"
352
+ ) || insideNestedControl(element, parent))
353
+ continue;
354
+ parts.push(node.textContent ?? "");
355
+ }
356
+ return parts.join(" ").replace(/\s+/g, " ").trim();
357
+ }, candidateName = function(element, hoverRevealed3 = false) {
347
358
  const visualOnly = ariaHiddenOnly(element);
348
- return label(element, visualOnly) || mediaName(element) || nearbyText(element) || hostLabel(element) || iconName(element) || describedText(element) || rowLabel(element);
359
+ return label(element, visualOnly) || (hoverRevealed3 ? hiddenControlText(element) : "") || mediaName(element) || nearbyText(element) || hostLabel(element) || iconName(element) || describedText(element) || rowLabel(element);
349
360
  }, hintWords = function(text) {
350
361
  return text.toLocaleLowerCase().match(/[\p{L}\p{N}]+/gu) ?? [];
351
362
  }, addsWords = function(text, name) {
@@ -513,29 +524,125 @@ var SedumPageScript = (() => {
513
524
  return controls.every(
514
525
  (control) => !interactive(control) || !publicText(control, true)
515
526
  ) && !!publicText(element, false, true);
527
+ }, selectorList = function(text) {
528
+ const selectors = [];
529
+ let start = 0;
530
+ let depth = 0;
531
+ let quote = "";
532
+ for (let index = 0; index < text.length; index++) {
533
+ const char = text[index];
534
+ if (quote) {
535
+ if (char === quote && text[index - 1] !== "\\") quote = "";
536
+ } else if (char === '"' || char === "'") quote = char;
537
+ else if (char === "(" || char === "[") depth++;
538
+ else if (char === ")" || char === "]") depth--;
539
+ else if (char === "," && depth === 0) {
540
+ selectors.push(text.slice(start, index).trim());
541
+ start = index + 1;
542
+ }
543
+ }
544
+ selectors.push(text.slice(start).trim());
545
+ return selectors.filter(Boolean);
546
+ }, specificity = function(selector) {
547
+ if (/\\|\||::|:[\w-]+\(/.test(selector)) return null;
548
+ const attributes = selector.match(/\[[^\]]*\]/g)?.length ?? 0;
549
+ const bare = selector.replace(/\[[^\]]*\]/g, " ");
550
+ const ids = bare.match(/#[\w-]+/g)?.length ?? 0;
551
+ const classes = bare.match(/\.[\w-]+/g)?.length ?? 0;
552
+ const pseudos = bare.match(/:(?!:)[\w-]+/g)?.length ?? 0;
553
+ const withoutQualifiers = bare.replace(/#[\w-]+|\.[\w-]+|:(?!:)[\w-]+/g, "").replace(/\*/g, "");
554
+ const types = withoutQualifiers.match(/(?:^|[\s>+~])([a-zA-Z][\w-]*)/g)?.length ?? 0;
555
+ return [ids, attributes + classes + pseudos, types];
556
+ }, stronger = function(a, b, property) {
557
+ const importantA = a.style.getPropertyPriority(property) === "important";
558
+ const importantB = b.style.getPropertyPriority(property) === "important";
559
+ if (importantA !== importantB) return importantA;
560
+ if (!a.specificity || !b.specificity) return false;
561
+ for (let index = 0; index < 3; index++) {
562
+ if (a.specificity[index] !== b.specificity[index])
563
+ return a.specificity[index] > b.specificity[index];
564
+ }
565
+ return a.order > b.order;
566
+ }, hoverWins = function(element, property, reveal) {
567
+ let winner = null;
568
+ for (const rule of cascadeRules) {
569
+ if (!rule.style.getPropertyValue(property)) continue;
570
+ try {
571
+ if (!element.matches(rule.match)) continue;
572
+ } catch {
573
+ return false;
574
+ }
575
+ if (!rule.specificity) return false;
576
+ if (!winner || stronger(rule, winner, property)) winner = rule;
577
+ }
578
+ return winner?.order === reveal.order && winner.selector === reveal.selector;
516
579
  }, readHoverRules = function() {
517
580
  const rules = [];
518
- const visit = (list) => {
581
+ const declarations = [];
582
+ let order = 0;
583
+ let complete = true;
584
+ const visit = (list, safe = true) => {
519
585
  for (const rule of Array.from(list)) {
520
586
  if (rule instanceof CSSStyleRule) {
521
587
  const style = rule.style;
522
- const reveals = style.visibility === "visible" || style.opacity !== "" && Number.parseFloat(style.opacity) > 0;
523
- if (!reveals || !rule.selectorText.includes(":hover")) continue;
524
- for (const selector of rule.selectorText.split(",")) {
525
- const at = selector.indexOf(":hover");
526
- if (at < 0) continue;
527
- const host = selector.slice(0, at).trim();
588
+ const display = style.display !== "" && style.display !== "none";
589
+ const visibility = style.visibility === "visible";
590
+ const opacity = style.opacity !== "" && Number.parseFloat(style.opacity) > 0;
591
+ const reveals = display || visibility || opacity;
592
+ for (const selector of selectorList(rule.selectorText)) {
528
593
  const revealed = selector.replace(/:hover/g, "").trim();
594
+ const declaration = {
595
+ selector,
596
+ match: revealed,
597
+ specificity: safe ? specificity(selector) : null,
598
+ order: ++order,
599
+ style
600
+ };
601
+ try {
602
+ document.querySelector(revealed);
603
+ } catch {
604
+ continue;
605
+ }
606
+ declarations.push(declaration);
607
+ if (!safe || !declaration.specificity || !reveals || !selector.includes(":hover"))
608
+ continue;
609
+ const at = selector.lastIndexOf(":hover");
610
+ const host = selector.slice(0, at).replace(/:hover/g, "").trim();
529
611
  if (!host || host === revealed) continue;
530
612
  try {
531
613
  document.querySelector(host);
532
- document.querySelector(revealed);
533
- rules.push({ revealed, host });
614
+ rules.push({
615
+ ...declaration,
616
+ revealed,
617
+ host,
618
+ display,
619
+ visibility,
620
+ opacity
621
+ });
534
622
  } catch {
535
623
  }
536
624
  }
625
+ } else if (rule instanceof CSSImportRule) {
626
+ try {
627
+ if (rule.styleSheet) visit(rule.styleSheet.cssRules, safe);
628
+ else complete = false;
629
+ } catch {
630
+ complete = false;
631
+ }
537
632
  } else if ("cssRules" in rule) {
538
- visit(rule.cssRules);
633
+ const name = rule.constructor.name;
634
+ if (name === "CSSMediaRule" && !matchMedia(rule.conditionText).matches)
635
+ continue;
636
+ if (name === "CSSSupportsRule" && !CSS.supports(rule.conditionText))
637
+ continue;
638
+ visit(
639
+ rule.cssRules,
640
+ safe && ![
641
+ "CSSLayerBlockRule",
642
+ "CSSScopeRule",
643
+ "CSSContainerRule"
644
+ ].includes(name)
645
+ );
539
646
  }
540
647
  }
541
648
  };
@@ -543,24 +650,55 @@ var SedumPageScript = (() => {
543
650
  try {
544
651
  visit(sheet.cssRules);
545
652
  } catch {
653
+ complete = false;
546
654
  }
547
655
  }
656
+ cascadeRules = complete ? declarations : [];
657
+ if (!complete) return [];
548
658
  return rules;
549
659
  }, hoverHost = function(element) {
550
- if (!interactive(element) || !element.getClientRects().length) return null;
660
+ if (!interactive(element)) return null;
551
661
  if (element.closest("[hidden],[inert],[aria-hidden='true']")) return null;
552
662
  hoverRules ??= readHoverRules();
663
+ const path3 = [];
553
664
  for (let node = element; node && node !== document.body; node = composedParent(node)) {
554
- const style = getComputedStyle(node);
555
- if (style.display === "none") return null;
665
+ path3.push(node);
556
666
  if (node !== element && interactive(node)) return null;
667
+ }
668
+ const plans = /* @__PURE__ */ new Map();
669
+ for (const node of path3) {
557
670
  for (const rule of hoverRules) {
558
671
  if (!node.matches(rule.revealed)) continue;
559
- const host = composedParent(node)?.closest(rule.host);
560
- if (host && visible(host)) return host;
672
+ let host = node;
673
+ while (host && !host.matches(rule.host)) host = composedParent(host);
674
+ if (!host || !visible(host)) continue;
675
+ const plan = plans.get(host) ?? {
676
+ display: /* @__PURE__ */ new Set(),
677
+ visibility: false,
678
+ opacity: false
679
+ };
680
+ if (rule.display && hoverWins(node, "display", rule))
681
+ plan.display.add(node);
682
+ plan.visibility ||= rule.visibility && hoverWins(node, "visibility", rule);
683
+ plan.opacity ||= rule.opacity && hoverWins(node, "opacity", rule);
684
+ plans.set(host, plan);
561
685
  }
562
686
  }
563
- return null;
687
+ return Array.from(plans).filter(([host, plan]) => {
688
+ for (const node of path3.slice(0, path3.indexOf(host) + 1)) {
689
+ const style = getComputedStyle(node);
690
+ if (style.contentVisibility === "hidden") return false;
691
+ if (node instanceof HTMLElement && (node.style.display === "none" || node.style.visibility === "hidden" || Number.parseFloat(node.style.opacity) === 0))
692
+ return false;
693
+ if (style.display === "none" && !plan.display.has(node))
694
+ return false;
695
+ if ((style.visibility === "hidden" || style.visibility === "collapse") && !plan.visibility)
696
+ return false;
697
+ if (Number.parseFloat(style.opacity) === 0 && !plan.opacity)
698
+ return false;
699
+ }
700
+ return true;
701
+ }).map(([host]) => host).sort((a, b) => path3.indexOf(a) - path3.indexOf(b))[0] ?? null;
564
702
  }, hoverRevealed = function(element) {
565
703
  return !visible(element) && !!hoverHost(element);
566
704
  }, landmarkOf = function(node) {
@@ -847,12 +985,13 @@ var SedumPageScript = (() => {
847
985
  }
848
986
  }
849
987
  const proxied = operation === "click" ? toggleLabel(element) : null;
850
- if (!(visible(element) || transparentToggle(element) || operation === "click" && (ariaHiddenOnly(element) || hoverRevealed(element))) || (operation === "read" ? !readable(element) : !interactive(element) && !proxied && (operation !== "click" || !pointerTarget(element))))
988
+ const shownByHover = operation === "click" && !visible(element) ? hoverHost(element) : null;
989
+ if (!(visible(element) || transparentToggle(element) || operation === "click" && (ariaHiddenOnly(element) || shownByHover)) || (operation === "read" ? !readable(element) : !interactive(element) && !proxied && (operation !== "click" || !pointerTarget(element))))
851
990
  continue;
852
991
  if (operation === "fill" && !editable(element)) continue;
853
992
  if (operation === "click" && editable(element) && !element.matches("input[type='checkbox'],input[type='radio']") && role(element) !== "combobox" && !element.readOnly)
854
993
  continue;
855
- const rawName = operation === "read" ? label(element) : candidateName(element);
994
+ const rawName = operation === "read" ? label(element) : candidateName(element, !!shownByHover);
856
995
  if (!rawName) continue;
857
996
  const name = boundedName(rawName);
858
997
  const ref = `${documentId}-${++sequence}`;
@@ -1114,7 +1253,7 @@ var SedumPageScript = (() => {
1114
1253
  if (expected && element.tagName.toLowerCase() !== expected.tag)
1115
1254
  return { actionable: false, reason: "stale" };
1116
1255
  const candidate = snapshot?.candidates.find((item) => item.ref === ref);
1117
- if (!candidate || candidateName(element) !== owned.get(element)?.rawName || JSON.stringify(peers(element, candidate.name).texts) !== JSON.stringify(candidate.peers) || expected && expected.name !== candidate.name)
1256
+ if (!candidate || candidateName(element, !!hoverHost(element)) !== owned.get(element)?.rawName || JSON.stringify(peers(element, candidate.name).texts) !== JSON.stringify(candidate.peers) || expected && expected.name !== candidate.name)
1118
1257
  return { actionable: false, reason: "stale" };
1119
1258
  const shownBy = visible(element) ? null : hoverHost(element);
1120
1259
  if (!(visible(element) || transparentToggle(element) || ariaHiddenOnly(element) || shownBy) || disabled(element))
@@ -1127,9 +1266,10 @@ var SedumPageScript = (() => {
1127
1266
  return { actionable: false, reason: "not_actionable" };
1128
1267
  }
1129
1268
  const hitTest = () => {
1130
- const rect = element.getBoundingClientRect();
1269
+ const target = shownBy && !visible(element) ? shownBy : element;
1270
+ const rect = target.getBoundingClientRect();
1131
1271
  if (!rect.width || !rect.height) return null;
1132
- const points = expected ? [[expected.point.x / rect.width, expected.point.y / rect.height]] : [
1272
+ const points = expected && target === element && !expected.hover ? [[expected.point.x / rect.width, expected.point.y / rect.height]] : [
1133
1273
  [0.5, 0.5],
1134
1274
  [0.25, 0.5],
1135
1275
  [0.75, 0.5],
@@ -1141,7 +1281,7 @@ var SedumPageScript = (() => {
1141
1281
  const y = rect.top + rect.height * fy;
1142
1282
  if (x < 0 || y < 0 || x >= innerWidth || y >= innerHeight) continue;
1143
1283
  const hit = deepElementFromPoint(x, y);
1144
- if (hit && deepContains(shownBy ?? element, hit)) {
1284
+ if (hit && deepContains(target, hit)) {
1145
1285
  return {
1146
1286
  actionable: true,
1147
1287
  aim: {
@@ -1151,7 +1291,7 @@ var SedumPageScript = (() => {
1151
1291
  revision: current.revision,
1152
1292
  tag: element.tagName.toLowerCase(),
1153
1293
  name: candidate.name,
1154
- point: { x: rect.width * fx, y: rect.height * fy },
1294
+ point: target === element ? { x: rect.width * fx, y: rect.height * fy } : { x: 0, y: 0 },
1155
1295
  ...shownBy ? { hover: true } : {},
1156
1296
  box: {
1157
1297
  x: Math.max(0, rect.left / innerWidth),
@@ -1176,8 +1316,15 @@ var SedumPageScript = (() => {
1176
1316
  if (!same(version(), current) || refElement(ref) !== element)
1177
1317
  return { actionable: false, reason: "stale" };
1178
1318
  return hitTest() ?? { actionable: false, reason: "not_actionable" };
1319
+ }, hoverElement = function(expected) {
1320
+ const current = version();
1321
+ if (!snapshot || !same(snapshot.version, current)) return null;
1322
+ const element = refElement(expected.ref);
1323
+ if (!element || element.tagName.toLowerCase() !== expected.tag || candidateName(element, true) !== owned.get(element)?.rawName)
1324
+ return null;
1325
+ return visible(element) ? null : hoverHost(element);
1179
1326
  };
1180
- observe2 = observe, composedParent2 = composedParent, allElements2 = allElements, flatTextNodes2 = flatTextNodes, deepElementFromPoint2 = deepElementFromPoint, deepContains2 = deepContains, version2 = version, same2 = same, clearRefs2 = clearRefs, visible2 = visible, modal2 = modal, excludedTextAncestor2 = excludedTextAncestor, publicText2 = publicText, insideNestedControl2 = insideNestedControl, referencedLabelText2 = referencedLabelText, label2 = label, nearbyText2 = nearbyText, mediaName2 = mediaName, hostLabel2 = hostLabel, iconName2 = iconName, describedText2 = describedText, rowLabel2 = rowLabel, candidateName2 = candidateName, hintWords2 = hintWords, addsWords2 = addsWords, siteRootLink2 = siteRootLink, nameHint2 = nameHint, countBadgeKind2 = countBadgeKind, clippedAway2 = clippedAway, ariaHiddenOnly2 = ariaHiddenOnly, isToggle2 = isToggle, transparentToggle2 = transparentToggle, toggleLabel2 = toggleLabel, pointerTarget2 = pointerTarget, readHoverRules2 = readHoverRules, hoverHost2 = hoverHost, hoverRevealed2 = hoverRevealed, landmarkOf2 = landmarkOf, landmarkRoot2 = landmarkRoot, locationOf2 = locationOf, shortText2 = shortText, containerTitle2 = containerTitle, sectionOf2 = sectionOf, boundedName2 = boundedName, role2 = role, interactive2 = interactive, readable2 = readable, editable2 = editable, disabled2 = disabled, path2 = path, inArticleBody2 = inArticleBody, itemContext2 = itemContext, peers2 = peers, scan2 = scan, collect2 = collect, selectOnly2 = selectOnly, selectedText2 = selectedText, digest2 = digest, pageText2 = pageText, refElement2 = refElement, fillElement2 = fillElement, readTarget2 = readTarget, controlState2 = controlState, aim2 = aim;
1327
+ observe2 = observe, composedParent2 = composedParent, allElements2 = allElements, flatTextNodes2 = flatTextNodes, deepElementFromPoint2 = deepElementFromPoint, deepContains2 = deepContains, version2 = version, same2 = same, clearRefs2 = clearRefs, visible2 = visible, modal2 = modal, excludedTextAncestor2 = excludedTextAncestor, publicText2 = publicText, insideNestedControl2 = insideNestedControl, referencedLabelText2 = referencedLabelText, label2 = label, nearbyText2 = nearbyText, mediaName2 = mediaName, hostLabel2 = hostLabel, iconName2 = iconName, describedText2 = describedText, rowLabel2 = rowLabel, hiddenControlText2 = hiddenControlText, candidateName2 = candidateName, hintWords2 = hintWords, addsWords2 = addsWords, siteRootLink2 = siteRootLink, nameHint2 = nameHint, countBadgeKind2 = countBadgeKind, clippedAway2 = clippedAway, ariaHiddenOnly2 = ariaHiddenOnly, isToggle2 = isToggle, transparentToggle2 = transparentToggle, toggleLabel2 = toggleLabel, pointerTarget2 = pointerTarget, selectorList2 = selectorList, specificity2 = specificity, stronger2 = stronger, hoverWins2 = hoverWins, readHoverRules2 = readHoverRules, hoverHost2 = hoverHost, hoverRevealed2 = hoverRevealed, landmarkOf2 = landmarkOf, landmarkRoot2 = landmarkRoot, locationOf2 = locationOf, shortText2 = shortText, containerTitle2 = containerTitle, sectionOf2 = sectionOf, boundedName2 = boundedName, role2 = role, interactive2 = interactive, readable2 = readable, editable2 = editable, disabled2 = disabled, path2 = path, inArticleBody2 = inArticleBody, itemContext2 = itemContext, peers2 = peers, scan2 = scan, collect2 = collect, selectOnly2 = selectOnly, selectedText2 = selectedText, digest2 = digest, pageText2 = pageText, refElement2 = refElement, fillElement2 = fillElement, readTarget2 = readTarget, controlState2 = controlState, aim2 = aim, hoverElement2 = hoverElement;
1181
1328
  const documentId = Array.from(crypto.getRandomValues(new Uint32Array(4))).map((part) => part.toString(16)).join("-");
1182
1329
  let revision = 0;
1183
1330
  let route = location.href;
@@ -1245,6 +1392,7 @@ var SedumPageScript = (() => {
1245
1392
  [/(?:^|-)pause(?:$|-)/, "pause"]
1246
1393
  ];
1247
1394
  let hoverRules;
1395
+ let cascadeRules = [];
1248
1396
  const SECTIONING = "article,aside,main,nav,section";
1249
1397
  const SECTION_TITLE_LIMIT = 60;
1250
1398
  const titleCache = /* @__PURE__ */ new Map();
@@ -1293,6 +1441,7 @@ var SedumPageScript = (() => {
1293
1441
  readTarget,
1294
1442
  controlState,
1295
1443
  checkAim: (expected) => aim(expected.ref, expected),
1444
+ hoverElement,
1296
1445
  fillElement,
1297
1446
  clearRefs,
1298
1447
  quiet: async ({ ms, timeoutMs }) => {
@@ -1341,6 +1490,7 @@ var SedumPageScript = (() => {
1341
1490
  var iconName2;
1342
1491
  var describedText2;
1343
1492
  var rowLabel2;
1493
+ var hiddenControlText2;
1344
1494
  var candidateName2;
1345
1495
  var hintWords2;
1346
1496
  var addsWords2;
@@ -1353,6 +1503,10 @@ var SedumPageScript = (() => {
1353
1503
  var transparentToggle2;
1354
1504
  var toggleLabel2;
1355
1505
  var pointerTarget2;
1506
+ var selectorList2;
1507
+ var specificity2;
1508
+ var stronger2;
1509
+ var hoverWins2;
1356
1510
  var readHoverRules2;
1357
1511
  var hoverHost2;
1358
1512
  var hoverRevealed2;
@@ -1383,4 +1537,5 @@ var SedumPageScript = (() => {
1383
1537
  var readTarget2;
1384
1538
  var controlState2;
1385
1539
  var aim2;
1540
+ var hoverElement2;
1386
1541
  })();
@@ -270,6 +270,11 @@
270
270
  "items": {
271
271
  "type": "object",
272
272
  "properties": {
273
+ "provider": {
274
+ "type": "string",
275
+ "minLength": 1,
276
+ "maxLength": 120
277
+ },
273
278
  "modality": {
274
279
  "type": "string",
275
280
  "const": "vision"
@@ -644,6 +649,44 @@
644
649
  "maxLength": 120
645
650
  }
646
651
  },
652
+ "goal": {
653
+ "type": "object",
654
+ "properties": {
655
+ "completion": {
656
+ "type": "string",
657
+ "const": "planner"
658
+ },
659
+ "text": {
660
+ "type": "string"
661
+ },
662
+ "actions": {
663
+ "type": "integer",
664
+ "minimum": 0,
665
+ "maximum": 9007199254740991
666
+ },
667
+ "requests": {
668
+ "type": "integer",
669
+ "minimum": 0,
670
+ "maximum": 9007199254740991
671
+ },
672
+ "reason": {
673
+ "type": "string"
674
+ },
675
+ "dataSeed": {
676
+ "type": "integer",
677
+ "minimum": -9007199254740991,
678
+ "maximum": 9007199254740991
679
+ }
680
+ },
681
+ "required": [
682
+ "completion",
683
+ "text",
684
+ "actions",
685
+ "requests",
686
+ "reason"
687
+ ],
688
+ "additionalProperties": false
689
+ },
647
690
  "sourceStack": {
648
691
  "minItems": 1,
649
692
  "type": "array",
@@ -1081,6 +1124,11 @@
1081
1124
  "items": {
1082
1125
  "type": "object",
1083
1126
  "properties": {
1127
+ "provider": {
1128
+ "type": "string",
1129
+ "minLength": 1,
1130
+ "maxLength": 120
1131
+ },
1084
1132
  "modality": {
1085
1133
  "type": "string",
1086
1134
  "const": "vision"
@@ -1444,6 +1492,11 @@
1444
1492
  "items": {
1445
1493
  "type": "object",
1446
1494
  "properties": {
1495
+ "provider": {
1496
+ "type": "string",
1497
+ "minLength": 1,
1498
+ "maxLength": 120
1499
+ },
1447
1500
  "modality": {
1448
1501
  "type": "string",
1449
1502
  "const": "vision"
@@ -145,6 +145,10 @@ interface Ai {
145
145
  (sentence: string, values?: AiValues): Promise<void>;
146
146
  /** Run several steps in order; they share one values object. */
147
147
  (sentences: readonly string[], values?: AiValues): Promise<void>;
148
+ /** Run a bounded goal until planner completion. Verify the outcome separately. */
149
+ goal(goal: string, values?: AiValues, options?: {
150
+ readonly generateData?: boolean;
151
+ }): Promise<void>;
148
152
  /** Name a block of steps; every step inside is reported under the name. */
149
153
  group<T>(name: string, body: () => Promise<T> | T): Promise<T>;
150
154
  group(name: string, sentences: readonly string[], values?: AiValues): Promise<void>;
@@ -1,3 +1,3 @@
1
- export { j as Ai, k as AiValue, A as AiValues, o as Parser, p as SecretValue, T as TestBody, q as TestContext, r as TestInfo, s as TestOptions, C as secret, G as test } from './script-api-B8MYTfrL.js';
1
+ export { j as Ai, k as AiValue, A as AiValues, o as Parser, p as SecretValue, T as TestBody, q as TestContext, r as TestInfo, s as TestOptions, C as secret, G as test } from './script-api-DzYBsXzT.js';
2
2
  export { expect } from 'playwright/test';
3
3
  export { BrowserContext, Locator, Page } from 'playwright-core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sedum-dev/core",
3
- "version": "0.1.0-alpha.7",
3
+ "version": "0.1.0-alpha.9",
4
4
  "repository": "https://github.com/sedum-dev/sedum",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -25,7 +25,9 @@
25
25
  "dist"
26
26
  ],
27
27
  "dependencies": {
28
+ "@faker-js/faker": "10.6.0",
28
29
  "jiti": "2.7.0",
30
+ "p-queue": "9.3.3",
29
31
  "playwright": "1.63.0",
30
32
  "playwright-core": "1.63.0",
31
33
  "sharp": "0.35.5",