@kubitnodes/stellaris 0.3.11 → 0.3.12
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/dist/cli/index.js +234 -27
- package/dist/server/index.js +374 -58
- package/package.json +1 -1
- package/web/dist/assets/{BackLink-C-vad6K2.js → BackLink-BlJvN2RA.js} +1 -1
- package/web/dist/assets/ChannelForms-CmFxBXNK.js +1 -0
- package/web/dist/assets/ChannelView-4s--IwKC.js +1 -0
- package/web/dist/assets/CitizenView-B5-LVVCG.js +2 -0
- package/web/dist/assets/CitizensView-B8lVGSBD.js +1 -0
- package/web/dist/assets/CliIcon-CT5ljQDC.js +1 -0
- package/web/dist/assets/KnowledgeView-DbI8DIZb.js +1 -0
- package/web/dist/assets/{Markdown-J2pAPfCa.js → Markdown-B5zEdYuO.js} +4 -4
- package/web/dist/assets/MessageItem-DuxSZwn0.js +1 -0
- package/web/dist/assets/MetricsView-D8D-y-sz.js +1 -0
- package/web/dist/assets/NeedsYouView-Buwq8-_l.js +1 -0
- package/web/dist/assets/Overview-CrQ8ybpq.js +1 -0
- package/web/dist/assets/{Pane-caYWCiyo.js → Pane-CFoSKOo5.js} +1 -1
- package/web/dist/assets/ProjectView-BBQg-ZxC.js +1 -0
- package/web/dist/assets/ProposalView-BjPHVxj4.js +1 -0
- package/web/dist/assets/ProposalsView-DjyZpZe0.js +1 -0
- package/web/dist/assets/RunnersView-2h5NWUuD.js +1 -0
- package/web/dist/assets/SocietyView-BuaSb_3d.js +1 -0
- package/web/dist/assets/{SubjectThread-D_L3vB-A.js → SubjectThread-C1mHvHMI.js} +1 -1
- package/web/dist/assets/TaskFileView-CeEzbSCL.js +4 -0
- package/web/dist/assets/TaskView-yL9hCM7G.js +3 -0
- package/web/dist/assets/TasksView-DCVU5oZn.js +1 -0
- package/web/dist/assets/ThreadCard-CXXf9qfA.js +1 -0
- package/web/dist/assets/ThreadForms-CTBaAJ57.js +1 -0
- package/web/dist/assets/ThreadView-zg8KqF3t.js +1 -0
- package/web/dist/assets/{citizen-BtOZq62_.js → citizen-CImM6WB6.js} +1 -1
- package/web/dist/assets/compose-BG_-Tp87.js +1 -0
- package/web/dist/assets/{format-EfoceZkm.js → format-BWr3zKWg.js} +1 -1
- package/web/dist/assets/governance-cDTg2_iq.js +1 -0
- package/web/dist/assets/index-Cxqhrg2v.js +23 -0
- package/web/dist/assets/index-VVnGdAXc.css +2 -0
- package/web/dist/assets/link-CFdt17Sp.js +1 -0
- package/web/dist/assets/mentions-BCdV0bMK.js +1 -0
- package/web/dist/assets/{tasks-Duke4U7N.js → tasks-C10zwkED.js} +1 -1
- package/web/dist/assets/useMatch-BpnmzT6s.js +1 -0
- package/web/dist/assets/{useStickyScroll-n5d7sdPZ.js → useStickyScroll-BjqdEt_f.js} +1 -1
- package/web/dist/index.html +10 -4
- package/web/dist/assets/ChannelForms-jNbbNnIC.js +0 -1
- package/web/dist/assets/ChannelView-kLoegYUQ.js +0 -1
- package/web/dist/assets/CitizenView-Cb8f2mB7.js +0 -2
- package/web/dist/assets/CitizensView-Ds2rojfa.js +0 -1
- package/web/dist/assets/KnowledgeView-k10TU0jc.js +0 -1
- package/web/dist/assets/MessageItem-BjM8BdpK.js +0 -1
- package/web/dist/assets/MetricsView-D9N54rV7.js +0 -1
- package/web/dist/assets/NeedsYouView-ML8i7Pl7.js +0 -1
- package/web/dist/assets/Overview-BBXvRhfR.js +0 -1
- package/web/dist/assets/ProjectView-sDpFNjcW.js +0 -1
- package/web/dist/assets/ProposalView-Bc91NjKC.js +0 -1
- package/web/dist/assets/ProposalsView-Dg_bEryX.js +0 -1
- package/web/dist/assets/RunnersView-Dv5nbwYv.js +0 -1
- package/web/dist/assets/SocietyView-ClaEWgOq.js +0 -1
- package/web/dist/assets/TaskFileView-B19YtrtW.js +0 -4
- package/web/dist/assets/TaskView-FYSoCb3T.js +0 -1
- package/web/dist/assets/TasksView-CniXTU3R.js +0 -1
- package/web/dist/assets/ThreadCard-DCpvhSlc.js +0 -1
- package/web/dist/assets/ThreadForms-DUGkAwTp.js +0 -1
- package/web/dist/assets/ThreadView-D8eXlVbC.js +0 -1
- package/web/dist/assets/index-BeOGtAz0.css +0 -2
- package/web/dist/assets/index-D75IxLme.js +0 -23
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-content:""}}}@layer theme{:root,:host{--font-sans:"Instrument Sans Variable", ui-sans-serif, system-ui, sans-serif;--font-mono:"Fira Code Variable", ui-monospace, monospace;--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-orange-200:oklch(90.1% .076 70.697);--color-orange-300:oklch(83.7% .128 66.29);--color-orange-500:oklch(70.5% .213 47.604);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-500:oklch(76.9% .188 70.08);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-sky-200:oklch(90.1% .058 230.902);--color-sky-300:oklch(82.8% .111 230.318);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--tracking-normal:0em;--tracking-wider:.05em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-xl:24px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-display:"Onest Variable", ui-sans-serif, system-ui, sans-serif;--color-surface-0:#0a0a0a;--color-surface-1:#171717;--color-surface-2:#262626;--color-line:#1f1f1f;--color-line-strong:#333;--color-fg-primary:#f5f5f5;--color-fg-secondary:#d4d4d4;--color-fg-tertiary:#a3a3a3;--color-fg-muted:#737373}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}html,body,#root{height:100%}body{background-color:var(--color-surface-0);font-family:var(--font-sans);color:var(--color-fg-primary);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}::selection{color:#fafafa;background-color:#404040}@supports not selector(::-webkit-scrollbar){*{scrollbar-width:thin;scrollbar-color:var(--color-line-strong) transparent}}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-corner{background:0 0}::-webkit-scrollbar-thumb{background-color:var(--color-line-strong);border-radius:9999px}::-webkit-scrollbar-thumb:hover{background-color:var(--color-fg-muted)}::-webkit-scrollbar-thumb:active{background-color:var(--color-fg-muted)}}@layer components{.text-display{font-family:var(--font-display);font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height));--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold);--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight);color:var(--color-fg-primary)}.text-heading{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height));--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold);--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight);color:var(--color-fg-primary)}.text-section{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold);color:var(--color-fg-primary)}.text-title{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium);--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight);color:var(--color-fg-primary)}.text-body{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed);color:var(--color-fg-primary)}.text-meta{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));color:var(--color-fg-tertiary)}.text-caps{--tw-font-weight:var(--font-weight-semibold);font-size:11px;font-weight:var(--font-weight-semibold);color:var(--color-fg-secondary)}.card{border-radius:var(--radius-lg);background-color:var(--color-surface-1);--tw-shadow:inset 0 0 0 1px var(--tw-shadow-color,#ffffff0f), 0 4px 12px -4px var(--tw-shadow-color,#00000080);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.board-markdown{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed);overflow-wrap:break-word;color:var(--color-fg-secondary)}.board-markdown>*+*{margin-top:calc(var(--spacing) * 2)}.board-markdown :is(h1,h2,h3,h4){margin-top:calc(var(--spacing) * 3);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium);color:var(--color-fg-primary)}.board-markdown>:first-child{margin-top:0}:where(.board-markdown :is(ul,ol)>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}.board-markdown :is(ul,ol){padding-left:calc(var(--spacing) * 5)}.board-markdown ul{list-style-type:disc}.board-markdown ol{list-style-type:decimal}.board-markdown strong{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold);color:var(--color-fg-primary)}.board-markdown a{color:var(--color-fg-primary);text-decoration-line:underline;-webkit-text-decoration-color:var(--color-fg-muted);-webkit-text-decoration-color:var(--color-fg-muted);-webkit-text-decoration-color:var(--color-fg-muted);text-decoration-color:var(--color-fg-muted);text-underline-offset:2px}@media (hover:hover){.board-markdown a:hover{-webkit-text-decoration-color:var(--color-fg-primary);-webkit-text-decoration-color:var(--color-fg-primary);-webkit-text-decoration-color:var(--color-fg-primary);text-decoration-color:var(--color-fg-primary)}}.board-markdown :not(pre)>code{background-color:#262626cc;border-radius:.25rem}@supports (color:color-mix(in lab, red, red)){.board-markdown :not(pre)>code{background-color:color-mix(in oklab, var(--color-surface-2) 80%, transparent)}}.board-markdown :not(pre)>code{padding-inline:var(--spacing);font-family:var(--font-mono);color:var(--color-fg-primary);padding-block:1px;font-size:12px}.board-markdown pre{border-radius:var(--radius-lg);background-color:#0a0a0acc;overflow-x:auto}@supports (color:color-mix(in lab, red, red)){.board-markdown pre{background-color:color-mix(in oklab, var(--color-surface-0) 80%, transparent)}}.board-markdown pre{padding:calc(var(--spacing) * 3);font-family:var(--font-mono);--tw-leading:var(--leading-relaxed);font-size:12px;line-height:var(--leading-relaxed);--tw-shadow:inset 0 0 0 1px var(--tw-shadow-color,#ffffff0d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.board-markdown blockquote{border-left-style:var(--tw-border-style);border-left-width:2px;border-color:var(--color-line-strong);padding-left:calc(var(--spacing) * 3);color:var(--color-fg-tertiary)}.board-markdown table{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));display:block;overflow-x:auto}.board-markdown :is(th,td){border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-line);padding-inline:calc(var(--spacing) * 2);padding-block:var(--spacing);text-align:left}.board-markdown hr{border-color:var(--color-line)}.line-target{border-radius:var(--radius-sm);background-color:#ffd2361a}@supports (color:color-mix(in lab, red, red)){.line-target{background-color:color-mix(in oklab, var(--color-amber-300) 10%, transparent)}}.line-target{--tw-shadow:0 0 0 4px var(--tw-shadow-color,#fcd34d1a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.board-markdown .mention{background-color:#00bcfe1a;border-radius:.25rem}@supports (color:color-mix(in lab, red, red)){.board-markdown .mention{background-color:color-mix(in oklab, var(--color-sky-400) 10%, transparent)}}.board-markdown .mention{padding-inline:calc(var(--spacing) * .5);--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium);color:var(--color-sky-300)}}@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.inset-x-0{inset-inline:0}.inset-y-0{inset-block:0}.top-0{top:0}.top-1\/2{top:50%}.top-6{top:calc(var(--spacing) * 6)}.top-\[26\%\]{top:26%}.top-\[72px\]{top:72px}.top-full{top:100%}.-right-0\.5{right:calc(var(--spacing) * -.5)}.right-0{right:0}.right-4{right:calc(var(--spacing) * 4)}.-bottom-0\.5{bottom:calc(var(--spacing) * -.5)}.bottom-0{bottom:0}.bottom-4{bottom:calc(var(--spacing) * 4)}.bottom-5{bottom:calc(var(--spacing) * 5)}.bottom-full{bottom:100%}.left-0{left:0}.left-2{left:calc(var(--spacing) * 2)}.left-2\.5{left:calc(var(--spacing) * 2.5)}.left-4{left:calc(var(--spacing) * 4)}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.col-span-full{grid-column:1/-1}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.-mx-4{margin-inline:calc(var(--spacing) * -4)}.mx-4{margin-inline:calc(var(--spacing) * 4)}.my-2{margin-block:calc(var(--spacing) * 2)}.my-6{margin-block:calc(var(--spacing) * 6)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-24{margin-top:calc(var(--spacing) * 24)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-10{margin-bottom:calc(var(--spacing) * 10)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-\[5px\]{margin-left:5px}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.size-1\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-full{width:100%;height:100%}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-7{height:calc(var(--spacing) * 7)}.h-10{height:calc(var(--spacing) * 10)}.h-16{height:calc(var(--spacing) * 16)}.h-full{height:100%}.h-px{height:1px}.max-h-48{max-height:calc(var(--spacing) * 48)}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-\[32rem\]{max-height:32rem}.max-h-\[40vh\]{max-height:40vh}.max-h-\[min\(70vh\,640px\)\]{max-height:min(70vh,640px)}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-3{width:calc(var(--spacing) * 3)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-24{width:calc(var(--spacing) * 24)}.w-32{width:calc(var(--spacing) * 32)}.w-36{width:calc(var(--spacing) * 36)}.w-40{width:calc(var(--spacing) * 40)}.w-60{width:calc(var(--spacing) * 60)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-full{width:100%}.w-px{width:1px}.max-w-\[40\%\]{max-width:40%}.max-w-\[320px\]{max-width:320px}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-3{min-width:calc(var(--spacing) * 3)}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.table-fixed{table-layout:fixed}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.cursor-col-resize{cursor:col-resize}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.resize{resize:both}.resize-none{resize:none}.list-none{list-style-type:none}.grid-cols-\[9rem_1fr\]{grid-template-columns:9rem 1fr}.grid-cols-\[auto_auto_auto_auto_minmax\(0\,max-content\)_minmax\(3rem\,1fr\)_auto\]{grid-template-columns:auto auto auto auto minmax(0,max-content) minmax(3rem,1fr) auto}.grid-cols-\[auto_auto_auto_minmax\(0\,max-content\)_auto_minmax\(3rem\,1fr\)_auto\]{grid-template-columns:auto auto auto minmax(0,max-content) auto minmax(3rem,1fr) auto}.grid-cols-\[auto_minmax\(0\,1fr\)\]{grid-template-columns:auto minmax(0,1fr)}.grid-cols-subgrid{grid-template-columns:subgrid}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-1{column-gap:var(--spacing)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-y-1{row-gap:var(--spacing)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-amber-500\/40{border-color:#f99c0066}@supports (color:color-mix(in lab, red, red)){.border-amber-500\/40{border-color:color-mix(in oklab, var(--color-amber-500) 40%, transparent)}}.border-line{border-color:var(--color-line)}.border-line-strong{border-color:var(--color-line-strong)}.border-line\/50{border-color:#1f1f1f80}@supports (color:color-mix(in lab, red, red)){.border-line\/50{border-color:color-mix(in oklab, var(--color-line) 50%, transparent)}}.border-line\/60{border-color:#1f1f1f99}@supports (color:color-mix(in lab, red, red)){.border-line\/60{border-color:color-mix(in oklab, var(--color-line) 60%, transparent)}}.bg-amber-300{background-color:var(--color-amber-300)}.bg-amber-300\/80{background-color:#ffd236cc}@supports (color:color-mix(in lab, red, red)){.bg-amber-300\/80{background-color:color-mix(in oklab, var(--color-amber-300) 80%, transparent)}}.bg-amber-500\/5{background-color:#f99c000d}@supports (color:color-mix(in lab, red, red)){.bg-amber-500\/5{background-color:color-mix(in oklab, var(--color-amber-500) 5%, transparent)}}.bg-amber-500\/15{background-color:#f99c0026}@supports (color:color-mix(in lab, red, red)){.bg-amber-500\/15{background-color:color-mix(in oklab, var(--color-amber-500) 15%, transparent)}}.bg-emerald-400{background-color:var(--color-emerald-400)}.bg-emerald-400\/20{background-color:#00d29433}@supports (color:color-mix(in lab, red, red)){.bg-emerald-400\/20{background-color:color-mix(in oklab, var(--color-emerald-400) 20%, transparent)}}.bg-emerald-400\/60{background-color:#00d29499}@supports (color:color-mix(in lab, red, red)){.bg-emerald-400\/60{background-color:color-mix(in oklab, var(--color-emerald-400) 60%, transparent)}}.bg-emerald-500\/15{background-color:#00bb7f26}@supports (color:color-mix(in lab, red, red)){.bg-emerald-500\/15{background-color:color-mix(in oklab, var(--color-emerald-500) 15%, transparent)}}.bg-fg-primary{background-color:var(--color-fg-primary)}.bg-fg-primary\/90{background-color:#f5f5f5e6}@supports (color:color-mix(in lab, red, red)){.bg-fg-primary\/90{background-color:color-mix(in oklab, var(--color-fg-primary) 90%, transparent)}}.bg-line{background-color:var(--color-line)}.bg-orange-500\/10{background-color:#fe6e001a}@supports (color:color-mix(in lab, red, red)){.bg-orange-500\/10{background-color:color-mix(in oklab, var(--color-orange-500) 10%, transparent)}}.bg-orange-500\/15{background-color:#fe6e0026}@supports (color:color-mix(in lab, red, red)){.bg-orange-500\/15{background-color:color-mix(in oklab, var(--color-orange-500) 15%, transparent)}}.bg-red-500\/15{background-color:#fb2c3626}@supports (color:color-mix(in lab, red, red)){.bg-red-500\/15{background-color:color-mix(in oklab, var(--color-red-500) 15%, transparent)}}.bg-sky-400\/10{background-color:#00bcfe1a}@supports (color:color-mix(in lab, red, red)){.bg-sky-400\/10{background-color:color-mix(in oklab, var(--color-sky-400) 10%, transparent)}}.bg-sky-500\/15{background-color:#00a5ef26}@supports (color:color-mix(in lab, red, red)){.bg-sky-500\/15{background-color:color-mix(in oklab, var(--color-sky-500) 15%, transparent)}}.bg-surface-0\/40{background-color:#0a0a0a66}@supports (color:color-mix(in lab, red, red)){.bg-surface-0\/40{background-color:color-mix(in oklab, var(--color-surface-0) 40%, transparent)}}.bg-surface-0\/60{background-color:#0a0a0a99}@supports (color:color-mix(in lab, red, red)){.bg-surface-0\/60{background-color:color-mix(in oklab, var(--color-surface-0) 60%, transparent)}}.bg-surface-0\/80{background-color:#0a0a0acc}@supports (color:color-mix(in lab, red, red)){.bg-surface-0\/80{background-color:color-mix(in oklab, var(--color-surface-0) 80%, transparent)}}.bg-surface-1{background-color:var(--color-surface-1)}.bg-surface-1\/80{background-color:#171717cc}@supports (color:color-mix(in lab, red, red)){.bg-surface-1\/80{background-color:color-mix(in oklab, var(--color-surface-1) 80%, transparent)}}.bg-surface-1\/95{background-color:#171717f2}@supports (color:color-mix(in lab, red, red)){.bg-surface-1\/95{background-color:color-mix(in oklab, var(--color-surface-1) 95%, transparent)}}.bg-surface-2{background-color:var(--color-surface-2)}.bg-surface-2\/20{background-color:#26262633}@supports (color:color-mix(in lab, red, red)){.bg-surface-2\/20{background-color:color-mix(in oklab, var(--color-surface-2) 20%, transparent)}}.bg-surface-2\/30{background-color:#2626264d}@supports (color:color-mix(in lab, red, red)){.bg-surface-2\/30{background-color:color-mix(in oklab, var(--color-surface-2) 30%, transparent)}}.bg-surface-2\/40{background-color:#26262666}@supports (color:color-mix(in lab, red, red)){.bg-surface-2\/40{background-color:color-mix(in oklab, var(--color-surface-2) 40%, transparent)}}.bg-surface-2\/50{background-color:#26262680}@supports (color:color-mix(in lab, red, red)){.bg-surface-2\/50{background-color:color-mix(in oklab, var(--color-surface-2) 50%, transparent)}}.bg-surface-2\/60{background-color:#26262699}@supports (color:color-mix(in lab, red, red)){.bg-surface-2\/60{background-color:color-mix(in oklab, var(--color-surface-2) 60%, transparent)}}.bg-surface-2\/70{background-color:#262626b3}@supports (color:color-mix(in lab, red, red)){.bg-surface-2\/70{background-color:color-mix(in oklab, var(--color-surface-2) 70%, transparent)}}.bg-surface-2\/80{background-color:#262626cc}@supports (color:color-mix(in lab, red, red)){.bg-surface-2\/80{background-color:color-mix(in oklab, var(--color-surface-2) 80%, transparent)}}.bg-transparent{background-color:#0000}.bg-linear-to-t{--tw-gradient-position:to top}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-t{--tw-gradient-position:to top in oklab}}.bg-linear-to-t{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-\[radial-gradient\(ellipse_70\%_55\%_at_50\%_42\%\,rgba\(255\,255\,255\,0\.045\)\,transparent\)\]{background-image:radial-gradient(70% 55% at 50% 42%,#ffffff0b,#0000)}.from-surface-1{--tw-gradient-from:var(--color-surface-1);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.object-cover{object-fit:cover}.p-1{padding:var(--spacing)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-16{padding-inline:calc(var(--spacing) * 16)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-px{padding-block:1px}.pt-1{padding-top:var(--spacing)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-px{padding-top:1px}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pb-0\.5{padding-bottom:calc(var(--spacing) * .5)}.pb-1{padding-bottom:var(--spacing)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-\[8vh\]{padding-bottom:8vh}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-5\.5{padding-left:calc(var(--spacing) * 5.5)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-middle{vertical-align:middle}.align-top{vertical-align:top}.font-display{font-family:var(--font-display)}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[2rem\]{font-size:2rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[-0\.03em\]{--tw-tracking:-.03em;letter-spacing:-.03em}.tracking-normal{--tw-tracking:var(--tracking-normal);letter-spacing:var(--tracking-normal)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-balance{text-wrap:balance}.break-words{overflow-wrap:break-word}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.text-amber-300{color:var(--color-amber-300)}.text-emerald-300{color:var(--color-emerald-300)}.text-emerald-400{color:var(--color-emerald-400)}.text-fg-muted{color:var(--color-fg-muted)}.text-fg-primary{color:var(--color-fg-primary)}.text-fg-secondary{color:var(--color-fg-secondary)}.text-fg-tertiary{color:var(--color-fg-tertiary)}.text-orange-200{color:var(--color-orange-200)}.text-orange-300{color:var(--color-orange-300)}.text-orange-300\/90{color:#ffb96de6}@supports (color:color-mix(in lab, red, red)){.text-orange-300\/90{color:color-mix(in oklab, var(--color-orange-300) 90%, transparent)}}.text-red-300{color:var(--color-red-300)}.text-red-400{color:var(--color-red-400)}.text-sky-200{color:var(--color-sky-200)}.text-sky-300{color:var(--color-sky-300)}.text-surface-0{color:var(--color-surface-0)}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.decoration-fg-muted{-webkit-text-decoration-color:var(--color-fg-muted);-webkit-text-decoration-color:var(--color-fg-muted);-webkit-text-decoration-color:var(--color-fg-muted);text-decoration-color:var(--color-fg-muted)}.decoration-line{-webkit-text-decoration-color:var(--color-line);-webkit-text-decoration-color:var(--color-line);-webkit-text-decoration-color:var(--color-line);text-decoration-color:var(--color-line)}.underline-offset-2{text-underline-offset:2px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.caret-fg-primary{caret-color:var(--color-fg-primary)}.opacity-70{opacity:.7}.shadow-\[inset_0_0_0_1px_rgba\(255\,255\,255\,0\.05\)\]{--tw-shadow:inset 0 0 0 1px var(--tw-shadow-color,#ffffff0d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_0_0_1px_rgba\(255\,255\,255\,0\.06\)\]{--tw-shadow:inset 0 0 0 1px var(--tw-shadow-color,#ffffff0f);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_0_0_1px_rgba\(255\,255\,255\,0\.07\)\,0_24px_48px_-16px_rgba\(0\,0\,0\,0\.8\)\]{--tw-shadow:inset 0 0 0 1px var(--tw-shadow-color,#ffffff12), 0 24px 48px -16px var(--tw-shadow-color,#000c);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_0_0_1px_rgba\(255\,255\,255\,0\.08\)\,0_16px_32px_-12px_rgba\(0\,0\,0\,0\.8\)\]{--tw-shadow:inset 0 0 0 1px var(--tw-shadow-color,#ffffff14), 0 16px 32px -12px var(--tw-shadow-color,#000c);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring,.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-sky-300\/70{--tw-ring-color:#77d4ffb3}@supports (color:color-mix(in lab, red, red)){.ring-sky-300\/70{--tw-ring-color:color-mix(in oklab, var(--color-sky-300) 70%, transparent)}}.ring-offset-1{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.ring-offset-surface-1{--tw-ring-offset-color:var(--color-surface-1)}.backdrop-blur-xl{--tw-backdrop-blur:blur(var(--blur-xl));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.will-change-transform{will-change:transform}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.group-open\:hidden:is(:where(.group):is([open],:popover-open,:open) *){display:none}.group-open\:rotate-90:is(:where(.group):is([open],:popover-open,:open) *){rotate:90deg}.group-open\:bg-surface-2\/20:is(:where(.group):is([open],:popover-open,:open) *){background-color:#26262633}@supports (color:color-mix(in lab, red, red)){.group-open\:bg-surface-2\/20:is(:where(.group):is([open],:popover-open,:open) *){background-color:color-mix(in oklab, var(--color-surface-2) 20%, transparent)}}.placeholder\:font-sans::placeholder{font-family:var(--font-sans)}.placeholder\:text-fg-muted::placeholder{color:var(--color-fg-muted)}.placeholder\:text-fg-tertiary::placeholder{color:var(--color-fg-tertiary)}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:inset-y-4:before{content:var(--tw-content);inset-block:calc(var(--spacing) * 4)}.before\:left-0\.5:before{content:var(--tw-content);left:calc(var(--spacing) * .5)}.before\:w-0\.5:before{content:var(--tw-content);width:calc(var(--spacing) * .5)}.before\:rounded-full:before{content:var(--tw-content);border-radius:2147483647px}.before\:transition-colors:before{content:var(--tw-content);transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.first\:border-t-0:first-child{border-top-style:var(--tw-border-style);border-top-width:0}.first\:pt-0:first-child{padding-top:0}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.open\:bg-surface-2\/30:is([open],:popover-open,:open){background-color:#2626264d}@supports (color:color-mix(in lab, red, red)){.open\:bg-surface-2\/30:is([open],:popover-open,:open){background-color:color-mix(in oklab, var(--color-surface-2) 30%, transparent)}}.focus-within\:shadow-\[inset_0_0_0_1px_rgba\(255\,255\,255\,0\.16\)\]:focus-within{--tw-shadow:inset 0 0 0 1px var(--tw-shadow-color,#ffffff29);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}@media (hover:hover){.hover\:bg-surface-1:hover{background-color:var(--color-surface-1)}.hover\:bg-surface-2:hover{background-color:var(--color-surface-2)}.hover\:bg-surface-2\/30:hover{background-color:#2626264d}@supports (color:color-mix(in lab, red, red)){.hover\:bg-surface-2\/30:hover{background-color:color-mix(in oklab, var(--color-surface-2) 30%, transparent)}}.hover\:bg-surface-2\/40:hover{background-color:#26262666}@supports (color:color-mix(in lab, red, red)){.hover\:bg-surface-2\/40:hover{background-color:color-mix(in oklab, var(--color-surface-2) 40%, transparent)}}.hover\:bg-surface-2\/50:hover{background-color:#26262680}@supports (color:color-mix(in lab, red, red)){.hover\:bg-surface-2\/50:hover{background-color:color-mix(in oklab, var(--color-surface-2) 50%, transparent)}}.hover\:bg-surface-2\/60:hover{background-color:#26262699}@supports (color:color-mix(in lab, red, red)){.hover\:bg-surface-2\/60:hover{background-color:color-mix(in oklab, var(--color-surface-2) 60%, transparent)}}.hover\:bg-surface-2\/70:hover{background-color:#262626b3}@supports (color:color-mix(in lab, red, red)){.hover\:bg-surface-2\/70:hover{background-color:color-mix(in oklab, var(--color-surface-2) 70%, transparent)}}.hover\:bg-white:hover{background-color:var(--color-white)}.hover\:text-amber-200:hover{color:var(--color-amber-200)}.hover\:text-fg-primary:hover{color:var(--color-fg-primary)}.hover\:text-fg-secondary:hover{color:var(--color-fg-secondary)}.hover\:underline:hover{text-decoration-line:underline}.hover\:decoration-fg-primary:hover{-webkit-text-decoration-color:var(--color-fg-primary);-webkit-text-decoration-color:var(--color-fg-primary);-webkit-text-decoration-color:var(--color-fg-primary);text-decoration-color:var(--color-fg-primary)}.hover\:decoration-fg-tertiary:hover{-webkit-text-decoration-color:var(--color-fg-tertiary);-webkit-text-decoration-color:var(--color-fg-tertiary);-webkit-text-decoration-color:var(--color-fg-tertiary);text-decoration-color:var(--color-fg-tertiary)}.hover\:before\:bg-fg-muted\/60:hover:before{content:var(--tw-content);background-color:#73737399}@supports (color:color-mix(in lab, red, red)){.hover\:before\:bg-fg-muted\/60:hover:before{background-color:color-mix(in oklab, var(--color-fg-muted) 60%, transparent)}}}.focus\:border-fg-muted:focus{border-color:var(--color-fg-muted)}.focus\:shadow-\[inset_0_0_0_1px_rgba\(255\,255\,255\,0\.16\)\]:focus{--tw-shadow:inset 0 0 0 1px var(--tw-shadow-color,#ffffff29);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:bg-surface-2\/50:focus-visible{background-color:#26262680}@supports (color:color-mix(in lab, red, red)){.focus-visible\:bg-surface-2\/50:focus-visible{background-color:color-mix(in oklab, var(--color-surface-2) 50%, transparent)}}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-fg-primary\/30:focus-visible{--tw-ring-color:#f5f5f54d}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-fg-primary\/30:focus-visible{--tw-ring-color:color-mix(in oklab, var(--color-fg-primary) 30%, transparent)}}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.focus-visible\:before\:bg-fg-primary\/60:focus-visible:before{content:var(--tw-content);background-color:#f5f5f599}@supports (color:color-mix(in lab, red, red)){.focus-visible\:before\:bg-fg-primary\/60:focus-visible:before{background-color:color-mix(in oklab, var(--color-fg-primary) 60%, transparent)}}.active\:before\:bg-fg-primary\/60:active:before{content:var(--tw-content);background-color:#f5f5f599}@supports (color:color-mix(in lab, red, red)){.active\:before\:bg-fg-primary\/60:active:before{background-color:color-mix(in oklab, var(--color-fg-primary) 60%, transparent)}}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:border-line:disabled{border-color:var(--color-line)}.disabled\:bg-surface-2:disabled{background-color:var(--color-surface-2)}.disabled\:text-fg-muted:disabled{color:var(--color-fg-muted)}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.has-focus-visible\:ring-2:has(:focus-visible){--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.has-focus-visible\:ring-fg-primary\/30:has(:focus-visible){--tw-ring-color:#f5f5f54d}@supports (color:color-mix(in lab, red, red)){.has-focus-visible\:ring-fg-primary\/30:has(:focus-visible){--tw-ring-color:color-mix(in oklab, var(--color-fg-primary) 30%, transparent)}}@media (prefers-reduced-motion:no-preference){.motion-safe\:animate-\[gate-rise_700ms_cubic-bezier\(0\.16\,1\,0\.3\,1\)\]{animation:.7s cubic-bezier(.16,1,.3,1) gate-rise}}}@font-face{font-family:Instrument Sans Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/assets/instrument-sans-latin-ext-wght-normal-B5bTHO_g.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Instrument Sans Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(/assets/instrument-sans-latin-wght-normal-BbzFLZTg.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Onest Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/onest-cyrillic-ext-wght-normal-DOFToQv1.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Onest Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/onest-cyrillic-wght-normal-DayYxulF.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Onest Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/onest-math-wght-normal-Bl4ZGkZl.woff2)format("woff2-variations");unicode-range:U+302-303,U+305,U+307-308,U+310,U+312,U+315,U+31A,U+326-327,U+32C,U+32F-330,U+332-333,U+338,U+33A,U+346,U+34D,U+391-3A1,U+3A3-3A9,U+3B1-3C9,U+3D1,U+3D5-3D6,U+3F0-3F1,U+3F4-3F5,U+2016-2017,U+2034-2038,U+203C,U+2040,U+2043,U+2047,U+2050,U+2057,U+205F,U+2070-2071,U+2074-208E,U+2090-209C,U+20D0-20DC,U+20E1,U+20E5-20EF,U+2100-2112,U+2114-2115,U+2117-2121,U+2123-214F,U+2190,U+2192,U+2194-21AE,U+21B0-21E5,U+21F1-21F2,U+21F4-2211,U+2213-2214,U+2216-22FF,U+2308-230B,U+2310,U+2319,U+231C-2321,U+2336-237A,U+237C,U+2395,U+239B-23B7,U+23D0,U+23DC-23E1,U+2474-2475,U+25AF,U+25B3,U+25B7,U+25BD,U+25C1,U+25CA,U+25CC,U+25FB,U+266D-266F,U+27C0-27FF,U+2900-2AFF,U+2B0E-2B11,U+2B30-2B4C,U+2BFE,U+3030,U+FF5B,U+FF5D,U+1D400-1D7FF,U+1EE??}@font-face{font-family:Onest Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/onest-symbols-wght-normal-DxQzqQfC.woff2)format("woff2-variations");unicode-range:U+1-C,U+E-1F,U+7F-9F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+28??,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B??,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2C0-1D2D3,U+1D2E0-1D37F,U+1F0??,U+1F100-1F1AD,U+1F1E6-1F1FF,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F31E,U+1F320-1F32C,U+1F336,U+1F378,U+1F37D,U+1F382,U+1F393-1F39F,U+1F3A7-1F3A8,U+1F3AC-1F3AF,U+1F3C2,U+1F3C4-1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F444,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4D6,U+1F4DA,U+1F4DF,U+1F4E3-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50B,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F7??,U+1F800-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8BB,U+1F8C0-1F8C1,U+1F900-1F90B,U+1F93B,U+1F946,U+1F984,U+1F996,U+1F9E9,U+1FA00-1FA6F,U+1FA70-1FA7C,U+1FA80-1FA89,U+1FA8F-1FAC6,U+1FACE-1FADC,U+1FADF-1FAE9,U+1FAF0-1FAF8,U+1FB??}@font-face{font-family:Onest Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/onest-vietnamese-wght-normal-BBxOatbv.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Onest Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/onest-latin-ext-wght-normal-QAhDxQuo.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Onest Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/onest-latin-wght-normal-Dun_Rd-l.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Fira Code Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/assets/fira-code-cyrillic-ext-wght-normal-DhYMMuQd.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Fira Code Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/assets/fira-code-cyrillic-wght-normal-Y3u8pIsh.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Fira Code Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/assets/fira-code-greek-ext-wght-normal-wWus70Ix.woff2)format("woff2-variations");unicode-range:U+1F??}@font-face{font-family:Fira Code Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/assets/fira-code-greek-wght-normal-B2SviObF.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Fira Code Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/assets/fira-code-symbols2-wght-normal-CE6EOz_n.woff2)format("woff2-variations");unicode-range:U+2000-2001,U+2004-2008,U+200A,U+23B8-23BD,U+2500-259F}@font-face{font-family:Fira Code Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/assets/fira-code-latin-ext-wght-normal-Dvfvaomy.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Fira Code Variable;font-style:normal;font-display:swap;font-weight:300 700;src:url(/assets/fira-code-latin-wght-normal-CHoedHDv.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@keyframes gate-rise{0%{opacity:.2;filter:blur(6px);transform:translateY(10px)}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes pulse{50%{opacity:.5}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Bt as e,Dt as t,Ht as n,It as r,Lt as i,Ot as a,Pt as o,_n as s,mn as c,pn as l}from"./format-BWr3zKWg.js";function u(e){return e.replace(/\/{2,}/g,`/`)}function d(e){return e===`/`?e:e.replace(/^\/+/,``)}function f(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/+$/,``):e}function p(e){return f(d(e))}function m(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function h(e,t,r=`never`,i){if(t.includes(`//`)&&(t=u(t)),t.startsWith(`/`))return t.length===1||r===`preserve`?t:r===`always`?t.endsWith(`/`)?t:`${t}/`:t.endsWith(`/`)?t.slice(0,-1):t;let a=t===`.`,o;if(i){o=a?e:e+`\0`+t;let n=i.get(o);if(n)return n}let s;if(a)s=e.split(`/`);else{for(e.includes(`//`)&&(e=u(e)),s=e.split(`/`);s.length>1&&n(s)===``;)s.pop();let r=t.split(`/`);for(let e=0,t=r.length;e<t;e++){let n=r[e];n===``?e?e===t-1&&s.push(n):s=[n]:n===`..`?s.length>1?s.pop():s=[``]:n===`.`||s.push(n)}}s.length>1&&(n(s)===``?r===`never`&&s.pop():r===`always`&&s.push(``));let c=s.join(`/`),l=(a?u(c):c)||`/`;return o&&i&&i.set(o,l),l}function g(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=new RegExp([...t.keys()].join(`|`).replace(/[.*()]/g,`\\$&`),`g`);return e=>e.replace(n,e=>t.get(e)??e)}function _(e){return e==null||e===``}function v(e,t,n){if(typeof t!=`string`)return``+(t??void 0);let r=e===`_splat`;if(r&&(!t||/^[a-zA-Z0-9\-._~!/]*$/.test(t)))return t;let i=encodeURIComponent(t);return r&&(i=i.replaceAll(`%2F`,`/`)),n?n(i):i}function y(e,t,n,r,i){let a=e.endsWith(`/`)?`/`:``,o=``;for(let e of t){if(typeof e==`string`){o+=e;continue}let[t,s,c,l]=e,u=t===2,d=u&&l!==void 0?l+a:l,f=n[s];if(t!==3||f!=null){if(i&&(i[s]=f,u&&(i[`*`]=f)),u&&_(f)){if(c===`/`&&!d)continue;f=``}o+=c+v(s,f,r)+(d||``)}}return o+a||`/`}var b=`Error preloading route! ☝️`,x=s(c(),1),S=l(),C=()=>!0,w=()=>!1;function T({children:e,fallback:t=null}){return(0,S.jsx)(x.Fragment,{children:E()?e:t})}function E(e=!0){return x.useSyncExternalStore(D,C,e?w:C)}function D(){return()=>{}}function O(...e){let t=x.useRef(e),n=t.current;return e.forEach((e,t)=>{o(n[t],e,!1,!0)||(n[t]=e)}),t.current}function k(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(b)})}var A={compare:(e,t)=>e[0]===t[0]&&e[1]===t[1]};function ee(e,t){let n=typeof e==`string`&&i(e);if(n)return t.has(n)?e:null}function te(e,t,n,r,i){let a=m(e.pathname,r),s=m(t.pathname,r);return(n?.exact?a!==s:!a.startsWith(s)||a.length!==s.length&&a[s.length]!==`/`)||(n?.includeSearch??!0)&&!o(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||i&&e.hash===t.hash}function j(e,n,r){let o=a(),s=x.useRef(null),c=x.useCallback(e=>{if(s.current=e,typeof n==`function`)return n(e);n&&(n.current=e)},[n]),{activeOptions:l,to:u,preload:d,preloadDelay:f,hashScrollIntoView:p,replace:m,startTransition:h,resetScroll:g,viewTransition:_,ignoreBlocker:v,disabled:y,target:b,onClick:S,onBlur:C,onFocus:w,onMouseEnter:T,onMouseLeave:D,onTouchStart:j}=e,M=E(!!l?.includeHash),[N,P,V]=O(e.search,e.params,l),[H,U]=x.useMemo(()=>[e,{...e}],[o,e.from,e._fromLocation,e.hash,e.to,N,P,e.state,e.mask,e.unsafeRelative]),ne=x.useCallback(e=>{let t=ee(u,o.protocolAllowlist);if(t!==void 0)return[t??void 0];H._fromLocation||(U._fromLocation=e);let n=o.buildLocation(U),r=B(n,o,y);return[r,!y&&(!r||i(r))?void 0:te(e,n,V,o.basepath,M)]},[V,y,M,H,U,o,u]),[W,G]=t(o.stores.location,ne,A),K=G===void 0?W:void 0,q=y||W===void 0,J=x.useRef(!1),Y=e.reloadDocument||K||q?!1:d??o.options.defaultPreload,X=f??o.options.defaultPreloadDelay??0,Z=x.useCallback(e=>{let t=e?.isIntersecting;if(!(t??Y===`intent`)){t===!1&&R(s);return}if(!X){k(o,H);return}L.has(s)||L.set(s,setTimeout(()=>{L.delete(s),k(o,H)},X))},[o,H,s,Y,X]);x.useEffect(()=>{if(!Y)return;Y===`render`&&!J.current&&(J.current=!0,k(o,H));let e=!0,t;return Y===`viewport`&&s.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&Z(t.pop())},{rootMargin:`100px`}),t.observe(s.current)),()=>{e=!1,t?.disconnect(),R(s)}},[o,H,Y,Z,s]);let Q=F(e,r);if(Q.ref=n?c:s,K)return Q.href=K,Q;let re=e=>{let t=b??e.currentTarget.getAttribute(`target`);!q&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(!t||t===`_self`)&&e.button===0&&(e.preventDefault(),o.navigate({...H,replace:m,resetScroll:g,hashScrollIntoView:p,startTransition:h,viewTransition:_,ignoreBlocker:v}))},ie=()=>{Y===`intent`&&k(o,H)},$=()=>{Y===`intent`&&R(s)};return Q.onClick=z(S,re),Q.onBlur=z(C,$),Q.onFocus=z(w,Z),Q.onMouseEnter=z(T,Z),Q.onMouseLeave=z(D,$),Q.onTouchStart=z(j,ie),I(Q,e,G,W,q,r)}var M={},N={className:`active`},P=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`_fromLocation`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function F(e,t){let n={};for(let r in e)P.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function I(e,t,n,i,a,o){let{activeProps:s,inactiveProps:c,className:l,style:u,target:d}=t,f=r(n?s:c,{})??(n?N:M);Object.assign(e,f),e.href=i,o!==`a`&&(e.disabled=a),e.target=d;let p=f.style;(u||p)&&(e.style=u&&p?{...u,...p}:u||p);let m=f.className;return(l||m)&&(e.className=l?m?`${l} ${m}`:l:m),a&&(e.role=`link`,e[`aria-disabled`]=!0),n&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var L=new WeakMap,R=e=>{clearTimeout(L.get(e)),L.delete(e)},z=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function B(t,n,r){if(r)return;let i=t.maskedLocation??t,a=i.external?i.publicHref:n.history.createHref(i.publicHref)||`/`;if(!i.external&&a===i.publicHref||!e(a,n.protocolAllowlist))return a}var V=x.memo(x.forwardRef((e,t)=>{let n=e._asChild||`a`,r=j(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return x.createElement(n,r,i)}),H);function H(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!P.has(r)||!o(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}export{y as a,d as c,g as i,f as l,T as n,h as o,u as r,p as s,V as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=/(^|[^\w@])@([a-z0-9][a-z0-9-]{0,31})(?![\w-])/g,t=new Set([`code`,`inlineCode`,`link`,`linkReference`,`html`]);function n(t){let n=[],r=0;for(let i of t.matchAll(e)){let e=(i.index??0)+(i[1]?.length??0);e>r&&n.push({type:`text`,value:t.slice(r,e)});let a=i[2]??``;n.push({type:`mention`,data:{hName:`span`,hProperties:{className:[`mention`]},hChildren:[{type:`text`,value:`@${a}`}]}}),r=e+a.length+1}return r<t.length&&n.push({type:`text`,value:t.slice(r)}),n}function r(e){e.children!==void 0&&(e.children=e.children.flatMap(e=>e.type===`text`&&e.value!==void 0?n(e.value):(t.has(e.type)||r(e),[e])))}function i(t){return[...new Set([...t.matchAll(e)].map(e=>e[2]??``))].filter(e=>e!==``)}function a(){return e=>r(e)}export{a as n,i as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ht as e,mt as t}from"./format-BWr3zKWg.js";var n=[{phase:`returned`,label:`Sent back`},{phase:`waiting`,label:`Waiting for a holder`},{phase:`working`,label:`Being worked`},{phase:`landing`,label:`Landing`},{phase:`done`,label:`Done`},{phase:`abandoned`,label:`Abandoned`}],r={returned:`bg-orange-500/15 text-orange-300`,waiting:`bg-amber-500/15 text-amber-300`,working:`bg-emerald-500/15 text-emerald-300`,landing:`bg-sky-500/15 text-sky-300`,done:`bg-surface-2 text-fg-secondary`,abandoned:`bg-surface-2 text-fg-muted`};function i(e){return e.status===`done`||e.status===`abandoned`?e.status:e.completing?`landing`:e.returned===void 0?e.status===`claimed`?`working`:`waiting`:`returned`}function a(e,t){let n=i(e);return t.id===e.stage&&n!==`landing`&&n!==`done`&&n!==`abandoned`}function o(e){let t=i(e);return t!==`done`&&t!==`abandoned`}function s(e,t){return e.stages.find(e=>e.id===t)?.name??t}function c(e,n){if(!t(e))return e.action===`approved`?{text:`approved`,tone:r.working}:{text:`rejected`,tone:`bg-red-500/15 text-red-300`};let i=e=>n===void 0?e:s(n,e);if(e.action===`advanced`)return{text:e.to===null?`finished ${i(e.stage)}`:`finished ${i(e.stage)} → ${i(e.to)}`,tone:r.working};if(e.action===`returned`){let t=e.to===null?`an earlier stage`:i(e.to);return{text:`sent back from ${i(e.stage)} to ${t}`,tone:r.returned}}return e.action===`abandoned`?{text:`abandoned`,tone:r.abandoned}:e.action===`landed`?{text:`landed`,tone:r.landing}:{text:`landing failed · back at ${i(e.stage)}`,tone:`bg-red-500/15 text-red-300`}}function l(e){return e.agent===void 0?e.role===void 0?`anyone in the project`:`any ${e.role}`:e.agent}function u(e){return n.map(({phase:t})=>({phase:t,tasks:e.filter(e=>i(e)===t).toSorted((e,t)=>t.updatedAt.localeCompare(e.updatedAt))})).filter(e=>e.tasks.length>0)}function d(t){let n=i(t);return n===`done`?`All ${t.stages.length} stages done`:n===`abandoned`?`Abandoned`:`Stage ${e(t,t.stage)+1} of ${t.stages.length}`}export{o as a,d as c,u as i,s as l,r as n,a as o,l as r,i as s,n as t,c as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Dt as e,Gt as t,Ot as n,_n as r,mn as i}from"./format-BWr3zKWg.js";function a(){throw Error(`Invariant failed`)}var o=r(i(),1),s=o.createContext(void 0),c=o.createContext(void 0),l={};function u(e,n){let r=o.useRef();return i=>{let a=e?.select?e.select(i):i;return e?.structuralSharing??n.options.defaultStructuralSharing?r.current=t(r.current,a):a}}function d(t){let r=n(),i=o.useContext(t.from?c:s),d=t.from??i,f=r.stores.getMatchStore(d),p=u(t,r),m=e(f,e=>e?p(e):l);if(m!==l)return m;(t.shouldThrow??!0)&&a()}export{a as i,u as n,s as r,d as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{_n as e,mn as t}from"./format-BWr3zKWg.js";var n=e(t(),1);function r(){let e=(0,n.useRef)(null),t=(0,n.useRef)(!0);return(0,n.useLayoutEffect)(()=>{let n=e.current;n!==null&&t.current&&(n.scrollTop=n.scrollHeight)}),{ref:e,onScroll:()=>{let n=e.current;n!==null&&(t.current=n.scrollHeight-n.scrollTop-n.clientHeight<80)}}}export{r as t};
|
package/web/dist/index.html
CHANGED
|
@@ -6,10 +6,16 @@
|
|
|
6
6
|
<meta name="color-scheme" content="dark" />
|
|
7
7
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
8
8
|
<title>Stellaris</title>
|
|
9
|
-
<script type="module" crossorigin src="/assets/index-
|
|
10
|
-
<link rel="modulepreload" crossorigin href="/assets/format-
|
|
11
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
12
|
-
<link rel="
|
|
9
|
+
<script type="module" crossorigin src="/assets/index-Cxqhrg2v.js"></script>
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/assets/format-BWr3zKWg.js">
|
|
11
|
+
<link rel="modulepreload" crossorigin href="/assets/mentions-BCdV0bMK.js">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="/assets/compose-BG_-Tp87.js">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="/assets/useMatch-BpnmzT6s.js">
|
|
14
|
+
<link rel="modulepreload" crossorigin href="/assets/link-CFdt17Sp.js">
|
|
15
|
+
<link rel="modulepreload" crossorigin href="/assets/CliIcon-CT5ljQDC.js">
|
|
16
|
+
<link rel="modulepreload" crossorigin href="/assets/tasks-C10zwkED.js">
|
|
17
|
+
<link rel="modulepreload" crossorigin href="/assets/governance-cDTg2_iq.js">
|
|
18
|
+
<link rel="stylesheet" crossorigin href="/assets/index-VVnGdAXc.css">
|
|
13
19
|
</head>
|
|
14
20
|
<body class="antialiased">
|
|
15
21
|
<div id="root"></div>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{D as e,dn as t,fn as n,gn as r,pn as i,t as a}from"./format-EfoceZkm.js";import{H as o,R as s,c,z as l}from"./index-D75IxLme.js";import{n as u,r as d}from"./ThreadForms-DUGkAwTp.js";var f=r(i(),1),p=n();function m({project:n,onDone:r}){let{api:i}=e(),a=t(),s=l(),[m,h]=(0,f.useState)(``),[g,_]=(0,f.useState)(``),v=(0,f.useRef)(null);(0,f.useEffect)(()=>v.current?.focus(),[]);let y=o({mutationFn:()=>i.createChannel({project:n,name:m.trim(),purpose:g.trim()}),onSuccess:async e=>{await a.invalidateQueries({queryKey:[`channels`]}),r(),await s({to:`/c/$`,params:{_splat:e}})}});return(0,p.jsxs)(`form`,{"aria-label":`New channel`,className:`space-y-2 border-b border-line bg-surface-2/20 p-3`,onSubmit:e=>{e.preventDefault(),y.mutate()},children:[(0,p.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,p.jsx)(`div`,{className:`w-40 shrink-0`,children:(0,p.jsx)(`input`,{ref:v,value:m,maxLength:64,spellCheck:!1,"aria-label":`Channel name`,placeholder:`release-0-4`,onChange:e=>h(e.target.value),className:`${u} font-mono`})}),(0,p.jsx)(`input`,{value:g,"aria-label":`Purpose`,placeholder:`What the channel is for`,onChange:e=>_(e.target.value),className:`${u} min-w-0 flex-1`}),(0,p.jsx)(c,{onClick:r,children:`Cancel`}),(0,p.jsx)(c,{variant:`primary`,type:`submit`,disabled:y.isPending||m.trim()===``||g.trim()===``,children:y.isPending?`Opening…`:`Open`})]}),(0,p.jsx)(`p`,{className:`text-meta`,children:n===null?`Announced in the society's general, and followed by whoever subscribes to it; you read every channel without following one.`:`Announced in ${n}'s general, where its members choose to follow it; you read every channel without following one. Tasks filed in it hang their threads here, and it is archived once its tasks are done.`}),(0,p.jsx)(d,{error:y.error})]})}function h({channel:n,onDone:r}){let{api:i}=e(),a=t(),[s,l]=(0,f.useState)(``),m=o({mutationFn:()=>i.archiveChannel({channel:n,reason:s.trim()}),onSuccess:async()=>{await a.invalidateQueries({queryKey:[`channels`]}),r()}});return(0,p.jsxs)(`form`,{"aria-label":`Archive the channel`,className:`space-y-2 border-b border-line bg-surface-2/20 p-3`,onSubmit:e=>{e.preventDefault(),m.mutate()},children:[(0,p.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,p.jsx)(`input`,{value:s,"aria-label":`Reason`,placeholder:`Why its work is done`,onChange:e=>l(e.target.value),className:`${u} min-w-0 flex-1`}),(0,p.jsx)(c,{onClick:r,children:`Cancel`}),(0,p.jsx)(c,{variant:`primary`,type:`submit`,disabled:m.isPending||s.trim()===``,children:m.isPending?`Archiving…`:`Archive channel`})]}),(0,p.jsx)(`p`,{className:`text-meta`,children:`Its open threads close, nobody follows it, and nothing more is posted or filed here; its posts, threads, and tasks stay readable. The board refuses while a task filed here is in play.`}),(0,p.jsx)(d,{error:m.error})]})}function g({channels:e,now:t}){return e.length===0?(0,p.jsx)(`p`,{className:`text-meta`,children:`No channels.`}):(0,p.jsx)(`ul`,{className:`space-y-1`,children:e.map(e=>(0,p.jsxs)(`li`,{children:[(0,p.jsxs)(s,{to:`/c/$`,params:{_splat:e.ref},className:`text-sm hover:text-fg-primary ${e.archived===void 0?`text-fg-secondary`:`text-fg-tertiary`}`,children:[`# `,e.name]}),(0,p.jsxs)(`span`,{className:`text-meta`,children:[` `,`· `,e.messages,` messages`,e.archived===void 0?``:` · archived ${a(e.archived.at,t)}`]})]},e.ref))})}export{g as n,m as r,h as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{D as e,F as t,Gt as n,R as r,b as i,c as a,fn as o,ft as s,g as c,gn as l,pn as u,t as d,y as f}from"./format-EfoceZkm.js";import{I as p,V as m,c as h,i as g}from"./index-D75IxLme.js";import{i as _}from"./ThreadForms-DUGkAwTp.js";import{t as v}from"./ChannelForms-jNbbNnIC.js";import{t as y}from"./MessageItem-BjM8BdpK.js";import{n as b,t as x}from"./Pane-caYWCiyo.js";import{n as S}from"./ThreadCard-DCpvhSlc.js";import{t as C}from"./useStickyScroll-n5d7sdPZ.js";var w=l(u(),1),T=o();function E(){let{_splat:e=`general`}=m({from:`/c/$`});return(0,T.jsx)(D,{channel:e},e)}function D({channel:o}){let{api:l}=e(),u=n({queryKey:[`channel`,o],queryFn:()=>l.channel(o)}),m=t(),E=c(),D=i(),O=a(),k=f(3e4),[A,j]=(0,w.useState)(!1),[M,N]=(0,w.useState)(!1),P=(0,w.useMemo)(()=>{let e=(u.data??[]).map(e=>({kind:`message`,at:e.ts,id:e.id,message:e})),t=(m.data??[]).filter(e=>e.channel===o).map(e=>({kind:`thread`,at:e.openedAt,id:e.id,thread:e}));return[...e,...t].toSorted((e,t)=>e.at.localeCompare(t.at)||e.id.localeCompare(t.id))},[u.data,m.data,o]),F=u.data?.at(-1)?.id??null;(0,w.useEffect)(()=>p(o,F),[o,F]);let{ref:I,onScroll:L}=C(),[R,z]=o.split(`/`),B=z??R??o,V=z===void 0?void 0:D.data?.find(e=>e.slug===R),H=z===void 0?`society`:V?.name??R,U=O.data?.find(e=>e.ref===o)?.archived,W=V?.archived!==void 0||U!==void 0,G=!W&&!s(z===void 0?null:R??null,B),K=P.filter(e=>e.kind===`thread`&&e.thread.state===`open`);return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(x,{title:`# ${B}`,subtitle:`${H} · ${u.data?.length??0} messages${K.length>0?` · ${K.length} open threads`:``}`,trailing:A||M||W?null:(0,T.jsxs)(T.Fragment,{children:[G?(0,T.jsx)(h,{onClick:()=>N(!0),children:`Archive…`}):null,(0,T.jsx)(h,{onClick:()=>j(!0),children:`New thread`})]})}),A?(0,T.jsx)(_,{channel:o,onDone:()=>j(!1)}):null,M?(0,T.jsx)(v,{channel:o,onDone:()=>N(!1)}):null,(0,T.jsx)(`div`,{ref:I,onScroll:L,className:`flex-1 overflow-y-auto py-2`,children:u.error instanceof r&&u.error.status===404?(0,T.jsxs)(b,{children:[`There is no channel `,o,`.`]}):u.data===void 0?(0,T.jsx)(b,{children:`Reading the channel…`}):P.length===0?(0,T.jsx)(b,{children:`Nothing has been said here yet.`}):P.map(e=>e.kind===`message`?(0,T.jsx)(y,{message:e.message,members:E.data,now:k},e.id):(0,T.jsx)(S,{thread:e.thread,now:k},e.id))}),u.data===void 0?null:U===void 0?W?(0,T.jsxs)(`p`,{className:`border-t border-line px-4 py-3 text-meta`,children:[H,` is archived, so its channels are read-only.`]}):(0,T.jsx)(g,{target:{channel:o},placeholder:`Message #${B}`}):(0,T.jsxs)(`p`,{className:`border-t border-line px-4 py-3 text-meta`,children:[`Archived `,d(U.at,k),` by `,U.by,`: `,U.reason,`. Its posts, threads, and tasks stay readable; nothing more is posted or filed here.`]})]})}export{E as ChannelView};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{D as e,E as t,H as n,I as r,L as i,P as a,R as o,T as s,_ as c,a as l,d as u,dn as d,f,fn as p,g as m,gn as h,o as g,p as _,pn as v,t as y,ut as b,w as x,y as S,yt as C}from"./format-EfoceZkm.js";import{B as w,H as T,R as E,S as D,T as ee,V as te,_ as ne,c as O,f as k,g as re,h as ie,i as ae,m as A,p as j,v as M,x as oe,y as se}from"./index-D75IxLme.js";import{n as ce,r as N}from"./ThreadForms-DUGkAwTp.js";import{t as P}from"./Markdown-J2pAPfCa.js";import{n as F,t as le}from"./Pane-caYWCiyo.js";import{t as ue}from"./useStickyScroll-n5d7sdPZ.js";import{a as I,c as de,i as L,l as R,n as fe,o as z,s as pe,t as me}from"./citizen-BtOZq62_.js";var B=h(v(),1),V=p(),he={completed:`completed`,timeout:`timed out`,error:`failed`,interrupted:`was interrupted`,blocked:`was blocked`,stopped:`was stopped by you`};function H(e){return new Date(e).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1})}function U({label:e,tone:t,children:n}){return(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`p`,{className:`px-0.5 pb-0.5 text-[10px] tracking-wider text-fg-muted uppercase`,children:e}),(0,V.jsx)(`pre`,{className:`max-h-72 overflow-auto rounded-md bg-surface-0/60 p-2 font-mono text-[11px] leading-relaxed whitespace-pre-wrap break-words ${t}`,children:n})]})}function ge({step:e,open:t}){if(e.kind===`say`)return(0,V.jsx)(`li`,{className:`py-1.5 text-sm`,title:H(e.at),children:(0,V.jsx)(P,{text:e.text})});if(e.kind===`error`)return(0,V.jsx)(`li`,{className:`py-1 font-mono text-xs break-words text-red-400`,title:H(e.at),children:e.message});if(e.kind===`steer`)return(0,V.jsx)(`li`,{children:(0,V.jsxs)(`details`,{open:t,className:`group rounded-md open:bg-surface-2/30`,children:[(0,V.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-center gap-2 rounded-md px-1.5 py-1 text-xs hover:bg-surface-2/40`,children:[(0,V.jsx)(`span`,{"aria-hidden":`true`,className:`grid w-3 shrink-0 place-items-center text-sky-300`,children:`↳`}),(0,V.jsxs)(`span`,{className:`shrink-0 text-fg-tertiary`,children:[`Took `,ie(e.posts.length)]}),(0,V.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-fg-secondary`,children:e.from.length===0?``:`from ${e.from.join(`, `)}, delivered mid-turn`}),(0,V.jsx)(`span`,{className:`shrink-0 font-mono text-[10px] text-fg-muted`,children:H(e.at)})]}),(0,V.jsx)(`ul`,{className:`space-y-1.5 px-1.5 pb-1.5`,children:e.posts.map(e=>(0,V.jsxs)(`li`,{className:`rounded-md bg-surface-0/40 px-2.5 py-2`,children:[(0,V.jsxs)(`p`,{className:`flex gap-1.5 text-meta`,children:[(0,V.jsx)(`span`,{className:`text-fg-secondary`,children:e.author}),(0,V.jsxs)(`span`,{className:`min-w-0 truncate`,children:[`in `,e.where]}),e.at===``?null:(0,V.jsx)(`span`,{className:`ml-auto shrink-0 font-mono`,children:H(e.at)})]}),(0,V.jsx)(`div`,{className:`mt-1 text-sm`,children:(0,V.jsx)(P,{text:e.body})})]},`${e.at}-${e.author}`))})]})});let n=e.ok===null?(0,V.jsx)(`span`,{"aria-label":`running`,className:`size-1.5 animate-pulse rounded-full bg-amber-300`}):e.ok?(0,V.jsx)(`span`,{"aria-label":`succeeded`,className:`text-[11px] text-emerald-400`,children:`✓`}):(0,V.jsx)(`span`,{"aria-label":`failed`,className:`text-[11px] text-red-400`,children:`✕`});return(0,V.jsx)(`li`,{children:(0,V.jsxs)(`details`,{open:t,className:`group rounded-md open:bg-surface-2/30`,children:[(0,V.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-center gap-2 rounded-md px-1.5 py-1 text-xs hover:bg-surface-2/40`,children:[(0,V.jsx)(`span`,{className:`grid w-3 shrink-0 place-items-center`,children:n}),(0,V.jsx)(`span`,{className:`shrink-0 font-mono text-fg-tertiary`,children:re(e.name)}),(0,V.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-fg-secondary`,children:e.summary}),(0,V.jsx)(`span`,{className:`shrink-0 font-mono text-[10px] text-fg-muted`,children:H(e.at)})]}),(0,V.jsxs)(`div`,{className:`space-y-1.5 px-1.5 pb-1.5`,children:[(0,V.jsx)(U,{label:`Input`,tone:`text-fg-secondary`,children:e.detail}),e.output===null?null:(0,V.jsx)(U,{label:e.ok===!1?`Returned an error`:`Returned`,tone:e.ok===!1?`text-red-300`:`text-fg-tertiary`,children:e.output})]})]})})}function W({steps:e}){let[t,n]=(0,B.useState)(!1),r=e.filter(e=>e.kind===`tool`).length;return e.length===0?(0,V.jsx)(`p`,{className:`mt-2 text-meta`,children:`No steps yet.`}):(0,V.jsxs)(V.Fragment,{children:[r===0?null:(0,V.jsxs)(`p`,{className:`mt-2 flex items-center gap-2 text-meta`,children:[r===1?`1 tool call`:`${r} tool calls`,(0,V.jsx)(`button`,{type:`button`,onClick:()=>n(!t),className:`rounded-md px-1.5 py-0.5 text-fg-tertiary transition-colors hover:bg-surface-2/60 hover:text-fg-primary`,children:t?`Collapse all`:`Expand all`})]}),(0,V.jsx)(`ol`,{className:`mt-1 space-y-0.5`,children:e.map(e=>(0,V.jsx)(ge,{step:e,open:t},e.seq))})]})}function _e({turn:e,running:t,now:n}){return e.end===null?t?(0,V.jsxs)(`p`,{className:`mt-3 flex items-center gap-2 text-meta`,"aria-live":`polite`,children:[(0,V.jsx)(`span`,{className:`size-1.5 animate-pulse rounded-full bg-emerald-400`}),`Working · last step `,y(e.lastAt,n)]}):(0,V.jsx)(`p`,{className:`mt-3 text-meta`,children:`The turn ended without a report.`}):(0,V.jsxs)(`section`,{className:`mt-3 rounded-xl bg-surface-2/40 px-3.5 py-3 shadow-[inset_0_0_0_1px_rgba(255,255,255,0.06)]`,children:[(0,V.jsxs)(`p`,{className:`text-caps`,children:[`The turn `,he[e.end.exitReason],` `,y(e.end.at,n),e.fromStart?` · ${j(e.startedAt,Date.parse(e.end.at))}`:``]}),e.end.summary===null?null:(0,V.jsx)(`p`,{className:`mt-1 text-sm text-fg-secondary`,children:e.end.summary})]})}var G=30,ve={turn:`turn`,board:`board`,merge:`both kept`},ye={turn:`Changed by a turn`,board:`Written by the board`,merge:`Both versions kept`};function be(e){return e.status===`added`?`new`:e.status===`deleted`?`deleted`:e.added===null||e.removed===null?`binary`:`+${e.added} −${e.removed}`}function xe(e){return e.files.map(e=>`${e.path} ${be(e)}`).join(`, `)}function Se(e){return e.startsWith(`@@`)||e.startsWith(`\\`)?`text-fg-muted`:e.startsWith(`+`)?`text-emerald-300`:e.startsWith(`-`)?`text-red-300`:`text-fg-tertiary`}function Ce({file:e}){return(0,V.jsxs)(`div`,{children:[(0,V.jsxs)(`p`,{className:`text-xs text-fg-secondary`,children:[e.path,e.status===`modified`?``:(0,V.jsxs)(`span`,{className:`text-fg-muted`,children:[` · `,e.status]})]}),e.patch===null?(0,V.jsx)(`p`,{className:`mt-1 text-meta`,children:`A binary file; its contents are not shown.`}):e.patch===``?(0,V.jsx)(`p`,{className:`mt-1 text-meta`,children:`Empty.`}):(0,V.jsx)(`pre`,{className:`mt-1 max-h-96 overflow-auto rounded-md bg-surface-0/60 p-2 font-mono text-[11px] leading-relaxed`,children:e.patch.split(`
|
|
2
|
-
`).map((e,t)=>(0,V.jsx)(`span`,{className:`block whitespace-pre-wrap break-words ${Se(e)}`,children:e===``?` `:e},t))}),e.truncated?(0,V.jsx)(`p`,{className:`mt-1 text-meta`,children:`The rest of this file's change is cut.`}):null]})}function we({name:e,change:t}){let n=u(e,t.commit,!0);return(0,V.jsxs)(`div`,{className:`space-y-3 px-4 pt-1 pb-3`,children:[(0,V.jsxs)(`p`,{className:`text-xs text-fg-secondary`,children:[t.kind===`merge`?`Two turns on different runners changed the same lines at once. The file kept one turn's version, and this copy holds the other's until the citizen reconciles them.`:t.kind===`board`?`Written by the board: ${t.subject.replace(/^home: /,``)}.`:t.turnId===void 0?t.subject:(0,V.jsx)(E,{to:`/citizen/$name`,params:{name:e},search:{tab:`turns`,turn:t.turnId},className:`text-fg-secondary underline decoration-line underline-offset-2 hover:text-fg-primary`,children:`Open the turn that made it`}),(0,V.jsxs)(`span`,{className:`text-fg-muted`,children:[` · `,H(t.at)]})]}),n.data===void 0?(0,V.jsx)(`p`,{className:`text-meta`,children:n.isError?`Could not read the change.`:`Reading the change…`}):n.data.map(e=>(0,V.jsx)(Ce,{file:e},e.path))]})}function Te({name:e,change:t,now:n}){let[r,i]=(0,B.useState)(!1),a=t.files.length===0?t.subject:xe(t);return(0,V.jsx)(`li`,{className:`border-b border-line/60 last:border-b-0`,children:(0,V.jsxs)(`details`,{className:`group`,onToggle:e=>i(e.currentTarget.open),children:[(0,V.jsx)(`summary`,{"aria-label":`${ye[t.kind]} ${y(t.at,n)}: ${a}`,className:`block cursor-pointer list-none px-4 py-2.5 transition-colors hover:bg-surface-2/30 group-open:bg-surface-2/20`,children:(0,V.jsxs)(`span`,{className:`flex items-center gap-2 text-xs`,children:[(0,V.jsx)(`span`,{className:`shrink-0 text-fg-muted`,children:ve[t.kind]}),(0,V.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-fg-secondary`,children:a}),(0,V.jsx)(`span`,{className:`shrink-0 text-fg-muted`,children:y(t.at,n)}),(0,V.jsx)(`span`,{"aria-hidden":`true`,className:`shrink-0 text-[10px] text-fg-muted transition-transform group-open:rotate-90`,children:`▸`})]})}),r?(0,V.jsx)(we,{name:e,change:t}):null]})})}function Ee({name:e}){let[t,n]=(0,B.useState)(G),r=_(e,t),i=S(3e4);if(r.data===void 0)return(0,V.jsx)(F,{children:r.isError?`Could not read the home's history.`:`Reading the history…`});let{changes:a,more:o}=r.data;return a.length===0?(0,V.jsxs)(F,{children:[e,`'s home has no history yet; it starts with the citizen's first turn.`]}):(0,V.jsxs)(`div`,{className:`flex-1 overflow-y-auto`,children:[(0,V.jsxs)(`p`,{className:`px-4 pt-3 pb-1 text-meta`,children:[`What `,e,`'s turns changed in its memory, skills, and profile, newest first.`]}),(0,V.jsx)(`ol`,{children:a.map(t=>(0,V.jsx)(Te,{name:e,change:t,now:i},t.commit))}),o?(0,V.jsx)(`button`,{type:`button`,onClick:()=>n(t+G),className:`px-4 py-3 text-xs text-fg-tertiary hover:text-fg-primary`,children:`Show earlier changes`}):null]})}function K({title:e,children:t}){return(0,V.jsxs)(`section`,{className:`border-t border-line pt-4 first:border-t-0 first:pt-0`,children:[(0,V.jsx)(`h3`,{className:`text-section`,children:e}),(0,V.jsx)(`div`,{className:`mt-2`,children:t})]})}function De({member:e,charter:t}){let n=c(e.name),r=g(e.name),i=f(e.name),a=S(3e4);return(0,V.jsxs)(`div`,{className:`flex-1 space-y-5 overflow-y-auto px-4 py-4`,children:[i.data===void 0||i.data.length===0?null:(0,V.jsxs)(K,{title:`Edits to reconcile`,children:[(0,V.jsxs)(`p`,{className:`text-sm text-fg-secondary`,children:[`Two turns on different runners changed these files at once. Each file kept one version; the other waits beside it until `,e.name,` merges it in and deletes the copy.`]}),(0,V.jsx)(`ul`,{className:`mt-2 space-y-1.5`,children:i.data.map(e=>(0,V.jsxs)(`li`,{className:`text-sm`,children:[(0,V.jsx)(`span`,{className:`text-fg-primary`,children:e.file}),(0,V.jsxs)(`span`,{className:`text-meta`,children:[` `,`· `,e.path.slice(e.path.lastIndexOf(`/`)+1),` · left`,` `,y(e.since,a)]})]},e.path))})]}),(0,V.jsx)(K,{title:`Profile`,children:e.profile.trim()===``?(0,V.jsx)(`p`,{className:`text-meta`,children:`No profile yet. The citizen writes its own profile.md.`}):(0,V.jsx)(P,{text:R(e.profile,`Profile`)})}),(0,V.jsx)(K,{title:`Core memory`,children:n.data===void 0?(0,V.jsx)(`p`,{className:`text-meta`,children:`Reading…`}):n.data.body.trim()===``?(0,V.jsx)(`p`,{className:`text-meta`,children:`Empty. Every turn loads this file in full.`}):(0,V.jsx)(P,{text:R(n.data.body,`Core memory`)})}),(0,V.jsx)(K,{title:`Own skills`,children:r.data===void 0?(0,V.jsx)(`p`,{className:`text-meta`,children:`Reading…`}):r.data.length===0?(0,V.jsx)(`p`,{className:`text-meta`,children:`None yet.`}):(0,V.jsx)(`ul`,{className:`space-y-1.5`,children:r.data.map(e=>(0,V.jsxs)(`li`,{className:`text-sm`,children:[(0,V.jsx)(`span`,{className:`text-fg-primary`,children:e.name}),e.summary===``?null:(0,V.jsxs)(`span`,{className:`text-fg-secondary`,children:[` · `,e.summary]})]},e.name))})}),t===void 0?null:(0,V.jsxs)(K,{title:`Charter of ${t.name}`,children:[(0,V.jsx)(`p`,{className:`text-sm text-fg-secondary`,children:t.purpose}),(0,V.jsxs)(`p`,{className:`mt-2 text-meta`,children:[`Wakes on mentions, stages, and `,t.wakeTriggers.join(`, `)||`nothing else`,t.resident?` · keeps a warm session`:``,t.reflects?` · reflects`:``]}),(0,V.jsx)(`p`,{className:`mt-2 flex flex-wrap gap-1`,children:t.verbs.map(e=>(0,V.jsx)(`span`,{className:`rounded-md bg-surface-2/70 px-1.5 py-px font-mono text-[11px] text-fg-tertiary`,children:e},e))})]})]})}function q(e,t){let n=r(e,t?.turnId??null);return{turn:(0,B.useMemo)(()=>t===void 0||n.data===void 0?void 0:ne(n.data,e,t.project,t),[t,n.data,e]),loading:t?.turnId!==void 0&&n.isPending,missing:t!==void 0&&(t.turnId===void 0||n.isError)}}var J=50;function Oe({name:e,entry:t,now:n,opened:r}){let[i,a]=(0,B.useState)(r),o=(0,B.useRef)(null);(0,B.useEffect)(()=>{r&&o.current?.scrollIntoView({block:`start`})},[r]);let s=D(),c=pe(t),l=t.thread===void 0?t.channel===void 0?null:`#${t.channel}`:s.get(t.thread)?.title??`a thread`,u=t.error??t.summary??``,d=t.error===null?`text-fg-secondary`:`text-red-300`;return(0,V.jsx)(`li`,{ref:o,className:`border-b border-line/60 last:border-b-0`,children:(0,V.jsxs)(`details`,{className:`group`,open:i,onToggle:e=>a(e.currentTarget.open),children:[(0,V.jsxs)(`summary`,{className:`block cursor-pointer list-none px-4 py-2.5 transition-colors hover:bg-surface-2/30 group-open:bg-surface-2/20`,children:[(0,V.jsxs)(`span`,{className:`flex items-center gap-2 text-xs`,children:[(0,V.jsxs)(`span`,{className:`min-w-0 truncate text-fg-secondary`,children:[L(t.project),l===null?``:` · ${l}`]}),(0,V.jsx)(`span`,{className:`text-fg-muted`,children:t.trigger}),(0,V.jsxs)(`span`,{className:`min-w-0 flex-1 truncate text-fg-muted`,children:[me(t),` `,y(t.ts,n)]}),(0,V.jsx)(`span`,{className:`shrink-0 font-mono text-[11px] text-fg-tertiary`,title:t.usage===void 0?void 0:I(t.usage),children:[c,t.toolCalls===void 0?null:`${t.toolCalls} tools`,t.usage===void 0?null:z(t.usage)].filter(e=>e!==null).join(` · `)}),(0,V.jsx)(`span`,{"aria-hidden":`true`,className:`shrink-0 text-[10px] text-fg-muted transition-transform group-open:rotate-90`,children:`▸`})]}),u.trim()===``?null:(0,V.jsx)(`span`,{className:`mt-1 line-clamp-2 block text-xs leading-relaxed group-open:hidden ${d}`,children:(0,V.jsx)(oe,{text:u,links:!1})})]}),i?(0,V.jsx)(ke,{name:e,entry:t,text:u,tone:d}):null]})})}function ke({name:e,entry:t,text:n,tone:r}){let i=q(e,t);return(0,V.jsxs)(`div`,{className:`px-4 pt-1 pb-3`,children:[n.trim()===``?null:(0,V.jsx)(`p`,{className:`text-xs leading-relaxed whitespace-pre-wrap ${r}`,children:(0,V.jsx)(oe,{text:n})}),(0,V.jsx)(`div`,{className:`mt-2`,children:t.turnId===void 0?(0,V.jsx)(`p`,{className:`text-meta`,children:`This turn ran before turns kept their steps.`}):i.loading?(0,V.jsx)(`p`,{className:`text-meta`,children:`Reading the steps…`}):i.turn===void 0?(0,V.jsx)(`p`,{className:`text-meta`,children:`No steps were kept for this turn.`}):(0,V.jsxs)(V.Fragment,{children:[t.startedAt===void 0?null:(0,V.jsxs)(`p`,{className:`text-caps`,children:[`Started `,H(t.startedAt)]}),(0,V.jsx)(W,{steps:i.turn.steps})]})})]})}function Ae({name:e,opened:t}){let[n,r]=(0,B.useState)(J),a=i(e,n),o=S(3e4);if(a.data===void 0)return(0,V.jsx)(F,{children:`Reading the turns…`});let s=a.data.toReversed();if(s.length===0)return(0,V.jsxs)(F,{children:[e,` has not finished a turn yet.`]});let c=fe(s),l=c.usage===null?``:` · ${z(c.usage)}${c.withUsage<c.turns?` over ${c.withUsage} of them`:``}`;return(0,V.jsxs)(`div`,{className:`flex-1 overflow-y-auto`,children:[(0,V.jsxs)(`p`,{className:`px-4 pt-3 pb-1 text-meta`,title:c.usage===null?void 0:I(c.usage),children:[c.turns===1?`1 turn`:`${c.turns} turns`,c.failed===0?``:`, ${c.failed} not completed`,l]}),t!==null&&!s.some(e=>e.turnId===t)?(0,V.jsx)(`p`,{className:`px-4 pb-1 text-meta`,children:a.data.length===n?`The turn this address opens is further back; show earlier turns to reach it.`:`The turn this address opens is not in this citizen's history.`}):null,(0,V.jsx)(`ol`,{children:s.map(n=>(0,V.jsx)(Oe,{name:e,entry:n,now:o,opened:t!==null&&n.turnId===t},n.id))}),a.data.length===n?(0,V.jsxs)(`button`,{type:`button`,onClick:()=>r(n+J),className:`px-4 py-3 text-xs text-fg-tertiary hover:text-fg-primary`,children:[`Show `,J,` earlier turns`]}):null]})}function je(e){return e===void 0?``:`${e.name}${e.id===null?``:` · ${e.id}`}`}function Y({label:e,choices:t,value:n,onChange:r,listClassName:i=`inset-x-0`}){let[a,o]=(0,B.useState)(!1),s=(0,B.useRef)(null),c=(0,B.useRef)(null),l=(0,B.useRef)([]),u=t.findIndex(e=>e.value===n);(0,B.useEffect)(()=>{if(!a)return;l.current[Math.max(u,0)]?.focus();let e=e=>{e.target instanceof Node&&s.current?.contains(e.target)===!0||o(!1)};return window.addEventListener(`pointerdown`,e),()=>window.removeEventListener(`pointerdown`,e)},[a,u]);let d=e=>{if(e.key===`Escape`){e.stopPropagation(),o(!1),c.current?.focus();return}if(e.key!==`ArrowDown`&&e.key!==`ArrowUp`)return;e.preventDefault();let n=(l.current.findIndex(e=>e===document.activeElement)+(e.key===`ArrowDown`?1:-1)+t.length)%t.length;l.current[n]?.focus()},f=t[u];return(0,V.jsxs)(`div`,{ref:s,className:`relative min-w-0 flex-1`,children:[(0,V.jsxs)(`button`,{ref:c,type:`button`,"aria-label":`${e}: ${je(f)}`,"aria-expanded":a,onClick:()=>o(!a),onKeyDown:a?d:void 0,className:`flex h-7 w-full items-center gap-1.5 rounded-md bg-surface-2/60 px-2.5 text-xs text-fg-secondary transition-colors hover:bg-surface-2 focus-visible:ring-2 focus-visible:ring-fg-primary/30 focus-visible:outline-none`,children:[(0,V.jsxs)(`span`,{className:`min-w-0 flex-1 truncate text-left`,children:[f?.name,f?.id===null||f===void 0?null:(0,V.jsxs)(`span`,{className:`text-fg-tertiary`,children:[` · `,f.id]})]}),(0,V.jsx)(`span`,{"aria-hidden":`true`,className:`text-[10px] text-fg-muted transition-transform ${a?`rotate-180`:``}`,children:`▾`})]}),a?(0,V.jsx)(`div`,{className:`absolute ${i} top-full z-20 mt-1 max-h-80 overflow-y-auto rounded-xl bg-surface-1/95 p-1 shadow-[inset_0_0_0_1px_rgba(255,255,255,0.08),0_16px_32px_-12px_rgba(0,0,0,0.8)] backdrop-blur-xl`,children:t.map((e,t)=>{let i=e.value===n;return(0,V.jsxs)(`button`,{ref:e=>{l.current[t]=e},type:`button`,"aria-current":i?`true`:void 0,onKeyDown:d,onClick:()=>{r(e.value),o(!1),c.current?.focus()},className:`flex w-full items-start gap-2 rounded-lg px-2.5 py-1.5 text-left transition-colors focus-visible:outline-none ${i?`bg-surface-2/80`:`hover:bg-surface-2/50 focus-visible:bg-surface-2/50`}`,children:[(0,V.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,V.jsxs)(`span`,{className:`block truncate text-xs text-fg-secondary`,children:[e.name,e.id===null?null:(0,V.jsxs)(`span`,{className:`text-fg-tertiary`,children:[` · `,e.id]})]}),e.description===``?null:(0,V.jsx)(`span`,{className:`block truncate text-[11px] text-fg-muted`,children:e.description})]}),(0,V.jsx)(`span`,{"aria-hidden":`true`,className:`w-3 shrink-0 pt-px text-[11px] text-fg-primary`,children:i?`✓`:``})]},e.value)})}):null]})}var X=``,Z=``;function Me(e,t){return[{value:X,name:`CLI default`,id:e.find(e=>e.isDefault)?.name??null,description:`Whatever the CLI runs when no model is set.`},...e.map(e=>({value:e.id,name:e.name,id:e.name===e.id?null:e.id,description:e.description})),...t===null?[]:[{value:t,name:t,id:null,description:`Not in the CLI's list.`}]]}function Ne(e,t){return[{value:Z,name:`Default`,id:e?.defaultEffort??null,description:`Whatever the model runs unset.`},...(e?.efforts??[]).map(e=>({value:e.id,name:e.id,id:null,description:e.description})),...t===null?[]:[{value:t,name:t,id:null,description:`Not in the model's list.`}]]}function Pe({member:t,onDone:n}){let{api:r}=e(),i=d(),a=l(t.name),s=t.model??X,c=t.effort??Z,[u,f]=(0,B.useState)(s),[p,m]=(0,B.useState)(c),h=T({mutationFn:async()=>{u!==s&&await r.setModel(t.name,u===X?null:u),p!==c&&await r.setEffort(t.name,p===Z?null:p)},onSettled:()=>void i.invalidateQueries({queryKey:[`members`]}),onSuccess:n}),g=a.data?.models??[],_=t.model!==void 0&&!g.some(e=>e.id===t.model)?t.model:null,v=e=>g.find(t=>e===X?t.isDefault:t.id===e),y=v(u)?.efforts??[],b=p!==Z&&!y.some(e=>e.id===p)?p:null,x=e=>{f(e);let t=v(e)?.efforts??[];p!==Z&&!t.some(e=>e.id===p)&&m(Z)},S=u!==s||p!==c;return(0,V.jsxs)(`form`,{"aria-label":`Model of ${t.name}`,className:`space-y-2 border-b border-line bg-surface-2/20 p-3`,onSubmit:e=>{e.preventDefault(),h.mutate()},children:[(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[a.isPending?(0,V.jsxs)(`p`,{className:`min-w-0 flex-1 truncate text-meta`,children:[`Asking `,t.cli,` for its models…`]}):a.error===null?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Y,{label:`Model`,choices:Me(g,_),value:u,onChange:x}),y.length===0&&b===null?null:(0,V.jsx)(`div`,{className:`flex w-32 shrink-0`,children:(0,V.jsx)(Y,{label:`Effort`,choices:Ne(v(u),b),value:p,onChange:m,listClassName:`right-0 w-64`})})]}):(0,V.jsxs)(`p`,{role:`alert`,className:`min-w-0 flex-1 truncate text-xs text-red-400`,children:[t.cli,` did not list its models:`,` `,a.error instanceof o?a.error.message:`the board server did not answer`]}),(0,V.jsx)(O,{onClick:n,children:`Cancel`}),(0,V.jsx)(O,{variant:`primary`,type:`submit`,disabled:h.isPending||!S||a.error!==null,children:h.isPending?`Saving…`:`Save`})]}),a.data===void 0?null:(0,V.jsxs)(`p`,{className:`text-meta`,children:[`As `,a.data.cli,` on `,a.data.runner,` lists them, where this citizen's turns run.`]}),(0,V.jsx)(N,{error:h.error})]})}var Q=``;function Fe(e,t){let n=t.cli;return[e.status,e.clis.length===0?`offers no CLI yet`:e.clis.join(`, `),n!==null&&e.clis.length>0&&!e.clis.includes(n)?`has no ${n}`:``,e.capabilities.length===0?``:e.capabilities.join(`, `)].filter(e=>e!==``).join(` · `)}function Ie(e,t){return[{value:Q,name:`Any runner`,id:null,description:`Pinned to the least busy runner on its next turn outside a project.`},...e.map(e=>({value:e.name,name:e.name,id:e.os,description:Fe(e,t)}))]}function Le({member:t,onDone:n}){let{api:r}=e(),i=d(),a=s(),o=t.homeRunner??Q,[c,l]=(0,B.useState)(o),u=T({mutationFn:()=>r.setRunner(t.name,c===Q?null:c),onSuccess:()=>{i.invalidateQueries({queryKey:[`members`]}),n()}});return(0,V.jsxs)(`form`,{"aria-label":`Runner of ${t.name}`,className:`space-y-2 border-b border-line bg-surface-2/20 p-3`,onSubmit:e=>{e.preventDefault(),u.mutate()},children:[(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[a.data===void 0?(0,V.jsx)(`p`,{className:`min-w-0 flex-1 truncate text-meta`,children:`Reading the runners…`}):(0,V.jsx)(Y,{label:`Runner`,choices:Ie(a.data,t),value:c,onChange:l}),(0,V.jsx)(O,{onClick:n,children:`Cancel`}),(0,V.jsx)(O,{variant:`primary`,type:`submit`,disabled:u.isPending||c===o,children:u.isPending?`Saving…`:`Run here`})]}),(0,V.jsx)(`p`,{className:`text-meta`,children:`Its conversations outside projects start afresh there from its next turn; its memory and skills follow it. Project work runs where each project lives.`}),(0,V.jsx)(N,{error:u.error})]})}function Re(e){if(e.thread!==void 0)return{threadId:e.thread};let t=e.scope===`society`?null:e.scope;return e.channel===void 0?{channel:e.askedIn??C(t,`general`)}:{channel:C(t,e.channel)}}function ze({name:t,turn:n}){let{api:r}=e(),i=d(),[a,o]=(0,B.useState)(!1),s=T({mutationFn:()=>r.stopTurn(n.turnId),onSuccess:()=>{o(!1),i.invalidateQueries({queryKey:[`scheduler`]})}});return(0,V.jsxs)(`div`,{className:`border-t border-line`,children:[(0,V.jsx)(ae,{target:Re(n),initialText:`@${t} `,placeholder:n.steerable?`Message ${t} while it works`:`Message ${t} for its next turn`,className:`px-3 pt-3 pb-2`},n.turnId),n.stoppable?(0,V.jsxs)(`div`,{className:`flex items-center gap-2 px-3 pb-3`,children:[(0,V.jsx)(`p`,{className:`min-w-0 flex-1 text-[11px] leading-snug text-fg-muted`,children:a?`Ends the turn now. What it was shown counts as read; its stages stay held.`:n.steerable?`Posts reach the turn at its next step.`:`This runner delivers posts after the turn ends.`}),a?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(O,{onClick:()=>{o(!1),s.reset()},children:`Keep it running`}),(0,V.jsx)(O,{variant:`primary`,disabled:s.isPending,onClick:()=>{s.mutate()},children:s.isPending?`Stopping…`:`Stop the turn`})]}):(0,V.jsx)(O,{onClick:()=>o(!0),children:`Stop…`})]}):null,s.error===null?null:(0,V.jsx)(`div`,{className:`px-3 pb-3`,children:(0,V.jsx)(N,{error:s.error})})]})}function Be({member:t,scopes:n,preferred:r,running:i,paused:a,onDone:o}){let{api:s}=e(),c=d(),[l,u]=(0,B.useState)(`manual`),[f,p]=(0,B.useState)(r!==null&&n.includes(r)?r:n[0]??``),[m,h]=(0,B.useState)(``),g=(0,B.useRef)(null);(0,B.useEffect)(()=>g.current?.focus(),[]);let _=T({mutationFn:()=>s.wake({agent:t.name,project:f,kind:l,...m.trim()===``?{}:{reason:m.trim()}}),onSuccess:()=>{c.invalidateQueries({queryKey:[`scheduler`]}),o()}}),v=L(f),y=l===`reflection`?`Asks ${t.name} to reflect at ${v}: consolidate its memory, skills, and profile, and take no new work. It restarts the reflection clock.`:`Starts a turn for ${t.name} at ${v} as soon as the scheduler takes it.`,b=a?` The society is paused, so it waits until you resume.`:i.includes(f)?` ${t.name} is in a turn there now; this one follows it.`:``;return(0,V.jsxs)(`form`,{"aria-label":`Wake ${t.name}`,className:`space-y-2 border-b border-line bg-surface-2/20 p-3`,onSubmit:e=>{e.preventDefault(),_.mutate()},children:[(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,V.jsxs)(`fieldset`,{className:`flex gap-1`,children:[(0,V.jsx)(`legend`,{className:`sr-only`,children:`Kind of turn`}),[`manual`,`reflection`].map(e=>(0,V.jsxs)(`label`,{className:`cursor-pointer rounded-md px-2.5 py-1 text-xs transition-colors has-focus-visible:ring-2 has-focus-visible:ring-fg-primary/30 ${l===e?`bg-surface-2 text-fg-primary`:`text-fg-tertiary hover:bg-surface-2/60 hover:text-fg-primary`}`,children:[(0,V.jsx)(`input`,{type:`radio`,name:`kind`,value:e,checked:l===e,onChange:()=>u(e),className:`sr-only`}),e===`manual`?`A turn`:`A reflection`]},e))]}),(0,V.jsxs)(`label`,{className:`ml-auto flex items-center gap-2 text-xs text-fg-tertiary`,children:[`at`,(0,V.jsx)(`select`,{value:f,onChange:e=>p(e.target.value),"aria-label":`Where`,className:`rounded-md bg-surface-2/60 px-2 py-1 text-xs text-fg-primary outline-none`,children:n.map(e=>(0,V.jsx)(`option`,{value:e,children:L(e)},e))})]})]}),(0,V.jsx)(`textarea`,{ref:g,value:m,rows:2,placeholder:l===`reflection`?`Anything to reflect on in particular? Optional.`:`What should it look at? It reads this as the reason it was woken.`,"aria-label":`Reason`,onChange:e=>h(e.target.value),className:`${ce} resize-none`}),(0,V.jsxs)(`p`,{className:`text-[11px] leading-relaxed text-fg-muted`,children:[y,b,` Each turn costs money.`]}),(0,V.jsxs)(`div`,{className:`flex items-center justify-end gap-2`,children:[(0,V.jsx)(O,{onClick:o,children:`Cancel`}),(0,V.jsx)(O,{variant:`primary`,type:`submit`,disabled:_.isPending||f===``,children:_.isPending?`Waking…`:l===`reflection`?`Ask for a reflection`:`Wake ${t.name}`})]}),(0,V.jsx)(N,{error:_.error})]})}var Ve={working:`bg-emerald-500/15 text-emerald-300`,queued:`bg-amber-500/15 text-amber-300`,idle:`bg-surface-2 text-fg-tertiary`};function He({project:e,name:t}){let n=(a(e).data??[]).filter(e=>e.status===`claimed`&&e.claimedBy===t);return n.length===0?null:(0,V.jsx)(`ul`,{className:`mt-1.5 space-y-1`,children:n.map(e=>(0,V.jsx)(`li`,{children:(0,V.jsxs)(E,{to:`/task/$taskId`,params:{taskId:e.id},className:`flex items-center gap-2 rounded-md text-xs text-fg-secondary hover:text-fg-primary`,children:[(0,V.jsx)(`span`,{"aria-hidden":`true`,className:`text-fg-muted`,children:`◇`}),(0,V.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.title}),(0,V.jsx)(`span`,{className:`max-w-[40%] shrink-0 truncate font-mono text-[11px] text-fg-muted`,children:b(e)?.name??e.stage})]})},e.id))})}function Ue(){let{name:e}=te({from:`/citizen/$name`}),{scope:t,tab:n,turn:r}=w({from:`/citizen/$name`});return(0,V.jsx)(Ge,{name:e,chosen:t??null,tab:n??`now`,turn:r??null},e)}var We=[{tab:`now`,label:`Now`},{tab:`turns`,label:`Turns`},{tab:`memory`,label:`Memory`},{tab:`history`,label:`History`}];function Ge({name:e,chosen:r,tab:i,turn:a}){let o=m(),s=x(),c=t(),l=se(),[u,d]=(0,B.useState)(null),f=o.data?.find(t=>t.name===e);if(f===void 0)return(0,V.jsx)(F,{children:o.data===void 0?`Reading the roster…`:`There is no citizen ${e}.`});let p=n(c.data?.running??[]).filter(t=>t.agent===e),h=[...new Set(p.map(e=>e.scope))],g=p.map(e=>A(e.agent,e.scope,e)),_=n(c.data?.pending??[]).find(t=>t.agent===e),v=h.length>0?`working`:_===void 0?`idle`:`queued`,y=M(l,e)[0],b=y?.model??f.lastModel,S=b??f.model??`CLI default`,C=f.model!==void 0&&f.model!==b?f.model:null,w=s.data?.find(e=>e.name===f.role),T=de(f),D=f.status===`active`&&f.cli!==null;return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(le,{leading:f.cli===null?null:(0,V.jsx)(`span`,{className:`grid size-9 shrink-0 place-items-center rounded-lg bg-surface-2/70`,children:(0,V.jsx)(ee,{cli:f.cli,size:20})}),title:e,subtitle:(0,V.jsxs)(V.Fragment,{children:[f.role,` · `,S,C===null?``:` · set to ${C}`,f.effort===void 0?``:` · ${f.effort} effort`,f.homeRunner===void 0?``:` · on ${f.homeRunner}`,f.status===`retired`?` · retired`:``]}),trailing:(0,V.jsxs)(V.Fragment,{children:[D&&u===null?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(O,{onClick:()=>d(`model`),children:`Model…`}),(0,V.jsx)(O,{onClick:()=>d(`runner`),children:`Runner…`}),(0,V.jsx)(O,{onClick:()=>d(`wake`),children:`Wake…`})]}):null,(0,V.jsx)(`span`,{className:`shrink-0 rounded-full px-2 py-0.5 text-[11px] font-medium ${Ve[v]}`,children:v})]})}),u===`wake`?(0,V.jsx)(Be,{member:f,scopes:T,preferred:r?.split(`/`)[0]??y?.scope??null,running:h,paused:c.data?.paused??!1,onDone:()=>d(null)}):u===`model`?(0,V.jsx)(Pe,{member:f,onDone:()=>d(null)}):u===`runner`?(0,V.jsx)(Le,{member:f,onDone:()=>d(null)}):null,(0,V.jsx)(`nav`,{"aria-label":`Citizen views`,className:`flex gap-1 border-b border-line px-3 py-2`,children:We.map(t=>(0,V.jsx)(E,{to:`/citizen/$name`,params:{name:e},search:{...r===null?{}:{scope:r},...t.tab===`now`?{}:{tab:t.tab}},replace:!0,"aria-current":t.tab===i?`page`:void 0,className:`rounded-md px-2.5 py-1 text-xs transition-colors ${t.tab===i?`bg-surface-2 text-fg-primary`:`text-fg-tertiary hover:bg-surface-2/60 hover:text-fg-primary`}`,children:t.label},t.tab))}),i===`turns`?(0,V.jsx)(Ae,{name:e,opened:a},a):i===`memory`?(0,V.jsx)(De,{member:f,charter:w}):i===`history`?(0,V.jsx)(Ee,{name:e}):(0,V.jsx)(Ke,{name:e,chosen:r,lastTurnAt:f.lastTurnAt,state:v,runningScopes:h,runningKeys:g,runningTurns:(c.data?.turns??[]).filter(t=>t.agent===e),queuedScope:_?.scope??null})]})}function $(e){return e.toSorted((e,t)=>e.startedAt.localeCompare(t.startedAt))[0]}function Ke({name:e,chosen:t,lastTurnAt:n,state:r,runningScopes:a,runningKeys:o,runningTurns:s,queuedScope:c}){let l=se(),u=S(5e3),{ref:d,onScroll:f}=ue(),p=M(l,e),m=i(e,1),h=q(e,p.length===0?m.data?.at(-1):void 0),g=D(),_=e=>e.end===null&&o.includes(A(e.agent,e.scope,e)),v=t?.split(`/`)[0]??null,b=(t?.includes(`/`)===!0?p.find(e=>k(e)===t):void 0)??$(p.filter(e=>e.scope===v&&_(e)))??p.find(e=>k(e)===t)??$(p.filter(_))??p[0]??h.turn,x=e=>e.thread===void 0?e.channel===void 0?L(e.scope):`${L(e.scope)} · #${e.channel}`:`${L(e.scope)} · ${g.get(e.thread)?.title??`a thread`}`,C=b!==void 0&&_(b),w=b?.scope??a[0]??c,T=(b===void 0?void 0:s.find(e=>e.scope===b.scope&&e.thread===b.thread&&e.channel===b.channel))??(C?void 0:s[0]);return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(`section`,{className:`border-b border-line px-4 py-3 text-xs text-fg-tertiary`,children:[(0,V.jsx)(`p`,{children:C?`In a turn at ${L(b.scope)} for ${b.fromStart?``:`at least `}${j(b.startedAt,u)}`:a.length>0?`In a turn at ${a.map(L).join(` and `)}`:c===null?n===void 0?`No turns yet`:`Last turn ${y(n,u)}`:`Queued for a turn at ${L(c)}`}),w===null||w===`society`?null:(0,V.jsx)(He,{project:w,name:e})]}),(0,V.jsx)(`div`,{ref:d,onScroll:f,className:`flex-1 overflow-y-auto px-4 py-3`,children:b===void 0?(0,V.jsx)(F,{children:r===`working`?`The turn has not reported a step yet.`:h.loading?`Reading the last turn…`:n===void 0?`${e} has not taken a turn yet.`:`${e}'s last turn kept no steps; Turns lists every finished one.`}):(0,V.jsxs)(V.Fragment,{children:[p.length>1?(0,V.jsx)(`div`,{className:`mb-3 flex flex-wrap gap-1.5`,"aria-label":`Turns by conversation`,children:p.toSorted((e,t)=>k(e).localeCompare(k(t))).map(t=>(0,V.jsxs)(E,{to:`/citizen/$name`,params:{name:e},search:{scope:k(t)},replace:!0,"aria-current":t===b?`true`:void 0,className:`inline-flex items-center gap-1.5 rounded-full px-2.5 py-0.5 text-[11px] transition-colors ${t===b?`bg-surface-2 text-fg-primary`:`text-fg-tertiary hover:bg-surface-2/60 hover:text-fg-primary`}`,children:[_(t)?(0,V.jsx)(`span`,{className:`size-1.5 animate-pulse rounded-full bg-emerald-400`}):null,x(t)]},k(t)))}):null,(0,V.jsxs)(`p`,{className:`text-caps`,children:[C?`This turn`:`Last turn`,` · `,x(b),` · started`,` `,b.fromStart?H(b.startedAt):`before the earliest step shown`]}),b.fromStart?null:(0,V.jsxs)(`p`,{className:`mt-1 text-meta`,children:[`Earlier steps of this turn are no longer in the server's live buffer`,C?``:`; Turns has the whole turn`,`.`]}),(0,V.jsx)(W,{steps:b.steps}),(0,V.jsx)(_e,{turn:b,running:C,now:u})]})}),T===void 0?null:(0,V.jsx)(ze,{name:e,turn:T})]})}export{Ue as CitizenView};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as e,H as t,b as n,fn as r,g as i}from"./format-EfoceZkm.js";import{R as a,T as o}from"./index-D75IxLme.js";import{n as s,t as c}from"./Pane-caYWCiyo.js";import{i as l,r as u}from"./citizen-BtOZq62_.js";var d=r();function f(e){let t=e.lastModel??e.model??`CLI default`,n=e.model!==void 0&&e.model!==t?`${t} · set to ${e.model}`:t;return e.effort===void 0?n:`${n} · ${e.effort}`}function p(e,t){return e.name.localeCompare(t.name)}function m(e,t){return e.role.localeCompare(t.role)||p(e,t)}function h(){let r=i(),h=e(),g=n();if(r.data===void 0)return(0,d.jsx)(s,{children:`Reading the roster…`});let _=r.data.filter(e=>e.cli!==null),v=_.filter(e=>e.status===`active`).toSorted(m),y=_.filter(e=>e.status!==`active`).toSorted(p),b=new Set(v.map(e=>e.role)).size,x=t(h.data?.running??[]),S=t(h.data?.pending??[]),C=new Map((g.data??[]).flatMap(e=>e.runner===void 0?[]:[[e.slug,e.runner]])),w=e=>{let t=[...new Set(x.filter(t=>t.agent===e.name).map(e=>e.scope))];return t.length>0?{label:`working`,detail:`in a turn at ${t.map(l).join(` and `)}`,tone:`text-emerald-300`}:S.some(t=>t.agent===e.name)?{label:`queued`,detail:`queued for a turn`,tone:`text-amber-300`}:{label:`resting`,detail:`resting`,tone:`text-fg-muted`}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(c,{title:`Citizens`,subtitle:`${v.length} active in ${b===1?`1 role`:`${b} roles`}${y.length===0?``:` · ${y.length} retired`}`}),(0,d.jsxs)(`div`,{className:`flex-1 overflow-y-auto px-2 py-2`,children:[v.length===0?(0,d.jsx)(`p`,{className:`px-2 py-2 text-meta`,children:`No citizens yet. Ask the concierge for one.`}):null,(0,d.jsx)(`ul`,{className:`grid grid-cols-[auto_auto_auto_minmax(0,max-content)_auto_minmax(3rem,1fr)_auto] gap-x-3`,children:v.map(e=>{let t=w(e),n=f(e),r=e.memberships.length===0?`no projects`:e.memberships.join(`, `),i=u(e,C);return(0,d.jsx)(`li`,{className:`col-span-full grid grid-cols-subgrid`,children:(0,d.jsxs)(a,{to:`/citizen/$name`,params:{name:e.name},className:`col-span-full grid grid-cols-subgrid items-center rounded-lg px-2 py-1.5 text-sm transition-colors hover:bg-surface-2/50`,children:[(0,d.jsx)(`span`,{className:`grid size-4 place-items-center`,children:e.cli===null?null:(0,d.jsx)(o,{cli:e.cli,size:13})}),(0,d.jsx)(`span`,{className:`text-fg-primary`,children:e.name}),(0,d.jsx)(`span`,{className:`text-fg-secondary`,children:e.role}),(0,d.jsx)(`span`,{className:`truncate text-xs text-fg-muted`,title:n,children:n}),(0,d.jsx)(`span`,{className:`text-xs text-fg-muted`,title:i.detail,children:i.label}),(0,d.jsx)(`span`,{className:`truncate text-xs text-fg-muted`,title:r,children:r}),(0,d.jsx)(`span`,{className:`text-right text-xs ${t.tone}`,title:t.detail,children:t.label})]})},e.name)})}),y.length===0?null:(0,d.jsxs)(`p`,{className:`mt-2 border-t border-line px-2 pt-2 text-meta`,children:[`Retired: `,y.map(e=>`${e.name} (${e.role})`).join(`, `)]})]})]})}export{h as CitizensView};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{D as e,b as t,ct as n,dn as r,fn as i,gn as a,m as o,pn as s,t as c,y as l}from"./format-EfoceZkm.js";import{H as u,R as d,V as f,c as p,z as m}from"./index-D75IxLme.js";import{r as h}from"./ThreadForms-DUGkAwTp.js";import{t as g}from"./Markdown-J2pAPfCa.js";import{n as _,t as v}from"./Pane-caYWCiyo.js";import{t as y}from"./BackLink-C-vad6K2.js";var b=a(s(),1),x=i(),S=`grid size-7 shrink-0 place-items-center rounded-lg text-fg-tertiary hover:bg-surface-2/70 hover:text-fg-primary`;function C(){let{scope:i,topic:a}=f({from:`/knowledge/$scope/$topic`}),{api:s}=e(),C=r(),w=m(),T=o(i),E=t(),D=l(3e4),[O,k]=(0,b.useState)(!1),A=i===n,j=A?`the society`:E.data?.find(e=>e.slug===i)?.name??i,M=T.data?.find(e=>e.topic===a),N=u({mutationFn:()=>s.removeKnowledge({project:A?null:i,topic:a}),onSuccess:async()=>{await C.invalidateQueries({queryKey:[`knowledge`,i]}),await w(A?{to:`/society`}:{to:`/p/$slug`,params:{slug:i}})}}),P=A?(0,x.jsx)(d,{to:`/society`,"aria-label":`Back to the society`,className:S,children:`←`}):(0,x.jsx)(d,{to:`/p/$slug`,params:{slug:i},"aria-label":`Back to ${j}`,className:S,children:`←`});return M===void 0?(0,x.jsx)(_,{children:T.data===void 0?`Reading…`:`${j} has no topic ${a}.`}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(v,{leading:(0,x.jsx)(y,{fallback:P}),title:M.topic,subtitle:`Knowledge of ${j} · written by ${M.updatedBy} ${c(M.updatedAt,D)}`,trailing:O?null:(0,x.jsx)(p,{onClick:()=>k(!0),children:`Remove…`})}),O?(0,x.jsxs)(`form`,{"aria-label":`Remove the topic`,className:`space-y-2 border-b border-line bg-surface-2/20 p-3`,onSubmit:e=>{e.preventDefault(),N.mutate()},children:[(0,x.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,x.jsxs)(`p`,{className:`min-w-0 flex-1 text-meta`,children:[`No turn or search finds `,M.topic,` again, and a note in`,` `,A?`#general`:`#${i}/general`,` says so without waking anyone. The server keeps its text aside.`]}),(0,x.jsx)(p,{onClick:()=>k(!1),children:`Cancel`}),(0,x.jsx)(p,{variant:`primary`,type:`submit`,disabled:N.isPending,children:N.isPending?`Removing…`:`Remove topic`})]}),(0,x.jsx)(h,{error:N.error})]}):null,(0,x.jsx)(`div`,{className:`flex-1 overflow-y-auto px-4 py-4`,children:(0,x.jsx)(g,{text:M.body})})]})}export{C as KnowledgeView};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{fn as e,gn as t,pn as n,t as r}from"./format-EfoceZkm.js";import{u as i}from"./tasks-Duke4U7N.js";import{d as a,l as o}from"./index-D75IxLme.js";import{t as s}from"./Markdown-J2pAPfCa.js";var c=t(n(),1),l=e(),u=1400;function d({message:e,members:t,now:n,task:d}){let f=e.body.length>u,[p,m]=(0,c.useState)(!1),h=a(),g=e.author===`board`,_=e.step===void 0?null:i(e.step,d);return(0,l.jsxs)(`article`,{className:`flex gap-3 px-4 py-2.5 ${g?`opacity-70`:``}`,children:[(0,l.jsx)(o,{name:e.author,members:t}),(0,l.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,l.jsxs)(`header`,{className:`flex min-w-0 items-baseline gap-2`,children:[(0,l.jsx)(`span`,{className:`text-title`,children:h(e.author)}),_===null?null:(0,l.jsx)(`span`,{className:`min-w-0 truncate rounded-md px-1.5 py-px text-[11px] ${_.tone}`,children:_.text}),(0,l.jsx)(`time`,{dateTime:e.ts,title:e.ts,className:`shrink-0 text-meta`,children:r(e.ts,n)})]}),(0,l.jsxs)(`div`,{className:f&&!p?`relative max-h-72 overflow-hidden`:``,children:[(0,l.jsx)(s,{text:e.body}),f&&!p?(0,l.jsx)(`div`,{className:`absolute inset-x-0 bottom-0 h-16 bg-linear-to-t from-surface-1 to-transparent`}):null]}),f?(0,l.jsx)(`button`,{type:`button`,onClick:()=>m(!p),className:`mt-1 text-xs text-fg-tertiary hover:text-fg-primary`,children:p?`Show less`:`Show more`}):null]})]})}export{d as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{R as e,fn as t,r as n,t as r,v as i,y as a}from"./format-EfoceZkm.js";import{B as o,R as s,b as c,d as l}from"./index-D75IxLme.js";import{n as u,t as d}from"./Pane-caYWCiyo.js";import{n as f}from"./Overview-BBXvRhfR.js";var p=t(),m=[{window:`24h`,label:`24 hours`},{window:`7d`,label:`7 days`},{window:`all`,label:`All time`}],h={stage:`a stage to take`,mention:`a mention`,user_post:`your post`,heartbeat:`a heartbeat`,task_done:`a finished task`,proposal_decided:`a decided proposal`,ops_event:`a signal`,onboarding:`joining`,manual:`your wake`},g=new Intl.DateTimeFormat(`en`,{month:`short`,day:`numeric`,timeZone:`UTC`});function _(e,t){return t===0?``:`${Math.round(e/t*100)}%`}function v(e){return e.toFixed(1).replace(/\.0$/,``)}function y({part:e,whole:t}){return(0,p.jsxs)(p.Fragment,{children:[e,(0,p.jsx)(`span`,{className:`ml-1.5 inline-block w-9 text-right text-fg-muted`,children:e===0?``:_(e,t)})]})}function b({children:e}){return(0,p.jsx)(`p`,{className:`text-sm text-fg-primary`,children:e})}function x({children:e}){return(0,p.jsx)(`p`,{className:`mt-1 text-meta`,children:e})}function S({label:e,columns:t,rows:n}){return n.length===0?null:(0,p.jsxs)(`table`,{"aria-label":e,className:`mt-3 w-full table-fixed text-sm`,children:[(0,p.jsxs)(`colgroup`,{children:[(0,p.jsx)(`col`,{}),t.slice(1).map(e=>(0,p.jsx)(`col`,{className:`w-24`},e))]}),(0,p.jsx)(`thead`,{children:(0,p.jsx)(`tr`,{children:t.map((e,t)=>(0,p.jsx)(`th`,{scope:`col`,className:`text-caps pb-1 font-normal ${t===0?`text-left`:`text-right`}`,children:e},e))})}),(0,p.jsx)(`tbody`,{children:n.map((e,t)=>(0,p.jsx)(`tr`,{className:`border-t border-line/50`,children:e.map((e,t)=>(0,p.jsx)(`td`,{className:`py-1.5 ${t===0?`pr-3 text-fg-primary`:`text-right text-fg-secondary tabular-nums`}`,children:e},t))},t))})]})}function C({name:e}){let t=l();return e===`user`?(0,p.jsx)(`span`,{children:t(e)}):(0,p.jsx)(s,{to:`/citizen/$name`,params:{name:e},className:`hover:underline`,children:e})}function w(e){return e.window===`24h`?1:e.window===`7d`?7:Math.max(1,e.decisions.byDay.length)}function T(){let{window:t=`7d`}=o({from:`/metrics`}),l=i(t),T=a(6e4),E=(0,p.jsx)(`nav`,{"aria-label":`Window`,className:`flex shrink-0 gap-1`,children:m.map(e=>(0,p.jsx)(s,{to:`/metrics`,search:{window:e.window},"aria-current":e.window===t?`page`:void 0,className:`rounded-md px-2 py-1 text-xs transition-colors ${e.window===t?`bg-surface-2 text-fg-primary`:`text-fg-tertiary hover:bg-surface-2/70 hover:text-fg-primary`}`,children:e.label},e.window))}),D=(0,p.jsx)(d,{title:`Metrics`,subtitle:`How the society works, counted from its event log`,trailing:E});if(l.data===void 0)return(0,p.jsxs)(p.Fragment,{children:[D,(0,p.jsx)(u,{children:l.error instanceof e?l.error.message:`Counting the event log…`})]});let{idle:O,sentBack:k,messages:A,latency:j,decisions:M,blocked:N}=l.data,P=w(l.data);return(0,p.jsxs)(p.Fragment,{children:[D,(0,p.jsxs)(`div`,{className:`flex-1 space-y-5 overflow-y-auto px-4 py-4`,children:[(0,p.jsxs)(f,{title:`Turns that did nothing`,children:[O.turns===0?(0,p.jsx)(x,{children:`No finished turns in this window.`}):(0,p.jsxs)(b,{children:[O.idle,` of `,O.turns,` turns changed nothing on the board`,` `,(0,p.jsx)(`span`,{className:`text-fg-muted`,children:_(O.idle,O.turns)})]}),(0,p.jsxs)(x,{children:[`A turn that took no board action: no post, claim, handover, plan, proposal, decision, or knowledge. Reflections are left out, since they write memory.`,O.unknown>0?` ${O.unknown} ${O.unknown===1?`turn`:`turns`} kept no transcript and could not be counted.`:``]}),(0,p.jsx)(S,{label:`By what woke them`,columns:[`Woken by`,`Turns`,`Did nothing`],rows:O.byTrigger.map(e=>[h[e.trigger]??e.trigger,e.turns,(0,p.jsx)(y,{part:e.idle,whole:e.turns},`idle`)])}),(0,p.jsx)(S,{label:`By citizen`,columns:[`Citizen`,`Turns`,`Did nothing`],rows:O.byAgent.map(e=>[(0,p.jsxs)(`span`,{children:[(0,p.jsx)(C,{name:e.agent}),e.role===null?null:(0,p.jsxs)(`span`,{className:`text-meta`,children:[` · `,e.role]})]},`who`),e.turns,(0,p.jsx)(y,{part:e.idle,whole:e.turns},`idle`)])})]}),(0,p.jsxs)(f,{title:`Work sent back`,children:[k.finished===0?(0,p.jsx)(x,{children:`No task finished in this window.`}):(0,p.jsxs)(b,{children:[k.tasksSentBack,` of `,k.finished,` finished tasks were sent back,`,` `,k.sendBacks,` `,k.sendBacks===1?`time`:`times`,` in all`]}),(0,p.jsx)(S,{label:`Where work came back from`,columns:[`Came back from`,`Times`],rows:k.byStage.map(e=>[`${e.project} · ${e.stage}`,e.count])}),(0,p.jsx)(S,{label:`Who sent work back`,columns:[`Sent back by`,`Times`],rows:k.bySender.map(e=>[(0,p.jsx)(C,{name:e.agent},`who`),e.count])})]}),(0,p.jsxs)(f,{title:`Messages per finished task`,children:[A.finished===0?(0,p.jsx)(x,{children:`No task finished in this window.`}):(0,p.jsxs)(b,{children:[v(A.messages/A.finished),` posts a task, across`,` `,A.finished,` finished `,A.finished===1?`task`:`tasks`]}),(0,p.jsx)(x,{children:`Posts in each finished task's thread, handovers included, the board's own left out.`}),(0,p.jsx)(S,{label:`By project`,columns:[`Project`,`Tasks`,`Posts a task`],rows:A.byProject.map(e=>[e.project,e.finished,v(e.messages/e.finished)])}),(0,p.jsx)(S,{label:`Most talked-over tasks`,columns:[`Task`,`Posts`],rows:A.busiest.map(e=>[(0,p.jsx)(c,{kind:`task`,id:e.taskId,children:e.title},`task`),e.messages])})]}),(0,p.jsxs)(f,{title:`Wake latency`,children:[j.medianMs===null||j.slowestMs===null?(0,p.jsx)(x,{children:`No mention led to a turn in this window.`}):(0,p.jsxs)(b,{children:[n(j.medianMs),` from a mention to its turn, at the median; the slowest took`,` `,n(j.slowestMs)]}),(0,p.jsxs)(x,{children:[`From a post that mentions a citizen to the start of its turn in the same conversation, debounce included.`,j.unanswered>0?` ${j.unanswered} ${j.unanswered===1?`mention has`:`mentions have`} no turn yet.`:``]}),(0,p.jsx)(S,{label:`By citizen`,columns:[`Citizen`,`Mentions`,`Median`,`Slowest`],rows:j.byAgent.map(e=>[(0,p.jsx)(C,{name:e.agent},`who`),e.mentions,n(e.medianMs),n(e.slowestMs)])})]}),(0,p.jsxs)(f,{title:`Your decisions`,children:[M.total===0?(0,p.jsx)(x,{children:`You decided nothing in this window.`}):(0,p.jsxs)(b,{children:[M.total,` `,M.total===1?`decision`:`decisions`,`, about`,` `,v(M.total/P),` a day`]}),(0,p.jsx)(x,{children:`Proposals you decided, questions to you that you answered, and stages you passed or sent back.`}),(0,p.jsx)(S,{label:`By day`,columns:[`Day`,`Proposals`,`Answers`,`Stages`],rows:M.byDay.map(e=>[g.format(new Date(`${e.day}T00:00:00Z`)),e.proposals,e.answers,e.stages])})]}),(0,p.jsx)(f,{title:`Blocked on a capability`,children:N.length===0?(0,p.jsx)(x,{children:`No task waited for a capability no runner offers.`}):(0,p.jsx)(`ul`,{className:`space-y-2`,children:N.map(e=>(0,p.jsxs)(`li`,{children:[(0,p.jsxs)(`p`,{className:`text-sm text-fg-primary`,children:[(0,p.jsx)(c,{kind:`task`,id:e.taskId,children:e.title??e.taskId}),(0,p.jsx)(`span`,{className:e.holds?`text-amber-300`:`text-fg-muted`,children:e.holds?` · blocked now`:` · cleared`})]}),(0,p.jsxs)(`p`,{className:`text-meta`,children:[e.summary,` · since `,r(e.firstAt,T)]})]},e.taskId))})})]})]})}export{T as MetricsView};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e,fn as t,n,t as r,y as i}from"./format-EfoceZkm.js";import{E as a,R as o,d as s,j as c,x as l}from"./index-D75IxLme.js";import{n as u,t as d}from"./Pane-caYWCiyo.js";var f=t(),p=[{kind:`proposal`,label:`Proposals to decide`},{kind:`stage`,label:`Stages that name you`},{kind:`request`,label:`Asked of you`}],m=`block rounded-xl px-3 py-2.5 transition-colors hover:bg-surface-2/50`;function h({title:e,meta:t}){return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`span`,{className:`text-title block truncate`,children:e}),(0,f.jsx)(`span`,{className:`mt-1 block truncate text-meta`,children:t})]})}function g(){let t=a(),g=e(),_=i(3e4),v=s(),y=e=>g.data?.find(t=>t.slug===e)?.name??e;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(d,{title:`Needs you`,subtitle:t.length===0?`Nothing waits on you`:`${t.length} waiting on you, oldest first`}),(0,f.jsx)(`div`,{className:`flex-1 overflow-y-auto px-2 py-2`,children:t.length===0?(0,f.jsx)(u,{children:`Nothing waits on you. Proposals you may decide, stages that name you, and questions citizens ask you with @user appear here until you answer where they asked.`}):p.map(({kind:e,label:i})=>{let a=t.filter(t=>t.kind===e);return a.length===0?null:(0,f.jsxs)(`section`,{className:`mb-3`,children:[(0,f.jsxs)(`h3`,{className:`px-3 pt-2 pb-1 text-[11px] font-semibold tracking-wider text-fg-muted uppercase`,children:[i,` · `,a.length]}),(0,f.jsx)(`ul`,{children:a.map(e=>{if(e.kind===`proposal`)return(0,f.jsx)(`li`,{children:(0,f.jsx)(o,{to:`/proposal/$proposalId`,params:{proposalId:e.proposal.id},className:m,children:(0,f.jsx)(h,{title:c(e.proposal),meta:`proposed by ${v(e.proposal.proposedBy)} ${r(e.since,_)}`})})},e.proposal.id);if(e.kind===`stage`)return(0,f.jsx)(`li`,{children:(0,f.jsx)(o,{to:`/task/$taskId`,params:{taskId:e.task.id},className:m,children:(0,f.jsx)(h,{title:e.task.title,meta:`${e.stage.name}${e.stage.gate?` (gate)`:``} in ${y(e.task.project)} · waiting since ${r(e.since,_)}`})})},e.task.id);let t=`${v(e.message.author)} in ${e.thread===null?`#${e.message.channel}`:e.thread.title} ${r(e.since,_)}`,i=(0,f.jsx)(h,{title:(0,f.jsx)(l,{text:n(e.message.body,160),links:!1}),meta:t}),a=e.thread?.subject;return(0,f.jsx)(`li`,{children:a?.kind===`task`?(0,f.jsx)(o,{to:`/task/$taskId`,params:{taskId:a.id},className:m,children:i}):a?.kind===`proposal`?(0,f.jsx)(o,{to:`/proposal/$proposalId`,params:{proposalId:a.id},className:m,children:i}):e.thread===null?(0,f.jsx)(o,{to:`/c/$`,params:{_splat:e.message.channel},className:m,children:i}):(0,f.jsx)(o,{to:`/thread/$threadId`,params:{threadId:e.thread.id},className:m,children:i})},e.message.id)})})]},e)})})]})}export{g as NeedsYouView};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as e,H as t,fn as n,n as r,t as i}from"./format-EfoceZkm.js";import{R as a,T as o,x as s}from"./index-D75IxLme.js";import{i as c}from"./citizen-BtOZq62_.js";var l=n();function u({title:e,aside:t,children:n}){return(0,l.jsxs)(`section`,{className:`border-t border-line pt-4 first:border-t-0 first:pt-0`,children:[(0,l.jsxs)(`h3`,{className:`flex items-baseline justify-between gap-2`,children:[(0,l.jsx)(`span`,{className:`text-section`,children:e}),t]}),(0,l.jsx)(`div`,{className:`mt-2`,children:n})]})}function d({members:n,scope:r}){let i=e(),s=t(i.data?.running??[]),u=t(i.data?.pending??[]);return n.length===0?(0,l.jsx)(`p`,{className:`text-meta`,children:`Nobody yet.`}):(0,l.jsx)(`ul`,{className:`-mx-2`,children:n.map(e=>{let t=s.filter(t=>t.agent===e.name).map(e=>e.scope),n=t.includes(r),i=u.some(t=>t.agent===e.name),d=n?`in a turn here`:t.length>0?`in a turn at ${t.map(c).join(` and `)}`:i?`queued`:`resting`;return(0,l.jsx)(`li`,{children:(0,l.jsxs)(a,{to:`/citizen/$name`,params:{name:e.name},search:n&&r!==`society`?{scope:r}:{},className:`flex items-center gap-2 rounded-lg px-2 py-1.5 text-sm transition-colors hover:bg-surface-2/50`,children:[(0,l.jsx)(`span`,{className:`grid size-4 shrink-0 place-items-center`,children:e.cli===null?null:(0,l.jsx)(o,{cli:e.cli,size:13})}),(0,l.jsx)(`span`,{className:`text-fg-primary`,children:e.name}),(0,l.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-xs text-fg-muted`,children:e.role}),(0,l.jsx)(`span`,{className:`shrink-0 text-xs ${t.length>0?`text-emerald-300`:i?`text-amber-300`:`text-fg-muted`}`,children:d})]})},e.name)})})}function f({scope:e,topics:t,now:n}){return t===void 0?(0,l.jsx)(`p`,{className:`text-meta`,children:`Reading…`}):t.length===0?(0,l.jsxs)(`p`,{className:`text-meta`,children:[`No knowledge yet. `,e===`society`?`The steward and you`:`Members`,` write it with write_knowledge.`]}):(0,l.jsx)(`ul`,{className:`-mx-2`,children:t.toSorted((e,t)=>t.updatedAt.localeCompare(e.updatedAt)).map(t=>(0,l.jsx)(`li`,{children:(0,l.jsxs)(a,{to:`/knowledge/$scope/$topic`,params:{scope:e,topic:t.topic},className:`block rounded-lg px-2 py-1.5 transition-colors hover:bg-surface-2/50`,children:[(0,l.jsxs)(`span`,{className:`flex items-baseline gap-2`,children:[(0,l.jsx)(`span`,{className:`text-sm text-fg-primary`,children:t.topic}),(0,l.jsxs)(`span`,{className:`text-meta`,children:[`by `,t.updatedBy,` `,i(t.updatedAt,n)]})]}),(0,l.jsx)(`span`,{className:`mt-0.5 line-clamp-2 block text-sm leading-relaxed text-fg-secondary`,children:(0,l.jsx)(s,{text:r(t.body,240),links:!1})})]})},t.topic))})}export{u as n,f as r,d as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{D as e,P as t,b as n,c as r,dn as i,fn as a,g as o,gn as s,l as c,m as l,pn as u,t as d,y as f}from"./format-EfoceZkm.js";import{i as p,t as m}from"./tasks-Duke4U7N.js";import{H as h,R as g,V as _,c as v}from"./index-D75IxLme.js";import{n as y,r as b}from"./ThreadForms-DUGkAwTp.js";import{n as x,r as S}from"./ChannelForms-jNbbNnIC.js";import{t as C}from"./Markdown-J2pAPfCa.js";import{n as w,t as T}from"./Pane-caYWCiyo.js";import{n as E,r as D,t as O}from"./Overview-BBXvRhfR.js";var k=s(u(),1),A=a();function j({project:t,onDone:n}){let{api:r}=e(),a=i(),[o,s]=(0,k.useState)(t.name),[c,l]=(0,k.useState)(t.defaultBranch),u={...o.trim()===t.name?{}:{name:o.trim()},...c.trim()===t.defaultBranch?{}:{default_branch:c.trim()}},d=h({mutationFn:()=>r.configureProject(t.slug,u),onSuccess:async()=>{await a.invalidateQueries({queryKey:[`projects`]}),n()}}),f=Object.keys(u).length===0||o.trim()===``||c.trim()===``;return(0,A.jsxs)(`form`,{"aria-label":`Edit ${t.slug}`,className:`space-y-2 border-b border-line bg-surface-2/20 p-3`,onSubmit:e=>{e.preventDefault(),d.mutate()},children:[(0,A.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,A.jsx)(`input`,{value:o,maxLength:120,"aria-label":`Project name`,onChange:e=>s(e.target.value),className:`${y} min-w-0 flex-1`}),(0,A.jsx)(`div`,{className:`w-36 shrink-0`,children:(0,A.jsx)(`input`,{value:c,maxLength:100,spellCheck:!1,"aria-label":`Default branch`,onChange:e=>l(e.target.value),className:`${y} font-mono`})}),(0,A.jsx)(v,{onClick:n,children:`Cancel`}),(0,A.jsx)(v,{variant:`primary`,type:`submit`,disabled:d.isPending||f,children:d.isPending?`Saving…`:`Save`})]}),(0,A.jsxs)(`p`,{className:`text-meta`,children:[t.slug,` stays in its addresses, channels, and branches. A new default branch is where tasks start and land from now; its runner makes it from the project's remote, or from where the repository stands, before the next turn.`]}),(0,A.jsx)(b,{error:d.error})]})}function M(){let{slug:e}=_({from:`/p/$slug`}),i=n(),a=r(),s=o(),u=t(e),h=c(e),y=l(e),b=f(3e4),[M,N]=(0,k.useState)(!1),[P,F]=(0,k.useState)(!1),I=i.data?.find(t=>t.slug===e);if(I===void 0)return(0,A.jsx)(w,{children:i.data===void 0?`Reading the project…`:`There is no project ${e}.`});let L=(s.data??[]).filter(e=>e.status===`active`&&I.members.includes(e.name)),R=p(u.data??[]),z=h.data?.body.trim()??``;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(T,{title:I.name,subtitle:`${e} · ${I.repo??`a local repository`} · ${I.defaultBranch}`,trailing:(0,A.jsxs)(A.Fragment,{children:[M||I.archived!==void 0?null:(0,A.jsx)(v,{onClick:()=>N(!0),children:`Edit…`}),(0,A.jsx)(g,{to:`/p/$slug/tasks`,params:{slug:e},className:`shrink-0 rounded-md px-2 py-1 text-xs text-fg-tertiary hover:bg-surface-2/70 hover:text-fg-primary`,children:`Tasks →`})]})}),M?(0,A.jsx)(j,{project:I,onDone:()=>N(!1)}):null,P?(0,A.jsx)(S,{project:e,onDone:()=>F(!1)}):null,(0,A.jsxs)(`div`,{className:`flex-1 space-y-5 overflow-y-auto px-4 py-4`,children:[I.archived===void 0?null:(0,A.jsxs)(`p`,{className:`rounded-lg bg-surface-2/40 px-3 py-2 text-sm text-fg-secondary`,children:[`Archived `,d(I.archived.at,b),` by `,I.archived.by,`:`,` `,I.archived.reason,`. Its channels, tasks, and history stay readable here; nothing more is posted, filed, or joined.`]}),(0,A.jsx)(E,{title:`Channels`,aside:I.archived===void 0&&!P?(0,A.jsx)(v,{onClick:()=>F(!0),children:`New channel…`}):null,children:(0,A.jsx)(x,{channels:(a.data??[]).filter(t=>t.project===e),now:b})}),(0,A.jsx)(E,{title:`Members`,children:(0,A.jsx)(O,{members:L,scope:e})}),(0,A.jsx)(E,{title:`Tasks`,children:u.data===void 0?(0,A.jsx)(`p`,{className:`text-meta`,children:`Reading…`}):R.length===0?(0,A.jsx)(`p`,{className:`text-meta`,children:`No tasks yet.`}):(0,A.jsx)(g,{to:`/p/$slug/tasks`,params:{slug:e},className:`flex flex-wrap gap-1.5`,children:R.map(e=>(0,A.jsxs)(`span`,{className:`rounded-md bg-surface-2/60 px-2 py-0.5 text-xs text-fg-secondary`,children:[e.tasks.length,` `,m.find(t=>t.phase===e.phase)?.label.toLowerCase()]},e.phase))})}),(0,A.jsx)(E,{title:`How a task ends`,children:(0,A.jsx)(`p`,{className:`text-sm text-fg-secondary`,children:I.onDone===`merge`?`When its last stage is done, the board merges task/<id> onto ${I.defaultBranch}.`:`When its last stage is done, it is done; nothing is merged.`})}),(0,A.jsx)(E,{title:`Dashboard`,children:h.data===void 0?(0,A.jsx)(`p`,{className:`text-meta`,children:`Reading…`}):z===``?(0,A.jsx)(`p`,{className:`text-meta`,children:`Empty. Agents on the server's machine may edit it.`}):(0,A.jsx)(C,{text:z})}),(0,A.jsx)(E,{title:`Knowledge`,children:(0,A.jsx)(D,{scope:e,topics:y.data,now:b})})]})]})}export{M as ProjectView};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ct as e,D as t,F as n,P as r,R as i,St as a,Tt as o,b as s,dn as c,fn as l,g as u,gn as d,it as f,k as p,lt as m,nt as h,ot as g,pn as _,rt as v,st as y,t as b,w as x,x as S,xt as C,y as w,yt as T}from"./format-EfoceZkm.js";import{a as ee}from"./tasks-Duke4U7N.js";import{F as te,H as ne,M as re,N as E,O as D,P as O,R as k,T as A,V as j,c as M,d as N,i as P,j as F,k as I,u as L}from"./index-D75IxLme.js";import{n as R,r as z}from"./ThreadForms-DUGkAwTp.js";import{t as B}from"./Markdown-J2pAPfCa.js";import{n as V,t as ie}from"./Pane-caYWCiyo.js";import{t as H}from"./BackLink-C-vad6K2.js";import{StatusChip as U}from"./ProposalsView-Dg_bEryX.js";import{t as W}from"./SubjectThread-D_L3vB-A.js";var G=d(_(),1),K=l();function q({proposal:e,consequence:n}){let{api:r}=t(),i=c(),a=u(),[o,s]=(0,G.useState)(null),[l,d]=(0,G.useState)(``),f=(0,G.useRef)(null);(0,G.useEffect)(()=>{o!==null&&f.current?.focus()},[o]);let p=ne({mutationFn:()=>{let t=l.trim();return o===`reject`?r.reject({proposal_id:e.id,reason:t}):r.approve({proposal_id:e.id,...t===``?{}:{reason:t}})},onSuccess:()=>{let t=[[`proposals`],[`proposal`,e.id],[`threads`],[`thread`,e.id]];for(let e of t)i.invalidateQueries({queryKey:e});s(null),d(``)}}),m=(a.data??[]).find(t=>t.name===e.proposedBy&&t.status===`active`&&t.cli!==null),h=m===void 0?`Your decision is posted in the proposal's thread, which closes.`:`Your decision is posted in the proposal's thread, which closes, and wakes ${m.name}, who proposed it.`;if(o===null)return(0,K.jsxs)(`div`,{className:`flex items-center gap-2 border-t border-line px-4 py-3`,children:[(0,K.jsx)(`p`,{className:`min-w-0 flex-1 truncate text-meta`,children:`This proposal waits on you.`}),(0,K.jsx)(M,{onClick:()=>s(`reject`),children:`Reject`}),(0,K.jsx)(M,{variant:`primary`,onClick:()=>s(`approve`),children:`Approve`})]});let g=o===`approve`;return(0,K.jsxs)(`form`,{"aria-label":g?`Approve the proposal`:`Reject the proposal`,className:`space-y-2 border-t border-line bg-surface-2/20 p-3`,onSubmit:e=>{e.preventDefault(),p.mutate()},children:[(0,K.jsx)(`textarea`,{ref:f,value:l,rows:2,placeholder:g?`Why approve? Optional.`:`Why not? It is posted with the decision.`,"aria-label":g?`Reason for approving`:`Reason for rejecting`,onChange:e=>d(e.target.value),className:`${R} resize-none`}),(0,K.jsxs)(`p`,{className:`text-[11px] leading-relaxed text-fg-muted`,children:[g?n:`Nothing is created, and the proposal's thread closes.`,` `,h]}),(0,K.jsxs)(`div`,{className:`flex items-center justify-end gap-2`,children:[(0,K.jsx)(M,{onClick:()=>{s(null),p.reset()},children:`Cancel`}),(0,K.jsx)(M,{variant:`primary`,type:`submit`,disabled:p.isPending||!g&&l.trim()===``,children:p.isPending?`Deciding…`:g?`Confirm approval`:`Confirm rejection`})]}),(0,K.jsx)(z,{error:p.error})]})}function J({children:e}){return(0,K.jsx)(`dl`,{className:`mt-2 space-y-1.5`,children:e})}function Y({label:e,children:t}){return(0,K.jsxs)(`div`,{className:`grid grid-cols-[9rem_1fr] gap-3 text-sm`,children:[(0,K.jsx)(`dt`,{className:`text-meta`,children:e}),(0,K.jsx)(`dd`,{className:`min-w-0 break-words text-fg-secondary`,children:t})]})}function X(e){return e.length===0?`none`:e.join(`, `)}function Z({name:e,change:t}){return(0,K.jsxs)(`span`,{className:`inline-block rounded-md px-1.5 py-px font-mono text-[11px] ${t===`added`?`bg-emerald-500/15 text-emerald-300`:t===`removed`?`bg-red-500/15 text-red-300 line-through`:`bg-surface-2/70 text-fg-tertiary`}`,children:[t===`added`?`+ `:t===`removed`?`− `:``,e]})}function Q({children:e}){return(0,K.jsx)(`div`,{className:`mt-2 rounded-xl bg-surface-2/30 px-3.5 py-3 shadow-[inset_0_0_0_1px_rgba(255,255,255,0.06)]`,children:e})}function ae({next:e,current:t,compare:n}){let r=t===void 0?null:E(t,e),i=r!==null&&r.verbsAdded.length===0&&r.verbsRemoved.length===0&&r.changes.length===0&&!r.purposeChanged;return(0,K.jsxs)(K.Fragment,{children:[n?r===null?(0,K.jsx)(`p`,{className:`mt-2 text-meta`,children:`A new role: no charter by this name exists yet.`}):i?(0,K.jsx)(`p`,{className:`mt-2 text-meta`,children:`The same as the charter the role has now.`}):(0,K.jsxs)(Q,{children:[(0,K.jsx)(`p`,{className:`text-caps`,children:`Against the charter it has now`}),r.verbsAdded.length+r.verbsRemoved.length===0?null:(0,K.jsxs)(`p`,{className:`mt-2 flex flex-wrap gap-1`,children:[r.verbsAdded.map(e=>(0,K.jsx)(Z,{name:e,change:`added`},e)),r.verbsRemoved.map(e=>(0,K.jsx)(Z,{name:e,change:`removed`},e))]}),r.changes.length===0?null:(0,K.jsx)(J,{children:r.changes.map(e=>(0,K.jsxs)(Y,{label:e.field,children:[e.from,` → `,(0,K.jsx)(`span`,{className:`text-fg-primary`,children:e.to})]},e.field))}),r.purposeChanged?(0,K.jsx)(`p`,{className:`mt-2 text-xs text-fg-secondary`,children:`The purpose is rewritten.`}):null]}):null,(0,K.jsxs)(J,{children:[(0,K.jsx)(Y,{label:`Role`,children:e.name}),(0,K.jsx)(Y,{label:`Purpose`,children:e.purpose}),(0,K.jsx)(Y,{label:`Verbs`,children:(0,K.jsx)(`span`,{className:`flex flex-wrap gap-1`,children:e.verbs.map(e=>(0,K.jsx)(Z,{name:e},e))})}),(0,K.jsx)(Y,{label:`Wake triggers`,children:X(e.wakeTriggers)}),(0,K.jsx)(Y,{label:`Replicas per project`,children:e.maxReplicas}),(0,K.jsx)(Y,{label:`Warm session`,children:e.resident?`yes`:`no`}),(0,K.jsx)(Y,{label:`Society role`,children:e.societyScope?`yes, in no project`:`no`}),(0,K.jsx)(Y,{label:`Reflects`,children:e.reflects?`yes`:`no`})]})]})}function oe({proposal:e,slug:t,reason:n,members:i}){let a=s(),o=r(t),c=a.data?.find(e=>e.slug===t),l=e.status===`proposed`,u=l?(i??[]).filter(e=>e.status===`active`&&e.memberships.includes(t)).map(e=>e.name):e.provision?.members??[],d=(o.data??[]).filter(ee).length;return(0,K.jsxs)(J,{children:[(0,K.jsxs)(Y,{label:`Project`,children:[(0,K.jsx)(k,{to:`/p/$slug`,params:{slug:t},className:`hover:text-fg-primary`,children:c?.name??t}),c?.name===void 0||c.name===t?null:` · ${t}`]}),(0,K.jsx)(Y,{label:l?`Members who leave`:`Members who left`,children:Array.isArray(u)?X(u.filter(e=>typeof e==`string`)):`none`}),l?(0,K.jsx)(Y,{label:`Tasks in play`,children:o.data===void 0?`reading…`:d===0?`none`:`${d}: approval is refused until they are done, abandoned, or filed elsewhere`}):null,(0,K.jsx)(Y,{label:`Reason`,children:n}),(0,K.jsx)(Y,{label:`After`,children:`Its open threads close and nothing more is posted, filed, or joined there; its channels, tasks, repository, and history stay readable.`})]})}function se({proposal:e,roles:t,members:n}){let r=e.status===`proposed`,{charter:i}=e;switch(e.kind){case`member`:{let e=f.safeParse(i);if(!e.success)break;let t=e.data;return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(J,{children:[(0,K.jsx)(Y,{label:`Citizen`,children:(0,K.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,K.jsx)(A,{cli:t.cli,size:13}),t.name]})}),(0,K.jsx)(Y,{label:`Role`,children:t.role}),(0,K.jsxs)(Y,{label:`CLI and model`,children:[t.cli,` · `,t.model??`cli default`]}),(0,K.jsx)(Y,{label:`Projects`,children:X(t.memberships)}),(0,K.jsx)(Y,{label:`Also follows`,children:X(t.subscriptions)}),t.homeRunner===void 0?null:(0,K.jsx)(Y,{label:`Runs on`,children:t.homeRunner})]}),t.seedInstructions===void 0?null:(0,K.jsxs)(Q,{children:[(0,K.jsx)(`p`,{className:`text-caps`,children:`Seed instructions`}),(0,K.jsx)(`div`,{className:`mt-1.5`,children:(0,K.jsx)(B,{text:t.seedInstructions})})]})]})}case`role`:{let n=re(e);if(n===null)break;return(0,K.jsx)(ae,{next:n,current:t?.find(e=>e.name===n.name),compare:r})}case`skill`:{let e=m.safeParse(i);if(!e.success)break;return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(J,{children:[(0,K.jsx)(Y,{label:`Skill`,children:e.data.name}),(0,K.jsx)(Y,{label:`Summary`,children:e.data.summary})]}),(0,K.jsx)(Q,{children:(0,K.jsx)(B,{text:O(e.data.body)})})]})}case`channel`:{let e=v.safeParse(i);if(!e.success)break;return(0,K.jsxs)(J,{children:[(0,K.jsxs)(Y,{label:`Channel`,children:[`#`,T(e.data.project,e.data.name)]}),(0,K.jsx)(Y,{label:`Purpose`,children:e.data.purpose})]})}case`retirement`:{let e=y.safeParse(i);if(!e.success)break;let t=n?.find(t=>t.name===e.data.agent);return(0,K.jsxs)(J,{children:[(0,K.jsxs)(Y,{label:`Citizen`,children:[(0,K.jsx)(L,{name:e.data.agent,members:n}),t===void 0?null:` · ${t.role}`]}),(0,K.jsx)(Y,{label:`Holds now`,children:t===void 0?`unknown`:t.claimsHeld===1?`1 stage`:`${t.claimsHeld} stages`}),(0,K.jsx)(Y,{label:`Reason`,children:e.data.reason})]})}case`archive`:{let t=h.safeParse(i);if(!t.success)break;return(0,K.jsx)(oe,{proposal:e,slug:t.data.project,reason:t.data.reason,members:n})}case`reallocation`:{let e=g.safeParse(i);if(!e.success)break;return(0,K.jsx)(J,{children:(0,K.jsx)(Y,{label:`Reallocation`,children:e.data.description})})}}return(0,K.jsx)(`pre`,{className:`mt-2 overflow-x-auto rounded-lg bg-surface-2/40 p-3 font-mono text-[11px] text-fg-tertiary`,children:JSON.stringify(i,null,2)})}var ce=e({agent:o().optional(),channel:o().optional(),role:o().optional(),skill:o().optional(),replaced:a().optional(),releasedTasks:C(o()).optional(),project:o().optional()});function le({proposal:e}){let t=ce.safeParse(e.provision??{});if(e.provision===void 0||!t.success)return null;let n=t.data,r=`text-fg-primary underline decoration-fg-muted underline-offset-2`;if(e.kind===`member`&&n.agent!==void 0)return(0,K.jsxs)(`p`,{className:`mt-1`,children:[`Created`,` `,(0,K.jsx)(k,{to:`/citizen/$name`,params:{name:n.agent},className:r,children:n.agent}),`.`]});if(e.kind===`channel`&&n.channel!==void 0)return(0,K.jsxs)(`p`,{className:`mt-1`,children:[`Created`,` `,(0,K.jsxs)(k,{to:`/c/$`,params:{_splat:n.channel},className:r,children:[`#`,n.channel]}),`.`]});if(e.kind===`retirement`&&n.agent!==void 0){let e=n.releasedTasks?.length??0;return(0,K.jsxs)(`p`,{className:`mt-1`,children:[`Retired `,n.agent,`; `,e===1?`1 stage went`:`${e} stages went`,` back to open.`]})}return e.kind===`archive`&&n.project!==void 0?(0,K.jsxs)(`p`,{className:`mt-1`,children:[`Archived`,` `,(0,K.jsx)(k,{to:`/p/$slug`,params:{slug:n.project},className:r,children:n.project}),`; its members left and its threads closed.`]}):n.role===void 0?n.skill===void 0?null:(0,K.jsxs)(`p`,{className:`mt-1`,children:[n.replaced===!0?`Replaced`:`Published`,` the society's skill `,n.skill,`.`]}):(0,K.jsxs)(`p`,{className:`mt-1`,children:[n.replaced===!0?`Rewrote`:`Added`,` the role `,n.role,`.`]})}function $(){let{proposalId:e}=j({from:`/proposal/$proposalId`}),t=S(e),r=u(),a=x(),o=p(),s=n(),c=w(3e4),l=N();if(t.data===void 0)return(0,K.jsx)(V,{children:t.error instanceof i&&t.error.status===404?`There is no proposal ${e}.`:`Reading the proposal…`});let d=t.data,f=d.status===`proposed`,m=r.data?.find(e=>e.name===d.proposedBy)?.role,h=s.data?.find(e=>e.id===d.id),g=d.status===`rejected`?`Rejected`:`Approved`,_=D(d,{members:r.data??[],roles:a.data??[],skills:o.data??[]});return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(ie,{leading:(0,K.jsx)(H,{fallback:(0,K.jsx)(k,{to:`/proposals`,"aria-label":`Back to the proposals`,className:`grid size-7 shrink-0 place-items-center rounded-lg text-fg-tertiary hover:bg-surface-2/70 hover:text-fg-primary`,children:`←`})}),title:F(d),subtitle:`${d.kind} proposal by ${l(d.proposedBy)} ${b(d.createdAt,c)}${f?` · for ${I(d,m)} to decide`:``}`,trailing:(0,K.jsx)(U,{status:d.status})}),(0,K.jsxs)(`div`,{className:`flex-1 overflow-y-auto px-4 py-4`,children:[f?(0,K.jsxs)(`p`,{className:`rounded-lg bg-sky-400/10 px-3 py-2 text-xs leading-relaxed text-sky-200`,children:[`If approved: `,_]}):(0,K.jsxs)(`div`,{className:`rounded-lg bg-surface-2/40 px-3 py-2 text-xs leading-relaxed text-fg-secondary`,children:[(0,K.jsxs)(`p`,{children:[g,` by `,l(d.decidedBy??`someone`),d.decidedAt===void 0?``:` ${b(d.decidedAt,c)}`,d.reason===void 0?`.`:`: ${d.reason}`]}),(0,K.jsx)(le,{proposal:d})]}),d.body.trim()===``||h!==void 0?null:(0,K.jsxs)(`section`,{className:`mt-5`,children:[(0,K.jsx)(`h3`,{className:`text-section`,children:`Why`}),(0,K.jsx)(`div`,{className:`mt-2`,children:(0,K.jsx)(B,{text:d.body})})]}),(0,K.jsxs)(`section`,{className:`mt-5 border-t border-line pt-4`,children:[(0,K.jsx)(`h3`,{className:`text-section`,children:f?`What it would make`:d.status===`provisioned`?`What it made`:`What it proposed`}),(0,K.jsx)(se,{proposal:d,roles:a.data,members:r.data})]}),(0,K.jsxs)(`section`,{"aria-label":`Thread`,className:`mt-5 border-t border-line pt-4`,children:[(0,K.jsx)(`h3`,{className:`text-section`,children:`Thread`}),h===void 0?(0,K.jsx)(`p`,{className:`mt-2 text-meta`,children:s.data===void 0?`Reading the thread…`:`This proposal is older than proposal threads; its thread opens when it is decided.`}):(0,K.jsx)(W,{thread:h,now:c,empty:`Nothing said yet. The pitch and the decision are posted here.`})]})]}),h?.state===`open`?(0,K.jsx)(P,{target:{threadId:d.id},placeholder:`Write in the proposal's thread`}):null,te(d)?(0,K.jsx)(q,{proposal:d,consequence:_}):null]})}export{$ as ProposalView};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{S as e,fn as t,gn as n,pn as r,t as i,y as a}from"./format-EfoceZkm.js";import{A as o,D as s,R as c,d as l,j as u}from"./index-D75IxLme.js";import{n as d,t as f}from"./Pane-caYWCiyo.js";var p=n(r(),1),m=t(),h=8,g={proposed:`bg-amber-500/15 text-amber-300`,approved:`bg-emerald-500/15 text-emerald-300`,provisioned:`bg-emerald-500/15 text-emerald-300`,rejected:`bg-red-500/15 text-red-300`,retired:`bg-surface-2 text-fg-muted`};function _({status:e}){return(0,m.jsx)(`span`,{className:`shrink-0 rounded-full px-2 py-0.5 text-[11px] font-medium ${g[e]}`,children:e===`provisioned`?`approved`:e})}function v({proposal:e,now:t}){let n=l(),r=e.decidedBy===void 0||e.decidedAt===void 0?``:` · ${e.status===`rejected`?`rejected`:`approved`} by ${n(e.decidedBy)} ${i(e.decidedAt,t)}`;return(0,m.jsx)(`li`,{children:(0,m.jsxs)(c,{to:`/proposal/$proposalId`,params:{proposalId:e.id},className:`block rounded-xl px-3 py-2.5 transition-colors hover:bg-surface-2/50`,children:[(0,m.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(`span`,{className:`text-title min-w-0 flex-1 truncate`,children:u(e)}),(0,m.jsx)(_,{status:e.status})]}),(0,m.jsxs)(`p`,{className:`mt-1 truncate text-meta`,children:[`proposed by `,n(e.proposedBy),` `,i(e.createdAt,t),r]})]})})}function y(){let t=e(),n=a(3e4),[r,i]=(0,p.useState)(!1),c=o(t.data??[]),l=c.find(e=>e.group===`yours`)?.proposals.length??0;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(f,{title:`Proposals`,subtitle:`${l===0?`nothing`:l} waiting on you · ${t.data?.length??0} in all`}),(0,m.jsx)(`div`,{className:`flex-1 overflow-y-auto px-2 py-2`,children:t.data===void 0?(0,m.jsx)(d,{children:`Reading the proposals…`}):c.length===0?(0,m.jsx)(d,{children:`No proposals yet. Citizens propose roles, members, channels, and skills.`}):c.map(e=>{let t=e.group===`decided`&&!r?e.proposals.slice(0,h):e.proposals;return(0,m.jsxs)(`section`,{className:`mb-3`,children:[(0,m.jsxs)(`h3`,{className:`px-3 pt-2 pb-1 text-[11px] font-semibold tracking-wider text-fg-muted uppercase`,children:[s.find(t=>t.group===e.group)?.label,` ·`,` `,e.proposals.length]}),(0,m.jsx)(`ul`,{children:t.map(e=>(0,m.jsx)(v,{proposal:e,now:n},e.id))}),t.length<e.proposals.length?(0,m.jsxs)(`button`,{type:`button`,onClick:()=>i(!0),className:`px-3 pt-1 text-xs text-fg-tertiary hover:text-fg-primary`,children:[`Show all `,e.proposals.length]}):null]},e.group)})})]})}export{y as ProposalsView,_ as StatusChip};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{D as e,T as t,b as n,dn as r,fn as i,gn as a,pn as o,t as s,u as c,y as l}from"./format-EfoceZkm.js";import{B as u,H as d,T as f,c as p}from"./index-D75IxLme.js";import{n as m,r as h}from"./ThreadForms-DUGkAwTp.js";import{n as g,t as _}from"./Pane-caYWCiyo.js";var v=a(o(),1);function y(e){return e.toUpperCase().replaceAll(/[^A-Z0-9]/g,``)}function b(e,t){return y(e)===y(t)}function x(e,t){let n=(e.split(`.`)[0]??``).toLowerCase().replaceAll(/[^a-z0-9-]+/g,`-`).replaceAll(/-+/g,`-`).replace(/^-+/,``).slice(0,32).replace(/-+$/,``)||`runner`;if(!t.includes(n))return n;for(let e=2;;e+=1){let r=`-${e}`,i=`${n.slice(0,32-r.length)}${r}`;if(!t.includes(i))return i}}var S=i();function C(e,t){return Number(e.status!==`connected`)-Number(t.status!==`connected`)||e.name.localeCompare(t.name)}function w(e,t){return[e.length===0?`no CLI`:e.join(`, `),...t].join(` · `)}function T({enrollment:t,taken:n,followed:i,now:a}){let{api:o}=e(),c=r(),[l,u]=(0,v.useState)(()=>x(t.hostname,n)),f=()=>{c.invalidateQueries({queryKey:[`enrollments`]}),c.invalidateQueries({queryKey:[`runners`]})},g=d({mutationFn:()=>o.approveEnrollment(t.userCode,l.trim()),onSuccess:f}),_=d({mutationFn:()=>o.denyEnrollment(t.userCode),onSuccess:f}),y=g.isPending||_.isPending;return(0,S.jsxs)(`li`,{className:`rounded-xl border px-3 py-3 ${i?`border-amber-500/40 bg-amber-500/5`:`border-line`}`,children:[(0,S.jsxs)(`div`,{className:`flex items-baseline gap-2`,children:[(0,S.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-fg-primary`,children:t.hostname}),(0,S.jsx)(`code`,{className:`shrink-0 font-mono text-sm text-fg-primary`,children:t.userCode})]}),(0,S.jsxs)(`p`,{className:`mt-0.5 truncate text-meta`,children:[t.os,` · `,w(t.clis,t.capabilities),` · runner`,` `,t.version,` · asked `,s(t.requestedAt,a)]}),(0,S.jsxs)(`form`,{"aria-label":`Approve ${t.hostname}`,className:`mt-2.5 flex items-center gap-2`,onSubmit:e=>{e.preventDefault(),g.mutate()},children:[(0,S.jsx)(`input`,{value:l,maxLength:32,spellCheck:!1,"aria-label":`Runner name`,onChange:e=>u(e.target.value),className:`${m} min-w-0 flex-1 font-mono`}),(0,S.jsx)(p,{onClick:()=>_.mutate(),disabled:y,children:`Deny`}),(0,S.jsx)(p,{variant:`primary`,type:`submit`,disabled:y||l.trim()===``,children:g.isPending?`Approving…`:`Approve`})]}),(0,S.jsx)(`div`,{className:`mt-1.5`,children:(0,S.jsx)(h,{error:g.error??_.error})})]})}function E(){let{code:e}=u({from:`/runners`}),r=c(),i=t(),a=n(),o=l(3e4),d=r.data??[],p=(i.data??[]).map(e=>e.name),m=(i.data??[]).toSorted(C),h=m.filter(e=>e.status===`connected`).length,v=m.length-h,y=e===void 0?void 0:d.find(t=>b(t.userCode,e)),x=y===void 0?d:[y,...d.filter(e=>e!==y)],w=e=>(a.data??[]).filter(t=>t.runner===e.name&&t.archived===void 0).map(e=>e.slug);return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(_,{title:`Runners`,subtitle:[`${h} connected`,...v===0?[]:[`${v} away`],...d.length===0?[]:[`${d.length} waiting for approval`]].join(` · `)}),(0,S.jsxs)(`div`,{className:`flex-1 overflow-y-auto px-2 py-2`,children:[e!==void 0&&r.data!==void 0&&y===void 0?(0,S.jsxs)(`output`,{className:`block px-2 pb-2 text-meta`,children:[`No runner waits with the code `,e,`. It may have been approved, denied, or expired; a runner whose code expired asks again with a new one.`]}):null,x.length===0?null:(0,S.jsx)(`ul`,{"aria-label":`Waiting for approval`,className:`space-y-2 px-2 pb-3`,children:x.map(e=>(0,S.jsx)(T,{enrollment:e,taken:p,followed:e===y,now:o},e.userCode))}),i.data===void 0?(0,S.jsx)(g,{children:`Reading the runners…`}):m.length===0?(0,S.jsx)(`p`,{className:`px-2 py-2 text-meta`,children:`No runners yet.`}):null,(0,S.jsx)(`ul`,{"aria-label":`Registered`,className:`grid grid-cols-[auto_auto_auto_minmax(0,max-content)_minmax(3rem,1fr)_auto] gap-x-3`,children:m.map(e=>{let t=e.clis.length===0?`no CLI`:e.clis.join(`, `),n=w(e),r=n.length===0?`no projects`:n.join(`, `),i=e.status===`connected`?{label:`connected`,detail:`connected`,tone:`text-fg-muted`}:{label:`away`,detail:`away${e.lastSeen===void 0?``:`, last seen ${s(e.lastSeen,o)}`}`,tone:`text-amber-300`};return(0,S.jsxs)(`li`,{className:`col-span-full grid grid-cols-subgrid items-center rounded-lg px-2 py-1.5 text-sm`,children:[(0,S.jsxs)(`span`,{className:`flex items-center gap-1`,title:t,children:[e.clis.map(e=>(0,S.jsx)(f,{cli:e,size:13},e)),(0,S.jsx)(`span`,{className:`sr-only`,children:t})]}),(0,S.jsx)(`span`,{className:`text-fg-primary`,children:e.name}),(0,S.jsx)(`span`,{className:`text-fg-secondary`,children:e.os}),(0,S.jsx)(`span`,{className:`truncate text-xs text-fg-muted`,title:e.capabilities.join(`, `),children:e.capabilities.join(`, `)}),(0,S.jsx)(`span`,{className:`truncate text-xs text-fg-muted`,title:r,children:r}),(0,S.jsx)(`span`,{className:`text-right text-xs ${i.tone}`,title:i.detail,children:i.label})]},e.name)})}),r.data===void 0||d.length>0?null:(0,S.jsx)(`p`,{className:`mt-2 border-t border-line px-2 pt-2 text-meta`,children:`A runner started with STELLARIS_SERVER_URL set to this board and no token asks to join here, with a code to approve.`})]})]})}export{E as RunnersView};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as e,b as t,c as n,ct as r,fn as i,g as a,gn as o,k as s,m as c,pn as l,vt as u,w as d,y as f}from"./format-EfoceZkm.js";import{c as p}from"./index-D75IxLme.js";import{n as m,r as h}from"./ChannelForms-jNbbNnIC.js";import{n as g,t as _}from"./Pane-caYWCiyo.js";import{n as v,r as y,t as b}from"./Overview-BBXvRhfR.js";var x=o(l(),1),S=i();function C(){let i=e(),o=a(),l=t(),C=d(),w=s(),T=c(r),E=n(),D=f(3e4),[O,k]=(0,x.useState)(!1);if(i.data===void 0||o.data===void 0)return(0,S.jsx)(g,{children:`Reading the society…`});let A=o.data.filter(e=>e.cli!==null),j=A.filter(e=>e.status===`active`),M=A.filter(e=>e.status===`retired`),N=(C.data??[]).filter(e=>e.name!==u);return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(_,{title:i.data.name,subtitle:`${j.length} citizens · ${l.data?.length??0} projects · ${N.length} roles`}),O?(0,S.jsx)(h,{project:null,onDone:()=>k(!1)}):null,(0,S.jsxs)(`div`,{className:`flex-1 space-y-5 overflow-y-auto px-4 py-4`,children:[(0,S.jsxs)(v,{title:`Citizens`,children:[(0,S.jsx)(b,{members:j,scope:r}),M.length===0?null:(0,S.jsxs)(`p`,{className:`mt-2 text-meta`,children:[`Retired: `,M.map(e=>e.name).join(`, `)]})]}),(0,S.jsx)(v,{title:`Channels`,aside:O?null:(0,S.jsx)(p,{onClick:()=>k(!0),children:`New channel…`}),children:(0,S.jsx)(m,{channels:(E.data??[]).filter(e=>e.project===null),now:D})}),(0,S.jsx)(v,{title:`Roles`,children:(0,S.jsx)(`ul`,{className:`space-y-2.5`,children:N.map(e=>{let t=j.filter(t=>t.role===e.name).length;return(0,S.jsxs)(`li`,{children:[(0,S.jsxs)(`p`,{className:`flex items-baseline gap-2 text-sm`,children:[(0,S.jsx)(`span`,{className:`text-fg-primary`,children:e.name}),(0,S.jsxs)(`span`,{className:`text-meta`,children:[t===1?`1 member`:`${t} members`,e.resident?` · warm session`:``,e.societyScope?` · society role`:``]})]}),(0,S.jsx)(`p`,{className:`mt-0.5 line-clamp-2 text-sm leading-relaxed text-fg-secondary`,children:e.purpose})]},e.name)})})}),(0,S.jsx)(v,{title:`Knowledge`,children:(0,S.jsx)(y,{scope:r,topics:T.data,now:D})}),(0,S.jsx)(v,{title:`Skills`,children:w.data===void 0?(0,S.jsx)(`p`,{className:`text-meta`,children:`Reading…`}):w.data.length===0?(0,S.jsx)(`p`,{className:`text-meta`,children:`None yet. A citizen's skill joins the society by proposal.`}):(0,S.jsx)(`ul`,{className:`space-y-1.5`,children:w.data.map(e=>(0,S.jsxs)(`li`,{className:`text-sm`,children:[(0,S.jsx)(`span`,{className:`text-fg-primary`,children:e.name}),e.summary===``?null:(0,S.jsxs)(`span`,{className:`text-fg-secondary`,children:[` · `,e.summary]})]},e.name))})})]})]})}export{C as SocietyView};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{N as e,R as t,Z as n,b as r,fn as i,gn as a,j as o,pn as s,t as c,y as l}from"./format-EfoceZkm.js";import{B as u,R as d,V as f}from"./index-D75IxLme.js";import{c as p,d as m,f as h,i as g,l as _,n as v,o as y,p as b,r as x,t as S}from"./Markdown-J2pAPfCa.js";import{n as C,t as w}from"./Pane-caYWCiyo.js";import{t as T}from"./BackLink-C-vad6K2.js";var E=a(s(),1),D=i(),O=`grid size-7 shrink-0 place-items-center rounded-lg text-fg-tertiary hover:bg-surface-2/70 hover:text-fg-primary`,k=`inline-flex h-7 shrink-0 items-center rounded-md px-3 text-xs text-fg-tertiary transition-colors hover:bg-surface-2/70 hover:text-fg-primary`,A=1e3,j=2e4;function M({taskId:e,path:t}){let n=t===``?[]:t.split(`/`),r=`text-fg-tertiary hover:text-fg-primary`;return(0,D.jsxs)(`nav`,{"aria-label":`Path`,className:`flex flex-wrap items-center gap-x-1 text-meta`,children:[n.length===0?(0,D.jsx)(`span`,{children:`Files`}):(0,D.jsx)(v,{taskId:e,path:``,className:r,children:`Files`}),n.map((t,i)=>(0,D.jsxs)(E.Fragment,{children:[(0,D.jsx)(`span`,{"aria-hidden":`true`,children:`/`}),i===n.length-1?(0,D.jsx)(`span`,{className:`text-fg-secondary`,children:t}):(0,D.jsx)(v,{taskId:e,path:n.slice(0,i+1).join(`/`),className:r,children:t})]},n.slice(0,i+1).join(`/`)))]})}function N({taskId:e,file:t}){let n=t.entries.toSorted((e,t)=>e.kind===t.kind?e.name.localeCompare(t.name):e.kind===`dir`?-1:1);return(0,D.jsx)(`ul`,{className:`mt-3 space-y-1`,children:n.map(n=>(0,D.jsxs)(`li`,{className:`flex items-baseline gap-2`,children:[(0,D.jsx)(v,{taskId:e,path:t.path===``?n.name:`${t.path}/${n.name}`,className:`text-sm text-fg-secondary hover:text-fg-primary`,children:n.kind===`dir`?`${n.name}/`:n.name}),n.size===null?null:(0,D.jsx)(`span`,{className:`text-meta`,children:h(n.size)})]},n.name))})}function P({rows:e}){let[t,...n]=e;if(t===void 0)return(0,D.jsx)(`p`,{className:`mt-3 text-meta`,children:`The table is empty.`});let r=n.slice(0,A),i=`border border-line px-2 py-1 text-left align-top whitespace-pre-wrap`;return(0,D.jsxs)(`div`,{className:`mt-3 overflow-x-auto`,children:[(0,D.jsxs)(`table`,{className:`text-xs text-fg-secondary`,children:[(0,D.jsx)(`thead`,{children:(0,D.jsx)(`tr`,{children:t.map((e,t)=>(0,D.jsx)(`th`,{scope:`col`,className:`${i} font-medium text-fg-primary`,children:e},t))})}),(0,D.jsx)(`tbody`,{children:r.map((e,t)=>(0,D.jsx)(`tr`,{children:e.map((e,t)=>(0,D.jsx)(`td`,{className:i,children:e},t))},t))})]}),n.length>r.length?(0,D.jsxs)(`p`,{className:`mt-2 text-meta`,children:[`The first `,A,` of `,n.length,` rows; download the file for the rest.`]}):null]})}function F({text:e,line:t}){let n=e.endsWith(`
|
|
2
|
-
`)?e.slice(0,-1).split(`
|
|
3
|
-
`):e.split(`
|
|
4
|
-
`),r=`mt-3 overflow-x-auto rounded-lg bg-surface-0/80 p-3 font-mono text-[12px] leading-relaxed text-fg-secondary shadow-[inset_0_0_0_1px_rgba(255,255,255,0.05)]`;return n.length>j?(0,D.jsx)(`pre`,{className:r,children:e}):(0,D.jsx)(`pre`,{className:r,children:n.map((e,n)=>(0,D.jsxs)(`span`,{className:`flex ${n+1===t?`line-target`:``}`,children:[(0,D.jsx)(`span`,{"aria-hidden":`true`,className:`w-10 shrink-0 pr-3 text-right text-fg-muted select-none`,children:n+1}),(0,D.jsx)(`span`,{className:`whitespace-pre`,children:e===``?` `:e})]},n))})}function I({taskId:e,file:t,url:r,line:i}){let a=(0,E.useMemo)(()=>t.content===null?null:b(t.path,g(t.content)),[t.path,t.content]),o=t.path.split(`/`).at(-1)??t.path;return a===null?(0,D.jsxs)(`p`,{className:`mt-3 text-sm text-fg-secondary`,children:[o,` is `,h(t.size),`, more than the `,h(n),` the board shows. Its runner still has it on the task's branch.`]}):a.kind===`markdown`?(0,D.jsx)(`div`,{className:`mt-3`,children:(0,D.jsx)(S,{text:a.text,base:{taskId:e,dir:m(t.path)},line:i})}):a.kind===`image`?r===null?null:(0,D.jsx)(`img`,{src:r,alt:o,className:`mt-3 max-w-full rounded-lg`}):a.kind===`table`?(0,D.jsx)(P,{rows:a.rows}):a.kind===`text`?(0,D.jsx)(F,{text:a.text,line:i}):(0,D.jsxs)(`p`,{className:`mt-3 text-sm text-fg-secondary`,children:[o,` is not text (`,h(t.size),`). Download it to open it.`]})}function L(){let{taskId:n,_splat:i}=f({from:`/task/$taskId/files/$`}),a=u({from:`/task/$taskId/files/$`}),s=y(_(i??``)??``),m=s.path,h=a.line??s.line,g=o(n),v=r(),b=e(n,m),S=l(3e4),A=b.data,j=A?.kind===`file`?A.content:null,P=x(j,p(m)??`application/octet-stream`),F=m===``?`Files`:m.split(`/`).at(-1)??m,L=g.data?.title??n,R=(0,E.useRef)(null);(0,E.useEffect)(()=>{h!==void 0&&A!==void 0&&R.current?.querySelector(`.line-target`)?.scrollIntoView({block:`center`})},[h,A]);let z;if(A!==void 0)z=A.kind===`dir`?(0,D.jsx)(N,{taskId:n,file:A}):(0,D.jsx)(I,{taskId:n,file:A,url:P,line:h});else if(b.error instanceof t&&b.error.status===404)z=(0,D.jsxs)(`p`,{className:`mt-3 text-sm text-fg-secondary`,children:[m===``?`Nothing`:m,` is not on task/`,n,` yet. What a turn writes reaches the branch when the turn ends.`]});else if(b.error instanceof t&&b.error.status===503){let e=v.data?.find(e=>e.slug===g.data?.project);z=(0,D.jsxs)(`p`,{className:`mt-3 text-sm text-fg-secondary`,children:[e?.runner===void 0?`The runner`:`${e.runner}, the runner`,` `,e?.name??`the project`,` lives on, is not connected, so the task's files cannot be read now.`]})}else z=b.error===null?(0,D.jsxs)(C,{children:[`Reading `,F,` from the task's runner…`]}):(0,D.jsx)(`p`,{className:`mt-3 text-sm text-fg-secondary`,children:b.error.message});return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(w,{leading:(0,D.jsx)(T,{fallback:(0,D.jsx)(d,{to:`/task/$taskId`,params:{taskId:n},"aria-label":`Back to the task ${L}`,className:O,children:`←`})}),title:F,subtitle:A===void 0?L:`${L}${h===void 0?``:` · line ${h}`} · committed by ${A.commit.author} ${c(A.commit.at,S)} · ${A.commit.id.slice(0,7)}`,trailing:P===null?null:(0,D.jsx)(`a`,{href:P,download:F,className:k,children:`Download`})}),(0,D.jsxs)(`div`,{ref:R,className:`flex-1 overflow-y-auto px-4 py-4`,children:[(0,D.jsx)(M,{taskId:n,path:m}),z]})]})}export{L as TaskFileView};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{D as e,F as t,M as n,R as r,b as i,dn as a,fn as o,g as s,gn as c,j as l,pn as u,t as d,y as f}from"./format-EfoceZkm.js";import{a as p,c as m,l as h,n as g,o as _,r as v,s as y,t as b}from"./tasks-Duke4U7N.js";import{H as x,R as S,V as C,c as w,d as T,i as E,u as D,x as O}from"./index-D75IxLme.js";import{a as k,n as A,s as j,t as M,u as N}from"./Markdown-J2pAPfCa.js";import{n as P,t as F}from"./Pane-caYWCiyo.js";import{t as I}from"./BackLink-C-vad6K2.js";import{t as L}from"./SubjectThread-D_L3vB-A.js";var R=c(u(),1),z=o();function B({last:e,now:t}){return e===void 0?null:(0,z.jsxs)(`span`,{className:`ml-auto shrink-0 pl-2 text-meta`,children:[e.author,` `,d(e.at,t)]})}function V({taskId:e,nodes:t,nested:n,isOpen:r,toggle:i,now:a}){return(0,z.jsx)(`ul`,{className:n?`ml-[5px] border-l border-line-strong pl-2`:`mt-2`,children:t.map(t=>{if(t.kind===`dir`){let n=r(t);return(0,z.jsxs)(`li`,{children:[(0,z.jsxs)(`button`,{type:`button`,"aria-expanded":n,onClick:()=>i(t),className:`flex w-full items-baseline gap-2 rounded-md py-0.5 text-left text-sm hover:bg-surface-2/40`,children:[(0,z.jsx)(`span`,{"aria-hidden":`true`,className:`inline-block w-2.5 shrink-0 text-[10px] text-fg-muted transition-transform ${n?`rotate-90`:``}`,children:`▸`}),(0,z.jsxs)(`span`,{className:`min-w-0 truncate text-fg-primary`,children:[t.name,`/`]}),(0,z.jsx)(`span`,{className:`shrink-0 text-meta`,children:t.files===1?`1 file`:`${t.files} files`}),(0,z.jsx)(B,{last:t.lastChange,now:a})]}),n?(0,z.jsx)(V,{taskId:e,nodes:t.children,nested:!0,isOpen:r,toggle:i,now:a}):null]},`dir:${t.path}`)}let{change:n}=t;return(0,z.jsxs)(`li`,{className:`flex items-baseline gap-2 py-0.5 text-sm`,children:[(0,z.jsx)(`span`,{"aria-hidden":`true`,className:`w-2.5 shrink-0`}),n.status===`deleted`?(0,z.jsx)(`span`,{className:`min-w-0 truncate text-fg-tertiary line-through`,title:n.path,children:t.name}):(0,z.jsx)(A,{taskId:e,path:n.path,className:`min-w-0 truncate text-fg-secondary hover:text-fg-primary`,children:t.name}),(0,z.jsx)(`span`,{className:`shrink-0 text-meta`,children:k(n)}),(0,z.jsx)(B,{last:n.lastChange,now:a})]},n.path)})})}function H({taskId:e,changes:t,now:n}){let r=(0,R.useMemo)(()=>j(t),[t]),i=(0,R.useMemo)(()=>N(r),[r]),[a,o]=(0,R.useState)(new Map);return(0,z.jsx)(V,{taskId:e,nodes:r.children,nested:!1,isOpen:e=>a.get(e.path)??i.has(e.path),toggle:e=>{o(t=>new Map(t).set(e.path,!(t.get(e.path)??i.has(e.path))))},now:n})}function U({task:e,now:t}){let a=n(e.id),o=i(),s=`task/${e.id}`,c;if(a.data!==void 0){let{files:n,total:r,head:i}=a.data;c=n.length===0?(0,z.jsxs)(`p`,{className:`mt-2 text-meta`,children:[`Nothing changed on `,s,` yet. What a turn writes reaches the branch when the turn ends.`]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`p`,{className:`mt-2 text-meta`,children:[r===1?`1 file`:`${r} files`,` changed · newest commit by `,i.author,` `,d(i.at,t)]}),(0,z.jsx)(H,{taskId:e.id,changes:n,now:t}),r>n.length?(0,z.jsxs)(`p`,{className:`mt-2 text-meta`,children:[`The first `,n.length,` of `,r,`; browse the branch for the rest.`]}):null]})}else if(a.error instanceof r&&a.error.status===404)c=(0,z.jsxs)(`p`,{className:`mt-2 text-meta`,children:[`Nothing on `,s,` yet. What a turn writes reaches the branch when the turn ends.`]});else if(a.error instanceof r&&a.error.status===503){let t=o.data?.find(t=>t.slug===e.project);c=(0,z.jsxs)(`p`,{className:`mt-2 text-meta`,children:[t?.runner===void 0?`The runner`:`${t.runner}, the runner`,` `,t?.name??e.project,` lives on, is not connected, so the task's files cannot be listed now.`]})}else c=a.error===null?(0,z.jsx)(`p`,{className:`mt-2 text-meta`,children:`Reading the task's branch…`}):(0,z.jsx)(`p`,{className:`mt-2 text-meta`,children:a.error.message});return(0,z.jsxs)(`section`,{"aria-label":`Files`,className:`mt-5 border-t border-line pt-4`,children:[(0,z.jsxs)(`div`,{className:`flex items-baseline justify-between gap-3`,children:[(0,z.jsx)(`h3`,{className:`text-section`,children:`Files`}),(0,z.jsx)(A,{taskId:e.id,path:``,className:`text-meta underline decoration-line underline-offset-2 hover:text-fg-primary`,children:`Browse the branch`})]}),c]})}function W({stage:e,index:t,task:n,members:r,now:i}){let a=e.completedBy!==void 0,o=_(n,e),s=t===n.stages.length-1,c=o&&n.status===`claimed`?n.claimedBy:void 0,l=e.holders.filter(t=>t!==c&&t!==e.completedBy),u=n.returned?.from===e.id?n.returned:void 0;return(0,z.jsxs)(`li`,{className:`relative flex gap-3 pb-4`,children:[s?null:(0,z.jsx)(`span`,{"aria-hidden":`true`,className:`absolute top-6 bottom-0 left-2.5 w-px bg-line`}),(0,z.jsx)(`span`,{"aria-hidden":`true`,className:`relative z-10 grid size-5 shrink-0 place-items-center rounded-full text-[10px] ${a?`bg-emerald-400/20 text-emerald-300`:o?`bg-fg-primary text-surface-0`:`bg-surface-2 text-fg-muted`}`,children:a?`✓`:t+1}),(0,z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,z.jsxs)(`p`,{className:`text-sm ${o?`font-medium text-fg-primary`:`text-fg-secondary`}`,children:[e.name,e.gate?(0,z.jsx)(`span`,{className:`ml-2 rounded-md bg-sky-400/10 px-1.5 py-px text-[11px] text-sky-300`,children:`gate`}):null]}),(0,z.jsxs)(`p`,{className:`mt-0.5 text-meta`,children:[`for `,v(e),c===void 0?null:(0,z.jsxs)(z.Fragment,{children:[` · held by `,(0,z.jsx)(D,{name:c,members:r})]}),e.completedBy!==void 0&&e.completedAt!==void 0?` · done by ${e.completedBy} ${d(e.completedAt,i)}`:o&&n.status===`open`?` · waiting since ${d(n.stageSince,i)}`:``,l.length>0?` · held before by ${l.join(`, `)}`:``,u===void 0?``:` · sent back by ${u.by} ${d(u.at,i)}`]})]})]})}function G({taskId:t}){let{api:n}=e(),r=a(),i=x({mutationFn:()=>n.openThread({task_id:t}),onSuccess:()=>{r.invalidateQueries({queryKey:[`threads`]})}});return(0,z.jsxs)(`div`,{className:`mt-2 flex items-center gap-3`,children:[(0,z.jsx)(w,{variant:`primary`,disabled:i.isPending,onClick:()=>i.mutate(),children:i.isPending?`Opening…`:`Open its thread`}),(0,z.jsx)(`p`,{className:`text-meta`,children:i.error===null?`This task is older than task threads. It closes when the task ends.`:i.error.message})]})}function K(){let{taskId:e}=C({from:`/task/$taskId`}),n=l(e),a=t(),o=i(),c=s(),u=f(3e4),_=T();if(n.data===void 0)return(0,z.jsx)(P,{children:n.error instanceof r&&n.error.status===404?`There is no task ${e}.`:`Reading the task…`});let v=n.data,x=y(v),w=o.data?.find(e=>e.slug===v.project),D=a.data?.find(e=>e.id===v.id);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(F,{leading:(0,z.jsx)(I,{fallback:(0,z.jsx)(S,{to:`/p/$slug/tasks`,params:{slug:v.project},"aria-label":`Back to the tasks of ${w?.name??v.project}`,className:`grid size-7 shrink-0 place-items-center rounded-lg text-fg-tertiary hover:bg-surface-2/70 hover:text-fg-primary`,children:`←`})}),title:v.title,subtitle:`${w?.name??v.project}${v.channel===`general`?``:` #${v.channel}`} · ${m(v)} · created by ${_(v.createdBy)} ${d(v.createdAt,u)}`,trailing:(0,z.jsx)(`span`,{className:`shrink-0 rounded-full px-2 py-0.5 text-[11px] font-medium ${g[x]}`,children:b.find(e=>e.phase===x)?.label.toLowerCase()})}),(0,z.jsxs)(`div`,{className:`flex-1 overflow-y-auto px-4 py-4`,children:[(0,z.jsx)(`h3`,{className:`text-section`,children:`Plan`}),v.returned===void 0?null:(0,z.jsxs)(`p`,{className:`mt-2 rounded-lg bg-orange-500/10 px-3 py-2 text-xs leading-relaxed text-orange-200`,children:[`Sent back from `,h(v,v.returned.from),` by `,v.returned.by,` `,d(v.returned.at,u),`. The work is redone from`,` `,h(v,v.stage),` until it reaches that stage again.`]}),(0,z.jsx)(`ol`,{className:`mt-3`,children:v.stages.map((e,t)=>(0,z.jsx)(W,{stage:e,index:t,task:v,members:c.data,now:u},e.id))}),(0,z.jsxs)(`p`,{className:`text-meta`,children:[`When the last stage is done:`,` `,v.onDone===`merge`?`task/${v.id} merges onto the default branch`:`nothing more`,v.blockedBy.length>0?(0,z.jsxs)(z.Fragment,{children:[` · blocked by `,(0,z.jsx)(O,{text:v.blockedBy.join(`, `)})]}):null]}),v.body.trim()===``?null:(0,z.jsxs)(`section`,{className:`mt-5 border-t border-line pt-4`,children:[(0,z.jsx)(`h3`,{className:`text-section`,children:`Brief`}),(0,z.jsx)(`div`,{className:`mt-2`,children:(0,z.jsx)(M,{text:v.body})})]}),(0,z.jsx)(U,{task:v,now:u}),(0,z.jsxs)(`section`,{"aria-label":`Thread`,className:`mt-5 border-t border-line pt-4`,children:[(0,z.jsx)(`h3`,{className:`text-section`,children:`Thread`}),a.data===void 0?null:D===void 0?p(v)?(0,z.jsx)(G,{taskId:v.id}):(0,z.jsx)(`p`,{className:`mt-2 text-meta`,children:`No thread on this task.`}):(0,z.jsx)(L,{thread:D,now:u,task:v,empty:`Nothing said yet. Each stage's handover lands here, and so does anything written below.`})]})]}),D?.state===`open`?(0,z.jsx)(E,{target:{threadId:v.id},placeholder:`Write in the task's thread`}):null]})}export{K as TaskView};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{P as e,b as t,fn as n,g as r,gn as i,pn as a,t as o,ut as s,y as c}from"./format-EfoceZkm.js";import{c as l,i as u,l as d,o as f,r as p,s as m,t as h}from"./tasks-Duke4U7N.js";import{R as g,V as _,u as v}from"./index-D75IxLme.js";import{n as y,t as b}from"./Pane-caYWCiyo.js";var x=i(a(),1),S=n();function C({task:e}){let t=m(e);return(0,S.jsx)(`ol`,{className:`flex gap-1`,"aria-hidden":`true`,children:e.stages.map((n,r)=>{let i=n.completedBy!==void 0,a=f(e,n),o=i?`bg-emerald-400/60`:a?e.status===`claimed`?`bg-fg-primary/90`:`bg-amber-300/80`:t===`abandoned`?`bg-surface-2/50`:`bg-surface-2`;return(0,S.jsx)(`li`,{title:`${r+1}. ${n.name} · ${p(n)}${n.gate?` · gate`:``}`,className:`h-1.5 min-w-3 flex-1 rounded-full ${o} ${n.gate?`ring-1 ring-sky-300/70 ring-offset-1 ring-offset-surface-1`:``}`},n.id)})})}var w=5;function T({task:e,members:t,now:n}){let r=m(e),i=s(e);return(0,S.jsx)(`li`,{children:(0,S.jsxs)(g,{to:`/task/$taskId`,params:{taskId:e.id},className:`block rounded-xl px-3 py-2.5 transition-colors hover:bg-surface-2/50`,children:[(0,S.jsxs)(`div`,{className:`flex items-baseline gap-2`,children:[(0,S.jsx)(`span`,{className:`text-title min-w-0 flex-1 truncate`,children:e.title}),(0,S.jsx)(`span`,{className:`shrink-0 text-meta`,children:l(e)})]}),(0,S.jsx)(`div`,{className:`mt-2`,children:(0,S.jsx)(C,{task:e})}),e.returned===void 0?null:(0,S.jsxs)(`p`,{className:`mt-1.5 truncate text-xs text-orange-300/90`,children:[`Sent back from `,d(e,e.returned.from),` by `,e.returned.by,` `,o(e.returned.at,n)]}),(0,S.jsx)(`p`,{className:`mt-1.5 truncate text-meta`,children:e.status===`claimed`&&r!==`landing`&&i!==void 0?(0,S.jsxs)(S.Fragment,{children:[i.name,` · held by `,(0,S.jsx)(v,{name:e.claimedBy??``,members:t})]}):e.status===`open`&&r!==`landing`&&i!==void 0?`${i.name} · waiting for ${p(i)} since ${o(e.stageSince,n)}`:r===`landing`?`landing task/${e.id} on the default branch`:`${r} ${o(e.updatedAt,n)}`})]})})}function E(){let{slug:n}=_({from:`/p/$slug/tasks`}),i=e(n),a=t(),o=r(),s=c(3e4),[l,d]=(0,x.useState)(new Set),f=a.data?.find(e=>e.slug===n),p=u(i.data??[]),m=p.filter(e=>e.phase!==`done`&&e.phase!==`abandoned`).reduce((e,t)=>e+t.tasks.length,0);return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(b,{title:`Tasks`,subtitle:`${f?.name??n} · ${m} in play · ${i.data?.length??0} in all`}),(0,S.jsx)(`div`,{className:`flex-1 overflow-y-auto px-2 py-2`,children:i.data===void 0?(0,S.jsx)(y,{children:`Reading the tasks…`}):p.length===0?(0,S.jsx)(y,{children:`No tasks in this project yet.`}):p.map(e=>{let t=e.phase!==`done`&&e.phase!==`abandoned`||l.has(e.phase)?e.tasks:e.tasks.slice(0,w);return(0,S.jsxs)(`section`,{className:`mb-3`,children:[(0,S.jsxs)(`h3`,{className:`px-3 pt-2 pb-1 text-[11px] font-semibold tracking-wider text-fg-muted uppercase`,children:[h.find(t=>t.phase===e.phase)?.label,` · `,e.tasks.length]}),(0,S.jsx)(`ul`,{children:t.map(e=>(0,S.jsx)(T,{task:e,members:o.data,now:s},e.id))}),t.length<e.tasks.length?(0,S.jsxs)(`button`,{type:`button`,onClick:()=>d(new Set([...l,e.phase])),className:`px-3 pt-1 text-xs text-fg-tertiary hover:text-fg-primary`,children:[`Show all `,e.tasks.length]}):null]},e.phase)})})]})}export{E as TasksView};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{fn as e,n as t,t as n}from"./format-EfoceZkm.js";import{R as r,x as i}from"./index-D75IxLme.js";var a=e();function o(e){return e?.kind??`topic`}function s({state:e}){return(0,a.jsx)(`span`,{className:`shrink-0 rounded-full px-2 py-0.5 text-[11px] font-medium ${e===`open`?`bg-emerald-500/15 text-emerald-300`:`bg-surface-2 text-fg-tertiary`}`,children:e})}function c({thread:e,now:c}){let l=e.state===`closed`?t(e.body,180):``,u=e.messages===1?`1 message`:`${e.messages} messages`;return(0,a.jsxs)(r,{to:`/thread/$threadId`,params:{threadId:e.id},className:`mx-4 my-2 block rounded-xl bg-surface-2/40 px-3.5 py-3 shadow-[inset_0_0_0_1px_rgba(255,255,255,0.06)] transition-colors hover:bg-surface-2/70`,children:[(0,a.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,a.jsx)(`span`,{"aria-hidden":`true`,className:`text-fg-muted`,children:`↳`}),(0,a.jsx)(`span`,{className:`text-title min-w-0 flex-1 truncate`,children:e.title}),(0,a.jsx)(s,{state:e.state})]}),(0,a.jsxs)(`p`,{className:`mt-1 text-meta`,children:[o(e.subject),` thread by `,e.openedBy,` · `,u,` · opened`,` `,n(e.openedAt,c)]}),l===``?null:(0,a.jsx)(`p`,{className:`mt-2 line-clamp-2 text-xs leading-relaxed text-fg-secondary`,children:(0,a.jsx)(i,{text:l,links:!1})})]})}export{c as n,o as r,s as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{D as e,R as t,dn as n,fn as r,g as i,gn as a,pn as o,w as s}from"./format-EfoceZkm.js";import{H as c,a as l,c as u,o as d,z as f}from"./index-D75IxLme.js";var p=a(o(),1),m=r(),h=`block w-full rounded-lg bg-surface-2/50 px-3 py-2 text-sm text-fg-primary outline-none shadow-[inset_0_0_0_1px_rgba(255,255,255,0.06)] placeholder:text-fg-muted focus:shadow-[inset_0_0_0_1px_rgba(255,255,255,0.16)]`;function g({error:e}){return e===null?null:(0,m.jsx)(`p`,{role:`alert`,className:`text-xs text-red-400`,children:e instanceof t?e.message:`The board did not take it.`})}function _({channel:t,onDone:r}){let{api:a}=e(),o=n(),_=f(),v=i(),y=s(),[b,x]=(0,p.useState)(``),[S,C]=(0,p.useState)(``),w=(0,p.useRef)(null);(0,p.useEffect)(()=>w.current?.focus(),[]);let T=c({mutationFn:async()=>{let e=await a.openThread({channel:t,title:b.trim()});return S.trim()!==``&&await a.sendMessage({thread_id:e.id,body:S.trim()}),e},onSuccess:e=>{o.invalidateQueries({queryKey:[`threads`]}),r(),_({to:`/thread/$threadId`,params:{threadId:e.id}})}}),E=S.trim()===``?[]:d(S,v.data??[],y.data??[]);return(0,m.jsxs)(`form`,{className:`space-y-2 border-b border-line bg-surface-2/20 p-3`,onSubmit:e=>{e.preventDefault(),T.mutate()},children:[(0,m.jsx)(`input`,{ref:w,value:b,maxLength:200,placeholder:`What is the thread about?`,"aria-label":`Thread title`,onChange:e=>x(e.target.value),className:h}),(0,m.jsx)(`textarea`,{value:S,rows:3,placeholder:`First message, optional`,"aria-label":`First message`,onChange:e=>C(e.target.value),className:`${h} resize-none`}),(0,m.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(`p`,{className:`min-w-0 flex-1 truncate text-[11px] text-fg-muted`,children:E.length>0?`The first message wakes ${l(E)}.`:`Only its participants and anyone mentioned will read it.`}),(0,m.jsx)(u,{onClick:r,children:`Cancel`}),(0,m.jsx)(u,{variant:`primary`,type:`submit`,disabled:b.trim()===``||T.isPending,children:T.isPending?`Opening…`:`Open thread`})]}),(0,m.jsx)(g,{error:T.error})]})}function v({threadId:t,channel:r,onDone:i}){let{api:a}=e(),o=n(),[s,l]=(0,p.useState)(``),d=(0,p.useRef)(null);(0,p.useEffect)(()=>d.current?.focus(),[]);let f=c({mutationFn:()=>a.closeThread({thread_id:t,summary:s.trim()}),onSuccess:()=>{for(let e of[[`thread`,t],[`threads`],[`channel`,r]])o.invalidateQueries({queryKey:e});i()}});return(0,m.jsxs)(`form`,{className:`space-y-2 border-b border-line bg-surface-2/20 p-3`,onSubmit:e=>{e.preventDefault(),f.mutate()},children:[(0,m.jsx)(`textarea`,{ref:d,value:s,rows:3,placeholder:`What did it settle? The summary is posted to #${r}.`,"aria-label":`Closing summary`,onChange:e=>l(e.target.value),className:`${h} resize-none`}),(0,m.jsxs)(`div`,{className:`flex items-center justify-end gap-2`,children:[(0,m.jsx)(u,{onClick:i,children:`Cancel`}),(0,m.jsx)(u,{variant:`primary`,type:`submit`,disabled:s.trim()===``||f.isPending,children:f.isPending?`Closing…`:`Close thread`})]}),(0,m.jsx)(g,{error:f.error})]})}export{_ as i,h as n,g as r,v as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{D as e,Gt as t,R as n,fn as r,g as i,gn as a,j as o,pn as s,t as c,y as l}from"./format-EfoceZkm.js";import{I as u,R as d,V as f,c as p,d as m,i as h}from"./index-D75IxLme.js";import{t as g}from"./ThreadForms-DUGkAwTp.js";import{t as _}from"./Markdown-J2pAPfCa.js";import{t as v}from"./MessageItem-BjM8BdpK.js";import{n as y,t as b}from"./Pane-caYWCiyo.js";import{r as x,t as S}from"./ThreadCard-DCpvhSlc.js";import{t as C}from"./useStickyScroll-n5d7sdPZ.js";import{t as w}from"./BackLink-C-vad6K2.js";var T=a(s(),1),E=r();function D(){let{threadId:e}=f({from:`/thread/$threadId`});return(0,E.jsx)(O,{id:e},e)}function O({id:r}){let{api:a}=e(),s=t({queryKey:[`thread`,r],queryFn:()=>a.thread(r)}),f=i(),D=l(3e4),O=m(),k=s.data?.messages??[],A=k.at(-1)?.id??null;(0,T.useEffect)(()=>u(r,A),[r,A]);let{ref:j,onScroll:M}=C(),[N,P]=(0,T.useState)(!1),F=s.data?.thread.subject,I=o(F?.kind===`task`?F.id:null);if(s.data===void 0)return(0,E.jsx)(y,{children:s.error instanceof n&&s.error.status===404?`There is no thread ${r}.`:`Reading the thread…`});let{thread:L}=s.data;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(b,{leading:(0,E.jsx)(w,{fallback:(0,E.jsx)(d,{to:`/c/$`,params:{_splat:L.channel},"aria-label":`Back to #${L.channel}`,className:`grid size-7 shrink-0 place-items-center rounded-lg text-fg-tertiary hover:bg-surface-2/70 hover:text-fg-primary`,children:`←`})}),title:L.title,subtitle:`${x(L.subject)} thread in #${L.channel} · opened by ${O(L.openedBy)} ${c(L.openedAt,D)}`,trailing:(0,E.jsxs)(E.Fragment,{children:[L.subject?.kind===`task`?(0,E.jsx)(d,{to:`/task/$taskId`,params:{taskId:L.subject.id},className:`shrink-0 rounded-md px-2 py-1 text-xs text-fg-tertiary hover:bg-surface-2/70 hover:text-fg-primary`,children:`Task →`}):L.subject?.kind===`proposal`?(0,E.jsx)(d,{to:`/proposal/$proposalId`,params:{proposalId:L.subject.id},className:`shrink-0 rounded-md px-2 py-1 text-xs text-fg-tertiary hover:bg-surface-2/70 hover:text-fg-primary`,children:`Proposal →`}):null,L.state===`open`&&!N&&L.subject?.kind!==`task`?(0,E.jsx)(p,{onClick:()=>P(!0),children:`Close`}):(0,E.jsx)(S,{state:L.state})]})}),N&&L.state===`open`?(0,E.jsx)(g,{threadId:L.id,channel:L.channel,onDone:()=>P(!1)}):null,(0,E.jsxs)(`div`,{ref:j,onScroll:M,className:`flex-1 overflow-y-auto py-2`,children:[k.length===0?(0,E.jsx)(y,{children:`No messages in this thread yet.`}):null,k.map(e=>(0,E.jsx)(v,{message:e,members:f.data,now:D,task:I.data},e.id)),L.state===`closed`?(0,E.jsxs)(`section`,{className:`mx-4 mt-3 mb-2 rounded-xl bg-surface-2/40 px-3.5 py-3 shadow-[inset_0_0_0_1px_rgba(255,255,255,0.06)]`,children:[(0,E.jsxs)(`p`,{className:`text-caps`,children:[`Closed by `,O(L.closedBy??`board`),L.closedAt===void 0?``:` ${c(L.closedAt,D)}`]}),L.body.trim()===``?(0,E.jsxs)(`p`,{className:`mt-1 text-meta`,children:[`It ended with its `,x(L.subject),`.`]}):(0,E.jsx)(_,{text:L.body})]}):null]}),L.state===`open`?(0,E.jsx)(h,{target:{threadId:L.id},placeholder:`Reply in the thread`}):null]})}export{D as ThreadView};
|