@capagents/forgeqe 3.2.4 → 3.2.6

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 (152) hide show
  1. package/HOW_TO_USE.md +9 -5
  2. package/dist/docs-site/docs/architecture-reference/index.html +1 -0
  3. package/dist/docs-site/docs/area-api/index.html +17 -4
  4. package/dist/docs-site/docs/area-mobile/index.html +4 -1
  5. package/dist/docs-site/docs/get-started/index.html +7 -4
  6. package/dist/docs-site/docs/mobile/index.html +4 -1
  7. package/dist/docs-site/docs/overview/index.html +1 -1
  8. package/dist/docs-site/docs/search.js +1 -1
  9. package/dist/docs-site/docs/web-app/index.html +4 -1
  10. package/dist/forgeqe.js +1911 -1896
  11. package/dist/web/THIRD_PARTY_NOTICES.md +101 -0
  12. package/dist/web/assets/{3d-force-graph-iP39yI0v.js → 3d-force-graph-CNVqakzA.js} +1 -1
  13. package/dist/web/assets/Agent-CAp1dIHx.js +8 -0
  14. package/dist/web/assets/AgentWork-DxO8FN6U.js +2 -0
  15. package/dist/web/assets/ApiTests-XQ8wXCBj.js +14 -0
  16. package/dist/web/assets/Browse-BP1oToo4.js +1 -0
  17. package/dist/web/assets/Chat-DjIdHvHj.js +3 -0
  18. package/dist/web/assets/{CommandPalette-B6QRxOka.js → CommandPalette-rNWxEO_C.js} +1 -1
  19. package/dist/web/assets/{Compare-hz0ft2yP.js → Compare-DwUP21-2.js} +1 -1
  20. package/dist/web/assets/Cost-qZ-gGn2T.js +1 -0
  21. package/dist/web/assets/Data-AlbKk5zW.js +6 -0
  22. package/dist/web/assets/Desktop-yGPlxyBz.js +1 -0
  23. package/dist/web/assets/DesktopReview-BlpxN07L.js +2 -0
  24. package/dist/web/assets/{DeviceScreen-ClPTc5Ot.js → DeviceScreen-BQKsJonx.js} +1 -1
  25. package/dist/web/assets/Evidence-BCodp0GV.js +1 -0
  26. package/dist/web/assets/{Explore-CjowiWJe.js → Explore-Ck5EEDy7.js} +2 -2
  27. package/dist/web/assets/Features-BOQomaU8.js +1 -0
  28. package/dist/web/assets/Flags-DjolLE4S.js +2 -0
  29. package/dist/web/assets/Flaky-D-xnPfil.js +1 -0
  30. package/dist/web/assets/Impact-CoNLaNwy.js +3 -0
  31. package/dist/web/assets/{Jobs-U9kJUVM9.js → Jobs-_kBd2W3F.js} +4 -4
  32. package/dist/web/assets/KindPage-DfnkzpPj.js +6 -0
  33. package/dist/web/assets/LiveDevice-DRAN4Gl4.js +1 -0
  34. package/dist/web/assets/{Migration-BDDE_0TS.js → Migration-PETc1Ckc.js} +5 -5
  35. package/dist/web/assets/Mobile-B193VBXu.js +1 -0
  36. package/dist/web/assets/Observability-CvdV37XD.js +1 -0
  37. package/dist/web/assets/PageAgent-BJguufGW.js +1 -0
  38. package/dist/web/assets/{Product-DkEI-0vu.js → Product-Cmgcj9fr.js} +4 -4
  39. package/dist/web/assets/Production-DM62n03j.js +1 -0
  40. package/dist/web/assets/Quality-DbgAAeel.js +1 -0
  41. package/dist/web/assets/Readiness-CojmD235.js +1 -0
  42. package/dist/web/assets/Record-C4VFM97k.js +1 -0
  43. package/dist/web/assets/Regression-5mma_vyD.js +5 -0
  44. package/dist/web/assets/{RelationGraph-BnhbeI6t.js → RelationGraph-bDvvcead.js} +1 -1
  45. package/dist/web/assets/Reports-BeSrlzKk.js +2 -0
  46. package/dist/web/assets/Responsive-B4CkMBwF.js +3 -0
  47. package/dist/web/assets/RunDiff-DGThx7bk.js +1 -0
  48. package/dist/web/assets/Settings-IjfPYiuf.js +21 -0
  49. package/dist/web/assets/{Steps-C18OGSAM.js → Steps-BPSNI3aY.js} +1 -1
  50. package/dist/web/assets/TestCases-hIuP5BLu.js +1 -0
  51. package/dist/web/assets/TestData-DpAMEMLP.js +2 -0
  52. package/dist/web/assets/TestDebt-D6UjJCpY.js +1 -0
  53. package/dist/web/assets/TestManagement-CTWh-aA8.js +4 -0
  54. package/dist/web/assets/WhatsNew-DMDg1zmv.js +1 -0
  55. package/dist/web/assets/agentSettingsSheet-CUogAKga.js +1 -0
  56. package/dist/web/assets/{dataParts-D08j24QD.js → dataParts-s8iIR3Ad.js} +3 -3
  57. package/dist/web/assets/default-DB4ZMZxa.js +1 -0
  58. package/dist/web/assets/{desktopAppPath-DyQr1aFk.js → desktopAppPath-CnmfVr-s.js} +1 -1
  59. package/dist/web/assets/frame-DNgVKrlp.js +13 -0
  60. package/dist/web/assets/geist-cyrillic-400-normal-DXusLSnH.woff2 +0 -0
  61. package/dist/web/assets/geist-cyrillic-400-normal-DkrqoNl2.woff +0 -0
  62. package/dist/web/assets/geist-cyrillic-500-normal-BboVsk8R.woff +0 -0
  63. package/dist/web/assets/geist-cyrillic-500-normal-NWpm63d5.woff2 +0 -0
  64. package/dist/web/assets/geist-cyrillic-ext-400-normal-ChfpGzr5.woff +0 -0
  65. package/dist/web/assets/geist-cyrillic-ext-500-normal-BXrH8YSv.woff +0 -0
  66. package/dist/web/assets/geist-latin-400-normal-B40WzpMT.woff2 +0 -0
  67. package/dist/web/assets/geist-latin-400-normal-akEymXtG.woff +0 -0
  68. package/dist/web/assets/geist-latin-500-normal-BDXIbFrL.woff +0 -0
  69. package/dist/web/assets/geist-latin-500-normal-CTWBw9NS.woff2 +0 -0
  70. package/dist/web/assets/geist-latin-ext-400-normal-Bz1pQMyt.woff +0 -0
  71. package/dist/web/assets/geist-latin-ext-400-normal-CND6cjiG.woff2 +0 -0
  72. package/dist/web/assets/geist-latin-ext-500-normal-BovoTgeE.woff2 +0 -0
  73. package/dist/web/assets/geist-latin-ext-500-normal-C9fx-R30.woff +0 -0
  74. package/dist/web/assets/geist-vietnamese-400-normal-C8xY9-dI.woff +0 -0
  75. package/dist/web/assets/geist-vietnamese-500-normal-_b1ojCbH.woff +0 -0
  76. package/dist/web/assets/{highlight-BpaRxd70.js → highlight-b70fFRUT.js} +1 -1
  77. package/dist/web/assets/index-BBJ_SKdO.js +56 -0
  78. package/dist/web/assets/index-hysPD6U9.css +2 -0
  79. package/dist/web/assets/input-FbzQKk3L.js +1 -0
  80. package/dist/web/assets/markdown-1z66EzBR.js +8 -0
  81. package/dist/web/assets/pageBack-B6bY6ZUl.js +3 -0
  82. package/dist/web/assets/palette-C5Ok5Zd1.js +1 -0
  83. package/dist/web/assets/paletteCommands-CwHwpVqt.js +1 -0
  84. package/dist/web/assets/{parts-eyvIPENF.js → parts-Dqq6noWp.js} +1 -1
  85. package/dist/web/assets/productParts-DNSo4bn5.js +1 -0
  86. package/dist/web/assets/qualityParts-kh6SukEP.js +1 -0
  87. package/dist/web/assets/{recordTest-vps_1X_-.js → recordTest-BCxsm3gC.js} +1 -1
  88. package/dist/web/assets/sectionList-BlwEtA8S.js +1 -0
  89. package/dist/web/assets/{stepper-Cb6rnj2p.js → stepper-ByKrM1LP.js} +1 -1
  90. package/dist/web/assets/when-BuWCTaKm.js +1 -0
  91. package/dist/web/index.html +10 -6
  92. package/docs/ARCHITECTURE_REFERENCE.md +1 -0
  93. package/docs/MOBILE.md +4 -1
  94. package/docs/WEB_APP.md +4 -1
  95. package/docs/user-guide.html +20 -4
  96. package/forgeqe.example.yaml +3 -2
  97. package/llms.example.json +22 -0
  98. package/package.json +1 -1
  99. package/prompts/test-agent.md +0 -2
  100. package/prompts/test-rules.md +3 -8
  101. package/py/forgeqe_desktop/replay.py +46 -1
  102. package/py/forgeqe_desktop/workflow.py +60 -7
  103. package/py/forgeqe_engine/cli.py +6 -2
  104. package/py/forgeqe_engine/copilot_gateway.py +208 -23
  105. package/py/forgeqe_engine/recordsession.py +4 -2
  106. package/py/forgeqe_mobile/maestro.py +3 -0
  107. package/dist/web/assets/Agent-COXI7WgW.js +0 -8
  108. package/dist/web/assets/AgentWork-LD5CQxet.js +0 -2
  109. package/dist/web/assets/ApiTests-Dpwqmpr1.js +0 -14
  110. package/dist/web/assets/Browse-DIcTvI-C.js +0 -1
  111. package/dist/web/assets/Chat-DNw_jYbD.js +0 -3
  112. package/dist/web/assets/Cost-C231Bf_A.js +0 -1
  113. package/dist/web/assets/Data-DODs050c.js +0 -6
  114. package/dist/web/assets/Desktop-CUV43rdi.js +0 -1
  115. package/dist/web/assets/DesktopReview-WEIFBq-L.js +0 -2
  116. package/dist/web/assets/Evidence-DhN_bTZ-.js +0 -1
  117. package/dist/web/assets/Features-BnagyBie.js +0 -1
  118. package/dist/web/assets/Flags-DlkY7U4M.js +0 -2
  119. package/dist/web/assets/Flaky-BkD01mRw.js +0 -1
  120. package/dist/web/assets/Impact-BM4_vIEv.js +0 -3
  121. package/dist/web/assets/KindPage-BkK5AQw0.js +0 -6
  122. package/dist/web/assets/LiveDevice-Bjc2r797.js +0 -1
  123. package/dist/web/assets/Mobile-D2qAF8X5.js +0 -1
  124. package/dist/web/assets/Observability-CLFC0ze7.js +0 -1
  125. package/dist/web/assets/PageAgent-Dz5CuEUe.js +0 -1
  126. package/dist/web/assets/Production-CgfLjbSa.js +0 -1
  127. package/dist/web/assets/Quality-8E667GJi.js +0 -1
  128. package/dist/web/assets/Readiness-Bbkq2lNV.js +0 -1
  129. package/dist/web/assets/Record-JR4HeyTe.js +0 -1
  130. package/dist/web/assets/Regression-_9u6qDMk.js +0 -5
  131. package/dist/web/assets/Reports-DxjHb0vA.js +0 -2
  132. package/dist/web/assets/Response-BvQV20vS.js +0 -9
  133. package/dist/web/assets/Responsive-DNC31nTr.js +0 -3
  134. package/dist/web/assets/RunDiff-BXqh9adv.js +0 -1
  135. package/dist/web/assets/Runs-PsPMVpQl.js +0 -2
  136. package/dist/web/assets/Settings-DEOCWX5o.js +0 -21
  137. package/dist/web/assets/TestCases-MIOqrvt0.js +0 -1
  138. package/dist/web/assets/TestData-DtPsGVwq.js +0 -2
  139. package/dist/web/assets/TestDebt-C8zEVY4j.js +0 -1
  140. package/dist/web/assets/TestManagement-cXbBFksQ.js +0 -4
  141. package/dist/web/assets/WhatsNew-vGPOJXT2.js +0 -1
  142. package/dist/web/assets/agents-DPabR9dS.js +0 -1
  143. package/dist/web/assets/diff-CVufIkRR.js +0 -2
  144. package/dist/web/assets/families-CrnKBjis.js +0 -1
  145. package/dist/web/assets/index-FhirFP-O.css +0 -2
  146. package/dist/web/assets/index-q1r33z9g.js +0 -64
  147. package/dist/web/assets/input-ChhA0xMm.js +0 -1
  148. package/dist/web/assets/pageBack-Dhl5PHZE.js +0 -3
  149. package/dist/web/assets/palette-CpGAHix6.js +0 -1
  150. package/dist/web/assets/paletteCommands-Der7qNEc.js +0 -1
  151. package/dist/web/assets/productParts-2Y8IjOa0.js +0 -1
  152. package/dist/web/assets/qualityParts-CdoLEG3a.js +0 -1
@@ -0,0 +1 @@
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{A as t,Er as n,H as r,Hr as i,I as a,Jt as o,Kr as s,Nt as c,Tr as l,_t as u,a as d,lt as f,r as p,u as m,wr as h}from"./route-D8G-pTdk.js";import{t as g}from"./jsx-runtime-LKYXHABd.js";import{A as _,Tt as v,t as y}from"./input-FbzQKk3L.js";import{E as b,c as x,i as S,w as C}from"./pageBack-B6bY6ZUl.js";import{ct as w,lt as T,ot as E,st as D,ut as O}from"./frame-DNgVKrlp.js";import{t as k}from"./when-BuWCTaKm.js";import{n as A,o as j}from"./markdown-1z66EzBR.js";import{q as M}from"./index-BBJ_SKdO.js";var N=e(s(),1),P=g(),F=[`critical`,`serious`,`moderate`,`minor`],I={critical:`fail`,serious:`fail`,moderate:`warn`,minor:`neutral`},L=[{key:`lcp`,label:`LCP`,good:2500,poor:4e3,unit:`ms`},{key:`cls`,label:`CLS`,good:.1,poor:.25,unit:``},{key:`inp`,label:`INP`,good:200,poor:500,unit:`ms`},{key:`fcp`,label:`FCP`,good:1800,poor:3e3,unit:`ms`},{key:`ttfb`,label:`TTFB`,good:800,poor:1800,unit:`ms`},{key:`load`,label:`Load`,good:1/0,poor:1/0,unit:`ms`}],R={same:{label:`Same`,tone:`pass`},changed:{label:`Changed`,tone:`warn`},new:{label:`New baseline`,tone:`neutral`},no_baseline:{label:`No baseline`,tone:`neutral`}},z=e=>new Date(e).toLocaleString([],{month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`}),B=(e,t)=>t?e>=1e3?`${(e/1e3).toFixed(1)}s`:`${Math.round(e)}ms`:e.toFixed(3).replace(/(?<!0)0+$/,``).replace(/\.$/,``),V=(e,t)=>`${e} ${t}${e===1?``:`s`}`,ee=e=>e.replace(/(data:[\w/+.-]+;base64,)[A-Za-z0-9+/=]{24,}/g,`$1…`),H=e=>{try{let t=new URL(e),n=t.pathname===`/`?``:t.pathname.length>44?`${t.pathname.slice(0,20)}…${t.pathname.slice(-20)}`:t.pathname;return`${t.host}${n}${t.search?`?…`:``}`}catch{return e.length>70?`${e.slice(0,68)}…`:e}},U=e=>!!(e.breaches||e.a11y?.failed||e.perf.over||e.visual?.changed);function W({run:e,standard:n,disclaimer:r}){let i=e.report,[a,o]=(0,N.useState)(new Set),[s,c]=(0,N.useState)(`all`),[l,u]=(0,N.useState)(!1);if(!i?.accessibility.pages)return(0,P.jsx)(`p`,{className:`m-0 text-[13px] text-muted`,children:`This run has no accessibility results: report.accessibility was off, or the run visited no page.`});let d=i.accessibility,p=i.breaches.filter(e=>e.kind===`accessibility`),m=d.failed.filter(e=>s===`all`||e.impact===s).sort((e,t)=>F.indexOf(e.impact)-F.indexOf(t.impact)||t.count-e.count),h=e=>{let t=new Set(a);t.has(e)?t.delete(e):t.add(e),o(t)};return(0,P.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,P.jsxs)(`p`,{className:`m-0 text-[13px] text-muted`,children:[n,` with `,i.engine||`axe`,` on `,V(d.pages,`page`),`: `,(0,P.jsxs)(`span`,{className:`text-pass`,children:[V(d.passed.length,`rule`),` passed`]}),`, `,(0,P.jsxs)(`span`,{className:d.failed.length?`text-fail`:``,children:[d.failed.length,` failed`]}),`.`,` `,i.budgets.accessibility?p.length?`${V(p.length,`budget`)} exceeded.`:`Within the budget.`:`No budget set, so nothing here fails the run.`]}),p.map((e,t)=>(0,P.jsxs)(`p`,{className:`m-0 rounded-[8px] bg-fail-soft px-4 py-2 text-[13px] text-fail [overflow-wrap:anywhere]`,children:[`Over budget · `,H(e.page),`: `,e.text]},t)),d.failed.length>0&&(0,P.jsx)(`div`,{className:`flex flex-wrap items-center gap-2`,children:(0,P.jsx)(`div`,{role:`group`,"aria-label":`Impact`,className:`flex flex-wrap gap-1`,children:[`all`,...F].map(e=>{let t=e===`all`?d.failed.length:d.failed.filter(t=>t.impact===e).length;return e!==`all`&&!t?null:(0,P.jsxs)(`button`,{type:`button`,"aria-pressed":s===e,onClick:()=>c(e),className:_(`inline-flex min-h-7 cursor-pointer items-center gap-1 rounded-[6px] border px-2 text-[13px] capitalize`,s===e?`border-accent bg-accent-soft text-ink`:`border-transparent bg-surface-strong text-ink-2 hover:text-ink`),children:[e,` `,(0,P.jsx)(`span`,{className:`tabular-nums opacity-75`,children:t})]},e)})})}),d.failed.length?(0,P.jsx)(E,{label:`Failed rules`,placeholder:`Find a rule, WCAG criterion, page or element`,resetKey:s,empty:`Nothing matches.`,head:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`th`,{scope:`col`,className:_(T,`w-[96px]`),children:`Impact`}),(0,P.jsx)(`th`,{scope:`col`,className:T,children:`Rule`}),(0,P.jsx)(`th`,{scope:`col`,className:_(T,`hidden @2xl:table-cell`),children:`WCAG`}),(0,P.jsx)(`th`,{scope:`col`,className:O,children:`Elements`}),(0,P.jsx)(`th`,{scope:`col`,className:O,children:`Pages`})]}),children:m.map(n=>{let r=a.has(n.rule),i=e.examples[n.rule]??[];return(0,P.jsxs)(N.Fragment,{children:[(0,P.jsxs)(`tr`,{onClick:()=>h(n.rule),"aria-expanded":r,className:_(`cursor-pointer border-t border-line-soft align-top hover:bg-surface-muted`,r&&`bg-surface-muted`),children:[(0,P.jsx)(`td`,{className:D,children:(0,P.jsx)(x,{tone:I[n.impact],className:`min-h-5 px-2 text-[13px] capitalize`,children:n.impact})}),(0,P.jsx)(`td`,{className:D,children:(0,P.jsxs)(`span`,{className:`flex items-start gap-1`,children:[(0,P.jsx)(t,{size:13,"aria-hidden":`true`,className:_(`mt-1 flex-none text-muted transition-transform`,!r&&`-rotate-90`)}),(0,P.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,P.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:n.help}),(0,P.jsx)(`span`,{className:`font-mono text-[13px] text-muted`,children:n.rule})]})]})}),(0,P.jsx)(`td`,{className:_(D,`hidden whitespace-nowrap text-ink-2 @2xl:table-cell`),children:n.wcag?`${n.wcag}${n.level?` · ${n.level}`:``}`:`–`}),(0,P.jsx)(`td`,{className:w,children:n.count}),(0,P.jsx)(`td`,{className:w,children:n.pages})]}),r&&(0,P.jsxs)(`tr`,{className:`bg-surface-muted`,children:[(0,P.jsx)(`td`,{}),(0,P.jsx)(`td`,{colSpan:4,className:`px-4 py-2`,children:(0,P.jsxs)(`div`,{className:`flex flex-col gap-2 pl-4`,children:[i.length?i.map((e,t)=>(0,P.jsxs)(`div`,{className:`flex flex-col gap-1 rounded-[8px] border border-line-soft bg-bg px-2 py-2`,children:[(0,P.jsxs)(`span`,{className:`flex min-w-0 gap-2 text-[13px] text-muted`,children:[(0,P.jsx)(`span`,{className:`flex-none`,"data-tip":e.page,children:H(e.page)}),e.target&&(0,P.jsxs)(`span`,{className:`min-w-0 truncate font-mono text-[13px]`,"data-tip":e.target,children:[`· `,e.target]})]}),e.html&&(0,P.jsx)(`code`,{className:`line-clamp-3 font-mono text-[13px] break-all text-ink-2`,children:ee(e.html)})]},t)):(0,P.jsx)(`span`,{className:`text-[13px] text-muted`,children:`No elements were kept for this rule.`}),n.helpUrl&&j(n.helpUrl)===`web`&&(0,P.jsxs)(`a`,{href:n.helpUrl,target:`_blank`,rel:`noreferrer noopener`,className:`inline-flex items-center gap-1 self-start text-[13px]`,children:[`How to fix it `,(0,P.jsx)(f,{size:12,"aria-hidden":`true`})]})]})})]})]},n.rule)})}):(0,P.jsx)(`p`,{className:`m-0 text-[13px] text-pass`,children:`No rule failed on the pages this run visited.`}),d.passed.length>0&&(0,P.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,P.jsxs)(`button`,{type:`button`,"aria-expanded":l,onClick:()=>u(!l),className:`flex cursor-pointer items-center gap-1 self-start border-0 bg-transparent p-0 text-[13px] font-medium text-ink`,children:[(0,P.jsx)(t,{size:13,"aria-hidden":`true`,className:_(`text-muted transition-transform`,!l&&`-rotate-90`)}),`Rules that passed `,(0,P.jsx)(`span`,{className:`font-normal text-muted tabular-nums`,children:d.passed.length})]}),l&&(0,P.jsx)(`ul`,{className:`m-0 flex list-none flex-wrap gap-1 p-0`,children:d.passed.map(e=>(0,P.jsx)(`li`,{className:`rounded-[6px] bg-pass-soft px-2 py-1 font-mono text-[13px] text-pass`,children:e},e))})]}),(0,P.jsx)(`p`,{className:`m-0 text-[13px] text-muted`,children:r})]})}function G({run:e}){let t=e.report;if(!t?.performance.pages.length)return(0,P.jsx)(`p`,{className:`m-0 text-[13px] text-muted`,children:`This run has no timings: the run visited no page.`});let n=(e,t)=>e>t.poor?`poor`:e>t.good?`needs improvement`:`good`,r={poor:`text-fail`,"needs improvement":`text-warn`,good:`text-pass`},i=t.breaches.filter(e=>e.kind===`performance`);return(0,P.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-4`,children:[(0,P.jsxs)(`p`,{className:`m-0 text-[13px] text-muted`,children:[`Core Web Vitals of each page, from one visit in the browser the agent drove, against Google's thresholds: `,(0,P.jsx)(`span`,{className:`text-pass`,children:`good`}),`, `,(0,P.jsx)(`span`,{className:`text-warn`,children:`needs improvement`}),`, `,(0,P.jsx)(`span`,{className:`text-fail`,children:`poor`}),`.`,` `,t.budgets.performance?`Pages over quality.budgets.performance are marked.`:`No performance budget set: nothing fails on timings.`]}),i.map((e,t)=>(0,P.jsxs)(`p`,{className:`m-0 rounded-[8px] bg-fail-soft px-4 py-2 text-[13px] text-fail [overflow-wrap:anywhere]`,children:[`Over budget · `,H(e.page),`: `,e.text]},t)),(0,P.jsx)(E,{label:`Timings`,minWidth:720,head:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`th`,{scope:`col`,className:T,children:`Page`}),L.map(e=>(0,P.jsx)(`th`,{scope:`col`,className:O,"data-tip":e.label,children:e.label},e.key)),(0,P.jsx)(`th`,{scope:`col`,className:O,children:`Requests`}),(0,P.jsx)(`th`,{scope:`col`,className:O,children:`Size`})]}),children:t.performance.pages.map((e,t)=>(0,P.jsxs)(`tr`,{className:`border-t border-line-soft align-top`,children:[(0,P.jsxs)(`td`,{className:D,children:[(0,P.jsx)(`span`,{className:`block max-w-[340px] truncate font-mono text-[13px]`,"data-tip":e.url,children:H(e.url)}),e.over.length>0&&(0,P.jsxs)(`span`,{className:`text-[13px] text-fail`,children:[`over: `,e.over.join(`, `)]})]}),L.map(t=>{let i=e[t.key];return(0,P.jsxs)(`td`,{className:_(`px-2 py-2 text-right whitespace-nowrap tabular-nums`,typeof i==`number`&&t.good!==1/0?r[n(i,t)]:typeof i==`number`?`text-ink-2`:`text-muted`),children:[typeof i==`number`?B(i,t.unit):`–`,typeof i==`number`&&t.good!==1/0&&(0,P.jsxs)(`span`,{className:`sr-only`,children:[` (`,n(i,t),`)`]})]},t.key)}),(0,P.jsx)(`td`,{className:_(w,`text-muted`),children:e.requests??`–`}),(0,P.jsx)(`td`,{className:_(w,`text-muted`),children:e.kb===void 0?`–`:`${e.kb} KB`})]},t))}),(0,P.jsxs)(`p`,{className:`m-0 text-[13px] text-muted`,children:[L.filter(e=>e.good!==1/0).map(e=>`${e.label}: good up to ${B(e.good,e.unit)}, poor over ${B(e.poor,e.unit)}`).join(` · `),`. Lab values from one visit, not data from real users.`]})]})}function K({run:e,index:t,which:n,label:r}){let[i,a]=(0,N.useState)(``),[s,c]=(0,N.useState)(!1);return(0,N.useEffect)(()=>{let r=!1;return a(``),c(!1),v.image(e,t,n).then(e=>!r&&a(e),()=>!r&&c(!0)),()=>{r=!0}},[e,t,n]),(0,P.jsxs)(`figure`,{className:`m-0 flex min-w-0 flex-col gap-2`,children:[(0,P.jsx)(`figcaption`,{className:`text-[13px] font-medium text-muted`,children:r}),i?(0,P.jsx)(`img`,{src:i,alt:`${r} of the page`,className:`block h-auto w-full rounded-[10px] border border-line-soft bg-surface-muted`}):(0,P.jsx)(`span`,{className:`flex h-[120px] items-center justify-center gap-2 rounded-[10px] border border-line-soft bg-surface-muted text-[13px] text-muted`,children:s?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(C,{icon:o,size:14}),` Not available`]}):`Loading…`})]})}function q({run:e,budget:n,onChange:r}){let[o,s]=(0,N.useState)(null),[c,l]=(0,N.useState)(``),[d,f]=(0,N.useState)(!1),[p,m]=(0,N.useState)(``),[h,g]=(0,N.useState)(new Set),[S,C]=(0,N.useState)(`all`),k=e.visual?.pages??[],A=k.find(e=>e.status===`changed`)?.index;(0,N.useEffect)(()=>g(A===void 0?new Set:new Set([A])),[e.id,A]);let j=async e=>{f(!0),m(``);try{r(await e()),s(null),l(``)}catch(e){m(e.message)}finally{f(!1)}};if(!e.visual)return e.captured?(0,P.jsxs)(`div`,{className:`flex flex-col items-start gap-2`,children:[(0,P.jsxs)(`p`,{className:`m-0 text-[13px] text-ink-2`,children:[`This run captured `,V(e.captured,`page`),` but they were not compared with the baselines yet.`]}),(0,P.jsxs)(b,{size:`sm`,variant:`primary`,disabled:d,"data-tip":`Compare with the baselines`,onClick:()=>j(()=>v.compare(e.id)),children:[(0,P.jsx)(u,{"aria-hidden":`true`}),`Compare`]}),p&&(0,P.jsx)(`p`,{className:`m-0 text-[13px] text-fail`,children:p})]}):(0,P.jsx)(`p`,{className:`m-0 text-[13px] text-muted`,children:`This run has no visual captures: quality.visual.enabled was off, or the run visited no page.`});let M=k.filter(e=>e.status===`changed`),F=(S===`changed`?M:k).toSorted((e,t)=>Number(t.status===`changed`)-Number(e.status===`changed`)||(t.diffPercent??0)-(e.diffPercent??0)),I=e=>{let t=new Set(h);t.has(e)?t.delete(e):t.add(e),g(t)};return(0,P.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,P.jsxs)(`p`,{className:`m-0 text-[13px] text-muted`,children:[`Each page captured with animations frozen and masked regions hidden, against its approved baseline. `,n?`A page over quality.budgets.visual fails the run.`:`No visual budget set: a change does not fail the run.`]}),(0,P.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,P.jsx)(`div`,{role:`group`,"aria-label":`Show`,className:`flex gap-1`,children:[[`all`,`All pages`,k.length],[`changed`,`Changed`,M.length]].map(([e,t,n])=>(0,P.jsxs)(`button`,{type:`button`,"aria-pressed":S===e,onClick:()=>C(e),className:_(`inline-flex min-h-7 cursor-pointer items-center gap-1 rounded-[6px] border px-2 text-[13px]`,S===e?`border-accent bg-accent-soft text-ink`:`border-transparent bg-surface-strong text-ink-2 hover:text-ink`),children:[t,` `,(0,P.jsx)(`span`,{className:`tabular-nums opacity-75`,children:n})]},e))}),(0,P.jsx)(`span`,{className:`flex-1`}),M.length>1&&(0,P.jsxs)(b,{size:`sm`,disabled:d,"data-tip":`Approve all ${M.length} changes`,onClick:()=>s(M.map(e=>e.url)),children:[(0,P.jsx)(a,{"aria-hidden":`true`}),`Approve (`,M.length,`)`]})]}),o&&(0,P.jsxs)(`div`,{role:`alertdialog`,"aria-label":`Approve as baseline`,className:`flex flex-col gap-2 rounded-[10px] border border-accent-line bg-accent-soft p-4 text-[13px]`,children:[(0,P.jsxs)(`span`,{className:`font-medium`,children:[`Make this run's capture the baseline of `,o.length===1?H(o[0]):V(o.length,`page`),`?`]}),(0,P.jsx)(`span`,{className:`text-ink-2`,children:`Later runs are compared with it. Approve only a change that was intended; one that was not is a visual defect.`}),(0,P.jsxs)(`label`,{className:`flex flex-col gap-1`,children:[`Why it changed (kept with the baseline)`,(0,P.jsx)(y,{size:`sm`,value:c,maxLength:300,placeholder:`New checkout banner`,onChange:e=>l(e.target.value),className:`max-w-[480px] bg-bg`})]}),(0,P.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,P.jsxs)(b,{size:`sm`,variant:`primary`,disabled:d,onClick:()=>j(()=>v.approve(e.id,o,c.trim()||void 0)),children:[(0,P.jsx)(a,{"aria-hidden":`true`}),`Approve`]}),(0,P.jsxs)(b,{size:`sm`,onClick:()=>s(null),children:[(0,P.jsx)(i,{"aria-hidden":`true`}),`Cancel`]})]})]}),p&&(0,P.jsx)(`p`,{className:`m-0 text-[13px] text-fail`,children:p}),(0,P.jsx)(E,{label:`Pages against their baselines`,fixed:!0,resetKey:S,empty:`No page changed.`,head:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`th`,{scope:`col`,className:T,children:`Page`}),(0,P.jsx)(`th`,{scope:`col`,className:_(T,`hidden w-[110px] @2xl:table-cell`),children:`Size`}),(0,P.jsx)(`th`,{scope:`col`,className:_(O,`w-[90px]`),children:`Changed`}),(0,P.jsx)(`th`,{scope:`col`,className:_(T,`w-[120px]`),children:`Result`}),(0,P.jsx)(`th`,{scope:`col`,className:_(T,`w-[96px]`),children:(0,P.jsx)(`span`,{className:`sr-only`,children:`Approve`})})]}),children:F.map(n=>{let r=h.has(n.index);return(0,P.jsxs)(N.Fragment,{children:[(0,P.jsxs)(`tr`,{onClick:()=>I(n.index),"aria-expanded":r,className:_(`cursor-pointer border-t border-line-soft align-top hover:bg-surface-muted`,r&&`bg-surface-muted`),children:[(0,P.jsx)(`td`,{className:D,children:(0,P.jsxs)(`span`,{className:`flex items-start gap-1`,children:[(0,P.jsx)(t,{size:13,"aria-hidden":`true`,className:_(`mt-1 flex-none text-muted transition-transform`,!r&&`-rotate-90`)}),(0,P.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,P.jsx)(`span`,{className:`truncate`,"data-tip":n.title||n.url,children:n.title||H(n.url)}),(0,P.jsx)(`span`,{className:`truncate font-mono text-[13px] text-muted`,"data-tip":n.url,children:H(n.url)})]})]})}),(0,P.jsxs)(`td`,{className:_(D,`hidden whitespace-nowrap text-muted @2xl:table-cell`),children:[n.size||`–`,n.resized?` · resized ${n.resized}`:``]}),(0,P.jsx)(`td`,{className:_(`py-2 pr-4 text-right whitespace-nowrap tabular-nums`,n.over?`text-fail`:n.status===`changed`?`text-warn`:`text-muted`),children:n.status===`changed`?`${n.diffPercent}%${n.limit===void 0?``:` / ${n.limit}%`}`:`–`}),(0,P.jsx)(`td`,{className:D,children:(0,P.jsx)(x,{tone:n.over?`fail`:R[n.status].tone,className:`min-h-5 px-2 text-[13px]`,children:n.over?`Over budget`:R[n.status].label})}),(0,P.jsx)(`td`,{className:w,onClick:e=>e.stopPropagation(),children:n.status===`changed`&&(0,P.jsx)(b,{variant:`icon`,size:`icon-sm`,disabled:d,"aria-label":`Approve ${H(n.url)}`,"data-tip":`Approve ${H(n.url)}`,onClick:()=>s([n.url]),children:(0,P.jsx)(a,{"aria-hidden":`true`})})})]}),r&&(0,P.jsx)(`tr`,{className:`bg-surface-muted`,children:(0,P.jsx)(`td`,{colSpan:5,className:`px-4 py-2`,children:(0,P.jsxs)(`div`,{className:`grid grid-cols-[repeat(auto-fit,minmax(180px,1fr))] gap-4`,children:[n.images.baseline&&(0,P.jsx)(K,{run:e.id,index:n.index,which:`baseline`,label:`Baseline`}),n.images.current&&(0,P.jsx)(K,{run:e.id,index:n.index,which:`current`,label:`This run`}),n.images.diff&&(0,P.jsx)(K,{run:e.id,index:n.index,which:`diff`,label:`Difference (in red)`})]})})})]},n.index)})})]})}function J({values:e}){if(e.length<2)return null;let t=Math.max(1,...e),n=e.map((n,r)=>`${r/(e.length-1)*96+2},${22-n/t*20}`).join(` `);return(0,P.jsx)(`svg`,{width:`100`,height:`24`,viewBox:`0 0 100 24`,"aria-label":`Violations over the last ${e.length} runs: ${e.join(`, `)}`,role:`img`,className:`flex-none text-muted`,children:(0,P.jsx)(`polyline`,{points:n,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinejoin:`round`})})}function Y({icon:e,className:t,lines:n}){return n.length?(0,P.jsxs)(`span`,{className:_(`flex items-start gap-2 text-[13px]`,t),children:[(0,P.jsx)(C,{icon:e,size:14,className:`mt-1 flex-none`}),(0,P.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:n.join(` · `)})]}):null}function X({trends:e}){return e.length?(0,P.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:e.map(e=>{let t=e.a11y.latest?F.reduce((t,n)=>t+(e.a11y.latest[n]||0),0):void 0;return(0,P.jsxs)(`li`,{className:`flex flex-col gap-2 border-t border-line-soft py-4 first:border-t-0`,children:[(0,P.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-4`,children:[(0,P.jsx)(`span`,{className:`min-w-0 flex-[1_1_240px] truncate font-mono text-[13px]`,"data-tip":e.page,children:/^https?:/.test(e.page)?H(e.page):e.page}),(0,P.jsx)(J,{values:e.a11y.trail}),(0,P.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[V(e.runs,`run`),t===void 0?``:` · ${V(t,`violation`)} now`]})]}),(0,P.jsx)(Y,{icon:l,className:`text-fail`,lines:[...e.perf.worse.map(e=>`slower: ${e}`),...e.a11y.newRules.map(e=>`newly failing: ${e}`)]}),(0,P.jsx)(Y,{icon:h,className:`text-pass`,lines:[...e.perf.better.map(e=>`faster: ${e}`),...e.a11y.fixedRules.map(e=>`fixed: ${e}`)]})]},e.page)})}):(0,P.jsx)(`p`,{className:`m-0 text-sm text-muted`,children:`No history yet: every browser run adds each page's accessibility and timings to quality-history.json in the reports folder.`})}var Z={accessibility:e=>!!e.a11y?.pages,performance:e=>e.perf.pages>0,visual:e=>!!e.visual||e.captured>0},Q={accessibility:e=>!!e.a11y?.failed,performance:e=>e.perf.over>0,visual:e=>!!(e.visual?.changed||e.visual?.over)},$=(e,t)=>t.filter(Z[e]);function te({kind:e,runs:t}){let[i,o]=(0,N.useState)(`all`),s=$(e,t),c=i===`attention`?s.filter(Q[e]):s,l=t=>location.hash=p(e,encodeURIComponent(t)),u=`py-2 pr-4 text-right tabular-nums`;return(0,P.jsx)(E,{label:`Runs`,placeholder:`Find a run by what it did`,resetKey:i,empty:`Nothing matches.`,tools:(0,P.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:(0,P.jsx)(S,{items:[{id:`all`,label:`All`,n:s.length},{id:`attention`,label:`Needs a look`,n:s.filter(Q[e]).length,alert:!0}],value:i,onChange:o})}),head:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`th`,{scope:`col`,className:_(T,`w-[46%]`),children:`Run`}),e===`accessibility`&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-right text-[13px] font-medium whitespace-nowrap text-muted`,children:`Rules failed`}),(0,P.jsx)(`th`,{scope:`col`,className:_(`px-4 py-2 text-right text-[13px] font-medium whitespace-nowrap text-muted`,`hidden @2xl:table-cell`),children:`Critical · serious`}),(0,P.jsx)(`th`,{scope:`col`,className:_(`px-4 py-2 text-right text-[13px] font-medium whitespace-nowrap text-muted`,`hidden @3xl:table-cell`),children:`Moderate · minor`}),(0,P.jsx)(`th`,{scope:`col`,className:_(`px-4 py-2 text-right text-[13px] font-medium whitespace-nowrap text-muted`,`hidden @xl:table-cell`),children:`Pages`})]}),e===`performance`&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-right text-[13px] font-medium whitespace-nowrap text-muted`,children:`Over budget`}),(0,P.jsx)(`th`,{scope:`col`,className:_(`px-4 py-2 text-right text-[13px] font-medium whitespace-nowrap text-muted`,`hidden @xl:table-cell`),children:`Pages timed`})]}),e===`visual`&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-right text-[13px] font-medium whitespace-nowrap text-muted`,children:`Changed`}),(0,P.jsx)(`th`,{scope:`col`,className:_(`px-4 py-2 text-right text-[13px] font-medium whitespace-nowrap text-muted`,`hidden @2xl:table-cell`),children:`New`}),(0,P.jsx)(`th`,{scope:`col`,className:_(`px-4 py-2 text-right text-[13px] font-medium whitespace-nowrap text-muted`,`hidden @xl:table-cell`),children:`Same`})]}),(0,P.jsx)(`th`,{scope:`col`,className:_(T,`hidden @xl:table-cell`),children:`When`})]}),children:c.map(t=>{let i=Q[e](t),o=(t.over?.[e]??0)>0,s=o?r:i?n:a,c=o?`text-fail`:i?`text-warn`:`text-pass`,d=o?`Over a budget`:i?`Needs a look`:`Within budgets`;return(0,P.jsxs)(`tr`,{onClick:()=>l(t.id),className:`cursor-pointer border-t border-line-soft hover:bg-surface-muted`,children:[(0,P.jsx)(`td`,{className:_(D,`max-w-0`),children:(0,P.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,P.jsx)(s,{size:15,"aria-label":d,className:_(`flex-none`,c)}),(0,P.jsx)(`a`,{href:p(e,encodeURIComponent(t.id)),onClick:e=>e.stopPropagation(),"data-tip":t.goal,className:`truncate text-ink no-underline hover:underline`,children:t.goal})]})}),e===`accessibility`&&t.a11y&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`td`,{className:_(u,t.a11y.failed?`text-fail`:`text-muted`),children:t.a11y.failed}),(0,P.jsx)(`td`,{className:_(u,`hidden @2xl:table-cell`,t.a11y.critical+t.a11y.serious?`text-fail`:`text-muted`),children:`${t.a11y.critical} · ${t.a11y.serious}`}),(0,P.jsx)(`td`,{className:_(u,`hidden text-muted @3xl:table-cell`),children:`${t.a11y.moderate} · ${t.a11y.minor}`}),(0,P.jsx)(`td`,{className:_(u,`hidden text-muted @xl:table-cell`),children:t.a11y.pages})]}),e===`performance`&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`td`,{className:_(u,t.perf.over?`text-fail`:`text-muted`),children:t.perf.over}),(0,P.jsx)(`td`,{className:_(u,`hidden text-muted @xl:table-cell`),children:t.perf.pages})]}),e===`visual`&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`td`,{className:_(u,t.visual?.changed?`text-warn`:`text-muted`),children:t.visual?t.visual.changed:`not compared`}),(0,P.jsx)(`td`,{className:_(u,`hidden text-muted @2xl:table-cell`),children:t.visual?t.visual.new+t.visual.no_baseline:`–`}),(0,P.jsx)(`td`,{className:_(u,`hidden text-muted @xl:table-cell`),children:t.visual?t.visual.same:`–`})]}),(0,P.jsx)(`td`,{className:_(D,`hidden whitespace-nowrap text-[13px] text-muted @xl:table-cell`),"data-tip":z(t.at),children:k(t.at)})]},t.id)})})}function ne({kind:e,id:n,view:r,onChanged:i}){let[a,s]=(0,N.useState)(null),[l,u]=(0,N.useState)(``);(0,N.useEffect)(()=>{let e=!1;return s(null),v.run(n).then(t=>{e||(s(t),u(``))},t=>!e&&u(t.message)),()=>{e=!0}},[n]);let f=(0,P.jsxs)(`a`,{href:p(e),className:`inline-flex items-center gap-1 self-start text-[13px] no-underline`,children:[(0,P.jsx)(t,{size:14,"aria-hidden":`true`,className:`rotate-90`}),`All runs`]});return l||!a?(0,P.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[f,l?(0,P.jsx)(`p`,{className:`m-0 rounded-[10px] bg-fail-soft px-4 py-2 text-[13px] text-fail`,children:l}):(0,P.jsx)(`p`,{className:`m-0 text-[13px] text-muted`,children:`Loading…`})]}):(0,P.jsxs)(`section`,{"aria-labelledby":`run-h`,className:`flex min-w-0 flex-col gap-4`,children:[f,(0,P.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,P.jsx)(M,{id:`run-h`,icon:e===`accessibility`?d:e===`performance`?c:o,title:(0,P.jsx)(`span`,{"data-tip":a.goal,className:`block truncate`,children:a.goal})}),(0,P.jsxs)(`span`,{className:`flex flex-wrap items-center gap-x-2 text-[13px] text-muted`,children:[z(a.at),` · `,(0,P.jsx)(A,{path:a.dir}),` · `,(0,P.jsx)(`a`,{href:p(`quality`,encodeURIComponent(a.id)),children:`Everything it measured`})]})]}),e===`accessibility`&&(0,P.jsx)(W,{run:a,standard:r.standard,disclaimer:r.disclaimer}),e===`performance`&&(0,P.jsx)(G,{run:a}),e===`visual`&&(0,P.jsx)(q,{run:a,budget:r.budgets.visual,onChange:e=>{s(e),i()}})]})}function re({r:e,to:t,line:n}){return(0,P.jsxs)(`div`,{className:`ml-12 flex flex-wrap items-center gap-x-4 gap-y-2 rounded-[14px] card border px-4 py-4`,children:[(0,P.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_240px] flex-col`,children:[(0,P.jsx)(`span`,{className:`text-[16px] font-medium [overflow-wrap:anywhere]`,children:e.goal}),(0,P.jsx)(`span`,{className:`text-[13px] text-muted`,children:n})]}),(0,P.jsxs)(b,{size:`sm`,variant:`primary`,"data-tip":`Open the run`,onClick:()=>location.hash=t,children:[(0,P.jsx)(m,{"aria-hidden":`true`}),`Open`]})]})}function ie({label:e,value:t,sub:n,tone:r}){return(0,P.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1 px-4 py-2`,children:[(0,P.jsx)(`span`,{className:`text-[13px] text-muted`,children:e}),(0,P.jsx)(`span`,{className:_(`text-[16px] leading-tight font-semibold tabular-nums`,r),children:t}),n&&(0,P.jsx)(`span`,{className:`truncate text-[13px] text-muted`,children:n})]})}export{z as _,te as a,re as c,q as d,B as f,H as g,$ as h,ne as i,X as l,V as m,F as n,ie as o,U as p,I as r,G as s,W as t,L as u};
@@ -1 +1 @@
1
- import{r as e}from"./route-D8G-pTdk.js";import{Z as t}from"./input-ChhA0xMm.js";import{S as n}from"./pageBack-Dhl5PHZE.js";var r=t=>e(`record`,`recording`,encodeURIComponent(t)),i=e=>e.split(`/`).pop()||e;function a(e){let t=!!e?.testFile&&e.exists!==!1,n=e?.testFile?i(e.testFile):``,r=e=>e;if(!e)return{tone:`neutral`,label:`No test yet`,detail:`No test has been written from this recording. Write turns it into a test in your repository.`,hasTest:!1,writing:!1};if(e.state===`checking`)return{tone:`running`,label:`Checking the steps…`,detail:`The steps are played in a new browser first; when they work, Quill ${t?`updates ${n}`:`writes the test`}. You can leave this page.`,hasTest:t,writing:!0};if(e.state===`check_failed`)return{tone:`fail`,label:t?`Steps failed, test not updated`:`Steps failed, no test written`,detail:`${e.error||`The steps did not work when played.`} Fix the step (Show, Record or Remove), or write the test anyway.`,hasTest:t,writing:!1};if(e.state===`writing`&&e.waiting&&e.resumeUntil){let n=new Date(e.resumeUntil).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`});return{tone:`warn`,label:`Waiting for the model…`,detail:`${e.waiting} ForgeQE checks every 30 seconds and carries on from where it stopped as soon as the model answers, until ${n}. Stop writing to give up now.`,hasTest:t,writing:!0}}if(e.state===`writing`&&e.waiting)return{tone:`warn`,label:`Waiting for the model…`,detail:`${e.waiting} The agent keeps retrying; if the model stays away ForgeQE stops it after 10 minutes and carries on by itself once the model answers. Stop writing to give up now.`,hasTest:t,writing:!0};if(e.state===`writing`)return r({tone:`running`,label:e.resumes?`Carrying on…`:t?`Updating the test…`:`Writing the test…`,detail:`${e.resumes?`The model answered again: Quill carries on from where it stopped. `:``}Quill is ${t?`updating ${n}`:`writing the test`} from this recording. It goes on if you leave or refresh this page; it shows here when it is done.`,hasTest:t,writing:!0});if(e.testFile&&e.exists===!1)return{tone:`warn`,label:`Test file not found`,detail:`${e.testFile} was written from this recording but is no longer in the repository. Write makes a new one.`,hasTest:!1,writing:!1};if(t){if(e.state===`passed`||e.state===`stopped`||e.state===`interrupted`){let r=e.error?` (${e.error})`:``,i=e.state===`stopped`?` The last update was stopped; what it changed so far is kept, and Update carries on from there.${r}`:e.state===`interrupted`?` The last update did not finish; what it changed so far is kept, and Update carries on from there.${r}`:``;return e.changedSince?{tone:`warn`,label:`Test out of date`,detail:`${n} was written before you changed the recording. Update the test to bring it in line.${i}`,hasTest:t,writing:!1}:{tone:`pass`,label:`Test written`,detail:`${n} was written from this recording and passed.${i} Update the test only if the recording changes.`,hasTest:t,writing:!1}}return{tone:`warn`,label:`Test not passing`,detail:`${n} was written, but it did not pass ForgeQE's run${e.state===`blocked`?` (something blocked it)`:``}.${e.error?` ${e.error}`:``} Update the test to try again.`,hasTest:t,writing:!1}}if(e.state===`stopped`)return{tone:`neutral`,label:`Writing stopped`,detail:`${e.error||`Writing the test was stopped before a test was written.`} Write starts again.`,hasTest:!1,writing:!1};if(e.state===`interrupted`)return{tone:`warn`,label:`Writing did not finish`,detail:`${e.error||`The writing ended before a test was written.`} Write starts again.`,hasTest:!1,writing:!1};let a=!!e.error&&/^(Couldn't reach the model|The model refused|The model is busy|Stopped after)/.test(e.error);return{tone:`fail`,label:a?`Model not reachable`:`Writing failed`,detail:`${e.error||`Quill could not write a passing test from this recording.`} ${a?`Write tries again once it is fixed.`:`Open the chat to see more, or Write to try again.`}`,hasTest:!1,writing:!1}}function o(e){return n(e,e=>t.openFile(e,{}))}export{r as n,a as r,o as t};
1
+ import{r as e}from"./route-D8G-pTdk.js";import{Z as t}from"./input-FbzQKk3L.js";import{S as n}from"./pageBack-B6bY6ZUl.js";var r=t=>e(`record`,`recording`,encodeURIComponent(t)),i=e=>e.split(`/`).pop()||e;function a(e){let t=!!e?.testFile&&e.exists!==!1,n=e?.testFile?i(e.testFile):``,r=e=>e;if(!e)return{tone:`neutral`,label:`No test yet`,detail:`No test has been written from this recording. Write turns it into a test in your repository.`,hasTest:!1,writing:!1};if(e.state===`checking`)return{tone:`running`,label:`Checking the steps…`,detail:`The steps are played in a new browser first; when they work, Quill ${t?`updates ${n}`:`writes the test`}. You can leave this page.`,hasTest:t,writing:!0};if(e.state===`check_failed`)return{tone:`fail`,label:t?`Steps failed, test not updated`:`Steps failed, no test written`,detail:`${e.error||`The steps did not work when played.`} Fix the step (Show, Record or Remove), or write the test anyway.`,hasTest:t,writing:!1};if(e.state===`writing`&&e.waiting&&e.resumeUntil){let n=new Date(e.resumeUntil).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`});return{tone:`warn`,label:`Waiting for the model…`,detail:`${e.waiting} ForgeQE checks every 30 seconds and carries on from where it stopped as soon as the model answers, until ${n}. Stop writing to give up now.`,hasTest:t,writing:!0}}if(e.state===`writing`&&e.waiting)return{tone:`warn`,label:`Waiting for the model…`,detail:`${e.waiting} The agent keeps retrying; if the model stays away ForgeQE stops it after 10 minutes and carries on by itself once the model answers. Stop writing to give up now.`,hasTest:t,writing:!0};if(e.state===`writing`)return r({tone:`running`,label:e.resumes?`Carrying on…`:t?`Updating the test…`:`Writing the test…`,detail:`${e.resumes?`The model answered again: Quill carries on from where it stopped. `:``}Quill is ${t?`updating ${n}`:`writing the test`} from this recording. It goes on if you leave or refresh this page; it shows here when it is done.`,hasTest:t,writing:!0});if(e.testFile&&e.exists===!1)return{tone:`warn`,label:`Test file not found`,detail:`${e.testFile} was written from this recording but is no longer in the repository. Write makes a new one.`,hasTest:!1,writing:!1};if(t){if(e.state===`passed`||e.state===`stopped`||e.state===`interrupted`){let r=e.error?` (${e.error})`:``,i=e.state===`stopped`?` The last update was stopped; what it changed so far is kept, and Update carries on from there.${r}`:e.state===`interrupted`?` The last update did not finish; what it changed so far is kept, and Update carries on from there.${r}`:``;return e.changedSince?{tone:`warn`,label:`Test out of date`,detail:`${n} was written before you changed the recording. Update the test to bring it in line.${i}`,hasTest:t,writing:!1}:{tone:`pass`,label:`Test written`,detail:`${n} was written from this recording and passed.${i} Update the test only if the recording changes.`,hasTest:t,writing:!1}}return{tone:`warn`,label:`Test not passing`,detail:`${n} was written, but it did not pass ForgeQE's run${e.state===`blocked`?` (something blocked it)`:``}.${e.error?` ${e.error}`:``} Update the test to try again.`,hasTest:t,writing:!1}}if(e.state===`stopped`)return{tone:`neutral`,label:`Writing stopped`,detail:`${e.error||`Writing the test was stopped before a test was written.`} Write starts again.`,hasTest:!1,writing:!1};if(e.state===`interrupted`)return{tone:`warn`,label:`Writing did not finish`,detail:`${e.error||`The writing ended before a test was written.`} Write starts again.`,hasTest:!1,writing:!1};let a=!!e.error&&/^(Couldn't reach the model|The model refused|The model is busy|Stopped after)/.test(e.error);return{tone:`fail`,label:a?`Model not reachable`:`Writing failed`,detail:`${e.error||`Quill could not write a passing test from this recording.`} ${a?`Write tries again once it is fixed.`:`Open the chat to see more, or Write to try again.`}`,hasTest:!1,writing:!1}}function o(e){return n(e,e=>t.openFile(e,{}))}export{r as n,a as r,o as t};
@@ -0,0 +1 @@
1
+ import{C as e,En as t,Ht as n,Ir as r,Nt as i,On as a,Ot as o,Q as ee,Rn as s,Sn as c,Tt as l,Un as u,Ut as d,Wn as te,X as ne,Xn as re,Xt as ie,Y as ae,Yn as oe,Zt as se,ar as ce,bn as le,en as ue,er as de,fn as fe,ft as pe,gt as me,m as he,p as ge,q as _e,qn as ve,rr as f,rt as ye,s as be,sr as xe,vn as Se,zt as Ce}from"./route-D8G-pTdk.js";var we=`ForgeQE`,Te=/\bForgeQE\b/g,p=[`placeholder`,`title`,`aria-label`,`data-tip`,`alt`],Ee=`input, textarea, pre, code, [contenteditable], [data-keep-name]`,m=(e,t)=>t===`ForgeQE`?e:e.replace(Te,()=>t),h=new WeakMap,g=new WeakMap;function _(e,t){return e&&e.shown===t?e.from:t}function v(e){return!!e?.closest(Ee)}function y(e,t){if(v(e.parentElement))return;let n=e.nodeValue??``,r=_(h.get(e),n);if(r===n&&!r.includes(`ForgeQE`))return;let i=m(r,t);h.set(e,{from:r,shown:i}),i!==n&&(e.nodeValue=i)}function b(e,t){if(!e.closest(`pre, code, [contenteditable], [data-keep-name]`))for(let n of p){let r=e.getAttribute(n);if(r===null)continue;let i=g.get(e),a=_(i?.get(n),r);if(a===r&&!a.includes(`ForgeQE`))continue;let o=m(a,t);i||g.set(e,i=new Map),i.set(n,{from:a,shown:o}),o!==r&&e.setAttribute(n,o)}}function x(e,t){if(e.nodeType===Node.TEXT_NODE)return y(e,t);if(e.nodeType!==Node.ELEMENT_NODE&&e.nodeType!==Node.DOCUMENT_NODE)return;e.nodeType===Node.ELEMENT_NODE&&b(e,t);let n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT);for(let e=n.nextNode();e;e=n.nextNode())e.nodeType===Node.TEXT_NODE?y(e,t):b(e,t)}var S,C=we,w,T=()=>C,E=e=>m(e,C);function D(e){let t=e?.trim()||`ForgeQE`;typeof document>`u`?C=t:(w===void 0&&(w=document.title),!(t===C&&S)&&(C=t,S?.disconnect(),x(document.body,C),document.title=m(w,C),S=new MutationObserver(e=>{S?.disconnect();for(let t of e)if(t.type===`characterData`)y(t.target,C);else if(t.type===`attributes`)b(t.target,C);else for(let e of t.addedNodes)x(e,C);S?.observe(document.body,O)}),S.observe(document.body,O)))}var O={subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:[...p]},k=`forgeqe.engine.forgeqe-test.forgeqe-read.forgeqe-review.forgeqe-test-plan.forgeqe-heal.forgeqe-migrate.forgeqe-tosca.forgeqe-tosca-assistant.forgeqe-find.forgeqe-pr-review.forgeqe-api.forgeqe-api-plan.forgeqe-explore-plan.forgeqe-defect-rca.forgeqe-refine.forgeqe-agent-builder.forgeqe-suite-builder.forgeqe-responsive.forgeqe-test-linker.forgeqe-bug-report.forgeqe-data.forgeqe-persona.forgeqe-basal.forgeqe-doc-reader.forgeqe-knowledge-agent.forgeqe-judge.forgeqe-model-profile.forgeqe-knowledge.forgeqe-investigate.forgeqe-evidence-acceptance.forgeqe-impact-reader.forgeqe-evidence-content.forgeqe-evidence-scenarios.explore.general`.split(`.`);function De(e){try{let t=A(e);return t&&t!==`ForgeQE`?t:void 0}catch{return}}function A(e,t=`the name`){if(e==null)return``;if(typeof e!=`string`)throw Error(`${t} must be text.`);if(/[\u0000-\u001f\u007f-\u009f\u2028\u2029]/.test(e))throw Error(`${t} must be one line of plain text.`);let n=e.replace(/\s+/g,` `).trim();if(n.length>40)throw Error(`${t} is ${n.length} characters; at most 40.`);return n}var j={};function M(e){let t={};if(!e||typeof e!=`object`||Array.isArray(e))return t;for(let[n,r]of Object.entries(e))if(k.includes(n))try{let e=A(r);e&&(t[n]=e)}catch{}return t}function Oe(e){j=M(e)}var ke=e=>Object.hasOwn(j,e)?j[e]:void 0,N=[`orchestrator`,`specs`,`api`,`explorer`,`case`,`browser-agent`,`test-finder`,`report`,`scribe`,`knowledge-base`,`healer`,`result`,`pr-reviewer`,`rule`,`trace`,`model`,`context-engine`,`database`],P={orchestrator:`Atlas`,specs:`Specs`,api:`API`,explorer:`Explorer`,case:`Test case`,"browser-agent":`Browser`,"test-finder":`Search`,report:`Report`,scribe:`Coding`,"knowledge-base":`Knowledge`,healer:`Healing`,result:`Result`,"pr-reviewer":`PR review`,rule:`Rule`,trace:`Trace`,model:`Model`,"context-engine":`Helper`,database:`Database`},F=new Set(N),Ae=/^[a-z0-9]+(-[a-z0-9]+)*$/,je=/^(ph|lucide):([a-z0-9]+(?:-[a-z0-9]+)*)$/;function I(e){return typeof e==`string`&&F.has(e)}function L(e){if(typeof e!=`string`||e.length>80)return;let t=je.exec(e);if(!t)return;let n=t[1],r=t[2];if(!(!Ae.test(r)||r.length>64)&&!/-(bold|fill|light|thin|duotone|bold-duotone)$/.test(r))return{set:n,name:r,id:`${n}:${r}`}}function R(e){return typeof e!=`string`||!e||e.length>80||e.includes(`\0`)||e.includes(`/`)||e.includes(`\\`)||e.includes(`..`)?!1:F.has(e)?!0:L(e)!==void 0}function Me(e){if(I(e))return P[e];let t=L(e);return t?t.name.split(`-`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `):e}var z=new Map,B=new Set,V=0;function Ne(){return{ids:[...B].sort(),version:V}}var Pe=`forgeqe`,H={forgeqe:{name:`Atlas`,icon:`orchestrator`,hue:`#a78bfa`},"forgeqe-refine":{name:`Polish`,icon:`specs`,hue:`#8fa2ff`},"forgeqe-api-plan":{name:`Planner`,icon:`ph:list-checks`,hue:`#e0a3f5`},"forgeqe-explore-plan":{name:`Rover`,icon:`explorer`,hue:`#f59fe0`},"forgeqe-test-plan":{name:`Pathfinder`,icon:`case`,hue:`#c9b3ff`},engine:{name:`WebPilot`,icon:`browser-agent`,hue:`#5ea6f0`},desktop:{name:`DeskPilot`,icon:`ph:desktop`,hue:`#4f7fd9`},mobile:{name:`MobilePilot`,icon:`ph:device-mobile`,hue:`#3a8fb7`},"forgeqe-find":{name:`Hound`,icon:`test-finder`,hue:`#1fa3c4`},"forgeqe-test":{name:`Quill`,icon:`scribe`,hue:`#3a9a7e`},"forgeqe-read":{name:`Vera`,icon:`knowledge-base`,hue:`#3fa34d`},"forgeqe-heal":{name:`Mender`,icon:`healer`,hue:`#86a92c`},"forgeqe-migrate":{name:`Mover`,icon:`ph:arrows-left-right`,hue:`#2f8f63`},"forgeqe-tosca":{name:`Bridge`,icon:`ph:bridge`,hue:`#2c7a4b`},"forgeqe-responsive":{name:`Prism`,icon:`ph:devices`,hue:`#b03a7a`},"forgeqe-api":{name:`Link`,icon:`api`,hue:`#1f9c90`},"forgeqe-review":{name:`Checker`,icon:`result`,hue:`#e0457b`},"forgeqe-pr-review":{name:`Patch`,icon:`pr-reviewer`,hue:`#d93a52`},"forgeqe-judge":{name:`Gavel`,icon:`rule`,hue:`#e0603a`},"forgeqe-defect-rca":{name:`Sleuth`,icon:`trace`,hue:`#d6701f`},"forgeqe-model-profile":{name:`Scales`,icon:`model`,hue:`#b88a14`},"forgeqe-data":{name:`Miner`,icon:`database`,hue:`#2b7fc2`},"forgeqe-persona":{name:`Mask`,icon:`ph:identification-badge`,hue:`#7d3f8a`},"forgeqe-basal":{name:`BASAL`,icon:`ph:columns`,hue:`#1f6f66`},"forgeqe-knowledge-agent":{name:`Librarian`,icon:`ph:lightbulb`,hue:`#4f6672`},explore:{name:`Scout`,icon:`ph:binoculars`,hue:`#62789e`},general:{name:`Jack`,icon:`context-engine`,hue:`#a07c43`}},U={"forgeqe-agent-builder":`Smith`,"forgeqe-suite-builder":`Sorter`,"forgeqe-test-linker":`Matchmaker`,"forgeqe-talk":`Aria`,"forgeqe-bug-report":`Herald`,"forgeqe-bi":`Beacon`,"forgeqe-knowledge":`Mapper`,"forgeqe-investigate":`Digger`,"forgeqe-evidence-acceptance":`Clerk`,"forgeqe-impact-reader":`Ripple`,"forgeqe-evidence-content":`Grader`,"forgeqe-evidence-scenarios":`Drafter`,"forgeqe-doc-reader":`Skimmer`,"forgeqe-tosca-assistant":`Guide`},W={"forgeqe-agent-builder":`ph:puzzle-piece`,"forgeqe-suite-builder":`ph:stack`,"forgeqe-test-linker":`ph:link-simple`,"forgeqe-talk":`ph:microphone-stage`,"forgeqe-bug-report":`ph:bug`,"forgeqe-bi":`report`,"forgeqe-knowledge":`ph:share-network`,"forgeqe-investigate":`ph:magnifying-glass-plus`,"forgeqe-evidence-acceptance":`ph:clipboard-text`,"forgeqe-impact-reader":`ph:waves`,"forgeqe-evidence-content":`ph:quotes`,"forgeqe-evidence-scenarios":`ph:cards`,"forgeqe-doc-reader":`ph:book-open-text`},Fe=Object.freeze(Object.keys(W));function G(e){let t=ke(e),n=K(e);return t?{...n,name:t}:n}function Ie(e,t=!1){return/\bagent$/i.test(e.trim())?`${t?`The`:`the`} ${e}`:e}function K(e){let t=Object.hasOwn(H,e)?H[e]:void 0;if(t)return t;let n=z.get(e)||(Object.hasOwn(W,e)?W[e]:void 0)||`context-engine`;if(Object.hasOwn(U,e))return{name:U[e],icon:n,hue:`#62789e`};let r=e.replace(/^forgeqe-/,``).replace(/[-_]+/g,` `).trim().slice(0,40),i=r?r.charAt(0).toUpperCase()+r.slice(1):``;return{name:i?/ agent$/i.test(i)?i:`${i} agent`:`Jack`,icon:n,hue:`#62789e`}}var q=[{id:`assisted`,label:`Advisers`,about:`AI assisted: they help with your work, saying what ForgeQE knows and reviewing pull requests, and you decide.`,short:`Help you decide`},{id:`native`,label:`Builders`,about:`AI native: they make the work itself, tests, test data, personas and diagnoses, from your recordings, runs and descriptions.`,short:`Do the work for you`},{id:`agentic`,label:`Operators`,about:`Agentic: they act on their own across many steps, using the browser, your tools and the other agents to finish a task.`,short:`Work on their own`},{id:`custom`,label:`Custom agents`,about:`Agents your team makes for its own work.`,short:`Made by your team`}],J=[{id:`orchestrator`,short:`Leads every chat`,category:`agentic`,agent:`forgeqe`,runs:[`forgeqe`,`forgeqe-refine`,`forgeqe-find`,`explore`,`general`],about:`Leads every chat: works out what you asked, uses ForgeQE's tools and your connected systems, and hands parts to the other agents.`,crew:[{agent:`forgeqe-refine`,does:`turns a rough request into a clear task, from Refine in the message box`},{agent:`forgeqe-find`,does:`finds the tests in your repository a request means, to run them`},{agent:`explore`,does:`searches and reads the repository and web pages; it changes nothing`},{agent:`general`,does:`takes on a part of a bigger task, with the same tools`}],starters:[{label:`Run test cases`,text:`Run SHOP-12 and SHOP-14 on Chrome and Edge`},{label:`Review requirements`,text:`Review the payments refund brief and list its gaps`},{label:`Find and run tests`,text:`Find the tests for the basket and run them`}]},{id:`browser`,short:`Runs tests in a browser`,category:`agentic`,agent:`engine`,runs:[`engine`,`browser agent`],about:`Runs your test cases in a real browser, step by step, and keeps a screenshot of every step as evidence.`,starters:[{label:`Run test cases`,text:`Run SHOP-12 and SHOP-14 on Chrome and Edge`},{label:`Check a page`,text:`Sign in to QA and check the dashboard loads with this week's orders`},{label:`Try it as a blind user`,text:`Act as a blind screen reader user and try to check out on QA: list the accessibility barriers`}]},{id:`desktop`,opens:[`desktop`],short:`Automates desktop apps`,category:`agentic`,agent:`desktop`,runs:[`desktop`,`desktop agent`],about:`Carries out a goal in a Windows desktop app and saves it as a workflow with checks, records the steps you do by hand, and replays saved workflows with no model. It asks before it takes the mouse and keyboard.`,prompt:!1,starters:[{label:`Automate a task`,text:`Create an invoice for Contoso in the Billing app and save it as a test`},{label:`Record my steps`,text:`I'll show you the steps in Billing: record them`},{label:`Replay a workflow`,text:`Replay the billing workflow with customer Fabrikam`}]},{id:`mobile`,opens:[`mobile`],short:`Automates mobile apps`,category:`agentic`,agent:`mobile`,runs:[`mobile`,`mobile agent`],about:`Carries out a goal in an Android or iOS app through Appium and saves it as a workflow with checks, replays saved workflows on Appium or Maestro with no model, and runs your team's Maestro flows. You watch the device while it works, and it asks before it acts on one.`,prompt:!1,starters:[{label:`Automate a task`,text:`Sign in to the courier app and accept the first delivery, and save it as a test`},{label:`Replay on Maestro`,text:`Replay the courier login on Maestro`},{label:`Run our Maestro flows`,text:`Run our Maestro flows in .maestro/`},{label:`Upload a build`,text:`Upload builds/courier.apk to TestMu for the courier app`}]},{id:`exploration`,opens:[`explore`],short:`Explores user journeys`,category:`agentic`,agent:`forgeqe-explore-plan`,runs:[`forgeqe-explore-plan`],about:`Explores a journey the way a curious user would, and plans charters for what is worth a closer look.`,starters:[{label:`Explore a journey`,text:`Explore the checkout on QA and report anything that looks wrong`},{label:`Plan charters`,text:`Plan exploratory charters for the new refunds page`}]},{id:`coding`,opens:[`record`,`agent`],short:`Records and writes tests`,category:`native`,agent:`forgeqe-test`,runs:[`forgeqe-test`,`forgeqe-read`,`forgeqe-test-plan`,`forgeqe-review`],about:`Writes automated tests in your repository, in your team's style, from a journey you record, a verified run or a test case, and shows its plan first; ForgeQE runs every test it writes.`,crew:[{agent:`forgeqe-test-plan`,does:`places a recorded test in your repository and finds what it reuses there`},{agent:`forgeqe-read`,does:`reads the repository ahead, for the code a test can reuse`},{agent:`forgeqe-review`,does:`reviews each written test against your team's rules before you take it`}],starters:[{label:`Write a test`,text:`Write a Playwright test for the login flow on QA`},{label:`Automate a case`,text:`Turn SHOP-12 into an automated test`},{label:`From my recording`,text:`Write the test for my last recording`},{label:`Review written tests`,text:`Review the tests written in my last chat`}]},{id:`knowledge-agent`,opens:[`knowledge`],short:`Says what ForgeQE knows`,category:`assisted`,agent:`forgeqe-knowledge-agent`,runs:[`forgeqe-knowledge-agent`,`Librarian`],about:`Tells you what ForgeQE has understood about your product, from its knowledge notes, documents, skills and product graph, and takes your corrections. Each change to a note, a skill, a team prompt or the graph is shown first and written only when you approve it.`,starters:[{label:`Ask what it knows`,text:`What do you know about refunds?`},{label:`Correct it`,text:`Refunds over 1000 EUR need a supervisor, not 500: correct it`}]},{id:`healing`,opens:[`regression`],short:`Runs and heals packs`,category:`agentic`,agent:`forgeqe-heal`,runs:[`forgeqe-heal`],about:`Builds a regression pack from a release's changes, runs it, and fixes the tests the application outgrew, such as a moved button or a renamed field, saying what it changed.`,starters:[{label:`Heal failing tests`,text:`Heal the tests that failed in last night's run`}]},{id:`migration`,short:`Migrates test suites`,category:`agentic`,agent:`forgeqe-migrate`,runs:[`forgeqe-migrate`,`forgeqe-tosca`,`forgeqe-tosca-assistant`],about:`Moves a test suite to another framework or language, such as Selenium Java to Playwright, or Tricentis Tosca test cases from a .tsu export to code, after a plan you confirm; every Tosca step and check is kept, and ForgeQE runs every migrated test.`,opens:[`migration`],crew:[{agent:`forgeqe-tosca`,does:`converts Tricentis Tosca test cases from a .tsu export, one file at a time, keeping every step and check`},{agent:`forgeqe-tosca-assistant`,does:`reads what you ask to convert from Tosca and fills in New migration for you`}],starters:[{label:`Plan a migration`,text:`Plan migrating our Selenium tests in tests/ to Playwright TypeScript`},{label:`Convert a Tosca export`,text:`Plan converting tosca/checkout.tsu to Playwright TypeScript`}]},{id:`responsive`,short:`Tests pages on devices`,category:`agentic`,agent:`forgeqe-responsive`,runs:[`forgeqe-responsive`],about:`Opens one page on many phones, tablets and desktops at once, does your steps on every device, planned for each layout, and finds what breaks: sideways scrolling, text and tap targets too small, broken images, and your own checks.`,opens:[`responsive`],starters:[{label:`Check a page on phones`,text:`Check the home page on phones, tablets and desktops and tell me what breaks`},{label:`What scrolls sideways?`,text:`Which devices make the checkout page scroll sideways?`}]},{id:`api`,opens:[`api-tests`,`agent`],short:`Writes API tests`,category:`native`,agent:`forgeqe-api`,runs:[`forgeqe-api`,`forgeqe-api-plan`],about:`Writes API and contract tests in your repository from your API's description, with test data from your databases, and plans end-to-end scenarios for them.`,crew:[{agent:`forgeqe-api-plan`,does:`plans end-to-end scenarios: the calls, their order and what each checks`}],starters:[{label:`Contract tests`,text:`Write contract tests for the orders API`},{label:`Plan scenarios`,text:`Plan end-to-end scenarios for the payments API`}]},{id:`db`,opens:[`data`],short:`Finds test data`,category:`native`,agent:`forgeqe-data`,runs:[`forgeqe-data`,`Miner`],about:`Reads your connected databases and answers in your words: the test data a test needs, as existing rows or new ones with their INSERT script, and queries, data checks and database test scripts. The other agents ask it before they run.`,starters:[{label:`Find test data`,text:`Find two customers with paid orders for the checkout test`},{label:`Check the data`,text:`Check the orders table: no order without a customer, no negative totals`}]},{id:`persona`,short:`Business personas`,category:`native`,agent:`forgeqe-persona`,runs:[`forgeqe-persona`,`Mask`],about:`Describes the people who validate your software the way the business does: a subject matter expert such as a payments SME, an end user, a specialist or a business user, with what each one checks before they accept it. Every agent can act as one or test for one.`,starters:[{label:`A payments SME`,text:`Create a persona of an SME in card payments who reconciles settlements and handles refunds`},{label:`Test as a customer`,text:`Test the checkout as the retail-customer persona`}]},{id:`basal`,short:`BASAL: business testing`,category:`agentic`,agent:`forgeqe-basal`,runs:[`forgeqe-basal`,`BASAL`],about:`Tests a business decision the way real people meet it. Ask a business question with its brief: BASAL reads your product's knowledge graph and documents, writes a test strategy, casts the stakeholders as personas, and has ForgeQE's browser, API, mobile and desktop agents play each step as them on a test environment. Code judges the business outcome from the evidence.`,starters:[{label:`Launch decision`,text:`Should we launch saved cards with a fee? Test how merchants, shoppers and support would really be affected`},{label:`Weekend sale`,text:`Before our weekend sale, test that prices stay the same from list to cart and that no customer gets a lower price than shown`}]},{id:`pr-review`,short:`Reviews pull requests`,category:`assisted`,agent:`forgeqe-pr-review`,runs:[`forgeqe-pr-review`],about:`Reviews a pull request's tests and changes, and says what is missing or risky.`,starters:[{label:`Review a pull request`,text:`Review the tests in pull request 42`}]},{id:`root-cause`,short:`Explains failures`,category:`native`,agent:`forgeqe-defect-rca`,runs:[`forgeqe-defect-rca`],about:`Finds why a test failed: the defect, the step where it showed, and the evidence for it.`,starters:[{label:`Find a root cause`,text:`Find the root cause of last night's checkout failure`}]}],Y=e=>J.find(t=>t.id===e),X=Object.freeze({planning:`coding`,review:`coding`,"api-planning":`api`,refine:`orchestrator`,search:`orchestrator`,research:`orchestrator`,helper:`orchestrator`,tosca:`migration`});Object.freeze({"forgeqe-judge":{label:`Settings › Product knowledge`,path:[`settings`,`evidence`]},"forgeqe-model-profile":{label:`Settings › Routing`,path:[`settings`,`routing`]}});var Z=e=>Y(e)??(e&&Object.hasOwn(X,e)?Y(X[e]):void 0);function Le(e,t=`all`){let n=e.toLowerCase().split(/\s+/).filter(Boolean),r=e=>q.find(t=>t.id===e)?.label||``,i=e=>(e.crew||[]).map(e=>`${G(e.agent).name} ${e.does}`).join(` `);return J.filter(e=>(t===`all`||e.category===t)&&n.every(t=>`${G(e.agent).name} ${e.id} ${e.short} ${e.about} ${i(e)} ${r(e.category)}`.toLowerCase().includes(t)))}var Re=`category`,ze=e=>q.find(t=>t.id===e);function Q(e){try{let t=JSON.parse(e||`[]`);if(!Array.isArray(t))return[];let n=t.filter(e=>typeof e==`string`).map(e=>Z(e)?.id??e);return[...new Set(n.filter(e=>Y(e)!==void 0||He(e)!==void 0))]}catch{return[]}}var $=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function Be(e,t=`merge`){let n=[...B].join(`,`);t===`replace`&&(z.clear(),B.clear());for(let t of e)typeof t.id!=`string`||!$.test(t.id)||t.id.length>40||(B.add(t.id),R(t.icon)?z.set(t.id,t.icon):z.delete(t.id));[...B].join(`,`)!==n&&V++}var Ve=e=>`custom:${e}`;function He(e){let t=e.startsWith(`custom:`)?e.slice(7):``;return $.test(t)&&t.length<=40?t:void 0}function Ue(e,t){let n=t.toLowerCase().split(/\s+/).filter(Boolean);return e.filter(e=>n.every(t=>`${e.name} ${e.id} ${e.description} custom`.toLowerCase().includes(t)))}var We=[{id:`setup`,group:`Start`,icon:o,label:`Set up`,file:``,intro:`The project folder ForgeQE works on, ForgeQE in it, and what this computer needs to run it.`},{id:`environments`,group:`General`,icon:ue,label:`Environments`,file:``,intro:`Where the agents work, and the apps in each place. The active one is used unless a request names another.`},{id:`signins`,group:`General`,icon:se,label:`Sign-ins`,file:`forgeqe.yaml`,intro:`Logins for the apps the agents sign in to. Passwords go to your credential store; the model sees only a placeholder.`},{id:`secrets`,group:`General`,icon:fe,label:`Secrets`,file:``,intro:`Every password, key and token ForgeQE keeps, by name, and the vaults it pulls them from: Azure Key Vault, Google Secret Manager and AWS Secrets Manager. Values go to your credential store; the agents see only the names.`},{id:`integrations`,group:`General`,icon:s,label:`Integrations`,file:`forgeqe.yaml`,intro:`Test case systems and bugs (sources:), and remote browser grids (browser.providers).`},{id:`notifications`,group:`General`,icon:he,label:`Notifications`,file:`forgeqe.yaml`,intro:`Teams channels and email lists, and the events each one gets (notify:). Monitor alerts are set under Monitor.`},{id:`appearance`,group:`General`,icon:a,label:`Appearance`,file:`forgeqe.yaml`,intro:`The project's logo, name and colours in this web app, for everyone who opens it (theme:).`},{id:`voice`,group:`General`,icon:le,label:`Voice`,file:``,intro:`Talk to ForgeQE's agents: speech set up on this computer, in English for now, and how long Talk waits when you pause. Speech never leaves this computer.`},{id:`models`,group:`AI`,icon:xe,label:`Models`,file:`llms.json and forgeqe.yaml`,intro:`The models the agents use (llm:). Keys you type go to your credential store, never to a file.`},{id:`routing`,group:`AI`,icon:ve,label:`Routing`,file:`forgeqe.yaml`,intro:`Which model each area of work and each agent gets (llm.routing, llm.routes, llm.agents).`},{id:`skills`,group:`AI`,icon:Ce,label:`Skills`,file:`forgeqe.yaml`,intro:`What the agents know how to do: your test conventions, frameworks and apps, as folders with a SKILL.md, grouped by the agents that use them. Add your own for this project.`},{id:`prompts`,group:`AI`,icon:Se,label:`Prompts`,file:``,intro:`The instructions each agent starts from, with the agents that use each. Edit one to change how that agent works in this project, or add your own prompt for the agents you choose.`},{id:`guardrails`,group:`AI`,icon:f,label:`Guardrails`,file:`.forgeqe/guardrails`,intro:`Rules your agents follow in every chat and schedule: for every agent, or only the ones you choose.`},{id:`agents`,group:`AI`,icon:t,label:`Agents`,file:`forgeqe.yaml`,intro:`What you call the agents, their instructions, where their knowledge and guardrails are, custom agents, and the tools they get.`},{id:`evidence`,group:`AI`,icon:l,label:`Product knowledge`,file:`forgeqe.yaml`,intro:`What the agents know about your product, in five steps: its repositories, where its requirements are searched, its documents, the product and its knowledge, and how the graph is built.`},{id:`mcp`,group:`AI`,icon:de,label:`MCP servers`,file:`forgeqe.yaml`,intro:`More MCP servers whose tools ForgeQE's agent gets (mcp:). Each test case system's own server is set with it under Integrations.`},{id:`tests`,group:`Testing`,icon:_e,label:`Code`,file:`forgeqe.yaml`,intro:`Writing tests (code:): where passed runs become tests, how hard the coding agent tries, its time limits, and the help it gets.`},{id:`runs`,group:`Testing`,icon:pe,label:`Reports and memory`,file:`forgeqe.yaml`,intro:`Where reports are exported (export:, report:), page memory and replays (memory:, registry:), suites, flaky tests, release readiness, defect analysis, and the project report (bi:).`},{id:`registry`,group:`Testing`,icon:u,label:`Replays`,file:`forgeqe.yaml`,intro:`Run a passed test again for free: ForgeQE repeats its saved steps without the AI.`},{id:`parallel`,group:`Testing`,icon:ne,label:`Parallel execution`,file:`forgeqe.yaml`,intro:`How many browsers, scheduled runs and monitor checks go at once. Mobile devices at once are set under Mobile.`},{id:`browser`,group:`Testing`,icon:be,label:`Browser`,file:`forgeqe.yaml`,intro:`How the browser agent runs: where, how it looks, and how long it may take.`},{id:`monitor`,group:`Testing`,icon:n,label:`Monitor`,file:`forgeqe.yaml`,intro:`Checks that run on a schedule, and the alerts when one starts failing, keeps failing, or recovers.`},{id:`mobile`,group:`Testing`,icon:ce,label:`Mobile`,file:`forgeqe.yaml and the clouds' files`,intro:`How Android and iOS apps run (mobile:): Appium or Maestro, on several devices at once, on this machine or a device cloud such as TestMu AI. The apps themselves are in Environments.`},{id:`desktop`,group:`Testing`,icon:c,label:`Desktop`,file:`forgeqe.yaml`,intro:`How Windows desktop apps replay (desktop:). The apps themselves are in Environments.`},{id:`containers`,group:`Testing`,icon:ee,label:`Containers`,file:`forgeqe.yaml`,intro:`Services for test runs in Docker or Podman (containers:): databases, queues, the API under test, mocks, and the images tests and agents run in.`},{id:`databases`,group:`Testing`,icon:ye,label:`Databases`,file:`forgeqe.yaml`,intro:`Databases the agent may read, and write to after you confirm (databases:), for questions, test data and data flows. An environment can add its own.`},{id:`quality`,group:`Testing`,icon:i,label:`Quality`,file:`forgeqe.yaml`,intro:`Accessibility, performance, visual and API checks on every page a run visits.`},{id:`logs`,group:`Activity`,icon:re,label:`Logs`,file:``,intro:`A log of each chat, run and suite on this machine, for finding out what happened.`},{id:`audit`,group:`Activity`,icon:d,label:`Audit`,file:``,intro:`What ForgeQE did and what went wrong: sessions, tool and model calls, runs and errors, and who changed which setting.`},{id:`observability`,group:`Activity`,icon:oe,label:`Observability`,file:``,intro:`Send ForgeQE's own spans and metrics to your OpenTelemetry collector: off unless you turn it on, and never what the agents read or wrote.`},{id:`tokenomics`,group:`Activity`,icon:ae,label:`Tokenomics`,file:`forgeqe.yaml`,intro:`Where the tokens and money went, from this project's reports, and the budgets that warn before they run out.`},{id:`generated`,group:`Activity`,icon:r,label:`Generated code`,file:``,intro:`How much of the code ForgeQE wrote in the repository is still there, by run (forgeqe generated).`},{id:`files`,group:`Advanced`,icon:me,label:`Settings as text`,file:``,intro:`forgeqe.yaml, llms.json and env.yaml as they are on disk, for anything the form does not have.`},{id:`report`,group:`Advanced`,icon:e,label:`Report a problem`,file:``,intro:`Tell the ForgeQE team about a problem in ForgeQE. It drafts the bug with you, shows everything it will send, and files it in their Azure DevOps.`},{id:`features`,group:`Advanced`,icon:ge,label:`What's ready`,file:``,intro:`What ForgeQE can do here. Pick one to see what it needs.`},{id:`whats-new`,group:`Advanced`,icon:te,label:`What's new`,file:``,intro:`What each release of ForgeQE added, improved and fixed. Pick a change to read more.`},{id:`about`,group:`Advanced`,icon:ie,label:`About ForgeQE`,file:``,intro:`The version of ForgeQE on this computer, updating it, and its guides.`}],Ge=[`guardrails`,`skills`,`prompts`];export{Oe as A,P as C,L as D,R as E,T as M,E as N,k as O,D as P,N as S,I as T,Ne as _,Pe as a,Be as b,$ as c,Y as d,Z as f,Ue as g,Le as h,J as i,M as j,De as k,X as l,G as m,Ge as n,Re as o,Ve as p,q as r,Fe as s,We as t,ze as u,K as v,Me as w,Ie as x,Q as y};
@@ -1 +1 @@
1
- import{O as e}from"./route-D8G-pTdk.js";import{t}from"./jsx-runtime-LKYXHABd.js";import{A as n}from"./input-ChhA0xMm.js";var r=t();function i({steps:t,at:i,reached:a,onGo:o,label:s=`Steps`}){return(0,r.jsx)(`nav`,{"aria-label":s,children:(0,r.jsx)(`ol`,{className:`m-0 flex list-none items-center gap-2 p-0`,children:t.map((s,c)=>{let l=c<=a,u=c===i,d=c<a&&!u;return(0,r.jsxs)(`li`,{className:n(`flex items-center gap-2`,c<t.length-1&&`flex-1`),children:[(0,r.jsxs)(`button`,{type:`button`,disabled:!l,"aria-current":u?`step`:void 0,onClick:()=>o(c),"aria-label":s.name,"data-tip":s.tip,className:n(`inline-flex min-h-8 flex-none items-center gap-2 rounded-[8px] border-0 bg-transparent px-1 text-[13px] whitespace-nowrap`,l&&!u?`cursor-pointer hover:bg-surface-strong`:``),children:[(0,r.jsx)(`span`,{"aria-hidden":`true`,className:n(`inline-flex size-6 flex-none items-center justify-center rounded-full text-[13px] font-semibold tabular-nums`,d?`bg-pass text-white`:u?`bg-accent text-accent-ink`:`border border-line bg-bg text-muted`),children:d?(0,r.jsx)(e,{size:13,strokeWidth:3}):c+1}),(0,r.jsx)(`span`,{className:n(u?`font-medium text-ink`:l?`text-ink-2`:`text-muted`,!u&&`hidden @xl:inline`),children:s.name})]}),c<t.length-1&&(0,r.jsx)(`span`,{"aria-hidden":`true`,className:`h-0.5 min-w-4 flex-1 overflow-hidden rounded-full bg-line @xl:min-w-8`,children:(0,r.jsx)(`span`,{className:n(`block h-full rounded-full bg-pass transition-[width] duration-250 ease-out`,c<a?`w-full`:`w-0`)})})]},s.name)})})})}export{i as t};
1
+ import{O as e}from"./route-D8G-pTdk.js";import{t}from"./jsx-runtime-LKYXHABd.js";import{A as n}from"./input-FbzQKk3L.js";var r=t();function i({steps:t,at:i,reached:a,onGo:o,label:s=`Steps`}){return(0,r.jsx)(`nav`,{"aria-label":s,children:(0,r.jsx)(`ol`,{className:`m-0 flex list-none items-center gap-2 p-0`,children:t.map((s,c)=>{let l=c<=a,u=c===i,d=c<a&&!u;return(0,r.jsxs)(`li`,{className:n(`flex items-center gap-2`,c<t.length-1&&`flex-1`),children:[(0,r.jsxs)(`button`,{type:`button`,disabled:!l,"aria-current":u?`step`:void 0,onClick:()=>o(c),"aria-label":s.name,"data-tip":s.tip,className:n(`inline-flex min-h-8 flex-none items-center gap-2 rounded-[8px] border-0 bg-transparent px-1 text-[13px] whitespace-nowrap`,l&&!u?`cursor-pointer hover:bg-surface-strong`:``),children:[(0,r.jsx)(`span`,{"aria-hidden":`true`,className:n(`inline-flex size-6 flex-none items-center justify-center rounded-full text-[13px] font-semibold tabular-nums`,d?`bg-pass text-white`:u?`bg-accent text-accent-ink`:`border border-line bg-bg text-muted`),children:d?(0,r.jsx)(e,{size:13,strokeWidth:3}):c+1}),(0,r.jsx)(`span`,{className:n(u?`font-medium text-ink`:l?`text-ink-2`:`text-muted`,!u&&`hidden @xl:inline`),children:s.name})]}),c<t.length-1&&(0,r.jsx)(`span`,{"aria-hidden":`true`,className:`h-0.5 min-w-4 flex-1 overflow-hidden rounded-full bg-line @xl:min-w-8`,children:(0,r.jsx)(`span`,{className:n(`block h-full rounded-full bg-pass transition-[width] duration-250 ease-out`,c<a?`w-full`:`w-0`)})})]},s.name)})})})}export{i as t};
@@ -0,0 +1 @@
1
+ var e=new Intl.RelativeTimeFormat(`en`,{style:`narrow`}),t=(t,n)=>e.format(-t,n);function n(e){let n=e?Date.parse(e):NaN;if(Number.isNaN(n))return``;let r=Math.max(0,(Date.now()-n)/1e3);if(r<60)return`just now`;if(r<3600)return t(Math.floor(r/60),`minute`);if(r<21600)return t(Math.floor(r/3600),`hour`);let i=new Date(n);return i.toDateString()===new Date().toDateString()?i.toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`}):r<518400?i.toLocaleString([],{weekday:`short`,hour:`2-digit`,minute:`2-digit`}):i.toLocaleDateString([],{day:`numeric`,month:`short`})}function r(e,t=new Date){let n=e?new Date(e):null;if(!n||Number.isNaN(n.getTime()))return`Older`;let r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();return n.getTime()>=r?`Today`:n.getTime()>=r-864e5?`Yesterday`:n.getTime()>=r-5184e5?`Earlier this week`:`Older`}export{r as n,t as r,n as t};
@@ -7,15 +7,19 @@
7
7
  <!-- Light and dark both: before the app has set its mode, the page is the computer's (src/index.css, :root). -->
8
8
  <meta name="color-scheme" content="light dark" />
9
9
  <title>ForgeQE</title>
10
- <script type="module" crossorigin src="/assets/index-q1r33z9g.js"></script>
10
+ <script type="module" crossorigin src="/assets/index-BBJ_SKdO.js"></script>
11
11
  <link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-XKyaHtl9.js">
12
12
  <link rel="modulepreload" crossorigin href="/assets/route-D8G-pTdk.js">
13
- <link rel="modulepreload" crossorigin href="/assets/agents-DPabR9dS.js">
13
+ <link rel="modulepreload" crossorigin href="/assets/sectionList-BlwEtA8S.js">
14
14
  <link rel="modulepreload" crossorigin href="/assets/jsx-runtime-LKYXHABd.js">
15
- <link rel="modulepreload" crossorigin href="/assets/input-ChhA0xMm.js">
16
- <link rel="modulepreload" crossorigin href="/assets/pageBack-Dhl5PHZE.js">
17
- <link rel="modulepreload" crossorigin href="/assets/palette-CpGAHix6.js">
18
- <link rel="stylesheet" crossorigin href="/assets/index-FhirFP-O.css">
15
+ <link rel="modulepreload" crossorigin href="/assets/input-FbzQKk3L.js">
16
+ <link rel="modulepreload" crossorigin href="/assets/pageBack-B6bY6ZUl.js">
17
+ <link rel="modulepreload" crossorigin href="/assets/palette-C5Ok5Zd1.js">
18
+ <link rel="modulepreload" crossorigin href="/assets/frame-DNgVKrlp.js">
19
+ <link rel="modulepreload" crossorigin href="/assets/when-BuWCTaKm.js">
20
+ <link rel="modulepreload" crossorigin href="/assets/default-DB4ZMZxa.js">
21
+ <link rel="modulepreload" crossorigin href="/assets/markdown-1z66EzBR.js">
22
+ <link rel="stylesheet" crossorigin href="/assets/index-hysPD6U9.css">
19
23
  </head>
20
24
  <body>
21
25
  <div id="root"></div>
@@ -540,6 +540,7 @@ The loop:
540
540
  | `openai` | `openai`, `baseURL` when set | `openai/<model>` |
541
541
  | `openai_compatible`, `ollama` | `forgeqe` via `@ai-sdk/openai-compatible` and the profile's `base_url` | `forgeqe/<model>` |
542
542
  | `github_copilot` | the Copilot gateway (`python -m forgeqe_engine copilot-gateway` on 127.0.0.1) as an `openai_compatible` profile (`engineRoute`) | `forgeqe/<model>` |
543
+ | `anthropic`, `gemini`, `bedrock` | read as `openai_compatible` at the vendor's fixed address (`VENDORS`, `vendorEndpoint` in `src/llm.ts`: api.anthropic.com, generativelanguage.googleapis.com, `bedrock-mantle.<region>.api.aws`; never llms.json's `endpoint`, a region only of `AWS_REGION`'s shape) | `forgeqe/<model>` |
543
544
 
544
545
  - A profile with `auth: entra` reaches the runtime through a local gateway that adds an Entra ID token to each request (`entraGateway`); the runtime holds no key.
545
546
  - A chat's runtime holds every usable profile at once (`switchableProfiles`, `providerSet`: a second endpoint of the same provider becomes `fq-<name>`), so the model changes without a new session.
package/docs/MOBILE.md CHANGED
@@ -63,7 +63,10 @@ forgeqe mobile apps # the mobile apps of the active environment
63
63
  forgeqe mobile devices --like "Pixel 8-14" # the devices TestMu or BrowserStack has, most like one first
64
64
  ```
65
65
 
66
- **Replaying a workflow.** Replay runs the steps with no model, on Appium or Maestro.
66
+ **Replaying a workflow.** Replay runs the steps with no model, on Appium or Maestro. It needs a model only to heal a
67
+ moved control: when none can be used now, the replay still runs, with healing off and the reason said. When the agent
68
+ in a chat is asked to do a goal an earlier explore in that app did and passed, it replays the workflow that explore saved
69
+ instead of exploring again (ask it to explore anew to use the model).
67
70
 
68
71
  **Web app**
69
72
 
package/docs/WEB_APP.md CHANGED
@@ -99,7 +99,10 @@ GitHub's link with **Open GitHub** and the one-time code with **Copy**, and wait
99
99
  sign-in stays in the system's credential store, and ForgeQE handles no token. **Use a token** is for a machine without
100
100
  a browser: a fine-grained `github_pat_` token with the Copilot Requests permission, typed into a password field and kept
101
101
  in the credential store; no response shows it back, and a classic `ghp_` token is refused. Either way ForgeQE then
102
- lists your seat's models, you pick one, and the Copilot profile in `llms.json` becomes the default. The card says who
102
+ lists your seat's models: the Copilot profile in `llms.json` gets auto and becomes the default, and each other model
103
+ your seat can use gets a profile of its own (`copilot-<model>`), so Settings › Models and the model pickers list them
104
+ all. A profile already there is never changed, and a model one already uses is not added twice. **Sync models** on the
105
+ GitHub Copilot card does the same later, when your seat gains models: it adds only the ones the list lacks. The card says who
103
106
  is signed in and how, with **Sign out**.
104
107
 
105
108
  Once the folder is set up, Home (and an agent's page) says above the message box what would still stop a chat on this
@@ -409,7 +409,7 @@ forgeqe docs --copy ./docs # copy the guide, the architecture page, the refere
409
409
  <div class="area"><a class="area-name" href="#area-data"><span class="mono">Data</span></a><ul class="tiles"><li><a class="tile" href="#cap-databases"><b>Ask a database in plain language</b><span>Which customers in India have paid orders? Ask the orders database</span></a></li><li><a class="tile" href="#cap-test-data"><b>Test data on demand</b><span>Generate test data: 20 customers with 1 to 3 orders each in the shop database</span></a></li><li><a class="tile" href="#cap-data-flows"><b>Data flows between systems</b><span>Check that customers from the digital database reach the CRM correctly</span></a></li></ul></div>
410
410
  <div class="area"><a class="area-name" href="#area-automated-tests"><span class="mono">Automated tests</span></a><ul class="tiles"><li><a class="tile" href="#cap-write-tests"><b>Turn a passed run into an automated test</b><span>Write a Playwright test for that run in ../app</span></a></li><li><a class="tile" href="#cap-heal-tests"><b>Heal failing tests</b><span>Heal the failing tests in ../app</span></a></li><li><a class="tile" href="#cap-migrate-tests"><b>Migrate a test suite</b><span>Migrate the Selenium tests in tests/ to Playwright TypeScript</span></a></li><li><a class="tile" href="#cap-tosca-convert"><b>Convert Tosca test cases</b><span>Convert the Tosca export tosca/checkout.tsu to Playwright TypeScript</span></a></li><li><a class="tile" href="#cap-find-run-tests"><b>Find and run existing tests</b><span>Run the checkout tests</span></a></li><li><a class="tile" href="#cap-regression-packs"><b>Regression packs for a release</b><span>Build a regression pack for sprint 12 and run it on TestMu</span></a></li><li><a class="tile" href="#cap-flaky-tests"><b>Flaky test detection and quarantine</b><span>Which tests are flaky?</span></a></li><li><a class="tile" href="#cap-run-diff"><b>Compare two runs step by step</b><span>It passed yesterday and fails today: why?</span></a></li><li><a class="tile" href="#cap-test-debt"><b>Test debt and coverage gaps</b><span>What has no test?</span></a></li><li><a class="tile" href="#cap-test-management"><b>Test management</b><span>Show the test inventory</span></a></li></ul></div>
411
411
  <div class="area"><a class="area-name" href="#area-pull-requests"><span class="mono">Pull requests</span></a><ul class="tiles"><li><a class="tile" href="#cap-pr-review"><b>Review pull requests</b><span>Review PR 42 and focus on error handling</span></a></li><li><a class="tile" href="#cap-pr-impact"><b>Pull request impact and test selection</b><span>What does PR 42 impact?</span></a></li></ul></div>
412
- <div class="area"><a class="area-name" href="#area-api"><span class="mono">API</span></a><ul class="tiles"><li><a class="tile" href="#cap-api-testing"><b>API and contract testing</b><span>Turn the last run's API calls into tests</span></a></li><li><a class="tile" href="#cap-api-load-security"><b>API load and security checks</b><span>Load test the orders API with 20 users for a minute</span></a></li></ul></div>
412
+ <div class="area"><a class="area-name" href="#area-api"><span class="mono">API</span></a><ul class="tiles"><li><a class="tile" href="#cap-api-testing"><b>API and contract testing</b><span>Turn the last run's API calls into tests</span></a></li><li><a class="tile" href="#cap-api-calls"><b>An API's calls and collections</b><span>Import our Postman collection and send its calls</span></a></li><li><a class="tile" href="#cap-api-load-security"><b>API load and security checks</b><span>Load test the orders API with 20 users for a minute</span></a></li></ul></div>
413
413
  <div class="area"><a class="area-name" href="#area-quality"><span class="mono">Quality</span></a><ul class="tiles"><li><a class="tile" href="#cap-accessibility-performance"><b>Accessibility and page performance</b><span>Is the checkout page accessible?</span></a></li><li><a class="tile" href="#cap-accessibility-personas"><b>Accessibility testing with personas</b><span>Act as a blind person and use the website to find accessibility issues</span></a></li><li><a class="tile" href="#cap-visual-comparison"><b>Visual comparison with baselines</b><span>What changed visually since the last run?</span></a></li><li><a class="tile" href="#cap-defect-intelligence"><b>Defect intelligence: trends and prediction</b><span>Which defects keep coming back?</span></a></li><li><a class="tile" href="#cap-security-smoke"><b>Passive security smoke checks</b><span>Any security problems in the last checkout run?</span></a></li><li><a class="tile" href="#cap-localization-checks"><b>Localization checks</b><span>Is the German checkout fully translated?</span></a></li><li><a class="tile" href="#cap-responsive-check"><b>Responsive check</b><span>Does the checkout page work on phones?</span></a></li></ul></div>
414
414
  <div class="area"><a class="area-name" href="#area-release"><span class="mono">Release</span></a><ul class="tiles"><li><a class="tile" href="#cap-release-readiness"><b>Requirement coverage and release readiness</b><span>Are we ready to release?</span></a></li><li><a class="tile" href="#cap-release-verdict"><b>One release verdict from everything measured</b><span>Can we ship release-2.3?</span></a></li><li><a class="tile" href="#cap-feature-flags"><b>Regression across feature-flag combinations</b><span>Run the release pack across the new-checkout feature flag on and off</span></a></li><li><a class="tile" href="#cap-reports"><b>Reports you can share</b><span>Create a release report for all projects</span></a></li></ul></div>
415
415
  <div class="area"><a class="area-name" href="#area-systems"><span class="mono">Systems</span></a><ul class="tiles"><li><a class="tile" href="#cap-systems"><b>Work with Azure DevOps, Jira, GitHub, and Confluence</b><span>Show the open bugs in this sprint</span></a></li><li><a class="tile" href="#cap-system-data"><b>Read any data in Azure DevOps, Jira, Xray, and Confluence, and open Azure DevOps pull requests</b><span>Are there open pull requests in any repository of QI-Claims?</span></a></li></ul></div>
@@ -5734,7 +5734,10 @@ forgeqe mobile doctor # does the Appium server answer (the cloud's hub a
5734
5734
  forgeqe mobile apps # the mobile apps of the active environment
5735
5735
  forgeqe mobile devices --like &quot;Pixel 8-14&quot; # the devices TestMu or BrowserStack has, most like one first
5736
5736
  </code></pre>
5737
- <p><strong>Replaying a workflow.</strong> Replay runs the steps with no model, on Appium or Maestro.</p>
5737
+ <p><strong>Replaying a workflow.</strong> Replay runs the steps with no model, on Appium or Maestro. It needs a model only to heal a
5738
+ moved control: when none can be used now, the replay still runs, with healing off and the reason said. When the agent
5739
+ in a chat is asked to do a goal an earlier explore in that app did and passed, it replays the workflow that explore saved
5740
+ instead of exploring again (ask it to explore anew to use the model).</p>
5738
5741
  <p><strong>Web app</strong></p>
5739
5742
  <ol>
5740
5743
  <li>Open <strong>Record</strong> and open the recording (the list's filter has <strong>Mobile apps</strong>).</li>
@@ -9939,10 +9942,10 @@ projects; for other frameworks add <code>--agent</code>, or run the listed files
9939
9942
  <div class="hd"><span class="mono">API</span><h3>API and contract testing</h3></div>
9940
9943
  <p class="ds">Builds API contracts (status, schema, key fields) from the calls a browser run saw or from an API description (OpenAPI, Swagger, WSDL, GraphQL, .proto, gRPC reflection), and end-to-end API scenarios from runs, descriptions, test cases, or plain English. Runs them straight against the API without a browser, or writes them as tests in the repository. REST, GraphQL (with subscriptions), SOAP, gRPC (with streaming), WebSocket and Server-Sent Events. Comparing runs of one flow learns which values are parameters; contracts that stop passing after the app changed are learned again from a newer run, kept only when a replay passes and a person agrees. A mock server built from the contracts.</p>
9941
9944
  <div class="facts">
9942
- <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Turn the last run's API calls into tests</li><li>Test the API in openapi.yaml</li><li>Write API scenario tests for the order lifecycle</li><li>Import our Postman collection and send its calls</li><li>Add these cURL calls to the shop API</li><li>Heal the API contracts from the latest run</li></ul></div>
9945
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Turn the last run's API calls into tests</li><li>Test the API in openapi.yaml</li><li>Write API scenario tests for the order lifecycle</li><li>Heal the API contracts from the latest run</li></ul></div>
9943
9946
  <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need opt">Optional</span><span>The coding agent, Quill: a live model profile (or code.model), and what forgeqe setup installs for it</span></li></ul></div>
9944
9947
  <div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Calls that change data run only when the user allows them, on a test environment, never production; healing never replays them.</li><li>A contract that fails can be a real defect: healing proposes a new version, and a person decides.</li></ul></div>
9945
- <div class="fact"><span class="mono">Tools</span><p class="tools"><code>api_contracts</code> <code>run_api_contracts</code> <code>heal_api_contracts</code> <code>api_scenarios</code> <code>run_api_scenarios</code> <code>write_api_tests</code> <code>api_find_calls</code> <code>api_new_set</code> <code>api_add_calls</code> <code>api_rename_folder</code> <code>api_move_calls</code> <code>api_delete_set</code> <code>api_sign_in</code> <code>api_import_collection</code></p></div>
9948
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>api_contracts</code> <code>run_api_contracts</code> <code>heal_api_contracts</code> <code>api_scenarios</code> <code>run_api_scenarios</code> <code>write_api_tests</code></p></div>
9946
9949
  </div>
9947
9950
  <div class="detail"><span class="mono">In detail</span>
9948
9951
  <section class="doc" id="doc-how_to_use-api-and-contract-tests">
@@ -10283,6 +10286,19 @@ DevOps test case's Associated Automation when write-back is on.</li>
10283
10286
  </section>
10284
10287
  </div>
10285
10288
  </article>
10289
+ <article class="spec feat" id="cap-api-calls">
10290
+ <div class="hd"><span class="mono">API</span><h3>An API's calls and collections</h3></div>
10291
+ <p class="ds">Keeps an API's calls as a set on the API tests Workbench: finds an API and its calls, adds calls (from the code, cURL or a description), imports a Postman collection, renames, moves and deletes them, and signs in to the API with a saved login, never a credential on a call.</p>
10292
+ <div class="facts">
10293
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Import our Postman collection and send its calls</li><li>Add these cURL calls to the shop API</li><li>Delete the old orders API from the Workbench</li><li>Send the shop API calls signed in with the admin login</li></ul></div>
10294
+ <div class="fact"><span class="mono">What it needs</span><p class="muted">Nothing beyond ForgeQE itself.</p></div>
10295
+ <div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Calls that change data run only when the user allows them, on a test environment, never production.</li><li>Deleting an API asks the user first.</li></ul></div>
10296
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>api_find_calls</code> <code>api_new_set</code> <code>api_add_calls</code> <code>api_rename_folder</code> <code>api_move_calls</code> <code>api_delete_set</code> <code>api_sign_in</code> <code>api_import_collection</code></p></div>
10297
+ </div>
10298
+ <div class="detail"><span class="mono">In detail</span>
10299
+ <p class="see">See <a href="#doc-how_to_use-api-and-contract-tests">API and contract tests</a>.</p>
10300
+ </div>
10301
+ </article>
10286
10302
  <article class="spec feat" id="cap-api-load-security">
10287
10303
  <div class="hd"><span class="mono">API</span><h3>API load and security checks</h3></div>
10288
10304
  <p class="ds">Load and latency testing of a contract set's read-only calls (virtual users, percentiles, throughput and error rate against limits), and robustness and API-security checks (OWASP API Top 10): malformed input, calls without credentials, leaked errors, mass assignment and missing security headers.</p>
@@ -255,10 +255,11 @@ prompts:
255
255
  # # measures them and puts them on tiles when the colour hides one (3D icons only)
256
256
  # icon_set: phosphor # phosphor | solar | lucide | 3d: the pages' and agents' icons everywhere; phosphor
257
257
  # # (Phosphor Duotone, the default), solar (Solar Bold Duotone) and lucide are flat,
258
- # # black (white in dark mode) or icon_colour, so they show on any sidebar
258
+ # # in icon_colour, so they show on any sidebar
259
259
  # # colour; 3d is ForgeQE's pixel icons. lucide draws the buttons' and menus'
260
260
  # # icons in Lucide too; the others keep Phosphor's
261
- # icon_colour: accent # text (the default: black, white in dark mode) | accent (the buttons' colour) |
261
+ # icon_colour: accent # unset (the default: the app's icon colour, blue, light blue in dark mode, or
262
+ # # theme.secondary's) | accent (the buttons' colour) | for black icons "#111928" |
262
263
  # # a colour such as "#7c3aed": the flat icons' lines, made darker or lighter
263
264
  # # where they would not show; phosphor's and solar's second tone (grey in
264
265
  # # black) takes the colour's palest shade
package/llms.example.json CHANGED
@@ -48,6 +48,28 @@
48
48
  "temperature": 0.2,
49
49
  "description": "Any OpenAI-compatible chat endpoint"
50
50
  },
51
+ "claude": {
52
+ "provider": "anthropic",
53
+ "model": "claude-sonnet-4-5",
54
+ "api_key_env": "ANTHROPIC_API_KEY",
55
+ "temperature": 0.2,
56
+ "description": "Anthropic Claude through Anthropic's own API (its OpenAI-compatible endpoint, api.anthropic.com)"
57
+ },
58
+ "gemini": {
59
+ "provider": "gemini",
60
+ "model": "gemini-2.5-pro",
61
+ "api_key_env": "GEMINI_API_KEY",
62
+ "temperature": 0.2,
63
+ "description": "Google Gemini through the Gemini API (its OpenAI-compatible endpoint, generativelanguage.googleapis.com)"
64
+ },
65
+ "bedrock": {
66
+ "provider": "bedrock",
67
+ "model": "openai.gpt-oss-120b",
68
+ "region": "us-east-1",
69
+ "api_key_env": "AWS_BEARER_TOKEN_BEDROCK",
70
+ "temperature": 0.2,
71
+ "description": "AWS Bedrock with a Bedrock API key, through its OpenAI-compatible endpoint (bedrock-mantle.<region>.api.aws)"
72
+ },
51
73
  "copilot": {
52
74
  "provider": "github_copilot",
53
75
  "model": "auto",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capagents/forgeqe",
3
- "version": "3.2.4",
3
+ "version": "3.2.6",
4
4
  "description": "ForgeQE: a browser agent CLI that runs goals and test cases in local Chrome or Chromium, or BrowserStack and TestMu AI/LambdaTest when configured, and turns passing runs into tests in your repo",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
@@ -54,7 +54,6 @@ Steps and checks:
54
54
  - When the run did a step from JavaScript, you MUST do that step through the control of the page.
55
55
  - You MUST assert the checks of the handoff with their locators. You MUST assert the contents of a section inside its section locator.
56
56
  - A check marked live data MUST assert the rule of the expected result, with the value calculated when the test runs. You MUST NOT assert the value of this run.
57
- - When the handoff has no checks, you MUST assert what the goal tells you to check.
58
57
 
59
58
  Code:
60
59
  - You MUST write the test in the language and framework of the repository. A C# NUnit repository gets a C# NUnit test.
@@ -65,7 +64,6 @@ Code:
65
64
  - In a Robot Framework repository, or when the goal names Robot Framework, you MUST write the test as a Robot suite: a `*.robot` file with `*** Settings ***`, `*** Variables ***` and `*** Test Cases ***` sections, one test case per test, and two or more spaces between a keyword and each of its arguments. You MUST put shared keywords, locators and the browser setup in a `*.resource` file under `resources/` and import it with `Resource`, not repeat them in the suite. You MUST use the keywords of the library the repository already imports: with the Browser library, its auto-waiting keywords (`New Page`, `Click`, `Fill Text`, `Get Text`) and its `Get`-based assertions (`Get Text sel == value`); with SeleniumLibrary, its own. You MUST NOT use `Sleep`, and you MUST NOT mix the keywords of the two libraries in one suite. A Robot library is a package: you ask for it with request_install and language: "python".
66
65
  - You MUST NOT put secrets in the code. You MUST read them from the environment variables that the handoff names.
67
66
  - A public demo login is the one exception: a user name and password that the application itself shows to anyone, such as the logins on the sign-in page of a demo site (saucedemo.com). Such a login MAY follow the convention of the repository for test data. The page snapshots of the run show whether the application publishes it.
68
- - You MAY change the test configuration that the test needs.
69
67
 
70
68
  {{> requests-rule}}
71
69
 
@@ -8,7 +8,6 @@ kind: fragment
8
8
  - The test MUST operate the application in a browser through the test framework of the repository. It does what the verified run did, and checks what the run checked.
9
9
  - Test code MUST NOT read the files of ForgeQE: run folders, handoff.md, run.json, workflow.yaml, or page memory.
10
10
  - You MUST NOT replace the scenario with a different test to get a pass, such as a narrower test or a test without a browser.
11
- - A replacement test is never an acceptable result.
12
11
 
13
12
  ## The browser of the test
14
13
  - Before the first run, you MUST make the browser of the test get the same page as the browser that ForgeQE used.
@@ -31,12 +30,8 @@ kind: fragment
31
30
  - The build MUST NOT get more warnings.
32
31
  - Page objects, components, and helpers MUST be generic. Each method takes the items that it acts on as parameters, and gives back what the test checks.
33
32
  - You MUST NOT put test data, expected values, or URLs with query strings in page objects. You MUST make locators from the parameters.
34
- - You MUST put the test data in the test's data-driving mechanism, not only as a const beside the steps:
35
- - BDD: Scenario Outline Examples columns (or step parameters / data tables when the notes say no Outline); step definitions pass them into page objects.
36
- - pytest: `@pytest.mark.parametrize` or a data fixture; the test passes values into page objects.
37
- - MSTest / NUnit / xUnit: `[DataRow]` / `[TestCase]` / `[Theory]`+`[InlineData]` (or the project's data source) on the test method; pass arguments into page objects.
38
- - Playwright / Cypress without Gherkin: `test.each` / looped cases or the repository's data-file loader; the test body passes fields into page objects.
39
- - When the handoff marks a fill or select as from test data NAME, you MUST use that name in that mechanism, with this run's value as the first row. You MUST NOT write this run's value as a string literal in a fill, type, or select call. You MUST NOT keep those values only as a const object in the same test file when the repository already has Examples, parametrize/DataRow/TestCase, fixtures, or a data folder.
33
+ - You MUST put the test data in the test's data-driving mechanism (Scenario Outline Examples, parametrize, DataRow/TestCase/InlineData, test.each, or the repository's data files), not only as a const beside the steps.
34
+ - When the handoff marks a step as from test data NAME, you MUST use that name in that mechanism, with this run's value as the first row, as the handoff's "How to place each NAME" says.
40
35
  - You MUST calculate relative dates, such as "tomorrow", when the test runs.
41
36
 
42
37
  ## Live data
@@ -55,7 +50,7 @@ kind: fragment
55
50
  - A helper that closes an overlay "if present" MAY ignore only the timeout of an overlay that did not show. Other errors MUST fail the test. After the click, the test MUST assert that the overlay is hidden.
56
51
  - For a step marked ✗ in the handoff, you MUST use the locator that the handoff gives in its place.
57
52
  - You MUST call the helper after each navigation, and immediately before each step that opens a thing, such as a date picker or a menu.
58
- - You MUST NOT use overlay handlers or a combined locator (locator.or) for two or more overlays. They can show at the same time: the click of one handler is blocked by the other overlay, handlers do not run inside a handler, and strict mode fails on a combined locator.
53
+ - You MUST NOT use overlay handlers or a combined locator (locator.or) for two or more overlays: shown together, one blocks the other's click, and a combined locator fails strict mode.
59
54
  - You MUST do the flow again, not the tries of the agent.
60
55
  - A site can give different versions of a page to different visits (A/B tests). When you see a different version, you MUST write steps that work on each version.
61
56
  - You SHOULD find elements by what the versions have in common (role and accessible name). You MUST say in notes which versions you saw.
@@ -18,7 +18,7 @@ from dataclasses import dataclass, field
18
18
  from typing import Any, Callable, Dict, Iterable, List, Mapping, Optional, Protocol
19
19
 
20
20
  from .apps import AppSpec, resolve_app
21
- from .workflow import MOBILE_FORMAT, MOBILE_RETRY_OPS, RETRY_OPS, WorkflowError, env_secret, fill, fill_targets, parse_chord, secret_names, validate
21
+ from .workflow import MAX_PICK, MOBILE_FORMAT, MOBILE_RETRY_OPS, RETRY_OPS, WorkflowError, env_secret, fill, fill_targets, parse_chord, secret_names, validate
22
22
 
23
23
 
24
24
  class ControlNotFound(LookupError):
@@ -328,6 +328,8 @@ class _Runner:
328
328
  # A point inside the control (what the app draws there has no control of its own).
329
329
  control = self.find(step["target"], timeout, ready=True)
330
330
  driver.tap_point(control, step["at"], double=op == "double_tap", hold=op == "long_press") # type: ignore[attr-defined]
331
+ elif op in ("tap", "double_tap") and "choice" in step:
332
+ self._choose(step, timeout, double=op == "double_tap")
331
333
  elif op in ("tap", "double_tap"):
332
334
  driver.click(self.find(step["target"], timeout, ready=True), double=op == "double_tap")
333
335
  elif op == "long_press":
@@ -336,6 +338,8 @@ class _Runner:
336
338
  self._wait_for(step, timeout)
337
339
  elif op == "expect_image":
338
340
  self._expect_image(index, step, timeout)
341
+ elif op in ("click", "double_click") and "choice" in step:
342
+ self._choose(step, timeout, double=op == "double_click")
339
343
  else:
340
344
  control = self.find(step["target"], timeout, ready=op in ("click", "double_click", "type", "select", "set_checked"))
341
345
  if op in ("click", "double_click"):
@@ -356,6 +360,47 @@ class _Runner:
356
360
  raise AssertionError("the control's text does not contain the expected value (it holds a secret, so it is not shown)")
357
361
  raise AssertionError(f"expected {want!r} in the control's text, found {got!r}")
358
362
 
363
+ def _choose(self, step: Mapping[str, Any], timeout: float, double: bool = False) -> None:
364
+ """
365
+ A click the review made data: test data or a date clicks the control of that name; "any" the first visible,
366
+ enabled control of its type inside its parent, never one the app greys out. What it clicked is kept as
367
+ {{keep}}, for later steps' text.
368
+ """
369
+ choice = step["choice"]
370
+ target = step["target"]
371
+ if choice["how"] != "any":
372
+ control = self.find(target, timeout, ready=True)
373
+ self.driver.click(control, double=double)
374
+ self.values[choice["keep"]] = str(target.get("name") or "")
375
+ return
376
+ ready = getattr(self.driver, "wait_ready", None)
377
+ if ready is None:
378
+ raise WorkflowError("this driver cannot tell an enabled control from a greyed-out one, so it cannot choose any free one")
379
+ for i in range(MAX_PICK):
380
+ try:
381
+ # The first waits as a step does (the list may still be loading); the rest are there already or not at all.
382
+ control = self.find({**target, "index": i}, timeout if i == 0 else 1.0)
383
+ except ControlNotFound:
384
+ # None at all is a control not found (healing may find where they went), not "none is free".
385
+ if i == 0:
386
+ raise
387
+ break
388
+ try:
389
+ ready(control, 0)
390
+ except TimeoutError:
391
+ continue
392
+ except Exception:
393
+ continue
394
+ name = ""
395
+ try:
396
+ name = " ".join(str(self.driver.text_of(control) or "").split())[:200]
397
+ except Exception:
398
+ pass
399
+ self.driver.click(control, double=double)
400
+ self.values[choice["keep"]] = name
401
+ return
402
+ raise AssertionError(f"no {target.get('control_type') or 'control'} there is free to choose: every one is greyed out or hidden")
403
+
359
404
  def _set_checked(self, control: Any, want: bool, timeout: float) -> None:
360
405
  """A checkbox, switch or radio button left ``want``: tapped only when it is not so already, then confirmed."""
361
406
  driver = self.driver