@capagents/forgeqe 2.9.9 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/forgeqe.js +1640 -1581
- package/dist/web/assets/{Agent-B0R4tnqF.js → Agent-B_mG1pww.js} +1 -1
- package/dist/web/assets/{ApiTests-CqWPHWCs.js → ApiTests-C2QIp_tG.js} +1 -1
- package/dist/web/assets/{Browse-DlbTQPA8.js → Browse-zQoOQXpA.js} +2 -2
- package/dist/web/assets/{Chat-DtI3dgGs.js → Chat-BtLEKYY8.js} +1 -1
- package/dist/web/assets/{CommandPalette-BTI3Q3sc.js → CommandPalette-BgQORiKD.js} +1 -1
- package/dist/web/assets/{Compare-BMcHYq3I.js → Compare-DQNg3ldO.js} +1 -1
- package/dist/web/assets/{Cost-BcZ6gC9M.js → Cost-T0NH8ymc.js} +1 -1
- package/dist/web/assets/{Data-Cbl35RTK.js → Data-CqKsrslC.js} +1 -1
- package/dist/web/assets/{Desktop-D4JLSUnE.js → Desktop-CgDXi3lX.js} +1 -1
- package/dist/web/assets/{DesktopReview-vyosGOyC.js → DesktopReview-C-gW_gli.js} +1 -1
- package/dist/web/assets/{Evidence-MDaV4ttv.js → Evidence-1pipN6K6.js} +1 -1
- package/dist/web/assets/{Explore-yjmJHnzH.js → Explore-lG_kobPj.js} +1 -1
- package/dist/web/assets/{Features-kXt6Um2p.js → Features-BIrW3AiQ.js} +1 -1
- package/dist/web/assets/{Flags-CdLXiacX.js → Flags-sG1vr7NU.js} +1 -1
- package/dist/web/assets/{Flaky-BZx54uo3.js → Flaky-ChKBXlcW.js} +1 -1
- package/dist/web/assets/{Impact-_t7bwCwP.js → Impact-D5a5fyc2.js} +1 -1
- package/dist/web/assets/{Jobs-D4PIAcdO.js → Jobs-B52pIZUx.js} +1 -1
- package/dist/web/assets/{KindPage-CGfjoezZ.js → KindPage-BFoKPj7l.js} +1 -1
- package/dist/web/assets/{Migration-OGOnRmUX.js → Migration-DbuzD_s4.js} +1 -1
- package/dist/web/assets/{Product-DycPE2MI.js → Product-DiH61j0X.js} +1 -1
- package/dist/web/assets/{Production-DqnrcSfn.js → Production-8h5LixDt.js} +1 -1
- package/dist/web/assets/{Quality-C__pEYpt.js → Quality-CI5n8b_k.js} +1 -1
- package/dist/web/assets/{Readiness-j22NEcwR.js → Readiness-D4n4HSlW.js} +1 -1
- package/dist/web/assets/{Record-D7h6g_aw.js → Record-O8LOzHLo.js} +1 -1
- package/dist/web/assets/{Regression-ByBOHx96.js → Regression-DbShD6ji.js} +1 -1
- package/dist/web/assets/{Reports-BGs_YnwI.js → Reports-IdoUvtaW.js} +1 -1
- package/dist/web/assets/{Response-DWF22-5i.js → Response-BRVM9mW_.js} +1 -1
- package/dist/web/assets/{RunDiff-YxrBVtxF.js → RunDiff-uQoK3Q6q.js} +1 -1
- package/dist/web/assets/{Runs-CP3CgO6s.js → Runs-BhDgzDo4.js} +1 -1
- package/dist/web/assets/{TestCases-BzuM4M4t.js → TestCases-DQ2oWXt2.js} +1 -1
- package/dist/web/assets/{TestData-CRmYpEgE.js → TestData-D-ZdmHVa.js} +1 -1
- package/dist/web/assets/{TestDebt-D3I2zyGE.js → TestDebt-_jer4Dmy.js} +1 -1
- package/dist/web/assets/{Tosca-jVIQnyZv.js → Tosca-DOT6-53c.js} +1 -1
- package/dist/web/assets/{WhatsNew-EKniIJ6W.js → WhatsNew-DU5k6dz6.js} +1 -1
- package/dist/web/assets/{dataParts-DRO6c2Kb.js → dataParts-BzuL6pAo.js} +1 -1
- package/dist/web/assets/{fold-D9yUIbTt.js → fold-DZYvcIP0.js} +1 -1
- package/dist/web/assets/{frame--ur6lpMR.js → frame-Bjxy1jvq.js} +2 -2
- package/dist/web/assets/{index-GLMqsotN.js → index-DH21lIE7.js} +4 -4
- package/dist/web/assets/{logos-CdIbTq_J.js → logos-Co26FM0G.js} +1 -1
- package/dist/web/assets/{palette-D5_w8xup.js → palette-CitkMCod.js} +1 -1
- package/dist/web/assets/{qualityParts-BPBFzuHH.js → qualityParts-DADI5Fqn.js} +1 -1
- package/dist/web/assets/{rows-BVHC-HKz.js → rows-BqT7fknl.js} +1 -1
- package/dist/web/assets/{thread-B4g66SWA.js → thread-iRsceqhM.js} +1 -1
- package/dist/web/assets/{usePageChat-BU6VEv0K.js → usePageChat-BCrPoTyS.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/py/forgeqe_engine/browser.py +29 -0
- package/py/forgeqe_engine/capture.py +2 -2
- package/py/forgeqe_engine/dynamic.py +8 -0
- package/py/forgeqe_engine/memory.py +33 -2
- package/py/forgeqe_engine/recordsession.py +167 -19
- package/py/forgeqe_engine/webrecord.py +80 -0
- package/py/forgeqe_engine/webrecord_page.py +118 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Features-
|
|
2
|
-
import{$n as e,$t as t,A as n,An as r,Ar as i,B as a,Bn as o,C as s,Ct as c,D as l,Dn as u,Dt as d,Et as f,Fn as p,Fr as m,Ft as h,G as g,Gn as _,H as v,Ht as y,Ir as b,It as x,J as S,Kt as C,L as w,Ln as T,Lt as E,Mn as ee,Mt as D,Nn as O,Nr as k,O as A,On as j,Or as M,Pn as N,Pr as P,Pt as te,Q as ne,Qt as re,Sr as ie,St as ae,T as F,Tn as I,Tr as oe,U as se,Un as ce,Ut as le,V as ue,Vn as de,W as fe,Wn as pe,Xn as me,Yn as he,Zn as ge,Zt as _e,_ as ve,_n as ye,_r as be,a as xe,an as Se,bt as Ce,c as we,ct as Te,d as Ee,dt as De,gr as Oe,gt as ke,ht as Ae,in as je,it as Me,j as Ne,jt as Pe,kn as Fe,kr as Ie,kt as Le,l as Re,lt as ze,mn as Be,mt as Ve,nr as He,o as Ue,on as We,ot as Ge,p as Ke,pn as qe,pr as Je,q as Ye,qn as Xe,r as Ze,rt as Qe,s as $e,tr as et,tt,un as nt,ur as rt,ut as it,v as at,vr as ot,wr as st,wt as ct,xt as lt,yn as ut,yr as dt,yt as ft,z as pt,zt as mt}from"./line-icons-CQ-3V8ax.js";import{B as L,Bt as ht,Ct as gt,Et as _t,Ft as vt,Gt as yt,H as bt,Kt as xt,Ot as St,Q as Ct,Qt as wt,R,Rt as Tt,Ut as Et,V as Dt,Vt as Ot,W as kt,Wt as At,Yt as jt,Z as Mt,Zt as Nt,_ as Pt,a as z,c as Ft,ct as It,d as Lt,et as Rt,f as zt,gt as Bt,h as Vt,i as Ht,jt as Ut,l as Wt,lt as Gt,m as Kt,mt as qt,nt as Jt,o as Yt,p as Xt,s as Zt,st as Qt,t as $t,u as en,vt as tn,xt as nn,z as rn,zt as an}from"./filters-CflRmNDz.js";import{$ as on,A as sn,At as cn,B as ln,C as un,Ct as dn,D as fn,Dt as pn,E as mn,F as hn,Ft as B,G as gn,Gt as _n,H as vn,I as yn,J as V,Jt as bn,K as xn,M as Sn,N as Cn,O as wn,Ot as Tn,P as En,Q as Dn,Rt as On,S as kn,St as H,T as An,Tt as U,W as jn,X as Mn,Y as Nn,Z as Pn,Zt as Fn,an as In,at as Ln,b as Rn,bt as zn,c as Bn,cn as Vn,d as Hn,dt as Un,et as Wn,g as Gn,h as Kn,i as qn,in as Jn,it as Yn,j as Xn,jt as Zn,k as Qn,kt as $n,l as er,lt as tr,m as nr,n as rr,nt as ir,o as ar,on as or,p as sr,q as W,r as cr,rt as lr,s as ur,st as dr,t as fr,tt as pr,u as mr,ut as hr,v as gr,vt as _r,w as vr,wt as yr,x as br,xt as xr,y as Sr,yt as Cr}from"./frame--ur6lpMR.js";import{a as wr,r as Tr}from"./markdown-nTIj9lyp.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Er=P((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,D());else{var t=n(l);t!==null&&A(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function ee(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&A(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?D():S=!1}}}var D;if(typeof y==`function`)D=function(){y(ee)};else if(typeof MessageChannel<`u`){var O=new MessageChannel,k=O.port2;O.port1.onmessage=ee,D=function(){k.postMessage(null)}}else D=function(){_(ee,0)};function A(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,A(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,D()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Dr=P(((e,t)=>{t.exports=Er()})),Or=P((e=>{var t=Dr(),n=k(),r=wt();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),h=Symbol.for(`react.portal`),g=Symbol.for(`react.fragment`),_=Symbol.for(`react.strict_mode`),v=Symbol.for(`react.profiler`),y=Symbol.for(`react.consumer`),b=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),S=Symbol.for(`react.suspense`),C=Symbol.for(`react.suspense_list`),w=Symbol.for(`react.memo`),T=Symbol.for(`react.lazy`),E=Symbol.for(`react.activity`),ee=Symbol.for(`react.memo_cache_sentinel`),D=Symbol.iterator;function O(e){return typeof e!=`object`||!e?null:(e=D&&e[D]||e[`@@iterator`],typeof e==`function`?e:null)}var A=Symbol.for(`react.client.reference`);function j(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===A?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case g:return`Fragment`;case v:return`Profiler`;case _:return`StrictMode`;case S:return`Suspense`;case C:return`SuspenseList`;case E:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case h:return`Portal`;case b:return e.displayName||`Context`;case y:return(e._context.displayName||`Context`)+`.Consumer`;case x:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case w:return t=e.displayName||null,t===null?j(e.type)||`Memo`:t;case T:t=e._payload,e=e._init;try{return j(e(t))}catch{}}return null}var M=Array.isArray,N=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},ne=[],re=-1;function ie(e){return{current:e}}function ae(e){0>re||(e.current=ne[re],ne[re]=null,re--)}function F(e,t){re++,ne[re]=e.current,e.current=t}var I=ie(null),oe=ie(null),se=ie(null),ce=ie(null);function le(e,t){switch(F(se,t),F(oe,e),F(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ae(I),F(I,e)}function ue(){ae(I),ae(oe),ae(se)}function de(e){e.memoizedState!==null&&F(ce,e);var t=I.current,n=Hd(t,e.type);t!==n&&(F(oe,e),F(I,n))}function fe(e){oe.current===e&&(ae(I),ae(oe)),ce.current===e&&(ae(ce),Qf._currentValue=te)}var pe,me;function he(e){if(pe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);pe=t&&t[1]||``,me=-1<e.stack.indexOf(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Features-BIrW3AiQ.js","assets/line-icons-CQ-3V8ax.js","assets/filters-CflRmNDz.js","assets/frame-Bjxy1jvq.js","assets/markdown-nTIj9lyp.js","assets/WhatsNew-DU5k6dz6.js","assets/Chat-BtLEKYY8.js","assets/Response-BRVM9mW_.js","assets/thread-iRsceqhM.js","assets/rows-BqT7fknl.js","assets/recordTest-CqxnF953.js","assets/Reports-IdoUvtaW.js","assets/segmented-CAf_qz5Z.js","assets/families-zlLgApNV.js","assets/Agent-B_mG1pww.js","assets/Data-CqKsrslC.js","assets/usePageChat-BCrPoTyS.js","assets/dataParts-BzuL6pAo.js","assets/TestData-D-ZdmHVa.js","assets/RelationGraph-D_ZVeOBh.js","assets/qualityParts-DADI5Fqn.js","assets/Runs-BhDgzDo4.js","assets/Record-O8LOzHLo.js","assets/DesktopReview-C-gW_gli.js","assets/Desktop-CgDXi3lX.js","assets/Regression-DbShD6ji.js","assets/Impact-D5a5fyc2.js","assets/flowLayout-cXVJhLpH.js","assets/ApiTests-C2QIp_tG.js","assets/Migration-DbuzD_s4.js","assets/fold-DZYvcIP0.js","assets/logos-Co26FM0G.js","assets/parts-C53RxMcR.js","assets/Tosca-DOT6-53c.js","assets/Steps-BDSeIznj.js","assets/Compare-DQNg3ldO.js","assets/Quality-CI5n8b_k.js","assets/Flaky-ChKBXlcW.js","assets/RunDiff-uQoK3Q6q.js","assets/TestDebt-_jer4Dmy.js","assets/Flags-sG1vr7NU.js","assets/Production-8h5LixDt.js","assets/Cost-T0NH8ymc.js","assets/Explore-lG_kobPj.js","assets/Readiness-D4n4HSlW.js","assets/TestCases-DQ2oWXt2.js","assets/KindPage-BFoKPj7l.js","assets/Jobs-B52pIZUx.js","assets/Product-DiH61j0X.js","assets/productParts-DK3ULNpv.js","assets/Product-DLioOiRN.css","assets/Evidence-1pipN6K6.js","assets/Browse-zQoOQXpA.js","assets/palette-CitkMCod.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{$n as e,$t as t,A as n,An as r,Ar as i,B as a,Bn as o,C as s,Ct as c,D as l,Dn as u,Dt as d,Et as f,Fn as p,Fr as m,Ft as h,G as g,Gn as _,H as v,Ht as y,Ir as b,It as x,J as S,Kt as C,L as w,Ln as T,Lt as E,Mn as ee,Mt as D,Nn as O,Nr as k,O as A,On as j,Or as M,Pn as N,Pr as P,Pt as te,Q as ne,Qt as re,Sr as ie,St as ae,T as F,Tn as I,Tr as oe,U as se,Un as ce,Ut as le,V as ue,Vn as de,W as fe,Wn as pe,Xn as me,Yn as he,Zn as ge,Zt as _e,_ as ve,_n as ye,_r as be,a as xe,an as Se,bt as Ce,c as we,ct as Te,d as Ee,dt as De,gr as Oe,gt as ke,ht as Ae,in as je,it as Me,j as Ne,jt as Pe,kn as Fe,kr as Ie,kt as Le,l as Re,lt as ze,mn as Be,mt as Ve,nr as He,o as Ue,on as We,ot as Ge,p as Ke,pn as qe,pr as Je,q as Ye,qn as Xe,r as Ze,rt as Qe,s as $e,tr as et,tt,un as nt,ur as rt,ut as it,v as at,vr as ot,wr as st,wt as ct,xt as lt,yn as ut,yr as dt,yt as ft,z as pt,zt as mt}from"./line-icons-CQ-3V8ax.js";import{B as L,Bt as ht,Ct as gt,Et as _t,Ft as vt,Gt as yt,H as bt,Kt as xt,Ot as St,Q as Ct,Qt as wt,R,Rt as Tt,Ut as Et,V as Dt,Vt as Ot,W as kt,Wt as At,Yt as jt,Z as Mt,Zt as Nt,_ as Pt,a as z,c as Ft,ct as It,d as Lt,et as Rt,f as zt,gt as Bt,h as Vt,i as Ht,jt as Ut,l as Wt,lt as Gt,m as Kt,mt as qt,nt as Jt,o as Yt,p as Xt,s as Zt,st as Qt,t as $t,u as en,vt as tn,xt as nn,z as rn,zt as an}from"./filters-CflRmNDz.js";import{$ as on,A as sn,At as cn,B as ln,C as un,Ct as dn,D as fn,Dt as pn,E as mn,F as hn,Ft as B,G as gn,Gt as _n,H as vn,I as yn,J as V,Jt as bn,K as xn,M as Sn,N as Cn,O as wn,Ot as Tn,P as En,Q as Dn,Rt as On,S as kn,St as H,T as An,Tt as U,W as jn,X as Mn,Y as Nn,Z as Pn,Zt as Fn,an as In,at as Ln,b as Rn,bt as zn,c as Bn,cn as Vn,d as Hn,dt as Un,et as Wn,g as Gn,h as Kn,i as qn,in as Jn,it as Yn,j as Xn,jt as Zn,k as Qn,kt as $n,l as er,lt as tr,m as nr,n as rr,nt as ir,o as ar,on as or,p as sr,q as W,r as cr,rt as lr,s as ur,st as dr,t as fr,tt as pr,u as mr,ut as hr,v as gr,vt as _r,w as vr,wt as yr,x as br,xt as xr,y as Sr,yt as Cr}from"./frame-Bjxy1jvq.js";import{a as wr,r as Tr}from"./markdown-nTIj9lyp.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Er=P((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,D());else{var t=n(l);t!==null&&A(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function ee(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&A(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?D():S=!1}}}var D;if(typeof y==`function`)D=function(){y(ee)};else if(typeof MessageChannel<`u`){var O=new MessageChannel,k=O.port2;O.port1.onmessage=ee,D=function(){k.postMessage(null)}}else D=function(){_(ee,0)};function A(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,A(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,D()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Dr=P(((e,t)=>{t.exports=Er()})),Or=P((e=>{var t=Dr(),n=k(),r=wt();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),h=Symbol.for(`react.portal`),g=Symbol.for(`react.fragment`),_=Symbol.for(`react.strict_mode`),v=Symbol.for(`react.profiler`),y=Symbol.for(`react.consumer`),b=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),S=Symbol.for(`react.suspense`),C=Symbol.for(`react.suspense_list`),w=Symbol.for(`react.memo`),T=Symbol.for(`react.lazy`),E=Symbol.for(`react.activity`),ee=Symbol.for(`react.memo_cache_sentinel`),D=Symbol.iterator;function O(e){return typeof e!=`object`||!e?null:(e=D&&e[D]||e[`@@iterator`],typeof e==`function`?e:null)}var A=Symbol.for(`react.client.reference`);function j(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===A?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case g:return`Fragment`;case v:return`Profiler`;case _:return`StrictMode`;case S:return`Suspense`;case C:return`SuspenseList`;case E:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case h:return`Portal`;case b:return e.displayName||`Context`;case y:return(e._context.displayName||`Context`)+`.Consumer`;case x:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case w:return t=e.displayName||null,t===null?j(e.type)||`Memo`:t;case T:t=e._payload,e=e._init;try{return j(e(t))}catch{}}return null}var M=Array.isArray,N=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},ne=[],re=-1;function ie(e){return{current:e}}function ae(e){0>re||(e.current=ne[re],ne[re]=null,re--)}function F(e,t){re++,ne[re]=e.current,e.current=t}var I=ie(null),oe=ie(null),se=ie(null),ce=ie(null);function le(e,t){switch(F(se,t),F(oe,e),F(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ae(I),F(I,e)}function ue(){ae(I),ae(oe),ae(se)}function de(e){e.memoizedState!==null&&F(ce,e);var t=I.current,n=Hd(t,e.type);t!==n&&(F(oe,e),F(I,n))}function fe(e){oe.current===e&&(ae(I),ae(oe)),ce.current===e&&(ae(ce),Qf._currentValue=te)}var pe,me;function he(e){if(pe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);pe=t&&t[1]||``,me=-1<e.stack.indexOf(`
|
|
3
3
|
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
4
|
`+pe+e+me}var ge=!1;function _e(e,t){if(!e||ge)return``;ge=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
5
5
|
`),l=s.split(`
|
|
@@ -36,7 +36,7 @@ Error generating stack: `+e.message+`
|
|
|
36
36
|
- Do not remove a test from the regression pack.`,`Output format: A table of the test cases (id, title, acceptance criterion, run result), each automation script's file and command, and the regression pack's result with every failure and its reason.`,`Summary: Write, automate and add to regression the test cases for the objective above.`].join(`
|
|
37
37
|
|
|
38
38
|
`)}];function oi(e){let t=e.indexOf(ii);return t<0?null:[t,t+52]}var si=(e,t,n=`${t}s`)=>`${e} ${e===1?t:n}`;function ci(e,t,n,r=new Date){let i=new Date(r);i.setHours(0,0,0,0);let a=e=>{let t=Date.parse(e);return Number.isFinite(t)&&t>=i.getTime()},o=[],s=(e||[]).filter(e=>e.status===`failed`&&a(e.lastAt||e.startedAt)).length;s&&o.push({id:`failed`,label:`${si(s,`run`)} failed today`,action:`See what broke`,href:zt(`runs`),tone:`fail`,category:`quality`});let c=(t||[]).filter(e=>e.state===`waiting`).length;c&&o.push({id:`approvals`,label:`${si(c,`request`)} waiting for your approval`,action:`Approve or decline`,href:zt(`agents`),tone:`warn`,category:`agents`});let l=(n||[]).filter(e=>e.enabled&&e.last&&[`failed`,`timed_out`].includes(e.last.status)).length;l&&o.push({id:`jobs`,label:`${si(l,`job`)} failed last time`,action:`See the jobs`,href:zt(`jobs`),tone:`fail`,category:`agents`});let u=(e||[]).filter(e=>e.status===`running`).length;return u&&o.push({id:`running`,label:`${si(u,`run`)} going now`,action:`Watch them`,href:zt(`runs`),tone:`accent`,category:`quality`}),o}function li(e){let t=e?.waiting.length||0;return t?[{id:`review`,label:`${si(t,`agent run`)} waiting for review`,action:`Review them`,href:zt(`evidence-review`),tone:`warn`,category:`assurance`}]:[]}var ui=2048,di=/\.(png|jpe?g|gif|webp|bmp|avif|svg|ico|heic|heif|tiff?)$/i,fi=new Set([`image/png`,`image/jpeg`,`image/webp`,`image/gif`]),pi=e=>di.test(e),mi=e=>e.type.startsWith(`image/`)||di.test(e.name),hi=e=>/\.(png|jpe?g|gif|webp)$/i.test(e);function gi(e){return e.replace(/^.*[\\/]/,``).replace(/\.[^.]*$/,``).replace(/[^A-Za-z0-9._-]+/g,`-`).replace(/^[-.]+|-+$/g,``).slice(0,60)||`image`}var _i=0;function vi(e=new Date){let t=e=>String(e).padStart(2,`0`);return`pasted-${e.getFullYear()}${t(e.getMonth()+1)}${t(e.getDate())}-${t(e.getHours())}${t(e.getMinutes())}${t(e.getSeconds())}-${++_i}`}var yi=e=>!e||/^image\.(png|jpe?g|gif|webp|bmp)$/i.test(e);async function bi(e){let t=new Uint8Array(await e.arrayBuffer()),n=``;for(let e=0;e<t.length;e+=32768)n+=String.fromCharCode(...t.subarray(e,e+32768));return btoa(n)}async function xi(e){if(e.type!==`image/svg+xml`)try{let t=await createImageBitmap(e,{imageOrientation:`from-image`});return{source:t,width:t.width,height:t.height,close:()=>t.close()}}catch{}let t=await Si(e);try{let e=new Image;e.decoding=`async`,e.src=t,await e.decode();let n=e.naturalWidth||1024;return{source:e,width:n,height:e.naturalHeight||Math.round(n*.75)}}catch{throw Error(`This browser cannot read that image. Save it as PNG or JPEG and attach it again.`)}}function Si(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(String(r.result||``)),r.onerror=()=>n(Error(`The image could not be read.`)),r.readAsDataURL(e)})}function Ci(e,t){let n=document.createElement(`canvas`);return n.width=e,n.height=t,n}function wi(e,t,n){return new Promise(r=>e.toBlob(r,t,n))}function Ti(e){let t=e.getContext(`2d`);if(!t)return!1;let{data:n}=t.getImageData(0,0,e.width,e.height),r=Math.max(1,Math.floor(n.length/4/25e4))*4;for(let e=3;e<n.length;e+=r)if(n[e]<255)return!0;return!1}async function Ei(e,t={}){let n=t.max??5242880,r=t.name??e.name??``,i=yi(r)?vi():gi(r);if(e.type===`image/gif`&&e.size<=n){let t=await xi(e).catch(()=>null);if(t?.close?.(),t)return{name:`${i}.gif`,type:`image/gif`,data:await bi(e),width:t.width,height:t.height,changed:!1}}let a=await xi(e);try{let t=Math.min(1,ui/Math.max(a.width,a.height));for(let o=0;o<6;o++){let o=Math.max(1,Math.round(a.width*t)),s=Math.max(1,Math.round(a.height*t)),c=Ci(o,s),l=c.getContext(`2d`);if(!l)throw Error(`This browser cannot draw the image.`);l.imageSmoothingQuality=`high`,l.drawImage(a.source,0,0,o,s);let u=Ti(c),d=/^image\/(jpeg|heic|heif|avif)$/.test(e.type)||/\.(jpe?g|heic|heif|avif)$/i.test(r),f=u?[[`image/png`,void 0],[`image/webp`,.92],[`image/webp`,.8]]:d?[[`image/jpeg`,.9],[`image/jpeg`,.8],[`image/jpeg`,.7]]:[[`image/png`,void 0],[`image/webp`,.92],[`image/jpeg`,.9],[`image/jpeg`,.8],[`image/jpeg`,.7]];for(let[e,t]of f){let r=await wi(c,e,t);if(r&&r.type===e&&fi.has(e)&&r.size<=n)return{name:`${i}${e===`image/png`?`.png`:e===`image/webp`?`.webp`:`.jpg`}`,type:e,data:await bi(r),width:o,height:s,changed:!0}}t*=.75}throw Error(`The image could not be made small enough to attach.`)}finally{a.close?.()}}var q=/<!-- (?:attached-files|forgeqe:files)\s*([\s\S]*?)-->\s*/,Di=/^(?:\.forgeqe\/inbox\/[A-Za-z0-9][A-Za-z0-9._-]*|(?:[A-Za-z0-9][A-Za-z0-9 ._-]*\/)*[A-Za-z0-9][A-Za-z0-9 ._-]*\/?)$/,Oi=/\.(png|jpe?g|gif|webp)$/i,ki=e=>Oi.test(e),Ai=/\.(png|jpe?g|gif|webp|pdf|md|txt|csv|tsv|json|xml|ya?ml|tsx?|jsx?|mjs|cjs|py|java|cs|go|rb|sql|log|feature|toml|ini|sh|ps1)$/i,ji=e=>Ai.test(e),Mi=e=>/\s/.test(e)?`@"${e}"`:`@${e}`;function Ni(e,t){let n=Mi(t),r=e.indexOf(n);for(;r>=0;){let t=r+n.length;if((r===0||/\s/.test(e[r-1]))&&(t===e.length||/\s/.test(e[t])))return e.slice(0,r)+e.slice(t).replace(/^ /,``);r=e.indexOf(n,r+1)}return e}function Pi(e,t){return Ni(e,t)!==e}function Fi(e){let t=e.endsWith(`/`)&&e.length>1,n=t?e.slice(0,-1):e,r=n.lastIndexOf(`/`),i=t?`/`:``;return r<=0?{name:`${n}${i}`,dir:``}:{name:`${n.slice(r+1)}${i}`,dir:n.slice(0,r)}}function Ii(e,t){if(t<0||t>e.length)return null;let n=e.slice(0,t),r=n.lastIndexOf(`@`);if(r<0||r>0&&/[\w./]/.test(n[r-1]))return null;let i=n.slice(r+1);return i.length>200?null:i.startsWith(`"`)?/["@\n]/.test(i.slice(1))?null:{start:r,query:i.slice(1)}:/[\s@"]/.test(i)?null:{start:r,query:i}}function Li(e,t,n,r){let i=`${Mi(r)} `;return{text:`${e.slice(0,t)}${i}${e.slice(n)}`,cursor:t+i.length}}function Ri(e,t){let n=e.trim(),r=t.filter(e=>e.path);return r.length?`<!-- attached-files\nRead these files with your tools; each path is relative to your working folder:\n${r.map(e=>`- ${e.path}`).join(`
|
|
39
|
-
`)}\n-->\n${n}`.trim():n}function zi(e){let t=q.exec(e),n=t?t[1].split(/\r?\n/).map(e=>e.replace(/^- /,``).trim()).filter(e=>Di.test(e)):[];return{body:e.replace(q,``).replace(/^<!--[\s\S]*?-->\s*/,``).trim(),files:n}}function Bi(e,t){let n=/^\/([a-z0-9-]{0,40})$/i.exec(e.slice(0,t));return n&&/^[a-z0-9-]*(\s|$)/i.test(e.slice(t))?n[1].toLowerCase():null}var Vi=8;function Hi(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=String(r.result||``),n=e.indexOf(`,`);t(n>=0?e.slice(n+1):``)},r.onerror=()=>n(Error(`The file could not be read.`)),r.readAsDataURL(e)})}function Ui({path:e,name:t,note:n}){let r=Fi(e),i=n||r.dir;return(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-col items-start gap-0.5`,children:[(0,K.jsx)(`span`,{className:`max-w-full truncate text-[13px] font-medium leading-tight text-ink`,children:t||r.name}),i?(0,K.jsx)(`span`,{className:`max-w-full truncate text-[12px] leading-tight text-muted`,"data-tip":e||void 0,children:i}):null]})}function Wi({file:e,scope:t,onView:n}){let r=e.pending&&e.pending.type.startsWith(`image/`)&&ki(e.name)?`data:${e.pending.type};base64,${e.pending.data}`:``,[i,a]=(0,G.useState)(``),o=`${t.chat||``}|${t.code===!1?0:1}`;(0,G.useEffect)(()=>{if(a(``),r||!e.path||!ki(e.path))return;let n=!1;return Qt.openFile(e.path,t).then(e=>!n&&e.kind===`image`&&a(e.url)).catch(()=>{}),()=>{n=!0}},[e.path,r,o]);let s=r||i;if(!s)return null;let c=(0,K.jsx)(`img`,{src:s,alt:``,className:`size-8 flex-none rounded-[8px] border border-line-soft bg-surface-muted object-cover`});return n?(0,K.jsx)(`button`,{type:`button`,"aria-label":`Preview ${e.name}`,"data-tip":`Preview`,onClick:()=>n(s),className:`inline-flex flex-none cursor-zoom-in rounded-[8px] border-0 bg-transparent p-0`,children:c}):c}function Gi({text:e,scope:t={}}){let{body:n,files:r}=zi(e),[i,a]=(0,G.useState)(``);return!n&&!r.length?null:(0,K.jsxs)(`div`,{className:`ml-auto flex max-w-[min(85%,640px)] flex-col items-end gap-1.5`,children:[r.length>0&&(0,K.jsx)(`ul`,{"aria-label":`Attached files`,className:`m-0 flex list-none flex-wrap justify-end gap-1.5 p-0`,children:r.map(e=>(0,K.jsx)(`li`,{className:`inline-flex max-w-full`,children:e.endsWith(`/`)?(0,K.jsx)(`span`,{className:`inline-flex max-w-full items-center gap-2 rounded-[8px] bg-surface-strong px-2.5 py-1.5`,children:(0,K.jsx)(Ui,{path:e})}):(0,K.jsxs)(`button`,{type:`button`,"data-tip":`Open ${e}`,onClick:async()=>{a(``),a(await en(e,e=>Qt.openFile(e,t)))},className:`inline-flex max-w-full cursor-pointer items-center gap-2 rounded-[8px] border-0 bg-surface-strong px-2.5 py-1.5 text-left hover:bg-line`,children:[(0,K.jsx)(Wi,{file:{path:e,name:Fi(e).name},scope:t}),(0,K.jsx)(Ui,{path:e})]})},e))}),i&&(0,K.jsx)(`p`,{role:`status`,className:`m-0 text-[12px] text-muted`,children:i}),n&&(0,K.jsx)(`div`,{className:`rounded-[18px] bg-surface-strong px-4 py-2.5 text-[15px] leading-relaxed whitespace-pre-wrap text-ink [overflow-wrap:anywhere]`,children:n})]})}function Ki({file:e,scope:t,onRemove:n,onView:r}){return(0,K.jsxs)(`span`,{className:`inline-flex max-w-[260px] items-center gap-2 rounded-[8px] bg-surface-strong py-1.5 pr-1 pl-2.5`,children:[(0,K.jsx)(Wi,{file:e,scope:e.scope??t,onView:r}),(0,K.jsx)(Ui,{path:e.path,name:e.name,note:e.pending?`Saves when you send`:void 0}),(0,K.jsx)(`button`,{type:`button`,"aria-label":`Remove ${e.name}`,"data-tip":`Remove ${e.name}`,onClick:n,className:`inline-flex size-5 flex-none cursor-pointer items-center justify-center self-start rounded-[6px] border-0 bg-transparent text-muted hover:bg-line hover:text-ink`,children:(0,K.jsx)(i,{size:12,"aria-hidden":`true`})})]})}async function qi(e,t,n){try{let r=await Qt.openFile(e,n),i=await fetch(r.url,{credentials:`same-origin`});if(!i.ok)return null;let a=t.replace(/\.[^.]*$/,``),o=await Ei(await i.blob(),{name:`${a}-picture`}),s=await Qt.attachFile({name:o.name,type:o.type,data:o.data},n);return{id:s.path,path:s.path,name:s.name,kind:`upload`,image:!0,scope:n,copyOf:e}}catch{return null}}var Ji=716800,Yi=52428800,Xi=null,Zi=()=>((!Xi||Date.now()-Xi.at>1e4)&&(Xi={at:Date.now(),list:Ut.list().then(e=>e.personas,e=>{throw Xi=null,e})}),Xi.list);function Qi(e,t,n,r={}){let[a,o]=(0,G.useState)([]),[s,c]=(0,G.useState)(``),[l,u]=(0,G.useState)([]),[d,f]=(0,G.useState)(!1),[p,m]=(0,G.useState)(null),[h,g]=(0,G.useState)(0),[_,v]=(0,G.useState)(`file`),[y,b]=(0,G.useState)(!1),[x,S]=(0,G.useState)(!1),[C,w]=(0,G.useState)(null),T=(0,G.useRef)(null),E=(0,G.useRef)(0),ee=(0,G.useRef)(null),D=(0,G.useRef)(0),O=(0,G.useRef)(e);O.current=e;let k=(0,G.useRef)(a),A=(0,G.useRef)(r);A.current=r;let j=`${r.chat||``}|${r.code===!1?0:1}`,M=e=>{k.current=e,o(e)},N=e=>{let t=++D.current;_===`persona`?(b(!0),Zi().then(n=>{t===D.current&&(u(n.filter(t=>t.handle.startsWith(e)||t.id.startsWith(e)).slice(0,8).map(e=>({path:`/${e.handle}`,name:e.name,role:e.role}))),g(0))}).catch(e=>t===D.current&&c(`The personas did not load: ${e.message}`)).finally(()=>t===D.current&&b(!1))):Qt.files(e,A.current).then(e=>{t===D.current&&(u(e.files),g(0))}).catch(e=>t===D.current&&c(e.message))};(0,G.useEffect)(()=>{if(p===null)return;let e=setTimeout(()=>N(p),80);return()=>clearTimeout(e)},[p,j,_]),(0,G.useEffect)(()=>{d&&document.getElementById(`${n}-file-${h}`)?.scrollIntoView({block:`nearest`})},[d,h,n]);let P=()=>{++D.current,f(!1),m(null),u([]),T.current=null},te=e=>{let t=k.current;return e.path&&t.some(t=>t.path===e.path)?``:e.pending&&t.some(t=>t.kind===`upload`&&t.name===e.name)?`${e.name} is already attached.`:t.length>=Vi?`At most ${Vi} files go with one message.`:(M([...t,e]),``)},ne=e=>{e.kind===`upload`&&e.path&&Qt.dropFile(e.path,e.scope??A.current).catch(e=>c(e.message))},re=e=>{let n=k.current.find(t=>(t.id||t.path||t.name)===e);if(n){if(M(k.current.filter(e=>e!==n)),ne(n),n.kind===`project`){let e=Ni(O.current,n.name);e!==O.current&&t(e)}c(``)}},ie=e=>{requestAnimationFrame(()=>{let t=document.getElementById(n);t?.focus(),t?.setSelectionRange(e,e)})},ae=e=>{if(_===`persona`){let n=O.current.slice(E.current).replace(/^[a-z0-9-]*/i,``);P();let r=`${e.path} `;t(`${r}${n.replace(/^\s+/,``)}`),ie(r.length);return}let n=T.current,r=te({id:e.path,path:e.path,name:e.name,kind:`project`,image:ki(e.path)});if(c(r),P(),!n||r)return;let i=Li(O.current,n.start,E.current,e.name);t(i.text),ie(i.cursor)},F=(e,t)=>{E.current=t;let n=O.current;if(e!==n){let t=k.current.filter(t=>t.kind===`project`&&Pi(n,t.name)&&!Pi(e,t.name));t.length&&M(k.current.filter(e=>!t.includes(e)))}let r=Bi(e,t);if(r!==null){T.current=null,_!==`persona`&&(++D.current,u([])),d&&_===`persona`||b(!0),v(`persona`),m(r),f(!0);return}let i=Ii(e,t);i?(T.current=i,_!==`file`&&(++D.current,u([])),v(`file`),m(i.query),f(!0)):d&&P()},I=e=>d?e.key===`ArrowDown`?(e.preventDefault(),g(e=>Math.min(e+1,Math.max(l.length-1,0))),!0):e.key===`ArrowUp`?(e.preventDefault(),g(e=>Math.max(e-1,0)),!0):e.key===`Escape`?(e.preventDefault(),P(),!0):(e.key===`Enter`||e.key===`Tab`)&&!e.shiftKey&&l[h]?(e.preventDefault(),E.current=e.currentTarget.selectionStart??E.current,ae(l[h]),!0):!1:!1,oe=e=>{c(``);let t=[...e];(async()=>{let e=[];for(let n of t)if(!n.size)e.push(`${n.name||`The pasted file`} is empty.`);else if(mi(n)){if(n.size>Yi){e.push(`${n.name} is over ${Yi/1024/1024} MB: save a smaller copy and attach that.`);continue}try{let t=await Ei(n),r=te({id:`pending:${t.name}:${n.size}:${n.lastModified}`,path:``,name:t.name,kind:`upload`,image:!0,pending:{name:t.name,type:t.type,data:t.data}});if(r&&(e.push(r),k.current.length>=Vi))break}catch(t){e.push(`${n.name}: ${t.message}`)}}else if(!ji(n.name))e.push(`${n.name}: attach an image, a PDF, or a text or code file.`);else if(n.size>Ji)e.push(`${n.name} is too large to attach here (${Math.round(Ji/1024)} KB at most): put it in the agent's folder and @ its path instead.`);else try{let t=await Hi(n),r=te({id:`pending:${n.name}:${n.size}:${n.lastModified}`,path:``,name:n.name,kind:`upload`,image:ki(n.name),pending:{name:n.name,type:n.type||`application/octet-stream`,data:t}});if(r&&(e.push(r),k.current.length>=Vi))break}catch(t){e.push(t.message)}e.length&&c(e.join(` `))})()};return{files:a,error:s,setError:c,hasFiles:a.length>0,wrap:async e=>{let t=k.current,n=A.current,r=[];for(let e=0;e<t.length;e++){let i=t[e];try{if(i.kind===`project`){let e=await Qt.attachFile({path:i.path},n);if(r.push({...i,id:e.path,path:e.path,name:e.name}),pi(e.name)&&(!hi(e.name)||(e.size??0)>5242880)&&!t.some(t=>t.copyOf===e.path)&&!r.some(t=>t.copyOf===e.path)){let t=await qi(e.path,e.name,n);t&&r.push(t)}}else if(i.pending){let e=await Qt.attachFile(i.pending,n);r.push({id:e.path,path:e.path,name:e.name,kind:`upload`,image:ki(e.path),scope:n,...i.copyOf?{copyOf:i.copyOf}:{}})}else r.push(i);M([...r,...t.slice(e+1)])}catch(n){throw M([...r,...t.slice(e)]),Error(`${i.name}: ${n.message}`)}}return M(r),Ri(e,r)},reset:e=>{if(!e?.keep)for(let e of k.current)ne(e);M([]),c(``),P()},onEdit:F,onKeyDown:I,onFiles:oe,drop:{onDragEnter:e=>{e.preventDefault(),[...e.dataTransfer.types].includes(`Files`)&&S(!0)},onDragOver:e=>{e.preventDefault(),e.dataTransfer.dropEffect=`copy`},onDragLeave:e=>{e.currentTarget.contains(e.relatedTarget)||S(!1)},onDrop:e=>{e.preventDefault(),S(!1),e.dataTransfer.files.length&&oe(e.dataTransfer.files)}},dropping:x,paperclip:(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(R,{variant:`ghost`,className:`px-2.5 text-[15px]`,"aria-label":`Attach a file`,"data-tip":`Attach a file, or type @ to name one in the agent's folder`,onClick:()=>ee.current?.click(),children:(0,K.jsx)(ot,{"aria-hidden":`true`})}),(0,K.jsx)(`input`,{ref:ee,type:`file`,multiple:!0,className:`hidden`,onChange:e=>(e.target.files&&oe(e.target.files),e.target.value=``)})]}),chips:(0,K.jsxs)(K.Fragment,{children:[a.length>0&&(0,K.jsx)(`ul`,{"aria-label":`Attached files`,className:`m-0 mb-2 flex list-none flex-wrap gap-1.5 p-0`,children:a.map(e=>(0,K.jsx)(`li`,{children:(0,K.jsx)(Ki,{file:e,scope:r,onRemove:()=>re(e.id||e.path||e.name),onView:t=>w({src:t,name:e.name,pending:!!e.pending})})},e.id||e.path||e.name))}),(0,K.jsx)(cn,{wide:!0,open:!!C,onClose:()=>w(null),title:C?.name||``,description:C?.pending?`As it goes to the model when you send: at most 2048 pixels across, with no location or camera details.`:`From the agent's folder.`,footer:(0,K.jsxs)(R,{onClick:()=>w(null),children:[(0,K.jsx)(i,{"aria-hidden":`true`}),`Close`]}),children:C&&(0,K.jsx)(`img`,{src:C.src,alt:`${C.name}, attached`,className:`block h-auto max-w-full rounded-[10px] border border-line-soft`})})]}),combo:{expanded:d,listId:`${n}-files`,activeId:d&&l[h]?`${n}-file-${h}`:void 0},mentions:d&&(0,K.jsxs)(`div`,{className:`absolute bottom-full left-0 z-20 mb-2 w-[min(420px,calc(100vw-48px))] rounded-[12px] border border-line bg-bg py-1 shadow-menu`,children:[l.length===0&&(0,K.jsx)(`p`,{role:`status`,className:`m-0 px-3 py-2 text-sm text-muted`,children:_===`persona`?y?`Reading the personas…`:s.startsWith(`The personas did not load`)?`The personas did not load.`:`No persona has this command. Business personas are on the Persona agent's page.`:p?`No file or folder matches.`:`Type a name to find a file or folder.`}),(0,K.jsx)(`div`,{id:`${n}-files`,role:`listbox`,"aria-label":_===`persona`?`Business personas`:`Files in the agent's folder`,className:`max-h-64 overflow-y-auto`,children:l.map((e,t)=>{let r=_===`persona`?[e.path,e.role].filter(Boolean).join(` · `):Fi(e.path).dir;return(0,K.jsxs)(`button`,{id:`${n}-file-${t}`,type:`button`,tabIndex:-1,role:`option`,"aria-selected":t===h,className:L(`flex w-full min-w-0 cursor-pointer flex-col items-start gap-0.5 border-0 px-3 py-1.5 text-left`,t===h?`bg-accent-soft`:`bg-transparent hover:bg-surface-muted`),onMouseDown:e=>e.preventDefault(),onClick:()=>ae(e),children:[(0,K.jsx)(`span`,{className:`max-w-full truncate text-sm font-medium text-ink`,children:e.name}),r?(0,K.jsx)(`span`,{className:`max-w-full truncate text-[12px] text-muted`,children:r}):null]},e.path)})})]})}}function $i({id:t,value:n,onChange:r,onSend:i,onStop:a,busy:o,disabled:s,placeholder:c,label:l,left:u,right:d,top:f,rows:p=2,canSend:m,onEdit:h,onKey:g,onFiles:_,dropping:v,drop:y,mentions:b,combo:x}){let S=m??n.trim().length>0,C=(0,G.useRef)(null),w=ti()&&p===2?1:p;return(0,G.useLayoutEffect)(()=>{let e=C.current;e&&(e.style.height=`auto`,e.style.height=`${e.scrollHeight}px`)},[n,w]),(0,K.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),o?a?.():S&&!s&&i()},onDragEnter:y?.onDragEnter,onDragOver:y?.onDragOver,onDragLeave:y?.onDragLeave,onDrop:y?.onDrop,className:L(`relative box-border w-full rounded-[22px] border border-line bg-bg py-[18px] pr-3.5 pl-5 shadow-composer short:py-3 has-[textarea:focus-visible]:outline-2 has-[textarea:focus-visible]:outline-offset-2 has-[textarea:focus-visible]:outline-accent`,v&&`outline-2 outline-offset-2 outline-accent`),children:[v&&(0,K.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 z-10 flex items-center justify-center rounded-[22px] bg-accent-soft/80 text-sm font-medium text-accent-fg`,children:`Drop files here`}),b,(0,K.jsx)(`label`,{htmlFor:t,className:`sr-only`,children:l}),f,(0,K.jsx)(`textarea`,{ref:C,id:t,rows:w,value:n,disabled:s,onChange:e=>{r(e.target.value),h?.(e.target.value,e.target.selectionStart)},onSelect:e=>h?.(e.currentTarget.value,e.currentTarget.selectionStart),onPaste:e=>{let t=[...e.clipboardData.files];t.length&&_&&(e.preventDefault(),_(t))},...x?{role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":x.expanded,"aria-controls":x.listId,...x.expanded&&x.activeId?{"aria-activedescendant":x.activeId}:{}}:{},onKeyDown:e=>{g?.(e)||e.key===`Enter`&&!e.shiftKey&&!e.nativeEvent.isComposing&&(e.preventDefault(),!o&&S&&!s&&i())},placeholder:c,className:`box-border max-h-[50vh] w-full resize-none overflow-y-auto border-0 bg-transparent p-0 text-base leading-[1.55] text-ink outline-none placeholder:text-muted focus-visible:outline-none disabled:opacity-60`}),(0,K.jsxs)(`div`,{className:`mt-2.5 -ml-2.5 flex items-center gap-1 short:mt-1.5`,children:[u,(0,K.jsx)(`div`,{className:`flex-auto`}),d,o?(0,K.jsx)(`button`,{type:`submit`,"aria-label":`Stop`,className:`ml-1.5 inline-flex size-11 flex-none cursor-pointer items-center justify-center rounded-full border-0 bg-ink text-bg hover:bg-ink-2`,children:(0,K.jsx)(e,{size:14,fill:`currentColor`,"aria-hidden":`true`})}):(0,K.jsx)(`button`,{type:`submit`,"aria-label":`Send`,disabled:s,className:L(`ml-1.5 inline-flex size-11 flex-none cursor-pointer items-center justify-center rounded-full border-0 transition-colors disabled:cursor-not-allowed`,S&&!s?`bg-accent text-accent-ink hover:bg-accent-hover`:`bg-line text-muted`),children:(0,K.jsx)($e,{size:20,strokeWidth:2.2,"aria-hidden":`true`})})]})]})}function ea(e,t){let[n,r]=(0,G.useState)(null),i=(0,G.useRef)(null),a=(0,G.useRef)(t);a.current=t;let o=()=>{i.current&&clearInterval(i.current),i.current=null};return(0,G.useEffect)(()=>o,[]),{state:n,start:(0,G.useCallback)(async t=>{if(t.trim()){o(),r({original:t,job:null,error:``});try{let n=await vt.start(t,e);r({original:t,job:n,error:``}),i.current=setInterval(async()=>{try{let t=await vt.job();if(!t||t.target!==e||t.startedAt!==n.startedAt)return;if(t.running)return r(e=>e&&{...e,job:t});o();let i=t.exitCode===0?t.result:void 0;i?.refined&&a.current(i.refined),r(e=>e&&{...e,job:t,result:i})}catch(e){o(),r(t=>t&&{...t,error:e.message})}},700)}catch(e){r({original:t,job:null,error:e.message})}}},[e]),stop:(0,G.useCallback)(async()=>{o(),await vt.stop().catch(()=>{}),r(null)},[]),close:(0,G.useCallback)(()=>{o(),r(null)},[]),undo:(0,G.useCallback)(()=>{r(e=>(e&&a.current(e.original),null))},[]),running:!!n&&!n.error&&(!n.job||n.job.running)}}function ta({onClick:e,running:t,disabled:n}){return(0,K.jsxs)(R,{variant:`ghost`,className:`flex-none px-2 text-[15px] sm:px-2.5`,"aria-label":`Refine`,disabled:n||t,onClick:e,"data-tip":`Make the request precise before sending it: nothing runs`,children:[t?(0,K.jsx)(Kt,{state:`thinking`,px:18}):(0,K.jsx)(st,{"aria-hidden":`true`}),(0,K.jsx)(`span`,{className:`hidden sm:inline`,children:`Refine`})]})}function na({state:t,onStop:n,onUndo:r,onClose:a}){let[o,s]=(0,G.useState)(!1),c=t.job,l=t.result,u=!t.error&&(!c||c.running),d=t.error||c?.lines.filter(e=>!/^→ |^args /.test(e)).slice(-3).join(` `)||`Refine gave no result.`;return(0,K.jsxs)(`div`,{"aria-live":`polite`,className:`-mt-1 mb-3 flex flex-col gap-2 border-b border-line-soft pb-3 text-[13px]`,children:[(0,K.jsxs)(`div`,{className:`flex min-h-7 flex-wrap items-center gap-x-2 gap-y-1`,children:[u?(0,K.jsx)(Kt,{state:`thinking`,px:18,label:`Refining`}):l?(0,K.jsx)(Vt,{icon:ge,size:16}):(0,K.jsx)(Vt,{icon:Oe,size:16,className:`text-fail`}),(0,K.jsx)(`span`,{className:L(`font-medium`,u&&`shimmer`),children:(0,K.jsx)(`span`,{children:u?`Refining your request…`:l?`Refined: your request below, made precise`:`Refine did not finish`})}),u&&(0,K.jsx)(`span`,{className:`text-muted`,children:`Checking it against the capabilities, the systems and the project. Nothing runs.`}),l&&(0,K.jsxs)(`span`,{className:`text-muted`,children:[l.grounded.filter(e=>e.checked).length,` of `,l.grounded.length,` facts checked`]}),(0,K.jsx)(`span`,{className:`flex-auto`}),u?(0,K.jsxs)(R,{size:`sm`,variant:`ghost`,onClick:n,children:[(0,K.jsx)(e,{"aria-hidden":`true`}),`Stop`]}):(0,K.jsxs)(K.Fragment,{children:[l&&(l.assumed.length>0||typeof l.ste==`number`)&&(0,K.jsxs)(`button`,{type:`button`,"aria-expanded":o,onClick:()=>s(!o),className:`inline-flex min-h-7 cursor-pointer items-center gap-1 rounded-[8px] border-0 bg-transparent px-2 font-medium text-muted hover:bg-surface-strong hover:text-ink`,children:[`Details`,(0,K.jsx)(F,{size:14,"aria-hidden":`true`,className:L(`transition-transform`,o&&`rotate-180`)})]}),l&&(0,K.jsxs)(`button`,{type:`button`,onClick:r,"data-tip":`Put your own words back`,className:`inline-flex min-h-7 cursor-pointer items-center gap-1 rounded-[8px] border-0 bg-transparent px-2 font-medium text-muted hover:bg-surface-strong hover:text-ink`,children:[(0,K.jsx)(be,{size:14,"aria-hidden":`true`}),`Undo`]}),(0,K.jsx)(`button`,{type:`button`,"aria-label":`Close the note`,"data-tip":`Close the note`,onClick:a,className:`inline-flex size-7 flex-none cursor-pointer items-center justify-center rounded-[7px] border-0 bg-transparent text-muted hover:bg-surface-strong hover:text-ink`,children:(0,K.jsx)(i,{size:14,"aria-hidden":`true`})})]})]}),!u&&!l&&(0,K.jsx)(`p`,{className:`m-0 rounded-[10px] bg-fail-soft px-3 py-1.5 text-fail [overflow-wrap:anywhere]`,children:d}),l&&l.missing.length>0&&(0,K.jsxs)(`div`,{className:`flex flex-col gap-0.5 rounded-[10px] bg-warn-soft px-3 py-1.5`,children:[(0,K.jsxs)(`span`,{className:`flex items-center gap-1.5 font-medium text-warn`,children:[(0,K.jsx)(Vt,{icon:Oe,size:14}),`Still missing: add it before you send`]}),(0,K.jsx)(`ul`,{className:`m-0 list-disc pl-5 text-ink-2`,children:l.missing.map(e=>(0,K.jsx)(`li`,{children:e},e))})]}),l&&(0,K.jsx)($n,{open:o,children:(0,K.jsxs)(`div`,{className:`flex flex-col gap-1 text-muted [overflow-wrap:anywhere]`,children:[l.assumed.length>0&&(0,K.jsxs)(`p`,{className:`m-0`,children:[`Assumed: `,l.assumed.join(`; `)]}),typeof l.ste==`number`&&(0,K.jsxs)(`p`,{className:`m-0`,children:[Math.round(l.ste*100),`% of its sentences in plain technical English`]})]})})]})}function ra(e){requestAnimationFrame(()=>{let t=document.getElementById(e);t&&(t.focus(),t.setSelectionRange(0,0),t.scrollTop=0)})}function ia({open:e,onClose:t,children:n,className:r,label:i,role:a=`menu`,side:o=`up`}){let s=(0,G.useRef)(null),[c,l]=(0,G.useState)({});return(0,G.useLayoutEffect)(()=>{if(!e||o!==`auto`||!s.current?.parentElement)return;let t=s.current.parentElement.getBoundingClientRect(),n=window.innerHeight-t.bottom-16,r=t.top-16;l(n>=s.current.scrollHeight||n>=r?{top:t.height+8,bottom:`auto`,maxHeight:n}:{bottom:t.height+8,top:`auto`,maxHeight:r})},[e,o]),(0,G.useEffect)(()=>{if(!e)return;let n=e=>{s.current&&!s.current.parentElement?.contains(e.target)&&t()},r=e=>{e.key===`Escape`&&t()};return document.addEventListener(`mousedown`,n),document.addEventListener(`keydown`,r),()=>{document.removeEventListener(`mousedown`,n),document.removeEventListener(`keydown`,r)}},[e,t]),pn(e,150)?(0,K.jsx)(`div`,{ref:s,role:a,"aria-label":i,inert:!e||void 0,style:c,className:L(e?`fade-in`:`menu-out`,`absolute bottom-[52px] z-10 min-w-[260px] overflow-y-auto rounded-[14px] border border-line bg-bg p-1.5 shadow-menu`,r),children:n}):null}function aa({checked:e,onSelect:t,role:n,children:r}){return(0,K.jsxs)(`button`,{type:`button`,role:n,"aria-checked":e,onClick:t,className:`flex min-h-11 w-full cursor-pointer items-center gap-2.5 rounded-[10px] border-0 bg-transparent px-3 text-left text-sm text-ink hover:bg-surface-strong`,children:[r,(0,K.jsx)(`span`,{"aria-hidden":`true`,className:`w-[18px] text-accent-fg`,children:e?`✓`:``})]})}function oa({onClick:e,children:t}){return(0,K.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:e,className:`flex min-h-9 w-full cursor-pointer items-center rounded-[8px] border-0 bg-transparent px-3 text-left text-[13px] text-ink hover:bg-surface-strong`,children:t})}var sa=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 150`,width:`2.06em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{fill:`#34a853`,d:`M255.285 143.47c-.084-.524-.164-1.042-.251-1.56a128.1 128.1 0 0 0-12.794-38.288a128.8 128.8 0 0 0-23.45-31.86a129.2 129.2 0 0 0-22.713-18.005c.049-.08.09-.168.14-.25c2.582-4.461 5.172-8.917 7.755-13.38l7.576-13.068c1.818-3.126 3.632-6.26 5.438-9.386q.643-1.115 1.023-2.297a11.78 11.78 0 0 0-.36-8.188q-.32-.76-.743-1.472a11.7 11.7 0 0 0-4.08-4.064a11.85 11.85 0 0 0-5.005-1.61a12 12 0 0 0-2.218.02q-.912.094-1.814.33a11.74 11.74 0 0 0-7.154 5.467c-1.814 3.127-3.628 6.26-5.438 9.386l-7.576 13.069c-2.583 4.462-5.173 8.918-7.755 13.38c-.282.487-.567.973-.848 1.467q-.586-.237-1.172-.462c-14.24-5.43-29.688-8.4-45.836-8.4c-.442 0-.879 0-1.324.006c-14.357.143-28.152 2.64-41.022 7.12a119 119 0 0 0-4.42 1.642c-.262-.455-.532-.911-.79-1.367c-2.583-4.462-5.173-8.918-7.755-13.38l-7.576-13.07a3915 3915 0 0 1-5.439-9.386A11.74 11.74 0 0 0 48.5.048a11.7 11.7 0 0 0-5.01 1.612a11.7 11.7 0 0 0-4.077 4.063c-.281.474-.532.967-.742 1.473a11.8 11.8 0 0 0-.365 8.188c.259.786.594 1.554 1.023 2.296a3973 3973 0 0 1 5.439 9.386q3.793 6.535 7.58 13.069c2.582 4.462 5.168 8.918 7.75 13.38c.02.038.046.075.065.112A129 129 0 0 0 45.32 64.38a129.7 129.7 0 0 0-22.2 24.015a128 128 0 0 0-9.34 15.24a128.2 128.2 0 0 0-10.843 28.764a131 131 0 0 0-1.951 9.524c-.087.518-.167 1.042-.247 1.56A125 125 0 0 0 0 149.118h256q-.307-2.837-.734-5.636z`}),(0,K.jsx)(`path`,{fill:`#202124`,d:`M194.59 113.712c5.122-3.41 5.867-11.3 1.661-17.62c-4.203-6.323-11.763-8.682-16.883-5.273c-5.122 3.41-5.868 11.3-1.662 17.621c4.203 6.322 11.764 8.682 16.883 5.272m-116.071-5.25c4.206-6.321 3.46-14.21-1.662-17.62c-5.123-3.41-12.68-1.05-16.886 5.27c-4.203 6.323-3.458 14.212 1.662 17.622c5.122 3.41 12.683 1.05 16.886-5.272`})]})),ca=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 315`,width:`0.99em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{d:`M213.803 167.03c.442 47.58 41.74 63.413 42.197 63.615c-.35 1.116-6.599 22.563-21.757 44.716c-13.104 19.153-26.705 38.235-48.13 38.63c-21.05.388-27.82-12.483-51.888-12.483c-24.061 0-31.582 12.088-51.51 12.871c-20.68.783-36.428-20.71-49.64-39.793c-27-39.033-47.633-110.3-19.928-158.406c13.763-23.89 38.36-39.017 65.056-39.405c20.307-.387 39.475 13.662 51.889 13.662c12.406 0 35.699-16.895 60.186-14.414c10.25.427 39.026 4.14 57.503 31.186c-1.49.923-34.335 20.044-33.978 59.822M174.24 50.199c10.98-13.29 18.369-31.79 16.353-50.199c-15.826.636-34.962 10.546-46.314 23.828c-10.173 11.763-19.082 30.589-16.678 48.633c17.64 1.365 35.66-8.964 46.64-22.262`})]})),la=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 242`,width:`1.28em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsxs)(`defs`,{children:[(0,K.jsxs)(`linearGradient`,{id:`SVG4V795Kgq`,x1:`58.972%`,x2:`37.191%`,y1:`7.411%`,y2:`103.762%`,children:[(0,K.jsx)(`stop`,{offset:`0%`,stopColor:`#114a8b`}),(0,K.jsx)(`stop`,{offset:`100%`,stopColor:`#0669bc`})]}),(0,K.jsxs)(`linearGradient`,{id:`SVGzpurqcJr`,x1:`59.719%`,x2:`52.691%`,y1:`52.313%`,y2:`54.864%`,children:[(0,K.jsx)(`stop`,{offset:`0%`,stopOpacity:.3}),(0,K.jsx)(`stop`,{offset:`7.1%`,stopOpacity:.2}),(0,K.jsx)(`stop`,{offset:`32.1%`,stopOpacity:.1}),(0,K.jsx)(`stop`,{offset:`62.3%`,stopOpacity:.05}),(0,K.jsx)(`stop`,{offset:`100%`,stopOpacity:0})]}),(0,K.jsxs)(`linearGradient`,{id:`SVGZ5kCkZNr`,x1:`37.279%`,x2:`62.473%`,y1:`4.6%`,y2:`99.979%`,children:[(0,K.jsx)(`stop`,{offset:`0%`,stopColor:`#3ccbf4`}),(0,K.jsx)(`stop`,{offset:`100%`,stopColor:`#2892df`})]})]}),(0,K.jsx)(`path`,{fill:`url(#SVG4V795Kgq)`,d:`M85.343.003h75.753L82.457 233a12.08 12.08 0 0 1-11.442 8.216H12.06A12.06 12.06 0 0 1 .633 225.303L73.898 8.219A12.08 12.08 0 0 1 85.343 0z`}),(0,K.jsx)(`path`,{fill:`#0078d4`,d:`M195.423 156.282H75.297a5.56 5.56 0 0 0-3.796 9.627l77.19 72.047a12.14 12.14 0 0 0 8.28 3.26h68.02z`}),(0,K.jsx)(`path`,{fill:`url(#SVGzpurqcJr)`,d:`M85.343.003a11.98 11.98 0 0 0-11.471 8.376L.723 225.105a12.045 12.045 0 0 0 11.37 16.112h60.475a12.93 12.93 0 0 0 9.921-8.437l14.588-42.991l52.105 48.6a12.33 12.33 0 0 0 7.757 2.828h67.766l-29.721-84.935l-86.643.02L161.37.003z`}),(0,K.jsx)(`path`,{fill:`url(#SVGZ5kCkZNr)`,d:`M182.098 8.207A12.06 12.06 0 0 0 170.67.003H86.245c5.175 0 9.773 3.301 11.428 8.204L170.94 225.3a12.062 12.062 0 0 1-11.428 15.92h84.429a12.062 12.062 0 0 0 11.425-15.92z`})]})),ua=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`defs`,{children:(0,K.jsxs)(`radialGradient`,{id:`SVGwZwAicDR`,cx:`50.141%`,cy:`50.003%`,r:`50.119%`,fx:`50.141%`,fy:`50.003%`,children:[(0,K.jsx)(`stop`,{offset:`0%`,stopColor:`#797979`}),(0,K.jsx)(`stop`,{offset:`100%`,stopColor:`#4c4c4c`})]})}),(0,K.jsx)(`circle`,{cx:127.949,cy:128.603,r:127.397,fill:`#f5bb60`}),(0,K.jsx)(`circle`,{cx:114.961,cy:115.615,r:114.685,fill:`#e86f32`}),(0,K.jsx)(`circle`,{cx:130.16,cy:100.416,r:99.485,fill:`#e53d42`}),(0,K.jsx)(`circle`,{cx:138.174,cy:108.43,r:91.471,fill:`#bfd141`}),(0,K.jsx)(`circle`,{cx:131.542,cy:115.062,r:84.839,fill:`#6db64c`}),(0,K.jsx)(`circle`,{cx:118.001,cy:101.798,r:71.298,fill:`#afdbe7`}),(0,K.jsx)(`circle`,{cx:129.607,cy:89.915,r:59.691,fill:`#57badf`}),(0,K.jsx)(`circle`,{cx:137.069,cy:97.376,r:52.506,fill:`#02b2d6`}),(0,K.jsx)(`circle`,{cx:129.331,cy:104.837,r:44.768,fill:`url(#SVGwZwAicDR)`}),(0,K.jsx)(`circle`,{cx:129.331,cy:104.837,r:44.768,fill:`#231f20`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`M141.088 98.971c4.439 1.992 10.56-2.016 13.672-8.951s2.036-14.173-2.402-16.164c-4.44-1.992-10.56 2.016-13.672 8.951s-2.037 14.173 2.402 16.164`})]})),da=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 246`,width:`1.26em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsxs)(`defs`,{children:[(0,K.jsxs)(`linearGradient`,{id:`SVGvnhR7dox`,x1:`99.14%`,x2:`33.859%`,y1:`112.708%`,y2:`37.755%`,children:[(0,K.jsx)(`stop`,{offset:`18%`,stopColor:`#0052cc`}),(0,K.jsx)(`stop`,{offset:`100%`,stopColor:`#2684ff`})]}),(0,K.jsxs)(`linearGradient`,{id:`SVGgker3cTp`,x1:`.926%`,x2:`66.18%`,y1:`-12.582%`,y2:`62.306%`,children:[(0,K.jsx)(`stop`,{offset:`18%`,stopColor:`#0052cc`}),(0,K.jsx)(`stop`,{offset:`100%`,stopColor:`#2684ff`})]})]}),(0,K.jsx)(`path`,{fill:`url(#SVGvnhR7dox)`,d:`M9.26 187.33c-2.64 4.307-5.607 9.305-8.126 13.287a8.127 8.127 0 0 0 2.722 11.052l52.823 32.507a8.127 8.127 0 0 0 11.256-2.763c2.113-3.536 4.835-8.127 7.801-13.044c20.926-34.538 41.974-30.312 79.925-12.19l52.376 24.908a8.127 8.127 0 0 0 10.93-4.063l25.152-56.886a8.127 8.127 0 0 0-4.063-10.646c-11.052-5.201-33.034-15.562-52.823-25.111c-71.189-34.579-131.691-32.344-177.972 42.949`}),(0,K.jsx)(`path`,{fill:`url(#SVGgker3cTp)`,d:`M246.115 58.232c2.641-4.307 5.607-9.305 8.127-13.287a8.127 8.127 0 0 0-2.723-11.052L198.696 1.386a8.127 8.127 0 0 0-11.58 2.682c-2.113 3.535-4.835 8.127-7.802 13.043c-20.926 34.538-41.974 30.313-79.925 12.19L47.176 4.515a8.127 8.127 0 0 0-10.93 4.063L11.093 65.465a8.127 8.127 0 0 0 4.063 10.645c11.052 5.202 33.035 15.563 52.823 25.112c71.351 34.538 131.854 32.222 178.135-42.99`})]})),fa=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 208`,width:`1.49em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{d:`M205.28 31.36c14.096 14.88 20.016 35.2 22.512 63.68c6.626 0 12.805 1.47 16.976 7.152l7.792 10.56A17.55 17.55 0 0 1 256 123.2v28.688c-.008 3.704-1.843 7.315-4.832 9.504C215.885 187.222 172.35 208 128 208c-49.066 0-98.19-28.273-123.168-46.608c-2.989-2.189-4.825-5.8-4.832-9.504V123.2c0-3.776 1.2-7.424 3.424-10.464l7.792-10.544c4.173-5.657 10.38-7.152 16.992-7.152c2.496-28.48 8.4-48.8 22.512-63.68C77.331 3.165 112.567.06 127.552 0H128c14.72 0 50.4 2.88 77.28 31.36m-77.264 47.376c-3.04 0-6.544.176-10.272.544c-1.312 4.896-3.248 9.312-6.08 12.128c-11.2 11.2-24.704 12.928-31.936 12.928c-6.802 0-13.927-1.42-19.744-5.088c-5.502 1.808-10.786 4.415-11.136 10.912c-.586 12.28-.637 24.55-.688 36.824c-.026 6.16-.05 12.322-.144 18.488c.024 3.579 2.182 6.903 5.44 8.384C79.936 185.92 104.976 192 128.016 192c23.008 0 48.048-6.08 74.512-18.144c3.258-1.48 5.415-4.805 5.44-8.384c.317-18.418.062-36.912-.816-55.312h.016c-.342-6.534-5.648-9.098-11.168-10.912c-5.82 3.652-12.927 5.088-19.728 5.088c-7.232 0-20.72-1.728-31.936-12.928c-2.832-2.816-4.768-7.232-6.08-12.128a106 106 0 0 0-10.24-.544m-26.941 43.93c5.748 0 10.408 4.66 10.408 10.409v19.183c0 5.749-4.66 10.409-10.408 10.409s-10.408-4.66-10.408-10.409v-19.183c0-5.748 4.66-10.408 10.408-10.408m53.333 0c5.749 0 10.409 4.66 10.409 10.409v19.183c0 5.749-4.66 10.409-10.409 10.409c-5.748 0-10.408-4.66-10.408-10.409v-19.183c0-5.748 4.66-10.408 10.408-10.408M81.44 28.32c-11.2 1.12-20.64 4.8-25.44 9.92c-10.4 11.36-8.16 40.16-2.24 46.24c4.32 4.32 12.48 7.2 21.28 7.2c6.72 0 19.52-1.44 30.08-12.16c4.64-4.48 7.52-15.68 7.2-27.04c-.32-9.12-2.88-16.64-6.72-19.84c-4.16-3.68-13.6-5.28-24.16-4.32m68.96 4.32c-3.84 3.2-6.4 10.72-6.72 19.84c-.32 11.36 2.56 22.56 7.2 27.04c10.56 10.72 23.36 12.16 30.08 12.16c8.8 0 16.96-2.88 21.28-7.2c5.92-6.08 8.16-34.88-2.24-46.24c-4.8-5.12-14.24-8.8-25.44-9.92c-10.56-.96-20 .64-24.16 4.32M128 56c-2.56 0-5.6.16-8.96.48c.32 1.76.48 3.68.64 5.76c0 1.44 0 2.88-.16 4.48c3.2-.32 5.92-.32 8.48-.32s5.28 0 8.48.32c-.16-1.6-.16-3.04-.16-4.48c.16-2.08.32-4 .64-5.76c-3.36-.32-6.4-.48-8.96-.48`})]})),pa=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 250`,width:`1.24em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{fill:`#161614`,d:`M128.001 0C57.317 0 0 57.307 0 128.001c0 56.554 36.676 104.535 87.535 121.46c6.397 1.185 8.746-2.777 8.746-6.158c0-3.052-.12-13.135-.174-23.83c-35.61 7.742-43.124-15.103-43.124-15.103c-5.823-14.795-14.213-18.73-14.213-18.73c-11.613-7.944.876-7.78.876-7.78c12.853.902 19.621 13.19 19.621 13.19c11.417 19.568 29.945 13.911 37.249 10.64c1.149-8.272 4.466-13.92 8.127-17.116c-28.431-3.236-58.318-14.212-58.318-63.258c0-13.975 5-25.394 13.188-34.358c-1.329-3.224-5.71-16.242 1.24-33.874c0 0 10.749-3.44 35.21 13.121c10.21-2.836 21.16-4.258 32.038-4.307c10.878.049 21.837 1.47 32.066 4.307c24.431-16.56 35.165-13.12 35.165-13.12c6.967 17.63 2.584 30.65 1.255 33.873c8.207 8.964 13.173 20.383 13.173 34.358c0 49.163-29.944 59.988-58.447 63.157c4.591 3.972 8.682 11.762 8.682 23.704c0 17.126-.148 30.91-.148 35.126c0 3.407 2.304 7.398 8.792 6.14C219.37 232.5 256 184.537 256 128.002C256 57.307 198.691 0 128.001 0m-80.06 182.34c-.282.636-1.283.827-2.194.39c-.929-.417-1.45-1.284-1.15-1.922c.276-.655 1.279-.838 2.205-.399c.93.418 1.46 1.293 1.139 1.931m6.296 5.618c-.61.566-1.804.303-2.614-.591c-.837-.892-.994-2.086-.375-2.66c.63-.566 1.787-.301 2.626.591c.838.903 1 2.088.363 2.66m4.32 7.188c-.785.545-2.067.034-2.86-1.104c-.784-1.138-.784-2.503.017-3.05c.795-.547 2.058-.055 2.861 1.075c.782 1.157.782 2.522-.019 3.08m7.304 8.325c-.701.774-2.196.566-3.29-.49c-1.119-1.032-1.43-2.496-.726-3.27c.71-.776 2.213-.558 3.315.49c1.11 1.03 1.45 2.505.701 3.27m9.442 2.81c-.31 1.003-1.75 1.459-3.199 1.033c-1.448-.439-2.395-1.613-2.103-2.626c.301-1.01 1.747-1.484 3.207-1.028c1.446.436 2.396 1.602 2.095 2.622m10.744 1.193c.036 1.055-1.193 1.93-2.715 1.95c-1.53.034-2.769-.82-2.786-1.86c0-1.065 1.202-1.932 2.733-1.958c1.522-.03 2.768.818 2.768 1.868m10.555-.405c.182 1.03-.875 2.088-2.387 2.37c-1.485.271-2.861-.365-3.05-1.386c-.184-1.056.893-2.114 2.376-2.387c1.514-.263 2.868.356 3.061 1.403`})]})),ma=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 247`,width:`1.25em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{fill:`#e24329`,d:`m251.845 97.642l-.328-.986l-34.85-90.903c-.657-1.808-1.972-3.287-3.616-4.274Q210.586 0 207.627 0c-1.973 0-3.78.822-5.26 1.973a8.73 8.73 0 0 0-3.124 4.767l-23.506 71.999H80.56l-23.506-72c-.493-1.808-1.644-3.451-3.123-4.766C52.45.822 50.643 0 48.67 0s-3.781.329-5.425 1.48c-1.644.986-2.96 2.465-3.617 4.273L4.781 96.656l-.33.986c-10.355 26.959-1.479 57.37 21.535 74.794h.328c0 .164 53.096 39.944 53.096 39.944l26.3 19.89l15.946 12c3.78 2.96 9.205 2.96 12.986 0l15.945-12l26.3-19.89l53.424-39.944c23.014-17.425 31.726-47.835 21.37-74.794z`}),(0,K.jsx)(`path`,{fill:`#fc6d26`,d:`m251.845 97.642l-.328-.986c-17.26 3.616-33.205 10.85-46.849 21.04c-.164 0-41.424 31.398-76.602 57.863a18377 18377 0 0 0 48.657 36.821l53.424-39.944c23.013-17.425 31.726-47.835 21.37-74.794z`}),(0,K.jsx)(`path`,{fill:`#fca326`,d:`m79.245 212.38l26.301 19.89l15.945 12c3.78 2.96 9.206 2.96 12.986 0l15.945-12l26.301-19.89s-22.684-17.095-48.657-36.82c-26.136 19.725-48.82 36.82-48.82 36.82`}),(0,K.jsx)(`path`,{fill:`#fc6d26`,d:`M51.465 117.697c-13.644-10.192-29.589-17.589-46.849-21.04l-.329.985c-10.356 26.959-1.479 57.37 21.534 74.794h.33c0 .164 53.094 39.944 53.094 39.944s22.685-17.095 48.821-36.82c-35.013-26.466-76.272-57.699-76.601-57.863`})]})),ha=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 206`,width:`1.5em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{fill:`#ea4335`,d:`m170.252 56.819l22.253-22.253l1.483-9.37C153.437-11.677 88.976-7.496 52.42 33.92C42.267 45.423 34.734 59.764 30.717 74.573l7.97-1.123l44.505-7.34l3.436-3.513c19.797-21.742 53.27-24.667 76.128-6.168z`}),(0,K.jsx)(`path`,{fill:`#4285f4`,d:`M224.205 73.918a100.25 100.25 0 0 0-30.217-48.722l-31.232 31.232a55.52 55.52 0 0 1 20.379 44.037v5.544c15.35 0 27.797 12.445 27.797 27.796c0 15.352-12.446 27.485-27.797 27.485h-55.671l-5.466 5.934v33.34l5.466 5.231h55.67c39.93.311 72.553-31.494 72.864-71.424a72.3 72.3 0 0 0-31.793-60.453`}),(0,K.jsx)(`path`,{fill:`#34a853`,d:`M71.87 205.796h55.593V161.29H71.87a27.3 27.3 0 0 1-11.399-2.498l-7.887 2.42l-22.409 22.253l-1.952 7.574c12.567 9.489 27.9 14.825 43.647 14.757`}),(0,K.jsx)(`path`,{fill:`#fbbc05`,d:`M71.87 61.426C31.94 61.663-.237 94.227.001 134.158a72.3 72.3 0 0 0 28.222 56.88l32.248-32.246c-13.99-6.322-20.208-22.786-13.887-36.776s22.786-20.208 36.775-13.888a27.8 27.8 0 0 1 13.887 13.888l32.248-32.248A72.22 72.22 0 0 0 71.87 61.427`})]})),ga=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 231`,width:`1.34em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`defs`,{children:(0,K.jsxs)(`linearGradient`,{id:`SVGR9diIphF`,x1:`108.633%`,x2:`46.927%`,y1:`13.818%`,y2:`78.776%`,children:[(0,K.jsx)(`stop`,{offset:`18%`,stopColor:`#0052cc`}),(0,K.jsx)(`stop`,{offset:`100%`,stopColor:`#2684ff`})]})}),(0,K.jsxs)(`g`,{fill:`none`,children:[(0,K.jsx)(`path`,{d:`M101.272 152.561h53.449l12.901-75.319H87.06z`}),(0,K.jsx)(`path`,{fill:`#2684ff`,d:`M8.308 0A8.202 8.202 0 0 0 .106 9.516l34.819 211.373a11.155 11.155 0 0 0 10.909 9.31h167.04a8.2 8.2 0 0 0 8.201-6.89l34.82-213.752a8.202 8.202 0 0 0-8.203-9.514zm146.616 152.768h-53.315l-14.436-75.42h80.67z`}),(0,K.jsx)(`path`,{fill:`url(#SVGR9diIphF)`,d:`M244.61 77.242h-76.916l-12.909 75.36h-53.272l-62.902 74.663a11.1 11.1 0 0 0 7.171 2.704H212.73a8.196 8.196 0 0 0 8.196-6.884z`})]})]})),_a=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsxs)(`defs`,{children:[(0,K.jsxs)(`linearGradient`,{id:`SVGSBI7obaC`,x1:`98.031%`,x2:`58.888%`,y1:`.161%`,y2:`40.766%`,children:[(0,K.jsx)(`stop`,{offset:`18%`,stopColor:`#0052cc`}),(0,K.jsx)(`stop`,{offset:`100%`,stopColor:`#2684ff`})]}),(0,K.jsxs)(`linearGradient`,{id:`SVGHifZlbzE`,x1:`100.665%`,x2:`55.402%`,y1:`.455%`,y2:`44.727%`,children:[(0,K.jsx)(`stop`,{offset:`18%`,stopColor:`#0052cc`}),(0,K.jsx)(`stop`,{offset:`100%`,stopColor:`#2684ff`})]})]}),(0,K.jsx)(`path`,{fill:`#2684ff`,d:`M244.658 0H121.707a55.5 55.5 0 0 0 55.502 55.502h22.649V77.37c.02 30.625 24.841 55.447 55.466 55.467V10.666C255.324 4.777 250.55 0 244.658 0`}),(0,K.jsx)(`path`,{fill:`url(#SVGSBI7obaC)`,d:`M183.822 61.262H60.872c.019 30.625 24.84 55.447 55.466 55.467h22.649v21.938c.039 30.625 24.877 55.43 55.502 55.43V71.93c0-5.891-4.776-10.667-10.667-10.667`}),(0,K.jsx)(`path`,{fill:`url(#SVGHifZlbzE)`,d:`M122.951 122.489H0c0 30.653 24.85 55.502 55.502 55.502h22.72v21.867c.02 30.597 24.798 55.408 55.396 55.466V133.156c0-5.891-4.776-10.667-10.667-10.667`})]})),va=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 339`,width:`0.92em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{d:`M189.485 144.651c-3.445.99-6.306 3.4-7.867 6.626l-1.015 2.087l.014 2.918c0 2.721.057 3.06.832 4.977c1.072 2.72 2.143 4.399 4.103 6.316c3.383 3.355 7.19 4.23 12.294 2.89a12.13 12.13 0 0 0 7.288-6.147a10.6 10.6 0 0 0 1.128-7.02c-.902-6.387-4.652-11.026-10.207-12.647a14.94 14.94 0 0 0-6.57 0m-129.746.07c-4.3 1.354-7.515 4.512-9.164 9.01a16.7 16.7 0 0 0-.846 7.33c.803 4.357 4.37 8.319 8.43 9.404c5.104 1.34 8.91.465 12.294-2.89c1.974-1.917 3.031-3.595 4.103-6.316c.775-1.917.832-2.256.832-4.977l.014-2.918l-1.015-2.087a12.6 12.6 0 0 0-7.966-6.654a14.4 14.4 0 0 0-6.682.099m58.987 28.197c-1.847 1.001-3.144 3.525-2.75 5.4c.438 2.016 2.214 4.06 4.977 5.738c1.48.888 1.58 1.015 1.65 1.917c.056.536-.141 2.059-.409 3.426c-.282 1.325-.507 2.735-.507 3.13c.028 1.043.986 2.75 2.016 3.567c.902.733 1.071.761 3.595.832c2.312.07 2.791.014 3.722-.423c2.382-1.156 2.988-3.3 2.114-7.402c-.733-3.426-.592-3.947 1.227-5.005c1.931-1.128 3.962-3.087 4.568-4.427a5.146 5.146 0 0 0-2.467-6.767a5.56 5.56 0 0 0-2.552-.465c-1.777 0-2.919.423-5.005 1.748l-1.198.747l-.748-.45c-3.087-1.834-3.651-2.045-5.512-2.017a5.6 5.6 0 0 0-2.721.451m5.498-30.946c-5.258.508-6.696.705-9.22 1.213c-4.103.846-9.587 2.75-13.408 4.624c-13.252 6.485-22.402 17.285-25.193 29.804c-.564 2.481-.635 3.299-.635 7.472c0 4.145.07 5.033.607 7.388c3.722 16.354 18.779 28.436 38.262 30.635c4.23.465 22.501.465 26.73 0c15.65-1.762 29.1-10.25 35.148-22.148c1.607-3.186 2.382-5.245 3.101-8.487c.55-2.355.62-3.243.62-7.374c0-4.187-.07-5.005-.634-7.486c-4.06-18.187-21.697-32.482-43.31-35.203a97 97 0 0 0-12.054-.438zm9.094 13.21a46.3 46.3 0 0 1 20.301 7.247c3.144 2.087 7.571 6.457 9.46 9.333c2.34 3.539 3.666 7.162 4.272 11.56c.282 2.017.14 3.54-.606 6.796c-1.128 4.864-4.68 9.94-9.474 13.492a44 44 0 0 1-9.714 4.906c-5.386 1.72-8.91 2.03-21.5 1.946c-8.205-.085-9.671-.141-12.026-.592c-8.036-1.509-14.408-4.709-19.033-9.587c-3.721-3.947-5.427-7.543-6.344-13.337c-.423-2.707.353-7.176 1.932-10.94c1.917-4.596 6.88-10.292 11.786-13.577c5.681-3.792 13.168-6.485 20.048-7.218c2.636-.282 8.261-.282 10.898-.028M55.735.103a23.3 23.3 0 0 0-9.63 4.2c-8.092 6.133-14.352 19.188-17.002 35.444c-.987 6.147-1.678 14.662-1.678 21.19c0 7.669.903 17.481 2.186 24.263c.282 1.508.437 2.847.324 2.932q-1.302 1.091-2.637 2.143a75 75 0 0 0-13.379 14.38A77.4 77.4 0 0 0 .667 137.63a93.4 93.4 0 0 0-.325 19.132c1.283 10.996 4.582 20.273 10.25 28.76l1.833 2.75l-.522.902c-3.792 6.372-7.02 15.578-8.53 24.418c-1.184 6.993-1.339 8.868-1.339 18.243c0 9.446.127 11.321 1.24 17.848c1.34 7.825 4.061 16.115 7.092 21.627c1.001 1.805 3.426 5.54 3.722 5.738c.099.043-.197.945-.648 1.988a104.4 104.4 0 0 0-7.726 26.406c-.874 5.88-1.001 7.783-1.001 13.972c0 7.895.437 11.73 2.087 18.031l.24.917h20.836l-.704-1.283c-4.188-7.782-4.582-22.205-.96-36.613c1.65-6.655 3.525-11.547 7.022-18.272l2.086-4.088v-2.496c0-2.326-.042-2.594-.803-4.13a12.9 12.9 0 0 0-2.735-3.525a24.5 24.5 0 0 1-5.428-7.655c-5.978-12.97-7.134-32.23-2.933-48.654c1.749-6.851 4.639-12.942 7.67-16.27a11.1 11.1 0 0 0 3.144-7.485c0-2.75-.987-5.005-3.158-7.36a44.2 44.2 0 0 1-11.519-24.376c-1.973-13.534 1.608-28.267 9.728-39.954c7.938-11.476 19.075-18.836 31.538-20.795c2.806-.465 8.036-.395 10.94.14c3.187.565 5.175.396 7.219-.577c2.523-1.199 3.778-2.679 5.273-6.077c1.31-3.03 2.326-4.694 5.075-8.12c3.299-4.089 6.485-6.894 11.589-10.278c5.822-3.806 12.463-6.584 19.06-7.909c2.397-.493 3.525-.564 8.023-.564s5.61.07 8.022.564a57.4 57.4 0 0 1 26.984 14.056c1.65 1.537 5.61 6.443 6.88 8.487c.479.804 1.339 2.496 1.86 3.764c1.48 3.398 2.75 4.878 5.273 6.063c1.974.958 4.032 1.156 7.092.634c4.836-.818 8.557-.747 13.294.226c16.129 3.242 30.17 16.537 36.388 34.357c5.428 15.621 3.891 31.961-4.173 44.452c-1.367 2.115-2.72 3.807-4.695 5.907c-4.243 4.54-4.243 10.18-.014 14.846c6.95 7.599 11.293 26.307 9.982 42.802c-.874 10.884-3.666 20.626-7.515 26.139a29.6 29.6 0 0 1-3.158 3.637a12.9 12.9 0 0 0-2.735 3.524c-.76 1.537-.803 1.805-.803 4.131v2.51l2.086 4.088c3.497 6.711 5.358 11.603 7.021 18.258c3.567 14.21 3.257 28.337-.832 36.387q-.353.671-.62 1.382c0 .084 4.639.127 10.32.127h10.292l.282-1.043l.507-1.89c.268-1.071.804-4.23 1.241-7.274c.409-3.06.409-14.324 0-17.736c-1.55-12.336-4.159-22.134-8.417-31.383c-.45-1.043-.747-1.945-.648-1.988c.113-.07.803-1.043 1.522-2.143c5.301-8.022 8.558-18.102 10.208-31.41c.437-3.666.437-19.428 0-22.953c-1.17-9.093-2.566-15.254-4.907-21.5a86 86 0 0 0-4.638-9.868l-.536-.903l1.847-2.735c5.668-8.515 8.967-17.792 10.25-28.76a93.4 93.4 0 0 0-.339-19.146a77.7 77.7 0 0 0-13.238-32.976a75 75 0 0 0-13.393-14.38a114 114 0 0 1-2.623-2.143a9.8 9.8 0 0 1 .325-2.932c2.932-15.325 2.833-34.443-.24-49.387c-2.679-13.027-7.543-23.375-13.816-29.352c-4.991-4.766-10.095-6.796-16.213-6.415c-14.042.832-25.377 16.988-29.832 42.436a96 96 0 0 0-1.368 10.235c0 .508-.099.93-.211.93a13.5 13.5 0 0 1-2.101-1.099a68.5 68.5 0 0 0-34.611-9.827c-11.73 0-23.784 3.426-34.626 9.841c-.662.427-1.36.795-2.086 1.1c-.113 0-.212-.423-.212-.93a95 95 0 0 0-1.367-10.222C85.665 19.627 76.36 4.5 63.996.679A29.6 29.6 0 0 0 55.75.101zm4.13 19.765c3.497 2.777 7.374 10.7 9.616 19.569c.422 1.593.845 3.44.972 4.116c.099.663.367 2.143.578 3.285c.945 5.146 1.382 10.715 1.438 17.482l.029 6.697l-1.692 2.467l-1.664 2.51h-3.92c-4.567 0-9.107.577-13.449 1.748l-3.355.846c-.466.098-.536-.043-.804-2.03a119 119 0 0 1 .226-32.751c1.748-11.11 5.822-21.162 9.812-24.122c.945-.705 1.114-.691 2.213.183m138.516-.17c2.397 1.777 5.047 6.486 7.021 12.52c3.948 12.04 5.076 28.592 2.99 44.34c-.269 1.973-.34 2.128-.805 2.03l-3.355-.846a52 52 0 0 0-13.45-1.749h-3.919l-1.678-2.509l-1.677-2.467l.028-6.683c.056-9.432.93-16.777 3.017-24.982c2.213-8.783 6.118-16.707 9.587-19.484c1.1-.874 1.268-.888 2.241-.17`})]})),ya=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 260`,width:`1.19em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{d:`M239.184 106.203a64.72 64.72 0 0 0-5.576-53.103C219.452 28.459 191 15.784 163.213 21.74A65.586 65.586 0 0 0 52.096 45.22a64.72 64.72 0 0 0-43.23 31.36c-14.31 24.602-11.061 55.634 8.033 76.74a64.67 64.67 0 0 0 5.525 53.102c14.174 24.65 42.644 37.324 70.446 31.36a64.72 64.72 0 0 0 48.754 21.744c28.481.025 53.714-18.361 62.414-45.481a64.77 64.77 0 0 0 43.229-31.36c14.137-24.558 10.875-55.423-8.083-76.483m-97.56 136.338a48.4 48.4 0 0 1-31.105-11.255l1.535-.87l51.67-29.825a8.6 8.6 0 0 0 4.247-7.367v-72.85l21.845 12.636c.218.111.37.32.409.563v60.367c-.056 26.818-21.783 48.545-48.601 48.601M37.158 197.93a48.35 48.35 0 0 1-5.781-32.589l1.534.921l51.722 29.826a8.34 8.34 0 0 0 8.441 0l63.181-36.425v25.221a.87.87 0 0 1-.358.665l-52.335 30.184c-23.257 13.398-52.97 5.431-66.404-17.803M23.549 85.38a48.5 48.5 0 0 1 25.58-21.333v61.39a8.29 8.29 0 0 0 4.195 7.316l62.874 36.272l-21.845 12.636a.82.82 0 0 1-.767 0L41.353 151.53c-23.211-13.454-31.171-43.144-17.804-66.405zm179.466 41.695l-63.08-36.63L161.73 77.86a.82.82 0 0 1 .768 0l52.233 30.184a48.6 48.6 0 0 1-7.316 87.635v-61.391a8.54 8.54 0 0 0-4.4-7.213m21.742-32.69l-1.535-.922l-51.619-30.081a8.39 8.39 0 0 0-8.492 0L99.98 99.808V74.587a.72.72 0 0 1 .307-.665l52.233-30.133a48.652 48.652 0 0 1 72.236 50.391zM88.061 139.097l-21.845-12.585a.87.87 0 0 1-.41-.614V65.685a48.652 48.652 0 0 1 79.757-37.346l-1.535.87l-51.67 29.825a8.6 8.6 0 0 0-4.246 7.367zm11.868-25.58L128.067 97.3l28.188 16.218v32.434l-28.086 16.218l-28.188-16.218z`})]})),ba=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{fill:`#ff6c37`,d:`M254.953 144.253c8.959-70.131-40.569-134.248-110.572-143.206C74.378-7.912 10.005 41.616 1.047 111.619c-8.959 70.003 40.569 134.248 110.572 143.334c70.131 8.959 134.248-40.569 143.334-110.7`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`m174.2 82.184l-54.007 54.007l-15.23-15.23c53.111-53.11 58.358-48.503 69.236-38.777`}),(0,K.jsx)(`path`,{fill:`#ff6c37`,d:`M120.193 137.47c-.384 0-.64-.128-.896-.384l-15.357-15.229a1.237 1.237 0 0 1 0-1.791c54.006-54.007 59.637-48.888 71.027-38.65c.256.256.384.512.384.896s-.128.64-.384.896l-54.006 53.878c-.128.256-.512.384-.768.384m-13.437-16.509l13.437 13.438l52.087-52.087c-9.47-8.446-15.87-11.006-65.524 38.65`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`m135.678 151.676l-14.717-14.718l54.006-54.006c14.462 14.59-7.166 38.265-39.289 68.724`}),(0,K.jsx)(`path`,{fill:`#ff6c37`,d:`M135.678 152.956c-.384 0-.64-.128-.895-.384l-14.718-14.718c-.256-.256-.256-.512-.256-.896c0-.383.128-.64.384-.895L174.2 82.056a1.237 1.237 0 0 1 1.792 0a15.58 15.58 0 0 1 4.991 11.902c-.256 14.206-16.38 32.25-44.28 58.614c-.384.256-.768.384-1.024.384m-12.925-15.998c8.19 8.319 11.646 11.646 12.925 12.926c21.5-20.476 42.36-41.464 42.489-55.926c.128-3.327-1.152-6.655-3.328-9.214z`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`m105.22 121.345l10.878 10.878q.384.384 0 .768c-.128.128-.128.128-.256.128l-22.524 4.863c-1.152.128-2.176-.64-2.432-1.791c-.128-.64.128-1.28.512-1.664l13.054-13.054c.256-.256.64-.384.768-.128`}),(0,K.jsx)(`path`,{fill:`#ff6c37`,d:`M92.934 139.262c-1.92 0-3.327-1.536-3.327-3.455c0-.896.384-1.792 1.024-2.432l13.053-13.054c.768-.64 1.792-.64 2.56 0l10.878 10.878c.768.64.768 1.792 0 2.56c-.256.256-.512.384-.896.512l-22.524 4.863c-.256 0-.512.128-.768.128m11.902-16.509l-12.542 12.542c-.256.256-.384.64-.128 1.024c.128.384.512.511.896.384l21.116-4.608z`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`M202.738 52.238c-8.19-7.935-21.372-7.679-29.306.64c-7.935 8.318-7.679 21.372.64 29.306A20.68 20.68 0 0 0 199.154 85l-14.59-14.59z`}),(0,K.jsx)(`path`,{fill:`#ff6c37`,d:`M188.405 89.223c-12.158 0-22.012-9.854-22.012-22.012s9.854-22.012 22.012-22.012c5.63 0 11.134 2.176 15.23 6.143c.255.256.383.512.383.896s-.128.64-.384.896L186.357 70.41l13.566 13.566c.512.512.512 1.28 0 1.792l-.256.256c-3.328 2.047-7.295 3.2-11.262 3.2m0-41.336c-10.75 0-19.453 8.702-19.325 19.452c0 10.75 8.703 19.453 19.453 19.325c2.943 0 5.887-.64 8.574-2.048l-13.437-13.31c-.256-.256-.384-.512-.384-.896c0-.383.128-.64.384-.895l17.149-17.15c-3.456-2.943-7.807-4.478-12.414-4.478`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`m203.122 52.622l-.256-.256l-18.3 18.044l14.461 14.462c1.408-.896 2.815-1.92 3.967-3.072a20.51 20.51 0 0 0 .128-29.178`}),(0,K.jsx)(`path`,{fill:`#ff6c37`,d:`M199.155 86.28c-.384 0-.64-.128-.896-.384l-14.59-14.59c-.255-.256-.383-.512-.383-.896c0-.383.128-.64.384-.895l18.172-18.173a1.237 1.237 0 0 1 1.792 0l.384.256c8.575 8.574 8.575 22.396.128 31.098c-1.28 1.28-2.687 2.432-4.223 3.328c-.384.128-.64.256-.768.256m-12.798-15.87l12.926 12.926c1.024-.64 2.048-1.536 2.815-2.303c7.295-7.295 7.679-19.197.64-26.876z`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`M176.375 84.488a7.88 7.88 0 0 0-11.134 0l-48.247 48.247l8.062 8.063l51.063-44.792c3.328-2.816 3.583-7.807.768-11.134c-.256-.128-.384-.256-.512-.384`}),(0,K.jsx)(`path`,{fill:`#ff6c37`,d:`M124.928 142.078c-.384 0-.64-.128-.896-.384l-8.062-8.063a1.237 1.237 0 0 1 0-1.792l48.247-48.247a9.115 9.115 0 0 1 12.926 0a9.115 9.115 0 0 1 0 12.926l-.384.384l-51.063 44.792q-.192.384-.768.384m-6.143-9.343l6.271 6.271l50.167-44.024c2.816-2.304 3.072-6.527.768-9.342c-2.303-2.816-6.527-3.072-9.342-.768c-.128.128-.256.256-.512.384z`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`M80.008 187.637c-.511.256-.767.768-.64 1.28l2.176 9.214c.512 1.28-.256 2.816-1.664 3.2c-1.023.384-2.175 0-2.815-.768l-14.078-13.95l45.944-45.943l15.87.256l10.75 10.75c-2.56 2.175-18.045 17.149-55.543 35.961`}),(0,K.jsx)(`path`,{fill:`#ff6c37`,d:`M78.985 202.61c-1.024 0-2.048-.383-2.688-1.151l-13.95-13.95c-.255-.256-.383-.512-.383-.895c0-.384.128-.64.384-.896l45.943-45.944c.256-.256.64-.384.896-.384l15.87.256c.383 0 .64.128.895.384l10.75 10.75c.256.256.384.64.384 1.024s-.128.64-.512.896l-.896.767c-13.565 11.902-31.994 23.804-54.902 35.194l2.176 9.087c.384 1.663-.384 3.455-1.92 4.35c-.768.385-1.408.513-2.047.513m-14.078-15.996l13.182 13.053c.384.64 1.152.896 1.791.512c.64-.384.896-1.152.512-1.792l-2.175-9.214c-.256-1.152.256-2.176 1.28-2.687c22.651-11.39 40.952-23.164 54.39-34.81l-9.47-9.47l-14.718-.256z`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`m52.11 197.62l11.005-11.006l16.382 16.38l-26.108-1.791c-1.152-.128-1.92-1.152-1.791-2.304c0-.512.128-1.024.511-1.28`}),(0,K.jsx)(`path`,{fill:`#ff6c37`,d:`m79.497 204.146l-26.236-1.791c-1.92-.128-3.2-1.792-3.071-3.712c.128-.768.384-1.535 1.024-2.047L62.22 185.59a1.237 1.237 0 0 1 1.791 0l16.381 16.38c.384.385.512.897.256 1.408q-.384.768-1.151.768m-16.382-15.74l-10.11 10.11c-.384.255-.384.895 0 1.151c.128.128.256.256.512.256l22.652 1.536zm41.337-41.849c-.768 0-1.28-.64-1.28-1.28c0-.384.128-.64.384-.896l12.414-12.414a1.237 1.237 0 0 1 1.792 0l8.062 8.063c.384.384.512.768.384 1.28c-.128.384-.512.768-1.024.896l-20.476 4.35zm12.414-11.902l-8.447 8.446l13.822-2.943z`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`m124.8 140.926l-14.077 3.071c-1.024.256-2.048-.384-2.304-1.408c-.128-.64 0-1.28.512-1.791l7.807-7.807z`}),(0,K.jsx)(`path`,{fill:`#ff6c37`,d:`M110.467 145.277a3.17 3.17 0 0 1-3.2-3.2c0-.895.384-1.663.896-2.303l7.807-7.807a1.237 1.237 0 0 1 1.792 0l8.062 8.063c.384.384.512.768.384 1.28c-.128.384-.512.768-1.024.896l-14.077 3.071zm6.399-10.622l-6.911 6.91c-.256.257-.256.513-.128.768q.192.384.768.384l11.774-2.56zm86.384-69.748c-.256-.767-1.152-1.151-1.92-.895c-.767.256-1.151 1.151-.895 1.92c0 .127.128.255.128.383c.768 1.536.512 3.456-.512 4.863c-.512.64-.384 1.536.128 2.048c.64.512 1.535.384 2.047-.256c1.92-2.432 2.304-5.503 1.024-8.063`})]})),xa=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 227`,width:`1.36em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{fill:`#362d59`,d:`M148.368 12.403a23.935 23.935 0 0 0-41.003 0L73.64 70.165c52.426 26.174 87.05 78.177 90.975 136.642h-23.679c-3.918-50.113-34.061-94.41-79.238-116.448l-31.213 53.97a81.6 81.6 0 0 1 47.307 62.375h-54.38a3.895 3.895 0 0 1-3.178-5.69l15.069-25.626a55 55 0 0 0-17.221-9.738L3.167 191.277a23.27 23.27 0 0 0 8.662 31.982a23.9 23.9 0 0 0 11.583 3.075h74.471a99.43 99.43 0 0 0-41.003-88.72l11.84-20.5c35.679 24.504 55.754 66.038 52.79 109.22h63.094c2.99-65.43-29.047-127.512-84.107-162.986l23.935-41.002a3.947 3.947 0 0 1 5.382-1.384c2.716 1.486 103.993 178.208 105.89 180.258a3.895 3.895 0 0 1-3.486 5.792h-24.396q.46 9.789 0 19.528h24.499A23.53 23.53 0 0 0 256 202.91a23 23 0 0 0-3.178-11.685z`})]})),Sa=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 239`,width:`1.3em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsxs)(`defs`,{children:[(0,K.jsxs)(`linearGradient`,{id:`SVGCo9xpmZW`,x1:`17.372%`,x2:`82.628%`,y1:`-6.51%`,y2:`106.51%`,children:[(0,K.jsx)(`stop`,{offset:`0%`,stopColor:`#5a62c3`}),(0,K.jsx)(`stop`,{offset:`50%`,stopColor:`#4d55bd`}),(0,K.jsx)(`stop`,{offset:`100%`,stopColor:`#3940ab`})]}),(0,K.jsx)(`path`,{id:`SVGhJCUgeMn`,d:`M136.93 64.476v12.8a32.7 32.7 0 0 1-5.953-.952a38.7 38.7 0 0 1-26.79-22.742h21.848c6.008.022 10.872 4.887 10.895 10.894`})]}),(0,K.jsx)(`path`,{fill:`#5059c9`,d:`M178.563 89.302h66.125c6.248 0 11.312 5.065 11.312 11.312v60.231c0 22.96-18.613 41.574-41.573 41.574h-.197c-22.96.003-41.576-18.607-41.579-41.568V95.215a5.91 5.91 0 0 1 5.912-5.913`}),(0,K.jsx)(`circle`,{cx:223.256,cy:50.605,r:26.791,fill:`#5059c9`}),(0,K.jsx)(`circle`,{cx:139.907,cy:38.698,r:38.698,fill:`#7b83eb`}),(0,K.jsx)(`path`,{fill:`#7b83eb`,d:`M191.506 89.302H82.355c-6.173.153-11.056 5.276-10.913 11.449v68.697c-.862 37.044 28.445 67.785 65.488 68.692c37.043-.907 66.35-31.648 65.489-68.692v-68.697c.143-6.173-4.74-11.296-10.913-11.449`}),(0,K.jsx)(`path`,{d:`M142.884 89.302v96.268a10.96 10.96 0 0 1-6.787 10.062c-1.3.55-2.697.833-4.108.833H76.68c-.774-1.965-1.488-3.93-2.084-5.953a72.5 72.5 0 0 1-3.155-21.076v-68.703c-.143-6.163 4.732-11.278 10.895-11.43z`,opacity:.1}),(0,K.jsx)(`path`,{d:`M136.93 89.302v102.222c0 1.411-.283 2.808-.833 4.108a10.96 10.96 0 0 1-10.062 6.787H79.48c-1.012-1.965-1.965-3.93-2.798-5.954a59 59 0 0 1-2.084-5.953a72.5 72.5 0 0 1-3.155-21.076v-68.703c-.143-6.163 4.732-11.278 10.895-11.43z`,opacity:.2}),(0,K.jsx)(`path`,{d:`M136.93 89.302v90.315c-.045 5.998-4.896 10.85-10.895 10.895H74.597a72.5 72.5 0 0 1-3.155-21.076v-68.703c-.143-6.163 4.732-11.278 10.895-11.43z`,opacity:.2}),(0,K.jsx)(`path`,{d:`M130.977 89.302v90.315c-.046 5.998-4.897 10.85-10.895 10.895H74.597a72.5 72.5 0 0 1-3.155-21.076v-68.703c-.143-6.163 4.732-11.278 10.895-11.43z`,opacity:.2}),(0,K.jsx)(`path`,{d:`M142.884 58.523v18.753c-1.012.06-1.965.12-2.977.12s-1.965-.06-2.977-.12a32.7 32.7 0 0 1-5.953-.952a38.7 38.7 0 0 1-26.791-22.742a33 33 0 0 1-1.905-5.954h29.708c6.007.023 10.872 4.887 10.895 10.895`,opacity:.1}),(0,K.jsx)(`use`,{href:`#SVGhJCUgeMn`,opacity:.2}),(0,K.jsx)(`use`,{href:`#SVGhJCUgeMn`,opacity:.2}),(0,K.jsx)(`path`,{d:`M130.977 64.476v11.848a38.7 38.7 0 0 1-26.791-22.743h15.896c6.008.023 10.872 4.888 10.895 10.895`,opacity:.2}),(0,K.jsx)(`path`,{fill:`url(#SVGCo9xpmZW)`,d:`M10.913 53.581h109.15c6.028 0 10.914 4.886 10.914 10.913v109.151c0 6.027-4.886 10.913-10.913 10.913H10.913C4.886 184.558 0 179.672 0 173.645V64.495C0 58.466 4.886 53.58 10.913 53.58`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`M94.208 95.125h-21.82v59.416H58.487V95.125H36.769V83.599h57.439z`})]})),Ca=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{fill:`#0078d4`,d:`M0 0h121.329v121.329H0zm134.671 0H256v121.329H134.671zM0 134.671h121.329V256H0zm134.671 0H256V256H134.671z`})]})),wa=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 128 128`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`defs`,{children:(0,K.jsxs)(`linearGradient`,{id:`SVG6uMEBcPj`,x1:9,x2:9,y1:16.97,y2:1.03,gradientTransform:`scale(7.11111)`,gradientUnits:`userSpaceOnUse`,children:[(0,K.jsx)(`stop`,{offset:0,stopColor:`#0078d4`}),(0,K.jsx)(`stop`,{offset:.16,stopColor:`#1380da`}),(0,K.jsx)(`stop`,{offset:.53,stopColor:`#3c91e5`}),(0,K.jsx)(`stop`,{offset:.82,stopColor:`#559cec`}),(0,K.jsx)(`stop`,{offset:1,stopColor:`#5ea0ef`})]})}),(0,K.jsx)(`path`,{fill:`url(#SVG6uMEBcPj)`,d:`M120.89 28.445v69.262l-28.445 23.324l-44.09-16.07v15.93L23.395 88.25l72.746 5.688V31.574ZM96.64 31.93L55.82 7.11v16.285L18.348 34.418L7.109 48.852v32.785l16.075 7.11V46.718Zm0 0`})]})),Ta=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 128 128`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{fill:`#1a62b3`,d:`M50.782 42.96h26.436a7.536 7.536 0 0 1 7.553 7.552v26.976a7.536 7.536 0 0 1-7.553 7.552H50.782a7.536 7.536 0 0 1-7.553-7.552V50.512a7.536 7.536 0 0 1 7.553-7.553zm55.803 41.611V34.477A13.566 13.566 0 0 0 92.99 20.88H35.01a13.566 13.566 0 0 0-13.595 13.596v59.046a13.566 13.566 0 0 0 13.595 13.595l92.171.002c-.935 11.716-10.67 20.88-22.623 20.88H23.442A22.61 22.61 0 0 1 .783 105.341V22.66A22.61 22.61 0 0 1 23.443 0h81.115a22.61 22.61 0 0 1 22.659 22.66v61.91z`})]})),Ea=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 128 128`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{fill:`#50d18d`,d:`m37.701 127.439l-15.398-14.782a1.813 1.813 0 0 1 0-2.666l15.41-14.773a2.005 2.005 0 0 1 2.78 0l15.412 14.783c.778.73.778 1.936 0 2.666L40.494 127.44a2.003 2.003 0 0 1-2.78 0zm24.907-23.89l-15.41-14.783a1.813 1.813 0 0 1 0-2.656l15.41-14.782a2.005 2.005 0 0 1 2.78 0L80.79 86.11c.778.73.778 1.936 0 2.666l-15.4 14.773a2.01 2.01 0 0 1-2.774 0zm24.908-23.892l-15.4-14.783a1.81 1.81 0 0 1 0-2.656L87.52 47.437a2.005 2.005 0 0 1 2.78 0l15.402 14.781a1.81 1.81 0 0 1 0 2.656L90.29 79.657a2.006 2.006 0 0 1-2.779 0h.01zm-49.346.447L22.758 65.333a1.817 1.817 0 0 1 0-2.66l15.412-14.79a2.004 2.004 0 0 1 2.779 0l15.41 14.784a1.81 1.81 0 0 1 0 2.656L40.95 80.116a2.007 2.007 0 0 1-2.78 0zm24.906-23.89L47.664 41.441a1.817 1.817 0 0 1 0-2.668l15.412-14.781a2.004 2.004 0 0 1 2.78 0l15.4 14.781a1.81 1.81 0 0 1 0 2.658l-15.4 14.781a2.006 2.006 0 0 1-2.774 0v-.01v.005zm-24.43-23.41l-15.42-14.828a1.814 1.814 0 0 1 0-2.667L38.647.56a2.004 2.004 0 0 1 2.78 0l15.41 14.782c.78.731.78 1.937 0 2.667l-15.42 14.75a2.004 2.004 0 0 1-2.78 0l.01.032z`})]})),Da=`/assets/dataverse-CH0w-aF1.png`,Oa=`/assets/zephyr-BNWDPG5u.png`,ka=(e,t,n)=>r=>(0,K.jsx)(`svg`,{viewBox:`0 0 ${t} ${n}`,...r,children:(0,K.jsx)(`image`,{href:e,width:t,height:n})}),Aa=e=>(0,K.jsxs)(`svg`,{viewBox:`-55 0 209 209`,...e,children:[(0,K.jsx)(`path`,{fill:`#31b34b`,d:`m98.092 104.307l-49.011 12.252l-24.54 91.807z`,opacity:`.5`}),(0,K.jsx)(`path`,{fill:`#31b34b`,d:`M98.092 104.307L0 129.024V67.443h73.551l24.718 36.828z`,opacity:`.8`}),(0,K.jsx)(`path`,{fill:`#31b34b`,d:`M0 67.443v61.44L73.551 0z`})]}),ja=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 153`,...e,children:[(0,K.jsx)(`path`,{className:`logo-ink`,fill:`#252f3e`,d:`M72.392 55.438c0 3.137.34 5.68.933 7.545a45.4 45.4 0 0 0 2.712 6.103c.424.678.593 1.356.593 1.95c0 .847-.508 1.695-1.61 2.543l-5.34 3.56c-.763.509-1.526.763-2.205.763c-.847 0-1.695-.424-2.543-1.187a26 26 0 0 1-3.051-3.984c-.848-1.44-1.696-3.052-2.628-5.001q-9.919 11.697-24.922 11.698c-7.12 0-12.8-2.035-16.954-6.103c-4.153-4.07-6.272-9.495-6.272-16.276c0-7.205 2.543-13.054 7.714-17.462c5.17-4.408 12.037-6.612 20.768-6.612c2.882 0 5.849.254 8.985.678c3.137.424 6.358 1.102 9.749 1.865V29.33c0-6.443-1.357-10.935-3.985-13.563c-2.712-2.628-7.29-3.9-13.817-3.9c-2.967 0-6.018.34-9.155 1.103s-6.188 1.695-9.155 2.882c-1.356.593-2.373.932-2.967 1.102s-1.017.254-1.356.254c-1.187 0-1.78-.848-1.78-2.628v-4.154c0-1.356.17-2.373.593-2.966c.424-.594 1.187-1.187 2.374-1.78q4.45-2.29 10.68-3.815C33.908.763 38.316.255 42.978.255c10.088 0 17.463 2.288 22.21 6.866c4.662 4.577 7.036 11.528 7.036 20.853v27.464zM37.976 68.323c2.798 0 5.68-.508 8.731-1.526c3.052-1.017 5.765-2.882 8.053-5.425c1.357-1.61 2.374-3.39 2.882-5.425c.509-2.034.848-4.493.848-7.375v-3.56a71 71 0 0 0-7.799-1.441a64 64 0 0 0-7.968-.509c-5.68 0-9.833 1.102-12.63 3.391s-4.154 5.51-4.154 9.748c0 3.984 1.017 6.951 3.136 8.986c2.035 2.119 5.002 3.136 8.901 3.136m68.069 9.155c-1.526 0-2.543-.254-3.221-.848c-.678-.508-1.272-1.695-1.78-3.305L81.124 7.799c-.51-1.696-.764-2.798-.764-3.391c0-1.356.678-2.12 2.035-2.12h8.307c1.61 0 2.713.255 3.306.848c.678.509 1.187 1.696 1.695 3.306l14.241 56.117l13.224-56.117c.424-1.695.933-2.797 1.61-3.306c.679-.508 1.866-.847 3.392-.847h6.781c1.61 0 2.713.254 3.39.847c.679.509 1.272 1.696 1.611 3.306l13.394 56.795L168.01 6.442c.508-1.695 1.102-2.797 1.695-3.306c.678-.508 1.78-.847 3.306-.847h7.883c1.357 0 2.12.678 2.12 2.119c0 .424-.085.848-.17 1.356s-.254 1.187-.593 2.12l-20.43 65.525q-.762 2.544-1.78 3.306c-.678.509-1.78.848-3.22.848h-7.29c-1.611 0-2.713-.254-3.392-.848c-.678-.593-1.271-1.695-1.61-3.39l-13.14-54.676l-13.054 54.59c-.423 1.696-.932 2.798-1.61 3.391c-.678.594-1.865.848-3.39.848zm108.927 2.289c-4.408 0-8.816-.509-13.054-1.526c-4.239-1.017-7.544-2.12-9.748-3.39c-1.357-.764-2.29-1.611-2.628-2.374a6 6 0 0 1-.509-2.374V65.78c0-1.78.678-2.628 1.95-2.628a4.8 4.8 0 0 1 1.526.255c.508.17 1.271.508 2.119.847a46 46 0 0 0 9.324 2.967a51 51 0 0 0 10.088 1.017c5.34 0 9.494-.932 12.376-2.797s4.408-4.577 4.408-8.053c0-2.373-.763-4.323-2.289-5.934s-4.408-3.051-8.561-4.408l-12.292-3.814c-6.188-1.95-10.765-4.832-13.563-8.647c-2.797-3.73-4.238-7.883-4.238-12.291q0-5.34 2.289-9.41c1.525-2.712 3.56-5.085 6.103-6.95c2.543-1.95 5.425-3.391 8.816-4.408c3.39-1.017 6.95-1.441 10.68-1.441c1.865 0 3.815.085 5.68.339c1.95.254 3.73.593 5.51.932c1.695.424 3.306.848 4.832 1.357q2.288.762 3.56 1.525c1.187.679 2.034 1.357 2.543 2.12q.763 1.017.763 2.797v3.984c0 1.78-.678 2.713-1.95 2.713c-.678 0-1.78-.34-3.22-1.018q-7.25-3.306-16.276-3.306c-4.832 0-8.647.763-11.275 2.374c-2.627 1.61-3.984 4.069-3.984 7.544c0 2.374.848 4.408 2.543 6.019s4.832 3.221 9.325 4.662l12.037 3.815c6.103 1.95 10.511 4.662 13.139 8.137s3.9 7.46 3.9 11.868c0 3.645-.764 6.951-2.205 9.833c-1.525 2.882-3.56 5.425-6.188 7.46c-2.628 2.119-5.764 3.645-9.409 4.747c-3.815 1.187-7.799 1.78-12.122 1.78`}),(0,K.jsx)(`path`,{fill:`#f90`,d:`M230.993 120.964c-27.888 20.599-68.408 31.534-103.247 31.534c-48.827 0-92.821-18.056-126.05-48.064c-2.628-2.373-.255-5.594 2.881-3.73c35.942 20.854 80.276 33.484 126.136 33.484c30.94 0 64.932-6.442 96.212-19.666c4.662-2.12 8.646 3.052 4.068 6.442m11.614-13.224c-3.56-4.577-23.566-2.204-32.636-1.102c-2.713.34-3.137-2.034-.678-3.814c15.936-11.19 42.13-7.968 45.181-4.239c3.052 3.815-.848 30.008-15.767 42.554c-2.288 1.95-4.492.933-3.475-1.61c3.39-8.393 10.935-27.296 7.375-31.789`})]}),Ma=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 18.02 20.27`,fill:`#000`,...e,children:[(0,K.jsx)(`path`,{d:`M18.0137 0H12.6097V13.0595H18.0137V0Z`}),(0,K.jsx)(`path`,{d:`M5.4043 0H0V7.43041L5.4043 13.0595V0Z`}),(0,K.jsx)(`path`,{d:`M5.4043 13.0595H0V20.2648H5.4043V13.0595Z`}),(0,K.jsx)(`path`,{d:`M12.6104 13.0595H5.4051L9.68322 18.4634H12.6104V13.0595Z`})]}),Na=e=>t=>(0,K.jsx)(e,{...t,className:L(t.className,`logo-mono`)}),Pa={jira:_a,azure_devops:wa,confluence:da,testrail:Ea,qtest:Ta,github:Na(pa),browserstack:ua,xray:Aa,gitlab:ma,bitbucket:ga,postman:ba,sentry:Na(xa),testmu:Na(Ma),zephyr:ka(Oa,128,128),dataverse:ka(Da,128,98),aws:ja,gcp:ha},Fa={openai:Na(ya),azure:la,github_copilot:Na(fa),ollama:Na(va)},Ia={android:sa,ios:Na(ca),windows:Ca};function La(e,t){if(!e)return[];let n=[],r=[!e.engine&&`the browser engine`,!e.runtime&&`the agent runtime`].filter(e=>!!e);r.length&&n.push({title:`Install ${r.join(` and `)}`,detail:`The agents run tests with them. Installing needs no admin rights and takes a few minutes.`,fix:`Install what's missing`,to:zt(`settings`,`setup`)});let i=e.model.usable??[],a=t??e.model.active;return e.model.ready?a&&!i.includes(a)&&n.push({title:`${a} has no key or sign-in yet`,detail:`Add its key, or pick a model that is ready in the box below: ${i.join(`, `)}.`,fix:`Add its key`,to:zt(`settings`,`models`)}):n.push({title:`No model is ready`,detail:e.model.detail,fix:`Add a model key`,to:zt(`settings`,`models`)}),n}function Ra(e){let t=H(e?.environments),n=Object.entries(H(t.environments)).map(([e,t])=>({name:e,env:H(t)}));return{envs:n,fallback:[H(e?.config.environments).default,t.default].find(e=>typeof e==`string`&&n.some(t=>t.name===e))||(n.length===1?n[0].name:``)}}function za(e){let t=e?.config||{},n=H(t.browser),r=H(t.sources),i=[`jira`,`azure_devops`,`testrail`,`xray`,`zephyr`,`qtest`,`servicenow`,`github`].find(e=>r[e]),a={jira:`Jira`,azure_devops:`Azure DevOps`,testrail:`TestRail`,xray:`Xray`,zephyr:`Zephyr`,qtest:`qTest`,servicenow:`ServiceNow`,github:`GitHub`},o=String(n.provider||`local`);return{code:!0,headed:n.headless===!1,repo:H(t.code).repo?String(H(t.code).repo):`the project folder`,browser:o===`local`?`Chrome on this machine`:o===`testmu`?`TestMu AI`:o===`browserstack`?`BrowserStack`:o,cases:i?a[i]:`Files in the project`}}var Ba={azure:`Azure OpenAI`,openai:`OpenAI`,ollama:`Ollama`,openai_compatible:`OpenAI-compatible`,github_copilot:`GitHub Copilot`,github:`GitHub Models`,anthropic:`Anthropic`};function Va({children:e}){return(0,K.jsx)(`div`,{className:`px-3 pt-2 pb-1 text-[11.5px] font-semibold tracking-wide text-muted uppercase`,children:e})}function Ha({tools:e,onChange:n,chat:r}){let i=(t,r,i,a)=>(0,K.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-3 rounded-[10px] px-3 py-2.5 hover:bg-surface-muted`,children:[(0,K.jsx)(Tn,{icon:t}),(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,K.jsx)(`span`,{className:`text-sm font-medium text-ink`,children:i}),(0,K.jsx)(`span`,{className:`text-[12.5px] text-muted [overflow-wrap:anywhere]`,children:a})]}),(0,K.jsx)(Cr,{checked:e[r],label:i,onChange:t=>n({...e,[r]:t})})]}),a=(e,t,n)=>(0,K.jsxs)(`div`,{className:`flex items-center gap-3 px-3 py-2`,children:[(0,K.jsx)(Vt,{icon:e,size:16,className:`flex-none text-muted`}),(0,K.jsx)(`span`,{className:`flex-1 text-sm text-ink-2`,children:t}),(0,K.jsx)(`span`,{className:`truncate text-sm text-ink`,children:n})]});return(0,K.jsxs)(`div`,{className:`flex flex-col`,children:[(0,K.jsx)(Va,{children:r?`This chat, from your next message`:`This chat`}),i(v,`code`,`Write the test`,`Turn a passed run into a test in ${e.repo}`),i(Ze,`headed`,`Show the browser`,`Watch each run in a Chrome window`),(0,K.jsx)(`div`,{className:`mx-3 my-1.5 border-t border-line-soft`}),(0,K.jsx)(Va,{children:`From your settings`}),a(Pe,`Browsers run on`,e.browser),a(t,`Test cases from`,e.cases),r?.model&&(0,K.jsxs)(`div`,{className:`flex items-center gap-3 px-3 py-2`,children:[Fa[r.provider||``]?(()=>{let e=Fa[r.provider||``];return(0,K.jsx)(e,{"aria-hidden":`true`,className:`size-4 flex-none`})})():(0,K.jsx)(Vt,{icon:ge,size:16,className:`flex-none text-muted`}),(0,K.jsx)(`span`,{className:`flex-1 text-sm text-ink-2`,children:`Model`}),(0,K.jsx)(`span`,{className:`truncate text-sm text-ink`,children:r.model})]}),(0,K.jsx)(`div`,{className:`mx-1.5 mt-1 mb-1 flex flex-wrap gap-x-1`,children:(0,K.jsxs)(`a`,{href:zt(`settings`),className:`flex min-h-9 items-center gap-2 rounded-[10px] px-1.5 text-[13px] font-medium no-underline hover:bg-surface-muted`,children:[(0,K.jsx)(_,{size:14,"aria-hidden":`true`}),`Change them in Settings`]})})]})}function Ua({models:e,current:t,onPick:n,auto:r=!0}){let i=(e,r=!1)=>{let i=t===e.name;return(0,K.jsxs)(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":i,onClick:()=>n(e.name),className:L(`flex w-full cursor-pointer items-center gap-3 rounded-[10px] border-0 px-3 py-2 text-left hover:bg-surface-muted`,i?`bg-accent-soft hover:bg-accent-soft`:`bg-transparent`),children:[r?(0,K.jsx)(`span`,{className:`flex size-9 flex-none items-center justify-center rounded-[10px] bg-[linear-gradient(135deg,var(--color-accent),var(--color-accent-grad))] text-accent-ink`,children:(0,K.jsx)(Vt,{icon:ge,size:17})}):Fa[e.provider]?(0,K.jsx)(Tn,{logo:Fa[e.provider]}):(0,K.jsx)(Tn,{icon:j}),(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,K.jsxs)(`span`,{className:`flex items-baseline gap-2`,children:[(0,K.jsx)(`span`,{className:`truncate text-sm font-medium text-ink`,children:e.name}),!r&&Ba[e.provider]&&(0,K.jsx)(`span`,{className:`flex-none text-[11.5px] text-muted`,children:Ba[e.provider]})]}),e.note&&(0,K.jsx)(`span`,{className:`truncate text-[12.5px] text-muted`,children:e.note})]}),(0,K.jsx)(s,{size:16,"aria-hidden":`true`,className:L(`flex-none text-accent-fg`,!i&&`invisible`)})]},e.name)};return(0,K.jsxs)(`div`,{className:`flex flex-col`,children:[(0,K.jsx)(Va,{children:`Model for this chat`}),r&&i({name:`Auto routing`,provider:``,note:`The cheapest model good enough for each step`},!0),e.length>0&&(0,K.jsxs)(K.Fragment,{children:[r&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`div`,{className:`mx-3 my-1.5 border-t border-line-soft`}),(0,K.jsx)(Va,{children:`Your models`})]}),(0,K.jsx)(`div`,{className:`flex flex-col`,children:e.map(e=>i(e))})]}),(0,K.jsx)(`div`,{className:`mx-3 my-1.5 border-t border-line-soft`}),(0,K.jsxs)(`a`,{href:zt(`settings`,`models`),className:`mx-1.5 mb-1 flex min-h-9 items-center gap-2 rounded-[10px] px-1.5 text-[13px] font-medium no-underline hover:bg-surface-muted`,children:[(0,K.jsx)(_,{size:14,"aria-hidden":`true`}),`Manage models`]})]})}var Wa={web:Pe,api:pe,desktop:qe,mobile:he};function Ga({icon:e,label:t,value:n}){return(0,K.jsxs)(`li`,{className:`flex min-w-0 items-start gap-2 px-3 py-1 text-[12.5px]`,children:[(0,K.jsx)(Vt,{icon:e,size:14,className:`mt-0.5 flex-none text-muted`}),(0,K.jsxs)(`span`,{className:`min-w-0 [overflow-wrap:anywhere]`,children:[(0,K.jsx)(`span`,{className:`font-medium text-ink`,children:t}),n&&(0,K.jsxs)(`span`,{className:`text-muted`,children:[` `,n]})]})]})}function Ka({row:e}){let t=e.env,n=Object.entries(H(t.apps)).map(([e,t])=>({...H(t),name:e})),r=Object.entries(H(t.variables)),i=Object.entries(H(t.data)),a=Object.keys(H(t.databases)),o=Array.isArray(t.secrets)?t.secrets.filter(e=>typeof e==`string`):[],s=typeof t.file==`string`?t.file:``,c=!s&&!n.length&&!r.length&&!i.length&&!a.length&&!o.length;return(0,K.jsxs)(`div`,{className:`flex flex-col pb-1`,children:[(0,K.jsxs)(Va,{children:[`What the agent gets in `,e.name]}),(0,K.jsxs)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:[s&&(0,K.jsx)(Ga,{icon:Ae,label:`Read from`,value:s}),n.map(e=>(0,K.jsx)(Ga,{icon:Wa[String(e.kind||`web`)]||Pe,label:e.name,value:[String(e.url||e.path||e.app_id||``),e.login?`signs in as ${String(e.login)}`:``].filter(Boolean).join(` · `)},`app:${e.name}`)),r.length>0&&(0,K.jsx)(Ga,{icon:ie,label:`Values`,value:r.map(([e,t])=>`${e} = ${String(t??``)}`).join(`, `)}),i.length>0&&(0,K.jsx)(Ga,{icon:Ve,label:`Test data`,value:i.map(([e,t])=>`${e}: ${String(t)}`).join(`, `)}),a.length>0&&(0,K.jsx)(Ga,{icon:ne,label:`Databases`,value:a.join(`, `)}),o.length>0&&(0,K.jsx)(Ga,{icon:le,label:`Secrets, by name`,value:o.join(`, `)}),c&&(0,K.jsx)(`li`,{className:`px-3 py-1 text-[12.5px] text-muted`,children:`Nothing set yet. Add its apps and test data in Settings.`})]})]})}function qa({envs:e,current:t,onPick:n}){let r=e.find(e=>e.name===t);return(0,K.jsxs)(`div`,{className:`flex flex-col`,children:[(0,K.jsx)(Va,{children:`Environment for this chat`}),e.length?e.map(e=>{let r=e.name===t,i=typeof e.env.description==`string`?e.env.description:``;return(0,K.jsxs)(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":r,onClick:()=>n(e.name),className:L(`flex w-full cursor-pointer items-center gap-3 rounded-[10px] border-0 px-3 py-2 text-left hover:bg-surface-muted`,r?`bg-accent-soft hover:bg-accent-soft`:`bg-transparent`),children:[(0,K.jsx)(Tn,{icon:C}),(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,K.jsx)(`span`,{className:`truncate text-sm font-medium text-ink`,children:e.name}),i&&(0,K.jsx)(`span`,{className:`truncate text-[12.5px] text-muted`,children:i})]}),(0,K.jsx)(s,{size:16,"aria-hidden":`true`,className:L(`flex-none text-accent-fg`,!r&&`invisible`)})]},e.name)}):(0,K.jsx)(`p`,{className:`m-0 px-3 py-1 text-[12.5px] text-muted`,children:`No environments yet. Add one with its apps, test data and the names of its secrets.`}),r&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`div`,{className:`mx-3 my-1.5 border-t border-line-soft`}),(0,K.jsx)(Ka,{row:r})]}),(0,K.jsx)(`div`,{className:`mx-3 my-1.5 border-t border-line-soft`}),(0,K.jsxs)(`a`,{href:zt(`settings`,`environments`),className:`mx-1.5 mb-1 flex min-h-9 items-center gap-2 rounded-[10px] px-1.5 text-[13px] font-medium no-underline hover:bg-surface-muted`,children:[(0,K.jsx)(_,{size:14,"aria-hidden":`true`}),`Manage environments`]})]})}function Ja(){let[e,t]=(0,G.useState)(null),[n,r]=(0,G.useState)(null),[i,a]=(0,G.useState)(null),[o,s]=(0,G.useState)(``),[c,l]=(0,G.useState)(()=>za(null)),[u,d]=(0,G.useState)(``);(0,G.useEffect)(()=>{ht.state().then(e=>{r(e),e.ready&&ht.machine().then(a,()=>{}),e.ready&&Rt.settings().then(e=>{t(e),l(za(e))},()=>{})},()=>{})},[]);let f=Object.entries(H(e?.models.models)).map(([e,t])=>({name:e,provider:String(H(t).provider||``),note:String(H(t).description||``)})).filter(e=>e.provider!==`mock`&&e.name!==`mock`),p=String(H(e?.config.llm).routing||`off`)===`auto`,m=e=>typeof e==`string`&&f.some(t=>t.name===e)?e:``,h=m(e?.models.default)||f[0]?.name||``,g=u||(p?`Auto routing`:m(H(e?.config.llm).active)||h||`Auto routing`),{envs:_,fallback:v}=Ra(e),y=_.some(e=>e.name===o)?o:v,b={profile:f.some(e=>e.name===g)?g:void 0,headed:c.headed,code:c.code,env:y||void 0};return{snap:e,setup:n,machine:i,ready:!n||n.ready,tools:c,setTools:l,profiles:f,current:g,setModel:d,envs:_,environment:y,setEnvName:s,choice:b}}function Ya({c:e}){let[t,n]=(0,G.useState)(``);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`div`,{className:`relative`,children:[(0,K.jsxs)(R,{variant:`ghost`,className:`max-w-[40vw] px-2 text-[15px] sm:px-2.5`,"aria-expanded":t===`env`,"aria-haspopup":`menu`,"aria-label":`Environment: ${e.environment||`none`}`,onClick:()=>n(t===`env`?``:`env`),children:[(0,K.jsx)(pe,{"aria-hidden":`true`}),(0,K.jsx)(`span`,{className:`hidden truncate sm:inline`,children:e.environment||`Environment`}),(0,K.jsx)(F,{size:16,"aria-hidden":`true`,className:`hidden sm:block`})]}),(0,K.jsx)(ia,{open:t===`env`,onClose:()=>n(``),label:`Environment for this chat`,role:`dialog`,side:`auto`,className:`left-0 w-[min(400px,calc(100vw-48px))]`,children:(0,K.jsx)(qa,{envs:e.envs,current:e.environment,onPick:e.setEnvName})})]}),(0,K.jsxs)(`div`,{className:`relative`,children:[(0,K.jsxs)(R,{variant:`ghost`,className:`px-2 text-[15px] sm:px-2.5`,"aria-expanded":t===`tools`,"aria-haspopup":`menu`,"aria-label":`Tools`,onClick:()=>n(t===`tools`?``:`tools`),children:[(0,K.jsx)(Ie,{"aria-hidden":`true`}),(0,K.jsx)(`span`,{className:`hidden sm:inline`,children:`Tools`}),(e.tools.headed||!e.tools.code)&&(0,K.jsx)(`span`,{"aria-hidden":`true`,className:`size-1.5 rounded-full bg-accent`})]}),(0,K.jsx)(ia,{open:t===`tools`,onClose:()=>n(``),label:`Tools for this chat`,role:`dialog`,side:`auto`,className:`left-0 w-[min(380px,calc(100vw-48px))]`,children:(0,K.jsx)(Ha,{tools:e.tools,onChange:e.setTools})})]})]})}function Xa({c:e}){let[t,n]=(0,G.useState)(!1),r=e.profiles.find(t=>t.name===e.current)?.provider||``,i=e.current===`Auto routing`?void 0:Fa[r];return(0,K.jsxs)(`div`,{className:`relative min-w-0`,children:[(0,K.jsxs)(R,{variant:`ghost`,className:`max-w-[46vw] min-w-0 px-2 text-[15px] sm:px-2.5`,"aria-expanded":t,"aria-haspopup":`menu`,"aria-label":`Model: ${e.current}`,onClick:()=>n(!t),children:[i?(0,K.jsx)(i,{"aria-hidden":`true`,className:`size-4`}):(0,K.jsx)(me,{"aria-hidden":`true`}),(0,K.jsx)(`span`,{className:`hidden truncate sm:inline`,children:e.current}),(0,K.jsx)(F,{size:16,"aria-hidden":`true`,className:`hidden sm:block`})]}),(0,K.jsx)(ia,{open:t,onClose:()=>n(!1),label:`Model`,side:`auto`,className:`right-0 w-[min(400px,calc(100vw-48px))]`,children:(0,K.jsx)(Ua,{models:e.profiles,current:e.current,onPick:t=>{e.setModel(t),n(!1)}})})]})}function Za({chat:e,thread:t,ended:n,busy:r,snap:i,onError:a}){let[o,s]=(0,G.useState)(!1),c=t.model?.name||``;if(!c)return null;let l=H(i?.models.models),u=(t.models||[]).map(e=>({...e,note:String(H(l[e.name]).description||``)})),d=Fa[t.model?.provider||``],f=u.length<2;return(0,K.jsxs)(`div`,{className:`relative min-w-0`,children:[(0,K.jsxs)(R,{variant:`ghost`,className:`max-w-[46vw] min-w-0 px-2 text-[15px] sm:px-2.5`,disabled:n||r||f,"data-tip":f?`This chat has no other model to switch to`:r?`When ForgeQE has finished`:void 0,"aria-expanded":o,"aria-haspopup":`menu`,"aria-label":`Model: ${c}`,onClick:()=>s(!o),children:[d?(0,K.jsx)(d,{"aria-hidden":`true`,className:`size-4`}):(0,K.jsx)(me,{"aria-hidden":`true`}),(0,K.jsx)(`span`,{className:`hidden truncate sm:inline`,children:c}),!f&&(0,K.jsx)(F,{size:16,"aria-hidden":`true`,className:`hidden sm:block`})]}),(0,K.jsx)(ia,{open:o,onClose:()=>s(!1),label:`Model`,side:`auto`,className:`right-0 w-[min(400px,calc(100vw-48px))]`,children:(0,K.jsx)(Ua,{models:u,current:c,auto:!1,onPick:t=>{s(!1),t!==c&&Qt.model(e,t).catch(e=>a(e.message))}})})]})}function Qa({chat:e,thread:t,ended:n,snap:r,onError:i}){let[a,o]=(0,G.useState)(!1),[s,c]=(0,G.useState)({});(0,G.useEffect)(()=>c({}),[t.headed,t.writeTests]);let l={...za(r),headed:s.headed??t.headed??!1,code:s.code??t.writeTests??!0};return(0,K.jsxs)(`div`,{className:`relative`,children:[(0,K.jsxs)(R,{variant:`ghost`,className:`px-2 text-[15px] sm:px-2.5`,disabled:n,"aria-expanded":a,"aria-haspopup":`dialog`,"aria-label":`Tools`,onClick:()=>o(!a),children:[(0,K.jsx)(Ie,{"aria-hidden":`true`}),(0,K.jsx)(`span`,{className:`hidden sm:inline`,children:`Tools`}),(l.headed||!l.code)&&(0,K.jsx)(`span`,{"aria-hidden":`true`,className:`size-1.5 rounded-full bg-accent`})]}),(0,K.jsx)(ia,{open:a,onClose:()=>o(!1),label:`Tools for this chat`,role:`dialog`,side:`auto`,className:`left-0 w-[min(380px,calc(100vw-48px))]`,children:(0,K.jsx)(Ha,{tools:l,chat:{model:t.model?.name,provider:t.model?.provider},onChange:t=>{let n={};t.headed!==l.headed&&(n.headed=t.headed),t.code!==l.code&&(n.writeTests=t.code),Object.keys(n).length&&(c({headed:t.headed,code:t.code}),Qt.settings(e,n).catch(e=>i(e.message)))}})})]})}function $a({project:e}){return(0,K.jsxs)(`div`,{role:`status`,className:`flex w-full flex-wrap items-center gap-x-4 gap-y-3 border-y border-line py-4 short:gap-y-2 short:py-2.5`,children:[(0,K.jsx)(Vt,{icon:N,size:20,className:`flex-none text-accent-fg`}),(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_280px] flex-col gap-0.5`,children:[(0,K.jsx)(`span`,{className:`font-medium`,children:`Set up ForgeQE first`}),(0,K.jsxs)(`span`,{className:`text-sm text-muted [overflow-wrap:anywhere]`,children:[`Choose your project folder and set ForgeQE up in it. It is not set up in `,e,` yet.`]})]}),(0,K.jsxs)(`a`,{className:L(rn({variant:`primary`}),`short:min-h-8 short:px-3 short:text-[13px]`),href:zt(`settings`,`setup`),children:[(0,K.jsx)(_,{"aria-hidden":`true`}),`Set up`]})]})}function eo({c:e}){let t=La(e.machine,e.choice.profile);return t.length?(0,K.jsx)(`div`,{role:`status`,className:`flex w-full flex-col gap-3 border-y border-line py-4 short:gap-2 short:py-2.5`,children:t.map(e=>(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-4 gap-y-3 short:gap-y-2`,children:[(0,K.jsx)(Vt,{icon:N,size:20,className:`flex-none text-accent-fg`}),(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_280px] flex-col gap-0.5`,children:[(0,K.jsx)(`span`,{className:`font-medium`,children:e.title}),(0,K.jsx)(`span`,{className:`text-sm text-muted [overflow-wrap:anywhere]`,children:e.detail})]}),(0,K.jsxs)(`a`,{className:L(rn({variant:`primary`}),`short:min-h-8 short:px-3 short:text-[13px]`),href:e.to,"data-tip":e.fix,children:[e.fix.startsWith(`Add`)?(0,K.jsx)(r,{"aria-hidden":`true`}):(0,K.jsx)(tt,{"aria-hidden":`true`}),e.fix.split(` `)[0]]})]},e.title))}):null}var to=`forgeqe.regression.handoff`,no=`forgeqe.home.handoff`,ro={$comment:`ForgeQE's release notes, newest first: the web app's What's new and each GitHub Release. See RELEASING.md.`,releases:[{version:`2.9.9`,date:`2026-11-12`,summary:`Business assurance tests what people could make your business lose, maps draw as architecture diagrams, recordings explain every step, and personas open in a side panel with skills and knowledge of their own.`,changes:[{kind:`new`,title:`Business assurance`,detail:`A new agent tests your software the way customers, staff and opportunists would use it: over-refunds, coupons redeemed twice, rules bypassed on another journey, self-approval. It reads your product's rules, ranks the risks, and runs investigations on a test environment, saying what the business intended and whether it held. Findings are written for leaders, product, risk and engineering.`,to:[`agents`,`business`]},{kind:`new`,title:`Simulate a whole population`,detail:`Business assurance can build a population from your personas (mostly honest customers, some opportunists, a few insiders) and let it trade on a test environment over simulated days. Checks name who broke a rule, so a loss hidden in the totals shows up, for example 7 of 67 refunds paying back more than was paid. Ask why lets you question one person about what they did. The same seed always gives the same people.`,to:[`agents`,`business`]},{kind:`improved`,title:`Maps drawn as architecture diagrams`,detail:`The Code map, the Impact map and the Product page's links share one graph. Code map shows all your repositories as the product, with the data stores and systems they share, and opens a repository arranged by layer: front end, API, services, data access, with tests and shared code at the sides. The Impact map puts the changed files at the top and each step away below them.`,to:[`product`,`code`]},{kind:`improved`,title:`Recordings explain every step`,detail:`A recording's review shows what each step recorded: the element, the best locator and the others with whether each was unique, its frames, and what was typed (a password only by its variable). A recording started from the web app has a Stop button on the page. Every recording and re-run keeps a log. Checks picked from a step's picture now reach text inside web components and frames.`,to:[`record`]},{kind:`new`,title:`Personas with their own skills and knowledge`,detail:`A persona opens in a side panel, with Edit (or Copy to edit for a built-in one). It shows the skills and documents the persona uses, with suggestions to add. ForgeQE can write skills and knowledge just for that persona, when you save it or with Generate, used only when someone works as that persona. New persona is a side panel too, and the Persona pages are linked at the top right.`,to:[`agents`,`persona`]},{kind:`improved`,title:`A calmer, more consistent web app`,detail:`Pages change smoothly: the old page stays until the new one has its data, then fades over. The icon colour you choose in Appearance now reaches every icon, button, link and the entry you are on, without turning the page pale. Recent chats have icons, and Needs a look marks a failure with a clear bar in its colour.`,to:[`settings`,`appearance`]},{kind:`fixed`,title:`Token totals add up`,detail:`A chat's All agents total now stays the sum of its agents, instead of showing only the Orchestrator's use at the end of a turn. Each agent says the tokens it used and how full its context is, and every page words token breakdowns the same way.`}]},{version:`2.9.8`,date:`2026-11-12`,summary:`ForgeQE installs a test project's packages before running its tests, Cypress cases get Cypress tests, and agents ask you before they install, run or change anything they may not.`,changes:[{kind:`fixed`,title:`Cypress cases get Cypress tests`,detail:`A test case whose Framework line says Cypress is now written as a Cypress test, in the folder where your Cypress suite lives. A test in another framework is never run, kept or linked to the case, so a Playwright test no longer passes for a Cypress case.`},{kind:`improved`,title:`Packages installed before tests run`,detail:`When a test project's packages are missing, ForgeQE installs them with the project's own lockfile before the test runs. If a run says Cypress, a Playwright browser or a package is missing, it installs that once and runs again. A failed install stops the job with the reason in plain words and the command to run yourself.`},{kind:`new`,title:`Agents ask before they install, run or change`,detail:`Scribe, the healing agent and the API test writer no longer change your packages themselves. When they need a package, a command their shell refuses, or a change to package.json, requirements.txt or pyproject.toml, ForgeQE shows you exactly what it would do and acts only on a yes. A no, or a run nobody watches, changes nothing and the test is reported as blocked. A shell, a git push, .npmrc and lockfile edits are always refused.`,to:[`settings`,`code`]},{kind:`new`,title:`Choose how agent requests are answered`,detail:`Settings › Code › Help it gets › When an agent asks for more (code.requests): ask a person each time (the default), allow after ForgeQE's checks without asking, or refuse every request.`,to:[`settings`]},{kind:`improved`,title:`A simpler Persona agent page`,detail:`The Persona agent's page has one message box. Its own Agent chat is gone, because you use a persona from any agent's chat (/priya …). Personas is the first screen, and its tabs sit beside the persona count.`,to:[`persona`]}]},{version:`2.9.7`,date:`2026-11-11`,summary:`A suite no longer stops after its first case writes a test, and env.yaml variables that point to a .env secret are typed as that secret instead of its name.`,changes:[{kind:`fixed`,title:`A suite no longer stops after its first case writes a test`,detail:`Running test cases against an environment could hang once a passing case started writing its test, and every later case showed Not run: the suite was stopped. The suite now carries on through every case.`},{kind:`fixed`,title:`env.yaml variables that point to a .env secret`,detail:"A variable like TestPassword: password, ${NAME} or env:NAME was typed literally, so the browser agent typed the word password. It is now a secret: the value comes from that .env variable, is typed only on the environment's own sites and never appears in a brief or log. A literal password in env.yaml stays reported and is never copied into a converted env.yaml."}]},{version:`2.9.6`,date:`2026-11-11`,summary:`Search your documents and past chats without a vector database, a Knowledge agent you can correct, a recorder that handles frames, shadow DOM, uploads and CAPTCHAs, replays that wait for the page, and ServiceNow test cases.`,changes:[{kind:`new`,title:`Search your documents without a vector database`,detail:`ForgeQE splits your knowledge notes, documents and docs folders into sections and finds the ones that answer a question, with no embeddings or database to set up. Turn on the Document reader to let the model pick sections. Use forgeqe knowledge docs index, search and outline, or Ask the documents on the Knowledge page. PDF, Word and Excel are indexed when you ask.`},{kind:`improved`,title:`Agents read only the sections they need`,detail:`Skills and knowledge notes now reach an agent as the sections that fit its task, not whole files: 55 to 80% less text on the built-in skills. The same question to the Document reader is answered from its cache, with no model call.`},{kind:`new`,title:`Search what was said in every chat`,detail:`Typing three or more letters in All chats also searches what was said in every kept chat, the terminal's included, and opens a web chat at that turn. Terminal chats are now kept, with secrets taken out. In this chat lists the document sections the agent used.`,to:[`chats`]},{kind:`improved`,title:`Long chats carry over what matters`,detail:`A long chat reopened or moved to another model now sends its last four turns and the earlier turns about your new message in full, and every other turn as one line, instead of only the last 20 turns.`},{kind:`new`,title:`Knowledge agent: see what ForgeQE understood and correct it`,detail:`Ask the Knowledge agent what ForgeQE knows about your product, then correct it. Each change to a knowledge note, project skill, team prompt or product rule is shown as a diff and written only when you approve it. Where sources disagree, it asks which is right. Available from forgeqe knowledge chat, the chat and the Knowledge hub.`},{kind:`improved`,title:`Recorder handles frames, web components and canvases`,detail:`Steps inside frames, including another site's frame within a frame, are recorded and replayed. Menus inside web components no longer record as a click on the whole component, closed shadow roots are recorded too, and a canvas click keeps where it landed.`,to:[`record`]},{kind:`improved`,title:`Locators for buttons that repeat`,detail:`When the same button appears on every row or card (Remove, Book now), the recorder anchors it on the row or card by text only that one has, so a replay picks the right one even after the list is reordered.`,to:[`record`]},{kind:`improved`,title:`Uploads from anywhere`,detail:`A file picked from outside the project, such as Downloads, is copied into the recording. Browse buttons and files dropped on a drop zone are recorded and replayed. Hidden files, files named like credentials and files over 25 MB are still refused.`,to:[`record`]},{kind:`new`,title:`CAPTCHAs become one step a person solves`,detail:`A reCAPTCHA, hCaptcha, Turnstile, Arkose or GeeTest is recorded as one step, not its clicks. A replay with a visible browser waits up to 3 minutes for a person to solve it. The written test runs where the CAPTCHA is turned off and never tries to get round it.`,to:[`record`]},{kind:`improved`,title:`Replays wait for the page`,detail:`After every replayed step, the page gets up to 10 seconds to finish loading, finish its own background calls and clear any spinner the step brought up. Pages that only work once their data has loaded now pass. In the review you can add a wait after a step: until the page loads, until a text shows or goes, or a pause.`,to:[`record`]},{kind:`new`,title:`Checks that compare`,detail:`Change a check in the review to compare by is exactly, starts with, ends with, does not contain, matches a pattern, or a number that is equal, above, below or between two values, with case optionally ignored.`,to:[`record`]},{kind:`improved`,title:`Re-run history and step pictures`,detail:`Each re-run keeps a picture of the page after every step, and a failed step's opens by itself. The Runs tab lists the latest 30 re-runs, even after forgeqe web restarts, and the History tab is now called Versions. Videos open in a new tab.`,to:[`record`]},{kind:`new`,title:`ServiceNow test cases`,detail:`Read tests and their steps from ServiceNow Test Management by number, sys_id or query (read only). Set it up on Settings' ServiceNow card.`,to:[`settings`]},{kind:`improved`,title:`Test case ids found in the right system`,detail:`A test case id is looked up in the system it belongs to, from its prefix, a link or sources.id_routes. When more than one system could hold it, ForgeQE asks which instead of guessing.`},{kind:`fixed`,title:`Run one case from a Markdown file`,detail:`A Markdown file with common steps and a heading per case (5458-02, TC-3) can now run a single case, with the common steps included. A precondition is taken as met by the test data and no longer stops a run or fails one that reached the expected result. A typed password or one-time code is no longer shown in a step's line.`}]},{version:`2.9.5`,date:`2026-11-11`,summary:`Writing a test from a recording uses far fewer tokens: the coding agent no longer loops on re-reads and repeated edits, and a stopped job carries on fresh. Accessibility checks keep their zoom and no longer pass when nothing ran.`,changes:[{kind:`improved`,title:`The coding agent stops going round in circles`,detail:`When the coding agent re-reads files that have not changed or keeps editing the same files without running the test, ForgeQE stops it and asks for its test. code.repeat_after (default 6) and code.edit_after (default 8) set when, also in Settings. The planner keeps to 15 steps and no longer looks up the same thing twice.`,to:[`settings`]},{kind:`improved`,title:`A stopped or extended job carries on fresh`,detail:`Running a stopped job again, or raising its token budget, now starts a short new session from the job's brief, the agreed plan and the files already written, instead of re-sending the whole earlier conversation on every call.`},{kind:`improved`,title:`Live browser when the replay cannot get through`,detail:`When ForgeQE's replay of a recording cannot reach its last page, the coding agent gets the live browser from the start instead of patching steps blind.`},{kind:`fixed`,title:`Unattended writing no longer asks Carry on?`,detail:`A test written with nobody watching stops at code.max_tokens instead of asking. When a person is asked, Carry on? now says whether the test has been run yet and how many model calls the job made.`},{kind:`fixed`,title:`A stopped job says truthfully what it left`,detail:`A stopped job now lists the files it changed and whether the test ever ran. It no longer says Test run 1 failed or Test written when no test ran.`},{kind:`improved`,title:`See why GitHub Copilot calls cache so little`,detail:`With a Copilot model profile, each call logs a line with its input and cached tokens (never the prompt's text), and the low-cache notice points to it.`},{kind:`fixed`,title:`Accessibility checks keep their zoom and report honestly`,detail:`The low-vision persona's 200% zoom is kept after the page changes. A persona whose run broke (no model, no browser) is now Not tested and fails the check, and forgeqe a11y exits 1 instead of showing a pass. A stopped session lists the personas it never ran, and every persona run includes the axe-core rule checks.`}]},{version:`2.9.4`,date:`2026-11-11`,summary:`Business personas any agent can act as (/priya, /sam and more), BDD skills for Gherkin feature files, Dynamics 365 know-how for the browser agent and Scribe, and project logos that fit the sidebar by themselves.`,changes:[{kind:`new`,title:`Persona agent: test as the business would`,detail:`A business persona is someone who accepts the software the way the business does: a payments expert, an end user, a compliance specialist or an operations manager, each with what they check before they accept it. Five are built in, and the Persona agent drafts your own from a description.`,to:[`agents`,`persona`]},{kind:`new`,title:`/priya, /sam and other persona commands`,detail:`Start a message with a persona's command (/priya, /sam, /dana, /lee, /alex, or your own) in the terminal, forgeqe run or any web chat, and the agent works as that persona. The chat box suggests them after /.`,to:[`agents`,`persona`]},{kind:`new`,title:`Persona page`,detail:`The Persona agent's page has an Agent tab to describe a person and save the persona it drafts, a list of personas with what each checks, and Run as this persona. Each saved persona also gets a readable Markdown profile.`,to:[`agents`,`persona`]},{kind:`new`,title:`Share personas between projects`,detail:`Export personas as a file and import them in another project, from the page or with forgeqe persona export and import. An import adds only new personas, never replaces one, and is refused whole if anything in it is not a persona.`},{kind:`new`,title:`BDD feature files`,detail:`Tests can be written as Gherkin feature files for Reqnroll/SpecFlow, cucumber-js, playwright-bdd, Cucumber-JVM, behave or pytest-bdd. Before writing one, the agent asks whether you want a Scenario Outline with Examples, a Background and Rule blocks, and it writes scenarios from the acceptance criteria.`},{kind:`new`,title:`Dynamics 365 know-how`,detail:`The browser agent knows Dynamics 365's own names for its controls (site map, Quick Create, Quick Find, subgrids, lookups, business process flow and more), and tests written for D365 use reliable locators and wait for the page to settle.`},{kind:`improved`,title:`Project logos fit the sidebar by themselves`,detail:`Settings › Appearance › Logo size has Fit automatically, now the default: the logo is sized from its shape so it is seen and its words can be read. A logo with no project name fills the brand area, and a logo with its own background gets rounded corners instead of a second plate.`,to:[`settings`,`appearance`]}]},{version:`2.9.3`,date:`2026-11-11`,summary:`A redesigned Record page that follows each recording to its test, desktop recordings you can review and edit, video of recordings and replays, ForgeQE working on every Windows, and a hosted mode for forgeqe web.`,changes:[{kind:`improved`,title:`Record page redesigned`,detail:`Record now opens on headline numbers, the New recording form beside a short How it works, and a table of recordings with search and filters. Each row shows its test case, browser, duration and what it produced, with a menu to open, write the test, open the chat, read the steps or delete.`,to:[`record`]},{kind:`new`,title:`See the test written from each recording`,detail:`Every web recording says whether it has a test: No test yet, Writing the test, Test written with its file, Test out of date, Test not passing or Writing failed. Writing again updates that test instead of adding a second one.`,to:[`record`]},{kind:`improved`,title:`Writing a test carries on without you`,detail:`Writing a test from a recording keeps going when you leave the page, and the chat and the recording link to each other. It says why a writing failed, and Stop writing ends one. If the model cannot be reached, ForgeQE checks every 30 seconds for up to 15 minutes and carries on where it stopped.`,to:[`record`]},{kind:`new`,title:`Stop a recording's Re-run`,detail:`A re-run of a web recording now has Stop, so you no longer wait for every step to time out. The steps already done are kept and the result is marked stopped, not failed.`,to:[`record`]},{kind:`new`,title:`Review desktop recordings like web ones`,detail:`A desktop workflow opens in a review with Steps, Test data and Last run tabs. See how each step went on the last replay, add a check, wait or keys after a step, change or drop a step with a preview, and turn a typed value into test data or a secret.`,to:[`desktop`]},{kind:`new`,title:`A picture of each desktop step, and click it to add a check`,detail:`Desktop recordings and replays keep a picture of the app after each step. Click a control in the picture to add a check that it shows its text, or that it is there. A password field's text is never kept.`,to:[`desktop`]},{kind:`new`,title:`Video of recordings, replays and desktop runs`,detail:`Recordings by hand, re-runs and desktop runs now keep a video, and the review plays it. browser.video and desktop.video turn it off. Making a typed value a secret removes that recording's videos.`},{kind:`improved`,title:`Change or remove desktop apps, with arguments`,detail:`Desktop apps' list has Change (path, arguments, description) and Remove, which says first which workflows name the app. Adding an app now takes arguments too, typed as on a command line and never run through a shell.`,to:[`desktop`]},{kind:`new`,title:`Hosted mode for forgeqe web`,detail:`forgeqe web --port 8080 --public-url https://NAME serves a demo or security test through a TLS proxy that limits who gets in. It still listens only on 127.0.0.1 and needs its token. Anyone who gets through the proxy with the link can use ForgeQE and its credentials, so give that server test credentials only.`},{kind:`improved`,title:`Home starts from better requests`,detail:`Home's starters are now three requests written out in full (test cases; test cases and scripts; test cases, scripts and regression): type only your objective. What needs a look is a clear list of rows saying what each one opens.`},{kind:`improved`,title:`Tidier Tosca conversion header`,detail:`A conversion's header keeps Start again, Run and Report as buttons, with Re-import, CI, Pull request and Delete under More.`,to:[`tosca`]},{kind:`improved`,title:`Context and tokens shows the 30-day total`,detail:`The panel's This project section now opens with the project's 30-day token total, which leads to Settings › Tokenomics, and each row has its own icon.`},{kind:`fixed`,title:`ForgeQE works on every Windows`,detail:`Fixes for Windows x64 and ARM64: Tosca exports that could not be read, API tests losing their address, test commands built for the wrong shell, the Azure CLI not starting, short user folder names, and Edge's own new tab appearing at the start of a run. Every change is now tested on Windows too.`},{kind:`fixed`,title:`Git hooks stay off on Windows, and protected folders stay protected`,detail:`On Windows, a git hook in a folder any user could create could run during ForgeQE's own checkouts; it no longer can. The coding agent could also write to ForgeQE's run folder when it was on another drive; that is now refused.`}]},{version:`2.9.2`,date:`2026-11-10`,summary:`A Desktop apps page and a Desktop agent that replays, explores and accepts heals from the web app or chat, recording any desktop app by its path, Copy to edit for built-in skills, and safer project .env files and tool downloads.`,changes:[{kind:`new`,title:`Desktop apps page`,detail:`Quality Engineering › Automation › Desktop apps does what forgeqe desktop does: Workflows, Runs, and Machine and apps tabs, with Replay (variables, data rows, heal, new baselines), Explore and Set up in sheets. Accept a passed replay's heals from its run. Fix with the agent and Why did it fail open a chat.`,to:[`desktop`]},{kind:`new`,title:`Desktop agent in chat`,detail:`The Desktop agent has its own agent page, and in chat it can list workflows and runs, validate a workflow, replay with data rows, accept a passed replay's heals and set up the engine (asking first for anything that changes something).`},{kind:`new`,title:`Record any desktop app`,detail:`Record's app list ends with Another app…: type the program's path or pick it with Browse, name it, and ForgeQE adds it to the environment's apps and records it. Machine and apps has Add an app too. Only a real program file is accepted, never a .bat, .cmd or script.`,to:[`record`]},{kind:`new`,title:`Copy to edit a built-in skill`,detail:`A built-in skill's panel offers Copy to edit: save the project's own copy under the same name, with its reference files, and it replaces the built-in one in this project.`,to:[`skills`]},{kind:`fixed`,title:`Scheduled custom agents keep their request`,detail:`A schedule ran agent run <id> --unattended with no request, because the request was read as the switch's value. It now runs with the request it was given.`,to:[`agents`]},{kind:`fixed`,title:`Sidebar foot stays in view on laptops`,detail:`On laptop-sized windows in some browsers the sidebar ran past the window and hid Settings, Help and Dark/Light. It now fits in every browser.`},{kind:`fixed`,title:`A malformed address no longer blanks the web app`,detail:`An address like #/regression/%E0 left a blank app. Pages now read it safely, and a page that fails to draw shows a short note in its place instead of taking the app down. Errors in ForgeQE's own code now answer 500, not 400.`},{kind:`improved`,title:`A project's .env cannot run other code`,detail:`A cloned repository's .env can no longer set NODE_OPTIONS=--require, LD_PRELOAD, PYTHONSTARTUP, GIT_SSH_COMMAND and similar names that make every program ForgeQE starts load other code. Keys, proxies and CA files load as before; the shell and ForgeQE's own .env are unchanged.`},{kind:`improved`,title:`Downloaded tools need a matching checksum`,detail:`The agent runtime and uv install only when their SHA-256 matches one pinned in ForgeQE. A download whose checksum cannot be checked (a rate limit, a proxy) is refused instead of installed unchecked.`}]},{version:`2.9.1`,date:`2026-11-10`,summary:`Tosca migration grows up: an assistant that sets it up in chat, API, desktop, mobile and database steps converted, batches, CI pipelines and pull requests. Settings › Secrets keeps every secret and pulls from Azure, Google and AWS vaults.`,changes:[{kind:`new`,title:`Tosca assistant`,detail:`The Tosca page opens on an Agent tab. Say what to migrate in your own words; the assistant asks only what it still needs (exports, framework, language, where the tests start, the app or database the cases use, the secret behind each test variable) and opens the wizard on Review with every stage filled in. It can clone exports from a git repository, and conversations survive a restart.`,to:[`tosca`]},{kind:`new`,title:`Tosca converts API, desktop, mobile, database and file steps`,detail:`API test cases become API tests. Desktop and mobile test cases become ForgeQE workflows, written by code with no model, with their test data in a .data.csv and secrets typed from variables; inside a web test they are replayed at their step. Read-only database queries become checks with the target's own client (values bound as parameters), and file and Excel reads become checks. Mixed test cases convert their web and API steps and mark the rest for a person; anything that writes stays for a person.`,to:[`tosca`]},{kind:`new`,title:`Know what can be migrated before you start`,detail:`Every test case of an export is sorted by kind with what becomes of it (also as a CSV), Ready to run checks what the run needs before Start, and Review estimates the conversion's tokens and cost.`,to:[`tosca`]},{kind:`new`,title:`Several exports, batches and re-import`,detail:`A plan can read many .tsu files or a folder of them (duplicates converted once). Convert in batches (--batch N) checks each batch before the next. Read exports again (forgeqe tosca reimport) brings in what changed, and tosca-map.json traces each Tosca test case by its id to its test and last outcome.`,to:[`tosca`]},{kind:`new`,title:`Tosca test data from a data file`,detail:`Name Tosca's Export to Excel of a test sheet, or any CSV, Excel or JSON file, on Review (or forgeqe tosca data) and {XL[...]} values are filled from it instead of left for a person.`,to:[`tosca`]},{kind:`new`,title:`CI pipelines and pull requests for a conversion`,detail:`forgeqe tosca ci (or the CI pipeline sheet) writes a GitHub Actions or Azure Pipelines file with one job per execution list, plus replay jobs for desktop and mobile workflows. Pull request on a finished conversion (or forgeqe tosca pr) commits the target folder on ForgeQE's own branch without touching your checkout.`,to:[`tosca`]},{kind:`improved`,title:`Tosca report built for thousands of test cases`,detail:`One compact summary on top, test cases grouped as Failed, Needs attention, Passed, Not run and Left out, searchable, 50 at a time. Every test run keeps a failure screenshot and a video by default. Download the HTML report as a zip with every video. Activity groups its log by unit, with search and filters. A stopped or failed conversion can be started again from its page.`,to:[`tosca`]},{kind:`new`,title:`Settings › Secrets and vaults`,detail:`Every saved secret by name in one place: add, replace or remove; a value is never shown again. Connect Azure Key Vault, Google Secret Manager or AWS Secrets Manager (browser sign-in recommended), browse names and pull a value straight into the credential store. Export vault connections, without values, for teammates to import. Repository tokens are a filter here, and the suggested token name is now REPO_TOKEN.`,to:[`settings`,`secrets`]},{kind:`fixed`,title:`Desktop replay on Windows`,detail:`Replay brings the app forward and refuses to click or type while another program's window is in front, types text as keys (Save dialogs), and no longer stops when healing is off or its model cannot be used. A heal is remembered only from a replay that passed. Recording by hand catches the OK that closes a dialog.`},{kind:`fixed`,title:`Sidebar and browser detection fixes`,detail:`A shell starting a browser is no longer counted as a browser, and the sidebar no longer falls back to tiles because its icons were mis-measured.`}]},{version:`2.9.0`,date:`2026-11-10`,summary:`Browsers start on locked-down PCs (through Playwright, or attached to one you opened), forgeqe doctor browser explains a failed start, the sidebar keeps your recent chats and pages, and one 30-day token figure across the app.`,changes:[{kind:`new`,title:`Start the browser through Playwright, or attach to your own`,detail:`browser.launch in forgeqe.yaml (and Settings › Browser) is auto, direct, playwright or attach. Auto starts the browser directly and, once this computer stops that, through ForgeQE's own Playwright; what worked is remembered. Attach connects to a browser you started with --remote-debugging-port (browser.attach_port, this computer only) and never closes it. A browser started through Playwright now looks to a site like one started directly.`,to:[`settings`,`browser`]},{kind:`new`,title:`forgeqe doctor browser`,detail:`Tries each way of starting the browser and writes .forgeqe/reports/browser-check-<time>.md with each start's log, the browser policies that block automation, security software, and (on Windows) AppLocker and code integrity events about browsers. Send it when a browser will not start on a managed PC.`},{kind:`fixed`,title:`No browsers left running after a failed start`,detail:`Browsers a failed start leaves behind (relaunched by a launcher, or by a stopped Playwright) are closed right away and checked again over the next minute. A browser on any other profile, yours included, is never touched. A slow first start also gets one more try.`},{kind:`fixed`,title:`Windows update no longer loops`,detail:`On 2.8.x, forgeqe update on Windows could open and close command windows forever without updating. The update now runs once, waits up to 5 minutes for ForgeQE to exit, and clears the stuck scripts an earlier update left behind.`},{kind:`fixed`,title:`Recordings no longer stall when a step leaves the page`,detail:`A click that submitted a form or followed a link could crash Chrome's page renderer about one time in ten, leaving the recording waiting until it timed out. It no longer does.`},{kind:`new`,title:`Recent chats and pages in the sidebar`,detail:`The sidebar lists your recent chats below the main options at every level, and inside a chat shows its last chats under Chat history. Every landing page and category shows its pinned pages and the ones you opened lately. Agents › Chat lists as many chats as fit, a page at a time, with search.`,to:[`browse`]},{kind:`new`,title:`Search Administration`,detail:`A search box on Administration finds its pages and any setting by name or forgeqe.yaml key, and opens its section.`},{kind:`improved`,title:`One token figure across the app`,detail:`The workspace panel, Tokenomics and Cost now share one 30-day window and one total, so chats are counted on Tokenomics too (they showed 0 before). Test-run figures sit below under Test runs, and Cost shows the amount charged at the time beside today's price.`,to:[`settings`,`tokenomics`]},{kind:`improved`,title:`Settings as text`,detail:`Settings › Files is now Settings as text: forgeqe.yaml, llms.json and env.yaml as they are on disk, laid out with the page, with Save always at the foot of the window.`,to:[`settings`]},{kind:`improved`,title:`Shorter buttons, one icon per action`,detail:`Buttons across the web app and the HTML report have short labels and one icon for each kind of action, icon-only where space is short. Checkboxes are animated, and scrollbars are thin and appear only while an area scrolls.`},{kind:`fixed`,title:`Terminal replies no longer flicker blank`,detail:`On a busy machine a reply in the terminal could show empty for a moment while it was highlighted. The words now appear at once and the highlighting follows.`}]},{version:`2.8.9`,date:`2026-11-09`,summary:`Pick the local browser in Settings, wait out a browser launcher handover, and hold every custom-agent sub-agent to the agent's limits.`,changes:[{kind:`new`,title:`Pick the local browser in Settings`,detail:`browser.local_browser in forgeqe.yaml (and Settings › Browser) chooses Automatic (Chrome, then Edge, then Playwright's Chromium), or Chrome, Edge or Chromium alone. It applies to runs, recordings and forgeqe login. A path in BROWSER_USE_EXECUTABLE_PATH still wins.`,to:[`settings`,`browser`]},{kind:`fixed`,title:`Wait when a launcher starts the real browser`,detail:`On some managed Windows PCs the process ForgeQE starts exits after opening another browser on the same DevTools port. ForgeQE now waits for that browser (up to 90s) instead of failing when the launcher exits, and logs each step of the start.`},{kind:`improved`,title:`Every sub-agent a tool starts respects the agent's limits`,detail:`Custom agents' "agents it may start" now covers tools that start a sub-agent without listing it before (DB agent, test planning, product knowledge, defect analysis). The editor offers those agents and warns when a capability needs one the draft does not allow.`,to:[`agents`]},{kind:`fixed`,title:`Safer custom agent pack import`,detail:`Importing a zip refuses oversized or hostile entries, linked paths out of the project, and overwriting another agent's notes. Knowledge and skills are written only inside the project.`,to:[`agents`]}]},{version:`2.8.8`,date:`2026-11-09`,summary:`Fall back when Chrome will not start, category landing pages with what needs a look, and a unique icon for every agent.`,changes:[{kind:`fixed`,title:`Try Edge or Chromium when Chrome will not start`,detail:`Runs, recordings and forgeqe login fall back to Microsoft Edge, then Playwright's Chromium, when installed Chrome closes before it can be driven or does not answer. The report names the browser used. Pin one with BROWSER_USE_EXECUTABLE_PATH, or set BROWSER_USE_FALLBACK=0 to keep that browser only.`},{kind:`improved`,title:`Landing pages show what needs a look`,detail:`Each category's landing page lists what needs attention there and the built-in agents that work in it. Everything shows every category's. Home's suggestions come from more of ForgeQE, and Sign-ins, Environments and Set up no longer say the agents only test.`,to:[`browse`]},{kind:`improved`,title:`Own icons for Agents, Quality Engineering and AI Assurance`,detail:`The three sidebar categories each have a ForgeQE-drawn icon, matching the rest of the nav.`,to:[`browse`]},{kind:`improved`,title:`A unique icon for every agent`,detail:`No two agents on Agents or Settings › Routing share an icon. Chat-only agents (builder, bug report, Evidence and others) have their own faces instead of the Helper. Tooltips keep your agent.app_name when the page is renamed.`,to:[`agents`]}]},{version:`2.8.7`,date:`2026-11-09`,summary:`Delete a custom agent from Details, and a shorter Versions history.`,changes:[{kind:`new`,title:`Delete a custom agent`,detail:`Details opens Delete under Versions. Type the agent id to confirm. It removes the manifest, approved versions, runs, waiting approvals and its schedule job. Knowledge files and skills it named stay. forgeqe agent delete does the same at the terminal.`,to:[`agents`]},{kind:`improved`,title:`Shorter Versions history`,detail:`The current version shows a Running pill. Who approved it uses your git name when set, and long GitHub noreply emails shorten to the username with · web when done in the app.`,to:[`agents`]}]},{version:`2.8.6`,date:`2026-11-08`,summary:`A custom agent's page uses the same ask box and layout as ForgeQE's own agents.`,changes:[{kind:`improved`,title:`Custom agent page like the API agent`,detail:`One large icon, name and description, then the shared chat composer (environment, tools, Refine, model). Starter pills and what it needs sit below. Export, Details and Edit stay as icon buttons; Details opens a right-side panel for reach, versions and runs.`,to:[`agents`]}]},{version:`2.8.5`,date:`2026-11-08`,summary:`Custom agent page matches Jobs, searchable Phosphor and Lucide icons, and chat no longer shows the model price mismatch note.`,changes:[{kind:`improved`,title:`Custom agent page like Jobs`,detail:`An agent's page centres on try and ask, with icon-only Export, Details and Edit. Details opens a right-side panel for reach, versions, runs and approve or disable.`,to:[`agents`]},{kind:`improved`,title:`Search Phosphor and Lucide for agent icons`,detail:`The icon picker searches ForgeQE's faces plus Phosphor and Lucide by name, shows the top ten matches, and offers Show more. Manifests keep only safe ph: and lucide: ids.`,to:[`agents`]},{kind:`fixed`,title:`No price mismatch note when chat starts`,detail:`Opening forgeqe chat no longer prints the Note about llms.json prices not matching the provider. Other commands still show it when the catalog is off.`}]},{version:`2.8.4`,date:`2026-11-08`,summary:`Custom agents: share a zip across projects, and pick an icon from ForgeQE's set.`,changes:[{kind:`new`,title:`Export and import a custom agent`,detail:`Export to share packs agent.json with its knowledge files and skills into a zip. Import agent (or forgeqe agent import) always creates a draft to edit, try and approve. Environments and systems stay in the target project. Same-repo teams still commit .forgeqe/agents.`,to:[`agents`]},{kind:`new`,title:`Icon for each custom agent`,detail:`The builder and editor let you pick one of ForgeQE's agent icons. The Agents list and the agent's page show it; a manifest without an icon uses the Helper face.`,to:[`agents`]}]},{version:`2.8.3`,date:`2026-11-08`,summary:`Tosca report: searchable test list, structured LLM usage, and the failed stage only — no progress bar on a finished conversion.`,changes:[{kind:`improved`,title:`Report scales to many test cases`,detail:`The conversion report lists test cases in a searchable, filterable table (all, needs attention, converted) with paging. Pick a row for Tosca steps, output, and failure screenshots or video instead of scrolling one card per case.`,to:[`tosca`]},{kind:`improved`,title:`LLM usage as labeled figures`,detail:`The report sidebar shows model, tokens (read, cached, written), and cost as rows — not the long CLI usage line with pricing footnotes.`,to:[`tosca`]},{kind:`improved`,title:`Failed stage instead of a progress bar`,detail:`A finished report no longer repeats the Prepare–Review stage row. If a stage failed, one line names that stage and its note.`,to:[`tosca`]}]},{version:`2.8.2`,date:`2026-11-08`,summary:`Tosca: a full-page conversion report with total time, LLM usage and cost, per-test fidelity, and failure screenshots or video.`,changes:[{kind:`new`,title:`Full-page Tosca conversion report`,detail:`Report opens a dedicated page for the conversion instead of a Markdown sheet. It shows total time, model and token cost, every test case with fidelity and output, environment variables to set, and steps a person still has to finish.`,to:[`tosca`]},{kind:`new`,title:`Failure screenshots and video on the report`,detail:`When a converted Playwright test fails, ForgeQE keeps its screenshot and short video under the plan and shows them on the report. New conversions ask Playwright for only-on-failure screenshots and retain-on-failure video.`,to:[`tosca`]},{kind:`improved`,title:`tosca.md includes time and LLM cost`,detail:`The Markdown report written for the CLI and downloads now lists total time, the model, and a readable token and cost line alongside the test table.`}]},{version:`2.8.1`,date:`2026-11-07`,summary:`Tosca: confirming Start opens the running overview at once, and conversion progress stays within 100%.`,changes:[{kind:`fixed`,title:`Confirming Start opens the overview`,detail:`After you type the plan id and start a Tosca conversion, the page leaves the confirm sheet and shows the running overview instead of staying on the plan. A running result is written as soon as the job starts so the list and progress update immediately.`,to:[`tosca`]},{kind:`fixed`,title:`Conversion progress never exceeds 100%`,detail:`The Tosca list and overview counted finished files against the number of test cases only, so exports with many page objects could show 133% or more. Progress now uses every planned unit and stays at most 99% while running.`,to:[`tosca`]},{kind:`improved`,title:`Tooltips use a grey surface`,detail:`Tooltips and the Reports day tip use the muted surface colour so they read clearly on both light and dark themes.`}]},{version:`2.8.0`,date:`2026-11-07`,summary:`Tosca and Migration: Stop ends a stuck run, delete old plans from the page, Cloud exports keep their locators, and __pycache__ no longer looks like an outside edit.`,changes:[{kind:`fixed`,title:`Stop ends a Tosca or Migration run`,detail:`Stop sends SIGTERM the conversion handles, and settles a result left as Running after the process is already gone, so the page does not keep offering Stop with nothing to stop.`,to:[`tosca`]},{kind:`new`,title:`Delete an old Migration or Tosca plan`,detail:`On a plan's page, Delete removes it from the list after you type its id. Converted tests in the target folder stay; a running job must be stopped first.`,to:[`migration`]},{kind:`fixed`,title:`Tosca Cloud exports keep their locators`,detail:`Cloud .tsu files that omit the reverse XParam link no longer convert with empty page objects. ForgeQE fills ExtendableObject the same way it already fills missing TestStep links.`,to:[`tosca`]},{kind:`fixed`,title:`Bytecode caches are not outside edits`,detail:`Python __pycache__ and similar junk are ignored when ForgeQE checks that the agent wrote only inside the target folder, so conversions are not blocked by false Put them back messages. The Tosca export itself is protected the same way.`,to:[`tosca`]}]},{version:`2.7.9`,date:`2026-11-07`,summary:`Tosca conversion reads Tosca Cloud exports and opens browser tests that use OpenUrl and CloseBrowser, so web cases can start instead of showing Mixed or Not supported.`,changes:[{kind:`fixed`,title:`Tosca Cloud exports read their steps`,detail:`Some Tosca Cloud .tsu files list step values only on the step, without the reverse link Commander exports. ForgeQE fills that link before reading, so those exports show real actions, checks and page objects instead of empty Web cases.`,to:[`tosca`]},{kind:`fixed`,title:`OpenUrl and CloseBrowser stay on the web route`,detail:`Tosca's Framework OpenUrl and CloseBrowser modules no longer mark an otherwise Html test as Mixed or Not supported. They become navigate and close steps; TBox Wait becomes a wait. Json and Xml engines show as API (later), not Not supported.`,to:[`tosca`]},{kind:`improved`,title:`Web cases with a few non-web notes can start`,detail:`A test that is mostly web, with only unsupported extras such as mail or screenshots left as marked comments, can be picked and started. Pure API, desktop and other non-web routes still wait for a later version.`,to:[`tosca`]}]},{version:`2.7.8`,date:`2026-11-07`,summary:`Change impact gains Product and Internal views, readiness and pull-request links, and forgeqe web answers on a .localhost name without picking a port.`,changes:[{kind:`improved`,title:`Change impact: Product and Internal`,detail:`Browse a change in two views: Product for how it spreads through the business, and Internal for the whole repository as Graph and Code. Each change sits beside how it spreads, with counts and areas by severity and priority.`,to:[`impact`]},{kind:`improved`,title:`Change impact: readiness and pull requests`,detail:`See readiness, history, effort and confidence on the page, with pull requests, missing tests and links. ForgeQE reads what a change does before it traces impact, and forgeqe impact runs the same analysis from the terminal.`,to:[`impact`]},{kind:`improved`,title:`Change impact layout`,detail:`Compact cards in one row, areas, changes and the files map as tabs, a labelled view toggle, and keyboard focus on an opened area. Regression areas read as plain sentences.`,to:[`impact`]},{kind:`new`,title:`forgeqe web behind a local proxy`,detail:`Serve the app at a .localhost name (for example through portless) without choosing a port yourself. Host and Origin checks still bind to this computer only.`},{kind:`fixed`,title:`Change impact review fixes`,detail:`Security and UI consistency fixes from review on the Change impact pages.`}]},{version:`2.7.7`,date:`2026-11-07`,summary:`Ten new quality pages (flaky tests, release readiness, cost and more), data-driven tests and MFA sign-ins, wider API and cloud testing, desktop replay on macOS and Linux, and a far more reliable mobile agent.`,changes:[{kind:`new`,title:`Flaky tests and run diff`,detail:`Runs › Flaky tests scores each test by how often it flips, passes only on retry or varies in run time, names the likely cause, and quarantines or heals it. Runs › Run diff lines up two runs step by step and shows the first difference that matters.`,to:[`flaky`]},{kind:`new`,title:`Release readiness`,detail:`One verdict for a release from the regression pack, untested changes, the tracker, flaky tests, quality, security and Evidence, with a sign-off record. The agent can work out the verdict; signing off stays with a person.`,to:[`readiness`]},{kind:`new`,title:`Test debt`,detail:`Untested code and business rules, tests that never fail or test nothing that exists any more, near-duplicate tests, and cases not yet automated, in one place.`,to:[`test-debt`]},{kind:`new`,title:`Feature-flag matrix`,detail:`Read your flags from env.yaml, LaunchDarkly or Unleash (read only) and run the regression pack for each combination, all of them or pairwise.`,to:[`flags`]},{kind:`new`,title:`Production signals`,detail:`Errors from Sentry, Datadog and Application Insights, with which of them no test covers. Record a repro of one straight from the list.`,to:[`production`]},{kind:`new`,title:`Security smoke checks and localization`,detail:`Quality › Security checks headers, CSP, cookie flags, mixed content, open redirects, CORS and keys in answers, passively. Quality › Localization finds keys shown as text, English left in other languages and cut-off text, with pseudo-localized and right-to-left stress runs.`,to:[`quality`,`security`]},{kind:`new`,title:`Exploratory sessions and cost`,detail:`Test › Exploratory runs a session with a goal, a cap on charters and a time limit. Results › Cost shows spend by agent, job, model and day, the router's picks, and what each pack run cost.`,to:[`explore`]},{kind:`new`,title:`Data-driven tests`,detail:`A test case runs once per row of a CSV, Excel or JSON file, a read-only query or a kept DB agent request, with values as {{row.column}}. Each row is its own run; the case fails if any row fails. Written tests read every row from one parameterised test, and Try it on the Record page plays up to 20 rows.`,to:[`test-cases`]},{kind:`new`,title:`MFA sign-ins`,detail:`Saved logins handle authenticator codes, codes sent by email, text or a test address, security keys and passkeys, and push approvals (the run waits for a person). A login column gives each row its own user. Codes are never shown to the model.`},{kind:`new`,title:`API testing: streams, OAuth2, mTLS, load and security`,detail:`gRPC streaming, GraphQL subscriptions, WebSocket and SSE contracts. OAuth2 client credentials and client certificates. forgeqe api load reports latency and error rate for read-only calls (never production); forgeqe api security checks an API you own against the OWASP API Top 10. The mock adds rules, stateful CRUD and faults, and Pact contracts import.`,to:[`api-tests`]},{kind:`new`,title:`Cloud testing for Azure, AWS and Google Cloud`,detail:`Agents know each cloud's SDK and its emulators. An env.yaml environment names its subscription, account or project (cloud:), editable in Settings › Environments. AWS and Google Cloud MCP servers read resources, and the cloud-verifier agent template checks a run's effects in the cloud without changing anything.`,to:[`settings`,`environments`]},{kind:`new`,title:`Desktop replay on macOS and Linux`,detail:`Desktop workflows replay through agent-desktop on macOS, Linux and headless Windows, with the same healing, memory and reports. desktop.driver: auto picks it outside Windows. Apps can be a macOS .app or a Linux program; explore and recording stay on Windows.`,to:[`settings`,`desktop`]},{kind:`new`,title:`Mobile: drag and drop, and real iPhones`,detail:`The mobile agent drags one control onto another (a puzzle piece onto its slot), saved as a drag step and replayed on Appium. iOS runs on TestMu's real iPhones and simulators: a permission prompt is closed when it shows and never fails a device where it doesn't.`,to:[`settings`,`mobile`]},{kind:`improved`,title:`A far more reliable mobile agent`,detail:`Swipes and scrolls move React Native carousels and pages that ignored them. An explore stops after a few actions that change nothing instead of spending its budget, records checks before a dialog closes, and keeps only checks a replay can see. iOS sees only controls on screen and keeps app alerts open for checks.`,to:[`settings`,`mobile`]},{kind:`improved`,title:`Mobile runs on several devices`,detail:`Each step line names its device, each failed device says which step failed, and a device TestMu reports unavailable is skipped for the rest of a suite instead of costing ten minutes per workflow. mobile doctor checks TestMu's hub and sign-in when every device is in the cloud.`,to:[`settings`,`mobile`]},{kind:`improved`,title:`Settings changes without a restart`,detail:`forgeqe web keeps working while you edit forgeqe.yaml, llms.json, env.yaml or .env: a half-saved file keeps the last good settings, the page offers to show the changes, open chats can switch to them, and .env values reload. After forgeqe update, Settings › About restarts the server on the same port.`,to:[`settings`,`about`]},{kind:`improved`,title:`Large logos are shrunk`,detail:`Settings › Appearance makes a PNG, JPEG or WebP logo up to 20 MB smaller in the browser instead of refusing anything over 512 KB.`,to:[`settings`,`appearance`]},{kind:`improved`,title:`Data page tabs and database chips`,detail:`The Data page's tabs wrap on a phone and take the arrow keys. A read-only database shows green with a tick, a writable one in amber with a pencil.`,to:[`data`]},{kind:`fixed`,title:`Two runs started at once no longer share a folder`,detail:`Mobile and desktop runs started in the same second each get their own report folder; one no longer overwrote the other's workflow.`},{kind:`fixed`,title:`A missing secret stops a mobile replay at once`,detail:`A replay that types a secret which is not set, or not listed, stops in seconds with what to set, before a cloud device is taken.`},{kind:`fixed`,title:`Agent tabs keep the message box at the bottom`,detail:`Before the first message, the Agent tabs of Jobs, Regression, API tests, Accessibility, Performance and Visual showed the message box in the middle of the window. API tests now lines up with the other pages.`}]},{version:`2.7.6`,date:`2026-11-06`,summary:`Runs check the users, logins and values they need before the browser opens. Test cases use env.yaml values, recordings can be deleted, and the app fits laptop screens.`,changes:[{kind:`new`,title:`A check before every run`,detail:`Before a run or a set of test cases starts, ForgeQE checks that the test users, saved logins, apps and values they name exist in env.yaml and forgeqe.yaml. Anything missing is listed with how to fix it, by name only, never a value, and you choose to stop and add it or run anyway.`,to:[`runs`]},{kind:`new`,title:`env.yaml values in test cases`,detail:`Write {{var.NAME}} or {{app.NAME}} in a test case's title, steps or expected results, and the run fills in the environment's variable or the app's address. A case that names an app starts there. Secrets are never put into a case.`,to:[`test-cases`]},{kind:`new`,title:`Delete recordings`,detail:`Record › Recordings has a checkbox on each row and Delete selected. One confirmation lists what goes; tests already written from a recording stay.`,to:[`record`]},{kind:`improved`,title:`Edits to forgeqe.yaml and env.yaml apply mid-chat`,detail:`A chat, in the web app or the terminal, reads forgeqe.yaml and env.yaml again when either changes and carries the conversation on. An edit that no longer loads keeps the old settings and says why.`,to:[`chats`]},{kind:`improved`,title:`env.yaml says what it did not read`,detail:`Apps are found even in a file copied from the example with leftovers, an app's kind is worked out from what it has, and names match in any case. Anything ForgeQE could not read is listed by forgeqe apps and the agent instead of being dropped silently. Values written beside apps: are read as variables; a password there is reported and never used.`},{kind:`improved`,title:`Fits 13 and 14 inch laptops`,detail:`On laptop-sized windows the app draws slightly smaller, so Home, the sidebar and the agent tabs fit without scrolling. The sidebar's foot is one row: Settings, Help and Dark/Light. What's ready and What's new are now in Settings › Advanced.`,to:[`settings`]},{kind:`improved`,title:`ForgeQE's own engine and runtime`,detail:`Setup, forgeqe doctor and Settings name ForgeQE's browser engine and agent runtime, and the runtime keeps its data in ForgeQE's own folder. An earlier download is moved, not downloaded again. Agent sessions from before this update start fresh when resumed.`},{kind:`fixed`,title:`Open the web app in new tabs`,detail:`Links, bookmarks and typed addresses open in a new tab without signing in again: open tabs share the sign-in. A tab with nothing to sign in from now says so, instead of saying ForgeQE was restarted.`},{kind:`fixed`,title:`Re-running a chat's test keeps the right test`,detail:`Turning a run into code reuses an existing test only when most of the run's steps are found in it, so an unrelated test is no longer picked from one matching locator. A captcha's answer is worked out in the test, never copied from the run.`,to:[`chats`]},{kind:`fixed`,title:`A sign-in never types a secret's name`,detail:`When a login's values are missing, or the sign-in page is on a site the login does not list, the browser stops and says why instead of typing the placeholder into the page.`},{kind:`fixed`,title:`Mobile runs on TestMu and longer mobile flows`,detail:`Native app sessions on TestMu (LambdaTest) and other device clouds no longer fail because a browser name was sent with the app. A mobile explore run that is still making progress carries on past its step limit, as browser runs do, so a full sign-in flow finishes.`}]},{version:`2.7.5`,date:`2026-11-06`,summary:`Report a problem with ForgeQE from Settings, drafted from the session that went wrong. Browsers close after every run, and Windows works like macOS and Linux.`,changes:[{kind:`new`,title:`Report a problem`,detail:`Settings › Report a problem picks the recent session that went wrong and shows what ForgeQE found in its log: what was asked, ForgeQE's own errors and its failing checks. Draft the bug fills in the title, steps, expected and actual result, and asks only what the log can't show. You check the attachments (the log with secrets removed, ForgeQE's checks, screenshots) before anything is sent, and you don't need an Azure DevOps account. Copy as text works anywhere.`,to:[`settings`]},{kind:`fixed`,title:`No terminal windows during an update on Windows`,detail:`forgeqe update on Windows no longer opens extra terminal windows that had to be closed before the update could finish. It runs in one minimised window.`},{kind:`fixed`,title:`Browsers close after every run`,detail:`A finished, stopped or failed run closes the browser it opened, and the recorder's and sign-in browsers do too. On Windows, stopping a run, test or job now ends everything it started, not only its first process. A browser ForgeQE only connected to is never closed.`},{kind:`fixed`,title:`Windows works like macOS and Linux`,detail:`Links open safely on Windows, including links with & in them. Tools such as npx, az and gh start reliably, copying keeps non-English text, and the guides show PowerShell lines beside the macOS and Linux ones. The Requirement Agent installs and starts on Windows without reinstalling its packages every time.`},{kind:`fixed`,title:`Setup repairs a broken engine`,detail:`If an interrupted setup left the browser engine's environment broken, forgeqe setup rebuilds it instead of failing with "externally managed". The engine also uses a Python version it is tested on (3.13 on Windows) rather than the newest one installed.`}]},{version:`2.7.4`,date:`2026-11-06`,summary:`Change impact: see the features, journeys and tests a branch or commit range affects, on a map of the whole code in red, amber and green. Also a shorter sidebar with Ctrl+K search.`,changes:[{kind:`new`,title:`Change impact`,detail:`Test › Change impact compares two branches, tags or commits of a product repository and says what the change affects: each feature with its risk and the reasons for it, the journeys and business rules it touches, the tests to run and why, and what no test covers. Read from the product graph; nothing is run.`,to:[`impact`]},{kind:`new`,title:`Impact map`,detail:`The change drawn over the whole repository, file by file in its folders: red what it changed, amber what it affects (files that use it, and the services a front end's change calls), green the tests that reach it. Switch to Whole product to see every repository, or colour the files by how often they change in git. Click a file for the chain back to the change and the features it serves.`,to:[`impact`]},{kind:`improved`,title:`A shorter sidebar and Ctrl+K search`,detail:`Pages that showed the same work share one entry, so the sidebar goes from 28 entries to 19; pages of one entry link to each other beside their titles. Press Ctrl+K (or Search in the sidebar) to go to any page, agent, Settings section or setting by its name or its forgeqe.yaml key.`,to:[`settings`]},{kind:`improved`,title:`Know what stops a chat before you send it`,detail:`Home and the agents' pages say when a chat cannot start (the browser engine or agent runtime not installed, or the model without its key) and link to the Settings section that fixes it.`,to:[`chats`,`agents`]},{kind:`improved`,title:`Clearer pages`,detail:`Home links to runs that failed today, approvals waiting, failed jobs and runs going now. Empty pages offer the one action that fills them. Settings keeps the common sections in view and folds the rest under More settings. The agent groups are Advisers, Builders and Operators, and API tests gather the agent's actions under one Ask the agent menu.`,to:[`agents`,`runs`,`settings`]},{kind:`improved`,title:`Forget one flow or page`,detail:`Memory can forget a single flow or a single page, not only a whole site, and flows with no site can be cleared on their own. Each asks first and is written to the audit log.`,to:[`memory`]}]},{version:`2.7.3`,date:`2026-11-06`,summary:`A Code map of your product's files with seven views and a blast radius, product knowledge read by Graphify, Build and Refresh on the Product page, each agent run's prompt and output in Evidence, and icons in a colour of your choice.`,changes:[{kind:`new`,title:`Code map`,detail:`Product › Engineering › Code map shows every file of your repositories in seven views: Graph, Treemap, Matrix, Tree, Flow, Bundle and Cluster. The graph moves live: drag files, pan, and zoom with the wheel. Pick one repository to see its files grouped by folder. Click a file to see what uses it, what it uses, and every file a change to it would reach.`,to:[`product`,`code`]},{kind:`new`,title:`Product knowledge read by Graphify`,detail:`Building product knowledge now reads the code with Graphify, in about 40 languages: classes, functions, and who calls and imports whom. It also reads a repository's database schema, PDF, Word and Excel documents, and the comments that say why code exists. A service's page shows its modules and the parts most depended on.`,to:[`product`]},{kind:`new`,title:`Build and Refresh on the Product page`,detail:`Start or refresh the product's knowledge from the Product page and follow it on a progress bar, step by step and repository by repository. A running build also shows under Background tasks, with a Stop button.`,to:[`product`]},{kind:`new`,title:`Prompt and output of each agent run`,detail:`An agent run's page in Evidence shows what the agent was told (its system prompt), what it was asked, its final answer and what it said on the way, with each model call's model and tokens. Runs recorded from Langfuse and OpenTelemetry now keep the system prompt, with secrets cut out, and the token counts.`,to:[`evidence-runs`]},{kind:`new`,title:`Evidence demo in your project`,detail:`forgeqe evidence demo --project fills an empty Evidence section with a demo shop's made-up AI agents, so every Evidence page has something to show next to your product. It writes only while the project has no runs or contracts of its own.`,to:[`evidence`]},{kind:`new`,title:`Find missing packages`,detail:`Settings › Set up lists every package ForgeQE installs, with the version needed, the one installed and the command that fixes it. The same report is forgeqe doctor --packages.`,to:[`settings`,`setup`]},{kind:`new`,title:`Icon colour and Lucide icons`,detail:`Settings › Appearance › Icon colour draws the icons in black (white in dark mode), the buttons' colour, or a colour of your own; two-tone icons keep their shape with a pale second tone. Lucide joins the icon sets. Attaching in the chat box is now a plus.`,to:[`settings`,`appearance`]},{kind:`improved`,title:`How it is built, Journeys and Records`,detail:`The capability and record diagrams can be dragged and zoomed, and a large map opens on one capability at a time. A journey reads as a summary and numbered steps. A record shows its fields, with personal data marked, and what writes, reads and shares it.`,to:[`product`,`business`]},{kind:`improved`,title:`Clearer product maps`,detail:`The Landscape and Services maps put front ends, gateways, services, data and test suites in their own bands. A gateway shows its routes, and workers and test suites say what they are.`},{kind:`improved`,title:`Package updates`,detail:`The agent runtime, browser engine, Playwright, Copilot, the data engine's drivers and the desktop packages are updated to their latest versions.`},{kind:`fixed`,title:`Re-run on the Record page`,detail:`A recording made without Google Chrome, or in Docker, now re-runs: ForgeQE tries the run's own browser, then Chrome, Edge and an installed Chromium, instead of failing to start a browser.`,to:[`record`]},{kind:`fixed`,title:`More calls linked between repositories`,detail:`The product graph matches a call to the endpoint it reaches by the route's shape, reads request options written over several lines, and recognises database upserts and .NET message consumers.`}]},{version:`2.7.2`,date:`2026-11-05`,summary:`Convert Tricentis Tosca test cases with the new Tosca agent and page, past chats kept and carried on after forgeqe web restarts, and one flat icon style across the app.`,changes:[{kind:`new`,title:`Convert Tosca test cases`,detail:`The Tosca agent reads a Tosca .tsu export and, once you confirm its plan, writes one page object per Tosca module and one test per web test case, each Tosca step marked in the test so nothing is lost. Tests go under their Tosca folders and are tagged with the execution lists that run them. forgeqe tosca verify runs the converted tests again without a model.`,to:[`tosca`]},{kind:`new`,title:`Tosca page`,detail:`Under Test, after Migration: start a conversion in four steps (export and test cases, framework and language, instructions, review), follow each test's Tosca steps beside the converted code, and run the tests again, all of them or one suite at a time, with each test's output.`,to:[`tosca`]},{kind:`new`,title:`Past chats are kept`,detail:`Chats are saved in the project and are still listed after forgeqe web restarts, so a link to an earlier chat opens it. Send a message to an ended chat and it carries on with its earlier turns.`,to:[`chats`]},{kind:`improved`,title:`One icon style`,detail:`Pages, agents, buttons and menus use Phosphor icons, drawn in the text's colour so they read on any sidebar. Appearance also offers Solar Bold Duotone, or ForgeQE's 3D icons as before.`,to:[`settings`,`appearance`]},{kind:`fixed`,title:`Azure DevOps sign-in in Evidence`,detail:`An Azure DevOps address on dev.azure.com or visualstudio.com is treated as the cloud, so the Azure CLI sign-in is offered. A sign-in question already answered no longer comes back, and an answer cannot be sent twice.`,to:[`settings`,`evidence`]},{kind:`fixed`,title:`API calls in the product graph`,detail:`A call whose method comes from options built by a helper or held in a variable is read with its real method, such as POST, instead of GET.`}]},{version:`2.7.1`,date:`2026-11-05`,summary:`Set up Evidence in five steps, with repositories picked from your GitHub, Azure DevOps, GitLab or Bitbucket account, and forgeqe update now finds an older copy still running.`,changes:[{kind:`new`,title:`Repositories from your account`,detail:`In Settings, Evidence, add a GitHub, Azure DevOps, GitLab or Bitbucket account (Cloud or Data Center), sign in in the browser or with a personal access token, and pick its repositories from a list. Local clones and links can still be added by hand.`,to:[`settings`,`evidence`]},{kind:`new`,title:`Search through an MCP server`,detail:`The search service can be a service at an address, a tool of one of your MCP servers, or a command, with a search to try on the page.`,to:[`settings`,`evidence`]},{kind:`new`,title:`Add documents from the page`,detail:`Add Markdown and text documents in Settings, Evidence, and the product knowledge build reads them beside your folders, links, Confluence spaces and web apps.`,to:[`settings`,`evidence`]},{kind:`improved`,title:`Evidence set up in five steps`,detail:`Settings, Evidence walks through repositories, search, documents, the product and its knowledge, and building the graph, in that order. The search and knowledge folder settings move here from Agents.`,to:[`settings`,`evidence`]},{kind:`fixed`,title:`forgeqe update finds an older running copy`,detail:`When the ForgeQE you are running is older than the installs it finds, forgeqe update names it and the command that fixes it, instead of saying everything is up to date. On Windows, a pip install whose Python comes from the Microsoft Store is found and updated too.`}]},{version:`2.7.0`,date:`2026-11-05`,summary:`TestMu AI's tools for the agent with a browser sign-in, real logos for more systems in Settings, and quicker moves between Settings sections.`,changes:[{kind:`new`,title:`TestMu AI's tools`,detail:`Turn on TestMu AI's MCP server to give ForgeQE's agent HyperExecute, failure triage, SmartUI, accessibility and Test Manager. Sign in once in the browser; no key is needed. forgeqe auth login testmu offers the browser sign-in or the grid's user name and access key.`,to:[`settings`]},{kind:`improved`,title:`Real logos in Settings`,detail:`GitLab, Postman, Sentry, Xray, TestMu AI, Dataverse and Zephyr Scale show their own logos instead of plain icons.`,to:[`settings`]},{kind:`improved`,title:`Quicker moves in Settings`,detail:`Moving between Settings sections changes at once, without the whole page fading out and back in.`,to:[`settings`]}]},{version:`2.6.9`,date:`2026-11-05`,summary:`A fix for setup on 64-bit Windows, a model picker that holds any number of models, a separate Evidence section in Settings, and a more consistent look on every page.`,changes:[{kind:`improved`,title:`Pick any number of models per area`,detail:`In Settings, Routing, each area of work picks its models from a searchable list instead of a row of chips. Each agent shows its icon and what it does, and the order that decides which model a call gets is a numbered list.`,to:[`settings`]},{kind:`improved`,title:`Evidence has its own Settings page`,detail:`The product, its knowledge graph, repositories, documents and links, and the team's knowledge move from Agents to a new Evidence page in Settings. Agents keeps instructions, custom agents, capabilities and agent names.`,to:[`settings`]},{kind:`improved`,title:`Colours from a website`,detail:`Appearance reads more of a website's colours, up to 16 of them. A site that shows a bot check instead of its page is reported as turned away, rather than offering the check page's colours as the site's.`,to:[`settings`,`appearance`]},{kind:`improved`,title:`The same look on every page`,detail:`Every page uses one style for empty states, tabs and headings. Grey labels are easier to read, and long agent names wrap onto a second line instead of being cut off.`},{kind:`fixed`,title:`Setup on 64-bit Windows`,detail:`forgeqe setup no longer fails on 64-bit Windows when a 32-bit Python is installed: it uses a 64-bit Python instead.`}]},{version:`2.6.8`,date:`2026-11-05`,summary:`A tidier Settings, one standard for buttons and fields across the app, a page background colour, and an easier Runs page.`,changes:[{kind:`new`,title:`A page background colour`,detail:`Set a light background colour for the app in Appearance, or read one from your website or design file. Text and lines adjust so they stay readable.`,to:[`settings`,`appearance`]},{kind:`improved`,title:`A tidier Settings`,detail:`Every setting's control sits in the same column, so fields line up on every section. MCP servers are under AI, and Browser and Replays under Testing. Routing shows which model a call gets, and lists each area of work with its agents under it.`,to:[`settings`]},{kind:`improved`,title:`One standard for buttons and fields`,detail:`Buttons, text fields, dropdowns, search boxes, checkboxes and radios look and size the same across the app. Each view has at most one main button, and secondary buttons have an outline so they no longer look switched off.`},{kind:`improved`,title:`An easier Runs page`,detail:`Runs share the app's search, filters and pages. A run's next steps are clear buttons, and the open tab is kept in the address, so a link or a reload opens it again.`,to:[`runs`]},{kind:`improved`,title:`Easier to read`,detail:`Explanations use darker text, Home's animation settles after a few seconds, the side panel's Environment section has more room, and on a phone the workspace button no longer covers the page heading.`},{kind:`improved`,title:`Reading your website's look`,detail:`When a website turns ForgeQE's reader away, Appearance says so once and what to do instead.`}]},{version:`2.6.7`,date:`2026-11-04`,summary:`A lighter look without boxes, run pages that read cleanly, token counts for every agent in a chat, and a clearer view of how a test was written and reviewed.`,changes:[{kind:`improved`,title:`A lighter look across the app`,detail:`Pages, chat replies and run pages drop their boxes: each section is its heading and content, set apart by space and a thin line. A question still waiting for you keeps its highlight, so it stands out.`},{kind:`improved`,title:`Run pages that read cleanly`,detail:`A run's summary shows its final message once, each test as one result with its full command to copy, and the files the run wrote. The activity is a timeline with each event's time, and Details counts the tokens of every agent that worked on the run.`,to:[`runs`]},{kind:`improved`,title:`Tokens for every agent in a chat`,detail:`Context and tokens counts every agent that works in a chat, such as the Coding agent and the Engineering review agent, as each model call comes back. Today and Last 30 days count all of the project's chats, runs and agents.`},{kind:`improved`,title:`How a test was written and reviewed`,detail:`A chat shows ForgeQE handing a test to the Coding agent, with its work, test runs and reviews below. The reviewer, now called the Engineering review agent, shows its verdict and each issue next to the attempt it judged. Step icons show how a step went by their colour.`},{kind:`improved`,title:`Custom agent runs linked to their session`,detail:`A custom agent's recent runs link to the session they ran in on the Runs page.`,to:[`runs`]},{kind:`fixed`,title:`Times in the activity log`,detail:`Each line shows the time it happened, instead of the same +0:00 for every line.`},{kind:`fixed`,title:`Tooltips in chat`,detail:`Copy buttons, a test's full name and the model picker's reason use the app's own tooltip.`}]},{version:`2.6.6`,date:`2026-11-04`,summary:`Change a chat's model without starting over, and reports with your project's logo and a cleaner look.`,changes:[{kind:`new`,title:`Change the model mid-chat`,detail:`Pick another model from the chat's composer between messages, and the chat carries on with its conversation, tools and files. In the terminal, /profile does the same.`,to:[`settings`,`models`]},{kind:`improved`,title:`Your logo in reports`,detail:`Reports show the logo and name set in Settings, Appearance, in their sidebar and as the tab's icon, in place of ForgeQE's.`,to:[`settings`,`appearance`]},{kind:`improved`,title:`A cleaner report`,detail:`Reports drop the cards inside cards: each block is its heading and content on a white page, as in the web app's chat and Settings. Tooltips are styled, show on keyboard focus, and never grow taller than the window.`}]},{version:`2.6.4`,date:`2026-11-04`,summary:`Test cases reused instead of duplicated in every test case system, a product knowledge graph, an Evidence section for checking agents, and new integrations.`,changes:[{kind:`new`,title:`Reuse existing test cases`,detail:`Before saving, ForgeQE compares new cases with the story's linked cases and its scope, and asks before it links to or extends an existing one instead of adding a copy. Optionally it also compares with the other stories under the same feature or epic. Cases older than their story's last change are flagged.`},{kind:`new`,title:`Test cases in Xray, TestRail and Zephyr Scale`,detail:`Save, update and link test cases there as in Azure DevOps, and record which cases are automated. New Azure DevOps cases join the scope's suite with priority, tags, state, shared steps and parameters. Cases can also be saved with no story, under an area path or a project.`},{kind:`new`,title:`Product knowledge`,detail:`ForgeQE reads your repositories, documents and deployment files into one graph of the product's systems and how they talk, with the evidence for each link. The agents use it, the Product page shows it in the business's words, and the Engineering view draws the landscape. It can be built once in a pipeline and shared with the team.`,to:[`product`]},{kind:`new`,title:`Evidence`,detail:`A section for checking AI agents, ForgeQE's own or any other: their runs from OpenTelemetry, Langfuse or LangSmith, contracts and behaviour checks, a scenario suite and a release gate, and monitoring for drift. forgeqe evidence demo fills every page with a demo project.`,to:[`evidence`]},{kind:`new`,title:`More integrations`,detail:`GitLab, BrowserStack, Postman, Azure, Dataverse and Sentry, added from the catalog in the MCP view. MCP servers that need a browser sign-in get one, and every system's sign-in is in Settings.`,to:[`settings`]},{kind:`improved`,title:`Mobile and desktop settings`,detail:`Separate settings for each, devices described by what they are, cloud devices for BrowserStack and TestMu edited in Settings, and mobile tests run on several devices at once.`,to:[`settings`]},{kind:`improved`,title:`A model and a name for each agent`,detail:`Choose a default model for each agent, and call each agent what your team calls it.`,to:[`settings`]},{kind:`improved`,title:`Release readiness for Jira`,detail:`Release readiness works on Jira scopes, as it does on Azure DevOps.`},{kind:`improved`,title:`Carry on, or stop`,detail:`Healing, the Regression page, forgeqe suite and a browser run that makes no progress ask before they stop at a limit.`},{kind:`fixed`,title:`Links and proxies`,detail:`Links in chat are fetched only after ForgeQE's own checks, and web fetches work behind a company proxy.`},{kind:`fixed`,title:`Migration`,detail:`The source framework is found from the project's packages and code, not a word in a comment, and a remote grid is named only when the code starts one.`}]},{version:`2.6.3`,date:`2026-11-03`,summary:`A migration agent for old test suites, a DB agent that finds test data for every agent, and the same chat box on every agent's page.`,changes:[{kind:`new`,title:`Migration agent`,detail:`Move a test suite to another framework with forgeqe migrate or the Migration page. Bring the tests from git, a folder, an upload or a paste; ForgeQE migrates them, runs them, fixes what fails, and shows the old and new side by side in Compare.`,to:[`migration`]},{kind:`new`,title:`DB agent`,detail:`Every agent asks the DB agent for test data before it runs. Its page under Agents shows your databases, their schema as a diagram, and an Ask box.`,to:[`agents`]},{kind:`new`,title:`Test data page`,detail:`Every request for test data is logged, with what was asked and what came back.`,to:[`test-data`]},{kind:`improved`,title:`Data page`,detail:`Redesigned around the DB agent, with paged lists and one clear main action.`,to:[`data`]},{kind:`improved`,title:`The same chat box everywhere`,detail:`Every Agent tab has attachments, @ files, Refine, the environment, tools and the model. Nothing is sent until ForgeQE is set up, and Home's Set up card says what is missing.`},{kind:`improved`,title:`A page for every agent`,detail:`Each agent's page has its own tools, requests and runs below its chat.`,to:[`agents`]},{kind:`improved`,title:`Headline numbers`,detail:`Shown as one stat panel with a trend for each number.`}]},{version:`2.6.2`,date:`2026-11-02`,summary:`Custom agents, a page for every agent, Accessibility, Performance and Visual pages, and pictures in chat.`,changes:[{kind:`new`,title:`Custom agents`,detail:`Build your own agent with the agent builder. It runs only an approved version, held to its limits on every tool call, and can run on a schedule with a person approving what it may not do alone.`,to:[`agents`]},{kind:`new`,title:`Accessibility, Performance and Visual pages`,detail:`Each has its own page and agent. Accessibility tests a goal as personas (blind, keyboard-only, low vision…) and keeps every session in a Results tab.`,to:[`accessibility`]},{kind:`new`,title:`Agents page`,detail:`Every agent in four columns by category, with what each can do and whether it is ready. Mark favourites to keep them close.`,to:[`agents`]},{kind:`new`,title:`Pictures and files in chat`,detail:`Attach files with @ or drop them on the composer. Images of any format are shrunk and stripped of their metadata before the model sees them; /paste works in the terminal.`},{kind:`new`,title:`GitHub Copilot models`,detail:`Pick a Copilot model in Settings, count and budget premium requests, and sign in with GitHub Enterprise Cloud.`,to:[`settings`,`models`]},{kind:`new`,title:`Jobs agent`,detail:`Make a job by asking for it in the Agent tab; jobs show as a table.`,to:[`jobs`]},{kind:`improved`,title:`At a limit, carry on`,detail:`When a run reaches its budget, ForgeQE asks whether to carry on instead of ending the work.`},{kind:`improved`,title:`Tables everywhere`,detail:`Memory, Knowledge, Skills, Guardrails and Prompts are tables that look and page the same, each with a search box.`},{kind:`improved`,title:`What's ready`,detail:`One box per area, one line per feature, and the details in a side sheet.`,to:[`features`]},{kind:`improved`,title:`Dark and light in the sidebar`,detail:`Switch the theme from the sidebar; the sidebar itself is dark.`},{kind:`fixed`,title:`Copilot errors`,detail:`Rate limits, cut-off replies and Windows' reason for not loading Copilot's runtime are now reported clearly.`}]},{version:`2.4.0`,date:`2026-10-28`,summary:`Each agent gets only the tools it needs.`,changes:[{kind:`new`,title:`Scoped MCP tools`,detail:`An agent's tool server offers only the tools its work needs, so it chooses among fewer and calls fewer by mistake.`}]}]},io=[`new`,`improved`,`fixed`],J=/^[a-z0-9][a-z0-9-]*$/,ao=/^[0-9]+\.[0-9]+\.[0-9]+([a-zA-Z0-9.-]*)?$/,oo={summary:240,title:80,detail:600},so=e=>typeof e==`object`&&!!e&&!Array.isArray(e);function co(e,t){if(typeof e!=`string`)return;let n=e.trim();if(!(!n||n.length>t||/[\u0000-\u001f\u007f\u2028\u2029]/.test(n)))return n}function lo(e){if(typeof e!=`string`||!/^\d{4}-\d{2}-\d{2}$/.test(e))return;let t=new Date(`${e}T00:00:00Z`);return!isNaN(t.getTime())&&t.toISOString().slice(0,10)===e?e:void 0}function uo(e){let t=/^([0-9]+)\.([0-9]+)\.([0-9]+)(.*)$/.exec(e);return t?[Number(t[1]),Number(t[2]),Number(t[3]),+!t[4],t[4]??``]:[0,0,0,0,e]}function fo(e,t){let n=uo(e),r=uo(t);for(let e=0;e<4;e++)if(n[e]!==r[e])return n[e]-r[e];return n[4]<r[4]?-1:+(n[4]>r[4])}function po(e,t,n){if(!so(e))return void n.push(`${t}: not an object`);let r=Object.keys(e).filter(e=>![`kind`,`title`,`detail`,`to`].includes(e));if(r.length)return void n.push(`${t}: unknown key ${r.join(`, `)}`);let i=io.find(t=>t===e.kind);if(!i)return void n.push(`${t}: kind must be one of ${io.join(`, `)}`);let a=co(e.title,oo.title);if(!a)return void n.push(`${t}: title must be one line of at most ${oo.title} characters`);let o=co(e.detail,oo.detail);return o?e.to===void 0?{kind:i,title:a,detail:o}:!Array.isArray(e.to)||!e.to.length||e.to.length>4||!e.to.every(e=>typeof e==`string`&&J.test(e))?void n.push(`${t}: to must be 1 to 4 route parts of the web app, like ["settings", "models"]`):{kind:i,title:a,detail:o,to:[...e.to]}:void n.push(`${t}: detail must be one line of at most ${oo.detail} characters`)}function mo(e,t,n){if(!so(e))return void n.push(`${t}: not an object`);let r=Object.keys(e).filter(e=>![`version`,`date`,`summary`,`changes`].includes(e));if(r.length)return void n.push(`${t}: unknown key ${r.join(`, `)}`);let i=typeof e.version==`string`&&ao.test(e.version)?e.version:void 0;if(!i)return void n.push(`${t}: version must be like 2.6.2`);let a=`${t} (${i})`,o=lo(e.date);if(!o)return void n.push(`${a}: date must be a real day, like 2026-11-02`);let s=co(e.summary,oo.summary);if(!s)return void n.push(`${a}: summary must be one line of at most ${oo.summary} characters`);if(!Array.isArray(e.changes)||!e.changes.length)return void n.push(`${a}: changes must list at least one change`);let c=n.length,l=e.changes.map((e,t)=>po(e,`${a} change ${t+1}`,n)).filter(e=>!!e);if(!(n.length>c))return{version:i,date:o,summary:s,changes:l}}function ho(e){let t=[];if(!so(e)||!Array.isArray(e.releases))return{releases:[],problems:[`the file must be an object with a "releases" list`]};let n=Object.keys(e).filter(e=>e!==`releases`&&e!==`$comment`);n.length&&t.push(`unknown key ${n.join(`, `)}`);let r=[];return e.releases.forEach((e,n)=>{let i=mo(e,`release ${n+1}`,t);if(!i)return;let a=r[r.length-1];if(r.some(e=>e.version===i.version))return void t.push(`release ${n+1}: version ${i.version} is listed twice`);if(a&&(fo(i.version,a.version)>=0||i.date>a.date))return void t.push(`release ${n+1}: ${i.version} must come after ${a.version} (newest first, by version and date)`);r.push(i)}),{releases:r,problems:t}}var go=ho(ro).releases,_o=go[0],vo=e=>e.to?.length&&e.to.every(e=>J.test(e))?zt(...e.to):void 0,yo=e=>new Date(`${e}T00:00:00`),bo=e=>yo(e).toLocaleDateString(void 0,{day:`numeric`,month:`short`,year:`numeric`}),xo=e=>yo(e).toLocaleDateString(void 0,{month:`long`,year:`numeric`});function So(e=go){let t=[];for(let n of e){let e=xo(n.date),r=t[t.length-1];r?.month===e?r.releases.push(n):t.push({month:e,releases:[n]})}return t}var Co=`forgeqe-whats-new-seen`,wo=()=>{try{return localStorage.getItem(Co)===_o?.version}catch{return!1}},To=()=>{try{_o&&localStorage.setItem(Co,_o.version)}catch{}};function Eo(e,t){setTimeout(()=>{let n=document.getElementById(e);if(!n)return;n.focus();let r=oi(t);r&&n.setSelectionRange(r[0],r[1])},0)}function Do(){let[e,t]=(0,G.useState)(null),[n,r]=(0,G.useState)(null),[i,a]=(0,G.useState)(null);return(0,G.useEffect)(()=>{Tt.list().then(e=>t(e.runs),()=>t([])),Jt.list().then(e=>r(e.approvals),()=>r([])),_t.list().then(e=>a(e.jobs),()=>a([]))},[]),!e||!n||!i?null:(0,K.jsx)(ri,{items:ci(e,n,i),title:`Needs a look today`,id:`needs-look-today`})}function Oo(){let[e,t]=(0,G.useState)(()=>!!_o&&!wo());if(!e||!_o)return null;let n=_o.changes.filter(e=>e.kind===`new`).slice(0,3);return(0,K.jsxs)(`section`,{"aria-labelledby":`whats-new-title`,className:`flex w-full items-start gap-x-4 border-y border-line py-4`,children:[(0,K.jsx)(Vt,{icon:ge,size:20,className:`mt-0.5 flex-none text-accent-fg`}),(0,K.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-wrap items-center gap-x-4 gap-y-3`,children:[(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_280px] flex-col gap-0.5`,children:[(0,K.jsxs)(`span`,{id:`whats-new-title`,className:`font-medium`,children:[`What's new in ForgeQE `,_o.version]}),(0,K.jsx)(`span`,{className:`text-sm text-muted [overflow-wrap:anywhere]`,children:n.length?n.map(e=>e.title).join(` · `):_o.summary})]}),(0,K.jsxs)(`a`,{className:rn({variant:`outline`}),href:zt(`settings`,`whats-new`),"data-tip":`See all changes`,children:[(0,K.jsx)(Ue,{"aria-hidden":`true`}),`Changes`]})]}),(0,K.jsx)(R,{variant:`icon`,size:`icon`,"aria-label":`Close until the next release`,"data-tip":`Close until the next release`,onClick:()=>{To(),t(!1)},className:`-my-1.5 -mr-2 size-8 flex-none`,children:(0,K.jsx)(i,{size:16,"aria-hidden":`true`})})]})}function ko({agent:e,tabs:t}){return(0,K.jsxs)(`header`,{style:t?{viewTransitionName:`agent-tabs`}:void 0,className:`flex flex-wrap items-center gap-1 px-5 py-3.5 short:py-2`,children:[(0,K.jsx)(rr,{}),e&&(0,K.jsxs)(`a`,{href:zt(`agents`),className:`inline-flex min-h-9 items-center gap-1.5 text-sm`,children:[(0,K.jsx)(xe,{size:16,"aria-hidden":`true`}),`All agents`]}),t&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`span`,{className:`flex-1`}),t]})]})}function Ao({agent:e,below:t,wide:n,tabs:r}={}){let i=e&&_n(e.agent),a=e?e.starters:ai,[o,s]=(0,G.useState)(``),[c,l]=(0,G.useState)(``);(0,G.useEffect)(()=>{if(!e)try{let e=sessionStorage.getItem(no);sessionStorage.removeItem(no),e&&e.trim()&&(s(e.slice(0,2e4)),setTimeout(()=>ra(`msg`),0))}catch{}},[]);let[u,d]=(0,G.useState)(!1),f=Ja(),p=ti(),{setup:m}=f,h=Qi(o,e=>{s(e),l(``)},`msg`,{code:f.tools.code}),g=ea(`home`,e=>{s(e),ra(`msg`)}),_=async(t=o)=>{let n=i&&e?.agent!==`forgeqe`&&t.trim()?`${i.name}: ${t.trim()}`:t.trim();if(!(u||!n.trim()&&!h.hasFiles)){d(!0),l(``);try{let e=await h.wrap(n);if(!e.trim()){d(!1);return}let{id:t}=await Qt.start(e,f.choice);h.reset({keep:!0}),location.hash=zt(`chats`,t)}catch(e){l(e.message),d(!1)}}};return(0,K.jsxs)(`div`,{className:`flex min-h-(--screen) flex-col`,children:[(0,K.jsx)(ko,{...e?{agent:e}:{},...r?{tabs:r}:{}}),(0,K.jsxs)(`main`,{className:`flex flex-auto flex-col items-center justify-center px-5 pt-6 pb-[120px] short:pt-0 short:pb-8`,children:[(0,K.jsxs)(`div`,{className:`flex w-full max-w-[780px] flex-col items-center gap-9 short:gap-6`,children:[(0,K.jsxs)(`div`,{className:`flex flex-col items-center gap-3.5 text-center short:gap-2.5`,children:[e?(0,K.jsx)(Zn,{agent:e.agent,px:p?64:96,decorative:!0,working:u,className:`mb-1`}):(0,K.jsx)(Kt,{state:`idle`,px:p?72:112,label:`ForgeQE is ready`,className:`mb-1`}),(0,K.jsx)(`h1`,{className:`m-0 text-[34px] leading-tight font-semibold short:text-[28px] tracking-[-0.015em] text-ink`,children:i?i.name:`What are we assuring today?`}),e?(0,K.jsx)(`p`,{className:`m-0 max-w-[52ch] text-[15px] short:max-w-[72ch] leading-relaxed text-ink-2`,children:e.about}):(0,K.jsx)(`p`,{className:`m-0 max-w-[46ch] text-[15px] short:max-w-[72ch] leading-relaxed text-ink-2`,children:`ForgeQE assures every release: it uses your app as your customers do, shows what broke and why, and keeps the proof.`})]}),m&&!m.ready&&(0,K.jsx)($a,{project:m.project}),m?.ready&&(0,K.jsx)(eo,{c:f}),(0,K.jsx)($i,{id:`msg`,label:i?`Message ${Fn(i.name)}`:`Message ForgeQE`,value:o,onChange:e=>{s(e),l(``)},onSend:()=>void _(),disabled:u||!!m&&!m.ready||g.running,canSend:!!o.trim()||h.hasFiles,onEdit:h.onEdit,onKey:h.onKeyDown,onFiles:h.onFiles,dropping:h.dropping,drop:h.drop,mentions:h.mentions,combo:h.combo,placeholder:i?`Ask ${Fn(i.name)} to…`:`Ask ForgeQE to test something…`,top:(0,K.jsxs)(K.Fragment,{children:[h.chips,g.state&&(0,K.jsx)(na,{state:g.state,onStop:()=>void g.stop(),onUndo:g.undo,onClose:g.close})]}),left:(0,K.jsxs)(K.Fragment,{children:[h.paperclip,(0,K.jsx)(Ya,{c:f}),(0,K.jsx)(ta,{running:g.running,disabled:!o.trim()||u||!!m&&!m.ready,onClick:()=>void g.start(o)})]}),right:(0,K.jsx)(Xa,{c:f})}),(0,K.jsx)(`p`,{role:`status`,"aria-live":`polite`,className:L(`-mt-5 m-0 text-center short:-mt-3 text-sm text-ink-2`,!(c||h.error)&&`sr-only`),children:(0,K.jsx)(`span`,{className:h.error&&!c?`text-fail`:``,children:c||h.error||``})}),(0,K.jsx)(`div`,{className:`flex flex-wrap justify-center gap-3`,children:a.map(({label:e,Icon:t,text:n})=>(0,K.jsxs)(R,{onClick:()=>{s(n),l(``),Eo(`msg`,n)},children:[t&&(0,K.jsx)(t,{"aria-hidden":`true`}),e]},e))}),!e&&m?.ready&&(0,K.jsx)(Do,{}),!e&&(0,K.jsx)(Oo,{}),t]}),n&&(0,K.jsx)(`div`,{className:`mt-10 flex w-full max-w-[1180px] flex-col`,children:n})]})]})}function jo({groups:e,edit:t,continued:n}){return(0,K.jsx)(K.Fragment,{children:e.map((e,r)=>(0,K.jsxs)(`div`,{children:[(0,K.jsx)(W,{help:e.help,first:r===0&&!n,children:e.title}),(0,K.jsx)(xn,{defs:e.fields,edit:t,base:e.base})]},e.title))})}function Mo(e,t,n,r){return t.map(t=>{let r=e[t]??n.find(e=>e.key===t)?.default;return typeof r==`string`?r:``}).filter(e=>e&&!r(e))}var No=[{key:`url`,label:`Sign-in page`,type:`url`,placeholder:`https://staging.shop.example/login`},{key:`domains`,label:`Or sites`,help:`Comma separated; * matches a subdomain.`,type:`list`,placeholder:`https://staging.shop.example, https://*.shop.example`},{key:`app`,label:`Or desktop app`,help:`A desktop app of desktop.apps this login signs in to, instead of a site.`,type:`text`,placeholder:`billing`},{key:`username_env`,label:`User name variable`,type:`var`,placeholder:`SHOP_USER`},{key:`password_env`,label:`Password variable`,type:`var`,placeholder:`SHOP_PASSWORD`},{key:`totp_env`,label:`Authenticator secret variable`,help:`Optional: a base32 secret for two-factor codes.`,type:`var`,placeholder:`SHOP_TOTP_SECRET`},{key:`save_session`,label:`Keep the session`,help:`The next run starts signed in (.forgeqe/sessions). Off signs in every run.`,type:`switch`,default:!0},{key:`code`,label:`Codes sent by`,help:`A one-time code the site sends another way than an authenticator app: ForgeQE reads it where it arrives and types it.`,type:`select`,options:[{value:`email`,label:`Email (a test mailbox, IMAP)`},{value:`sms`,label:`Text message (Twilio)`},{value:`http`,label:`The test environment's address`}],emptyLabel:`None`},{key:`code_host`,label:`Mailbox server`,help:`The IMAP server, on port 993.`,type:`text`,placeholder:`imap.mail.example`,when:e=>e.code===`email`},{key:`code_user_env`,label:`Mailbox user or Twilio SID variable`,help:`Email: the mailbox user. Text message: the Twilio account SID.`,type:`var`,placeholder:`QA_MAIL_USER`,when:e=>e.code===`email`||e.code===`sms`},{key:`code_secret_env`,label:`Mailbox password or token variable`,help:`Email: the mailbox password. Text message: the Twilio auth token. Address: its token (optional).`,type:`var`,placeholder:`QA_MAIL_PASSWORD`,when:e=>!!e.code},{key:`code_to`,label:`Sent to`,help:`Email: the address the code goes to (optional). Text message: the number, +15550100.`,type:`text`,placeholder:`+15550100 or qa1@mail.example`,when:e=>e.code===`email`||e.code===`sms`},{key:`code_sender`,label:`Sent from`,help:`Optional: only messages from this address or number.`,type:`text`,placeholder:`no-reply@shop.example`,when:e=>e.code===`email`||e.code===`sms`},{key:`code_folder`,label:`Mailbox folder`,type:`text`,default:`INBOX`,when:e=>e.code===`email`},{key:`code_url`,label:`Address with the latest code`,help:`https (http only on this computer); answers with the code as text or JSON.`,type:`url`,placeholder:`https://qa-api.shop.example/otp/latest?user=qa1`,when:e=>e.code===`http`},{key:`code_header`,label:`Token header`,help:`Optional: the header the token goes in (Authorization: Bearer otherwise).`,type:`text`,placeholder:`X-Api-Key`,when:e=>e.code===`http`},{key:`code_pattern`,label:`Code pattern`,help:`Optional: a regular expression whose group is the code (4 to 8 digits otherwise).`,type:`text`,placeholder:`Your code is ([0-9]{6})`,when:e=>!!e.code},{key:`code_wait`,label:`Wait for it (seconds)`,type:`number`,default:90,when:e=>!!e.code},{key:`passkey_env`,label:`Security key variable`,help:`Holds a security key or passkey registered once; runs present it as a virtual key.`,type:`var`,placeholder:`SHOP_PASSKEY`},{key:`push_wait`,label:`Wait for a push approval (seconds)`,help:`A push to a phone needs a person: the run waits this long and tells the notification channels that ask for sign-in approvals.`,type:`number`,placeholder:`120`}],Po=/^[A-Za-z0-9][A-Za-z0-9_.-]{0,62}$/;function Fo(e,t,n){return e?Po.test(e)?e!==t&&n.includes(e)?`There is already a sign-in named ${e}.`:``:`Letters, digits, . _ and -.`:`Needs a name.`}function Io(e){let t=e.toUpperCase().replace(/[^A-Z0-9]/g,`_`);return{username_env:`${t}_USER`,password_env:`${t}_PASSWORD`}}function Lo({edit:e}){let[t,n]=(0,G.useState)(null),i=pr(),a=H(e.value.logins),o=Object.keys(a);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center justify-between gap-3`,children:[(0,K.jsx)(`span`,{className:`text-sm text-muted`,children:`One for each app the agent signs in to.`}),(0,K.jsxs)(R,{size:`sm`,"data-tip":`Add a sign-in`,onClick:()=>{let e=zn(a,`shop`);n({mode:`add`,from:``,name:e,login:Io(e)})},children:[(0,K.jsx)(r,{"aria-hidden":`true`}),`Add`]})]}),o.length===0&&(0,K.jsx)(`p`,{className:`m-0 border-t border-line-soft py-5 text-sm text-muted`,children:`None yet.`}),Object.entries(a).map(([t,r])=>{let a=H(r),o=Mo(a,[`username_env`,`password_env`],No,e=>on(i,e)),s=a.username_env||a.password_env;return(0,K.jsx)(jn,{expandable:!1,open:!1,onToggle:()=>{},lead:(0,K.jsx)(Tn,{icon:le}),title:t,meta:String(a.url||(Array.isArray(a.domains)?a.domains.join(`, `):``)||`No site yet`),state:s?o.length?(0,K.jsx)(`span`,{className:`text-sm text-warn`,"data-tip":o.join(`, `),children:o.length===1?`Needs ${o[0]}`:`Needs ${o.length} variables`}):(0,K.jsx)(`span`,{className:`text-sm text-pass`,children:`Ready`}):(0,K.jsx)(`span`,{className:`text-sm text-muted`,children:`Not set up`}),actions:(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(R,{variant:`icon`,size:`icon-sm`,"aria-label":`Edit ${t}`,"data-tip":`Edit ${t}`,onClick:()=>n({mode:`edit`,from:t,name:t,login:{...a}}),children:(0,K.jsx)(I,{"aria-hidden":`true`})}),(0,K.jsx)(R,{variant:`icon`,size:`icon-sm`,"aria-label":`Remove ${t}`,"data-tip":`Remove ${t}`,onClick:()=>e.set(U(e.value,[`logins`,t],void 0)),children:(0,K.jsx)(Je,{"aria-hidden":`true`})})]}),children:null},t)}),(0,K.jsx)(Ro,{panel:t,setPanel:n,taken:o,vars:e.vars,onApply:t=>{t.mode===`add`?e.set(U(e.value,[`logins`,t.name],t.login)):e.set(U(e.value,[`logins`],{...dn(a,t.from,t.name),[t.name]:t.login}))}})]})}function Ro({panel:e,setPanel:t,taken:n,vars:a,onApply:o}){let c={value:e?H(e.login):{},set:n=>e&&t({...e,login:n}),vars:a},l=e?Fo(e.name,e.from,n):``,u=()=>t(null);return(0,K.jsx)(cn,{open:!!e,onClose:u,title:e?.mode===`add`?`Add a sign-in`:`Edit ${e?.from}`,description:(0,K.jsxs)(K.Fragment,{children:[`The page and variables for one app login. Changes apply when you press the button below; a secret's value goes to your credential store as you type it.`,e?.name&&Po.test(e.name)?(0,K.jsxs)(K.Fragment,{children:[` `,`Sign in by hand with `,(0,K.jsxs)(`code`,{className:`font-mono text-[13px]`,children:[`forgeqe login `,e.name]}),`.`]}):null]}),footer:(0,K.jsxs)(K.Fragment,{children:[l&&(0,K.jsx)(`span`,{className:`mr-auto self-center text-sm text-muted`,children:`Needs a valid name`}),(0,K.jsxs)(R,{onClick:u,children:[(0,K.jsx)(i,{"aria-hidden":`true`}),`Cancel`]}),(0,K.jsxs)(R,{variant:`primary`,disabled:!!l,onClick:()=>{o(e),u()},children:[e?.mode===`add`?(0,K.jsx)(r,{"aria-hidden":`true`}):(0,K.jsx)(s,{"aria-hidden":`true`}),e?.mode===`add`?`Add`:`Done`]})]}),children:e&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(V,{label:`Name`,help:l?(0,K.jsx)(`span`,{className:`text-fail`,children:l}):`How environments and forgeqe login name it.`,htmlFor:`login-name`,className:`mt-4`,stacked:!0,children:(0,K.jsx)(z,{id:`login-name`,value:e.name,spellCheck:!1,placeholder:`shop-qa`,"aria-invalid":!!l,onChange:n=>t({...e,name:n.target.value.trim()}),className:`font-mono`})}),(0,K.jsx)(xn,{defs:No,edit:c,base:[],stacked:!0})]})})}function zo({rules:e,others:t,onChange:n}){let[i,a]=(0,G.useState)(``),[o,s]=(0,G.useState)(``),c=i.trim().length>0;return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`form`,{onSubmit:r=>{r.preventDefault();let o=i.replace(/^\s*[-*+]\s+/,``).trim();if(o){if(o.length>300)return s(`A rule is at most 300 characters: make it shorter.`);if([...e,...t.map(e=>e.text)].some(e=>e.toLowerCase()===o.toLowerCase()))return s(`That rule is already in force.`);s(``),n([...e,o]),a(``)}},className:`mb-4 flex items-center gap-2 rounded-[10px] border border-line py-1.5 pr-1.5 pl-5 has-[input:focus-visible]:outline-2 has-[input:focus-visible]:outline-offset-2 has-[input:focus-visible]:outline-accent`,children:[(0,K.jsx)(`label`,{htmlFor:`rule`,className:`sr-only`,children:`New rule`}),(0,K.jsx)(`input`,{id:`rule`,value:i,maxLength:300,onChange:e=>{a(e.target.value),s(``)},placeholder:`Add a rule every agent must follow`,className:`min-h-10 min-w-0 flex-auto border-0 bg-transparent text-[15px] outline-none focus-visible:outline-none`}),(0,K.jsxs)(`button`,{type:`submit`,disabled:!c,"data-tip":`Add the rule`,className:L(`inline-flex min-h-10 cursor-pointer items-center gap-2 rounded-[7px] border-0 px-4 text-sm font-medium disabled:cursor-not-allowed [&>svg]:size-4`,c?`bg-accent text-accent-ink hover:bg-accent-hover`:`bg-surface-strong text-muted`),children:[(0,K.jsx)(r,{"aria-hidden":`true`}),`Add`]})]}),o&&(0,K.jsx)(`p`,{role:`alert`,className:`mt-0 mb-4 text-sm text-fail`,children:o}),e.length===0&&t.length===0?(0,K.jsx)(`p`,{className:`m-0 py-5 text-sm text-muted`,children:`No rules yet. Add the first one above.`}):(0,K.jsx)(`div`,{className:`@container`,children:(0,K.jsx)(ir,{label:`Rules`,placeholder:`Find a rule`,empty:`No rule matches.`,head:(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`th`,{className:Ln,children:`Rule`}),(0,K.jsx)(`th`,{className:L(Ln,`hidden @xl:table-cell`),children:`Set in`}),(0,K.jsx)(`th`,{className:Ln,children:(0,K.jsx)(`span`,{className:`sr-only`,children:`Remove`})})]}),children:[...e.map((t,r)=>(0,K.jsxs)(`tr`,{className:dr,children:[(0,K.jsx)(`td`,{className:L(lr,`leading-normal`),children:t}),(0,K.jsx)(`td`,{className:L(lr,`hidden w-[1%] whitespace-nowrap @xl:table-cell`),children:(0,K.jsx)(`span`,{className:`rounded-full bg-pass-soft px-2 py-px text-[11.5px] font-medium text-pass`,children:`This project`})}),(0,K.jsx)(`td`,{className:L(lr,`w-[1%] py-1.5 text-right`),children:(0,K.jsx)(R,{variant:`icon`,size:`icon-sm`,"aria-label":`Remove rule: ${t}`,"data-tip":`Remove rule: ${t}`,onClick:()=>n(e.filter((e,t)=>t!==r)),children:(0,K.jsx)(Je,{"aria-hidden":`true`})})})]},`own-${r}`)),...t.map(e=>(0,K.jsxs)(`tr`,{className:dr,children:[(0,K.jsx)(`td`,{className:L(lr,`leading-normal`),children:e.text}),(0,K.jsxs)(`td`,{className:L(lr,`hidden w-[1%] whitespace-nowrap @xl:table-cell`),children:[(0,K.jsx)(`span`,{className:`font-mono text-[12px] text-muted`,children:e.source}),e.agents?.length?(0,K.jsxs)(`span`,{className:`block text-[12px] text-muted`,children:[`For `,e.agents.length>2?`${e.agents.length} agents`:e.agents.map(e=>_n(e).name).join(` and `)]}):null]}),(0,K.jsx)(`td`,{className:L(lr,`w-[1%] text-right text-[12px] whitespace-nowrap text-muted`),children:`Read only`})]},`other-${e.source}-${e.text}`))]})})]})}function Bo(e){let t=e=>e.split(/[\\/]/).pop()||e,n=e.paths.environments;return[{id:`config`,label:t(e.paths.config),file:`config`,path:e.paths.config,text:e.raw.config},{id:`models`,label:t(e.paths.models),file:`models`,path:e.paths.models,text:e.raw.models},...e.raw.environments.map(e=>({id:`env:${e.name}`,label:t(e.path),file:`environments`,env:n.layout===`dir`?e.name:void 0,path:e.path,text:e.text}))]}var Vo=`m-0 px-4 py-3 font-mono text-[13px] leading-[1.7] whitespace-pre-wrap [overflow-wrap:anywhere] [tab-size:2]`;function Ho({id:e,value:t,lang:n,onChange:r,plain:i=!1}){let a=(0,G.useMemo)(()=>wr(t,n),[t,n]);return(0,K.jsx)(`div`,{className:L(`outline-accent has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2`,i?`rounded-[4px] [&_pre]:px-0 [&_textarea]:px-0`:`max-h-[calc(var(--screen)-300px)] min-h-[360px] overflow-auto rounded-[8px] border border-line bg-field hover:border-line-strong focus-within:border-accent focus-within:bg-bg`),children:(0,K.jsxs)(`div`,{className:`grid`,children:[(0,K.jsxs)(`pre`,{"aria-hidden":`true`,className:L(Vo,`pointer-events-none text-ink [grid-area:1/1]`),children:[a,`
|
|
39
|
+
`)}\n-->\n${n}`.trim():n}function zi(e){let t=q.exec(e),n=t?t[1].split(/\r?\n/).map(e=>e.replace(/^- /,``).trim()).filter(e=>Di.test(e)):[];return{body:e.replace(q,``).replace(/^<!--[\s\S]*?-->\s*/,``).trim(),files:n}}function Bi(e,t){let n=/^\/([a-z0-9-]{0,40})$/i.exec(e.slice(0,t));return n&&/^[a-z0-9-]*(\s|$)/i.test(e.slice(t))?n[1].toLowerCase():null}var Vi=8;function Hi(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=String(r.result||``),n=e.indexOf(`,`);t(n>=0?e.slice(n+1):``)},r.onerror=()=>n(Error(`The file could not be read.`)),r.readAsDataURL(e)})}function Ui({path:e,name:t,note:n}){let r=Fi(e),i=n||r.dir;return(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-col items-start gap-0.5`,children:[(0,K.jsx)(`span`,{className:`max-w-full truncate text-[13px] font-medium leading-tight text-ink`,children:t||r.name}),i?(0,K.jsx)(`span`,{className:`max-w-full truncate text-[12px] leading-tight text-muted`,"data-tip":e||void 0,children:i}):null]})}function Wi({file:e,scope:t,onView:n}){let r=e.pending&&e.pending.type.startsWith(`image/`)&&ki(e.name)?`data:${e.pending.type};base64,${e.pending.data}`:``,[i,a]=(0,G.useState)(``),o=`${t.chat||``}|${t.code===!1?0:1}`;(0,G.useEffect)(()=>{if(a(``),r||!e.path||!ki(e.path))return;let n=!1;return Qt.openFile(e.path,t).then(e=>!n&&e.kind===`image`&&a(e.url)).catch(()=>{}),()=>{n=!0}},[e.path,r,o]);let s=r||i;if(!s)return null;let c=(0,K.jsx)(`img`,{src:s,alt:``,className:`size-8 flex-none rounded-[8px] border border-line-soft bg-surface-muted object-cover`});return n?(0,K.jsx)(`button`,{type:`button`,"aria-label":`Preview ${e.name}`,"data-tip":`Preview`,onClick:()=>n(s),className:`inline-flex flex-none cursor-zoom-in rounded-[8px] border-0 bg-transparent p-0`,children:c}):c}function Gi({text:e,scope:t={}}){let{body:n,files:r}=zi(e),[i,a]=(0,G.useState)(``);return!n&&!r.length?null:(0,K.jsxs)(`div`,{className:`ml-auto flex max-w-[min(85%,640px)] flex-col items-end gap-1.5`,children:[r.length>0&&(0,K.jsx)(`ul`,{"aria-label":`Attached files`,className:`m-0 flex list-none flex-wrap justify-end gap-1.5 p-0`,children:r.map(e=>(0,K.jsx)(`li`,{className:`inline-flex max-w-full`,children:e.endsWith(`/`)?(0,K.jsx)(`span`,{className:`inline-flex max-w-full items-center gap-2 rounded-[8px] bg-surface-strong px-2.5 py-1.5`,children:(0,K.jsx)(Ui,{path:e})}):(0,K.jsxs)(`button`,{type:`button`,"data-tip":`Open ${e}`,onClick:async()=>{a(``),a(await en(e,e=>Qt.openFile(e,t)))},className:`inline-flex max-w-full cursor-pointer items-center gap-2 rounded-[8px] border-0 bg-surface-strong px-2.5 py-1.5 text-left hover:bg-line`,children:[(0,K.jsx)(Wi,{file:{path:e,name:Fi(e).name},scope:t}),(0,K.jsx)(Ui,{path:e})]})},e))}),i&&(0,K.jsx)(`p`,{role:`status`,className:`m-0 text-[12px] text-muted`,children:i}),n&&(0,K.jsx)(`div`,{className:`rounded-[18px] bg-surface-strong px-4 py-2.5 text-[15px] leading-relaxed whitespace-pre-wrap text-ink [overflow-wrap:anywhere]`,children:n})]})}function Ki({file:e,scope:t,onRemove:n,onView:r}){return(0,K.jsxs)(`span`,{className:`inline-flex max-w-[260px] items-center gap-2 rounded-[8px] bg-surface-strong py-1.5 pr-1 pl-2.5`,children:[(0,K.jsx)(Wi,{file:e,scope:e.scope??t,onView:r}),(0,K.jsx)(Ui,{path:e.path,name:e.name,note:e.pending?`Saves when you send`:void 0}),(0,K.jsx)(`button`,{type:`button`,"aria-label":`Remove ${e.name}`,"data-tip":`Remove ${e.name}`,onClick:n,className:`inline-flex size-5 flex-none cursor-pointer items-center justify-center self-start rounded-[6px] border-0 bg-transparent text-muted hover:bg-line hover:text-ink`,children:(0,K.jsx)(i,{size:12,"aria-hidden":`true`})})]})}async function qi(e,t,n){try{let r=await Qt.openFile(e,n),i=await fetch(r.url,{credentials:`same-origin`});if(!i.ok)return null;let a=t.replace(/\.[^.]*$/,``),o=await Ei(await i.blob(),{name:`${a}-picture`}),s=await Qt.attachFile({name:o.name,type:o.type,data:o.data},n);return{id:s.path,path:s.path,name:s.name,kind:`upload`,image:!0,scope:n,copyOf:e}}catch{return null}}var Ji=716800,Yi=52428800,Xi=null,Zi=()=>((!Xi||Date.now()-Xi.at>1e4)&&(Xi={at:Date.now(),list:Ut.list().then(e=>e.personas,e=>{throw Xi=null,e})}),Xi.list);function Qi(e,t,n,r={}){let[a,o]=(0,G.useState)([]),[s,c]=(0,G.useState)(``),[l,u]=(0,G.useState)([]),[d,f]=(0,G.useState)(!1),[p,m]=(0,G.useState)(null),[h,g]=(0,G.useState)(0),[_,v]=(0,G.useState)(`file`),[y,b]=(0,G.useState)(!1),[x,S]=(0,G.useState)(!1),[C,w]=(0,G.useState)(null),T=(0,G.useRef)(null),E=(0,G.useRef)(0),ee=(0,G.useRef)(null),D=(0,G.useRef)(0),O=(0,G.useRef)(e);O.current=e;let k=(0,G.useRef)(a),A=(0,G.useRef)(r);A.current=r;let j=`${r.chat||``}|${r.code===!1?0:1}`,M=e=>{k.current=e,o(e)},N=e=>{let t=++D.current;_===`persona`?(b(!0),Zi().then(n=>{t===D.current&&(u(n.filter(t=>t.handle.startsWith(e)||t.id.startsWith(e)).slice(0,8).map(e=>({path:`/${e.handle}`,name:e.name,role:e.role}))),g(0))}).catch(e=>t===D.current&&c(`The personas did not load: ${e.message}`)).finally(()=>t===D.current&&b(!1))):Qt.files(e,A.current).then(e=>{t===D.current&&(u(e.files),g(0))}).catch(e=>t===D.current&&c(e.message))};(0,G.useEffect)(()=>{if(p===null)return;let e=setTimeout(()=>N(p),80);return()=>clearTimeout(e)},[p,j,_]),(0,G.useEffect)(()=>{d&&document.getElementById(`${n}-file-${h}`)?.scrollIntoView({block:`nearest`})},[d,h,n]);let P=()=>{++D.current,f(!1),m(null),u([]),T.current=null},te=e=>{let t=k.current;return e.path&&t.some(t=>t.path===e.path)?``:e.pending&&t.some(t=>t.kind===`upload`&&t.name===e.name)?`${e.name} is already attached.`:t.length>=Vi?`At most ${Vi} files go with one message.`:(M([...t,e]),``)},ne=e=>{e.kind===`upload`&&e.path&&Qt.dropFile(e.path,e.scope??A.current).catch(e=>c(e.message))},re=e=>{let n=k.current.find(t=>(t.id||t.path||t.name)===e);if(n){if(M(k.current.filter(e=>e!==n)),ne(n),n.kind===`project`){let e=Ni(O.current,n.name);e!==O.current&&t(e)}c(``)}},ie=e=>{requestAnimationFrame(()=>{let t=document.getElementById(n);t?.focus(),t?.setSelectionRange(e,e)})},ae=e=>{if(_===`persona`){let n=O.current.slice(E.current).replace(/^[a-z0-9-]*/i,``);P();let r=`${e.path} `;t(`${r}${n.replace(/^\s+/,``)}`),ie(r.length);return}let n=T.current,r=te({id:e.path,path:e.path,name:e.name,kind:`project`,image:ki(e.path)});if(c(r),P(),!n||r)return;let i=Li(O.current,n.start,E.current,e.name);t(i.text),ie(i.cursor)},F=(e,t)=>{E.current=t;let n=O.current;if(e!==n){let t=k.current.filter(t=>t.kind===`project`&&Pi(n,t.name)&&!Pi(e,t.name));t.length&&M(k.current.filter(e=>!t.includes(e)))}let r=Bi(e,t);if(r!==null){T.current=null,_!==`persona`&&(++D.current,u([])),d&&_===`persona`||b(!0),v(`persona`),m(r),f(!0);return}let i=Ii(e,t);i?(T.current=i,_!==`file`&&(++D.current,u([])),v(`file`),m(i.query),f(!0)):d&&P()},I=e=>d?e.key===`ArrowDown`?(e.preventDefault(),g(e=>Math.min(e+1,Math.max(l.length-1,0))),!0):e.key===`ArrowUp`?(e.preventDefault(),g(e=>Math.max(e-1,0)),!0):e.key===`Escape`?(e.preventDefault(),P(),!0):(e.key===`Enter`||e.key===`Tab`)&&!e.shiftKey&&l[h]?(e.preventDefault(),E.current=e.currentTarget.selectionStart??E.current,ae(l[h]),!0):!1:!1,oe=e=>{c(``);let t=[...e];(async()=>{let e=[];for(let n of t)if(!n.size)e.push(`${n.name||`The pasted file`} is empty.`);else if(mi(n)){if(n.size>Yi){e.push(`${n.name} is over ${Yi/1024/1024} MB: save a smaller copy and attach that.`);continue}try{let t=await Ei(n),r=te({id:`pending:${t.name}:${n.size}:${n.lastModified}`,path:``,name:t.name,kind:`upload`,image:!0,pending:{name:t.name,type:t.type,data:t.data}});if(r&&(e.push(r),k.current.length>=Vi))break}catch(t){e.push(`${n.name}: ${t.message}`)}}else if(!ji(n.name))e.push(`${n.name}: attach an image, a PDF, or a text or code file.`);else if(n.size>Ji)e.push(`${n.name} is too large to attach here (${Math.round(Ji/1024)} KB at most): put it in the agent's folder and @ its path instead.`);else try{let t=await Hi(n),r=te({id:`pending:${n.name}:${n.size}:${n.lastModified}`,path:``,name:n.name,kind:`upload`,image:ki(n.name),pending:{name:n.name,type:n.type||`application/octet-stream`,data:t}});if(r&&(e.push(r),k.current.length>=Vi))break}catch(t){e.push(t.message)}e.length&&c(e.join(` `))})()};return{files:a,error:s,setError:c,hasFiles:a.length>0,wrap:async e=>{let t=k.current,n=A.current,r=[];for(let e=0;e<t.length;e++){let i=t[e];try{if(i.kind===`project`){let e=await Qt.attachFile({path:i.path},n);if(r.push({...i,id:e.path,path:e.path,name:e.name}),pi(e.name)&&(!hi(e.name)||(e.size??0)>5242880)&&!t.some(t=>t.copyOf===e.path)&&!r.some(t=>t.copyOf===e.path)){let t=await qi(e.path,e.name,n);t&&r.push(t)}}else if(i.pending){let e=await Qt.attachFile(i.pending,n);r.push({id:e.path,path:e.path,name:e.name,kind:`upload`,image:ki(e.path),scope:n,...i.copyOf?{copyOf:i.copyOf}:{}})}else r.push(i);M([...r,...t.slice(e+1)])}catch(n){throw M([...r,...t.slice(e)]),Error(`${i.name}: ${n.message}`)}}return M(r),Ri(e,r)},reset:e=>{if(!e?.keep)for(let e of k.current)ne(e);M([]),c(``),P()},onEdit:F,onKeyDown:I,onFiles:oe,drop:{onDragEnter:e=>{e.preventDefault(),[...e.dataTransfer.types].includes(`Files`)&&S(!0)},onDragOver:e=>{e.preventDefault(),e.dataTransfer.dropEffect=`copy`},onDragLeave:e=>{e.currentTarget.contains(e.relatedTarget)||S(!1)},onDrop:e=>{e.preventDefault(),S(!1),e.dataTransfer.files.length&&oe(e.dataTransfer.files)}},dropping:x,paperclip:(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(R,{variant:`ghost`,className:`px-2.5 text-[15px]`,"aria-label":`Attach a file`,"data-tip":`Attach a file, or type @ to name one in the agent's folder`,onClick:()=>ee.current?.click(),children:(0,K.jsx)(ot,{"aria-hidden":`true`})}),(0,K.jsx)(`input`,{ref:ee,type:`file`,multiple:!0,className:`hidden`,onChange:e=>(e.target.files&&oe(e.target.files),e.target.value=``)})]}),chips:(0,K.jsxs)(K.Fragment,{children:[a.length>0&&(0,K.jsx)(`ul`,{"aria-label":`Attached files`,className:`m-0 mb-2 flex list-none flex-wrap gap-1.5 p-0`,children:a.map(e=>(0,K.jsx)(`li`,{children:(0,K.jsx)(Ki,{file:e,scope:r,onRemove:()=>re(e.id||e.path||e.name),onView:t=>w({src:t,name:e.name,pending:!!e.pending})})},e.id||e.path||e.name))}),(0,K.jsx)(cn,{wide:!0,open:!!C,onClose:()=>w(null),title:C?.name||``,description:C?.pending?`As it goes to the model when you send: at most 2048 pixels across, with no location or camera details.`:`From the agent's folder.`,footer:(0,K.jsxs)(R,{onClick:()=>w(null),children:[(0,K.jsx)(i,{"aria-hidden":`true`}),`Close`]}),children:C&&(0,K.jsx)(`img`,{src:C.src,alt:`${C.name}, attached`,className:`block h-auto max-w-full rounded-[10px] border border-line-soft`})})]}),combo:{expanded:d,listId:`${n}-files`,activeId:d&&l[h]?`${n}-file-${h}`:void 0},mentions:d&&(0,K.jsxs)(`div`,{className:`absolute bottom-full left-0 z-20 mb-2 w-[min(420px,calc(100vw-48px))] rounded-[12px] border border-line bg-bg py-1 shadow-menu`,children:[l.length===0&&(0,K.jsx)(`p`,{role:`status`,className:`m-0 px-3 py-2 text-sm text-muted`,children:_===`persona`?y?`Reading the personas…`:s.startsWith(`The personas did not load`)?`The personas did not load.`:`No persona has this command. Business personas are on the Persona agent's page.`:p?`No file or folder matches.`:`Type a name to find a file or folder.`}),(0,K.jsx)(`div`,{id:`${n}-files`,role:`listbox`,"aria-label":_===`persona`?`Business personas`:`Files in the agent's folder`,className:`max-h-64 overflow-y-auto`,children:l.map((e,t)=>{let r=_===`persona`?[e.path,e.role].filter(Boolean).join(` · `):Fi(e.path).dir;return(0,K.jsxs)(`button`,{id:`${n}-file-${t}`,type:`button`,tabIndex:-1,role:`option`,"aria-selected":t===h,className:L(`flex w-full min-w-0 cursor-pointer flex-col items-start gap-0.5 border-0 px-3 py-1.5 text-left`,t===h?`bg-accent-soft`:`bg-transparent hover:bg-surface-muted`),onMouseDown:e=>e.preventDefault(),onClick:()=>ae(e),children:[(0,K.jsx)(`span`,{className:`max-w-full truncate text-sm font-medium text-ink`,children:e.name}),r?(0,K.jsx)(`span`,{className:`max-w-full truncate text-[12px] text-muted`,children:r}):null]},e.path)})})]})}}function $i({id:t,value:n,onChange:r,onSend:i,onStop:a,busy:o,disabled:s,placeholder:c,label:l,left:u,right:d,top:f,rows:p=2,canSend:m,onEdit:h,onKey:g,onFiles:_,dropping:v,drop:y,mentions:b,combo:x}){let S=m??n.trim().length>0,C=(0,G.useRef)(null),w=ti()&&p===2?1:p;return(0,G.useLayoutEffect)(()=>{let e=C.current;e&&(e.style.height=`auto`,e.style.height=`${e.scrollHeight}px`)},[n,w]),(0,K.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),o?a?.():S&&!s&&i()},onDragEnter:y?.onDragEnter,onDragOver:y?.onDragOver,onDragLeave:y?.onDragLeave,onDrop:y?.onDrop,className:L(`relative box-border w-full rounded-[22px] border border-line bg-bg py-[18px] pr-3.5 pl-5 shadow-composer short:py-3 has-[textarea:focus-visible]:outline-2 has-[textarea:focus-visible]:outline-offset-2 has-[textarea:focus-visible]:outline-accent`,v&&`outline-2 outline-offset-2 outline-accent`),children:[v&&(0,K.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 z-10 flex items-center justify-center rounded-[22px] bg-accent-soft/80 text-sm font-medium text-accent-fg`,children:`Drop files here`}),b,(0,K.jsx)(`label`,{htmlFor:t,className:`sr-only`,children:l}),f,(0,K.jsx)(`textarea`,{ref:C,id:t,rows:w,value:n,disabled:s,onChange:e=>{r(e.target.value),h?.(e.target.value,e.target.selectionStart)},onSelect:e=>h?.(e.currentTarget.value,e.currentTarget.selectionStart),onPaste:e=>{let t=[...e.clipboardData.files];t.length&&_&&(e.preventDefault(),_(t))},...x?{role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":x.expanded,"aria-controls":x.listId,...x.expanded&&x.activeId?{"aria-activedescendant":x.activeId}:{}}:{},onKeyDown:e=>{g?.(e)||e.key===`Enter`&&!e.shiftKey&&!e.nativeEvent.isComposing&&(e.preventDefault(),!o&&S&&!s&&i())},placeholder:c,className:`box-border max-h-[50vh] w-full resize-none overflow-y-auto border-0 bg-transparent p-0 text-base leading-[1.55] text-ink outline-none placeholder:text-muted focus-visible:outline-none disabled:opacity-60`}),(0,K.jsxs)(`div`,{className:`mt-2.5 -ml-2.5 flex items-center gap-1 short:mt-1.5`,children:[u,(0,K.jsx)(`div`,{className:`flex-auto`}),d,o?(0,K.jsx)(`button`,{type:`submit`,"aria-label":`Stop`,className:`ml-1.5 inline-flex size-11 flex-none cursor-pointer items-center justify-center rounded-full border-0 bg-ink text-bg hover:bg-ink-2`,children:(0,K.jsx)(e,{size:14,fill:`currentColor`,"aria-hidden":`true`})}):(0,K.jsx)(`button`,{type:`submit`,"aria-label":`Send`,disabled:s,className:L(`ml-1.5 inline-flex size-11 flex-none cursor-pointer items-center justify-center rounded-full border-0 transition-colors disabled:cursor-not-allowed`,S&&!s?`bg-accent text-accent-ink hover:bg-accent-hover`:`bg-line text-muted`),children:(0,K.jsx)($e,{size:20,strokeWidth:2.2,"aria-hidden":`true`})})]})]})}function ea(e,t){let[n,r]=(0,G.useState)(null),i=(0,G.useRef)(null),a=(0,G.useRef)(t);a.current=t;let o=()=>{i.current&&clearInterval(i.current),i.current=null};return(0,G.useEffect)(()=>o,[]),{state:n,start:(0,G.useCallback)(async t=>{if(t.trim()){o(),r({original:t,job:null,error:``});try{let n=await vt.start(t,e);r({original:t,job:n,error:``}),i.current=setInterval(async()=>{try{let t=await vt.job();if(!t||t.target!==e||t.startedAt!==n.startedAt)return;if(t.running)return r(e=>e&&{...e,job:t});o();let i=t.exitCode===0?t.result:void 0;i?.refined&&a.current(i.refined),r(e=>e&&{...e,job:t,result:i})}catch(e){o(),r(t=>t&&{...t,error:e.message})}},700)}catch(e){r({original:t,job:null,error:e.message})}}},[e]),stop:(0,G.useCallback)(async()=>{o(),await vt.stop().catch(()=>{}),r(null)},[]),close:(0,G.useCallback)(()=>{o(),r(null)},[]),undo:(0,G.useCallback)(()=>{r(e=>(e&&a.current(e.original),null))},[]),running:!!n&&!n.error&&(!n.job||n.job.running)}}function ta({onClick:e,running:t,disabled:n}){return(0,K.jsxs)(R,{variant:`ghost`,className:`flex-none px-2 text-[15px] sm:px-2.5`,"aria-label":`Refine`,disabled:n||t,onClick:e,"data-tip":`Make the request precise before sending it: nothing runs`,children:[t?(0,K.jsx)(Kt,{state:`thinking`,px:18}):(0,K.jsx)(st,{"aria-hidden":`true`}),(0,K.jsx)(`span`,{className:`hidden sm:inline`,children:`Refine`})]})}function na({state:t,onStop:n,onUndo:r,onClose:a}){let[o,s]=(0,G.useState)(!1),c=t.job,l=t.result,u=!t.error&&(!c||c.running),d=t.error||c?.lines.filter(e=>!/^→ |^args /.test(e)).slice(-3).join(` `)||`Refine gave no result.`;return(0,K.jsxs)(`div`,{"aria-live":`polite`,className:`-mt-1 mb-3 flex flex-col gap-2 border-b border-line-soft pb-3 text-[13px]`,children:[(0,K.jsxs)(`div`,{className:`flex min-h-7 flex-wrap items-center gap-x-2 gap-y-1`,children:[u?(0,K.jsx)(Kt,{state:`thinking`,px:18,label:`Refining`}):l?(0,K.jsx)(Vt,{icon:ge,size:16}):(0,K.jsx)(Vt,{icon:Oe,size:16,className:`text-fail`}),(0,K.jsx)(`span`,{className:L(`font-medium`,u&&`shimmer`),children:(0,K.jsx)(`span`,{children:u?`Refining your request…`:l?`Refined: your request below, made precise`:`Refine did not finish`})}),u&&(0,K.jsx)(`span`,{className:`text-muted`,children:`Checking it against the capabilities, the systems and the project. Nothing runs.`}),l&&(0,K.jsxs)(`span`,{className:`text-muted`,children:[l.grounded.filter(e=>e.checked).length,` of `,l.grounded.length,` facts checked`]}),(0,K.jsx)(`span`,{className:`flex-auto`}),u?(0,K.jsxs)(R,{size:`sm`,variant:`ghost`,onClick:n,children:[(0,K.jsx)(e,{"aria-hidden":`true`}),`Stop`]}):(0,K.jsxs)(K.Fragment,{children:[l&&(l.assumed.length>0||typeof l.ste==`number`)&&(0,K.jsxs)(`button`,{type:`button`,"aria-expanded":o,onClick:()=>s(!o),className:`inline-flex min-h-7 cursor-pointer items-center gap-1 rounded-[8px] border-0 bg-transparent px-2 font-medium text-muted hover:bg-surface-strong hover:text-ink`,children:[`Details`,(0,K.jsx)(F,{size:14,"aria-hidden":`true`,className:L(`transition-transform`,o&&`rotate-180`)})]}),l&&(0,K.jsxs)(`button`,{type:`button`,onClick:r,"data-tip":`Put your own words back`,className:`inline-flex min-h-7 cursor-pointer items-center gap-1 rounded-[8px] border-0 bg-transparent px-2 font-medium text-muted hover:bg-surface-strong hover:text-ink`,children:[(0,K.jsx)(be,{size:14,"aria-hidden":`true`}),`Undo`]}),(0,K.jsx)(`button`,{type:`button`,"aria-label":`Close the note`,"data-tip":`Close the note`,onClick:a,className:`inline-flex size-7 flex-none cursor-pointer items-center justify-center rounded-[7px] border-0 bg-transparent text-muted hover:bg-surface-strong hover:text-ink`,children:(0,K.jsx)(i,{size:14,"aria-hidden":`true`})})]})]}),!u&&!l&&(0,K.jsx)(`p`,{className:`m-0 rounded-[10px] bg-fail-soft px-3 py-1.5 text-fail [overflow-wrap:anywhere]`,children:d}),l&&l.missing.length>0&&(0,K.jsxs)(`div`,{className:`flex flex-col gap-0.5 rounded-[10px] bg-warn-soft px-3 py-1.5`,children:[(0,K.jsxs)(`span`,{className:`flex items-center gap-1.5 font-medium text-warn`,children:[(0,K.jsx)(Vt,{icon:Oe,size:14}),`Still missing: add it before you send`]}),(0,K.jsx)(`ul`,{className:`m-0 list-disc pl-5 text-ink-2`,children:l.missing.map(e=>(0,K.jsx)(`li`,{children:e},e))})]}),l&&(0,K.jsx)($n,{open:o,children:(0,K.jsxs)(`div`,{className:`flex flex-col gap-1 text-muted [overflow-wrap:anywhere]`,children:[l.assumed.length>0&&(0,K.jsxs)(`p`,{className:`m-0`,children:[`Assumed: `,l.assumed.join(`; `)]}),typeof l.ste==`number`&&(0,K.jsxs)(`p`,{className:`m-0`,children:[Math.round(l.ste*100),`% of its sentences in plain technical English`]})]})})]})}function ra(e){requestAnimationFrame(()=>{let t=document.getElementById(e);t&&(t.focus(),t.setSelectionRange(0,0),t.scrollTop=0)})}function ia({open:e,onClose:t,children:n,className:r,label:i,role:a=`menu`,side:o=`up`}){let s=(0,G.useRef)(null),[c,l]=(0,G.useState)({});return(0,G.useLayoutEffect)(()=>{if(!e||o!==`auto`||!s.current?.parentElement)return;let t=s.current.parentElement.getBoundingClientRect(),n=window.innerHeight-t.bottom-16,r=t.top-16;l(n>=s.current.scrollHeight||n>=r?{top:t.height+8,bottom:`auto`,maxHeight:n}:{bottom:t.height+8,top:`auto`,maxHeight:r})},[e,o]),(0,G.useEffect)(()=>{if(!e)return;let n=e=>{s.current&&!s.current.parentElement?.contains(e.target)&&t()},r=e=>{e.key===`Escape`&&t()};return document.addEventListener(`mousedown`,n),document.addEventListener(`keydown`,r),()=>{document.removeEventListener(`mousedown`,n),document.removeEventListener(`keydown`,r)}},[e,t]),pn(e,150)?(0,K.jsx)(`div`,{ref:s,role:a,"aria-label":i,inert:!e||void 0,style:c,className:L(e?`fade-in`:`menu-out`,`absolute bottom-[52px] z-10 min-w-[260px] overflow-y-auto rounded-[14px] border border-line bg-bg p-1.5 shadow-menu`,r),children:n}):null}function aa({checked:e,onSelect:t,role:n,children:r}){return(0,K.jsxs)(`button`,{type:`button`,role:n,"aria-checked":e,onClick:t,className:`flex min-h-11 w-full cursor-pointer items-center gap-2.5 rounded-[10px] border-0 bg-transparent px-3 text-left text-sm text-ink hover:bg-surface-strong`,children:[r,(0,K.jsx)(`span`,{"aria-hidden":`true`,className:`w-[18px] text-accent-fg`,children:e?`✓`:``})]})}function oa({onClick:e,children:t}){return(0,K.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:e,className:`flex min-h-9 w-full cursor-pointer items-center rounded-[8px] border-0 bg-transparent px-3 text-left text-[13px] text-ink hover:bg-surface-strong`,children:t})}var sa=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 150`,width:`2.06em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{fill:`#34a853`,d:`M255.285 143.47c-.084-.524-.164-1.042-.251-1.56a128.1 128.1 0 0 0-12.794-38.288a128.8 128.8 0 0 0-23.45-31.86a129.2 129.2 0 0 0-22.713-18.005c.049-.08.09-.168.14-.25c2.582-4.461 5.172-8.917 7.755-13.38l7.576-13.068c1.818-3.126 3.632-6.26 5.438-9.386q.643-1.115 1.023-2.297a11.78 11.78 0 0 0-.36-8.188q-.32-.76-.743-1.472a11.7 11.7 0 0 0-4.08-4.064a11.85 11.85 0 0 0-5.005-1.61a12 12 0 0 0-2.218.02q-.912.094-1.814.33a11.74 11.74 0 0 0-7.154 5.467c-1.814 3.127-3.628 6.26-5.438 9.386l-7.576 13.069c-2.583 4.462-5.173 8.918-7.755 13.38c-.282.487-.567.973-.848 1.467q-.586-.237-1.172-.462c-14.24-5.43-29.688-8.4-45.836-8.4c-.442 0-.879 0-1.324.006c-14.357.143-28.152 2.64-41.022 7.12a119 119 0 0 0-4.42 1.642c-.262-.455-.532-.911-.79-1.367c-2.583-4.462-5.173-8.918-7.755-13.38l-7.576-13.07a3915 3915 0 0 1-5.439-9.386A11.74 11.74 0 0 0 48.5.048a11.7 11.7 0 0 0-5.01 1.612a11.7 11.7 0 0 0-4.077 4.063c-.281.474-.532.967-.742 1.473a11.8 11.8 0 0 0-.365 8.188c.259.786.594 1.554 1.023 2.296a3973 3973 0 0 1 5.439 9.386q3.793 6.535 7.58 13.069c2.582 4.462 5.168 8.918 7.75 13.38c.02.038.046.075.065.112A129 129 0 0 0 45.32 64.38a129.7 129.7 0 0 0-22.2 24.015a128 128 0 0 0-9.34 15.24a128.2 128.2 0 0 0-10.843 28.764a131 131 0 0 0-1.951 9.524c-.087.518-.167 1.042-.247 1.56A125 125 0 0 0 0 149.118h256q-.307-2.837-.734-5.636z`}),(0,K.jsx)(`path`,{fill:`#202124`,d:`M194.59 113.712c5.122-3.41 5.867-11.3 1.661-17.62c-4.203-6.323-11.763-8.682-16.883-5.273c-5.122 3.41-5.868 11.3-1.662 17.621c4.203 6.322 11.764 8.682 16.883 5.272m-116.071-5.25c4.206-6.321 3.46-14.21-1.662-17.62c-5.123-3.41-12.68-1.05-16.886 5.27c-4.203 6.323-3.458 14.212 1.662 17.622c5.122 3.41 12.683 1.05 16.886-5.272`})]})),ca=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 315`,width:`0.99em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{d:`M213.803 167.03c.442 47.58 41.74 63.413 42.197 63.615c-.35 1.116-6.599 22.563-21.757 44.716c-13.104 19.153-26.705 38.235-48.13 38.63c-21.05.388-27.82-12.483-51.888-12.483c-24.061 0-31.582 12.088-51.51 12.871c-20.68.783-36.428-20.71-49.64-39.793c-27-39.033-47.633-110.3-19.928-158.406c13.763-23.89 38.36-39.017 65.056-39.405c20.307-.387 39.475 13.662 51.889 13.662c12.406 0 35.699-16.895 60.186-14.414c10.25.427 39.026 4.14 57.503 31.186c-1.49.923-34.335 20.044-33.978 59.822M174.24 50.199c10.98-13.29 18.369-31.79 16.353-50.199c-15.826.636-34.962 10.546-46.314 23.828c-10.173 11.763-19.082 30.589-16.678 48.633c17.64 1.365 35.66-8.964 46.64-22.262`})]})),la=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 242`,width:`1.28em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsxs)(`defs`,{children:[(0,K.jsxs)(`linearGradient`,{id:`SVG4V795Kgq`,x1:`58.972%`,x2:`37.191%`,y1:`7.411%`,y2:`103.762%`,children:[(0,K.jsx)(`stop`,{offset:`0%`,stopColor:`#114a8b`}),(0,K.jsx)(`stop`,{offset:`100%`,stopColor:`#0669bc`})]}),(0,K.jsxs)(`linearGradient`,{id:`SVGzpurqcJr`,x1:`59.719%`,x2:`52.691%`,y1:`52.313%`,y2:`54.864%`,children:[(0,K.jsx)(`stop`,{offset:`0%`,stopOpacity:.3}),(0,K.jsx)(`stop`,{offset:`7.1%`,stopOpacity:.2}),(0,K.jsx)(`stop`,{offset:`32.1%`,stopOpacity:.1}),(0,K.jsx)(`stop`,{offset:`62.3%`,stopOpacity:.05}),(0,K.jsx)(`stop`,{offset:`100%`,stopOpacity:0})]}),(0,K.jsxs)(`linearGradient`,{id:`SVGZ5kCkZNr`,x1:`37.279%`,x2:`62.473%`,y1:`4.6%`,y2:`99.979%`,children:[(0,K.jsx)(`stop`,{offset:`0%`,stopColor:`#3ccbf4`}),(0,K.jsx)(`stop`,{offset:`100%`,stopColor:`#2892df`})]})]}),(0,K.jsx)(`path`,{fill:`url(#SVG4V795Kgq)`,d:`M85.343.003h75.753L82.457 233a12.08 12.08 0 0 1-11.442 8.216H12.06A12.06 12.06 0 0 1 .633 225.303L73.898 8.219A12.08 12.08 0 0 1 85.343 0z`}),(0,K.jsx)(`path`,{fill:`#0078d4`,d:`M195.423 156.282H75.297a5.56 5.56 0 0 0-3.796 9.627l77.19 72.047a12.14 12.14 0 0 0 8.28 3.26h68.02z`}),(0,K.jsx)(`path`,{fill:`url(#SVGzpurqcJr)`,d:`M85.343.003a11.98 11.98 0 0 0-11.471 8.376L.723 225.105a12.045 12.045 0 0 0 11.37 16.112h60.475a12.93 12.93 0 0 0 9.921-8.437l14.588-42.991l52.105 48.6a12.33 12.33 0 0 0 7.757 2.828h67.766l-29.721-84.935l-86.643.02L161.37.003z`}),(0,K.jsx)(`path`,{fill:`url(#SVGZ5kCkZNr)`,d:`M182.098 8.207A12.06 12.06 0 0 0 170.67.003H86.245c5.175 0 9.773 3.301 11.428 8.204L170.94 225.3a12.062 12.062 0 0 1-11.428 15.92h84.429a12.062 12.062 0 0 0 11.425-15.92z`})]})),ua=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`defs`,{children:(0,K.jsxs)(`radialGradient`,{id:`SVGwZwAicDR`,cx:`50.141%`,cy:`50.003%`,r:`50.119%`,fx:`50.141%`,fy:`50.003%`,children:[(0,K.jsx)(`stop`,{offset:`0%`,stopColor:`#797979`}),(0,K.jsx)(`stop`,{offset:`100%`,stopColor:`#4c4c4c`})]})}),(0,K.jsx)(`circle`,{cx:127.949,cy:128.603,r:127.397,fill:`#f5bb60`}),(0,K.jsx)(`circle`,{cx:114.961,cy:115.615,r:114.685,fill:`#e86f32`}),(0,K.jsx)(`circle`,{cx:130.16,cy:100.416,r:99.485,fill:`#e53d42`}),(0,K.jsx)(`circle`,{cx:138.174,cy:108.43,r:91.471,fill:`#bfd141`}),(0,K.jsx)(`circle`,{cx:131.542,cy:115.062,r:84.839,fill:`#6db64c`}),(0,K.jsx)(`circle`,{cx:118.001,cy:101.798,r:71.298,fill:`#afdbe7`}),(0,K.jsx)(`circle`,{cx:129.607,cy:89.915,r:59.691,fill:`#57badf`}),(0,K.jsx)(`circle`,{cx:137.069,cy:97.376,r:52.506,fill:`#02b2d6`}),(0,K.jsx)(`circle`,{cx:129.331,cy:104.837,r:44.768,fill:`url(#SVGwZwAicDR)`}),(0,K.jsx)(`circle`,{cx:129.331,cy:104.837,r:44.768,fill:`#231f20`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`M141.088 98.971c4.439 1.992 10.56-2.016 13.672-8.951s2.036-14.173-2.402-16.164c-4.44-1.992-10.56 2.016-13.672 8.951s-2.037 14.173 2.402 16.164`})]})),da=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 246`,width:`1.26em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsxs)(`defs`,{children:[(0,K.jsxs)(`linearGradient`,{id:`SVGvnhR7dox`,x1:`99.14%`,x2:`33.859%`,y1:`112.708%`,y2:`37.755%`,children:[(0,K.jsx)(`stop`,{offset:`18%`,stopColor:`#0052cc`}),(0,K.jsx)(`stop`,{offset:`100%`,stopColor:`#2684ff`})]}),(0,K.jsxs)(`linearGradient`,{id:`SVGgker3cTp`,x1:`.926%`,x2:`66.18%`,y1:`-12.582%`,y2:`62.306%`,children:[(0,K.jsx)(`stop`,{offset:`18%`,stopColor:`#0052cc`}),(0,K.jsx)(`stop`,{offset:`100%`,stopColor:`#2684ff`})]})]}),(0,K.jsx)(`path`,{fill:`url(#SVGvnhR7dox)`,d:`M9.26 187.33c-2.64 4.307-5.607 9.305-8.126 13.287a8.127 8.127 0 0 0 2.722 11.052l52.823 32.507a8.127 8.127 0 0 0 11.256-2.763c2.113-3.536 4.835-8.127 7.801-13.044c20.926-34.538 41.974-30.312 79.925-12.19l52.376 24.908a8.127 8.127 0 0 0 10.93-4.063l25.152-56.886a8.127 8.127 0 0 0-4.063-10.646c-11.052-5.201-33.034-15.562-52.823-25.111c-71.189-34.579-131.691-32.344-177.972 42.949`}),(0,K.jsx)(`path`,{fill:`url(#SVGgker3cTp)`,d:`M246.115 58.232c2.641-4.307 5.607-9.305 8.127-13.287a8.127 8.127 0 0 0-2.723-11.052L198.696 1.386a8.127 8.127 0 0 0-11.58 2.682c-2.113 3.535-4.835 8.127-7.802 13.043c-20.926 34.538-41.974 30.313-79.925 12.19L47.176 4.515a8.127 8.127 0 0 0-10.93 4.063L11.093 65.465a8.127 8.127 0 0 0 4.063 10.645c11.052 5.202 33.035 15.563 52.823 25.112c71.351 34.538 131.854 32.222 178.135-42.99`})]})),fa=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 208`,width:`1.49em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{d:`M205.28 31.36c14.096 14.88 20.016 35.2 22.512 63.68c6.626 0 12.805 1.47 16.976 7.152l7.792 10.56A17.55 17.55 0 0 1 256 123.2v28.688c-.008 3.704-1.843 7.315-4.832 9.504C215.885 187.222 172.35 208 128 208c-49.066 0-98.19-28.273-123.168-46.608c-2.989-2.189-4.825-5.8-4.832-9.504V123.2c0-3.776 1.2-7.424 3.424-10.464l7.792-10.544c4.173-5.657 10.38-7.152 16.992-7.152c2.496-28.48 8.4-48.8 22.512-63.68C77.331 3.165 112.567.06 127.552 0H128c14.72 0 50.4 2.88 77.28 31.36m-77.264 47.376c-3.04 0-6.544.176-10.272.544c-1.312 4.896-3.248 9.312-6.08 12.128c-11.2 11.2-24.704 12.928-31.936 12.928c-6.802 0-13.927-1.42-19.744-5.088c-5.502 1.808-10.786 4.415-11.136 10.912c-.586 12.28-.637 24.55-.688 36.824c-.026 6.16-.05 12.322-.144 18.488c.024 3.579 2.182 6.903 5.44 8.384C79.936 185.92 104.976 192 128.016 192c23.008 0 48.048-6.08 74.512-18.144c3.258-1.48 5.415-4.805 5.44-8.384c.317-18.418.062-36.912-.816-55.312h.016c-.342-6.534-5.648-9.098-11.168-10.912c-5.82 3.652-12.927 5.088-19.728 5.088c-7.232 0-20.72-1.728-31.936-12.928c-2.832-2.816-4.768-7.232-6.08-12.128a106 106 0 0 0-10.24-.544m-26.941 43.93c5.748 0 10.408 4.66 10.408 10.409v19.183c0 5.749-4.66 10.409-10.408 10.409s-10.408-4.66-10.408-10.409v-19.183c0-5.748 4.66-10.408 10.408-10.408m53.333 0c5.749 0 10.409 4.66 10.409 10.409v19.183c0 5.749-4.66 10.409-10.409 10.409c-5.748 0-10.408-4.66-10.408-10.409v-19.183c0-5.748 4.66-10.408 10.408-10.408M81.44 28.32c-11.2 1.12-20.64 4.8-25.44 9.92c-10.4 11.36-8.16 40.16-2.24 46.24c4.32 4.32 12.48 7.2 21.28 7.2c6.72 0 19.52-1.44 30.08-12.16c4.64-4.48 7.52-15.68 7.2-27.04c-.32-9.12-2.88-16.64-6.72-19.84c-4.16-3.68-13.6-5.28-24.16-4.32m68.96 4.32c-3.84 3.2-6.4 10.72-6.72 19.84c-.32 11.36 2.56 22.56 7.2 27.04c10.56 10.72 23.36 12.16 30.08 12.16c8.8 0 16.96-2.88 21.28-7.2c5.92-6.08 8.16-34.88-2.24-46.24c-4.8-5.12-14.24-8.8-25.44-9.92c-10.56-.96-20 .64-24.16 4.32M128 56c-2.56 0-5.6.16-8.96.48c.32 1.76.48 3.68.64 5.76c0 1.44 0 2.88-.16 4.48c3.2-.32 5.92-.32 8.48-.32s5.28 0 8.48.32c-.16-1.6-.16-3.04-.16-4.48c.16-2.08.32-4 .64-5.76c-3.36-.32-6.4-.48-8.96-.48`})]})),pa=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 250`,width:`1.24em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{fill:`#161614`,d:`M128.001 0C57.317 0 0 57.307 0 128.001c0 56.554 36.676 104.535 87.535 121.46c6.397 1.185 8.746-2.777 8.746-6.158c0-3.052-.12-13.135-.174-23.83c-35.61 7.742-43.124-15.103-43.124-15.103c-5.823-14.795-14.213-18.73-14.213-18.73c-11.613-7.944.876-7.78.876-7.78c12.853.902 19.621 13.19 19.621 13.19c11.417 19.568 29.945 13.911 37.249 10.64c1.149-8.272 4.466-13.92 8.127-17.116c-28.431-3.236-58.318-14.212-58.318-63.258c0-13.975 5-25.394 13.188-34.358c-1.329-3.224-5.71-16.242 1.24-33.874c0 0 10.749-3.44 35.21 13.121c10.21-2.836 21.16-4.258 32.038-4.307c10.878.049 21.837 1.47 32.066 4.307c24.431-16.56 35.165-13.12 35.165-13.12c6.967 17.63 2.584 30.65 1.255 33.873c8.207 8.964 13.173 20.383 13.173 34.358c0 49.163-29.944 59.988-58.447 63.157c4.591 3.972 8.682 11.762 8.682 23.704c0 17.126-.148 30.91-.148 35.126c0 3.407 2.304 7.398 8.792 6.14C219.37 232.5 256 184.537 256 128.002C256 57.307 198.691 0 128.001 0m-80.06 182.34c-.282.636-1.283.827-2.194.39c-.929-.417-1.45-1.284-1.15-1.922c.276-.655 1.279-.838 2.205-.399c.93.418 1.46 1.293 1.139 1.931m6.296 5.618c-.61.566-1.804.303-2.614-.591c-.837-.892-.994-2.086-.375-2.66c.63-.566 1.787-.301 2.626.591c.838.903 1 2.088.363 2.66m4.32 7.188c-.785.545-2.067.034-2.86-1.104c-.784-1.138-.784-2.503.017-3.05c.795-.547 2.058-.055 2.861 1.075c.782 1.157.782 2.522-.019 3.08m7.304 8.325c-.701.774-2.196.566-3.29-.49c-1.119-1.032-1.43-2.496-.726-3.27c.71-.776 2.213-.558 3.315.49c1.11 1.03 1.45 2.505.701 3.27m9.442 2.81c-.31 1.003-1.75 1.459-3.199 1.033c-1.448-.439-2.395-1.613-2.103-2.626c.301-1.01 1.747-1.484 3.207-1.028c1.446.436 2.396 1.602 2.095 2.622m10.744 1.193c.036 1.055-1.193 1.93-2.715 1.95c-1.53.034-2.769-.82-2.786-1.86c0-1.065 1.202-1.932 2.733-1.958c1.522-.03 2.768.818 2.768 1.868m10.555-.405c.182 1.03-.875 2.088-2.387 2.37c-1.485.271-2.861-.365-3.05-1.386c-.184-1.056.893-2.114 2.376-2.387c1.514-.263 2.868.356 3.061 1.403`})]})),ma=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 247`,width:`1.25em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{fill:`#e24329`,d:`m251.845 97.642l-.328-.986l-34.85-90.903c-.657-1.808-1.972-3.287-3.616-4.274Q210.586 0 207.627 0c-1.973 0-3.78.822-5.26 1.973a8.73 8.73 0 0 0-3.124 4.767l-23.506 71.999H80.56l-23.506-72c-.493-1.808-1.644-3.451-3.123-4.766C52.45.822 50.643 0 48.67 0s-3.781.329-5.425 1.48c-1.644.986-2.96 2.465-3.617 4.273L4.781 96.656l-.33.986c-10.355 26.959-1.479 57.37 21.535 74.794h.328c0 .164 53.096 39.944 53.096 39.944l26.3 19.89l15.946 12c3.78 2.96 9.205 2.96 12.986 0l15.945-12l26.3-19.89l53.424-39.944c23.014-17.425 31.726-47.835 21.37-74.794z`}),(0,K.jsx)(`path`,{fill:`#fc6d26`,d:`m251.845 97.642l-.328-.986c-17.26 3.616-33.205 10.85-46.849 21.04c-.164 0-41.424 31.398-76.602 57.863a18377 18377 0 0 0 48.657 36.821l53.424-39.944c23.013-17.425 31.726-47.835 21.37-74.794z`}),(0,K.jsx)(`path`,{fill:`#fca326`,d:`m79.245 212.38l26.301 19.89l15.945 12c3.78 2.96 9.206 2.96 12.986 0l15.945-12l26.301-19.89s-22.684-17.095-48.657-36.82c-26.136 19.725-48.82 36.82-48.82 36.82`}),(0,K.jsx)(`path`,{fill:`#fc6d26`,d:`M51.465 117.697c-13.644-10.192-29.589-17.589-46.849-21.04l-.329.985c-10.356 26.959-1.479 57.37 21.534 74.794h.33c0 .164 53.094 39.944 53.094 39.944s22.685-17.095 48.821-36.82c-35.013-26.466-76.272-57.699-76.601-57.863`})]})),ha=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 206`,width:`1.5em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{fill:`#ea4335`,d:`m170.252 56.819l22.253-22.253l1.483-9.37C153.437-11.677 88.976-7.496 52.42 33.92C42.267 45.423 34.734 59.764 30.717 74.573l7.97-1.123l44.505-7.34l3.436-3.513c19.797-21.742 53.27-24.667 76.128-6.168z`}),(0,K.jsx)(`path`,{fill:`#4285f4`,d:`M224.205 73.918a100.25 100.25 0 0 0-30.217-48.722l-31.232 31.232a55.52 55.52 0 0 1 20.379 44.037v5.544c15.35 0 27.797 12.445 27.797 27.796c0 15.352-12.446 27.485-27.797 27.485h-55.671l-5.466 5.934v33.34l5.466 5.231h55.67c39.93.311 72.553-31.494 72.864-71.424a72.3 72.3 0 0 0-31.793-60.453`}),(0,K.jsx)(`path`,{fill:`#34a853`,d:`M71.87 205.796h55.593V161.29H71.87a27.3 27.3 0 0 1-11.399-2.498l-7.887 2.42l-22.409 22.253l-1.952 7.574c12.567 9.489 27.9 14.825 43.647 14.757`}),(0,K.jsx)(`path`,{fill:`#fbbc05`,d:`M71.87 61.426C31.94 61.663-.237 94.227.001 134.158a72.3 72.3 0 0 0 28.222 56.88l32.248-32.246c-13.99-6.322-20.208-22.786-13.887-36.776s22.786-20.208 36.775-13.888a27.8 27.8 0 0 1 13.887 13.888l32.248-32.248A72.22 72.22 0 0 0 71.87 61.427`})]})),ga=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 231`,width:`1.34em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`defs`,{children:(0,K.jsxs)(`linearGradient`,{id:`SVGR9diIphF`,x1:`108.633%`,x2:`46.927%`,y1:`13.818%`,y2:`78.776%`,children:[(0,K.jsx)(`stop`,{offset:`18%`,stopColor:`#0052cc`}),(0,K.jsx)(`stop`,{offset:`100%`,stopColor:`#2684ff`})]})}),(0,K.jsxs)(`g`,{fill:`none`,children:[(0,K.jsx)(`path`,{d:`M101.272 152.561h53.449l12.901-75.319H87.06z`}),(0,K.jsx)(`path`,{fill:`#2684ff`,d:`M8.308 0A8.202 8.202 0 0 0 .106 9.516l34.819 211.373a11.155 11.155 0 0 0 10.909 9.31h167.04a8.2 8.2 0 0 0 8.201-6.89l34.82-213.752a8.202 8.202 0 0 0-8.203-9.514zm146.616 152.768h-53.315l-14.436-75.42h80.67z`}),(0,K.jsx)(`path`,{fill:`url(#SVGR9diIphF)`,d:`M244.61 77.242h-76.916l-12.909 75.36h-53.272l-62.902 74.663a11.1 11.1 0 0 0 7.171 2.704H212.73a8.196 8.196 0 0 0 8.196-6.884z`})]})]})),_a=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsxs)(`defs`,{children:[(0,K.jsxs)(`linearGradient`,{id:`SVGSBI7obaC`,x1:`98.031%`,x2:`58.888%`,y1:`.161%`,y2:`40.766%`,children:[(0,K.jsx)(`stop`,{offset:`18%`,stopColor:`#0052cc`}),(0,K.jsx)(`stop`,{offset:`100%`,stopColor:`#2684ff`})]}),(0,K.jsxs)(`linearGradient`,{id:`SVGHifZlbzE`,x1:`100.665%`,x2:`55.402%`,y1:`.455%`,y2:`44.727%`,children:[(0,K.jsx)(`stop`,{offset:`18%`,stopColor:`#0052cc`}),(0,K.jsx)(`stop`,{offset:`100%`,stopColor:`#2684ff`})]})]}),(0,K.jsx)(`path`,{fill:`#2684ff`,d:`M244.658 0H121.707a55.5 55.5 0 0 0 55.502 55.502h22.649V77.37c.02 30.625 24.841 55.447 55.466 55.467V10.666C255.324 4.777 250.55 0 244.658 0`}),(0,K.jsx)(`path`,{fill:`url(#SVGSBI7obaC)`,d:`M183.822 61.262H60.872c.019 30.625 24.84 55.447 55.466 55.467h22.649v21.938c.039 30.625 24.877 55.43 55.502 55.43V71.93c0-5.891-4.776-10.667-10.667-10.667`}),(0,K.jsx)(`path`,{fill:`url(#SVGHifZlbzE)`,d:`M122.951 122.489H0c0 30.653 24.85 55.502 55.502 55.502h22.72v21.867c.02 30.597 24.798 55.408 55.396 55.466V133.156c0-5.891-4.776-10.667-10.667-10.667`})]})),va=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 339`,width:`0.92em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{d:`M189.485 144.651c-3.445.99-6.306 3.4-7.867 6.626l-1.015 2.087l.014 2.918c0 2.721.057 3.06.832 4.977c1.072 2.72 2.143 4.399 4.103 6.316c3.383 3.355 7.19 4.23 12.294 2.89a12.13 12.13 0 0 0 7.288-6.147a10.6 10.6 0 0 0 1.128-7.02c-.902-6.387-4.652-11.026-10.207-12.647a14.94 14.94 0 0 0-6.57 0m-129.746.07c-4.3 1.354-7.515 4.512-9.164 9.01a16.7 16.7 0 0 0-.846 7.33c.803 4.357 4.37 8.319 8.43 9.404c5.104 1.34 8.91.465 12.294-2.89c1.974-1.917 3.031-3.595 4.103-6.316c.775-1.917.832-2.256.832-4.977l.014-2.918l-1.015-2.087a12.6 12.6 0 0 0-7.966-6.654a14.4 14.4 0 0 0-6.682.099m58.987 28.197c-1.847 1.001-3.144 3.525-2.75 5.4c.438 2.016 2.214 4.06 4.977 5.738c1.48.888 1.58 1.015 1.65 1.917c.056.536-.141 2.059-.409 3.426c-.282 1.325-.507 2.735-.507 3.13c.028 1.043.986 2.75 2.016 3.567c.902.733 1.071.761 3.595.832c2.312.07 2.791.014 3.722-.423c2.382-1.156 2.988-3.3 2.114-7.402c-.733-3.426-.592-3.947 1.227-5.005c1.931-1.128 3.962-3.087 4.568-4.427a5.146 5.146 0 0 0-2.467-6.767a5.56 5.56 0 0 0-2.552-.465c-1.777 0-2.919.423-5.005 1.748l-1.198.747l-.748-.45c-3.087-1.834-3.651-2.045-5.512-2.017a5.6 5.6 0 0 0-2.721.451m5.498-30.946c-5.258.508-6.696.705-9.22 1.213c-4.103.846-9.587 2.75-13.408 4.624c-13.252 6.485-22.402 17.285-25.193 29.804c-.564 2.481-.635 3.299-.635 7.472c0 4.145.07 5.033.607 7.388c3.722 16.354 18.779 28.436 38.262 30.635c4.23.465 22.501.465 26.73 0c15.65-1.762 29.1-10.25 35.148-22.148c1.607-3.186 2.382-5.245 3.101-8.487c.55-2.355.62-3.243.62-7.374c0-4.187-.07-5.005-.634-7.486c-4.06-18.187-21.697-32.482-43.31-35.203a97 97 0 0 0-12.054-.438zm9.094 13.21a46.3 46.3 0 0 1 20.301 7.247c3.144 2.087 7.571 6.457 9.46 9.333c2.34 3.539 3.666 7.162 4.272 11.56c.282 2.017.14 3.54-.606 6.796c-1.128 4.864-4.68 9.94-9.474 13.492a44 44 0 0 1-9.714 4.906c-5.386 1.72-8.91 2.03-21.5 1.946c-8.205-.085-9.671-.141-12.026-.592c-8.036-1.509-14.408-4.709-19.033-9.587c-3.721-3.947-5.427-7.543-6.344-13.337c-.423-2.707.353-7.176 1.932-10.94c1.917-4.596 6.88-10.292 11.786-13.577c5.681-3.792 13.168-6.485 20.048-7.218c2.636-.282 8.261-.282 10.898-.028M55.735.103a23.3 23.3 0 0 0-9.63 4.2c-8.092 6.133-14.352 19.188-17.002 35.444c-.987 6.147-1.678 14.662-1.678 21.19c0 7.669.903 17.481 2.186 24.263c.282 1.508.437 2.847.324 2.932q-1.302 1.091-2.637 2.143a75 75 0 0 0-13.379 14.38A77.4 77.4 0 0 0 .667 137.63a93.4 93.4 0 0 0-.325 19.132c1.283 10.996 4.582 20.273 10.25 28.76l1.833 2.75l-.522.902c-3.792 6.372-7.02 15.578-8.53 24.418c-1.184 6.993-1.339 8.868-1.339 18.243c0 9.446.127 11.321 1.24 17.848c1.34 7.825 4.061 16.115 7.092 21.627c1.001 1.805 3.426 5.54 3.722 5.738c.099.043-.197.945-.648 1.988a104.4 104.4 0 0 0-7.726 26.406c-.874 5.88-1.001 7.783-1.001 13.972c0 7.895.437 11.73 2.087 18.031l.24.917h20.836l-.704-1.283c-4.188-7.782-4.582-22.205-.96-36.613c1.65-6.655 3.525-11.547 7.022-18.272l2.086-4.088v-2.496c0-2.326-.042-2.594-.803-4.13a12.9 12.9 0 0 0-2.735-3.525a24.5 24.5 0 0 1-5.428-7.655c-5.978-12.97-7.134-32.23-2.933-48.654c1.749-6.851 4.639-12.942 7.67-16.27a11.1 11.1 0 0 0 3.144-7.485c0-2.75-.987-5.005-3.158-7.36a44.2 44.2 0 0 1-11.519-24.376c-1.973-13.534 1.608-28.267 9.728-39.954c7.938-11.476 19.075-18.836 31.538-20.795c2.806-.465 8.036-.395 10.94.14c3.187.565 5.175.396 7.219-.577c2.523-1.199 3.778-2.679 5.273-6.077c1.31-3.03 2.326-4.694 5.075-8.12c3.299-4.089 6.485-6.894 11.589-10.278c5.822-3.806 12.463-6.584 19.06-7.909c2.397-.493 3.525-.564 8.023-.564s5.61.07 8.022.564a57.4 57.4 0 0 1 26.984 14.056c1.65 1.537 5.61 6.443 6.88 8.487c.479.804 1.339 2.496 1.86 3.764c1.48 3.398 2.75 4.878 5.273 6.063c1.974.958 4.032 1.156 7.092.634c4.836-.818 8.557-.747 13.294.226c16.129 3.242 30.17 16.537 36.388 34.357c5.428 15.621 3.891 31.961-4.173 44.452c-1.367 2.115-2.72 3.807-4.695 5.907c-4.243 4.54-4.243 10.18-.014 14.846c6.95 7.599 11.293 26.307 9.982 42.802c-.874 10.884-3.666 20.626-7.515 26.139a29.6 29.6 0 0 1-3.158 3.637a12.9 12.9 0 0 0-2.735 3.524c-.76 1.537-.803 1.805-.803 4.131v2.51l2.086 4.088c3.497 6.711 5.358 11.603 7.021 18.258c3.567 14.21 3.257 28.337-.832 36.387q-.353.671-.62 1.382c0 .084 4.639.127 10.32.127h10.292l.282-1.043l.507-1.89c.268-1.071.804-4.23 1.241-7.274c.409-3.06.409-14.324 0-17.736c-1.55-12.336-4.159-22.134-8.417-31.383c-.45-1.043-.747-1.945-.648-1.988c.113-.07.803-1.043 1.522-2.143c5.301-8.022 8.558-18.102 10.208-31.41c.437-3.666.437-19.428 0-22.953c-1.17-9.093-2.566-15.254-4.907-21.5a86 86 0 0 0-4.638-9.868l-.536-.903l1.847-2.735c5.668-8.515 8.967-17.792 10.25-28.76a93.4 93.4 0 0 0-.339-19.146a77.7 77.7 0 0 0-13.238-32.976a75 75 0 0 0-13.393-14.38a114 114 0 0 1-2.623-2.143a9.8 9.8 0 0 1 .325-2.932c2.932-15.325 2.833-34.443-.24-49.387c-2.679-13.027-7.543-23.375-13.816-29.352c-4.991-4.766-10.095-6.796-16.213-6.415c-14.042.832-25.377 16.988-29.832 42.436a96 96 0 0 0-1.368 10.235c0 .508-.099.93-.211.93a13.5 13.5 0 0 1-2.101-1.099a68.5 68.5 0 0 0-34.611-9.827c-11.73 0-23.784 3.426-34.626 9.841c-.662.427-1.36.795-2.086 1.1c-.113 0-.212-.423-.212-.93a95 95 0 0 0-1.367-10.222C85.665 19.627 76.36 4.5 63.996.679A29.6 29.6 0 0 0 55.75.101zm4.13 19.765c3.497 2.777 7.374 10.7 9.616 19.569c.422 1.593.845 3.44.972 4.116c.099.663.367 2.143.578 3.285c.945 5.146 1.382 10.715 1.438 17.482l.029 6.697l-1.692 2.467l-1.664 2.51h-3.92c-4.567 0-9.107.577-13.449 1.748l-3.355.846c-.466.098-.536-.043-.804-2.03a119 119 0 0 1 .226-32.751c1.748-11.11 5.822-21.162 9.812-24.122c.945-.705 1.114-.691 2.213.183m138.516-.17c2.397 1.777 5.047 6.486 7.021 12.52c3.948 12.04 5.076 28.592 2.99 44.34c-.269 1.973-.34 2.128-.805 2.03l-3.355-.846a52 52 0 0 0-13.45-1.749h-3.919l-1.678-2.509l-1.677-2.467l.028-6.683c.056-9.432.93-16.777 3.017-24.982c2.213-8.783 6.118-16.707 9.587-19.484c1.1-.874 1.268-.888 2.241-.17`})]})),ya=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 260`,width:`1.19em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{d:`M239.184 106.203a64.72 64.72 0 0 0-5.576-53.103C219.452 28.459 191 15.784 163.213 21.74A65.586 65.586 0 0 0 52.096 45.22a64.72 64.72 0 0 0-43.23 31.36c-14.31 24.602-11.061 55.634 8.033 76.74a64.67 64.67 0 0 0 5.525 53.102c14.174 24.65 42.644 37.324 70.446 31.36a64.72 64.72 0 0 0 48.754 21.744c28.481.025 53.714-18.361 62.414-45.481a64.77 64.77 0 0 0 43.229-31.36c14.137-24.558 10.875-55.423-8.083-76.483m-97.56 136.338a48.4 48.4 0 0 1-31.105-11.255l1.535-.87l51.67-29.825a8.6 8.6 0 0 0 4.247-7.367v-72.85l21.845 12.636c.218.111.37.32.409.563v60.367c-.056 26.818-21.783 48.545-48.601 48.601M37.158 197.93a48.35 48.35 0 0 1-5.781-32.589l1.534.921l51.722 29.826a8.34 8.34 0 0 0 8.441 0l63.181-36.425v25.221a.87.87 0 0 1-.358.665l-52.335 30.184c-23.257 13.398-52.97 5.431-66.404-17.803M23.549 85.38a48.5 48.5 0 0 1 25.58-21.333v61.39a8.29 8.29 0 0 0 4.195 7.316l62.874 36.272l-21.845 12.636a.82.82 0 0 1-.767 0L41.353 151.53c-23.211-13.454-31.171-43.144-17.804-66.405zm179.466 41.695l-63.08-36.63L161.73 77.86a.82.82 0 0 1 .768 0l52.233 30.184a48.6 48.6 0 0 1-7.316 87.635v-61.391a8.54 8.54 0 0 0-4.4-7.213m21.742-32.69l-1.535-.922l-51.619-30.081a8.39 8.39 0 0 0-8.492 0L99.98 99.808V74.587a.72.72 0 0 1 .307-.665l52.233-30.133a48.652 48.652 0 0 1 72.236 50.391zM88.061 139.097l-21.845-12.585a.87.87 0 0 1-.41-.614V65.685a48.652 48.652 0 0 1 79.757-37.346l-1.535.87l-51.67 29.825a8.6 8.6 0 0 0-4.246 7.367zm11.868-25.58L128.067 97.3l28.188 16.218v32.434l-28.086 16.218l-28.188-16.218z`})]})),ba=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{fill:`#ff6c37`,d:`M254.953 144.253c8.959-70.131-40.569-134.248-110.572-143.206C74.378-7.912 10.005 41.616 1.047 111.619c-8.959 70.003 40.569 134.248 110.572 143.334c70.131 8.959 134.248-40.569 143.334-110.7`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`m174.2 82.184l-54.007 54.007l-15.23-15.23c53.111-53.11 58.358-48.503 69.236-38.777`}),(0,K.jsx)(`path`,{fill:`#ff6c37`,d:`M120.193 137.47c-.384 0-.64-.128-.896-.384l-15.357-15.229a1.237 1.237 0 0 1 0-1.791c54.006-54.007 59.637-48.888 71.027-38.65c.256.256.384.512.384.896s-.128.64-.384.896l-54.006 53.878c-.128.256-.512.384-.768.384m-13.437-16.509l13.437 13.438l52.087-52.087c-9.47-8.446-15.87-11.006-65.524 38.65`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`m135.678 151.676l-14.717-14.718l54.006-54.006c14.462 14.59-7.166 38.265-39.289 68.724`}),(0,K.jsx)(`path`,{fill:`#ff6c37`,d:`M135.678 152.956c-.384 0-.64-.128-.895-.384l-14.718-14.718c-.256-.256-.256-.512-.256-.896c0-.383.128-.64.384-.895L174.2 82.056a1.237 1.237 0 0 1 1.792 0a15.58 15.58 0 0 1 4.991 11.902c-.256 14.206-16.38 32.25-44.28 58.614c-.384.256-.768.384-1.024.384m-12.925-15.998c8.19 8.319 11.646 11.646 12.925 12.926c21.5-20.476 42.36-41.464 42.489-55.926c.128-3.327-1.152-6.655-3.328-9.214z`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`m105.22 121.345l10.878 10.878q.384.384 0 .768c-.128.128-.128.128-.256.128l-22.524 4.863c-1.152.128-2.176-.64-2.432-1.791c-.128-.64.128-1.28.512-1.664l13.054-13.054c.256-.256.64-.384.768-.128`}),(0,K.jsx)(`path`,{fill:`#ff6c37`,d:`M92.934 139.262c-1.92 0-3.327-1.536-3.327-3.455c0-.896.384-1.792 1.024-2.432l13.053-13.054c.768-.64 1.792-.64 2.56 0l10.878 10.878c.768.64.768 1.792 0 2.56c-.256.256-.512.384-.896.512l-22.524 4.863c-.256 0-.512.128-.768.128m11.902-16.509l-12.542 12.542c-.256.256-.384.64-.128 1.024c.128.384.512.511.896.384l21.116-4.608z`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`M202.738 52.238c-8.19-7.935-21.372-7.679-29.306.64c-7.935 8.318-7.679 21.372.64 29.306A20.68 20.68 0 0 0 199.154 85l-14.59-14.59z`}),(0,K.jsx)(`path`,{fill:`#ff6c37`,d:`M188.405 89.223c-12.158 0-22.012-9.854-22.012-22.012s9.854-22.012 22.012-22.012c5.63 0 11.134 2.176 15.23 6.143c.255.256.383.512.383.896s-.128.64-.384.896L186.357 70.41l13.566 13.566c.512.512.512 1.28 0 1.792l-.256.256c-3.328 2.047-7.295 3.2-11.262 3.2m0-41.336c-10.75 0-19.453 8.702-19.325 19.452c0 10.75 8.703 19.453 19.453 19.325c2.943 0 5.887-.64 8.574-2.048l-13.437-13.31c-.256-.256-.384-.512-.384-.896c0-.383.128-.64.384-.895l17.149-17.15c-3.456-2.943-7.807-4.478-12.414-4.478`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`m203.122 52.622l-.256-.256l-18.3 18.044l14.461 14.462c1.408-.896 2.815-1.92 3.967-3.072a20.51 20.51 0 0 0 .128-29.178`}),(0,K.jsx)(`path`,{fill:`#ff6c37`,d:`M199.155 86.28c-.384 0-.64-.128-.896-.384l-14.59-14.59c-.255-.256-.383-.512-.383-.896c0-.383.128-.64.384-.895l18.172-18.173a1.237 1.237 0 0 1 1.792 0l.384.256c8.575 8.574 8.575 22.396.128 31.098c-1.28 1.28-2.687 2.432-4.223 3.328c-.384.128-.64.256-.768.256m-12.798-15.87l12.926 12.926c1.024-.64 2.048-1.536 2.815-2.303c7.295-7.295 7.679-19.197.64-26.876z`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`M176.375 84.488a7.88 7.88 0 0 0-11.134 0l-48.247 48.247l8.062 8.063l51.063-44.792c3.328-2.816 3.583-7.807.768-11.134c-.256-.128-.384-.256-.512-.384`}),(0,K.jsx)(`path`,{fill:`#ff6c37`,d:`M124.928 142.078c-.384 0-.64-.128-.896-.384l-8.062-8.063a1.237 1.237 0 0 1 0-1.792l48.247-48.247a9.115 9.115 0 0 1 12.926 0a9.115 9.115 0 0 1 0 12.926l-.384.384l-51.063 44.792q-.192.384-.768.384m-6.143-9.343l6.271 6.271l50.167-44.024c2.816-2.304 3.072-6.527.768-9.342c-2.303-2.816-6.527-3.072-9.342-.768c-.128.128-.256.256-.512.384z`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`M80.008 187.637c-.511.256-.767.768-.64 1.28l2.176 9.214c.512 1.28-.256 2.816-1.664 3.2c-1.023.384-2.175 0-2.815-.768l-14.078-13.95l45.944-45.943l15.87.256l10.75 10.75c-2.56 2.175-18.045 17.149-55.543 35.961`}),(0,K.jsx)(`path`,{fill:`#ff6c37`,d:`M78.985 202.61c-1.024 0-2.048-.383-2.688-1.151l-13.95-13.95c-.255-.256-.383-.512-.383-.895c0-.384.128-.64.384-.896l45.943-45.944c.256-.256.64-.384.896-.384l15.87.256c.383 0 .64.128.895.384l10.75 10.75c.256.256.384.64.384 1.024s-.128.64-.512.896l-.896.767c-13.565 11.902-31.994 23.804-54.902 35.194l2.176 9.087c.384 1.663-.384 3.455-1.92 4.35c-.768.385-1.408.513-2.047.513m-14.078-15.996l13.182 13.053c.384.64 1.152.896 1.791.512c.64-.384.896-1.152.512-1.792l-2.175-9.214c-.256-1.152.256-2.176 1.28-2.687c22.651-11.39 40.952-23.164 54.39-34.81l-9.47-9.47l-14.718-.256z`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`m52.11 197.62l11.005-11.006l16.382 16.38l-26.108-1.791c-1.152-.128-1.92-1.152-1.791-2.304c0-.512.128-1.024.511-1.28`}),(0,K.jsx)(`path`,{fill:`#ff6c37`,d:`m79.497 204.146l-26.236-1.791c-1.92-.128-3.2-1.792-3.071-3.712c.128-.768.384-1.535 1.024-2.047L62.22 185.59a1.237 1.237 0 0 1 1.791 0l16.381 16.38c.384.385.512.897.256 1.408q-.384.768-1.151.768m-16.382-15.74l-10.11 10.11c-.384.255-.384.895 0 1.151c.128.128.256.256.512.256l22.652 1.536zm41.337-41.849c-.768 0-1.28-.64-1.28-1.28c0-.384.128-.64.384-.896l12.414-12.414a1.237 1.237 0 0 1 1.792 0l8.062 8.063c.384.384.512.768.384 1.28c-.128.384-.512.768-1.024.896l-20.476 4.35zm12.414-11.902l-8.447 8.446l13.822-2.943z`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`m124.8 140.926l-14.077 3.071c-1.024.256-2.048-.384-2.304-1.408c-.128-.64 0-1.28.512-1.791l7.807-7.807z`}),(0,K.jsx)(`path`,{fill:`#ff6c37`,d:`M110.467 145.277a3.17 3.17 0 0 1-3.2-3.2c0-.895.384-1.663.896-2.303l7.807-7.807a1.237 1.237 0 0 1 1.792 0l8.062 8.063c.384.384.512.768.384 1.28c-.128.384-.512.768-1.024.896l-14.077 3.071zm6.399-10.622l-6.911 6.91c-.256.257-.256.513-.128.768q.192.384.768.384l11.774-2.56zm86.384-69.748c-.256-.767-1.152-1.151-1.92-.895c-.767.256-1.151 1.151-.895 1.92c0 .127.128.255.128.383c.768 1.536.512 3.456-.512 4.863c-.512.64-.384 1.536.128 2.048c.64.512 1.535.384 2.047-.256c1.92-2.432 2.304-5.503 1.024-8.063`})]})),xa=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 227`,width:`1.36em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{fill:`#362d59`,d:`M148.368 12.403a23.935 23.935 0 0 0-41.003 0L73.64 70.165c52.426 26.174 87.05 78.177 90.975 136.642h-23.679c-3.918-50.113-34.061-94.41-79.238-116.448l-31.213 53.97a81.6 81.6 0 0 1 47.307 62.375h-54.38a3.895 3.895 0 0 1-3.178-5.69l15.069-25.626a55 55 0 0 0-17.221-9.738L3.167 191.277a23.27 23.27 0 0 0 8.662 31.982a23.9 23.9 0 0 0 11.583 3.075h74.471a99.43 99.43 0 0 0-41.003-88.72l11.84-20.5c35.679 24.504 55.754 66.038 52.79 109.22h63.094c2.99-65.43-29.047-127.512-84.107-162.986l23.935-41.002a3.947 3.947 0 0 1 5.382-1.384c2.716 1.486 103.993 178.208 105.89 180.258a3.895 3.895 0 0 1-3.486 5.792h-24.396q.46 9.789 0 19.528h24.499A23.53 23.53 0 0 0 256 202.91a23 23 0 0 0-3.178-11.685z`})]})),Sa=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 239`,width:`1.3em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsxs)(`defs`,{children:[(0,K.jsxs)(`linearGradient`,{id:`SVGCo9xpmZW`,x1:`17.372%`,x2:`82.628%`,y1:`-6.51%`,y2:`106.51%`,children:[(0,K.jsx)(`stop`,{offset:`0%`,stopColor:`#5a62c3`}),(0,K.jsx)(`stop`,{offset:`50%`,stopColor:`#4d55bd`}),(0,K.jsx)(`stop`,{offset:`100%`,stopColor:`#3940ab`})]}),(0,K.jsx)(`path`,{id:`SVGhJCUgeMn`,d:`M136.93 64.476v12.8a32.7 32.7 0 0 1-5.953-.952a38.7 38.7 0 0 1-26.79-22.742h21.848c6.008.022 10.872 4.887 10.895 10.894`})]}),(0,K.jsx)(`path`,{fill:`#5059c9`,d:`M178.563 89.302h66.125c6.248 0 11.312 5.065 11.312 11.312v60.231c0 22.96-18.613 41.574-41.573 41.574h-.197c-22.96.003-41.576-18.607-41.579-41.568V95.215a5.91 5.91 0 0 1 5.912-5.913`}),(0,K.jsx)(`circle`,{cx:223.256,cy:50.605,r:26.791,fill:`#5059c9`}),(0,K.jsx)(`circle`,{cx:139.907,cy:38.698,r:38.698,fill:`#7b83eb`}),(0,K.jsx)(`path`,{fill:`#7b83eb`,d:`M191.506 89.302H82.355c-6.173.153-11.056 5.276-10.913 11.449v68.697c-.862 37.044 28.445 67.785 65.488 68.692c37.043-.907 66.35-31.648 65.489-68.692v-68.697c.143-6.173-4.74-11.296-10.913-11.449`}),(0,K.jsx)(`path`,{d:`M142.884 89.302v96.268a10.96 10.96 0 0 1-6.787 10.062c-1.3.55-2.697.833-4.108.833H76.68c-.774-1.965-1.488-3.93-2.084-5.953a72.5 72.5 0 0 1-3.155-21.076v-68.703c-.143-6.163 4.732-11.278 10.895-11.43z`,opacity:.1}),(0,K.jsx)(`path`,{d:`M136.93 89.302v102.222c0 1.411-.283 2.808-.833 4.108a10.96 10.96 0 0 1-10.062 6.787H79.48c-1.012-1.965-1.965-3.93-2.798-5.954a59 59 0 0 1-2.084-5.953a72.5 72.5 0 0 1-3.155-21.076v-68.703c-.143-6.163 4.732-11.278 10.895-11.43z`,opacity:.2}),(0,K.jsx)(`path`,{d:`M136.93 89.302v90.315c-.045 5.998-4.896 10.85-10.895 10.895H74.597a72.5 72.5 0 0 1-3.155-21.076v-68.703c-.143-6.163 4.732-11.278 10.895-11.43z`,opacity:.2}),(0,K.jsx)(`path`,{d:`M130.977 89.302v90.315c-.046 5.998-4.897 10.85-10.895 10.895H74.597a72.5 72.5 0 0 1-3.155-21.076v-68.703c-.143-6.163 4.732-11.278 10.895-11.43z`,opacity:.2}),(0,K.jsx)(`path`,{d:`M142.884 58.523v18.753c-1.012.06-1.965.12-2.977.12s-1.965-.06-2.977-.12a32.7 32.7 0 0 1-5.953-.952a38.7 38.7 0 0 1-26.791-22.742a33 33 0 0 1-1.905-5.954h29.708c6.007.023 10.872 4.887 10.895 10.895`,opacity:.1}),(0,K.jsx)(`use`,{href:`#SVGhJCUgeMn`,opacity:.2}),(0,K.jsx)(`use`,{href:`#SVGhJCUgeMn`,opacity:.2}),(0,K.jsx)(`path`,{d:`M130.977 64.476v11.848a38.7 38.7 0 0 1-26.791-22.743h15.896c6.008.023 10.872 4.888 10.895 10.895`,opacity:.2}),(0,K.jsx)(`path`,{fill:`url(#SVGCo9xpmZW)`,d:`M10.913 53.581h109.15c6.028 0 10.914 4.886 10.914 10.913v109.151c0 6.027-4.886 10.913-10.913 10.913H10.913C4.886 184.558 0 179.672 0 173.645V64.495C0 58.466 4.886 53.58 10.913 53.58`}),(0,K.jsx)(`path`,{fill:`#fff`,d:`M94.208 95.125h-21.82v59.416H58.487V95.125H36.769V83.599h57.439z`})]})),Ca=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 256`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{fill:`#0078d4`,d:`M0 0h121.329v121.329H0zm134.671 0H256v121.329H134.671zM0 134.671h121.329V256H0zm134.671 0H256V256H134.671z`})]})),wa=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 128 128`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`defs`,{children:(0,K.jsxs)(`linearGradient`,{id:`SVG6uMEBcPj`,x1:9,x2:9,y1:16.97,y2:1.03,gradientTransform:`scale(7.11111)`,gradientUnits:`userSpaceOnUse`,children:[(0,K.jsx)(`stop`,{offset:0,stopColor:`#0078d4`}),(0,K.jsx)(`stop`,{offset:.16,stopColor:`#1380da`}),(0,K.jsx)(`stop`,{offset:.53,stopColor:`#3c91e5`}),(0,K.jsx)(`stop`,{offset:.82,stopColor:`#559cec`}),(0,K.jsx)(`stop`,{offset:1,stopColor:`#5ea0ef`})]})}),(0,K.jsx)(`path`,{fill:`url(#SVG6uMEBcPj)`,d:`M120.89 28.445v69.262l-28.445 23.324l-44.09-16.07v15.93L23.395 88.25l72.746 5.688V31.574ZM96.64 31.93L55.82 7.11v16.285L18.348 34.418L7.109 48.852v32.785l16.075 7.11V46.718Zm0 0`})]})),Ta=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 128 128`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{fill:`#1a62b3`,d:`M50.782 42.96h26.436a7.536 7.536 0 0 1 7.553 7.552v26.976a7.536 7.536 0 0 1-7.553 7.552H50.782a7.536 7.536 0 0 1-7.553-7.552V50.512a7.536 7.536 0 0 1 7.553-7.553zm55.803 41.611V34.477A13.566 13.566 0 0 0 92.99 20.88H35.01a13.566 13.566 0 0 0-13.595 13.596v59.046a13.566 13.566 0 0 0 13.595 13.595l92.171.002c-.935 11.716-10.67 20.88-22.623 20.88H23.442A22.61 22.61 0 0 1 .783 105.341V22.66A22.61 22.61 0 0 1 23.443 0h81.115a22.61 22.61 0 0 1 22.659 22.66v61.91z`})]})),Ea=(0,G.forwardRef)(({title:e,titleId:t,...n},r)=>(0,K.jsxs)(`svg`,{viewBox:`0 0 128 128`,width:`1.2em`,height:`1.2em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,K.jsx)(`title`,{id:t,children:e}):null,(0,K.jsx)(`path`,{fill:`#50d18d`,d:`m37.701 127.439l-15.398-14.782a1.813 1.813 0 0 1 0-2.666l15.41-14.773a2.005 2.005 0 0 1 2.78 0l15.412 14.783c.778.73.778 1.936 0 2.666L40.494 127.44a2.003 2.003 0 0 1-2.78 0zm24.907-23.89l-15.41-14.783a1.813 1.813 0 0 1 0-2.656l15.41-14.782a2.005 2.005 0 0 1 2.78 0L80.79 86.11c.778.73.778 1.936 0 2.666l-15.4 14.773a2.01 2.01 0 0 1-2.774 0zm24.908-23.892l-15.4-14.783a1.81 1.81 0 0 1 0-2.656L87.52 47.437a2.005 2.005 0 0 1 2.78 0l15.402 14.781a1.81 1.81 0 0 1 0 2.656L90.29 79.657a2.006 2.006 0 0 1-2.779 0h.01zm-49.346.447L22.758 65.333a1.817 1.817 0 0 1 0-2.66l15.412-14.79a2.004 2.004 0 0 1 2.779 0l15.41 14.784a1.81 1.81 0 0 1 0 2.656L40.95 80.116a2.007 2.007 0 0 1-2.78 0zm24.906-23.89L47.664 41.441a1.817 1.817 0 0 1 0-2.668l15.412-14.781a2.004 2.004 0 0 1 2.78 0l15.4 14.781a1.81 1.81 0 0 1 0 2.658l-15.4 14.781a2.006 2.006 0 0 1-2.774 0v-.01v.005zm-24.43-23.41l-15.42-14.828a1.814 1.814 0 0 1 0-2.667L38.647.56a2.004 2.004 0 0 1 2.78 0l15.41 14.782c.78.731.78 1.937 0 2.667l-15.42 14.75a2.004 2.004 0 0 1-2.78 0l.01.032z`})]})),Da=`/assets/dataverse-CH0w-aF1.png`,Oa=`/assets/zephyr-BNWDPG5u.png`,ka=(e,t,n)=>r=>(0,K.jsx)(`svg`,{viewBox:`0 0 ${t} ${n}`,...r,children:(0,K.jsx)(`image`,{href:e,width:t,height:n})}),Aa=e=>(0,K.jsxs)(`svg`,{viewBox:`-55 0 209 209`,...e,children:[(0,K.jsx)(`path`,{fill:`#31b34b`,d:`m98.092 104.307l-49.011 12.252l-24.54 91.807z`,opacity:`.5`}),(0,K.jsx)(`path`,{fill:`#31b34b`,d:`M98.092 104.307L0 129.024V67.443h73.551l24.718 36.828z`,opacity:`.8`}),(0,K.jsx)(`path`,{fill:`#31b34b`,d:`M0 67.443v61.44L73.551 0z`})]}),ja=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 256 153`,...e,children:[(0,K.jsx)(`path`,{className:`logo-ink`,fill:`#252f3e`,d:`M72.392 55.438c0 3.137.34 5.68.933 7.545a45.4 45.4 0 0 0 2.712 6.103c.424.678.593 1.356.593 1.95c0 .847-.508 1.695-1.61 2.543l-5.34 3.56c-.763.509-1.526.763-2.205.763c-.847 0-1.695-.424-2.543-1.187a26 26 0 0 1-3.051-3.984c-.848-1.44-1.696-3.052-2.628-5.001q-9.919 11.697-24.922 11.698c-7.12 0-12.8-2.035-16.954-6.103c-4.153-4.07-6.272-9.495-6.272-16.276c0-7.205 2.543-13.054 7.714-17.462c5.17-4.408 12.037-6.612 20.768-6.612c2.882 0 5.849.254 8.985.678c3.137.424 6.358 1.102 9.749 1.865V29.33c0-6.443-1.357-10.935-3.985-13.563c-2.712-2.628-7.29-3.9-13.817-3.9c-2.967 0-6.018.34-9.155 1.103s-6.188 1.695-9.155 2.882c-1.356.593-2.373.932-2.967 1.102s-1.017.254-1.356.254c-1.187 0-1.78-.848-1.78-2.628v-4.154c0-1.356.17-2.373.593-2.966c.424-.594 1.187-1.187 2.374-1.78q4.45-2.29 10.68-3.815C33.908.763 38.316.255 42.978.255c10.088 0 17.463 2.288 22.21 6.866c4.662 4.577 7.036 11.528 7.036 20.853v27.464zM37.976 68.323c2.798 0 5.68-.508 8.731-1.526c3.052-1.017 5.765-2.882 8.053-5.425c1.357-1.61 2.374-3.39 2.882-5.425c.509-2.034.848-4.493.848-7.375v-3.56a71 71 0 0 0-7.799-1.441a64 64 0 0 0-7.968-.509c-5.68 0-9.833 1.102-12.63 3.391s-4.154 5.51-4.154 9.748c0 3.984 1.017 6.951 3.136 8.986c2.035 2.119 5.002 3.136 8.901 3.136m68.069 9.155c-1.526 0-2.543-.254-3.221-.848c-.678-.508-1.272-1.695-1.78-3.305L81.124 7.799c-.51-1.696-.764-2.798-.764-3.391c0-1.356.678-2.12 2.035-2.12h8.307c1.61 0 2.713.255 3.306.848c.678.509 1.187 1.696 1.695 3.306l14.241 56.117l13.224-56.117c.424-1.695.933-2.797 1.61-3.306c.679-.508 1.866-.847 3.392-.847h6.781c1.61 0 2.713.254 3.39.847c.679.509 1.272 1.696 1.611 3.306l13.394 56.795L168.01 6.442c.508-1.695 1.102-2.797 1.695-3.306c.678-.508 1.78-.847 3.306-.847h7.883c1.357 0 2.12.678 2.12 2.119c0 .424-.085.848-.17 1.356s-.254 1.187-.593 2.12l-20.43 65.525q-.762 2.544-1.78 3.306c-.678.509-1.78.848-3.22.848h-7.29c-1.611 0-2.713-.254-3.392-.848c-.678-.593-1.271-1.695-1.61-3.39l-13.14-54.676l-13.054 54.59c-.423 1.696-.932 2.798-1.61 3.391c-.678.594-1.865.848-3.39.848zm108.927 2.289c-4.408 0-8.816-.509-13.054-1.526c-4.239-1.017-7.544-2.12-9.748-3.39c-1.357-.764-2.29-1.611-2.628-2.374a6 6 0 0 1-.509-2.374V65.78c0-1.78.678-2.628 1.95-2.628a4.8 4.8 0 0 1 1.526.255c.508.17 1.271.508 2.119.847a46 46 0 0 0 9.324 2.967a51 51 0 0 0 10.088 1.017c5.34 0 9.494-.932 12.376-2.797s4.408-4.577 4.408-8.053c0-2.373-.763-4.323-2.289-5.934s-4.408-3.051-8.561-4.408l-12.292-3.814c-6.188-1.95-10.765-4.832-13.563-8.647c-2.797-3.73-4.238-7.883-4.238-12.291q0-5.34 2.289-9.41c1.525-2.712 3.56-5.085 6.103-6.95c2.543-1.95 5.425-3.391 8.816-4.408c3.39-1.017 6.95-1.441 10.68-1.441c1.865 0 3.815.085 5.68.339c1.95.254 3.73.593 5.51.932c1.695.424 3.306.848 4.832 1.357q2.288.762 3.56 1.525c1.187.679 2.034 1.357 2.543 2.12q.763 1.017.763 2.797v3.984c0 1.78-.678 2.713-1.95 2.713c-.678 0-1.78-.34-3.22-1.018q-7.25-3.306-16.276-3.306c-4.832 0-8.647.763-11.275 2.374c-2.627 1.61-3.984 4.069-3.984 7.544c0 2.374.848 4.408 2.543 6.019s4.832 3.221 9.325 4.662l12.037 3.815c6.103 1.95 10.511 4.662 13.139 8.137s3.9 7.46 3.9 11.868c0 3.645-.764 6.951-2.205 9.833c-1.525 2.882-3.56 5.425-6.188 7.46c-2.628 2.119-5.764 3.645-9.409 4.747c-3.815 1.187-7.799 1.78-12.122 1.78`}),(0,K.jsx)(`path`,{fill:`#f90`,d:`M230.993 120.964c-27.888 20.599-68.408 31.534-103.247 31.534c-48.827 0-92.821-18.056-126.05-48.064c-2.628-2.373-.255-5.594 2.881-3.73c35.942 20.854 80.276 33.484 126.136 33.484c30.94 0 64.932-6.442 96.212-19.666c4.662-2.12 8.646 3.052 4.068 6.442m11.614-13.224c-3.56-4.577-23.566-2.204-32.636-1.102c-2.713.34-3.137-2.034-.678-3.814c15.936-11.19 42.13-7.968 45.181-4.239c3.052 3.815-.848 30.008-15.767 42.554c-2.288 1.95-4.492.933-3.475-1.61c3.39-8.393 10.935-27.296 7.375-31.789`})]}),Ma=e=>(0,K.jsxs)(`svg`,{viewBox:`0 0 18.02 20.27`,fill:`#000`,...e,children:[(0,K.jsx)(`path`,{d:`M18.0137 0H12.6097V13.0595H18.0137V0Z`}),(0,K.jsx)(`path`,{d:`M5.4043 0H0V7.43041L5.4043 13.0595V0Z`}),(0,K.jsx)(`path`,{d:`M5.4043 13.0595H0V20.2648H5.4043V13.0595Z`}),(0,K.jsx)(`path`,{d:`M12.6104 13.0595H5.4051L9.68322 18.4634H12.6104V13.0595Z`})]}),Na=e=>t=>(0,K.jsx)(e,{...t,className:L(t.className,`logo-mono`)}),Pa={jira:_a,azure_devops:wa,confluence:da,testrail:Ea,qtest:Ta,github:Na(pa),browserstack:ua,xray:Aa,gitlab:ma,bitbucket:ga,postman:ba,sentry:Na(xa),testmu:Na(Ma),zephyr:ka(Oa,128,128),dataverse:ka(Da,128,98),aws:ja,gcp:ha},Fa={openai:Na(ya),azure:la,github_copilot:Na(fa),ollama:Na(va)},Ia={android:sa,ios:Na(ca),windows:Ca};function La(e,t){if(!e)return[];let n=[],r=[!e.engine&&`the browser engine`,!e.runtime&&`the agent runtime`].filter(e=>!!e);r.length&&n.push({title:`Install ${r.join(` and `)}`,detail:`The agents run tests with them. Installing needs no admin rights and takes a few minutes.`,fix:`Install what's missing`,to:zt(`settings`,`setup`)});let i=e.model.usable??[],a=t??e.model.active;return e.model.ready?a&&!i.includes(a)&&n.push({title:`${a} has no key or sign-in yet`,detail:`Add its key, or pick a model that is ready in the box below: ${i.join(`, `)}.`,fix:`Add its key`,to:zt(`settings`,`models`)}):n.push({title:`No model is ready`,detail:e.model.detail,fix:`Add a model key`,to:zt(`settings`,`models`)}),n}function Ra(e){let t=H(e?.environments),n=Object.entries(H(t.environments)).map(([e,t])=>({name:e,env:H(t)}));return{envs:n,fallback:[H(e?.config.environments).default,t.default].find(e=>typeof e==`string`&&n.some(t=>t.name===e))||(n.length===1?n[0].name:``)}}function za(e){let t=e?.config||{},n=H(t.browser),r=H(t.sources),i=[`jira`,`azure_devops`,`testrail`,`xray`,`zephyr`,`qtest`,`servicenow`,`github`].find(e=>r[e]),a={jira:`Jira`,azure_devops:`Azure DevOps`,testrail:`TestRail`,xray:`Xray`,zephyr:`Zephyr`,qtest:`qTest`,servicenow:`ServiceNow`,github:`GitHub`},o=String(n.provider||`local`);return{code:!0,headed:n.headless===!1,repo:H(t.code).repo?String(H(t.code).repo):`the project folder`,browser:o===`local`?`Chrome on this machine`:o===`testmu`?`TestMu AI`:o===`browserstack`?`BrowserStack`:o,cases:i?a[i]:`Files in the project`}}var Ba={azure:`Azure OpenAI`,openai:`OpenAI`,ollama:`Ollama`,openai_compatible:`OpenAI-compatible`,github_copilot:`GitHub Copilot`,github:`GitHub Models`,anthropic:`Anthropic`};function Va({children:e}){return(0,K.jsx)(`div`,{className:`px-3 pt-2 pb-1 text-[11.5px] font-semibold tracking-wide text-muted uppercase`,children:e})}function Ha({tools:e,onChange:n,chat:r}){let i=(t,r,i,a)=>(0,K.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-3 rounded-[10px] px-3 py-2.5 hover:bg-surface-muted`,children:[(0,K.jsx)(Tn,{icon:t}),(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,K.jsx)(`span`,{className:`text-sm font-medium text-ink`,children:i}),(0,K.jsx)(`span`,{className:`text-[12.5px] text-muted [overflow-wrap:anywhere]`,children:a})]}),(0,K.jsx)(Cr,{checked:e[r],label:i,onChange:t=>n({...e,[r]:t})})]}),a=(e,t,n)=>(0,K.jsxs)(`div`,{className:`flex items-center gap-3 px-3 py-2`,children:[(0,K.jsx)(Vt,{icon:e,size:16,className:`flex-none text-muted`}),(0,K.jsx)(`span`,{className:`flex-1 text-sm text-ink-2`,children:t}),(0,K.jsx)(`span`,{className:`truncate text-sm text-ink`,children:n})]});return(0,K.jsxs)(`div`,{className:`flex flex-col`,children:[(0,K.jsx)(Va,{children:r?`This chat, from your next message`:`This chat`}),i(v,`code`,`Write the test`,`Turn a passed run into a test in ${e.repo}`),i(Ze,`headed`,`Show the browser`,`Watch each run in a Chrome window`),(0,K.jsx)(`div`,{className:`mx-3 my-1.5 border-t border-line-soft`}),(0,K.jsx)(Va,{children:`From your settings`}),a(Pe,`Browsers run on`,e.browser),a(t,`Test cases from`,e.cases),r?.model&&(0,K.jsxs)(`div`,{className:`flex items-center gap-3 px-3 py-2`,children:[Fa[r.provider||``]?(()=>{let e=Fa[r.provider||``];return(0,K.jsx)(e,{"aria-hidden":`true`,className:`size-4 flex-none`})})():(0,K.jsx)(Vt,{icon:ge,size:16,className:`flex-none text-muted`}),(0,K.jsx)(`span`,{className:`flex-1 text-sm text-ink-2`,children:`Model`}),(0,K.jsx)(`span`,{className:`truncate text-sm text-ink`,children:r.model})]}),(0,K.jsx)(`div`,{className:`mx-1.5 mt-1 mb-1 flex flex-wrap gap-x-1`,children:(0,K.jsxs)(`a`,{href:zt(`settings`),className:`flex min-h-9 items-center gap-2 rounded-[10px] px-1.5 text-[13px] font-medium no-underline hover:bg-surface-muted`,children:[(0,K.jsx)(_,{size:14,"aria-hidden":`true`}),`Change them in Settings`]})})]})}function Ua({models:e,current:t,onPick:n,auto:r=!0}){let i=(e,r=!1)=>{let i=t===e.name;return(0,K.jsxs)(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":i,onClick:()=>n(e.name),className:L(`flex w-full cursor-pointer items-center gap-3 rounded-[10px] border-0 px-3 py-2 text-left hover:bg-surface-muted`,i?`bg-accent-soft hover:bg-accent-soft`:`bg-transparent`),children:[r?(0,K.jsx)(`span`,{className:`flex size-9 flex-none items-center justify-center rounded-[10px] bg-[linear-gradient(135deg,var(--color-accent),var(--color-accent-grad))] text-accent-ink`,children:(0,K.jsx)(Vt,{icon:ge,size:17})}):Fa[e.provider]?(0,K.jsx)(Tn,{logo:Fa[e.provider]}):(0,K.jsx)(Tn,{icon:j}),(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,K.jsxs)(`span`,{className:`flex items-baseline gap-2`,children:[(0,K.jsx)(`span`,{className:`truncate text-sm font-medium text-ink`,children:e.name}),!r&&Ba[e.provider]&&(0,K.jsx)(`span`,{className:`flex-none text-[11.5px] text-muted`,children:Ba[e.provider]})]}),e.note&&(0,K.jsx)(`span`,{className:`truncate text-[12.5px] text-muted`,children:e.note})]}),(0,K.jsx)(s,{size:16,"aria-hidden":`true`,className:L(`flex-none text-accent-fg`,!i&&`invisible`)})]},e.name)};return(0,K.jsxs)(`div`,{className:`flex flex-col`,children:[(0,K.jsx)(Va,{children:`Model for this chat`}),r&&i({name:`Auto routing`,provider:``,note:`The cheapest model good enough for each step`},!0),e.length>0&&(0,K.jsxs)(K.Fragment,{children:[r&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`div`,{className:`mx-3 my-1.5 border-t border-line-soft`}),(0,K.jsx)(Va,{children:`Your models`})]}),(0,K.jsx)(`div`,{className:`flex flex-col`,children:e.map(e=>i(e))})]}),(0,K.jsx)(`div`,{className:`mx-3 my-1.5 border-t border-line-soft`}),(0,K.jsxs)(`a`,{href:zt(`settings`,`models`),className:`mx-1.5 mb-1 flex min-h-9 items-center gap-2 rounded-[10px] px-1.5 text-[13px] font-medium no-underline hover:bg-surface-muted`,children:[(0,K.jsx)(_,{size:14,"aria-hidden":`true`}),`Manage models`]})]})}var Wa={web:Pe,api:pe,desktop:qe,mobile:he};function Ga({icon:e,label:t,value:n}){return(0,K.jsxs)(`li`,{className:`flex min-w-0 items-start gap-2 px-3 py-1 text-[12.5px]`,children:[(0,K.jsx)(Vt,{icon:e,size:14,className:`mt-0.5 flex-none text-muted`}),(0,K.jsxs)(`span`,{className:`min-w-0 [overflow-wrap:anywhere]`,children:[(0,K.jsx)(`span`,{className:`font-medium text-ink`,children:t}),n&&(0,K.jsxs)(`span`,{className:`text-muted`,children:[` `,n]})]})]})}function Ka({row:e}){let t=e.env,n=Object.entries(H(t.apps)).map(([e,t])=>({...H(t),name:e})),r=Object.entries(H(t.variables)),i=Object.entries(H(t.data)),a=Object.keys(H(t.databases)),o=Array.isArray(t.secrets)?t.secrets.filter(e=>typeof e==`string`):[],s=typeof t.file==`string`?t.file:``,c=!s&&!n.length&&!r.length&&!i.length&&!a.length&&!o.length;return(0,K.jsxs)(`div`,{className:`flex flex-col pb-1`,children:[(0,K.jsxs)(Va,{children:[`What the agent gets in `,e.name]}),(0,K.jsxs)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:[s&&(0,K.jsx)(Ga,{icon:Ae,label:`Read from`,value:s}),n.map(e=>(0,K.jsx)(Ga,{icon:Wa[String(e.kind||`web`)]||Pe,label:e.name,value:[String(e.url||e.path||e.app_id||``),e.login?`signs in as ${String(e.login)}`:``].filter(Boolean).join(` · `)},`app:${e.name}`)),r.length>0&&(0,K.jsx)(Ga,{icon:ie,label:`Values`,value:r.map(([e,t])=>`${e} = ${String(t??``)}`).join(`, `)}),i.length>0&&(0,K.jsx)(Ga,{icon:Ve,label:`Test data`,value:i.map(([e,t])=>`${e}: ${String(t)}`).join(`, `)}),a.length>0&&(0,K.jsx)(Ga,{icon:ne,label:`Databases`,value:a.join(`, `)}),o.length>0&&(0,K.jsx)(Ga,{icon:le,label:`Secrets, by name`,value:o.join(`, `)}),c&&(0,K.jsx)(`li`,{className:`px-3 py-1 text-[12.5px] text-muted`,children:`Nothing set yet. Add its apps and test data in Settings.`})]})]})}function qa({envs:e,current:t,onPick:n}){let r=e.find(e=>e.name===t);return(0,K.jsxs)(`div`,{className:`flex flex-col`,children:[(0,K.jsx)(Va,{children:`Environment for this chat`}),e.length?e.map(e=>{let r=e.name===t,i=typeof e.env.description==`string`?e.env.description:``;return(0,K.jsxs)(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":r,onClick:()=>n(e.name),className:L(`flex w-full cursor-pointer items-center gap-3 rounded-[10px] border-0 px-3 py-2 text-left hover:bg-surface-muted`,r?`bg-accent-soft hover:bg-accent-soft`:`bg-transparent`),children:[(0,K.jsx)(Tn,{icon:C}),(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,K.jsx)(`span`,{className:`truncate text-sm font-medium text-ink`,children:e.name}),i&&(0,K.jsx)(`span`,{className:`truncate text-[12.5px] text-muted`,children:i})]}),(0,K.jsx)(s,{size:16,"aria-hidden":`true`,className:L(`flex-none text-accent-fg`,!r&&`invisible`)})]},e.name)}):(0,K.jsx)(`p`,{className:`m-0 px-3 py-1 text-[12.5px] text-muted`,children:`No environments yet. Add one with its apps, test data and the names of its secrets.`}),r&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`div`,{className:`mx-3 my-1.5 border-t border-line-soft`}),(0,K.jsx)(Ka,{row:r})]}),(0,K.jsx)(`div`,{className:`mx-3 my-1.5 border-t border-line-soft`}),(0,K.jsxs)(`a`,{href:zt(`settings`,`environments`),className:`mx-1.5 mb-1 flex min-h-9 items-center gap-2 rounded-[10px] px-1.5 text-[13px] font-medium no-underline hover:bg-surface-muted`,children:[(0,K.jsx)(_,{size:14,"aria-hidden":`true`}),`Manage environments`]})]})}function Ja(){let[e,t]=(0,G.useState)(null),[n,r]=(0,G.useState)(null),[i,a]=(0,G.useState)(null),[o,s]=(0,G.useState)(``),[c,l]=(0,G.useState)(()=>za(null)),[u,d]=(0,G.useState)(``);(0,G.useEffect)(()=>{ht.state().then(e=>{r(e),e.ready&&ht.machine().then(a,()=>{}),e.ready&&Rt.settings().then(e=>{t(e),l(za(e))},()=>{})},()=>{})},[]);let f=Object.entries(H(e?.models.models)).map(([e,t])=>({name:e,provider:String(H(t).provider||``),note:String(H(t).description||``)})).filter(e=>e.provider!==`mock`&&e.name!==`mock`),p=String(H(e?.config.llm).routing||`off`)===`auto`,m=e=>typeof e==`string`&&f.some(t=>t.name===e)?e:``,h=m(e?.models.default)||f[0]?.name||``,g=u||(p?`Auto routing`:m(H(e?.config.llm).active)||h||`Auto routing`),{envs:_,fallback:v}=Ra(e),y=_.some(e=>e.name===o)?o:v,b={profile:f.some(e=>e.name===g)?g:void 0,headed:c.headed,code:c.code,env:y||void 0};return{snap:e,setup:n,machine:i,ready:!n||n.ready,tools:c,setTools:l,profiles:f,current:g,setModel:d,envs:_,environment:y,setEnvName:s,choice:b}}function Ya({c:e}){let[t,n]=(0,G.useState)(``);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`div`,{className:`relative`,children:[(0,K.jsxs)(R,{variant:`ghost`,className:`max-w-[40vw] px-2 text-[15px] sm:px-2.5`,"aria-expanded":t===`env`,"aria-haspopup":`menu`,"aria-label":`Environment: ${e.environment||`none`}`,onClick:()=>n(t===`env`?``:`env`),children:[(0,K.jsx)(pe,{"aria-hidden":`true`}),(0,K.jsx)(`span`,{className:`hidden truncate sm:inline`,children:e.environment||`Environment`}),(0,K.jsx)(F,{size:16,"aria-hidden":`true`,className:`hidden sm:block`})]}),(0,K.jsx)(ia,{open:t===`env`,onClose:()=>n(``),label:`Environment for this chat`,role:`dialog`,side:`auto`,className:`left-0 w-[min(400px,calc(100vw-48px))]`,children:(0,K.jsx)(qa,{envs:e.envs,current:e.environment,onPick:e.setEnvName})})]}),(0,K.jsxs)(`div`,{className:`relative`,children:[(0,K.jsxs)(R,{variant:`ghost`,className:`px-2 text-[15px] sm:px-2.5`,"aria-expanded":t===`tools`,"aria-haspopup":`menu`,"aria-label":`Tools`,onClick:()=>n(t===`tools`?``:`tools`),children:[(0,K.jsx)(Ie,{"aria-hidden":`true`}),(0,K.jsx)(`span`,{className:`hidden sm:inline`,children:`Tools`}),(e.tools.headed||!e.tools.code)&&(0,K.jsx)(`span`,{"aria-hidden":`true`,className:`size-1.5 rounded-full bg-accent`})]}),(0,K.jsx)(ia,{open:t===`tools`,onClose:()=>n(``),label:`Tools for this chat`,role:`dialog`,side:`auto`,className:`left-0 w-[min(380px,calc(100vw-48px))]`,children:(0,K.jsx)(Ha,{tools:e.tools,onChange:e.setTools})})]})]})}function Xa({c:e}){let[t,n]=(0,G.useState)(!1),r=e.profiles.find(t=>t.name===e.current)?.provider||``,i=e.current===`Auto routing`?void 0:Fa[r];return(0,K.jsxs)(`div`,{className:`relative min-w-0`,children:[(0,K.jsxs)(R,{variant:`ghost`,className:`max-w-[46vw] min-w-0 px-2 text-[15px] sm:px-2.5`,"aria-expanded":t,"aria-haspopup":`menu`,"aria-label":`Model: ${e.current}`,onClick:()=>n(!t),children:[i?(0,K.jsx)(i,{"aria-hidden":`true`,className:`size-4`}):(0,K.jsx)(me,{"aria-hidden":`true`}),(0,K.jsx)(`span`,{className:`hidden truncate sm:inline`,children:e.current}),(0,K.jsx)(F,{size:16,"aria-hidden":`true`,className:`hidden sm:block`})]}),(0,K.jsx)(ia,{open:t,onClose:()=>n(!1),label:`Model`,side:`auto`,className:`right-0 w-[min(400px,calc(100vw-48px))]`,children:(0,K.jsx)(Ua,{models:e.profiles,current:e.current,onPick:t=>{e.setModel(t),n(!1)}})})]})}function Za({chat:e,thread:t,ended:n,busy:r,snap:i,onError:a}){let[o,s]=(0,G.useState)(!1),c=t.model?.name||``;if(!c)return null;let l=H(i?.models.models),u=(t.models||[]).map(e=>({...e,note:String(H(l[e.name]).description||``)})),d=Fa[t.model?.provider||``],f=u.length<2;return(0,K.jsxs)(`div`,{className:`relative min-w-0`,children:[(0,K.jsxs)(R,{variant:`ghost`,className:`max-w-[46vw] min-w-0 px-2 text-[15px] sm:px-2.5`,disabled:n||r||f,"data-tip":f?`This chat has no other model to switch to`:r?`When ForgeQE has finished`:void 0,"aria-expanded":o,"aria-haspopup":`menu`,"aria-label":`Model: ${c}`,onClick:()=>s(!o),children:[d?(0,K.jsx)(d,{"aria-hidden":`true`,className:`size-4`}):(0,K.jsx)(me,{"aria-hidden":`true`}),(0,K.jsx)(`span`,{className:`hidden truncate sm:inline`,children:c}),!f&&(0,K.jsx)(F,{size:16,"aria-hidden":`true`,className:`hidden sm:block`})]}),(0,K.jsx)(ia,{open:o,onClose:()=>s(!1),label:`Model`,side:`auto`,className:`right-0 w-[min(400px,calc(100vw-48px))]`,children:(0,K.jsx)(Ua,{models:u,current:c,auto:!1,onPick:t=>{s(!1),t!==c&&Qt.model(e,t).catch(e=>a(e.message))}})})]})}function Qa({chat:e,thread:t,ended:n,snap:r,onError:i}){let[a,o]=(0,G.useState)(!1),[s,c]=(0,G.useState)({});(0,G.useEffect)(()=>c({}),[t.headed,t.writeTests]);let l={...za(r),headed:s.headed??t.headed??!1,code:s.code??t.writeTests??!0};return(0,K.jsxs)(`div`,{className:`relative`,children:[(0,K.jsxs)(R,{variant:`ghost`,className:`px-2 text-[15px] sm:px-2.5`,disabled:n,"aria-expanded":a,"aria-haspopup":`dialog`,"aria-label":`Tools`,onClick:()=>o(!a),children:[(0,K.jsx)(Ie,{"aria-hidden":`true`}),(0,K.jsx)(`span`,{className:`hidden sm:inline`,children:`Tools`}),(l.headed||!l.code)&&(0,K.jsx)(`span`,{"aria-hidden":`true`,className:`size-1.5 rounded-full bg-accent`})]}),(0,K.jsx)(ia,{open:a,onClose:()=>o(!1),label:`Tools for this chat`,role:`dialog`,side:`auto`,className:`left-0 w-[min(380px,calc(100vw-48px))]`,children:(0,K.jsx)(Ha,{tools:l,chat:{model:t.model?.name,provider:t.model?.provider},onChange:t=>{let n={};t.headed!==l.headed&&(n.headed=t.headed),t.code!==l.code&&(n.writeTests=t.code),Object.keys(n).length&&(c({headed:t.headed,code:t.code}),Qt.settings(e,n).catch(e=>i(e.message)))}})})]})}function $a({project:e}){return(0,K.jsxs)(`div`,{role:`status`,className:`flex w-full flex-wrap items-center gap-x-4 gap-y-3 border-y border-line py-4 short:gap-y-2 short:py-2.5`,children:[(0,K.jsx)(Vt,{icon:N,size:20,className:`flex-none text-accent-fg`}),(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_280px] flex-col gap-0.5`,children:[(0,K.jsx)(`span`,{className:`font-medium`,children:`Set up ForgeQE first`}),(0,K.jsxs)(`span`,{className:`text-sm text-muted [overflow-wrap:anywhere]`,children:[`Choose your project folder and set ForgeQE up in it. It is not set up in `,e,` yet.`]})]}),(0,K.jsxs)(`a`,{className:L(rn({variant:`primary`}),`short:min-h-8 short:px-3 short:text-[13px]`),href:zt(`settings`,`setup`),children:[(0,K.jsx)(_,{"aria-hidden":`true`}),`Set up`]})]})}function eo({c:e}){let t=La(e.machine,e.choice.profile);return t.length?(0,K.jsx)(`div`,{role:`status`,className:`flex w-full flex-col gap-3 border-y border-line py-4 short:gap-2 short:py-2.5`,children:t.map(e=>(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-4 gap-y-3 short:gap-y-2`,children:[(0,K.jsx)(Vt,{icon:N,size:20,className:`flex-none text-accent-fg`}),(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_280px] flex-col gap-0.5`,children:[(0,K.jsx)(`span`,{className:`font-medium`,children:e.title}),(0,K.jsx)(`span`,{className:`text-sm text-muted [overflow-wrap:anywhere]`,children:e.detail})]}),(0,K.jsxs)(`a`,{className:L(rn({variant:`primary`}),`short:min-h-8 short:px-3 short:text-[13px]`),href:e.to,"data-tip":e.fix,children:[e.fix.startsWith(`Add`)?(0,K.jsx)(r,{"aria-hidden":`true`}):(0,K.jsx)(tt,{"aria-hidden":`true`}),e.fix.split(` `)[0]]})]},e.title))}):null}var to=`forgeqe.regression.handoff`,no=`forgeqe.home.handoff`,ro={$comment:`ForgeQE's release notes, newest first: the web app's What's new and each GitHub Release. See RELEASING.md.`,releases:[{version:`2.10.0`,date:`2026-11-12`,summary:`Recordings capture drag and drop and browser dialogs and replay them the same way, Stop closes the browser at once, and dropdowns and hover menus replay reliably.`,changes:[{kind:`new`,title:`Drag and drop is recorded`,detail:`Dragging a card, moving a list item or map pin, or sliding a slider becomes one step in your recording. The replay drags with the mouse just as you did, so lists and maps that only start dragging once the pointer moves work too. Selecting text or sweeping over the page is not mistaken for a drag.`,to:[`record`]},{kind:`new`,title:`Browser dialogs are recorded`,detail:`Alerts, confirms and prompts now appear while you record, and your answer (OK, Cancel or the text you typed) becomes a step. The replay gives the same answer, checks the page showed the dialog, and dismisses any dialog the recording did not have.`,to:[`record`]},{kind:`fixed`,title:`Stop closes the browser at once`,detail:`Pressing Stop closes the recording's browser straight away, and ForgeQE saves the recording afterwards. Before, the window stayed open for several seconds while it saved, so Stop looked broken. A recording's video is no longer empty when a site moves the tab to its own process on the first page load.`,to:[`record`]},{kind:`fixed`,title:`Dropdowns and hover menus replay reliably`,detail:`A menu or time list that opens after a click is no longer recorded as a hover that is gone on replay. Locators leave out classes that change with the pointer, such as active or selected, so a picked item is found again on replay.`,to:[`record`]}]},{version:`2.9.9`,date:`2026-11-12`,summary:`Business assurance tests what people could make your business lose, maps draw as architecture diagrams, recordings explain every step, and personas open in a side panel with skills and knowledge of their own.`,changes:[{kind:`new`,title:`Business assurance`,detail:`A new agent tests your software the way customers, staff and opportunists would use it: over-refunds, coupons redeemed twice, rules bypassed on another journey, self-approval. It reads your product's rules, ranks the risks, and runs investigations on a test environment, saying what the business intended and whether it held. Findings are written for leaders, product, risk and engineering.`,to:[`agents`,`business`]},{kind:`new`,title:`Simulate a whole population`,detail:`Business assurance can build a population from your personas (mostly honest customers, some opportunists, a few insiders) and let it trade on a test environment over simulated days. Checks name who broke a rule, so a loss hidden in the totals shows up, for example 7 of 67 refunds paying back more than was paid. Ask why lets you question one person about what they did. The same seed always gives the same people.`,to:[`agents`,`business`]},{kind:`improved`,title:`Maps drawn as architecture diagrams`,detail:`The Code map, the Impact map and the Product page's links share one graph. Code map shows all your repositories as the product, with the data stores and systems they share, and opens a repository arranged by layer: front end, API, services, data access, with tests and shared code at the sides. The Impact map puts the changed files at the top and each step away below them.`,to:[`product`,`code`]},{kind:`improved`,title:`Recordings explain every step`,detail:`A recording's review shows what each step recorded: the element, the best locator and the others with whether each was unique, its frames, and what was typed (a password only by its variable). A recording started from the web app has a Stop button on the page. Every recording and re-run keeps a log. Checks picked from a step's picture now reach text inside web components and frames.`,to:[`record`]},{kind:`new`,title:`Personas with their own skills and knowledge`,detail:`A persona opens in a side panel, with Edit (or Copy to edit for a built-in one). It shows the skills and documents the persona uses, with suggestions to add. ForgeQE can write skills and knowledge just for that persona, when you save it or with Generate, used only when someone works as that persona. New persona is a side panel too, and the Persona pages are linked at the top right.`,to:[`agents`,`persona`]},{kind:`improved`,title:`A calmer, more consistent web app`,detail:`Pages change smoothly: the old page stays until the new one has its data, then fades over. The icon colour you choose in Appearance now reaches every icon, button, link and the entry you are on, without turning the page pale. Recent chats have icons, and Needs a look marks a failure with a clear bar in its colour.`,to:[`settings`,`appearance`]},{kind:`fixed`,title:`Token totals add up`,detail:`A chat's All agents total now stays the sum of its agents, instead of showing only the Orchestrator's use at the end of a turn. Each agent says the tokens it used and how full its context is, and every page words token breakdowns the same way.`}]},{version:`2.9.8`,date:`2026-11-12`,summary:`ForgeQE installs a test project's packages before running its tests, Cypress cases get Cypress tests, and agents ask you before they install, run or change anything they may not.`,changes:[{kind:`fixed`,title:`Cypress cases get Cypress tests`,detail:`A test case whose Framework line says Cypress is now written as a Cypress test, in the folder where your Cypress suite lives. A test in another framework is never run, kept or linked to the case, so a Playwright test no longer passes for a Cypress case.`},{kind:`improved`,title:`Packages installed before tests run`,detail:`When a test project's packages are missing, ForgeQE installs them with the project's own lockfile before the test runs. If a run says Cypress, a Playwright browser or a package is missing, it installs that once and runs again. A failed install stops the job with the reason in plain words and the command to run yourself.`},{kind:`new`,title:`Agents ask before they install, run or change`,detail:`Scribe, the healing agent and the API test writer no longer change your packages themselves. When they need a package, a command their shell refuses, or a change to package.json, requirements.txt or pyproject.toml, ForgeQE shows you exactly what it would do and acts only on a yes. A no, or a run nobody watches, changes nothing and the test is reported as blocked. A shell, a git push, .npmrc and lockfile edits are always refused.`,to:[`settings`,`code`]},{kind:`new`,title:`Choose how agent requests are answered`,detail:`Settings › Code › Help it gets › When an agent asks for more (code.requests): ask a person each time (the default), allow after ForgeQE's checks without asking, or refuse every request.`,to:[`settings`]},{kind:`improved`,title:`A simpler Persona agent page`,detail:`The Persona agent's page has one message box. Its own Agent chat is gone, because you use a persona from any agent's chat (/priya …). Personas is the first screen, and its tabs sit beside the persona count.`,to:[`persona`]}]},{version:`2.9.7`,date:`2026-11-11`,summary:`A suite no longer stops after its first case writes a test, and env.yaml variables that point to a .env secret are typed as that secret instead of its name.`,changes:[{kind:`fixed`,title:`A suite no longer stops after its first case writes a test`,detail:`Running test cases against an environment could hang once a passing case started writing its test, and every later case showed Not run: the suite was stopped. The suite now carries on through every case.`},{kind:`fixed`,title:`env.yaml variables that point to a .env secret`,detail:"A variable like TestPassword: password, ${NAME} or env:NAME was typed literally, so the browser agent typed the word password. It is now a secret: the value comes from that .env variable, is typed only on the environment's own sites and never appears in a brief or log. A literal password in env.yaml stays reported and is never copied into a converted env.yaml."}]},{version:`2.9.6`,date:`2026-11-11`,summary:`Search your documents and past chats without a vector database, a Knowledge agent you can correct, a recorder that handles frames, shadow DOM, uploads and CAPTCHAs, replays that wait for the page, and ServiceNow test cases.`,changes:[{kind:`new`,title:`Search your documents without a vector database`,detail:`ForgeQE splits your knowledge notes, documents and docs folders into sections and finds the ones that answer a question, with no embeddings or database to set up. Turn on the Document reader to let the model pick sections. Use forgeqe knowledge docs index, search and outline, or Ask the documents on the Knowledge page. PDF, Word and Excel are indexed when you ask.`},{kind:`improved`,title:`Agents read only the sections they need`,detail:`Skills and knowledge notes now reach an agent as the sections that fit its task, not whole files: 55 to 80% less text on the built-in skills. The same question to the Document reader is answered from its cache, with no model call.`},{kind:`new`,title:`Search what was said in every chat`,detail:`Typing three or more letters in All chats also searches what was said in every kept chat, the terminal's included, and opens a web chat at that turn. Terminal chats are now kept, with secrets taken out. In this chat lists the document sections the agent used.`,to:[`chats`]},{kind:`improved`,title:`Long chats carry over what matters`,detail:`A long chat reopened or moved to another model now sends its last four turns and the earlier turns about your new message in full, and every other turn as one line, instead of only the last 20 turns.`},{kind:`new`,title:`Knowledge agent: see what ForgeQE understood and correct it`,detail:`Ask the Knowledge agent what ForgeQE knows about your product, then correct it. Each change to a knowledge note, project skill, team prompt or product rule is shown as a diff and written only when you approve it. Where sources disagree, it asks which is right. Available from forgeqe knowledge chat, the chat and the Knowledge hub.`},{kind:`improved`,title:`Recorder handles frames, web components and canvases`,detail:`Steps inside frames, including another site's frame within a frame, are recorded and replayed. Menus inside web components no longer record as a click on the whole component, closed shadow roots are recorded too, and a canvas click keeps where it landed.`,to:[`record`]},{kind:`improved`,title:`Locators for buttons that repeat`,detail:`When the same button appears on every row or card (Remove, Book now), the recorder anchors it on the row or card by text only that one has, so a replay picks the right one even after the list is reordered.`,to:[`record`]},{kind:`improved`,title:`Uploads from anywhere`,detail:`A file picked from outside the project, such as Downloads, is copied into the recording. Browse buttons and files dropped on a drop zone are recorded and replayed. Hidden files, files named like credentials and files over 25 MB are still refused.`,to:[`record`]},{kind:`new`,title:`CAPTCHAs become one step a person solves`,detail:`A reCAPTCHA, hCaptcha, Turnstile, Arkose or GeeTest is recorded as one step, not its clicks. A replay with a visible browser waits up to 3 minutes for a person to solve it. The written test runs where the CAPTCHA is turned off and never tries to get round it.`,to:[`record`]},{kind:`improved`,title:`Replays wait for the page`,detail:`After every replayed step, the page gets up to 10 seconds to finish loading, finish its own background calls and clear any spinner the step brought up. Pages that only work once their data has loaded now pass. In the review you can add a wait after a step: until the page loads, until a text shows or goes, or a pause.`,to:[`record`]},{kind:`new`,title:`Checks that compare`,detail:`Change a check in the review to compare by is exactly, starts with, ends with, does not contain, matches a pattern, or a number that is equal, above, below or between two values, with case optionally ignored.`,to:[`record`]},{kind:`improved`,title:`Re-run history and step pictures`,detail:`Each re-run keeps a picture of the page after every step, and a failed step's opens by itself. The Runs tab lists the latest 30 re-runs, even after forgeqe web restarts, and the History tab is now called Versions. Videos open in a new tab.`,to:[`record`]},{kind:`new`,title:`ServiceNow test cases`,detail:`Read tests and their steps from ServiceNow Test Management by number, sys_id or query (read only). Set it up on Settings' ServiceNow card.`,to:[`settings`]},{kind:`improved`,title:`Test case ids found in the right system`,detail:`A test case id is looked up in the system it belongs to, from its prefix, a link or sources.id_routes. When more than one system could hold it, ForgeQE asks which instead of guessing.`},{kind:`fixed`,title:`Run one case from a Markdown file`,detail:`A Markdown file with common steps and a heading per case (5458-02, TC-3) can now run a single case, with the common steps included. A precondition is taken as met by the test data and no longer stops a run or fails one that reached the expected result. A typed password or one-time code is no longer shown in a step's line.`}]},{version:`2.9.5`,date:`2026-11-11`,summary:`Writing a test from a recording uses far fewer tokens: the coding agent no longer loops on re-reads and repeated edits, and a stopped job carries on fresh. Accessibility checks keep their zoom and no longer pass when nothing ran.`,changes:[{kind:`improved`,title:`The coding agent stops going round in circles`,detail:`When the coding agent re-reads files that have not changed or keeps editing the same files without running the test, ForgeQE stops it and asks for its test. code.repeat_after (default 6) and code.edit_after (default 8) set when, also in Settings. The planner keeps to 15 steps and no longer looks up the same thing twice.`,to:[`settings`]},{kind:`improved`,title:`A stopped or extended job carries on fresh`,detail:`Running a stopped job again, or raising its token budget, now starts a short new session from the job's brief, the agreed plan and the files already written, instead of re-sending the whole earlier conversation on every call.`},{kind:`improved`,title:`Live browser when the replay cannot get through`,detail:`When ForgeQE's replay of a recording cannot reach its last page, the coding agent gets the live browser from the start instead of patching steps blind.`},{kind:`fixed`,title:`Unattended writing no longer asks Carry on?`,detail:`A test written with nobody watching stops at code.max_tokens instead of asking. When a person is asked, Carry on? now says whether the test has been run yet and how many model calls the job made.`},{kind:`fixed`,title:`A stopped job says truthfully what it left`,detail:`A stopped job now lists the files it changed and whether the test ever ran. It no longer says Test run 1 failed or Test written when no test ran.`},{kind:`improved`,title:`See why GitHub Copilot calls cache so little`,detail:`With a Copilot model profile, each call logs a line with its input and cached tokens (never the prompt's text), and the low-cache notice points to it.`},{kind:`fixed`,title:`Accessibility checks keep their zoom and report honestly`,detail:`The low-vision persona's 200% zoom is kept after the page changes. A persona whose run broke (no model, no browser) is now Not tested and fails the check, and forgeqe a11y exits 1 instead of showing a pass. A stopped session lists the personas it never ran, and every persona run includes the axe-core rule checks.`}]},{version:`2.9.4`,date:`2026-11-11`,summary:`Business personas any agent can act as (/priya, /sam and more), BDD skills for Gherkin feature files, Dynamics 365 know-how for the browser agent and Scribe, and project logos that fit the sidebar by themselves.`,changes:[{kind:`new`,title:`Persona agent: test as the business would`,detail:`A business persona is someone who accepts the software the way the business does: a payments expert, an end user, a compliance specialist or an operations manager, each with what they check before they accept it. Five are built in, and the Persona agent drafts your own from a description.`,to:[`agents`,`persona`]},{kind:`new`,title:`/priya, /sam and other persona commands`,detail:`Start a message with a persona's command (/priya, /sam, /dana, /lee, /alex, or your own) in the terminal, forgeqe run or any web chat, and the agent works as that persona. The chat box suggests them after /.`,to:[`agents`,`persona`]},{kind:`new`,title:`Persona page`,detail:`The Persona agent's page has an Agent tab to describe a person and save the persona it drafts, a list of personas with what each checks, and Run as this persona. Each saved persona also gets a readable Markdown profile.`,to:[`agents`,`persona`]},{kind:`new`,title:`Share personas between projects`,detail:`Export personas as a file and import them in another project, from the page or with forgeqe persona export and import. An import adds only new personas, never replaces one, and is refused whole if anything in it is not a persona.`},{kind:`new`,title:`BDD feature files`,detail:`Tests can be written as Gherkin feature files for Reqnroll/SpecFlow, cucumber-js, playwright-bdd, Cucumber-JVM, behave or pytest-bdd. Before writing one, the agent asks whether you want a Scenario Outline with Examples, a Background and Rule blocks, and it writes scenarios from the acceptance criteria.`},{kind:`new`,title:`Dynamics 365 know-how`,detail:`The browser agent knows Dynamics 365's own names for its controls (site map, Quick Create, Quick Find, subgrids, lookups, business process flow and more), and tests written for D365 use reliable locators and wait for the page to settle.`},{kind:`improved`,title:`Project logos fit the sidebar by themselves`,detail:`Settings › Appearance › Logo size has Fit automatically, now the default: the logo is sized from its shape so it is seen and its words can be read. A logo with no project name fills the brand area, and a logo with its own background gets rounded corners instead of a second plate.`,to:[`settings`,`appearance`]}]},{version:`2.9.3`,date:`2026-11-11`,summary:`A redesigned Record page that follows each recording to its test, desktop recordings you can review and edit, video of recordings and replays, ForgeQE working on every Windows, and a hosted mode for forgeqe web.`,changes:[{kind:`improved`,title:`Record page redesigned`,detail:`Record now opens on headline numbers, the New recording form beside a short How it works, and a table of recordings with search and filters. Each row shows its test case, browser, duration and what it produced, with a menu to open, write the test, open the chat, read the steps or delete.`,to:[`record`]},{kind:`new`,title:`See the test written from each recording`,detail:`Every web recording says whether it has a test: No test yet, Writing the test, Test written with its file, Test out of date, Test not passing or Writing failed. Writing again updates that test instead of adding a second one.`,to:[`record`]},{kind:`improved`,title:`Writing a test carries on without you`,detail:`Writing a test from a recording keeps going when you leave the page, and the chat and the recording link to each other. It says why a writing failed, and Stop writing ends one. If the model cannot be reached, ForgeQE checks every 30 seconds for up to 15 minutes and carries on where it stopped.`,to:[`record`]},{kind:`new`,title:`Stop a recording's Re-run`,detail:`A re-run of a web recording now has Stop, so you no longer wait for every step to time out. The steps already done are kept and the result is marked stopped, not failed.`,to:[`record`]},{kind:`new`,title:`Review desktop recordings like web ones`,detail:`A desktop workflow opens in a review with Steps, Test data and Last run tabs. See how each step went on the last replay, add a check, wait or keys after a step, change or drop a step with a preview, and turn a typed value into test data or a secret.`,to:[`desktop`]},{kind:`new`,title:`A picture of each desktop step, and click it to add a check`,detail:`Desktop recordings and replays keep a picture of the app after each step. Click a control in the picture to add a check that it shows its text, or that it is there. A password field's text is never kept.`,to:[`desktop`]},{kind:`new`,title:`Video of recordings, replays and desktop runs`,detail:`Recordings by hand, re-runs and desktop runs now keep a video, and the review plays it. browser.video and desktop.video turn it off. Making a typed value a secret removes that recording's videos.`},{kind:`improved`,title:`Change or remove desktop apps, with arguments`,detail:`Desktop apps' list has Change (path, arguments, description) and Remove, which says first which workflows name the app. Adding an app now takes arguments too, typed as on a command line and never run through a shell.`,to:[`desktop`]},{kind:`new`,title:`Hosted mode for forgeqe web`,detail:`forgeqe web --port 8080 --public-url https://NAME serves a demo or security test through a TLS proxy that limits who gets in. It still listens only on 127.0.0.1 and needs its token. Anyone who gets through the proxy with the link can use ForgeQE and its credentials, so give that server test credentials only.`},{kind:`improved`,title:`Home starts from better requests`,detail:`Home's starters are now three requests written out in full (test cases; test cases and scripts; test cases, scripts and regression): type only your objective. What needs a look is a clear list of rows saying what each one opens.`},{kind:`improved`,title:`Tidier Tosca conversion header`,detail:`A conversion's header keeps Start again, Run and Report as buttons, with Re-import, CI, Pull request and Delete under More.`,to:[`tosca`]},{kind:`improved`,title:`Context and tokens shows the 30-day total`,detail:`The panel's This project section now opens with the project's 30-day token total, which leads to Settings › Tokenomics, and each row has its own icon.`},{kind:`fixed`,title:`ForgeQE works on every Windows`,detail:`Fixes for Windows x64 and ARM64: Tosca exports that could not be read, API tests losing their address, test commands built for the wrong shell, the Azure CLI not starting, short user folder names, and Edge's own new tab appearing at the start of a run. Every change is now tested on Windows too.`},{kind:`fixed`,title:`Git hooks stay off on Windows, and protected folders stay protected`,detail:`On Windows, a git hook in a folder any user could create could run during ForgeQE's own checkouts; it no longer can. The coding agent could also write to ForgeQE's run folder when it was on another drive; that is now refused.`}]},{version:`2.9.2`,date:`2026-11-10`,summary:`A Desktop apps page and a Desktop agent that replays, explores and accepts heals from the web app or chat, recording any desktop app by its path, Copy to edit for built-in skills, and safer project .env files and tool downloads.`,changes:[{kind:`new`,title:`Desktop apps page`,detail:`Quality Engineering › Automation › Desktop apps does what forgeqe desktop does: Workflows, Runs, and Machine and apps tabs, with Replay (variables, data rows, heal, new baselines), Explore and Set up in sheets. Accept a passed replay's heals from its run. Fix with the agent and Why did it fail open a chat.`,to:[`desktop`]},{kind:`new`,title:`Desktop agent in chat`,detail:`The Desktop agent has its own agent page, and in chat it can list workflows and runs, validate a workflow, replay with data rows, accept a passed replay's heals and set up the engine (asking first for anything that changes something).`},{kind:`new`,title:`Record any desktop app`,detail:`Record's app list ends with Another app…: type the program's path or pick it with Browse, name it, and ForgeQE adds it to the environment's apps and records it. Machine and apps has Add an app too. Only a real program file is accepted, never a .bat, .cmd or script.`,to:[`record`]},{kind:`new`,title:`Copy to edit a built-in skill`,detail:`A built-in skill's panel offers Copy to edit: save the project's own copy under the same name, with its reference files, and it replaces the built-in one in this project.`,to:[`skills`]},{kind:`fixed`,title:`Scheduled custom agents keep their request`,detail:`A schedule ran agent run <id> --unattended with no request, because the request was read as the switch's value. It now runs with the request it was given.`,to:[`agents`]},{kind:`fixed`,title:`Sidebar foot stays in view on laptops`,detail:`On laptop-sized windows in some browsers the sidebar ran past the window and hid Settings, Help and Dark/Light. It now fits in every browser.`},{kind:`fixed`,title:`A malformed address no longer blanks the web app`,detail:`An address like #/regression/%E0 left a blank app. Pages now read it safely, and a page that fails to draw shows a short note in its place instead of taking the app down. Errors in ForgeQE's own code now answer 500, not 400.`},{kind:`improved`,title:`A project's .env cannot run other code`,detail:`A cloned repository's .env can no longer set NODE_OPTIONS=--require, LD_PRELOAD, PYTHONSTARTUP, GIT_SSH_COMMAND and similar names that make every program ForgeQE starts load other code. Keys, proxies and CA files load as before; the shell and ForgeQE's own .env are unchanged.`},{kind:`improved`,title:`Downloaded tools need a matching checksum`,detail:`The agent runtime and uv install only when their SHA-256 matches one pinned in ForgeQE. A download whose checksum cannot be checked (a rate limit, a proxy) is refused instead of installed unchecked.`}]},{version:`2.9.1`,date:`2026-11-10`,summary:`Tosca migration grows up: an assistant that sets it up in chat, API, desktop, mobile and database steps converted, batches, CI pipelines and pull requests. Settings › Secrets keeps every secret and pulls from Azure, Google and AWS vaults.`,changes:[{kind:`new`,title:`Tosca assistant`,detail:`The Tosca page opens on an Agent tab. Say what to migrate in your own words; the assistant asks only what it still needs (exports, framework, language, where the tests start, the app or database the cases use, the secret behind each test variable) and opens the wizard on Review with every stage filled in. It can clone exports from a git repository, and conversations survive a restart.`,to:[`tosca`]},{kind:`new`,title:`Tosca converts API, desktop, mobile, database and file steps`,detail:`API test cases become API tests. Desktop and mobile test cases become ForgeQE workflows, written by code with no model, with their test data in a .data.csv and secrets typed from variables; inside a web test they are replayed at their step. Read-only database queries become checks with the target's own client (values bound as parameters), and file and Excel reads become checks. Mixed test cases convert their web and API steps and mark the rest for a person; anything that writes stays for a person.`,to:[`tosca`]},{kind:`new`,title:`Know what can be migrated before you start`,detail:`Every test case of an export is sorted by kind with what becomes of it (also as a CSV), Ready to run checks what the run needs before Start, and Review estimates the conversion's tokens and cost.`,to:[`tosca`]},{kind:`new`,title:`Several exports, batches and re-import`,detail:`A plan can read many .tsu files or a folder of them (duplicates converted once). Convert in batches (--batch N) checks each batch before the next. Read exports again (forgeqe tosca reimport) brings in what changed, and tosca-map.json traces each Tosca test case by its id to its test and last outcome.`,to:[`tosca`]},{kind:`new`,title:`Tosca test data from a data file`,detail:`Name Tosca's Export to Excel of a test sheet, or any CSV, Excel or JSON file, on Review (or forgeqe tosca data) and {XL[...]} values are filled from it instead of left for a person.`,to:[`tosca`]},{kind:`new`,title:`CI pipelines and pull requests for a conversion`,detail:`forgeqe tosca ci (or the CI pipeline sheet) writes a GitHub Actions or Azure Pipelines file with one job per execution list, plus replay jobs for desktop and mobile workflows. Pull request on a finished conversion (or forgeqe tosca pr) commits the target folder on ForgeQE's own branch without touching your checkout.`,to:[`tosca`]},{kind:`improved`,title:`Tosca report built for thousands of test cases`,detail:`One compact summary on top, test cases grouped as Failed, Needs attention, Passed, Not run and Left out, searchable, 50 at a time. Every test run keeps a failure screenshot and a video by default. Download the HTML report as a zip with every video. Activity groups its log by unit, with search and filters. A stopped or failed conversion can be started again from its page.`,to:[`tosca`]},{kind:`new`,title:`Settings › Secrets and vaults`,detail:`Every saved secret by name in one place: add, replace or remove; a value is never shown again. Connect Azure Key Vault, Google Secret Manager or AWS Secrets Manager (browser sign-in recommended), browse names and pull a value straight into the credential store. Export vault connections, without values, for teammates to import. Repository tokens are a filter here, and the suggested token name is now REPO_TOKEN.`,to:[`settings`,`secrets`]},{kind:`fixed`,title:`Desktop replay on Windows`,detail:`Replay brings the app forward and refuses to click or type while another program's window is in front, types text as keys (Save dialogs), and no longer stops when healing is off or its model cannot be used. A heal is remembered only from a replay that passed. Recording by hand catches the OK that closes a dialog.`},{kind:`fixed`,title:`Sidebar and browser detection fixes`,detail:`A shell starting a browser is no longer counted as a browser, and the sidebar no longer falls back to tiles because its icons were mis-measured.`}]},{version:`2.9.0`,date:`2026-11-10`,summary:`Browsers start on locked-down PCs (through Playwright, or attached to one you opened), forgeqe doctor browser explains a failed start, the sidebar keeps your recent chats and pages, and one 30-day token figure across the app.`,changes:[{kind:`new`,title:`Start the browser through Playwright, or attach to your own`,detail:`browser.launch in forgeqe.yaml (and Settings › Browser) is auto, direct, playwright or attach. Auto starts the browser directly and, once this computer stops that, through ForgeQE's own Playwright; what worked is remembered. Attach connects to a browser you started with --remote-debugging-port (browser.attach_port, this computer only) and never closes it. A browser started through Playwright now looks to a site like one started directly.`,to:[`settings`,`browser`]},{kind:`new`,title:`forgeqe doctor browser`,detail:`Tries each way of starting the browser and writes .forgeqe/reports/browser-check-<time>.md with each start's log, the browser policies that block automation, security software, and (on Windows) AppLocker and code integrity events about browsers. Send it when a browser will not start on a managed PC.`},{kind:`fixed`,title:`No browsers left running after a failed start`,detail:`Browsers a failed start leaves behind (relaunched by a launcher, or by a stopped Playwright) are closed right away and checked again over the next minute. A browser on any other profile, yours included, is never touched. A slow first start also gets one more try.`},{kind:`fixed`,title:`Windows update no longer loops`,detail:`On 2.8.x, forgeqe update on Windows could open and close command windows forever without updating. The update now runs once, waits up to 5 minutes for ForgeQE to exit, and clears the stuck scripts an earlier update left behind.`},{kind:`fixed`,title:`Recordings no longer stall when a step leaves the page`,detail:`A click that submitted a form or followed a link could crash Chrome's page renderer about one time in ten, leaving the recording waiting until it timed out. It no longer does.`},{kind:`new`,title:`Recent chats and pages in the sidebar`,detail:`The sidebar lists your recent chats below the main options at every level, and inside a chat shows its last chats under Chat history. Every landing page and category shows its pinned pages and the ones you opened lately. Agents › Chat lists as many chats as fit, a page at a time, with search.`,to:[`browse`]},{kind:`new`,title:`Search Administration`,detail:`A search box on Administration finds its pages and any setting by name or forgeqe.yaml key, and opens its section.`},{kind:`improved`,title:`One token figure across the app`,detail:`The workspace panel, Tokenomics and Cost now share one 30-day window and one total, so chats are counted on Tokenomics too (they showed 0 before). Test-run figures sit below under Test runs, and Cost shows the amount charged at the time beside today's price.`,to:[`settings`,`tokenomics`]},{kind:`improved`,title:`Settings as text`,detail:`Settings › Files is now Settings as text: forgeqe.yaml, llms.json and env.yaml as they are on disk, laid out with the page, with Save always at the foot of the window.`,to:[`settings`]},{kind:`improved`,title:`Shorter buttons, one icon per action`,detail:`Buttons across the web app and the HTML report have short labels and one icon for each kind of action, icon-only where space is short. Checkboxes are animated, and scrollbars are thin and appear only while an area scrolls.`},{kind:`fixed`,title:`Terminal replies no longer flicker blank`,detail:`On a busy machine a reply in the terminal could show empty for a moment while it was highlighted. The words now appear at once and the highlighting follows.`}]},{version:`2.8.9`,date:`2026-11-09`,summary:`Pick the local browser in Settings, wait out a browser launcher handover, and hold every custom-agent sub-agent to the agent's limits.`,changes:[{kind:`new`,title:`Pick the local browser in Settings`,detail:`browser.local_browser in forgeqe.yaml (and Settings › Browser) chooses Automatic (Chrome, then Edge, then Playwright's Chromium), or Chrome, Edge or Chromium alone. It applies to runs, recordings and forgeqe login. A path in BROWSER_USE_EXECUTABLE_PATH still wins.`,to:[`settings`,`browser`]},{kind:`fixed`,title:`Wait when a launcher starts the real browser`,detail:`On some managed Windows PCs the process ForgeQE starts exits after opening another browser on the same DevTools port. ForgeQE now waits for that browser (up to 90s) instead of failing when the launcher exits, and logs each step of the start.`},{kind:`improved`,title:`Every sub-agent a tool starts respects the agent's limits`,detail:`Custom agents' "agents it may start" now covers tools that start a sub-agent without listing it before (DB agent, test planning, product knowledge, defect analysis). The editor offers those agents and warns when a capability needs one the draft does not allow.`,to:[`agents`]},{kind:`fixed`,title:`Safer custom agent pack import`,detail:`Importing a zip refuses oversized or hostile entries, linked paths out of the project, and overwriting another agent's notes. Knowledge and skills are written only inside the project.`,to:[`agents`]}]},{version:`2.8.8`,date:`2026-11-09`,summary:`Fall back when Chrome will not start, category landing pages with what needs a look, and a unique icon for every agent.`,changes:[{kind:`fixed`,title:`Try Edge or Chromium when Chrome will not start`,detail:`Runs, recordings and forgeqe login fall back to Microsoft Edge, then Playwright's Chromium, when installed Chrome closes before it can be driven or does not answer. The report names the browser used. Pin one with BROWSER_USE_EXECUTABLE_PATH, or set BROWSER_USE_FALLBACK=0 to keep that browser only.`},{kind:`improved`,title:`Landing pages show what needs a look`,detail:`Each category's landing page lists what needs attention there and the built-in agents that work in it. Everything shows every category's. Home's suggestions come from more of ForgeQE, and Sign-ins, Environments and Set up no longer say the agents only test.`,to:[`browse`]},{kind:`improved`,title:`Own icons for Agents, Quality Engineering and AI Assurance`,detail:`The three sidebar categories each have a ForgeQE-drawn icon, matching the rest of the nav.`,to:[`browse`]},{kind:`improved`,title:`A unique icon for every agent`,detail:`No two agents on Agents or Settings › Routing share an icon. Chat-only agents (builder, bug report, Evidence and others) have their own faces instead of the Helper. Tooltips keep your agent.app_name when the page is renamed.`,to:[`agents`]}]},{version:`2.8.7`,date:`2026-11-09`,summary:`Delete a custom agent from Details, and a shorter Versions history.`,changes:[{kind:`new`,title:`Delete a custom agent`,detail:`Details opens Delete under Versions. Type the agent id to confirm. It removes the manifest, approved versions, runs, waiting approvals and its schedule job. Knowledge files and skills it named stay. forgeqe agent delete does the same at the terminal.`,to:[`agents`]},{kind:`improved`,title:`Shorter Versions history`,detail:`The current version shows a Running pill. Who approved it uses your git name when set, and long GitHub noreply emails shorten to the username with · web when done in the app.`,to:[`agents`]}]},{version:`2.8.6`,date:`2026-11-08`,summary:`A custom agent's page uses the same ask box and layout as ForgeQE's own agents.`,changes:[{kind:`improved`,title:`Custom agent page like the API agent`,detail:`One large icon, name and description, then the shared chat composer (environment, tools, Refine, model). Starter pills and what it needs sit below. Export, Details and Edit stay as icon buttons; Details opens a right-side panel for reach, versions and runs.`,to:[`agents`]}]},{version:`2.8.5`,date:`2026-11-08`,summary:`Custom agent page matches Jobs, searchable Phosphor and Lucide icons, and chat no longer shows the model price mismatch note.`,changes:[{kind:`improved`,title:`Custom agent page like Jobs`,detail:`An agent's page centres on try and ask, with icon-only Export, Details and Edit. Details opens a right-side panel for reach, versions, runs and approve or disable.`,to:[`agents`]},{kind:`improved`,title:`Search Phosphor and Lucide for agent icons`,detail:`The icon picker searches ForgeQE's faces plus Phosphor and Lucide by name, shows the top ten matches, and offers Show more. Manifests keep only safe ph: and lucide: ids.`,to:[`agents`]},{kind:`fixed`,title:`No price mismatch note when chat starts`,detail:`Opening forgeqe chat no longer prints the Note about llms.json prices not matching the provider. Other commands still show it when the catalog is off.`}]},{version:`2.8.4`,date:`2026-11-08`,summary:`Custom agents: share a zip across projects, and pick an icon from ForgeQE's set.`,changes:[{kind:`new`,title:`Export and import a custom agent`,detail:`Export to share packs agent.json with its knowledge files and skills into a zip. Import agent (or forgeqe agent import) always creates a draft to edit, try and approve. Environments and systems stay in the target project. Same-repo teams still commit .forgeqe/agents.`,to:[`agents`]},{kind:`new`,title:`Icon for each custom agent`,detail:`The builder and editor let you pick one of ForgeQE's agent icons. The Agents list and the agent's page show it; a manifest without an icon uses the Helper face.`,to:[`agents`]}]},{version:`2.8.3`,date:`2026-11-08`,summary:`Tosca report: searchable test list, structured LLM usage, and the failed stage only — no progress bar on a finished conversion.`,changes:[{kind:`improved`,title:`Report scales to many test cases`,detail:`The conversion report lists test cases in a searchable, filterable table (all, needs attention, converted) with paging. Pick a row for Tosca steps, output, and failure screenshots or video instead of scrolling one card per case.`,to:[`tosca`]},{kind:`improved`,title:`LLM usage as labeled figures`,detail:`The report sidebar shows model, tokens (read, cached, written), and cost as rows — not the long CLI usage line with pricing footnotes.`,to:[`tosca`]},{kind:`improved`,title:`Failed stage instead of a progress bar`,detail:`A finished report no longer repeats the Prepare–Review stage row. If a stage failed, one line names that stage and its note.`,to:[`tosca`]}]},{version:`2.8.2`,date:`2026-11-08`,summary:`Tosca: a full-page conversion report with total time, LLM usage and cost, per-test fidelity, and failure screenshots or video.`,changes:[{kind:`new`,title:`Full-page Tosca conversion report`,detail:`Report opens a dedicated page for the conversion instead of a Markdown sheet. It shows total time, model and token cost, every test case with fidelity and output, environment variables to set, and steps a person still has to finish.`,to:[`tosca`]},{kind:`new`,title:`Failure screenshots and video on the report`,detail:`When a converted Playwright test fails, ForgeQE keeps its screenshot and short video under the plan and shows them on the report. New conversions ask Playwright for only-on-failure screenshots and retain-on-failure video.`,to:[`tosca`]},{kind:`improved`,title:`tosca.md includes time and LLM cost`,detail:`The Markdown report written for the CLI and downloads now lists total time, the model, and a readable token and cost line alongside the test table.`}]},{version:`2.8.1`,date:`2026-11-07`,summary:`Tosca: confirming Start opens the running overview at once, and conversion progress stays within 100%.`,changes:[{kind:`fixed`,title:`Confirming Start opens the overview`,detail:`After you type the plan id and start a Tosca conversion, the page leaves the confirm sheet and shows the running overview instead of staying on the plan. A running result is written as soon as the job starts so the list and progress update immediately.`,to:[`tosca`]},{kind:`fixed`,title:`Conversion progress never exceeds 100%`,detail:`The Tosca list and overview counted finished files against the number of test cases only, so exports with many page objects could show 133% or more. Progress now uses every planned unit and stays at most 99% while running.`,to:[`tosca`]},{kind:`improved`,title:`Tooltips use a grey surface`,detail:`Tooltips and the Reports day tip use the muted surface colour so they read clearly on both light and dark themes.`}]},{version:`2.8.0`,date:`2026-11-07`,summary:`Tosca and Migration: Stop ends a stuck run, delete old plans from the page, Cloud exports keep their locators, and __pycache__ no longer looks like an outside edit.`,changes:[{kind:`fixed`,title:`Stop ends a Tosca or Migration run`,detail:`Stop sends SIGTERM the conversion handles, and settles a result left as Running after the process is already gone, so the page does not keep offering Stop with nothing to stop.`,to:[`tosca`]},{kind:`new`,title:`Delete an old Migration or Tosca plan`,detail:`On a plan's page, Delete removes it from the list after you type its id. Converted tests in the target folder stay; a running job must be stopped first.`,to:[`migration`]},{kind:`fixed`,title:`Tosca Cloud exports keep their locators`,detail:`Cloud .tsu files that omit the reverse XParam link no longer convert with empty page objects. ForgeQE fills ExtendableObject the same way it already fills missing TestStep links.`,to:[`tosca`]},{kind:`fixed`,title:`Bytecode caches are not outside edits`,detail:`Python __pycache__ and similar junk are ignored when ForgeQE checks that the agent wrote only inside the target folder, so conversions are not blocked by false Put them back messages. The Tosca export itself is protected the same way.`,to:[`tosca`]}]},{version:`2.7.9`,date:`2026-11-07`,summary:`Tosca conversion reads Tosca Cloud exports and opens browser tests that use OpenUrl and CloseBrowser, so web cases can start instead of showing Mixed or Not supported.`,changes:[{kind:`fixed`,title:`Tosca Cloud exports read their steps`,detail:`Some Tosca Cloud .tsu files list step values only on the step, without the reverse link Commander exports. ForgeQE fills that link before reading, so those exports show real actions, checks and page objects instead of empty Web cases.`,to:[`tosca`]},{kind:`fixed`,title:`OpenUrl and CloseBrowser stay on the web route`,detail:`Tosca's Framework OpenUrl and CloseBrowser modules no longer mark an otherwise Html test as Mixed or Not supported. They become navigate and close steps; TBox Wait becomes a wait. Json and Xml engines show as API (later), not Not supported.`,to:[`tosca`]},{kind:`improved`,title:`Web cases with a few non-web notes can start`,detail:`A test that is mostly web, with only unsupported extras such as mail or screenshots left as marked comments, can be picked and started. Pure API, desktop and other non-web routes still wait for a later version.`,to:[`tosca`]}]},{version:`2.7.8`,date:`2026-11-07`,summary:`Change impact gains Product and Internal views, readiness and pull-request links, and forgeqe web answers on a .localhost name without picking a port.`,changes:[{kind:`improved`,title:`Change impact: Product and Internal`,detail:`Browse a change in two views: Product for how it spreads through the business, and Internal for the whole repository as Graph and Code. Each change sits beside how it spreads, with counts and areas by severity and priority.`,to:[`impact`]},{kind:`improved`,title:`Change impact: readiness and pull requests`,detail:`See readiness, history, effort and confidence on the page, with pull requests, missing tests and links. ForgeQE reads what a change does before it traces impact, and forgeqe impact runs the same analysis from the terminal.`,to:[`impact`]},{kind:`improved`,title:`Change impact layout`,detail:`Compact cards in one row, areas, changes and the files map as tabs, a labelled view toggle, and keyboard focus on an opened area. Regression areas read as plain sentences.`,to:[`impact`]},{kind:`new`,title:`forgeqe web behind a local proxy`,detail:`Serve the app at a .localhost name (for example through portless) without choosing a port yourself. Host and Origin checks still bind to this computer only.`},{kind:`fixed`,title:`Change impact review fixes`,detail:`Security and UI consistency fixes from review on the Change impact pages.`}]},{version:`2.7.7`,date:`2026-11-07`,summary:`Ten new quality pages (flaky tests, release readiness, cost and more), data-driven tests and MFA sign-ins, wider API and cloud testing, desktop replay on macOS and Linux, and a far more reliable mobile agent.`,changes:[{kind:`new`,title:`Flaky tests and run diff`,detail:`Runs › Flaky tests scores each test by how often it flips, passes only on retry or varies in run time, names the likely cause, and quarantines or heals it. Runs › Run diff lines up two runs step by step and shows the first difference that matters.`,to:[`flaky`]},{kind:`new`,title:`Release readiness`,detail:`One verdict for a release from the regression pack, untested changes, the tracker, flaky tests, quality, security and Evidence, with a sign-off record. The agent can work out the verdict; signing off stays with a person.`,to:[`readiness`]},{kind:`new`,title:`Test debt`,detail:`Untested code and business rules, tests that never fail or test nothing that exists any more, near-duplicate tests, and cases not yet automated, in one place.`,to:[`test-debt`]},{kind:`new`,title:`Feature-flag matrix`,detail:`Read your flags from env.yaml, LaunchDarkly or Unleash (read only) and run the regression pack for each combination, all of them or pairwise.`,to:[`flags`]},{kind:`new`,title:`Production signals`,detail:`Errors from Sentry, Datadog and Application Insights, with which of them no test covers. Record a repro of one straight from the list.`,to:[`production`]},{kind:`new`,title:`Security smoke checks and localization`,detail:`Quality › Security checks headers, CSP, cookie flags, mixed content, open redirects, CORS and keys in answers, passively. Quality › Localization finds keys shown as text, English left in other languages and cut-off text, with pseudo-localized and right-to-left stress runs.`,to:[`quality`,`security`]},{kind:`new`,title:`Exploratory sessions and cost`,detail:`Test › Exploratory runs a session with a goal, a cap on charters and a time limit. Results › Cost shows spend by agent, job, model and day, the router's picks, and what each pack run cost.`,to:[`explore`]},{kind:`new`,title:`Data-driven tests`,detail:`A test case runs once per row of a CSV, Excel or JSON file, a read-only query or a kept DB agent request, with values as {{row.column}}. Each row is its own run; the case fails if any row fails. Written tests read every row from one parameterised test, and Try it on the Record page plays up to 20 rows.`,to:[`test-cases`]},{kind:`new`,title:`MFA sign-ins`,detail:`Saved logins handle authenticator codes, codes sent by email, text or a test address, security keys and passkeys, and push approvals (the run waits for a person). A login column gives each row its own user. Codes are never shown to the model.`},{kind:`new`,title:`API testing: streams, OAuth2, mTLS, load and security`,detail:`gRPC streaming, GraphQL subscriptions, WebSocket and SSE contracts. OAuth2 client credentials and client certificates. forgeqe api load reports latency and error rate for read-only calls (never production); forgeqe api security checks an API you own against the OWASP API Top 10. The mock adds rules, stateful CRUD and faults, and Pact contracts import.`,to:[`api-tests`]},{kind:`new`,title:`Cloud testing for Azure, AWS and Google Cloud`,detail:`Agents know each cloud's SDK and its emulators. An env.yaml environment names its subscription, account or project (cloud:), editable in Settings › Environments. AWS and Google Cloud MCP servers read resources, and the cloud-verifier agent template checks a run's effects in the cloud without changing anything.`,to:[`settings`,`environments`]},{kind:`new`,title:`Desktop replay on macOS and Linux`,detail:`Desktop workflows replay through agent-desktop on macOS, Linux and headless Windows, with the same healing, memory and reports. desktop.driver: auto picks it outside Windows. Apps can be a macOS .app or a Linux program; explore and recording stay on Windows.`,to:[`settings`,`desktop`]},{kind:`new`,title:`Mobile: drag and drop, and real iPhones`,detail:`The mobile agent drags one control onto another (a puzzle piece onto its slot), saved as a drag step and replayed on Appium. iOS runs on TestMu's real iPhones and simulators: a permission prompt is closed when it shows and never fails a device where it doesn't.`,to:[`settings`,`mobile`]},{kind:`improved`,title:`A far more reliable mobile agent`,detail:`Swipes and scrolls move React Native carousels and pages that ignored them. An explore stops after a few actions that change nothing instead of spending its budget, records checks before a dialog closes, and keeps only checks a replay can see. iOS sees only controls on screen and keeps app alerts open for checks.`,to:[`settings`,`mobile`]},{kind:`improved`,title:`Mobile runs on several devices`,detail:`Each step line names its device, each failed device says which step failed, and a device TestMu reports unavailable is skipped for the rest of a suite instead of costing ten minutes per workflow. mobile doctor checks TestMu's hub and sign-in when every device is in the cloud.`,to:[`settings`,`mobile`]},{kind:`improved`,title:`Settings changes without a restart`,detail:`forgeqe web keeps working while you edit forgeqe.yaml, llms.json, env.yaml or .env: a half-saved file keeps the last good settings, the page offers to show the changes, open chats can switch to them, and .env values reload. After forgeqe update, Settings › About restarts the server on the same port.`,to:[`settings`,`about`]},{kind:`improved`,title:`Large logos are shrunk`,detail:`Settings › Appearance makes a PNG, JPEG or WebP logo up to 20 MB smaller in the browser instead of refusing anything over 512 KB.`,to:[`settings`,`appearance`]},{kind:`improved`,title:`Data page tabs and database chips`,detail:`The Data page's tabs wrap on a phone and take the arrow keys. A read-only database shows green with a tick, a writable one in amber with a pencil.`,to:[`data`]},{kind:`fixed`,title:`Two runs started at once no longer share a folder`,detail:`Mobile and desktop runs started in the same second each get their own report folder; one no longer overwrote the other's workflow.`},{kind:`fixed`,title:`A missing secret stops a mobile replay at once`,detail:`A replay that types a secret which is not set, or not listed, stops in seconds with what to set, before a cloud device is taken.`},{kind:`fixed`,title:`Agent tabs keep the message box at the bottom`,detail:`Before the first message, the Agent tabs of Jobs, Regression, API tests, Accessibility, Performance and Visual showed the message box in the middle of the window. API tests now lines up with the other pages.`}]},{version:`2.7.6`,date:`2026-11-06`,summary:`Runs check the users, logins and values they need before the browser opens. Test cases use env.yaml values, recordings can be deleted, and the app fits laptop screens.`,changes:[{kind:`new`,title:`A check before every run`,detail:`Before a run or a set of test cases starts, ForgeQE checks that the test users, saved logins, apps and values they name exist in env.yaml and forgeqe.yaml. Anything missing is listed with how to fix it, by name only, never a value, and you choose to stop and add it or run anyway.`,to:[`runs`]},{kind:`new`,title:`env.yaml values in test cases`,detail:`Write {{var.NAME}} or {{app.NAME}} in a test case's title, steps or expected results, and the run fills in the environment's variable or the app's address. A case that names an app starts there. Secrets are never put into a case.`,to:[`test-cases`]},{kind:`new`,title:`Delete recordings`,detail:`Record › Recordings has a checkbox on each row and Delete selected. One confirmation lists what goes; tests already written from a recording stay.`,to:[`record`]},{kind:`improved`,title:`Edits to forgeqe.yaml and env.yaml apply mid-chat`,detail:`A chat, in the web app or the terminal, reads forgeqe.yaml and env.yaml again when either changes and carries the conversation on. An edit that no longer loads keeps the old settings and says why.`,to:[`chats`]},{kind:`improved`,title:`env.yaml says what it did not read`,detail:`Apps are found even in a file copied from the example with leftovers, an app's kind is worked out from what it has, and names match in any case. Anything ForgeQE could not read is listed by forgeqe apps and the agent instead of being dropped silently. Values written beside apps: are read as variables; a password there is reported and never used.`},{kind:`improved`,title:`Fits 13 and 14 inch laptops`,detail:`On laptop-sized windows the app draws slightly smaller, so Home, the sidebar and the agent tabs fit without scrolling. The sidebar's foot is one row: Settings, Help and Dark/Light. What's ready and What's new are now in Settings › Advanced.`,to:[`settings`]},{kind:`improved`,title:`ForgeQE's own engine and runtime`,detail:`Setup, forgeqe doctor and Settings name ForgeQE's browser engine and agent runtime, and the runtime keeps its data in ForgeQE's own folder. An earlier download is moved, not downloaded again. Agent sessions from before this update start fresh when resumed.`},{kind:`fixed`,title:`Open the web app in new tabs`,detail:`Links, bookmarks and typed addresses open in a new tab without signing in again: open tabs share the sign-in. A tab with nothing to sign in from now says so, instead of saying ForgeQE was restarted.`},{kind:`fixed`,title:`Re-running a chat's test keeps the right test`,detail:`Turning a run into code reuses an existing test only when most of the run's steps are found in it, so an unrelated test is no longer picked from one matching locator. A captcha's answer is worked out in the test, never copied from the run.`,to:[`chats`]},{kind:`fixed`,title:`A sign-in never types a secret's name`,detail:`When a login's values are missing, or the sign-in page is on a site the login does not list, the browser stops and says why instead of typing the placeholder into the page.`},{kind:`fixed`,title:`Mobile runs on TestMu and longer mobile flows`,detail:`Native app sessions on TestMu (LambdaTest) and other device clouds no longer fail because a browser name was sent with the app. A mobile explore run that is still making progress carries on past its step limit, as browser runs do, so a full sign-in flow finishes.`}]},{version:`2.7.5`,date:`2026-11-06`,summary:`Report a problem with ForgeQE from Settings, drafted from the session that went wrong. Browsers close after every run, and Windows works like macOS and Linux.`,changes:[{kind:`new`,title:`Report a problem`,detail:`Settings › Report a problem picks the recent session that went wrong and shows what ForgeQE found in its log: what was asked, ForgeQE's own errors and its failing checks. Draft the bug fills in the title, steps, expected and actual result, and asks only what the log can't show. You check the attachments (the log with secrets removed, ForgeQE's checks, screenshots) before anything is sent, and you don't need an Azure DevOps account. Copy as text works anywhere.`,to:[`settings`]},{kind:`fixed`,title:`No terminal windows during an update on Windows`,detail:`forgeqe update on Windows no longer opens extra terminal windows that had to be closed before the update could finish. It runs in one minimised window.`},{kind:`fixed`,title:`Browsers close after every run`,detail:`A finished, stopped or failed run closes the browser it opened, and the recorder's and sign-in browsers do too. On Windows, stopping a run, test or job now ends everything it started, not only its first process. A browser ForgeQE only connected to is never closed.`},{kind:`fixed`,title:`Windows works like macOS and Linux`,detail:`Links open safely on Windows, including links with & in them. Tools such as npx, az and gh start reliably, copying keeps non-English text, and the guides show PowerShell lines beside the macOS and Linux ones. The Requirement Agent installs and starts on Windows without reinstalling its packages every time.`},{kind:`fixed`,title:`Setup repairs a broken engine`,detail:`If an interrupted setup left the browser engine's environment broken, forgeqe setup rebuilds it instead of failing with "externally managed". The engine also uses a Python version it is tested on (3.13 on Windows) rather than the newest one installed.`}]},{version:`2.7.4`,date:`2026-11-06`,summary:`Change impact: see the features, journeys and tests a branch or commit range affects, on a map of the whole code in red, amber and green. Also a shorter sidebar with Ctrl+K search.`,changes:[{kind:`new`,title:`Change impact`,detail:`Test › Change impact compares two branches, tags or commits of a product repository and says what the change affects: each feature with its risk and the reasons for it, the journeys and business rules it touches, the tests to run and why, and what no test covers. Read from the product graph; nothing is run.`,to:[`impact`]},{kind:`new`,title:`Impact map`,detail:`The change drawn over the whole repository, file by file in its folders: red what it changed, amber what it affects (files that use it, and the services a front end's change calls), green the tests that reach it. Switch to Whole product to see every repository, or colour the files by how often they change in git. Click a file for the chain back to the change and the features it serves.`,to:[`impact`]},{kind:`improved`,title:`A shorter sidebar and Ctrl+K search`,detail:`Pages that showed the same work share one entry, so the sidebar goes from 28 entries to 19; pages of one entry link to each other beside their titles. Press Ctrl+K (or Search in the sidebar) to go to any page, agent, Settings section or setting by its name or its forgeqe.yaml key.`,to:[`settings`]},{kind:`improved`,title:`Know what stops a chat before you send it`,detail:`Home and the agents' pages say when a chat cannot start (the browser engine or agent runtime not installed, or the model without its key) and link to the Settings section that fixes it.`,to:[`chats`,`agents`]},{kind:`improved`,title:`Clearer pages`,detail:`Home links to runs that failed today, approvals waiting, failed jobs and runs going now. Empty pages offer the one action that fills them. Settings keeps the common sections in view and folds the rest under More settings. The agent groups are Advisers, Builders and Operators, and API tests gather the agent's actions under one Ask the agent menu.`,to:[`agents`,`runs`,`settings`]},{kind:`improved`,title:`Forget one flow or page`,detail:`Memory can forget a single flow or a single page, not only a whole site, and flows with no site can be cleared on their own. Each asks first and is written to the audit log.`,to:[`memory`]}]},{version:`2.7.3`,date:`2026-11-06`,summary:`A Code map of your product's files with seven views and a blast radius, product knowledge read by Graphify, Build and Refresh on the Product page, each agent run's prompt and output in Evidence, and icons in a colour of your choice.`,changes:[{kind:`new`,title:`Code map`,detail:`Product › Engineering › Code map shows every file of your repositories in seven views: Graph, Treemap, Matrix, Tree, Flow, Bundle and Cluster. The graph moves live: drag files, pan, and zoom with the wheel. Pick one repository to see its files grouped by folder. Click a file to see what uses it, what it uses, and every file a change to it would reach.`,to:[`product`,`code`]},{kind:`new`,title:`Product knowledge read by Graphify`,detail:`Building product knowledge now reads the code with Graphify, in about 40 languages: classes, functions, and who calls and imports whom. It also reads a repository's database schema, PDF, Word and Excel documents, and the comments that say why code exists. A service's page shows its modules and the parts most depended on.`,to:[`product`]},{kind:`new`,title:`Build and Refresh on the Product page`,detail:`Start or refresh the product's knowledge from the Product page and follow it on a progress bar, step by step and repository by repository. A running build also shows under Background tasks, with a Stop button.`,to:[`product`]},{kind:`new`,title:`Prompt and output of each agent run`,detail:`An agent run's page in Evidence shows what the agent was told (its system prompt), what it was asked, its final answer and what it said on the way, with each model call's model and tokens. Runs recorded from Langfuse and OpenTelemetry now keep the system prompt, with secrets cut out, and the token counts.`,to:[`evidence-runs`]},{kind:`new`,title:`Evidence demo in your project`,detail:`forgeqe evidence demo --project fills an empty Evidence section with a demo shop's made-up AI agents, so every Evidence page has something to show next to your product. It writes only while the project has no runs or contracts of its own.`,to:[`evidence`]},{kind:`new`,title:`Find missing packages`,detail:`Settings › Set up lists every package ForgeQE installs, with the version needed, the one installed and the command that fixes it. The same report is forgeqe doctor --packages.`,to:[`settings`,`setup`]},{kind:`new`,title:`Icon colour and Lucide icons`,detail:`Settings › Appearance › Icon colour draws the icons in black (white in dark mode), the buttons' colour, or a colour of your own; two-tone icons keep their shape with a pale second tone. Lucide joins the icon sets. Attaching in the chat box is now a plus.`,to:[`settings`,`appearance`]},{kind:`improved`,title:`How it is built, Journeys and Records`,detail:`The capability and record diagrams can be dragged and zoomed, and a large map opens on one capability at a time. A journey reads as a summary and numbered steps. A record shows its fields, with personal data marked, and what writes, reads and shares it.`,to:[`product`,`business`]},{kind:`improved`,title:`Clearer product maps`,detail:`The Landscape and Services maps put front ends, gateways, services, data and test suites in their own bands. A gateway shows its routes, and workers and test suites say what they are.`},{kind:`improved`,title:`Package updates`,detail:`The agent runtime, browser engine, Playwright, Copilot, the data engine's drivers and the desktop packages are updated to their latest versions.`},{kind:`fixed`,title:`Re-run on the Record page`,detail:`A recording made without Google Chrome, or in Docker, now re-runs: ForgeQE tries the run's own browser, then Chrome, Edge and an installed Chromium, instead of failing to start a browser.`,to:[`record`]},{kind:`fixed`,title:`More calls linked between repositories`,detail:`The product graph matches a call to the endpoint it reaches by the route's shape, reads request options written over several lines, and recognises database upserts and .NET message consumers.`}]},{version:`2.7.2`,date:`2026-11-05`,summary:`Convert Tricentis Tosca test cases with the new Tosca agent and page, past chats kept and carried on after forgeqe web restarts, and one flat icon style across the app.`,changes:[{kind:`new`,title:`Convert Tosca test cases`,detail:`The Tosca agent reads a Tosca .tsu export and, once you confirm its plan, writes one page object per Tosca module and one test per web test case, each Tosca step marked in the test so nothing is lost. Tests go under their Tosca folders and are tagged with the execution lists that run them. forgeqe tosca verify runs the converted tests again without a model.`,to:[`tosca`]},{kind:`new`,title:`Tosca page`,detail:`Under Test, after Migration: start a conversion in four steps (export and test cases, framework and language, instructions, review), follow each test's Tosca steps beside the converted code, and run the tests again, all of them or one suite at a time, with each test's output.`,to:[`tosca`]},{kind:`new`,title:`Past chats are kept`,detail:`Chats are saved in the project and are still listed after forgeqe web restarts, so a link to an earlier chat opens it. Send a message to an ended chat and it carries on with its earlier turns.`,to:[`chats`]},{kind:`improved`,title:`One icon style`,detail:`Pages, agents, buttons and menus use Phosphor icons, drawn in the text's colour so they read on any sidebar. Appearance also offers Solar Bold Duotone, or ForgeQE's 3D icons as before.`,to:[`settings`,`appearance`]},{kind:`fixed`,title:`Azure DevOps sign-in in Evidence`,detail:`An Azure DevOps address on dev.azure.com or visualstudio.com is treated as the cloud, so the Azure CLI sign-in is offered. A sign-in question already answered no longer comes back, and an answer cannot be sent twice.`,to:[`settings`,`evidence`]},{kind:`fixed`,title:`API calls in the product graph`,detail:`A call whose method comes from options built by a helper or held in a variable is read with its real method, such as POST, instead of GET.`}]},{version:`2.7.1`,date:`2026-11-05`,summary:`Set up Evidence in five steps, with repositories picked from your GitHub, Azure DevOps, GitLab or Bitbucket account, and forgeqe update now finds an older copy still running.`,changes:[{kind:`new`,title:`Repositories from your account`,detail:`In Settings, Evidence, add a GitHub, Azure DevOps, GitLab or Bitbucket account (Cloud or Data Center), sign in in the browser or with a personal access token, and pick its repositories from a list. Local clones and links can still be added by hand.`,to:[`settings`,`evidence`]},{kind:`new`,title:`Search through an MCP server`,detail:`The search service can be a service at an address, a tool of one of your MCP servers, or a command, with a search to try on the page.`,to:[`settings`,`evidence`]},{kind:`new`,title:`Add documents from the page`,detail:`Add Markdown and text documents in Settings, Evidence, and the product knowledge build reads them beside your folders, links, Confluence spaces and web apps.`,to:[`settings`,`evidence`]},{kind:`improved`,title:`Evidence set up in five steps`,detail:`Settings, Evidence walks through repositories, search, documents, the product and its knowledge, and building the graph, in that order. The search and knowledge folder settings move here from Agents.`,to:[`settings`,`evidence`]},{kind:`fixed`,title:`forgeqe update finds an older running copy`,detail:`When the ForgeQE you are running is older than the installs it finds, forgeqe update names it and the command that fixes it, instead of saying everything is up to date. On Windows, a pip install whose Python comes from the Microsoft Store is found and updated too.`}]},{version:`2.7.0`,date:`2026-11-05`,summary:`TestMu AI's tools for the agent with a browser sign-in, real logos for more systems in Settings, and quicker moves between Settings sections.`,changes:[{kind:`new`,title:`TestMu AI's tools`,detail:`Turn on TestMu AI's MCP server to give ForgeQE's agent HyperExecute, failure triage, SmartUI, accessibility and Test Manager. Sign in once in the browser; no key is needed. forgeqe auth login testmu offers the browser sign-in or the grid's user name and access key.`,to:[`settings`]},{kind:`improved`,title:`Real logos in Settings`,detail:`GitLab, Postman, Sentry, Xray, TestMu AI, Dataverse and Zephyr Scale show their own logos instead of plain icons.`,to:[`settings`]},{kind:`improved`,title:`Quicker moves in Settings`,detail:`Moving between Settings sections changes at once, without the whole page fading out and back in.`,to:[`settings`]}]},{version:`2.6.9`,date:`2026-11-05`,summary:`A fix for setup on 64-bit Windows, a model picker that holds any number of models, a separate Evidence section in Settings, and a more consistent look on every page.`,changes:[{kind:`improved`,title:`Pick any number of models per area`,detail:`In Settings, Routing, each area of work picks its models from a searchable list instead of a row of chips. Each agent shows its icon and what it does, and the order that decides which model a call gets is a numbered list.`,to:[`settings`]},{kind:`improved`,title:`Evidence has its own Settings page`,detail:`The product, its knowledge graph, repositories, documents and links, and the team's knowledge move from Agents to a new Evidence page in Settings. Agents keeps instructions, custom agents, capabilities and agent names.`,to:[`settings`]},{kind:`improved`,title:`Colours from a website`,detail:`Appearance reads more of a website's colours, up to 16 of them. A site that shows a bot check instead of its page is reported as turned away, rather than offering the check page's colours as the site's.`,to:[`settings`,`appearance`]},{kind:`improved`,title:`The same look on every page`,detail:`Every page uses one style for empty states, tabs and headings. Grey labels are easier to read, and long agent names wrap onto a second line instead of being cut off.`},{kind:`fixed`,title:`Setup on 64-bit Windows`,detail:`forgeqe setup no longer fails on 64-bit Windows when a 32-bit Python is installed: it uses a 64-bit Python instead.`}]},{version:`2.6.8`,date:`2026-11-05`,summary:`A tidier Settings, one standard for buttons and fields across the app, a page background colour, and an easier Runs page.`,changes:[{kind:`new`,title:`A page background colour`,detail:`Set a light background colour for the app in Appearance, or read one from your website or design file. Text and lines adjust so they stay readable.`,to:[`settings`,`appearance`]},{kind:`improved`,title:`A tidier Settings`,detail:`Every setting's control sits in the same column, so fields line up on every section. MCP servers are under AI, and Browser and Replays under Testing. Routing shows which model a call gets, and lists each area of work with its agents under it.`,to:[`settings`]},{kind:`improved`,title:`One standard for buttons and fields`,detail:`Buttons, text fields, dropdowns, search boxes, checkboxes and radios look and size the same across the app. Each view has at most one main button, and secondary buttons have an outline so they no longer look switched off.`},{kind:`improved`,title:`An easier Runs page`,detail:`Runs share the app's search, filters and pages. A run's next steps are clear buttons, and the open tab is kept in the address, so a link or a reload opens it again.`,to:[`runs`]},{kind:`improved`,title:`Easier to read`,detail:`Explanations use darker text, Home's animation settles after a few seconds, the side panel's Environment section has more room, and on a phone the workspace button no longer covers the page heading.`},{kind:`improved`,title:`Reading your website's look`,detail:`When a website turns ForgeQE's reader away, Appearance says so once and what to do instead.`}]},{version:`2.6.7`,date:`2026-11-04`,summary:`A lighter look without boxes, run pages that read cleanly, token counts for every agent in a chat, and a clearer view of how a test was written and reviewed.`,changes:[{kind:`improved`,title:`A lighter look across the app`,detail:`Pages, chat replies and run pages drop their boxes: each section is its heading and content, set apart by space and a thin line. A question still waiting for you keeps its highlight, so it stands out.`},{kind:`improved`,title:`Run pages that read cleanly`,detail:`A run's summary shows its final message once, each test as one result with its full command to copy, and the files the run wrote. The activity is a timeline with each event's time, and Details counts the tokens of every agent that worked on the run.`,to:[`runs`]},{kind:`improved`,title:`Tokens for every agent in a chat`,detail:`Context and tokens counts every agent that works in a chat, such as the Coding agent and the Engineering review agent, as each model call comes back. Today and Last 30 days count all of the project's chats, runs and agents.`},{kind:`improved`,title:`How a test was written and reviewed`,detail:`A chat shows ForgeQE handing a test to the Coding agent, with its work, test runs and reviews below. The reviewer, now called the Engineering review agent, shows its verdict and each issue next to the attempt it judged. Step icons show how a step went by their colour.`},{kind:`improved`,title:`Custom agent runs linked to their session`,detail:`A custom agent's recent runs link to the session they ran in on the Runs page.`,to:[`runs`]},{kind:`fixed`,title:`Times in the activity log`,detail:`Each line shows the time it happened, instead of the same +0:00 for every line.`},{kind:`fixed`,title:`Tooltips in chat`,detail:`Copy buttons, a test's full name and the model picker's reason use the app's own tooltip.`}]},{version:`2.6.6`,date:`2026-11-04`,summary:`Change a chat's model without starting over, and reports with your project's logo and a cleaner look.`,changes:[{kind:`new`,title:`Change the model mid-chat`,detail:`Pick another model from the chat's composer between messages, and the chat carries on with its conversation, tools and files. In the terminal, /profile does the same.`,to:[`settings`,`models`]},{kind:`improved`,title:`Your logo in reports`,detail:`Reports show the logo and name set in Settings, Appearance, in their sidebar and as the tab's icon, in place of ForgeQE's.`,to:[`settings`,`appearance`]},{kind:`improved`,title:`A cleaner report`,detail:`Reports drop the cards inside cards: each block is its heading and content on a white page, as in the web app's chat and Settings. Tooltips are styled, show on keyboard focus, and never grow taller than the window.`}]},{version:`2.6.4`,date:`2026-11-04`,summary:`Test cases reused instead of duplicated in every test case system, a product knowledge graph, an Evidence section for checking agents, and new integrations.`,changes:[{kind:`new`,title:`Reuse existing test cases`,detail:`Before saving, ForgeQE compares new cases with the story's linked cases and its scope, and asks before it links to or extends an existing one instead of adding a copy. Optionally it also compares with the other stories under the same feature or epic. Cases older than their story's last change are flagged.`},{kind:`new`,title:`Test cases in Xray, TestRail and Zephyr Scale`,detail:`Save, update and link test cases there as in Azure DevOps, and record which cases are automated. New Azure DevOps cases join the scope's suite with priority, tags, state, shared steps and parameters. Cases can also be saved with no story, under an area path or a project.`},{kind:`new`,title:`Product knowledge`,detail:`ForgeQE reads your repositories, documents and deployment files into one graph of the product's systems and how they talk, with the evidence for each link. The agents use it, the Product page shows it in the business's words, and the Engineering view draws the landscape. It can be built once in a pipeline and shared with the team.`,to:[`product`]},{kind:`new`,title:`Evidence`,detail:`A section for checking AI agents, ForgeQE's own or any other: their runs from OpenTelemetry, Langfuse or LangSmith, contracts and behaviour checks, a scenario suite and a release gate, and monitoring for drift. forgeqe evidence demo fills every page with a demo project.`,to:[`evidence`]},{kind:`new`,title:`More integrations`,detail:`GitLab, BrowserStack, Postman, Azure, Dataverse and Sentry, added from the catalog in the MCP view. MCP servers that need a browser sign-in get one, and every system's sign-in is in Settings.`,to:[`settings`]},{kind:`improved`,title:`Mobile and desktop settings`,detail:`Separate settings for each, devices described by what they are, cloud devices for BrowserStack and TestMu edited in Settings, and mobile tests run on several devices at once.`,to:[`settings`]},{kind:`improved`,title:`A model and a name for each agent`,detail:`Choose a default model for each agent, and call each agent what your team calls it.`,to:[`settings`]},{kind:`improved`,title:`Release readiness for Jira`,detail:`Release readiness works on Jira scopes, as it does on Azure DevOps.`},{kind:`improved`,title:`Carry on, or stop`,detail:`Healing, the Regression page, forgeqe suite and a browser run that makes no progress ask before they stop at a limit.`},{kind:`fixed`,title:`Links and proxies`,detail:`Links in chat are fetched only after ForgeQE's own checks, and web fetches work behind a company proxy.`},{kind:`fixed`,title:`Migration`,detail:`The source framework is found from the project's packages and code, not a word in a comment, and a remote grid is named only when the code starts one.`}]},{version:`2.6.3`,date:`2026-11-03`,summary:`A migration agent for old test suites, a DB agent that finds test data for every agent, and the same chat box on every agent's page.`,changes:[{kind:`new`,title:`Migration agent`,detail:`Move a test suite to another framework with forgeqe migrate or the Migration page. Bring the tests from git, a folder, an upload or a paste; ForgeQE migrates them, runs them, fixes what fails, and shows the old and new side by side in Compare.`,to:[`migration`]},{kind:`new`,title:`DB agent`,detail:`Every agent asks the DB agent for test data before it runs. Its page under Agents shows your databases, their schema as a diagram, and an Ask box.`,to:[`agents`]},{kind:`new`,title:`Test data page`,detail:`Every request for test data is logged, with what was asked and what came back.`,to:[`test-data`]},{kind:`improved`,title:`Data page`,detail:`Redesigned around the DB agent, with paged lists and one clear main action.`,to:[`data`]},{kind:`improved`,title:`The same chat box everywhere`,detail:`Every Agent tab has attachments, @ files, Refine, the environment, tools and the model. Nothing is sent until ForgeQE is set up, and Home's Set up card says what is missing.`},{kind:`improved`,title:`A page for every agent`,detail:`Each agent's page has its own tools, requests and runs below its chat.`,to:[`agents`]},{kind:`improved`,title:`Headline numbers`,detail:`Shown as one stat panel with a trend for each number.`}]},{version:`2.6.2`,date:`2026-11-02`,summary:`Custom agents, a page for every agent, Accessibility, Performance and Visual pages, and pictures in chat.`,changes:[{kind:`new`,title:`Custom agents`,detail:`Build your own agent with the agent builder. It runs only an approved version, held to its limits on every tool call, and can run on a schedule with a person approving what it may not do alone.`,to:[`agents`]},{kind:`new`,title:`Accessibility, Performance and Visual pages`,detail:`Each has its own page and agent. Accessibility tests a goal as personas (blind, keyboard-only, low vision…) and keeps every session in a Results tab.`,to:[`accessibility`]},{kind:`new`,title:`Agents page`,detail:`Every agent in four columns by category, with what each can do and whether it is ready. Mark favourites to keep them close.`,to:[`agents`]},{kind:`new`,title:`Pictures and files in chat`,detail:`Attach files with @ or drop them on the composer. Images of any format are shrunk and stripped of their metadata before the model sees them; /paste works in the terminal.`},{kind:`new`,title:`GitHub Copilot models`,detail:`Pick a Copilot model in Settings, count and budget premium requests, and sign in with GitHub Enterprise Cloud.`,to:[`settings`,`models`]},{kind:`new`,title:`Jobs agent`,detail:`Make a job by asking for it in the Agent tab; jobs show as a table.`,to:[`jobs`]},{kind:`improved`,title:`At a limit, carry on`,detail:`When a run reaches its budget, ForgeQE asks whether to carry on instead of ending the work.`},{kind:`improved`,title:`Tables everywhere`,detail:`Memory, Knowledge, Skills, Guardrails and Prompts are tables that look and page the same, each with a search box.`},{kind:`improved`,title:`What's ready`,detail:`One box per area, one line per feature, and the details in a side sheet.`,to:[`features`]},{kind:`improved`,title:`Dark and light in the sidebar`,detail:`Switch the theme from the sidebar; the sidebar itself is dark.`},{kind:`fixed`,title:`Copilot errors`,detail:`Rate limits, cut-off replies and Windows' reason for not loading Copilot's runtime are now reported clearly.`}]},{version:`2.4.0`,date:`2026-10-28`,summary:`Each agent gets only the tools it needs.`,changes:[{kind:`new`,title:`Scoped MCP tools`,detail:`An agent's tool server offers only the tools its work needs, so it chooses among fewer and calls fewer by mistake.`}]}]},io=[`new`,`improved`,`fixed`],J=/^[a-z0-9][a-z0-9-]*$/,ao=/^[0-9]+\.[0-9]+\.[0-9]+([a-zA-Z0-9.-]*)?$/,oo={summary:240,title:80,detail:600},so=e=>typeof e==`object`&&!!e&&!Array.isArray(e);function co(e,t){if(typeof e!=`string`)return;let n=e.trim();if(!(!n||n.length>t||/[\u0000-\u001f\u007f\u2028\u2029]/.test(n)))return n}function lo(e){if(typeof e!=`string`||!/^\d{4}-\d{2}-\d{2}$/.test(e))return;let t=new Date(`${e}T00:00:00Z`);return!isNaN(t.getTime())&&t.toISOString().slice(0,10)===e?e:void 0}function uo(e){let t=/^([0-9]+)\.([0-9]+)\.([0-9]+)(.*)$/.exec(e);return t?[Number(t[1]),Number(t[2]),Number(t[3]),+!t[4],t[4]??``]:[0,0,0,0,e]}function fo(e,t){let n=uo(e),r=uo(t);for(let e=0;e<4;e++)if(n[e]!==r[e])return n[e]-r[e];return n[4]<r[4]?-1:+(n[4]>r[4])}function po(e,t,n){if(!so(e))return void n.push(`${t}: not an object`);let r=Object.keys(e).filter(e=>![`kind`,`title`,`detail`,`to`].includes(e));if(r.length)return void n.push(`${t}: unknown key ${r.join(`, `)}`);let i=io.find(t=>t===e.kind);if(!i)return void n.push(`${t}: kind must be one of ${io.join(`, `)}`);let a=co(e.title,oo.title);if(!a)return void n.push(`${t}: title must be one line of at most ${oo.title} characters`);let o=co(e.detail,oo.detail);return o?e.to===void 0?{kind:i,title:a,detail:o}:!Array.isArray(e.to)||!e.to.length||e.to.length>4||!e.to.every(e=>typeof e==`string`&&J.test(e))?void n.push(`${t}: to must be 1 to 4 route parts of the web app, like ["settings", "models"]`):{kind:i,title:a,detail:o,to:[...e.to]}:void n.push(`${t}: detail must be one line of at most ${oo.detail} characters`)}function mo(e,t,n){if(!so(e))return void n.push(`${t}: not an object`);let r=Object.keys(e).filter(e=>![`version`,`date`,`summary`,`changes`].includes(e));if(r.length)return void n.push(`${t}: unknown key ${r.join(`, `)}`);let i=typeof e.version==`string`&&ao.test(e.version)?e.version:void 0;if(!i)return void n.push(`${t}: version must be like 2.6.2`);let a=`${t} (${i})`,o=lo(e.date);if(!o)return void n.push(`${a}: date must be a real day, like 2026-11-02`);let s=co(e.summary,oo.summary);if(!s)return void n.push(`${a}: summary must be one line of at most ${oo.summary} characters`);if(!Array.isArray(e.changes)||!e.changes.length)return void n.push(`${a}: changes must list at least one change`);let c=n.length,l=e.changes.map((e,t)=>po(e,`${a} change ${t+1}`,n)).filter(e=>!!e);if(!(n.length>c))return{version:i,date:o,summary:s,changes:l}}function ho(e){let t=[];if(!so(e)||!Array.isArray(e.releases))return{releases:[],problems:[`the file must be an object with a "releases" list`]};let n=Object.keys(e).filter(e=>e!==`releases`&&e!==`$comment`);n.length&&t.push(`unknown key ${n.join(`, `)}`);let r=[];return e.releases.forEach((e,n)=>{let i=mo(e,`release ${n+1}`,t);if(!i)return;let a=r[r.length-1];if(r.some(e=>e.version===i.version))return void t.push(`release ${n+1}: version ${i.version} is listed twice`);if(a&&(fo(i.version,a.version)>=0||i.date>a.date))return void t.push(`release ${n+1}: ${i.version} must come after ${a.version} (newest first, by version and date)`);r.push(i)}),{releases:r,problems:t}}var go=ho(ro).releases,_o=go[0],vo=e=>e.to?.length&&e.to.every(e=>J.test(e))?zt(...e.to):void 0,yo=e=>new Date(`${e}T00:00:00`),bo=e=>yo(e).toLocaleDateString(void 0,{day:`numeric`,month:`short`,year:`numeric`}),xo=e=>yo(e).toLocaleDateString(void 0,{month:`long`,year:`numeric`});function So(e=go){let t=[];for(let n of e){let e=xo(n.date),r=t[t.length-1];r?.month===e?r.releases.push(n):t.push({month:e,releases:[n]})}return t}var Co=`forgeqe-whats-new-seen`,wo=()=>{try{return localStorage.getItem(Co)===_o?.version}catch{return!1}},To=()=>{try{_o&&localStorage.setItem(Co,_o.version)}catch{}};function Eo(e,t){setTimeout(()=>{let n=document.getElementById(e);if(!n)return;n.focus();let r=oi(t);r&&n.setSelectionRange(r[0],r[1])},0)}function Do(){let[e,t]=(0,G.useState)(null),[n,r]=(0,G.useState)(null),[i,a]=(0,G.useState)(null);return(0,G.useEffect)(()=>{Tt.list().then(e=>t(e.runs),()=>t([])),Jt.list().then(e=>r(e.approvals),()=>r([])),_t.list().then(e=>a(e.jobs),()=>a([]))},[]),!e||!n||!i?null:(0,K.jsx)(ri,{items:ci(e,n,i),title:`Needs a look today`,id:`needs-look-today`})}function Oo(){let[e,t]=(0,G.useState)(()=>!!_o&&!wo());if(!e||!_o)return null;let n=_o.changes.filter(e=>e.kind===`new`).slice(0,3);return(0,K.jsxs)(`section`,{"aria-labelledby":`whats-new-title`,className:`flex w-full items-start gap-x-4 border-y border-line py-4`,children:[(0,K.jsx)(Vt,{icon:ge,size:20,className:`mt-0.5 flex-none text-accent-fg`}),(0,K.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-wrap items-center gap-x-4 gap-y-3`,children:[(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_280px] flex-col gap-0.5`,children:[(0,K.jsxs)(`span`,{id:`whats-new-title`,className:`font-medium`,children:[`What's new in ForgeQE `,_o.version]}),(0,K.jsx)(`span`,{className:`text-sm text-muted [overflow-wrap:anywhere]`,children:n.length?n.map(e=>e.title).join(` · `):_o.summary})]}),(0,K.jsxs)(`a`,{className:rn({variant:`outline`}),href:zt(`settings`,`whats-new`),"data-tip":`See all changes`,children:[(0,K.jsx)(Ue,{"aria-hidden":`true`}),`Changes`]})]}),(0,K.jsx)(R,{variant:`icon`,size:`icon`,"aria-label":`Close until the next release`,"data-tip":`Close until the next release`,onClick:()=>{To(),t(!1)},className:`-my-1.5 -mr-2 size-8 flex-none`,children:(0,K.jsx)(i,{size:16,"aria-hidden":`true`})})]})}function ko({agent:e,tabs:t}){return(0,K.jsxs)(`header`,{style:t?{viewTransitionName:`agent-tabs`}:void 0,className:`flex flex-wrap items-center gap-1 px-5 py-3.5 short:py-2`,children:[(0,K.jsx)(rr,{}),e&&(0,K.jsxs)(`a`,{href:zt(`agents`),className:`inline-flex min-h-9 items-center gap-1.5 text-sm`,children:[(0,K.jsx)(xe,{size:16,"aria-hidden":`true`}),`All agents`]}),t&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`span`,{className:`flex-1`}),t]})]})}function Ao({agent:e,below:t,wide:n,tabs:r}={}){let i=e&&_n(e.agent),a=e?e.starters:ai,[o,s]=(0,G.useState)(``),[c,l]=(0,G.useState)(``);(0,G.useEffect)(()=>{if(!e)try{let e=sessionStorage.getItem(no);sessionStorage.removeItem(no),e&&e.trim()&&(s(e.slice(0,2e4)),setTimeout(()=>ra(`msg`),0))}catch{}},[]);let[u,d]=(0,G.useState)(!1),f=Ja(),p=ti(),{setup:m}=f,h=Qi(o,e=>{s(e),l(``)},`msg`,{code:f.tools.code}),g=ea(`home`,e=>{s(e),ra(`msg`)}),_=async(t=o)=>{let n=i&&e?.agent!==`forgeqe`&&t.trim()?`${i.name}: ${t.trim()}`:t.trim();if(!(u||!n.trim()&&!h.hasFiles)){d(!0),l(``);try{let e=await h.wrap(n);if(!e.trim()){d(!1);return}let{id:t}=await Qt.start(e,f.choice);h.reset({keep:!0}),location.hash=zt(`chats`,t)}catch(e){l(e.message),d(!1)}}};return(0,K.jsxs)(`div`,{className:`flex min-h-(--screen) flex-col`,children:[(0,K.jsx)(ko,{...e?{agent:e}:{},...r?{tabs:r}:{}}),(0,K.jsxs)(`main`,{className:`flex flex-auto flex-col items-center justify-center px-5 pt-6 pb-[120px] short:pt-0 short:pb-8`,children:[(0,K.jsxs)(`div`,{className:`flex w-full max-w-[780px] flex-col items-center gap-9 short:gap-6`,children:[(0,K.jsxs)(`div`,{className:`flex flex-col items-center gap-3.5 text-center short:gap-2.5`,children:[e?(0,K.jsx)(Zn,{agent:e.agent,px:p?64:96,decorative:!0,working:u,className:`mb-1`}):(0,K.jsx)(Kt,{state:`idle`,px:p?72:112,label:`ForgeQE is ready`,className:`mb-1`}),(0,K.jsx)(`h1`,{className:`m-0 text-[34px] leading-tight font-semibold short:text-[28px] tracking-[-0.015em] text-ink`,children:i?i.name:`What are we assuring today?`}),e?(0,K.jsx)(`p`,{className:`m-0 max-w-[52ch] text-[15px] short:max-w-[72ch] leading-relaxed text-ink-2`,children:e.about}):(0,K.jsx)(`p`,{className:`m-0 max-w-[46ch] text-[15px] short:max-w-[72ch] leading-relaxed text-ink-2`,children:`ForgeQE assures every release: it uses your app as your customers do, shows what broke and why, and keeps the proof.`})]}),m&&!m.ready&&(0,K.jsx)($a,{project:m.project}),m?.ready&&(0,K.jsx)(eo,{c:f}),(0,K.jsx)($i,{id:`msg`,label:i?`Message ${Fn(i.name)}`:`Message ForgeQE`,value:o,onChange:e=>{s(e),l(``)},onSend:()=>void _(),disabled:u||!!m&&!m.ready||g.running,canSend:!!o.trim()||h.hasFiles,onEdit:h.onEdit,onKey:h.onKeyDown,onFiles:h.onFiles,dropping:h.dropping,drop:h.drop,mentions:h.mentions,combo:h.combo,placeholder:i?`Ask ${Fn(i.name)} to…`:`Ask ForgeQE to test something…`,top:(0,K.jsxs)(K.Fragment,{children:[h.chips,g.state&&(0,K.jsx)(na,{state:g.state,onStop:()=>void g.stop(),onUndo:g.undo,onClose:g.close})]}),left:(0,K.jsxs)(K.Fragment,{children:[h.paperclip,(0,K.jsx)(Ya,{c:f}),(0,K.jsx)(ta,{running:g.running,disabled:!o.trim()||u||!!m&&!m.ready,onClick:()=>void g.start(o)})]}),right:(0,K.jsx)(Xa,{c:f})}),(0,K.jsx)(`p`,{role:`status`,"aria-live":`polite`,className:L(`-mt-5 m-0 text-center short:-mt-3 text-sm text-ink-2`,!(c||h.error)&&`sr-only`),children:(0,K.jsx)(`span`,{className:h.error&&!c?`text-fail`:``,children:c||h.error||``})}),(0,K.jsx)(`div`,{className:`flex flex-wrap justify-center gap-3`,children:a.map(({label:e,Icon:t,text:n})=>(0,K.jsxs)(R,{onClick:()=>{s(n),l(``),Eo(`msg`,n)},children:[t&&(0,K.jsx)(t,{"aria-hidden":`true`}),e]},e))}),!e&&m?.ready&&(0,K.jsx)(Do,{}),!e&&(0,K.jsx)(Oo,{}),t]}),n&&(0,K.jsx)(`div`,{className:`mt-10 flex w-full max-w-[1180px] flex-col`,children:n})]})]})}function jo({groups:e,edit:t,continued:n}){return(0,K.jsx)(K.Fragment,{children:e.map((e,r)=>(0,K.jsxs)(`div`,{children:[(0,K.jsx)(W,{help:e.help,first:r===0&&!n,children:e.title}),(0,K.jsx)(xn,{defs:e.fields,edit:t,base:e.base})]},e.title))})}function Mo(e,t,n,r){return t.map(t=>{let r=e[t]??n.find(e=>e.key===t)?.default;return typeof r==`string`?r:``}).filter(e=>e&&!r(e))}var No=[{key:`url`,label:`Sign-in page`,type:`url`,placeholder:`https://staging.shop.example/login`},{key:`domains`,label:`Or sites`,help:`Comma separated; * matches a subdomain.`,type:`list`,placeholder:`https://staging.shop.example, https://*.shop.example`},{key:`app`,label:`Or desktop app`,help:`A desktop app of desktop.apps this login signs in to, instead of a site.`,type:`text`,placeholder:`billing`},{key:`username_env`,label:`User name variable`,type:`var`,placeholder:`SHOP_USER`},{key:`password_env`,label:`Password variable`,type:`var`,placeholder:`SHOP_PASSWORD`},{key:`totp_env`,label:`Authenticator secret variable`,help:`Optional: a base32 secret for two-factor codes.`,type:`var`,placeholder:`SHOP_TOTP_SECRET`},{key:`save_session`,label:`Keep the session`,help:`The next run starts signed in (.forgeqe/sessions). Off signs in every run.`,type:`switch`,default:!0},{key:`code`,label:`Codes sent by`,help:`A one-time code the site sends another way than an authenticator app: ForgeQE reads it where it arrives and types it.`,type:`select`,options:[{value:`email`,label:`Email (a test mailbox, IMAP)`},{value:`sms`,label:`Text message (Twilio)`},{value:`http`,label:`The test environment's address`}],emptyLabel:`None`},{key:`code_host`,label:`Mailbox server`,help:`The IMAP server, on port 993.`,type:`text`,placeholder:`imap.mail.example`,when:e=>e.code===`email`},{key:`code_user_env`,label:`Mailbox user or Twilio SID variable`,help:`Email: the mailbox user. Text message: the Twilio account SID.`,type:`var`,placeholder:`QA_MAIL_USER`,when:e=>e.code===`email`||e.code===`sms`},{key:`code_secret_env`,label:`Mailbox password or token variable`,help:`Email: the mailbox password. Text message: the Twilio auth token. Address: its token (optional).`,type:`var`,placeholder:`QA_MAIL_PASSWORD`,when:e=>!!e.code},{key:`code_to`,label:`Sent to`,help:`Email: the address the code goes to (optional). Text message: the number, +15550100.`,type:`text`,placeholder:`+15550100 or qa1@mail.example`,when:e=>e.code===`email`||e.code===`sms`},{key:`code_sender`,label:`Sent from`,help:`Optional: only messages from this address or number.`,type:`text`,placeholder:`no-reply@shop.example`,when:e=>e.code===`email`||e.code===`sms`},{key:`code_folder`,label:`Mailbox folder`,type:`text`,default:`INBOX`,when:e=>e.code===`email`},{key:`code_url`,label:`Address with the latest code`,help:`https (http only on this computer); answers with the code as text or JSON.`,type:`url`,placeholder:`https://qa-api.shop.example/otp/latest?user=qa1`,when:e=>e.code===`http`},{key:`code_header`,label:`Token header`,help:`Optional: the header the token goes in (Authorization: Bearer otherwise).`,type:`text`,placeholder:`X-Api-Key`,when:e=>e.code===`http`},{key:`code_pattern`,label:`Code pattern`,help:`Optional: a regular expression whose group is the code (4 to 8 digits otherwise).`,type:`text`,placeholder:`Your code is ([0-9]{6})`,when:e=>!!e.code},{key:`code_wait`,label:`Wait for it (seconds)`,type:`number`,default:90,when:e=>!!e.code},{key:`passkey_env`,label:`Security key variable`,help:`Holds a security key or passkey registered once; runs present it as a virtual key.`,type:`var`,placeholder:`SHOP_PASSKEY`},{key:`push_wait`,label:`Wait for a push approval (seconds)`,help:`A push to a phone needs a person: the run waits this long and tells the notification channels that ask for sign-in approvals.`,type:`number`,placeholder:`120`}],Po=/^[A-Za-z0-9][A-Za-z0-9_.-]{0,62}$/;function Fo(e,t,n){return e?Po.test(e)?e!==t&&n.includes(e)?`There is already a sign-in named ${e}.`:``:`Letters, digits, . _ and -.`:`Needs a name.`}function Io(e){let t=e.toUpperCase().replace(/[^A-Z0-9]/g,`_`);return{username_env:`${t}_USER`,password_env:`${t}_PASSWORD`}}function Lo({edit:e}){let[t,n]=(0,G.useState)(null),i=pr(),a=H(e.value.logins),o=Object.keys(a);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center justify-between gap-3`,children:[(0,K.jsx)(`span`,{className:`text-sm text-muted`,children:`One for each app the agent signs in to.`}),(0,K.jsxs)(R,{size:`sm`,"data-tip":`Add a sign-in`,onClick:()=>{let e=zn(a,`shop`);n({mode:`add`,from:``,name:e,login:Io(e)})},children:[(0,K.jsx)(r,{"aria-hidden":`true`}),`Add`]})]}),o.length===0&&(0,K.jsx)(`p`,{className:`m-0 border-t border-line-soft py-5 text-sm text-muted`,children:`None yet.`}),Object.entries(a).map(([t,r])=>{let a=H(r),o=Mo(a,[`username_env`,`password_env`],No,e=>on(i,e)),s=a.username_env||a.password_env;return(0,K.jsx)(jn,{expandable:!1,open:!1,onToggle:()=>{},lead:(0,K.jsx)(Tn,{icon:le}),title:t,meta:String(a.url||(Array.isArray(a.domains)?a.domains.join(`, `):``)||`No site yet`),state:s?o.length?(0,K.jsx)(`span`,{className:`text-sm text-warn`,"data-tip":o.join(`, `),children:o.length===1?`Needs ${o[0]}`:`Needs ${o.length} variables`}):(0,K.jsx)(`span`,{className:`text-sm text-pass`,children:`Ready`}):(0,K.jsx)(`span`,{className:`text-sm text-muted`,children:`Not set up`}),actions:(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(R,{variant:`icon`,size:`icon-sm`,"aria-label":`Edit ${t}`,"data-tip":`Edit ${t}`,onClick:()=>n({mode:`edit`,from:t,name:t,login:{...a}}),children:(0,K.jsx)(I,{"aria-hidden":`true`})}),(0,K.jsx)(R,{variant:`icon`,size:`icon-sm`,"aria-label":`Remove ${t}`,"data-tip":`Remove ${t}`,onClick:()=>e.set(U(e.value,[`logins`,t],void 0)),children:(0,K.jsx)(Je,{"aria-hidden":`true`})})]}),children:null},t)}),(0,K.jsx)(Ro,{panel:t,setPanel:n,taken:o,vars:e.vars,onApply:t=>{t.mode===`add`?e.set(U(e.value,[`logins`,t.name],t.login)):e.set(U(e.value,[`logins`],{...dn(a,t.from,t.name),[t.name]:t.login}))}})]})}function Ro({panel:e,setPanel:t,taken:n,vars:a,onApply:o}){let c={value:e?H(e.login):{},set:n=>e&&t({...e,login:n}),vars:a},l=e?Fo(e.name,e.from,n):``,u=()=>t(null);return(0,K.jsx)(cn,{open:!!e,onClose:u,title:e?.mode===`add`?`Add a sign-in`:`Edit ${e?.from}`,description:(0,K.jsxs)(K.Fragment,{children:[`The page and variables for one app login. Changes apply when you press the button below; a secret's value goes to your credential store as you type it.`,e?.name&&Po.test(e.name)?(0,K.jsxs)(K.Fragment,{children:[` `,`Sign in by hand with `,(0,K.jsxs)(`code`,{className:`font-mono text-[13px]`,children:[`forgeqe login `,e.name]}),`.`]}):null]}),footer:(0,K.jsxs)(K.Fragment,{children:[l&&(0,K.jsx)(`span`,{className:`mr-auto self-center text-sm text-muted`,children:`Needs a valid name`}),(0,K.jsxs)(R,{onClick:u,children:[(0,K.jsx)(i,{"aria-hidden":`true`}),`Cancel`]}),(0,K.jsxs)(R,{variant:`primary`,disabled:!!l,onClick:()=>{o(e),u()},children:[e?.mode===`add`?(0,K.jsx)(r,{"aria-hidden":`true`}):(0,K.jsx)(s,{"aria-hidden":`true`}),e?.mode===`add`?`Add`:`Done`]})]}),children:e&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(V,{label:`Name`,help:l?(0,K.jsx)(`span`,{className:`text-fail`,children:l}):`How environments and forgeqe login name it.`,htmlFor:`login-name`,className:`mt-4`,stacked:!0,children:(0,K.jsx)(z,{id:`login-name`,value:e.name,spellCheck:!1,placeholder:`shop-qa`,"aria-invalid":!!l,onChange:n=>t({...e,name:n.target.value.trim()}),className:`font-mono`})}),(0,K.jsx)(xn,{defs:No,edit:c,base:[],stacked:!0})]})})}function zo({rules:e,others:t,onChange:n}){let[i,a]=(0,G.useState)(``),[o,s]=(0,G.useState)(``),c=i.trim().length>0;return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`form`,{onSubmit:r=>{r.preventDefault();let o=i.replace(/^\s*[-*+]\s+/,``).trim();if(o){if(o.length>300)return s(`A rule is at most 300 characters: make it shorter.`);if([...e,...t.map(e=>e.text)].some(e=>e.toLowerCase()===o.toLowerCase()))return s(`That rule is already in force.`);s(``),n([...e,o]),a(``)}},className:`mb-4 flex items-center gap-2 rounded-[10px] border border-line py-1.5 pr-1.5 pl-5 has-[input:focus-visible]:outline-2 has-[input:focus-visible]:outline-offset-2 has-[input:focus-visible]:outline-accent`,children:[(0,K.jsx)(`label`,{htmlFor:`rule`,className:`sr-only`,children:`New rule`}),(0,K.jsx)(`input`,{id:`rule`,value:i,maxLength:300,onChange:e=>{a(e.target.value),s(``)},placeholder:`Add a rule every agent must follow`,className:`min-h-10 min-w-0 flex-auto border-0 bg-transparent text-[15px] outline-none focus-visible:outline-none`}),(0,K.jsxs)(`button`,{type:`submit`,disabled:!c,"data-tip":`Add the rule`,className:L(`inline-flex min-h-10 cursor-pointer items-center gap-2 rounded-[7px] border-0 px-4 text-sm font-medium disabled:cursor-not-allowed [&>svg]:size-4`,c?`bg-accent text-accent-ink hover:bg-accent-hover`:`bg-surface-strong text-muted`),children:[(0,K.jsx)(r,{"aria-hidden":`true`}),`Add`]})]}),o&&(0,K.jsx)(`p`,{role:`alert`,className:`mt-0 mb-4 text-sm text-fail`,children:o}),e.length===0&&t.length===0?(0,K.jsx)(`p`,{className:`m-0 py-5 text-sm text-muted`,children:`No rules yet. Add the first one above.`}):(0,K.jsx)(`div`,{className:`@container`,children:(0,K.jsx)(ir,{label:`Rules`,placeholder:`Find a rule`,empty:`No rule matches.`,head:(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`th`,{className:Ln,children:`Rule`}),(0,K.jsx)(`th`,{className:L(Ln,`hidden @xl:table-cell`),children:`Set in`}),(0,K.jsx)(`th`,{className:Ln,children:(0,K.jsx)(`span`,{className:`sr-only`,children:`Remove`})})]}),children:[...e.map((t,r)=>(0,K.jsxs)(`tr`,{className:dr,children:[(0,K.jsx)(`td`,{className:L(lr,`leading-normal`),children:t}),(0,K.jsx)(`td`,{className:L(lr,`hidden w-[1%] whitespace-nowrap @xl:table-cell`),children:(0,K.jsx)(`span`,{className:`rounded-full bg-pass-soft px-2 py-px text-[11.5px] font-medium text-pass`,children:`This project`})}),(0,K.jsx)(`td`,{className:L(lr,`w-[1%] py-1.5 text-right`),children:(0,K.jsx)(R,{variant:`icon`,size:`icon-sm`,"aria-label":`Remove rule: ${t}`,"data-tip":`Remove rule: ${t}`,onClick:()=>n(e.filter((e,t)=>t!==r)),children:(0,K.jsx)(Je,{"aria-hidden":`true`})})})]},`own-${r}`)),...t.map(e=>(0,K.jsxs)(`tr`,{className:dr,children:[(0,K.jsx)(`td`,{className:L(lr,`leading-normal`),children:e.text}),(0,K.jsxs)(`td`,{className:L(lr,`hidden w-[1%] whitespace-nowrap @xl:table-cell`),children:[(0,K.jsx)(`span`,{className:`font-mono text-[12px] text-muted`,children:e.source}),e.agents?.length?(0,K.jsxs)(`span`,{className:`block text-[12px] text-muted`,children:[`For `,e.agents.length>2?`${e.agents.length} agents`:e.agents.map(e=>_n(e).name).join(` and `)]}):null]}),(0,K.jsx)(`td`,{className:L(lr,`w-[1%] text-right text-[12px] whitespace-nowrap text-muted`),children:`Read only`})]},`other-${e.source}-${e.text}`))]})})]})}function Bo(e){let t=e=>e.split(/[\\/]/).pop()||e,n=e.paths.environments;return[{id:`config`,label:t(e.paths.config),file:`config`,path:e.paths.config,text:e.raw.config},{id:`models`,label:t(e.paths.models),file:`models`,path:e.paths.models,text:e.raw.models},...e.raw.environments.map(e=>({id:`env:${e.name}`,label:t(e.path),file:`environments`,env:n.layout===`dir`?e.name:void 0,path:e.path,text:e.text}))]}var Vo=`m-0 px-4 py-3 font-mono text-[13px] leading-[1.7] whitespace-pre-wrap [overflow-wrap:anywhere] [tab-size:2]`;function Ho({id:e,value:t,lang:n,onChange:r,plain:i=!1}){let a=(0,G.useMemo)(()=>wr(t,n),[t,n]);return(0,K.jsx)(`div`,{className:L(`outline-accent has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2`,i?`rounded-[4px] [&_pre]:px-0 [&_textarea]:px-0`:`max-h-[calc(var(--screen)-300px)] min-h-[360px] overflow-auto rounded-[8px] border border-line bg-field hover:border-line-strong focus-within:border-accent focus-within:bg-bg`),children:(0,K.jsxs)(`div`,{className:`grid`,children:[(0,K.jsxs)(`pre`,{"aria-hidden":`true`,className:L(Vo,`pointer-events-none text-ink [grid-area:1/1]`),children:[a,`
|
|
40
40
|
`]}),(0,K.jsx)(`textarea`,{id:e,spellCheck:!1,autoCapitalize:`off`,autoCorrect:`off`,value:t,onChange:e=>r(e.target.value),className:L(Vo,`resize-none overflow-hidden border-0 !bg-transparent text-transparent caret-ink outline-none selection:bg-accent-soft [grid-area:1/1]`)})]})})}function Uo({snap:e,dirty:t,onSave:n}){let r=Bo(e),[i,a]=(0,G.useState)(`config`),[o,c]=(0,G.useState)({}),[l,u]=(0,G.useState)(!1),d=r.find(e=>e.id===i)||r[0],f=o[d.id]??d.text,p=f!==d.text,m=e=>`file-tab-${e.id.replace(/[^A-Za-z0-9_-]/g,`_`)}`;return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`div`,{role:`tablist`,"aria-label":`Settings files`,className:`mb-4 flex flex-wrap gap-x-4 border-b border-line-soft`,children:r.map(e=>(0,K.jsx)(`button`,{id:m(e),type:`button`,role:`tab`,"aria-selected":d.id===e.id,"aria-controls":`file-panel`,tabIndex:d.id===e.id?0:-1,onClick:()=>a(e.id),onKeyDown:t=>{let n=r.indexOf(e),i=t.key===`ArrowRight`?r[(n+1)%r.length]:t.key===`ArrowLeft`?r[(n-1+r.length)%r.length]:void 0;i&&(a(i.id),document.getElementById(m(i))?.focus())},className:L(`-mb-px min-h-10 cursor-pointer border-0 border-b-2 bg-transparent px-0.5 font-mono text-[13px]`,d.id===e.id?`border-ink text-ink`:`border-transparent text-muted hover:text-ink`),children:e.label},e.id))}),(0,K.jsxs)(`div`,{id:`file-panel`,role:`tabpanel`,"aria-labelledby":m(d),className:`flex flex-col gap-3`,children:[(0,K.jsx)(`p`,{className:`m-0 font-mono text-[13px] break-all text-muted`,children:d.path}),e.errors[d.file]&&(0,K.jsxs)(`p`,{role:`alert`,className:`m-0 rounded-[10px] bg-fail-soft px-3 py-2 text-sm text-fail`,children:[`Does not parse: `,e.errors[d.file]]}),(0,K.jsx)(`label`,{htmlFor:`file-text`,className:`sr-only`,children:d.label}),(0,K.jsx)(Ho,{id:`file-text`,plain:!0,value:f,lang:d.label.endsWith(`.json`)?`json`:`yaml`,onChange:e=>c({...o,[d.id]:e})}),(0,K.jsxs)(`div`,{className:`sticky bottom-0 z-[1] -mx-1 flex flex-wrap items-center gap-3 border-t border-line-soft bg-bg px-1 py-3`,children:[(0,K.jsxs)(R,{size:`sm`,variant:`primary`,"data-tip":`Save file`,disabled:!p||l||t[d.file],onClick:async()=>{u(!0);try{if(await n(d.file,f,d.env)){let e={...o};delete e[d.id],c(e)}}finally{u(!1)}},children:[(0,K.jsx)(s,{"aria-hidden":`true`}),l?`Saving…`:`Save`]}),p&&(0,K.jsxs)(R,{size:`sm`,onClick:()=>{let e={...o};delete e[d.id],c(e)},disabled:l,"data-tip":`Discard your changes`,children:[(0,K.jsx)(be,{"aria-hidden":`true`}),`Discard`]}),t[d.file]&&(0,K.jsx)(`span`,{className:`text-sm text-muted`,children:`Save or discard the form's changes to this file first.`})]})]})]})}var Wo=/^[A-Za-z0-9][A-Za-z0-9_-]{0,62}$/;function Go({edit:e,base:t,defs:n,noun:i,meta:a,start:o={},placeholder:s}){let c=H(xr(e.value,t)),[l,u]=(0,G.useState)(null),[d,f]=(0,G.useState)(``),p=d&&!Wo.test(d)?`Letters, digits, - and _.`:d in c?`There is a ${i} named ${d}.`:``,m=()=>{d&&!p&&(e.set(U(e.value,[...t,d],{...o})),u(d),f(``))};return(0,K.jsxs)(K.Fragment,{children:[Object.keys(c).length===0&&(0,K.jsx)(`p`,{className:`m-0 border-t border-line-soft py-4 text-sm text-muted`,children:`None yet.`}),Object.entries(c).map(([r,i])=>(0,K.jsx)(jn,{title:r,meta:a(H(i))||void 0,open:l===r,onToggle:()=>u(l===r?null:r),actions:(0,K.jsx)(R,{variant:`icon`,size:`icon-sm`,"aria-label":`Remove ${r}`,"data-tip":`Remove ${r}`,onClick:()=>e.set(U(e.value,[...t,r],void 0)),children:(0,K.jsx)(Je,{"aria-hidden":`true`})}),children:(0,K.jsx)(xn,{defs:n,edit:e,base:[...t,r]})},r)),(0,K.jsx)(V,{label:`Add a ${i}`,help:p?(0,K.jsx)(`span`,{className:`text-fail`,children:p}):`A short name: letters, digits, - and _.`,htmlFor:`add-${t.join(`-`)}`,children:(0,K.jsxs)(`div`,{className:`flex w-full items-center gap-2`,children:[(0,K.jsx)(z,{id:`add-${t.join(`-`)}`,value:d,spellCheck:!1,placeholder:`Name, such as ${s}`,"aria-invalid":!!p,onChange:e=>f(e.target.value.trim()),onKeyDown:e=>e.key===`Enter`&&m(),className:`min-w-0 flex-1`}),(0,K.jsxs)(R,{size:`sm`,disabled:!d||!!p,"data-tip":`Add a ${i}`,onClick:m,children:[(0,K.jsx)(r,{"aria-hidden":`true`}),`Add`]})]})})]})}function Ko({icon:e,pixel:t,title:n,intro:r,children:i}){return(0,K.jsxs)(`div`,{className:`flex min-h-(--screen) flex-col`,children:[(0,K.jsx)(cr,{}),(0,K.jsxs)(`main`,{className:L(fr),children:[(0,K.jsxs)(`div`,{className:`mb-1 flex items-center gap-3`,children:[(0,K.jsx)(Tn,{icon:e,pixel:t,size:`lg`}),(0,K.jsx)(`h1`,{className:`m-0 text-[26px] font-semibold tracking-[-0.01em]`,children:n})]}),(0,K.jsx)(`p`,{className:`mt-1 mb-6 max-w-[64ch] text-sm leading-relaxed text-ink-2`,children:r}),i]})]})}function qo({text:e,onRetry:t}){return(0,K.jsxs)(`div`,{role:`alert`,className:`flex flex-col items-start gap-3 rounded-[14px] bg-fail-soft px-4 py-3 text-sm text-fail`,children:[(0,K.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:e}),t&&(0,K.jsxs)(R,{onClick:t,"data-tip":`Try again`,children:[(0,K.jsx)(p,{"aria-hidden":`true`}),`Retry`]})]})}var Jo=[`pl-0`,`pl-0`,`pl-4`,`pl-8`,`pl-12`,`pl-16`,`pl-20`];function Yo(){let[e,t]=(0,G.useState)(``),[n,r]=(0,G.useState)(!1),[i,a]=(0,G.useState)(!1),[o,s]=(0,G.useState)(``),[c,l]=(0,G.useState)(null),u=async()=>{let t=e.trim();if(t){a(!0),s(``);try{l({query:t,...await St.searchDocs(t,{reasoning:n})})}catch(e){s(e.message)}finally{a(!1)}}},d=c?.reasoning===`used`?`The model picked these sections.`:c?.reasoning===`cached`?`The model's earlier answer to this question, at no cost.`:c?.reasoning===`failed`?`The model gave no answer, so these are found by their words.`:`Found by their words.`;return(0,K.jsxs)(`section`,{"aria-labelledby":`ask-docs-title`,className:`mb-6`,children:[(0,K.jsx)(`h2`,{id:`ask-docs-title`,className:`sr-only`,children:`Ask the documents`}),(0,K.jsxs)(`form`,{role:`search`,"aria-label":`Ask the documents`,className:`flex flex-wrap items-center gap-x-3 gap-y-2`,onSubmit:e=>{e.preventDefault(),u()},children:[(0,K.jsx)(Ht,{id:`ask-docs`,label:`Ask the documents`,value:e,onChange:t,placeholder:`refund limit for card payments`,className:`max-w-none flex-[1_1_320px]`}),(0,K.jsxs)(`span`,{className:`flex items-center gap-2 text-sm`,children:[(0,K.jsx)(Cr,{checked:n,onChange:r,label:`Let the model pick sections`}),`Let the model pick sections`]}),(0,K.jsxs)(R,{size:`sm`,type:`submit`,disabled:i||!e.trim(),children:[(0,K.jsx)(de,{"aria-hidden":`true`}),i?`Searching…`:`Search`]})]}),o&&(0,K.jsx)(`div`,{className:`mt-3`,children:(0,K.jsx)(qo,{text:o,onRetry:()=>void u()})}),(0,K.jsx)(`div`,{"aria-live":`polite`,children:c&&!o&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`p`,{role:`status`,className:`mt-3 mb-0 text-sm text-muted`,children:c.documents?c.hits.length?`${c.hits.length} ${c.hits.length===1?`passage`:`passages`} from ${c.documents} ${c.documents===1?`document`:`documents`}. ${d}`:`Nothing in ${c.documents} ${c.documents===1?`document`:`documents`} answers "${c.query}".`:`No documents to search yet: add a knowledge file below, or documents in Settings, Evidence.`}),!!c.hits.length&&(0,K.jsx)(`ul`,{"aria-label":`Passages found`,className:`m-0 mt-2 list-none p-0`,children:c.hits.map((e,t)=>(0,K.jsxs)(`li`,{className:`border-t border-line-soft py-2 text-sm [overflow-wrap:anywhere]`,children:[(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,K.jsx)(`span`,{className:`font-medium text-ink`,children:e.where}),e.picked&&(0,K.jsx)(Ft,{tone:`pass`,children:`Picked by the model`})]}),(0,K.jsxs)(`span`,{className:`mt-0.5 block font-mono text-[12px] text-muted`,children:[e.source,`/`,e.file,`:`,e.line]}),(0,K.jsx)(Tr,{text:e.text,className:`mt-2 max-w-[72ch] text-sm`})]},`${e.source}/${e.file}:${e.line}:${t}`))})]})})]})}function Xo(){let[e,t]=(0,G.useState)(null),[n,a]=(0,G.useState)(``),[o,c]=(0,G.useState)(null),[l,u]=(0,G.useState)(!1),[d,f]=(0,G.useState)(``),[p,m]=(0,G.useState)(``),[h,g]=(0,G.useState)(`read`),[_,v]=(0,G.useState)(null),[y,b]=(0,G.useState)(!1),[x,S]=(0,G.useState)(``),[C,w]=(0,G.useState)(null),T=()=>{f(``),g(`edit`),c({rel:``,text:`#
|
|
41
41
|
|
|
42
42
|
## Rules
|
|
@@ -63,4 +63,4 @@ TST* = servicenow
|
|
|
63
63
|
`)||`Starting…`})]})}function Yx({text:e,note:t,yes:n,icon:r,onYes:a,onNo:o}){return(0,K.jsxs)(`div`,{role:`alertdialog`,"aria-label":e,className:`mt-3 flex flex-col gap-2 rounded-[12px] border border-warn bg-warn-soft p-3`,children:[(0,K.jsx)(`span`,{className:`text-sm font-medium`,children:e}),(0,K.jsx)(`span`,{className:`text-[13px] text-ink-2`,children:t}),(0,K.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,K.jsxs)(R,{size:`sm`,variant:`primary`,onClick:a,children:[(0,K.jsx)(r,{"aria-hidden":`true`}),n]}),(0,K.jsxs)(R,{size:`sm`,"data-tip":`Not now`,onClick:o,children:[(0,K.jsx)(i,{"aria-hidden":`true`}),`Later`]})]})]})}var Xx=6e4;function Zx({view:e,onError:t}){let[n,r]=(0,G.useState)(!1),[i,a]=(0,G.useState)(!1);if(!e.running||!e.version||e.running===e.version)return null;let o=async()=>{r(!1);try{await Mt.restart()}catch(e){t(e.message);return}a(!0);let n=Date.now()+Xx;for(;Date.now()<n;){await new Promise(e=>setTimeout(e,1e3));try{if((await Mt.view()).running!==e.running)return location.reload()}catch{}}a(!1),t(`forgeqe web did not come back. Start it again in its terminal; this page reconnects with the address it prints.`)};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(V,{label:`Installed`,help:e.restart?`This page runs ${e.running}. Restart forgeqe web to use ${e.version}.`:`This page runs ${e.running}. Start forgeqe web again in its terminal to use ${e.version}.`,children:(0,K.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,K.jsx)(`span`,{className:`font-mono text-[15px]`,children:e.version}),e.restart&&(0,K.jsxs)(R,{size:`sm`,variant:`primary`,disabled:i,"data-tip":`Restart forgeqe web`,onClick:()=>r(!0),children:[(0,K.jsx)(ee,{"aria-hidden":`true`}),i?`Restarting…`:`Restart`]})]})}),n&&(0,K.jsx)(Yx,{text:`Restart forgeqe web with ${e.version}?`,note:`Open chats close; a message carries each one on. It waits for nothing at work: stop it first. This page reconnects by itself.`,yes:`Restart`,icon:ee,onYes:()=>void o(),onNo:()=>r(!1)})]})}function Qx(){let{view:e,error:n,run:r,running:i}=qx(),[a,o]=(0,G.useState)(``),[s,c]=(0,G.useState)(!1),l=e?.job,u=l?.kind===`update-check`&&!l.running?l.lines.join(`
|
|
64
64
|
`):``,d=/installs (\d[\w.-]*)/.exec(u)?.[1];return(0,K.jsxs)(K.Fragment,{children:[(n||a)&&(0,K.jsx)(`p`,{className:`m-0 mb-3 rounded-[12px] bg-fail-soft px-3 py-2 text-sm text-fail`,children:n||a}),(0,K.jsx)(V,{label:`Version`,help:d?`${d} is out.`:u&&/latest/.test(u)?`This is the latest.`:`forgeqe update installs a new one for every forgeqe on this computer (bun, npm, pip).`,className:`border-t-0 pt-0`,children:(0,K.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[(0,K.jsx)(`span`,{className:`font-mono text-[15px]`,children:e?e.running||e.version:`…`}),(0,K.jsxs)(R,{size:`sm`,disabled:i,"data-tip":`Check for updates`,onClick:()=>void r(`update-check`),children:[(0,K.jsx)(t,{"aria-hidden":`true`}),`Check`]}),(0,K.jsxs)(R,{size:`sm`,variant:d?`primary`:`outline`,disabled:i,"data-tip":d?`Update to ${d}`:`Update to the latest version`,onClick:()=>c(!0),children:[(0,K.jsx)(ee,{"aria-hidden":`true`}),`Update`]})]})}),s&&(0,K.jsx)(Yx,{text:`Update ForgeQE${d?` to ${d}`:` to the latest version`} on this computer?`,note:`It replaces every forgeqe on PATH. When it is done, restart forgeqe web from here; on Windows the update starts once ForgeQE exits.`,yes:`Update`,icon:ee,onYes:()=>{c(!1),r(`update`,{confirmed:!0})},onNo:()=>c(!1)}),(0,K.jsx)(Jx,{job:l,kinds:[`update-check`,`update`],onStop:()=>void Mt.stop()}),e&&(0,K.jsx)(Zx,{view:e,onError:o}),(0,K.jsx)(W,{children:`Guides`}),[[`User guide`,`Every feature, with examples, in one page.`,e?.help.guide],[`How to use`,`The full reference: settings, commands and how each feature works.`,e?.help.howTo],[`Architecture`,`How ForgeQE is built: its agents, the engine and where data goes.`,e?.help.architecture]].map(([e,t,n])=>(0,K.jsx)(V,{label:e,help:t,children:(0,K.jsxs)(`a`,{href:n||`#`,target:`_blank`,rel:`noreferrer noopener`,className:rn({size:`sm`}),children:[(0,K.jsx)(Ke,{"aria-hidden":`true`}),`Open`]})},e))]})}function $x(){let{view:e,error:t,run:n,running:r}=qx(),[i,a]=(0,G.useState)(``);return e?.channels.length?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(W,{help:`A card says it is a test and which events each channel gets; nothing else is sent.`,children:`Send a test`}),(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,K.jsxs)(Yt,{"aria-label":`Channel`,value:i,onChange:e=>a(e.target.value),className:`w-[220px]`,children:[(0,K.jsx)(`option`,{value:``,children:`Every channel`}),e.channels.map(e=>(0,K.jsx)(`option`,{children:e},e))]}),(0,K.jsxs)(R,{size:`sm`,disabled:r,"data-tip":`Send a test`,onClick:()=>void n(`notify-test`,i?{channel:i}:{}),children:[(0,K.jsx)(ce,{"aria-hidden":`true`}),`Test`]})]}),t&&(0,K.jsx)(`p`,{className:`m-0 mt-2 text-sm text-fail`,children:t}),(0,K.jsx)(Jx,{job:e.job,kinds:[`notify-test`],onStop:()=>void Mt.stop()})]}):null}function eS(){let{view:e,error:t,run:n,running:r}=qx(),[i,a]=(0,G.useState)(``),[o,s]=(0,G.useState)(!1);return e?.evalCases.length?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(W,{help:`Runs stories from ForgeQE's evaluation cases (banking, insurance, lending, privacy) with the domain declared and without, and scores how many domain and regulation expectations the agent's test design meets. It makes model calls for each case.`,children:`Check the agent's domain knowledge`}),(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,K.jsxs)(Yt,{"aria-label":`Cases`,value:i,onChange:e=>a(e.target.value),className:`w-[320px] max-w-full`,children:[(0,K.jsxs)(`option`,{value:``,children:[`All `,e.evalCases.length,` cases`]}),e.evalCases.map(e=>(0,K.jsx)(`option`,{value:e.id,children:e.title},e.id))]}),(0,K.jsxs)(R,{size:`sm`,disabled:r,"data-tip":`Run the domain check`,onClick:()=>s(!0),children:[(0,K.jsx)(u,{"aria-hidden":`true`}),`Run`]})]}),o&&(0,K.jsx)(Yx,{text:`Run ${i?`one case`:`all ${e.evalCases.length} cases`} of the domain check?`,note:`Each case is a model session with the domain and one without, plus a judge; it takes a few minutes and costs tokens.`,yes:`Run`,icon:u,onYes:()=>{s(!1),n(`eval-domain`,{confirmed:!0,...i?{only:[i]}:{}})},onNo:()=>s(!1)}),t&&(0,K.jsx)(`p`,{className:`m-0 mt-2 text-sm text-fail`,children:t}),(0,K.jsx)(Jx,{job:e.job,kinds:[`eval-domain`],onStop:()=>void Mt.stop()})]}):null}function tS(){let[e,t]=(0,G.useState)(null),[n,r]=(0,G.useState)(``);if((0,G.useEffect)(()=>{Mt.generated().then(t,e=>r(e.message))},[]),n)return(0,K.jsx)(`p`,{className:`m-0 rounded-[12px] bg-fail-soft px-3 py-2 text-sm text-fail`,children:n});if(!e)return(0,K.jsx)(`p`,{className:`m-0 text-sm text-muted`,children:`Loading…`});let i=(e,t)=>t?`${Math.round(e/t*100)}%`:`–`;return e.runs?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:[`In `,(0,K.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.repo}),`, from .forgeqe/generated.jsonl: every line ForgeQE added, checked against the files as they are now.`]}),(0,K.jsxs)(hr,{label:`Generated code`,children:[(0,K.jsx)(tr,{label:`Lines written`,value:e.written.toLocaleString(),note:`${Dt(e.files,`file`)}: ${e.created} created, ${e.edited} edited`}),(0,K.jsx)(tr,{label:`Still in the code`,value:i(e.present,e.written),note:`${e.present.toLocaleString()} lines`}),(0,K.jsx)(tr,{label:`Share of those files`,value:i(e.present,e.totalLines),note:`of ${e.totalLines.toLocaleString()} lines`}),(0,K.jsx)(tr,{label:`Files it created`,value:String(e.headers.unchanged),note:`as written; ${e.headers.changed} changed, ${e.headers.removed} gone`})]}),(0,K.jsx)(W,{children:`By run, newest first`}),(0,K.jsx)(hn,{label:`Runs that wrote code`,head:[`Run`,`Files`,`Lines still there`],children:e.byRun.map(e=>(0,K.jsx)(wn,{cells:[(0,K.jsxs)(`span`,{className:`flex flex-col gap-0.5`,children:[(0,K.jsx)(`span`,{className:`font-mono text-[12px]`,children:e.fq}),(0,K.jsxs)(`span`,{className:`text-[13px] text-muted [overflow-wrap:anywhere]`,children:[e.run,e.test?` · ${e.test}`:``]})]},`r`),e.files,`${e.present} of ${e.written}`]},e.fq))}),e.missing.length>0&&(0,K.jsxs)(`p`,{className:`m-0 mt-3 text-[13px] text-muted [overflow-wrap:anywhere]`,children:[`Not found now: `,e.missing.slice(0,10).join(`, `)]})]}):(0,K.jsxs)(`p`,{className:`m-0 flex items-center gap-2 text-sm text-muted`,children:[(0,K.jsx)(Vt,{icon:ze,size:16}),`ForgeQE has not written code in `,!e.repo||e.repo===`.`?`this repository`:(0,K.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.repo}),` yet.`]})}function nS(e){let t=e?Date.parse(e):NaN;if(Number.isNaN(t))return``;let n=Math.max(0,(Date.now()-t)/1e3);if(n<60)return`just now`;if(n<3600)return`${Math.floor(n/60)} min ago`;if(n<21600)return`${Math.floor(n/3600)} h ago`;let r=new Date(t);return r.toDateString()===new Date().toDateString()?r.toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`}):n<518400?r.toLocaleString([],{weekday:`short`,hour:`2-digit`,minute:`2-digit`}):r.toLocaleDateString([],{day:`numeric`,month:`short`})}function rS(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`}var iS={critical:`Critical: ForgeQE cannot start, or loses or exposes data`,high:`High: a main feature does not work`,medium:`Medium: there is a workaround`,low:`Low: small or cosmetic`},aS=3,oS={done:`finished`,failed:`failed`,stopped:`stopped`,running:`running`};function sS(e){let[t,n]=(0,G.useState)(null),[r,i]=(0,G.useState)(``),a=(0,G.useCallback)(()=>tn.view(e).then(n,e=>i(e.message)),[e]);(0,G.useEffect)(()=>void a(),[a]);let o=!!t?.job?.running;return(0,G.useEffect)(()=>{if(!o)return;let e=setInterval(a,1e3);return()=>clearInterval(e)},[o,a]),{view:t,error:r,setError:i,load:a,running:o}}function cS({draft:e,areas:t,severities:n,onChange:r}){let i=(0,G.useId)(),a=(t,n)=>r({...e,[t]:n});return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(V,{label:`Title`,htmlFor:`${i}-title`,stacked:!0,className:`border-t-0 pt-0`,children:(0,K.jsx)(z,{id:`${i}-title`,value:e.title,maxLength:200,onChange:e=>a(`title`,e.target.value)})}),(0,K.jsx)(V,{label:`What happened`,htmlFor:`${i}-summary`,stacked:!0,children:(0,K.jsx)(Zt,{id:`${i}-summary`,rows:4,value:e.summary,maxLength:4e3,onChange:e=>a(`summary`,e.target.value)})}),(0,K.jsx)(V,{label:`Steps to reproduce`,help:`One step on each line.`,htmlFor:`${i}-steps`,stacked:!0,children:(0,K.jsx)(Zt,{id:`${i}-steps`,rows:4,value:e.steps.join(`
|
|
65
65
|
`),onChange:e=>a(`steps`,e.target.value.split(`
|
|
66
|
-
`))})}),(0,K.jsx)(V,{label:`Expected result`,htmlFor:`${i}-expected`,stacked:!0,children:(0,K.jsx)(Zt,{id:`${i}-expected`,rows:2,value:e.expected,maxLength:2e3,onChange:e=>a(`expected`,e.target.value)})}),(0,K.jsx)(V,{label:`Actual result`,help:`Copy an error message exactly.`,htmlFor:`${i}-actual`,stacked:!0,children:(0,K.jsx)(Zt,{id:`${i}-actual`,rows:2,value:e.actual,maxLength:2e3,onChange:e=>a(`actual`,e.target.value)})}),(0,K.jsx)(V,{label:`Severity`,htmlFor:`${i}-severity`,children:(0,K.jsx)(Yt,{id:`${i}-severity`,value:e.severity,onChange:e=>a(`severity`,e.target.value),children:n.map(e=>(0,K.jsx)(`option`,{value:e,children:iS[e]??e},e))})}),(0,K.jsx)(V,{label:`Area`,htmlFor:`${i}-area`,children:(0,K.jsx)(Yt,{id:`${i}-area`,value:e.area,onChange:e=>a(`area`,e.target.value),children:t.map(e=>(0,K.jsx)(`option`,{value:e,children:e[0].toUpperCase()+e.slice(1)},e))})})]})}var lS=e=>e<1024?`${e} bytes`:`${Math.round(e/1024)} KB`;function uS(){let[e,t]=(0,G.useState)(null),{view:n,error:a,setError:o,load:s,running:c}=sS(e),l=(0,G.useId)(),[u,d]=(0,G.useState)(``),[f,p]=(0,G.useState)(null),[m,h]=(0,G.useState)([]),[g,_]=(0,G.useState)({}),[v,y]=(0,G.useState)(null),[b,x]=(0,G.useState)([]),[C,w]=(0,G.useState)(``),[T,E]=(0,G.useState)(!1),[D,O]=(0,G.useState)(``),[k,A]=(0,G.useState)(null),j=(0,G.useRef)(null),M=(0,G.useRef)(null),N=n?.job;(0,G.useEffect)(()=>{N&&!N.running&&M.current!==N&&(M.current=N,N.error?o(N.error):N.kind===`draft`&&N.result?(p(N.result.draft),h(N.result.questions),_({})):N.kind===`send`&&N.result&&A(N.result))},[N,o]);let P=n?.attachments??[],te=n?.session??void 0,ne=v??new Set(P.filter(e=>e.picked).map(e=>e.id)),re=e=>{t(e),y(null)},ie=(e,t)=>{let n=new Set(ne);t?n.add(e):n.delete(e),y(n)},ae=async e=>{o(``);try{await tn.draft(e),s()}catch(e){o(e.message)}},F=()=>void ae({session:te,description:u,current:f??void 0,answers:m.map(e=>({question:e,answer:g[e]??``}))}),I=async e=>{o(``);for(let t of Array.from(e??[]).slice(0,aS-b.length))try{let e=await Ei(t);if(e.type!==`image/png`&&e.type!==`image/jpeg`)throw Error(`${t.name}: use a PNG or JPEG picture.`);x(t=>[...t,{name:e.name,url:`data:${e.type};base64,${e.data}`}])}catch(e){o(e.message)}},oe=async()=>{if(f){E(!1),o(``);try{await tn.send({session:te,draft:f,attach:[...ne],images:b.map(e=>e.url),contact:C.trim()||void 0,confirmed:!0}),s()}catch(e){o(e.message)}}},se=async()=>{if(f){o(``);try{let{text:e}=await tn.text(f);await navigator.clipboard.writeText(e),O(`Copied. Paste it into an email or a Teams message to the ForgeQE team.`)}catch(e){o(e.message)}}},le=()=>{d(``),t(null),p(null),h([]),_({}),x([]),y(null),A(null),O(``)};if(!n)return a?(0,K.jsx)(`p`,{role:`alert`,className:`m-0 rounded-[12px] bg-fail-soft px-3 py-2 text-sm text-fail [overflow-wrap:anywhere]`,children:a}):(0,K.jsx)(`p`,{className:`m-0 text-sm text-muted`,children:`Loading…`});let ue=n.intake.url&&(n.intake.key||n.intake.entra),de=k?.url&&/^https:\/\/dev\.azure\.com\/[^\s"<>]+$/.test(k.url)?k.url:null;return k?(0,K.jsxs)(`div`,{"aria-live":`polite`,className:`flex flex-col gap-3`,children:[(0,K.jsxs)(`p`,{className:`m-0 text-sm text-ink-2`,children:[k.existing?`This problem was already reported, so your report was added to bug `:`Thank you. The ForgeQE team has your report as bug `,de?(0,K.jsxs)(`a`,{href:de,target:`_blank`,rel:`noreferrer noopener`,className:`font-medium text-ink no-underline hover:underline`,children:[`#`,k.id]}):(0,K.jsxs)(`span`,{className:`font-medium`,children:[`#`,k.id]}),` `,`in `,n.target,`.`]}),(0,K.jsx)(`div`,{children:(0,K.jsxs)(R,{size:`sm`,"data-tip":`Report another problem`,onClick:le,children:[(0,K.jsx)(r,{"aria-hidden":`true`}),`New`]})})]}):(0,K.jsxs)(K.Fragment,{children:[a&&(0,K.jsx)(`p`,{role:`alert`,className:`m-0 mb-3 rounded-[12px] bg-fail-soft px-3 py-2 text-sm text-fail [overflow-wrap:anywhere]`,children:a}),(0,K.jsx)(W,{first:!0,help:n.sessions.length?`ForgeQE looked at your recent sessions and picked the one that went wrong. Pick another if that is not the one.`:`ForgeQE has no session on this computer to look at. Say what went wrong in your own words.`,children:`What went wrong`}),n.sessions.length>0&&(0,K.jsx)(`div`,{role:`radiogroup`,"aria-label":`Session to report`,children:n.sessions.map(e=>(0,K.jsxs)(`div`,{className:`flex min-h-[68px] flex-wrap items-center gap-x-4 gap-y-2 border-t border-line-soft py-3 first:border-t-0`,children:[(0,K.jsx)(Cs,{checked:n.session===e.name,onSelect:()=>re(e.name),label:`Report ${e.title}`}),(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-0.5`,children:[(0,K.jsx)(`span`,{className:`font-medium [overflow-wrap:anywhere]`,children:e.title}),(0,K.jsx)(`span`,{className:`text-sm text-muted`,children:[`forgeqe ${e.command}`,nS(e.startedAt),oS[e.status]].join(` · `)}),e.error&&(0,K.jsx)(`span`,{className:`text-sm text-fail [overflow-wrap:anywhere]`,children:e.error})]}),e.problem&&(0,K.jsx)(Ft,{tone:`fail`,children:`Went wrong`})]},e.name))}),n.findings&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(W,{help:`From the session's log, with secrets removed. The bug is drafted from this. Test cases that failed are your app's results, so they are only counted.`,children:`What ForgeQE found`}),(0,K.jsxs)(`dl`,{className:`m-0 flex flex-col gap-3 text-sm`,children:[(0,K.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,K.jsx)(`dt`,{className:`font-medium text-ink`,children:`What was asked or run`}),(0,K.jsx)(`dd`,{className:`m-0 font-mono text-[13px] text-ink-2 [overflow-wrap:anywhere]`,children:n.findings.request})]}),(0,K.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,K.jsx)(`dt`,{className:`font-medium text-ink`,children:`ForgeQE's errors`}),(0,K.jsx)(`dd`,{className:`m-0`,children:n.findings.errors.length?(0,K.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-1 p-0`,children:n.findings.errors.map(e=>(0,K.jsx)(`li`,{className:`rounded-[10px] bg-surface-muted px-3 py-2 font-mono text-[12px] leading-relaxed text-ink-2 [overflow-wrap:anywhere]`,children:e},e))}):(0,K.jsx)(`span`,{className:`text-ink-2`,children:`None logged. Say below what went wrong.`})})]}),n.findings.facts.length>0&&(0,K.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,K.jsx)(`dt`,{className:`font-medium text-ink`,children:`Also`}),(0,K.jsx)(`dd`,{className:`m-0`,children:(0,K.jsx)(`ul`,{className:`m-0 flex list-disc flex-col gap-0.5 pl-5 text-ink-2`,children:n.findings.facts.map(e=>(0,K.jsx)(`li`,{className:`[overflow-wrap:anywhere]`,children:e},e))})})]})]})]}),(0,K.jsx)(V,{label:n.findings?`Anything to add`:`Describe the problem`,help:n.findings?`Optional: what you were trying to do, or what you expected.`:void 0,htmlFor:`${l}-description`,stacked:!0,className:n.findings?void 0:`border-t-0 pt-0`,children:(0,K.jsx)(Zt,{id:`${l}-description`,rows:n.findings?3:5,value:u,maxLength:8e3,placeholder:n.findings?`For example: I expected the run to open the login page.`:`For example: I clicked Run on a test case in the web app and nothing happened for ten minutes.`,onChange:e=>d(e.target.value)})}),(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 pt-2`,children:[(0,K.jsxs)(R,{size:`sm`,variant:f?`outline`:`primary`,disabled:c||!te&&u.trim().length<10,"data-tip":f?`Draft again`:`Draft the bug`,onClick:()=>void ae({session:te,description:u}),children:[(0,K.jsx)(He,{"aria-hidden":`true`}),`Draft`]}),c&&N?.kind===`draft`&&(0,K.jsx)(Ft,{tone:`running`,orb:`thinking`,children:`Drafting`})]}),m.length>0&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(W,{help:`Answer what you can, then update the draft. You can leave a question empty.`,children:`Questions`}),m.map((e,t)=>(0,K.jsx)(V,{label:e,htmlFor:`${l}-q${t}`,stacked:!0,className:t===0?`border-t-0 pt-0`:void 0,children:(0,K.jsx)(Zt,{id:`${l}-q${t}`,rows:2,value:g[e]??``,maxLength:2e3,onChange:t=>_(n=>({...n,[e]:t.target.value}))})},e)),(0,K.jsx)(`div`,{className:`pt-2`,children:(0,K.jsxs)(R,{size:`sm`,disabled:c||!Object.values(g).some(e=>e.trim()),"data-tip":`Update the draft`,onClick:F,children:[(0,K.jsx)(ee,{"aria-hidden":`true`}),`Update`]})})]}),f&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(W,{help:`Check each field and change what is not right. This is what the ForgeQE team reads.`,children:`The bug`}),(0,K.jsx)(cS,{draft:f,areas:n.areas,severities:n.severities,onChange:p}),(0,K.jsx)(W,{help:`Secrets ForgeQE knows are replaced in every file. Open a log first if you are not sure what is in it: it can show addresses and test data of your project.`,children:`What is attached`}),(0,K.jsxs)(`ul`,{"aria-label":`Attachments`,className:`m-0 list-none p-0`,children:[P.map(e=>(0,K.jsx)(`li`,{className:`border-t border-line-soft`,children:(0,K.jsxs)(`label`,{className:`flex min-h-12 cursor-pointer items-center gap-3 py-2`,children:[(0,K.jsx)(ux,{checked:ne.has(e.id),onCheckedChange:t=>ie(e.id,t)}),(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,K.jsx)(`span`,{className:`font-mono text-[13px] [overflow-wrap:anywhere]`,children:e.name}),(0,K.jsxs)(`span`,{className:`text-sm text-muted [overflow-wrap:anywhere]`,children:[e.note,` · `,lS(e.bytes)]})]})]})},e.id)),b.map((e,t)=>(0,K.jsxs)(`li`,{className:`flex min-h-12 items-center gap-3 border-t border-line-soft py-2`,children:[(0,K.jsx)(`img`,{src:e.url,alt:`Screenshot ${t+1}`,className:`h-10 w-16 rounded-[8px] border border-line-soft bg-surface-muted object-cover`}),(0,K.jsx)(`span`,{className:`flex-1 font-mono text-[13px] [overflow-wrap:anywhere]`,children:e.name}),(0,K.jsx)(R,{variant:`icon`,size:`icon-sm`,"aria-label":`Remove ${e.name}`,"data-tip":`Remove ${e.name}`,onClick:()=>x(t=>t.filter(t=>t!==e)),children:(0,K.jsx)(Je,{"aria-hidden":`true`})})]},e.url))]}),(0,K.jsxs)(`div`,{className:`pt-2`,children:[(0,K.jsx)(`input`,{ref:j,type:`file`,accept:`image/png,image/jpeg`,multiple:!0,hidden:!0,onChange:e=>void I(e.target.files).then(()=>e.target.value=``)}),(0,K.jsxs)(R,{size:`sm`,disabled:b.length>=aS,"data-tip":`Add a screenshot`,onClick:()=>j.current?.click(),children:[(0,K.jsx)(r,{"aria-hidden":`true`}),`Add`]})]}),(0,K.jsx)(W,{children:`Send`}),(0,K.jsx)(V,{label:`Your contact`,help:`Optional: an email or a Teams name, so the team can ask you about it.`,htmlFor:`${l}-contact`,className:`border-t-0 pt-0`,children:(0,K.jsx)(z,{id:`${l}-contact`,value:C,maxLength:200,onChange:e=>w(e.target.value)})}),n.intake.url?!ue&&(0,K.jsx)(V,{label:`Intake key`,help:`Sign in to your organization with the Azure CLI (az login), or save the key the ForgeQE team gave you. It is kept in your credential store when you save.`,htmlFor:`${l}-key`,children:(0,K.jsx)(Mn,{id:`${l}-key`,name:n.keyEnv,field:`Intake key`})}):(0,K.jsx)(V,{label:`Not set up yet`,help:`ForgeQE's defect intake is not set up on this computer. Copy the report and send it to the ForgeQE team.`}),(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 pt-2`,children:[(0,K.jsxs)(R,{size:`sm`,variant:`primary`,disabled:c||!ue||!f.title.trim()||!f.summary.trim(),"data-tip":`Send to the ForgeQE team`,onClick:()=>E(!0),children:[(0,K.jsx)(ce,{"aria-hidden":`true`}),`Send`]}),(0,K.jsxs)(R,{size:`sm`,disabled:!f.title.trim()||!f.summary.trim(),"data-tip":`Copy as text`,onClick:()=>void se(),children:[(0,K.jsx)(S,{"aria-hidden":`true`}),`Copy`]}),c&&N?.kind===`send`&&(0,K.jsx)(Ft,{tone:`running`,children:`Sending`})]}),(0,K.jsx)(`div`,{"aria-live":`polite`,children:D&&(0,K.jsx)(`p`,{className:`m-0 mt-2 text-sm text-ink-2`,children:D})}),T&&(0,K.jsxs)(`div`,{role:`alertdialog`,"aria-label":`Send this bug?`,className:`mt-3 flex flex-col gap-2 rounded-[12px] border border-warn bg-warn-soft p-3`,children:[(0,K.jsx)(`span`,{className:`text-sm font-medium`,children:`Send this bug to the ForgeQE team?`}),(0,K.jsxs)(`span`,{className:`text-[13px] text-ink-2`,children:[`It is filed in `,n.target,` with the fields above`,ne.size+b.length?`, and ${ne.size+b.length} attached file${ne.size+b.length===1?``:`s`}: ${[...P.filter(e=>ne.has(e.id)).map(e=>e.name),...b.map(e=>e.name)].join(`, `)}`:`, with nothing attached`,`.`]}),(0,K.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,K.jsxs)(R,{size:`sm`,variant:`primary`,onClick:()=>void oe(),children:[(0,K.jsx)(ce,{"aria-hidden":`true`}),`Send`]}),(0,K.jsxs)(R,{size:`sm`,"data-tip":`Not now`,onClick:()=>E(!1),children:[(0,K.jsx)(i,{"aria-hidden":`true`}),`Later`]})]})]})]})]})}function dS({config:e}){let{saved:t,preview:n,reload:r}=Hn(),i=H(xr(e.value,[`agent`,`names`])),a=or(i),o=xr(e.value,[`agent`,`app_name`]),s=typeof o==`string`?o:``,c=In(s),l=JSON.stringify([a,c]);return(0,G.useEffect)(()=>n({...t,agentNames:a,appName:c}),[l,t]),(0,G.useEffect)(()=>()=>{n(null),r()},[n,r]),(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(W,{icon:Ze,help:(0,K.jsx)(`span`,{"data-keep-name":!0,children:`What the web app calls ForgeQE itself: in every page, message and tab title, and in the reports and documents it writes. Commands, files and settings keep forgeqe. Empty keeps ForgeQE.`}),children:(0,K.jsx)(`span`,{"data-keep-name":!0,children:`ForgeQE's name`})}),(0,K.jsx)(V,{label:(0,K.jsx)(`span`,{"data-keep-name":!0,children:`App name`}),help:(0,K.jsx)(`span`,{"data-keep-name":!0,children:`Instead of ForgeQE, for everyone who opens this project.`}),htmlFor:`agent-app-name`,yamlKey:`agent.app_name`,children:(0,K.jsx)(z,{id:`agent-app-name`,"data-keep-name":!0,value:s,maxLength:40,placeholder:`ForgeQE`,onChange:t=>e.set(U(e.value,[`agent`,`app_name`],t.target.value.replace(/[\u0000-\u001f\u007f-\u009f\u2028\u2029]/g,``)||void 0)),className:`w-full`})}),(0,K.jsx)(W,{icon:dt,help:`Call each agent what your team calls it: the name shows in chats, on the Agents page and in the terminal, for everyone who opens this project. What it does and may do stay the same. Empty keeps ForgeQE's name.`,children:`Agent names`}),Jn.map(t=>{let n=bn(t).name,r=`agent-name-${t}`,a=typeof i[t]==`string`?i[t]:``;return(0,K.jsx)(V,{label:(0,K.jsxs)(`span`,{className:`flex items-center gap-2.5`,children:[(0,K.jsx)(Zn,{agent:t,px:22,decorative:!0}),n]}),help:t,htmlFor:r,yamlKey:`agent.names.${t}`,children:(0,K.jsx)(z,{id:r,value:a,maxLength:40,placeholder:n,onChange:n=>e.set(U(e.value,[`agent`,`names`,t],n.target.value.replace(/[\u0000-\u001f\u007f-\u009f\u2028\u2029]/g,``)||void 0)),className:`w-full`})},t)})]})}var fS=524288,pS=[`image/png`,`image/jpeg`,`image/webp`,`image/svg+xml`];async function mS(e){let t=new Uint8Array(await e.arrayBuffer()),n=``;for(let e=0;e<t.length;e+=32768)n+=String.fromCharCode(...t.subarray(e,e+32768));return btoa(n)}function hS({children:e,className:t}){return(0,K.jsx)(`div`,{className:L(`flex w-full flex-wrap items-center gap-2 sm:justify-end`,t),children:e})}function gS({colour:e,label:t}){return(0,K.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-sm text-ink-2`,children:[(0,K.jsx)(`span`,{"aria-hidden":`true`,className:`size-4 flex-none rounded-[4px] border border-line`,style:{background:e}}),t&&(0,K.jsx)(`span`,{className:`text-muted`,children:t}),(0,K.jsx)(`code`,{className:`font-mono text-[12.5px]`,children:e})]})}function _S({onUse:e}){let t=(0,G.useId)(),[n,r]=(0,G.useState)(``),[i,a]=(0,G.useState)(!1),[o,c]=(0,G.useState)(``),[l,u]=(0,G.useState)(null),[d,f]=(0,G.useState)(!1);return(0,K.jsx)(V,{label:`From a website`,help:`Suggests its sidebar, button and page colours. Nothing changes until you use them.`,htmlFor:t,children:(0,K.jsxs)(hS,{children:[(0,K.jsxs)(`form`,{className:`flex w-full items-center gap-2`,onSubmit:async e=>{e.preventDefault(),a(!0),c(``),u(null),f(!1);try{u(await xt.fromUrl(n.trim()))}catch(e){c(e.message)}finally{a(!1)}},children:[(0,K.jsx)(z,{id:t,type:`url`,value:n,placeholder:`https://www.example.com`,spellCheck:!1,onChange:e=>r(e.target.value),className:`min-w-0 flex-1`}),(0,K.jsxs)(R,{size:`sm`,type:`submit`,disabled:!n.trim()||i,"data-tip":`Read the site's colours`,children:[(0,K.jsx)(ot,{"aria-hidden":`true`}),i?`Importing…`:`Import`]})]}),o&&(0,K.jsx)(`p`,{role:`alert`,className:`m-0 w-full text-[13px] text-fail sm:text-right`,children:o}),l&&(0,K.jsxs)(`div`,{role:`status`,className:`flex w-full flex-col gap-2 sm:items-end`,children:[(0,K.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[`From `,new URL(l.url).host]}),(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-4 gap-y-2 sm:justify-end`,children:[l.primary&&(0,K.jsx)(gS,{colour:l.primary,label:`Sidebar`}),l.gradient&&(0,K.jsx)(gS,{colour:l.gradient,label:`Gradient`}),l.secondary&&(0,K.jsx)(gS,{colour:l.secondary,label:`Buttons`}),l.background&&(0,K.jsx)(gS,{colour:l.background,label:`Page`})]}),(0,K.jsxs)(R,{size:`sm`,variant:`primary`,onClick:()=>{e(l),f(!0)},"data-tip":`Use these colours`,children:[(0,K.jsx)(s,{"aria-hidden":`true`}),d?`Used`:`Use`]}),l.palette.length>0&&(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1 sm:justify-end`,children:[(0,K.jsx)(`span`,{className:`text-[12.5px] text-muted`,children:`Others:`}),l.palette.map(e=>(0,K.jsx)(gS,{colour:e},e))]})]})]})})}function vS({label:e,help:t,yamlKey:n,value:r,fallback:i,check:a,onChange:o}){let s=(0,G.useId)(),[c,l]=(0,G.useState)(r);(0,G.useEffect)(()=>l(r),[r]);let u=Rn(c),d=c.trim()!==``&&!u?`Write a colour as #rrggbb, for example #0b1f3a.`:u&&a?a(u):``;return(0,K.jsx)(V,{label:e,help:d?(0,K.jsx)(`span`,{className:`text-fail`,children:d}):t,htmlFor:s,yamlKey:n,children:(0,K.jsxs)(hS,{className:`flex-nowrap`,children:[(0,K.jsx)(`input`,{type:`color`,"aria-label":`${e}: pick a colour`,value:Rn(r)||i||`#ffffff`,onChange:e=>o(a?.(e.target.value)?``:e.target.value),className:`size-10 flex-none cursor-pointer rounded-[8px] border border-line bg-bg p-1`}),(0,K.jsx)(z,{id:s,value:c,spellCheck:!1,placeholder:i?`${i} (default)`:`None`,"aria-invalid":!!d,onChange:e=>{l(e.target.value);let t=Rn(e.target.value);(t&&!a?.(t)||!e.target.value.trim())&&o(t||``)},className:`min-w-0 flex-1 font-mono`})]})})}function yS({which:e,label:t,yamlKey:n,value:r,url:i,savedError:a,onChange:o}){let[s,c]=(0,G.useState)(``),[l,u]=(0,G.useState)(!1),d=(0,G.useRef)(null),f=e===`mark`?`small logo`:`logo`;return(0,K.jsx)(V,{label:t,help:s||r&&!i&&a?(0,K.jsx)(`span`,{className:`text-fail`,children:s||a}):e===`mark`?`For the narrow sidebar. Square or round works best.`:`In the sidebar, reports and documents. PNG, JPEG or WebP (a large one is made smaller), or SVG up to 512 KB; an empty margin round it is cut off.`,yamlKey:n,children:(0,K.jsxs)(hS,{children:[i&&(0,K.jsx)(`span`,{className:L(`theme-side flex h-12 items-center justify-center rounded-[8px] border border-line`,e===`mark`?`w-12`:`min-w-16 px-3`),children:(0,K.jsx)(`img`,{src:i,alt:`The ${f}`,className:L(`block object-contain`,e===`mark`?`max-h-9 max-w-9`:`max-h-8 max-w-[140px]`)})}),(0,K.jsx)(`input`,{ref:d,type:`file`,accept:`.png,.jpg,.jpeg,.webp,.svg`,className:`sr-only`,tabIndex:-1,"aria-hidden":`true`,onChange:async t=>{let n=t.target.files?.[0];if(t.target.value=``,n){if(c(``),!pS.includes(n.type))return c(`A ${f} is a PNG, JPEG, WebP or SVG image.`);if(n.type===`image/svg+xml`&&n.size>fS)return c(`${n.name} is over 512 KB.`);if(n.size>20971520)return c(`${n.name} is over ${Bn/1024/1024} MB: save a smaller copy and upload that.`);u(!0);try{let t=await er(n,fS),r=await xt.uploadLogo(await mS(t),t.type,e);o(r.file,(e===`mark`?r.view.logoMark:r.view.logo)||``)}catch(e){c(e.message)}finally{u(!1)}}}}),(0,K.jsxs)(R,{size:`sm`,disabled:l,"data-tip":i?`Change the ${f}`:`Upload a ${f}`,onClick:()=>d.current?.click(),children:[i?(0,K.jsx)(I,{"aria-hidden":`true`}):(0,K.jsx)(ot,{"aria-hidden":`true`}),l?`Uploading…`:i?`Change`:`Upload`]}),r&&(0,K.jsx)(R,{variant:`icon`,size:`icon-sm`,"aria-label":`Remove the ${f}`,"data-tip":`Remove the ${f}`,onClick:()=>o(``),children:(0,K.jsx)(Je,{"aria-hidden":`true`})})]})})}var bS={auto:`Auto (recommended)`,plain:`Plain`,tiles:`On tiles`,outline:`Outlined`,mono:`One colour`};function xS(e){for(let{item:t}of Un)if(t.icon===e||_r[t.id]===e)return t.label;for(let t of On)if(_n(t.agent).icon===e)return _n(t.agent).name;return e}function SS({draft:e,value:t,onChange:n}){let{mode:r}=Hn(),i=un(e,void 0,r),a=vr(e)!==`3d`,o=!a&&t!==`mono`&&t!==`outline`&&i.lowest<2,s=o?`${i.faint.length||`Some`} ${i.faint.length===1?`icon is`:`icons are`} hard to see on this colour${i.faint.length?` (${i.faint.slice(0,2).map(e=>xS(e.icon)).join(`, `)}${i.faint.length>2?`, …`:``})`:``}. Try Auto or On tiles.`:!a&&t===`auto`&&i.style!==`plain`?`Auto put them on tiles: this colour hides some of them.`:``;return(0,K.jsx)(V,{label:`Sidebar icons`,help:a?`For the 3D icons. Flat icons take the Icon colour above.`:`Auto puts them on tiles when the sidebar's colour hides any.`,htmlFor:`theme-icons`,yamlKey:`theme.icon_style`,children:(0,K.jsxs)(hS,{children:[(0,K.jsx)(Yt,{id:`theme-icons`,value:t,disabled:a,onChange:e=>n(e.target.value),className:`w-full`,children:Gn.map(e=>(0,K.jsx)(`option`,{value:e,children:bS[e]},e))}),!a&&(0,K.jsx)(CS,{}),s&&(0,K.jsx)(`span`,{className:L(`w-full text-[13px] sm:text-right`,o?`text-warn`:`text-muted`),children:s})]})})}function CS(){let e=[`record`,`data`,`jobs`,`guardrails`].map(e=>_r[e]).concat([`orchestrator`,`healer`,`browser-agent`]);return(0,K.jsx)(`span`,{"aria-label":`How the sidebar's icons look`,className:`theme-side flex w-full items-center justify-between rounded-[10px] border border-line-soft px-3 py-2`,children:e.map(e=>(0,K.jsx)(Pt,{name:e,px:18},e))})}var wS={phosphor:`Phosphor Duotone (default)`,solar:`Solar Bold Duotone`,lucide:`Lucide (buttons and menus too)`,"3d":`3D (ForgeQE's pixel icons)`};function TS({value:e,onChange:t}){return(0,K.jsx)(V,{label:`Icons`,help:`Flat icons are black, or the Icon colour below, so they show on any sidebar.`,htmlFor:`theme-icon-set`,yamlKey:`theme.icon_set`,children:(0,K.jsxs)(hS,{children:[(0,K.jsx)(Yt,{id:`theme-icon-set`,value:e,onChange:e=>t(e.target.value),className:`w-full`,children:Kn.map(e=>(0,K.jsx)(`option`,{value:e,children:wS[e]},e))}),(0,K.jsx)(CS,{})]})})}var ES={text:`Black, white in dark mode (default)`,accent:`The buttons' colour`,custom:`A colour of their own`};function DS({draft:e,value:t,onChange:n}){let{mode:r}=Hn(),i=br({iconColour:t}),a=vr(e)!==`3d`,[o,s]=(0,G.useState)(i===`custom`?t:``);(0,G.useEffect)(()=>s(i===`custom`?t:``),[t,i]);let c=i===`custom`&&o.trim()!==``&&!Rn(o)?`Write a colour as #rrggbb, for example #7c3aed.`:``,l=a?kn(e,r).moved:[],u=l.length?`Made ${r===`dark`?`lighter`:`darker`} on the ${l.join(` and the `)} so the icons show.`:``;return(0,K.jsx)(V,{label:`Icon colour`,help:c?(0,K.jsx)(`span`,{className:`text-fail`,children:c}):a?`For the flat icons of the pages and agents: their lines take the colour, and their second tone its palest shade.`:`For the flat icons. The 3D icons keep their own colours.`,htmlFor:`theme-icon-colour`,yamlKey:`theme.icon_colour`,children:(0,K.jsxs)(hS,{children:[(0,K.jsx)(Yt,{id:`theme-icon-colour`,value:i,disabled:!a,onChange:t=>{let r=t.target.value;n(r===`accent`?`accent`:r===`custom`?Rn(e.secondary)||nr:``)},className:`w-full`,children:Object.keys(ES).map(e=>(0,K.jsx)(`option`,{value:e,children:ES[e]},e))}),a&&i===`custom`&&(0,K.jsxs)(`span`,{className:`flex w-full flex-nowrap items-center gap-2`,children:[(0,K.jsx)(`input`,{type:`color`,"aria-label":`Icon colour: pick a colour`,value:Rn(t)||nr,onChange:e=>n(e.target.value),className:`size-10 flex-none cursor-pointer rounded-[8px] border border-line bg-bg p-1`}),(0,K.jsx)(z,{id:`theme-icon-colour-hex`,"aria-label":`Icon colour`,value:o,spellCheck:!1,placeholder:`#7c3aed`,"aria-invalid":!!c,onChange:e=>{s(e.target.value);let t=Rn(e.target.value);(t||!e.target.value.trim())&&n(t||``)},className:`min-w-0 flex-1 font-mono`})]}),u&&(0,K.jsx)(`span`,{className:`w-full text-[13px] text-warn sm:text-right`,children:u})]})})}function OS(){let{choice:e,setChoice:t}=Hn();return(0,K.jsx)(V,{label:`Colour mode`,help:`Only for you, in this browser.`,children:(0,K.jsx)(hS,{children:(0,K.jsx)(`div`,{role:`radiogroup`,"aria-label":`Colour mode`,className:`inline-flex flex-wrap gap-1 rounded-[10px] bg-surface-strong p-1`,children:[{id:`system`,label:`System`},{id:`light`,label:`Light`},{id:`dark`,label:`Dark`}].map(n=>(0,K.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":e===n.id,onClick:()=>t(n.id),className:L(`min-h-8 cursor-pointer rounded-[8px] border-0 px-3 text-sm`,e===n.id?`bg-bg font-medium text-ink shadow-[0_1px_2px_rgba(0,0,0,.15)]`:`bg-transparent text-ink-2 hover:text-ink`),children:n.label},n.id))})})})}var kS=[`primary`,`gradient`,`secondary`,`background`,`icon_style`,`icon_set`,`icon_colour`];function AS({theme:e,value:t,onReset:n}){let{choice:r,setChoice:i}=Hn(),a=kS.some(t=>e[t]!==void 0)||r!==`system`;return(0,K.jsxs)(R,{size:`sm`,disabled:!a,"data-tip":`Reset colours: ForgeQE's own colours and icons, and System mode. The logo and name stay.`,onClick:()=>{let e=t;for(let t of kS)e=U(e,[`theme`,t],void 0);n(e),i(`system`)},children:[(0,K.jsx)(p,{"aria-hidden":`true`}),`Reset`]})}var jS=e=>An(e)<.75?`Choose a light colour: dark mode gives the dark page.`:``;function MS({config:e}){let{saved:t,preview:r,reload:i}=Hn(),a=H(e.value.theme),o=e=>typeof a[e]==`string`?a[e]:``,s=(t,n)=>e.set(U(e.value,[`theme`,t],n||void 0)),[c,l]=(0,G.useState)(null),[u,d]=(0,G.useState)(null),[f,m]=(0,G.useState)(``),[h,g]=(0,G.useState)(!1),_=(0,G.useRef)(null),v=c&&c.file===o(`logo`)?c.url:t.logoFile===o(`logo`)?t.logo:void 0,y=u&&u.file===o(`logo_mark`)?u.url:t.logoMarkFile===o(`logo_mark`)?t.logoMark:void 0,b=[`plain`,`rounded`,`circle`,`tile`].find(e=>e===o(`logo_frame`)),x=o(`logo_size`)===`large`||o(`logo_size`)===`standard`?o(`logo_size`):void 0,S=Gn.find(e=>e===o(`icon_style`)),C=Kn.find(e=>e===o(`icon_set`)),w=or(xr(e.value,[`agent`,`names`])),T={...Object.keys(w).length?{agentNames:w}:{},logoSize:x,name:o(`name`)||void 0,primary:Rn(o(`primary`)),gradient:Rn(o(`gradient`)),secondary:Rn(o(`secondary`)),background:Rn(o(`background`)),logo:o(`logo`)?v:void 0,logoMark:o(`logo_mark`)?y:void 0,logoFrame:b,iconStyle:S,iconSet:C,iconColour:o(`icon_colour`)===`accent`?`accent`:Rn(o(`icon_colour`))},E=JSON.stringify(T);(0,G.useEffect)(()=>r(T),[E]),(0,G.useEffect)(()=>()=>{r(null),i()},[r,i]);let ee=mn(T).filter(e=>!e.ok);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(W,{icon:mt,first:!0,children:`Logo and name`}),(0,K.jsx)(yS,{which:`logo`,label:`Logo`,yamlKey:`theme.logo`,value:o(`logo`),url:v,savedError:t.logoError,onChange:(e,t)=>(l(t?{file:e,url:t}:null),s(`logo`,e))}),(0,K.jsx)(yS,{which:`mark`,label:`Small logo`,yamlKey:`theme.logo_mark`,value:o(`logo_mark`),url:y,savedError:t.logoMarkError,onChange:(e,t)=>(d(t?{file:e,url:t}:null),s(`logo_mark`,e))}),(0,K.jsx)(V,{label:`Logo frame`,help:`A circle suits a square logo; a white tile, a dark logo on a dark sidebar.`,htmlFor:`theme-frame`,yamlKey:`theme.logo_frame`,children:(0,K.jsx)(hS,{children:(0,K.jsxs)(Yt,{id:`theme-frame`,value:b||`plain`,onChange:e=>s(`logo_frame`,e.target.value===`plain`?``:e.target.value),className:`w-full`,children:[(0,K.jsx)(`option`,{value:`plain`,children:`As it is`}),(0,K.jsx)(`option`,{value:`rounded`,children:`Rounded corners`}),(0,K.jsx)(`option`,{value:`circle`,children:`Circle`}),(0,K.jsx)(`option`,{value:`tile`,children:`On a white tile`})]})})}),(0,K.jsx)(V,{label:`Logo size`,help:`Fit automatically sizes the logo from its shape, so its words can be read. Large spreads a wide logo across the top of the sidebar.`,htmlFor:`theme-size`,yamlKey:`theme.logo_size`,children:(0,K.jsx)(hS,{children:(0,K.jsxs)(Yt,{id:`theme-size`,value:x||`auto`,onChange:e=>s(`logo_size`,e.target.value===`large`||e.target.value===`standard`?e.target.value:``),className:`w-full`,children:[(0,K.jsx)(`option`,{value:`auto`,children:`Fit automatically`}),(0,K.jsx)(`option`,{value:`standard`,children:`Standard`}),(0,K.jsx)(`option`,{value:`large`,children:`Large`})]})})}),(0,K.jsx)(V,{label:`Name`,help:`Beside a square logo, or instead of one. Screen readers say it.`,htmlFor:`theme-name`,yamlKey:`theme.name`,children:(0,K.jsx)(hS,{children:(0,K.jsx)(z,{id:`theme-name`,value:o(`name`),maxLength:40,placeholder:`ForgeQE`,onChange:e=>s(`name`,e.target.value),className:`w-full`})})}),(0,K.jsx)(V,{label:`Preview`,help:h?(0,K.jsx)(`span`,{className:`text-warn`,children:`The logo is close to the sidebar's colour, so it sits on a plate. A different sidebar colour sets it off without one.`}):`The sidebar's top, wide and narrow.`,children:(0,K.jsxs)(hS,{className:`flex-nowrap`,children:[(0,K.jsx)(`span`,{"aria-label":`How the sidebar's top looks`,className:`theme-side flex min-h-14 min-w-0 flex-1 items-center rounded-[10px] border border-line-soft px-4 text-base font-semibold`,children:(0,K.jsx)(ar,{theme:T,onPlate:g})}),(0,K.jsx)(`span`,{"aria-label":`How the narrow sidebar's top looks`,className:`theme-side flex size-14 flex-none items-center justify-center rounded-[10px] border border-line-soft`,children:(0,K.jsx)(ur,{theme:T})})]})}),(0,K.jsx)(W,{icon:ut,help:`Leave a colour empty to keep ForgeQE's own.`,children:`Colours`}),(0,K.jsx)(OS,{}),(0,K.jsx)(vS,{label:`Sidebar`,help:`Light mode. Its text turns white on a dark colour.`,yamlKey:`theme.primary`,value:o(`primary`),fallback:sr,onChange:e=>s(`primary`,e)}),(0,K.jsx)(vS,{label:`Sidebar gradient`,help:`The sidebar fades into it, top to bottom.`,yamlKey:`theme.gradient`,value:o(`gradient`),onChange:e=>s(`gradient`,e)}),(0,K.jsx)(vS,{label:`Buttons and links`,help:`Also selected tabs and filters and the sidebar entry you are on, with shades made from it. Left empty, it is the icon colour when that is a colour of its own, so the app has one brand colour.`,yamlKey:`theme.secondary`,value:o(`secondary`),fallback:gr({...T,secondary:void 0})||nr,onChange:e=>s(`secondary`,e)}),(0,K.jsx)(vS,{label:`Page background`,help:`Light mode, a light colour. Dark mode keeps its dark page.`,yamlKey:`theme.background`,value:o(`background`),fallback:`#ffffff`,check:jS,onChange:e=>s(`background`,e)}),(0,K.jsx)(TS,{value:C||`phosphor`,onChange:e=>s(`icon_set`,e===`phosphor`?``:e)}),(0,K.jsx)(DS,{draft:T,value:o(`icon_colour`),onChange:e=>s(`icon_colour`,e)}),(0,K.jsx)(SS,{draft:T,value:S||`auto`,onChange:e=>s(`icon_style`,e===`auto`?``:e)}),(0,K.jsx)(V,{label:`Preview`,help:ee.length?(0,K.jsx)(`span`,{className:`flex flex-col gap-0.5 text-warn`,children:ee.map(e=>(0,K.jsxs)(`span`,{className:`flex items-start gap-1.5`,children:[(0,K.jsx)(n,{size:14,"aria-hidden":`true`,className:`mt-0.5 flex-none`}),e.label,` is hard to read (`,e.ratio,`:1, 4.5:1 needed).`]},e.label))}):`Every text reads on these colours.`,children:(0,K.jsxs)(hS,{children:[(0,K.jsxs)(`span`,{className:`flex w-full items-center justify-end gap-4 rounded-[10px] border border-line-soft bg-bg p-3`,children:[(0,K.jsx)(`a`,{href:`#appearance-preview`,onClick:e=>e.preventDefault(),className:`text-sm`,children:`A link`}),(0,K.jsx)(R,{variant:`primary`,size:`sm`,tabIndex:-1,"aria-hidden":`true`,className:`pointer-events-none`,children:`A button`})]}),(0,K.jsx)(AS,{theme:a,onReset:t=>e.set(t),value:e.value})]})}),(0,K.jsx)(W,{icon:Pe,children:`Import colours`}),(0,K.jsx)(_S,{onUse:t=>{let n=e.value;for(let e of[`primary`,`gradient`,`secondary`,`background`])n=U(n,[`theme`,e],t[e]||void 0);e.set(n)}}),(0,K.jsx)(V,{label:`From a DESIGN.md`,help:f?(0,K.jsx)(`span`,{role:`status`,className:`text-ink-2`,children:f}):`Reads the lines that name primary, secondary, gradient and background.`,children:(0,K.jsxs)(hS,{children:[(0,K.jsx)(`input`,{ref:_,type:`file`,accept:`.md,.markdown,.txt,.css`,className:`sr-only`,tabIndex:-1,"aria-hidden":`true`,onChange:async t=>{let n=t.target.files?.[0];if(t.target.value=``,!n)return;if(n.size>262144)return m(`${n.name} is over 256 KB.`);let r=Sr(await n.text()),i=Object.entries(r).map(([e,t])=>`${e} ${t}`);if(!i.length)return m(`No primary, secondary, gradient or background colour in ${n.name}.`);let a=e.value;for(let[e,t]of Object.entries(r))a=U(a,[`theme`,e],t);e.set(a),m(`From ${n.name}: ${i.join(`, `)}.`)}}),(0,K.jsxs)(R,{size:`sm`,"data-tip":`Choose a DESIGN.md`,onClick:()=>_.current?.click(),children:[(0,K.jsx)(ke,{"aria-hidden":`true`}),`Choose`]})]})}),(0,K.jsx)(V,{label:`Reset all`,help:`The logo, name and colours back to ForgeQE's own.`,children:(0,K.jsx)(hS,{children:(0,K.jsxs)(R,{size:`sm`,disabled:!Object.keys(a).length,"data-tip":`The logo, name and colours back to ForgeQE's own`,onClick:()=>e.set(U(e.value,[`theme`],void 0)),children:[(0,K.jsx)(p,{"aria-hidden":`true`}),`Reset all`]})})})]})}var NS=[{id:`github`,name:`GitHub`,note:`github.com, or GitHub Enterprise at your own address.`,logo:Pa.github,tokenEnv:`GITHUB_TOKEN`,cloud:!0,cli:{system:`github`,label:`GitHub`}},{id:`azure-devops`,name:`Azure DevOps`,note:`An organization on dev.azure.com, or Azure DevOps Server.`,logo:Pa.azure_devops,tokenEnv:`ADO_PAT`,cloud:!0,org:`Organization`,cli:{system:`azure_devops`,label:`Azure DevOps`}},{id:`gitlab`,name:`GitLab`,note:`gitlab.com, or GitLab at your own address.`,logo:Pa.gitlab,tokenEnv:`GITLAB_TOKEN`,cloud:!0},{id:`bitbucket-cloud`,name:`Bitbucket Cloud`,note:`bitbucket.org: a workspace's repositories, or every one you can read.`,logo:Pa.bitbucket,tokenEnv:`BITBUCKET_TOKEN`,cloud:!0,org:`Workspace`},{id:`bitbucket-server`,name:`Bitbucket Data Center`,note:`Bitbucket Server or Data Center at your own address.`,logo:Pa.bitbucket,tokenEnv:`BITBUCKET_TOKEN`,cloud:!1}],PS=e=>NS.find(t=>t.id===e),FS=/^[A-Za-z0-9][A-Za-z0-9_-]{0,62}$/;function IS(e,t){let n=!t.url||LS(e?.id,String(t.url)).cloud;return e?.id===`github`?n?`cli`:`gh-host`:e?.id===`azure-devops`&&n?`cli`:`git`}function LS(e,t){let n;try{n=new URL(t.trim())}catch{return{cloud:!1}}let r=n.hostname.toLowerCase(),i=Lt(n.pathname).split(`/`).filter(Boolean)[0],a=i&&/^[A-Za-z0-9][A-Za-z0-9 ._-]{0,99}$/.test(i)?i:void 0;if(e===`azure-devops`){if(r===`dev.azure.com`)return{cloud:!0,org:a};let e=/^([a-z0-9][a-z0-9-]{0,62})\.visualstudio\.com$/.exec(r);return e?{cloud:!0,org:e[1]}:{cloud:!1}}return e===`bitbucket-cloud`?r===`bitbucket.org`?{cloud:!0,org:a}:{cloud:!1}:e===`github`?{cloud:r===`github.com`}:e===`gitlab`?{cloud:r===`gitlab.com`}:{cloud:!1}}function RS({logo:e,icon:t,title:n,meta:r,state:i,actions:a}){return(0,K.jsxs)(`div`,{className:`flex min-h-[68px] flex-wrap items-center gap-x-4 gap-y-2 border-t border-line-soft py-3`,children:[(0,K.jsx)(Tn,{icon:t,logo:e}),(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_220px] flex-col gap-0.5`,children:[(0,K.jsx)(`span`,{className:`font-medium [overflow-wrap:anywhere]`,children:n}),(0,K.jsx)(`span`,{className:`text-sm text-muted [overflow-wrap:anywhere]`,children:r}),i]}),(0,K.jsx)(`span`,{className:`flex gap-2`,children:a})]})}function zS({ok:e,message:t}){return(0,K.jsxs)(`p`,{role:e?`status`:`alert`,className:L(`mt-2 mb-1 flex items-start gap-2 rounded-[12px] px-3 py-2 text-sm`,e?`bg-pass-soft text-pass`:`bg-fail-soft text-fail`),children:[e?(0,K.jsx)(Ne,{size:18,"aria-hidden":`true`,className:`mt-0.5 flex-none`}):(0,K.jsx)(w,{size:18,"aria-hidden":`true`,className:`mt-0.5 flex-none`}),(0,K.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:t})]})}function BS({title:e,help:t}){return(0,K.jsxs)(`div`,{className:`mt-8 mb-2 flex flex-col gap-1`,children:[(0,K.jsx)(`h4`,{className:`m-0 text-[14px] font-semibold text-ink`,children:e}),t&&(0,K.jsx)(`p`,{className:`m-0 max-w-[64ch] text-[13px] leading-relaxed text-ink-2`,children:t})]})}var VS=({children:e})=>(0,K.jsx)(`p`,{role:`status`,className:`m-0 border-t border-line-soft py-5 text-sm text-muted`,children:e}),HS=e=>Object.fromEntries(Object.entries(e).filter(e=>typeof e[1]==`string`));function US(e,t,n){let r=H(xr(e,[`product`,`repos`])),i=e;for(let[e,a]of Object.entries(r))H(a).account===t&&(i=U(i,[`product`,`repos`,e,`account`],n));return i}function WS({edit:e}){let t=e.value,n=H(xr(t,[`product`,`accounts`])),i=H(xr(t,[`product`,`repos`])),[a,o]=(0,G.useState)(null),[s,l]=(0,G.useState)(null),[u,d]=(0,G.useState)({}),f=(0,G.useCallback)(()=>{Et.get().then(e=>d(e.saved),()=>{})},[]);(0,G.useEffect)(f,[f]);let p=pr(),m=e=>Object.values(i).filter(t=>H(t).account===e).length,h=(e,t)=>{let n=PS(t.host),r=m(e),i=`${r} ${r===1?`repository`:`repositories`} connected`;if(t.auth===`token`)return on(p,String(t.token_env||``))?(0,K.jsx)(`span`,{className:`text-[13px] text-pass`,children:`Connected with a token, ${i}`}):(0,K.jsx)(`span`,{className:`text-[13px] text-warn`,children:`Needs its token: Edit to add it`});let a=IS(n,t),o=u[n.cli.system];return a===`cli`?o&&(o.via!==`token`||o.browser)&&Rc(o,n.name)?(0,K.jsx)(`span`,{className:`text-[13px] text-pass`,children:`Signed in, ${i}`}):(0,K.jsx)(`span`,{className:`text-[13px] text-warn`,children:`Needs a sign-in: Edit to sign in`}):(0,K.jsx)(`span`,{className:`text-[13px] text-muted`,children:`${a===`gh-host`?`The GitHub CLI's`:`Git Credential Manager's`} sign-in, ${i}`})};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(W,{first:!0,help:`Sign in to where your code is, then pick the repositories ForgeQE reads into the product graph.`,children:`1. Repositories`}),(0,K.jsxs)(`div`,{className:`mb-4 flex flex-wrap items-center justify-between gap-3`,children:[(0,K.jsx)(`p`,{className:`m-0 max-w-[60ch] text-sm text-muted`,children:Object.keys(n).length?`Your accounts. Pick more repositories from one with Repositories.`:`No account yet: add GitHub, Azure DevOps, GitLab or Bitbucket.`}),(0,K.jsxs)(R,{size:`sm`,"data-tip":`Add an account`,onClick:()=>o({step:`catalog`}),children:[(0,K.jsx)(r,{"aria-hidden":`true`}),`Add`]})]}),Object.entries(n).map(([n,r])=>{let i=H(r),a=PS(i.host);return(0,K.jsx)(RS,{logo:a?.logo,icon:c,title:n,meta:[a?.name||`Unknown host`,i.org,i.url].filter(Boolean).map(String).join(`, `),state:h(n,i),actions:(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(R,{variant:`icon`,size:`icon-sm`,"aria-label":`Repositories of ${n}`,"data-tip":`Repositories of ${n}`,disabled:!a,onClick:()=>l(n),children:(0,K.jsx)(ct,{"aria-hidden":`true`})}),a&&(0,K.jsx)(R,{variant:`icon`,size:`icon-sm`,"aria-label":`Edit ${n}`,"data-tip":`Edit ${n}`,onClick:()=>o({step:`form`,host:a,mode:`edit`,name:n,from:n,value:i}),children:(0,K.jsx)(I,{"aria-hidden":`true`})}),(0,K.jsx)(R,{variant:`icon`,size:`icon-sm`,"aria-label":`Disconnect ${n}`,"data-tip":`Disconnect ${n}`,onClick:()=>e.set(US(U(t,[`product`,`accounts`,n],void 0),n,void 0)),children:(0,K.jsx)(Fe,{"aria-hidden":`true`})})]})},n)}),(0,K.jsx)(BS,{title:`Connected repositories`,help:`Each one a repository the graph reads: connected from an account, or a local clone or a link added by hand.`}),(0,K.jsx)(Go,{edit:e,base:[`product`,`repos`],defs:Fc,noun:`repository by hand`,placeholder:`web`,meta:e=>typeof e.git==`string`&&e.git?`${e.git}${typeof e.branch==`string`&&e.branch?` (${e.branch})`:``}${typeof e.account==`string`?`, from ${e.account}`:``}`:typeof e.path==`string`?e.path:``}),(0,K.jsx)(XS,{edit:e}),(0,K.jsx)($S,{edit:e}),(0,K.jsx)(W,{help:_c[0].help,children:`4. The product and its knowledge`}),(0,K.jsx)(xn,{defs:_c[0].fields,edit:e,base:_c[0].base}),_c.slice(1).map(t=>(0,K.jsxs)(`div`,{children:[(0,K.jsx)(BS,{title:t.title,help:t.help}),(0,K.jsx)(xn,{defs:t.fields,edit:e,base:t.base})]},t.title)),(0,K.jsx)(W,{help:vc[0].help,children:`5. ${vc[0].title}`}),(0,K.jsx)(xn,{defs:vc[0].fields,edit:e,base:vc[0].base}),(0,K.jsx)(GS,{sheet:a,setSheet:o,taken:e=>e in n,onSigned:f,onApply:n=>{let r=t;n.mode===`edit`&&n.from!==n.name&&(r=US(U(r,[`product`,`accounts`,n.from],void 0),n.from,n.name)),e.set(U(r,[`product`,`accounts`,n.name],n.value)),o(null),n.mode===`add`&&l(n.name)}}),(0,K.jsx)(KS,{id:s,account:s?H(n[s]):{},repos:i,onClose:()=>l(null),onConnect:n=>e.set(U(t,[`product`,`repos`],{...i,...n}))})]})}function GS({sheet:e,setSheet:t,taken:n,onApply:r,onSigned:a}){let o=pr(),[l,u]=(0,G.useState)({busy:!1}),d=e?.step===`form`?`${e.host.id}/${e.from}`:e?.step||``;(0,G.useEffect)(()=>u({busy:!1}),[d]);let f=()=>t(null);if(e?.step===`form`){let d=e,p=d.value,m=e=>t({...d,value:e}),h=d.name?FS.test(d.name)?d.name!==d.from&&n(d.name)?`Another account has this name.`:``:`Letters, digits, - and _.`:``,g=!p.url||LS(d.host.id,String(p.url)).cloud,_=d.host.id===`azure-devops`&&g&&!(p.url&&LS(d.host.id,String(p.url)).org),v=(()=>{let e=String(p.url||``).trim();if(!e)return``;try{let t=new URL(e);return t.protocol===`https:`?t.username||t.password?`No user name or password in the address: the token goes in its own field.`:``:`The address is https.`}catch{return`That is not an address.`}})(),y=!!d.name&&!h&&!v&&(d.host.cloud||!!String(p.url||``).trim())&&(!_||!!String(p.org||``).trim())&&(p.auth!==`token`||!!String(p.token_env||``).trim()),b=IS(d.host,p),x=async e=>{u({busy:!0});try{if(e===`signin`){let e=await Bt.signIn(d.name||`account`,p);u({busy:!1,ok:e.ok,message:e.message})}else{let e=await Bt.repos(d.name||`account`,p,HS(o.pending),[]);u({busy:!1,ok:e.ok,message:e.ok?`Signed in: ${e.repos.length} ${e.repos.length===1?`repository`:`repositories`} to pick from${e.truncated?` (the first ones)`:``}.`:e.message})}}catch(e){u({busy:!1,ok:!1,message:e.message})}};return(0,K.jsxs)(cn,{open:!0,onClose:f,title:d.mode===`add`?`Connect ${d.host.name}`:`Edit ${d.name}`,description:`Then pick its repositories. A token you type is kept in ${Wn(o.store)}, never in the settings files.`,footer:(0,K.jsxs)(K.Fragment,{children:[d.mode===`add`&&(0,K.jsxs)(R,{onClick:()=>t({step:`catalog`}),children:[(0,K.jsx)(xe,{"aria-hidden":`true`}),`Back`]}),(0,K.jsxs)(R,{onClick:()=>x(`list`),disabled:l.busy||!y,className:`mr-auto`,"data-tip":`Test the connection`,children:[(0,K.jsx)(j,{"aria-hidden":`true`}),l.busy?`Testing…`:`Test`]}),(0,K.jsxs)(R,{onClick:f,children:[(0,K.jsx)(i,{"aria-hidden":`true`}),`Cancel`]}),(0,K.jsxs)(R,{variant:`primary`,disabled:!y,onClick:()=>r(d),children:[d.mode===`add`?(0,K.jsx)(j,{"aria-hidden":`true`}):(0,K.jsx)(s,{"aria-hidden":`true`}),d.mode===`add`?`Connect`:`Done`]})]}),children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-3 pt-5 pb-2`,children:[(0,K.jsx)(Tn,{logo:d.host.logo,icon:c,size:`lg`}),(0,K.jsx)(`span`,{className:`text-sm text-muted`,children:d.host.note})]}),(0,K.jsx)(`div`,{"aria-live":`polite`,children:l.message&&(0,K.jsx)(zS,{ok:!!l.ok,message:l.message})}),(0,K.jsx)(V,{label:`Name`,help:h?(0,K.jsx)(`span`,{className:`text-fail`,children:h}):`A short name for the account, such as work.`,htmlFor:`acct-name`,stacked:!0,children:(0,K.jsx)(z,{id:`acct-name`,value:d.name,spellCheck:!1,"aria-invalid":!!h,placeholder:`work`,onChange:e=>t({...d,name:e.target.value.trim()})})}),(0,K.jsx)(V,{label:d.host.cloud?`Address of your own server`:`Address`,help:v?(0,K.jsx)(`span`,{className:`text-fail`,children:v}):d.host.cloud?`Empty: ${d.host.name}'s cloud.`:`https, the server's address.`,htmlFor:`acct-url`,stacked:!0,children:(0,K.jsx)(z,{id:`acct-url`,"aria-invalid":!!v,value:String(p.url||``),spellCheck:!1,placeholder:d.host.cloud?``:`https://bitbucket.acme.example`,onChange:e=>m(U(p,[`url`],e.target.value.trim()||void 0))})}),d.host.org&&(0,K.jsx)(V,{label:d.host.org,help:_?`Its name, as in dev.azure.com/<organization>.`:`Empty: every repository you can read.`,htmlFor:`acct-org`,stacked:!0,children:(0,K.jsx)(z,{id:`acct-org`,value:String(p.org||``),spellCheck:!1,placeholder:`acme`,onChange:e=>m(U(p,[`org`],e.target.value.trim()||void 0))})}),(0,K.jsxs)(`fieldset`,{className:`m-0 border-0 p-0 py-3`,children:[(0,K.jsx)(`legend`,{className:`mb-2 font-medium`,children:`Sign in`}),[[`browser`,b===`git`?`In the browser, with Git Credential Manager`:d.host.id===`github`?`In the browser, with the GitHub CLI`:`In the browser, with Microsoft (the Azure CLI)`],[`token`,`With a personal access token`]].map(([e,t])=>(0,K.jsxs)(`label`,{className:`flex min-h-10 cursor-pointer items-center gap-3 text-sm`,children:[(0,K.jsx)(`input`,{type:`radio`,name:`acct-auth`,checked:p.auth===`token`==(e===`token`),onChange:()=>m(e===`token`?{...p,auth:`token`,token_env:p.token_env||d.host.tokenEnv}:{...p,auth:`browser`,token_env:void 0,user:void 0})}),t]},e))]}),p.auth===`token`?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(V,{label:`Token`,help:`Read access to the repositories (code: read).`,stacked:!0,children:(0,K.jsx)(Mn,{name:String(p.token_env||d.host.tokenEnv),field:`token`,onRename:e=>m({...p,token_env:e})})}),(d.host.id===`bitbucket-cloud`||d.host.id===`bitbucket-server`)&&(0,K.jsx)(V,{label:`User name for the token`,help:`With a Bitbucket app password. Empty: an access token.`,htmlFor:`acct-user`,stacked:!0,children:(0,K.jsx)(z,{id:`acct-user`,value:String(p.user||``),spellCheck:!1,onChange:e=>m(U(p,[`user`],e.target.value.trim()||void 0))})})]}):b===`cli`?(0,K.jsx)(zc,{system:d.host.cli.system,label:d.host.cli.label,keyless:!0,onChanged:a}):b===`gh-host`?(0,K.jsx)(V,{label:`Sign in with the GitHub CLI`,help:`In a terminal: gh auth login --web --hostname ${(()=>{try{return new URL(String(p.url)).hostname}catch{return`<your server>`}})()}. Then Test.`,stacked:!0}):(0,K.jsx)(V,{label:`Sign in with the browser`,help:`Git Credential Manager opens the sign-in on this computer and keeps it for git, which fetches the repositories with it.`,stacked:!0,children:(0,K.jsxs)(R,{onClick:()=>x(`signin`),disabled:l.busy||!y,"data-tip":`Sign in with the browser`,children:[(0,K.jsx)(le,{"aria-hidden":`true`}),l.busy?`Signing in…`:`Sign in`]})})]})}return(0,K.jsx)(cn,{open:e?.step===`catalog`,onClose:f,title:`Add an account`,description:`Pick where your code is.`,footer:(0,K.jsxs)(R,{onClick:f,children:[(0,K.jsx)(i,{"aria-hidden":`true`}),`Close`]}),children:(0,K.jsx)(`div`,{className:`pt-4`,children:NS.map(e=>(0,K.jsxs)(`button`,{type:`button`,onClick:()=>t({step:`form`,host:e,mode:`add`,name:``,from:``,value:{host:e.id,auth:`browser`}}),className:`flex min-h-14 w-full cursor-pointer items-center gap-3 rounded-[12px] border-0 bg-transparent px-2 py-2 text-left text-ink hover:bg-surface-muted`,children:[(0,K.jsx)(Tn,{logo:e.logo,icon:c}),(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,K.jsx)(`span`,{className:`font-medium`,children:e.name}),(0,K.jsx)(`span`,{className:`text-sm text-muted`,children:e.note})]}),(0,K.jsx)(`span`,{className:`text-[13px] text-accent-fg`,children:`Add`})]},e.id))})})}function KS({id:e,account:t,repos:n,onClose:r,onConnect:a}){let o=pr(),[s,c]=(0,G.useState)({busy:!1}),[l,u]=(0,G.useState)(new Set),[d,f]=(0,G.useState)(``),p=(0,G.useMemo)(()=>new Set(Object.values(n).map(e=>String(H(e).git||``))),[n]);(0,G.useEffect)(()=>{e&&(u(new Set),f(``),c({busy:!0}),Bt.repos(e,t,HS(o.pending),Object.keys(n)).then(e=>c(e.ok?{busy:!1,repos:e.repos,truncated:e.truncated,skipped:e.skipped}:{busy:!1,message:e.message}),e=>c({busy:!1,message:e.message})))},[e]);let m=(s.repos||[]).filter(e=>!d||e.fullName.toLowerCase().includes(d.toLowerCase()));return(0,K.jsxs)(cn,{open:!!e,onClose:r,wide:!0,title:`Repositories of ${e||``}`,description:`Pick the ones ForgeQE reads into the product graph. They are fetched into ForgeQE's own cache, never your workspace.`,footer:(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`span`,{className:`mr-auto text-sm text-muted`,children:l.size?`${l.size} picked`:``}),(0,K.jsxs)(R,{onClick:r,children:[(0,K.jsx)(i,{"aria-hidden":`true`}),`Cancel`]}),(0,K.jsxs)(R,{variant:`primary`,disabled:!l.size,onClick:()=>{let e={};for(let t of s.repos||[])l.has(t.git)&&(e[t.key]=t.entry);a(e),r()},"data-tip":l.size>1?`Connect ${l.size} repositories`:void 0,children:[(0,K.jsx)(j,{"aria-hidden":`true`}),l.size>1?`Connect (${l.size})`:`Connect`]})]}),children:[(0,K.jsxs)(`div`,{"aria-live":`polite`,children:[s.busy&&(0,K.jsx)(VS,{children:`Reading the account's repositories…`}),s.message&&(0,K.jsx)(zS,{ok:!1,message:s.message})]}),s.repos&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(V,{label:`Find`,htmlFor:`repo-find`,stacked:!0,children:(0,K.jsx)(z,{id:`repo-find`,value:d,placeholder:`shop`,onChange:e=>f(e.target.value)})}),!m.length&&(0,K.jsx)(`p`,{className:`m-0 border-t border-line-soft py-5 text-sm text-muted`,children:s.repos.length?`None matches.`:`None yet: the account can read no repository.`}),(0,K.jsx)(`ul`,{"aria-label":`Repositories`,className:`m-0 list-none p-0`,children:m.map(e=>{let t=p.has(e.git);return(0,K.jsx)(`li`,{className:`border-t border-line-soft`,children:(0,K.jsxs)(`label`,{className:L(`flex min-h-12 items-center gap-3 py-2`,t?`cursor-default`:`cursor-pointer`),children:[(0,K.jsx)(ux,{disabled:t,checked:t||l.has(e.git),onCheckedChange:t=>u(n=>{let r=new Set(n);return t?r.add(e.git):r.delete(e.git),r})}),(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,K.jsx)(`span`,{className:`font-medium [overflow-wrap:anywhere]`,children:e.fullName}),(0,K.jsx)(`span`,{className:`text-sm text-muted [overflow-wrap:anywhere]`,children:[e.branch,e.private?`private`:e.private===!1?`public`:``,e.description].filter(Boolean).join(` · `)})]}),t&&(0,K.jsx)(`span`,{className:`text-[13px] text-pass`,children:`Connected`})]})},e.git)})}),(s.truncated||!!s.skipped)&&(0,K.jsx)(`p`,{className:`m-0 border-t border-line-soft pt-3 text-[13px] text-muted`,children:[s.truncated?`The first 2,000 are listed: find narrows them.`:``,s.skipped?`${s.skipped} left out: their links are not of this host, or not https.`:``].filter(Boolean).join(` `)})]})]})}var qS=e=>e.url?`url`:e.mcp?`mcp`:e.command?`command`:e.documents?`documents`:`none`,JS=gc[0].fields,YS=e=>e.map(e=>JS.find(t=>t.key===e));function XS({edit:e}){let t=pr(),n=H(e.value.rag),r=qS(n),[i,a]=(0,G.useState)(r),[o,s]=(0,G.useState)(``),[c,l]=(0,G.useState)({busy:!1});(0,G.useEffect)(()=>a(r),[r]);let u=t=>{a(t),l({busy:!1});let r={top_k:n.top_k,timeout_seconds:n.timeout_seconds},i=t===`none`?{}:Object.fromEntries(Object.entries({...r,...t===`url`?{url:n.url,token_env:n.token_env}:t===`mcp`?{mcp:n.mcp}:t===`documents`?{documents:n.documents&&typeof n.documents==`object`?n.documents:{reasoning:!1}}:{command:n.command}}).filter(([,e])=>e!==void 0));e.set(U(e.value,[`rag`],Object.keys(i).length?i:void 0))},d=Object.keys(H(e.value.mcp)),f=async()=>{l({busy:!0});try{let r=await Bt.testSearch(n,H(e.value.mcp),o,HS(t.pending));l({busy:!1,...r})}catch(e){l({busy:!1,ok:!1,message:e.message})}};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(W,{help:`Where your requirements, specs and wiki are searched (a RAG index): checking a test case or a story adds the passages it finds.`,children:`2. Search service`}),(0,K.jsxs)(`fieldset`,{className:`m-0 border-0 p-0 pb-2`,children:[(0,K.jsx)(`legend`,{className:`mb-2 font-medium`,children:`The search service is`}),[[`none`,`None`],[`documents`,`This project's documents (built in, no vectors)`],[`url`,`A service at an address`],[`mcp`,`A tool of one of your MCP servers`],[`command`,`A command on this machine`]].map(([e,t])=>(0,K.jsxs)(`label`,{className:`flex min-h-10 cursor-pointer items-center gap-3 text-sm`,children:[(0,K.jsx)(`input`,{type:`radio`,name:`rag-kind`,checked:i===e,onChange:()=>u(e)}),t]},e))]}),i===`url`&&(0,K.jsx)(xn,{defs:YS([`url`,`token_env`,`top_k`,`timeout_seconds`]),edit:e,base:[`rag`]}),i===`mcp`&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(xn,{defs:YS([`mcp.server`,`mcp.tool`,`mcp.query_arg`,`mcp.top_k_arg`,`top_k`,`timeout_seconds`]),edit:e,base:[`rag`]}),(0,K.jsx)(`p`,{className:`m-0 border-t border-line-soft py-3 text-[13px] text-muted`,children:d.length?`MCP servers set up: ${d.join(`, `)}.`:`No MCP server is set up yet: add one under MCP servers, then name it here.`})]}),i===`command`&&(0,K.jsx)(xn,{defs:YS([`command`,`top_k`,`timeout_seconds`]),edit:e,base:[`rag`]}),i===`documents`&&(0,K.jsx)(xn,{defs:YS([`documents.folders`,`documents.reasoning`,`top_k`]),edit:e,base:[`rag`]}),i!==`none`&&(0,K.jsx)(V,{label:`Try a search`,help:i===`command`?`A command runs on the next real search, not from this page.`:i===`documents`?`Searched by keywords only on this page; the model is asked on a real search. Nothing is saved.`:`What a test case would search for. Nothing is saved.`,htmlFor:`rag-query`,children:(0,K.jsxs)(`div`,{className:`flex w-full items-center gap-2`,children:[(0,K.jsx)(z,{id:`rag-query`,value:o,placeholder:`refunds over 500 EUR`,onChange:e=>s(e.target.value),onKeyDown:e=>e.key===`Enter`&&o.trim()&&f(),className:`min-w-0 flex-1`}),(0,K.jsxs)(R,{size:`sm`,disabled:c.busy||!o.trim(),onClick:f,children:[(0,K.jsx)(de,{"aria-hidden":`true`}),c.busy?`Searching…`:`Search`]})]})}),(0,K.jsxs)(`div`,{"aria-live":`polite`,children:[c.message&&(0,K.jsx)(zS,{ok:!!c.ok,message:c.message}),!!c.passages?.length&&(0,K.jsx)(`ul`,{"aria-label":`Passages found`,className:`m-0 list-none p-0`,children:c.passages.map((e,t)=>(0,K.jsxs)(`li`,{className:`border-t border-line-soft py-2 text-sm [overflow-wrap:anywhere]`,children:[e.source&&(0,K.jsxs)(`span`,{className:`font-medium`,children:[e.source,`: `]}),(0,K.jsx)(`span`,{className:`text-ink-2`,children:e.text})]},t))})]})]})}var ZS=/^[A-Za-z0-9][A-Za-z0-9 _.()-]{0,99}\.(md|markdown|txt)$/i,QS=e=>e<1024?`${e} bytes`:e<1048576?`${Math.round(e/1024)} KB`:`${(e/1024/1024).toFixed(1)} MB`;function $S({edit:e}){let[t,n]=(0,G.useState)(null),[r,i]=(0,G.useState)(null),[a,o]=(0,G.useState)(!1),s=(0,G.useRef)(null);(0,G.useEffect)(()=>{Bt.documents().then(e=>n(e.documents),e=>i({ok:!1,message:e.message}))},[]);let c=async e=>{if(!e?.length)return;o(!0),i(null);let r=[];try{for(let i of Array.from(e)){if(!ZS.test(i.name))throw Error(`${i.name}: only a .md, .markdown or .txt file with a plain name.`);if(i.size>1e6)throw Error(`${i.name} is over 1 MB.`);let e=t?.some(e=>e.name===i.name)??!1,a=await Bt.addDocument(i.name,await i.text(),e);n(a.documents),r.push(i.name)}i({ok:!0,message:`Added ${r.join(`, `)}. forgeqe knowledge build reads them with the other documents.`})}catch(e){i({ok:!1,message:e.message})}finally{o(!1),s.current&&(s.current.value=``)}},l=async e=>{try{n((await Bt.removeDocument(e)).documents)}catch(e){i({ok:!1,message:e.message})}};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(W,{help:`What the graph reads beside the code: Markdown files you add here, folders on this computer, links, Confluence spaces, and the pages ForgeQE remembers of a web app.`,children:`3. Documents`}),(0,K.jsxs)(`div`,{className:`mb-4 flex flex-wrap items-center justify-between gap-3`,children:[(0,K.jsx)(`p`,{className:`m-0 max-w-[60ch] text-sm text-muted`,children:`Added here: kept in .forgeqe/documents, read as the source uploaded.`}),(0,K.jsxs)(R,{size:`sm`,disabled:a,"data-tip":`Add Markdown files`,onClick:()=>s.current?.click(),children:[(0,K.jsx)(ot,{"aria-hidden":`true`}),a?`Uploading…`:`Upload`]}),(0,K.jsx)(`input`,{ref:s,type:`file`,accept:`.md,.markdown,.txt,text/markdown,text/plain`,multiple:!0,hidden:!0,onChange:e=>c(e.target.files)})]}),(0,K.jsx)(`div`,{"aria-live":`polite`,children:r&&(0,K.jsx)(zS,{ok:r.ok,message:r.message})}),!t&&!r&&(0,K.jsx)(VS,{children:`Reading the documents…`}),t&&!t.length&&(0,K.jsx)(`p`,{className:`m-0 border-t border-line-soft py-5 text-sm text-muted`,children:`None yet.`}),t?.map(e=>(0,K.jsx)(RS,{icon:Ae,title:e.title,meta:`${e.name}, ${QS(e.bytes)}`,actions:(0,K.jsx)(R,{variant:`icon`,size:`icon-sm`,"aria-label":`Remove ${e.name}`,"data-tip":`Remove ${e.name}`,onClick:()=>l(e.name),children:(0,K.jsx)(Je,{"aria-hidden":`true`})})},e.name)),(0,K.jsx)(BS,{title:`Documents and links`,help:`Each one a folder of documents, a link, a Confluence space, or a web app whose pages ForgeQE remembers, by a name no repository has.`}),(0,K.jsx)(Go,{edit:e,base:[`product`,`docs`],defs:Pc,noun:`source`,placeholder:`help`,meta:e=>String(e.path||e.url||(e.confluence?`Confluence ${e.confluence}`:e.app?`app ${e.app}`:``))})]})}var eC=/^[A-Z][A-Z0-9_]{1,63}$/,tC=/^(PATH|PATHEXT|HOME|SHELL|USER|USERNAME|LOGNAME|PWD|TMPDIR|TEMP|TMP|LANG|LC_\w+|TERM|COMSPEC|SYSTEMROOT|WINDIR|APPDATA|LOCALAPPDATA|USERPROFILE|NODE_\w+|BUN_\w+|NPM_\w+|PYTHON\w*|VIRTUAL_ENV|UV_\w+|LD_\w+|DYLD_\w+|SSL_CERT_\w+|REQUESTS_CA_BUNDLE|CURL_CA_BUNDLE|(HTTPS?|ALL|NO)_PROXY|GIT_\w+|SSH_\w+|GNUPGHOME|EDITOR|VISUAL|PAGER|FORGEQE_\w+|WEBPILOT_\w+|WP_CONFIG|WP_LLMS_JSON|WP_LLM_PROFILE)$/i,nC=/(TOKEN|PAT)$/,rC=(e,t=`SHOP_PASSWORD`)=>eC.test(e)?tC.test(e)?`${e} changes how programs start: pick another name.`:``:`Capital letters, digits and _, such as ${t}.`,iC=[{id:`azure`,label:`Azure Key Vault`,where:`Key vault`,whereHelp:`Its name, as in https://<name>.vault.azure.net.`,placeholder:`shop-qa-kv`,cli:`Microsoft, in the browser (az login)`},{id:`gcp`,label:`Google Secret Manager`,where:`Project`,whereHelp:`The Google Cloud project's id.`,placeholder:`shop-qa-123456`,cli:`Google, in the browser (gcloud auth login)`},{id:`aws`,label:`AWS Secrets Manager`,where:`Region`,whereHelp:`Where its secrets are, such as eu-west-1.`,placeholder:`eu-west-1`,cli:`AWS SSO, in the browser (aws sso login)`}],aC={tenant:`Tenant id`,clientId:`Client id`,clientSecret:`Client secret`,serviceAccount:`Service account key (JSON)`,accessKeyId:`Access key id`,secretAccessKey:`Secret access key`,sessionToken:`Session token (optional)`},oC=e=>e?.length?`Used by ${e.slice(0,2).join(`, `)}${e.length>2?` and ${e.length-2} more`:``}`:``,sC=()=>an.list();function cC({show:e}){let{data:t,error:n,reload:i}=vn(sC),[a,o]=(0,G.useState)(null),[s,c]=(0,G.useState)(`sec-saved`),[l,u]=(0,G.useState)(e||`all`);(0,G.useEffect)(()=>{e&&c(`sec-saved`),u(e||`all`)},[e]);let[f,p]=(0,G.useState)(``),[m,h]=(0,G.useState)(``),[g,_]=(0,G.useState)(null),[v,y]=(0,G.useState)(null),[b,x]=(0,G.useState)(null),[S,C]=(0,G.useState)(!1),w=(0,G.useRef)(null),[T,E]=(0,G.useState)(!1),[D,O]=(0,G.useState)(``),[k,A]=(0,G.useState)(null),[j,M]=(0,G.useState)({}),N=a??t,P=(N?.vaults||[]).filter(e=>e.auth===`cli`).map(e=>e.id).join(`,`),te=e=>{M(t=>({...t,[e]:`checking`})),an.check(e).then(t=>M(n=>({...n,[e]:t})),t=>M(n=>({...n,[e]:{signedIn:!1,problem:t.message}})))};(0,G.useEffect)(()=>{if(s===`sec-vaults`)for(let e of P.split(`,`).filter(Boolean))j[e]||te(e)},[s,P]),(0,G.useEffect)(()=>{if(k?.state!==`running`)return;let e=setTimeout(()=>{an.signinState().then(e=>{A(e.signin),e.signin&&e.signin.state!==`running`&&te(e.signin.vault)},()=>{})},1e3);return()=>clearTimeout(e)},[k]);let ne=async e=>{p(``),h(``);try{A(await an.signIn(e))}catch(e){h(e.message)}},re=async(e,t,n)=>{C(!0),O(``);try{o(await e()),n(),p(t)}catch(e){O(e.message)}finally{C(!1)}},ie=e=>{O(``),p(``),e()};if(!N)return(0,K.jsx)(sn,{error:n,reload:i});let ae=N.secrets.filter(e=>e.from===`vault`&&!e.pending).length,F=async()=>{p(``),h(``);try{let e=await an.exportVaults(),t=URL.createObjectURL(new Blob([`${JSON.stringify(e,null,2)}\n`],{type:`application/json;charset=utf-8`})),n=document.createElement(`a`);n.href=t,n.download=`forgeqe-vaults.json`,n.click(),setTimeout(()=>URL.revokeObjectURL(t),1e3),p(`Exported the vault connections: no value is in the file. A teammate imports it here and pulls with their own sign-in.`)}catch(e){h(e.message)}},I=async e=>{let t=e?.[0];if(t){if(p(``),h(``),t.size>262144)return h(`${t.name} is over 256 KB.`);C(!0),E(!0);try{let e=await an.importVaults(await t.text());o(e.view);let n=[e.added.length?`Added ${e.added.length===1?`the vault`:`${e.added.length} vaults:`} ${e.added.join(`, `)}.`:`No new vault.`,e.toPull.length?`${e.toPull.length===1?`1 secret is`:`${e.toPull.length} secrets are`} ready to pull on Saved: sign in, then Pull.`:``];p(n.filter(Boolean).join(` `)),e.skipped.length&&h(`Not imported: ${e.skipped.map(e=>`${e.id} (${e.why})`).join(`; `)}`)}catch(e){h(e.message)}finally{C(!1),E(!1)}}},oe=N.secrets.filter(e=>e.token),se=l===`tokens`?oe:N.secrets,ce=(e=N.suggestedTokens[0]||`REPO_TOKEN`)=>ie(()=>_({mode:`add`,name:e,value:``,token:!0})),de=async e=>{C(!0),p(``),h(``);try{let t=await an.pullAgain(e);o(t.view),t.failed.length?h(`Not pulled: ${t.failed.map(e=>`${e.name} (${e.error})`).join(`; `)}`):p(`Pulled ${e}.`)}catch(e){h(e.message)}finally{C(!1)}},fe=async()=>{C(!0),p(``),h(``);try{let e=await an.pullAgain();o(e.view),p(`Pulled ${e.pulled.length} again from their vaults.`),h(e.failed.length?`Not pulled: ${e.failed.map(e=>`${e.name} (${e.error})`).join(`; `)}`:``)}catch(e){h(e.message)}finally{C(!1)}};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(En,{label:`Secrets`,current:s,onPick:e=>{c(e),p(``),h(``)},tabs:[{id:`sec-saved`,label:`Saved (${N.secrets.length})`},{id:`sec-vaults`,label:`Vaults (${N.vaults.length})`}]}),f&&(0,K.jsx)(`p`,{role:`status`,className:`m-0 mb-3 rounded-[10px] bg-surface-muted px-3 py-2 text-sm text-ink-2 [overflow-wrap:anywhere]`,children:f}),m&&(0,K.jsx)(`p`,{role:`alert`,className:`m-0 mb-3 rounded-[10px] bg-fail-soft px-3 py-2 text-sm text-fail [overflow-wrap:anywhere]`,children:m}),s===`sec-saved`?(0,K.jsxs)(`div`,{role:`tabpanel`,id:`panel-sec-saved`,"aria-labelledby":`tab-sec-saved`,children:[(0,K.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center justify-between gap-3`,children:[(0,K.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,role:`group`,"aria-label":`Show`,children:(0,K.jsx)($t,{value:l,onChange:e=>{u(e),p(``)},items:[{id:`all`,label:`All`,n:N.secrets.length},{id:`tokens`,label:`Repository tokens`,n:oe.length+N.neededTokens.length}]})}),(0,K.jsxs)(`span`,{className:`flex flex-wrap gap-2`,children:[ae>0&&(0,K.jsxs)(R,{size:`sm`,disabled:S,onClick:()=>void fe(),children:[(0,K.jsx)(ee,{"aria-hidden":`true`}),S?`Pulling…`:`Pull all again`]}),l===`tokens`?(0,K.jsxs)(R,{size:`sm`,onClick:()=>ce(),children:[(0,K.jsx)(r,{"aria-hidden":`true`}),`Add a token`]}):(0,K.jsxs)(R,{size:`sm`,onClick:()=>ie(()=>_({mode:`add`,name:``,value:``})),children:[(0,K.jsx)(r,{"aria-hidden":`true`}),`Add a secret`]})]})]}),(0,K.jsx)(`p`,{className:`m-0 mb-3 text-sm text-muted`,children:l===`tokens`?`The tokens ForgeQE clones and reads git repositories with: one for each git host or account. A clone picks one by its name.`:`Agents and tests use a secret by its name: in a sign-in, an environment's secrets, or a test's variables.`}),N.neededTokens.map(e=>(0,K.jsx)(jn,{expandable:!1,open:!1,onToggle:()=>{},lead:(0,K.jsx)(Tn,{icon:d}),title:(0,K.jsx)(`span`,{className:`font-mono`,children:e.name}),meta:`${oC(e.usedBy)}. It has no value here yet.`,state:(0,K.jsx)(`span`,{className:`text-[13px] text-muted`,children:`Not set`}),actions:(0,K.jsx)(R,{size:`sm`,"aria-label":`Add ${e.name}`,onClick:()=>ce(e.name),children:`Add`}),children:null},`needed-${e.name}`)),se.length===0&&!N.neededTokens.length&&(0,K.jsx)(`p`,{className:`m-0 border-t border-line-soft py-5 text-sm text-muted`,children:l===`tokens`?`No repository tokens yet. Add one for each git host or account.`:`None yet. Add one, or pull one from a vault.`}),se.map(e=>(0,K.jsx)(jn,{expandable:!1,open:!1,onToggle:()=>{},lead:(0,K.jsx)(Tn,{icon:e.from===`vault`?ue:e.from===`sign-in`?le:e.token?d:je}),title:(0,K.jsx)(`span`,{className:`font-mono`,children:e.name}),meta:[e.from===`vault`&&e.vault?`From ${e.vault.provider} ${e.vault.id}: ${e.vault.secret}${e.vault.key?` › ${e.vault.key}`:``} · ${e.pending?`not pulled yet`:`pulled ${nS(e.vault.at)}`}`:e.from===`sign-in`?`From the ${e.system} sign-in: sign out of it to remove it.`:e.from===`shell`?`Set in your shell: change or remove it there.`:`Saved in Settings`,e.token?oC(e.usedBy)||`Not used yet`:``].filter(Boolean).join(` · `),state:e.from===`shell`?(0,K.jsx)(`span`,{className:`text-[13px] text-pass`,children:`Set in the environment`}):e.set?(0,K.jsx)(`span`,{className:`text-[13px] text-pass`,children:`Saved`}):(0,K.jsx)(`span`,{className:`text-[13px] text-muted`,children:`Not set`}),actions:e.pending?(0,K.jsx)(R,{size:`sm`,"aria-label":`Pull ${e.name}`,disabled:S,onClick:()=>void de(e.name),children:`Pull`}):e.from===`sign-in`||e.from===`shell`?void 0:(0,K.jsx)(R,{size:`sm`,"aria-label":`Edit ${e.name}`,onClick:()=>ie(()=>_({mode:`edit`,name:e.name,value:``,row:e,...e.token?{token:!0}:{}})),children:`Edit`}),children:null},e.name)),(0,K.jsxs)(`p`,{className:`m-0 mt-3 text-[12.5px] text-muted`,children:[`Kept in `,Wn(N.store),`. ForgeQE never shows a value again, and the agents see only names.`,l===`tokens`?` Give each token read access to the repositories it clones, nothing more.`:``]})]}):(0,K.jsxs)(`div`,{role:`tabpanel`,id:`panel-sec-vaults`,"aria-labelledby":`tab-sec-vaults`,children:[(0,K.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center justify-end gap-2`,children:[N.vaults.length>0&&(0,K.jsxs)(R,{size:`sm`,onClick:()=>void F(),"data-tip":`A file of the connections, without values, for a teammate to import`,children:[(0,K.jsx)(tt,{"aria-hidden":`true`}),`Export`]}),(0,K.jsxs)(R,{size:`sm`,disabled:S,onClick:()=>w.current?.click(),"data-tip":`Connections a teammate exported`,children:[(0,K.jsx)(ot,{"aria-hidden":`true`}),T?`Importing…`:`Import`]}),(0,K.jsx)(`input`,{ref:w,type:`file`,accept:`.json,application/json`,hidden:!0,onChange:e=>(I(e.target.files),e.target.value=``)}),(0,K.jsxs)(R,{size:`sm`,onClick:()=>ie(()=>y({mode:`add`,v:{id:``,provider:`azure`,where:``,auth:`cli`}})),children:[(0,K.jsx)(r,{"aria-hidden":`true`}),`Add a vault`]})]}),(0,K.jsx)(`p`,{className:`m-0 mb-3 text-sm text-muted`,children:`Where ForgeQE pulls secrets from. It reads a value only when you pull that secret.`}),k&&(0,K.jsx)(fC,{s:k,onCancel:()=>void an.cancelSignin().then(e=>A(e.signin),()=>{}),onClose:()=>A(null)}),N.vaults.length===0&&(0,K.jsx)(`p`,{className:`m-0 border-t border-line-soft py-5 text-sm text-muted`,children:`None yet. Add Azure Key Vault, Google Secret Manager or AWS Secrets Manager.`}),N.vaults.map(e=>(0,K.jsx)(jn,{expandable:!1,open:!1,onToggle:()=>{},lead:(0,K.jsx)(Tn,{icon:ue}),title:e.id,meta:`${e.providerLabel} · ${e.where} · ${e.auth===`cli`?`signs in with your browser${e.profile?`, profile ${e.profile}`:``}`:`signs in with saved keys`}${e.pulled?` · ${e.pulled} pulled`:``}${e.missing.length?` · not saved yet: ${e.missing.join(`, `)}`:``}`,state:e.auth===`cli`?j[e.id]===`checking`||!j[e.id]?(0,K.jsx)(`span`,{className:`text-[13px] text-muted`,children:`Checking the sign-in…`}):j[e.id].signedIn?(0,K.jsx)(`span`,{className:`text-[13px] text-pass`,children:`Signed in`}):(0,K.jsx)(`span`,{className:`text-[13px] text-warn`,"data-tip":j[e.id].problem,children:`Not signed in`}):e.missing.length?(0,K.jsx)(`span`,{className:`text-[13px] text-warn`,"data-tip":e.missing.join(`, `),children:e.missing.length===1?`Needs ${e.missing[0]}`:`Needs ${e.missing.length} variables`}):(0,K.jsx)(`span`,{className:`text-[13px] text-muted`,children:e.pulled===1?`1 secret pulled`:`${e.pulled} secrets pulled`}),actions:(0,K.jsxs)(K.Fragment,{children:[e.auth===`cli`&&j[e.id]!==`checking`&&j[e.id]&&!j[e.id].signedIn?(0,K.jsxs)(R,{size:`sm`,variant:`primary`,"aria-label":`Sign in to ${e.id}`,disabled:k?.state===`running`,onClick:()=>void ne(e.id),children:[(0,K.jsx)(le,{"aria-hidden":`true`}),`Sign in`]}):(0,K.jsx)(R,{size:`sm`,"aria-label":`Browse ${e.id}`,disabled:e.missing.length>0||e.auth===`cli`&&j[e.id]===`checking`,onClick:()=>ie(()=>x(e)),children:`Browse`}),(0,K.jsx)(R,{size:`sm`,"aria-label":`Edit ${e.id}`,onClick:()=>ie(()=>y({mode:`edit`,v:{id:e.id,provider:e.provider,where:e.where,auth:e.auth,...e.profile?{profile:e.profile}:{},...e.keys?{keys:e.keys}:{}}})),children:`Edit`})]}),children:null},e.id)),(0,K.jsx)(`p`,{className:`m-0 mt-3 text-[12.5px] text-muted`,children:`Vaults are kept on this computer for this project, never in the repository: share them with Export and Import, which carry no value. Give ForgeQE's sign-in read access to the secrets it needs, nothing more.`})]}),(0,K.jsx)(lC,{panel:g,setPanel:_,busy:S,error:D,onSave:e=>void re(()=>an.save(e.name,e.value),`${e.mode===`add`?`Added`:`Saved`} ${e.name}.`,()=>_(null)),onRemove:e=>void re(()=>an.remove(e),`Removed ${e}.`,()=>_(null)),onPull:e=>void re(async()=>{let t=await an.pullAgain(e);if(t.failed.length)throw Error(t.failed[0].error);return t.view},`Pulled ${e} again.`,()=>_(null)),taken:new Set(N.secrets.map(e=>e.name))}),(0,K.jsx)(uC,{panel:v,setPanel:y,busy:S,error:D,roles:N.keyRoles,taken:new Set(N.vaults.map(e=>e.id)),missing:N.vaults.find(e=>e.id===v?.v.id)?.missing,onSave:e=>void re(()=>an.saveVault(e.v,e.mode===`edit`),`${e.mode===`add`?`Added`:`Saved`} the vault ${e.v.id}.${e.v.auth===`cli`?` Sign in on its row if it says Not signed in.`:``}`,()=>{y(null),M(t=>{let{[e.v.id]:n,...r}=t;return r})}),onRemove:e=>void re(()=>an.removeVault(e),`Removed the vault ${e}. The secrets pulled from it stay saved.`,()=>y(null))}),(0,K.jsx)(dC,{vault:b,onClose:()=>x(null),taken:new Set(N.secrets.map(e=>e.name)),onPulled:(e,t,n)=>{o(e),x(null),c(`sec-saved`),p(`Pulled ${n} as ${t}. Agents and tests can use it by that name.`)}})]})}function lC({panel:e,setPanel:t,busy:n,error:r,onSave:i,onRemove:a,onPull:o,taken:s}){let c=e?.mode===`add`?rC(e.name,e.token?`GITHUB_TOKEN`:void 0)||(s.has(e.name)?`${e.name} is already in the list: edit it there.`:``)||(e.token&&!nC.test(e.name)?`A token's name ends in TOKEN or PAT, such as GITHUB_TOKEN.`:``):``,l=e?.row?.from===`vault`,[u,d]=(0,G.useState)(!1);return(0,G.useEffect)(()=>d(!1),[!!e]),(0,K.jsx)(cn,{open:!!e,onClose:()=>t(null),title:e?.mode===`edit`?`Edit ${e.name}`:e?.token?`Add a repository token`:`Add a secret`,description:`The value goes to your credential store when you press the button below. ForgeQE never shows it again, and the agents see only its name.`,footer:(0,K.jsxs)(K.Fragment,{children:[r?(0,K.jsx)(`span`,{role:`alert`,className:`mr-auto self-center text-sm text-fail [overflow-wrap:anywhere]`,children:r}):c?(0,K.jsx)(`span`,{className:`mr-auto self-center text-sm text-muted`,children:`Needs a valid name`}):null,e?.mode===`edit`&&(0,K.jsx)(R,{disabled:n,onClick:()=>a(e.name),className:`mr-auto text-fail`,children:`Remove`}),(0,K.jsx)(R,{onClick:()=>t(null),children:`Cancel`}),(0,K.jsx)(R,{variant:`primary`,disabled:n||!!c||!e?.value.trim(),onClick:()=>e&&i(e),children:n?`Saving…`:e?.mode===`add`?e.token?`Add token`:`Add secret`:e?.token?`Save token`:`Save secret`})]}),children:e&&(0,K.jsxs)(K.Fragment,{children:[e.mode===`add`&&(0,K.jsx)(V,{label:`Name`,help:c?(0,K.jsx)(`span`,{className:`text-fail`,children:c}):e.token?`The variable a clone signs in with: one per host or account.`:`The variable agents and tests read it by.`,htmlFor:`sh-name`,className:`mt-4`,stacked:!0,children:(0,K.jsx)(z,{id:`sh-name`,value:e.name,spellCheck:!1,maxLength:64,placeholder:e.token?`GITHUB_TOKEN`:`SHOP_PASSWORD`,"aria-invalid":!!c,onChange:n=>t({...e,name:n.target.value.toUpperCase().replace(/[^A-Z0-9_]/g,`_`)}),className:`font-mono`})}),l&&e.row?.vault&&(0,K.jsx)(V,{label:`From a vault`,help:`${e.row.vault.provider} ${e.row.vault.id}: ${e.row.vault.secret}${e.row.vault.key?` › ${e.row.vault.key}`:``}, pulled ${nS(e.row.vault.at)}. Pull it again for the vault's newest value; a value typed below replaces it and is no longer the vault's.`,className:`mt-4`,stacked:!0,children:(0,K.jsxs)(R,{size:`sm`,disabled:n,onClick:()=>o(e.name),children:[(0,K.jsx)(ee,{"aria-hidden":`true`}),`Pull again`]})}),(0,K.jsx)(V,{label:e.mode===`edit`?`New value`:e.token?`Token`:`Value`,help:e.token?`A personal access token with read access to the repositories (GitHub: Contents read; Azure DevOps: Code read; GitLab: read_repository).`:(0,K.jsxs)(K.Fragment,{children:[`At most 16 KB.`,` `,(0,K.jsx)(`button`,{type:`button`,onClick:()=>d(!u),className:`cursor-pointer border-0 bg-transparent p-0 text-[13px] text-accent-fg underline`,children:u?`One line, hidden`:`Several lines (shown as you type), such as a JSON key`})]}),htmlFor:`sh-value`,className:e.mode===`edit`&&!l?`mt-4`:void 0,stacked:!0,children:u&&!e.token?(0,K.jsx)(Zt,{id:`sh-value`,rows:6,autoComplete:`off`,spellCheck:!1,value:e.value,onChange:n=>t({...e,value:n.target.value}),className:`font-mono`}):(0,K.jsx)(z,{id:`sh-value`,type:`password`,autoComplete:`off`,value:e.value,onChange:n=>t({...e,value:n.target.value})})})]})})}function uC({panel:e,setPanel:t,busy:n,error:r,roles:i,taken:a,missing:o,onSave:s,onRemove:c}){let l=e?.v,u=iC.find(e=>e.id===l?.provider)??iC[0],d=n=>e&&t({...e,v:{...e.v,...n}}),f=l?.auth===`keys`?Object.entries(i[l.provider]).map(([e,t])=>[e,rC(l.keys?.[e]??t)]).filter(([,e])=>e):[],p=e?.mode===`add`?/^[a-z][a-z0-9-]{0,39}$/.test(l?.id||``)?a.has(l.id)?`A vault is already named ${l.id}.`:``:`Lower case letters, digits and -, such as qa-kv.`:``;return(0,K.jsx)(cn,{open:!!e,onClose:()=>t(null),title:e?.mode===`edit`?`Edit ${l?.id}`:`Add a vault`,description:`Where ForgeQE pulls secrets from, and how it signs in. Kept on this computer for this project. Nothing is read until you pull a secret.`,footer:(0,K.jsxs)(K.Fragment,{children:[r?(0,K.jsx)(`span`,{role:`alert`,className:`mr-auto self-center text-sm text-fail [overflow-wrap:anywhere]`,children:r}):p||f.length?(0,K.jsx)(`span`,{className:`mr-auto self-center text-sm text-muted`,children:`Needs a valid name`}):null,e?.mode===`edit`&&(0,K.jsx)(R,{disabled:n,onClick:()=>c(l.id),className:`mr-auto text-fail`,children:`Remove`}),(0,K.jsx)(R,{onClick:()=>t(null),children:`Cancel`}),(0,K.jsx)(R,{variant:`primary`,disabled:n||!!p||f.length>0||!l?.where.trim(),onClick:()=>e&&s(e),children:n?`Saving…`:e?.mode===`add`?`Add vault`:`Save vault`})]}),children:e&&l&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(V,{label:`Provider`,htmlFor:`vt-provider`,className:`mt-4`,stacked:!0,children:(0,K.jsx)(Yt,{id:`vt-provider`,value:l.provider,disabled:e.mode===`edit`,onChange:e=>d({provider:e.target.value,where:``,keys:void 0,profile:void 0}),children:iC.map(e=>(0,K.jsx)(`option`,{value:e.id,children:e.label},e.id))})}),e.mode===`add`&&(0,K.jsx)(V,{label:`Name`,help:p?(0,K.jsx)(`span`,{className:`text-fail`,children:p}):`What this project calls it.`,htmlFor:`vt-id`,stacked:!0,children:(0,K.jsx)(z,{id:`vt-id`,value:l.id,spellCheck:!1,maxLength:40,placeholder:`qa-kv`,"aria-invalid":!!p,onChange:e=>d({id:e.target.value.toLowerCase().replace(/[^a-z0-9-]/g,`-`)}),className:`font-mono`})}),(0,K.jsx)(V,{label:u.where,help:u.whereHelp,htmlFor:`vt-where`,stacked:!0,children:(0,K.jsx)(z,{id:`vt-where`,value:l.where,spellCheck:!1,maxLength:64,placeholder:u.placeholder,onChange:e=>d({where:e.target.value.trim()}),className:`font-mono`})}),(0,K.jsx)(V,{label:`Sign in with`,help:l.auth===`cli`?`Your own account, in your browser: Sign in on the vault's row after you add it. The cloud's CLI keeps the sign-in and renews it; ForgeQE saves nothing.`:`For a computer with nobody to sign in, such as a build agent.`,htmlFor:`vt-auth`,stacked:!0,children:(0,K.jsxs)(Yt,{id:`vt-auth`,value:l.auth,onChange:e=>d({auth:e.target.value,keys:e.target.value===`keys`?{...i[l.provider]}:void 0}),children:[(0,K.jsxs)(`option`,{value:`cli`,children:[u.cli,` (recommended)`]}),(0,K.jsx)(`option`,{value:`keys`,children:l.provider===`azure`?`A service principal's keys, saved as secrets (no browser)`:l.provider===`gcp`?`A service account's key, saved as a secret (no browser)`:`Access keys, saved as secrets (no browser)`})]})}),l.provider===`aws`&&l.auth===`cli`&&(0,K.jsx)(V,{label:`Profile (optional)`,help:`An SSO profile of ~/.aws/config (set one up once with aws configure sso). Empty: the default.`,htmlFor:`vt-profile`,stacked:!0,children:(0,K.jsx)(z,{id:`vt-profile`,value:l.profile||``,spellCheck:!1,maxLength:64,placeholder:`qa`,onChange:e=>d({profile:e.target.value.trim()||void 0}),className:`font-mono`})}),l.auth===`keys`&&Object.entries(i[l.provider]).map(([e,t])=>(0,K.jsx)(V,{label:aC[e]||e,help:(()=>{let n=l.keys?.[e]??t,r=rC(n);return r?(0,K.jsx)(`span`,{className:`text-fail`,children:r}):o?.includes(n)?(0,K.jsx)(`span`,{className:`text-warn`,children:`Not saved yet: add ${n} on the Saved tab.`}):`The secret that holds it, saved on the Saved tab as ${n}.`})(),htmlFor:`vt-${e}`,stacked:!0,children:(0,K.jsx)(z,{id:`vt-${e}`,"aria-invalid":!!rC(l.keys?.[e]??t),value:l.keys?.[e]??t,spellCheck:!1,maxLength:64,onChange:t=>d({keys:{...l.keys||i[l.provider],[e]:t.target.value.toUpperCase().replace(/[^A-Z0-9_]/g,`_`)}}),className:`font-mono`})},e))]})})}function dC({vault:e,onClose:t,taken:n,onPulled:r}){let[i,a]=(0,G.useState)(null),[o,s]=(0,G.useState)(``),[c,l]=(0,G.useState)(``),[u,d]=(0,G.useState)(null),[f,p]=(0,G.useState)(!1),[m,h]=(0,G.useState)(``),g=()=>{e&&(a(null),s(``),an.names(e.id).then(a,e=>s(e.message)))};(0,G.useEffect)(()=>{d(null),l(``),h(``),g()},[e?.id]);let _=(i?.names||[]).filter(e=>e.toLowerCase().includes(c.trim().toLowerCase())),v=_.slice(0,200),y=u?rC(u.name):``,b=async()=>{if(e&&u){p(!0),h(``);try{r(await an.pull({vault:e.id,secret:u.secret,name:u.name,...u.key.trim()?{key:u.key.trim()}:{}}),u.name,u.secret)}catch(e){h(e.message)}finally{p(!1)}}};return(0,K.jsxs)(cn,{open:!!e,onClose:t,wide:!0,title:e?`Secrets of ${e.id}`:`Secrets`,description:e?`The names in ${e.providerLabel} ${e.where}. Pick one to pull its value into your credential store under a variable's name; ForgeQE never shows the value.`:void 0,footer:(0,K.jsxs)(K.Fragment,{children:[m?(0,K.jsx)(`span`,{role:`alert`,className:`mr-auto self-center text-sm text-fail [overflow-wrap:anywhere]`,children:m}):(0,K.jsx)(`span`,{className:`mr-auto self-center text-sm text-muted`,children:u?y?`Needs a valid name`:`${u.secret} as ${u.name}`:``}),(0,K.jsx)(R,{onClick:t,children:`Cancel`}),(0,K.jsx)(R,{variant:`primary`,disabled:f||!u||!!y,onClick:()=>void b(),children:f?`Pulling…`:`Pull secret`})]}),children:[(0,K.jsxs)(`div`,{"aria-live":`polite`,children:[!i&&!o&&(0,K.jsx)(`p`,{role:`status`,className:`m-0 border-t border-line-soft py-5 text-sm text-muted`,children:`Reading the vault's names…`}),o&&(0,K.jsx)(`div`,{className:`mt-4`,children:(0,K.jsx)(sn,{error:o,reload:g})})]}),i&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(V,{label:`Find`,htmlFor:`br-find`,className:`mt-4`,stacked:!0,children:(0,K.jsx)(z,{id:`br-find`,value:c,placeholder:`password`,onChange:e=>l(e.target.value)})}),!_.length&&(0,K.jsx)(`p`,{className:`m-0 border-t border-line-soft py-5 text-sm text-muted`,children:i.total?`None matches.`:`None yet: ForgeQE's sign-in can see no secret in this vault.`}),(0,K.jsx)(`ul`,{"aria-label":`Secrets in the vault`,className:`m-0 list-none p-0`,children:v.map(e=>{let t=u?.secret===e;return(0,K.jsxs)(`li`,{className:`border-t border-line-soft`,children:[(0,K.jsxs)(`label`,{className:`flex min-h-12 cursor-pointer items-center gap-3 py-2`,children:[(0,K.jsx)(`input`,{type:`radio`,name:`br-secret`,checked:t,onChange:()=>d({secret:e,name:e.toUpperCase().replace(/[^A-Z0-9_]/g,`_`).replace(/^([^A-Z])/,`S_$1`).slice(0,64),key:``})}),(0,K.jsx)(`span`,{className:`min-w-0 flex-1 font-mono text-[13px] [overflow-wrap:anywhere]`,children:e})]}),t&&u&&(0,K.jsxs)(`div`,{className:`mb-3 ml-7 flex flex-col gap-3 rounded-[12px] bg-surface-muted p-3`,children:[(0,K.jsx)(V,{label:`Save as`,help:y?(0,K.jsx)(`span`,{className:`text-fail`,children:y}):n.has(u.name)?`${u.name} is saved already: pulling replaces its value.`:`The variable agents and tests read it by.`,htmlFor:`br-name`,stacked:!0,className:`py-0`,children:(0,K.jsx)(z,{id:`br-name`,value:u.name,spellCheck:!1,maxLength:64,"aria-invalid":!!y,onChange:e=>d({...u,name:e.target.value.toUpperCase().replace(/[^A-Z0-9_]/g,`_`)}),className:`font-mono`})}),(0,K.jsx)(V,{label:`JSON field (optional)`,help:`When the secret holds JSON, the one field to keep, such as password.`,htmlFor:`br-key`,stacked:!0,className:`py-0`,children:(0,K.jsx)(z,{id:`br-key`,value:u.key,spellCheck:!1,maxLength:128,placeholder:`password`,onChange:e=>d({...u,key:e.target.value}),className:`font-mono`})})]})]},e)})}),(_.length>v.length||i.total>i.names.length)&&(0,K.jsx)(`p`,{className:`m-0 border-t border-line-soft pt-3 text-[13px] text-muted`,children:[_.length>v.length?`The first ${v.length} of ${_.length} are shown: find narrows them.`:``,i.total>i.names.length?`The first ${i.names.length.toLocaleString()} of the vault's names are listed.`:``].filter(Boolean).join(` `)})]})]})}function fC({s:e,onCancel:t,onClose:n}){let[r,i]=(0,G.useState)(!1),a=e.state===`running`,o=e.link&&/^https:\/\//.test(e.link)?e.link:void 0;return(0,K.jsxs)(`div`,{role:`status`,"aria-live":`polite`,className:`mb-3 flex flex-col gap-3 rounded-[12px] card border p-4`,children:[(0,K.jsxs)(`span`,{className:`text-sm font-medium`,children:[`Signing in to `,e.vault]}),(o||e.code)&&a&&(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[e.code&&(0,K.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,K.jsx)(`span`,{className:`text-sm text-muted`,children:`Your code`}),(0,K.jsx)(`span`,{className:`rounded-[8px] border border-line bg-bg px-3 py-1.5 font-mono text-lg font-semibold tracking-[0.12em]`,children:e.code}),(0,K.jsxs)(R,{size:`sm`,"aria-label":`Copy the code`,onClick:()=>{navigator.clipboard?.writeText(e.code).then(()=>i(!0)),setTimeout(()=>i(!1),1500)},children:[(0,K.jsx)(S,{"aria-hidden":`true`}),r?`Copied`:`Copy`]})]}),o&&(0,K.jsxs)(`a`,{href:o,target:`_blank`,rel:`noreferrer noopener`,className:rn({variant:`primary`,size:`sm`}),children:[(0,K.jsx)(Qe,{"aria-hidden":`true`}),`Open `,new URL(o).host]})]}),(0,K.jsxs)(`ul`,{className:`m-0 flex list-none flex-col gap-1 p-0 text-sm`,children:[e.lines.slice(-6).map((t,n)=>(0,K.jsx)(`li`,{className:L(`[overflow-wrap:anywhere]`,n===e.lines.slice(-6).length-1&&e.state===`done`?`text-pass`:n===e.lines.slice(-6).length-1&&e.state===`failed`?`text-fail`:`text-ink-2`),children:t},n)),a&&(0,K.jsx)(`li`,{className:`text-muted`,children:`Waiting for you to finish in the browser…`})]}),(0,K.jsx)(`div`,{children:a?(0,K.jsx)(R,{size:`sm`,onClick:t,children:`Cancel`}):(0,K.jsx)(R,{size:`sm`,onClick:n,children:`Close`})})]})}var pC={testmu:`TestMu AI`,browserstack:`BrowserStack`},mC={testmu:{provider:`testmu`,remote:{username_env:`LT_USERNAME`,access_key_env:`LT_ACCESS_KEY`}},browserstack:{provider:`browserstack`,remote:{username_env:`BROWSERSTACK_USERNAME`,access_key_env:`BROWSERSTACK_ACCESS_KEY`}}},hC=(...e)=>e.map(([e,t])=>({value:e,label:t})),gC={testmu:[{key:`type`,label:`Type`,type:`select`,default:`real`,options:hC([`real`,`Real device`],[`virtual`,`Emulator or simulator`])},{key:`platform`,label:`Platform`,type:`select`,default:`android`,options:hC([`android`,`Android`],[`ios`,`iOS`])},{key:`model`,label:`Device model`,help:`As TestMu AI names it.`,type:`text`,placeholder:`Galaxy S23`},{key:`os_version`,label:`OS version`,type:`text`,placeholder:`13`},{key:`enabled`,label:`Use in runs`,help:`Off: kept here, run only when a run names it.`,type:`switch`,default:!0}],browserstack:[{key:`platform`,label:`Platform`,type:`select`,default:`android`,options:hC([`android`,`Android`],[`ios`,`iOS`])},{key:`model`,label:`Device model`,help:`As BrowserStack names it. Real devices only.`,type:`text`,placeholder:`Google Pixel 7`},{key:`os_version`,label:`OS version`,type:`text`,placeholder:`13.0`},{key:`enabled`,label:`Use in runs`,help:`Off: kept here, run only when a run names it.`,type:`switch`,default:!0}]},_C=`Kept in your credential store; the file has only the variable's name. The same sign-in as its browsers.`,vC={testmu:[{key:`remote.username_env`,label:`TestMu AI user`,help:_C,type:`var`,default:`LT_USERNAME`},{key:`remote.access_key_env`,label:`TestMu AI key`,help:_C,type:`var`,default:`LT_ACCESS_KEY`},{key:`mobile.region`,label:`Region for devices`,type:`text`,placeholder:`us`}],browserstack:[{key:`remote.username_env`,label:`BrowserStack user`,help:_C,type:`var`,default:`BROWSERSTACK_USERNAME`},{key:`remote.access_key_env`,label:`BrowserStack key`,help:_C,type:`var`,default:`BROWSERSTACK_ACCESS_KEY`}]};function yC(e){return[e.type===`virtual`?e.platform===`ios`?`simulator`:`emulator`:`real device`,`${e.platform===`ios`?`iOS`:`Android`}${e.os_version?` ${String(e.os_version)}`:``}`,e.model,e.enabled===!1?`not in use`:``].filter(Boolean).map(String).join(` · `)}function bC({grids:e,setGrids:t,paths:n,vars:r}){return(0,K.jsx)(K.Fragment,{children:[`testmu`,`browserstack`].map(i=>{let a=pC[i],o={value:e[i]??mC[i],set:n=>t({...e,[i]:n}),vars:r,file:n[i]};return(0,K.jsxs)(`div`,{children:[(0,K.jsx)(W,{help:(0,K.jsxs)(K.Fragment,{children:[`Kept in `,(0,K.jsx)(`code`,{className:`font-mono text-[12.5px]`,children:n[i]}),`, `,a,`'s own file`,e[i]?``:`, made when you add a device`,`. Its browsers and their devices are in the same file:`,` `,(0,K.jsxs)(`a`,{href:zt(`settings`,`integrations`),children:[`Integrations → `,a]}),`.`]}),children:`${a} devices`}),(0,K.jsx)(Go,{edit:o,base:[`mobile`,`devices`],defs:gC[i],noun:`${a} device`,placeholder:i===`testmu`?`galaxy-s23`:`pixel7`,start:i===`testmu`?{type:`real`,platform:`android`}:{platform:`android`},meta:yC}),(0,K.jsx)(xn,{defs:vC[i],edit:o,base:[]})]},i)})})}var xC=(0,G.lazy)(()=>B(()=>import(`./Features-kXt6Um2p.js`).then(e=>({default:()=>(0,K.jsx)(e.Features,{embedded:!0})})),__vite__mapDeps([0,1,2,3,4]))),SC=(0,G.lazy)(()=>B(()=>import(`./WhatsNew-EKniIJ6W.js`).then(e=>({default:()=>(0,K.jsx)(e.WhatsNew,{embedded:!0})})),__vite__mapDeps([5,1,2,3]))),CC=[{id:`setup`,group:`Start`,icon:ae,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:C,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:le,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:je,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:j,label:`Integrations`,file:`forgeqe.yaml`,intro:`Test case systems and bugs (sources:), and remote browser grids (browser.providers).`},{id:`notifications`,group:`General`,icon:Re,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:ut,label:`Appearance`,file:`forgeqe.yaml`,intro:`The project's logo, name and colours in this web app, for everyone who opens it (theme:).`},{id:`models`,group:`AI`,icon:ge,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:T,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:D,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:nt,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:Xe,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:ye,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:ft,label:`Evidence`,file:`forgeqe.yaml`,intro:`What Evidence and 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:pe,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:v,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:Ge,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:O,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:g,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:Ze,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:te,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:he,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:qe,label:`Desktop`,file:`forgeqe.yaml`,intro:`How Windows desktop apps replay (desktop:). The apps themselves are in Environments.`},{id:`containers`,group:`Testing`,icon:Ye,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:ne,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:f,label:`Quality`,file:`forgeqe.yaml`,intro:`Accessibility, performance, visual and API checks on every page a run visits.`},{id:`logs`,group:`Activity`,icon:o,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:h,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:`tokenomics`,group:`Activity`,icon:fe,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:oe,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:it,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:at,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:we,label:`What's ready`,file:``,intro:`What ForgeQE can do here. Pick one to see what it needs.`},{id:`whats-new`,group:`Advanced`,icon:N,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:y,label:`About ForgeQE`,file:``,intro:`The version of ForgeQE on this computer, updating it, and its guides.`}],wC=[`guardrails`,`skills`,`prompts`],TC=CC.filter(e=>!wC.includes(e.id)),EC=[...new Set(TC.map(e=>e.group))],DC=[`setup`,`environments`,`signins`,`secrets`,`integrations`,`notifications`,`appearance`,`models`,`databases`,`features`,`whats-new`,`report`,`about`],OC=`forgeqe-settings-more`,kC={config:`forgeqe.yaml`,models:`llms.json`,environments:`the environment files`,guardrails:`guardrails.md`,grids:`the browser grid files`,secrets:`keys and passwords`};function AC(e,t){let n=e.paths.base.replace(/[\\/]+$/,``);return t.startsWith(`${n}/`)||t.startsWith(`${n}\\`)?`./${t.slice(n.length+1).replace(/\\/g,`/`)}`:t}function jC(e){return{config:e.config,models:e.models,environments:e.environments,guardrails:e.guardrails.filter(e=>e.editable).map(e=>e.text),grids:{browserstack:e.grids.browserstack.linked?e.grids.browserstack.value:null,testmu:e.grids.testmu.linked?e.grids.testmu.value:null},secrets:{}}}var MC={local:`This computer`,browserstack:`BrowserStack`,testmu:`TestMu AI`};function NC(e){let t=MC[String(e.runs_on??`local`)]??String(e.runs_on),n=e.type===`real`||e.type===void 0&&e.runs_on!==void 0&&e.runs_on!==`local`?`real device`:e.platform===`ios`?`simulator`:`emulator`,r=`${e.platform===`ios`?`iOS`:`Android`}${e.os_version?` ${String(e.os_version)}`:``}`;return[`${t}, ${n}`,r,e.model||e.udid,e.enabled===!1?`not in use`:``].filter(Boolean).map(String).join(` · `)}function PC({section:e,only:t}){let n=t??e,[r,i]=(0,G.useState)(null),[a,o]=(0,G.useState)(null),[c,l]=(0,G.useState)(``),[u,d]=(0,G.useState)(``),[f,m]=(0,G.useState)(``),[h,g]=(0,G.useState)(!1),[_,v]=(0,G.useState)(!1),[y,b]=(0,G.useState)(null),x=(0,G.useCallback)(()=>{l(``),Rt.settings().then(e=>{i(e),o(jC(e))},e=>l(e.message))},[]),S=(0,G.useCallback)(()=>{l(``),ht.state().then(e=>{b(e),e.ready&&x()},e=>l(e.message))},[x]);(0,G.useEffect)(S,[S]);let C=e=>{e.project===y?.project&&e.ready||(i(null),o(null)),b(e),e.ready&&x()},w=!!y?.ready;(0,G.useEffect)(()=>{y&&!w&&n!==`setup`?location.replace(zt(`settings`,`setup`)):!t&&n&&wC.includes(n)&&location.replace(zt(n))},[y,w,n]);let T=(y&&!w?CC[0]:CC.find(e=>e.id===(n===`repo-tokens`?`secrets`:n)))||CC.find(e=>e.id===`models`),[E,D]=(0,G.useState)(()=>{try{return localStorage.getItem(OC)===`open`}catch{return!1}}),O=e=>{D(e);try{localStorage.setItem(OC,e?`open`:`closed`)}catch{}};(0,G.useEffect)(()=>{m(``),d(``),v(!1)},[T.id]);let k=r?jC(r):null,A=e=>!!a&&!!k&&!yr(a[e],k[e]),j=Object.keys(kC).filter(A);(0,G.useEffect)(()=>{if(!j.length)return;let e=e=>e.preventDefault();return window.addEventListener(`beforeunload`,e),()=>window.removeEventListener(`beforeunload`,e)},[j.length]);let M=e=>({value:a[e],set:t=>{m(``),o(n=>({...n,[e]:t}))},vars:r.variables,...e===`config`?{file:`forgeqe.yaml`}:{}}),N=(0,G.useRef)(a);N.current=a;let P=(0,G.useRef)(r);P.current=r;let[te,ne]=(0,G.useState)(``),re=(0,G.useCallback)(async()=>{let e=N.current,t=P.current;if(!e||!t)return;let n=jC(t),r=Object.keys(kC).filter(t=>!yr(e[t],n[t]));if(!r.length)return;g(!0),d(``),v(!1);let a=t,s=(t,n)=>o(r=>{if(!r)return r;let i=jC(t),a={...r};for(let t of Object.keys(kC))if(t===`secrets`){if(!n)continue;a.secrets=Object.fromEntries(Object.entries(r.secrets).filter(([t,n])=>e.secrets[t]!==n))}else(n?yr(r[t],e[t]):yr(r[t],i[t]))&&(a[t]=i[t]);return a});try{for(let i of r)if(i===`secrets`)a=await Rt.saveSecrets(e.secrets);else if(i===`grids`)for(let[r,i]of Object.entries(e.grids))i&&!yr(i,n.grids[r])&&(a=await Rt.saveGrid(r,i,t.versions[`grid:${r}`]));else a=i===`guardrails`?await Rt.saveGuardrails(e.guardrails,t.versions.guardrails):await Rt.save(i,e[i],t.versions[i]);i(a),s(a,!0),ne(``),m(`Saved`)}catch(n){d(n.message),v(n instanceof bt&&n.status===409),ne(JSON.stringify(e)),a!==t&&(i(a),s(a,!1))}finally{g(!1)}},[]);(0,G.useEffect)(()=>{if(!f)return;let e=setTimeout(()=>m(``),4e3);return()=>clearTimeout(e)},[f]);let ie=a?JSON.stringify(a):``;(0,G.useEffect)(()=>{if(!j.length||h||_||te&&te===ie)return;let e=j.every(e=>e===`secrets`),t=setTimeout(re,e?2e3:1e3);return()=>clearTimeout(t)},[ie,h,_,te]);let ae=async()=>{d(``);try{let e=await Rt.splitEnvironments();i(e),o(jC(e)),m(`Each environment is now its own file in environments/. The old file is left as it is; ForgeQE no longer reads it.`)}catch(e){d(e.message)}},F=async(e,t,n)=>{d(``);try{let a=await Rt.saveText(e,t,n,r?.versions[e]);return i(a),o(jC(a)),m(`Saved ${kC[e]}.`),!0}catch(e){return d(e.message),!1}},I=null;if(T.id===`setup`)I=y&&(0,K.jsx)(Gx,{state:y,onState:C});else if(r&&a){let e=(T.id===`models`||T.id===`routing`?[`models`,`config`]:T.id===`environments`?[`environments`,`config`]:[`files`,`guardrails`,`prompts`,`logs`,`audit`,`generated`,`about`,`report`,`features`,`whats-new`].includes(T.id)?[]:[`config`]).find(e=>r.errors[e]);switch(T.id){case`models`:I=(0,K.jsx)(ac,{config:M(`config`),models:M(`models`),vars:r.variables,onReload:x});break;case`environments`:I=(0,K.jsx)(zs,{envs:M(`environments`),layout:r.paths.environments,files:r.raw.environments,base:r.paths.base,onSplit:ae,config:M(`config`),splitBlocked:A(`environments`)||A(`config`)?`Save or discard your changes to the environments and forgeqe.yaml first.`:``});break;case`browser`:I=(0,K.jsx)(jo,{groups:fc,edit:M(`config`)});break;case`appearance`:I=(0,K.jsx)(MS,{config:M(`config`)});break;case`routing`:I=(0,K.jsx)(dc,{config:M(`config`),models:M(`models`)});break;case`generated`:I=(0,K.jsx)(tS,{});break;case`about`:I=(0,K.jsx)(Qx,{});break;case`features`:case`whats-new`:I=(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 text-sm text-muted`,children:`Opening…`}),children:T.id===`features`?(0,K.jsx)(xC,{}):(0,K.jsx)(SC,{})});break;case`report`:I=(0,K.jsx)(uS,{});break;case`notifications`:case`mcp`:I=(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Tx,{view:T.id,edit:M(`config`),grids:a.grids,setGrids:e=>o(t=>({...t,grids:e})),gridPaths:{browserstack:AC(r,r.grids.browserstack.file),testmu:AC(r,r.grids.testmu.file)}}),T.id===`notifications`&&(0,K.jsx)($x,{})]});break;case`parallel`:I=(0,K.jsx)(jo,{groups:Dc,edit:M(`config`)});break;case`mobile`:I=(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(jo,{groups:Oc,edit:M(`config`)}),(0,K.jsx)(W,{help:`Phones, tablets, emulators and simulators connected to this computer. Every device in use, here and on the clouds below, runs each replay and set of Maestro flows; ForgeQE sets up Appium, Maestro and the cloud for each.`,children:`Devices on this computer`}),(0,K.jsx)(Go,{edit:M(`config`),base:[`mobile`,`devices`],defs:Ac,noun:`device`,placeholder:`pixel8`,start:{type:`virtual`,platform:`android`},meta:NC}),(0,K.jsx)(bC,{grids:a.grids,setGrids:e=>{m(``),o(t=>({...t,grids:e}))},paths:{browserstack:AC(r,r.grids.browserstack.file),testmu:AC(r,r.grids.testmu.file)},vars:r.variables}),(0,K.jsx)(jo,{groups:jc,edit:M(`config`),continued:!0})]});break;case`desktop`:I=(0,K.jsx)(jo,{groups:Mc,edit:M(`config`)});break;case`containers`:I=(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(jo,{groups:Nc.slice(0,1),edit:M(`config`)}),(0,K.jsx)(W,{help:`Each one ForgeQE may start, stop and read: a database, a queue, the API under test.`,children:`Services`}),(0,K.jsx)(Go,{edit:M(`config`),base:[`containers`,`services`],defs:Ic,noun:`service`,placeholder:`db`,meta:e=>[e.image,Array.isArray(e.ports)?`ports ${e.ports.join(`, `)}`:``].filter(Boolean).map(String).join(`, `)}),(0,K.jsx)(jo,{groups:Nc.slice(1),edit:M(`config`),continued:!0})]});break;case`databases`:I=(0,K.jsx)(Go,{edit:M(`config`),base:[`databases`],defs:Lc,noun:`database`,placeholder:`orders`,meta:e=>[e.description,e.engine,e.url_env?`from ${e.url_env}`:e.host,e.writable?`writable`:`read only`].filter(Boolean).map(String).join(`, `)});break;case`signins`:I=(0,K.jsx)(Lo,{edit:M(`config`)});break;case`secrets`:I=(0,K.jsx)(cC,{show:n===`repo-tokens`?`tokens`:void 0});break;case`integrations`:I=(0,K.jsx)(Tx,{edit:M(`config`),grids:a.grids,setGrids:e=>{m(``),o(t=>({...t,grids:e}))},gridPaths:{browserstack:AC(r,r.grids.browserstack.file),testmu:AC(r,r.grids.testmu.file)}});break;case`tests`:I=(0,K.jsx)(jo,{groups:pc,edit:M(`config`)});break;case`runs`:I=(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(jo,{groups:mc,edit:M(`config`)}),(0,K.jsx)(jo,{groups:Tc,edit:M(`config`),continued:!0}),(0,K.jsx)(W,{help:`Each one a table of the project report: forgeqe.<name>.`,children:`Report datasets`}),(0,K.jsx)(Go,{edit:M(`config`),base:[`bi`,`datasets`],defs:Ec,noun:`dataset`,placeholder:`open_bugs`,meta:e=>[e.title,e.kind===`jira_jql`?`Jira`:e.kind===`ado_wiql`?`Azure DevOps`:``].filter(Boolean).map(String).join(`, `)})]});break;case`quality`:I=(0,K.jsx)(jo,{groups:hc,edit:M(`config`)});break;case`evidence`:I=(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(WS,{edit:M(`config`)}),(0,K.jsx)(eS,{})]});break;case`agents`:I=(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(jo,{groups:xc,edit:M(`config`)}),(0,K.jsx)(dS,{config:M(`config`)})]});break;case`guardrails`:I=(0,K.jsx)(Fx,{rules:a.guardrails,others:r.guardrails.filter(e=>!e.editable),onChange:e=>o({...a,guardrails:e}),onChanged:e=>(m(e),Rt.settings().then(i,()=>{}))});break;case`monitor`:I=(0,K.jsx)(Mx,{edit:M(`config`)});break;case`skills`:I=(0,K.jsx)(Ss,{edit:M(`config`)});break;case`prompts`:I=(0,K.jsx)(ys,{onChanged:m});break;case`registry`:I=(0,K.jsx)(Sn,{edit:M(`config`)});break;case`logs`:I=(0,K.jsx)(Xn,{});break;case`audit`:I=(0,K.jsx)(fn,{});break;case`tokenomics`:I=(0,K.jsx)(yn,{edit:M(`config`)});break;case`files`:I=(0,K.jsx)(Uo,{snap:r,dirty:{config:A(`config`),models:A(`models`),environments:A(`environments`)},onSave:F})}e&&(I=(0,K.jsxs)(`p`,{role:`alert`,className:`m-0 rounded-[12px] bg-fail-soft px-4 py-3 text-sm leading-relaxed text-fail`,children:[e===`environments`?`An environment file`:kC[e],` does not parse, so the form cannot show it: `,r.errors[e],`. Fix it in `,(0,K.jsx)(`a`,{href:zt(`settings`,`files`),children:`Settings as text`}),`.`]}))}let oe=u?(0,K.jsxs)(`div`,{role:`alert`,className:`flex w-full flex-wrap items-center gap-3 rounded-[14px] border border-fail-soft bg-fail-soft px-4 py-3 text-sm leading-relaxed text-fail shadow-composer`,children:[(0,K.jsx)(`span`,{className:`flex-[1_1_260px] [overflow-wrap:anywhere]`,children:u}),_?(0,K.jsxs)(R,{size:`sm`,onClick:()=>{v(!1),d(``),ne(``),S()},"data-tip":`Reload, and lose my unsaved changes`,children:[(0,K.jsx)(ee,{"aria-hidden":`true`}),`Reload`]}):(0,K.jsxs)(`span`,{className:`flex gap-2`,children:[j.length>0&&(0,K.jsxs)(R,{size:`sm`,onClick:()=>{o(k),d(``),ne(``)},"data-tip":`Undo my change`,children:[(0,K.jsx)(be,{"aria-hidden":`true`}),`Undo`]}),(0,K.jsxs)(R,{size:`sm`,onClick:()=>{d(``),ne(``),re()},children:[(0,K.jsx)(p,{"aria-hidden":`true`}),`Retry`]})]})]}):null,se={pending:a?.secrets||{},set:(e,t)=>{m(``),o(n=>{let r={...n.secrets};return t===void 0?delete r[e]:r[e]=t,{...n,secrets:r}})},saved:new Set(r?.saved||[]),vars:r?.variables||{},store:r?.store||`the credential store`};return(0,K.jsx)(Dn.Provider,{value:se,children:(0,K.jsxs)(`div`,{className:`settings-fields flex min-h-(--screen) flex-col`,children:[(0,K.jsx)(cr,{}),(0,K.jsxs)(`main`,{className:L(`box-border flex w-full flex-auto flex-col items-stretch sm:flex-row sm:items-start`,t&&`mx-auto box-border flex w-full max-w-[1180px] flex-col px-6 pt-8 pb-10 md:px-12 short:pt-5 short:pb-6`),children:[(0,K.jsxs)(`div`,{className:L(`theme-side theme-side--wide w-full flex-col gap-3 border-line px-3 pt-5 pb-4 sm:sticky sm:top-0 sm:h-(--screen) sm:w-[248px] sm:flex-none sm:overflow-y-auto sm:border-r sm:bg-surface-muted`,t?`hidden`:`flex`),children:[(0,K.jsxs)(`a`,{href:zt(),className:`inline-flex min-h-9 items-center gap-2 self-start rounded-[8px] px-2 text-[13.5px] font-medium text-ink-2 no-underline hover:bg-surface-strong hover:text-ink`,children:[(0,K.jsx)(xe,{size:16,"aria-hidden":`true`}),`Back`]}),(0,K.jsx)(`p`,{className:`m-0 px-2 pt-1 text-[15px] font-semibold`,children:`Settings`}),(0,K.jsx)(LC,{ready:w}),(0,K.jsx)(`label`,{htmlFor:`section-pick`,className:`sr-only`,children:`Section`}),(0,K.jsx)(Yt,{id:`section-pick`,value:T.id,onChange:e=>location.hash=zt(`settings`,e.target.value),className:`sm:hidden`,children:EC.map(e=>(0,K.jsx)(`optgroup`,{label:e,children:TC.filter(t=>t.group===e).map(e=>(0,K.jsx)(`option`,{value:e.id,disabled:!w&&e.id!==`setup`,children:e.label},e.id))},e))}),(0,K.jsxs)(`nav`,{"aria-label":`Settings sections`,className:`hidden flex-col gap-3 sm:flex`,children:[(0,K.jsx)(FC,{sections:TC.filter(e=>DC.includes(e.id)),current:T.id,locked:!!y&&!w}),(0,K.jsx)(IC,{open:E||!DC.includes(T.id),onToggle:()=>O(!E),children:(0,K.jsx)(FC,{sections:TC.filter(e=>!DC.includes(e.id)),current:T.id,locked:!!y&&!w})})]})]}),(0,K.jsxs)(`section`,{"aria-labelledby":`sec-h`,className:L(`flex min-w-0 flex-1 flex-col`,!t&&`mx-auto box-border flex w-full max-w-[1180px] flex-col px-6 pt-8 pb-10 md:px-12 short:pt-5 short:pb-6`),children:[t?(0,K.jsxs)(`div`,{className:`mb-1 flex items-center gap-3`,children:[(0,K.jsx)(Tn,{icon:T.icon,pixel:_r[T.id],size:`lg`}),(0,K.jsx)(`h1`,{id:`sec-h`,className:`m-0 text-[26px] font-semibold tracking-[-0.01em]`,children:T.label})]}):(0,K.jsxs)(`h1`,{id:`sec-h`,className:`m-0 mb-2 flex items-center gap-3 text-[26px] leading-tight font-semibold tracking-[-0.01em]`,children:[(0,K.jsx)(Vt,{icon:T.icon,size:22,className:`flex-none text-muted`}),T.label]}),(0,K.jsxs)(`p`,{className:`mt-0 mb-10 max-w-[64ch] text-[14px] leading-relaxed text-ink-2`,children:[T.intro,T.file&&r&&(0,K.jsxs)(K.Fragment,{children:[` `,`Saved in `,(0,K.jsx)(`span`,{className:`font-mono text-[12.5px]`,children:T.file}),`.`]})]}),c&&(0,K.jsxs)(`div`,{role:`alert`,className:`flex flex-col items-start gap-4 border-t border-line pt-6`,children:[(0,K.jsx)(`p`,{className:`m-0 max-w-[60ch] leading-relaxed text-ink-2`,children:c}),(0,K.jsxs)(R,{size:`sm`,onClick:S,children:[(0,K.jsx)(p,{"aria-hidden":`true`}),`Retry`]})]}),y&&!w&&(0,K.jsxs)(`p`,{className:`mt-0 mb-5 flex items-start gap-2 rounded-[12px] bg-surface-muted px-4 py-3 text-sm leading-relaxed text-ink-2`,children:[(0,K.jsx)(je,{size:16,"aria-hidden":`true`,className:`mt-0.5 flex-none`}),`The other sections open once ForgeQE is set up in a project folder: choose the folder, then Set up.`]}),!c&&(!y||T.id!==`setup`&&!r)&&(0,K.jsx)(`p`,{role:`status`,className:`m-0 text-sm text-muted`,children:`Loading settings…`}),I,(0,K.jsxs)(`div`,{className:`sticky bottom-4 z-10 mt-8 flex flex-col items-end gap-2`,children:[oe,(0,K.jsx)(`div`,{"aria-live":`polite`,className:`contents`,children:!u&&(j.length>0||h||f)&&(0,K.jsx)(`span`,{className:L(`inline-flex min-h-9 items-center gap-2 rounded-full border border-line bg-bg px-4 text-[13px] shadow-composer`,j.length||h?`text-ink-2`:`text-pass`),children:j.length||h?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Kt,{state:`working`,px:16}),`Saving…`]}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(s,{size:14,"aria-hidden":`true`}),f]})})})]})]})]})]})})}function FC({sections:e,current:t,locked:n}){let r=[...new Set(e.map(e=>e.group))];return(0,K.jsx)(K.Fragment,{children:r.map(r=>{let i=`group-${r}-${e[0]?.id}`;return(0,K.jsxs)(`div`,{role:`group`,"aria-labelledby":i,className:`flex flex-col gap-px`,children:[(0,K.jsx)(`span`,{id:i,className:`px-2 pt-1 pb-1 text-[12px] font-medium text-muted`,children:r}),e.filter(e=>e.group===r).map(e=>n&&e.id!==`setup`?(0,K.jsxs)(`span`,{"aria-disabled":`true`,"data-tip":`Set up ForgeQE in a project folder first`,className:`flex min-h-8 cursor-not-allowed items-center gap-2.5 rounded-[7px] px-2 text-[13.5px] text-muted opacity-60`,children:[(0,K.jsx)(Vt,{icon:e.icon,size:16,className:`flex-none`}),(0,K.jsx)(`span`,{className:`flex-1`,children:e.label}),(0,K.jsx)(je,{size:13,"aria-label":`Locked`,className:`flex-none`})]},e.id):(0,K.jsxs)(`a`,{href:zt(`settings`,e.id),"aria-current":t===e.id?`page`:void 0,className:L(`group flex min-h-8 items-center gap-2.5 rounded-[7px] px-2 text-[13.5px] no-underline`,t===e.id?`bg-surface-strong font-medium text-ink hover:text-ink`:`text-ink-2 hover:bg-surface-strong hover:text-ink`),children:[(0,K.jsx)(Vt,{icon:e.icon,size:16,className:L(`flex-none`,t===e.id?`text-ink`:`text-muted group-hover:text-ink`)}),e.label]},e.id))]},r)})})}function IC({open:e,onToggle:t,children:n}){return(0,K.jsxs)(`div`,{className:`flex flex-col gap-3 border-t border-line-soft pt-2`,children:[(0,K.jsxs)(`button`,{type:`button`,"aria-expanded":e,"aria-controls":`settings-more`,onClick:t,className:`flex h-7 cursor-pointer items-center gap-1 rounded-[6px] border-0 bg-transparent px-2 text-left text-[12px] font-medium text-muted hover:text-ink`,children:[(0,K.jsx)(`span`,{className:`flex-1`,children:`More settings`}),(0,K.jsx)(l,{size:14,strokeWidth:2,"aria-hidden":`true`,className:L(`flex-none transition-transform duration-200`,e&&`rotate-90`)})]}),(0,K.jsx)($n,{open:e,id:`settings-more`,children:(0,K.jsx)(`div`,{className:`flex flex-col gap-3`,children:n})})]})}function LC({ready:e}){let[t,n]=(0,G.useState)(``),r=t.toLowerCase().split(/\s+/).filter(Boolean),i=e=>CC.find(t=>t.id===e)?.label||e,a=r.length?Bx.filter(e=>r.every(t=>`${e.label} ${e.key} ${i(e.section)}`.toLowerCase().includes(t))).slice(0,12):[];return(0,K.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,K.jsx)(`label`,{htmlFor:`find-setting`,className:`sr-only`,children:`Find a setting`}),(0,K.jsx)(z,{size:`sm`,id:`find-setting`,type:`search`,value:t,disabled:!e,placeholder:`Search settings`,className:`bg-bg`,"data-tip":`By its name or its forgeqe.yaml key: max attempts, memory.dir`,onChange:e=>n(e.target.value)}),r.length>0&&(0,K.jsxs)(`ul`,{"aria-label":`Settings found`,className:`m-0 flex list-none flex-col p-0`,children:[a.length===0&&(0,K.jsx)(`li`,{className:`px-2 py-2 text-[13px] text-muted`,children:`Nothing called that. Every key can also be edited in Settings as text.`}),a.map(e=>(0,K.jsx)(`li`,{children:(0,K.jsxs)(`a`,{href:zt(`settings`,e.section),onClick:()=>n(``),className:`flex flex-col rounded-[10px] px-2 py-1.5 text-ink no-underline hover:bg-surface-muted hover:text-ink`,children:[(0,K.jsx)(`span`,{className:`text-sm`,children:e.label}),(0,K.jsxs)(`span`,{className:`text-[12px] text-muted`,children:[i(e.section),` · `,(0,K.jsx)(`code`,{className:`font-mono text-[11.5px]`,children:e.key})]})]})},`${e.section}:${e.key}`))]})]})}var RC=class extends G.Component{state={failed:!1,at:this.props.at};static getDerivedStateFromError(){return{failed:!0}}static getDerivedStateFromProps(e,t){return e.at===t.at?null:{failed:!1,at:e.at}}componentDidCatch(e){console.error(`This page could not be shown:`,e)}render(){return this.state.failed?(0,K.jsxs)(`div`,{role:`alert`,className:`m-0 px-6 py-10 text-sm text-muted`,children:[(0,K.jsx)(`p`,{className:`m-0`,children:`This page could not be shown. Check the address, or go back and try again.`}),(0,K.jsx)(`p`,{className:`m-0 mt-2`,children:(0,K.jsx)(`a`,{href:zt(),className:`underline`,children:`Go to Home`})})]}):this.props.children}};function zC(e,t){let n,r,i=()=>r??=e().then(e=>n=t(e),e=>{throw r=void 0,e}),a=(0,G.lazy)(()=>i().then(()=>({default:n})));return Object.assign(e=>(0,G.createElement)(n||a,e),{preload:i})}var BC=()=>B(()=>import(`./Chat-DtI3dgGs.js`),__vite__mapDeps([6,1,2,3,7,4,8,9,10])),VC=zC(BC,e=>e.Chat),HC=zC(BC,e=>e.Chats),UC=zC(()=>B(()=>import(`./Reports-BGs_YnwI.js`),__vite__mapDeps([11,1,2,3,4,12,13])),e=>e.Reports),WC=zC(()=>B(()=>import(`./Agent-B0R4tnqF.js`),__vite__mapDeps([14,1,2,3,4,7,8,12,15,16,17,18,19,20,21,13])),e=>e.Agent),GC=zC(()=>B(()=>import(`./Runs-CP3CgO6s.js`),__vite__mapDeps([21,1,2,3,4,7,8,12,13])),e=>e.Runs),KC=zC(()=>B(()=>import(`./Record-D7h6g_aw.js`),__vite__mapDeps([22,1,2,3,4,12,8,10,23,17])),e=>e.Record),qC=zC(()=>B(()=>import(`./Desktop-D4JLSUnE.js`),__vite__mapDeps([24,1,2,3,4,12,17,23])),e=>e.Desktop),JC=zC(()=>B(()=>import(`./Regression-ByBOHx96.js`),__vite__mapDeps([25,1,2,3,7,4,8,16])),e=>e.Regression),YC=zC(()=>B(()=>import(`./Impact-_t7bwCwP.js`),__vite__mapDeps([26,1,2,3,12,19,27])),e=>e.Impact),XC=zC(()=>B(()=>import(`./ApiTests-CqWPHWCs.js`),__vite__mapDeps([28,1,2,3,4,7,8,16])),e=>e.ApiTests),ZC=zC(()=>B(()=>import(`./Migration-OGOnRmUX.js`),__vite__mapDeps([29,1,2,3,4,12,13,30,31,32])),e=>e.Migration),QC=zC(()=>B(()=>import(`./Tosca-jVIQnyZv.js`),__vite__mapDeps([33,1,2,3,4,12,13,30,31,32,34])),e=>e.Tosca),$C=zC(()=>B(()=>import(`./Compare-BMcHYq3I.js`),__vite__mapDeps([35,1,2,31,34,4,32,12])),e=>e.ToscaCompare),ew=zC(()=>B(()=>import(`./Quality-C__pEYpt.js`),__vite__mapDeps([36,1,2,3,4,12,20])),e=>e.Quality),tw=zC(()=>B(()=>import(`./Flaky-BZx54uo3.js`),__vite__mapDeps([37,1,2,3,12,20,4,13])),e=>e.Flaky),nw=zC(()=>B(()=>import(`./RunDiff-YxrBVtxF.js`),__vite__mapDeps([38,1,2,3,12,20,4,13])),e=>e.RunDiff),rw=zC(()=>B(()=>import(`./TestDebt-D3I2zyGE.js`),__vite__mapDeps([39,1,2,3,20,4])),e=>e.TestDebt),iw=zC(()=>B(()=>import(`./Flags-CdLXiacX.js`),__vite__mapDeps([40,1,2,3,20,4])),e=>e.Flags),aw=zC(()=>B(()=>import(`./Production-DqnrcSfn.js`),__vite__mapDeps([41,1,2,3,4,20])),e=>e.Production),ow=zC(()=>B(()=>import(`./Cost-BcZ6gC9M.js`),__vite__mapDeps([42,1,2,3,20,4])),e=>e.Cost),sw=zC(()=>B(()=>import(`./Explore-yjmJHnzH.js`),__vite__mapDeps([43,1,2,3,20,4])),e=>e.Explore),cw=zC(()=>B(()=>import(`./Readiness-j22NEcwR.js`),__vite__mapDeps([44,1,2,3,20,4])),e=>e.Readiness),lw=zC(()=>B(()=>import(`./TestCases-BzuM4M4t.js`),__vite__mapDeps([45,1,2,3,4])),e=>e.TestCases),uw=zC(()=>B(()=>import(`./KindPage-CGfjoezZ.js`),__vite__mapDeps([46,1,2,3,4,7,8,16,20])),e=>e.Accessibility),dw=zC(()=>B(()=>import(`./KindPage-CGfjoezZ.js`),__vite__mapDeps([46,1,2,3,4,7,8,16,20])),e=>e.Performance),fw=zC(()=>B(()=>import(`./KindPage-CGfjoezZ.js`),__vite__mapDeps([46,1,2,3,4,7,8,16,20])),e=>e.Visual),pw=zC(()=>B(()=>import(`./Data-Cbl35RTK.js`).then(e=>e.n),__vite__mapDeps([15,1,2,3,4,7,8,12,16,17])),e=>e.Data),mw=zC(()=>B(()=>import(`./TestData-CRmYpEgE.js`).then(e=>e.n),__vite__mapDeps([18,1,2,3,12,17,4])),e=>e.TestData),hw=zC(()=>B(()=>import(`./Features-kXt6Um2p.js`),__vite__mapDeps([0,1,2,3,4])),e=>e.Features),gw=zC(()=>B(()=>import(`./Jobs-D4PIAcdO.js`),__vite__mapDeps([47,1,2,3,4,7,8,16])),e=>e.Jobs),_w=zC(()=>B(()=>import(`./Product-DycPE2MI.js`),__vite__mapDeps([48,1,2,3,12,19,49,27,32,50])),e=>e.Product),vw=zC(()=>B(()=>import(`./Evidence-MDaV4ttv.js`),__vite__mapDeps([51,1,2,3,4,12,13,49])),e=>e.Evidence),yw=zC(()=>B(()=>import(`./WhatsNew-EKniIJ6W.js`),__vite__mapDeps([5,1,2,3])),e=>e.WhatsNew),bw=zC(()=>B(()=>import(`./Browse-DlbTQPA8.js`),__vite__mapDeps([52,1,2,3,53,9])),e=>e.Browse),xw={chats:HC,reports:UC,agents:WC,runs:GC,record:KC,desktop:qC,regression:JC,impact:YC,"api-tests":XC,migration:ZC,tosca:QC,quality:ew,flaky:tw,"run-diff":nw,"test-debt":rw,flags:iw,production:aw,cost:ow,explore:sw,readiness:cw,"test-cases":lw,accessibility:uw,performance:dw,visual:fw,data:pw,"test-data":mw,features:hw,jobs:gw,schedules:gw,product:_w,evidence:vw,"evidence-runs":vw,"evidence-contracts":vw,"evidence-review":vw,"evidence-releases":vw,"evidence-learn":vw,"evidence-monitor":vw,"whats-new":yw,browse:bw},Sw=e=>xw[e[0]||``]?.preload();function Cw(){let e=Xt(Sw),[t=``,n,...r]=e;Hn();let[,i]=(0,G.useState)(0),[a,o]=(0,G.useState)(0);return(0,G.useEffect)(()=>{let e=()=>Object.values(xw).forEach(e=>void e.preload().catch(()=>{}));if(typeof requestIdleCallback==`function`){let t=requestIdleCallback(e,{timeout:3e3});return()=>cancelIdleCallback(t)}let t=setTimeout(e,1500);return()=>clearTimeout(t)},[]),(0,G.useEffect)(()=>{nn.get().then(e=>{ln(e),i(e=>e+1)},()=>{})},[]),t===`tosca`&&n&&r[0]===`compare`?(0,K.jsx)(RC,{at:e.join(`/`),children:(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)($C,{id:n,caseId:r[1]?Lt(r[1]):void 0})})}):(0,K.jsxs)(qn,{current:t,route:e,children:[(0,K.jsx)($r,{onReload:()=>o(e=>e+1)}),(0,K.jsx)(G.Fragment,{children:(0,K.jsx)(RC,{at:e.join(`/`),children:(0,K.jsx)(ww,{page:t,sub:(t===`data`||t===`product`||t===`agents`||t===`runs`||t===`evidence`||t===`evidence-runs`||t===`accessibility`||t===`test-cases`||t===`quality`||t===`record`||t===`tosca`||t===`browse`)&&n?[n,...r].join(`/`):n})})},a)]})}function ww({page:e,sub:t}){if(e===`settings`)return(0,K.jsx)(PC,{section:t});if(e===`chats`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:t?(0,K.jsx)(VC,{id:t}):(0,K.jsx)(HC,{})});if(e===`reports`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(UC,{sub:t})});if(e===`jobs`||e===`schedules`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(gw,{sub:e===`jobs`?t:void 0})});if(e===`impact`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(YC,{})});if(e===`regression`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(JC,{sub:t})});if(e===`api-tests`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(XC,{sub:t})});if(e===`migration`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(ZC,{sub:t})});if(e===`tosca`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(QC,{sub:t})});if(e===`quality`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(ew,{sub:t})});if(e===`readiness`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(cw,{})});if(e===`explore`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(sw,{sub:t})});if(e===`cost`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(ow,{})});if(e===`production`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(aw,{})});if(e===`flags`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(iw,{})});if(e===`test-debt`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(rw,{sub:t})});if(e===`run-diff`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(nw,{sub:t})});if(e===`flaky`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(tw,{})});if(e===`test-cases`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(lw,{sub:t})});if(e===`accessibility`||e===`performance`||e===`visual`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(e===`accessibility`?uw:e===`performance`?dw:fw,{sub:t},e)});if(e===`data`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(pw,{sub:t})});if(e===`test-data`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(mw,{sub:t})});if(e===`features`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(hw,{})});if(e===`whats-new`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(yw,{})});if(e===`record`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(KC,{sub:t})});if(e===`desktop`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(qC,{sub:t})});if(e===`agents`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(WC,{id:t})});if(e===`runs`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(GC,{sub:t})});if(e===`product`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(_w,{sub:t})});if(e===`evidence`||e===`evidence-runs`||e===`evidence-contracts`||e===`evidence-review`||e===`evidence-releases`||e===`evidence-learn`||e===`evidence-monitor`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(vw,{page:e,sub:t})});if(e===`browse`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(bw,{sub:t})});if(e===`knowledge`)return(0,K.jsx)(Xo,{});if(e===`memory`)return(0,K.jsx)(cs,{});if(wC.includes(e))return(0,K.jsx)(PC,{only:e},e);let n=ls.find(t=>t.id===e);return n?(0,K.jsx)(us,{section:n}):(0,K.jsx)(Ao,{})}At(),jt(),Ot(),Xr(document),Yr(),(0,kr.createRoot)(document.getElementById(`root`)).render((0,K.jsx)(G.StrictMode,{children:(0,K.jsxs)(mr,{children:[(0,K.jsx)(Cw,{}),(0,K.jsx)(Kr,{})]})}));export{aa as A,ri as B,$a as C,pa as D,ga as E,$i as F,Gi as I,Qi as L,na as M,ra as N,ia as O,ea as P,li as R,eo as S,wa as T,ti as V,to as _,Bx as a,Za as b,Ho as c,_o as d,So as f,no as g,bo as h,rS as i,ta as j,oa as k,ko as l,To as m,wC as n,Ix as o,vo as p,nS as r,ux as s,CC as t,Ao as u,Ya as v,Ja as w,Qa as x,Xa as y,ci as z};
|
|
66
|
+
`))})}),(0,K.jsx)(V,{label:`Expected result`,htmlFor:`${i}-expected`,stacked:!0,children:(0,K.jsx)(Zt,{id:`${i}-expected`,rows:2,value:e.expected,maxLength:2e3,onChange:e=>a(`expected`,e.target.value)})}),(0,K.jsx)(V,{label:`Actual result`,help:`Copy an error message exactly.`,htmlFor:`${i}-actual`,stacked:!0,children:(0,K.jsx)(Zt,{id:`${i}-actual`,rows:2,value:e.actual,maxLength:2e3,onChange:e=>a(`actual`,e.target.value)})}),(0,K.jsx)(V,{label:`Severity`,htmlFor:`${i}-severity`,children:(0,K.jsx)(Yt,{id:`${i}-severity`,value:e.severity,onChange:e=>a(`severity`,e.target.value),children:n.map(e=>(0,K.jsx)(`option`,{value:e,children:iS[e]??e},e))})}),(0,K.jsx)(V,{label:`Area`,htmlFor:`${i}-area`,children:(0,K.jsx)(Yt,{id:`${i}-area`,value:e.area,onChange:e=>a(`area`,e.target.value),children:t.map(e=>(0,K.jsx)(`option`,{value:e,children:e[0].toUpperCase()+e.slice(1)},e))})})]})}var lS=e=>e<1024?`${e} bytes`:`${Math.round(e/1024)} KB`;function uS(){let[e,t]=(0,G.useState)(null),{view:n,error:a,setError:o,load:s,running:c}=sS(e),l=(0,G.useId)(),[u,d]=(0,G.useState)(``),[f,p]=(0,G.useState)(null),[m,h]=(0,G.useState)([]),[g,_]=(0,G.useState)({}),[v,y]=(0,G.useState)(null),[b,x]=(0,G.useState)([]),[C,w]=(0,G.useState)(``),[T,E]=(0,G.useState)(!1),[D,O]=(0,G.useState)(``),[k,A]=(0,G.useState)(null),j=(0,G.useRef)(null),M=(0,G.useRef)(null),N=n?.job;(0,G.useEffect)(()=>{N&&!N.running&&M.current!==N&&(M.current=N,N.error?o(N.error):N.kind===`draft`&&N.result?(p(N.result.draft),h(N.result.questions),_({})):N.kind===`send`&&N.result&&A(N.result))},[N,o]);let P=n?.attachments??[],te=n?.session??void 0,ne=v??new Set(P.filter(e=>e.picked).map(e=>e.id)),re=e=>{t(e),y(null)},ie=(e,t)=>{let n=new Set(ne);t?n.add(e):n.delete(e),y(n)},ae=async e=>{o(``);try{await tn.draft(e),s()}catch(e){o(e.message)}},F=()=>void ae({session:te,description:u,current:f??void 0,answers:m.map(e=>({question:e,answer:g[e]??``}))}),I=async e=>{o(``);for(let t of Array.from(e??[]).slice(0,aS-b.length))try{let e=await Ei(t);if(e.type!==`image/png`&&e.type!==`image/jpeg`)throw Error(`${t.name}: use a PNG or JPEG picture.`);x(t=>[...t,{name:e.name,url:`data:${e.type};base64,${e.data}`}])}catch(e){o(e.message)}},oe=async()=>{if(f){E(!1),o(``);try{await tn.send({session:te,draft:f,attach:[...ne],images:b.map(e=>e.url),contact:C.trim()||void 0,confirmed:!0}),s()}catch(e){o(e.message)}}},se=async()=>{if(f){o(``);try{let{text:e}=await tn.text(f);await navigator.clipboard.writeText(e),O(`Copied. Paste it into an email or a Teams message to the ForgeQE team.`)}catch(e){o(e.message)}}},le=()=>{d(``),t(null),p(null),h([]),_({}),x([]),y(null),A(null),O(``)};if(!n)return a?(0,K.jsx)(`p`,{role:`alert`,className:`m-0 rounded-[12px] bg-fail-soft px-3 py-2 text-sm text-fail [overflow-wrap:anywhere]`,children:a}):(0,K.jsx)(`p`,{className:`m-0 text-sm text-muted`,children:`Loading…`});let ue=n.intake.url&&(n.intake.key||n.intake.entra),de=k?.url&&/^https:\/\/dev\.azure\.com\/[^\s"<>]+$/.test(k.url)?k.url:null;return k?(0,K.jsxs)(`div`,{"aria-live":`polite`,className:`flex flex-col gap-3`,children:[(0,K.jsxs)(`p`,{className:`m-0 text-sm text-ink-2`,children:[k.existing?`This problem was already reported, so your report was added to bug `:`Thank you. The ForgeQE team has your report as bug `,de?(0,K.jsxs)(`a`,{href:de,target:`_blank`,rel:`noreferrer noopener`,className:`font-medium text-ink no-underline hover:underline`,children:[`#`,k.id]}):(0,K.jsxs)(`span`,{className:`font-medium`,children:[`#`,k.id]}),` `,`in `,n.target,`.`]}),(0,K.jsx)(`div`,{children:(0,K.jsxs)(R,{size:`sm`,"data-tip":`Report another problem`,onClick:le,children:[(0,K.jsx)(r,{"aria-hidden":`true`}),`New`]})})]}):(0,K.jsxs)(K.Fragment,{children:[a&&(0,K.jsx)(`p`,{role:`alert`,className:`m-0 mb-3 rounded-[12px] bg-fail-soft px-3 py-2 text-sm text-fail [overflow-wrap:anywhere]`,children:a}),(0,K.jsx)(W,{first:!0,help:n.sessions.length?`ForgeQE looked at your recent sessions and picked the one that went wrong. Pick another if that is not the one.`:`ForgeQE has no session on this computer to look at. Say what went wrong in your own words.`,children:`What went wrong`}),n.sessions.length>0&&(0,K.jsx)(`div`,{role:`radiogroup`,"aria-label":`Session to report`,children:n.sessions.map(e=>(0,K.jsxs)(`div`,{className:`flex min-h-[68px] flex-wrap items-center gap-x-4 gap-y-2 border-t border-line-soft py-3 first:border-t-0`,children:[(0,K.jsx)(Cs,{checked:n.session===e.name,onSelect:()=>re(e.name),label:`Report ${e.title}`}),(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-0.5`,children:[(0,K.jsx)(`span`,{className:`font-medium [overflow-wrap:anywhere]`,children:e.title}),(0,K.jsx)(`span`,{className:`text-sm text-muted`,children:[`forgeqe ${e.command}`,nS(e.startedAt),oS[e.status]].join(` · `)}),e.error&&(0,K.jsx)(`span`,{className:`text-sm text-fail [overflow-wrap:anywhere]`,children:e.error})]}),e.problem&&(0,K.jsx)(Ft,{tone:`fail`,children:`Went wrong`})]},e.name))}),n.findings&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(W,{help:`From the session's log, with secrets removed. The bug is drafted from this. Test cases that failed are your app's results, so they are only counted.`,children:`What ForgeQE found`}),(0,K.jsxs)(`dl`,{className:`m-0 flex flex-col gap-3 text-sm`,children:[(0,K.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,K.jsx)(`dt`,{className:`font-medium text-ink`,children:`What was asked or run`}),(0,K.jsx)(`dd`,{className:`m-0 font-mono text-[13px] text-ink-2 [overflow-wrap:anywhere]`,children:n.findings.request})]}),(0,K.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,K.jsx)(`dt`,{className:`font-medium text-ink`,children:`ForgeQE's errors`}),(0,K.jsx)(`dd`,{className:`m-0`,children:n.findings.errors.length?(0,K.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-1 p-0`,children:n.findings.errors.map(e=>(0,K.jsx)(`li`,{className:`rounded-[10px] bg-surface-muted px-3 py-2 font-mono text-[12px] leading-relaxed text-ink-2 [overflow-wrap:anywhere]`,children:e},e))}):(0,K.jsx)(`span`,{className:`text-ink-2`,children:`None logged. Say below what went wrong.`})})]}),n.findings.facts.length>0&&(0,K.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,K.jsx)(`dt`,{className:`font-medium text-ink`,children:`Also`}),(0,K.jsx)(`dd`,{className:`m-0`,children:(0,K.jsx)(`ul`,{className:`m-0 flex list-disc flex-col gap-0.5 pl-5 text-ink-2`,children:n.findings.facts.map(e=>(0,K.jsx)(`li`,{className:`[overflow-wrap:anywhere]`,children:e},e))})})]})]})]}),(0,K.jsx)(V,{label:n.findings?`Anything to add`:`Describe the problem`,help:n.findings?`Optional: what you were trying to do, or what you expected.`:void 0,htmlFor:`${l}-description`,stacked:!0,className:n.findings?void 0:`border-t-0 pt-0`,children:(0,K.jsx)(Zt,{id:`${l}-description`,rows:n.findings?3:5,value:u,maxLength:8e3,placeholder:n.findings?`For example: I expected the run to open the login page.`:`For example: I clicked Run on a test case in the web app and nothing happened for ten minutes.`,onChange:e=>d(e.target.value)})}),(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 pt-2`,children:[(0,K.jsxs)(R,{size:`sm`,variant:f?`outline`:`primary`,disabled:c||!te&&u.trim().length<10,"data-tip":f?`Draft again`:`Draft the bug`,onClick:()=>void ae({session:te,description:u}),children:[(0,K.jsx)(He,{"aria-hidden":`true`}),`Draft`]}),c&&N?.kind===`draft`&&(0,K.jsx)(Ft,{tone:`running`,orb:`thinking`,children:`Drafting`})]}),m.length>0&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(W,{help:`Answer what you can, then update the draft. You can leave a question empty.`,children:`Questions`}),m.map((e,t)=>(0,K.jsx)(V,{label:e,htmlFor:`${l}-q${t}`,stacked:!0,className:t===0?`border-t-0 pt-0`:void 0,children:(0,K.jsx)(Zt,{id:`${l}-q${t}`,rows:2,value:g[e]??``,maxLength:2e3,onChange:t=>_(n=>({...n,[e]:t.target.value}))})},e)),(0,K.jsx)(`div`,{className:`pt-2`,children:(0,K.jsxs)(R,{size:`sm`,disabled:c||!Object.values(g).some(e=>e.trim()),"data-tip":`Update the draft`,onClick:F,children:[(0,K.jsx)(ee,{"aria-hidden":`true`}),`Update`]})})]}),f&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(W,{help:`Check each field and change what is not right. This is what the ForgeQE team reads.`,children:`The bug`}),(0,K.jsx)(cS,{draft:f,areas:n.areas,severities:n.severities,onChange:p}),(0,K.jsx)(W,{help:`Secrets ForgeQE knows are replaced in every file. Open a log first if you are not sure what is in it: it can show addresses and test data of your project.`,children:`What is attached`}),(0,K.jsxs)(`ul`,{"aria-label":`Attachments`,className:`m-0 list-none p-0`,children:[P.map(e=>(0,K.jsx)(`li`,{className:`border-t border-line-soft`,children:(0,K.jsxs)(`label`,{className:`flex min-h-12 cursor-pointer items-center gap-3 py-2`,children:[(0,K.jsx)(ux,{checked:ne.has(e.id),onCheckedChange:t=>ie(e.id,t)}),(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,K.jsx)(`span`,{className:`font-mono text-[13px] [overflow-wrap:anywhere]`,children:e.name}),(0,K.jsxs)(`span`,{className:`text-sm text-muted [overflow-wrap:anywhere]`,children:[e.note,` · `,lS(e.bytes)]})]})]})},e.id)),b.map((e,t)=>(0,K.jsxs)(`li`,{className:`flex min-h-12 items-center gap-3 border-t border-line-soft py-2`,children:[(0,K.jsx)(`img`,{src:e.url,alt:`Screenshot ${t+1}`,className:`h-10 w-16 rounded-[8px] border border-line-soft bg-surface-muted object-cover`}),(0,K.jsx)(`span`,{className:`flex-1 font-mono text-[13px] [overflow-wrap:anywhere]`,children:e.name}),(0,K.jsx)(R,{variant:`icon`,size:`icon-sm`,"aria-label":`Remove ${e.name}`,"data-tip":`Remove ${e.name}`,onClick:()=>x(t=>t.filter(t=>t!==e)),children:(0,K.jsx)(Je,{"aria-hidden":`true`})})]},e.url))]}),(0,K.jsxs)(`div`,{className:`pt-2`,children:[(0,K.jsx)(`input`,{ref:j,type:`file`,accept:`image/png,image/jpeg`,multiple:!0,hidden:!0,onChange:e=>void I(e.target.files).then(()=>e.target.value=``)}),(0,K.jsxs)(R,{size:`sm`,disabled:b.length>=aS,"data-tip":`Add a screenshot`,onClick:()=>j.current?.click(),children:[(0,K.jsx)(r,{"aria-hidden":`true`}),`Add`]})]}),(0,K.jsx)(W,{children:`Send`}),(0,K.jsx)(V,{label:`Your contact`,help:`Optional: an email or a Teams name, so the team can ask you about it.`,htmlFor:`${l}-contact`,className:`border-t-0 pt-0`,children:(0,K.jsx)(z,{id:`${l}-contact`,value:C,maxLength:200,onChange:e=>w(e.target.value)})}),n.intake.url?!ue&&(0,K.jsx)(V,{label:`Intake key`,help:`Sign in to your organization with the Azure CLI (az login), or save the key the ForgeQE team gave you. It is kept in your credential store when you save.`,htmlFor:`${l}-key`,children:(0,K.jsx)(Mn,{id:`${l}-key`,name:n.keyEnv,field:`Intake key`})}):(0,K.jsx)(V,{label:`Not set up yet`,help:`ForgeQE's defect intake is not set up on this computer. Copy the report and send it to the ForgeQE team.`}),(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 pt-2`,children:[(0,K.jsxs)(R,{size:`sm`,variant:`primary`,disabled:c||!ue||!f.title.trim()||!f.summary.trim(),"data-tip":`Send to the ForgeQE team`,onClick:()=>E(!0),children:[(0,K.jsx)(ce,{"aria-hidden":`true`}),`Send`]}),(0,K.jsxs)(R,{size:`sm`,disabled:!f.title.trim()||!f.summary.trim(),"data-tip":`Copy as text`,onClick:()=>void se(),children:[(0,K.jsx)(S,{"aria-hidden":`true`}),`Copy`]}),c&&N?.kind===`send`&&(0,K.jsx)(Ft,{tone:`running`,children:`Sending`})]}),(0,K.jsx)(`div`,{"aria-live":`polite`,children:D&&(0,K.jsx)(`p`,{className:`m-0 mt-2 text-sm text-ink-2`,children:D})}),T&&(0,K.jsxs)(`div`,{role:`alertdialog`,"aria-label":`Send this bug?`,className:`mt-3 flex flex-col gap-2 rounded-[12px] border border-warn bg-warn-soft p-3`,children:[(0,K.jsx)(`span`,{className:`text-sm font-medium`,children:`Send this bug to the ForgeQE team?`}),(0,K.jsxs)(`span`,{className:`text-[13px] text-ink-2`,children:[`It is filed in `,n.target,` with the fields above`,ne.size+b.length?`, and ${ne.size+b.length} attached file${ne.size+b.length===1?``:`s`}: ${[...P.filter(e=>ne.has(e.id)).map(e=>e.name),...b.map(e=>e.name)].join(`, `)}`:`, with nothing attached`,`.`]}),(0,K.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,K.jsxs)(R,{size:`sm`,variant:`primary`,onClick:()=>void oe(),children:[(0,K.jsx)(ce,{"aria-hidden":`true`}),`Send`]}),(0,K.jsxs)(R,{size:`sm`,"data-tip":`Not now`,onClick:()=>E(!1),children:[(0,K.jsx)(i,{"aria-hidden":`true`}),`Later`]})]})]})]})]})}function dS({config:e}){let{saved:t,preview:n,reload:r}=Hn(),i=H(xr(e.value,[`agent`,`names`])),a=or(i),o=xr(e.value,[`agent`,`app_name`]),s=typeof o==`string`?o:``,c=In(s),l=JSON.stringify([a,c]);return(0,G.useEffect)(()=>n({...t,agentNames:a,appName:c}),[l,t]),(0,G.useEffect)(()=>()=>{n(null),r()},[n,r]),(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(W,{icon:Ze,help:(0,K.jsx)(`span`,{"data-keep-name":!0,children:`What the web app calls ForgeQE itself: in every page, message and tab title, and in the reports and documents it writes. Commands, files and settings keep forgeqe. Empty keeps ForgeQE.`}),children:(0,K.jsx)(`span`,{"data-keep-name":!0,children:`ForgeQE's name`})}),(0,K.jsx)(V,{label:(0,K.jsx)(`span`,{"data-keep-name":!0,children:`App name`}),help:(0,K.jsx)(`span`,{"data-keep-name":!0,children:`Instead of ForgeQE, for everyone who opens this project.`}),htmlFor:`agent-app-name`,yamlKey:`agent.app_name`,children:(0,K.jsx)(z,{id:`agent-app-name`,"data-keep-name":!0,value:s,maxLength:40,placeholder:`ForgeQE`,onChange:t=>e.set(U(e.value,[`agent`,`app_name`],t.target.value.replace(/[\u0000-\u001f\u007f-\u009f\u2028\u2029]/g,``)||void 0)),className:`w-full`})}),(0,K.jsx)(W,{icon:dt,help:`Call each agent what your team calls it: the name shows in chats, on the Agents page and in the terminal, for everyone who opens this project. What it does and may do stay the same. Empty keeps ForgeQE's name.`,children:`Agent names`}),Jn.map(t=>{let n=bn(t).name,r=`agent-name-${t}`,a=typeof i[t]==`string`?i[t]:``;return(0,K.jsx)(V,{label:(0,K.jsxs)(`span`,{className:`flex items-center gap-2.5`,children:[(0,K.jsx)(Zn,{agent:t,px:22,decorative:!0}),n]}),help:t,htmlFor:r,yamlKey:`agent.names.${t}`,children:(0,K.jsx)(z,{id:r,value:a,maxLength:40,placeholder:n,onChange:n=>e.set(U(e.value,[`agent`,`names`,t],n.target.value.replace(/[\u0000-\u001f\u007f-\u009f\u2028\u2029]/g,``)||void 0)),className:`w-full`})},t)})]})}var fS=524288,pS=[`image/png`,`image/jpeg`,`image/webp`,`image/svg+xml`];async function mS(e){let t=new Uint8Array(await e.arrayBuffer()),n=``;for(let e=0;e<t.length;e+=32768)n+=String.fromCharCode(...t.subarray(e,e+32768));return btoa(n)}function hS({children:e,className:t}){return(0,K.jsx)(`div`,{className:L(`flex w-full flex-wrap items-center gap-2 sm:justify-end`,t),children:e})}function gS({colour:e,label:t}){return(0,K.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-sm text-ink-2`,children:[(0,K.jsx)(`span`,{"aria-hidden":`true`,className:`size-4 flex-none rounded-[4px] border border-line`,style:{background:e}}),t&&(0,K.jsx)(`span`,{className:`text-muted`,children:t}),(0,K.jsx)(`code`,{className:`font-mono text-[12.5px]`,children:e})]})}function _S({onUse:e}){let t=(0,G.useId)(),[n,r]=(0,G.useState)(``),[i,a]=(0,G.useState)(!1),[o,c]=(0,G.useState)(``),[l,u]=(0,G.useState)(null),[d,f]=(0,G.useState)(!1);return(0,K.jsx)(V,{label:`From a website`,help:`Suggests its sidebar, button and page colours. Nothing changes until you use them.`,htmlFor:t,children:(0,K.jsxs)(hS,{children:[(0,K.jsxs)(`form`,{className:`flex w-full items-center gap-2`,onSubmit:async e=>{e.preventDefault(),a(!0),c(``),u(null),f(!1);try{u(await xt.fromUrl(n.trim()))}catch(e){c(e.message)}finally{a(!1)}},children:[(0,K.jsx)(z,{id:t,type:`url`,value:n,placeholder:`https://www.example.com`,spellCheck:!1,onChange:e=>r(e.target.value),className:`min-w-0 flex-1`}),(0,K.jsxs)(R,{size:`sm`,type:`submit`,disabled:!n.trim()||i,"data-tip":`Read the site's colours`,children:[(0,K.jsx)(ot,{"aria-hidden":`true`}),i?`Importing…`:`Import`]})]}),o&&(0,K.jsx)(`p`,{role:`alert`,className:`m-0 w-full text-[13px] text-fail sm:text-right`,children:o}),l&&(0,K.jsxs)(`div`,{role:`status`,className:`flex w-full flex-col gap-2 sm:items-end`,children:[(0,K.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[`From `,new URL(l.url).host]}),(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-4 gap-y-2 sm:justify-end`,children:[l.primary&&(0,K.jsx)(gS,{colour:l.primary,label:`Sidebar`}),l.gradient&&(0,K.jsx)(gS,{colour:l.gradient,label:`Gradient`}),l.secondary&&(0,K.jsx)(gS,{colour:l.secondary,label:`Buttons`}),l.background&&(0,K.jsx)(gS,{colour:l.background,label:`Page`})]}),(0,K.jsxs)(R,{size:`sm`,variant:`primary`,onClick:()=>{e(l),f(!0)},"data-tip":`Use these colours`,children:[(0,K.jsx)(s,{"aria-hidden":`true`}),d?`Used`:`Use`]}),l.palette.length>0&&(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1 sm:justify-end`,children:[(0,K.jsx)(`span`,{className:`text-[12.5px] text-muted`,children:`Others:`}),l.palette.map(e=>(0,K.jsx)(gS,{colour:e},e))]})]})]})})}function vS({label:e,help:t,yamlKey:n,value:r,fallback:i,check:a,onChange:o}){let s=(0,G.useId)(),[c,l]=(0,G.useState)(r);(0,G.useEffect)(()=>l(r),[r]);let u=Rn(c),d=c.trim()!==``&&!u?`Write a colour as #rrggbb, for example #0b1f3a.`:u&&a?a(u):``;return(0,K.jsx)(V,{label:e,help:d?(0,K.jsx)(`span`,{className:`text-fail`,children:d}):t,htmlFor:s,yamlKey:n,children:(0,K.jsxs)(hS,{className:`flex-nowrap`,children:[(0,K.jsx)(`input`,{type:`color`,"aria-label":`${e}: pick a colour`,value:Rn(r)||i||`#ffffff`,onChange:e=>o(a?.(e.target.value)?``:e.target.value),className:`size-10 flex-none cursor-pointer rounded-[8px] border border-line bg-bg p-1`}),(0,K.jsx)(z,{id:s,value:c,spellCheck:!1,placeholder:i?`${i} (default)`:`None`,"aria-invalid":!!d,onChange:e=>{l(e.target.value);let t=Rn(e.target.value);(t&&!a?.(t)||!e.target.value.trim())&&o(t||``)},className:`min-w-0 flex-1 font-mono`})]})})}function yS({which:e,label:t,yamlKey:n,value:r,url:i,savedError:a,onChange:o}){let[s,c]=(0,G.useState)(``),[l,u]=(0,G.useState)(!1),d=(0,G.useRef)(null),f=e===`mark`?`small logo`:`logo`;return(0,K.jsx)(V,{label:t,help:s||r&&!i&&a?(0,K.jsx)(`span`,{className:`text-fail`,children:s||a}):e===`mark`?`For the narrow sidebar. Square or round works best.`:`In the sidebar, reports and documents. PNG, JPEG or WebP (a large one is made smaller), or SVG up to 512 KB; an empty margin round it is cut off.`,yamlKey:n,children:(0,K.jsxs)(hS,{children:[i&&(0,K.jsx)(`span`,{className:L(`theme-side flex h-12 items-center justify-center rounded-[8px] border border-line`,e===`mark`?`w-12`:`min-w-16 px-3`),children:(0,K.jsx)(`img`,{src:i,alt:`The ${f}`,className:L(`block object-contain`,e===`mark`?`max-h-9 max-w-9`:`max-h-8 max-w-[140px]`)})}),(0,K.jsx)(`input`,{ref:d,type:`file`,accept:`.png,.jpg,.jpeg,.webp,.svg`,className:`sr-only`,tabIndex:-1,"aria-hidden":`true`,onChange:async t=>{let n=t.target.files?.[0];if(t.target.value=``,n){if(c(``),!pS.includes(n.type))return c(`A ${f} is a PNG, JPEG, WebP or SVG image.`);if(n.type===`image/svg+xml`&&n.size>fS)return c(`${n.name} is over 512 KB.`);if(n.size>20971520)return c(`${n.name} is over ${Bn/1024/1024} MB: save a smaller copy and upload that.`);u(!0);try{let t=await er(n,fS),r=await xt.uploadLogo(await mS(t),t.type,e);o(r.file,(e===`mark`?r.view.logoMark:r.view.logo)||``)}catch(e){c(e.message)}finally{u(!1)}}}}),(0,K.jsxs)(R,{size:`sm`,disabled:l,"data-tip":i?`Change the ${f}`:`Upload a ${f}`,onClick:()=>d.current?.click(),children:[i?(0,K.jsx)(I,{"aria-hidden":`true`}):(0,K.jsx)(ot,{"aria-hidden":`true`}),l?`Uploading…`:i?`Change`:`Upload`]}),r&&(0,K.jsx)(R,{variant:`icon`,size:`icon-sm`,"aria-label":`Remove the ${f}`,"data-tip":`Remove the ${f}`,onClick:()=>o(``),children:(0,K.jsx)(Je,{"aria-hidden":`true`})})]})})}var bS={auto:`Auto (recommended)`,plain:`Plain`,tiles:`On tiles`,outline:`Outlined`,mono:`One colour`};function xS(e){for(let{item:t}of Un)if(t.icon===e||_r[t.id]===e)return t.label;for(let t of On)if(_n(t.agent).icon===e)return _n(t.agent).name;return e}function SS({draft:e,value:t,onChange:n}){let{mode:r}=Hn(),i=un(e,void 0,r),a=vr(e)!==`3d`,o=!a&&t!==`mono`&&t!==`outline`&&i.lowest<2,s=o?`${i.faint.length||`Some`} ${i.faint.length===1?`icon is`:`icons are`} hard to see on this colour${i.faint.length?` (${i.faint.slice(0,2).map(e=>xS(e.icon)).join(`, `)}${i.faint.length>2?`, …`:``})`:``}. Try Auto or On tiles.`:!a&&t===`auto`&&i.style!==`plain`?`Auto put them on tiles: this colour hides some of them.`:``;return(0,K.jsx)(V,{label:`Sidebar icons`,help:a?`For the 3D icons. Flat icons take the Icon colour above.`:`Auto puts them on tiles when the sidebar's colour hides any.`,htmlFor:`theme-icons`,yamlKey:`theme.icon_style`,children:(0,K.jsxs)(hS,{children:[(0,K.jsx)(Yt,{id:`theme-icons`,value:t,disabled:a,onChange:e=>n(e.target.value),className:`w-full`,children:Gn.map(e=>(0,K.jsx)(`option`,{value:e,children:bS[e]},e))}),!a&&(0,K.jsx)(CS,{}),s&&(0,K.jsx)(`span`,{className:L(`w-full text-[13px] sm:text-right`,o?`text-warn`:`text-muted`),children:s})]})})}function CS(){let e=[`record`,`data`,`jobs`,`guardrails`].map(e=>_r[e]).concat([`orchestrator`,`healer`,`browser-agent`]);return(0,K.jsx)(`span`,{"aria-label":`How the sidebar's icons look`,className:`theme-side flex w-full items-center justify-between rounded-[10px] border border-line-soft px-3 py-2`,children:e.map(e=>(0,K.jsx)(Pt,{name:e,px:18},e))})}var wS={phosphor:`Phosphor Duotone (default)`,solar:`Solar Bold Duotone`,lucide:`Lucide (buttons and menus too)`,"3d":`3D (ForgeQE's pixel icons)`};function TS({value:e,onChange:t}){return(0,K.jsx)(V,{label:`Icons`,help:`Flat icons are black, or the Icon colour below, so they show on any sidebar.`,htmlFor:`theme-icon-set`,yamlKey:`theme.icon_set`,children:(0,K.jsxs)(hS,{children:[(0,K.jsx)(Yt,{id:`theme-icon-set`,value:e,onChange:e=>t(e.target.value),className:`w-full`,children:Kn.map(e=>(0,K.jsx)(`option`,{value:e,children:wS[e]},e))}),(0,K.jsx)(CS,{})]})})}var ES={text:`Black, white in dark mode (default)`,accent:`The buttons' colour`,custom:`A colour of their own`};function DS({draft:e,value:t,onChange:n}){let{mode:r}=Hn(),i=br({iconColour:t}),a=vr(e)!==`3d`,[o,s]=(0,G.useState)(i===`custom`?t:``);(0,G.useEffect)(()=>s(i===`custom`?t:``),[t,i]);let c=i===`custom`&&o.trim()!==``&&!Rn(o)?`Write a colour as #rrggbb, for example #7c3aed.`:``,l=a?kn(e,r).moved:[],u=l.length?`Made ${r===`dark`?`lighter`:`darker`} on the ${l.join(` and the `)} so the icons show.`:``;return(0,K.jsx)(V,{label:`Icon colour`,help:c?(0,K.jsx)(`span`,{className:`text-fail`,children:c}):a?`For the flat icons of the pages and agents: their lines take the colour, and their second tone its palest shade.`:`For the flat icons. The 3D icons keep their own colours.`,htmlFor:`theme-icon-colour`,yamlKey:`theme.icon_colour`,children:(0,K.jsxs)(hS,{children:[(0,K.jsx)(Yt,{id:`theme-icon-colour`,value:i,disabled:!a,onChange:t=>{let r=t.target.value;n(r===`accent`?`accent`:r===`custom`?Rn(e.secondary)||nr:``)},className:`w-full`,children:Object.keys(ES).map(e=>(0,K.jsx)(`option`,{value:e,children:ES[e]},e))}),a&&i===`custom`&&(0,K.jsxs)(`span`,{className:`flex w-full flex-nowrap items-center gap-2`,children:[(0,K.jsx)(`input`,{type:`color`,"aria-label":`Icon colour: pick a colour`,value:Rn(t)||nr,onChange:e=>n(e.target.value),className:`size-10 flex-none cursor-pointer rounded-[8px] border border-line bg-bg p-1`}),(0,K.jsx)(z,{id:`theme-icon-colour-hex`,"aria-label":`Icon colour`,value:o,spellCheck:!1,placeholder:`#7c3aed`,"aria-invalid":!!c,onChange:e=>{s(e.target.value);let t=Rn(e.target.value);(t||!e.target.value.trim())&&n(t||``)},className:`min-w-0 flex-1 font-mono`})]}),u&&(0,K.jsx)(`span`,{className:`w-full text-[13px] text-warn sm:text-right`,children:u})]})})}function OS(){let{choice:e,setChoice:t}=Hn();return(0,K.jsx)(V,{label:`Colour mode`,help:`Only for you, in this browser.`,children:(0,K.jsx)(hS,{children:(0,K.jsx)(`div`,{role:`radiogroup`,"aria-label":`Colour mode`,className:`inline-flex flex-wrap gap-1 rounded-[10px] bg-surface-strong p-1`,children:[{id:`system`,label:`System`},{id:`light`,label:`Light`},{id:`dark`,label:`Dark`}].map(n=>(0,K.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":e===n.id,onClick:()=>t(n.id),className:L(`min-h-8 cursor-pointer rounded-[8px] border-0 px-3 text-sm`,e===n.id?`bg-bg font-medium text-ink shadow-[0_1px_2px_rgba(0,0,0,.15)]`:`bg-transparent text-ink-2 hover:text-ink`),children:n.label},n.id))})})})}var kS=[`primary`,`gradient`,`secondary`,`background`,`icon_style`,`icon_set`,`icon_colour`];function AS({theme:e,value:t,onReset:n}){let{choice:r,setChoice:i}=Hn(),a=kS.some(t=>e[t]!==void 0)||r!==`system`;return(0,K.jsxs)(R,{size:`sm`,disabled:!a,"data-tip":`Reset colours: ForgeQE's own colours and icons, and System mode. The logo and name stay.`,onClick:()=>{let e=t;for(let t of kS)e=U(e,[`theme`,t],void 0);n(e),i(`system`)},children:[(0,K.jsx)(p,{"aria-hidden":`true`}),`Reset`]})}var jS=e=>An(e)<.75?`Choose a light colour: dark mode gives the dark page.`:``;function MS({config:e}){let{saved:t,preview:r,reload:i}=Hn(),a=H(e.value.theme),o=e=>typeof a[e]==`string`?a[e]:``,s=(t,n)=>e.set(U(e.value,[`theme`,t],n||void 0)),[c,l]=(0,G.useState)(null),[u,d]=(0,G.useState)(null),[f,m]=(0,G.useState)(``),[h,g]=(0,G.useState)(!1),_=(0,G.useRef)(null),v=c&&c.file===o(`logo`)?c.url:t.logoFile===o(`logo`)?t.logo:void 0,y=u&&u.file===o(`logo_mark`)?u.url:t.logoMarkFile===o(`logo_mark`)?t.logoMark:void 0,b=[`plain`,`rounded`,`circle`,`tile`].find(e=>e===o(`logo_frame`)),x=o(`logo_size`)===`large`||o(`logo_size`)===`standard`?o(`logo_size`):void 0,S=Gn.find(e=>e===o(`icon_style`)),C=Kn.find(e=>e===o(`icon_set`)),w=or(xr(e.value,[`agent`,`names`])),T={...Object.keys(w).length?{agentNames:w}:{},logoSize:x,name:o(`name`)||void 0,primary:Rn(o(`primary`)),gradient:Rn(o(`gradient`)),secondary:Rn(o(`secondary`)),background:Rn(o(`background`)),logo:o(`logo`)?v:void 0,logoMark:o(`logo_mark`)?y:void 0,logoFrame:b,iconStyle:S,iconSet:C,iconColour:o(`icon_colour`)===`accent`?`accent`:Rn(o(`icon_colour`))},E=JSON.stringify(T);(0,G.useEffect)(()=>r(T),[E]),(0,G.useEffect)(()=>()=>{r(null),i()},[r,i]);let ee=mn(T).filter(e=>!e.ok);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(W,{icon:mt,first:!0,children:`Logo and name`}),(0,K.jsx)(yS,{which:`logo`,label:`Logo`,yamlKey:`theme.logo`,value:o(`logo`),url:v,savedError:t.logoError,onChange:(e,t)=>(l(t?{file:e,url:t}:null),s(`logo`,e))}),(0,K.jsx)(yS,{which:`mark`,label:`Small logo`,yamlKey:`theme.logo_mark`,value:o(`logo_mark`),url:y,savedError:t.logoMarkError,onChange:(e,t)=>(d(t?{file:e,url:t}:null),s(`logo_mark`,e))}),(0,K.jsx)(V,{label:`Logo frame`,help:`A circle suits a square logo; a white tile, a dark logo on a dark sidebar.`,htmlFor:`theme-frame`,yamlKey:`theme.logo_frame`,children:(0,K.jsx)(hS,{children:(0,K.jsxs)(Yt,{id:`theme-frame`,value:b||`plain`,onChange:e=>s(`logo_frame`,e.target.value===`plain`?``:e.target.value),className:`w-full`,children:[(0,K.jsx)(`option`,{value:`plain`,children:`As it is`}),(0,K.jsx)(`option`,{value:`rounded`,children:`Rounded corners`}),(0,K.jsx)(`option`,{value:`circle`,children:`Circle`}),(0,K.jsx)(`option`,{value:`tile`,children:`On a white tile`})]})})}),(0,K.jsx)(V,{label:`Logo size`,help:`Fit automatically sizes the logo from its shape, so its words can be read. Large spreads a wide logo across the top of the sidebar.`,htmlFor:`theme-size`,yamlKey:`theme.logo_size`,children:(0,K.jsx)(hS,{children:(0,K.jsxs)(Yt,{id:`theme-size`,value:x||`auto`,onChange:e=>s(`logo_size`,e.target.value===`large`||e.target.value===`standard`?e.target.value:``),className:`w-full`,children:[(0,K.jsx)(`option`,{value:`auto`,children:`Fit automatically`}),(0,K.jsx)(`option`,{value:`standard`,children:`Standard`}),(0,K.jsx)(`option`,{value:`large`,children:`Large`})]})})}),(0,K.jsx)(V,{label:`Name`,help:`Beside a square logo, or instead of one. Screen readers say it.`,htmlFor:`theme-name`,yamlKey:`theme.name`,children:(0,K.jsx)(hS,{children:(0,K.jsx)(z,{id:`theme-name`,value:o(`name`),maxLength:40,placeholder:`ForgeQE`,onChange:e=>s(`name`,e.target.value),className:`w-full`})})}),(0,K.jsx)(V,{label:`Preview`,help:h?(0,K.jsx)(`span`,{className:`text-warn`,children:`The logo is close to the sidebar's colour, so it sits on a plate. A different sidebar colour sets it off without one.`}):`The sidebar's top, wide and narrow.`,children:(0,K.jsxs)(hS,{className:`flex-nowrap`,children:[(0,K.jsx)(`span`,{"aria-label":`How the sidebar's top looks`,className:`theme-side flex min-h-14 min-w-0 flex-1 items-center rounded-[10px] border border-line-soft px-4 text-base font-semibold`,children:(0,K.jsx)(ar,{theme:T,onPlate:g})}),(0,K.jsx)(`span`,{"aria-label":`How the narrow sidebar's top looks`,className:`theme-side flex size-14 flex-none items-center justify-center rounded-[10px] border border-line-soft`,children:(0,K.jsx)(ur,{theme:T})})]})}),(0,K.jsx)(W,{icon:ut,help:`Leave a colour empty to keep ForgeQE's own.`,children:`Colours`}),(0,K.jsx)(OS,{}),(0,K.jsx)(vS,{label:`Sidebar`,help:`Light mode. Its text turns white on a dark colour.`,yamlKey:`theme.primary`,value:o(`primary`),fallback:sr,onChange:e=>s(`primary`,e)}),(0,K.jsx)(vS,{label:`Sidebar gradient`,help:`The sidebar fades into it, top to bottom.`,yamlKey:`theme.gradient`,value:o(`gradient`),onChange:e=>s(`gradient`,e)}),(0,K.jsx)(vS,{label:`Buttons and links`,help:`Also selected tabs and filters and the sidebar entry you are on, with shades made from it. Left empty, it is the icon colour when that is a colour of its own, so the app has one brand colour.`,yamlKey:`theme.secondary`,value:o(`secondary`),fallback:gr({...T,secondary:void 0})||nr,onChange:e=>s(`secondary`,e)}),(0,K.jsx)(vS,{label:`Page background`,help:`Light mode, a light colour. Dark mode keeps its dark page.`,yamlKey:`theme.background`,value:o(`background`),fallback:`#ffffff`,check:jS,onChange:e=>s(`background`,e)}),(0,K.jsx)(TS,{value:C||`phosphor`,onChange:e=>s(`icon_set`,e===`phosphor`?``:e)}),(0,K.jsx)(DS,{draft:T,value:o(`icon_colour`),onChange:e=>s(`icon_colour`,e)}),(0,K.jsx)(SS,{draft:T,value:S||`auto`,onChange:e=>s(`icon_style`,e===`auto`?``:e)}),(0,K.jsx)(V,{label:`Preview`,help:ee.length?(0,K.jsx)(`span`,{className:`flex flex-col gap-0.5 text-warn`,children:ee.map(e=>(0,K.jsxs)(`span`,{className:`flex items-start gap-1.5`,children:[(0,K.jsx)(n,{size:14,"aria-hidden":`true`,className:`mt-0.5 flex-none`}),e.label,` is hard to read (`,e.ratio,`:1, 4.5:1 needed).`]},e.label))}):`Every text reads on these colours.`,children:(0,K.jsxs)(hS,{children:[(0,K.jsxs)(`span`,{className:`flex w-full items-center justify-end gap-4 rounded-[10px] border border-line-soft bg-bg p-3`,children:[(0,K.jsx)(`a`,{href:`#appearance-preview`,onClick:e=>e.preventDefault(),className:`text-sm`,children:`A link`}),(0,K.jsx)(R,{variant:`primary`,size:`sm`,tabIndex:-1,"aria-hidden":`true`,className:`pointer-events-none`,children:`A button`})]}),(0,K.jsx)(AS,{theme:a,onReset:t=>e.set(t),value:e.value})]})}),(0,K.jsx)(W,{icon:Pe,children:`Import colours`}),(0,K.jsx)(_S,{onUse:t=>{let n=e.value;for(let e of[`primary`,`gradient`,`secondary`,`background`])n=U(n,[`theme`,e],t[e]||void 0);e.set(n)}}),(0,K.jsx)(V,{label:`From a DESIGN.md`,help:f?(0,K.jsx)(`span`,{role:`status`,className:`text-ink-2`,children:f}):`Reads the lines that name primary, secondary, gradient and background.`,children:(0,K.jsxs)(hS,{children:[(0,K.jsx)(`input`,{ref:_,type:`file`,accept:`.md,.markdown,.txt,.css`,className:`sr-only`,tabIndex:-1,"aria-hidden":`true`,onChange:async t=>{let n=t.target.files?.[0];if(t.target.value=``,!n)return;if(n.size>262144)return m(`${n.name} is over 256 KB.`);let r=Sr(await n.text()),i=Object.entries(r).map(([e,t])=>`${e} ${t}`);if(!i.length)return m(`No primary, secondary, gradient or background colour in ${n.name}.`);let a=e.value;for(let[e,t]of Object.entries(r))a=U(a,[`theme`,e],t);e.set(a),m(`From ${n.name}: ${i.join(`, `)}.`)}}),(0,K.jsxs)(R,{size:`sm`,"data-tip":`Choose a DESIGN.md`,onClick:()=>_.current?.click(),children:[(0,K.jsx)(ke,{"aria-hidden":`true`}),`Choose`]})]})}),(0,K.jsx)(V,{label:`Reset all`,help:`The logo, name and colours back to ForgeQE's own.`,children:(0,K.jsx)(hS,{children:(0,K.jsxs)(R,{size:`sm`,disabled:!Object.keys(a).length,"data-tip":`The logo, name and colours back to ForgeQE's own`,onClick:()=>e.set(U(e.value,[`theme`],void 0)),children:[(0,K.jsx)(p,{"aria-hidden":`true`}),`Reset all`]})})})]})}var NS=[{id:`github`,name:`GitHub`,note:`github.com, or GitHub Enterprise at your own address.`,logo:Pa.github,tokenEnv:`GITHUB_TOKEN`,cloud:!0,cli:{system:`github`,label:`GitHub`}},{id:`azure-devops`,name:`Azure DevOps`,note:`An organization on dev.azure.com, or Azure DevOps Server.`,logo:Pa.azure_devops,tokenEnv:`ADO_PAT`,cloud:!0,org:`Organization`,cli:{system:`azure_devops`,label:`Azure DevOps`}},{id:`gitlab`,name:`GitLab`,note:`gitlab.com, or GitLab at your own address.`,logo:Pa.gitlab,tokenEnv:`GITLAB_TOKEN`,cloud:!0},{id:`bitbucket-cloud`,name:`Bitbucket Cloud`,note:`bitbucket.org: a workspace's repositories, or every one you can read.`,logo:Pa.bitbucket,tokenEnv:`BITBUCKET_TOKEN`,cloud:!0,org:`Workspace`},{id:`bitbucket-server`,name:`Bitbucket Data Center`,note:`Bitbucket Server or Data Center at your own address.`,logo:Pa.bitbucket,tokenEnv:`BITBUCKET_TOKEN`,cloud:!1}],PS=e=>NS.find(t=>t.id===e),FS=/^[A-Za-z0-9][A-Za-z0-9_-]{0,62}$/;function IS(e,t){let n=!t.url||LS(e?.id,String(t.url)).cloud;return e?.id===`github`?n?`cli`:`gh-host`:e?.id===`azure-devops`&&n?`cli`:`git`}function LS(e,t){let n;try{n=new URL(t.trim())}catch{return{cloud:!1}}let r=n.hostname.toLowerCase(),i=Lt(n.pathname).split(`/`).filter(Boolean)[0],a=i&&/^[A-Za-z0-9][A-Za-z0-9 ._-]{0,99}$/.test(i)?i:void 0;if(e===`azure-devops`){if(r===`dev.azure.com`)return{cloud:!0,org:a};let e=/^([a-z0-9][a-z0-9-]{0,62})\.visualstudio\.com$/.exec(r);return e?{cloud:!0,org:e[1]}:{cloud:!1}}return e===`bitbucket-cloud`?r===`bitbucket.org`?{cloud:!0,org:a}:{cloud:!1}:e===`github`?{cloud:r===`github.com`}:e===`gitlab`?{cloud:r===`gitlab.com`}:{cloud:!1}}function RS({logo:e,icon:t,title:n,meta:r,state:i,actions:a}){return(0,K.jsxs)(`div`,{className:`flex min-h-[68px] flex-wrap items-center gap-x-4 gap-y-2 border-t border-line-soft py-3`,children:[(0,K.jsx)(Tn,{icon:t,logo:e}),(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_220px] flex-col gap-0.5`,children:[(0,K.jsx)(`span`,{className:`font-medium [overflow-wrap:anywhere]`,children:n}),(0,K.jsx)(`span`,{className:`text-sm text-muted [overflow-wrap:anywhere]`,children:r}),i]}),(0,K.jsx)(`span`,{className:`flex gap-2`,children:a})]})}function zS({ok:e,message:t}){return(0,K.jsxs)(`p`,{role:e?`status`:`alert`,className:L(`mt-2 mb-1 flex items-start gap-2 rounded-[12px] px-3 py-2 text-sm`,e?`bg-pass-soft text-pass`:`bg-fail-soft text-fail`),children:[e?(0,K.jsx)(Ne,{size:18,"aria-hidden":`true`,className:`mt-0.5 flex-none`}):(0,K.jsx)(w,{size:18,"aria-hidden":`true`,className:`mt-0.5 flex-none`}),(0,K.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:t})]})}function BS({title:e,help:t}){return(0,K.jsxs)(`div`,{className:`mt-8 mb-2 flex flex-col gap-1`,children:[(0,K.jsx)(`h4`,{className:`m-0 text-[14px] font-semibold text-ink`,children:e}),t&&(0,K.jsx)(`p`,{className:`m-0 max-w-[64ch] text-[13px] leading-relaxed text-ink-2`,children:t})]})}var VS=({children:e})=>(0,K.jsx)(`p`,{role:`status`,className:`m-0 border-t border-line-soft py-5 text-sm text-muted`,children:e}),HS=e=>Object.fromEntries(Object.entries(e).filter(e=>typeof e[1]==`string`));function US(e,t,n){let r=H(xr(e,[`product`,`repos`])),i=e;for(let[e,a]of Object.entries(r))H(a).account===t&&(i=U(i,[`product`,`repos`,e,`account`],n));return i}function WS({edit:e}){let t=e.value,n=H(xr(t,[`product`,`accounts`])),i=H(xr(t,[`product`,`repos`])),[a,o]=(0,G.useState)(null),[s,l]=(0,G.useState)(null),[u,d]=(0,G.useState)({}),f=(0,G.useCallback)(()=>{Et.get().then(e=>d(e.saved),()=>{})},[]);(0,G.useEffect)(f,[f]);let p=pr(),m=e=>Object.values(i).filter(t=>H(t).account===e).length,h=(e,t)=>{let n=PS(t.host),r=m(e),i=`${r} ${r===1?`repository`:`repositories`} connected`;if(t.auth===`token`)return on(p,String(t.token_env||``))?(0,K.jsx)(`span`,{className:`text-[13px] text-pass`,children:`Connected with a token, ${i}`}):(0,K.jsx)(`span`,{className:`text-[13px] text-warn`,children:`Needs its token: Edit to add it`});let a=IS(n,t),o=u[n.cli.system];return a===`cli`?o&&(o.via!==`token`||o.browser)&&Rc(o,n.name)?(0,K.jsx)(`span`,{className:`text-[13px] text-pass`,children:`Signed in, ${i}`}):(0,K.jsx)(`span`,{className:`text-[13px] text-warn`,children:`Needs a sign-in: Edit to sign in`}):(0,K.jsx)(`span`,{className:`text-[13px] text-muted`,children:`${a===`gh-host`?`The GitHub CLI's`:`Git Credential Manager's`} sign-in, ${i}`})};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(W,{first:!0,help:`Sign in to where your code is, then pick the repositories ForgeQE reads into the product graph.`,children:`1. Repositories`}),(0,K.jsxs)(`div`,{className:`mb-4 flex flex-wrap items-center justify-between gap-3`,children:[(0,K.jsx)(`p`,{className:`m-0 max-w-[60ch] text-sm text-muted`,children:Object.keys(n).length?`Your accounts. Pick more repositories from one with Repositories.`:`No account yet: add GitHub, Azure DevOps, GitLab or Bitbucket.`}),(0,K.jsxs)(R,{size:`sm`,"data-tip":`Add an account`,onClick:()=>o({step:`catalog`}),children:[(0,K.jsx)(r,{"aria-hidden":`true`}),`Add`]})]}),Object.entries(n).map(([n,r])=>{let i=H(r),a=PS(i.host);return(0,K.jsx)(RS,{logo:a?.logo,icon:c,title:n,meta:[a?.name||`Unknown host`,i.org,i.url].filter(Boolean).map(String).join(`, `),state:h(n,i),actions:(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(R,{variant:`icon`,size:`icon-sm`,"aria-label":`Repositories of ${n}`,"data-tip":`Repositories of ${n}`,disabled:!a,onClick:()=>l(n),children:(0,K.jsx)(ct,{"aria-hidden":`true`})}),a&&(0,K.jsx)(R,{variant:`icon`,size:`icon-sm`,"aria-label":`Edit ${n}`,"data-tip":`Edit ${n}`,onClick:()=>o({step:`form`,host:a,mode:`edit`,name:n,from:n,value:i}),children:(0,K.jsx)(I,{"aria-hidden":`true`})}),(0,K.jsx)(R,{variant:`icon`,size:`icon-sm`,"aria-label":`Disconnect ${n}`,"data-tip":`Disconnect ${n}`,onClick:()=>e.set(US(U(t,[`product`,`accounts`,n],void 0),n,void 0)),children:(0,K.jsx)(Fe,{"aria-hidden":`true`})})]})},n)}),(0,K.jsx)(BS,{title:`Connected repositories`,help:`Each one a repository the graph reads: connected from an account, or a local clone or a link added by hand.`}),(0,K.jsx)(Go,{edit:e,base:[`product`,`repos`],defs:Fc,noun:`repository by hand`,placeholder:`web`,meta:e=>typeof e.git==`string`&&e.git?`${e.git}${typeof e.branch==`string`&&e.branch?` (${e.branch})`:``}${typeof e.account==`string`?`, from ${e.account}`:``}`:typeof e.path==`string`?e.path:``}),(0,K.jsx)(XS,{edit:e}),(0,K.jsx)($S,{edit:e}),(0,K.jsx)(W,{help:_c[0].help,children:`4. The product and its knowledge`}),(0,K.jsx)(xn,{defs:_c[0].fields,edit:e,base:_c[0].base}),_c.slice(1).map(t=>(0,K.jsxs)(`div`,{children:[(0,K.jsx)(BS,{title:t.title,help:t.help}),(0,K.jsx)(xn,{defs:t.fields,edit:e,base:t.base})]},t.title)),(0,K.jsx)(W,{help:vc[0].help,children:`5. ${vc[0].title}`}),(0,K.jsx)(xn,{defs:vc[0].fields,edit:e,base:vc[0].base}),(0,K.jsx)(GS,{sheet:a,setSheet:o,taken:e=>e in n,onSigned:f,onApply:n=>{let r=t;n.mode===`edit`&&n.from!==n.name&&(r=US(U(r,[`product`,`accounts`,n.from],void 0),n.from,n.name)),e.set(U(r,[`product`,`accounts`,n.name],n.value)),o(null),n.mode===`add`&&l(n.name)}}),(0,K.jsx)(KS,{id:s,account:s?H(n[s]):{},repos:i,onClose:()=>l(null),onConnect:n=>e.set(U(t,[`product`,`repos`],{...i,...n}))})]})}function GS({sheet:e,setSheet:t,taken:n,onApply:r,onSigned:a}){let o=pr(),[l,u]=(0,G.useState)({busy:!1}),d=e?.step===`form`?`${e.host.id}/${e.from}`:e?.step||``;(0,G.useEffect)(()=>u({busy:!1}),[d]);let f=()=>t(null);if(e?.step===`form`){let d=e,p=d.value,m=e=>t({...d,value:e}),h=d.name?FS.test(d.name)?d.name!==d.from&&n(d.name)?`Another account has this name.`:``:`Letters, digits, - and _.`:``,g=!p.url||LS(d.host.id,String(p.url)).cloud,_=d.host.id===`azure-devops`&&g&&!(p.url&&LS(d.host.id,String(p.url)).org),v=(()=>{let e=String(p.url||``).trim();if(!e)return``;try{let t=new URL(e);return t.protocol===`https:`?t.username||t.password?`No user name or password in the address: the token goes in its own field.`:``:`The address is https.`}catch{return`That is not an address.`}})(),y=!!d.name&&!h&&!v&&(d.host.cloud||!!String(p.url||``).trim())&&(!_||!!String(p.org||``).trim())&&(p.auth!==`token`||!!String(p.token_env||``).trim()),b=IS(d.host,p),x=async e=>{u({busy:!0});try{if(e===`signin`){let e=await Bt.signIn(d.name||`account`,p);u({busy:!1,ok:e.ok,message:e.message})}else{let e=await Bt.repos(d.name||`account`,p,HS(o.pending),[]);u({busy:!1,ok:e.ok,message:e.ok?`Signed in: ${e.repos.length} ${e.repos.length===1?`repository`:`repositories`} to pick from${e.truncated?` (the first ones)`:``}.`:e.message})}}catch(e){u({busy:!1,ok:!1,message:e.message})}};return(0,K.jsxs)(cn,{open:!0,onClose:f,title:d.mode===`add`?`Connect ${d.host.name}`:`Edit ${d.name}`,description:`Then pick its repositories. A token you type is kept in ${Wn(o.store)}, never in the settings files.`,footer:(0,K.jsxs)(K.Fragment,{children:[d.mode===`add`&&(0,K.jsxs)(R,{onClick:()=>t({step:`catalog`}),children:[(0,K.jsx)(xe,{"aria-hidden":`true`}),`Back`]}),(0,K.jsxs)(R,{onClick:()=>x(`list`),disabled:l.busy||!y,className:`mr-auto`,"data-tip":`Test the connection`,children:[(0,K.jsx)(j,{"aria-hidden":`true`}),l.busy?`Testing…`:`Test`]}),(0,K.jsxs)(R,{onClick:f,children:[(0,K.jsx)(i,{"aria-hidden":`true`}),`Cancel`]}),(0,K.jsxs)(R,{variant:`primary`,disabled:!y,onClick:()=>r(d),children:[d.mode===`add`?(0,K.jsx)(j,{"aria-hidden":`true`}):(0,K.jsx)(s,{"aria-hidden":`true`}),d.mode===`add`?`Connect`:`Done`]})]}),children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-3 pt-5 pb-2`,children:[(0,K.jsx)(Tn,{logo:d.host.logo,icon:c,size:`lg`}),(0,K.jsx)(`span`,{className:`text-sm text-muted`,children:d.host.note})]}),(0,K.jsx)(`div`,{"aria-live":`polite`,children:l.message&&(0,K.jsx)(zS,{ok:!!l.ok,message:l.message})}),(0,K.jsx)(V,{label:`Name`,help:h?(0,K.jsx)(`span`,{className:`text-fail`,children:h}):`A short name for the account, such as work.`,htmlFor:`acct-name`,stacked:!0,children:(0,K.jsx)(z,{id:`acct-name`,value:d.name,spellCheck:!1,"aria-invalid":!!h,placeholder:`work`,onChange:e=>t({...d,name:e.target.value.trim()})})}),(0,K.jsx)(V,{label:d.host.cloud?`Address of your own server`:`Address`,help:v?(0,K.jsx)(`span`,{className:`text-fail`,children:v}):d.host.cloud?`Empty: ${d.host.name}'s cloud.`:`https, the server's address.`,htmlFor:`acct-url`,stacked:!0,children:(0,K.jsx)(z,{id:`acct-url`,"aria-invalid":!!v,value:String(p.url||``),spellCheck:!1,placeholder:d.host.cloud?``:`https://bitbucket.acme.example`,onChange:e=>m(U(p,[`url`],e.target.value.trim()||void 0))})}),d.host.org&&(0,K.jsx)(V,{label:d.host.org,help:_?`Its name, as in dev.azure.com/<organization>.`:`Empty: every repository you can read.`,htmlFor:`acct-org`,stacked:!0,children:(0,K.jsx)(z,{id:`acct-org`,value:String(p.org||``),spellCheck:!1,placeholder:`acme`,onChange:e=>m(U(p,[`org`],e.target.value.trim()||void 0))})}),(0,K.jsxs)(`fieldset`,{className:`m-0 border-0 p-0 py-3`,children:[(0,K.jsx)(`legend`,{className:`mb-2 font-medium`,children:`Sign in`}),[[`browser`,b===`git`?`In the browser, with Git Credential Manager`:d.host.id===`github`?`In the browser, with the GitHub CLI`:`In the browser, with Microsoft (the Azure CLI)`],[`token`,`With a personal access token`]].map(([e,t])=>(0,K.jsxs)(`label`,{className:`flex min-h-10 cursor-pointer items-center gap-3 text-sm`,children:[(0,K.jsx)(`input`,{type:`radio`,name:`acct-auth`,checked:p.auth===`token`==(e===`token`),onChange:()=>m(e===`token`?{...p,auth:`token`,token_env:p.token_env||d.host.tokenEnv}:{...p,auth:`browser`,token_env:void 0,user:void 0})}),t]},e))]}),p.auth===`token`?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(V,{label:`Token`,help:`Read access to the repositories (code: read).`,stacked:!0,children:(0,K.jsx)(Mn,{name:String(p.token_env||d.host.tokenEnv),field:`token`,onRename:e=>m({...p,token_env:e})})}),(d.host.id===`bitbucket-cloud`||d.host.id===`bitbucket-server`)&&(0,K.jsx)(V,{label:`User name for the token`,help:`With a Bitbucket app password. Empty: an access token.`,htmlFor:`acct-user`,stacked:!0,children:(0,K.jsx)(z,{id:`acct-user`,value:String(p.user||``),spellCheck:!1,onChange:e=>m(U(p,[`user`],e.target.value.trim()||void 0))})})]}):b===`cli`?(0,K.jsx)(zc,{system:d.host.cli.system,label:d.host.cli.label,keyless:!0,onChanged:a}):b===`gh-host`?(0,K.jsx)(V,{label:`Sign in with the GitHub CLI`,help:`In a terminal: gh auth login --web --hostname ${(()=>{try{return new URL(String(p.url)).hostname}catch{return`<your server>`}})()}. Then Test.`,stacked:!0}):(0,K.jsx)(V,{label:`Sign in with the browser`,help:`Git Credential Manager opens the sign-in on this computer and keeps it for git, which fetches the repositories with it.`,stacked:!0,children:(0,K.jsxs)(R,{onClick:()=>x(`signin`),disabled:l.busy||!y,"data-tip":`Sign in with the browser`,children:[(0,K.jsx)(le,{"aria-hidden":`true`}),l.busy?`Signing in…`:`Sign in`]})})]})}return(0,K.jsx)(cn,{open:e?.step===`catalog`,onClose:f,title:`Add an account`,description:`Pick where your code is.`,footer:(0,K.jsxs)(R,{onClick:f,children:[(0,K.jsx)(i,{"aria-hidden":`true`}),`Close`]}),children:(0,K.jsx)(`div`,{className:`pt-4`,children:NS.map(e=>(0,K.jsxs)(`button`,{type:`button`,onClick:()=>t({step:`form`,host:e,mode:`add`,name:``,from:``,value:{host:e.id,auth:`browser`}}),className:`flex min-h-14 w-full cursor-pointer items-center gap-3 rounded-[12px] border-0 bg-transparent px-2 py-2 text-left text-ink hover:bg-surface-muted`,children:[(0,K.jsx)(Tn,{logo:e.logo,icon:c}),(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,K.jsx)(`span`,{className:`font-medium`,children:e.name}),(0,K.jsx)(`span`,{className:`text-sm text-muted`,children:e.note})]}),(0,K.jsx)(`span`,{className:`text-[13px] text-accent-fg`,children:`Add`})]},e.id))})})}function KS({id:e,account:t,repos:n,onClose:r,onConnect:a}){let o=pr(),[s,c]=(0,G.useState)({busy:!1}),[l,u]=(0,G.useState)(new Set),[d,f]=(0,G.useState)(``),p=(0,G.useMemo)(()=>new Set(Object.values(n).map(e=>String(H(e).git||``))),[n]);(0,G.useEffect)(()=>{e&&(u(new Set),f(``),c({busy:!0}),Bt.repos(e,t,HS(o.pending),Object.keys(n)).then(e=>c(e.ok?{busy:!1,repos:e.repos,truncated:e.truncated,skipped:e.skipped}:{busy:!1,message:e.message}),e=>c({busy:!1,message:e.message})))},[e]);let m=(s.repos||[]).filter(e=>!d||e.fullName.toLowerCase().includes(d.toLowerCase()));return(0,K.jsxs)(cn,{open:!!e,onClose:r,wide:!0,title:`Repositories of ${e||``}`,description:`Pick the ones ForgeQE reads into the product graph. They are fetched into ForgeQE's own cache, never your workspace.`,footer:(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`span`,{className:`mr-auto text-sm text-muted`,children:l.size?`${l.size} picked`:``}),(0,K.jsxs)(R,{onClick:r,children:[(0,K.jsx)(i,{"aria-hidden":`true`}),`Cancel`]}),(0,K.jsxs)(R,{variant:`primary`,disabled:!l.size,onClick:()=>{let e={};for(let t of s.repos||[])l.has(t.git)&&(e[t.key]=t.entry);a(e),r()},"data-tip":l.size>1?`Connect ${l.size} repositories`:void 0,children:[(0,K.jsx)(j,{"aria-hidden":`true`}),l.size>1?`Connect (${l.size})`:`Connect`]})]}),children:[(0,K.jsxs)(`div`,{"aria-live":`polite`,children:[s.busy&&(0,K.jsx)(VS,{children:`Reading the account's repositories…`}),s.message&&(0,K.jsx)(zS,{ok:!1,message:s.message})]}),s.repos&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(V,{label:`Find`,htmlFor:`repo-find`,stacked:!0,children:(0,K.jsx)(z,{id:`repo-find`,value:d,placeholder:`shop`,onChange:e=>f(e.target.value)})}),!m.length&&(0,K.jsx)(`p`,{className:`m-0 border-t border-line-soft py-5 text-sm text-muted`,children:s.repos.length?`None matches.`:`None yet: the account can read no repository.`}),(0,K.jsx)(`ul`,{"aria-label":`Repositories`,className:`m-0 list-none p-0`,children:m.map(e=>{let t=p.has(e.git);return(0,K.jsx)(`li`,{className:`border-t border-line-soft`,children:(0,K.jsxs)(`label`,{className:L(`flex min-h-12 items-center gap-3 py-2`,t?`cursor-default`:`cursor-pointer`),children:[(0,K.jsx)(ux,{disabled:t,checked:t||l.has(e.git),onCheckedChange:t=>u(n=>{let r=new Set(n);return t?r.add(e.git):r.delete(e.git),r})}),(0,K.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,K.jsx)(`span`,{className:`font-medium [overflow-wrap:anywhere]`,children:e.fullName}),(0,K.jsx)(`span`,{className:`text-sm text-muted [overflow-wrap:anywhere]`,children:[e.branch,e.private?`private`:e.private===!1?`public`:``,e.description].filter(Boolean).join(` · `)})]}),t&&(0,K.jsx)(`span`,{className:`text-[13px] text-pass`,children:`Connected`})]})},e.git)})}),(s.truncated||!!s.skipped)&&(0,K.jsx)(`p`,{className:`m-0 border-t border-line-soft pt-3 text-[13px] text-muted`,children:[s.truncated?`The first 2,000 are listed: find narrows them.`:``,s.skipped?`${s.skipped} left out: their links are not of this host, or not https.`:``].filter(Boolean).join(` `)})]})]})}var qS=e=>e.url?`url`:e.mcp?`mcp`:e.command?`command`:e.documents?`documents`:`none`,JS=gc[0].fields,YS=e=>e.map(e=>JS.find(t=>t.key===e));function XS({edit:e}){let t=pr(),n=H(e.value.rag),r=qS(n),[i,a]=(0,G.useState)(r),[o,s]=(0,G.useState)(``),[c,l]=(0,G.useState)({busy:!1});(0,G.useEffect)(()=>a(r),[r]);let u=t=>{a(t),l({busy:!1});let r={top_k:n.top_k,timeout_seconds:n.timeout_seconds},i=t===`none`?{}:Object.fromEntries(Object.entries({...r,...t===`url`?{url:n.url,token_env:n.token_env}:t===`mcp`?{mcp:n.mcp}:t===`documents`?{documents:n.documents&&typeof n.documents==`object`?n.documents:{reasoning:!1}}:{command:n.command}}).filter(([,e])=>e!==void 0));e.set(U(e.value,[`rag`],Object.keys(i).length?i:void 0))},d=Object.keys(H(e.value.mcp)),f=async()=>{l({busy:!0});try{let r=await Bt.testSearch(n,H(e.value.mcp),o,HS(t.pending));l({busy:!1,...r})}catch(e){l({busy:!1,ok:!1,message:e.message})}};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(W,{help:`Where your requirements, specs and wiki are searched (a RAG index): checking a test case or a story adds the passages it finds.`,children:`2. Search service`}),(0,K.jsxs)(`fieldset`,{className:`m-0 border-0 p-0 pb-2`,children:[(0,K.jsx)(`legend`,{className:`mb-2 font-medium`,children:`The search service is`}),[[`none`,`None`],[`documents`,`This project's documents (built in, no vectors)`],[`url`,`A service at an address`],[`mcp`,`A tool of one of your MCP servers`],[`command`,`A command on this machine`]].map(([e,t])=>(0,K.jsxs)(`label`,{className:`flex min-h-10 cursor-pointer items-center gap-3 text-sm`,children:[(0,K.jsx)(`input`,{type:`radio`,name:`rag-kind`,checked:i===e,onChange:()=>u(e)}),t]},e))]}),i===`url`&&(0,K.jsx)(xn,{defs:YS([`url`,`token_env`,`top_k`,`timeout_seconds`]),edit:e,base:[`rag`]}),i===`mcp`&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(xn,{defs:YS([`mcp.server`,`mcp.tool`,`mcp.query_arg`,`mcp.top_k_arg`,`top_k`,`timeout_seconds`]),edit:e,base:[`rag`]}),(0,K.jsx)(`p`,{className:`m-0 border-t border-line-soft py-3 text-[13px] text-muted`,children:d.length?`MCP servers set up: ${d.join(`, `)}.`:`No MCP server is set up yet: add one under MCP servers, then name it here.`})]}),i===`command`&&(0,K.jsx)(xn,{defs:YS([`command`,`top_k`,`timeout_seconds`]),edit:e,base:[`rag`]}),i===`documents`&&(0,K.jsx)(xn,{defs:YS([`documents.folders`,`documents.reasoning`,`top_k`]),edit:e,base:[`rag`]}),i!==`none`&&(0,K.jsx)(V,{label:`Try a search`,help:i===`command`?`A command runs on the next real search, not from this page.`:i===`documents`?`Searched by keywords only on this page; the model is asked on a real search. Nothing is saved.`:`What a test case would search for. Nothing is saved.`,htmlFor:`rag-query`,children:(0,K.jsxs)(`div`,{className:`flex w-full items-center gap-2`,children:[(0,K.jsx)(z,{id:`rag-query`,value:o,placeholder:`refunds over 500 EUR`,onChange:e=>s(e.target.value),onKeyDown:e=>e.key===`Enter`&&o.trim()&&f(),className:`min-w-0 flex-1`}),(0,K.jsxs)(R,{size:`sm`,disabled:c.busy||!o.trim(),onClick:f,children:[(0,K.jsx)(de,{"aria-hidden":`true`}),c.busy?`Searching…`:`Search`]})]})}),(0,K.jsxs)(`div`,{"aria-live":`polite`,children:[c.message&&(0,K.jsx)(zS,{ok:!!c.ok,message:c.message}),!!c.passages?.length&&(0,K.jsx)(`ul`,{"aria-label":`Passages found`,className:`m-0 list-none p-0`,children:c.passages.map((e,t)=>(0,K.jsxs)(`li`,{className:`border-t border-line-soft py-2 text-sm [overflow-wrap:anywhere]`,children:[e.source&&(0,K.jsxs)(`span`,{className:`font-medium`,children:[e.source,`: `]}),(0,K.jsx)(`span`,{className:`text-ink-2`,children:e.text})]},t))})]})]})}var ZS=/^[A-Za-z0-9][A-Za-z0-9 _.()-]{0,99}\.(md|markdown|txt)$/i,QS=e=>e<1024?`${e} bytes`:e<1048576?`${Math.round(e/1024)} KB`:`${(e/1024/1024).toFixed(1)} MB`;function $S({edit:e}){let[t,n]=(0,G.useState)(null),[r,i]=(0,G.useState)(null),[a,o]=(0,G.useState)(!1),s=(0,G.useRef)(null);(0,G.useEffect)(()=>{Bt.documents().then(e=>n(e.documents),e=>i({ok:!1,message:e.message}))},[]);let c=async e=>{if(!e?.length)return;o(!0),i(null);let r=[];try{for(let i of Array.from(e)){if(!ZS.test(i.name))throw Error(`${i.name}: only a .md, .markdown or .txt file with a plain name.`);if(i.size>1e6)throw Error(`${i.name} is over 1 MB.`);let e=t?.some(e=>e.name===i.name)??!1,a=await Bt.addDocument(i.name,await i.text(),e);n(a.documents),r.push(i.name)}i({ok:!0,message:`Added ${r.join(`, `)}. forgeqe knowledge build reads them with the other documents.`})}catch(e){i({ok:!1,message:e.message})}finally{o(!1),s.current&&(s.current.value=``)}},l=async e=>{try{n((await Bt.removeDocument(e)).documents)}catch(e){i({ok:!1,message:e.message})}};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(W,{help:`What the graph reads beside the code: Markdown files you add here, folders on this computer, links, Confluence spaces, and the pages ForgeQE remembers of a web app.`,children:`3. Documents`}),(0,K.jsxs)(`div`,{className:`mb-4 flex flex-wrap items-center justify-between gap-3`,children:[(0,K.jsx)(`p`,{className:`m-0 max-w-[60ch] text-sm text-muted`,children:`Added here: kept in .forgeqe/documents, read as the source uploaded.`}),(0,K.jsxs)(R,{size:`sm`,disabled:a,"data-tip":`Add Markdown files`,onClick:()=>s.current?.click(),children:[(0,K.jsx)(ot,{"aria-hidden":`true`}),a?`Uploading…`:`Upload`]}),(0,K.jsx)(`input`,{ref:s,type:`file`,accept:`.md,.markdown,.txt,text/markdown,text/plain`,multiple:!0,hidden:!0,onChange:e=>c(e.target.files)})]}),(0,K.jsx)(`div`,{"aria-live":`polite`,children:r&&(0,K.jsx)(zS,{ok:r.ok,message:r.message})}),!t&&!r&&(0,K.jsx)(VS,{children:`Reading the documents…`}),t&&!t.length&&(0,K.jsx)(`p`,{className:`m-0 border-t border-line-soft py-5 text-sm text-muted`,children:`None yet.`}),t?.map(e=>(0,K.jsx)(RS,{icon:Ae,title:e.title,meta:`${e.name}, ${QS(e.bytes)}`,actions:(0,K.jsx)(R,{variant:`icon`,size:`icon-sm`,"aria-label":`Remove ${e.name}`,"data-tip":`Remove ${e.name}`,onClick:()=>l(e.name),children:(0,K.jsx)(Je,{"aria-hidden":`true`})})},e.name)),(0,K.jsx)(BS,{title:`Documents and links`,help:`Each one a folder of documents, a link, a Confluence space, or a web app whose pages ForgeQE remembers, by a name no repository has.`}),(0,K.jsx)(Go,{edit:e,base:[`product`,`docs`],defs:Pc,noun:`source`,placeholder:`help`,meta:e=>String(e.path||e.url||(e.confluence?`Confluence ${e.confluence}`:e.app?`app ${e.app}`:``))})]})}var eC=/^[A-Z][A-Z0-9_]{1,63}$/,tC=/^(PATH|PATHEXT|HOME|SHELL|USER|USERNAME|LOGNAME|PWD|TMPDIR|TEMP|TMP|LANG|LC_\w+|TERM|COMSPEC|SYSTEMROOT|WINDIR|APPDATA|LOCALAPPDATA|USERPROFILE|NODE_\w+|BUN_\w+|NPM_\w+|PYTHON\w*|VIRTUAL_ENV|UV_\w+|LD_\w+|DYLD_\w+|SSL_CERT_\w+|REQUESTS_CA_BUNDLE|CURL_CA_BUNDLE|(HTTPS?|ALL|NO)_PROXY|GIT_\w+|SSH_\w+|GNUPGHOME|EDITOR|VISUAL|PAGER|FORGEQE_\w+|WEBPILOT_\w+|WP_CONFIG|WP_LLMS_JSON|WP_LLM_PROFILE)$/i,nC=/(TOKEN|PAT)$/,rC=(e,t=`SHOP_PASSWORD`)=>eC.test(e)?tC.test(e)?`${e} changes how programs start: pick another name.`:``:`Capital letters, digits and _, such as ${t}.`,iC=[{id:`azure`,label:`Azure Key Vault`,where:`Key vault`,whereHelp:`Its name, as in https://<name>.vault.azure.net.`,placeholder:`shop-qa-kv`,cli:`Microsoft, in the browser (az login)`},{id:`gcp`,label:`Google Secret Manager`,where:`Project`,whereHelp:`The Google Cloud project's id.`,placeholder:`shop-qa-123456`,cli:`Google, in the browser (gcloud auth login)`},{id:`aws`,label:`AWS Secrets Manager`,where:`Region`,whereHelp:`Where its secrets are, such as eu-west-1.`,placeholder:`eu-west-1`,cli:`AWS SSO, in the browser (aws sso login)`}],aC={tenant:`Tenant id`,clientId:`Client id`,clientSecret:`Client secret`,serviceAccount:`Service account key (JSON)`,accessKeyId:`Access key id`,secretAccessKey:`Secret access key`,sessionToken:`Session token (optional)`},oC=e=>e?.length?`Used by ${e.slice(0,2).join(`, `)}${e.length>2?` and ${e.length-2} more`:``}`:``,sC=()=>an.list();function cC({show:e}){let{data:t,error:n,reload:i}=vn(sC),[a,o]=(0,G.useState)(null),[s,c]=(0,G.useState)(`sec-saved`),[l,u]=(0,G.useState)(e||`all`);(0,G.useEffect)(()=>{e&&c(`sec-saved`),u(e||`all`)},[e]);let[f,p]=(0,G.useState)(``),[m,h]=(0,G.useState)(``),[g,_]=(0,G.useState)(null),[v,y]=(0,G.useState)(null),[b,x]=(0,G.useState)(null),[S,C]=(0,G.useState)(!1),w=(0,G.useRef)(null),[T,E]=(0,G.useState)(!1),[D,O]=(0,G.useState)(``),[k,A]=(0,G.useState)(null),[j,M]=(0,G.useState)({}),N=a??t,P=(N?.vaults||[]).filter(e=>e.auth===`cli`).map(e=>e.id).join(`,`),te=e=>{M(t=>({...t,[e]:`checking`})),an.check(e).then(t=>M(n=>({...n,[e]:t})),t=>M(n=>({...n,[e]:{signedIn:!1,problem:t.message}})))};(0,G.useEffect)(()=>{if(s===`sec-vaults`)for(let e of P.split(`,`).filter(Boolean))j[e]||te(e)},[s,P]),(0,G.useEffect)(()=>{if(k?.state!==`running`)return;let e=setTimeout(()=>{an.signinState().then(e=>{A(e.signin),e.signin&&e.signin.state!==`running`&&te(e.signin.vault)},()=>{})},1e3);return()=>clearTimeout(e)},[k]);let ne=async e=>{p(``),h(``);try{A(await an.signIn(e))}catch(e){h(e.message)}},re=async(e,t,n)=>{C(!0),O(``);try{o(await e()),n(),p(t)}catch(e){O(e.message)}finally{C(!1)}},ie=e=>{O(``),p(``),e()};if(!N)return(0,K.jsx)(sn,{error:n,reload:i});let ae=N.secrets.filter(e=>e.from===`vault`&&!e.pending).length,F=async()=>{p(``),h(``);try{let e=await an.exportVaults(),t=URL.createObjectURL(new Blob([`${JSON.stringify(e,null,2)}\n`],{type:`application/json;charset=utf-8`})),n=document.createElement(`a`);n.href=t,n.download=`forgeqe-vaults.json`,n.click(),setTimeout(()=>URL.revokeObjectURL(t),1e3),p(`Exported the vault connections: no value is in the file. A teammate imports it here and pulls with their own sign-in.`)}catch(e){h(e.message)}},I=async e=>{let t=e?.[0];if(t){if(p(``),h(``),t.size>262144)return h(`${t.name} is over 256 KB.`);C(!0),E(!0);try{let e=await an.importVaults(await t.text());o(e.view);let n=[e.added.length?`Added ${e.added.length===1?`the vault`:`${e.added.length} vaults:`} ${e.added.join(`, `)}.`:`No new vault.`,e.toPull.length?`${e.toPull.length===1?`1 secret is`:`${e.toPull.length} secrets are`} ready to pull on Saved: sign in, then Pull.`:``];p(n.filter(Boolean).join(` `)),e.skipped.length&&h(`Not imported: ${e.skipped.map(e=>`${e.id} (${e.why})`).join(`; `)}`)}catch(e){h(e.message)}finally{C(!1),E(!1)}}},oe=N.secrets.filter(e=>e.token),se=l===`tokens`?oe:N.secrets,ce=(e=N.suggestedTokens[0]||`REPO_TOKEN`)=>ie(()=>_({mode:`add`,name:e,value:``,token:!0})),de=async e=>{C(!0),p(``),h(``);try{let t=await an.pullAgain(e);o(t.view),t.failed.length?h(`Not pulled: ${t.failed.map(e=>`${e.name} (${e.error})`).join(`; `)}`):p(`Pulled ${e}.`)}catch(e){h(e.message)}finally{C(!1)}},fe=async()=>{C(!0),p(``),h(``);try{let e=await an.pullAgain();o(e.view),p(`Pulled ${e.pulled.length} again from their vaults.`),h(e.failed.length?`Not pulled: ${e.failed.map(e=>`${e.name} (${e.error})`).join(`; `)}`:``)}catch(e){h(e.message)}finally{C(!1)}};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(En,{label:`Secrets`,current:s,onPick:e=>{c(e),p(``),h(``)},tabs:[{id:`sec-saved`,label:`Saved (${N.secrets.length})`},{id:`sec-vaults`,label:`Vaults (${N.vaults.length})`}]}),f&&(0,K.jsx)(`p`,{role:`status`,className:`m-0 mb-3 rounded-[10px] bg-surface-muted px-3 py-2 text-sm text-ink-2 [overflow-wrap:anywhere]`,children:f}),m&&(0,K.jsx)(`p`,{role:`alert`,className:`m-0 mb-3 rounded-[10px] bg-fail-soft px-3 py-2 text-sm text-fail [overflow-wrap:anywhere]`,children:m}),s===`sec-saved`?(0,K.jsxs)(`div`,{role:`tabpanel`,id:`panel-sec-saved`,"aria-labelledby":`tab-sec-saved`,children:[(0,K.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center justify-between gap-3`,children:[(0,K.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,role:`group`,"aria-label":`Show`,children:(0,K.jsx)($t,{value:l,onChange:e=>{u(e),p(``)},items:[{id:`all`,label:`All`,n:N.secrets.length},{id:`tokens`,label:`Repository tokens`,n:oe.length+N.neededTokens.length}]})}),(0,K.jsxs)(`span`,{className:`flex flex-wrap gap-2`,children:[ae>0&&(0,K.jsxs)(R,{size:`sm`,disabled:S,onClick:()=>void fe(),children:[(0,K.jsx)(ee,{"aria-hidden":`true`}),S?`Pulling…`:`Pull all again`]}),l===`tokens`?(0,K.jsxs)(R,{size:`sm`,onClick:()=>ce(),children:[(0,K.jsx)(r,{"aria-hidden":`true`}),`Add a token`]}):(0,K.jsxs)(R,{size:`sm`,onClick:()=>ie(()=>_({mode:`add`,name:``,value:``})),children:[(0,K.jsx)(r,{"aria-hidden":`true`}),`Add a secret`]})]})]}),(0,K.jsx)(`p`,{className:`m-0 mb-3 text-sm text-muted`,children:l===`tokens`?`The tokens ForgeQE clones and reads git repositories with: one for each git host or account. A clone picks one by its name.`:`Agents and tests use a secret by its name: in a sign-in, an environment's secrets, or a test's variables.`}),N.neededTokens.map(e=>(0,K.jsx)(jn,{expandable:!1,open:!1,onToggle:()=>{},lead:(0,K.jsx)(Tn,{icon:d}),title:(0,K.jsx)(`span`,{className:`font-mono`,children:e.name}),meta:`${oC(e.usedBy)}. It has no value here yet.`,state:(0,K.jsx)(`span`,{className:`text-[13px] text-muted`,children:`Not set`}),actions:(0,K.jsx)(R,{size:`sm`,"aria-label":`Add ${e.name}`,onClick:()=>ce(e.name),children:`Add`}),children:null},`needed-${e.name}`)),se.length===0&&!N.neededTokens.length&&(0,K.jsx)(`p`,{className:`m-0 border-t border-line-soft py-5 text-sm text-muted`,children:l===`tokens`?`No repository tokens yet. Add one for each git host or account.`:`None yet. Add one, or pull one from a vault.`}),se.map(e=>(0,K.jsx)(jn,{expandable:!1,open:!1,onToggle:()=>{},lead:(0,K.jsx)(Tn,{icon:e.from===`vault`?ue:e.from===`sign-in`?le:e.token?d:je}),title:(0,K.jsx)(`span`,{className:`font-mono`,children:e.name}),meta:[e.from===`vault`&&e.vault?`From ${e.vault.provider} ${e.vault.id}: ${e.vault.secret}${e.vault.key?` › ${e.vault.key}`:``} · ${e.pending?`not pulled yet`:`pulled ${nS(e.vault.at)}`}`:e.from===`sign-in`?`From the ${e.system} sign-in: sign out of it to remove it.`:e.from===`shell`?`Set in your shell: change or remove it there.`:`Saved in Settings`,e.token?oC(e.usedBy)||`Not used yet`:``].filter(Boolean).join(` · `),state:e.from===`shell`?(0,K.jsx)(`span`,{className:`text-[13px] text-pass`,children:`Set in the environment`}):e.set?(0,K.jsx)(`span`,{className:`text-[13px] text-pass`,children:`Saved`}):(0,K.jsx)(`span`,{className:`text-[13px] text-muted`,children:`Not set`}),actions:e.pending?(0,K.jsx)(R,{size:`sm`,"aria-label":`Pull ${e.name}`,disabled:S,onClick:()=>void de(e.name),children:`Pull`}):e.from===`sign-in`||e.from===`shell`?void 0:(0,K.jsx)(R,{size:`sm`,"aria-label":`Edit ${e.name}`,onClick:()=>ie(()=>_({mode:`edit`,name:e.name,value:``,row:e,...e.token?{token:!0}:{}})),children:`Edit`}),children:null},e.name)),(0,K.jsxs)(`p`,{className:`m-0 mt-3 text-[12.5px] text-muted`,children:[`Kept in `,Wn(N.store),`. ForgeQE never shows a value again, and the agents see only names.`,l===`tokens`?` Give each token read access to the repositories it clones, nothing more.`:``]})]}):(0,K.jsxs)(`div`,{role:`tabpanel`,id:`panel-sec-vaults`,"aria-labelledby":`tab-sec-vaults`,children:[(0,K.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center justify-end gap-2`,children:[N.vaults.length>0&&(0,K.jsxs)(R,{size:`sm`,onClick:()=>void F(),"data-tip":`A file of the connections, without values, for a teammate to import`,children:[(0,K.jsx)(tt,{"aria-hidden":`true`}),`Export`]}),(0,K.jsxs)(R,{size:`sm`,disabled:S,onClick:()=>w.current?.click(),"data-tip":`Connections a teammate exported`,children:[(0,K.jsx)(ot,{"aria-hidden":`true`}),T?`Importing…`:`Import`]}),(0,K.jsx)(`input`,{ref:w,type:`file`,accept:`.json,application/json`,hidden:!0,onChange:e=>(I(e.target.files),e.target.value=``)}),(0,K.jsxs)(R,{size:`sm`,onClick:()=>ie(()=>y({mode:`add`,v:{id:``,provider:`azure`,where:``,auth:`cli`}})),children:[(0,K.jsx)(r,{"aria-hidden":`true`}),`Add a vault`]})]}),(0,K.jsx)(`p`,{className:`m-0 mb-3 text-sm text-muted`,children:`Where ForgeQE pulls secrets from. It reads a value only when you pull that secret.`}),k&&(0,K.jsx)(fC,{s:k,onCancel:()=>void an.cancelSignin().then(e=>A(e.signin),()=>{}),onClose:()=>A(null)}),N.vaults.length===0&&(0,K.jsx)(`p`,{className:`m-0 border-t border-line-soft py-5 text-sm text-muted`,children:`None yet. Add Azure Key Vault, Google Secret Manager or AWS Secrets Manager.`}),N.vaults.map(e=>(0,K.jsx)(jn,{expandable:!1,open:!1,onToggle:()=>{},lead:(0,K.jsx)(Tn,{icon:ue}),title:e.id,meta:`${e.providerLabel} · ${e.where} · ${e.auth===`cli`?`signs in with your browser${e.profile?`, profile ${e.profile}`:``}`:`signs in with saved keys`}${e.pulled?` · ${e.pulled} pulled`:``}${e.missing.length?` · not saved yet: ${e.missing.join(`, `)}`:``}`,state:e.auth===`cli`?j[e.id]===`checking`||!j[e.id]?(0,K.jsx)(`span`,{className:`text-[13px] text-muted`,children:`Checking the sign-in…`}):j[e.id].signedIn?(0,K.jsx)(`span`,{className:`text-[13px] text-pass`,children:`Signed in`}):(0,K.jsx)(`span`,{className:`text-[13px] text-warn`,"data-tip":j[e.id].problem,children:`Not signed in`}):e.missing.length?(0,K.jsx)(`span`,{className:`text-[13px] text-warn`,"data-tip":e.missing.join(`, `),children:e.missing.length===1?`Needs ${e.missing[0]}`:`Needs ${e.missing.length} variables`}):(0,K.jsx)(`span`,{className:`text-[13px] text-muted`,children:e.pulled===1?`1 secret pulled`:`${e.pulled} secrets pulled`}),actions:(0,K.jsxs)(K.Fragment,{children:[e.auth===`cli`&&j[e.id]!==`checking`&&j[e.id]&&!j[e.id].signedIn?(0,K.jsxs)(R,{size:`sm`,variant:`primary`,"aria-label":`Sign in to ${e.id}`,disabled:k?.state===`running`,onClick:()=>void ne(e.id),children:[(0,K.jsx)(le,{"aria-hidden":`true`}),`Sign in`]}):(0,K.jsx)(R,{size:`sm`,"aria-label":`Browse ${e.id}`,disabled:e.missing.length>0||e.auth===`cli`&&j[e.id]===`checking`,onClick:()=>ie(()=>x(e)),children:`Browse`}),(0,K.jsx)(R,{size:`sm`,"aria-label":`Edit ${e.id}`,onClick:()=>ie(()=>y({mode:`edit`,v:{id:e.id,provider:e.provider,where:e.where,auth:e.auth,...e.profile?{profile:e.profile}:{},...e.keys?{keys:e.keys}:{}}})),children:`Edit`})]}),children:null},e.id)),(0,K.jsx)(`p`,{className:`m-0 mt-3 text-[12.5px] text-muted`,children:`Vaults are kept on this computer for this project, never in the repository: share them with Export and Import, which carry no value. Give ForgeQE's sign-in read access to the secrets it needs, nothing more.`})]}),(0,K.jsx)(lC,{panel:g,setPanel:_,busy:S,error:D,onSave:e=>void re(()=>an.save(e.name,e.value),`${e.mode===`add`?`Added`:`Saved`} ${e.name}.`,()=>_(null)),onRemove:e=>void re(()=>an.remove(e),`Removed ${e}.`,()=>_(null)),onPull:e=>void re(async()=>{let t=await an.pullAgain(e);if(t.failed.length)throw Error(t.failed[0].error);return t.view},`Pulled ${e} again.`,()=>_(null)),taken:new Set(N.secrets.map(e=>e.name))}),(0,K.jsx)(uC,{panel:v,setPanel:y,busy:S,error:D,roles:N.keyRoles,taken:new Set(N.vaults.map(e=>e.id)),missing:N.vaults.find(e=>e.id===v?.v.id)?.missing,onSave:e=>void re(()=>an.saveVault(e.v,e.mode===`edit`),`${e.mode===`add`?`Added`:`Saved`} the vault ${e.v.id}.${e.v.auth===`cli`?` Sign in on its row if it says Not signed in.`:``}`,()=>{y(null),M(t=>{let{[e.v.id]:n,...r}=t;return r})}),onRemove:e=>void re(()=>an.removeVault(e),`Removed the vault ${e}. The secrets pulled from it stay saved.`,()=>y(null))}),(0,K.jsx)(dC,{vault:b,onClose:()=>x(null),taken:new Set(N.secrets.map(e=>e.name)),onPulled:(e,t,n)=>{o(e),x(null),c(`sec-saved`),p(`Pulled ${n} as ${t}. Agents and tests can use it by that name.`)}})]})}function lC({panel:e,setPanel:t,busy:n,error:r,onSave:i,onRemove:a,onPull:o,taken:s}){let c=e?.mode===`add`?rC(e.name,e.token?`GITHUB_TOKEN`:void 0)||(s.has(e.name)?`${e.name} is already in the list: edit it there.`:``)||(e.token&&!nC.test(e.name)?`A token's name ends in TOKEN or PAT, such as GITHUB_TOKEN.`:``):``,l=e?.row?.from===`vault`,[u,d]=(0,G.useState)(!1);return(0,G.useEffect)(()=>d(!1),[!!e]),(0,K.jsx)(cn,{open:!!e,onClose:()=>t(null),title:e?.mode===`edit`?`Edit ${e.name}`:e?.token?`Add a repository token`:`Add a secret`,description:`The value goes to your credential store when you press the button below. ForgeQE never shows it again, and the agents see only its name.`,footer:(0,K.jsxs)(K.Fragment,{children:[r?(0,K.jsx)(`span`,{role:`alert`,className:`mr-auto self-center text-sm text-fail [overflow-wrap:anywhere]`,children:r}):c?(0,K.jsx)(`span`,{className:`mr-auto self-center text-sm text-muted`,children:`Needs a valid name`}):null,e?.mode===`edit`&&(0,K.jsx)(R,{disabled:n,onClick:()=>a(e.name),className:`mr-auto text-fail`,children:`Remove`}),(0,K.jsx)(R,{onClick:()=>t(null),children:`Cancel`}),(0,K.jsx)(R,{variant:`primary`,disabled:n||!!c||!e?.value.trim(),onClick:()=>e&&i(e),children:n?`Saving…`:e?.mode===`add`?e.token?`Add token`:`Add secret`:e?.token?`Save token`:`Save secret`})]}),children:e&&(0,K.jsxs)(K.Fragment,{children:[e.mode===`add`&&(0,K.jsx)(V,{label:`Name`,help:c?(0,K.jsx)(`span`,{className:`text-fail`,children:c}):e.token?`The variable a clone signs in with: one per host or account.`:`The variable agents and tests read it by.`,htmlFor:`sh-name`,className:`mt-4`,stacked:!0,children:(0,K.jsx)(z,{id:`sh-name`,value:e.name,spellCheck:!1,maxLength:64,placeholder:e.token?`GITHUB_TOKEN`:`SHOP_PASSWORD`,"aria-invalid":!!c,onChange:n=>t({...e,name:n.target.value.toUpperCase().replace(/[^A-Z0-9_]/g,`_`)}),className:`font-mono`})}),l&&e.row?.vault&&(0,K.jsx)(V,{label:`From a vault`,help:`${e.row.vault.provider} ${e.row.vault.id}: ${e.row.vault.secret}${e.row.vault.key?` › ${e.row.vault.key}`:``}, pulled ${nS(e.row.vault.at)}. Pull it again for the vault's newest value; a value typed below replaces it and is no longer the vault's.`,className:`mt-4`,stacked:!0,children:(0,K.jsxs)(R,{size:`sm`,disabled:n,onClick:()=>o(e.name),children:[(0,K.jsx)(ee,{"aria-hidden":`true`}),`Pull again`]})}),(0,K.jsx)(V,{label:e.mode===`edit`?`New value`:e.token?`Token`:`Value`,help:e.token?`A personal access token with read access to the repositories (GitHub: Contents read; Azure DevOps: Code read; GitLab: read_repository).`:(0,K.jsxs)(K.Fragment,{children:[`At most 16 KB.`,` `,(0,K.jsx)(`button`,{type:`button`,onClick:()=>d(!u),className:`cursor-pointer border-0 bg-transparent p-0 text-[13px] text-accent-fg underline`,children:u?`One line, hidden`:`Several lines (shown as you type), such as a JSON key`})]}),htmlFor:`sh-value`,className:e.mode===`edit`&&!l?`mt-4`:void 0,stacked:!0,children:u&&!e.token?(0,K.jsx)(Zt,{id:`sh-value`,rows:6,autoComplete:`off`,spellCheck:!1,value:e.value,onChange:n=>t({...e,value:n.target.value}),className:`font-mono`}):(0,K.jsx)(z,{id:`sh-value`,type:`password`,autoComplete:`off`,value:e.value,onChange:n=>t({...e,value:n.target.value})})})]})})}function uC({panel:e,setPanel:t,busy:n,error:r,roles:i,taken:a,missing:o,onSave:s,onRemove:c}){let l=e?.v,u=iC.find(e=>e.id===l?.provider)??iC[0],d=n=>e&&t({...e,v:{...e.v,...n}}),f=l?.auth===`keys`?Object.entries(i[l.provider]).map(([e,t])=>[e,rC(l.keys?.[e]??t)]).filter(([,e])=>e):[],p=e?.mode===`add`?/^[a-z][a-z0-9-]{0,39}$/.test(l?.id||``)?a.has(l.id)?`A vault is already named ${l.id}.`:``:`Lower case letters, digits and -, such as qa-kv.`:``;return(0,K.jsx)(cn,{open:!!e,onClose:()=>t(null),title:e?.mode===`edit`?`Edit ${l?.id}`:`Add a vault`,description:`Where ForgeQE pulls secrets from, and how it signs in. Kept on this computer for this project. Nothing is read until you pull a secret.`,footer:(0,K.jsxs)(K.Fragment,{children:[r?(0,K.jsx)(`span`,{role:`alert`,className:`mr-auto self-center text-sm text-fail [overflow-wrap:anywhere]`,children:r}):p||f.length?(0,K.jsx)(`span`,{className:`mr-auto self-center text-sm text-muted`,children:`Needs a valid name`}):null,e?.mode===`edit`&&(0,K.jsx)(R,{disabled:n,onClick:()=>c(l.id),className:`mr-auto text-fail`,children:`Remove`}),(0,K.jsx)(R,{onClick:()=>t(null),children:`Cancel`}),(0,K.jsx)(R,{variant:`primary`,disabled:n||!!p||f.length>0||!l?.where.trim(),onClick:()=>e&&s(e),children:n?`Saving…`:e?.mode===`add`?`Add vault`:`Save vault`})]}),children:e&&l&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(V,{label:`Provider`,htmlFor:`vt-provider`,className:`mt-4`,stacked:!0,children:(0,K.jsx)(Yt,{id:`vt-provider`,value:l.provider,disabled:e.mode===`edit`,onChange:e=>d({provider:e.target.value,where:``,keys:void 0,profile:void 0}),children:iC.map(e=>(0,K.jsx)(`option`,{value:e.id,children:e.label},e.id))})}),e.mode===`add`&&(0,K.jsx)(V,{label:`Name`,help:p?(0,K.jsx)(`span`,{className:`text-fail`,children:p}):`What this project calls it.`,htmlFor:`vt-id`,stacked:!0,children:(0,K.jsx)(z,{id:`vt-id`,value:l.id,spellCheck:!1,maxLength:40,placeholder:`qa-kv`,"aria-invalid":!!p,onChange:e=>d({id:e.target.value.toLowerCase().replace(/[^a-z0-9-]/g,`-`)}),className:`font-mono`})}),(0,K.jsx)(V,{label:u.where,help:u.whereHelp,htmlFor:`vt-where`,stacked:!0,children:(0,K.jsx)(z,{id:`vt-where`,value:l.where,spellCheck:!1,maxLength:64,placeholder:u.placeholder,onChange:e=>d({where:e.target.value.trim()}),className:`font-mono`})}),(0,K.jsx)(V,{label:`Sign in with`,help:l.auth===`cli`?`Your own account, in your browser: Sign in on the vault's row after you add it. The cloud's CLI keeps the sign-in and renews it; ForgeQE saves nothing.`:`For a computer with nobody to sign in, such as a build agent.`,htmlFor:`vt-auth`,stacked:!0,children:(0,K.jsxs)(Yt,{id:`vt-auth`,value:l.auth,onChange:e=>d({auth:e.target.value,keys:e.target.value===`keys`?{...i[l.provider]}:void 0}),children:[(0,K.jsxs)(`option`,{value:`cli`,children:[u.cli,` (recommended)`]}),(0,K.jsx)(`option`,{value:`keys`,children:l.provider===`azure`?`A service principal's keys, saved as secrets (no browser)`:l.provider===`gcp`?`A service account's key, saved as a secret (no browser)`:`Access keys, saved as secrets (no browser)`})]})}),l.provider===`aws`&&l.auth===`cli`&&(0,K.jsx)(V,{label:`Profile (optional)`,help:`An SSO profile of ~/.aws/config (set one up once with aws configure sso). Empty: the default.`,htmlFor:`vt-profile`,stacked:!0,children:(0,K.jsx)(z,{id:`vt-profile`,value:l.profile||``,spellCheck:!1,maxLength:64,placeholder:`qa`,onChange:e=>d({profile:e.target.value.trim()||void 0}),className:`font-mono`})}),l.auth===`keys`&&Object.entries(i[l.provider]).map(([e,t])=>(0,K.jsx)(V,{label:aC[e]||e,help:(()=>{let n=l.keys?.[e]??t,r=rC(n);return r?(0,K.jsx)(`span`,{className:`text-fail`,children:r}):o?.includes(n)?(0,K.jsx)(`span`,{className:`text-warn`,children:`Not saved yet: add ${n} on the Saved tab.`}):`The secret that holds it, saved on the Saved tab as ${n}.`})(),htmlFor:`vt-${e}`,stacked:!0,children:(0,K.jsx)(z,{id:`vt-${e}`,"aria-invalid":!!rC(l.keys?.[e]??t),value:l.keys?.[e]??t,spellCheck:!1,maxLength:64,onChange:t=>d({keys:{...l.keys||i[l.provider],[e]:t.target.value.toUpperCase().replace(/[^A-Z0-9_]/g,`_`)}}),className:`font-mono`})},e))]})})}function dC({vault:e,onClose:t,taken:n,onPulled:r}){let[i,a]=(0,G.useState)(null),[o,s]=(0,G.useState)(``),[c,l]=(0,G.useState)(``),[u,d]=(0,G.useState)(null),[f,p]=(0,G.useState)(!1),[m,h]=(0,G.useState)(``),g=()=>{e&&(a(null),s(``),an.names(e.id).then(a,e=>s(e.message)))};(0,G.useEffect)(()=>{d(null),l(``),h(``),g()},[e?.id]);let _=(i?.names||[]).filter(e=>e.toLowerCase().includes(c.trim().toLowerCase())),v=_.slice(0,200),y=u?rC(u.name):``,b=async()=>{if(e&&u){p(!0),h(``);try{r(await an.pull({vault:e.id,secret:u.secret,name:u.name,...u.key.trim()?{key:u.key.trim()}:{}}),u.name,u.secret)}catch(e){h(e.message)}finally{p(!1)}}};return(0,K.jsxs)(cn,{open:!!e,onClose:t,wide:!0,title:e?`Secrets of ${e.id}`:`Secrets`,description:e?`The names in ${e.providerLabel} ${e.where}. Pick one to pull its value into your credential store under a variable's name; ForgeQE never shows the value.`:void 0,footer:(0,K.jsxs)(K.Fragment,{children:[m?(0,K.jsx)(`span`,{role:`alert`,className:`mr-auto self-center text-sm text-fail [overflow-wrap:anywhere]`,children:m}):(0,K.jsx)(`span`,{className:`mr-auto self-center text-sm text-muted`,children:u?y?`Needs a valid name`:`${u.secret} as ${u.name}`:``}),(0,K.jsx)(R,{onClick:t,children:`Cancel`}),(0,K.jsx)(R,{variant:`primary`,disabled:f||!u||!!y,onClick:()=>void b(),children:f?`Pulling…`:`Pull secret`})]}),children:[(0,K.jsxs)(`div`,{"aria-live":`polite`,children:[!i&&!o&&(0,K.jsx)(`p`,{role:`status`,className:`m-0 border-t border-line-soft py-5 text-sm text-muted`,children:`Reading the vault's names…`}),o&&(0,K.jsx)(`div`,{className:`mt-4`,children:(0,K.jsx)(sn,{error:o,reload:g})})]}),i&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(V,{label:`Find`,htmlFor:`br-find`,className:`mt-4`,stacked:!0,children:(0,K.jsx)(z,{id:`br-find`,value:c,placeholder:`password`,onChange:e=>l(e.target.value)})}),!_.length&&(0,K.jsx)(`p`,{className:`m-0 border-t border-line-soft py-5 text-sm text-muted`,children:i.total?`None matches.`:`None yet: ForgeQE's sign-in can see no secret in this vault.`}),(0,K.jsx)(`ul`,{"aria-label":`Secrets in the vault`,className:`m-0 list-none p-0`,children:v.map(e=>{let t=u?.secret===e;return(0,K.jsxs)(`li`,{className:`border-t border-line-soft`,children:[(0,K.jsxs)(`label`,{className:`flex min-h-12 cursor-pointer items-center gap-3 py-2`,children:[(0,K.jsx)(`input`,{type:`radio`,name:`br-secret`,checked:t,onChange:()=>d({secret:e,name:e.toUpperCase().replace(/[^A-Z0-9_]/g,`_`).replace(/^([^A-Z])/,`S_$1`).slice(0,64),key:``})}),(0,K.jsx)(`span`,{className:`min-w-0 flex-1 font-mono text-[13px] [overflow-wrap:anywhere]`,children:e})]}),t&&u&&(0,K.jsxs)(`div`,{className:`mb-3 ml-7 flex flex-col gap-3 rounded-[12px] bg-surface-muted p-3`,children:[(0,K.jsx)(V,{label:`Save as`,help:y?(0,K.jsx)(`span`,{className:`text-fail`,children:y}):n.has(u.name)?`${u.name} is saved already: pulling replaces its value.`:`The variable agents and tests read it by.`,htmlFor:`br-name`,stacked:!0,className:`py-0`,children:(0,K.jsx)(z,{id:`br-name`,value:u.name,spellCheck:!1,maxLength:64,"aria-invalid":!!y,onChange:e=>d({...u,name:e.target.value.toUpperCase().replace(/[^A-Z0-9_]/g,`_`)}),className:`font-mono`})}),(0,K.jsx)(V,{label:`JSON field (optional)`,help:`When the secret holds JSON, the one field to keep, such as password.`,htmlFor:`br-key`,stacked:!0,className:`py-0`,children:(0,K.jsx)(z,{id:`br-key`,value:u.key,spellCheck:!1,maxLength:128,placeholder:`password`,onChange:e=>d({...u,key:e.target.value}),className:`font-mono`})})]})]},e)})}),(_.length>v.length||i.total>i.names.length)&&(0,K.jsx)(`p`,{className:`m-0 border-t border-line-soft pt-3 text-[13px] text-muted`,children:[_.length>v.length?`The first ${v.length} of ${_.length} are shown: find narrows them.`:``,i.total>i.names.length?`The first ${i.names.length.toLocaleString()} of the vault's names are listed.`:``].filter(Boolean).join(` `)})]})]})}function fC({s:e,onCancel:t,onClose:n}){let[r,i]=(0,G.useState)(!1),a=e.state===`running`,o=e.link&&/^https:\/\//.test(e.link)?e.link:void 0;return(0,K.jsxs)(`div`,{role:`status`,"aria-live":`polite`,className:`mb-3 flex flex-col gap-3 rounded-[12px] card border p-4`,children:[(0,K.jsxs)(`span`,{className:`text-sm font-medium`,children:[`Signing in to `,e.vault]}),(o||e.code)&&a&&(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[e.code&&(0,K.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,K.jsx)(`span`,{className:`text-sm text-muted`,children:`Your code`}),(0,K.jsx)(`span`,{className:`rounded-[8px] border border-line bg-bg px-3 py-1.5 font-mono text-lg font-semibold tracking-[0.12em]`,children:e.code}),(0,K.jsxs)(R,{size:`sm`,"aria-label":`Copy the code`,onClick:()=>{navigator.clipboard?.writeText(e.code).then(()=>i(!0)),setTimeout(()=>i(!1),1500)},children:[(0,K.jsx)(S,{"aria-hidden":`true`}),r?`Copied`:`Copy`]})]}),o&&(0,K.jsxs)(`a`,{href:o,target:`_blank`,rel:`noreferrer noopener`,className:rn({variant:`primary`,size:`sm`}),children:[(0,K.jsx)(Qe,{"aria-hidden":`true`}),`Open `,new URL(o).host]})]}),(0,K.jsxs)(`ul`,{className:`m-0 flex list-none flex-col gap-1 p-0 text-sm`,children:[e.lines.slice(-6).map((t,n)=>(0,K.jsx)(`li`,{className:L(`[overflow-wrap:anywhere]`,n===e.lines.slice(-6).length-1&&e.state===`done`?`text-pass`:n===e.lines.slice(-6).length-1&&e.state===`failed`?`text-fail`:`text-ink-2`),children:t},n)),a&&(0,K.jsx)(`li`,{className:`text-muted`,children:`Waiting for you to finish in the browser…`})]}),(0,K.jsx)(`div`,{children:a?(0,K.jsx)(R,{size:`sm`,onClick:t,children:`Cancel`}):(0,K.jsx)(R,{size:`sm`,onClick:n,children:`Close`})})]})}var pC={testmu:`TestMu AI`,browserstack:`BrowserStack`},mC={testmu:{provider:`testmu`,remote:{username_env:`LT_USERNAME`,access_key_env:`LT_ACCESS_KEY`}},browserstack:{provider:`browserstack`,remote:{username_env:`BROWSERSTACK_USERNAME`,access_key_env:`BROWSERSTACK_ACCESS_KEY`}}},hC=(...e)=>e.map(([e,t])=>({value:e,label:t})),gC={testmu:[{key:`type`,label:`Type`,type:`select`,default:`real`,options:hC([`real`,`Real device`],[`virtual`,`Emulator or simulator`])},{key:`platform`,label:`Platform`,type:`select`,default:`android`,options:hC([`android`,`Android`],[`ios`,`iOS`])},{key:`model`,label:`Device model`,help:`As TestMu AI names it.`,type:`text`,placeholder:`Galaxy S23`},{key:`os_version`,label:`OS version`,type:`text`,placeholder:`13`},{key:`enabled`,label:`Use in runs`,help:`Off: kept here, run only when a run names it.`,type:`switch`,default:!0}],browserstack:[{key:`platform`,label:`Platform`,type:`select`,default:`android`,options:hC([`android`,`Android`],[`ios`,`iOS`])},{key:`model`,label:`Device model`,help:`As BrowserStack names it. Real devices only.`,type:`text`,placeholder:`Google Pixel 7`},{key:`os_version`,label:`OS version`,type:`text`,placeholder:`13.0`},{key:`enabled`,label:`Use in runs`,help:`Off: kept here, run only when a run names it.`,type:`switch`,default:!0}]},_C=`Kept in your credential store; the file has only the variable's name. The same sign-in as its browsers.`,vC={testmu:[{key:`remote.username_env`,label:`TestMu AI user`,help:_C,type:`var`,default:`LT_USERNAME`},{key:`remote.access_key_env`,label:`TestMu AI key`,help:_C,type:`var`,default:`LT_ACCESS_KEY`},{key:`mobile.region`,label:`Region for devices`,type:`text`,placeholder:`us`}],browserstack:[{key:`remote.username_env`,label:`BrowserStack user`,help:_C,type:`var`,default:`BROWSERSTACK_USERNAME`},{key:`remote.access_key_env`,label:`BrowserStack key`,help:_C,type:`var`,default:`BROWSERSTACK_ACCESS_KEY`}]};function yC(e){return[e.type===`virtual`?e.platform===`ios`?`simulator`:`emulator`:`real device`,`${e.platform===`ios`?`iOS`:`Android`}${e.os_version?` ${String(e.os_version)}`:``}`,e.model,e.enabled===!1?`not in use`:``].filter(Boolean).map(String).join(` · `)}function bC({grids:e,setGrids:t,paths:n,vars:r}){return(0,K.jsx)(K.Fragment,{children:[`testmu`,`browserstack`].map(i=>{let a=pC[i],o={value:e[i]??mC[i],set:n=>t({...e,[i]:n}),vars:r,file:n[i]};return(0,K.jsxs)(`div`,{children:[(0,K.jsx)(W,{help:(0,K.jsxs)(K.Fragment,{children:[`Kept in `,(0,K.jsx)(`code`,{className:`font-mono text-[12.5px]`,children:n[i]}),`, `,a,`'s own file`,e[i]?``:`, made when you add a device`,`. Its browsers and their devices are in the same file:`,` `,(0,K.jsxs)(`a`,{href:zt(`settings`,`integrations`),children:[`Integrations → `,a]}),`.`]}),children:`${a} devices`}),(0,K.jsx)(Go,{edit:o,base:[`mobile`,`devices`],defs:gC[i],noun:`${a} device`,placeholder:i===`testmu`?`galaxy-s23`:`pixel7`,start:i===`testmu`?{type:`real`,platform:`android`}:{platform:`android`},meta:yC}),(0,K.jsx)(xn,{defs:vC[i],edit:o,base:[]})]},i)})})}var xC=(0,G.lazy)(()=>B(()=>import(`./Features-BIrW3AiQ.js`).then(e=>({default:()=>(0,K.jsx)(e.Features,{embedded:!0})})),__vite__mapDeps([0,1,2,3,4]))),SC=(0,G.lazy)(()=>B(()=>import(`./WhatsNew-DU5k6dz6.js`).then(e=>({default:()=>(0,K.jsx)(e.WhatsNew,{embedded:!0})})),__vite__mapDeps([5,1,2,3]))),CC=[{id:`setup`,group:`Start`,icon:ae,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:C,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:le,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:je,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:j,label:`Integrations`,file:`forgeqe.yaml`,intro:`Test case systems and bugs (sources:), and remote browser grids (browser.providers).`},{id:`notifications`,group:`General`,icon:Re,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:ut,label:`Appearance`,file:`forgeqe.yaml`,intro:`The project's logo, name and colours in this web app, for everyone who opens it (theme:).`},{id:`models`,group:`AI`,icon:ge,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:T,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:D,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:nt,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:Xe,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:ye,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:ft,label:`Evidence`,file:`forgeqe.yaml`,intro:`What Evidence and 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:pe,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:v,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:Ge,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:O,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:g,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:Ze,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:te,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:he,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:qe,label:`Desktop`,file:`forgeqe.yaml`,intro:`How Windows desktop apps replay (desktop:). The apps themselves are in Environments.`},{id:`containers`,group:`Testing`,icon:Ye,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:ne,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:f,label:`Quality`,file:`forgeqe.yaml`,intro:`Accessibility, performance, visual and API checks on every page a run visits.`},{id:`logs`,group:`Activity`,icon:o,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:h,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:`tokenomics`,group:`Activity`,icon:fe,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:oe,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:it,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:at,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:we,label:`What's ready`,file:``,intro:`What ForgeQE can do here. Pick one to see what it needs.`},{id:`whats-new`,group:`Advanced`,icon:N,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:y,label:`About ForgeQE`,file:``,intro:`The version of ForgeQE on this computer, updating it, and its guides.`}],wC=[`guardrails`,`skills`,`prompts`],TC=CC.filter(e=>!wC.includes(e.id)),EC=[...new Set(TC.map(e=>e.group))],DC=[`setup`,`environments`,`signins`,`secrets`,`integrations`,`notifications`,`appearance`,`models`,`databases`,`features`,`whats-new`,`report`,`about`],OC=`forgeqe-settings-more`,kC={config:`forgeqe.yaml`,models:`llms.json`,environments:`the environment files`,guardrails:`guardrails.md`,grids:`the browser grid files`,secrets:`keys and passwords`};function AC(e,t){let n=e.paths.base.replace(/[\\/]+$/,``);return t.startsWith(`${n}/`)||t.startsWith(`${n}\\`)?`./${t.slice(n.length+1).replace(/\\/g,`/`)}`:t}function jC(e){return{config:e.config,models:e.models,environments:e.environments,guardrails:e.guardrails.filter(e=>e.editable).map(e=>e.text),grids:{browserstack:e.grids.browserstack.linked?e.grids.browserstack.value:null,testmu:e.grids.testmu.linked?e.grids.testmu.value:null},secrets:{}}}var MC={local:`This computer`,browserstack:`BrowserStack`,testmu:`TestMu AI`};function NC(e){let t=MC[String(e.runs_on??`local`)]??String(e.runs_on),n=e.type===`real`||e.type===void 0&&e.runs_on!==void 0&&e.runs_on!==`local`?`real device`:e.platform===`ios`?`simulator`:`emulator`,r=`${e.platform===`ios`?`iOS`:`Android`}${e.os_version?` ${String(e.os_version)}`:``}`;return[`${t}, ${n}`,r,e.model||e.udid,e.enabled===!1?`not in use`:``].filter(Boolean).map(String).join(` · `)}function PC({section:e,only:t}){let n=t??e,[r,i]=(0,G.useState)(null),[a,o]=(0,G.useState)(null),[c,l]=(0,G.useState)(``),[u,d]=(0,G.useState)(``),[f,m]=(0,G.useState)(``),[h,g]=(0,G.useState)(!1),[_,v]=(0,G.useState)(!1),[y,b]=(0,G.useState)(null),x=(0,G.useCallback)(()=>{l(``),Rt.settings().then(e=>{i(e),o(jC(e))},e=>l(e.message))},[]),S=(0,G.useCallback)(()=>{l(``),ht.state().then(e=>{b(e),e.ready&&x()},e=>l(e.message))},[x]);(0,G.useEffect)(S,[S]);let C=e=>{e.project===y?.project&&e.ready||(i(null),o(null)),b(e),e.ready&&x()},w=!!y?.ready;(0,G.useEffect)(()=>{y&&!w&&n!==`setup`?location.replace(zt(`settings`,`setup`)):!t&&n&&wC.includes(n)&&location.replace(zt(n))},[y,w,n]);let T=(y&&!w?CC[0]:CC.find(e=>e.id===(n===`repo-tokens`?`secrets`:n)))||CC.find(e=>e.id===`models`),[E,D]=(0,G.useState)(()=>{try{return localStorage.getItem(OC)===`open`}catch{return!1}}),O=e=>{D(e);try{localStorage.setItem(OC,e?`open`:`closed`)}catch{}};(0,G.useEffect)(()=>{m(``),d(``),v(!1)},[T.id]);let k=r?jC(r):null,A=e=>!!a&&!!k&&!yr(a[e],k[e]),j=Object.keys(kC).filter(A);(0,G.useEffect)(()=>{if(!j.length)return;let e=e=>e.preventDefault();return window.addEventListener(`beforeunload`,e),()=>window.removeEventListener(`beforeunload`,e)},[j.length]);let M=e=>({value:a[e],set:t=>{m(``),o(n=>({...n,[e]:t}))},vars:r.variables,...e===`config`?{file:`forgeqe.yaml`}:{}}),N=(0,G.useRef)(a);N.current=a;let P=(0,G.useRef)(r);P.current=r;let[te,ne]=(0,G.useState)(``),re=(0,G.useCallback)(async()=>{let e=N.current,t=P.current;if(!e||!t)return;let n=jC(t),r=Object.keys(kC).filter(t=>!yr(e[t],n[t]));if(!r.length)return;g(!0),d(``),v(!1);let a=t,s=(t,n)=>o(r=>{if(!r)return r;let i=jC(t),a={...r};for(let t of Object.keys(kC))if(t===`secrets`){if(!n)continue;a.secrets=Object.fromEntries(Object.entries(r.secrets).filter(([t,n])=>e.secrets[t]!==n))}else(n?yr(r[t],e[t]):yr(r[t],i[t]))&&(a[t]=i[t]);return a});try{for(let i of r)if(i===`secrets`)a=await Rt.saveSecrets(e.secrets);else if(i===`grids`)for(let[r,i]of Object.entries(e.grids))i&&!yr(i,n.grids[r])&&(a=await Rt.saveGrid(r,i,t.versions[`grid:${r}`]));else a=i===`guardrails`?await Rt.saveGuardrails(e.guardrails,t.versions.guardrails):await Rt.save(i,e[i],t.versions[i]);i(a),s(a,!0),ne(``),m(`Saved`)}catch(n){d(n.message),v(n instanceof bt&&n.status===409),ne(JSON.stringify(e)),a!==t&&(i(a),s(a,!1))}finally{g(!1)}},[]);(0,G.useEffect)(()=>{if(!f)return;let e=setTimeout(()=>m(``),4e3);return()=>clearTimeout(e)},[f]);let ie=a?JSON.stringify(a):``;(0,G.useEffect)(()=>{if(!j.length||h||_||te&&te===ie)return;let e=j.every(e=>e===`secrets`),t=setTimeout(re,e?2e3:1e3);return()=>clearTimeout(t)},[ie,h,_,te]);let ae=async()=>{d(``);try{let e=await Rt.splitEnvironments();i(e),o(jC(e)),m(`Each environment is now its own file in environments/. The old file is left as it is; ForgeQE no longer reads it.`)}catch(e){d(e.message)}},F=async(e,t,n)=>{d(``);try{let a=await Rt.saveText(e,t,n,r?.versions[e]);return i(a),o(jC(a)),m(`Saved ${kC[e]}.`),!0}catch(e){return d(e.message),!1}},I=null;if(T.id===`setup`)I=y&&(0,K.jsx)(Gx,{state:y,onState:C});else if(r&&a){let e=(T.id===`models`||T.id===`routing`?[`models`,`config`]:T.id===`environments`?[`environments`,`config`]:[`files`,`guardrails`,`prompts`,`logs`,`audit`,`generated`,`about`,`report`,`features`,`whats-new`].includes(T.id)?[]:[`config`]).find(e=>r.errors[e]);switch(T.id){case`models`:I=(0,K.jsx)(ac,{config:M(`config`),models:M(`models`),vars:r.variables,onReload:x});break;case`environments`:I=(0,K.jsx)(zs,{envs:M(`environments`),layout:r.paths.environments,files:r.raw.environments,base:r.paths.base,onSplit:ae,config:M(`config`),splitBlocked:A(`environments`)||A(`config`)?`Save or discard your changes to the environments and forgeqe.yaml first.`:``});break;case`browser`:I=(0,K.jsx)(jo,{groups:fc,edit:M(`config`)});break;case`appearance`:I=(0,K.jsx)(MS,{config:M(`config`)});break;case`routing`:I=(0,K.jsx)(dc,{config:M(`config`),models:M(`models`)});break;case`generated`:I=(0,K.jsx)(tS,{});break;case`about`:I=(0,K.jsx)(Qx,{});break;case`features`:case`whats-new`:I=(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 text-sm text-muted`,children:`Opening…`}),children:T.id===`features`?(0,K.jsx)(xC,{}):(0,K.jsx)(SC,{})});break;case`report`:I=(0,K.jsx)(uS,{});break;case`notifications`:case`mcp`:I=(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Tx,{view:T.id,edit:M(`config`),grids:a.grids,setGrids:e=>o(t=>({...t,grids:e})),gridPaths:{browserstack:AC(r,r.grids.browserstack.file),testmu:AC(r,r.grids.testmu.file)}}),T.id===`notifications`&&(0,K.jsx)($x,{})]});break;case`parallel`:I=(0,K.jsx)(jo,{groups:Dc,edit:M(`config`)});break;case`mobile`:I=(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(jo,{groups:Oc,edit:M(`config`)}),(0,K.jsx)(W,{help:`Phones, tablets, emulators and simulators connected to this computer. Every device in use, here and on the clouds below, runs each replay and set of Maestro flows; ForgeQE sets up Appium, Maestro and the cloud for each.`,children:`Devices on this computer`}),(0,K.jsx)(Go,{edit:M(`config`),base:[`mobile`,`devices`],defs:Ac,noun:`device`,placeholder:`pixel8`,start:{type:`virtual`,platform:`android`},meta:NC}),(0,K.jsx)(bC,{grids:a.grids,setGrids:e=>{m(``),o(t=>({...t,grids:e}))},paths:{browserstack:AC(r,r.grids.browserstack.file),testmu:AC(r,r.grids.testmu.file)},vars:r.variables}),(0,K.jsx)(jo,{groups:jc,edit:M(`config`),continued:!0})]});break;case`desktop`:I=(0,K.jsx)(jo,{groups:Mc,edit:M(`config`)});break;case`containers`:I=(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(jo,{groups:Nc.slice(0,1),edit:M(`config`)}),(0,K.jsx)(W,{help:`Each one ForgeQE may start, stop and read: a database, a queue, the API under test.`,children:`Services`}),(0,K.jsx)(Go,{edit:M(`config`),base:[`containers`,`services`],defs:Ic,noun:`service`,placeholder:`db`,meta:e=>[e.image,Array.isArray(e.ports)?`ports ${e.ports.join(`, `)}`:``].filter(Boolean).map(String).join(`, `)}),(0,K.jsx)(jo,{groups:Nc.slice(1),edit:M(`config`),continued:!0})]});break;case`databases`:I=(0,K.jsx)(Go,{edit:M(`config`),base:[`databases`],defs:Lc,noun:`database`,placeholder:`orders`,meta:e=>[e.description,e.engine,e.url_env?`from ${e.url_env}`:e.host,e.writable?`writable`:`read only`].filter(Boolean).map(String).join(`, `)});break;case`signins`:I=(0,K.jsx)(Lo,{edit:M(`config`)});break;case`secrets`:I=(0,K.jsx)(cC,{show:n===`repo-tokens`?`tokens`:void 0});break;case`integrations`:I=(0,K.jsx)(Tx,{edit:M(`config`),grids:a.grids,setGrids:e=>{m(``),o(t=>({...t,grids:e}))},gridPaths:{browserstack:AC(r,r.grids.browserstack.file),testmu:AC(r,r.grids.testmu.file)}});break;case`tests`:I=(0,K.jsx)(jo,{groups:pc,edit:M(`config`)});break;case`runs`:I=(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(jo,{groups:mc,edit:M(`config`)}),(0,K.jsx)(jo,{groups:Tc,edit:M(`config`),continued:!0}),(0,K.jsx)(W,{help:`Each one a table of the project report: forgeqe.<name>.`,children:`Report datasets`}),(0,K.jsx)(Go,{edit:M(`config`),base:[`bi`,`datasets`],defs:Ec,noun:`dataset`,placeholder:`open_bugs`,meta:e=>[e.title,e.kind===`jira_jql`?`Jira`:e.kind===`ado_wiql`?`Azure DevOps`:``].filter(Boolean).map(String).join(`, `)})]});break;case`quality`:I=(0,K.jsx)(jo,{groups:hc,edit:M(`config`)});break;case`evidence`:I=(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(WS,{edit:M(`config`)}),(0,K.jsx)(eS,{})]});break;case`agents`:I=(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(jo,{groups:xc,edit:M(`config`)}),(0,K.jsx)(dS,{config:M(`config`)})]});break;case`guardrails`:I=(0,K.jsx)(Fx,{rules:a.guardrails,others:r.guardrails.filter(e=>!e.editable),onChange:e=>o({...a,guardrails:e}),onChanged:e=>(m(e),Rt.settings().then(i,()=>{}))});break;case`monitor`:I=(0,K.jsx)(Mx,{edit:M(`config`)});break;case`skills`:I=(0,K.jsx)(Ss,{edit:M(`config`)});break;case`prompts`:I=(0,K.jsx)(ys,{onChanged:m});break;case`registry`:I=(0,K.jsx)(Sn,{edit:M(`config`)});break;case`logs`:I=(0,K.jsx)(Xn,{});break;case`audit`:I=(0,K.jsx)(fn,{});break;case`tokenomics`:I=(0,K.jsx)(yn,{edit:M(`config`)});break;case`files`:I=(0,K.jsx)(Uo,{snap:r,dirty:{config:A(`config`),models:A(`models`),environments:A(`environments`)},onSave:F})}e&&(I=(0,K.jsxs)(`p`,{role:`alert`,className:`m-0 rounded-[12px] bg-fail-soft px-4 py-3 text-sm leading-relaxed text-fail`,children:[e===`environments`?`An environment file`:kC[e],` does not parse, so the form cannot show it: `,r.errors[e],`. Fix it in `,(0,K.jsx)(`a`,{href:zt(`settings`,`files`),children:`Settings as text`}),`.`]}))}let oe=u?(0,K.jsxs)(`div`,{role:`alert`,className:`flex w-full flex-wrap items-center gap-3 rounded-[14px] border border-fail-soft bg-fail-soft px-4 py-3 text-sm leading-relaxed text-fail shadow-composer`,children:[(0,K.jsx)(`span`,{className:`flex-[1_1_260px] [overflow-wrap:anywhere]`,children:u}),_?(0,K.jsxs)(R,{size:`sm`,onClick:()=>{v(!1),d(``),ne(``),S()},"data-tip":`Reload, and lose my unsaved changes`,children:[(0,K.jsx)(ee,{"aria-hidden":`true`}),`Reload`]}):(0,K.jsxs)(`span`,{className:`flex gap-2`,children:[j.length>0&&(0,K.jsxs)(R,{size:`sm`,onClick:()=>{o(k),d(``),ne(``)},"data-tip":`Undo my change`,children:[(0,K.jsx)(be,{"aria-hidden":`true`}),`Undo`]}),(0,K.jsxs)(R,{size:`sm`,onClick:()=>{d(``),ne(``),re()},children:[(0,K.jsx)(p,{"aria-hidden":`true`}),`Retry`]})]})]}):null,se={pending:a?.secrets||{},set:(e,t)=>{m(``),o(n=>{let r={...n.secrets};return t===void 0?delete r[e]:r[e]=t,{...n,secrets:r}})},saved:new Set(r?.saved||[]),vars:r?.variables||{},store:r?.store||`the credential store`};return(0,K.jsx)(Dn.Provider,{value:se,children:(0,K.jsxs)(`div`,{className:`settings-fields flex min-h-(--screen) flex-col`,children:[(0,K.jsx)(cr,{}),(0,K.jsxs)(`main`,{className:L(`box-border flex w-full flex-auto flex-col items-stretch sm:flex-row sm:items-start`,t&&`mx-auto box-border flex w-full max-w-[1180px] flex-col px-6 pt-8 pb-10 md:px-12 short:pt-5 short:pb-6`),children:[(0,K.jsxs)(`div`,{className:L(`theme-side theme-side--wide w-full flex-col gap-3 border-line px-3 pt-5 pb-4 sm:sticky sm:top-0 sm:h-(--screen) sm:w-[248px] sm:flex-none sm:overflow-y-auto sm:border-r sm:bg-surface-muted`,t?`hidden`:`flex`),children:[(0,K.jsxs)(`a`,{href:zt(),className:`inline-flex min-h-9 items-center gap-2 self-start rounded-[8px] px-2 text-[13.5px] font-medium text-ink-2 no-underline hover:bg-surface-strong hover:text-ink`,children:[(0,K.jsx)(xe,{size:16,"aria-hidden":`true`}),`Back`]}),(0,K.jsx)(`p`,{className:`m-0 px-2 pt-1 text-[15px] font-semibold`,children:`Settings`}),(0,K.jsx)(LC,{ready:w}),(0,K.jsx)(`label`,{htmlFor:`section-pick`,className:`sr-only`,children:`Section`}),(0,K.jsx)(Yt,{id:`section-pick`,value:T.id,onChange:e=>location.hash=zt(`settings`,e.target.value),className:`sm:hidden`,children:EC.map(e=>(0,K.jsx)(`optgroup`,{label:e,children:TC.filter(t=>t.group===e).map(e=>(0,K.jsx)(`option`,{value:e.id,disabled:!w&&e.id!==`setup`,children:e.label},e.id))},e))}),(0,K.jsxs)(`nav`,{"aria-label":`Settings sections`,className:`hidden flex-col gap-3 sm:flex`,children:[(0,K.jsx)(FC,{sections:TC.filter(e=>DC.includes(e.id)),current:T.id,locked:!!y&&!w}),(0,K.jsx)(IC,{open:E||!DC.includes(T.id),onToggle:()=>O(!E),children:(0,K.jsx)(FC,{sections:TC.filter(e=>!DC.includes(e.id)),current:T.id,locked:!!y&&!w})})]})]}),(0,K.jsxs)(`section`,{"aria-labelledby":`sec-h`,className:L(`flex min-w-0 flex-1 flex-col`,!t&&`mx-auto box-border flex w-full max-w-[1180px] flex-col px-6 pt-8 pb-10 md:px-12 short:pt-5 short:pb-6`),children:[t?(0,K.jsxs)(`div`,{className:`mb-1 flex items-center gap-3`,children:[(0,K.jsx)(Tn,{icon:T.icon,pixel:_r[T.id],size:`lg`}),(0,K.jsx)(`h1`,{id:`sec-h`,className:`m-0 text-[26px] font-semibold tracking-[-0.01em]`,children:T.label})]}):(0,K.jsxs)(`h1`,{id:`sec-h`,className:`m-0 mb-2 flex items-center gap-3 text-[26px] leading-tight font-semibold tracking-[-0.01em]`,children:[(0,K.jsx)(Vt,{icon:T.icon,size:22,className:`flex-none text-muted`}),T.label]}),(0,K.jsxs)(`p`,{className:`mt-0 mb-10 max-w-[64ch] text-[14px] leading-relaxed text-ink-2`,children:[T.intro,T.file&&r&&(0,K.jsxs)(K.Fragment,{children:[` `,`Saved in `,(0,K.jsx)(`span`,{className:`font-mono text-[12.5px]`,children:T.file}),`.`]})]}),c&&(0,K.jsxs)(`div`,{role:`alert`,className:`flex flex-col items-start gap-4 border-t border-line pt-6`,children:[(0,K.jsx)(`p`,{className:`m-0 max-w-[60ch] leading-relaxed text-ink-2`,children:c}),(0,K.jsxs)(R,{size:`sm`,onClick:S,children:[(0,K.jsx)(p,{"aria-hidden":`true`}),`Retry`]})]}),y&&!w&&(0,K.jsxs)(`p`,{className:`mt-0 mb-5 flex items-start gap-2 rounded-[12px] bg-surface-muted px-4 py-3 text-sm leading-relaxed text-ink-2`,children:[(0,K.jsx)(je,{size:16,"aria-hidden":`true`,className:`mt-0.5 flex-none`}),`The other sections open once ForgeQE is set up in a project folder: choose the folder, then Set up.`]}),!c&&(!y||T.id!==`setup`&&!r)&&(0,K.jsx)(`p`,{role:`status`,className:`m-0 text-sm text-muted`,children:`Loading settings…`}),I,(0,K.jsxs)(`div`,{className:`sticky bottom-4 z-10 mt-8 flex flex-col items-end gap-2`,children:[oe,(0,K.jsx)(`div`,{"aria-live":`polite`,className:`contents`,children:!u&&(j.length>0||h||f)&&(0,K.jsx)(`span`,{className:L(`inline-flex min-h-9 items-center gap-2 rounded-full border border-line bg-bg px-4 text-[13px] shadow-composer`,j.length||h?`text-ink-2`:`text-pass`),children:j.length||h?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Kt,{state:`working`,px:16}),`Saving…`]}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(s,{size:14,"aria-hidden":`true`}),f]})})})]})]})]})]})})}function FC({sections:e,current:t,locked:n}){let r=[...new Set(e.map(e=>e.group))];return(0,K.jsx)(K.Fragment,{children:r.map(r=>{let i=`group-${r}-${e[0]?.id}`;return(0,K.jsxs)(`div`,{role:`group`,"aria-labelledby":i,className:`flex flex-col gap-px`,children:[(0,K.jsx)(`span`,{id:i,className:`px-2 pt-1 pb-1 text-[12px] font-medium text-muted`,children:r}),e.filter(e=>e.group===r).map(e=>n&&e.id!==`setup`?(0,K.jsxs)(`span`,{"aria-disabled":`true`,"data-tip":`Set up ForgeQE in a project folder first`,className:`flex min-h-8 cursor-not-allowed items-center gap-2.5 rounded-[7px] px-2 text-[13.5px] text-muted opacity-60`,children:[(0,K.jsx)(Vt,{icon:e.icon,size:16,className:`flex-none`}),(0,K.jsx)(`span`,{className:`flex-1`,children:e.label}),(0,K.jsx)(je,{size:13,"aria-label":`Locked`,className:`flex-none`})]},e.id):(0,K.jsxs)(`a`,{href:zt(`settings`,e.id),"aria-current":t===e.id?`page`:void 0,className:L(`group flex min-h-8 items-center gap-2.5 rounded-[7px] px-2 text-[13.5px] no-underline`,t===e.id?`bg-surface-strong font-medium text-ink hover:text-ink`:`text-ink-2 hover:bg-surface-strong hover:text-ink`),children:[(0,K.jsx)(Vt,{icon:e.icon,size:16,className:L(`flex-none`,t===e.id?`text-ink`:`text-muted group-hover:text-ink`)}),e.label]},e.id))]},r)})})}function IC({open:e,onToggle:t,children:n}){return(0,K.jsxs)(`div`,{className:`flex flex-col gap-3 border-t border-line-soft pt-2`,children:[(0,K.jsxs)(`button`,{type:`button`,"aria-expanded":e,"aria-controls":`settings-more`,onClick:t,className:`flex h-7 cursor-pointer items-center gap-1 rounded-[6px] border-0 bg-transparent px-2 text-left text-[12px] font-medium text-muted hover:text-ink`,children:[(0,K.jsx)(`span`,{className:`flex-1`,children:`More settings`}),(0,K.jsx)(l,{size:14,strokeWidth:2,"aria-hidden":`true`,className:L(`flex-none transition-transform duration-200`,e&&`rotate-90`)})]}),(0,K.jsx)($n,{open:e,id:`settings-more`,children:(0,K.jsx)(`div`,{className:`flex flex-col gap-3`,children:n})})]})}function LC({ready:e}){let[t,n]=(0,G.useState)(``),r=t.toLowerCase().split(/\s+/).filter(Boolean),i=e=>CC.find(t=>t.id===e)?.label||e,a=r.length?Bx.filter(e=>r.every(t=>`${e.label} ${e.key} ${i(e.section)}`.toLowerCase().includes(t))).slice(0,12):[];return(0,K.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,K.jsx)(`label`,{htmlFor:`find-setting`,className:`sr-only`,children:`Find a setting`}),(0,K.jsx)(z,{size:`sm`,id:`find-setting`,type:`search`,value:t,disabled:!e,placeholder:`Search settings`,className:`bg-bg`,"data-tip":`By its name or its forgeqe.yaml key: max attempts, memory.dir`,onChange:e=>n(e.target.value)}),r.length>0&&(0,K.jsxs)(`ul`,{"aria-label":`Settings found`,className:`m-0 flex list-none flex-col p-0`,children:[a.length===0&&(0,K.jsx)(`li`,{className:`px-2 py-2 text-[13px] text-muted`,children:`Nothing called that. Every key can also be edited in Settings as text.`}),a.map(e=>(0,K.jsx)(`li`,{children:(0,K.jsxs)(`a`,{href:zt(`settings`,e.section),onClick:()=>n(``),className:`flex flex-col rounded-[10px] px-2 py-1.5 text-ink no-underline hover:bg-surface-muted hover:text-ink`,children:[(0,K.jsx)(`span`,{className:`text-sm`,children:e.label}),(0,K.jsxs)(`span`,{className:`text-[12px] text-muted`,children:[i(e.section),` · `,(0,K.jsx)(`code`,{className:`font-mono text-[11.5px]`,children:e.key})]})]})},`${e.section}:${e.key}`))]})]})}var RC=class extends G.Component{state={failed:!1,at:this.props.at};static getDerivedStateFromError(){return{failed:!0}}static getDerivedStateFromProps(e,t){return e.at===t.at?null:{failed:!1,at:e.at}}componentDidCatch(e){console.error(`This page could not be shown:`,e)}render(){return this.state.failed?(0,K.jsxs)(`div`,{role:`alert`,className:`m-0 px-6 py-10 text-sm text-muted`,children:[(0,K.jsx)(`p`,{className:`m-0`,children:`This page could not be shown. Check the address, or go back and try again.`}),(0,K.jsx)(`p`,{className:`m-0 mt-2`,children:(0,K.jsx)(`a`,{href:zt(),className:`underline`,children:`Go to Home`})})]}):this.props.children}};function zC(e,t){let n,r,i=()=>r??=e().then(e=>n=t(e),e=>{throw r=void 0,e}),a=(0,G.lazy)(()=>i().then(()=>({default:n})));return Object.assign(e=>(0,G.createElement)(n||a,e),{preload:i})}var BC=()=>B(()=>import(`./Chat-BtLEKYY8.js`),__vite__mapDeps([6,1,2,3,7,4,8,9,10])),VC=zC(BC,e=>e.Chat),HC=zC(BC,e=>e.Chats),UC=zC(()=>B(()=>import(`./Reports-IdoUvtaW.js`),__vite__mapDeps([11,1,2,3,4,12,13])),e=>e.Reports),WC=zC(()=>B(()=>import(`./Agent-B_mG1pww.js`),__vite__mapDeps([14,1,2,3,4,7,8,12,15,16,17,18,19,20,21,13])),e=>e.Agent),GC=zC(()=>B(()=>import(`./Runs-BhDgzDo4.js`),__vite__mapDeps([21,1,2,3,4,7,8,12,13])),e=>e.Runs),KC=zC(()=>B(()=>import(`./Record-O8LOzHLo.js`),__vite__mapDeps([22,1,2,3,4,12,8,10,23,17])),e=>e.Record),qC=zC(()=>B(()=>import(`./Desktop-CgDXi3lX.js`),__vite__mapDeps([24,1,2,3,4,12,17,23])),e=>e.Desktop),JC=zC(()=>B(()=>import(`./Regression-DbShD6ji.js`),__vite__mapDeps([25,1,2,3,7,4,8,16])),e=>e.Regression),YC=zC(()=>B(()=>import(`./Impact-D5a5fyc2.js`),__vite__mapDeps([26,1,2,3,12,19,27])),e=>e.Impact),XC=zC(()=>B(()=>import(`./ApiTests-C2QIp_tG.js`),__vite__mapDeps([28,1,2,3,4,7,8,16])),e=>e.ApiTests),ZC=zC(()=>B(()=>import(`./Migration-DbuzD_s4.js`),__vite__mapDeps([29,1,2,3,4,12,13,30,31,32])),e=>e.Migration),QC=zC(()=>B(()=>import(`./Tosca-DOT6-53c.js`),__vite__mapDeps([33,1,2,3,4,12,13,30,31,32,34])),e=>e.Tosca),$C=zC(()=>B(()=>import(`./Compare-DQNg3ldO.js`),__vite__mapDeps([35,1,2,31,34,4,32,12])),e=>e.ToscaCompare),ew=zC(()=>B(()=>import(`./Quality-CI5n8b_k.js`),__vite__mapDeps([36,1,2,3,4,12,20])),e=>e.Quality),tw=zC(()=>B(()=>import(`./Flaky-ChKBXlcW.js`),__vite__mapDeps([37,1,2,3,12,20,4,13])),e=>e.Flaky),nw=zC(()=>B(()=>import(`./RunDiff-uQoK3Q6q.js`),__vite__mapDeps([38,1,2,3,12,20,4,13])),e=>e.RunDiff),rw=zC(()=>B(()=>import(`./TestDebt-_jer4Dmy.js`),__vite__mapDeps([39,1,2,3,20,4])),e=>e.TestDebt),iw=zC(()=>B(()=>import(`./Flags-sG1vr7NU.js`),__vite__mapDeps([40,1,2,3,20,4])),e=>e.Flags),aw=zC(()=>B(()=>import(`./Production-8h5LixDt.js`),__vite__mapDeps([41,1,2,3,4,20])),e=>e.Production),ow=zC(()=>B(()=>import(`./Cost-T0NH8ymc.js`),__vite__mapDeps([42,1,2,3,20,4])),e=>e.Cost),sw=zC(()=>B(()=>import(`./Explore-lG_kobPj.js`),__vite__mapDeps([43,1,2,3,20,4])),e=>e.Explore),cw=zC(()=>B(()=>import(`./Readiness-D4n4HSlW.js`),__vite__mapDeps([44,1,2,3,20,4])),e=>e.Readiness),lw=zC(()=>B(()=>import(`./TestCases-DQ2oWXt2.js`),__vite__mapDeps([45,1,2,3,4])),e=>e.TestCases),uw=zC(()=>B(()=>import(`./KindPage-BFoKPj7l.js`),__vite__mapDeps([46,1,2,3,4,7,8,16,20])),e=>e.Accessibility),dw=zC(()=>B(()=>import(`./KindPage-BFoKPj7l.js`),__vite__mapDeps([46,1,2,3,4,7,8,16,20])),e=>e.Performance),fw=zC(()=>B(()=>import(`./KindPage-BFoKPj7l.js`),__vite__mapDeps([46,1,2,3,4,7,8,16,20])),e=>e.Visual),pw=zC(()=>B(()=>import(`./Data-CqKsrslC.js`).then(e=>e.n),__vite__mapDeps([15,1,2,3,4,7,8,12,16,17])),e=>e.Data),mw=zC(()=>B(()=>import(`./TestData-D-ZdmHVa.js`).then(e=>e.n),__vite__mapDeps([18,1,2,3,12,17,4])),e=>e.TestData),hw=zC(()=>B(()=>import(`./Features-BIrW3AiQ.js`),__vite__mapDeps([0,1,2,3,4])),e=>e.Features),gw=zC(()=>B(()=>import(`./Jobs-B52pIZUx.js`),__vite__mapDeps([47,1,2,3,4,7,8,16])),e=>e.Jobs),_w=zC(()=>B(()=>import(`./Product-DiH61j0X.js`),__vite__mapDeps([48,1,2,3,12,19,49,27,32,50])),e=>e.Product),vw=zC(()=>B(()=>import(`./Evidence-1pipN6K6.js`),__vite__mapDeps([51,1,2,3,4,12,13,49])),e=>e.Evidence),yw=zC(()=>B(()=>import(`./WhatsNew-DU5k6dz6.js`),__vite__mapDeps([5,1,2,3])),e=>e.WhatsNew),bw=zC(()=>B(()=>import(`./Browse-zQoOQXpA.js`),__vite__mapDeps([52,1,2,3,53,9])),e=>e.Browse),xw={chats:HC,reports:UC,agents:WC,runs:GC,record:KC,desktop:qC,regression:JC,impact:YC,"api-tests":XC,migration:ZC,tosca:QC,quality:ew,flaky:tw,"run-diff":nw,"test-debt":rw,flags:iw,production:aw,cost:ow,explore:sw,readiness:cw,"test-cases":lw,accessibility:uw,performance:dw,visual:fw,data:pw,"test-data":mw,features:hw,jobs:gw,schedules:gw,product:_w,evidence:vw,"evidence-runs":vw,"evidence-contracts":vw,"evidence-review":vw,"evidence-releases":vw,"evidence-learn":vw,"evidence-monitor":vw,"whats-new":yw,browse:bw},Sw=e=>xw[e[0]||``]?.preload();function Cw(){let e=Xt(Sw),[t=``,n,...r]=e;Hn();let[,i]=(0,G.useState)(0),[a,o]=(0,G.useState)(0);return(0,G.useEffect)(()=>{let e=()=>Object.values(xw).forEach(e=>void e.preload().catch(()=>{}));if(typeof requestIdleCallback==`function`){let t=requestIdleCallback(e,{timeout:3e3});return()=>cancelIdleCallback(t)}let t=setTimeout(e,1500);return()=>clearTimeout(t)},[]),(0,G.useEffect)(()=>{nn.get().then(e=>{ln(e),i(e=>e+1)},()=>{})},[]),t===`tosca`&&n&&r[0]===`compare`?(0,K.jsx)(RC,{at:e.join(`/`),children:(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)($C,{id:n,caseId:r[1]?Lt(r[1]):void 0})})}):(0,K.jsxs)(qn,{current:t,route:e,children:[(0,K.jsx)($r,{onReload:()=>o(e=>e+1)}),(0,K.jsx)(G.Fragment,{children:(0,K.jsx)(RC,{at:e.join(`/`),children:(0,K.jsx)(ww,{page:t,sub:(t===`data`||t===`product`||t===`agents`||t===`runs`||t===`evidence`||t===`evidence-runs`||t===`accessibility`||t===`test-cases`||t===`quality`||t===`record`||t===`tosca`||t===`browse`)&&n?[n,...r].join(`/`):n})})},a)]})}function ww({page:e,sub:t}){if(e===`settings`)return(0,K.jsx)(PC,{section:t});if(e===`chats`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:t?(0,K.jsx)(VC,{id:t}):(0,K.jsx)(HC,{})});if(e===`reports`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(UC,{sub:t})});if(e===`jobs`||e===`schedules`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(gw,{sub:e===`jobs`?t:void 0})});if(e===`impact`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(YC,{})});if(e===`regression`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(JC,{sub:t})});if(e===`api-tests`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(XC,{sub:t})});if(e===`migration`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(ZC,{sub:t})});if(e===`tosca`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(QC,{sub:t})});if(e===`quality`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(ew,{sub:t})});if(e===`readiness`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(cw,{})});if(e===`explore`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(sw,{sub:t})});if(e===`cost`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(ow,{})});if(e===`production`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(aw,{})});if(e===`flags`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(iw,{})});if(e===`test-debt`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(rw,{sub:t})});if(e===`run-diff`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(nw,{sub:t})});if(e===`flaky`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(tw,{})});if(e===`test-cases`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(lw,{sub:t})});if(e===`accessibility`||e===`performance`||e===`visual`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(e===`accessibility`?uw:e===`performance`?dw:fw,{sub:t},e)});if(e===`data`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(pw,{sub:t})});if(e===`test-data`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(mw,{sub:t})});if(e===`features`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(hw,{})});if(e===`whats-new`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(yw,{})});if(e===`record`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(KC,{sub:t})});if(e===`desktop`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(qC,{sub:t})});if(e===`agents`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(WC,{id:t})});if(e===`runs`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(GC,{sub:t})});if(e===`product`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(_w,{sub:t})});if(e===`evidence`||e===`evidence-runs`||e===`evidence-contracts`||e===`evidence-review`||e===`evidence-releases`||e===`evidence-learn`||e===`evidence-monitor`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(vw,{page:e,sub:t})});if(e===`browse`)return(0,K.jsx)(G.Suspense,{fallback:(0,K.jsx)(`p`,{className:`m-0 px-6 py-10 text-sm text-muted`,children:`Opening…`}),children:(0,K.jsx)(bw,{sub:t})});if(e===`knowledge`)return(0,K.jsx)(Xo,{});if(e===`memory`)return(0,K.jsx)(cs,{});if(wC.includes(e))return(0,K.jsx)(PC,{only:e},e);let n=ls.find(t=>t.id===e);return n?(0,K.jsx)(us,{section:n}):(0,K.jsx)(Ao,{})}At(),jt(),Ot(),Xr(document),Yr(),(0,kr.createRoot)(document.getElementById(`root`)).render((0,K.jsx)(G.StrictMode,{children:(0,K.jsxs)(mr,{children:[(0,K.jsx)(Cw,{}),(0,K.jsx)(Kr,{})]})}));export{aa as A,ri as B,$a as C,pa as D,ga as E,$i as F,Gi as I,Qi as L,na as M,ra as N,ia as O,ea as P,li as R,eo as S,wa as T,ti as V,to as _,Bx as a,Za as b,Ho as c,_o as d,So as f,no as g,bo as h,rS as i,ta as j,oa as k,ko as l,To as m,wC as n,Ix as o,vo as p,nS as r,ux as s,CC as t,Ao as u,Ya as v,Ja as w,Qa as x,Xa as y,ci as z};
|