@capagents/forgeqe 2.4.4 → 2.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/HOW_TO_USE.md +24 -4
  2. package/dist/docs-site/CREDITS.md +26 -0
  3. package/dist/docs-site/LICENSE.ubuntu.txt +96 -0
  4. package/dist/docs-site/architecture-map/arch.css +345 -0
  5. package/dist/docs-site/architecture-map/arch.js +119 -0
  6. package/dist/docs-site/architecture-map/index.html +184 -0
  7. package/dist/docs-site/docs/architecture/index.html +655 -0
  8. package/dist/docs-site/docs/containers/index.html +434 -0
  9. package/dist/docs-site/docs/cost-architecture/index.html +538 -0
  10. package/dist/docs-site/docs/desktop/index.html +496 -0
  11. package/dist/docs-site/docs/desktop-ci/index.html +225 -0
  12. package/dist/docs-site/docs/docs.css +307 -0
  13. package/dist/docs-site/docs/docs.js +206 -0
  14. package/dist/docs-site/docs/feature-test-prompts/index.html +255 -0
  15. package/dist/docs-site/docs/guardrails/index.html +155 -0
  16. package/dist/docs-site/docs/index.html +4706 -0
  17. package/dist/docs-site/docs/mobile/index.html +353 -0
  18. package/dist/docs-site/docs/model-routing/index.html +244 -0
  19. package/dist/docs-site/docs/product-knowledge/index.html +156 -0
  20. package/dist/docs-site/docs/search.js +4 -0
  21. package/dist/docs-site/docs/web-app/index.html +295 -0
  22. package/dist/docs-site/img/capgemini-color.svg +21 -0
  23. package/dist/docs-site/img/favicon.png +0 -0
  24. package/dist/docs-site/img/icons/api.svg +1 -0
  25. package/dist/docs-site/img/icons/architecture.svg +1 -0
  26. package/dist/docs-site/img/icons/branch.svg +1 -0
  27. package/dist/docs-site/img/icons/browser-agent.svg +1 -0
  28. package/dist/docs-site/img/icons/case.svg +1 -0
  29. package/dist/docs-site/img/icons/container.svg +1 -0
  30. package/dist/docs-site/img/icons/context-engine.svg +1 -0
  31. package/dist/docs-site/img/icons/desktop.svg +1 -0
  32. package/dist/docs-site/img/icons/download.svg +1 -0
  33. package/dist/docs-site/img/icons/explorer.svg +1 -0
  34. package/dist/docs-site/img/icons/feature.svg +1 -0
  35. package/dist/docs-site/img/icons/healer.svg +1 -0
  36. package/dist/docs-site/img/icons/knowledge-base.svg +1 -0
  37. package/dist/docs-site/img/icons/mobile.svg +1 -0
  38. package/dist/docs-site/img/icons/model.svg +1 -0
  39. package/dist/docs-site/img/icons/network.svg +1 -0
  40. package/dist/docs-site/img/icons/orchestrator.svg +1 -0
  41. package/dist/docs-site/img/icons/plug.svg +1 -0
  42. package/dist/docs-site/img/icons/pr-reviewer.svg +1 -0
  43. package/dist/docs-site/img/icons/replay.svg +1 -0
  44. package/dist/docs-site/img/icons/report.svg +1 -0
  45. package/dist/docs-site/img/icons/result.svg +1 -0
  46. package/dist/docs-site/img/icons/rule.svg +1 -0
  47. package/dist/docs-site/img/icons/scribe.svg +1 -0
  48. package/dist/docs-site/img/icons/shield.svg +1 -0
  49. package/dist/docs-site/img/icons/specs.svg +1 -0
  50. package/dist/docs-site/img/icons/speed.svg +1 -0
  51. package/dist/docs-site/img/icons/stories.svg +1 -0
  52. package/dist/docs-site/img/icons/terminal.svg +1 -0
  53. package/dist/docs-site/img/icons/test-finder.svg +1 -0
  54. package/dist/docs-site/img/icons/visual.svg +1 -0
  55. package/dist/docs-site/img/icons/web.svg +1 -0
  56. package/dist/docs-site/img/icons/wikis.svg +1 -0
  57. package/dist/docs-site/img/logos/android.svg +1 -0
  58. package/dist/docs-site/img/logos/appium.svg +1 -0
  59. package/dist/docs-site/img/logos/apple.svg +1 -0
  60. package/dist/docs-site/img/logos/azure.svg +1 -0
  61. package/dist/docs-site/img/logos/azuredevops.svg +12 -0
  62. package/dist/docs-site/img/logos/azurepipelines.svg +1 -0
  63. package/dist/docs-site/img/logos/browserstack.svg +1 -0
  64. package/dist/docs-site/img/logos/chrome.svg +1 -0
  65. package/dist/docs-site/img/logos/claudecode.svg +1 -0
  66. package/dist/docs-site/img/logos/confluence.svg +1 -0
  67. package/dist/docs-site/img/logos/docker.svg +1 -0
  68. package/dist/docs-site/img/logos/email.svg +1 -0
  69. package/dist/docs-site/img/logos/github.svg +1 -0
  70. package/dist/docs-site/img/logos/githubactions.svg +1 -0
  71. package/dist/docs-site/img/logos/jira.svg +1 -0
  72. package/dist/docs-site/img/logos/lmstudio.svg +1 -0
  73. package/dist/docs-site/img/logos/maestro.png +0 -0
  74. package/dist/docs-site/img/logos/ollama.svg +1 -0
  75. package/dist/docs-site/img/logos/openai.svg +1 -0
  76. package/dist/docs-site/img/logos/podman.svg +1 -0
  77. package/dist/docs-site/img/logos/qtest.svg +1 -0
  78. package/dist/docs-site/img/logos/teams.svg +1 -0
  79. package/dist/docs-site/img/logos/testmu.svg +1 -0
  80. package/dist/docs-site/img/logos/testrail.svg +1 -0
  81. package/dist/docs-site/img/logos/vllm.svg +1 -0
  82. package/dist/docs-site/img/logos/windows.svg +1 -0
  83. package/dist/docs-site/img/logos/wiremock.png +0 -0
  84. package/dist/docs-site/img/logos/xray.svg +1 -0
  85. package/dist/docs-site/img/logos/zephyr.png +0 -0
  86. package/dist/docs-site/img/wordmark-white.webp +0 -0
  87. package/dist/docs-site/site-header.css +29 -0
  88. package/dist/forgeqe.js +1010 -1048
  89. package/dist/template.html +4 -4
  90. package/dist/web/assets/ApiTests-CNUbGOAY.js +2 -0
  91. package/dist/web/assets/Chat-DU2a1lg2.js +3 -0
  92. package/dist/web/assets/{Data-BB-IahMh.js → Data-BMmaUggv.js} +4 -4
  93. package/dist/web/assets/Features-Ciy-CcIJ.js +1 -0
  94. package/dist/web/assets/Jobs-D6siJpbm.js +3 -0
  95. package/dist/web/assets/Quality-BrEGVxJH.js +1 -0
  96. package/dist/web/assets/Record-DrlDedsV.js +1 -0
  97. package/dist/web/assets/Regression-DpRx7yLr.js +2 -0
  98. package/dist/web/assets/Reports-BE4Jg3Pa.js +2 -0
  99. package/dist/web/assets/Response-pcvzCf4S.js +8 -0
  100. package/dist/web/assets/Runs-DemSYbtq.js +2 -0
  101. package/dist/web/assets/{circle-dashed-BzDi4lOK.js → circle-dashed-CEZcCi0T.js} +1 -1
  102. package/dist/web/assets/{external-link-7UCuXRch.js → external-link-NCKfigiH.js} +1 -1
  103. package/dist/web/assets/{file-chart-column-increasing-lJjSX1iR.js → file-chart-column-increasing-tV7y_ABu.js} +1 -1
  104. package/dist/web/assets/frame-Dq1wC8eF.js +3 -0
  105. package/dist/web/assets/index-C_8DS1Wt.js +26 -0
  106. package/dist/web/assets/index-E1pAbXe5.css +2 -0
  107. package/dist/web/assets/{markdown-DCFfynVM.js → markdown-BmsRBxB-.js} +8 -8
  108. package/dist/web/assets/{sticky-note-CJn6JUwD.js → sticky-note-CinvvKBc.js} +1 -1
  109. package/dist/web/assets/{terminal-CcBS6Zf0.js → terminal-EkGTrfG9.js} +1 -1
  110. package/dist/web/assets/{trending-up-GGhSrbVh.js → trending-up-BLA071mC.js} +1 -1
  111. package/dist/web/index.html +3 -3
  112. package/docs/WEB_APP.md +16 -2
  113. package/docs/user-guide.html +27 -6
  114. package/docs/walkthrough/hotfix-narration.md +752 -0
  115. package/docs/walkthrough/index.html +238 -39
  116. package/forgeqe.example.yaml +12 -0
  117. package/package.json +2 -1
  118. package/prompts/brain.md +1 -0
  119. package/py/forgeqe_mobile/hyperexecute.py +1 -0
  120. package/dist/web/assets/ApiTests-CcCxkGF_.js +0 -2
  121. package/dist/web/assets/Chat-LTwJQfTv.js +0 -3
  122. package/dist/web/assets/Features-DtoKlY0g.js +0 -1
  123. package/dist/web/assets/Jobs-D6faC6C7.js +0 -3
  124. package/dist/web/assets/Quality-CuUpXKAD.js +0 -1
  125. package/dist/web/assets/Record-DZMZbuhu.js +0 -1
  126. package/dist/web/assets/Regression-BbNaH9Pg.js +0 -2
  127. package/dist/web/assets/Reports-D3RuBF6R.js +0 -2
  128. package/dist/web/assets/Response-BEbHVFJ7.js +0 -8
  129. package/dist/web/assets/Runs-LK-9464Y.js +0 -2
  130. package/dist/web/assets/frame-DqlMk9Ke.js +0 -3
  131. package/dist/web/assets/index-BBV4dkvi.css +0 -2
  132. package/dist/web/assets/index-DKn6ThbU.js +0 -26
  133. package/dist/web/assets/rotate-ccw-oBSoDTXr.js +0 -1
  134. package/dist/web/assets/trash-BOoKIhsY.js +0 -1
@@ -0,0 +1,8 @@
1
+ import{At as e,Hn as t,Vt as n,Wt as r,at as i,bt as a,ct as o,hn as s,in as c,nt as l,ot as u,rn as d,rt as f,st as p,zn as m}from"./frame-Dq1wC8eF.js";import{a as h,n as g,r as ee,t as _}from"./markdown-BmsRBxB-.js";import{A as te,M as ne,a as v,i as y,o as b,s as re}from"./index-C_8DS1Wt.js";var x={name:`message-circle-question-mark`,size:24,node:[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`message-circle-question`]};x.node;var ie=s(x),S={name:`square-terminal`,size:24,node:[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]],aliases:[`terminal-square`]};S.node;var ae=s(S),C=t(m(),1),w=e=>e&&typeof e==`object`&&!Array.isArray(e)?e:{},T=e=>typeof e==`string`?e:e==null?``:String(e),oe=(e,t=400)=>e.length>t?`${e.slice(0,t-1)}…`:e,E=e=>typeof e==`number`?` in ${Math.round(e/1e3)}s`:``;function D(e,t=400){return oe(e.replace(/\s+/g,` `).trim(),t).replace(/([\\`*_[\]<>#|~!])/g,`\\$1`)}function O(e){let t=e.replace(/\s+/g,` `).trim();if(!t)return``;let n=t.includes("`")?"``":"`";return`${n}${n==="``"?` `:``}${t}${n==="``"?` `:``}${n}`}function k(e,t){return/^https?:\/\/[^\s)]+$/i.test(t)?`[${D(e||t,120)}](${t})`:D(e)}var A=e=>[O(T(w(e).id)),D(T(w(e).title),200)].filter(Boolean).join(` `);function j(e){return e.replace(/<!--[\s\S]*?(?:-->|$)/g,``).trim()}function se(e){return e.replace(/\[((?:\\.|[^\]\\])*)\]\(https?:\/\/[^\s)]+\)/g,`$1`).replace(/\\(.)/g,`$1`).replace(/[*`]/g,``)}var M=(e,t)=>({tone:e,kind:`item`,md:t}),N=(e,t)=>({tone:e,kind:`sub`,md:t});function P(e,t=``){let n=t||(e.agent&&e.agent!==`forgeqe`?`**${D(T(e.agent))}:** `:``);switch(e.kind){case`info`:return M(`info`,`${n}${D(T(e.text))}`);case`start`:return M(`dim`,`${n}→ ${O(T(e.tool))}${e.text&&e.text!==e.tool?` ${D(T(e.text),200)}`:``}`);case`tool`:{let t=w(e.file);return M(e.ok===!1?`warn`:`dim`,`${n}${e.ok===!1?`⚠`:`✓`} ${D(T(e.text)||T(e.tool),240)}${t.path?` (${D(T(t.action))} ${O(T(t.path))})`:``}`)}case`say`:{let t=j(T(e.text));return t?M(`say`,`${n}*${D(t)}*`):null}case`test`:return Number(e.attempt)>0?M(e.ok?`ok`:`fail`,`${n}${e.ok?`✓`:`✗`} **Test, attempt ${D(T(e.attempt))}:** ${D(T(e.text),240)}`):M(e.ok?`ok`:`fail`,`${n}${e.ok?`✓`:`✗`} ${D(T(e.text),240)}`);case`plan`:{let t=Array.isArray(e.items)?e.items.map(w):[],r=t.find(e=>e.status===`in_progress`);return M(`info`,`${n}**Plan:** ${t.filter(e=>e.status===`completed`).length} of ${t.length} done${r?`; now: ${D(T(r.text))}`:``}`)}case`review`:return M(e.approved?`ok`:`warn`,`${n}**Review, attempt ${D(T(e.attempt))}:** ${e.approved?`approved`:`changes asked`}. ${D(T(e.summary),240)}`);case`attempt`:return M(`warn`,`${n}**Attempt ${D(T(e.attempt))} of ${D(T(e.max))}:** ${D(T(e.why),240)}`);case`answer`:return M(`dim`,`${n}Attempt ${D(T(e.attempt))}: ${D(T(e.notes)||`changed ${(Array.isArray(e.changed)?e.changed:[]).map(T).join(`, `)}`,240)}`);case`context`:return e.compacted?M(`info`,`${n}Context compacted: the conversation was summarised to make room.`):null;default:return null}}function F(e,t=``){switch(e.type){case`log`:return M(e.level===`error`?`fail`:e.level===`warn`?`warn`:`dim`,`${t}${e.level===`warn`||e.level===`error`?`⚠ `:``}${D(T(e.text))}`);case`step`:return M(`dim`,`${t}**Step ${D(T(e.step))}** · ${e.source===`memory`?`from memory`:D(T(e.category))} · ${k(T(e.title)||`untitled`,T(e.url))}`);case`memory`:return M(`info`,`${t}↻ ${D(T(e.text))}`);case`thought`:return N(`think`,`*${D(T(e.text))}*`);case`outcome`:return N(e.ok?`ok`:`fail`,`${e.ok?`✓`:`✗`} ${D(T(e.text),300)}`);case`done`:{let n=w(e.result);return M(n.status===`complete`?`ok`:`fail`,`${t}**${D(T(n.status))}:** ${D(T(n.summary))}`)}case`code`:return P(e,t);default:return null}}function ce(e){switch(e.type){case`run-start`:return{tone:`info`,kind:`head`,md:`Browser run: ${D(T(e.goal),200)}${e.url?` · ${k(T(e.url).replace(/^https?:\/\//,``),T(e.url))}`:``}`};case`run-event`:return F(w(e.event));case`run-done`:{let t=w(e.result),n=!e.error&&(t.outcome===`passed`||!t.outcome&&t.status===`complete`);return M(n?`ok`:`fail`,`${n?`✓`:`✗`} **Run ${n?`passed`:`failed`}**${E(e.ms)}: ${D(T(e.error)||T(t.summary))}${e.runDir?` · ${O(T(e.runDir))}`:``}`)}case`suite-start`:return{tone:`info`,kind:`head`,md:`Suite: ${(Array.isArray(e.cases)?e.cases:[]).length} cases, ${D(T(e.parallel))} at once`};case`suite-event`:{let t=w(e.event);if(t.type===`case-start`)return M(`info`,`**Case ${Number(t.index)+1} of ${D(T(t.total))}:** ${A(t.case)}`);if(t.type===`case-event`)return F(w(t.event),`${O(T(w(t.case).id))} `);if(t.type===`case-done`){let e=w(t.result);return M(e.status===`passed`?`ok`:`fail`,`${e.status===`passed`?`✓`:`✗`} ${A(e.case)}: **${D(T(e.status))}**${E(e.ms)}${e.summary?`. ${D(T(e.summary),240)}`:``}`)}return t.type===`code-start`?M(`info`,`${O(T(w(t.case).id))} writing its test`):t.type===`writeback`?M(`dim`,`Posted the result back: ${D(JSON.stringify(t.item),240)}`):null}case`suite-done`:{let t=(Array.isArray(w(e.suite).results)?w(e.suite).results:[]).map(w),n=t.filter(e=>e.status===`passed`).length;return M(n===t.length?`ok`:`fail`,`**Suite: ${n} of ${t.length} passed**${E(w(e.suite).ms)}`)}case`info`:return M(e.ok===!1?`fail`:e.ok===!0?`ok`:`info`,D(T(e.text)));case`agent`:return P(w(w(e.event)),`**Coding agent:** `);case`code-start`:return{tone:`info`,kind:`head`,md:`Writing a test: ${D(T(e.goal),200)}`};case`code-done`:return M(e.error?`fail`:`ok`,`${e.error?`✗`:`✓`} **Test ${e.error?`not written`:`written`}**${E(e.ms)}${e.error?`: ${D(T(e.error),240)}`:``}`);case`card`:{let t=w(e.card),n=(Array.isArray(t.body)?t.body:[]).map(T).filter(Boolean);return M(t.status===`ok`?`ok`:t.status===`fail`?`fail`:`info`,`**${D(T(t.title))}**${t.stats?` · ${D(T(t.stats))}`:``}${n.length?`: ${D(n.join(`; `),300)}`:``}`)}case`report`:return M(`ok`,`✓ Report saved: ${D(T(e.title))}`);case`call-start`:return M(`dim`,`→ ${D(T(e.text),240)}`);case`call`:return M(e.ok===!1?`warn`:`dim`,`${e.ok===!1?`⚠`:`✓`} ${D(T(e.text),240)}`);default:return null}}function I(e){let t=T(e.at)||T(e.t),n=null;switch(e.type){case`user`:n=M(`you`,`**You:** ${D(T(e.text),240)}`);break;case`agent`:n=P(w(e.event));break;case`tool`:n=ce(w(e.event));break;case`ask`:n=M(`you`,`**Asked:** ${D(T(w(e.question).title))}`);break;case`wait`:n=M(`you`,`**Waiting for you:** ${D(T(e.prompt))}`);break;case`answered`:n=M(`you`,`**You:** ${e.label===void 0?e.ok?`done, continue`:`cancel`:D(T(e.label))}`);break;case`turn_done`:n=M(e.outcome===`done`?`ok`:e.outcome===`stopped`?`warn`:`fail`,`**${e.outcome===`done`?`Done`:e.outcome===`stopped`?`Stopped`:e.outcome===`needs_input`?`Needs your input`:`Failed`}**${e.error?`: ${D(T(e.error),300)}`:``}`);break;case`settings`:n=M(`you`,`**Settings:** browser ${e.headed?`shown`:`headless`}, ${e.writeTests?`passed runs become tests`:`no tests written`}`);break;case`stderr`:n={tone:`dim`,kind:`out`,md:T(e.text)};break;case`error`:n=M(`warn`,`⚠ ${D(T(e.message))}`);break;case`fatal`:n=M(`fail`,`✗ **ForgeQE cannot go on:** ${D(T(e.message))}`);break;case`exit`:n=M(e.code===0?`dim`:`fail`,`ForgeQE stopped${e.code!==null&&e.code!==void 0?` (exit ${D(T(e.code))})`:``}${e.message?`: ${D(T(e.message))}`:``}`)}return n?{at:t,...n,plain:n.kind===`out`?n.md:se(n.md)}:null}function L(e,t){let n=e?Math.max(0,Math.round((Date.parse(t)-Date.parse(e))/1e3)):0;return Number.isFinite(n)?`+${Math.floor(n/60)}:${String(n%60).padStart(2,`0`)}`:``}function le(e,t,n){let r=n?[`## ${D(n,200)}`,``]:[],i=[],a=()=>{if(!i.length)return;let e=Math.max(2,...i.map(e=>Math.max(0,...(e.match(/`+/g)||[]).map(e=>e.length)))),t="`".repeat(e+1);r.push(``,`${t}text`,...i,t,``),i=[]};for(let n of e){let e=`\`${L(t,n.at)}\``;n.kind===`out`?i.push(`${L(t,n.at)} ${n.md}`):(a(),n.kind===`head`?r.push(``,`#### ${n.md} ${e}`,``):n.kind===`sub`?r.push(` - ${n.md}`):r.push(`- ${e} ${n.md}`))}return a(),r.join(`
2
+ `).replace(/\n{3,}/g,`
3
+
4
+ `).trim()+`
5
+ `}var R=i();function z({diff:e,className:t}){let n=0,r=0,i=e.split(`
6
+ `).flatMap((e,t)=>{if(/^(diff |index |--- |\+\+\+ )/.test(e))return[];let i=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/.exec(e);return i?(n=Number(i[1]),r=Number(i[2]),[{key:t,kind:`hunk`,text:e,a:``,b:``}]):e.startsWith(`+`)?[{key:t,kind:`add`,text:e.slice(1),a:``,b:String(r++)}]:e.startsWith(`-`)?[{key:t,kind:`del`,text:e.slice(1),a:String(n++),b:``}]:e.startsWith(`\\`)?[{key:t,kind:`hunk`,text:e,a:``,b:``}]:[{key:t,kind:`same`,text:e.startsWith(` `)?e.slice(1):e,a:String(n++),b:String(r++)}]});return(0,R.jsx)(`div`,{className:u(`max-h-[420px] overflow-auto rounded-[10px] border border-line-soft bg-bg font-mono text-[12px] leading-[1.6]`,t),children:(0,R.jsx)(`table`,{className:`w-full border-collapse`,children:(0,R.jsx)(`tbody`,{children:i.map(e=>(0,R.jsxs)(`tr`,{className:e.kind===`add`?`bg-pass-soft`:e.kind===`del`?`bg-fail-soft`:e.kind===`hunk`?`bg-surface-muted`:void 0,children:[(0,R.jsx)(`td`,{className:`w-10 px-2 text-right align-top text-muted tabular-nums select-none`,children:e.a}),(0,R.jsx)(`td`,{className:`w-10 px-2 text-right align-top text-muted tabular-nums select-none`,children:e.b}),(0,R.jsx)(`td`,{"aria-hidden":`true`,className:u(`w-4 align-top select-none`,e.kind===`add`?`text-pass`:e.kind===`del`?`text-fail`:`text-muted`),children:e.kind===`add`?`+`:e.kind===`del`?`−`:``}),(0,R.jsxs)(`td`,{className:u(`pr-3 align-top whitespace-pre`,e.kind===`hunk`?`text-muted`:`text-ink`),children:[(0,R.jsx)(`span`,{className:`sr-only`,children:e.kind===`add`?`added: `:e.kind===`del`?`removed: `:``}),e.text||` `]})]},e.key))})})})}var B=e=>{let t=V(e);return typeof t.input==`number`&&typeof t.output==`number`?{input:t.input,output:t.output,cached:typeof t.cached==`number`?t.cached:void 0}:void 0},V=e=>e&&typeof e==`object`&&!Array.isArray(e)?e:{},H=e=>typeof e==`string`?e:e==null?``:String(e),ue=[[/find_test_cases|story_test_cases|check_test_cases|list_sprints/,`Finding test cases`,`searching`],[/environment|logins/,`Preparing the environment`,`handing`],[/run_test_cases|browser_run|suite|run_goal|run_direct/,`Running in the browser`,`browsing`],[/comment_on_pr/,`Commenting on the pull request`,`working`],[/write_back|post_result|post_results|file_bugs|create_bugs/,`Posting the result`,`working`],[/write_test|heal/,`Writing the test`,`writing`],[/run_tests|bash|shell/,`Running the tests`,`working`],[/read_confluence|read|grep|glob|list|webfetch/,`Reading`,`reading`],[/edit|write|patch/,`Changing the code`,`writing`],[/task/,`Handing work to another agent`,`handing`]],de=/run_test_cases|browser_run|run_suite|write_test/,fe=[[/find_test_cases|story_test_cases|check_test_cases/,`forgeqe-find`],[/run_test_cases|browser_run|run_goal|run_direct|suite|explore_run/,`engine`],[/write_test/,`forgeqe-test`],[/heal/,`forgeqe-heal`],[/review_pr|pr_review/,`forgeqe-pr-review`],[/api_plan/,`forgeqe-api-plan`],[/write_api|api_test/,`forgeqe-api`],[/explore_plan|plan_charters/,`forgeqe-explore-plan`],[/defect_rca|root_cause/,`forgeqe-defect-rca`],[/insights|forgeqe_bi|defect_intelligence/,`forgeqe-bi`],[/refine/,`forgeqe-refine`]];function U(e){let t=e.toLowerCase();if(!W(t))return fe.find(([e])=>e.test(t))?.[1]}var pe=[[/^(azure_devops|ado|azuredevops)_/,`Azure DevOps`],[/^(jira|atlassian)_/,`Jira`],[/^confluence_/,`Confluence`],[/^github_/,`GitHub`],[/^xray_/,`Xray`],[/^testrail_/,`TestRail`],[/^zephyr_/,`Zephyr Scale`],[/^qtest_/,`qTest`]],me=/(^|_)(create|update|add|delete|remove|post|comment|link|unlink|upload|set|assign|transition|edit|merge|close|reopen|queue|trigger|run|push|move|copy|import|write|publish|approve|vote|lock|unlock)(_|$)/;function W(e){let t=e.toLowerCase();if(!t.startsWith(`forgeqe_`))return pe.find(([e])=>e.test(t))?.[1]}var he=e=>{let t=V(e);return typeof t.diff==`string`&&t.diff?{diff:t.diff,added:Number(t.added)||0,removed:Number(t.removed)||0}:void 0},G=e=>Array.isArray(e)?e.map(H).filter(Boolean):[];function ge(e,t,n){let r=H(e.status)||(t?`failed`:``);return{status:r,ok:!t&&/^(passed|pass|written|ok|known_defect)$/i.test(r),...H(e.testFile)?{testFile:H(e.testFile)}:{},...H(e.testName)?{testName:H(e.testName)}:{},...H(e.command)?{command:H(e.command)}:{},...typeof e.attempts==`number`?{attempts:e.attempts}:{},...typeof e.maxAttempts==`number`?{maxAttempts:e.maxAttempts}:{},changed:G(e.changed),reused:G(e.reused),...n?{runDir:n}:{},...t?{error:t}:{},...H(e.notes)?{notes:H(e.notes)}:{}}}function _e(e){if(!Array.isArray(e))return[];let t=[];for(let n of e){let e=V(n),r=(typeof n==`string`?n:H(e.label)||H(e.request)).replace(/\s+/g,` `).trim(),i=(typeof n==`string`?n:H(e.request)||H(e.label)).trim();r&&i&&!t.some(e=>e.label.toLowerCase()===r.toLowerCase())&&t.push({label:r.length>60?`${r.slice(0,59)}…`:r,request:i})}return t.slice(0,4)}function K(e){let t=e.toLowerCase(),n=W(t);if(n)return me.test(t.replace(/^[a-z]+_/,``))?{label:`Updating ${n}`,orb:`working`}:{label:`Reading ${n}`,orb:`reading`};for(let[e,n,r]of ue)if(e.test(t))return{label:n,orb:r};let r=t.replace(/^forgeqe_/,``).replace(/[_-]+/g,` `).trim();return{label:r?r[0].toUpperCase()+r.slice(1):`Working`,orb:`working`}}function ve(e,t){return{id:e,user:t,steps:[],parts:[],next:[],asks:[],waits:[],log:[],plan:[],changes:[],tests:[],reports:[]}}function ye(e){let t=V(e);return[H(t.id),H(t.title)].filter(Boolean).join(`: `)}function be(e){let t={turns:[],notes:[]},n=new Map,r=e=>(typeof e==`string`?n.get(e):void 0)??t.turns.at(-1),i=(e,t)=>{let n=e=>{for(let r of e){if(r.key===t)return r;let e=r.children&&n(r.children);if(e)return e}};return n(e.steps)},a=(e,t,n)=>{let r={lines:[],...t};if(n)n.push(r);else{let t=e.plan.find(e=>e.status===`active`)??e.plan.find(e=>e.status===`pending`)??e.plan.at(-1);t&&(r.phase=t.text),e.steps.push(r)}return r},o=(e,t,n)=>{let r=t.parent?i(e,`c:${H(t.parent)}`):void 0;if(r)return r.children??=[];let o=H(t.agent);if(!n||!o||o===`forgeqe`)return;let s=[...e.steps].reverse().find(e=>e.status===`running`);return s||=a(e,{key:`ag:${o}:${e.steps.length}`,label:b(o).name,status:`running`,orb:`handing`,agent:o}),s.agent??=o,s.children??=[]},s=(e,n,r)=>{let s=H(n.kind),c=H(n.id);if((s===`start`||s===`tool`)&&de.test(H(n.tool))&&!W(H(n.tool)))return;let l=o(e,n,r),u=V(n.delegate),d=H(u.agent)?{agent:H(u.agent),task:H(u.task)}:void 0;if(s===`start`){if(d)a(e,{key:`c:${c}`,label:`Hands off to ${b(d.agent).name}`,arg:d.task||void 0,status:`running`,orb:`handing`,agent:d.agent,handoff:d,children:[]},l);else{let{label:t,orb:r}=K(H(n.tool)||H(n.text)),i=l?void 0:U(H(n.tool));a(e,{key:`c:${c}`,label:t,arg:H(n.text)&&H(n.text)!==H(n.tool)?H(n.text):void 0,status:`running`,orb:r,...i?{agent:i}:{}},l)}}else if(s===`tool`){let t=c?i(e,`c:${c}`):void 0,r=V(n.file),o=he(n.change);if(o&&H(r.path)){let t=e.changes.find(e=>e.path===H(r.path));t?Object.assign(t,{diff:`${t.diff}\n${o.diff}`,added:t.added+o.added,removed:t.removed+o.removed}):e.changes.push({path:H(r.path),...o,...H(n.agent)?{agent:H(n.agent)}:{}})}if(t)t.status=n.ok===!1?`fail`:`ok`,t.handoff&&H(u.result)&&(t.handoff.result=H(u.result));else if(d)a(e,{key:`c:${c||e.steps.length}`,label:`Hands off to ${b(d.agent).name}`,arg:d.task||void 0,status:n.ok===!1?`fail`:`ok`,orb:`handing`,agent:d.agent,handoff:{...d,...H(u.result)?{result:H(u.result)}:{}},children:[]},l);else{let{label:t,orb:i}=K(H(n.tool)||H(n.text)),s=l?void 0:U(H(n.tool));a(e,{key:`c:${c||e.steps.length}`,label:t,arg:H(r.path)||H(n.text)||void 0,status:n.ok===!1?`fail`:`ok`,orb:i,...s?{agent:s}:{},...o?{change:o}:{}},l)}t&&o&&(t.change=o)}else if(s===`stream`||s===`say`){if(r)return;let t=e.parts.find(e=>e.id===c);t?t.text=s===`say`?H(n.text):t.text+H(n.text):e.parts.push({id:c||`p${e.parts.length}`,text:H(n.text)})}else if(s===`plan`){if(l||n.agent&&n.agent!==`forgeqe`)return;let t=Array.isArray(n.items)?n.items.map(V):[],r=e=>e===`completed`?`done`:e===`in_progress`?`active`:e===`cancelled`?`skipped`:`pending`;e.plan=t.map(e=>({text:H(e.text),status:r(e.status)})).filter(e=>e.text)}else if(s===`test`){let t=Number(n.attempt)||0;if(t>0)a(e,{key:`t:${e.steps.length}`,label:`Test, attempt ${t}`,arg:H(n.text),status:n.ok?`ok`:`fail`,orb:`retrying`},l);else if(n.ok&&/\bconnected$/i.test(H(n.text)))return;else a(e,{key:`t:${e.steps.length}`,label:H(n.text)||(n.ok?`Checked`:`Check failed`),status:n.ok?`ok`:`fail`,orb:/connect|mcp/i.test(H(n.text))?`waiting`:`working`},l)}else if(s===`review`)a(e,{key:`r:${e.steps.length}`,label:n.approved?`Review approved`:`Review asked for changes`,status:n.approved?`ok`:`info`,orb:`thinking`,agent:`forgeqe-review`,lines:[{text:H(n.summary)}]});else if((s===`context`||s===`usage`)&&!r)s===`context`&&typeof n.tokens==`number`&&typeof n.limit==`number`&&(t.context={tokens:n.tokens,limit:n.limit,compactsAt:typeof n.compactsAt==`number`?n.compactsAt:void 0}),s===`usage`&&(t.usage=B(n.usage)??t.usage);else if(s===`info`){let t=(l??e.steps).at(-1);t&&t.lines.push({text:H(n.text)})}},c,l=(e,t)=>{let n=H(t.type);if(n===`run-start`)a(e,{key:`run:${e.steps.length}`,label:`Running in the browser`,arg:H(t.goal),status:`running`,orb:`browsing`,agent:`engine`});else if(n===`run-event`){let n=[...e.steps].reverse().find(e=>e.key.startsWith(`run:`)),r=V(t.event);if(!n)return;r.type===`outcome`?n.lines.push({text:`Step ${H(r.step)}: ${H(r.action)||H(r.text)}`,ok:r.ok===!0||r.ok!==!1&&void 0}):r.type===`log`&&(r.level!==`info`||r.progress)&&n.lines.push({text:H(r.text),ok:r.level!==`error`&&void 0})}else if(n===`run-done`){let n=[...e.steps].reverse().find(e=>e.key.startsWith(`run:`)&&e.status===`running`),r=V(t.result),i=!t.error&&(r.outcome===`passed`||!r.outcome&&r.status===`complete`);if(n){n.status=i?`ok`:`fail`;let e=H(t.error)||H(r.summary);e&&n.lines.push({text:e,ok:!!i})}H(t.runDir)&&e.reports.push({label:i?`Browser run report`:`Browser run report (failed)`,path:H(t.runDir)})}else if(n===`suite-start`){let n=Array.isArray(t.cases)?t.cases:[];a(e,{key:`suite:${e.steps.length}`,label:`Running ${n.length} test case${n.length===1?``:`s`}`,status:`running`,orb:`working`,agent:`engine`})}else if(n===`suite-event`){let n=[...e.steps].reverse().find(e=>e.key.startsWith(`suite:`)),r=V(t.event);if(n&&r.type===`case-done`){let e=V(r.result);n.lines.push({text:`${ye(e.case)}: ${H(e.status)}`,ok:e.status===`passed`})}}else if(n===`suite-done`){let n=[...e.steps].reverse().find(e=>e.key.startsWith(`suite:`)),r=Array.isArray(V(t.suite).results)?V(t.suite).results.map(V):[];if(n){let e=r.filter(e=>e.status!==`passed`).length;n.status=e?`fail`:`ok`,n.arg=`${r.length-e} of ${r.length} passed`}}else if(n===`card`){let n=V(t.card);a(e,{key:`card:${e.steps.length}`,label:H(n.title),arg:H(n.stats)||void 0,status:n.status===`ok`?`ok`:n.status===`fail`?`fail`:`info`,orb:`working`,lines:(Array.isArray(n.body)?n.body:[]).map(e=>({text:H(e)}))})}else if(n===`call-start`&&!t.quiet)a(e,{key:`call:${H(t.id)}`,label:H(t.text),status:`running`,orb:`working`});else if(n===`call`&&!t.quiet){let n=t.id?i(e,`call:${H(t.id)}`):void 0;n?n.status=t.ok===!1?`fail`:`ok`:a(e,{key:`call:${e.steps.length}`,label:H(t.text),status:t.ok===!1?`fail`:`ok`,orb:`working`})}else if(n===`code-start`)c=H(t.runDir)||void 0,a(e,{key:`code:${e.steps.length}`,label:`Writing the test`,arg:H(t.goal),status:`running`,orb:`writing`,agent:`forgeqe-test`});else if(n===`code-done`){let n=[...e.steps].reverse().find(e=>e.key.startsWith(`code:`)&&e.status===`running`);n&&(n.status=t.error?`fail`:`ok`,t.error&&n.lines.push({text:H(t.error),ok:!1})),e.tests.push(ge(V(t.result),H(t.error),c)),c=void 0}else if(n===`agent`)s(e,V(t.event),!0);else if(n===`info`){let n=e.steps.at(-1);n?n.lines.push({text:H(t.text),ok:t.ok===!0||t.ok!==!1&&void 0}):a(e,{key:`info:${e.steps.length}`,label:H(t.text),status:t.ok===!1?`fail`:`info`,orb:`working`})}else n===`report`&&(a(e,{key:`report:${e.steps.length}`,label:`Report saved`,arg:H(t.title),status:`ok`,orb:`working`}),H(t.html)&&e.reports.push({label:H(t.title)||`Report`,path:H(t.html)}))};for(let r of e){u(r);let e=I(r);e&&(typeof r.id==`string`&&n.get(r.id)||typeof r.turn==`string`&&n.get(r.turn)||t.turns.at(-1))?.log.push(e)}return t;function u(e){switch(e.type){case`user`:{let r=ve(H(e.id),H(e.text));t.turns.push(r),n.set(r.id,r);break}case`ready`:{let n=V(e.profile);n.name&&(t.model={name:H(n.name),provider:H(n.provider)}),t.writeTests=e.writeTests!==!1,t.headed=e.headed===!0;break}case`settings`:typeof e.writeTests==`boolean`&&(t.writeTests=e.writeTests),typeof e.headed==`boolean`&&(t.headed=e.headed);break;case`turn_start`:{let t=r(e.id);t&&(t.started=H(e.t)||H(e.at));break}case`agent`:{let t=r(e.id);t&&s(t,V(e.event),!1);break}case`tool`:{let t=r(e.id);t&&l(t,V(e.event));break}case`ask`:{let t=r(e.turn),n=V(e.question);t?.asks.push({id:H(e.id),title:H(n.title),detail:H(n.detail)||void 0,lines:Array.isArray(n.lines)?n.lines.map(H):[],options:(Array.isArray(n.options)?n.options:[]).map(e=>({id:H(V(e).id),label:H(V(e).label)}))});break}case`wait`:r(e.turn)?.waits.push({id:H(e.id),prompt:H(e.prompt)});break;case`answered`:for(let n of t.turns){let t=n.asks.find(t=>t.id===e.ask);t&&(t.answer=H(e.label));let r=n.waits.find(t=>t.id===e.ask);r&&(r.answer=e.ok===!0)}break;case`turn_done`:{let n=r(e.id);if(!n)break;n.outcome=e.outcome,n.reply=H(e.reply),n.next=_e(e.next),n.error=H(e.error)||void 0,n.ended=H(e.t)||H(e.at),t.usage=B(e.usage)??t.usage;let i=e=>{for(let t of e)t.status===`running`&&(t.status=n.outcome===`done`?`ok`:`info`),t.children&&i(t.children)};if(i(n.steps),n.outcome===`done`)for(let e of n.plan)e.status===`active`&&(e.status=`done`);break}case`error`:e.code!==`busy`&&t.notes.push(H(e.message));break;case`fatal`:t.fatal=H(e.message);break;case`exit`:t.ended={code:typeof e.code==`number`?e.code:null,stderr:Array.isArray(e.stderr)?e.stderr.map(H):void 0,message:H(e.message)||void 0}}}}function xe(e){let t=e.asks.find(e=>e.answer===void 0),n=e.waits.find(e=>e.answer===void 0);if(t||n)return{text:`Waiting for you…`,orb:`waiting`};let r=[...e.steps].reverse().find(e=>e.status===`running`);return r?{text:`${r.label}…`,orb:r.orb}:e.parts.some(e=>e.text.trim())&&e.steps.length?{text:`Writing a reply…`,orb:`writing`}:{text:`Thinking…`,orb:`thinking`}}function Se(e){if(!e.started||!e.ended)return`Done`;let t=Math.max(1,Math.round((Date.parse(e.ended)-Date.parse(e.started))/1e3)),n=e.outcome===`stopped`?`Stopped after`:`Worked for`;return t<60?`${n} ${t} second${t===1?``:`s`}`:`${n} ${Math.floor(t/60)} min ${t%60} s`}var Ce={running:`active`,ok:`done`,fail:`failed`,info:`note`};function we(e,t){let n=e=>e===`active`&&!t?`done`:e;if(!e.plan.length)return e.steps.map(e=>({key:e.key,label:e.label,status:n(Ce[e.status]),steps:[],step:e}));let r=new Set(e.plan.map(e=>e.text)),i=new Map,a=``;for(let t of e.steps)t.phase&&r.has(t.phase)&&(a=t.phase),i.set(a,[...i.get(a)||[],t]);let o=e=>e.some(e=>e.status===`running`),s=[],c=i.get(``)||[];c.length&&s.push({key:`plan:start`,label:`Getting started`,status:n(o(c)?`active`:`done`),steps:c});let l=e.plan.map((e,n)=>{let r=i.get(e.text)||[],a=e.status===`done`?`done`:e.status===`skipped`?`skipped`:e.status===`active`||o(r)?`active`:`pending`;return{key:`plan:${n}`,label:e.text,status:a===`active`&&!t?`pending`:a,steps:r}});return[...s,...Te(l)]}function Te(e){let t=e.findIndex(e=>e.status===`active`);return t<0?e:e.map((e,n)=>e.status===`skipped`||e.status===`failed`||n===t?e:{...e,status:n<t?`done`:`pending`})}var Ee={done:`bg-pass/30`,active:`bg-accent/25`,pending:`bg-line`,failed:`bg-fail/30`,skipped:`bg-line`,note:`bg-line`};function q({status:t,orb:n,px:r=20,spin:i=!1}){let a={width:r,height:r};return t===`active`&&i?(0,R.jsx)(`span`,{role:`img`,"aria-label":`At work`,className:`flex flex-none items-center justify-center`,style:a,children:(0,R.jsx)(e,{size:r-2,strokeWidth:2.5,"aria-hidden":`true`,className:`animate-spin text-accent-fg motion-reduce:animate-none`})}):t===`active`?(0,R.jsx)(l,{state:n,px:r,label:`At work`}):t===`done`?(0,R.jsx)(`span`,{role:`img`,"aria-label":`Done`,className:`flex flex-none items-center justify-center rounded-full bg-pass`,style:a,children:(0,R.jsx)(c,{size:r*.6,strokeWidth:3,"aria-hidden":`true`,className:`text-white`})}):t===`failed`?(0,R.jsx)(`span`,{role:`img`,"aria-label":`Failed`,className:`flex flex-none items-center justify-center rounded-full bg-fail`,style:a,children:(0,R.jsx)(o,{size:r*.6,strokeWidth:3,"aria-hidden":`true`,className:`text-white`})}):t===`note`?(0,R.jsx)(`span`,{role:`img`,"aria-label":`Note`,className:`flex flex-none items-center justify-center`,style:a,children:(0,R.jsx)(`span`,{className:`size-1.5 rounded-full bg-line-strong`})}):(0,R.jsx)(`span`,{role:`img`,"aria-label":t===`skipped`?`Skipped`:`To come`,className:u(`box-border block flex-none rounded-full border-2 border-line-strong`,t===`skipped`&&`border-dashed`),style:a})}var De=(e,t)=>e.status===`running`?t?`active`:`done`:e.status===`ok`?`done`:e.status===`fail`?`failed`:`note`,Oe=e=>/[/\\]|\.\w{1,5}$|^\$ /.test(e)&&!/\s{2,}/.test(e);function J({text:e}){return(0,R.jsx)(`span`,{className:u(`min-w-0 max-w-full truncate rounded-md bg-surface-strong px-1.5 py-0.5 text-[12.5px] text-ink-2`,Oe(e)&&`font-mono text-[12px]`),children:e})}function ke({step:e}){return(0,R.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-1 p-0 text-[13px] leading-relaxed`,children:e.lines.map((e,t)=>(0,R.jsxs)(`li`,{className:u(`flex gap-1.5 [overflow-wrap:anywhere]`,e.ok===!0?`text-pass`:e.ok===!1?`text-fail`:`text-ink-2`),children:[e.ok!==void 0&&(0,R.jsx)(`span`,{"aria-hidden":`true`,children:e.ok?`✓`:`✗`}),(0,R.jsx)(g,{text:e.text,className:`min-w-0 text-[13px] leading-relaxed text-inherit [&_p]:my-0`})]},t))})}function Y({agent:e,named:t=!0,working:n=!1}){let r=b(e);return(0,R.jsxs)(`span`,{className:`inline-flex flex-none items-center gap-1.5`,title:r.name,children:[(0,R.jsx)(y,{agent:e,px:18,decorative:t,working:n}),t&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`span`,{className:`font-medium`,style:{color:r.hue},children:r.name}),(0,R.jsx)(`span`,{"aria-hidden":`true`,className:`text-muted`,children:`·`})]})]})}function X({step:e,from:t,live:n}){let r=e.handoff.agent,i=b(r);return(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-0.5`,children:[(0,R.jsx)(y,{agent:t,px:18}),(0,R.jsxs)(`span`,{role:`img`,"aria-label":`hands off to`,className:u(`handoff-flow flex-none`,n&&`is-live`),style:{color:i.hue},children:[(0,R.jsx)(`span`,{}),(0,R.jsx)(`span`,{}),(0,R.jsx)(`span`,{})]}),(0,R.jsx)(y,{agent:r,px:20,decorative:!0,working:n,className:`handoff-in`}),(0,R.jsx)(`span`,{className:`font-medium`,style:{color:i.hue},children:i.name}),e.arg&&(0,R.jsx)(J,{text:e.arg})]})}function Ae({step:e,working:t,from:n=v}){let r=e.agent||n,i=je(e),a=De(e,t),[o,s]=(0,C.useState)(null),c=o??((!!e.handoff||!!e.agent)&&a===`active`),l=(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(q,{status:a,orb:e.orb,px:16,spin:!0}),e.handoff?(0,R.jsx)(X,{step:e,from:n,live:a===`active`}):(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-0.5`,children:[(0,R.jsx)(Y,{agent:r,named:r!==n,working:a===`active`}),(0,R.jsx)(`span`,{className:u(`[overflow-wrap:anywhere]`,a===`active`?`text-ink`:`text-ink-2`),children:e.label}),e.arg&&(0,R.jsx)(J,{text:e.arg}),e.change&&(0,R.jsxs)(`span`,{className:`font-mono text-[12px] tabular-nums`,children:[(0,R.jsxs)(`span`,{className:`text-pass`,children:[`+`,e.change.added]}),` `,(0,R.jsxs)(`span`,{className:`text-fail`,children:[`−`,e.change.removed]})]})]}),i&&(0,R.jsx)(d,{size:14,"aria-hidden":`true`,className:u(`mt-0.5 ml-auto flex-none text-muted transition-transform`,c&&`rotate-180`)})]});return(0,R.jsxs)(`li`,{className:`flex flex-col`,children:[i?(0,R.jsx)(`button`,{type:`button`,"aria-expanded":c,onClick:()=>s(!c),className:`flex min-h-8 w-full cursor-pointer items-start gap-2 rounded-lg border-0 bg-transparent px-1.5 py-1.5 text-left text-[13.5px] hover:bg-surface-muted`,children:l}):(0,R.jsx)(`div`,{className:`flex min-h-8 items-start gap-2 px-1.5 py-1.5 text-[13.5px]`,children:l}),c&&i&&(0,R.jsx)(Me,{step:e,working:t,from:n,className:`mb-1 ml-[13px]`})]})}var je=e=>e.lines.length>0||(e.children?.length??0)>0||!!e.handoff?.result||!!e.change;function Me({step:e,working:t,from:n,className:r}){let i=e.children||[],a=e.handoff?.agent||e.agent;return(0,R.jsxs)(`div`,{className:u(`chain-in flex flex-col gap-1.5 border-l-2 py-1 pl-3`,r),style:{borderColor:a?`${b(a).hue}66`:`var(--color-line)`},children:[e.lines.length>0&&(0,R.jsx)(ke,{step:e}),e.change&&(0,R.jsx)(z,{diff:e.change.diff}),i.length>0&&(0,R.jsx)(`ul`,{"aria-label":a?`What ${b(a).name} did`:`Steps`,className:`m-0 flex list-none flex-col p-0`,children:i.map(e=>(0,R.jsx)(Ae,{step:e,working:t,from:a||n},e.key))}),e.handoff?.result&&(0,R.jsxs)(`div`,{className:`flex flex-col gap-0.5 text-[13px]`,children:[(0,R.jsxs)(`span`,{className:`text-muted`,children:[b(e.handoff.agent).name,` answered`]}),(0,R.jsx)(g,{text:e.handoff.result.length>1200?`${e.handoff.result.slice(0,1199)}…`:e.handoff.result,className:`text-[13px] text-ink-2 [&_p]:my-0`})]})]})}function Ne({node:e,last:t,working:n,now:r,orbed:i}){let a=e.step?[]:e.steps,o=e.step,s=a.length>0||!!r||!!o&&je(o),[c,l]=(0,C.useState)(null),f=c??(e.status===`active`||e.status===`failed`),p=o?.orb??[...a].reverse().find(e=>e.status===`running`)?.orb??r?.orb??`thinking`;return(0,R.jsxs)(`li`,{className:`flex gap-3`,children:[(0,R.jsxs)(`div`,{className:`flex flex-none flex-col items-center`,children:[(0,R.jsx)(`span`,{className:`mt-[3px]`,children:(0,R.jsx)(q,{status:e.status,orb:p,spin:!i})}),!t&&(0,R.jsx)(`span`,{"aria-hidden":`true`,className:u(`mt-1.5 min-h-4 w-0.5 flex-1 rounded-sm`,Ee[e.status])})]}),(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col pb-2`,children:[s?(0,R.jsxs)(`button`,{type:`button`,"aria-expanded":f,onClick:()=>l(!f),className:`flex min-h-7 w-full cursor-pointer items-start gap-1.5 border-0 bg-transparent p-0 text-left`,children:[(0,R.jsx)(Pe,{node:e}),(0,R.jsx)(d,{size:14,"aria-hidden":`true`,className:u(`mt-1 flex-none text-muted transition-transform`,f&&`rotate-180`)}),e.status===`active`&&(0,R.jsx)(`span`,{className:`mt-0.5 ml-1 flex-none rounded-full border border-accent-line bg-accent-soft px-2 py-px text-[11.5px] font-medium text-accent-fg`,children:`In progress`})]}):(0,R.jsx)(`div`,{className:`min-h-7`,children:(0,R.jsx)(Pe,{node:e})}),f&&s&&(0,R.jsx)(`div`,{className:`chain-in mt-0.5`,children:o?(0,R.jsx)(Me,{step:o,working:n,from:`forgeqe`,className:`mt-1`}):(0,R.jsxs)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:[a.map(e=>(0,R.jsx)(Ae,{step:e,working:n},e.key)),r&&(0,R.jsx)(`li`,{children:(0,R.jsx)(Z,{live:r,className:`px-1.5`})})]})})]})]})}function Pe({node:e}){let t=e.status===`active`?`text-ink`:e.status===`pending`||e.status===`skipped`?`text-muted`:e.status===`failed`?`text-fail`:`text-ink-2`,n=e.step;return n?.handoff?(0,R.jsx)(X,{step:n,from:v,live:e.status===`active`}):(0,R.jsxs)(`span`,{className:u(`flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-0.5 text-sm font-medium`,t,e.status===`skipped`&&`line-through`),children:[n&&(0,R.jsx)(Y,{agent:n.agent||`forgeqe`,named:!!n.agent&&n.agent!==`forgeqe`,working:e.status===`active`}),e.status===`active`?(0,R.jsx)(`span`,{className:`shimmer [overflow-wrap:anywhere]`,children:(0,R.jsx)(`span`,{children:e.label})}):(0,R.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:e.label}),n?.arg&&(0,R.jsx)(J,{text:n.arg})]})}var Fe={info:`text-ink-2`,ok:`text-pass`,fail:`text-fail`,warn:`text-warn`,dim:`text-muted`,say:`text-ink-2`,you:`text-accent-fg`,think:`text-muted italic`};function Ie(e){let[t,n]=(0,C.useState)(()=>Date.now());(0,C.useEffect)(()=>{let e=setInterval(()=>n(Date.now()),1e3);return()=>clearInterval(e)},[]);let r=e?Date.parse(e):NaN;if(Number.isNaN(r))return``;let i=Math.max(0,Math.round((t-r)/1e3));return i<2?`just now`:i<60?`${i}s ago`:`${Math.floor(i/60)} min ago`}function Z({live:e,orb:t=!1,className:n}){let r=Ie(e.latest?.at);return(0,R.jsxs)(`div`,{className:u(`flex min-h-8 items-start gap-2 py-1`,n),children:[(0,R.jsx)(`span`,{className:`mt-0.5 flex size-4 flex-none items-center justify-center`,children:t?(0,R.jsx)(l,{state:e.orb,px:20,label:`At work`}):(0,R.jsxs)(`span`,{"aria-hidden":`true`,className:`relative flex size-2`,children:[(0,R.jsx)(`span`,{className:`absolute inline-flex size-full animate-ping rounded-full bg-accent opacity-60 motion-reduce:animate-none`}),(0,R.jsx)(`span`,{className:`relative inline-flex size-2 rounded-full bg-accent`})]})}),(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,R.jsx)(`span`,{className:`shimmer text-[13.5px] font-medium text-muted`,children:(0,R.jsx)(`span`,{"aria-live":`polite`,children:e.text})}),e.latest&&(0,R.jsxs)(`button`,{type:`button`,onClick:e.onLog,title:`Open the activity log`,className:`flex w-full min-w-0 cursor-pointer items-baseline gap-2 border-0 bg-transparent p-0 text-left hover:underline`,children:[(0,R.jsx)(`span`,{className:u(`min-w-0 truncate font-mono text-[12px]`,Fe[e.latest.tone]),children:e.latest.plain}),(0,R.jsxs)(`span`,{className:`flex-none text-[11.5px] whitespace-nowrap text-muted tabular-nums`,children:[r,r&&` · `,e.events,` `,e.events===1?`event`:`events`]})]})]})]})}function Le({turn:e,working:t,live:n,folded:r=!1}){if(r)return(0,R.jsx)(Z,{live:n,orb:!0});let i=we(e,t),a=e.plan.length>0&&t?i.find(e=>e.status===`active`)??null:null,o=t&&!a?[{key:`now`,label:n.text,status:`active`,steps:[]}]:[],s=[...i,...o],c=[...i].reverse().find(e=>e.status===`active`);return(0,R.jsx)(`ol`,{"aria-label":`What ForgeQE did`,className:`m-0 flex list-none flex-col p-0 pt-1`,children:s.map((e,r)=>e.key===`now`?(0,R.jsx)(`li`,{className:`flex gap-3`,children:(0,R.jsx)(Z,{live:n,orb:!c,className:`-mt-1 min-w-0 flex-1 py-0`})},`now`):(0,R.jsx)(Ne,{node:e,last:r===s.length-1,working:t,now:a===e?n:void 0,orbed:c===e},e.key))})}var Re={passed:`Passed`,failed:`Failed`,stopped:`Stopped`,blocked:`Blocked`};function Q({label:e,children:t}){return(0,R.jsxs)(`div`,{className:`grid grid-cols-[110px_minmax(0,1fr)] items-baseline gap-3 py-1.5 text-sm`,children:[(0,R.jsx)(`span`,{className:`text-muted`,children:e}),(0,R.jsx)(`div`,{className:`min-w-0 [overflow-wrap:anywhere]`,children:t})]})}function ze({text:e}){let[t,n]=(0,C.useState)(!1);return(0,R.jsxs)(`div`,{className:`flex items-start gap-2 rounded-[10px] bg-surface-muted px-3 py-2`,children:[(0,R.jsx)(ae,{size:14,"aria-hidden":`true`,className:`mt-0.5 flex-none text-muted`}),(0,R.jsx)(`code`,{className:`min-w-0 flex-1 font-mono text-[12.5px] break-all whitespace-pre-wrap text-ink`,children:e}),(0,R.jsx)(`button`,{type:`button`,"aria-label":t?`Copied`:`Copy the command`,onClick:async()=>{await ee(e)&&(n(!0),setTimeout(()=>n(!1),1500))},className:`inline-flex size-7 flex-none cursor-pointer items-center justify-center rounded-md border-0 bg-transparent text-muted hover:bg-surface-strong hover:text-ink`,children:t?(0,R.jsx)(c,{size:14,"aria-hidden":`true`,className:`text-pass`}):(0,R.jsx)(h,{size:14,"aria-hidden":`true`})})]})}function Be({t:e}){return(0,R.jsxs)(`div`,{className:`flex flex-col`,children:[(0,R.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 pb-1`,children:[(0,R.jsx)(n,{size:16,"aria-hidden":`true`,className:`text-accent-fg`}),(0,R.jsx)(`span`,{className:`font-medium`,children:`Test written`}),(0,R.jsx)(re,{tone:e.ok?`pass`:e.status===`stopped`?`neutral`:`fail`,children:Re[e.status]||e.status||`Not written`}),e.attempts!==void 0&&(0,R.jsx)(`span`,{className:`text-[13px] text-muted`,children:e.maxAttempts?`attempt ${e.attempts} of ${e.maxAttempts}`:p(e.attempts,`attempt`)})]}),e.testFile&&(0,R.jsx)(Q,{label:`Test file`,children:(0,R.jsx)(_,{path:e.testFile})}),e.testName&&(0,R.jsx)(Q,{label:`Test`,children:(0,R.jsx)(`code`,{className:`font-mono text-[12.5px]`,children:e.testName})}),e.command&&(0,R.jsx)(Q,{label:`Run it`,children:(0,R.jsx)(ze,{text:e.command})}),e.runDir&&(0,R.jsx)(Q,{label:`From the run`,children:(0,R.jsx)(_,{path:e.runDir})}),e.reused.length>0&&(0,R.jsx)(Q,{label:`Reused`,children:(0,R.jsx)(`span`,{className:`flex flex-wrap gap-x-2 gap-y-1`,children:e.reused.map(e=>(0,R.jsx)(_,{path:e},e))})}),e.error&&(0,R.jsx)(`p`,{className:`m-0 mt-1 rounded-[10px] bg-fail-soft px-3 py-2 text-sm text-fail [overflow-wrap:anywhere]`,children:e.error})]})}function Ve({c:e}){let[t,n]=(0,C.useState)(!1);return(0,R.jsxs)(`li`,{className:`flex flex-col`,children:[(0,R.jsxs)(`div`,{className:`flex min-h-9 items-center gap-2`,children:[(0,R.jsx)(`button`,{type:`button`,"aria-expanded":t,"aria-label":`${t?`Hide`:`Show`} the changes to ${e.path}`,onClick:()=>n(!t),className:`inline-flex size-7 flex-none cursor-pointer items-center justify-center rounded-md border-0 bg-transparent text-muted hover:bg-surface-strong hover:text-ink`,children:(0,R.jsx)(d,{size:15,"aria-hidden":`true`,className:u(`transition-transform`,!t&&`-rotate-90`)})}),(0,R.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:(0,R.jsx)(_,{path:e.path})}),(0,R.jsxs)(`span`,{className:`flex-none font-mono text-[12px] tabular-nums`,children:[(0,R.jsxs)(`span`,{className:`text-pass`,children:[`+`,e.added]}),` `,(0,R.jsxs)(`span`,{className:`text-fail`,children:[`−`,e.removed]})]})]}),t&&(0,R.jsx)(z,{diff:e.diff,className:`chain-in mb-2 ml-9`})]})}function He({turn:e}){let t=e.reports.filter((e,t,n)=>n.findIndex(t=>t.path===e.path)===t),n=new Set(e.changes.map(e=>e.path)),i=[...new Set(e.tests.flatMap(e=>e.changed))].filter(e=>!n.has(e)&&![...n].some(t=>t.endsWith(e)||e.endsWith(t)));return!e.tests.length&&!t.length&&!e.changes.length&&!i.length?null:(0,R.jsxs)(`section`,{"aria-label":`Result`,className:`flex flex-col gap-4 rounded-[14px] border border-line-soft px-4 py-3`,children:[e.tests.map((e,t)=>(0,R.jsx)(Be,{t:e},t)),t.length>0&&(0,R.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,R.jsx)(`span`,{className:`text-sm font-medium`,children:`Reports`}),(0,R.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-1 p-0 text-sm`,children:t.map(e=>(0,R.jsxs)(`li`,{className:`flex flex-wrap items-baseline gap-2`,children:[(0,R.jsx)(`span`,{className:`text-ink-2`,children:e.label}),(0,R.jsx)(_,{path:e.path})]},e.path))})]}),(e.changes.length>0||i.length>0)&&(0,R.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,R.jsxs)(`span`,{className:`flex items-center gap-1.5 text-sm font-medium`,children:[(0,R.jsx)(r,{size:15,"aria-hidden":`true`,className:`text-muted`}),`Files changed`,(0,R.jsxs)(`span`,{className:`font-normal text-muted`,children:[p(e.changes.length+i.length,`file`),` · `,(0,R.jsxs)(`span`,{className:`text-pass`,children:[`+`,e.changes.reduce((e,t)=>e+t.added,0)]}),` `,(0,R.jsxs)(`span`,{className:`text-fail`,children:[`−`,e.changes.reduce((e,t)=>e+t.removed,0)]})]})]}),(0,R.jsxs)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:[e.changes.map(e=>(0,R.jsx)(Ve,{c:e},e.path)),i.map(e=>(0,R.jsx)(`li`,{className:`flex min-h-9 items-center gap-2 pl-9`,children:(0,R.jsx)(_,{path:e})},e))]})]})]})}function $({lines:e,start:t,live:n,name:r}){let i=(0,C.useRef)(null),a=(0,C.useRef)(!0),[o,s]=(0,C.useState)(!1),l=(0,C.useMemo)(()=>le(e,t),[e,t]);(0,C.useEffect)(()=>{a.current&&i.current&&(i.current.scrollTop=i.current.scrollHeight)},[l]);let u=`inline-flex min-h-8 cursor-pointer items-center gap-1.5 rounded-lg border-0 bg-transparent px-2 text-[12px] font-medium text-muted hover:bg-surface-strong hover:text-ink`;return(0,R.jsxs)(`div`,{className:`overflow-hidden rounded-[12px] border border-line-soft bg-surface-muted`,children:[(0,R.jsxs)(`div`,{className:`flex min-h-9 items-center gap-1 border-b border-line-soft pr-1 pl-3 text-[12px] text-muted`,children:[(0,R.jsxs)(`span`,{className:`flex-1`,children:[`Markdown · `,e.length,` event`,e.length===1?``:`s`,n&&` · live`]}),(0,R.jsxs)(`button`,{type:`button`,"aria-label":o?`Copied`:`Copy the activity log as Markdown`,onClick:async()=>{try{await navigator.clipboard.writeText(l),s(!0),setTimeout(()=>s(!1),1500)}catch{}},className:u,children:[o?(0,R.jsx)(c,{size:14,"aria-hidden":`true`,className:`text-pass`}):(0,R.jsx)(h,{size:14,"aria-hidden":`true`}),o?`Copied`:`Copy`]}),(0,R.jsxs)(`button`,{type:`button`,"aria-label":`Download the activity log as a Markdown file`,onClick:()=>{let e=URL.createObjectURL(new Blob([l],{type:`text/markdown;charset=utf-8`})),t=document.createElement(`a`);t.href=e,t.download=r,t.click(),setTimeout(()=>URL.revokeObjectURL(e),1e3)},className:u,children:[(0,R.jsx)(te,{size:14,"aria-hidden":`true`}),`.md`]})]}),(0,R.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:`max-h-[360px] overflow-y-auto px-4 py-2`,children:(0,R.jsx)(g,{text:l,className:`text-[13px] leading-[1.6] [&_code]:text-[12px] [&_h4]:mt-3 [&_h4]:mb-1 [&_li]:my-0.5 [&_pre]:text-[12px] [&_ul]:my-1`})})]})}function Ue({ask:e,live:t,onAnswer:n}){let r=t&&e.answer===void 0;return(0,R.jsxs)(`div`,{className:u(`flex flex-col gap-3 rounded-[14px] border px-4 py-3`,r?`border-accent-line bg-accent-soft`:`border-line-soft`),children:[(0,R.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,R.jsx)(ie,{size:18,"aria-hidden":`true`,className:`mt-0.5 flex-none text-accent-fg`}),(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,R.jsx)(`span`,{className:`font-medium`,children:e.title}),e.detail&&(0,R.jsx)(`span`,{className:`text-sm text-ink-2`,children:e.detail}),e.lines.map((e,t)=>(0,R.jsx)(`span`,{className:`text-sm text-ink-2 [overflow-wrap:anywhere]`,children:e},t))]})]}),r?(0,R.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[e.options.map(e=>(0,R.jsx)(f,{size:`sm`,onClick:()=>n(e.id),children:e.label},e.id)),(0,R.jsx)(f,{size:`sm`,variant:`ghost`,onClick:()=>n(null),children:`Cancel`})]}):(0,R.jsx)(`span`,{className:`text-sm text-muted`,children:e.answer===void 0?`Not answered`:`You chose: ${e.answer}`})]})}function We({wait:e,live:t,onProceed:n}){let r=t&&e.answer===void 0;return(0,R.jsxs)(`div`,{className:u(`flex flex-col gap-3 rounded-[14px] border px-4 py-3`,r?`border-accent-line bg-accent-soft`:`border-line-soft`),children:[(0,R.jsxs)(`span`,{className:`flex items-start gap-2`,children:[(0,R.jsx)(ne,{size:18,"aria-hidden":`true`,className:`mt-0.5 flex-none text-accent-fg`}),(0,R.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:e.prompt})]}),r?(0,R.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,R.jsx)(f,{size:`sm`,variant:`primary`,onClick:()=>n(!0),children:`Done, continue`}),(0,R.jsx)(f,{size:`sm`,onClick:()=>n(!1),children:`Cancel`})]}):(0,R.jsx)(`span`,{className:`text-sm text-muted`,children:e.answer===void 0?`Not done`:e.answer?`You continued`:`You cancelled`})]})}function Ge({turn:e,live:t,onAnswer:n,onProceed:r}){let i=t&&!e.outcome,[o,s]=(0,C.useState)(null),c=o??i,l=xe(e),f=i?l.text:Se(e),p=e.parts.map(e=>j(e.text)).filter(Boolean),[m,h]=(0,C.useState)(!1),ee=[...e.log].reverse().find(e=>e.tone!==`you`&&e.tone!==`say`);return(0,R.jsxs)(`div`,{className:`flex gap-3`,children:[(0,R.jsx)(`div`,{className:`size-9 flex-none`,"aria-hidden":`true`,children:(0,R.jsx)(y,{agent:`forgeqe`,px:34,working:i,className:`mt-0.5`})}),(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-3 pt-1.5`,children:[(e.steps.length>0||i||e.log.length>0)&&(0,R.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,R.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1`,children:[(0,R.jsxs)(`button`,{type:`button`,"aria-expanded":c,disabled:!e.steps.length&&!e.plan.length,onClick:()=>s(!c),className:u(`flex cursor-pointer items-center gap-1.5 border-0 bg-transparent p-0 text-sm font-medium text-muted hover:text-ink disabled:cursor-default`,i&&`shimmer`),children:[(0,R.jsx)(`span`,{"aria-live":`polite`,children:f}),(e.steps.length>0||e.plan.length>0)&&(0,R.jsx)(d,{size:16,"aria-hidden":`true`,className:u(`transition-transform`,c&&`rotate-180`)})]}),e.log.length>0&&(0,R.jsxs)(`button`,{type:`button`,"aria-expanded":m,onClick:()=>h(!m),className:`ml-auto inline-flex min-h-8 cursor-pointer items-center gap-1.5 rounded-lg border-0 bg-transparent px-2 text-[13px] font-medium text-muted hover:bg-surface-muted hover:text-ink`,children:[(0,R.jsx)(a,{size:14,"aria-hidden":`true`}),`Activity log`,(0,R.jsx)(`span`,{className:`tabular-nums`,children:e.log.length})]})]}),(c||i)&&(e.steps.length>0||e.plan.length>0||i)&&(0,R.jsx)(Le,{turn:e,working:i,folded:!c,live:{...l,latest:ee,events:e.log.length,onLog:()=>h(!0)}}),m&&(0,R.jsx)($,{lines:e.log,start:e.started||e.log[0]?.at,live:i,name:`forgeqe-activity-${e.id}.md`})]}),e.asks.map(e=>(0,R.jsx)(Ue,{ask:e,live:i,onAnswer:t=>n(e.id,t)},e.id)),e.waits.map(e=>(0,R.jsx)(We,{wait:e,live:i,onProceed:t=>r(e.id,t)},e.id)),e.outcome&&e.reply?(0,R.jsx)(g,{text:e.reply}):p.length>0&&(0,R.jsx)(g,{text:p.join(`
7
+
8
+ `)}),(0,R.jsx)(He,{turn:e}),e.error&&(0,R.jsx)(`p`,{role:`alert`,className:`m-0 rounded-[12px] bg-fail-soft px-3 py-2 text-sm text-fail [overflow-wrap:anywhere]`,children:e.error}),e.outcome===`stopped`&&!e.reply&&(0,R.jsx)(`p`,{className:`m-0 text-sm text-muted`,children:`Stopped.`})]})]})}export{j as a,I as i,Ge as n,be as r,$ as t};
@@ -0,0 +1,2 @@
1
+ import{At as e,D as t,G as n,H as r,Hn as i,It as a,K as o,Nt as s,Ot as c,Pn as l,Tt as u,V as ee,Vt as d,an as f,at as p,en as m,hn as h,ht as g,lt as _,ot as v,pt as te,r as y,rn as b,rt as x,sn as S,st as C,t as w,tt as T,wt as E,xn as D,zn as O}from"./frame-Dq1wC8eF.js";import{t as ne}from"./circle-dashed-CEZcCi0T.js";import{n as k,t as A}from"./markdown-BmsRBxB-.js";import{t as j}from"./external-link-NCKfigiH.js";import{t as M}from"./file-chart-column-increasing-tV7y_ABu.js";import{a as re,i as ie,t as ae}from"./Response-pcvzCf4S.js";import{t as oe}from"./terminal-EkGTrfG9.js";import{F as se,N as ce,P as le,T as ue,_ as de,j as fe,s as N,w as P}from"./index-C_8DS1Wt.js";import{n as F,t as pe}from"./when-CHnpLdYw.js";var I={name:`book-check`,size:24,node:[[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`m9 9.5 2 2 4-4`,key:`1dth82`}]]};I.node;var me=h(I),L={name:`code-xml`,size:24,node:[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]],aliases:[`code-2`]};L.node;var R=h(L),z={name:`flag`,size:24,node:[[`path`,{d:`M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528`,key:`1jaruq`}]]};z.node;var he=h(z),B={name:`lightbulb`,size:24,node:[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]};B.node;var ge=h(B),V=i(O(),1),H=p(),U={execution:`Execution`,report:`Report`,coding:`Coding`,chat:`Chat`},_e={execution:d,report:M,coding:R,chat:c};function ve({kind:e}){let t=_e[e];return(0,H.jsx)(t,{size:14,"aria-hidden":`true`,className:`flex-none text-muted`})}var ye={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`}},W=e=>ye[e]||{label:e?e.charAt(0).toUpperCase()+e.slice(1).replace(/_/g,` `):`–`,tone:`neutral`},be={suite:`Suite`,monitor:`Monitor round`,run:`Browser run`,explore:`Exploration`,api:`API run`,desktop:`Desktop run`,mobile:`App run`},xe=e=>{if(!e)return``;let t=Math.round(e/1e3);return t<60?`${t}s`:`${Math.floor(t/60)}m ${t%60}s`};function G({title:e,icon:t,children:n,aside:r}){return(0,H.jsxs)(`section`,{className:`flex flex-col gap-3 rounded-[14px] border border-line-soft p-4`,children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,H.jsxs)(`h3`,{className:`m-0 flex flex-1 items-center gap-2 text-base font-semibold`,children:[(0,H.jsx)(`span`,{className:`text-accent-fg`,children:t}),e]}),r]}),n]})}function Se({path:e,label:t=`Open report`}){let[r,i]=(0,V.useState)(``);return(0,H.jsxs)(`span`,{className:`inline-flex flex-wrap items-center gap-2`,children:[(0,H.jsxs)(x,{onClick:async()=>i(await n(e)),children:[(0,H.jsx)(j,{size:16,"aria-hidden":`true`}),t]}),r&&(0,H.jsx)(`span`,{className:`text-[13px] text-fail`,children:r})]})}function Ce({items:e,first:t,render:n}){let[r,i]=(0,V.useState)(!1);return(0,H.jsxs)(H.Fragment,{children:[(r?e:e.slice(0,t)).map(n),e.length>t&&(0,H.jsx)(`button`,{type:`button`,"aria-expanded":r,onClick:()=>i(!r),className:`min-h-8 cursor-pointer self-start border-0 bg-transparent px-0 text-[13px] font-medium text-accent-fg hover:underline`,children:r?`Show fewer`:`Show all ${e.length}`})]})}function we({c:e}){if(!e.total)return null;let t=t=>`${t/e.total*100}%`;return(0,H.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,H.jsx)(`div`,{className:`bg-pass`,style:{width:t(e.passed)}}),(0,H.jsx)(`div`,{className:`bg-fail`,style:{width:t(e.failed)}}),(0,H.jsx)(`div`,{className:`bg-warn`,style:{width:t(e.other)}})]})}function Te({e}){let n=e.counts.total?Math.round(e.counts.passed/e.counts.total*100):0;return(0,H.jsxs)(`div`,{className:`flex flex-col gap-3 border-t border-line-soft pt-3 first:border-t-0 first:pt-0`,children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap items-start gap-x-3 gap-y-2`,children:[(0,H.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_240px] flex-col gap-0.5`,children:[(0,H.jsx)(`span`,{className:`font-medium [overflow-wrap:anywhere]`,children:e.title}),(0,H.jsx)(`span`,{className:`text-[13px] text-muted`,children:[be[e.scope]||e.scope,xe(e.ms),e.tokens?`${t(e.tokens)} tokens`:``,e.stopped?`stopped early`:``].filter(Boolean).join(` · `)})]}),e.report&&(0,H.jsx)(Se,{path:e.report})]}),(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-sm`,children:[(0,H.jsxs)(`span`,{className:`text-[22px] font-semibold tabular-nums`,children:[n,`%`]}),(0,H.jsx)(`span`,{className:`text-muted`,children:`passed`}),(0,H.jsxs)(N,{tone:`pass`,children:[e.counts.passed,` passed`]}),e.counts.failed>0&&(0,H.jsxs)(N,{tone:`fail`,children:[e.counts.failed,` failed`]}),e.counts.other>0&&(0,H.jsxs)(N,{tone:`warn`,children:[e.counts.other,` other`]}),(0,H.jsxs)(`span`,{className:`text-muted`,children:[`of `,e.counts.total]})]}),(0,H.jsx)(we,{c:e.counts}),e.cases.length>0&&(0,H.jsx)(`ul`,{"aria-label":`Cases of ${e.title}`,className:`m-0 flex list-none flex-col p-0`,children:(0,H.jsx)(Ce,{items:[...e.cases].sort((e,t)=>Number(W(t.status).tone===`fail`)-Number(W(e.status).tone===`fail`)),first:6,render:(e,t)=>(0,H.jsxs)(`li`,{className:`flex min-w-0 items-start gap-3 border-t border-line-soft py-2 text-sm`,children:[(0,H.jsx)(`span`,{className:`w-[76px] flex-none`,children:(0,H.jsx)(N,{tone:W(e.status).tone,children:W(e.status).label})}),(0,H.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,H.jsxs)(`span`,{className:`[overflow-wrap:anywhere]`,children:[e.id&&(0,H.jsx)(`span`,{className:`mr-1.5 font-mono text-[12px] text-muted`,children:e.id}),e.title,e.device&&(0,H.jsxs)(`span`,{className:`text-muted`,children:[` · `,e.device]})]}),e.summary&&(0,H.jsx)(`span`,{className:`line-clamp-2 text-[13px] text-muted`,children:e.summary})]}),(0,H.jsx)(`span`,{className:`flex-none text-[13px] text-muted tabular-nums`,children:xe(e.ms)})]},`${e.id}-${t}`)})}),e.folder&&!e.report&&(0,H.jsxs)(`span`,{className:`text-sm`,children:[`Kept in `,(0,H.jsx)(A,{path:e.folder})]})]})}function Ee({list:e}){let t=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,H.jsx)(G,{title:`Execution summary`,icon:(0,H.jsx)(d,{size:18,"aria-hidden":`true`}),aside:e.length>1?(0,H.jsxs)(`span`,{className:`text-sm text-muted`,children:[C(e.length,`run`),` · `,t.passed,` of `,t.total,` passed`]}):void 0,children:e.length?e.map((e,t)=>(0,H.jsx)(Te,{e},`${e.folder||e.title}-${t}`)):(0,H.jsx)(`p`,{className:`m-0 text-sm text-muted`,children:`No results found for this run yet: they appear once its report is written.`})})}function De({list:e}){return(0,H.jsxs)(G,{title:`Report summary`,icon:(0,H.jsx)(M,{size:18,"aria-hidden":`true`}),children:[e.length===0&&(0,H.jsx)(`p`,{className:`m-0 text-sm text-muted`,children:`No report was written in this run.`}),e.map((e,t)=>(0,H.jsxs)(`div`,{className:`flex flex-col gap-3 border-t border-line-soft pt-3 first:border-t-0 first:pt-0`,children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap items-start gap-x-3 gap-y-2`,children:[(0,H.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_240px] flex-col gap-0.5`,children:[(0,H.jsx)(`span`,{className:`font-medium [overflow-wrap:anywhere]`,children:e.title}),(0,H.jsx)(`span`,{className:`text-[13px] 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,H.jsx)(Se,{path:e.path})]}),e.stats&&(0,H.jsx)(`dl`,{className:`m-0 grid grid-cols-[repeat(auto-fit,minmax(110px,1fr))] gap-2`,children:e.stats.map(e=>(0,H.jsxs)(`div`,{className:`rounded-[10px] bg-surface-muted px-3 py-2`,children:[(0,H.jsx)(`dt`,{className:`text-[12px] text-muted`,children:e.label}),(0,H.jsx)(`dd`,{className:`m-0 text-[18px] font-semibold tabular-nums`,children:e.value})]},e.label))}),e.markdown&&(0,H.jsx)(Oe,{text:e.markdown})]},`${e.path||e.title}-${t}`))]})}function Oe({text:e,height:t=220}){let[n,r]=(0,V.useState)(!1),[i,a]=(0,V.useState)(!0),o=(0,V.useRef)(null);return(0,V.useLayoutEffect)(()=>{o.current&&!n&&a(o.current.scrollHeight>t+8)},[e,t,n]),(0,H.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,H.jsxs)(`div`,{ref:o,style:n?void 0:{maxHeight:t},className:n?``:`relative overflow-hidden`,children:[(0,H.jsx)(k,{text:e,className:`text-sm`}),!n&&i&&(0,H.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,H.jsx)(`button`,{type:`button`,"aria-expanded":n,onClick:()=>r(!n),className:`min-h-8 cursor-pointer self-start border-0 bg-transparent px-0 text-[13px] font-medium text-accent-fg hover:underline`,children:n?`Show less`:`Show all of it`})]})}function ke(e){let t=e.join(`
2
+ `),n=Math.max(2,...(t.match(/`+/g)||[]).map(e=>e.length)),r="`".repeat(n+1);return`${r}diff\n${t}\n${r}`}function Ae({e}){let[t,n]=(0,V.useState)(!1),r=e.action===`write`?`New`:`Edited`;return(0,H.jsxs)(`li`,{className:`border-t border-line-soft`,children:[(0,H.jsxs)(`div`,{className:`flex min-h-[44px] min-w-0 items-center gap-2 py-1.5 text-sm`,children:[(0,H.jsx)(`button`,{type:`button`,"aria-expanded":t,"aria-label":`${t?`Hide`:`Show`} the diff of ${e.path}`,disabled:!e.diffs.length,onClick:()=>n(!t),className:`inline-flex size-8 flex-none cursor-pointer items-center justify-center rounded-lg border-0 bg-transparent text-muted hover:bg-surface-strong disabled:cursor-default disabled:opacity-40`,children:t?(0,H.jsx)(b,{size:16,"aria-hidden":`true`}):(0,H.jsx)(ce,{size:16,"aria-hidden":`true`})}),(0,H.jsx)(`span`,{className:`w-[52px] flex-none text-[12px] text-muted`,children:r}),(0,H.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:(0,H.jsx)(A,{path:e.path})}),(0,H.jsxs)(`span`,{className:`flex-none font-mono text-[12px] tabular-nums`,children:[(0,H.jsxs)(`span`,{className:`text-pass`,children:[`+`,e.added]}),` `,(0,H.jsxs)(`span`,{className:`text-fail`,children:[`−`,e.removed]})]})]}),t&&(0,H.jsx)(`div`,{className:`pb-3 pl-10 [&_pre]:max-h-[420px] [&_pre]:overflow-auto`,children:e.diffs.length?(0,H.jsx)(k,{text:ke(e.diffs)}):null})]})}function je({c:e}){let t=e.edits.reduce((e,t)=>e+t.added,0),n=e.edits.reduce((e,t)=>e+t.removed,0),r=e.tests.at(-1),i=e.reviews.at(-1);return(0,H.jsxs)(G,{title:`Code changes`,icon:(0,H.jsx)(R,{size:18,"aria-hidden":`true`}),aside:(0,H.jsxs)(`span`,{className:`font-mono text-[13px] tabular-nums`,children:[e.edits.length,` file`,e.edits.length===1?``:`s`,` · `,(0,H.jsxs)(`span`,{className:`text-pass`,children:[`+`,t]}),` `,(0,H.jsxs)(`span`,{className:`text-fail`,children:[`−`,n]})]}),children:[e.results.map((e,t)=>(0,H.jsxs)(`div`,{className:`flex flex-col gap-2 rounded-[12px] bg-surface-muted px-4 py-3 text-sm`,children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,H.jsx)(N,{tone:e.status===`passed`||e.status===`done`?`pass`:e.status===`error`||e.status===`failed`?`fail`:`warn`,children:W(e.status).label}),e.testFile&&(0,H.jsx)(A,{path:e.testFile}),e.maxAttempts>0&&(0,H.jsxs)(`span`,{className:`text-muted`,children:[`attempt `,e.attempts,` of `,e.maxAttempts]}),e.review&&(0,H.jsx)(N,{tone:e.review.approved?`pass`:`warn`,children:e.review.approved?`Review approved`:`Review not approved`})]}),e.error&&(0,H.jsx)(`p`,{className:`m-0 text-fail`,children:e.error}),e.notes&&(0,H.jsx)(k,{text:e.notes,className:`text-sm [&_p]:my-1`}),e.command&&(0,H.jsx)(k,{text:`Run it with \`${e.command.replace(/`/g,``)}\``,className:`text-sm [&_p]:my-0`})]},t)),(r||i)&&(0,H.jsxs)(`div`,{className:`flex flex-wrap gap-2 text-sm`,children:[r&&(0,H.jsxs)(N,{tone:r.ok?`pass`:`fail`,children:[`Last test run `,r.ok?`passed`:`failed`,e.tests.length>1?` (${e.tests.length} runs)`:``]}),i&&(0,H.jsxs)(N,{tone:i.approved?`pass`:`warn`,children:[`Review `,i.approved?`approved`:`asked for ${i.issues} fix${i.issues===1?``:`es`}`]})]}),e.edits.length?(0,H.jsx)(`ul`,{"aria-label":`Files changed`,className:`m-0 flex list-none flex-col p-0`,children:(0,H.jsx)(Ce,{items:e.edits,first:8,render:e=>(0,H.jsx)(Ae,{e},e.path)})}):(0,H.jsx)(`p`,{className:`m-0 text-sm text-muted`,children:`No files changed.`}),e.edits.some(e=>!e.diffs.length)&&(0,H.jsx)(`p`,{className:`m-0 text-[13px] 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 Me({final:e,answer:t}){let n=e.from===`agent`?t?.facts??[]:[],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,H.jsxs)(G,{title:`Final message`,icon:(0,H.jsx)(he,{size:18,"aria-hidden":`true`}),aside:(0,H.jsx)(`span`,{className:`text-[13px] 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:[n.length>0&&(0,H.jsx)(`dl`,{className:`m-0 grid grid-cols-[repeat(auto-fit,minmax(180px,1fr))] gap-2`,children:n.map((e,t)=>(0,H.jsxs)(`div`,{className:`min-w-0 rounded-[10px] bg-surface-muted px-3 py-2`,children:[(0,H.jsx)(`dt`,{className:`text-[12px] text-muted`,children:e.label}),(0,H.jsx)(`dd`,{className:`m-0 text-sm [overflow-wrap:anywhere]`,children:(0,H.jsx)(k,{text:e.value,className:`[&_p]:my-0`})})]},`${e.label}-${t}`))}),(0,H.jsx)(Oe,{text:i?`${o}text\n${e.text}\n${o}`:re(e.text),height:360}),r.length>0&&(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-sm`,children:[(0,H.jsx)(`span`,{className:`text-muted`,children:`Files it names:`}),r.map(e=>(0,H.jsx)(A,{path:e},e))]})]})}var Ne={rule:{icon:me,label:`Rulebook`},decision:{icon:a,label:`Test decisions`},memory:{icon:S,label:`Page memory`},replay:{icon:E,label:`Replays`},model:{icon:g,label:`Model`},skill:{icon:s,label:`Skills`}};function Pe({list:e}){let t=Object.keys(Ne).filter(t=>e.some(e=>e.kind===t));return(0,H.jsx)(G,{title:`Learnings`,icon:(0,H.jsx)(ge,{size:18,"aria-hidden":`true`}),aside:e.length?(0,H.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[e.length,` from this session`]}):void 0,children:e.length===0?(0,H.jsx)(`p`,{className:`m-0 text-sm text-muted`,children:`Nothing learned or decided in this session: no rules, test decisions, page memory or model switches in its log.`}):(0,H.jsx)(`div`,{className:`grid grid-cols-[repeat(auto-fit,minmax(280px,1fr))] gap-x-6 gap-y-3`,children:t.map(t=>{let{icon:n,label:r}=Ne[t];return(0,H.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,H.jsxs)(`h4`,{className:`m-0 flex items-center gap-1.5 text-[13px] font-medium text-muted`,children:[(0,H.jsx)(n,{size:14,"aria-hidden":`true`}),r]}),(0,H.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:e.filter(e=>e.kind===t).map((e,t)=>(0,H.jsxs)(`li`,{className:`flex flex-col gap-0.5 border-t border-line-soft py-1.5 text-sm first:border-t-0`,children:[(0,H.jsx)(`span`,{className:`[overflow-wrap:anywhere]`,children:e.text}),e.note&&(0,H.jsx)(`span`,{className:`text-[13px] text-muted [overflow-wrap:anywhere]`,children:e.note})]},t))})]},t)})})})}function Fe({run:e}){let t=[];return(e.executions.length||e.kind===`execution`)&&t.push({kind:`execution`,node:(0,H.jsx)(Ee,{list:e.executions},`e`)}),(e.reports.length||e.kind===`report`)&&t.push({kind:`report`,node:(0,H.jsx)(De,{list:e.reports},`r`)}),e.coding&&(e.coding.edits.length||e.coding.results.length||e.kind===`coding`)&&t.push({kind:`coding`,node:(0,H.jsx)(je,{c:e.coding},`c`)}),t.sort((t,n)=>Number(n.kind===e.kind)-Number(t.kind===e.kind)),(0,H.jsx)(H.Fragment,{children:t.map(e=>e.node)})}var Ie={running:{label:`Running`,tone:`running`},done:{label:`Done`,tone:`pass`},failed:{label:`Failed`,tone:`fail`},stopped:{label:`Stopped`,tone:`neutral`}},Le={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`},Re=e=>Le[e]||e.charAt(0).toUpperCase()+e.slice(1),K=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`})},q=(e,t)=>Math.max(0,Math.round(((e.status===`running`?t:Date.parse(e.lastAt))-Date.parse(e.startedAt))/1e3)),J=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`:`–`,Y=e=>e.usage.input+e.usage.output;function ze(e){let[t,n]=(0,V.useState)(Date.now());return(0,V.useEffect)(()=>{if(!e)return;let t=setInterval(()=>n(Date.now()),1e3);return()=>clearInterval(t)},[e]),t}function Be({r:e}){return e.origin.kind===`web`?(0,H.jsxs)(`a`,{href:o(`chats`,e.origin.chat),className:`inline-flex items-center gap-1.5`,children:[(0,H.jsx)(c,{size:14,"aria-hidden":`true`}),`Web chat`]}):e.origin.kind===`job`?(0,H.jsxs)(`a`,{href:o(`jobs`,encodeURIComponent(e.origin.job)),className:`inline-flex items-center gap-1.5`,children:[(0,H.jsx)(f,{size:14,"aria-hidden":`true`}),`Job`]}):(0,H.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-muted`,children:[(0,H.jsx)(oe,{size:14,"aria-hidden":`true`}),`Terminal`]})}function Ve({status:t}){let n=Ie[t].label;return t===`running`?(0,H.jsx)(e,{size:16,"aria-label":n,className:`flex-none animate-spin text-accent-fg`}):t===`done`?(0,H.jsx)(fe,{size:16,"aria-label":n,className:`flex-none text-pass`}):t===`failed`?(0,H.jsx)(m,{size:16,"aria-label":n,className:`flex-none text-fail`}):(0,H.jsx)(ne,{size:16,"aria-label":n,className:`flex-none text-muted`})}var X=e=>e.status!==`running`&&!e.tools&&!e.turns&&!Y(e)&&!e.files.length&&!e.outputs.length&&q(e,0)<2;function Z({label:e,children:t}){return(0,H.jsxs)(`div`,{className:`grid grid-cols-[120px_minmax(0,1fr)] items-baseline gap-3 border-t border-line-soft py-2 text-sm first:border-t-0`,children:[(0,H.jsx)(`span`,{className:`text-[13px] text-muted`,children:e}),(0,H.jsx)(`span`,{className:`min-w-0 [overflow-wrap:anywhere]`,children:t})]})}function Q({title:e,children:t}){return(0,H.jsxs)(`section`,{className:`flex min-w-0 flex-col rounded-[14px] border border-line-soft px-4 py-3`,children:[(0,H.jsx)(`h3`,{className:`m-0 mb-1 text-[14px] font-semibold`,children:e}),t]})}var He={rerun:ue,write_test:de,investigate:P,fix_test:_};function Ue({actions:e}){let[t,n]=(0,V.useState)(``),[r,i]=(0,V.useState)(``);if(!e.length)return null;let a=async e=>{n(e.prompt),i(``);try{let{id:t}=await D.start(e.prompt,{});location.hash=o(`chats`,t)}catch(e){i(e.message),n(``)}};return(0,H.jsxs)(`section`,{"aria-label":`Next steps`,className:`flex flex-col gap-2`,children:[(0,H.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:e.map((e,n)=>{let r=He[e.kind];return(0,H.jsxs)(`button`,{type:`button`,disabled:!!t,onClick:()=>void a(e),className:v(`flex min-h-[52px] max-w-full cursor-pointer items-center gap-3 rounded-[14px] border px-3 py-2 text-left disabled:cursor-default disabled:opacity-60`,n===0?`border-accent bg-accent-soft hover:bg-accent-soft/70`:`border-line-soft bg-bg hover:bg-surface-muted`),children:[(0,H.jsx)(r,{size:18,"aria-hidden":`true`,className:`flex-none text-accent-fg`}),(0,H.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,H.jsx)(`span`,{className:`text-sm font-medium text-ink`,children:t===e.prompt?`Opening a chat…`:e.label}),(0,H.jsx)(`span`,{className:`max-w-[320px] truncate text-[12px] text-muted`,children:e.note})]})]},n)})}),(0,H.jsx)(`span`,{className:`text-[12px] text-muted`,children:`Each opens a chat with the request; it asks before it changes anything.`}),r&&(0,H.jsx)(`p`,{className:`m-0 text-sm text-fail`,children:r})]})}var We=e=>`\`${e.replace(/`/g,``)}\``;function Ge({name:e}){let[n,r]=(0,V.useState)(null),[i,a]=(0,V.useState)(``),[s,c]=(0,V.useState)(!1),[u,ee]=(0,V.useState)(`summary`),d=(0,V.useCallback)(()=>{l.detail(e).then(e=>{r(e),a(``)},e=>a(e.message))},[e]);(0,V.useEffect)(d,[d]);let f=n?.status===`running`;(0,V.useEffect)(()=>{if(!f)return;let e=setInterval(d,2e3);return()=>clearInterval(e)},[d,f]);let p=ze(f),m=(0,V.useMemo)(()=>(n?.events??[]).map(ie).filter(e=>!!e),[n?.events]),h=async()=>{c(!0),a(``);try{await l.cancel(e),d()}catch(e){a(e.message)}finally{c(!1)}},g=(0,H.jsxs)(`a`,{href:o(`runs`),className:`inline-flex items-center gap-1.5 text-sm`,children:[(0,H.jsx)(se,{size:16,"aria-hidden":`true`}),`All runs`]});if(!n)return(0,H.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[g,i?(0,H.jsx)(`p`,{role:`alert`,className:`m-0 rounded-[12px] bg-fail-soft px-3 py-2 text-sm text-fail`,children:i}):(0,H.jsx)(`p`,{role:`status`,className:`m-0 text-sm text-muted`,children:`Loading…`})]});let _=Ie[n.status],y=!n.replies.length,b=!!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,S=[{id:`summary`,label:`Summary`},{id:`conversation`,label:y?`Command`:`Conversation`,n:n.replies.length||void 0},{id:`activity`,label:`Activity`,n:m.length||void 0},{id:`details`,label:`Details`}],w=new Set([...n.reports.map(e=>e.path),...n.executions.flatMap(e=>[e.report,e.folder])].filter(Boolean)),T=n.outputs.filter(e=>!w.has(e.path)),E=n.context?.limit?Math.round(n.context.tokens/n.context.limit*100):null;return(0,H.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[g,(0,H.jsxs)(`div`,{className:`flex flex-wrap items-start gap-x-3 gap-y-3`,children:[(0,H.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_320px] flex-col gap-1.5`,children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1`,children:[(0,H.jsx)(`h2`,{className:`m-0 min-w-0 text-[22px] font-semibold tracking-[-0.01em] [overflow-wrap:anywhere]`,children:n.title}),(0,H.jsx)(N,{tone:_.tone,children:_.label})]}),(0,H.jsxs)(`span`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1 text-[13px] text-muted`,children:[(0,H.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,H.jsx)(ve,{kind:n.kind}),U[n.kind]]}),`· `,(0,H.jsx)(Be,{r:n}),`· `,K(n.startedAt),` · `,f?`running for `:`took `,J(q(n,p)),` · `,t(Y(n)),` tokens`,n.profile?.model?` · ${n.profile.model}`:``]})]}),n.cancel&&(0,H.jsxs)(x,{disabled:s,onClick:()=>void h(),className:`border-fail text-fail hover:bg-fail-soft`,children:[(0,H.jsx)(te,{size:14,fill:`currentColor`,"aria-hidden":`true`}),s?`Stopping…`:n.cancel===`chat`?`Stop this chat's work`:`Cancel this job's run`]})]}),i&&(0,H.jsx)(`p`,{role:`alert`,className:`m-0 rounded-[12px] bg-fail-soft px-3 py-2 text-sm text-fail [overflow-wrap:anywhere]`,children:i}),n.error&&(0,H.jsxs)(`p`,{className:`m-0 rounded-[12px] bg-fail-soft px-3 py-2 text-sm text-fail [overflow-wrap:anywhere]`,children:[(0,H.jsx)(`strong`,{children:`What went wrong:`}),` `,n.error]}),!f&&(0,H.jsx)(Ue,{actions:n.actions??[]}),(0,H.jsx)(`div`,{role:`tablist`,"aria-label":`This run`,className:`flex gap-1 overflow-x-auto border-b border-line-soft`,children:S.map(e=>(0,H.jsxs)(`button`,{type:`button`,role:`tab`,id:`run-tab-${e.id}`,"aria-selected":u===e.id,"aria-controls":`run-panel-${e.id}`,onClick:()=>ee(e.id),className:v(`-mb-px inline-flex min-h-10 cursor-pointer items-center gap-1.5 border-0 border-b-2 bg-transparent px-3 text-sm font-medium whitespace-nowrap`,u===e.id?`border-accent text-ink`:`border-transparent text-muted hover:text-ink`),children:[e.label,e.n!==void 0&&(0,H.jsx)(`span`,{className:`text-[12px] text-muted tabular-nums`,children:e.n})]},e.id))}),(0,H.jsxs)(`div`,{role:`tabpanel`,id:`run-panel-${u}`,"aria-labelledby":`run-tab-${u}`,className:`flex min-w-0 flex-col gap-4`,children:[u===`summary`&&(0,H.jsxs)(H.Fragment,{children:[n.final&&(0,H.jsx)(Me,{final:n.final,answer:n.answer}),(0,H.jsx)(Fe,{run:n}),T.length>0&&(0,H.jsx)(Q,{title:`What it produced (${T.length})`,children:T.map(e=>(0,H.jsx)(Z,{label:e.label,children:(0,H.jsx)(A,{path:e.path})},e.path))}),n.learnings.length>0&&(0,H.jsx)(Pe,{list:n.learnings}),!b&&(0,H.jsx)(`p`,{className:`m-0 rounded-[12px] bg-surface-muted px-4 py-3 text-sm text-ink-2`,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.`})]}),u===`conversation`&&(y?(0,H.jsx)(k,{text:We(n.prompt),className:`text-sm [&_p]:my-0`}):(0,H.jsx)(`ol`,{className:`m-0 flex list-none flex-col gap-4 p-0`,children:n.replies.map((e,t)=>(0,H.jsxs)(`li`,{className:`flex flex-col gap-2`,children:[(0,H.jsx)(`div`,{className:`self-end rounded-[14px] bg-surface-strong px-4 py-2.5 text-sm max-w-[85%]`,children:(0,H.jsx)(k,{text:e.ask,className:`[&_p]:my-0.5`})}),e.text&&(0,H.jsx)(k,{text:re(e.text),className:`text-sm`}),e.error&&(0,H.jsx)(`p`,{className:`m-0 rounded-[12px] bg-fail-soft px-3 py-2 text-sm text-fail [overflow-wrap:anywhere]`,children:e.error})]},t))})),u===`activity`&&(n.archived?(0,H.jsxs)(`p`,{className:`m-0 rounded-[12px] bg-surface-muted px-4 py-3 text-sm text-ink-2`,children:[`ForgeQE keeps the newest session logs only, and this run's is gone. Its summary, final message and learnings were kept in `,(0,H.jsx)(`code`,{className:`font-mono text-[13px]`,children:`.forgeqe/runs`}),`; its step-by-step activity was not.`]}):m.length?(0,H.jsx)(ae,{lines:m,start:n.startedAt,live:f,name:`forgeqe-run-${n.name.replace(/\.log$/,``)}.md`}):(0,H.jsx)(`p`,{className:`m-0 text-sm text-muted`,children:`Nothing logged yet.`})),u===`details`&&(0,H.jsxs)(`div`,{className:`grid items-start gap-3 @3xl:grid-cols-2`,children:[(0,H.jsxs)(Q,{title:`Numbers`,children:[(0,H.jsx)(Z,{label:f?`Running for`:`Took`,children:J(q(n,p))}),(0,H.jsxs)(Z,{label:`Tokens`,children:[t(Y(n)),` `,(0,H.jsxs)(`span`,{className:`text-muted`,children:[`(`,t(n.usage.input),` in · `,t(n.usage.output),` out`,n.usage.cached?` · ${t(n.usage.cached)} cached`:``,`)`]})]}),(0,H.jsxs)(Z,{label:`Context`,children:[n.context?t(n.context.tokens):`–`,E!==null&&(0,H.jsxs)(`span`,{className:`text-muted`,children:[` of `,t(n.context.limit),` (`,E,`%)`]})]}),(0,H.jsxs)(Z,{label:`Tool calls`,children:[n.tools,` `,(0,H.jsxs)(`span`,{className:`text-muted`,children:[`in `,C(n.turns,`turn`)]})]})]}),(0,H.jsxs)(Q,{title:`Session`,children:[(0,H.jsx)(Z,{label:`Started by`,children:(0,H.jsx)(Be,{r:n})}),(0,H.jsx)(Z,{label:`Command`,children:Re(n.command)}),(0,H.jsx)(Z,{label:`Model`,children:n.profile?[n.profile.name,n.profile.model].filter(Boolean).join(` · `):`–`}),(0,H.jsx)(Z,{label:`Agents`,children:n.agents.length?n.agents.map(e=>`${e.name} (${C(e.calls,`call`)})`).join(`, `):(0,H.jsx)(`span`,{className:`text-muted`,children:`None`})}),(0,H.jsxs)(Z,{label:`Log`,children:[n.archived?(0,H.jsx)(`span`,{className:`text-muted`,children:`No longer kept: ForgeQE keeps the newest logs only`}):(0,H.jsx)(A,{path:`.forgeqe/logs/${n.name}`}),n.truncated&&(0,H.jsx)(`span`,{className:`block text-[13px] text-muted`,children:`Very long: only its start is shown.`})]})]}),n.job&&(0,H.jsxs)(Q,{title:`Job`,children:[(0,H.jsx)(Z,{label:`Job`,children:(0,H.jsx)(`a`,{href:o(`jobs`,encodeURIComponent(n.origin.kind===`job`?n.origin.job:n.job.name)),children:n.job.name})}),(0,H.jsx)(Z,{label:`Runs`,children:(0,H.jsx)(k,{text:We(n.job.command),className:`text-sm [&_p]:my-0`})}),(0,H.jsxs)(Z,{label:`Schedule`,children:[n.job.schedule,!n.job.enabled&&` (disabled)`,n.job.nextAt&&n.job.enabled?` · next ${K(n.job.nextAt)}`:``]}),n.job.run&&(0,H.jsxs)(Z,{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,H.jsx)(Q,{title:`Files worked on (${n.files.length})`,children:n.files.length?n.files.map(e=>(0,H.jsx)(Z,{label:e.action===`write`?`Written`:e.action===`edit`?`Edited`:e.action===`delete`?`Deleted`:e.action||`Changed`,children:e.action===`delete`?(0,H.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.path}):(0,H.jsx)(A,{path:e.path})},e.path)):(0,H.jsx)(`p`,{className:`m-0 py-1 text-sm text-muted`,children:`No files changed.`})}),(0,H.jsx)(Q,{title:`Notifications`,children:n.notifications.length?n.notifications.map(e=>(0,H.jsx)(Z,{label:e.event.replace(/_/g,` `),children:e.channels.length?e.channels.join(`, `):(0,H.jsx)(`span`,{className:`text-muted`,children:`No channel takes it`})},e.event)):(0,H.jsx)(`p`,{className:`m-0 py-1 text-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).`})})]})]})]})}var $=25;function Ke({runs:e}){let n=ze(e.some(e=>e.status===`running`)),[i,a]=(0,V.useState)(``),[s,c]=(0,V.useState)(`all`),[l,u]=(0,V.useState)(``),[d,f]=(0,V.useState)(``),[p,m]=(0,V.useState)(!1),[h,g]=(0,V.useState)(0);(0,V.useEffect)(()=>g(0),[i,s,l,d,p]);let _=e.filter(X).length,te=i.toLowerCase().split(/\s+/).filter(Boolean),y=e.filter(e=>(p||!X(e))&&(!l||e.kind===l)&&(!d||e.origin.kind===d)&&te.every(t=>`${e.title} ${e.command} ${e.error||``}`.toLowerCase().includes(t))),b={all:y.length,running:y.filter(e=>e.status===`running`).length,failed:y.filter(e=>e.status===`failed`).length},S=s===`all`?y:y.filter(e=>e.status===s),w=Math.max(1,Math.ceil(S.length/$)),T=Math.min(h,w-1),E=S.slice(T*$,T*$+$),D=e.filter(e=>e.status!==`running`&&!X(e)),O=D.filter(e=>e.status===`failed`).length,ne=D.length?D.reduce((e,t)=>e+q(t,n),0)/D.length:NaN,k=e.reduce((e,t)=>e+Y(t),0),A=[...new Set(e.map(e=>e.kind))],j=[...new Set(e.map(e=>e.origin.kind))],M={web:`Web chat`,job:`Job`,terminal:`Terminal`};return e.length===0?(0,H.jsx)(`p`,{className:`m-0 rounded-[14px] bg-surface-muted px-5 py-4 text-sm leading-relaxed text-ink-2`,children:`No runs yet. A chat here, a job, or a ForgeQE command in this project adds one.`}):(0,H.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap gap-x-6 gap-y-1 text-[13px] text-muted`,children:[(0,H.jsxs)(`span`,{children:[(0,H.jsx)(`b`,{className:`text-ink tabular-nums`,children:e.length-_}),` runs`]}),e.some(e=>e.status===`running`)&&(0,H.jsxs)(`span`,{children:[(0,H.jsx)(`b`,{className:`text-accent-fg tabular-nums`,children:e.filter(e=>e.status===`running`).length}),` running now`]}),(0,H.jsxs)(`span`,{children:[(0,H.jsx)(`b`,{className:v(`tabular-nums`,O?`text-fail`:`text-ink`),children:O}),` failed`,D.length?` (${Math.round(O/D.length*100)}%)`:``]}),(0,H.jsxs)(`span`,{children:[(0,H.jsx)(`b`,{className:`text-ink tabular-nums`,children:t(k)}),` tokens`]}),(0,H.jsxs)(`span`,{children:[(0,H.jsx)(`b`,{className:`text-ink tabular-nums`,children:J(Math.round(ne))}),` on average`]})]}),(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,H.jsxs)(`div`,{className:`relative min-w-0 flex-[1_1_240px]`,children:[(0,H.jsx)(P,{size:16,"aria-hidden":`true`,className:`pointer-events-none absolute top-1/2 left-3 -translate-y-1/2 text-muted`}),(0,H.jsx)(`label`,{htmlFor:`run-search`,className:`sr-only`,children:`Find a run`}),(0,H.jsx)(ee,{id:`run-search`,type:`search`,value:i,onChange:e=>a(e.target.value),placeholder:`Find a run by what was asked`,className:`h-9 pl-9`})]}),[[`all`,`All`],[`running`,`Running`],[`failed`,`Failed`]].map(([e,t])=>(0,H.jsxs)(`button`,{type:`button`,"aria-pressed":s===e,onClick:()=>c(e),className:v(`inline-flex min-h-8 cursor-pointer items-center gap-1 rounded-[8px] border px-3 text-[13px] font-medium`,s===e?`border-accent bg-accent-soft text-ink`:`border-transparent bg-surface-strong text-ink-2 hover:bg-line hover:text-ink`),children:[t,(0,H.jsx)(`span`,{className:v(`tabular-nums`,e===`failed`&&b.failed?`text-fail`:``),children:b[e]})]},e)),A.length>1&&(0,H.jsxs)(r,{"aria-label":`What it did`,value:l,onChange:e=>u(e.target.value),className:`h-8 w-auto py-0 pr-7 pl-3 text-[13px]`,children:[(0,H.jsx)(`option`,{value:``,children:`Any kind`}),A.map(e=>(0,H.jsx)(`option`,{value:e,children:U[e]},e))]}),j.length>1&&(0,H.jsxs)(r,{"aria-label":`Started by`,value:d,onChange:e=>f(e.target.value),className:`h-8 w-auto py-0 pr-7 pl-3 text-[13px]`,children:[(0,H.jsx)(`option`,{value:``,children:`Started anywhere`}),j.map(e=>(0,H.jsx)(`option`,{value:e,children:M[e]||e},e))]})]}),(0,H.jsxs)(`div`,{className:`rounded-[14px] border border-line-soft bg-bg`,children:[(0,H.jsxs)(`div`,{"aria-hidden":`true`,className:`hidden grid-cols-[auto_minmax(0,1fr)_104px_104px_72px_64px_92px] items-center gap-x-4 border-b border-line-soft px-4 py-2 text-[12px] font-semibold text-muted @3xl:grid`,children:[(0,H.jsx)(`span`,{className:`w-4`}),(0,H.jsx)(`span`,{children:`Run`}),(0,H.jsx)(`span`,{children:`Kind`}),(0,H.jsx)(`span`,{children:`Started by`}),(0,H.jsx)(`span`,{className:`text-right`,children:`Took`}),(0,H.jsx)(`span`,{className:`text-right`,children:`Tokens`}),(0,H.jsx)(`span`,{className:`text-right`,children:`When`})]}),(0,H.jsxs)(`ul`,{"aria-label":`Runs`,className:`m-0 list-none p-1.5`,children:[E.length===0&&(0,H.jsx)(`li`,{className:`px-3 py-4 text-sm text-muted`,children:`Nothing matches.`}),E.map((e,r)=>{let i=F(e.startedAt);return(0,H.jsxs)(`li`,{className:`contents`,children:[(r===0||F(E[r-1].startedAt)!==i)&&(0,H.jsx)(`span`,{className:`block px-3 pt-3 pb-1 text-[12px] font-semibold text-muted`,children:i}),(0,H.jsxs)(`a`,{href:o(`runs`,encodeURIComponent(e.name)),className:`grid min-h-12 grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-x-3 rounded-[10px] px-3 py-1.5 text-ink no-underline hover:bg-surface-muted hover:text-ink @3xl:grid-cols-[auto_minmax(0,1fr)_104px_104px_72px_64px_92px] @3xl:gap-x-4`,children:[(0,H.jsx)(Ve,{status:e.status}),(0,H.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,H.jsx)(`span`,{className:`truncate text-[14px] font-medium`,title:e.title,children:e.title}),e.error?(0,H.jsx)(`span`,{className:`truncate text-[12px] text-fail`,children:e.error}):(0,H.jsx)(`span`,{className:`truncate text-[12px] text-muted @3xl:hidden`,children:[U[e.kind],M[e.origin.kind],J(q(e,n)),`${t(Y(e))} tokens`].join(` · `)})]}),(0,H.jsxs)(`span`,{className:`hidden min-w-0 items-center gap-1.5 text-[13px] text-ink-2 @3xl:inline-flex`,children:[(0,H.jsx)(ve,{kind:e.kind}),U[e.kind]]}),(0,H.jsx)(`span`,{className:`hidden text-[13px] text-ink-2 @3xl:block`,children:M[e.origin.kind]||e.origin.kind}),(0,H.jsx)(`span`,{className:`hidden text-right text-[13px] text-muted tabular-nums @3xl:block`,children:J(q(e,n))}),(0,H.jsx)(`span`,{className:`hidden text-right text-[13px] text-muted tabular-nums @3xl:block`,children:t(Y(e))}),(0,H.jsx)(`span`,{className:`text-right text-[12.5px] text-muted tabular-nums`,title:K(e.startedAt),children:pe(e.startedAt)})]})]},e.name)})]}),(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 border-t border-line-soft px-4 py-2.5 text-[13px] text-muted`,children:[(0,H.jsxs)(`span`,{className:`flex-1`,children:[S.length?`${T*$+1}–${Math.min(S.length,T*$+$)} of ${S.length}`:`0 runs`,_>0&&(0,H.jsxs)(H.Fragment,{children:[` · `,(0,H.jsx)(`button`,{type:`button`,onClick:()=>m(!p),className:`cursor-pointer border-0 bg-transparent p-0 text-[13px] text-accent-fg hover:underline`,children:p?`Hide the ${C(_,`empty session`)}`:`${C(_,`empty session`)} hidden`})]})]}),w>1&&(0,H.jsxs)(`nav`,{"aria-label":`Pages of runs`,className:`flex items-center gap-1`,children:[(0,H.jsx)(x,{size:`sm`,variant:`ghost`,disabled:T===0,onClick:()=>g(T-1),"aria-label":`Newer runs`,children:(0,H.jsx)(le,{size:16,"aria-hidden":`true`})}),(0,H.jsxs)(`span`,{className:`px-1 tabular-nums`,children:[`Page `,T+1,` of `,w]}),(0,H.jsx)(x,{size:`sm`,variant:`ghost`,disabled:T>=w-1,onClick:()=>g(T+1),"aria-label":`Older runs`,children:(0,H.jsx)(ce,{size:16,"aria-hidden":`true`})})]})]})]})]})}function qe({sub:e}){let[t,n]=(0,V.useState)(null),[r,i]=(0,V.useState)(``),a=(0,V.useCallback)(()=>{l.list().then(e=>{n(e.runs),i(``)},e=>i(e.message))},[]);(0,V.useEffect)(a,[a]);let o=t?.some(e=>e.status===`running`);(0,V.useEffect)(()=>{if(e)return;let t=setInterval(a,o?3e3:2e4);return()=>clearInterval(t)},[a,o,e]);let s=e?decodeURIComponent(e):``;return(0,H.jsxs)(`div`,{className:`flex min-h-screen flex-col`,children:[(0,H.jsx)(y,{}),(0,H.jsx)(`main`,{className:v(w,`@container flex-auto gap-4`),children:s?(0,H.jsx)(Ge,{name:s},s):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,H.jsx)(T,{icon:u,size:`lg`}),(0,H.jsx)(`h1`,{className:`m-0 text-[26px] font-semibold tracking-[-0.01em]`,children:`Runs`})]}),(0,H.jsx)(`p`,{className:`m-0 max-w-[70ch] text-sm leading-relaxed text-muted`,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,H.jsx)(`p`,{role:`alert`,className:`m-0 rounded-[12px] bg-fail-soft px-3 py-2 text-sm text-fail [overflow-wrap:anywhere]`,children:r}),!t&&!r&&(0,H.jsx)(`p`,{role:`status`,className:`m-0 text-sm text-muted`,children:`Loading…`}),t&&(0,H.jsx)(Ke,{runs:t})]})})]})}export{qe as Runs};
@@ -1 +1 @@
1
- import{sn as e}from"./frame-DqlMk9Ke.js";var t={name:`circle-dashed`,size:24,node:[[`path`,{d:`M10.1 2.182a10 10 0 0 1 3.8 0`,key:`5ilxe3`}],[`path`,{d:`M13.9 21.818a10 10 0 0 1-3.8 0`,key:`11zvb9`}],[`path`,{d:`M17.609 3.721a10 10 0 0 1 2.69 2.7`,key:`1iw5b2`}],[`path`,{d:`M2.182 13.9a10 10 0 0 1 0-3.8`,key:`c0bmvh`}],[`path`,{d:`M20.279 17.609a10 10 0 0 1-2.7 2.69`,key:`1ruxm7`}],[`path`,{d:`M21.818 10.1a10 10 0 0 1 0 3.8`,key:`qkgqxc`}],[`path`,{d:`M3.721 6.391a10 10 0 0 1 2.7-2.69`,key:`1mcia2`}],[`path`,{d:`M6.391 20.279a10 10 0 0 1-2.69-2.7`,key:`1fvljs`}]]};t.node;var n=e(t);export{n as t};
1
+ import{hn as e}from"./frame-Dq1wC8eF.js";var t={name:`circle-dashed`,size:24,node:[[`path`,{d:`M10.1 2.182a10 10 0 0 1 3.8 0`,key:`5ilxe3`}],[`path`,{d:`M13.9 21.818a10 10 0 0 1-3.8 0`,key:`11zvb9`}],[`path`,{d:`M17.609 3.721a10 10 0 0 1 2.69 2.7`,key:`1iw5b2`}],[`path`,{d:`M2.182 13.9a10 10 0 0 1 0-3.8`,key:`c0bmvh`}],[`path`,{d:`M20.279 17.609a10 10 0 0 1-2.7 2.69`,key:`1ruxm7`}],[`path`,{d:`M21.818 10.1a10 10 0 0 1 0 3.8`,key:`qkgqxc`}],[`path`,{d:`M3.721 6.391a10 10 0 0 1 2.7-2.69`,key:`1mcia2`}],[`path`,{d:`M6.391 20.279a10 10 0 0 1-2.69-2.7`,key:`1fvljs`}]]};t.node;var n=e(t);export{n as t};
@@ -1 +1 @@
1
- import{sn as e}from"./frame-DqlMk9Ke.js";var t={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};t.node;var n=e(t);export{n as t};
1
+ import{hn as e}from"./frame-Dq1wC8eF.js";var t={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};t.node;var n=e(t);export{n as t};
@@ -1 +1 @@
1
- import{sn as e}from"./frame-DqlMk9Ke.js";var t={name:`file-chart-column-increasing`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`path`,{d:`M12 18v-4`,key:`q1q25u`}],[`path`,{d:`M16 18v-6`,key:`15y0np`}]],aliases:[`file-bar-chart`]};t.node;var n=e(t);export{n as t};
1
+ import{hn as e}from"./frame-Dq1wC8eF.js";var t={name:`file-chart-column-increasing`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`path`,{d:`M12 18v-4`,key:`q1q25u`}],[`path`,{d:`M16 18v-6`,key:`15y0np`}]],aliases:[`file-bar-chart`]};t.node;var n=e(t);export{n as t};