@spencerboucher/switchyard 0.20.0 → 0.22.0
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/README.md +20 -16
- package/dist/policies/worker.js +1866 -1777
- package/dist/switchyard.mjs +5526 -4684
- package/package.json +1 -1
- package/web-dist/assets/AutomationView-DwZ_2m9J.js +2 -0
- package/web-dist/assets/AutomationView-DwZ_2m9J.js.map +1 -0
- package/web-dist/assets/Checkbox-DR78wXsg.js +2 -0
- package/web-dist/assets/{Checkbox-BnRsg6ki.js.map → Checkbox-DR78wXsg.js.map} +1 -1
- package/web-dist/assets/DangerZone-CBnW9h0p.js +2 -0
- package/web-dist/assets/{DangerZone-BicyqXv8.js.map → DangerZone-CBnW9h0p.js.map} +1 -1
- package/web-dist/assets/Field-DS2BMoqA.js +2 -0
- package/web-dist/assets/{Field-Cp-08kpe.js.map → Field-DS2BMoqA.js.map} +1 -1
- package/web-dist/assets/{Markdown-BPWc6K6m.js → Markdown-BIO6MBTM.js} +7 -7
- package/web-dist/assets/{Markdown-BPWc6K6m.js.map → Markdown-BIO6MBTM.js.map} +1 -1
- package/web-dist/assets/NavigationEditor-C0J7vDXL.js +2 -0
- package/web-dist/assets/NavigationEditor-C0J7vDXL.js.map +1 -0
- package/web-dist/assets/Overlay-DPZqU_vB.js +2 -0
- package/web-dist/assets/Overlay-DPZqU_vB.js.map +1 -0
- package/web-dist/assets/Priority-0hv1Vpg7.js +2 -0
- package/web-dist/assets/{Priority-ZGpTH645.js.map → Priority-0hv1Vpg7.js.map} +1 -1
- package/web-dist/assets/RadioCards-CN5xELnc.js +2 -0
- package/web-dist/assets/RadioCards-CN5xELnc.js.map +1 -0
- package/web-dist/assets/ScopeSelect-BaJjip1Y.js +2 -0
- package/web-dist/assets/ScopeSelect-BaJjip1Y.js.map +1 -0
- package/web-dist/assets/SegmentedControl-CRmhE-Kn.js +2 -0
- package/web-dist/assets/SegmentedControl-CRmhE-Kn.js.map +1 -0
- package/web-dist/assets/Select-CN7M29ap.js +2 -0
- package/web-dist/assets/{Select-DHRR7IAK.js.map → Select-CN7M29ap.js.map} +1 -1
- package/web-dist/assets/Switch-CZMY83Fw.js +2 -0
- package/web-dist/assets/{Switch-D5pVfZgf.js.map → Switch-CZMY83Fw.js.map} +1 -1
- package/web-dist/assets/Tabs-_1w3hoAR.js +2 -0
- package/web-dist/assets/Tabs-_1w3hoAR.js.map +1 -0
- package/web-dist/assets/TextLink-BpF2vLiL.js +2 -0
- package/web-dist/assets/{TextLink-BGtYWCW9.js.map → TextLink-BpF2vLiL.js.map} +1 -1
- package/web-dist/assets/UINodeRenderer-DqIkLhF8.js +4 -0
- package/web-dist/assets/UINodeRenderer-DqIkLhF8.js.map +1 -0
- package/web-dist/assets/UnfilteredNote-22-Qjb-f.js +2 -0
- package/web-dist/assets/UnfilteredNote-22-Qjb-f.js.map +1 -0
- package/web-dist/assets/api-RftVSu44.js +2 -0
- package/web-dist/assets/api-RftVSu44.js.map +1 -0
- package/web-dist/assets/{arrow-down-Dn3KG_JI.js → arrow-down-CzjHSpfM.js} +2 -2
- package/web-dist/assets/{arrow-down-Dn3KG_JI.js.map → arrow-down-CzjHSpfM.js.map} +1 -1
- package/web-dist/assets/{arrow-up-BiPtOqqy.js → arrow-up-B4YU8Bg0.js} +2 -2
- package/web-dist/assets/{arrow-up-BiPtOqqy.js.map → arrow-up-B4YU8Bg0.js.map} +1 -1
- package/web-dist/assets/attention-CEgIsUuq.js +2 -0
- package/web-dist/assets/attention-CEgIsUuq.js.map +1 -0
- package/web-dist/assets/automations-DnydDML9.js +2 -0
- package/web-dist/assets/{automations-IX9DQNk8.js.map → automations-DnydDML9.js.map} +1 -1
- package/web-dist/assets/board-BPxxc8G4.js +6 -0
- package/web-dist/assets/board-BPxxc8G4.js.map +1 -0
- package/web-dist/assets/{calendar-clock-DVlat602.js → calendar-clock-B3bQkNKq.js} +2 -2
- package/web-dist/assets/{calendar-clock-DVlat602.js.map → calendar-clock-B3bQkNKq.js.map} +1 -1
- package/web-dist/assets/chevron-right-DuAbbYQ-.js +2 -0
- package/web-dist/assets/{chevron-right-BM1IJI2z.js.map → chevron-right-DuAbbYQ-.js.map} +1 -1
- package/web-dist/assets/code-D5IB7jTT.js +28 -0
- package/web-dist/assets/code-D5IB7jTT.js.map +1 -0
- package/web-dist/assets/{core.esm-C4dCvG0s.js → core.esm-BbOnWvFK.js} +2 -2
- package/web-dist/assets/{core.esm-C4dCvG0s.js.map → core.esm-BbOnWvFK.js.map} +1 -1
- package/web-dist/assets/describe-DWsoiUix.js +5 -0
- package/web-dist/assets/describe-DWsoiUix.js.map +1 -0
- package/web-dist/assets/enroll-CV77Sk6h.js +2 -0
- package/web-dist/assets/{enroll-GUEF5Uxu.js.map → enroll-CV77Sk6h.js.map} +1 -1
- package/web-dist/assets/git-branch-Dr8PvfHN.js +2 -0
- package/web-dist/assets/git-branch-Dr8PvfHN.js.map +1 -0
- package/web-dist/assets/grip-vertical-Bc5pJHHF.js +2 -0
- package/web-dist/assets/grip-vertical-Bc5pJHHF.js.map +1 -0
- package/web-dist/assets/{hand-B6lvj014.js → hand-B2TrADIv.js} +2 -2
- package/web-dist/assets/{hand-B6lvj014.js.map → hand-B2TrADIv.js.map} +1 -1
- package/web-dist/assets/haptics-O69vKVoK.js +2 -0
- package/web-dist/assets/haptics-O69vKVoK.js.map +1 -0
- package/web-dist/assets/index-BXQwol8u.css +2 -0
- package/web-dist/assets/index-cmIcNnnF.js +17 -0
- package/web-dist/assets/index-cmIcNnnF.js.map +1 -0
- package/web-dist/assets/{link-2-CCq9WzMy.js → link-2-M5ENDPWT.js} +2 -2
- package/web-dist/assets/{link-2-CCq9WzMy.js.map → link-2-M5ENDPWT.js.map} +1 -1
- package/web-dist/assets/logic-CG2E-voG.js +2 -0
- package/web-dist/assets/{logic-BnSIy9_P.js.map → logic-CG2E-voG.js.map} +1 -1
- package/web-dist/assets/logic-D_vBBkcD.js +4 -0
- package/web-dist/assets/logic-D_vBBkcD.js.map +1 -0
- package/web-dist/assets/more-CVjg2O5h.js +2 -0
- package/web-dist/assets/more-CVjg2O5h.js.map +1 -0
- package/web-dist/assets/pencil-y_4AgVa2.js +2 -0
- package/web-dist/assets/pencil-y_4AgVa2.js.map +1 -0
- package/web-dist/assets/{play-NHO6U6cY.js → play-CYKX2aVL.js} +2 -2
- package/web-dist/assets/{play-NHO6U6cY.js.map → play-CYKX2aVL.js.map} +1 -1
- package/web-dist/assets/{plus-C83uJhbf.js → plus-B6uH1yKa.js} +2 -2
- package/web-dist/assets/{plus-C83uJhbf.js.map → plus-B6uH1yKa.js.map} +1 -1
- package/web-dist/assets/policyLogic-CioD2rMm.js +2 -0
- package/web-dist/assets/{policyLogic-DqKyFQEW.js.map → policyLogic-CioD2rMm.js.map} +1 -1
- package/web-dist/assets/prefs-V29Ms2ZL.js +2 -0
- package/web-dist/assets/prefs-V29Ms2ZL.js.map +1 -0
- package/web-dist/assets/queue-BGK9c062.js +2 -0
- package/web-dist/assets/queue-BGK9c062.js.map +1 -0
- package/web-dist/assets/repo-CuL_qbqU.js +5 -0
- package/web-dist/assets/repo-CuL_qbqU.js.map +1 -0
- package/web-dist/assets/{rotate-ccw-BRrlVEAQ.js → rotate-ccw-DvfmNYNE.js} +2 -2
- package/web-dist/assets/{rotate-ccw-BRrlVEAQ.js.map → rotate-ccw-DvfmNYNE.js.map} +1 -1
- package/web-dist/assets/{search-C5H14z0D.js → search-GTFKEqAS.js} +2 -2
- package/web-dist/assets/{search-C5H14z0D.js.map → search-GTFKEqAS.js.map} +1 -1
- package/web-dist/assets/selection-CAMJBh5A.js +9 -0
- package/web-dist/assets/selection-CAMJBh5A.js.map +1 -0
- package/web-dist/assets/settings-o7k_MPK7.js +9 -0
- package/web-dist/assets/settings-o7k_MPK7.js.map +1 -0
- package/web-dist/assets/states-BUWwUyu-.js +60 -0
- package/web-dist/assets/states-BUWwUyu-.js.map +1 -0
- package/web-dist/assets/{terminal-CATQN_17.js → terminal-DGVFZER3.js} +2 -2
- package/web-dist/assets/{terminal-CATQN_17.js.map → terminal-DGVFZER3.js.map} +1 -1
- package/web-dist/assets/terminal-login-Gy6aLzgC.js +2 -0
- package/web-dist/assets/{terminal-login-BdkmJdOO.js.map → terminal-login-Gy6aLzgC.js.map} +1 -1
- package/web-dist/assets/useBreakpoint-DoLUoCMf.js +2 -0
- package/web-dist/assets/useBreakpoint-DoLUoCMf.js.map +1 -0
- package/web-dist/assets/useIndicator-BKqIsw2Q.js +2 -0
- package/web-dist/assets/useIndicator-BKqIsw2Q.js.map +1 -0
- package/web-dist/assets/useNow-BS_9T7IY.js +2 -0
- package/web-dist/assets/useNow-BS_9T7IY.js.map +1 -0
- package/web-dist/assets/useResource-CPN6cDQ5.js +2 -0
- package/web-dist/assets/useResource-CPN6cDQ5.js.map +1 -0
- package/web-dist/assets/useSwipeTabs-XRK0_O6T.js +2 -0
- package/web-dist/assets/useSwipeTabs-XRK0_O6T.js.map +1 -0
- package/web-dist/assets/workboard-FE6bAMnW.js +3 -0
- package/web-dist/assets/workboard-FE6bAMnW.js.map +1 -0
- package/web-dist/index.html +7 -7
- package/web-dist/sw.js +1 -1
- package/web-dist/sw.js.map +1 -1
- package/web-dist/assets/AutomationView-B4O_teaB.js +0 -2
- package/web-dist/assets/AutomationView-B4O_teaB.js.map +0 -1
- package/web-dist/assets/Button-C7TQGuSX.js +0 -2
- package/web-dist/assets/Button-C7TQGuSX.js.map +0 -1
- package/web-dist/assets/Card-DzHrwFrv.js +0 -2
- package/web-dist/assets/Card-DzHrwFrv.js.map +0 -1
- package/web-dist/assets/Checkbox-BnRsg6ki.js +0 -2
- package/web-dist/assets/DangerZone-BicyqXv8.js +0 -2
- package/web-dist/assets/Field-Cp-08kpe.js +0 -2
- package/web-dist/assets/Priority-ZGpTH645.js +0 -2
- package/web-dist/assets/SegmentedControl-Cvkz7C_A.js +0 -2
- package/web-dist/assets/SegmentedControl-Cvkz7C_A.js.map +0 -1
- package/web-dist/assets/Select-DHRR7IAK.js +0 -2
- package/web-dist/assets/Switch-D5pVfZgf.js +0 -2
- package/web-dist/assets/Tabs-2GilVMsH.js +0 -2
- package/web-dist/assets/Tabs-2GilVMsH.js.map +0 -1
- package/web-dist/assets/TextLink-BGtYWCW9.js +0 -2
- package/web-dist/assets/UINodeRenderer-BaANWHvJ.js +0 -4
- package/web-dist/assets/UINodeRenderer-BaANWHvJ.js.map +0 -1
- package/web-dist/assets/UnfilteredNote-zVO8ajSi.js +0 -2
- package/web-dist/assets/UnfilteredNote-zVO8ajSi.js.map +0 -1
- package/web-dist/assets/ViewSelect-C9gNftWK.js +0 -2
- package/web-dist/assets/ViewSelect-C9gNftWK.js.map +0 -1
- package/web-dist/assets/api-DMrk4xwq.js +0 -2
- package/web-dist/assets/api-DMrk4xwq.js.map +0 -1
- package/web-dist/assets/attention-B9uawu1d.js +0 -2
- package/web-dist/assets/attention-B9uawu1d.js.map +0 -1
- package/web-dist/assets/automations-IX9DQNk8.js +0 -2
- package/web-dist/assets/board-BUAI4L7M.js +0 -6
- package/web-dist/assets/board-BUAI4L7M.js.map +0 -1
- package/web-dist/assets/check-CEnbWw4D.js +0 -2
- package/web-dist/assets/check-CEnbWw4D.js.map +0 -1
- package/web-dist/assets/chevron-right-BM1IJI2z.js +0 -2
- package/web-dist/assets/code-Dav4E15n.js +0 -25
- package/web-dist/assets/code-Dav4E15n.js.map +0 -1
- package/web-dist/assets/describe-B66LJTqU.js +0 -2
- package/web-dist/assets/describe-B66LJTqU.js.map +0 -1
- package/web-dist/assets/describe-BeFxHr2Y.js +0 -5
- package/web-dist/assets/describe-BeFxHr2Y.js.map +0 -1
- package/web-dist/assets/enroll-GUEF5Uxu.js +0 -2
- package/web-dist/assets/external-link-B3hnazCa.js +0 -2
- package/web-dist/assets/external-link-B3hnazCa.js.map +0 -1
- package/web-dist/assets/index-BUZpNu-R.js +0 -22
- package/web-dist/assets/index-BUZpNu-R.js.map +0 -1
- package/web-dist/assets/index-C9iuCGwg.css +0 -2
- package/web-dist/assets/keyboardLayers-BZOygMAH.js +0 -2
- package/web-dist/assets/keyboardLayers-BZOygMAH.js.map +0 -1
- package/web-dist/assets/logic-BBQ4d1GC.js +0 -4
- package/web-dist/assets/logic-BBQ4d1GC.js.map +0 -1
- package/web-dist/assets/logic-BnSIy9_P.js +0 -2
- package/web-dist/assets/more-C1oPXLVM.js +0 -2
- package/web-dist/assets/more-C1oPXLVM.js.map +0 -1
- package/web-dist/assets/pencil-DeML-0z2.js +0 -2
- package/web-dist/assets/pencil-DeML-0z2.js.map +0 -1
- package/web-dist/assets/policyLogic-DqKyFQEW.js +0 -2
- package/web-dist/assets/queue-DWSd1kia.js +0 -2
- package/web-dist/assets/queue-DWSd1kia.js.map +0 -1
- package/web-dist/assets/repo-DRwGWCut.js +0 -2
- package/web-dist/assets/repo-DRwGWCut.js.map +0 -1
- package/web-dist/assets/settings-B0IbaTOd.js +0 -12
- package/web-dist/assets/settings-B0IbaTOd.js.map +0 -1
- package/web-dist/assets/states-hyf_ATdQ.js +0 -58
- package/web-dist/assets/states-hyf_ATdQ.js.map +0 -1
- package/web-dist/assets/terminal-login-BdkmJdOO.js +0 -2
- package/web-dist/assets/timer-DFrvOKOy.js +0 -2
- package/web-dist/assets/timer-DFrvOKOy.js.map +0 -1
- package/web-dist/assets/useBreakpoint-BYCN9s8X.js +0 -2
- package/web-dist/assets/useBreakpoint-BYCN9s8X.js.map +0 -1
- package/web-dist/assets/useNow-DXyC-YfE.js +0 -2
- package/web-dist/assets/useNow-DXyC-YfE.js.map +0 -1
- package/web-dist/assets/useResource-DYNGG9XS.js +0 -2
- package/web-dist/assets/useResource-DYNGG9XS.js.map +0 -1
- package/web-dist/assets/workboard-BJCZsLp5.js +0 -3
- package/web-dist/assets/workboard-BJCZsLp5.js.map +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
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{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--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-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:""}::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--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-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:""}}}@layer theme{:root,:host{--font-sans:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-mono:ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;--color-black:#000;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--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);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--tracking-wide:.025em;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-out:cubic-bezier(0, 0, .2, 1);--animate-spin:spin 1.4s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--default-mono-font-family:ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;--color-accent:var(--sy-accent)}}@layer base{*,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::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{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}html,body{background:var(--sy-bg);color:var(--sy-text);font-family:var(--font-sans);overflow-x:clip}body{-webkit-font-smoothing:antialiased;min-height:100dvh;margin:0;line-height:1.5}#root{min-width:0;min-height:100dvh}:focus-visible{outline:2px solid var(--sy-focus);outline-offset:2px}code,pre,kbd,samp{font-family:var(--font-mono)}button,[role=button]{cursor:pointer}button:disabled,[aria-disabled=true]{cursor:not-allowed}}@layer components{@media (pointer:coarse){.tap{min-width:44px;min-height:44px}}.sy-prose{overflow-wrap:anywhere;min-width:0}.sy-prose>*+*{margin-top:.6em}.sy-prose h1,.sy-prose h2,.sy-prose h3,.sy-prose h4{margin-top:1em;font-weight:600;line-height:1.3}.sy-prose h1{font-size:1.25rem}.sy-prose h2{font-size:1.125rem}.sy-prose h3,.sy-prose h4{font-size:1rem}.sy-prose ul{padding-left:1.4em;list-style:outside}.sy-prose ol{padding-left:1.4em;list-style:decimal}.sy-prose a{color:var(--sy-accent);text-underline-offset:2px;text-decoration:underline}.sy-prose blockquote{border-left:3px solid var(--sy-border-strong);color:var(--sy-muted);padding-left:.75em}.sy-prose :not(pre)>code{background:var(--sy-surface-2);border:1px solid var(--sy-border);border-radius:4px;padding:0 .3em;font-size:.875em}.sy-prose hr{border-color:var(--sy-border)}.sy-prose input[type=checkbox]{margin-right:.4em}.sy-prose-compact{font-size:.875rem;line-height:1.5rem}@media (min-width:768px){.sy-prose-compact{font-size:15px}}.sy-prose-compact>*+*{margin-top:.5em}.sy-prose-compact h1{font-size:1.0625rem}.sy-prose-compact h2{font-size:1rem}.sy-prose-compact h2[data-active=true]{background:var(--sy-accent-soft);box-shadow:inset 3px 0 0 var(--sy-accent);border-radius:.375rem;margin-left:-.5rem;padding:.15em .5rem}.sy-prose-compact h3,.sy-prose-compact h4{font-size:.9375rem}.sy-prose-compact h1,.sy-prose-compact h2,.sy-prose-compact h3,.sy-prose-compact h4{margin-top:1.1em;font-weight:600}.sy-prose-compact ul,.sy-prose-compact ol{padding-left:1.2em}.sy-code span[style]{color:var(--shiki-light)}@media (prefers-color-scheme:dark){.sy-code span[style]{color:var(--shiki-dark)}}}@layer utilities{.\@container{container-type:inline-size}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.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}.\!fixed{position:fixed!important}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{inset-inline:0}.inset-x-2{inset-inline:calc(var(--spacing) * 2)}.inset-y-0{inset-block:0}.-top-0\.5{top:calc(var(--spacing) * -.5)}.-top-1\.5{top:calc(var(--spacing) * -1.5)}.top-0{top:0}.top-1{top:var(--spacing)}.top-1\/2{top:50%}.top-16{top:calc(var(--spacing) * 16)}.top-\[calc\(var\(--safe-top\)\+0\.5rem\)\]{top:calc(var(--safe-top) + .5rem)}.top-full{top:100%}.right-0{right:0}.right-1{right:var(--spacing)}.-bottom-3{bottom:calc(var(--spacing) * -3)}.bottom-0{bottom:0}.bottom-3{bottom:calc(var(--spacing) * 3)}.bottom-full{bottom:100%}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-2\.5{left:calc(var(--spacing) * 2.5)}.left-3{left:calc(var(--spacing) * 3)}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[1\]{z-index:1}.z-\[60\]{z-index:60}.z-\[70\]{z-index:70}.col-start-1{grid-column-start:1}.row-start-2{grid-row-start:2}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:0}.-mx-4{margin-inline:calc(var(--spacing) * -4)}.mx-4{margin-inline:calc(var(--spacing) * 4)}.mx-auto{margin-inline:auto}.my-1{margin-block:var(--spacing)}.-mt-4{margin-top:calc(var(--spacing) * -4)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-px{margin-top:1px}.-mr-1\.5{margin-right:calc(var(--spacing) * -1.5)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-4{margin-right:calc(var(--spacing) * 4)}.mr-auto{margin-right:auto}.-mb-px{margin-bottom:-1px}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.-ml-1\.5{margin-left:calc(var(--spacing) * -1.5)}.-ml-2{margin-left:calc(var(--spacing) * -2)}.-ml-px{margin-left:-1px}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-6{-webkit-line-clamp:6;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.\!block{display:block!important}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.table{display:table}.size-1\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.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-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.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-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-11{width:calc(var(--spacing) * 11);height:calc(var(--spacing) * 11)}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1{height:var(--spacing)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-\[3px\]{height:3px}.h-auto{height:auto}.h-auto\!{height:auto!important}.h-dvh{height:100dvh}.h-full{height:100%}.h-px{height:1px}.max-h-48{max-height:calc(var(--spacing) * 48)}.max-h-52{max-height:calc(var(--spacing) * 52)}.max-h-56{max-height:calc(var(--spacing) * 56)}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-\[60vh\]{max-height:60vh}.max-h-\[90dvh\]{max-height:90dvh}.max-h-\[min\(90dvh\,720px\)\]{max-height:min(90dvh,720px)}.max-h-dvh{max-height:100dvh}.min-h-0{min-height:0}.min-h-8{min-height:calc(var(--spacing) * 8)}.min-h-9{min-height:calc(var(--spacing) * 9)}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-12{min-height:calc(var(--spacing) * 12)}.min-h-14{min-height:calc(var(--spacing) * 14)}.min-h-40{min-height:calc(var(--spacing) * 40)}.min-h-dvh{min-height:100dvh}.min-h-full{min-height:100%}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-5{width:calc(var(--spacing) * 5)}.w-8{width:calc(var(--spacing) * 8)}.w-10{width:calc(var(--spacing) * 10)}.w-52{width:calc(var(--spacing) * 52)}.w-56{width:calc(var(--spacing) * 56)}.w-60{width:calc(var(--spacing) * 60)}.w-72{width:calc(var(--spacing) * 72)}.w-96{width:calc(var(--spacing) * 96)}.w-\[6\.25rem\]{width:6.25rem}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-32{max-width:calc(var(--spacing) * 32)}.max-w-36{max-width:calc(var(--spacing) * 36)}.max-w-56{max-width:calc(var(--spacing) * 56)}.max-w-64{max-width:calc(var(--spacing) * 64)}.max-w-\[16rem\]{max-width:16rem}.max-w-\[60vw\]{max-width:60vw}.max-w-\[80ch\]{max-width:80ch}.max-w-\[calc\(100\%-8px\)\]{max-width:calc(100% - 8px)}.max-w-\[calc\(100vw-1rem\)\]{max-width:calc(100vw - 1rem)}.max-w-\[min\(20rem\,calc\(100vw-1rem\)\)\]{max-width:min(20rem,100vw - 1rem)}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.min-w-0{min-width:0}.min-w-5{min-width:calc(var(--spacing) * 5)}.min-w-48{min-width:calc(var(--spacing) * 48)}.min-w-\[6\.25rem\]{min-width:6.25rem}.min-w-full{min-width:100%}.flex-1{flex:1}.flex-\[1_1_10rem\]{flex:10rem}.flex-\[1_1_12rem\]{flex:12rem}.flex-\[1_1_15rem\]{flex:15rem}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.basis-0{flex-basis:0}.basis-48{flex-basis:calc(var(--spacing) * 48)}.basis-full{flex-basis:100%}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-1{--tw-translate-x:var(--spacing);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-5{--tw-translate-x:calc(var(--spacing) * 5);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-1{rotate:1deg}.rotate-90{rotate:90deg}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-col-resize{cursor:col-resize}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-row-resize{cursor:row-resize}.touch-none{touch-action:none}.resize{resize:both}.resize-none{resize:none}.scroll-mt-14{scroll-margin-top:calc(var(--spacing) * 14)}.scroll-mt-16{scroll-margin-top:calc(var(--spacing) * 16)}.scroll-ml-\[6\.25rem\]{scroll-margin-left:6.25rem}.\[scrollbar-width\:none\]{scrollbar-width:none}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.grid-cols-\[auto_minmax\(0\,1fr\)\]{grid-template-columns:auto minmax(0,1fr)}.grid-cols-\[minmax\(0\,1fr\)_auto\]{grid-template-columns:minmax(0,1fr) auto}.grid-cols-\[minmax\(0\,1fr\)_minmax\(320px\,400px\)\]{grid-template-columns:minmax(0,1fr) minmax(320px,400px)}.grid-cols-\[minmax\(0\,2\.4fr\)_minmax\(0\,1fr\)_5\.5rem_minmax\(0\,1\.2fr\)_minmax\(0\,1\.4fr\)_7\.5rem_7rem_auto\]{grid-template-columns:minmax(0,2.4fr) minmax(0,1fr) 5.5rem minmax(0,1.2fr) minmax(0,1.4fr) 7.5rem 7rem auto}.grid-cols-\[minmax\(7rem\,auto\)_1fr\]{grid-template-columns:minmax(7rem,auto) 1fr}.grid-cols-\[repeat\(auto-fit\,minmax\(11rem\,1fr\)\)\]{grid-template-columns:repeat(auto-fit,minmax(11rem,1fr))}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.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}.justify-start{justify-content:flex-start}.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-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}: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-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\.5{column-gap:calc(var(--spacing) * 1.5)}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-x-5{column-gap:calc(var(--spacing) * 5)}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-1{row-gap:var(--spacing)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-border>:not(:last-child)){border-color:var(--sy-border)}.self-center{align-self:center}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.overscroll-contain{overscroll-behavior:contain}.overscroll-x-contain{overscroll-behavior-x:contain}.overscroll-y-contain{overscroll-behavior-y:contain}.rounded{border-radius:.25rem}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-lg{border-top-left-radius:var(--radius-lg);border-top-right-radius:var(--radius-lg)}.rounded-t-xl{border-top-left-radius:var(--radius-xl);border-top-right-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-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-accent{border-color:var(--sy-accent)}.border-border{border-color:var(--sy-border)}.border-border-strong{border-color:var(--sy-border-strong)}.border-danger,.border-danger\/50{border-color:var(--sy-danger)}@supports (color:color-mix(in lab, red, red)){.border-danger\/50{border-color:color-mix(in oklab, var(--sy-danger) 50%, transparent)}}.border-info{border-color:var(--sy-info)}.border-transparent{border-color:#0000}.border-warning{border-color:var(--sy-warning)}.bg-accent{background-color:var(--sy-accent)}.bg-accent-fg{background-color:var(--sy-accent-fg)}.bg-accent-soft{background-color:var(--sy-accent-soft)}.bg-bg{background-color:var(--sy-bg)}.bg-black{background-color:var(--color-black)}.bg-border{background-color:var(--sy-border)}.bg-border-strong{background-color:var(--sy-border-strong)}.bg-danger{background-color:var(--sy-danger)}.bg-danger-soft{background-color:var(--sy-danger-soft)}.bg-diff-add{background-color:var(--sy-diff-add)}.bg-diff-del{background-color:var(--sy-diff-del)}.bg-diff-hunk{background-color:var(--sy-diff-hunk)}.bg-info-soft{background-color:var(--sy-info-soft)}.bg-muted{background-color:var(--sy-muted)}.bg-overlay{background-color:var(--sy-overlay)}.bg-subtle{background-color:var(--sy-subtle)}.bg-success{background-color:var(--sy-success)}.bg-success-soft{background-color:var(--sy-success-soft)}.bg-surface{background-color:var(--sy-surface)}.bg-surface-2{background-color:var(--sy-surface-2)}.bg-surface-3{background-color:var(--sy-surface-3)}.bg-transparent{background-color:#0000}.bg-warning{background-color:var(--sy-warning)}.bg-warning-soft{background-color:var(--sy-warning-soft)}.bg-\[conic-gradient\(var\(--sy-surface-2\)_25\%\,var\(--sy-surface\)_0_50\%\,var\(--sy-surface-2\)_0_75\%\,var\(--sy-surface\)_0\)\]{background-image:conic-gradient(var(--sy-surface-2) 25%,var(--sy-surface) 0 50%,var(--sy-surface-2) 0 75%,var(--sy-surface) 0)}.bg-\[length\:16px_16px\]{background-size:16px 16px}.object-cover{object-fit:cover}.p-0{padding:0}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:var(--spacing)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.px-0{padding-inline:0}.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-7{padding-inline:calc(var(--spacing) * 7)}.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-6{padding-block:calc(var(--spacing) * 6)}.py-10{padding-block:calc(var(--spacing) * 10)}.pt-1{padding-top:var(--spacing)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.safe-pt{padding-top:var(--safe-top)}.safe-pt-1{padding-top:calc(var(--spacing) * 1 + var(--safe-top))}.safe-pt-1\.5{padding-top:calc(var(--spacing) * 1.5 + var(--safe-top))}.safe-pt-4{padding-top:calc(var(--spacing) * 4 + var(--safe-top))}.safe-pt-10{padding-top:calc(var(--spacing) * 10 + var(--safe-top))}.safe-px{padding-left:var(--safe-left);padding-right:var(--safe-right)}.pr-1{padding-right:var(--spacing)}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pr-5{padding-right:calc(var(--spacing) * 5)}.pr-7{padding-right:calc(var(--spacing) * 7)}.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-8{padding-bottom:calc(var(--spacing) * 8)}.safe-pb{padding-bottom:var(--safe-bottom)}.safe-pb-2{padding-bottom:calc(var(--spacing) * 2 + var(--safe-bottom))}.safe-pb-10{padding-bottom:calc(var(--spacing) * 10 + var(--safe-bottom))}.pl-1{padding-left:var(--spacing)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-7{padding-left:calc(var(--spacing) * 7)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-9{padding-left:calc(var(--spacing) * 9)}.pl-11{padding-left:calc(var(--spacing) * 11)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-top{vertical-align:top}.font-mono{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.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-\[11px\]{font-size:11px}.text-\[13px\]{font-size:13px}.text-\[15px\]{font-size:15px}.leading-4{--tw-leading:calc(var(--spacing) * 4);line-height:calc(var(--spacing) * 4)}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-6{--tw-leading:calc(var(--spacing) * 6);line-height:calc(var(--spacing) * 6)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.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-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-normal{white-space:normal}.whitespace-normal\!{white-space:normal!important}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.text-accent{color:var(--sy-accent)}.text-accent-fg{color:var(--sy-accent-fg)}.text-danger{color:var(--sy-danger)}.text-danger-fg{color:var(--sy-danger-fg)}.text-info{color:var(--sy-info)}.text-inherit{color:inherit}.text-muted{color:var(--sy-muted)}.text-subtle{color:var(--sy-subtle)}.text-success{color:var(--sy-success)}.text-text{color:var(--sy-text)}.text-warning{color:var(--sy-warning)}.capitalize{text-transform:capitalize}.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,)}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.accent-\[var\(--color-accent\)\]{accent-color:var(--color-accent)}.accent-\[var\(--sy-accent\)\]{accent-color:var(--sy-accent)}.opacity-0{opacity:0}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-100{opacity:1}.shadow-pop{--tw-shadow:var(--sy-shadow);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--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-2{--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)}.ring-4{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + 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-accent{--tw-ring-color:var(--sy-accent)}.ring-accent-soft{--tw-ring-color:var(--sy-accent-soft)}.ring-offset-2{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.ring-offset-bg{--tw-ring-offset-color:var(--sy-bg)}.outline,.outline-1{outline-style:var(--tw-outline-style);outline-width:1px}.-outline-offset-1{outline-offset:calc(1px * -1)}.outline-warning{outline-color:var(--sy-warning)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.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-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;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))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-all{-webkit-user-select:all;user-select:all}.select-none{-webkit-user-select:none;user-select:none}.\[overflow-anchor\:none\]{overflow-anchor:none}.group-open\:rotate-90:is(:where(.group):is([open],:popover-open,:open) *){rotate:90deg}@media (hover:hover){.group-hover\:h-0\.5:is(:where(.group):hover *){height:calc(var(--spacing) * .5)}.group-hover\:w-0\.5:is(:where(.group):hover *){width:calc(var(--spacing) * .5)}.group-hover\:bg-accent:is(:where(.group):hover *){background-color:var(--sy-accent)}.group-hover\:opacity-100:is(:where(.group):hover *),.group-hover\/msg\:opacity-100:is(:where(.group\/msg):hover *),.group-hover\/row\:opacity-100:is(:where(.group\/row):hover *){opacity:1}}.group-focus-visible\:h-0\.5:is(:where(.group):focus-visible *){height:calc(var(--spacing) * .5)}.group-focus-visible\:w-0\.5:is(:where(.group):focus-visible *){width:calc(var(--spacing) * .5)}.group-focus-visible\:bg-accent:is(:where(.group):focus-visible *){background-color:var(--sy-accent)}.group-has-\[input\:focus-visible\]\:outline-2:is(:where(.group):has(:is(input:focus-visible)) *){outline-style:var(--tw-outline-style);outline-width:2px}.group-has-\[input\:focus-visible\]\:outline-offset-2:is(:where(.group):has(:is(input:focus-visible)) *){outline-offset:2px}.group-has-\[input\:focus-visible\]\:outline-accent:is(:where(.group):has(:is(input:focus-visible)) *){outline-color:var(--sy-accent)}.placeholder\:text-subtle::placeholder{color:var(--sy-subtle)}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:inset-x-0:before{content:var(--tw-content);inset-inline:0}.before\:-top-3:before{content:var(--tw-content);top:calc(var(--spacing) * -3)}.before\:bottom-0:before{content:var(--tw-content);bottom:0}.before\:content-\[\'\'\]:before{--tw-content:"";content:var(--tw-content)}.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}.last\:pb-0:last-child{padding-bottom:0}.focus-within\:opacity-100:focus-within{opacity:1}@media (hover:hover){.hover\:border-accent-hover:hover{border-color:var(--sy-accent-hover)}.hover\:border-danger-hover:hover{border-color:var(--sy-danger-hover)}.hover\:bg-accent-hover:hover{background-color:var(--sy-accent-hover)}.hover\:bg-accent-soft:hover{background-color:var(--sy-accent-soft)}.hover\:bg-border:hover{background-color:var(--sy-border)}.hover\:bg-danger-hover:hover{background-color:var(--sy-danger-hover)}.hover\:bg-danger-soft:hover{background-color:var(--sy-danger-soft)}.hover\:bg-surface-2:hover{background-color:var(--sy-surface-2)}.hover\:text-text:hover{color:var(--sy-text)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:not-sr-only:focus{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.focus\:fixed:focus{position:fixed}.focus\:top-2:focus{top:calc(var(--spacing) * 2)}.focus\:left-2:focus{left:calc(var(--spacing) * 2)}.focus\:border-accent:focus{border-color:var(--sy-accent)}.focus\:bg-surface-2:focus{background-color:var(--sy-surface-2)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:underline:focus-visible{text-decoration-line:underline}.focus-visible\:opacity-100:focus-visible{opacity:1}.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-accent:focus-visible{--tw-ring-color:var(--sy-accent)}.focus-visible\:outline:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\:outline-offset-0:focus-visible{outline-offset:0px}.focus-visible\:outline-offset-\[-2px\]:focus-visible{outline-offset:-2px}.focus-visible\:outline-\[var\(--sy-focus\)\]:focus-visible{outline-color:var(--sy-focus)}.focus-visible\:outline-accent:focus-visible{outline-color:var(--sy-accent)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.focus-visible\:outline-solid:focus-visible{--tw-outline-style:solid;outline-style:solid}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-55:disabled{opacity:.55}.disabled\:opacity-60:disabled{opacity:.6}.has-\[\:focus-visible\]\:outline-2:has(:focus-visible){outline-style:var(--tw-outline-style);outline-width:2px}.has-\[\:focus-visible\]\:outline-offset-1:has(:focus-visible){outline-offset:1px}.has-\[\:focus-visible\]\:outline-offset-2:has(:focus-visible){outline-offset:2px}.has-\[\:focus-visible\]\:outline-accent:has(:focus-visible){outline-color:var(--sy-accent)}.has-\[\[data-testid\=document-interaction\]\]\:max-w-none:has([data-testid=document-interaction]){max-width:none}.aria-\[current\=true\]\:border-accent[aria-current=true]{border-color:var(--sy-accent)}.aria-\[current\=true\]\:text-text[aria-current=true]{color:var(--sy-text)}.aria-\[invalid\=true\]\:border-danger[aria-invalid=true],.aria-\[invalid\=true\]\:focus\:border-danger[aria-invalid=true]:focus{border-color:var(--sy-danger)}@media not all and (min-width:379px){.max-\[379px\]\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.max-\[379px\]\:hidden{display:none}}@media not all and (min-width:48rem){.max-md\:static{position:static}.max-md\:hidden{display:none}.max-md\:overflow-hidden{overflow:hidden}.max-md\:opacity-100{opacity:1}}@media not all and (min-width:40rem){.max-sm\:w-full{width:100%}.max-sm\:basis-full{flex-basis:100%}}@media (min-width:380px){.min-\[380px\]\:hidden{display:none}}@media (min-width:1800px){.min-\[1800px\]\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}}@media (min-width:40rem){.sm\:col-span-2{grid-column:span 2/span 2}.sm\:col-start-auto{grid-column-start:auto}.sm\:row-start-auto{grid-row-start:auto}.sm\:mb-0{margin-bottom:0}.sm\:ml-auto{margin-left:auto}.sm\:hidden{display:none}.sm\:inline{display:inline}.sm\:max-w-48{max-width:calc(var(--spacing) * 48)}.sm\:flex-1{flex:1}.sm\:basis-auto{flex-basis:auto}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-\[minmax\(0\,1fr\)_minmax\(0\,1fr\)_auto\]{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.sm\:grid-cols-\[minmax\(8rem\,12rem\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(8rem,12rem) minmax(0,1fr)}.sm\:flex-row{flex-direction:row}.sm\:flex-wrap{flex-wrap:wrap}.sm\:items-center{align-items:center}.sm\:items-start{align-items:flex-start}.sm\:justify-center{justify-content:center}.sm\:text-center{text-align:center}}@media (min-width:48rem){.md\:sticky{position:sticky}.md\:-top-3{top:calc(var(--spacing) * -3)}.md\:top-0{top:0}.md\:top-auto{top:auto}.md\:bottom-\[calc\(var\(--safe-bottom\)\+1rem\)\]{bottom:calc(var(--safe-bottom) + 1rem)}.md\:-mx-6{margin-inline:calc(var(--spacing) * -6)}.md\:mx-6{margin-inline:calc(var(--spacing) * 6)}.md\:block{display:block}.md\:grid{display:grid}.md\:h-8{height:calc(var(--spacing) * 8)}.md\:grid-cols-\[13rem_minmax\(0\,1fr\)\]{grid-template-columns:13rem minmax(0,1fr)}.md\:flex-row{flex-direction:row}.md\:flex-wrap{flex-wrap:wrap}.md\:items-end{align-items:flex-end}.md\:gap-3{gap:calc(var(--spacing) * 3)}.md\:gap-8{gap:calc(var(--spacing) * 8)}.md\:px-4{padding-inline:calc(var(--spacing) * 4)}.md\:px-6{padding-inline:calc(var(--spacing) * 6)}.md\:text-center{text-align:center}.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media (min-width:64rem){.lg\:inline{display:inline}}@media (min-width:80rem){.xl\:hidden{display:none}.xl\:inline{display:inline}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:items-start{align-items:flex-start}}@media (min-width:96rem){.\32 xl\:max-w-\[100ch\]{max-width:100ch}.\32 xl\:grid-cols-\[15rem_minmax\(0\,1fr\)\]{grid-template-columns:15rem minmax(0,1fr)}.\32 xl\:grid-cols-\[minmax\(0\,1fr\)_390px\]{grid-template-columns:minmax(0,1fr) 390px}}@container (width>=14rem){.\@min-\[14rem\]\:inline-flex{display:inline-flex}}.\[\&_h2\]\:scroll-mt-14 h2{scroll-margin-top:calc(var(--spacing) * 14)}.\[\&_td\]\:min-w-28 td{min-width:calc(var(--spacing) * 28)}.\[\&_td\]\:border td{border-style:var(--tw-border-style);border-width:1px}.\[\&_td\]\:border-border td{border-color:var(--sy-border)}.\[\&_td\]\:px-2 td{padding-inline:calc(var(--spacing) * 2)}.\[\&_td\]\:py-1 td{padding-block:var(--spacing)}.\[\&_td\]\:align-top td{vertical-align:top}.\[\&_th\]\:min-w-28 th{min-width:calc(var(--spacing) * 28)}.\[\&_th\]\:border th{border-style:var(--tw-border-style);border-width:1px}.\[\&_th\]\:border-border th{border-color:var(--sy-border)}.\[\&_th\]\:bg-surface-2 th{background-color:var(--sy-surface-2)}.\[\&_th\]\:px-2 th{padding-inline:calc(var(--spacing) * 2)}.\[\&_th\]\:py-1 th{padding-block:var(--spacing)}.\[\&_th\]\:text-left th{text-align:left}.\[\&\:\:-moz-range-thumb\]\:size-4::-moz-range-thumb{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\:\:-webkit-details-marker\]\:hidden::-webkit-details-marker{display:none}.\[\&\:\:-webkit-slider-thumb\]\:size-4::-webkit-slider-thumb{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\:\:-webkit-slider-thumb\]\:appearance-none::-webkit-slider-thumb{appearance:none}.\[data-keyboard-composer\]\:visible:is(data-keyboard-composer),.\[data-keyboard-default\]\:visible:is(data-keyboard-default),.\[data-keyboard-search\]\:visible:is(data-keyboard-search){visibility:visible}.\[\&\>span\]\:sr-only>span{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (pointer:coarse){.\[\@media\(pointer\:coarse\)\]\:opacity-100{opacity:1}.\[\@media\(pointer\:coarse\)\]\:before\:-top-6:before{content:var(--tw-content);top:calc(var(--spacing) * -6)}}}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--sy-bg:#f8fafc;--sy-surface:#fff;--sy-surface-2:#f1f5f9;--sy-surface-3:#e2e8f0;--sy-border:#d5dce5;--sy-border-strong:#94a3b8;--sy-text:#0f172a;--sy-muted:#475569;--sy-subtle:#64748b;--sy-accent:#2563eb;--sy-accent-hover:#1d4ed8;--sy-accent-fg:#fff;--sy-accent-soft:#dbeafe;--sy-success:#15803d;--sy-success-soft:#dcfce7;--sy-warning:#b45309;--sy-warning-soft:#fef3c7;--sy-danger:#b91c1c;--sy-danger-hover:#991b1b;--sy-danger-fg:#fff;--sy-danger-soft:#fee2e2;--sy-info:#0369a1;--sy-info-soft:#e0f2fe;--sy-diff-add:#e6f6ea;--sy-diff-del:#fbe9e9;--sy-diff-hunk:#eef2f7;--sy-focus:#2563eb;--sy-overlay:#0f172a66;--sy-shadow:0 10px 30px #0f172a1f, 0 2px 6px #0f172a14;--rail-width:64px;--rail-expanded-width:200px;--bottom-nav-height:56px;--safe-top:env(safe-area-inset-top,0px);--safe-right:env(safe-area-inset-right,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px)}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--sy-bg:#0f1115;--sy-surface:#161a20;--sy-surface-2:#1d222a;--sy-surface-3:#262c36;--sy-border:#2e3541;--sy-border-strong:#4b5565;--sy-text:#e6e9ee;--sy-muted:#a3acb9;--sy-subtle:#8892a0;--sy-accent:#60a5fa;--sy-accent-hover:#93c5fd;--sy-accent-fg:#0b1220;--sy-accent-soft:#1e3a5f;--sy-success:#4ade80;--sy-success-soft:#14321f;--sy-warning:#fbbf24;--sy-warning-soft:#3a2c0c;--sy-danger:#f87171;--sy-danger-hover:#fca5a5;--sy-danger-fg:#1f0a0a;--sy-danger-soft:#3b1515;--sy-info:#38bdf8;--sy-info-soft:#0c2a3a;--sy-diff-add:#12291b;--sy-diff-del:#2f1517;--sy-diff-hunk:#1b2330;--sy-focus:#93c5fd;--sy-overlay:#0000008c;--sy-shadow:0 10px 30px #00000080, 0 2px 6px #0006}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}.animate-spin{animation:2.4s linear infinite spin!important}.sy-motion{transition-duration:.2s!important}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@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-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as e,b as t,i as n,o as r,r as i,y as a}from"./Button-C7TQGuSX.js";import{Nt as o,_ as s,b as c,m as l,x as u,y as d}from"./states-hyf_ATdQ.js";import{d as f,f as p,l as m,p as h}from"./useBreakpoint-BYCN9s8X.js";import{n as ee,t as te}from"./timer-DFrvOKOy.js";var ne=t((e=>{var t=a();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:s,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return l(e,t,null,r)},e.flushSync=function(e){var t=u.T,n=i.p;try{if(u.T=null,i.p=2,e)return e()}finally{u.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=d(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=d(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()},e.version=`19.3.1`})),re=t(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=ne()})),g={name:`activity`,size:24,node:[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]};g.node;var _=r(g),v={name:`ban`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M4.929 4.929 19.07 19.071`,key:`196cmz`}]]};v.node;var y=r(v),b={name:`circle-dashed`,size:24,node:[[`path`,{d:`M10.1 2.182a10 10 0 0 1 3.8 0`,key:`5ilxe3`}],[`path`,{d:`M13.9 21.818a10 10 0 0 1-3.8 0`,key:`11zvb9`}],[`path`,{d:`M17.609 3.721a10 10 0 0 1 2.69 2.7`,key:`1iw5b2`}],[`path`,{d:`M2.182 13.9a10 10 0 0 1 0-3.8`,key:`c0bmvh`}],[`path`,{d:`M20.279 17.609a10 10 0 0 1-2.7 2.69`,key:`1ruxm7`}],[`path`,{d:`M21.818 10.1a10 10 0 0 1 0 3.8`,key:`qkgqxc`}],[`path`,{d:`M3.721 6.391a10 10 0 0 1 2.7-2.69`,key:`1mcia2`}],[`path`,{d:`M6.391 20.279a10 10 0 0 1-2.69-2.7`,key:`1fvljs`}]]};b.node;var x=r(b),S={name:`circle-dot`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]};S.node;var C=r(S),w={name:`circle-pause`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`10`,x2:`10`,y1:`15`,y2:`9`,key:`c1nkhi`}],[`line`,{x1:`14`,x2:`14`,y1:`15`,y2:`9`,key:`h65svq`}]],aliases:[`pause-circle`]};w.node;var T=r(w),E={name:`circle-play`,size:24,node:[[`path`,{d:`M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z`,key:`kmsa83`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]],aliases:[`play-circle`]};E.node;var D=r(E),O={name:`circle-slash`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`9`,x2:`15`,y1:`15`,y2:`9`,key:`1dfufj`}]]};O.node;var k=r(O),A={name:`cloud-off`,size:24,node:[[`path`,{d:`M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057`,key:`1uxyv8`}],[`path`,{d:`M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78`,key:`99tcn7`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]};A.node;var ie=r(A),j={name:`eye`,size:24,node:[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};j.node;var M=r(j),N={name:`hourglass`,size:24,node:[[`path`,{d:`M5 22h14`,key:`ehvnwv`}],[`path`,{d:`M5 2h14`,key:`pdyrp9`}],[`path`,{d:`M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22`,key:`1d314k`}],[`path`,{d:`M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2`,key:`1vvvr6`}]]};N.node;var P=r(N),F={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};F.node;var I=r(F),L={name:`repeat`,size:24,node:[[`path`,{d:`m17 2 4 4-4 4`,key:`nntrym`}],[`path`,{d:`M3 11v-1a4 4 0 0 1 4-4h14`,key:`84bu3i`}],[`path`,{d:`m7 22-4-4 4-4`,key:`1wqhfi`}],[`path`,{d:`M21 13v1a4 4 0 0 1-4 4H3`,key:`1rx37r`}]]};L.node;var ae=r(L),R={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]};R.node;var z=r(R),B={name:`wifi`,size:24,node:[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M2 8.82a15 15 0 0 1 20 0`,key:`dnpr2z`}],[`path`,{d:`M5 12.859a10 10 0 0 1 14 0`,key:`1x1e6c`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}]]};B.node;var V=r(B),H=n(),U={neutral:`bg-surface-2 text-muted border-border`,info:`bg-info-soft text-info border-transparent`,success:`bg-success-soft text-success border-transparent`,warning:`bg-warning-soft text-warning border-transparent`,danger:`bg-danger-soft text-danger border-transparent`,accent:`bg-accent text-accent-fg border-transparent`},oe={neutral:`text-muted`,info:`text-info`,success:`text-success`,warning:`text-warning`,danger:`text-danger`,accent:`text-accent`};function W({children:t,tone:n=`neutral`,label:r,className:i}){return(0,H.jsxs)(`span`,{className:e(`inline-flex min-w-5 items-center justify-center rounded-full border px-1.5 text-xs leading-5 font-medium tabular-nums`,U[n],i),title:r,children:[(0,H.jsx)(`span`,{"aria-hidden":r?!0:void 0,children:t}),r&&(0,H.jsx)(`span`,{className:`sr-only`,children:r})]})}function se({count:e,label:t,tone:n=`danger`,className:r}){return e<=0?null:(0,H.jsx)(W,{tone:n,label:`${e} ${t}`,className:r,children:e>99?`99+`:e})}var G={starting:{label:`Starting…`,icon:I,tone:`info`,spin:!0},idle:{label:`Idle`,icon:C,tone:`neutral`},running:{label:`Running`,icon:_,tone:`info`,pulse:!0},waiting_input:{label:`Needs input`,icon:d,tone:`warning`},interrupted:{label:`Interrupted`,icon:T,tone:`warning`},failed:{label:`Failed`,icon:p,tone:`danger`},stopped:{label:`Stopped`,icon:z,tone:`neutral`}},ce={label:`Ready to review`,icon:M,tone:`success`},K={backlog:{label:`Backlog`,icon:c,tone:`neutral`},ready:{label:`Ready`,icon:D,tone:`info`},in_progress:{label:`In progress`,icon:I,tone:`info`},review:{label:`Review`,icon:M,tone:`warning`},done:{label:`Done`,icon:h,tone:`success`},canceled:{label:`Canceled`,icon:y,tone:`neutral`}},q={queued:{label:`Queued`,icon:f,tone:`neutral`},dispatching:{label:`Dispatching…`,icon:I,tone:`info`,spin:!0},uncertain:{label:`Awaiting host confirmation`,icon:P,tone:`warning`},running:{label:`Running`,icon:_,tone:`info`,pulse:!0},waiting_input:{label:`Needs input`,icon:d,tone:`warning`},checking:{label:`Running checks`,icon:ee,tone:`info`,spin:!1},succeeded:{label:`Succeeded`,icon:h,tone:`success`},failed:{label:`Failed`,icon:p,tone:`danger`},interrupted:{label:`Interrupted`,icon:T,tone:`warning`},canceled:{label:`Canceled`,icon:y,tone:`neutral`}},le={connected:{label:`Connected`,icon:V,tone:`success`},reconnecting:{label:`Reconnecting…`,icon:s,tone:`warning`,spin:!0},unreachable:{label:`Unreachable`,icon:m,tone:`danger`}},ue={connecting:{label:`Connecting…`,icon:I,tone:`info`,spin:!0},live:{label:`Live`,icon:V,tone:`success`},reconnecting:{label:`Reconnecting…`,icon:s,tone:`warning`,spin:!0},offline:{label:`Offline`,icon:ie,tone:`danger`}},de={pending:{label:`Needs input`,icon:d,tone:`warning`},resolved:{label:`Answered`,icon:h,tone:`success`},expired:{label:`Expired`,icon:P,tone:`neutral`},canceled:{label:`Canceled`,icon:k,tone:`neutral`},unsupported:{label:`Unsupported here`,icon:l,tone:`warning`}},J={needs_input:{label:`Needs input`,icon:d,tone:`warning`},failed:{label:`Failed`,icon:p,tone:`danger`},ready_for_review:{label:`Ready for review`,icon:M,tone:`info`},unsupported_interaction:{label:`Unsupported interaction`,icon:l,tone:`warning`},host_unreachable:{label:`Host unreachable`,icon:m,tone:`danger`},cache_expiring:{label:`Cache expiring`,icon:te,tone:`warning`}},fe={fired:{label:`Fired`,icon:D,tone:`info`},skipped_overlap:{label:`Skipped (overlap)`,icon:k,tone:`neutral`},skipped_missed:{label:`Skipped (missed)`,icon:k,tone:`neutral`},queued:{label:`Queued`,icon:f,tone:`neutral`},appended:{label:`Appended`,icon:ae,tone:`info`},failed:{label:`Failed`,icon:p,tone:`danger`},filtered:{label:`Filtered out`,icon:x,tone:`neutral`}},Y={label:`Unknown`,icon:u,tone:`neutral`};function X(e){switch(e.kind){case`runtime`:return G[e.value]??Y;case`task`:return K[e.value]??Y;case`run`:return q[e.value]??Y;case`host`:return le[e.value]??Y;case`connection`:return ue[e.value]??Y;case`interaction`:{let t=o.safeParse(e.value);return t.success?de[t.data]:Y}case`attention`:return J[e.value]??Y;case`occurrence`:return fe[e.value]??Y;case`custom`:return e.status}}function pe(t){let n=X(t),r=n.icon,a=t.size===`sm`;return(0,H.jsxs)(`span`,{"data-status-chip":t.kind,className:e(`inline-flex max-w-full items-center gap-1 rounded-full border font-medium whitespace-nowrap`,a?`px-1.5 text-xs leading-5`:`px-2 text-xs leading-6`,U[n.tone],t.className),children:[n.spin?(0,H.jsx)(i,{className:a?`size-3`:`size-3.5`}):(0,H.jsx)(r,{"aria-hidden":!0,className:e(a?`size-3`:`size-3.5`,`shrink-0`,n.pulse&&`animate-pulse`)}),(0,H.jsx)(`span`,{className:`truncate`,children:t.label??n.label})]})}function me({icon:t,label:n,tone:r=`neutral`,spin:a,className:o}){return(0,H.jsxs)(`span`,{className:e(`inline-flex max-w-full items-center gap-1 rounded-full border px-2 text-xs leading-6 font-medium`,U[r],o),children:[a?(0,H.jsx)(i,{className:`size-3.5`}):(0,H.jsx)(t,{"aria-hidden":!0,className:`size-3.5 shrink-0`}),(0,H.jsx)(`span`,{className:`min-w-0 truncate`,children:n})]})}var Z=[];function Q(e){if(e.key!==`Escape`||e.isComposing||e.defaultPrevented)return;let t=$();t&&(e.preventDefault(),e.stopPropagation(),t.onEscape())}function he(e){let t={layer:e};return Z.push(t),Z.length===1&&document.addEventListener(`keydown`,Q),()=>{let e=Z.indexOf(t);e!==-1&&(Z.splice(e,1),Z.length===0&&document.removeEventListener(`keydown`,Q))}}function $(){return Z[Z.length-1]?.layer}function ge(){return Z.findLast(({layer:e})=>e.trapsFocus)?.layer}function _e(){return Z.length>0}export{C,T as S,re as T,z as _,J as a,k as b,G as c,K as d,X as f,oe as g,U as h,ge as i,q as l,se as m,he as n,me as o,W as p,$ as r,ce as s,_e as t,pe as u,I as v,x as w,D as x,M as y};
|
|
2
|
-
//# sourceMappingURL=keyboardLayers-BZOygMAH.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keyboardLayers-BZOygMAH.js","names":["__iconData","__iconData","__iconData","__iconData","__iconData","__iconData","__iconData","__iconData","__iconData","__iconData","__iconData","__iconData","__iconData","MessageCircleQuestion","cn","__commonJSMin","require_jsx_runtime","createLucideIcon","Spinner","require_react","InteractionState","RefreshCw","Inbox","TriangleAlert","CircleAlert","MessageCircleQuestionMark","Clock","CircleX","WifiOff","CircleCheck","ListChecks","Timer","require_react_dom_production","React","formatProdErrorMessage","url","code","i","noop","Internals","REACT_PORTAL_TYPE","REACT_RECOVERABLE_TYPE","REACT_OPTIMISTIC_KEY","createPortal$1","key","ReactSharedInternals","getCrossOriginStringAs","as","input","reason","container","children","previousTransition","previousUpdatePriority","fn","href","options","crossOrigin","integrity","fetchPriority","form","a","action","initialState","permalink","require_react_dom","checkDCE","err","__iconData$13","Activity","__iconData$12","Ban","__iconData$11","CircleDashed","__iconData$10","CircleDot","__iconData$9","CirclePause","__iconData$8","CirclePlay","__iconData$7","CircleSlash","__iconData$6","CloudOff","__iconData$5","Eye","__iconData$4","Hourglass","__iconData$3","LoaderCircle","__iconData$2","Repeat","__iconData$1","Square","__iconData","Wifi","import_jsx_runtime","TONE_CLASSES","TONE_TEXT","Badge","tone","className","label","CountBadge","count","RUNTIME_STATUS","REVIEW_STATUS","TASK_STATUS","RUN_STATUS","HOST_STATUS","CONNECTION_STATUS","INTERACTION_STATUS","ATTENTION_STATUS","OCCURRENCE_STATUS","FALLBACK","statusInfo","props","s","StatusChip","info","Icon","sm","InlineStatus","spin","layers","onDocumentKeyDown","event","top","topKeyboardLayer","registerKeyboardLayer","entry","index","topTrappingKeyboardLayer","layer","hasKeyboardLayer"],"sources":["../../../../node_modules/.pnpm/react-dom@19.3.1_react@19.3.1/node_modules/react-dom/cjs/react-dom.production.js","../../../../node_modules/.pnpm/react-dom@19.3.1_react@19.3.1/node_modules/react-dom/index.js","../../../../node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/icons/activity.mjs","../../../../node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/icons/ban.mjs","../../../../node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/icons/circle-dashed.mjs","../../../../node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/icons/circle-dot.mjs","../../../../node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/icons/circle-pause.mjs","../../../../node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/icons/circle-play.mjs","../../../../node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/icons/circle-slash.mjs","../../../../node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/icons/cloud-off.mjs","../../../../node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/icons/eye.mjs","../../../../node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/icons/hourglass.mjs","../../../../node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/icons/loader-circle.mjs","../../../../node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/icons/repeat.mjs","../../../../node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/icons/square.mjs","../../../../node_modules/.pnpm/lucide-react@1.61.0_@types+react@19.3.0_react@19.3.1/node_modules/lucide-react/dist/esm/icons/wifi.mjs","../../src/components/ui/Badge.tsx","../../src/components/ui/StatusChip.tsx","../../src/components/ui/keyboardLayers.ts"],"sourcesContent":["/**\n * @license React\n * react-dom.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction formatProdErrorMessage(code) {\n var url = \"https://react.dev/errors/\" + code;\n if (1 < arguments.length) {\n url += \"?args[]=\" + encodeURIComponent(arguments[1]);\n for (var i = 2; i < arguments.length; i++)\n url += \"&args[]=\" + encodeURIComponent(arguments[i]);\n }\n return (\n \"Minified React error #\" +\n code +\n \"; visit \" +\n url +\n \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"\n );\n}\nfunction noop() {}\nvar Internals = {\n d: {\n f: noop,\n r: function () {\n throw Error(formatProdErrorMessage(522));\n },\n D: noop,\n C: noop,\n L: noop,\n m: noop,\n X: noop,\n S: noop,\n M: noop\n },\n p: 0,\n findDOMNode: null\n },\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_RECOVERABLE_TYPE = Symbol.for(\"react.recoverable\"),\n REACT_OPTIMISTIC_KEY = Symbol.for(\"react.optimistic_key\");\nfunction createPortal$1(children, containerInfo, implementation) {\n var key =\n 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;\n return {\n $$typeof: REACT_PORTAL_TYPE,\n key:\n null == key\n ? null\n : key === REACT_OPTIMISTIC_KEY\n ? REACT_OPTIMISTIC_KEY\n : \"\" + key,\n children: children,\n containerInfo: containerInfo,\n implementation: implementation\n };\n}\nvar ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\nfunction getCrossOriginStringAs(as, input) {\n if (\"font\" === as) return \"\";\n if (\"string\" === typeof input)\n return \"use-credentials\" === input ? input : \"\";\n}\nexports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =\n Internals;\nexports.browser = function (reason) {\n return { $$typeof: REACT_RECOVERABLE_TYPE, _reason: reason };\n};\nexports.createPortal = function (children, container) {\n var key =\n 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;\n if (\n !container ||\n (1 !== container.nodeType &&\n 9 !== container.nodeType &&\n 11 !== container.nodeType)\n )\n throw Error(formatProdErrorMessage(299));\n return createPortal$1(children, container, null, key);\n};\nexports.flushSync = function (fn) {\n var previousTransition = ReactSharedInternals.T,\n previousUpdatePriority = Internals.p;\n try {\n if (((ReactSharedInternals.T = null), (Internals.p = 2), fn)) return fn();\n } finally {\n (ReactSharedInternals.T = previousTransition),\n (Internals.p = previousUpdatePriority),\n Internals.d.f();\n }\n};\nexports.preconnect = function (href, options) {\n \"string\" === typeof href &&\n (options\n ? ((options = options.crossOrigin),\n (options =\n \"string\" === typeof options\n ? \"use-credentials\" === options\n ? options\n : \"\"\n : void 0))\n : (options = null),\n Internals.d.C(href, options));\n};\nexports.prefetchDNS = function (href) {\n \"string\" === typeof href && Internals.d.D(href);\n};\nexports.preinit = function (href, options) {\n if (\"string\" === typeof href && options && \"string\" === typeof options.as) {\n var as = options.as,\n crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),\n integrity =\n \"string\" === typeof options.integrity ? options.integrity : void 0,\n fetchPriority =\n \"string\" === typeof options.fetchPriority\n ? options.fetchPriority\n : void 0;\n \"style\" === as\n ? Internals.d.S(\n href,\n \"string\" === typeof options.precedence ? options.precedence : void 0,\n {\n crossOrigin: crossOrigin,\n integrity: integrity,\n fetchPriority: fetchPriority\n }\n )\n : \"script\" === as &&\n Internals.d.X(href, {\n crossOrigin: crossOrigin,\n integrity: integrity,\n fetchPriority: fetchPriority,\n nonce: \"string\" === typeof options.nonce ? options.nonce : void 0\n });\n }\n};\nexports.preinitModule = function (href, options) {\n if (\"string\" === typeof href)\n if (\"object\" === typeof options && null !== options) {\n if (null == options.as || \"script\" === options.as) {\n var crossOrigin = getCrossOriginStringAs(\n options.as,\n options.crossOrigin\n );\n Internals.d.M(href, {\n crossOrigin: crossOrigin,\n integrity:\n \"string\" === typeof options.integrity ? options.integrity : void 0,\n nonce: \"string\" === typeof options.nonce ? options.nonce : void 0,\n fetchPriority:\n \"string\" === typeof options.fetchPriority\n ? options.fetchPriority\n : void 0\n });\n }\n } else null == options && Internals.d.M(href);\n};\nexports.preload = function (href, options) {\n if (\n \"string\" === typeof href &&\n \"object\" === typeof options &&\n null !== options &&\n \"string\" === typeof options.as\n ) {\n var as = options.as,\n crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);\n Internals.d.L(href, as, {\n crossOrigin: crossOrigin,\n integrity:\n \"string\" === typeof options.integrity ? options.integrity : void 0,\n nonce: \"string\" === typeof options.nonce ? options.nonce : void 0,\n type: \"string\" === typeof options.type ? options.type : void 0,\n fetchPriority:\n \"string\" === typeof options.fetchPriority\n ? options.fetchPriority\n : void 0,\n referrerPolicy:\n \"string\" === typeof options.referrerPolicy\n ? options.referrerPolicy\n : void 0,\n imageSrcSet:\n \"string\" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,\n imageSizes:\n \"string\" === typeof options.imageSizes ? options.imageSizes : void 0,\n media: \"string\" === typeof options.media ? options.media : void 0\n });\n }\n};\nexports.preloadModule = function (href, options) {\n if (\"string\" === typeof href)\n if (options) {\n var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);\n Internals.d.m(href, {\n as:\n \"string\" === typeof options.as && \"script\" !== options.as\n ? options.as\n : void 0,\n crossOrigin: crossOrigin,\n integrity:\n \"string\" === typeof options.integrity ? options.integrity : void 0,\n nonce: \"string\" === typeof options.nonce ? options.nonce : void 0,\n fetchPriority:\n \"string\" === typeof options.fetchPriority\n ? options.fetchPriority\n : void 0\n });\n } else Internals.d.m(href);\n};\nexports.requestFormReset = function (form) {\n Internals.d.r(form);\n};\nexports.unstable_batchedUpdates = function (fn, a) {\n return fn(a);\n};\nexports.useFormState = function (action, initialState, permalink) {\n return ReactSharedInternals.H.useFormState(action, initialState, permalink);\n};\nexports.useFormStatus = function () {\n return ReactSharedInternals.H.useHostTransitionStatus();\n};\nexports.version = \"19.3.1\";\n","'use strict';\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'\n ) {\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (process.env.NODE_ENV === 'production') {\n // DCE check should happen before ReactDOM bundle executes so that\n // DevTools can report bad minification during injection.\n checkDCE();\n module.exports = require('./cjs/react-dom.production.js');\n} else {\n module.exports = require('./cjs/react-dom.development.js');\n}\n","/**\n * @license lucide-react v1.61.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n name: \"activity\",\n size: 24,\n node: [\n [\n \"path\",\n {\n d: \"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2\",\n key: \"169zse\"\n }\n ]\n ]\n};\n__iconData.node;\nconst Activity = createLucideIcon(__iconData);\n\nexport { __iconData, Activity as default };\n//# sourceMappingURL=activity.mjs.map\n","/**\n * @license lucide-react v1.61.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n name: \"ban\",\n size: 24,\n node: [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"path\", { d: \"M4.929 4.929 19.07 19.071\", key: \"196cmz\" }]\n ]\n};\n__iconData.node;\nconst Ban = createLucideIcon(__iconData);\n\nexport { __iconData, Ban as default };\n//# sourceMappingURL=ban.mjs.map\n","/**\n * @license lucide-react v1.61.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n name: \"circle-dashed\",\n size: 24,\n node: [\n [\"path\", { d: \"M10.1 2.182a10 10 0 0 1 3.8 0\", key: \"5ilxe3\" }],\n [\"path\", { d: \"M13.9 21.818a10 10 0 0 1-3.8 0\", key: \"11zvb9\" }],\n [\"path\", { d: \"M17.609 3.721a10 10 0 0 1 2.69 2.7\", key: \"1iw5b2\" }],\n [\"path\", { d: \"M2.182 13.9a10 10 0 0 1 0-3.8\", key: \"c0bmvh\" }],\n [\"path\", { d: \"M20.279 17.609a10 10 0 0 1-2.7 2.69\", key: \"1ruxm7\" }],\n [\"path\", { d: \"M21.818 10.1a10 10 0 0 1 0 3.8\", key: \"qkgqxc\" }],\n [\"path\", { d: \"M3.721 6.391a10 10 0 0 1 2.7-2.69\", key: \"1mcia2\" }],\n [\"path\", { d: \"M6.391 20.279a10 10 0 0 1-2.69-2.7\", key: \"1fvljs\" }]\n ]\n};\n__iconData.node;\nconst CircleDashed = createLucideIcon(__iconData);\n\nexport { __iconData, CircleDashed as default };\n//# sourceMappingURL=circle-dashed.mjs.map\n","/**\n * @license lucide-react v1.61.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n name: \"circle-dot\",\n size: 24,\n node: [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"1\", key: \"41hilf\" }],\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }]\n ]\n};\n__iconData.node;\nconst CircleDot = createLucideIcon(__iconData);\n\nexport { __iconData, CircleDot as default };\n//# sourceMappingURL=circle-dot.mjs.map\n","/**\n * @license lucide-react v1.61.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n name: \"circle-pause\",\n size: 24,\n node: [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"line\", { x1: \"10\", x2: \"10\", y1: \"15\", y2: \"9\", key: \"c1nkhi\" }],\n [\"line\", { x1: \"14\", x2: \"14\", y1: \"15\", y2: \"9\", key: \"h65svq\" }]\n ],\n aliases: [\"pause-circle\"]\n};\n__iconData.node;\nconst CirclePause = createLucideIcon(__iconData);\n\nexport { __iconData, CirclePause as default };\n//# sourceMappingURL=circle-pause.mjs.map\n","/**\n * @license lucide-react v1.61.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n name: \"circle-play\",\n size: 24,\n node: [\n [\n \"path\",\n {\n d: \"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z\",\n key: \"kmsa83\"\n }\n ],\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }]\n ],\n aliases: [\"play-circle\"]\n};\n__iconData.node;\nconst CirclePlay = createLucideIcon(__iconData);\n\nexport { __iconData, CirclePlay as default };\n//# sourceMappingURL=circle-play.mjs.map\n","/**\n * @license lucide-react v1.61.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n name: \"circle-slash\",\n size: 24,\n node: [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"line\", { x1: \"9\", x2: \"15\", y1: \"15\", y2: \"9\", key: \"1dfufj\" }]\n ]\n};\n__iconData.node;\nconst CircleSlash = createLucideIcon(__iconData);\n\nexport { __iconData, CircleSlash as default };\n//# sourceMappingURL=circle-slash.mjs.map\n","/**\n * @license lucide-react v1.61.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n name: \"cloud-off\",\n size: 24,\n node: [\n [\n \"path\",\n { d: \"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057\", key: \"1uxyv8\" }\n ],\n [\"path\", { d: \"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78\", key: \"99tcn7\" }],\n [\"path\", { d: \"m2 2 20 20\", key: \"1ooewy\" }]\n ]\n};\n__iconData.node;\nconst CloudOff = createLucideIcon(__iconData);\n\nexport { __iconData, CloudOff as default };\n//# sourceMappingURL=cloud-off.mjs.map\n","/**\n * @license lucide-react v1.61.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n name: \"eye\",\n size: 24,\n node: [\n [\n \"path\",\n {\n d: \"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0\",\n key: \"1nclc0\"\n }\n ],\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"3\", key: \"1v7zrd\" }]\n ]\n};\n__iconData.node;\nconst Eye = createLucideIcon(__iconData);\n\nexport { __iconData, Eye as default };\n//# sourceMappingURL=eye.mjs.map\n","/**\n * @license lucide-react v1.61.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n name: \"hourglass\",\n size: 24,\n node: [\n [\"path\", { d: \"M5 22h14\", key: \"ehvnwv\" }],\n [\"path\", { d: \"M5 2h14\", key: \"pdyrp9\" }],\n [\n \"path\",\n {\n d: \"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22\",\n key: \"1d314k\"\n }\n ],\n [\n \"path\",\n {\n d: \"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2\",\n key: \"1vvvr6\"\n }\n ]\n ]\n};\n__iconData.node;\nconst Hourglass = createLucideIcon(__iconData);\n\nexport { __iconData, Hourglass as default };\n//# sourceMappingURL=hourglass.mjs.map\n","/**\n * @license lucide-react v1.61.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n name: \"loader-circle\",\n size: 24,\n node: [[\"path\", { d: \"M21 12a9 9 0 1 1-6.219-8.56\", key: \"13zald\" }]],\n aliases: [\"loader-2\"]\n};\n__iconData.node;\nconst LoaderCircle = createLucideIcon(__iconData);\n\nexport { __iconData, LoaderCircle as default };\n//# sourceMappingURL=loader-circle.mjs.map\n","/**\n * @license lucide-react v1.61.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n name: \"repeat\",\n size: 24,\n node: [\n [\"path\", { d: \"m17 2 4 4-4 4\", key: \"nntrym\" }],\n [\"path\", { d: \"M3 11v-1a4 4 0 0 1 4-4h14\", key: \"84bu3i\" }],\n [\"path\", { d: \"m7 22-4-4 4-4\", key: \"1wqhfi\" }],\n [\"path\", { d: \"M21 13v1a4 4 0 0 1-4 4H3\", key: \"1rx37r\" }]\n ]\n};\n__iconData.node;\nconst Repeat = createLucideIcon(__iconData);\n\nexport { __iconData, Repeat as default };\n//# sourceMappingURL=repeat.mjs.map\n","/**\n * @license lucide-react v1.61.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n name: \"square\",\n size: 24,\n node: [[\"rect\", { width: \"18\", height: \"18\", x: \"3\", y: \"3\", rx: \"2\", key: \"afitv7\" }]]\n};\n__iconData.node;\nconst Square = createLucideIcon(__iconData);\n\nexport { __iconData, Square as default };\n//# sourceMappingURL=square.mjs.map\n","/**\n * @license lucide-react v1.61.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n name: \"wifi\",\n size: 24,\n node: [\n [\"path\", { d: \"M12 20h.01\", key: \"zekei9\" }],\n [\"path\", { d: \"M2 8.82a15 15 0 0 1 20 0\", key: \"dnpr2z\" }],\n [\"path\", { d: \"M5 12.859a10 10 0 0 1 14 0\", key: \"1x1e6c\" }],\n [\"path\", { d: \"M8.5 16.429a5 5 0 0 1 7 0\", key: \"1bycff\" }]\n ]\n};\n__iconData.node;\nconst Wifi = createLucideIcon(__iconData);\n\nexport { __iconData, Wifi as default };\n//# sourceMappingURL=wifi.mjs.map\n","import type { ReactNode } from \"react\";\nimport { cn } from \"../../lib/cn\";\n\nexport type Tone = \"neutral\" | \"info\" | \"success\" | \"warning\" | \"danger\" | \"accent\";\n\nexport const TONE_CLASSES: Record<Tone, string> = {\n neutral: \"bg-surface-2 text-muted border-border\",\n info: \"bg-info-soft text-info border-transparent\",\n success: \"bg-success-soft text-success border-transparent\",\n warning: \"bg-warning-soft text-warning border-transparent\",\n danger: \"bg-danger-soft text-danger border-transparent\",\n accent: \"bg-accent text-accent-fg border-transparent\",\n};\n\n/** Text colour for each tone (the Badge classes colour the background too). */\nexport const TONE_TEXT: Record<Tone, string> = {\n neutral: \"text-muted\",\n info: \"text-info\",\n success: \"text-success\",\n warning: \"text-warning\",\n danger: \"text-danger\",\n accent: \"text-accent\",\n};\n\nexport interface BadgeProps {\n children: ReactNode;\n tone?: Tone;\n /** Accessible text when the visible content is terse (e.g. a count). */\n label?: string;\n className?: string;\n}\n\n/** Small pill for counts and tags. */\nexport function Badge({ children, tone = \"neutral\", label, className }: BadgeProps) {\n return (\n <span\n className={cn(\n \"inline-flex min-w-5 items-center justify-center rounded-full border px-1.5 text-xs leading-5 font-medium tabular-nums\",\n TONE_CLASSES[tone],\n className,\n )}\n title={label}\n >\n <span aria-hidden={label ? true : undefined}>{children}</span>\n {label && <span className=\"sr-only\">{label}</span>}\n </span>\n );\n}\n\n/** Count badge; renders nothing at zero. Caps at 99+. */\nexport function CountBadge({\n count,\n label,\n tone = \"danger\",\n className,\n}: {\n count: number;\n label: string;\n tone?: Tone;\n className?: string;\n}) {\n if (count <= 0) return null;\n return (\n <Badge tone={tone} label={`${count} ${label}`} className={className}>\n {count > 99 ? \"99+\" : count}\n </Badge>\n );\n}\n","import type {\n AttentionReason,\n Connectivity,\n OccurrenceState,\n RunState,\n RuntimeState,\n TaskState,\n} from \"@switchyard/protocol\";\nimport { InteractionState } from \"@switchyard/protocol\";\nimport {\n Activity,\n Ban,\n CircleAlert,\n CircleCheck,\n CircleDashed,\n CircleDot,\n CirclePause,\n CirclePlay,\n CircleSlash,\n CircleX,\n Clock,\n CloudOff,\n Eye,\n Hourglass,\n Inbox,\n ListChecks,\n LoaderCircle,\n type LucideIcon,\n MessageCircleQuestion,\n RefreshCw,\n Repeat,\n Square,\n Timer,\n TriangleAlert,\n Wifi,\n WifiOff,\n} from \"lucide-react\";\nimport type { ReactNode } from \"react\";\nimport { cn } from \"../../lib/cn\";\nimport type { ConnectionState } from \"../../sync/store\";\nimport { TONE_CLASSES, type Tone } from \"./Badge\";\nimport { Spinner } from \"./Spinner\";\n\n/** A status presentation: always an icon plus a text label (never color alone). */\nexport interface StatusInfo {\n label: string;\n icon: LucideIcon;\n tone: Tone;\n /** Spin the icon (in-flight states). */\n spin?: boolean;\n /** Pulse the icon (ongoing, not transitional). */\n pulse?: boolean;\n}\n\nexport const RUNTIME_STATUS: Record<RuntimeState, StatusInfo> = {\n starting: { label: \"Starting…\", icon: LoaderCircle, tone: \"info\", spin: true },\n idle: { label: \"Idle\", icon: CircleDot, tone: \"neutral\" },\n running: { label: \"Running\", icon: Activity, tone: \"info\", pulse: true },\n waiting_input: { label: \"Needs input\", icon: MessageCircleQuestion, tone: \"warning\" },\n interrupted: { label: \"Interrupted\", icon: CirclePause, tone: \"warning\" },\n failed: { label: \"Failed\", icon: CircleX, tone: \"danger\" },\n stopped: { label: \"Stopped\", icon: Square, tone: \"neutral\" },\n};\n\n/** A finished session nobody has looked at yet. */\nexport const REVIEW_STATUS: StatusInfo = { label: \"Ready to review\", icon: Eye, tone: \"success\" };\n\nexport const TASK_STATUS: Record<TaskState, StatusInfo> = {\n backlog: { label: \"Backlog\", icon: Inbox, tone: \"neutral\" },\n ready: { label: \"Ready\", icon: CirclePlay, tone: \"info\" },\n in_progress: { label: \"In progress\", icon: LoaderCircle, tone: \"info\" },\n review: { label: \"Review\", icon: Eye, tone: \"warning\" },\n done: { label: \"Done\", icon: CircleCheck, tone: \"success\" },\n canceled: { label: \"Canceled\", icon: Ban, tone: \"neutral\" },\n};\n\nexport const RUN_STATUS: Record<RunState, StatusInfo> = {\n queued: { label: \"Queued\", icon: Clock, tone: \"neutral\" },\n dispatching: { label: \"Dispatching…\", icon: LoaderCircle, tone: \"info\", spin: true },\n uncertain: { label: \"Awaiting host confirmation\", icon: Hourglass, tone: \"warning\" },\n running: { label: \"Running\", icon: Activity, tone: \"info\", pulse: true },\n waiting_input: { label: \"Needs input\", icon: MessageCircleQuestion, tone: \"warning\" },\n checking: { label: \"Running checks\", icon: ListChecks, tone: \"info\", spin: false },\n succeeded: { label: \"Succeeded\", icon: CircleCheck, tone: \"success\" },\n failed: { label: \"Failed\", icon: CircleX, tone: \"danger\" },\n interrupted: { label: \"Interrupted\", icon: CirclePause, tone: \"warning\" },\n canceled: { label: \"Canceled\", icon: Ban, tone: \"neutral\" },\n};\n\n/** Host connectivity. */\nexport const HOST_STATUS: Record<Connectivity, StatusInfo> = {\n connected: { label: \"Connected\", icon: Wifi, tone: \"success\" },\n reconnecting: { label: \"Reconnecting…\", icon: RefreshCw, tone: \"warning\", spin: true },\n unreachable: { label: \"Unreachable\", icon: WifiOff, tone: \"danger\" },\n};\n\n/** This client's link to the coordinator. */\nexport const CONNECTION_STATUS: Record<ConnectionState, StatusInfo> = {\n connecting: { label: \"Connecting…\", icon: LoaderCircle, tone: \"info\", spin: true },\n live: { label: \"Live\", icon: Wifi, tone: \"success\" },\n reconnecting: { label: \"Reconnecting…\", icon: RefreshCw, tone: \"warning\", spin: true },\n offline: { label: \"Offline\", icon: CloudOff, tone: \"danger\" },\n};\n\nexport const INTERACTION_STATUS: Record<InteractionState, StatusInfo> = {\n pending: { label: \"Needs input\", icon: MessageCircleQuestion, tone: \"warning\" },\n resolved: { label: \"Answered\", icon: CircleCheck, tone: \"success\" },\n expired: { label: \"Expired\", icon: Hourglass, tone: \"neutral\" },\n canceled: { label: \"Canceled\", icon: CircleSlash, tone: \"neutral\" },\n unsupported: { label: \"Unsupported here\", icon: TriangleAlert, tone: \"warning\" },\n};\n\nexport const ATTENTION_STATUS: Record<AttentionReason, StatusInfo> = {\n needs_input: { label: \"Needs input\", icon: MessageCircleQuestion, tone: \"warning\" },\n failed: { label: \"Failed\", icon: CircleX, tone: \"danger\" },\n ready_for_review: { label: \"Ready for review\", icon: Eye, tone: \"info\" },\n unsupported_interaction: {\n label: \"Unsupported interaction\",\n icon: TriangleAlert,\n tone: \"warning\",\n },\n host_unreachable: { label: \"Host unreachable\", icon: WifiOff, tone: \"danger\" },\n cache_expiring: { label: \"Cache expiring\", icon: Timer, tone: \"warning\" },\n};\n\nexport const OCCURRENCE_STATUS: Record<OccurrenceState, StatusInfo> = {\n fired: { label: \"Fired\", icon: CirclePlay, tone: \"info\" },\n skipped_overlap: { label: \"Skipped (overlap)\", icon: CircleSlash, tone: \"neutral\" },\n skipped_missed: { label: \"Skipped (missed)\", icon: CircleSlash, tone: \"neutral\" },\n queued: { label: \"Queued\", icon: Clock, tone: \"neutral\" },\n appended: { label: \"Appended\", icon: Repeat, tone: \"info\" },\n failed: { label: \"Failed\", icon: CircleX, tone: \"danger\" },\n filtered: { label: \"Filtered out\", icon: CircleDashed, tone: \"neutral\" },\n};\n\nexport type StatusChipProps =\n | { kind: \"runtime\"; value: RuntimeState; label?: string; className?: string; size?: \"sm\" | \"md\" }\n | { kind: \"task\"; value: TaskState; label?: string; className?: string; size?: \"sm\" | \"md\" }\n | { kind: \"run\"; value: RunState; label?: string; className?: string; size?: \"sm\" | \"md\" }\n | { kind: \"host\"; value: Connectivity; label?: string; className?: string; size?: \"sm\" | \"md\" }\n | {\n kind: \"connection\";\n value: ConnectionState;\n label?: string;\n className?: string;\n size?: \"sm\" | \"md\";\n }\n | {\n kind: \"interaction\";\n value: InteractionState;\n label?: string;\n className?: string;\n size?: \"sm\" | \"md\";\n }\n | {\n kind: \"attention\";\n value: AttentionReason;\n label?: string;\n className?: string;\n size?: \"sm\" | \"md\";\n }\n | {\n kind: \"occurrence\";\n value: OccurrenceState;\n label?: string;\n className?: string;\n size?: \"sm\" | \"md\";\n }\n | { kind: \"custom\"; status: StatusInfo; label?: string; className?: string; size?: \"sm\" | \"md\" };\n\nconst FALLBACK: StatusInfo = { label: \"Unknown\", icon: CircleAlert, tone: \"neutral\" };\n\nexport function statusInfo(props: StatusChipProps): StatusInfo {\n switch (props.kind) {\n case \"runtime\":\n return RUNTIME_STATUS[props.value] ?? FALLBACK;\n case \"task\":\n return TASK_STATUS[props.value] ?? FALLBACK;\n case \"run\":\n return RUN_STATUS[props.value] ?? FALLBACK;\n case \"host\":\n return HOST_STATUS[props.value] ?? FALLBACK;\n case \"connection\":\n return CONNECTION_STATUS[props.value] ?? FALLBACK;\n case \"interaction\": {\n // Offline-cache values may still carry the pre-0.9 spelling.\n const s = InteractionState.safeParse(props.value);\n return s.success ? INTERACTION_STATUS[s.data] : FALLBACK;\n }\n case \"attention\":\n return ATTENTION_STATUS[props.value] ?? FALLBACK;\n case \"occurrence\":\n return OCCURRENCE_STATUS[props.value] ?? FALLBACK;\n case \"custom\":\n return props.status;\n }\n}\n\n/** Status pill: icon + text label, tone only reinforces. `label` overrides the text. */\nexport function StatusChip(props: StatusChipProps) {\n const info = statusInfo(props);\n const Icon = info.icon;\n const sm = props.size === \"sm\";\n return (\n <span\n data-status-chip={props.kind}\n className={cn(\n \"inline-flex max-w-full items-center gap-1 rounded-full border font-medium whitespace-nowrap\",\n sm ? \"px-1.5 text-xs leading-5\" : \"px-2 text-xs leading-6\",\n TONE_CLASSES[info.tone],\n props.className,\n )}\n >\n {info.spin ? (\n <Spinner className={sm ? \"size-3\" : \"size-3.5\"} />\n ) : (\n <Icon\n aria-hidden\n className={cn(sm ? \"size-3\" : \"size-3.5\", \"shrink-0\", info.pulse && \"animate-pulse\")}\n />\n )}\n <span className=\"truncate\">{props.label ?? info.label}</span>\n </span>\n );\n}\n\n/** Icon plus text status, the tone only reinforces. */\nexport function InlineStatus({\n icon: Icon,\n label,\n tone = \"neutral\",\n spin,\n className,\n}: {\n icon: LucideIcon;\n label: ReactNode;\n tone?: Tone;\n spin?: boolean;\n className?: string;\n}) {\n return (\n <span\n className={cn(\n \"inline-flex max-w-full items-center gap-1 rounded-full border px-2 text-xs leading-6 font-medium\",\n TONE_CLASSES[tone],\n className,\n )}\n >\n {spin ? <Spinner className=\"size-3.5\" /> : <Icon aria-hidden className=\"size-3.5 shrink-0\" />}\n <span className=\"min-w-0 truncate\">{label}</span>\n </span>\n );\n}\n","import type { RefObject } from \"react\";\n\nexport interface KeyboardLayer {\n root: RefObject<HTMLElement | null>;\n onEscape: () => void;\n trapsFocus: boolean;\n}\n\nconst layers: { layer: KeyboardLayer }[] = [];\n\nfunction onDocumentKeyDown(event: KeyboardEvent): void {\n if (event.key !== \"Escape\" || event.isComposing || event.defaultPrevented) return;\n const top = topKeyboardLayer();\n if (!top) return;\n event.preventDefault();\n event.stopPropagation();\n top.onEscape();\n}\n\n/** Register one open surface. The returned cleanup removes exactly this registration. */\nexport function registerKeyboardLayer(layer: KeyboardLayer): () => void {\n const entry = { layer };\n layers.push(entry);\n if (layers.length === 1) document.addEventListener(\"keydown\", onDocumentKeyDown);\n return () => {\n const index = layers.indexOf(entry);\n if (index === -1) return;\n layers.splice(index, 1);\n if (layers.length === 0) document.removeEventListener(\"keydown\", onDocumentKeyDown);\n };\n}\n\nexport function topKeyboardLayer(): KeyboardLayer | undefined {\n return layers[layers.length - 1]?.layer;\n}\n\nexport function topTrappingKeyboardLayer(): KeyboardLayer | undefined {\n return layers.findLast(({ layer }) => layer.trapsFocus)?.layer;\n}\n\nexport function hasKeyboardLayer(): boolean {\n return layers.length > 0;\n}\n"],"ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],"mappings":"A,6RAWA,IAAIiC,EAAAd,EAAA,EACJ,SAASe,EAAuB,EAAM,CACpC,IAAIC,EAAM,4BAA8BC,EACxC,GAAI,EAAI,UAAU,OAAQ,CACxB,GAAO,WAAa,mBAAmB,UAAU,EAAE,EACnD,IAAK,IAAIC,EAAI,EAAGA,EAAI,UAAU,OAAQ,IACpC,GAAO,WAAa,mBAAmB,UAAUA,EAAE,CACvD,CACA,MACE,yBACAD,EACA,WACAD,EACA,gHAEJ,CACA,SAASG,GAAO,CAAC,CACjB,IAAIC,EAAY,CACZ,EAAG,CACD,EAAGD,EACH,EAAG,UAAY,CACb,MAAM,MAAMJ,EAAuB,GAAG,CAAC,CACzC,EACA,EAAGI,EACH,EAAGA,EACH,EAAGA,EACH,EAAGA,EACH,EAAGA,EACH,EAAGA,EACH,EAAGA,CACL,EACA,EAAG,EACH,YAAa,IACf,EACAE,EAAoB,OAAO,IAAI,cAAc,EAC7CC,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAuB,OAAO,IAAI,sBAAsB,EAC1D,SAASC,EAAe,EAAU,EAAe,EAAgB,CAC/D,IAAIC,EACF,EAAI,UAAU,QAAqB,UAAU,KAArB,IAAK,GAAqB,UAAU,GAAK,KACnE,MAAO,CACL,SAAUJ,EACV,IACUI,GAAR,KACI,KACAA,IAAQF,EACNA,EACA,GAAKE,EACH,WACK,gBACC,gBAClB,CACF,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,MAAQ,UAAYA,EAAM,aAAeA,EAAM,iBAAkB,OAC3E,IAAMC,EAAMC,EAAiB,EACxBD,IACLD,EAAM,eAAe,EACrBA,EAAM,gBAAgB,EACtBC,EAAI,SAAS,EACf,CAGA,SAAgBE,GAAsB,EAAkC,CACtE,IAAMC,EAAQ,CAAE,OAAM,EAGtB,OAFAN,EAAO,KAAKM,CAAK,EACbN,EAAO,SAAW,GAAG,SAAS,iBAAiB,UAAWC,CAAiB,MAClE,CACX,IAAMM,EAAQP,EAAO,QAAQM,CAAK,EAC9BC,IAAU,KACdP,EAAO,OAAOO,EAAO,CAAC,EAClBP,EAAO,SAAW,GAAG,SAAS,oBAAoB,UAAWC,CAAiB,EACpF,CACF,CAEA,SAAgBG,GAA8C,CAC5D,OAAOJ,EAAOA,EAAO,OAAS,EAAE,EAAE,KACpC,CAEA,SAAgBQ,IAAsD,CACpE,OAAOR,EAAO,UAAU,CAAE,WAAYS,EAAM,UAAU,CAAC,EAAE,KAC3D,CAEA,SAAgBC,IAA4B,CAC1C,OAAOV,EAAO,OAAS,CACzB,C"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{S as e,_ as t,a as n,i as r,t as i,y as a}from"./Button-C7TQGuSX.js";import{u as o}from"./keyboardLayers-BZOygMAH.js";import{L as s,Lt as c,an as l,at as u,en as d,f,lt as p,n as m,on as h,ot as g,p as _,rn as v,rt as y,st as b}from"./states-hyf_ATdQ.js";import{t as x}from"./arrow-up-BiPtOqqy.js";import{s as S,t as C}from"./useBreakpoint-BYCN9s8X.js";import{t as w}from"./Field-Cp-08kpe.js";import{t as T}from"./UINodeRenderer-BaANWHvJ.js";import{J as E,Lt as D,an as O,dn as k,ft as A,gt as j,ht as M,in as N,ln as P,on as F,rt as I,sn as L}from"./index-BUZpNu-R.js";import{t as R}from"./TextLink-BGtYWCW9.js";import{n as z,t as B}from"./Markdown-BPWc6K6m.js";import{a as ee,n as te,t as V}from"./api-DMrk4xwq.js";var H=e(a(),1),ne=`An extension opened a terminal-only dialog. In RPC mode Pi gave it no answer, so the extension continued without one.`,re=[{id:`abort`,label:`Stop the run`,tone:`danger`},{id:`message`,label:`Send a message to Pi`,tone:`primary`}];function ie(e){if(e.t===`actions`)return e;if(e.t===`section`)for(let t of e.children){let e=ie(t);if(e)return e}return null}function ae(e){return e.state===`unsupported`||e.source.kind===`unsupported_custom`}function oe(e){let t=(ie(e.presentation)?.actions??[]).filter(e=>e.id===`abort`||e.id===`message`).map(e=>({id:e.id,label:e.label,tone:e.tone==="default"?`secondary`:e.tone??(e.id===`abort`?`danger`:`primary`)}));return{answerable:e.state===`unsupported`&&e.resolution===null,actions:t.length>0?t:re,copy:ne}}function se(e){return e===`running`||e===`waiting_input`?`followUp`:`prompt`}var U=r();function W(e){switch(e.t){case`form`:case`confirm`:case`actions`:return!0;case`list`:return e.items.some(W);case`section`:return e.children.some(W);case`tabs`:return e.tabs.some(e=>e.children.some(W));default:return!1}}function G(e){return e===`host`?`the host`:e===`pi`?`Pi`:`a device`}function ce({interaction:e,readOnlyReason:t,className:r,onAnswered:a,id:c,sticky:u,flush:d}){let p=s(e=>e.upsertInteraction),[g,_]=(0,H.useState)(!1),[y,b]=(0,H.useState)(null),[x,S]=(0,H.useState)(null),[w,E]=(0,H.useState)(null),[D,O]=(0,H.useState)(null),k=D&&D.id===e.id&&D.revision>e.revision?D:e,A=k.state===`pending`,j=ae(k),M=s(e=>e.sessions[k.sessionId]?.runtime),[N,P]=(0,H.useState)(!1),[F,I]=(0,H.useState)(``),L=async e=>{_(!0),b(null),E(e);try{let t=await v(`/api/interactions/${encodeURIComponent(k.id)}/answer`,{revision:k.revision,response:e});return t?.interaction&&(p(t.interaction),O(t.interaction),a?.(t.interaction)),!0}catch(e){if(h(e,`already_answered`)){let t=e.details?.interaction;t&&(p(t),O(t)),S(t?.resolution?.summary??`answered on another device`)}else b(e);return!1}finally{_(!1)}},R=async()=>{let e=F.trim();if(e){_(!0),b(null);try{await v(`/api/sessions/${encodeURIComponent(k.sessionId)}/prompt`,{text:e,mode:se(M)})}catch(e){b(e),_(!1);return}_(!1),await L({kind:`action`,actionId:`message`})&&(P(!1),I(``))}},z=C();return A&&!x&&!j&&Y(k.presentation)?(0,U.jsx)(me,{id:c,interaction:k,node:k.presentation,onRespond:e=>void L(e),busy:g,disabled:!!t,mobile:z===`mobile`,sticky:u??!0,flush:d??!1,className:r}):(0,U.jsxs)(`article`,{id:c,"aria-label":`Question: ${k.title}`,className:n(`flex min-w-0 flex-col gap-3 border-l-2 py-1 pl-3`,A?`border-warning`:`border-border`,r),children:[(0,U.jsxs)(`header`,{className:`flex min-w-0 flex-wrap items-start gap-2`,children:[(0,U.jsx)(`h3`,{className:`min-w-0 flex-1 text-sm font-semibold break-words`,children:k.title}),(0,U.jsx)(o,{kind:`interaction`,value:k.state,size:`sm`})]}),x&&(0,U.jsxs)(`p`,{role:`status`,className:`rounded-md bg-surface-2 px-3 py-2 text-sm`,children:[`Already answered: `,x]}),j?(0,U.jsx)(le,{interaction:k,readOnlyReason:t??null,busy:g,answered:x!==null,composing:N,message:F,setMessage:I,onAction:e=>{e===`message`?P(!0):L({kind:`action`,actionId:e})},onSend:()=>void R(),onCancelMessage:()=>P(!1)}):A&&!x?(0,U.jsxs)(U.Fragment,{children:[t&&(0,U.jsx)(`p`,{className:`text-sm text-muted`,children:t}),(0,U.jsx)(T,{node:k.presentation,onRespond:e=>void L(e),busy:g,disabled:!!t}),!t&&!W(k.presentation)&&(0,U.jsx)(`div`,{children:(0,U.jsx)(i,{busy:g,onClick:()=>void L({kind:`cancel`}),children:`Dismiss`})}),g&&(0,U.jsx)(`p`,{role:`status`,className:`text-sm text-muted`,children:`Sending answer… waiting for the host to confirm.`})]}):x?null:k.resolution?(0,U.jsxs)(`p`,{className:`text-sm text-muted`,children:[k.state===`resolved`?`Answered`:`Closed`,` by`,` `,G(k.resolution.by),` `,f(k.resolution.at),`:`,` `,(0,U.jsx)(`span`,{className:`text-text`,children:k.resolution.summary})]}):(0,U.jsx)(`p`,{className:`text-sm text-muted`,children:k.state===`expired`?`This question expired before it was answered (Pi closed the dialog).`:`This question was canceled.`}),y!==null&&(0,U.jsx)(m,{compact:!0,title:`Answer not delivered`,error:l(y),onRetry:w?()=>void L(w):void 0})]})}function le({interaction:e,readOnlyReason:t,busy:n,answered:r,composing:a,message:o,setMessage:s,onAction:c,onSend:l,onCancelMessage:u}){let d=oe(e);return(0,U.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,U.jsx)(`p`,{className:`text-sm text-muted`,children:d.copy}),e.resolution?(0,U.jsxs)(`p`,{className:`text-sm text-muted`,children:[`Chosen by `,G(e.resolution.by),` `,f(e.resolution.at),`: `,(0,U.jsx)(`span`,{className:`text-text`,children:e.resolution.summary})]}):!d.answerable||r?null:t?(0,U.jsx)(`p`,{className:`text-sm text-muted`,children:t}):a?(0,U.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,U.jsx)(N,{"aria-label":`Message for Pi`,value:o,onChange:e=>s(e.target.value),rows:3,autoFocus:!0,placeholder:`Tell Pi what to do instead`}),(0,U.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,U.jsx)(i,{variant:`primary`,busy:n,disabled:!o.trim(),onClick:l,children:`Send message`}),(0,U.jsx)(i,{disabled:n,onClick:u,children:`Cancel`})]})]}):(0,U.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:d.actions.map(e=>(0,U.jsx)(i,{variant:e.tone,busy:n&&e.id===`abort`,disabled:n,onClick:()=>c(e.id),children:e.label},e.id))})]})}function K(e){if(e.t!==`section`||e.children.length<2)return null;let t=e.children[e.children.length-1];if(t?.t!==`actions`)return null;let n=e.children.slice(0,-1);return n.some(W)?null:{body:{...e,children:n},actions:t}}function q(e,t){let n=window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;e?.scrollIntoView({behavior:n?`auto`:`smooth`,block:t})}function ue(e){let[t,n]=(0,H.useState)(!0);return(0,H.useEffect)(()=>{let t=e.current;if(!t||typeof IntersectionObserver>`u`)return;let r=new IntersectionObserver(([e])=>n(!!e?.isIntersecting));return r.observe(t),()=>r.disconnect()},[e]),t}function J(e){if(e.t===`markdown`)return e.text;if(e.t===`section`)for(let t of e.children){let e=J(t);if(e!==null)return e}return null}function Y(e){if(!K(e))return!1;let t=J(e);return t!==null&&(t.length>=400||t.split(`
|
|
2
|
-
`).length>=12)}function de(e){let t=/^\s*#{1,6}\s+(.+?)\s*(?:\n+|$)/.exec(e);return t?.[1]?{title:t[1],rest:e.slice(t[0].length)}:{title:null,rest:e}}function fe(e){let t=[],n=!1;for(let r of e.split(`
|
|
3
|
-
`)){/^\s*```/.test(r)&&(n=!n);let e=n?null:/^##\s+(.+?)\s*$/.exec(r);e?.[1]&&t.push({text:e[1],id:z(e[1])})}return t}function pe(e,t){let[n,r]=(0,H.useState)(null),[i,a]=(0,H.useState)(null),o=e.join(`|`);(0,H.useEffect)(()=>{if(typeof IntersectionObserver>`u`||!e.length)return;let n=e.map(e=>t.current?.querySelector(`#${CSS.escape(e)}`)).filter(e=>!!e),i=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&r(t.target.id)},{rootMargin:`-56px 0px -70% 0px`});for(let e of n)i.observe(e);let o=()=>a(null);return window.addEventListener(`wheel`,o,{passive:!0}),window.addEventListener(`touchmove`,o,{passive:!0}),window.addEventListener(`keydown`,o),()=>{i.disconnect(),window.removeEventListener(`wheel`,o),window.removeEventListener(`touchmove`,o),window.removeEventListener(`keydown`,o)}},[o,t]);let s=i??n;return(0,H.useEffect)(()=>{let e=t.current;if(e){for(let t of e.querySelectorAll(`h2[data-active]`))delete t.dataset.active;if(s){let t=e.querySelector(`#${CSS.escape(s)}`);t&&(t.dataset.active=`true`)}}},[s,o,t]),[s,a]}function me({id:e,interaction:t,node:r,onRespond:a,busy:s,disabled:c,mobile:l,sticky:u,flush:d,className:f}){let p=(0,H.useRef)(null),m=(0,H.useRef)(null),h=(0,H.useRef)(null),g=ue(h),[_,v]=(0,H.useState)(!1),y=K(r),{title:b,rest:S}=de((y?.body.t===`section`?y.body.children.find(e=>e.t===`markdown`):void 0)?.text??``),C=fe(S),[w,E]=pe(C.map(e=>e.id),p);if(y?.body.t!==`section`)return null;let D=y.actions.actions,O=y.body.children.find(e=>e.t===`section`),A=t.title,j=b??A,M=e=>{v(!1),a({kind:`action`,actionId:e})},N=(e,t)=>e===0||t===`primary`?`primary`:t===`danger`?`danger`:`secondary`,F=!c&&!g,I=`h-auto! min-h-9 min-w-0 py-1.5 text-left leading-tight whitespace-normal!`,L=e=>q(e,`start`);return(0,U.jsxs)(`article`,{id:e,"data-testid":`document-interaction`,"aria-label":`Question: ${A}`,className:n(`w-full min-w-0 self-stretch border-t border-border`,f),children:[(0,U.jsxs)(`header`,{className:n(`z-10 flex min-w-0 items-center gap-2 border-b border-border bg-bg px-4 py-2 md:px-6`,u&&(d?`md:sticky md:top-0`:`max-md:static md:sticky md:-top-3`)),children:[(0,U.jsx)(`h3`,{className:`min-w-0 flex-1 truncate text-[15px] leading-snug font-semibold md:text-sm`,children:j}),l&&(0,U.jsx)(o,{kind:`interaction`,value:t.state,size:`sm`,className:`[&>span]:sr-only`}),!c&&!g&&(0,U.jsx)(R,{size:`xs`,className:`shrink-0`,onClick:()=>q(h.current,`center`),children:`Jump to options ↓`})]}),O&&(0,U.jsx)(`aside`,{className:`mx-4 mt-3 rounded-md bg-warning-soft px-3 py-2 text-sm md:mx-6`,children:(0,U.jsx)(T,{node:O})}),(0,U.jsxs)(`div`,{className:`px-4 py-4 md:grid md:grid-cols-[13rem_minmax(0,1fr)] 2xl:grid-cols-[15rem_minmax(0,1fr)] md:gap-8 md:px-6`,children:[C.length>0&&(0,U.jsx)(`nav`,{"aria-label":`Plan sections`,className:`hidden md:block`,children:(0,U.jsxs)(`ol`,{className:`sticky top-16 flex flex-col gap-0.5 border-l border-border text-sm`,children:[(0,U.jsx)(`li`,{children:(0,U.jsx)(`button`,{type:`button`,className:`-ml-px block w-full truncate border-l-2 border-transparent py-1 pl-3 text-left text-muted hover:text-text`,onClick:()=>L(m.current),children:`Start`})}),C.map(e=>(0,U.jsx)(`li`,{children:(0,U.jsx)(`button`,{type:`button`,"aria-current":w===e.id,className:`-ml-px block w-full truncate border-l-2 border-transparent py-1 pl-3 text-left text-muted hover:text-text aria-[current=true]:border-accent aria-[current=true]:text-text`,onClick:()=>{E(e.id),L(p.current?.querySelector(`#${CSS.escape(e.id)}`)??null)},children:e.text})},e.id))]})}),(0,U.jsx)(`div`,{ref:m,className:`min-w-0 scroll-mt-14`,children:(0,U.jsx)(`div`,{ref:p,className:`sy-prose-compact max-w-[80ch] min-w-0 2xl:max-w-[100ch] min-[1800px]:text-base [&_h2]:scroll-mt-14`,children:(0,U.jsx)(B,{text:S,headingIds:!0,className:`text-inherit`})})})]}),(0,U.jsxs)(`section`,{ref:h,"data-testid":`plan-options`,"aria-label":A,className:`border-t border-border px-4 py-3 md:px-6`,children:[(0,U.jsx)(`p`,{className:`mb-2 text-sm font-medium`,children:A}),!c&&(0,U.jsx)(`div`,{className:`flex min-w-0 flex-col gap-2 md:flex-row md:flex-wrap`,children:D.map((e,t)=>(0,U.jsx)(i,{variant:N(t,e.tone),size:`md`,disabled:s,className:n(I,`md:text-center`),onClick:()=>M(e.id),children:e.label},e.id))}),(0,U.jsx)(R,{size:`xs`,className:`mt-2`,icon:(0,U.jsx)(x,{"aria-hidden":!0,className:`size-3.5`}),onClick:()=>L(m.current),children:`Back to the plan start`})]}),F&&(0,U.jsx)(`div`,{"data-testid":`answer-bar`,className:n(`z-10 flex min-w-0 items-center gap-2 border-t border-border bg-bg px-4 py-2 md:gap-3 md:px-6`,u&&!d?`sticky -bottom-3`:`sticky bottom-0`),children:l?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(k,{label:`Plan start`,icon:(0,U.jsx)(x,{className:`size-4`}),variant:`secondary`,onClick:()=>L(m.current)}),D.length>2?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(i,{variant:`primary`,disabled:s,className:n(I,`flex-1`),onClick:()=>M(D[0].id),children:D[0].label}),(0,U.jsxs)(i,{variant:`secondary`,onClick:()=>v(!0),children:[`More (`,D.length-1,`)`]})]}):D.map((e,t)=>(0,U.jsx)(i,{variant:N(t,e.tone),disabled:s,className:n(I,`flex-1`),onClick:()=>M(e.id),children:e.label},e.id))]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`span`,{className:`max-w-[16rem] min-w-0 shrink truncate text-sm font-medium`,title:A,children:A}),(0,U.jsx)(`div`,{className:`grid min-w-0 flex-1 grid-cols-[repeat(auto-fit,minmax(11rem,1fr))] gap-2`,children:D.map((e,t)=>(0,U.jsx)(i,{variant:N(t,e.tone),disabled:s,className:n(I,`w-full md:text-center`),onClick:()=>M(e.id),children:e.label},e.id))}),(0,U.jsx)(k,{label:`Plan start`,icon:(0,U.jsx)(x,{className:`size-4`}),variant:`secondary`,size:`sm`,onClick:()=>L(m.current)})]})}),(0,U.jsx)(P,{open:_,onClose:()=>v(!1),title:A,children:(0,U.jsx)(`div`,{className:`flex flex-col gap-2`,children:D.map((e,t)=>(0,U.jsx)(i,{block:!0,variant:N(t,e.tone),disabled:s,className:I,onClick:()=>M(e.id),children:e.label},e.id))})})]})}function he(e){let t=s(e=>e.issues);return(0,H.useMemo)(()=>{let n=Object.values(t),r=e?g(n)(e):null;return{linked:r,candidates:e&&!r?n.filter(t=>u(t,e,n)===null).sort(y):[],canUnlink:!!r&&b(r)===null}},[t,e])}function ge({open:e,onClose:t,workspace:n,candidates:r}){let[a,o]=(0,H.useState)(null),[s,c]=(0,H.useState)(null),u=()=>{c(null),t()},d=async e=>{if(!a){o(e.id),c(null);try{await te(e.id,n.id),S.success(`Linked to #${e.number}`),u()}catch(e){c(e)}finally{o(null)}}};return(0,U.jsx)(L,{open:e,onClose:u,title:`Link to issue`,description:`Link ${n.branch} to an issue that has no branch yet. Its sessions then stay in the tracker's view.`,footer:(0,U.jsx)(i,{onClick:u,children:`Cancel`}),children:(0,U.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[s!==null&&(0,U.jsx)(m,{compact:!0,title:`Could not link`,error:l(s)}),r.length===0&&(0,U.jsx)(`p`,{className:`text-sm text-muted`,children:`No issue without a branch in this project.`}),(0,U.jsx)(`ul`,{className:`flex min-w-0 flex-col gap-1`,children:r.map(e=>(0,U.jsx)(`li`,{className:`min-w-0`,children:(0,U.jsxs)(`button`,{type:`button`,disabled:!!a,"aria-busy":a===e.id,onClick:()=>void d(e),className:`tap flex w-full min-w-0 flex-col rounded-md px-2 py-1.5 text-left hover:bg-surface-2 disabled:opacity-55`,children:[(0,U.jsxs)(`span`,{className:`truncate text-sm`,children:[`#`,e.number,` `,e.title]}),(0,U.jsxs)(`span`,{className:`truncate text-xs text-muted`,children:[e.repository,e.board?.priority?` · ${e.board.priority.name}`:``]})]})},e.id))})]})})}var _e=[];function ve(e,t,n){let r=n&&!!e&&!t,[i,a]=(0,H.useState)(null);return(0,H.useEffect)(()=>{if(!r||!e)return;let t=new AbortController;return a({id:e,lookup:{state:`loading`}}),V.get(e,t.signal).then(e=>{s.getState().upsertSessionIfMissing(e),a(null)},n=>{t.signal.aborted||a({id:e,lookup:h(n,`not_found`)?{state:`missing`}:{state:`error`,error:l(n)}})}),()=>t.abort()},[r,e]),r?i?.id===e?i.lookup:{state:`loading`}:{state:`idle`}}function ye(e){let t=s(t=>e?t.hosts[e.hostId]:void 0),n=s(t=>e?.projectId?t.projects[e.projectId]:void 0),r=s(t=>e?.workspaceId?t.workspaces[e.workspaceId]:void 0),i=s(e=>e.runs),a=s(e=>e.tasks),o=s(t=>e?t.adapters[e.hostId]??_e:_e);return(0,H.useMemo)(()=>{if(!e)return null;let s=D(i,e),c=e.taskId??s?.taskId??null;return{session:e,host:t,hostName:t?.name??`Unknown host`,link:A(t,e),project:n,workspace:r,run:s,task:c?a[c]:void 0,control:E(s),adapters:o}},[e,t,n,r,i,a,o])}function X(e,t={}){let[n,r]=(0,H.useState)(!1),[i,a]=(0,H.useState)(null),o=(0,H.useRef)(e);o.current=e;let s=(0,H.useRef)(t);s.current=t;let c=(0,H.useRef)(!0);return(0,H.useEffect)(()=>(c.current=!0,()=>{c.current=!1}),[]),{run:(0,H.useCallback)(async(...e)=>{r(!0),a(null);try{let t=await o.current(...e),{success:n}=s.current,r=typeof n==`function`?n(t):n;return r&&S.success(r),!0}catch(e){return c.current&&a(e),s.current.errorToast&&S.error(l(e)),!1}finally{c.current&&r(!1)}},[]),busy:n,error:i,reset:(0,H.useCallback)(()=>a(null),[])}}function be(e,t=1e3){let[n,r]=(0,H.useState)(()=>Date.now());return(0,H.useEffect)(()=>{if(!e)return;r(Date.now());let n=setInterval(()=>r(Date.now()),t);return()=>clearInterval(n)},[e,t]),n}function xe(){let e=(0,H.useRef)(null),[t,n]=(0,H.useState)(0);return(0,H.useLayoutEffect)(()=>{let t=e.current;if(!t)return;n(t.clientWidth);let r=new ResizeObserver(([e])=>{e&&n(e.contentRect.width)});return r.observe(t),()=>r.disconnect()},[]),[e,t]}function Z({label:e,value:t}){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`dt`,{className:`text-muted`,children:e}),(0,U.jsx)(`dd`,{className:`min-w-0 font-mono text-xs break-all`,children:t})]})}function Se({session:e,hostLabel:t,open:n,onClose:r}){let i=I(e),a=e.stats;return(0,U.jsx)(L,{open:n,onClose:r,title:`Session info`,children:(0,U.jsxs)(`dl`,{className:`grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-2 text-sm`,children:[(0,U.jsx)(Z,{label:`Switchyard session`,value:e.id}),(0,U.jsx)(Z,{label:`Pi session id`,value:e.nativeHandle?.sessionId??`Not started`}),(0,U.jsx)(Z,{label:`Session file`,value:e.nativeHandle?.sessionFile??`None yet`}),(0,U.jsx)(Z,{label:`Host`,value:t}),(0,U.jsx)(Z,{label:`Working directory`,value:e.cwd}),(0,U.jsx)(Z,{label:`Origin`,value:e.provenance}),(0,U.jsx)(Z,{label:`Profile`,value:e.profileSnapshot.name}),(0,U.jsx)(Z,{label:`Created`,value:_(e.createdAt)}),a?.tokens!=null&&(0,U.jsx)(Z,{label:`Tokens`,value:a.tokens.toLocaleString(`en-US`)}),a?.costUsd!=null&&(0,U.jsx)(Z,{label:`Cost`,value:`$${a.costUsd.toFixed(2)}`}),i&&(0,U.jsx)(Z,{label:`Context`,value:`${i.label} (${i.detail})`})]})})}function Ce(e){let{session:n,run:r,control:a}=e,o=t(),[u,f]=(0,H.useState)(null),[h,g]=(0,H.useState)(n.title),_=he(n.provenance===`subagent`?null:e.workspace),y=s(e=>e.attention),b=(0,H.useMemo)(()=>Object.values(y).filter(e=>e.sessionId===n.id&&!e.resolvedAt&&c(e.reason)),[y,n.id]),x=s(e=>{if(n.provenance===`subagent`||n.archivedAt)return!1;let t=Object.values(e.sessions).filter(e=>e.archivedAt===null&&e.provenance!==`subagent`&&(n.workspaceId?e.workspaceId===n.workspaceId:e.workspaceId===null&&e.hostId===n.hostId&&e.cwd===n.cwd));return p(t)?.id===n.id}),C=X(()=>V.takeover(n.id),{success:`You have control. Automatic continuations are paused.`,errorToast:!0}),T=X(()=>V.returnToAutomation(n.id),{success:`Returned to automation.`,errorToast:!0}),E=X(()=>V.stop(n.id),{success:`Session stopped.`}),D=X(()=>V.resume(n.id),{success:`Session resumed.`,errorToast:!0}),k=X(e=>V.rename(n.id,e),{success:`Session renamed.`}),A=X(()=>V.cacheAlert(n.id,!n.cacheAlert),{errorToast:!0}),N=X(()=>V.archive(n.id),{success:`Session archived.`}),P=X(()=>V.unarchive(n.id),{success:`Session unarchived.`,errorToast:!0}),I=e.link===`connected`,R=()=>{f(null),E.reset(),k.reset(),N.reset()},z=M(n)?`Stop the session before archiving it`:null,B=(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(F,{open:u===`stop`,onClose:R,title:`Stop this session?`,description:`Stops the current execution and clears queued messages.`,confirmLabel:`Stop session`,busy:E.busy,error:E.error,errorTitle:`Could not stop`,onConfirm:()=>void E.run().then(e=>e&&f(null)),children:(0,U.jsx)(`p`,{className:`text-sm text-muted`,children:r?`The task keeps its run, marked interrupted and blocked (Stopped by user). Automation settings are unchanged.`:`Pi stays available; you can send a new message afterwards.`})}),(0,U.jsx)(L,{open:u===`rename`,onClose:R,title:`Rename session`,footer:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(i,{onClick:R,children:`Cancel`}),(0,U.jsx)(i,{variant:`primary`,type:`submit`,form:`sy-rename-form`,busy:k.busy,disabled:!h.trim(),children:`Save`})]}),children:(0,U.jsxs)(`form`,{id:`sy-rename-form`,onSubmit:e=>{e.preventDefault(),h.trim()&&k.run(h.trim()).then(e=>e&&f(null))},className:`flex flex-col gap-2`,children:[(0,U.jsx)(w,{id:`sy-rename-input`,label:`Title`,children:(0,U.jsx)(O,{id:`sy-rename-input`,value:h,maxLength:200,onChange:e=>g(e.target.value)})}),k.error!==null&&(0,U.jsx)(m,{compact:!0,title:`Could not rename`,error:l(k.error)})]})}),(0,U.jsx)(F,{open:u===`archive`,onClose:R,title:`Archive this session?`,description:`It leaves the navigator. The Pi session file stays on the host.`,danger:!1,confirmLabel:`Archive`,busy:N.busy,error:N.error,errorTitle:`Could not archive`,onConfirm:()=>void N.run().then(e=>{e&&(f(null),o(`/code`))}),children:n.runtime===`idle`&&(0,U.jsx)(`p`,{className:`text-sm text-muted`,children:`The idle Pi process is stopped first.`})}),e.workspace&&(0,U.jsx)(ge,{open:u===`link`,onClose:R,workspace:e.workspace,candidates:_.candidates}),(0,U.jsx)(Se,{session:n,hostLabel:`${e.hostName} (${e.link})`,open:u===`info`,onClose:R})]});return{canTakeover:a===`automation`,canReturn:a===`human`,canStop:M(n)&&I,canResume:!j(n)&&!!n.nativeHandle&&!n.readOnly&&I,archiveBlocked:z,takeover:()=>void C.run(),returnToAutomation:()=>void T.run(),requestStop:()=>f(`stop`),resume:()=>void D.run(),openRename:()=>{g(n.title),f(`rename`)},requestArchive:()=>{z?S.info(z):f(`archive`)},openInfo:()=>f(`info`),toggleCacheAlert:()=>void A.run(),unarchive:()=>void P.run(),dismissAttention:b.length>0?()=>{Promise.all(b.map(Q)).then(()=>S.success(`Cleared. A question Pi is still waiting on stays.`)).catch(e=>S.error(l(e)))}:null,setPinned:(e,t)=>{let r=`/api/views/${encodeURIComponent(e)}/sessions/${encodeURIComponent(n.id)}`;(t?v(r):d(r)).catch(e=>S.error(l(e)))},isPrimary:x,setPrimary:e=>{V.setPrimary(n.id,e).catch(e=>S.error(l(e)))},newInBranch:n.projectId&&n.workspaceId?()=>{V.createSession({projectId:n.projectId,workspace:{existingId:n.workspaceId},prompt:``}).then(e=>{s.getState().upsertSessionIfMissing(e),o(`/code/${encodeURIComponent(e.id)}`)}).catch(e=>S.error(l(e)))}:null,issueLink:e.workspace&&n.provenance!==`subagent`?{..._,open:()=>f(`link`),unlink:()=>{let e=_.linked;e&&ee(e.id).then(()=>S.success(`Unlinked from #${e.number}`)).catch(e=>S.error(l(e)))}}:null,busy:{takeover:C.busy,ret:T.busy,stop:E.busy,resume:D.busy,unarchive:P.busy},dialogs:B}}async function Q(e){let t=await v(`/api/attention/${encodeURIComponent(e.id)}/dismiss`),n=t&&typeof t==`object`&&`id`in t?t:{...e,resolvedAt:new Date().toISOString()};return s.setState(t=>t.attention[e.id]?{attention:{...t.attention,[e.id]:n}}:{}),n}var $=[`needs_input`,`failed`,`ready_for_review`,`unsupported_interaction`,`host_unreachable`,`cache_expiring`];function we(e){let t=Object.fromEntries($.map(e=>[e,[]]));for(let n of e)t[n.reason]?.push(n);return t}var Te={dismiss:`Marks it as seen and moves it to Dismissed; it stays open, and a question keeps flagging its session.`,clear:`Resolves it now: the session loses this flag and the item moves to History.`,clearNeedsInput:`Removes this session's Needs input flag and moves it to History; a question Pi is still waiting on stays.`};function Ee(e){return e===`dismissed`||e===`history`?e:`open`}function De(e,t){return t===`history`?[]:e.filter(e=>t===`open`?!e.acknowledgedAt:!!e.acknowledgedAt)}function Oe(e,t,n){return[e?.name,t?.title,n&&n.title!==t?.title?n.title:null].filter(Boolean).join(` · `)||`Switchyard`}export{Ee as a,Ce as c,X as d,be as f,Y as g,ce as h,we as i,Se as l,ve as m,$ as n,De as o,ye as p,Oe as r,Q as s,Te as t,xe as u};
|
|
4
|
-
//# sourceMappingURL=logic-BBQ4d1GC.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logic-BBQ4d1GC.js","names":["useState","_Fragment","useRef","useMemo","useState","useState","useMemo","useRef","useCallback","_Fragment","useState","useMemo","_Fragment","__toESM","useNavigate","cn","require_jsx_runtime","Button","require_react","StatusChip","useSyncStore","isInputAttentionReason","errorMessage","issueLinkProblem","apiDelete","primarySession","ErrorState","isApiError","issueLookup","formatTime","apiPost","compareIssues","issueUnlinkProblem","ArrowUp","toast","useBreakpoint","Field","UINodeRenderer","automationControl","runForSession","TextInput","IconButton","hostLink","isLive","isBusy","TextArea","Sheet","ConfirmDialog","contextMeter","Dialog","TextLink","headingSlug","Markdown","unlinkIssue","linkIssue","codeApi","import_react","UNSUPPORTED_COPY","DEFAULT_ACTIONS","findActions","node","c","found","isUnsupported","i","unsupportedView","offered","a","messageMode","runtime","import_jsx_runtime","hasInteractive","t","byLabel","by","InteractionCard","fromProps","upsert","s","busy","setBusy","error","setError","alreadyAnswered","setAlreadyAnswered","lastResponse","setLastResponse","acked","setAcked","interaction","pending","unsupported","sessionRuntime","composing","setComposing","message","setMessage","respond","response","res","onAnswered","other","sendMessage","text","bp","isDocumentPresentation","DocumentInteraction","r","readOnlyReason","sticky","flush","className","UnsupportedBody","actionId","formatRelative","view","answered","onSend","onCancelMessage","onAction","splitPresentation","last","rest","scrollTo","calm","el","useOnScreen","visible","setVisible","ref","io","firstMarkdown","m","md","leadingHeading","documentSections","out","fence","line","useActiveSection","active","setActive","pinned","setPinned","key","ids","els","root","e","entries","release","shown","h","bodyRef","startRef","optionsRef","optionsVisible","sheet","setSheet","split","heading","sections","pinSection","options","changes","question","title","answer","onRespond","variant","tone","showBar","disabled","wrapBtn","jump","mobile","o","useIssueLink","issues","list","linked","workspace","LinkIssueDialog","close","onClose","pick","issue","candidates","NO_ADAPTERS","useSessionLookup","absent","hydrated","sessionId","session","result","setResult","ctrl","useSessionContext","host","project","runs","tasks","adapters","run","taskId","useMutation","fnRef","fn","optsRef","opts","mounted","args","msg","success","useNow","now","setNow","ms","useElementWidth","width","setWidth","ro","entry","InfoRow","label","value","SessionInfoDialog","meter","stats","hostLabel","useSessionActions","ctx","navigate","dialog","setDialog","setTitle","link","attention","st","inputAttention","isPrimary","peers","x","takeover","ret","stop","resume","rename","cacheAlert","archive","unarchive","connected","archiveBlocked","dialogs","ok","control","dismissAttentionItem","path","viewId","primary","item","next","ATTENTION_GROUPS","groupAttention","items","ATTENTION_ACTION_HELP","normalizeShow","v","visibleAttention","show","all","attentionMeta","task"],"sources":["../../src/components/intent/unsupported.ts","../../src/components/intent/InteractionCard.tsx","../../src/features/workboard/LinkIssue.tsx","../../src/features/code/hooks.ts","../../src/features/code/SessionInfoDialog.tsx","../../src/features/code/SessionActions.tsx","../../src/features/attention/logic.ts"],"sourcesContent":["import type { Interaction, UINode } from \"@switchyard/protocol\";\n\n/** What actually happened when an extension opened a terminal-only `ctx.ui.custom()` dialog. */\nexport const UNSUPPORTED_COPY =\n \"An extension opened a terminal-only dialog. In RPC mode Pi gave it no answer, so the extension continued without one.\";\n\nexport interface UnsupportedAction {\n id: \"abort\" | \"message\";\n label: string;\n tone: \"primary\" | \"secondary\" | \"danger\";\n}\n\nconst DEFAULT_ACTIONS: UnsupportedAction[] = [\n { id: \"abort\", label: \"Stop the run\", tone: \"danger\" },\n { id: \"message\", label: \"Send a message to Pi\", tone: \"primary\" },\n];\n\nfunction findActions(node: UINode): Extract<UINode, { t: \"actions\" }> | null {\n if (node.t === \"actions\") return node;\n if (node.t === \"section\") {\n for (const c of node.children) {\n const found = findActions(c);\n if (found) return found;\n }\n }\n return null;\n}\n\nexport interface UnsupportedView {\n /** True until a person chose one of the alternatives. */\n answerable: boolean;\n actions: UnsupportedAction[];\n copy: string;\n}\n\nexport function isUnsupported(i: Interaction): boolean {\n return i.state === \"unsupported\" || i.source.kind === \"unsupported_custom\";\n}\n\n/** The alternatives the host offers for an unsupported dialog (stop the run, message). */\nexport function unsupportedView(i: Interaction): UnsupportedView {\n const node = findActions(i.presentation);\n const offered = (node?.actions ?? [])\n .filter(\n (a): a is typeof a & { id: \"abort\" | \"message\" } => a.id === \"abort\" || a.id === \"message\",\n )\n .map((a) => ({\n id: a.id,\n label: a.label,\n tone: (a.tone === \"default\"\n ? \"secondary\"\n : (a.tone ?? (a.id === \"abort\" ? \"danger\" : \"primary\"))) as UnsupportedAction[\"tone\"],\n }));\n return {\n answerable: i.state === \"unsupported\" && i.resolution === null,\n actions: offered.length > 0 ? offered : DEFAULT_ACTIONS,\n copy: UNSUPPORTED_COPY,\n };\n}\n\n/** A follow-up while Pi is still working queues behind the current turn. */\nexport function messageMode(runtime: string | undefined): \"prompt\" | \"followUp\" {\n return runtime === \"running\" || runtime === \"waiting_input\" ? \"followUp\" : \"prompt\";\n}\n","import type { Interaction, InteractionResponse, UINode } from \"@switchyard/protocol\";\nimport { ArrowUp } from \"lucide-react\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { useBreakpoint } from \"../../app/useBreakpoint\";\nimport { cn } from \"../../lib/cn\";\nimport { formatRelative } from \"../../lib/time\";\nimport { apiPost, errorMessage, isApiError } from \"../../sync/api\";\nimport { useSyncStore } from \"../../sync/store\";\nimport { Button } from \"../ui/Button\";\nimport { IconButton } from \"../ui/IconButton\";\nimport { Sheet } from \"../ui/Overlay\";\nimport { StatusChip } from \"../ui/StatusChip\";\nimport { ErrorState } from \"../ui/states\";\nimport { TextArea } from \"../ui/TextArea\";\nimport { TextLink } from \"../ui/TextLink\";\nimport { headingSlug, Markdown } from \"./Markdown\";\nimport { UINodeRenderer } from \"./UINodeRenderer\";\nimport { isUnsupported, messageMode, unsupportedView } from \"./unsupported\";\n\nexport interface InteractionCardProps {\n interaction: Interaction;\n /** Read-only session or host offline: show the question without answer controls. */\n readOnlyReason?: string | null;\n className?: string;\n /** Called after the coordinator acknowledged an answer. */\n onAnswered?: (interaction: Interaction) => void;\n /** DOM id (the \"Needs input\" strip scrolls to it). */\n id?: string;\n /** Stick the document header to the top of its scroller (false when the page scrolls). */\n sticky?: boolean;\n /** The page itself scrolls (no padded scroller): pin the header and bar flush. */\n flush?: boolean;\n}\n\nfunction hasInteractive(node: UINode): boolean {\n switch (node.t) {\n case \"form\":\n case \"confirm\":\n case \"actions\":\n return true;\n case \"list\":\n return node.items.some(hasInteractive);\n case \"section\":\n return node.children.some(hasInteractive);\n case \"tabs\":\n return node.tabs.some((t) => t.children.some(hasInteractive));\n default:\n return false;\n }\n}\n\nfunction byLabel(by: string): string {\n if (by === \"host\") return \"the host\";\n if (by === \"pi\") return \"Pi\";\n return \"a device\";\n}\n\n/**\n * A runtime interaction (extension dialog). Posts the answer with the\n * interaction revision and waits for the acknowledgement; there is no\n * optimistic resolution. A 409 shows \"Already answered: <summary>\".\n */\nexport function InteractionCard({\n interaction: fromProps,\n readOnlyReason,\n className,\n onAnswered,\n id,\n sticky,\n flush,\n}: InteractionCardProps) {\n const upsert = useSyncStore((s) => s.upsertInteraction);\n const [busy, setBusy] = useState(false);\n const [error, setError] = useState<unknown>(null);\n const [alreadyAnswered, setAlreadyAnswered] = useState<string | null>(null);\n const [lastResponse, setLastResponse] = useState<InteractionResponse | null>(null);\n // The acknowledged interaction from the answer/409 response, until the prop catches up.\n const [acked, setAcked] = useState<Interaction | null>(null);\n const interaction =\n acked && acked.id === fromProps.id && acked.revision > fromProps.revision ? acked : fromProps;\n\n const pending = interaction.state === \"pending\";\n const unsupported = isUnsupported(interaction);\n const sessionRuntime = useSyncStore((s) => s.sessions[interaction.sessionId]?.runtime);\n const [composing, setComposing] = useState(false);\n const [message, setMessage] = useState(\"\");\n\n const respond = async (response: InteractionResponse): Promise<boolean> => {\n setBusy(true);\n setError(null);\n setLastResponse(response);\n try {\n const res = await apiPost<{ status: string; interaction: Interaction }>(\n `/api/interactions/${encodeURIComponent(interaction.id)}/answer`,\n { revision: interaction.revision, response },\n );\n if (res?.interaction) {\n upsert(res.interaction);\n setAcked(res.interaction);\n onAnswered?.(res.interaction);\n }\n return true;\n } catch (e) {\n if (isApiError(e, \"already_answered\")) {\n const other = (e.details as { interaction?: Interaction } | undefined)?.interaction;\n if (other) {\n upsert(other);\n setAcked(other);\n }\n setAlreadyAnswered(other?.resolution?.summary ?? \"answered on another device\");\n } else {\n setError(e);\n }\n return false;\n } finally {\n setBusy(false);\n }\n };\n\n /** \"Send a message to Pi\": deliver the message first, then record the choice. */\n const sendMessage = async () => {\n const text = message.trim();\n if (!text) return;\n setBusy(true);\n setError(null);\n try {\n await apiPost(`/api/sessions/${encodeURIComponent(interaction.sessionId)}/prompt`, {\n text,\n mode: messageMode(sessionRuntime),\n });\n } catch (e) {\n setError(e);\n setBusy(false);\n return;\n }\n setBusy(false);\n if (await respond({ kind: \"action\", actionId: \"message\" })) {\n setComposing(false);\n setMessage(\"\");\n }\n };\n\n const bp = useBreakpoint();\n if (\n pending &&\n !alreadyAnswered &&\n !unsupported &&\n isDocumentPresentation(interaction.presentation)\n ) {\n return (\n <DocumentInteraction\n id={id}\n interaction={interaction}\n node={interaction.presentation}\n onRespond={(r) => void respond(r)}\n busy={busy}\n disabled={!!readOnlyReason}\n mobile={bp === \"mobile\"}\n sticky={sticky ?? true}\n flush={flush ?? false}\n className={className}\n />\n );\n }\n\n return (\n <article\n id={id}\n aria-label={`Question: ${interaction.title}`}\n className={cn(\n \"flex min-w-0 flex-col gap-3 border-l-2 py-1 pl-3\",\n pending ? \"border-warning\" : \"border-border\",\n className,\n )}\n >\n <header className=\"flex min-w-0 flex-wrap items-start gap-2\">\n <h3 className=\"min-w-0 flex-1 text-sm font-semibold break-words\">{interaction.title}</h3>\n <StatusChip kind=\"interaction\" value={interaction.state} size=\"sm\" />\n </header>\n\n {alreadyAnswered && (\n <p role=\"status\" className=\"rounded-md bg-surface-2 px-3 py-2 text-sm\">\n Already answered: {alreadyAnswered}\n </p>\n )}\n\n {unsupported ? (\n <UnsupportedBody\n interaction={interaction}\n readOnlyReason={readOnlyReason ?? null}\n busy={busy}\n answered={alreadyAnswered !== null}\n composing={composing}\n message={message}\n setMessage={setMessage}\n onAction={(actionId) => {\n if (actionId === \"message\") setComposing(true);\n else void respond({ kind: \"action\", actionId });\n }}\n onSend={() => void sendMessage()}\n onCancelMessage={() => setComposing(false)}\n />\n ) : pending && !alreadyAnswered ? (\n <>\n {readOnlyReason && <p className=\"text-sm text-muted\">{readOnlyReason}</p>}\n <UINodeRenderer\n node={interaction.presentation}\n onRespond={(r) => void respond(r)}\n busy={busy}\n disabled={!!readOnlyReason}\n />\n {!readOnlyReason && !hasInteractive(interaction.presentation) && (\n <div>\n <Button busy={busy} onClick={() => void respond({ kind: \"cancel\" })}>\n Dismiss\n </Button>\n </div>\n )}\n {busy && (\n <p role=\"status\" className=\"text-sm text-muted\">\n Sending answer… waiting for the host to confirm.\n </p>\n )}\n </>\n ) : alreadyAnswered ? null : interaction.resolution ? (\n <p className=\"text-sm text-muted\">\n {interaction.state === \"resolved\" ? \"Answered\" : \"Closed\"} by{\" \"}\n {byLabel(interaction.resolution.by)} {formatRelative(interaction.resolution.at)}:{\" \"}\n <span className=\"text-text\">{interaction.resolution.summary}</span>\n </p>\n ) : (\n <p className=\"text-sm text-muted\">\n {interaction.state === \"expired\"\n ? \"This question expired before it was answered (Pi closed the dialog).\"\n : \"This question was canceled.\"}\n </p>\n )}\n\n {error !== null && (\n <ErrorState\n compact\n title=\"Answer not delivered\"\n error={errorMessage(error)}\n onRetry={lastResponse ? () => void respond(lastResponse) : undefined}\n />\n )}\n </article>\n );\n}\n\n/** A terminal-only dialog: what happened, and the alternatives the host offers until one is chosen. */\nfunction UnsupportedBody({\n interaction,\n readOnlyReason,\n busy,\n answered,\n composing,\n message,\n setMessage,\n onAction,\n onSend,\n onCancelMessage,\n}: {\n interaction: Interaction;\n readOnlyReason: string | null;\n busy: boolean;\n answered: boolean;\n composing: boolean;\n message: string;\n setMessage: (t: string) => void;\n onAction: (actionId: \"abort\" | \"message\") => void;\n onSend: () => void;\n onCancelMessage: () => void;\n}) {\n const view = unsupportedView(interaction);\n return (\n <div className=\"flex min-w-0 flex-col gap-2\">\n <p className=\"text-sm text-muted\">{view.copy}</p>\n {interaction.resolution ? (\n <p className=\"text-sm text-muted\">\n Chosen by {byLabel(interaction.resolution.by)} {formatRelative(interaction.resolution.at)}\n : <span className=\"text-text\">{interaction.resolution.summary}</span>\n </p>\n ) : !view.answerable || answered ? null : readOnlyReason ? (\n <p className=\"text-sm text-muted\">{readOnlyReason}</p>\n ) : composing ? (\n <div className=\"flex min-w-0 flex-col gap-2\">\n <TextArea\n aria-label=\"Message for Pi\"\n value={message}\n onChange={(e) => setMessage(e.target.value)}\n rows={3}\n autoFocus\n placeholder=\"Tell Pi what to do instead\"\n />\n <div className=\"flex flex-wrap gap-2\">\n <Button variant=\"primary\" busy={busy} disabled={!message.trim()} onClick={onSend}>\n Send message\n </Button>\n <Button disabled={busy} onClick={onCancelMessage}>\n Cancel\n </Button>\n </div>\n </div>\n ) : (\n <div className=\"flex flex-wrap gap-2\">\n {view.actions.map((a) => (\n <Button\n key={a.id}\n variant={a.tone}\n busy={busy && a.id === \"abort\"}\n disabled={busy}\n onClick={() => onAction(a.id)}\n >\n {a.label}\n </Button>\n ))}\n </div>\n )}\n </div>\n );\n}\n\n/** A content section that ends in a row of actions (a plan with its options), if `node` is one. */\nexport function splitPresentation(node: UINode): { body: UINode; actions: UINode } | null {\n if (node.t !== \"section\" || node.children.length < 2) return null;\n const last = node.children[node.children.length - 1];\n if (last?.t !== \"actions\") return null;\n const rest = node.children.slice(0, -1);\n if (rest.some(hasInteractive)) return null;\n return { body: { ...node, children: rest }, actions: last };\n}\n\nfunction scrollTo(el: HTMLElement | null, block: \"start\" | \"center\") {\n const calm = window.matchMedia?.(\"(prefers-reduced-motion: reduce)\").matches;\n el?.scrollIntoView({ behavior: calm ? \"auto\" : \"smooth\", block });\n}\n\n/** True while `el` is (at least partly) on screen; assumed visible without IntersectionObserver. */\nfunction useOnScreen(ref: React.RefObject<HTMLElement | null>): boolean {\n const [visible, setVisible] = useState(true);\n useEffect(() => {\n const el = ref.current;\n if (!el || typeof IntersectionObserver === \"undefined\") return;\n const io = new IntersectionObserver(([e]) => setVisible(!!e?.isIntersecting));\n io.observe(el);\n return () => io.disconnect();\n }, [ref]);\n return visible;\n}\n\nfunction firstMarkdown(node: UINode): string | null {\n if (node.t === \"markdown\") return node.text;\n if (node.t === \"section\") {\n for (const c of node.children) {\n const m = firstMarkdown(c);\n if (m !== null) return m;\n }\n }\n return null;\n}\n\n/** A long document with trailing options (a plan awaiting approval). */\nexport function isDocumentPresentation(node: UINode): boolean {\n if (!splitPresentation(node)) return false;\n const md = firstMarkdown(node);\n return md !== null && (md.length >= 400 || md.split(\"\\n\").length >= 12);\n}\n\n/** The first heading of a document, its text and the markdown without it. */\nexport function leadingHeading(md: string): { title: string | null; rest: string } {\n const m = /^\\s*#{1,6}\\s+(.+?)\\s*(?:\\n+|$)/.exec(md);\n return m?.[1] ? { title: m[1], rest: md.slice(m[0].length) } : { title: null, rest: md };\n}\n\n/** `##` headings of a document, for the outline. */\nexport function documentSections(md: string): { text: string; id: string }[] {\n const out: { text: string; id: string }[] = [];\n let fence = false;\n for (const line of md.split(\"\\n\")) {\n if (/^\\s*```/.test(line)) fence = !fence;\n const m = !fence ? /^##\\s+(.+?)\\s*$/.exec(line) : null;\n if (m?.[1]) out.push({ text: m[1], id: headingSlug(m[1]) });\n }\n return out;\n}\n\n/** Id of the outline entry whose heading is the last one scrolled past the top. */\nfunction useActiveSection(ids: string[], root: React.RefObject<HTMLElement | null>) {\n const [active, setActive] = useState<string | null>(null);\n const [pinned, setPinned] = useState<string | null>(null);\n const key = ids.join(\"|\");\n // biome-ignore lint/correctness/useExhaustiveDependencies: `key` stands for `ids`\n useEffect(() => {\n if (typeof IntersectionObserver === \"undefined\" || !ids.length) return;\n const els = ids\n .map((i) => root.current?.querySelector<HTMLElement>(`#${CSS.escape(i)}`))\n .filter((e): e is HTMLElement => !!e);\n const io = new IntersectionObserver(\n (entries) => {\n for (const e of entries) if (e.isIntersecting) setActive(e.target.id);\n },\n { rootMargin: \"-56px 0px -70% 0px\" },\n );\n for (const e of els) io.observe(e);\n // A click on an entry near the end cannot scroll it to the top: it stays selected until the\n // reader scrolls again.\n const release = () => setPinned(null);\n window.addEventListener(\"wheel\", release, { passive: true });\n window.addEventListener(\"touchmove\", release, { passive: true });\n window.addEventListener(\"keydown\", release);\n return () => {\n io.disconnect();\n window.removeEventListener(\"wheel\", release);\n window.removeEventListener(\"touchmove\", release);\n window.removeEventListener(\"keydown\", release);\n };\n }, [key, root]);\n const shown = pinned ?? active;\n // Mark the heading in the text that the outline highlights.\n // biome-ignore lint/correctness/useExhaustiveDependencies: `key` stands for `ids`\n useEffect(() => {\n const r = root.current;\n if (!r) return;\n for (const h of r.querySelectorAll<HTMLElement>(\"h2[data-active]\")) delete h.dataset.active;\n if (shown) {\n const el = r.querySelector<HTMLElement>(`#${CSS.escape(shown)}`);\n if (el) el.dataset.active = \"true\";\n }\n }, [shown, key, root]);\n return [shown, setPinned] as const;\n}\n\n/**\n * Document question (a plan awaiting approval): no card of its own. The plan's own heading titles\n * it, the question labels the answers, revisions come first. Phone: compact header, prose, a bar\n * with the answers pinned to the bottom. Desktop: a section outline beside prose at a readable\n * measure, and a wrapping bar of answers. The bar hides while the inline options are on screen.\n */\nfunction DocumentInteraction({\n id,\n interaction,\n node,\n onRespond,\n busy,\n disabled,\n mobile,\n sticky,\n flush,\n className,\n}: {\n id?: string;\n interaction: Interaction;\n node: UINode;\n onRespond: (r: InteractionResponse) => void;\n busy: boolean;\n disabled: boolean;\n mobile: boolean;\n sticky: boolean;\n flush: boolean;\n className?: string;\n}) {\n const bodyRef = useRef<HTMLDivElement>(null);\n const startRef = useRef<HTMLDivElement>(null);\n const optionsRef = useRef<HTMLElement>(null);\n const optionsVisible = useOnScreen(optionsRef);\n const [sheet, setSheet] = useState(false);\n const split = splitPresentation(node);\n const md =\n split?.body.t === \"section\"\n ? (split.body.children.find((c) => c.t === \"markdown\") as\n | Extract<UINode, { t: \"markdown\" }>\n | undefined)\n : undefined;\n const { title: heading, rest } = leadingHeading(md?.text ?? \"\");\n const sections = documentSections(rest);\n const [active, pinSection] = useActiveSection(\n sections.map((s) => s.id),\n bodyRef,\n );\n if (split?.body.t !== \"section\") return null;\n const options = (split.actions as Extract<UINode, { t: \"actions\" }>).actions;\n const changes = split.body.children.find((c) => c.t === \"section\");\n const question = interaction.title;\n const title = heading ?? question;\n const answer = (actionId: string) => {\n setSheet(false);\n onRespond({ kind: \"action\", actionId });\n };\n const variant = (i: number, tone?: string) =>\n i === 0 || tone === \"primary\" ? \"primary\" : tone === \"danger\" ? \"danger\" : \"secondary\";\n const showBar = !disabled && !optionsVisible;\n const wrapBtn = \"h-auto! min-h-9 min-w-0 py-1.5 text-left leading-tight whitespace-normal!\";\n const jump = (el: HTMLElement | null) => scrollTo(el, \"start\");\n return (\n <article\n id={id}\n data-testid=\"document-interaction\"\n aria-label={`Question: ${question}`}\n className={cn(\n \"w-full min-w-0 self-stretch border-t border-border\",\n\n className,\n )}\n >\n <header\n className={cn(\n \"z-10 flex min-w-0 items-center gap-2 border-b border-border bg-bg px-4 py-2 md:px-6\",\n sticky && (flush ? \"md:sticky md:top-0\" : \"max-md:static md:sticky md:-top-3\"),\n )}\n >\n <h3 className=\"min-w-0 flex-1 truncate text-[15px] leading-snug font-semibold md:text-sm\">\n {title}\n </h3>\n {mobile && (\n <StatusChip\n kind=\"interaction\"\n value={interaction.state}\n size=\"sm\"\n className=\"[&>span]:sr-only\"\n />\n )}\n {!disabled && !optionsVisible && (\n <TextLink\n size=\"xs\"\n className=\"shrink-0\"\n onClick={() => scrollTo(optionsRef.current, \"center\")}\n >\n Jump to options ↓\n </TextLink>\n )}\n </header>\n {changes && (\n <aside className=\"mx-4 mt-3 rounded-md bg-warning-soft px-3 py-2 text-sm md:mx-6\">\n <UINodeRenderer node={changes} />\n </aside>\n )}\n <div className=\"px-4 py-4 md:grid md:grid-cols-[13rem_minmax(0,1fr)] 2xl:grid-cols-[15rem_minmax(0,1fr)] md:gap-8 md:px-6\">\n {sections.length > 0 && (\n <nav aria-label=\"Plan sections\" className=\"hidden md:block\">\n <ol className=\"sticky top-16 flex flex-col gap-0.5 border-l border-border text-sm\">\n <li>\n <button\n type=\"button\"\n className=\"-ml-px block w-full truncate border-l-2 border-transparent py-1 pl-3 text-left text-muted hover:text-text\"\n onClick={() => jump(startRef.current)}\n >\n Start\n </button>\n </li>\n {sections.map((s) => (\n <li key={s.id}>\n <button\n type=\"button\"\n aria-current={active === s.id}\n className=\"-ml-px block w-full truncate border-l-2 border-transparent py-1 pl-3 text-left text-muted hover:text-text aria-[current=true]:border-accent aria-[current=true]:text-text\"\n onClick={() => {\n pinSection(s.id);\n jump(\n bodyRef.current?.querySelector<HTMLElement>(`#${CSS.escape(s.id)}`) ?? null,\n );\n }}\n >\n {s.text}\n </button>\n </li>\n ))}\n </ol>\n </nav>\n )}\n <div ref={startRef} className=\"min-w-0 scroll-mt-14\">\n <div\n ref={bodyRef}\n className=\"sy-prose-compact max-w-[80ch] min-w-0 2xl:max-w-[100ch] min-[1800px]:text-base [&_h2]:scroll-mt-14\"\n >\n <Markdown text={rest} headingIds className=\"text-inherit\" />\n </div>\n </div>\n </div>\n <section\n ref={optionsRef}\n data-testid=\"plan-options\"\n aria-label={question}\n className=\"border-t border-border px-4 py-3 md:px-6\"\n >\n <p className=\"mb-2 text-sm font-medium\">{question}</p>\n {!disabled && (\n <div className=\"flex min-w-0 flex-col gap-2 md:flex-row md:flex-wrap\">\n {options.map((o, i) => (\n <Button\n key={o.id}\n variant={variant(i, o.tone)}\n size=\"md\"\n disabled={busy}\n className={cn(wrapBtn, \"md:text-center\")}\n onClick={() => answer(o.id)}\n >\n {o.label}\n </Button>\n ))}\n </div>\n )}\n <TextLink\n size=\"xs\"\n className=\"mt-2\"\n icon={<ArrowUp aria-hidden className=\"size-3.5\" />}\n onClick={() => jump(startRef.current)}\n >\n Back to the plan start\n </TextLink>\n </section>\n {showBar && (\n <div\n data-testid=\"answer-bar\"\n className={cn(\n \"z-10 flex min-w-0 items-center gap-2 border-t border-border bg-bg px-4 py-2 md:gap-3 md:px-6\",\n sticky && !flush ? \"sticky -bottom-3\" : \"sticky bottom-0\",\n )}\n >\n {mobile ? (\n <>\n <IconButton\n label=\"Plan start\"\n icon={<ArrowUp className=\"size-4\" />}\n variant=\"secondary\"\n onClick={() => jump(startRef.current)}\n />\n {options.length > 2 ? (\n <>\n <Button\n variant=\"primary\"\n disabled={busy}\n className={cn(wrapBtn, \"flex-1\")}\n onClick={() => answer(options[0]!.id)}\n >\n {options[0]!.label}\n </Button>\n <Button variant=\"secondary\" onClick={() => setSheet(true)}>\n More ({options.length - 1})\n </Button>\n </>\n ) : (\n options.map((o, i) => (\n <Button\n key={o.id}\n variant={variant(i, o.tone)}\n disabled={busy}\n className={cn(wrapBtn, \"flex-1\")}\n onClick={() => answer(o.id)}\n >\n {o.label}\n </Button>\n ))\n )}\n </>\n ) : (\n <>\n <span\n className=\"max-w-[16rem] min-w-0 shrink truncate text-sm font-medium\"\n title={question}\n >\n {question}\n </span>\n <div className=\"grid min-w-0 flex-1 grid-cols-[repeat(auto-fit,minmax(11rem,1fr))] gap-2\">\n {options.map((o, i) => (\n <Button\n key={o.id}\n variant={variant(i, o.tone)}\n disabled={busy}\n className={cn(wrapBtn, \"w-full md:text-center\")}\n onClick={() => answer(o.id)}\n >\n {o.label}\n </Button>\n ))}\n </div>\n <IconButton\n label=\"Plan start\"\n icon={<ArrowUp className=\"size-4\" />}\n variant=\"secondary\"\n size=\"sm\"\n onClick={() => jump(startRef.current)}\n />\n </>\n )}\n </div>\n )}\n <Sheet open={sheet} onClose={() => setSheet(false)} title={question}>\n <div className=\"flex flex-col gap-2\">\n {options.map((o, i) => (\n <Button\n key={o.id}\n block\n variant={variant(i, o.tone)}\n disabled={busy}\n className={wrapBtn}\n onClick={() => answer(o.id)}\n >\n {o.label}\n </Button>\n ))}\n </div>\n </Sheet>\n </article>\n );\n}\n","import {\n compareIssues,\n issueLinkProblem,\n issueLookup,\n issueUnlinkProblem,\n type TrackedIssue,\n type Workspace,\n} from \"@switchyard/protocol\";\nimport { useMemo, useState } from \"react\";\nimport { Button } from \"../../components/ui/Button\";\nimport { Dialog } from \"../../components/ui/Overlay\";\nimport { ErrorState } from \"../../components/ui/states\";\nimport { toast } from \"../../components/ui/Toast\";\nimport { errorMessage } from \"../../sync/api\";\nimport { useSyncStore } from \"../../sync/store\";\nimport { linkIssue } from \"./api\";\n\n/** A workspace's issue, the issues it could be linked to, and whether its link can be undone here. */\nexport function useIssueLink(workspace: Workspace | null | undefined): {\n linked: TrackedIssue | null;\n candidates: TrackedIssue[];\n canUnlink: boolean;\n} {\n const issues = useSyncStore((s) => s.issues);\n return useMemo(() => {\n const list = Object.values(issues);\n const linked = workspace ? issueLookup(list)(workspace) : null;\n const candidates =\n workspace && !linked\n ? list.filter((i) => issueLinkProblem(i, workspace, list) === null).sort(compareIssues)\n : [];\n return { linked, candidates, canUnlink: !!linked && issueUnlinkProblem(linked) === null };\n }, [issues, workspace]);\n}\n\n/** Pick a not-started issue to link a worktree's branch to. */\nexport function LinkIssueDialog({\n open,\n onClose,\n workspace,\n candidates,\n}: {\n open: boolean;\n onClose: () => void;\n workspace: Workspace;\n candidates: TrackedIssue[];\n}) {\n const [busy, setBusy] = useState<string | null>(null);\n const [error, setError] = useState<unknown>(null);\n const close = () => {\n setError(null);\n onClose();\n };\n const pick = async (issue: TrackedIssue) => {\n if (busy) return;\n setBusy(issue.id);\n setError(null);\n try {\n await linkIssue(issue.id, workspace.id);\n toast.success(`Linked to #${issue.number}`);\n close();\n } catch (e) {\n setError(e);\n } finally {\n setBusy(null);\n }\n };\n return (\n <Dialog\n open={open}\n onClose={close}\n title=\"Link to issue\"\n description={`Link ${workspace.branch} to an issue that has no branch yet. Its sessions then stay in the tracker's view.`}\n footer={<Button onClick={close}>Cancel</Button>}\n >\n <div className=\"flex min-w-0 flex-col gap-2\">\n {error !== null && (\n <ErrorState compact title=\"Could not link\" error={errorMessage(error)} />\n )}\n {candidates.length === 0 && (\n <p className=\"text-sm text-muted\">No issue without a branch in this project.</p>\n )}\n <ul className=\"flex min-w-0 flex-col gap-1\">\n {candidates.map((i) => (\n <li key={i.id} className=\"min-w-0\">\n <button\n type=\"button\"\n disabled={!!busy}\n aria-busy={busy === i.id}\n onClick={() => void pick(i)}\n className=\"tap flex w-full min-w-0 flex-col rounded-md px-2 py-1.5 text-left hover:bg-surface-2 disabled:opacity-55\"\n >\n <span className=\"truncate text-sm\">\n #{i.number} {i.title}\n </span>\n <span className=\"truncate text-xs text-muted\">\n {i.repository}\n {i.board?.priority ? ` · ${i.board.priority.name}` : \"\"}\n </span>\n </button>\n </li>\n ))}\n </ul>\n </div>\n </Dialog>\n );\n}\n","import type {\n AdapterInfo,\n Host,\n Project,\n Run,\n Session,\n Task,\n Workspace,\n} from \"@switchyard/protocol\";\nimport { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from \"react\";\nimport { toast } from \"../../components/ui/Toast\";\nimport { errorMessage, isApiError } from \"../../sync/api\";\nimport { useSyncStore } from \"../../sync/store\";\nimport { codeApi } from \"./api\";\nimport {\n type AutomationControl,\n automationControl,\n type HostLink,\n hostLink,\n runForSession,\n} from \"./model\";\n\nexport interface SessionContext {\n session: Session;\n host: Host | undefined;\n hostName: string;\n link: HostLink;\n project: Project | undefined;\n workspace: Workspace | undefined;\n run: Run | null;\n task: Task | undefined;\n control: AutomationControl;\n adapters: AdapterInfo[];\n}\n\nconst NO_ADAPTERS: AdapterInfo[] = [];\n\nexport type SessionLookup =\n | { state: \"idle\" }\n | { state: \"loading\" }\n | { state: \"missing\" }\n | { state: \"error\"; error: string };\n\n/**\n * A session the snapshot leaves out (archived) is fetched by id and kept in the sync store, so\n * its URL still opens after a reload and live events (Unarchive) update it.\n */\nexport function useSessionLookup(\n sessionId: string | null,\n session: Session | undefined,\n hydrated: boolean,\n): SessionLookup {\n const absent = hydrated && !!sessionId && !session;\n const [result, setResult] = useState<{ id: string; lookup: SessionLookup } | null>(null);\n useEffect(() => {\n if (!absent || !sessionId) return;\n const ctrl = new AbortController();\n setResult({ id: sessionId, lookup: { state: \"loading\" } });\n codeApi.get(sessionId, ctrl.signal).then(\n (s) => {\n useSyncStore.getState().upsertSessionIfMissing(s);\n setResult(null);\n },\n (e) => {\n if (ctrl.signal.aborted) return;\n setResult({\n id: sessionId,\n lookup: isApiError(e, \"not_found\")\n ? { state: \"missing\" }\n : { state: \"error\", error: errorMessage(e) },\n });\n },\n );\n return () => ctrl.abort();\n }, [absent, sessionId]);\n if (!absent) return { state: \"idle\" };\n return result?.id === sessionId ? result.lookup : { state: \"loading\" };\n}\n\n/** Everything the session views need about one session, from the store. */\nexport function useSessionContext(session: Session | undefined): SessionContext | null {\n const host = useSyncStore((s) => (session ? s.hosts[session.hostId] : undefined));\n const project = useSyncStore((s) =>\n session?.projectId ? s.projects[session.projectId] : undefined,\n );\n const workspace = useSyncStore((s) =>\n session?.workspaceId ? s.workspaces[session.workspaceId] : undefined,\n );\n const runs = useSyncStore((s) => s.runs);\n const tasks = useSyncStore((s) => s.tasks);\n const adapters = useSyncStore((s) =>\n session ? (s.adapters[session.hostId] ?? NO_ADAPTERS) : NO_ADAPTERS,\n );\n return useMemo(() => {\n if (!session) return null;\n const run = runForSession(runs, session);\n const taskId = session.taskId ?? run?.taskId ?? null;\n return {\n session,\n host,\n hostName: host?.name ?? \"Unknown host\",\n link: hostLink(host, session),\n project,\n workspace,\n run,\n task: taskId ? tasks[taskId] : undefined,\n control: automationControl(run),\n adapters,\n };\n }, [session, host, project, workspace, runs, tasks, adapters]);\n}\n\nexport interface Mutation<A extends unknown[]> {\n run: (...args: A) => Promise<boolean>;\n busy: boolean;\n error: unknown;\n reset: () => void;\n}\n\n/**\n * Wrap a REST mutation: busy state, error kept for inline display (with\n * retry), and a success toast only after the coordinator acknowledged.\n */\nexport function useMutation<A extends unknown[], R>(\n fn: (...args: A) => Promise<R>,\n opts: { success?: string | ((r: R) => string | null); errorToast?: boolean } = {},\n): Mutation<A> {\n const [busy, setBusy] = useState(false);\n const [error, setError] = useState<unknown>(null);\n const fnRef = useRef(fn);\n fnRef.current = fn;\n const optsRef = useRef(opts);\n optsRef.current = opts;\n const mounted = useRef(true);\n useEffect(() => {\n mounted.current = true;\n return () => {\n mounted.current = false;\n };\n }, []);\n const run = useCallback(async (...args: A) => {\n setBusy(true);\n setError(null);\n try {\n const r = await fnRef.current(...args);\n const { success } = optsRef.current;\n const msg = typeof success === \"function\" ? success(r) : success;\n if (msg) toast.success(msg);\n return true;\n } catch (e) {\n if (mounted.current) setError(e);\n if (optsRef.current.errorToast) toast.error(errorMessage(e));\n return false;\n } finally {\n if (mounted.current) setBusy(false);\n }\n }, []);\n const reset = useCallback(() => setError(null), []);\n return { run, busy, error, reset };\n}\n\n/** Re-render every `ms` while `active` (elapsed timers). */\nexport function useNow(active: boolean, ms = 1000): number {\n const [now, setNow] = useState(() => Date.now());\n useEffect(() => {\n if (!active) return;\n setNow(Date.now());\n const t = setInterval(() => setNow(Date.now()), ms);\n return () => clearInterval(t);\n }, [active, ms]);\n return now;\n}\n\n/** Width of an element, kept current with a ResizeObserver. */\nexport function useElementWidth<T extends HTMLElement>() {\n const ref = useRef<T>(null);\n const [width, setWidth] = useState(0);\n useLayoutEffect(() => {\n const el = ref.current;\n if (!el) return;\n setWidth(el.clientWidth);\n const ro = new ResizeObserver(([entry]) => {\n if (entry) setWidth(entry.contentRect.width);\n });\n ro.observe(el);\n return () => ro.disconnect();\n }, []);\n return [ref, width] as const;\n}\n","import type { Session } from \"@switchyard/protocol\";\nimport { Dialog } from \"../../components/ui/Overlay\";\nimport { formatTime } from \"../../lib/time\";\nimport { contextMeter } from \"./model\";\n\nfunction InfoRow({ label, value }: { label: string; value: string }) {\n return (\n <>\n <dt className=\"text-muted\">{label}</dt>\n <dd className=\"min-w-0 font-mono text-xs break-all\">{value}</dd>\n </>\n );\n}\n\nexport interface SessionInfoDialogProps {\n session: Session;\n hostLabel: string;\n open: boolean;\n onClose: () => void;\n}\n\n/** Session ids, Pi session file, tokens, cost and context. */\nexport function SessionInfoDialog({ session, hostLabel, open, onClose }: SessionInfoDialogProps) {\n const meter = contextMeter(session);\n const stats = session.stats;\n return (\n <Dialog open={open} onClose={onClose} title=\"Session info\">\n <dl className=\"grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-2 text-sm\">\n <InfoRow label=\"Switchyard session\" value={session.id} />\n <InfoRow label=\"Pi session id\" value={session.nativeHandle?.sessionId ?? \"Not started\"} />\n <InfoRow label=\"Session file\" value={session.nativeHandle?.sessionFile ?? \"None yet\"} />\n <InfoRow label=\"Host\" value={hostLabel} />\n <InfoRow label=\"Working directory\" value={session.cwd} />\n <InfoRow label=\"Origin\" value={session.provenance} />\n <InfoRow label=\"Profile\" value={session.profileSnapshot.name} />\n <InfoRow label=\"Created\" value={formatTime(session.createdAt)} />\n {stats?.tokens != null && (\n <InfoRow label=\"Tokens\" value={stats.tokens.toLocaleString(\"en-US\")} />\n )}\n {stats?.costUsd != null && <InfoRow label=\"Cost\" value={`$${stats.costUsd.toFixed(2)}`} />}\n {meter && <InfoRow label=\"Context\" value={`${meter.label} (${meter.detail})`} />}\n </dl>\n </Dialog>\n );\n}\n","import {\n type AttentionItem,\n isInputAttentionReason,\n primarySession,\n type TrackedIssue,\n} from \"@switchyard/protocol\";\nimport { type ReactNode, useMemo, useState } from \"react\";\nimport { useNavigate } from \"react-router\";\nimport { Button } from \"../../components/ui/Button\";\nimport { Field } from \"../../components/ui/Field\";\nimport { ConfirmDialog, Dialog } from \"../../components/ui/Overlay\";\nimport { ErrorState } from \"../../components/ui/states\";\nimport { TextInput } from \"../../components/ui/TextArea\";\nimport { toast } from \"../../components/ui/Toast\";\nimport { apiDelete, apiPost, errorMessage } from \"../../sync/api\";\nimport { useSyncStore } from \"../../sync/store\";\nimport { unlinkIssue } from \"../workboard/api\";\nimport { LinkIssueDialog, useIssueLink } from \"../workboard/LinkIssue\";\nimport { codeApi } from \"./api\";\nimport type { SessionContext } from \"./hooks\";\nimport { useMutation } from \"./hooks\";\nimport { isBusy, isLive } from \"./model\";\nimport { SessionInfoDialog } from \"./SessionInfoDialog\";\n\nexport interface SessionActions {\n canTakeover: boolean;\n canReturn: boolean;\n canStop: boolean;\n canResume: boolean;\n /** Why archive is unavailable, or null. */\n archiveBlocked: string | null;\n takeover: () => void;\n returnToAutomation: () => void;\n requestStop: () => void;\n resume: () => void;\n openRename: () => void;\n requestArchive: () => void;\n openInfo: () => void;\n toggleCacheAlert: () => void;\n unarchive: () => void;\n /** Clear this session's \"Needs input\" flag (its open input attention), or null when it has none. */\n dismissAttention: (() => void) | null;\n /** Pin the session to a view, or unpin it. */\n setPinned: (viewId: string, pinned: boolean) => void;\n /** This session is its branch's primary session. */\n isPrimary: boolean;\n setPrimary: (primary: boolean) => void;\n /** Start another session in this session's workspace, or null when it has none. */\n newInBranch: (() => void) | null;\n /** Link this worktree's branch to an issue, or undo it; null without a worktree. */\n issueLink: {\n linked: TrackedIssue | null;\n candidates: TrackedIssue[];\n canUnlink: boolean;\n open: () => void;\n unlink: () => void;\n } | null;\n busy: { takeover: boolean; ret: boolean; stop: boolean; resume: boolean; unarchive: boolean };\n /** Confirmation and form dialogs; render once in the view. */\n dialogs: ReactNode;\n}\n\n/** Session control and menu actions with confirmation dialogs (no optimistic success). */\nexport function useSessionActions(ctx: SessionContext): SessionActions {\n const { session, run, control } = ctx;\n const navigate = useNavigate();\n const [dialog, setDialog] = useState<null | \"stop\" | \"rename\" | \"archive\" | \"info\" | \"link\">(\n null,\n );\n const [title, setTitle] = useState(session.title);\n const link = useIssueLink(session.provenance === \"subagent\" ? null : ctx.workspace);\n const attention = useSyncStore((st) => st.attention);\n const inputAttention = useMemo(\n () =>\n Object.values(attention).filter(\n (a) => a.sessionId === session.id && !a.resolvedAt && isInputAttentionReason(a.reason),\n ),\n [attention, session.id],\n );\n const isPrimary = useSyncStore((st) => {\n if (session.provenance === \"subagent\" || session.archivedAt) return false;\n const peers = Object.values(st.sessions).filter(\n (x) =>\n x.archivedAt === null &&\n x.provenance !== \"subagent\" &&\n (session.workspaceId\n ? x.workspaceId === session.workspaceId\n : x.workspaceId === null && x.hostId === session.hostId && x.cwd === session.cwd),\n );\n return primarySession(peers)?.id === session.id;\n });\n\n const takeover = useMutation(() => codeApi.takeover(session.id), {\n success: \"You have control. Automatic continuations are paused.\",\n errorToast: true,\n });\n const ret = useMutation(() => codeApi.returnToAutomation(session.id), {\n success: \"Returned to automation.\",\n errorToast: true,\n });\n const stop = useMutation(() => codeApi.stop(session.id), { success: \"Session stopped.\" });\n const resume = useMutation(() => codeApi.resume(session.id), {\n success: \"Session resumed.\",\n errorToast: true,\n });\n const rename = useMutation((t: string) => codeApi.rename(session.id, t), {\n success: \"Session renamed.\",\n });\n const cacheAlert = useMutation(() => codeApi.cacheAlert(session.id, !session.cacheAlert), {\n errorToast: true,\n });\n const archive = useMutation(() => codeApi.archive(session.id), { success: \"Session archived.\" });\n const unarchive = useMutation(() => codeApi.unarchive(session.id), {\n success: \"Session unarchived.\",\n errorToast: true,\n });\n\n const connected = ctx.link === \"connected\";\n const close = () => {\n setDialog(null);\n stop.reset();\n rename.reset();\n archive.reset();\n };\n\n const archiveBlocked = isBusy(session) ? \"Stop the session before archiving it\" : null;\n\n const dialogs = (\n <>\n <ConfirmDialog\n open={dialog === \"stop\"}\n onClose={close}\n title=\"Stop this session?\"\n description=\"Stops the current execution and clears queued messages.\"\n confirmLabel=\"Stop session\"\n busy={stop.busy}\n error={stop.error}\n errorTitle=\"Could not stop\"\n onConfirm={() => void stop.run().then((ok) => ok && setDialog(null))}\n >\n <p className=\"text-sm text-muted\">\n {run\n ? \"The task keeps its run, marked interrupted and blocked (Stopped by user). Automation settings are unchanged.\"\n : \"Pi stays available; you can send a new message afterwards.\"}\n </p>\n </ConfirmDialog>\n\n <Dialog\n open={dialog === \"rename\"}\n onClose={close}\n title=\"Rename session\"\n footer={\n <>\n <Button onClick={close}>Cancel</Button>\n <Button\n variant=\"primary\"\n type=\"submit\"\n form=\"sy-rename-form\"\n busy={rename.busy}\n disabled={!title.trim()}\n >\n Save\n </Button>\n </>\n }\n >\n <form\n id=\"sy-rename-form\"\n onSubmit={(e) => {\n e.preventDefault();\n if (!title.trim()) return;\n void rename.run(title.trim()).then((ok) => ok && setDialog(null));\n }}\n className=\"flex flex-col gap-2\"\n >\n <Field id=\"sy-rename-input\" label=\"Title\">\n <TextInput\n id=\"sy-rename-input\"\n value={title}\n maxLength={200}\n onChange={(e) => setTitle(e.target.value)}\n />\n </Field>\n {rename.error !== null && (\n <ErrorState compact title=\"Could not rename\" error={errorMessage(rename.error)} />\n )}\n </form>\n </Dialog>\n\n <ConfirmDialog\n open={dialog === \"archive\"}\n onClose={close}\n title=\"Archive this session?\"\n description=\"It leaves the navigator. The Pi session file stays on the host.\"\n danger={false}\n confirmLabel=\"Archive\"\n busy={archive.busy}\n error={archive.error}\n errorTitle=\"Could not archive\"\n onConfirm={() =>\n void archive.run().then((ok) => {\n if (!ok) return;\n setDialog(null);\n navigate(\"/code\");\n })\n }\n >\n {session.runtime === \"idle\" && (\n <p className=\"text-sm text-muted\">The idle Pi process is stopped first.</p>\n )}\n </ConfirmDialog>\n\n {ctx.workspace && (\n <LinkIssueDialog\n open={dialog === \"link\"}\n onClose={close}\n workspace={ctx.workspace}\n candidates={link.candidates}\n />\n )}\n\n <SessionInfoDialog\n session={session}\n hostLabel={`${ctx.hostName} (${ctx.link})`}\n open={dialog === \"info\"}\n onClose={close}\n />\n </>\n );\n\n return {\n canTakeover: control === \"automation\",\n canReturn: control === \"human\",\n canStop: isBusy(session) && connected,\n canResume: !isLive(session) && !!session.nativeHandle && !session.readOnly && connected,\n archiveBlocked,\n takeover: () => void takeover.run(),\n returnToAutomation: () => void ret.run(),\n requestStop: () => setDialog(\"stop\"),\n resume: () => void resume.run(),\n openRename: () => {\n setTitle(session.title);\n setDialog(\"rename\");\n },\n requestArchive: () => {\n if (archiveBlocked) toast.info(archiveBlocked);\n else setDialog(\"archive\");\n },\n openInfo: () => setDialog(\"info\"),\n toggleCacheAlert: () => void cacheAlert.run(),\n unarchive: () => void unarchive.run(),\n dismissAttention:\n inputAttention.length > 0\n ? () => {\n void Promise.all(inputAttention.map(dismissAttentionItem))\n .then(() => toast.success(\"Cleared. A question Pi is still waiting on stays.\"))\n .catch((e) => toast.error(errorMessage(e)));\n }\n : null,\n setPinned: (viewId, pinned) => {\n const path = `/api/views/${encodeURIComponent(viewId)}/sessions/${encodeURIComponent(session.id)}`;\n void (pinned ? apiPost(path) : apiDelete(path)).catch((e) => toast.error(errorMessage(e)));\n },\n isPrimary,\n setPrimary: (primary) => {\n void codeApi.setPrimary(session.id, primary).catch((e) => toast.error(errorMessage(e)));\n },\n newInBranch:\n session.projectId && session.workspaceId\n ? () => {\n void codeApi\n .createSession({\n projectId: session.projectId!,\n workspace: { existingId: session.workspaceId! },\n prompt: \"\",\n })\n .then((s) => {\n useSyncStore.getState().upsertSessionIfMissing(s);\n navigate(`/code/${encodeURIComponent(s.id)}`);\n })\n .catch((e) => toast.error(errorMessage(e)));\n }\n : null,\n issueLink:\n ctx.workspace && session.provenance !== \"subagent\"\n ? {\n ...link,\n open: () => setDialog(\"link\"),\n unlink: () => {\n const i = link.linked;\n if (!i) return;\n void unlinkIssue(i.id)\n .then(() => toast.success(`Unlinked from #${i.number}`))\n .catch((e) => toast.error(errorMessage(e)));\n },\n }\n : null,\n busy: {\n takeover: takeover.busy,\n ret: ret.busy,\n stop: stop.busy,\n resume: resume.busy,\n unarchive: unarchive.busy,\n },\n dialogs,\n };\n}\n\n/** Resolve one attention item by hand and store the result. */\nexport async function dismissAttentionItem(item: AttentionItem): Promise<AttentionItem> {\n const res = await apiPost<AttentionItem>(`/api/attention/${encodeURIComponent(item.id)}/dismiss`);\n const next =\n res && typeof res === \"object\" && \"id\" in res\n ? res\n : { ...item, resolvedAt: new Date().toISOString() };\n useSyncStore.setState((st) =>\n st.attention[item.id] ? { attention: { ...st.attention, [item.id]: next } } : {},\n );\n return next;\n}\n","import type { AttentionItem, AttentionReason, Project, Session, Task } from \"@switchyard/protocol\";\n\nexport const ATTENTION_GROUPS: AttentionReason[] = [\n \"needs_input\",\n \"failed\",\n \"ready_for_review\",\n \"unsupported_interaction\",\n \"host_unreachable\",\n \"cache_expiring\",\n];\n\n/** Group open attention by reason, keeping the input order within a group. */\nexport function groupAttention(items: AttentionItem[]): Record<AttentionReason, AttentionItem[]> {\n const out = Object.fromEntries(ATTENTION_GROUPS.map((r) => [r, [] as AttentionItem[]])) as Record<\n AttentionReason,\n AttentionItem[]\n >;\n for (const a of items) out[a.reason]?.push(a);\n return out;\n}\n\n/** Tooltips and accessible descriptions of the attention actions: what each does and leaves. */\nexport const ATTENTION_ACTION_HELP = {\n dismiss:\n \"Marks it as seen and moves it to Dismissed; it stays open, and a question keeps flagging its session.\",\n clear: \"Resolves it now: the session loses this flag and the item moves to History.\",\n clearNeedsInput:\n \"Removes this session's Needs input flag and moves it to History; a question Pi is still waiting on stays.\",\n} as const;\n\nexport type AttentionShow = \"open\" | \"dismissed\" | \"history\";\n\n/** Stored prefs from before History: \"all\" (open + dismissed) and unknown values read as \"open\". */\nexport function normalizeShow(v: unknown): AttentionShow {\n return v === \"dismissed\" || v === \"history\" ? v : \"open\";\n}\n\n/** Unacknowledged items for \"open\", acknowledged for \"dismissed\"; [] for \"history\". */\nexport function visibleAttention(all: AttentionItem[], show: AttentionShow): AttentionItem[] {\n if (show === \"history\") return [];\n return all.filter((a) => (show === \"open\" ? !a.acknowledgedAt : !!a.acknowledgedAt));\n}\n\n/** \"project · task · session\" (session only when its title differs from the task's), else \"Switchyard\". */\nexport function attentionMeta(project?: Project, task?: Task, session?: Session): string {\n return (\n [project?.name, task?.title, session && session.title !== task?.title ? session.title : null]\n .filter(Boolean)\n .join(\" · \") || \"Switchyard\"\n );\n}\n"],"mappings":"A,muBAGayD,GACX,wHAQIC,GAAuC,CAC3C,CAAE,GAAI,QAAS,MAAO,eAAgB,KAAM,QAAS,EACrD,CAAE,GAAI,UAAW,MAAO,uBAAwB,KAAM,SAAU,CAClE,EAEA,SAASC,GAAY,EAAwD,CAC3E,GAAIC,EAAK,IAAM,UAAW,OAAOA,EACjC,GAAIA,EAAK,IAAM,UACb,IAAK,IAAMC,KAAKD,EAAK,SAAU,CAC7B,IAAME,EAAQH,GAAYE,CAAC,EAC3B,GAAIC,EAAO,OAAOA,CACpB,CAEF,OAAO,IACT,CASA,SAAgBC,GAAc,EAAyB,CACrD,OAAOC,EAAE,QAAU,eAAiBA,EAAE,OAAO,OAAS,oBACxD,CAGA,SAAgBC,GAAgB,EAAiC,CAE/D,IAAMC,GADOP,GAAYK,EAAE,YACV,CAAA,EAAM,SAAW,CAAC,EAAA,CAChC,OACE,GAAmDG,EAAE,KAAO,SAAWA,EAAE,KAAO,SACnF,CAAC,CACA,IAAK,IAAO,CACX,GAAIA,EAAE,GACN,MAAOA,EAAE,MACT,KAAOA,EAAE,OAAS,UACd,YACCA,EAAE,OAASA,EAAE,KAAO,QAAU,SAAW,UAChD,EAAE,EACJ,MAAO,CACL,WAAYH,EAAE,QAAU,eAAiBA,EAAE,aAAe,KAC1D,QAASE,EAAQ,OAAS,EAAIA,EAAUR,GACxC,KAAMD,EACR,CACF,CAGA,SAAgBW,GAAY,EAAoD,CAC9E,OAAOC,IAAY,WAAaA,IAAY,gBAAkB,WAAa,QAC7E,C,UC7BA,SAASE,EAAe,EAAuB,CAC7C,OAAQX,EAAK,EAAb,CACE,IAAK,OACL,IAAK,UACL,IAAK,UACH,MAAO,GACT,IAAK,OACH,OAAOA,EAAK,MAAM,K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