@jackwener/browsermcp 0.0.38 → 0.0.39

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "BrowserMCP Connector",
4
- "version": "0.0.27",
4
+ "version": "0.0.28",
5
5
  "description": "Connect your logged-in Chrome to BrowserMCP agents through a local native host.",
6
6
  "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1DKzfAqudbl9AylDyPDJtv4/Uf0DsfYtNmkB42Drff0IJVZ0pRGznikRyz3gNpSSairFyg50pWtuh0EKM/QsU1VrTlHycY529ho8+xMLFO64w3OolId18F73YQ4wRFEo3ESTYLLKVPRrK23dewElkVqtl0u3a63tm6YFkxUxzlS3l6xLMFoSId135BNdVLqHUZe9s/SGE0nD44sDMoNmkJk3qw+oUg65LH+69uc80PtSsXz9uiU6Ma77t2UG42Szvm5HfEDlWfX0NMM042emU8gZ3Id77DKe4195LZs/uEolqwyL12WsUkXcXyhCF7iQ09H/Ye8I6D6SqiEklX1S8QIDAQAB",
7
7
  "permissions": [
@@ -94,8 +94,8 @@
94
94
  const el = refToEl.get(ref)?.deref();
95
95
  return el?.isConnected && el.ownerDocument === document ? el : void 0;
96
96
  }
97
- function pageError(code, message, hint) {
98
- return Object.assign(new Error(message), { code, hint });
97
+ function pageError(code, message, hint, data) {
98
+ return Object.assign(new Error(message), { code, hint, ...data && { data } });
99
99
  }
100
100
  function requireRef(ref) {
101
101
  const el = liveElement(ref);
@@ -121,7 +121,29 @@
121
121
  function ariaRefOf(el) {
122
122
  return stableRefOf(el);
123
123
  }
124
- var candidate = (el) => ({ tag: el.tagName.toLowerCase(), role: el.getAttribute("role") || "", text: text(el).slice(0, 80), ref: ariaRefOf(el), visible: is(el, "visible"), box: box(el) });
124
+ var REGION_ROLES = /* @__PURE__ */ new Set(["form", "dialog", "alertdialog", "region", "navigation", "main", "complementary", "banner", "contentinfo", "search", "group", "listitem", "row", "article", "tabpanel", "menu", "list", "table"]);
125
+ function regionOf(el) {
126
+ for (let n = el; ; ) {
127
+ const parent = n.parentElement;
128
+ if (!parent) {
129
+ const root = n.getRootNode();
130
+ if (!(root instanceof ShadowRoot)) return "page";
131
+ const host = root.host;
132
+ const label = host.getAttribute("aria-label");
133
+ return `shadow root of <${host.localName}${host.id ? `#${host.id}` : ""}>${label ? ` "${label.slice(0, 60)}"` : ""}`;
134
+ }
135
+ n = parent;
136
+ const role = roleOf(n);
137
+ const name = REGION_ROLES.has(role) ? nameOf(n).replace(/\s+/g, " ").trim().slice(0, 60) : "";
138
+ if (name || ["form", "dialog", "alertdialog", "navigation", "main", "search"].includes(role)) return `${role}${name ? ` "${name}"` : ""}`;
139
+ }
140
+ }
141
+ var candidate = (el) => ({ ref: ariaRefOf(el), role: roleOf(el), name: nameOf(el).replace(/\s+/g, " ").trim().slice(0, 80), within: regionOf(el), tag: el.tagName.toLowerCase(), text: text(el).slice(0, 80), visible: is(el, "visible"), box: box(el) });
142
+ function ambiguity(n, selector, visibleN, matches) {
143
+ const candidates = matches.slice(0, 8).map(candidate);
144
+ const list = candidates.map((c) => `[ref=${c.ref}] ${c.role || c.tag}${c.name ? ` "${c.name}"` : ""} in ${c.within}${c.visible ? "" : " (hidden)"}`).join("; ");
145
+ return { code: "selector_ambiguous", message: `${n} elements match ${selector}${visibleN ? ` (${visibleN} visible)` : ""}: ${list}${n > 8 ? `; \u2026${n - 8} more` : ""}`, hint: "Act on one of these refs, or scope the locator with within (a container ref or selector).", candidates };
146
+ }
125
147
  var actionElement = null;
126
148
  function actionTarget() {
127
149
  const el = actionElement;
@@ -148,7 +170,7 @@
148
170
  if (matches.length > 1 && strict) {
149
171
  const visible = matches.filter((m) => is(m, "visible"));
150
172
  if (visible.length === 1) el = visible[0];
151
- else return { error: { code: "selector_ambiguous", message: `${matches.length} elements match ${selector}${visible.length ? ` (${visible.length} visible)` : ""}`, hint: "Add nth, use a more specific locator, or act on a ref/selector from find.", candidates: matches.slice(0, 8).map(candidate) }, retry: false };
173
+ else return { error: ambiguity(matches.length, selector, visible.length, visible.length > 1 ? visible : matches), retry: false };
152
174
  }
153
175
  for (const st of states) {
154
176
  const r = stateOf(el, st);
@@ -306,27 +328,118 @@
306
328
  const el = actEl();
307
329
  return el instanceof HTMLInputElement ? el.files?.length ?? 0 : 0;
308
330
  }
309
- function settle(args) {
310
- return new Promise((resolveP) => {
311
- const t0 = performance.now();
312
- let timer;
313
- const finish = (quiet) => {
314
- obs.disconnect();
315
- clearTimeout(cap);
316
- resolveP({ waitedMs: Math.round(performance.now() - t0), quiet });
317
- };
318
- const arm = () => {
319
- clearTimeout(timer);
320
- timer = setTimeout(() => finish(true), args.quietMs);
321
- };
322
- const obs = new MutationObserver(arm);
323
- obs.observe(document.documentElement, { childList: true, subtree: true, attributes: true, characterData: true });
324
- const cap = setTimeout(() => {
325
- clearTimeout(timer);
326
- finish(false);
327
- }, args.maxMs);
328
- arm();
329
- });
331
+ var nativeShadowRoot = Object.getOwnPropertyDescriptor(Element.prototype, "shadowRoot").get;
332
+ var adoptedRoots = /* @__PURE__ */ new WeakMap();
333
+ Object.defineProperty(Element.prototype, "shadowRoot", {
334
+ configurable: true,
335
+ enumerable: true,
336
+ get() {
337
+ return nativeShadowRoot.call(this) ?? adoptedRoots.get(this) ?? null;
338
+ }
339
+ });
340
+ var SHADOW_HOST_TAGS = /* @__PURE__ */ new Set(["ARTICLE", "ASIDE", "BLOCKQUOTE", "BODY", "DIV", "FOOTER", "H1", "H2", "H3", "H4", "H5", "H6", "HEADER", "MAIN", "NAV", "P", "SECTION", "SPAN"]);
341
+ var shadowChecked = /* @__PURE__ */ new WeakSet();
342
+ var MAX_SHADOW_CANDIDATES = 40;
343
+ function closedShadowCandidates() {
344
+ const out = [];
345
+ const visit = (root) => {
346
+ const walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT);
347
+ for (let n = walker.nextNode(); n && out.length < MAX_SHADOW_CANDIDATES; n = walker.nextNode()) {
348
+ const shadow = n.shadowRoot;
349
+ if (shadow) {
350
+ visit(shadow);
351
+ continue;
352
+ }
353
+ if (shadowChecked.has(n)) continue;
354
+ const custom = n.localName.includes("-");
355
+ if (custom) {
356
+ if (!n.matches(":defined")) continue;
357
+ } else if (!SHADOW_HOST_TAGS.has(n.tagName) || n.childElementCount || (n.textContent ?? "").trim()) continue;
358
+ else {
359
+ const r = n.getBoundingClientRect();
360
+ if (!r.width || !r.height) continue;
361
+ }
362
+ shadowChecked.add(n);
363
+ out.push(n);
364
+ }
365
+ };
366
+ visit(document);
367
+ return out;
368
+ }
369
+ function adoptShadowRoot(root) {
370
+ if (!(root instanceof ShadowRoot) || !root.host || nativeShadowRoot.call(root.host)) return false;
371
+ adoptedRoots.set(root.host, root);
372
+ watchDocument(root, true);
373
+ return true;
374
+ }
375
+ var OWN_LAYERS = /* @__PURE__ */ new Set(["browsermcp-overlay-root", "browsermcp-annotate"]);
376
+ var STYLE_REPEAT_MS = 200;
377
+ var activityState = { n: 0, last: performance.now(), installed: performance.now() };
378
+ var watchedDocuments = /* @__PURE__ */ new WeakSet();
379
+ var styledAt = /* @__PURE__ */ new WeakMap();
380
+ var ownLayer = (node) => node instanceof Element && OWN_LAYERS.has(node.id);
381
+ function bump(at) {
382
+ activityState.n++;
383
+ activityState.last = at;
384
+ }
385
+ function watchDocument(doc, counted) {
386
+ if (watchedDocuments.has(doc)) return;
387
+ watchedDocuments.add(doc);
388
+ if (counted) bump(performance.now());
389
+ new MutationObserver((records) => {
390
+ const now = performance.now();
391
+ let real = false;
392
+ for (const r of records) {
393
+ if (ownLayer(r.target) || [...r.addedNodes, ...r.removedNodes].some(ownLayer)) continue;
394
+ if (r.type === "attributes") {
395
+ const target2 = r.target;
396
+ if (r.oldValue === target2.getAttributeNS(r.attributeNamespace, r.attributeName)) continue;
397
+ if (r.attributeName === "style") {
398
+ const previous = styledAt.get(target2);
399
+ styledAt.set(target2, now);
400
+ if (previous === void 0 ? now - activityState.installed < STYLE_REPEAT_MS : now - previous <= STYLE_REPEAT_MS) continue;
401
+ }
402
+ }
403
+ real = true;
404
+ }
405
+ if (real) bump(now);
406
+ }).observe(doc, { subtree: true, childList: true, attributes: true, attributeOldValue: true, characterData: true });
407
+ for (const type of doc instanceof Document ? ["input", "change", "scroll"] : ["scroll"]) doc.addEventListener(type, () => bump(performance.now()), true);
408
+ }
409
+ function watchShadowRoots(root, counted) {
410
+ const walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT);
411
+ for (let n = walker.nextNode(); n; n = walker.nextNode()) {
412
+ const shadow = n.shadowRoot;
413
+ if (!shadow) continue;
414
+ watchDocument(shadow, counted);
415
+ watchShadowRoots(shadow, counted);
416
+ }
417
+ }
418
+ function watchFrames(doc, counted) {
419
+ for (const frame of doc.querySelectorAll("iframe,frame")) {
420
+ let child = null;
421
+ try {
422
+ child = frame.contentDocument;
423
+ } catch {
424
+ child = null;
425
+ }
426
+ if (!child) continue;
427
+ watchDocument(child, counted);
428
+ watchFrames(child, counted);
429
+ }
430
+ }
431
+ watchDocument(document, false);
432
+ watchFrames(document, false);
433
+ function contentProbe() {
434
+ const text2 = (document.body?.innerText ?? "").replace(/\s+/g, " ").trim();
435
+ return { href: location.href, ready: document.readyState, chars: text2.length, head: text2.slice(0, 200) };
436
+ }
437
+ var documentId = () => String(performance.timeOrigin);
438
+ function activity(args = {}) {
439
+ watchFrames(document, true);
440
+ if (args.scan) watchShadowRoots(document, false);
441
+ const now = performance.now();
442
+ return { n: activityState.n, idleMs: Math.round(now - activityState.last), ready: document.readyState, url: location.href, doc: documentId() };
330
443
  }
331
444
  var probedFrame = null;
332
445
  function frameElement() {
@@ -384,7 +497,7 @@
384
497
  if (matches.length > 1) {
385
498
  const visible = matches.filter((m) => is(m, "visible"));
386
499
  if (visible.length === 1) el = visible[0];
387
- else return { error: { code: "selector_ambiguous", message: `${matches.length} elements match ${args.selector}${visible.length ? ` (${visible.length} visible)` : ""}`, hint: "Add nth, use a more specific locator, or act on a ref/selector from find.", candidates: matches.slice(0, 8).map(candidate) }, retry: false };
500
+ else return { error: ambiguity(matches.length, args.selector, visible.length, visible.length > 1 ? visible : matches), retry: false };
388
501
  }
389
502
  const enabled = stateOf(el, "enabled");
390
503
  if (!enabled.matches) return { error: { code: "not_enabled", message: `element is not enabled${enabled.received.startsWith("error:") ? ` (${enabled.received.slice(6)})` : ""}`, candidates: [candidate(el)] }, retry: true };
@@ -441,7 +554,15 @@
441
554
  }
442
555
  return best;
443
556
  }
557
+ function inClosedDetails(node) {
558
+ let child = node;
559
+ for (let parent = node.parentNode; parent; child = parent, parent = parent.parentNode ?? parent.host ?? null) {
560
+ if (parent instanceof HTMLDetailsElement && !parent.open && child.nodeName !== "SUMMARY") return true;
561
+ }
562
+ return false;
563
+ }
444
564
  function skipRead(el, visible) {
565
+ if (el && inClosedDetails(el)) return true;
445
566
  while (el) {
446
567
  const tag = el.tagName;
447
568
  if (tag === "SCRIPT" || tag === "STYLE" || tag === "NOSCRIPT") return true;
@@ -451,7 +572,7 @@
451
572
  if (cached === false) return true;
452
573
  if (cached === void 0) {
453
574
  const style = getComputedStyle(el);
454
- const shown = style.display !== "none" && style.visibility !== "hidden" && style.visibility !== "collapse";
575
+ const shown = style.display !== "none" && style.visibility !== "hidden" && style.visibility !== "collapse" && style.opacity !== "0";
455
576
  visible.set(el, shown);
456
577
  if (!shown) return true;
457
578
  }
@@ -459,12 +580,41 @@
459
580
  }
460
581
  return false;
461
582
  }
583
+ function shownText(root) {
584
+ if (skipRead(root, /* @__PURE__ */ new WeakMap())) return "";
585
+ const parts = [];
586
+ const visit = (node, textShown) => {
587
+ for (const n of node.childNodes) {
588
+ if (node instanceof HTMLDetailsElement && !node.open && n.nodeName !== "SUMMARY") continue;
589
+ if (n.nodeType === Node.TEXT_NODE) {
590
+ if (textShown) parts.push(n.textContent ?? "");
591
+ continue;
592
+ }
593
+ if (!(n instanceof Element) || /^(SCRIPT|STYLE|NOSCRIPT|TEMPLATE)$/.test(n.tagName) || n.id === "browsermcp-annotate" || n.hasAttribute("hidden")) continue;
594
+ const style = getComputedStyle(n);
595
+ if (style.display === "none" || style.opacity === "0") continue;
596
+ const shown = style.visibility !== "hidden" && style.visibility !== "collapse";
597
+ const block = n.tagName === "BR" || style.display !== "inline" && style.display !== "contents";
598
+ if (block) parts.push(" ");
599
+ visit(n, shown);
600
+ if (n.shadowRoot) visit(n.shadowRoot, shown);
601
+ if (block) parts.push(" ");
602
+ }
603
+ };
604
+ visit(root, true);
605
+ if (root.shadowRoot) visit(root.shadowRoot, true);
606
+ return parts.join("").replace(/\s+/g, " ").trim();
607
+ }
608
+ function shownElement(el) {
609
+ return is(el, "visible") && !skipRead(el, /* @__PURE__ */ new WeakMap());
610
+ }
462
611
  function pageLines() {
463
612
  const out = [];
464
613
  if (!document.body) return out;
465
614
  const visible = /* @__PURE__ */ new WeakMap();
466
615
  const visit = (root) => {
467
616
  for (const n of root.childNodes) {
617
+ if (root instanceof HTMLDetailsElement && !root.open && n.nodeName !== "SUMMARY") continue;
468
618
  if (n.nodeType === Node.TEXT_NODE) {
469
619
  const parent = n.parentElement ?? n.getRootNode().host;
470
620
  if (!skipRead(parent, visible)) {
@@ -575,11 +725,50 @@
575
725
  if (!matches.length) throw pageError("not_found", `No element matches ${args.selector}`, "Observe the page or find the container again.");
576
726
  if (matches.length > 1) {
577
727
  const visible = matches.filter((el) => is(el, "visible"));
578
- if (visible.length !== 1) throw pageError("selector_ambiguous", `${matches.length} elements match ${args.selector}`, "Use a more specific locator.");
728
+ if (visible.length !== 1) {
729
+ const a = ambiguity(matches.length, args.selector, visible.length, visible.length > 1 ? visible : matches);
730
+ throw pageError(a.code, a.message, a.hint, { candidates: a.candidates });
731
+ }
579
732
  matches = visible;
580
733
  }
581
734
  return matches[0];
582
735
  }
736
+ var SLOT_TAGS = /* @__PURE__ */ new Set(["P", "SPAN", "DIV", "DD", "TD", "EM", "STRONG", "B", "SMALL", "LABEL", "TIME", "DATA", "OUTPUT"]);
737
+ function isEmptySlot(el) {
738
+ if (!SLOT_TAGS.has(el.tagName) || el.children.length || (el.textContent ?? "").trim()) return false;
739
+ const box2 = el.getBoundingClientRect();
740
+ return !(box2.width > 0 && box2.height > 0);
741
+ }
742
+ function namingTokens(el) {
743
+ const tokens = [...el.classList].filter((t) => t.length <= 32 && /^[a-z][a-z0-9]*(?:[-_]{1,2}[a-z0-9]+)*$/i.test(t) && !/\d{3}|^(?:css|sc|jsx|svelte|emotion)-/i.test(t));
744
+ return el.id && !/\d{3}/.test(el.id) ? [`#${el.id}`, ...tokens] : tokens;
745
+ }
746
+ var SELECTED_TOKEN = /^(?:.*[-_])?(?:cur|current|active|actived|selected|checked|on)$/i;
747
+ function stateHints(el, empty) {
748
+ let out = "";
749
+ if (empty) {
750
+ const names = namingTokens(el);
751
+ out += names.length ? ` [empty ${names[0].startsWith("#") ? `id="${names[0].slice(1)}"` : `class="${names.slice(0, 2).join(" ")}"`}]` : " [empty]";
752
+ }
753
+ const details = el.tagName === "SUMMARY" && el.parentElement instanceof HTMLDetailsElement ? el.parentElement : null;
754
+ if (details && !el.hasAttribute("aria-expanded")) out += details.open ? " [expanded]" : " [collapsed]";
755
+ const current = el.getAttribute("aria-current");
756
+ if (current && current !== "false") out += current === "true" ? " [current]" : ` [current=${current}]`;
757
+ else if (!["aria-selected", "aria-pressed", "aria-checked"].some((a) => el.hasAttribute(a)) && !(el instanceof HTMLInputElement)) {
758
+ const token = selectionToken(el);
759
+ if (token) out += ` [selected? class="${token}"]`;
760
+ }
761
+ return out;
762
+ }
763
+ function selectionToken(el) {
764
+ const parent = el.parentElement;
765
+ if (!parent) return null;
766
+ const siblings = [...parent.children].filter((s) => s.tagName === el.tagName);
767
+ if (siblings.length < 2 || siblings.length > 50) return null;
768
+ const marked = siblings.filter((s) => [...s.classList].some((t) => SELECTED_TOKEN.test(t)));
769
+ if (marked.length !== 1 || marked[0] !== el) return null;
770
+ return [...el.classList].find((t) => SELECTED_TOKEN.test(t));
771
+ }
583
772
  function aria(args = {}) {
584
773
  const root = observationRoot(args);
585
774
  const i = injected();
@@ -616,8 +805,11 @@
616
805
  continue;
617
806
  }
618
807
  const el = elements.get(m[2]);
619
- let rline = m[1] + stableRefOf(el) + m[3] + (m[4] ?? "");
620
- if (args.viewport && !args.ref && !intersectsViewport(el)) {
808
+ const empty = !m[4] && !m[1].includes(' "') && isEmptySlot(el);
809
+ const hints = stateHints(el, empty);
810
+ const closing = hints && m[3].endsWith("'") ? m[3].slice(0, -1) + hints + "'" : m[3] + hints;
811
+ let rline = m[1] + stableRefOf(el) + closing + (m[4] ?? "");
812
+ if (args.viewport && !args.ref && !intersectsViewport(empty && el.parentElement ? el.parentElement : el)) {
621
813
  dropBelow = indent;
622
814
  continue;
623
815
  }
@@ -698,7 +890,7 @@ Focused: [ref=${focusRef}]` : "");
698
890
  if (!matches.length) return { error: { code: "not_found", message: `no element matches ${args.selector}`, hint: "Observe or find the target again." } };
699
891
  if (matches.length > 1) {
700
892
  const visible = matches.filter((el2) => is(el2, "visible"));
701
- if (visible.length !== 1) return { error: { code: "selector_ambiguous", message: `${matches.length} elements match ${args.selector}`, hint: "Use a ref from observe/find, or a more specific locator." } };
893
+ if (visible.length !== 1) return { error: ambiguity(matches.length, args.selector, visible.length, visible.length > 1 ? visible : matches) };
702
894
  matches = visible;
703
895
  }
704
896
  const el = matches[0];
@@ -778,6 +970,7 @@ Focused: [ref=${focusRef}]` : "");
778
970
  function unannotate() {
779
971
  document.getElementById(ANNOTATE_ID)?.remove();
780
972
  }
973
+ var fold = (value) => value.replace(/\s+/g, " ").trim().toLowerCase();
781
974
  function check(args) {
782
975
  const failed = [];
783
976
  const actual = {};
@@ -787,11 +980,14 @@ Focused: [ref=${focusRef}]` : "");
787
980
  if (!matches.length && args.fallback) matches = query(args.fallback);
788
981
  if (matches.length > 1) {
789
982
  const visible = matches.filter((el) => is(el, "visible"));
790
- if (visible.length !== 1) throw Object.assign(new Error(`${matches.length} elements match; use a scoped target or an observed ref.`), { code: "selector_ambiguous" });
983
+ if (visible.length !== 1) {
984
+ const a = ambiguity(matches.length, args.selector, visible.length, visible.length > 1 ? visible : matches);
985
+ throw Object.assign(new Error(a.message), { code: a.code, hint: a.hint, data: { candidates: a.candidates } });
986
+ }
791
987
  matches = visible;
792
988
  }
793
989
  element = matches[0];
794
- actual.visible = !!element && is(element, "visible");
990
+ actual.visible = !!element && shownElement(element) && (args.targetText === void 0 || fold(shownText(element)).includes(fold(args.targetText)));
795
991
  const visibilityOnly = ["text", "notText", "value", "checked", "selected", "enabled"].every((key) => args[key] === void 0);
796
992
  if (args.visible !== void 0 || visibilityOnly) {
797
993
  if (actual.visible !== (args.visible ?? true)) failed.push(`visible is ${actual.visible}, expected ${args.visible ?? true}`);
@@ -800,7 +996,7 @@ Focused: [ref=${focusRef}]` : "");
800
996
  }
801
997
  if (args.selector === void 0 || element) {
802
998
  const root = element ?? document.body;
803
- const content = element && isCredentialField(element) ? "<redacted>" : (root?.innerText ?? root?.textContent ?? "").replace(/\s+/g, " ");
999
+ const content = element && isCredentialField(element) ? "<redacted>" : root ? shownText(root) : "";
804
1000
  if (args.text !== void 0 || args.notText !== void 0) {
805
1001
  actual.text = content.slice(0, 1e3);
806
1002
  if (args.text !== void 0 && !content.includes(args.text)) failed.push(`text does not include "${args.text}"`);
@@ -829,6 +1025,6 @@ Focused: [ref=${focusRef}]` : "");
829
1025
  if (args.title !== void 0 && !document.title.includes(args.title)) failed.push(`title "${document.title}" does not include "${args.title}"`);
830
1026
  return { ok: failed.length === 0, failed, url: location.href, title: document.title, actual };
831
1027
  }
832
- var api = { check, resolve, resolveUpload, fileSelectionCount, pointInfo, focus, readValue, fill, isChecked, select, caretToEnd, actionTarget, clearActionTarget, settle, frameProbe, frameElement, clearFrameProbe, aria, observeFrame, visibleDom, readElement, find, findByQuery, elementAt, annotate, unannotate, armClickProbe, readClickProbe, domClick, readText };
1028
+ var api = { check, resolve, resolveUpload, fileSelectionCount, pointInfo, focus, readValue, fill, isChecked, select, caretToEnd, actionTarget, clearActionTarget, activity, contentProbe, closedShadowCandidates, adoptShadowRoot, frameProbe, frameElement, clearFrameProbe, aria, observeFrame, visibleDom, readElement, find, findByQuery, elementAt, annotate, unannotate, armClickProbe, readClickProbe, domClick, readText };
833
1029
  globalThis[PAGE_GLOBAL] = api;
834
1030
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jackwener/browsermcp",
3
- "version": "0.0.38",
3
+ "version": "0.0.39",
4
4
  "description": "Chrome-backed MCP browser service with optional site adapters.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,8 +25,8 @@
25
25
  "test": "vitest run",
26
26
  "typecheck": "tsc -p tsconfig.tests.json && tsc -p extension/tsconfig.json",
27
27
  "smoke:setup": "node scripts/smoke-setup.mjs",
28
- "smoke:browser": "node scripts/smoke-browser.mjs",
29
28
  "smoke:observation": "node scripts/smoke-observation.mjs",
29
+ "smoke:feedback": "node scripts/smoke-agent-feedback.mjs",
30
30
  "prepare": "npm run build",
31
31
  "check": "npm run typecheck && npm run build && npm test",
32
32
  "pack:store": "npm run build && node scripts/pack-extension.mjs store",