@capagents/forgeqe 3.3.3 → 3.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/HOW_TO_USE.md +18 -10
  2. package/dist/docs-site/docs/area-operations/index.html +18 -10
  3. package/dist/docs-site/docs/search.js +1 -1
  4. package/dist/forgeqe.js +1899 -1899
  5. package/dist/web/assets/Agent-d4YX63iA.js +10 -0
  6. package/dist/web/assets/{AgentWork-CqMhsFBP.js → AgentWork-DmCMV4YL.js} +1 -1
  7. package/dist/web/assets/ApiTests-C_L2iJ8s.js +17 -0
  8. package/dist/web/assets/{Chat-DO-UvDWX.js → Chat-DNiUvy2O.js} +1 -1
  9. package/dist/web/assets/{Compare-BFuLcrBB.js → Compare-CVvpgS-7.js} +1 -1
  10. package/dist/web/assets/{Cost-DbKrBm9m.js → Cost-DJnZYyQP.js} +1 -1
  11. package/dist/web/assets/{Data-B6_6Rm7C.js → Data-DEWYrB9n.js} +1 -1
  12. package/dist/web/assets/{Desktop-CnBxMp68.js → Desktop-Bm6ObXhU.js} +1 -1
  13. package/dist/web/assets/{DesktopReview-DVITz4Jv.js → DesktopReview-Bcs7E_SB.js} +1 -1
  14. package/dist/web/assets/{Evidence-BZx9UF1t.js → Evidence-D5fORfDF.js} +1 -1
  15. package/dist/web/assets/{Explore-Kkl9koqy.js → Explore-Dhwu33Xf.js} +1 -1
  16. package/dist/web/assets/{Features-_WrrIGBz.js → Features-D-HIDQqF.js} +1 -1
  17. package/dist/web/assets/{Flags-BGqG09qD.js → Flags-DEitGv3r.js} +1 -1
  18. package/dist/web/assets/{Flaky-B7mr96H8.js → Flaky-F5NHbFgI.js} +1 -1
  19. package/dist/web/assets/{Impact-DzAtWie1.js → Impact-eg2nHsiv.js} +1 -1
  20. package/dist/web/assets/{Jobs-YSmfG7C9.js → Jobs-GBUaaYcw.js} +1 -1
  21. package/dist/web/assets/{KindPage-UqU2qh63.js → KindPage-CaXbIzyO.js} +1 -1
  22. package/dist/web/assets/{Migration-CfHZeobD.js → Migration-ZhSPJ6QL.js} +5 -5
  23. package/dist/web/assets/{Mobile-DTMPjWeO.js → Mobile-ClrjICJt.js} +1 -1
  24. package/dist/web/assets/{Observability-B-9cikxK.js → Observability-CQ7WAuBH.js} +1 -1
  25. package/dist/web/assets/{OwnItems-BC9M20At.js → OwnItems-CedxNuRy.js} +1 -1
  26. package/dist/web/assets/{PageAgent-CvV8gwuP.js → PageAgent-CDYs-i-n.js} +1 -1
  27. package/dist/web/assets/{Product-lDXsflpD.js → Product-DyhX2TYr.js} +1 -1
  28. package/dist/web/assets/{Production-BHXWX-ww.js → Production-DSDdBODO.js} +1 -1
  29. package/dist/web/assets/{Quality-Bsljiu_v.js → Quality-CdrPT4WV.js} +1 -1
  30. package/dist/web/assets/{Readiness-BZppEirK.js → Readiness-C9qM2rKO.js} +1 -1
  31. package/dist/web/assets/{Record-7h0EFEiJ.js → Record-C790-f2w.js} +1 -1
  32. package/dist/web/assets/{Regression-DdM66t2E.js → Regression-PDhRTDKs.js} +1 -1
  33. package/dist/web/assets/{Reports-u72R1XBV.js → Reports-BBRMV5V8.js} +1 -1
  34. package/dist/web/assets/{Requirements-BAcEi5Fl.js → Requirements-DRz1Yudy.js} +2 -2
  35. package/dist/web/assets/{Responsive-CCPzSbdd.js → Responsive-DZXESkT1.js} +2 -2
  36. package/dist/web/assets/{RunDiff-CGhLqPpP.js → RunDiff-CsND-A6h.js} +1 -1
  37. package/dist/web/assets/{Settings-DDCiQZ0T.js → Settings-VqVLvH-Z.js} +3 -3
  38. package/dist/web/assets/{Steps-sfVkdv7g.js → Steps-6x6JVBmk.js} +1 -1
  39. package/dist/web/assets/{TestData-B4-xVlvt.js → TestData-hIJO8oL4.js} +1 -1
  40. package/dist/web/assets/{TestManagement-BGBKGV1L.js → TestManagement-SBq56JNZ.js} +1 -1
  41. package/dist/web/assets/{WhatsNew-BMTuBbaX.js → WhatsNew-BwV-yle3.js} +1 -1
  42. package/dist/web/assets/{agentSettingsSheet-Cc2W6lyp.js → agentSettingsSheet-CUOx_y4s.js} +1 -1
  43. package/dist/web/assets/{dataParts-CkwgLllh.js → dataParts-_X5zGtE9.js} +1 -1
  44. package/dist/web/assets/frame-CgBYYtdw.js +13 -0
  45. package/dist/web/assets/{index-6SZomYE0.js → index-D10waU4_.js} +5 -5
  46. package/dist/web/assets/index-DVlmTifI.css +2 -0
  47. package/dist/web/assets/{markdown-1wY7hIbM.js → markdown-CwgDQU8m.js} +5 -5
  48. package/dist/web/assets/{productParts-D18glCBr.js → productParts-CUvTBJkC.js} +1 -1
  49. package/dist/web/assets/{qualityParts-1F1Ee4Ay.js → qualityParts-BFDaQh7A.js} +1 -1
  50. package/dist/web/assets/stepper-C6U4inhc.js +1 -0
  51. package/dist/web/assets/{wizardParts-C0cNmIK9.js → wizardParts-fa6KdWVg.js} +1 -1
  52. package/dist/web/index.html +4 -4
  53. package/docs/user-guide.html +18 -10
  54. package/package.json +1 -1
  55. package/dist/web/assets/Agent-Bd54dLhD.js +0 -10
  56. package/dist/web/assets/ApiTests-BO_sKAg8.js +0 -15
  57. package/dist/web/assets/frame-BMpSUo2-.js +0 -13
  58. package/dist/web/assets/index-CWqwtFKz.css +0 -2
  59. package/dist/web/assets/stepper-DdgwJtbU.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/agentSettingsSheet-Cc2W6lyp.js","assets/rolldown-runtime-XKyaHtl9.js","assets/react-BDur5s0O.js","assets/route-oDy8sV6H.js","assets/jsx-runtime-LKYXHABd.js","assets/sectionList-B651VPon.js","assets/line-icons-CwCZidXs.js","assets/pageBack-CbyKfisx.js","assets/preload-helper-BupTYkQW.js","assets/utils-DJRAScIl.js","assets/api-BsiuHmJq.js","assets/nav-B_68FVw_.js","assets/frame-BMpSUo2-.js","assets/palette-6YAAmgkD.js","assets/Settings-DDCiQZ0T.js","assets/when-BuWCTaKm.js","assets/code-Jek8uWUO.js","assets/markdown-1wY7hIbM.js","assets/default-DB4ZMZxa.js","assets/coverage-pqIlfEP0.js","assets/step-mark-CaKf4dAR.js","assets/OwnItems-BC9M20At.js","assets/radio-BLI4Ubhk.js","assets/Chat-DO-UvDWX.js","assets/poll-CHpac9Fb.js","assets/recordTest-7uIZiqOW.js","assets/DeviceScreen-BHmTd9Q-.js","assets/LiveDevice-jFCQ_zeU.js","assets/Reports-u72R1XBV.js","assets/Agent-Bd54dLhD.js","assets/RelationGraph-CBY9FhUu.js","assets/flowTheme-DKuXe5nP.js","assets/flowTheme-DLioOiRN.css","assets/choice-C4-yW2x9.js","assets/dataParts-CkwgLllh.js","assets/Record-7h0EFEiJ.js","assets/desktopAppPath-D3mGDKPz.js","assets/DesktopReview-DVITz4Jv.js","assets/AgentWork-CqMhsFBP.js","assets/Desktop-CnBxMp68.js","assets/Mobile-DTMPjWeO.js","assets/Regression-DdM66t2E.js","assets/PageAgent-CvV8gwuP.js","assets/Impact-DzAtWie1.js","assets/flowLayout-cXVJhLpH.js","assets/ApiTests-BO_sKAg8.js","assets/Migration-CfHZeobD.js","assets/logos-P2LOMyTK.js","assets/parts-ClnDV-6r.js","assets/Steps-sfVkdv7g.js","assets/wizardParts-C0cNmIK9.js","assets/stepper-DdgwJtbU.js","assets/Compare-BFuLcrBB.js","assets/Quality-Bsljiu_v.js","assets/qualityParts-1F1Ee4Ay.js","assets/Flaky-B7mr96H8.js","assets/RunDiff-CGhLqPpP.js","assets/Responsive-CCPzSbdd.js","assets/Requirements-BAcEi5Fl.js","assets/TestManagement-BGBKGV1L.js","assets/Flags-BGqG09qD.js","assets/Production-BHXWX-ww.js","assets/Cost-DbKrBm9m.js","assets/Observability-B-9cikxK.js","assets/Explore-Kkl9koqy.js","assets/Readiness-BZppEirK.js","assets/KindPage-UqU2qh63.js","assets/Data-B6_6Rm7C.js","assets/TestData-B4-xVlvt.js","assets/Features-_WrrIGBz.js","assets/Jobs-YSmfG7C9.js","assets/Product-lDXsflpD.js","assets/productParts-D18glCBr.js","assets/Evidence-BZx9UF1t.js","assets/WhatsNew-BMTuBbaX.js","assets/Browse-BjPPdirz.js"])))=>i.map(i=>d[i]);
2
- import{n as e,r as t,t as n}from"./rolldown-runtime-XKyaHtl9.js";import{t as r}from"./react-BDur5s0O.js";import{a as i,i as a,n as o,r as s,t as c}from"./route-oDy8sV6H.js";import{F as l,H as u,L as d,P as f,c as p,l as m,o as h,p as g,s as _,t as v,u as y,z as b}from"./preload-helper-BupTYkQW.js";import{n as x,t as S}from"./utils-DJRAScIl.js";import{t as C}from"./jsx-runtime-LKYXHABd.js";import{G as w,K as ee,L as T,N as E,U as D,W as te,a as ne,c as O,i as re,l as ie,o as ae,r as k,s as A,u as oe}from"./palette-6YAAmgkD.js";import{N as se,a as ce,b as le,d as ue,g as j,h as de,i as fe,m as M,n as pe,p as me,r as he,t as ge,x as _e,y as ve}from"./sectionList-B651VPon.js";import{$ as ye,B as be,K as xe,N as Se,R as Ce,S as we,U as Te,X as Ee,at as De,b as Oe,d as ke,f as Ae,m as je,n as Me,nt as Ne,ot as Pe,pt as Fe,tt as Ie,u as Le,y as Re}from"./api-BsiuHmJq.js";import{C as N,S as P,_ as ze,b as F,f as Be,g as Ve,h as He,n as Ue,r as We,u as Ge,v as Ke,x as I,y as qe}from"./pageBack-CbyKfisx.js";import{$ as Je,Bn as Ye,Bt as Xe,Cn as Ze,Cr as Qe,Ct as $e,D as et,Dr as tt,Dt as nt,E as rt,Fn as it,Ft as at,G as ot,Hn as st,It as ct,Jn as lt,Jt as ut,Ln as dt,Lr as ft,M as pt,Mn as mt,Mt as ht,N as gt,O as _t,Or as vt,P as yt,Pn as bt,Qn as xt,Qt as St,R as Ct,Rr as wt,Sr as Tt,St as Et,V as Dt,Vn as Ot,W as kt,Wn as At,X as jt,Xn as Mt,Zn as Nt,Zt as Pt,_t as Ft,a as It,an as Lt,b as Rt,bt as zt,cn as Bt,ct as Vt,dr as Ht,er as Ut,et as Wt,fr as Gt,gr as Kt,gt as qt,h as Jt,hn as Yt,ht as Xt,i as Zt,in as Qt,ir as $t,jn as en,jr as tn,jt as nn,k as rn,kt as an,lr as on,lt as sn,mn as cn,mt as ln,nr as un,o as dn,on as fn,or as pn,p as mn,pn as hn,qn as gn,r as _n,rr as vn,rt as yn,s as bn,sn as xn,tn as Sn,u as Cn,ur as wn,ut as Tn,v as En,vt as Dn,w as On,wr as kn,xn as An,xr as jn,y as Mn,yn as Nn,yr as Pn,yt as Fn,z as In,zn as Ln,zt as Rn}from"./line-icons-CwCZidXs.js";import{At as zn,B as Bn,C as Vn,Ct as Hn,D as Un,Dt as Wn,E as Gn,Et as Kn,Ft as qn,G as Jn,Gt as Yn,It as Xn,J as Zn,K as Qn,Kt as $n,Lt as er,Mt as L,Nt as tr,Ot as nr,R as rr,Rt as ir,S as ar,St as or,T as sr,U as cr,Wt as lr,Y as ur,Z as dr,_ as fr,_t as pr,at as mr,b as hr,bt as gr,c as _r,dt as vr,ft as yr,gt as br,h as xr,ht as Sr,i as Cr,it as wr,jt as Tr,kt as Er,l as Dr,lt as Or,mt as kr,nt as Ar,o as jr,ot as Mr,pt as Nr,qt as Pr,s as Fr,t as Ir,ut as Lr,vt as Rr,w as zr,wt as Br,x as Vr,xt as Hr,y as Ur,yt as Wr,z as Gr}from"./frame-BMpSUo2-.js";import{r as Kr,t as qr}from"./when-BuWCTaKm.js";import{h as Jr,m as Yr,p as Xr,u as Zr}from"./nav-B_68FVw_.js";import{n as Qr}from"./code-Jek8uWUO.js";import{i as $r,n as ei,o as ti,r as ni,s as ri,t as ii}from"./markdown-1wY7hIbM.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 ai=n((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&&O(x,t.startTime-e)}}}var S=!1,C=-1,w=5,ee=-1;function T(){return g?!0:!(e.unstable_now()-ee<w)}function E(){if(g=!1,S){var t=e.unstable_now();ee=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&&T());){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&&O(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(E)};else if(typeof MessageChannel<`u`){var te=new MessageChannel,ne=te.port2;te.port1.onmessage=E,D=function(){ne.postMessage(null)}}else D=function(){_(E,0)};function O(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,O(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,D()))),r},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),oi=n(((e,t)=>{t.exports=ai()})),si=n((e=>{var t=oi(),n=r(),a=i();function o(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 s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(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 l(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 u(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 d(e){if(c(e)!==e)throw Error(o(188))}function f(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(o(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return d(i),e;if(a===r)return d(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var m=Object.assign,h=Symbol.for(`react.element`),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),w=Symbol.for(`react.suspense`),ee=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),te=Symbol.for(`react.memo_cache_sentinel`),ne=Symbol.iterator;function O(e){return typeof e!=`object`||!e?null:(e=ne&&e[ne]||e[`@@iterator`],typeof e==`function`?e:null)}var re=Symbol.for(`react.client.reference`);function ie(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===re?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case w:return`Suspense`;case ee:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return t=e.displayName||null,t===null?ie(e.type)||`Memo`:t;case E:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var ae=Array.isArray,k=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},se=[],ce=-1;function le(e){return{current:e}}function ue(e){0>ce||(e.current=se[ce],se[ce]=null,ce--)}function j(e,t){ce++,se[ce]=e.current,e.current=t}var de=le(null),fe=le(null),M=le(null),pe=le(null);function me(e,t){switch(j(M,t),j(fe,e),j(de,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hd(t),e=Ud(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ue(de),j(de,e)}function he(){ue(de),ue(fe),ue(M)}function ge(e){e.memoizedState!==null&&j(pe,e);var t=de.current,n=Ud(t,e.type);t!==n&&(j(fe,e),j(de,n))}function _e(e){fe.current===e&&(ue(de),ue(fe)),pe.current===e&&(ue(pe),$f._currentValue=oe)}var ve,ye;function be(e){if(ve===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ve=t&&t[1]||``,ye=-1<e.stack.indexOf(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/agentSettingsSheet-CUOx_y4s.js","assets/rolldown-runtime-XKyaHtl9.js","assets/react-BDur5s0O.js","assets/route-oDy8sV6H.js","assets/jsx-runtime-LKYXHABd.js","assets/sectionList-B651VPon.js","assets/line-icons-CwCZidXs.js","assets/pageBack-CbyKfisx.js","assets/preload-helper-BupTYkQW.js","assets/utils-DJRAScIl.js","assets/api-BsiuHmJq.js","assets/nav-B_68FVw_.js","assets/frame-CgBYYtdw.js","assets/palette-6YAAmgkD.js","assets/Settings-VqVLvH-Z.js","assets/when-BuWCTaKm.js","assets/code-Jek8uWUO.js","assets/markdown-CwgDQU8m.js","assets/default-DB4ZMZxa.js","assets/coverage-pqIlfEP0.js","assets/step-mark-CaKf4dAR.js","assets/OwnItems-CedxNuRy.js","assets/radio-BLI4Ubhk.js","assets/Chat-DNiUvy2O.js","assets/poll-CHpac9Fb.js","assets/recordTest-7uIZiqOW.js","assets/DeviceScreen-BHmTd9Q-.js","assets/LiveDevice-jFCQ_zeU.js","assets/Reports-BBRMV5V8.js","assets/Agent-d4YX63iA.js","assets/RelationGraph-CBY9FhUu.js","assets/flowTheme-DKuXe5nP.js","assets/flowTheme-DLioOiRN.css","assets/choice-C4-yW2x9.js","assets/stepper-C6U4inhc.js","assets/wizardParts-fa6KdWVg.js","assets/dataParts-_X5zGtE9.js","assets/Record-C790-f2w.js","assets/desktopAppPath-D3mGDKPz.js","assets/DesktopReview-Bcs7E_SB.js","assets/AgentWork-DmCMV4YL.js","assets/Desktop-Bm6ObXhU.js","assets/Mobile-ClrjICJt.js","assets/Regression-PDhRTDKs.js","assets/PageAgent-CDYs-i-n.js","assets/Impact-eg2nHsiv.js","assets/flowLayout-cXVJhLpH.js","assets/ApiTests-C_L2iJ8s.js","assets/Migration-ZhSPJ6QL.js","assets/logos-P2LOMyTK.js","assets/parts-ClnDV-6r.js","assets/Steps-6x6JVBmk.js","assets/Compare-CVvpgS-7.js","assets/Quality-CdrPT4WV.js","assets/qualityParts-BFDaQh7A.js","assets/Flaky-F5NHbFgI.js","assets/RunDiff-CsND-A6h.js","assets/Responsive-DZXESkT1.js","assets/Requirements-DRz1Yudy.js","assets/TestManagement-SBq56JNZ.js","assets/Flags-DEitGv3r.js","assets/Production-DSDdBODO.js","assets/Cost-DJnZYyQP.js","assets/Observability-CQ7WAuBH.js","assets/Explore-Dhwu33Xf.js","assets/Readiness-C9qM2rKO.js","assets/KindPage-CaXbIzyO.js","assets/Data-DEWYrB9n.js","assets/TestData-hIJO8oL4.js","assets/Features-D-HIDQqF.js","assets/Jobs-GBUaaYcw.js","assets/Product-DyhX2TYr.js","assets/productParts-CUvTBJkC.js","assets/Evidence-D5fORfDF.js","assets/WhatsNew-BwV-yle3.js","assets/Browse-BjPPdirz.js"])))=>i.map(i=>d[i]);
2
+ import{n as e,r as t,t as n}from"./rolldown-runtime-XKyaHtl9.js";import{t as r}from"./react-BDur5s0O.js";import{a as i,i as a,n as o,r as s,t as c}from"./route-oDy8sV6H.js";import{F as l,H as u,L as d,P as f,c as p,l as m,o as h,p as g,s as _,t as v,u as y,z as b}from"./preload-helper-BupTYkQW.js";import{n as x,t as S}from"./utils-DJRAScIl.js";import{t as C}from"./jsx-runtime-LKYXHABd.js";import{G as w,K as ee,L as T,N as E,U as D,W as te,a as ne,c as O,i as re,l as ie,o as ae,r as k,s as A,u as oe}from"./palette-6YAAmgkD.js";import{N as se,a as ce,b as le,d as ue,g as j,h as de,i as fe,m as M,n as pe,p as me,r as he,t as ge,x as _e,y as ve}from"./sectionList-B651VPon.js";import{$ as ye,B as be,K as xe,N as Se,R as Ce,S as we,U as Te,X as Ee,at as De,b as Oe,d as ke,f as Ae,m as je,n as Me,nt as Ne,ot as Pe,pt as Fe,tt as Ie,u as Le,y as Re}from"./api-BsiuHmJq.js";import{C as N,S as P,_ as ze,b as F,f as Be,g as Ve,h as He,n as Ue,r as We,u as Ge,v as Ke,x as I,y as qe}from"./pageBack-CbyKfisx.js";import{$ as Je,Bn as Ye,Bt as Xe,Cn as Ze,Cr as Qe,Ct as $e,D as et,Dr as tt,Dt as nt,E as rt,Fn as it,Ft as at,G as ot,Hn as st,It as ct,Jn as lt,Jt as ut,Ln as dt,Lr as ft,M as pt,Mn as mt,Mt as ht,N as gt,O as _t,Or as vt,P as yt,Pn as bt,Qn as xt,Qt as St,R as Ct,Rr as wt,Sr as Tt,St as Et,V as Dt,Vn as Ot,W as kt,Wn as At,X as jt,Xn as Mt,Zn as Nt,Zt as Pt,_t as Ft,a as It,an as Lt,b as Rt,bt as zt,cn as Bt,ct as Vt,dr as Ht,er as Ut,et as Wt,fr as Gt,gr as Kt,gt as qt,h as Jt,hn as Yt,ht as Xt,i as Zt,in as Qt,ir as $t,jn as en,jr as tn,jt as nn,k as rn,kt as an,lr as on,lt as sn,mn as cn,mt as ln,nr as un,o as dn,on as fn,or as pn,p as mn,pn as hn,qn as gn,r as _n,rr as vn,rt as yn,s as bn,sn as xn,tn as Sn,u as Cn,ur as wn,ut as Tn,v as En,vt as Dn,w as On,wr as kn,xn as An,xr as jn,y as Mn,yn as Nn,yr as Pn,yt as Fn,z as In,zn as Ln,zt as Rn}from"./line-icons-CwCZidXs.js";import{At as zn,B as Bn,C as Vn,Ct as Hn,D as Un,Dt as Wn,E as Gn,Et as Kn,Ft as qn,G as Jn,Gt as Yn,It as Xn,J as Zn,K as Qn,Kt as $n,Lt as er,Mt as L,Nt as tr,Ot as nr,R as rr,Rt as ir,S as ar,St as or,T as sr,U as cr,Wt as lr,Y as ur,Z as dr,_ as fr,_t as pr,at as mr,b as hr,bt as gr,c as _r,dt as vr,ft as yr,gt as br,h as xr,ht as Sr,i as Cr,it as wr,jt as Tr,kt as Er,l as Dr,lt as Or,mt as kr,nt as Ar,o as jr,ot as Mr,pt as Nr,qt as Pr,s as Fr,t as Ir,ut as Lr,vt as Rr,w as zr,wt as Br,x as Vr,xt as Hr,y as Ur,yt as Wr,z as Gr}from"./frame-CgBYYtdw.js";import{r as Kr,t as qr}from"./when-BuWCTaKm.js";import{h as Jr,m as Yr,p as Xr,u as Zr}from"./nav-B_68FVw_.js";import{n as Qr}from"./code-Jek8uWUO.js";import{i as $r,n as ei,o as ti,r as ni,s as ri,t as ii}from"./markdown-CwgDQU8m.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 ai=n((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&&O(x,t.startTime-e)}}}var S=!1,C=-1,w=5,ee=-1;function T(){return g?!0:!(e.unstable_now()-ee<w)}function E(){if(g=!1,S){var t=e.unstable_now();ee=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&&T());){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&&O(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(E)};else if(typeof MessageChannel<`u`){var te=new MessageChannel,ne=te.port2;te.port1.onmessage=E,D=function(){ne.postMessage(null)}}else D=function(){_(E,0)};function O(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,O(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,D()))),r},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),oi=n(((e,t)=>{t.exports=ai()})),si=n((e=>{var t=oi(),n=r(),a=i();function o(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 s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(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 l(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 u(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 d(e){if(c(e)!==e)throw Error(o(188))}function f(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(o(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return d(i),e;if(a===r)return d(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var m=Object.assign,h=Symbol.for(`react.element`),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),w=Symbol.for(`react.suspense`),ee=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),te=Symbol.for(`react.memo_cache_sentinel`),ne=Symbol.iterator;function O(e){return typeof e!=`object`||!e?null:(e=ne&&e[ne]||e[`@@iterator`],typeof e==`function`?e:null)}var re=Symbol.for(`react.client.reference`);function ie(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===re?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case w:return`Suspense`;case ee:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return t=e.displayName||null,t===null?ie(e.type)||`Memo`:t;case E:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var ae=Array.isArray,k=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},se=[],ce=-1;function le(e){return{current:e}}function ue(e){0>ce||(e.current=se[ce],se[ce]=null,ce--)}function j(e,t){ce++,se[ce]=e.current,e.current=t}var de=le(null),fe=le(null),M=le(null),pe=le(null);function me(e,t){switch(j(M,t),j(fe,e),j(de,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hd(t),e=Ud(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ue(de),j(de,e)}function he(){ue(de),ue(fe),ue(M)}function ge(e){e.memoizedState!==null&&j(pe,e);var t=de.current,n=Ud(t,e.type);t!==n&&(j(fe,e),j(de,n))}function _e(e){fe.current===e&&(ue(de),ue(fe)),pe.current===e&&(ue(pe),$f._currentValue=oe)}var ve,ye;function be(e){if(ve===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ve=t&&t[1]||``,ye=-1<e.stack.indexOf(`
3
3
  at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
4
  `+ve+e+ye}var xe=!1;function Se(e,t){if(!e||xe)return``;xe=!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(`
@@ -46,10 +46,10 @@ Error generating stack: `+e.message+`
46
46
  `)}}var Rl=1.5;function zl(e,t){if(e>=t)return t;let n=t-e;return Math.min(t,e+Math.max(Rl,n/45))}function G(e,t){return Math.min(Math.floor(t),e.length)}var K=()=>typeof window<`u`&&!!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;function q(e,t){let n=(0,R.useRef)(t);t&&(n.current=!0);let r=n.current&&!K(),[i,a]=(0,R.useState)(()=>r?0:e.length),o=(0,R.useRef)(i),s=(0,R.useRef)(e);s.current!==e&&(o.current=G(e,o.current),s.current=e),r||(o.current=e.length),(0,R.useEffect)(()=>{if(!r||o.current>=e.length){a(o.current);return}let t=0,n=()=>{o.current=zl(o.current,e.length),a(o.current),o.current<e.length&&(t=requestAnimationFrame(n))};return t=requestAnimationFrame(n),()=>cancelAnimationFrame(t)},[e,r]);let c=Math.min(Math.floor(r?i:e.length),e.length);return{shown:e.slice(0,c),typing:c<e.length}}var J={info:`text-ink-2`,ok:`text-ink-2`,fail:`text-fail`,warn:`text-warn`,dim:`text-muted`,say:`text-ink`,you:`text-accent-fg`,think:`text-muted italic`};function Y({at:e}){let t=Gn(e),[n,r]=t?[t.slice(0,t.lastIndexOf(` `)),t.slice(t.lastIndexOf(` `)+1)]:[``,``];return(0,z.jsxs)(`time`,{dateTime:e,className:`w-28 flex-none text-body-sm whitespace-nowrap tabular-nums`,children:[(0,z.jsx)(`span`,{className:`text-muted/70`,children:n}),` `,(0,z.jsx)(`span`,{className:`text-muted`,children:r})]})}function Bl({line:e}){let[t,n]=(0,R.useState)(!1),r=e.plain.length>160;return e.kind===`head`?(0,z.jsxs)(`li`,{className:`mt-4 flex items-baseline gap-4 border-b border-line-soft pb-1 first:mt-0`,children:[(0,z.jsx)(Y,{at:e.at}),(0,z.jsx)(ni,{text:e.md,className:S(`min-w-0 text-body-sm font-medium text-ink [&_p]:my-0`,$r)})]}):(0,z.jsxs)(`li`,{className:S(`flex items-baseline gap-4 py-1`,e.kind===`sub`&&`pl-4`),children:[(0,z.jsx)(Y,{at:e.at}),e.kind===`out`?(0,z.jsx)(`pre`,{className:`m-0 min-w-0 flex-1 font-mono text-body-sm leading-relaxed whitespace-pre-wrap text-ink-2 [overflow-wrap:anywhere]`,children:(0,z.jsx)(We,{text:e.plain})}):(0,z.jsx)(`button`,{type:`button`,disabled:!r,"aria-expanded":r?t:void 0,onClick:()=>n(!t),"data-tip":r&&!t?`Show all of it`:void 0,className:S(`min-w-0 flex-1 border-0 bg-transparent p-0 text-left`,r&&`cursor-pointer`),children:(0,z.jsx)(ni,{text:e.md,className:S(`text-body-sm leading-relaxed [overflow-wrap:anywhere] [&_code]:text-body-sm [&_p]:my-0`,$r,J[e.tone],r&&!t&&`line-clamp-2`)})})]})}function Vl({lines:e,live:t,name:n,timeline:r=!1}){let i=(0,R.useRef)(null),a=(0,R.useRef)(!0),[o,s]=(0,R.useState)(!1),c=(0,R.useMemo)(()=>sr(e),[e]);return(0,R.useEffect)(()=>{a.current&&i.current&&(i.current.scrollTop=i.current.scrollHeight)},[c]),(0,z.jsxs)(`div`,{className:`overflow-hidden`,children:[(0,z.jsxs)(`div`,{className:`flex min-h-9 items-center gap-1 border-b border-line-soft text-body-sm text-muted`,children:[(0,z.jsxs)(`span`,{className:`flex-1`,children:[e.length,` event`,e.length===1?``:`s`,t&&` · live`]}),(0,z.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":o?`Copied`:`Copy the activity log as Markdown`,"data-tip":o?`Copied`:`Copy the activity log as Markdown`,onClick:async()=>{try{await navigator.clipboard.writeText(c),s(!0),setTimeout(()=>s(!1),1500)}catch{}},children:o?(0,z.jsx)(On,{size:14,"aria-hidden":`true`,className:`text-pass`}):(0,z.jsx)(jt,{size:14,"aria-hidden":`true`})}),(0,z.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":`Download the activity log as a Markdown file`,"data-tip":`Download the activity log as a Markdown file`,onClick:()=>{let e=URL.createObjectURL(new Blob([c],{type:`text/markdown;charset=utf-8`})),t=document.createElement(`a`);t.href=e,t.download=n,t.click(),setTimeout(()=>URL.revokeObjectURL(e),1e3)},children:(0,z.jsx)(F,{icon:yn,size:14})})]}),(0,z.jsx)(`div`,{ref:i,role:`log`,"aria-label":`Activity log`,onScroll:e=>{let t=e.currentTarget;a.current=t.scrollTop+t.clientHeight>=t.scrollHeight-24},className:S(`overflow-y-auto py-2`,r?`max-h-[calc(var(--screen)-260px)] min-h-[320px]`:`max-h-[360px] border-b border-line-soft`),children:(0,z.jsx)(`ol`,{className:`m-0 flex list-none flex-col p-0`,children:e.map((e,t)=>(0,z.jsx)(Bl,{line:e},t))})})]})}function Hl({ask:e,live:t,onAnswer:n}){let r=t&&e.answer===void 0;return(0,z.jsxs)(`div`,{className:S(`flex flex-col gap-4`,r?N.info:`py-1`),children:[(0,z.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,z.jsx)(hn,{size:18,"aria-hidden":`true`,className:`mt-1 flex-none text-icon`}),(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,z.jsx)(`span`,{className:`font-medium`,children:e.title}),e.detail&&(0,z.jsx)(`span`,{className:`text-body-sm text-ink-2`,children:e.detail}),e.lines.map((e,t)=>(0,z.jsx)(`span`,{className:`text-body-sm text-ink-2 [overflow-wrap:anywhere]`,children:e},t))]})]}),r?(0,z.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[e.options.map(e=>(0,z.jsx)(I,{size:`sm`,onClick:()=>n(e.id),children:e.label},e.id)),!e.options.some(e=>e.id===`cancel`||e.label.trim().toLowerCase()===`cancel`)&&(0,z.jsxs)(I,{size:`sm`,variant:`ghost`,onClick:()=>n(null),children:[(0,z.jsx)(wt,{"aria-hidden":`true`}),`Cancel`]})]}):(0,z.jsx)(`span`,{className:`text-body-sm text-muted`,children:e.answer===void 0?`Not answered`:`You chose: ${e.answer}`})]})}function Ul({wait:e,live:t,onProceed:n}){let r=t&&e.answer===void 0;return(0,z.jsxs)(`div`,{className:S(`flex flex-col gap-4`,r?N.info:`py-1`),children:[(0,z.jsxs)(`span`,{className:`flex items-start gap-2`,children:[(0,z.jsx)(pt,{size:18,"aria-hidden":`true`,className:`mt-1 flex-none text-icon`}),(0,z.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:e.prompt})]}),r?(0,z.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,z.jsxs)(I,{size:`sm`,variant:`primary`,"data-tip":`Done, continue`,onClick:()=>n(!0),children:[(0,z.jsx)(dn,{"aria-hidden":`true`}),`Continue`]}),(0,z.jsxs)(I,{size:`sm`,onClick:()=>n(!1),children:[(0,z.jsx)(wt,{"aria-hidden":`true`}),`Cancel`]})]}):(0,z.jsx)(`span`,{className:`text-body-sm text-muted`,children:e.answer===void 0?`Not done`:e.answer?`You continued`:`You cancelled`})]})}function Wl(e,t){let[n,r]=(0,R.useState)(!1),i=(0,R.useRef)(t);return(0,R.useEffect)(()=>{let n=t>i.current;if(i.current=t,!e||!n)return void(e||r(!1));r(!0);let a=setTimeout(()=>r(!1),900);return()=>clearTimeout(a)},[e,t]),n}function Gl({started:e}){let[t,n]=(0,R.useState)(()=>Date.now());(0,R.useEffect)(()=>{let e=$n(()=>n(Date.now()),1e3);return()=>Yn(e)},[]);let r=hr(e,t),i=new Date(t).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`,second:`2-digit`}),a=e&&!Number.isNaN(Date.parse(e))?new Date(e).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`,second:`2-digit`}):``;return(0,z.jsxs)(`span`,{className:`inline-flex items-center gap-2 text-body-sm whitespace-nowrap text-muted tabular-nums`,"data-tip":a?`Started at ${a}`:void 0,children:[r&&(0,z.jsxs)(`span`,{"aria-label":`Elapsed ${r}`,children:[r,` elapsed`]}),r&&(0,z.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,z.jsx)(`time`,{dateTime:new Date(t).toISOString(),"aria-label":`Time now ${i}`,children:i})]})}function Kl({turn:e,live:t,onAnswer:n,onProceed:r}){let i=t&&!e.outcome,[a,o]=(0,R.useState)(null),s=a??i,c=xr(e),l=i?c.text:Vn(e),u=e.parts.map(e=>Un(e.text)).filter(Boolean),d=q(e.outcome&&e.reply?e.reply:u.join(`
47
47
 
48
48
  `),i),f=(0,R.useMemo)(()=>Ll(d.shown),[d.shown]),p=Wl(i,u.reduce((e,t)=>e+t.length,0)),m=d.typing||p,[h,g]=(0,R.useState)(!1),_=e.log.findLast(e=>e.tone!==`you`&&e.tone!==`say`);return(0,z.jsxs)(`div`,{className:`flex gap-4`,children:[(0,z.jsx)(`div`,{className:`size-9 flex-none`,"aria-hidden":`true`,children:(0,z.jsx)(ne,{agent:`forgeqe`,px:34,working:i,state:m?`speaking`:i?`thinking`:e.outcome===`done`?`done`:e.outcome===`failed`?`failed`:`idle`,activity:i&&!m?O(xr(e).orb):void 0,className:`mt-1`})}),(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-4 pt-2`,children:[(e.steps.length>0||i||e.log.length>0)&&(0,z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-4 gap-y-1`,children:[(0,z.jsxs)(`button`,{type:`button`,"aria-expanded":s,disabled:!e.steps.length&&!e.plan.length,onClick:()=>o(!s),className:S(`flex cursor-pointer items-center gap-2 border-0 bg-transparent p-0 text-body-sm font-medium text-muted hover:text-ink disabled:cursor-default`,i&&`shimmer`),children:[(0,z.jsx)(`span`,{"aria-live":`polite`,children:l}),(e.steps.length>0||e.plan.length>0)&&(0,z.jsx)(rt,{size:16,"aria-hidden":`true`,className:S(`transition-transform`,s&&`rotate-180`)})]}),i&&(0,z.jsx)(Gl,{started:e.started||e.log[0]?.at}),e.log.length>0&&(0,z.jsxs)(I,{variant:`ghost`,size:`sm`,"aria-expanded":h,onClick:()=>g(!h),className:`ml-auto`,children:[(0,z.jsx)(F,{icon:gn,size:14}),`Activity log`,(0,z.jsx)(`span`,{className:`tabular-nums`,children:e.log.length})]})]}),(0,z.jsx)(lr,{open:(s||i)&&(e.steps.length>0||e.plan.length>0||i),children:(0,z.jsx)(Dl,{turn:e,working:i,folded:!s,live:{...c,latest:_,events:e.log.length,onLog:()=>g(!0)}})}),(0,z.jsx)(lr,{open:h,children:(0,z.jsx)(Vl,{lines:e.log,live:i,name:`forgeqe-activity-${e.id}.md`})})]}),e.asks.map(e=>(0,z.jsx)(Hl,{ask:e,live:i,onAnswer:t=>n(e.id,t)},e.id)),e.waits.map(e=>(0,z.jsx)(Ul,{wait:e,live:i,onProceed:t=>r(e.id,t)},e.id)),f.body&&(0,z.jsx)(ni,{text:f.body,className:S(`text-body-md leading-[1.7] [&_li]:my-2 [&_p]:my-4`,(d.typing||i)&&`typing-caret`)}),f.sources&&!d.typing&&!i&&(0,z.jsx)($c,{title:`Sources`,children:(0,z.jsx)(ni,{text:f.sources,className:`text-muted`})}),(0,z.jsx)(Fl,{turn:e}),e.error&&(0,z.jsx)(`p`,{role:`alert`,className:S(N.fail,`m-0`),children:e.error}),e.outcome===`stopped`&&!e.reply&&(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`Stopped.`}),e.outcome&&e.spent&&(0,z.jsx)(ql,{spent:e.spent})]})]})}function ql({spent:e}){let t=e.input+e.output>0,n=[t?`${Vr(e.input)} in → ${Vr(e.output)} out`:``,e.ms===void 0?``:ar(e.ms),e.premium===void 0?``:Ur(e.premium)].filter(Boolean);if(!n.length)return null;let r=[t?`${e.input.toLocaleString()} tokens read${e.cached?`, ${e.cached.toLocaleString()} of them from the cache`:``}; ${e.output.toLocaleString()} written.`:``,e.premium===void 0?e.copilot?`GitHub Copilot bills premium requests; how many is not known, as the seat's model list did not name this model.`:``:`GitHub Copilot bills premium requests: one a model call, times the model's multiplier on your seat.`].filter(Boolean).join(` `);return(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-muted tabular-nums`,"data-tip":r||void 0,children:n.join(` · `)})}var Jl=[{id:`runs`,label:`Runs`,icon:bt,href:s(`runs`)},{id:`reports`,label:`Execution reports`,icon:sn,href:s(`reports`)},{id:`reports-project`,label:`Project report`,icon:gn,href:s(`reports`,`project`)},{id:`run-diff`,label:`Run diff`,icon:ln,href:s(`run-diff`)},{id:`flaky`,label:`Flaky tests`,icon:Mn,href:s(`flaky`)}],Yl=[{id:`evidence-contracts`,label:`Contracts`,icon:Tn,href:s(`evidence-contracts`)},{id:`evidence-releases`,label:`Releases`,icon:Ot,href:s(`evidence-releases`)},{id:`evidence-learn`,label:`Learn`,icon:Sn,href:s(`evidence-learn`)},{id:`evidence-monitor`,label:`Monitor`,icon:Rn,href:s(`evidence-monitor`)}],Xl={execution:`Execution`,report:`Report`,coding:`Coding`,chat:`Chat`},Zl={execution:Et,report:Vt,coding:ot,chat:cn};function Ql({kind:e}){let t=Zl[e];return(0,z.jsx)(F,{icon:t,size:14,className:`flex-none text-muted`})}var $l={passed:{label:`Passed`,tone:`pass`},failed:{label:`Failed`,tone:`fail`},error:{label:`Error`,tone:`fail`},skipped:{label:`Skipped`,tone:`neutral`},stopped:{label:`Stopped`,tone:`neutral`},blocked:{label:`Blocked`,tone:`warn`}},eu=e=>$l[e]||{label:e?e.charAt(0).toUpperCase()+e.slice(1).replace(/_/g,` `):`–`,tone:`neutral`},tu={suite:`Suite`,monitor:`Monitor round`,run:`Browser run`,explore:`Exploration`,api:`API run`,desktop:`Desktop run`,mobile:`App run`},nu=e=>{if(!e)return``;let t=Math.round(e/1e3);return t<60?`${t}s`:`${Math.floor(t/60)}m ${t%60}s`};function ru({title:e,icon:t,children:n,aside:r,className:i}){return(0,z.jsx)(qo,{level:3,icon:t,title:e,actions:r,className:S(`pt-6`,i),children:n})}function iu({path:e,label:t=`Report`}){let[n,r]=(0,R.useState)(``);return(0,z.jsxs)(`span`,{className:`inline-flex flex-wrap items-center gap-2`,children:[(0,z.jsxs)(I,{"data-tip":`Open the report`,onClick:async()=>r(await Ke(e)),children:[(0,z.jsx)(sn,{"aria-hidden":`true`}),t]}),n&&(0,z.jsx)(`span`,{className:`text-body-sm text-fail`,children:n})]})}function au({items:e,first:t,render:n}){let[r,i]=(0,R.useState)(!1);return(0,z.jsxs)(z.Fragment,{children:[(r?e:e.slice(0,t)).map(n),e.length>t&&(0,z.jsxs)(I,{variant:`link`,size:`inline`,"aria-expanded":r,onClick:()=>i(!r),className:`min-h-8 gap-1 self-start`,children:[r?(0,z.jsx)(rn,{"aria-hidden":`true`}):(0,z.jsx)(rt,{"aria-hidden":`true`}),r?`Less`:`All (${e.length})`]})]})}function ou({c:e}){if(!e.total)return null;let t=t=>`${t/e.total*100}%`;return(0,z.jsxs)(`div`,{role:`img`,"aria-label":`${e.passed} passed, ${e.failed} failed, ${e.other} other, of ${e.total}`,className:`flex h-2 overflow-hidden rounded-full bg-surface-strong`,children:[(0,z.jsx)(`div`,{className:`bg-pass transition-[width] duration-200 ease-out`,style:{width:t(e.passed)}}),(0,z.jsx)(`div`,{className:`bg-fail transition-[width] duration-200 ease-out`,style:{width:t(e.failed)}}),(0,z.jsx)(`div`,{className:`bg-warn transition-[width] duration-200 ease-out`,style:{width:t(e.other)}})]})}function su({e}){let t=e.counts.total?Math.round(e.counts.passed/e.counts.total*100):0;return(0,z.jsxs)(`div`,{className:`flex flex-col gap-4 pt-4 first:pt-0`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-start gap-x-4 gap-y-2`,children:[(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_240px] flex-col gap-1`,children:[(0,z.jsx)(`span`,{className:`font-medium [overflow-wrap:anywhere]`,children:e.title}),(0,z.jsx)(`span`,{className:`text-body-sm text-muted`,children:[tu[e.scope]||e.scope,nu(e.ms),e.tokens?`${Bn(e.tokens)} tokens`:``,e.stopped?`stopped early`:``].filter(Boolean).join(` · `)})]}),e.report&&(0,z.jsx)(iu,{path:e.report})]}),(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-body-sm`,children:[(0,z.jsxs)(`span`,{className:`text-headline-sm tabular-nums`,children:[t,`%`]}),(0,z.jsx)(`span`,{className:`text-muted`,children:`passed`}),(0,z.jsxs)(Ve,{tone:`pass`,children:[e.counts.passed,` passed`]}),e.counts.failed>0&&(0,z.jsxs)(Ve,{tone:`fail`,children:[e.counts.failed,` failed`]}),e.counts.other>0&&(0,z.jsxs)(Ve,{tone:`warn`,children:[e.counts.other,` other`]}),(0,z.jsxs)(`span`,{className:`text-muted`,children:[`of `,e.counts.total]})]}),(0,z.jsx)(ou,{c:e.counts}),e.cases.length>0&&(0,z.jsx)(`ul`,{"aria-label":`Cases of ${e.title}`,className:`m-0 flex list-none flex-col p-0`,children:(0,z.jsx)(au,{items:e.cases.toSorted((e,t)=>Number(eu(t.status).tone===`fail`)-Number(eu(e.status).tone===`fail`)),first:6,render:(e,t)=>(0,z.jsxs)(`li`,{className:`flex min-w-0 items-start gap-4 border-t border-line-soft py-2 text-body-sm`,children:[(0,z.jsx)(`span`,{className:`w-[76px] flex-none`,children:(0,z.jsx)(Ve,{tone:eu(e.status).tone,children:eu(e.status).label})}),(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,z.jsxs)(`span`,{className:`[overflow-wrap:anywhere]`,children:[e.id&&(0,z.jsx)(`span`,{className:`mr-2 font-mono text-body-sm text-muted`,children:e.id}),e.title,e.device&&(0,z.jsxs)(`span`,{className:`text-muted`,children:[` · `,e.device]})]}),e.summary&&(0,z.jsx)(`span`,{className:`line-clamp-2 text-body-sm text-muted`,children:e.summary})]}),(0,z.jsx)(`span`,{className:`flex-none text-body-sm text-muted tabular-nums`,children:nu(e.ms)})]},`${e.id}-${t}`)})}),e.folder&&!e.report&&(0,z.jsxs)(`span`,{className:`text-body-sm`,children:[`Kept in `,(0,z.jsx)(ei,{path:e.folder})]})]})}function cu({list:e,className:t}){let n=e.reduce((e,t)=>({total:e.total+t.counts.total,passed:e.passed+t.counts.passed,failed:e.failed+t.counts.failed}),{total:0,passed:0,failed:0});return(0,z.jsx)(ru,{...t?{className:t}:{},title:`Execution summary`,icon:Et,aside:e.length>1?(0,z.jsxs)(`span`,{className:`text-body-sm text-muted`,children:[x(e.length,`run`),` · `,n.passed,` of `,n.total,` passed`]}):void 0,children:e.length?e.map((e,t)=>(0,z.jsx)(su,{e},`${e.folder||e.title}-${t}`)):(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`No results found for this run yet: they appear once its report is written.`})})}function lu({list:e,className:t}){return(0,z.jsxs)(ru,{...t?{className:t}:{},title:`Report summary`,icon:Vt,children:[e.length===0&&(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`No report was written in this run.`}),e.map((e,t)=>(0,z.jsxs)(`div`,{className:`flex flex-col gap-4 pt-4 first:pt-0`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-start gap-x-4 gap-y-2`,children:[(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_240px] flex-col gap-1`,children:[(0,z.jsx)(`span`,{className:`font-medium [overflow-wrap:anywhere]`,children:e.title}),(0,z.jsx)(`span`,{className:`text-body-sm text-muted`,children:e.builtAt?`Written ${new Date(e.builtAt).toLocaleString([],{dateStyle:`medium`,timeStyle:`short`})}`:e.path?``:`Its page is not there any more`})]}),e.path&&(0,z.jsx)(iu,{path:e.path})]}),e.stats&&(0,z.jsx)(`dl`,{className:`m-0 grid grid-cols-[repeat(auto-fit,minmax(110px,1fr))] gap-2`,children:e.stats.map(e=>(0,z.jsxs)(`div`,{className:`panel rounded-md bg-(--page-surface-strong) p-6`,children:[(0,z.jsx)(`dt`,{className:`text-body-sm text-muted`,children:e.label}),(0,z.jsx)(`dd`,{className:`m-0 text-headline-sm tabular-nums`,children:e.value})]},e.label))}),e.markdown&&(0,z.jsx)(uu,{text:e.markdown})]},`${e.path||e.title}-${t}`))]})}function uu({text:e,height:t=220}){let[n,r]=(0,R.useState)(!1),[i,a]=(0,R.useState)(!0),[o,s]=(0,R.useState)(t),c=(0,R.useRef)(null);return(0,R.useLayoutEffect)(()=>{c.current&&!n&&a(c.current.scrollHeight>t+8)},[e,t,n]),(0,z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,z.jsxs)(`div`,{ref:c,style:o===void 0?void 0:{maxHeight:o},onTransitionEnd:e=>e.target===e.currentTarget&&n&&s(void 0),className:S(`transition-[max-height] duration-200 ease-out`,o!==void 0&&`relative overflow-hidden`),children:[(0,z.jsx)(ni,{text:e,className:S(`text-body-sm`,$r)}),!n&&i&&(0,z.jsx)(`div`,{className:`pointer-events-none absolute inset-x-0 bottom-0 h-12 bg-gradient-to-t from-bg to-transparent`})]}),(n||i)&&(0,z.jsxs)(I,{variant:`link`,size:`inline`,className:`self-start`,type:`button`,"aria-expanded":n,onClick:()=>{let e=c.current?.scrollHeight??t;if(r(!n),b())return s(n?t:void 0);s(e),n&&requestAnimationFrame(()=>requestAnimationFrame(()=>s(t)))},children:[n?(0,z.jsx)(rn,{size:14,"aria-hidden":`true`}):(0,z.jsx)(rt,{size:14,"aria-hidden":`true`}),n?`Less`:`More`]})]})}function du(e){let t=e.join(`
49
- `),n=Math.max(2,...(t.match(/`+/g)||[]).map(e=>e.length)),r="`".repeat(n+1);return`${r}diff\n${t}\n${r}`}function fu({e}){let[t,n]=(0,R.useState)(!1),r=e.action===`write`?`New`:`Edited`;return(0,z.jsxs)(`li`,{className:`border-t border-line-soft`,children:[(0,z.jsxs)(`div`,{className:`flex min-h-[44px] min-w-0 items-center gap-2 py-2 text-body-sm`,children:[(0,z.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-expanded":t,"aria-label":`${t?`Hide`:`Show`} the diff of ${e.path}`,"data-tip":`${t?`Hide`:`Show`} the diff of ${e.path}`,disabled:!e.diffs.length,onClick:()=>n(!t),className:`flex-none`,children:(0,z.jsx)(_t,{"aria-hidden":`true`,className:S(`transition-transform duration-200`,t&&`rotate-90`)})}),(0,z.jsx)(`span`,{className:`w-[52px] flex-none text-body-sm text-muted`,children:r}),(0,z.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:(0,z.jsx)(ei,{path:e.path})}),(0,z.jsxs)(`span`,{className:`flex-none font-mono text-body-sm tabular-nums`,children:[(0,z.jsxs)(`span`,{className:`text-pass`,children:[`+`,e.added]}),` `,(0,z.jsxs)(`span`,{className:`text-fail`,children:[`−`,e.removed]})]})]}),(0,z.jsx)(lr,{open:t,className:`pb-4 pl-10 [&_pre]:max-h-[420px] [&_pre]:overflow-auto`,children:e.diffs.length?(0,z.jsx)(ni,{text:du(e.diffs),className:$r}):null})]})}var pu={write:`New`,edit:`Edited`,delete:`Deleted`,"test written":`Test`};function mu({label:e,children:t}){return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`dt`,{className:`pt-1 text-body-sm text-muted`,children:e}),(0,z.jsx)(`dd`,{className:`m-0 min-w-0 text-body-sm [overflow-wrap:anywhere]`,children:t})]})}function hu({c:e,files:t,className:n}){let r=e.edits.reduce((e,t)=>e+t.added,0),i=e.edits.reduce((e,t)=>e+t.removed,0),a=e.tests.filter(e=>!e.ok).length,o=e.reviews.at(-1),s=e.edits.length?[]:t.filter(e=>e.action&&e.action!==`read`);return(0,z.jsxs)(ru,{...n?{className:n}:{},title:`Code changes`,icon:ot,aside:e.edits.length?(0,z.jsxs)(`span`,{className:`font-mono text-body-sm tabular-nums`,children:[x(e.edits.length,`file`),` · `,(0,z.jsxs)(`span`,{className:`text-pass`,children:[`+`,r]}),` `,(0,z.jsxs)(`span`,{className:`text-fail`,children:[`−`,i]})]}):s.length?(0,z.jsx)(`span`,{className:`text-body-sm text-muted`,children:x(s.length,`file`)}):void 0,children:[e.results.map((t,n)=>{let r=t.status===`passed`||t.status===`done`,i=t.status===`error`||t.status===`failed`;return(0,z.jsxs)(`div`,{className:`flex flex-col gap-4 border-b border-line-soft pb-4 last:border-b-0 last:pb-0`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,z.jsx)(Et,{size:17,strokeWidth:2,"aria-hidden":`true`,className:r?`text-pass`:i?`text-fail`:`text-warn`}),(0,z.jsx)(`span`,{className:`text-body-lg font-medium`,children:r?`Test written`:i?`Test not finished`:eu(t.status).label}),(0,z.jsx)(Ve,{tone:r?`pass`:i?`fail`:`warn`,children:eu(t.status).label}),e.tests.length>0&&(0,z.jsxs)(`span`,{className:`text-body-sm text-muted`,children:[x(e.tests.length,`test run`),a?` (${a} failed)`:``,e.reviews.length?` · ${x(e.reviews.length,`review`)}`:``]})]}),(0,z.jsxs)(`dl`,{className:`m-0 grid grid-cols-1 gap-x-6 gap-y-1 sm:grid-cols-[110px_minmax(0,1fr)] sm:gap-y-4`,children:[t.testFile&&(0,z.jsx)(mu,{label:`Test`,children:(0,z.jsx)(ei,{path:t.testFile})}),t.command&&(0,z.jsx)(mu,{label:`Run it`,children:(0,z.jsx)(Al,{text:t.command})}),(t.review||o)&&(0,z.jsx)(mu,{label:`Review`,children:(0,z.jsxs)(`span`,{className:`flex flex-col gap-1`,children:[(0,z.jsx)(`span`,{children:(0,z.jsx)(Ve,{tone:(t.review??o).approved?`pass`:`warn`,children:(t.review??o).approved?`Approved`:`Changes asked`})}),(t.review?.summary||o?.summary)&&(0,z.jsx)(`span`,{className:`text-ink-2`,children:t.review?.summary||o?.summary})]})}),t.notes&&(0,z.jsx)(mu,{label:`Notes`,children:(0,z.jsx)(ni,{text:t.notes,className:S(`text-body-sm text-ink-2 [&_p]:my-0 [&_p+p]:mt-2`,`[&_p]:max-w-none [&_ul]:max-w-none [&_ol]:max-w-none [&_blockquote]:max-w-none [&_h1]:max-w-none [&_h2]:max-w-none [&_h3]:max-w-none [&_h4]:max-w-none [&_h5]:max-w-none [&_h6]:max-w-none`)})})]}),t.error&&(0,z.jsx)(`p`,{className:S(N.fail,`m-0`),children:t.error})]},n)}),e.edits.length>0&&(0,z.jsxs)(`div`,{className:`flex flex-col`,children:[(0,z.jsx)(`h4`,{className:`m-0 text-body-sm font-medium text-muted`,children:`Files changed`}),(0,z.jsx)(`ul`,{"aria-label":`Files changed`,className:`m-0 flex list-none flex-col p-0`,children:(0,z.jsx)(au,{items:e.edits,first:8,render:e=>(0,z.jsx)(fu,{e},e.path)})})]}),s.length>0&&(0,z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,z.jsx)(`h4`,{className:`m-0 text-body-sm font-medium text-muted`,children:`Files changed`}),(0,z.jsx)(`ul`,{"aria-label":`Files changed`,className:`m-0 flex list-none flex-col p-0`,children:s.map(e=>(0,z.jsxs)(`li`,{className:`flex min-h-9 min-w-0 items-center gap-4 border-t border-line-soft text-body-sm first:border-t-0`,children:[(0,z.jsx)(`span`,{className:`w-[52px] flex-none text-body-sm text-muted`,children:pu[e.action]||e.action.charAt(0).toUpperCase()+e.action.slice(1)}),(0,z.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:(0,z.jsx)(ei,{path:e.path})})]},e.path))}),(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`Their diffs were not kept for this run.`})]}),!e.edits.length&&!s.length&&!e.results.length&&(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`No files changed.`}),e.edits.some(e=>!e.diffs.length)&&(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`A file without a diff was changed before ForgeQE kept diffs, or is a hidden or credential file, whose text is not kept.`})]})}function gu({final:e,answer:t,className:n}){let r=e.from===`agent`?t?.files??[]:[],i=e.from!==`agent`,a=Math.max(2,...(e.text.match(/`+/g)||[]).map(e=>e.length)),o="`".repeat(a+1);return(0,z.jsxs)(ru,{...n?{className:n}:{},title:`Final message`,icon:zt,aside:(0,z.jsx)(`span`,{className:`text-body-sm text-muted`,children:e.from===`agent`?`The agent's last reply`:e.from===`job`?`The end of the job's output`:`What the command said at the end`}),children:[(0,z.jsx)(uu,{text:i?`${o}text\n${e.text}\n${o}`:Un(e.text),height:420}),r.length>0&&(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-body-sm`,children:[(0,z.jsx)(`span`,{className:`text-muted`,children:`Files it names:`}),r.map(e=>(0,z.jsx)(ei,{path:e},e))]})]})}var _u={rule:{icon:mn,label:`Rulebook`},decision:{icon:nn,label:`Test decisions`},memory:{icon:En,label:`Page memory`},replay:{icon:Ye,label:`Replays`},model:{icon:$t,label:`Model`},skill:{icon:ct,label:`Skills`}};function vu({list:e,className:t}){let n=Object.keys(_u).filter(t=>e.some(e=>e.kind===t));return(0,z.jsx)(ru,{...t?{className:t}:{},title:`Learnings`,icon:Sn,aside:e.length?(0,z.jsxs)(`span`,{className:`text-body-sm text-muted`,children:[e.length,` from this session`]}):void 0,children:e.length===0?(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`Nothing learned or decided in this session: no rules, test decisions, page memory or model switches in its log.`}):(0,z.jsx)(`div`,{className:`grid grid-cols-[repeat(auto-fit,minmax(280px,1fr))] gap-x-6 gap-y-4`,children:n.map(t=>{let{icon:n,label:r}=_u[t];return(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,z.jsxs)(`h4`,{className:`m-0 flex items-center gap-2 text-body-sm font-medium text-muted`,children:[(0,z.jsx)(F,{icon:n,size:14}),r]}),(0,z.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:e.filter(e=>e.kind===t).map((e,t)=>(0,z.jsxs)(`li`,{className:`flex flex-col gap-1 border-t border-line-soft py-2 text-body-sm first:border-t-0`,children:[(0,z.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:e.text}),e.note&&(0,z.jsx)(`span`,{className:`text-body-sm text-muted [overflow-wrap:anywhere]`,children:e.note})]},t))})]},t)})})})}function yu({run:e,className:t}){let n=[],r=t?{className:t}:{};return(e.executions.length||e.kind===`execution`)&&n.push({kind:`execution`,node:(0,z.jsx)(cu,{list:e.executions,...r},`e`)}),(e.reports.length||e.kind===`report`)&&n.push({kind:`report`,node:(0,z.jsx)(lu,{list:e.reports,...r},`r`)}),e.coding&&(e.coding.edits.length||e.coding.results.length||e.kind===`coding`)&&n.push({kind:`coding`,node:(0,z.jsx)(hu,{c:e.coding,files:e.files,...r},`c`)}),n.sort((t,n)=>Number(n.kind===e.kind)-Number(t.kind===e.kind)),(0,z.jsx)(z.Fragment,{children:n.map(e=>e.node)})}var bu=e({ORIGIN:()=>Au,Runs:()=>$u,RunsTable:()=>Zu,StatusIcon:()=>Mu,empty:()=>Nu,newestRuns:()=>Yu,runTab:()=>Gu,statusLabel:()=>ju}),xu={running:{label:`Running`,tone:`running`},done:{label:`Done`,tone:`pass`},failed:{label:`Failed`,tone:`fail`},stopped:{label:`Stopped`,tone:`neutral`}},Su={chat:`Chat`,suite:`Suite`,monitor:`Monitor`,run:`Browser run`,start:`Chat`,heal:`Heal`,"pr-tests":`PR tests`,pack:`Pack`,pipeline:`Pipeline watch`,explore:`Explore`,api:`API tests`,generate:`Generate`,jobs:`Jobs service`},Cu=e=>Su[e]||e.charAt(0).toUpperCase()+e.slice(1),wu=e=>{if(!e)return``;let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString([],{month:`short`,day:`numeric`,...t.getFullYear()===new Date().getFullYear()?{}:{year:`numeric`},hour:`numeric`,minute:`2-digit`})},Tu=(e,t)=>Math.max(0,Math.round(((e.status===`running`?t:Date.parse(e.lastAt))-Date.parse(e.startedAt))/1e3)),Eu=e=>Number.isFinite(e)?e<60?`${e}s`:e<3600?`${Math.floor(e/60)}m ${e%60}s`:`${Math.floor(e/3600)}h ${Math.floor(e%3600/60)}m`:`–`,Du=e=>e.usage.input+e.usage.output;function Ou(e){let[t,n]=(0,R.useState)(Date.now());return(0,R.useEffect)(()=>{if(!e)return;let t=$n(()=>n(Date.now()),1e3);return()=>Yn(t)},[e]),t}function ku({r:e}){return e.origin.kind===`web`?(0,z.jsxs)(`a`,{href:s(`chats`,e.origin.chat),className:`inline-flex items-center gap-2`,children:[(0,z.jsx)(F,{icon:cn,size:14}),`Web chat`]}):e.origin.kind===`job`?(0,z.jsxs)(`a`,{href:s(`jobs`,encodeURIComponent(e.origin.job)),className:`inline-flex items-center gap-2`,children:[(0,z.jsx)(F,{icon:Rt,size:14}),`Job`]}):(0,z.jsxs)(`span`,{className:`inline-flex items-center gap-2 text-muted`,children:[(0,z.jsx)(F,{icon:Kt,size:14}),`Terminal`]})}var Au={web:`Web chat`,job:`Job`,terminal:`Terminal`},ju=e=>xu[e].label;function Mu({status:e}){let t=xu[e].label;return e===`running`?(0,z.jsx)(Bt,{size:16,"aria-label":t,className:`flex-none animate-spin text-accent-fg`}):e===`done`?(0,z.jsx)(gt,{size:16,"aria-label":t,className:`flex-none text-pass`}):e===`failed`?(0,z.jsx)(In,{size:16,"aria-label":t,className:`flex-none text-fail`}):(0,z.jsx)(yt,{size:16,"aria-label":t,className:`flex-none text-muted`})}var Nu=e=>e.status!==`running`&&!e.tools&&!e.turns&&!Du(e)&&!e.files.length&&!e.outputs.length&&Tu(e,0)<2;function Pu(e){return/^forgeqe(-|$)|^engine$/.test(e)?M(e).name:e&&e.charAt(0).toUpperCase()+e.slice(1)}function Fu({label:e,children:t,stacked:n=!1}){return n?(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-col border-t border-line-soft py-2 text-body-sm first:border-t-0`,children:[(0,z.jsx)(`span`,{className:`text-body-sm text-muted`,children:e}),(0,z.jsx)(`span`,{className:`min-w-0 [overflow-wrap:anywhere]`,children:t})]}):(0,z.jsxs)(`div`,{className:`grid grid-cols-[120px_minmax(0,1fr)] items-baseline gap-4 border-t border-line-soft py-2 text-body-sm first:border-t-0`,children:[(0,z.jsx)(`span`,{className:`text-body-sm text-muted`,children:e}),(0,z.jsx)(`span`,{className:`min-w-0 [overflow-wrap:anywhere]`,children:t})]})}function Iu({title:e,icon:t,children:n}){return(0,z.jsx)(qo,{level:3,icon:t,title:e,className:`gap-2`,children:(0,z.jsx)(`div`,{className:`flex min-w-0 flex-col`,children:n})})}var Lu=8,Ru=e=>e===`write`?`Written`:e===`edit`?`Edited`:e===`delete`?`Deleted`:e?e.charAt(0).toUpperCase()+e.slice(1):`Changed`;function zu({run:e,now:t,running:n,events:r}){let i=xu[e.status],a=e.executions.reduce((e,t)=>({total:e.total+t.counts.total,passed:e.passed+t.counts.passed,failed:e.failed+t.counts.failed}),{total:0,passed:0,failed:0}),o=e.coding?.results.at(-1),s=e.coding?.tests.length??0,c=e.coding?.tests.filter(e=>!e.ok).length??0,l=e.coding?.edits??[],u=l.reduce((e,t)=>e+t.added,0),d=l.reduce((e,t)=>e+t.removed,0),f=l.length||e.files.filter(e=>e.action&&e.action!==`read`).length;return(0,z.jsxs)(Mr,{label:`How this run went`,children:[(0,z.jsx)(mr,{compact:!0,label:`Outcome`,value:i.label,tone:i.tone===`fail`?`text-fail`:i.tone===`pass`?`text-pass`:void 0,...o?.attempts?{note:`attempt ${o.attempts}${o.maxAttempts?` of ${o.maxAttempts}`:``}`}:{}}),(0,z.jsx)(mr,{label:n?`Running for`:`Took`,value:Eu(Tu(e,t)),...r?{note:x(r,`event`)}:{}}),a.total>0&&(0,z.jsx)(mr,{label:`Cases`,value:`${a.passed}/${a.total}`,...a.failed?{tone:`text-fail`}:a.passed===a.total?{tone:`text-pass`}:{},note:`passed`}),s>0&&(0,z.jsx)(mr,{label:`Test runs`,value:s,...c?{note:`${c} failed`}:{}}),f>0&&(0,z.jsx)(mr,{label:`Files changed`,value:f,...u+d?{note:`+${u} −${d}`}:{}}),Du(e)>0&&(0,z.jsx)(mr,{label:`Tokens`,value:Bn(Du(e)),note:`${Bn(e.usage.input)} in · ${Bn(e.usage.output)} out`})]})}var Bu={rerun:st,write_test:on,investigate:lt,fix_test:ft},Vu={rerun:`Retry`,write_test:`Write`,investigate:`Investigate`,fix_test:`Fix`};function Hu({actions:e}){let[t,n]=(0,R.useState)(``),[r,i]=(0,R.useState)(``);if(!e.length)return null;let a=async e=>{n(e.prompt),i(``);try{let{id:t}=await Re.start(e.prompt,{});location.hash=s(`chats`,t)}catch(e){i(e.message),n(``)}};return(0,z.jsxs)(`section`,{"aria-label":`Next steps`,className:`flex flex-col gap-2`,children:[(0,z.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:e.map((e,n)=>(0,z.jsxs)(I,{disabled:!!t,onClick:()=>void a(e),"data-tip":e.note?`${e.label}: ${e.note}`:e.label,className:`max-w-full min-w-0`,children:[(0,z.jsx)(F,{icon:Bu[e.kind],size:16,className:`flex-none`}),(0,z.jsx)(`span`,{className:`min-w-0 truncate`,children:t===e.prompt?`Opening…`:Vu[e.kind]}),e.note&&(0,z.jsx)(`span`,{className:`min-w-0 flex-[1_1_0] truncate font-normal text-ink-2`,children:e.note})]},n))}),(0,z.jsx)(`span`,{className:`text-body-sm text-muted`,children:`Each opens a chat with the request; it asks before it changes anything.`}),r&&(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-fail`,children:r})]})}var Uu=e=>`\`${e.replace(/`/g,``)}\``,Wu=[`summary`,`conversation`,`activity`,`details`],Gu=e=>Wu.find(t=>t===e)??`summary`;function X({name:e,tab:t}){let[n,r]=(0,R.useState)(null),[i,a]=(0,R.useState)(``),[o,c]=(0,R.useState)(!1),l=Gu(t),u=t=>location.hash=t===`summary`?s(`runs`,encodeURIComponent(e)):s(`runs`,encodeURIComponent(e),t),d=(0,R.useCallback)(()=>{ye.detail(e).then(e=>{r(e),a(``)},e=>a(e.message))},[e]);(0,R.useEffect)(d,[d]);let f=n?.status===`running`;(0,R.useEffect)(()=>{if(!f)return;let e=$n(d,2e3);return()=>Yn(e)},[d,f]);let p=Ou(f),m=(0,R.useMemo)(()=>(n?.events??[]).map(zr).filter(e=>!!e),[n?.events]),h=async()=>{c(!0),a(``);try{await ye.cancel(e),d()}catch(e){a(e.message)}finally{c(!1)}},g=(0,z.jsx)(Ue,{to:{href:s(`runs`),label:`All runs`}});if(!n)return(0,z.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[g,i?(0,z.jsx)(`p`,{role:`alert`,className:S(N.fail,`m-0`),children:i}):(0,z.jsx)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:`Loading…`})]});let _=xu[n.status],v=!n.replies.length,y=!!n.final||n.executions.length>0||n.reports.length>0||!!(n.coding&&(n.coding.edits.length||n.coding.results.length))||n.learnings.length>0||n.outputs.length>0||n.files.length>0,b=[{id:`summary`,label:`Summary`},{id:`conversation`,label:v?`Command`:`Conversation`,n:n.replies.length||void 0},{id:`activity`,label:`Activity`,n:m.length||void 0},{id:`details`,label:`Details`}],C=new Set([...n.reports.map(e=>e.path),...n.executions.flatMap(e=>[e.report,e.folder])].filter(Boolean)),w=n.outputs.filter(e=>!C.has(e.path)),ee=n.context?.limit?Math.round(n.context.tokens/n.context.limit*100):null,T=w.length>0||n.files.length>0?`@3xl:col-span-3`:`@3xl:col-span-4`;return(0,z.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[g,(0,z.jsxs)(`div`,{className:`flex flex-wrap items-start gap-x-4 gap-y-4`,children:[(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_320px] flex-col gap-2`,children:[(0,z.jsx)(Ko,{icon:bt,title:n.title,actions:(0,z.jsx)(Ve,{tone:_.tone,children:_.label})}),(0,z.jsxs)(`span`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1 text-body-sm text-muted`,children:[(0,z.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,z.jsx)(Ql,{kind:n.kind}),Xl[n.kind]]}),`· `,(0,z.jsx)(ku,{r:n}),`· `,wu(n.startedAt),` · `,f?`running for `:`took `,Eu(Tu(n,p)),` · `,Bn(Du(n)),` tokens`,n.profile?.model?` · ${n.profile.model}`:``]})]}),n.cancel&&(0,z.jsxs)(I,{busy:o,variant:`danger`,disabled:o,"data-tip":n.cancel===`chat`?`Stop this chat's work`:`Cancel this job's run`,onClick:()=>void h(),children:[n.cancel===`chat`?(0,z.jsx)(pn,{fill:`currentColor`,"aria-hidden":`true`}):(0,z.jsx)(wt,{"aria-hidden":`true`}),o?`Stopping…`:n.cancel===`chat`?`Stop`:`Cancel`]})]}),i&&(0,z.jsx)(`p`,{role:`alert`,className:S(N.fail,`m-0`),children:i}),n.error&&(0,z.jsxs)(`p`,{className:S(N.fail,`m-0`),children:[(0,z.jsx)(`strong`,{children:`What went wrong:`}),` `,n.error]}),!f&&(0,z.jsx)(Hu,{actions:n.actions??[]}),(0,z.jsx)(yr,{prefix:`run`,label:`This run`,className:`mb-0`,current:l,onPick:u,tabs:b}),(0,z.jsxs)(`div`,{role:`tabpanel`,id:`run-panel-${l}`,"aria-labelledby":`run-${l}`,className:`flex min-w-0 flex-col gap-6`,children:[l===`summary`&&(0,z.jsxs)(z.Fragment,{children:[y&&(0,z.jsx)(zu,{run:n,now:p,running:f,events:m.length}),(0,z.jsxs)(`div`,{className:`grid items-start gap-x-12 gap-y-6 @3xl:grid-cols-4 @3xl:[grid-auto-flow:dense]`,children:[n.final&&(0,z.jsx)(gu,{final:n.final,answer:n.answer,className:T}),(0,z.jsx)(yu,{run:n,className:T}),w.length>0&&(0,z.jsx)(`div`,{className:`flex min-w-0 flex-col pt-6 @3xl:col-span-1`,children:(0,z.jsx)(Iu,{title:`What it produced (${w.length})`,icon:Dn,children:w.map(e=>(0,z.jsx)(Fu,{label:e.label,stacked:!0,children:(0,z.jsx)(ei,{path:e.path,children:e.path.split(`/`).pop()})},e.path))})}),n.files.length>0&&(0,z.jsx)(`div`,{className:`flex min-w-0 flex-col pt-6 @3xl:col-span-1`,children:(0,z.jsx)(Iu,{title:`Files worked on (${n.files.length})`,icon:$e,children:(0,z.jsx)(au,{items:[...n.files].sort((e,t)=>Number(e.action===`read`)-Number(t.action===`read`)),first:Lu,render:e=>(0,z.jsx)(Fu,{label:Ru(e.action),stacked:!0,children:e.action===`delete`?(0,z.jsx)(`span`,{className:`font-mono text-body-sm`,children:e.path.split(`/`).pop()}):(0,z.jsx)(ei,{path:e.path,children:e.path.split(`/`).pop()})},e.path)})})}),n.learnings.length>0&&(0,z.jsx)(vu,{list:n.learnings,className:`@3xl:col-span-4`})]}),!y&&(0,z.jsx)(ze,{className:`py-4`,children:f?`Still working: its answer and what it produces show here when it ends.`:`This run left no answer, results or files. Its Activity shows what it did.`})]}),l===`conversation`&&(v?(0,z.jsx)(ni,{text:Uu(n.prompt),className:`text-body-sm [&_p]:my-0`}):(0,z.jsx)(`ol`,{className:`m-0 flex list-none flex-col gap-4 p-0`,children:n.replies.map((e,t)=>(0,z.jsxs)(`li`,{className:`flex flex-col gap-2`,children:[(0,z.jsx)(`div`,{className:S(`rounded-md bg-bg px-4 py-2 text-ink shadow-md [overflow-wrap:anywhere]`,`max-w-[85%] self-end text-body-sm`),children:(0,z.jsx)(ni,{text:e.ask,className:`[&_p]:my-1`})}),e.text&&(0,z.jsx)(ni,{text:Un(e.text),className:`text-body-sm`}),e.error&&(0,z.jsx)(`p`,{className:S(N.fail,`m-0`),children:e.error})]},t))})),l===`activity`&&(n.archived?(0,z.jsxs)(`p`,{className:S(N.info,`m-0`),children:[`ForgeQE keeps the newest session logs only, and this run's is gone. Its summary, final message and learnings were kept in `,(0,z.jsx)(`code`,{className:`font-mono text-body-sm`,children:`.forgeqe/runs`}),`; its step-by-step activity was not.`]}):m.length?(0,z.jsx)(Vl,{timeline:!0,lines:m,live:f,name:`forgeqe-run-${n.name.replace(/\.log$/,``)}.md`}):(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`Nothing logged yet.`})),l===`details`&&(0,z.jsxs)(Ku,{children:[(0,z.jsxs)(Iu,{title:`Numbers`,icon:jn,children:[(0,z.jsx)(Fu,{label:f?`Running for`:`Took`,children:Eu(Tu(n,p))}),(0,z.jsx)(Fu,{label:`Tokens`,children:(0,z.jsxs)(`span`,{className:`flex flex-col gap-1`,children:[(0,z.jsxs)(`span`,{children:[Bn(Du(n)),` `,(0,z.jsxs)(`span`,{className:`text-muted`,children:[`· `,rr(n.usage)]})]}),(n.byAgent?.length??0)>1&&(0,z.jsx)(`span`,{className:`flex flex-col gap-1 text-body-sm`,children:n.byAgent.map(e=>(0,z.jsxs)(`span`,{className:`flex items-baseline gap-2`,children:[(0,z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-ink-2`,children:Pu(e.agent)}),(0,z.jsx)(`span`,{className:`text-muted tabular-nums`,children:Bn(e.input+e.output)})]},e.agent))})]})}),(0,z.jsxs)(Fu,{label:`Context`,children:[n.context?Bn(n.context.tokens):`–`,ee!==null&&(0,z.jsxs)(`span`,{className:`text-muted`,children:[` of `,Bn(n.context.limit),` (`,ee,`%)`]})]}),(0,z.jsxs)(Fu,{label:`Tool calls`,children:[n.tools,` `,(0,z.jsxs)(`span`,{className:`text-muted`,children:[`in `,x(n.turns,`turn`)]})]})]}),(0,z.jsxs)(Iu,{title:`Session`,icon:wn,children:[(0,z.jsx)(Fu,{label:`Started by`,children:(0,z.jsx)(ku,{r:n})}),(0,z.jsx)(Fu,{label:`Command`,children:Cu(n.command)}),(0,z.jsx)(Fu,{label:`Model`,children:n.profile?[n.profile.name,n.profile.model].filter(Boolean).join(` · `):`–`}),(0,z.jsx)(Fu,{label:`Agents`,children:n.agents.length?(0,z.jsx)(`span`,{className:`flex flex-col gap-1`,children:n.agents.map(e=>(0,z.jsxs)(`span`,{className:`flex items-baseline gap-2`,children:[(0,z.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:Pu(e.name)}),(0,z.jsx)(`span`,{className:`text-body-sm text-muted tabular-nums`,children:x(e.calls,`call`)})]},e.name))}):(0,z.jsx)(`span`,{className:`text-muted`,children:`None`})}),(0,z.jsxs)(Fu,{label:`Log`,children:[n.archived?(0,z.jsx)(`span`,{className:`text-muted`,children:`No longer kept: ForgeQE keeps the newest logs only`}):(0,z.jsx)(ei,{path:`.forgeqe/logs/${n.name}`}),n.truncated&&(0,z.jsx)(`span`,{className:`block text-body-sm text-muted`,children:`Very long: only its start is shown.`})]})]}),n.job&&(0,z.jsxs)(Iu,{title:`Job`,icon:Rt,children:[(0,z.jsx)(Fu,{label:`Job`,children:(0,z.jsx)(`a`,{href:s(`jobs`,encodeURIComponent(n.origin.kind===`job`?n.origin.job:n.job.name)),children:n.job.name})}),(0,z.jsx)(Fu,{label:`Runs`,children:(0,z.jsx)(ni,{text:Uu(n.job.command),className:`text-body-sm [&_p]:my-0`})}),(0,z.jsxs)(Fu,{label:`Schedule`,children:[n.job.schedule,!n.job.enabled&&` (disabled)`,n.job.nextAt&&n.job.enabled?` · next ${wu(n.job.nextAt)}`:``]}),n.job.run&&(0,z.jsxs)(Fu,{label:`This run`,children:[n.job.run.reason===`asked`?`Asked for`:`On schedule`,`, `,n.job.run.status.replace(`_`,` `),n.job.run.exitCode!==void 0&&n.job.run.exitCode!==null?`, exit ${n.job.run.exitCode}`:``]})]}),(0,z.jsx)(Iu,{title:`Notifications`,icon:Cn,children:n.notifications.length?n.notifications.map(e=>(0,z.jsx)(Fu,{label:e.event.replace(/_/g,` `),children:e.channels.length?e.channels.join(`, `):(0,z.jsx)(`span`,{className:`text-muted`,children:`No channel takes it`})},e.event)):(0,z.jsx)(`p`,{className:`m-0 py-1 text-body-sm text-muted`,children:n.origin.kind===`terminal`||n.origin.kind===`web`?`None: notify channels go with jobs, suites and the monitor.`:`No notify channels are set up (Settings, Notify).`})})]})]})]})}function Ku({children:e}){let t=R.Children.toArray(e).filter(Boolean),n=t.length%2==1;return(0,z.jsx)(`div`,{className:`grid items-start gap-x-12 gap-y-6 @3xl:grid-cols-4 @3xl:[grid-auto-flow:dense]`,children:t.map((e,r)=>(0,z.jsx)(`div`,{className:S(`flex min-w-0 flex-col pt-6`,n&&r===t.length-1?`@3xl:col-span-4`:`@3xl:col-span-2`),children:e},r))})}var qu={running:0,failed:1,stopped:2,done:3},Ju=e=>Date.parse(e.startedAt)||0,Yu=e=>e.toSorted((e,t)=>Ju(t)-Ju(e)),Xu=e=>s(`runs`,encodeURIComponent(e.name));function Zu({runs:e,now:t,resetKey:n,tools:r,end:i,empty:a}){return(0,z.jsx)(Sr,{label:`Runs`,search:!1,resetKey:n,tools:r,end:i,height:br,empty:a,head:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`th`,{scope:`col`,className:gr,children:`Run`}),(0,z.jsx)(`th`,{scope:`col`,className:S(gr,`w-[128px]`),children:`Status`}),(0,z.jsx)(`th`,{scope:`col`,className:S(gr,`hidden w-[160px] @2xl:table-cell`),children:`Kind`}),(0,z.jsx)(`th`,{scope:`col`,className:S(gr,`hidden w-[128px] @3xl:table-cell`),children:`Started by`}),(0,z.jsx)(`th`,{scope:`col`,className:S(Hr,`hidden w-[96px] @3xl:table-cell`),children:`Took`}),(0,z.jsx)(`th`,{scope:`col`,className:S(Hr,`hidden w-[96px] @3xl:table-cell`),children:`Tokens`}),(0,z.jsx)(`th`,{scope:`col`,className:S(Hr,`hidden w-[128px] @xl:table-cell`),children:`When`})]}),children:e.map(e=>{let n=xu[e.status];return(0,z.jsxs)(`tr`,{className:Hn,onClick:()=>location.hash=Xu(e),children:[(0,z.jsx)(`td`,{className:S(Rr,`max-w-0`),children:(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,z.jsx)(`a`,{href:Xu(e),onClick:e=>e.stopPropagation(),className:`truncate font-medium text-ink no-underline hover:underline`,"data-tip":e.title,children:e.title}),e.error?(0,z.jsx)(`span`,{className:`truncate text-fail`,"data-tip":e.error,children:e.error}):(0,z.jsx)(`span`,{className:`truncate text-muted @3xl:hidden`,children:[Xl[e.kind],Au[e.origin.kind]||e.origin.kind,Eu(Tu(e,t)),`${Bn(Du(e))} tokens`,qr(e.startedAt)].join(` · `)})]})}),(0,z.jsx)(`td`,{className:S(Rr,`whitespace-nowrap`),"data-sort":qu[e.status],children:(0,z.jsx)(Ve,{tone:n.tone,children:n.label})}),(0,z.jsx)(`td`,{className:S(Rr,`hidden max-w-0 @2xl:table-cell`),children:(0,z.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2 text-ink-2`,children:[(0,z.jsx)(Ql,{kind:e.kind}),(0,z.jsx)(`span`,{className:`truncate`,children:Xl[e.kind]})]})}),(0,z.jsx)(`td`,{className:S(Rr,`hidden text-ink-2 @3xl:table-cell`),children:Au[e.origin.kind]||e.origin.kind}),(0,z.jsx)(`td`,{className:S(Wr,`hidden text-ink-2 @3xl:table-cell`),"data-sort":Tu(e,t),children:Eu(Tu(e,t))}),(0,z.jsx)(`td`,{className:S(Wr,`hidden text-ink-2 @3xl:table-cell`),"data-sort":Du(e),children:Bn(Du(e))}),(0,z.jsx)(`td`,{className:S(Wr,`hidden text-ink-2 @xl:table-cell`),"data-sort":Ju(e),"data-tip":wu(e.startedAt),children:qr(e.startedAt)})]},e.name)})})}function Qu({runs:e}){let t=Ou(e.some(e=>e.status===`running`)),[n,r]=(0,R.useState)(``),[i,a]=(0,R.useState)(`all`),[o,c]=(0,R.useState)(``),[l,u]=(0,R.useState)(``),[f,p]=(0,R.useState)(!1),m=e.filter(Nu).length,h=n.toLowerCase().split(/\s+/).filter(Boolean),g=e.filter(e=>(f||!Nu(e))&&(!o||e.kind===o)&&(!l||e.origin.kind===l)&&h.every(t=>`${e.title} ${e.command} ${e.error||``}`.toLowerCase().includes(t))),_={all:g.length,running:g.filter(e=>e.status===`running`).length,failed:g.filter(e=>e.status===`failed`).length},v=Yu(i===`all`?g:g.filter(e=>e.status===i)),y=e.filter(e=>e.status!==`running`&&!Nu(e)),b=y.filter(e=>e.status===`failed`).length,C=y.length?y.reduce((e,n)=>e+Tu(n,t),0)/y.length:NaN,w=e.reduce((e,t)=>e+Du(t),0),ee=[...new Set(e.map(e=>e.kind))],T=[...new Set(e.map(e=>e.origin.kind))];return e.length===0?(0,z.jsx)(ze,{icon:wn,title:`No runs yet`,action:(0,z.jsxs)(`a`,{className:P({size:`sm`}),href:s(),"data-tip":`Start a chat`,children:[(0,z.jsx)(cn,{"aria-hidden":`true`}),`Chat`]}),children:`A chat here, a job, or a ForgeQE command in this project adds one.`}):(0,z.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap gap-x-6 gap-y-1 text-body-sm text-muted`,children:[(0,z.jsxs)(`span`,{children:[(0,z.jsx)(`b`,{className:`text-ink tabular-nums`,children:e.length-m}),` runs`]}),e.some(e=>e.status===`running`)&&(0,z.jsxs)(`span`,{children:[(0,z.jsx)(`b`,{className:`text-accent-fg tabular-nums`,children:e.filter(e=>e.status===`running`).length}),` running now`]}),(0,z.jsxs)(`span`,{children:[(0,z.jsx)(`b`,{className:S(`tabular-nums`,b?`text-fail`:`text-ink`),children:b}),` failed`,y.length?` (${Math.round(b/y.length*100)}%)`:``]}),(0,z.jsxs)(`span`,{children:[(0,z.jsx)(`b`,{className:`text-ink tabular-nums`,children:Bn(w)}),` tokens`]}),(0,z.jsxs)(`span`,{children:[(0,z.jsx)(`b`,{className:`text-ink tabular-nums`,children:Eu(Math.round(C))}),` on average`]})]}),(0,z.jsx)(`div`,{children:(0,z.jsx)(Zu,{runs:v,now:t,resetKey:`${n}-${i}-${o}-${l}-${f}`,empty:`No run matches.`,tools:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(He,{id:`run-search`,label:`Find a run`,value:n,onChange:r,placeholder:`Find a run by what was asked`}),(0,z.jsx)(Be,{items:[{id:`all`,label:`All`,n:_.all},{id:`running`,label:`Running`,n:_.running},{id:`failed`,label:`Failed`,n:_.failed,alert:!0}],value:i,onChange:a}),ee.length>1&&(0,z.jsxs)(d,{size:`sm`,"aria-label":`What it did`,value:o,onChange:e=>c(e.target.value),className:`w-auto pr-8 pl-4`,children:[(0,z.jsx)(`option`,{value:``,children:`Any kind`}),ee.map(e=>(0,z.jsx)(`option`,{value:e,children:Xl[e]},e))]}),T.length>1&&(0,z.jsxs)(d,{size:`sm`,"aria-label":`Started by`,value:l,onChange:e=>u(e.target.value),className:`w-auto pr-8 pl-4`,children:[(0,z.jsx)(`option`,{value:``,children:`Started anywhere`}),T.map(e=>(0,z.jsx)(`option`,{value:e,children:Au[e]||e},e))]})]}),end:m>0&&(0,z.jsx)(I,{variant:`link`,size:`inline`,onClick:()=>p(!f),children:f?`Hide the ${x(m,`empty session`)}`:`${x(m,`empty session`)} hidden`})})})]})}function $u({sub:e}){let[t,n]=(0,R.useState)(null),[r,i]=(0,R.useState)(``),a=(0,R.useCallback)(()=>{ye.list().then(e=>{n(e.runs),i(``)},e=>i(e.message))},[]);(0,R.useEffect)(a,[a]);let s=t?.some(e=>e.status===`running`);(0,R.useEffect)(()=>{if(e)return;let t=$n(a,s?3e3:2e4);return()=>Yn(t)},[a,s,e]);let[c,l]=(e||``).split(`/`),u=c?o(c):``;return(0,z.jsxs)(`div`,{className:`flex min-h-(--screen) flex-col`,children:[(0,z.jsx)(Fr,{}),(0,z.jsx)(`main`,{className:S(Ir,`@container flex-auto gap-4`),children:u?(0,z.jsx)(X,{name:u,tab:l},u):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Ue,{}),(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-6 gap-y-2`,children:[(0,z.jsxs)(`span`,{className:`flex items-center gap-4`,children:[(0,z.jsx)(Xn,{pixel:T.runs,size:`lg`}),(0,z.jsx)(`h1`,{className:`m-0 text-headline-lg`,children:`Runs`})]}),(0,z.jsx)(Or,{label:`Runs and reports`,links:Jl,current:`runs`})]}),(0,z.jsx)(`p`,{className:`m-0 text-body-sm leading-relaxed text-ink-2`,children:`Every ForgeQE session in this project: chats here, jobs' runs, and commands typed in a terminal, newest first. Open one for how it went and what it produced.`}),r&&(0,z.jsx)(`p`,{role:`alert`,className:S(N.fail,`m-0`),children:r}),!t&&!r&&(0,z.jsx)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:`Loading…`}),t&&(0,z.jsx)(Qu,{runs:t})]})})]})}var ed=5,td={running:`running`,done:`pass`,failed:`fail`,stopped:`neutral`},nd=new Intl.DateTimeFormat([],{month:`short`,day:`numeric`}),rd=new Intl.DateTimeFormat([],{weekday:`short`});function id({perDay:e,now:t=new Date}){let n=e.length,r=e=>new Date(t.getFullYear(),t.getMonth(),t.getDate()-(n-1)+e),i=Math.max(1,...e),a=e.map((e,t)=>`${rd.format(r(t))} ${e}`).join(`, `);return(0,z.jsxs)(`div`,{role:`img`,"aria-label":`Runs started each day this week: ${a}; ${e[n-1]??0} today`,className:`flex flex-col gap-2`,children:[(0,z.jsx)(`div`,{className:`flex h-6 items-end gap-1`,"aria-hidden":`true`,children:e.map((e,t)=>(0,z.jsx)(`span`,{"data-tip":`${t===n-1?`Today`:nd.format(r(t))}: ${x(e,`run`)}`,className:S(`flex-1 rounded-sm`,t===n-1?`bg-accent`:e?`bg-accent-line`:`bg-surface-strong`),style:{height:e?`${Math.max(25,e/i*100)}%`:`3px`}},t))}),(0,z.jsx)(`div`,{className:`flex gap-1 tabular-nums`,"aria-hidden":`true`,children:e.map((e,t)=>(0,z.jsx)(`span`,{className:S(`flex-1 text-center`,t===n-1&&`font-medium text-accent-fg`),children:rd.format(r(t)).slice(0,2)},t))})]})}function ad({label:e,aside:t,value:n,unit:r,children:i}){return(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,z.jsxs)(`div`,{className:`flex min-h-6 items-center justify-between gap-2 text-body-sm whitespace-nowrap`,children:[(0,z.jsx)(`span`,{className:`font-medium text-ink-2`,children:e}),t]}),(0,z.jsxs)(`p`,{className:`m-0 font-home text-headline-lg leading-none text-ink tabular-nums`,children:[n,r&&(0,z.jsx)(`span`,{className:`ml-1 text-body-sm font-normal tracking-normal text-muted`,children:r})]}),(0,z.jsx)(`div`,{className:`mt-2 min-w-0 text-body-sm text-muted`,children:i})]})}function od({board:e,now:t=new Date}){let n=Pc(e.runs.filter(e=>!Nu(e)),t),r=zc(e),i=jc(e.chats??[],t);return(0,z.jsxs)(y,{as:`section`,"aria-label":`This week at a glance`,className:`grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-4 lg:gap-0`,children:[(0,z.jsx)(`div`,{className:`lg:pr-8`,children:(0,z.jsx)(ad,{label:`Runs this week`,aside:n.perDay[6]?(0,z.jsxs)(`span`,{className:`inline-flex items-center gap-1 font-medium text-icon`,children:[(0,z.jsx)(jn,{size:14,"aria-hidden":`true`}),n.perDay[6],` today`]}):void 0,value:n.total.toLocaleString(),children:(0,z.jsx)(id,{perDay:n.perDay,now:t})})}),(0,z.jsx)(`div`,{className:`lg:px-8`,children:(0,z.jsx)(ad,{label:`Passed this week`,value:n.passRate===null?`–`:n.passRate,...n.passRate===null?{}:{unit:`%`},aside:n.failed?(0,z.jsxs)(Ve,{tone:`fail`,children:[n.failed,` failed`]}):void 0,children:n.passRate===null?`Shows once a run has ended.`:(0,z.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,z.jsx)(Ge,{label:`${n.passRate}% of the runs that ended passed`,parts:[{key:`passed`,value:n.passRate,className:`bg-pass`,text:`${n.passRate}%`},{key:`rest`,value:100-n.passRate,className:`bg-surface-strong`,text:``}]}),(0,z.jsx)(`span`,{children:`Of the runs that ended`})]})})}),(0,z.jsx)(`div`,{className:`lg:px-8`,children:(0,z.jsx)(ad,{label:`Waiting on you`,value:r.count,unit:r.count===1?`thing`:`things`,children:r.count?(0,z.jsxs)(`button`,{type:`button`,onClick:Vc,className:`inline-flex cursor-pointer items-center gap-2 border-0 bg-transparent p-0 text-left text-inherit underline-offset-2 hover:underline focus-visible:ring-2 focus-visible:ring-accent`,children:[(0,z.jsx)(`span`,{className:`size-2 flex-none rounded-full bg-warn`,"aria-hidden":`true`}),Bc(e).answer?`Answer them below`:`See them below`]}):(0,z.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`size-2 rounded-full bg-pass`,"aria-hidden":`true`}),`Nothing needs you now`]})})}),(0,z.jsx)(`div`,{className:`lg:pl-8`,children:(0,z.jsx)(ad,{label:`Done today`,value:i,unit:i===1?`turn`:`turns`,children:`Chats that finished their work today`})})]})}function sd({board:e}){let t=zc(e);return!t.count&&!e.unread.approvals&&!e.unread.jobs?null:(0,z.jsxs)(`section`,{"aria-labelledby":`home-waiting`,className:`flex flex-col gap-4`,children:[(0,z.jsx)(Ko,{id:`home-waiting`,icon:pt,title:`Waiting on you`,n:t.count}),(0,z.jsx)(y,{className:``,children:(0,z.jsx)(Uc,{board:e,all:!0})})]})}function cd({board:e}){let t=(e.chats??[]).filter(kc),{running:n}=zc(e),r=jc(e.chats??[]);return(0,z.jsxs)(`section`,{"aria-labelledby":`home-working`,className:`flex flex-col gap-4`,children:[(0,z.jsx)(Ko,{id:`home-working`,icon:bt,title:`Working now`,n:Wc(e),actions:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-body-sm text-muted tabular-nums`,children:[(0,z.jsx)(F,{icon:gt,size:14,className:`text-pass`}),r,` done today`]}),(0,z.jsx)(Jo,{href:s(`chats`),children:`All chats`})]})}),t.length===0&&!n?(0,z.jsx)(ze,{className:`py-2`,children:`Nothing is running. What you ask above shows here while it works.`}):(0,z.jsxs)(`ul`,{className:`m-0 grid list-none grid-cols-1 gap-4 p-0 md:grid-cols-2 xl:grid-cols-3`,children:[t.map(t=>(0,z.jsx)(y,{as:`li`,className:`min-w-0`,children:(0,z.jsx)(`ul`,{className:`m-0 list-none p-0 [&>li]:border-l-0 [&>li]:p-0`,children:(0,z.jsx)(Qc,{c:t,showAgent:!0,onChange:e.load})})},t.id)),n>0&&(0,z.jsxs)(y,{as:`li`,className:`flex min-w-0 flex-col justify-between gap-4`,children:[(0,z.jsxs)(`span`,{className:`flex items-center gap-2 text-body-sm font-medium text-ink`,children:[(0,z.jsx)(F,{icon:bt,size:16,className:`text-icon`}),x(n,`run`),` going now`]}),(0,z.jsx)(Jo,{href:s(`runs`),children:`Watch them in Runs`})]})]})]})}function ld({runs:e,unread:t=!1}){let[n,r]=(0,R.useState)(`all`),i=n===`failed`,a=e.filter(e=>!Nu(e)),o=a.filter(e=>e.status===`failed`).length,c=(i?a.filter(e=>e.status===`failed`):a).slice(0,ed);return(0,z.jsxs)(`section`,{"aria-labelledby":`home-runs`,className:`flex flex-col gap-4`,children:[(0,z.jsx)(Ko,{id:`home-runs`,icon:Xe,title:`Recent runs`,...a[0]?{description:`Last one started ${qr(a[0].startedAt)}`}:{},actions:(0,z.jsx)(vr,{label:`Show runs`,value:n,onChange:r,options:[{id:`all`,label:`All runs`},{id:`failed`,label:`Only failed`,...o?{n:o,tone:`text-fail`}:{}}]})}),t&&(0,z.jsx)(`p`,{role:`alert`,className:`m-0 text-body-sm text-fail`,children:`Could not read the runs. Trying again shortly.`}),t?null:c.length===0?(0,z.jsx)(ze,{className:`py-2`,children:i?`Nothing failed. Every run that ended passed.`:`No runs yet. A chat here, a job or a ForgeQE command adds one.`}):(0,z.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-2 p-0`,children:c.map(e=>(0,z.jsx)(`li`,{children:(0,z.jsxs)(`a`,{href:s(`runs`,encodeURIComponent(e.name)),className:S(m,`flex min-h-16 items-center gap-4 text-ink no-underline transition-shadow hover:text-ink hover:shadow-md focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent`),children:[(0,z.jsx)(`span`,{className:S(`grid size-10 flex-none place-items-center rounded-sm`,e.status===`failed`?`bg-fail-soft text-fail`:`bg-container text-icon`),children:(0,z.jsx)(F,{icon:e.status===`failed`?pt:e.status===`done`?gt:bt,size:18})}),(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,z.jsx)(`span`,{className:`truncate font-medium`,"data-tip":e.title,children:e.title}),(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-wrap gap-x-4 text-body-sm text-muted`,children:[(0,z.jsx)(`span`,{children:Xl[e.kind]}),(0,z.jsx)(`span`,{children:Au[e.origin.kind]??e.origin.kind}),e.error&&(0,z.jsx)(`span`,{className:`min-w-0 truncate text-fail`,children:e.error})]})]}),(0,z.jsx)(Ve,{tone:td[e.status],className:`flex-none`,children:ju(e.status)}),(0,z.jsx)(`span`,{className:`hidden w-24 flex-none text-right text-body-sm text-muted tabular-nums sm:block`,children:qr(e.startedAt)})]})},e.name))}),(0,z.jsx)(Jo,{href:s(`runs`),className:`self-start`,children:`All runs`})]})}function ud({board:e}){return e.ready?(0,z.jsxs)(`div`,{className:`flex w-full flex-col gap-12`,children:[e.error&&(0,z.jsx)(`p`,{role:`alert`,className:`m-0 text-body-sm text-fail [overflow-wrap:anywhere]`,children:e.error}),(0,z.jsx)(od,{board:e}),(0,z.jsx)(sd,{board:e}),(0,z.jsx)(cd,{board:e}),(0,z.jsx)(ld,{runs:e.runs,unread:!!e.unread.runs}),(0,z.jsxs)(`p`,{className:S(N.info,`m-0 inline-flex items-center gap-2 self-center`),children:[(0,z.jsx)(Sn,{size:14,"aria-hidden":`true`,className:`text-icon`}),`Press `,(0,z.jsx)(Nr,{children:Dr()}),` anywhere to search`]})]}):(0,z.jsx)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:`Reading what the agents are doing…`})}var dd=[`thinking`,`searching`,`reading`,`working`,`writing`,`browsing`,`handing`],fd=2600;function pd(e=Math.random){let t=[...dd];for(let n=t.length-1;n>0;n--){let r=Math.floor(e()*(n+1));[t[n],t[r]]=[t[r],t[n]]}return t}function md(e,t=Math.random){let n=e.length?[...e]:pd(t);return{move:n.pop(),left:n}}function hd(e,t=fd){let n=[];function r(){let t=md(n);n=t.left,e(t.move)}r();let i=setInterval(r,t);return()=>{clearInterval(i),e(`idle`)}}function gd(e){let[t,n]=(0,R.useState)(`idle`);return(0,R.useEffect)(()=>{if(!(e||b()))return hd(n)},[e]),e?`idle`:t}var _d=[{state:`thinking`},{state:`idle`,activity:`searching`},{state:`idle`,activity:`browsing`},{state:`idle`,activity:`reading`},{state:`idle`,activity:`writing`},{state:`idle`,activity:`working`},{state:`idle`,activity:`handing`},{state:`speaking`},{state:`waiting`},{state:`idle`,mood:`joy`},{state:`idle`,mood:`content`},{state:`idle`,mood:`surprised`},{state:`idle`,mood:`concern`},{state:`idle`,mood:`frustrated`},{state:`idle`,mood:`angry`}],vd=[`angry`,`frustrated`];function yd(e){let t=e=>Number.isFinite(e)&&e>0?Math.floor(e):0,n=t(e.failed)+t(e.jobsFailed);return n>=3?{state:`idle`,mood:`angry`}:n>0?{state:`idle`,mood:`frustrated`}:t(e.waiting)?{state:`idle`,mood:`surprised`}:t(e.running)?{state:`idle`,activity:`working`}:{state:`idle`,mood:`joy`}}function bd(e=null,t=Math.random){let n=e?.mood&&vd.includes(e.mood)?e.mood:null,r=_d.map(e=>n&&(e.mood===`joy`||e.mood===`content`)?{state:`idle`,mood:n}:e);for(let e=r.length-1;e>0;e--){let n=Math.floor(t()*(e+1));[r[e],r[n]]=[r[n],r[e]]}return r}function Z(e,t=fd){let n=[],r=null,i=0,a=null,o=(t,n)=>{let r={state:t.state};t.mood&&(r.mood={kind:t.mood,at:++i,secs:n/1e3}),t.activity&&(r.activity=t.activity),e(r),a&&clearTimeout(a),a=setTimeout(s,n)};function s(){n.length||(n=bd(r)),o(n.pop(),t)}return s(),{stop(){a&&clearTimeout(a),a=null,e({state:`idle`})},react(e){r=e,n=[],o(e,t*2)},attend(){o({state:`waiting`},t)}}}function xd(e,t,n){let[r,i]=(0,R.useState)({state:`idle`}),a=(0,R.useRef)(null);(0,R.useEffect)(()=>{if(e||b())return;let t=Z(i);return a.current=t,()=>{a.current=null,t.stop()}},[e]);let o=t?`${t.state}/${t.mood??``}/${t.activity??``}`:``;(0,R.useEffect)(()=>{t&&a.current?.react(t)},[o,e]);let s=(0,R.useRef)(!0);return(0,R.useEffect)(()=>{if(s.current)return void(s.current=!1);n&&a.current?.attend()},[n]),e?{state:`idle`}:r}var Sd={$comment:`ForgeQE's release notes, newest first: the web app's What's new and each GitHub Release. See RELEASING.md.`,releases:[{version:`3.3.3`,date:`2026-11-28`,summary:`Load testing with JMeter on a test environment, plus teams of custom agents that plan the work and hand each task to the member it fits.`,changes:[{kind:`new`,title:`Load testing with JMeter`,detail:`Run load, stress, soak and spike tests with Apache JMeter on a test environment of env.yaml. Surge writes a .jmx plan from your words, ForgeQE checks and smoke-runs it, then runs your load headless and reports response times, throughput and errors per request against your limits, with JMeter's HTML report and junit.xml. Use the Load tests tab on Performance, ask the agent, or forgeqe perf. Your own .jmx plans run too, once they pass the check. JMeter is downloaded only when you agree.`,to:[`performance`,`load`]},{kind:`new`,title:`Strategies, baselines, reports and forecasts`,detail:`Draft a performance strategy from what the tests are for; a person approves it by typing its id, then ForgeQE writes a plan for each journey. Set a baseline, compare runs for regressions, and write an executive report whose numbers come only from the run. Run a plan at several loads and Forecast estimates throughput and p95 for loads you have not run yet.`,to:[`performance`,`load`]},{kind:`new`,title:`Convert LoadRunner and import outside results`,detail:`Turn a LoadRunner VuGen Web script into a checked JMeter plan, with recorded hosts mapped to your apps and credentials kept as secrets. Import a JMeter results file or a summary table from elsewhere as a run, to compare and report on like ForgeQE's own.`,to:[`performance`,`load`]},{kind:`new`,title:`What the servers saw during a load run`,detail:`On a run, Servers reads Application Insights or Datadog for that window and matches each JMeter request to its server operation, so a slow request says whether the time was in the service or before it. The result sits beside the run and in the executive report.`,to:[`performance`,`load`]},{kind:`new`,title:`Teams of custom agents`,detail:`A team is a lead and members, each one of your custom agents, for QA work that needs several of them. The lead plans your request, hands each task to the member it fits and reports one result. A member can work as one of your business personas. Members can work side by side, ask the lead for an answer, leave notes and pick up what another found. A team never lets an agent do more than its own approved version allows: its limits only take away, and one token budget covers the whole team. Run it from its page, a chat, a schedule or forgeqe team.`,to:[`agents`]},{kind:`new`,title:`Build a team on a canvas`,detail:`Under Agents › Custom agents › New team, say what the team should do and Captain, the team builder, drafts it from your own agents, including jobs no agent of yours does yet. The team opens on a canvas: click a part to edit it, drag parts anywhere, draw a line between members for a hand-off, and Choose or Build an agent for an empty job. Preview tries it in a chat that only reads and runs, Publish approves it with its id typed, and Runs replays a run on the canvas.`,to:[`agents`]},{kind:`new`,title:`A team's own knowledge, skills, prompts and guardrails`,detail:`A team can share ForgeQE's knowledge files, skills and product knowledge with every agent, and keep its own skills, prompts, guardrails and notes that only its agents get, for every agent, the lead or the members. Manage them in the canvas's Knowledge box, or in the new Teams view of Settings › Skills, Prompts and Guardrails. Everything is fixed when the team is approved: a change after shows Knowledge changed until a person approves it again.`,to:[`agents`,`skills`]}]},{version:`3.3.2`,date:`2026-11-26`,summary:`The Requirements Agent now runs inside ForgeQE's web app as a guided review, recorded steps can be moved, and every chart uses the new look.`,changes:[{kind:`new`,title:`Review requirements in the web app`,detail:`The Requirements Agent now ships with ForgeQE and has its own page under Test design. A review is four steps: Review, where each role and each of your business personas reads it in turn; Spec report, with the quality score and its six dimensions as dials; Refine, where each gap comes with a suggested answer and a proposed change to Accept, Skip or Discuss; and Requirements report, with the BRD, the decisions kept and what is still open. Reviews use the project's knowledge, and decisions you accept are remembered for later reviews.`,to:[`requirements`]},{kind:`improved`,title:`Home says what is waiting on you`,detail:`The Waiting on you count on Home now says what it is, such as "1 run failed today", "2 approvals" or "1 question for you", and clicking it takes you to the list. When nothing needs a reply, it says "See them below" instead of asking you to answer.`},{kind:`improved`,title:`The guides wear your logo`,detail:`The Help guides show the logo and name set in Settings › Appearance in their header and footer, with your small logo as the tab's icon. On the dark look, a dark logo sits on a light plate so it stays visible.`,to:[`appearance`]},{kind:`improved`,title:`Move a recorded step up or down`,detail:`A recording's review has Move up and Move down beside Drop on the Steps tab, so you can change the order of steps before a re-run. The first step and the steps inside a block stay where they are, and each move is kept as a version you can go back from.`,to:[`record`]},{kind:`improved`,title:`Clearer buttons and icons with your brand colour`,detail:`A button in a mid-tone brand colour keeps white words, its fill darkened just enough to read. Icons are a dark slate in every brand, so the brand colour is left for buttons, links and what is selected. Icon tiles look the same on every page, and stay visible in a row you hover or pick. Fields no longer disappear on a white card. Side panels, such as Edit an environment, have the page's background with their cards spaced apart.`,to:[`appearance`]},{kind:`improved`,title:`A chat's side panel shows what it used`,detail:`The workspace panel beside a chat has a This chat section: the tokens used, each agent with how full its context is (amber when it is close to being compacted), and the skills, knowledge, document sections and systems the chat used. A skill shows the logo of its framework or language. The project's tokens are a section of their own. Sections fold open one at a time, with one icon style throughout.`,to:[`chats`]},{kind:`improved`,title:`Easier-to-read chat replies and activity log`,detail:`Replies have more room between paragraphs and list items, and code in them uses the same code block as every other page. The test result card is quieter, with its run command on one line beside Copy. The activity log shows the date and time of each line, on screen and when you copy it.`,to:[`chats`]},{kind:`fixed`,title:`Home's runs this week match the figure`,detail:`The Runs this week card drew 28 days under a one-week number and stretched the cards beside it. It now shows this week's 7 days as short columns, labelled by weekday, with today in the accent.`,to:[`runs`]},{kind:`improved`,title:`Every chart in the new look`,detail:`The charts that were left now match. Trends over time are glowing areas with failures, budgets and slow calls marked. Budgets are meters with warning and limit marks. Splits are thick bars with the shares inside, and a run's recent history is a row of dots with the latest ringed. Impact and Tosca scores are meters marked at their thresholds. This covers Home, Tokenomics, Cost, Observability, Reports, Test management and Regression, and every page of a run's report.`,to:[`appearance`,`runs`]},{kind:`improved`,title:`Breakdowns as rows of figures`,detail:`Where the tokens and money went (by agent, model, kind of run or purpose) is now a list of rows: each with its label, its main figure large, what else it carries beside it, and its share of the whole. You'll see this on Tokenomics, Cost and Observability, and in the report's Spend, Where it went, Every call, Trends and Overview.`,to:[`appearance`,`runs`]},{kind:`fixed`,title:`Small pieces no longer vanish on cards`,detail:`Icon tiles, chips, keys, checkboxes, code labels and zoom buttons were sometimes the same white as the card under them. They now always stand one shade off whatever they sit on, in light and dark mode. Settings no longer draws a card around content that already has its own.`,to:[`appearance`]}]},{version:`3.3.1`,date:`2026-11-26`,summary:`New charts in the report and the web app: each chart now suits its data, in one colour that follows the page and dark mode.`,changes:[{kind:`improved`,title:`Report charts redrawn`,detail:`A run's report has charts that suit each set of figures. Trends shows results per run as bars, run time with its figures, pass rate by feature area as a grid, requirements stacked to their total, and this run's failures by kind as a donut. Tokens per run is a glowing line with a dot for each run, zoomed in so small changes show. The run timeline is a glowing area, spend is a meter against the budget, defects by area are split bars with critical and high on the left, and reliability is a list of figures, each with its change.`,to:[`runs`]},{kind:`improved`,title:`Charts in the web app`,detail:`Home shows your runs over the last 28 days as a glowing area with today marked. Quality shows violations as dot bars with the latest run in full colour, and Test management's trend is a list of figures with their change. Charts follow the theme, so they read the same in light and dark mode.`,to:[`appearance`,`quality`,`test-management`]}]},{version:`3.3.0`,date:`2026-11-26`,summary:`The product map follows calls through an API gateway to the service behind it, and chat replies look calmer, with one code block style everywhere.`,changes:[{kind:`improved`,title:`The product map follows calls through an API gateway`,detail:`A front end that calls a gateway used to show every call as a gap. Now a call through a gateway with a route table reaches the service its best-matching route sends it to, with the route as evidence. The map also catches more: every topic of a subscription list, not only the first; a request's method when it goes through helper functions; and a client's default address when it is set at run time. A database lock such as FOR UPDATE SKIP LOCKED no longer shows up as a table. Code read before is read again the next time you build the map.`,to:[`product`]},{kind:`improved`,title:`Calmer chat replies, one code block style`,detail:`Your messages and a step's details sit on white cards, finished steps show a small tick in the normal icon colour, and only errors and warnings take a colour. A step no longer repeats its label ("Reading" next to "Reading a.ts"). Code in replies, commands to run and the Tosca pages all use one code block, with the language in its header, copy and wrap.`,to:[`chats`]},{kind:`improved`,title:`Search boxes match the cards`,detail:`Every search box, including the top bar's and the command palette's, is a white field with a soft shadow like the cards around it, and the Ctrl K key sits on light grey.`,to:[`appearance`]}]},{version:`3.2.9`,date:`2026-11-26`,summary:`Architecture opens on a zoomable map of the whole product, and the sidebar's categories and areas just fold open, with a pin on every page.`,changes:[{kind:`new`,title:`Architecture: a zoomable map of the whole product`,detail:`Architecture now opens on a Map view: each system is a block that opens into its services as you zoom in, with zoom controls, a minimap and every connection drawn. Pick a part to light its links and see its details below. The flat view is still there as Boxes. You can also move around the map with the keyboard.`,to:[`product`]},{kind:`improved`,title:`The sidebar folds open instead of opening landing pages`,detail:`Categories and areas in the sidebar now only fold open, and an area with one page shows that page directly. Every page has a pin star, so you can pin it from the sidebar. A few names that repeated their folder are shorter, and old links go to the right place.`,to:[`appearance`]},{kind:`improved`,title:`A more consistent look`,detail:`Cards, numbered steps and icons look the same on every page, and the Code map, Impact's code view and the schema diagram have a visible background. Secondary buttons, such as Refresh, Stop and Talk's toggle, sit on a soft tint of the icon colour so they stand apart from the main action.`,to:[`appearance`]}]},{version:`3.2.8`,date:`2026-11-25`,summary:`Tabs work the same on every page and are kept in links and between sessions. A job's page has tabs of its own, and Test management fits its views into four parts.`,changes:[{kind:`improved`,title:`Tabs work the same on every page`,detail:`Each screen has one row of tabs, and tabs inside a part are underlined. A tab you open is in the page's address, so a reload, Back or a shared link opens it, and recording and workflow reviews have addresses of their own. A page reopens on the tab you last used, even after forgeqe web starts again.`,to:[`appearance`]},{kind:`improved`,title:`A job's page has tabs`,detail:`A job's page now has Overview (last run, passes, how many runs in a row have failed, next run, the latest output and the command), Runs, Monitor for a monitor, and Settings, where you turn the job on or off or remove it. Ask and Run sit at the top.`,to:[`runs`]},{kind:`improved`,title:`Test management in four parts`,detail:`Its eight tabs no longer run off the page: they are four parts (Dashboard, Cases, Coverage, Suites and tags) with their views under each. With no plan connected, the page says how to connect one. Old links still work.`,to:[`test-management`]},{kind:`improved`,title:`Buttons show when they are at work`,detail:`A button doing something (Saving…, Testing…) shows a small spinner in place of its icon and cannot be pressed again until it is done.`,to:[`appearance`]}]},{version:`3.2.7`,date:`2026-11-25`,summary:`A new calm look across the app and its docs. More recorded values can change on each run, and API tests fill {{$unique}} and the other built-ins in every call they send.`,changes:[{kind:`improved`,title:`A new, calmer look across the app`,detail:`The whole app has a new design: a soft porcelain background, white cards with a light shadow instead of borders, rounded pill buttons and fields, a calm blue for the main actions, and quieter status colours. Menus and the command palette are frosted glass, and fields are white with a fine edge so they stand out on cards. The breadcrumb in the top bar is now the way back on every page. The help pages and docs site have the same look.`,to:[`appearance`]},{kind:`new`,title:`More recorded values can change on each run`,detail:`More values that were stuck at what you recorded can now be made data in the review. On the web: a typed date ("28 Nov 2026" or 28/11/2026) can be a date from today, a drop-down can pick a date from today or its first free option, and a double-click on a slot or day works like a click. On desktop and mobile, a typed value can be new on each run or a date from today. Booking slots drawn as plain page elements, or whose names change ("10:30 AM, selected"), can be made data too, and "any free one" skips slots marked booked or unavailable.`,to:[`record`,`desktop`,`mobile`]},{kind:`fixed`,title:`API tests fill {{$unique}} and the other built-ins everywhere`,detail:`{{$unique}}, {{$uuid}}, {{$now}} and {{$randomInt}} (in any case) were filled by the Workbench's Send but sent as written by a run of the set, sign-in, load tests and healing, so the API created users named user_{{$unique}}. Every call now gets fresh values, the same wherever they appear in one request. A call whose placeholder cannot be filled is not sent and is named.`,to:[`api-tests`]},{kind:`fixed`,title:`API scenarios keep the request body you gave`,detail:`A planned scenario replaced the body you wrote (for example {{$unique}} names) with the captured example's values. Your fields are now kept, also when a plan is reused, and a note says which ones were set.`,to:[`api-tests`]},{kind:`improved`,title:`API tests: each flow step shows what it sent and got back`,detail:`The Flows view shows each step's request and answer, with credentials masked, for every flow's last run (running one flow no longer hides the others' results). A call that expects an error status keeps its answer too, and a failed step opens its request and answer by itself. The page's title, tabs and actions stay at the top as you scroll, and POST has its own colour in light and dark.`,to:[`api-tests`]},{kind:`improved`,title:`Test cases and Test debt are tabs of Test management`,detail:`They were pages of their own; the sidebar now lists Test management once, and old links open the right tab. On the Agents page, the Advisers, Builders and Operators pages are gone; use the kind filter instead.`,to:[`test-management`,`agents`]},{kind:`fixed`,title:`The sign-in browser stays open until you have signed in`,detail:`Pressing Continue before finishing sign-in (with an account picker still open) closed the window with nothing saved, and the agent opened it again and again. The window now stays open and asks again; Cancel still closes it. A sign-in page outside the login's sites is refused before a browser opens.`,to:[`settings`]},{kind:`new`,title:`The API agent can change an existing call`,detail:`Ask the API page's agent to change a call that is already there (its query, headers, body, name, folder, sign-in, method, path or expected answer) and it edits it in place, with the same checks as the Workbench, instead of refusing it as a duplicate. Credentials still go through a sign-in, never a header.`,to:[`api-tests`]},{kind:`fixed`,title:`A mobile recording replays on the device it was recorded on`,detail:`A replay ignored the device picked on the Record page and used the settings' device instead, so on a TestMu AI plan that covers real devices only the first step was refused although the recording had worked. The recording now keeps its device and the replay uses it unless you name another. When TestMu's plan refuses a session, ForgeQE says it is the plan, not the app, and whether to switch between real and virtual devices or change the plan.`,to:[`mobile`]},{kind:`improved`,title:`Record and replay Dynamics 365 reliably`,detail:`Recording on Dynamics 365 kept ids D365 makes up from position, so a replay with other results or in another session found nothing. The recorder now uses D365's own control attributes (app tiles by their title, controls by their data id), and a replay waits for D365 to be ready after each step, since its controls appear before they work.`,to:[`record`]},{kind:`new`,title:`Get past Chrome's device-certificate box`,detail:`Signing in from a computer joined to Entra ID makes Chrome ask for the device certificate in a box no recording can see, so a replay hung on it. The recording now keeps it as a step, and forgeqe doctor certificate writes the Chrome policy that picks the certificate by itself (for Chrome, Chromium and Edge on macOS, Linux and Windows) for an administrator to install. ForgeQE never installs it.`,to:[`record`,`setup`]},{kind:`improved`,title:`Tables sort by any column and let you hide columns`,detail:`Every data table now sorts when you click a column's heading and has a Columns menu, and a table that fills its page shows the rows that fit, a page at a time, instead of scrolling inside. All chats, Reports, Runs and Jobs are such tables: pick rows to act on several at once, and Jobs shows each job's status and sorts the next run soonest first.`,to:[`appearance`,`chats`]},{kind:`improved`,title:`Chat replies are easier to read`,detail:`Code in a reply no longer sits in a box that matched the page, and a file path with line numbers (src/a.ts:7-11) opens the file. The sidebar's areas no longer open pages that only listed what the sidebar already shows; old links go to their category's page.`,to:[`chats`,`appearance`]},{kind:`improved`,title:`Product understanding has one entry per part in the sidebar`,detail:`Product, Product agent, Architecture, Code map, Runtime, Open questions and Business view are each an entry under Product understanding, named as the page is, instead of tabs hidden a level down. Knowledge search is now Search, the first area of Knowledge. Old links still work.`,to:[`product`]}]},{version:`3.2.6`,date:`2026-11-25`,summary:`Agents is one page to browse like a marketplace, with search on every page. A recorded click on a slot or day can be test data or a date from today, and Anthropic, Gemini and Bedrock join the providers.`,changes:[{kind:`improved`,title:`Agents is one page you can browse like a marketplace`,detail:`The two agent pages are now one. Pinned and most-run agents come first, with their runs and pass rate. You can filter by kind, what an agent works with and status, sort, switch between grid and list, and run or set up an agent from its card. Run counts come from your own runs. Each agent's page has the new look too, with Waiting on you, Working now and Recent chats as cards.`,to:[`agents`]},{kind:`improved`,title:`One search bar at the top of every page`,detail:`Search moved out of the sidebar into a bar across the top of every page, beside where you are (for example Agents / WebPilot). Ctrl K still opens it. On a phone it is an icon.`,to:[`appearance`]},{kind:`improved`,title:`Every page shares the new look`,detail:`Every page now has the same background as Home and Settings, with white cards on it and no white bands across the page. The Data page has the new look as well, with its tabs on their own row and each screen on a card.`,to:[`appearance`,`data`]},{kind:`new`,title:`Record: a click can be test data, a date from today, or any free one`,detail:`A click on an appointment slot or a calendar day failed on a re-run once the slot was booked or the day had passed. The review's Test data tab now lists such clicks, and each can be kept as test data (a data file's rows give another one), a date counted from today in the format the page showed, or any free one (the first enabled one where you clicked). A date that is not on screen moves the calendar to its month. You can name each value, and later checks follow what the run clicked.`,to:[`record`]},{kind:`new`,title:`Desktop and mobile workflows: a click can be data too`,detail:`The same three choices are in the desktop and mobile review: test data, a date from today, or any free control of its kind in the same place. Going back to the click as recorded restores it. Maestro runs whole flows, so it cannot pick any free one; use Appium for that.`,to:[`desktop`,`mobile`]},{kind:`new`,title:`Anthropic, Google Gemini and AWS Bedrock as model providers`,detail:`Settings › Models adds each as a provider with its logo, preset and key variable. ForgeQE calls each at the vendor's own address, never one a profile names, so a key is only ever sent to that vendor. They work for chat and for the browser, desktop and mobile agents.`,to:[`models`,`settings`]},{kind:`new`,title:`Every model your Copilot seat has, in the model list`,detail:`Signing in to GitHub Copilot now adds a profile for each model your seat can use, so Settings › Models and the model pickers list them all. Sync models on the Copilot card adds any new ones later. Profiles you already have are never changed, and a model that cannot read screenshots is paired with one that can for browser, desktop and mobile runs.`,to:[`models`,`settings`]},{kind:`improved`,title:`GitHub Copilot answers sooner`,detail:`Copilot's answer now comes back without waiting for its session to close, and the engine check before a run no longer holds up the app (a passed check is remembered for a day). Copilot is reached over WebSockets, and when they do not work on your network ForgeQE switches to HTTPS by itself and keeps it for a week. FORGEQE_COPILOT_WEBSOCKETS set to 1 or 0 fixes one or the other.`,to:[`models`]}]},{version:`3.2.5`,date:`2026-11-25`,summary:`Settings has a new look, and each agent's own settings move to its page. Named sign-ins on the API page now save and remove as they should.`,changes:[{kind:`improved`,title:`Each agent's settings are on its own page`,detail:`Settings keeps what every agent shares. Browser, Mobile, Desktop, Code, Databases, Quality and Monitor settings now open from a settings button at the top right of their agent's page, in a side panel that also shows the model, prompts, skills and guardrails of that page's agents. Search settings still finds them and opens the right panel, and old Settings links go there too.`,to:[`settings`]},{kind:`improved`,title:`Settings has the Home look`,detail:`Settings now sits on the page like Home, with every group of settings on a card of its own (Environments, Sign-ins, Databases, Prompts, Skills, Guardrails and Settings as text included) and the same icon colour throughout. Settings' menu and the app's sidebar mark the page you are on the same way.`,to:[`settings`]},{kind:`fixed`,title:`API tests: adding and removing a named sign-in works`,detail:`Add and Remove in the Sign in panel failed for a named sign-in. They now save and remove it, and the API page's agent asks you before it removes one.`,to:[`api-tests`]},{kind:`fixed`,title:`API tests: the request preview shows the call's own sign-in`,detail:`The preview now shows the sign-in a call picks, as Send uses it, says so when that sign-in is missing, and hides every secret it fills in, however short. It updates when you change sign-ins.`,to:[`api-tests`]},{kind:`fixed`,title:`API tests: healing keeps each call's sign-in`,detail:`Healing replays each call with its own sign-in and keeps it on the healed call. A call whose sign-in cannot log in is noted, never replayed with another login.`,to:[`api-tests`]},{kind:`fixed`,title:`API tests: a password cannot slip into a sign-in as text`,detail:`A sign-in's login body written as text is read as its fields, so a password inside it (also in a list or a nested field, and under names like pw, pin or otp) is refused as a typed value, as it is anywhere else. Use a secret or variable name instead.`,to:[`api-tests`]}]},{version:`3.2.4`,date:`2026-11-24`,summary:`API tests can use different logins for different calls, and browser runs on a GitHub Copilot model keep going when a network blocks requests that carry screenshots.`,changes:[{kind:`fixed`,title:`Copilot browser runs keep going when screenshots cannot be sent`,detail:`On some networks, a browser step's request to GitHub Copilot failed with "error sending request" whenever it carried a screenshot, while text-only requests went through, and ForgeQE then wrongly switched between models as if each had failed. Now such a failure is treated as the network's: no model is marked failing, and ForgeQE sends smaller screenshots, then none (the agent works from the page's text), for an hour before trying full screenshots again. The error says it is the network or proxy for Copilot's address.`,to:[`settings`]},{kind:`new`,title:`API tests: named sign-ins, so calls can use different logins`,detail:`An API can now keep several named sign-ins besides its own (for example admin and customer, both from the same login call with different credentials), and each call picks which one it uses, on its Headers tab. Add and remove them in the Sign in panel, or ask the API page's agent. Credentials in a sign-in's login are only secret or variable names, never typed values. A call naming a sign-in the API lacks is not sent, rather than falling back to another login.`,to:[`api-tests`]}]},{version:`3.2.3`,date:`2026-11-24`,summary:`Record keeps typing in masked fields and a Tab that changes the page, the API page's agent can set an API's sign-in from its login call, and a chat at work shows how long it has run.`,changes:[{kind:`fixed`,title:`Record keeps typing in masked fields`,detail:`Phone, card and date fields that write the value themselves as you type lost the typing: only the click on the field was recorded. The typing is now kept, read when you move on as in any field, and a password such a field writes is still kept only as its saved login's variable.`,to:[`record`]},{kind:`fixed`,title:`Record keeps a Tab that changes the page`,detail:`A Tab that accepted a suggestion or left a field that is checked as you leave it (a message shows, the field is marked invalid) was not recorded, so a check of that message failed on replay. Such a Tab is now a step, and its replay waits for suggestions as the arrow keys do. A Tab that changes nothing is still not a step.`,to:[`record`]},{kind:`new`,title:`The API agent sets an API's sign-in from its login call`,detail:`Ask the API page's agent to send a call with the token your login call answers, and it sets the API's sign-in to that login call and the token's field, after asking you. It no longer adds a token as a header by hand, and it can take the sign-in off again.`,to:[`api-tests`]},{kind:`improved`,title:`A chat at work shows how long it has run`,detail:`While ForgeQE works on a reply, the chat shows the total time it has been working and the time now, ticking each second, so a long run reads as a total rather than only the time since its last step. Point at it to see when it started.`,to:[`chats`]}]},{version:`3.2.2`,date:`2026-11-24`,summary:`GitHub Copilot models work again after an update to Copilot's software, Copilot sign-in no longer asks you to pick one model, and Help always opens the current docs.`,changes:[{kind:`fixed`,title:`GitHub Copilot models work again`,detail:`Every request to a GitHub Copilot model failed with "argument of type 'CapiSessionOptions' is not iterable" after Copilot's own software changed. Requests reach Copilot again, and a new check against Copilot's real software catches this kind of change before a release.`,to:[`settings`]},{kind:`improved`,title:`Copilot sign-in no longer asks you to pick a model`,detail:`After you sign in to GitHub, ForgeQE lets Copilot pick the model for each request (auto) when your seat allows it, else the best model your seat has, so you are never held to a model that stops working on your seat. To keep one model, choose it under Settings › Models. Settings › Models now describes auto as Copilot picking the model per request.`,to:[`settings`]},{kind:`fixed`,title:`Help always opens the current docs`,detail:`When forgeqe web was started from a copy of ForgeQE's source code, Help could open the old single-page guide instead of the current docs pages. It now builds the docs pages when they are missing and opens them.`,to:[`about`]}]},{version:`3.2.1`,date:`2026-11-24`,summary:`A Mobile apps page with the device shown live, accessibility checks on phones, tablets and native app screens, Workbench sign-in from a login call, and Record that asks where to record a mobile app.`,changes:[{kind:`new`,title:`Mobile apps: an agent page with the device shown live`,detail:`Mobile apps (Automation) works like Desktop apps for Android and iOS: an Agent tab, Workflows that replay on Appium or Maestro, your team's Maestro flows from .maestro/, Runs with heals to accept, and Devices and apps (Appium and Maestro readiness, devices, apps, uploading a build to TestMu AI). While a run works you watch the device's screen and step live, and a chat that runs a mobile tool shows the device beside it. Typed values show only as a secret's name or a length.`,to:[`mobile`]},{kind:`new`,title:`Accessibility personas on phones and tablets`,detail:`Pick a device for an accessibility session (the on picker, or forgeqe a11y --device): every persona then runs with that phone's or tablet's size, pixel ratio, touch and user agent. Screen-reader personas on touch swipe through the reading order and double-tap, and a larger-text setting scales the page. New built-in personas: mobile screen reader (iPhone 15), large text (Pixel 8, 200%) and touch tremor (Galaxy S23).`,to:[`accessibility`]},{kind:`new`,title:`Accessibility checks of native app screens`,detail:`Each new screen a mobile replay or explore reaches on Appium is checked for controls and images without names, fields without labels, small touch targets and duplicate names, and on iOS 17+ with Apple's own audit. Results are written like a browser run's. Turn it off with mobile.accessibility in Settings › Mobile.`,to:[`mobile`,`accessibility`]},{kind:`new`,title:`Sign in to an API with the token a login call answers`,detail:`An API's Sign in can be From a call's answer: name the login call, the field of its answer holding the token (such as data.accessToken) and the header it goes in. Workbench Send, contract runs, flows and heals send the login call first. The token is kept in memory for that send or run only, never saved, and masked in what comes back; a failed sign-in says why and stops the call.`,to:[`api-tests`]},{kind:`new`,title:`Record asks where to record a mobile app`,detail:`Pick where to record (an emulator or simulator here, a phone plugged in, TestMu AI or BrowserStack), then the app, then a device from that place's own list in a side panel with search. An app build the place cannot install is refused before anything starts, saying what to do.`,to:[`record`]},{kind:`improved`,title:`Turn query parameters on and off one at a time`,detail:`Each query parameter under Params has a checkbox: only ticked ones are sent and shown in the address, and unticked ones stay with the call, so you can try combinations without copying the call. A query typed or pasted into the path becomes rows under Params.`,to:[`api-tests`]},{kind:`improved`,title:`Rename a Workbench folder`,detail:`Folder rows have Rename, and asking the agent to rename a folder moves its calls instead of making a second folder. Folders spelled with other case or spacing count as the same folder.`,to:[`api-tests`]},{kind:`improved`,title:`A clearer New recording form`,detail:`Each field has its name above it in a narrower form, Record sits at its end with what it does beside it, and How it works is a side panel. A recording that did not start says what to do for known troubles (a build the cloud cannot install, a refused sign-in, an Appium that did not answer), with the recorder's own words folded underneath.`,to:[`record`]},{kind:`improved`,title:`Test management lists filter with one dropdown`,detail:`Test cases, Automated, Gaps and Tags pick their view from one dropdown with its counts, beside the list's other dropdowns, instead of a row of chips that wrapped or scrolled on a narrow page. The chosen view's note (such as where Gaps reads stories from) is written beside it, and a view that needs a look, such as Failing or Out of step, shows in red.`,to:[`test-management`]},{kind:`improved`,title:`Test management's header looks the same with the agent open`,detail:`Sync, Schedule and Agent are icon buttons at the header's right, named in their tips, so the row no longer changes when the agent panel opens. On a narrower page the tabs move under the title.`,to:[`test-management`]},{kind:`fixed`,title:`Accessibility runs on the cloud browser you ask for`,detail:`forgeqe a11y --browser-provider and a session's chosen provider were not passed on: every persona ran in this computer's browser while the plan said TestMu AI or BrowserStack. Persona runs now use it, and the plan and reports say where the browsers ran. A run that ended before the persona gave its verdict is reported as not tested, not as a persona who could not reach the goal.`,to:[`accessibility`]},{kind:`fixed`,title:`Copilot signs in on networks that block GitHub's downloads`,detail:`When the pinned Copilot version cannot be downloaded (a company network that resets GitHub's release downloads), ForgeQE uses the newest version already on this computer and says which one runs. A dropped download is tried again, and a failure names the hosts to allow.`},{kind:`fixed`,title:`Azure DevOps bugs keep their formatting`,detail:`A bug the agent writes in Markdown (Steps to reproduce, Expected result and so on) is now saved as formatted text in Description and Repro Steps on the first create, instead of one run-on paragraph.`},{kind:`fixed`,title:`Every page has its way back`,detail:`Flaky tests, API tests and the Skills, Prompts and Guardrails pages now show the link back above their title, as Run diff and the other pages do.`,to:[`api-tests`]}]},{version:`3.2.0`,date:`2026-11-24`,summary:`IBM Equal Access as an accessibility rule engine, picked with the standard for each session; a conversion's errors in one line and an Errors tab; conversions that no longer undo each other; and one look for tabs, sections and the sidebar.`,changes:[{kind:`new`,title:`Check accessibility with IBM Equal Access`,detail:`Besides axe-core, accessibility runs can use IBM's Equal Access rules: set Rule engine in Settings, or quality.accessibility.engine: ibm. The standard you pick sets its rules (WCAG 2.0, 2.1 or 2.2 at A or AA, Section 508, EN 301 549, or best practice). IBM has no AAA rules, so AAA is checked at AA and the run says so. Reports name the engine that checked the pages.`,to:[`accessibility`,`settings`]},{kind:`new`,title:`Choose the rule engine and standard for each accessibility session`,detail:`The Accessibility agent's tab has Checked with pickers under the persona chips, remembered on this computer; each session card and its results say what it was checked with. In a terminal: forgeqe a11y --engine, --standard and --best-practice.`,to:[`accessibility`]},{kind:`improved`,title:`A conversion's errors in one line, all of them on an Errors tab`,detail:`A Tosca conversion's Overview shows the latest error in one line, with See all errors. The new Errors tab lists each failed test, latest first: what went wrong, the error as the test printed it, the agent's note, and Fix with the agent, Steps beside the code and Full output.`,to:[`migration`]},{kind:`fixed`,title:`Two conversions in one repository no longer undo each other`,detail:`A conversion puts back anything changed outside its target folder, so two running at once in the same repository reverted and even deleted each other's new files. Now only one Tosca conversion or migration works in a repository at a time: starting another says which one is running.`},{kind:`fixed`,title:`Fix asked twice no longer stops the first fix`,detail:`Pressing Fix with the agent on a second test while a fix was starting stopped the first one halfway, with no reason recorded. The second is now refused until the first ends, for conversions and migrations alike.`,to:[`migration`]},{kind:`fixed`,title:`Accessibility personas run cleaner`,detail:`A persona's zoomed, filtered or forced-colour screenshots no longer become visual regression baselines; a persona stops when it is done instead of recording the same barrier until its step limit; a run whose model never answered is reported as not tested; and a start page holding a user name or password is refused rather than written into every report.`,to:[`accessibility`]},{kind:`improved`,title:`One look for tabs and section headings`,detail:`Every page's tabs carry an icon at one size, and a tab's status is a tick or a cross in its count. Each part of a page has the same heading, with its accent icon, count and actions, and a hairline before it, so parts no longer run together. The highlight slides to the tab or choice you pick.`},{kind:`improved`,title:`A steadier sidebar`,detail:`Pinned is always at the top (with a hint while empty) and the Recently used groups are gone. The page you are on is highlighted the same way wherever it appears, and stays readable on a dark or coloured sidebar.`},{kind:`fixed`,title:`An agent's setup notices no longer cover its question on a phone`,detail:`On a narrow screen the Setup and Ready notices made the message box taller than the screen, so it slid over the agent's question. They now sit just above the message box.`}]},{version:`3.1.9`,date:`2026-11-24`,summary:`Blocks for desktop and mobile apps, an Observability dashboard and opt-in OpenTelemetry export, a redesigned Migration wizard with Tosca inside it, a page for each automated test, and Copilot that steps off a failing model by itself.`,changes:[{kind:`new`,title:`See ForgeQE's own work on the Observability page`,detail:`AI Assurance › Governance › Observability shows ForgeQE's sessions on this computer over the last 7, 30 or 90 days: sessions a day and those with an error, browser runs by how they ended, turn times, tool calls and errors, model calls with their speed and cost, and the latest problems. It reads only ForgeQE's own counts, never what the agents read or wrote, and the agent can answer from it too.`,to:[`observability`]},{kind:`new`,title:`Send ForgeQE's spans and metrics to your OpenTelemetry collector`,detail:`Settings › Observability (or forgeqe telemetry) sends sessions, runs, model calls, tool calls, cost and problems to a collector you name. It is off until you turn it on and type the collector's host, and it never sends a prompt, reply, page text, address or secret. Choose JSON or protobuf, add problems as log records, and preview a sample before anything is sent.`,to:[`settings`]},{kind:`improved`,title:`A sidebar you can see the whole app in`,detail:`The sidebar is now one branching tree: categories and areas fold open in place, the page you are on stands out, and each category still lists the pages you pinned. All chats is pinned by default.`,to:[`appearance`]},{kind:`improved`,title:`Agent pages show what waits on you`,detail:`Each agent's page opens on one board: what needs your answer, what is working now and its recent chats. The chat list sums up each chat's last turn, with its state, times and last steps.`,to:[`agents`,`chats`]},{kind:`improved`,title:`Migration and conversion reports, redesigned`,detail:`New migration walks three steps on a timeline that keeps each answer, with logos for every framework and tests folders picked from a tree, several at once. A Tosca conversion's report has four tabs: Summary, Test cases (failed first), Coverage and Traceability. Its comparison puts the Tosca steps beside the converted test, and the downloads sit in one Export menu.`,to:[`migration`,`tosca`]},{kind:`fixed`,title:`API tests that leave your data as they found it`,detail:`Contract runs now update and delete a record they create themselves, then remove it, instead of changing the example's shared one. An operation's own Basic sign-in or API key can be used alongside a default token. Open operations are no longer reported as broken authentication, and the mock starts with records its contracts accept (--seed). Error messages name the setting or address to fix.`,to:[`api-tests`]},{kind:`improved`,title:`Errors and warnings stand out in logs`,detail:`Error lines show in red and warnings in amber in the activity log, command output, session logs and every job's live output.`,to:[`chats`,`settings`]},{kind:`new`,title:`Blocks for desktop and mobile apps`,detail:`Save steps from a desktop or mobile workflow's review as a block, then put it into another workflow of the same app, or play it while recording by hand. Its test data and secrets become inputs you fill in each time. A recording can start from several blocks played in a row, and a workflow holding an older version of a block can be updated in one click with its values kept. The same is available from a terminal with forgeqe blocks list, save, insert and delete.`,to:[`record`]},{kind:`improved`,title:`Safer, fuller blocks and checks in web recordings`,detail:`A block now has inputs, sections, a description and versions, can be put in after any step, and several can open a recording. A value you make a secret leaves every kept version of the workflow, and Go back never restores it. Count and attribute checks keep their comparison, and patterns that could hang a run are refused.`,to:[`record`]},{kind:`improved`,title:`Earlier versions of a desktop or mobile workflow`,detail:`A workflow's earlier versions are listed in its review, previewed and can be gone back to. Steps that already do what a saved block does can be marked as that block.`,to:[`record`]},{kind:`new`,title:`Each automated test has its own page`,detail:`In Test management, a test opens a page with where it lives, how it was found, its last runs, tags, linked cases (link and unlink there) and its code. The page also fits a phone, with one header and one way to filter each list, like the rest of the app.`,to:[`test-management`]},{kind:`fixed`,title:`Test management keeps ids, links and suites straight`,detail:`A renamed or copied test keeps its own id instead of taking a neighbour's. Robot Framework 7 tags, Gherkin Rules, pytest-bdd 8 names and multi-target dotnet lists are read correctly, and run commands select exactly the linked tests. Suites written to a tracker are never duplicated on a retry, and Xray Cloud test sets are read past their first 100.`,to:[`test-management`]},{kind:`improved`,title:`Tosca migrates from the same wizard as everything else`,detail:`New migration no longer has a separate Tosca tab: any source with .tsu files (git, folder, upload, paste or this project) offers its exports and test cases in the Source step. Conversions and their reports now live under Migration, with old Tosca links redirected. The screens were redesigned: Review leads with what needs a decision, and a conversion shows what needs your attention first.`,to:[`migration`]},{kind:`improved`,title:`Copilot steps off a failing model by itself`,detail:`A Copilot model that times out or errors is avoided for an hour and its requests go to a stand-in that costs no more. You'll see "GitHub Copilot switched models" when that happens. Auto is listed first and recommended at sign-in. Requests now go over plain HTTPS, which company proxies break less often; FORGEQE_COPILOT_WEBSOCKETS=1 turns WebSockets back on.`,to:[`settings`,`models`]},{kind:`fixed`,title:`Browser runs show Copilot's real error and stop sooner`,detail:`Two model calls in a row that fail at the model's end now stop a browser run with the reason, instead of six four-minute steps. Copilot's own error is shown instead of a generic timeout.`,to:[`browser`]},{kind:`improved`,title:`Copilot SDK updated, and an outdated one is named`,detail:`The GitHub Copilot SDK moves to 1.0.35 (runtime 1.0.112). If Copilot refuses the version ForgeQE uses, ForgeQE tells you to run forgeqe update instead of treating the model as failing, and forgeqe doctor shows both versions.`,to:[`settings`,`models`]},{kind:`improved`,title:`Easier to use with a keyboard`,detail:`Tabs that change the page's address are links, a table that scrolls can be reached and scrolled with the keyboard, and a disabled button that says why can still be focused to read its reason. Every page's way back is now the same link.`,to:[`accessibility`]}]},{version:`3.1.8`,date:`2026-11-23`,summary:`Browser runs group their tabs and glow by mode, Workbench Send and Accept keep only what they should, hardcoded test values get caught, and a model that never answers stops the turn.`,changes:[{kind:`improved`,title:`A run's tabs are grouped under its name`,detail:`When the browser agent runs in a visible Chrome, its tabs sit in a tab group named after the run, so you can tell several runs apart at a glance. It needs Chrome 137 or newer started by ForgeQE's own browser; the small helper it adds asks only to manage tab groups and cannot read any page.`,to:[`browser`]},{kind:`improved`,title:`The page's glow shows the agent's mode`,detail:`The frame around the page the agent is working on is now a solid rim with a stronger glow, in the step bar's colour: cyan while thinking, green while acting, violet when replaying from memory, amber when it's your turn.`,to:[`browser`]},{kind:`fixed`,title:`Workbench Send keeps no issued tokens, and history counts each call once`,detail:`A kept Send now takes access tokens and JWTs the API returned out of the saved body and checks, even in a shortened snippet. Other calls' results carry over from the last run that had them, so a heal or a run of only some calls no longer blanks them, and history counts each call's own runs once.`,to:[`api-tests`]},{kind:`fixed`,title:`Accept drafts the expected answer; Save keeps it`,detail:`Accept now only fills What it must answer. Nothing is kept until you press Save, which works out the schema and fields again.`,to:[`api-tests`]},{kind:`fixed`,title:`Hardcoded test-data values are caught after a test passes`,detail:`Once a written test passes, ForgeQE checks the files it changed for this run's test-data values typed straight into fill, type or select calls, and sends each back for the tidy-up round to move into the project's test data.`,to:[`record`,`chats`]},{kind:`fixed`,title:`A turn stops when the model doesn't answer`,detail:`If the model never replies (a timed-out response, or Copilot's "Failed to get response from the AI model"), the turn now ends with a clear reason instead of sitting through more five-minute retries. Rate limits and brief server errors are still retried.`,to:[`chats`,`models`]},{kind:`fixed`,title:`Slow Copilot steps in the browser agent can finish`,detail:`A browser step now waits as long as ForgeQE allows a model call (240 seconds for Copilot), so it is no longer cut off at 180 seconds. BROWSER_USE_STEP_TIMEOUT still overrides it.`,to:[`browser`]}]},{version:`3.1.7`,date:`2026-11-23`,summary:`Tests written from a recording or a browser run put form values in the project's real test data (Examples, parametrize, DataRow), not hardcoded in the script.`,changes:[{kind:`fixed`,title:`Generated tests no longer hardcode recorded form values`,detail:`When Quill writes a test from a recording or a browser run, each typed or chosen value is named as test data and must go into the repository's own mechanism — Scenario Outline Examples, pytest parametrize, MSTest/NUnit/xUnit data rows, or Playwright test.each — then into page objects. Secrets and one-time codes stay on environment variables.`,to:[`record`,`chats`]},{kind:`improved`,title:`Quill follows how the project already drives test data`,detail:`Before writing, ForgeQE notes whether the repository uses Gherkin Examples, parametrize, DataRow, or data files, and steers the new test to put handoff values there instead of a const only in the same file.`,to:[`record`,`chats`]}]},{version:`3.1.6`,date:`2026-11-23`,summary:`API Workbench Send keeps each run in history and updates call status, and Accept fills What it must answer so you can Save the expected response.`,changes:[{kind:`fixed`,title:`Workbench Send keeps history and call status`,detail:`Sending a call from the API Workbench now writes an execution record (timestamp, status, checks) under the API's runs, updates the call icon and the API's aggregate status, and keeps that result after you refresh. Secrets stay masked. Running the full contract suite is unchanged.`,to:[`api-tests`]},{kind:`fixed`,title:`Accept fills What it must answer and enables Save`,detail:`Accept on a successful Workbench response now copies status, content type, shape and fields into What it must answer, opens that tab, and enables Save so you can keep the expected contract. Reloading after Save shows the same expectation.`,to:[`api-tests`]}]},{version:`3.0.2`,date:`2026-11-15`,summary:`Talk tells what's said to it from the room's own talk, can listen to your voice only, and changes settings as you say them. Plus a livelier orb and a smoother "+" menu.`,changes:[{kind:`improved`,title:`Talk knows when you're talking to it`,detail:`After the wake word, Talk acts only on what's said to it: an order or a request. A phone call, a greeting to a colleague or a story told across the room is dropped, nothing shown or kept. A sentence cut off midway waits for the rest instead of being acted on in half. Send when I pause now needs the wake word, and turns it on.`,to:[`voice`]},{kind:`new`,title:`Only my voice`,detail:`Turn on Only my voice in Settings › Voice and Talk acts only on the voice that said the wake word. Another voice in the room goes into the message box instead, for you to look at. Nothing about your voice is saved to a file.`,to:[`voice`,`settings`]},{kind:`improved`,title:`Settings change as you say them`,detail:`The browser window, desktop replays, mobile emulators, the model and the test environment now change at once, like light or dark, with no question first. Settings opens the section, marks the row and says “Changed by voice”, so a misheard change is easy to spot and put back. Production and models outside your profiles are still never picked. Starting work (tests again, a pack, a recording, writing a test) still waits for your yes.`,to:[`voice`,`settings`]},{kind:`fixed`,title:`Talk answers aloud on Home and in a chat`,detail:`Where there's a message box, Talk's own answers, questions and refusals are now spoken, not only written. “The browser settings” opens Settings › Browser, not WebPilot, and names run together (“FlakyTests”) still find their page.`,to:[`voice`]},{kind:`improved`,title:`Talk starts from the message box`,detail:`The Talk buttons in the sidebar are gone: start Talk from the message box, whose button shows whether speech is set up and lights while it listens. New chat has a plain pen icon instead of Atlas's.`,to:[`voice`,`appearance`]},{kind:`improved`,title:`The orb plays while you wait`,detail:`On Home and in the agent builder, the orb above the greeting acts out the kinds of work ForgeQE does in a gentle loop, and shows the waiting orb while a chat or the builder starts. With reduced motion it stays still.`,to:[`appearance`,`agents`]},{kind:`improved`,title:`A smoother "+" menu`,detail:`Moving between the "+" menu's levels (Environment, Tools, Back) now slides the pane and resizes the box smoothly instead of jumping.`,to:[`chats`]}]},{version:`3.0.1`,date:`2026-11-15`,summary:`Talk does several things in one request, changes a few settings, starts work after a yes and answers ForgeQE's questions. Plus emulators without a window, and a coding agent that follows your instructions.`,changes:[{kind:`new`,title:`Several things in one request`,detail:`Ask Talk for more than one thing at once (“switch to dark mode, open the runs page and ask ForgeQE why the last run failed”) and it does them in order. Ask “what's on this page?” or “why did this run fail?” for a sentence or two about what you're looking at, “how many runs failed this week?” for the counts, and “show only the failed runs” to filter Runs.`,to:[`voice`]},{kind:`new`,title:`Start work and change settings by voice, after a yes`,detail:`Talk can run a run's failed tests again, run a regression pack (here or on TestMu), record an app your settings list, or write a test from the open recording, each only after you say yes. It changes light or dark and its own language, voice and wake word at once, and after a yes the browser window, desktop replays headed or headless, mobile emulators shown or hidden, the model in use and the test environment, saved and audited as Settings saves them. Never a production model or environment; other settings stay in Settings.`,to:[`voice`,`settings`]},{kind:`new`,title:`Answer ForgeQE's questions by voice`,detail:`Turn on Answer questions by voice in Settings › Voice and Talk reads ForgeQE's question and its options aloud. Say one, then yes to send it; a yes on its own never picks an option. A question about production, and a pause that waits for you, still need a click. It's off until you turn it on, and only a click turns it on.`,to:[`voice`,`chats`]},{kind:`new`,title:`Emulators without a window`,detail:`A device in Settings › Mobile can name an Android emulator (Emulator to start) for Appium to start for the run, and Emulators without a window starts emulators and iOS simulators with no window. Real devices and cloud devices are never affected.`,to:[`settings`]},{kind:`improved`,title:`Talk is the mascot in the corner`,detail:`On a page with no message box, Talk is the mascot of the agent you're talking to, in the bottom-right corner, listening, thinking or speaking. Where there is a box, the box is the conversation and nothing floats over it.`,to:[`voice`,`appearance`]},{kind:`improved`,title:`Talk speaks without pauses`,detail:`Talk starts speaking sooner and no longer pauses between sentences. It now says one short piece while it prepares the next. App names are heard the way you say them (“key pass” finds KeePass), and Talk no longer asks you twice before starting something.`,to:[`voice`]},{kind:`improved`,title:`The coding agent follows your instructions`,detail:`What you ask for when a test is written (“tag it @regression”, “follow CONTRIBUTING.md”) now reaches the coding agent, and it reads the repository's own contributing rules. A test the reviewer rejected is no longer kept as passed, and ForgeQE's agent leaves the coding agent's test to the coding agent and its reviewer instead of rewriting it.`,to:[`code`]},{kind:`fixed`,title:`API runs, run logs and token counts`,detail:`“Run GET /categories only” now runs just that call. A no to calls that change data is taken as your answer instead of being asked again. Two chats started in the same second no longer share one log, Atlas is listed on every run it worked on, and browser agent tokens and the coding agent's work in forgeqe run --direct, record and code are counted on the Runs and Cost pages.`,to:[`api-tests`,`chats`]}]},{version:`3.0.0`,date:`2026-11-15`,summary:`Robot Framework as a migration target, your own migration targets without waiting for a release, and Talk gets a wake word, Hindi and a tidier chat box.`,changes:[{kind:`new`,title:`Migrate to Robot Framework`,detail:`Robot Framework with the Browser library is now a migration target, and a framework the coding agent writes: a case whose Framework line says Robot Framework gets a .robot suite with shared keywords in resources/, and its runs keep videos, screenshots and Robot's own log as evidence. ForgeQE also installs what a Python test project needs, with uv, Poetry, Pipenv or pip, from the project's own requirements file.`,to:[`migration`]},{kind:`new`,title:`Add your own migration targets`,detail:`A framework ForgeQE was never taught can be a target: describe it in .forgeqe/migrate-targets/<id>.yaml (its language, the command that runs one test, what counts as evidence) and approve it at a terminal with forgeqe migrate target approve. Migrations and Tosca conversions can both use it; forgeqe migrate targets and forgeqe tosca targets list them with their approval state.`,to:[`migration`]},{kind:`improved`,title:`A migrated test must prove it checks something`,detail:`Before a migrated test is kept, ForgeQE runs a copy of it with the values its source expected made wrong. That run has to fail: a test that passes either way is not migrated, whatever its framework. The migration report shows this as Checks proved.`,to:[`migration`]},{kind:`new`,title:`Talk: a wake word, and Hindi`,detail:`Switch on the wake word and Talk acts only on what starts with “Hey ForgeQE” (or your app's name), then listens for follow-ups until 20 seconds of quiet. Talk also listens and answers in Hindi. It keeps hearing you while ForgeQE works, so “stop” stops it, and once the work is done it says a short summary instead of reading the whole reply back.`,to:[`chats`]},{kind:`improved`,title:`A tidier chat box, and Settings › Voice`,detail:`The box's toolbar is now the “+”, Refine, Talk, the model and Send; attach, environment and tools are rows of the “+” menu. Talk's language, voice, “Send when I pause” and the one-time speech setup moved to Settings › Voice, and Talk stays greyed out until speech is set up.`,to:[`settings`,`voice`]},{kind:`improved`,title:`Agent cards open where the agent works`,detail:`The Tosca and Migration cards on the Agents page, in the command palette and in Browse open their own pages, and each page has an “Ask the … agent” link back to its chat. Bridge goes by one name everywhere, in the terminal too.`},{kind:`fixed`,title:`Talk from an npm install, and on ARM64 Windows`,detail:`Talk's voice agent stopped as it started after an npm install, and the data engine could not load; both now ship in the package. Speech setup on ARM64 Windows failed for want of a native wheel; it now uses an x64 Python there.`}]},{version:`2.10.5`,date:`2026-11-14`,summary:`Record a phone app by hand, with Appium set up for you; talk to ForgeQE out loud; agents come alive as mascots; and API tests learn from your runs and recordings.`,changes:[{kind:`new`,title:`Record a mobile app by hand`,detail:`Record › Mobile app shows your phone's or emulator's screen on the page, here or on TestMu AI or BrowserStack. Tap, type, swipe and check on it: each action is done on the device and saved as a step that replays with no model. Passwords are typed from your saved secrets by name, a dropdown choice is one step, and the recording opens in a review where you add checks by clicking the app's picture and replay it.`,to:[`record`]},{kind:`new`,title:`Appium is set up for you`,detail:`For an emulator or phone on this computer, forgeqe mobile setup (or Settings › Set up › Install what's missing) installs Appium and its drivers, and every run starts Appium by itself when it is needed and stops it after. ForgeQE finds the Android SDK and Java on its own. Devices on TestMu AI or BrowserStack need none of this.`,to:[`settings`,`setup`]},{kind:`new`,title:`Talk to ForgeQE`,detail:`Talk (under Search, and in every chat box) is a voice assistant of ForgeQE's own. Say “open the model settings”, “where are my failed runs? open it” or “search for TestMu”: it moves around the app at once, with no chat, and asks when it is not sure. Ask for real work, such as “get me the ACs for 256 from ADO”, and ForgeQE does it and reads the answer aloud as it arrives; say “stop” to stop it. In a chat, what you say goes into the box to change or Refine first. Speech runs on this computer; Settings › Models picks Talk's model.`,to:[`chats`]},{kind:`new`,title:`Agents as living mascots`,detail:`Agents in the chat, on Home and on the Agents pages are drawn as small animated mascots, a robot or a character in its job's outfit, each in its own colour. Click one and it reacts; it rests when idle and sleeps when unused. Settings › Appearance switches between robots, characters and the old icons.`,to:[`settings`,`appearance`]},{kind:`new`,title:`A theme from one colour`,detail:`Settings › Appearance › From one colour turns a single colour into a family of matching shades and, if you want, sets the sidebar, buttons and page from it, keeping text readable.`,to:[`settings`,`appearance`]},{kind:`new`,title:`API tests learn from your runs and recordings`,detail:`ForgeQE compares several runs of the same flow to tell which parts of a call you choose (an id, a search word) and makes them inputs. A recording made by hand now keeps the app's API calls in full, with credentials removed, so API tests can be made from it. A contract the app outgrew can be healed, and nothing changes until you agree.`,to:[`api-tests`]},{kind:`improved`,title:`Personas and files in any message`,detail:`@files and /persona commands are shaded in every chat box, and several personas can be named anywhere in a message (check @steps.json as /sam and /priya). Refine keeps them. Replies now type out smoothly as they arrive.`,to:[`chats`]},{kind:`improved`,title:`Long replies are easier to read`,detail:`A long answer now reads as sections: clear heading sizes, a line between sections, and lines that stop at a comfortable width. Code and tables still use the full width.`,to:[`chats`]},{kind:`improved`,title:`Sources tucked away`,detail:`The line an answer ends with naming its sources (work items, run folders, reports) now folds under Sources at the end of the reply, one click away, and Talk never reads it or file paths aloud.`,to:[`chats`]},{kind:`improved`,title:`A calmer, more consistent look`,detail:`The web app's spacing, text sizes and shadows now follow one scale, so pages feel roomier and headings stand out by size alone. Body and chat text are a little larger.`},{kind:`improved`,title:`Chats start faster`,detail:`Azure DevOps, GitHub and your other connected systems no longer all start when a chat opens: each starts only when the chat first needs it, so nothing signs in that is not used.`},{kind:`improved`,title:`Searches use the site's own filters`,detail:`When you ask for results under a price or the cheapest few, the browser agent now uses the site's filter or sort instead of reading every page, and a request to generate a script hands the test to the coding agent and its reviewer.`},{kind:`fixed`,title:`Your team's own work item states`,detail:`Release readiness, duplicate bug checks and test case reuse now follow the states your Azure DevOps or Jira project really uses (In Test, Verified, Shipped…), so finished work no longer counts as open and a bug is not filed twice.`},{kind:`fixed`,title:`GitHub Copilot sessions`,detail:`An agent's reply is no longer cut short in the chat, an agent can no longer loop asking for tools it already has, and a test job whose browser cannot start stops with how to fix it instead of spending tokens.`}]},{version:`2.10.4`,date:`2026-11-13`,summary:`Your pinned pages stay pinned after you restart ForgeQE, dropdowns are readable in dark mode, and the recording window fits your screen.`,changes:[{kind:`fixed`,title:`Pins stay after a restart`,detail:`Pinned pages, recent pages and starred agents were cleared each time you started forgeqe web again. ForgeQE now keeps them for you, so they are there in every new session. Pins you already have are kept from your next session on.`},{kind:`fixed`,title:`Dropdowns in dark mode`,detail:`In dark mode, the open list of a dropdown, such as the new recording's Start on, showed most options as light text on white on Windows. The list now uses the dark theme's colours.`,to:[`appearance`]},{kind:`fixed`,title:`The recording window fits your screen`,detail:`On a Windows display set to a larger scale (125% or more), the recording window was bigger than the screen, so its bottom and scroll bar were out of sight. It now opens maximised.`,to:[`record`]}]},{version:`2.10.3`,date:`2026-11-13`,summary:`Checks added in a recording's review now hold on every step and every run, re-runs no longer click into the middle of a page, and the review warns when a locator or a checked value will not hold next time.`,changes:[{kind:`fixed`,title:`Checks of a text inside a longer text`,detail:`A text you pick to check in the review, such as "(user and pass: admin)" next to a link, is found wherever it shows on the page. Before, it had to be an element's whole text, so the check failed on a re-run although the page showed it.`,to:[`record`]},{kind:`fixed`,title:`Every step has its picture in the review`,detail:`Steps 8, 9, 18, 19 and so on showed no picture in the review, and no check could be added after them ("Step 10 has no screenshot to check against"). Recordings made before this fix show their pictures too.`,to:[`record`]},{kind:`fixed`,title:`Re-runs no longer jump to another page`,detail:`A click on the page itself, such as the one the browser sends after you choose from a dropdown, is no longer a step. A click on the empty space of a section is replayed where you clicked, not in the middle of the section, where a link may be.`,to:[`record`]},{kind:`improved`,title:`Values that change on every visit`,detail:`ForgeQE notices a text that is different each time the same page loads, such as a random label or one message of a few, and checks that a message shows rather than which one. The review says why.`,to:[`record`]},{kind:`improved`,title:`The review says when a locator will not hold`,detail:`A step found by an id a framework made up, or by a name that holds data like a price, says so in the review, and you can pick another of its locators. The test written from the recording prefers a steady locator.`,to:[`record`]},{kind:`fixed`,title:`Location in replays`,detail:`A recording that used your location replays with a fixed test location, the same on every run, never your own. The test written from it is told which browser permissions the site needs.`}]},{version:`2.10.2`,date:`2026-11-13`,summary:`Recording now captures the hard parts of real pages, from frames, shadow DOM and new windows to hover menus, gestures and keyboard-driven widgets, and their replays run on Windows.`,changes:[{kind:`improved`,title:`Recordings that replay on tricky pages`,detail:`Recordings now replay on pages built with hover menus (including menus inside menus), web components, framesets, lazy content that loads as you scroll, and buttons whose label or icon comes from CSS. A Close, Delete or OK button that appears more than once is found through the toast, row or card it belongs to. Tested on every example page of the-internet.herokuapp.com on Windows.`,to:[`record`]},{kind:`new`,title:`New windows, gestures and keyboard widgets`,detail:`Steps in a window a link opens are recorded there. A press and hold, a swipe, several choices in a multiple-select list, and arrow keys or typing on custom dropdowns, sliders and canvases are now steps. Moving the pointer off the top of the page, which some sites answer with an offer, is a step too.`,to:[`record`]},{kind:`improved`,title:`Back, scrolling and suggestions replay as you did them`,detail:`Going back right after a click, or back from a form's result page, is kept. A replay scrolls to where you stopped scrolling, and waits for a search box's suggestions before choosing one.`,to:[`record`]},{kind:`improved`,title:`Sign-ins and one-time codes`,detail:`A password you type is matched to the right saved login, or read from the site's own variable when it is none of them; the password itself is never recorded. A one-time code the page shows, kept as a variable, is typed from that variable. Permissions you allowed while recording, such as your location, are allowed in the replay.`,to:[`record`]},{kind:`fixed`,title:`Downloads and hovers in Edge replays`,detail:`Replays in Edge no longer get stuck on Edge's own downloads page after a download, and a menu opened by a hover stays open for the next step.`,to:[`record`]},{kind:`new`,title:`Unpin a page from the sidebar`,detail:`Hover a page in the sidebar's Pinned list and click its star to unpin it.`}]},{version:`2.10.1`,date:`2026-11-12`,summary:`Attach Word, Excel and PowerPoint files to a chat, and recordings now capture downloads, right-clicks, scrolls, tooltips and sites behind a browser sign-in, with more kinds of checks.`,changes:[{kind:`new`,title:`Attach Word, Excel and PowerPoint files`,detail:`Drop a .docx, .xlsx or .pptx file (up to 5 MB) into a chat and the agent reads its text. ForgeQE keeps a plain-text copy beside the file, without running any macro or formula. Older .doc, .xls and .ppt files are refused, with the format to save them as.`,to:[`chats`]},{kind:`new`,title:`Downloads are recorded and checked`,detail:`Clicking Export or Download while recording adds a download step with the file's name and size, matched by a pattern when part of the name changes, like a date. The replay waits for the file and fails if it does not arrive or is empty.`,to:[`record`]},{kind:`new`,title:`Right-clicks, scrolls and tooltips`,detail:`Recordings now capture a right-click on the page's own menu, and scrolling of the page or of a list that loads more at its end. To check a tooltip or hover card, press the leader key and then H: the hover is kept, and you can pick the tooltip's text as a check in the review.`,to:[`record`]},{kind:`new`,title:`More kinds of checks`,detail:`In a recording's review, a check on an element can now say it is enabled, it is disabled, how many elements match (as a number), or what an attribute's value is. Changing what a check looks at resets how it compares, so what you see is what is saved.`,to:[`record`]},{kind:`new`,title:`Sites behind the browser's own sign-in`,detail:`A staging site that shows the browser's sign-in box (basic auth) now replays instead of stopping at a 401. The replay signs in with the saved login for that site. If there is none, the recording tells you to save one.`,to:[`record`]},{kind:`fixed`,title:`Steadier replays`,detail:`Replays wait for spinners inside frames too, such as in a payment form, and no longer wait forever for a spinner the page had hidden. On Windows, Stop now closes the recording's browser window.`,to:[`record`]}]},{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 Atlas'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:`Quill, the healing agent and Link 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 Mask page`,detail:`Mask'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 Librarian 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 Skimmer 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 Skimmer 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:`Librarian: see what ForgeQE understood and correct it`,detail:`Ask Librarian 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 Quill, and project logos that fit the sidebar by themselves.`,changes:[{kind:`new`,title:`Mask: 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 Mask 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:`Mask'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 DeskPilot 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:`DeskPilot in chat`,detail:`DeskPilot 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:`Guide`,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 (Miner, 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 Link`,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 Miner 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 Bridge 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:`Bridge 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 Quill and Checker, 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 Quill, with its work, test runs and reviews below. The reviewer, now called Checker, 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 Miner that finds test data for every agent, and the same chat box on every agent's page.`,changes:[{kind:`new`,title:`Mover`,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:`Miner`,detail:`Every agent asks Miner 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 Miner, 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.`}]}]},Cd=[`new`,`improved`,`fixed`],wd=/^[a-z0-9][a-z0-9-]*$/,Td=/^[0-9]+\.[0-9]+\.[0-9]+([a-zA-Z0-9.-]*)?$/,Ed={summary:240,title:80,detail:600},Dd=e=>typeof e==`object`&&!!e&&!Array.isArray(e);function Od(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 kd(e){if(typeof e!=`string`||!/^\d{4}-\d{2}-\d{2}$/.test(e))return;let t=new Date(`${e}T00:00:00Z`);return!Number.isNaN(t.getTime())&&t.toISOString().slice(0,10)===e?e:void 0}function Ad(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 jd(e,t){let n=Ad(e),r=Ad(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 Md(e,t,n){if(!Dd(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=Cd.find(t=>t===e.kind);if(!i)return void n.push(`${t}: kind must be one of ${Cd.join(`, `)}`);let a=Od(e.title,Ed.title);if(!a)return void n.push(`${t}: title must be one line of at most ${Ed.title} characters`);let o=Od(e.detail,Ed.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`&&wd.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 ${Ed.detail} characters`)}function Nd(e,t,n){if(!Dd(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`&&Td.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=kd(e.date);if(!o)return void n.push(`${a}: date must be a real day, like 2026-11-02`);let s=Od(e.summary,Ed.summary);if(!s)return void n.push(`${a}: summary must be one line of at most ${Ed.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)=>Md(e,`${a} change ${t+1}`,n)).filter(e=>!!e);if(!(n.length>c))return{version:i,date:o,summary:s,changes:l}}function Q(e){let t=[];if(!Dd(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=Nd(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&&(jd(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 Pd=Q(Sd).releases,Fd=Pd[0],Id=e=>e.to?.length&&e.to.every(e=>wd.test(e))?s(...e.to):void 0,Ld=e=>new Date(`${e}T00:00:00`),Rd=e=>Ld(e).toLocaleDateString(void 0,{day:`numeric`,month:`short`,year:`numeric`}),zd=e=>Ld(e).toLocaleDateString(void 0,{month:`long`,year:`numeric`});function Bd(e=Pd){let t=[];for(let n of e){let e=zd(n.date),r=t[t.length-1];r?.month===e?r.releases.push(n):t.push({month:e,releases:[n]})}return t}var Vd=`forgeqe-whats-new-seen`,Hd=()=>{try{return localStorage.getItem(Vd)===Fd?.version}catch{return!1}},Ud=()=>{try{Fd&&localStorage.setItem(Vd,Fd.version)}catch{}},Wd={browser:[`browser`],mobile:[`mobile`],desktop:[`desktop`],coding:[`tests`],db:[`databases`],accessibility:[`quality`],performance:[`quality`],visual:[`quality`],jobs:[`monitor`]},Gd={browser:`browser`,mobile:`mobile`,desktop:`desktop`,tests:`coding`,databases:`db`,quality:`accessibility`,monitor:`jobs`},Kd=e=>Object.hasOwn(Gd,e);function qd(e){let t=Gd[e],n=fe.find(e=>e.id===t);return n?c(n):s(t)}var Jd=`forgeqe-open-settings`;function Yd(e,t=!1){if(Kd(e)){try{sessionStorage.setItem(Jd,e)}catch{}t?location.replace(qd(e)):location.hash=qd(e)}}function Xd(e){let t=Gd[e];return t===`accessibility`?`the Quality pages`:t===`jobs`?`the Jobs page`:`${fe.find(e=>e.id===t)?`its agent's`:`its`} page`}var Zd=ge.filter(e=>!pe.includes(e.id)&&!Kd(e.id)),Qd=(0,R.lazy)(()=>v(()=>import(`./agentSettingsSheet-Cc2W6lyp.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]))),$d=/^[a-z][a-z0-9-]*$/,ef=e=>e.filter(e=>$d.test(e));function tf({page:e,title:t,agents:n=[]}){let r=Wd[e]??[],i=ef(n),[a,o]=(0,R.useState)(!1),[s,c]=(0,R.useState)(!1);return(0,R.useEffect)(()=>{try{let e=sessionStorage.getItem(Jd);e&&r.includes(e)&&(sessionStorage.removeItem(Jd),c(!0),o(!0))}catch{}},[e]),!r.length&&!i.length?null:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(I,{variant:`icon`,size:`icon`,"aria-label":`${t} settings`,"data-tip":`${t} settings`,"aria-haspopup":`dialog`,"aria-expanded":a,onClick:()=>{c(!0),o(!0)},children:(0,z.jsx)(xt,{"aria-hidden":`true`})}),s&&(0,z.jsx)(R.Suspense,{fallback:null,children:(0,z.jsx)(Qd,{open:a,onClose:()=>o(!1),title:t,sections:r,agents:i})})]})}function nf(e,t){setTimeout(()=>{let n=document.getElementById(e);if(!n)return;n.focus();let r=Ii(t);r&&n.setSelectionRange(r[0],r[1])},0)}function rf(){let[e,t]=(0,R.useState)(()=>!!Fd&&!Hd());if(!e||!Fd)return null;let n=Fd.changes.filter(e=>e.kind===`new`).slice(0,3);return(0,z.jsxs)(`section`,{"aria-labelledby":`whats-new-title`,className:S(m,`flex w-full items-start gap-x-4`),children:[(0,z.jsx)(F,{icon:$t,size:20,className:`mt-1 flex-none text-icon`}),(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-wrap items-center gap-x-4 gap-y-4`,children:[(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_280px] flex-col gap-1`,children:[(0,z.jsxs)(`span`,{id:`whats-new-title`,className:`font-medium`,children:[`What's new in ForgeQE `,Fd.version]}),(0,z.jsx)(`span`,{className:`text-body-sm text-muted [overflow-wrap:anywhere]`,children:n.length?n.map(e=>e.title).join(` · `):Fd.summary})]}),(0,z.jsxs)(`a`,{className:P({variant:`outline`}),href:s(`settings`,`whats-new`),"data-tip":`See all changes`,children:[(0,z.jsx)(dn,{"aria-hidden":`true`}),`Changes`]})]}),(0,z.jsx)(I,{variant:`icon`,size:`icon`,"aria-label":`Close until the next release`,"data-tip":`Close until the next release`,onClick:()=>{Ud(),t(!1)},className:`-my-2 -mr-2 size-8 flex-none`,children:(0,z.jsx)(wt,{size:16,"aria-hidden":`true`})})]})}function af({id:e}){let t=Kn(e);return(0,z.jsx)(Ue,{to:{href:t.href,label:t.label}})}function of({agent:e,tabs:t}){return(0,z.jsxs)(`header`,{style:t?{viewTransitionName:`agent-tabs`}:void 0,className:`flex flex-wrap items-center gap-1 px-6 py-4 short:py-2`,children:[(0,z.jsx)(jr,{}),e&&(0,z.jsx)(af,{id:e.id}),t&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`span`,{className:`flex-1`}),t]})]})}function sf({agent:e,title:t,tabs:n,end:r,back:i,tabsBelow:a=!1}){let o=M(e.agent);return(0,z.jsxs)(z.Fragment,{children:[i?(0,z.jsx)(Ue,{to:{href:i.href,label:i.label}}):(0,z.jsx)(af,{id:e.id}),(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-4 gap-y-2`,children:[(0,z.jsx)(ne,{agent:e.agent,px:40,decorative:!0}),(0,z.jsx)(`h1`,{className:`m-0 font-home text-headline-lg`,children:t??(o?o.name:e.id)}),!a&&n,(0,z.jsx)(`span`,{className:`flex-auto`}),r,(0,z.jsx)(tf,{page:e.id,title:o?o.name:e.id,agents:e.prompt===!1?[]:e.runs})]}),a&&n&&(0,z.jsx)(`div`,{className:`flex min-w-0 flex-wrap`,children:n})]})}function cf({agent:e,title:t,below:n,tabs:r,end:i}={}){let a=e&&M(e.agent),o=e?e.starters:Fi,[c,l]=(0,R.useState)(``),[u,d]=(0,R.useState)(``);(0,R.useEffect)(()=>{if(!e)try{let e=sessionStorage.getItem(Go);sessionStorage.removeItem(Go),e&&e.trim()&&(l(e.slice(0,2e4)),setTimeout(()=>Ka(`msg`),0))}catch{}},[]);let[f,p]=(0,R.useState)(!1),m=Lo(),h=Ni(),g=E(oe().theme)!==`icons`,_=gd(!!e||g||f),[v,y]=(0,R.useState)(null),b=xd(!!e||!g||f,v,c),{setup:x}=m,C=Rc({kind:`all`},e=>y(yd(e)),!!e||!x?.ready),w=Wc(C),ee=zc(C).count,T=Ba(c,e=>{l(e),d(``)},`msg`,{code:m.tools.code}),D=Ua(`home`,e=>{l(e),Ka(`msg`)}),te=async(t=c)=>{let n=a&&e?.agent!==`forgeqe`&&t.trim()?`${a.name}: ${t.trim()}`:t.trim();if(f||!n.trim()&&!T.hasFiles)return!1;p(!0),d(``);try{let t=await T.wrap(n);if(!t.trim())return p(!1),!1;let{id:r}=await Re.start(t,m.choice,e?.id??`orchestrator`);return T.reset({keep:!0}),location.hash=s(`chats`,r),!0}catch(e){return d(e.message),p(!1),!1}};return(0,z.jsxs)(`div`,{className:`flex min-h-(--screen) flex-col bg-canvas`,children:[e?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Fr,{}),(0,z.jsx)(`div`,{className:S(Ir,`@container gap-4 pb-0 short:pb-0`),children:(0,z.jsx)(sf,{agent:e,...t?{title:t}:{},tabs:r,end:i})})]}):(0,z.jsx)(of,{}),(0,z.jsxs)(`main`,{className:S(`flex flex-auto flex-col items-center px-6`,e?`pt-8 pb-16 short:pt-6 short:pb-8`:`pt-16 pb-24 short:pt-8 short:pb-16`),children:[(0,z.jsxs)(`div`,{className:S(`flex w-full flex-col items-center gap-10 short:gap-6`,e?`max-w-[880px]`:`home-controls max-w-[780px]`),children:[(0,z.jsxs)(`div`,{className:`flex flex-col items-center gap-4 text-center short:gap-2`,children:[e?(0,z.jsx)(ne,{agent:e.agent,px:h?64:96,decorative:!0,working:f,className:`mb-1`}):g?(0,z.jsx)(ne,{agent:ce,px:h?72:112,state:f?`thinking`:b.state,mood:f?void 0:b.mood,activity:f?void 0:b.activity,className:`mb-1`}):(0,z.jsx)(qe,{state:f?`waiting`:_,px:h?72:112,label:f?`Starting the chat`:`ForgeQE is ready`,className:`mb-1`}),e&&a&&t&&t!==a.name&&(0,z.jsx)(`p`,{className:`m-0 text-headline-sm`,children:a.name}),!e&&C.ready&&(ee?(0,z.jsx)(`button`,{type:`button`,onClick:Vc,className:`cursor-pointer border-0 bg-transparent p-0 focus-visible:ring-2 focus-visible:ring-accent`,"data-tip":`Show what is waiting`,children:(0,z.jsxs)(Ve,{tone:`warn`,children:[w?`${w} working now`:`Nothing running now`,`, `,Bc(C).words]})}):(0,z.jsx)(Ve,{tone:w?`running`:`pass`,children:w?`${w} working now`:`Nothing running now`})),!e&&(0,z.jsx)(`h1`,{"data-app-title":``,className:`m-0 font-home text-headline-lg-mobile text-ink sm:text-headline-lg`,children:`What are we assuring today?`}),e?(0,z.jsx)(`p`,{className:`m-0 text-body-lg leading-relaxed text-ink-2`,children:e.about}):(0,z.jsx)(`p`,{className:`m-0 max-w-[46ch] text-body-md 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.`}),e?.crew?.length?(0,z.jsx)(B,{crew:e.crew}):null]}),x&&!x.ready&&(0,z.jsx)(Ho,{project:x.project}),x?.ready&&(0,z.jsx)(Uo,{c:m}),(0,z.jsx)(Ha,{id:`msg`,label:a?`Message ${_e(a.name)}`:`Message ForgeQE`,value:c,onChange:e=>{l(e),d(``)},onSend:()=>void te(),disabled:f||!!x&&!x.ready||D.running,canSend:!!c.trim()||T.hasFiles,onEdit:T.onEdit,onKey:T.onKeyDown,onFiles:T.onFiles,dropping:T.dropping,drop:T.drop,mentions:T.mentions,combo:T.combo,placeholder:a?`Ask ${_e(a.name)} to…`:`Ask ForgeQE to test something…`,top:(0,z.jsxs)(z.Fragment,{children:[T.chips,D.state&&(0,z.jsx)(Ga,{state:D.state,onStop:()=>void D.stop(),onUndo:D.undo,onClose:D.close}),(0,z.jsx)(ir,{chat:null})]}),left:(0,z.jsxs)(z.Fragment,{children:[T.fileInput,(0,z.jsx)(Ro,{attach:{pick:T.pick},choice:m}),(0,z.jsx)(Wa,{running:D.running,disabled:!c.trim()||f||!!x&&!x.ready,onClick:()=>void D.start(c)}),(0,z.jsx)(er,{chat:null,disabled:f||D.running||!!x&&!x.ready})]}),right:(0,z.jsx)(Bo,{c:m})}),(0,z.jsx)(`p`,{role:`status`,"aria-live":`polite`,className:S(`-mt-6 m-0 text-center short:-mt-4 text-body-sm text-ink-2`,!(u||T.error)&&`sr-only`),children:(0,z.jsx)(`span`,{className:T.error&&!u?`text-fail`:``,children:u||T.error||``})}),(0,z.jsx)(`div`,{className:`-mt-2 flex flex-wrap justify-center gap-2`,children:o.map(({label:e,Icon:t,text:n})=>(0,z.jsxs)(I,{onClick:()=>{l(n),d(``),nf(`msg`,n)},children:[t&&(0,z.jsx)(t,{"aria-hidden":`true`}),e]},e))}),n]}),!e&&(0,z.jsxs)(`div`,{className:`mt-16 flex w-full max-w-[1040px] flex-col gap-12 short:mt-8`,children:[x?.ready&&(0,z.jsx)(ud,{board:C}),(0,z.jsx)(rf,{})]})]})]})}function lf({groups:e,edit:t}){return(0,z.jsx)(z.Fragment,{children:e.map(e=>(0,z.jsxs)(dr,{children:[(0,z.jsx)(Qn,{help:e.help,first:!0,children:e.title}),(0,z.jsx)(Jn,{defs:e.fields,edit:t,base:e.base})]},e.title))})}Zn.add(lf);function uf(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 df=[{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`}],ff=/^[A-Za-z0-9][A-Za-z0-9_.-]{0,62}$/;function pf(e,t,n){return e?ff.test(e)?e!==t&&n.includes(e)?`There is already a sign-in named ${e}.`:``:`Letters, digits, . _ and -.`:`Needs a name.`}function mf(e){let t=e.toUpperCase().replace(/[^A-Z0-9]/g,`_`);return{username_env:`${t}_USER`,password_env:`${t}_PASSWORD`}}function hf({edit:e}){let[t,n]=(0,R.useState)(null),r=wr(),i=L(e.value.logins),a=Object.keys(i);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(dr,{children:[(0,z.jsx)(Qn,{first:!0,icon:ut,children:`Sign-ins`}),(0,z.jsxs)(`div`,{className:`-mt-2 mb-4 flex flex-wrap items-center justify-between gap-4`,children:[(0,z.jsx)(`span`,{className:`text-body-sm text-muted`,children:`One for each app the agent signs in to.`}),(0,z.jsxs)(I,{size:`sm`,"data-tip":`Add a sign-in`,onClick:()=>{let e=zn(i,`shop`);n({mode:`add`,from:``,name:e,login:mf(e)})},children:[(0,z.jsx)(dt,{"aria-hidden":`true`}),`Add`]})]}),a.length===0&&(0,z.jsx)(`p`,{className:`m-0 border-t border-line-soft py-6 text-body-sm text-muted`,children:`None yet.`}),Object.entries(i).map(([t,i])=>{let a=L(i),o=uf(a,[`username_env`,`password_env`],df,e=>Ar(r,e)),s=a.username_env||a.password_env;return(0,z.jsx)(cr,{expandable:!1,open:!1,onToggle:()=>{},lead:(0,z.jsx)(Xn,{icon:ut}),title:t,meta:String(a.url||(Array.isArray(a.domains)?a.domains.join(`, `):``)||`No site yet`),state:s?o.length?(0,z.jsx)(`span`,{className:`text-body-sm text-warn`,"data-tip":o.join(`, `),children:o.length===1?`Needs ${o[0]}`:`Needs ${o.length} variables`}):(0,z.jsx)(`span`,{className:`text-body-sm text-pass`,children:`Ready`}):(0,z.jsx)(`span`,{className:`text-body-sm text-muted`,children:`Not set up`}),actions:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(I,{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,z.jsx)(mt,{"aria-hidden":`true`})}),(0,z.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":`Remove ${t}`,"data-tip":`Remove ${t}`,onClick:()=>e.set(qn(e.value,[`logins`,t],void 0)),children:(0,z.jsx)(Pn,{"aria-hidden":`true`})})]}),children:null},t)})]}),(0,z.jsx)(gf,{panel:t,setPanel:n,taken:a,vars:e.vars,onApply:t=>{t.mode===`add`?e.set(qn(e.value,[`logins`,t.name],t.login)):e.set(qn(e.value,[`logins`],{...tr(i,t.from,t.name),[t.name]:t.login}))}})]})}function gf({panel:e,setPanel:t,taken:n,vars:r,onApply:i}){let a={value:e?L(e.login):{},set:n=>e&&t({...e,login:n}),vars:r},o=e?pf(e.name,e.from,n):``,s=()=>t(null);return(0,z.jsx)(Pr,{open:!!e,onClose:s,title:e?.mode===`add`?`Add a sign-in`:`Edit ${e?.from}`,description:(0,z.jsxs)(z.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&&ff.test(e.name)?(0,z.jsxs)(z.Fragment,{children:[` `,`Sign in by hand with `,(0,z.jsxs)(`code`,{className:`font-mono text-body-sm`,children:[`forgeqe login `,e.name]}),`.`]}):null]}),footer:(0,z.jsxs)(z.Fragment,{children:[o&&(0,z.jsx)(`span`,{className:`mr-auto self-center text-body-sm text-muted`,children:`Needs a valid name`}),(0,z.jsxs)(I,{onClick:s,children:[(0,z.jsx)(wt,{"aria-hidden":`true`}),`Cancel`]}),(0,z.jsxs)(I,{variant:`primary`,disabled:!!o,onClick:()=>{i(e),s()},children:[e?.mode===`add`?(0,z.jsx)(dt,{"aria-hidden":`true`}):(0,z.jsx)(On,{"aria-hidden":`true`}),e?.mode===`add`?`Add`:`Done`]})]}),children:e&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(ur,{label:`Name`,help:o?(0,z.jsx)(`span`,{className:`text-fail`,children:o}):`How environments and forgeqe login name it.`,htmlFor:`login-name`,className:`mt-4`,stacked:!0,children:(0,z.jsx)(l,{id:`login-name`,value:e.name,spellCheck:!1,placeholder:`shop-qa`,"aria-invalid":!!o,onChange:n=>t({...e,name:n.target.value.trim()}),className:`font-mono`})}),(0,z.jsx)(Jn,{defs:df,edit:a,base:[],stacked:!0})]})})}function _f({rules:e,others:t,onChange:n}){let[r,i]=(0,R.useState)(``),[a,o]=(0,R.useState)(``),s=r.trim().length>0;return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`form`,{onSubmit:a=>{a.preventDefault();let s=r.replace(/^\s*[-*+]\s+/,``).trim();if(s){if(s.length>300)return o(`A rule is at most 300 characters: make it shorter.`);if([...e,...t.map(e=>e.text)].some(e=>e.toLowerCase()===s.toLowerCase()))return o(`That rule is already in force.`);o(``),n([...e,s]),i(``)}},className:`mb-4 flex items-center gap-2`,children:[(0,z.jsx)(`label`,{htmlFor:`rule`,className:`sr-only`,children:`New rule`}),(0,z.jsx)(l,{id:`rule`,value:r,maxLength:300,onChange:e=>{i(e.target.value),o(``)},placeholder:`Add a rule every agent must follow`,className:`flex-auto`}),(0,z.jsxs)(I,{type:`submit`,variant:`accent`,disabled:!s,"data-tip":`Add the rule`,children:[(0,z.jsx)(dt,{"aria-hidden":`true`}),`Add`]})]}),a&&(0,z.jsx)(`p`,{role:`alert`,className:`mt-0 mb-4 text-body-sm text-fail`,children:a}),e.length===0&&t.length===0?(0,z.jsx)(`p`,{className:`m-0 py-6 text-body-sm text-muted`,children:`No rules yet. Add the first one above.`}):(0,z.jsx)(`div`,{className:`@container`,children:(0,z.jsx)(Sr,{label:`Rules`,placeholder:`Find a rule`,empty:`No rule matches.`,head:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`th`,{scope:`col`,className:gr,children:`Rule`}),(0,z.jsx)(`th`,{scope:`col`,className:S(gr,`hidden @xl:table-cell`),children:`Set in`}),(0,z.jsx)(`th`,{scope:`col`,className:gr,children:(0,z.jsx)(`span`,{className:`sr-only`,children:`Remove`})})]}),children:[...e.map((t,r)=>(0,z.jsxs)(`tr`,{className:or,children:[(0,z.jsx)(`td`,{className:S(Rr,`leading-normal`),children:t}),(0,z.jsx)(`td`,{className:S(Rr,`hidden w-[1%] whitespace-nowrap @xl:table-cell`),children:(0,z.jsx)(Ve,{tone:`pass`,icon:!1,children:`This project`})}),(0,z.jsx)(`td`,{className:S(Rr,`w-[1%] text-right`),children:(0,z.jsx)(I,{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,z.jsx)(Pn,{"aria-hidden":`true`})})})]},`own-${r}`)),...t.map(e=>(0,z.jsxs)(`tr`,{className:or,children:[(0,z.jsx)(`td`,{className:S(Rr,`leading-normal`),children:e.text}),(0,z.jsxs)(`td`,{className:S(Rr,`hidden w-[1%] whitespace-nowrap @xl:table-cell`),children:[(0,z.jsx)(`span`,{className:`font-mono text-body-sm text-muted`,children:e.source}),e.agents?.length?(0,z.jsxs)(`span`,{className:`block text-body-sm text-muted`,children:[`For `,e.agents.length>2?`${e.agents.length} agents`:e.agents.map(e=>M(e).name).join(` and `)]}):null]}),(0,z.jsx)(`td`,{className:S(Rr,`w-[1%] text-right text-body-sm whitespace-nowrap text-muted`),children:`Read only`})]},`other-${e.source}-${e.text}`))]})})]})}function vf(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 yf=`m-0 px-4 py-4 font-mono text-body-sm leading-[1.7] whitespace-pre-wrap [overflow-wrap:anywhere] [tab-size:2]`;function bf({id:e,value:t,lang:n,onChange:r,plain:i=!1}){let a=ti(t,n);return(0,z.jsx)(`div`,{className:S(`outline-accent has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2`,i?`rounded-sm [&_pre]:px-0 [&_textarea]:px-0`:S(f,`max-h-[calc(var(--screen)-300px)] min-h-[360px] overflow-auto rounded-base`)),children:(0,z.jsxs)(`div`,{className:`grid`,children:[(0,z.jsxs)(`pre`,{"aria-hidden":`true`,className:S(yf,`pointer-events-none text-ink [grid-area:1/1]`),children:[a,`
50
- `]}),(0,z.jsx)(`textarea`,{id:e,spellCheck:!1,autoCapitalize:`off`,autoCorrect:`off`,value:t,onChange:e=>r(e.target.value),className:S(yf,`resize-none overflow-hidden border-0 !bg-transparent text-transparent caret-ink outline-none selection:bg-accent-soft [grid-area:1/1]`)})]})})}function xf({snap:e,dirty:t,onSave:n}){let r=vf(e),[i,a]=(0,R.useState)(`config`),[o,s]=(0,R.useState)({}),[c,l]=(0,R.useState)(!1),u=r.find(e=>e.id===i)||r[0],d=o[u.id]??u.text,f=d!==u.text;return(0,z.jsxs)(dr,{children:[(0,z.jsx)(yr,{prefix:`file`,label:`Settings files`,className:`mb-4`,current:u.id,onPick:a,tabs:r.map(e=>({id:e.id,label:e.label,mono:!0}))}),(0,z.jsxs)(`div`,{id:`file-panel-${u.id}`,role:`tabpanel`,"aria-labelledby":`file-${u.id}`,className:`flex flex-col gap-4`,children:[(0,z.jsx)(`p`,{className:`m-0 font-mono text-body-sm break-all text-muted`,children:u.path}),e.errors[u.file]&&(0,z.jsxs)(`p`,{role:`alert`,className:S(N.fail,`m-0`),children:[`Does not parse: `,e.errors[u.file]]}),(0,z.jsx)(`label`,{htmlFor:`file-text`,className:`sr-only`,children:u.label}),(0,z.jsx)(bf,{id:`file-text`,plain:!0,value:d,lang:u.label.endsWith(`.json`)?`json`:`yaml`,onChange:e=>s({...o,[u.id]:e})}),(0,z.jsxs)(`div`,{className:`sticky bottom-0 z-[1] -mx-1 flex flex-wrap items-center gap-4 border-t border-line-soft bg-bg px-1 py-4`,children:[(0,z.jsxs)(I,{busy:c,size:`sm`,variant:`primary`,"data-tip":`Save file`,disabled:!f||c||t[u.file],onClick:async()=>{l(!0);try{if(await n(u.file,d,u.env)){let e={...o};delete e[u.id],s(e)}}finally{l(!1)}},children:[(0,z.jsx)(On,{"aria-hidden":`true`}),c?`Saving…`:`Save`]}),f&&(0,z.jsxs)(I,{size:`sm`,onClick:()=>{let e={...o};delete e[u.id],s(e)},disabled:c,"data-tip":`Discard your changes`,children:[(0,z.jsx)(Qe,{"aria-hidden":`true`}),`Discard`]}),t[u.file]&&(0,z.jsx)(`span`,{className:`text-body-sm text-muted`,children:`Save or discard the form's changes to this file first.`})]})]})]})}var Sf=/^[A-Za-z0-9][A-Za-z0-9_-]{0,62}$/;function Cf({edit:e,base:t,defs:n,noun:r,meta:i,start:a={},placeholder:o}){let s=L(Tr(e.value,t)),[c,u]=(0,R.useState)(null),[d,f]=(0,R.useState)(``),p=d&&!Sf.test(d)?`Letters, digits, - and _.`:d in s?`There is a ${r} named ${d}.`:``,m=()=>{d&&!p&&(e.set(qn(e.value,[...t,d],{...a})),u(d),f(``))};return(0,z.jsxs)(z.Fragment,{children:[Object.keys(s).length===0&&(0,z.jsx)(`p`,{className:`m-0 border-t border-line-soft py-4 text-body-sm text-muted`,children:`None yet.`}),Object.entries(s).map(([r,a])=>(0,z.jsx)(cr,{title:r,meta:i(L(a))||void 0,open:c===r,onToggle:()=>u(c===r?null:r),actions:(0,z.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":`Remove ${r}`,"data-tip":`Remove ${r}`,onClick:()=>e.set(qn(e.value,[...t,r],void 0)),children:(0,z.jsx)(Pn,{"aria-hidden":`true`})}),children:(0,z.jsx)(Jn,{defs:n,edit:e,base:[...t,r]})},r)),(0,z.jsx)(ur,{label:`Add a ${r}`,help:p?(0,z.jsx)(`span`,{className:`text-fail`,children:p}):`A short name: letters, digits, - and _.`,htmlFor:`add-${t.join(`-`)}`,children:(0,z.jsxs)(`div`,{className:`flex w-full items-center gap-2`,children:[(0,z.jsx)(l,{id:`add-${t.join(`-`)}`,value:d,spellCheck:!1,placeholder:`Name, such as ${o}`,"aria-invalid":!!p,onChange:e=>f(e.target.value.trim()),onKeyDown:e=>re(e)&&m(),className:`min-w-0 flex-1`}),(0,z.jsxs)(I,{size:`sm`,disabled:!d||!!p,"data-tip":`Add a ${r}`,onClick:m,children:[(0,z.jsx)(dt,{"aria-hidden":`true`}),`Add`]})]})})]})}var wf={attention:{label:`Needs attention`,tone:`fail`},partial:{label:`Partly set up`,tone:`warn`},ready:{label:`Ready`,tone:`pass`},unavailable:{label:`Unavailable`,tone:`neutral`}},Tf={pass:`bg-pass`,warn:`bg-warn`,fail:`bg-fail`,neutral:`bg-line-strong`,running:`bg-accent`},Ef={assisted:`Adviser`,native:`Builder`,agentic:`Operator`,custom:`Custom agent`};function Df(e,t){let n={};for(let r of e){if(!r.runIds.length)continue;let e=t.filter(e=>Array.isArray(e.agents)&&e.agents.some(e=>e&&r.runIds.includes(e.name)));if(!e.length)continue;let i=e.filter(e=>e.status===`done`||e.status===`failed`);n[r.fav]={runs:e.length,passRate:i.length?Math.round(100*i.filter(e=>e.status===`done`).length/i.length):null}}return n}var Of=[{id:`runs`,label:`Most run`},{id:`name`,label:`Name`},{id:`status`,label:`Needs attention first`}],kf=[`attention`,`partial`,`ready`,`unavailable`],Af={kinds:[],surfaces:[],statuses:[]},jf=(e,t)=>(!t.kinds.length||t.kinds.includes(e.kind))&&(!t.surfaces.length||e.tags.some(e=>t.surfaces.includes(e)))&&(!t.statuses.length||!!e.status&&t.statuses.includes(e.status));function Mf(e,t){let n=e.filter(e=>(t.tab===`all`||(t.tab===`favourites`?t.favs.includes(e.fav):e.status===t.tab))&&jf(e,t.picks)),r=(e,t)=>e.name.localeCompare(t.name),i=e=>t.stats[e.fav]?.runs??0,a=e=>e.status?kf.indexOf(e.status):kf.length;return[...n].sort(t.sort===`name`?r:t.sort===`status`?(e,t)=>a(e)-a(t)||r(e,t):(e,t)=>i(t)-i(e)||r(e,t))}function Nf(e,t,n){let r=t.map(t=>e.find(e=>e.fav===t)).filter(e=>!!e),i=e.filter(e=>!t.includes(e.fav)&&(n[e.fav]?.runs??0)>0).sort((e,t)=>n[t.fav].runs-n[e.fav].runs);return[...r,...i].slice(0,4)}var Pf=(e,t)=>`${e} ${t}${e===1?``:`s`}`;function Ff({status:e}){return e?(0,z.jsx)(`span`,{className:S(`size-2 flex-none rounded-full`,Tf[wf[e].tone]),"aria-hidden":`true`}):null}function If({item:e,favs:t,className:n}){let r=t.favs.includes(e.fav);return(0,z.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-pressed":r,"aria-label":r?`Remove ${_e(e.name)} from favourites`:`Add ${_e(e.name)} to favourites`,"data-tip":r?`Remove from favourites`:`Add to favourites`,onClick:()=>t.toggle(e.fav),className:n,children:(0,z.jsx)(Ht,{size:14,strokeWidth:1.8,fill:r?`currentColor`:`none`,"aria-hidden":`true`})})}var Lf=e=>e.status===`partial`||e.status===`attention`||e.status===`unavailable`?`Set up`:`Run agent`;function Rf({items:e,favs:t,stats:n}){return e.length?(0,z.jsxs)(`section`,{"aria-labelledby":`agents-pinned`,className:`flex flex-col gap-4`,children:[(0,z.jsx)(Ko,{id:`agents-pinned`,icon:Ht,title:`Pinned and most run`,description:`Your favourites first, then the agents your recent runs used most.`,...t.favs.length>0?{actions:(0,z.jsxs)(`span`,{className:`text-body-sm text-muted`,children:[t.favs.length,` pinned`]})}:{}}),(0,z.jsx)(`ul`,{className:`m-0 grid list-none grid-cols-1 gap-4 p-0 sm:grid-cols-2 xl:grid-cols-4`,children:e.map(e=>{let t=n[e.fav],r=e.status?wf[e.status]:void 0;return(0,z.jsxs)(`li`,{className:S(m,`flex min-w-0 flex-col gap-4`),children:[(0,z.jsxs)(`div`,{className:`flex min-w-0 items-start gap-4`,children:[e.icon,(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,z.jsxs)(`a`,{href:e.href,className:`flex min-w-0 items-center gap-2 font-medium text-ink no-underline hover:underline`,children:[(0,z.jsx)(`span`,{className:`truncate`,children:e.name}),(0,z.jsx)(Ff,{status:e.status})]}),(0,z.jsx)(`span`,{className:`truncate text-body-sm text-muted`,children:e.short})]}),t&&(0,z.jsx)(Ve,{tone:`neutral`,icon:!1,className:`flex-none tabular-nums`,children:Pf(t.runs,`run`)})]}),(0,z.jsxs)(`div`,{className:`mt-auto flex items-center justify-between gap-2`,children:[(0,z.jsxs)(`span`,{className:S(`flex items-center gap-2 text-body-sm`,t?.passRate==null?r?.tone===`warn`?`text-warn`:r?.tone===`fail`?`text-fail`:`text-muted`:`text-pass`),children:[(0,z.jsx)(Ff,{status:t?.passRate==null?e.status:`ready`}),t?.passRate==null?r?.label??``:`${t.passRate}% passed`]}),(0,z.jsx)(`a`,{href:e.href,className:S(P({variant:`outline`,size:`sm`}),`no-underline`),children:Lf(e)})]})]},e.fav)})})]}):null}function zf({id:e,title:t,options:n,picked:r,onChange:i}){return n.length?(0,z.jsxs)(`fieldset`,{className:`m-0 flex flex-col gap-1 border-0 p-0 pt-4`,children:[(0,z.jsxs)(`legend`,{className:`float-left mb-2 flex w-full items-center justify-between p-0 text-body-sm font-medium`,children:[(0,z.jsx)(`span`,{id:`facet-${e}`,children:t}),(0,z.jsx)(`span`,{className:`text-body-sm font-normal text-muted tabular-nums`,children:n.length})]}),n.map(e=>{let t=r.includes(e.id);return(0,z.jsxs)(`label`,{className:`flex min-h-8 cursor-pointer items-center gap-2 text-body-sm text-ink`,children:[(0,z.jsx)(pc,{checked:t,onCheckedChange:t=>i(t?[...r,e.id]:r.filter(t=>t!==e.id)),"aria-label":`${e.label}, ${e.n}`}),e.tone&&(0,z.jsx)(`span`,{className:S(`size-2 flex-none rounded-full`,Tf[e.tone]),"aria-hidden":`true`}),(0,z.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.label}),(0,z.jsx)(`span`,{className:`text-body-sm text-muted tabular-nums`,children:e.n})]},e.id)})]}):null}function Bf(e,t,n=12){let r=new Map;for(let n of e)for(let e of new Set(t(n)))r.set(e,(r.get(e)??0)+1);return[...r].sort((e,t)=>t[1]-e[1]||e[0].localeCompare(t[0])).slice(0,n).map(([e,t])=>({id:e,label:e,n:t}))}function Vf({items:e,picks:t,setPicks:n,search:r}){let i=he.map(t=>({id:t.id,label:t.label,n:e.filter(e=>e.kind===t.id).length})).filter(e=>e.n>0||t.kinds.includes(e.id)),a=Bf(e.filter(e=>e.kind!==`custom`),e=>e.tags),o=Object.keys(wf).map(t=>({id:t,label:wf[t].label,tone:wf[t].tone,n:e.filter(e=>e.status===t).length})).filter(e=>e.n>0||t.statuses.includes(e.id)),s=t.kinds.length+t.surfaces.length+t.statuses.length>0,c=e=>r=>n({...t,[e]:r});return(0,z.jsxs)(`aside`,{"aria-label":`Filters`,className:S(m,`flex min-w-0 flex-col gap-4`),children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,z.jsx)(Ko,{icon:xt,title:`Filters`,level:3}),(0,z.jsx)(I,{variant:`ghost`,size:`sm`,disabled:!s,onClick:()=>n(Af),children:`Clear all`})]}),r,(0,z.jsx)(zf,{id:`kind`,title:`Kind`,options:i,picked:t.kinds,onChange:c(`kinds`)}),(0,z.jsx)(zf,{id:`works-with`,title:`Works with`,options:a,picked:t.surfaces,onChange:c(`surfaces`)}),(0,z.jsx)(zf,{id:`status`,title:`Status`,options:o,picked:t.statuses,onChange:c(`statuses`)}),(0,z.jsx)(I,{size:`sm`,disabled:!s,onClick:()=>n(Af),className:`mt-2 w-full justify-center`,children:`Reset all filters`})]})}function Hf({value:e,onChange:t,counts:n}){return(0,z.jsx)(`div`,{role:`group`,"aria-label":`Show`,className:`flex flex-wrap gap-2`,children:[{id:`all`,label:`All agents`},{id:`ready`,label:`Ready`,tone:`pass`},{id:`attention`,label:`Needs attention`,tone:`fail`},{id:`favourites`,label:`Favourites`,star:!0}].map(r=>{let i=e===r.id;return(0,z.jsxs)(I,{size:`sm`,"aria-pressed":i,onClick:()=>t(r.id),children:[r.tone&&(0,z.jsx)(`span`,{className:S(`size-2 rounded-full`,Tf[r.tone]),"aria-hidden":`true`}),r.star&&(0,z.jsx)(Ht,{size:14,fill:`currentColor`,"aria-hidden":`true`,className:`text-warn`}),r.label,(0,z.jsx)(`span`,{className:`tabular-nums`,children:n[r.id]})]},r.id)})})}function Uf({value:e,onChange:t}){let[n,r]=(0,R.useState)(!1),i=(0,R.useRef)(null);return(0,z.jsxs)(`span`,{ref:i,className:`relative`,children:[(0,z.jsxs)(I,{variant:`ghost`,size:`sm`,"aria-haspopup":`menu`,"aria-expanded":n,onClick:()=>r(!n),children:[(0,z.jsx)(Zt,{"aria-hidden":`true`}),`Sort: `,Of.find(t=>t.id===e)?.label,(0,z.jsx)(rt,{"aria-hidden":`true`})]}),(0,z.jsx)(D,{open:n,onClose:()=>r(!1),label:`Sort the agents`,align:`end`,anchor:i.current,children:Of.map(n=>(0,z.jsx)(w,{role:`menuitemradio`,checked:e===n.id,onSelect:()=>{t(n.id),r(!1)},children:n.label},n.id))})]})}function Wf({value:e,onChange:t}){return(0,z.jsx)(vr,{label:`Show as`,value:e,onChange:t,options:[{id:`grid`,label:`Grid`,icon:(0,z.jsx)(St,{size:14,"aria-hidden":`true`})},{id:`list`,label:`List`,icon:(0,z.jsx)(Lt,{size:14,"aria-hidden":`true`})}]})}function Gf({item:e,favs:t,stats:n}){let r=e.status?wf[e.status]:void 0;return(0,z.jsxs)(`li`,{className:S(m,`flex min-w-0 flex-col gap-4`),children:[(0,z.jsxs)(`div`,{className:`flex min-w-0 items-start gap-4`,children:[e.icon,(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,z.jsxs)(`a`,{href:e.href,className:`flex min-w-0 items-center gap-2 text-body-lg font-medium text-ink no-underline hover:underline`,children:[(0,z.jsx)(`span`,{className:`line-clamp-2`,children:e.name}),(0,z.jsx)(Ff,{status:e.status}),r&&(0,z.jsxs)(`span`,{className:`sr-only`,children:[r.label,e.note?`: ${e.note}`:``]})]}),(0,z.jsxs)(`span`,{className:`text-body-sm text-muted`,children:[Ef[e.kind]??e.kind,` · `,e.short]})]}),(0,z.jsx)(If,{item:e,favs:t,className:`-mt-1 -mr-1 flex-none text-muted aria-pressed:text-warn`})]}),(0,z.jsx)(`p`,{className:`m-0 line-clamp-2 text-body-sm leading-relaxed text-ink-2`,children:e.about}),(0,z.jsxs)(`div`,{className:`mt-auto flex items-center gap-4 pt-4`,children:[e.runIds.length>0&&(0,z.jsx)(`span`,{className:`text-body-sm whitespace-nowrap text-muted tabular-nums`,children:Pf(n?.runs??0,`run`)}),(0,z.jsx)(`a`,{href:e.href,className:S(P({variant:`outline`,size:`sm`}),`ml-auto flex-none no-underline`),children:Lf(e)})]})]})}function Kf({item:e,favs:t,stats:n}){let r=e.status?wf[e.status]:void 0;return(0,z.jsxs)(`li`,{className:`flex min-h-16 min-w-0 items-center gap-4 px-4 py-2`,children:[e.icon,(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,z.jsxs)(`a`,{href:e.href,className:`flex min-w-0 items-center gap-2 font-medium text-ink no-underline hover:underline`,children:[(0,z.jsx)(`span`,{className:`truncate`,children:e.name}),(0,z.jsx)(Ff,{status:e.status})]}),(0,z.jsxs)(`span`,{className:`truncate text-body-sm text-muted`,children:[Ef[e.kind]??e.kind,` · `,e.short]})]}),(0,z.jsx)(`span`,{className:`hidden w-32 flex-none text-body-sm text-muted md:block`,children:r?.label??``}),(0,z.jsx)(`span`,{className:`hidden w-16 flex-none text-right text-body-sm text-muted tabular-nums sm:block`,children:n?Pf(n.runs,`run`):``}),(0,z.jsx)(If,{item:e,favs:t,className:`flex-none text-muted aria-pressed:text-warn`}),(0,z.jsx)(`a`,{href:e.href,className:S(P({variant:`outline`,size:`sm`}),`flex-none no-underline`),children:Lf(e)})]})}function qf({items:e,favs:t,stats:n,layout:r,empty:i}){return e.length?r===`list`?(0,z.jsx)(`ul`,{className:S(m,`m-0 flex list-none flex-col divide-y divide-line-soft p-0`),children:e.map(e=>(0,z.jsx)(Kf,{item:e,favs:t,...n[e.fav]?{stats:n[e.fav]}:{}},e.fav))}):(0,z.jsx)(`ul`,{className:`m-0 grid list-none grid-cols-1 gap-4 p-0 @xl:grid-cols-2 @3xl:grid-cols-3`,children:e.map(e=>(0,z.jsx)(Gf,{item:e,favs:t,...n[e.fav]?{stats:n[e.fav]}:{}},e.fav))}):(0,z.jsx)(`div`,{className:S(m,`text-center text-body-sm text-muted`),children:i})}var Jf=[12,24,48];function Yf({page:e,size:t,total:n,onPage:r,onSize:i}){let a=Math.max(1,Math.ceil(n/t));return n<=Jf[0]?null:(0,z.jsxs)(`div`,{className:S(m,`flex flex-wrap items-center gap-4`),children:[(0,z.jsx)(`label`,{htmlFor:`agents-per-page`,className:`text-body-sm text-muted`,children:`Agents per page`}),(0,z.jsx)(d,{id:`agents-per-page`,size:`sm`,value:String(t),onChange:e=>i(Number(e.target.value)),className:`w-auto`,children:Jf.map(e=>(0,z.jsx)(`option`,{value:e,children:e},e))}),(0,z.jsxs)(`nav`,{"aria-label":`Pages`,className:`ml-auto flex items-center gap-1`,children:[(0,z.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":`Earlier page`,disabled:e===0,onClick:()=>r(e-1),children:(0,z.jsx)(et,{"aria-hidden":`true`})}),Array.from({length:a},(t,n)=>(0,z.jsx)(I,{variant:`ghost`,size:`icon-sm`,"aria-current":n===e?`page`:void 0,onClick:()=>r(n),className:`tabular-nums aria-[current]:bg-accent-soft`,children:n+1},n)),(0,z.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":`Later page`,disabled:e>=a-1,onClick:()=>r(e+1),children:(0,z.jsx)(_t,{"aria-hidden":`true`})})]})]})}var Xf=`forgeqe-agent-favourites`,Zf=`forgeqe-agent-favourites`;function Qf(){let e=()=>{try{return ve(localStorage.getItem(Xf))}catch{return[]}},[t,n]=(0,R.useState)(e);return(0,R.useEffect)(()=>{let t=()=>n(e());return window.addEventListener(Zf,t),window.addEventListener(`storage`,t),()=>{window.removeEventListener(Zf,t),window.removeEventListener(`storage`,t)}},[]),{favs:t,toggle:e=>{let r=t.includes(e)?t.filter(t=>t!==e):[...t,e];n(r);try{localStorage.setItem(Xf,JSON.stringify(r)),window.dispatchEvent(new Event(Zf))}catch{}Yr(`favourites`)}}}var $f=(e,t)=>{let n=ue(e),r=t?.[n.agent];return{fav:n.id,href:c(n),name:M(n.agent).name,about:n.about,short:n.short,icon:(0,z.jsx)(ae,{agent:n.agent,px:44,iconPx:24,frame:ap}),tags:r?.tags??[],...r?{status:r.status}:{},note:r?.note??``,kind:n.category,runIds:n.runs}},ep={active:{label:`Active`,tone:`pass`},changed:{label:`Change waiting`,tone:`warn`},draft:{label:`Draft`,tone:`neutral`},invalid:{label:`Needs fixing`,tone:`fail`},broken:{label:`Cannot run`,tone:`fail`},disabled:{label:`Disabled`,tone:`neutral`},drifted:{label:`Knowledge changed`,tone:`warn`}},tp={active:`ready`,changed:`partial`,draft:`partial`,invalid:`attention`,broken:`attention`,disabled:`unavailable`,drifted:`attention`},np={done:`done`,failed:`failed`,stopped:`stopped`,needs_input:`needed a person`,running:`running`},rp=e=>({fav:me(e.id),href:s(`agents`,`custom`,e.id),name:e.name,about:e.description||`No description yet.`,short:e.description||ep[e.state].label,icon:(0,z.jsx)(ae,{agent:e.id,icon:e.icon,px:44,iconPx:24,frame:ap}),status:tp[e.state],note:ep[e.state].label,kind:`custom`,runIds:[],tags:[...e.state===`active`?[]:[ep[e.state].label],...e.waiting?[`${e.waiting} waiting for you`]:[],...e.approvedVersion?[`v${e.approvedVersion}`]:[],...(e.byItself||[]).length?[e.byItself.length===2?`Runs on a schedule and when something happens`:e.byItself.includes(`schedule`)?`Runs on a schedule`:`Starts when something happens`]:[],...e.lastRun?[e.lastRun.outcome===`running`?`A run is going now`:`Last run: ${np[e.lastRun.outcome]||e.lastRun.outcome}, ${qr(e.lastRun.at)}`]:[],...e.problems?[`${e.problems} problem${e.problems===1?``:`s`}`]:[]]});function ip({cards:e}){let t=Object.values(e||{});if(!t.length||t.some(e=>e.status!==`unavailable`))return null;let n=[...new Set(t.map(e=>(e.note||``).replace(/:\s*Set up\.?$/,``).trim()).filter(Boolean))],r=n.length>0&&n.every(e=>/^No model/i.test(e));return(0,z.jsxs)(`div`,{role:`status`,className:`flex w-full flex-wrap items-center gap-x-4 gap-y-4 border-y border-line py-4`,children:[(0,z.jsx)(F,{icon:Ot,size:20,className:`flex-none text-icon`}),(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_280px] flex-col gap-1`,children:[(0,z.jsx)(`span`,{className:`font-medium`,children:`No agent can run yet`}),(0,z.jsx)(`span`,{className:`text-body-sm text-muted [overflow-wrap:anywhere]`,children:n.length?n.join(` · `):`ForgeQE is not set up on this computer.`})]}),(0,z.jsxs)(`a`,{className:P({variant:`primary`}),href:r?s(`settings`,`models`):s(`settings`,`setup`),"data-tip":r?`Add a model key`:`Install what's missing`,children:[(0,z.jsx)(xt,{"aria-hidden":`true`}),`Set up`]})]})}var ap=`size-10 @min-[260px]/col:size-11`;function op(){return(0,z.jsxs)(`a`,{href:s(`agents`,`custom`,`new`),className:S(P({variant:`accent`}),`no-underline`),"data-tip":`New agent`,children:[(0,z.jsx)(dt,{"aria-hidden":`true`}),`New`]})}function sp({onDone:e}){let[t,n]=(0,R.useState)(!1),[r,i]=(0,R.useState)(null),[a,o]=(0,R.useState)(``),[s,c]=(0,R.useState)(``),[u,d]=(0,R.useState)(null),[f,p]=(0,R.useState)(!1),[m,h]=(0,R.useState)(!1),[g,_]=(0,R.useState)(``),v=(0,R.useRef)(null),[y,b]=(0,R.useState)(null);(0,R.useEffect)(()=>{if(!t)return;let e=!1;return we.library.list().then(t=>!e&&b(t.entries),()=>{e||(b([]),_(`Could not read your library.`))}),()=>{e=!0}},[t]);let x=async e=>{_(``),d(null);try{let{base64:t}=await we.library.pack(e.entry);i(t),o(e.entry);let n=await we.importPreview(t);d(n),c(n.id||``)}catch(e){i(null),_(e.message||`That library entry is not a valid package.`)}},C=()=>{i(null),o(``),c(``),d(null),p(!1),_(``)},w=e=>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):e)},r.onerror=()=>n(r.error||Error(`Could not read the package.`)),r.readAsDataURL(e)}),ee=async e=>{if(_(``),d(null),e.size>4194304)_(`The package is larger than 4 MB.`);else try{let t=await w(e);i(t),o(e.name);let n=await we.importPreview(t);d(n),c(n.id||``)}catch(e){i(null),_(e.message||`That file is not a valid package.`)}},T=async e=>{if(r){h(!0),_(``);try{let t=await we.importPreview(r,e.trim()||void 0);d(t)}catch(e){_(e.message)}finally{h(!1)}}},E=async()=>{if(r&&u){h(!0),_(``);try{let t=await we.importPack(r,{id:s.trim()||void 0,overwriteKnowledge:f});n(!1),C(),e(t.id)}catch(e){_(e.message)}finally{h(!1)}}},D=u?[...u.missing.environments.map(e=>`environment ${e}`),...u.missing.systems.map(e=>`system ${e}`),...u.missing.capabilities.map(e=>`capability ${e}`),...u.missing.skills.map(e=>`skill ${e}`),...u.missing.knowledge.map(e=>`knowledge ${e}`)]:[],te=!(!u||u.problems.length||u.idTaken);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(I,{size:`sm`,variant:`ghost`,onClick:()=>(n(!0),C()),"data-tip":`Import agent`,children:[(0,z.jsx)(kn,{"aria-hidden":`true`}),`Import`]}),(0,z.jsx)(Pr,{open:t,onClose:()=>(n(!1),C()),title:`Import a custom agent`,description:`From this computer's library, or a .forgeqe-agent.zip from Export to share (agent.json plus knowledge and skill files). It becomes a draft here: you edit, try and approve it. Environments and systems of this project must already exist.`,footer:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(I,{variant:`ghost`,onClick:()=>(n(!1),C()),children:[(0,z.jsx)(wt,{"aria-hidden":`true`}),`Cancel`]}),(0,z.jsxs)(I,{variant:`primary`,disabled:m||!te||u?.warnings.some(e=>e.includes(`already exists here`)&&e.startsWith(`knowledge`))&&!f,onClick:()=>void E(),"data-tip":`Import as draft`,children:[(0,z.jsx)(kn,{"aria-hidden":`true`}),`Import`]})]}),children:(0,z.jsxs)(`div`,{className:`flex flex-col gap-4 text-body-sm`,children:[(0,z.jsx)(`input`,{ref:v,type:`file`,accept:`.zip,application/zip`,className:`sr-only`,onChange:e=>{let t=e.target.files?.[0];e.target.value=``,t&&ee(t)}}),y&&y.length>0&&(0,z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,z.jsx)(`span`,{className:`font-medium`,children:`From your library`}),(0,z.jsx)(`ul`,{"aria-label":`Agents in your library`,className:S(`surface rounded-lg bg-bg p-6 shadow-sm`,`m-0 flex list-none flex-col p-0`),children:y.map((e,t)=>(0,z.jsx)(`li`,{className:S(t>0&&`border-t border-line-soft`),children:(0,z.jsxs)(`button`,{type:`button`,disabled:e.problems.length>0,onClick:()=>void x(e),"aria-pressed":a===e.entry,className:S(`flex w-full min-h-11 cursor-pointer items-center gap-4 rounded-base border-0 bg-transparent px-4 py-2 text-left text-body-sm text-ink no-underline transition-colors duration-150 hover:bg-tint hover:text-ink aria-[current]:bg-tint-hover aria-selected:bg-tint-hover aria-pressed:bg-tint-hover aria-checked:bg-tint-hover has-[:checked]:bg-tint-hover disabled:cursor-not-allowed disabled:opacity-50`,`flex-col items-start gap-1`),children:[(0,z.jsxs)(`span`,{className:`flex flex-wrap items-baseline gap-x-2`,children:[(0,z.jsx)(`span`,{className:`font-medium`,children:e.name}),(0,z.jsxs)(`span`,{className:`text-body-sm text-muted tabular-nums`,children:[e.version,e.publishedAt?` · ${qr(e.publishedAt)}`:``]})]}),e.description&&(0,z.jsx)(`span`,{className:`text-body-sm text-ink-2`,children:e.description}),e.problems.length>0&&(0,z.jsx)(`span`,{className:`text-body-sm text-fail`,children:e.problems[0]})]})},e.entry))})]}),(0,z.jsxs)(I,{size:`sm`,className:`self-start`,onClick:()=>v.current?.click(),"data-tip":a?`Choose another file`:`Choose .zip package`,children:[(0,z.jsx)(Fn,{"aria-hidden":`true`}),`Choose`]}),a&&(0,z.jsx)(`span`,{className:`text-muted`,children:a}),u&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`label`,{className:`flex flex-col gap-2`,children:[(0,z.jsx)(`span`,{className:`font-medium`,children:`Id`}),(0,z.jsx)(l,{value:s,maxLength:40,spellCheck:!1,onChange:e=>c(e.target.value.toLowerCase()),onBlur:()=>void T(s)}),u.idTaken&&(0,z.jsx)(`span`,{className:`text-body-sm text-warn`,children:`That id is taken here. Choose another before importing.`})]}),u.knowledge.length>0&&(0,z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,z.jsx)(`span`,{className:`font-medium`,children:`Knowledge it brings`}),(0,z.jsx)(`ul`,{className:`m-0 list-disc pl-6 text-ink-2`,children:u.knowledge.map(e=>(0,z.jsx)(`li`,{children:e.path},e.path))})]}),u.skills.length>0&&(0,z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,z.jsx)(`span`,{className:`font-medium`,children:`Skills it brings`}),(0,z.jsx)(`ul`,{className:`m-0 list-disc pl-6 text-ink-2`,children:u.skills.map(e=>(0,z.jsx)(`li`,{children:e.name},e.name))})]}),D.length>0&&(0,z.jsxs)(`div`,{className:S(N.warn,`flex flex-col gap-1`),children:[(0,z.jsx)(`span`,{className:`font-medium`,children:`This project still needs`}),(0,z.jsx)(`ul`,{className:`m-0 list-disc pl-6`,children:D.map(e=>(0,z.jsx)(`li`,{children:e},e))})]}),u.warnings.some(e=>e.startsWith(`knowledge file `)&&e.endsWith(` already exists here`))&&(0,z.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(pc,{checked:f,onCheckedChange:p}),`Replace existing knowledge files of the same path`]}),u.problems.length>0&&(0,z.jsx)(`ul`,{className:`m-0 list-disc pl-6 text-fail`,children:u.problems.map((e,t)=>(0,z.jsx)(`li`,{children:e},t))})]}),g&&(0,z.jsx)(`p`,{className:`m-0 text-fail`,children:g})]})})]})}function cp(){let[e,t]=(0,R.useState)(null),[n,r]=(0,R.useState)(``),[i,a]=(0,R.useState)(``);return(0,R.useEffect)(()=>{let e=!1;return we.list().then(n=>{e||(le(n.agents,`replace`),t(n.agents),a(n.off||``))},n=>{e||(t([]),r(n.message))}),()=>{e=!0}},[]),{rows:e,error:n,off:i,setRows:t}}function lp(){return(0,z.jsxs)(`p`,{role:`status`,className:S(`m-0 flex flex-wrap items-center gap-x-2`,N.info),children:[`Custom agents are turned off for this project: none runs, from here, the terminal, Atlas or a schedule.`,(0,z.jsx)(`a`,{href:s(`settings`),children:`Turn them on in Settings, Custom agents`})]})}function up(){let[e,t]=(0,R.useState)(null),[n,r]=(0,R.useState)(``);return(0,R.useEffect)(()=>{let e=!1;return Pe.list().then(n=>!e&&t(n.teams),n=>{e||(t([]),r(n.message))}),()=>{e=!0}},[]),(0,z.jsxs)(qo,{id:`custom-teams`,icon:tt,title:`Teams`,n:e?.length||void 0,description:`A lead and its members, each a custom agent. The lead hands each task to a member; a team runs only a version a person approved.`,actions:(0,z.jsxs)(`a`,{href:s(`agents`,`teams`,`new`),className:S(P({variant:`outline`,size:`sm`}),`no-underline`),children:[(0,z.jsx)(dt,{"aria-hidden":`true`}),`New team`]}),children:[n&&(0,z.jsx)(`p`,{role:`alert`,className:`m-0 text-body-md text-fail [overflow-wrap:anywhere]`,children:n}),e?e.length===0?!n&&(0,z.jsx)(ze,{className:`py-4`,children:`No teams yet. A team is a file in .forgeqe/agents/teams naming a lead and its members; approve it with forgeqe team approve.`}):(0,z.jsx)(`ul`,{className:`m-0 grid list-none grid-cols-1 gap-4 p-0 sm:grid-cols-[repeat(auto-fill,minmax(260px,1fr))]`,children:e.map(e=>(0,z.jsx)(`li`,{className:`flex`,children:(0,z.jsxs)(`a`,{href:s(`agents`,`teams`,e.id),className:S(m,`group flex w-full flex-col gap-4 text-ink no-underline focus-visible:outline-2 focus-visible:outline-accent`),children:[(0,z.jsxs)(`span`,{className:`flex items-center justify-between gap-2`,children:[(0,z.jsx)(`span`,{"aria-hidden":`true`,className:`flex items-center`,children:(e.agents||[]).slice(0,5).map((e,t)=>(0,z.jsx)(`span`,{className:S(`inline-flex rounded-full ring-2 ring-bg`,t>0&&`-ml-2`),children:(0,z.jsx)(ne,{agent:e.agent,icon:e.icon,px:36,decorative:!0})},e.agent))}),(0,z.jsx)(Ve,{tone:ep[e.state].tone,icon:!1,children:ep[e.state].label})]}),(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,z.jsx)(`span`,{className:`truncate text-body-lg font-medium group-hover:underline`,children:e.name}),(0,z.jsxs)(`span`,{className:`text-body-sm text-muted`,children:[e.members===void 0?e.description:`${e.members+1} agents`,e.problems?` · ${e.problems} ${e.problems===1?`problem`:`problems`}`:``]})]})]})},e.id))}):(0,z.jsx)(`p`,{role:`status`,className:`m-0 text-body-md text-muted`,children:`Reading the teams…`})]})}function dp({rows:e,onDone:t}){let[n,r]=(0,R.useState)(!1),[i,a]=(0,R.useState)([]),[o,s]=(0,R.useState)(null),[c,u]=(0,R.useState)(``),[d,f]=(0,R.useState)(!1),[p,m]=(0,R.useState)(``),h=e.filter(e=>e.approvedVersion);if(!h.length)return null;let g=h.filter(e=>i.includes(e.id)),_=async()=>{if(o){f(!0);try{let e=await we.bulk(o,i,c);t(e.agents),m(`${o===`disable`?`Disabled`:`Enabled`} ${e.done.length}${e.skipped.length?`; skipped ${e.skipped.map(e=>e.id).join(`, `)} (already ${o}d)`:``}.`),s(null),a([]),r(!1)}catch(e){m(e.message)}finally{f(!1),u(``)}}};return(0,z.jsxs)(qo,{id:`custom-bulk`,icon:Qt,title:`Disable or enable several`,actions:(0,z.jsxs)(I,{size:`sm`,variant:`ghost`,onClick:()=>(r(!n),a([]),m(``)),"data-tip":n?void 0:`Select agents`,children:[n?(0,z.jsx)(wt,{"aria-hidden":`true`}):(0,z.jsx)(Qt,{"aria-hidden":`true`}),n?`Cancel`:`Select`]}),children:[n&&(0,z.jsxs)(`div`,{className:S(`surface rounded-lg bg-bg p-6 shadow-sm`,`flex flex-col gap-2`),children:[(0,z.jsxs)(`label`,{className:`flex items-center gap-2 text-body-sm font-medium`,children:[(0,z.jsx)(pc,{checked:i.length===h.length,onCheckedChange:e=>a(e?h.map(e=>e.id):[])}),`All `,h.length,` approved agents`]}),(0,z.jsx)(`ul`,{className:`m-0 grid list-none grid-cols-1 gap-2 p-0 sm:grid-cols-2`,children:h.map(e=>(0,z.jsx)(`li`,{children:(0,z.jsxs)(`label`,{className:`flex items-center gap-2 text-body-sm`,children:[(0,z.jsx)(pc,{checked:i.includes(e.id),onCheckedChange:t=>a(t?[...i,e.id]:i.filter(t=>t!==e.id))}),(0,z.jsx)(`span`,{className:`min-w-0 truncate`,children:e.name}),(0,z.jsx)(Ve,{tone:ep[e.state].tone,icon:!1,children:ep[e.state].label})]})},e.id))}),(0,z.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,z.jsxs)(I,{size:`sm`,disabled:!i.length,onClick:()=>s(`disable`),children:[(0,z.jsx)(Ct,{"aria-hidden":`true`}),i.length?`Disable (${i.length})`:`Disable`]}),(0,z.jsxs)(I,{size:`sm`,variant:`ghost`,disabled:!i.length,onClick:()=>s(`enable`),children:[(0,z.jsx)(gt,{"aria-hidden":`true`}),i.length?`Enable (${i.length})`:`Enable`]})]})]}),p&&(0,z.jsx)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:p}),o&&(0,z.jsx)(Pr,{open:!0,onClose:()=>(s(null),u(``)),title:`${o===`disable`?`Disable`:`Enable`} ${g.length} agent${g.length===1?``:`s`}`,description:o===`disable`?`None of them runs (not you, your team, Atlas or their schedules) until a person enables it again. Their versions and history are kept.`:`Their approved versions run again, and their schedules come back.`,footer:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(I,{variant:`ghost`,onClick:()=>(s(null),u(``)),children:[(0,z.jsx)(wt,{"aria-hidden":`true`}),`Cancel`]}),(0,z.jsxs)(I,{variant:`primary`,disabled:d||c!==String(g.length),onClick:()=>void _(),children:[o===`disable`?(0,z.jsx)(Ct,{"aria-hidden":`true`}):(0,z.jsx)(gt,{"aria-hidden":`true`}),o===`disable`?`Disable`:`Enable`]})]}),children:(0,z.jsxs)(`div`,{className:`flex flex-col gap-4 text-body-sm`,children:[(0,z.jsx)(`span`,{className:`text-ink-2`,children:g.map(e=>e.name).join(`, `)}),(0,z.jsxs)(`label`,{className:`flex flex-col gap-2`,children:[(0,z.jsxs)(`span`,{children:[`Type `,g.length,` to confirm`]}),(0,z.jsx)(l,{value:c,onChange:e=>u(e.target.value),autoComplete:`off`,inputMode:`numeric`})]})]})})]})}function fp({only:e}){let t=Qf(),n=cp(),[r,i]=(0,R.useState)(null);(0,R.useEffect)(()=>{ke.directory().then(e=>i(e.agents),()=>i({}))},[]);let[a,o]=(0,R.useState)([]);(0,R.useEffect)(()=>{je.list().then(e=>o(e.approvals.filter(e=>e.state===`waiting`)),()=>{})},[]);let[c,l]=(0,R.useState)(``),u=e?he.find(t=>t.id===e):void 0,[d,f]=(0,R.useState)(u?{...Af,kinds:[u.id]}:Af),[p,h]=(0,R.useState)(Jf[0]),[_,v]=(0,R.useState)(`all`),[y,b]=(0,R.useState)(`runs`),[x,C]=(0,R.useState)(`grid`),[w,ee]=(0,R.useState)(0),[E,D]=(0,R.useState)([]);(0,R.useEffect)(()=>{ye.list().then(e=>D(Array.isArray(e.runs)?e.runs:[]),()=>{})},[]);let te=(0,R.useMemo)(()=>de(c),[c]),ne=(0,R.useMemo)(()=>j(n.rows||[],c),[n.rows,c]),O=(0,R.useMemo)(()=>[...te.map(e=>$f(e.id,r)),...ne.map(rp)],[te,ne,r]),re=(0,R.useMemo)(()=>Df(O,E),[O,E]),ie=(0,R.useMemo)(()=>c.trim()?[]:Nf(O,t.favs,re),[O,t.favs,re,c]),ae=O.filter(e=>jf(e,d)),k={all:ae.length,ready:ae.filter(e=>e.status===`ready`).length,attention:ae.filter(e=>e.status===`attention`).length,favourites:ae.filter(e=>t.favs.includes(e.fav)).length},A=Mf(O,{tab:_,picks:d,sort:y,favs:t.favs,stats:re}),oe=Math.max(1,Math.ceil(A.length/p)),se=Math.min(w,oe-1),ce=A.slice(se*p,se*p+p),ue=e=>t=>{e(t),ee(0)},fe=O.filter(e=>e.status===`ready`).length;return(0,z.jsxs)(`div`,{className:`flex min-h-(--screen) flex-col bg-canvas`,children:[(0,z.jsx)(Fr,{}),(0,z.jsxs)(`main`,{className:S(Ir,`max-w-[1400px] flex-auto gap-8`),children:[(0,z.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[u?(0,z.jsx)(Ue,{to:{href:s(`agents`),label:`All agents`}}):(0,z.jsx)(Ue,{}),(0,z.jsxs)(`div`,{className:`flex flex-wrap items-start gap-x-6 gap-y-4`,children:[(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_480px] flex-col gap-2`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-4`,children:[(0,z.jsx)(Xn,{pixel:T.agents,size:`lg`}),(0,z.jsx)(`h1`,{className:`m-0 font-home text-headline-lg`,children:u?u.label:`Agents`}),r&&(0,z.jsxs)(Ve,{tone:`neutral`,icon:!1,className:`tabular-nums`,children:[O.length,` agents · `,fe,` ready`]})]}),(0,z.jsx)(`p`,{className:`m-0 max-w-[720px] text-body-sm leading-relaxed text-ink-2`,children:u?u.about:`Find, filter and open ForgeQE's agents and your team's own: chat with one, see what it can do, or make a new one.`})]}),!n.off&&(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 self-center`,children:[(0,z.jsx)(sp,{onDone:e=>{we.list().then(e=>{le(e.agents,`replace`),n.setRows(e.agents)},()=>{}),location.hash=s(`agents`,`custom`,e)}}),(0,z.jsx)(op,{})]})]})]}),(0,z.jsx)(ip,{cards:r}),u&&a.length>0&&(0,z.jsx)(`div`,{role:`status`,className:`self-start`,children:(0,z.jsx)(`a`,{href:s(`agents`,`custom`,a[0].agent),className:S(N.warn,`flex items-center gap-2 font-medium no-underline hover:text-warn`),children:a.length===1?`${a[0].agent} is waiting for your approval`:`${a.length} requests from your agents are waiting for your approval`})}),!u&&(0,z.jsx)(Rf,{items:ie,favs:t,stats:re}),n.off&&(0,z.jsx)(lp,{}),u?.id===`custom`&&n.rows&&(0,z.jsx)(dp,{rows:n.rows,onDone:n.setRows}),u?.id===`custom`&&!n.off&&(0,z.jsx)(up,{}),(0,z.jsxs)(`div`,{className:`grid items-start gap-6 lg:grid-cols-[280px_minmax(0,1fr)]`,children:[(0,z.jsx)(Vf,{items:O,picks:d,setPicks:ue(f),search:(0,z.jsx)(He,{id:`agents-search`,label:`Find an agent`,placeholder:`Find among ${O.length} agents`,value:c,onChange:ue(l),className:`max-w-none flex-auto`})}),(0,z.jsxs)(`div`,{className:`@container flex min-w-0 flex-col gap-4`,children:[(0,z.jsxs)(`div`,{className:S(m,`flex flex-wrap items-center gap-4 px-4 py-2`),children:[(0,z.jsx)(Hf,{value:_,onChange:ue(v),counts:k}),(0,z.jsx)(`span`,{className:`ml-auto text-body-sm text-muted tabular-nums`,children:A.length?`Showing ${se*p+1}–${se*p+ce.length} of ${A.length}`:`None`}),(0,z.jsx)(Uf,{value:y,onChange:ue(b)}),(0,z.jsx)(Wf,{value:x,onChange:C})]}),n.error&&(0,z.jsxs)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:[`Your custom agents cannot be read: `,n.error]}),(0,z.jsx)(qf,{items:ce,favs:t,stats:re,layout:x,empty:r?_===`favourites`&&!k.favourites?`No favourites yet: star an agent to keep it here and on top.`:(0,z.jsxs)(`span`,{className:`flex flex-col items-center gap-2`,children:[(0,z.jsx)(g,{name:T.agents,px:22}),(0,z.jsx)(`span`,{className:`text-body-lg font-medium text-ink`,children:`No agent matches`}),(0,z.jsx)(`span`,{children:`Clear a filter or the search, or make a custom agent for the job.`})]}):`Reading the agents…`}),(0,z.jsx)(Yf,{page:se,size:p,total:A.length,onPage:ee,onSize:ue(h)})]})]})]})]})}var pp=5;function mp({page:e,onTab:t=!1}){let[n,r]=(0,R.useState)([]),[i,a]=(0,R.useState)(null),[o,c]=(0,R.useState)(``),[l,u]=(0,R.useState)(null);(0,R.useEffect)(()=>{let t=!1;return ke.directory().then(n=>!t&&u(n.agents[e.agent]??null),()=>{}),ke.tools(e.agent).then(e=>!t&&a(e),e=>!t&&c(e.message)),Le.prompts().then(n=>!t&&r(n.agents.filter(t=>e.runs.includes(t.name))),()=>{}),()=>{t=!0}},[e]);let d=M(e.agent).name,f=[...new Set(n.map(e=>e.prompt))];return(0,z.jsxs)(`div`,{className:`flex w-full flex-col gap-8 pt-2`,children:[l&&l.status!==`ready`&&(0,z.jsx)(gp,{card:l,name:d}),(0,z.jsx)(Hc,{scope:{kind:`page`,page:e},composer:!t}),(0,z.jsx)(`div`,{className:m,children:(0,z.jsx)($c,{title:`What ${_e(d)} can use`,defaultOpen:t,children:(0,z.jsxs)(`div`,{className:`flex flex-col gap-6 pt-2`,children:[(0,z.jsx)(qo,{id:`agent-tools`,icon:ft,title:`Tools it can use`,level:3,children:o?(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-fail`,children:o}):i?(0,z.jsx)(bp,{view:i,limit:pp,more:s(`agents`,e.id,`tools`)}):(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`Reading its tools…`})}),i&&i.connections.length>0&&(0,z.jsx)(qo,{id:`agent-connected`,icon:it,title:`Connected to`,level:3,children:(0,z.jsx)(vp,{list:i.connections,limit:4,more:s(`agents`,e.id,`tools`)})}),e.prompt!==!1&&(0,z.jsx)(qo,{id:`agent-prompt`,icon:Yt,title:`Its instructions`,level:3,children:(0,z.jsxs)(`a`,{href:s(`prompts`),className:S(`surface rounded-lg bg-bg p-6 shadow-sm`,`flex items-center gap-4 text-ink no-underline`),children:[(0,z.jsx)(F,{icon:Dn,size:18,className:`flex-none text-muted`}),(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,z.jsx)(`span`,{className:`text-body-sm font-medium`,children:f.length?f.map(e=>`${e}.md`).join(`, `):`The prompt it starts from`}),(0,z.jsxs)(`span`,{className:`text-body-sm text-muted`,children:[`What `,_e(d),` starts with, and your team's additions: change them in Prompts.`]})]}),(0,z.jsx)(dn,{size:16,"aria-hidden":`true`,className:`flex-none text-muted`})]})})]})})})]})}var hp={setup:{to:s(`settings`,`setup`),label:`Settings, Set up`},models:{to:s(`settings`,`models`),label:`Settings, Models`},tests:{to:s(`settings`,`tests`),label:`Settings, Code`},databases:{to:s(`settings`,`databases`),label:`Settings, Databases`},integrations:{to:s(`settings`,`integrations`),label:`Settings, Integrations`},features:{to:s(`settings`,`features`),label:`What's ready`}};function gp({card:e,name:t}){let n=wf[e.status],r=e.needs??[];return(0,z.jsx)(qo,{id:`agent-needs`,icon:Tt,title:`What it needs`,actions:(0,z.jsx)(Ve,{tone:n.tone,children:n.label}),children:r.length===0?(0,z.jsx)(`p`,{className:S(N.info,`m-0`),children:e.note}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:r.some(e=>e.blocks)?`${_e(t,!0)} cannot work until the first ${r.filter(e=>e.blocks).length===1?`one is`:`ones are`} set up.`:`${_e(t,!0)} works, without the parts below.`}),(0,z.jsx)(`ul`,{"aria-label":`What ${_e(t)} needs`,className:S(m,`m-0 flex list-none flex-col p-0`),children:r.map((e,t)=>(0,z.jsxs)(`li`,{className:S(`flex items-center gap-4 px-4 py-2`,t>0&&`border-t border-line-soft`),children:[(0,z.jsx)(pt,{size:16,"aria-label":e.blocks?`Needed`:`Optional`,className:S(`flex-none`,e.blocks?`text-fail`:`text-warn`)}),(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,z.jsx)(`span`,{className:`text-body-sm font-medium`,children:e.what}),(0,z.jsx)(`span`,{className:`text-body-sm text-muted [overflow-wrap:anywhere]`,children:e.why})]}),e.fix&&(0,z.jsxs)(`a`,{href:hp[e.fix].to,className:`flex flex-none items-center gap-1 text-body-sm`,children:[hp[e.fix].label,(0,z.jsx)(dn,{size:14,"aria-hidden":`true`})]})]},`${e.what}:${t}`))})]})})}var _p={repository:`branch`,database:`container`,environment:`web`,system:`plug`};function vp({list:e,limit:t,more:n}){let r=t?e.slice(0,t):e;return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`ul`,{className:`m-0 grid list-none grid-cols-1 gap-2 p-0 sm:grid-cols-2`,children:r.map((e,t)=>(0,z.jsxs)(`li`,{className:S(e.on?m:p,`flex items-center gap-4`),children:[(0,z.jsx)(g,{name:_p[e.kind],px:22,className:S(!e.on&&`opacity-50 grayscale`)}),(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,z.jsx)(`span`,{className:`truncate text-body-sm font-medium`,"data-tip":e.name,children:e.name}),(0,z.jsx)(`span`,{className:`truncate text-body-sm text-muted`,children:e.on?e.detail:`Not connected: ${e.why||`not set up`}`})]})]},`${e.kind}:${e.name}:${t}`))}),n&&r.length<e.length&&(0,z.jsxs)(`a`,{href:n,className:`self-start text-body-sm`,children:[`Show all `,e.length,` connections`]})]})}function yp({page:e}){let[t,n]=(0,R.useState)(null),[r,i]=(0,R.useState)(``);(0,R.useEffect)(()=>{let t=!1;return ke.tools(e.agent).then(e=>!t&&n(e),e=>!t&&i(e.message)),()=>{t=!0}},[e]);let a=M(e.agent).name;return(0,z.jsxs)(`div`,{className:`flex min-h-(--screen) flex-col`,children:[(0,z.jsx)(Fr,{}),(0,z.jsxs)(`main`,{className:Ir,children:[(0,z.jsx)(Ue,{to:{href:s(`agents`,e.id),label:a},className:`mb-4`}),(0,z.jsxs)(`div`,{className:`mb-1 flex items-center gap-4`,children:[(0,z.jsx)(ae,{agent:e.agent,px:40,iconPx:24,frame:`size-10`}),(0,z.jsxs)(`h1`,{className:`m-0 text-headline-lg`,children:[`What `,_e(a),` can use`]})]}),(0,z.jsxs)(`p`,{className:`mt-1 mb-6 text-body-sm leading-relaxed text-ink-2`,children:[t?`${t.title.replace(/\.$/,``)}.`:e.about,` Every tool it has, in the groups its session is given, and what it reaches from this project.`]}),r?(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-fail`,children:r}):t?(0,z.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[(0,z.jsx)(qo,{id:`all-tools`,icon:ft,title:`Tools it can use`,children:(0,z.jsx)(bp,{view:t,openAll:!0})}),t.connections.length>0&&(0,z.jsx)(qo,{id:`all-connected`,icon:it,title:`Connected to`,children:(0,z.jsx)(vp,{list:t.connections})})]}):(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`Reading its tools…`})]})]})}function bp({view:e,limit:t,more:n,openAll:r}){let[i,a]=(0,R.useState)(()=>r?e.groups.map(e=>e.id):[]),o=t?e.groups.slice(0,t):e.groups,s=e.groups.reduce((e,t)=>e+t.tools.length,0),c=e.groups.filter(e=>e.on).length;return(0,z.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,z.jsxs)(`p`,{className:`m-0 text-body-sm text-muted`,children:[c,` of `,e.groups.length,` `,e.groups.length===1?`group`:`groups`,` usable here.`]}),(0,z.jsx)(`ul`,{className:S(m,`m-0 flex list-none flex-col p-0`),children:o.map((e,n)=>{let r=i.includes(e.id);return(0,z.jsxs)(`li`,{className:S(n>0&&`border-t border-line-soft`),children:[(0,z.jsxs)(`button`,{type:`button`,"aria-expanded":r,"aria-controls":`tools-${n}`,disabled:!e.tools.length,onClick:()=>a(r?i.filter(t=>t!==e.id):[...i,e.id]),className:u,children:[e.on?(0,z.jsx)(gt,{size:16,"aria-label":`Usable`,className:`flex-none text-pass`}):(0,z.jsx)(Ct,{size:16,"aria-label":`Not usable here`,className:`flex-none text-muted`}),(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,z.jsxs)(`span`,{className:`text-body-sm font-medium`,children:[e.label,e.tools.length>0&&(0,z.jsxs)(`span`,{className:`font-normal text-muted`,children:[` · `,e.tools.length]})]}),(0,z.jsx)(`span`,{className:S(`text-body-sm text-muted`,t&&`truncate`),children:e.on?[e.about,e.limited].filter(Boolean).join(` · `):`Not here: ${e.why||`not set up`}`})]}),e.tools.length>0&&(0,z.jsx)(_t,{size:16,"aria-hidden":`true`,className:S(`flex-none text-muted transition-transform duration-200`,r&&`rotate-90`)})]}),(0,z.jsx)(lr,{open:r,id:`tools-${n}`,children:(0,z.jsx)(`ul`,{className:`m-0 flex list-none flex-wrap gap-2 px-4 pb-4 pl-10`,children:e.tools.map(e=>(0,z.jsxs)(`li`,{"data-tip":e.what||void 0,className:Qr,children:[e.name,e.what&&(0,z.jsx)(`span`,{className:`ml-2 font-sans text-muted`,children:e.what})]},e.name))})})]},e.id)})}),n&&(o.length<e.groups.length||s>0)&&(0,z.jsx)(`a`,{href:n,className:`self-start text-body-sm`,children:o.length<e.groups.length?`Show all ${e.groups.length} groups and ${s} tools`:`Show every tool (${s})`})]})}function xp({name:e,chats:t}){return(0,z.jsx)(`div`,{className:S(m,`@container`),children:(0,z.jsx)(`ul`,{"aria-label":`Conversations with ${_e(e)}`,className:`m-0 flex list-none flex-col p-2`,children:t.map(e=>(0,z.jsx)(`li`,{children:(0,z.jsx)(vc,{c:e})},e.id))})})}function Sp({page:e}){let[t,n]=(0,R.useState)(null),[r,i]=(0,R.useState)(``);(0,R.useEffect)(()=>{let t=!1;return Re.list().then(r=>!t&&n(gc(nr(e,r.chats))),e=>!t&&i(e.message)),()=>{t=!0}},[e]);let a=M(e.agent).name;return(0,z.jsxs)(`div`,{className:`flex min-h-(--screen) flex-col`,children:[(0,z.jsx)(Fr,{}),(0,z.jsxs)(`main`,{className:Ir,children:[(0,z.jsx)(Ue,{to:{href:s(`agents`,e.id),label:a},className:`mb-4`}),(0,z.jsxs)(`div`,{className:`mb-1 flex items-center gap-4`,children:[(0,z.jsx)(ae,{agent:e.agent,px:40,iconPx:24,frame:`size-10`}),(0,z.jsxs)(`h1`,{className:`m-0 text-headline-lg`,children:[`Conversations with `,_e(a)]})]}),(0,z.jsxs)(`p`,{className:`mt-1 mb-6 text-body-sm leading-relaxed text-ink-2`,children:[`Every chat started from `,_e(a),`'s page, newest first. Open one to read it or carry it on.`]}),r?(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-fail`,children:r}):t?t.length===0?(0,z.jsxs)(ze,{className:`py-4`,children:[`No conversations with `,_e(a),` yet. `,(0,z.jsx)(`a`,{href:s(`agents`,e.id),children:`Ask it`}),` to start one.`]}):(0,z.jsx)(xp,{name:a,chats:t}):(0,z.jsx)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:`Loading…`})]})]})}var Cp=60,wp=Xr.tabs;function Tp(){try{let e=JSON.parse(localStorage.getItem(wp)||`[]`);return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}catch{return[]}}function Ep(e,t,n){let r=Tp().find(t=>t.startsWith(`${e}:`)),i=r?.slice(e.length+1);if(!r&&n)try{i=localStorage.getItem(n)??void 0}catch{}return i&&t.includes(i)?i:void 0}function Dp(e,t){Jr().then(()=>{let n=`${e}:${t}`,r=Tp();if(r[0]!==n){try{localStorage.setItem(wp,JSON.stringify([n,...r.filter(t=>!t.startsWith(`${e}:`))].slice(0,Cp)))}catch{return}Yr(`tabs`)}})}function Op(e,t,n,r){(0,R.useEffect)(()=>{let i=!1;return Jr().then(()=>{let a=Ep(e,t);!i&&a&&!n()&&r(a)}),()=>{i=!0}},[e])}function kp(e,t,n,r,i){let a=(0,R.useRef)(!0),o=n.join(`|`);(0,R.useEffect)(()=>{if(!n.length)return;let o=a.current;if(a.current=!1,o&&r){let r=location.hash;Jr().then(()=>{if(location.hash!==r)return;let a=Ep(e,n);a&&a!==t?i(a):Dp(e,t)})}else Dp(e,t)},[e,t,o,r])}var Ap=`agent`,jp={desktop:`desktop`,mobile:`mobile`,coding:`record`,exploration:`explore`,"knowledge-agent":`knowledge`,responsive:`responsive`,basal:`basal`,migration:`migration`,db:`data`};function Mp(e){let t=T[jp[e]??e];return t?{pixel:t}:Jt}function Np({page:e,title:t,label:n,tabs:r,current:i,onPick:a,tabHref:o,below:s,end:c,agentBody:l,keepAgent:u=!1,wide:d=!1,back:f,canvas:p=!1,children:m}){let h=o?.(Ap).replace(/\/agent$/,``),g=!!h&&i===`agent`&&location.hash.replace(/\/+$/,``)===h;kp(e.id,i,[Ap,...r.map(e=>e.id)],g,e=>o?location.replace(o(e)):a(e));let _=(0,z.jsx)(Lr,{label:n,current:i,onPick:a,tabs:[{id:Ap,label:`Agent`,icon:Mp(e.id)},...r],className:`mb-0`}),v=i===Ap,y=(n,r)=>(0,z.jsxs)(`div`,{className:`@container flex min-h-(--screen) flex-col`,children:[(0,z.jsx)(Fr,{}),(0,z.jsxs)(`main`,{className:S(Ir,Cr,`@container flex-auto`,p?`gap-6`:`gap-4`),children:[(0,z.jsx)(sf,{agent:e,...t?{title:t}:{},tabs:_,end:c,...f?{back:f}:{},tabsBelow:p}),(0,z.jsx)(`div`,{role:`tabpanel`,id:`panel-${r}`,"aria-labelledby":`tab-${r}`,className:S(`flex min-w-0 flex-col`,p?`gap-6`:`gap-4`,d&&S(`@container [--wide-w:min(var(--wide-max,100000px),calc(var(--page-w)_-_48px))] md:[--wide-w:min(var(--wide-max,100000px),calc(var(--page-w)_-_96px))] w-(--wide-w) max-w-none self-start ml-[calc((100%_-_var(--wide-w))/2)]`,`[--wide-max:1384px]`)),children:n})]})]}),b=l===void 0?(0,z.jsx)(cf,{agent:e,...t?{title:t}:{},tabs:_,below:s,end:c}):y(l,Ap);return u?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`div`,{hidden:!v,children:b}),!v&&y(m,i)]}):v?b:y(m,i)}function Pp({text:e,onRetry:t}){return(0,z.jsxs)(`div`,{role:`alert`,className:S(N.fail,`flex flex-col items-start gap-4`),children:[(0,z.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:e}),t&&(0,z.jsxs)(I,{onClick:t,"data-tip":`Try again`,children:[(0,z.jsx)(st,{"aria-hidden":`true`}),`Retry`]})]})}var Fp=[`pl-0`,`pl-0`,`pl-4`,`pl-8`,`pl-12`,`pl-16`,`pl-20`];function Ip(){let[e,t]=(0,R.useState)(``),[n,r]=(0,R.useState)(!1),[i,a]=(0,R.useState)(!1),[o,s]=(0,R.useState)(``),[c,l]=(0,R.useState)(null),u=async()=>{let t=e.trim();if(t){a(!0),s(``);try{l({query:t,...await be.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,z.jsxs)(`section`,{"aria-labelledby":`ask-docs-title`,className:`mb-6`,children:[(0,z.jsx)(`h2`,{id:`ask-docs-title`,className:`sr-only`,children:`Ask the documents`}),(0,z.jsxs)(`form`,{role:`search`,"aria-label":`Ask the documents`,className:`flex flex-wrap items-center gap-x-4 gap-y-2`,onSubmit:e=>{e.preventDefault(),u()},children:[(0,z.jsx)(He,{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,z.jsxs)(`span`,{className:`flex items-center gap-2 text-body-sm`,children:[(0,z.jsx)(Er,{checked:n,onChange:r,label:`Let the model pick sections`}),`Let the model pick sections`]}),(0,z.jsxs)(I,{busy:i,size:`sm`,type:`submit`,disabled:i||!e.trim(),children:[(0,z.jsx)(lt,{"aria-hidden":`true`}),i?`Searching…`:`Search`]})]}),o&&(0,z.jsx)(`div`,{className:`mt-4`,children:(0,z.jsx)(Pp,{text:o,onRetry:()=>void u()})}),(0,z.jsx)(`div`,{"aria-live":`polite`,children:c&&!o&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`p`,{role:`status`,className:`mt-4 mb-0 text-body-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,z.jsx)(`ul`,{"aria-label":`Passages found`,className:`m-0 mt-2 list-none p-0`,children:c.hits.map((e,t)=>(0,z.jsxs)(`li`,{className:`border-t border-line-soft py-2 text-body-sm [overflow-wrap:anywhere]`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`font-medium text-ink`,children:e.where}),e.picked&&(0,z.jsx)(Ve,{tone:`pass`,children:`Picked by the model`})]}),(0,z.jsxs)(`span`,{className:`mt-1 block font-mono text-body-sm text-muted`,children:[e.source,`/`,e.file,`:`,e.line]}),(0,z.jsx)(ni,{text:e.text,className:`mt-2 text-body-sm`})]},`${e.source}/${e.file}:${e.line}:${t}`))})]})})]})}function Lp({sub:e}){let t=ue(`knowledge-agent`),n=(e||``).split(`/`)[0]===`notes`?`notes`:Ap,[r,i]=(0,R.useState)(null),[a,o]=(0,R.useState)(``),[c,u]=(0,R.useState)(null),[d,f]=(0,R.useState)(!1),[p,m]=(0,R.useState)(``),[h,g]=(0,R.useState)(``),[_,v]=(0,R.useState)(`read`),[y,b]=(0,R.useState)(null),[x,C]=(0,R.useState)(!1),[w,ee]=(0,R.useState)(``),[T,E]=(0,R.useState)(null),D=()=>{m(``),v(`edit`),u({rel:``,text:`#
49
+ `),n=Math.max(2,...(t.match(/`+/g)||[]).map(e=>e.length)),r="`".repeat(n+1);return`${r}diff\n${t}\n${r}`}function fu({e}){let[t,n]=(0,R.useState)(!1),r=e.action===`write`?`New`:`Edited`;return(0,z.jsxs)(`li`,{className:`border-t border-line-soft`,children:[(0,z.jsxs)(`div`,{className:`flex min-h-[44px] min-w-0 items-center gap-2 py-2 text-body-sm`,children:[(0,z.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-expanded":t,"aria-label":`${t?`Hide`:`Show`} the diff of ${e.path}`,"data-tip":`${t?`Hide`:`Show`} the diff of ${e.path}`,disabled:!e.diffs.length,onClick:()=>n(!t),className:`flex-none`,children:(0,z.jsx)(_t,{"aria-hidden":`true`,className:S(`transition-transform duration-200`,t&&`rotate-90`)})}),(0,z.jsx)(`span`,{className:`w-[52px] flex-none text-body-sm text-muted`,children:r}),(0,z.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:(0,z.jsx)(ei,{path:e.path})}),(0,z.jsxs)(`span`,{className:`flex-none font-mono text-body-sm tabular-nums`,children:[(0,z.jsxs)(`span`,{className:`text-pass`,children:[`+`,e.added]}),` `,(0,z.jsxs)(`span`,{className:`text-fail`,children:[`−`,e.removed]})]})]}),(0,z.jsx)(lr,{open:t,className:`pb-4 pl-10 [&_pre]:max-h-[420px] [&_pre]:overflow-auto`,children:e.diffs.length?(0,z.jsx)(ni,{text:du(e.diffs),className:$r}):null})]})}var pu={write:`New`,edit:`Edited`,delete:`Deleted`,"test written":`Test`};function mu({label:e,children:t}){return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`dt`,{className:`pt-1 text-body-sm text-muted`,children:e}),(0,z.jsx)(`dd`,{className:`m-0 min-w-0 text-body-sm [overflow-wrap:anywhere]`,children:t})]})}function hu({c:e,files:t,className:n}){let r=e.edits.reduce((e,t)=>e+t.added,0),i=e.edits.reduce((e,t)=>e+t.removed,0),a=e.tests.filter(e=>!e.ok).length,o=e.reviews.at(-1),s=e.edits.length?[]:t.filter(e=>e.action&&e.action!==`read`);return(0,z.jsxs)(ru,{...n?{className:n}:{},title:`Code changes`,icon:ot,aside:e.edits.length?(0,z.jsxs)(`span`,{className:`font-mono text-body-sm tabular-nums`,children:[x(e.edits.length,`file`),` · `,(0,z.jsxs)(`span`,{className:`text-pass`,children:[`+`,r]}),` `,(0,z.jsxs)(`span`,{className:`text-fail`,children:[`−`,i]})]}):s.length?(0,z.jsx)(`span`,{className:`text-body-sm text-muted`,children:x(s.length,`file`)}):void 0,children:[e.results.map((t,n)=>{let r=t.status===`passed`||t.status===`done`,i=t.status===`error`||t.status===`failed`;return(0,z.jsxs)(`div`,{className:`flex flex-col gap-4 border-b border-line-soft pb-4 last:border-b-0 last:pb-0`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,z.jsx)(Et,{size:17,strokeWidth:2,"aria-hidden":`true`,className:r?`text-pass`:i?`text-fail`:`text-warn`}),(0,z.jsx)(`span`,{className:`text-body-lg font-medium`,children:r?`Test written`:i?`Test not finished`:eu(t.status).label}),(0,z.jsx)(Ve,{tone:r?`pass`:i?`fail`:`warn`,children:eu(t.status).label}),e.tests.length>0&&(0,z.jsxs)(`span`,{className:`text-body-sm text-muted`,children:[x(e.tests.length,`test run`),a?` (${a} failed)`:``,e.reviews.length?` · ${x(e.reviews.length,`review`)}`:``]})]}),(0,z.jsxs)(`dl`,{className:`m-0 grid grid-cols-1 gap-x-6 gap-y-1 sm:grid-cols-[110px_minmax(0,1fr)] sm:gap-y-4`,children:[t.testFile&&(0,z.jsx)(mu,{label:`Test`,children:(0,z.jsx)(ei,{path:t.testFile})}),t.command&&(0,z.jsx)(mu,{label:`Run it`,children:(0,z.jsx)(Al,{text:t.command})}),(t.review||o)&&(0,z.jsx)(mu,{label:`Review`,children:(0,z.jsxs)(`span`,{className:`flex flex-col gap-1`,children:[(0,z.jsx)(`span`,{children:(0,z.jsx)(Ve,{tone:(t.review??o).approved?`pass`:`warn`,children:(t.review??o).approved?`Approved`:`Changes asked`})}),(t.review?.summary||o?.summary)&&(0,z.jsx)(`span`,{className:`text-ink-2`,children:t.review?.summary||o?.summary})]})}),t.notes&&(0,z.jsx)(mu,{label:`Notes`,children:(0,z.jsx)(ni,{text:t.notes,className:S(`text-body-sm text-ink-2 [&_p]:my-0 [&_p+p]:mt-2`,`[&_p]:max-w-none [&_ul]:max-w-none [&_ol]:max-w-none [&_blockquote]:max-w-none [&_h1]:max-w-none [&_h2]:max-w-none [&_h3]:max-w-none [&_h4]:max-w-none [&_h5]:max-w-none [&_h6]:max-w-none`)})})]}),t.error&&(0,z.jsx)(`p`,{className:S(N.fail,`m-0`),children:t.error})]},n)}),e.edits.length>0&&(0,z.jsxs)(`div`,{className:`flex flex-col`,children:[(0,z.jsx)(`h4`,{className:`m-0 text-body-sm font-medium text-muted`,children:`Files changed`}),(0,z.jsx)(`ul`,{"aria-label":`Files changed`,className:`m-0 flex list-none flex-col p-0`,children:(0,z.jsx)(au,{items:e.edits,first:8,render:e=>(0,z.jsx)(fu,{e},e.path)})})]}),s.length>0&&(0,z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,z.jsx)(`h4`,{className:`m-0 text-body-sm font-medium text-muted`,children:`Files changed`}),(0,z.jsx)(`ul`,{"aria-label":`Files changed`,className:`m-0 flex list-none flex-col p-0`,children:s.map(e=>(0,z.jsxs)(`li`,{className:`flex min-h-9 min-w-0 items-center gap-4 border-t border-line-soft text-body-sm first:border-t-0`,children:[(0,z.jsx)(`span`,{className:`w-[52px] flex-none text-body-sm text-muted`,children:pu[e.action]||e.action.charAt(0).toUpperCase()+e.action.slice(1)}),(0,z.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:(0,z.jsx)(ei,{path:e.path})})]},e.path))}),(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`Their diffs were not kept for this run.`})]}),!e.edits.length&&!s.length&&!e.results.length&&(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`No files changed.`}),e.edits.some(e=>!e.diffs.length)&&(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`A file without a diff was changed before ForgeQE kept diffs, or is a hidden or credential file, whose text is not kept.`})]})}function gu({final:e,answer:t,className:n}){let r=e.from===`agent`?t?.files??[]:[],i=e.from!==`agent`,a=Math.max(2,...(e.text.match(/`+/g)||[]).map(e=>e.length)),o="`".repeat(a+1);return(0,z.jsxs)(ru,{...n?{className:n}:{},title:`Final message`,icon:zt,aside:(0,z.jsx)(`span`,{className:`text-body-sm text-muted`,children:e.from===`agent`?`The agent's last reply`:e.from===`job`?`The end of the job's output`:`What the command said at the end`}),children:[(0,z.jsx)(uu,{text:i?`${o}text\n${e.text}\n${o}`:Un(e.text),height:420}),r.length>0&&(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-body-sm`,children:[(0,z.jsx)(`span`,{className:`text-muted`,children:`Files it names:`}),r.map(e=>(0,z.jsx)(ei,{path:e},e))]})]})}var _u={rule:{icon:mn,label:`Rulebook`},decision:{icon:nn,label:`Test decisions`},memory:{icon:En,label:`Page memory`},replay:{icon:Ye,label:`Replays`},model:{icon:$t,label:`Model`},skill:{icon:ct,label:`Skills`}};function vu({list:e,className:t}){let n=Object.keys(_u).filter(t=>e.some(e=>e.kind===t));return(0,z.jsx)(ru,{...t?{className:t}:{},title:`Learnings`,icon:Sn,aside:e.length?(0,z.jsxs)(`span`,{className:`text-body-sm text-muted`,children:[e.length,` from this session`]}):void 0,children:e.length===0?(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`Nothing learned or decided in this session: no rules, test decisions, page memory or model switches in its log.`}):(0,z.jsx)(`div`,{className:`grid grid-cols-[repeat(auto-fit,minmax(280px,1fr))] gap-x-6 gap-y-4`,children:n.map(t=>{let{icon:n,label:r}=_u[t];return(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,z.jsxs)(`h4`,{className:`m-0 flex items-center gap-2 text-body-sm font-medium text-muted`,children:[(0,z.jsx)(F,{icon:n,size:14}),r]}),(0,z.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:e.filter(e=>e.kind===t).map((e,t)=>(0,z.jsxs)(`li`,{className:`flex flex-col gap-1 border-t border-line-soft py-2 text-body-sm first:border-t-0`,children:[(0,z.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:e.text}),e.note&&(0,z.jsx)(`span`,{className:`text-body-sm text-muted [overflow-wrap:anywhere]`,children:e.note})]},t))})]},t)})})})}function yu({run:e,className:t}){let n=[],r=t?{className:t}:{};return(e.executions.length||e.kind===`execution`)&&n.push({kind:`execution`,node:(0,z.jsx)(cu,{list:e.executions,...r},`e`)}),(e.reports.length||e.kind===`report`)&&n.push({kind:`report`,node:(0,z.jsx)(lu,{list:e.reports,...r},`r`)}),e.coding&&(e.coding.edits.length||e.coding.results.length||e.kind===`coding`)&&n.push({kind:`coding`,node:(0,z.jsx)(hu,{c:e.coding,files:e.files,...r},`c`)}),n.sort((t,n)=>Number(n.kind===e.kind)-Number(t.kind===e.kind)),(0,z.jsx)(z.Fragment,{children:n.map(e=>e.node)})}var bu=e({ORIGIN:()=>Au,Runs:()=>$u,RunsTable:()=>Zu,StatusIcon:()=>Mu,empty:()=>Nu,newestRuns:()=>Yu,runTab:()=>Gu,statusLabel:()=>ju}),xu={running:{label:`Running`,tone:`running`},done:{label:`Done`,tone:`pass`},failed:{label:`Failed`,tone:`fail`},stopped:{label:`Stopped`,tone:`neutral`}},Su={chat:`Chat`,suite:`Suite`,monitor:`Monitor`,run:`Browser run`,start:`Chat`,heal:`Heal`,"pr-tests":`PR tests`,pack:`Pack`,pipeline:`Pipeline watch`,explore:`Explore`,api:`API tests`,generate:`Generate`,jobs:`Jobs service`},Cu=e=>Su[e]||e.charAt(0).toUpperCase()+e.slice(1),wu=e=>{if(!e)return``;let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString([],{month:`short`,day:`numeric`,...t.getFullYear()===new Date().getFullYear()?{}:{year:`numeric`},hour:`numeric`,minute:`2-digit`})},Tu=(e,t)=>Math.max(0,Math.round(((e.status===`running`?t:Date.parse(e.lastAt))-Date.parse(e.startedAt))/1e3)),Eu=e=>Number.isFinite(e)?e<60?`${e}s`:e<3600?`${Math.floor(e/60)}m ${e%60}s`:`${Math.floor(e/3600)}h ${Math.floor(e%3600/60)}m`:`–`,Du=e=>e.usage.input+e.usage.output;function Ou(e){let[t,n]=(0,R.useState)(Date.now());return(0,R.useEffect)(()=>{if(!e)return;let t=$n(()=>n(Date.now()),1e3);return()=>Yn(t)},[e]),t}function ku({r:e}){return e.origin.kind===`web`?(0,z.jsxs)(`a`,{href:s(`chats`,e.origin.chat),className:`inline-flex items-center gap-2`,children:[(0,z.jsx)(F,{icon:cn,size:14}),`Web chat`]}):e.origin.kind===`job`?(0,z.jsxs)(`a`,{href:s(`jobs`,encodeURIComponent(e.origin.job)),className:`inline-flex items-center gap-2`,children:[(0,z.jsx)(F,{icon:Rt,size:14}),`Job`]}):(0,z.jsxs)(`span`,{className:`inline-flex items-center gap-2 text-muted`,children:[(0,z.jsx)(F,{icon:Kt,size:14}),`Terminal`]})}var Au={web:`Web chat`,job:`Job`,terminal:`Terminal`},ju=e=>xu[e].label;function Mu({status:e}){let t=xu[e].label;return e===`running`?(0,z.jsx)(Bt,{size:16,"aria-label":t,className:`flex-none animate-spin text-accent-fg`}):e===`done`?(0,z.jsx)(gt,{size:16,"aria-label":t,className:`flex-none text-pass`}):e===`failed`?(0,z.jsx)(In,{size:16,"aria-label":t,className:`flex-none text-fail`}):(0,z.jsx)(yt,{size:16,"aria-label":t,className:`flex-none text-muted`})}var Nu=e=>e.status!==`running`&&!e.tools&&!e.turns&&!Du(e)&&!e.files.length&&!e.outputs.length&&Tu(e,0)<2;function Pu(e){return/^forgeqe(-|$)|^engine$/.test(e)?M(e).name:e&&e.charAt(0).toUpperCase()+e.slice(1)}function Fu({label:e,children:t,stacked:n=!1}){return n?(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-col border-t border-line-soft py-2 text-body-sm first:border-t-0`,children:[(0,z.jsx)(`span`,{className:`text-body-sm text-muted`,children:e}),(0,z.jsx)(`span`,{className:`min-w-0 [overflow-wrap:anywhere]`,children:t})]}):(0,z.jsxs)(`div`,{className:`grid grid-cols-[120px_minmax(0,1fr)] items-baseline gap-4 border-t border-line-soft py-2 text-body-sm first:border-t-0`,children:[(0,z.jsx)(`span`,{className:`text-body-sm text-muted`,children:e}),(0,z.jsx)(`span`,{className:`min-w-0 [overflow-wrap:anywhere]`,children:t})]})}function Iu({title:e,icon:t,children:n}){return(0,z.jsx)(qo,{level:3,icon:t,title:e,className:`gap-2`,children:(0,z.jsx)(`div`,{className:`flex min-w-0 flex-col`,children:n})})}var Lu=8,Ru=e=>e===`write`?`Written`:e===`edit`?`Edited`:e===`delete`?`Deleted`:e?e.charAt(0).toUpperCase()+e.slice(1):`Changed`;function zu({run:e,now:t,running:n,events:r}){let i=xu[e.status],a=e.executions.reduce((e,t)=>({total:e.total+t.counts.total,passed:e.passed+t.counts.passed,failed:e.failed+t.counts.failed}),{total:0,passed:0,failed:0}),o=e.coding?.results.at(-1),s=e.coding?.tests.length??0,c=e.coding?.tests.filter(e=>!e.ok).length??0,l=e.coding?.edits??[],u=l.reduce((e,t)=>e+t.added,0),d=l.reduce((e,t)=>e+t.removed,0),f=l.length||e.files.filter(e=>e.action&&e.action!==`read`).length;return(0,z.jsxs)(Mr,{label:`How this run went`,children:[(0,z.jsx)(mr,{compact:!0,label:`Outcome`,value:i.label,tone:i.tone===`fail`?`text-fail`:i.tone===`pass`?`text-pass`:void 0,...o?.attempts?{note:`attempt ${o.attempts}${o.maxAttempts?` of ${o.maxAttempts}`:``}`}:{}}),(0,z.jsx)(mr,{label:n?`Running for`:`Took`,value:Eu(Tu(e,t)),...r?{note:x(r,`event`)}:{}}),a.total>0&&(0,z.jsx)(mr,{label:`Cases`,value:`${a.passed}/${a.total}`,...a.failed?{tone:`text-fail`}:a.passed===a.total?{tone:`text-pass`}:{},note:`passed`}),s>0&&(0,z.jsx)(mr,{label:`Test runs`,value:s,...c?{note:`${c} failed`}:{}}),f>0&&(0,z.jsx)(mr,{label:`Files changed`,value:f,...u+d?{note:`+${u} −${d}`}:{}}),Du(e)>0&&(0,z.jsx)(mr,{label:`Tokens`,value:Bn(Du(e)),note:`${Bn(e.usage.input)} in · ${Bn(e.usage.output)} out`})]})}var Bu={rerun:st,write_test:on,investigate:lt,fix_test:ft},Vu={rerun:`Retry`,write_test:`Write`,investigate:`Investigate`,fix_test:`Fix`};function Hu({actions:e}){let[t,n]=(0,R.useState)(``),[r,i]=(0,R.useState)(``);if(!e.length)return null;let a=async e=>{n(e.prompt),i(``);try{let{id:t}=await Re.start(e.prompt,{});location.hash=s(`chats`,t)}catch(e){i(e.message),n(``)}};return(0,z.jsxs)(`section`,{"aria-label":`Next steps`,className:`flex flex-col gap-2`,children:[(0,z.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:e.map((e,n)=>(0,z.jsxs)(I,{disabled:!!t,onClick:()=>void a(e),"data-tip":e.note?`${e.label}: ${e.note}`:e.label,className:`max-w-full min-w-0`,children:[(0,z.jsx)(F,{icon:Bu[e.kind],size:16,className:`flex-none`}),(0,z.jsx)(`span`,{className:`min-w-0 truncate`,children:t===e.prompt?`Opening…`:Vu[e.kind]}),e.note&&(0,z.jsx)(`span`,{className:`min-w-0 flex-[1_1_0] truncate font-normal text-ink-2`,children:e.note})]},n))}),(0,z.jsx)(`span`,{className:`text-body-sm text-muted`,children:`Each opens a chat with the request; it asks before it changes anything.`}),r&&(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-fail`,children:r})]})}var Uu=e=>`\`${e.replace(/`/g,``)}\``,Wu=[`summary`,`conversation`,`activity`,`details`],Gu=e=>Wu.find(t=>t===e)??`summary`;function X({name:e,tab:t}){let[n,r]=(0,R.useState)(null),[i,a]=(0,R.useState)(``),[o,c]=(0,R.useState)(!1),l=Gu(t),u=t=>location.hash=t===`summary`?s(`runs`,encodeURIComponent(e)):s(`runs`,encodeURIComponent(e),t),d=(0,R.useCallback)(()=>{ye.detail(e).then(e=>{r(e),a(``)},e=>a(e.message))},[e]);(0,R.useEffect)(d,[d]);let f=n?.status===`running`;(0,R.useEffect)(()=>{if(!f)return;let e=$n(d,2e3);return()=>Yn(e)},[d,f]);let p=Ou(f),m=(0,R.useMemo)(()=>(n?.events??[]).map(zr).filter(e=>!!e),[n?.events]),h=async()=>{c(!0),a(``);try{await ye.cancel(e),d()}catch(e){a(e.message)}finally{c(!1)}},g=(0,z.jsx)(Ue,{to:{href:s(`runs`),label:`All runs`}});if(!n)return(0,z.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[g,i?(0,z.jsx)(`p`,{role:`alert`,className:S(N.fail,`m-0`),children:i}):(0,z.jsx)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:`Loading…`})]});let _=xu[n.status],v=!n.replies.length,y=!!n.final||n.executions.length>0||n.reports.length>0||!!(n.coding&&(n.coding.edits.length||n.coding.results.length))||n.learnings.length>0||n.outputs.length>0||n.files.length>0,b=[{id:`summary`,label:`Summary`},{id:`conversation`,label:v?`Command`:`Conversation`,n:n.replies.length||void 0},{id:`activity`,label:`Activity`,n:m.length||void 0},{id:`details`,label:`Details`}],C=new Set([...n.reports.map(e=>e.path),...n.executions.flatMap(e=>[e.report,e.folder])].filter(Boolean)),w=n.outputs.filter(e=>!C.has(e.path)),ee=n.context?.limit?Math.round(n.context.tokens/n.context.limit*100):null,T=w.length>0||n.files.length>0?`@3xl:col-span-3`:`@3xl:col-span-4`;return(0,z.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[g,(0,z.jsxs)(`div`,{className:`flex flex-wrap items-start gap-x-4 gap-y-4`,children:[(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_320px] flex-col gap-2`,children:[(0,z.jsx)(Ko,{icon:bt,title:n.title,actions:(0,z.jsx)(Ve,{tone:_.tone,children:_.label})}),(0,z.jsxs)(`span`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1 text-body-sm text-muted`,children:[(0,z.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,z.jsx)(Ql,{kind:n.kind}),Xl[n.kind]]}),`· `,(0,z.jsx)(ku,{r:n}),`· `,wu(n.startedAt),` · `,f?`running for `:`took `,Eu(Tu(n,p)),` · `,Bn(Du(n)),` tokens`,n.profile?.model?` · ${n.profile.model}`:``]})]}),n.cancel&&(0,z.jsxs)(I,{busy:o,variant:`danger`,disabled:o,"data-tip":n.cancel===`chat`?`Stop this chat's work`:`Cancel this job's run`,onClick:()=>void h(),children:[n.cancel===`chat`?(0,z.jsx)(pn,{fill:`currentColor`,"aria-hidden":`true`}):(0,z.jsx)(wt,{"aria-hidden":`true`}),o?`Stopping…`:n.cancel===`chat`?`Stop`:`Cancel`]})]}),i&&(0,z.jsx)(`p`,{role:`alert`,className:S(N.fail,`m-0`),children:i}),n.error&&(0,z.jsxs)(`p`,{className:S(N.fail,`m-0`),children:[(0,z.jsx)(`strong`,{children:`What went wrong:`}),` `,n.error]}),!f&&(0,z.jsx)(Hu,{actions:n.actions??[]}),(0,z.jsx)(yr,{prefix:`run`,label:`This run`,className:`mb-0`,current:l,onPick:u,tabs:b}),(0,z.jsxs)(`div`,{role:`tabpanel`,id:`run-panel-${l}`,"aria-labelledby":`run-${l}`,className:`flex min-w-0 flex-col gap-6`,children:[l===`summary`&&(0,z.jsxs)(z.Fragment,{children:[y&&(0,z.jsx)(zu,{run:n,now:p,running:f,events:m.length}),(0,z.jsxs)(`div`,{className:`grid items-start gap-x-12 gap-y-6 @3xl:grid-cols-4 @3xl:[grid-auto-flow:dense]`,children:[n.final&&(0,z.jsx)(gu,{final:n.final,answer:n.answer,className:T}),(0,z.jsx)(yu,{run:n,className:T}),w.length>0&&(0,z.jsx)(`div`,{className:`flex min-w-0 flex-col pt-6 @3xl:col-span-1`,children:(0,z.jsx)(Iu,{title:`What it produced (${w.length})`,icon:Dn,children:w.map(e=>(0,z.jsx)(Fu,{label:e.label,stacked:!0,children:(0,z.jsx)(ei,{path:e.path,children:e.path.split(`/`).pop()})},e.path))})}),n.files.length>0&&(0,z.jsx)(`div`,{className:`flex min-w-0 flex-col pt-6 @3xl:col-span-1`,children:(0,z.jsx)(Iu,{title:`Files worked on (${n.files.length})`,icon:$e,children:(0,z.jsx)(au,{items:[...n.files].sort((e,t)=>Number(e.action===`read`)-Number(t.action===`read`)),first:Lu,render:e=>(0,z.jsx)(Fu,{label:Ru(e.action),stacked:!0,children:e.action===`delete`?(0,z.jsx)(`span`,{className:`font-mono text-body-sm`,children:e.path.split(`/`).pop()}):(0,z.jsx)(ei,{path:e.path,children:e.path.split(`/`).pop()})},e.path)})})}),n.learnings.length>0&&(0,z.jsx)(vu,{list:n.learnings,className:`@3xl:col-span-4`})]}),!y&&(0,z.jsx)(ze,{className:`py-4`,children:f?`Still working: its answer and what it produces show here when it ends.`:`This run left no answer, results or files. Its Activity shows what it did.`})]}),l===`conversation`&&(v?(0,z.jsx)(ni,{text:Uu(n.prompt),className:`text-body-sm [&_p]:my-0`}):(0,z.jsx)(`ol`,{className:`m-0 flex list-none flex-col gap-4 p-0`,children:n.replies.map((e,t)=>(0,z.jsxs)(`li`,{className:`flex flex-col gap-2`,children:[(0,z.jsx)(`div`,{className:S(`rounded-md bg-bg px-4 py-2 text-ink shadow-md [overflow-wrap:anywhere]`,`max-w-[85%] self-end text-body-sm`),children:(0,z.jsx)(ni,{text:e.ask,className:`[&_p]:my-1`})}),e.text&&(0,z.jsx)(ni,{text:Un(e.text),className:`text-body-sm`}),e.error&&(0,z.jsx)(`p`,{className:S(N.fail,`m-0`),children:e.error})]},t))})),l===`activity`&&(n.archived?(0,z.jsxs)(`p`,{className:S(N.info,`m-0`),children:[`ForgeQE keeps the newest session logs only, and this run's is gone. Its summary, final message and learnings were kept in `,(0,z.jsx)(`code`,{className:`font-mono text-body-sm`,children:`.forgeqe/runs`}),`; its step-by-step activity was not.`]}):m.length?(0,z.jsx)(Vl,{timeline:!0,lines:m,live:f,name:`forgeqe-run-${n.name.replace(/\.log$/,``)}.md`}):(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`Nothing logged yet.`})),l===`details`&&(0,z.jsxs)(Ku,{children:[(0,z.jsxs)(Iu,{title:`Numbers`,icon:jn,children:[(0,z.jsx)(Fu,{label:f?`Running for`:`Took`,children:Eu(Tu(n,p))}),(0,z.jsx)(Fu,{label:`Tokens`,children:(0,z.jsxs)(`span`,{className:`flex flex-col gap-1`,children:[(0,z.jsxs)(`span`,{children:[Bn(Du(n)),` `,(0,z.jsxs)(`span`,{className:`text-muted`,children:[`· `,rr(n.usage)]})]}),(n.byAgent?.length??0)>1&&(0,z.jsx)(`span`,{className:`flex flex-col gap-1 text-body-sm`,children:n.byAgent.map(e=>(0,z.jsxs)(`span`,{className:`flex items-baseline gap-2`,children:[(0,z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-ink-2`,children:Pu(e.agent)}),(0,z.jsx)(`span`,{className:`text-muted tabular-nums`,children:Bn(e.input+e.output)})]},e.agent))})]})}),(0,z.jsxs)(Fu,{label:`Context`,children:[n.context?Bn(n.context.tokens):`–`,ee!==null&&(0,z.jsxs)(`span`,{className:`text-muted`,children:[` of `,Bn(n.context.limit),` (`,ee,`%)`]})]}),(0,z.jsxs)(Fu,{label:`Tool calls`,children:[n.tools,` `,(0,z.jsxs)(`span`,{className:`text-muted`,children:[`in `,x(n.turns,`turn`)]})]})]}),(0,z.jsxs)(Iu,{title:`Session`,icon:wn,children:[(0,z.jsx)(Fu,{label:`Started by`,children:(0,z.jsx)(ku,{r:n})}),(0,z.jsx)(Fu,{label:`Command`,children:Cu(n.command)}),(0,z.jsx)(Fu,{label:`Model`,children:n.profile?[n.profile.name,n.profile.model].filter(Boolean).join(` · `):`–`}),(0,z.jsx)(Fu,{label:`Agents`,children:n.agents.length?(0,z.jsx)(`span`,{className:`flex flex-col gap-1`,children:n.agents.map(e=>(0,z.jsxs)(`span`,{className:`flex items-baseline gap-2`,children:[(0,z.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:Pu(e.name)}),(0,z.jsx)(`span`,{className:`text-body-sm text-muted tabular-nums`,children:x(e.calls,`call`)})]},e.name))}):(0,z.jsx)(`span`,{className:`text-muted`,children:`None`})}),(0,z.jsxs)(Fu,{label:`Log`,children:[n.archived?(0,z.jsx)(`span`,{className:`text-muted`,children:`No longer kept: ForgeQE keeps the newest logs only`}):(0,z.jsx)(ei,{path:`.forgeqe/logs/${n.name}`}),n.truncated&&(0,z.jsx)(`span`,{className:`block text-body-sm text-muted`,children:`Very long: only its start is shown.`})]})]}),n.job&&(0,z.jsxs)(Iu,{title:`Job`,icon:Rt,children:[(0,z.jsx)(Fu,{label:`Job`,children:(0,z.jsx)(`a`,{href:s(`jobs`,encodeURIComponent(n.origin.kind===`job`?n.origin.job:n.job.name)),children:n.job.name})}),(0,z.jsx)(Fu,{label:`Runs`,children:(0,z.jsx)(ni,{text:Uu(n.job.command),className:`text-body-sm [&_p]:my-0`})}),(0,z.jsxs)(Fu,{label:`Schedule`,children:[n.job.schedule,!n.job.enabled&&` (disabled)`,n.job.nextAt&&n.job.enabled?` · next ${wu(n.job.nextAt)}`:``]}),n.job.run&&(0,z.jsxs)(Fu,{label:`This run`,children:[n.job.run.reason===`asked`?`Asked for`:`On schedule`,`, `,n.job.run.status.replace(`_`,` `),n.job.run.exitCode!==void 0&&n.job.run.exitCode!==null?`, exit ${n.job.run.exitCode}`:``]})]}),(0,z.jsx)(Iu,{title:`Notifications`,icon:Cn,children:n.notifications.length?n.notifications.map(e=>(0,z.jsx)(Fu,{label:e.event.replace(/_/g,` `),children:e.channels.length?e.channels.join(`, `):(0,z.jsx)(`span`,{className:`text-muted`,children:`No channel takes it`})},e.event)):(0,z.jsx)(`p`,{className:`m-0 py-1 text-body-sm text-muted`,children:n.origin.kind===`terminal`||n.origin.kind===`web`?`None: notify channels go with jobs, suites and the monitor.`:`No notify channels are set up (Settings, Notify).`})})]})]})]})}function Ku({children:e}){let t=R.Children.toArray(e).filter(Boolean),n=t.length%2==1;return(0,z.jsx)(`div`,{className:`grid items-start gap-x-12 gap-y-6 @3xl:grid-cols-4 @3xl:[grid-auto-flow:dense]`,children:t.map((e,r)=>(0,z.jsx)(`div`,{className:S(`flex min-w-0 flex-col pt-6`,n&&r===t.length-1?`@3xl:col-span-4`:`@3xl:col-span-2`),children:e},r))})}var qu={running:0,failed:1,stopped:2,done:3},Ju=e=>Date.parse(e.startedAt)||0,Yu=e=>e.toSorted((e,t)=>Ju(t)-Ju(e)),Xu=e=>s(`runs`,encodeURIComponent(e.name));function Zu({runs:e,now:t,resetKey:n,tools:r,end:i,empty:a}){return(0,z.jsx)(Sr,{label:`Runs`,search:!1,resetKey:n,tools:r,end:i,height:br,empty:a,head:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`th`,{scope:`col`,className:gr,children:`Run`}),(0,z.jsx)(`th`,{scope:`col`,className:S(gr,`w-[128px]`),children:`Status`}),(0,z.jsx)(`th`,{scope:`col`,className:S(gr,`hidden w-[160px] @2xl:table-cell`),children:`Kind`}),(0,z.jsx)(`th`,{scope:`col`,className:S(gr,`hidden w-[128px] @3xl:table-cell`),children:`Started by`}),(0,z.jsx)(`th`,{scope:`col`,className:S(Hr,`hidden w-[96px] @3xl:table-cell`),children:`Took`}),(0,z.jsx)(`th`,{scope:`col`,className:S(Hr,`hidden w-[96px] @3xl:table-cell`),children:`Tokens`}),(0,z.jsx)(`th`,{scope:`col`,className:S(Hr,`hidden w-[128px] @xl:table-cell`),children:`When`})]}),children:e.map(e=>{let n=xu[e.status];return(0,z.jsxs)(`tr`,{className:Hn,onClick:()=>location.hash=Xu(e),children:[(0,z.jsx)(`td`,{className:S(Rr,`max-w-0`),children:(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,z.jsx)(`a`,{href:Xu(e),onClick:e=>e.stopPropagation(),className:`truncate font-medium text-ink no-underline hover:underline`,"data-tip":e.title,children:e.title}),e.error?(0,z.jsx)(`span`,{className:`truncate text-fail`,"data-tip":e.error,children:e.error}):(0,z.jsx)(`span`,{className:`truncate text-muted @3xl:hidden`,children:[Xl[e.kind],Au[e.origin.kind]||e.origin.kind,Eu(Tu(e,t)),`${Bn(Du(e))} tokens`,qr(e.startedAt)].join(` · `)})]})}),(0,z.jsx)(`td`,{className:S(Rr,`whitespace-nowrap`),"data-sort":qu[e.status],children:(0,z.jsx)(Ve,{tone:n.tone,children:n.label})}),(0,z.jsx)(`td`,{className:S(Rr,`hidden max-w-0 @2xl:table-cell`),children:(0,z.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2 text-ink-2`,children:[(0,z.jsx)(Ql,{kind:e.kind}),(0,z.jsx)(`span`,{className:`truncate`,children:Xl[e.kind]})]})}),(0,z.jsx)(`td`,{className:S(Rr,`hidden text-ink-2 @3xl:table-cell`),children:Au[e.origin.kind]||e.origin.kind}),(0,z.jsx)(`td`,{className:S(Wr,`hidden text-ink-2 @3xl:table-cell`),"data-sort":Tu(e,t),children:Eu(Tu(e,t))}),(0,z.jsx)(`td`,{className:S(Wr,`hidden text-ink-2 @3xl:table-cell`),"data-sort":Du(e),children:Bn(Du(e))}),(0,z.jsx)(`td`,{className:S(Wr,`hidden text-ink-2 @xl:table-cell`),"data-sort":Ju(e),"data-tip":wu(e.startedAt),children:qr(e.startedAt)})]},e.name)})})}function Qu({runs:e}){let t=Ou(e.some(e=>e.status===`running`)),[n,r]=(0,R.useState)(``),[i,a]=(0,R.useState)(`all`),[o,c]=(0,R.useState)(``),[l,u]=(0,R.useState)(``),[f,p]=(0,R.useState)(!1),m=e.filter(Nu).length,h=n.toLowerCase().split(/\s+/).filter(Boolean),g=e.filter(e=>(f||!Nu(e))&&(!o||e.kind===o)&&(!l||e.origin.kind===l)&&h.every(t=>`${e.title} ${e.command} ${e.error||``}`.toLowerCase().includes(t))),_={all:g.length,running:g.filter(e=>e.status===`running`).length,failed:g.filter(e=>e.status===`failed`).length},v=Yu(i===`all`?g:g.filter(e=>e.status===i)),y=e.filter(e=>e.status!==`running`&&!Nu(e)),b=y.filter(e=>e.status===`failed`).length,C=y.length?y.reduce((e,n)=>e+Tu(n,t),0)/y.length:NaN,w=e.reduce((e,t)=>e+Du(t),0),ee=[...new Set(e.map(e=>e.kind))],T=[...new Set(e.map(e=>e.origin.kind))];return e.length===0?(0,z.jsx)(ze,{icon:wn,title:`No runs yet`,action:(0,z.jsxs)(`a`,{className:P({size:`sm`}),href:s(),"data-tip":`Start a chat`,children:[(0,z.jsx)(cn,{"aria-hidden":`true`}),`Chat`]}),children:`A chat here, a job, or a ForgeQE command in this project adds one.`}):(0,z.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap gap-x-6 gap-y-1 text-body-sm text-muted`,children:[(0,z.jsxs)(`span`,{children:[(0,z.jsx)(`b`,{className:`text-ink tabular-nums`,children:e.length-m}),` runs`]}),e.some(e=>e.status===`running`)&&(0,z.jsxs)(`span`,{children:[(0,z.jsx)(`b`,{className:`text-accent-fg tabular-nums`,children:e.filter(e=>e.status===`running`).length}),` running now`]}),(0,z.jsxs)(`span`,{children:[(0,z.jsx)(`b`,{className:S(`tabular-nums`,b?`text-fail`:`text-ink`),children:b}),` failed`,y.length?` (${Math.round(b/y.length*100)}%)`:``]}),(0,z.jsxs)(`span`,{children:[(0,z.jsx)(`b`,{className:`text-ink tabular-nums`,children:Bn(w)}),` tokens`]}),(0,z.jsxs)(`span`,{children:[(0,z.jsx)(`b`,{className:`text-ink tabular-nums`,children:Eu(Math.round(C))}),` on average`]})]}),(0,z.jsx)(`div`,{children:(0,z.jsx)(Zu,{runs:v,now:t,resetKey:`${n}-${i}-${o}-${l}-${f}`,empty:`No run matches.`,tools:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(He,{id:`run-search`,label:`Find a run`,value:n,onChange:r,placeholder:`Find a run by what was asked`}),(0,z.jsx)(Be,{items:[{id:`all`,label:`All`,n:_.all},{id:`running`,label:`Running`,n:_.running},{id:`failed`,label:`Failed`,n:_.failed,alert:!0}],value:i,onChange:a}),ee.length>1&&(0,z.jsxs)(d,{size:`sm`,"aria-label":`What it did`,value:o,onChange:e=>c(e.target.value),className:`w-auto pr-8 pl-4`,children:[(0,z.jsx)(`option`,{value:``,children:`Any kind`}),ee.map(e=>(0,z.jsx)(`option`,{value:e,children:Xl[e]},e))]}),T.length>1&&(0,z.jsxs)(d,{size:`sm`,"aria-label":`Started by`,value:l,onChange:e=>u(e.target.value),className:`w-auto pr-8 pl-4`,children:[(0,z.jsx)(`option`,{value:``,children:`Started anywhere`}),T.map(e=>(0,z.jsx)(`option`,{value:e,children:Au[e]||e},e))]})]}),end:m>0&&(0,z.jsx)(I,{variant:`link`,size:`inline`,onClick:()=>p(!f),children:f?`Hide the ${x(m,`empty session`)}`:`${x(m,`empty session`)} hidden`})})})]})}function $u({sub:e}){let[t,n]=(0,R.useState)(null),[r,i]=(0,R.useState)(``),a=(0,R.useCallback)(()=>{ye.list().then(e=>{n(e.runs),i(``)},e=>i(e.message))},[]);(0,R.useEffect)(a,[a]);let s=t?.some(e=>e.status===`running`);(0,R.useEffect)(()=>{if(e)return;let t=$n(a,s?3e3:2e4);return()=>Yn(t)},[a,s,e]);let[c,l]=(e||``).split(`/`),u=c?o(c):``;return(0,z.jsxs)(`div`,{className:`flex min-h-(--screen) flex-col`,children:[(0,z.jsx)(Fr,{}),(0,z.jsx)(`main`,{className:S(Ir,`@container flex-auto gap-4`),children:u?(0,z.jsx)(X,{name:u,tab:l},u):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Ue,{}),(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-6 gap-y-2`,children:[(0,z.jsxs)(`span`,{className:`flex items-center gap-4`,children:[(0,z.jsx)(Xn,{pixel:T.runs,size:`lg`}),(0,z.jsx)(`h1`,{className:`m-0 text-headline-lg`,children:`Runs`})]}),(0,z.jsx)(Or,{label:`Runs and reports`,links:Jl,current:`runs`})]}),(0,z.jsx)(`p`,{className:`m-0 text-body-sm leading-relaxed text-ink-2`,children:`Every ForgeQE session in this project: chats here, jobs' runs, and commands typed in a terminal, newest first. Open one for how it went and what it produced.`}),r&&(0,z.jsx)(`p`,{role:`alert`,className:S(N.fail,`m-0`),children:r}),!t&&!r&&(0,z.jsx)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:`Loading…`}),t&&(0,z.jsx)(Qu,{runs:t})]})})]})}var ed=5,td={running:`running`,done:`pass`,failed:`fail`,stopped:`neutral`},nd=new Intl.DateTimeFormat([],{month:`short`,day:`numeric`}),rd=new Intl.DateTimeFormat([],{weekday:`short`});function id({perDay:e,now:t=new Date}){let n=e.length,r=e=>new Date(t.getFullYear(),t.getMonth(),t.getDate()-(n-1)+e),i=Math.max(1,...e),a=e.map((e,t)=>`${rd.format(r(t))} ${e}`).join(`, `);return(0,z.jsxs)(`div`,{role:`img`,"aria-label":`Runs started each day this week: ${a}; ${e[n-1]??0} today`,className:`flex flex-col gap-2`,children:[(0,z.jsx)(`div`,{className:`flex h-6 items-end gap-1`,"aria-hidden":`true`,children:e.map((e,t)=>(0,z.jsx)(`span`,{"data-tip":`${t===n-1?`Today`:nd.format(r(t))}: ${x(e,`run`)}`,className:S(`flex-1 rounded-sm`,t===n-1?`bg-accent`:e?`bg-accent-line`:`bg-surface-strong`),style:{height:e?`${Math.max(25,e/i*100)}%`:`3px`}},t))}),(0,z.jsx)(`div`,{className:`flex gap-1 tabular-nums`,"aria-hidden":`true`,children:e.map((e,t)=>(0,z.jsx)(`span`,{className:S(`flex-1 text-center`,t===n-1&&`font-medium text-accent-fg`),children:rd.format(r(t)).slice(0,2)},t))})]})}function ad({label:e,aside:t,value:n,unit:r,children:i}){return(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,z.jsxs)(`div`,{className:`flex min-h-6 items-center justify-between gap-2 text-body-sm whitespace-nowrap`,children:[(0,z.jsx)(`span`,{className:`font-medium text-ink-2`,children:e}),t]}),(0,z.jsxs)(`p`,{className:`m-0 font-home text-headline-lg leading-none text-ink tabular-nums`,children:[n,r&&(0,z.jsx)(`span`,{className:`ml-1 text-body-sm font-normal tracking-normal text-muted`,children:r})]}),(0,z.jsx)(`div`,{className:`mt-2 min-w-0 text-body-sm text-muted`,children:i})]})}function od({board:e,now:t=new Date}){let n=Pc(e.runs.filter(e=>!Nu(e)),t),r=zc(e),i=jc(e.chats??[],t);return(0,z.jsxs)(y,{as:`section`,"aria-label":`This week at a glance`,className:`grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-4 lg:gap-0`,children:[(0,z.jsx)(`div`,{className:`lg:pr-8`,children:(0,z.jsx)(ad,{label:`Runs this week`,aside:n.perDay[6]?(0,z.jsxs)(`span`,{className:`inline-flex items-center gap-1 font-medium text-icon`,children:[(0,z.jsx)(jn,{size:14,"aria-hidden":`true`}),n.perDay[6],` today`]}):void 0,value:n.total.toLocaleString(),children:(0,z.jsx)(id,{perDay:n.perDay,now:t})})}),(0,z.jsx)(`div`,{className:`lg:px-8`,children:(0,z.jsx)(ad,{label:`Passed this week`,value:n.passRate===null?`–`:n.passRate,...n.passRate===null?{}:{unit:`%`},aside:n.failed?(0,z.jsxs)(Ve,{tone:`fail`,children:[n.failed,` failed`]}):void 0,children:n.passRate===null?`Shows once a run has ended.`:(0,z.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,z.jsx)(Ge,{label:`${n.passRate}% of the runs that ended passed`,parts:[{key:`passed`,value:n.passRate,className:`bg-pass`,text:`${n.passRate}%`},{key:`rest`,value:100-n.passRate,className:`bg-surface-strong`,text:``}]}),(0,z.jsx)(`span`,{children:`Of the runs that ended`})]})})}),(0,z.jsx)(`div`,{className:`lg:px-8`,children:(0,z.jsx)(ad,{label:`Waiting on you`,value:r.count,unit:r.count===1?`thing`:`things`,children:r.count?(0,z.jsxs)(`button`,{type:`button`,onClick:Vc,className:`inline-flex cursor-pointer items-center gap-2 border-0 bg-transparent p-0 text-left text-inherit underline-offset-2 hover:underline focus-visible:ring-2 focus-visible:ring-accent`,children:[(0,z.jsx)(`span`,{className:`size-2 flex-none rounded-full bg-warn`,"aria-hidden":`true`}),Bc(e).answer?`Answer them below`:`See them below`]}):(0,z.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`size-2 rounded-full bg-pass`,"aria-hidden":`true`}),`Nothing needs you now`]})})}),(0,z.jsx)(`div`,{className:`lg:pl-8`,children:(0,z.jsx)(ad,{label:`Done today`,value:i,unit:i===1?`turn`:`turns`,children:`Chats that finished their work today`})})]})}function sd({board:e}){let t=zc(e);return!t.count&&!e.unread.approvals&&!e.unread.jobs?null:(0,z.jsxs)(`section`,{"aria-labelledby":`home-waiting`,className:`flex flex-col gap-4`,children:[(0,z.jsx)(Ko,{id:`home-waiting`,icon:pt,title:`Waiting on you`,n:t.count}),(0,z.jsx)(y,{className:``,children:(0,z.jsx)(Uc,{board:e,all:!0})})]})}function cd({board:e}){let t=(e.chats??[]).filter(kc),{running:n}=zc(e),r=jc(e.chats??[]);return(0,z.jsxs)(`section`,{"aria-labelledby":`home-working`,className:`flex flex-col gap-4`,children:[(0,z.jsx)(Ko,{id:`home-working`,icon:bt,title:`Working now`,n:Wc(e),actions:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-body-sm text-muted tabular-nums`,children:[(0,z.jsx)(F,{icon:gt,size:14,className:`text-pass`}),r,` done today`]}),(0,z.jsx)(Jo,{href:s(`chats`),children:`All chats`})]})}),t.length===0&&!n?(0,z.jsx)(ze,{className:`py-2`,children:`Nothing is running. What you ask above shows here while it works.`}):(0,z.jsxs)(`ul`,{className:`m-0 grid list-none grid-cols-1 gap-4 p-0 md:grid-cols-2 xl:grid-cols-3`,children:[t.map(t=>(0,z.jsx)(y,{as:`li`,className:`min-w-0`,children:(0,z.jsx)(`ul`,{className:`m-0 list-none p-0 [&>li]:border-l-0 [&>li]:p-0`,children:(0,z.jsx)(Qc,{c:t,showAgent:!0,onChange:e.load})})},t.id)),n>0&&(0,z.jsxs)(y,{as:`li`,className:`flex min-w-0 flex-col justify-between gap-4`,children:[(0,z.jsxs)(`span`,{className:`flex items-center gap-2 text-body-sm font-medium text-ink`,children:[(0,z.jsx)(F,{icon:bt,size:16,className:`text-icon`}),x(n,`run`),` going now`]}),(0,z.jsx)(Jo,{href:s(`runs`),children:`Watch them in Runs`})]})]})]})}function ld({runs:e,unread:t=!1}){let[n,r]=(0,R.useState)(`all`),i=n===`failed`,a=e.filter(e=>!Nu(e)),o=a.filter(e=>e.status===`failed`).length,c=(i?a.filter(e=>e.status===`failed`):a).slice(0,ed);return(0,z.jsxs)(`section`,{"aria-labelledby":`home-runs`,className:`flex flex-col gap-4`,children:[(0,z.jsx)(Ko,{id:`home-runs`,icon:Xe,title:`Recent runs`,...a[0]?{description:`Last one started ${qr(a[0].startedAt)}`}:{},actions:(0,z.jsx)(vr,{label:`Show runs`,value:n,onChange:r,options:[{id:`all`,label:`All runs`},{id:`failed`,label:`Only failed`,...o?{n:o,tone:`text-fail`}:{}}]})}),t&&(0,z.jsx)(`p`,{role:`alert`,className:`m-0 text-body-sm text-fail`,children:`Could not read the runs. Trying again shortly.`}),t?null:c.length===0?(0,z.jsx)(ze,{className:`py-2`,children:i?`Nothing failed. Every run that ended passed.`:`No runs yet. A chat here, a job or a ForgeQE command adds one.`}):(0,z.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-2 p-0`,children:c.map(e=>(0,z.jsx)(`li`,{children:(0,z.jsxs)(`a`,{href:s(`runs`,encodeURIComponent(e.name)),className:S(m,`flex min-h-16 items-center gap-4 text-ink no-underline transition-shadow hover:text-ink hover:shadow-md focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent`),children:[(0,z.jsx)(`span`,{className:S(`grid size-10 flex-none place-items-center rounded-sm`,e.status===`failed`?`bg-fail-soft text-fail`:`bg-container text-icon`),children:(0,z.jsx)(F,{icon:e.status===`failed`?pt:e.status===`done`?gt:bt,size:18})}),(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,z.jsx)(`span`,{className:`truncate font-medium`,"data-tip":e.title,children:e.title}),(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-wrap gap-x-4 text-body-sm text-muted`,children:[(0,z.jsx)(`span`,{children:Xl[e.kind]}),(0,z.jsx)(`span`,{children:Au[e.origin.kind]??e.origin.kind}),e.error&&(0,z.jsx)(`span`,{className:`min-w-0 truncate text-fail`,children:e.error})]})]}),(0,z.jsx)(Ve,{tone:td[e.status],className:`flex-none`,children:ju(e.status)}),(0,z.jsx)(`span`,{className:`hidden w-24 flex-none text-right text-body-sm text-muted tabular-nums sm:block`,children:qr(e.startedAt)})]})},e.name))}),(0,z.jsx)(Jo,{href:s(`runs`),className:`self-start`,children:`All runs`})]})}function ud({board:e}){return e.ready?(0,z.jsxs)(`div`,{className:`flex w-full flex-col gap-12`,children:[e.error&&(0,z.jsx)(`p`,{role:`alert`,className:`m-0 text-body-sm text-fail [overflow-wrap:anywhere]`,children:e.error}),(0,z.jsx)(od,{board:e}),(0,z.jsx)(sd,{board:e}),(0,z.jsx)(cd,{board:e}),(0,z.jsx)(ld,{runs:e.runs,unread:!!e.unread.runs}),(0,z.jsxs)(`p`,{className:S(N.info,`m-0 inline-flex items-center gap-2 self-center`),children:[(0,z.jsx)(Sn,{size:14,"aria-hidden":`true`,className:`text-icon`}),`Press `,(0,z.jsx)(Nr,{children:Dr()}),` anywhere to search`]})]}):(0,z.jsx)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:`Reading what the agents are doing…`})}var dd=[`thinking`,`searching`,`reading`,`working`,`writing`,`browsing`,`handing`],fd=2600;function pd(e=Math.random){let t=[...dd];for(let n=t.length-1;n>0;n--){let r=Math.floor(e()*(n+1));[t[n],t[r]]=[t[r],t[n]]}return t}function md(e,t=Math.random){let n=e.length?[...e]:pd(t);return{move:n.pop(),left:n}}function hd(e,t=fd){let n=[];function r(){let t=md(n);n=t.left,e(t.move)}r();let i=setInterval(r,t);return()=>{clearInterval(i),e(`idle`)}}function gd(e){let[t,n]=(0,R.useState)(`idle`);return(0,R.useEffect)(()=>{if(!(e||b()))return hd(n)},[e]),e?`idle`:t}var _d=[{state:`thinking`},{state:`idle`,activity:`searching`},{state:`idle`,activity:`browsing`},{state:`idle`,activity:`reading`},{state:`idle`,activity:`writing`},{state:`idle`,activity:`working`},{state:`idle`,activity:`handing`},{state:`speaking`},{state:`waiting`},{state:`idle`,mood:`joy`},{state:`idle`,mood:`content`},{state:`idle`,mood:`surprised`},{state:`idle`,mood:`concern`},{state:`idle`,mood:`frustrated`},{state:`idle`,mood:`angry`}],vd=[`angry`,`frustrated`];function yd(e){let t=e=>Number.isFinite(e)&&e>0?Math.floor(e):0,n=t(e.failed)+t(e.jobsFailed);return n>=3?{state:`idle`,mood:`angry`}:n>0?{state:`idle`,mood:`frustrated`}:t(e.waiting)?{state:`idle`,mood:`surprised`}:t(e.running)?{state:`idle`,activity:`working`}:{state:`idle`,mood:`joy`}}function bd(e=null,t=Math.random){let n=e?.mood&&vd.includes(e.mood)?e.mood:null,r=_d.map(e=>n&&(e.mood===`joy`||e.mood===`content`)?{state:`idle`,mood:n}:e);for(let e=r.length-1;e>0;e--){let n=Math.floor(t()*(e+1));[r[e],r[n]]=[r[n],r[e]]}return r}function Z(e,t=fd){let n=[],r=null,i=0,a=null,o=(t,n)=>{let r={state:t.state};t.mood&&(r.mood={kind:t.mood,at:++i,secs:n/1e3}),t.activity&&(r.activity=t.activity),e(r),a&&clearTimeout(a),a=setTimeout(s,n)};function s(){n.length||(n=bd(r)),o(n.pop(),t)}return s(),{stop(){a&&clearTimeout(a),a=null,e({state:`idle`})},react(e){r=e,n=[],o(e,t*2)},attend(){o({state:`waiting`},t)}}}function xd(e,t,n){let[r,i]=(0,R.useState)({state:`idle`}),a=(0,R.useRef)(null);(0,R.useEffect)(()=>{if(e||b())return;let t=Z(i);return a.current=t,()=>{a.current=null,t.stop()}},[e]);let o=t?`${t.state}/${t.mood??``}/${t.activity??``}`:``;(0,R.useEffect)(()=>{t&&a.current?.react(t)},[o,e]);let s=(0,R.useRef)(!0);return(0,R.useEffect)(()=>{if(s.current)return void(s.current=!1);n&&a.current?.attend()},[n]),e?{state:`idle`}:r}var Sd={$comment:`ForgeQE's release notes, newest first: the web app's What's new and each GitHub Release. See RELEASING.md.`,releases:[{version:`3.3.5`,date:`2026-11-30`,summary:`Creating or editing a custom agent is now a six-step wizard with a live preview and a checklist before you save.`,changes:[{kind:`improved`,title:`A six-step wizard for custom agents`,detail:`Creating or editing a custom agent now walks through About it, What it uses, Permissions, Runs by itself, Inputs and output, and Review, instead of one long form. Each step is a tile showing where you are, and Next names the step it opens. A new agent can be saved as a draft from any step you have reached. An agent you edit, or one from a template, opens every step at once and can be saved from any of them.`,to:[`agents`]},{kind:`improved`,title:`See the agent as you build it`,detail:`Beside the steps, a preview card shows the agent's icon, name, id, version, description, capabilities and what it is held to so far. Capabilities are cards with a switch, a search box and area filters, each saying whether it is ready and, when on, which tools it brings. Review opens with Before you save: what the agent still needs to work and to be approved, each with a Change link to its step.`,to:[`agents`]}]},{version:`3.3.4`,date:`2026-11-29`,summary:`The API Workbench gets a new layout with tabs of open calls, teams can include ForgeQE's own agents, and a flow can send the token its login returned.`,changes:[{kind:`improved`,title:`A new API Workbench layout`,detail:`Calls and flows you open stay as tabs, keeping unsaved edits (a dot marks them, and you are asked before closing; middle-click closes a tab). The request and the answer sit side by side on a wide screen. Params and headers are a table with a blank row to add one and bulk edit. The answer shows its status in words, time and size, with its body line-numbered and highlighted. Ctrl/Cmd+Enter sends and Ctrl/Cmd+S saves. The address row holds only Send and Ask; Save, the last runs, Why does it fail? and Remove are under More.`,to:[`api-tests`]},{kind:`new`,title:`ForgeQE's own agents in a team`,detail:`A team's lead and members can now be ForgeQE's own agents, such as WebPilot, Quill, Link, Mender or Miner, in any mix with your custom agents. A built-in member keeps to its own capabilities and the team's environments and actions (read and run by default, never production unless named), with every change approved and no shell. Approving the team covers it. The team builder offers both kinds with a filter, and New team now sits beside New on the Agents pages.`,to:[`agents`]},{kind:`improved`,title:`A flow can sign in as the user it made`,detail:`An API flow that registers a user and logs in can send the token its login returned, as Authorization: Bearer {{accessToken}}. Such a flow skips the API's own sign-in. Sending that call on its own is refused with the reason, and a credential written as plain text is still refused.`,to:[`api-tests`]},{kind:`fixed`,title:`API Workbench fixes`,detail:`Switching calls no longer drops unsaved edits. Sizes over 1 MB read as MB and times over a second as seconds, and a call's description is no longer repeated when it is the same as its name.`,to:[`api-tests`]}]},{version:`3.3.3`,date:`2026-11-28`,summary:`Load testing with JMeter on a test environment, plus teams of custom agents that plan the work and hand each task to the member it fits.`,changes:[{kind:`new`,title:`Load testing with JMeter`,detail:`Run load, stress, soak and spike tests with Apache JMeter on a test environment of env.yaml. Surge writes a .jmx plan from your words, ForgeQE checks and smoke-runs it, then runs your load headless and reports response times, throughput and errors per request against your limits, with JMeter's HTML report and junit.xml. Use the Load tests tab on Performance, ask the agent, or forgeqe perf. Your own .jmx plans run too, once they pass the check. JMeter is downloaded only when you agree.`,to:[`performance`,`load`]},{kind:`new`,title:`Strategies, baselines, reports and forecasts`,detail:`Draft a performance strategy from what the tests are for; a person approves it by typing its id, then ForgeQE writes a plan for each journey. Set a baseline, compare runs for regressions, and write an executive report whose numbers come only from the run. Run a plan at several loads and Forecast estimates throughput and p95 for loads you have not run yet.`,to:[`performance`,`load`]},{kind:`new`,title:`Convert LoadRunner and import outside results`,detail:`Turn a LoadRunner VuGen Web script into a checked JMeter plan, with recorded hosts mapped to your apps and credentials kept as secrets. Import a JMeter results file or a summary table from elsewhere as a run, to compare and report on like ForgeQE's own.`,to:[`performance`,`load`]},{kind:`new`,title:`What the servers saw during a load run`,detail:`On a run, Servers reads Application Insights or Datadog for that window and matches each JMeter request to its server operation, so a slow request says whether the time was in the service or before it. The result sits beside the run and in the executive report.`,to:[`performance`,`load`]},{kind:`new`,title:`Teams of custom agents`,detail:`A team is a lead and members, each one of your custom agents, for QA work that needs several of them. The lead plans your request, hands each task to the member it fits and reports one result. A member can work as one of your business personas. Members can work side by side, ask the lead for an answer, leave notes and pick up what another found. A team never lets an agent do more than its own approved version allows: its limits only take away, and one token budget covers the whole team. Run it from its page, a chat, a schedule or forgeqe team.`,to:[`agents`]},{kind:`new`,title:`Build a team on a canvas`,detail:`Under Agents › Custom agents › New team, say what the team should do and Captain, the team builder, drafts it from your own agents, including jobs no agent of yours does yet. The team opens on a canvas: click a part to edit it, drag parts anywhere, draw a line between members for a hand-off, and Choose or Build an agent for an empty job. Preview tries it in a chat that only reads and runs, Publish approves it with its id typed, and Runs replays a run on the canvas.`,to:[`agents`]},{kind:`new`,title:`A team's own knowledge, skills, prompts and guardrails`,detail:`A team can share ForgeQE's knowledge files, skills and product knowledge with every agent, and keep its own skills, prompts, guardrails and notes that only its agents get, for every agent, the lead or the members. Manage them in the canvas's Knowledge box, or in the new Teams view of Settings › Skills, Prompts and Guardrails. Everything is fixed when the team is approved: a change after shows Knowledge changed until a person approves it again.`,to:[`agents`,`skills`]}]},{version:`3.3.2`,date:`2026-11-26`,summary:`The Requirements Agent now runs inside ForgeQE's web app as a guided review, recorded steps can be moved, and every chart uses the new look.`,changes:[{kind:`new`,title:`Review requirements in the web app`,detail:`The Requirements Agent now ships with ForgeQE and has its own page under Test design. A review is four steps: Review, where each role and each of your business personas reads it in turn; Spec report, with the quality score and its six dimensions as dials; Refine, where each gap comes with a suggested answer and a proposed change to Accept, Skip or Discuss; and Requirements report, with the BRD, the decisions kept and what is still open. Reviews use the project's knowledge, and decisions you accept are remembered for later reviews.`,to:[`requirements`]},{kind:`improved`,title:`Home says what is waiting on you`,detail:`The Waiting on you count on Home now says what it is, such as "1 run failed today", "2 approvals" or "1 question for you", and clicking it takes you to the list. When nothing needs a reply, it says "See them below" instead of asking you to answer.`},{kind:`improved`,title:`The guides wear your logo`,detail:`The Help guides show the logo and name set in Settings › Appearance in their header and footer, with your small logo as the tab's icon. On the dark look, a dark logo sits on a light plate so it stays visible.`,to:[`appearance`]},{kind:`improved`,title:`Move a recorded step up or down`,detail:`A recording's review has Move up and Move down beside Drop on the Steps tab, so you can change the order of steps before a re-run. The first step and the steps inside a block stay where they are, and each move is kept as a version you can go back from.`,to:[`record`]},{kind:`improved`,title:`Clearer buttons and icons with your brand colour`,detail:`A button in a mid-tone brand colour keeps white words, its fill darkened just enough to read. Icons are a dark slate in every brand, so the brand colour is left for buttons, links and what is selected. Icon tiles look the same on every page, and stay visible in a row you hover or pick. Fields no longer disappear on a white card. Side panels, such as Edit an environment, have the page's background with their cards spaced apart.`,to:[`appearance`]},{kind:`improved`,title:`A chat's side panel shows what it used`,detail:`The workspace panel beside a chat has a This chat section: the tokens used, each agent with how full its context is (amber when it is close to being compacted), and the skills, knowledge, document sections and systems the chat used. A skill shows the logo of its framework or language. The project's tokens are a section of their own. Sections fold open one at a time, with one icon style throughout.`,to:[`chats`]},{kind:`improved`,title:`Easier-to-read chat replies and activity log`,detail:`Replies have more room between paragraphs and list items, and code in them uses the same code block as every other page. The test result card is quieter, with its run command on one line beside Copy. The activity log shows the date and time of each line, on screen and when you copy it.`,to:[`chats`]},{kind:`fixed`,title:`Home's runs this week match the figure`,detail:`The Runs this week card drew 28 days under a one-week number and stretched the cards beside it. It now shows this week's 7 days as short columns, labelled by weekday, with today in the accent.`,to:[`runs`]},{kind:`improved`,title:`Every chart in the new look`,detail:`The charts that were left now match. Trends over time are glowing areas with failures, budgets and slow calls marked. Budgets are meters with warning and limit marks. Splits are thick bars with the shares inside, and a run's recent history is a row of dots with the latest ringed. Impact and Tosca scores are meters marked at their thresholds. This covers Home, Tokenomics, Cost, Observability, Reports, Test management and Regression, and every page of a run's report.`,to:[`appearance`,`runs`]},{kind:`improved`,title:`Breakdowns as rows of figures`,detail:`Where the tokens and money went (by agent, model, kind of run or purpose) is now a list of rows: each with its label, its main figure large, what else it carries beside it, and its share of the whole. You'll see this on Tokenomics, Cost and Observability, and in the report's Spend, Where it went, Every call, Trends and Overview.`,to:[`appearance`,`runs`]},{kind:`fixed`,title:`Small pieces no longer vanish on cards`,detail:`Icon tiles, chips, keys, checkboxes, code labels and zoom buttons were sometimes the same white as the card under them. They now always stand one shade off whatever they sit on, in light and dark mode. Settings no longer draws a card around content that already has its own.`,to:[`appearance`]}]},{version:`3.3.1`,date:`2026-11-26`,summary:`New charts in the report and the web app: each chart now suits its data, in one colour that follows the page and dark mode.`,changes:[{kind:`improved`,title:`Report charts redrawn`,detail:`A run's report has charts that suit each set of figures. Trends shows results per run as bars, run time with its figures, pass rate by feature area as a grid, requirements stacked to their total, and this run's failures by kind as a donut. Tokens per run is a glowing line with a dot for each run, zoomed in so small changes show. The run timeline is a glowing area, spend is a meter against the budget, defects by area are split bars with critical and high on the left, and reliability is a list of figures, each with its change.`,to:[`runs`]},{kind:`improved`,title:`Charts in the web app`,detail:`Home shows your runs over the last 28 days as a glowing area with today marked. Quality shows violations as dot bars with the latest run in full colour, and Test management's trend is a list of figures with their change. Charts follow the theme, so they read the same in light and dark mode.`,to:[`appearance`,`quality`,`test-management`]}]},{version:`3.3.0`,date:`2026-11-26`,summary:`The product map follows calls through an API gateway to the service behind it, and chat replies look calmer, with one code block style everywhere.`,changes:[{kind:`improved`,title:`The product map follows calls through an API gateway`,detail:`A front end that calls a gateway used to show every call as a gap. Now a call through a gateway with a route table reaches the service its best-matching route sends it to, with the route as evidence. The map also catches more: every topic of a subscription list, not only the first; a request's method when it goes through helper functions; and a client's default address when it is set at run time. A database lock such as FOR UPDATE SKIP LOCKED no longer shows up as a table. Code read before is read again the next time you build the map.`,to:[`product`]},{kind:`improved`,title:`Calmer chat replies, one code block style`,detail:`Your messages and a step's details sit on white cards, finished steps show a small tick in the normal icon colour, and only errors and warnings take a colour. A step no longer repeats its label ("Reading" next to "Reading a.ts"). Code in replies, commands to run and the Tosca pages all use one code block, with the language in its header, copy and wrap.`,to:[`chats`]},{kind:`improved`,title:`Search boxes match the cards`,detail:`Every search box, including the top bar's and the command palette's, is a white field with a soft shadow like the cards around it, and the Ctrl K key sits on light grey.`,to:[`appearance`]}]},{version:`3.2.9`,date:`2026-11-26`,summary:`Architecture opens on a zoomable map of the whole product, and the sidebar's categories and areas just fold open, with a pin on every page.`,changes:[{kind:`new`,title:`Architecture: a zoomable map of the whole product`,detail:`Architecture now opens on a Map view: each system is a block that opens into its services as you zoom in, with zoom controls, a minimap and every connection drawn. Pick a part to light its links and see its details below. The flat view is still there as Boxes. You can also move around the map with the keyboard.`,to:[`product`]},{kind:`improved`,title:`The sidebar folds open instead of opening landing pages`,detail:`Categories and areas in the sidebar now only fold open, and an area with one page shows that page directly. Every page has a pin star, so you can pin it from the sidebar. A few names that repeated their folder are shorter, and old links go to the right place.`,to:[`appearance`]},{kind:`improved`,title:`A more consistent look`,detail:`Cards, numbered steps and icons look the same on every page, and the Code map, Impact's code view and the schema diagram have a visible background. Secondary buttons, such as Refresh, Stop and Talk's toggle, sit on a soft tint of the icon colour so they stand apart from the main action.`,to:[`appearance`]}]},{version:`3.2.8`,date:`2026-11-25`,summary:`Tabs work the same on every page and are kept in links and between sessions. A job's page has tabs of its own, and Test management fits its views into four parts.`,changes:[{kind:`improved`,title:`Tabs work the same on every page`,detail:`Each screen has one row of tabs, and tabs inside a part are underlined. A tab you open is in the page's address, so a reload, Back or a shared link opens it, and recording and workflow reviews have addresses of their own. A page reopens on the tab you last used, even after forgeqe web starts again.`,to:[`appearance`]},{kind:`improved`,title:`A job's page has tabs`,detail:`A job's page now has Overview (last run, passes, how many runs in a row have failed, next run, the latest output and the command), Runs, Monitor for a monitor, and Settings, where you turn the job on or off or remove it. Ask and Run sit at the top.`,to:[`runs`]},{kind:`improved`,title:`Test management in four parts`,detail:`Its eight tabs no longer run off the page: they are four parts (Dashboard, Cases, Coverage, Suites and tags) with their views under each. With no plan connected, the page says how to connect one. Old links still work.`,to:[`test-management`]},{kind:`improved`,title:`Buttons show when they are at work`,detail:`A button doing something (Saving…, Testing…) shows a small spinner in place of its icon and cannot be pressed again until it is done.`,to:[`appearance`]}]},{version:`3.2.7`,date:`2026-11-25`,summary:`A new calm look across the app and its docs. More recorded values can change on each run, and API tests fill {{$unique}} and the other built-ins in every call they send.`,changes:[{kind:`improved`,title:`A new, calmer look across the app`,detail:`The whole app has a new design: a soft porcelain background, white cards with a light shadow instead of borders, rounded pill buttons and fields, a calm blue for the main actions, and quieter status colours. Menus and the command palette are frosted glass, and fields are white with a fine edge so they stand out on cards. The breadcrumb in the top bar is now the way back on every page. The help pages and docs site have the same look.`,to:[`appearance`]},{kind:`new`,title:`More recorded values can change on each run`,detail:`More values that were stuck at what you recorded can now be made data in the review. On the web: a typed date ("28 Nov 2026" or 28/11/2026) can be a date from today, a drop-down can pick a date from today or its first free option, and a double-click on a slot or day works like a click. On desktop and mobile, a typed value can be new on each run or a date from today. Booking slots drawn as plain page elements, or whose names change ("10:30 AM, selected"), can be made data too, and "any free one" skips slots marked booked or unavailable.`,to:[`record`,`desktop`,`mobile`]},{kind:`fixed`,title:`API tests fill {{$unique}} and the other built-ins everywhere`,detail:`{{$unique}}, {{$uuid}}, {{$now}} and {{$randomInt}} (in any case) were filled by the Workbench's Send but sent as written by a run of the set, sign-in, load tests and healing, so the API created users named user_{{$unique}}. Every call now gets fresh values, the same wherever they appear in one request. A call whose placeholder cannot be filled is not sent and is named.`,to:[`api-tests`]},{kind:`fixed`,title:`API scenarios keep the request body you gave`,detail:`A planned scenario replaced the body you wrote (for example {{$unique}} names) with the captured example's values. Your fields are now kept, also when a plan is reused, and a note says which ones were set.`,to:[`api-tests`]},{kind:`improved`,title:`API tests: each flow step shows what it sent and got back`,detail:`The Flows view shows each step's request and answer, with credentials masked, for every flow's last run (running one flow no longer hides the others' results). A call that expects an error status keeps its answer too, and a failed step opens its request and answer by itself. The page's title, tabs and actions stay at the top as you scroll, and POST has its own colour in light and dark.`,to:[`api-tests`]},{kind:`improved`,title:`Test cases and Test debt are tabs of Test management`,detail:`They were pages of their own; the sidebar now lists Test management once, and old links open the right tab. On the Agents page, the Advisers, Builders and Operators pages are gone; use the kind filter instead.`,to:[`test-management`,`agents`]},{kind:`fixed`,title:`The sign-in browser stays open until you have signed in`,detail:`Pressing Continue before finishing sign-in (with an account picker still open) closed the window with nothing saved, and the agent opened it again and again. The window now stays open and asks again; Cancel still closes it. A sign-in page outside the login's sites is refused before a browser opens.`,to:[`settings`]},{kind:`new`,title:`The API agent can change an existing call`,detail:`Ask the API page's agent to change a call that is already there (its query, headers, body, name, folder, sign-in, method, path or expected answer) and it edits it in place, with the same checks as the Workbench, instead of refusing it as a duplicate. Credentials still go through a sign-in, never a header.`,to:[`api-tests`]},{kind:`fixed`,title:`A mobile recording replays on the device it was recorded on`,detail:`A replay ignored the device picked on the Record page and used the settings' device instead, so on a TestMu AI plan that covers real devices only the first step was refused although the recording had worked. The recording now keeps its device and the replay uses it unless you name another. When TestMu's plan refuses a session, ForgeQE says it is the plan, not the app, and whether to switch between real and virtual devices or change the plan.`,to:[`mobile`]},{kind:`improved`,title:`Record and replay Dynamics 365 reliably`,detail:`Recording on Dynamics 365 kept ids D365 makes up from position, so a replay with other results or in another session found nothing. The recorder now uses D365's own control attributes (app tiles by their title, controls by their data id), and a replay waits for D365 to be ready after each step, since its controls appear before they work.`,to:[`record`]},{kind:`new`,title:`Get past Chrome's device-certificate box`,detail:`Signing in from a computer joined to Entra ID makes Chrome ask for the device certificate in a box no recording can see, so a replay hung on it. The recording now keeps it as a step, and forgeqe doctor certificate writes the Chrome policy that picks the certificate by itself (for Chrome, Chromium and Edge on macOS, Linux and Windows) for an administrator to install. ForgeQE never installs it.`,to:[`record`,`setup`]},{kind:`improved`,title:`Tables sort by any column and let you hide columns`,detail:`Every data table now sorts when you click a column's heading and has a Columns menu, and a table that fills its page shows the rows that fit, a page at a time, instead of scrolling inside. All chats, Reports, Runs and Jobs are such tables: pick rows to act on several at once, and Jobs shows each job's status and sorts the next run soonest first.`,to:[`appearance`,`chats`]},{kind:`improved`,title:`Chat replies are easier to read`,detail:`Code in a reply no longer sits in a box that matched the page, and a file path with line numbers (src/a.ts:7-11) opens the file. The sidebar's areas no longer open pages that only listed what the sidebar already shows; old links go to their category's page.`,to:[`chats`,`appearance`]},{kind:`improved`,title:`Product understanding has one entry per part in the sidebar`,detail:`Product, Product agent, Architecture, Code map, Runtime, Open questions and Business view are each an entry under Product understanding, named as the page is, instead of tabs hidden a level down. Knowledge search is now Search, the first area of Knowledge. Old links still work.`,to:[`product`]}]},{version:`3.2.6`,date:`2026-11-25`,summary:`Agents is one page to browse like a marketplace, with search on every page. A recorded click on a slot or day can be test data or a date from today, and Anthropic, Gemini and Bedrock join the providers.`,changes:[{kind:`improved`,title:`Agents is one page you can browse like a marketplace`,detail:`The two agent pages are now one. Pinned and most-run agents come first, with their runs and pass rate. You can filter by kind, what an agent works with and status, sort, switch between grid and list, and run or set up an agent from its card. Run counts come from your own runs. Each agent's page has the new look too, with Waiting on you, Working now and Recent chats as cards.`,to:[`agents`]},{kind:`improved`,title:`One search bar at the top of every page`,detail:`Search moved out of the sidebar into a bar across the top of every page, beside where you are (for example Agents / WebPilot). Ctrl K still opens it. On a phone it is an icon.`,to:[`appearance`]},{kind:`improved`,title:`Every page shares the new look`,detail:`Every page now has the same background as Home and Settings, with white cards on it and no white bands across the page. The Data page has the new look as well, with its tabs on their own row and each screen on a card.`,to:[`appearance`,`data`]},{kind:`new`,title:`Record: a click can be test data, a date from today, or any free one`,detail:`A click on an appointment slot or a calendar day failed on a re-run once the slot was booked or the day had passed. The review's Test data tab now lists such clicks, and each can be kept as test data (a data file's rows give another one), a date counted from today in the format the page showed, or any free one (the first enabled one where you clicked). A date that is not on screen moves the calendar to its month. You can name each value, and later checks follow what the run clicked.`,to:[`record`]},{kind:`new`,title:`Desktop and mobile workflows: a click can be data too`,detail:`The same three choices are in the desktop and mobile review: test data, a date from today, or any free control of its kind in the same place. Going back to the click as recorded restores it. Maestro runs whole flows, so it cannot pick any free one; use Appium for that.`,to:[`desktop`,`mobile`]},{kind:`new`,title:`Anthropic, Google Gemini and AWS Bedrock as model providers`,detail:`Settings › Models adds each as a provider with its logo, preset and key variable. ForgeQE calls each at the vendor's own address, never one a profile names, so a key is only ever sent to that vendor. They work for chat and for the browser, desktop and mobile agents.`,to:[`models`,`settings`]},{kind:`new`,title:`Every model your Copilot seat has, in the model list`,detail:`Signing in to GitHub Copilot now adds a profile for each model your seat can use, so Settings › Models and the model pickers list them all. Sync models on the Copilot card adds any new ones later. Profiles you already have are never changed, and a model that cannot read screenshots is paired with one that can for browser, desktop and mobile runs.`,to:[`models`,`settings`]},{kind:`improved`,title:`GitHub Copilot answers sooner`,detail:`Copilot's answer now comes back without waiting for its session to close, and the engine check before a run no longer holds up the app (a passed check is remembered for a day). Copilot is reached over WebSockets, and when they do not work on your network ForgeQE switches to HTTPS by itself and keeps it for a week. FORGEQE_COPILOT_WEBSOCKETS set to 1 or 0 fixes one or the other.`,to:[`models`]}]},{version:`3.2.5`,date:`2026-11-25`,summary:`Settings has a new look, and each agent's own settings move to its page. Named sign-ins on the API page now save and remove as they should.`,changes:[{kind:`improved`,title:`Each agent's settings are on its own page`,detail:`Settings keeps what every agent shares. Browser, Mobile, Desktop, Code, Databases, Quality and Monitor settings now open from a settings button at the top right of their agent's page, in a side panel that also shows the model, prompts, skills and guardrails of that page's agents. Search settings still finds them and opens the right panel, and old Settings links go there too.`,to:[`settings`]},{kind:`improved`,title:`Settings has the Home look`,detail:`Settings now sits on the page like Home, with every group of settings on a card of its own (Environments, Sign-ins, Databases, Prompts, Skills, Guardrails and Settings as text included) and the same icon colour throughout. Settings' menu and the app's sidebar mark the page you are on the same way.`,to:[`settings`]},{kind:`fixed`,title:`API tests: adding and removing a named sign-in works`,detail:`Add and Remove in the Sign in panel failed for a named sign-in. They now save and remove it, and the API page's agent asks you before it removes one.`,to:[`api-tests`]},{kind:`fixed`,title:`API tests: the request preview shows the call's own sign-in`,detail:`The preview now shows the sign-in a call picks, as Send uses it, says so when that sign-in is missing, and hides every secret it fills in, however short. It updates when you change sign-ins.`,to:[`api-tests`]},{kind:`fixed`,title:`API tests: healing keeps each call's sign-in`,detail:`Healing replays each call with its own sign-in and keeps it on the healed call. A call whose sign-in cannot log in is noted, never replayed with another login.`,to:[`api-tests`]},{kind:`fixed`,title:`API tests: a password cannot slip into a sign-in as text`,detail:`A sign-in's login body written as text is read as its fields, so a password inside it (also in a list or a nested field, and under names like pw, pin or otp) is refused as a typed value, as it is anywhere else. Use a secret or variable name instead.`,to:[`api-tests`]}]},{version:`3.2.4`,date:`2026-11-24`,summary:`API tests can use different logins for different calls, and browser runs on a GitHub Copilot model keep going when a network blocks requests that carry screenshots.`,changes:[{kind:`fixed`,title:`Copilot browser runs keep going when screenshots cannot be sent`,detail:`On some networks, a browser step's request to GitHub Copilot failed with "error sending request" whenever it carried a screenshot, while text-only requests went through, and ForgeQE then wrongly switched between models as if each had failed. Now such a failure is treated as the network's: no model is marked failing, and ForgeQE sends smaller screenshots, then none (the agent works from the page's text), for an hour before trying full screenshots again. The error says it is the network or proxy for Copilot's address.`,to:[`settings`]},{kind:`new`,title:`API tests: named sign-ins, so calls can use different logins`,detail:`An API can now keep several named sign-ins besides its own (for example admin and customer, both from the same login call with different credentials), and each call picks which one it uses, on its Headers tab. Add and remove them in the Sign in panel, or ask the API page's agent. Credentials in a sign-in's login are only secret or variable names, never typed values. A call naming a sign-in the API lacks is not sent, rather than falling back to another login.`,to:[`api-tests`]}]},{version:`3.2.3`,date:`2026-11-24`,summary:`Record keeps typing in masked fields and a Tab that changes the page, the API page's agent can set an API's sign-in from its login call, and a chat at work shows how long it has run.`,changes:[{kind:`fixed`,title:`Record keeps typing in masked fields`,detail:`Phone, card and date fields that write the value themselves as you type lost the typing: only the click on the field was recorded. The typing is now kept, read when you move on as in any field, and a password such a field writes is still kept only as its saved login's variable.`,to:[`record`]},{kind:`fixed`,title:`Record keeps a Tab that changes the page`,detail:`A Tab that accepted a suggestion or left a field that is checked as you leave it (a message shows, the field is marked invalid) was not recorded, so a check of that message failed on replay. Such a Tab is now a step, and its replay waits for suggestions as the arrow keys do. A Tab that changes nothing is still not a step.`,to:[`record`]},{kind:`new`,title:`The API agent sets an API's sign-in from its login call`,detail:`Ask the API page's agent to send a call with the token your login call answers, and it sets the API's sign-in to that login call and the token's field, after asking you. It no longer adds a token as a header by hand, and it can take the sign-in off again.`,to:[`api-tests`]},{kind:`improved`,title:`A chat at work shows how long it has run`,detail:`While ForgeQE works on a reply, the chat shows the total time it has been working and the time now, ticking each second, so a long run reads as a total rather than only the time since its last step. Point at it to see when it started.`,to:[`chats`]}]},{version:`3.2.2`,date:`2026-11-24`,summary:`GitHub Copilot models work again after an update to Copilot's software, Copilot sign-in no longer asks you to pick one model, and Help always opens the current docs.`,changes:[{kind:`fixed`,title:`GitHub Copilot models work again`,detail:`Every request to a GitHub Copilot model failed with "argument of type 'CapiSessionOptions' is not iterable" after Copilot's own software changed. Requests reach Copilot again, and a new check against Copilot's real software catches this kind of change before a release.`,to:[`settings`]},{kind:`improved`,title:`Copilot sign-in no longer asks you to pick a model`,detail:`After you sign in to GitHub, ForgeQE lets Copilot pick the model for each request (auto) when your seat allows it, else the best model your seat has, so you are never held to a model that stops working on your seat. To keep one model, choose it under Settings › Models. Settings › Models now describes auto as Copilot picking the model per request.`,to:[`settings`]},{kind:`fixed`,title:`Help always opens the current docs`,detail:`When forgeqe web was started from a copy of ForgeQE's source code, Help could open the old single-page guide instead of the current docs pages. It now builds the docs pages when they are missing and opens them.`,to:[`about`]}]},{version:`3.2.1`,date:`2026-11-24`,summary:`A Mobile apps page with the device shown live, accessibility checks on phones, tablets and native app screens, Workbench sign-in from a login call, and Record that asks where to record a mobile app.`,changes:[{kind:`new`,title:`Mobile apps: an agent page with the device shown live`,detail:`Mobile apps (Automation) works like Desktop apps for Android and iOS: an Agent tab, Workflows that replay on Appium or Maestro, your team's Maestro flows from .maestro/, Runs with heals to accept, and Devices and apps (Appium and Maestro readiness, devices, apps, uploading a build to TestMu AI). While a run works you watch the device's screen and step live, and a chat that runs a mobile tool shows the device beside it. Typed values show only as a secret's name or a length.`,to:[`mobile`]},{kind:`new`,title:`Accessibility personas on phones and tablets`,detail:`Pick a device for an accessibility session (the on picker, or forgeqe a11y --device): every persona then runs with that phone's or tablet's size, pixel ratio, touch and user agent. Screen-reader personas on touch swipe through the reading order and double-tap, and a larger-text setting scales the page. New built-in personas: mobile screen reader (iPhone 15), large text (Pixel 8, 200%) and touch tremor (Galaxy S23).`,to:[`accessibility`]},{kind:`new`,title:`Accessibility checks of native app screens`,detail:`Each new screen a mobile replay or explore reaches on Appium is checked for controls and images without names, fields without labels, small touch targets and duplicate names, and on iOS 17+ with Apple's own audit. Results are written like a browser run's. Turn it off with mobile.accessibility in Settings › Mobile.`,to:[`mobile`,`accessibility`]},{kind:`new`,title:`Sign in to an API with the token a login call answers`,detail:`An API's Sign in can be From a call's answer: name the login call, the field of its answer holding the token (such as data.accessToken) and the header it goes in. Workbench Send, contract runs, flows and heals send the login call first. The token is kept in memory for that send or run only, never saved, and masked in what comes back; a failed sign-in says why and stops the call.`,to:[`api-tests`]},{kind:`new`,title:`Record asks where to record a mobile app`,detail:`Pick where to record (an emulator or simulator here, a phone plugged in, TestMu AI or BrowserStack), then the app, then a device from that place's own list in a side panel with search. An app build the place cannot install is refused before anything starts, saying what to do.`,to:[`record`]},{kind:`improved`,title:`Turn query parameters on and off one at a time`,detail:`Each query parameter under Params has a checkbox: only ticked ones are sent and shown in the address, and unticked ones stay with the call, so you can try combinations without copying the call. A query typed or pasted into the path becomes rows under Params.`,to:[`api-tests`]},{kind:`improved`,title:`Rename a Workbench folder`,detail:`Folder rows have Rename, and asking the agent to rename a folder moves its calls instead of making a second folder. Folders spelled with other case or spacing count as the same folder.`,to:[`api-tests`]},{kind:`improved`,title:`A clearer New recording form`,detail:`Each field has its name above it in a narrower form, Record sits at its end with what it does beside it, and How it works is a side panel. A recording that did not start says what to do for known troubles (a build the cloud cannot install, a refused sign-in, an Appium that did not answer), with the recorder's own words folded underneath.`,to:[`record`]},{kind:`improved`,title:`Test management lists filter with one dropdown`,detail:`Test cases, Automated, Gaps and Tags pick their view from one dropdown with its counts, beside the list's other dropdowns, instead of a row of chips that wrapped or scrolled on a narrow page. The chosen view's note (such as where Gaps reads stories from) is written beside it, and a view that needs a look, such as Failing or Out of step, shows in red.`,to:[`test-management`]},{kind:`improved`,title:`Test management's header looks the same with the agent open`,detail:`Sync, Schedule and Agent are icon buttons at the header's right, named in their tips, so the row no longer changes when the agent panel opens. On a narrower page the tabs move under the title.`,to:[`test-management`]},{kind:`fixed`,title:`Accessibility runs on the cloud browser you ask for`,detail:`forgeqe a11y --browser-provider and a session's chosen provider were not passed on: every persona ran in this computer's browser while the plan said TestMu AI or BrowserStack. Persona runs now use it, and the plan and reports say where the browsers ran. A run that ended before the persona gave its verdict is reported as not tested, not as a persona who could not reach the goal.`,to:[`accessibility`]},{kind:`fixed`,title:`Copilot signs in on networks that block GitHub's downloads`,detail:`When the pinned Copilot version cannot be downloaded (a company network that resets GitHub's release downloads), ForgeQE uses the newest version already on this computer and says which one runs. A dropped download is tried again, and a failure names the hosts to allow.`},{kind:`fixed`,title:`Azure DevOps bugs keep their formatting`,detail:`A bug the agent writes in Markdown (Steps to reproduce, Expected result and so on) is now saved as formatted text in Description and Repro Steps on the first create, instead of one run-on paragraph.`},{kind:`fixed`,title:`Every page has its way back`,detail:`Flaky tests, API tests and the Skills, Prompts and Guardrails pages now show the link back above their title, as Run diff and the other pages do.`,to:[`api-tests`]}]},{version:`3.2.0`,date:`2026-11-24`,summary:`IBM Equal Access as an accessibility rule engine, picked with the standard for each session; a conversion's errors in one line and an Errors tab; conversions that no longer undo each other; and one look for tabs, sections and the sidebar.`,changes:[{kind:`new`,title:`Check accessibility with IBM Equal Access`,detail:`Besides axe-core, accessibility runs can use IBM's Equal Access rules: set Rule engine in Settings, or quality.accessibility.engine: ibm. The standard you pick sets its rules (WCAG 2.0, 2.1 or 2.2 at A or AA, Section 508, EN 301 549, or best practice). IBM has no AAA rules, so AAA is checked at AA and the run says so. Reports name the engine that checked the pages.`,to:[`accessibility`,`settings`]},{kind:`new`,title:`Choose the rule engine and standard for each accessibility session`,detail:`The Accessibility agent's tab has Checked with pickers under the persona chips, remembered on this computer; each session card and its results say what it was checked with. In a terminal: forgeqe a11y --engine, --standard and --best-practice.`,to:[`accessibility`]},{kind:`improved`,title:`A conversion's errors in one line, all of them on an Errors tab`,detail:`A Tosca conversion's Overview shows the latest error in one line, with See all errors. The new Errors tab lists each failed test, latest first: what went wrong, the error as the test printed it, the agent's note, and Fix with the agent, Steps beside the code and Full output.`,to:[`migration`]},{kind:`fixed`,title:`Two conversions in one repository no longer undo each other`,detail:`A conversion puts back anything changed outside its target folder, so two running at once in the same repository reverted and even deleted each other's new files. Now only one Tosca conversion or migration works in a repository at a time: starting another says which one is running.`},{kind:`fixed`,title:`Fix asked twice no longer stops the first fix`,detail:`Pressing Fix with the agent on a second test while a fix was starting stopped the first one halfway, with no reason recorded. The second is now refused until the first ends, for conversions and migrations alike.`,to:[`migration`]},{kind:`fixed`,title:`Accessibility personas run cleaner`,detail:`A persona's zoomed, filtered or forced-colour screenshots no longer become visual regression baselines; a persona stops when it is done instead of recording the same barrier until its step limit; a run whose model never answered is reported as not tested; and a start page holding a user name or password is refused rather than written into every report.`,to:[`accessibility`]},{kind:`improved`,title:`One look for tabs and section headings`,detail:`Every page's tabs carry an icon at one size, and a tab's status is a tick or a cross in its count. Each part of a page has the same heading, with its accent icon, count and actions, and a hairline before it, so parts no longer run together. The highlight slides to the tab or choice you pick.`},{kind:`improved`,title:`A steadier sidebar`,detail:`Pinned is always at the top (with a hint while empty) and the Recently used groups are gone. The page you are on is highlighted the same way wherever it appears, and stays readable on a dark or coloured sidebar.`},{kind:`fixed`,title:`An agent's setup notices no longer cover its question on a phone`,detail:`On a narrow screen the Setup and Ready notices made the message box taller than the screen, so it slid over the agent's question. They now sit just above the message box.`}]},{version:`3.1.9`,date:`2026-11-24`,summary:`Blocks for desktop and mobile apps, an Observability dashboard and opt-in OpenTelemetry export, a redesigned Migration wizard with Tosca inside it, a page for each automated test, and Copilot that steps off a failing model by itself.`,changes:[{kind:`new`,title:`See ForgeQE's own work on the Observability page`,detail:`AI Assurance › Governance › Observability shows ForgeQE's sessions on this computer over the last 7, 30 or 90 days: sessions a day and those with an error, browser runs by how they ended, turn times, tool calls and errors, model calls with their speed and cost, and the latest problems. It reads only ForgeQE's own counts, never what the agents read or wrote, and the agent can answer from it too.`,to:[`observability`]},{kind:`new`,title:`Send ForgeQE's spans and metrics to your OpenTelemetry collector`,detail:`Settings › Observability (or forgeqe telemetry) sends sessions, runs, model calls, tool calls, cost and problems to a collector you name. It is off until you turn it on and type the collector's host, and it never sends a prompt, reply, page text, address or secret. Choose JSON or protobuf, add problems as log records, and preview a sample before anything is sent.`,to:[`settings`]},{kind:`improved`,title:`A sidebar you can see the whole app in`,detail:`The sidebar is now one branching tree: categories and areas fold open in place, the page you are on stands out, and each category still lists the pages you pinned. All chats is pinned by default.`,to:[`appearance`]},{kind:`improved`,title:`Agent pages show what waits on you`,detail:`Each agent's page opens on one board: what needs your answer, what is working now and its recent chats. The chat list sums up each chat's last turn, with its state, times and last steps.`,to:[`agents`,`chats`]},{kind:`improved`,title:`Migration and conversion reports, redesigned`,detail:`New migration walks three steps on a timeline that keeps each answer, with logos for every framework and tests folders picked from a tree, several at once. A Tosca conversion's report has four tabs: Summary, Test cases (failed first), Coverage and Traceability. Its comparison puts the Tosca steps beside the converted test, and the downloads sit in one Export menu.`,to:[`migration`,`tosca`]},{kind:`fixed`,title:`API tests that leave your data as they found it`,detail:`Contract runs now update and delete a record they create themselves, then remove it, instead of changing the example's shared one. An operation's own Basic sign-in or API key can be used alongside a default token. Open operations are no longer reported as broken authentication, and the mock starts with records its contracts accept (--seed). Error messages name the setting or address to fix.`,to:[`api-tests`]},{kind:`improved`,title:`Errors and warnings stand out in logs`,detail:`Error lines show in red and warnings in amber in the activity log, command output, session logs and every job's live output.`,to:[`chats`,`settings`]},{kind:`new`,title:`Blocks for desktop and mobile apps`,detail:`Save steps from a desktop or mobile workflow's review as a block, then put it into another workflow of the same app, or play it while recording by hand. Its test data and secrets become inputs you fill in each time. A recording can start from several blocks played in a row, and a workflow holding an older version of a block can be updated in one click with its values kept. The same is available from a terminal with forgeqe blocks list, save, insert and delete.`,to:[`record`]},{kind:`improved`,title:`Safer, fuller blocks and checks in web recordings`,detail:`A block now has inputs, sections, a description and versions, can be put in after any step, and several can open a recording. A value you make a secret leaves every kept version of the workflow, and Go back never restores it. Count and attribute checks keep their comparison, and patterns that could hang a run are refused.`,to:[`record`]},{kind:`improved`,title:`Earlier versions of a desktop or mobile workflow`,detail:`A workflow's earlier versions are listed in its review, previewed and can be gone back to. Steps that already do what a saved block does can be marked as that block.`,to:[`record`]},{kind:`new`,title:`Each automated test has its own page`,detail:`In Test management, a test opens a page with where it lives, how it was found, its last runs, tags, linked cases (link and unlink there) and its code. The page also fits a phone, with one header and one way to filter each list, like the rest of the app.`,to:[`test-management`]},{kind:`fixed`,title:`Test management keeps ids, links and suites straight`,detail:`A renamed or copied test keeps its own id instead of taking a neighbour's. Robot Framework 7 tags, Gherkin Rules, pytest-bdd 8 names and multi-target dotnet lists are read correctly, and run commands select exactly the linked tests. Suites written to a tracker are never duplicated on a retry, and Xray Cloud test sets are read past their first 100.`,to:[`test-management`]},{kind:`improved`,title:`Tosca migrates from the same wizard as everything else`,detail:`New migration no longer has a separate Tosca tab: any source with .tsu files (git, folder, upload, paste or this project) offers its exports and test cases in the Source step. Conversions and their reports now live under Migration, with old Tosca links redirected. The screens were redesigned: Review leads with what needs a decision, and a conversion shows what needs your attention first.`,to:[`migration`]},{kind:`improved`,title:`Copilot steps off a failing model by itself`,detail:`A Copilot model that times out or errors is avoided for an hour and its requests go to a stand-in that costs no more. You'll see "GitHub Copilot switched models" when that happens. Auto is listed first and recommended at sign-in. Requests now go over plain HTTPS, which company proxies break less often; FORGEQE_COPILOT_WEBSOCKETS=1 turns WebSockets back on.`,to:[`settings`,`models`]},{kind:`fixed`,title:`Browser runs show Copilot's real error and stop sooner`,detail:`Two model calls in a row that fail at the model's end now stop a browser run with the reason, instead of six four-minute steps. Copilot's own error is shown instead of a generic timeout.`,to:[`browser`]},{kind:`improved`,title:`Copilot SDK updated, and an outdated one is named`,detail:`The GitHub Copilot SDK moves to 1.0.35 (runtime 1.0.112). If Copilot refuses the version ForgeQE uses, ForgeQE tells you to run forgeqe update instead of treating the model as failing, and forgeqe doctor shows both versions.`,to:[`settings`,`models`]},{kind:`improved`,title:`Easier to use with a keyboard`,detail:`Tabs that change the page's address are links, a table that scrolls can be reached and scrolled with the keyboard, and a disabled button that says why can still be focused to read its reason. Every page's way back is now the same link.`,to:[`accessibility`]}]},{version:`3.1.8`,date:`2026-11-23`,summary:`Browser runs group their tabs and glow by mode, Workbench Send and Accept keep only what they should, hardcoded test values get caught, and a model that never answers stops the turn.`,changes:[{kind:`improved`,title:`A run's tabs are grouped under its name`,detail:`When the browser agent runs in a visible Chrome, its tabs sit in a tab group named after the run, so you can tell several runs apart at a glance. It needs Chrome 137 or newer started by ForgeQE's own browser; the small helper it adds asks only to manage tab groups and cannot read any page.`,to:[`browser`]},{kind:`improved`,title:`The page's glow shows the agent's mode`,detail:`The frame around the page the agent is working on is now a solid rim with a stronger glow, in the step bar's colour: cyan while thinking, green while acting, violet when replaying from memory, amber when it's your turn.`,to:[`browser`]},{kind:`fixed`,title:`Workbench Send keeps no issued tokens, and history counts each call once`,detail:`A kept Send now takes access tokens and JWTs the API returned out of the saved body and checks, even in a shortened snippet. Other calls' results carry over from the last run that had them, so a heal or a run of only some calls no longer blanks them, and history counts each call's own runs once.`,to:[`api-tests`]},{kind:`fixed`,title:`Accept drafts the expected answer; Save keeps it`,detail:`Accept now only fills What it must answer. Nothing is kept until you press Save, which works out the schema and fields again.`,to:[`api-tests`]},{kind:`fixed`,title:`Hardcoded test-data values are caught after a test passes`,detail:`Once a written test passes, ForgeQE checks the files it changed for this run's test-data values typed straight into fill, type or select calls, and sends each back for the tidy-up round to move into the project's test data.`,to:[`record`,`chats`]},{kind:`fixed`,title:`A turn stops when the model doesn't answer`,detail:`If the model never replies (a timed-out response, or Copilot's "Failed to get response from the AI model"), the turn now ends with a clear reason instead of sitting through more five-minute retries. Rate limits and brief server errors are still retried.`,to:[`chats`,`models`]},{kind:`fixed`,title:`Slow Copilot steps in the browser agent can finish`,detail:`A browser step now waits as long as ForgeQE allows a model call (240 seconds for Copilot), so it is no longer cut off at 180 seconds. BROWSER_USE_STEP_TIMEOUT still overrides it.`,to:[`browser`]}]},{version:`3.1.7`,date:`2026-11-23`,summary:`Tests written from a recording or a browser run put form values in the project's real test data (Examples, parametrize, DataRow), not hardcoded in the script.`,changes:[{kind:`fixed`,title:`Generated tests no longer hardcode recorded form values`,detail:`When Quill writes a test from a recording or a browser run, each typed or chosen value is named as test data and must go into the repository's own mechanism — Scenario Outline Examples, pytest parametrize, MSTest/NUnit/xUnit data rows, or Playwright test.each — then into page objects. Secrets and one-time codes stay on environment variables.`,to:[`record`,`chats`]},{kind:`improved`,title:`Quill follows how the project already drives test data`,detail:`Before writing, ForgeQE notes whether the repository uses Gherkin Examples, parametrize, DataRow, or data files, and steers the new test to put handoff values there instead of a const only in the same file.`,to:[`record`,`chats`]}]},{version:`3.1.6`,date:`2026-11-23`,summary:`API Workbench Send keeps each run in history and updates call status, and Accept fills What it must answer so you can Save the expected response.`,changes:[{kind:`fixed`,title:`Workbench Send keeps history and call status`,detail:`Sending a call from the API Workbench now writes an execution record (timestamp, status, checks) under the API's runs, updates the call icon and the API's aggregate status, and keeps that result after you refresh. Secrets stay masked. Running the full contract suite is unchanged.`,to:[`api-tests`]},{kind:`fixed`,title:`Accept fills What it must answer and enables Save`,detail:`Accept on a successful Workbench response now copies status, content type, shape and fields into What it must answer, opens that tab, and enables Save so you can keep the expected contract. Reloading after Save shows the same expectation.`,to:[`api-tests`]}]},{version:`3.0.2`,date:`2026-11-15`,summary:`Talk tells what's said to it from the room's own talk, can listen to your voice only, and changes settings as you say them. Plus a livelier orb and a smoother "+" menu.`,changes:[{kind:`improved`,title:`Talk knows when you're talking to it`,detail:`After the wake word, Talk acts only on what's said to it: an order or a request. A phone call, a greeting to a colleague or a story told across the room is dropped, nothing shown or kept. A sentence cut off midway waits for the rest instead of being acted on in half. Send when I pause now needs the wake word, and turns it on.`,to:[`voice`]},{kind:`new`,title:`Only my voice`,detail:`Turn on Only my voice in Settings › Voice and Talk acts only on the voice that said the wake word. Another voice in the room goes into the message box instead, for you to look at. Nothing about your voice is saved to a file.`,to:[`voice`,`settings`]},{kind:`improved`,title:`Settings change as you say them`,detail:`The browser window, desktop replays, mobile emulators, the model and the test environment now change at once, like light or dark, with no question first. Settings opens the section, marks the row and says “Changed by voice”, so a misheard change is easy to spot and put back. Production and models outside your profiles are still never picked. Starting work (tests again, a pack, a recording, writing a test) still waits for your yes.`,to:[`voice`,`settings`]},{kind:`fixed`,title:`Talk answers aloud on Home and in a chat`,detail:`Where there's a message box, Talk's own answers, questions and refusals are now spoken, not only written. “The browser settings” opens Settings › Browser, not WebPilot, and names run together (“FlakyTests”) still find their page.`,to:[`voice`]},{kind:`improved`,title:`Talk starts from the message box`,detail:`The Talk buttons in the sidebar are gone: start Talk from the message box, whose button shows whether speech is set up and lights while it listens. New chat has a plain pen icon instead of Atlas's.`,to:[`voice`,`appearance`]},{kind:`improved`,title:`The orb plays while you wait`,detail:`On Home and in the agent builder, the orb above the greeting acts out the kinds of work ForgeQE does in a gentle loop, and shows the waiting orb while a chat or the builder starts. With reduced motion it stays still.`,to:[`appearance`,`agents`]},{kind:`improved`,title:`A smoother "+" menu`,detail:`Moving between the "+" menu's levels (Environment, Tools, Back) now slides the pane and resizes the box smoothly instead of jumping.`,to:[`chats`]}]},{version:`3.0.1`,date:`2026-11-15`,summary:`Talk does several things in one request, changes a few settings, starts work after a yes and answers ForgeQE's questions. Plus emulators without a window, and a coding agent that follows your instructions.`,changes:[{kind:`new`,title:`Several things in one request`,detail:`Ask Talk for more than one thing at once (“switch to dark mode, open the runs page and ask ForgeQE why the last run failed”) and it does them in order. Ask “what's on this page?” or “why did this run fail?” for a sentence or two about what you're looking at, “how many runs failed this week?” for the counts, and “show only the failed runs” to filter Runs.`,to:[`voice`]},{kind:`new`,title:`Start work and change settings by voice, after a yes`,detail:`Talk can run a run's failed tests again, run a regression pack (here or on TestMu), record an app your settings list, or write a test from the open recording, each only after you say yes. It changes light or dark and its own language, voice and wake word at once, and after a yes the browser window, desktop replays headed or headless, mobile emulators shown or hidden, the model in use and the test environment, saved and audited as Settings saves them. Never a production model or environment; other settings stay in Settings.`,to:[`voice`,`settings`]},{kind:`new`,title:`Answer ForgeQE's questions by voice`,detail:`Turn on Answer questions by voice in Settings › Voice and Talk reads ForgeQE's question and its options aloud. Say one, then yes to send it; a yes on its own never picks an option. A question about production, and a pause that waits for you, still need a click. It's off until you turn it on, and only a click turns it on.`,to:[`voice`,`chats`]},{kind:`new`,title:`Emulators without a window`,detail:`A device in Settings › Mobile can name an Android emulator (Emulator to start) for Appium to start for the run, and Emulators without a window starts emulators and iOS simulators with no window. Real devices and cloud devices are never affected.`,to:[`settings`]},{kind:`improved`,title:`Talk is the mascot in the corner`,detail:`On a page with no message box, Talk is the mascot of the agent you're talking to, in the bottom-right corner, listening, thinking or speaking. Where there is a box, the box is the conversation and nothing floats over it.`,to:[`voice`,`appearance`]},{kind:`improved`,title:`Talk speaks without pauses`,detail:`Talk starts speaking sooner and no longer pauses between sentences. It now says one short piece while it prepares the next. App names are heard the way you say them (“key pass” finds KeePass), and Talk no longer asks you twice before starting something.`,to:[`voice`]},{kind:`improved`,title:`The coding agent follows your instructions`,detail:`What you ask for when a test is written (“tag it @regression”, “follow CONTRIBUTING.md”) now reaches the coding agent, and it reads the repository's own contributing rules. A test the reviewer rejected is no longer kept as passed, and ForgeQE's agent leaves the coding agent's test to the coding agent and its reviewer instead of rewriting it.`,to:[`code`]},{kind:`fixed`,title:`API runs, run logs and token counts`,detail:`“Run GET /categories only” now runs just that call. A no to calls that change data is taken as your answer instead of being asked again. Two chats started in the same second no longer share one log, Atlas is listed on every run it worked on, and browser agent tokens and the coding agent's work in forgeqe run --direct, record and code are counted on the Runs and Cost pages.`,to:[`api-tests`,`chats`]}]},{version:`3.0.0`,date:`2026-11-15`,summary:`Robot Framework as a migration target, your own migration targets without waiting for a release, and Talk gets a wake word, Hindi and a tidier chat box.`,changes:[{kind:`new`,title:`Migrate to Robot Framework`,detail:`Robot Framework with the Browser library is now a migration target, and a framework the coding agent writes: a case whose Framework line says Robot Framework gets a .robot suite with shared keywords in resources/, and its runs keep videos, screenshots and Robot's own log as evidence. ForgeQE also installs what a Python test project needs, with uv, Poetry, Pipenv or pip, from the project's own requirements file.`,to:[`migration`]},{kind:`new`,title:`Add your own migration targets`,detail:`A framework ForgeQE was never taught can be a target: describe it in .forgeqe/migrate-targets/<id>.yaml (its language, the command that runs one test, what counts as evidence) and approve it at a terminal with forgeqe migrate target approve. Migrations and Tosca conversions can both use it; forgeqe migrate targets and forgeqe tosca targets list them with their approval state.`,to:[`migration`]},{kind:`improved`,title:`A migrated test must prove it checks something`,detail:`Before a migrated test is kept, ForgeQE runs a copy of it with the values its source expected made wrong. That run has to fail: a test that passes either way is not migrated, whatever its framework. The migration report shows this as Checks proved.`,to:[`migration`]},{kind:`new`,title:`Talk: a wake word, and Hindi`,detail:`Switch on the wake word and Talk acts only on what starts with “Hey ForgeQE” (or your app's name), then listens for follow-ups until 20 seconds of quiet. Talk also listens and answers in Hindi. It keeps hearing you while ForgeQE works, so “stop” stops it, and once the work is done it says a short summary instead of reading the whole reply back.`,to:[`chats`]},{kind:`improved`,title:`A tidier chat box, and Settings › Voice`,detail:`The box's toolbar is now the “+”, Refine, Talk, the model and Send; attach, environment and tools are rows of the “+” menu. Talk's language, voice, “Send when I pause” and the one-time speech setup moved to Settings › Voice, and Talk stays greyed out until speech is set up.`,to:[`settings`,`voice`]},{kind:`improved`,title:`Agent cards open where the agent works`,detail:`The Tosca and Migration cards on the Agents page, in the command palette and in Browse open their own pages, and each page has an “Ask the … agent” link back to its chat. Bridge goes by one name everywhere, in the terminal too.`},{kind:`fixed`,title:`Talk from an npm install, and on ARM64 Windows`,detail:`Talk's voice agent stopped as it started after an npm install, and the data engine could not load; both now ship in the package. Speech setup on ARM64 Windows failed for want of a native wheel; it now uses an x64 Python there.`}]},{version:`2.10.5`,date:`2026-11-14`,summary:`Record a phone app by hand, with Appium set up for you; talk to ForgeQE out loud; agents come alive as mascots; and API tests learn from your runs and recordings.`,changes:[{kind:`new`,title:`Record a mobile app by hand`,detail:`Record › Mobile app shows your phone's or emulator's screen on the page, here or on TestMu AI or BrowserStack. Tap, type, swipe and check on it: each action is done on the device and saved as a step that replays with no model. Passwords are typed from your saved secrets by name, a dropdown choice is one step, and the recording opens in a review where you add checks by clicking the app's picture and replay it.`,to:[`record`]},{kind:`new`,title:`Appium is set up for you`,detail:`For an emulator or phone on this computer, forgeqe mobile setup (or Settings › Set up › Install what's missing) installs Appium and its drivers, and every run starts Appium by itself when it is needed and stops it after. ForgeQE finds the Android SDK and Java on its own. Devices on TestMu AI or BrowserStack need none of this.`,to:[`settings`,`setup`]},{kind:`new`,title:`Talk to ForgeQE`,detail:`Talk (under Search, and in every chat box) is a voice assistant of ForgeQE's own. Say “open the model settings”, “where are my failed runs? open it” or “search for TestMu”: it moves around the app at once, with no chat, and asks when it is not sure. Ask for real work, such as “get me the ACs for 256 from ADO”, and ForgeQE does it and reads the answer aloud as it arrives; say “stop” to stop it. In a chat, what you say goes into the box to change or Refine first. Speech runs on this computer; Settings › Models picks Talk's model.`,to:[`chats`]},{kind:`new`,title:`Agents as living mascots`,detail:`Agents in the chat, on Home and on the Agents pages are drawn as small animated mascots, a robot or a character in its job's outfit, each in its own colour. Click one and it reacts; it rests when idle and sleeps when unused. Settings › Appearance switches between robots, characters and the old icons.`,to:[`settings`,`appearance`]},{kind:`new`,title:`A theme from one colour`,detail:`Settings › Appearance › From one colour turns a single colour into a family of matching shades and, if you want, sets the sidebar, buttons and page from it, keeping text readable.`,to:[`settings`,`appearance`]},{kind:`new`,title:`API tests learn from your runs and recordings`,detail:`ForgeQE compares several runs of the same flow to tell which parts of a call you choose (an id, a search word) and makes them inputs. A recording made by hand now keeps the app's API calls in full, with credentials removed, so API tests can be made from it. A contract the app outgrew can be healed, and nothing changes until you agree.`,to:[`api-tests`]},{kind:`improved`,title:`Personas and files in any message`,detail:`@files and /persona commands are shaded in every chat box, and several personas can be named anywhere in a message (check @steps.json as /sam and /priya). Refine keeps them. Replies now type out smoothly as they arrive.`,to:[`chats`]},{kind:`improved`,title:`Long replies are easier to read`,detail:`A long answer now reads as sections: clear heading sizes, a line between sections, and lines that stop at a comfortable width. Code and tables still use the full width.`,to:[`chats`]},{kind:`improved`,title:`Sources tucked away`,detail:`The line an answer ends with naming its sources (work items, run folders, reports) now folds under Sources at the end of the reply, one click away, and Talk never reads it or file paths aloud.`,to:[`chats`]},{kind:`improved`,title:`A calmer, more consistent look`,detail:`The web app's spacing, text sizes and shadows now follow one scale, so pages feel roomier and headings stand out by size alone. Body and chat text are a little larger.`},{kind:`improved`,title:`Chats start faster`,detail:`Azure DevOps, GitHub and your other connected systems no longer all start when a chat opens: each starts only when the chat first needs it, so nothing signs in that is not used.`},{kind:`improved`,title:`Searches use the site's own filters`,detail:`When you ask for results under a price or the cheapest few, the browser agent now uses the site's filter or sort instead of reading every page, and a request to generate a script hands the test to the coding agent and its reviewer.`},{kind:`fixed`,title:`Your team's own work item states`,detail:`Release readiness, duplicate bug checks and test case reuse now follow the states your Azure DevOps or Jira project really uses (In Test, Verified, Shipped…), so finished work no longer counts as open and a bug is not filed twice.`},{kind:`fixed`,title:`GitHub Copilot sessions`,detail:`An agent's reply is no longer cut short in the chat, an agent can no longer loop asking for tools it already has, and a test job whose browser cannot start stops with how to fix it instead of spending tokens.`}]},{version:`2.10.4`,date:`2026-11-13`,summary:`Your pinned pages stay pinned after you restart ForgeQE, dropdowns are readable in dark mode, and the recording window fits your screen.`,changes:[{kind:`fixed`,title:`Pins stay after a restart`,detail:`Pinned pages, recent pages and starred agents were cleared each time you started forgeqe web again. ForgeQE now keeps them for you, so they are there in every new session. Pins you already have are kept from your next session on.`},{kind:`fixed`,title:`Dropdowns in dark mode`,detail:`In dark mode, the open list of a dropdown, such as the new recording's Start on, showed most options as light text on white on Windows. The list now uses the dark theme's colours.`,to:[`appearance`]},{kind:`fixed`,title:`The recording window fits your screen`,detail:`On a Windows display set to a larger scale (125% or more), the recording window was bigger than the screen, so its bottom and scroll bar were out of sight. It now opens maximised.`,to:[`record`]}]},{version:`2.10.3`,date:`2026-11-13`,summary:`Checks added in a recording's review now hold on every step and every run, re-runs no longer click into the middle of a page, and the review warns when a locator or a checked value will not hold next time.`,changes:[{kind:`fixed`,title:`Checks of a text inside a longer text`,detail:`A text you pick to check in the review, such as "(user and pass: admin)" next to a link, is found wherever it shows on the page. Before, it had to be an element's whole text, so the check failed on a re-run although the page showed it.`,to:[`record`]},{kind:`fixed`,title:`Every step has its picture in the review`,detail:`Steps 8, 9, 18, 19 and so on showed no picture in the review, and no check could be added after them ("Step 10 has no screenshot to check against"). Recordings made before this fix show their pictures too.`,to:[`record`]},{kind:`fixed`,title:`Re-runs no longer jump to another page`,detail:`A click on the page itself, such as the one the browser sends after you choose from a dropdown, is no longer a step. A click on the empty space of a section is replayed where you clicked, not in the middle of the section, where a link may be.`,to:[`record`]},{kind:`improved`,title:`Values that change on every visit`,detail:`ForgeQE notices a text that is different each time the same page loads, such as a random label or one message of a few, and checks that a message shows rather than which one. The review says why.`,to:[`record`]},{kind:`improved`,title:`The review says when a locator will not hold`,detail:`A step found by an id a framework made up, or by a name that holds data like a price, says so in the review, and you can pick another of its locators. The test written from the recording prefers a steady locator.`,to:[`record`]},{kind:`fixed`,title:`Location in replays`,detail:`A recording that used your location replays with a fixed test location, the same on every run, never your own. The test written from it is told which browser permissions the site needs.`}]},{version:`2.10.2`,date:`2026-11-13`,summary:`Recording now captures the hard parts of real pages, from frames, shadow DOM and new windows to hover menus, gestures and keyboard-driven widgets, and their replays run on Windows.`,changes:[{kind:`improved`,title:`Recordings that replay on tricky pages`,detail:`Recordings now replay on pages built with hover menus (including menus inside menus), web components, framesets, lazy content that loads as you scroll, and buttons whose label or icon comes from CSS. A Close, Delete or OK button that appears more than once is found through the toast, row or card it belongs to. Tested on every example page of the-internet.herokuapp.com on Windows.`,to:[`record`]},{kind:`new`,title:`New windows, gestures and keyboard widgets`,detail:`Steps in a window a link opens are recorded there. A press and hold, a swipe, several choices in a multiple-select list, and arrow keys or typing on custom dropdowns, sliders and canvases are now steps. Moving the pointer off the top of the page, which some sites answer with an offer, is a step too.`,to:[`record`]},{kind:`improved`,title:`Back, scrolling and suggestions replay as you did them`,detail:`Going back right after a click, or back from a form's result page, is kept. A replay scrolls to where you stopped scrolling, and waits for a search box's suggestions before choosing one.`,to:[`record`]},{kind:`improved`,title:`Sign-ins and one-time codes`,detail:`A password you type is matched to the right saved login, or read from the site's own variable when it is none of them; the password itself is never recorded. A one-time code the page shows, kept as a variable, is typed from that variable. Permissions you allowed while recording, such as your location, are allowed in the replay.`,to:[`record`]},{kind:`fixed`,title:`Downloads and hovers in Edge replays`,detail:`Replays in Edge no longer get stuck on Edge's own downloads page after a download, and a menu opened by a hover stays open for the next step.`,to:[`record`]},{kind:`new`,title:`Unpin a page from the sidebar`,detail:`Hover a page in the sidebar's Pinned list and click its star to unpin it.`}]},{version:`2.10.1`,date:`2026-11-12`,summary:`Attach Word, Excel and PowerPoint files to a chat, and recordings now capture downloads, right-clicks, scrolls, tooltips and sites behind a browser sign-in, with more kinds of checks.`,changes:[{kind:`new`,title:`Attach Word, Excel and PowerPoint files`,detail:`Drop a .docx, .xlsx or .pptx file (up to 5 MB) into a chat and the agent reads its text. ForgeQE keeps a plain-text copy beside the file, without running any macro or formula. Older .doc, .xls and .ppt files are refused, with the format to save them as.`,to:[`chats`]},{kind:`new`,title:`Downloads are recorded and checked`,detail:`Clicking Export or Download while recording adds a download step with the file's name and size, matched by a pattern when part of the name changes, like a date. The replay waits for the file and fails if it does not arrive or is empty.`,to:[`record`]},{kind:`new`,title:`Right-clicks, scrolls and tooltips`,detail:`Recordings now capture a right-click on the page's own menu, and scrolling of the page or of a list that loads more at its end. To check a tooltip or hover card, press the leader key and then H: the hover is kept, and you can pick the tooltip's text as a check in the review.`,to:[`record`]},{kind:`new`,title:`More kinds of checks`,detail:`In a recording's review, a check on an element can now say it is enabled, it is disabled, how many elements match (as a number), or what an attribute's value is. Changing what a check looks at resets how it compares, so what you see is what is saved.`,to:[`record`]},{kind:`new`,title:`Sites behind the browser's own sign-in`,detail:`A staging site that shows the browser's sign-in box (basic auth) now replays instead of stopping at a 401. The replay signs in with the saved login for that site. If there is none, the recording tells you to save one.`,to:[`record`]},{kind:`fixed`,title:`Steadier replays`,detail:`Replays wait for spinners inside frames too, such as in a payment form, and no longer wait forever for a spinner the page had hidden. On Windows, Stop now closes the recording's browser window.`,to:[`record`]}]},{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 Atlas'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:`Quill, the healing agent and Link 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 Mask page`,detail:`Mask'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 Librarian 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 Skimmer 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 Skimmer 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:`Librarian: see what ForgeQE understood and correct it`,detail:`Ask Librarian 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 Quill, and project logos that fit the sidebar by themselves.`,changes:[{kind:`new`,title:`Mask: 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 Mask 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:`Mask'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 DeskPilot 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:`DeskPilot in chat`,detail:`DeskPilot 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:`Guide`,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 (Miner, 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 Link`,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 Miner 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 Bridge 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:`Bridge 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 Quill and Checker, 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 Quill, with its work, test runs and reviews below. The reviewer, now called Checker, 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 Miner that finds test data for every agent, and the same chat box on every agent's page.`,changes:[{kind:`new`,title:`Mover`,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:`Miner`,detail:`Every agent asks Miner 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 Miner, 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.`}]}]},Cd=[`new`,`improved`,`fixed`],wd=/^[a-z0-9][a-z0-9-]*$/,Td=/^[0-9]+\.[0-9]+\.[0-9]+([a-zA-Z0-9.-]*)?$/,Ed={summary:240,title:80,detail:600},Dd=e=>typeof e==`object`&&!!e&&!Array.isArray(e);function Od(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 kd(e){if(typeof e!=`string`||!/^\d{4}-\d{2}-\d{2}$/.test(e))return;let t=new Date(`${e}T00:00:00Z`);return!Number.isNaN(t.getTime())&&t.toISOString().slice(0,10)===e?e:void 0}function Ad(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 jd(e,t){let n=Ad(e),r=Ad(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 Md(e,t,n){if(!Dd(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=Cd.find(t=>t===e.kind);if(!i)return void n.push(`${t}: kind must be one of ${Cd.join(`, `)}`);let a=Od(e.title,Ed.title);if(!a)return void n.push(`${t}: title must be one line of at most ${Ed.title} characters`);let o=Od(e.detail,Ed.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`&&wd.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 ${Ed.detail} characters`)}function Nd(e,t,n){if(!Dd(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`&&Td.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=kd(e.date);if(!o)return void n.push(`${a}: date must be a real day, like 2026-11-02`);let s=Od(e.summary,Ed.summary);if(!s)return void n.push(`${a}: summary must be one line of at most ${Ed.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)=>Md(e,`${a} change ${t+1}`,n)).filter(e=>!!e);if(!(n.length>c))return{version:i,date:o,summary:s,changes:l}}function Q(e){let t=[];if(!Dd(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=Nd(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&&(jd(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 Pd=Q(Sd).releases,Fd=Pd[0],Id=e=>e.to?.length&&e.to.every(e=>wd.test(e))?s(...e.to):void 0,Ld=e=>new Date(`${e}T00:00:00`),Rd=e=>Ld(e).toLocaleDateString(void 0,{day:`numeric`,month:`short`,year:`numeric`}),zd=e=>Ld(e).toLocaleDateString(void 0,{month:`long`,year:`numeric`});function Bd(e=Pd){let t=[];for(let n of e){let e=zd(n.date),r=t[t.length-1];r?.month===e?r.releases.push(n):t.push({month:e,releases:[n]})}return t}var Vd=`forgeqe-whats-new-seen`,Hd=()=>{try{return localStorage.getItem(Vd)===Fd?.version}catch{return!1}},Ud=()=>{try{Fd&&localStorage.setItem(Vd,Fd.version)}catch{}},Wd={browser:[`browser`],mobile:[`mobile`],desktop:[`desktop`],coding:[`tests`],db:[`databases`],accessibility:[`quality`],performance:[`quality`],visual:[`quality`],jobs:[`monitor`]},Gd={browser:`browser`,mobile:`mobile`,desktop:`desktop`,tests:`coding`,databases:`db`,quality:`accessibility`,monitor:`jobs`},Kd=e=>Object.hasOwn(Gd,e);function qd(e){let t=Gd[e],n=fe.find(e=>e.id===t);return n?c(n):s(t)}var Jd=`forgeqe-open-settings`;function Yd(e,t=!1){if(Kd(e)){try{sessionStorage.setItem(Jd,e)}catch{}t?location.replace(qd(e)):location.hash=qd(e)}}function Xd(e){let t=Gd[e];return t===`accessibility`?`the Quality pages`:t===`jobs`?`the Jobs page`:`${fe.find(e=>e.id===t)?`its agent's`:`its`} page`}var Zd=ge.filter(e=>!pe.includes(e.id)&&!Kd(e.id)),Qd=(0,R.lazy)(()=>v(()=>import(`./agentSettingsSheet-CUOx_y4s.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]))),$d=/^[a-z][a-z0-9-]*$/,ef=e=>e.filter(e=>$d.test(e));function tf({page:e,title:t,agents:n=[]}){let r=Wd[e]??[],i=ef(n),[a,o]=(0,R.useState)(!1),[s,c]=(0,R.useState)(!1);return(0,R.useEffect)(()=>{try{let e=sessionStorage.getItem(Jd);e&&r.includes(e)&&(sessionStorage.removeItem(Jd),c(!0),o(!0))}catch{}},[e]),!r.length&&!i.length?null:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(I,{variant:`icon`,size:`icon`,"aria-label":`${t} settings`,"data-tip":`${t} settings`,"aria-haspopup":`dialog`,"aria-expanded":a,onClick:()=>{c(!0),o(!0)},children:(0,z.jsx)(xt,{"aria-hidden":`true`})}),s&&(0,z.jsx)(R.Suspense,{fallback:null,children:(0,z.jsx)(Qd,{open:a,onClose:()=>o(!1),title:t,sections:r,agents:i})})]})}function nf(e,t){setTimeout(()=>{let n=document.getElementById(e);if(!n)return;n.focus();let r=Ii(t);r&&n.setSelectionRange(r[0],r[1])},0)}function rf(){let[e,t]=(0,R.useState)(()=>!!Fd&&!Hd());if(!e||!Fd)return null;let n=Fd.changes.filter(e=>e.kind===`new`).slice(0,3);return(0,z.jsxs)(`section`,{"aria-labelledby":`whats-new-title`,className:S(m,`flex w-full items-start gap-x-4`),children:[(0,z.jsx)(F,{icon:$t,size:20,className:`mt-1 flex-none text-icon`}),(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-wrap items-center gap-x-4 gap-y-4`,children:[(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_280px] flex-col gap-1`,children:[(0,z.jsxs)(`span`,{id:`whats-new-title`,className:`font-medium`,children:[`What's new in ForgeQE `,Fd.version]}),(0,z.jsx)(`span`,{className:`text-body-sm text-muted [overflow-wrap:anywhere]`,children:n.length?n.map(e=>e.title).join(` · `):Fd.summary})]}),(0,z.jsxs)(`a`,{className:P({variant:`outline`}),href:s(`settings`,`whats-new`),"data-tip":`See all changes`,children:[(0,z.jsx)(dn,{"aria-hidden":`true`}),`Changes`]})]}),(0,z.jsx)(I,{variant:`icon`,size:`icon`,"aria-label":`Close until the next release`,"data-tip":`Close until the next release`,onClick:()=>{Ud(),t(!1)},className:`-my-2 -mr-2 size-8 flex-none`,children:(0,z.jsx)(wt,{size:16,"aria-hidden":`true`})})]})}function af({id:e}){let t=Kn(e);return(0,z.jsx)(Ue,{to:{href:t.href,label:t.label}})}function of({agent:e,tabs:t}){return(0,z.jsxs)(`header`,{style:t?{viewTransitionName:`agent-tabs`}:void 0,className:`flex flex-wrap items-center gap-1 px-6 py-4 short:py-2`,children:[(0,z.jsx)(jr,{}),e&&(0,z.jsx)(af,{id:e.id}),t&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`span`,{className:`flex-1`}),t]})]})}function sf({agent:e,title:t,tabs:n,end:r,back:i,tabsBelow:a=!1}){let o=M(e.agent);return(0,z.jsxs)(z.Fragment,{children:[i?(0,z.jsx)(Ue,{to:{href:i.href,label:i.label}}):(0,z.jsx)(af,{id:e.id}),(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-4 gap-y-2`,children:[(0,z.jsx)(ne,{agent:e.agent,px:40,decorative:!0}),(0,z.jsx)(`h1`,{className:`m-0 font-home text-headline-lg`,children:t??(o?o.name:e.id)}),!a&&n,(0,z.jsx)(`span`,{className:`flex-auto`}),r,(0,z.jsx)(tf,{page:e.id,title:o?o.name:e.id,agents:e.prompt===!1?[]:e.runs})]}),a&&n&&(0,z.jsx)(`div`,{className:`flex min-w-0 flex-wrap`,children:n})]})}function cf({agent:e,title:t,below:n,tabs:r,end:i}={}){let a=e&&M(e.agent),o=e?e.starters:Fi,[c,l]=(0,R.useState)(``),[u,d]=(0,R.useState)(``);(0,R.useEffect)(()=>{if(!e)try{let e=sessionStorage.getItem(Go);sessionStorage.removeItem(Go),e&&e.trim()&&(l(e.slice(0,2e4)),setTimeout(()=>Ka(`msg`),0))}catch{}},[]);let[f,p]=(0,R.useState)(!1),m=Lo(),h=Ni(),g=E(oe().theme)!==`icons`,_=gd(!!e||g||f),[v,y]=(0,R.useState)(null),b=xd(!!e||!g||f,v,c),{setup:x}=m,C=Rc({kind:`all`},e=>y(yd(e)),!!e||!x?.ready),w=Wc(C),ee=zc(C).count,T=Ba(c,e=>{l(e),d(``)},`msg`,{code:m.tools.code}),D=Ua(`home`,e=>{l(e),Ka(`msg`)}),te=async(t=c)=>{let n=a&&e?.agent!==`forgeqe`&&t.trim()?`${a.name}: ${t.trim()}`:t.trim();if(f||!n.trim()&&!T.hasFiles)return!1;p(!0),d(``);try{let t=await T.wrap(n);if(!t.trim())return p(!1),!1;let{id:r}=await Re.start(t,m.choice,e?.id??`orchestrator`);return T.reset({keep:!0}),location.hash=s(`chats`,r),!0}catch(e){return d(e.message),p(!1),!1}};return(0,z.jsxs)(`div`,{className:`flex min-h-(--screen) flex-col bg-canvas`,children:[e?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Fr,{}),(0,z.jsx)(`div`,{className:S(Ir,`@container gap-4 pb-0 short:pb-0`),children:(0,z.jsx)(sf,{agent:e,...t?{title:t}:{},tabs:r,end:i})})]}):(0,z.jsx)(of,{}),(0,z.jsxs)(`main`,{className:S(`flex flex-auto flex-col items-center px-6`,e?`pt-8 pb-16 short:pt-6 short:pb-8`:`pt-16 pb-24 short:pt-8 short:pb-16`),children:[(0,z.jsxs)(`div`,{className:S(`flex w-full flex-col items-center gap-10 short:gap-6`,e?`max-w-[880px]`:`home-controls max-w-[780px]`),children:[(0,z.jsxs)(`div`,{className:`flex flex-col items-center gap-4 text-center short:gap-2`,children:[e?(0,z.jsx)(ne,{agent:e.agent,px:h?64:96,decorative:!0,working:f,className:`mb-1`}):g?(0,z.jsx)(ne,{agent:ce,px:h?72:112,state:f?`thinking`:b.state,mood:f?void 0:b.mood,activity:f?void 0:b.activity,className:`mb-1`}):(0,z.jsx)(qe,{state:f?`waiting`:_,px:h?72:112,label:f?`Starting the chat`:`ForgeQE is ready`,className:`mb-1`}),e&&a&&t&&t!==a.name&&(0,z.jsx)(`p`,{className:`m-0 text-headline-sm`,children:a.name}),!e&&C.ready&&(ee?(0,z.jsx)(`button`,{type:`button`,onClick:Vc,className:`cursor-pointer border-0 bg-transparent p-0 focus-visible:ring-2 focus-visible:ring-accent`,"data-tip":`Show what is waiting`,children:(0,z.jsxs)(Ve,{tone:`warn`,children:[w?`${w} working now`:`Nothing running now`,`, `,Bc(C).words]})}):(0,z.jsx)(Ve,{tone:w?`running`:`pass`,children:w?`${w} working now`:`Nothing running now`})),!e&&(0,z.jsx)(`h1`,{"data-app-title":``,className:`m-0 font-home text-headline-lg-mobile text-ink sm:text-headline-lg`,children:`What are we assuring today?`}),e?(0,z.jsx)(`p`,{className:`m-0 text-body-lg leading-relaxed text-ink-2`,children:e.about}):(0,z.jsx)(`p`,{className:`m-0 max-w-[46ch] text-body-md 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.`}),e?.crew?.length?(0,z.jsx)(B,{crew:e.crew}):null]}),x&&!x.ready&&(0,z.jsx)(Ho,{project:x.project}),x?.ready&&(0,z.jsx)(Uo,{c:m}),(0,z.jsx)(Ha,{id:`msg`,label:a?`Message ${_e(a.name)}`:`Message ForgeQE`,value:c,onChange:e=>{l(e),d(``)},onSend:()=>void te(),disabled:f||!!x&&!x.ready||D.running,canSend:!!c.trim()||T.hasFiles,onEdit:T.onEdit,onKey:T.onKeyDown,onFiles:T.onFiles,dropping:T.dropping,drop:T.drop,mentions:T.mentions,combo:T.combo,placeholder:a?`Ask ${_e(a.name)} to…`:`Ask ForgeQE to test something…`,top:(0,z.jsxs)(z.Fragment,{children:[T.chips,D.state&&(0,z.jsx)(Ga,{state:D.state,onStop:()=>void D.stop(),onUndo:D.undo,onClose:D.close}),(0,z.jsx)(ir,{chat:null})]}),left:(0,z.jsxs)(z.Fragment,{children:[T.fileInput,(0,z.jsx)(Ro,{attach:{pick:T.pick},choice:m}),(0,z.jsx)(Wa,{running:D.running,disabled:!c.trim()||f||!!x&&!x.ready,onClick:()=>void D.start(c)}),(0,z.jsx)(er,{chat:null,disabled:f||D.running||!!x&&!x.ready})]}),right:(0,z.jsx)(Bo,{c:m})}),(0,z.jsx)(`p`,{role:`status`,"aria-live":`polite`,className:S(`-mt-6 m-0 text-center short:-mt-4 text-body-sm text-ink-2`,!(u||T.error)&&`sr-only`),children:(0,z.jsx)(`span`,{className:T.error&&!u?`text-fail`:``,children:u||T.error||``})}),(0,z.jsx)(`div`,{className:`-mt-2 flex flex-wrap justify-center gap-2`,children:o.map(({label:e,Icon:t,text:n})=>(0,z.jsxs)(I,{onClick:()=>{l(n),d(``),nf(`msg`,n)},children:[t&&(0,z.jsx)(t,{"aria-hidden":`true`}),e]},e))}),n]}),!e&&(0,z.jsxs)(`div`,{className:`mt-16 flex w-full max-w-[1040px] flex-col gap-12 short:mt-8`,children:[x?.ready&&(0,z.jsx)(ud,{board:C}),(0,z.jsx)(rf,{})]})]})]})}function lf({groups:e,edit:t}){return(0,z.jsx)(z.Fragment,{children:e.map(e=>(0,z.jsxs)(dr,{children:[(0,z.jsx)(Qn,{help:e.help,first:!0,children:e.title}),(0,z.jsx)(Jn,{defs:e.fields,edit:t,base:e.base})]},e.title))})}Zn.add(lf);function uf(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 df=[{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`}],ff=/^[A-Za-z0-9][A-Za-z0-9_.-]{0,62}$/;function pf(e,t,n){return e?ff.test(e)?e!==t&&n.includes(e)?`There is already a sign-in named ${e}.`:``:`Letters, digits, . _ and -.`:`Needs a name.`}function mf(e){let t=e.toUpperCase().replace(/[^A-Z0-9]/g,`_`);return{username_env:`${t}_USER`,password_env:`${t}_PASSWORD`}}function hf({edit:e}){let[t,n]=(0,R.useState)(null),r=wr(),i=L(e.value.logins),a=Object.keys(i);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(dr,{children:[(0,z.jsx)(Qn,{first:!0,icon:ut,children:`Sign-ins`}),(0,z.jsxs)(`div`,{className:`-mt-2 mb-4 flex flex-wrap items-center justify-between gap-4`,children:[(0,z.jsx)(`span`,{className:`text-body-sm text-muted`,children:`One for each app the agent signs in to.`}),(0,z.jsxs)(I,{size:`sm`,"data-tip":`Add a sign-in`,onClick:()=>{let e=zn(i,`shop`);n({mode:`add`,from:``,name:e,login:mf(e)})},children:[(0,z.jsx)(dt,{"aria-hidden":`true`}),`Add`]})]}),a.length===0&&(0,z.jsx)(`p`,{className:`m-0 border-t border-line-soft py-6 text-body-sm text-muted`,children:`None yet.`}),Object.entries(i).map(([t,i])=>{let a=L(i),o=uf(a,[`username_env`,`password_env`],df,e=>Ar(r,e)),s=a.username_env||a.password_env;return(0,z.jsx)(cr,{expandable:!1,open:!1,onToggle:()=>{},lead:(0,z.jsx)(Xn,{icon:ut}),title:t,meta:String(a.url||(Array.isArray(a.domains)?a.domains.join(`, `):``)||`No site yet`),state:s?o.length?(0,z.jsx)(`span`,{className:`text-body-sm text-warn`,"data-tip":o.join(`, `),children:o.length===1?`Needs ${o[0]}`:`Needs ${o.length} variables`}):(0,z.jsx)(`span`,{className:`text-body-sm text-pass`,children:`Ready`}):(0,z.jsx)(`span`,{className:`text-body-sm text-muted`,children:`Not set up`}),actions:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(I,{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,z.jsx)(mt,{"aria-hidden":`true`})}),(0,z.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":`Remove ${t}`,"data-tip":`Remove ${t}`,onClick:()=>e.set(qn(e.value,[`logins`,t],void 0)),children:(0,z.jsx)(Pn,{"aria-hidden":`true`})})]}),children:null},t)})]}),(0,z.jsx)(gf,{panel:t,setPanel:n,taken:a,vars:e.vars,onApply:t=>{t.mode===`add`?e.set(qn(e.value,[`logins`,t.name],t.login)):e.set(qn(e.value,[`logins`],{...tr(i,t.from,t.name),[t.name]:t.login}))}})]})}function gf({panel:e,setPanel:t,taken:n,vars:r,onApply:i}){let a={value:e?L(e.login):{},set:n=>e&&t({...e,login:n}),vars:r},o=e?pf(e.name,e.from,n):``,s=()=>t(null);return(0,z.jsx)(Pr,{open:!!e,onClose:s,title:e?.mode===`add`?`Add a sign-in`:`Edit ${e?.from}`,description:(0,z.jsxs)(z.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&&ff.test(e.name)?(0,z.jsxs)(z.Fragment,{children:[` `,`Sign in by hand with `,(0,z.jsxs)(`code`,{className:`font-mono text-body-sm`,children:[`forgeqe login `,e.name]}),`.`]}):null]}),footer:(0,z.jsxs)(z.Fragment,{children:[o&&(0,z.jsx)(`span`,{className:`mr-auto self-center text-body-sm text-muted`,children:`Needs a valid name`}),(0,z.jsxs)(I,{onClick:s,children:[(0,z.jsx)(wt,{"aria-hidden":`true`}),`Cancel`]}),(0,z.jsxs)(I,{variant:`primary`,disabled:!!o,onClick:()=>{i(e),s()},children:[e?.mode===`add`?(0,z.jsx)(dt,{"aria-hidden":`true`}):(0,z.jsx)(On,{"aria-hidden":`true`}),e?.mode===`add`?`Add`:`Done`]})]}),children:e&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(ur,{label:`Name`,help:o?(0,z.jsx)(`span`,{className:`text-fail`,children:o}):`How environments and forgeqe login name it.`,htmlFor:`login-name`,className:`mt-4`,stacked:!0,children:(0,z.jsx)(l,{id:`login-name`,value:e.name,spellCheck:!1,placeholder:`shop-qa`,"aria-invalid":!!o,onChange:n=>t({...e,name:n.target.value.trim()}),className:`font-mono`})}),(0,z.jsx)(Jn,{defs:df,edit:a,base:[],stacked:!0})]})})}function _f({rules:e,others:t,onChange:n}){let[r,i]=(0,R.useState)(``),[a,o]=(0,R.useState)(``),s=r.trim().length>0;return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`form`,{onSubmit:a=>{a.preventDefault();let s=r.replace(/^\s*[-*+]\s+/,``).trim();if(s){if(s.length>300)return o(`A rule is at most 300 characters: make it shorter.`);if([...e,...t.map(e=>e.text)].some(e=>e.toLowerCase()===s.toLowerCase()))return o(`That rule is already in force.`);o(``),n([...e,s]),i(``)}},className:`mb-4 flex items-center gap-2`,children:[(0,z.jsx)(`label`,{htmlFor:`rule`,className:`sr-only`,children:`New rule`}),(0,z.jsx)(l,{id:`rule`,value:r,maxLength:300,onChange:e=>{i(e.target.value),o(``)},placeholder:`Add a rule every agent must follow`,className:`flex-auto`}),(0,z.jsxs)(I,{type:`submit`,variant:`accent`,disabled:!s,"data-tip":`Add the rule`,children:[(0,z.jsx)(dt,{"aria-hidden":`true`}),`Add`]})]}),a&&(0,z.jsx)(`p`,{role:`alert`,className:`mt-0 mb-4 text-body-sm text-fail`,children:a}),e.length===0&&t.length===0?(0,z.jsx)(`p`,{className:`m-0 py-6 text-body-sm text-muted`,children:`No rules yet. Add the first one above.`}):(0,z.jsx)(`div`,{className:`@container`,children:(0,z.jsx)(Sr,{label:`Rules`,placeholder:`Find a rule`,empty:`No rule matches.`,head:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`th`,{scope:`col`,className:gr,children:`Rule`}),(0,z.jsx)(`th`,{scope:`col`,className:S(gr,`hidden @xl:table-cell`),children:`Set in`}),(0,z.jsx)(`th`,{scope:`col`,className:gr,children:(0,z.jsx)(`span`,{className:`sr-only`,children:`Remove`})})]}),children:[...e.map((t,r)=>(0,z.jsxs)(`tr`,{className:or,children:[(0,z.jsx)(`td`,{className:S(Rr,`leading-normal`),children:t}),(0,z.jsx)(`td`,{className:S(Rr,`hidden w-[1%] whitespace-nowrap @xl:table-cell`),children:(0,z.jsx)(Ve,{tone:`pass`,icon:!1,children:`This project`})}),(0,z.jsx)(`td`,{className:S(Rr,`w-[1%] text-right`),children:(0,z.jsx)(I,{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,z.jsx)(Pn,{"aria-hidden":`true`})})})]},`own-${r}`)),...t.map(e=>(0,z.jsxs)(`tr`,{className:or,children:[(0,z.jsx)(`td`,{className:S(Rr,`leading-normal`),children:e.text}),(0,z.jsxs)(`td`,{className:S(Rr,`hidden w-[1%] whitespace-nowrap @xl:table-cell`),children:[(0,z.jsx)(`span`,{className:`font-mono text-body-sm text-muted`,children:e.source}),e.agents?.length?(0,z.jsxs)(`span`,{className:`block text-body-sm text-muted`,children:[`For `,e.agents.length>2?`${e.agents.length} agents`:e.agents.map(e=>M(e).name).join(` and `)]}):null]}),(0,z.jsx)(`td`,{className:S(Rr,`w-[1%] text-right text-body-sm whitespace-nowrap text-muted`),children:`Read only`})]},`other-${e.source}-${e.text}`))]})})]})}function vf(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 yf=`m-0 px-4 py-4 font-mono text-body-sm leading-[1.7] whitespace-pre-wrap [overflow-wrap:anywhere] [tab-size:2]`;function bf({id:e,value:t,lang:n,onChange:r,plain:i=!1}){let a=ti(t,n);return(0,z.jsx)(`div`,{className:S(`outline-accent has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-offset-2`,i?`rounded-sm [&_pre]:px-0 [&_textarea]:px-0`:S(f,`max-h-[calc(var(--screen)-300px)] min-h-[360px] overflow-auto rounded-base`)),children:(0,z.jsxs)(`div`,{className:`grid`,children:[(0,z.jsxs)(`pre`,{"aria-hidden":`true`,className:S(yf,`pointer-events-none text-ink [grid-area:1/1]`),children:[a,`
50
+ `]}),(0,z.jsx)(`textarea`,{id:e,spellCheck:!1,autoCapitalize:`off`,autoCorrect:`off`,value:t,onChange:e=>r(e.target.value),className:S(yf,`resize-none overflow-hidden border-0 !bg-transparent text-transparent caret-ink outline-none selection:bg-accent-soft [grid-area:1/1]`)})]})})}function xf({snap:e,dirty:t,onSave:n}){let r=vf(e),[i,a]=(0,R.useState)(`config`),[o,s]=(0,R.useState)({}),[c,l]=(0,R.useState)(!1),u=r.find(e=>e.id===i)||r[0],d=o[u.id]??u.text,f=d!==u.text;return(0,z.jsxs)(dr,{children:[(0,z.jsx)(yr,{prefix:`file`,label:`Settings files`,className:`mb-4`,current:u.id,onPick:a,tabs:r.map(e=>({id:e.id,label:e.label,mono:!0}))}),(0,z.jsxs)(`div`,{id:`file-panel-${u.id}`,role:`tabpanel`,"aria-labelledby":`file-${u.id}`,className:`flex flex-col gap-4`,children:[(0,z.jsx)(`p`,{className:`m-0 font-mono text-body-sm break-all text-muted`,children:u.path}),e.errors[u.file]&&(0,z.jsxs)(`p`,{role:`alert`,className:S(N.fail,`m-0`),children:[`Does not parse: `,e.errors[u.file]]}),(0,z.jsx)(`label`,{htmlFor:`file-text`,className:`sr-only`,children:u.label}),(0,z.jsx)(bf,{id:`file-text`,plain:!0,value:d,lang:u.label.endsWith(`.json`)?`json`:`yaml`,onChange:e=>s({...o,[u.id]:e})}),(0,z.jsxs)(`div`,{className:`sticky bottom-0 z-[1] -mx-1 flex flex-wrap items-center gap-4 border-t border-line-soft bg-bg px-1 py-4`,children:[(0,z.jsxs)(I,{busy:c,size:`sm`,variant:`primary`,"data-tip":`Save file`,disabled:!f||c||t[u.file],onClick:async()=>{l(!0);try{if(await n(u.file,d,u.env)){let e={...o};delete e[u.id],s(e)}}finally{l(!1)}},children:[(0,z.jsx)(On,{"aria-hidden":`true`}),c?`Saving…`:`Save`]}),f&&(0,z.jsxs)(I,{size:`sm`,onClick:()=>{let e={...o};delete e[u.id],s(e)},disabled:c,"data-tip":`Discard your changes`,children:[(0,z.jsx)(Qe,{"aria-hidden":`true`}),`Discard`]}),t[u.file]&&(0,z.jsx)(`span`,{className:`text-body-sm text-muted`,children:`Save or discard the form's changes to this file first.`})]})]})]})}var Sf=/^[A-Za-z0-9][A-Za-z0-9_-]{0,62}$/;function Cf({edit:e,base:t,defs:n,noun:r,meta:i,start:a={},placeholder:o}){let s=L(Tr(e.value,t)),[c,u]=(0,R.useState)(null),[d,f]=(0,R.useState)(``),p=d&&!Sf.test(d)?`Letters, digits, - and _.`:d in s?`There is a ${r} named ${d}.`:``,m=()=>{d&&!p&&(e.set(qn(e.value,[...t,d],{...a})),u(d),f(``))};return(0,z.jsxs)(z.Fragment,{children:[Object.keys(s).length===0&&(0,z.jsx)(`p`,{className:`m-0 border-t border-line-soft py-4 text-body-sm text-muted`,children:`None yet.`}),Object.entries(s).map(([r,a])=>(0,z.jsx)(cr,{title:r,meta:i(L(a))||void 0,open:c===r,onToggle:()=>u(c===r?null:r),actions:(0,z.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":`Remove ${r}`,"data-tip":`Remove ${r}`,onClick:()=>e.set(qn(e.value,[...t,r],void 0)),children:(0,z.jsx)(Pn,{"aria-hidden":`true`})}),children:(0,z.jsx)(Jn,{defs:n,edit:e,base:[...t,r]})},r)),(0,z.jsx)(ur,{label:`Add a ${r}`,help:p?(0,z.jsx)(`span`,{className:`text-fail`,children:p}):`A short name: letters, digits, - and _.`,htmlFor:`add-${t.join(`-`)}`,children:(0,z.jsxs)(`div`,{className:`flex w-full items-center gap-2`,children:[(0,z.jsx)(l,{id:`add-${t.join(`-`)}`,value:d,spellCheck:!1,placeholder:`Name, such as ${o}`,"aria-invalid":!!p,onChange:e=>f(e.target.value.trim()),onKeyDown:e=>re(e)&&m(),className:`min-w-0 flex-1`}),(0,z.jsxs)(I,{size:`sm`,disabled:!d||!!p,"data-tip":`Add a ${r}`,onClick:m,children:[(0,z.jsx)(dt,{"aria-hidden":`true`}),`Add`]})]})})]})}var wf={attention:{label:`Needs attention`,tone:`fail`},partial:{label:`Partly set up`,tone:`warn`},ready:{label:`Ready`,tone:`pass`},unavailable:{label:`Unavailable`,tone:`neutral`}},Tf={pass:`bg-pass`,warn:`bg-warn`,fail:`bg-fail`,neutral:`bg-line-strong`,running:`bg-accent`},Ef={assisted:`Adviser`,native:`Builder`,agentic:`Operator`,custom:`Custom agent`};function Df(e,t){let n={};for(let r of e){if(!r.runIds.length)continue;let e=t.filter(e=>Array.isArray(e.agents)&&e.agents.some(e=>e&&r.runIds.includes(e.name)));if(!e.length)continue;let i=e.filter(e=>e.status===`done`||e.status===`failed`);n[r.fav]={runs:e.length,passRate:i.length?Math.round(100*i.filter(e=>e.status===`done`).length/i.length):null}}return n}var Of=[{id:`runs`,label:`Most run`},{id:`name`,label:`Name`},{id:`status`,label:`Needs attention first`}],kf=[`attention`,`partial`,`ready`,`unavailable`],Af={kinds:[],surfaces:[],statuses:[]},jf=(e,t)=>(!t.kinds.length||t.kinds.includes(e.kind))&&(!t.surfaces.length||e.tags.some(e=>t.surfaces.includes(e)))&&(!t.statuses.length||!!e.status&&t.statuses.includes(e.status));function Mf(e,t){let n=e.filter(e=>(t.tab===`all`||(t.tab===`favourites`?t.favs.includes(e.fav):e.status===t.tab))&&jf(e,t.picks)),r=(e,t)=>e.name.localeCompare(t.name),i=e=>t.stats[e.fav]?.runs??0,a=e=>e.status?kf.indexOf(e.status):kf.length;return[...n].sort(t.sort===`name`?r:t.sort===`status`?(e,t)=>a(e)-a(t)||r(e,t):(e,t)=>i(t)-i(e)||r(e,t))}function Nf(e,t,n){let r=t.map(t=>e.find(e=>e.fav===t)).filter(e=>!!e),i=e.filter(e=>!t.includes(e.fav)&&(n[e.fav]?.runs??0)>0).sort((e,t)=>n[t.fav].runs-n[e.fav].runs);return[...r,...i].slice(0,4)}var Pf=(e,t)=>`${e} ${t}${e===1?``:`s`}`;function Ff({status:e}){return e?(0,z.jsx)(`span`,{className:S(`size-2 flex-none rounded-full`,Tf[wf[e].tone]),"aria-hidden":`true`}):null}function If({item:e,favs:t,className:n}){let r=t.favs.includes(e.fav);return(0,z.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-pressed":r,"aria-label":r?`Remove ${_e(e.name)} from favourites`:`Add ${_e(e.name)} to favourites`,"data-tip":r?`Remove from favourites`:`Add to favourites`,onClick:()=>t.toggle(e.fav),className:n,children:(0,z.jsx)(Ht,{size:14,strokeWidth:1.8,fill:r?`currentColor`:`none`,"aria-hidden":`true`})})}var Lf=e=>e.status===`partial`||e.status===`attention`||e.status===`unavailable`?`Set up`:`Run agent`;function Rf({items:e,favs:t,stats:n}){return e.length?(0,z.jsxs)(`section`,{"aria-labelledby":`agents-pinned`,className:`flex flex-col gap-4`,children:[(0,z.jsx)(Ko,{id:`agents-pinned`,icon:Ht,title:`Pinned and most run`,description:`Your favourites first, then the agents your recent runs used most.`,...t.favs.length>0?{actions:(0,z.jsxs)(`span`,{className:`text-body-sm text-muted`,children:[t.favs.length,` pinned`]})}:{}}),(0,z.jsx)(`ul`,{className:`m-0 grid list-none grid-cols-1 gap-4 p-0 sm:grid-cols-2 xl:grid-cols-4`,children:e.map(e=>{let t=n[e.fav],r=e.status?wf[e.status]:void 0;return(0,z.jsxs)(`li`,{className:S(m,`flex min-w-0 flex-col gap-4`),children:[(0,z.jsxs)(`div`,{className:`flex min-w-0 items-start gap-4`,children:[e.icon,(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,z.jsxs)(`a`,{href:e.href,className:`flex min-w-0 items-center gap-2 font-medium text-ink no-underline hover:underline`,children:[(0,z.jsx)(`span`,{className:`truncate`,children:e.name}),(0,z.jsx)(Ff,{status:e.status})]}),(0,z.jsx)(`span`,{className:`truncate text-body-sm text-muted`,children:e.short})]}),t&&(0,z.jsx)(Ve,{tone:`neutral`,icon:!1,className:`flex-none tabular-nums`,children:Pf(t.runs,`run`)})]}),(0,z.jsxs)(`div`,{className:`mt-auto flex items-center justify-between gap-2`,children:[(0,z.jsxs)(`span`,{className:S(`flex items-center gap-2 text-body-sm`,t?.passRate==null?r?.tone===`warn`?`text-warn`:r?.tone===`fail`?`text-fail`:`text-muted`:`text-pass`),children:[(0,z.jsx)(Ff,{status:t?.passRate==null?e.status:`ready`}),t?.passRate==null?r?.label??``:`${t.passRate}% passed`]}),(0,z.jsx)(`a`,{href:e.href,className:S(P({variant:`outline`,size:`sm`}),`no-underline`),children:Lf(e)})]})]},e.fav)})})]}):null}function zf({id:e,title:t,options:n,picked:r,onChange:i}){return n.length?(0,z.jsxs)(`fieldset`,{className:`m-0 flex flex-col gap-1 border-0 p-0 pt-4`,children:[(0,z.jsxs)(`legend`,{className:`float-left mb-2 flex w-full items-center justify-between p-0 text-body-sm font-medium`,children:[(0,z.jsx)(`span`,{id:`facet-${e}`,children:t}),(0,z.jsx)(`span`,{className:`text-body-sm font-normal text-muted tabular-nums`,children:n.length})]}),n.map(e=>{let t=r.includes(e.id);return(0,z.jsxs)(`label`,{className:`flex min-h-8 cursor-pointer items-center gap-2 text-body-sm text-ink`,children:[(0,z.jsx)(pc,{checked:t,onCheckedChange:t=>i(t?[...r,e.id]:r.filter(t=>t!==e.id)),"aria-label":`${e.label}, ${e.n}`}),e.tone&&(0,z.jsx)(`span`,{className:S(`size-2 flex-none rounded-full`,Tf[e.tone]),"aria-hidden":`true`}),(0,z.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.label}),(0,z.jsx)(`span`,{className:`text-body-sm text-muted tabular-nums`,children:e.n})]},e.id)})]}):null}function Bf(e,t,n=12){let r=new Map;for(let n of e)for(let e of new Set(t(n)))r.set(e,(r.get(e)??0)+1);return[...r].sort((e,t)=>t[1]-e[1]||e[0].localeCompare(t[0])).slice(0,n).map(([e,t])=>({id:e,label:e,n:t}))}function Vf({items:e,picks:t,setPicks:n,search:r}){let i=he.map(t=>({id:t.id,label:t.label,n:e.filter(e=>e.kind===t.id).length})).filter(e=>e.n>0||t.kinds.includes(e.id)),a=Bf(e.filter(e=>e.kind!==`custom`),e=>e.tags),o=Object.keys(wf).map(t=>({id:t,label:wf[t].label,tone:wf[t].tone,n:e.filter(e=>e.status===t).length})).filter(e=>e.n>0||t.statuses.includes(e.id)),s=t.kinds.length+t.surfaces.length+t.statuses.length>0,c=e=>r=>n({...t,[e]:r});return(0,z.jsxs)(`aside`,{"aria-label":`Filters`,className:S(m,`flex min-w-0 flex-col gap-4`),children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,z.jsx)(Ko,{icon:xt,title:`Filters`,level:3}),(0,z.jsx)(I,{variant:`ghost`,size:`sm`,disabled:!s,onClick:()=>n(Af),children:`Clear all`})]}),r,(0,z.jsx)(zf,{id:`kind`,title:`Kind`,options:i,picked:t.kinds,onChange:c(`kinds`)}),(0,z.jsx)(zf,{id:`works-with`,title:`Works with`,options:a,picked:t.surfaces,onChange:c(`surfaces`)}),(0,z.jsx)(zf,{id:`status`,title:`Status`,options:o,picked:t.statuses,onChange:c(`statuses`)}),(0,z.jsx)(I,{size:`sm`,disabled:!s,onClick:()=>n(Af),className:`mt-2 w-full justify-center`,children:`Reset all filters`})]})}function Hf({value:e,onChange:t,counts:n}){return(0,z.jsx)(`div`,{role:`group`,"aria-label":`Show`,className:`flex flex-wrap gap-2`,children:[{id:`all`,label:`All agents`},{id:`ready`,label:`Ready`,tone:`pass`},{id:`attention`,label:`Needs attention`,tone:`fail`},{id:`favourites`,label:`Favourites`,star:!0}].map(r=>{let i=e===r.id;return(0,z.jsxs)(I,{size:`sm`,"aria-pressed":i,onClick:()=>t(r.id),children:[r.tone&&(0,z.jsx)(`span`,{className:S(`size-2 rounded-full`,Tf[r.tone]),"aria-hidden":`true`}),r.star&&(0,z.jsx)(Ht,{size:14,fill:`currentColor`,"aria-hidden":`true`,className:`text-warn`}),r.label,(0,z.jsx)(`span`,{className:`tabular-nums`,children:n[r.id]})]},r.id)})})}function Uf({value:e,onChange:t}){let[n,r]=(0,R.useState)(!1),i=(0,R.useRef)(null);return(0,z.jsxs)(`span`,{ref:i,className:`relative`,children:[(0,z.jsxs)(I,{variant:`ghost`,size:`sm`,"aria-haspopup":`menu`,"aria-expanded":n,onClick:()=>r(!n),children:[(0,z.jsx)(Zt,{"aria-hidden":`true`}),`Sort: `,Of.find(t=>t.id===e)?.label,(0,z.jsx)(rt,{"aria-hidden":`true`})]}),(0,z.jsx)(D,{open:n,onClose:()=>r(!1),label:`Sort the agents`,align:`end`,anchor:i.current,children:Of.map(n=>(0,z.jsx)(w,{role:`menuitemradio`,checked:e===n.id,onSelect:()=>{t(n.id),r(!1)},children:n.label},n.id))})]})}function Wf({value:e,onChange:t}){return(0,z.jsx)(vr,{label:`Show as`,value:e,onChange:t,options:[{id:`grid`,label:`Grid`,icon:(0,z.jsx)(St,{size:14,"aria-hidden":`true`})},{id:`list`,label:`List`,icon:(0,z.jsx)(Lt,{size:14,"aria-hidden":`true`})}]})}function Gf({item:e,favs:t,stats:n}){let r=e.status?wf[e.status]:void 0;return(0,z.jsxs)(`li`,{className:S(m,`flex min-w-0 flex-col gap-4`),children:[(0,z.jsxs)(`div`,{className:`flex min-w-0 items-start gap-4`,children:[e.icon,(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,z.jsxs)(`a`,{href:e.href,className:`flex min-w-0 items-center gap-2 text-body-lg font-medium text-ink no-underline hover:underline`,children:[(0,z.jsx)(`span`,{className:`line-clamp-2`,children:e.name}),(0,z.jsx)(Ff,{status:e.status}),r&&(0,z.jsxs)(`span`,{className:`sr-only`,children:[r.label,e.note?`: ${e.note}`:``]})]}),(0,z.jsxs)(`span`,{className:`text-body-sm text-muted`,children:[Ef[e.kind]??e.kind,` · `,e.short]})]}),(0,z.jsx)(If,{item:e,favs:t,className:`-mt-1 -mr-1 flex-none text-muted aria-pressed:text-warn`})]}),(0,z.jsx)(`p`,{className:`m-0 line-clamp-2 text-body-sm leading-relaxed text-ink-2`,children:e.about}),(0,z.jsxs)(`div`,{className:`mt-auto flex items-center gap-4 pt-4`,children:[e.runIds.length>0&&(0,z.jsx)(`span`,{className:`text-body-sm whitespace-nowrap text-muted tabular-nums`,children:Pf(n?.runs??0,`run`)}),(0,z.jsx)(`a`,{href:e.href,className:S(P({variant:`outline`,size:`sm`}),`ml-auto flex-none no-underline`),children:Lf(e)})]})]})}function Kf({item:e,favs:t,stats:n}){let r=e.status?wf[e.status]:void 0;return(0,z.jsxs)(`li`,{className:`flex min-h-16 min-w-0 items-center gap-4 px-4 py-2`,children:[e.icon,(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,z.jsxs)(`a`,{href:e.href,className:`flex min-w-0 items-center gap-2 font-medium text-ink no-underline hover:underline`,children:[(0,z.jsx)(`span`,{className:`truncate`,children:e.name}),(0,z.jsx)(Ff,{status:e.status})]}),(0,z.jsxs)(`span`,{className:`truncate text-body-sm text-muted`,children:[Ef[e.kind]??e.kind,` · `,e.short]})]}),(0,z.jsx)(`span`,{className:`hidden w-32 flex-none text-body-sm text-muted md:block`,children:r?.label??``}),(0,z.jsx)(`span`,{className:`hidden w-16 flex-none text-right text-body-sm text-muted tabular-nums sm:block`,children:n?Pf(n.runs,`run`):``}),(0,z.jsx)(If,{item:e,favs:t,className:`flex-none text-muted aria-pressed:text-warn`}),(0,z.jsx)(`a`,{href:e.href,className:S(P({variant:`outline`,size:`sm`}),`flex-none no-underline`),children:Lf(e)})]})}function qf({items:e,favs:t,stats:n,layout:r,empty:i}){return e.length?r===`list`?(0,z.jsx)(`ul`,{className:S(m,`m-0 flex list-none flex-col divide-y divide-line-soft p-0`),children:e.map(e=>(0,z.jsx)(Kf,{item:e,favs:t,...n[e.fav]?{stats:n[e.fav]}:{}},e.fav))}):(0,z.jsx)(`ul`,{className:`m-0 grid list-none grid-cols-1 gap-4 p-0 @xl:grid-cols-2 @3xl:grid-cols-3`,children:e.map(e=>(0,z.jsx)(Gf,{item:e,favs:t,...n[e.fav]?{stats:n[e.fav]}:{}},e.fav))}):(0,z.jsx)(`div`,{className:S(m,`text-center text-body-sm text-muted`),children:i})}var Jf=[12,24,48];function Yf({page:e,size:t,total:n,onPage:r,onSize:i}){let a=Math.max(1,Math.ceil(n/t));return n<=Jf[0]?null:(0,z.jsxs)(`div`,{className:S(m,`flex flex-wrap items-center gap-4`),children:[(0,z.jsx)(`label`,{htmlFor:`agents-per-page`,className:`text-body-sm text-muted`,children:`Agents per page`}),(0,z.jsx)(d,{id:`agents-per-page`,size:`sm`,value:String(t),onChange:e=>i(Number(e.target.value)),className:`w-auto`,children:Jf.map(e=>(0,z.jsx)(`option`,{value:e,children:e},e))}),(0,z.jsxs)(`nav`,{"aria-label":`Pages`,className:`ml-auto flex items-center gap-1`,children:[(0,z.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":`Earlier page`,disabled:e===0,onClick:()=>r(e-1),children:(0,z.jsx)(et,{"aria-hidden":`true`})}),Array.from({length:a},(t,n)=>(0,z.jsx)(I,{variant:`ghost`,size:`icon-sm`,"aria-current":n===e?`page`:void 0,onClick:()=>r(n),className:`tabular-nums aria-[current]:bg-accent-soft`,children:n+1},n)),(0,z.jsx)(I,{variant:`icon`,size:`icon-sm`,"aria-label":`Later page`,disabled:e>=a-1,onClick:()=>r(e+1),children:(0,z.jsx)(_t,{"aria-hidden":`true`})})]})]})}var Xf=`forgeqe-agent-favourites`,Zf=`forgeqe-agent-favourites`;function Qf(){let e=()=>{try{return ve(localStorage.getItem(Xf))}catch{return[]}},[t,n]=(0,R.useState)(e);return(0,R.useEffect)(()=>{let t=()=>n(e());return window.addEventListener(Zf,t),window.addEventListener(`storage`,t),()=>{window.removeEventListener(Zf,t),window.removeEventListener(`storage`,t)}},[]),{favs:t,toggle:e=>{let r=t.includes(e)?t.filter(t=>t!==e):[...t,e];n(r);try{localStorage.setItem(Xf,JSON.stringify(r)),window.dispatchEvent(new Event(Zf))}catch{}Yr(`favourites`)}}}var $f=(e,t)=>{let n=ue(e),r=t?.[n.agent];return{fav:n.id,href:c(n),name:M(n.agent).name,about:n.about,short:n.short,icon:(0,z.jsx)(ae,{agent:n.agent,px:44,iconPx:24,frame:ap}),tags:r?.tags??[],...r?{status:r.status}:{},note:r?.note??``,kind:n.category,runIds:n.runs}},ep={active:{label:`Active`,tone:`pass`},changed:{label:`Change waiting`,tone:`warn`},draft:{label:`Draft`,tone:`neutral`},invalid:{label:`Needs fixing`,tone:`fail`},broken:{label:`Cannot run`,tone:`fail`},disabled:{label:`Disabled`,tone:`neutral`},drifted:{label:`Knowledge changed`,tone:`warn`}},tp={active:`ready`,changed:`partial`,draft:`partial`,invalid:`attention`,broken:`attention`,disabled:`unavailable`,drifted:`attention`},np={done:`done`,failed:`failed`,stopped:`stopped`,needs_input:`needed a person`,running:`running`},rp=e=>({fav:me(e.id),href:s(`agents`,`custom`,e.id),name:e.name,about:e.description||`No description yet.`,short:e.description||ep[e.state].label,icon:(0,z.jsx)(ae,{agent:e.id,icon:e.icon,px:44,iconPx:24,frame:ap}),status:tp[e.state],note:ep[e.state].label,kind:`custom`,runIds:[],tags:[...e.state===`active`?[]:[ep[e.state].label],...e.waiting?[`${e.waiting} waiting for you`]:[],...e.approvedVersion?[`v${e.approvedVersion}`]:[],...(e.byItself||[]).length?[e.byItself.length===2?`Runs on a schedule and when something happens`:e.byItself.includes(`schedule`)?`Runs on a schedule`:`Starts when something happens`]:[],...e.lastRun?[e.lastRun.outcome===`running`?`A run is going now`:`Last run: ${np[e.lastRun.outcome]||e.lastRun.outcome}, ${qr(e.lastRun.at)}`]:[],...e.problems?[`${e.problems} problem${e.problems===1?``:`s`}`]:[]]});function ip({cards:e}){let t=Object.values(e||{});if(!t.length||t.some(e=>e.status!==`unavailable`))return null;let n=[...new Set(t.map(e=>(e.note||``).replace(/:\s*Set up\.?$/,``).trim()).filter(Boolean))],r=n.length>0&&n.every(e=>/^No model/i.test(e));return(0,z.jsxs)(`div`,{role:`status`,className:`flex w-full flex-wrap items-center gap-x-4 gap-y-4 border-y border-line py-4`,children:[(0,z.jsx)(F,{icon:Ot,size:20,className:`flex-none text-icon`}),(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_280px] flex-col gap-1`,children:[(0,z.jsx)(`span`,{className:`font-medium`,children:`No agent can run yet`}),(0,z.jsx)(`span`,{className:`text-body-sm text-muted [overflow-wrap:anywhere]`,children:n.length?n.join(` · `):`ForgeQE is not set up on this computer.`})]}),(0,z.jsxs)(`a`,{className:P({variant:`primary`}),href:r?s(`settings`,`models`):s(`settings`,`setup`),"data-tip":r?`Add a model key`:`Install what's missing`,children:[(0,z.jsx)(xt,{"aria-hidden":`true`}),`Set up`]})]})}var ap=`size-10 @min-[260px]/col:size-11`;function op(){return(0,z.jsxs)(`a`,{href:s(`agents`,`custom`,`new`),className:S(P({variant:`accent`}),`no-underline`),"data-tip":`New agent`,children:[(0,z.jsx)(dt,{"aria-hidden":`true`}),`New`]})}function sp(){return(0,z.jsxs)(`a`,{href:s(`agents`,`teams`,`new`),className:S(P({variant:`outline`}),`no-underline`),"data-tip":`A team of ForgeQE's agents and your own`,children:[(0,z.jsx)(tt,{"aria-hidden":`true`}),`New team`]})}function cp({onDone:e}){let[t,n]=(0,R.useState)(!1),[r,i]=(0,R.useState)(null),[a,o]=(0,R.useState)(``),[s,c]=(0,R.useState)(``),[u,d]=(0,R.useState)(null),[f,p]=(0,R.useState)(!1),[m,h]=(0,R.useState)(!1),[g,_]=(0,R.useState)(``),v=(0,R.useRef)(null),[y,b]=(0,R.useState)(null);(0,R.useEffect)(()=>{if(!t)return;let e=!1;return we.library.list().then(t=>!e&&b(t.entries),()=>{e||(b([]),_(`Could not read your library.`))}),()=>{e=!0}},[t]);let x=async e=>{_(``),d(null);try{let{base64:t}=await we.library.pack(e.entry);i(t),o(e.entry);let n=await we.importPreview(t);d(n),c(n.id||``)}catch(e){i(null),_(e.message||`That library entry is not a valid package.`)}},C=()=>{i(null),o(``),c(``),d(null),p(!1),_(``)},w=e=>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):e)},r.onerror=()=>n(r.error||Error(`Could not read the package.`)),r.readAsDataURL(e)}),ee=async e=>{if(_(``),d(null),e.size>4194304)_(`The package is larger than 4 MB.`);else try{let t=await w(e);i(t),o(e.name);let n=await we.importPreview(t);d(n),c(n.id||``)}catch(e){i(null),_(e.message||`That file is not a valid package.`)}},T=async e=>{if(r){h(!0),_(``);try{let t=await we.importPreview(r,e.trim()||void 0);d(t)}catch(e){_(e.message)}finally{h(!1)}}},E=async()=>{if(r&&u){h(!0),_(``);try{let t=await we.importPack(r,{id:s.trim()||void 0,overwriteKnowledge:f});n(!1),C(),e(t.id)}catch(e){_(e.message)}finally{h(!1)}}},D=u?[...u.missing.environments.map(e=>`environment ${e}`),...u.missing.systems.map(e=>`system ${e}`),...u.missing.capabilities.map(e=>`capability ${e}`),...u.missing.skills.map(e=>`skill ${e}`),...u.missing.knowledge.map(e=>`knowledge ${e}`)]:[],te=!(!u||u.problems.length||u.idTaken);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(I,{size:`sm`,variant:`ghost`,onClick:()=>(n(!0),C()),"data-tip":`Import agent`,children:[(0,z.jsx)(kn,{"aria-hidden":`true`}),`Import`]}),(0,z.jsx)(Pr,{open:t,onClose:()=>(n(!1),C()),title:`Import a custom agent`,description:`From this computer's library, or a .forgeqe-agent.zip from Export to share (agent.json plus knowledge and skill files). It becomes a draft here: you edit, try and approve it. Environments and systems of this project must already exist.`,footer:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(I,{variant:`ghost`,onClick:()=>(n(!1),C()),children:[(0,z.jsx)(wt,{"aria-hidden":`true`}),`Cancel`]}),(0,z.jsxs)(I,{variant:`primary`,disabled:m||!te||u?.warnings.some(e=>e.includes(`already exists here`)&&e.startsWith(`knowledge`))&&!f,onClick:()=>void E(),"data-tip":`Import as draft`,children:[(0,z.jsx)(kn,{"aria-hidden":`true`}),`Import`]})]}),children:(0,z.jsxs)(`div`,{className:`flex flex-col gap-4 text-body-sm`,children:[(0,z.jsx)(`input`,{ref:v,type:`file`,accept:`.zip,application/zip`,className:`sr-only`,onChange:e=>{let t=e.target.files?.[0];e.target.value=``,t&&ee(t)}}),y&&y.length>0&&(0,z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,z.jsx)(`span`,{className:`font-medium`,children:`From your library`}),(0,z.jsx)(`ul`,{"aria-label":`Agents in your library`,className:S(`surface rounded-lg bg-bg p-6 shadow-sm`,`m-0 flex list-none flex-col p-0`),children:y.map((e,t)=>(0,z.jsx)(`li`,{className:S(t>0&&`border-t border-line-soft`),children:(0,z.jsxs)(`button`,{type:`button`,disabled:e.problems.length>0,onClick:()=>void x(e),"aria-pressed":a===e.entry,className:S(`flex w-full min-h-11 cursor-pointer items-center gap-4 rounded-base border-0 bg-transparent px-4 py-2 text-left text-body-sm text-ink no-underline transition-colors duration-150 hover:bg-tint hover:text-ink aria-[current]:bg-tint-hover aria-selected:bg-tint-hover aria-pressed:bg-tint-hover aria-checked:bg-tint-hover has-[:checked]:bg-tint-hover disabled:cursor-not-allowed disabled:opacity-50`,`flex-col items-start gap-1`),children:[(0,z.jsxs)(`span`,{className:`flex flex-wrap items-baseline gap-x-2`,children:[(0,z.jsx)(`span`,{className:`font-medium`,children:e.name}),(0,z.jsxs)(`span`,{className:`text-body-sm text-muted tabular-nums`,children:[e.version,e.publishedAt?` · ${qr(e.publishedAt)}`:``]})]}),e.description&&(0,z.jsx)(`span`,{className:`text-body-sm text-ink-2`,children:e.description}),e.problems.length>0&&(0,z.jsx)(`span`,{className:`text-body-sm text-fail`,children:e.problems[0]})]})},e.entry))})]}),(0,z.jsxs)(I,{size:`sm`,className:`self-start`,onClick:()=>v.current?.click(),"data-tip":a?`Choose another file`:`Choose .zip package`,children:[(0,z.jsx)(Fn,{"aria-hidden":`true`}),`Choose`]}),a&&(0,z.jsx)(`span`,{className:`text-muted`,children:a}),u&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`label`,{className:`flex flex-col gap-2`,children:[(0,z.jsx)(`span`,{className:`font-medium`,children:`Id`}),(0,z.jsx)(l,{value:s,maxLength:40,spellCheck:!1,onChange:e=>c(e.target.value.toLowerCase()),onBlur:()=>void T(s)}),u.idTaken&&(0,z.jsx)(`span`,{className:`text-body-sm text-warn`,children:`That id is taken here. Choose another before importing.`})]}),u.knowledge.length>0&&(0,z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,z.jsx)(`span`,{className:`font-medium`,children:`Knowledge it brings`}),(0,z.jsx)(`ul`,{className:`m-0 list-disc pl-6 text-ink-2`,children:u.knowledge.map(e=>(0,z.jsx)(`li`,{children:e.path},e.path))})]}),u.skills.length>0&&(0,z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,z.jsx)(`span`,{className:`font-medium`,children:`Skills it brings`}),(0,z.jsx)(`ul`,{className:`m-0 list-disc pl-6 text-ink-2`,children:u.skills.map(e=>(0,z.jsx)(`li`,{children:e.name},e.name))})]}),D.length>0&&(0,z.jsxs)(`div`,{className:S(N.warn,`flex flex-col gap-1`),children:[(0,z.jsx)(`span`,{className:`font-medium`,children:`This project still needs`}),(0,z.jsx)(`ul`,{className:`m-0 list-disc pl-6`,children:D.map(e=>(0,z.jsx)(`li`,{children:e},e))})]}),u.warnings.some(e=>e.startsWith(`knowledge file `)&&e.endsWith(` already exists here`))&&(0,z.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(pc,{checked:f,onCheckedChange:p}),`Replace existing knowledge files of the same path`]}),u.problems.length>0&&(0,z.jsx)(`ul`,{className:`m-0 list-disc pl-6 text-fail`,children:u.problems.map((e,t)=>(0,z.jsx)(`li`,{children:e},t))})]}),g&&(0,z.jsx)(`p`,{className:`m-0 text-fail`,children:g})]})})]})}function lp(){let[e,t]=(0,R.useState)(null),[n,r]=(0,R.useState)(``),[i,a]=(0,R.useState)(``);return(0,R.useEffect)(()=>{let e=!1;return we.list().then(n=>{e||(le(n.agents,`replace`),t(n.agents),a(n.off||``))},n=>{e||(t([]),r(n.message))}),()=>{e=!0}},[]),{rows:e,error:n,off:i,setRows:t}}function up(){return(0,z.jsxs)(`p`,{role:`status`,className:S(`m-0 flex flex-wrap items-center gap-x-2`,N.info),children:[`Custom agents are turned off for this project: none runs, from here, the terminal, Atlas or a schedule.`,(0,z.jsx)(`a`,{href:s(`settings`),children:`Turn them on in Settings, Custom agents`})]})}function dp(){let[e,t]=(0,R.useState)(null),[n,r]=(0,R.useState)(``);return(0,R.useEffect)(()=>{let e=!1;return Pe.list().then(n=>!e&&t(n.teams),n=>{e||(t([]),r(n.message))}),()=>{e=!0}},[]),(0,z.jsxs)(qo,{id:`custom-teams`,icon:tt,title:`Teams`,n:e?.length||void 0,description:`A lead and its members: ForgeQE's own agents, your custom agents, or any mix. The lead hands each task to a member; a team runs only a version a person approved.`,actions:(0,z.jsxs)(`a`,{href:s(`agents`,`teams`,`new`),className:S(P({variant:`outline`,size:`sm`}),`no-underline`),children:[(0,z.jsx)(dt,{"aria-hidden":`true`}),`New team`]}),children:[n&&(0,z.jsx)(`p`,{role:`alert`,className:`m-0 text-body-md text-fail [overflow-wrap:anywhere]`,children:n}),e?e.length===0?!n&&(0,z.jsx)(ze,{className:`py-4`,children:`No teams yet. A team is a file in .forgeqe/agents/teams naming a lead and its members; approve it with forgeqe team approve.`}):(0,z.jsx)(`ul`,{className:`m-0 grid list-none grid-cols-1 gap-4 p-0 sm:grid-cols-[repeat(auto-fill,minmax(260px,1fr))]`,children:e.map(e=>(0,z.jsx)(`li`,{className:`flex`,children:(0,z.jsxs)(`a`,{href:s(`agents`,`teams`,e.id),className:S(m,`group flex w-full flex-col gap-4 text-ink no-underline focus-visible:outline-2 focus-visible:outline-accent`),children:[(0,z.jsxs)(`span`,{className:`flex items-center justify-between gap-2`,children:[(0,z.jsx)(`span`,{"aria-hidden":`true`,className:`flex items-center`,children:(e.agents||[]).slice(0,5).map((e,t)=>(0,z.jsx)(`span`,{className:S(`inline-flex rounded-full ring-2 ring-bg`,t>0&&`-ml-2`),children:(0,z.jsx)(ne,{agent:e.agent,icon:e.icon,px:36,decorative:!0})},e.agent))}),(0,z.jsx)(Ve,{tone:ep[e.state].tone,icon:!1,children:ep[e.state].label})]}),(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,z.jsx)(`span`,{className:`truncate text-body-lg font-medium group-hover:underline`,children:e.name}),(0,z.jsxs)(`span`,{className:`text-body-sm text-muted`,children:[e.members===void 0?e.description:`${e.members+1} agents`,e.problems?` · ${e.problems} ${e.problems===1?`problem`:`problems`}`:``]})]})]})},e.id))}):(0,z.jsx)(`p`,{role:`status`,className:`m-0 text-body-md text-muted`,children:`Reading the teams…`})]})}function fp({rows:e,onDone:t}){let[n,r]=(0,R.useState)(!1),[i,a]=(0,R.useState)([]),[o,s]=(0,R.useState)(null),[c,u]=(0,R.useState)(``),[d,f]=(0,R.useState)(!1),[p,m]=(0,R.useState)(``),h=e.filter(e=>e.approvedVersion);if(!h.length)return null;let g=h.filter(e=>i.includes(e.id)),_=async()=>{if(o){f(!0);try{let e=await we.bulk(o,i,c);t(e.agents),m(`${o===`disable`?`Disabled`:`Enabled`} ${e.done.length}${e.skipped.length?`; skipped ${e.skipped.map(e=>e.id).join(`, `)} (already ${o}d)`:``}.`),s(null),a([]),r(!1)}catch(e){m(e.message)}finally{f(!1),u(``)}}};return(0,z.jsxs)(qo,{id:`custom-bulk`,icon:Qt,title:`Disable or enable several`,actions:(0,z.jsxs)(I,{size:`sm`,variant:`ghost`,onClick:()=>(r(!n),a([]),m(``)),"data-tip":n?void 0:`Select agents`,children:[n?(0,z.jsx)(wt,{"aria-hidden":`true`}):(0,z.jsx)(Qt,{"aria-hidden":`true`}),n?`Cancel`:`Select`]}),children:[n&&(0,z.jsxs)(`div`,{className:S(`surface rounded-lg bg-bg p-6 shadow-sm`,`flex flex-col gap-2`),children:[(0,z.jsxs)(`label`,{className:`flex items-center gap-2 text-body-sm font-medium`,children:[(0,z.jsx)(pc,{checked:i.length===h.length,onCheckedChange:e=>a(e?h.map(e=>e.id):[])}),`All `,h.length,` approved agents`]}),(0,z.jsx)(`ul`,{className:`m-0 grid list-none grid-cols-1 gap-2 p-0 sm:grid-cols-2`,children:h.map(e=>(0,z.jsx)(`li`,{children:(0,z.jsxs)(`label`,{className:`flex items-center gap-2 text-body-sm`,children:[(0,z.jsx)(pc,{checked:i.includes(e.id),onCheckedChange:t=>a(t?[...i,e.id]:i.filter(t=>t!==e.id))}),(0,z.jsx)(`span`,{className:`min-w-0 truncate`,children:e.name}),(0,z.jsx)(Ve,{tone:ep[e.state].tone,icon:!1,children:ep[e.state].label})]})},e.id))}),(0,z.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,z.jsxs)(I,{size:`sm`,disabled:!i.length,onClick:()=>s(`disable`),children:[(0,z.jsx)(Ct,{"aria-hidden":`true`}),i.length?`Disable (${i.length})`:`Disable`]}),(0,z.jsxs)(I,{size:`sm`,variant:`ghost`,disabled:!i.length,onClick:()=>s(`enable`),children:[(0,z.jsx)(gt,{"aria-hidden":`true`}),i.length?`Enable (${i.length})`:`Enable`]})]})]}),p&&(0,z.jsx)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:p}),o&&(0,z.jsx)(Pr,{open:!0,onClose:()=>(s(null),u(``)),title:`${o===`disable`?`Disable`:`Enable`} ${g.length} agent${g.length===1?``:`s`}`,description:o===`disable`?`None of them runs (not you, your team, Atlas or their schedules) until a person enables it again. Their versions and history are kept.`:`Their approved versions run again, and their schedules come back.`,footer:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(I,{variant:`ghost`,onClick:()=>(s(null),u(``)),children:[(0,z.jsx)(wt,{"aria-hidden":`true`}),`Cancel`]}),(0,z.jsxs)(I,{variant:`primary`,disabled:d||c!==String(g.length),onClick:()=>void _(),children:[o===`disable`?(0,z.jsx)(Ct,{"aria-hidden":`true`}):(0,z.jsx)(gt,{"aria-hidden":`true`}),o===`disable`?`Disable`:`Enable`]})]}),children:(0,z.jsxs)(`div`,{className:`flex flex-col gap-4 text-body-sm`,children:[(0,z.jsx)(`span`,{className:`text-ink-2`,children:g.map(e=>e.name).join(`, `)}),(0,z.jsxs)(`label`,{className:`flex flex-col gap-2`,children:[(0,z.jsxs)(`span`,{children:[`Type `,g.length,` to confirm`]}),(0,z.jsx)(l,{value:c,onChange:e=>u(e.target.value),autoComplete:`off`,inputMode:`numeric`})]})]})})]})}function pp({only:e}){let t=Qf(),n=lp(),[r,i]=(0,R.useState)(null);(0,R.useEffect)(()=>{ke.directory().then(e=>i(e.agents),()=>i({}))},[]);let[a,o]=(0,R.useState)([]);(0,R.useEffect)(()=>{je.list().then(e=>o(e.approvals.filter(e=>e.state===`waiting`)),()=>{})},[]);let[c,l]=(0,R.useState)(``),u=e?he.find(t=>t.id===e):void 0,[d,f]=(0,R.useState)(u?{...Af,kinds:[u.id]}:Af),[p,h]=(0,R.useState)(Jf[0]),[_,v]=(0,R.useState)(`all`),[y,b]=(0,R.useState)(`runs`),[x,C]=(0,R.useState)(`grid`),[w,ee]=(0,R.useState)(0),[E,D]=(0,R.useState)([]);(0,R.useEffect)(()=>{ye.list().then(e=>D(Array.isArray(e.runs)?e.runs:[]),()=>{})},[]);let te=(0,R.useMemo)(()=>de(c),[c]),ne=(0,R.useMemo)(()=>j(n.rows||[],c),[n.rows,c]),O=(0,R.useMemo)(()=>[...te.map(e=>$f(e.id,r)),...ne.map(rp)],[te,ne,r]),re=(0,R.useMemo)(()=>Df(O,E),[O,E]),ie=(0,R.useMemo)(()=>c.trim()?[]:Nf(O,t.favs,re),[O,t.favs,re,c]),ae=O.filter(e=>jf(e,d)),k={all:ae.length,ready:ae.filter(e=>e.status===`ready`).length,attention:ae.filter(e=>e.status===`attention`).length,favourites:ae.filter(e=>t.favs.includes(e.fav)).length},A=Mf(O,{tab:_,picks:d,sort:y,favs:t.favs,stats:re}),oe=Math.max(1,Math.ceil(A.length/p)),se=Math.min(w,oe-1),ce=A.slice(se*p,se*p+p),ue=e=>t=>{e(t),ee(0)},fe=O.filter(e=>e.status===`ready`).length;return(0,z.jsxs)(`div`,{className:`flex min-h-(--screen) flex-col bg-canvas`,children:[(0,z.jsx)(Fr,{}),(0,z.jsxs)(`main`,{className:S(Ir,`max-w-[1400px] flex-auto gap-8`),children:[(0,z.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[u?(0,z.jsx)(Ue,{to:{href:s(`agents`),label:`All agents`}}):(0,z.jsx)(Ue,{}),(0,z.jsxs)(`div`,{className:`flex flex-wrap items-start gap-x-6 gap-y-4`,children:[(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_480px] flex-col gap-2`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-4`,children:[(0,z.jsx)(Xn,{pixel:T.agents,size:`lg`}),(0,z.jsx)(`h1`,{className:`m-0 font-home text-headline-lg`,children:u?u.label:`Agents`}),r&&(0,z.jsxs)(Ve,{tone:`neutral`,icon:!1,className:`tabular-nums`,children:[O.length,` agents · `,fe,` ready`]})]}),(0,z.jsx)(`p`,{className:`m-0 max-w-[720px] text-body-sm leading-relaxed text-ink-2`,children:u?u.about:`Find, filter and open ForgeQE's agents and your team's own: chat with one, see what it can do, or make a new one.`})]}),!n.off&&(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 self-center`,children:[(0,z.jsx)(cp,{onDone:e=>{we.list().then(e=>{le(e.agents,`replace`),n.setRows(e.agents)},()=>{}),location.hash=s(`agents`,`custom`,e)}}),(0,z.jsx)(sp,{}),(0,z.jsx)(op,{})]})]})]}),(0,z.jsx)(ip,{cards:r}),u&&a.length>0&&(0,z.jsx)(`div`,{role:`status`,className:`self-start`,children:(0,z.jsx)(`a`,{href:s(`agents`,`custom`,a[0].agent),className:S(N.warn,`flex items-center gap-2 font-medium no-underline hover:text-warn`),children:a.length===1?`${a[0].agent} is waiting for your approval`:`${a.length} requests from your agents are waiting for your approval`})}),!u&&(0,z.jsx)(Rf,{items:ie,favs:t,stats:re}),n.off&&(0,z.jsx)(up,{}),u?.id===`custom`&&n.rows&&(0,z.jsx)(fp,{rows:n.rows,onDone:n.setRows}),u?.id===`custom`&&!n.off&&(0,z.jsx)(dp,{}),(0,z.jsxs)(`div`,{className:`grid items-start gap-6 lg:grid-cols-[280px_minmax(0,1fr)]`,children:[(0,z.jsx)(Vf,{items:O,picks:d,setPicks:ue(f),search:(0,z.jsx)(He,{id:`agents-search`,label:`Find an agent`,placeholder:`Find among ${O.length} agents`,value:c,onChange:ue(l),className:`max-w-none flex-auto`})}),(0,z.jsxs)(`div`,{className:`@container flex min-w-0 flex-col gap-4`,children:[(0,z.jsxs)(`div`,{className:S(m,`flex flex-wrap items-center gap-4 px-4 py-2`),children:[(0,z.jsx)(Hf,{value:_,onChange:ue(v),counts:k}),(0,z.jsx)(`span`,{className:`ml-auto text-body-sm text-muted tabular-nums`,children:A.length?`Showing ${se*p+1}–${se*p+ce.length} of ${A.length}`:`None`}),(0,z.jsx)(Uf,{value:y,onChange:ue(b)}),(0,z.jsx)(Wf,{value:x,onChange:C})]}),n.error&&(0,z.jsxs)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:[`Your custom agents cannot be read: `,n.error]}),(0,z.jsx)(qf,{items:ce,favs:t,stats:re,layout:x,empty:r?_===`favourites`&&!k.favourites?`No favourites yet: star an agent to keep it here and on top.`:(0,z.jsxs)(`span`,{className:`flex flex-col items-center gap-2`,children:[(0,z.jsx)(g,{name:T.agents,px:22}),(0,z.jsx)(`span`,{className:`text-body-lg font-medium text-ink`,children:`No agent matches`}),(0,z.jsx)(`span`,{children:`Clear a filter or the search, or make a custom agent for the job.`})]}):`Reading the agents…`}),(0,z.jsx)(Yf,{page:se,size:p,total:A.length,onPage:ee,onSize:ue(h)})]})]})]})]})}var mp=5;function hp({page:e,onTab:t=!1}){let[n,r]=(0,R.useState)([]),[i,a]=(0,R.useState)(null),[o,c]=(0,R.useState)(``),[l,u]=(0,R.useState)(null);(0,R.useEffect)(()=>{let t=!1;return ke.directory().then(n=>!t&&u(n.agents[e.agent]??null),()=>{}),ke.tools(e.agent).then(e=>!t&&a(e),e=>!t&&c(e.message)),Le.prompts().then(n=>!t&&r(n.agents.filter(t=>e.runs.includes(t.name))),()=>{}),()=>{t=!0}},[e]);let d=M(e.agent).name,f=[...new Set(n.map(e=>e.prompt))];return(0,z.jsxs)(`div`,{className:`flex w-full flex-col gap-8 pt-2`,children:[l&&l.status!==`ready`&&(0,z.jsx)(_p,{card:l,name:d}),(0,z.jsx)(Hc,{scope:{kind:`page`,page:e},composer:!t}),(0,z.jsx)(`div`,{className:m,children:(0,z.jsx)($c,{title:`What ${_e(d)} can use`,defaultOpen:t,children:(0,z.jsxs)(`div`,{className:`flex flex-col gap-6 pt-2`,children:[(0,z.jsx)(qo,{id:`agent-tools`,icon:ft,title:`Tools it can use`,level:3,children:o?(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-fail`,children:o}):i?(0,z.jsx)(xp,{view:i,limit:mp,more:s(`agents`,e.id,`tools`)}):(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`Reading its tools…`})}),i&&i.connections.length>0&&(0,z.jsx)(qo,{id:`agent-connected`,icon:it,title:`Connected to`,level:3,children:(0,z.jsx)(yp,{list:i.connections,limit:4,more:s(`agents`,e.id,`tools`)})}),e.prompt!==!1&&(0,z.jsx)(qo,{id:`agent-prompt`,icon:Yt,title:`Its instructions`,level:3,children:(0,z.jsxs)(`a`,{href:s(`prompts`),className:S(`surface rounded-lg bg-bg p-6 shadow-sm`,`flex items-center gap-4 text-ink no-underline`),children:[(0,z.jsx)(F,{icon:Dn,size:18,className:`flex-none text-muted`}),(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,z.jsx)(`span`,{className:`text-body-sm font-medium`,children:f.length?f.map(e=>`${e}.md`).join(`, `):`The prompt it starts from`}),(0,z.jsxs)(`span`,{className:`text-body-sm text-muted`,children:[`What `,_e(d),` starts with, and your team's additions: change them in Prompts.`]})]}),(0,z.jsx)(dn,{size:16,"aria-hidden":`true`,className:`flex-none text-muted`})]})})]})})})]})}var gp={setup:{to:s(`settings`,`setup`),label:`Settings, Set up`},models:{to:s(`settings`,`models`),label:`Settings, Models`},tests:{to:s(`settings`,`tests`),label:`Settings, Code`},databases:{to:s(`settings`,`databases`),label:`Settings, Databases`},integrations:{to:s(`settings`,`integrations`),label:`Settings, Integrations`},features:{to:s(`settings`,`features`),label:`What's ready`}};function _p({card:e,name:t}){let n=wf[e.status],r=e.needs??[];return(0,z.jsx)(qo,{id:`agent-needs`,icon:Tt,title:`What it needs`,actions:(0,z.jsx)(Ve,{tone:n.tone,children:n.label}),children:r.length===0?(0,z.jsx)(`p`,{className:S(N.info,`m-0`),children:e.note}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:r.some(e=>e.blocks)?`${_e(t,!0)} cannot work until the first ${r.filter(e=>e.blocks).length===1?`one is`:`ones are`} set up.`:`${_e(t,!0)} works, without the parts below.`}),(0,z.jsx)(`ul`,{"aria-label":`What ${_e(t)} needs`,className:S(m,`m-0 flex list-none flex-col p-0`),children:r.map((e,t)=>(0,z.jsxs)(`li`,{className:S(`flex items-center gap-4 px-4 py-2`,t>0&&`border-t border-line-soft`),children:[(0,z.jsx)(pt,{size:16,"aria-label":e.blocks?`Needed`:`Optional`,className:S(`flex-none`,e.blocks?`text-fail`:`text-warn`)}),(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,z.jsx)(`span`,{className:`text-body-sm font-medium`,children:e.what}),(0,z.jsx)(`span`,{className:`text-body-sm text-muted [overflow-wrap:anywhere]`,children:e.why})]}),e.fix&&(0,z.jsxs)(`a`,{href:gp[e.fix].to,className:`flex flex-none items-center gap-1 text-body-sm`,children:[gp[e.fix].label,(0,z.jsx)(dn,{size:14,"aria-hidden":`true`})]})]},`${e.what}:${t}`))})]})})}var vp={repository:`branch`,database:`container`,environment:`web`,system:`plug`};function yp({list:e,limit:t,more:n}){let r=t?e.slice(0,t):e;return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`ul`,{className:`m-0 grid list-none grid-cols-1 gap-2 p-0 sm:grid-cols-2`,children:r.map((e,t)=>(0,z.jsxs)(`li`,{className:S(e.on?m:p,`flex items-center gap-4`),children:[(0,z.jsx)(g,{name:vp[e.kind],px:22,className:S(!e.on&&`opacity-50 grayscale`)}),(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,z.jsx)(`span`,{className:`truncate text-body-sm font-medium`,"data-tip":e.name,children:e.name}),(0,z.jsx)(`span`,{className:`truncate text-body-sm text-muted`,children:e.on?e.detail:`Not connected: ${e.why||`not set up`}`})]})]},`${e.kind}:${e.name}:${t}`))}),n&&r.length<e.length&&(0,z.jsxs)(`a`,{href:n,className:`self-start text-body-sm`,children:[`Show all `,e.length,` connections`]})]})}function bp({page:e}){let[t,n]=(0,R.useState)(null),[r,i]=(0,R.useState)(``);(0,R.useEffect)(()=>{let t=!1;return ke.tools(e.agent).then(e=>!t&&n(e),e=>!t&&i(e.message)),()=>{t=!0}},[e]);let a=M(e.agent).name;return(0,z.jsxs)(`div`,{className:`flex min-h-(--screen) flex-col`,children:[(0,z.jsx)(Fr,{}),(0,z.jsxs)(`main`,{className:Ir,children:[(0,z.jsx)(Ue,{to:{href:s(`agents`,e.id),label:a},className:`mb-4`}),(0,z.jsxs)(`div`,{className:`mb-1 flex items-center gap-4`,children:[(0,z.jsx)(ae,{agent:e.agent,px:40,iconPx:24,frame:`size-10`}),(0,z.jsxs)(`h1`,{className:`m-0 text-headline-lg`,children:[`What `,_e(a),` can use`]})]}),(0,z.jsxs)(`p`,{className:`mt-1 mb-6 text-body-sm leading-relaxed text-ink-2`,children:[t?`${t.title.replace(/\.$/,``)}.`:e.about,` Every tool it has, in the groups its session is given, and what it reaches from this project.`]}),r?(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-fail`,children:r}):t?(0,z.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[(0,z.jsx)(qo,{id:`all-tools`,icon:ft,title:`Tools it can use`,children:(0,z.jsx)(xp,{view:t,openAll:!0})}),t.connections.length>0&&(0,z.jsx)(qo,{id:`all-connected`,icon:it,title:`Connected to`,children:(0,z.jsx)(yp,{list:t.connections})})]}):(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`Reading its tools…`})]})]})}function xp({view:e,limit:t,more:n,openAll:r}){let[i,a]=(0,R.useState)(()=>r?e.groups.map(e=>e.id):[]),o=t?e.groups.slice(0,t):e.groups,s=e.groups.reduce((e,t)=>e+t.tools.length,0),c=e.groups.filter(e=>e.on).length;return(0,z.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,z.jsxs)(`p`,{className:`m-0 text-body-sm text-muted`,children:[c,` of `,e.groups.length,` `,e.groups.length===1?`group`:`groups`,` usable here.`]}),(0,z.jsx)(`ul`,{className:S(m,`m-0 flex list-none flex-col p-0`),children:o.map((e,n)=>{let r=i.includes(e.id);return(0,z.jsxs)(`li`,{className:S(n>0&&`border-t border-line-soft`),children:[(0,z.jsxs)(`button`,{type:`button`,"aria-expanded":r,"aria-controls":`tools-${n}`,disabled:!e.tools.length,onClick:()=>a(r?i.filter(t=>t!==e.id):[...i,e.id]),className:u,children:[e.on?(0,z.jsx)(gt,{size:16,"aria-label":`Usable`,className:`flex-none text-pass`}):(0,z.jsx)(Ct,{size:16,"aria-label":`Not usable here`,className:`flex-none text-muted`}),(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,z.jsxs)(`span`,{className:`text-body-sm font-medium`,children:[e.label,e.tools.length>0&&(0,z.jsxs)(`span`,{className:`font-normal text-muted`,children:[` · `,e.tools.length]})]}),(0,z.jsx)(`span`,{className:S(`text-body-sm text-muted`,t&&`truncate`),children:e.on?[e.about,e.limited].filter(Boolean).join(` · `):`Not here: ${e.why||`not set up`}`})]}),e.tools.length>0&&(0,z.jsx)(_t,{size:16,"aria-hidden":`true`,className:S(`flex-none text-muted transition-transform duration-200`,r&&`rotate-90`)})]}),(0,z.jsx)(lr,{open:r,id:`tools-${n}`,children:(0,z.jsx)(`ul`,{className:`m-0 flex list-none flex-wrap gap-2 px-4 pb-4 pl-10`,children:e.tools.map(e=>(0,z.jsxs)(`li`,{"data-tip":e.what||void 0,className:Qr,children:[e.name,e.what&&(0,z.jsx)(`span`,{className:`ml-2 font-sans text-muted`,children:e.what})]},e.name))})})]},e.id)})}),n&&(o.length<e.groups.length||s>0)&&(0,z.jsx)(`a`,{href:n,className:`self-start text-body-sm`,children:o.length<e.groups.length?`Show all ${e.groups.length} groups and ${s} tools`:`Show every tool (${s})`})]})}function Sp({name:e,chats:t}){return(0,z.jsx)(`div`,{className:S(m,`@container`),children:(0,z.jsx)(`ul`,{"aria-label":`Conversations with ${_e(e)}`,className:`m-0 flex list-none flex-col p-2`,children:t.map(e=>(0,z.jsx)(`li`,{children:(0,z.jsx)(vc,{c:e})},e.id))})})}function Cp({page:e}){let[t,n]=(0,R.useState)(null),[r,i]=(0,R.useState)(``);(0,R.useEffect)(()=>{let t=!1;return Re.list().then(r=>!t&&n(gc(nr(e,r.chats))),e=>!t&&i(e.message)),()=>{t=!0}},[e]);let a=M(e.agent).name;return(0,z.jsxs)(`div`,{className:`flex min-h-(--screen) flex-col`,children:[(0,z.jsx)(Fr,{}),(0,z.jsxs)(`main`,{className:Ir,children:[(0,z.jsx)(Ue,{to:{href:s(`agents`,e.id),label:a},className:`mb-4`}),(0,z.jsxs)(`div`,{className:`mb-1 flex items-center gap-4`,children:[(0,z.jsx)(ae,{agent:e.agent,px:40,iconPx:24,frame:`size-10`}),(0,z.jsxs)(`h1`,{className:`m-0 text-headline-lg`,children:[`Conversations with `,_e(a)]})]}),(0,z.jsxs)(`p`,{className:`mt-1 mb-6 text-body-sm leading-relaxed text-ink-2`,children:[`Every chat started from `,_e(a),`'s page, newest first. Open one to read it or carry it on.`]}),r?(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-fail`,children:r}):t?t.length===0?(0,z.jsxs)(ze,{className:`py-4`,children:[`No conversations with `,_e(a),` yet. `,(0,z.jsx)(`a`,{href:s(`agents`,e.id),children:`Ask it`}),` to start one.`]}):(0,z.jsx)(Sp,{name:a,chats:t}):(0,z.jsx)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:`Loading…`})]})]})}var wp=60,Tp=Xr.tabs;function Ep(){try{let e=JSON.parse(localStorage.getItem(Tp)||`[]`);return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}catch{return[]}}function Dp(e,t,n){let r=Ep().find(t=>t.startsWith(`${e}:`)),i=r?.slice(e.length+1);if(!r&&n)try{i=localStorage.getItem(n)??void 0}catch{}return i&&t.includes(i)?i:void 0}function Op(e,t){Jr().then(()=>{let n=`${e}:${t}`,r=Ep();if(r[0]!==n){try{localStorage.setItem(Tp,JSON.stringify([n,...r.filter(t=>!t.startsWith(`${e}:`))].slice(0,wp)))}catch{return}Yr(`tabs`)}})}function kp(e,t,n,r){(0,R.useEffect)(()=>{let i=!1;return Jr().then(()=>{let a=Dp(e,t);!i&&a&&!n()&&r(a)}),()=>{i=!0}},[e])}function Ap(e,t,n,r,i){let a=(0,R.useRef)(!0),o=n.join(`|`);(0,R.useEffect)(()=>{if(!n.length)return;let o=a.current;if(a.current=!1,o&&r){let r=location.hash;Jr().then(()=>{if(location.hash!==r)return;let a=Dp(e,n);a&&a!==t?i(a):Op(e,t)})}else Op(e,t)},[e,t,o,r])}var jp=`agent`,Mp={desktop:`desktop`,mobile:`mobile`,coding:`record`,exploration:`explore`,"knowledge-agent":`knowledge`,responsive:`responsive`,basal:`basal`,migration:`migration`,db:`data`};function Np(e){let t=T[Mp[e]??e];return t?{pixel:t}:Jt}function Pp({page:e,title:t,label:n,tabs:r,current:i,onPick:a,tabHref:o,below:s,end:c,agentBody:l,keepAgent:u=!1,wide:d=!1,back:f,canvas:p=!1,children:m}){let h=o?.(jp).replace(/\/agent$/,``),g=!!h&&i===`agent`&&location.hash.replace(/\/+$/,``)===h;Ap(e.id,i,[jp,...r.map(e=>e.id)],g,e=>o?location.replace(o(e)):a(e));let _=(0,z.jsx)(Lr,{label:n,current:i,onPick:a,tabs:[{id:jp,label:`Agent`,icon:Np(e.id)},...r],className:`mb-0`}),v=i===jp,y=(n,r)=>(0,z.jsxs)(`div`,{className:`@container flex min-h-(--screen) flex-col`,children:[(0,z.jsx)(Fr,{}),(0,z.jsxs)(`main`,{className:S(Ir,Cr,`@container flex-auto`,p?`gap-6`:`gap-4`),children:[(0,z.jsx)(sf,{agent:e,...t?{title:t}:{},tabs:_,end:c,...f?{back:f}:{},tabsBelow:p}),(0,z.jsx)(`div`,{role:`tabpanel`,id:`panel-${r}`,"aria-labelledby":`tab-${r}`,className:S(`flex min-w-0 flex-col`,p?`gap-6`:`gap-4`,d&&S(`@container [--wide-w:min(var(--wide-max,100000px),calc(var(--page-w)_-_48px))] md:[--wide-w:min(var(--wide-max,100000px),calc(var(--page-w)_-_96px))] w-(--wide-w) max-w-none self-start ml-[calc((100%_-_var(--wide-w))/2)]`,`[--wide-max:1384px]`)),children:n})]})]}),b=l===void 0?(0,z.jsx)(cf,{agent:e,...t?{title:t}:{},tabs:_,below:s,end:c}):y(l,jp);return u?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`div`,{hidden:!v,children:b}),!v&&y(m,i)]}):v?b:y(m,i)}function Fp({text:e,onRetry:t}){return(0,z.jsxs)(`div`,{role:`alert`,className:S(N.fail,`flex flex-col items-start gap-4`),children:[(0,z.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:e}),t&&(0,z.jsxs)(I,{onClick:t,"data-tip":`Try again`,children:[(0,z.jsx)(st,{"aria-hidden":`true`}),`Retry`]})]})}var Ip=[`pl-0`,`pl-0`,`pl-4`,`pl-8`,`pl-12`,`pl-16`,`pl-20`];function Lp(){let[e,t]=(0,R.useState)(``),[n,r]=(0,R.useState)(!1),[i,a]=(0,R.useState)(!1),[o,s]=(0,R.useState)(``),[c,l]=(0,R.useState)(null),u=async()=>{let t=e.trim();if(t){a(!0),s(``);try{l({query:t,...await be.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,z.jsxs)(`section`,{"aria-labelledby":`ask-docs-title`,className:`mb-6`,children:[(0,z.jsx)(`h2`,{id:`ask-docs-title`,className:`sr-only`,children:`Ask the documents`}),(0,z.jsxs)(`form`,{role:`search`,"aria-label":`Ask the documents`,className:`flex flex-wrap items-center gap-x-4 gap-y-2`,onSubmit:e=>{e.preventDefault(),u()},children:[(0,z.jsx)(He,{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,z.jsxs)(`span`,{className:`flex items-center gap-2 text-body-sm`,children:[(0,z.jsx)(Er,{checked:n,onChange:r,label:`Let the model pick sections`}),`Let the model pick sections`]}),(0,z.jsxs)(I,{busy:i,size:`sm`,type:`submit`,disabled:i||!e.trim(),children:[(0,z.jsx)(lt,{"aria-hidden":`true`}),i?`Searching…`:`Search`]})]}),o&&(0,z.jsx)(`div`,{className:`mt-4`,children:(0,z.jsx)(Fp,{text:o,onRetry:()=>void u()})}),(0,z.jsx)(`div`,{"aria-live":`polite`,children:c&&!o&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`p`,{role:`status`,className:`mt-4 mb-0 text-body-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,z.jsx)(`ul`,{"aria-label":`Passages found`,className:`m-0 mt-2 list-none p-0`,children:c.hits.map((e,t)=>(0,z.jsxs)(`li`,{className:`border-t border-line-soft py-2 text-body-sm [overflow-wrap:anywhere]`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`font-medium text-ink`,children:e.where}),e.picked&&(0,z.jsx)(Ve,{tone:`pass`,children:`Picked by the model`})]}),(0,z.jsxs)(`span`,{className:`mt-1 block font-mono text-body-sm text-muted`,children:[e.source,`/`,e.file,`:`,e.line]}),(0,z.jsx)(ni,{text:e.text,className:`mt-2 text-body-sm`})]},`${e.source}/${e.file}:${e.line}:${t}`))})]})})]})}function Rp({sub:e}){let t=ue(`knowledge-agent`),n=(e||``).split(`/`)[0]===`notes`?`notes`:jp,[r,i]=(0,R.useState)(null),[a,o]=(0,R.useState)(``),[c,u]=(0,R.useState)(null),[d,f]=(0,R.useState)(!1),[p,m]=(0,R.useState)(``),[h,g]=(0,R.useState)(``),[_,v]=(0,R.useState)(`read`),[y,b]=(0,R.useState)(null),[x,C]=(0,R.useState)(!1),[w,ee]=(0,R.useState)(``),[T,E]=(0,R.useState)(null),D=()=>{m(``),v(`edit`),u({rel:``,text:`#
51
51
 
52
52
  ## Rules
53
53
 
54
54
  -
55
- `,was:``,isNew:!0})},te=(0,R.useCallback)(()=>{o(``),be.knowledge().then(i,e=>o(e.message)),be.docsStatus().then(b,()=>b(null))},[]),ne=async()=>{C(!0),g(``),ee(``);try{let e=await be.indexDocs();b(e),g(`Indexed ${e.documents} ${e.documents===1?`document`:`documents`}, ${e.sections.toLocaleString()} sections.${e.waiting?` ${e.waiting} PDF, Word or Excel ${e.waiting===1?`file has`:`files have`} no text that could be read.`:``}`)}catch(e){ee(e.message)}finally{C(!1)}},O=async e=>{if(v(`outline`),!(T?.rel===e&&T.outline)){E({rel:e});try{E({rel:e,outline:await be.docOutline(e)})}catch(t){E({rel:e,error:t.message})}}};(0,R.useEffect)(te,[te]);let re=async e=>{m(``);try{let t=await be.knowledgeFile(e);u({rel:e,text:t.text,was:t.text,isNew:!1}),v(`read`)}catch(e){o(e.message)}},ie=async()=>{if(c){f(!0),m(``);try{let e=c.rel.trim();await be.saveKnowledgeFile(e,c.text),u(null),g(`Saved ${e}. Agents read it from their next request.`),te()}catch(e){m(e.message)}finally{f(!1)}}},ae=r?.files.filter(e=>e.used).length??0;return(0,z.jsxs)(Np,{title:Zr(`knowledge`),page:t,label:`Knowledge`,current:n,tabHref:e=>e===`agent`?s(`knowledge`,Ap):s(`knowledge`,e),onPick:e=>location.hash=e===`agent`?s(`knowledge`,Ap):s(`knowledge`,e),tabs:[{id:`notes`,label:r?`Notes (${r.files.length})`:`Notes`,icon:Gt}],below:(0,z.jsx)(mp,{page:t}),children:[(0,z.jsxs)(`p`,{className:`m-0 text-body-sm leading-relaxed text-ink-2`,children:[`What the agents know about your product: its features, business rules and terms, as Markdown files in`,` `,(0,z.jsx)(`span`,{className:`font-mono text-body-sm`,children:r?.dir||`.forgeqe/knowledge`}),`. Each agent reads the parts that match its task. The industry and regulations are in`,` `,(0,z.jsx)(`a`,{href:s(`settings`,`evidence`),children:`Settings, Evidence`}),`, and the folders in `,(0,z.jsx)(`a`,{href:s(`settings`,`agents`),children:`Settings, Agents`}),`.`]}),a&&(0,z.jsx)(Pp,{text:a,onRetry:te}),!r&&!a&&(0,z.jsx)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:`Loading…`}),r&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(Mr,{label:`Knowledge files`,className:`mb-6`,children:[(0,z.jsx)(mr,{icon:Dn,label:`Files`,value:String(r.files.length)}),(0,z.jsx)(mr,{icon:Ze,label:`Read by agents`,value:String(ae),note:ae<r.files.length?`The others are templates still to fill in`:void 0}),(0,z.jsx)(mr,{icon:at,label:`Per browser run`,value:r.maxChars?`${r.maxChars.toLocaleString()}`:`Off`,note:r.maxChars?`characters at most`:void 0}),(0,z.jsx)(mr,{icon:lt,label:`Document sections`,value:y?y.sections.toLocaleString():`–`,note:y?`In ${y.documents} ${y.documents===1?`document`:`documents`}${y.waiting?`; ${y.waiting} PDF, Word or Excel ${y.waiting===1?`file is`:`files are`} not read yet`:``}`:void 0})]}),(0,z.jsx)(Ip,{}),(0,z.jsx)(`div`,{"aria-live":`polite`,children:h&&(0,z.jsx)(`p`,{className:S(N.pass,`mt-0 mb-4`),children:h})}),w&&(0,z.jsx)(`div`,{className:`mb-4`,children:(0,z.jsx)(Pp,{text:w,onRetry:()=>void ne()})}),(0,z.jsxs)(`div`,{className:`mb-4 flex flex-wrap items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`flex-1 text-body-sm text-muted`,children:`Open a file to read it; a template is a starting point for you to fill in.`}),y&&(0,z.jsxs)(I,{onClick:()=>void ne(),disabled:x||y.indexing,"data-tip":`Reads the PDF, Word and Excel files of your documents so they can be searched. It can take a few minutes.`,children:[(0,z.jsx)(Ln,{"aria-hidden":`true`}),x||y.indexing?`Indexing…`:`Index PDFs, Word and Excel`]}),(0,z.jsxs)(I,{variant:`accent`,onClick:D,"data-tip":`Add a file`,children:[(0,z.jsx)(dt,{"aria-hidden":`true`}),`Add`]})]}),(0,z.jsx)(Sr,{label:`Knowledge files`,placeholder:`Find a file`,height:`max(320px, calc(var(--screen) - 288px))`,empty:`No knowledge files yet. Add one for each product area: what it does, its rules, its words.`,head:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-left text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,children:`File`}),(0,z.jsx)(`th`,{scope:`col`,className:S(`px-4 py-2 text-left text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,`text-right`),children:`Status`})]}),children:r.files.map(e=>(0,z.jsxs)(`tr`,{onClick:()=>void re(e.rel),className:`h-12 cursor-pointer border-t border-line-soft align-middle transition-colors duration-150 hover:bg-tint data-[state=selected]:bg-tint-hover`,children:[(0,z.jsxs)(`td`,{className:`px-4 py-2`,children:[(0,z.jsxs)(I,{variant:`link`,size:`inline`,onClick:t=>(t.stopPropagation(),void re(e.rel)),className:`whitespace-normal text-left`,children:[(0,z.jsx)(F,{icon:Dn,size:16,className:`flex-none text-muted`}),(0,z.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:e.title})]}),(0,z.jsx)(`span`,{className:`mt-1 block pl-6 font-mono text-body-sm text-muted [overflow-wrap:anywhere]`,children:e.rel})]}),(0,z.jsx)(`td`,{className:S(`px-4 py-2`,`w-[1%] text-right whitespace-nowrap`),children:(0,z.jsx)(Ve,{tone:e.used?`pass`:`neutral`,icon:!!e.used,children:e.used?e.state===`edited`?`Filled in`:`Read by agents`:`Template: fill it in`})})]},e.rel))})]}),(0,z.jsx)(Pr,{wide:!0,open:!!c,onClose:()=>u(null),title:c?.isNew?`Add a knowledge file`:r?.files.find(e=>e.rel===c?.rel)?.title||c?.rel||``,description:c?.isNew?`Markdown. Headings split it into parts; an agent gets the parts that match its task. Never put passwords or keys here.`:c?.rel,footer:(0,z.jsxs)(z.Fragment,{children:[p&&(0,z.jsx)(`span`,{role:`alert`,className:`mr-auto self-center text-body-sm text-fail [overflow-wrap:anywhere]`,children:p}),(0,z.jsxs)(I,{onClick:()=>u(null),children:[(0,z.jsx)(wt,{"aria-hidden":`true`}),`Cancel`]}),(0,z.jsxs)(I,{busy:d,variant:`primary`,disabled:d||!c||!c.rel.trim()||!c.isNew&&c.text===c.was,onClick:()=>void ie(),children:[(0,z.jsx)(On,{"aria-hidden":`true`}),d?`Saving…`:`Save`]})]}),children:c&&(0,z.jsxs)(`div`,{className:`flex flex-col gap-4 pt-4`,children:[c.isNew&&(0,z.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,z.jsx)(`label`,{htmlFor:`knowledge-name`,className:`font-medium`,children:`File name`}),(0,z.jsx)(l,{id:`knowledge-name`,value:c.rel,spellCheck:!1,placeholder:`products/checkout.md`,className:`font-mono`,onChange:e=>u({...c,rel:e.target.value})}),(0,z.jsx)(`span`,{className:`text-body-sm text-muted`,children:`In the knowledge folder; a folder before the name groups files.`})]}),!c.isNew&&(0,z.jsx)(vr,{label:`Show the file`,value:_,onChange:e=>e===`outline`?void O(c.rel):v(e),options:[{id:`read`,label:`Read`},{id:`edit`,label:`Edit`},{id:`outline`,label:`Outline`}]}),_===`outline`&&!c.isNew?(0,z.jsxs)(`div`,{"aria-live":`polite`,children:[T?.error&&(0,z.jsx)(Pp,{text:T.error,onRetry:()=>void O(c.rel)}),!T?.outline&&!T?.error&&(0,z.jsx)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:`Loading…`}),T?.outline&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`p`,{className:`mt-0 mb-2 text-body-sm text-muted`,children:`The parts an agent can be given on their own: each heading starts one.`}),(0,z.jsx)(`ul`,{"aria-label":`Sections`,className:`m-0 list-none p-0`,children:T.outline.sections.map(e=>(0,z.jsxs)(`li`,{className:S(`flex items-baseline gap-2 border-t border-line-soft py-2 text-body-sm`,Fp[Math.min(6,e.depth)]),children:[(0,z.jsx)(`span`,{className:`text-ink [overflow-wrap:anywhere]`,children:e.title}),(0,z.jsxs)(`span`,{className:`font-mono text-body-sm text-muted`,children:[`line `,e.line]})]},`${e.line}:${e.title}`))})]})]}):_===`read`&&!c.isNew?(0,z.jsx)(ni,{text:c.text,className:`text-body-lg`}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`label`,{htmlFor:`knowledge-text`,className:`sr-only`,children:`Text`}),(0,z.jsx)(bf,{id:`knowledge-text`,value:c.text,lang:`markdown`,onChange:e=>u({...c,text:e})}),(0,z.jsx)(`span`,{className:`text-body-sm text-muted`,children:`Markdown. Headings split it into parts; an agent gets the parts that match its task. Never put passwords or keys here.`})]})]})})]})}var Rp=``;function zp(e){let t=e?Date.parse(e):NaN;if(Number.isNaN(t))return``;let n=(Date.now()-t)/1e3;return n<3600?Kr(Math.max(1,Math.floor(n/60)),`minute`):n<86400?Kr(Math.floor(n/3600),`hour`):n<604800?Kr(Math.floor(n/86400),`day`):new Date(t).toLocaleDateString([],{day:`numeric`,month:`short`})}var Bp=e=>!!e.lastStatus&&/pass|success|complete/i.test(e.lastStatus),Vp=e=>e.successes===0?`never`:e.lastStatus&&!Bp(e)?`failing`:e.replays>0?`replaying`:`ok`,Hp=e=>e||`Other`;function Up({view:e}){let t=e.stats.areas.find(e=>e.area===`browser`),n=(t?.replayedSteps??0)+(t?.modelSteps??0),r=n?Math.round((t?.replayedSteps??0)/n*100):0,i=new Set([...e.flows.map(e=>Hp(e.host)),...e.pages.map(e=>Hp(e.host))]).size,a=e.flows.reduce((e,t)=>e+t.replays,0);return(0,z.jsxs)(Mr,{label:`Memory`,className:`mb-6`,children:[(0,z.jsx)(mr,{icon:At,label:`Flows`,value:String(e.flows.length),note:`tasks it can replay`}),(0,z.jsx)(mr,{icon:_n,label:`Pages`,value:String(e.pages.length),note:`with the elements found on them`}),(0,z.jsx)(mr,{icon:at,label:`Sites`,value:String(i)}),(0,z.jsx)(mr,{icon:Ye,label:`Steps from memory`,value:n?`${r}%`:`—`,note:n?`of recent runs, ${x(a,`replay`)}`:`no run has used it yet`})]})}var Wp={never:{label:`Never passed`,tone:`fail`},failing:{label:`Failed last time`,tone:`fail`},replaying:{label:`Replaying`,tone:`pass`},ok:{label:`Learned`,tone:`neutral`}},Gp=e=>e.replayedSteps+e.modelSteps?`${Math.round(e.replayedSteps/(e.replayedSteps+e.modelSteps)*100)}%`:`—`;function Kp({f:e,showSite:t,onOpen:n}){let r=Wp[Vp(e)];return(0,z.jsxs)(`tr`,{onClick:n,className:Hn,children:[(0,z.jsxs)(`td`,{className:Rr,children:[(0,z.jsx)(I,{variant:`link`,size:`inline`,onClick:e=>(e.stopPropagation(),n()),className:`justify-start whitespace-normal text-left`,children:(0,z.jsx)(`span`,{className:`line-clamp-2`,children:e.goal})}),(0,z.jsxs)(`span`,{className:`mt-1 block text-body-sm text-muted`,children:[x(e.steps,`step`),` · passed `,e.successes,` of `,e.runs]})]}),t&&(0,z.jsx)(`td`,{className:S(`px-4 py-2`,`hidden max-w-[200px] truncate text-body-sm text-muted @3xl:table-cell`),children:Hp(e.host)}),(0,z.jsx)(`td`,{className:S(Rr,`w-[1%] whitespace-nowrap`),children:(0,z.jsx)(Ve,{tone:r.tone,icon:r.tone!==`neutral`,children:r.label})}),(0,z.jsx)(`td`,{className:S(Wr,`hidden @2xl:table-cell`),"data-sort":e.replayedSteps+e.modelSteps?e.replayedSteps/(e.replayedSteps+e.modelSteps):-1,children:Gp(e)}),(0,z.jsx)(`td`,{className:S(Wr,`text-muted`),"data-sort":Date.parse(e.lastRun||``)||0,children:zp(e.lastRun)})]})}function qp({p:e,showSite:t,forget:n}){return(0,z.jsxs)(`tr`,{className:or,children:[(0,z.jsxs)(`td`,{className:Rr,children:[(0,z.jsx)(`span`,{className:`block text-body-sm text-ink`,children:e.title||e.path}),(0,z.jsx)(`span`,{className:`block truncate font-mono text-body-sm text-muted`,"data-tip":`${e.host}${e.path}`,children:e.path})]}),t&&(0,z.jsx)(`td`,{className:S(`px-4 py-2`,`hidden max-w-[200px] truncate text-body-sm text-muted @3xl:table-cell`),children:Hp(e.host)}),(0,z.jsx)(`td`,{className:Wr,children:e.elements}),(0,z.jsx)(`td`,{className:S(Wr,`hidden @2xl:table-cell`),children:e.visits}),(0,z.jsx)(`td`,{className:S(Wr,`text-muted`),"data-sort":Date.parse(e.lastSeen||``)||0,children:zp(e.lastSeen)}),(0,z.jsx)(`td`,{className:S(Rr,`w-[1%] text-right whitespace-nowrap`),children:n})]})}function Jp({view:e,target:t,files:n,label:r,question:i,done:a,icon:o,onCleared:s}){let[c,l]=(0,R.useState)(!1),[u,d]=(0,R.useState)(!1);if((0,R.useEffect)(()=>l(!1),[t?.name]),!n)return null;let f=async()=>{d(!0);try{let e=await be.clearMemory(t);s(e,`Removed ${x(e.removed??0,`file`)} of memory${a}. The next runs learn it again.`)}catch(t){s(e,t.message)}finally{d(!1),l(!1)}};return c?(0,z.jsxs)(`span`,{role:`alertdialog`,"aria-label":r,className:S(S(N.fail,`inline-flex flex-wrap items-center gap-2 text-left`),o&&`w-[240px] whitespace-normal [overflow-wrap:anywhere]`),children:[i,(0,z.jsxs)(I,{variant:`destructive`,size:`sm`,disabled:u,onClick:()=>void f(),children:[(0,z.jsx)(Pn,{"aria-hidden":`true`}),t?.kind===`flow`||t?.kind===`page`?`Forget`:`Clear`]}),(0,z.jsxs)(I,{size:`sm`,onClick:()=>l(!1),children:[(0,z.jsx)(On,{"aria-hidden":`true`}),`Keep`]})]}):o?(0,z.jsx)(I,{size:`icon`,variant:`icon`,"aria-label":r,"data-tip":r,onClick:()=>l(!0),className:`size-8`,children:(0,z.jsx)(Pn,{"aria-hidden":`true`})}):(0,z.jsxs)(I,{variant:`danger`,size:`sm`,onClick:()=>l(!0),"data-tip":r,children:[(0,z.jsx)(Pn,{"aria-hidden":`true`}),t?.kind===`flow`||t?.kind===`page`?`Forget`:`Clear`]})}var Yp=[`flows`,`pages`];function Xp(){let[e,t]=(0,R.useState)(null),[n,r]=(0,R.useState)(``),[i,a]=(0,R.useState)(Rp),[o,c]=(0,R.useState)(`flows`);kp(`memory`,o,Yp,!0,c);let[l,u]=(0,R.useState)(`all`),[f,p]=(0,R.useState)(``),[m,h]=(0,R.useState)(null),[g,_]=(0,R.useState)(``),v=(0,R.useCallback)(()=>{r(``),be.memory().then(t,e=>r(e.message))},[]);(0,R.useEffect)(v,[v]);let y=(0,R.useMemo)(()=>{let t=new Map,n=e=>t.get(Hp(e))??t.set(Hp(e),{flows:0,pages:0,failing:0}).get(Hp(e));for(let t of e?.flows||[]){let e=n(t.host);e.flows++,(Vp(t)===`failing`||Vp(t)===`never`)&&e.failing++}for(let t of e?.pages||[])n(t.host).pages++;for(let t of e?.targets||[])n(t.name);return[...t.entries()].map(([e,t])=>({name:e,...t})).sort((e,t)=>t.flows+t.pages-(e.flows+e.pages))},[e]),b=i?e?.targets.find(e=>e.name===i):void 0,C=(e,n)=>{t({...e}),_(n)},w=f.toLowerCase().split(/\s+/).filter(Boolean),ee=(0,R.useMemo)(()=>(e?.flows||[]).filter(e=>(!i||Hp(e.host)===i)&&(l===`all`||Vp(e)===l)&&w.every(t=>`${e.goal} ${e.host||``}`.toLowerCase().includes(t))).sort((e,t)=>(Date.parse(t.lastRun||``)||0)-(Date.parse(e.lastRun||``)||0)),[e,i,l,f]),E=(0,R.useMemo)(()=>(e?.pages||[]).filter(e=>(!i||Hp(e.host)===i)&&w.every(t=>`${e.title||``} ${e.path} ${e.host}`.toLowerCase().includes(t))).sort((e,t)=>(Date.parse(t.lastSeen||``)||0)-(Date.parse(e.lastSeen||``)||0)),[e,i,f]),D=(0,R.useMemo)(()=>{let t={all:0,replaying:0,failing:0,never:0};for(let n of e?.flows||[]){if(i&&Hp(n.host)!==i)continue;t.all++;let e=Vp(n);e!==`ok`&&t[e]++}return t},[e,i]);return(0,z.jsxs)(`div`,{className:`flex min-h-(--screen) flex-col`,children:[(0,z.jsx)(Fr,{}),(0,z.jsxs)(`main`,{className:S(Ir,`@container`),children:[(0,z.jsx)(Ue,{className:`mb-2`}),(0,z.jsxs)(`div`,{className:`mb-1 flex flex-wrap items-center gap-4`,children:[(0,z.jsx)(Xn,{pixel:T.memory,size:`lg`}),(0,z.jsx)(`h1`,{className:`m-0 flex-1 text-headline-lg`,children:`Memory`}),(0,z.jsxs)(`a`,{href:s(`settings`,`runs`),className:S(P({size:`sm`,variant:`ghost`}),`gap-2`),"data-tip":`Memory settings`,children:[(0,z.jsx)(xt,{"aria-hidden":`true`}),`Settings`]})]}),(0,z.jsxs)(`p`,{className:`mt-1 mb-6 text-body-sm leading-relaxed text-ink-2`,children:[`What ForgeQE learned from runs that passed, so the next run of the same task is faster and cheaper. A `,(0,z.jsx)(`b`,{className:`font-medium text-ink-2`,children:`flow`}),` is a task's steps, replayed without the AI; a `,(0,z.jsx)(`b`,{className:`font-medium text-ink-2`,children:`page`}),` keeps the elements found on it.`]}),n&&(0,z.jsxs)(`div`,{role:`alert`,className:S(N.fail,`flex flex-col items-start gap-4`),children:[n,(0,z.jsxs)(I,{onClick:v,"data-tip":`Try again`,children:[(0,z.jsx)(st,{"aria-hidden":`true`}),`Retry`]})]}),!e&&!n&&(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`Loading…`}),e&&(0,z.jsxs)(z.Fragment,{children:[!e.enabled&&(0,z.jsxs)(`p`,{className:S(N.warn,`mt-0 mb-4`),children:[`Memory is off for this project: runs neither use nor add to it. Turn it on in `,(0,z.jsx)(`a`,{href:s(`settings`,`runs`),children:`Memory settings`}),`.`]}),(0,z.jsx)(Up,{view:e}),g&&(0,z.jsx)(`p`,{role:`status`,className:S(N.info,`mt-0 mb-4`),children:g}),e.flows.length+e.pages.length===0?(0,z.jsx)(ze,{icon:En,title:`Nothing remembered yet`,action:(0,z.jsxs)(`a`,{className:P({size:`sm`}),href:s(),"data-tip":`Run something from Home`,children:[(0,z.jsx)(bt,{"aria-hidden":`true`}),`Run`]}),children:`Each browser run that passes adds its pages and steps, and the next run of the same task replays them.`}):(0,z.jsxs)(`section`,{className:`flex min-w-0 flex-col gap-4`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,z.jsx)(yr,{label:`What to show`,className:`mb-0`,current:o,onPick:c,tabs:[{id:`flows`,label:`Flows`,n:ee.length},{id:`pages`,label:`Pages`,n:E.length}]}),(0,z.jsxs)(d,{"aria-label":`Site`,value:i,onChange:e=>a(e.target.value),className:`w-auto max-w-[280px] min-w-[180px] flex-[0_1_240px]`,children:[(0,z.jsxs)(`option`,{value:Rp,children:[`All sites (`,y.length,`)`]}),y.map(e=>(0,z.jsxs)(`option`,{value:e.name,children:[e.name,e.failing?` (${e.failing} failed)`:``]},e.name))]}),(0,z.jsx)(He,{id:`tab-flows-find-a-flow-fi`,label:o===`flows`?`Find a flow`:`Find a page`,value:f,onChange:p,placeholder:o===`flows`?`Find a flow by its task`:`Find a page by title or path`}),(0,z.jsx)(`span`,{className:`ml-auto`,children:(0,z.jsx)(Jp,{view:e,target:b,files:i?b?.files??0:e.files,label:i?`Clear this site`:`Clear everything`,question:`Remove ${x(i?b?.files??0:e.files,`file`)} for ${i||`everything`}? Runs learn it again.`,done:b?` for ${b.name}`:``,onCleared:C})})]}),o===`flows`&&(0,z.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:(0,z.jsx)(Be,{items:[[`all`,`All`],[`replaying`,`Replaying`],[`failing`,`Failed last time`],[`never`,`Never passed`]].map(([e,t])=>({id:e,label:t,n:D[e],alert:e===`failing`||e===`never`})),value:l,onChange:u})}),(0,z.jsx)(`div`,{className:`@container`,children:o===`flows`?(0,z.jsx)(Sr,{label:`Flows`,search:!1,height:`max(320px, calc(var(--screen) - 288px))`,resetKey:`${i}|${l}|${f}`,empty:`Nothing matches.`,head:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-left text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,children:`Task`}),!i&&(0,z.jsx)(`th`,{scope:`col`,className:S(`px-4 py-2 text-left text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,`hidden @3xl:table-cell`),children:`Site`}),(0,z.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-left text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,children:`Status`}),(0,z.jsx)(`th`,{scope:`col`,className:S(`px-4 py-2 text-right text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,`hidden @2xl:table-cell`),children:`Replayed`}),(0,z.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-right text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,children:`Last run`})]}),children:ee.map(e=>(0,z.jsx)(R.Fragment,{children:Kp({f:e,showSite:!i,onOpen:()=>h(e)})},e.id))}):(0,z.jsx)(Sr,{label:`Pages`,search:!1,height:`max(320px, calc(var(--screen) - 288px))`,resetKey:`${i}|${f}`,empty:`Nothing matches.`,head:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-left text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,children:`Page`}),!i&&(0,z.jsx)(`th`,{scope:`col`,className:S(`px-4 py-2 text-left text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,`hidden @3xl:table-cell`),children:`Site`}),(0,z.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-right text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,children:`Elements`}),(0,z.jsx)(`th`,{scope:`col`,className:S(`px-4 py-2 text-right text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,`hidden @2xl:table-cell`),children:`Visits`}),(0,z.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-right text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,children:`Last seen`}),(0,z.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-left text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,children:(0,z.jsx)(`span`,{className:`sr-only`,children:`Forget`})})]}),children:E.map(t=>(0,z.jsx)(R.Fragment,{children:qp({p:t,showSite:!i,forget:(0,z.jsx)(Jp,{icon:!0,view:e,target:{name:t.id,kind:`page`},files:1,label:`Forget ${t.title||t.path}`,question:`Forget ${t.host}${t.path}? Runs find its elements again.`,done:` for ${t.host}${t.path}`,onCleared:C})})},t.id))})})]})]})]}),(0,z.jsx)(Pr,{open:!!m,onClose:()=>h(null),title:`Flow`,description:m?.host?`On ${m.host}`:`A task ForgeQE remembers`,footer:(0,z.jsxs)(I,{onClick:()=>h(null),children:[(0,z.jsx)(wt,{"aria-hidden":`true`}),`Close`]}),children:m&&(0,z.jsxs)(`div`,{className:`flex flex-col gap-4 pt-4 text-body-sm`,children:[(0,z.jsx)(`p`,{className:`m-0 leading-relaxed whitespace-pre-wrap text-ink [overflow-wrap:anywhere]`,children:m.goal}),(0,z.jsxs)(`dl`,{className:`m-0 grid grid-cols-[auto_1fr] gap-x-4 gap-y-2`,children:[(0,z.jsx)(`dt`,{className:`text-muted`,children:`Steps`}),(0,z.jsx)(`dd`,{className:`m-0`,children:m.steps}),(0,z.jsx)(`dt`,{className:`text-muted`,children:`Runs`}),(0,z.jsxs)(`dd`,{className:`m-0`,children:[m.runs,`, `,m.successes,` passed, `,m.failures,` failed`]}),(0,z.jsx)(`dt`,{className:`text-muted`,children:`Replayed`}),(0,z.jsxs)(`dd`,{className:`m-0`,children:[x(m.replays,`time`),`; `,m.replayedSteps,` of `,m.replayedSteps+m.modelSteps,` steps without a model`]}),(0,z.jsx)(`dt`,{className:`text-muted`,children:`Last run`}),(0,z.jsxs)(`dd`,{className:`m-0`,children:[m.lastRun?new Date(m.lastRun).toLocaleString([],{dateStyle:`medium`,timeStyle:`short`}):`—`,m.lastStatus?`, ${m.lastStatus}`:``]})]}),(0,z.jsx)(`p`,{className:S(N.info,`m-0`),children:Vp(m)===`never`?`It has not passed yet, so nothing replays: the next run of this task asks the model at each step.`:Vp(m)===`failing`?`Its last run failed. The next run replays the steps that worked, then the agent takes over from where it went wrong.`:`The next run of this task replays its steps without a model, and the agent looks once to confirm the result.`}),e&&(0,z.jsx)(`div`,{className:`pt-4`,children:(0,z.jsx)(Jp,{view:e,target:{name:m.id,kind:`flow`},files:1,label:`Forget this flow`,question:`Forget this flow? The next run of its task asks the model at each step and learns it again.`,done:` for this flow`,onCleared:(e,t)=>{C(e,t),e.flows.some(e=>e.id===m.id)||h(null)}})})]})})]})}var Zp=[];function Qp({section:e}){return(0,z.jsxs)(`div`,{className:`flex min-h-(--screen) flex-col`,children:[(0,z.jsx)(Fr,{}),(0,z.jsxs)(`main`,{className:S(Ir,`gap-4`),children:[(0,z.jsx)(Ue,{}),(0,z.jsx)(`h1`,{className:`m-0 text-headline-lg`,children:e.label}),(0,z.jsxs)(`p`,{className:`m-0 leading-relaxed text-ink-2`,children:[e.what,` are not in the web app yet. In a terminal in your project folder, run`,` `,(0,z.jsx)(`code`,{className:Qr,children:e.command}),`.`]})]})]})}var $p=class extends R.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,z.jsxs)(`div`,{role:`alert`,className:`m-0 px-6 py-10 text-body-sm text-muted`,children:[(0,z.jsx)(`p`,{className:`m-0`,children:`This page could not be shown. Check the address, or go back and try again.`}),(0,z.jsx)(`p`,{className:`m-0 mt-2`,children:(0,z.jsx)(`a`,{href:s(),className:`underline`,children:`Go to Home`})})]}):this.props.children}};function $(e,t){let n,r,i=()=>r??=e().then(e=>n=t(e),e=>{throw r=void 0,e}),a=(0,R.lazy)(()=>i().then(()=>({default:n})));return Object.assign(e=>(0,R.createElement)(n||a,e),{preload:i})}var em=()=>v(()=>import(`./Chat-DO-UvDWX.js`),__vite__mapDeps([23,1,2,3,8,9,4,13,5,6,10,7,11,12,16,24,25,26,27,15])),tm=$(()=>v(()=>import(`./Settings-DDCiQZ0T.js`),__vite__mapDeps([14,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18,19,20,21,22])),e=>e.Settings),nm=$(em,e=>e.Chat),rm=$(em,e=>e.Chats),im=$(()=>v(()=>import(`./Reports-u72R1XBV.js`),__vite__mapDeps([28,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18])),e=>e.Reports),am=$(()=>v(()=>import(`./Agent-Bd54dLhD.js`),__vite__mapDeps([29,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18,30,31,32,33,20,21,34])),e=>e.Agent),om=$(()=>v(()=>Promise.resolve().then(()=>bu),void 0),e=>e.Runs),sm=$(()=>v(()=>import(`./Record-7h0EFEiJ.js`),__vite__mapDeps([35,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18,20,25,26,36,37,34,22,38])),e=>e.Record),cm=$(()=>v(()=>import(`./Desktop-CnBxMp68.js`),__vite__mapDeps([39,1,2,3,8,9,4,5,6,10,7,11,12,13,15,17,16,18,34,36,37])),e=>e.Desktop),lm=$(()=>v(()=>import(`./Mobile-DTMPjWeO.js`),__vite__mapDeps([40,1,2,3,8,9,4,5,6,10,7,11,12,13,15,17,16,18,34,27,26,37])),e=>e.Mobile),um=$(()=>v(()=>import(`./Regression-DdM66t2E.js`),__vite__mapDeps([41,1,2,3,8,9,4,13,5,6,10,7,11,12,16,42,33,24,22])),e=>e.Regression),dm=$(()=>v(()=>import(`./Impact-DzAtWie1.js`),__vite__mapDeps([43,1,2,3,8,9,4,13,5,6,10,7,11,12,16,30,44])),e=>e.Impact),fm=$(()=>v(()=>import(`./ApiTests-BO_sKAg8.js`),__vite__mapDeps([45,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18,42,33,24])),e=>e.ApiTests),pm=$(()=>v(()=>import(`./Migration-CfHZeobD.js`),__vite__mapDeps([46,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18,33,47,48,20,49,50,51])),e=>e.Migration),mm=$(()=>v(()=>import(`./Compare-BFuLcrBB.js`),__vite__mapDeps([52,1,2,3,9,4,10,7,8,6,11,47,49,17,16,18,20,48])),e=>e.ToscaCompare),hm=$(()=>v(()=>import(`./Quality-Bsljiu_v.js`),__vite__mapDeps([53,1,2,3,8,9,4,13,5,6,10,7,11,12,15,17,16,18,54])),e=>e.Quality),gm=$(()=>v(()=>import(`./Flaky-B7mr96H8.js`),__vite__mapDeps([55,1,2,3,8,9,4,13,5,6,10,7,11,12,54,15,17,16,18])),e=>e.Flaky),_m=$(()=>v(()=>import(`./RunDiff-CGhLqPpP.js`),__vite__mapDeps([56,1,2,3,8,9,4,13,5,6,10,7,11,12,15,54,17,16,18])),e=>e.RunDiff),vm=$(()=>v(()=>import(`./Responsive-CCPzSbdd.js`),__vite__mapDeps([57,1,2,3,8,9,4,5,6,10,7,11,12,13,15,20,48,47,51])),e=>e.Responsive),ym=$(()=>v(()=>import(`./Requirements-BAcEi5Fl.js`),__vite__mapDeps([58,1,2,3,8,9,4,5,6,10,7,11,12,13,15,17,16,18,20,48,47,51,50,33])),e=>e.Requirements),bm=$(()=>v(()=>import(`./TestManagement-BGBKGV1L.js`),__vite__mapDeps([59,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18,54,38])),e=>e.TestManagement),xm=$(()=>v(()=>import(`./Flags-BGqG09qD.js`),__vite__mapDeps([60,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,54,17,18])),e=>e.Flags),Sm=$(()=>v(()=>import(`./Production-BHXWX-ww.js`),__vite__mapDeps([61,1,2,3,9,4,13,8,5,6,10,7,11,12,15,17,16,18,54])),e=>e.Production),Cm=$(()=>v(()=>import(`./Cost-DbKrBm9m.js`),__vite__mapDeps([62,1,2,3,9,4,13,8,5,6,10,7,11,12,15,54,17,16,18])),e=>e.Cost),wm=$(()=>v(()=>import(`./Observability-B-9cikxK.js`),__vite__mapDeps([63,1,2,3,9,4,13,8,5,6,10,7,11,12,15,54,17,16,18])),e=>e.Observability),Tm=$(()=>v(()=>import(`./Explore-Kkl9koqy.js`),__vite__mapDeps([64,1,2,3,8,9,4,5,6,10,7,11,12,13,15,16,54,17,18])),e=>e.Explore),Em=$(()=>v(()=>import(`./Readiness-BZppEirK.js`),__vite__mapDeps([65,1,2,3,8,9,4,13,5,6,10,7,11,12,15,54,17,16,18])),e=>e.Readiness),Dm=$(()=>v(()=>import(`./KindPage-UqU2qh63.js`),__vite__mapDeps([66,1,2,3,8,9,4,13,5,6,10,7,11,12,15,17,16,18,34,42,33,24,54])),e=>e.Accessibility),Om=$(()=>v(()=>import(`./KindPage-UqU2qh63.js`),__vite__mapDeps([66,1,2,3,8,9,4,13,5,6,10,7,11,12,15,17,16,18,34,42,33,24,54])),e=>e.Performance),km=$(()=>v(()=>import(`./KindPage-UqU2qh63.js`),__vite__mapDeps([66,1,2,3,8,9,4,13,5,6,10,7,11,12,15,17,16,18,34,42,33,24,54])),e=>e.Visual),Am=$(()=>v(()=>import(`./Data-B6_6Rm7C.js`),__vite__mapDeps([67,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18,33,34,42,24,68])),e=>e.Data),jm=$(()=>v(()=>import(`./TestData-B4-xVlvt.js`),__vite__mapDeps([68,1,2,3,8,9,4,13,5,6,10,7,11,12,15,34,16,17,18])),e=>e.TestData),Mm=$(()=>v(()=>import(`./Features-_WrrIGBz.js`),__vite__mapDeps([69,1,2,3,8,9,4,13,5,6,10,7,11,12,17,16,18])),e=>e.Features),Nm=$(()=>v(()=>import(`./Jobs-YSmfG7C9.js`),__vite__mapDeps([70,1,2,3,8,9,4,13,5,6,10,7,11,12,17,16,18,42,33,24,22])),e=>e.Jobs),Pm=$(()=>v(()=>import(`./Product-lDXsflpD.js`),__vite__mapDeps([71,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,30,31,32,33,20,42,24,72,44,48,47])),e=>e.Product),Fm=$(()=>v(()=>import(`./Evidence-BZx9UF1t.js`),__vite__mapDeps([73,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18,72])),e=>e.Evidence),Im=$(()=>v(()=>import(`./WhatsNew-BMTuBbaX.js`),__vite__mapDeps([74,1,2,8,9,4,13,5,6,10,7,11,3,12])),e=>e.WhatsNew),Lm=$(()=>v(()=>import(`./Browse-BjPPdirz.js`),__vite__mapDeps([75,1,2,11,3,10])),e=>e.Browse),Rm={chats:rm,reports:im,agents:am,runs:om,record:sm,desktop:cm,mobile:lm,regression:um,impact:dm,"api-tests":fm,migration:pm,quality:hm,flaky:gm,"run-diff":_m,responsive:vm,requirements:ym,"test-management":bm,flags:xm,production:Sm,cost:Cm,observability:wm,explore:Tm,readiness:Em,accessibility:Dm,performance:Om,visual:km,data:Am,"test-data":jm,features:Mm,jobs:Nm,schedules:Nm,product:Pm,evidence:Fm,"evidence-runs":Fm,"evidence-contracts":Fm,"evidence-review":Fm,"evidence-releases":Fm,"evidence-learn":Fm,"evidence-monitor":Fm,"whats-new":Im,browse:Lm},zm=e=>Rm[e[0]||``]?.preload();function Bm(){let e=a(zm),[t=``,n,...r]=e;oe();let[,i]=(0,R.useState)(0),[s,c]=(0,R.useState)(0);return(0,R.useEffect)(()=>{let e=()=>Object.values(Rm).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,R.useEffect)(()=>{Se.get().then(e=>{Gr(e),i(e=>e+1)},()=>{})},[]),(0,R.useEffect)(()=>{Te.status().then(e=>{let t=location.hash.replace(/^#\/?/,``).split(`/`)[0];!e.ready&&e.state===null&&t!==`welcome`&&t!==`settings`&&location.replace(`#/welcome/setup`)},()=>{})},[]),t===`tosca`&&n&&r[0]===`compare`?(0,z.jsx)($p,{at:e.join(`/`),children:(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(mm,{id:n,caseId:r[1]?o(r[1]):void 0})})}):(0,z.jsxs)(_r,{current:t,route:e,children:[(0,z.jsx)(Mi,{onReload:()=>c(e=>e+1)}),(0,z.jsx)(R.Fragment,{children:(0,z.jsx)($p,{at:e.join(`/`),children:(0,z.jsx)(Um,{page:t,sub:(t===`data`||t===`jobs`||t===`responsive`||t===`desktop`||t===`mobile`||t===`product`||t===`agents`||t===`runs`||t===`evidence`||t===`evidence-runs`||t===`accessibility`||t===`performance`||t===`test-cases`||t===`test-management`||t===`quality`||t===`record`||t===`requirements`||t===`tosca`||t===`migration`||t===`browse`||t===`knowledge`)&&n?[n,...r].join(`/`):n})})},s)]})}function Vm(e){return e?e===`conversions`?s(`migration`,`migrations`):`#/migration/${e}`:s(`migration`,`guide`)}function Hm({to:e}){return(0,R.useEffect)(()=>{location.replace(e)},[e]),null}function Um({page:e,sub:t}){if(e===`settings`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(tm,{section:t})});if(e===`welcome`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(tm,{guide:t??``},`welcome`)});if(e===`chats`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:t?(0,z.jsx)(nm,{id:t}):(0,z.jsx)(rm,{})});if(e===`reports`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(im,{sub:t})});if(e===`jobs`||e===`schedules`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(Nm,{sub:e===`jobs`?t:void 0})});if(e===`impact`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(dm,{})});if(e===`regression`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(um,{sub:t})});if(e===`api-tests`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(fm,{sub:t})});if(e===`migration`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(pm,{sub:t})});if(e===`tosca`)return(0,z.jsx)(Hm,{to:Vm(t)});if(e===`quality`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(hm,{sub:t})});if(e===`readiness`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(Em,{})});if(e===`explore`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(Tm,{sub:t})});if(e===`cost`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(Cm,{})});if(e===`observability`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(wm,{})});if(e===`production`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(Sm,{})});if(e===`flags`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(xm,{})});if(e===`test-management`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(bm,{sub:t})});if(e===`test-debt`)return(0,z.jsx)(Hm,{to:s(`test-management`,`debt`,...t?[t]:[])});if(e===`requirements`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(ym,{sub:t})});if(e===`responsive`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(vm,{sub:t})});if(e===`run-diff`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(_m,{sub:t})});if(e===`flaky`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(gm,{})});if(e===`test-cases`)return(0,z.jsx)(Hm,{to:t?`#/test-management/stories/${t}`:s(`test-management`,`stories`)});if(e===`accessibility`||e===`performance`||e===`visual`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(e===`accessibility`?Dm:e===`performance`?Om:km,{sub:t},e)});if(e===`data`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(Am,{sub:t})});if(e===`test-data`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(jm,{sub:t})});if(e===`features`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(Mm,{})});if(e===`whats-new`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(Im,{})});if(e===`record`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(sm,{sub:t})});if(e===`desktop`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(cm,{sub:t})});if(e===`mobile`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(lm,{sub:t})});if(e===`agents`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(am,{id:t})});if(e===`runs`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(om,{sub:t})});if(e===`product`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(Pm,{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,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(Fm,{page:e,sub:t})});if(e===`browse`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(Lm,{sub:t})});if(e===`knowledge`)return(0,z.jsx)(Lp,{sub:t});if(e===`memory`)return(0,z.jsx)(Xp,{});if(pe.includes(e))return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(tm,{only:e},e)});let n=Zp.find(t=>t.id===e);return n?(0,z.jsx)(Qp,{section:n}):(0,z.jsx)(cf,{})}De(),Fe(),Ne(),Jr(),ki(document),Oi(),(0,ci.createRoot)(document.getElementById(`root`)).render((0,z.jsx)(R.StrictMode,{children:(0,z.jsxs)(ie,{children:[(0,z.jsx)(Bm,{}),(0,z.jsx)(Ti,{})]})}));export{So as $,Id as A,_c as B,Zd as C,Yd as D,Xd as E,Jl as F,Go as G,pc as H,Kl as I,Bo as J,Wo as K,$c as L,Rd as M,gd as N,Fd as O,Yl as P,Lo as Q,Hc as R,tf as S,qd as T,qo as U,mc as V,Ko as W,Uo as X,Vo as Y,Ho as Z,Cf as _,Ep as a,Ka as at,sf as b,Sp as c,Pa as ct,fp as d,Ni as dt,xo as et,ep as f,B as ft,_f as g,lf as h,Dp as i,Ga as it,Ud as j,Bd as k,mp as l,Ba as lt,xf as m,Np as n,uo as nt,kp as o,Ua as ot,bf as p,Ro as q,Mp as r,Wa as rt,Op as s,Ha as st,Ap as t,bo as tt,yp as u,aa as ut,hf as v,Kd as w,cf as x,uf as y,Ec as z};
55
+ `,was:``,isNew:!0})},te=(0,R.useCallback)(()=>{o(``),be.knowledge().then(i,e=>o(e.message)),be.docsStatus().then(b,()=>b(null))},[]),ne=async()=>{C(!0),g(``),ee(``);try{let e=await be.indexDocs();b(e),g(`Indexed ${e.documents} ${e.documents===1?`document`:`documents`}, ${e.sections.toLocaleString()} sections.${e.waiting?` ${e.waiting} PDF, Word or Excel ${e.waiting===1?`file has`:`files have`} no text that could be read.`:``}`)}catch(e){ee(e.message)}finally{C(!1)}},O=async e=>{if(v(`outline`),!(T?.rel===e&&T.outline)){E({rel:e});try{E({rel:e,outline:await be.docOutline(e)})}catch(t){E({rel:e,error:t.message})}}};(0,R.useEffect)(te,[te]);let re=async e=>{m(``);try{let t=await be.knowledgeFile(e);u({rel:e,text:t.text,was:t.text,isNew:!1}),v(`read`)}catch(e){o(e.message)}},ie=async()=>{if(c){f(!0),m(``);try{let e=c.rel.trim();await be.saveKnowledgeFile(e,c.text),u(null),g(`Saved ${e}. Agents read it from their next request.`),te()}catch(e){m(e.message)}finally{f(!1)}}},ae=r?.files.filter(e=>e.used).length??0;return(0,z.jsxs)(Pp,{title:Zr(`knowledge`),page:t,label:`Knowledge`,current:n,tabHref:e=>e===`agent`?s(`knowledge`,jp):s(`knowledge`,e),onPick:e=>location.hash=e===`agent`?s(`knowledge`,jp):s(`knowledge`,e),tabs:[{id:`notes`,label:r?`Notes (${r.files.length})`:`Notes`,icon:Gt}],below:(0,z.jsx)(hp,{page:t}),children:[(0,z.jsxs)(`p`,{className:`m-0 text-body-sm leading-relaxed text-ink-2`,children:[`What the agents know about your product: its features, business rules and terms, as Markdown files in`,` `,(0,z.jsx)(`span`,{className:`font-mono text-body-sm`,children:r?.dir||`.forgeqe/knowledge`}),`. Each agent reads the parts that match its task. The industry and regulations are in`,` `,(0,z.jsx)(`a`,{href:s(`settings`,`evidence`),children:`Settings, Evidence`}),`, and the folders in `,(0,z.jsx)(`a`,{href:s(`settings`,`agents`),children:`Settings, Agents`}),`.`]}),a&&(0,z.jsx)(Fp,{text:a,onRetry:te}),!r&&!a&&(0,z.jsx)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:`Loading…`}),r&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(Mr,{label:`Knowledge files`,className:`mb-6`,children:[(0,z.jsx)(mr,{icon:Dn,label:`Files`,value:String(r.files.length)}),(0,z.jsx)(mr,{icon:Ze,label:`Read by agents`,value:String(ae),note:ae<r.files.length?`The others are templates still to fill in`:void 0}),(0,z.jsx)(mr,{icon:at,label:`Per browser run`,value:r.maxChars?`${r.maxChars.toLocaleString()}`:`Off`,note:r.maxChars?`characters at most`:void 0}),(0,z.jsx)(mr,{icon:lt,label:`Document sections`,value:y?y.sections.toLocaleString():`–`,note:y?`In ${y.documents} ${y.documents===1?`document`:`documents`}${y.waiting?`; ${y.waiting} PDF, Word or Excel ${y.waiting===1?`file is`:`files are`} not read yet`:``}`:void 0})]}),(0,z.jsx)(Lp,{}),(0,z.jsx)(`div`,{"aria-live":`polite`,children:h&&(0,z.jsx)(`p`,{className:S(N.pass,`mt-0 mb-4`),children:h})}),w&&(0,z.jsx)(`div`,{className:`mb-4`,children:(0,z.jsx)(Fp,{text:w,onRetry:()=>void ne()})}),(0,z.jsxs)(`div`,{className:`mb-4 flex flex-wrap items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`flex-1 text-body-sm text-muted`,children:`Open a file to read it; a template is a starting point for you to fill in.`}),y&&(0,z.jsxs)(I,{onClick:()=>void ne(),disabled:x||y.indexing,"data-tip":`Reads the PDF, Word and Excel files of your documents so they can be searched. It can take a few minutes.`,children:[(0,z.jsx)(Ln,{"aria-hidden":`true`}),x||y.indexing?`Indexing…`:`Index PDFs, Word and Excel`]}),(0,z.jsxs)(I,{variant:`accent`,onClick:D,"data-tip":`Add a file`,children:[(0,z.jsx)(dt,{"aria-hidden":`true`}),`Add`]})]}),(0,z.jsx)(Sr,{label:`Knowledge files`,placeholder:`Find a file`,height:`max(320px, calc(var(--screen) - 288px))`,empty:`No knowledge files yet. Add one for each product area: what it does, its rules, its words.`,head:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-left text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,children:`File`}),(0,z.jsx)(`th`,{scope:`col`,className:S(`px-4 py-2 text-left text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,`text-right`),children:`Status`})]}),children:r.files.map(e=>(0,z.jsxs)(`tr`,{onClick:()=>void re(e.rel),className:`h-12 cursor-pointer border-t border-line-soft align-middle transition-colors duration-150 hover:bg-tint data-[state=selected]:bg-tint-hover`,children:[(0,z.jsxs)(`td`,{className:`px-4 py-2`,children:[(0,z.jsxs)(I,{variant:`link`,size:`inline`,onClick:t=>(t.stopPropagation(),void re(e.rel)),className:`whitespace-normal text-left`,children:[(0,z.jsx)(F,{icon:Dn,size:16,className:`flex-none text-muted`}),(0,z.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:e.title})]}),(0,z.jsx)(`span`,{className:`mt-1 block pl-6 font-mono text-body-sm text-muted [overflow-wrap:anywhere]`,children:e.rel})]}),(0,z.jsx)(`td`,{className:S(`px-4 py-2`,`w-[1%] text-right whitespace-nowrap`),children:(0,z.jsx)(Ve,{tone:e.used?`pass`:`neutral`,icon:!!e.used,children:e.used?e.state===`edited`?`Filled in`:`Read by agents`:`Template: fill it in`})})]},e.rel))})]}),(0,z.jsx)(Pr,{wide:!0,open:!!c,onClose:()=>u(null),title:c?.isNew?`Add a knowledge file`:r?.files.find(e=>e.rel===c?.rel)?.title||c?.rel||``,description:c?.isNew?`Markdown. Headings split it into parts; an agent gets the parts that match its task. Never put passwords or keys here.`:c?.rel,footer:(0,z.jsxs)(z.Fragment,{children:[p&&(0,z.jsx)(`span`,{role:`alert`,className:`mr-auto self-center text-body-sm text-fail [overflow-wrap:anywhere]`,children:p}),(0,z.jsxs)(I,{onClick:()=>u(null),children:[(0,z.jsx)(wt,{"aria-hidden":`true`}),`Cancel`]}),(0,z.jsxs)(I,{busy:d,variant:`primary`,disabled:d||!c||!c.rel.trim()||!c.isNew&&c.text===c.was,onClick:()=>void ie(),children:[(0,z.jsx)(On,{"aria-hidden":`true`}),d?`Saving…`:`Save`]})]}),children:c&&(0,z.jsxs)(`div`,{className:`flex flex-col gap-4 pt-4`,children:[c.isNew&&(0,z.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,z.jsx)(`label`,{htmlFor:`knowledge-name`,className:`font-medium`,children:`File name`}),(0,z.jsx)(l,{id:`knowledge-name`,value:c.rel,spellCheck:!1,placeholder:`products/checkout.md`,className:`font-mono`,onChange:e=>u({...c,rel:e.target.value})}),(0,z.jsx)(`span`,{className:`text-body-sm text-muted`,children:`In the knowledge folder; a folder before the name groups files.`})]}),!c.isNew&&(0,z.jsx)(vr,{label:`Show the file`,value:_,onChange:e=>e===`outline`?void O(c.rel):v(e),options:[{id:`read`,label:`Read`},{id:`edit`,label:`Edit`},{id:`outline`,label:`Outline`}]}),_===`outline`&&!c.isNew?(0,z.jsxs)(`div`,{"aria-live":`polite`,children:[T?.error&&(0,z.jsx)(Fp,{text:T.error,onRetry:()=>void O(c.rel)}),!T?.outline&&!T?.error&&(0,z.jsx)(`p`,{role:`status`,className:`m-0 text-body-sm text-muted`,children:`Loading…`}),T?.outline&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`p`,{className:`mt-0 mb-2 text-body-sm text-muted`,children:`The parts an agent can be given on their own: each heading starts one.`}),(0,z.jsx)(`ul`,{"aria-label":`Sections`,className:`m-0 list-none p-0`,children:T.outline.sections.map(e=>(0,z.jsxs)(`li`,{className:S(`flex items-baseline gap-2 border-t border-line-soft py-2 text-body-sm`,Ip[Math.min(6,e.depth)]),children:[(0,z.jsx)(`span`,{className:`text-ink [overflow-wrap:anywhere]`,children:e.title}),(0,z.jsxs)(`span`,{className:`font-mono text-body-sm text-muted`,children:[`line `,e.line]})]},`${e.line}:${e.title}`))})]})]}):_===`read`&&!c.isNew?(0,z.jsx)(ni,{text:c.text,className:`text-body-lg`}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`label`,{htmlFor:`knowledge-text`,className:`sr-only`,children:`Text`}),(0,z.jsx)(bf,{id:`knowledge-text`,value:c.text,lang:`markdown`,onChange:e=>u({...c,text:e})}),(0,z.jsx)(`span`,{className:`text-body-sm text-muted`,children:`Markdown. Headings split it into parts; an agent gets the parts that match its task. Never put passwords or keys here.`})]})]})})]})}var zp=``;function Bp(e){let t=e?Date.parse(e):NaN;if(Number.isNaN(t))return``;let n=(Date.now()-t)/1e3;return n<3600?Kr(Math.max(1,Math.floor(n/60)),`minute`):n<86400?Kr(Math.floor(n/3600),`hour`):n<604800?Kr(Math.floor(n/86400),`day`):new Date(t).toLocaleDateString([],{day:`numeric`,month:`short`})}var Vp=e=>!!e.lastStatus&&/pass|success|complete/i.test(e.lastStatus),Hp=e=>e.successes===0?`never`:e.lastStatus&&!Vp(e)?`failing`:e.replays>0?`replaying`:`ok`,Up=e=>e||`Other`;function Wp({view:e}){let t=e.stats.areas.find(e=>e.area===`browser`),n=(t?.replayedSteps??0)+(t?.modelSteps??0),r=n?Math.round((t?.replayedSteps??0)/n*100):0,i=new Set([...e.flows.map(e=>Up(e.host)),...e.pages.map(e=>Up(e.host))]).size,a=e.flows.reduce((e,t)=>e+t.replays,0);return(0,z.jsxs)(Mr,{label:`Memory`,className:`mb-6`,children:[(0,z.jsx)(mr,{icon:At,label:`Flows`,value:String(e.flows.length),note:`tasks it can replay`}),(0,z.jsx)(mr,{icon:_n,label:`Pages`,value:String(e.pages.length),note:`with the elements found on them`}),(0,z.jsx)(mr,{icon:at,label:`Sites`,value:String(i)}),(0,z.jsx)(mr,{icon:Ye,label:`Steps from memory`,value:n?`${r}%`:`—`,note:n?`of recent runs, ${x(a,`replay`)}`:`no run has used it yet`})]})}var Gp={never:{label:`Never passed`,tone:`fail`},failing:{label:`Failed last time`,tone:`fail`},replaying:{label:`Replaying`,tone:`pass`},ok:{label:`Learned`,tone:`neutral`}},Kp=e=>e.replayedSteps+e.modelSteps?`${Math.round(e.replayedSteps/(e.replayedSteps+e.modelSteps)*100)}%`:`—`;function qp({f:e,showSite:t,onOpen:n}){let r=Gp[Hp(e)];return(0,z.jsxs)(`tr`,{onClick:n,className:Hn,children:[(0,z.jsxs)(`td`,{className:Rr,children:[(0,z.jsx)(I,{variant:`link`,size:`inline`,onClick:e=>(e.stopPropagation(),n()),className:`justify-start whitespace-normal text-left`,children:(0,z.jsx)(`span`,{className:`line-clamp-2`,children:e.goal})}),(0,z.jsxs)(`span`,{className:`mt-1 block text-body-sm text-muted`,children:[x(e.steps,`step`),` · passed `,e.successes,` of `,e.runs]})]}),t&&(0,z.jsx)(`td`,{className:S(`px-4 py-2`,`hidden max-w-[200px] truncate text-body-sm text-muted @3xl:table-cell`),children:Up(e.host)}),(0,z.jsx)(`td`,{className:S(Rr,`w-[1%] whitespace-nowrap`),children:(0,z.jsx)(Ve,{tone:r.tone,icon:r.tone!==`neutral`,children:r.label})}),(0,z.jsx)(`td`,{className:S(Wr,`hidden @2xl:table-cell`),"data-sort":e.replayedSteps+e.modelSteps?e.replayedSteps/(e.replayedSteps+e.modelSteps):-1,children:Kp(e)}),(0,z.jsx)(`td`,{className:S(Wr,`text-muted`),"data-sort":Date.parse(e.lastRun||``)||0,children:Bp(e.lastRun)})]})}function Jp({p:e,showSite:t,forget:n}){return(0,z.jsxs)(`tr`,{className:or,children:[(0,z.jsxs)(`td`,{className:Rr,children:[(0,z.jsx)(`span`,{className:`block text-body-sm text-ink`,children:e.title||e.path}),(0,z.jsx)(`span`,{className:`block truncate font-mono text-body-sm text-muted`,"data-tip":`${e.host}${e.path}`,children:e.path})]}),t&&(0,z.jsx)(`td`,{className:S(`px-4 py-2`,`hidden max-w-[200px] truncate text-body-sm text-muted @3xl:table-cell`),children:Up(e.host)}),(0,z.jsx)(`td`,{className:Wr,children:e.elements}),(0,z.jsx)(`td`,{className:S(Wr,`hidden @2xl:table-cell`),children:e.visits}),(0,z.jsx)(`td`,{className:S(Wr,`text-muted`),"data-sort":Date.parse(e.lastSeen||``)||0,children:Bp(e.lastSeen)}),(0,z.jsx)(`td`,{className:S(Rr,`w-[1%] text-right whitespace-nowrap`),children:n})]})}function Yp({view:e,target:t,files:n,label:r,question:i,done:a,icon:o,onCleared:s}){let[c,l]=(0,R.useState)(!1),[u,d]=(0,R.useState)(!1);if((0,R.useEffect)(()=>l(!1),[t?.name]),!n)return null;let f=async()=>{d(!0);try{let e=await be.clearMemory(t);s(e,`Removed ${x(e.removed??0,`file`)} of memory${a}. The next runs learn it again.`)}catch(t){s(e,t.message)}finally{d(!1),l(!1)}};return c?(0,z.jsxs)(`span`,{role:`alertdialog`,"aria-label":r,className:S(S(N.fail,`inline-flex flex-wrap items-center gap-2 text-left`),o&&`w-[240px] whitespace-normal [overflow-wrap:anywhere]`),children:[i,(0,z.jsxs)(I,{variant:`destructive`,size:`sm`,disabled:u,onClick:()=>void f(),children:[(0,z.jsx)(Pn,{"aria-hidden":`true`}),t?.kind===`flow`||t?.kind===`page`?`Forget`:`Clear`]}),(0,z.jsxs)(I,{size:`sm`,onClick:()=>l(!1),children:[(0,z.jsx)(On,{"aria-hidden":`true`}),`Keep`]})]}):o?(0,z.jsx)(I,{size:`icon`,variant:`icon`,"aria-label":r,"data-tip":r,onClick:()=>l(!0),className:`size-8`,children:(0,z.jsx)(Pn,{"aria-hidden":`true`})}):(0,z.jsxs)(I,{variant:`danger`,size:`sm`,onClick:()=>l(!0),"data-tip":r,children:[(0,z.jsx)(Pn,{"aria-hidden":`true`}),t?.kind===`flow`||t?.kind===`page`?`Forget`:`Clear`]})}var Xp=[`flows`,`pages`];function Zp(){let[e,t]=(0,R.useState)(null),[n,r]=(0,R.useState)(``),[i,a]=(0,R.useState)(zp),[o,c]=(0,R.useState)(`flows`);Ap(`memory`,o,Xp,!0,c);let[l,u]=(0,R.useState)(`all`),[f,p]=(0,R.useState)(``),[m,h]=(0,R.useState)(null),[g,_]=(0,R.useState)(``),v=(0,R.useCallback)(()=>{r(``),be.memory().then(t,e=>r(e.message))},[]);(0,R.useEffect)(v,[v]);let y=(0,R.useMemo)(()=>{let t=new Map,n=e=>t.get(Up(e))??t.set(Up(e),{flows:0,pages:0,failing:0}).get(Up(e));for(let t of e?.flows||[]){let e=n(t.host);e.flows++,(Hp(t)===`failing`||Hp(t)===`never`)&&e.failing++}for(let t of e?.pages||[])n(t.host).pages++;for(let t of e?.targets||[])n(t.name);return[...t.entries()].map(([e,t])=>({name:e,...t})).sort((e,t)=>t.flows+t.pages-(e.flows+e.pages))},[e]),b=i?e?.targets.find(e=>e.name===i):void 0,C=(e,n)=>{t({...e}),_(n)},w=f.toLowerCase().split(/\s+/).filter(Boolean),ee=(0,R.useMemo)(()=>(e?.flows||[]).filter(e=>(!i||Up(e.host)===i)&&(l===`all`||Hp(e)===l)&&w.every(t=>`${e.goal} ${e.host||``}`.toLowerCase().includes(t))).sort((e,t)=>(Date.parse(t.lastRun||``)||0)-(Date.parse(e.lastRun||``)||0)),[e,i,l,f]),E=(0,R.useMemo)(()=>(e?.pages||[]).filter(e=>(!i||Up(e.host)===i)&&w.every(t=>`${e.title||``} ${e.path} ${e.host}`.toLowerCase().includes(t))).sort((e,t)=>(Date.parse(t.lastSeen||``)||0)-(Date.parse(e.lastSeen||``)||0)),[e,i,f]),D=(0,R.useMemo)(()=>{let t={all:0,replaying:0,failing:0,never:0};for(let n of e?.flows||[]){if(i&&Up(n.host)!==i)continue;t.all++;let e=Hp(n);e!==`ok`&&t[e]++}return t},[e,i]);return(0,z.jsxs)(`div`,{className:`flex min-h-(--screen) flex-col`,children:[(0,z.jsx)(Fr,{}),(0,z.jsxs)(`main`,{className:S(Ir,`@container`),children:[(0,z.jsx)(Ue,{className:`mb-2`}),(0,z.jsxs)(`div`,{className:`mb-1 flex flex-wrap items-center gap-4`,children:[(0,z.jsx)(Xn,{pixel:T.memory,size:`lg`}),(0,z.jsx)(`h1`,{className:`m-0 flex-1 text-headline-lg`,children:`Memory`}),(0,z.jsxs)(`a`,{href:s(`settings`,`runs`),className:S(P({size:`sm`,variant:`ghost`}),`gap-2`),"data-tip":`Memory settings`,children:[(0,z.jsx)(xt,{"aria-hidden":`true`}),`Settings`]})]}),(0,z.jsxs)(`p`,{className:`mt-1 mb-6 text-body-sm leading-relaxed text-ink-2`,children:[`What ForgeQE learned from runs that passed, so the next run of the same task is faster and cheaper. A `,(0,z.jsx)(`b`,{className:`font-medium text-ink-2`,children:`flow`}),` is a task's steps, replayed without the AI; a `,(0,z.jsx)(`b`,{className:`font-medium text-ink-2`,children:`page`}),` keeps the elements found on it.`]}),n&&(0,z.jsxs)(`div`,{role:`alert`,className:S(N.fail,`flex flex-col items-start gap-4`),children:[n,(0,z.jsxs)(I,{onClick:v,"data-tip":`Try again`,children:[(0,z.jsx)(st,{"aria-hidden":`true`}),`Retry`]})]}),!e&&!n&&(0,z.jsx)(`p`,{className:`m-0 text-body-sm text-muted`,children:`Loading…`}),e&&(0,z.jsxs)(z.Fragment,{children:[!e.enabled&&(0,z.jsxs)(`p`,{className:S(N.warn,`mt-0 mb-4`),children:[`Memory is off for this project: runs neither use nor add to it. Turn it on in `,(0,z.jsx)(`a`,{href:s(`settings`,`runs`),children:`Memory settings`}),`.`]}),(0,z.jsx)(Wp,{view:e}),g&&(0,z.jsx)(`p`,{role:`status`,className:S(N.info,`mt-0 mb-4`),children:g}),e.flows.length+e.pages.length===0?(0,z.jsx)(ze,{icon:En,title:`Nothing remembered yet`,action:(0,z.jsxs)(`a`,{className:P({size:`sm`}),href:s(),"data-tip":`Run something from Home`,children:[(0,z.jsx)(bt,{"aria-hidden":`true`}),`Run`]}),children:`Each browser run that passes adds its pages and steps, and the next run of the same task replays them.`}):(0,z.jsxs)(`section`,{className:`flex min-w-0 flex-col gap-4`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,z.jsx)(yr,{label:`What to show`,className:`mb-0`,current:o,onPick:c,tabs:[{id:`flows`,label:`Flows`,n:ee.length},{id:`pages`,label:`Pages`,n:E.length}]}),(0,z.jsxs)(d,{"aria-label":`Site`,value:i,onChange:e=>a(e.target.value),className:`w-auto max-w-[280px] min-w-[180px] flex-[0_1_240px]`,children:[(0,z.jsxs)(`option`,{value:zp,children:[`All sites (`,y.length,`)`]}),y.map(e=>(0,z.jsxs)(`option`,{value:e.name,children:[e.name,e.failing?` (${e.failing} failed)`:``]},e.name))]}),(0,z.jsx)(He,{id:`tab-flows-find-a-flow-fi`,label:o===`flows`?`Find a flow`:`Find a page`,value:f,onChange:p,placeholder:o===`flows`?`Find a flow by its task`:`Find a page by title or path`}),(0,z.jsx)(`span`,{className:`ml-auto`,children:(0,z.jsx)(Yp,{view:e,target:b,files:i?b?.files??0:e.files,label:i?`Clear this site`:`Clear everything`,question:`Remove ${x(i?b?.files??0:e.files,`file`)} for ${i||`everything`}? Runs learn it again.`,done:b?` for ${b.name}`:``,onCleared:C})})]}),o===`flows`&&(0,z.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:(0,z.jsx)(Be,{items:[[`all`,`All`],[`replaying`,`Replaying`],[`failing`,`Failed last time`],[`never`,`Never passed`]].map(([e,t])=>({id:e,label:t,n:D[e],alert:e===`failing`||e===`never`})),value:l,onChange:u})}),(0,z.jsx)(`div`,{className:`@container`,children:o===`flows`?(0,z.jsx)(Sr,{label:`Flows`,search:!1,height:`max(320px, calc(var(--screen) - 288px))`,resetKey:`${i}|${l}|${f}`,empty:`Nothing matches.`,head:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-left text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,children:`Task`}),!i&&(0,z.jsx)(`th`,{scope:`col`,className:S(`px-4 py-2 text-left text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,`hidden @3xl:table-cell`),children:`Site`}),(0,z.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-left text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,children:`Status`}),(0,z.jsx)(`th`,{scope:`col`,className:S(`px-4 py-2 text-right text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,`hidden @2xl:table-cell`),children:`Replayed`}),(0,z.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-right text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,children:`Last run`})]}),children:ee.map(e=>(0,z.jsx)(R.Fragment,{children:qp({f:e,showSite:!i,onOpen:()=>h(e)})},e.id))}):(0,z.jsx)(Sr,{label:`Pages`,search:!1,height:`max(320px, calc(var(--screen) - 288px))`,resetKey:`${i}|${f}`,empty:`Nothing matches.`,head:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-left text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,children:`Page`}),!i&&(0,z.jsx)(`th`,{scope:`col`,className:S(`px-4 py-2 text-left text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,`hidden @3xl:table-cell`),children:`Site`}),(0,z.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-right text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,children:`Elements`}),(0,z.jsx)(`th`,{scope:`col`,className:S(`px-4 py-2 text-right text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,`hidden @2xl:table-cell`),children:`Visits`}),(0,z.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-right text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,children:`Last seen`}),(0,z.jsx)(`th`,{scope:`col`,className:`px-4 py-2 text-left text-label-md font-medium tracking-wide whitespace-nowrap text-muted uppercase`,children:(0,z.jsx)(`span`,{className:`sr-only`,children:`Forget`})})]}),children:E.map(t=>(0,z.jsx)(R.Fragment,{children:Jp({p:t,showSite:!i,forget:(0,z.jsx)(Yp,{icon:!0,view:e,target:{name:t.id,kind:`page`},files:1,label:`Forget ${t.title||t.path}`,question:`Forget ${t.host}${t.path}? Runs find its elements again.`,done:` for ${t.host}${t.path}`,onCleared:C})})},t.id))})})]})]})]}),(0,z.jsx)(Pr,{open:!!m,onClose:()=>h(null),title:`Flow`,description:m?.host?`On ${m.host}`:`A task ForgeQE remembers`,footer:(0,z.jsxs)(I,{onClick:()=>h(null),children:[(0,z.jsx)(wt,{"aria-hidden":`true`}),`Close`]}),children:m&&(0,z.jsxs)(`div`,{className:`flex flex-col gap-4 pt-4 text-body-sm`,children:[(0,z.jsx)(`p`,{className:`m-0 leading-relaxed whitespace-pre-wrap text-ink [overflow-wrap:anywhere]`,children:m.goal}),(0,z.jsxs)(`dl`,{className:`m-0 grid grid-cols-[auto_1fr] gap-x-4 gap-y-2`,children:[(0,z.jsx)(`dt`,{className:`text-muted`,children:`Steps`}),(0,z.jsx)(`dd`,{className:`m-0`,children:m.steps}),(0,z.jsx)(`dt`,{className:`text-muted`,children:`Runs`}),(0,z.jsxs)(`dd`,{className:`m-0`,children:[m.runs,`, `,m.successes,` passed, `,m.failures,` failed`]}),(0,z.jsx)(`dt`,{className:`text-muted`,children:`Replayed`}),(0,z.jsxs)(`dd`,{className:`m-0`,children:[x(m.replays,`time`),`; `,m.replayedSteps,` of `,m.replayedSteps+m.modelSteps,` steps without a model`]}),(0,z.jsx)(`dt`,{className:`text-muted`,children:`Last run`}),(0,z.jsxs)(`dd`,{className:`m-0`,children:[m.lastRun?new Date(m.lastRun).toLocaleString([],{dateStyle:`medium`,timeStyle:`short`}):`—`,m.lastStatus?`, ${m.lastStatus}`:``]})]}),(0,z.jsx)(`p`,{className:S(N.info,`m-0`),children:Hp(m)===`never`?`It has not passed yet, so nothing replays: the next run of this task asks the model at each step.`:Hp(m)===`failing`?`Its last run failed. The next run replays the steps that worked, then the agent takes over from where it went wrong.`:`The next run of this task replays its steps without a model, and the agent looks once to confirm the result.`}),e&&(0,z.jsx)(`div`,{className:`pt-4`,children:(0,z.jsx)(Yp,{view:e,target:{name:m.id,kind:`flow`},files:1,label:`Forget this flow`,question:`Forget this flow? The next run of its task asks the model at each step and learns it again.`,done:` for this flow`,onCleared:(e,t)=>{C(e,t),e.flows.some(e=>e.id===m.id)||h(null)}})})]})})]})}var Qp=[];function $p({section:e}){return(0,z.jsxs)(`div`,{className:`flex min-h-(--screen) flex-col`,children:[(0,z.jsx)(Fr,{}),(0,z.jsxs)(`main`,{className:S(Ir,`gap-4`),children:[(0,z.jsx)(Ue,{}),(0,z.jsx)(`h1`,{className:`m-0 text-headline-lg`,children:e.label}),(0,z.jsxs)(`p`,{className:`m-0 leading-relaxed text-ink-2`,children:[e.what,` are not in the web app yet. In a terminal in your project folder, run`,` `,(0,z.jsx)(`code`,{className:Qr,children:e.command}),`.`]})]})]})}var em=class extends R.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,z.jsxs)(`div`,{role:`alert`,className:`m-0 px-6 py-10 text-body-sm text-muted`,children:[(0,z.jsx)(`p`,{className:`m-0`,children:`This page could not be shown. Check the address, or go back and try again.`}),(0,z.jsx)(`p`,{className:`m-0 mt-2`,children:(0,z.jsx)(`a`,{href:s(),className:`underline`,children:`Go to Home`})})]}):this.props.children}};function $(e,t){let n,r,i=()=>r??=e().then(e=>n=t(e),e=>{throw r=void 0,e}),a=(0,R.lazy)(()=>i().then(()=>({default:n})));return Object.assign(e=>(0,R.createElement)(n||a,e),{preload:i})}var tm=()=>v(()=>import(`./Chat-DNiUvy2O.js`),__vite__mapDeps([23,1,2,3,8,9,4,13,5,6,10,7,11,12,16,24,25,26,27,15])),nm=$(()=>v(()=>import(`./Settings-VqVLvH-Z.js`),__vite__mapDeps([14,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18,19,20,21,22])),e=>e.Settings),rm=$(tm,e=>e.Chat),im=$(tm,e=>e.Chats),am=$(()=>v(()=>import(`./Reports-BBRMV5V8.js`),__vite__mapDeps([28,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18])),e=>e.Reports),om=$(()=>v(()=>import(`./Agent-d4YX63iA.js`),__vite__mapDeps([29,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18,30,31,32,33,20,34,35,21,36])),e=>e.Agent),sm=$(()=>v(()=>Promise.resolve().then(()=>bu),void 0),e=>e.Runs),cm=$(()=>v(()=>import(`./Record-C790-f2w.js`),__vite__mapDeps([37,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18,20,25,26,38,39,36,22,40])),e=>e.Record),lm=$(()=>v(()=>import(`./Desktop-Bm6ObXhU.js`),__vite__mapDeps([41,1,2,3,8,9,4,5,6,10,7,11,12,13,15,17,16,18,36,38,39])),e=>e.Desktop),um=$(()=>v(()=>import(`./Mobile-ClrjICJt.js`),__vite__mapDeps([42,1,2,3,8,9,4,5,6,10,7,11,12,13,15,17,16,18,36,27,26,39])),e=>e.Mobile),dm=$(()=>v(()=>import(`./Regression-PDhRTDKs.js`),__vite__mapDeps([43,1,2,3,8,9,4,13,5,6,10,7,11,12,16,44,33,24,22])),e=>e.Regression),fm=$(()=>v(()=>import(`./Impact-eg2nHsiv.js`),__vite__mapDeps([45,1,2,3,8,9,4,13,5,6,10,7,11,12,16,30,46])),e=>e.Impact),pm=$(()=>v(()=>import(`./ApiTests-C_L2iJ8s.js`),__vite__mapDeps([47,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18,44,33,24])),e=>e.ApiTests),mm=$(()=>v(()=>import(`./Migration-ZhSPJ6QL.js`),__vite__mapDeps([48,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18,33,35,20,34,49,50,51])),e=>e.Migration),hm=$(()=>v(()=>import(`./Compare-CVvpgS-7.js`),__vite__mapDeps([52,1,2,3,9,4,10,7,8,6,11,49,51,17,16,18,20,50])),e=>e.ToscaCompare),gm=$(()=>v(()=>import(`./Quality-CdrPT4WV.js`),__vite__mapDeps([53,1,2,3,8,9,4,13,5,6,10,7,11,12,15,17,16,18,54])),e=>e.Quality),_m=$(()=>v(()=>import(`./Flaky-F5NHbFgI.js`),__vite__mapDeps([55,1,2,3,8,9,4,13,5,6,10,7,11,12,54,15,17,16,18])),e=>e.Flaky),vm=$(()=>v(()=>import(`./RunDiff-CsND-A6h.js`),__vite__mapDeps([56,1,2,3,8,9,4,13,5,6,10,7,11,12,15,54,17,16,18])),e=>e.RunDiff),ym=$(()=>v(()=>import(`./Responsive-DZXESkT1.js`),__vite__mapDeps([57,1,2,3,8,9,4,5,6,10,7,11,12,13,15,20,34,50,49])),e=>e.Responsive),bm=$(()=>v(()=>import(`./Requirements-DRz1Yudy.js`),__vite__mapDeps([58,1,2,3,8,9,4,5,6,10,7,11,12,13,15,17,16,18,20,34,35,33,50,49])),e=>e.Requirements),xm=$(()=>v(()=>import(`./TestManagement-SBq56JNZ.js`),__vite__mapDeps([59,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18,54,40])),e=>e.TestManagement),Sm=$(()=>v(()=>import(`./Flags-DEitGv3r.js`),__vite__mapDeps([60,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,54,17,18])),e=>e.Flags),Cm=$(()=>v(()=>import(`./Production-DSDdBODO.js`),__vite__mapDeps([61,1,2,3,9,4,13,8,5,6,10,7,11,12,15,17,16,18,54])),e=>e.Production),wm=$(()=>v(()=>import(`./Cost-DJnZYyQP.js`),__vite__mapDeps([62,1,2,3,9,4,13,8,5,6,10,7,11,12,15,54,17,16,18])),e=>e.Cost),Tm=$(()=>v(()=>import(`./Observability-CQ7WAuBH.js`),__vite__mapDeps([63,1,2,3,9,4,13,8,5,6,10,7,11,12,15,54,17,16,18])),e=>e.Observability),Em=$(()=>v(()=>import(`./Explore-Dhwu33Xf.js`),__vite__mapDeps([64,1,2,3,8,9,4,5,6,10,7,11,12,13,15,16,54,17,18])),e=>e.Explore),Dm=$(()=>v(()=>import(`./Readiness-C9qM2rKO.js`),__vite__mapDeps([65,1,2,3,8,9,4,13,5,6,10,7,11,12,15,54,17,16,18])),e=>e.Readiness),Om=$(()=>v(()=>import(`./KindPage-CaXbIzyO.js`),__vite__mapDeps([66,1,2,3,8,9,4,13,5,6,10,7,11,12,15,17,16,18,36,44,33,24,54])),e=>e.Accessibility),km=$(()=>v(()=>import(`./KindPage-CaXbIzyO.js`),__vite__mapDeps([66,1,2,3,8,9,4,13,5,6,10,7,11,12,15,17,16,18,36,44,33,24,54])),e=>e.Performance),Am=$(()=>v(()=>import(`./KindPage-CaXbIzyO.js`),__vite__mapDeps([66,1,2,3,8,9,4,13,5,6,10,7,11,12,15,17,16,18,36,44,33,24,54])),e=>e.Visual),jm=$(()=>v(()=>import(`./Data-DEWYrB9n.js`),__vite__mapDeps([67,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18,33,36,44,24,68])),e=>e.Data),Mm=$(()=>v(()=>import(`./TestData-hIJO8oL4.js`),__vite__mapDeps([68,1,2,3,8,9,4,13,5,6,10,7,11,12,15,36,16,17,18])),e=>e.TestData),Nm=$(()=>v(()=>import(`./Features-D-HIDQqF.js`),__vite__mapDeps([69,1,2,3,8,9,4,13,5,6,10,7,11,12,17,16,18])),e=>e.Features),Pm=$(()=>v(()=>import(`./Jobs-GBUaaYcw.js`),__vite__mapDeps([70,1,2,3,8,9,4,13,5,6,10,7,11,12,17,16,18,44,33,24,22])),e=>e.Jobs),Fm=$(()=>v(()=>import(`./Product-DyhX2TYr.js`),__vite__mapDeps([71,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,30,31,32,33,20,44,24,72,46,50,49])),e=>e.Product),Im=$(()=>v(()=>import(`./Evidence-D5fORfDF.js`),__vite__mapDeps([73,1,2,3,8,9,4,13,5,6,10,7,11,12,15,16,17,18,72])),e=>e.Evidence),Lm=$(()=>v(()=>import(`./WhatsNew-BwV-yle3.js`),__vite__mapDeps([74,1,2,8,9,4,13,5,6,10,7,11,3,12])),e=>e.WhatsNew),Rm=$(()=>v(()=>import(`./Browse-BjPPdirz.js`),__vite__mapDeps([75,1,2,11,3,10])),e=>e.Browse),zm={chats:im,reports:am,agents:om,runs:sm,record:cm,desktop:lm,mobile:um,regression:dm,impact:fm,"api-tests":pm,migration:mm,quality:gm,flaky:_m,"run-diff":vm,responsive:ym,requirements:bm,"test-management":xm,flags:Sm,production:Cm,cost:wm,observability:Tm,explore:Em,readiness:Dm,accessibility:Om,performance:km,visual:Am,data:jm,"test-data":Mm,features:Nm,jobs:Pm,schedules:Pm,product:Fm,evidence:Im,"evidence-runs":Im,"evidence-contracts":Im,"evidence-review":Im,"evidence-releases":Im,"evidence-learn":Im,"evidence-monitor":Im,"whats-new":Lm,browse:Rm},Bm=e=>zm[e[0]||``]?.preload();function Vm(){let e=a(Bm),[t=``,n,...r]=e;oe();let[,i]=(0,R.useState)(0),[s,c]=(0,R.useState)(0);return(0,R.useEffect)(()=>{let e=()=>Object.values(zm).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,R.useEffect)(()=>{Se.get().then(e=>{Gr(e),i(e=>e+1)},()=>{})},[]),(0,R.useEffect)(()=>{Te.status().then(e=>{let t=location.hash.replace(/^#\/?/,``).split(`/`)[0];!e.ready&&e.state===null&&t!==`welcome`&&t!==`settings`&&location.replace(`#/welcome/setup`)},()=>{})},[]),t===`tosca`&&n&&r[0]===`compare`?(0,z.jsx)(em,{at:e.join(`/`),children:(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(hm,{id:n,caseId:r[1]?o(r[1]):void 0})})}):(0,z.jsxs)(_r,{current:t,route:e,children:[(0,z.jsx)(Mi,{onReload:()=>c(e=>e+1)}),(0,z.jsx)(R.Fragment,{children:(0,z.jsx)(em,{at:e.join(`/`),children:(0,z.jsx)(Wm,{page:t,sub:(t===`data`||t===`jobs`||t===`responsive`||t===`desktop`||t===`mobile`||t===`product`||t===`agents`||t===`runs`||t===`evidence`||t===`evidence-runs`||t===`accessibility`||t===`performance`||t===`test-cases`||t===`test-management`||t===`quality`||t===`record`||t===`requirements`||t===`tosca`||t===`migration`||t===`browse`||t===`knowledge`)&&n?[n,...r].join(`/`):n})})},s)]})}function Hm(e){return e?e===`conversions`?s(`migration`,`migrations`):`#/migration/${e}`:s(`migration`,`guide`)}function Um({to:e}){return(0,R.useEffect)(()=>{location.replace(e)},[e]),null}function Wm({page:e,sub:t}){if(e===`settings`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(nm,{section:t})});if(e===`welcome`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(nm,{guide:t??``},`welcome`)});if(e===`chats`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:t?(0,z.jsx)(rm,{id:t}):(0,z.jsx)(im,{})});if(e===`reports`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(am,{sub:t})});if(e===`jobs`||e===`schedules`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(Pm,{sub:e===`jobs`?t:void 0})});if(e===`impact`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(fm,{})});if(e===`regression`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(dm,{sub:t})});if(e===`api-tests`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(pm,{sub:t})});if(e===`migration`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(mm,{sub:t})});if(e===`tosca`)return(0,z.jsx)(Um,{to:Hm(t)});if(e===`quality`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(gm,{sub:t})});if(e===`readiness`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(Dm,{})});if(e===`explore`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(Em,{sub:t})});if(e===`cost`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(wm,{})});if(e===`observability`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(Tm,{})});if(e===`production`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(Cm,{})});if(e===`flags`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(Sm,{})});if(e===`test-management`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(xm,{sub:t})});if(e===`test-debt`)return(0,z.jsx)(Um,{to:s(`test-management`,`debt`,...t?[t]:[])});if(e===`requirements`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(bm,{sub:t})});if(e===`responsive`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(ym,{sub:t})});if(e===`run-diff`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(vm,{sub:t})});if(e===`flaky`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(_m,{})});if(e===`test-cases`)return(0,z.jsx)(Um,{to:t?`#/test-management/stories/${t}`:s(`test-management`,`stories`)});if(e===`accessibility`||e===`performance`||e===`visual`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(e===`accessibility`?Om:e===`performance`?km:Am,{sub:t},e)});if(e===`data`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(jm,{sub:t})});if(e===`test-data`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(Mm,{sub:t})});if(e===`features`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(Nm,{})});if(e===`whats-new`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(Lm,{})});if(e===`record`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(cm,{sub:t})});if(e===`desktop`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(lm,{sub:t})});if(e===`mobile`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(um,{sub:t})});if(e===`agents`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(om,{id:t})});if(e===`runs`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(sm,{sub:t})});if(e===`product`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(Fm,{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,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(Im,{page:e,sub:t})});if(e===`browse`)return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(Rm,{sub:t})});if(e===`knowledge`)return(0,z.jsx)(Rp,{sub:t});if(e===`memory`)return(0,z.jsx)(Zp,{});if(pe.includes(e))return(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(`p`,{className:`m-0 px-6 py-10 text-body-sm text-muted`,children:`Opening…`}),children:(0,z.jsx)(nm,{only:e},e)});let n=Qp.find(t=>t.id===e);return n?(0,z.jsx)($p,{section:n}):(0,z.jsx)(cf,{})}De(),Fe(),Ne(),Jr(),ki(document),Oi(),(0,ci.createRoot)(document.getElementById(`root`)).render((0,z.jsx)(R.StrictMode,{children:(0,z.jsxs)(ie,{children:[(0,z.jsx)(Vm,{}),(0,z.jsx)(Ti,{})]})}));export{So as $,Id as A,_c as B,Zd as C,Yd as D,Xd as E,Jl as F,Go as G,pc as H,Kl as I,Bo as J,Wo as K,$c as L,Rd as M,gd as N,Fd as O,Yl as P,Lo as Q,Hc as R,tf as S,qd as T,qo as U,mc as V,Ko as W,Uo as X,Vo as Y,Ho as Z,Cf as _,Dp as a,Ka as at,sf as b,Cp as c,Pa as ct,pp as d,Ni as dt,xo as et,ep as f,B as ft,_f as g,lf as h,Op as i,Ga as it,Ud as j,Bd as k,hp as l,Ba as lt,xf as m,Pp as n,uo as nt,Ap as o,Ua as ot,bf as p,Ro as q,Np as r,Wa as rt,kp as s,Ha as st,jp as t,bo as tt,bp as u,aa as ut,hf as v,Kd as w,cf as x,uf as y,Ec as z};