@caddis/cli 0.4.113 → 0.4.115

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 (33) hide show
  1. package/bundles/antigravity-plugin/plugin.json +1 -1
  2. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_exit.cpython-311.pyc +0 -0
  3. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_file_lock.cpython-311.pyc +0 -0
  4. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_frontmatter.cpython-311.pyc +0 -0
  5. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_redact.cpython-311.pyc +0 -0
  6. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_roadmap.cpython-311.pyc +0 -0
  7. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_rows.cpython-311.pyc +0 -0
  8. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_status.cpython-311.pyc +0 -0
  9. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_tidy.cpython-311.pyc +0 -0
  10. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_todo.cpython-311.pyc +0 -0
  11. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_workstreams.cpython-311.pyc +0 -0
  12. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_worktree_safety.cpython-311.pyc +0 -0
  13. package/bundles/antigravity-plugin/scripts/caddis_coordinate.py +107 -1
  14. package/bundles/antigravity-plugin/scripts/caddis_guide.json +34 -7
  15. package/bundles/antigravity-plugin/scripts/caddis_stories.py +760 -0
  16. package/bundles/antigravity-plugin/skills/_registry.md +1 -0
  17. package/bundles/antigravity-plugin/skills/coordinate/SKILL.md +6 -2
  18. package/bundles/antigravity-plugin/skills/feature-plan/SKILL.md +15 -0
  19. package/bundles/antigravity-plugin/skills/implement/SKILL.md +5 -0
  20. package/bundles/antigravity-plugin/skills/stories/SKILL.md +50 -0
  21. package/bundles/manifest.json +2 -2
  22. package/dist/cli.js +207 -113
  23. package/dist/ui/assets/{Activity-B816JVqx.js → Activity-CITEjSUJ.js} +1 -1
  24. package/dist/ui/assets/Benchmarks-B2_1oerW.css +1 -0
  25. package/dist/ui/assets/Benchmarks-ChQoYa0P.js +1 -0
  26. package/dist/ui/assets/{Guide-CnL1DiTr.js → Guide-9Ob-m7gx.js} +1 -1
  27. package/dist/ui/assets/{Palette-BKM_A64G.js → Palette-CinCoveU.js} +1 -1
  28. package/dist/ui/assets/{RoadmapTab-DhC4-kqv.js → RoadmapTab-BeD4-8IU.js} +2 -2
  29. package/dist/ui/assets/{external-link-DagTFCsV.js → external-link-D_rks7KV.js} +1 -1
  30. package/dist/ui/assets/index-CFKn_GzG.js +231 -0
  31. package/dist/ui/index.html +1 -1
  32. package/package.json +1 -1
  33. package/dist/ui/assets/index-Bj5qA-fq.js +0 -226
@@ -1 +1 @@
1
- import{a as C,D as I,b as K,c as O,r as A,j as n,l as q,d as z}from"./index-Bj5qA-fq.js";import{E as B}from"./external-link-DagTFCsV.js";const Y=["merge","deploy","health","owner","coordinator","approval"],D={merge:"Merges",deploy:"Deploys",health:"Health checks",owner:"Your actions",coordinator:"Coordinator results",approval:"Routine approvals"},j=100,E=s=>s&&typeof s=="object"&&!Array.isArray(s)?s:{},u=s=>typeof s=="string"&&s?s:null,M=s=>typeof s=="number"&&Number.isInteger(s)?s:null,S=K,b=(s,c)=>{var d;return(d=s==null?void 0:s.github)!=null&&d.repo&&c!==null?`https://github.com/${s.github.repo}/pull/${c}`:null},R={hotfix:"marked as hotfix",unhotfix:"unmarked as hotfix",hold:"held",release:"released",approve:"approved",decline:"declined"};function F(s){const c=s.action?R[s.action]??s.action:"sent a request",d=s.pr!==null?` #${s.pr}`:s.what?`: ${s.what}`:"";return s.result==="refused"?`Refused: you ${c}${d}`:`You ${c}${d}`}function G(s){var m,f,h,k,v;const c=[],d=new Map(s.repos.map(e=>[S(e),e])),L=e=>{const t=d.get(e);return t?O(t):e.replace("__","/")},p=e=>{const t=Date.parse(e.at);Number.isNaN(t)||c.push({...e,ms:t,repoLabel:L(e.repo)})};for(const e of s.repos){const t=S(e),w=new Set;for(const o of C((m=e.coordinator)==null?void 0:m.deploy_checks)){const a=E(o),r=M(a.pr),l=u(a.at);if(r===null||!l)continue;const g=(u(a.merge_sha)??"").toLowerCase();w.add(r);const i=E(a.checks),y=Object.keys(i).length>0,T=y?I.map(_=>`${_} ${u(i[_])??"skip"}`).join(" · "):null,H=y&&I.some(_=>i[_]==="fail"),U=M(a.deploy_run);p({id:`deploy:${t}:${r}:${g}`,kind:"deploy",repo:t,at:l,text:`Deploy check for #${r}`,detail:[T,U!==null?`run ${U}`:null,u(a.reason)].filter(Boolean).join(" · ")||null,tone:H?"bad":y?"good":"muted",pr:r,prUrl:b(e,r)});const N=u(a.health);(N==="ok"||N==="failed")&&p({id:`health:${t}:${r}:${g}`,kind:"health",repo:t,at:l,text:`Health check ${N} for #${r}`,detail:null,tone:N==="ok"?"good":"bad",pr:r,prUrl:b(e,r)})}for(const o of((f=e.github)==null?void 0:f.merges)??[])if(p({id:`merge:${t}:${o.number}:${o.merge_sha.toLowerCase()}`,kind:"merge",repo:t,at:o.merged_at,text:`Merged #${o.number} ${o.title}`,detail:o.merge_sha.slice(0,10),tone:"good",pr:o.number,prUrl:b(e,o.number)}),!w.has(o.number)&&o.runs.length){const a=o.runs.some(l=>l.conclusion==="failure"||l.conclusion==="cancelled"),r=o.runs.some(l=>l.status!=="completed");p({id:`deploy-runs:${t}:${o.number}:${o.merge_sha.toLowerCase()}`,kind:"deploy",repo:t,at:o.merged_at,text:`Deploy runs for #${o.number}`,detail:o.runs.map(l=>`${l.name} ${l.status==="completed"?l.conclusion??"done":l.status}`).join(" · "),tone:a?"bad":r?"muted":"good",pr:o.number,prUrl:b(e,o.number)})}const $=new Map((((h=e.coordinator)==null?void 0:h.requests)??[]).map(o=>[o.id,o]));for(const o of C((k=e.coordinator)==null?void 0:k.processed_requests)){const a=E(o),r=u(a.id),l=u(a.at),g=u(a.result);if(!r||!l||!g)continue;const i=$.get(r),y=i?`${R[i.action]??i.action}${i.pr!==null?` #${i.pr}`:i.what?`: ${i.what}`:""}`:`request ${r.slice(0,8)}`;p({id:`result:${t}:${r}`,kind:"coordinator",repo:t,at:l,text:`Coordinator ${g}: ${y}`,detail:u(a.reason),tone:g==="done"?"good":g==="rejected"?"bad":"warn",pr:(i==null?void 0:i.pr)??null,prUrl:b(e,(i==null?void 0:i.pr)??null)})}for(const o of C((v=e.coordinator)==null?void 0:v.ledger)){const a=E(o),r=u(a.at),l=u(a.what);a.approved_by!=="coordinator"||!r||!l||p({id:`ledger:${t}:${r}:${l}`,kind:"approval",repo:t,at:r,text:`Coordinator ${a.decision==="decline"?"declined":"approved"}: ${l}`,detail:u(a.reason),tone:a.decision==="decline"?"warn":"good",pr:null,prUrl:null})}}const x=new Map;return C(s.audit).forEach(e=>{const t=e,w=t.repo??"unknown",$=`audit:${t.at}:${t.request_id??"x"}:${t.action??""}:${t.result??""}`,o=(x.get($)??0)+1;x.set($,o),p({id:o===1?$:`${$}:${o}`,kind:"owner",repo:w,at:t.at,text:F(t),detail:t.reason,tone:t.result==="refused"?"warn":"muted",pr:t.pr,prUrl:b(d.get(w),t.pr)})}),c.sort((e,t)=>t.ms-e.ms||(e.id<t.id?-1:1))}function P(s,c){return s.filter(d=>(c.repo===null||d.repo===c.repo)&&(c.kinds.size===0||c.kinds.has(d.kind)))}function J({state:s}){const c=A.useMemo(()=>G(s),[s]),[d,L]=A.useState(null),[p,x]=A.useState(new Set),[m,f]=A.useState(j),h=P(c,{repo:d,kinds:p}),k=e=>{const t=new Set(p);t.has(e)?t.delete(e):t.add(e),x(t),f(j)},v=!s.sources.github.ok||s.sources.github.stale;return n.jsxs("div",{className:"flow","data-testid":"activity",children:[n.jsxs("div",{className:"page-header",children:[n.jsx("h1",{className:"page-title",children:"Activity"}),n.jsxs("span",{className:"page-subtitle",children:[h.length," events, newest first"]})]}),v&&n.jsx("p",{className:"lane-note","data-testid":"activity-stale",children:"GitHub data is old, so merges and deploys may be missing the newest events."}),n.jsxs("div",{className:"act-filters",role:"group","aria-label":"Filters",children:[n.jsxs("label",{children:[n.jsx("span",{className:"sr-only",children:"Repo"}),n.jsxs("select",{"data-testid":"activity-repo",value:d??"",onChange:e=>{L(e.target.value||null),f(j)},children:[n.jsx("option",{value:"",children:"All repos"}),s.repos.map(e=>{var t;return n.jsx("option",{value:S(e),children:((t=e.github)==null?void 0:t.repo)??e.name},S(e))})]})]}),n.jsxs("div",{className:"act-kinds",role:"group","aria-label":"Kinds",children:[n.jsx("button",{type:"button",className:"act-kind","aria-pressed":p.size===0,"data-testid":"kind-all",onClick:()=>{x(new Set),f(j)},children:"All"}),Y.map(e=>n.jsx("button",{type:"button",className:"act-kind","aria-pressed":p.has(e),"data-testid":`kind-${e}`,onClick:()=>k(e),children:D[e]},e))]})]}),h.length===0?n.jsx("p",{className:"col-empty","data-testid":"activity-empty",children:c.length===0?"No activity yet. Merges, deploys and your actions show here.":"No event matches these filters."}):n.jsx("ul",{className:"flow-list","aria-label":"Events",children:h.slice(0,m).map(e=>n.jsxs("li",{className:"flow-row","data-testid":"activity-item","data-kind":e.kind,children:[n.jsxs("div",{className:"flow-row-head",children:[n.jsx("span",{className:"act-kindtag",children:D[e.kind]}),n.jsx("span",{className:`flow-title tone-${e.tone}`,children:e.text})]}),e.detail&&n.jsx("span",{className:"flow-why",children:e.detail}),n.jsxs("span",{className:"act-time",children:[n.jsx("time",{dateTime:e.at,children:q(e.at)})," ·"," ",n.jsx("a",{href:z(e.repo,"flow"),children:e.repoLabel}),e.prUrl&&n.jsxs(n.Fragment,{children:[" · ",n.jsxs("a",{href:e.prUrl,target:"_blank",rel:"noreferrer noopener","data-testid":"activity-pr",children:["#",e.pr," ",n.jsx(B,{size:12,"aria-hidden":"true"})]})]})]})]},e.id))}),h.length>m&&n.jsxs("button",{type:"button",className:"btn","data-testid":"activity-more",onClick:()=>f(m+j),children:["Show more (",h.length-m," left)"]})]})}export{J as default};
1
+ import{a as C,D as I,b as K,c as O,r as A,j as n,l as q,d as z}from"./index-CFKn_GzG.js";import{E as B}from"./external-link-D_rks7KV.js";const Y=["merge","deploy","health","owner","coordinator","approval"],D={merge:"Merges",deploy:"Deploys",health:"Health checks",owner:"Your actions",coordinator:"Coordinator results",approval:"Routine approvals"},j=100,E=s=>s&&typeof s=="object"&&!Array.isArray(s)?s:{},u=s=>typeof s=="string"&&s?s:null,M=s=>typeof s=="number"&&Number.isInteger(s)?s:null,S=K,b=(s,c)=>{var d;return(d=s==null?void 0:s.github)!=null&&d.repo&&c!==null?`https://github.com/${s.github.repo}/pull/${c}`:null},R={hotfix:"marked as hotfix",unhotfix:"unmarked as hotfix",hold:"held",release:"released",approve:"approved",decline:"declined"};function F(s){const c=s.action?R[s.action]??s.action:"sent a request",d=s.pr!==null?` #${s.pr}`:s.what?`: ${s.what}`:"";return s.result==="refused"?`Refused: you ${c}${d}`:`You ${c}${d}`}function G(s){var m,f,h,k,v;const c=[],d=new Map(s.repos.map(e=>[S(e),e])),L=e=>{const t=d.get(e);return t?O(t):e.replace("__","/")},p=e=>{const t=Date.parse(e.at);Number.isNaN(t)||c.push({...e,ms:t,repoLabel:L(e.repo)})};for(const e of s.repos){const t=S(e),w=new Set;for(const o of C((m=e.coordinator)==null?void 0:m.deploy_checks)){const a=E(o),r=M(a.pr),l=u(a.at);if(r===null||!l)continue;const g=(u(a.merge_sha)??"").toLowerCase();w.add(r);const i=E(a.checks),y=Object.keys(i).length>0,T=y?I.map(_=>`${_} ${u(i[_])??"skip"}`).join(" · "):null,H=y&&I.some(_=>i[_]==="fail"),U=M(a.deploy_run);p({id:`deploy:${t}:${r}:${g}`,kind:"deploy",repo:t,at:l,text:`Deploy check for #${r}`,detail:[T,U!==null?`run ${U}`:null,u(a.reason)].filter(Boolean).join(" · ")||null,tone:H?"bad":y?"good":"muted",pr:r,prUrl:b(e,r)});const N=u(a.health);(N==="ok"||N==="failed")&&p({id:`health:${t}:${r}:${g}`,kind:"health",repo:t,at:l,text:`Health check ${N} for #${r}`,detail:null,tone:N==="ok"?"good":"bad",pr:r,prUrl:b(e,r)})}for(const o of((f=e.github)==null?void 0:f.merges)??[])if(p({id:`merge:${t}:${o.number}:${o.merge_sha.toLowerCase()}`,kind:"merge",repo:t,at:o.merged_at,text:`Merged #${o.number} ${o.title}`,detail:o.merge_sha.slice(0,10),tone:"good",pr:o.number,prUrl:b(e,o.number)}),!w.has(o.number)&&o.runs.length){const a=o.runs.some(l=>l.conclusion==="failure"||l.conclusion==="cancelled"),r=o.runs.some(l=>l.status!=="completed");p({id:`deploy-runs:${t}:${o.number}:${o.merge_sha.toLowerCase()}`,kind:"deploy",repo:t,at:o.merged_at,text:`Deploy runs for #${o.number}`,detail:o.runs.map(l=>`${l.name} ${l.status==="completed"?l.conclusion??"done":l.status}`).join(" · "),tone:a?"bad":r?"muted":"good",pr:o.number,prUrl:b(e,o.number)})}const $=new Map((((h=e.coordinator)==null?void 0:h.requests)??[]).map(o=>[o.id,o]));for(const o of C((k=e.coordinator)==null?void 0:k.processed_requests)){const a=E(o),r=u(a.id),l=u(a.at),g=u(a.result);if(!r||!l||!g)continue;const i=$.get(r),y=i?`${R[i.action]??i.action}${i.pr!==null?` #${i.pr}`:i.what?`: ${i.what}`:""}`:`request ${r.slice(0,8)}`;p({id:`result:${t}:${r}`,kind:"coordinator",repo:t,at:l,text:`Coordinator ${g}: ${y}`,detail:u(a.reason),tone:g==="done"?"good":g==="rejected"?"bad":"warn",pr:(i==null?void 0:i.pr)??null,prUrl:b(e,(i==null?void 0:i.pr)??null)})}for(const o of C((v=e.coordinator)==null?void 0:v.ledger)){const a=E(o),r=u(a.at),l=u(a.what);a.approved_by!=="coordinator"||!r||!l||p({id:`ledger:${t}:${r}:${l}`,kind:"approval",repo:t,at:r,text:`Coordinator ${a.decision==="decline"?"declined":"approved"}: ${l}`,detail:u(a.reason),tone:a.decision==="decline"?"warn":"good",pr:null,prUrl:null})}}const x=new Map;return C(s.audit).forEach(e=>{const t=e,w=t.repo??"unknown",$=`audit:${t.at}:${t.request_id??"x"}:${t.action??""}:${t.result??""}`,o=(x.get($)??0)+1;x.set($,o),p({id:o===1?$:`${$}:${o}`,kind:"owner",repo:w,at:t.at,text:F(t),detail:t.reason,tone:t.result==="refused"?"warn":"muted",pr:t.pr,prUrl:b(d.get(w),t.pr)})}),c.sort((e,t)=>t.ms-e.ms||(e.id<t.id?-1:1))}function P(s,c){return s.filter(d=>(c.repo===null||d.repo===c.repo)&&(c.kinds.size===0||c.kinds.has(d.kind)))}function J({state:s}){const c=A.useMemo(()=>G(s),[s]),[d,L]=A.useState(null),[p,x]=A.useState(new Set),[m,f]=A.useState(j),h=P(c,{repo:d,kinds:p}),k=e=>{const t=new Set(p);t.has(e)?t.delete(e):t.add(e),x(t),f(j)},v=!s.sources.github.ok||s.sources.github.stale;return n.jsxs("div",{className:"flow","data-testid":"activity",children:[n.jsxs("div",{className:"page-header",children:[n.jsx("h1",{className:"page-title",children:"Activity"}),n.jsxs("span",{className:"page-subtitle",children:[h.length," events, newest first"]})]}),v&&n.jsx("p",{className:"lane-note","data-testid":"activity-stale",children:"GitHub data is old, so merges and deploys may be missing the newest events."}),n.jsxs("div",{className:"act-filters",role:"group","aria-label":"Filters",children:[n.jsxs("label",{children:[n.jsx("span",{className:"sr-only",children:"Repo"}),n.jsxs("select",{"data-testid":"activity-repo",value:d??"",onChange:e=>{L(e.target.value||null),f(j)},children:[n.jsx("option",{value:"",children:"All repos"}),s.repos.map(e=>{var t;return n.jsx("option",{value:S(e),children:((t=e.github)==null?void 0:t.repo)??e.name},S(e))})]})]}),n.jsxs("div",{className:"act-kinds",role:"group","aria-label":"Kinds",children:[n.jsx("button",{type:"button",className:"act-kind","aria-pressed":p.size===0,"data-testid":"kind-all",onClick:()=>{x(new Set),f(j)},children:"All"}),Y.map(e=>n.jsx("button",{type:"button",className:"act-kind","aria-pressed":p.has(e),"data-testid":`kind-${e}`,onClick:()=>k(e),children:D[e]},e))]})]}),h.length===0?n.jsx("p",{className:"col-empty","data-testid":"activity-empty",children:c.length===0?"No activity yet. Merges, deploys and your actions show here.":"No event matches these filters."}):n.jsx("ul",{className:"flow-list","aria-label":"Events",children:h.slice(0,m).map(e=>n.jsxs("li",{className:"flow-row","data-testid":"activity-item","data-kind":e.kind,children:[n.jsxs("div",{className:"flow-row-head",children:[n.jsx("span",{className:"act-kindtag",children:D[e.kind]}),n.jsx("span",{className:`flow-title tone-${e.tone}`,children:e.text})]}),e.detail&&n.jsx("span",{className:"flow-why",children:e.detail}),n.jsxs("span",{className:"act-time",children:[n.jsx("time",{dateTime:e.at,children:q(e.at)})," ·"," ",n.jsx("a",{href:z(e.repo,"flow"),children:e.repoLabel}),e.prUrl&&n.jsxs(n.Fragment,{children:[" · ",n.jsxs("a",{href:e.prUrl,target:"_blank",rel:"noreferrer noopener","data-testid":"activity-pr",children:["#",e.pr," ",n.jsx(B,{size:12,"aria-hidden":"true"})]})]})]})]},e.id))}),h.length>m&&n.jsxs("button",{type:"button",className:"btn","data-testid":"activity-more",onClick:()=>f(m+j),children:["Show more (",h.length-m," left)"]})]})}export{J as default};
@@ -0,0 +1 @@
1
+ .bm,.bm-board{display:flex;flex-direction:column;gap:20px;min-width:0}.bm-repo,.bm-h{margin:0;font-size:16px;font-weight:700;color:var(--text-main)}.bm-note{font-weight:400;color:var(--text-sub)}.bm-block{display:flex;flex-direction:column;gap:8px}.bm-list{margin:0;padding:0;list-style:none;display:grid;gap:4px;color:var(--text-main)}.bm-label{color:var(--text-sub)}.bm-source{margin:0;font-size:13px;color:var(--text-dim)}.bm-errors{margin:0;list-style:none;display:grid;gap:4px}.bm-scroll{overflow-x:auto;border:1px solid var(--border-dim);border-radius:var(--radius-row);background:var(--bg-card)}.bm-table{width:100%;border-collapse:collapse;color:var(--text-main);font-size:14px}.bm-table th,.bm-table td{padding:10px 14px;text-align:left;white-space:nowrap;border-bottom:1px solid var(--border-dim)}.bm-table thead th{color:var(--text-sub);font-weight:600}.bm-table tbody th{font-weight:600}.bm-table tbody tr:last-child th,.bm-table tbody tr:last-child td{border-bottom:0}.bm-num{font-variant-numeric:tabular-nums}.bm-none{color:var(--text-sub)}
@@ -0,0 +1 @@
1
+ import{r as i,e as u,j as s}from"./index-CFKn_GzG.js";const d=e=>!!e&&typeof e=="object"&&!Array.isArray(e);function p(e){if(!d(e)||!Array.isArray(e.rows))return null;const r=e.rows.filter(d).map(l=>({...l,per_case:d(l.per_case)?l.per_case:{}})),n=Array.isArray(e.cases)?e.cases.filter(d):[];return{updated:typeof e.updated=="string"?e.updated:"",cases:n,rows:r,proposed:d(e.proposed)?e.proposed:{}}}function x(e){return[...e].sort((r,n)=>r.score===null&&n.score===null?0:r.score===null?1:n.score===null?-1:n.score-r.score)}const j=e=>(Math.round(e*100)/100).toFixed(2),h=e=>e.length===0?0:e.reduce((r,n)=>r+n,0)/e.length;function b(e,r){const n=e.per_case[r.id];return!n||n.found.length===0?"-":`${h(n.found).toFixed(1)}/${n.known??r.known}`}function m(e,r,n){const l=r.filter(t=>t.size===n);if(l.length===0)return"-";let a=0,c=0;for(const t of l){const o=e.per_case[t.id];a+=h((o==null?void 0:o.found)??[]),c+=(o==null?void 0:o.known)??t.known}return`${a.toFixed(1)}/${c}`}const f=e=>e.cost_per_run_usd===null?"-":`USD ${e.cost_per_run_usd.toFixed(2)}`;function g(e){return e.graded_by?e.same_vendor_grader?`${e.graded_by} (same vendor)`:e.graded_by:"-"}const N=e=>`no result (${e.not_run} of ${e.runs} runs not run)`;function y(e){const r=e.cases.filter(a=>a.size==="large").length,n=e.cases.filter(a=>a.size==="small").length,l=e.updated?` - updated ${e.updated}`:"";return`Review benchmark - case set: ${e.cases.length} cases (${r} large, ${n} small)${l}`}function _(e){let r=0;for(const n of e.rows)for(const l of Object.values(n.per_case))r=Math.max(r,l.found.length);return r}function k(e){const r=[];for(let n=0;n<e.length;n++){const l=e[n];l==="claude-sonnet"&&e[n+1]==="claude-opus"?(r.push("claude-sonnet (tier 2: claude-opus)"),n++):r.push(l)}return r.join(", ")}const $={anthropic:"claude",google:"agy"};function v(e){return Object.entries(e.proposed).map(([r,n])=>({label:`${$[r]??r}-written code`,order:k(Array.isArray(n)?n:[])}))}const R="No benchmark yet. Run evals/review_eval.py score.";function w({board:e,source:r,repo:n}){const l=x(e.rows),a=_(e),c=v(e);return s.jsxs("section",{className:"bm-board","data-testid":"bm-board",children:[n&&s.jsx("h2",{className:"bm-repo",children:n}),s.jsx("p",{className:"page-subtitle",children:y(e)}),s.jsx("div",{className:"bm-scroll",children:s.jsxs("table",{className:"bm-table","data-testid":"bm-table",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{scope:"col",children:"Reviewer"}),s.jsx("th",{scope:"col",children:"Score"}),s.jsx("th",{scope:"col",children:"Large"}),s.jsx("th",{scope:"col",children:"Small"}),s.jsx("th",{scope:"col",children:"Wrong"}),s.jsx("th",{scope:"col",children:"Mean s"}),s.jsx("th",{scope:"col",children:"Cost/run"}),s.jsx("th",{scope:"col",children:"Graded by"})]})}),s.jsx("tbody",{children:l.map(t=>s.jsxs("tr",{"data-testid":"bm-row",children:[s.jsx("th",{scope:"row",children:t.model}),t.score===null?s.jsxs(s.Fragment,{children:[s.jsx("td",{children:"-"}),s.jsx("td",{colSpan:6,className:"bm-none",children:N(t)})]}):s.jsxs(s.Fragment,{children:[s.jsx("td",{className:"bm-num",children:j(t.score)}),s.jsx("td",{className:"bm-num",children:m(t,e.cases,"large")}),s.jsx("td",{className:"bm-num",children:m(t,e.cases,"small")}),s.jsx("td",{className:"bm-num",children:t.wrong_verdicts??"-"}),s.jsx("td",{className:"bm-num",children:t.mean_seconds===null?"-":Math.round(t.mean_seconds)}),s.jsx("td",{className:"bm-num",children:f(t)}),s.jsx("td",{children:g(t)})]})]},t.model))})]})}),c.length>0&&s.jsxs("div",{className:"bm-block","data-testid":"bm-proposed",children:[s.jsx("h2",{className:"bm-h",children:"Proposed order"}),s.jsx("ul",{className:"bm-list",children:c.map(t=>s.jsxs("li",{children:[s.jsxs("span",{className:"bm-label",children:[t.label,":"]})," ",t.order]},t.label))})]}),s.jsxs("div",{className:"bm-block","data-testid":"bm-recall",children:[s.jsxs("h2",{className:"bm-h",children:["Recall per case",a>0&&s.jsxs("span",{className:"bm-note",children:[" (",a," runs each)"]})]}),s.jsx("div",{className:"bm-scroll",children:s.jsxs("table",{className:"bm-table bm-recall-table",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{scope:"col",children:"Reviewer"}),e.cases.map(t=>s.jsx("th",{scope:"col",title:`${t.size} case`,children:t.id},t.id))]})}),s.jsx("tbody",{children:l.map(t=>s.jsxs("tr",{children:[s.jsx("th",{scope:"row",children:t.model}),e.cases.map(o=>s.jsx("td",{className:"bm-num",children:b(t,o)},o.id))]},t.model))})]})})]}),s.jsxs("p",{className:"bm-source",children:["Source: ",r]})]})}function A({data:e}){const r=e.boards.flatMap(n=>{const l=p(n.board);return l?[{...n,board:l}]:[]});return s.jsxs("div",{className:"bm","data-testid":"benchmarks",children:[s.jsx("div",{className:"page-header",children:s.jsx("h1",{className:"page-title",children:"Benchmarks"})}),e.errors.length>0&&s.jsx("ul",{className:"lane-note bm-errors","data-testid":"bm-errors",children:e.errors.map((n,l)=>s.jsxs("li",{children:[n.repo,": ",n.error]},l))}),r.length===0?s.jsx("p",{className:"col-empty","data-testid":"bm-empty",children:R}):r.map(n=>s.jsx(w,{board:n.board,source:n.path,repo:r.length>1?n.repo:null},`${n.repo}/${n.path}`))]})}function B({load:e=u}){const[r,n]=i.useState(null),[l,a]=i.useState(!1);return i.useEffect(()=>{let c=!0;return e().then(t=>c&&n(t),()=>c&&a(!0)),()=>{c=!1}},[e]),r?s.jsx(A,{data:r}):s.jsxs("div",{className:"bm","data-testid":"benchmarks",children:[s.jsx("div",{className:"page-header",children:s.jsx("h1",{className:"page-title",children:"Benchmarks"})}),l?s.jsx("p",{className:"lane-note","data-testid":"bm-failed",children:"The benchmark data did not load. Reload the page to try again."}):s.jsx("p",{className:"page-subtitle",children:"Loading..."})]})}export{A as BenchmarksView,R as EMPTY_TEXT,B as default};
@@ -1,4 +1,4 @@
1
- import{r as k,j as e,g as f}from"./index-Bj5qA-fq.js";const ie=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1250 1250" role="img" aria-label="Caddis">
1
+ import{r as k,j as e,g as f}from"./index-CFKn_GzG.js";const ie=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1250 1250" role="img" aria-label="Caddis">
2
2
  <path class="p-blue" fill="#0D42FC" d="M640 98C705 150 720 215 680 275C640 340 590 375 540 420C480 470 410 520 395 605C385 700 355 790 270 855C310 780 315 700 305 640C300 540 340 460 480 340L545 285C600 235 645 180 640 98Z M545 535L625 585C610 610 595 635 580 650L500 597C515 575 530 555 545 535Z"/>
3
3
  <path class="p-purple" fill="#8730FB" d="M210 1025C200 950 225 890 270 855C330 810 400 750 445 670L525 720C440 830 330 930 250 985C235 998 222 1012 210 1025Z M875 622C960 690 1030 780 1028 850C1025 910 990 950 960 975L905 950C935 900 935 850 900 790C875 755 840 720 800 672C830 650 850 635 875 622Z"/>
4
4
  <path class="p-cyan" fill="#00CAD5" d="M1025 182C1050 250 1030 320 985 360C940 395 880 390 820 405C750 420 690 460 668 500L592 452C650 360 760 310 880 290C950 275 990 235 1025 182Z"/>
@@ -1,4 +1,4 @@
1
- import{e as T,b as v,d as D,c as R,s as U,f as W,K as P,i as F,g as J,a as V,r as f,j as t,S as Q,C as X,t as Y,I as Z,T as ee,G as se,L as te}from"./index-Bj5qA-fq.js";import{E as ae}from"./external-link-DagTFCsV.js";/**
1
+ import{f as T,b as v,d as D,c as R,s as U,h as W,K as P,i as F,g as J,a as V,r as f,j as t,S as Q,C as X,t as Y,I as Z,T as ee,G as se,L as te}from"./index-CFKn_GzG.js";import{E as ae}from"./external-link-D_rks7KV.js";/**
2
2
  * @license lucide-react v1.61.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{e as P,j as e,r as u,p as R,h as Y,k as Z,P as ee,w as se,m as I,n as $,o as T,O as ae,d as ne,b as M,q as re,u as C,v as le,x as te,y as ie,z as ce,A as oe,B as de,c as he,l as S,E as me,F as pe,H as xe,J as ue,M as je,S as Ne,N as ge,Q as ke}from"./index-Bj5qA-fq.js";import{R as qe}from"./index-Bj5qA-fq.js";/**
1
+ import{f as P,j as e,r as u,p as R,k as Y,m as Z,P as ee,w as se,n as I,o as $,q as T,O as ae,d as ne,b as M,u as re,v as C,x as le,y as te,z as ie,A as ce,B as oe,E as de,c as he,l as S,F as me,H as pe,J as xe,M as ue,N as je,S as Ne,Q as ge,R as ke}from"./index-CFKn_GzG.js";import{U as Ue}from"./index-CFKn_GzG.js";/**
2
2
  * @license lucide-react v1.61.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -18,4 +18,4 @@ import{e as P,j as e,r as u,p as R,h as Y,k as Z,P as ee,w as se,m as I,n as $,o
18
18
  *
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
- */const V={name:"loader",size:24,node:[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]};V.node;const ye=P(V);function B({phase:s}){return e.jsxs(e.Fragment,{children:[s.prs.map(a=>a.url?e.jsxs("a",{className:"rm-pr mono","data-testid":"rm-pr",href:a.url,target:"_blank",rel:"noreferrer noopener",children:["#",a.number]},a.number):e.jsxs("span",{className:"rm-pr mono","data-testid":"rm-pr",children:["#",a.number]},a.number)),e.jsx("span",{className:`rm-stage tile-${s.tile}`,"data-testid":"rm-stage",children:s.stage})]})}function v({status:s}){const a=s==="done"||s==="not-needed";return e.jsx("span",{className:`chip ${a?"chip-resolved":s==="in-progress"?"chip-waiting":"chip-hub"}`,children:s})}function ve({detail:s,note:a=null,variant:l,onClose:t}){const n=u.useId(),r=u.useRef(null);if(u.useEffect(()=>{var g;(g=r.current)==null||g.focus()},[s==null?void 0:s.phase.ref]),!s)return null;const{title:i,text:o,phase:h}=s,x=R(h);return e.jsxs("aside",{className:"rm-panel","data-testid":"rm-panel",role:"dialog","aria-modal":"false","aria-labelledby":n,children:[e.jsxs("h3",{id:n,"data-testid":"rm-panel-title",tabIndex:-1,ref:r,children:[h.ref," ",i]}),e.jsx("button",{type:"button",className:"rm-panel-close","data-testid":"rm-panel-close","aria-label":"Close",onClick:t,children:"×"}),e.jsx(v,{status:h.tile}),h.tracker&&e.jsx("p",{"data-testid":"rm-panel-tracker",children:h.tracker}),x&&e.jsx("p",{"data-testid":"rm-panel-meta",children:x}),e.jsx("div",{className:"rm-panel-prs",children:e.jsx(B,{phase:h})}),l!=="site"&&(o!==null?e.jsx("pre",{className:"rm-panel-text","data-testid":"rm-panel-text",children:o}):a==="loading"?e.jsx("p",{"data-testid":"rm-panel-note",children:"Loading the plan section…"}):a==="error"?e.jsx("p",{"data-testid":"rm-panel-note",children:"Could not load the plan section."}):e.jsx("p",{"data-testid":"rm-panel-empty",children:"The plan has no section for this phase."}))]})}function E(){try{return typeof window<"u"?window.localStorage:null}catch{return null}}function z(s){const[a,l]=u.useState(()=>s??Y(E()));return[a,n=>()=>{l(n),se(E(),n)}]}function H({view:s,choose:a}){return e.jsxs("div",{className:"rm-view",role:"group","aria-label":"View","data-testid":"rm-view",children:[e.jsx("button",{type:"button","data-testid":"rm-view-timeline","aria-pressed":s==="timeline",onClick:a("timeline"),children:"Timeline"}),e.jsx("button",{type:"button","data-testid":"rm-view-board","aria-pressed":s==="board",onClick:a("board"),children:"Board"})]})}function K({m:s,pool:a,repo:l,variant:t}){const[n,r]=u.useState(null),[i,o]=u.useState(null),[h,x]=u.useState(0),g=u.useRef(null),d=n?Z(s,a,n):null,k=u.useContext(ee),c=d==null?void 0:d.planPath,m=d==null?void 0:d.key,w=d!==null&&t!=="site"&&d.hasSection&&d.text===null&&d.planPath!==null&&k!==null;u.useEffect(()=>{if(!w||!n||!d||!d.planPath||!k)return;let j=!0;return k(l.path,d.planPath,d.key).then(y=>{j&&o({ref:n,text:y.text||null,error:!1})},()=>{j&&o({ref:n,text:null,error:!0})}),()=>{j=!1}},[n,w,k,l.path,c,m,h]);const p=i&&i.ref===n?i:null,b=(j,y)=>{if(g.current=y,j===n){p!=null&&p.error&&(o(null),x(X=>X+1));return}o(null),r(j)},N=()=>{var j;o(null),r(null),(j=g.current)==null||j.focus()};u.useEffect(()=>{if(n===null)return;const j=y=>{I(y.target)||y.key==="Escape"&&N()};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[n]);const f=e.jsx(ve,{detail:d?{title:d.title,text:d.text??(p==null?void 0:p.text)??null,phase:d.phase}:null,note:w&&!p?"loading":p!=null&&p.error?"error":null,variant:t,onClose:N});return{open:b,panel:f}}const $e={todo:we,"in-progress":ye,done:be,moved:fe,blocked:ae},q={size:14,"aria-hidden":!0};function D({tile:s}){const a=$e[s];return e.jsx(a,{...q})}function L({p:s}){const a=R(s);return e.jsxs(e.Fragment,{children:[e.jsxs("strong",{children:[s.ref," ",s.name]}),e.jsxs("span",{children:[T[s.tile]," · ",s.tracker||s.stage]}),s.prs.length>0&&e.jsx("span",{children:s.prs.map(l=>`#${l.number}`).join(" ")}),a&&e.jsx("span",{children:a}),s.highRisk&&e.jsx("span",{children:"high risk"})]})}const Pe=s=>`${s} ${s===1?"gate":"gates"}`;function Te(s){return[`run by ${s.owner}`,s.target?`target ${s.target}`:"",s.depends.length?`after ${s.depends.join(", ")}`:""].filter(Boolean).join(" · ")}function U({done:s,total:a}){const l=a?Math.round(100*s/a):0;return e.jsxs("div",{className:"rm-bar-wrap",children:[e.jsx("div",{className:"rm-bar",role:"img","aria-label":`${s} of ${a} phases done`,children:e.jsx("i",{style:{width:`${l}%`}})}),e.jsxs("span",{className:"rm-bar-text",children:[s,"/",a," phases · ",l,"%"]})]})}function Re(s,a){const l=document.getElementById(`ms-${s}-${a}`);l instanceof HTMLDetailsElement&&(l.open=!0),l==null||l.scrollIntoView({block:"start"})}function W({m:s,match:a,onOpen:l}){const t=r=>!a||a.phases.has(r.ref),n=s.milestones.length;return e.jsxs("section",{className:"rm-section","data-testid":"rm-timeline","aria-label":"Timeline",children:[e.jsx("h3",{className:"flow-h",children:"Timeline"}),e.jsxs("div",{className:"rm-timeline-grid",style:{"--rm-cols":n},children:[e.jsxs("div",{className:"rm-head-row",children:[e.jsx("div",{className:"rm-cell rm-head rm-lane",children:"Plan / milestone"}),s.milestones.map(r=>e.jsxs("div",{className:"rm-cell rm-head",children:[e.jsx("strong",{children:r.id})," ",e.jsx(v,{status:r.status}),e.jsx("span",{className:"rm-sub",children:r.depends.length?`after ${r.depends.join(", ")}`:"starts first"}),r.blockers.length>0&&e.jsx("span",{className:"rm-gate-count",children:Pe(r.blockers.length)})]},r.id))]}),s.lanes.map(r=>e.jsxs("div",{className:"rm-row",children:[e.jsxs("div",{className:"rm-cell rm-lane",children:[r.plan,e.jsxs("span",{className:"rm-sub",children:[r.done,"/",r.total," done"]})]}),s.milestones.map(i=>e.jsx("div",{className:"rm-cell",children:i.phases.filter(o=>o.plan===r.plan&&t(o)).map(o=>e.jsx($,{content:e.jsx(L,{p:o}),children:e.jsxs("button",{type:"button",className:"rm-tile","data-state":o.tile,"data-risk":o.highRisk?"high":void 0,onClick:h=>l(o.ref,h.currentTarget),children:[e.jsx(D,{tile:o.tile}),s.kind!=="plan"&&e.jsx("b",{className:"mono",children:o.num}),e.jsx("span",{children:o.name}),e.jsx("span",{className:"sr-only",children:T[o.tile]}),o.highRisk&&e.jsx("i",{className:"rm-risk","aria-label":"high risk"})]})},o.ref))},i.id))]},r.plan)),s.blockers.length>0&&e.jsxs("div",{className:"rm-row",children:[e.jsx("div",{className:"rm-cell rm-lane",children:"Owner and outside"}),s.milestones.map(r=>e.jsx("div",{className:"rm-cell",children:r.blockers.map((i,o)=>e.jsx($,{content:`${i.type}: ${i.reason}`,children:e.jsxs("div",{className:"rm-gate-note",tabIndex:0,children:[i.type,": ",i.reason.length>60?`${i.reason.slice(0,60)}…`:i.reason]})},o))},r.id))]})]}),e.jsx("div",{className:"rm-timeline-list","data-testid":"rm-timeline-list",children:s.milestones.map(r=>e.jsxs("div",{children:[e.jsxs("h4",{className:"rm-list-h",children:[r.id," ",e.jsx(v,{status:r.status})]}),r.phases.filter(t).map(i=>e.jsx($,{content:e.jsx(L,{p:i}),children:e.jsxs("button",{type:"button",className:"rm-tile","data-state":i.tile,"data-risk":i.highRisk?"high":void 0,onClick:o=>l(i.ref,o.currentTarget),children:[e.jsx(D,{tile:i.tile}),s.kind!=="plan"&&e.jsxs("b",{className:"mono",children:[i.plan," ",i.num]}),e.jsx("span",{children:i.name}),e.jsx("span",{className:"sr-only",children:T[i.tile]}),i.highRisk&&e.jsx("i",{className:"rm-risk","aria-label":"high risk"})]})},i.ref))]},r.id))}),e.jsxs("div",{className:"rm-legend","data-testid":"rm-legend",children:[e.jsx("span",{children:"to do · in progress · done · moved · blocked: each tile has an icon and a label"}),e.jsx("span",{children:"red dot = Risk high (stops for review)"})]})]})}function G({m:s,match:a,onOpen:l}){return e.jsxs("section",{className:"rm-section","data-testid":"rm-milestones","aria-label":"Milestones and phases",children:[e.jsx("h3",{className:"flow-h",children:"Milestones and phases"}),s.milestones.filter(t=>!a||a.milestones.has(t.id)).map(t=>e.jsxs("details",{className:"rm-ms",id:`ms-${s.slug}-${t.id}`,open:a?!0:void 0,children:[e.jsxs("summary",{children:[e.jsx("strong",{children:t.id})," ",e.jsx(v,{status:t.status}),s.kind!=="plan"&&e.jsx("span",{className:"rm-sub",children:Te(t)})]}),t.phases.length===0?e.jsx("p",{className:"col-empty",children:"No build phases."}):e.jsx("ul",{className:"flow-list",children:t.phases.filter(n=>!a||a.phases.has(n.ref)).map(n=>e.jsxs("li",{className:"flow-row","data-testid":"rm-phase","data-state":n.tile,children:[e.jsxs("div",{className:"flow-row-head",children:[e.jsx("code",{className:"mono",children:n.ref}),e.jsx("button",{type:"button",className:"flow-title rm-open",onClick:r=>l(n.ref,r.currentTarget),children:n.name}),e.jsx(B,{phase:n})]}),e.jsxs("span",{className:"flow-why",children:[R(n)||"no model, lane or risk recorded",n.tracker?` · Tracker: ${n.tracker}`:""]})]},n.ref))})]},`${t.id}-${a?"q":"n"}`))]})}const J=(s,a,l)=>s==="site"?l?`#/roadmap/${encodeURIComponent(l)}`:"#/":ne(a,"roadmap",l);function Ce({repo:s,m:a,variant:l}){const t=M(s);return e.jsxs("div",{className:"rm-list-view",children:[(a.errors.length>0||a.repoError||a.roadmaps.some(n=>n.detailError))&&e.jsxs("div",{className:"lane-note","data-testid":"rm-errors",children:[a.repoError&&e.jsxs("div",{children:["Could not read this repo: ",a.repoError]}),a.errors.map(n=>e.jsxs("div",{children:["Could not read ",n.slug,": ",n.error]},n.slug)),a.roadmaps.filter(n=>n.detailError).map(n=>e.jsxs("div",{children:["Detail unavailable for ",n.slug,": ",n.detailError]},n.slug))]}),e.jsx("ul",{className:"flow-list rm-cards","data-testid":"rm-list","aria-label":"Roadmaps",children:a.roadmaps.map(n=>{const r=re(n);return e.jsx("li",{children:e.jsxs("a",{className:`rm-rcard rm-card tone-${r.tone}`,"data-testid":"rm-card",href:J(l,t,n.slug),children:[e.jsxs("span",{children:[e.jsx("strong",{children:r.slug})," ",e.jsx("span",{className:"rm-sub",children:r.branch??""})]}),e.jsx(U,{done:r.phasesDone,total:r.phasesTotal}),e.jsxs("span",{className:"rm-sub",children:[r.milestonesDone,"/",r.milestonesTotal," milestones"]}),e.jsx("span",{className:"rm-dots",children:r.dots.map(i=>e.jsx("span",{className:`rm-dot s-${i.status}`,children:i.id},i.id))}),e.jsxs("span",{className:"rm-sub",children:["next: ",r.next,l==="hub"?` · runner: ${r.runner}`:"",r.gates>0?` · ${r.gates} open gate${r.gates===1?"":"s"}`:""]})]})},n.slug)})})]})}const Se=s=>new Date(s*1e3).toISOString().slice(0,10);function Ee({plans:s}){const[a,l]=u.useState(!1);if(s.length===0)return null;const t=a?s:s.slice(0,C);return e.jsxs("details",{className:"rm-done","data-testid":"rm-done",children:[e.jsxs("summary",{className:"rm-done-sum",children:[e.jsx("span",{className:"rm-plan-title",children:"Done plans"}),e.jsx("span",{className:"rm-sub",children:s.length})]}),e.jsx("ul",{className:"rm-done-list",children:t.map(n=>e.jsxs("li",{className:"rm-done-row","data-testid":"rm-done-row",children:[e.jsx($,{content:e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"mono",children:n.path}),e.jsxs("span",{children:["closed ",n.closedAt===null?"date unknown":new Date(n.closedAt*1e3).toISOString()]}),e.jsxs("span",{children:[n.phases," ",n.phases===1?"phase":"phases",n.pr?` · #${n.pr.number}`:""]})]}),children:e.jsx("span",{className:"rm-done-title",tabIndex:0,children:n.title})}),e.jsxs("span",{className:"rm-done-meta",children:[e.jsx("span",{className:"rm-done-date",children:n.closedAt===null?"date unknown":Se(n.closedAt)}),e.jsxs("span",{children:[n.phases," ",n.phases===1?"phase":"phases"]}),n.pr&&(n.pr.url?e.jsxs("a",{className:"rm-pr mono","data-testid":"rm-done-pr",href:n.pr.url,target:"_blank",rel:"noreferrer noopener",children:["#",n.pr.number]}):e.jsxs("span",{className:"rm-pr mono","data-testid":"rm-done-pr",children:["#",n.pr.number]}))]})]},n.path))}),!a&&s.length>C&&e.jsxs("button",{type:"button",className:"btn","data-testid":"rm-done-all",onClick:()=>l(!0),children:["Show all ",s.length]})]})}const De={todo:"todo","in-progress":"prog",blocked:"block",done:"done",moved:"done"},O=s=>s.replace(/^☐\s*/u,"").trim();function Le({plan:s}){if(s.rows.length===0)return null;const a=le(s);return e.jsxs("span",{className:"rm-pkpis","data-testid":"rm-plan-kpis",children:[e.jsxs("span",{className:"rm-pkpi",children:[e.jsxs("span",{className:"rm-pkpi-num",children:[a.done," / ",a.total]})," ","done"]}),e.jsx("span",{className:"rm-pbar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":a.pct,"aria-label":"Share of rows done",children:e.jsx("span",{style:{width:`${a.pct}%`}})}),e.jsxs("span",{className:"rm-pkpi rm-pkpi-pct",children:[a.pct," %"]}),e.jsxs("span",{className:`rm-pkpi${a.inProgress?" tone-prog":""}`,children:[e.jsx("span",{className:"rm-pkpi-num",children:a.inProgress})," in progress"]}),e.jsxs("span",{className:`rm-pkpi${a.blocked?" tone-block":""}`,children:[e.jsx("span",{className:"rm-pkpi-num",children:a.blocked})," blocked"]}),e.jsxs("span",{className:"rm-pkpi",children:[e.jsx("span",{className:"rm-pkpi-num",children:a.todo})," to do"]})]})}function Oe({plan:s}){if(s.rows.length===0)return e.jsx("p",{className:"col-empty","data-testid":"rm-plan-board",children:"This plan has no Tracker table."});const a=te(s);return e.jsx("div",{className:"rm-cols rm-cols-4","data-testid":"rm-plan-board",children:ie.map(l=>e.jsxs("div",{"data-col":l.key,children:[e.jsxs("h4",{className:"rm-list-h",children:[l.label," · ",a[l.key].length]}),a[l.key].length===0?e.jsx("p",{className:"col-empty",children:"none"}):a[l.key].map((t,n)=>e.jsxs("div",{className:`rm-rcard rm-pcard tone-${De[t.state]}${t.state==="moved"?" is-moved":""}`,children:[e.jsx("strong",{children:t.phase}),O(t.status)?e.jsx("span",{className:"rm-sub",children:O(t.status)}):null]},`${t.phase}-${n}`))]},l.key))})}function Ie({m:s,plan:a,repo:l,variant:t,initialView:n}){const[r,i]=z(n),{open:o,panel:h}=K({m:s,pool:[a],repo:l,variant:t}),x=s.kpis;return e.jsxs("div",{className:"rm-detail","data-testid":"rm-detail",children:[s.detailError&&e.jsxs("div",{className:"lane-note","data-testid":"rm-errors",children:["Roadmap detail is unavailable: ",s.detailError,". Phase names, Tracker cells and PR links are missing."]}),e.jsx("header",{"data-testid":"rm-header",children:e.jsxs("p",{className:"page-subtitle",children:[x.phasesDone," of ",x.phasesTotal," phases done"]})}),e.jsx(H,{view:r,choose:i}),e.jsxs("section",{className:"rm-kpis kpi-strip","data-testid":"rm-kpis","aria-label":"Summary",children:[e.jsxs("div",{className:"kpi-tile",children:[e.jsx("span",{className:"kpi-label",children:"Phases done"}),e.jsxs("span",{className:"kpi-num",children:[x.phasesDone," / ",x.phasesTotal]})]}),e.jsxs("div",{className:"kpi-tile",children:[e.jsx("span",{className:"kpi-label",children:"In progress"}),e.jsx("span",{className:"kpi-num",children:x.inProgress.length}),e.jsx("span",{className:"kpi-sub tone-muted",children:x.inProgress.join(", ")||"none"})]})]}),r==="timeline"?e.jsx(W,{m:s,match:null,onOpen:o}):e.jsx(Oe,{plan:a}),e.jsx(G,{m:s,match:null,onOpen:o}),h]})}function Me(s){const[a]=u.useState(()=>ce(s));return a}function _e({plan:s,repo:a,variant:l,initialView:t,defaultOpen:n}){const[r,i]=u.useState(n);return e.jsxs("details",{className:"rm-plan","aria-label":s.title,open:r||void 0,onToggle:o=>i(o.currentTarget.open),children:[e.jsxs("summary",{className:"rm-plan-sum",children:[e.jsx("span",{className:"rm-plan-title",children:s.title}),e.jsxs("span",{className:"rm-sub",children:[s.open," open"]}),s.overlay&&e.jsx("span",{className:"rm-plan-branch","data-testid":"rm-plan-branch",children:oe(s.overlay)}),e.jsx(Le,{plan:s}),e.jsx("span",{className:"rm-plan-only",children:"plan only, no runner"})]}),r&&e.jsx(Ie,{m:de(a,s),plan:s,repo:a,variant:l,initialView:t})]})}function Q({plans:s,repo:a,variant:l,initialView:t,initialOpenAll:n}){const r=Me(s);return e.jsx(e.Fragment,{children:s.map(i=>e.jsx(_e,{plan:i,repo:a,variant:l,initialView:t,defaultOpen:n||i.path===r},i.path))})}function Ae({plans:s,repo:a,variant:l,initialView:t,initialOpenAll:n=!1}){return e.jsxs("div",{className:"flow","data-testid":"rm-plans",children:[e.jsx("p",{className:"page-subtitle",children:"No roadmap here. These plans are active. Click a plan to open or close it."}),e.jsx(Q,{plans:s,repo:a,variant:l,initialView:t,initialOpenAll:n})]})}function Fe({plans:s,repo:a,variant:l,initialView:t,initialOpenAll:n=!1}){return s.length===0?null:e.jsxs("div",{className:"flow","data-testid":"rm-other-plans",children:[e.jsx("h2",{className:"rm-title",children:"Plans with no roadmap"}),e.jsx(Q,{plans:s,repo:a,variant:l,initialView:t,initialOpenAll:n})]})}function Ve({m:s,repo:a,crumbHref:l,match:t,variant:n,initialView:r,plans:i}){const[o,h]=z(r),{open:x,panel:g}=K({m:s,pool:i??[],repo:a,variant:n}),d=s.kpis,k=c=>()=>Re(s.slug,c);return e.jsxs("div",{className:"rm-detail","data-testid":"rm-detail",children:[e.jsxs("nav",{className:"rm-crumbs","data-testid":"rm-crumbs","aria-label":"Breadcrumb",children:[l?e.jsx("a",{href:l,children:"Roadmaps"}):e.jsx("span",{children:"Roadmaps"})," › ",e.jsx("span",{children:he(a)})," › ",e.jsx("strong",{children:s.slug})]}),s.detailError&&e.jsxs("div",{className:"lane-note","data-testid":"rm-errors",children:["Roadmap detail is unavailable: ",s.detailError,". Phase names, Tracker cells and PR links are missing."]}),e.jsxs("header",{"data-testid":"rm-header",children:[e.jsxs("h2",{className:"rm-title",children:["Roadmap ",s.slug]}),e.jsxs("p",{className:"page-subtitle",children:[d.milestonesDone," of ",d.milestonesTotal," milestones · ",d.phasesDone," of ",d.phasesTotal," phases done",s.branch?e.jsxs(e.Fragment,{children:[" · branch ",e.jsx("code",{children:s.branch})]}):null,s.originCommit?e.jsxs(e.Fragment,{children:[" · origin ",e.jsx("code",{children:s.originCommit})]}):null]}),s.lanes.length>0&&e.jsx("div",{className:"rm-chips","data-testid":"rm-chips",children:s.lanes.map(c=>e.jsxs("span",{className:"rm-chip",children:[e.jsx("b",{children:c.plan})," ",e.jsxs("span",{className:"mono",children:[c.done,"/",c.total," phases"]})]},c.plan))})]}),e.jsx(H,{view:o,choose:h}),e.jsxs("section",{className:`rm-section rm-waiting${s.gates.length?" has":""}`,"data-testid":"rm-waiting","aria-label":"Waiting for you",children:[e.jsx("h3",{className:"flow-h",children:"Waiting for you"}),s.gates.length===0?e.jsx("p",{className:"col-empty",children:"No owner gate is waiting."}):e.jsx("ul",{className:"flow-list",children:s.gates.map((c,m)=>e.jsxs("li",{className:"flow-row",children:[e.jsxs("div",{className:"flow-row-head",children:[e.jsx("strong",{children:c.milestone}),e.jsx("span",{className:"chip chip-owner-gate",children:"owner-gate"})]}),e.jsx("span",{className:"flow-why",children:c.reason}),c.check&&e.jsx("code",{className:"mono",children:c.check})]},m))})]}),e.jsxs("section",{className:"rm-kpis kpi-strip","data-testid":"rm-kpis","aria-label":"Summary",children:[e.jsxs("div",{className:"kpi-tile",children:[e.jsx("span",{className:"kpi-label",children:"Phases done"}),e.jsxs("span",{className:"kpi-num",children:[d.phasesDone," / ",d.phasesTotal]})]}),e.jsxs("div",{className:"kpi-tile",children:[e.jsx("span",{className:"kpi-label",children:"Milestones done"}),e.jsxs("span",{className:"kpi-num",children:[d.milestonesDone," / ",d.milestonesTotal]})]}),e.jsxs("div",{className:"kpi-tile",children:[e.jsx("span",{className:"kpi-label",children:"In progress"}),e.jsx("span",{className:"kpi-num",children:d.inProgress.length}),e.jsx("span",{className:"kpi-sub tone-muted",children:d.inProgress.join(", ")||"none"})]}),e.jsxs("div",{className:"kpi-tile",children:[e.jsx("span",{className:"kpi-label",children:"High-risk phases"}),e.jsx("span",{className:`kpi-num${d.highRisk?" bad":""}`,children:d.highRisk})]}),e.jsxs("div",{className:"kpi-tile deploy",children:[e.jsx("span",{className:"kpi-label",children:"Next batch for the runner"}),e.jsx("span",{className:"kpi-val",children:d.next})]})]}),e.jsxs("section",{className:"rm-section","data-testid":"rm-flow","aria-label":"Flow",children:[e.jsx("h3",{className:"flow-h",children:"Flow"}),e.jsx("div",{className:"rm-chain",children:s.milestones.map((c,m)=>e.jsxs("span",{className:"rm-chain-item",children:[m>0&&e.jsx("span",{"aria-hidden":"true",children:"→"}),e.jsxs("button",{type:"button",className:`rm-node tone-${c.tone}`,onClick:k(c.id),children:[e.jsx("b",{children:c.id})," ",e.jsx(v,{status:c.status}),e.jsxs("span",{className:"rm-sub",children:[c.depends.length?`after ${c.depends.join(", ")}`:"starts first"," · ",c.done,"/",c.total," ph"]})]})]},c.id))})]}),o==="timeline"?e.jsx(W,{m:s,match:t,onOpen:x}):e.jsxs("section",{className:"rm-section","data-testid":"rm-board","aria-label":"Now, next, later",children:[e.jsx("h3",{className:"flow-h",children:"Now, next, later"}),e.jsx("div",{className:"rm-cols",children:["now","next","later"].map(c=>e.jsxs("div",{children:[e.jsx("h4",{className:"rm-list-h",children:c[0].toUpperCase()+c.slice(1)}),s.board[c].length===0?e.jsx("p",{className:"col-empty",children:"none"}):s.board[c].map(m=>e.jsxs("button",{type:"button",className:`rm-rcard tone-${m.tone}`,onClick:k(m.id),children:[e.jsxs("span",{children:[e.jsx("strong",{children:m.id})," ",e.jsx(v,{status:m.status})]}),e.jsx(U,{done:m.done,total:m.total}),m.blockers.map((w,p)=>e.jsx("span",{className:"rm-sub",children:w.type},p))]},m.id))]},c))})]}),e.jsxs("section",{className:"rm-section","data-testid":"rm-gates","aria-label":"Gates and blockers",children:[e.jsxs("h3",{className:"flow-h",children:["Gates and blockers · ",s.blockers.length," open"]}),s.blockers.length===0?e.jsx("p",{className:"col-empty",children:"No blockers."}):e.jsx("ul",{className:"flow-list",children:s.blockers.map((c,m)=>e.jsxs("li",{className:"flow-row",children:[e.jsxs("div",{className:"flow-row-head",children:[e.jsx("strong",{children:c.milestone}),e.jsx("span",{className:`chip ${c.type==="owner-gate"?"chip-owner-gate":"chip-hub"}`,children:c.type})]}),e.jsx("span",{className:"flow-why",children:c.reason}),c.check&&e.jsx("code",{className:"mono",children:c.check})]},m))})]}),e.jsx(G,{m:s,match:t,onOpen:x}),n==="hub"&&e.jsxs("section",{className:"rm-section","data-testid":"rm-runner","aria-label":"Runner",children:[e.jsx("h3",{className:"flow-h",children:"Runner"}),s.runner.running?e.jsxs("p",{children:["Running batch ",e.jsx("code",{children:s.runner.running.batch}),s.runner.running.since?` since ${S(s.runner.running.since)}`:"",s.runner.running.host?` (host ${s.runner.running.host}${s.runner.running.pid?`, pid ${s.runner.running.pid}`:""})`:"","."]}):e.jsx("p",{className:"col-empty",children:"No runner holds this roadmap now."}),s.runner.staleBatch!==null&&e.jsxs("p",{children:["A stale runner lock remains (batch ",e.jsx("code",{children:s.runner.staleBatch}),"): the runner that held it is gone."]}),s.runner.lastStop&&e.jsxs("p",{children:["Last stop record: ",s.runner.lastStopAt?`${S(s.runner.lastStopAt)}: `:"",s.runner.lastStop,"."]}),s.runner.errors.map(c=>e.jsxs("p",{className:"tone-warn",children:["Could not read ",c,"."]},c)),s.runner.next&&e.jsxs("p",{children:["Next batch: ",e.jsx("code",{children:s.runner.next})]})]}),g]})}function ze({repo:s,slug:a,stale:l=!1,lastOkAt:t=null,variant:n="hub",initialView:r,initialOpenAll:i=!1,nowMs:o}){const h=me(s),[x,g]=u.useState(""),d=u.useRef(null);u.useEffect(()=>{const b=N=>{var f;N.key==="/"&&!I(N.target)&&!N.ctrlKey&&!N.metaKey&&!N.altKey&&(N.preventDefault(),(f=d.current)==null||f.focus())};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[]);const k=M(s),c=l&&e.jsxs("p",{className:"lane-note","data-testid":"rm-stale",children:["Roadmap data is old. Last good read ",pe(t),". The numbers below are greyed."]}),m=n==="hub"?xe(s.plans,o??Date.now()):null,w=m&&e.jsx("p",{className:`page-subtitle rm-source${m.old?" tone-warn":""}`,"data-testid":"rm-source",children:m.text});let p;if(h.mode==="none")p=e.jsxs("div",{className:"notice","data-testid":"rm-none",children:[e.jsx("h2",{className:"rm-title",children:ge}),e.jsxs("p",{children:["Create one with ",e.jsx("code",{className:"cmd",children:ke}),"."]})]});else if(h.mode==="error")p=e.jsxs("div",{className:"lane-note","data-testid":"rm-errors",children:["Could not read this repo: ",h.repoError]});else if(h.mode==="plans")p=e.jsx(Ae,{plans:h.plans,repo:s,variant:n,initialView:r,initialOpenAll:i});else{const b=a?h.roadmaps.find(N=>N.slug===a):n==="hub"&&ue(h)?h.roadmaps[0]:void 0;if(b){const N=h.roadmaps.length+h.errors.length>1,f=je(b,x);p=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"rm-searchbar",children:[e.jsxs("label",{className:"rm-search",children:[e.jsx(Ne,{...q}),e.jsx("span",{className:"sr-only",children:"Search this roadmap"}),e.jsx("input",{ref:d,type:"search","data-testid":"rm-search",placeholder:"Search phases, PRs, milestones (press /)",value:x,onChange:j=>g(j.target.value),onKeyDown:j=>{j.key==="Escape"&&g("")}})]}),e.jsx("span",{className:"rm-match","data-testid":"rm-match-count","aria-live":"polite",children:f?`${f.count} ${f.count===1?"match":"matches"}`:""})]}),e.jsx(Ve,{m:b,plans:h.plans,repo:s,crumbHref:N?J(n,k):null,match:f,variant:n,initialView:r})]})}else p=e.jsxs(e.Fragment,{children:[a&&e.jsxs("p",{className:"lane-note","data-testid":"rm-missing",children:["No roadmap named ",a," in this repo."]}),e.jsx(Ce,{repo:s,m:h,variant:n})]})}return e.jsxs("div",{className:`rm${l?" stale":""}`,"data-testid":"roadmap-tab",children:[c,w,p,h.mode==="roadmaps"?e.jsx(Fe,{plans:h.otherPlans,repo:s,variant:n,initialView:r,initialOpenAll:i}):null,h.mode!=="error"?e.jsx(Ee,{plans:h.done}):null]})}export{qe as collectorStale,ze as default};
21
+ */const V={name:"loader",size:24,node:[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]};V.node;const ye=P(V);function B({phase:s}){return e.jsxs(e.Fragment,{children:[s.prs.map(a=>a.url?e.jsxs("a",{className:"rm-pr mono","data-testid":"rm-pr",href:a.url,target:"_blank",rel:"noreferrer noopener",children:["#",a.number]},a.number):e.jsxs("span",{className:"rm-pr mono","data-testid":"rm-pr",children:["#",a.number]},a.number)),e.jsx("span",{className:`rm-stage tile-${s.tile}`,"data-testid":"rm-stage",children:s.stage})]})}function v({status:s}){const a=s==="done"||s==="not-needed";return e.jsx("span",{className:`chip ${a?"chip-resolved":s==="in-progress"?"chip-waiting":"chip-hub"}`,children:s})}function ve({detail:s,note:a=null,variant:l,onClose:t}){const n=u.useId(),r=u.useRef(null);if(u.useEffect(()=>{var g;(g=r.current)==null||g.focus()},[s==null?void 0:s.phase.ref]),!s)return null;const{title:i,text:o,phase:h}=s,x=R(h);return e.jsxs("aside",{className:"rm-panel","data-testid":"rm-panel",role:"dialog","aria-modal":"false","aria-labelledby":n,children:[e.jsxs("h3",{id:n,"data-testid":"rm-panel-title",tabIndex:-1,ref:r,children:[h.ref," ",i]}),e.jsx("button",{type:"button",className:"rm-panel-close","data-testid":"rm-panel-close","aria-label":"Close",onClick:t,children:"×"}),e.jsx(v,{status:h.tile}),h.tracker&&e.jsx("p",{"data-testid":"rm-panel-tracker",children:h.tracker}),x&&e.jsx("p",{"data-testid":"rm-panel-meta",children:x}),e.jsx("div",{className:"rm-panel-prs",children:e.jsx(B,{phase:h})}),l!=="site"&&(o!==null?e.jsx("pre",{className:"rm-panel-text","data-testid":"rm-panel-text",children:o}):a==="loading"?e.jsx("p",{"data-testid":"rm-panel-note",children:"Loading the plan section…"}):a==="error"?e.jsx("p",{"data-testid":"rm-panel-note",children:"Could not load the plan section."}):e.jsx("p",{"data-testid":"rm-panel-empty",children:"The plan has no section for this phase."}))]})}function E(){try{return typeof window<"u"?window.localStorage:null}catch{return null}}function z(s){const[a,l]=u.useState(()=>s??Y(E()));return[a,n=>()=>{l(n),se(E(),n)}]}function H({view:s,choose:a}){return e.jsxs("div",{className:"rm-view",role:"group","aria-label":"View","data-testid":"rm-view",children:[e.jsx("button",{type:"button","data-testid":"rm-view-timeline","aria-pressed":s==="timeline",onClick:a("timeline"),children:"Timeline"}),e.jsx("button",{type:"button","data-testid":"rm-view-board","aria-pressed":s==="board",onClick:a("board"),children:"Board"})]})}function K({m:s,pool:a,repo:l,variant:t}){const[n,r]=u.useState(null),[i,o]=u.useState(null),[h,x]=u.useState(0),g=u.useRef(null),d=n?Z(s,a,n):null,k=u.useContext(ee),c=d==null?void 0:d.planPath,m=d==null?void 0:d.key,w=d!==null&&t!=="site"&&d.hasSection&&d.text===null&&d.planPath!==null&&k!==null;u.useEffect(()=>{if(!w||!n||!d||!d.planPath||!k)return;let j=!0;return k(l.path,d.planPath,d.key).then(y=>{j&&o({ref:n,text:y.text||null,error:!1})},()=>{j&&o({ref:n,text:null,error:!0})}),()=>{j=!1}},[n,w,k,l.path,c,m,h]);const p=i&&i.ref===n?i:null,b=(j,y)=>{if(g.current=y,j===n){p!=null&&p.error&&(o(null),x(X=>X+1));return}o(null),r(j)},N=()=>{var j;o(null),r(null),(j=g.current)==null||j.focus()};u.useEffect(()=>{if(n===null)return;const j=y=>{I(y.target)||y.key==="Escape"&&N()};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[n]);const f=e.jsx(ve,{detail:d?{title:d.title,text:d.text??(p==null?void 0:p.text)??null,phase:d.phase}:null,note:w&&!p?"loading":p!=null&&p.error?"error":null,variant:t,onClose:N});return{open:b,panel:f}}const $e={todo:we,"in-progress":ye,done:be,moved:fe,blocked:ae},U={size:14,"aria-hidden":!0};function D({tile:s}){const a=$e[s];return e.jsx(a,{...U})}function L({p:s}){const a=R(s);return e.jsxs(e.Fragment,{children:[e.jsxs("strong",{children:[s.ref," ",s.name]}),e.jsxs("span",{children:[T[s.tile]," · ",s.tracker||s.stage]}),s.prs.length>0&&e.jsx("span",{children:s.prs.map(l=>`#${l.number}`).join(" ")}),a&&e.jsx("span",{children:a}),s.highRisk&&e.jsx("span",{children:"high risk"})]})}const Pe=s=>`${s} ${s===1?"gate":"gates"}`;function Te(s){return[`run by ${s.owner}`,s.target?`target ${s.target}`:"",s.depends.length?`after ${s.depends.join(", ")}`:""].filter(Boolean).join(" · ")}function q({done:s,total:a}){const l=a?Math.round(100*s/a):0;return e.jsxs("div",{className:"rm-bar-wrap",children:[e.jsx("div",{className:"rm-bar",role:"img","aria-label":`${s} of ${a} phases done`,children:e.jsx("i",{style:{width:`${l}%`}})}),e.jsxs("span",{className:"rm-bar-text",children:[s,"/",a," phases · ",l,"%"]})]})}function Re(s,a){const l=document.getElementById(`ms-${s}-${a}`);l instanceof HTMLDetailsElement&&(l.open=!0),l==null||l.scrollIntoView({block:"start"})}function W({m:s,match:a,onOpen:l}){const t=r=>!a||a.phases.has(r.ref),n=s.milestones.length;return e.jsxs("section",{className:"rm-section","data-testid":"rm-timeline","aria-label":"Timeline",children:[e.jsx("h3",{className:"flow-h",children:"Timeline"}),e.jsxs("div",{className:"rm-timeline-grid",style:{"--rm-cols":n},children:[e.jsxs("div",{className:"rm-head-row",children:[e.jsx("div",{className:"rm-cell rm-head rm-lane",children:"Plan / milestone"}),s.milestones.map(r=>e.jsxs("div",{className:"rm-cell rm-head",children:[e.jsx("strong",{children:r.id})," ",e.jsx(v,{status:r.status}),e.jsx("span",{className:"rm-sub",children:r.depends.length?`after ${r.depends.join(", ")}`:"starts first"}),r.blockers.length>0&&e.jsx("span",{className:"rm-gate-count",children:Pe(r.blockers.length)})]},r.id))]}),s.lanes.map(r=>e.jsxs("div",{className:"rm-row",children:[e.jsxs("div",{className:"rm-cell rm-lane",children:[r.plan,e.jsxs("span",{className:"rm-sub",children:[r.done,"/",r.total," done"]})]}),s.milestones.map(i=>e.jsx("div",{className:"rm-cell",children:i.phases.filter(o=>o.plan===r.plan&&t(o)).map(o=>e.jsx($,{content:e.jsx(L,{p:o}),children:e.jsxs("button",{type:"button",className:"rm-tile","data-state":o.tile,"data-risk":o.highRisk?"high":void 0,onClick:h=>l(o.ref,h.currentTarget),children:[e.jsx(D,{tile:o.tile}),s.kind!=="plan"&&e.jsx("b",{className:"mono",children:o.num}),e.jsx("span",{children:o.name}),e.jsx("span",{className:"sr-only",children:T[o.tile]}),o.highRisk&&e.jsx("i",{className:"rm-risk","aria-label":"high risk"})]})},o.ref))},i.id))]},r.plan)),s.blockers.length>0&&e.jsxs("div",{className:"rm-row",children:[e.jsx("div",{className:"rm-cell rm-lane",children:"Owner and outside"}),s.milestones.map(r=>e.jsx("div",{className:"rm-cell",children:r.blockers.map((i,o)=>e.jsx($,{content:`${i.type}: ${i.reason}`,children:e.jsxs("div",{className:"rm-gate-note",tabIndex:0,children:[i.type,": ",i.reason.length>60?`${i.reason.slice(0,60)}…`:i.reason]})},o))},r.id))]})]}),e.jsx("div",{className:"rm-timeline-list","data-testid":"rm-timeline-list",children:s.milestones.map(r=>e.jsxs("div",{children:[e.jsxs("h4",{className:"rm-list-h",children:[r.id," ",e.jsx(v,{status:r.status})]}),r.phases.filter(t).map(i=>e.jsx($,{content:e.jsx(L,{p:i}),children:e.jsxs("button",{type:"button",className:"rm-tile","data-state":i.tile,"data-risk":i.highRisk?"high":void 0,onClick:o=>l(i.ref,o.currentTarget),children:[e.jsx(D,{tile:i.tile}),s.kind!=="plan"&&e.jsxs("b",{className:"mono",children:[i.plan," ",i.num]}),e.jsx("span",{children:i.name}),e.jsx("span",{className:"sr-only",children:T[i.tile]}),i.highRisk&&e.jsx("i",{className:"rm-risk","aria-label":"high risk"})]})},i.ref))]},r.id))}),e.jsxs("div",{className:"rm-legend","data-testid":"rm-legend",children:[e.jsx("span",{children:"to do · in progress · done · moved · blocked: each tile has an icon and a label"}),e.jsx("span",{children:"red dot = Risk high (stops for review)"})]})]})}function G({m:s,match:a,onOpen:l}){return e.jsxs("section",{className:"rm-section","data-testid":"rm-milestones","aria-label":"Milestones and phases",children:[e.jsx("h3",{className:"flow-h",children:"Milestones and phases"}),s.milestones.filter(t=>!a||a.milestones.has(t.id)).map(t=>e.jsxs("details",{className:"rm-ms",id:`ms-${s.slug}-${t.id}`,open:a?!0:void 0,children:[e.jsxs("summary",{children:[e.jsx("strong",{children:t.id})," ",e.jsx(v,{status:t.status}),s.kind!=="plan"&&e.jsx("span",{className:"rm-sub",children:Te(t)})]}),t.phases.length===0?e.jsx("p",{className:"col-empty",children:"No build phases."}):e.jsx("ul",{className:"flow-list",children:t.phases.filter(n=>!a||a.phases.has(n.ref)).map(n=>e.jsxs("li",{className:"flow-row","data-testid":"rm-phase","data-state":n.tile,children:[e.jsxs("div",{className:"flow-row-head",children:[e.jsx("code",{className:"mono",children:n.ref}),e.jsx("button",{type:"button",className:"flow-title rm-open",onClick:r=>l(n.ref,r.currentTarget),children:n.name}),e.jsx(B,{phase:n})]}),e.jsxs("span",{className:"flow-why",children:[R(n)||"no model, lane or risk recorded",n.tracker?` · Tracker: ${n.tracker}`:""]})]},n.ref))})]},`${t.id}-${a?"q":"n"}`))]})}const J=(s,a,l)=>s==="site"?l?`#/roadmap/${encodeURIComponent(l)}`:"#/":ne(a,"roadmap",l);function Ce({repo:s,m:a,variant:l}){const t=M(s);return e.jsxs("div",{className:"rm-list-view",children:[(a.errors.length>0||a.repoError||a.roadmaps.some(n=>n.detailError))&&e.jsxs("div",{className:"lane-note","data-testid":"rm-errors",children:[a.repoError&&e.jsxs("div",{children:["Could not read this repo: ",a.repoError]}),a.errors.map(n=>e.jsxs("div",{children:["Could not read ",n.slug,": ",n.error]},n.slug)),a.roadmaps.filter(n=>n.detailError).map(n=>e.jsxs("div",{children:["Detail unavailable for ",n.slug,": ",n.detailError]},n.slug))]}),e.jsx("ul",{className:"flow-list rm-cards","data-testid":"rm-list","aria-label":"Roadmaps",children:a.roadmaps.map(n=>{const r=re(n);return e.jsx("li",{children:e.jsxs("a",{className:`rm-rcard rm-card tone-${r.tone}`,"data-testid":"rm-card",href:J(l,t,n.slug),children:[e.jsxs("span",{children:[e.jsx("strong",{children:r.slug})," ",e.jsx("span",{className:"rm-sub",children:r.branch??""})]}),e.jsx(q,{done:r.phasesDone,total:r.phasesTotal}),e.jsxs("span",{className:"rm-sub",children:[r.milestonesDone,"/",r.milestonesTotal," milestones"]}),e.jsx("span",{className:"rm-dots",children:r.dots.map(i=>e.jsx("span",{className:`rm-dot s-${i.status}`,children:i.id},i.id))}),e.jsxs("span",{className:"rm-sub",children:["next: ",r.next,l==="hub"?` · runner: ${r.runner}`:"",r.gates>0?` · ${r.gates} open gate${r.gates===1?"":"s"}`:""]})]})},n.slug)})})]})}const Se=s=>new Date(s*1e3).toISOString().slice(0,10);function Ee({plans:s}){const[a,l]=u.useState(!1);if(s.length===0)return null;const t=a?s:s.slice(0,C);return e.jsxs("details",{className:"rm-done","data-testid":"rm-done",children:[e.jsxs("summary",{className:"rm-done-sum",children:[e.jsx("span",{className:"rm-plan-title",children:"Done plans"}),e.jsx("span",{className:"rm-sub",children:s.length})]}),e.jsx("ul",{className:"rm-done-list",children:t.map(n=>e.jsxs("li",{className:"rm-done-row","data-testid":"rm-done-row",children:[e.jsx($,{content:e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"mono",children:n.path}),e.jsxs("span",{children:["closed ",n.closedAt===null?"date unknown":new Date(n.closedAt*1e3).toISOString()]}),e.jsxs("span",{children:[n.phases," ",n.phases===1?"phase":"phases",n.pr?` · #${n.pr.number}`:""]})]}),children:e.jsx("span",{className:"rm-done-title",tabIndex:0,children:n.title})}),e.jsxs("span",{className:"rm-done-meta",children:[e.jsx("span",{className:"rm-done-date",children:n.closedAt===null?"date unknown":Se(n.closedAt)}),e.jsxs("span",{children:[n.phases," ",n.phases===1?"phase":"phases"]}),n.pr&&(n.pr.url?e.jsxs("a",{className:"rm-pr mono","data-testid":"rm-done-pr",href:n.pr.url,target:"_blank",rel:"noreferrer noopener",children:["#",n.pr.number]}):e.jsxs("span",{className:"rm-pr mono","data-testid":"rm-done-pr",children:["#",n.pr.number]}))]})]},n.path))}),!a&&s.length>C&&e.jsxs("button",{type:"button",className:"btn","data-testid":"rm-done-all",onClick:()=>l(!0),children:["Show all ",s.length]})]})}const De={todo:"todo","in-progress":"prog",blocked:"block",done:"done",moved:"done"},O=s=>s.replace(/^☐\s*/u,"").trim();function Le({plan:s}){if(s.rows.length===0)return null;const a=le(s);return e.jsxs("span",{className:"rm-pkpis","data-testid":"rm-plan-kpis",children:[e.jsxs("span",{className:"rm-pkpi",children:[e.jsxs("span",{className:"rm-pkpi-num",children:[a.done," / ",a.total]})," ","done"]}),e.jsx("span",{className:"rm-pbar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":a.pct,"aria-label":"Share of rows done",children:e.jsx("span",{style:{width:`${a.pct}%`}})}),e.jsxs("span",{className:"rm-pkpi rm-pkpi-pct",children:[a.pct," %"]}),e.jsxs("span",{className:`rm-pkpi${a.inProgress?" tone-prog":""}`,children:[e.jsx("span",{className:"rm-pkpi-num",children:a.inProgress})," in progress"]}),e.jsxs("span",{className:`rm-pkpi${a.blocked?" tone-block":""}`,children:[e.jsx("span",{className:"rm-pkpi-num",children:a.blocked})," blocked"]}),e.jsxs("span",{className:"rm-pkpi",children:[e.jsx("span",{className:"rm-pkpi-num",children:a.todo})," to do"]})]})}function Oe({plan:s}){if(s.rows.length===0)return e.jsx("p",{className:"col-empty","data-testid":"rm-plan-board",children:"This plan has no Tracker table."});const a=te(s);return e.jsx("div",{className:"rm-cols rm-cols-4","data-testid":"rm-plan-board",children:ie.map(l=>e.jsxs("div",{"data-col":l.key,children:[e.jsxs("h4",{className:"rm-list-h",children:[l.label," · ",a[l.key].length]}),a[l.key].length===0?e.jsx("p",{className:"col-empty",children:"none"}):a[l.key].map((t,n)=>e.jsxs("div",{className:`rm-rcard rm-pcard tone-${De[t.state]}${t.state==="moved"?" is-moved":""}`,children:[e.jsx("strong",{children:t.phase}),O(t.status)?e.jsx("span",{className:"rm-sub",children:O(t.status)}):null]},`${t.phase}-${n}`))]},l.key))})}function Ie({m:s,plan:a,repo:l,variant:t,initialView:n}){const[r,i]=z(n),{open:o,panel:h}=K({m:s,pool:[a],repo:l,variant:t}),x=s.kpis;return e.jsxs("div",{className:"rm-detail","data-testid":"rm-detail",children:[s.detailError&&e.jsxs("div",{className:"lane-note","data-testid":"rm-errors",children:["Roadmap detail is unavailable: ",s.detailError,". Phase names, Tracker cells and PR links are missing."]}),e.jsx("header",{"data-testid":"rm-header",children:e.jsxs("p",{className:"page-subtitle",children:[x.phasesDone," of ",x.phasesTotal," phases done"]})}),e.jsx(H,{view:r,choose:i}),e.jsxs("section",{className:"rm-kpis kpi-strip","data-testid":"rm-kpis","aria-label":"Summary",children:[e.jsxs("div",{className:"kpi-tile",children:[e.jsx("span",{className:"kpi-label",children:"Phases done"}),e.jsxs("span",{className:"kpi-num",children:[x.phasesDone," / ",x.phasesTotal]})]}),e.jsxs("div",{className:"kpi-tile",children:[e.jsx("span",{className:"kpi-label",children:"In progress"}),e.jsx("span",{className:"kpi-num",children:x.inProgress.length}),e.jsx("span",{className:"kpi-sub tone-muted",children:x.inProgress.join(", ")||"none"})]})]}),r==="timeline"?e.jsx(W,{m:s,match:null,onOpen:o}):e.jsx(Oe,{plan:a}),e.jsx(G,{m:s,match:null,onOpen:o}),h]})}function Me(s){const[a]=u.useState(()=>ce(s));return a}function _e({plan:s,repo:a,variant:l,initialView:t,defaultOpen:n}){const[r,i]=u.useState(n);return e.jsxs("details",{className:"rm-plan","aria-label":s.title,open:r||void 0,onToggle:o=>i(o.currentTarget.open),children:[e.jsxs("summary",{className:"rm-plan-sum",children:[e.jsx("span",{className:"rm-plan-title",children:s.title}),e.jsxs("span",{className:"rm-sub",children:[s.open," open"]}),s.overlay&&e.jsx("span",{className:"rm-plan-branch","data-testid":"rm-plan-branch",children:oe(s.overlay)}),e.jsx(Le,{plan:s}),e.jsx("span",{className:"rm-plan-only",children:"plan only, no runner"})]}),r&&e.jsx(Ie,{m:de(a,s),plan:s,repo:a,variant:l,initialView:t})]})}function Q({plans:s,repo:a,variant:l,initialView:t,initialOpenAll:n}){const r=Me(s);return e.jsx(e.Fragment,{children:s.map(i=>e.jsx(_e,{plan:i,repo:a,variant:l,initialView:t,defaultOpen:n||i.path===r},i.path))})}function Ae({plans:s,repo:a,variant:l,initialView:t,initialOpenAll:n=!1}){return e.jsxs("div",{className:"flow","data-testid":"rm-plans",children:[e.jsx("p",{className:"page-subtitle",children:"No roadmap here. These plans are active. Click a plan to open or close it."}),e.jsx(Q,{plans:s,repo:a,variant:l,initialView:t,initialOpenAll:n})]})}function Fe({plans:s,repo:a,variant:l,initialView:t,initialOpenAll:n=!1}){return s.length===0?null:e.jsxs("div",{className:"flow","data-testid":"rm-other-plans",children:[e.jsx("h2",{className:"rm-title",children:"Plans with no roadmap"}),e.jsx(Q,{plans:s,repo:a,variant:l,initialView:t,initialOpenAll:n})]})}function Ve({m:s,repo:a,crumbHref:l,match:t,variant:n,initialView:r,plans:i}){const[o,h]=z(r),{open:x,panel:g}=K({m:s,pool:i??[],repo:a,variant:n}),d=s.kpis,k=c=>()=>Re(s.slug,c);return e.jsxs("div",{className:"rm-detail","data-testid":"rm-detail",children:[e.jsxs("nav",{className:"rm-crumbs","data-testid":"rm-crumbs","aria-label":"Breadcrumb",children:[l?e.jsx("a",{href:l,children:"Roadmaps"}):e.jsx("span",{children:"Roadmaps"})," › ",e.jsx("span",{children:he(a)})," › ",e.jsx("strong",{children:s.slug})]}),s.detailError&&e.jsxs("div",{className:"lane-note","data-testid":"rm-errors",children:["Roadmap detail is unavailable: ",s.detailError,". Phase names, Tracker cells and PR links are missing."]}),e.jsxs("header",{"data-testid":"rm-header",children:[e.jsxs("h2",{className:"rm-title",children:["Roadmap ",s.slug]}),e.jsxs("p",{className:"page-subtitle",children:[d.milestonesDone," of ",d.milestonesTotal," milestones · ",d.phasesDone," of ",d.phasesTotal," phases done",s.branch?e.jsxs(e.Fragment,{children:[" · branch ",e.jsx("code",{children:s.branch})]}):null,s.originCommit?e.jsxs(e.Fragment,{children:[" · origin ",e.jsx("code",{children:s.originCommit})]}):null]}),s.lanes.length>0&&e.jsx("div",{className:"rm-chips","data-testid":"rm-chips",children:s.lanes.map(c=>e.jsxs("span",{className:"rm-chip",children:[e.jsx("b",{children:c.plan})," ",e.jsxs("span",{className:"mono",children:[c.done,"/",c.total," phases"]})]},c.plan))})]}),e.jsx(H,{view:o,choose:h}),e.jsxs("section",{className:`rm-section rm-waiting${s.gates.length?" has":""}`,"data-testid":"rm-waiting","aria-label":"Waiting for you",children:[e.jsx("h3",{className:"flow-h",children:"Waiting for you"}),s.gates.length===0?e.jsx("p",{className:"col-empty",children:"No owner gate is waiting."}):e.jsx("ul",{className:"flow-list",children:s.gates.map((c,m)=>e.jsxs("li",{className:"flow-row",children:[e.jsxs("div",{className:"flow-row-head",children:[e.jsx("strong",{children:c.milestone}),e.jsx("span",{className:"chip chip-owner-gate",children:"owner-gate"})]}),e.jsx("span",{className:"flow-why",children:c.reason}),c.check&&e.jsx("code",{className:"mono",children:c.check})]},m))})]}),e.jsxs("section",{className:"rm-kpis kpi-strip","data-testid":"rm-kpis","aria-label":"Summary",children:[e.jsxs("div",{className:"kpi-tile",children:[e.jsx("span",{className:"kpi-label",children:"Phases done"}),e.jsxs("span",{className:"kpi-num",children:[d.phasesDone," / ",d.phasesTotal]})]}),e.jsxs("div",{className:"kpi-tile",children:[e.jsx("span",{className:"kpi-label",children:"Milestones done"}),e.jsxs("span",{className:"kpi-num",children:[d.milestonesDone," / ",d.milestonesTotal]})]}),e.jsxs("div",{className:"kpi-tile",children:[e.jsx("span",{className:"kpi-label",children:"In progress"}),e.jsx("span",{className:"kpi-num",children:d.inProgress.length}),e.jsx("span",{className:"kpi-sub tone-muted",children:d.inProgress.join(", ")||"none"})]}),e.jsxs("div",{className:"kpi-tile",children:[e.jsx("span",{className:"kpi-label",children:"High-risk phases"}),e.jsx("span",{className:`kpi-num${d.highRisk?" bad":""}`,children:d.highRisk})]}),e.jsxs("div",{className:"kpi-tile deploy",children:[e.jsx("span",{className:"kpi-label",children:"Next batch for the runner"}),e.jsx("span",{className:"kpi-val",children:d.next})]})]}),e.jsxs("section",{className:"rm-section","data-testid":"rm-flow","aria-label":"Flow",children:[e.jsx("h3",{className:"flow-h",children:"Flow"}),e.jsx("div",{className:"rm-chain",children:s.milestones.map((c,m)=>e.jsxs("span",{className:"rm-chain-item",children:[m>0&&e.jsx("span",{"aria-hidden":"true",children:"→"}),e.jsxs("button",{type:"button",className:`rm-node tone-${c.tone}`,onClick:k(c.id),children:[e.jsx("b",{children:c.id})," ",e.jsx(v,{status:c.status}),e.jsxs("span",{className:"rm-sub",children:[c.depends.length?`after ${c.depends.join(", ")}`:"starts first"," · ",c.done,"/",c.total," ph"]})]})]},c.id))})]}),o==="timeline"?e.jsx(W,{m:s,match:t,onOpen:x}):e.jsxs("section",{className:"rm-section","data-testid":"rm-board","aria-label":"Now, next, later",children:[e.jsx("h3",{className:"flow-h",children:"Now, next, later"}),e.jsx("div",{className:"rm-cols",children:["now","next","later"].map(c=>e.jsxs("div",{children:[e.jsx("h4",{className:"rm-list-h",children:c[0].toUpperCase()+c.slice(1)}),s.board[c].length===0?e.jsx("p",{className:"col-empty",children:"none"}):s.board[c].map(m=>e.jsxs("button",{type:"button",className:`rm-rcard tone-${m.tone}`,onClick:k(m.id),children:[e.jsxs("span",{children:[e.jsx("strong",{children:m.id})," ",e.jsx(v,{status:m.status})]}),e.jsx(q,{done:m.done,total:m.total}),m.blockers.map((w,p)=>e.jsx("span",{className:"rm-sub",children:w.type},p))]},m.id))]},c))})]}),e.jsxs("section",{className:"rm-section","data-testid":"rm-gates","aria-label":"Gates and blockers",children:[e.jsxs("h3",{className:"flow-h",children:["Gates and blockers · ",s.blockers.length," open"]}),s.blockers.length===0?e.jsx("p",{className:"col-empty",children:"No blockers."}):e.jsx("ul",{className:"flow-list",children:s.blockers.map((c,m)=>e.jsxs("li",{className:"flow-row",children:[e.jsxs("div",{className:"flow-row-head",children:[e.jsx("strong",{children:c.milestone}),e.jsx("span",{className:`chip ${c.type==="owner-gate"?"chip-owner-gate":"chip-hub"}`,children:c.type})]}),e.jsx("span",{className:"flow-why",children:c.reason}),c.check&&e.jsx("code",{className:"mono",children:c.check})]},m))})]}),e.jsx(G,{m:s,match:t,onOpen:x}),n==="hub"&&e.jsxs("section",{className:"rm-section","data-testid":"rm-runner","aria-label":"Runner",children:[e.jsx("h3",{className:"flow-h",children:"Runner"}),s.runner.running?e.jsxs("p",{children:["Running batch ",e.jsx("code",{children:s.runner.running.batch}),s.runner.running.since?` since ${S(s.runner.running.since)}`:"",s.runner.running.host?` (host ${s.runner.running.host}${s.runner.running.pid?`, pid ${s.runner.running.pid}`:""})`:"","."]}):e.jsx("p",{className:"col-empty",children:"No runner holds this roadmap now."}),s.runner.staleBatch!==null&&e.jsxs("p",{children:["A stale runner lock remains (batch ",e.jsx("code",{children:s.runner.staleBatch}),"): the runner that held it is gone."]}),s.runner.lastStop&&e.jsxs("p",{children:["Last stop record: ",s.runner.lastStopAt?`${S(s.runner.lastStopAt)}: `:"",s.runner.lastStop,"."]}),s.runner.errors.map(c=>e.jsxs("p",{className:"tone-warn",children:["Could not read ",c,"."]},c)),s.runner.next&&e.jsxs("p",{children:["Next batch: ",e.jsx("code",{children:s.runner.next})]})]}),g]})}function ze({repo:s,slug:a,stale:l=!1,lastOkAt:t=null,variant:n="hub",initialView:r,initialOpenAll:i=!1,nowMs:o}){const h=me(s),[x,g]=u.useState(""),d=u.useRef(null);u.useEffect(()=>{const b=N=>{var f;N.key==="/"&&!I(N.target)&&!N.ctrlKey&&!N.metaKey&&!N.altKey&&(N.preventDefault(),(f=d.current)==null||f.focus())};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[]);const k=M(s),c=l&&e.jsxs("p",{className:"lane-note","data-testid":"rm-stale",children:["Roadmap data is old. Last good read ",pe(t),". The numbers below are greyed."]}),m=n==="hub"?xe(s.plans,o??Date.now()):null,w=m&&e.jsx("p",{className:`page-subtitle rm-source${m.old?" tone-warn":""}`,"data-testid":"rm-source",children:m.text});let p;if(h.mode==="none")p=e.jsxs("div",{className:"notice","data-testid":"rm-none",children:[e.jsx("h2",{className:"rm-title",children:ge}),e.jsxs("p",{children:["Create one with ",e.jsx("code",{className:"cmd",children:ke}),"."]})]});else if(h.mode==="error")p=e.jsxs("div",{className:"lane-note","data-testid":"rm-errors",children:["Could not read this repo: ",h.repoError]});else if(h.mode==="plans")p=e.jsx(Ae,{plans:h.plans,repo:s,variant:n,initialView:r,initialOpenAll:i});else{const b=a?h.roadmaps.find(N=>N.slug===a):n==="hub"&&ue(h)?h.roadmaps[0]:void 0;if(b){const N=h.roadmaps.length+h.errors.length>1,f=je(b,x);p=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"rm-searchbar",children:[e.jsxs("label",{className:"rm-search",children:[e.jsx(Ne,{...U}),e.jsx("span",{className:"sr-only",children:"Search this roadmap"}),e.jsx("input",{ref:d,type:"search","data-testid":"rm-search",placeholder:"Search phases, PRs, milestones (press /)",value:x,onChange:j=>g(j.target.value),onKeyDown:j=>{j.key==="Escape"&&g("")}})]}),e.jsx("span",{className:"rm-match","data-testid":"rm-match-count","aria-live":"polite",children:f?`${f.count} ${f.count===1?"match":"matches"}`:""})]}),e.jsx(Ve,{m:b,plans:h.plans,repo:s,crumbHref:N?J(n,k):null,match:f,variant:n,initialView:r})]})}else p=e.jsxs(e.Fragment,{children:[a&&e.jsxs("p",{className:"lane-note","data-testid":"rm-missing",children:["No roadmap named ",a," in this repo."]}),e.jsx(Ce,{repo:s,m:h,variant:n})]})}return e.jsxs("div",{className:`rm${l?" stale":""}`,"data-testid":"roadmap-tab",children:[c,w,p,h.mode==="roadmaps"?e.jsx(Fe,{plans:h.otherPlans,repo:s,variant:n,initialView:r,initialOpenAll:i}):null,h.mode!=="error"?e.jsx(Ee,{plans:h.done}):null]})}export{Ue as collectorStale,ze as default};
@@ -1,4 +1,4 @@
1
- import{e}from"./index-Bj5qA-fq.js";/**
1
+ import{f as e}from"./index-CFKn_GzG.js";/**
2
2
  * @license lucide-react v1.61.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.