@caddis/cli 0.4.99 → 0.4.100
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.
- package/bundles/antigravity-plugin/plugin.json +1 -1
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_exit.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_file_lock.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_frontmatter.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_redact.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_roadmap.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_rows.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_status.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_tidy.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_todo.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_workstreams.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_worktree_safety.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/caddis_guide.json +2 -2
- package/bundles/manifest.json +2 -2
- package/dist/allowed-urls.txt +2 -1
- package/dist/export/assets/export-66K2bB7C.js +150 -0
- package/dist/export/assets/export-DhwQd2qc.css +1 -0
- package/dist/export/fonts/jetbrains-mono-400.69ae33df.woff2 +0 -0
- package/dist/export/fonts/jetbrains-mono-500.347650fa.woff2 +0 -0
- package/dist/export/fonts/jetbrains-mono-700.7de821f9.woff2 +0 -0
- package/dist/export/fonts/plus-jakarta-sans-400.9b3aa900.woff2 +0 -0
- package/dist/export/fonts/plus-jakarta-sans-500.91dc7710.woff2 +0 -0
- package/dist/export/fonts/plus-jakarta-sans-600.7689b278.woff2 +0 -0
- package/dist/export/fonts/plus-jakarta-sans-700.55a58633.woff2 +0 -0
- package/dist/export/fonts/plus-jakarta-sans-800.66e135bf.woff2 +0 -0
- package/dist/export/index.html +2 -2
- package/dist/export/licenses/{OFL-IBMPlexMono.txt → OFL-JetBrainsMono.txt} +3 -3
- package/dist/{ui/licenses/OFL-IBMPlexMono.txt → export/licenses/OFL-PlusJakartaSans.txt} +3 -3
- package/dist/ui/assets/{Activity-D69HiVjS.js → Activity-Dzbd3259.js} +1 -1
- package/dist/ui/assets/Guide-Bict51LS.css +1 -0
- package/dist/ui/assets/{Guide-BUXTwb19.js → Guide-DEa3jRqb.js} +2 -2
- package/dist/ui/assets/RoadmapTab-C84_hqg3.js +26 -0
- package/dist/ui/assets/index-BAdqZpU0.js +221 -0
- package/dist/ui/assets/index-DXOh6JPC.css +1 -0
- package/dist/ui/fonts/jetbrains-mono-400.69ae33df.woff2 +0 -0
- package/dist/ui/fonts/jetbrains-mono-500.347650fa.woff2 +0 -0
- package/dist/ui/fonts/jetbrains-mono-700.7de821f9.woff2 +0 -0
- package/dist/ui/fonts/plus-jakarta-sans-400.9b3aa900.woff2 +0 -0
- package/dist/ui/fonts/plus-jakarta-sans-500.91dc7710.woff2 +0 -0
- package/dist/ui/fonts/plus-jakarta-sans-600.7689b278.woff2 +0 -0
- package/dist/ui/fonts/plus-jakarta-sans-700.55a58633.woff2 +0 -0
- package/dist/ui/fonts/plus-jakarta-sans-800.66e135bf.woff2 +0 -0
- package/dist/ui/index.html +2 -2
- package/dist/{export/licenses/OFL-IBMPlexSans.txt → ui/licenses/OFL-JetBrainsMono.txt} +3 -3
- package/dist/ui/licenses/{OFL-IBMPlexSans.txt → OFL-PlusJakartaSans.txt} +3 -3
- package/package.json +1 -1
- package/dist/export/assets/export-B3cUoxL1.js +0 -150
- package/dist/export/assets/export-DQss44R1.css +0 -1
- package/dist/export/fonts/ibm-plex-mono-400.6d569bb7.woff2 +0 -0
- package/dist/export/fonts/ibm-plex-mono-700.9f478677.woff2 +0 -0
- package/dist/export/fonts/ibm-plex-sans-400.17fc1ce7.woff2 +0 -0
- package/dist/export/fonts/ibm-plex-sans-500.dcc69acf.woff2 +0 -0
- package/dist/export/fonts/ibm-plex-sans-600.d4dad061.woff2 +0 -0
- package/dist/export/fonts/ibm-plex-sans-700.40d9a530.woff2 +0 -0
- package/dist/ui/assets/Guide-DTd261-c.css +0 -1
- package/dist/ui/assets/RoadmapTab-CjYa5fye.js +0 -31
- package/dist/ui/assets/index--fRgH-8i.js +0 -236
- package/dist/ui/assets/index-9pdDzLVp.css +0 -1
- package/dist/ui/fonts/ibm-plex-mono-400.6d569bb7.woff2 +0 -0
- package/dist/ui/fonts/ibm-plex-mono-700.9f478677.woff2 +0 -0
- package/dist/ui/fonts/ibm-plex-sans-400.17fc1ce7.woff2 +0 -0
- package/dist/ui/fonts/ibm-plex-sans-500.dcc69acf.woff2 +0 -0
- package/dist/ui/fonts/ibm-plex-sans-600.d4dad061.woff2 +0 -0
- package/dist/ui/fonts/ibm-plex-sans-700.40d9a530.woff2 +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@font-face{font-family:Plus Jakarta Sans;font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/plus-jakarta-sans-400.9b3aa900.woff2) format("woff2")}@font-face{font-family:Plus Jakarta Sans;font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/plus-jakarta-sans-500.91dc7710.woff2) format("woff2")}@font-face{font-family:Plus Jakarta Sans;font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/plus-jakarta-sans-600.7689b278.woff2) format("woff2")}@font-face{font-family:Plus Jakarta Sans;font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/plus-jakarta-sans-700.55a58633.woff2) format("woff2")}@font-face{font-family:Plus Jakarta Sans;font-style:normal;font-weight:800;font-display:swap;src:url(../fonts/plus-jakarta-sans-800.66e135bf.woff2) format("woff2")}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/jetbrains-mono-400.69ae33df.woff2) format("woff2")}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/jetbrains-mono-500.347650fa.woff2) format("woff2")}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/jetbrains-mono-700.7de821f9.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: #07061a;--bg-lane: #0e0c24;--bg-card: #15132e;--bg-elevated: #1e1b3b;--border-dim: #262241;--border-bright: #3a355e;--text-main: #f4f2ff;--text-sub: #c9c4e6;--text-dim: #b9b4d6;--purple: #a78bfa;--pink: #f472b6;--green: #34d399;--yellow: #fbbf24;--red: #fb7185;--cyan: #22d3ee;--orange: #fb923c;--tone-yellow-bg: rgba(251, 191, 36, .1);--tone-yellow-bd: rgba(251, 191, 36, .42);--tone-red-bg: rgba(251, 113, 133, .1);--tone-red-bd: rgba(251, 113, 133, .45);--tone-pink-bg: rgba(244, 114, 182, .12);--tone-pink-bd: rgba(244, 114, 182, .45);--tone-cyan-bg: rgba(34, 211, 238, .1);--tone-cyan-bd: rgba(34, 211, 238, .36);--tone-green-bg: rgba(52, 211, 153, .1);--tone-green-bd: rgba(52, 211, 153, .36);--tone-purple-bg: rgba(167, 139, 250, .14);--tone-purple-bd: rgba(167, 139, 250, .42);--glass-fill-top: rgba(255, 255, 255, .1);--glass-fill-bot: rgba(255, 255, 255, .035);--glass-fill: linear-gradient(135deg, var(--glass-fill-top), var(--glass-fill-bot));--glass-fill-hover: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .06));--glass-bg: var(--glass-fill);--glass-bg-strong: linear-gradient(135deg, rgba(40, 36, 82, .92), rgba(30, 27, 59, .92));--glass-tint: var(--glass-fill);--glass-tint-low: rgba(255, 255, 255, .04);--glass-line: rgba(255, 255, 255, .13);--glass-line-hover: rgba(207, 198, 255, .32);--glass-bd: var(--glass-line);--glass-bd-hover: var(--glass-line-hover);--glass-hl: inset 0 1px 0 rgba(255, 255, 255, .18);--glass-drop: 0 30px 60px -30px rgba(3, 2, 20, .75);--glass-blur: 24px;--glass-filter: blur(var(--glass-blur)) saturate(170%);--glass-foot: rgba(0, 0, 0, .18);--shadow-1: 0 1px 2px rgba(3, 2, 20, .4), 0 8px 24px -12px rgba(3, 2, 20, .6);--shadow-2: var(--glass-drop);--glow-1: rgba(124, 92, 255, .3);--glow-2: rgba(0, 194, 184, .22);--glow-3: rgba(255, 79, 163, .2);--row-hover-bg: rgba(255, 255, 255, .06);--row-sel-bg: rgba(255, 255, 255, .1);--row-sel-ring: inset 0 0 0 1px rgba(196, 181, 253, .45), 0 12px 30px -16px rgba(124, 92, 255, .7);--pill-primary-bg: #ffffff;--pill-primary-fg: #140f2e;--pill-ghost-bg: rgba(255, 255, 255, .04);--pill-ghost-bd: rgba(255, 255, 255, .16);--badge-bg: #f472b6;--badge-fg: #1a0a1a;--ring-track: rgba(255, 255, 255, .12);--kbd-bg: rgba(255, 255, 255, .08);--ease-out: cubic-bezier(.2, .8, .2, 1);--dur-1: .15s;--dur-2: .24s;--dur-3: .35s;--radius-panel: 24px;--radius-card: 22px;--radius-row: 16px;--radius-pill: 999px;--focus-ring: #c4b5fd;--sidebar-w: 236px;--sidebar-inset: 14px;--font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;--font-head: "Plus Jakarta Sans", system-ui, "Segoe UI", sans-serif;--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace}[data-theme=light]{color-scheme:light;--bg-canvas: #f4f3fb;--bg-lane: #f9f8fd;--bg-card: #ffffff;--bg-elevated: #eceaf7;--border-dim: #e2dff0;--border-bright: #c9c4e0;--text-main: #16132e;--text-sub: #3d3960;--text-dim: #545072;--purple: #6d28d9;--pink: #be185d;--green: #04694c;--yellow: #92400e;--red: #be123c;--cyan: #0b6577;--orange: #c2410c;--tone-yellow-bg: rgba(146, 64, 14, .08);--tone-yellow-bd: rgba(146, 64, 14, .35);--tone-red-bg: rgba(190, 18, 60, .08);--tone-red-bd: rgba(190, 18, 60, .35);--tone-pink-bg: rgba(190, 24, 93, .08);--tone-pink-bd: rgba(190, 24, 93, .35);--tone-cyan-bg: rgba(11, 101, 119, .08);--tone-cyan-bd: rgba(11, 101, 119, .35);--tone-green-bg: rgba(4, 105, 76, .08);--tone-green-bd: rgba(4, 105, 76, .35);--tone-purple-bg: rgba(109, 40, 217, .09);--tone-purple-bd: rgba(109, 40, 217, .35);--glass-fill-top: rgba(255, 255, 255, .72);--glass-fill-bot: rgba(255, 255, 255, .56);--glass-fill-hover: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .7));--glass-bg-strong: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(249, 248, 253, .96));--glass-tint-low: rgba(255, 255, 255, .5);--glass-line: rgba(22, 19, 46, .08);--glass-line-hover: rgba(109, 40, 217, .35);--glass-hl: inset 0 1px 0 rgba(255, 255, 255, .9);--glass-drop: 0 30px 60px -30px rgba(60, 40, 140, .25);--glass-foot: rgba(22, 19, 46, .03);--shadow-1: 0 1px 2px rgba(40, 30, 90, .08), 0 8px 24px -12px rgba(40, 30, 90, .18);--glow-1: rgba(124, 92, 255, .22);--glow-2: rgba(0, 194, 184, .16);--glow-3: rgba(255, 79, 163, .14);--row-hover-bg: rgba(22, 19, 46, .04);--row-sel-bg: rgba(255, 255, 255, .9);--row-sel-ring: inset 0 0 0 1px rgba(109, 40, 217, .35), 0 12px 30px -16px rgba(109, 40, 217, .35);--pill-primary-bg: #16132e;--pill-primary-fg: #ffffff;--pill-ghost-bg: rgba(255, 255, 255, .6);--pill-ghost-bd: rgba(22, 19, 46, .16);--badge-bg: #be185d;--badge-fg: #ffffff;--ring-track: rgba(22, 19, 46, .1);--kbd-bg: rgba(22, 19, 46, .06);--focus-ring: #6d28d9}html[data-motion=off]{--glass-filter: none;--glass-bg: var(--bg-card);--glass-bg-strong: var(--bg-elevated);--glass-fill: var(--bg-card);--glass-fill-hover: var(--bg-elevated)}@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){html:root{--glass-filter: none;--glass-bg: var(--bg-card);--glass-bg-strong: var(--bg-elevated);--glass-fill: var(--bg-card);--glass-fill-hover: var(--bg-elevated)}}@media(prefers-reduced-transparency:reduce){html:root{--glass-filter: none;--glass-bg: var(--bg-card);--glass-bg-strong: var(--bg-elevated);--glass-tint: var(--bg-card);--glass-tint-low: var(--bg-lane);--glass-fill: var(--bg-card);--glass-fill-hover: var(--bg-elevated)}}*,*: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:var(--font-body);font-size:14px;line-height:1.5;word-spacing:.06em;-webkit-font-smoothing:antialiased;overflow-x:hidden}body{background-color:var(--bg-canvas);font-variant-numeric:tabular-nums;background-image:radial-gradient(circle closest-side,var(--glow-1),transparent),radial-gradient(circle closest-side,var(--glow-2),transparent),radial-gradient(circle closest-side,var(--glow-3),transparent);background-size:1200px 1200px,960px 960px,1040px 1040px;background-position:left calc(8vw - 600px) top -560px,right -480px top calc(18vh - 480px),left calc(45% - 520px) bottom -560px;background-repeat:no-repeat}@media print{body{background-image:none}}strong,b{font-weight:600}h1,h2,h3,h4{font-weight:700}h1,h2,h3,.page-title,.rm-title,.flow-h{font-family:var(--font-head)}h1{letter-spacing:-.01em}.gp-title,.gm-title{letter-spacing:-.02em}.headline{font-family:var(--font-head);font-size:40px;font-weight:800;line-height:1.08;letter-spacing:-.02em;color:var(--text-main)}.headline-sub{font-size:15px;color:var(--text-sub)}.page-eyebrow{font-size:14px;font-weight:500;letter-spacing:0;color:var(--text-dim)}kbd{font-family:var(--font-mono);font-size:11px;background:var(--kbd-bg);border-radius:5px;padding:0 5px;color:inherit}@media(max-width:720px){.headline{font-size:30px}}.mono,code{font-family:var(--font-mono);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,input,select,textarea{letter-spacing:inherit;word-spacing: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:.45}}@keyframes hub-rise{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes hub-fade{0%{opacity:0}to{opacity:1}}@keyframes hub-pulse{0%{box-shadow:0 0 #34d39999}70%{box-shadow:0 0 0 8px #34d39900}to{box-shadow:0 0 #34d39900}}@keyframes hub-spin{to{transform:rotate(360deg)}}@keyframes hub-fade-up{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes hub-fill{0%{transform:scaleX(0)}to{transform:scaleX(1)}}.kpi-strip>*,.repo-cards>*,.ov-top>*,.rm-cards>*,.gp-flow>*,.gp-bands>*{animation:hub-rise .18s var(--ease-out) backwards}.kpi-strip>:nth-child(2),.repo-cards>:nth-child(2),.ov-top>:nth-child(2),.rm-cards>:nth-child(2),.gp-flow>:nth-child(2),.gp-bands>:nth-child(2){animation-delay:20ms}.kpi-strip>:nth-child(3),.repo-cards>:nth-child(3),.ov-top>:nth-child(3),.rm-cards>:nth-child(3),.gp-flow>:nth-child(3),.gp-bands>:nth-child(3){animation-delay:40ms}.kpi-strip>:nth-child(4),.repo-cards>:nth-child(4),.ov-top>:nth-child(4),.rm-cards>:nth-child(4),.gp-flow>:nth-child(4),.gp-bands>:nth-child(4){animation-delay:60ms}.kpi-strip>:nth-child(5),.repo-cards>:nth-child(5),.ov-top>:nth-child(5),.rm-cards>:nth-child(5),.gp-flow>:nth-child(5),.gp-bands>:nth-child(5){animation-delay:80ms}.kpi-strip>:nth-child(6),.repo-cards>:nth-child(6),.ov-top>:nth-child(6),.rm-cards>:nth-child(6),.gp-flow>:nth-child(6),.gp-bands>:nth-child(6){animation-delay:.1s}.kpi-strip>:nth-child(n+7),.repo-cards>:nth-child(n+7),.ov-top>:nth-child(n+7),.rm-cards>:nth-child(n+7),.gp-flow>:nth-child(n+7),.gp-bands>:nth-child(n+7){animation-delay:.12s}.kpi-tile,.repo-card,.rm-rcard,.gp-stage,.gp-band,.gp-card{position:relative;transition:transform var(--dur-1) var(--ease-out)}.kpi-tile:before,.repo-card:before,.rm-rcard:before,.gp-stage:before,.gp-band:before,.gp-card:before{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border-radius:inherit;box-shadow:var(--shadow-2);opacity:0;pointer-events:none;transition:opacity var(--dur-1) var(--ease-out)}@media(hover:hover){.kpi-tile:hover,.repo-card:hover,.rm-rcard:not(.rm-pcard):hover,.gp-stage:hover,.gp-band:hover,.gp-card:hover{transform:translateY(-2px);border-color:var(--glass-bd-hover)}.kpi-tile:hover:before,.repo-card:hover:before,.rm-rcard:not(.rm-pcard):hover:before,.gp-stage:hover:before,.gp-band:hover:before,.gp-card:hover:before{opacity:1}}.btn,.menu-btn,.theme-btn,.folder-btn,.item-btn,.act-kind,.rm-tile,.rm-view button,.gp-switch button,.guide-jump{transition:transform .1s var(--ease-out)}.btn:active:not(:disabled),.menu-btn:active,.theme-btn:active,.folder-btn:active,.item-btn:active,.act-kind:active,.rm-tile:active,.rm-view button:active,.gp-switch button:active,.guide-jump:active{transform:scale(.98)}.rm-rcard:not(.rm-pcard):active{transform:translateY(0) scale(.98);transition-duration:.1s}.rm-bar i,.rm-pbar>span{transform-origin:left center;animation:hub-fill var(--dur-2) var(--ease-out) 60ms backwards}.rm-tile[data-state=in-progress]>svg:first-child{animation:work-pulse 2.2s ease-in-out infinite}html[data-motion=off] *,html[data-motion=off] *:before,html[data-motion=off] *:after{animation-duration:.01ms!important;animation-delay:0s!important;animation-iteration-count:1!important;transition-duration:.01ms!important;transition-delay:0s!important;scroll-behavior:auto!important}@media(prefers-reduced-motion:reduce){html:not([data-motion]) *,html:not([data-motion]) *:before,html:not([data-motion]) *:after{animation-duration:.01ms!important;animation-delay:0s!important;animation-iteration-count:1!important;transition-duration:.01ms!important;transition-delay:0s!important;scroll-behavior:auto!important}}html[data-motion=off] .kpi-tile:hover,html[data-motion=off] .repo-card:hover,html[data-motion=off] .pill:active,html[data-motion=off] .btn-primary:active,html[data-motion=off] .rm-rcard:hover,html[data-motion=off] .gp-stage:hover,html[data-motion=off] .gp-band:hover,html[data-motion=off] .gp-card:hover,html[data-motion=off] .btn:active,html[data-motion=off] .menu-btn:active,html[data-motion=off] .theme-btn:active,html[data-motion=off] .folder-btn:active,html[data-motion=off] .item-btn:active,html[data-motion=off] .act-kind:active,html[data-motion=off] .rm-tile:active,html[data-motion=off] .rm-rcard:active,html[data-motion=off] .rm-view button:active,html[data-motion=off] .gp-switch button:active,html[data-motion=off] .guide-jump:active{transform:none}.tip{display:flex;flex-direction:column;gap:2px;z-index:60;max-width:320px;padding:8px 10px;border-radius:8px;border:1px solid var(--glass-bd);background:var(--glass-bg-strong);-webkit-backdrop-filter:var(--glass-filter);backdrop-filter:var(--glass-filter);box-shadow:var(--glass-hl),var(--shadow-2);color:var(--text-main);font-size:13px;line-height:1.45;animation:hub-rise var(--dur-1) var(--ease-out) backwards}.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(--glass-bg);-webkit-backdrop-filter:var(--glass-filter);backdrop-filter:var(--glass-filter);border-bottom:1px solid var(--glass-line);box-shadow:var(--glass-hl);padding:10px 14px;align-items:center;justify-content:space-between;gap:10px}.menu-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;background:var(--pill-ghost-bg);border:1px solid var(--pill-ghost-bd);color:var(--text-main);padding:6px 12px;border-radius:12px;font-size:14px;font-weight:600;cursor:pointer}.drawer-backdrop{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background:#0302148c;z-index:49}.drawer-backdrop.open{display:block;animation:hub-fade var(--dur-2) var(--ease-out)}.sidebar{width:var(--sidebar-w);background:var(--glass-fill);-webkit-backdrop-filter:var(--glass-filter);backdrop-filter:var(--glass-filter);border:1px solid var(--glass-line);border-radius:22px;box-shadow:var(--glass-hl),var(--glass-drop);position:fixed;top:var(--sidebar-inset);bottom:var(--sidebar-inset);left:var(--sidebar-inset);z-index:50;padding:18px 12px;display:flex;flex-direction:column;justify-content:space-between;gap:18px;transition:transform var(--dur-2) var(--ease-out),visibility 0s linear var(--dur-2);overflow-x:hidden;overflow-y:auto;scrollbar-width:thin}.sidebar-top{display:flex;flex-direction:column;gap:18px}.brand-row{display:flex;align-items:center;padding:2px 8px}.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-mark-still,html[data-motion=off] .brand-mark-anim{display:none}html[data-motion=off] .brand-mark-still{display:block}.brand-stack{display:flex;flex-direction:column;gap:4px;min-width:0}.brand-wordmark{width:100px;height:20px}.brand-sub{font-size:12px;line-height:12px;font-weight:400;letter-spacing:.08em;text-transform:uppercase;color:var(--text-dim)}.nav-list{display:flex;flex-direction:column;gap:2px;list-style:none}.nav-sublist{display:flex;flex-direction:column;gap:2px;list-style:none;margin:2px 0 4px 20px;padding-left:8px;border-left:1px solid var(--glass-line)}.nav-sublink{height:32px;font-size:13px}.nav-section-label{font-size:12px;font-weight:600;color:var(--text-dim);padding:0 12px;margin-bottom:-12px}.nav-empty{padding:6px 12px;color:var(--text-dim);font-size:13px}.nav-link{display:flex;align-items:center;gap:10px;height:36px;padding:0 12px;border-radius:12px;color:var(--text-sub);text-decoration:none;font-weight:500;font-size:14px;transition:background .18s ease,color .18s ease;min-width:0}.nav-link:hover{background:var(--row-hover-bg);color:var(--text-main)}.nav-link.active{background:var(--row-sel-bg);box-shadow:var(--glass-hl);color:var(--text-main);font-weight:600}.nav-link-left{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 auto}.nav-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav-hint{margin-left:auto;flex-shrink:0;font-size:12px;font-weight:400;color:var(--text-dim);white-space:nowrap}.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;min-width:20px;height:20px;padding:0 7px;border-radius:var(--radius-pill);font-size:12px;font-weight:700;background:var(--badge-bg);color:var(--badge-fg);flex-shrink:0}.repo-dot{width:8px;height:8px;margin:0 5px;border-radius:50%;flex-shrink:0}.repo-dot.attention{background:var(--yellow)}.repo-dot.blocked{background:var(--red)}.repo-dot.ok{background:var(--green)}.repo-dot.idle{background:var(--text-dim);opacity:.6}.repo-dot.working{animation:hub-pulse 2.2s ease-out infinite}.sidebar-footer{display:flex;flex-direction:column}.footer-card{display:flex;flex-direction:column;gap:10px;padding:12px;border-radius:16px;background:var(--glass-tint-low);border:1px solid var(--glass-line);font-size:12px;color:var(--text-dim)}.spend-block{display:flex;align-items:center;gap:12px}.spend-text{display:flex;flex-direction:column;line-height:1.3;min-width:0}.spend-amount{font-size:14px;font-weight:700;color:var(--text-main)}.spend-label{font-size:12px;font-weight:500;color:var(--text-dim)}.spend-note{font-size:12px;color:var(--text-dim)}.spend-note.hot{color:var(--yellow);font-weight:600}.updated-line{display:flex;align-items:center;gap:6px;color:var(--text-dim);font-size:12px;line-height:1.35}.spend-label,.spend-amount,.versions-item{white-space:nowrap}.ring{flex-shrink:0;display:block}.ring-track{stroke:var(--ring-track)}.ring-good .ring-fill{stroke:var(--green)}.ring-prog .ring-fill{stroke:var(--purple)}.ring-warn .ring-fill{stroke:var(--yellow)}.ring-muted .ring-fill{stroke:var(--text-dim)}.ring-text{fill:var(--text-main);font:700 11px var(--font-body)}.versions{display:flex;flex-wrap:wrap;gap:2px 8px;color:var(--text-dim);font-size:11px}.footer-toggles{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px}.theme-switch{display:inline-flex;gap:4px}.theme-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;background:transparent;border:1px solid var(--glass-line);border-radius:8px;color:var(--text-sub);cursor:pointer;transition:background .18s ease,color .18s ease,transform .1s var(--ease-out)}.theme-btn:hover{background:var(--row-hover-bg);color:var(--text-main)}.theme-btn>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.theme-btn.active{background:var(--row-sel-bg);box-shadow:var(--glass-hl);color:var(--text-main)}[data-theme=light] .nav-link.active,[data-theme=light] .theme-btn.active{background:var(--tone-purple-bg)}.main-area{flex:1;margin-left:calc(var(--sidebar-w) + 2 * var(--sidebar-inset));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:26px;font-weight:800;letter-spacing:-.03em;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:10px;background:var(--glass-fill);border:1px solid var(--glass-line);box-shadow:var(--glass-hl);border-radius:var(--radius-row);padding:18px 20px;max-width:560px}.notice .btn{align-self:flex-start}@keyframes hub-shimmer{0%,to{opacity:1}50%{opacity:.5}}.skeleton{display:flex;flex-direction:column;gap:18px}.sk-line,.sk-block{border-radius:var(--radius-row);background:var(--glass-tint-low);border:1px solid var(--glass-line);animation:hub-shimmer 1.6s ease-in-out infinite}.sk-title{width:min(320px,70%);height:40px}.sk-block{height:160px}.sk-block+.sk-block{height:260px}.banners{display:flex;flex-direction:column;gap:8px}.banner{display:flex;align-items:flex-start;gap:10px;border-radius:var(--radius-row);padding:12px 16px;font-size:14px;border:1px solid var(--tone-yellow-bd);background:var(--glass-fill);box-shadow:var(--glass-hl)}.banner svg{flex-shrink:0;margin-top:2px}.banner.warn svg{color:var(--yellow)}.banner.bad{border-color:var(--tone-red-bd)}.banner.bad svg{color:var(--red)}.kpi-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.kpi-tile{background:var(--glass-fill);border:1px solid var(--glass-line);box-shadow:var(--glass-hl),var(--shadow-1);border-radius:18px;padding:14px 18px;display:flex;flex-direction:column;justify-content:space-between;gap:6px;text-decoration:none;color:var(--text-main);min-width:0}.kpi-tile.urgent{border-color:var(--tone-yellow-bd);background:linear-gradient(var(--tone-yellow-bg),var(--tone-yellow-bg)),var(--bg-lane)}.kpi-tile.danger{border-color:var(--tone-red-bd);background:linear-gradient(var(--tone-red-bg),var(--tone-red-bg)),var(--bg-lane)}.kpi-label{font-size:12px;color:var(--text-dim);font-weight:600;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;overflow-wrap:anywhere}@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{top:0;left:0;bottom:0;width:250px;border-radius:0 22px 22px 0;transform:translate(-100%);visibility:hidden}.sidebar.drawer-open{transform:translate(0);visibility:visible;box-shadow:var(--glass-hl),var(--glass-drop);transition:transform var(--dur-2) var(--ease-out),visibility 0s}.main-area{margin-left:0}.page-wrap{padding:16px 12px 36px;gap:20px}.kpi-strip{grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:8px}}:root,[data-theme=dark]{--mk-accent: #22d3ee;--mk-sel: #2a2652;--mk-bad: #fda4af;--mk-good: #34d399;--mk-warn: #fbbf24;--mk-warn-bg: rgba(251, 191, 36, .1);--mk-warn-line: rgba(251, 191, 36, .45);--chip-waiting-bg: rgba(34, 211, 238, .16);--chip-waiting-fg: #67e8f9;--chip-gate-bg: rgba(167, 139, 250, .18);--chip-gate-fg: #ddd6fe;--chip-bad-bg: rgba(251, 113, 133, .16);--chip-bad-fg: #fecdd3;--chip-coord-bg: rgba(251, 191, 36, .16);--chip-coord-fg: #fcd34d;--chip-done-bg: rgba(52, 211, 153, .16);--chip-done-fg: #6ee7b7;--tile-amber: linear-gradient(135deg, #fbbf24, #f97316);--tile-red: linear-gradient(135deg, #fb7185, #e11d48);--tile-violet: linear-gradient(135deg, #a78bfa, #7c3aed);--tile-cyan: linear-gradient(135deg, #22d3ee, #0891b2);--tile-pink: linear-gradient(135deg, #f472b6, #db2777);--tile-grey: linear-gradient(135deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .12))}[data-theme=light]{--mk-accent: #0b6577;--mk-sel: #e6e1fb;--mk-bad: #be123c;--mk-good: #04694c;--mk-warn: #92400e;--mk-warn-bg: rgba(146, 64, 14, .08);--mk-warn-line: rgba(146, 64, 14, .4);--chip-waiting-bg: #dbf4fa;--chip-waiting-fg: #0e5f73;--chip-gate-bg: #ede7fe;--chip-gate-fg: #5b21b6;--chip-bad-bg: #fde4e8;--chip-bad-fg: #9f1239;--chip-coord-bg: #fef0c7;--chip-coord-fg: #7c3a0a;--chip-done-bg: #d9f5e8;--chip-done-fg: #065f46;--tile-grey: linear-gradient(135deg, #8b87a8, #6b6790)}.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:26px;font-weight:800;line-height:1.1;font-variant-numeric:tabular-nums}.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}.rm-kpis .kpi-tile{display:grid;grid-template-rows:auto 1fr minmax(1.4em,auto)}.rm-kpis .kpi-tile>.kpi-num,.rm-kpis .kpi-tile>.kpi-val{align-self:end}.rm-kpis .kpi-tile.deploy .kpi-val{font-size:19px;overflow-wrap:anywhere}.page-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px}.page-head-text{display:flex;flex-direction:column;gap:6px;min-width:0}.page-head .page-title.page-eyebrow{margin:0;font-size:14px;font-weight:500;letter-spacing:0;color:var(--text-dim)}.page-head .headline,.page-head .headline-sub{margin:0}.page-head .headline-sub{margin-top:2px}.page-head.stale .headline-sub{opacity:.7}.pill-group{display:inline-flex;flex-wrap:wrap;gap:2px;padding:4px;border-radius:var(--radius-pill);background:var(--glass-fill);border:1px solid var(--glass-line);box-shadow:var(--glass-hl)}.pill-group .pill{display:inline-flex;align-items:center;gap:6px;width:auto;height:32px;min-height:32px;padding:0 14px;border:1px solid transparent;border-radius:var(--radius-pill);background:transparent;color:var(--text-sub);font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer;transition:background var(--dur-1) ease,color var(--dur-1) ease,transform .1s var(--ease-out)}.pill-group .pill:hover{background:var(--row-hover-bg);color:var(--text-main)}.pill-group .pill.sel{background:var(--row-sel-bg);box-shadow:var(--glass-hl);color:var(--text-main)}[data-theme=light] .pill-group .pill.sel{background:var(--tone-purple-bg)}.pill-group .pill:active{transform:scale(.97)}.pill-count{color:var(--text-dim);font-weight:500}.mailbox{display:flex;flex-wrap:wrap;gap:18px;align-items:flex-start}.folder-btn{display:flex;align-items:center;gap:10px;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.sel{background:var(--mk-sel)}.folder-btn:hover{background:var(--bg-elevated)}.mailbox-list{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:2px;padding:14px;border-radius:var(--radius-panel);background:var(--glass-fill);border:1px solid var(--glass-line);box-shadow:var(--glass-hl),var(--glass-drop)}.item-btn{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:12px;border:0;border-radius:var(--radius-row);text-align:left;background:transparent;color:var(--text-main);font-size:14px;cursor:pointer;transition:background var(--dur-2) ease,box-shadow var(--dur-2) ease,transform var(--dur-2) var(--ease-out)}.item-btn:hover{background:var(--row-hover-bg)}.item-btn.sel{background:var(--row-sel-bg);box-shadow:var(--row-sel-ring)}.mailbox-list .item-btn:active{transform:scale(.993)}.unread-dot{position:absolute;left:8px;top:8px;z-index:1;width:9px;height:9px;border-radius:50%;background:transparent}.unread-dot.on{background:var(--mk-accent);box-shadow:0 0 0 2px var(--bg-lane)}.kind-tile{flex:none;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:11px;color:#fff;box-shadow:inset 0 1px #ffffff59}.kind-tile.tile-amber{background:var(--tile-amber)}.kind-tile.tile-red{background:var(--tile-red)}.kind-tile.tile-violet{background:var(--tile-violet)}.kind-tile.tile-cyan{background:var(--tile-cyan)}.kind-tile.tile-pink{background:var(--tile-pink)}.kind-tile.tile-grey{background:var(--tile-grey)}.item-main{flex:1;display:flex;flex-direction:column;gap:1px;min-width:0}.item-title{font-weight:600;color:var(--text-main);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13px;color:var(--text-dim)}.item-meta .mono{font-size:12px}.item-age{flex:none;font-size:12px;color:var(--text-dim)}.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:1 1 380px;min-width:0;display:flex;flex-direction:column;gap:18px;padding:24px;border-radius:var(--radius-panel);background:var(--glass-fill);-webkit-backdrop-filter:var(--glass-filter);backdrop-filter:var(--glass-filter);border:1px solid var(--glass-line);box-shadow:var(--glass-hl),var(--glass-drop);animation:hub-fade-up .32s var(--ease-out)}.detail-meta{font-size:12px;gap:8px}.detail-meta .chip{padding:3px 10px;font-weight:700}.mailbox-detail h2{margin:0;font-size:22px;line-height:1.25;font-weight:700;letter-spacing:-.02em;overflow-wrap:anywhere}.detail-block{display:flex;flex-direction:column;gap:4px}.detail-label{font-size:12px;font-weight:700;color:var(--text-dim)}.detail-actions{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;padding-top:4px}.mailbox-detail .btn{min-height:38px;padding:0 16px;border-radius:var(--radius-pill);border:1px solid var(--pill-ghost-bd);background:var(--pill-ghost-bg);color:var(--text-main);font-weight:600}.mailbox-detail .btn:hover:not(:disabled){background:var(--row-hover-bg);border-color:var(--glass-line-hover)}.btn.btn-primary,.mailbox-detail .btn.btn-primary{height:38px;min-height:38px;padding:0 18px;border-radius:var(--radius-pill);border:0;background:var(--pill-primary-bg);color:var(--pill-primary-fg);font-weight:700;transition:filter var(--dur-1) ease,box-shadow var(--dur-2) ease,transform .1s var(--ease-out)}.btn.btn-primary:hover:not(:disabled),.mailbox-detail .btn.btn-primary:hover:not(:disabled){background:var(--pill-primary-bg);filter:brightness(1.05);box-shadow:0 10px 30px -10px #a78bfacc}.btn.btn-primary:active:not(:disabled){transform:scale(.97)}.key-hints{margin:0;font-size:12px;color:var(--text-dim)}.back-btn{display:none}.notify-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:14px;color:var(--text-sub)}.notify-row .btn{border-radius:var(--radius-pill);border-color:var(--pill-ghost-bd);background:var(--pill-ghost-bg)}.inbox-strips{display:flex;flex-wrap:wrap;gap:18px}.strip-card{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:14px;padding:18px 20px;border-radius:var(--radius-panel);background:var(--glass-fill);border:1px solid var(--glass-line);box-shadow:var(--glass-hl)}.strip-card.strip-ships{flex-basis:380px;gap:6px;padding:18px 8px 10px}.strip-title{margin:0;font-size:12px;font-weight:700;letter-spacing:0;color:var(--text-dim)}.strip-ships .strip-title{padding:0 12px 4px}.strip-rm{display:flex;flex-direction:column;gap:8px}.strip-rm-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;font-size:13px}.strip-rm-name a{font-weight:600;color:var(--text-main);text-decoration:none}.strip-rm-name a:hover{text-decoration:underline}.strip-repo,.ship-repo{font-size:12px;color:var(--text-dim)}.strip-rm-label{color:var(--text-sub)}.seg-bar{display:flex;gap:4px}.seg{flex:1;height:8px;border-radius:4px;background:var(--ring-track)}.seg-done{background:linear-gradient(90deg,var(--purple),var(--cyan))}.seg-prog{background:var(--tone-purple-bd)}.seg-wait{background:var(--yellow)}.seg-block{background:var(--red)}.seg-todo{background:var(--ring-track)}.ship-row{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:12px;font-size:13px}.ship-row:hover{background:var(--row-hover-bg)}.ship-check{flex:none;color:var(--green)}.ship-repo{flex:none;width:124px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ship-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-main)}.ship-title a{color:inherit;text-decoration:none}.ship-title a:hover{text-decoration:underline}.ship-age{flex:none;font-size:12px;color:var(--text-dim)}@media(max-width:720px){.mailbox{flex-direction:column;align-items:stretch}.mailbox.show-detail .mailbox-list{display:none}.mailbox:not(.show-detail) .mailbox-detail{display:none}.mailbox-list{padding:8px}.mailbox-detail{padding:18px}.page-head>.pill-group{display:flex;width:100%;border-radius:18px}.pill-group .pill{flex:1 1 auto;justify-content:center;padding:0 8px;font-size:12px}.back-btn{display:inline-flex;align-self:flex-start}.ship-repo{width:96px}}.glass-panel{display:flex;flex-direction:column;min-width:0;padding:22px;border-radius:26px;background:var(--glass-fill);border:1px solid var(--glass-line);box-shadow:var(--glass-hl),var(--glass-drop)}.ov-top{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}.ov-needs{flex:2 1 560px;gap:10px}.ov-live{flex:1 1 320px;gap:16px}.ov-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 6px 6px}.ov-live .ov-panel-head{padding-bottom:0}.ov-panel-head h2,.ov-repos-head h2{margin:0;font-size:15px;font-weight:700;letter-spacing:0}.ov-all{font-size:13px;font-weight:600;color:var(--purple);text-decoration:none}.ov-all:hover{text-decoration:underline}.ov-empty{margin:0;padding:6px;color:var(--text-sub)}.ov-need-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.ov-need{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:14px;border-radius:18px;background:var(--glass-tint-low);border:1px solid var(--glass-line)}.ov-need .kind-tile{width:42px;height:42px;border-radius:13px}.ov-need-main{flex:1 1 240px;min-width:0;display:flex;flex-direction:column;gap:2px}.ov-need-title{font-size:15px;font-weight:600;color:var(--text-main);overflow-wrap:anywhere}.ov-need-meta{font-size:13px;color:var(--text-dim)}.ov-need-meta .mono{font-size:12px}.ov-need .btn{height:36px;min-height:36px;padding:0 16px;border-radius:var(--radius-pill);font-size:13px;font-weight:700}.btn.btn-ghost{border:1px solid var(--pill-ghost-bd);background:var(--pill-ghost-bg);color:var(--text-main)}.btn.btn-ghost:hover:not(:disabled){background:var(--row-hover-bg);border-color:var(--glass-line-hover)}.ov-need .btn.btn-primary{height:36px;min-height:36px;padding:0 16px}.live-row{display:flex;align-items:center;gap:16px;padding:14px;border-radius:18px;background:var(--tone-cyan-bg);border:1px solid var(--tone-cyan-bd)}.live-mark{position:relative;flex:none;width:52px;height:52px}.live-orb{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;background:conic-gradient(from 0deg,#22d3ee,#a78bfa,#f472b6,#22d3ee);animation:hub-spin 6s linear infinite}.live-core{position:absolute;top:4px;right:4px;bottom:4px;left:4px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--bg-lane);color:var(--chip-waiting-fg)}.live-text{display:flex;flex-direction:column;gap:2px;min-width:0}.live-name{font-weight:700;overflow-wrap:anywhere}.live-where{font-size:13px;color:var(--chip-waiting-fg)}.live-idle{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}.live-idle li{display:flex;align-items:center;gap:12px;padding:8px 6px;min-width:0}.live-idle-dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--text-dim);opacity:.6}.live-idle-name{flex:1;min-width:0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.live-idle-repo{flex:none;font-size:12px;color:var(--text-dim)}.live-idle .live-more{font-size:13px;color:var(--text-dim)}.ov-spend{margin-top:auto;padding:14px;border-radius:18px;background:var(--glass-tint-low);border:1px solid var(--glass-line)}.ov-spend .spend-block{gap:14px}.ov-spend .spend-amount{font-size:18px}.ov-spend .spend-label{font-size:13px}.ov-repos{display:flex;flex-direction:column;gap:14px}.ov-repos-head{display:flex;justify-content:space-between;align-items:baseline;padding:0 8px}.ov-repos-head span{font-size:13px;color:var(--text-dim)}.repo-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.repo-card{position:relative;display:flex;flex-direction:column;gap:14px;min-width:0;padding:18px;border-radius:var(--radius-card);background:var(--glass-fill);border:1px solid var(--glass-line);box-shadow:var(--glass-hl);transition:transform var(--dur-3) var(--ease-out),border-color var(--dur-3) ease}@media(hover:hover){.repo-card:hover{transform:translateY(-3px);border-color:var(--glass-line-hover)}}.repo-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.repo-card-id{display:flex;flex-direction:column;gap:4px;min-width:0}.repo-card-link{font-size:15px;font-weight:700;color:var(--text-main);text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.repo-card-link:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;border-radius:inherit}.repo-card-link:focus-visible{outline:none}.repo-card-link:focus-visible:after{outline:2px solid var(--focus-ring);outline-offset:2px}.repo-card-status{font-size:12px;font-weight:600}.repo-card-status.tone-good{color:var(--chip-waiting-fg)}.repo-card-status.tone-warn{color:var(--chip-coord-fg)}.repo-card-status.tone-bad{color:var(--mk-bad)}.repo-card-status.tone-muted{color:var(--text-sub)}.repo-card .ring{flex:none}.repo-card p{margin:0}.repo-card-line{font-size:13px;color:var(--text-sub)}.repo-card-sessions{font-size:13px;color:var(--text-dim)}.repo-card .lane-note{font-size:13px;border-radius:12px}.repo-card.down .lane-note.repo-card-note,.repo-card.stopped .lane-note.repo-card-note{background:var(--mk-warn-bg);border-color:var(--mk-warn-line)}.repo-card-foot{margin-top:auto;padding-top:10px;border-top:1px solid var(--glass-line);font-size:12px;color:var(--text-dim)}@media(max-width:720px){.glass-panel{padding:16px}.ov-need-main{flex:1 1 calc(100% - 56px)}.ov-need .btn{margin-left:56px}}.lane-note{padding:10px 12px;border-radius:8px;background:var(--bg-elevated);border:1px solid var(--border-dim);font-size:14px}.col-empty{font-size:13px;color:var(--text-dim)}.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{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:nowrap;overflow-x:auto;scroll-snap-type:x proximity;gap:2px;width:fit-content;max-width:100%;padding:4px;margin:0 0 16px;border-radius:var(--radius-pill);background:var(--glass-fill);border:1px solid var(--glass-line);box-shadow:var(--glass-hl)}.repo-tabs .folder-btn{flex:0 0 auto;scroll-snap-align:start;white-space:nowrap;width:auto;min-height:32px;padding:0 14px;border:1px solid transparent;border-radius:var(--radius-pill);color:var(--text-sub);font-size:13px;font-weight:600}.repo-tabs .folder-btn:hover{background:var(--row-hover-bg);color:var(--text-main)}.repo-tabs .folder-btn.sel{background:var(--row-sel-bg);box-shadow:var(--glass-hl);color:var(--text-main)}[data-theme=light] .repo-tabs .folder-btn.sel{background:var(--tone-purple-bg)}.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:10px;min-width:0;padding:16px 18px;border-radius:var(--radius-card);background:var(--glass-fill);border:1px solid var(--glass-line);box-shadow:var(--glass-hl)}.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 14px;border-radius:var(--radius-row);background:var(--glass-fill);border:1px solid var(--glass-line);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)}.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%;border-radius:inherit;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:10px 14px;border:1px solid var(--glass-line);border-radius:var(--radius-row);background:var(--glass-fill);box-shadow:var(--glass-hl),var(--shadow-1);color:var(--text-main);font:inherit;text-align:left;text-decoration:none;cursor:pointer;min-width:0;overflow-wrap:anywhere}.rm-node: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(--glass-fill)}.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(280px,100%),1fr))}.rm-list-view>.lane-note,.rm>.lane-note[data-testid=rm-errors]{position:relative;margin-bottom:12px;padding-left:34px;background:var(--tone-red-bg);border-color:var(--tone-red-bd)}.rm-list-view>.lane-note:before,.rm>.lane-note[data-testid=rm-errors]:before{content:"⚠";content:"⚠" / "";position:absolute;left:12px;top:10px;color:var(--mk-bad)}.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;width:100%;box-sizing:border-box;font-family:inherit;color:inherit;text-align:left;cursor:pointer}.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-panel{position:fixed;top:64px;right:16px;bottom:16px;width:min(480px,calc(100vw - 32px));padding:16px;overflow:auto;z-index:40;background:var(--glass-bg-strong);-webkit-backdrop-filter:var(--glass-filter);backdrop-filter:var(--glass-filter);border:1px solid var(--glass-bd);border-radius:14px;box-shadow:var(--glass-hl),var(--shadow-2);animation:hub-rise var(--dur-2) var(--ease-out) backwards}.rm-panel h3{margin:0 32px 8px 0;outline:none}.rm-panel-close{position:absolute;top:8px;right:8px;border:0;background:none;color:inherit;font-size:20px;line-height:1;cursor:pointer;padding:4px 8px}.rm-panel-text{padding:10px 12px;border-radius:8px;background:var(--bg-card);white-space:pre-wrap;font-family:var(--font-mono);font-size:12.5px;max-height:60vh;overflow:auto;margin:12px 0 0}@media(max-width:700px){.rm-panel{left:16px}}.flow-title.rm-open{background:none;border:0;padding:0;font:inherit;color:inherit;text-align:left;cursor:pointer;text-decoration:underline dotted}.rm-tile:focus-visible,.rm-open:focus-visible,.rm-panel-close:focus-visible{outline:2px solid var(--purple);outline-offset:2px}.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(--glass-line);border-radius:var(--radius-card);background:var(--glass-fill);box-shadow:var(--glass-hl);padding:14px 18px}.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 var(--dur-1) var(--ease-out)}.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:var(--font-mono);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%;border-radius:inherit;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}.rm-view{display:inline-flex;align-self:flex-start;gap:2px;padding:2px;border:1px solid var(--border-dim);border-radius:999px;background:var(--bg-card)}.rm-view button{padding:6px 12px;border:0;border-radius:999px;background:transparent;color:var(--text-sub);font:inherit;font-size:13px;cursor:pointer}.rm-view button[aria-pressed=true]{background:var(--purple);color:var(--bg-canvas);font-weight:600}.rm-plan-only,.rm-plan-branch{font-size:.75em;text-transform:uppercase;letter-spacing:.04em;color:var(--text-sub)}.rm-done{border:1px solid var(--glass-line);border-radius:var(--radius-card);background:var(--glass-fill);box-shadow:var(--glass-hl);padding:14px 18px}.rm-done-sum{cursor:pointer;display:flex;align-items:center;gap:6px 12px;list-style:none}.rm-done-sum::-webkit-details-marker{display:none}.rm-done-sum:before{content:"▸";color:var(--text-sub);transition:transform var(--dur-1) var(--ease-out)}.rm-done[open]>.rm-done-sum:before{transform:rotate(90deg)}.rm-done-list{list-style:none;margin:10px 0 0;padding:0}.rm-done-row{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 14px;padding:7px 0;border-top:1px solid var(--border-dim)}.rm-done-title{min-width:0;overflow-wrap:anywhere}.rm-done-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;font-size:13.5px;color:var(--text-sub)}.rm-done>.btn{margin-top:10px}.act-filters{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 16px;border-radius:var(--radius-row);background:var(--glass-fill);border:1px solid var(--glass-line)}.act-filters select{min-height:38px;padding:0 8px;border:1px solid var(--glass-line);border-radius:12px;background:var(--pill-ghost-bg);color:var(--text-main);font:inherit;max-width:100%}.act-kinds{display:flex;flex-wrap:wrap;gap:6px}.act-kind{min-height:32px;padding:0 14px;border:1px solid var(--pill-ghost-bd);border-radius:var(--radius-pill);background:var(--pill-ghost-bg);color:var(--text-main);font:inherit;font-size:13px;cursor:pointer}.act-kind[aria-pressed=true]{background:var(--row-sel-bg);border-color:var(--focus-ring);box-shadow:var(--glass-hl)}[data-theme=light] .act-kind[aria-pressed=true]{background:var(--tone-purple-bg)}.act-time{font-size:12px;color:var(--text-dim)}.act-kindtag{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-dim)}@media(max-width:720px){.kpi-tile{padding:8px 8px 9px;gap:3px;border-radius:14px}.kpi-label{font-size:11.5px;line-height:1.25;align-items:flex-start}.kpi-label svg{display:none}.kpi-tile .kpi-num{order:-1;font-size:24px}.kpi-tile.deploy{grid-column:1 / -1;flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:2px 10px}.rm-kpis .kpi-tile{display:flex}.rm-kpis .kpi-tile>.kpi-num,.rm-kpis .kpi-tile>.kpi-val{align-self:auto}.rm-kpis .kpi-tile.deploy .kpi-val{font-size:15px}.notify-row>span{display:none}.notify-row .btn{min-height:36px}.mailbox{flex-wrap:nowrap;min-width:0}.mailbox>*{flex:none;min-width:0}.rm-chain{flex-direction:column;align-items:stretch}.rm-chain-item{flex-direction:column;align-items:stretch;gap:2px}.rm-chain-item>[aria-hidden=true]{align-self:center;transform:rotate(90deg)}}.ex-table-wrap{overflow-x:auto;border:1px solid var(--glass-line);border-radius:var(--radius-row);background:var(--glass-fill);box-shadow:var(--glass-hl)}.ex-table{width:100%;border-collapse:collapse;font-size:14px}.ex-table th,.ex-table td{text-align:left;vertical-align:top;padding:8px 10px;border-bottom:1px solid var(--glass-line)}.ex-table tbody tr:last-child td{border-bottom:0}.ex-table th{color:var(--text-sub);font-weight:600;background:var(--glass-tint-low)}.ex-table tbody tr:hover td{background:var(--row-hover-bg)}.ex-note{margin-top:24px}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/export/index.html
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self' data:; font-src 'self'; connect-src 'none'; base-uri 'none'; form-action 'none'" />
|
|
7
7
|
<title>Roadmap</title>
|
|
8
8
|
<link rel="icon" href="data:," />
|
|
9
|
-
<script type="module" crossorigin src="./assets/export-
|
|
10
|
-
<link rel="stylesheet" crossorigin href="./assets/export-
|
|
9
|
+
<script type="module" crossorigin src="./assets/export-66K2bB7C.js"></script>
|
|
10
|
+
<link rel="stylesheet" crossorigin href="./assets/export-DhwQd2qc.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|
|
13
13
|
<div id="root"></div>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
Copyright
|
|
1
|
+
Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
|
|
2
2
|
|
|
3
3
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
https://scripts.sil.org/OFL
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
-----------------------------------------------------------
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
Copyright
|
|
1
|
+
Copyright 2020 The Plus Jakarta Sans Project Authors (https://github.com/tokotype/PlusJakartaSans)
|
|
2
2
|
|
|
3
3
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
-----------------------------------------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as K,a as C,D as I,b as O,d as z,r as A,j as o,l as B,e as Y}from"./index
|
|
1
|
+
import{c as K,a as C,D as I,b as O,d as z,r as A,j as o,l as B,e as Y}from"./index-BAdqZpU0.js";/**
|
|
2
2
|
* @license lucide-react v1.61.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -0,0 +1 @@
|
|
|
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:var(--font-mono);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);white-space:nowrap}.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}.guide-tabs{display:flex;gap:4px;border-bottom:1px solid var(--border-dim);margin-bottom:20px}.guide-tabs [role=tab]{padding:8px 14px;border-bottom:2px solid transparent;text-decoration:none;color:inherit}.guide-tabs [role=tab][aria-selected=true]{border-bottom:2px solid var(--purple);color:var(--purple)}.gd-section{margin-bottom:28px}.gd-item summary{display:grid;grid-template-columns:minmax(180px,240px) 1fr auto;grid-auto-flow:column;gap:12px;padding:8px 0;cursor:pointer;align-items:baseline}.gd-blurb{color:var(--text-sub)}@media(max-width:560px){.gd-item summary{display:flex;flex-wrap:wrap;gap:4px 8px}.gd-item summary .gd-blurb{order:1;flex:0 0 100%}}.gd-stage{font-family:var(--font-head);font-size:15px;font-weight:600;margin:20px 0 6px}.gd-steps{margin:8px 0 8px 22px}.gd-hint{font-family:var(--font-mono);color:var(--text-sub)}.gd-group{border:1px solid var(--border-dim);border-radius:8px;padding:8px 12px;margin-bottom:8px}.gd-group summary{cursor:pointer;font-weight:600}.gd-skill{display:flex;align-items:baseline;gap:10px;padding:4px 0}.gd-table{width:100%;border-collapse:collapse}.gd-table th,.gd-table td{padding:6px 8px;border-bottom:1px solid var(--border-dim);text-align:left;vertical-align:top}.is-target{outline:2px solid var(--purple);outline-offset:4px}.gp-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;margin-bottom:18px}.gp-head-left{display:flex;align-items:center;gap:16px;min-width:0}.gp-title{font-family:var(--font-head);margin:0 0 4px;font-size:20px}.gp-counts{margin:0;font-size:13px;color:var(--text-sub)}.gp-switch{display:inline-flex;gap:2px;padding:2px;border:1px solid var(--border-dim);border-radius:999px;background:var(--bg-card);margin-left:auto}.gp-print{padding:6px 14px;border:1px solid var(--border-dim);border-radius:999px;background:var(--bg-card);color:var(--text-main);font:inherit;font-size:13px;cursor:pointer}.gp-print:hover{border-color:var(--purple)}.gp-hidden{display:none}.gp-switch button{padding:6px 12px;border:0;border-radius:999px;background:transparent;color:var(--text-sub);font:inherit;font-size:13px;cursor:pointer}.gp-switch button[aria-pressed=true]{background:var(--purple);color:var(--bg-canvas);font-weight:600}.gp-flow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.gp-stage,.gp-band,.gp-card{background:var(--glass-tint);border:1px solid var(--glass-bd);box-shadow:var(--glass-hl),var(--shadow-1);border-radius:12px;padding:14px;min-width:0}.gp-stage{position:relative}.gp-stage:not(:last-child):after{content:"→";position:absolute;right:-12px;top:14px;color:var(--text-sub);pointer-events:none}.gp-stage h3,.gp-band h3,.gp-card h3{font-family:var(--font-head);display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:16px}.gp-step{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;border:1px solid var(--border-dim);font-size:12px;color:var(--text-sub);flex-shrink:0}.gp-sub{font-family:var(--font-head);font-size:13px;color:var(--text-sub);margin:8px 0 6px}.gp-bands{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px;margin-top:18px}.gp-foot{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin-top:18px}.gp-chip{display:inline-block;padding:3px 8px;border-radius:12px;border:1px solid var(--border-dim);margin:0 6px 6px 0;font-family:var(--font-mono);font-size:13px;color:var(--text-main);text-decoration:none;max-width:100%;overflow-wrap:anywhere}.gp-chip:hover{border-color:var(--purple)}.gp-chip.is-daily{font-size:15px;font-weight:600}.gp-stage .gp-chip:not(.is-daily){font-size:12px}@media(max-width:900px){.gp-flow{grid-template-columns:repeat(2,minmax(0,1fr))}.gp-stage:not(:last-child):after{display:none}}@media(max-width:560px){.gp-flow{grid-template-columns:1fr}}.gp-map-wrap{max-width:1000px;margin:0 auto}.gp-map{display:block;width:100%;height:auto;overflow:visible}.gp-map a{text-decoration:none}@keyframes gp-pulse{0%{opacity:.85}to{opacity:1}}.gp-pulse{animation:gp-pulse 3s ease-in-out infinite alternate!important}html[data-motion=off] .gp-pulse{animation:none!important}@page{size:A3 landscape;margin:10mm}@media print{.app-bar,.mobile-topbar,.drawer-backdrop,.sidebar,.sidebar-top,.sidebar-footer,.banners,.banner,nav,footer,.guide-tabs,.gp-switch,.gp-print,.guide-hero{display:none!important}.main-area{margin-left:0!important}.page-wrap{max-width:none;padding:0;gap:0}.gp-hidden{display:block!important}.gp-map-wrap{break-before:page;max-width:250mm;max-height:250mm}.gp-map{max-height:250mm;width:auto;margin:0 auto}a,.gp a{color:inherit;text-decoration:none}.gp-stage,.gp-band,.gp-card{break-inside:avoid}}.gw{display:flex;flex-direction:column;gap:12px;overflow-x:auto}.gw-bar{display:flex;align-items:center;justify-content:space-between;gap:12px}.gw-bar p{margin:0;color:var(--text-muted, #5d6677)}.gw-sheet{--ink: #1b2130;--muted: #5d6677;--line: #dde2ea;--plan: #2f7de1;--build: #1f9d6b;--review: #d9822b;--ship: #d6455d;--cont: #7a5af5;--know: #0f8c95;--setup: #6b7280;--accent: #6b4fd8;flex:none;width:297mm;height:210mm;box-sizing:border-box;padding:8mm 9mm 7mm;background:#fff;color:var(--ink);font:8.3pt/1.3 var(--font-body, system-ui, sans-serif);display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:3.2mm;overflow:hidden;box-shadow:0 4px 24px #00000026;-webkit-print-color-adjust:exact;print-color-adjust:exact;page:wall}.gw-sheet a{color:inherit;text-decoration:none}.gw-head{display:flex;align-items:flex-end;justify-content:space-between;border-bottom:2.5px solid var(--ink);padding-bottom:2mm}.gw-brand{font:800 30pt/1 var(--font-head, system-ui, sans-serif);letter-spacing:-1.5px}.gw-brand span{color:var(--accent)}.gw-tag{font-size:10pt;color:var(--muted);margin-left:4mm}.gw-stats{display:flex;gap:4mm;text-align:center}.gw-stats div{font-size:7pt;color:var(--muted);text-transform:uppercase;letter-spacing:.4px}.gw-stats b{display:block;font-size:15pt;line-height:1;color:var(--ink)}.gw-loop{display:flex;gap:1.6mm}.gw-step{flex:1 1 0;min-width:0;border-radius:2mm;padding:1.6mm 2mm;color:#fff!important;background:var(--accent)}.gw-step b{display:block;font:700 9.5pt var(--font-mono, monospace)}.gw-step span{font-size:7pt}.gw-cards{--gw-scale: 1;font-size:calc(8.3pt * var(--gw-scale));columns:4;column-gap:2.6mm;min-height:0;overflow:hidden}.gw-card{break-inside:avoid;margin:0 0 2.6mm;border:1px solid var(--line);border-top:3px solid var(--c, var(--accent));border-radius:1.6mm;padding:1.6mm 2.2mm 1.8mm}.gw-plan{--c: var(--plan)}.gw-build{--c: var(--build)}.gw-review{--c: var(--review)}.gw-ship{--c: var(--ship)}.gw-continuity{--c: var(--cont)}.gw-knowledge{--c: var(--know)}.gw-setup,.gw-other,.gw-agents{--c: var(--setup)}.gw-card h2{margin:0 0 1mm;font-size:1.18em;color:var(--c);text-transform:uppercase;letter-spacing:.6px}.gw-card h2 small{color:var(--muted);font-weight:400;text-transform:none;letter-spacing:0;font-size:.85em}.gw-row{padding:.55mm 0;border-top:1px dotted var(--line)}.gw-row:first-of-type{border-top:0}.gw-name{font:600 .99em var(--font-mono, monospace);overflow-wrap:anywhere}.gw-name.is-daily:before{content:"★ ";color:#c99400}.gw-blurb{color:var(--muted);font-size:.89em}.gw-foot{display:flex;justify-content:space-between;gap:4mm;color:var(--muted);font-size:7pt;border-top:1px solid var(--line);padding-top:1.5mm}@page wall{size:A4 landscape;margin:0}@media print{.gw-bar{display:none!important}.gw{overflow:visible}.gw-sheet{box-shadow:none}}.gm{--gm-bg: var(--bg-card);--gm-ink: var(--text-main);--gm-muted: var(--text-sub);--gm-line: var(--border-dim);--gm-accent: var(--purple);--gm-plan: var(--cyan);--gm-build: var(--green);--gm-review: var(--orange);--gm-ship: var(--pink);--gm-continuity: var(--purple);--gm-knowledge: var(--yellow);--gm-setup: var(--text-dim);--gm-core: var(--yellow);display:flex;flex-direction:column;gap:14px;min-width:0}.gm a{color:inherit;text-decoration:none}.gm a:hover{text-decoration:underline}.gm a:focus-visible,.gm-print:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.gm-bar{display:flex;flex-wrap:wrap;align-items:end;gap:12px 16px}.gm-filter{display:grid;gap:4px;flex:1 1 260px;max-width:420px}.gm-matches{margin:0;min-height:40px;display:flex;align-items:center;font-size:13px;color:var(--text-sub)}.gm-print{margin-left:auto;min-height:40px;padding:0 16px;border:1px solid var(--border-dim);border-radius:999px;background:var(--bg-card);color:var(--text-main);font:inherit;font-size:13px;cursor:pointer}.gm-print:hover{border-color:var(--purple)}.gm-sheet{display:grid;gap:26px;min-width:0;padding:20px;border:1px solid var(--gm-line);border-radius:12px;background:var(--bg-lane);color:var(--gm-ink);page:map}.gm-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px 24px;padding-bottom:14px;border-bottom:2px solid var(--gm-ink)}.gm-eyebrow{margin:0 0 4px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--gm-muted)}.gm-title{margin:0 0 6px;font-family:var(--font-head);font-size:clamp(26px,4vw,34px);line-height:1.1}.gm-lede{margin:0;max-width:64ch;color:var(--gm-muted)}.gm-stats{display:flex;flex-wrap:wrap;gap:8px 20px;margin:0}.gm-stats div{min-width:0}.gm-stats dt{font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--gm-muted)}.gm-stats dd{margin:0;font-family:var(--font-head);font-size:24px;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums}.gm-section{display:grid;gap:12px;min-width:0}.gm-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:0;font-family:var(--font-head);font-size:20px}.gm-h small{font-size:13px;font-weight:400;color:var(--gm-muted)}.gm-loop{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.gm-lanes{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px}.gm-stage{--c: var(--gm-accent);position:relative;min-width:0;padding:12px 14px 14px;border:1px solid var(--gm-line);border-top:4px solid var(--c);border-radius:8px;background:var(--gm-bg)}.gm-s-plan{--c: var(--gm-plan)}.gm-s-build{--c: var(--gm-build)}.gm-s-review{--c: var(--gm-review)}.gm-s-ship{--c: var(--gm-ship)}.gm-s-continuity{--c: var(--gm-continuity)}.gm-s-knowledge{--c: var(--gm-knowledge)}.gm-s-setup,.gm-s-other{--c: var(--gm-setup)}.gm-stage.has-arrow:after{content:"→";position:absolute;right:-16px;top:8px;width:14px;text-align:center;color:var(--gm-muted);pointer-events:none}.gm-stage h3{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;margin:0 0 8px;font-family:var(--font-head);font-size:16px;color:var(--c)}.gm-stage h3 small{font-size:12px;font-weight:400;color:var(--gm-muted)}.gm-count{margin-left:auto;font-size:12px;font-weight:600;color:var(--gm-muted);font-variant-numeric:tabular-nums}.gm-list{display:grid;gap:7px;margin:0;padding:0;list-style:none}.gm-item{display:grid;gap:1px;min-width:0}.gm-name{font-family:var(--font-mono);font-size:13px;font-weight:600;overflow-wrap:anywhere}.gm-name.is-daily:before{content:"★ ";color:var(--gm-core)}.gm-blurb{font-size:12.5px;color:var(--gm-muted)}.gm-dim{opacity:.25}.gm-timeline{position:relative;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px 0;margin:0;padding:0;list-style:none}.gm-event{position:relative;display:grid;align-content:start;gap:4px;min-width:0;padding:22px 12px 0 0}.gm-event:before{content:"";position:absolute;left:0;right:0;top:7px;height:2px;background:var(--gm-line)}.gm-event:after{content:"";position:absolute;left:0;top:1px;width:12px;height:12px;border-radius:50%;background:var(--gm-accent)}.gm-matcher{font-size:12px;color:var(--gm-muted);overflow-wrap:anywhere}.gm-handlers{display:grid;gap:2px;margin:0;padding:0;list-style:none;font-family:var(--font-mono);font-size:12px;overflow-wrap:anywhere}.gm-agents{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:10px}.gm-agent{display:grid;gap:4px;min-width:0;padding:10px 12px;border:1px solid var(--gm-line);border-radius:8px;background:var(--gm-bg)}.gm-agent-head{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px}.gm-badge{padding:0 6px;border:1px solid var(--gm-line);border-radius:4px;font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--gm-muted);white-space:nowrap}.gm-model{color:var(--gm-accent);border-color:var(--gm-accent)}.gm-families{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:16px 22px}.gm-family{display:grid;align-content:start;gap:6px;min-width:0}.gm-family h3{display:flex;align-items:baseline;gap:8px;margin:0;font-size:14px}.gm-chips{display:flex;flex-wrap:wrap;gap:5px}.gm-chip{max-width:100%;padding:1px 7px;border:1px solid var(--gm-line);border-radius:4px;background:var(--gm-bg);font-family:var(--font-mono);font-size:12px;overflow-wrap:anywhere}.gm-chip.is-core{border-color:var(--gm-core);font-weight:600}.gm-runtimes{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:10px}.gm-runtime{display:grid;gap:2px;min-width:0;padding:10px 12px;border:1px solid var(--gm-line);border-left:4px solid var(--gm-accent);border-radius:8px;background:var(--gm-bg)}.gm-runtime span{font-size:12.5px;color:var(--gm-muted)}.gm-foot{padding-top:10px;border-top:1px solid var(--gm-line);font-size:12px;color:var(--gm-muted)}@media(max-width:1000px){.gm-loop{grid-template-columns:repeat(2,minmax(0,1fr))}.gm-stage.has-arrow:after{display:none}}@media(max-width:700px){.gm-sheet{padding:14px 12px}.gm-loop{grid-template-columns:minmax(0,1fr)}.gm-timeline{grid-template-columns:minmax(0,1fr);padding-left:22px}.gm-event{padding:0 0 14px}.gm-event:before{left:-16px;right:auto;top:6px;bottom:-6px;width:2px;height:auto}.gm-event:last-child:before{display:none}.gm-event:after{left:-21px;top:4px;width:10px;height:10px}}@page map{size:A3 landscape;margin:8mm}@media print{.gm-bar{display:none!important}.gm{--gm-bg: #fff;--gm-ink: #1b2130;--gm-muted: #5d6677;--gm-line: #cfd5e0;--gm-accent: #6b4fd8;--gm-plan: #2f7de1;--gm-build: #1f9d6b;--gm-review: #d9822b;--gm-ship: #d6455d;--gm-continuity: #7a5af5;--gm-knowledge: #0f8c95;--gm-setup: #6b7280;--gm-core: #c99400;-webkit-print-color-adjust:exact;print-color-adjust:exact}.gm-sheet{padding:0;border:0;border-radius:0;background:#fff;gap:5mm;zoom:.85}.gm-list{gap:4px}.gm-h{break-after:avoid}.gm-stage,.gm-agent,.gm-family,.gm-event{break-inside:avoid}.gm-dim{opacity:1}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as k,j as e,g as f}from"./index
|
|
1
|
+
import{r as k,j as e,g as f}from"./index-BAdqZpU0.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"/>
|
|
@@ -6,4 +6,4 @@ import{r as k,j as e,g as f}from"./index--fRgH-8i.js";const ie=`<svg xmlns="http
|
|
|
6
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
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
8
|
</svg>
|
|
9
|
-
`,je=1,B=["setup","plan","build","review","ship","continuity","knowledge"];function j(s,n){return`g-${s}-${n.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}`}const Z=s=>typeof s=="object"&&s!==null&&!Array.isArray(s);function fe(s){if(s==null)return{kind:"missing"};if(!Z(s))return{kind:"error",message:"The guide data has an unexpected shape."};if(typeof s.error=="string")return{kind:"error",message:s.error};if(typeof s.schema=="number"&&s.schema>je)return{kind:"newer",schema:s.schema};for(const t of["commands","agents","skills","hooks"])if(!Array.isArray(s[t]))return{kind:"error",message:`The guide data has no "${t}" list.`};if(!Z(s.coverage))return{kind:"error",message:'The guide data has no "coverage" list.'};const n=s.commands.map(t=>({...t,steps:Array.isArray(t.steps)?t.steps:[],scripts:Array.isArray(t.scripts)?t.scripts:[]}));return{kind:"ok",guide:{...s,commands:n}}}const ke=["commands","agents","skills","hooks","runtimes"],re={commands:"Commands",agents:"Agents",skills:"Skills",hooks:"Hooks",runtimes:"Runtimes"};function oe(s){const n=new Map;for(const t of["commands","skills","agents"])for(const i of s.coverage[t]??[])n.set(i,[...n.get(i)??[],t]);return[...n.entries()].sort(([t],[i])=>t.localeCompare(i)).map(([t,i])=>({name:t,kinds:i}))}const ye=["setup","plan","build","review","ship"],be=["continuity","knowledge"],P={setup:"Setup",plan:"Plan",build:"Build",review:"Review",ship:"Ship",continuity:"Continuity",knowledge:"Knowledge",other:"Other"};function I(s){const n=s.indexOf(". "),t=(n>=0?s.slice(0,n+1):s).trim();return t.length>90?`${t.slice(0,89)}…`:t}function Ne(s){return{kind:"command",name:s.name,blurb:I(s.description),daily:s.daily,anchor:j("command",s.name)}}function O(s){return[...s].sort((n,t)=>Number(t.daily)-Number(n.daily)||n.name.localeCompare(t.name)).map(Ne)}function we(s){const n=new Set(B),t=ye.map(r=>({id:r,label:P[r],flow:!0,commands:O(s.commands.filter(h=>h.stage===r))})),i=be.map(r=>({id:r,label:P[r],flow:!1,commands:O(s.commands.filter(h=>h.stage===r))})),m=O(s.commands.filter(r=>!n.has(r.stage)));m.length>0&&i.push({id:"other",label:P.other,flow:!1,commands:m});const a=r=>({kind:"agent",name:r.name,blurb:I(r.description),daily:!1,anchor:j("agent",r.name)}),l=s.agents.filter(r=>!r.writes).sort((r,h)=>r.name.localeCompare(h.name)).map(a),c=s.agents.filter(r=>r.writes).sort((r,h)=>r.name.localeCompare(h.name)).map(a),p=new Map;for(const r of s.skills)p.set(r.category,(p.get(r.category)??0)+1);const u=[...p.entries()].sort(([r,h],[y,v])=>v-h||r.localeCompare(y)).map(([r,h])=>({kind:"skillCategory",name:r,blurb:"",daily:!1,anchor:j("skillCategory",r),count:h})),g=new Map;for(const r of s.hooks)g.set(r.event,(g.get(r.event)??0)+1);const d=[...g.entries()].sort(([r],[h])=>r.localeCompare(h)).map(([r,h])=>({event:r,count:h}));return{version:s.version,flow:t,bands:i,agentsReadOnly:l,agentsWrite:c,skillCategories:u,hooks:d,counts:{commands:s.commands.length,agents:s.agents.length,skills:s.skills.length,hooks:s.hooks.length}}}function w(s){const n=Math.round(s*10)/10;return Object.is(n,-0)?0:n}function ve(s,n){const t=n/2,i=[{id:"root",label:"caddis",kind:"root",anchor:null,x:w(t),y:w(t),r:w(.06*n),parent:null}],m=[...s.flow.map(u=>({id:`stage-${u.id}`,label:u.label,kind:"stage",leaves:u.commands.map(g=>({kind:"command",name:g.name,anchor:j("command",g.name)}))})),...s.bands.map(u=>({id:`stage-${u.id}`,label:u.label,kind:"stage",leaves:u.commands.map(g=>({kind:"command",name:g.name,anchor:j("command",g.name)}))})),{id:"agents",label:"Agents",kind:"group",leaves:[...s.agentsReadOnly,...s.agentsWrite].map(u=>({kind:"agent",name:u.name,anchor:j("agent",u.name)}))},{id:"skills",label:"Skills",kind:"group",leaves:s.skillCategories.map(u=>({kind:"skillCategory",name:u.name,anchor:j("skillCategory",u.name)}))},{id:"hooks",label:"Hooks",kind:"group",leaves:s.hooks.map(u=>({kind:"hook",name:u.event,anchor:j("hook",u.event)}))}],a=m.length,l=.24*n,c=w(.035*n),p=w(.012*n);return m.forEach((u,g)=>{const d=-90+g*360/a,r=d*Math.PI/180;i.push({id:u.id,label:u.label,kind:u.kind,anchor:null,x:w(t+l*Math.cos(r)),y:w(t+l*Math.sin(r)),r:c,parent:"root"});const h=u.leaves.length;u.leaves.forEach((y,v)=>{const T=(d+(h===1?0:(v/(h-1)-.5)*(300/a)))*Math.PI/180,R=(v%2===0?.4:.45)*n;i.push({id:`${y.kind}-${y.name}`,label:y.name,kind:y.kind,anchor:y.anchor,x:w(t+R*Math.cos(T)),y:w(t+R*Math.sin(T)),r:p,parent:u.id})})}),i}const K={setup:"Setup",plan:"Plan",build:"Build",review:"Review",ship:"Ship",continuity:"Continuity",knowledge:"Knowledge",other:"Other"};function S(s,...n){return s?n.some(t=>t!==void 0&&t.toLowerCase().includes(s)):!0}function Ce(s){const n=new Map;for(const i of s){const m=i.stage||"other",a=n.get(m)??[];a.push(i),n.set(m,a)}const t=[];for(const i of B){const m=n.get(i);m&&m.length>0&&(t.push([i,m]),n.delete(i))}for(const[i,m]of n.entries())m.length>0&&t.push([i,m]);return t}function Se(s){const n=new Map;for(const t of s){const i=t.category||"uncategorised",m=n.get(i)??[];m.push(t),n.set(i,m)}return Array.from(n.entries())}function M({id:s,total:n,shown:t,isFiltered:i}){return e.jsxs("h2",{children:[re[s]," ",e.jsx("span",{className:"guide-count","data-testid":`guide-count-${s}`,children:n}),i&&e.jsxs(e.Fragment,{children:[" ",e.jsx("span",{className:"guide-shown","data-testid":`guide-shown-${s}`,children:`${t} of ${n}`})]})]})}function Me({guide:s,item:n,initialFilter:t=""}){var H,G,W,U;const[i,m]=k.useState(t),a=i.trim().toLowerCase(),l=a.length>0;k.useEffect(()=>{var C;if(!n||typeof document>"u")return;const o=document.getElementById(n);if(!o)return;o.tagName==="DETAILS"&&(o.open=!0);const b=(C=o.parentElement)==null?void 0:C.closest("details");b&&(b.open=!0),typeof o.scrollIntoView=="function"&&o.scrollIntoView({block:"start"}),o.classList.add("is-target");const x=window.setTimeout(()=>{o.classList.remove("is-target")},2e3);return()=>window.clearTimeout(x)},[n]);const c=o=>{var b,x;typeof document>"u"||(x=document.getElementById(`guide-${o}`))==null||x.scrollIntoView({block:"start",behavior:typeof window<"u"&&((b=window.matchMedia)!=null&&b.call(window,"(prefers-reduced-motion: reduce)").matches)?"auto":"smooth"})},p=k.useMemo(()=>s.commands.filter(o=>S(a,o.name,o.description,o.stage)),[s.commands,a]),u=k.useMemo(()=>s.agents.filter(o=>S(a,o.name,o.description)),[s.agents,a]),g=k.useMemo(()=>s.skills.filter(o=>S(a,o.name,o.description,o.category)),[s.skills,a]),d=k.useMemo(()=>s.hooks.filter(o=>S(a,o.event,o.matcher,o.handler)),[s.hooks,a]),r=k.useMemo(()=>Ce(p),[p]),h=k.useMemo(()=>Se(g),[g]),y=k.useMemo(()=>oe(s),[s]),v=k.useMemo(()=>y.filter(o=>S(a,o.name,...o.kinds)),[y,a]),D=((H=s.counts)==null?void 0:H.commands)??s.commands.length,T=((G=s.counts)==null?void 0:G.agents)??s.agents.length,R=((W=s.counts)==null?void 0:W.skills)??s.skills.length,he=((U=s.counts)==null?void 0:U.hooks)??s.hooks.length,ue=y.length,pe=p.length+u.length+g.length+d.length+v.length,F=new Set;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"guide-tools",children:[e.jsxs("label",{className:"guide-filter",children:[e.jsx("span",{className:"guide-filter-label",children:"Filter the guide"}),e.jsx("input",{type:"search",className:"guide-filter-input",value:i,placeholder:"Name, purpose, stage or hook",onChange:o=>m(o.target.value),"data-testid":"guide-filter"})]}),e.jsx("nav",{className:"guide-chips","aria-label":"Guide sections",children:ke.map(o=>e.jsx("button",{type:"button",className:"guide-jump",onClick:()=>c(o),children:re[o]},o))}),e.jsx("p",{className:"guide-note",children:"Invoke forms are for Claude Code. Other runtimes list the same names in their own way."})]}),l&&pe===0&&e.jsxs("p",{className:"notice","data-testid":"guide-nomatch",children:["Nothing matches ",e.jsx("code",{className:"cmd",children:i}),"."]}),e.jsxs("section",{className:"gd-section",id:"guide-commands",children:[e.jsx(M,{id:"commands",total:D,shown:p.length,isFiltered:l}),r.map(([o,b])=>e.jsxs("div",{className:"guide-group",children:[e.jsx("h3",{className:"gd-stage",children:K[o]??K.other??o}),b.map(x=>{const C=j("command",x.name);return e.jsxs("details",{className:"gd-item",id:C,open:n===C||void 0,"data-testid":"guide-entry",children:[e.jsxs("summary",{children:[e.jsxs("code",{className:"gd-name",children:["/caddis:",x.name]}),e.jsx("span",{className:"gd-blurb",children:I(x.description)}),x.daily&&e.jsx("span",{className:"guide-chip good",children:"daily"}),x.noArgs&&e.jsx("span",{className:"guide-chip",children:"no args"})]}),e.jsx("p",{children:x.description}),x.steps.length>0&&e.jsx("ol",{className:"gd-steps",children:x.steps.map(([N,ge],xe)=>e.jsxs("li",{children:[N," ",ge]},`${N}-${xe}`))}),x.hint&&e.jsx("p",{className:"gd-hint",children:x.hint})]},x.name)})]},o))]}),e.jsxs("section",{className:"gd-section",id:"guide-agents",children:[e.jsx(M,{id:"agents",total:T,shown:u.length,isFiltered:l}),e.jsxs("table",{className:"gd-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Agent"}),e.jsx("th",{children:"What it does"}),e.jsx("th",{children:"Access"}),e.jsx("th",{children:"Model"})]})}),e.jsx("tbody",{children:u.map(o=>e.jsxs("tr",{id:j("agent",o.name),"data-testid":"guide-entry",children:[e.jsx("td",{children:e.jsx("code",{children:o.name})}),e.jsx("td",{children:o.description}),e.jsx("td",{children:o.writes?"writes files":"read only"}),e.jsx("td",{children:o.model})]},o.name))})]})]}),e.jsxs("section",{className:"gd-section",id:"guide-skills",children:[e.jsx(M,{id:"skills",total:R,shown:g.length,isFiltered:l}),h.map(([o,b])=>{const x=j("skillCategory",o),C=l||n===x||b.some(N=>j("skill",N.name)===n);return e.jsxs("details",{className:"gd-group",id:x,open:C||void 0,children:[e.jsxs("summary",{children:[o," · ",b.length]}),b.map(N=>e.jsxs("div",{className:"gd-skill",id:j("skill",N.name),"data-testid":"guide-entry",children:[e.jsx("code",{children:N.name}),N.core&&e.jsx("span",{className:"guide-chip good",children:"core"}),e.jsx("span",{className:"gd-blurb",children:I(N.description)})]},N.name))]},o)})]}),e.jsxs("section",{className:"gd-section",id:"guide-hooks",children:[e.jsx(M,{id:"hooks",total:he,shown:d.length,isFiltered:l}),e.jsxs("table",{className:"gd-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Event"}),e.jsx("th",{children:"Matcher"}),e.jsx("th",{children:"Handler"})]})}),e.jsx("tbody",{children:d.map((o,b)=>{const x=!F.has(o.event);return x&&F.add(o.event),e.jsxs("tr",{id:x?j("hook",o.event):void 0,"data-testid":"guide-entry",children:[e.jsx("td",{children:o.event}),e.jsx("td",{children:o.matcher}),e.jsx("td",{children:o.handler})]},`${o.event}-${o.matcher}-${o.handler}-${b}`)})})]})]}),e.jsxs("section",{className:"gd-section",id:"guide-runtimes",children:[e.jsx(M,{id:"runtimes",total:ue,shown:v.length,isFiltered:l}),e.jsx("p",{className:"guide-note",children:"caddis install and caddis update put these on each runtime."}),e.jsx("ul",{className:"guide-list",children:v.map(o=>e.jsxs("li",{className:"guide-entry","data-testid":"guide-entry",children:[e.jsx("div",{className:"guide-entry-head",children:e.jsx("span",{className:"guide-entry-name",children:o.name})}),e.jsx("p",{className:"guide-entry-purpose",children:`Receives: ${o.kinds.join(", ")}`})]},o.name))})]})]})}const Ae=["plan","build","review","ship","continuity","knowledge","setup"],Ee=["plan","build","review","ship"],V={plan:["Plan","decide what to build"],build:["Build","write the code"],review:["Review","catch bugs first"],ship:["Ship","PR · CI · merge"],continuity:["Continuity","never lose your place"],knowledge:["Knowledge","write it down once"],setup:["Setup","once per repo or machine"],other:["Other","everything else"]},q=44;function L(s){const n=s.replace(/^Use this (agent|skill) (periodically(?: \([^)]*\))? |to |when |after |for )?(to )?/i,""),i=((n===s?n:n.charAt(0).toUpperCase()+n.slice(1)).split(/ [—–-] |\. |; | \(/)[0]??"").trim().replace(/[.:,;]+$/,"");if(i.length<=q)return i;const m=i.slice(0,q),a=m.lastIndexOf(" ");return`${(a>20?m.slice(0,a):m).replace(/[.:,;]+$/,"")}…`}function X(s){return{kind:"command",name:s.name,daily:s.daily,blurb:L(s.description),anchor:j("command",s.name)}}const $e=(s,n)=>Number(n.daily)-Number(s.daily)||s.name.localeCompare(n.name);function Te(s){const n=new Set(B),t=a=>s.commands.filter(l=>a==="other"?!n.has(l.stage):l.stage===a).sort($e),i=[...Ae,"other"].map(a=>({id:a,label:V[a][0],sub:V[a][1],kind:"command",rows:t(a).map(X)}));i.push({id:"agents",label:"Agents",sub:'say "use the … agent"',kind:"agent",rows:[...s.agents].sort((a,l)=>a.name.localeCompare(l.name)).map(a=>({kind:"agent",name:a.name,daily:!1,blurb:L(a.description),anchor:j("agent",a.name)}))});const m=Ee.flatMap(a=>t(a).filter(l=>l.daily).map(X));return{version:s.version,generated:s.generated,counts:{commands:s.commands.length,agents:s.agents.length,skills:s.skills.length,hooks:s.hooks.length},loop:m,cards:i.filter(a=>a.rows.length>0)}}const Q=["plan","build","review","ship"],Y=["continuity","knowledge","setup"],z={plan:["Plan","decide what to build"],build:["Build","write the code"],review:["Review","catch bugs first"],ship:["Ship","PR · CI · merge"],continuity:["Continuity","never lose your place"],knowledge:["Knowledge","write it down once"],setup:["Setup","once per repo or machine"],other:["Other","everything else"]},J=["SessionStart","UserPromptSubmit","PreToolUse","PermissionRequest","PostToolUse","PostToolUseFailure","Notification","SubagentStop","Stop","PreCompact","SessionEnd"],A=(...s)=>s.join(" ").toLowerCase(),Re=(s,n)=>Number(n.daily)-Number(s.daily)||s.name.localeCompare(n.name);function ee(s){const n=s.trim();return n.split(/[\\/]/).pop()||n}function se(s){const n=J.indexOf(s);return n>=0?n:J.length}const ne=s=>[...new Set(s)].sort((n,t)=>n.localeCompare(t));function ce(s,n){const t=s.trim().toLowerCase().split(/\s+/).filter(Boolean),i=n.toLowerCase();return t.every(m=>i.includes(m))}function Ie(s){const n=new Set([...Q,...Y]),t=d=>s.commands.filter(r=>d==="other"?!n.has(r.stage):r.stage===d).sort(Re),i=d=>{const r=t(d).map(h=>({name:h.name,daily:h.daily,blurb:L(h.description),anchor:j("command",h.name),search:A(h.name,h.description,h.hint,h.stage)}));return{id:d,label:z[d][0],sub:z[d][1],count:r.length,commands:r}},m=d=>d.count>0,a=new Map;for(const d of s.hooks){const r=a.get(d.event)??{handlers:[],matchers:[]};r.handlers.push(ee(d.handler)),d.matcher.trim()&&r.matchers.push(d.matcher),a.set(d.event,r)}const l=[...a.keys()].sort((d,r)=>se(d)-se(r)||d.localeCompare(r)).map(d=>{const r=a.get(d),h=ne(r.handlers),y=ne(r.matchers);return{event:d,anchor:j("hook",d),handlers:h,matchers:y,search:A(d,...h,...y)}}),c=[...s.agents].sort((d,r)=>d.name.localeCompare(r.name)).map(d=>({name:d.name,model:d.model,writes:d.writes,blurb:L(d.description),anchor:j("agent",d.name),search:A(d.name,d.description,d.model)})),p=new Map;for(const d of s.skills){const r=d.category||"uncategorised";p.set(r,[...p.get(r)??[],d])}const u=[...p.entries()].map(([d,r])=>({id:d,anchor:j("skillCategory",d),count:r.length,skills:[...r].sort((h,y)=>Number(y.core)-Number(h.core)||h.name.localeCompare(y.name)).map(h=>({name:h.name,core:h.core,anchor:j("skill",h.name),search:A(h.name,h.description,d)}))})).sort((d,r)=>r.count-d.count||d.id.localeCompare(r.id)),g=oe(s).map(d=>({...d,search:A(d.name,...d.kinds)}));return{version:s.version,generated:s.generated,counts:{commands:s.commands.length,agents:s.agents.length,skills:s.skills.length,hookEvents:l.length,hookScripts:new Set(s.hooks.map(d=>ee(d.handler))).size,runtimes:g.length},loop:Q.map(i).filter(m),support:[...Y,"other"].map(i).filter(m),hooks:l,agents:c,skills:u,runtimes:g}}function Le(s,n){const t=a=>ce(n,a.search),i=[...s.loop,...s.support].reduce((a,l)=>a+l.commands.filter(t).length,0),m=s.skills.reduce((a,l)=>a+l.skills.filter(t).length,0);return i+s.hooks.filter(t).length+s.agents.filter(t).length+m+s.runtimes.filter(t).length}const E=(s,n,t)=>ce(n,t)?s:`${s} gm-dim`;function ae({stage:s,query:n,arrow:t}){return e.jsxs("section",{className:`gm-stage gm-s-${s.id}${t?" has-arrow":""}`,"aria-label":s.label,children:[e.jsxs("h3",{children:[s.label," ",e.jsx("small",{children:s.sub}),e.jsx("span",{className:"gm-count",children:s.count})]}),e.jsx("ul",{className:"gm-list",children:s.commands.map(i=>e.jsxs("li",{className:E("gm-item",n,i.search),children:[e.jsxs("a",{className:i.daily?"gm-name is-daily":"gm-name",href:f("details",i.anchor),children:["/",i.name]}),e.jsx("span",{className:"gm-blurb",children:i.blurb})]},i.name))})]})}function Pe({guide:s}){const n=k.useMemo(()=>Ie(s),[s]),[t,i]=k.useState(""),m=t.trim()!=="",a=k.useMemo(()=>Le(n,t),[n,t]),l=[[n.counts.commands,"commands"],[n.counts.agents,"agents"],[n.counts.skills,"skills"],[n.counts.hookEvents,"hook events"],[n.counts.hookScripts,"hook scripts"],[n.counts.runtimes,"runtimes"]];return e.jsxs("div",{className:"gm","data-testid":"guide-map",children:[e.jsxs("div",{className:"gm-bar",children:[e.jsxs("label",{className:"gm-filter",children:[e.jsx("span",{className:"guide-filter-label",children:"Filter the map"}),e.jsx("input",{className:"guide-filter-input",type:"search",value:t,placeholder:"name, word or model","data-testid":"guide-map-filter",onChange:c=>i(c.target.value)})]}),e.jsx("p",{className:"gm-matches","aria-live":"polite","data-testid":"guide-map-matches",children:m?`${a} ${a===1?"match":"matches"}`:""}),e.jsx("button",{type:"button",className:"gm-print",onClick:()=>window.print(),children:"Print"})]}),e.jsxs("div",{className:"gm-sheet","data-testid":"guide-map-sheet",children:[e.jsxs("header",{className:"gm-head",children:[e.jsxs("div",{children:[e.jsxs("p",{className:"gm-eyebrow",children:["caddis ",n.version," · generated ",n.generated]}),e.jsx("h2",{className:"gm-title",children:"caddis plugin map"}),e.jsx("p",{className:"gm-lede",children:"What the plugin puts into a session: the commands you type, the hooks that run by themselves, the agents, the skills, and where it is installed. Click any name for its details."})]}),e.jsx("dl",{className:"gm-stats",children:l.map(([c,p])=>e.jsxs("div",{children:[e.jsx("dt",{children:p}),e.jsx("dd",{children:c})]},p))})]}),n.loop.length>0&&e.jsxs("section",{className:"gm-section","aria-label":"The daily loop",children:[e.jsxs("h2",{className:"gm-h",children:["The daily loop ",e.jsx("small",{children:"★ = a daily command"})]}),e.jsx("div",{className:"gm-loop",children:n.loop.map((c,p)=>e.jsx(ae,{stage:c,query:t,arrow:p<n.loop.length-1},c.id))})]}),n.support.length>0&&e.jsxs("section",{className:"gm-section","aria-label":"Support lanes",children:[e.jsxs("h2",{className:"gm-h",children:["Support lanes ",e.jsx("small",{children:"around the loop"})]}),e.jsx("div",{className:"gm-lanes",children:n.support.map(c=>e.jsx(ae,{stage:c,query:t,arrow:!1},c.id))})]}),n.hooks.length>0&&e.jsxs("section",{className:"gm-section","aria-label":"Hooks across a session",children:[e.jsxs("h2",{className:"gm-h",children:["Hooks across a session ",e.jsx("small",{children:"run by themselves, in the order a session fires them"})]}),e.jsx("ol",{className:"gm-timeline",children:n.hooks.map(c=>e.jsxs("li",{className:E("gm-event",t,c.search),children:[e.jsx("a",{className:"gm-name",href:f("details",c.anchor),children:c.event}),e.jsx("span",{className:"gm-matcher",children:c.matchers.join(" · ")}),e.jsx("ul",{className:"gm-handlers",children:c.handlers.map(p=>e.jsx("li",{children:p},p))})]},c.event))})]}),n.agents.length>0&&e.jsxs("section",{className:"gm-section","aria-label":"Agents",children:[e.jsxs("h2",{className:"gm-h",children:["Agents ",e.jsx("small",{children:'say "use the … agent"'})]}),e.jsx("div",{className:"gm-agents",children:n.agents.map(c=>e.jsxs("div",{className:E("gm-agent",t,c.search),children:[e.jsxs("div",{className:"gm-agent-head",children:[e.jsx("a",{className:"gm-name",href:f("details",c.anchor),children:c.name}),c.model&&e.jsx("span",{className:"gm-badge gm-model",children:c.model}),c.writes&&e.jsx("span",{className:"gm-badge gm-writes",children:"writes files"})]}),e.jsx("span",{className:"gm-blurb",children:c.blurb})]},c.name))})]}),n.skills.length>0&&e.jsxs("section",{className:"gm-section","aria-label":"Skills",children:[e.jsxs("h2",{className:"gm-h",children:["Skills ",e.jsx("small",{children:"by family · core skills first"})]}),e.jsx("div",{className:"gm-families",children:n.skills.map(c=>e.jsxs("div",{className:"gm-family",children:[e.jsxs("h3",{children:[e.jsx("a",{href:f("details",c.anchor),children:c.id}),e.jsx("span",{className:"gm-count",children:c.count})]}),e.jsx("div",{className:"gm-chips",children:c.skills.map(p=>e.jsx("a",{className:E(p.core?"gm-chip is-core":"gm-chip",t,p.search),href:f("details",p.anchor),children:p.name},p.name))})]},c.id))})]}),n.runtimes.length>0&&e.jsxs("section",{className:"gm-section","aria-label":"Runtimes",children:[e.jsxs("h2",{className:"gm-h",children:["Runtimes ",e.jsx("small",{children:"where caddis is installed"})]}),e.jsx("div",{className:"gm-runtimes",children:n.runtimes.map(c=>e.jsxs("a",{className:E("gm-runtime",t,c.search),href:f("details","guide-runtimes"),children:[e.jsx("b",{children:c.name}),e.jsx("span",{children:c.kinds.join(" · ")})]},c.name))})]}),e.jsxs("footer",{className:"gm-foot",children:["Built from caddis ",n.version," · generated ",n.generated,". It updates when caddis updates."]})]})]})}const de=1e3,$=de/2;function te(s){const n=Math.round(s*10)/10;return Object.is(n,-0)?0:n}function le(s,n){const t=s.x-$,i=s.y-$,m=Math.hypot(t,i)||1,a=s.r+n;return{x:te(s.x+t/m*a),y:te(s.y+i/m*a)}}function Oe({model:s}){var m,a;const n=ve(s,de),t=new Map(n.map(l=>[l.id,l])),i=typeof document>"u"||((a=(m=document.documentElement)==null?void 0:m.dataset)==null?void 0:a.motion)!=="off";return e.jsxs("svg",{className:"gp-map",viewBox:"0 0 1000 1000",role:"img","aria-label":"caddis mind map",children:[n.map(l=>{if(!l.parent)return null;const c=t.get(l.parent);if(!c)return null;const p=l.kind==="stage"||l.kind==="group";return e.jsx("line",{x1:c.x,y1:c.y,x2:l.x,y2:l.y,stroke:"var(--border-dim)",strokeWidth:p?1.5:1},`line-${l.id}`)}),n.map(l=>{if(l.kind==="root")return e.jsxs("g",{children:[e.jsx("circle",{cx:l.x,cy:l.y,r:l.r,fill:"var(--purple)"}),e.jsx("text",{x:l.x,y:l.y,textAnchor:"middle",dominantBaseline:"central",fill:"var(--bg-canvas)",fontFamily:"var(--font-head)",fontSize:28,fontWeight:700,children:l.label})]},l.id);if(l.kind==="stage"||l.kind==="group"){const g=le(l,22),d=l.x<$-60?"end":l.x>$+60?"start":"middle";return e.jsxs("g",{className:i?"gp-pulse":void 0,children:[e.jsx("circle",{cx:l.x,cy:l.y,r:l.r,fill:"var(--purple)"}),e.jsx("text",{x:g.x,y:g.y,textAnchor:d,dominantBaseline:"central",fill:"var(--text-main)",fontFamily:"var(--font-head)",fontSize:18,fontWeight:600,children:l.label})]},l.id)}const c=le(l,8),p=l.x>=$?"start":"end",u=e.jsxs(e.Fragment,{children:[e.jsx("circle",{cx:l.x,cy:l.y,r:l.r,fill:"var(--bg-card)",stroke:"var(--purple)"}),e.jsx("text",{x:c.x,y:c.y,textAnchor:p,dominantBaseline:"central",fill:"var(--text-main)",fontFamily:"var(--font-body)",fontSize:11,children:l.label})]});return l.anchor!==null?e.jsxs("a",{href:f("details",l.anchor),children:[e.jsx("title",{children:l.label}),u]},l.id):e.jsx("g",{children:u},l.id)})]})}const _e=ie.replace("<svg ",'<svg class="caddis-mark-build" '),me="caddis.hub.posterMode";function Be(){try{return window.localStorage.getItem(me)==="mind"?"mind":"workflow"}catch{return"workflow"}}function De(s){try{window.localStorage.setItem(me,s)}catch{}}function Fe({guide:s}){const[n,t]=k.useState(()=>Be()),i=k.useMemo(()=>we(s),[s]),m=a=>{t(a),De(a)};return e.jsxs("div",{className:"gp","data-testid":"guide-poster",children:[e.jsxs("div",{className:"gp-head",children:[e.jsxs("div",{className:"gp-head-left",children:[e.jsx("span",{className:"guide-mark","aria-hidden":"true",dangerouslySetInnerHTML:{__html:_e}}),e.jsxs("div",{children:[e.jsx("h2",{className:"gp-title",children:"caddis at a glance"}),e.jsx("p",{className:"gp-counts",children:`${i.version} · ${i.counts.commands} commands · ${i.counts.agents} agents · ${i.counts.skills} skills · ${i.counts.hooks} hooks`})]})]}),e.jsxs("div",{className:"gp-switch",role:"group","aria-label":"Poster view",children:[e.jsx("button",{type:"button","aria-pressed":n==="workflow",onClick:()=>m("workflow"),children:"Workflow"}),e.jsx("button",{type:"button","aria-pressed":n==="mind",onClick:()=>m("mind"),children:"Mind map"})]}),e.jsx("button",{type:"button",className:"gp-print",onClick:()=>window.print(),children:"Print"})]}),e.jsxs("div",{className:n==="workflow"?"gp-workflow":"gp-workflow gp-hidden",children:[e.jsx("div",{className:"gp-flow",children:i.flow.map((a,l)=>e.jsxs("div",{className:"gp-stage",children:[e.jsxs("h3",{children:[e.jsx("span",{className:"gp-step",children:l+1}),e.jsx("span",{children:a.label})]}),e.jsx("div",{className:"gp-chips",children:a.commands.map(c=>e.jsxs("a",{className:c.daily?"gp-chip is-daily":"gp-chip",href:f("details",c.anchor),title:c.blurb,children:["/",c.name]},c.name))})]},a.id))}),e.jsx("div",{className:"gp-bands",children:i.bands.map(a=>e.jsxs("div",{className:"gp-band",children:[e.jsx("h3",{children:a.label}),e.jsx("div",{className:"gp-chips",children:a.commands.map(l=>e.jsxs("a",{className:l.daily?"gp-chip is-daily":"gp-chip",href:f("details",l.anchor),title:l.blurb,children:["/",l.name]},l.name))})]},a.id))}),e.jsxs("div",{className:"gp-foot",children:[e.jsxs("div",{className:"gp-card",children:[e.jsx("h3",{children:"Agents"}),e.jsx("h4",{className:"gp-sub",children:"Read only"}),e.jsx("div",{className:"gp-chips",children:i.agentsReadOnly.map(a=>e.jsx("a",{className:"gp-chip",href:f("details",a.anchor),title:a.blurb,children:a.name},a.name))}),e.jsx("h4",{className:"gp-sub",children:"Writes files"}),e.jsx("div",{className:"gp-chips",children:i.agentsWrite.map(a=>e.jsx("a",{className:"gp-chip",href:f("details",a.anchor),title:a.blurb,children:a.name},a.name))})]}),e.jsxs("div",{className:"gp-card",children:[e.jsx("h3",{children:"Skills"}),e.jsx("div",{className:"gp-chips",children:i.skillCategories.map(a=>e.jsxs("a",{className:"gp-chip",href:f("details",a.anchor),children:[a.name," · ",a.count]},a.name))})]}),e.jsxs("div",{className:"gp-card",children:[e.jsx("h3",{children:"Hooks"}),e.jsx("div",{className:"gp-hooks",children:i.hooks.map(a=>e.jsx("div",{className:"gp-hook-line",children:e.jsxs("a",{className:"gp-chip",href:f("details",j("hook",a.event)),children:[a.event," · ",a.count]})},a.event))})]})]})]}),e.jsx("div",{className:n==="mind"?"gp-map-wrap":"gp-map-wrap gp-hidden",children:e.jsx(Oe,{model:i})})]})}function He({row:s}){const n=s.kind==="command"?`/${s.name}`:s.name;return e.jsxs("div",{className:"gw-row",children:[e.jsx("a",{className:s.daily?"gw-name is-daily":"gw-name",href:f("details",s.anchor),children:n})," ",e.jsx("span",{className:"gw-blurb",children:s.blurb})]})}const Ge=.6,We=.04;function Ue(s){let n=1;for(s.style.setProperty("--gw-scale","1");s.scrollWidth>s.clientWidth+1&&n>Ge;)n=Math.round((n-We)*100)/100,s.style.setProperty("--gw-scale",String(n))}function Ze({guide:s}){const n=k.useMemo(()=>Te(s),[s]),t=k.useRef(null);k.useEffect(()=>{t.current&&Ue(t.current)},[n]);const i=[[n.counts.commands,"commands"],[n.counts.agents,"agents"],[n.counts.skills,"skills"],[n.counts.hooks,"hooks"],[n.version,"version"]];return e.jsxs("div",{className:"gw","data-testid":"guide-wall",children:[e.jsxs("div",{className:"gw-bar",children:[e.jsx("p",{children:"One A4 landscape sheet, built from the installed guide data. It updates when caddis updates."}),e.jsx("button",{type:"button",className:"gw-print",onClick:()=>window.print(),children:"Print"})]}),e.jsxs("div",{className:"gw-sheet","data-testid":"guide-wall-sheet",children:[e.jsxs("header",{className:"gw-head",children:[e.jsxs("div",{children:[e.jsxs("span",{className:"gw-brand",children:["cad",e.jsx("span",{children:"dis"})]}),e.jsxs("span",{className:"gw-tag",children:["the dev harness — type ",e.jsx("b",{children:"/name"})," in a session · full name ",e.jsx("b",{children:"/caddis:name"})," · ★ = daily"]})]}),e.jsx("div",{className:"gw-stats",children:i.map(([m,a])=>e.jsxs("div",{children:[e.jsx("b",{children:m}),a]},a))})]}),e.jsx("div",{className:"gw-loop",children:n.loop.map(m=>e.jsxs("a",{className:"gw-step",href:f("details",m.anchor),children:[e.jsxs("b",{children:["/",m.name]}),e.jsx("span",{children:m.blurb})]},m.name))}),e.jsx("div",{className:"gw-cards",ref:t,children:n.cards.map(m=>e.jsxs("section",{className:`gw-card gw-${m.id}`,children:[e.jsxs("h2",{children:[m.label," ",e.jsx("small",{children:m.sub})]}),m.rows.map(a=>e.jsx(He,{row:a},`${a.kind}-${a.name}`))]},m.id))}),e.jsxs("footer",{className:"gw-foot",children:[e.jsxs("span",{children:["Built from caddis ",n.version," · generated ",n.generated,". Click any name for its details."]}),e.jsxs("span",{children:["Day: ",e.jsx("b",{children:"/catchup"})," → work → ",e.jsx("b",{children:"/handoff"})]})]})]})]})}const Ke="Guide data is not ready yet. The hub collects it in the first minute.",Ve="npm i -g @caddis/cli@latest",qe=ie.replace("<svg ",'<svg class="caddis-mark-build" ');function _({title:s,children:n}){return e.jsxs("div",{className:"notice","data-testid":"guide-state","aria-live":"polite",children:[e.jsx("h2",{className:"guide-state-title",children:s}),e.jsx("p",{children:n})]})}function Qe({guide:s,versions:n,tab:t="poster",item:i=null,initialFilter:m}){const a=fe(s);let l;a.kind==="missing"?l=e.jsx(_,{title:"Guide data missing",children:Ke}):a.kind==="error"?l=e.jsx(_,{title:"The guide could not be read",children:e.jsxs(e.Fragment,{children:[a.message," Run ",e.jsx("code",{className:"cmd",children:"caddis doctor"})," to check the install."]})}):a.kind==="newer"?l=e.jsx(_,{title:"The guide is newer than this hub",children:e.jsxs(e.Fragment,{children:["The data has schema ",a.schema,". Update the hub: ",e.jsx("code",{className:"cmd",children:Ve})]})}):t==="poster"?l=e.jsx(Fe,{guide:a.guide}):t==="wall"?l=e.jsx(Ze,{guide:a.guide}):t==="map"?l=e.jsx(Pe,{guide:a.guide}):l=e.jsx(Me,{guide:a.guide,item:i,initialFilter:m});const c=a.kind==="ok"?a.guide:null;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"guide-hero",children:[e.jsx("span",{className:"guide-mark","aria-hidden":"true",dangerouslySetInnerHTML:{__html:qe}}),e.jsxs("div",{children:[e.jsx("h1",{className:"page-title",children:"caddis guide"}),e.jsx("p",{className:"page-subtitle","data-testid":"guide-version",children:c?`caddis ${c.version} (installed pool) · generated ${c.generated} · hub ${n.hub}`:`hub ${n.hub}`})]})]}),e.jsxs("div",{className:"guide-tabs",role:"tablist",children:[e.jsx("a",{role:"tab",href:f("poster"),"aria-selected":t==="poster",children:"Poster"}),e.jsx("a",{role:"tab",href:f("details"),"aria-selected":t==="details",children:"Details"}),e.jsx("a",{role:"tab",href:f("wall"),"aria-selected":t==="wall",children:"Wall poster"}),e.jsx("a",{role:"tab",href:f("map"),"aria-selected":t==="map",children:"Map"})]}),l]})}export{Qe as Guide,Ke as MISSING_TEXT,Ve as UPDATE_HINT};
|
|
9
|
+
`,je=1,B=["setup","plan","build","review","ship","continuity","knowledge"];function j(s,n){return`g-${s}-${n.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}`}const Z=s=>typeof s=="object"&&s!==null&&!Array.isArray(s);function fe(s){if(s==null)return{kind:"missing"};if(!Z(s))return{kind:"error",message:"The guide data has an unexpected shape."};if(typeof s.error=="string")return{kind:"error",message:s.error};if(typeof s.schema=="number"&&s.schema>je)return{kind:"newer",schema:s.schema};for(const t of["commands","agents","skills","hooks"])if(!Array.isArray(s[t]))return{kind:"error",message:`The guide data has no "${t}" list.`};if(!Z(s.coverage))return{kind:"error",message:'The guide data has no "coverage" list.'};const n=s.commands.map(t=>({...t,steps:Array.isArray(t.steps)?t.steps:[],scripts:Array.isArray(t.scripts)?t.scripts:[]}));return{kind:"ok",guide:{...s,commands:n}}}const ke=["commands","agents","skills","hooks","runtimes"],re={commands:"Commands",agents:"Agents",skills:"Skills",hooks:"Hooks",runtimes:"Runtimes"};function oe(s){const n=new Map;for(const t of["commands","skills","agents"])for(const i of s.coverage[t]??[])n.set(i,[...n.get(i)??[],t]);return[...n.entries()].sort(([t],[i])=>t.localeCompare(i)).map(([t,i])=>({name:t,kinds:i}))}const ye=["setup","plan","build","review","ship"],be=["continuity","knowledge"],P={setup:"Setup",plan:"Plan",build:"Build",review:"Review",ship:"Ship",continuity:"Continuity",knowledge:"Knowledge",other:"Other"};function I(s){const n=s.indexOf(". "),t=(n>=0?s.slice(0,n+1):s).trim();return t.length>90?`${t.slice(0,89)}…`:t}function Ne(s){return{kind:"command",name:s.name,blurb:I(s.description),daily:s.daily,anchor:j("command",s.name)}}function O(s){return[...s].sort((n,t)=>Number(t.daily)-Number(n.daily)||n.name.localeCompare(t.name)).map(Ne)}function we(s){const n=new Set(B),t=ye.map(r=>({id:r,label:P[r],flow:!0,commands:O(s.commands.filter(h=>h.stage===r))})),i=be.map(r=>({id:r,label:P[r],flow:!1,commands:O(s.commands.filter(h=>h.stage===r))})),c=O(s.commands.filter(r=>!n.has(r.stage)));c.length>0&&i.push({id:"other",label:P.other,flow:!1,commands:c});const a=r=>({kind:"agent",name:r.name,blurb:I(r.description),daily:!1,anchor:j("agent",r.name)}),l=s.agents.filter(r=>!r.writes).sort((r,h)=>r.name.localeCompare(h.name)).map(a),d=s.agents.filter(r=>r.writes).sort((r,h)=>r.name.localeCompare(h.name)).map(a),p=new Map;for(const r of s.skills)p.set(r.category,(p.get(r.category)??0)+1);const u=[...p.entries()].sort(([r,h],[y,v])=>v-h||r.localeCompare(y)).map(([r,h])=>({kind:"skillCategory",name:r,blurb:"",daily:!1,anchor:j("skillCategory",r),count:h})),g=new Map;for(const r of s.hooks)g.set(r.event,(g.get(r.event)??0)+1);const m=[...g.entries()].sort(([r],[h])=>r.localeCompare(h)).map(([r,h])=>({event:r,count:h}));return{version:s.version,flow:t,bands:i,agentsReadOnly:l,agentsWrite:d,skillCategories:u,hooks:m,counts:{commands:s.commands.length,agents:s.agents.length,skills:s.skills.length,hooks:s.hooks.length}}}function w(s){const n=Math.round(s*10)/10;return Object.is(n,-0)?0:n}function ve(s,n){const t=n/2,i=[{id:"root",label:"caddis",kind:"root",anchor:null,x:w(t),y:w(t),r:w(.06*n),parent:null}],c=[...s.flow.map(u=>({id:`stage-${u.id}`,label:u.label,kind:"stage",leaves:u.commands.map(g=>({kind:"command",name:g.name,anchor:j("command",g.name)}))})),...s.bands.map(u=>({id:`stage-${u.id}`,label:u.label,kind:"stage",leaves:u.commands.map(g=>({kind:"command",name:g.name,anchor:j("command",g.name)}))})),{id:"agents",label:"Agents",kind:"group",leaves:[...s.agentsReadOnly,...s.agentsWrite].map(u=>({kind:"agent",name:u.name,anchor:j("agent",u.name)}))},{id:"skills",label:"Skills",kind:"group",leaves:s.skillCategories.map(u=>({kind:"skillCategory",name:u.name,anchor:j("skillCategory",u.name)}))},{id:"hooks",label:"Hooks",kind:"group",leaves:s.hooks.map(u=>({kind:"hook",name:u.event,anchor:j("hook",u.event)}))}],a=c.length,l=.24*n,d=w(.035*n),p=w(.012*n);return c.forEach((u,g)=>{const m=-90+g*360/a,r=m*Math.PI/180;i.push({id:u.id,label:u.label,kind:u.kind,anchor:null,x:w(t+l*Math.cos(r)),y:w(t+l*Math.sin(r)),r:d,parent:"root"});const h=u.leaves.length;u.leaves.forEach((y,v)=>{const T=(m+(h===1?0:(v/(h-1)-.5)*(300/a)))*Math.PI/180,R=(v%2===0?.4:.45)*n;i.push({id:`${y.kind}-${y.name}`,label:y.name,kind:y.kind,anchor:y.anchor,x:w(t+R*Math.cos(T)),y:w(t+R*Math.sin(T)),r:p,parent:u.id})})}),i}const K={setup:"Setup",plan:"Plan",build:"Build",review:"Review",ship:"Ship",continuity:"Continuity",knowledge:"Knowledge",other:"Other"};function S(s,...n){return s?n.some(t=>t!==void 0&&t.toLowerCase().includes(s)):!0}function Ce(s){const n=new Map;for(const i of s){const c=i.stage||"other",a=n.get(c)??[];a.push(i),n.set(c,a)}const t=[];for(const i of B){const c=n.get(i);c&&c.length>0&&(t.push([i,c]),n.delete(i))}for(const[i,c]of n.entries())c.length>0&&t.push([i,c]);return t}function Se(s){const n=new Map;for(const t of s){const i=t.category||"uncategorised",c=n.get(i)??[];c.push(t),n.set(i,c)}return Array.from(n.entries())}function M({id:s,total:n,shown:t,isFiltered:i}){return e.jsxs("h2",{children:[re[s]," ",e.jsx("span",{className:"guide-count","data-testid":`guide-count-${s}`,children:n}),i&&e.jsxs(e.Fragment,{children:[" ",e.jsx("span",{className:"guide-shown","data-testid":`guide-shown-${s}`,children:`${t} of ${n}`})]})]})}function Me({guide:s,item:n,initialFilter:t=""}){var H,G,W,U;const[i,c]=k.useState(t),a=i.trim().toLowerCase(),l=a.length>0;k.useEffect(()=>{var C;if(!n||typeof document>"u")return;const o=document.getElementById(n);if(!o)return;o.tagName==="DETAILS"&&(o.open=!0);const b=(C=o.parentElement)==null?void 0:C.closest("details");b&&(b.open=!0),typeof o.scrollIntoView=="function"&&o.scrollIntoView({block:"start"}),o.classList.add("is-target");const x=window.setTimeout(()=>{o.classList.remove("is-target")},2e3);return()=>window.clearTimeout(x)},[n]);const d=o=>{var b,x;typeof document>"u"||(x=document.getElementById(`guide-${o}`))==null||x.scrollIntoView({block:"start",behavior:typeof window<"u"&&((b=window.matchMedia)!=null&&b.call(window,"(prefers-reduced-motion: reduce)").matches)?"auto":"smooth"})},p=k.useMemo(()=>s.commands.filter(o=>S(a,o.name,o.description,o.stage)),[s.commands,a]),u=k.useMemo(()=>s.agents.filter(o=>S(a,o.name,o.description)),[s.agents,a]),g=k.useMemo(()=>s.skills.filter(o=>S(a,o.name,o.description,o.category)),[s.skills,a]),m=k.useMemo(()=>s.hooks.filter(o=>S(a,o.event,o.matcher,o.handler)),[s.hooks,a]),r=k.useMemo(()=>Ce(p),[p]),h=k.useMemo(()=>Se(g),[g]),y=k.useMemo(()=>oe(s),[s]),v=k.useMemo(()=>y.filter(o=>S(a,o.name,...o.kinds)),[y,a]),D=((H=s.counts)==null?void 0:H.commands)??s.commands.length,T=((G=s.counts)==null?void 0:G.agents)??s.agents.length,R=((W=s.counts)==null?void 0:W.skills)??s.skills.length,he=((U=s.counts)==null?void 0:U.hooks)??s.hooks.length,ue=y.length,pe=p.length+u.length+g.length+m.length+v.length,F=new Set;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"guide-tools",children:[e.jsxs("label",{className:"guide-filter",children:[e.jsx("span",{className:"guide-filter-label",children:"Filter the guide"}),e.jsx("input",{type:"search",className:"guide-filter-input",value:i,placeholder:"Name, purpose, stage or hook",onChange:o=>c(o.target.value),"data-testid":"guide-filter"})]}),e.jsx("nav",{className:"guide-chips","aria-label":"Guide sections",children:ke.map(o=>e.jsx("button",{type:"button",className:"guide-jump",onClick:()=>d(o),children:re[o]},o))}),e.jsx("p",{className:"guide-note",children:"Invoke forms are for Claude Code. Other runtimes list the same names in their own way."})]}),l&&pe===0&&e.jsxs("p",{className:"notice","data-testid":"guide-nomatch",children:["Nothing matches ",e.jsx("code",{className:"cmd",children:i}),"."]}),e.jsxs("section",{className:"gd-section",id:"guide-commands",children:[e.jsx(M,{id:"commands",total:D,shown:p.length,isFiltered:l}),r.map(([o,b])=>e.jsxs("div",{className:"guide-group",children:[e.jsx("h3",{className:"gd-stage",children:K[o]??K.other??o}),b.map(x=>{const C=j("command",x.name);return e.jsxs("details",{className:"gd-item",id:C,open:n===C||void 0,"data-testid":"guide-entry",children:[e.jsxs("summary",{children:[e.jsxs("code",{className:"gd-name",children:["/caddis:",x.name]}),e.jsx("span",{className:"gd-blurb",children:I(x.description)}),x.daily&&e.jsx("span",{className:"guide-chip good",children:"daily"}),x.noArgs&&e.jsx("span",{className:"guide-chip",children:"no args"})]}),e.jsx("p",{children:x.description}),x.steps.length>0&&e.jsx("ol",{className:"gd-steps",children:x.steps.map(([N,ge],xe)=>e.jsxs("li",{children:[N," ",ge]},`${N}-${xe}`))}),x.hint&&e.jsx("p",{className:"gd-hint",children:x.hint})]},x.name)})]},o))]}),e.jsxs("section",{className:"gd-section",id:"guide-agents",children:[e.jsx(M,{id:"agents",total:T,shown:u.length,isFiltered:l}),e.jsxs("table",{className:"gd-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Agent"}),e.jsx("th",{children:"What it does"}),e.jsx("th",{children:"Access"}),e.jsx("th",{children:"Model"})]})}),e.jsx("tbody",{children:u.map(o=>e.jsxs("tr",{id:j("agent",o.name),"data-testid":"guide-entry",children:[e.jsx("td",{children:e.jsx("code",{children:o.name})}),e.jsx("td",{children:o.description}),e.jsx("td",{children:o.writes?"writes files":"read only"}),e.jsx("td",{children:o.model})]},o.name))})]})]}),e.jsxs("section",{className:"gd-section",id:"guide-skills",children:[e.jsx(M,{id:"skills",total:R,shown:g.length,isFiltered:l}),h.map(([o,b])=>{const x=j("skillCategory",o),C=l||n===x||b.some(N=>j("skill",N.name)===n);return e.jsxs("details",{className:"gd-group",id:x,open:C||void 0,children:[e.jsxs("summary",{children:[o," · ",b.length]}),b.map(N=>e.jsxs("div",{className:"gd-skill",id:j("skill",N.name),"data-testid":"guide-entry",children:[e.jsx("code",{children:N.name}),N.core&&e.jsx("span",{className:"guide-chip good",children:"core"}),e.jsx("span",{className:"gd-blurb",children:I(N.description)})]},N.name))]},o)})]}),e.jsxs("section",{className:"gd-section",id:"guide-hooks",children:[e.jsx(M,{id:"hooks",total:he,shown:m.length,isFiltered:l}),e.jsxs("table",{className:"gd-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Event"}),e.jsx("th",{children:"Matcher"}),e.jsx("th",{children:"Handler"})]})}),e.jsx("tbody",{children:m.map((o,b)=>{const x=!F.has(o.event);return x&&F.add(o.event),e.jsxs("tr",{id:x?j("hook",o.event):void 0,"data-testid":"guide-entry",children:[e.jsx("td",{children:o.event}),e.jsx("td",{children:o.matcher}),e.jsx("td",{children:o.handler})]},`${o.event}-${o.matcher}-${o.handler}-${b}`)})})]})]}),e.jsxs("section",{className:"gd-section",id:"guide-runtimes",children:[e.jsx(M,{id:"runtimes",total:ue,shown:v.length,isFiltered:l}),e.jsx("p",{className:"guide-note",children:"caddis install and caddis update put these on each runtime."}),e.jsx("ul",{className:"guide-list",children:v.map(o=>e.jsxs("li",{className:"guide-entry","data-testid":"guide-entry",children:[e.jsx("div",{className:"guide-entry-head",children:e.jsx("span",{className:"guide-entry-name",children:o.name})}),e.jsx("p",{className:"guide-entry-purpose",children:`Receives: ${o.kinds.join(", ")}`})]},o.name))})]})]})}const Ae=["plan","build","review","ship","continuity","knowledge","setup"],Ee=["plan","build","review","ship"],V={plan:["Plan","decide what to build"],build:["Build","write the code"],review:["Review","catch bugs first"],ship:["Ship","PR · CI · merge"],continuity:["Continuity","never lose your place"],knowledge:["Knowledge","write it down once"],setup:["Setup","once per repo or machine"],other:["Other","everything else"]},q=44;function L(s){const n=s.replace(/^Use this (agent|skill) (periodically(?: \([^)]*\))? |to |when |after |for )?(to )?/i,""),i=((n===s?n:n.charAt(0).toUpperCase()+n.slice(1)).split(/ [—–-] |\. |; | \(/)[0]??"").trim().replace(/[.:,;]+$/,"");if(i.length<=q)return i;const c=i.slice(0,q),a=c.lastIndexOf(" ");return`${(a>20?c.slice(0,a):c).replace(/[.:,;]+$/,"")}…`}function X(s){return{kind:"command",name:s.name,daily:s.daily,blurb:L(s.description),anchor:j("command",s.name)}}const $e=(s,n)=>Number(n.daily)-Number(s.daily)||s.name.localeCompare(n.name);function Te(s){const n=new Set(B),t=a=>s.commands.filter(l=>a==="other"?!n.has(l.stage):l.stage===a).sort($e),i=[...Ae,"other"].map(a=>({id:a,label:V[a][0],sub:V[a][1],kind:"command",rows:t(a).map(X)}));i.push({id:"agents",label:"Agents",sub:'say "use the … agent"',kind:"agent",rows:[...s.agents].sort((a,l)=>a.name.localeCompare(l.name)).map(a=>({kind:"agent",name:a.name,daily:!1,blurb:L(a.description),anchor:j("agent",a.name)}))});const c=Ee.flatMap(a=>t(a).filter(l=>l.daily).map(X));return{version:s.version,generated:s.generated,counts:{commands:s.commands.length,agents:s.agents.length,skills:s.skills.length,hooks:s.hooks.length},loop:c,cards:i.filter(a=>a.rows.length>0)}}const Q=["plan","build","review","ship"],Y=["continuity","knowledge","setup"],z={plan:["Plan","decide what to build"],build:["Build","write the code"],review:["Review","catch bugs first"],ship:["Ship","PR · CI · merge"],continuity:["Continuity","never lose your place"],knowledge:["Knowledge","write it down once"],setup:["Setup","once per repo or machine"],other:["Other","everything else"]},J=["SessionStart","UserPromptSubmit","PreToolUse","PermissionRequest","PostToolUse","PostToolUseFailure","Notification","SubagentStop","Stop","PreCompact","SessionEnd"],A=(...s)=>s.join(" ").toLowerCase(),Re=(s,n)=>Number(n.daily)-Number(s.daily)||s.name.localeCompare(n.name);function ee(s){const n=s.trim();return n.split(/[\\/]/).pop()||n}function se(s){const n=J.indexOf(s);return n>=0?n:J.length}const ne=s=>[...new Set(s)].sort((n,t)=>n.localeCompare(t));function ce(s,n){const t=s.trim().toLowerCase().split(/\s+/).filter(Boolean),i=n.toLowerCase();return t.every(c=>i.includes(c))}function Ie(s){const n=new Set([...Q,...Y]),t=m=>s.commands.filter(r=>m==="other"?!n.has(r.stage):r.stage===m).sort(Re),i=m=>{const r=t(m).map(h=>({name:h.name,daily:h.daily,blurb:L(h.description),anchor:j("command",h.name),search:A(h.name,h.description,h.hint,h.stage)}));return{id:m,label:z[m][0],sub:z[m][1],count:r.length,commands:r}},c=m=>m.count>0,a=new Map;for(const m of s.hooks){const r=a.get(m.event)??{handlers:[],matchers:[]};r.handlers.push(ee(m.handler)),m.matcher.trim()&&r.matchers.push(m.matcher),a.set(m.event,r)}const l=[...a.keys()].sort((m,r)=>se(m)-se(r)||m.localeCompare(r)).map(m=>{const r=a.get(m),h=ne(r.handlers),y=ne(r.matchers);return{event:m,anchor:j("hook",m),handlers:h,matchers:y,search:A(m,...h,...y)}}),d=[...s.agents].sort((m,r)=>m.name.localeCompare(r.name)).map(m=>({name:m.name,model:m.model,writes:m.writes,blurb:L(m.description),anchor:j("agent",m.name),search:A(m.name,m.description,m.model)})),p=new Map;for(const m of s.skills){const r=m.category||"uncategorised";p.set(r,[...p.get(r)??[],m])}const u=[...p.entries()].map(([m,r])=>({id:m,anchor:j("skillCategory",m),count:r.length,skills:[...r].sort((h,y)=>Number(y.core)-Number(h.core)||h.name.localeCompare(y.name)).map(h=>({name:h.name,core:h.core,anchor:j("skill",h.name),search:A(h.name,h.description,m)}))})).sort((m,r)=>r.count-m.count||m.id.localeCompare(r.id)),g=oe(s).map(m=>({...m,search:A(m.name,...m.kinds)}));return{version:s.version,generated:s.generated,counts:{commands:s.commands.length,agents:s.agents.length,skills:s.skills.length,hookEvents:l.length,hookScripts:new Set(s.hooks.map(m=>ee(m.handler))).size,runtimes:g.length},loop:Q.map(i).filter(c),support:[...Y,"other"].map(i).filter(c),hooks:l,agents:d,skills:u,runtimes:g}}function Le(s,n){const t=a=>ce(n,a.search),i=[...s.loop,...s.support].reduce((a,l)=>a+l.commands.filter(t).length,0),c=s.skills.reduce((a,l)=>a+l.skills.filter(t).length,0);return i+s.hooks.filter(t).length+s.agents.filter(t).length+c+s.runtimes.filter(t).length}const E=(s,n,t)=>ce(n,t)?s:`${s} gm-dim`;function ae({stage:s,query:n,arrow:t}){return e.jsxs("section",{className:`gm-stage gm-s-${s.id}${t?" has-arrow":""}`,"aria-label":s.label,children:[e.jsxs("h3",{children:[s.label," ",e.jsx("small",{children:s.sub}),e.jsx("span",{className:"gm-count",children:s.count})]}),e.jsx("ul",{className:"gm-list",children:s.commands.map(i=>e.jsxs("li",{className:E("gm-item",n,i.search),children:[e.jsxs("a",{className:i.daily?"gm-name is-daily":"gm-name",href:f("details",i.anchor),children:["/",i.name]}),e.jsx("span",{className:"gm-blurb",children:i.blurb})]},i.name))})]})}function Pe({guide:s}){const n=k.useMemo(()=>Ie(s),[s]),[t,i]=k.useState(""),c=t.trim()!=="",a=k.useMemo(()=>Le(n,t),[n,t]),l=[[n.counts.commands,"commands"],[n.counts.agents,"agents"],[n.counts.skills,"skills"],[n.counts.hookEvents,"hook events"],[n.counts.hookScripts,"hook scripts"],[n.counts.runtimes,"runtimes"]];return e.jsxs("div",{className:"gm","data-testid":"guide-map",children:[e.jsxs("div",{className:"gm-bar",children:[e.jsxs("label",{className:"gm-filter",children:[e.jsx("span",{className:"guide-filter-label",children:"Filter the map"}),e.jsx("input",{className:"guide-filter-input",type:"search",value:t,placeholder:"name, word or model","data-testid":"guide-map-filter",onChange:d=>i(d.target.value)})]}),e.jsx("p",{className:"gm-matches","aria-live":"polite","data-testid":"guide-map-matches",children:c?`${a} ${a===1?"match":"matches"}`:""}),e.jsx("button",{type:"button",className:"gm-print",onClick:()=>window.print(),children:"Print"})]}),e.jsxs("div",{className:"gm-sheet","data-testid":"guide-map-sheet",children:[e.jsxs("header",{className:"gm-head",children:[e.jsxs("div",{children:[e.jsxs("p",{className:"gm-eyebrow",children:["caddis ",n.version," · generated ",n.generated]}),e.jsx("h2",{className:"gm-title",children:"caddis plugin map"}),e.jsx("p",{className:"gm-lede",children:"What the plugin puts into a session: the commands you type, the hooks that run by themselves, the agents, the skills, and where it is installed. Click any name for its details."})]}),e.jsx("dl",{className:"gm-stats",children:l.map(([d,p])=>e.jsxs("div",{children:[e.jsx("dt",{children:p}),e.jsx("dd",{children:d})]},p))})]}),n.loop.length>0&&e.jsxs("section",{className:"gm-section","aria-label":"The daily loop",children:[e.jsxs("h2",{className:"gm-h",children:["The daily loop ",e.jsx("small",{children:"★ = a daily command"})]}),e.jsx("div",{className:"gm-loop",children:n.loop.map((d,p)=>e.jsx(ae,{stage:d,query:t,arrow:p<n.loop.length-1},d.id))})]}),n.support.length>0&&e.jsxs("section",{className:"gm-section","aria-label":"Support lanes",children:[e.jsxs("h2",{className:"gm-h",children:["Support lanes ",e.jsx("small",{children:"around the loop"})]}),e.jsx("div",{className:"gm-lanes",children:n.support.map(d=>e.jsx(ae,{stage:d,query:t,arrow:!1},d.id))})]}),n.hooks.length>0&&e.jsxs("section",{className:"gm-section","aria-label":"Hooks across a session",children:[e.jsxs("h2",{className:"gm-h",children:["Hooks across a session ",e.jsx("small",{children:"run by themselves, in the order a session fires them"})]}),e.jsx("ol",{className:"gm-timeline",children:n.hooks.map(d=>e.jsxs("li",{className:E("gm-event",t,d.search),children:[e.jsx("a",{className:"gm-name",href:f("details",d.anchor),children:d.event}),e.jsx("span",{className:"gm-matcher",children:d.matchers.join(" · ")}),e.jsx("ul",{className:"gm-handlers",children:d.handlers.map(p=>e.jsx("li",{children:p},p))})]},d.event))})]}),n.agents.length>0&&e.jsxs("section",{className:"gm-section","aria-label":"Agents",children:[e.jsxs("h2",{className:"gm-h",children:["Agents ",e.jsx("small",{children:'say "use the … agent"'})]}),e.jsx("div",{className:"gm-agents",children:n.agents.map(d=>e.jsxs("div",{className:E("gm-agent",t,d.search),children:[e.jsxs("div",{className:"gm-agent-head",children:[e.jsx("a",{className:"gm-name",href:f("details",d.anchor),children:d.name}),d.model&&e.jsx("span",{className:"gm-badge gm-model",children:d.model}),d.writes&&e.jsx("span",{className:"gm-badge gm-writes",children:"writes files"})]}),e.jsx("span",{className:"gm-blurb",children:d.blurb})]},d.name))})]}),n.skills.length>0&&e.jsxs("section",{className:"gm-section","aria-label":"Skills",children:[e.jsxs("h2",{className:"gm-h",children:["Skills ",e.jsx("small",{children:"by family · core skills first"})]}),e.jsx("div",{className:"gm-families",children:n.skills.map(d=>e.jsxs("div",{className:"gm-family",children:[e.jsxs("h3",{children:[e.jsx("a",{href:f("details",d.anchor),children:d.id}),e.jsx("span",{className:"gm-count",children:d.count})]}),e.jsx("div",{className:"gm-chips",children:d.skills.map(p=>e.jsx("a",{className:E(p.core?"gm-chip is-core":"gm-chip",t,p.search),href:f("details",p.anchor),children:p.name},p.name))})]},d.id))})]}),n.runtimes.length>0&&e.jsxs("section",{className:"gm-section","aria-label":"Runtimes",children:[e.jsxs("h2",{className:"gm-h",children:["Runtimes ",e.jsx("small",{children:"where caddis is installed"})]}),e.jsx("div",{className:"gm-runtimes",children:n.runtimes.map(d=>e.jsxs("a",{className:E("gm-runtime",t,d.search),href:f("details","guide-runtimes"),children:[e.jsx("b",{children:d.name}),e.jsx("span",{children:d.kinds.join(" · ")})]},d.name))})]}),e.jsxs("footer",{className:"gm-foot",children:["Built from caddis ",n.version," · generated ",n.generated,". It updates when caddis updates."]})]})]})}const de=1e3,$=de/2;function te(s){const n=Math.round(s*10)/10;return Object.is(n,-0)?0:n}function le(s,n){const t=s.x-$,i=s.y-$,c=Math.hypot(t,i)||1,a=s.r+n;return{x:te(s.x+t/c*a),y:te(s.y+i/c*a)}}function Oe({model:s}){var c,a;const n=ve(s,de),t=new Map(n.map(l=>[l.id,l])),i=typeof document>"u"||((a=(c=document.documentElement)==null?void 0:c.dataset)==null?void 0:a.motion)!=="off";return e.jsxs("svg",{className:"gp-map",viewBox:"0 0 1000 1000",role:"img","aria-label":"caddis mind map",children:[n.map(l=>{if(!l.parent)return null;const d=t.get(l.parent);if(!d)return null;const p=l.kind==="stage"||l.kind==="group";return e.jsx("line",{x1:d.x,y1:d.y,x2:l.x,y2:l.y,stroke:"var(--border-dim)",strokeWidth:p?1.5:1},`line-${l.id}`)}),n.map(l=>{if(l.kind==="root")return e.jsxs("g",{children:[e.jsx("circle",{cx:l.x,cy:l.y,r:l.r,fill:"var(--purple)"}),e.jsx("text",{x:l.x,y:l.y,textAnchor:"middle",dominantBaseline:"central",fill:"var(--bg-canvas)",fontFamily:"var(--font-head)",fontSize:28,fontWeight:700,children:l.label})]},l.id);if(l.kind==="stage"||l.kind==="group"){const g=le(l,22),m=l.x<$-60?"end":l.x>$+60?"start":"middle";return e.jsxs("g",{className:i?"gp-pulse":void 0,children:[e.jsx("circle",{cx:l.x,cy:l.y,r:l.r,fill:"var(--purple)"}),e.jsx("text",{x:g.x,y:g.y,textAnchor:m,dominantBaseline:"central",fill:"var(--text-main)",fontFamily:"var(--font-head)",fontSize:18,fontWeight:600,children:l.label})]},l.id)}const d=le(l,8),p=l.x>=$?"start":"end",u=e.jsxs(e.Fragment,{children:[e.jsx("circle",{cx:l.x,cy:l.y,r:l.r,fill:"var(--bg-card)",stroke:"var(--purple)"}),e.jsx("text",{x:d.x,y:d.y,textAnchor:p,dominantBaseline:"central",fill:"var(--text-main)",fontFamily:"var(--font-body)",fontSize:11,children:l.label})]});return l.anchor!==null?e.jsxs("a",{href:f("details",l.anchor),children:[e.jsx("title",{children:l.label}),u]},l.id):e.jsx("g",{children:u},l.id)})]})}const _e=ie.replace("<svg ",'<svg class="caddis-mark-build" '),me="caddis.hub.posterMode";function Be(){try{return window.localStorage.getItem(me)==="mind"?"mind":"workflow"}catch{return"workflow"}}function De(s){try{window.localStorage.setItem(me,s)}catch{}}function Fe({guide:s}){const[n,t]=k.useState(()=>Be()),i=k.useMemo(()=>we(s),[s]),c=a=>{t(a),De(a)};return e.jsxs("div",{className:"gp","data-testid":"guide-poster",children:[e.jsxs("div",{className:"gp-head",children:[e.jsxs("div",{className:"gp-head-left",children:[e.jsx("span",{className:"guide-mark","aria-hidden":"true",dangerouslySetInnerHTML:{__html:_e}}),e.jsxs("div",{children:[e.jsx("h2",{className:"gp-title",children:"caddis at a glance"}),e.jsx("p",{className:"gp-counts",children:`${i.version} · ${i.counts.commands} commands · ${i.counts.agents} agents · ${i.counts.skills} skills · ${i.counts.hooks} hooks`})]})]}),e.jsxs("div",{className:"gp-switch",role:"group","aria-label":"Poster view",children:[e.jsx("button",{type:"button","aria-pressed":n==="workflow",onClick:()=>c("workflow"),children:"Workflow"}),e.jsx("button",{type:"button","aria-pressed":n==="mind",onClick:()=>c("mind"),children:"Mind map"})]}),e.jsx("button",{type:"button",className:"gp-print",onClick:()=>window.print(),children:"Print"})]}),e.jsxs("div",{className:n==="workflow"?"gp-workflow":"gp-workflow gp-hidden",children:[e.jsx("div",{className:"gp-flow",children:i.flow.map((a,l)=>e.jsxs("div",{className:"gp-stage",children:[e.jsxs("h3",{children:[e.jsx("span",{className:"gp-step",children:l+1}),e.jsx("span",{children:a.label})]}),e.jsx("div",{className:"gp-chips",children:a.commands.map(d=>e.jsxs("a",{className:d.daily?"gp-chip is-daily":"gp-chip",href:f("details",d.anchor),title:d.blurb,children:["/",d.name]},d.name))})]},a.id))}),e.jsx("div",{className:"gp-bands",children:i.bands.map(a=>e.jsxs("div",{className:"gp-band",children:[e.jsx("h3",{children:a.label}),e.jsx("div",{className:"gp-chips",children:a.commands.map(l=>e.jsxs("a",{className:l.daily?"gp-chip is-daily":"gp-chip",href:f("details",l.anchor),title:l.blurb,children:["/",l.name]},l.name))})]},a.id))}),e.jsxs("div",{className:"gp-foot",children:[e.jsxs("div",{className:"gp-card",children:[e.jsx("h3",{children:"Agents"}),e.jsx("h4",{className:"gp-sub",children:"Read only"}),e.jsx("div",{className:"gp-chips",children:i.agentsReadOnly.map(a=>e.jsx("a",{className:"gp-chip",href:f("details",a.anchor),title:a.blurb,children:a.name},a.name))}),e.jsx("h4",{className:"gp-sub",children:"Writes files"}),e.jsx("div",{className:"gp-chips",children:i.agentsWrite.map(a=>e.jsx("a",{className:"gp-chip",href:f("details",a.anchor),title:a.blurb,children:a.name},a.name))})]}),e.jsxs("div",{className:"gp-card",children:[e.jsx("h3",{children:"Skills"}),e.jsx("div",{className:"gp-chips",children:i.skillCategories.map(a=>e.jsxs("a",{className:"gp-chip",href:f("details",a.anchor),children:[a.name," · ",a.count]},a.name))})]}),e.jsxs("div",{className:"gp-card",children:[e.jsx("h3",{children:"Hooks"}),e.jsx("div",{className:"gp-hooks",children:i.hooks.map(a=>e.jsx("div",{className:"gp-hook-line",children:e.jsxs("a",{className:"gp-chip",href:f("details",j("hook",a.event)),children:[a.event," · ",a.count]})},a.event))})]})]})]}),e.jsx("div",{className:n==="mind"?"gp-map-wrap":"gp-map-wrap gp-hidden",children:e.jsx(Oe,{model:i})})]})}function He({row:s}){const n=s.kind==="command"?`/${s.name}`:s.name;return e.jsxs("div",{className:"gw-row",children:[e.jsx("a",{className:s.daily?"gw-name is-daily":"gw-name",href:f("details",s.anchor),children:n})," ",e.jsx("span",{className:"gw-blurb",children:s.blurb})]})}const Ge=.6,We=.04;function Ue(s){let n=1;for(s.style.setProperty("--gw-scale","1");s.scrollWidth>s.clientWidth+1&&n>Ge;)n=Math.round((n-We)*100)/100,s.style.setProperty("--gw-scale",String(n))}function Ze({guide:s}){const n=k.useMemo(()=>Te(s),[s]),t=k.useRef(null);k.useEffect(()=>{var l;const c=()=>{t.current&&Ue(t.current)};c();let a=!0;return(l=document.fonts)==null||l.ready.then(()=>{a&&c()}),()=>{a=!1}},[n]);const i=[[n.counts.commands,"commands"],[n.counts.agents,"agents"],[n.counts.skills,"skills"],[n.counts.hooks,"hooks"],[n.version,"version"]];return e.jsxs("div",{className:"gw","data-testid":"guide-wall",children:[e.jsxs("div",{className:"gw-bar",children:[e.jsx("p",{children:"One A4 landscape sheet, built from the installed guide data. It updates when caddis updates."}),e.jsx("button",{type:"button",className:"gw-print",onClick:()=>window.print(),children:"Print"})]}),e.jsxs("div",{className:"gw-sheet","data-testid":"guide-wall-sheet",children:[e.jsxs("header",{className:"gw-head",children:[e.jsxs("div",{children:[e.jsxs("span",{className:"gw-brand",children:["cad",e.jsx("span",{children:"dis"})]}),e.jsxs("span",{className:"gw-tag",children:["the dev harness — type ",e.jsx("b",{children:"/name"})," in a session · full name ",e.jsx("b",{children:"/caddis:name"})," · ★ = daily"]})]}),e.jsx("div",{className:"gw-stats",children:i.map(([c,a])=>e.jsxs("div",{children:[e.jsx("b",{children:c}),a]},a))})]}),e.jsx("div",{className:"gw-loop",children:n.loop.map(c=>e.jsxs("a",{className:"gw-step",href:f("details",c.anchor),children:[e.jsxs("b",{children:["/",c.name]}),e.jsx("span",{children:c.blurb})]},c.name))}),e.jsx("div",{className:"gw-cards",ref:t,children:n.cards.map(c=>e.jsxs("section",{className:`gw-card gw-${c.id}`,children:[e.jsxs("h2",{children:[c.label," ",e.jsx("small",{children:c.sub})]}),c.rows.map(a=>e.jsx(He,{row:a},`${a.kind}-${a.name}`))]},c.id))}),e.jsxs("footer",{className:"gw-foot",children:[e.jsxs("span",{children:["Built from caddis ",n.version," · generated ",n.generated,". Click any name for its details."]}),e.jsxs("span",{children:["Day: ",e.jsx("b",{children:"/catchup"})," → work → ",e.jsx("b",{children:"/handoff"})]})]})]})]})}const Ke="Guide data is not ready yet. The hub collects it in the first minute.",Ve="npm i -g @caddis/cli@latest",qe=ie.replace("<svg ",'<svg class="caddis-mark-build" ');function _({title:s,children:n}){return e.jsxs("div",{className:"notice","data-testid":"guide-state","aria-live":"polite",children:[e.jsx("h2",{className:"guide-state-title",children:s}),e.jsx("p",{children:n})]})}function Qe({guide:s,versions:n,tab:t="poster",item:i=null,initialFilter:c}){const a=fe(s);let l;a.kind==="missing"?l=e.jsx(_,{title:"Guide data missing",children:Ke}):a.kind==="error"?l=e.jsx(_,{title:"The guide could not be read",children:e.jsxs(e.Fragment,{children:[a.message," Run ",e.jsx("code",{className:"cmd",children:"caddis doctor"})," to check the install."]})}):a.kind==="newer"?l=e.jsx(_,{title:"The guide is newer than this hub",children:e.jsxs(e.Fragment,{children:["The data has schema ",a.schema,". Update the hub: ",e.jsx("code",{className:"cmd",children:Ve})]})}):t==="poster"?l=e.jsx(Fe,{guide:a.guide}):t==="wall"?l=e.jsx(Ze,{guide:a.guide}):t==="map"?l=e.jsx(Pe,{guide:a.guide}):l=e.jsx(Me,{guide:a.guide,item:i,initialFilter:c});const d=a.kind==="ok"?a.guide:null;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"guide-hero",children:[e.jsx("span",{className:"guide-mark","aria-hidden":"true",dangerouslySetInnerHTML:{__html:qe}}),e.jsxs("div",{children:[e.jsx("h1",{className:"page-title",children:"caddis guide"}),e.jsx("p",{className:"page-subtitle","data-testid":"guide-version",children:d?`caddis ${d.version} (installed pool) · generated ${d.generated} · hub ${n.hub}`:`hub ${n.hub}`})]})]}),e.jsxs("div",{className:"guide-tabs",role:"tablist",children:[e.jsx("a",{role:"tab",href:f("poster"),"aria-selected":t==="poster",children:"Poster"}),e.jsx("a",{role:"tab",href:f("details"),"aria-selected":t==="details",children:"Details"}),e.jsx("a",{role:"tab",href:f("wall"),"aria-selected":t==="wall",children:"Wall poster"}),e.jsx("a",{role:"tab",href:f("map"),"aria-selected":t==="map",children:"Map"})]}),l]})}export{Qe as Guide,Ke as MISSING_TEXT,Ve as UPDATE_HINT};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import{c as $,j as e,r as u,p as R,f as Z,h as ee,P as se,w as ae,i as I,T,k as P,O as ne,e as re,b as _,m as le,n as C,o as te,q as ie,s as ce,t as oe,u as de,v as he,d as me,l as E,x as pe,y as xe,z as ue,A as je,B as Ne,N as ge,C as ke}from"./index-BAdqZpU0.js";import{E as Ue}from"./index-BAdqZpU0.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 M={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"}]]};M.node;const fe=$(M);/**
|
|
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 A={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"]};A.node;const be=$(A);/**
|
|
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 F={name:"circle",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]};F.node;const we=$(F);/**
|
|
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 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=$(V);/**
|
|
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 z={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};z.node;const ve=$(z);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 $e({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 S(){try{return typeof window<"u"?window.localStorage:null}catch{return null}}function H(s){const[a,l]=u.useState(()=>s??Z(S()));return[a,n=>()=>{l(n),ae(S(),n)}]}function K({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 q({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?ee(s,a,n):null,k=u.useContext(se),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(Y=>Y+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($e,{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 Te={todo:we,"in-progress":ye,done:be,moved:fe,blocked:ne},U={size:14,"aria-hidden":!0};function D({tile:s}){const a=Te[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:[P[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 Re(s){return[`run by ${s.owner}`,s.target?`target ${s.target}`:"",s.depends.length?`after ${s.depends.join(", ")}`:""].filter(Boolean).join(" · ")}function W({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 Ce(s,a){const l=document.getElementById(`ms-${s}-${a}`);l instanceof HTMLDetailsElement&&(l.open=!0),l==null||l.scrollIntoView({block:"start"})}function G({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(T,{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:P[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(T,{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(T,{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:P[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 X({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:Re(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)}`:"#/":re(a,"roadmap",l);function Ee({repo:s,m:a,variant:l}){const t=_(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=le(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(W,{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 De({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(T,{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 Le={todo:"todo","in-progress":"prog",blocked:"block",done:"done",moved:"done"},O=s=>s.replace(/^☐\s*/u,"").trim();function Oe({plan:s}){if(s.rows.length===0)return null;const a=te(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 Ie({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=ie(s);return e.jsx("div",{className:"rm-cols rm-cols-4","data-testid":"rm-plan-board",children:ce.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-${Le[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 _e({m:s,plan:a,repo:l,variant:t,initialView:n}){const[r,i]=H(n),{open:o,panel:h}=q({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(K,{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(G,{m:s,match:null,onOpen:o}):e.jsx(Ie,{plan:a}),e.jsx(X,{m:s,match:null,onOpen:o}),h]})}function Me(s){const[a]=u.useState(()=>oe(s));return a}function Ae({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:de(s.overlay)}),e.jsx(Oe,{plan:s}),e.jsx("span",{className:"rm-plan-only",children:"plan only, no runner"})]}),r&&e.jsx(_e,{m:he(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(Ae,{plan:i,repo:a,variant:l,initialView:t,defaultOpen:n||i.path===r},i.path))})}function Fe({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 Ve({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 ze({m:s,repo:a,crumbHref:l,match:t,variant:n,initialView:r,plans:i}){const[o,h]=H(r),{open:x,panel:g}=q({m:s,pool:i??[],repo:a,variant:n}),d=s.kpis,k=c=>()=>Ce(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:me(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(K,{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(G,{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(W,{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(X,{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 ${E(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?`${E(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 He({repo:s,slug:a,stale:l=!1,lastOkAt:t=null,variant:n="hub",initialView:r,initialOpenAll:i=!1,nowMs:o}){const h=pe(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=_(s),c=l&&e.jsxs("p",{className:"lane-note","data-testid":"rm-stale",children:["Roadmap data is old. Last good read ",xe(t),". The numbers below are greyed."]}),m=n==="hub"?ue(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(Fe,{plans:h.plans,repo:s,variant:n,initialView:r,initialOpenAll:i});else{const b=a?h.roadmaps.find(N=>N.slug===a):n==="hub"&&je(h)?h.roadmaps[0]:void 0;if(b){const N=h.roadmaps.length+h.errors.length>1,f=Ne(b,x);p=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"rm-searchbar",children:[e.jsxs("label",{className:"rm-search",children:[e.jsx(ve,{...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(ze,{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(Ee,{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(Ve,{plans:h.otherPlans,repo:s,variant:n,initialView:r,initialOpenAll:i}):null,h.mode!=="error"?e.jsx(De,{plans:h.done}):null]})}export{Ue as collectorStale,He as default};
|