@p4code/cli 0.8.3 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcpMcpStdioBridge-D_JnxPWS.mjs → AcpMcpStdioBridge-CD9BQr2l.mjs} +1 -1
- package/dist/{AcpMcpStdioBridge-DBONIB-w.mjs → AcpMcpStdioBridge-DHwGLtep.mjs} +61 -4
- package/dist/bin.mjs +2 -2
- package/dist/{binCli-DouSNynJ.mjs → binCli-Bgjc_5FL.mjs} +406 -247
- package/dist/client/.vite/manifest.json +2125 -2102
- package/dist/client/assets/{AnimatedHeight-DoG4b7y8.js → AnimatedHeight-DYUgtGfz.js} +2 -2
- package/dist/client/assets/{AuthSurfaceShell-DbeJoeXz.js → AuthSurfaceShell-CfLnzrCc.js} +2 -2
- package/dist/client/assets/{CSPContext-DkFc4cYo.js → CSPContext-i9QaQnwk.js} +2 -2
- package/dist/client/assets/ChatGptUsageButton-BWTEbaUC.js +2 -0
- package/dist/client/assets/ChatMarkdown-C6UsXjP9.js +65 -0
- package/dist/client/assets/CodexSetupSection.logic-VTayPks4.js +2 -0
- package/dist/client/assets/{ComboboxClear-ZQvkAjz8.js → ComboboxClear-B-iYnTX_.js} +2 -2
- package/dist/client/assets/{CommandBlock-c98wFxMU.js → CommandBlock-dh2vBT70.js} +2 -2
- package/dist/client/assets/{ComposerPromptEditor-CBuOXkT9.js → ComposerPromptEditor-fIqs_--j.js} +12 -12
- package/dist/client/assets/{CompositeRoot-BMUI_bmJ.js → CompositeRoot-JeAqW-33.js} +2 -2
- package/dist/client/assets/{ConnectionStatusDot-B69zfKRh.js → ConnectionStatusDot-BCSqqCpf.js} +2 -2
- package/dist/client/assets/{DevicePanel-1xw7KQ15.js → DevicePanel-BckpiUTa.js} +2 -2
- package/dist/client/assets/{DeviceSetup-DemgUuG-.js → DeviceSetup-L8Q-0h1V.js} +2 -2
- package/dist/client/assets/{DialogTitle-BXot7RA0.js → DialogTitle-BRYusK7T.js} +2 -2
- package/dist/client/assets/{DiffCommentAnnotation-vAZP7JBy.js → DiffCommentAnnotation-DxxGd0sM.js} +3 -3
- package/dist/client/assets/{DiffFileTree-BhqF8nD5.js → DiffFileTree-C2N3dwbB.js} +2 -2
- package/dist/client/assets/DiffPanel-0HWHkPjD.js +2 -0
- package/dist/client/assets/{DiffWorkerPoolProvider-D4VIo5Vu.js → DiffWorkerPoolProvider-Dd8cIhyy.js} +3 -3
- package/dist/client/assets/{EnvironmentMachineIcon-DPQkDtvr.js → EnvironmentMachineIcon-giyHKjbh.js} +2 -2
- package/dist/client/assets/{ExpandableText-EZ9C25tN.js → ExpandableText-dJhpznMp.js} +3 -3
- package/dist/client/assets/{FieldControl-C4IsJLMZ.js → FieldControl-CxuWXcJE.js} +2 -2
- package/dist/client/assets/{FileDiff-H9QHqXa0.js → FileDiff-EWd5oWlS.js} +2 -2
- package/dist/client/assets/{FilePreviewPanel-DGm_SU_e.js → FilePreviewPanel-D3kud1xs.js} +4 -4
- package/dist/client/assets/{FoldedSettingsSection-BSYFyChk.js → FoldedSettingsSection-CsN_jb3V.js} +2 -2
- package/dist/client/assets/{FormContext-DiXpMuU8.js → FormContext-Vk5aZcR6.js} +2 -2
- package/dist/client/assets/{Icons-DA4msgfR.js → Icons-DM1SzuL7.js} +2 -2
- package/dist/client/assets/{KeybindingsSettings.logic-7EBA0xLE.js → KeybindingsSettings.logic-BcJGxVhV.js} +2 -2
- package/dist/client/assets/{NoProjectsHero-YjEc2OIw.js → NoProjectsHero-DrkWMiG4.js} +2 -2
- package/dist/client/assets/{PanelLayoutControls-BfRIRM0o.js → PanelLayoutControls-DjmAXscr.js} +8 -8
- package/dist/client/assets/{PierreEntryIcon-BxxykifK.js → PierreEntryIcon-BJ8xtDqQ.js} +2 -2
- package/dist/client/assets/PreviewPanel-D_JLD7YP.js +2 -0
- package/dist/client/assets/ProjectDefaultsSettings-Bqo3T1SR.js +2 -0
- package/dist/client/assets/{ProjectFavicon-CiauSitF.js → ProjectFavicon-By6-kpgk.js} +3 -3
- package/dist/client/assets/{ProjectIconPickerDialog-GDqk2LEH.js → ProjectIconPickerDialog-Cx-QcJLy.js} +2 -2
- package/dist/client/assets/{ProjectMonogram-Bqe3OyZR.js → ProjectMonogram-BJVBhwjz.js} +2 -2
- package/dist/client/assets/{ProviderAuthTerminal-D_OC5vdS.js → ProviderAuthTerminal-DBiUwanv.js} +2 -2
- package/dist/client/assets/{ProviderModelPicker-Bfpy_Rw1.js → ProviderModelPicker-DV64N-fE.js} +2 -2
- package/dist/client/assets/{ProviderSettingsForm-BA6yGdRn.js → ProviderSettingsForm-Tkr5xKCJ.js} +2 -2
- package/dist/client/assets/{PullRequestCodeTab-BOM7mgfd.js → PullRequestCodeTab-DijqMjN0.js} +3 -3
- package/dist/client/assets/{ReadOnlySourcePreview-C3LnvSkA.js → ReadOnlySourcePreview-CydDaO9-.js} +2 -2
- package/dist/client/assets/{RenderErrorBoundary-C-EIIrrq.js → RenderErrorBoundary-D4M2khxk.js} +2 -2
- package/dist/client/assets/{ScheduledTasksSettings-DFtwNfb8.js → ScheduledTasksSettings-D_Z_3GVl.js} +4 -4
- package/dist/client/assets/ScopedSwitch-B8wdvttG.js +2 -0
- package/dist/client/assets/{SecretInput-Be5Akw8x.js → SecretInput-CNWNAhNe.js} +2 -2
- package/dist/client/assets/SettingsPanels-DAv_V_mk.js +39 -0
- package/dist/client/assets/{SettingsPanels.logic-CLB8Pu-U.js → SettingsPanels.logic-BYa5iHwl.js} +2 -2
- package/dist/client/assets/{SettingsScopeNotice-CVoWG1oN.js → SettingsScopeNotice-CcLrVZWz.js} +2 -2
- package/dist/client/assets/{T3ConnectAccountPages-ClNzwIQw.js → T3ConnectAccountPages-DjITJ87o.js} +2 -2
- package/dist/client/assets/{T3ConnectSidebarSignIn-BqM_Vqe1.js → T3ConnectSidebarSignIn-B-rQNmqG.js} +2 -2
- package/dist/client/assets/{ThemeEditorPanel-vVmQV_Vv.js → ThemeEditorPanel-CJGqmeTA.js} +2 -2
- package/dist/client/assets/{ThreadTerminalDrawer-aLeVbe6g.js → ThreadTerminalDrawer-Cdl3DAIx.js} +4 -4
- package/dist/client/assets/{Virtualizer-DTOYU5Jp.js → Virtualizer-Bk-YJlPj.js} +2 -2
- package/dist/client/assets/{WorkspaceBreadcrumb-C9OPPGJE.js → WorkspaceBreadcrumb-DSFWvH19.js} +2 -2
- package/dist/client/assets/{WorkspacePageContainer-DtXJ5ept.js → WorkspacePageContainer-BXUbfbEU.js} +2 -2
- package/dist/client/assets/{WorkspacePageHeader-5zzLFpEN.js → WorkspacePageHeader-LbIzJCDs.js} +2 -2
- package/dist/client/assets/_chat-oHhtDqeh.js +45 -0
- package/dist/client/assets/{_chat.index-BP1JWABB.js → _chat.index-CTew1WmI.js} +2 -2
- package/dist/client/assets/_chat.new-COSURrfS.js +4 -0
- package/dist/client/assets/{_chat.pull-requests-B6-Vck8B.js → _chat.pull-requests-BlXnsqov.js} +2 -2
- package/dist/client/assets/{abnfDiagram-VCTEODGH-BXvAfzAg.js → abnfDiagram-VCTEODGH-brKh7bzh.js} +2 -2
- package/dist/client/assets/{alert-B-or1ble.js → alert-quTC4YbH.js} +2 -2
- package/dist/client/assets/architecture-7GRP2DOG-BMFS-mJW.js +1 -0
- package/dist/client/assets/{architectureDiagram-5GKGNRK7-MEUA3QVe.js → architectureDiagram-5GKGNRK7-BVDiXgfK.js} +2 -2
- package/dist/client/assets/archive-x-D3w6saMD.js +2 -0
- package/dist/client/assets/arrow-left-BFquhiaO.js +1 -0
- package/dist/client/assets/arrow-right-DiV8cYUQ.js +1 -0
- package/dist/client/assets/arrow-up-down-BDQTjPr1.js +1 -0
- package/dist/client/assets/assets-CRmNKuHc.js +2 -0
- package/dist/client/assets/bell-BvJp3v99.js +1 -0
- package/dist/client/assets/{blockDiagram-I7D4REHJ-BOdLeYJh.js → blockDiagram-I7D4REHJ-CzoRCJDe.js} +2 -2
- package/dist/client/assets/blocks-NuR9qdGl.js +1 -0
- package/dist/client/assets/bot-mvw1ddnU.js +1 -0
- package/dist/client/assets/{browserHistoryStore-BJD0OPpb.js → browserHistoryStore-Cw3ffhOV.js} +2 -2
- package/dist/client/assets/{browserLinkTarget-CoogLhhO.js → browserLinkTarget-KTI1tSl7.js} +2 -2
- package/dist/client/assets/{c4Diagram-7LVT6UL2-COZrm1O8.js → c4Diagram-7LVT6UL2-CfyobiDu.js} +2 -2
- package/dist/client/assets/calendar-clock-CuvWKWXS.js +1 -0
- package/dist/client/assets/channel-Cf2J77rP.js +2 -0
- package/dist/client/assets/chart-no-axes-column-Hfs9TSWj.js +1 -0
- package/dist/client/assets/checkbox-BHsP70Vt.js +2 -0
- package/dist/client/assets/{chunk-4HAMMTFA-Bs-Fo0v1.js → chunk-4HAMMTFA-CPnMRFld.js} +2 -2
- package/dist/client/assets/{chunk-75Z2AOVW-DpOWzc3R.js → chunk-75Z2AOVW-C85FbOND.js} +2 -2
- package/dist/client/assets/{chunk-DU6HZSFF-Bgpi4W6E.js → chunk-DU6HZSFF-s_qrqgaz.js} +2 -2
- package/dist/client/assets/{chunk-F27PBJKO-CLxgnzXS.js → chunk-F27PBJKO-90tTgV9x.js} +2 -2
- package/dist/client/assets/{chunk-GMAD6QVW-D98J5Pan.js → chunk-GMAD6QVW-CYRPr7hZ.js} +2 -2
- package/dist/client/assets/{chunk-GVQU2GXP-VuCIOHGI.js → chunk-GVQU2GXP-CxAvUb1-.js} +2 -2
- package/dist/client/assets/{chunk-IMKFNOWR-DXIyBsaE.js → chunk-IMKFNOWR-794woOlB.js} +2 -2
- package/dist/client/assets/{chunk-L3NEJ4N5-CrMlU3ZU.js → chunk-L3NEJ4N5-JXcRdiIo.js} +2 -2
- package/dist/client/assets/{chunk-OSK3NFVY-V2__4gNB.js → chunk-OSK3NFVY-ToxVvjW1.js} +2 -2
- package/dist/client/assets/{chunk-P2QGCYS3-BrPw6V5F.js → chunk-P2QGCYS3-JB1PmfIc.js} +2 -2
- package/dist/client/assets/{chunk-POPQ4Y6H-DBQ9Y51x.js → chunk-POPQ4Y6H-RMxlqjhd.js} +2 -2
- package/dist/client/assets/{chunk-PWAF6VOD-BN6AAbfF.js → chunk-PWAF6VOD-AB579n2y.js} +2 -2
- package/dist/client/assets/{chunk-SHT3W25Y-Vay44dCU.js → chunk-SHT3W25Y-CV2hE9-g.js} +2 -2
- package/dist/client/assets/{chunk-SVP7TREG-CcGlNErV.js → chunk-SVP7TREG-b2Gs4u5W.js} +2 -2
- package/dist/client/assets/{chunk-TICWLB2K-Dk1P_xkD.js → chunk-TICWLB2K-CtkYqLLJ.js} +2 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-D9m4giYc.js +2 -0
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-D9m4giYc.js +2 -0
- package/dist/client/assets/{color-picker-gBclRe5T.js → color-picker-CFc6YapE.js} +2 -2
- package/dist/client/assets/{combobox-C81z_216.js → combobox-WVgW_agq.js} +2 -2
- package/dist/client/assets/{command-DnJZPOmf.js → command-w6WcFbeZ.js} +2 -2
- package/dist/client/assets/{connect-Am2IS-vZ.js → connect-D_ncSJiK.js} +2 -2
- package/dist/client/assets/{connect-agent-Cw1s7hYt.js → connect-agent-8mHL_bau.js} +2 -2
- package/dist/client/assets/corner-left-up-DedXC9IG.js +1 -0
- package/dist/client/assets/{cynefin-OW5HDTMX-0s30RxOq.js → cynefin-OW5HDTMX-BDIjrXPB.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-5FMLGOSQ-Drd0Msog.js → cynefinDiagram-5FMLGOSQ-h9tw36zs.js} +2 -2
- package/dist/client/assets/{dagre-GXQ25YYZ-BMfu7T0o.js → dagre-GXQ25YYZ-D3s1T81F.js} +2 -2
- package/dist/client/assets/{device-C_oIGJqy.js → device-DhvzgETq.js} +2 -2
- package/dist/client/assets/{diagram-S7CK7UJ4-8egngY0E.js → diagram-S7CK7UJ4-DTawhR4X.js} +2 -2
- package/dist/client/assets/{diagram-UQ7AKVKN-BALPQoDH.js → diagram-UQ7AKVKN-CTUDQHKY.js} +2 -2
- package/dist/client/assets/{diagram-VSXAHHWV-BjyJZVGC.js → diagram-VSXAHHWV-DsbNNWnj.js} +2 -2
- package/dist/client/assets/{diagram-VX7I27RA-B9f6eKkq.js → diagram-VX7I27RA-BBy99N9O.js} +2 -2
- package/dist/client/assets/{diagram-Z3DM3KII-CRUj2d3v.js → diagram-Z3DM3KII-CEy69xv1.js} +2 -2
- package/dist/client/assets/{dialog-Bn1u_Xoc.js → dialog-CPLO59bH.js} +2 -2
- package/dist/client/assets/{diffRendering-C26rfQBu.js → diffRendering-BlmxsRF9.js} +2 -2
- package/dist/client/assets/{discovery-list-Fg_u6w-x.js → discovery-list-D0LBmkzJ.js} +2 -2
- package/dist/client/assets/{dist-DtKaGeij.js → dist-DZWol-cd.js} +3 -3
- package/dist/client/assets/download-CUcdw53T.js +1 -0
- package/dist/client/assets/{draft-input-D8eUYug0.js → draft-input-CmvO5rl_.js} +2 -2
- package/dist/client/assets/{duoViewer-CBoAg4hS.js → duoViewer-B0QD-fyi.js} +2 -2
- package/dist/client/assets/dynamic-tF-2a8Zt.js +3 -0
- package/dist/client/assets/earth-BqADiov-.js +1 -0
- package/dist/client/assets/{ebnfDiagram-PWID7BFC-BSbPiqg7.js → ebnfDiagram-PWID7BFC-B9LWNbny.js} +2 -2
- package/dist/client/assets/ellipsis-BUF_4-Z7.js +1 -0
- package/dist/client/assets/{embeddedScripts-Dsi0aZEx.js → embeddedScripts-B1MGNr-e.js} +2 -2
- package/dist/client/assets/{empty-C-gDaZ_z.js → empty-tr-EsB66.js} +2 -2
- package/dist/client/assets/entities-DqhRur25.js +2 -0
- package/dist/client/assets/{erDiagram-RLTQ6QDP-sL_q0j_k.js → erDiagram-RLTQ6QDP-Nu9IMF5-.js} +2 -2
- package/dist/client/assets/eventmodeling-NTZA5JFV-CHuv5_8f.js +1 -0
- package/dist/client/assets/eye-C8OhITrC.js +1 -0
- package/dist/client/assets/file-search-ComEiFQ8.js +1 -0
- package/dist/client/assets/{fileLinks-DubkPNVt.js → fileLinks-BHAkEh9k.js} +2 -2
- package/dist/client/assets/{fileTreeExpansion-VtSAPhxL.js → fileTreeExpansion-BierCVUV.js} +2 -2
- package/dist/client/assets/flowDiagram-HODETNUW-wmC7eeQc.js +1 -0
- package/dist/client/assets/folder-git-2-COyuVTXA.js +1 -0
- package/dist/client/assets/folder-open-DZzz50kK.js +1 -0
- package/dist/client/assets/folder-plus-BzJT8jXs.js +1 -0
- package/dist/client/assets/{ganttDiagram-EL5Y4UJY-DCiKb0rQ.js → ganttDiagram-EL5Y4UJY-D_s5F9rI.js} +2 -2
- package/dist/client/assets/{getDiffFileInput-DU5zpXo3.js → getDiffFileInput-B5j6sQbM.js} +2 -2
- package/dist/client/assets/git-branch-CCzcdr93.js +1 -0
- package/dist/client/assets/{gitGraph-4MIJSDKK-DfRe6ZT5.js → gitGraph-4MIJSDKK-BASxGOL3.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-WWUBYQGX-Bt7diV1n.js → gitGraphDiagram-WWUBYQGX-BtA4z_1S.js} +2 -2
- package/dist/client/assets/grip-vertical-COceJQZo.js +1 -0
- package/dist/client/assets/{guideRunStore-CF9bByzk.js → guideRunStore-C95PbUuP.js} +2 -2
- package/dist/client/assets/hard-drive-BKLzbeTS.js +1 -0
- package/dist/client/assets/history-CAAEfWkp.js +1 -0
- package/dist/client/assets/house-U4txgvXa.js +1 -0
- package/dist/client/assets/{htmlRender-vOqAdlJH.js → htmlRender-DgdJ8GkZ.js} +2 -2
- package/dist/client/assets/{index-1HGbj0-7.js → index-D_uSeco8.js} +3 -3
- package/dist/client/assets/{info-A6RAGUB7-0FtL6-Am.js → info-A6RAGUB7-Q4Qe5TI_.js} +1 -1
- package/dist/client/assets/{infoDiagram-27XIBGKW-BPLvtPCc.js → infoDiagram-27XIBGKW-CNnDxcfZ.js} +2 -2
- package/dist/client/assets/{input-Cd_0h7h_.js → input-DaCwubQj.js} +2 -2
- package/dist/client/assets/{input-group-CJ7ZOvDN.js → input-group-DJwXFHGO.js} +2 -2
- package/dist/client/assets/{ishikawaDiagram-5VMMS53U-DVcx0XTh.js → ishikawaDiagram-5VMMS53U-Drb03OY6.js} +2 -2
- package/dist/client/assets/{journeyDiagram-3NMN7TZE-w46bbjL2.js → journeyDiagram-3NMN7TZE-CynC6Up1.js} +2 -2
- package/dist/client/assets/{kanban-definition-UXKFOSKX-C41yE_yV.js → kanban-definition-UXKFOSKX-DfyC_hIe.js} +2 -2
- package/dist/client/assets/{kbd-c17EHIx1.js → kbd-R3wkAau0.js} +2 -2
- package/dist/client/assets/{keybindings-uYm_vnXl.js → keybindings-QrjnJ5jB.js} +2 -2
- package/dist/client/assets/keyboard-kgy5M4lo.js +1 -0
- package/dist/client/assets/{lazyRouteComponent-CTVuEvaz.js → lazyRouteComponent-cLZROdN-.js} +2 -2
- package/dist/client/assets/{line-tu9XZ0qp.js → line-C3gvAOpf.js} +2 -2
- package/dist/client/assets/{link-C4sEUNOK.js → link-Bl21VXlj.js} +2 -2
- package/dist/client/assets/link-C1k5F8-V.js +1 -0
- package/dist/client/assets/{linkedPrompt-VYl90REW.js → linkedPrompt-DAcv0O_f.js} +2 -2
- package/dist/client/assets/list-CU7BIfIS.js +1 -0
- package/dist/client/assets/main-BsiZpg85.css +2 -0
- package/dist/client/assets/main-uLg3xUJM.js +30 -0
- package/dist/client/assets/{mediaReference-BTVvzs2e.js → mediaReference-DN8lzwOF.js} +2 -2
- package/dist/client/assets/{mediaSource-DXHFWHMA.js → mediaSource-0nIWHHoL.js} +2 -2
- package/dist/client/assets/{mermaid-parser.core-DNd412Oc.js → mermaid-parser.core-B3cYmj0d.js} +4 -4
- package/dist/client/assets/{mermaid.core-CyE6QOQY.js → mermaid.core-9ekBSYCO.js} +5 -5
- package/dist/client/assets/message-circle-question-mark-wTwD9xwk.js +1 -0
- package/dist/client/assets/message-square-dashed-Hcy2Q2EP.js +1 -0
- package/dist/client/assets/message-square-lCzwndCW.js +1 -0
- package/dist/client/assets/{mindmap-definition-YA3MSWOX-DH1uxdTm.js → mindmap-definition-YA3MSWOX-K4rtZu2z.js} +2 -2
- package/dist/client/assets/mouse-pointer-2-BFFAEWXU.js +1 -0
- package/dist/client/assets/number-field-pAaF-e0N.js +2 -0
- package/dist/client/assets/{observeResize-Csvw3hy4.js → observeResize-BEjNJ-rK.js} +2 -2
- package/dist/client/assets/{onboarding-CJPrQc71.js → onboarding--LqcHqO0.js} +2 -2
- package/dist/client/assets/openFileInPreview-NwK1GJFN.js +2 -0
- package/dist/client/assets/{p4ProjectFile-BWszgcDk.js → p4ProjectFile-CVEoe1SJ.js} +2 -2
- package/dist/client/assets/{packet-AYTQ26CC-DflCOkCN.js → packet-AYTQ26CC-kDkfULQq.js} +1 -1
- package/dist/client/assets/{pair-Dd_e1jxq.js → pair-Bxo10T5t.js} +2 -2
- package/dist/client/assets/palette-BkpHEJXn.js +1 -0
- package/dist/client/assets/panel-left-DNz3ps89.js +1 -0
- package/dist/client/assets/panels-top-left-bKuZF4FX.js +1 -0
- package/dist/client/assets/{pegDiagram-XKGWAZYB-Cnx9j2xX.js → pegDiagram-XKGWAZYB-6b8AqBYd.js} +2 -2
- package/dist/client/assets/{phoneViewer-B9EUVDD2.js → phoneViewer-Vql_2ZzY.js} +2 -2
- package/dist/client/assets/{pie-WAS4IAKB-CDwew7fN.js → pie-WAS4IAKB-CfoqFIwI.js} +1 -1
- package/dist/client/assets/{pieDiagram-E7YTZNPT-BxejSN6k.js → pieDiagram-E7YTZNPT-i8FgTMai.js} +2 -2
- package/dist/client/assets/{pierre-icons-C839Otpo.js → pierre-icons-CBmlpFgP.js} +2 -2
- package/dist/client/assets/{popover-CKyetthu.js → popover-BXin7C0B.js} +2 -2
- package/dist/client/assets/{preview-CjgXQQdj.js → preview-6t42evKb.js} +2 -2
- package/dist/client/assets/{preview-CEMnbqVB.js → preview-C9iPHfb1.js} +2 -2
- package/dist/client/assets/{previewMiniPlayerStore-B9Lqaaij.js → previewMiniPlayerStore-BDRPsVx0.js} +2 -2
- package/dist/client/assets/primary-DOpcfgLH.js +2 -0
- package/dist/client/assets/primaryCloudLinkState-Dulej3bP.js +2 -0
- package/dist/client/assets/projectFilesQueryState-C1crs3C8.js +2 -0
- package/dist/client/assets/projectScriptEditor-ku2tGeKq.js +2 -0
- package/dist/client/assets/providerSkills-D0IxW0_5.js +2 -0
- package/dist/client/assets/{pullRequestDetail.logic-DTxWqKoX.js → pullRequestDetail.logic-BiwUoz1M.js} +4 -4
- package/dist/client/assets/{pullRequestReviewStore-C5gaoGaz.js → pullRequestReviewStore-J7YIGsZ9.js} +2 -2
- package/dist/client/assets/pullRequests-BQ9KruZm.js +2 -0
- package/dist/client/assets/puzzle-wfhgUaHl.js +1 -0
- package/dist/client/assets/{quadrantDiagram-AXDQQJYC-Bj4FEpOg.js → quadrantDiagram-AXDQQJYC-DzvIAxCm.js} +2 -2
- package/dist/client/assets/queries-CEjFwxVW.js +2 -0
- package/dist/client/assets/query-D5pQUQvZ.js +2 -0
- package/dist/client/assets/{radar-RG4KPBEZ-DEopr2Gv.js → radar-RG4KPBEZ-BnTV8utT.js} +1 -1
- package/dist/client/assets/{radio-group-fljQQ7Xp.js → radio-group-DhpPG5HP.js} +2 -2
- package/dist/client/assets/{railroad-74A4TZTK-BSAOgUn6.js → railroad-74A4TZTK-nxEBKbUo.js} +1 -1
- package/dist/client/assets/railroad-abnf-HS5TGJTU-bDIjPMME.js +1 -0
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-BREFlihg.js +1 -0
- package/dist/client/assets/railroad-peg-WCYAUIDC-B0hEZefb.js +1 -0
- package/dist/client/assets/{railroadDiagram-O6MQD6OU-BSOJGJ6v.js → railroadDiagram-O6MQD6OU-DFdlMVKn.js} +2 -2
- package/dist/client/assets/{renderScheduler-v8LIpnE2.js → renderScheduler-DWKKtxcJ.js} +2 -2
- package/dist/client/assets/{requirementDiagram-BXWQKSXE-Bp5TqEho.js → requirementDiagram-BXWQKSXE-BW8o0F_p.js} +2 -2
- package/dist/client/assets/{rightPanelStore-DqMd0tFH.js → rightPanelStore-CQ94819A.js} +2 -2
- package/dist/client/assets/rotate-ccw-CkpQmcC5.js +1 -0
- package/dist/client/assets/rotate-cw-BAiACGtX.js +1 -0
- package/dist/client/assets/runtime-Bsb2I_n2.js +2 -0
- package/dist/client/assets/runtime-DkYxB4ri.js +6 -0
- package/dist/client/assets/{sankeyDiagram-P5KCCOFB-C7KUHrP7.js → sankeyDiagram-P5KCCOFB-JA6FB6i0.js} +2 -2
- package/dist/client/assets/{scheduledTasksSettings.logic-C3Mbc4mh.js → scheduledTasksSettings.logic-C_AdQNVz.js} +3 -3
- package/dist/client/assets/{scroll-area-LhpLVf8r.js → scroll-area-BYyfw-9F.js} +2 -2
- package/dist/client/assets/select-CjGEfXy_.js +2 -0
- package/dist/client/assets/{sequenceDiagram-WJ2MYXX4-Bs9mfTLC.js → sequenceDiagram-WJ2MYXX4-DgBrrcVR.js} +2 -2
- package/dist/client/assets/server-BYntb2dN.js +2 -0
- package/dist/client/assets/session-eLrubJEW.js +2 -0
- package/dist/client/assets/{session-logic-DneZDyPZ.js → session-logic-l1juLk9v.js} +5 -5
- package/dist/client/assets/settings-2-CDBTJPBs.js +1 -0
- package/dist/client/assets/settings-DDvSs7LG.js +1 -0
- package/dist/client/assets/{settings-C8FiUQu0.js → settings-xKzLy5aw.js} +2 -2
- package/dist/client/assets/settings.appearance-CEA3GKAa.js +2 -0
- package/dist/client/assets/settings.archived-DPWjmD2l.js +2 -0
- package/dist/client/assets/{settings.computer-use-B3Ujc2AS.js → settings.computer-use-DZu90DiM.js} +2 -2
- package/dist/client/assets/settings.connections-BKWbsMUk.js +2 -0
- package/dist/client/assets/settings.data-controls-CBrcsSvm.js +2 -0
- package/dist/client/assets/{settings.decisions-C5UE4drK.js → settings.decisions-CGz9znLs.js} +2 -2
- package/dist/client/assets/settings.diagnostics-DKkOOzoq.js +2 -0
- package/dist/client/assets/settings.general-CoPWyKC4.js +2 -0
- package/dist/client/assets/{settings.integrations-BCtpk2dY.js → settings.integrations-K3Jwfkyd.js} +2 -2
- package/dist/client/assets/{settings.keybindings-DfFrYXxY.js → settings.keybindings-BbR3qnVs.js} +2 -2
- package/dist/client/assets/{settings.open-source-licenses-CqRM1gRd.js → settings.open-source-licenses-Mh-zg97k.js} +2 -2
- package/dist/client/assets/settings.plugins-BI68kAsM.js +5 -0
- package/dist/client/assets/{settings.projects-CT-l0EfX.js → settings.projects-BahZsoyx.js} +4 -4
- package/dist/client/assets/settings.providers-Dsnq0-AL.js +3 -0
- package/dist/client/assets/settings.scheduled-tasks-BOpVl_XK.js +2 -0
- package/dist/client/assets/{settings.snap-shot-BMxV-ClC.js → settings.snap-shot-Bs_DZS7D.js} +2 -2
- package/dist/client/assets/settings.source-control-Akrp_mGm.js +2 -0
- package/dist/client/assets/{settings.storage-DKm6BZ2r.js → settings.storage-fl2BN0Cu.js} +2 -2
- package/dist/client/assets/settingsLayout-DV36_Jgq.js +3 -0
- package/dist/client/assets/shield-check-yRjvgn4y.js +1 -0
- package/dist/client/assets/shield-question-mark-DyVUewRO.js +1 -0
- package/dist/client/assets/{sidebar-DI1ZJMkM.js → sidebar-MBwCdIpv.js} +2 -2
- package/dist/client/assets/{sidebarProjectGrouping-DXRKqrOP.js → sidebarProjectGrouping-Sm7y9bd1.js} +2 -2
- package/dist/client/assets/{skeleton-BlMPaSbD.js → skeleton-CS8ffFVv.js} +2 -2
- package/dist/client/assets/{sortable.esm-CnSn9HhJ.js → sortable.esm-CwrTFe-B.js} +2 -2
- package/dist/client/assets/{sourceControl-ogZI3Qhj.js → sourceControl-DyHbbOxl.js} +2 -2
- package/dist/client/assets/{spinner-I_NrXl2i.js → spinner-B7a-VUeR.js} +2 -2
- package/dist/client/assets/square-pen-BrE59gWn.js +1 -0
- package/dist/client/assets/{standalone-page-C0mvdk0N.js → standalone-page-DTvNMgJy.js} +2 -2
- package/dist/client/assets/{stateDiagram-D77RDMKH-lcvbm4gc.js → stateDiagram-D77RDMKH-gHEAo7xC.js} +2 -2
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-CGT21P8W.js +2 -0
- package/dist/client/assets/{swimlanes-42K2YHIH-BftXRbCQ.js → swimlanes-42K2YHIH-_qZ90QGb.js} +2 -2
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-D9Ttx7dQ.js +9 -0
- package/dist/client/assets/{terminal-links-BWEpET__.js → terminal-links-Dc2HX7Ov.js} +2 -2
- package/dist/client/assets/{terminalSessions-CQOPPXfy.js → terminalSessions-DK9WKgga.js} +2 -2
- package/dist/client/assets/text-search-CFbEY3qo.js +1 -0
- package/dist/client/assets/{textarea-Bu723jDd.js → textarea-CYXHTTG6.js} +2 -2
- package/dist/client/assets/{themePalette-CAxv2FDZ.js → themePalette-zVYGoviO.js} +3 -3
- package/dist/client/assets/threadSort-Byzu7B1A.js +2 -0
- package/dist/client/assets/{timeline-definition-24CTP7MA-_aV_EuqE.js → timeline-definition-24CTP7MA-BxWmcZQs.js} +2 -2
- package/dist/client/assets/toast-BX9uiMAh.js +2 -0
- package/dist/client/assets/{toggle-B5fidRv0.js → toggle-fk33ppsB.js} +2 -2
- package/dist/client/assets/{toggle-group-DCQTLIPb.js → toggle-group-W0bDGcPB.js} +2 -2
- package/dist/client/assets/tooltip-B0rhqi5b.js +2 -0
- package/dist/client/assets/{treeView-Q6P3EWNA-ALGd5g_W.js → treeView-Q6P3EWNA-BsPhq-Fl.js} +1 -1
- package/dist/client/assets/{treemap-WGGIJYW6-CGQrkzMs.js → treemap-WGGIJYW6-DZ3fnU-o.js} +1 -1
- package/dist/client/assets/{usage-DmGxFUdr.js → usage-DlNazxzV.js} +2 -2
- package/dist/client/assets/{usageAccess-CY-JtQnU.js → usageAccess-Mp1Nbm2r.js} +2 -2
- package/dist/client/assets/{usageFormat-Cs-UHzLq.js → usageFormat-ZiOrCBxk.js} +2 -2
- package/dist/client/assets/{usageShortcuts-CP952NDO.js → usageShortcuts-Be5hddhr.js} +2 -2
- package/dist/client/assets/use-atom-command-RgcuqzP9.js +2 -0
- package/dist/client/assets/{useAriaLabelledBy-4I5xhNlP.js → useAriaLabelledBy-D-n0SDV6.js} +2 -2
- package/dist/client/assets/{useHandleNewThread-Bzaf_PDE.js → useHandleNewThread-BQ5wqZab.js} +2 -2
- package/dist/client/assets/{useLocation-QINZoaPz.js → useLocation-BN5q7LjL.js} +2 -2
- package/dist/client/assets/useNavigate-CDvr3Yvg.js +2 -0
- package/dist/client/assets/{useNavigateBack-CbbWf0z6.js → useNavigateBack-BWhsiBJ5.js} +2 -2
- package/dist/client/assets/{useParams-BTKEXLBT.js → useParams-DQgx0pmy.js} +2 -2
- package/dist/client/assets/{usePermissionStatus-Zbsv_90x.js → usePermissionStatus-FtemMvNg.js} +2 -2
- package/dist/client/assets/{usePullRequestActions-DGTJ6ne6.js → usePullRequestActions-D97OVSkM.js} +3 -3
- package/dist/client/assets/{useRegisterFieldControl-Cr87Snzk.js → useRegisterFieldControl-KOnbOVnX.js} +2 -2
- package/dist/client/assets/useScopedModelAvailability-BTR7tHpB.js +2 -0
- package/dist/client/assets/useSettings-BIggY3j1.js +3 -0
- package/dist/client/assets/{useT3ConnectAuthPrompt-BYqrzQIx.js → useT3ConnectAuthPrompt-CPGDAWRk.js} +2 -2
- package/dist/client/assets/{utils-DmfMX1v5.js → utils-BxISc9RR.js} +17 -17
- package/dist/client/assets/vcsRefInvalidation-h_E9Figo.js +2 -0
- package/dist/client/assets/{vennDiagram-4TSXK5OY-9Jx7JrgE.js → vennDiagram-4TSXK5OY-BnH-hzBf.js} +2 -2
- package/dist/client/assets/{wardley-WFR3VGLG-qG58RzFw.js → wardley-WFR3VGLG-BbiFWq4f.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-VM6X3IG4-8Ml3tzfR.js → wardleyDiagram-VM6X3IG4-DPf4ISf5.js} +2 -2
- package/dist/client/assets/{welcome-CPcQsM9H.js → welcome-DjYohRu3.js} +2 -2
- package/dist/client/assets/{xychartDiagram-S5SC5T6Z-C-u_0wo0.js → xychartDiagram-S5SC5T6Z-oaZh5sFY.js} +2 -2
- package/dist/client/index.html +1 -1
- package/package.json +1 -1
- package/dist/client/assets/ChatGptUsageButton-D93cMeTp.js +0 -2
- package/dist/client/assets/ChatMarkdown-CLD9Y6dg.js +0 -65
- package/dist/client/assets/CodexSetupSection.logic-DJw6xB7P.js +0 -2
- package/dist/client/assets/DiffPanel-Dqh76p3E.js +0 -2
- package/dist/client/assets/PreviewPanel-QkMfuC1J.js +0 -2
- package/dist/client/assets/ProjectDefaultsSettings-C6wxaRmJ.js +0 -2
- package/dist/client/assets/ScopedSwitch-DsEcG6rk.js +0 -2
- package/dist/client/assets/SettingsPanels-CI-FknGh.js +0 -39
- package/dist/client/assets/_chat-BKcYL38S.js +0 -45
- package/dist/client/assets/_chat.new-BX5LyFum.js +0 -4
- package/dist/client/assets/architecture-7GRP2DOG-DqzmsB35.js +0 -1
- package/dist/client/assets/archive-x-BN7DYXYC.js +0 -2
- package/dist/client/assets/arrow-left-DI1Oo3nI.js +0 -1
- package/dist/client/assets/arrow-right-DRgAj8le.js +0 -1
- package/dist/client/assets/arrow-up-down-C6OEPUz7.js +0 -1
- package/dist/client/assets/assets-_CWIS9vb.js +0 -2
- package/dist/client/assets/bell-DW1iPWzH.js +0 -1
- package/dist/client/assets/blocks-DKOyf4K4.js +0 -1
- package/dist/client/assets/bot-DYcBiSui.js +0 -1
- package/dist/client/assets/calendar-clock-BqL7OneL.js +0 -1
- package/dist/client/assets/channel-DbsUczqI.js +0 -2
- package/dist/client/assets/chart-no-axes-column-CtQ7A5KE.js +0 -1
- package/dist/client/assets/checkbox-CaZu1EKJ.js +0 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-DotTjRcO.js +0 -2
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-DotTjRcO.js +0 -2
- package/dist/client/assets/corner-left-up-BT-2gfvH.js +0 -1
- package/dist/client/assets/download-DNjijPHR.js +0 -1
- package/dist/client/assets/dynamic-p5s8CQGu.js +0 -3
- package/dist/client/assets/earth-DGA4iwBJ.js +0 -1
- package/dist/client/assets/ellipsis-Cbd-Ac19.js +0 -1
- package/dist/client/assets/entities-82m-Smm-.js +0 -2
- package/dist/client/assets/eventmodeling-NTZA5JFV-OEIkdS25.js +0 -1
- package/dist/client/assets/eye-BUplLfz9.js +0 -1
- package/dist/client/assets/file-search-CcnLiCku.js +0 -1
- package/dist/client/assets/fileContextMenu-Dcs50sFI.js +0 -2
- package/dist/client/assets/flowDiagram-HODETNUW-BDZPeVYD.js +0 -1
- package/dist/client/assets/folder-git-2-5RczFn6m.js +0 -1
- package/dist/client/assets/folder-open-PwiT4lvQ.js +0 -1
- package/dist/client/assets/folder-plus--IokSBmG.js +0 -1
- package/dist/client/assets/git-branch-jf-x2c63.js +0 -1
- package/dist/client/assets/grip-vertical-OASdudbE.js +0 -1
- package/dist/client/assets/hard-drive-BxN5msOb.js +0 -1
- package/dist/client/assets/history-DdVU5lcf.js +0 -1
- package/dist/client/assets/house-mbks5FAa.js +0 -1
- package/dist/client/assets/keyboard-DckDn_SM.js +0 -1
- package/dist/client/assets/link-Dw3ue0Rm.js +0 -1
- package/dist/client/assets/list-1rglB5Lq.js +0 -1
- package/dist/client/assets/main-BB3F4O6Y.js +0 -30
- package/dist/client/assets/main-CnVegMVf.css +0 -2
- package/dist/client/assets/message-circle-question-mark-CLPs5tYP.js +0 -1
- package/dist/client/assets/message-square-BInn4EwR.js +0 -1
- package/dist/client/assets/message-square-dashed-Dea7_sXv.js +0 -1
- package/dist/client/assets/mouse-pointer-2-BPl1Yb5N.js +0 -1
- package/dist/client/assets/number-field-CVtwAsLe.js +0 -2
- package/dist/client/assets/openFileInPreview-C3O_ayUT.js +0 -2
- package/dist/client/assets/palette-DC6st-Ld.js +0 -1
- package/dist/client/assets/panel-left-BxNE-mqR.js +0 -1
- package/dist/client/assets/panels-top-left-CpwWAaSX.js +0 -1
- package/dist/client/assets/primary-uszZTzpR.js +0 -2
- package/dist/client/assets/primaryCloudLinkState-CWT2YTBZ.js +0 -2
- package/dist/client/assets/projectFilesQueryState-ELgLflk5.js +0 -2
- package/dist/client/assets/projectScriptEditor-BAuP_HeU.js +0 -2
- package/dist/client/assets/pullRequests-DjbQ49mZ.js +0 -2
- package/dist/client/assets/puzzle-foT3lPUZ.js +0 -1
- package/dist/client/assets/queries-Cq5C9N-K.js +0 -2
- package/dist/client/assets/query-DpwJQzeq.js +0 -2
- package/dist/client/assets/railroad-abnf-HS5TGJTU-C_4g8TOP.js +0 -1
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-CHZB5YoP.js +0 -1
- package/dist/client/assets/railroad-peg-WCYAUIDC-B-PbMjlp.js +0 -1
- package/dist/client/assets/rotate-ccw-rssHZoOL.js +0 -1
- package/dist/client/assets/rotate-cw-D726GGah.js +0 -1
- package/dist/client/assets/runtime-BQJQC-Ny.js +0 -6
- package/dist/client/assets/runtime-C6FwphD-.js +0 -2
- package/dist/client/assets/select-B4VvMEs2.js +0 -2
- package/dist/client/assets/server-BD_Y5Gsn.js +0 -2
- package/dist/client/assets/session-DsbInyNV.js +0 -2
- package/dist/client/assets/settings-2-Qrnq-5XQ.js +0 -1
- package/dist/client/assets/settings-MUAsYy_j.js +0 -1
- package/dist/client/assets/settings.appearance-B5-X4oyX.js +0 -2
- package/dist/client/assets/settings.archived-DVUmF0nS.js +0 -2
- package/dist/client/assets/settings.connections-EQYBOa7e.js +0 -2
- package/dist/client/assets/settings.diagnostics-CBcOEqPM.js +0 -2
- package/dist/client/assets/settings.general-BOmr4mSV.js +0 -2
- package/dist/client/assets/settings.plugins-DC4js6dE.js +0 -5
- package/dist/client/assets/settings.providers-CJuBTAiR.js +0 -3
- package/dist/client/assets/settings.scheduled-tasks-CvLNaadX.js +0 -2
- package/dist/client/assets/settings.source-control-DJWucVsM.js +0 -2
- package/dist/client/assets/settingsLayout-jP1a50ek.js +0 -3
- package/dist/client/assets/shield-check-k2SY7zjx.js +0 -2
- package/dist/client/assets/shield-question-mark-kKJBH4Uj.js +0 -1
- package/dist/client/assets/square-pen-DilH8raK.js +0 -1
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-DuLLhUia.js +0 -2
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-BrHQKVnf.js +0 -9
- package/dist/client/assets/text-search-DpDcKspl.js +0 -1
- package/dist/client/assets/threadSort-BoaTqeGH.js +0 -2
- package/dist/client/assets/toast-CjelgyqV.js +0 -2
- package/dist/client/assets/tooltip-taOyJZax.js +0 -2
- package/dist/client/assets/use-atom-command-CQHjSXPR.js +0 -2
- package/dist/client/assets/useNavigate-4thj06GJ.js +0 -2
- package/dist/client/assets/useScopedModelAvailability-BEfh0WXx.js +0 -2
- package/dist/client/assets/useSettings-CLtJrOYI.js +0 -3
- package/dist/client/assets/vcsRefInvalidation-nP-qgsHs.js +0 -2
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Co as e,So as t}from"./main-BB3F4O6Y.js";export{e as __iconNode,t as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{vo as e,yo as t}from"./main-BB3F4O6Y.js";export{t as __iconNode,e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bo as e,xo as t}from"./main-BB3F4O6Y.js";export{t as __iconNode,e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_o as e,go as t}from"./main-BB3F4O6Y.js";export{e as __iconNode,t as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Ax as n,Ea as r,Ga as i,Ha as a,Ji as o,Ka as s,Ki as c,La as l,Ln as u,Nn as d,Oa as f,Pa as p,Pn as m,Ua as h,Wa as g,Ya as _,Yi as v,Za as y,Zi as b,_a as x,_o as S,aa as ee,do as C,ea as te,ga as w,gr as T,ha as E,ja as D,ka as O,ma as k,oa as A,qi as ne,sa as j,t as M,vo as N,wa as P,yo as F,zn as re}from"./utils-DmfMX1v5.js";import{t as ie}from"./minus-C7W28oE7.js";import{t as ae}from"./plus-Cr075-cy.js";import{t as oe}from"./useRegisterFieldControl-Cr87Snzk.js";import{t as se}from"./FormContext-DiXpMuU8.js";import{a as ce}from"./CSPContext-DkFc4cYo.js";var I=e(t());function le(){let[,e]=I.useState({});return I.useCallback(()=>{e({})},[])}var ue=I.createContext(void 0);function de(){let e=I.useContext(ue);if(e===void 0)throw Error(F(43));return e}var L={inputValue:()=>null,value:()=>null,...re},fe=new Map;function R(e,t){let n=JSON.stringify({locale:e,options:t}),r=fe.get(n);if(r)return r;let i=new Intl.NumberFormat(e,t);return fe.set(n,i),i}function z(e,t,n){return e==null?``:R(t,n).format(e)}function pe(e,t,n){return z(e,t,{...n,maximumFractionDigits:20})}var B=[`零`,`〇`,`一`,`二`,`三`,`四`,`五`,`六`,`七`,`八`,`九`],me={零:`0`,〇:`0`,一:`1`,二:`2`,三:`3`,四:`4`,五:`5`,六:`6`,七:`7`,八:`8`,九:`9`},he=[`٠`,`١`,`٢`,`٣`,`٤`,`٥`,`٦`,`٧`,`٨`,`٩`],V=[`۰`,`۱`,`۲`,`۳`,`۴`,`۵`,`۶`,`۷`,`۸`,`۹`],H=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],ge=[`%`,`٪`,`%`,`﹪`],_e=[`‰`,`؉`],ve=[`−`,`-`,`‒`,`–`,`—`,`﹣`],U=[`+`,`﹢`],ye=RegExp(`[${he.join(``)}]`,`g`),W=RegExp(`[${V.join(``)}]`,`g`),be=RegExp(`[${H.join(``)}]`,`g`),xe=RegExp(`[${B.join(``)}]`,`g`),G=RegExp(`[${ge.join(``)}]`),K=RegExp(`[${_e.join(``)}]`),Se=/[٠١٢٣٤٥٦٧٨٩]/,Ce=/[۰۱۲۳۴۵۶۷۸۹]/,we=/[零〇一二三四五六七八九]/,Te=RegExp(`[${H.join(``)}]`),Ee=[`.`,`,`,`.`,`,`,`٫`,`٬`],De=/\p{Zs}/u,Oe=[`+`,...U],ke=[`-`,...ve],q=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),Ae=e=>e.replace(/[-\\\]^]/g,e=>`\\${e}`),je=e=>`[${e.map(Ae).join(``)}]`,Me=je([`-`].concat(ve)),Ne=je([`+`].concat(U)),Pe=new RegExp(Me,`gu`),J=new RegExp(Ne,`gu`),Y=new RegExp(Me),X=new RegExp(Ne);function Fe(e,t){let n=R(e,t).formatToParts(11111.1),r={};return n.forEach(e=>{r[e.type]=e.value}),R(e).formatToParts(.1).forEach(e=>{e.type===`decimal`&&(r[e.type]=e.value)}),r}function Z(e,t,n){if(e==null)return null;let r=String(e).replace(/\p{Cf}/gu,``).trim();r=r.replace(Pe,`-`).replace(J,`+`);let i=!1,a=r.match(/([+-])\s*$/);a&&(a[1]===`-`&&(i=!0),r=r.replace(/([+-])\s*$/,``));let o=r.match(/^\s*([+-])/);o&&(o[1]===`-`&&(i=!0),r=r.replace(/^\s*[+-]/,``));let s=t;s===void 0&&(Se.test(r)||Ce.test(r)?s=`ar`:we.test(r)&&(s=`zh`));let{group:c,decimal:l,currency:u}=Fe(s,n),d=R(s,n).formatToParts(1).filter(e=>e.type===`unit`).map(e=>q(e.value)),f=d.length?new RegExp(d.join(`|`),`g`):null,p=null;c&&(p=/\p{Zs}/u.test(c)?/\p{Zs}/gu:c===`'`||c===`’`?/['’]/g:new RegExp(q(c),`g`));let m=[{regex:c?p:null,replacement:``},{regex:l?new RegExp(q(l),`g`):null,replacement:`.`},{regex:/./g,replacement:`.`},{regex:/,/g,replacement:``},{regex:/٫/g,replacement:`.`},{regex:/٬/g,replacement:``},{regex:u?new RegExp(q(u),`g`):null,replacement:``},{regex:f,replacement:``},{regex:ye,replacement:e=>String(he.indexOf(e))},{regex:W,replacement:e=>String(V.indexOf(e))},{regex:be,replacement:e=>String(H.indexOf(e))},{regex:xe,replacement:e=>me[e]}].reduce((e,{regex:t,replacement:n})=>t?e.replace(t,n):e,r),h=m.lastIndexOf(`.`);if(h!==-1&&(m=`${m.slice(0,h).replace(/\./g,``)}.${m.slice(h+1).replace(/\./g,``)}`),/^[-+]?Infinity$/i.test(r)||/[∞]/.test(r))return null;let g=(i?`-`:``)+m,_=parseFloat(g),v=n?.style,y=v===`unit`&&n?.unit===`percent`,b=G.test(e)||v===`percent`;return K.test(e)?_/=1e3:!y&&b&&(_/=100),Number.isNaN(_)?null:_}var Ie=1e-10;function Le(e){let t=R(`en-US`).resolvedOptions(),n=e?.minimumFractionDigits??t.minimumFractionDigits??0;return{maximumFractionDigits:Math.max(e?.maximumFractionDigits??t.maximumFractionDigits??20,n),minimumFractionDigits:n}}function Re(e,t){if(!Number.isFinite(e))return e;let n=Math.min(Math.max(t,0),20);return Number(e.toFixed(n))}function Q(e,t){let{maximumFractionDigits:n}=Le(t);return Re(e,n)}function ze(e,t,n,r=`directional`){if(n===0)return e;let i=Math.abs(n),a=Math.sign(n),o=i*Ie*a,s=r===`nearest`?n:i,c=(e-t+o)/s,l;return l=r===`nearest`?Math.round(c):a>0?Math.floor(c):Math.ceil(c),t+l*(r===`nearest`?n:i)}function Be(e,{step:t,minWithDefault:n,maxWithDefault:r,minWithZeroDefault:i,format:a,snapOnStep:o,small:s,clamp:c}){if(e===null)return e;let l=c?ce(e,n,r):e;if(t!=null&&o){if(t===0)return Q(l,a);let e=i;return!s&&n!==-(2**53-1)&&(e=n),Q(ze(l,e,t,s?`nearest`:`directional`),a)}return Q(l,a)}var $=e(E()),Ve=I.forwardRef(function(e,t){let{id:n,min:r,max:i,smallStep:a=.1,step:s=1,largeStep:l=10,required:m=!1,disabled:h=!1,readOnly:g=!1,form:_,name:x,defaultValue:ee,value:T,onValueChange:E,onValueCommitted:D,allowWheelScrub:k=!1,snapOnStep:A=!1,allowOutOfRange:j=!1,format:M,locale:N,render:F,className:re,inputRef:ie,style:ae,...oe}=e,{setDirty:se,validityData:ce,disabled:de,setFilled:fe,invalid:R,name:pe,state:B,validation:me,shouldValidateOnChange:he}=u(),V=de||h,H=pe??x,ve=s===`any`?1:s,[U,ye]=I.useState(!1),W=r??-(2**53-1),be=i??2**53-1,xe=r??0,G=M?.style,K=I.useRef(null),Se=S(ie,me.inputRef),Ce=d({id:n}),[we,Te]=p({controlled:T,default:ee,name:`NumberField`,state:`value`}),q=we??null,Ae=v(q);f(()=>{fe(q!==null)},[fe,q]);let je=le(),Me=v(M),Ne=I.useRef(!1),Pe=O((e,t)=>{Ne.current=!1,D?.(e,t)}),J=I.useRef(!0),Y=I.useRef(null),[X,Z]=I.useState(()=>T===void 0?z(q,N,M):He(q,N,M)),[Ie,Le]=I.useState(`numeric`),Re=O(()=>{let{decimal:e,group:t,currency:n,literal:r}=Fe(N,M),i=new Set;Ee.forEach(e=>i.add(e)),e&&i.add(e),t&&(i.add(t),De.test(t)&&i.add(` `));let a=G===`percent`||G===`unit`&&M?.unit===`percent`,o=G===`percent`||G===`unit`&&M?.unit===`permille`;return a&&ge.forEach(e=>i.add(e)),o&&_e.forEach(e=>i.add(e)),G===`currency`&&n&&i.add(n),r&&(Array.from(r).forEach(e=>i.add(e)),De.test(r)&&i.add(` `)),Oe.forEach(e=>i.add(e)),W<0&&ke.forEach(e=>i.add(e)),i}),Q=O(e=>e?.altKey?a:e?.shiftKey?l:ve),ze=O((e,t)=>{let n=t.event,r=t.direction,i=t.reason,a=!j||i!==`input-change`&&i!==`input-blur`&&i!==`input-paste`&&i!==`input-clear`&&i!==`none`,o=Be(e,{step:r?Q(n)*r:void 0,format:Me.current,minWithDefault:W,maxWithDefault:be,minWithZeroDefault:xe,snapOnStep:A,small:n?.altKey??!1,clamp:a}),s=t.reason===`input-change`||t.reason===`input-clear`||t.reason===`input-blur`||t.reason===`input-paste`||t.reason===`none`,c=o!==q||s&&(e!==q||J.current===!1);if(c){if(Y.current=o,E?.(o,t),t.isCanceled)return c;Te(o),se(o!==ce.initialValue),Ne.current=!0}return J.current&&Z(z(o,N,M)),je(),c}),Ve=O((e,{direction:t,currentValue:n,event:i,reason:a})=>{let o=n??Ae.current,s=typeof o==`number`?o+e*t:Math.max(0,r??0);return ze(s,w(a,i,void 0,{direction:t}))});f(function(){if(!J.current)return;let e=T===void 0?z(q,N,M):He(q,N,M);e!==X&&Z(e)}),f(function(){if(!P)return;let e=`text`;W>=0&&(e=`decimal`),Le(e)},[W,G]),I.useEffect(function(){let e=K.current;if(V||g||!k||!e)return;function t(e){if(e.ctrlKey||te(o(K.current))!==K.current)return;e.preventDefault(),J.current=!0;let t=Q(e)??1;Ve(t,{direction:e.deltaY>0?-1:1,event:e,reason:`wheel`})}return b(e,`wheel`,t)},[k,Ve,V,g,Q]);let Ue=I.useMemo(()=>({...B,disabled:V,readOnly:g,required:m,value:q,inputValue:X,scrubbing:U}),[B,V,g,m,q,X,U]),We=I.useMemo(()=>({inputRef:K,inputValue:X,value:q,minWithDefault:W,maxWithDefault:be,disabled:V,readOnly:g,id:Ce,setValue:ze,incrementValue:Ve,getStepAmount:Q,allowInputSyncRef:J,formatOptionsRef:Me,valueRef:Ae,lastChangedValueRef:Y,hasPendingCommitRef:Ne,name:H,required:m,invalid:R,inputMode:Ie,getAllowedNonNumericKeys:Re,min:r,max:i,setInputValue:Z,locale:N,isScrubbing:U,setIsScrubbing:ye,state:Ue,onValueCommitted:Pe}),[K,X,q,W,be,V,g,Ce,ze,Ve,Q,Me,Ae,H,m,R,Ie,Re,r,i,Z,N,U,Ue,Pe]),Ge=C(`div`,e,{ref:t,state:Ue,props:oe,stateAttributesMapping:L});return(0,$.jsxs)(ue.Provider,{value:We,children:[Ge,(0,$.jsx)(`input`,{...me.getInputValidationProps({onFocus(){K.current?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented||V||g){e.preventBaseUIHandler?.();return}let t=e.currentTarget.valueAsNumber,n=Number.isNaN(t)?null:t,r=w(y,e.nativeEvent);se(n!==ce.initialValue),ze(n,r),he()&&me.commit(n)}}),ref:Se,type:`number`,form:_,name:H,value:q??``,min:r,max:i,step:s,disabled:V,required:m,"aria-hidden":!0,tabIndex:-1,style:H?ne:c,suppressHydrationWarning:!0})]})});function He(e,t,n){return n?.maximumFractionDigits!=null||n?.minimumFractionDigits!=null?z(e,t,n):pe(e,t,n)}var Ue=I.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{state:o}=de();return C(`div`,e,{ref:t,state:o,props:[{role:`group`},a],stateAttributesMapping:L})}),We=0,Ge=class e extends A{static create(){return new e}start(e,t){this.clear(),this.currentId=setInterval(()=>{t()},e)}clear=()=>{this.currentId!==We&&(clearInterval(this.currentId),this.currentId=We)}};function Ke(){let e=N(Ge.create).current;return k(e.disposeEffect),e}var qe=60,Je=400,Ye=8,Xe=50,Ze=3;function Qe(e){return e===`touch`||e===`pen`}function $e(e){let{disabled:t,readOnly:n=!1,tick:r,onStop:i,tickDelay:a=qe,startDelay:o=Je,scrollDistance:s=Ye,elementRef:c}=e,l=j(),u=Ke(),d=j(),f=I.useRef(!1),p=I.useRef(0),m=I.useRef({x:0,y:0}),h=I.useRef(!1),g=I.useRef(!1),_=I.useRef(``),v=I.useRef(()=>{}),y=O(()=>{d.clear(),l.clear(),u.clear(),v.current(),p.current=0});function x(e){y();let t=c.current;if(!t)return;let n=D(t);function s(e){e.preventDefault()}if(v.current=b(n,`contextmenu`,s),b(n,`pointerup`,e=>{f.current=!1,y(),i?.(e)},{once:!0}),!r(e)){y();return}l.start(o,()=>{u.start(a,()=>{r(e)||y()})})}return I.useEffect(()=>()=>y(),[y]),{pointerHandlers:{onTouchStart(){h.current=!0},onTouchEnd(){h.current=!1},onPointerDown(e){let r=!e.button||e.button===0;e.defaultPrevented||!r||t||n||(_.current=e.pointerType,g.current=!1,f.current=!0,m.current={x:e.clientX,y:e.clientY},Qe(e.pointerType)?d.start(Xe,()=>{let t=p.current;p.current=0,f.current&&t<Ze?(x(e.nativeEvent),g.current=!0):(g.current=!1,y())}):(e.preventDefault(),x(e.nativeEvent)))},onPointerUp(e){Qe(e.pointerType)&&(f.current=!1)},onPointerMove(e){if(t||n||!Qe(e.pointerType)||!f.current)return;p.current!=null&&(p.current+=1);let{x:r,y:i}=m.current,a=r-e.clientX,o=i-e.clientY;a**2+o**2>s**2&&y()},onMouseEnter(e){e.defaultPrevented||t||n||!f.current||h.current||Qe(_.current)||x(e.nativeEvent)},onMouseLeave(){h.current||y()},onMouseUp(){h.current||y()}},shouldSkipClick:O(e=>e.defaultPrevented?!0:Qe(_.current)?g.current:e.detail!==0)}}function et(e){return e===`touch`||e===`pen`}function tt(e){let{allowInputSyncRef:t,disabled:n,formatOptionsRef:r,getStepAmount:i,id:o,incrementValue:s,inputRef:c,inputValue:u,isIncrement:d,locale:f,readOnly:p,setValue:m,valueRef:h,lastChangedValueRef:g,onValueCommitted:_}=e,v=d?a:l;function y(e){t.current=!0;let n=Z(u,f,r.current);n!==null&&(h.current=n,m(n,w(v,e,void 0,{direction:d?1:-1})))}let{pointerHandlers:b,shouldSkipClick:S}=$e({disabled:n||p,elementRef:c,tickDelay:60,startDelay:400,scrollDistance:8,tick(e){let t=i(e)??1;return s(t,{direction:d?1:-1,event:e,reason:v})},onStop(e){let t=g.current??h.current;_(t,x(v,e))}});return{disabled:n,"aria-readonly":p||void 0,"aria-label":d?`Increase`:`Decrease`,"aria-controls":o,tabIndex:-1,style:{WebkitUserSelect:`none`,userSelect:`none`},...b,onClick(e){let t=n||p;if(e.defaultPrevented||t||S(e))return;y(e.nativeEvent);let r=i(e)??1,a=h.current;s(r,{direction:d?1:-1,event:e.nativeEvent,reason:v});let o=g.current??h.current;o!==a&&_(o,x(v,e.nativeEvent))},onPointerDown(e){let t=!e.button||e.button===0;e.defaultPrevented||p||!t||n||(y(e.nativeEvent),et(e.pointerType)||c.current?.focus(),b.onPointerDown(e))}}}var nt=I.forwardRef(function(e,t){let{render:n,className:i,disabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{allowInputSyncRef:l,disabled:u,formatOptionsRef:d,getStepAmount:f,id:p,incrementValue:m,inputRef:h,inputValue:g,locale:_,maxWithDefault:v,readOnly:y,setValue:b,state:x,value:S,valueRef:ee,lastChangedValueRef:te,onValueCommitted:w}=de(),T=a||u||S!=null&&S>=v,E=tt({isIncrement:!0,inputRef:h,inputValue:g,disabled:T,readOnly:y,id:p,setValue:b,getStepAmount:f,incrementValue:m,allowInputSyncRef:l,formatOptionsRef:d,valueRef:ee,locale:_,lastChangedValueRef:te,onValueCommitted:w}),{getButtonProps:D,buttonRef:O}=r({disabled:T,native:o,focusableWhenDisabled:!0}),k=I.useMemo(()=>({...x,disabled:T}),[x,T]);return C(`button`,e,{ref:[t,O],state:k,props:[E,c,D],stateAttributesMapping:L})}),rt=I.forwardRef(function(e,t){let{render:n,className:i,disabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{allowInputSyncRef:l,disabled:u,formatOptionsRef:d,getStepAmount:f,id:p,incrementValue:m,inputRef:h,inputValue:g,minWithDefault:_,readOnly:v,setValue:y,state:b,value:x,valueRef:S,locale:ee,lastChangedValueRef:te,onValueCommitted:w}=de(),T=a||u||x!=null&&x<=_,E=tt({isIncrement:!1,inputRef:h,inputValue:g,disabled:T,readOnly:v,id:p,setValue:y,getStepAmount:f,incrementValue:m,allowInputSyncRef:l,formatOptionsRef:d,valueRef:S,locale:ee,lastChangedValueRef:te,onValueCommitted:w}),{getButtonProps:D,buttonRef:O}=r({disabled:T,native:o,focusableWhenDisabled:!0}),k=I.useMemo(()=>({...b,disabled:T}),[b,T]);return C(`button`,e,{ref:[t,O],state:k,props:[E,c,D],stateAttributesMapping:L})}),it={...re,...L},at=new Set([`Backspace`,`Delete`,`ArrowLeft`,`ArrowRight`,`Tab`,`Enter`,`Escape`]),ot=I.forwardRef(function(e,t){let{render:n,className:r,style:a,...o}=e,{allowInputSyncRef:c,disabled:l,formatOptionsRef:d,getAllowedNonNumericKeys:f,getStepAmount:p,id:v,incrementValue:y,inputMode:b,inputValue:S,max:te,min:E,name:D,readOnly:O,required:k,setValue:A,state:ne,setInputValue:j,locale:M,inputRef:N,value:P,onValueCommitted:F,lastChangedValueRef:re,hasPendingCommitRef:ie,valueRef:ae}=de(),{clearErrors:ce}=se(),{validationMode:le,setTouched:ue,setFocused:L,invalid:fe,shouldValidateOnChange:R,validation:B}=u(),{labelId:me}=m(),he=I.useRef(!1),V=I.useRef(!1);return oe(N,v,P),T(P,e=>{let t=R();if(ce(D),t&&B.commit(P),!(e===P||t)){if(V.current){V.current=!1;return}B.commit(P,!0)}}),C(`input`,e,{ref:[t,N],state:ne,props:[{id:v,required:k,disabled:l,readOnly:O,inputMode:b,value:S,type:`text`,autoComplete:`off`,autoCorrect:`off`,spellCheck:`false`,"aria-roledescription":`Number field`,"aria-invalid":fe||void 0,"aria-labelledby":me,suppressHydrationWarning:!0,onFocus(e){if(e.defaultPrevented||O||l||(L(!0),he.current))return;he.current=!0;let t=e.currentTarget,n=t.value.length;t.setSelectionRange(n,n)},onBlur(e){if(e.defaultPrevented||O||l)return;ue(!0),L(!1);let t=!c.current,n=ie.current;if(c.current=!0,S.trim()===``){A(null,w(i,e.nativeEvent)),le===`onBlur`&&B.commit(null),F(null,x(i,e.nativeEvent));return}let r=d.current,a=Z(S,M,r);if(a===null)return;let o=r?.maximumFractionDigits!=null||r?.minimumFractionDigits!=null,s=r?.maximumFractionDigits,u=o&&typeof s==`number`?Number(a.toFixed(s)):a,f=x(h,e.nativeEvent),p=P!==u,m=t||p||n;le===`onBlur`&&B.commit(u),p&&(V.current=!0,A(u,w(h,e.nativeEvent))),m&&F(u,f);let g=z(u,M,r);(o||a!==P||S!==pe(a,M,r))&&S!==g&&j(g)},onChange(e){if(e.nativeEvent.defaultPrevented)return;c.current=!1;let t=e.currentTarget.value;if(t.trim()===``){j(t),A(null,w(i,e.nativeEvent));return}let n=f();if(!Array.from(t).every(e=>{let t=e>=`0`&&e<=`9`,r=Se.test(e),i=we.test(e),a=Ce.test(e),o=Te.test(e),s=Y.test(e);return t||r||i||a||o||s||n.has(e)}))return;let r=Z(t,M,d.current);j(t),r!==null&&A(r,w(g,e.nativeEvent))},onKeyDown(e){if(e.defaultPrevented||O||l)return;let t=e.nativeEvent;c.current=!0;let n=f(),r=n.has(e.key),{decimal:i,currency:a,percentSign:o}=Fe(M,d.current),s=e.currentTarget.selectionStart,u=e.currentTarget.selectionEnd,m=s===0&&u===S.length,h=e=>s!=null&&u!=null&&e>=s&&e<u;if(Y.test(e.key)&&Array.from(n).some(e=>Y.test(e||``))){let e=S.search(Pe),t=e!=null&&e!==-1&&h(e);r=!(Y.test(S)||X.test(S))||m||t}if(X.test(e.key)&&Array.from(n).some(e=>X.test(e||``))){let e=S.search(J),t=e!=null&&e!==-1&&h(e);r=!(Y.test(S)||X.test(S))||m||t}[i,a,o].forEach(t=>{if(e.key===t){let e=S.indexOf(t),n=h(e);r=!S.includes(t)||m||n}});let g=e.key>=`0`&&e.key<=`9`,v=Se.test(e.key),b=we.test(e.key),C=Ce.test(e.key),T=Te.test(e.key),D=at.has(e.key);if(e.which===229||e.altKey||e.ctrlKey||e.metaKey||r||g||v||T||b||C||D)return;let k=Z(S,M,d.current),ne=p(e)??1;ee(e);let j=x(_,t);e.key===`ArrowUp`?(y(ne,{direction:1,currentValue:k,event:t,reason:_}),F(re.current??ae.current,j)):e.key===`ArrowDown`?(y(ne,{direction:-1,currentValue:k,event:t,reason:_}),F(re.current??ae.current,j)):e.key===`Home`&&E!=null?(A(E,w(_,t)),F(re.current??ae.current,j)):e.key===`End`&&te!=null&&(A(te,w(_,t)),F(re.current??ae.current,j))},onPaste(e){if(e.defaultPrevented||O||l)return;e.preventDefault();let t=(e.clipboardData||window.Clipboard).getData(`text/plain`),n=Z(t,M,d.current);n!==null&&(c.current=!1,A(n,w(s,e.nativeEvent)),j(t))}},B.getValidationProps(),o],stateAttributesMapping:it})}),st=n();function ct(e){let t=(0,st.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({id:r,className:n,size:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?`default`:a,s=I.useId(),c=r??s,l;t[5]===n?l=t[6]:(l=M(`flex w-full flex-col items-start gap-2`,n),t[5]=n,t[6]=l);let u;return t[7]!==c||t[8]!==i||t[9]!==o||t[10]!==l?(u=(0,$.jsx)(Ve,{className:l,"data-size":o,"data-slot":`number-field`,id:c,...i}),t[7]=c,t[8]=i,t[9]=o,t[10]=l,t[11]=u):u=t[11],u}function lt(e){let t=(0,st.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,shape:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`default`:i,o=a===`pill`&&`overflow-hidden rounded-xl before:rounded-xl`,s=a===`soft`&&`rounded-lg border-transparent bg-accent shadow-none before:hidden dark:bg-accent`,c;t[4]!==n||t[5]!==o||t[6]!==s?(c=M(`relative flex w-full justify-between rounded-lg border border-input bg-background not-dark:bg-clip-padding text-base text-foreground shadow-xs/5 ring-ring/24 transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] not-data-disabled:not-focus-within:not-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)] focus-within:border-ring focus-within:ring-[3px] focus-within:ring-inset has-aria-invalid:border-destructive/36 has-autofill:bg-foreground/4 focus-within:has-aria-invalid:border-destructive/64 focus-within:has-aria-invalid:ring-destructive/48 data-disabled:pointer-events-none data-disabled:opacity-64 sm:text-sm dark:bg-input/32 dark:has-autofill:bg-foreground/8 dark:has-aria-invalid:ring-destructive/24 dark:not-data-disabled:not-focus-within:not-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/6%)] [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 [[data-disabled],:focus-within,[aria-invalid]]:shadow-none`,o,s,n),t[4]=n,t[5]=o,t[6]=s,t[7]=c):c=t[7];let l;return t[8]!==r||t[9]!==c?(l=(0,$.jsx)(Ue,{className:c,"data-slot":`number-field-group`,...r}),t[8]=r,t[9]=c,t[10]=l):l=t[10],l}function ut(e){let t=(0,st.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=M(`relative flex shrink-0 cursor-pointer items-center justify-center rounded-s-[calc(var(--radius-lg)-1px)] in-data-[size=sm]:px-[calc(--spacing(2.5)-1px)] in-data-[size=compact]:w-8 in-data-[size=compact]:px-0 px-[calc(--spacing(3)-1px)] transition-colors pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:bg-accent`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(ie,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,$.jsx)(rt,{className:i,"data-slot":`number-field-decrement`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function dt(e){let t=(0,st.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=M(`relative flex shrink-0 cursor-pointer items-center justify-center rounded-e-[calc(var(--radius-lg)-1px)] in-data-[size=sm]:px-[calc(--spacing(2.5)-1px)] in-data-[size=compact]:w-8 in-data-[size=compact]:px-0 px-[calc(--spacing(3)-1px)] transition-colors pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:bg-accent`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(ae,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,$.jsx)(nt,{className:i,"data-slot":`number-field-increment`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function ft(e){let t=(0,st.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=M(`h-8.5 in-data-[size=compact]:h-8 in-data-[size=compact]:px-0 in-data-[size=compact]:leading-8 sm:in-data-[size=compact]:h-8 sm:in-data-[size=compact]:leading-8 in-data-[size=lg]:h-9.5 in-data-[size=sm]:h-7.5 w-full min-w-0 grow bg-transparent in-data-[size=sm]:px-[calc(--spacing(2.5)-1px)] px-[calc(--spacing(3)-1px)] text-center tabular-nums in-data-[size=lg]:leading-9.5 in-data-[size=sm]:leading-7.5 leading-8.5 outline-none [transition:background-color_5000000s_ease-in-out_0s] sm:h-7.5 sm:in-data-[size=lg]:h-8.5 sm:in-data-[size=sm]:h-6.5 sm:in-data-[size=lg]:leading-8.5 sm:in-data-[size=sm]:leading-8.5 sm:leading-7.5`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,$.jsx)(ot,{className:i,"data-slot":`number-field-input`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{ft as a,dt as i,ut as n,lt as r,ct as t};
|
|
2
|
-
//# sourceMappingURL=number-field-CVtwAsLe.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Ax as n,Ho as r,Kv as i,Mo as a,No as o,Uo as s,fs as c,jo as l,ko as u,qv as d,sb as f,ss as p,wo as m}from"./utils-DmfMX1v5.js";import{I as h,R as g,U as _}from"./runtime-BQJQC-Ny.js";import{s as v}from"./vcsRefInvalidation-nP-qgsHs.js";import{s as y}from"./session-DsbInyNV.js";import{l as b,o as x}from"./rightPanelStore-DqMd0tFH.js";import{t as S}from"./mediaReference-BTVvzs2e.js";import{a as C,c as w,l as T,s as E,t as D}from"./assets-_CWIS9vb.js";import{S as O,c as k,d as A,s as j,x as M}from"./browserHistoryStore-BJD0OPpb.js";var N=n(),P=e(t(),1);function F(e,t){let n=(0,N.c)(7),r=(0,P.useContext)(s),i=typeof t==`string`?t:t?.label,a=typeof t==`string`?!0:t?.reportFailure??!0,o=typeof t==`string`?!0:t?.reportDefect??!0,c=typeof t==`string`?!1:t?.refresh??!1,l;return n[0]!==i||n[1]!==e||n[2]!==c||n[3]!==r||n[4]!==o||n[5]!==a?(l=t=>{let n=e(t);return h(r,n,{label:i??n.label?.[0]??`atom query`,reportFailure:a,reportDefect:o,refresh:c})},n[0]=i,n[1]=e,n[2]=c,n[3]=r,n[4]=o,n[5]=a,n[6]=l):l=n[6],l}function I(e,t){let n=(0,N.c)(10),i=v(e),a;n[0]!==t||n[1]!==i?(a=w(t,i),n[0]=t,n[1]=i,n[2]=a):a=n[2];let o=a,s=y(e),c;n[3]!==o||n[4]!==e||n[5]!==t?(c=o!==null||e===null||t===null?C:D.createUrl({environmentId:e,input:{resource:t}}),n[3]=o,n[4]=e,n[5]=t,n[6]=c):c=n[6];let l=r(c);if(o!==null)return o;let u=s._tag===`Some`?s.value.httpBaseUrl:null,d;return n[7]!==l||n[8]!==u?(d=E(l,u),n[7]=l,n[8]=u,n[9]=d):d=n[9],d}function L(e,t){let n=(0,N.c)(6),r=y(e),i=r._tag===`Some`?r.value.httpBaseUrl:null,a;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={reportFailure:!1,refresh:!0},n[0]=a):a=n[0];let o=F(D.createUrl,a),s;return n[1]!==e||n[2]!==i||n[3]!==o||n[4]!==t?(s=async()=>{if(e===null||t===null||i===null)return null;let n=await o({environmentId:e,input:{resource:t}});if(n._tag===`Failure`)throw _(n);return T(i,n.value.relativeUrl)},n[1]=e,n[2]=i,n[3]=o,n[4]=t,n[5]=s):s=n[5],s}function R(e,t){let n=y(e),{canReadFiles:i}=v(e),a=(0,P.useMemo)(()=>i?t:t.filter(e=>e._tag!==`workspace-file`&&e._tag!==`media-file`&&e._tag!==`draft-workspace-file`),[i,t]),o=r(D.createUrls({environmentId:e,resources:a}));return(0,P.useMemo)(()=>{if(n._tag===`None`)return t.map(()=>null);let e=0;return t.map(t=>{if(!i&&(t._tag===`workspace-file`||t._tag===`media-file`||t._tag===`draft-workspace-file`))return null;let r=o[e++];return r&&c(r)?T(n.value.httpBaseUrl,r.value.relativeUrl):null})},[i,n,t,o])}var z=e=>/\.(?:html?|pdf)$/i.test(e.split(/[?#]/,1)[0]??``),B=class extends f(`BrowserPreviewUnavailableError`){},V=class extends f(`BrowserSettingsReadError`){get message(){return`Saved browser settings could not be loaded.`}};async function H(e){let t=await A().catch(e=>new V({cause:e}));if(t instanceof V)return p(d(t));let n=O(e.threadRef.environmentId),r=u(e.threadRef).activeTabId,i=()=>x(b.getState().byThreadKey,e.threadRef)?.id??null,s=i(),c=await e.openPreview({environmentId:e.threadRef.environmentId,input:{threadId:e.threadRef.threadId,url:e.url,viewport:k(t),profileId:e.profileId??j(t),...n===void 0?{}:{runtime:n}}});return g(c,t=>{if(l(e.threadRef,e.url),e.background){o(e.threadRef,t),r&&u(e.threadRef).activeTabId===t.tabId&&i()===s&&a(e.threadRef,r);return}m(e.threadRef,t),b.getState().openBrowser(e.threadRef,t.tabId)})}async function U(e){if(!M(e.threadRef.environmentId))return p(d(new B({message:`The integrated browser is unavailable in this runtime.`})));let t=S(e.filePath,e.workspaceRoot).relativePath!==void 0,n=await e.createAssetUrl({environmentId:e.threadRef.environmentId,input:{resource:{_tag:t?`workspace-file`:`media-file`,threadId:e.threadRef.threadId,path:e.filePath}}});if(n._tag===`Failure`)return p(n.cause);let r=T(e.httpBaseUrl,n.value.relativeUrl);return r===null?p(i(Error(`The environment returned an invalid asset URL.`))):H({threadRef:e.threadRef,url:r,openPreview:e.openPreview})}export{H as a,R as c,U as i,F as l,V as n,L as o,z as r,I as s,B as t};
|
|
2
|
-
//# sourceMappingURL=openFileInPreview-C3O_ayUT.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ho as e,mo as t}from"./main-BB3F4O6Y.js";export{e as __iconNode,t as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{fo as e,po as t}from"./main-BB3F4O6Y.js";export{t as __iconNode,e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{do as e,uo as t}from"./main-BB3F4O6Y.js";export{e as __iconNode,t as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ax as e,Ho as t,Ko as n,Mh as r,N_ as i,Pu as a,Qb as o,Ro as s,Th as c,Wm as l,Xo as u,Yg as d,Ym as ee,Zo as te,cv as f,df as p,dy as m,eh as h,es as g,gl as _,hs as v,ov as y,rh as b,sh as x}from"./utils-DmfMX1v5.js";import{C as S,n as C,y as w}from"./runtime-BQJQC-Ny.js";import{Dt as T,Tt as E}from"./runtime-C6FwphD-.js";var D=ee([`fetch-session-state`,`exchange-bootstrap-credential`,`fetch-environment-descriptor`,`create-pairing-credential`,`list-pairing-links`,`revoke-pairing-link`,`list-client-sessions`,`revoke-client-session`,`revoke-other-client-sessions`]),O=class e extends x()(`PrimaryEnvironmentRequestError`,{operation:D,status:h,pairingLinkId:r(b),sessionId:r(b),cause:l()}){static fromCause(t){let n=U(t.cause)??500;return new e({operation:t.operation,status:n,...t.pairingLinkId===void 0?{}:{pairingLinkId:t.pairingLinkId},...t.sessionId===void 0?{}:{sessionId:t.sessionId},cause:t.cause})}get message(){return`Primary environment request failed during ${this.operation} (HTTP ${this.status}).`}},ne=c(O),k=class extends x()(`PrimaryEnvironmentPairingCredentialRejectedError`,{providedLength:h,cause:l()}){get message(){return`Invalid pairing token. Check the token and try again.`}};c(k);var A=class extends x()(`PrimaryEnvironmentAuthSessionTimeoutError`,{timeoutMs:h,elapsedMs:h}){get message(){return`Timed out waiting for authenticated session after bootstrap.`}},j=class extends x()(`PrimaryEnvironmentPairingCredentialRequiredError`,{providedLength:h}){get message(){return`Enter a pairing token to continue.`}},M=c(a),N=null,P=null,F=!1,I=2e3,L=100;function R(){return E(new URL(window.location.href))}function z(){let e=new URL(window.location.href),t=T(e);t.toString()!==e.toString()&&window.history.replaceState({},document.title,t.toString())}function B(){let e=R();return e?(z(),e):null}function V(){let e=(window.desktopBridge?.getLocalEnvironmentBootstraps()??[]).find(e=>e.id===_);return typeof e?.bootstrapToken==`string`&&e.bootstrapToken.length>0?e.bootstrapToken:null}async function H(){return X(async()=>{try{return await C(w.pipe(d(e=>e.auth.session({headers:{}}))))}catch(e){throw O.fromCause({operation:`fetch-session-state`,cause:e})}})}function U(e){return M(e)?W(e):p(e)&&e.response!==void 0?e.response.status:null}function W(e){switch(e._tag){case`EnvironmentRequestInvalidError`:return 400;case`EnvironmentAuthInvalidError`:return 401;case`EnvironmentScopeRequiredError`:case`EnvironmentOperationForbiddenError`:return 403;case`EnvironmentResourceNotFoundError`:return 404;case`EnvironmentInternalError`:return 500}}async function G(e){return X(async()=>{try{return await C(w.pipe(d(t=>t.auth.browserSession({payload:{credential:e}}))))}catch(t){throw M(t)&&t._tag===`EnvironmentAuthInvalidError`&&t.reason===`invalid_credential`?new k({providedLength:e.length,cause:t}):O.fromCause({operation:`exchange-bootstrap-credential`,cause:t})}})}async function K(){let e=Date.now();for(;;){let t=await H();if(t.authenticated)return t;let n=Date.now()-e;if(n>=I)throw new A({timeoutMs:I,elapsedMs:n});await Z(L)}}var q=new Set([502,503,504]),J=15e3,Y=500;async function X(e){let t=Date.now();for(;;)try{return await e()}catch(e){if(!re(e)||Date.now()-t>=J)throw e;await Z(Y)}}function Z(e){return new Promise(t=>{setTimeout(t,e)})}function re(e){return ne(e)?q.has(e.status):e instanceof TypeError||e instanceof DOMException&&e.name===`AbortError`}async function Q(e){let t=await H();if(t.authenticated&&!e)return{status:`authenticated`};let n=e??V();if(!n)return{status:`requires-auth`,auth:t.auth};try{return await G(n),await K(),{status:`authenticated`}}catch(e){return{status:`requires-auth`,auth:t.auth,errorMessage:e instanceof Error?e.message:`Authentication failed.`}}}async function ie(e){let t=e.trim();if(!t)throw new j({providedLength:e.length});P=null,await G(t),await K(),P={status:`authenticated`},N=null,F=!1,z()}async function ae(e){let t=e?.label?.trim();try{return await C(w.pipe(d(n=>n.auth.pairingCredential({headers:{},payload:{...t?{label:t}:{},...e?.scopes?{scopes:e.scopes}:{}}}))))}catch(e){throw O.fromCause({operation:`create-pairing-credential`,cause:e})}}async function oe(e){try{await C(w.pipe(d(t=>t.auth.revokePairingLink({headers:{},payload:{id:e}}))))}catch(t){throw O.fromCause({operation:`revoke-pairing-link`,pairingLinkId:e,cause:t})}}async function se(e){try{await C(w.pipe(d(t=>t.auth.revokeClient({headers:{},payload:{sessionId:e}}))))}catch(t){throw O.fromCause({operation:`revoke-client-session`,sessionId:e,cause:t})}}async function ce(){try{return(await C(w.pipe(d(e=>e.auth.revokeOtherClients({headers:{}}))))).revokedCount}catch(e){throw O.fromCause({operation:`revoke-other-client-sessions`,cause:e})}}async function le(){if(window.location.pathname.replace(/\/+$/,``)===`/pair`?R()&&(F=!0):F=!1,F)return{status:`requires-auth`,auth:(await H()).auth};let e=B(),t=N;if(e)P=null;else{if(t)return t;if(P?.status===`authenticated`)return P}let n=t?t.catch(()=>void 0).then(()=>(P=null,Q(e))):Q(e);return N=n,n.then(e=>(N===n&&e.status===`authenticated`&&(P=e),e)).finally(()=>{N===n&&(N=null)})}var ue=e(),$=n(f(()=>S()?y(null):i(H))).pipe(te({staleTime:5e3,revalidateOnMount:!0}),u(3e5),g(`primary-environment:session`));function de(){s.refresh($)}function fe(){let e=(0,ue.c)(8),n=t($),r=pe,i=null;if(n._tag===`Failure`){let t;e[0]===n.cause?t=e[1]:(t=m(n.cause),e[0]=n.cause,e[1]=t);let r=t;i=r instanceof Error?r.message:`Could not read environment session.`}let a;e[2]===n?a=e[3]:(a=o(v(n)),e[2]=n,e[3]=a);let s;return e[4]!==i||e[5]!==n.waiting||e[6]!==a?(s={data:a,error:i,isPending:n.waiting,refresh:r},e[4]=i,e[5]=n.waiting,e[6]=a,e[7]=s):s=e[7],s}function pe(){de()}export{ce as a,z as c,le as i,ie as l,ae as n,se as o,R as r,oe as s,fe as t};
|
|
2
|
-
//# sourceMappingURL=primary-uszZTzpR.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Au as e,Ax as t,Bb as n,Cp as r,Fu as i,Go as a,Hg as o,Ho as s,Iu as c,Jd as l,Ko as u,Lu as d,Mh as f,Mu as p,Nu as ee,P_ as m,Pf as te,Pg as ne,Qb as re,Ro as h,Ru as ie,S_ as g,Sv as _,Th as v,Wo as y,Xo as ae,Ym as oe,Yo as se,Zo as ce,b_ as le,c_ as b,dh as ue,dy as de,es as x,gv as fe,hs as pe,jm as S,kc as C,kp as me,lv as w,ms as he,my as T,qs as E,rh as D,sb as O,sh as k,tx as A,v_ as j}from"./utils-DmfMX1v5.js";import{Mn as M,Q as N,X as P,_ as F,o as I,pn as L,r as R,s as ge,ut as _e}from"./runtime-BQJQC-Ny.js";import"./runtime-C6FwphD-.js";import{D as ve}from"./useSettings-CLtJrOYI.js";import{i as ye,n as z}from"./session-DsbInyNV.js";var be=t(),xe=class extends k()(`RelayClientInstallConfirmationConflictError`,{requestedVersion:D,activeVersion:D,activeDialogStatus:oe([`confirming`,`installing`,`closing`]),activeInstallStage:f(e)}){get message(){return`Cannot confirm relay client installation ${this.requestedVersion}; installation ${this.activeVersion} has dialog status ${this.activeDialogStatus}.`}},B={status:`idle`},V=B,H=null,U=new Set;function W(e){V=e;for(let e of U)e()}function Se(){return V}function Ce(e){return U.add(e),()=>{U.delete(e)}}function we(e){if(V.status!==`idle`){let t=V.status===`closing`?V.view:V;return Promise.reject(new xe({requestedVersion:e,activeVersion:t.version,activeDialogStatus:V.status,...t.status===`installing`?{activeInstallStage:t.stage}:{}}))}return W({status:`confirming`,version:e}),new Promise(e=>{H=e})}function Te(e){if(V.status!==`confirming`||!H)return;let t=H;H=null,W(e?{status:`installing`,version:V.version,stage:`checking`}:{status:`closing`,view:V}),t(e)}function Ee(e){V.status===`installing`&&e.type===`progress`&&W({...V,stage:e.stage})}function De(){H?.(!1),H=null,(V.status===`confirming`||V.status===`installing`)&&W({status:`closing`,view:V})}function Oe(){V.status===`closing`&&W(B)}function G(){return ge().relayUrl}var K=class extends O(`CloudEnvironmentLinkError`){},q=e=>t=>new K({message:e,cause:t});function ke(e){return b(function*(){let t=yield*_e,n=yield*t.run(e,P(C.cloudGetRelayClientStatus,{})).pipe(g(q(`Could not check relay client availability.`)));if(n.status===`available`)return;if(n.status===`unsupported`)return yield*new K({message:`P4 Code cannot install the relay client automatically on ${n.platform}-${n.arch}.`});if(!(yield*fe({try:()=>we(n.version),catch:q(`Could not confirm relay client installation.`)})))return yield*new K({message:`Relay client installation was cancelled.`});let i=yield*t.runStream(e,N(C.cloudInstallRelayClient,{}).pipe(me(e=>w(()=>Ee(e))))).pipe(r,g(q(`Could not install the relay client.`)),o(w(De)));if(A(i)||i.value.type!==`complete`)return yield*new K({message:`The relay client install completed without a final status.`});let a=i.value.status;if(a.status!==`available`)return yield*new K({message:a.status===`unsupported`?`P4 Code cannot install the relay client automatically on ${a.platform}-${a.arch}.`:`The relay client is still unavailable after installation.`})})}var Ae=v(ue([ee,ie,c,i,d,p]));function J(e){return t=>{let n=t._tag===`ManagedRelayRequestFailedError`?t:void 0,r=n?.traceId,i=n?M(n):null;return new K({message:i?`${e}: ${i}`:e,cause:t,...r?{traceId:r}:{}})}}function Y(e){return Ae(e)?e:typeof e!=`object`||!e?null:`cause`in e?Y(e.cause):null}var X=e=>t=>{let n=Y(t);return new K({message:n?`${e.replace(/[.:]$/,``)}: ${n.message}`:e,cause:t})};function je(e){let t=new URL(e);return{localHttpHost:`127.0.0.1`,localHttpPort:Number(t.port||(t.protocol===`https:`?443:80))}}var Me=`cloudflare_tunnel`;function Ne(e){return e.link.environmentId===e.expectedEnvironmentId?e.link.endpoint.providerKind===e.expectedProviderKind?_:new K({message:`Relay returned credentials for a different endpoint provider.`}):new K({message:`Relay returned credentials for a different environment.`})}function Pe(e){return b(function*(){return yield*(yield*E(e.target.httpBaseUrl)).connect.linkState({headers:{}}).pipe(g(X(`Could not read environment cloud link state.`)))}).pipe(m(F))}function Fe(e){return b(function*(){let t=yield*E(e.target.httpBaseUrl),{target:n,...r}=e;return yield*t.connect.preferences({headers:{},payload:r}).pipe(g(X(`Could not update environment cloud preferences.`)))}).pipe(m(F))}function Ie(e){return b(function*(){yield*(yield*E(e.target.httpBaseUrl)).connect.unlink({headers:{}}).pipe(g(X(`Could not unlink the environment from cloud.`))),G()&&e.clerkToken&&(yield*(yield*L).unlinkEnvironment({clerkToken:e.clerkToken,environmentId:S.make(e.target.environmentId)}).pipe(ne(e=>j(`Could not revoke cloud environment link after local unlink.`,{cause:e}))))}).pipe(m(F))}var Z=`manual`;function Le(e){return b(function*(){let t=G();if(!t)return yield*new K({message:`P4CODE_RELAY_URL is not configured.`});let n=(e.mode??`managed`)===`managed`,r=n?Me:Z,i=yield*L,a=yield*E(e.target.httpBaseUrl);n&&(yield*ke(S.make(e.target.environmentId)));let o=yield*i.createEnvironmentLinkChallenge({clerkToken:e.clerkToken,payload:{notificationsEnabled:!0,liveActivitiesEnabled:!0,managedTunnelsEnabled:n}}).pipe(g(J(`${t}/v1/client/environment-link-challenges failed`))),s=yield*a.connect.linkProof({headers:{},payload:{challenge:o.challenge,relayIssuer:t,endpoint:{httpBaseUrl:e.target.httpBaseUrl,wsBaseUrl:e.target.wsBaseUrl,providerKind:r},origin:je(e.target.httpBaseUrl)}}).pipe(g(X(`Could not obtain environment link proof.`))),c=yield*i.linkEnvironment({clerkToken:e.clerkToken,payload:{proof:s,notificationsEnabled:!0,liveActivitiesEnabled:!0,managedTunnelsEnabled:n}}).pipe(g(J(`${t}/v1/client/environment-links failed`)));yield*Ne({expectedEnvironmentId:e.target.environmentId,expectedProviderKind:r,link:c}),yield*a.connect.relayConfig({headers:{},payload:{relayUrl:t,relayIssuer:c.relayIssuer,cloudUserId:c.cloudUserId,environmentCredential:c.environmentCredential,cloudMintPublicKey:c.cloudMintPublicKey,endpointRuntime:c.endpointRuntime}}).pipe(g(X(`Could not configure environment relay access.`)))}).pipe(m(F))}var Re=se(T(l,R.contextEffect.pipe(le(e=>n(e,l))))),Q=y(e=>{let t=JSON.parse(e);return Re.atom(Pe({target:t})).pipe(ce({staleTime:5e3,revalidateOnMount:!0}),ae(3e5),x(`primary-cloud-link:${t.environmentId}`))}),ze=u(he(null)).pipe(a,x(`primary-cloud-link:null`));function $(e){return JSON.stringify(e)}function Be(e){e&&z(S.make(e.environmentId),`relay:read`)&&h.refresh(Q($(e)))}function Ve(e){if(!z(S.make(e.environmentId),`relay:read`))return null;let t=h.get(Q($(e)));return t._tag===`Success`?t.value:null}function He(){let e=(0,be.c)(17),t=ve(),n=ye(t?.environmentId??null,te),r;e[0]===t?r=e[1]:(r=t?.entry.target._tag===`PrimaryConnectionTarget`?{environmentId:t.environmentId,label:t.label,httpBaseUrl:t.entry.target.httpBaseUrl,wsBaseUrl:t.entry.target.wsBaseUrl}:null,e[0]=t,e[1]=r);let i=r,a;e[2]!==n||e[3]!==i?(a=i&&I()&&n?Q($(i)):ze,e[2]=n,e[3]=i,e[4]=a):a=e[4];let o=s(a),c;e[5]===i?c=e[6]:(c=()=>{Be(i)},e[5]=i,e[6]=c);let l=c,u=null;if(o._tag===`Failure`){let t;e[7]===o.cause?t=e[8]:(t=de(o.cause),e[7]=o.cause,e[8]=t);let n=t;u=n instanceof Error?n.message:`Could not read P4 Connect link state.`}let d;e[9]===o?d=e[10]:(d=o._tag===`Failure`?null:re(pe(o)),e[9]=o,e[10]=d);let f;return e[11]!==u||e[12]!==l||e[13]!==o.waiting||e[14]!==d||e[15]!==i?(f={data:d,error:u,isPending:o.waiting,refresh:l,target:i},e[11]=u,e[12]=l,e[13]=o.waiting,e[14]=d,e[15]=i,e[16]=f):f=e[16],f}export{Fe as a,Te as c,Ie as i,Ce as l,He as n,Oe as o,Le as r,Se as s,Ve as t};
|
|
2
|
-
//# sourceMappingURL=primaryCloudLinkState-CWT2YTBZ.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ax as e,Ho as t,Ko as n,Qb as r,Ro as i,Th as a,Vo as o,Wc as s,_d as c,ds as l,dy as u,es as d,ex as f,hs as p}from"./utils-DmfMX1v5.js";import{I as m}from"./runtime-BQJQC-Ny.js";import{s as h}from"./vcsRefInvalidation-nP-qgsHs.js";import{W as g}from"./entities-82m-Smm-.js";import{o as _}from"./queries-Cq5C9N-K.js";var v=e(),y=``,b=n(l(!1)),x=n(l(!1)).pipe(d(`project-file-query:empty`));function S(e,t,n){return g.optimisticFile({environmentId:e,cwd:t,relativePath:n})}var C=new Map;function w(e){let t=C.get(e);C.delete(e),t?.()}function T(e,t,n){return g.listEntries({environmentId:e,input:{cwd:t,...n===void 0?{}:{directoryPath:n}}})}function E(e,t,n){return g.readFile({environmentId:e,input:{cwd:t,relativePath:n??y}})}function D(e,t,n){return g.readConfiguration({environmentId:e,input:{cwd:t,relativePath:n}})}function O(e,t,n,r){let a=S(e,t,n);C.has(a)||C.set(a,i.mount(a)),i.set(a,{confirmedAgainst:void 0,data:{relativePath:n,contents:r,byteLength:new TextEncoder().encode(r).byteLength,truncated:!1}})}function k(e,t,n){return i.get(S(e,t,n))?.data??null}function A(e,t,n){let r=k(e,t,n);if(r)return r.contents;let a=i.get(E(e,t,n));return f(p(a))?.contents}function j(e,t,n){let r=i.get(S(e,t,n));return r?.confirmedAgainst===void 0?r?.data??null:null}function M(e,t,n,r){let a=S(e,t,n),o=i.get(a);if(o?.data.contents!==r)return!1;let c=E(e,t,n),l={...o,confirmedAgainst:i.get(c)};return i.set(a,l),w(a),i.refresh(c),m(i,c,{reportDefect:!1,reportFailure:!1}).then(async r=>{if(n===`p4.json`||n===`t3.json`){let n=D(e,t,s);i.refresh(n),await m(i,n,{reportDefect:!1,reportFailure:!1})}r._tag===`Success`&&i.get(a)===l&&i.set(a,null)}),!0}function N(e,t,n,r){return n===null?r:i.get(S(e,t,n))?.data??r}function P(e){return e._tag===`Failure`?u(e.cause):null}function F(e){return e===null?null:e instanceof Error?e.message:`Workspace query failed.`}var I=a(c);function L(e,n,i){let a=(0,v.c)(19),s=h(e),{canReadFiles:c}=s,l;a[0]!==c||a[1]!==n||a[2]!==i||a[3]!==e?(l=c?T(e,n,i):b,a[0]=c,a[1]=n,a[2]=i,a[3]=e,a[4]=l):l=a[4];let u=l,d=t(u),f=o(u),m;a[5]===f?m=a[6]:(m=()=>f(),a[5]=f,a[6]=m);let g=m,_;a[7]===d?_=a[8]:(_=r(p(d)),a[7]=d,a[8]=_);let y;a[9]!==c||a[10]!==s.error||a[11]!==s.isPending||a[12]!==d?(y=s.isPending?null:c?F(P(d)):s.error??`This connection cannot read host files.`,a[9]=c,a[10]=s.error,a[11]=s.isPending,a[12]=d,a[13]=y):y=a[13];let x=s.isPending||d.waiting,S;return a[14]!==g||a[15]!==_||a[16]!==y||a[17]!==x?(S={data:_,error:y,isPending:x,refresh:g},a[14]=g,a[15]=_,a[16]=y,a[17]=x,a[18]=S):S=a[18],S}function R(e,t,n,r,i){let a=(0,v.c)(16),o;a[0]===i?.imageOnly?o=a[1]:(o=i?.imageOnly?{imageOnly:!0}:{},a[0]=i?.imageOnly,a[1]=o);let s;a[2]!==t||a[3]!==e||a[4]!==n||a[5]!==o?(s={environmentId:e,cwd:t,query:n,kind:`file`,...o},a[2]=t,a[3]=e,a[4]=n,a[5]=o,a[6]=s):s=a[6];let c;a[7]===Symbol.for(`react.memo_cache_sentinel`)?(c={allowEmptyQuery:!0},a[7]=c):c=a[7];let l=_(s,r,c),u;a[8]!==l.entries||a[9]!==l.isPending?(u=l.isPending?[]:l.entries,a[8]=l.entries,a[9]=l.isPending,a[10]=u):u=a[10];let d;return a[11]!==l.error||a[12]!==l.isPending||a[13]!==l.searchedQuery||a[14]!==u?(d={entries:u,error:l.error,isPending:l.isPending,matchedQuery:l.searchedQuery},a[11]=l.error,a[12]=l.isPending,a[13]=l.searchedQuery,a[14]=u,a[15]=d):d=a[15],d}function z(e,n,i,a,c){let l=(0,v.c)(36),u=a===void 0||a,d=c!==void 0&&c,f=h(e),{canReadFiles:m}=f,g=u,_;l[0]!==m||l[1]!==d||l[2]!==n||l[3]!==u||l[4]!==e||l[5]!==i?(_=u&&m?d&&i!==null?D(e,n,i):E(e,n,i):x,l[0]=m,l[1]=d,l[2]=n,l[3]=u,l[4]=e,l[5]=i,l[6]=_):_=l[6];let b=_,C=t(b),w=o(b),T;l[7]===w?T=l[8]:(T=()=>w(),l[7]=w,l[8]=T);let O=T,k;l[9]===C?k=l[10]:(k=r(p(C)),l[9]=C,l[10]=k);let A=k,j=A?.relativePath??i??y,M;l[11]!==n||l[12]!==e||l[13]!==j?(M=S(e,n,j),l[11]=n,l[12]=e,l[13]=j,l[14]=M):M=l[14];let N=t(M),L=d?s:y,R;l[15]!==n||l[16]!==e||l[17]!==L?(R=S(e,n,L),l[15]=n,l[16]=e,l[17]=L,l[18]=R):R=l[18];let z=t(R),B=i===null?null:d?z??N:N,V,H,U;if(l[19]!==m||l[20]!==A||l[21]!==f.error||l[22]!==f.isPending||l[23]!==g||l[24]!==B?.data||l[25]!==C){let e=P(C);V=I(e)?e:null,U=m?B?.data??A:null,H=!g||f.isPending?null:m?F(e):f.error??`This connection cannot read host files.`,l[19]=m,l[20]=A,l[21]=f.error,l[22]=f.isPending,l[23]=g,l[24]=B?.data,l[25]=C,l[26]=V,l[27]=H,l[28]=U}else V=l[26],H=l[27],U=l[28];let W=g&&(f.isPending||C.waiting),G=V?.failure===`path_not_file`,K;return l[29]!==V||l[30]!==O||l[31]!==H||l[32]!==W||l[33]!==G||l[34]!==U?(K={data:U,error:H,isPending:W,readError:V,isNotFile:G,refresh:O},l[29]=V,l[30]=O,l[31]=H,l[32]=W,l[33]=G,l[34]=U,l[35]=K):K=l[35],K}export{E as a,N as c,R as d,z as f,A as i,O as l,k as n,j as o,D as r,S as s,M as t,L as u};
|
|
2
|
-
//# sourceMappingURL=projectFilesQueryState-ELgLflk5.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Af as n,Ax as r,If as i,Wc as a,bh as o,ha as s,in as c,iu as l,sr as u}from"./utils-DmfMX1v5.js";import{t as d}from"./bug-Dtc5BRVF.js";import{t as f}from"./flask-conical-WkWFg73e.js";import{t as p}from"./hammer-BRTj-Vot.js";import{t as m}from"./list-checks-CQu2FTgJ.js";import{t as h}from"./play-Bvcnzkvl.js";import{t as g}from"./wrench-CSZxFJCP.js";import{L as ee,U as te}from"./runtime-BQJQC-Ny.js";import{i as _,n as v}from"./session-DsbInyNV.js";import{t as ne}from"./textarea-Bu723jDd.js";import{t as y}from"./input-Cd_0h7h_.js";import{a as re,c as ie,i as b,o as ae,r as oe,s as se,t as ce}from"./dialog-Bn1u_Xoc.js";import{D as x,O as le}from"./keybindings-uYm_vnXl.js";import{i as ue,o as de,t as S}from"./popover-CKyetthu.js";import{f as C}from"./projectFilesQueryState-ELgLflk5.js";import{t as w}from"./p4ProjectFile-BWszgcDk.js";import{l as fe}from"./KeybindingsSettings.logic-7EBA0xLE.js";import{Ar as pe,Fr as me,Ir as he,La as T,Mr as ge,Ni as E,Nr as _e,Pr as ve,jr as ye}from"./main-BB3F4O6Y.js";function D(e,t){let n=e.projectSettingsOverrides[t.id]?.defaultProjectScripts;if(n!==void 0)return n;if(e.projectSettingsFolded)return e.defaultProjectScripts;let r=e.projectScriptOverrides[t.id];return r===null?e.defaultProjectScripts:r??(t.scripts.length>0?t.scripts:e.defaultProjectScripts)}function O(e){return e.worktreePath??e.project.cwd}function k(e){let t={P4CODE_PROJECT_ROOT:e.project.cwd};return e.worktreePath&&(t.P4CODE_WORKTREE_PATH=e.worktreePath),e.extraEnv?{...t,...e.extraEnv}:t}function A(e){let t=[...e.runOnWorktreeCreate?[`setup`]:[],...e.runOnSettle?[`on settle`]:[]];return t.length===0?e.name:`${e.name} (${t.join(`, `)})`}var j=e(t(),1),M=r(),N=`Invalid keybinding.`,P=o(l);function F(e){let t=e?.trim()??``;return t.length>0?t:null}function I(e){let t=F(e.keybinding);if(!t)return null;if(e.command===null)throw Error(N);let n=P({key:t,command:e.command});if(n._tag===`None`)throw Error(N);return n.value}function L(e,t){if(t===null)return null;for(let n=e.length-1;n>=0;--n){let r=e[n];if(!r||r.command!==t)continue;let i=[];r.shortcut.modKey&&i.push(`mod`),r.shortcut.ctrlKey&&i.push(`ctrl`),r.shortcut.metaKey&&i.push(`meta`),r.shortcut.altKey&&i.push(`alt`),r.shortcut.shiftKey&&i.push(`shift`);let a=r.shortcut.key===` `?`space`:r.shortcut.key===`escape`?`esc`:r.shortcut.key;return i.push(a),i.join(`+`)}return null}var R=[];function z(e,t){let n=(0,M.c)(8),r=C(e,t??``,a,t!==null,!0),i=r.data&&!r.data.truncated?r.data.contents:null,o=r.isPending,s;bb0:{if(i===null){let e=o?`loading`:`missing`,t;n[0]===e?t=n[1]:(t={status:e,file:null,scripts:R},n[0]=e,n[1]=t),s=t;break bb0}let e;n[2]===i?e=n[3]:(e=w(i),n[2]=i,n[3]=e);let t=e;if(t===null){let e;n[4]===Symbol.for(`react.memo_cache_sentinel`)?(e={status:`invalid`,file:null,scripts:R},n[4]=e):e=n[4],s=e;break bb0}let r=t.scripts??R,a;n[5]!==t||n[6]!==r?(a={status:`valid`,file:t,scripts:r},n[5]=t,n[6]=r,n[7]=a):a=n[7],s=a}return s}function B(e,t){return z(e,t).scripts}var V=e(s(),1),be=[{id:`play`,label:`Play`},{id:`test`,label:`Test`},{id:`lint`,label:`Lint`},{id:`configure`,label:`Configure`},{id:`build`,label:`Build`},{id:`debug`,label:`Debug`}];function H(e){let t=(0,M.c)(12),{icon:n,className:r}=e,i=r===void 0?`size-3.5`:r;if(n===`test`){let e;return t[0]===i?e=t[1]:(e=(0,V.jsx)(f,{className:i}),t[0]=i,t[1]=e),e}if(n===`lint`){let e;return t[2]===i?e=t[3]:(e=(0,V.jsx)(m,{className:i}),t[2]=i,t[3]=e),e}if(n===`configure`){let e;return t[4]===i?e=t[5]:(e=(0,V.jsx)(g,{className:i}),t[4]=i,t[5]=e),e}if(n===`build`){let e;return t[6]===i?e=t[7]:(e=(0,V.jsx)(p,{className:i}),t[6]=i,t[7]=e),e}if(n===`debug`){let e;return t[8]===i?e=t[9]:(e=(0,V.jsx)(d,{className:i}),t[8]=i,t[9]=e),e}let a;return t[10]===i?a=t[11]:(a=(0,V.jsx)(h,{className:i}),t[10]=i,t[11]=a),a}var U={name:``,command:``,icon:`play`,runOnWorktreeCreate:!1,waitForSetup:!1,runOnSettle:!1,keybinding:null,previewUrl:null,autoOpenPreview:!1};function W(e,t){return{scriptId:e.id,initial:{name:e.name,command:e.command,icon:e.icon,runOnWorktreeCreate:e.runOnWorktreeCreate,waitForSetup:e.runOnWorktreeCreate&&e.async===!1,runOnSettle:e.runOnSettle??!1,keybinding:L(t,x(e.id)),previewUrl:e.previewUrl??null,autoOpenPreview:e.autoOpenPreview??!1}}}function G({environmentId:e,editScope:t=n,request:r,scripts:a,onSubmit:o,onDelete:s,onClose:l}){let d=_(e,t),f=_(e,i),p=j.useId(),[m,h]=(0,j.useState)(``),[g,C]=(0,j.useState)(``),[w,D]=(0,j.useState)(`play`),[O,k]=c(!d),[A,M]=(0,j.useState)(!1),[N,P]=(0,j.useState)(!1),[F,L]=(0,j.useState)(!1),[R,z]=(0,j.useState)(``),[B,U]=(0,j.useState)(``),[W,G]=(0,j.useState)(!1),[K,q]=(0,j.useState)(null),[xe,J]=c(!d),[Se,Y]=(0,j.useState)(null),X=(0,j.useRef)(null),Ce=r!==null,Z=r?.scriptId!=null,Q=r!==null&&Se===r;(0,j.useLayoutEffect)(()=>()=>{X.current?.request===r&&(X.current=null)},[r]),(0,j.useEffect)(()=>{r&&(h(r.initial.name),C(r.initial.command),D(r.initial.icon),k(!1),M(r.initial.runOnWorktreeCreate),P(r.initial.waitForSetup),L(r.initial.runOnSettle),z(r.initial.keybinding??``),U(r.initial.previewUrl??``),G(r.initial.autoOpenPreview),q(r.error??null),Y(null))},[r,k]);let $=()=>{X.current=null,Y(null),k(!1),l()};return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(ce,{open:Ce,onOpenChange:e=>{e||$()},children:(0,V.jsxs)(se,{children:[(0,V.jsxs)(re,{children:[(0,V.jsx)(ie,{children:Z?`Edit Action`:`Add Action`}),(0,V.jsx)(oe,{children:`Actions are project-scoped commands you can run from the top bar or keybindings.`})]}),(0,V.jsx)(ae,{children:(0,V.jsx)(`form`,{id:p,onSubmit:async n=>{if(n.preventDefault(),!r||X.current!==null)return;if(!v(e,t)){q(`This connection cannot change project actions.`);return}let s=(R.trim()||null)!==(r.initial.keybinding?.trim()||null),c=v(e,i);if(s&&!c){q(`This connection cannot change keyboard shortcuts.`);return}let l=m.trim(),u=g.trim();if(l.length===0){q(`Name is required.`);return}if(u.length===0){q(`Command is required.`);return}q(null);let d;try{let e=r.scriptId??le(l,a.map(e=>e.id)),t=I({keybinding:R,command:x(e)}),n=B.trim();d={name:l,command:u,icon:w,runOnWorktreeCreate:A,waitForSetup:A&&N,runOnSettle:F,...r.scriptId===null&&c||s?{keybinding:t?.key??null}:{},previewUrl:n.length>0?n:null,autoOpenPreview:n.length>0&&W}}catch(e){q(e instanceof Error?e.message:`Failed to save action.`);return}let f={request:r};X.current=f,Y(r),k(!1);try{let e=await o(r.scriptId,d);if(X.current===f){if(e._tag===`Failure`){if(!ee(e)){let t=te(e);q(t instanceof Error?t.message:`Failed to save action.`)}}else $()}}catch(e){X.current===f&&q(e instanceof Error?e.message:`Failed to save action.`)}X.current===f&&(X.current=null,Y(null))},children:(0,V.jsxs)(`fieldset`,{className:`space-y-4`,disabled:Q||!d,children:[(0,V.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,V.jsx)(E,{htmlFor:`script-name`,children:`Name`}),(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,V.jsxs)(S,{onOpenChange:k,open:O,children:[(0,V.jsx)(de,{render:(0,V.jsx)(u,{type:`button`,variant:`outline`,className:`size-9 shrink-0`,"aria-label":`Choose icon`}),children:(0,V.jsx)(H,{icon:w,className:`size-4.5`})}),(0,V.jsx)(ue,{align:`start`,children:(0,V.jsx)(`div`,{className:`grid grid-cols-3 gap-2`,children:be.map(e=>{let t=e.id===w;return(0,V.jsxs)(`button`,{type:`button`,className:`relative flex flex-col items-center gap-2 rounded-md border px-2 py-2 text-xs dark:border-transparent ${t?`border-primary/70 bg-primary/10 ring-inset dark:ring-1 dark:ring-primary/30`:`border-border/70 hover:bg-accent/60 dark:bg-white/[0.035]`}`,onClick:()=>{D(e.id),k(!1)},children:[(0,V.jsx)(H,{icon:e.id,className:`size-4`}),(0,V.jsx)(`span`,{children:e.label})]},e.id)})})})]}),(0,V.jsx)(y,{id:`script-name`,autoFocus:!0,placeholder:`Test`,value:m,onChange:e=>h(e.target.value)})]})]}),(0,V.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,V.jsx)(E,{htmlFor:`script-keybinding`,children:`Keybinding`}),(0,V.jsx)(y,{disabled:!f,id:`script-keybinding`,placeholder:`Press shortcut`,value:R,readOnly:!0,onKeyDown:n=>{if(!v(e,t)||!v(e,`settings:write`)||n.key===`Tab`)return;if(n.preventDefault(),n.key===`Backspace`||n.key===`Delete`){z(``);return}let r=fe(n,navigator.platform);r&&z(r)}}),(0,V.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Press a shortcut. Use `,(0,V.jsx)(`code`,{children:`Backspace`}),` to clear. Shortcuts are environment-wide. Projects using the same action share its shortcut.`]})]}),(0,V.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,V.jsx)(E,{htmlFor:`script-command`,children:`Command`}),(0,V.jsx)(ne,{id:`script-command`,placeholder:`bun test`,value:g,onChange:e=>C(e.target.value)})]}),(0,V.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,V.jsx)(E,{htmlFor:`script-preview-url`,children:`Preview URL (optional)`}),(0,V.jsx)(y,{id:`script-preview-url`,placeholder:`http://localhost:5173`,value:B,onChange:e=>U(e.target.value)}),(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Open this URL in the in-app preview when this action runs.`})]}),(0,V.jsxs)(`label`,{className:`flex items-center justify-between gap-3 rounded-md border border-border/70 px-3 py-2 text-sm dark:border-transparent dark:bg-white/[0.035]`,children:[(0,V.jsx)(`span`,{children:`Run automatically on worktree creation`}),(0,V.jsx)(T,{checked:A,onCheckedChange:e=>M(!!e)})]}),(0,V.jsxs)(`label`,{className:`flex items-center justify-between gap-3 rounded-md border border-border/70 px-3 py-2 text-sm dark:border-transparent dark:bg-white/[0.035] ${A?``:`opacity-60`}`,children:[(0,V.jsx)(`span`,{children:`Wait for it to finish before the agent starts`}),(0,V.jsx)(T,{checked:N,disabled:!A,onCheckedChange:e=>P(!!e)})]}),(0,V.jsxs)(`label`,{className:`flex items-center justify-between gap-3 rounded-md border border-border/70 px-3 py-2 text-sm dark:border-transparent dark:bg-white/[0.035]`,children:[(0,V.jsx)(`span`,{children:`Run in the thread's worktree when the thread settles`}),(0,V.jsx)(T,{checked:F,onCheckedChange:e=>L(!!e)})]}),(0,V.jsxs)(`label`,{className:`flex items-center justify-between gap-3 rounded-md border border-border/70 px-3 py-2 text-sm dark:border-transparent dark:bg-white/[0.035] ${B.trim().length===0?`opacity-60`:``}`,children:[(0,V.jsx)(`span`,{children:`Open preview automatically when this action runs`}),(0,V.jsx)(T,{checked:W,disabled:B.trim().length===0,onCheckedChange:e=>G(!!e)})]}),K&&(0,V.jsx)(`p`,{className:`text-sm text-destructive`,children:K})]})})}),(0,V.jsxs)(b,{variant:`bare`,children:[Z&&(0,V.jsx)(u,{type:`button`,variant:`destructive-outline`,className:`mr-auto`,disabled:Q||!d,onClick:()=>J(!0),children:`Delete`}),(0,V.jsx)(u,{type:`button`,variant:`outline`,onClick:$,children:`Cancel`}),(0,V.jsx)(u,{form:p,type:`submit`,disabled:Q||!d,children:Q?`Saving…`:Z?`Save changes`:`Save action`})]})]})}),(0,V.jsx)(pe,{open:xe&&d,onOpenChange:J,children:(0,V.jsxs)(me,{children:[(0,V.jsxs)(ve,{children:[(0,V.jsxs)(he,{children:[`Delete action "`,m,`"?`]}),(0,V.jsx)(ge,{children:`This action cannot be undone.`})]}),(0,V.jsxs)(_e,{children:[(0,V.jsx)(ye,{render:(0,V.jsx)(u,{variant:`outline`}),children:`Cancel`}),(0,V.jsx)(u,{variant:`destructive`,disabled:Q||!d,onClick:()=>{if(r?.scriptId){if(!v(e,t)){q(`This connection cannot change project actions.`);return}J(!1),$(),s(r.scriptId)}},children:`Delete action`})]})]})})]})}export{B as a,L as c,k as d,D as f,W as i,O as l,G as n,z as o,H as r,I as s,U as t,A as u};
|
|
2
|
-
//# sourceMappingURL=projectScriptEditor-BAuP_HeU.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{$o as n,Ad as r,Ax as i,Ho as a,Ko as o,Mh as s,Od as c,Qb as l,Ro as u,Vm as d,Wo as f,Xo as p,ah as m,bh as h,es as g,hs as _,jd as v,jm as y,rh as b,th as ee,zd as te}from"./utils-DmfMX1v5.js";import{R as ne}from"./entities-82m-Smm-.js";import{B as re,H as ie,V as ae,rn as oe,sn as se,t as x}from"./runtime-C6FwphD-.js";import{t as ce}from"./query-DpwJQzeq.js";import{a as S,s as C}from"./threadSort-BoaTqeGH.js";var w=e(t(),1),T=i(),le=e=>`${e.environmentId??``} ${e.host}`,E={reviewRequested:`Review requested`,authored:`Authored`,others:`Others`};function D(e){let t=e?.trim().toLowerCase()??``;return t.length>0?t:null}function ue(e){let t=e?.trim().replace(/^#/,``)??``;return/^[0-9a-fA-F]{6}$/.test(t)?`#${t}`:null}function de(e,t){let n=new Map,r=new Map,i=new Map(e.map(e=>[F(e),e]));for(let e of i.values()){let i=t===`all`||e.state===t;if(e.author!==null){let t=D(e.author.login);if(t!==null){let r=n.get(t);n.set(t,{actor:r?.actor??e.author,count:(r?.count??0)+Number(i),mergedCount:(r?.mergedCount??0)+Number(e.state===`merged`)})}}if(i)for(let t of e.labels){let e=D(t.name);if(e===null)continue;let n=r.get(e);r.set(e,{...t,name:n?.name??t.name,color:n?.color??t.color,count:(n?.count??0)+1})}}return{authors:[...n.values()].filter(e=>e.count>0).toSorted((e,t)=>t.mergedCount-e.mergedCount||t.count-e.count||e.actor.login.localeCompare(t.actor.login)),labels:[...r.values()].toSorted((e,t)=>t.count-e.count||e.name.localeCompare(t.name))}}function O(e,t){return D(t[le(e)]??t[e.host])}function k(e,t){let n=O(e,t);return n!==null&&D(e.author?.login)===n}var fe={approved:`approved`,changes_requested:`changes-requested`,"changes-requested":`changes-requested`,required:`review-required`,"review-required":`review-required`,none:`none`},pe={success:`passing`,passing:`passing`,failure:`failing`,failing:`failing`},me=/(?:[^\s"]|"[^"]*")+/g,A=10,j=200;function M(e){return e.replaceAll(`"`,``).trim()}function N(e){if(/^\s*"[^"]*"\s*$/.test(e)){let t=M(e);return t.length===0?[]:[t]}return e.split(`,`).map(e=>M(e)).filter(e=>e.length>0)}function P(e){return e.slice(0,A).map(e=>e.slice(0,j).trim()).filter(e=>e.length>0)}function he(e){let t=[],n=[],r=[],i,a,o,s;for(let[c]of e.matchAll(me)){let e=/^(-?)([A-Za-z][A-Za-z0-9_-]*):(.*)$/.exec(c),l=e===null?``:M(e[3]??``),u=e?.[1]===`-`;switch(l.length===0?``:e?.[2]?.toLowerCase()??``){case`label`:{let t=P(N(e?.[3]??``));if(t.length===0)break;u?r.push(...t):n.push(t);continue}case`author`:if(u)break;i=l.slice(0,j).trim();continue;case`draft`:if(u||l.toLowerCase()!==`true`&&l.toLowerCase()!==`false`)break;a=l.toLowerCase()===`true`?`only`:`hide`;continue;case`review`:{let e=u?void 0:fe[l.toLowerCase()];if(e===void 0)break;o=e;continue}case`status`:case`checks`:{let e=u?void 0:pe[l.toLowerCase()];if(e===void 0)break;s=e;continue}case``:break;default:if(!l.startsWith(`/`)){let t=P(N(e?.[3]??``).map(t=>t.includes(`:`)?t:`${e?.[2]??``}:${t}`));if(t.length===0)break;u?r.push(...t):n.push(t);continue}}t.push(c)}return{text:t.join(` `),filters:{...n.length===0?{}:{labels:n.slice(0,A)},...r.length===0?{}:{excludedLabels:r.slice(0,A)},...i===void 0?{}:{author:i},...a===void 0?{}:{draft:a},...o===void 0?{}:{review:o},...s===void 0?{}:{checks:s}}}}function ge(e,t){let n=t.trim().toLowerCase();return n.length===0||`#${e.number} ${e.title} ${e.repository} ${e.headBranch} ${e.author?.login??``}`.toLowerCase().includes(n)}function _e(e,t,n){return n===`reviewing`?e.filter(e=>e.viewerReviewRequested):n===`authored`?e.filter(e=>k(e,t)):e}function ve(e,t){return e.filter(e=>(t.state===`all`||e.state===t.state)&&(t.projectId===void 0||e.projectId===t.projectId)&&(t.host===void 0||e.host===t.host))}function ye(e,t,n){let r=e.labels.map(e=>e.name.trim().toLowerCase()),i=e=>r.includes(e.trim().toLowerCase());return(t.draft===void 0||e.isDraft===(t.draft===`only`))&&(t.review===void 0||(t.review===`none`?e.reviewDecision===void 0:e.reviewDecision===t.review))&&(t.labels===void 0||t.labels.every(e=>e.some(i)))&&(t.excludedLabels===void 0||!t.excludedLabels.some(i))&&(t.author===void 0||e.author?.login.toLowerCase()===te(t.author,n).toLowerCase())}function be(e,t){let n={reviewRequested:[],authored:[],others:[]};for(let r of e)k(r,t)?n.authored.push(r):r.viewerReviewRequested?n.reviewRequested.push(r):n.others.push(r);return[`authored`,`reviewRequested`,`others`].filter(e=>n[e].length>0).map(e=>({key:e,label:E[e],entries:n[e]}))}function F(e){return`${e.environmentId===void 0?``:`${e.environmentId}:`}${e.host}:${e.repository}#${e.number}`}var I=500;function xe(e,t,n,r){let i=new Set(n.flatMap(e=>[...e.keys]));return new Set([...t].filter(t=>{let n=e.get(t);return n!==void 0&&n.additions===0&&n.deletions===0&&!i.has(t)&&!r.has(R(n))}))}function Se(e,t){let n=new Map;for(let r of t){let t=e.get(r);if(t===void 0)continue;let i=n.get(t.environmentId)??[];i.push({key:r,ref:{projectId:t.projectId,repository:t.repository,number:t.number}}),n.set(t.environmentId,i)}return[...n].flatMap(([e,t])=>{let n=[];for(let r=0;r<t.length;r+=I){let i=t.slice(r,r+I);n.push({environmentId:e,input:{refs:i.map(e=>e.ref)},keys:new Set(i.map(e=>e.key))})}return n})}function L({entriesByKey:e,candidateKeys:t,policy:n,activeBatches:r,statsByRow:i,refresh:a=!1}){let o=n===`eager`?new Set(e.keys()):t;return Se(e,a?o:xe(e,o,r,i))}function Ce({requestedScope:e,currentScope:t,entriesByKey:n,candidateKeys:r,statsByRow:i}){return e.key!==t.key||e.policy!==t.policy?null:L({entriesByKey:n,candidateKeys:r,policy:e.policy,activeBatches:[],statsByRow:i,refresh:!0})}function we(e,t){return e.filter(e=>{for(let n of e.keys)if(t.has(n))return!0;return!1})}function Te(e,t,n){let r=new Map(t.map(e=>[F(e),e])),i=new Map(n.flatMap(e=>{let t=F(e);return r.has(t)?[]:[[t,e]]})),a=[];for(let t of e){let e=F(t);r.has(e)?r.set(e,t):i.has(e)?i.set(e,t):a.push(t)}let o=(e,t)=>t.updatedAt.localeCompare(e.updatedAt);return[{key:`authored`,entries:[...r.values()].toSorted(o)},{key:`reviewRequested`,entries:[...i.values()].toSorted(o)},{key:`others`,entries:a}].filter(e=>e.entries.length>0).map(e=>({...e,label:E[e.key]}))}function Ee(e,t){if(t.length===0)return e;let n=new Map(e);for(let e of t)n.set(R(e),{additions:e.additions,deletions:e.deletions});return n}var R=e=>`${e.environmentId} ${e.projectId} ${e.number}`;function De(e){if(e.length===0)return null;let t={},n=[],r=new Map,i=[],a=[],o={},s=!1;for(let[c,l]of e){for(let[e,n]of Object.entries(l.viewers))t[`${c} ${e}`]=n;for(let e of l.providers){let t=r.get(e.host);r.set(e.host,t===void 0?e:{...t.configured?t:e,projectCount:t.projectCount+e.projectCount,searchesOnHost:t.searchesOnHost&&e.searchesOnHost,configured:t.configured||e.configured})}i.push(...l.entries.map(e=>({...e,environmentId:c}))),a.push(...l.errors.map(e=>({...e,environmentId:c}))),s||=l.truncated,l.truncated&&n.push(c),Object.keys(l.nextCursors).length>0&&(o[c]=l.nextCursors)}return{viewers:t,providers:[...r.values()],entries:i.toSorted((e,t)=>t.updatedAt.localeCompare(e.updatedAt)),errors:a,truncated:s,nextCursors:o,truncatedEnvironments:n}}var z=99,Oe=e=>[...e].sort((e,t)=>e.localeCompare(t)).join(`,`),B=e=>`t3.pullRequests.list:${e}`,V=m({...c.fields,environmentId:y}),ke=m({...r.fields,environmentId:y}),Ae=h(m({scope:b,data:m({...v.fields,entries:d(V),errors:d(ke),nextCursors:ee(b,v.fields.nextCursors),truncatedEnvironments:d(b)}),partitions:s(m({authored:d(V),reviewing:d(V)}))}));function je(e,t){try{let n=e?.getItem(B(t));if(!n)return null;let r=Ae(JSON.parse(n));return r._tag===`Some`?r.value:null}catch{return null}}function Me(e,t,n){try{e?.setItem(B(t),JSON.stringify({scope:n.scope,data:{...n.data,entries:n.data.entries.slice(0,z),errors:[],nextCursors:{},truncatedEnvironments:[]},...n.partitions===void 0?{}:{partitions:{authored:n.partitions.authored.slice(0,z),reviewing:n.partitions.reviewing.slice(0,z)}}}))}catch{}}function Ne(e,t,n){return e===void 0||!n||t.some(t=>t.id===e)?e:void 0}function Pe(e,t,n){if(n===void 0)return;let r=e.filter(e=>e.id===n);return t==null?r.length===1?r[0]:void 0:r.find(e=>e.environmentId===t)}function Fe(e,t,n,r,i){if(n!==void 0)return e.filter(e=>e===n.environmentId);if(r===void 0||!i)return e;let a=new Set(t.filter(e=>e.id===r).map(e=>e.environmentId));return e.filter(e=>a.has(e))}function Ie(e,t,n){return e===void 0?n:t.has(e)?e:n}function H(e,t){let n=t.trim().toLowerCase();if(n.length===0)return 0;let r=n.replace(/^#/u,``);if(/^\d+$/u.test(r))return String(e.number)===r?100:0;let i=e.title.toLowerCase(),a=n.split(/\s+/u).filter(e=>e.length>0);return i===n?90:i.includes(n)?80:a.length>1&&a.every(e=>i.includes(e))?70:e.headBranch.toLowerCase().includes(n)?60:(e.author?.login??``).toLowerCase().includes(n)?50:e.repository.toLowerCase().includes(n)?40:a.some(e=>i.includes(e))?30:10}function Le(e,t){return t.trim().length===0?e:e.toSorted((e,n)=>{let r=H(n,t)-H(e,t);return r===0?n.updatedAt.localeCompare(e.updatedAt):r})}function Re(e,t=e=>e.additions+e.deletions>0){let n=e=>e.mergeability===`conflicting`?4:e.state===`open`?e.isDraft?2:e.checksState===`passing`&&e.reviewDecision===`approved`?0:e.checksState===`passing`?1:2:3;return e.toSorted((e,r)=>{let i=n(e)-n(r);if(i!==0)return i;let a=Number(t(r))-Number(t(e)),o=e.additions+e.deletions-(r.additions+r.deletions);return a||o||r.updatedAt.localeCompare(e.updatedAt)})}function U(e,t){let n=e=>S(e.updatedAt);return e.toSorted((e,r)=>{let i=t(e)-t(r);if(i!==0)return i;let a=n(e),o=n(r),s=Number(a===null)-Number(o===null);return s===0?a===null||o===null?0:o-a:s})}function ze(e){return U(e,e=>e.state===`open`?e.mergeability===`conflicting`?0:e.reviewDecision===`changes-requested`?1:e.checksState===`failing`?2:e.isDraft?3:e.checksState===`passing`&&e.reviewDecision===`approved`?5:4:6)}function Be(e){return U(e,e=>e.state===`open`?0:1)}function Ve(e,t,n,r=e=>e.additions+e.deletions>0,i=`all`){let a=t=>e.map(e=>({...e,entries:t(e.entries)}));if(t===`ready`)return n.trim().length===0?a(e=>Re(e,r)):e;if(t===`blocked`){if(n.trim().length>0)return e;let t=e=>e===`others`?i:e===`authored`?`authored`:`reviewing`;return e.map(e=>{let n=t(e.key);if(n===`all`)return e;let r=n===`authored`?ze:Be;return{...e,entries:r(e.entries)}})}if(t===`updated`)return e;let o=e=>S(e.updatedAt)??S(e.createdAt)??0;return a(e=>e.toSorted((e,n)=>{if(t===`newest`||t===`oldest`){let r=S(e.createdAt),i=S(n.createdAt),a=Number(i!==null)-Number(r!==null),s=(r??0)-(i??0);return a||(t===`newest`?-s:s)||o(n)-o(e)}let i=Number(r(n))-Number(r(e)),a=e.additions+e.deletions-(n.additions+n.deletions);return i||(t===`largest`?-a:a)||o(n)-o(e)}))}function He(e,t){if(e.additions!==0||e.deletions!==0)return e;let n=t.get(R(e));return n===void 0?e:{...e,...n}}function Ue(e,t,n,r){let i={updatedAt:n.toISOString(),token:r,at:n.getTime()};switch(t){case`close`:return{state:`closed`,...i};case`reopen`:return{state:`open`,...i};case`merge`:return{state:`merged`,...i};case`draft`:return{state:e.state,isDraft:!0,...i};case`ready`:return{state:e.state,isDraft:!1,...i};default:return null}}function We(e,t,n,r){if(t.size===0&&r===`all`)return e;let i=[];for(let a of e){let e=t.get(n(a));(r===`all`||(e?.state??a.state)===r)&&i.push(e===void 0?a:{...a,...e})}return t.size===0&&i.length===e.length?e:i}function Ge(e,t,n){if(e.length===0)return t;let r=new Map(e.map(e=>[n(e),e])),i=0,a=t.map(e=>{let t=r.get(n(e));return t!==void 0&&JSON.stringify(t)===JSON.stringify(e)?(i+=1,t):e});return i===t.length&&e.length===t.length&&e.every((e,r)=>n(e)===n(t[r]))?e:a}var Ke=6e4;function qe(e,t,n,r){if(e.size===0)return e;let i=new Map(t.map(e=>[n(e),e])),a=new Map;for(let[t,n]of e){let e=i.get(t);if(e===void 0){a.set(t,n);continue}let o=e.state===n.state&&(n.isDraft===void 0||e.isDraft===n.isDraft),s=r-n.at>Ke;!o&&!s&&a.set(t,n)}return a.size===e.size?e:a}function Je(e){let t=new Map(e.flatMap(e=>e.actions===void 0?[]:[[e.host.toLowerCase(),new Set(e.actions)]])),n=new Set([`close`,`merge`,`ready`,`reopen`]),r=new Set;return e=>t.get(e.host.toLowerCase())??(e.provider===`github`?n:r)}function Ye(e,t){return(e.state===`merged`?[]:e.state===`closed`?[`reopen`]:e.isDraft?[`close`,`ready`]:[`close`,`merge`]).filter(e=>t.has(e))}var W=ae(x),Xe=re(x,W.refreshes),G=f(e=>o(null).pipe(p(3e5),g(`web-pull-requests:observed-summary:${e}`)));function K(e,t){let n=Number(t.state===`merged`)-Number(e.state===`merged`);if(n!==0)return n;let r=Date.parse(t.updatedAt)-Date.parse(e.updatedAt);return r===0?e.observedAt===void 0&&t.observedAt===void 0?0:(t.observedAt??-1/0)-(e.observedAt??-1/0):r}function q(e,t){return e===null?t:t===null?e:K(e,t)>=0?t:e}function J(e){return{provider:e.provider,projectId:e.projectId,repository:e.repository,number:e.number,title:e.title,url:e.url,state:e.state,isDraft:e.isDraft,headBranch:e.headBranch,baseBranch:e.baseBranch,updatedAt:e.updatedAt,...e.observedAt===void 0?{}:{observedAt:e.observedAt},author:e.author,...e.reviewDecision===void 0?{}:{reviewDecision:e.reviewDecision},...e.checksState===void 0?{}:{checksState:e.checksState},mergeability:e.mergeability}}function Y(e,t){return JSON.stringify([e,t.projectId,t.repository.toLowerCase(),t.number])}function X(e,t){if(e===null)return t;if(t===null)return e;let n=K(e.summary,t.summary);return n===0&&e.summary.observedAt===void 0&&t.summary.observedAt===void 0&&(n=t.observedAt-e.observedAt),n>0?{...t,summary:{...t.summary,isDraft:t.summary.isDraft??e.summary.isDraft,mergeability:t.summary.mergeability??e.summary.mergeability,reviewDecision:t.summary.reviewDecision===void 0?e.summary.reviewDecision:t.summary.reviewDecision,checksState:t.summary.checksState===void 0?e.summary.checksState:t.summary.checksState}}:e}function Z(e,t,n,r){let i=G(Y(e,t));u.modify(i,e=>{let t=X(e,{summary:n,observedAt:r});return t===e?[!1,e]:[!0,t]})}function Ze(e,t){let n=e.snapshot?.updatedAt;return e.snapshot===null||n==null?null:{...e.snapshot,provider:(C.findByChangeRequestUrl(e.url)??C.get(void 0)).kind,projectId:t,repository:e.repository,number:e.number,url:e.url,updatedAt:n}}function Q(e,t){return t.host===void 0?``:`${e}:${oe({...t,host:t.host})}`}var Qe=o(e=>{let t=new Map;for(let n of e(ne.threadShellsAtom))for(let e of se(n.pullRequests)){let r=Ze(e,n.projectId);if(r===null)continue;let i=Q(n.environmentId,e);t.set(i,q(t.get(i)??null,r)??r)}return t}),$e=f(e=>o(t=>t(Qe).get(e)??null).pipe(n((e,t)=>JSON.stringify(e)===JSON.stringify(t)),p(3e5)));function et(e,t,n,r){let i=(0,T.c)(19),o=r===void 0?null:r,s;i[0]!==e||i[1]!==t?(s=G(e===null||t===null?`none`:Y(e,t)),i[0]=e,i[1]=t,i[2]=s):s=i[2];let c=a(s),l;i[3]!==e||i[4]!==t?(l=$e(e===null||t===null?``:Q(e,t)),i[3]=e,i[4]=t,i[5]=l):l=i[5];let u=a(l),d,f;i[6]!==n||i[7]!==e||i[8]!==o||i[9]!==t?(d=()=>{e!==null&&t!==null&&n!==null&&o!==null&&Z(e,t,n,o)},f=[n,e,t,o],i[6]=n,i[7]=e,i[8]=o,i[9]=t,i[10]=d,i[11]=f):(d=i[10],f=i[11]),(0,w.useLayoutEffect)(d,f);let p;i[12]!==n||i[13]!==c||i[14]!==o?(p=X(c,n===null||o===null?null:{summary:n,observedAt:o})?.summary??n,i[12]=n,i[13]=c,i[14]=o,i[15]=p):p=i[15];let m=p,h;return i[16]!==u||i[17]!==m?(h=q(m,u),i[16]=u,i[17]=m,i[18]=h):h=i[18],h}var tt=ie(x,W.refreshes);function $(e,t){let n=f(n=>o(e=>{let r=JSON.parse(n),i=[],a=[],o=null,s=!1;for(let n of r){let r=e(t(n));s||=r.waiting,r._tag===`Failure`&&o===null&&(o=ce(r.cause));let c=l(_(r));c!==null&&i.push([n.environmentId,c]),r._tag===`Success`&&a.push([n.environmentId,r.value,r.timestamp])}return{values:i,error:o,isPending:s,observations:a}}).pipe(g(`${e}:${n}`))),r=o({values:[],observations:[],error:null,isPending:!1}).pipe(g(`${e}:empty`));return function(e){let i=JSON.stringify(e),o=a(e.length===0?r:n(i)),s=(0,w.useCallback)(e=>{let n=e??JSON.parse(i);for(let e of new Set(n.map(t)))u.refresh(e)},[i]);return{...o,refresh:s}}}var nt=$(`web-pull-requests:list`,W.list),rt=$(`web-pull-requests:list-stats`,W.listStats),it=$(`web-pull-requests:turn-refreshes`,({environmentId:e})=>W.refreshes({environmentId:e,input:{}}));function at(e){let t=(0,T.c)(2),n;return t[0]===e?n=t[1]:(n=e.map(ot),t[0]=e,t[1]=n),it(n).values}function ot(e){return{environmentId:e,input:{}}}function st(e){let t=(0,T.c)(4),n;t[0]===e?n=t[1]:(n=W.refreshes({environmentId:e,input:{}}),t[0]=e,t[1]=n);let r=a(n),i;return t[2]===r?i=t[3]:(i=l(_(r)),t[2]=r,t[3]=i),i}function ct(e){let t=(0,T.c)(10),n=nt(e),r,i;t[0]===n.observations?(r=t[1],i=t[2]):(r=()=>{for(let[e,t,r]of n.observations)for(let n of t.entries)Z(e,{projectId:n.projectId,host:n.host,repository:n.repository,number:n.number},J(n),r)},i=[n.observations],t[0]=n.observations,t[1]=r,t[2]=i),(0,w.useLayoutEffect)(r,i);let a;t[3]===n.values?a=t[4]:(a=De(n.values),t[3]=n.values,t[4]=a);let o=a,s;return t[5]!==o||t[6]!==n.error||t[7]!==n.isPending||t[8]!==n.refresh?(s={data:o,error:n.error,isPending:n.isPending,refresh:n.refresh},t[5]=o,t[6]=n.error,t[7]=n.isPending,t[8]=n.refresh,t[9]=s):s=t[9],s}function lt(e){let t=(0,T.c)(6),n=rt(e),r;t[0]===n.values?r=t[1]:(r=n.values.length===0?null:n.values.flatMap(ut),t[0]=n.values,t[1]=r);let i=r,a;return t[2]!==n.isPending||t[3]!==n.refresh||t[4]!==i?(a={stats:i,isPending:n.isPending,refresh:n.refresh},t[2]=n.isPending,t[3]=n.refresh,t[4]=i,t[5]=a):a=t[5],a}function ut(e){let[t,n]=e;return n.stats.map(e=>({...e,environmentId:t}))}export{Ce as A,qe as B,F as C,ue as D,Je as E,Fe as F,He as H,Ie as I,we as L,Le as M,je as N,Ue as O,Ne as P,Ge as R,R as S,Oe as T,Me as U,Ve as V,ge as _,tt as a,he as b,st as c,We as d,de as f,ye as g,be as h,J as i,L as j,Ye as k,at as l,Pe as m,q as n,ct as o,_e as p,W as r,lt as s,Xe as t,et as u,Ee as v,O as w,Te as x,ve as y,H as z};
|
|
2
|
-
//# sourceMappingURL=pullRequests-DjbQ49mZ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{co as e,lo as t}from"./main-BB3F4O6Y.js";export{t as __iconNode,e as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{$c as n,$m as r,Ax as i,Cg as a,Dp as o,Fv as s,Go as c,Hg as l,Ho as u,I_ as d,Jf as f,Kc as p,Ko as m,Mp as h,Ob as g,Pg as _,Qb as v,Qg as y,Ro as b,Rv as x,Sv as ee,Vm as te,Wg as S,Wm as ne,Wo as C,Xf as re,Xo as ie,Yg as ae,Ym as oe,ax as se,bh as ce,bp as le,c_ as ue,ch as de,cv as fe,dh as pe,dp as me,dy as he,eh as ge,el as _e,es as w,ey as ve,fp as ye,fs as be,fv as xe,gg as Se,hs as T,hu as Ce,id as E,ix as we,jb as Te,jm as D,k_ as Ee,kc as O,lv as k,mg as De,mu as Oe,op as ke,ov as A,ox as Ae,qv as je,rh as j,rs as Me,sh as M,sp as N,ss as Ne,tp as Pe,tx as Fe,uv as Ie,v_ as P,wb as Le,wg as F,wh as Re,xh as ze,yb as Be,yp as Ve}from"./utils-DmfMX1v5.js";import{$ as He,F as Ue,Kt as We,M as I,N as L,P as Ge,X as Ke,at as qe,et as Je,ft as Ye,gt as R,j as z,ot as Xe,q as Ze,rt as Qe}from"./runtime-BQJQC-Ny.js";import{a as B,i as V,n as $e,r as et,s as tt,t as nt}from"./vcsRefInvalidation-nP-qgsHs.js";import{U as rt,W as it}from"./entities-82m-Smm-.js";import{t as H}from"./runtime-C6FwphD-.js";import{n as U}from"./query-DpwJQzeq.js";var W=i(),at=Re(de([te(D),p.fields.query])),ot=ce(at);function st(e,t){return JSON.stringify([[...e].sort((e,t)=>e.localeCompare(t)),t])}function ct(e){return ot(e)}function lt(e){return JSON.stringify([e.environmentId,e.threadId])}function ut(e){return C(t=>m(n=>{let r=ct(t);if(Fe(r))return{matches:[],isLoading:!1};let[i,a]=r.value,o=[],s=!1;for(let t of i){let r=n(e.getSearchAtom(t,a));s||=r.waiting;let i=v(T(r));i!==null&&o.push(...i.matches.map(e=>({...e,environmentId:t})))}return{matches:o,isLoading:s}}).pipe(w(`${e.labelPrefix}:${t}`)))}var G=e(t(),1);function dt(e){return{v2:{dispatchCommand:z(e,{label:`environment-data:orchestration-v2:dispatch-command`,tag:E.dispatchCommand}),threadProjection:I(e,{label:`environment-data:orchestration-v2:thread-projection`,tag:E.getThreadProjection,staleTimeMs:0,idleTtlMs:0}),shell:L(e,{label:`environment-data:orchestration-v2:shell`,tag:E.subscribeShell}),thread:L(e,{label:`environment-data:orchestration-v2:thread`,tag:E.subscribeThread,idleTtlMs:0})},turnDiff:I(e,{label:`environment-data:orchestration:turn-diff`,tag:E.getTurnDiff}),workflowScript:I(e,{label:`environment-data:orchestration:workflow-script`,tag:E.getWorkflowScript,staleTimeMs:3e5,idleTtlMs:3e5}),stopWorkflow:z(e,{label:`environment-data:orchestration:stop-workflow`,tag:E.stopWorkflow}),rankUserInput:z(e,{label:`environment-data:orchestration:rank-user-input`,tag:O.userInputRank,concurrency:{mode:`singleFlight`,key:({environmentId:e,input:t})=>JSON.stringify([e,t])}}),turnItem:I(e,{label:`environment-data:orchestration:turn-item`,tag:E.getTurnItem,staleTimeMs:6e4,idleTtlMs:6e4}),fullThreadDiff:I(e,{label:`environment-data:orchestration:full-thread-diff`,tag:E.getFullThreadDiff}),threadFind:I(e,{label:`environment-data:orchestration:thread-find`,tag:E.searchThread,staleTimeMs:0,idleTtlMs:0}),threadFindProgressive:L(e,{label:`environment-data:orchestration:thread-find-progressive`,tag:E.searchThreadStream,completeWhen:e=>e.complete!==!1,idleTtlMs:0}),threadSearch:I(e,{label:`environment-data:orchestration:thread-search`,tag:E.searchThreads,staleTimeMs:3e4,idleTtlMs:6e4}),archivedShellSnapshot:I(e,{label:`environment-data:orchestration:archived-shell-snapshot`,tag:E.getArchivedShellSnapshot})}}var K=dt(H),ft=96;function pt(e){let t=e.at(-1);return e.length>1&&t?.waiting===!0&&Fe(T(t))}function mt({previousScrollTop:e,scrollTop:t,scrollHeight:n,clientHeight:r,distanceThreshold:i=ft}){return e===null||t<=e?!1:n-t-r<=i}var ht=`[0-9a-f]{8}`,gt=RegExp(`^(?:p4c[-/]${ht}|t3code(?:[-/]${ht}|\\/[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))$`);function _t(e){let t=e.indexOf(`/`);return t<=0||t===e.length-1?e:e.slice(t+1)}function vt(e){return gt.test(e.trim().toLowerCase())}function yt(e){return e.trim().replace(/[ \t\n\r\f\v]+/g,`-`)}var bt={hasUpstream:!1,aheadCount:0,behindCount:0,aheadOfDefaultCount:0,pr:null};function q(e,t){return{...e,...t??bt}}function xt(e){return{hasUpstream:e.hasUpstream,aheadCount:e.aheadCount,behindCount:e.behindCount,...e.aheadOfDefaultCount===void 0?{}:{aheadOfDefaultCount:e.aheadOfDefaultCount},pr:e.pr}}function St(e){return{isRepo:e.isRepo,...e.sourceControlProvider?{sourceControlProvider:e.sourceControlProvider}:{},hasPrimaryRemote:e.hasPrimaryRemote,isDefaultRef:e.isDefaultRef,refName:e.refName,hasWorkingTreeChanges:e.hasWorkingTreeChanges,workingTree:e.workingTree,...e.branchChanges?{branchChanges:e.branchChanges}:{}}}function Ct(e,t){switch(t._tag){case`snapshot`:return q(t.local,t.remote);case`localUpdated`:return q(t.local,e?xt(e):null);case`remoteUpdated`:return q(e===null?{isRepo:!0,hasPrimaryRemote:!1,isDefaultRef:!1,refName:null,hasWorkingTreeChanges:!1,workingTree:{files:[],insertions:0,deletions:0}}:St(e),t.remote)}}var wt=oe([`refresh_status`,`run_change_request`,`pull`,`switch_ref`,`create_ref`,`create_worktree`,`init`,`publish_repository`,`prepare_pull_request_thread`]),J=class extends M()(`VcsActionUnavailableError`,{operation:wt,environmentId:r(D),cwd:r(j)}){get message(){return`Source control operation '${this.operation.replaceAll(`_`,` `)}' is unavailable.`}},Tt=class extends M()(`VcsActionRemoteFailureError`,{actionId:j,transportActionId:j,action:_e,environmentId:D,cwd:j,phase:r(n),remoteMessageLength:ge}){get message(){let e=this.phase===null?`execution`:this.phase;return`Source control action '${this.action}' failed during ${e}.`}},Et=class extends M()(`VcsActionMissingTerminalEventError`,{actionId:j,transportActionId:j,action:_e,environmentId:D,cwd:j}){get message(){return`Source control action '${this.action}' ended without a terminal result.`}},Dt=class extends M()(`VcsActionTargetKeyParseError`,{keyLength:ge,cause:ne()}){get message(){return`Invalid source control action target key (${this.keyLength} characters).`}};pe([Tt,Et]);var Y=Object.freeze({isRunning:!1,operation:null,actionId:null,action:null,currentLabel:null,currentPhaseLabel:null,hookName:null,lastOutputLine:null,phaseStartedAtMs:null,hookStartedAtMs:null,error:null}),Ot=()=>Se(De()),kt=0,At=ze(de([D,j])),X=C(e=>m(Y).pipe(c,w(`vcs-action:${e}`))),jt=m(Y).pipe(c,w(`vcs-action:null`));function Z(e){return e.environmentId===null||e.cwd===null?null:JSON.stringify([e.environmentId,e.cwd])}function Mt(e){try{let[t,n]=At(JSON.parse(e));return{environmentId:t,cwd:n}}catch(t){throw new Dt({keyLength:e.length,cause:t})}}function Nt(e){let t=Z(e);return t===null?jt:X(t)}function Pt(){return kt+=1,`local-vcs-action:${kt}`}function Ft(e){let t=e.actionId??Pt(),n=Ot();return{...Y,isRunning:!0,operation:e.operation,actionId:t,currentLabel:e.label,currentPhaseLabel:e.label,phaseStartedAtMs:n}}function It(e,t,n){return{...Y,operation:e,actionId:t,error:n instanceof Error?n.message:`Source control action failed.`}}function Lt(e,t){let n=JSON.stringify([e.environmentId,e.cwd]);return`${n.length}:${n}${t}`}function Rt(e,t,n,r){return r.actionId!==t||r.cwd!==e.cwd?null:{...r,actionId:n}}function zt(e,t){return fe(()=>{let n=null;return e.pipe(le(e=>{let r=Rt(t.target,t.transportActionId,t.actionId,e);return r===null?ee:((r.kind===`action_finished`||r.kind===`action_failed`)&&(n=r),t.onProgress(r))}),ae(()=>n?.kind===`action_finished`?A(n.result):n?.kind===`action_failed`?S(new Tt({actionId:t.actionId,transportActionId:t.transportActionId,action:n.action,environmentId:t.target.environmentId,cwd:t.target.cwd,phase:n.phase,remoteMessageLength:n.message.length})):S(new Et({actionId:t.actionId,transportActionId:t.transportActionId,action:t.action,environmentId:t.target.environmentId,cwd:t.target.cwd}))))})}function Bt(e,t){if(e.actionId!==t.actionId)return e;let n=Ot();switch(t.kind){case`action_started`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,phaseStartedAtMs:n,hookStartedAtMs:null,hookName:null,lastOutputLine:null,error:null};case`phase_started`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,currentLabel:t.label,currentPhaseLabel:t.label,phaseStartedAtMs:n,hookStartedAtMs:null,hookName:null,lastOutputLine:null,error:null};case`hook_started`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,currentLabel:`Running ${t.hookName}...`,hookName:t.hookName,hookStartedAtMs:n,lastOutputLine:null,error:null};case`hook_output`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,lastOutputLine:t.text,error:null};case`hook_finished`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,currentLabel:e.currentPhaseLabel,hookName:null,hookStartedAtMs:null,lastOutputLine:null,error:null};case`action_finished`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,error:null};case`action_failed`:return{...e,isRunning:!0,actionId:t.actionId,action:t.action,operation:`run_change_request`,error:t.message}}}function Vt(e){let t=new Map,n=n=>{let r=Z(n),i=r??JSON.stringify([`vcs-action-target:unavailable`,n.environmentId,n.cwd]),a=t.get(i);if(a!==void 0)return a;let o=r===null?null:Mt(r),s=r===null?jt:X(r),c=Ue(e,{label:`vcs-action:run-stacked:${i}`,scheduler:B,concurrency:{mode:`serial`,key:()=>i},execute:(t,r)=>{if(o===null)return S(new J({operation:`run_change_request`,environmentId:n.environmentId,cwd:n.cwd}));let i=Lt(o,t.actionId);r.set(s,Ft({operation:`run_change_request`,label:`Running source control action`,actionId:t.actionId}));let a={actionId:i,cwd:o.cwd,action:t.action,...t.commitMessage?{commitMessage:t.commitMessage}:{},...t.featureBranch?{featureBranch:!0}:{},...t.filePaths?.length?{filePaths:[...t.filePaths]}:{},...t.threadId===void 0?{}:{threadId:t.threadId},...t.projectId===void 0?{}:{projectId:t.projectId}},c=k(()=>{r.get(s).actionId===t.actionId&&r.set(s,Y)});return zt(Xe(o.environmentId,He(O.gitRunStackedAction,a)),{target:o,transportActionId:i,actionId:t.actionId,action:t.action,onProgress:e=>k(()=>{let n=r.get(s);if(n.actionId===t.actionId&&(r.set(s,Bt(n,e)),t.onProgress!==void 0))try{t.onProgress(e)}catch{}})}).pipe(d(Ze,{authorize:(t,n,i)=>Qe(e,n).authorize(r,t,i)}),l(nt(r,o)),Ie(()=>c),xe(e=>k(()=>{let n=r.get(s);n.actionId===t.actionId&&n.isRunning&&r.set(s,It(`run_change_request`,t.actionId,e))})),Ee(()=>c))}});return t.set(i,c),c},r=(e,t,n)=>{let r=Z(t);if(r===null)return;let i=X(r);e.set(i,n(e.get(i)))};return{stateAtom:Nt,runStackedAction:e=>n(e),track:async(e,t,n,r)=>{let i=Z(t);if(i===null)return Ne(je(new J({operation:n.operation,environmentId:t.environmentId,cwd:t.cwd})));let a=X(i),o=Ft(n);e.set(a,o);let s=await r();return e.get(a).actionId===o.actionId&&(be(s)||ve(s.cause)?e.set(a,Y):e.get(a).actionId===o.actionId&&e.set(a,It(n.operation,o.actionId,he(s.cause)))),s},resetError:(e,t,n)=>{r(e,t,e=>!e.isRunning&&e.operation===n?Y:e)}}}var Ht=100,Ut=3e4,Wt=1e4,Gt=s(`1 second`).pipe(x(({duration:e})=>A(g(e,Te(30)))));function Kt(e){return e.query===void 0&&e.cursor===void 0&&e.includeMatchingRemoteRefs===void 0&&e.refKind===void 0&&e.limit===Ht}var qt=y(`CachedVcsRefsState.commitRefresh`)(function*(e,t,n){return yield*et(n.environmentId,ue(function*(){let r=$e({environmentId:n.environmentId}),i=e.get(r);if(i.revision!==n.expectedRevision)return!1;let o=i.persistedCacheReadable;return n.persist&&(o||=yield*t.clearVcsRefs(n.environmentId).pipe(F(!0),_(e=>P(`Could not recover invalidated cached Git refs.`).pipe(a({environmentId:n.environmentId,cwd:n.cwd,...R(e)}),F(!1)))),yield*t.saveVcsRefs(n.environmentId,n.cwd,n.refs).pipe(_(e=>P(`Could not persist cached Git refs.`).pipe(a({environmentId:n.environmentId,cwd:n.cwd,...R(e)})))),o!==i.persistedCacheReadable&&e.update(r,e=>e.revision===n.expectedRevision?{...e,persistedCacheReadable:o}:e)),!0}))}),Jt=y(`CachedVcsRefsState.makeChanges`)(function*(e,t,n,r=!0){let i=yield*Ye,s=yield*We,c=i.target.environmentId,l=Kt(e),u=l&&r?yield*s.loadVcsRefs(c,e.cwd).pipe(_(t=>P(`Could not load cached Git refs.`).pipe(a({environmentId:c,cwd:e.cwd,...R(t)}),F(se())))):se(),p=y(`CachedVcsRefsState.refresh`)(function*(){let r=yield*Ke(O.vcsListRefs,e).pipe(d(Ye,i)),o=s.saveVcsRefs(c,e.cwd,r).pipe(_(t=>P(`Could not persist cached Git refs.`).pipe(a({environmentId:c,cwd:e.cwd,...R(t)}))));return t===void 0||n===void 0?(l&&(yield*o),Ae(r)):(yield*qt(n,s,{environmentId:c,cwd:e.cwd,refs:r,expectedRevision:t,persist:l}))?Ae(r):se()}),m=N(A(u)).pipe(ke(e=>we(e,{onNone:()=>Be,onSome:Le}))),h=re(N(Ce(i.state)),Oe(i.state)).pipe(me(e=>e.phase===`connected`?e.generation:null),f,o(t=>t===null?Pe:N(p().pipe(xe(t=>P(`Could not refresh Git refs.`).pipe(a({environmentId:c,cwd:e.cwd,...R(t)}))))).pipe(Ve(Gt),ke(e=>we(e,{onNone:()=>Be,onSome:Le})))));return re(m,h)});function Yt(e,t,n,r){return qe(e,h(ue(function*(){return yield*Jt(t,n,yield*Me,r)})))}function Xt(e){let t=C(t=>{let[n,r]=JSON.parse(t);return e.atom(e=>{let t=e($e({environmentId:n}));return Yt(n,r,t.revision,t.persistedCacheReadable)}).pipe(ie(Ut),w(`environment-data:vcs:list-refs:${t}`))}),n=e=>t(JSON.stringify([e.environmentId,e.input])),r=(e,t)=>nt(t,{environmentId:e.environmentId,cwd:e.input.cwd});return{listRefs:n,status:Ge(e,{label:`environment-data:vcs:status`,idleTtlMs:Wt,subscribe:e=>Je(O.subscribeVcsStatus,e).pipe(ye(()=>null,(e,t)=>{let n=Ct(e,t);return[n,[n]]}))}),pull:z(e,{label:`environment-data:vcs:pull`,tag:O.vcsPull,scheduler:B,concurrency:V,onSettled:r}),refreshStatus:z(e,{label:`environment-data:vcs:refresh-status`,tag:O.vcsRefreshStatus,scheduler:B,concurrency:V,onSettled:r}),createWorktree:z(e,{label:`environment-data:vcs:create-worktree`,tag:O.vcsCreateWorktree,scheduler:B,concurrency:V,onSettled:r}),worktreeSetup:L(e,{label:`environment-data:vcs:worktree-setup`,tag:O.subscribeWorktreeSetup,idleTtlMs:Wt}),cancelWorktreeSetup:z(e,{label:`environment-data:vcs:cancel-worktree-setup`,tag:O.worktreeSetupCancel}),removeWorktree:z(e,{label:`environment-data:vcs:remove-worktree`,tag:O.vcsRemoveWorktree,scheduler:B,concurrency:V,onSettled:r}),createRef:z(e,{label:`environment-data:vcs:create-ref`,tag:O.vcsCreateRef,scheduler:B,concurrency:V,onSettled:r}),switchRef:z(e,{label:`environment-data:vcs:switch-ref`,tag:O.vcsSwitchRef,scheduler:B,concurrency:V,onSettled:r}),init:z(e,{label:`environment-data:vcs:init`,tag:O.vcsInit,scheduler:B,concurrency:V,onSettled:r})}}var Zt=Xt(H),Qt=Vt(H),$t=120,en=80,tn=120,nn=500,rn=200,an=100,on=[],sn=[],cn=[],Q=[void 0],ln=Object.freeze([]),un=m({matches:ln,isLoading:!1}).pipe(w(`web:thread-search:empty`)),dn=ut({getSearchAtom:(e,t)=>K.threadSearch({environmentId:e,input:{query:t}}),labelPrefix:`web:thread-search`});function $(e,t){let n=(0,W.c)(4),[r,i]=(0,G.useState)(e),a,o;return n[0]!==t||n[1]!==e?(a=()=>{let n=window.setTimeout(()=>{i(e)},t);return()=>{window.clearTimeout(n)}},o=[t,e],n[0]=t,n[1]=e,n[2]=a,n[3]=o):(a=n[2],o=n[3]),(0,G.useEffect)(a,o),r}function fn(e,t){let n=(0,W.c)(11),r;n[0]===t?r=n[1]:(r=t.trim(),n[0]=t,n[1]=r);let i=r,a=$(i,rn),o=e.length>0&&i.length>=2,s=o&&i===a?a:null,c;n[2]!==e||n[3]!==s?(c=s===null?null:st(e,s),n[2]=e,n[3]=s,n[4]=c):c=n[4];let l=c,d;n[5]===l?d=n[6]:(d=l===null?un:dn(l),n[5]=l,n[6]=d);let f=u(d),p=o&&i!==a,m=p?ln:f.matches,h=s??``,g=o&&(p||f.isLoading),_;return n[7]!==m||n[8]!==h||n[9]!==g?(_={matches:m,query:h,isPending:g},n[7]=m,n[8]=h,n[9]=g,n[10]=_):_=n[10],_}function pn(e){let t=e.query?.trim()??``,n=e.environmentId!==null&&e.cwd!==null?JSON.stringify([e.environmentId,e.cwd,t]):null,[r,i]=(0,G.useState)({targetKey:n,cursors:Q}),a=r.targetKey===n?r.cursors:Q,o=(0,G.useMemo)(()=>e.environmentId!==null&&e.cwd!==null?a.map(n=>Zt.listRefs({environmentId:e.environmentId,input:{cwd:e.cwd,...t.length>0?{query:t}:{},...n===void 0?{}:{cursor:n},limit:an}})):[],[a,t,e.cwd,e.environmentId]),s=(0,G.useMemo)(()=>m(e=>o.map(t=>e(t))).pipe(w(`web:vcs-ref-pages:${n??`empty`}`)),[o,n]),c=u(s),l=c.flatMap(e=>{let t=v(T(e));return t===null?[]:[t]}),d=new Map;for(let e of l)for(let t of e.refs)d.set(t.name,t);let f=l[0]??null,p=l.at(-1)??null,h=f===null||p===null?null:{refs:[...d.values()],isRepo:f.isRepo,hasPrimaryRemote:f.hasPrimaryRemote,nextCursor:p.nextCursor,totalCount:Math.max(...l.map(e=>e.totalCount))},g=c.find(e=>e._tag===`Failure`),_=pt(c),y=g?._tag===`Failure`?(()=>{let e=he(g.cause);return e instanceof Error&&e.message.trim().length>0?e.message:`Failed to load refs.`})():null,x=(0,G.useCallback)(()=>{let e=o[0];i({targetKey:n,cursors:Q}),e!==void 0&&b.refresh(e)},[o,n]),ee=(0,G.useCallback)(()=>{n!==null&&h?.nextCursor!==null&&h?.nextCursor!==void 0&&i(e=>{let t=e.targetKey===n?e.cursors:Q;return t.includes(h.nextCursor)?{targetKey:n,cursors:t}:{targetKey:n,cursors:[...t,h.nextCursor]}})},[h?.nextCursor,n]);return{data:h,refs:h?.refs??on,error:y,isPending:c.some(e=>e.waiting),isFetchingNextPage:_,refresh:x,loadNext:ee}}function mn(e,t){return e.environmentId===t.environmentId&&e.cwd===t.cwd&&e.query===t.query&&e.kind===t.kind&&e.imageOnly===t.imageOnly}function hn(e,t,n){let r=(0,W.c)(32),i=n?.allowEmptyQuery===!0,a;r[0]===e.query?a=r[1]:(a=e.query==null?null:e.query.trim(),r[0]=e.query,r[1]=a);let o;r[2]!==a||r[3]!==e.cwd||r[4]!==e.environmentId||r[5]!==e.imageOnly||r[6]!==e.kind?(o={environmentId:e.environmentId,cwd:e.cwd,query:a,kind:e.kind,imageOnly:e.imageOnly},r[2]=a,r[3]=e.cwd,r[4]=e.environmentId,r[5]=e.imageOnly,r[6]=e.kind,r[7]=o):o=r[7];let s=o,c=$(s,$t),l=tt(c.environmentId),{canReadFiles:u}=l,d,f,p;r[8]!==i||r[9]!==u||r[10]!==c.cwd||r[11]!==c.environmentId||r[12]!==c.imageOnly||r[13]!==c.kind||r[14]!==c.query||r[15]!==t?(d=c.environmentId!==null&&c.cwd!==null&&c.query!==null&&(i||c.query.length>0)?{environmentId:c.environmentId,input:{cwd:c.cwd,query:c.query,limit:t,...c.kind?{kind:c.kind}:{},...c.imageOnly?{imageOnly:!0}:{}}}:null,f=U,p=u&&d!==null?it.searchEntries(d):null,r[8]=i,r[9]=u,r[10]=c.cwd,r[11]=c.environmentId,r[12]=c.imageOnly,r[13]=c.kind,r[14]=c.query,r[15]=t,r[16]=d,r[17]=f,r[18]=p):(d=r[16],f=r[17],p=r[18]);let m=f(p),h=d!==null,g=m.data?.entries??sn,_=!h||l.isPending?null:u?m.error:l.error??`This connection cannot search host files.`,v;r[19]!==c||r[20]!==l.isPending||r[21]!==h||r[22]!==s||r[23]!==m.isPending?(v=!mn(s,c)||h&&(l.isPending||m.isPending),r[19]=c,r[20]=l.isPending,r[21]=h,r[22]=s,r[23]=m.isPending,r[24]=v):v=r[24];let y=c.query??``,b=m.data?.truncated??!1,x;return r[25]!==m.refresh||r[26]!==g||r[27]!==_||r[28]!==v||r[29]!==y||r[30]!==b?(x={entries:g,error:_,isPending:v,searchedQuery:y,truncated:b,refresh:m.refresh},r[25]=m.refresh,r[26]=g,r[27]=_,r[28]=v,r[29]=y,r[30]=b,r[31]=x):x=r[31],x}function gn(e){return hn(e,en)}function _n(e){let t=(0,W.c)(20),n=e.environmentId!==null&&e.cwd!==null,r=tt(e.environmentId),i=n&&r.canReadFiles,a=n&&r.isPending,o=e.query,s;t[0]===o?s=t[1]:(s=o.trim(),t[0]=o,t[1]=s);let c=s.length>0,l=$(o,tn),u;t[2]!==i||t[3]!==l||t[4]!==c||t[5]!==e.caseSensitive||t[6]!==e.cwd||t[7]!==e.environmentId||t[8]!==e.useRegex||t[9]!==e.wholeWord?(u=i&&e.environmentId!==null&&e.cwd!==null&&c&&l.trim().length>0?rt({environmentId:e.environmentId,input:{cwd:e.cwd,query:l,limit:nn,caseSensitive:e.caseSensitive,wholeWord:e.wholeWord,useRegex:e.useRegex}}):null,t[2]=i,t[3]=l,t[4]=c,t[5]=e.caseSensitive,t[6]=e.cwd,t[7]=e.environmentId,t[8]=e.useRegex,t[9]=e.wholeWord,t[10]=u):u=t[10];let d=U(u),f=d.data?.matches??cn,p=!n||a?null:i?d.error:r.error??`This connection cannot search host files.`,m=a||i&&c&&(o!==l||d.isPending),h=d.data?.truncated??!1,g=e.useRegex&&d.data?.regexFallbackError!==void 0,_;return t[11]!==i||t[12]!==c||t[13]!==a||t[14]!==f||t[15]!==p||t[16]!==m||t[17]!==h||t[18]!==g?(_={canReadFiles:i,isCheckingAccess:a,matches:f,error:p,isPending:m,hasQuery:c,truncated:h,invalidRegex:g},t[11]=i,t[12]=c,t[13]=a,t[14]=f,t[15]=p,t[16]=m,t[17]=h,t[18]=g,t[19]=_):_=t[19],_}function vn(e,t){let n=t?.enabled!==!1&&e.environmentId!==null&&e.threadId!==null&&e.fromTurnCount!==null&&e.toTurnCount!==null,r=n&&e.fromTurnCount===0?{environmentId:e.environmentId,input:{threadId:e.threadId,toTurnCount:e.toTurnCount,ignoreWhitespace:e.ignoreWhitespace}}:null,i=n&&e.fromTurnCount!==0?{environmentId:e.environmentId,input:{threadId:e.threadId,fromTurnCount:e.fromTurnCount,toTurnCount:e.toTurnCount,ignoreWhitespace:e.ignoreWhitespace}}:null,a=U(r===null?null:K.fullThreadDiff(r)),o=U(i===null?null:K.turnDiff(i));return r===null?o:a}function yn(e){let t=(0,W.c)(2),n;return t[0]===e?n=t[1]:(n=e===null?null:K.turnItem({environmentId:e.environmentId,input:{threadId:e.threadId,itemId:e.itemId,revision:e.revision}}),t[0]=e,t[1]=n),U(n)}export{lt as _,_n as a,yn as c,J as d,_t as f,K as g,mt as h,pn as i,Qt as l,yt as m,gn as n,hn as o,vt as p,$ as r,fn as s,vn as t,Zt as u};
|
|
2
|
-
//# sourceMappingURL=queries-Cq5C9N-K.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ax as e,Ho as t,Ko as n,Qb as r,Vo as i,Xv as a,ds as o,dy as s,es as c,hs as l}from"./utils-DmfMX1v5.js";var u=e(),d=n(o(!1)).pipe(c(`web-environment-query:empty`));function f(e){let t=s(e);return t instanceof Error&&t.message.trim().length>0?t.message:`The environment request failed.`}function p(e){let n=(0,u.c)(20),o=e??d,s=t(o),c=i(o),p;n[0]===s?p=n[1]:(p=r(l(s)),n[0]=s,n[1]=p);let m;n[2]!==s._tag||n[3]!==s.previousSuccess||n[4]!==s.timestamp?(m=s._tag===`Success`?s.timestamp:s._tag===`Failure`?r(s.previousSuccess)?.timestamp??0:0,n[2]=s._tag,n[3]=s.previousSuccess,n[4]=s.timestamp,n[5]=m):m=n[5];let h;n[6]!==s._tag||n[7]!==s.cause?(h=s._tag===`Failure`?f(s.cause):null,n[6]=s._tag,n[7]=s.cause,n[8]=h):h=n[8];let g;n[9]!==s._tag||n[10]!==s.cause?(g=s._tag===`Failure`?r(a(s.cause)):null,n[9]=s._tag,n[10]=s.cause,n[11]=g):g=n[11];let _=e!==null&&s.waiting,v=s._tag===`Success`,y;return n[12]!==c||n[13]!==p||n[14]!==m||n[15]!==h||n[16]!==g||n[17]!==_||n[18]!==v?(y={data:p,dataUpdatedAt:m,error:h,failure:g,isPending:_,isSuccess:v,refresh:c},n[12]=c,n[13]=p,n[14]=m,n[15]=h,n[16]=g,n[17]=_,n[18]=v,n[19]=y):y=n[19],y}export{p as n,f as t};
|
|
2
|
-
//# sourceMappingURL=query-DpwJQzeq.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-FOHPRMQF-DzxwRta7.js";import{m as e}from"./mermaid-parser.core-DNd412Oc.js";export{e as createRailroadAbnfServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-FOHPRMQF-DzxwRta7.js";import{f as e}from"./mermaid-parser.core-DNd412Oc.js";export{e as createRailroadEbnfServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-FOHPRMQF-DzxwRta7.js";import{u as e}from"./mermaid-parser.core-DNd412Oc.js";export{e as createRailroadPegServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{oo as e,so as t}from"./main-BB3F4O6Y.js";export{t as __iconNode,e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ao as e,io as t}from"./main-BB3F4O6Y.js";export{e as __iconNode,t as default};
|