@caddis/cli 0.4.88 → 0.4.89

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 (85) hide show
  1. package/README.md +46 -0
  2. package/bundles/antigravity-plugin/agents/preflight.md +4 -0
  3. package/bundles/antigravity-plugin/plugin.json +1 -1
  4. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_exit.cpython-311.pyc +0 -0
  5. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_file_lock.cpython-311.pyc +0 -0
  6. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_frontmatter.cpython-311.pyc +0 -0
  7. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_redact.cpython-311.pyc +0 -0
  8. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_roadmap.cpython-311.pyc +0 -0
  9. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_rows.cpython-311.pyc +0 -0
  10. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_status.cpython-311.pyc +0 -0
  11. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_tidy.cpython-311.pyc +0 -0
  12. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_todo.cpython-311.pyc +0 -0
  13. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_workstreams.cpython-311.pyc +0 -0
  14. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_worktree_safety.cpython-311.pyc +0 -0
  15. package/bundles/antigravity-plugin/scripts/caddis_fleet.py +28 -6
  16. package/bundles/antigravity-plugin/scripts/caddis_guide.json +16 -11
  17. package/bundles/antigravity-plugin/scripts/caddis_handoff.py +370 -0
  18. package/bundles/antigravity-plugin/scripts/caddis_heartbeat.py +339 -0
  19. package/bundles/antigravity-plugin/scripts/caddis_hub_collect.py +37 -8
  20. package/bundles/antigravity-plugin/scripts/caddis_routing.py +36 -0
  21. package/bundles/antigravity-plugin/scripts/caddis_todo.py +55 -10
  22. package/bundles/antigravity-plugin/scripts/schemas/hub-collect.schema.json +42 -0
  23. package/bundles/antigravity-plugin/scripts/schemas/hub-plans.schema.json +23 -0
  24. package/bundles/antigravity-plugin/session_end_agy.py +26 -1
  25. package/bundles/antigravity-plugin/skills/coordinate/SKILL.md +5 -3
  26. package/bundles/antigravity-plugin/skills/feature-plan/SKILL.md +47 -19
  27. package/bundles/antigravity-plugin/skills/fleet-open/SKILL.md +1 -1
  28. package/bundles/antigravity-plugin/skills/handoff/SKILL.md +77 -6
  29. package/bundles/antigravity-plugin/skills/implement/SKILL.md +67 -5
  30. package/bundles/antigravity-plugin/warm_start_agy.py +29 -1
  31. package/bundles/manifest.json +2 -2
  32. package/dist/allowed-urls.txt +3 -2
  33. package/dist/cli.js +545 -274
  34. package/dist/export/assets/export-B7BBDg5I.js +150 -0
  35. package/dist/export/assets/export-HxTgj3z2.css +1 -0
  36. package/dist/export/assets/mark-anim-DZa95SHo.webp +0 -0
  37. package/dist/export/assets/mark-still-CcPgBc_-.png +0 -0
  38. package/dist/export/fonts/ibm-plex-mono-400.6d569bb7.woff2 +0 -0
  39. package/dist/export/fonts/ibm-plex-mono-700.9f478677.woff2 +0 -0
  40. package/dist/export/fonts/ibm-plex-sans-400.17fc1ce7.woff2 +0 -0
  41. package/dist/export/fonts/ibm-plex-sans-500.dcc69acf.woff2 +0 -0
  42. package/dist/export/fonts/ibm-plex-sans-600.d4dad061.woff2 +0 -0
  43. package/dist/export/fonts/ibm-plex-sans-700.40d9a530.woff2 +0 -0
  44. package/dist/export/index.html +2 -2
  45. package/dist/export/licenses/{OFL-MapleMono.txt → OFL-IBMPlexMono.txt} +4 -4
  46. package/dist/{ui/licenses/OFL-MapleMono.txt → export/licenses/OFL-IBMPlexSans.txt} +4 -4
  47. package/dist/ui/assets/{Activity-C9TCizJV.js → Activity-DZKPMOeV.js} +1 -1
  48. package/dist/ui/assets/Guide-5ZFfL6sl.js +9 -0
  49. package/dist/ui/assets/Guide-Dnsb-TRd.css +1 -0
  50. package/dist/ui/assets/RoadmapTab-DPsiSmIF.js +31 -0
  51. package/dist/ui/assets/index-DGlNAmeA.css +1 -0
  52. package/dist/ui/assets/index-xl156OCN.js +231 -0
  53. package/dist/ui/assets/mark-anim-DZa95SHo.webp +0 -0
  54. package/dist/ui/assets/mark-still-CcPgBc_-.png +0 -0
  55. package/dist/ui/fonts/ibm-plex-mono-400.6d569bb7.woff2 +0 -0
  56. package/dist/ui/fonts/ibm-plex-mono-700.9f478677.woff2 +0 -0
  57. package/dist/ui/fonts/ibm-plex-sans-400.17fc1ce7.woff2 +0 -0
  58. package/dist/ui/fonts/ibm-plex-sans-500.dcc69acf.woff2 +0 -0
  59. package/dist/ui/fonts/ibm-plex-sans-600.d4dad061.woff2 +0 -0
  60. package/dist/ui/fonts/ibm-plex-sans-700.40d9a530.woff2 +0 -0
  61. package/dist/ui/index.html +2 -2
  62. package/dist/{export/licenses/OFL-Atkinson.txt → ui/licenses/OFL-IBMPlexMono.txt} +3 -3
  63. package/dist/ui/licenses/{OFL-Atkinson.txt → OFL-IBMPlexSans.txt} +3 -3
  64. package/package.json +4 -1
  65. package/dist/export/assets/export-CEtCs5rg.css +0 -1
  66. package/dist/export/assets/export-v-kcNvPW.js +0 -150
  67. package/dist/export/assets/mark-small-B1q4Vk3J.svg +0 -8
  68. package/dist/export/fonts/atkinson-400.849ae6f0.woff2 +0 -0
  69. package/dist/export/fonts/atkinson-500.21d6ef26.woff2 +0 -0
  70. package/dist/export/fonts/atkinson-600.ce9f3210.woff2 +0 -0
  71. package/dist/export/fonts/atkinson-700.3a9cc18a.woff2 +0 -0
  72. package/dist/export/fonts/maple-mono-400.071799fd.woff2 +0 -0
  73. package/dist/export/fonts/maple-mono-700.1e17b237.woff2 +0 -0
  74. package/dist/ui/assets/Guide-6aEYW9oW.js +0 -9
  75. package/dist/ui/assets/Guide-zcVFGUxR.css +0 -1
  76. package/dist/ui/assets/RoadmapTab-hUK2kzCW.js +0 -31
  77. package/dist/ui/assets/index-DE7v-v_o.css +0 -1
  78. package/dist/ui/assets/index-d44hkSAE.js +0 -221
  79. package/dist/ui/assets/mark-small-B1q4Vk3J.svg +0 -8
  80. package/dist/ui/fonts/atkinson-400.849ae6f0.woff2 +0 -0
  81. package/dist/ui/fonts/atkinson-500.21d6ef26.woff2 +0 -0
  82. package/dist/ui/fonts/atkinson-600.ce9f3210.woff2 +0 -0
  83. package/dist/ui/fonts/atkinson-700.3a9cc18a.woff2 +0 -0
  84. package/dist/ui/fonts/maple-mono-400.071799fd.woff2 +0 -0
  85. package/dist/ui/fonts/maple-mono-700.1e17b237.woff2 +0 -0
@@ -1,8 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" shape-rendering="crispEdges" role="img" aria-label="Caddis">
2
- <path fill="#0D42FC" d="M12 1h1v1h-1zM11 2h1v1h-1zM12 2h1v1h-1zM10 3h1v1h-1zM11 3h1v1h-1zM12 3h1v1h-1zM9 4h1v1h-1zM10 4h1v1h-1zM11 4h1v1h-1zM12 4h1v1h-1zM10 5h1v1h-1zM11 5h1v1h-1zM7 6h1v1h-1zM10 6h1v1h-1zM6 7h1v1h-1zM7 7h1v1h-1zM5 8h1v1h-1zM6 8h1v1h-1zM7 8h1v1h-1zM5 9h1v1h-1zM6 9h1v1h-1zM7 9h1v1h-1zM4 10h1v1h-1zM5 10h1v1h-1zM6 10h1v1h-1zM4 11h1v1h-1zM5 11h1v1h-1zM6 11h1v1h-1zM4 12h1v1h-1zM5 12h1v1h-1zM6 12h1v1h-1zM4 13h1v1h-1zM5 13h1v1h-1zM4 14h1v1h-1zM5 14h1v1h-1zM4 15h1v1h-1z"/>
3
- <path fill="#00CAD5" d="M19 3h1v1h-1zM20 3h1v1h-1zM16 4h1v1h-1zM17 4h1v1h-1zM18 4h1v1h-1zM19 4h1v1h-1zM20 4h1v1h-1zM13 5h1v1h-1zM14 5h1v1h-1zM15 5h1v1h-1zM16 5h1v1h-1zM17 5h1v1h-1zM18 5h1v1h-1zM19 5h1v1h-1zM12 6h1v1h-1zM13 6h1v1h-1zM14 6h1v1h-1zM15 6h1v1h-1zM16 6h1v1h-1zM17 6h1v1h-1zM18 6h1v1h-1zM11 7h1v1h-1zM12 7h1v1h-1zM13 7h1v1h-1zM14 7h1v1h-1zM11 8h1v1h-1zM12 8h1v1h-1z"/>
4
- <path fill="#91D202" d="M8 5h1v1h-1zM9 5h1v1h-1zM8 6h1v1h-1zM9 6h1v1h-1zM8 7h1v1h-1zM9 7h1v1h-1zM10 7h1v1h-1zM8 8h1v1h-1zM9 8h1v1h-1zM10 8h1v1h-1zM9 9h1v1h-1zM10 9h1v1h-1zM11 9h1v1h-1zM12 9h1v1h-1zM10 10h1v1h-1zM11 10h1v1h-1zM12 10h1v1h-1zM13 10h1v1h-1zM14 10h1v1h-1zM12 11h1v1h-1zM13 11h1v1h-1zM15 13h1v1h-1zM14 14h1v1h-1zM15 14h1v1h-1zM14 15h1v1h-1zM15 15h1v1h-1zM13 16h1v1h-1zM14 16h1v1h-1zM15 16h1v1h-1zM12 17h1v1h-1zM13 17h1v1h-1zM14 17h1v1h-1zM10 18h1v1h-1zM11 18h1v1h-1zM12 18h1v1h-1zM13 18h1v1h-1zM8 19h1v1h-1zM9 19h1v1h-1zM10 19h1v1h-1zM11 19h1v1h-1zM12 19h1v1h-1zM7 20h1v1h-1zM8 20h1v1h-1zM9 20h1v1h-1zM10 20h1v1h-1zM7 21h1v1h-1zM8 21h1v1h-1zM7 22h1v1h-1z"/>
5
- <path fill="#FC4E23" d="M20 7h1v1h-1zM18 8h1v1h-1zM19 8h1v1h-1zM20 8h1v1h-1zM17 9h1v1h-1zM18 9h1v1h-1zM19 9h1v1h-1zM15 10h1v1h-1zM16 10h1v1h-1zM17 10h1v1h-1zM18 10h1v1h-1zM14 11h1v1h-1zM15 11h1v1h-1zM16 11h1v1h-1zM17 11h1v1h-1zM13 12h1v1h-1zM14 12h1v1h-1zM15 12h1v1h-1zM12 13h1v1h-1zM13 13h1v1h-1zM14 13h1v1h-1zM13 14h1v1h-1z"/>
6
- <path fill="#FDAD01" d="M7 10h1v1h-1zM7 11h1v1h-1zM8 11h1v1h-1zM9 11h1v1h-1zM7 12h1v1h-1zM8 12h1v1h-1zM9 12h1v1h-1zM10 12h1v1h-1zM9 13h1v1h-1zM10 13h1v1h-1zM11 13h1v1h-1zM10 14h1v1h-1zM11 14h1v1h-1zM12 14h1v1h-1zM11 15h1v1h-1zM12 15h1v1h-1zM13 15h1v1h-1zM12 16h1v1h-1zM15 17h1v1h-1zM14 18h1v1h-1zM15 18h1v1h-1zM16 18h1v1h-1zM17 18h1v1h-1zM14 19h1v1h-1zM15 19h1v1h-1zM16 19h1v1h-1zM17 19h1v1h-1zM18 19h1v1h-1zM19 19h1v1h-1zM15 20h1v1h-1zM16 20h1v1h-1zM17 20h1v1h-1zM18 20h1v1h-1zM19 20h1v1h-1zM20 20h1v1h-1zM17 21h1v1h-1zM18 21h1v1h-1zM19 21h1v1h-1z"/>
7
- <path fill="#8730FB" d="M16 12h1v1h-1zM17 12h1v1h-1zM7 13h1v1h-1zM8 13h1v1h-1zM16 13h1v1h-1zM17 13h1v1h-1zM18 13h1v1h-1zM6 14h1v1h-1zM7 14h1v1h-1zM8 14h1v1h-1zM16 14h1v1h-1zM17 14h1v1h-1zM18 14h1v1h-1zM19 14h1v1h-1zM5 15h1v1h-1zM6 15h1v1h-1zM7 15h1v1h-1zM17 15h1v1h-1zM18 15h1v1h-1zM19 15h1v1h-1zM4 16h1v1h-1zM5 16h1v1h-1zM6 16h1v1h-1zM18 16h1v1h-1zM19 16h1v1h-1zM20 16h1v1h-1zM3 17h1v1h-1zM4 17h1v1h-1zM5 17h1v1h-1zM18 17h1v1h-1zM19 17h1v1h-1zM2 18h1v1h-1zM3 18h1v1h-1zM4 18h1v1h-1zM18 18h1v1h-1zM19 18h1v1h-1zM2 19h1v1h-1zM3 19h1v1h-1z"/>
8
- </svg>
@@ -1,9 +0,0 @@
1
- import{r as T,j as s}from"./index-d44hkSAE.js";const M=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1250 1250" role="img" aria-label="Caddis">
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
- <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
- <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"/>
5
- <path class="p-amber" fill="#FDAD01" d="M440 508C455 560 490 585 560 630C660 690 740 750 805 868C850 910 900 950 960 975C1000 990 1050 990 1085 982C1080 1030 1020 1075 950 1075C880 1075 820 1020 735 945C710 910 700 880 680 870C630 790 560 730 500 690C440 655 410 625 396 605C395 570 410 535 440 508Z"/>
6
- <path class="p-green" fill="#91D202" d="M545 285C535 340 540 390 580 435C620 475 700 510 775 583C820 630 840 700 835 760C825 830 780 900 700 945C620 995 530 1020 470 1075C445 1100 435 1130 436 1163C400 1100 410 1040 470 985C520 945 600 920 680 870C730 830 755 790 745 730C740 690 700 640 640 600C560 550 480 505 457 400C455 370 470 345 480 345C500 325 525 305 545 285Z"/>
7
- <path class="p-orange" fill="#FC4E23" d="M1035 390C1055 440 1040 500 990 550C940 595 880 610 800 670C760 700 730 730 715 760L648 697C700 630 760 590 830 545C920 495 990 460 1035 390Z"/>
8
- </svg>
9
- `,S=1,j=["setup","plan","build","review","ship","continuity","knowledge"],y=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function w(e){if(e==null)return{kind:"missing"};if(!y(e))return{kind:"error",message:"The guide data has an unexpected shape."};if(typeof e.error=="string")return{kind:"error",message:e.error};if(typeof e.schema=="number"&&e.schema>S)return{kind:"newer",schema:e.schema};for(const i of["commands","agents","skills","hooks"])if(!Array.isArray(e[i]))return{kind:"error",message:`The guide data has no "${i}" list.`};return y(e.coverage)?{kind:"ok",guide:e}:{kind:"error",message:'The guide data has no "coverage" list.'}}const $=["commands","agents","skills","hooks","runtimes"],v={commands:"Commands",agents:"Agents",skills:"Skills",hooks:"Hooks",runtimes:"Runtimes"};function E(e){const i=new Map;for(const a of["commands","skills","agents"])for(const r of e.coverage[a]??[])i.set(r,[...i.get(r)??[],a]);return[...i.entries()].sort(([a],[r])=>a.localeCompare(r)).map(([a,r])=>({name:a,kinds:r}))}function C(e,i){if(e==="command"){const r=i;return r.noArgs||!r.hint?`/caddis:${r.name}`:`/caddis:${r.name} ${r.hint}`}if(e==="agent")return`Agent tool, subagent_type: caddis:${i.name}`;if(e==="skill")return`Skill tool: caddis:${i.name}`;const a=i;return`Runs by itself on ${a.event} for ${a.matcher}`}const A=e=>e.trim().toLowerCase(),l=(e,...i)=>e===""||i.some(a=>a.toLowerCase().includes(e));function u(e,i,a,r){const n=new Map;for(const o of e.filter(i))n.set(a(o),[...n.get(a(o))??[],o]);const t=[...n.keys()].sort(r).map(o=>({id:o,title:o,entries:n.get(o)}));return{total:e.length,shown:t.reduce((o,d)=>o+d.entries.length,0),groups:t}}function b(e){const i=j.indexOf(e);return i>=0?i:e==="ungrouped"?j.length+1:j.length}function I(e,i){const a=A(i),r=(t,o)=>b(t)-b(o)||t.localeCompare(o),n=E(e);return{commands:u(e.commands,t=>l(a,t.name,t.description,t.hint,t.stage),t=>t.stage||"ungrouped",r),agents:u(e.agents,t=>l(a,t.name,t.description,t.model),()=>"agents",()=>0),skills:u([...e.skills].sort((t,o)=>Number(o.core)-Number(t.core)||t.name.localeCompare(o.name)),t=>l(a,t.name,t.description,t.category),t=>t.category||"uncategorised",(t,o)=>t.localeCompare(o)),hooks:u(e.hooks,t=>l(a,t.event,t.matcher,t.handler),t=>t.event,(t,o)=>t.localeCompare(o)),runtimes:u(n,t=>l(a,t.name,...t.kinds),()=>"runtimes",()=>0)}}const L="Guide data is not ready yet. The hub collects it in the first minute.",F="npm i -g @caddis/cli@latest",_=M.replace("<svg ",'<svg class="caddis-mark-build" ');function m({children:e,tone:i}){return s.jsx("span",{className:`guide-chip${i?` ${i}`:""}`,children:e})}function h({name:e,purpose:i,invoke:a,chips:r}){return s.jsxs("li",{className:"guide-entry","data-testid":"guide-entry",children:[s.jsxs("div",{className:"guide-entry-head",children:[s.jsx("span",{className:"guide-entry-name",children:e}),r]}),i&&s.jsx("p",{className:"guide-entry-purpose",children:i}),a&&s.jsx("code",{className:"guide-entry-invoke",children:a})]})}function g({section:e,showTitle:i,render:a}){return s.jsx(s.Fragment,{children:e.groups.map(r=>s.jsxs("div",{className:"guide-group",children:[i&&s.jsx("h3",{className:"guide-group-title",children:r.title}),s.jsx("ul",{className:"guide-list",children:r.entries.map(a)})]},r.id))})}function p({id:e,section:i,filtered:a,children:r}){return s.jsxs("section",{className:"guide-section",id:`guide-${e}`,"aria-labelledby":`guide-h-${e}`,"data-testid":`guide-section-${e}`,children:[s.jsxs("h2",{className:"guide-section-title",id:`guide-h-${e}`,children:[v[e]," ",s.jsx("span",{className:"guide-count","data-testid":`guide-count-${e}`,children:i.total}),a&&s.jsxs("span",{className:"guide-shown","data-testid":`guide-shown-${e}`,children:[i.shown," of ",i.total]})]}),e==="runtimes"&&s.jsx("p",{className:"guide-note",children:"caddis install and caddis update put these on each runtime."}),i.shown===0&&a?s.jsx("p",{className:"guide-none",children:"No match in this section."}):r]})}function D({view:e,filter:i}){const a=i.trim()!=="",r=$.reduce((n,t)=>n+e[t].shown,0);return s.jsxs(s.Fragment,{children:[a&&r===0&&s.jsxs("p",{className:"notice","data-testid":"guide-nomatch",children:["Nothing matches ",s.jsx("code",{className:"cmd",children:i.trim()}),"."]}),s.jsx(p,{id:"commands",section:e.commands,filtered:a,children:s.jsx(g,{section:e.commands,showTitle:!0,render:n=>s.jsx(h,{name:n.name,purpose:n.description,invoke:C("command",n),chips:n.daily?[s.jsx(m,{tone:"good",children:"daily"},"d")]:[]},n.name)})}),s.jsx(p,{id:"agents",section:e.agents,filtered:a,children:s.jsx(g,{section:e.agents,showTitle:!1,render:n=>s.jsx(h,{name:n.name,purpose:n.description,invoke:C("agent",n),chips:[n.writes?s.jsx(m,{tone:"warn",children:"writes files"},"w"):s.jsx(m,{children:"read only"},"r"),...n.model?[s.jsx(m,{children:n.model},"m")]:[]]},n.name)})}),s.jsx(p,{id:"skills",section:e.skills,filtered:a,children:s.jsx(g,{section:e.skills,showTitle:!0,render:n=>s.jsx(h,{name:n.name,purpose:n.description,invoke:C("skill",n),chips:n.core?[s.jsx(m,{tone:"good",children:"core"},"c")]:[]},n.name)})}),s.jsx(p,{id:"hooks",section:e.hooks,filtered:a,children:s.jsx(g,{section:e.hooks,showTitle:!0,render:n=>s.jsx(h,{name:n.handler,purpose:`Matcher: ${n.matcher}`,invoke:C("hook",n),chips:[]},`${n.event}${n.matcher}${n.handler}`)})}),s.jsx(p,{id:"runtimes",section:e.runtimes,filtered:a,children:s.jsx(g,{section:e.runtimes,showTitle:!1,render:n=>s.jsx(h,{name:n.name,purpose:`Receives: ${n.kinds.join(", ")}`,invoke:"",chips:[]},n.name)})})]})}function f({title:e,children:i}){return s.jsxs("div",{className:"notice","data-testid":"guide-state","aria-live":"polite",children:[s.jsx("h2",{className:"guide-state-title",children:e}),s.jsx("p",{children:i})]})}function R({guide:e,versions:i}){const[a,r]=T.useState(""),n=w(e),t=n.kind==="ok"?I(n.guide,a):null,o=c=>{var k,N;(N=document.getElementById(`guide-${c}`))==null||N.scrollIntoView({block:"start",behavior:(k=window.matchMedia)!=null&&k.call(window,"(prefers-reduced-motion: reduce)").matches?"auto":"smooth"})};let d;n.kind==="missing"?d=s.jsx(f,{title:"Guide data missing",children:L}):n.kind==="error"?d=s.jsx(f,{title:"The guide could not be read",children:s.jsxs(s.Fragment,{children:[n.message," Run ",s.jsx("code",{className:"cmd",children:"caddis doctor"})," to check the install."]})}):n.kind==="newer"?d=s.jsx(f,{title:"The guide is newer than this hub",children:s.jsxs(s.Fragment,{children:["The data has schema ",n.schema,". Update the hub: ",s.jsx("code",{className:"cmd",children:F})]})}):d=s.jsx(D,{view:t,filter:a});const x=n.kind==="ok"?n.guide:null;return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"guide-hero",children:[s.jsx("span",{className:"guide-mark","aria-hidden":"true",dangerouslySetInnerHTML:{__html:_}}),s.jsxs("div",{children:[s.jsx("h1",{className:"page-title",children:"caddis guide"}),s.jsx("p",{className:"page-subtitle","data-testid":"guide-version",children:x?`caddis ${x.version} (installed pool) · generated ${x.generated} · hub ${i.hub}`:`hub ${i.hub}`})]})]}),x&&s.jsxs("div",{className:"guide-tools",children:[s.jsxs("label",{className:"guide-filter",children:[s.jsx("span",{className:"guide-filter-label",children:"Filter the guide"}),s.jsx("input",{type:"search",className:"guide-filter-input",value:a,placeholder:"Name, purpose, stage or hook",onChange:c=>r(c.target.value),"data-testid":"guide-filter"})]}),s.jsx("nav",{className:"guide-chips","aria-label":"Guide sections",children:$.map(c=>s.jsx("button",{type:"button",className:"guide-jump",onClick:()=>o(c),children:v[c]},c))}),s.jsx("p",{className:"guide-note",children:"Invoke forms are for Claude Code. Other runtimes list the same names in their own way."})]}),d]})}export{R as Guide,L as MISSING_TEXT,F as UPDATE_HINT};
@@ -1 +0,0 @@
1
- .guide-hero{display:flex;align-items:center;gap:16px;margin-bottom:16px}.guide-mark{flex:none;width:56px;height:56px}.guide-mark svg{width:100%;height:100%}.guide-tools{display:grid;gap:12px;margin-bottom:20px}.guide-filter{display:grid;gap:4px}.guide-filter-label{font-size:13px;color:var(--text-sub)}.guide-filter-input{width:100%;min-height:40px;padding:0 12px;border-radius:8px;border:1px solid var(--border-bright);background:var(--bg-card);color:var(--text-main);font:inherit}.guide-filter-input:focus-visible,.guide-jump:focus-visible{outline:2px solid var(--green);outline-offset:2px}.guide-chips{display:flex;flex-wrap:wrap;gap:8px}.guide-jump{min-height:36px;padding:0 12px;border-radius:999px;border:1px solid var(--border-bright);background:transparent;color:var(--text-main);font:inherit;font-size:13px;cursor:pointer}.guide-jump:hover{background:var(--bg-elevated)}.guide-note{margin:0;font-size:13px;color:var(--text-dim)}.guide-section{margin-bottom:28px}.guide-section-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px;margin:0 0 12px;font-size:20px}.guide-count,.guide-shown{font-size:13px;font-weight:600;color:var(--text-sub)}.guide-group-title{margin:16px 0 8px;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--text-sub)}.guide-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:10px;margin:0;padding:0;list-style:none}.guide-entry{display:grid;gap:6px;min-width:0;padding:12px 14px;border-radius:10px;border:1px solid var(--border-dim);background:var(--bg-card)}.guide-entry-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.guide-entry-name{font-weight:700;overflow-wrap:anywhere}.guide-entry-purpose{margin:0;font-size:14px;color:var(--text-sub);overflow-wrap:anywhere}.guide-entry-invoke{font-family:Maple Mono,ui-monospace,monospace;font-size:12.5px;color:var(--text-main);overflow-wrap:anywhere;white-space:pre-wrap}.guide-chip{padding:1px 8px;border-radius:999px;border:1px solid var(--border-bright);font-size:12px;color:var(--text-sub)}.guide-chip.good{color:var(--text-main);border-color:var(--green)}.guide-chip.warn{color:var(--text-main);border-color:var(--mk-warn)}.guide-none{color:var(--text-sub)}.guide-state-title{margin:0 0 6px;font-size:18px}
@@ -1,31 +0,0 @@
1
- import{c as x,f as I,r as N,b as $,j as s,g as S,o as z,h as B,N as H,i as F,d as K,e as U,l as V,k as q,p as G,P as W,T as f,m as X}from"./index-d44hkSAE.js";import{n as gs}from"./index-d44hkSAE.js";import{l as w}from"./time-D00tu2ZP.js";/**
2
- * @license lucide-react v1.61.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const T={name:"arrow-right-left",size:24,node:[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]};T.node;const J=x(T);/**
7
- * @license lucide-react v1.61.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */const R={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};R.node;const Q=x(R);/**
12
- * @license lucide-react v1.61.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const E={name:"circle",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]};E.node;const Y=x(E);/**
17
- * @license lucide-react v1.61.0 - ISC
18
- *
19
- * This source code is licensed under the ISC license.
20
- * See the LICENSE file in the root directory of this source tree.
21
- */const P={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"}]]};P.node;const Z=x(P);/**
22
- * @license lucide-react v1.61.0 - ISC
23
- *
24
- * This source code is licensed under the ISC license.
25
- * See the LICENSE file in the root directory of this source tree.
26
- */const C={name:"octagon-alert",size:24,node:[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],aliases:["alert-octagon"]};C.node;const ss=x(C);/**
27
- * @license lucide-react v1.61.0 - ISC
28
- *
29
- * This source code is licensed under the ISC license.
30
- * See the LICENSE file in the root directory of this source tree.
31
- */const D={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};D.node;const es=x(D),as={todo:Y,"in-progress":Z,done:Q,moved:J,blocked:ss},L={size:14,"aria-hidden":!0};function v({tile:e}){const a=as[e];return s.jsx(a,{...L})}function _({done:e,total:a}){const l=a?Math.round(100*e/a):0;return s.jsxs("div",{className:"rm-bar-wrap",children:[s.jsx("div",{className:"rm-bar",role:"img","aria-label":`${e} of ${a} phases done`,children:s.jsx("i",{style:{width:`${l}%`}})}),s.jsxs("span",{className:"rm-bar-text",children:[e,"/",a," phases · ",l,"%"]})]})}function ns({phase:e}){return s.jsxs(s.Fragment,{children:[e.prs.map(a=>a.url?s.jsxs("a",{className:"rm-pr mono","data-testid":"rm-pr",href:a.url,target:"_blank",rel:"noreferrer noopener",children:["#",a.number]},a.number):s.jsxs("span",{className:"rm-pr mono","data-testid":"rm-pr",children:["#",a.number]},a.number)),s.jsx("span",{className:`rm-stage tile-${e.tile}`,"data-testid":"rm-stage",children:e.stage})]})}function u({status:e}){const a=e==="done"||e==="not-needed";return s.jsx("span",{className:`chip ${a?"chip-resolved":e==="in-progress"?"chip-waiting":"chip-hub"}`,children:e})}function rs(e,a){const l=document.getElementById(`ms-${e}-${a}`);l instanceof HTMLDetailsElement&&(l.open=!0),l==null||l.scrollIntoView({block:"start"})}function ls({m:e,match:a}){const l=r=>!a||a.phases.has(r.ref),t=e.milestones.length;return s.jsxs("section",{className:"rm-section","data-testid":"rm-timeline","aria-label":"Timeline",children:[s.jsx("h3",{className:"flow-h",children:"Timeline"}),s.jsxs("div",{className:"rm-timeline-grid",style:{"--rm-cols":t},children:[s.jsxs("div",{className:"rm-head-row",children:[s.jsx("div",{className:"rm-cell rm-head rm-lane",children:"Plan / milestone"}),e.milestones.map(r=>s.jsxs("div",{className:"rm-cell rm-head",children:[s.jsx("strong",{children:r.id})," ",s.jsx(u,{status:r.status}),s.jsx("span",{className:"rm-sub",children:r.depends.length?`after ${r.depends.join(", ")}`:"starts first"}),r.blockers.length>0&&s.jsxs("span",{className:"rm-gate-count",children:[r.blockers.length," gate(s)"]})]},r.id))]}),e.lanes.map(r=>s.jsxs("div",{className:"rm-row",children:[s.jsxs("div",{className:"rm-cell rm-lane",children:[r.plan,s.jsxs("span",{className:"rm-sub",children:[r.done,"/",r.total," done"]})]}),e.milestones.map(n=>s.jsx("div",{className:"rm-cell",children:n.phases.filter(c=>c.plan===r.plan&&l(c)).map(c=>s.jsxs("div",{className:"rm-tile","data-state":c.tile,"data-risk":c.highRisk?"high":void 0,title:`${c.ref} ${c.name} | ${c.tracker||c.stage}`,children:[s.jsx(v,{tile:c.tile}),s.jsx("b",{className:"mono",children:c.num}),s.jsx("span",{children:c.name}),s.jsx("span",{className:"sr-only",children:f[c.tile]}),c.highRisk&&s.jsx("i",{className:"rm-risk","aria-label":"high risk"})]},c.ref))},n.id))]},r.plan)),e.blockers.length>0&&s.jsxs("div",{className:"rm-row",children:[s.jsx("div",{className:"rm-cell rm-lane",children:"Owner and outside"}),e.milestones.map(r=>s.jsx("div",{className:"rm-cell",children:r.blockers.map((n,c)=>s.jsxs("div",{className:"rm-gate-note",title:n.reason,children:[n.type,": ",n.reason.length>60?`${n.reason.slice(0,60)}…`:n.reason]},c))},r.id))]})]}),s.jsx("div",{className:"rm-timeline-list","data-testid":"rm-timeline-list",children:e.milestones.map(r=>s.jsxs("div",{children:[s.jsxs("h4",{className:"rm-list-h",children:[r.id," ",s.jsx(u,{status:r.status})]}),r.phases.filter(l).map(n=>s.jsxs("div",{className:"rm-tile","data-state":n.tile,"data-risk":n.highRisk?"high":void 0,children:[s.jsx(v,{tile:n.tile}),s.jsxs("b",{className:"mono",children:[n.plan," ",n.num]}),s.jsx("span",{children:n.name}),s.jsx("span",{className:"sr-only",children:f[n.tile]}),n.highRisk&&s.jsx("i",{className:"rm-risk","aria-label":"high risk"})]},n.ref))]},r.id))}),s.jsxs("div",{className:"rm-legend","data-testid":"rm-legend",children:[s.jsx("span",{children:"to do · in progress · done · moved · blocked: each tile has an icon and a label"}),s.jsx("span",{children:"red dot = Risk high (stops for review)"})]})]})}function is({m:e,match:a}){return s.jsxs("section",{className:"rm-section","data-testid":"rm-milestones","aria-label":"Milestones and phases",children:[s.jsx("h3",{className:"flow-h",children:"Milestones and phases"}),e.milestones.filter(l=>!a||a.milestones.has(l.id)).map(l=>s.jsxs("details",{className:"rm-ms",id:`ms-${e.slug}-${l.id}`,open:a?!0:void 0,children:[s.jsxs("summary",{children:[s.jsx("strong",{children:l.id})," ",s.jsx(u,{status:l.status}),s.jsxs("span",{className:"rm-sub",children:["owner ",l.owner,l.target?` · target ${l.target}`:""," · after ",l.depends.join(", ")||"-"]})]}),l.phases.length===0?s.jsx("p",{className:"col-empty",children:"No build phases."}):s.jsx("ul",{className:"flow-list",children:l.phases.filter(t=>!a||a.phases.has(t.ref)).map(t=>s.jsxs("li",{className:"flow-row","data-testid":"rm-phase","data-state":t.tile,children:[s.jsxs("div",{className:"flow-row-head",children:[s.jsx("code",{className:"mono",children:t.ref}),s.jsx("span",{className:"flow-title",children:t.name}),s.jsx(ns,{phase:t})]}),s.jsxs("span",{className:"flow-why",children:[[t.model&&`model ${t.model}`,t.lane&&`lane ${t.lane.split(" ")[0]}`,t.risk&&`risk ${t.risk}`].filter(Boolean).join(" · ")||"no model, lane or risk recorded",t.tracker?` · Tracker: ${t.tracker}`:""]})]},t.ref))})]},`${l.id}-${a?"q":"n"}`))]})}function ts({m:e,repo:a,crumbHref:l,match:t,variant:r}){const n=e.kpis,c=i=>()=>rs(e.slug,i);return s.jsxs("div",{className:"rm-detail","data-testid":"rm-detail",children:[s.jsxs("nav",{className:"rm-crumbs","data-testid":"rm-crumbs","aria-label":"Breadcrumb",children:[l?s.jsx("a",{href:l,children:"Roadmaps"}):s.jsx("span",{children:"Roadmaps"})," › ",s.jsx("span",{children:K(a)})," › ",s.jsx("strong",{children:e.slug})]}),e.detailError&&s.jsxs("div",{className:"lane-note","data-testid":"rm-errors",children:["Roadmap detail is unavailable: ",e.detailError,". Phase names, Tracker cells and PR links are missing."]}),s.jsxs("header",{"data-testid":"rm-header",children:[s.jsxs("h2",{className:"rm-title",children:["Roadmap ",e.slug]}),s.jsxs("p",{className:"page-subtitle",children:[n.milestonesDone," of ",n.milestonesTotal," milestones · ",n.phasesDone," of ",n.phasesTotal," phases done",e.branch?s.jsxs(s.Fragment,{children:[" · branch ",s.jsx("code",{children:e.branch})]}):null,e.originCommit?s.jsxs(s.Fragment,{children:[" · origin ",s.jsx("code",{children:e.originCommit})]}):null]}),e.lanes.length>0&&s.jsx("div",{className:"rm-chips","data-testid":"rm-chips",children:e.lanes.map(i=>s.jsxs("span",{className:"rm-chip",children:[s.jsx("b",{children:i.plan})," ",s.jsxs("span",{className:"mono",children:[i.done,"/",i.total," phases"]})]},i.plan))})]}),s.jsxs("section",{className:`rm-section rm-waiting${e.gates.length?" has":""}`,"data-testid":"rm-waiting","aria-label":"Waiting for you",children:[s.jsx("h3",{className:"flow-h",children:"Waiting for you"}),e.gates.length===0?s.jsx("p",{className:"col-empty",children:"No owner gate is waiting."}):s.jsx("ul",{className:"flow-list",children:e.gates.map((i,d)=>s.jsxs("li",{className:"flow-row",children:[s.jsxs("div",{className:"flow-row-head",children:[s.jsx("strong",{children:i.milestone}),s.jsx("span",{className:"chip chip-owner-gate",children:"owner-gate"})]}),s.jsx("span",{className:"flow-why",children:i.reason}),i.check&&s.jsx("code",{className:"mono",children:i.check})]},d))})]}),s.jsxs("section",{className:"rm-kpis kpi-strip","data-testid":"rm-kpis","aria-label":"Summary",children:[s.jsxs("div",{className:"kpi-tile",children:[s.jsx("span",{className:"kpi-label",children:"Phases done"}),s.jsxs("span",{className:"kpi-num",children:[n.phasesDone," / ",n.phasesTotal]})]}),s.jsxs("div",{className:"kpi-tile",children:[s.jsx("span",{className:"kpi-label",children:"Milestones done"}),s.jsxs("span",{className:"kpi-num",children:[n.milestonesDone," / ",n.milestonesTotal]})]}),s.jsxs("div",{className:"kpi-tile",children:[s.jsx("span",{className:"kpi-label",children:"In progress"}),s.jsx("span",{className:"kpi-num",children:n.inProgress.length}),s.jsx("span",{className:"kpi-sub tone-muted",children:n.inProgress.join(", ")||"none"})]}),s.jsxs("div",{className:"kpi-tile",children:[s.jsx("span",{className:"kpi-label",children:"High-risk phases"}),s.jsx("span",{className:`kpi-num${n.highRisk?" bad":""}`,children:n.highRisk})]}),s.jsxs("div",{className:"kpi-tile deploy",children:[s.jsx("span",{className:"kpi-label",children:"Next batch for the runner"}),s.jsx("span",{className:"kpi-val",children:n.next})]})]}),s.jsxs("section",{className:"rm-section","data-testid":"rm-flow","aria-label":"Flow",children:[s.jsx("h3",{className:"flow-h",children:"Flow"}),s.jsx("div",{className:"rm-chain",children:e.milestones.map((i,d)=>s.jsxs("span",{className:"rm-chain-item",children:[d>0&&s.jsx("span",{"aria-hidden":"true",children:"→"}),s.jsxs("button",{type:"button",className:`rm-node tone-${i.tone}`,onClick:c(i.id),children:[s.jsx("b",{children:i.id})," ",s.jsx(u,{status:i.status}),s.jsxs("span",{className:"rm-sub",children:[i.depends.length?`after ${i.depends.join(", ")}`:"starts first"," · ",i.done,"/",i.total," ph"]})]})]},i.id))})]}),s.jsxs("section",{className:"rm-section","data-testid":"rm-board","aria-label":"Now, next, later",children:[s.jsx("h3",{className:"flow-h",children:"Now, next, later"}),s.jsx("div",{className:"rm-cols",children:["now","next","later"].map(i=>s.jsxs("div",{children:[s.jsx("h4",{className:"rm-list-h",children:i[0].toUpperCase()+i.slice(1)}),e.board[i].length===0?s.jsx("p",{className:"col-empty",children:"none"}):e.board[i].map(d=>s.jsxs("button",{type:"button",className:`rm-rcard tone-${d.tone}`,onClick:c(d.id),children:[s.jsxs("span",{children:[s.jsx("strong",{children:d.id})," ",s.jsx(u,{status:d.status})]}),s.jsx(_,{done:d.done,total:d.total}),d.blockers.map((g,k)=>s.jsx("span",{className:"rm-sub",children:g.type},k))]},d.id))]},i))})]}),s.jsx(ls,{m:e,match:t}),s.jsxs("section",{className:"rm-section","data-testid":"rm-gates","aria-label":"Gates and blockers",children:[s.jsxs("h3",{className:"flow-h",children:["Gates and blockers · ",e.blockers.length," open"]}),e.blockers.length===0?s.jsx("p",{className:"col-empty",children:"No blockers."}):s.jsx("ul",{className:"flow-list",children:e.blockers.map((i,d)=>s.jsxs("li",{className:"flow-row",children:[s.jsxs("div",{className:"flow-row-head",children:[s.jsx("strong",{children:i.milestone}),s.jsx("span",{className:`chip ${i.type==="owner-gate"?"chip-owner-gate":"chip-hub"}`,children:i.type})]}),s.jsx("span",{className:"flow-why",children:i.reason}),i.check&&s.jsx("code",{className:"mono",children:i.check})]},d))})]}),s.jsx(is,{m:e,match:t}),r==="hub"&&s.jsxs("section",{className:"rm-section","data-testid":"rm-runner","aria-label":"Runner",children:[s.jsx("h3",{className:"flow-h",children:"Runner"}),e.runner.running?s.jsxs("p",{children:["Running batch ",s.jsx("code",{children:e.runner.running.batch}),e.runner.running.since?` since ${w(e.runner.running.since)}`:"",e.runner.running.host?` (host ${e.runner.running.host}${e.runner.running.pid?`, pid ${e.runner.running.pid}`:""})`:"","."]}):s.jsx("p",{className:"col-empty",children:"No runner holds this roadmap now."}),e.runner.staleBatch!==null&&s.jsxs("p",{children:["A stale runner lock remains (batch ",s.jsx("code",{children:e.runner.staleBatch}),"): the runner that held it is gone."]}),e.runner.lastStop&&s.jsxs("p",{children:["Last stop record: ",e.runner.lastStopAt?`${w(e.runner.lastStopAt)}: `:"",e.runner.lastStop,"."]}),e.runner.errors.map(i=>s.jsxs("p",{className:"tone-warn",children:["Could not read ",i,"."]},i)),e.runner.next&&s.jsxs("p",{children:["Next batch: ",s.jsx("code",{children:e.runner.next})]})]})]})}function cs({repo:e,m:a,variant:l}){const t=$(e);return s.jsxs("div",{className:"rm-list-view",children:[(a.errors.length>0||a.repoError||a.roadmaps.some(r=>r.detailError))&&s.jsxs("div",{className:"lane-note","data-testid":"rm-errors",children:[a.repoError&&s.jsxs("div",{children:["Could not read this repo: ",a.repoError]}),a.errors.map(r=>s.jsxs("div",{children:["Could not read ",r.slug,": ",r.error]},r.slug)),a.roadmaps.filter(r=>r.detailError).map(r=>s.jsxs("div",{children:["Detail unavailable for ",r.slug,": ",r.detailError]},r.slug))]}),s.jsx("ul",{className:"flow-list rm-cards","data-testid":"rm-list","aria-label":"Roadmaps",children:a.roadmaps.map(r=>{const n=V(r);return s.jsx("li",{children:s.jsxs("a",{className:`rm-rcard rm-card tone-${n.tone}`,"data-testid":"rm-card",href:O(l,t,r.slug),children:[s.jsxs("span",{children:[s.jsx("strong",{children:n.slug})," ",s.jsx("span",{className:"rm-sub",children:n.branch??""})]}),s.jsx(_,{done:n.phasesDone,total:n.phasesTotal}),s.jsxs("span",{className:"rm-sub",children:[n.milestonesDone,"/",n.milestonesTotal," milestones"]}),s.jsx("span",{className:"rm-dots",children:n.dots.map(c=>s.jsx("span",{className:`rm-dot s-${c.status}`,children:c.id},c.id))}),s.jsxs("span",{className:"rm-sub",children:["next: ",n.next,l==="hub"?` · runner: ${n.runner}`:"",n.gates>0?` · ${n.gates} open gate${n.gates===1?"":"s"}`:""]})]})},r.slug)})})]})}const ds={todo:"todo","in-progress":"prog",blocked:"block",done:"done",moved:"done"},y=e=>e.replace(/^☐\s*/u,"").trim();function os({plan:e}){if(e.rows.length===0)return null;const a=X(e);return s.jsxs("span",{className:"rm-pkpis","data-testid":"rm-plan-kpis",children:[s.jsxs("span",{className:"rm-pkpi",children:[s.jsxs("span",{className:"rm-pkpi-num",children:[a.done," / ",a.total]})," ","done"]}),s.jsx("span",{className:"rm-pbar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":a.pct,"aria-label":"Share of rows done",children:s.jsx("span",{style:{width:`${a.pct}%`}})}),s.jsxs("span",{className:"rm-pkpi rm-pkpi-pct",children:[a.pct," %"]}),s.jsxs("span",{className:`rm-pkpi${a.inProgress?" tone-prog":""}`,children:[s.jsx("span",{className:"rm-pkpi-num",children:a.inProgress})," in progress"]}),s.jsxs("span",{className:`rm-pkpi${a.blocked?" tone-block":""}`,children:[s.jsx("span",{className:"rm-pkpi-num",children:a.blocked})," blocked"]}),s.jsxs("span",{className:"rm-pkpi",children:[s.jsx("span",{className:"rm-pkpi-num",children:a.todo})," to do"]})]})}function M({plan:e,startOpen:a}){const l=G(e);return s.jsxs("details",{className:"rm-section rm-plan","data-testid":"rm-plan-board","aria-label":e.title,open:a||void 0,children:[s.jsxs("summary",{className:"rm-plan-sum",children:[s.jsx("span",{className:"rm-plan-title",children:e.title}),s.jsxs("span",{className:"rm-sub",children:[e.open," open"]}),s.jsx(os,{plan:e})]}),e.rows.length===0?s.jsx("p",{className:"col-empty",children:"This plan has no Tracker table."}):s.jsx("div",{className:"rm-cols rm-cols-4",children:W.map(t=>s.jsxs("div",{"data-col":t.key,children:[s.jsxs("h4",{className:"rm-list-h",children:[t.label," · ",l[t.key].length]}),l[t.key].length===0?s.jsx("p",{className:"col-empty",children:"none"}):l[t.key].map((r,n)=>s.jsxs("div",{className:`rm-rcard rm-pcard tone-${ds[r.state]}${r.state==="moved"?" is-moved":""}`,children:[s.jsx("strong",{children:r.phase}),y(r.status)?s.jsx("span",{className:"rm-sub",children:y(r.status)}):null]},`${r.phase}-${n}`))]},t.key))})]})}function A(e){const[a]=N.useState(()=>q(e));return a}function hs({plans:e}){const a=A(e);return s.jsxs("div",{className:"flow","data-testid":"rm-plans",children:[s.jsx("p",{className:"page-subtitle",children:"No roadmap here. These plans are active. Click a plan to open or close it."}),e.map(l=>s.jsx(M,{plan:l,startOpen:l.path===a},l.path))]})}function ms({plans:e}){const a=A(e);return e.length===0?null:s.jsxs("div",{className:"flow","data-testid":"rm-other-plans",children:[s.jsx("h2",{className:"rm-title",children:"Plans with no roadmap"}),e.map(l=>s.jsx(M,{plan:l,startOpen:l.path===a},l.path))]})}const O=(e,a,l)=>e==="site"?l?`#/roadmap/${encodeURIComponent(l)}`:"#/":U(a,"roadmap",l);function js({repo:e,slug:a,stale:l=!1,lastOkAt:t=null,variant:r="hub"}){const n=I(e),[c,i]=N.useState(""),d=N.useRef(null);N.useEffect(()=>{const p=o=>{var b;const h=o.target,j=h instanceof HTMLElement&&/^(INPUT|TEXTAREA|SELECT)$/.test(h.tagName);o.key==="/"&&!j&&!o.ctrlKey&&!o.metaKey&&!o.altKey&&(o.preventDefault(),(b=d.current)==null||b.focus())};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[]);const g=$(e),k=l&&s.jsxs("p",{className:"lane-note","data-testid":"rm-stale",children:["Roadmap data is old. Last good read ",S(t),". The numbers below are greyed."]});let m;if(n.mode==="none")m=s.jsxs("div",{className:"notice","data-testid":"rm-none",children:[s.jsx("h2",{className:"rm-title",children:H}),s.jsxs("p",{children:["Create one with ",s.jsx("code",{className:"cmd",children:F}),"."]})]});else if(n.mode==="error")m=s.jsxs("div",{className:"lane-note","data-testid":"rm-errors",children:["Could not read this repo: ",n.repoError]});else if(n.mode==="plans")m=s.jsx(hs,{plans:n.plans});else{const p=a?n.roadmaps.find(o=>o.slug===a):r==="hub"&&z(n)?n.roadmaps[0]:void 0;if(p){const o=n.roadmaps.length+n.errors.length>1,h=B(p,c);m=s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"rm-searchbar",children:[s.jsxs("label",{className:"rm-search",children:[s.jsx(es,{...L}),s.jsx("span",{className:"sr-only",children:"Search this roadmap"}),s.jsx("input",{ref:d,type:"search","data-testid":"rm-search",placeholder:"Search phases, PRs, milestones (press /)",value:c,onChange:j=>i(j.target.value),onKeyDown:j=>{j.key==="Escape"&&i("")}})]}),s.jsx("span",{className:"rm-match","data-testid":"rm-match-count","aria-live":"polite",children:h?`${h.count} ${h.count===1?"match":"matches"}`:""})]}),s.jsx(ts,{m:p,repo:e,crumbHref:o?O(r,g):null,match:h,variant:r})]})}else m=s.jsxs(s.Fragment,{children:[a&&s.jsxs("p",{className:"lane-note","data-testid":"rm-missing",children:["No roadmap named ",a," in this repo."]}),s.jsx(cs,{repo:e,m:n,variant:r})]})}return s.jsxs("div",{className:`rm${l?" stale":""}`,"data-testid":"roadmap-tab",children:[k,m,n.mode==="roadmaps"?s.jsx(ms,{plans:n.otherPlans}):null]})}export{gs as collectorStale,js as default};
@@ -1 +0,0 @@
1
- @font-face{font-family:Atkinson Hyperlegible Next;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/atkinson-400.849ae6f0.woff2) format("woff2")}@font-face{font-family:Atkinson Hyperlegible Next;font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/atkinson-500.21d6ef26.woff2) format("woff2")}@font-face{font-family:Atkinson Hyperlegible Next;font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/atkinson-600.ce9f3210.woff2) format("woff2")}@font-face{font-family:Atkinson Hyperlegible Next;font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/atkinson-700.3a9cc18a.woff2) format("woff2")}@font-face{font-family:Maple Mono;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/maple-mono-400.071799fd.woff2) format("woff2")}@font-face{font-family:Maple Mono;font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/maple-mono-700.1e17b237.woff2) format("woff2")}:root{--caddis-blue: #0d42fc;--caddis-cyan: #00cad5;--caddis-green: #91d202;--caddis-amber: #fdad01;--caddis-orange: #fc4e23;--caddis-violet: #8730fb;--caddis-bg-dark: #282a36;--caddis-bg-light: #f8f8f2}@media(prefers-reduced-motion:no-preference){.caddis-mark-build path{opacity:0;transform-box:fill-box;transform-origin:center;animation:caddis-piece-in .64s cubic-bezier(.2,.7,.2,1) forwards}.caddis-mark-build .p-blue{--from: -60px, -60px;animation-delay:0ms}.caddis-mark-build .p-purple{--from: -60px, 60px;animation-delay:90ms}.caddis-mark-build .p-cyan{--from: 60px, -60px;animation-delay:.18s}.caddis-mark-build .p-amber{--from: -40px, 60px;animation-delay:.27s}.caddis-mark-build .p-green{--from: 0px, 70px;animation-delay:.36s}.caddis-mark-build .p-orange{--from: 60px, 40px;animation-delay:.45s}}@keyframes caddis-piece-in{0%{opacity:0;transform:translate(var(--from, 0, 0)) scale(.85)}to{opacity:1;transform:none}}:root,[data-theme=dark]{color-scheme:dark;--bg-canvas: #191a23;--bg-lane: #21222c;--bg-card: #282a36;--bg-elevated: #343746;--border-dim: #363949;--border-bright: #4b4f65;--text-main: #f8f8f2;--text-sub: #c0c4d6;--text-dim: #9ca3c4;--purple: #bd93f9;--pink: #ff79c6;--green: #50fa7b;--yellow: #f1fa8c;--red: #ff5555;--cyan: #8be9fd;--orange: #ffb86c;--tone-yellow-bg: rgba(241, 250, 140, .08);--tone-yellow-bd: rgba(241, 250, 140, .42);--tone-red-bg: rgba(255, 85, 85, .09);--tone-red-bd: rgba(255, 85, 85, .45);--tone-pink-bg: rgba(255, 121, 198, .11);--tone-pink-bd: rgba(255, 121, 198, .45);--tone-cyan-bg: rgba(139, 233, 253, .09);--tone-cyan-bd: rgba(139, 233, 253, .36);--tone-green-bg: rgba(80, 250, 123, .09);--tone-green-bd: rgba(80, 250, 123, .36);--tone-purple-bg: rgba(189, 147, 249, .12);--tone-purple-bd: rgba(189, 147, 249, .42);--focus-ring: #bd93f9;--sidebar-w: 232px}[data-theme=light]{color-scheme:light;--bg-canvas: #f2f3f8;--bg-lane: #f9f9fc;--bg-card: #ffffff;--bg-elevated: #ebedf5;--border-dim: #dcdde8;--border-bright: #bfc2d4;--text-main: #1b1c26;--text-sub: #424659;--text-dim: #60667f;--purple: #6837e8;--pink: #cf2384;--green: #128038;--yellow: #8f6100;--red: #d12121;--cyan: #096b7d;--orange: #b85000;--tone-yellow-bg: rgba(217, 155, 8, .11);--tone-yellow-bd: rgba(168, 112, 0, .42);--tone-red-bg: rgba(209, 33, 33, .07);--tone-red-bd: rgba(209, 33, 33, .38);--tone-pink-bg: rgba(207, 35, 132, .08);--tone-pink-bd: rgba(207, 35, 132, .38);--tone-cyan-bg: rgba(9, 107, 125, .08);--tone-cyan-bd: rgba(9, 107, 125, .32);--tone-green-bg: rgba(18, 128, 56, .08);--tone-green-bd: rgba(18, 128, 56, .32);--tone-purple-bg: rgba(104, 55, 232, .09);--tone-purple-bd: rgba(104, 55, 232, .35);--focus-ring: #6837e8}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{min-height:100%;width:100%;max-width:100%;background:var(--bg-canvas);color:var(--text-main);font-family:Atkinson Hyperlegible Next,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;overflow-x:hidden}h1,h2,h3,h4,strong,b{font-weight:600}.mono,code{font-family:Maple Mono,ui-monospace,SFMono-Regular,Consolas,monospace;font-feature-settings:"zero" on;font-size:.92em}code.cmd{background:var(--bg-elevated);padding:1px 6px;border-radius:4px;color:var(--yellow);overflow-wrap:anywhere}button,a{font-family:inherit}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}@keyframes work-pulse{0%,to{opacity:1}50%{opacity:.35}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}.pulse-dot{width:8px;height:8px;border-radius:50%;background:var(--cyan);display:inline-block;animation:work-pulse 2.2s ease-in-out infinite;flex-shrink:0}.app-shell{display:flex;min-height:100vh;width:100%;max-width:100%}.mobile-topbar{display:none;position:sticky;top:0;z-index:45;background:var(--bg-card);border-bottom:1px solid var(--border-dim);padding:10px 14px;align-items:center;justify-content:space-between;gap:10px}.menu-btn{display:inline-flex;align-items:center;gap:8px;background:var(--bg-elevated);border:1px solid var(--border-bright);color:var(--text-main);padding:6px 10px;border-radius:7px;font-size:14px;font-weight:500;cursor:pointer}.drawer-backdrop{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background:#0000008c;z-index:49}.drawer-backdrop.open{display:block}.sidebar{width:var(--sidebar-w);background:var(--bg-card);border-right:1px solid var(--border-dim);position:fixed;top:0;bottom:0;left:0;z-index:50;display:flex;flex-direction:column;justify-content:space-between;transition:transform .2s ease;overflow-x:hidden;overflow-y:auto}.sidebar-top{padding:16px 12px;display:flex;flex-direction:column;gap:18px}.brand-row{display:flex;align-items:center;padding:0 6px}.brand-logo{display:flex;align-items:center;gap:10px;font-weight:700;font-size:16px;color:var(--text-main);min-width:0}.brand-mark{width:36px;height:36px;flex-shrink:0}.brand-stack{display:flex;flex-direction:column;gap:4px;min-width:0}.brand-wordmark{width:100px;height:20px}.brand-sub{font-size:12px;font-weight:400;letter-spacing:.08em;text-transform:uppercase;color:var(--text-dim)}.nav-list{display:flex;flex-direction:column;gap:4px;list-style:none}.nav-section-label{font-size:13px;font-weight:500;color:var(--text-dim);padding:0 10px;margin-bottom:-10px}.nav-empty{padding:6px 10px;color:var(--text-dim);font-size:14px}.nav-link{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border-radius:8px;color:var(--text-sub);text-decoration:none;font-weight:500;font-size:15px;transition:background .12s ease,color .12s ease;min-width:0}.nav-link:hover{background:var(--bg-elevated);color:var(--text-main)}.nav-link.active{background:var(--tone-purple-bg);color:var(--purple);font-weight:600}.nav-link-left{display:flex;align-items:center;gap:10px;min-width:0}.nav-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.soon{font-size:11.5px;color:var(--text-dim);border:1px solid var(--border-dim);border-radius:99px;padding:0 7px}.inbox-badge{display:inline-flex;align-items:center;justify-content:center;padding:1px 8px;border-radius:99px;font-size:12px;font-weight:600;background:linear-gradient(135deg,var(--yellow),var(--red));color:#191a23;flex-shrink:0}.repo-dot{width:9px;height:9px;margin:0 4.5px;border-radius:50%;flex-shrink:0}.repo-dot.attention{background:var(--yellow);box-shadow:0 0 0 2px var(--tone-yellow-bg)}.repo-dot.blocked{background:var(--red);box-shadow:0 0 0 2px var(--tone-red-bg)}.repo-dot.ok{background:var(--green)}.repo-dot.idle{background:var(--text-dim)}.sidebar-footer{padding:14px 12px;border-top:1px solid var(--border-dim);display:flex;flex-direction:column;gap:12px;background:var(--bg-lane)}.footer-meta{font-size:13px;color:var(--text-sub);display:flex;flex-direction:column;gap:8px}.updated-line{display:flex;align-items:center;gap:7px;color:var(--text-dim);font-size:12.5px;line-height:1.35}.spend-box{display:flex;flex-direction:column;gap:5px}.spend-row{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:13px}.meter-track{width:100%;height:6px;background:var(--bg-elevated);border-radius:99px;overflow:hidden}.meter-fill{height:100%;background:var(--purple);border-radius:99px}.meter-fill.hot{background:var(--orange)}.versions{color:var(--text-dim);font-size:11.5px;overflow-wrap:anywhere}.theme-switch{display:flex;gap:4px;background:var(--bg-elevated);border-radius:8px;padding:3px}.theme-btn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:5px;background:transparent;border:0;border-radius:6px;color:var(--text-sub);padding:5px 4px;font-size:12.5px;cursor:pointer}.theme-btn.active{background:var(--bg-card);color:var(--purple);font-weight:600}.main-area{flex:1;margin-left:var(--sidebar-w);min-width:0;width:100%}.page-wrap{max-width:1420px;margin:0 auto;padding:28px 28px 48px;display:flex;flex-direction:column;gap:28px;min-width:0}.page-header{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}.page-title{font-size:22px;font-weight:600;color:var(--text-main);display:flex;align-items:center;gap:10px}.page-subtitle{font-size:14px;color:var(--text-sub)}.notice{display:flex;flex-direction:column;gap:8px;background:var(--bg-card);border:1px solid var(--border-dim);border-radius:10px;padding:18px 20px;max-width:560px}.banners{display:flex;flex-direction:column;gap:8px}.banner{display:flex;align-items:flex-start;gap:10px;border-radius:8px;padding:10px 14px;font-size:14px;border:1px solid var(--tone-yellow-bd);background:var(--tone-yellow-bg)}.banner svg{flex-shrink:0;margin-top:2px}.banner.warn svg{color:var(--yellow)}.banner.bad{border-color:var(--tone-red-bd);background:var(--tone-red-bg)}.banner.bad svg{color:var(--red)}.kpi-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.kpi-tile{background:var(--bg-card);border:1px solid var(--border-dim);border-radius:10px;padding:13px 16px;display:flex;flex-direction:column;justify-content:space-between;gap:6px;text-decoration:none;color:var(--text-main);transition:border-color .15s ease;min-width:0}.kpi-tile:hover{border-color:var(--purple)}.kpi-tile.urgent{border-color:var(--tone-yellow-bd);background:var(--tone-yellow-bg)}.kpi-tile.danger{border-color:var(--tone-red-bd);background:var(--tone-red-bg)}.kpi-label{font-size:13.5px;color:var(--text-sub);font-weight:500;display:flex;align-items:center;gap:7px;min-width:0}.kpi-val{font-size:19px;font-weight:600;display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}.kpi-sub{font-size:13px;font-weight:400}@media(max-width:1100px){.kpi-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:720px){.mobile-topbar{display:flex}.app-shell{flex-direction:column}.sidebar{width:250px;transform:translate(-100%);visibility:hidden}.sidebar.drawer-open{transform:translate(0);visibility:visible}.main-area{margin-left:0}.page-wrap{padding:16px 12px 36px;gap:20px}.kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}:root,[data-theme=dark]{--mk-accent: #00cad5;--mk-sel: #343746;--mk-bad: #ff7a7a;--mk-good: #91d202;--mk-warn: #fdad01;--mk-warn-bg: rgba(253, 173, 1, .1);--mk-warn-line: rgba(253, 173, 1, .45);--chip-waiting-bg: rgba(0, 202, 213, .16);--chip-waiting-fg: #5fe6ee;--chip-gate-bg: rgba(135, 48, 251, .22);--chip-gate-fg: #c9a7ff;--chip-bad-bg: rgba(255, 122, 122, .16);--chip-bad-fg: #ff9b9b;--chip-coord-bg: rgba(253, 173, 1, .16);--chip-coord-fg: #fdad01;--chip-done-bg: rgba(145, 210, 2, .16);--chip-done-fg: #a8e23a}[data-theme=light]{--mk-accent: #0d42fc;--mk-sel: #e8eefe;--mk-bad: #c0262d;--mk-good: #3d6b00;--mk-warn: #8a5a00;--mk-warn-bg: rgba(253, 173, 1, .14);--mk-warn-line: rgba(154, 101, 0, .45);--chip-waiting-bg: #dff7f8;--chip-waiting-fg: #006b72;--chip-gate-bg: #efe5ff;--chip-gate-fg: #5b1bb5;--chip-bad-bg: #fde4e4;--chip-bad-fg: #a11d24;--chip-coord-bg: #fff1cf;--chip-coord-fg: #7a5000;--chip-done-bg: #e9f6d2;--chip-done-fg: #3d6b00}.btn{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border-radius:8px;border:1px solid var(--border-bright);background:transparent;color:var(--text-main);font-size:14px;font-weight:500;cursor:pointer}.btn:hover:not(:disabled){background:var(--bg-elevated)}.btn:disabled{opacity:.55;cursor:not-allowed}.kpi-tile .kpi-num{font-size:30px;font-weight:600;line-height:1.1}.kpi-num.accent{color:var(--mk-accent)}.kpi-num.bad{color:var(--mk-bad)}.tone-good{color:var(--mk-good)}.tone-warn{color:var(--mk-warn)}.tone-bad{color:var(--mk-bad)}.tone-muted{color:var(--text-dim)}.kpi-tile.deploy .kpi-val{font-size:15px}.mailbox{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}.mailbox-folders{flex:1 1 180px;display:flex;flex-direction:column;gap:2px;padding:8px;border-radius:12px;background:var(--bg-lane);border:1px solid var(--border-dim)}.folder-btn,.item-btn{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:0 10px;border:0;border-radius:8px;text-align:left;background:transparent;color:var(--text-main);font-size:15px;cursor:pointer}.folder-btn span:first-of-type{flex-grow:1}.folder-btn.sel,.item-btn.sel{background:var(--mk-sel)}.folder-btn:hover,.item-btn:hover{background:var(--bg-elevated)}.mailbox-list{flex:2 1 280px;min-width:0;display:flex;flex-direction:column;gap:4px;padding:8px;border-radius:12px;background:var(--bg-lane);border:1px solid var(--border-dim)}.item-btn{align-items:flex-start;padding:10px;min-height:56px}.unread-dot{width:9px;height:9px;margin-top:6px;border-radius:50%;flex-shrink:0;background:transparent}.unread-dot.on{background:var(--mk-accent)}.item-main{display:flex;flex-direction:column;gap:3px;min-width:0}.item-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;color:var(--text-dim)}.item-title{font-weight:400;overflow-wrap:anywhere}.chip{padding:1px 8px;border-radius:99px;font-size:12px;font-weight:600}.chip-waiting{background:var(--chip-waiting-bg);color:var(--chip-waiting-fg)}.chip-owner-gate{background:var(--chip-gate-bg);color:var(--chip-gate-fg)}.chip-blocked,.chip-blocked-merge{background:var(--chip-bad-bg);color:var(--chip-bad-fg)}.chip-coordinator,.chip-hub{background:var(--chip-coord-bg);color:var(--chip-coord-fg)}.chip-resolved{background:var(--chip-done-bg);color:var(--chip-done-fg)}.list-empty{padding:24px 12px;text-align:center;color:var(--text-sub)}.mailbox-detail{flex:3 1 320px;min-width:0;display:flex;flex-direction:column;gap:14px;padding:18px;border-radius:12px;background:var(--bg-lane);border:1px solid var(--border-dim)}.mailbox-detail h2{font-size:20px;line-height:1.3;overflow-wrap:anywhere}.detail-block{display:flex;flex-direction:column;gap:4px}.detail-label{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--text-dim)}.detail-actions{display:flex;flex-wrap:wrap;gap:10px}.back-btn{display:none}.notify-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:14px;color:var(--text-sub)}@media(max-width:720px){.mailbox{flex-direction:column;align-items:stretch}.mailbox.show-detail .mailbox-folders,.mailbox.show-detail .mailbox-list{display:none}.mailbox:not(.show-detail) .mailbox-detail{display:none}.mailbox-folders{flex-direction:row;flex-wrap:wrap}.folder-btn{width:auto;flex:1 1 140px}.back-btn{display:inline-flex;align-self:flex-start}}.lanes{display:flex;flex-direction:column;gap:14px}.lane{border-radius:12px;background:var(--bg-lane);border:1px solid var(--border-dim)}.lane.down .lane-body .card.grey>:not(.action-row),.lane.stopped .lane-body .card.grey>:not(.action-row){opacity:.55}.lane.stopped .lane-note{background:var(--mk-warn-bg);border-color:var(--mk-warn-line)}.lane-head{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:0 14px;border:0;background:transparent;color:var(--text-main);font-size:15px;text-align:left;cursor:pointer;border-radius:12px}.lane-head .chev{margin-left:auto;flex-shrink:0;color:var(--text-dim)}.lane-name{font-weight:400;font-family:Maple Mono,ui-monospace,monospace;font-size:14px}.lane-summary{color:var(--text-dim);font-size:13.5px;min-width:0;overflow-wrap:anywhere}.lane-body{padding:0 14px 14px;display:flex;flex-direction:column;gap:12px}.lane-note{padding:10px 12px;border-radius:8px;background:var(--bg-elevated);border:1px solid var(--border-dim);font-size:14px}.lane.down .lane-note{background:var(--mk-warn-bg);border-color:var(--mk-warn-line)}.lane-cols{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.lane-col{display:flex;flex-direction:column;gap:8px;min-width:0}.col-title{font-size:12.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--text-dim);font-weight:600}.card{display:flex;flex-direction:column;gap:2px;padding:9px 11px;border-radius:8px;background:var(--bg-card);border:1px solid var(--border-dim);overflow-wrap:anywhere}.card-title{font-weight:500;font-size:14px}.card-sub{font-size:13px}.col-empty{font-size:13px;color:var(--text-dim)}@media(max-width:1100px){.lane-cols{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.lane-cols{grid-template-columns:minmax(0,1fr)}.lane-head{flex-wrap:wrap;padding:10px 14px}}.first-run{border:1px dashed var(--border, var(--mk-line, #6272a4));border-radius:10px;padding:16px;margin:0 0 16px;display:grid;gap:8px;justify-items:start}.first-run h2{margin:0;font-size:1.1rem}.first-run p{margin:0;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.first-run-reason{color:var(--text-dim);font-size:.85rem}.chip-stale{background:transparent;border:1px dashed currentColor;color:var(--text-dim)}.kpi-strip.stale .kpi-num,.kpi-strip.stale .kpi-val,.lanes.stale .lane-body{opacity:.55}.gh-fail{overflow-wrap:anywhere}.quota-low{color:var(--mk-warn, var(--text));font-size:.85rem;overflow-wrap:anywhere}.action-row{display:flex;flex-direction:column;gap:6px;min-width:0}.action-buttons{display:flex;flex-wrap:wrap;gap:8px}.action-row.compact .btn-act{min-height:30px;padding:0 10px;font-size:12.5px}.action-reason,.request-status{font-size:13px;overflow-wrap:anywhere}.action-reason{color:var(--text-dim)}.recommendation{padding:10px 12px;border-radius:8px;border:1px solid var(--border-dim);background:var(--bg-elevated);overflow-wrap:anywhere}.rec-approve{color:var(--mk-good)}.rec-hold{color:var(--mk-warn)}.rec-evidence{font-size:13.5px}.rec-note{font-size:12.5px;color:var(--text-dim)}.quota-line{font-size:.85rem;color:var(--text-dim);overflow-wrap:anywhere}.repo-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}.repo-tabs .folder-btn{width:auto;min-height:38px;padding:0 14px;border:1px solid var(--border-dim)}.flow{display:flex;flex-direction:column;gap:18px;min-width:0}.flow-status.stopped,.flow-status.down{background:var(--mk-warn-bg);border-color:var(--mk-warn-line)}.flow-section{display:flex;flex-direction:column;gap:8px;min-width:0}.flow-h{margin:0;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--text-dim)}.flow-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.flow-row{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-radius:8px;background:var(--bg-card);border:1px solid var(--border-dim);overflow-wrap:anywhere;min-width:0}.flow-row.grey>:not(.action-row){opacity:.55}.flow-row-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}.flow-pos{color:var(--text-dim);font-size:13px}.flow-title{font-weight:600;font-size:14.5px}.flow-flags{display:flex;flex-wrap:wrap;gap:6px}.flow-flags .chip,.flow-row-head .chip{border:1px solid currentColor}.flow-why{font-size:13px;color:var(--text-sub)}.card .action-row{margin-top:4px}.repo-tabs a.folder-btn{text-decoration:none;display:inline-flex}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}summary:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.rm{display:flex;flex-direction:column;gap:14px;min-width:0}.rm.stale .rm-detail,.rm.stale .rm-list-view{opacity:.6}.rm-title{margin:0;font-size:18px}.rm-detail{display:flex;flex-direction:column;gap:18px;min-width:0}.rm-crumbs{font-size:13px;color:var(--text-sub);overflow-wrap:anywhere}.rm-crumbs a{color:var(--mk-accent)}.rm-section{display:flex;flex-direction:column;gap:8px;min-width:0}.rm-waiting.has .flow-row{border-color:var(--tone-pink-bd);background:var(--tone-pink-bg)}.rm-searchbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.rm-search{display:flex;align-items:center;gap:8px;flex:1 1 240px;min-height:40px;padding:0 10px;border:1px solid var(--border-bright);border-radius:8px;background:var(--bg-card)}.rm-search input{flex:1;min-width:0;border:0;background:transparent;color:var(--text-main);font:inherit;min-height:38px}.rm-search input:focus-visible{outline-offset:6px}.rm-match{font-size:13px;color:var(--text-sub)}.rm-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.rm-chip{padding:4px 10px;border:1px solid var(--border-dim);border-radius:8px;background:var(--bg-card);font-size:13px}.rm-sub{display:block;font-size:12px;color:var(--text-dim)}.rm-bar-wrap{display:flex;flex-direction:column;gap:2px}.rm-bar{height:8px;border-radius:99px;background:var(--bg-elevated);overflow:hidden}.rm-bar i{display:block;height:100%;background:var(--mk-good)}.rm-bar-text{font-size:12px;color:var(--text-dim)}.rm-chain{display:flex;flex-wrap:wrap;align-items:stretch;gap:6px}.rm-chain-item{display:inline-flex;align-items:center;gap:6px}.rm-node,.rm-rcard{display:flex;flex-direction:column;gap:4px;padding:8px 10px;border:1px solid var(--border-dim);border-radius:9px;background:var(--bg-card);color:var(--text-main);font:inherit;text-align:left;text-decoration:none;cursor:pointer;min-width:0;overflow-wrap:anywhere}.rm-node:hover,.rm-rcard:hover{background:var(--bg-elevated)}.rm-node.tone-done,.rm-rcard.tone-done{border-left:4px solid var(--mk-good)}.rm-node.tone-prog,.rm-rcard.tone-prog{border-left:4px solid var(--mk-accent)}.rm-node.tone-wait,.rm-rcard.tone-wait{border-left:4px solid var(--chip-gate-fg)}.rm-node.tone-block,.rm-rcard.tone-block{border-left:4px solid var(--mk-warn)}.rm-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.rm-rcard strong{font-weight:500}.rm-cols .rm-rcard{width:100%;margin-bottom:8px}.rm-cols.rm-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.rm-pcard{cursor:default}.rm-pcard:hover{background:var(--bg-card)}.rm-pcard.is-moved{opacity:.55}.rm-list-h{margin:0 0 6px;font-size:14px}.rm-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr))}.rm-cards li{min-width:0}.rm-cards .rm-rcard{height:100%}.rm-dots{display:flex;flex-wrap:wrap;gap:4px}.rm-dot{font-size:11px;padding:0 6px;border-radius:99px;background:var(--bg-elevated);color:var(--text-sub)}.rm-dot.s-done{background:var(--chip-done-bg);color:var(--chip-done-fg)}.rm-dot.s-in-progress{background:var(--chip-waiting-bg);color:var(--chip-waiting-fg)}.rm-timeline-grid{display:flex;flex-direction:column;overflow-x:auto;border:1px solid var(--border-dim);border-radius:8px}.rm-timeline-grid>.rm-head-row,.rm-timeline-grid>.rm-row{display:grid;grid-template-columns:150px repeat(var(--rm-cols, 1),minmax(120px,1fr))}.rm-cell{padding:6px;border-top:1px solid var(--border-dim);border-left:1px dashed var(--border-dim);min-width:0}.rm-head{background:var(--bg-lane);font-weight:600;border-top:0}.rm-lane{font-weight:500;border-left:0;overflow-wrap:anywhere}.rm-gate-count,.rm-gate-note{display:inline-block;margin:2px 0;padding:1px 6px;font-size:11px;border:1px dashed var(--mk-warn);border-radius:6px;background:var(--mk-warn-bg);overflow-wrap:anywhere}.rm-tile{position:relative;display:flex;align-items:center;gap:5px;margin:0 0 4px;padding:3px 6px;font-size:12px;border:1px solid var(--border-bright);border-radius:6px;background:var(--bg-card);max-width:100%;overflow-wrap:anywhere}.rm-tile[data-state=done]{background:var(--chip-done-bg);color:var(--chip-done-fg)}.rm-tile[data-state=in-progress]{background:var(--chip-waiting-bg);color:var(--chip-waiting-fg)}.rm-tile[data-state=blocked]{background:var(--mk-warn-bg);border-color:var(--mk-warn-line)}.rm-tile[data-state=moved]{background:repeating-linear-gradient(135deg,var(--chip-done-bg) 0 5px,var(--bg-card) 5px 10px)}.rm-risk{width:7px;height:7px;margin-left:auto;border-radius:50%;background:var(--mk-bad);flex:none}.rm-timeline-list{display:none}@media(max-width:900px){.rm-timeline-grid{display:none}.rm-timeline-list{display:block}.rm-cols,.rm-cols.rm-cols-4{grid-template-columns:1fr}}.rm-legend{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;color:var(--text-dim)}.rm-ms{border:1px solid var(--border-dim);border-radius:10px;background:var(--bg-card);padding:8px 12px;margin-bottom:8px}.rm-ms>summary{cursor:pointer;display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}.rm-ms[open]>.flow-list{margin-top:8px}.rm-plan{border:1px solid var(--border-dim);border-radius:10px;background:var(--bg-card);padding:12px 14px}.rm-plan[open]{gap:12px}.rm-plan-sum{cursor:pointer;display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;list-style:none}.rm-plan-sum::-webkit-details-marker{display:none}.rm-plan-sum:before{content:"▸";color:var(--text-sub);transition:transform .15s ease}.rm-plan[open]>.rm-plan-sum:before{transform:rotate(90deg)}.rm-plan-title{font-weight:600;font-size:15.5px;min-width:0;overflow-wrap:anywhere}.rm-pkpis{flex-basis:100%;display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding-left:20px;font-size:13.5px;color:var(--text-sub)}.rm-pkpi-num{font-family:Maple Mono,ui-monospace,monospace;font-feature-settings:"zero" on;color:var(--text-main)}.rm-pkpi.tone-prog .rm-pkpi-num{color:var(--mk-accent)}.rm-pkpi.tone-block .rm-pkpi-num{color:var(--mk-warn)}.rm-pbar{display:inline-block;width:120px;height:6px;border-radius:3px;background:var(--border-dim);overflow:hidden}.rm-pbar>span{display:block;height:100%;background:var(--green)}.rm-pr{color:var(--mk-accent);font-size:13px}.rm-stage{font-size:12px;padding:1px 8px;border-radius:99px;background:var(--bg-elevated);color:var(--text-sub)}.rm-stage.tile-done{background:var(--chip-done-bg);color:var(--chip-done-fg)}.rm-stage.tile-in-progress{background:var(--chip-waiting-bg);color:var(--chip-waiting-fg)}.rm-stage.tile-blocked{background:var(--mk-warn-bg);color:var(--mk-warn)}.btn-act{min-height:32px;padding:0 10px;font-size:13px}.act-filters{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.act-filters select{min-height:38px;padding:0 8px;border:1px solid var(--border-bright);border-radius:8px;background:var(--bg-card);color:var(--text-main);font:inherit;max-width:100%}.act-kinds{display:flex;flex-wrap:wrap;gap:6px}.act-kind{min-height:36px;padding:0 12px;border:1px solid var(--border-bright);border-radius:99px;background:transparent;color:var(--text-main);font:inherit;font-size:13px;cursor:pointer}.act-kind[aria-pressed=true]{background:var(--mk-sel);border-color:var(--mk-accent)}.act-time{font-size:12px;color:var(--text-dim)}.act-kindtag{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-dim)}