@p4code/cli 0.8.4 → 0.8.5
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/bin.mjs +1 -1
- package/dist/{binCli-Bgjc_5FL.mjs → binCli-D9Qk_k5i.mjs} +88 -47
- package/dist/client/.vite/manifest.json +2103 -2103
- package/dist/client/assets/{AnimatedHeight-DYUgtGfz.js → AnimatedHeight-DKdClmyw.js} +2 -2
- package/dist/client/assets/{AuthSurfaceShell-CfLnzrCc.js → AuthSurfaceShell-UJgufrYU.js} +2 -2
- package/dist/client/assets/{CSPContext-i9QaQnwk.js → CSPContext-CTpTfAqS.js} +2 -2
- package/dist/client/assets/ChatGptUsageButton-9B_WUPVm.js +2 -0
- package/dist/client/assets/ChatMarkdown-B9_nJM54.js +65 -0
- package/dist/client/assets/{CodexSetupSection.logic-VTayPks4.js → CodexSetupSection.logic-YSEDjbLd.js} +2 -2
- package/dist/client/assets/{ComboboxClear-B-iYnTX_.js → ComboboxClear-TEL6MsPn.js} +2 -2
- package/dist/client/assets/{CommandBlock-dh2vBT70.js → CommandBlock-C6bCrWJ5.js} +2 -2
- package/dist/client/assets/{ComposerPromptEditor-fIqs_--j.js → ComposerPromptEditor-BpT2majW.js} +10 -10
- package/dist/client/assets/{CompositeRoot-JeAqW-33.js → CompositeRoot-CZuZX6hs.js} +2 -2
- package/dist/client/assets/{ConnectionStatusDot-BCSqqCpf.js → ConnectionStatusDot-BX6msmak.js} +2 -2
- package/dist/client/assets/{DevicePanel-BckpiUTa.js → DevicePanel-DavxmX2w.js} +2 -2
- package/dist/client/assets/{DeviceSetup-L8Q-0h1V.js → DeviceSetup-CZX8TKF_.js} +2 -2
- package/dist/client/assets/{DialogTitle-BRYusK7T.js → DialogTitle-CLcXbJRs.js} +2 -2
- package/dist/client/assets/{DiffCommentAnnotation-DxxGd0sM.js → DiffCommentAnnotation-B21n3tGU.js} +3 -3
- package/dist/client/assets/{DiffFileTree-C2N3dwbB.js → DiffFileTree--L--vp02.js} +2 -2
- package/dist/client/assets/DiffPanel-T4lIPUlN.js +2 -0
- package/dist/client/assets/{DiffWorkerPoolProvider-Dd8cIhyy.js → DiffWorkerPoolProvider-Cxzr_uYq.js} +3 -3
- package/dist/client/assets/{EnvironmentMachineIcon-giyHKjbh.js → EnvironmentMachineIcon-CGINHXnT.js} +2 -2
- package/dist/client/assets/{ExpandableText-dJhpznMp.js → ExpandableText-D1ewr-yU.js} +3 -3
- package/dist/client/assets/{FieldControl-CxuWXcJE.js → FieldControl-BVq7aDv3.js} +2 -2
- package/dist/client/assets/{FileDiff-EWd5oWlS.js → FileDiff-C0ZCBwBc.js} +2 -2
- package/dist/client/assets/{FilePreviewPanel-D3kud1xs.js → FilePreviewPanel-CxOIUI0_.js} +4 -4
- package/dist/client/assets/{FoldedSettingsSection-CsN_jb3V.js → FoldedSettingsSection-DmcJrCZO.js} +2 -2
- package/dist/client/assets/{FormContext-Vk5aZcR6.js → FormContext-CObkgUvS.js} +2 -2
- package/dist/client/assets/{Icons-DM1SzuL7.js → Icons-CSHLGz_M.js} +2 -2
- package/dist/client/assets/{KeybindingsSettings.logic-BcJGxVhV.js → KeybindingsSettings.logic-D9eYCeK5.js} +2 -2
- package/dist/client/assets/{NoProjectsHero-DrkWMiG4.js → NoProjectsHero-C0RwYoYq.js} +2 -2
- package/dist/client/assets/{PanelLayoutControls-DjmAXscr.js → PanelLayoutControls-CcE6oZUh.js} +8 -8
- package/dist/client/assets/{PierreEntryIcon-BJ8xtDqQ.js → PierreEntryIcon-D0PlfaRc.js} +2 -2
- package/dist/client/assets/{PreviewPanel-D_JLD7YP.js → PreviewPanel-DgRCZ-80.js} +2 -2
- package/dist/client/assets/ProjectDefaultsSettings-DOXJKuJ7.js +2 -0
- package/dist/client/assets/{ProjectFavicon-By6-kpgk.js → ProjectFavicon-CFPeQQsG.js} +3 -3
- package/dist/client/assets/ProjectIconPickerDialog-B5iXalFo.js +2 -0
- package/dist/client/assets/{ProjectMonogram-BJVBhwjz.js → ProjectMonogram-HCgoNxPJ.js} +2 -2
- package/dist/client/assets/{ProviderAuthTerminal-DBiUwanv.js → ProviderAuthTerminal-rBb4SeQd.js} +2 -2
- package/dist/client/assets/{ProviderModelPicker-DV64N-fE.js → ProviderModelPicker-CHfA6QfR.js} +2 -2
- package/dist/client/assets/{ProviderSettingsForm-Tkr5xKCJ.js → ProviderSettingsForm-cr5QEWx_.js} +2 -2
- package/dist/client/assets/{PullRequestCodeTab-DijqMjN0.js → PullRequestCodeTab-CyJ0_1HE.js} +3 -3
- package/dist/client/assets/{ReadOnlySourcePreview-CydDaO9-.js → ReadOnlySourcePreview-BvUk75g2.js} +2 -2
- package/dist/client/assets/{RenderErrorBoundary-D4M2khxk.js → RenderErrorBoundary-h3g72sj0.js} +2 -2
- package/dist/client/assets/ScheduledTasksSettings-CpUearCU.js +4 -0
- package/dist/client/assets/ScopedSwitch-D1QVfZHR.js +2 -0
- package/dist/client/assets/{SecretInput-CNWNAhNe.js → SecretInput-SiHUbFCV.js} +2 -2
- package/dist/client/assets/{SettingsPanels-DAv_V_mk.js → SettingsPanels-B9t76y-c.js} +5 -5
- package/dist/client/assets/{SettingsPanels.logic-BYa5iHwl.js → SettingsPanels.logic-B3IqBMv7.js} +2 -2
- package/dist/client/assets/{SettingsScopeNotice-CcLrVZWz.js → SettingsScopeNotice-B_awMQPw.js} +2 -2
- package/dist/client/assets/{T3ConnectAccountPages-DjITJ87o.js → T3ConnectAccountPages-DOpj673A.js} +2 -2
- package/dist/client/assets/{T3ConnectSidebarSignIn-B-rQNmqG.js → T3ConnectSidebarSignIn-zrB8y6DQ.js} +2 -2
- package/dist/client/assets/{ThemeEditorPanel-CJGqmeTA.js → ThemeEditorPanel-Cx7KulxB.js} +2 -2
- package/dist/client/assets/{ThreadTerminalDrawer-Cdl3DAIx.js → ThreadTerminalDrawer-ChcqArNC.js} +4 -4
- package/dist/client/assets/{Virtualizer-Bk-YJlPj.js → Virtualizer-DWmIp9HB.js} +2 -2
- package/dist/client/assets/{WorkspaceBreadcrumb-DSFWvH19.js → WorkspaceBreadcrumb-Dx7xMwQd.js} +2 -2
- package/dist/client/assets/{WorkspacePageContainer-BXUbfbEU.js → WorkspacePageContainer-sM_H3DH4.js} +2 -2
- package/dist/client/assets/{WorkspacePageHeader-LbIzJCDs.js → WorkspacePageHeader-C_J7FxVt.js} +2 -2
- package/dist/client/assets/_chat-Du_FC4wO.js +45 -0
- package/dist/client/assets/{_chat.index-CTew1WmI.js → _chat.index-DUyKTtkh.js} +2 -2
- package/dist/client/assets/_chat.new-CMoB99iV.js +4 -0
- package/dist/client/assets/{_chat.pull-requests-BlXnsqov.js → _chat.pull-requests-BuTKumeN.js} +2 -2
- package/dist/client/assets/{abnfDiagram-VCTEODGH-brKh7bzh.js → abnfDiagram-VCTEODGH-D2OflHz4.js} +2 -2
- package/dist/client/assets/{alert-quTC4YbH.js → alert-8IFNkYPw.js} +2 -2
- package/dist/client/assets/architecture-7GRP2DOG-BMsijJGx.js +1 -0
- package/dist/client/assets/{architectureDiagram-5GKGNRK7-BVDiXgfK.js → architectureDiagram-5GKGNRK7-Cz7fFw7N.js} +2 -2
- package/dist/client/assets/arrow-left-DjrJekQJ.js +1 -0
- package/dist/client/assets/arrow-right-DNQ3322O.js +1 -0
- package/dist/client/assets/arrow-up-down-DpVszLOH.js +1 -0
- package/dist/client/assets/assets-DJce0KBy.js +2 -0
- package/dist/client/assets/bell-ehBYv81q.js +1 -0
- package/dist/client/assets/{blockDiagram-I7D4REHJ-CzoRCJDe.js → blockDiagram-I7D4REHJ-BcqcXQ0x.js} +2 -2
- package/dist/client/assets/blocks-CF1Wdm4Y.js +1 -0
- package/dist/client/assets/bot-Dj9hYg2w.js +1 -0
- package/dist/client/assets/{browserHistoryStore-Cw3ffhOV.js → browserHistoryStore-CuO1erOb.js} +2 -2
- package/dist/client/assets/{browserLinkTarget-KTI1tSl7.js → browserLinkTarget-B5-9Pt65.js} +2 -2
- package/dist/client/assets/{c4Diagram-7LVT6UL2-CfyobiDu.js → c4Diagram-7LVT6UL2-DDiDhcli.js} +2 -2
- package/dist/client/assets/calendar-clock-BaXgPf_7.js +1 -0
- package/dist/client/assets/channel-pJ5lNF0h.js +2 -0
- package/dist/client/assets/chart-no-axes-column-BzuvLLND.js +1 -0
- package/dist/client/assets/checkbox-BUOikrm3.js +2 -0
- package/dist/client/assets/{chunk-4HAMMTFA-CPnMRFld.js → chunk-4HAMMTFA-_7K6yngz.js} +2 -2
- package/dist/client/assets/{chunk-75Z2AOVW-C85FbOND.js → chunk-75Z2AOVW-CUqo_4ua.js} +2 -2
- package/dist/client/assets/{chunk-DU6HZSFF-s_qrqgaz.js → chunk-DU6HZSFF-C3RStRBi.js} +2 -2
- package/dist/client/assets/{chunk-F27PBJKO-90tTgV9x.js → chunk-F27PBJKO-BOr5cbtz.js} +2 -2
- package/dist/client/assets/{chunk-GMAD6QVW-CYRPr7hZ.js → chunk-GMAD6QVW-qBcSdTWV.js} +2 -2
- package/dist/client/assets/{chunk-GVQU2GXP-CxAvUb1-.js → chunk-GVQU2GXP-D8rhGQK_.js} +2 -2
- package/dist/client/assets/{chunk-IMKFNOWR-794woOlB.js → chunk-IMKFNOWR-BjTZFMrm.js} +2 -2
- package/dist/client/assets/{chunk-L3NEJ4N5-JXcRdiIo.js → chunk-L3NEJ4N5-DnCelWBi.js} +2 -2
- package/dist/client/assets/{chunk-OSK3NFVY-ToxVvjW1.js → chunk-OSK3NFVY-BEgD3sGZ.js} +2 -2
- package/dist/client/assets/{chunk-P2QGCYS3-JB1PmfIc.js → chunk-P2QGCYS3-DDmmXS6G.js} +2 -2
- package/dist/client/assets/{chunk-POPQ4Y6H-RMxlqjhd.js → chunk-POPQ4Y6H-CefHvRtI.js} +2 -2
- package/dist/client/assets/{chunk-PWAF6VOD-AB579n2y.js → chunk-PWAF6VOD-BPIKFLCK.js} +2 -2
- package/dist/client/assets/{chunk-SHT3W25Y-CV2hE9-g.js → chunk-SHT3W25Y-B_pDi6kv.js} +2 -2
- package/dist/client/assets/{chunk-SVP7TREG-b2Gs4u5W.js → chunk-SVP7TREG-BD15vJFs.js} +2 -2
- package/dist/client/assets/{chunk-TICWLB2K-CtkYqLLJ.js → chunk-TICWLB2K-B2yA6VhZ.js} +2 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-D4Ed7oKu.js +2 -0
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-D4Ed7oKu.js +2 -0
- package/dist/client/assets/{color-picker-CFc6YapE.js → color-picker-Dqvd0njw.js} +2 -2
- package/dist/client/assets/{combobox-WVgW_agq.js → combobox-BPRK10Il.js} +2 -2
- package/dist/client/assets/{command-w6WcFbeZ.js → command-B-SWHWbd.js} +2 -2
- package/dist/client/assets/{connect-D_ncSJiK.js → connect-D8LGiBSX.js} +2 -2
- package/dist/client/assets/{connect-agent-8mHL_bau.js → connect-agent-B3TvHBIV.js} +2 -2
- package/dist/client/assets/corner-left-up-8yNxlIpO.js +1 -0
- package/dist/client/assets/{cynefin-OW5HDTMX-BDIjrXPB.js → cynefin-OW5HDTMX-D-j3kzkd.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-5FMLGOSQ-h9tw36zs.js → cynefinDiagram-5FMLGOSQ-CVEhj0G_.js} +2 -2
- package/dist/client/assets/{dagre-GXQ25YYZ-D3s1T81F.js → dagre-GXQ25YYZ-opF-kR2J.js} +2 -2
- package/dist/client/assets/device-DARKbqyG.js +2 -0
- package/dist/client/assets/{diagram-S7CK7UJ4-DTawhR4X.js → diagram-S7CK7UJ4-Y1OUf_Uf.js} +2 -2
- package/dist/client/assets/{diagram-UQ7AKVKN-CTUDQHKY.js → diagram-UQ7AKVKN-BMAkQiYU.js} +2 -2
- package/dist/client/assets/{diagram-VSXAHHWV-DsbNNWnj.js → diagram-VSXAHHWV-YWI6689v.js} +2 -2
- package/dist/client/assets/{diagram-VX7I27RA-BBy99N9O.js → diagram-VX7I27RA-DVxQ1Tyn.js} +2 -2
- package/dist/client/assets/{diagram-Z3DM3KII-CEy69xv1.js → diagram-Z3DM3KII-DzaunCE7.js} +2 -2
- package/dist/client/assets/{dialog-CPLO59bH.js → dialog-ChNU2rSW.js} +2 -2
- package/dist/client/assets/{diffRendering-BlmxsRF9.js → diffRendering-TJ6NEHef.js} +2 -2
- package/dist/client/assets/{discovery-list-D0LBmkzJ.js → discovery-list-2jVj88oX.js} +2 -2
- package/dist/client/assets/{dist-DZWol-cd.js → dist-Dc07DWZJ.js} +3 -3
- package/dist/client/assets/download-KOf4APex.js +1 -0
- package/dist/client/assets/{draft-input-CmvO5rl_.js → draft-input-CAOyi5vd.js} +2 -2
- package/dist/client/assets/{duoViewer-B0QD-fyi.js → duoViewer-CkI16mDl.js} +2 -2
- package/dist/client/assets/dynamic-B6ssT_6R.js +3 -0
- package/dist/client/assets/earth-Gh21ySR9.js +1 -0
- package/dist/client/assets/{ebnfDiagram-PWID7BFC-B9LWNbny.js → ebnfDiagram-PWID7BFC-CLu3StxL.js} +2 -2
- package/dist/client/assets/ellipsis-Dd1lpp1y.js +1 -0
- package/dist/client/assets/{embeddedScripts-B1MGNr-e.js → embeddedScripts-C0cHj-rX.js} +2 -2
- package/dist/client/assets/{empty-tr-EsB66.js → empty-DJMr9MZU.js} +2 -2
- package/dist/client/assets/entities-HApogVCu.js +2 -0
- package/dist/client/assets/{erDiagram-RLTQ6QDP-Nu9IMF5-.js → erDiagram-RLTQ6QDP-CMztaIAH.js} +2 -2
- package/dist/client/assets/eventmodeling-NTZA5JFV-D1FYr7Uj.js +1 -0
- package/dist/client/assets/eye-CQCt8uGE.js +1 -0
- package/dist/client/assets/file-search-BXNWZ1nV.js +1 -0
- package/dist/client/assets/{fileLinks-BHAkEh9k.js → fileLinks-3CrgspkN.js} +2 -2
- package/dist/client/assets/{fileTreeExpansion-BierCVUV.js → fileTreeExpansion-CYkjiRdT.js} +2 -2
- package/dist/client/assets/flowDiagram-HODETNUW-leGOLc6K.js +1 -0
- package/dist/client/assets/folder-git-2-BIZ4K8z0.js +1 -0
- package/dist/client/assets/folder-open-BI7lMTSr.js +1 -0
- package/dist/client/assets/folder-plus-B91hg6qR.js +1 -0
- package/dist/client/assets/{ganttDiagram-EL5Y4UJY-D_s5F9rI.js → ganttDiagram-EL5Y4UJY-G_L0ijf2.js} +2 -2
- package/dist/client/assets/{getDiffFileInput-B5j6sQbM.js → getDiffFileInput-Kc1w64Y-.js} +2 -2
- package/dist/client/assets/git-branch-Yqn0BBlE.js +1 -0
- package/dist/client/assets/{gitGraph-4MIJSDKK-BASxGOL3.js → gitGraph-4MIJSDKK-BmuEuxsx.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-WWUBYQGX-BtA4z_1S.js → gitGraphDiagram-WWUBYQGX-C6A4msS5.js} +2 -2
- package/dist/client/assets/grip-vertical-DbE6Bv-r.js +1 -0
- package/dist/client/assets/{guideRunStore-C95PbUuP.js → guideRunStore-sdfoC8zb.js} +2 -2
- package/dist/client/assets/hard-drive--FvDwcA1.js +1 -0
- package/dist/client/assets/history-D-6p2svD.js +1 -0
- package/dist/client/assets/house-6Nj_TaKT.js +1 -0
- package/dist/client/assets/{htmlRender-DgdJ8GkZ.js → htmlRender-BPiW3VQi.js} +2 -2
- package/dist/client/assets/index-EKWtrZNr.js +3 -0
- package/dist/client/assets/{info-A6RAGUB7-Q4Qe5TI_.js → info-A6RAGUB7-CwFLPSUe.js} +1 -1
- package/dist/client/assets/{infoDiagram-27XIBGKW-CNnDxcfZ.js → infoDiagram-27XIBGKW-bjIIr1Q4.js} +2 -2
- package/dist/client/assets/{input-group-DJwXFHGO.js → input-group-DM7QvN7X.js} +2 -2
- package/dist/client/assets/{input-DaCwubQj.js → input-w_nbMVAd.js} +2 -2
- package/dist/client/assets/{ishikawaDiagram-5VMMS53U-Drb03OY6.js → ishikawaDiagram-5VMMS53U-ymImqXAG.js} +2 -2
- package/dist/client/assets/{journeyDiagram-3NMN7TZE-CynC6Up1.js → journeyDiagram-3NMN7TZE-TJpDU0em.js} +2 -2
- package/dist/client/assets/{kanban-definition-UXKFOSKX-DfyC_hIe.js → kanban-definition-UXKFOSKX-Bhm6s1x1.js} +2 -2
- package/dist/client/assets/{kbd-R3wkAau0.js → kbd-CTZhqOH9.js} +2 -2
- package/dist/client/assets/{keybindings-QrjnJ5jB.js → keybindings-CJFu-Dyg.js} +2 -2
- package/dist/client/assets/keyboard-Bf3n2zS8.js +1 -0
- package/dist/client/assets/{lazyRouteComponent-cLZROdN-.js → lazyRouteComponent-WxKijHdU.js} +2 -2
- package/dist/client/assets/{line-C3gvAOpf.js → line-C24Qe7Rj.js} +2 -2
- package/dist/client/assets/link-BVjRZ3mh.js +1 -0
- package/dist/client/assets/{link-Bl21VXlj.js → link-DnBUR2mx.js} +2 -2
- package/dist/client/assets/{linkedPrompt-DAcv0O_f.js → linkedPrompt-CNv-bVSs.js} +2 -2
- package/dist/client/assets/list-DrTK4zhP.js +1 -0
- package/dist/client/assets/loader-Bc9xbkPa.js +2 -0
- package/dist/client/assets/main-D1oD2GPo.js +30 -0
- package/dist/client/assets/main-hjb9WdQ8.css +2 -0
- package/dist/client/assets/{mediaReference-DN8lzwOF.js → mediaReference-vtwfoFLK.js} +2 -2
- package/dist/client/assets/{mediaSource-0nIWHHoL.js → mediaSource-BDkqXaxs.js} +2 -2
- package/dist/client/assets/{mermaid-parser.core-B3cYmj0d.js → mermaid-parser.core-D2hAGRv3.js} +4 -4
- package/dist/client/assets/{mermaid.core-9ekBSYCO.js → mermaid.core-DWtHy2iz.js} +5 -5
- package/dist/client/assets/message-circle-question-mark-D2JAzS9x.js +1 -0
- package/dist/client/assets/message-square-DNTOkKRN.js +1 -0
- package/dist/client/assets/message-square-dashed-NGYZLQqB.js +1 -0
- package/dist/client/assets/{mindmap-definition-YA3MSWOX-K4rtZu2z.js → mindmap-definition-YA3MSWOX-DCzTD1Gd.js} +2 -2
- package/dist/client/assets/mouse-pointer-2-CgUWLVBh.js +1 -0
- package/dist/client/assets/number-field-yRjM_PYx.js +2 -0
- package/dist/client/assets/{observeResize-BEjNJ-rK.js → observeResize-wFdsooQ8.js} +2 -2
- package/dist/client/assets/{onboarding--LqcHqO0.js → onboarding-Buk_SNIp.js} +2 -2
- package/dist/client/assets/{openFileInPreview-NwK1GJFN.js → openFileInPreview-CxrjOX7D.js} +2 -2
- package/dist/client/assets/{p4ProjectFile-CVEoe1SJ.js → p4ProjectFile-DNlgD3LH.js} +2 -2
- package/dist/client/assets/{packet-AYTQ26CC-kDkfULQq.js → packet-AYTQ26CC-CSklBRjj.js} +1 -1
- package/dist/client/assets/{pair-Bxo10T5t.js → pair-DYnW2Jz0.js} +2 -2
- package/dist/client/assets/palette-DCF6iKZY.js +1 -0
- package/dist/client/assets/panel-left-BObCZ482.js +1 -0
- package/dist/client/assets/panels-top-left-4ditdjHS.js +1 -0
- package/dist/client/assets/{pegDiagram-XKGWAZYB-6b8AqBYd.js → pegDiagram-XKGWAZYB-Cgo_C_YQ.js} +2 -2
- package/dist/client/assets/{phoneViewer-Vql_2ZzY.js → phoneViewer-CVOLU68D.js} +2 -2
- package/dist/client/assets/{pie-WAS4IAKB-CfoqFIwI.js → pie-WAS4IAKB-y0cNnmhp.js} +1 -1
- package/dist/client/assets/{pieDiagram-E7YTZNPT-i8FgTMai.js → pieDiagram-E7YTZNPT-CR9uQOKX.js} +2 -2
- package/dist/client/assets/{pierre-icons-CBmlpFgP.js → pierre-icons-YFKnGmUq.js} +2 -2
- package/dist/client/assets/{popover-BXin7C0B.js → popover-D-VzRDzk.js} +2 -2
- package/dist/client/assets/{preview-6t42evKb.js → preview-C7hqmFHN.js} +2 -2
- package/dist/client/assets/{preview-C9iPHfb1.js → preview-DT6Qi-Q0.js} +2 -2
- package/dist/client/assets/{previewMiniPlayerStore-BDRPsVx0.js → previewMiniPlayerStore-Dmvk7kfx.js} +2 -2
- package/dist/client/assets/primary-bBvWt8wp.js +2 -0
- package/dist/client/assets/primaryCloudLinkState-DDmxU43H.js +2 -0
- package/dist/client/assets/projectFilesQueryState-C9bparJ7.js +2 -0
- package/dist/client/assets/projectScriptEditor-2klDgdXc.js +2 -0
- package/dist/client/assets/{providerSkills-D0IxW0_5.js → providerSkills-Bd9FOodA.js} +2 -2
- package/dist/client/assets/{pullRequestDetail.logic-BiwUoz1M.js → pullRequestDetail.logic-BHCv2eTg.js} +4 -4
- package/dist/client/assets/{pullRequestReviewStore-J7YIGsZ9.js → pullRequestReviewStore-DNDBmRdQ.js} +2 -2
- package/dist/client/assets/pullRequests-NQiU1cvE.js +2 -0
- package/dist/client/assets/puzzle-DC6izfkI.js +1 -0
- package/dist/client/assets/{quadrantDiagram-AXDQQJYC-DzvIAxCm.js → quadrantDiagram-AXDQQJYC-B2RnhUBb.js} +2 -2
- package/dist/client/assets/queries-DrIiv9gC.js +2 -0
- package/dist/client/assets/query-B_BcLKlb.js +2 -0
- package/dist/client/assets/{radar-RG4KPBEZ-BnTV8utT.js → radar-RG4KPBEZ-Dygcuho2.js} +1 -1
- package/dist/client/assets/{radio-group-DhpPG5HP.js → radio-group-ESEwcJva.js} +2 -2
- package/dist/client/assets/{railroad-74A4TZTK-nxEBKbUo.js → railroad-74A4TZTK-CK7b6dqk.js} +1 -1
- package/dist/client/assets/railroad-abnf-HS5TGJTU-Bn3ASlRb.js +1 -0
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-DpIqYG5o.js +1 -0
- package/dist/client/assets/railroad-peg-WCYAUIDC-9vGlAMJk.js +1 -0
- package/dist/client/assets/{railroadDiagram-O6MQD6OU-DFdlMVKn.js → railroadDiagram-O6MQD6OU-DsiQNHoT.js} +2 -2
- package/dist/client/assets/{renderScheduler-DWKKtxcJ.js → renderScheduler-DwOi4uKZ.js} +2 -2
- package/dist/client/assets/{requirementDiagram-BXWQKSXE-BW8o0F_p.js → requirementDiagram-BXWQKSXE-DUEtMGYN.js} +2 -2
- package/dist/client/assets/{rightPanelStore-CQ94819A.js → rightPanelStore-BWYBRVeP.js} +2 -2
- package/dist/client/assets/rotate-ccw-BSwk8mHM.js +1 -0
- package/dist/client/assets/rotate-cw-BsgLwrfv.js +1 -0
- package/dist/client/assets/runtime-CBB2It1x.js +6 -0
- package/dist/client/assets/runtime-Dydpcwo9.js +2 -0
- package/dist/client/assets/{sankeyDiagram-P5KCCOFB-JA6FB6i0.js → sankeyDiagram-P5KCCOFB-Bnb7-uIo.js} +2 -2
- package/dist/client/assets/{scheduledTasksSettings.logic-C_AdQNVz.js → scheduledTasksSettings.logic-CFyLLJ0-.js} +3 -3
- package/dist/client/assets/{scroll-area-BYyfw-9F.js → scroll-area-iMm_YXqJ.js} +2 -2
- package/dist/client/assets/{select-CjGEfXy_.js → select-cvR_zMkG.js} +2 -2
- package/dist/client/assets/{sequenceDiagram-WJ2MYXX4-DgBrrcVR.js → sequenceDiagram-WJ2MYXX4-BKHWFnq6.js} +2 -2
- package/dist/client/assets/server-FMafPUns.js +2 -0
- package/dist/client/assets/session-BI6WO3-p.js +2 -0
- package/dist/client/assets/{session-logic-l1juLk9v.js → session-logic-DVvClfzW.js} +5 -5
- package/dist/client/assets/settings-2-BbyXH0uI.js +1 -0
- package/dist/client/assets/settings-DRKdVCbB.js +1 -0
- package/dist/client/assets/{settings-xKzLy5aw.js → settings-Dzr6EHna.js} +2 -2
- package/dist/client/assets/settings.appearance-Dcbf4cgV.js +2 -0
- package/dist/client/assets/settings.archived-BI9u9Y07.js +2 -0
- package/dist/client/assets/{settings.computer-use-DZu90DiM.js → settings.computer-use-CE8rpPYM.js} +2 -2
- package/dist/client/assets/settings.connections-BWLCI5Zi.js +2 -0
- package/dist/client/assets/{settings.data-controls-CBrcsSvm.js → settings.data-controls-CmJZj_HT.js} +2 -2
- package/dist/client/assets/{settings.decisions-CGz9znLs.js → settings.decisions-Bm-M9k3t.js} +2 -2
- package/dist/client/assets/{settings.diagnostics-DKkOOzoq.js → settings.diagnostics-ao6ZzXXw.js} +2 -2
- package/dist/client/assets/settings.general-BoU897Dm.js +2 -0
- package/dist/client/assets/{settings.integrations-K3Jwfkyd.js → settings.integrations-ChLDKsIY.js} +2 -2
- package/dist/client/assets/{settings.keybindings-BbR3qnVs.js → settings.keybindings-BSg3FHQZ.js} +2 -2
- package/dist/client/assets/{settings.open-source-licenses-Mh-zg97k.js → settings.open-source-licenses-B4sC68Ud.js} +2 -2
- package/dist/client/assets/settings.plugins-CGUFRhFY.js +5 -0
- package/dist/client/assets/{settings.projects-BahZsoyx.js → settings.projects-V3nNBIzc.js} +4 -4
- package/dist/client/assets/settings.providers-D1BgocCC.js +3 -0
- package/dist/client/assets/settings.scheduled-tasks-C-I22teI.js +2 -0
- package/dist/client/assets/{settings.snap-shot-Bs_DZS7D.js → settings.snap-shot-aum1tmsR.js} +2 -2
- package/dist/client/assets/{settings.source-control-Akrp_mGm.js → settings.source-control-8YMYuva4.js} +2 -2
- package/dist/client/assets/{settings.storage-fl2BN0Cu.js → settings.storage-e3yKBYeM.js} +2 -2
- package/dist/client/assets/settingsLayout-BUbXPq57.js +3 -0
- package/dist/client/assets/shield-check-CG2tOYd1.js +1 -0
- package/dist/client/assets/shield-question-mark-Mk3rAYhm.js +1 -0
- package/dist/client/assets/{sidebar-MBwCdIpv.js → sidebar-CjtIIYSY.js} +2 -2
- package/dist/client/assets/{sidebarProjectGrouping-Sm7y9bd1.js → sidebarProjectGrouping-BmTLes3y.js} +2 -2
- package/dist/client/assets/{skeleton-CS8ffFVv.js → skeleton-DzaiJbx8.js} +2 -2
- package/dist/client/assets/{sortable.esm-CwrTFe-B.js → sortable.esm-Df_JB8i3.js} +2 -2
- package/dist/client/assets/{sourceControl-DyHbbOxl.js → sourceControl-BfGzu06x.js} +2 -2
- package/dist/client/assets/{spinner-B7a-VUeR.js → spinner-RAU9Cg6j.js} +2 -2
- package/dist/client/assets/square-pen-BuwM-DT0.js +1 -0
- package/dist/client/assets/{standalone-page-DTvNMgJy.js → standalone-page-Bsaqnigq.js} +2 -2
- package/dist/client/assets/{stateDiagram-D77RDMKH-gHEAo7xC.js → stateDiagram-D77RDMKH-BhdX_IDZ.js} +2 -2
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-Ba0Qofsh.js +2 -0
- package/dist/client/assets/{swimlanes-42K2YHIH-_qZ90QGb.js → swimlanes-42K2YHIH-T7QLMavY.js} +2 -2
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-C9WqWw-N.js +9 -0
- package/dist/client/assets/{terminal-links-Dc2HX7Ov.js → terminal-links-B9s8s-tz.js} +2 -2
- package/dist/client/assets/{terminalSessions-DK9WKgga.js → terminalSessions-BmqpP0Ss.js} +2 -2
- package/dist/client/assets/text-search-DyMq-QgY.js +1 -0
- package/dist/client/assets/{textarea-CYXHTTG6.js → textarea-C9YeXMVc.js} +2 -2
- package/dist/client/assets/{themePalette-zVYGoviO.js → themePalette-C1oD3Oeg.js} +3 -3
- package/dist/client/assets/threadSort-C4CtIL5v.js +2 -0
- package/dist/client/assets/{timeline-definition-24CTP7MA-BxWmcZQs.js → timeline-definition-24CTP7MA-Dnja29q2.js} +2 -2
- package/dist/client/assets/toast-DEgXlTR7.js +2 -0
- package/dist/client/assets/{toggle-fk33ppsB.js → toggle-CNbzG8Ec.js} +2 -2
- package/dist/client/assets/{toggle-group-W0bDGcPB.js → toggle-group-DIqmqqKQ.js} +2 -2
- package/dist/client/assets/tooltip-DyiHlEs0.js +2 -0
- package/dist/client/assets/{treeView-Q6P3EWNA-BsPhq-Fl.js → treeView-Q6P3EWNA-KHtw7wMC.js} +1 -1
- package/dist/client/assets/{treemap-WGGIJYW6-DZ3fnU-o.js → treemap-WGGIJYW6-BZN3U17E.js} +1 -1
- package/dist/client/assets/{usage-DlNazxzV.js → usage--nsoWaqi.js} +2 -2
- package/dist/client/assets/{usageAccess-Mp1Nbm2r.js → usageAccess-Dwz13Eun.js} +2 -2
- package/dist/client/assets/{usageFormat-ZiOrCBxk.js → usageFormat-Z0lz-RCF.js} +2 -2
- package/dist/client/assets/{usageShortcuts-Be5hddhr.js → usageShortcuts-cwv5i-oF.js} +2 -2
- package/dist/client/assets/use-atom-command-BVrZ0hTO.js +2 -0
- package/dist/client/assets/{useAriaLabelledBy-D-n0SDV6.js → useAriaLabelledBy-z3tVAFR_.js} +2 -2
- package/dist/client/assets/{useHandleNewThread-BQ5wqZab.js → useHandleNewThread-lAV5NpwQ.js} +2 -2
- package/dist/client/assets/{useLocation-BN5q7LjL.js → useLocation-CxFbcar1.js} +2 -2
- package/dist/client/assets/useNavigate-CLQYZa7I.js +2 -0
- package/dist/client/assets/{useNavigateBack-BWhsiBJ5.js → useNavigateBack-91jfuRCn.js} +2 -2
- package/dist/client/assets/{useParams-DQgx0pmy.js → useParams-nxAoxVO6.js} +2 -2
- package/dist/client/assets/{usePermissionStatus-FtemMvNg.js → usePermissionStatus-CVCguZPP.js} +2 -2
- package/dist/client/assets/{usePullRequestActions-D97OVSkM.js → usePullRequestActions-Cp-f2-rS.js} +3 -3
- package/dist/client/assets/{useRegisterFieldControl-KOnbOVnX.js → useRegisterFieldControl-hMeYQdpT.js} +2 -2
- package/dist/client/assets/useScopedModelAvailability-1rkaoEPh.js +2 -0
- package/dist/client/assets/useSettings-BCUX_14n.js +3 -0
- package/dist/client/assets/{useT3ConnectAuthPrompt-CPGDAWRk.js → useT3ConnectAuthPrompt-B1AHMyDF.js} +2 -2
- package/dist/client/assets/{utils-BxISc9RR.js → utils-Cbsb1ks0.js} +5 -5
- package/dist/client/assets/vcsRefInvalidation-DMlloB2h.js +2 -0
- package/dist/client/assets/{vennDiagram-4TSXK5OY-BnH-hzBf.js → vennDiagram-4TSXK5OY-B4KHYxz_.js} +2 -2
- package/dist/client/assets/{wardley-WFR3VGLG-BbiFWq4f.js → wardley-WFR3VGLG-EUhzOM0w.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-VM6X3IG4-DPf4ISf5.js → wardleyDiagram-VM6X3IG4-25okiPRC.js} +2 -2
- package/dist/client/assets/{welcome-DjYohRu3.js → welcome-pBX3QtZq.js} +2 -2
- package/dist/client/assets/{xychartDiagram-S5SC5T6Z-oaZh5sFY.js → xychartDiagram-S5SC5T6Z-Dyo2i7yf.js} +2 -2
- package/dist/client/index.html +1 -1
- package/package.json +1 -1
- package/dist/client/assets/ChatGptUsageButton-BWTEbaUC.js +0 -2
- package/dist/client/assets/ChatMarkdown-C6UsXjP9.js +0 -65
- package/dist/client/assets/DiffPanel-0HWHkPjD.js +0 -2
- package/dist/client/assets/ProjectDefaultsSettings-Bqo3T1SR.js +0 -2
- package/dist/client/assets/ProjectIconPickerDialog-Cx-QcJLy.js +0 -2
- package/dist/client/assets/ScheduledTasksSettings-D_Z_3GVl.js +0 -4
- package/dist/client/assets/ScopedSwitch-B8wdvttG.js +0 -2
- package/dist/client/assets/_chat-oHhtDqeh.js +0 -45
- package/dist/client/assets/_chat.new-COSURrfS.js +0 -4
- package/dist/client/assets/architecture-7GRP2DOG-BMFS-mJW.js +0 -1
- package/dist/client/assets/arrow-left-BFquhiaO.js +0 -1
- package/dist/client/assets/arrow-right-DiV8cYUQ.js +0 -1
- package/dist/client/assets/arrow-up-down-BDQTjPr1.js +0 -1
- package/dist/client/assets/assets-CRmNKuHc.js +0 -2
- package/dist/client/assets/bell-BvJp3v99.js +0 -1
- package/dist/client/assets/blocks-NuR9qdGl.js +0 -1
- package/dist/client/assets/bot-mvw1ddnU.js +0 -1
- package/dist/client/assets/calendar-clock-CuvWKWXS.js +0 -1
- package/dist/client/assets/channel-Cf2J77rP.js +0 -2
- package/dist/client/assets/chart-no-axes-column-Hfs9TSWj.js +0 -1
- package/dist/client/assets/checkbox-BHsP70Vt.js +0 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-D9m4giYc.js +0 -2
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-D9m4giYc.js +0 -2
- package/dist/client/assets/corner-left-up-DedXC9IG.js +0 -1
- package/dist/client/assets/device-DhvzgETq.js +0 -2
- package/dist/client/assets/download-CUcdw53T.js +0 -1
- package/dist/client/assets/dynamic-tF-2a8Zt.js +0 -3
- package/dist/client/assets/earth-BqADiov-.js +0 -1
- package/dist/client/assets/ellipsis-BUF_4-Z7.js +0 -1
- package/dist/client/assets/entities-DqhRur25.js +0 -2
- package/dist/client/assets/eventmodeling-NTZA5JFV-CHuv5_8f.js +0 -1
- package/dist/client/assets/eye-C8OhITrC.js +0 -1
- package/dist/client/assets/file-search-ComEiFQ8.js +0 -1
- package/dist/client/assets/flowDiagram-HODETNUW-wmC7eeQc.js +0 -1
- package/dist/client/assets/folder-git-2-COyuVTXA.js +0 -1
- package/dist/client/assets/folder-open-DZzz50kK.js +0 -1
- package/dist/client/assets/folder-plus-BzJT8jXs.js +0 -1
- package/dist/client/assets/git-branch-CCzcdr93.js +0 -1
- package/dist/client/assets/grip-vertical-COceJQZo.js +0 -1
- package/dist/client/assets/hard-drive-BKLzbeTS.js +0 -1
- package/dist/client/assets/history-CAAEfWkp.js +0 -1
- package/dist/client/assets/house-U4txgvXa.js +0 -1
- package/dist/client/assets/index-D_uSeco8.js +0 -3
- package/dist/client/assets/keyboard-kgy5M4lo.js +0 -1
- package/dist/client/assets/link-C1k5F8-V.js +0 -1
- package/dist/client/assets/list-CU7BIfIS.js +0 -1
- package/dist/client/assets/loader-CRsWQXUs.js +0 -2
- package/dist/client/assets/main-BsiZpg85.css +0 -2
- package/dist/client/assets/main-uLg3xUJM.js +0 -30
- package/dist/client/assets/message-circle-question-mark-wTwD9xwk.js +0 -1
- package/dist/client/assets/message-square-dashed-Hcy2Q2EP.js +0 -1
- package/dist/client/assets/message-square-lCzwndCW.js +0 -1
- package/dist/client/assets/mouse-pointer-2-BFFAEWXU.js +0 -1
- package/dist/client/assets/number-field-pAaF-e0N.js +0 -2
- package/dist/client/assets/palette-BkpHEJXn.js +0 -1
- package/dist/client/assets/panel-left-DNz3ps89.js +0 -1
- package/dist/client/assets/panels-top-left-bKuZF4FX.js +0 -1
- package/dist/client/assets/primary-DOpcfgLH.js +0 -2
- package/dist/client/assets/primaryCloudLinkState-Dulej3bP.js +0 -2
- package/dist/client/assets/projectFilesQueryState-C1crs3C8.js +0 -2
- package/dist/client/assets/projectScriptEditor-ku2tGeKq.js +0 -2
- package/dist/client/assets/pullRequests-BQ9KruZm.js +0 -2
- package/dist/client/assets/puzzle-wfhgUaHl.js +0 -1
- package/dist/client/assets/queries-CEjFwxVW.js +0 -2
- package/dist/client/assets/query-D5pQUQvZ.js +0 -2
- package/dist/client/assets/railroad-abnf-HS5TGJTU-bDIjPMME.js +0 -1
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-BREFlihg.js +0 -1
- package/dist/client/assets/railroad-peg-WCYAUIDC-B0hEZefb.js +0 -1
- package/dist/client/assets/rotate-ccw-CkpQmcC5.js +0 -1
- package/dist/client/assets/rotate-cw-BAiACGtX.js +0 -1
- package/dist/client/assets/runtime-Bsb2I_n2.js +0 -2
- package/dist/client/assets/runtime-DkYxB4ri.js +0 -6
- package/dist/client/assets/server-BYntb2dN.js +0 -2
- package/dist/client/assets/session-eLrubJEW.js +0 -2
- package/dist/client/assets/settings-2-CDBTJPBs.js +0 -1
- package/dist/client/assets/settings-DDvSs7LG.js +0 -1
- package/dist/client/assets/settings.appearance-CEA3GKAa.js +0 -2
- package/dist/client/assets/settings.archived-DPWjmD2l.js +0 -2
- package/dist/client/assets/settings.connections-BKWbsMUk.js +0 -2
- package/dist/client/assets/settings.general-CoPWyKC4.js +0 -2
- package/dist/client/assets/settings.plugins-BI68kAsM.js +0 -5
- package/dist/client/assets/settings.providers-Dsnq0-AL.js +0 -3
- package/dist/client/assets/settings.scheduled-tasks-BOpVl_XK.js +0 -2
- package/dist/client/assets/settingsLayout-DV36_Jgq.js +0 -3
- package/dist/client/assets/shield-check-yRjvgn4y.js +0 -1
- package/dist/client/assets/shield-question-mark-DyVUewRO.js +0 -1
- package/dist/client/assets/square-pen-BrE59gWn.js +0 -1
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-CGT21P8W.js +0 -2
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-D9Ttx7dQ.js +0 -9
- package/dist/client/assets/text-search-CFbEY3qo.js +0 -1
- package/dist/client/assets/threadSort-Byzu7B1A.js +0 -2
- package/dist/client/assets/toast-BX9uiMAh.js +0 -2
- package/dist/client/assets/tooltip-B0rhqi5b.js +0 -2
- package/dist/client/assets/use-atom-command-RgcuqzP9.js +0 -2
- package/dist/client/assets/useNavigate-CDvr3Yvg.js +0 -2
- package/dist/client/assets/useScopedModelAvailability-BTR7tHpB.js +0 -2
- package/dist/client/assets/useSettings-BIggY3j1.js +0 -3
- package/dist/client/assets/vcsRefInvalidation-h_E9Figo.js +0 -2
package/dist/client/assets/{usePullRequestActions-D97OVSkM.js → usePullRequestActions-Cp-f2-rS.js}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{$b as n,D as r,Ho as i,Jv as a,Rf as o,Ro as s,Rs as c,Uf as l,fs as u,hs as d,jf as f,jx as p,kc as m,ss as h}from"./utils-BxISc9RR.js";import{M as g,U as _,j as v}from"./runtime-DkYxB4ri.js";import{a as y,i as b}from"./vcsRefInvalidation-h_E9Figo.js";import{C as ee}from"./entities-DqhRur25.js";import{t as te}from"./runtime-Bsb2I_n2.js";import{i as x}from"./toast-BX9uiMAh.js";import{O as S,f as C,s as w}from"./useSettings-BIggY3j1.js";import{i as T,n as E}from"./session-eLrubJEW.js";import{n as D}from"./query-D5pQUQvZ.js";import{t as O}from"./use-atom-command-RgcuqzP9.js";import{d as k,l as A,u as j}from"./queries-CEjFwxVW.js";import{t as M}from"./sourceControl-DyHbbOxl.js";import{C as N,r as P}from"./pullRequests-BQ9KruZm.js";import{L as F,v as ne,y as re}from"./pullRequestDetail.logic-BiwUoz1M.js";import{c as ie,f as ae,i as I,s as L}from"./p4ProjectFile-CVEoe1SJ.js";import{t as R}from"./sidebarProjectGrouping-Sm7y9bd1.js";import{n as z}from"./useHandleNewThread-BQ5wqZab.js";var B=e(t(),1),V=p();function H(e){return{pullRequestResolution:g(e,{label:`environment-data:git:resolve-pull-request`,tag:m.gitResolvePullRequest}),preparePullRequestThread:v(e,{label:`environment-data:git:prepare-pull-request-thread`,tag:m.gitPreparePullRequestThread,scheduler:y,concurrency:b})}}var U=H(te),W={init:`init`,pull:`pull`,publishRepository:`publish_repository`,runStackedAction:`run_change_request`,preparePullRequestThread:`prepare_pull_request_thread`};function G(e){let t=T(e.scope.environmentId,o),n=W[e.kind],r=i(A.stateAtom(e.scope)),c=r.operation===n,d=(0,B.useCallback)(()=>{A.resetError(s,e.scope,n)},[e.scope,n]),f=(0,B.useCallback)(async(...t)=>{if(e.scope.environmentId===null||!E(e.scope.environmentId,`source-control:write`))return h(a(new l({requiredScope:o,message:`This connection cannot change source control.`})));let r=async()=>{let n=await e.action(...t);return u(n)&&e.onSuccess?.(),n};return e.managedExternally===!0?r():A.track(s,e.scope,{operation:n,label:e.label},r)},[e.action,e.label,e.managedExternally,e.onSuccess,e.scope,n]);return{isAllowed:t,error:c?r.error:null,isPending:c&&r.isRunning,resetError:d,run:f}}function K(e){return e.environmentId===null||e.cwd===null?null:{environmentId:e.environmentId,cwd:e.cwd}}function q(e,t){let n=(0,V.c)(6),r;n[0]===e?r=n[1]:(r=A.stateAtom(e),n[0]=e,n[1]=r);let a=i(r),o;return n[2]!==t||n[3]!==a.isRunning||n[4]!==a.operation?(o=a.isRunning&&a.operation!==null&&t.some(e=>W[e]===a.operation),n[2]=t,n[3]=a.isRunning,n[4]=a.operation,n[5]=o):o=n[5],o}function J(e){let t=(0,V.c)(7),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={reportFailure:!1},t[0]=n):n=t[0];let r=O(j.init,n),i;t[1]!==r||t[2]!==e?(i=async()=>{let t=K(e);return t===null?h(a(new k({operation:`init`,environmentId:e.environmentId,cwd:e.cwd}))):r({environmentId:t.environmentId,input:{cwd:t.cwd}})},t[1]=r,t[2]=e,t[3]=i):i=t[3];let o=i,s;return t[4]!==o||t[5]!==e?(s={kind:`init`,label:`Initializing repository`,scope:e,action:o},t[4]=o,t[5]=e,t[6]=s):s=t[6],G(s)}function oe(e){let t=(0,V.c)(11),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={reportFailure:!1},t[0]=n):n=t[0];let r=O(j.pull,n),i;t[1]!==e.cwd||t[2]!==e.environmentId?(i=e.environmentId!==null&&e.cwd!==null?j.status({environmentId:e.environmentId,input:{cwd:e.cwd}}):null,t[1]=e.cwd,t[2]=e.environmentId,t[3]=i):i=t[3];let o=D(i),s;t[4]!==r||t[5]!==e?(s=async()=>{let t=K(e);return t===null?h(a(new k({operation:`pull`,environmentId:e.environmentId,cwd:e.cwd}))):r({environmentId:t.environmentId,input:{cwd:t.cwd}})},t[4]=r,t[5]=e,t[6]=s):s=t[6];let c=s,l;return t[7]!==c||t[8]!==e||t[9]!==o.refresh?(l={kind:`pull`,label:`Pulling latest changes...`,scope:e,action:c,onSuccess:o.refresh},t[7]=c,t[8]=e,t[9]=o.refresh,t[10]=l):l=t[10],G(l)}function se(e){let t=(0,V.c)(13),n;t[0]===e?n=t[1]:(n=A.runStackedAction(e),t[0]=e,t[1]=n);let r;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(r={reportFailure:!1},t[2]=r):r=t[2];let i=O(n,r),o;t[3]!==e.cwd||t[4]!==e.environmentId?(o=e.environmentId!==null&&e.cwd!==null?j.status({environmentId:e.environmentId,input:{cwd:e.cwd}}):null,t[3]=e.cwd,t[4]=e.environmentId,t[5]=o):o=t[5];let s=D(o),c;t[6]!==i||t[7]!==e?(c=async t=>K(e)===null?h(a(new k({operation:`run_change_request`,environmentId:e.environmentId,cwd:e.cwd}))):i(t),t[6]=i,t[7]=e,t[8]=c):c=t[8];let l=c,u;return t[9]!==l||t[10]!==e||t[11]!==s.refresh?(u={kind:`runStackedAction`,label:`Running source control action`,scope:e,action:l,onSuccess:s.refresh,managedExternally:!0},t[9]=l,t[10]=e,t[11]=s.refresh,t[12]=u):u=t[12],G(u)}function ce(e){let t=(0,V.c)(11),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={reportFailure:!1},t[0]=n):n=t[0];let r=O(M.publishRepository,n),i;t[1]!==e.cwd||t[2]!==e.environmentId?(i=e.environmentId!==null&&e.cwd!==null?j.status({environmentId:e.environmentId,input:{cwd:e.cwd}}):null,t[1]=e.cwd,t[2]=e.environmentId,t[3]=i):i=t[3];let o=D(i),s;t[4]!==r||t[5]!==e?(s=async t=>{let n=K(e);return n===null?h(a(new k({operation:`publish_repository`,environmentId:e.environmentId,cwd:e.cwd}))):r({environmentId:n.environmentId,input:{cwd:n.cwd,...t}})},t[4]=r,t[5]=e,t[6]=s):s=t[6];let c=s,l;return t[7]!==c||t[8]!==e||t[9]!==o.refresh?(l={kind:`publishRepository`,label:`Publishing repository`,scope:e,action:c,onSuccess:o.refresh},t[7]=c,t[8]=e,t[9]=o.refresh,t[10]=l):l=t[10],G(l)}function Y(e){let t=(0,V.c)(7),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={reportFailure:!1},t[0]=n):n=t[0];let r=O(U.preparePullRequestThread,n),i;t[1]!==r||t[2]!==e?(i=async t=>{let n=K(e);return n===null?h(a(new k({operation:`prepare_pull_request_thread`,environmentId:e.environmentId,cwd:e.cwd}))):t.mode===`worktree`&&t.threadId!==void 0&&!E(n.environmentId,`orchestration:operate`)?h(a(new l({requiredScope:f,message:`This connection cannot change threads.`}))):r({environmentId:n.environmentId,input:{cwd:n.cwd,reference:t.reference,mode:t.mode,...t.threadId?{threadId:t.threadId}:{}}})},t[1]=r,t[2]=e,t[3]=i):i=t[3];let o=i,s;return t[4]!==o||t[5]!==e?(s={kind:`preparePullRequestThread`,label:`Preparing pull request thread`,scope:e,action:o},t[4]=o,t[5]=e,t[6]=s):s=t[6],G(s)}function X(e){return e.environmentId===null||e.cwd===null||e.reference===null?null:n(d(s.get(U.pullRequestResolution({environmentId:e.environmentId,input:{cwd:e.cwd,reference:e.reference}}))))}function le(e){let t=(0,V.c)(12),n;t[0]!==e.cwd||t[1]!==e.environmentId||t[2]!==e.reference?(n=e.environmentId!==null&&e.cwd!==null&&e.reference!==null?U.pullRequestResolution({environmentId:e.environmentId,input:{cwd:e.cwd,reference:e.reference}}):null,t[0]=e.cwd,t[1]=e.environmentId,t[2]=e.reference,t[3]=n):n=t[3];let r=D(n),i;t[4]===e?i=t[5]:(i=X(e),t[4]=e,t[5]=i);let a=i,o=r.data??a,s=r.isPending&&a===null,c;return t[6]!==r.error||t[7]!==r.isPending||t[8]!==r.refresh||t[9]!==o||t[10]!==s?(c={data:o,error:r.error,isPending:s,isFetching:r.isPending,refresh:r.refresh},t[6]=r.error,t[7]=r.isPending,t[8]=r.refresh,t[9]=o,t[10]=s,t[11]=c):c=t[11],c}function ue(e,t){let n=(0,V.c)(10),r;n[0]===t?r=n[1]:(r=e=>I(e,t).settings.pullRequestMergeMethod,n[0]=t,n[1]=r);let i=C(e,r),a=w(de),o=w(ae),s=ee(),c=S(),l;return n[2]!==e||n[3]!==o||n[4]!==a||n[5]!==c||n[6]!==i||n[7]!==t||n[8]!==s?(l=()=>{if(i!=null)return i;if(Object.keys(a).length===0)return;let n=s.find(n=>n.environmentId===e&&n.id===t);if(!n)return;let r=R({projects:s,settings:o,primaryEnvironmentId:c}).get(ie(n))??L(n,o);return a[r]},n[2]=e,n[3]=o,n[4]=a,n[5]=c,n[6]=i,n[7]=t,n[8]=s,n[9]=l):l=n[9],l}function de(e){return e.pullRequestMergeMethodOverrides}var fe={merge:`Merge requested`,ready:`Marked ready for review`,draft:`Converted to draft`,close:`Pull request closed`,reopen:`Pull request reopened`,"update-branch":`Branch updated with the base branch`,"enable-auto-merge":`Auto-merge enabled`,"disable-auto-merge":`Auto-merge disabled`,revert:`Revert pull request opened`,"approve-workflows":`Workflows approved`},pe={merge:`Could not merge this pull request`,ready:`Could not mark this ready for review`,draft:`Could not convert this to a draft`,close:`Could not close this pull request`,reopen:`Could not reopen this pull request`,"update-branch":`Could not update this branch`,"enable-auto-merge":`Could not enable auto-merge`,"disable-auto-merge":`Could not disable auto-merge`,revert:`Could not open a revert pull request`,"approve-workflows":`Could not approve workflows`},Z={merge:`The host refused the merge. Check that you have write access, that the checks it requires have passed, and that the branch is not conflicting.`,ready:`The host refused it. Check that you have write access to this repository.`,draft:`The host refused it. Check that you have write access to this repository.`,close:`The host refused it. Check that you have write access, or that you opened it.`,reopen:`The host refused it. Check that you have write access, and that the branch still exists.`,"update-branch":`The host refused it. Check that you have write access, and that the base branch has not diverged in a way the host cannot merge.`,"enable-auto-merge":`The host refused it. Check that auto-merge is enabled for this repository and that you have write access.`,"disable-auto-merge":`The host refused it. Check that you have write access to this repository.`,revert:`The host refused it. Check that you have write access and that this pull request was merged on the host.`,"approve-workflows":`The host refused it. Check that you have Actions write access and that these workflow runs are still awaiting approval.`};function me({environmentId:e,reference:t,onSuccess:n,resolveMergeMethod:r}){let i=O(P.runAction,{reportFailure:!1}),[a,o]=(0,B.useState)(!1),s=(0,B.useRef)(!1);return{actionPending:a,perform:async(a,c)=>{if(!(s.current||t===null)){s.current=!0,o(!0);try{let o=await i({environmentId:e,input:{...t,action:a,...c?{mergeMethod:c}:r?{resolveMergeMethod:r}:{}}});if(o._tag===`Failure`)throw _(o);x.add({type:`success`,title:fe[a]}),n?.(a)}catch(e){x.add({type:`error`,title:pe[a],description:F(e,Z[a])})}finally{s.current=!1,o(!1)}}}}}function Q(e){let t=O(P.runAction,{reportFailure:!1}),n=(0,B.useRef)(new Set),[r,i]=(0,B.useState)(()=>new Set);return{close:(0,B.useCallback)(async r=>{let a=r.filter(e=>{let t=N(e);return e.state!==`open`||n.current.has(t)?!1:(n.current.add(t),!0)});if(a.length===0)return;i(new Set(n.current));let o=0,s=[];await Promise.all(a.map(async r=>{try{let n=await t({environmentId:r.environmentId,input:{projectId:r.projectId,host:r.host,repository:r.repository,number:r.number,action:`close`}});if(n._tag===`Failure`)throw _(n);o++,e(r)}catch(e){s.push(`#${r.number}: ${F(e,Z.close)}`)}finally{n.current.delete(N(r)),i(new Set(n.current))}})),x.add({type:s.length>0?`error`:`success`,title:s.length>0?`Closed ${o} of ${a.length} pull requests`:`Closed ${o} pull request${o===1?``:`s`}`,...s.length>0?{description:s.slice(0,3).join(`
|
|
2
|
-
`)}:{}})},[e,t]),closingKeys:r}}var $=new Map;function he(e){let t=(0,V.c)(21),{environmentId:
|
|
3
|
-
//# sourceMappingURL=usePullRequestActions-
|
|
1
|
+
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{D as n,Ho as r,Mf as i,Mx as a,Ro as o,Rs as s,Wf as c,Yv as l,ex as u,fs as d,hs as f,kc as p,ss as m,zf as h}from"./utils-Cbsb1ks0.js";import{M as g,U as _,j as v}from"./runtime-CBB2It1x.js";import{a as y,i as b}from"./vcsRefInvalidation-DMlloB2h.js";import{C as ee}from"./entities-HApogVCu.js";import{t as te}from"./runtime-Dydpcwo9.js";import{i as x}from"./toast-DEgXlTR7.js";import{O as S,f as C,s as w}from"./useSettings-BCUX_14n.js";import{i as T,n as E}from"./session-BI6WO3-p.js";import{n as D}from"./query-B_BcLKlb.js";import{t as O}from"./use-atom-command-BVrZ0hTO.js";import{d as k,l as A,u as j}from"./queries-DrIiv9gC.js";import{t as M}from"./sourceControl-BfGzu06x.js";import{C as N,r as P}from"./pullRequests-NQiU1cvE.js";import{L as F,v as ne,y as re}from"./pullRequestDetail.logic-BHCv2eTg.js";import{c as ie,f as ae,i as I,s as L}from"./p4ProjectFile-DNlgD3LH.js";import{t as R}from"./sidebarProjectGrouping-BmTLes3y.js";import{n as z}from"./useHandleNewThread-lAV5NpwQ.js";var B=e(t(),1),V=a();function H(e){return{pullRequestResolution:g(e,{label:`environment-data:git:resolve-pull-request`,tag:p.gitResolvePullRequest}),preparePullRequestThread:v(e,{label:`environment-data:git:prepare-pull-request-thread`,tag:p.gitPreparePullRequestThread,scheduler:y,concurrency:b})}}var U=H(te),W={init:`init`,pull:`pull`,publishRepository:`publish_repository`,runStackedAction:`run_change_request`,preparePullRequestThread:`prepare_pull_request_thread`};function G(e){let t=T(e.scope.environmentId,h),n=W[e.kind],i=r(A.stateAtom(e.scope)),a=i.operation===n,s=(0,B.useCallback)(()=>{A.resetError(o,e.scope,n)},[e.scope,n]),u=(0,B.useCallback)(async(...t)=>{if(e.scope.environmentId===null||!E(e.scope.environmentId,`source-control:write`))return m(l(new c({requiredScope:h,message:`This connection cannot change source control.`})));let r=async()=>{let n=await e.action(...t);return d(n)&&e.onSuccess?.(),n};return e.managedExternally===!0?r():A.track(o,e.scope,{operation:n,label:e.label},r)},[e.action,e.label,e.managedExternally,e.onSuccess,e.scope,n]);return{isAllowed:t,error:a?i.error:null,isPending:a&&i.isRunning,resetError:s,run:u}}function K(e){return e.environmentId===null||e.cwd===null?null:{environmentId:e.environmentId,cwd:e.cwd}}function q(e,t){let n=(0,V.c)(6),i;n[0]===e?i=n[1]:(i=A.stateAtom(e),n[0]=e,n[1]=i);let a=r(i),o;return n[2]!==t||n[3]!==a.isRunning||n[4]!==a.operation?(o=a.isRunning&&a.operation!==null&&t.some(e=>W[e]===a.operation),n[2]=t,n[3]=a.isRunning,n[4]=a.operation,n[5]=o):o=n[5],o}function J(e){let t=(0,V.c)(7),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={reportFailure:!1},t[0]=n):n=t[0];let r=O(j.init,n),i;t[1]!==r||t[2]!==e?(i=async()=>{let t=K(e);return t===null?m(l(new k({operation:`init`,environmentId:e.environmentId,cwd:e.cwd}))):r({environmentId:t.environmentId,input:{cwd:t.cwd}})},t[1]=r,t[2]=e,t[3]=i):i=t[3];let a=i,o;return t[4]!==a||t[5]!==e?(o={kind:`init`,label:`Initializing repository`,scope:e,action:a},t[4]=a,t[5]=e,t[6]=o):o=t[6],G(o)}function oe(e){let t=(0,V.c)(11),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={reportFailure:!1},t[0]=n):n=t[0];let r=O(j.pull,n),i;t[1]!==e.cwd||t[2]!==e.environmentId?(i=e.environmentId!==null&&e.cwd!==null?j.status({environmentId:e.environmentId,input:{cwd:e.cwd}}):null,t[1]=e.cwd,t[2]=e.environmentId,t[3]=i):i=t[3];let a=D(i),o;t[4]!==r||t[5]!==e?(o=async()=>{let t=K(e);return t===null?m(l(new k({operation:`pull`,environmentId:e.environmentId,cwd:e.cwd}))):r({environmentId:t.environmentId,input:{cwd:t.cwd}})},t[4]=r,t[5]=e,t[6]=o):o=t[6];let s=o,c;return t[7]!==s||t[8]!==e||t[9]!==a.refresh?(c={kind:`pull`,label:`Pulling latest changes...`,scope:e,action:s,onSuccess:a.refresh},t[7]=s,t[8]=e,t[9]=a.refresh,t[10]=c):c=t[10],G(c)}function se(e){let t=(0,V.c)(13),n;t[0]===e?n=t[1]:(n=A.runStackedAction(e),t[0]=e,t[1]=n);let r;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(r={reportFailure:!1},t[2]=r):r=t[2];let i=O(n,r),a;t[3]!==e.cwd||t[4]!==e.environmentId?(a=e.environmentId!==null&&e.cwd!==null?j.status({environmentId:e.environmentId,input:{cwd:e.cwd}}):null,t[3]=e.cwd,t[4]=e.environmentId,t[5]=a):a=t[5];let o=D(a),s;t[6]!==i||t[7]!==e?(s=async t=>K(e)===null?m(l(new k({operation:`run_change_request`,environmentId:e.environmentId,cwd:e.cwd}))):i(t),t[6]=i,t[7]=e,t[8]=s):s=t[8];let c=s,u;return t[9]!==c||t[10]!==e||t[11]!==o.refresh?(u={kind:`runStackedAction`,label:`Running source control action`,scope:e,action:c,onSuccess:o.refresh,managedExternally:!0},t[9]=c,t[10]=e,t[11]=o.refresh,t[12]=u):u=t[12],G(u)}function ce(e){let t=(0,V.c)(11),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={reportFailure:!1},t[0]=n):n=t[0];let r=O(M.publishRepository,n),i;t[1]!==e.cwd||t[2]!==e.environmentId?(i=e.environmentId!==null&&e.cwd!==null?j.status({environmentId:e.environmentId,input:{cwd:e.cwd}}):null,t[1]=e.cwd,t[2]=e.environmentId,t[3]=i):i=t[3];let a=D(i),o;t[4]!==r||t[5]!==e?(o=async t=>{let n=K(e);return n===null?m(l(new k({operation:`publish_repository`,environmentId:e.environmentId,cwd:e.cwd}))):r({environmentId:n.environmentId,input:{cwd:n.cwd,...t}})},t[4]=r,t[5]=e,t[6]=o):o=t[6];let s=o,c;return t[7]!==s||t[8]!==e||t[9]!==a.refresh?(c={kind:`publishRepository`,label:`Publishing repository`,scope:e,action:s,onSuccess:a.refresh},t[7]=s,t[8]=e,t[9]=a.refresh,t[10]=c):c=t[10],G(c)}function Y(e){let t=(0,V.c)(7),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={reportFailure:!1},t[0]=n):n=t[0];let r=O(U.preparePullRequestThread,n),a;t[1]!==r||t[2]!==e?(a=async t=>{let n=K(e);return n===null?m(l(new k({operation:`prepare_pull_request_thread`,environmentId:e.environmentId,cwd:e.cwd}))):t.mode===`worktree`&&t.threadId!==void 0&&!E(n.environmentId,`orchestration:operate`)?m(l(new c({requiredScope:i,message:`This connection cannot change threads.`}))):r({environmentId:n.environmentId,input:{cwd:n.cwd,reference:t.reference,mode:t.mode,...t.threadId?{threadId:t.threadId}:{}}})},t[1]=r,t[2]=e,t[3]=a):a=t[3];let o=a,s;return t[4]!==o||t[5]!==e?(s={kind:`preparePullRequestThread`,label:`Preparing pull request thread`,scope:e,action:o},t[4]=o,t[5]=e,t[6]=s):s=t[6],G(s)}function X(e){return e.environmentId===null||e.cwd===null||e.reference===null?null:u(f(o.get(U.pullRequestResolution({environmentId:e.environmentId,input:{cwd:e.cwd,reference:e.reference}}))))}function le(e){let t=(0,V.c)(12),n;t[0]!==e.cwd||t[1]!==e.environmentId||t[2]!==e.reference?(n=e.environmentId!==null&&e.cwd!==null&&e.reference!==null?U.pullRequestResolution({environmentId:e.environmentId,input:{cwd:e.cwd,reference:e.reference}}):null,t[0]=e.cwd,t[1]=e.environmentId,t[2]=e.reference,t[3]=n):n=t[3];let r=D(n),i;t[4]===e?i=t[5]:(i=X(e),t[4]=e,t[5]=i);let a=i,o=r.data??a,s=r.isPending&&a===null,c;return t[6]!==r.error||t[7]!==r.isPending||t[8]!==r.refresh||t[9]!==o||t[10]!==s?(c={data:o,error:r.error,isPending:s,isFetching:r.isPending,refresh:r.refresh},t[6]=r.error,t[7]=r.isPending,t[8]=r.refresh,t[9]=o,t[10]=s,t[11]=c):c=t[11],c}function ue(e,t){let n=(0,V.c)(10),r;n[0]===t?r=n[1]:(r=e=>I(e,t).settings.pullRequestMergeMethod,n[0]=t,n[1]=r);let i=C(e,r),a=w(de),o=w(ae),s=ee(),c=S(),l;return n[2]!==e||n[3]!==o||n[4]!==a||n[5]!==c||n[6]!==i||n[7]!==t||n[8]!==s?(l=()=>{if(i!=null)return i;if(Object.keys(a).length===0)return;let n=s.find(n=>n.environmentId===e&&n.id===t);if(!n)return;let r=R({projects:s,settings:o,primaryEnvironmentId:c}).get(ie(n))??L(n,o);return a[r]},n[2]=e,n[3]=o,n[4]=a,n[5]=c,n[6]=i,n[7]=t,n[8]=s,n[9]=l):l=n[9],l}function de(e){return e.pullRequestMergeMethodOverrides}var fe={merge:`Merge requested`,ready:`Marked ready for review`,draft:`Converted to draft`,close:`Pull request closed`,reopen:`Pull request reopened`,"update-branch":`Branch updated with the base branch`,"enable-auto-merge":`Auto-merge enabled`,"disable-auto-merge":`Auto-merge disabled`,revert:`Revert pull request opened`,"approve-workflows":`Workflows approved`},pe={merge:`Could not merge this pull request`,ready:`Could not mark this ready for review`,draft:`Could not convert this to a draft`,close:`Could not close this pull request`,reopen:`Could not reopen this pull request`,"update-branch":`Could not update this branch`,"enable-auto-merge":`Could not enable auto-merge`,"disable-auto-merge":`Could not disable auto-merge`,revert:`Could not open a revert pull request`,"approve-workflows":`Could not approve workflows`},Z={merge:`The host refused the merge. Check that you have write access, that the checks it requires have passed, and that the branch is not conflicting.`,ready:`The host refused it. Check that you have write access to this repository.`,draft:`The host refused it. Check that you have write access to this repository.`,close:`The host refused it. Check that you have write access, or that you opened it.`,reopen:`The host refused it. Check that you have write access, and that the branch still exists.`,"update-branch":`The host refused it. Check that you have write access, and that the base branch has not diverged in a way the host cannot merge.`,"enable-auto-merge":`The host refused it. Check that auto-merge is enabled for this repository and that you have write access.`,"disable-auto-merge":`The host refused it. Check that you have write access to this repository.`,revert:`The host refused it. Check that you have write access and that this pull request was merged on the host.`,"approve-workflows":`The host refused it. Check that you have Actions write access and that these workflow runs are still awaiting approval.`};function me({environmentId:e,reference:t,onSuccess:n,resolveMergeMethod:r}){let i=O(P.runAction,{reportFailure:!1}),[a,o]=(0,B.useState)(!1),s=(0,B.useRef)(!1);return{actionPending:a,perform:async(a,c)=>{if(!(s.current||t===null)){s.current=!0,o(!0);try{let o=await i({environmentId:e,input:{...t,action:a,...c?{mergeMethod:c}:r?{resolveMergeMethod:r}:{}}});if(o._tag===`Failure`)throw _(o);x.add({type:`success`,title:fe[a]}),n?.(a)}catch(e){x.add({type:`error`,title:pe[a],description:F(e,Z[a])})}finally{s.current=!1,o(!1)}}}}}function Q(e){let t=O(P.runAction,{reportFailure:!1}),n=(0,B.useRef)(new Set),[r,i]=(0,B.useState)(()=>new Set);return{close:(0,B.useCallback)(async r=>{let a=r.filter(e=>{let t=N(e);return e.state!==`open`||n.current.has(t)?!1:(n.current.add(t),!0)});if(a.length===0)return;i(new Set(n.current));let o=0,s=[];await Promise.all(a.map(async r=>{try{let n=await t({environmentId:r.environmentId,input:{projectId:r.projectId,host:r.host,repository:r.repository,number:r.number,action:`close`}});if(n._tag===`Failure`)throw _(n);o++,e(r)}catch(e){s.push(`#${r.number}: ${F(e,Z.close)}`)}finally{n.current.delete(N(r)),i(new Set(n.current))}})),x.add({type:s.length>0?`error`:`success`,title:s.length>0?`Closed ${o} of ${a.length} pull requests`:`Closed ${o} pull request${o===1?``:`s`}`,...s.length>0?{description:s.slice(0,3).join(`
|
|
2
|
+
`)}:{}})},[e,t]),closingKeys:r}}var $=new Map;function he(e){let t=(0,V.c)(21),{environmentId:r,detail:i}=e,a=z(),o=i?.workspaceRoot??null,c;t[0]!==r||t[1]!==o?(c={environmentId:r,cwd:o},t[0]=r,t[1]=o,t[2]=c):c=t[2];let l=Y(c),[u,d]=(0,B.useState)(null),f;t[3]===a?f=t[4]:(f=async(e,t,r)=>{let i=r??await a(e).then(xe,be);if(i===null)return null;let o=n.getState();if(t===null)return i;let s=o.getComposerDraft(i.draftId),c=s?.reviewComments??[],l=ne({prompt:s?.prompt??``,lastHandoffPrompt:$.get(i.draftId)},t.prompt);return $.set(i.draftId,t.prompt),o.setPrompt(i.draftId,l),o.setReviewComments(i.draftId,re(c,t.reviewComments??[])),i},t[3]=a,t[4]=f);let p=f,m;t[5]!==i||t[6]!==r||t[7]!==u||t[8]!==p?(m=async(e,t)=>{if(!i||u!==null)return;d(e);let n=s(r,i.projectId),a=await p(n,t);if(d(null),a===null){x.add({type:`error`,title:`Could not open a thread`,description:`Try again from the project, or open a thread first.`});return}x.add({type:`success`,title:`Asked in a thread`,description:t.prompt.length>0?`The question is in the composer — read it over, then send.`:`The pull request is in the composer — type your question, then send.`})},t[5]=i,t[6]=r,t[7]=u,t[8]=p,t[9]=m):m=t[9];let h=m,g;t[10]!==i||t[11]!==r||t[12]!==u||t[13]!==a||t[14]!==p||t[15]!==l?(g=async(e,t,n)=>{let o=n===void 0?`worktree`:n;if(!i||u!==null)return;d(e);let c=x.add({type:`loading`,title:`Preparing the pull request checkout...`}),f=s(r,i.projectId),m=await a(f).then(ye,ve);if(m===null){d(null),x.update(c,{type:`error`,title:`Could not open a thread for the checkout`,description:`Try again from the project, or open a thread first.`});return}let h=await l.run({reference:i.url,mode:o,threadId:m.threadId});if(h._tag===`Failure`){d(null);let e=l.error instanceof Error?l.error.message:null;x.update(c,{type:`error`,title:`Could not prepare the pull request checkout`,...e?{description:e}:{}});return}if(!await a(f,{branch:h.value.branch,worktreePath:h.value.worktreePath,envMode:h.value.worktreePath===null?`local`:`worktree`}).then(_e,ge)){d(null),x.update(c,{type:`error`,title:`Checked out, but the thread stayed where it was`,description:`The checkout is ready on \`${h.value.branch}\`. Point a thread at it from the branch picker, then ask again.`});return}d(null);let g={type:`warning`,title:`Checked out, but not on the latest commits`,description:`The checkout could not be moved onto the pull request's latest commits, so the code there is older than the pull request. Uncommitted work or local commits keep it where it is.`};if(t===null){x.update(c,h.value.isOnPullRequestHead?{type:`success`,title:o===`local`?`Checked out here`:`Checked out`,description:o===`local`?`This repository is on the pull request's branch, with a thread open on it.`:`The pull request is in its own worktree, with a thread open on it.`}:g);return}await p(f,t,m),x.update(c,h.value.isOnPullRequestHead?{type:`success`,title:`Checkout ready`,description:`The task is in the composer — read it over, then send.`}:g)},t[10]=i,t[11]=r,t[12]=u,t[13]=a,t[14]=p,t[15]=l,t[16]=g):g=t[16];let _=g,v;return t[17]!==u||t[18]!==h||t[19]!==_?(v={handoff:u,startAsk:h,startHandoff:_},t[17]=u,t[18]=h,t[19]=_,t[20]=v):v=t[20],v}function ge(){return!1}function _e(e){return e!==null}function ve(){return null}function ye(e){return e}function be(){return null}function xe(e){return e}export{X as a,le as c,J as d,oe as f,he as i,q as l,Q as n,se as o,ue as r,Y as s,me as t,ce as u};
|
|
3
|
+
//# sourceMappingURL=usePullRequestActions-Cp-f2-rS.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Ln as n,Oa as r}from"./utils-
|
|
2
|
-
//# sourceMappingURL=useRegisterFieldControl-
|
|
1
|
+
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Ln as n,Oa as r}from"./utils-Cbsb1ks0.js";var i=e(t());function a(e,t,a,o,s=!0){let{registerFieldControl:c}=n(),l=i.useRef(null);l.current||=Symbol(),r(()=>{let n=l.current;if(n&&s)return c(n,{controlRef:e,getValue:o,id:t,value:a}),()=>{c(n,void 0)}},[e,s,o,t,c,a])}export{a as t};
|
|
2
|
+
//# sourceMappingURL=useRegisterFieldControl-hMeYQdpT.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ht as e,Mx as t,Nt as n,Vt as r}from"./utils-Cbsb1ks0.js";import{E as i,i as a}from"./useSettings-BCUX_14n.js";import{B as o}from"./settingsLayout-BUbXPq57.js";var s=t();function c(t,c){let l=(0,s.c)(5),{targets:u}=o(),{environments:d}=i(),f;return l[0]!==c||l[1]!==d||l[2]!==t||l[3]!==u?(f=(i,o)=>{let s=c.find(e=>e.instanceId===i);for(let c of u){let l=d.find(e=>e.environmentId===c.environmentId),u=l?.serverConfig;if(!u)continue;let f=r(e(u.providers),c.settings,c.projectId).find(e=>e.instanceId===i),p=n(a(c.settings,t),u.providers).get(i);if(!f?.enabled||!f.isAvailable||f.driverKind!==s?.driverKind||!p?.some(e=>e.slug===o&&!e.isUnavailable))return`This model is unavailable on ${l?.label??`a selected environment`}. Select that environment to choose its model separately.`}return null},l[0]=c,l[1]=d,l[2]=t,l[3]=u,l[4]=f):f=l[4],f}export{c as t};
|
|
2
|
+
//# sourceMappingURL=useScopedModelAvailability-1rkaoEPh.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{$b as n,Al as r,Bl as i,Dh as a,Eh as o,Fb as s,Fl as c,Gh as l,Gl as u,Ho as d,Kf as f,Km as p,Ko as m,Mx as ee,Nb as h,Ol as te,Ph as ne,Pp as re,Qh as ie,Rf as ae,Ro as oe,S_ as se,Sh as ce,Sl as le,Tl as ue,Ul as de,Uo as fe,Wh as pe,Wl as me,Wo as he,Zg as ge,Zm as _e,_m as ve,ah as ye,al as be,bh as xe,bm as Se,eg as Ce,es as g,ex as _,fs as we,gh as Te,gs as Ee,gu as De,hm as Oe,hs as ke,ig as Ae,il as je,ix as Me,jb as v,jl as Ne,js as Pe,lh as Fe,mh as Ie,rg as Le,sl as Re,tg as ze,vs as Be,w_ as Ve,wl as He,xm as Ue,yc as We,ym as Ge}from"./utils-Cbsb1ks0.js";import{F as Ke,L as qe,T as Je,U as Ye,gt as y,kt as Xe,w as Ze,xn as Qe}from"./runtime-CBB2It1x.js";import{Ct as $e,T as et,t as tt,yt as nt}from"./runtime-Dydpcwo9.js";import{i as b}from"./toast-DEgXlTR7.js";import{f as x,h as S,m as rt,u as it}from"./server-FMafPUns.js";import{i as at,n as ot,s as st,t as ct}from"./session-BI6WO3-p.js";import{t as lt}from"./use-atom-command-BVrZ0hTO.js";import{B as ut,C as dt,F as ft,N as pt,P as mt,V as ht,b as gt,c as _t,i as C,k as vt,l as yt,n as w,o as bt,r as xt,v as St,w as Ct,x as wt}from"./themePalette-C1oD3Oeg.js";var T=e(t(),1),E=ee();function Tt(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e)if(t.get(n)!==r)return!1;return!0}function Et(e){let t=he(t=>m(r=>{let i=r(e.catalogValueAtom).entries.get(t);if(i===void 0)return null;let a=n(ke(r(e.stateAtom(t))),()=>Qe);return{entry:i,connection:i.unsupportedReason===void 0?$e(a):{phase:`unsupported`,error:i.unsupportedReason,traceId:null},serverConfig:r(e.serverConfigValueAtom(t))}}).pipe(g(`environment-presentation:${t}`))),r=new Map;return{presentationAtom:t,presentationsAtom:m(n=>{let i=new Map;for(let r of n(e.catalogValueAtom).entries.keys()){let e=n(t(r));e!==null&&i.set(r,e)}return Tt(r,i)||(r=i),r}).pipe(g(`environment-presentations`))}}function Dt(e,t){return{environmentId:e,environmentLabel:t.entry.target.label,displayUrl:nt(t.entry)??``,isRelayManaged:Xe(t.entry),isEnabled:t.entry.enabled,connectionState:t.connection.phase,connectionError:t.connection.error,connectionErrorTraceId:t.connection.traceId}}function Ot(e){let t=m(t=>{let n=[...t(e.catalogValueAtom).entries.keys()],r=_(t.self());return r!==null&&r.length===n.length&&n.every((e,t)=>e===r[t])?r:n}),n=m(t=>{let n=[...t(e.catalogValueAtom).entries].map(([e,t])=>({environmentId:e,label:t.target.label})),r=_(t.self());return r!==null&&r.length===n.length&&n.every((e,t)=>e.environmentId===r[t]?.environmentId&&e.label===r[t]?.label)?r:n}),r=he(t=>m(n=>{let r=n(e.presentationAtom(t));if(r===null)return null;let i=Dt(t,r),a=_(n.self());return a!==null&&a.environmentId===i.environmentId&&a.environmentLabel===i.environmentLabel&&a.displayUrl===i.displayUrl&&a.isRelayManaged===i.isRelayManaged&&a.isEnabled===i.isEnabled&&a.connectionState===i.connectionState&&a.connectionError===i.connectionError&&a.connectionErrorTraceId===i.connectionErrorTraceId?a:i})),i=m(t=>{let n=[];for(let i of t(e.catalogValueAtom).entries.keys()){let e=t(r(i));e!==null&&n.push(e)}let i=_(t.self());return i!==null&&i.length===n.length&&n.every((e,t)=>e===i[t])?i:n}).pipe(g(`environment-connection-summaries`));return{environmentIdsAtom:t,connectedEnvironmentIdsAtom:m(e=>{let n=e(t).filter(t=>e(r(t))?.connectionState===`connected`),i=_(e.self());return i!==null&&i.length===n.length&&n.every((e,t)=>e===i[t])?i:n}),identitiesAtom:n,environmentsAtom:i,machineByIdAtom:m(n=>{let r=new Map(n(t).map(t=>[t,Re(n(e.presentationAtom(t))?.serverConfig??null)])),i=_(n.self());return i!==null&&Tt(i,r)?i:r}),pullRequestsSupportedAtom:m(n=>n(t).some(t=>n(e.presentationAtom(t))?.serverConfig?.environment.capabilities.pullRequests===!0))}}var D=Et({catalogValueAtom:S.catalogValueAtom,stateAtom:S.stateAtom,serverConfigValueAtom:x.configValueAtom}),kt=Ot({catalogValueAtom:S.catalogValueAtom,presentationAtom:D.presentationAtom}),At=m(null).pipe(g(`web-environment-presentation:empty`));function jt(e){let t=(0,E.c)(5),n=d(S.catalogValueAtom),r;t[0]===e?r=t[1]:(r=e===null?At:D.presentationAtom(e),t[0]=e,t[1]=r);let i=d(r),a;return t[2]!==n.isReady||t[3]!==i?(a={isReady:n.isReady,presentation:i},t[2]=n.isReady,t[3]=i,t[4]=a):a=t[4],a}var Mt={status:`idle`},O=Mt,k=null,A=[],j=0,Nt=new Set;function M(e){O=e;for(let e of Nt)e()}function Pt(e){k?.resolve(e);for(let t of A)t.resolve(e);k=null,A=[]}function Ft(){return O}function It(e){return Nt.add(e),()=>{Nt.delete(e)}}function Lt(){j+=1;let e=!0;return()=>{e&&(e=!1,j=Math.max(0,j-1),j===0&&(Pt(!1),M(Mt)))}}function Rt(e,t){if(j!==0)return new Promise(n=>{let r={message:e,variant:t?.variant??`default`,resolve:n};if(k||O.status===`closing`){A.push(r);return}k=r,M({status:`confirming`,message:e,variant:r.variant})})}function zt(){return O.status!==`idle`||k!==null||A.length>0}function Bt(e){if(O.status!==`confirming`||!k)return;let t=k;k=null,t.resolve(e),M({status:`closing`,message:O.message,variant:O.variant})}function Vt(){if(O.status!==`closing`)return;let e=A.shift();if(!e){M(Mt);return}k=e,M({status:`confirming`,message:e.message,variant:e.variant})}var Ht={Ctrl:`⌃`,Alt:`⌥`,Shift:`⇧`,Super:`⌘`,CmdOrCtrl:`⌘`};function Ut(e,t=navigator.platform){let n=e.split(`+`),r=n.pop()??``;return We(t)?`${n.map(e=>Ht[e]??e).join(``)}${r}`:[...n.map(e=>e===`CmdOrCtrl`?`Ctrl`:e===`Super`?`Meta`:e),r].join(`+`)}var Wt=`http://www.w3.org/2000/svg`,Gt={archive:[{tag:`rect`,attrs:{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`}},{tag:`path`,attrs:{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`}},{tag:`path`,attrs:{d:`M10 12h4`}}],check:[{tag:`path`,attrs:{d:`M20 6 9 17l-5-5`}}],timer:[{tag:`line`,attrs:{x1:`10`,x2:`14`,y1:`2`,y2:`2`}},{tag:`line`,attrs:{x1:`12`,x2:`15`,y1:`14`,y2:`11`}},{tag:`circle`,attrs:{cx:`12`,cy:`14`,r:`8`}}],"chevron-right":[{tag:`path`,attrs:{d:`m9 19 7-7-7-7`}}],"circle-check":[{tag:`circle`,attrs:{cx:`12`,cy:`12`,r:`10`}},{tag:`path`,attrs:{d:`m9 12 2 2 4-4`}}],clock:[{tag:`path`,attrs:{d:`M12 6v6l4 2`}},{tag:`circle`,attrs:{cx:`12`,cy:`12`,r:`10`}}],pencil:[{tag:`path`,attrs:{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`}},{tag:`path`,attrs:{d:`m15 5 4 4`}}],copy:[{tag:`rect`,attrs:{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}},{tag:`path`,attrs:{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`}}],folder:[{tag:`path`,attrs:{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`}}],"git-branch":[{tag:`line`,attrs:{x1:`6`,x2:`6`,y1:`3`,y2:`15`}},{tag:`circle`,attrs:{cx:`18`,cy:`6`,r:`3`}},{tag:`circle`,attrs:{cx:`6`,cy:`18`,r:`3`}},{tag:`path`,attrs:{d:`M18 9a9 9 0 0 1-9 9`}}],eye:[{tag:`path`,attrs:{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`}},{tag:`circle`,attrs:{cx:`12`,cy:`12`,r:`3`}}],"app-window":[{tag:`rect`,attrs:{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`}},{tag:`path`,attrs:{d:`M10 4v4`}},{tag:`path`,attrs:{d:`M2 8h20`}},{tag:`path`,attrs:{d:`M6 4v4`}}],"arrow-up-right":[{tag:`path`,attrs:{d:`M7 7h10v10`}},{tag:`path`,attrs:{d:`M7 17 17 7`}}],"external-link":[{tag:`path`,attrs:{d:`M15 3h6v6`}},{tag:`path`,attrs:{d:`M10 14 21 3`}},{tag:`path`,attrs:{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`}}],link:[{tag:`path`,attrs:{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`}},{tag:`path`,attrs:{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`}}],list:[{tag:`path`,attrs:{d:`M3 5h.01`}},{tag:`path`,attrs:{d:`M3 12h.01`}},{tag:`path`,attrs:{d:`M3 19h.01`}},{tag:`path`,attrs:{d:`M8 5h13`}},{tag:`path`,attrs:{d:`M8 12h13`}},{tag:`path`,attrs:{d:`M8 19h13`}}],share:[{tag:`path`,attrs:{d:`M12 2v13`}},{tag:`path`,attrs:{d:`m16 6-4-4-4 4`}},{tag:`path`,attrs:{d:`M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8`}}],x:[{tag:`path`,attrs:{d:`M18 6 6 18`}},{tag:`path`,attrs:{d:`m6 6 12 12`}}],hash:[{tag:`line`,attrs:{x1:`4`,x2:`20`,y1:`9`,y2:`9`}},{tag:`line`,attrs:{x1:`4`,x2:`20`,y1:`15`,y2:`15`}},{tag:`line`,attrs:{x1:`10`,x2:`8`,y1:`3`,y2:`21`}},{tag:`line`,attrs:{x1:`16`,x2:`14`,y1:`3`,y2:`21`}}],"mail-open":[{tag:`path`,attrs:{d:`M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z`}},{tag:`path`,attrs:{d:`m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10`}}],"message-square-plus":[{tag:`path`,attrs:{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`}},{tag:`path`,attrs:{d:`M12 8v6`}},{tag:`path`,attrs:{d:`M9 11h6`}}],pin:[{tag:`path`,attrs:{d:`M12 17v5`}},{tag:`path`,attrs:{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`}}],"pin-off":[{tag:`path`,attrs:{d:`M12 17v5`}},{tag:`path`,attrs:{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`}},{tag:`path`,attrs:{d:`m2 2 20 20`}},{tag:`path`,attrs:{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`}}],"refresh-cw":[{tag:`path`,attrs:{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`}},{tag:`path`,attrs:{d:`M21 3v5h-5`}},{tag:`path`,attrs:{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`}},{tag:`path`,attrs:{d:`M8 16H3v5`}}],settings:[{tag:`path`,attrs:{d:`M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.38a2 2 0 0 0-.73-2.73l-.15-.09a2 2 0 0 1-1-1.74v-.51a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z`}},{tag:`circle`,attrs:{cx:`12`,cy:`12`,r:`3`}}],"folder-tree":[{tag:`path`,attrs:{d:`M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`}},{tag:`path`,attrs:{d:`M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`}},{tag:`path`,attrs:{d:`M3 5a2 2 0 0 0 2 2h3`}},{tag:`path`,attrs:{d:`M3 3v13a2 2 0 0 0 2 2h3`}}],trash:[{tag:`path`,attrs:{d:`M3 6h18`}},{tag:`path`,attrs:{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`}},{tag:`path`,attrs:{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`}},{tag:`line`,attrs:{x1:`10`,x2:`10`,y1:`11`,y2:`17`}},{tag:`line`,attrs:{x1:`14`,x2:`14`,y1:`11`,y2:`17`}}]};function Kt(e,t){let n=Gt[e];if(!n||typeof document.createElementNS!=`function`)return null;let r=document.createElementNS(Wt,`svg`);r.setAttribute(`xmlns`,Wt),r.setAttribute(`viewBox`,`0 0 24 24`),r.setAttribute(`fill`,`none`),r.setAttribute(`stroke`,`currentColor`),r.setAttribute(`stroke-width`,`2`),r.setAttribute(`stroke-linecap`,`round`),r.setAttribute(`stroke-linejoin`,`round`),r.setAttribute(`class`,t===`destructive`?`size-4.5 shrink-0 sm:size-4`:`size-4.5 shrink-0 text-muted-foreground sm:size-4`);for(let e of n){let t=document.createElementNS(Wt,e.tag);for(let[n,r]of Object.entries(e.attrs))t.setAttribute(n,r);r.appendChild(t)}return r}function qt(e,t,n){let r=e.getBoundingClientRect(),i=Math.min(Math.max(4,t),Math.max(4,window.innerWidth-r.width-4)),a=Math.min(Math.max(4,n),Math.max(4,window.innerHeight-r.height-4));e.style.left=`${i}px`,e.style.top=`${a}px`}function Jt(e,t){if(typeof Node<`u`&&e instanceof Node)return t.some(t=>t.contains(e));if(!e||typeof e!=`object`)return!1;let n=e;for(;n&&typeof n==`object`;){if(t.includes(n))return!0;n=n.parent}return!1}var N=null;function Yt(){return N!==null}function Xt(){N?.(),N=null}function Zt(e,t){return new Promise(n=>{let r=document.activeElement instanceof HTMLElement?document.activeElement:null,i=[],a=[],o=!1,s=!1,c=()=>l(null),l=e=>{if(o)return;o=!0,N===c&&(N=null),document.removeEventListener(`keydown`,u),document.removeEventListener(`pointerdown`,d,!0),document.removeEventListener(`contextmenu`,f,!0);let t=Jt(document.activeElement,i);for(let e of i)e.remove();t&&r?.isConnected&&r.focus({preventScroll:!0}),n(e)},u=e=>{e.key===`Escape`&&(e.preventDefault(),l(null))},d=e=>{s&&!Jt(e.target,i)&&l(null)},f=e=>{s&&!Jt(e.target,i)&&(e.preventDefault(),l(null))},p=e=>{for(;i.length>e;)a.pop()?.setAttribute(`aria-expanded`,`false`),i.pop()?.remove()},m=(e,t,n,r,o)=>{p(r);let c=document.createElement(`div`);c.className=`dropdown-glass fixed z-[10000] min-w-56 max-w-sm overflow-hidden rounded-lg bg-clip-padding text-popover-foreground outline-none`,c.style.cssText=`position:fixed;z-index:10000;min-width:14rem;max-width:24rem;overflow:hidden;border-radius:var(--radius-lg);background-clip:padding-box;color:var(--contrast-popover-foreground);outline:none;pointer-events:auto;`,c.style.left=`${t}px`,c.style.top=`${n}px`,c.dataset.level=String(r);let u=document.createElement(`div`);u.className=`max-h-[calc(100vh-0.5rem)] min-w-0 max-w-sm overflow-y-auto overflow-x-hidden p-1`,u.style.cssText=`max-height:calc(100vh - 0.5rem);min-width:0;max-width:24rem;overflow-x:hidden;overflow-y:auto;padding:0.25rem;`;for(let t of e){if(t.separatorBefore===!0&&u.children.length>0){let e=document.createElement(`div`);e.className=`mx-2 my-1 h-px bg-border`,e.style.cssText=`height:1px;margin:0.25rem 0.5rem;background:var(--contrast-border);`,e.dataset.contextMenuSeparator=`true`,e.setAttribute(`role`,`separator`),u.appendChild(e)}if(t.header===!0){let e=document.createElement(`div`);e.className=`px-2 py-1.5 font-medium text-muted-foreground text-xs`,e.textContent=t.label,u.appendChild(e);continue}let e=Array.isArray(t.children)&&t.children.length>0,n=!e&&(t.destructive===!0||t.id===`delete`),a=document.createElement(`button`);a.type=`button`;let o=t.disabled===!0;a.disabled=o;let c=`flex w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-1 text-left outline-none transition-colors sm:min-h-7 sm:text-sm min-h-8 text-base`;if(a.className=o?`${c} pointer-events-none cursor-not-allowed text-muted-foreground opacity-64`:n?`${c} text-destructive-foreground hover:bg-destructive/10 hover:text-destructive-foreground`:`${c} text-foreground hover:bg-accent hover:text-accent-foreground`,a.style.cssText=`display:flex;width:100%;min-height:1.75rem;align-items:center;gap:0.5rem;border:0;border-radius:var(--radius-sm);background:transparent;padding:0.25rem 0.5rem;color:var(--contrast-foreground);font-family:var(--font-sans,system-ui,sans-serif);font-size:0.875rem;line-height:1.25rem;text-align:left;cursor:default;`,n&&(a.style.color=`var(--destructive-foreground)`),o&&(a.style.color=`var(--contrast-muted-foreground)`,a.style.opacity=`0.64`,a.style.pointerEvents=`none`),typeof t.checked==`boolean`){a.setAttribute(`role`,`menuitemradio`),a.setAttribute(`aria-checked`,t.checked?`true`:`false`);let e=t.checked?Kt(`check`,`neutral`):null;if(e)a.appendChild(e);else{let e=document.createElement(`span`);e.className=`size-4.5 shrink-0 sm:size-4`,e.style.cssText=`display:inline-block;width:1rem;height:1rem;flex-shrink:0;`,e.setAttribute(`aria-hidden`,`true`),a.appendChild(e)}}else if(typeof t.icon==`string`){let e=Kt(t.icon,n?`destructive`:`neutral`);e&&a.appendChild(e)}let d=document.createElement(`span`);if(d.className=`min-w-0 flex-1 truncate`,d.textContent=t.label,a.appendChild(d),typeof t.accelerator==`string`){let e=document.createElement(`span`);e.className=`ms-6 shrink-0 text-muted-foreground text-xs tracking-widest`,e.style.cssText=`margin-inline-start:1.5rem;flex-shrink:0;color:var(--contrast-muted-foreground);font-size:0.75rem;letter-spacing:0.1em;`,e.textContent=Ut(t.accelerator),e.setAttribute(`aria-hidden`,`true`),a.setAttribute(`aria-keyshortcuts`,t.accelerator.replace(`CmdOrCtrl`,We(navigator.platform)?`Meta`:`Control`)),a.appendChild(e)}if(e){a.setAttribute(`aria-haspopup`,`menu`),a.setAttribute(`aria-expanded`,`false`);let e=Kt(`chevron-right`,`neutral`);e&&(e.setAttribute(`class`,`-me-0.5 ms-auto size-4.5 shrink-0 text-muted-foreground opacity-80 sm:size-4`),e.setAttribute(`aria-hidden`,`true`),e.dataset.contextMenuChevron=`true`,a.appendChild(e))}if(!o){let o=!1,c=!1,u=()=>{let e=o||c;a.style.background=e?n?`color-mix(in srgb, var(--destructive) 10%, transparent)`:`var(--accent)`:`transparent`,a.style.color=e?n?`var(--destructive-foreground)`:`var(--contrast-accent-foreground)`:n?`var(--destructive-foreground)`:`var(--contrast-foreground)`};if(a.addEventListener(`mouseenter`,()=>{a.focus({preventScroll:!0}),o=!0,u()}),a.addEventListener(`mouseleave`,()=>{o=!1,u()}),a.addEventListener(`focus`,()=>{c=!0,u()}),a.addEventListener(`blur`,()=>{c=!1,u()}),e){let e=(e=!1)=>{let n=a.getBoundingClientRect(),o=n.right+4,s=n.top;m(t.children,o,s,r+1,a),a.setAttribute(`aria-expanded`,`true`);let c=i[r+1];if(!c)return;let l=c.getBoundingClientRect();l.right>window.innerWidth&&qt(c,n.left-l.width-4,n.top),e&&[...c.querySelectorAll(`button`)].find(e=>!e.disabled)?.focus()};a.addEventListener(`mouseenter`,()=>{e()}),a.addEventListener(`click`,t=>{t.preventDefault(),e(!0)})}else a.addEventListener(`mouseenter`,()=>{p(r+1)}),a.addEventListener(`click`,()=>{s&&l(t.id)})}u.appendChild(a)}c.appendChild(u),c.addEventListener(`mouseenter`,()=>{p(r+1)}),document.body.appendChild(c),i[r]=c,a[r]=o,requestAnimationFrame(()=>{qt(c,t,n)})};document.addEventListener(`keydown`,u),document.addEventListener(`pointerdown`,d,!0),document.addEventListener(`contextmenu`,f,!0),m(e,t?.x??0,t?.y??0,0),N&&N(),N=c,requestAnimationFrame(()=>{s=!0})})}var Qt=`t3code:client-settings:v1`;function $t(){return typeof window<`u`}function en(){return $t()?Ee(Qt,le):null}function tn(e){$t()&&Be(Qt,e,le)}var nn;function rn(){return{dialogs:{pickFolder:async e=>window.desktopBridge?window.desktopBridge.pickFolder(e):null,confirm:async(e,t)=>Rt(e,t)??!1},shell:{openExternal:async e=>{if(window.desktopBridge){if(!await window.desktopBridge.openExternal(e))throw Error(`Unable to open link.`);return}window.open(e,`_blank`,`noopener,noreferrer`)},openSystemSettings:async e=>{if(!window.desktopBridge?.openSystemSettings||!await window.desktopBridge.openSystemSettings(e))throw Error(`Unable to open System Settings.`)}},contextMenu:{show:async(e,t)=>window.desktopBridge?window.desktopBridge.showContextMenu(e,t):Zt(e,t),close:async()=>{window.desktopBridge||Xt()}},persistence:{getClientSettings:async()=>window.desktopBridge?window.desktopBridge.getClientSettings():en(),setClientSettings:async e=>{if(window.desktopBridge)return window.desktopBridge.setClientSettings(e);tn(e)}}}}function an(){return rn()}function on(){if(typeof window<`u`)return nn||(nn=an(),nn)}function sn(){let e=on();if(!e)throw Error(`Local API not found`);return e}var P=`t3code:theme`,cn=`(prefers-color-scheme: dark)`,F={theme:`system`,resolvedTheme:`light`,systemDark:!1,followSystem:!0,appearanceMode:`system`,themeHalves:null};function ln(){return I()}function un(){return typeof window>`u`?{}:dn()}function I(){if(typeof window>`u`)return null;try{return vt(window.localStorage.getItem(C))}catch{return null}}function dn(){try{let e=JSON.parse(window.localStorage.getItem(`t3code:theme-halves:v1`)??`null`);if(typeof e!=`object`||!e)return{};let t={};for(let n of[`light`,`dark`]){let r=e[n];typeof r==`string`&&(t[n]=r)}return t}catch{return{}}}function fn(e){return`${e?.light??``}|${e?.dark??``}`}var pn=`theme-color`,mn=`meta[name="${pn}"][data-dynamic-theme-color="true"]`,L=class extends Fe()(`ThemeStorageError`,{operation:_e([`read`,`write`]),storageKey:ye,theme:ne(bt),cause:p()}){get message(){return`Failed to ${this.operation} theme preference for ${this.storageKey}.`}},hn=a(L),gn=class extends Fe()(`DesktopThemeSyncError`,{theme:bt,cause:p()}){get message(){return`Failed to sync the ${this.theme} theme to the desktop shell.`}},_n=a(gn),R=[],z=null,vn=!0,yn=null,B=null,V=null;function H(){vn=!0;for(let e of R)e()}function bn(){return typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(cn).matches}function xn(e){if(typeof window>`u`)return e===`system`;try{let e=window.localStorage.getItem(xt);if(e===`true`)return!0;if(e===`false`)return!1}catch{}return e===`system`}function Sn(e){return e===`light`||e===`dark`||e===`system`}function U(e){if(typeof window<`u`)try{let e=window.localStorage.getItem(w);if(Sn(e))return e}catch{}return xn(e)?`system`:gt(e)??`light`}function Cn(e){if(typeof window<`u`)try{window.localStorage.setItem(w,e)}catch(e){throw new L({operation:`write`,storageKey:w,cause:e})}}function wn(){if(typeof window>`u`)return F.theme;let e;try{e=window.localStorage.getItem(P)}catch(e){throw new L({operation:`read`,storageKey:P,cause:e})}return e!==null&&Ct(e)?yt(e):F.theme}function Tn(e){if(typeof window<`u`)try{window.localStorage.setItem(P,e),V=null}catch(t){throw new L({operation:`write`,storageKey:P,theme:e,cause:t})}}function W(){if(V!==null)return F.theme;try{return wn()}catch(e){let t=hn(e)?e:new L({operation:`read`,storageKey:P,cause:e});return V=t,console.error(t.message,{operation:t.operation,storageKey:t.storageKey,...y(t)}),F.theme}}function En(){let e=document.querySelector(mn);return e||(e=document.createElement(`meta`),e.name=pn,e.setAttribute(`data-dynamic-theme-color`,`true`),document.head.append(e),e)}function Dn(e){let t=e?.trim().toLowerCase();return!t||t===`transparent`||t===`rgba(0, 0, 0, 0)`||t===`rgba(0 0 0 / 0)`?null:e?.trim()??null}function On(){return document.querySelector(`main[data-slot='sidebar-inset']`)??document.querySelector(`[data-slot='sidebar-inner']`)??document.body}function kn(){if(typeof document>`u`||typeof getComputedStyle>`u`)return;let e=getComputedStyle(document.documentElement),t=document.documentElement.dataset.themeId?Dn(e.getPropertyValue(`--app-chrome-background`)):null,n=Dn(getComputedStyle(On()).backgroundColor),r=Dn(getComputedStyle(document.body).backgroundColor),i=t??n??r;if(!i)return;document.documentElement.style.backgroundColor=i,document.body.style.backgroundColor=i;let a=document.querySelectorAll(`meta[name="${pn}"]`);if(a.length===0){En().setAttribute(`content`,i);return}for(let e of a)e.setAttribute(`content`,i)}function G(e,{suppressTransitions:t=!1,preservePreview:n=!0}={}){if(typeof document>`u`||typeof window>`u`||n&&document.documentElement.dataset?.themeId===`__preview`)return;let r=U(e),i=r===`system`,a=i?bn():!1,o=I();if(B?.theme===e&&B.systemDark===a&&B.followSystem===i&&B.appearanceMode===r&&fn(B.themeHalves)===fn(o)){jn(e,i,r);return}t&&document.documentElement.classList.add(`no-transitions`);let s=mt(e,a,i,r,o);_t(ft(e,o,s),s),document.documentElement.classList.toggle(`dark`,s===`dark`),B={theme:e,systemDark:a,followSystem:i,appearanceMode:r,themeHalves:o},kn(),jn(e,i,r),t&&(document.documentElement.offsetHeight,requestAnimationFrame(()=>{document.documentElement.classList.remove(`no-transitions`)}))}async function An(e,t,n,r,i=I()){try{await e.setTheme(pt(t,n,r,i))}catch(e){throw new gn({theme:t,cause:e})}}function jn(e,t,n){if(typeof window>`u`)return;let r=window.desktopBridge,i=I(),a=pt(e,t,n,i);r&&typeof r.setTheme==`function`&&yn!==a&&(yn=a,An(r,e,t,n,i).catch(t=>{let n=_n(t)?t:new gn({theme:e,cause:t});console.error(n.message,{theme:n.theme,...y(n)}),yn===a&&(yn=null)}))}typeof document<`u`&&typeof window<`u`&&G(W());function Mn(){if(typeof window>`u`)return F;if(!vn&&z)return z;vn=!1;let e=W(),t=U(e),n=t===`system`,r=n?bn():!1,i=I(),a=mt(e,r,n,t,i);return z&&z.theme===e&&z.resolvedTheme===a&&z.systemDark===r&&z.followSystem===n&&z.appearanceMode===t&&fn(z.themeHalves)===fn(i)||(z={theme:e,resolvedTheme:a,systemDark:r,followSystem:n,appearanceMode:t,themeHalves:i}),z}function Nn(){return F}function Pn(){let e=W();U(e)===`system`&&G(e,{suppressTransitions:!0}),H()}function Fn(e){e.key===P?(V=null,G(W(),{suppressTransitions:!0}),H()):e.key===`t3code:theme-follow-system`||e.key===`t3code:theme-appearance-mode`||e.key===`t3code:theme-halves:v1`?(G(W(),{suppressTransitions:!0}),H()):(e.key===`t3code:themes:v1`||e.key===null)&&(e.key===null&&(V=null),dt(),B=null,G(W(),{suppressTransitions:!0}),H())}var In=null;function Ln(e){if(typeof window>`u`)return()=>{};if(R.push(e),!In){let e=typeof window.matchMedia==`function`?window.matchMedia(cn):null;e?.addEventListener(`change`,Pn),window.addEventListener(`storage`,Fn),In=()=>{e?.removeEventListener(`change`,Pn),window.removeEventListener(`storage`,Fn)}}return()=>{R=R.filter(t=>t!==e),R.length===0&&(In?.(),In=null)}}function Rn(){let e=(0,T.useSyncExternalStore)(Ln,Mn,Nn),{theme:t,resolvedTheme:n}=e,r=(0,T.useCallback)(e=>{if(typeof window>`u`)return!1;try{Cn(U(W()));let t=window.localStorage.getItem(C);window.localStorage.removeItem(C);try{Tn(e)}catch(e){if(t!==null)try{window.localStorage.setItem(C,t)}catch{}throw e}}catch(t){let n=hn(t)?t:new L({operation:`write`,storageKey:P,theme:e,cause:t});return console.error(n.message,{operation:n.operation,storageKey:n.storageKey,theme:e,...y(n)}),!1}return G(e,{suppressTransitions:!0}),H(),!0},[]),i=(0,T.useCallback)(e=>{if(typeof window>`u`)return!1;try{Cn(e)}catch(e){let t=hn(e)?e:new L({operation:`write`,storageKey:w,cause:e});return console.error(t.message,{operation:t.operation,storageKey:t.storageKey,...y(t)}),!1}return V=null,G(W(),{suppressTransitions:!0}),H(),!0},[]),a=(0,T.useCallback)(e=>{let n=U(t),r=e?`system`:n===`system`?gt(t)??`light`:n;return i(r)},[i,t]),o=(0,T.useCallback)((e,t)=>{if(typeof window>`u`)return!1;try{let n={...dn()};t===null?delete n[e]:n[e]=t,n.light===void 0&&n.dark===void 0?window.localStorage.removeItem(C):window.localStorage.setItem(C,JSON.stringify(n))}catch(e){let t=new L({operation:`write`,storageKey:C,cause:e});return console.error(t.message,{operation:t.operation,storageKey:t.storageKey,...y(t)}),!1}return G(W(),{suppressTransitions:!0}),H(),!0},[]),s=(0,T.useCallback)(()=>{if(typeof window>`u`)return!1;try{window.localStorage.removeItem(C)}catch(e){let t=new L({operation:`write`,storageKey:C,cause:e});return console.error(t.message,{operation:t.operation,storageKey:t.storageKey,...y(t)}),!1}return G(W(),{suppressTransitions:!0}),H(),!0},[]),c=(0,T.useCallback)(({preservePreview:e=!1}={})=>{typeof window<`u`&&(B=null,G(W(),{suppressTransitions:!0,preservePreview:e}),H())},[]);return(0,T.useEffect)(()=>{G(t)},[e.appearanceMode,t]),{theme:t,setTheme:r,setAppearanceMode:i,setFollowSystem:a,setThemeHalf:o,clearThemeHalves:s,refreshTheme:c,followSystem:e.followSystem,appearanceMode:e.appearanceMode,resolvedTheme:n,themeHalves:e.themeHalves}}var zn=Te(o(Ie)),Bn=Ae(e=>{let t=e.replace(/("(?:[^"\\]|\\.)*")|\/\/[^\n]*/g,(e,t)=>t?e:``);return t=t.replace(/("(?:[^"\\]|\\.)*")|\/\*[\s\S]*?\*\//g,(e,t)=>t?e:``),t=t.replace(/("(?:[^"\\]|\\.)*")|,(\s*[}\]])/g,(e,t,n)=>t?e:n??``),zn(t).pipe(Ve(e=>e.issue))}),Vn=new ie(Bn,Le());ze().pipe(Ce(Le({space:2})));var Hn=e=>ye.pipe(xe(e,Vn)),Un={performance:{profile:`performance`,automaticGitFetchInterval:h(15),providerHealthRefreshInterval:v(1),hostPowerMonitorActiveInterval:h(30),hostPowerMonitorIdleInterval:v(2),idleClientTtl:h(45),pauseWhenHostLocked:!0,pauseWhenHostLowPower:!1,pauseWhenClientLowPower:!1,pauseWhenOnBattery:!1},balanced:{profile:`balanced`,automaticGitFetchInterval:He,providerHealthRefreshInterval:r,hostPowerMonitorActiveInterval:h(30),hostPowerMonitorIdleInterval:v(5),idleClientTtl:h(45),pauseWhenHostLocked:!0,pauseWhenHostLowPower:!0,pauseWhenClientLowPower:!0,pauseWhenOnBattery:!1},"battery-saver":{profile:`battery-saver`,automaticGitFetchInterval:h(0),providerHealthRefreshInterval:v(15),hostPowerMonitorActiveInterval:v(1),hostPowerMonitorIdleInterval:v(10),idleClientTtl:h(45),pauseWhenHostLocked:!0,pauseWhenHostLowPower:!0,pauseWhenClientLowPower:!0,pauseWhenOnBattery:!0}};function K(e){return Un[e]}function Wn(e){return e.profile===`custom`?e.baseProfile??`balanced`:e.profile}function Gn(e){let t=Wn(e),n=Un[t],r=e.profile===`custom`?e.overrides:{};return{profile:t,automaticGitFetchInterval:r.automaticGitFetchInterval??n.automaticGitFetchInterval,providerHealthRefreshInterval:r.providerHealthRefreshInterval??n.providerHealthRefreshInterval,hostPowerMonitorActiveInterval:r.hostPowerMonitorActiveInterval??n.hostPowerMonitorActiveInterval,hostPowerMonitorIdleInterval:r.hostPowerMonitorIdleInterval??n.hostPowerMonitorIdleInterval,idleClientTtl:r.idleClientTtl??n.idleClientTtl,pauseWhenHostLocked:r.pauseWhenHostLocked??n.pauseWhenHostLocked,pauseWhenHostLowPower:r.pauseWhenHostLowPower??n.pauseWhenHostLowPower,pauseWhenClientLowPower:r.pauseWhenClientLowPower??n.pauseWhenClientLowPower,pauseWhenOnBattery:r.pauseWhenOnBattery??n.pauseWhenOnBattery}}function q(e,t){return s(e)===s(t)}function Kn(e,t){return q(e.automaticGitFetchInterval,t.automaticGitFetchInterval)&&q(e.providerHealthRefreshInterval,t.providerHealthRefreshInterval)&&q(e.hostPowerMonitorActiveInterval,t.hostPowerMonitorActiveInterval)&&q(e.hostPowerMonitorIdleInterval,t.hostPowerMonitorIdleInterval)&&q(e.idleClientTtl,t.idleClientTtl)&&e.pauseWhenHostLocked===t.pauseWhenHostLocked&&e.pauseWhenHostLowPower===t.pauseWhenHostLowPower&&e.pauseWhenClientLowPower===t.pauseWhenClientLowPower&&e.pauseWhenOnBattery===t.pauseWhenOnBattery}function qn(e){if(e.profile!==`custom`)return{schemaVersion:1,profile:e.profile,overrides:{}};let t=Gn(e),n=[Wn(e),`balanced`,`performance`,`battery-saver`];for(let e of n)if(Kn(t,Un[e]))return{schemaVersion:1,profile:e,overrides:{}};let r=Wn(e),i=Un[r];return{schemaVersion:1,profile:`custom`,baseProfile:r,overrides:{...q(t.automaticGitFetchInterval,i.automaticGitFetchInterval)?{}:{automaticGitFetchInterval:t.automaticGitFetchInterval},...q(t.providerHealthRefreshInterval,i.providerHealthRefreshInterval)?{}:{providerHealthRefreshInterval:t.providerHealthRefreshInterval},...q(t.hostPowerMonitorActiveInterval,i.hostPowerMonitorActiveInterval)?{}:{hostPowerMonitorActiveInterval:t.hostPowerMonitorActiveInterval},...q(t.hostPowerMonitorIdleInterval,i.hostPowerMonitorIdleInterval)?{}:{hostPowerMonitorIdleInterval:t.hostPowerMonitorIdleInterval},...q(t.idleClientTtl,i.idleClientTtl)?{}:{idleClientTtl:t.idleClientTtl},...t.pauseWhenHostLocked===i.pauseWhenHostLocked?{}:{pauseWhenHostLocked:t.pauseWhenHostLocked},...t.pauseWhenHostLowPower===i.pauseWhenHostLowPower?{}:{pauseWhenHostLowPower:t.pauseWhenHostLowPower},...t.pauseWhenClientLowPower===i.pauseWhenClientLowPower?{}:{pauseWhenClientLowPower:t.pauseWhenClientLowPower},...t.pauseWhenOnBattery===i.pauseWhenOnBattery?{}:{pauseWhenOnBattery:t.pauseWhenOnBattery}}}}function Jn(e){let t={schemaVersion:1,profile:ue,overrides:{}},n=e.backgroundActivity.profile===t.profile&&e.backgroundActivity.baseProfile===void 0&&Object.keys(e.backgroundActivity.overrides).length===0,i=e.backgroundActivityProfile,a=i!==`balanced`||s(e.automaticGitFetchInterval)!==s(He)||s(e.providerHealthRefreshInterval)!==s(r);return Gn(n&&a?{schemaVersion:1,profile:s(e.automaticGitFetchInterval)===s(K(i).automaticGitFetchInterval)&&s(e.providerHealthRefreshInterval)===s(K(i).providerHealthRefreshInterval)?i:`custom`,baseProfile:i,overrides:{...s(e.automaticGitFetchInterval)===s(K(i).automaticGitFetchInterval)?{}:{automaticGitFetchInterval:e.automaticGitFetchInterval},...s(e.providerHealthRefreshInterval)===s(K(i).providerHealthRefreshInterval)?{}:{providerHealthRefreshInterval:e.providerHealthRefreshInterval}}}:e.backgroundActivity)}function Yn(e){let t=Jn(e);return qn({schemaVersion:1,profile:`custom`,baseProfile:t.profile,overrides:{automaticGitFetchInterval:t.automaticGitFetchInterval,providerHealthRefreshInterval:t.providerHealthRefreshInterval,hostPowerMonitorActiveInterval:t.hostPowerMonitorActiveInterval,hostPowerMonitorIdleInterval:t.hostPowerMonitorIdleInterval,idleClientTtl:t.idleClientTtl,pauseWhenHostLocked:t.pauseWhenHostLocked,pauseWhenHostLowPower:t.pauseWhenHostLowPower,pauseWhenClientLowPower:t.pauseWhenClientLowPower,pauseWhenOnBattery:t.pauseWhenOnBattery}})}var Xn=Hn(c);ce(Xn);function Zn(e,t){let n=e.providerInstances[t.instanceId];return n===void 0?i(t.instanceId):u(n)}var Qn=[`codex`,`claudeAgent`,`cursor`,`grok`,`muse`,`pi`,`opencode`,`antigravity`].map(e=>Ge.make(e));function $n(e,t,n){let r=[...Qn.map(e=>[Ue(e),e]),...n?.includeConfiguredInstances===!0?Object.entries(e).flatMap(([e,t])=>Qn.includes(t.driver)?[[Se.make(e),t.driver]]:[]):[]].find(([e,n])=>t(e,n));if(r===void 0)return null;let[i,a]=r,o=n?.defaultModelSelection,s=e[i]?.config;return o?.instanceId===i&&Pe(s?.customModels).some(e=>e.slug===o.model)?o:{instanceId:i,model:ve[a]??Oe[a]??`gpt-6-luna`}}function er(e,t,n){let r=e.sourceControlWriterModelSelection;if(!r||!me(e,n,r.instanceId))return e.textGenerationModelSelection;if(t===void 0)return r;let i=t.find(e=>e.instanceId===r.instanceId);return i?.enabled===!0&&je(i)&&be(i)?r:e.textGenerationModelSelection}function tr(e,t,n){let r=e.reviewGuideModelSelection;if(r&&me(e,n,r.instanceId)){let e=t?.find(e=>e.instanceId===r.instanceId);if(t===void 0||e?.enabled===!0&&je(e)&&be(e))return r}return er(e,t,n)}function nr(e,t={}){return{favorites:e.favorites??t.favorites??[],providerModelPreferences:e.providerModelPreferences??t.providerModelPreferences??{}}}function rr(e,t){let n=e.favorites===null&&(t.favorites?.length??0)>0?t.favorites:void 0,r=e.providerModelPreferences===null&&Object.keys(t.providerModelPreferences??{}).length>0?t.providerModelPreferences:void 0;return n===void 0&&r===void 0?null:{migrateModelPreferences:{...n===void 0?{}:{favorites:n},...r===void 0?{}:{providerModelPreferences:r}}}}var ir=new Set([`continueThreadsAfterServerUpdate`,`sidebarAutoSettleAfterDays`,`sidebarAutoSettleOnMerge`,`autoResumeLimitedThreads`,`snoozeLimitedThreads`,`newWorktreesStartFromOrigin`,`sourceControlWritingStyle`,`textGenerationModelSelection`]);function ar(e){let t={},n={};for(let[r,i]of Object.entries(e))ir.has(r)?t[r]=i:n[r]=i;return{sharedPatch:t,localPatch:n}}function or(e,t,n,r=n,i=!1){let a=e.textGenerationModelSelection?.instanceId??r?.textGenerationModelSelection.instanceId;return!i&&e.textGenerationModelSelection&&(!n||a!==void 0&&(r?.providerInstances[a]?.driver??a)!==(n.providerInstances[a]?.driver??a)||!Zn(n,{...n.textGenerationModelSelection,...e.textGenerationModelSelection}))&&(e=l(e,[`textGenerationModelSelection`])),t?.threadRestartContinuation===!0?e:l(e,[`continueThreadsAfterServerUpdate`])}function sr(e){return e.connection.phase===`connected`&&e.serverConfig?.environment.capabilities.threadAutoSettlement===!0}function cr(e){let t=e.atom(re(Je.pipe(se(e=>De(e.state)))),{initialValue:Ze});return{stateAtom:t,stateValueAtom:m(e=>n(ke(e(t)),()=>Ze)).pipe(g(`relay-environment-discovery-value`)),refresh:Ke(e,{label:`relay-environment-discovery:refresh`,concurrency:{mode:`singleFlight`,key:()=>`refresh`},execute:e=>Je.pipe(ge(e=>e.refresh))})}}var lr=cr(tt);function ur(e,t){return{...t,environmentId:e,label:t.entry.target.label,displayUrl:nt(t.entry),relayManaged:Xe(t.entry)}}function dr(){let e=(0,E.c)(7),t=d(S.catalogValueAtom),n=d(S.networkStatusValueAtom),r=d(D.presentationsAtom),i;e[0]===r?i=e[1]:(i=[...r.entries()].map(fr),e[0]=r,e[1]=i);let a=i,o;return e[2]!==t.isReady||e[3]!==a||e[4]!==n||e[5]!==r?(o={isReady:t.isReady,networkStatus:n,environments:a,presentationById:r},e[2]=t.isReady,e[3]=a,e[4]=n,e[5]=r,e[6]=o):o=e[6],o}function fr(e){let[t,n]=e;return ur(t,n)}function pr(){return d(rt)}function mr(e){let t=(0,E.c)(3),{presentation:n}=jt(e),r;return t[0]!==e||t[1]!==n?(r=e===null||n===null?null:ur(e,n),t[0]=e,t[1]=n,t[2]=r):r=t[2],r}function J(){return mr(pr())}function hr(e){let t=(0,E.c)(2),n=st(e),r;return t[0]===n?r=t[1]:(r=Me(n)?n.value.httpBaseUrl:null,t[0]=n,t[1]=r),r}function gr(){return d(lr.stateValueAtom)}function _r(){return d(kt.environmentIdsAtom)}function vr(){return d(kt.identitiesAtom)}function yr(){return d(kt.pullRequestsSupportedAtom)}var br=`[CLIENT_SETTINGS]`,xr=new Set,Sr=new Set,Cr=te,Y=`pending`,X=null,wr=0,Tr=Promise.resolve(),Er=0;function Dr(){for(let e of xr)e()}function Or(){for(let e of Sr)e()}function Z(){return Cr}function kr(e){Cr=e,Dr()}function Ar(e){Y!==e&&(Y=e,Or())}function jr(e){return xr.add(e),Q().catch(()=>void 0),()=>{xr.delete(e)}}function Mr(){return Y===`ready`}function Nr(){return Y}function Pr(e){return Sr.add(e),Q().catch(()=>void 0),()=>{Sr.delete(e)}}async function Q(){if(Y===`ready`)return;if(X)return X;let e=wr;Ar(Y===`failed`||Y===`retrying`?`retrying`:`pending`);let t=(async()=>{try{let t=await sn().persistence.getClientSettings();if(e!==wr)return;t&&kr({...te,...t}),Ar(`ready`)}catch(t){throw e===wr&&Ar(`failed`),console.error(`${br} hydrate failed`,{operation:`hydrate`,...y(t)}),t}})().finally(()=>{X===t&&(X=null)});return X=t,X}var Fr=e=>sn().persistence.setClientSettings(e);function Ir(e){let t=Tr.then(e);return Tr=t.then(()=>void 0,()=>void 0),t}function Lr(e,t=Fr){let n=Y!==`ready`||Er>0;return n?Er+=1:kr({...Z(),...e}),Ir(async()=>{if(n)try{Y!==`ready`&&await Q(),kr({...Z(),...e})}finally{--Er}await t(Z())}).catch(e=>{console.error(`${br} persist failed`,{operation:`persist`,...y(e)})})}async function Rr(e,t=Fr){return Ir(async()=>{for(Y!==`ready`&&await Q();;){let n=Z(),r=e(n);if(await t(r),Z()===n)return kr(r),r}})}var zr=new Set(pe(c.fields));function Br(e){let t={},n={};for(let[r,i]of Object.entries(e))zr.has(r)?t[r]=i:n[r]=i;return{serverPatch:t,clientPatch:n}}function Vr(){return Z()}function Hr(){return Q()}function Ur(){return(0,T.useSyncExternalStore)(Pr,Mr,Wr)}function Wr(){return!1}function Gr(){return(0,T.useSyncExternalStore)(Pr,Nr,Kr)}function Kr(){return`pending`}function $(){return(0,T.useSyncExternalStore)(jr,Z,qr)}function qr(){return te}function Jr(e,t){return{...t,...e,...nr(e,t)}}var Yr=new Set;function Xr(e,t){let n=(0,E.c)(8),r=$(),i=Ur(),a;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={reportFailure:!1},n[0]=a):a=n[0];let o=lt(x.updateSettings,a),s,c;n[1]!==r||n[2]!==e||n[3]!==i||n[4]!==o||n[5]!==t?(s=()=>{if(!e||!t||!i||Yr.has(e))return;let n=rr(t,r);n&&(Yr.add(e),o({environmentId:e,input:{patch:n}}).finally(()=>Yr.delete(e)))},c=[r,e,i,o,t],n[1]=r,n[2]=e,n[3]=i,n[4]=o,n[5]=t,n[6]=s,n[7]=c):(s=n[6],c=n[7]),(0,T.useEffect)(s,c)}function Zr(e,t){let n=(0,E.c)(6),r=$(),i;n[0]!==r||n[1]!==e?(i=Jr(e,r),n[0]=r,n[1]=e,n[2]=i):i=n[2];let a=i,o;return n[3]!==a||n[4]!==t?(o=t?t(a):a,n[3]=a,n[4]=t,n[5]=o):o=n[5],o}function Qr(e){let t=(0,E.c)(3),n=$(),r;return t[0]!==e||t[1]!==n?(r=e?e(n):n,t[0]=e,t[1]=n,t[2]=r):r=t[2],r}function $r(e){return e.settingsHydrated?e.paletteThemeActive&&!e.paletteThemeAllowsArtwork&&e.mode===`artwork`?`pill`:e.mode:`none`}function ei(){let e=(0,E.c)(7),t=Ur(),n=$().environmentIdentificationMode,{resolvedTheme:r,theme:i,themeHalves:a}=Rn(),o=(0,T.useSyncExternalStore)(ut,wt,ti),s;if(e[0]!==n||e[1]!==o||e[2]!==r||e[3]!==t||e[4]!==i||e[5]!==a){let c=ft(i,a,r),l=St(c);s=$r({mode:n,settingsHydrated:t,paletteThemeActive:o!==null||l!==null,paletteThemeAllowsArtwork:o??ht(c)}),e[0]=n,e[1]=o,e[2]=r,e[3]=t,e[4]=i,e[5]=a,e[6]=s}else s=e[6];return s}function ti(){return null}async function ni(e,t){return(e.favorites===null||e.providerModelPreferences===null)&&await Hr(),{...rr(e,Vr()),...t}}function ri(e){let t=(0,E.c)(6),n;t[0]===e?n=t[1]:(n=e?x.settingsValueAtom(e):ai,t[0]=e,t[1]=n);let r=d(n),i=lt(x.updateSettings,`model preferences update`),a;return t[2]!==e||t[3]!==i||t[4]!==r?(a=async t=>{if(!e||!r)return;let n;try{n=await ni(r,t)}catch{b.add({type:`error`,title:`Model preferences not saved`,description:`Could not load saved model preferences. Try again.`});return}return i({environmentId:e,input:{patch:n}})},t[2]=e,t[3]=i,t[4]=r,t[5]=a):a=t[5],a}function ii(e){let t=(0,T.use)(fe),n=(0,T.useRef)(new Map),r=ri(e);return(0,T.useCallback)(async(i,a)=>{if(!e)return;let o=x.settingsValueAtom(e),s=t.get(o);if(!s)return;if(s.favorites===null)try{await Hr()}catch{b.add({type:`error`,title:`Favorites not saved`,description:`Could not load saved model preferences. Try again.`});return}let c=t.get(o)??s,l=nr(c,Vr()).favorites,u=JSON.stringify([e,i,a]),d=n.current.get(u),f={favorite:!(d&&(d.pending||d.settings.favorites===c.favorites)?d.favorite:l.some(e=>e.provider===i&&e.model===a)),settings:c,pending:!0};n.current.set(u,f);try{let e=await r({setModelFavorites:[{provider:i,model:a,favorite:f.favorite}]});e&&we(e)&&t.get(o)?.favorites===c.favorites&&(f.pending=!1)}finally{f.pending&&n.current.get(u)===f&&(d&&!d.pending&&t.get(o)?.favorites===d.settings.favorites?n.current.set(u,d):n.current.delete(u))}},[e,t,r])}var ai=m(null);function oi(e){let t=(0,E.c)(5),n;t[0]===e?n=t[1]:(n=e?x.settingsValueAtom(e):ai,t[0]=e,t[1]=n);let r=d(n),i=$();Xr(e,r);let a=r??Ne,o;return t[2]!==i||t[3]!==a?(o=nr(a,i),t[2]=i,t[3]=a,t[4]=o):o=t[4],o}function si(e,t){let n=(0,E.c)(2),r;n[0]===e?r=n[1]:(r=x.settingsValueAtom(e),n[0]=e,n[1]=r);let i=d(r);return Xr(e,i),Zr(i??Ne,t)}function ci(e){let t=(0,E.c)(4),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={reportFailure:!1},t[0]=n):n=t[0];let r=lt(x.mutateProviderInstance,n),i;return t[1]!==e||t[2]!==r?(i=(t,n)=>r({environmentId:e,input:{patch:n===void 0?{}:n,providerInstanceMutation:t}}),t[1]=e,t[2]=r,t[3]=i):i=t[3],i}function li(e){let t=J(),n=d(it);return Xr(t?.environmentId??null,t?.serverConfig?.settings??null),Zr(n,e)}var ui=`This setting is saved on a server, and the hosted app is not anchored to one. Change it from the desktop app or from the server's own address.`;function di(){let e=(0,E.c)(2),t=J(),n;return e[0]===t?n=e[1]:(n=t!==null||!et(),e[0]=t,e[1]=n),n}function fi(e){let t=(0,E.c)(3),n=e!==void 0&&e,{environments:r}=dr(),i;return t[0]!==r||t[1]!==n?(i=m(e=>r.filter(sr).flatMap(t=>{let r=e(ct.sessionStateAtom(t.environmentId));if(n&&r._tag===`Initial`)return[t.environmentId];let i=r._tag===`Failure`?null:_(ke(r));return i!==null&&f(i,`settings:write`)?[t.environmentId]:[]})),t[0]=r,t[1]=n,t[2]=i):i=t[2],d(i)}function pi(e){let t=(0,E.c)(10);at(e,ae);let n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={label:`server settings update`,reportFailure:!1},t[0]=n):n=t[0];let r=lt(x.updateSettings,n),{environments:i}=dr(),a;t[1]!==i||t[2]!==r?(a=async e=>{let t=await r(e);if(t._tag===`Failure`&&!qe(t)){let n=i.find(t=>t.environmentId===e.environmentId)?.label??e.environmentId,r=Ye(t);b.add({type:`error`,title:`Setting not saved`,description:`Could not save on ${n}: ${r instanceof Error?r.message:`The save failed. Try reconnecting and saving again.`}`})}return t},t[1]=i,t[2]=r,t[3]=a):a=t[3];let o=a,s=fi(!0),c;return t[4]!==e||t[5]!==i||t[6]!==r||t[7]!==o||t[8]!==s?(c=t=>{let{serverPatch:n,clientPatch:a}=Br(t),c=e===null||de(n).every(t=>ot(e,t));if(Object.keys(n).length>0&&!c&&b.add({type:`warning`,title:`Setting not saved`,description:`This connection lacks permission to change settings on ${i.find(t=>t.environmentId===e)?.label??`the selected environment`}.`}),Object.keys(n).length>0&&c){let{sharedPatch:t,localPatch:a}=ar(n),c=vi;if(Object.keys(a).length>0&&(e?o({environmentId:e,input:{patch:a}}):c()),Object.keys(t).length>0){let n=i.find(t=>t.environmentId===e)?.serverConfig?.settings,a=new Set(s);e&&a.add(e);let o=[],l=[];for(let r of a){let a=i.find(e=>e.environmentId===r),s=or(t,a?.serverConfig?.environment.capabilities,a?.serverConfig?.settings,n,r===e);if(Object.keys(s).length!==0){if(oe.get(ct.sessionStateAtom(r))._tag!==`Initial`&&!de(t).every(e=>ot(r,e))){l.push(a?.label??r);continue}o.push({environmentId:r,input:{patch:s}})}}o.length===0?c(l.length>0?`This connection lacks permission to change settings on ${l.join(`, `)}.`:a.size>0?`Update older servers to save this setting.`:void 0):Promise.all(o.map(async e=>({label:i.find(t=>t.environmentId===e.environmentId)?.label??e.environmentId,result:await r(e)}))).then(mi)}}Object.keys(a).length>0&&Lr(a)},t[4]=e,t[5]=i,t[6]=r,t[7]=o,t[8]=s,t[9]=c):c=t[9],c}function mi(e){let t=e.flatMap(_i);if(t.length===0)return;let n=e.filter(gi).map(hi);b.add({type:`error`,title:n.length>0?`Setting saved on some environments`:`Setting not saved`,description:[...t,...n.length>0?[`Saved on ${n.join(`, `)}.`]:[]].join(`
|
|
2
|
+
`)})}function hi(e){let{label:t}=e;return t}function gi(e){let{result:t}=e;return t._tag===`Success`}function _i(e){let{label:t,result:n}=e;if(n._tag!==`Failure`||qe(n))return[];let r=Ye(n);return[`Could not save on ${t}: ${r instanceof Error?r.message:`The save failed. Try reconnecting and saving again.`}`]}function vi(e){let t=e===void 0?ui:e;return b.add({type:`warning`,title:`Setting not saved`,description:t})}function yi(e){return pi(e)}function bi(){return pi(J()?.environmentId??null)}function xi(){return Si}function Si(e){return Lr(e)}export{Lt as $,gr as A,Hn as B,hr as C,J as D,dr as E,Wn as F,kn as G,ln as H,K as I,on as J,Rn as K,qn as L,$n as M,tr as N,pr as O,er as P,Ft as Q,Yn as R,mr as S,_r as T,un as U,U as V,wn as W,Vt as X,Yt as Y,zt as Z,ii as _,Lr as a,yi as b,Ur as c,oi as d,Rt as et,si as f,di as g,li as h,Jr as i,jt as it,lr as j,yr as k,Gr as l,ci as m,Hr as n,It as nt,Rr as o,Xr as p,sn as q,Vr as r,D as rt,Qr as s,ui as t,Bt as tt,ei as u,xi as v,vr as w,bi as x,ri as y,Jn as z};
|
|
3
|
+
//# sourceMappingURL=useSettings-BCUX_14n.js.map
|
package/dist/client/assets/{useT3ConnectAuthPrompt-CPGDAWRk.js → useT3ConnectAuthPrompt-B1AHMyDF.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=useT3ConnectAuthPrompt-
|
|
1
|
+
import{Mx as e}from"./utils-Cbsb1ks0.js";import{t}from"./env-wK1YYxA8.js";import{i as n}from"./dist-Dc07DWZJ.js";import{t as r}from"./authRedirect-DWE5a_T9.js";var i=e();function a(){let e=(0,i.c)(2),a=n(),o;return e[0]===a?o=e[1]:(o={authPrompt:null,openAuthPrompt:()=>{a.openSignIn(r(window.location.href,t))}},e[0]=a,e[1]=o),o}export{a as t};
|
|
2
|
+
//# sourceMappingURL=useT3ConnectAuthPrompt-B1AHMyDF.js.map
|