@capagents/forgeqe 2.8.3 → 2.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/HOW_TO_USE.md +5 -0
  2. package/dist/docs-site/docs/index.html +4 -0
  3. package/dist/docs-site/docs/search.js +1 -1
  4. package/dist/forgeqe.js +1605 -1603
  5. package/dist/web/assets/Agent-D8H4GQqN.js +4 -0
  6. package/dist/web/assets/ApiTests-CWqanyU_.js +10 -0
  7. package/dist/web/assets/Chat-C0xpL7po.js +3 -0
  8. package/dist/web/assets/{CommandPalette-BhfezPoz.js → CommandPalette-KUx-yMp_.js} +1 -1
  9. package/dist/web/assets/{Cost-Cc_L26oj.js → Cost-CkRettF6.js} +1 -1
  10. package/dist/web/assets/Data-DNzLSp63.js +6 -0
  11. package/dist/web/assets/Evidence-DzzA0pJV.js +1 -0
  12. package/dist/web/assets/{Explore-sox3fD4D.js → Explore-DEpzpdkj.js} +2 -2
  13. package/dist/web/assets/Features-Bzje_5As.js +1 -0
  14. package/dist/web/assets/Flags-xUvz1QHr.js +2 -0
  15. package/dist/web/assets/Flaky-BFnVLi7W.js +1 -0
  16. package/dist/web/assets/{ForceGraph-2aiOo87M.js → ForceGraph-DVfDfy7Y.js} +1 -1
  17. package/dist/web/assets/Impact-BvRUudsB.js +3 -0
  18. package/dist/web/assets/Jobs-DLPS5xnJ.js +5 -0
  19. package/dist/web/assets/KindPage-BFX76RUt.js +6 -0
  20. package/dist/web/assets/Migration-64HvSMZo.js +2 -0
  21. package/dist/web/assets/Product-07coKIAf.js +7 -0
  22. package/dist/web/assets/Production-Bj_uz9hT.js +1 -0
  23. package/dist/web/assets/Quality-De99Esv0.js +1 -0
  24. package/dist/web/assets/{Readiness-C1N9Zp2l.js → Readiness-CwdvybGl.js} +1 -1
  25. package/dist/web/assets/Record-CxbGHIHP.js +2 -0
  26. package/dist/web/assets/Regression-CRE2UEhg.js +5 -0
  27. package/dist/web/assets/{Reports-CgOedv6o.js → Reports-NMLgQnIX.js} +2 -2
  28. package/dist/web/assets/Response-B_YF1EA8.js +4 -0
  29. package/dist/web/assets/{RunDiff-BbBgHbMC.js → RunDiff-DF8c2dBn.js} +1 -1
  30. package/dist/web/assets/Runs-CBuhWb7S.js +2 -0
  31. package/dist/web/assets/TestCases-CKTFzk6l.js +1 -0
  32. package/dist/web/assets/TestData-DoYuREXo.js +2 -0
  33. package/dist/web/assets/TestDebt-Ce7PUROD.js +1 -0
  34. package/dist/web/assets/Tosca-DBj7j-jL.js +2 -0
  35. package/dist/web/assets/{WhatsNew-BsvxN0Yt.js → WhatsNew-DwoYoM_4.js} +1 -1
  36. package/dist/web/assets/agentIconBodies-Cpn22UTR.js +1 -0
  37. package/dist/web/assets/{dataParts-ETs85ZuU.js → dataParts-CsXXLImJ.js} +3 -3
  38. package/dist/web/assets/{families-Ch_yMomw.js → families-D1xiKkTa.js} +1 -1
  39. package/dist/web/assets/frame-D6-mukAC.js +4 -0
  40. package/dist/web/assets/index-CQaKWOwX.js +45 -0
  41. package/dist/web/assets/index-D2XiTaRH.css +2 -0
  42. package/dist/web/assets/{logos-BfGnwAtP.js → logos-CAM1NTNS.js} +1 -1
  43. package/dist/web/assets/{parts-CpuOW4Wd.js → parts-C-cHoGBa.js} +1 -1
  44. package/dist/web/assets/{productParts-DdgyljLs.js → productParts-DxYwA64l.js} +1 -1
  45. package/dist/web/assets/{qualityParts-H50uxgIc.js → qualityParts-BDSq6Q05.js} +1 -1
  46. package/dist/web/assets/{segmented-DVt7_NPz.js → segmented-CqVJLxy-.js} +1 -1
  47. package/dist/web/assets/{thread-CvTcakQw.js → thread-Cqqn51v8.js} +1 -1
  48. package/dist/web/assets/{usePageChat-CiEt74za.js → usePageChat-BiWHDk1V.js} +1 -1
  49. package/dist/web/index.html +3 -3
  50. package/docs/CUSTOM_AGENTS_FIRST_RUN.md +10 -0
  51. package/package.json +1 -1
  52. package/dist/web/assets/Agent-soXhY9g_.js +0 -4
  53. package/dist/web/assets/ApiTests-BcC3NDc-.js +0 -10
  54. package/dist/web/assets/Chat-DDo__FJs.js +0 -3
  55. package/dist/web/assets/Data-guLRqAf5.js +0 -6
  56. package/dist/web/assets/Evidence-BXMNm-K9.js +0 -1
  57. package/dist/web/assets/Features-B6J6SNuK.js +0 -1
  58. package/dist/web/assets/Flags-DEwb0FYm.js +0 -2
  59. package/dist/web/assets/Flaky-BgxKLCzC.js +0 -1
  60. package/dist/web/assets/Impact-Bs0qSabB.js +0 -3
  61. package/dist/web/assets/Jobs-B6azw_sf.js +0 -5
  62. package/dist/web/assets/KindPage-C3dRZIbc.js +0 -6
  63. package/dist/web/assets/Migration-Cag9T0yR.js +0 -2
  64. package/dist/web/assets/Product-WaYVsMcG.js +0 -7
  65. package/dist/web/assets/Production-C9Lx2TVR.js +0 -1
  66. package/dist/web/assets/Quality-B98dlQzR.js +0 -1
  67. package/dist/web/assets/Record-ChP3_Hcg.js +0 -2
  68. package/dist/web/assets/Regression-UxRIR6bf.js +0 -5
  69. package/dist/web/assets/Response-DGb8gRCU.js +0 -4
  70. package/dist/web/assets/Runs-ukSjEJSA.js +0 -2
  71. package/dist/web/assets/TestCases-Q82IxEjr.js +0 -1
  72. package/dist/web/assets/TestData-BHCcKNhO.js +0 -2
  73. package/dist/web/assets/TestDebt-DK4tT8Yz.js +0 -1
  74. package/dist/web/assets/Tosca-BVHomdto.js +0 -2
  75. package/dist/web/assets/frame-I2oY7L19.js +0 -4
  76. package/dist/web/assets/index-BOLnH0rJ.js +0 -45
  77. package/dist/web/assets/index-D_Rdwtap.css +0 -2
@@ -1,3 +1,3 @@
1
- import{Na as e,_a as t,_t as n,at as r,dt as i,ga as a,ha as o,ho as s,it as c,jt as l,lt as u,ma as d,ot as f,po as p,tt as m,vo as h,zi as g}from"./frame-I2oY7L19.js";import"./index-BOLnH0rJ.js";var _=h(s(),1),v=p(),y={test:[`Testing the connection`,`Tested the connection`,`waiting`],tables:[`Reading the tables`,`Read the tables`,`searching`],query:[`Running the query`,`Ran the query`,`working`],gen:[`Making a preview`,`Made a preview`,`writing`],files:[`Writing the files`,`Wrote the files`,`writing`],insert:[`Inserting test data`,`Inserted test data`,`working`],batches:[`Listing the batches`,`Listed the batches`,`searching`],clean:[`Removing a batch`,`Removed a batch`,`working`],request:[`Asking the DB agent for test data`,`Asked the DB agent for test data`,`thinking`],fetch:[`Fetching the request again`,`Fetched the request again`,`searching`],ask:[`Asking the DB agent`,`Asked the DB agent`,`thinking`],checks:[`Running the checks`,`Ran the checks`,`working`],map:[`Reading the schema`,`Read the schema`,`searching`],check:[`Checking the flows`,`Checked the flows`,`working`],trace:[`Following the record`,`Followed the record`,`searching`]};function b(){let[t,n]=(0,_.useState)(null),[r,i]=(0,_.useState)(``),[a,o]=(0,_.useState)(!1),s=(0,_.useCallback)(()=>{e.view().then(e=>{n(e),i(``)},e=>i(e.message))},[]);(0,_.useEffect)(s,[s]);let c=!!t?.job?.running;return(0,_.useEffect)(()=>{if(!c)return;let e=setInterval(s,1e3);return()=>clearInterval(e)},[c,s]),{view:t,error:r,busy:a||c,running:c,act:async(t,n)=>{o(!0),i(``);try{await e.run(t,n),s()}catch(e){i(e.message)}finally{o(!1)}},stop:()=>void e.stop().then(s),load:s,job:t?.job??null}}var x=e=>e==null?`NULL`:typeof e==`object`?JSON.stringify(e):String(e);function S({file:e,onNote:t}){return(0,v.jsx)(`button`,{type:`button`,"data-tip":e,onClick:async()=>t(await l(e)),className:a(o({size:`sm`}),`font-mono text-[12px]`),children:e.split(/[\\/]/).pop()})}function C({children:e,label:t}){return(0,v.jsx)(`pre`,{"aria-label":t,className:`m-0 max-h-[320px] overflow-auto rounded-[12px] bg-surface-muted p-3 font-mono text-[12px] leading-relaxed whitespace-pre text-ink-2`,children:e})}function w({job:e,onStop:r}){let[i,a,o]=y[e.kind]??[`Working`,`Done`,`working`],s=(0,_.useRef)(null);(0,_.useEffect)(()=>{s.current&&(s.current.scrollTop=s.current.scrollHeight)},[e.lines.length]);let c=e.exitCode===0,l=!c&&(e.kind===`check`||e.kind===`trace`)&&e.result!==void 0&&!e.result.error;return(0,v.jsxs)(`section`,{"aria-label":e.running?i:a,className:`flex flex-col gap-2 rounded-[14px] card border p-4`,children:[(0,v.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,v.jsxs)(`span`,{className:`min-w-0 flex-1 font-medium [overflow-wrap:anywhere]`,children:[e.running?i:a,e.target?(0,v.jsxs)(`span`,{className:`font-normal text-muted`,children:[` · `,e.target]}):null]}),(0,v.jsx)(n,{tone:e.running?`running`:c?`pass`:e.exitCode===2||l?`warn`:`fail`,orb:o,children:e.running?`Working`:c?`Done`:l?`Some broken`:e.exitCode===2?`Not done`:`Failed`}),e.running&&(0,v.jsxs)(d,{variant:`danger`,onClick:r,children:[(0,v.jsx)(g,{fill:`currentColor`,"aria-hidden":`true`}),`Stop`]})]}),(0,v.jsxs)(`details`,{open:e.running||!c&&!e.result,children:[(0,v.jsxs)(`summary`,{className:`cursor-pointer text-sm text-muted`,children:[`Output (`,t(e.lines.length,`line`),`)`]}),(0,v.jsx)(`code`,{className:`mt-2 block font-mono text-[12px] text-muted [overflow-wrap:anywhere]`,children:e.command}),(0,v.jsx)(`pre`,{ref:s,className:`mt-2 max-h-[240px] overflow-auto rounded-[10px] bg-surface-muted p-3 font-mono text-[12px] leading-relaxed whitespace-pre-wrap text-ink-2`,children:e.lines.join(`
2
- `)||`Starting…`})]})]})}function T({text:e}){return(0,v.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})}function E({columns:e,rows:t}){let n=e.map((e,n)=>t.length>0&&t.every(e=>e[n]===null||e[n]===void 0||typeof e[n]==`number`)&&t.some(e=>typeof e[n]==`number`));return(0,v.jsx)(m,{label:`Rows`,resetKey:t,head:e.map((e,t)=>(0,v.jsx)(`th`,{className:n[t]?r:c,children:e},e)),children:t.map((e,t)=>(0,v.jsx)(`tr`,{className:f,children:e.map((e,t)=>(0,v.jsx)(`td`,{"data-tip":x(e),className:a(`px-3 py-1.5 font-mono text-[12px]`,n[t]?`text-right whitespace-nowrap tabular-nums`:`max-w-[320px] truncate`,e==null&&`text-muted`),children:x(e)},t))},t))})}function D({r:e}){return(0,v.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(e.order||[]).map(n=>{let r=e.preview?.[n],i=r?.sample||[],a=i.length?Object.keys(i[0]):[];return(0,v.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,v.jsxs)(`span`,{className:`text-sm`,children:[(0,v.jsx)(`span`,{className:`font-medium`,children:n}),` · `,t(e.rows?.[n]??0,`row`),r?.database_fills?.length?(0,v.jsxs)(`span`,{className:`text-muted`,children:[` · the database fills `,r.database_fills.join(`, `)]}):null,e.masked?.[n]?.length?(0,v.jsxs)(`span`,{className:`text-muted`,children:[` · masked `,e.masked[n].join(`, `)]}):null]}),a.length>0&&(0,v.jsx)(E,{columns:a,rows:i.slice(0,3).map(e=>a.map(t=>e[t]))})]},n)}),(e.warnings||[]).map((e,t)=>(0,v.jsx)(`p`,{className:`m-0 text-[13px] text-warn`,children:e},t))]})}var O={query:`Existing rows`,generate:`New rows`};function k({r:e,onNote:t}){let r=Object.entries(e.rows||{});return(0,v.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,v.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,v.jsx)(n,{tone:`pass`,children:O[e.kind||``]||`Answered`}),(0,v.jsxs)(`span`,{className:`min-w-0 text-sm text-ink-2 [overflow-wrap:anywhere]`,children:[e.database,e.why?` · ${e.why}`:``]})]}),r.map(([t,n])=>(0,v.jsx)(A,{title:t===`result`?`Rows found`:t,rows:n,total:e.row_counts?.[t]??n.length},t)),e.sql&&(0,v.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,v.jsx)(`span`,{className:`text-sm font-medium`,children:`The query, as the database checked it`}),(0,v.jsx)(C,{label:`SQL`,children:e.sql})]}),e.script_preview&&e.script_preview.length>0&&(0,v.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,v.jsx)(`span`,{className:`text-sm font-medium`,children:`INSERT script for these rows, not run`}),(0,v.jsx)(C,{label:`INSERT script`,children:e.script_preview.join(`
3
- `)})]}),e.files?.length?(0,v.jsxs)(`p`,{className:`m-0 flex flex-wrap items-center gap-2 text-sm`,children:[`Kept`,e.files.map(e=>(0,v.jsx)(S,{file:e,onNote:t},e))]}):null,e.replay&&(0,v.jsxs)(`p`,{className:`m-0 text-[13px] text-muted`,children:[`Tests and pipelines get the same data with `,(0,v.jsx)(`code`,{className:`font-mono text-[12px] text-ink-2`,children:e.replay}),`, without a model.`]})]})}function A({title:e,rows:n,total:r}){let i=[...new Set(n.flatMap(e=>Object.keys(e)))];return(0,v.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,v.jsxs)(`span`,{className:`text-sm`,children:[(0,v.jsx)(`span`,{className:`font-medium`,children:e}),` · `,t(r,`row`),r>n.length?(0,v.jsxs)(`span`,{className:`text-muted`,children:[` · `,n.length,` shown`]}):null]}),i.length>0?(0,v.jsx)(E,{columns:i,rows:n.map(e=>i.map(t=>e[t]))}):(0,v.jsx)(`p`,{className:`m-0 text-sm text-muted`,children:`No rows match.`})]})}function j({items:e,text:t,label:n,size:r=10,children:a}){let[o,s]=(0,_.useState)(``),[c,l]=(0,_.useState)(0),d=o.toLowerCase().split(/\s+/).filter(Boolean),f=d.length?e.filter(e=>d.every(n=>t(e).toLowerCase().includes(n))):e;(0,_.useEffect)(()=>l(0),[o,e.length]);let p=Math.min(c,Math.max(0,Math.ceil(f.length/r)-1));return(0,v.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[e.length>r&&(0,v.jsx)(i,{id:`find-${n.toLowerCase().replace(/\W+/g,`-`)}`,label:`Find in ${n.toLowerCase()}`,value:o,onChange:s,className:`flex-none`}),f.length?(0,v.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:f.slice(p*r,p*r+r).map(a)}):(0,v.jsx)(`p`,{className:`m-0 text-sm text-muted`,children:`Nothing matches.`}),f.length>r&&(0,v.jsx)(u,{page:p,size:r,total:f.length,onPage:l,label:`Pages of ${n.toLowerCase()}`})]})}export{w as a,T as c,x as d,b as f,D as i,E as l,C as n,O as o,S as r,j as s,k as t,A as u};
1
+ import{Ao as e,At as t,Da as n,Do as r,Ea as i,Ga as a,Oa as o,To as s,Zi as c,at as l,ct as u,et as d,gt as f,it as p,ka as m,rt as h,ut as g}from"./frame-D6-mukAC.js";import"./index-CQaKWOwX.js";var _=e(r(),1),v=s(),y={test:[`Testing the connection`,`Tested the connection`,`waiting`],tables:[`Reading the tables`,`Read the tables`,`searching`],query:[`Running the query`,`Ran the query`,`working`],gen:[`Making a preview`,`Made a preview`,`writing`],files:[`Writing the files`,`Wrote the files`,`writing`],insert:[`Inserting test data`,`Inserted test data`,`working`],batches:[`Listing the batches`,`Listed the batches`,`searching`],clean:[`Removing a batch`,`Removed a batch`,`working`],request:[`Asking the DB agent for test data`,`Asked the DB agent for test data`,`thinking`],fetch:[`Fetching the request again`,`Fetched the request again`,`searching`],ask:[`Asking the DB agent`,`Asked the DB agent`,`thinking`],checks:[`Running the checks`,`Ran the checks`,`working`],map:[`Reading the schema`,`Read the schema`,`searching`],check:[`Checking the flows`,`Checked the flows`,`working`],trace:[`Following the record`,`Followed the record`,`searching`]};function b(){let[e,t]=(0,_.useState)(null),[n,r]=(0,_.useState)(``),[i,o]=(0,_.useState)(!1),s=(0,_.useCallback)(()=>{a.view().then(e=>{t(e),r(``)},e=>r(e.message))},[]);(0,_.useEffect)(s,[s]);let c=!!e?.job?.running;return(0,_.useEffect)(()=>{if(!c)return;let e=setInterval(s,1e3);return()=>clearInterval(e)},[c,s]),{view:e,error:n,busy:i||c,running:c,act:async(e,t)=>{o(!0),r(``);try{await a.run(e,t),s()}catch(e){r(e.message)}finally{o(!1)}},stop:()=>void a.stop().then(s),load:s,job:e?.job??null}}var x=e=>e==null?`NULL`:typeof e==`object`?JSON.stringify(e):String(e);function S({file:e,onNote:r}){return(0,v.jsx)(`button`,{type:`button`,"data-tip":e,onClick:async()=>r(await t(e)),className:o(n({size:`sm`}),`font-mono text-[12px]`),children:e.split(/[\\/]/).pop()})}function C({children:e,label:t}){return(0,v.jsx)(`pre`,{"aria-label":t,className:`m-0 max-h-[320px] overflow-auto rounded-[12px] bg-surface-muted p-3 font-mono text-[12px] leading-relaxed whitespace-pre text-ink-2`,children:e})}function w({job:e,onStop:t}){let[n,r,a]=y[e.kind]??[`Working`,`Done`,`working`],o=(0,_.useRef)(null);(0,_.useEffect)(()=>{o.current&&(o.current.scrollTop=o.current.scrollHeight)},[e.lines.length]);let s=e.exitCode===0,l=!s&&(e.kind===`check`||e.kind===`trace`)&&e.result!==void 0&&!e.result.error;return(0,v.jsxs)(`section`,{"aria-label":e.running?n:r,className:`flex flex-col gap-2 rounded-[14px] card border p-4`,children:[(0,v.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,v.jsxs)(`span`,{className:`min-w-0 flex-1 font-medium [overflow-wrap:anywhere]`,children:[e.running?n:r,e.target?(0,v.jsxs)(`span`,{className:`font-normal text-muted`,children:[` · `,e.target]}):null]}),(0,v.jsx)(f,{tone:e.running?`running`:s?`pass`:e.exitCode===2||l?`warn`:`fail`,orb:a,children:e.running?`Working`:s?`Done`:l?`Some broken`:e.exitCode===2?`Not done`:`Failed`}),e.running&&(0,v.jsxs)(i,{variant:`danger`,onClick:t,children:[(0,v.jsx)(c,{fill:`currentColor`,"aria-hidden":`true`}),`Stop`]})]}),(0,v.jsxs)(`details`,{open:e.running||!s&&!e.result,children:[(0,v.jsxs)(`summary`,{className:`cursor-pointer text-sm text-muted`,children:[`Output (`,m(e.lines.length,`line`),`)`]}),(0,v.jsx)(`code`,{className:`mt-2 block font-mono text-[12px] text-muted [overflow-wrap:anywhere]`,children:e.command}),(0,v.jsx)(`pre`,{ref:o,className:`mt-2 max-h-[240px] overflow-auto rounded-[10px] bg-surface-muted p-3 font-mono text-[12px] leading-relaxed whitespace-pre-wrap text-ink-2`,children:e.lines.join(`
2
+ `)||`Starting…`})]})]})}function T({text:e}){return(0,v.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})}function E({columns:e,rows:t}){let n=e.map((e,n)=>t.length>0&&t.every(e=>e[n]===null||e[n]===void 0||typeof e[n]==`number`)&&t.some(e=>typeof e[n]==`number`));return(0,v.jsx)(d,{label:`Rows`,resetKey:t,head:e.map((e,t)=>(0,v.jsx)(`th`,{className:n[t]?p:h,children:e},e)),children:t.map((e,t)=>(0,v.jsx)(`tr`,{className:l,children:e.map((e,t)=>(0,v.jsx)(`td`,{"data-tip":x(e),className:o(`px-3 py-1.5 font-mono text-[12px]`,n[t]?`text-right whitespace-nowrap tabular-nums`:`max-w-[320px] truncate`,e==null&&`text-muted`),children:x(e)},t))},t))})}function D({r:e}){return(0,v.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(e.order||[]).map(t=>{let n=e.preview?.[t],r=n?.sample||[],i=r.length?Object.keys(r[0]):[];return(0,v.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,v.jsxs)(`span`,{className:`text-sm`,children:[(0,v.jsx)(`span`,{className:`font-medium`,children:t}),` · `,m(e.rows?.[t]??0,`row`),n?.database_fills?.length?(0,v.jsxs)(`span`,{className:`text-muted`,children:[` · the database fills `,n.database_fills.join(`, `)]}):null,e.masked?.[t]?.length?(0,v.jsxs)(`span`,{className:`text-muted`,children:[` · masked `,e.masked[t].join(`, `)]}):null]}),i.length>0&&(0,v.jsx)(E,{columns:i,rows:r.slice(0,3).map(e=>i.map(t=>e[t]))})]},t)}),(e.warnings||[]).map((e,t)=>(0,v.jsx)(`p`,{className:`m-0 text-[13px] text-warn`,children:e},t))]})}var O={query:`Existing rows`,generate:`New rows`};function k({r:e,onNote:t}){let n=Object.entries(e.rows||{});return(0,v.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,v.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,v.jsx)(f,{tone:`pass`,children:O[e.kind||``]||`Answered`}),(0,v.jsxs)(`span`,{className:`min-w-0 text-sm text-ink-2 [overflow-wrap:anywhere]`,children:[e.database,e.why?` · ${e.why}`:``]})]}),n.map(([t,n])=>(0,v.jsx)(A,{title:t===`result`?`Rows found`:t,rows:n,total:e.row_counts?.[t]??n.length},t)),e.sql&&(0,v.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,v.jsx)(`span`,{className:`text-sm font-medium`,children:`The query, as the database checked it`}),(0,v.jsx)(C,{label:`SQL`,children:e.sql})]}),e.script_preview&&e.script_preview.length>0&&(0,v.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,v.jsx)(`span`,{className:`text-sm font-medium`,children:`INSERT script for these rows, not run`}),(0,v.jsx)(C,{label:`INSERT script`,children:e.script_preview.join(`
3
+ `)})]}),e.files?.length?(0,v.jsxs)(`p`,{className:`m-0 flex flex-wrap items-center gap-2 text-sm`,children:[`Kept`,e.files.map(e=>(0,v.jsx)(S,{file:e,onNote:t},e))]}):null,e.replay&&(0,v.jsxs)(`p`,{className:`m-0 text-[13px] text-muted`,children:[`Tests and pipelines get the same data with `,(0,v.jsx)(`code`,{className:`font-mono text-[12px] text-ink-2`,children:e.replay}),`, without a model.`]})]})}function A({title:e,rows:t,total:n}){let r=[...new Set(t.flatMap(e=>Object.keys(e)))];return(0,v.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,v.jsxs)(`span`,{className:`text-sm`,children:[(0,v.jsx)(`span`,{className:`font-medium`,children:e}),` · `,m(n,`row`),n>t.length?(0,v.jsxs)(`span`,{className:`text-muted`,children:[` · `,t.length,` shown`]}):null]}),r.length>0?(0,v.jsx)(E,{columns:r,rows:t.map(e=>r.map(t=>e[t]))}):(0,v.jsx)(`p`,{className:`m-0 text-sm text-muted`,children:`No rows match.`})]})}function j({items:e,text:t,label:n,size:r=10,children:i}){let[a,o]=(0,_.useState)(``),[s,c]=(0,_.useState)(0),l=a.toLowerCase().split(/\s+/).filter(Boolean),d=l.length?e.filter(e=>l.every(n=>t(e).toLowerCase().includes(n))):e;(0,_.useEffect)(()=>c(0),[a,e.length]);let f=Math.min(s,Math.max(0,Math.ceil(d.length/r)-1));return(0,v.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[e.length>r&&(0,v.jsx)(g,{id:`find-${n.toLowerCase().replace(/\W+/g,`-`)}`,label:`Find in ${n.toLowerCase()}`,value:a,onChange:o,className:`flex-none`}),d.length?(0,v.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:d.slice(f*r,f*r+r).map(i)}):(0,v.jsx)(`p`,{className:`m-0 text-sm text-muted`,children:`Nothing matches.`}),d.length>r&&(0,v.jsx)(u,{page:f,size:r,total:d.length,onPage:c,label:`Pages of ${n.toLowerCase()}`})]})}export{w as a,T as c,x as d,b as f,D as i,E as l,C as n,O as o,S as r,j as s,k as t,A as u};
@@ -1 +1 @@
1
- import{Nt as e}from"./frame-I2oY7L19.js";var t=[{id:`runs`,label:`Runs`,href:e(`runs`)},{id:`reports`,label:`Execution reports`,href:e(`reports`)},{id:`reports-project`,label:`Project report`,href:e(`reports`,`project`)},{id:`run-diff`,label:`Run diff`,href:e(`run-diff`)},{id:`flaky`,label:`Flaky tests`,href:e(`flaky`)}],n=[{id:`migration`,label:`Migration`,href:e(`migration`)},{id:`tosca`,label:`Tosca`,href:e(`tosca`)}],r=[{id:`evidence-contracts`,label:`Contracts`,href:e(`evidence-contracts`)},{id:`evidence-releases`,label:`Releases`,href:e(`evidence-releases`)},{id:`evidence-learn`,label:`Learn`,href:e(`evidence-learn`)},{id:`evidence-monitor`,label:`Monitor`,href:e(`evidence-monitor`)}];export{n,t as r,r as t};
1
+ import{Mt as e}from"./frame-D6-mukAC.js";var t=[{id:`runs`,label:`Runs`,href:e(`runs`)},{id:`reports`,label:`Execution reports`,href:e(`reports`)},{id:`reports-project`,label:`Project report`,href:e(`reports`,`project`)},{id:`run-diff`,label:`Run diff`,href:e(`run-diff`)},{id:`flaky`,label:`Flaky tests`,href:e(`flaky`)}],n=[{id:`migration`,label:`Migration`,href:e(`migration`)},{id:`tosca`,label:`Tosca`,href:e(`tosca`)}],r=[{id:`evidence-contracts`,label:`Contracts`,href:e(`evidence-contracts`)},{id:`evidence-releases`,label:`Releases`,href:e(`evidence-releases`)},{id:`evidence-learn`,label:`Learn`,href:e(`evidence-learn`)},{id:`evidence-monitor`,label:`Monitor`,href:e(`evidence-monitor`)}];export{n,t as r,r as t};