local-operator-ui 0.47.7 → 0.47.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.
Files changed (100) hide show
  1. package/out/main/index.js +600 -178
  2. package/out/renderer/assets/{_basePickBy-CxNKMlbl.js → _basePickBy-ojkoQ439.js} +1 -1
  3. package/out/renderer/assets/{_baseUniq-BbSMPqVX.js → _baseUniq-Cgz7Hj_a.js} +1 -1
  4. package/out/renderer/assets/{agent-details-page-BYxD4r1x.js → agent-details-page-B5287Wxd.js} +1 -1
  5. package/out/renderer/assets/{agent-hub-page-B6meRyEG.js → agent-hub-page-D3p-cWKe.js} +1 -1
  6. package/out/renderer/assets/{agents-page-hjQarFiD.js → agents-page-Dfj750IG.js} +3 -3
  7. package/out/renderer/assets/{approvalsOverlay-DxFdjCYY.js → approvalsOverlay-DbPXl5mx.js} +1 -1
  8. package/out/renderer/assets/{arc-CjIFTQgL.js → arc-QdUtBTFo.js} +1 -1
  9. package/out/renderer/assets/{architectureDiagram-IEHRJDOE-C0R6k_nz.js → architectureDiagram-IEHRJDOE-B6bGif-A.js} +1 -1
  10. package/out/renderer/assets/{avatar-cropper-C8ZgjXIy.js → avatar-cropper-C0NbIvss.js} +1 -1
  11. package/out/renderer/assets/{blockDiagram-JOT3LUYC-CfhnnENP.js → blockDiagram-JOT3LUYC-DNZk1EMc.js} +1 -1
  12. package/out/renderer/assets/{book-open-CWzHgAdb.js → book-open-DAO2iRnF.js} +1 -1
  13. package/out/renderer/assets/browser-page-PqDhz6JH.js +1 -0
  14. package/out/renderer/assets/{browser-webauthn-prompt-CcB_Jh3k.js → browser-webauthn-prompt-6rWrqh9J.js} +1 -1
  15. package/out/renderer/assets/{building-2-CmuBE4lq.js → building-2-DpO451z6.js} +1 -1
  16. package/out/renderer/assets/{c4Diagram-VJAJSXHY-DT3vjw_h.js → c4Diagram-VJAJSXHY-l_7VtVOD.js} +1 -1
  17. package/out/renderer/assets/channel-Bayx-C4D.js +1 -0
  18. package/out/renderer/assets/{chunk-4BMEZGHF-ChAQeEc5.js → chunk-4BMEZGHF-BZPnQwiD.js} +1 -1
  19. package/out/renderer/assets/{chunk-A2AXSNBT-R9ulKFQ-.js → chunk-A2AXSNBT-CrfIH5iq.js} +1 -1
  20. package/out/renderer/assets/{chunk-AEK57VVT-ByzY9hZA.js → chunk-AEK57VVT-CaPCVkD8.js} +1 -1
  21. package/out/renderer/assets/{chunk-D6G4REZN-AqM4mJMf.js → chunk-D6G4REZN-bEDpLmbt.js} +1 -1
  22. package/out/renderer/assets/{chunk-RZ5BOZE2-Cws-WTZQ.js → chunk-RZ5BOZE2-CsrG7rfM.js} +1 -1
  23. package/out/renderer/assets/{chunk-XZIHB7SX-Cdo35o7G.js → chunk-XZIHB7SX-F1EtkaMn.js} +1 -1
  24. package/out/renderer/assets/classDiagram-GIVACNV2-DIGzvb4h.js +1 -0
  25. package/out/renderer/assets/classDiagram-v2-COTLJTTW-DIGzvb4h.js +1 -0
  26. package/out/renderer/assets/clone-DSth8cxq.js +1 -0
  27. package/out/renderer/assets/{console-mirror-CqGePaCd.js → console-mirror-CY6eZKQD.js} +1 -1
  28. package/out/renderer/assets/{consoleCapture-BOcWyFeq.js → consoleCapture-Cj71UOvJ.js} +1 -1
  29. package/out/renderer/assets/{conversation-input-sync-DFhdONkt.js → conversation-input-sync-CT1X3xzg.js} +4 -4
  30. package/out/renderer/assets/{dagre-OKDRZEBW-BbdqVhRc.js → dagre-OKDRZEBW-KbsJOd-j.js} +1 -1
  31. package/out/renderer/assets/{diagram-SSKATNLV-Cu2SEEid.js → diagram-SSKATNLV-P_0af2wd.js} +1 -1
  32. package/out/renderer/assets/{diagram-VNBRO52H-yjYtrf9V.js → diagram-VNBRO52H-CkyDCyPd.js} +1 -1
  33. package/out/renderer/assets/{erDiagram-Q7BY3M3F-DrAWEake.js → erDiagram-Q7BY3M3F-BaiH25Qu.js} +1 -1
  34. package/out/renderer/assets/{error-boundary-B8-ZWHdb.js → error-boundary-CD9E-FB_.js} +2 -2
  35. package/out/renderer/assets/{flowDiagram-4HSFHLVR-Cdo_8vO8.js → flowDiagram-4HSFHLVR-DB1HkaCE.js} +1 -1
  36. package/out/renderer/assets/{ganttDiagram-APWFNJXF-RIMYNmIV.js → ganttDiagram-APWFNJXF-DnoZ-mEJ.js} +1 -1
  37. package/out/renderer/assets/{gitGraphDiagram-7IBYFJ6S-Cv3isz-u.js → gitGraphDiagram-7IBYFJ6S-DcrBUoZ8.js} +1 -1
  38. package/out/renderer/assets/{graph-CpB0xap_.js → graph-Da9ZlHpw.js} +1 -1
  39. package/out/renderer/assets/{hash-BFLdOHG0.js → hash-BGVcZhsd.js} +1 -1
  40. package/out/renderer/assets/{heart-BTBIHeEP.js → heart-CC5rFmGg.js} +1 -1
  41. package/out/renderer/assets/{image-plus-DRfGt-95.js → image-plus-Dc4Ph61z.js} +1 -1
  42. package/out/renderer/assets/{index-DwbIaOLD.js → index-BiI-eK_K.js} +1 -1
  43. package/out/renderer/assets/{index-C-nDMo9x.js → index-Cs4iHH2g.js} +1 -1
  44. package/out/renderer/assets/{index-CGMYbE4_.js → index-DSl-Zp-F.js} +38 -38
  45. package/out/renderer/assets/{index-CsKro5cC.js → index-G0fTK0HE.js} +1 -1
  46. package/out/renderer/assets/index-xeR22aZz.css +1 -0
  47. package/out/renderer/assets/infoDiagram-PH2N3AL5-CEGFxaq5.js +2 -0
  48. package/out/renderer/assets/{installer-BWzb_GsR.js → installer-M2B_gKRK.js} +1 -1
  49. package/out/renderer/assets/{journeyDiagram-U35MCT3I-CsPC67oW.js → journeyDiagram-U35MCT3I-DTmBGW6Q.js} +1 -1
  50. package/out/renderer/assets/{kanban-definition-NDS4AKOZ-Di1Yt4BY.js → kanban-definition-NDS4AKOZ-C8WI_dOp.js} +1 -1
  51. package/out/renderer/assets/{layout-oo3GoRNT.js → layout-C3jbvT4l.js} +1 -1
  52. package/out/renderer/assets/{legacy-agents-page-DMyFq-zS.js → legacy-agents-page-BX1ObLve.js} +1 -1
  53. package/out/renderer/assets/{library-page-DLyEe56I.js → library-page-qOfmNVcg.js} +3 -3
  54. package/out/renderer/assets/{mermaid.core-Dsikc2ul.js → mermaid.core-CdQ7E5mL.js} +5 -5
  55. package/out/renderer/assets/{mesh-page-ByuZLW5R.js → mesh-page-DMkT_9A-.js} +1 -1
  56. package/out/renderer/assets/{messages-Fu1fuPdy.js → messages-C5Ff9CJ7.js} +10 -10
  57. package/out/renderer/assets/{mindmap-definition-ALO5MXBD-UsEspWBg.js → mindmap-definition-ALO5MXBD-DU0mo9p2.js} +1 -1
  58. package/out/renderer/assets/{mini-DPz-9PYH.js → mini-aAsnKaGz.js} +1 -1
  59. package/out/renderer/assets/{notebook-pen-CJ-i1e6R.js → notebook-pen-BP6ceuCH.js} +1 -1
  60. package/out/renderer/assets/{notifications-page-DGBTZY-z.js → notifications-page-DRMToDYt.js} +1 -1
  61. package/out/renderer/assets/{org-access-DCIl0zJ7.js → org-access-Bs8eFlSp.js} +1 -1
  62. package/out/renderer/assets/{org-surface-gate-B_juApXs.js → org-surface-gate-Cxo-hbUN.js} +1 -1
  63. package/out/renderer/assets/{page-header-0vHDk_6R.js → page-header-D5i9aRdF.js} +1 -1
  64. package/out/renderer/assets/{path-utils-BkvRGDFH.js → path-utils-CS-ZbmNv.js} +1 -1
  65. package/out/renderer/assets/{pieDiagram-IB7DONF6-CJU97Qak.js → pieDiagram-IB7DONF6-Jdvz8VWw.js} +1 -1
  66. package/out/renderer/assets/{project-markdown-BKHPKCPr.js → project-markdown-6v_v8CTi.js} +1 -1
  67. package/out/renderer/assets/{projects-page-CNXU049D.js → projects-page-ClDZIyym.js} +1 -1
  68. package/out/renderer/assets/{publication-validation-QtZLHIVv.js → publication-validation-fhBwU4Ct.js} +1 -1
  69. package/out/renderer/assets/{quadrantDiagram-7GDLP6J5-BqDRyfv2.js → quadrantDiagram-7GDLP6J5-DDWwjPpi.js} +1 -1
  70. package/out/renderer/assets/{radar-MK3ICKWK-DbGP26e7.js → radar-MK3ICKWK-Bph4zewY.js} +1 -1
  71. package/out/renderer/assets/{radient-auth-buttons-D-uO3KDd.js → radient-auth-buttons-DzozdIYt.js} +1 -1
  72. package/out/renderer/assets/{requirementDiagram-KVF5MWMF-DxqdCV34.js → requirementDiagram-KVF5MWMF-dCfjbetB.js} +1 -1
  73. package/out/renderer/assets/{sankeyDiagram-QLVOVGJD-DwWApIUG.js → sankeyDiagram-QLVOVGJD-HVn73-Eh.js} +1 -1
  74. package/out/renderer/assets/{schedules-page-aimT5q2-.js → schedules-page-D7cUalTn.js} +1 -1
  75. package/out/renderer/assets/{sequenceDiagram-X6HHIX6F-BCeqt3bX.js → sequenceDiagram-X6HHIX6F-DLk99tON.js} +1 -1
  76. package/out/renderer/assets/{settings-page-BQWImFGX.js → settings-page-A_PbN5kj.js} +1 -1
  77. package/out/renderer/assets/{smartart-CWIUhmUM.js → smartart-BXJB_IpV.js} +1 -1
  78. package/out/renderer/assets/{stateDiagram-DGXRK772-r7RrPU2A.js → stateDiagram-DGXRK772-D4lTws7V.js} +1 -1
  79. package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-CLGdAi2z.js +1 -0
  80. package/out/renderer/assets/team-bridge-page-DOAIc8WR.js +38 -0
  81. package/out/renderer/assets/{team-bridge-scope-preference-B_RFMgpd.js → team-bridge-scope-preference-B_3LiR3U.js} +1 -1
  82. package/out/renderer/assets/{timeline-definition-BDJGKUSR-MIC5_JpE.js → timeline-definition-BDJGKUSR-_5CvFmhx.js} +1 -1
  83. package/out/renderer/assets/{use-download-agent-mutation-D4Fdzwas.js → use-download-agent-mutation-uNfQtsZW.js} +1 -1
  84. package/out/renderer/assets/{use-session-snapshot-D99r7Ncl.js → use-session-snapshot-Dd2mlTTk.js} +1 -1
  85. package/out/renderer/assets/{xychartDiagram-VJFVF3MP-Cypr2YzW.js → xychartDiagram-VJFVF3MP-FE7vAowE.js} +1 -1
  86. package/out/renderer/browser-approvals-overlay.html +2 -2
  87. package/out/renderer/console-capture.html +6 -6
  88. package/out/renderer/index.html +8 -8
  89. package/out/renderer/installer.html +5 -5
  90. package/out/renderer/mini.html +8 -8
  91. package/package.json +2 -2
  92. package/out/renderer/assets/browser-page-B9XgClol.js +0 -1
  93. package/out/renderer/assets/channel-D4-pSb8S.js +0 -1
  94. package/out/renderer/assets/classDiagram-GIVACNV2-CJRYrcX2.js +0 -1
  95. package/out/renderer/assets/classDiagram-v2-COTLJTTW-CJRYrcX2.js +0 -1
  96. package/out/renderer/assets/clone-DqMvLRL3.js +0 -1
  97. package/out/renderer/assets/index-D4MvZT3W.css +0 -1
  98. package/out/renderer/assets/infoDiagram-PH2N3AL5-J6IL0ZJ0.js +0 -2
  99. package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-Ccmzzb-d.js +0 -1
  100. package/out/renderer/assets/team-bridge-page-BRPrnbBV.js +0 -38
package/out/main/index.js CHANGED
@@ -16923,7 +16923,20 @@ const enUiTeamBridge = {
16923
16923
  "ui.teamBridge.mentions.notice.silent": "Mention without notifying",
16924
16924
  "ui.teamBridge.mentions.notice.pending": "{name} is invited but hasn’t joined yet, so they won’t be notified.",
16925
16925
  "ui.teamBridge.mentions.notice.invited": "{name} has been invited. They won’t be notified until they join.",
16926
- "ui.teamBridge.replies.legacy_window": "This server only supports oldest-first replies. Load more to continue."
16926
+ "ui.teamBridge.replies.legacy_window": "This server only supports oldest-first replies. Load more to continue.",
16927
+ "ui.teamBridge.delivery.refused": "Not delivered to {agent} ({owner}). Refused by moderation.",
16928
+ "ui.teamBridge.delivery.refused_manipulation": "Not delivered to {agent} ({owner}): refused by their moderation (looked like an attempt to manipulate the agent)",
16929
+ "ui.teamBridge.delivery.refused_personal_info": "Not delivered to {agent} ({owner}): refused by their moderation (looked like a request for personal information)",
16930
+ "ui.teamBridge.delivery.refused_abusive": "Not delivered to {agent} ({owner}): refused by their moderation (looked like abusive content)",
16931
+ "ui.teamBridge.delivery.refused_unsafe_content": "Not delivered to {agent} ({owner}): refused by their moderation (looked like unsafe content or links)",
16932
+ "ui.teamBridge.delivery.refused_out_of_scope": "Not delivered to {agent} ({owner}): refused by their moderation (looked like a request outside what this agent handles)",
16933
+ "ui.teamBridge.delivery.held": "Waiting to be screened by {agent} ({owner})…",
16934
+ "ui.teamBridge.delivery.held_screening_unavailable": "Waiting to be screened by {agent} ({owner}). Screening is temporarily unavailable.",
16935
+ "ui.teamBridge.delivery.held_awaiting_review": "Waiting to be screened by {agent} ({owner}). Awaiting review.",
16936
+ "ui.teamBridge.delivery.pending": "Screened; delivery to {agent} is pending",
16937
+ "ui.teamBridge.delivery.info_refused": "Each agent screens incoming messages with its owner's moderation. A refused message wasn't passed to the agent. Rephrasing the request usually helps.",
16938
+ "ui.teamBridge.delivery.info_held": "Each agent screens incoming messages with its owner's moderation before passing them on. This one hasn't been screened yet; it will be delivered or refused automatically.",
16939
+ "ui.teamBridge.delivery.info_label": "About message screening"
16927
16940
  };
16928
16941
  const enUiUpdatesPanel = {
16929
16942
  "ui.updates.panel.dismiss.not_now": "Not now",
@@ -24404,7 +24417,20 @@ const esUiTeamBridge = {
24404
24417
  "ui.teamBridge.mentions.notice.silent": "Mencionar sin notificar",
24405
24418
  "ui.teamBridge.mentions.notice.pending": "{name} recibió una invitación pero aún no se ha unido, así que no recibirá ninguna notificación.",
24406
24419
  "ui.teamBridge.mentions.notice.invited": "Se invitó a {name}. No recibirá notificaciones hasta que se una.",
24407
- "ui.teamBridge.replies.legacy_window": "Este servidor solo permite ver las respuestas de la más antigua a la más reciente. Carga más para continuar."
24420
+ "ui.teamBridge.replies.legacy_window": "Este servidor solo permite ver las respuestas de la más antigua a la más reciente. Carga más para continuar.",
24421
+ "ui.teamBridge.delivery.refused": "No entregado a {agent} ({owner}). Rechazado por la moderación.",
24422
+ "ui.teamBridge.delivery.refused_manipulation": "No entregado a {agent} ({owner}): rechazado por su moderación (parecía un intento de manipular al agente)",
24423
+ "ui.teamBridge.delivery.refused_personal_info": "No entregado a {agent} ({owner}): rechazado por su moderación (parecía una solicitud de información personal)",
24424
+ "ui.teamBridge.delivery.refused_abusive": "No entregado a {agent} ({owner}): rechazado por su moderación (parecía contenido abusivo)",
24425
+ "ui.teamBridge.delivery.refused_unsafe_content": "No entregado a {agent} ({owner}): rechazado por su moderación (parecía contenido o enlaces no seguros)",
24426
+ "ui.teamBridge.delivery.refused_out_of_scope": "No entregado a {agent} ({owner}): rechazado por su moderación (parecía una solicitud fuera de lo que gestiona este agente)",
24427
+ "ui.teamBridge.delivery.held": "Esperando a que {agent} ({owner}) lo analice…",
24428
+ "ui.teamBridge.delivery.held_screening_unavailable": "Esperando a que {agent} ({owner}) lo analice. El análisis no está disponible temporalmente.",
24429
+ "ui.teamBridge.delivery.held_awaiting_review": "Esperando a que {agent} ({owner}) lo analice. El mensaje está pendiente de revisión.",
24430
+ "ui.teamBridge.delivery.pending": "Analizado; la entrega a {agent} está pendiente",
24431
+ "ui.teamBridge.delivery.info_refused": "Cada agente analiza los mensajes entrantes con la moderación de su propietario. Un mensaje rechazado no se pasó al agente. Reformular la solicitud suele ayudar.",
24432
+ "ui.teamBridge.delivery.info_held": "Cada agente analiza los mensajes entrantes con la moderación de su propietario antes de entregarlos. Este mensaje aún no se ha analizado; se entregará o se rechazará automáticamente.",
24433
+ "ui.teamBridge.delivery.info_label": "Acerca del análisis de mensajes"
24408
24434
  };
24409
24435
  const esUiUpdatesPanel = {
24410
24436
  "ui.updates.panel.dismiss.not_now": "Ahora no",
@@ -31885,7 +31911,20 @@ const frUiTeamBridge = {
31885
31911
  "ui.teamBridge.mentions.notice.silent": "Mentionner sans notifier",
31886
31912
  "ui.teamBridge.mentions.notice.pending": "{name} a reçu une invitation mais n’a pas encore rejoint la conversation, et ne recevra donc pas de notification.",
31887
31913
  "ui.teamBridge.mentions.notice.invited": "Invitation envoyée à {name}, qui ne recevra pas de notification avant d’avoir rejoint la conversation.",
31888
- "ui.teamBridge.replies.legacy_window": "Ce serveur affiche uniquement les réponses des plus anciennes aux plus récentes. Chargez-en davantage pour continuer."
31914
+ "ui.teamBridge.replies.legacy_window": "Ce serveur affiche uniquement les réponses des plus anciennes aux plus récentes. Chargez-en davantage pour continuer.",
31915
+ "ui.teamBridge.delivery.refused": "Non remis à {agent} ({owner}). Refusé par la modération.",
31916
+ "ui.teamBridge.delivery.refused_manipulation": "Non remis à {agent} ({owner}) : refusé par sa modération (ressemblait à une tentative de manipuler l’agent)",
31917
+ "ui.teamBridge.delivery.refused_personal_info": "Non remis à {agent} ({owner}) : refusé par sa modération (ressemblait à une demande d’informations personnelles)",
31918
+ "ui.teamBridge.delivery.refused_abusive": "Non remis à {agent} ({owner}) : refusé par sa modération (ressemblait à un contenu abusif)",
31919
+ "ui.teamBridge.delivery.refused_unsafe_content": "Non remis à {agent} ({owner}) : refusé par sa modération (ressemblait à un contenu ou des liens à risque)",
31920
+ "ui.teamBridge.delivery.refused_out_of_scope": "Non remis à {agent} ({owner}) : refusé par sa modération (ressemblait à une demande hors du champ de cet agent)",
31921
+ "ui.teamBridge.delivery.held": "En attente de vérification par {agent} ({owner})…",
31922
+ "ui.teamBridge.delivery.held_screening_unavailable": "En attente de vérification par {agent} ({owner}). La vérification est temporairement indisponible.",
31923
+ "ui.teamBridge.delivery.held_awaiting_review": "En attente de vérification par {agent} ({owner}). Le message est en attente d’examen.",
31924
+ "ui.teamBridge.delivery.pending": "Vérifié ; la remise à {agent} est en attente",
31925
+ "ui.teamBridge.delivery.info_refused": "Chaque agent vérifie les messages entrants avec la modération de son propriétaire. Un message refusé n’a pas été transmis à l’agent. Reformuler la demande aide généralement.",
31926
+ "ui.teamBridge.delivery.info_held": "Chaque agent vérifie les messages entrants avec la modération de son propriétaire avant de les transmettre. Celui-ci n’a pas encore été vérifié ; il sera remis ou refusé automatiquement.",
31927
+ "ui.teamBridge.delivery.info_label": "À propos de la vérification des messages"
31889
31928
  };
31890
31929
  const frUiUpdatesPanel = {
31891
31930
  "ui.updates.panel.dismiss.not_now": "Pas maintenant",
@@ -39366,7 +39405,20 @@ const hiUiTeamBridge = {
39366
39405
  "ui.teamBridge.mentions.notice.silent": "सूचना दिए बिना उल्लेख करें",
39367
39406
  "ui.teamBridge.mentions.notice.pending": "{name} को आमंत्रित किया गया है, लेकिन वे अभी शामिल नहीं हुए हैं, इसलिए उन्हें सूचना नहीं मिलेगी।",
39368
39407
  "ui.teamBridge.mentions.notice.invited": "{name} को आमंत्रित कर दिया गया है। शामिल होने तक उन्हें सूचना नहीं मिलेगी।",
39369
- "ui.teamBridge.replies.legacy_window": "यह सर्वर जवाबों को केवल पुराने से नए क्रम में दिखा सकता है। आगे देखने के लिए और लोड करें।"
39408
+ "ui.teamBridge.replies.legacy_window": "यह सर्वर जवाबों को केवल पुराने से नए क्रम में दिखा सकता है। आगे देखने के लिए और लोड करें।",
39409
+ "ui.teamBridge.delivery.refused": "{agent} ({owner}) तक नहीं पहुँचा। मॉडरेशन ने अस्वीकार कर दिया।",
39410
+ "ui.teamBridge.delivery.refused_manipulation": "{agent} ({owner}) तक नहीं पहुँचा: उनके मॉडरेशन ने अस्वीकार कर दिया (एजेंट को बहकाने की कोशिश जैसा लगा)",
39411
+ "ui.teamBridge.delivery.refused_personal_info": "{agent} ({owner}) तक नहीं पहुँचा: उनके मॉडरेशन ने अस्वीकार कर दिया (निजी जानकारी के अनुरोध जैसा लगा)",
39412
+ "ui.teamBridge.delivery.refused_abusive": "{agent} ({owner}) तक नहीं पहुँचा: उनके मॉडरेशन ने अस्वीकार कर दिया (अपमानजनक सामग्री जैसा लगा)",
39413
+ "ui.teamBridge.delivery.refused_unsafe_content": "{agent} ({owner}) तक नहीं पहुँचा: उनके मॉडरेशन ने अस्वीकार कर दिया (असुरक्षित सामग्री या लिंक जैसा लगा)",
39414
+ "ui.teamBridge.delivery.refused_out_of_scope": "{agent} ({owner}) तक नहीं पहुँचा: उनके मॉडरेशन ने अस्वीकार कर दिया (इस एजेंट के दायरे से बाहर के अनुरोध जैसा लगा)",
39415
+ "ui.teamBridge.delivery.held": "{agent} ({owner}) द्वारा जाँच का इंतज़ार है…",
39416
+ "ui.teamBridge.delivery.held_screening_unavailable": "{agent} ({owner}) द्वारा जाँच का इंतज़ार है। जाँच अस्थायी रूप से उपलब्ध नहीं है।",
39417
+ "ui.teamBridge.delivery.held_awaiting_review": "{agent} ({owner}) द्वारा जाँच का इंतज़ार है। संदेश समीक्षा के इंतज़ार में है।",
39418
+ "ui.teamBridge.delivery.pending": "जाँच हो गई; {agent} तक डिलीवरी बाकी है",
39419
+ "ui.teamBridge.delivery.info_refused": "हर एजेंट आने वाले संदेशों को अपने मालिक के मॉडरेशन से जाँचता है। अस्वीकार किया गया संदेश एजेंट तक नहीं पहुँचाया गया। अनुरोध को दोबारा लिखना आमतौर पर मदद करता है।",
39420
+ "ui.teamBridge.delivery.info_held": "हर एजेंट आने वाले संदेशों को आगे पहुँचाने से पहले अपने मालिक के मॉडरेशन से जाँचता है। इस संदेश की जाँच अभी नहीं हुई है; यह अपने-आप पहुँचा दिया जाएगा या अस्वीकार कर दिया जाएगा।",
39421
+ "ui.teamBridge.delivery.info_label": "संदेश जाँच के बारे में"
39370
39422
  };
39371
39423
  const hiUiUpdatesPanel = {
39372
39424
  "ui.updates.panel.dismiss.not_now": "अभी नहीं",
@@ -46847,7 +46899,20 @@ const ruUiTeamBridge = {
46847
46899
  "ui.teamBridge.mentions.notice.silent": "Упомянуть без уведомления",
46848
46900
  "ui.teamBridge.mentions.notice.pending": "Приглашение для {name} ещё не принято, поэтому уведомление не придёт.",
46849
46901
  "ui.teamBridge.mentions.notice.invited": "Приглашение для {name} отправлено. Пока его не примут, уведомление не придёт.",
46850
- "ui.teamBridge.replies.legacy_window": "Этот сервер показывает ответы только от старых к новым. Загрузите ещё, чтобы продолжить."
46902
+ "ui.teamBridge.replies.legacy_window": "Этот сервер показывает ответы только от старых к новым. Загрузите ещё, чтобы продолжить.",
46903
+ "ui.teamBridge.delivery.refused": "Не доставлено агенту {agent} ({owner}). Отклонено модерацией.",
46904
+ "ui.teamBridge.delivery.refused_manipulation": "Не доставлено агенту {agent} ({owner}): отклонено его модерацией (похоже на попытку манипулировать агентом)",
46905
+ "ui.teamBridge.delivery.refused_personal_info": "Не доставлено агенту {agent} ({owner}): отклонено его модерацией (похоже на запрос личной информации)",
46906
+ "ui.teamBridge.delivery.refused_abusive": "Не доставлено агенту {agent} ({owner}): отклонено его модерацией (похоже на оскорбительный контент)",
46907
+ "ui.teamBridge.delivery.refused_unsafe_content": "Не доставлено агенту {agent} ({owner}): отклонено его модерацией (похоже на небезопасный контент или ссылки)",
46908
+ "ui.teamBridge.delivery.refused_out_of_scope": "Не доставлено агенту {agent} ({owner}): отклонено его модерацией (похоже на запрос вне задач этого агента)",
46909
+ "ui.teamBridge.delivery.held": "Ожидает проверки агентом {agent} ({owner})…",
46910
+ "ui.teamBridge.delivery.held_screening_unavailable": "Ожидает проверки агентом {agent} ({owner}). Проверка временно недоступна.",
46911
+ "ui.teamBridge.delivery.held_awaiting_review": "Ожидает проверки агентом {agent} ({owner}). Сообщение ожидает рассмотрения.",
46912
+ "ui.teamBridge.delivery.pending": "Проверено; ожидается доставка агенту {agent}",
46913
+ "ui.teamBridge.delivery.info_refused": "Каждый агент проверяет входящие сообщения с помощью модерации своего владельца. Отклонённое сообщение не было передано агенту. Обычно помогает переформулировать запрос.",
46914
+ "ui.teamBridge.delivery.info_held": "Каждый агент проверяет входящие сообщения с помощью модерации своего владельца, прежде чем передать их дальше. Это сообщение ещё не проверено; оно будет доставлено или отклонено автоматически.",
46915
+ "ui.teamBridge.delivery.info_label": "О проверке сообщений"
46851
46916
  };
46852
46917
  const ruUiUpdatesPanel = {
46853
46918
  "ui.updates.panel.dismiss.not_now": "Не сейчас",
@@ -54328,7 +54393,20 @@ const urUiTeamBridge = {
54328
54393
  "ui.teamBridge.mentions.notice.silent": "اطلاع دیے بغیر ذکر کریں",
54329
54394
  "ui.teamBridge.mentions.notice.pending": "{name} کو مدعو کیا گیا ہے لیکن وہ ابھی شامل نہیں ہوئے، اس لیے انہیں اطلاع نہیں ملے گی۔",
54330
54395
  "ui.teamBridge.mentions.notice.invited": "{name} کو مدعو کر دیا گیا۔ شامل ہونے تک انہیں اطلاع نہیں ملے گی۔",
54331
- "ui.teamBridge.replies.legacy_window": "یہ سرور جوابات صرف پرانے سے نئے کی ترتیب میں دکھاتا ہے۔ آگے دیکھنے کے لیے مزید لوڈ کریں۔"
54396
+ "ui.teamBridge.replies.legacy_window": "یہ سرور جوابات صرف پرانے سے نئے کی ترتیب میں دکھاتا ہے۔ آگے دیکھنے کے لیے مزید لوڈ کریں۔",
54397
+ "ui.teamBridge.delivery.refused": "{agent} ({owner}) تک نہیں پہنچا۔ ماڈریشن نے مسترد کر دیا۔",
54398
+ "ui.teamBridge.delivery.refused_manipulation": "{agent} ({owner}) تک نہیں پہنچا: ان کی ماڈریشن نے مسترد کر دیا (ایجنٹ کو ورغلانے کی کوشش جیسا لگا)",
54399
+ "ui.teamBridge.delivery.refused_personal_info": "{agent} ({owner}) تک نہیں پہنچا: ان کی ماڈریشن نے مسترد کر دیا (ذاتی معلومات کی درخواست جیسا لگا)",
54400
+ "ui.teamBridge.delivery.refused_abusive": "{agent} ({owner}) تک نہیں پہنچا: ان کی ماڈریشن نے مسترد کر دیا (توہین آمیز مواد جیسا لگا)",
54401
+ "ui.teamBridge.delivery.refused_unsafe_content": "{agent} ({owner}) تک نہیں پہنچا: ان کی ماڈریشن نے مسترد کر دیا (غیر محفوظ مواد یا لنکس جیسا لگا)",
54402
+ "ui.teamBridge.delivery.refused_out_of_scope": "{agent} ({owner}) تک نہیں پہنچا: ان کی ماڈریشن نے مسترد کر دیا (اس ایجنٹ کے دائرۂ کار سے باہر کی درخواست جیسا لگا)",
54403
+ "ui.teamBridge.delivery.held": "{agent} ({owner}) کی جانب سے جانچ کا انتظار ہے…",
54404
+ "ui.teamBridge.delivery.held_screening_unavailable": "{agent} ({owner}) کی جانب سے جانچ کا انتظار ہے۔ جانچ عارضی طور پر دستیاب نہیں ہے۔",
54405
+ "ui.teamBridge.delivery.held_awaiting_review": "{agent} ({owner}) کی جانب سے جانچ کا انتظار ہے۔ پیغام جائزے کا منتظر ہے۔",
54406
+ "ui.teamBridge.delivery.pending": "جانچ ہو گئی؛ {agent} تک ترسیل باقی ہے",
54407
+ "ui.teamBridge.delivery.info_refused": "ہر ایجنٹ آنے والے پیغامات کو اپنے مالک کی ماڈریشن سے جانچتا ہے۔ مسترد کیا گیا پیغام ایجنٹ تک نہیں پہنچایا گیا۔ درخواست کو دوبارہ لکھنا عموماً مددگار ہوتا ہے۔",
54408
+ "ui.teamBridge.delivery.info_held": "ہر ایجنٹ آنے والے پیغامات کو آگے پہنچانے سے پہلے اپنے مالک کی ماڈریشن سے جانچتا ہے۔ اس پیغام کی جانچ ابھی نہیں ہوئی؛ یہ خود بخود پہنچا دیا جائے گا یا مسترد کر دیا جائے گا۔",
54409
+ "ui.teamBridge.delivery.info_label": "پیغام کی جانچ کے بارے میں"
54332
54410
  };
54333
54411
  const urUiUpdatesPanel = {
54334
54412
  "ui.updates.panel.dismiss.not_now": "ابھی نہیں",
@@ -61809,7 +61887,20 @@ const viUiTeamBridge = {
61809
61887
  "ui.teamBridge.mentions.notice.silent": "Nhắc đến mà không thông báo",
61810
61888
  "ui.teamBridge.mentions.notice.pending": "{name} đã được mời nhưng chưa tham gia nên sẽ không nhận được thông báo.",
61811
61889
  "ui.teamBridge.mentions.notice.invited": "Đã mời {name}. Họ sẽ không nhận được thông báo cho đến khi tham gia.",
61812
- "ui.teamBridge.replies.legacy_window": "Máy chủ này chỉ hỗ trợ hiển thị phản hồi từ cũ đến mới. Tải thêm để tiếp tục."
61890
+ "ui.teamBridge.replies.legacy_window": "Máy chủ này chỉ hỗ trợ hiển thị phản hồi từ cũ đến mới. Tải thêm để tiếp tục.",
61891
+ "ui.teamBridge.delivery.refused": "Không được chuyển tới {agent} ({owner}). Bị bộ kiểm duyệt từ chối.",
61892
+ "ui.teamBridge.delivery.refused_manipulation": "Không được chuyển tới {agent} ({owner}): bị bộ kiểm duyệt của họ từ chối (có vẻ là một nỗ lực thao túng tác nhân)",
61893
+ "ui.teamBridge.delivery.refused_personal_info": "Không được chuyển tới {agent} ({owner}): bị bộ kiểm duyệt của họ từ chối (có vẻ là một yêu cầu thông tin cá nhân)",
61894
+ "ui.teamBridge.delivery.refused_abusive": "Không được chuyển tới {agent} ({owner}): bị bộ kiểm duyệt của họ từ chối (có vẻ là nội dung lăng mạ)",
61895
+ "ui.teamBridge.delivery.refused_unsafe_content": "Không được chuyển tới {agent} ({owner}): bị bộ kiểm duyệt của họ từ chối (có vẻ là nội dung hoặc liên kết không an toàn)",
61896
+ "ui.teamBridge.delivery.refused_out_of_scope": "Không được chuyển tới {agent} ({owner}): bị bộ kiểm duyệt của họ từ chối (có vẻ là một yêu cầu nằm ngoài phạm vi của tác nhân này)",
61897
+ "ui.teamBridge.delivery.held": "Đang chờ {agent} ({owner}) sàng lọc…",
61898
+ "ui.teamBridge.delivery.held_screening_unavailable": "Đang chờ {agent} ({owner}) sàng lọc. Tính năng sàng lọc tạm thời không khả dụng.",
61899
+ "ui.teamBridge.delivery.held_awaiting_review": "Đang chờ {agent} ({owner}) sàng lọc. Tin nhắn đang chờ xem xét.",
61900
+ "ui.teamBridge.delivery.pending": "Đã sàng lọc; đang chờ chuyển tới {agent}",
61901
+ "ui.teamBridge.delivery.info_refused": "Mỗi tác nhân sàng lọc tin nhắn đến bằng bộ kiểm duyệt của chủ sở hữu. Tin nhắn bị từ chối không được chuyển tới tác nhân. Diễn đạt lại yêu cầu thường sẽ giúp ích.",
61902
+ "ui.teamBridge.delivery.info_held": "Mỗi tác nhân sàng lọc tin nhắn đến bằng bộ kiểm duyệt của chủ sở hữu trước khi chuyển tiếp. Tin nhắn này chưa được sàng lọc; tin nhắn sẽ tự động được chuyển tới tác nhân hoặc bị từ chối.",
61903
+ "ui.teamBridge.delivery.info_label": "Giới thiệu về sàng lọc tin nhắn"
61813
61904
  };
61814
61905
  const viUiUpdatesPanel = {
61815
61906
  "ui.updates.panel.dismiss.not_now": "Để sau",
@@ -69290,7 +69381,20 @@ const zhCNUiTeamBridge = {
69290
69381
  "ui.teamBridge.mentions.notice.silent": "提及但不通知",
69291
69382
  "ui.teamBridge.mentions.notice.pending": "{name}已受邀但尚未加入,因此不会收到通知。",
69292
69383
  "ui.teamBridge.mentions.notice.invited": "已邀请{name}。对方加入之前不会收到通知。",
69293
- "ui.teamBridge.replies.legacy_window": "此服务器仅支持从最早的回复开始显示。加载更多以继续。"
69384
+ "ui.teamBridge.replies.legacy_window": "此服务器仅支持从最早的回复开始显示。加载更多以继续。",
69385
+ "ui.teamBridge.delivery.refused": "未送达{agent}({owner})。已被审核拒绝。",
69386
+ "ui.teamBridge.delivery.refused_manipulation": "未送达{agent}({owner}):已被其审核拒绝(看起来像是试图操控该智能体)",
69387
+ "ui.teamBridge.delivery.refused_personal_info": "未送达{agent}({owner}):已被其审核拒绝(看起来像是索取个人信息)",
69388
+ "ui.teamBridge.delivery.refused_abusive": "未送达{agent}({owner}):已被其审核拒绝(看起来像是辱骂性内容)",
69389
+ "ui.teamBridge.delivery.refused_unsafe_content": "未送达{agent}({owner}):已被其审核拒绝(看起来像是不安全的内容或链接)",
69390
+ "ui.teamBridge.delivery.refused_out_of_scope": "未送达{agent}({owner}):已被其审核拒绝(看起来像是超出该智能体处理范围的请求)",
69391
+ "ui.teamBridge.delivery.held": "正在等待{agent}({owner})检查……",
69392
+ "ui.teamBridge.delivery.held_screening_unavailable": "正在等待{agent}({owner})检查。检查暂时不可用。",
69393
+ "ui.teamBridge.delivery.held_awaiting_review": "正在等待{agent}({owner})检查。消息正在等待审核。",
69394
+ "ui.teamBridge.delivery.pending": "已检查;正在等待送达{agent}",
69395
+ "ui.teamBridge.delivery.info_refused": "每个智能体都会使用其所有者的审核设置检查收到的消息。被拒绝的消息未传递给智能体。重新表述请求通常会有帮助。",
69396
+ "ui.teamBridge.delivery.info_held": "每个智能体都会先使用其所有者的审核设置检查收到的消息,然后再传递。此消息尚未检查完成,之后会自动送达或被拒绝。",
69397
+ "ui.teamBridge.delivery.info_label": "关于消息检查"
69294
69398
  };
69295
69399
  const zhCNUiUpdatesPanel = {
69296
69400
  "ui.updates.panel.dismiss.not_now": "暂不",
@@ -81906,7 +82010,15 @@ const METHODS$1 = [
81906
82010
  // `protocol.py`'s METHODS tuple carries them, so the hand-kept mirror stays
81907
82011
  // comparable by eye (D8).
81908
82012
  "record_start",
81909
- "record_stop"
82013
+ "record_stop",
82014
+ // Pointer-move without a press (hover-revealed menus, row actions, tooltips).
82015
+ // APPENDED here so no existing method's index moves on this host. The Python
82016
+ // mirror (`protocol.py`, local-operator#3326) places it right after `press`
82017
+ // instead: the lists are NOT byte-comparable at this entry, and the wire is by
82018
+ // NAME, so `isMethod` admits it either way. Hosts advertise it in
82019
+ // HOST_CAPABILITIES (beside `press`), which is what lets the harness refuse it
82020
+ // on an app that predates it instead of sending an unknown method.
82021
+ "hover"
81910
82022
  ];
81911
82023
  const METHOD_SET = new Set(METHODS$1);
81912
82024
  function isMethod(value) {
@@ -81940,6 +82052,7 @@ const ERROR_CODES = [
81940
82052
  // policy refusal travels as an `ok: true` result here.
81941
82053
  "capability_unsupported",
81942
82054
  // Paired with the core press follow-up before callers use this new method.
82055
+ // Also the refusal for a `press` chord outside the grammar (press-chord.ts).
81943
82056
  "unsupported_key",
81944
82057
  "internal",
81945
82058
  // The console namespace's own additions (design 10.6). Spread rather than copied
@@ -81960,6 +82073,12 @@ const HOST_CAPABILITIES = [
81960
82073
  // Desktop-only trusted keys. Core must capability-gate extension/cmux and
81961
82074
  // older desktop hosts instead of sending them an unknown method.
81962
82075
  "press",
82076
+ // The extended-press flag (see `HostCapabilityToken`). Advertised with the same
82077
+ // change that implements the grammar in `actions/press-chord.ts`, never ahead of it.
82078
+ "press_chord",
82079
+ // `hover` rides the same list as `press` for the same reason: desktop-only, and
82080
+ // the extension/cmux hosts and older desktop apps must be refused by capability.
82081
+ "hover",
81963
82082
  // Session-scoped network capture. DESKTOP-ONLY: the extension's debugger is
81964
82083
  // attached only for the duration of an action, so it holds no standing session
81965
82084
  // to keep a `Network` subscription on. The backend therefore gates these four
@@ -90352,7 +90471,7 @@ function truncateToInt(value, min, max) {
90352
90471
  if (!Number.isFinite(value)) return min;
90353
90472
  return Math.min(Math.max(Math.trunc(value), min), max);
90354
90473
  }
90355
- const NAMED_KEYS$1 = [
90474
+ const NAMED_KEYS$2 = [
90356
90475
  "enter",
90357
90476
  "return",
90358
90477
  "tab",
@@ -91488,8 +91607,8 @@ class ConsoleHost {
91488
91607
  if (unknown !== void 0) {
91489
91608
  throw new ConsoleError(
91490
91609
  "unknown_key",
91491
- `unknown key ${JSON.stringify(unknown)}; accepted: ${NAMED_KEYS$1.join(", ")}`,
91492
- { accepted: [...NAMED_KEYS$1], key: unknown }
91610
+ `unknown key ${JSON.stringify(unknown)}; accepted: ${NAMED_KEYS$2.join(", ")}`,
91611
+ { accepted: [...NAMED_KEYS$2], key: unknown }
91493
91612
  );
91494
91613
  }
91495
91614
  this.markActor(entry, actor);
@@ -100358,6 +100477,10 @@ async function editableInFrame(ctx, contents, scope, target2) {
100358
100477
  );
100359
100478
  return { nodeId: requested?.nodeId ?? 0, objectId };
100360
100479
  }
100480
+ const READ_STYLES_SOURCE = '(selector, properties) => {\n const DEFAULTS = [\n "display",\n "position",\n "visibility",\n "opacity",\n "z-index",\n "transform",\n "transform-origin",\n "top",\n "right",\n "bottom",\n "left",\n "width",\n "height",\n "contain",\n "filter",\n "will-change",\n "overflow",\n "overflow-x",\n "overflow-y",\n "pointer-events"\n ];\n const MAX_MATCHES = 5;\n const MAX_STYLES = 30;\n const MAX_INLINE = 30;\n const MAX_IDENTITY = 120;\n const MAX_VALUE = 200;\n const all = document.querySelectorAll(selector);\n if (!all || all.length === 0) return null;\n const names = DEFAULTS.slice();\n if (Array.isArray(properties)) {\n for (let i = 0; i < properties.length && names.length < MAX_STYLES; i++) {\n const name = String(properties[i] ?? "").trim();\n if (name && names.indexOf(name) === -1) names.push(name);\n }\n }\n const round2 = (value) => {\n const rounded = Math.round(value * 100) / 100;\n return rounded === 0 ? 0 : rounded;\n };\n const clip = (value, limit) => value.length > limit ? value.slice(0, limit - 1) + "\\u2026" : value;\n const rectOf = (el) => {\n const r = el.getBoundingClientRect();\n return {\n x: round2(r.x),\n y: round2(r.y),\n top: round2(r.top),\n right: round2(r.right),\n bottom: round2(r.bottom),\n width: round2(r.width),\n height: round2(r.height)\n };\n };\n const attrOf = (el, name) => clip(el.getAttribute(name) || "", MAX_IDENTITY);\n const matches = [];\n const first = Array.from(all).slice(0, MAX_MATCHES);\n for (const el of first) {\n const computed = getComputedStyle(el);\n const styles = {};\n for (const name of names) {\n styles[name] = clip(String(computed.getPropertyValue(name) || "").trim(), MAX_VALUE);\n }\n const inline = {};\n const declaration = el.style;\n let inlineCount = 0;\n for (let j = 0; j < declaration.length && inlineCount < MAX_INLINE; j++) {\n const name = declaration.item(j);\n if (name && name.indexOf("--") === 0) {\n const key = clip(name, MAX_IDENTITY);\n if (!(key in inline)) {\n inline[key] = clip(\n String(declaration.getPropertyValue(name) || "").trim(),\n MAX_VALUE\n );\n inlineCount += 1;\n }\n }\n }\n matches.push({\n tag: clip(el.tagName.toLowerCase(), MAX_IDENTITY),\n id: attrOf(el, "id"),\n role: attrOf(el, "role"),\n className: attrOf(el, "class"),\n rect: rectOf(el),\n styles,\n inline\n });\n }\n return { count: matches.length, matches, truncated: all.length > matches.length };\n}';
100481
+ const HIT_TEST_SOURCE = '(x, y) => {\n const PROPS = ["display", "position", "visibility", "opacity", "z-index", "pointer-events"];\n const MAX_ELEMENTS = 8;\n const MAX_IDENTITY = 120;\n const MAX_VALUE = 200;\n const px = Number(x);\n const py = Number(y);\n if (!Number.isFinite(px) || !Number.isFinite(py)) return null;\n const stack = document.elementsFromPoint(px, py);\n if (!stack || stack.length === 0) return null;\n const round2 = (value) => {\n const rounded = Math.round(value * 100) / 100;\n return rounded === 0 ? 0 : rounded;\n };\n const clip = (value, limit) => value.length > limit ? value.slice(0, limit - 1) + "\\u2026" : value;\n const attrOf = (el, name) => clip(el.getAttribute(name) || "", MAX_IDENTITY);\n const elements = [];\n for (const el of stack.slice(0, MAX_ELEMENTS)) {\n const computed = getComputedStyle(el);\n const styles = {};\n for (const name of PROPS) {\n styles[name] = clip(String(computed.getPropertyValue(name) || "").trim(), MAX_VALUE);\n }\n const r = el.getBoundingClientRect();\n elements.push({\n tag: clip(el.tagName.toLowerCase(), MAX_IDENTITY),\n id: attrOf(el, "id"),\n role: attrOf(el, "role"),\n className: attrOf(el, "class"),\n rect: {\n x: round2(r.x),\n y: round2(r.y),\n top: round2(r.top),\n right: round2(r.right),\n bottom: round2(r.bottom),\n width: round2(r.width),\n height: round2(r.height)\n },\n styles\n });\n }\n return { count: elements.length, elements };\n}';
100482
+ const ANCESTORS_SOURCE = '(selector, depth) => {\n const PROPS = [\n "display",\n "position",\n "visibility",\n "overflow",\n "overflow-x",\n "overflow-y",\n "transform",\n "transform-origin",\n "contain",\n "filter",\n "will-change",\n "z-index",\n "isolation",\n "top",\n "left"\n ];\n const DEFAULT_DEPTH = 12;\n const MAX_DEPTH = 16;\n const MAX_IDENTITY = 120;\n const MAX_VALUE = 200;\n const el = document.querySelector(selector);\n if (!el) return null;\n const wanted = typeof depth === "number" && Number.isFinite(depth) ? Math.floor(depth) : DEFAULT_DEPTH;\n const bound = Math.max(1, Math.min(MAX_DEPTH, wanted));\n const round2 = (value) => {\n const rounded = Math.round(value * 100) / 100;\n return rounded === 0 ? 0 : rounded;\n };\n const clip = (value, limit) => value.length > limit ? value.slice(0, limit - 1) + "\\u2026" : value;\n const attrOf = (el2, name) => clip(el2.getAttribute(name) || "", MAX_IDENTITY);\n const chain = [];\n let node = el;\n while (node && chain.length < bound) {\n const computed = getComputedStyle(node);\n const styles = {};\n for (const name of PROPS) {\n styles[name] = clip(String(computed.getPropertyValue(name) || "").trim(), MAX_VALUE);\n }\n const r = node.getBoundingClientRect();\n chain.push({\n tag: clip(node.tagName.toLowerCase(), MAX_IDENTITY),\n id: attrOf(node, "id"),\n role: attrOf(node, "role"),\n className: attrOf(node, "class"),\n rect: {\n x: round2(r.x),\n y: round2(r.y),\n top: round2(r.top),\n right: round2(r.right),\n bottom: round2(r.bottom),\n width: round2(r.width),\n height: round2(r.height)\n },\n styles\n });\n if (node === document.documentElement) break;\n node = node.parentElement;\n }\n return { count: chain.length, chain };\n}';
100483
+ const QUERY_SOURCE = '(selector, limit) => {\n const MAX_ELEMENTS = 50;\n const MAX_IDENTITY = 120;\n const MAX_TEXT = 120;\n const MAX_VALUE = 120;\n if (typeof selector !== "string" || !selector.trim()) return null;\n const wanted = typeof limit === "number" && Number.isFinite(limit) ? Math.floor(limit) : 20;\n const bound = Math.max(1, Math.min(MAX_ELEMENTS, wanted));\n const round2 = (value) => {\n const rounded = Math.round(value * 100) / 100;\n return rounded === 0 ? 0 : rounded;\n };\n const clip = (value, cap) => value.length > cap ? `${value.slice(0, cap - 1)}\\u2026` : value;\n const attrOf = (el, name) => clip(String(el.getAttribute(name) || ""), MAX_IDENTITY);\n const visibleOf = (el, rect) => {\n if (rect.width <= 0 || rect.height <= 0) return false;\n const computed = getComputedStyle(el);\n if (computed.display === "none" || computed.visibility === "hidden") return false;\n return computed.contentVisibility !== "hidden";\n };\n let nodes;\n try {\n nodes = Array.from(document.querySelectorAll(selector));\n } catch {\n return { count: 0, truncated: false, matches: [], error: "invalid_selector" };\n }\n const viewport = {\n width: document.documentElement.clientWidth || window.innerWidth || 0,\n height: document.documentElement.clientHeight || window.innerHeight || 0\n };\n const matches = [];\n for (const el of nodes.slice(0, bound)) {\n const rect = el.getBoundingClientRect();\n const tag = clip(String(el.tagName || "").toLowerCase(), MAX_IDENTITY);\n const type = attrOf(el, "type").toLowerCase();\n const isPassword = tag === "input" && type === "password";\n const rawValue = el.value;\n const checkable = tag === "input" && (type === "checkbox" || type === "radio");\n const checked = checkable ? Boolean(el.checked) : null;\n matches.push({\n tag,\n id: attrOf(el, "id"),\n name: attrOf(el, "name"),\n role: attrOf(el, "role"),\n ariaLabel: attrOf(el, "aria-label"),\n // `innerText` is the RENDERED text (a hidden node reports ""), which is\n // what an agent reading a page means by "the text"; `textContent` would\n // report text nobody can see, including inside a collapsed section.\n text: clip(String(el.innerText || "").replace(/\\s+/g, " ").trim(), MAX_TEXT),\n type,\n visible: visibleOf(el, rect),\n inView: rect.top < viewport.height && rect.bottom > 0 && rect.left < viewport.width && rect.right > 0,\n disabled: el.hasAttribute("disabled") || el.disabled === true,\n checked,\n value: isPassword || rawValue === void 0 || rawValue === null ? "" : clip(String(rawValue), MAX_VALUE),\n rect: {\n x: round2(rect.x),\n y: round2(rect.y),\n width: round2(rect.width),\n height: round2(rect.height)\n }\n });\n }\n return { count: nodes.length, truncated: nodes.length > matches.length, matches };\n}';
100361
100484
  const LANDMARKS = /* @__PURE__ */ new Set(["banner", "main", "navigation", "complementary", "contentinfo", "form", "region"]);
100362
100485
  const INTERACTIVE = /* @__PURE__ */ new Set(["button", "link", "textbox", "checkbox", "radio", "combobox", "menuitem", "tab", "switch", "slider", "spinbutton"]);
100363
100486
  function stateSuffix(node) {
@@ -100880,6 +101003,304 @@ async function backendNodeIdForSelector(ctx, view, selector) {
100880
101003
  }
100881
101004
  return backendNodeId;
100882
101005
  }
101006
+ const MAX_REQUESTED_PROPERTIES = 20;
101007
+ const DEFAULT_DEPTH = 12;
101008
+ const MAX_DEPTH = 16;
101009
+ async function runFixed(record, source, args, label) {
101010
+ const code = `(${source})(${args.map((arg) => JSON.stringify(arg)).join(", ")})`;
101011
+ return await deadline(
101012
+ record.view.webContents.executeJavaScriptInIsolatedWorld(
101013
+ ISOLATED_WORLD_ID,
101014
+ [{ code }]
101015
+ ),
101016
+ SCRIPTING_DEADLINE_MS,
101017
+ label
101018
+ );
101019
+ }
101020
+ function selectorError(selector, error) {
101021
+ if (error instanceof Error && INVALID_SELECTOR.test(error.message)) {
101022
+ return new BridgeCommandError(
101023
+ "element_not_found",
101024
+ `selector ${selector} is not valid`
101025
+ );
101026
+ }
101027
+ return error;
101028
+ }
101029
+ function structuredResult(name, result) {
101030
+ if (typeof result !== "object" || result === null) {
101031
+ throw new BridgeCommandError(
101032
+ "internal",
101033
+ `the page returned no structured ${name} result`
101034
+ );
101035
+ }
101036
+ return result;
101037
+ }
101038
+ function requiredSelector(params) {
101039
+ const selector = stringParam(params, "selector");
101040
+ if (!selector) {
101041
+ throw new BridgeCommandError("element_not_found", "selector is required");
101042
+ }
101043
+ return selector;
101044
+ }
101045
+ function requestedProperties(params) {
101046
+ if (!Array.isArray(params.properties)) return [];
101047
+ return params.properties.filter((entry) => typeof entry === "string").slice(0, MAX_REQUESTED_PROPERTIES);
101048
+ }
101049
+ async function styles(ctx, params) {
101050
+ const record = ctx.registry.requireSurface(params.tab);
101051
+ const selector = requiredSelector(params);
101052
+ const properties = requestedProperties(params);
101053
+ let result;
101054
+ try {
101055
+ result = await runFixed(
101056
+ record,
101057
+ READ_STYLES_SOURCE,
101058
+ [selector, properties],
101059
+ `styles(${selector})`
101060
+ );
101061
+ } catch (error) {
101062
+ throw selectorError(selector, error);
101063
+ }
101064
+ if (result === null || result === void 0) {
101065
+ throw new BridgeCommandError(
101066
+ "element_not_found",
101067
+ `selector ${selector} matched nothing`
101068
+ );
101069
+ }
101070
+ ctx.registry.touch(record);
101071
+ return { ...structuredResult("styles", result), ...pageOf(record.view) };
101072
+ }
101073
+ async function hitAt(record, x, y) {
101074
+ return await runFixed(
101075
+ record,
101076
+ HIT_TEST_SOURCE,
101077
+ [x, y],
101078
+ `hit_test(${x}, ${y})`
101079
+ );
101080
+ }
101081
+ async function hitTest(ctx, params) {
101082
+ const record = ctx.registry.requireSurface(params.tab);
101083
+ const x = numberParam(params, "x");
101084
+ const y = numberParam(params, "y");
101085
+ if (x === void 0 || y === void 0) {
101086
+ throw new BridgeCommandError(
101087
+ "internal",
101088
+ "'hit_test' needs numeric x and y (viewport coordinates)"
101089
+ );
101090
+ }
101091
+ const result = await hitAt(record, x, y);
101092
+ if (result === null || result === void 0) {
101093
+ throw new BridgeCommandError(
101094
+ "element_not_found",
101095
+ `no element at point (${x}, ${y})`
101096
+ );
101097
+ }
101098
+ ctx.registry.touch(record);
101099
+ return {
101100
+ ...structuredResult("hit_test", result),
101101
+ ...pageOf(record.view)
101102
+ };
101103
+ }
101104
+ async function ancestors(ctx, params) {
101105
+ const record = ctx.registry.requireSurface(params.tab);
101106
+ const selector = requiredSelector(params);
101107
+ const raw = numberParam(params, "depth");
101108
+ const depth = Math.max(
101109
+ 1,
101110
+ Math.min(MAX_DEPTH, raw === void 0 ? DEFAULT_DEPTH : Math.floor(raw))
101111
+ );
101112
+ let result;
101113
+ try {
101114
+ result = await runFixed(
101115
+ record,
101116
+ ANCESTORS_SOURCE,
101117
+ [selector, depth],
101118
+ `ancestors(${selector})`
101119
+ );
101120
+ } catch (error) {
101121
+ throw selectorError(selector, error);
101122
+ }
101123
+ if (result === null || result === void 0) {
101124
+ throw new BridgeCommandError(
101125
+ "element_not_found",
101126
+ `selector ${selector} matched nothing`
101127
+ );
101128
+ }
101129
+ ctx.registry.touch(record);
101130
+ return {
101131
+ ...structuredResult("ancestors", result),
101132
+ ...pageOf(record.view)
101133
+ };
101134
+ }
101135
+ const MOD_ALT = 1;
101136
+ const MOD_CONTROL = 2;
101137
+ const MOD_META = 4;
101138
+ const MOD_SHIFT = 8;
101139
+ const MODIFIER_ORDER$1 = [
101140
+ ["Control", MOD_CONTROL],
101141
+ ["Alt", MOD_ALT],
101142
+ ["Shift", MOD_SHIFT],
101143
+ ["Meta", MOD_META]
101144
+ ];
101145
+ const MODIFIER_NAMES = /* @__PURE__ */ new Map([
101146
+ ["shift", "Shift"],
101147
+ ["control", "Control"],
101148
+ ["ctrl", "Control"],
101149
+ ["alt", "Alt"],
101150
+ ["meta", "Meta"],
101151
+ ["cmd", "Meta"]
101152
+ ]);
101153
+ const NAMED_KEYS$1 = new Map([
101154
+ [
101155
+ "Backspace",
101156
+ { key: "Backspace", code: "Backspace", windowsVirtualKeyCode: 8 }
101157
+ ],
101158
+ ["Tab", { key: "Tab", code: "Tab", windowsVirtualKeyCode: 9 }],
101159
+ [
101160
+ "Enter",
101161
+ {
101162
+ key: "Enter",
101163
+ code: "Enter",
101164
+ windowsVirtualKeyCode: 13,
101165
+ text: "\r",
101166
+ unmodifiedText: "\r"
101167
+ }
101168
+ ],
101169
+ ["Escape", { key: "Escape", code: "Escape", windowsVirtualKeyCode: 27 }],
101170
+ [
101171
+ "Space",
101172
+ {
101173
+ key: " ",
101174
+ code: "Space",
101175
+ windowsVirtualKeyCode: 32,
101176
+ text: " ",
101177
+ unmodifiedText: " "
101178
+ }
101179
+ ],
101180
+ ["PageUp", { key: "PageUp", code: "PageUp", windowsVirtualKeyCode: 33 }],
101181
+ [
101182
+ "PageDown",
101183
+ { key: "PageDown", code: "PageDown", windowsVirtualKeyCode: 34 }
101184
+ ],
101185
+ ["End", { key: "End", code: "End", windowsVirtualKeyCode: 35 }],
101186
+ ["Home", { key: "Home", code: "Home", windowsVirtualKeyCode: 36 }],
101187
+ [
101188
+ "ArrowLeft",
101189
+ { key: "ArrowLeft", code: "ArrowLeft", windowsVirtualKeyCode: 37 }
101190
+ ],
101191
+ ["ArrowUp", { key: "ArrowUp", code: "ArrowUp", windowsVirtualKeyCode: 38 }],
101192
+ [
101193
+ "ArrowRight",
101194
+ { key: "ArrowRight", code: "ArrowRight", windowsVirtualKeyCode: 39 }
101195
+ ],
101196
+ [
101197
+ "ArrowDown",
101198
+ { key: "ArrowDown", code: "ArrowDown", windowsVirtualKeyCode: 40 }
101199
+ ],
101200
+ ["Delete", { key: "Delete", code: "Delete", windowsVirtualKeyCode: 46 }],
101201
+ ...Array.from({ length: 12 }, (_, index) => {
101202
+ const name = `F${index + 1}`;
101203
+ return [
101204
+ name,
101205
+ { key: name, code: name, windowsVirtualKeyCode: 112 + index }
101206
+ ];
101207
+ })
101208
+ ]);
101209
+ const PUNCTUATION = [
101210
+ ["-_", "Minus", 189],
101211
+ ["=+", "Equal", 187],
101212
+ ["[{", "BracketLeft", 219],
101213
+ ["]}", "BracketRight", 221],
101214
+ ["\\|", "Backslash", 220],
101215
+ [";:", "Semicolon", 186],
101216
+ [`'"`, "Quote", 222],
101217
+ [",<", "Comma", 188],
101218
+ [".>", "Period", 190],
101219
+ ["/?", "Slash", 191],
101220
+ ["`~", "Backquote", 192]
101221
+ ];
101222
+ const SHIFTED_DIGITS = ")!@#$%^&*(";
101223
+ const PRINTABLE_KEYS = (() => {
101224
+ const table = /* @__PURE__ */ new Map();
101225
+ const add = (char, code, windowsVirtualKeyCode, unmodifiedText = char) => {
101226
+ table.set(char, {
101227
+ key: char,
101228
+ code,
101229
+ windowsVirtualKeyCode,
101230
+ text: char,
101231
+ unmodifiedText
101232
+ });
101233
+ };
101234
+ for (let index = 0; index < 26; index += 1) {
101235
+ const lower = String.fromCharCode(97 + index);
101236
+ const code = `Key${lower.toUpperCase()}`;
101237
+ add(lower, code, 65 + index);
101238
+ add(lower.toUpperCase(), code, 65 + index, lower);
101239
+ }
101240
+ for (let digit = 0; digit <= 9; digit += 1) {
101241
+ add(String(digit), `Digit${digit}`, 48 + digit);
101242
+ add(SHIFTED_DIGITS[digit], `Digit${digit}`, 48 + digit, String(digit));
101243
+ }
101244
+ for (const [chars, code, virtualKey] of PUNCTUATION) {
101245
+ for (const char of chars) add(char, code, virtualKey, chars[0]);
101246
+ }
101247
+ return table;
101248
+ })();
101249
+ const LETTER = /^[A-Za-z]$/;
101250
+ const MAX_CHORD_LENGTH = 40;
101251
+ const MAX_ECHO = 24;
101252
+ function describeRefusedKey(key) {
101253
+ const text2 = String(key);
101254
+ return text2.length > MAX_ECHO ? `${text2.slice(0, MAX_ECHO)}...` : text2;
101255
+ }
101256
+ function parsePressChord(input) {
101257
+ if (typeof input !== "string" || input.length === 0) return null;
101258
+ if (input.length > MAX_CHORD_LENGTH) return null;
101259
+ let base;
101260
+ let modifierPart;
101261
+ if (input === "+") {
101262
+ base = "+";
101263
+ modifierPart = "";
101264
+ } else if (input.endsWith("++")) {
101265
+ base = "+";
101266
+ modifierPart = input.slice(0, -2);
101267
+ if (modifierPart === "") return null;
101268
+ } else {
101269
+ const cut = input.lastIndexOf("+");
101270
+ base = cut === -1 ? input : input.slice(cut + 1);
101271
+ modifierPart = cut === -1 ? "" : input.slice(0, cut);
101272
+ if (cut !== -1 && modifierPart === "") return null;
101273
+ }
101274
+ let modifiers = 0;
101275
+ const seen = /* @__PURE__ */ new Set();
101276
+ if (modifierPart !== "") {
101277
+ for (const raw of modifierPart.split("+")) {
101278
+ const name = MODIFIER_NAMES.get(raw.toLowerCase());
101279
+ if (!name || seen.has(name)) return null;
101280
+ seen.add(name);
101281
+ modifiers |= MODIFIER_ORDER$1.find(([n]) => n === name)?.[1] ?? 0;
101282
+ }
101283
+ }
101284
+ const shortcut = (modifiers & (MOD_CONTROL | MOD_META | MOD_ALT)) !== 0;
101285
+ const looked = LETTER.test(base) && (modifiers & MOD_SHIFT) !== 0 ? base.toUpperCase() : LETTER.test(base) && shortcut ? base.toLowerCase() : base;
101286
+ const descriptor = NAMED_KEYS$1.get(base) ?? PRINTABLE_KEYS.get(looked);
101287
+ if (!descriptor) return null;
101288
+ const canonicalModifiers = MODIFIER_ORDER$1.filter(
101289
+ ([name]) => seen.has(name)
101290
+ ).map(([name]) => name);
101291
+ const characterless = shortcut;
101292
+ return {
101293
+ canonical: [...canonicalModifiers, base].join("+"),
101294
+ key: descriptor.key,
101295
+ code: descriptor.code,
101296
+ windowsVirtualKeyCode: descriptor.windowsVirtualKeyCode,
101297
+ modifiers,
101298
+ ...descriptor.text !== void 0 && !characterless ? {
101299
+ text: descriptor.text,
101300
+ unmodifiedText: descriptor.unmodifiedText ?? descriptor.text
101301
+ } : {}
101302
+ };
101303
+ }
100883
101304
  const CLICK_FUNCTION = `function () {
100884
101305
  const r = this.getBoundingClientRect();
100885
101306
  const cx = r.left + r.width / 2, cy = r.top + r.height / 2;
@@ -101258,49 +101679,29 @@ async function click(ctx, params) {
101258
101679
  ...after
101259
101680
  };
101260
101681
  }
101261
- const PRESS_KEYS = /* @__PURE__ */ new Map([
101262
- ["Tab", { key: "Tab", code: "Tab", virtualKeyCode: 9, modifiers: 0 }],
101263
- ["Shift+Tab", { key: "Tab", code: "Tab", virtualKeyCode: 9, modifiers: 8 }],
101264
- ["Enter", { key: "Enter", code: "Enter", virtualKeyCode: 13, modifiers: 0 }],
101265
- [
101266
- "Escape",
101267
- { key: "Escape", code: "Escape", virtualKeyCode: 27, modifiers: 0 }
101268
- ],
101269
- [
101270
- "ArrowUp",
101271
- { key: "ArrowUp", code: "ArrowUp", virtualKeyCode: 38, modifiers: 0 }
101272
- ],
101273
- [
101274
- "ArrowDown",
101275
- { key: "ArrowDown", code: "ArrowDown", virtualKeyCode: 40, modifiers: 0 }
101276
- ],
101277
- [
101278
- "ArrowLeft",
101279
- { key: "ArrowLeft", code: "ArrowLeft", virtualKeyCode: 37, modifiers: 0 }
101280
- ],
101281
- [
101282
- "ArrowRight",
101283
- { key: "ArrowRight", code: "ArrowRight", virtualKeyCode: 39, modifiers: 0 }
101284
- ]
101285
- ]);
101682
+ const FOCUS_FUNCTION = `function () {
101683
+ const focusFn = this.focus;
101684
+ if (typeof focusFn === 'function') focusFn.call(this, { preventScroll: true });
101685
+ return this.getRootNode().activeElement === this;
101686
+ }`;
101286
101687
  async function press(ctx, params) {
101287
- const named = typeof params.key === "string" ? PRESS_KEYS.get(params.key) : void 0;
101288
- if (!named) {
101688
+ const chord = parsePressChord(params.key);
101689
+ if (!chord) {
101289
101690
  throw new BridgeCommandError(
101290
101691
  "unsupported_key",
101291
- `unsupported key: ${String(params.key)}`,
101692
+ `unsupported key: ${describeRefusedKey(params.key)}`,
101292
101693
  {
101293
- key: params.key ?? null
101694
+ key: typeof params.key === "string" ? describeRefusedKey(params.key) : params.key ?? null
101294
101695
  }
101295
101696
  );
101296
101697
  }
101297
101698
  const record = ctx.registry.requireSurface(params.tab);
101298
101699
  const contents = record.view.webContents;
101299
101700
  const event = {
101300
- key: named.key,
101301
- code: named.code,
101302
- windowsVirtualKeyCode: named.virtualKeyCode,
101303
- modifiers: named.modifiers
101701
+ key: chord.key,
101702
+ code: chord.code,
101703
+ windowsVirtualKeyCode: chord.windowsVirtualKeyCode,
101704
+ modifiers: chord.modifiers
101304
101705
  };
101305
101706
  const before = pageOf(record.view).url;
101306
101707
  let navigationSeen = false;
@@ -101309,12 +101710,43 @@ async function press(ctx, params) {
101309
101710
  };
101310
101711
  contents.on("did-start-navigation", onStart);
101311
101712
  try {
101713
+ const target2 = stringParam(params, "ref") || stringParam(params, "selector");
101714
+ let node = null;
101715
+ if (target2) {
101716
+ node = await resolveNode(ctx, record, target2);
101717
+ if (node.sessionId) {
101718
+ throw new BridgeCommandError(
101719
+ "element_not_found",
101720
+ `${target2} is inside a cross-origin frame, which press cannot focus; click it, then press without a selector`
101721
+ );
101722
+ }
101723
+ const focus = await sendIn(
101724
+ ctx,
101725
+ contents,
101726
+ node.sessionId,
101727
+ "Runtime.callFunctionOn",
101728
+ {
101729
+ objectId: node.objectId,
101730
+ functionDeclaration: FOCUS_FUNCTION,
101731
+ returnByValue: true
101732
+ }
101733
+ );
101734
+ if (focus?.result?.value !== true) {
101735
+ throw new BridgeCommandError(
101736
+ "element_not_found",
101737
+ `${target2} cannot take focus (it is not focusable, e.g. a non-interactive element with no tabindex), so nothing was pressed`
101738
+ );
101739
+ }
101740
+ }
101312
101741
  let keyDownFailed = true;
101313
101742
  try {
101314
101743
  await ctx.cdp.send(contents, "Input.dispatchKeyEvent", {
101315
101744
  ...event,
101316
101745
  type: "keyDown",
101317
- ...named.key === "Enter" ? { text: "\r", unmodifiedText: "\r" } : {}
101746
+ // Only a character press with no Control/Meta/Alt held carries text (the
101747
+ // chord parser decides); a shortcut with `text` would also fire
101748
+ // `keypress` and type into an editable.
101749
+ ...chord.text !== void 0 ? { text: chord.text, unmodifiedText: chord.unmodifiedText } : {}
101318
101750
  });
101319
101751
  keyDownFailed = false;
101320
101752
  } finally {
@@ -101331,14 +101763,113 @@ async function press(ctx, params) {
101331
101763
  ctx.registry.touch(record);
101332
101764
  const after = pageOf(record.view);
101333
101765
  return {
101334
- key: params.key,
101766
+ key: chord.canonical,
101335
101767
  navigated: navigationSeen || after.url !== before,
101768
+ ...node ? { ...frameFields(node), ...resolvedFields(node) } : {},
101336
101769
  ...after
101337
101770
  };
101338
101771
  } finally {
101339
101772
  contents.removeListener("did-start-navigation", onStart);
101340
101773
  }
101341
101774
  }
101775
+ const CENTER_FUNCTION = `function () {
101776
+ const r = this.getBoundingClientRect();
101777
+ if (!(r.width > 0 && r.height > 0)) return null;
101778
+ return { x: r.left + r.width / 2, y: r.top + r.height / 2 };
101779
+ }`;
101780
+ function hoveredAt(x, y) {
101781
+ return `(() => { const el = document.elementFromPoint(${x}, ${y}); return !!el && el.matches(':hover'); })()`;
101782
+ }
101783
+ const HOVER_SETTLE_MS = 150;
101784
+ async function hover(ctx, params) {
101785
+ const target2 = stringParam(params, "ref") || stringParam(params, "selector");
101786
+ const px = numberParam(params, "x");
101787
+ const py = numberParam(params, "y");
101788
+ const refuse = (message, param) => {
101789
+ throw new BridgeCommandError("internal", message, {
101790
+ reason: "invalid_arguments",
101791
+ param
101792
+ });
101793
+ };
101794
+ if (target2 && (params.x !== void 0 || params.y !== void 0)) {
101795
+ refuse(
101796
+ "hover takes a selector OR x and y, not both; nothing was moved",
101797
+ "selector"
101798
+ );
101799
+ }
101800
+ if (!target2 && (px === void 0 || py === void 0)) {
101801
+ refuse(
101802
+ "hover needs a selector, or both numeric x and y (viewport pixels); nothing was moved",
101803
+ params.x === void 0 && params.y === void 0 ? "selector" : "x,y"
101804
+ );
101805
+ }
101806
+ const record = ctx.registry.requireSurface(params.tab);
101807
+ const contents = record.view.webContents;
101808
+ let x = px;
101809
+ let y = py;
101810
+ let node = null;
101811
+ if (target2) {
101812
+ node = await resolveNode(ctx, record, target2);
101813
+ if (node.frame) {
101814
+ throw new BridgeCommandError(
101815
+ "element_not_found",
101816
+ `${target2} is inside a frame; hover it by position with x and y (take them from hit_test)`
101817
+ );
101818
+ }
101819
+ const centre = await sendIn(
101820
+ ctx,
101821
+ contents,
101822
+ node.sessionId,
101823
+ "Runtime.callFunctionOn",
101824
+ {
101825
+ objectId: node.objectId,
101826
+ functionDeclaration: CENTER_FUNCTION,
101827
+ returnByValue: true
101828
+ }
101829
+ );
101830
+ const point = centre?.result?.value;
101831
+ if (!point || typeof point.x !== "number" || typeof point.y !== "number") {
101832
+ throw new BridgeCommandError(
101833
+ "element_not_found",
101834
+ `${target2} has no box to point at (display:none, detached or zero-sized), so the pointer was not moved`
101835
+ );
101836
+ }
101837
+ x = Math.round(point.x * 100) / 100;
101838
+ y = Math.round(point.y * 100) / 100;
101839
+ }
101840
+ await ctx.cdp.send(contents, "Input.dispatchMouseEvent", {
101841
+ type: "mouseMoved",
101842
+ x,
101843
+ y,
101844
+ button: "none",
101845
+ buttons: 0,
101846
+ pointerType: "mouse"
101847
+ });
101848
+ await sleep(HOVER_SETTLE_MS);
101849
+ const stack = await hitAt(record, x, y);
101850
+ if (stack === null || stack === void 0) {
101851
+ throw new BridgeCommandError(
101852
+ "element_not_found",
101853
+ `no element at point (${x}, ${y}); the pointer was moved there but nothing is under it`
101854
+ );
101855
+ }
101856
+ const hovered = await sendIn(
101857
+ ctx,
101858
+ contents,
101859
+ void 0,
101860
+ "Runtime.evaluate",
101861
+ { expression: hoveredAt(x, y), returnByValue: true }
101862
+ );
101863
+ ctx.registry.touch(record);
101864
+ return {
101865
+ x,
101866
+ y,
101867
+ hit: stack,
101868
+ hovered: hovered?.result?.value === true,
101869
+ ...node ? { ...frameFields(node), ...resolvedFields(node) } : {},
101870
+ ...pageOf(record.view)
101871
+ };
101872
+ }
101342
101873
  async function type(ctx, params) {
101343
101874
  const record = ctx.registry.requireSurface(params.tab);
101344
101875
  const contents = record.view.webContents;
@@ -101511,136 +102042,6 @@ function clampTimeout(requested) {
101511
102042
  if (!Number.isFinite(wanted) || wanted <= 0) return CAPS.downloadTimeoutS;
101512
102043
  return Math.min(wanted, CAPS.downloadTimeoutMaxS);
101513
102044
  }
101514
- const READ_STYLES_SOURCE = '(selector, properties) => {\n const DEFAULTS = [\n "display",\n "position",\n "visibility",\n "opacity",\n "z-index",\n "transform",\n "transform-origin",\n "top",\n "right",\n "bottom",\n "left",\n "width",\n "height",\n "contain",\n "filter",\n "will-change",\n "overflow",\n "overflow-x",\n "overflow-y",\n "pointer-events"\n ];\n const MAX_MATCHES = 5;\n const MAX_STYLES = 30;\n const MAX_INLINE = 30;\n const MAX_IDENTITY = 120;\n const MAX_VALUE = 200;\n const all = document.querySelectorAll(selector);\n if (!all || all.length === 0) return null;\n const names = DEFAULTS.slice();\n if (Array.isArray(properties)) {\n for (let i = 0; i < properties.length && names.length < MAX_STYLES; i++) {\n const name = String(properties[i] ?? "").trim();\n if (name && names.indexOf(name) === -1) names.push(name);\n }\n }\n const round2 = (value) => {\n const rounded = Math.round(value * 100) / 100;\n return rounded === 0 ? 0 : rounded;\n };\n const clip = (value, limit) => value.length > limit ? value.slice(0, limit - 1) + "\\u2026" : value;\n const rectOf = (el) => {\n const r = el.getBoundingClientRect();\n return {\n x: round2(r.x),\n y: round2(r.y),\n top: round2(r.top),\n right: round2(r.right),\n bottom: round2(r.bottom),\n width: round2(r.width),\n height: round2(r.height)\n };\n };\n const attrOf = (el, name) => clip(el.getAttribute(name) || "", MAX_IDENTITY);\n const matches = [];\n const first = Array.from(all).slice(0, MAX_MATCHES);\n for (const el of first) {\n const computed = getComputedStyle(el);\n const styles = {};\n for (const name of names) {\n styles[name] = clip(String(computed.getPropertyValue(name) || "").trim(), MAX_VALUE);\n }\n const inline = {};\n const declaration = el.style;\n let inlineCount = 0;\n for (let j = 0; j < declaration.length && inlineCount < MAX_INLINE; j++) {\n const name = declaration.item(j);\n if (name && name.indexOf("--") === 0) {\n const key = clip(name, MAX_IDENTITY);\n if (!(key in inline)) {\n inline[key] = clip(\n String(declaration.getPropertyValue(name) || "").trim(),\n MAX_VALUE\n );\n inlineCount += 1;\n }\n }\n }\n matches.push({\n tag: clip(el.tagName.toLowerCase(), MAX_IDENTITY),\n id: attrOf(el, "id"),\n role: attrOf(el, "role"),\n className: attrOf(el, "class"),\n rect: rectOf(el),\n styles,\n inline\n });\n }\n return { count: matches.length, matches, truncated: all.length > matches.length };\n}';
101515
- const HIT_TEST_SOURCE = '(x, y) => {\n const PROPS = ["display", "position", "visibility", "opacity", "z-index", "pointer-events"];\n const MAX_ELEMENTS = 8;\n const MAX_IDENTITY = 120;\n const MAX_VALUE = 200;\n const px = Number(x);\n const py = Number(y);\n if (!Number.isFinite(px) || !Number.isFinite(py)) return null;\n const stack = document.elementsFromPoint(px, py);\n if (!stack || stack.length === 0) return null;\n const round2 = (value) => {\n const rounded = Math.round(value * 100) / 100;\n return rounded === 0 ? 0 : rounded;\n };\n const clip = (value, limit) => value.length > limit ? value.slice(0, limit - 1) + "\\u2026" : value;\n const attrOf = (el, name) => clip(el.getAttribute(name) || "", MAX_IDENTITY);\n const elements = [];\n for (const el of stack.slice(0, MAX_ELEMENTS)) {\n const computed = getComputedStyle(el);\n const styles = {};\n for (const name of PROPS) {\n styles[name] = clip(String(computed.getPropertyValue(name) || "").trim(), MAX_VALUE);\n }\n const r = el.getBoundingClientRect();\n elements.push({\n tag: clip(el.tagName.toLowerCase(), MAX_IDENTITY),\n id: attrOf(el, "id"),\n role: attrOf(el, "role"),\n className: attrOf(el, "class"),\n rect: {\n x: round2(r.x),\n y: round2(r.y),\n top: round2(r.top),\n right: round2(r.right),\n bottom: round2(r.bottom),\n width: round2(r.width),\n height: round2(r.height)\n },\n styles\n });\n }\n return { count: elements.length, elements };\n}';
101516
- const ANCESTORS_SOURCE = '(selector, depth) => {\n const PROPS = [\n "display",\n "position",\n "visibility",\n "overflow",\n "overflow-x",\n "overflow-y",\n "transform",\n "transform-origin",\n "contain",\n "filter",\n "will-change",\n "z-index",\n "isolation",\n "top",\n "left"\n ];\n const DEFAULT_DEPTH = 12;\n const MAX_DEPTH = 16;\n const MAX_IDENTITY = 120;\n const MAX_VALUE = 200;\n const el = document.querySelector(selector);\n if (!el) return null;\n const wanted = typeof depth === "number" && Number.isFinite(depth) ? Math.floor(depth) : DEFAULT_DEPTH;\n const bound = Math.max(1, Math.min(MAX_DEPTH, wanted));\n const round2 = (value) => {\n const rounded = Math.round(value * 100) / 100;\n return rounded === 0 ? 0 : rounded;\n };\n const clip = (value, limit) => value.length > limit ? value.slice(0, limit - 1) + "\\u2026" : value;\n const attrOf = (el2, name) => clip(el2.getAttribute(name) || "", MAX_IDENTITY);\n const chain = [];\n let node = el;\n while (node && chain.length < bound) {\n const computed = getComputedStyle(node);\n const styles = {};\n for (const name of PROPS) {\n styles[name] = clip(String(computed.getPropertyValue(name) || "").trim(), MAX_VALUE);\n }\n const r = node.getBoundingClientRect();\n chain.push({\n tag: clip(node.tagName.toLowerCase(), MAX_IDENTITY),\n id: attrOf(node, "id"),\n role: attrOf(node, "role"),\n className: attrOf(node, "class"),\n rect: {\n x: round2(r.x),\n y: round2(r.y),\n top: round2(r.top),\n right: round2(r.right),\n bottom: round2(r.bottom),\n width: round2(r.width),\n height: round2(r.height)\n },\n styles\n });\n if (node === document.documentElement) break;\n node = node.parentElement;\n }\n return { count: chain.length, chain };\n}';
101517
- const QUERY_SOURCE = '(selector, limit) => {\n const MAX_ELEMENTS = 50;\n const MAX_IDENTITY = 120;\n const MAX_TEXT = 120;\n const MAX_VALUE = 120;\n if (typeof selector !== "string" || !selector.trim()) return null;\n const wanted = typeof limit === "number" && Number.isFinite(limit) ? Math.floor(limit) : 20;\n const bound = Math.max(1, Math.min(MAX_ELEMENTS, wanted));\n const round2 = (value) => {\n const rounded = Math.round(value * 100) / 100;\n return rounded === 0 ? 0 : rounded;\n };\n const clip = (value, cap) => value.length > cap ? `${value.slice(0, cap - 1)}\\u2026` : value;\n const attrOf = (el, name) => clip(String(el.getAttribute(name) || ""), MAX_IDENTITY);\n const visibleOf = (el, rect) => {\n if (rect.width <= 0 || rect.height <= 0) return false;\n const computed = getComputedStyle(el);\n if (computed.display === "none" || computed.visibility === "hidden") return false;\n return computed.contentVisibility !== "hidden";\n };\n let nodes;\n try {\n nodes = Array.from(document.querySelectorAll(selector));\n } catch {\n return { count: 0, truncated: false, matches: [], error: "invalid_selector" };\n }\n const viewport = {\n width: document.documentElement.clientWidth || window.innerWidth || 0,\n height: document.documentElement.clientHeight || window.innerHeight || 0\n };\n const matches = [];\n for (const el of nodes.slice(0, bound)) {\n const rect = el.getBoundingClientRect();\n const tag = clip(String(el.tagName || "").toLowerCase(), MAX_IDENTITY);\n const type = attrOf(el, "type").toLowerCase();\n const isPassword = tag === "input" && type === "password";\n const rawValue = el.value;\n const checkable = tag === "input" && (type === "checkbox" || type === "radio");\n const checked = checkable ? Boolean(el.checked) : null;\n matches.push({\n tag,\n id: attrOf(el, "id"),\n name: attrOf(el, "name"),\n role: attrOf(el, "role"),\n ariaLabel: attrOf(el, "aria-label"),\n // `innerText` is the RENDERED text (a hidden node reports ""), which is\n // what an agent reading a page means by "the text"; `textContent` would\n // report text nobody can see, including inside a collapsed section.\n text: clip(String(el.innerText || "").replace(/\\s+/g, " ").trim(), MAX_TEXT),\n type,\n visible: visibleOf(el, rect),\n inView: rect.top < viewport.height && rect.bottom > 0 && rect.left < viewport.width && rect.right > 0,\n disabled: el.hasAttribute("disabled") || el.disabled === true,\n checked,\n value: isPassword || rawValue === void 0 || rawValue === null ? "" : clip(String(rawValue), MAX_VALUE),\n rect: {\n x: round2(rect.x),\n y: round2(rect.y),\n width: round2(rect.width),\n height: round2(rect.height)\n }\n });\n }\n return { count: nodes.length, truncated: nodes.length > matches.length, matches };\n}';
101518
- const MAX_REQUESTED_PROPERTIES = 20;
101519
- const DEFAULT_DEPTH = 12;
101520
- const MAX_DEPTH = 16;
101521
- async function runFixed(record, source, args, label) {
101522
- const code = `(${source})(${args.map((arg) => JSON.stringify(arg)).join(", ")})`;
101523
- return await deadline(
101524
- record.view.webContents.executeJavaScriptInIsolatedWorld(
101525
- ISOLATED_WORLD_ID,
101526
- [{ code }]
101527
- ),
101528
- SCRIPTING_DEADLINE_MS,
101529
- label
101530
- );
101531
- }
101532
- function selectorError(selector, error) {
101533
- if (error instanceof Error && INVALID_SELECTOR.test(error.message)) {
101534
- return new BridgeCommandError(
101535
- "element_not_found",
101536
- `selector ${selector} is not valid`
101537
- );
101538
- }
101539
- return error;
101540
- }
101541
- function structuredResult(name, result) {
101542
- if (typeof result !== "object" || result === null) {
101543
- throw new BridgeCommandError(
101544
- "internal",
101545
- `the page returned no structured ${name} result`
101546
- );
101547
- }
101548
- return result;
101549
- }
101550
- function requiredSelector(params) {
101551
- const selector = stringParam(params, "selector");
101552
- if (!selector) {
101553
- throw new BridgeCommandError("element_not_found", "selector is required");
101554
- }
101555
- return selector;
101556
- }
101557
- function requestedProperties(params) {
101558
- if (!Array.isArray(params.properties)) return [];
101559
- return params.properties.filter((entry) => typeof entry === "string").slice(0, MAX_REQUESTED_PROPERTIES);
101560
- }
101561
- async function styles(ctx, params) {
101562
- const record = ctx.registry.requireSurface(params.tab);
101563
- const selector = requiredSelector(params);
101564
- const properties = requestedProperties(params);
101565
- let result;
101566
- try {
101567
- result = await runFixed(
101568
- record,
101569
- READ_STYLES_SOURCE,
101570
- [selector, properties],
101571
- `styles(${selector})`
101572
- );
101573
- } catch (error) {
101574
- throw selectorError(selector, error);
101575
- }
101576
- if (result === null || result === void 0) {
101577
- throw new BridgeCommandError(
101578
- "element_not_found",
101579
- `selector ${selector} matched nothing`
101580
- );
101581
- }
101582
- ctx.registry.touch(record);
101583
- return { ...structuredResult("styles", result), ...pageOf(record.view) };
101584
- }
101585
- async function hitTest(ctx, params) {
101586
- const record = ctx.registry.requireSurface(params.tab);
101587
- const x = numberParam(params, "x");
101588
- const y = numberParam(params, "y");
101589
- if (x === void 0 || y === void 0) {
101590
- throw new BridgeCommandError(
101591
- "internal",
101592
- "'hit_test' needs numeric x and y (viewport coordinates)"
101593
- );
101594
- }
101595
- const result = await runFixed(
101596
- record,
101597
- HIT_TEST_SOURCE,
101598
- [x, y],
101599
- `hit_test(${x}, ${y})`
101600
- );
101601
- if (result === null || result === void 0) {
101602
- throw new BridgeCommandError(
101603
- "element_not_found",
101604
- `no element at point (${x}, ${y})`
101605
- );
101606
- }
101607
- ctx.registry.touch(record);
101608
- return {
101609
- ...structuredResult("hit_test", result),
101610
- ...pageOf(record.view)
101611
- };
101612
- }
101613
- async function ancestors(ctx, params) {
101614
- const record = ctx.registry.requireSurface(params.tab);
101615
- const selector = requiredSelector(params);
101616
- const raw = numberParam(params, "depth");
101617
- const depth = Math.max(
101618
- 1,
101619
- Math.min(MAX_DEPTH, raw === void 0 ? DEFAULT_DEPTH : Math.floor(raw))
101620
- );
101621
- let result;
101622
- try {
101623
- result = await runFixed(
101624
- record,
101625
- ANCESTORS_SOURCE,
101626
- [selector, depth],
101627
- `ancestors(${selector})`
101628
- );
101629
- } catch (error) {
101630
- throw selectorError(selector, error);
101631
- }
101632
- if (result === null || result === void 0) {
101633
- throw new BridgeCommandError(
101634
- "element_not_found",
101635
- `selector ${selector} matched nothing`
101636
- );
101637
- }
101638
- ctx.registry.touch(record);
101639
- return {
101640
- ...structuredResult("ancestors", result),
101641
- ...pageOf(record.view)
101642
- };
101643
- }
101644
102045
  const DEFAULT_LIMIT = 20;
101645
102046
  const MAX_LIMIT = 50;
101646
102047
  async function query(ctx, params) {
@@ -103541,6 +103942,9 @@ const DOCUMENT_SCOPED = /* @__PURE__ */ new Set([
103541
103942
  "click",
103542
103943
  "type",
103543
103944
  "press",
103945
+ // `hover` dispatches page events at the CURRENT document and reports its hit
103946
+ // stack, so it is authorized on entry and on the result exactly like `click`.
103947
+ "hover",
103544
103948
  "scroll",
103545
103949
  "logs",
103546
103950
  // `download` names a control on the CURRENT document (the link or button that
@@ -103565,6 +103969,15 @@ const NAVIGATING_ACTIONS = /* @__PURE__ */ new Set([
103565
103969
  "click",
103566
103970
  "type",
103567
103971
  "press",
103972
+ // `hover` cannot navigate by ITSELF, but the page's own `mouseenter`/`mouseover`
103973
+ // handler can (menus and router links do exactly that), and measured against the
103974
+ // built app (scripts/browser-hover-press-proof.mjs, `/navhover`) a hover whose
103975
+ // handler sent the tab to an unapproved origin was refused with `origin_not_allowed`
103976
+ // while the tab STAYED on the unapproved page. Membership here is what restores it
103977
+ // to the entry document (and adopts an approved landing instead of reporting
103978
+ // `changed`). It is deliberately NOT in NAVIGATION_ACTIONS: no per-hop `Fetch`
103979
+ // gate, for the reason that set's comment gives.
103980
+ "hover",
103568
103981
  "download",
103569
103982
  "upload"
103570
103983
  ]);
@@ -103585,6 +103998,7 @@ const TAB_SCOPED = /* @__PURE__ */ new Set([
103585
103998
  "click",
103586
103999
  "type",
103587
104000
  "press",
104001
+ "hover",
103588
104002
  "scroll",
103589
104003
  "logs",
103590
104004
  "close",
@@ -103773,7 +104187,13 @@ class BrowserHost {
103773
104187
  assertDocument();
103774
104188
  const operation = async () => {
103775
104189
  assertDocument();
103776
- const result = await this.perform(method, params, requestId2);
104190
+ let result;
104191
+ try {
104192
+ result = await this.perform(method, params, requestId2);
104193
+ } catch (error) {
104194
+ if (NAVIGATING_ACTIONS.has(method)) assertDocument();
104195
+ throw error;
104196
+ }
103777
104197
  try {
103778
104198
  assertDocument();
103779
104199
  } catch (error) {
@@ -103855,6 +104275,8 @@ class BrowserHost {
103855
104275
  return type(this, params);
103856
104276
  case "press":
103857
104277
  return press(this, params);
104278
+ case "hover":
104279
+ return hover(this, params);
103858
104280
  case "download":
103859
104281
  return download(this, params);
103860
104282
  case "upload":