@p4code/cli 0.8.22 → 0.8.24
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-CfXLOppT.mjs → binCli-DNod5652.mjs} +747 -492
- package/dist/client/.vite/manifest.json +2255 -2213
- package/dist/client/assets/AlertDialogRoot-Cc8kVCUa.js +2 -0
- package/dist/client/assets/{AnimatedHeight-DcrvwWWb.js → AnimatedHeight-wZzihILs.js} +2 -2
- package/dist/client/assets/{AuthSurfaceShell-CFBHG1UK.js → AuthSurfaceShell-Wwq6fM9A.js} +2 -2
- package/dist/client/assets/{CSPContext-BP4s0CJv.js → CSPContext-BjqtxKhA.js} +2 -2
- package/dist/client/assets/ChatGptUsageButton-8lmdyDiG.js +2 -0
- package/dist/client/assets/{ChatMarkdown-C6I8N1IH.js → ChatMarkdown-Cd3yE4VU.js} +12 -12
- package/dist/client/assets/CheckboxIndicator-CuZi7Ixm.js +2 -0
- package/dist/client/assets/ClippedText-DPgP0ObI.js +2 -0
- package/dist/client/assets/CodexSetupSection.logic-oYzzgIWo.js +2 -0
- package/dist/client/assets/ComboboxClear-zheEdyAa.js +2 -0
- package/dist/client/assets/ComboboxGroupLabel-BxCdL7I3.js +2 -0
- package/dist/client/assets/{CommandBlock-B5S9so33.js → CommandBlock-ByCjpPww.js} +2 -2
- package/dist/client/assets/{ComposerPromptEditor-C7ZRV_6P.js → ComposerPromptEditor-4EkkS1N5.js} +44 -44
- package/dist/client/assets/CompositeRoot-Bg5KGYGp.js +2 -0
- package/dist/client/assets/{ConnectionStatusDot-Bz5Ps6Bm.js → ConnectionStatusDot-Bx8Imvqc.js} +2 -2
- package/dist/client/assets/DesignPageTile-ClF5Va3g.js +2 -0
- package/dist/client/assets/DevicePanel-DWlHQcLW.js +2 -0
- package/dist/client/assets/{DeviceSetup-Br_kHy6n.js → DeviceSetup-Dm9ZbkMC.js} +2 -2
- package/dist/client/assets/DialogTitle-CVP748Gv.js +2 -0
- package/dist/client/assets/{DiffCommentAnnotation-FcSG-wBG.js → DiffCommentAnnotation-Dx-VhoLU.js} +3 -3
- package/dist/client/assets/{DiffFileTree-IIdU6CqP.js → DiffFileTree-BgjyfH71.js} +2 -2
- package/dist/client/assets/DiffPanel-tZN29mdM.js +2 -0
- package/dist/client/assets/{DiffWorkerPoolProvider-C_VbNhAr.js → DiffWorkerPoolProvider-C_yNvh6o.js} +3 -3
- package/dist/client/assets/EmbeddedDesign-DDApp-WI.js +19 -0
- package/dist/client/assets/EmbeddedDesign-DYfQOv0y.css +1 -0
- package/dist/client/assets/{EnvironmentMachineIcon-b_kKEeAf.js → EnvironmentMachineIcon-B2v_GWgB.js} +2 -2
- package/dist/client/assets/{ExpandableText-anFaXhXF.js → ExpandableText-fJVIbCvG.js} +3 -3
- package/dist/client/assets/{FieldControl-w2_zp1DT.js → FieldControl-mq4xNgmP.js} +2 -2
- package/dist/client/assets/{FileDiff-B-9keGlb.js → FileDiff-B_422yEN.js} +2 -2
- package/dist/client/assets/{FilePreviewPanel-C1f_ibuL.js → FilePreviewPanel-B26lXYsA.js} +10 -10
- package/dist/client/assets/{FoldedSettingsSection-gN3w1sSZ.js → FoldedSettingsSection-TLqDB_1b.js} +2 -2
- package/dist/client/assets/{FormContext-BWWAKTFF.js → FormContext-Vtmj_mkP.js} +2 -2
- package/dist/client/assets/{Icons-DzTpHpn1.js → Icons-C0Zjws-3.js} +2 -2
- package/dist/client/assets/Input-B0ah2lnC.js +2 -0
- package/dist/client/assets/{KeybindingsSettings.logic-D8LAdmvB.js → KeybindingsSettings.logic-D-GClV-c.js} +2 -2
- package/dist/client/assets/{NoProjectsHero-CtzChQ7p.js → NoProjectsHero-Bx1X9Us-.js} +2 -2
- package/dist/client/assets/{P4ConnectAccountPages-B3SBsg6B.js → P4ConnectAccountPages-BWvaLOY-.js} +2 -2
- package/dist/client/assets/{P4ConnectSidebarSignIn-DKcaDv93.js → P4ConnectSidebarSignIn-C8z-Gfq5.js} +2 -2
- package/dist/client/assets/PanelLayoutControls-C2deQDB2.js +216 -0
- package/dist/client/assets/{PierreEntryIcon-CjZ8gyJq.js → PierreEntryIcon-Ddl-VPd4.js} +2 -2
- package/dist/client/assets/PopoverHandle-BT83XTq9.js +2 -0
- package/dist/client/assets/PreviewPanel-8NDLwOfI.js +2 -0
- package/dist/client/assets/ProjectDefaultsSettings-DN1GxlYC.js +2 -0
- package/dist/client/assets/{ProjectFavicon-va5UQPLo.js → ProjectFavicon-BDaMxno-.js} +3 -3
- package/dist/client/assets/{ProjectIconPickerDialog-CN2gK_o7.js → ProjectIconPickerDialog-Be5IQyyr.js} +2 -2
- package/dist/client/assets/{ProjectMonogram-B3Dkc8yq.js → ProjectMonogram-BUy_N1of.js} +2 -2
- package/dist/client/assets/{ProviderAuthTerminal-BSIgib7h.js → ProviderAuthTerminal-BFGd236-.js} +2 -2
- package/dist/client/assets/ProviderModelPicker-DMtMvBKn.js +2 -0
- package/dist/client/assets/{ProviderSettingsForm-D6zHGIeN.js → ProviderSettingsForm-D6u9dY73.js} +2 -2
- package/dist/client/assets/PullRequestCodeTab-hXtKZAP9.js +6 -0
- package/dist/client/assets/{ReadOnlySourcePreview-BSCVTdYH.js → ReadOnlySourcePreview-CDLZaWo2.js} +2 -2
- package/dist/client/assets/RenderErrorBoundary-BkcvpgEh.js +2 -0
- package/dist/client/assets/ScheduledTasksSettings-BJyFxVyR.js +4 -0
- package/dist/client/assets/{ScopedSwitch-D3fAHI1-.js → ScopedSwitch-yznbaSh9.js} +2 -2
- package/dist/client/assets/{ScrollAreaCorner-CNzfnpwK.js → ScrollAreaCorner-3gSiyg8H.js} +2 -2
- package/dist/client/assets/{SecretInput-D7hYUoFA.js → SecretInput-itt3KL-b.js} +2 -2
- package/dist/client/assets/SelectScrollUpArrow-D_o_f6Fh.js +2 -0
- package/dist/client/assets/{SettingsPanels-6SOZMWhg.js → SettingsPanels-DdhZ2nXb.js} +7 -7
- package/dist/client/assets/{SettingsPanels.logic-CMErdEeV.js → SettingsPanels.logic-DIuWE5Xf.js} +2 -2
- package/dist/client/assets/{SettingsScopeNotice-CyzbYUPJ.js → SettingsScopeNotice-D8K81IzP.js} +2 -2
- package/dist/client/assets/{ThemeEditorPanel-vZ4MSCBx.js → ThemeEditorPanel-ePX4nwaV.js} +3 -3
- package/dist/client/assets/ThreadTerminalDrawer-5z4y3z0y.js +5 -0
- package/dist/client/assets/TooltipViewport-DJ2VRKCt.js +2 -0
- package/dist/client/assets/{Virtualizer-CoK0zXAG.js → Virtualizer-DEM6HN7-.js} +2 -2
- package/dist/client/assets/{WorkspaceBreadcrumb-qAYKTgm8.js → WorkspaceBreadcrumb-B5ZV6VNj.js} +2 -2
- package/dist/client/assets/{WorkspacePageContainer-D6i--Hwz.js → WorkspacePageContainer-BTN44jG6.js} +2 -2
- package/dist/client/assets/{WorkspacePageHeader-covOFYhv.js → WorkspacePageHeader-BaCxaW-R.js} +2 -2
- package/dist/client/assets/_chat-C0vR23gu.js +45 -0
- package/dist/client/assets/_chat.design-CQ52N70I.js +2 -0
- package/dist/client/assets/{_chat.index-C3PnT6ae.js → _chat.index-SFAYIX_P.js} +2 -2
- package/dist/client/assets/{_chat.new-CxErZ7CC.js → _chat.new-BO6oEisx.js} +3 -3
- package/dist/client/assets/_chat.pull-requests-BfyCJw7Q.js +2 -0
- package/dist/client/assets/{abnfDiagram-VCTEODGH-CWxKS58m.js → abnfDiagram-VCTEODGH-DhiN6SMz.js} +2 -2
- package/dist/client/assets/{alert-DsgAHDNi.js → alert-CdZT7d18.js} +2 -2
- package/dist/client/assets/architecture-7GRP2DOG-Yd6b7qRF.js +1 -0
- package/dist/client/assets/{architectureDiagram-5GKGNRK7-kc6KNP-H.js → architectureDiagram-5GKGNRK7-bs37U5FM.js} +2 -2
- package/dist/client/assets/assets-BU-ex_t8.js +2 -0
- package/dist/client/assets/{blockDiagram-I7D4REHJ-CFJYOAbd.js → blockDiagram-I7D4REHJ-Bz9mN89n.js} +2 -2
- package/dist/client/assets/{browserHistoryStore-DjDw15jq.js → browserHistoryStore-KDG9Uz1t.js} +2 -2
- package/dist/client/assets/{browserLinkTarget-Br8BmA6w.js → browserLinkTarget-DmKK3HY0.js} +2 -2
- package/dist/client/assets/{c4Diagram-7LVT6UL2-Sxaodxxv.js → c4Diagram-7LVT6UL2-CtkHQd_E.js} +2 -2
- package/dist/client/assets/channel-DrCQqhMU.js +2 -0
- package/dist/client/assets/{checkbox-D33R1soh.js → checkbox-Q0bv8RvC.js} +2 -2
- package/dist/client/assets/{chunk-4HAMMTFA-CxocYFD0.js → chunk-4HAMMTFA-BtUnQAH6.js} +2 -2
- package/dist/client/assets/{chunk-75Z2AOVW-CBCO5Noa.js → chunk-75Z2AOVW-CwSe19lZ.js} +2 -2
- package/dist/client/assets/{chunk-DU6HZSFF-CEaklbmE.js → chunk-DU6HZSFF-Bwy7A0TF.js} +2 -2
- package/dist/client/assets/{chunk-F27PBJKO-Iw-0qjF9.js → chunk-F27PBJKO-CVsi2uk3.js} +2 -2
- package/dist/client/assets/{chunk-GMAD6QVW-CbDVrypn.js → chunk-GMAD6QVW-CVzXn5Hv.js} +2 -2
- package/dist/client/assets/{chunk-GVQU2GXP-BEqmpgLD.js → chunk-GVQU2GXP-7pPJVhuz.js} +2 -2
- package/dist/client/assets/{chunk-IMKFNOWR-bgZmQWS5.js → chunk-IMKFNOWR-D-dmx49n.js} +2 -2
- package/dist/client/assets/{chunk-L3NEJ4N5-LW_IXl13.js → chunk-L3NEJ4N5-DEJnMXSk.js} +2 -2
- package/dist/client/assets/{chunk-OSK3NFVY-DvGdSD7J.js → chunk-OSK3NFVY-CBtNmbZ8.js} +2 -2
- package/dist/client/assets/{chunk-P2QGCYS3-BAXEcEik.js → chunk-P2QGCYS3-TNHN3Sve.js} +2 -2
- package/dist/client/assets/{chunk-POPQ4Y6H-yM2kH99r.js → chunk-POPQ4Y6H-1cq1nl-Z.js} +2 -2
- package/dist/client/assets/{chunk-PWAF6VOD-B19ZyrVH.js → chunk-PWAF6VOD-B85KpsBk.js} +2 -2
- package/dist/client/assets/{chunk-SHT3W25Y-BhcwXJOc.js → chunk-SHT3W25Y-3tA2UDk1.js} +2 -2
- package/dist/client/assets/{chunk-SVP7TREG-B9xbRF9R.js → chunk-SVP7TREG-CHzBNDDY.js} +2 -2
- package/dist/client/assets/{chunk-TICWLB2K-D_VEGQbw.js → chunk-TICWLB2K-MeLbkhnz.js} +2 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-MCjIu9oU.js +2 -0
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-MCjIu9oU.js +2 -0
- package/dist/client/assets/{color-picker-D3b0sEoy.js → color-picker-BWZhsiZJ.js} +2 -2
- package/dist/client/assets/{combobox-DzFRsaks.js → combobox-BdGKdc6i.js} +2 -2
- package/dist/client/assets/{command-IDMJ6pXc.js → command-CIj8Rufv.js} +2 -2
- package/dist/client/assets/composer-logic-DyIi6K9e.js +6 -0
- package/dist/client/assets/{composerDraftUploads-Qq0xOGEc.js → composerDraftUploads-BEFyD-t4.js} +2 -2
- package/dist/client/assets/{connect-BTIPE2au.js → connect-BUAMGrjt.js} +2 -2
- package/dist/client/assets/{connect-agent-hbkOBaFx.js → connect-agent-BNwEsc4t.js} +2 -2
- package/dist/client/assets/{cynefin-OW5HDTMX-CWOcHmwk.js → cynefin-OW5HDTMX-DTUXnTov.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-5FMLGOSQ-ksIfZeWS.js → cynefinDiagram-5FMLGOSQ-Cd9_EwZX.js} +2 -2
- package/dist/client/assets/{dagre-GXQ25YYZ-D7qz-Azr.js → dagre-GXQ25YYZ-D0hUgab8.js} +2 -2
- package/dist/client/assets/design-DaqMSnWJ.js +2 -0
- package/dist/client/assets/device-DnfWBPpo.js +2 -0
- package/dist/client/assets/{diagram-S7CK7UJ4-IBhHReDK.js → diagram-S7CK7UJ4-DY-wIVhL.js} +2 -2
- package/dist/client/assets/{diagram-UQ7AKVKN-EX7tFJEV.js → diagram-UQ7AKVKN-CmWAx8wR.js} +2 -2
- package/dist/client/assets/{diagram-VSXAHHWV-BEHOoBER.js → diagram-VSXAHHWV-DvIYORJP.js} +2 -2
- package/dist/client/assets/{diagram-VX7I27RA-Df_ThjhC.js → diagram-VX7I27RA-Dj3l0KCm.js} +2 -2
- package/dist/client/assets/{diagram-Z3DM3KII-DudywHX4.js → diagram-Z3DM3KII-ClP8dtWB.js} +2 -2
- package/dist/client/assets/{dialog-YpQOq7Ug.js → dialog-Cgb4jap2.js} +2 -2
- package/dist/client/assets/{diffRendering-CgLbOp0J.js → diffRendering-BWY0g219.js} +2 -2
- package/dist/client/assets/{discovery-list-CnlrZrDo.js → discovery-list-DXkskf2A.js} +2 -2
- package/dist/client/assets/{dist-usNgCtd_.js → dist-C5JAYxip.js} +5 -5
- package/dist/client/assets/{draft-input-DW6EgVbF.js → draft-input-DQxVE9YJ.js} +2 -2
- package/dist/client/assets/{duoViewer-CgVOZcYe.js → duoViewer-fztyITHM.js} +2 -2
- package/dist/client/assets/{dynamic-C1qIL2Wy.js → dynamic-CnYAeR9T.js} +3 -3
- package/dist/client/assets/{ebnfDiagram-PWID7BFC-DPJg2C3n.js → ebnfDiagram-PWID7BFC-DtbBVfJO.js} +2 -2
- package/dist/client/assets/{embeddedScripts-CAZM4r8Y.js → embeddedScripts-Bf2j7tmA.js} +2 -2
- package/dist/client/assets/{empty-QSN6WiRO.js → empty-DHl8_LXy.js} +2 -2
- package/dist/client/assets/entities-BJgMc8pv.js +2 -0
- package/dist/client/assets/{erDiagram-RLTQ6QDP-BySDEjHG.js → erDiagram-RLTQ6QDP-Dm2mBAGp.js} +2 -2
- package/dist/client/assets/eventmodeling-NTZA5JFV-rDo_pcJr.js +1 -0
- package/dist/client/assets/{fileLinks-ShhGM_AF.js → fileLinks-C9oYzhXv.js} +2 -2
- package/dist/client/assets/{fileTreeExpansion-DZnEBuaB.js → fileTreeExpansion-CpkONCrM.js} +2 -2
- package/dist/client/assets/flowDiagram-HODETNUW-C55XBPww.js +1 -0
- package/dist/client/assets/{ganttDiagram-EL5Y4UJY-CJAhE7we.js → ganttDiagram-EL5Y4UJY-D4UHegQH.js} +2 -2
- package/dist/client/assets/{getDiffFileInput-BxuEGdnM.js → getDiffFileInput-BKRfCrth.js} +2 -2
- package/dist/client/assets/ghostty-write-pty-BWDOU6dy.wasm +0 -0
- package/dist/client/assets/git-compare-CCnx9obs.js +2 -0
- package/dist/client/assets/{gitGraph-4MIJSDKK-BqKoI8Rd.js → gitGraph-4MIJSDKK-BUhEDO22.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-WWUBYQGX-BPFwoaRw.js → gitGraphDiagram-WWUBYQGX-BwJT0OjN.js} +2 -2
- package/dist/client/assets/{guideRunStore-CYD68wqk.js → guideRunStore-DkBR0CPU.js} +2 -2
- package/dist/client/assets/{htmlRender-p6atQGoW.js → htmlRender-BUb_wWp9.js} +2 -2
- package/dist/client/assets/{index-CnQWjeBY.js → index-BYQ1ybfT.js} +3 -3
- package/dist/client/assets/{info-A6RAGUB7-R8j64K2s.js → info-A6RAGUB7-scwAD75p.js} +1 -1
- package/dist/client/assets/{infoDiagram-27XIBGKW-DFqL9n-v.js → infoDiagram-27XIBGKW-BgR5Wn6l.js} +2 -2
- package/dist/client/assets/{input-Df_UyHLk.js → input-D_jxqXLR.js} +2 -2
- package/dist/client/assets/{input-group-CpRPTpIU.js → input-group-BM_USnbh.js} +2 -2
- package/dist/client/assets/{ishikawaDiagram-5VMMS53U-C-786VMl.js → ishikawaDiagram-5VMMS53U-BOnOvOet.js} +2 -2
- package/dist/client/assets/{journeyDiagram-3NMN7TZE-lzAoDD4e.js → journeyDiagram-3NMN7TZE-B1wXWe62.js} +2 -2
- package/dist/client/assets/{kanban-definition-UXKFOSKX-CJDCWAxz.js → kanban-definition-UXKFOSKX-DI-FwQ_D.js} +2 -2
- package/dist/client/assets/{kbd-BWmfbdyt.js → kbd-B2uytHus.js} +2 -2
- package/dist/client/assets/{keybindings-Cwx4RZou.js → keybindings-CqjUKNRx.js} +2 -2
- package/dist/client/assets/{lazyRouteComponent-AWcDof8d.js → lazyRouteComponent-CByGrW41.js} +2 -2
- package/dist/client/assets/{line-BV7EkscB.js → line-c6BqGnEH.js} +2 -2
- package/dist/client/assets/{link-ymnjoepm.js → link-BjP3qTK9.js} +2 -2
- package/dist/client/assets/{linkedPrompt-D1v0zLjD.js → linkedPrompt-DjSidfRe.js} +2 -2
- package/dist/client/assets/main-4dRVuXx2.js +28 -0
- package/dist/client/assets/main-Dwir4BoC.css +2 -0
- package/dist/client/assets/{mediaReference-DjHCSaNZ.js → mediaReference-CWzBBNFa.js} +2 -2
- package/dist/client/assets/mediaSource-CHfRwmOf.js +2 -0
- package/dist/client/assets/{mermaid-parser.core-dhHCExtt.js → mermaid-parser.core-DOOH_cP_.js} +4 -4
- package/dist/client/assets/{mermaid.core-DixI3w-9.js → mermaid.core-9Tao6ZdD.js} +5 -5
- package/dist/client/assets/{mindmap-definition-YA3MSWOX-BHehI_9I.js → mindmap-definition-YA3MSWOX-CqmRXnVH.js} +2 -2
- package/dist/client/assets/number-field-Dj0uYTJQ.js +2 -0
- package/dist/client/assets/{observeResize-uogErzin.js → observeResize-jHx61cGA.js} +2 -2
- package/dist/client/assets/onboarding-BmDFkmWD.js +2 -0
- package/dist/client/assets/openFileInPreview-DF_vZEIK.js +2 -0
- package/dist/client/assets/{p4ProjectFile-B9fwmcbM.js → p4ProjectFile-YfIRB1xP.js} +2 -2
- package/dist/client/assets/{packet-AYTQ26CC-DhFsyjVR.js → packet-AYTQ26CC-B8LkZ5j3.js} +1 -1
- package/dist/client/assets/{pair-DJbA4cVs.js → pair-DSE8uuft.js} +2 -2
- package/dist/client/assets/{pegDiagram-XKGWAZYB-DBKpIU8U.js → pegDiagram-XKGWAZYB-CS17GwTP.js} +2 -2
- package/dist/client/assets/pendingSendStore-CaGsppQi.js +2 -0
- package/dist/client/assets/{phoneViewer-CywOkDco.js → phoneViewer-CYzqv5af.js} +2 -2
- package/dist/client/assets/{pie-WAS4IAKB-cW3as8Lm.js → pie-WAS4IAKB-B0WBcNHW.js} +1 -1
- package/dist/client/assets/{pieDiagram-E7YTZNPT-CuM-4V4_.js → pieDiagram-E7YTZNPT-Bk2IwUHp.js} +2 -2
- package/dist/client/assets/{pierre-icons-Bhwlc2rO.js → pierre-icons-CY4HbMoq.js} +2 -2
- package/dist/client/assets/{popover-2GkuSL2i.js → popover-2XJd3KEJ.js} +2 -2
- package/dist/client/assets/{preview-BnLuRquy.js → preview-8bBtJM5H.js} +2 -2
- package/dist/client/assets/{preview-DWVmLubs.js → preview-B5v36DP8.js} +2 -2
- package/dist/client/assets/{previewMiniPlayerStore-B2cko9-z.js → previewMiniPlayerStore-DMd0mA7a.js} +2 -2
- package/dist/client/assets/primary-BKQnuXrW.js +2 -0
- package/dist/client/assets/primaryCloudLinkState-CJSCsrUH.js +2 -0
- package/dist/client/assets/projectFilesQueryState-DltGYM_H.js +2 -0
- package/dist/client/assets/projectScriptEditor-CZb_iNq3.js +2 -0
- package/dist/client/assets/{providerSkills-OICI2srI.js → providerSkills-Ct4SZ-mY.js} +2 -2
- package/dist/client/assets/{pullRequestDetail.logic-DT8Qo5OA.js → pullRequestDetail.logic-COstpMB1.js} +4 -4
- package/dist/client/assets/{pullRequestIcons-BBzWaymE.js → pullRequestIcons-e8EZW8_y.js} +2 -2
- package/dist/client/assets/{pullRequestReviewStore-DKeU327h.js → pullRequestReviewStore-DJx8EOVl.js} +2 -2
- package/dist/client/assets/pullRequests-ClG7PJe0.js +2 -0
- package/dist/client/assets/{quadrantDiagram-AXDQQJYC-DSJ5VFnE.js → quadrantDiagram-AXDQQJYC-B0vWHjBG.js} +2 -2
- package/dist/client/assets/queries-BWcz-n4a.js +2 -0
- package/dist/client/assets/query-BFP47tsD.js +2 -0
- package/dist/client/assets/{radar-RG4KPBEZ-CfIGvIx_.js → radar-RG4KPBEZ-DmYBXYPt.js} +1 -1
- package/dist/client/assets/radio-group-BNV16qlg.js +2 -0
- package/dist/client/assets/{railroad-74A4TZTK-DB4Av5dd.js → railroad-74A4TZTK-D-4grcyc.js} +1 -1
- package/dist/client/assets/railroad-abnf-HS5TGJTU-6H_zYY6R.js +1 -0
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-DYahAqN_.js +1 -0
- package/dist/client/assets/railroad-peg-WCYAUIDC-CdcgHAXA.js +1 -0
- package/dist/client/assets/{railroadDiagram-O6MQD6OU-cpv2Uyk5.js → railroadDiagram-O6MQD6OU-C7n4Qist.js} +2 -2
- package/dist/client/assets/{renderScheduler-h5pQXGNH.js → renderScheduler-DrstEe4y.js} +2 -2
- package/dist/client/assets/{requirementDiagram-BXWQKSXE-DYwMIoLP.js → requirementDiagram-BXWQKSXE-BYX3uen6.js} +2 -2
- package/dist/client/assets/rightPanelStore-XfAJpUIA.js +2 -0
- package/dist/client/assets/runtime-CArTL2GH.js +2 -0
- package/dist/client/assets/runtime-Cj24N7je.js +6 -0
- package/dist/client/assets/runtimeModeConfig-sQBlbgY3.js +2 -0
- package/dist/client/assets/{sankeyDiagram-P5KCCOFB-BqmXJBYG.js → sankeyDiagram-P5KCCOFB-tAgp-_Ny.js} +2 -2
- package/dist/client/assets/{scheduledTasksSettings.logic-Cg8SF9mr.js → scheduledTasksSettings.logic-zleH3iJ_.js} +3 -3
- package/dist/client/assets/{scroll-area-0-l4q4Pk.js → scroll-area-DORwTFtw.js} +2 -2
- package/dist/client/assets/{select-Dhapqr3j.js → select-Bsag72zE.js} +2 -2
- package/dist/client/assets/{sequenceDiagram-WJ2MYXX4-h3AJox3t.js → sequenceDiagram-WJ2MYXX4-DlvnWAh_.js} +2 -2
- package/dist/client/assets/server-Vynm5NwP.js +2 -0
- package/dist/client/assets/session-DyiiEN5g.js +2 -0
- package/dist/client/assets/session-logic-B8t9Dfk3.js +26 -0
- package/dist/client/assets/{settings-CGf9Ad5Y.js → settings-CjeBlT1I.js} +2 -2
- package/dist/client/assets/settings.appearance-DUvYlE0y.js +2 -0
- package/dist/client/assets/settings.archived-B5WGVqfk.js +2 -0
- package/dist/client/assets/{settings.computer-use-C3SE4DHj.js → settings.computer-use-S7DPGiAx.js} +2 -2
- package/dist/client/assets/settings.connections-DJEqNVad.js +2 -0
- package/dist/client/assets/{settings.data-controls-DjgZVIMy.js → settings.data-controls-Bj1pQ5cL.js} +2 -2
- package/dist/client/assets/{settings.decisions-z3RVOG7-.js → settings.decisions-BufUBcem.js} +2 -2
- package/dist/client/assets/settings.designs-bWCNQca4.js +2 -0
- package/dist/client/assets/settings.diagnostics-Dx_NdxOm.js +2 -0
- package/dist/client/assets/settings.general-BQ6775Hi.js +2 -0
- package/dist/client/assets/settings.integrations-CgxBXw6p.js +2 -0
- package/dist/client/assets/{settings.keybindings-D78CWKIy.js → settings.keybindings-DrBH8mlK.js} +2 -2
- package/dist/client/assets/{settings.open-source-licenses-BhpBR1nY.js → settings.open-source-licenses-B3CGE-JI.js} +2 -2
- package/dist/client/assets/{settings.plugins-d9-jrUr-.js → settings.plugins-BGUgmDOY.js} +4 -4
- package/dist/client/assets/settings.projects-BJ1cpGGM.js +4 -0
- package/dist/client/assets/settings.providers-D2I5mNzk.js +3 -0
- package/dist/client/assets/settings.scheduled-tasks-D8hRaqp8.js +2 -0
- package/dist/client/assets/settings.snap-shot-C2X5_E0H.js +2 -0
- package/dist/client/assets/settings.source-control-Dvac_5mZ.js +2 -0
- package/dist/client/assets/{settings.storage-D6vDu4vG.js → settings.storage-1JdpL3lo.js} +2 -2
- package/dist/client/assets/settingsLayout-CuUCC6iL.js +3 -0
- package/dist/client/assets/{sidebar-DTT0HQ9J.js → sidebar-CV_a9dPF.js} +2 -2
- package/dist/client/assets/{sidebarProjectGrouping-JqsedUb6.js → sidebarProjectGrouping-r5ezKRMx.js} +2 -2
- package/dist/client/assets/{skeleton-D-FcvmF0.js → skeleton-Bq50sEah.js} +2 -2
- package/dist/client/assets/{sourceControl-CrjTZJC-.js → sourceControl-b1QZpCro.js} +2 -2
- package/dist/client/assets/{sourceControlClients-DYQ3gMZ2.js → sourceControlClients-DUvOeR-2.js} +2 -2
- package/dist/client/assets/{spinner-AJeHmaWN.js → spinner-Bzrp5oww.js} +2 -2
- package/dist/client/assets/{standalone-page-Df29sgRU.js → standalone-page-BGqmgLmI.js} +2 -2
- package/dist/client/assets/{stateDiagram-D77RDMKH-C0KiABVq.js → stateDiagram-D77RDMKH-BOgNCEU1.js} +2 -2
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-D00LPIWv.js +2 -0
- package/dist/client/assets/{swimlanes-42K2YHIH-BdAWIkuy.js → swimlanes-42K2YHIH-BZG7hJb7.js} +2 -2
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-vkEAWikD.js +9 -0
- package/dist/client/assets/{terminal-links-BjKL3dH7.js → terminal-links-DHw7nXFF.js} +2 -2
- package/dist/client/assets/{terminalSessions-dkFe-6qM.js → terminalSessions-BHzkH7av.js} +2 -2
- package/dist/client/assets/{textarea-CqADnND1.js → textarea-wDfYVvpo.js} +2 -2
- package/dist/client/assets/{themePalette-Co4xeJnW.js → themePalette-CLR_iiPi.js} +3 -3
- package/dist/client/assets/{timeline-definition-24CTP7MA-CkYp2QT_.js → timeline-definition-24CTP7MA-B5YiUA25.js} +2 -2
- package/dist/client/assets/toast-B3hjhWRf.js +2 -0
- package/dist/client/assets/{toggle-BM8lnQ29.js → toggle-ExdxBJoI.js} +2 -2
- package/dist/client/assets/{toggle-group-DaqkIApY.js → toggle-group-Clz6KDtW.js} +2 -2
- package/dist/client/assets/{tooltip-ngKqo-lA.js → tooltip-D-SzZpgJ.js} +2 -2
- package/dist/client/assets/{treeView-Q6P3EWNA-YWYRI1IG.js → treeView-Q6P3EWNA-Cb4H3xoG.js} +1 -1
- package/dist/client/assets/{treemap-WGGIJYW6-DOqHNCbg.js → treemap-WGGIJYW6-BdpTgSX1.js} +1 -1
- package/dist/client/assets/{uiStateStore-Ddhpg65j.js → uiStateStore-DoJ0IbwQ.js} +3 -3
- package/dist/client/assets/usage-C2lJ6qWL.js +2 -0
- package/dist/client/assets/{usageAccess-AcIxVQqJ.js → usageAccess-ZgmQIiWk.js} +2 -2
- package/dist/client/assets/{usageFormat-BXW38hCK.js → usageFormat-C54RJiV9.js} +2 -2
- package/dist/client/assets/{usageShortcuts-Qkdifm3k.js → usageShortcuts-B3af64g0.js} +2 -2
- package/dist/client/assets/{use-atom-command-BJxdfyHC.js → use-atom-command-D34CFqu3.js} +2 -2
- package/dist/client/assets/{useAriaLabelledBy-C0a8QEEb.js → useAriaLabelledBy-BG5RCb1o.js} +2 -2
- package/dist/client/assets/useHandleNewThread-DtUtwJAY.js +2 -0
- package/dist/client/assets/{useLocation-BQDC59xg.js → useLocation-7uJHNdPS.js} +2 -2
- package/dist/client/assets/useNavigate-DCj963r2.js +2 -0
- package/dist/client/assets/{useNavigateBack-BH5As9D1.js → useNavigateBack-DpCLZais.js} +2 -2
- package/dist/client/assets/{useP4ConnectAuthPrompt-DHu7R38-.js → useP4ConnectAuthPrompt-D4kHnZ3Q.js} +2 -2
- package/dist/client/assets/{useParams-BMa26XZG.js → useParams-Br7l7qPU.js} +2 -2
- package/dist/client/assets/{usePermissionStatus-CUViQRYY.js → usePermissionStatus-SyBwmFSK.js} +2 -2
- package/dist/client/assets/{usePullRequestActions-DGkavykA.js → usePullRequestActions-BypvA9CK.js} +3 -3
- package/dist/client/assets/{useRegisterFieldControl-CosvijuC.js → useRegisterFieldControl-qXOWsCr5.js} +2 -2
- package/dist/client/assets/{useScopedModelAvailability-DOJzIjns.js → useScopedModelAvailability-YXOv7_8D.js} +2 -2
- package/dist/client/assets/useSettings-BcmuuiTp.js +3 -0
- package/dist/client/assets/utils-hgbJ2TVM.js +37 -0
- package/dist/client/assets/vcsRefInvalidation-hPKz3TmL.js +2 -0
- package/dist/client/assets/{vennDiagram-4TSXK5OY-DvpVodA1.js → vennDiagram-4TSXK5OY-D4zvlwrY.js} +2 -2
- package/dist/client/assets/{wardley-WFR3VGLG-CW8u1RAF.js → wardley-WFR3VGLG-Cscy0eBS.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-VM6X3IG4-B34GmEPm.js → wardleyDiagram-VM6X3IG4-od5X9Ppf.js} +2 -2
- package/dist/client/assets/welcome-7UQgfS5x.js +2 -0
- package/dist/client/assets/{xychartDiagram-S5SC5T6Z-Ds5Ioly5.js → xychartDiagram-S5SC5T6Z-KWfWaW4I.js} +2 -2
- package/dist/client/index.html +1 -1
- package/dist/{renderer-ClrN4p2R.mjs → renderer-U6GevbYv.mjs} +2 -2
- package/dist/{runtime-BQydA64s.mjs → runtime-Cui_uQWU.mjs} +88 -5
- package/package.json +1 -1
- package/dist/client/assets/AlertDialogRoot-DCfR_LaK.js +0 -2
- package/dist/client/assets/ChatGptUsageButton-CoiZRjaS.js +0 -2
- package/dist/client/assets/CheckboxIndicator-DcH9EpvK.js +0 -2
- package/dist/client/assets/CodexSetupSection.logic-sXohw-MK.js +0 -2
- package/dist/client/assets/CollapsiblePanel-FknKvWoA.js +0 -2
- package/dist/client/assets/ComboboxClear-RsGmZUJN.js +0 -2
- package/dist/client/assets/ComboboxGroupLabel-DO1lnPnr.js +0 -2
- package/dist/client/assets/CompositeRoot-DDZcK2m0.js +0 -2
- package/dist/client/assets/DevicePanel-DmfTFNuU.js +0 -2
- package/dist/client/assets/DialogTitle-Dr-LJLpq.js +0 -2
- package/dist/client/assets/DiffPanel-CEx8f_mo.js +0 -2
- package/dist/client/assets/EmbeddedDesign-DmybFtYo.css +0 -1
- package/dist/client/assets/EmbeddedDesign-Hba9k7LF.js +0 -19
- package/dist/client/assets/Input-DCMTYdrA.js +0 -2
- package/dist/client/assets/PanelLayoutControls-CCYVBazN.js +0 -216
- package/dist/client/assets/PopoverHandle-1bqR8KHF.js +0 -2
- package/dist/client/assets/PreviewPanel-Kq4mVufQ.js +0 -2
- package/dist/client/assets/ProjectDefaultsSettings-DUCUj4oc.js +0 -2
- package/dist/client/assets/ProviderModelPicker-BrEkNDPF.js +0 -2
- package/dist/client/assets/PullRequestCodeTab-DA-5pWeg.js +0 -6
- package/dist/client/assets/RenderErrorBoundary-yWjbnzsc.js +0 -2
- package/dist/client/assets/ScheduledTasksSettings-B1bSNXTP.js +0 -4
- package/dist/client/assets/SelectScrollUpArrow-kQBsA9rk.js +0 -2
- package/dist/client/assets/ThreadTerminalDrawer-BU_DR6wu.js +0 -5
- package/dist/client/assets/TooltipViewport-CG7gtflQ.js +0 -2
- package/dist/client/assets/_chat-DMXSEEst.js +0 -45
- package/dist/client/assets/_chat.pull-requests-w2FCKIZ8.js +0 -2
- package/dist/client/assets/architecture-7GRP2DOG-BVExhwPq.js +0 -1
- package/dist/client/assets/assets-DW8sK93I.js +0 -2
- package/dist/client/assets/channel-BLnKdGtk.js +0 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-B839piSM.js +0 -2
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-B839piSM.js +0 -2
- package/dist/client/assets/composer-logic-CEsP6SV6.js +0 -6
- package/dist/client/assets/design-B7V20I1i.js +0 -2
- package/dist/client/assets/device-DX-G6J1j.js +0 -2
- package/dist/client/assets/entities-Bj5ceyfn.js +0 -2
- package/dist/client/assets/eventmodeling-NTZA5JFV-CrSSBuUT.js +0 -1
- package/dist/client/assets/flowDiagram-HODETNUW-GdATwCAd.js +0 -1
- package/dist/client/assets/ghostty-write-pty-hgyAvVbe.wasm +0 -0
- package/dist/client/assets/git-compare-DW_c6fci.js +0 -2
- package/dist/client/assets/main-Byysx0nX.css +0 -2
- package/dist/client/assets/main-D8FWUaO_.js +0 -26
- package/dist/client/assets/mediaSource-DrVcMaQl.js +0 -2
- package/dist/client/assets/number-field-BHWzsgFF.js +0 -2
- package/dist/client/assets/onboarding-BkSIwdaJ.js +0 -2
- package/dist/client/assets/openFileInPreview-3vlmqdKv.js +0 -2
- package/dist/client/assets/primary-CKEI970r.js +0 -2
- package/dist/client/assets/primaryCloudLinkState-CwxbxrZn.js +0 -2
- package/dist/client/assets/projectFilesQueryState-45r9sIZp.js +0 -2
- package/dist/client/assets/projectScriptEditor-CI1LZs9V.js +0 -2
- package/dist/client/assets/pullRequests-DLPX2CY-.js +0 -2
- package/dist/client/assets/queries-lVyDrFzk.js +0 -2
- package/dist/client/assets/query-tgXMuDtS.js +0 -2
- package/dist/client/assets/radio-group-CJu78gKo.js +0 -2
- package/dist/client/assets/railroad-abnf-HS5TGJTU-Ce_EhWE2.js +0 -1
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-BWrImE-J.js +0 -1
- package/dist/client/assets/railroad-peg-WCYAUIDC-BydBUlqT.js +0 -1
- package/dist/client/assets/rightPanelStore-Csibei0O.js +0 -2
- package/dist/client/assets/runtime-DATbE5vH.js +0 -6
- package/dist/client/assets/runtime-Dks8Wo5P.js +0 -2
- package/dist/client/assets/runtimeModeConfig-n1vq0Zzd.js +0 -2
- package/dist/client/assets/server-rxH1493J.js +0 -2
- package/dist/client/assets/session-Bgs0dTwK.js +0 -2
- package/dist/client/assets/session-logic-BuYRdtPc.js +0 -26
- package/dist/client/assets/settings.appearance-DV608fbL.js +0 -2
- package/dist/client/assets/settings.archived-Cav4CAd_.js +0 -2
- package/dist/client/assets/settings.connections-C9Kh1b2k.js +0 -2
- package/dist/client/assets/settings.designs-DgLVIZOE.js +0 -2
- package/dist/client/assets/settings.diagnostics-CaXx9YEU.js +0 -2
- package/dist/client/assets/settings.general-BOpvFj1F.js +0 -2
- package/dist/client/assets/settings.integrations-MHjX-SLC.js +0 -2
- package/dist/client/assets/settings.projects-BiDMtruF.js +0 -4
- package/dist/client/assets/settings.providers-BarMZxaG.js +0 -3
- package/dist/client/assets/settings.scheduled-tasks-BA_O1-Fn.js +0 -2
- package/dist/client/assets/settings.snap-shot-Crh49RtQ.js +0 -2
- package/dist/client/assets/settings.source-control-DIrrX9Dt.js +0 -2
- package/dist/client/assets/settingsLayout-BQsOdImg.js +0 -3
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-DlcRyn96.js +0 -2
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-lbxQDJ07.js +0 -9
- package/dist/client/assets/toast-gFAddE-Q.js +0 -2
- package/dist/client/assets/usage-B3PzCXST.js +0 -2
- package/dist/client/assets/useHandleNewThread-BUYzfgdc.js +0 -2
- package/dist/client/assets/useNavigate-BziZQ-Vx.js +0 -2
- package/dist/client/assets/useSettings-B_WzhJqU.js +0 -3
- package/dist/client/assets/utils-BctiQ4Ue.js +0 -37
- package/dist/client/assets/vcsRefInvalidation-cn2N4Xey.js +0 -2
- package/dist/client/assets/welcome-DEFnpzjQ.js +0 -2
|
@@ -3020,6 +3020,10 @@ const ExecutionEnvironmentCapabilities = Struct({
|
|
|
3020
3020
|
threadVisitedTracking: optionalKey(Boolean),
|
|
3021
3021
|
/** Server persists a pull request reference on thread.meta.update. */
|
|
3022
3022
|
threadPullRequestLinking: optionalKey(Boolean),
|
|
3023
|
+
/** Server understands sideChat on thread.create / thread.fork / thread.metadata.update
|
|
3024
|
+
and parentThreadId on thread.create. Older servers would drop the fields and
|
|
3025
|
+
create an ordinary thread, so clients hide side chats instead of sending them. */
|
|
3026
|
+
threadSideChats: optionalKey(Boolean),
|
|
3023
3027
|
/** Server resolves message delivery and model-selection context and validates
|
|
3024
3028
|
identified rollback readiness. Clients retain projection-based command
|
|
3025
3029
|
shaping and validation when this is absent. */
|
|
@@ -12964,6 +12968,11 @@ const OrchestrationV2AppThread = Struct({
|
|
|
12964
12968
|
branchPullRequest: optional(NullOr(ThreadLinkedPullRequest)),
|
|
12965
12969
|
activeProviderThreadId: NullOr(ProviderThreadId),
|
|
12966
12970
|
historyOrigin: optional(OrchestrationV2ThreadHistoryOrigin),
|
|
12971
|
+
/**
|
|
12972
|
+
* Presentation, not lineage: open in the right panel, stay out of the sidebar,
|
|
12973
|
+
* discard on close. How the thread relates to its parent stays in `lineage`.
|
|
12974
|
+
*/
|
|
12975
|
+
sideChat: optional(Boolean),
|
|
12967
12976
|
lineage: OrchestrationV2AppThreadLineage,
|
|
12968
12977
|
forkedFrom: NullOr(Union([
|
|
12969
12978
|
Struct({
|
|
@@ -14401,6 +14410,11 @@ const OrchestrationV2ThreadShell = Struct({
|
|
|
14401
14410
|
designs: optional(ArraySchema(ThreadDesignLink)),
|
|
14402
14411
|
/** Pull request discovered from the thread's current branch. */
|
|
14403
14412
|
branchPullRequest: optional(NullOr(ThreadLinkedPullRequest)),
|
|
14413
|
+
/**
|
|
14414
|
+
* Presentation, not lineage: open in the right panel, stay out of the sidebar,
|
|
14415
|
+
* discard on close. How the thread relates to its parent stays in `lineage`.
|
|
14416
|
+
*/
|
|
14417
|
+
sideChat: optional(Boolean),
|
|
14404
14418
|
lineage: OrchestrationV2AppThreadLineage,
|
|
14405
14419
|
forkedFrom: NullOr(OrchestrationV2AppThread.fields.forkedFrom),
|
|
14406
14420
|
activeProviderThreadId: NullOr(ProviderThreadId),
|
|
@@ -15064,6 +15078,12 @@ const OrchestrationV2Command = Union([
|
|
|
15064
15078
|
interactionMode: ProviderInteractionMode,
|
|
15065
15079
|
branch: NullOr(TrimmedNonEmptyString),
|
|
15066
15080
|
worktreePath: NullOr(TrimmedNonEmptyString),
|
|
15081
|
+
/**
|
|
15082
|
+
* Link the new thread under an existing one without transferring any
|
|
15083
|
+
* context: lineage records the parent but no relationship kind.
|
|
15084
|
+
*/
|
|
15085
|
+
parentThreadId: optional(ThreadId),
|
|
15086
|
+
sideChat: optional(Boolean),
|
|
15067
15087
|
importedNativeThread: optional(Struct({
|
|
15068
15088
|
ref: Struct({
|
|
15069
15089
|
driver: ProviderDriverKind,
|
|
@@ -15086,7 +15106,11 @@ const OrchestrationV2Command = Union([
|
|
|
15086
15106
|
Struct({
|
|
15087
15107
|
type: Literal("thread.delete"),
|
|
15088
15108
|
commandId: CommandId,
|
|
15089
|
-
threadId: ThreadId
|
|
15109
|
+
threadId: ThreadId,
|
|
15110
|
+
/** Delete only while no message or run has landed on the thread. */
|
|
15111
|
+
expectedEmpty: optional(Boolean),
|
|
15112
|
+
/** Delete only while the thread is still a side chat; a promoted one stays. */
|
|
15113
|
+
expectedSideChat: optional(Boolean)
|
|
15090
15114
|
}),
|
|
15091
15115
|
Struct({
|
|
15092
15116
|
type: Literal("thread.settle"),
|
|
@@ -15180,7 +15204,9 @@ const OrchestrationV2Command = Union([
|
|
|
15180
15204
|
expectedEmpty: optional(Boolean),
|
|
15181
15205
|
limitRecovery: optional(NullOr(OrchestrationV2LimitRecoveryUpdate)),
|
|
15182
15206
|
/** Link (object) or unlink (null) a pull request (#8160); absent leaves it unchanged. */
|
|
15183
|
-
linkedPullRequest: optional(NullOr(ThreadLinkedPullRequest))
|
|
15207
|
+
linkedPullRequest: optional(NullOr(ThreadLinkedPullRequest)),
|
|
15208
|
+
/** Promote (false) a side chat to an ordinary thread, or mark one; absent leaves it unchanged. */
|
|
15209
|
+
sideChat: optional(Boolean)
|
|
15184
15210
|
}),
|
|
15185
15211
|
Struct({
|
|
15186
15212
|
type: Literal("thread.pull-request.link"),
|
|
@@ -15445,6 +15471,9 @@ const OrchestrationV2Command = Union([
|
|
|
15445
15471
|
targetThreadId: ThreadId,
|
|
15446
15472
|
sourcePoint: OrchestrationV2ThreadForkSourcePoint,
|
|
15447
15473
|
title: optional(TrimmedNonEmptyString),
|
|
15474
|
+
sideChat: optional(Boolean),
|
|
15475
|
+
/** Overrides the runtime mode the fork would otherwise copy from its source. */
|
|
15476
|
+
runtimeMode: optional(RuntimeMode),
|
|
15448
15477
|
createdAt: optional(DateTimeUtc)
|
|
15449
15478
|
}),
|
|
15450
15479
|
Struct({
|
|
@@ -15776,11 +15805,19 @@ const OrchestrationV2ThreadStreamItem = Union([
|
|
|
15776
15805
|
}),
|
|
15777
15806
|
OrchestrationV2UnknownThreadStreamEvent
|
|
15778
15807
|
]);
|
|
15808
|
+
/**
|
|
15809
|
+
* Why a command was refused, where a client acts on it. A delete sent with
|
|
15810
|
+
* `expectedEmpty` found messages or runs (`thread_not_empty`), or one sent with
|
|
15811
|
+
* `expectedSideChat` found the thread promoted (`thread_not_side_chat`), so the
|
|
15812
|
+
* thread stays.
|
|
15813
|
+
*/
|
|
15814
|
+
const OrchestrationV2DispatchRejectionReason = Literals(["thread_not_empty", "thread_not_side_chat"]);
|
|
15779
15815
|
var OrchestrationV2DispatchCommandError = class extends TaggedError()("OrchestrationV2DispatchCommandError", {
|
|
15780
15816
|
commandId: CommandId,
|
|
15781
15817
|
commandType: String$1,
|
|
15782
15818
|
message: String$1,
|
|
15783
15819
|
detail: optional(String$1),
|
|
15820
|
+
reason: optional(OrchestrationV2DispatchRejectionReason),
|
|
15784
15821
|
cause: optional(Defect())
|
|
15785
15822
|
}) {};
|
|
15786
15823
|
var OrchestrationV2GetThreadProjectionError = class extends TaggedError()("OrchestrationV2GetThreadProjectionError", {
|
|
@@ -19136,6 +19173,7 @@ const THREAD_KEYBINDING_COMMANDS = [
|
|
|
19136
19173
|
"thread.copyReference",
|
|
19137
19174
|
"thread.settle",
|
|
19138
19175
|
"thread.pin",
|
|
19176
|
+
"thread.sideChat",
|
|
19139
19177
|
"thread.undo",
|
|
19140
19178
|
...THREAD_JUMP_KEYBINDING_COMMANDS
|
|
19141
19179
|
];
|
|
@@ -27411,17 +27449,45 @@ const DesignTransferEvent = Union([
|
|
|
27411
27449
|
diagnostics: ArraySchema(DesignDiagnostic)
|
|
27412
27450
|
})
|
|
27413
27451
|
]);
|
|
27452
|
+
/**
|
|
27453
|
+
* One revision: the saves of one agent run (or one burst of other edits),
|
|
27454
|
+
* batched together. `fileHash`, `revision` and `savedAt` describe its latest
|
|
27455
|
+
* save, which is what Restore and Compare use.
|
|
27456
|
+
*/
|
|
27414
27457
|
const DesignRevisionEntry = Struct({
|
|
27415
27458
|
id: String$1,
|
|
27416
27459
|
fileHash: DesignHash,
|
|
27417
27460
|
revision: DesignHash,
|
|
27418
|
-
savedAt: String$1
|
|
27461
|
+
savedAt: String$1,
|
|
27462
|
+
startedAt: String$1,
|
|
27463
|
+
/** Saves batched into this revision. */
|
|
27464
|
+
changes: Number$1,
|
|
27465
|
+
/** What made it: an agent run, other edits, or a restore. */
|
|
27466
|
+
origin: Literals([
|
|
27467
|
+
"agent",
|
|
27468
|
+
"edit",
|
|
27469
|
+
"restore"
|
|
27470
|
+
]),
|
|
27471
|
+
label: optional(String$1)
|
|
27419
27472
|
});
|
|
27420
27473
|
const DesignRevisionRestoreRequest = Struct({
|
|
27421
27474
|
...DesignSubscribeRequest.fields,
|
|
27422
27475
|
revisionId: String$1,
|
|
27423
27476
|
expectedFileHash: DesignHash
|
|
27424
27477
|
});
|
|
27478
|
+
const DesignRevisionRequest = Struct({
|
|
27479
|
+
...DesignSubscribeRequest.fields,
|
|
27480
|
+
revisionId: String$1
|
|
27481
|
+
});
|
|
27482
|
+
/** An empty label clears it. */
|
|
27483
|
+
const DesignRevisionRenameRequest = Struct({
|
|
27484
|
+
...DesignRevisionRequest.fields,
|
|
27485
|
+
label: String$1.check(isMaxLength(80))
|
|
27486
|
+
});
|
|
27487
|
+
const DesignRevisionSource = Struct({
|
|
27488
|
+
source: String$1,
|
|
27489
|
+
fileHash: DesignHash
|
|
27490
|
+
});
|
|
27425
27491
|
const DesignRpcGroup = make(
|
|
27426
27492
|
make$1("design.asset", {
|
|
27427
27493
|
payload: DesignAssetRequest,
|
|
@@ -27438,6 +27504,21 @@ const DesignRpcGroup = make(
|
|
|
27438
27504
|
success: Void,
|
|
27439
27505
|
error: Union([DesignServiceError, EnvironmentAuthorizationError])
|
|
27440
27506
|
}),
|
|
27507
|
+
make$1("design.revisions.read", {
|
|
27508
|
+
payload: DesignRevisionRequest,
|
|
27509
|
+
success: DesignRevisionSource,
|
|
27510
|
+
error: Union([DesignServiceError, EnvironmentAuthorizationError])
|
|
27511
|
+
}),
|
|
27512
|
+
make$1("design.revisions.rename", {
|
|
27513
|
+
payload: DesignRevisionRenameRequest,
|
|
27514
|
+
success: Void,
|
|
27515
|
+
error: Union([DesignServiceError, EnvironmentAuthorizationError])
|
|
27516
|
+
}),
|
|
27517
|
+
make$1("design.revisions.delete", {
|
|
27518
|
+
payload: DesignRevisionRequest,
|
|
27519
|
+
success: Void,
|
|
27520
|
+
error: Union([DesignServiceError, EnvironmentAuthorizationError])
|
|
27521
|
+
}),
|
|
27441
27522
|
make$1("design.transfer", {
|
|
27442
27523
|
payload: DesignTransferRequest,
|
|
27443
27524
|
success: DesignTransferEvent,
|
|
@@ -29025,6 +29106,8 @@ const WsRpcGroup = make(WsServerProbeRpc, WsServerGetConfigRpc, WsServerRefreshP
|
|
|
29025
29106
|
const CLIENT_GUARDED_RPC_SCOPES = {
|
|
29026
29107
|
"design.review": AuthFilesystemWriteScope,
|
|
29027
29108
|
"design.revisions.restore": AuthFilesystemWriteScope,
|
|
29109
|
+
"design.revisions.rename": AuthFilesystemWriteScope,
|
|
29110
|
+
"design.revisions.delete": AuthFilesystemWriteScope,
|
|
29028
29111
|
"design.transfer": AuthFilesystemWriteScope,
|
|
29029
29112
|
"design.documents.delete": AuthFilesystemWriteScope,
|
|
29030
29113
|
[WS_METHODS.serverRunStorageCleanup]: AuthSettingsWriteScope,
|
|
@@ -31183,6 +31266,6 @@ function semanticDiff(before, after) {
|
|
|
31183
31266
|
return changes;
|
|
31184
31267
|
}
|
|
31185
31268
|
//#endregion
|
|
31186
|
-
export { WsMcpRegistryProviderSignOutRpc as $, resolveRegistryEntryEnabled as $a, pullRequestHostOf as $c, uint8Array$1 as $d, getStatusSuccessSchema as $f, BackgroundActivityProfileSelection as $i, serve as $l, AssetWorkspaceContextResolutionError as $n, EnvironmentRequestInvalidError as $o, ContextTransferId as $p, OrchestratorMcpThreadReadResult as $r, OrchestrationV2RuntimeRequest as $s, PreviewAutomationControlReason as $t, setStatus as $u, SelfImproveLabel as A, PreviewClearProfileError as Aa, ProjectReadFileError as Ac, setHeaders$1 as Ad, AuthMcpTokenError as Af, isProviderWorkspaceSnapshotCurrent as Ai, isProviderSendTurnSupportedImageMimeType as Al, remove as Am, PreviewAutomationTabNotFoundError as An, INCOGNITO_BROWSER_PROFILE_ID as Ao, PROVIDER_DISPLAY_NAMES as Ap, ThreadMetadataMcpUpdateResult as Ar, OrchestrationV2ConversationMessage as As, ServerClient as At, TypeId$10 as Au, ComputerUseHostResponse as B, KeybindingsConfigError as Ba, ProviderInteractionMode as Bc, CurrentErrorReporters as Bd, AuthTerminalOperateScope as Bf, DEFAULT_TERMINAL_ID as Bi, getPayloadSchemas as Bl, McpAppRequestError as Bn, EnvironmentAuthInvalidError as Bo, ASSISTANT_CITATION_MAX_TEXT_LENGTH as Bp, OrchestratorMcpListScheduledTasksResult as Br, OrchestrationV2PlanArtifact as Bs, WorktreeMcpStatusResult as Bt, make$12 as Bu, clean as C, resolveProviderInstanceEnabled as Ca, UsageLimitSourceError as Cc, get$1 as Cd, AuthEnvironmentScopes as Cf, ServerProvider as Ci, ChatFileAttachment as Cl, TrimmedString as Cm, PreviewAutomationScrollInput as Cn, DecisionInput as Co, DEFAULT_MODEL_BY_PROVIDER as Cp, AgentAssetId as Cr, OrchestrationV2AppThread as Cs, DesignStatusReceipt as Ct, isPersistedFile as Cu, SelfImproveDecision as D, PREVIEW_STREAM_HOST_SETUP_CLOSE_CODE as Da, ProjectListEntriesError as Dc, put$1 as Dd, AuthMcpApprovalError as Df, environmentThemeFileHasColors as Di, PROVIDER_SEND_TURN_MAX_INPUT_CHARS as Dl, fromInput as Dm, PreviewAutomationSetColorSchemeResult as Dn, resolveDecisionBackend as Do, MUSE_DEFAULT_MODEL as Dp, AgentAssetWriteInput as Dr, OrchestrationV2ContextHandoffJson as Ds, DesignValidateReceipt as Dt, decodeField as Du, toBytes as E, FILL_PREVIEW_VIEWPORT as Ea, ProjectCreatePayload as Ec, prependUrl as Ed, AuthGrantScope as Ef, ServerSelfUpdateError as Ei, PROVIDER_SEND_TURN_MAX_IMAGE_BYTES as El, empty$3 as Em, PreviewAutomationSetColorSchemeInput as En, ThreadDecisionsReadError as Eo, MODEL_SLUG_ALIASES_BY_PROVIDER as Ep, AgentAssetName as Er, OrchestrationV2CheckpointScopeJson as Es, DesignStylesRequest as Et, toPersisted as Eu, COMPUTER_USE_MAX_OUTPUT_CHARS as F, PreviewStreamHostSetup as Fa, ProjectWriteFileError as Fc, HttpClientErrorSchema as Fd, AuthRelayReadScope as Ff, ExternalLauncherUnknownEditorError as Fi, make$3 as Fl, PreviewAutomationUnavailableError as Fn, DesktopBrowserCommand as Fo, isProviderDriverKind as Fp, OrchestratorMcpDelegateTaskResult as Fr, OrchestrationV2DomainEventJson as Fs, getStreamSchemas as Ft, ServeError as Fu, clientRpcRequiredScopes as G, McpRegistryRpcError as Ga, ThreadPullRequestLink as Gc, report as Gd, authScopeResponse as Gf, TerminalNotRunningError as Gi, normalize as Gl, AssetPreviewTypeValidationError as Gn, EnvironmentHttpBadRequestError as Go, CheckpointScopeId as Gp, OrchestratorMcpTaskCancelInput as Gr, OrchestrationV2ProviderSessionJson as Gs, ResourceMonitorEvent as Gt, jsonUnsafe as Gu, ComputerUseOutput as H, ResolvedKeybindingRule as Ha, RuntimeMode as Hc, ignore as Hd, EnvironmentAuthorizationError as Hf, TerminalCwdNotFoundError as Hi, patch as Hl, AssetAttachmentNotFoundError as Hn, EnvironmentAuthenticatedPrincipal as Ho, AuthSessionId as Hp, OrchestratorMcpRequestSecretResult as Hr, OrchestrationV2ProviderGoal as Hs, DesktopHostTelemetryMessage as Ht, file as Hu, ComputerUseError as I, PreviewTabId as Ia, StoredProjectIcon as Ic, InvalidUrlError as Id, AuthRelayWriteScope as If, ExternalLauncherUnsupportedEditorError as Ii, reflect as Il, PreviewAutomationUnsupportedClientError as In, DesktopBrowserEvent as Io, ComposerContextRecord as Ip, OrchestratorMcpDeleteScheduledTaskInput as Ir, OrchestrationV2ExecutionNode as Is, isStreamSchema as It, causeResponse as Iu, WsMcpRegistryProviderSignInCancelRpc as J, McpServerRuntimeState as Ja, PullRequestOperationError as Jc, isHttpBody as Jd, asUint8Array as Jf, TerminalResizeError as Ji, add$1 as Jl, AssetProjectFaviconResolutionError as Jn, EnvironmentHttpForbiddenError as Jo, ClientOs as Jp, OrchestratorMcpThreadInterruptInput as Jr, OrchestrationV2ProviderTurn as Js, PREVIEW_AUTOMATION_V1_OPERATIONS as Jt, redirect as Ju, RpcScopeAuthorization as K, McpServerId as Ka, ThreadPullRequestLinkSource as Kc, layer$2 as Kd, NoContent as Kf, TerminalProviderEnvironmentError as Ki, HttpRouter as Kl, AssetProjectFaviconInspectionError as Kn, EnvironmentHttpCommonError as Ko, ClientConnectionMethod as Kp, OrchestratorMcpTaskCancelResult as Kr, OrchestrationV2ProviderThread as Ks, McpCapabilityUnavailableError as Kt, mergeCookies as Ku, ComputerUseHost as L, PreviewViewportSetting as La, DEFAULT_PROVIDER_INTERACTION_MODE as Lc, StatusCodeError as Ld, AuthSettingsWriteScope as Lf, ExternalLauncherUnsupportedTargetError as Li, del as Ll, PreviewAutomationUploadInput as Ln, DESKTOP_UPDATE_RESTART_MARKER_FILE as Lo, OrchestrationMessageContext as Lp, OrchestratorMcpDeleteScheduledTaskResult as Lr, OrchestrationV2ExecutionNodeJson as Ls, WorktreeMcpFailure as Lt, symbol$1 as Lu, SelfImproveResult as M, PreviewInvalidUrlError as Ma, ProjectSearchContentsError as Mc, make$15 as Md, AuthOrchestrationReadScope as Mf, ExternalLauncherBrowserSpawnError as Mi, isSecurity as Ml, bytes as Mm, PreviewAutomationTargetNotEditableError as Mn, resolveBrowserProfiles as Mo, ProviderInstanceId as Mp, OrchestratorMcpCreateThreadsInput as Mr, OrchestrationV2DispatchCommandError as Ms, isWrapper as Mt, HttpServerError as Mu, COMPUTER_USE_DEFAULT_TIMEOUT_MS as N, PreviewListResult as Na, ProjectSearchEntriesError as Nc, DecodeError as Nd, AuthPreviewOperateScope as Nf, ExternalLauncherCommandNotFoundError as Ni, make$2 as Nl, fromInputUnsafe as Nm, PreviewAutomationTimeoutError as Nn, DesktopAppActivationErrorCode as No, ProviderInstanceMutation as Np, OrchestratorMcpCreateThreadsResult as Nr, OrchestrationV2DispatchCommandResult as Ns, make$1 as Nt, RequestParseError as Nu, SelfImproveError as O, PREVIEW_URL_MAX_LENGTH as Oa, ProjectMutation as Oc, setBody$1 as Od, AuthMcpClientAccess as Of, isProviderAvailable as Oi, PersistChatAttachmentsError as Ol, fromRecordUnsafe as Om, PreviewAutomationSnapshot as On, BUILT_IN_BROWSER_PROFILES as Oo, ModelCapabilities as Op, agentAssetTotalBytes as Or, OrchestrationV2ContextTransfer as Os, DesignValidateRequest as Ot, make$8 as Ou, COMPUTER_USE_JEV_TAKE_CODE as P, PreviewSessionLookupError as Pa, ProjectUpdatePayload as Pc, HttpClientError as Pd, AuthProvidersManageScope as Pf, ExternalLauncherEditorSpawnError as Pi, getSlotParseOptions as Pl, PreviewAutomationTypeInput as Pn, DesktopAppActivationResponse as Po, defaultInstanceIdForDriver as Pp, OrchestratorMcpDelegateTaskInput as Pr, OrchestrationV2DomainEvent as Ps, ClientAbort as Pt, ResponseError as Pu, WsMcpRegistryProviderSignInWaitRpc as Q, mcpProviderSupport as Qa, PullRequestUnavailableError as Qc, text$1 as Qd, getStatusErrorSchema as Qf, BackgroundActivityProfile as Qi, route as Ql, AssetWorkspaceContextNotFoundError as Qn, EnvironmentOperationForbiddenError as Qo, ContextHandoffId as Qp, OrchestratorMcpThreadReadInput as Qr, OrchestrationV2RunStatus as Qs, PreviewAutomationControlInterruptedError as Qt, setHeaders as Qu, ComputerUseHostRegistration as R, KeybindingRule as Ra, DEFAULT_RUNTIME_MODE as Rc, TransportError as Rd, AuthSourceControlWriteScope as Rf, ProviderSetupError as Ri, get as Rl, PreviewAutomationWaitForInput as Rn, DesktopBackendBootstrap as Ro, ReviewCommentContextRecord as Rp, OrchestratorMcpFailure as Rr, OrchestrationV2GetShellSnapshotError as Rs, WorktreeMcpHandoffInput as Rt, toResponse as Ru, anumber as S, resolveProjectProviderInstanceEnabled as Sa, ToolActivityNativeAppReference as Sc, del$1 as Sd, AuthEnvironmentMaintainScope as Sf, EnvironmentThemeId as Si, ChatAttachmentId as Sl, TrimmedNonEmptyString as Sm, PreviewAutomationResultTooLargeError as Sn, DecisionError as So, DEFAULT_MODEL as Sp, AgentAssetFiles as Sr, OrchestrationGetWorkflowScriptError as Ss, DesignSelection as St, TypeId$9 as Su, randomBytes as T, secretSettingsFields as Ta, Project as Tc, post$1 as Td, AuthFilesystemWriteScope as Tf, ServerProviderUpdateError as Ti, PROVIDER_SEND_TURN_MAX_FILE_BYTES as Tl, CurrentRedactedNames as Tm, PreviewAutomationSelectResult as Tn, ThreadDecision as To, DEFAULT_TEXT_GENERATION_MODEL_BY_PROVIDER as Tp, AgentAssetListFilter as Tr, OrchestrationV2CheckpointJson as Ts, DesignStylesReceipt as Tt, makeConfig as Tu, computerUseJevStepCode as U, SCRIPT_RUN_COMMAND_PATTERN as Ua, ThreadLinkedPullRequest as Uc, isIgnored as Ud, ServerAuthSessionMethod as Uf, TerminalCwdStatError as Ui, post as Ul, AssetCreateUrlInput as Un, EnvironmentCloudEndpointUnavailableError as Uo, CheckpointId as Up, OrchestratorMcpScheduleTaskInput as Ur, OrchestrationV2ProviderRetry as Us, DesktopTelemetryControlMessage as Ut, html as Uu, ComputerUseJsInput as V, MODEL_PICKER_JUMP_KEYBINDING_COMMANDS as Va, ProviderUserInputAnswers as Vc, TypeId$17 as Vd, AuthTerminalReadScope as Vf, TerminalCwdNotDirectoryError as Vi, getSuccessSchemas as Vl, ATTACHMENT_UPLOAD_URL_TTL_MS as Vn, EnvironmentAuthenticatedAuth as Vo, AssistantCitation as Vp, OrchestratorMcpRequestSecretInput as Vr, OrchestrationV2ProviderFailure as Vs, UsageReadError as Vt, empty as Vu, CLIENT_GUARDED_RPC_SCOPES as W, THREAD_JUMP_KEYBINDING_COMMANDS as Wa, ThreadPullRequestKey as Wc, layer$1 as Wd, authScopeRequiredResponse as Wf, TerminalHistoryError as Wi, put as Wl, AssetGitHubMediaUrlValidationError as Wn, EnvironmentHttpApi as Wo, CheckpointRef as Wp, OrchestratorMcpScheduleTaskResult as Wr, OrchestrationV2ProviderSession as Ws, ResourceMonitorCommand as Wt, isHttpServerResponse as Wu, WsMcpRegistryProviderSignInStartRpc as X, PluginId as Xa, PullRequestState as Xc, raw$1 as Xd, getResponseEncoding as Xf, TerminalWriteError as Xi, middleware as Xl, AssetWorkspaceAssetInspectionError as Xn, EnvironmentHttpUnauthorizedError as Xo, ClientWebDeployment as Xp, OrchestratorMcpThreadListInput as Xr, OrchestrationV2RunAttemptJson as Xs, PreviewAutomationClickInput as Xt, setBody as Xu, WsMcpRegistryProviderSignInCompleteRpc as Y, McpServerTransport as Ya, PullRequestStack as Yc, jsonUnsafe$1 as Yd, getPayloadEncoding as Yf, TerminalSessionLookupError as Yi, cors as Yl, AssetSigningKeyLoadError as Yn, EnvironmentHttpInternalServerError as Yo, ClientSurface as Yp, OrchestratorMcpThreadInterruptResult as Yr, OrchestrationV2ProviderTurnJson as Ys, PREVIEW_RECORDING_STOP_TIMEOUT_MS as Yt, removeHeader as Yu, WsMcpRegistryProviderSignInStateRpc as Z, RESERVED_MCP_SERVER_NAME as Za, PullRequestSummary as Zc, stream$1 as Zd, getResponseEncodingSchema as Zf, AntigravitySettings as Zi, params as Zl, AssetWorkspaceAssetNotFoundError as Zn, EnvironmentInternalError as Zo, CommandId as Zp, OrchestratorMcpThreadListResult as Zr, OrchestrationV2RunJson as Zs, PreviewAutomationClientDisconnectedError as Zt, setHeader as Zu, sha512 as _, makeBinaryPathSetting as _a, isOrchestrationV2WorkActive as _c, bodyJson as _d, AuthAccessTokenType as _f, GitPullRequestMaterializationError as _i, ModelSelection as _l, RunId as _m, PreviewAutomationRecordingTransferError as _n, LOCAL_DEVICE_HOST_ID as _o, AcpRegistryProbeResult as _p, OrchestrationSearchThreadsInput as _r, toRouterPath as _s, DesignInspectReceipt as _t, schemaCookies as _u, documentContentDigest as a, DEFAULT_BACKGROUND_ACTIVITY_PROFILE as aa, OrchestrationV2StoredEvent as ac, filterStatusOk as ad, BadArgument as af, MIN_SCHEDULED_TASK_INTERVAL_MS as ai, SourceControlProviderKind as al, NodeId as am, PreviewAutomationHoverInput as an, DeviceOperationError as ao, isWithHeadersValue as ap, AttachmentDeleteInput as ar, RelayEnvironmentLinkChallengeResponse as as, Service as at, compression as au, aexists as b, requiredScopesForProjectMutation as ba, orchestrationV2RunWorkStartedAt as bc, bodyText as bd, AuthClientMetadataDeviceType as bf, VcsListRefsResult as bi, OrchestrationGetTurnDiffResult as bl, SecretRef as bm, PreviewAutomationResizeInput as bn, value as bo, ANTIGRAVITY_DEFAULT_MODEL as bp, AGENT_ASSET_TOTAL_MAX_BYTES as br, ORCHESTRATION_V2_WORKSPACE_PREPARATION_FAILURE_CODE as bs, DesignRenderReceipt as bt, toURL as bu, parseDesign as c, GitHubHost as ca, OrchestrationV2ThreadForkSourcePoint as cc, MaxBodySize as cd, isPlatformError as cf, ScheduledTaskWebhookDeliveryId as ci, VcsProcessExitError as cl, PortSchema as cm, PreviewAutomationNavigateInput as cn, DeviceToolCloseInput as co, hasBody as cp, AgentSessionImportProjectNotFoundError as cr, RelayManagedEndpointOrigin as cs, DesignListReceipt as ct, addHeaderAttributes as cu, reviewState as d, ResponseStreamingMode as da, OrchestrationV2ThreadShell as dc, schemaBodyJson as dd, ExecutionEnvironmentDescriptor as df, OrchestrationDispatchCommandError as di, VcsProcessOutputReadError as dl, ProviderSessionId as dm, PreviewAutomationPressInput as dn, DeviceToolOpenInput as do, decodeSchema as dp, AgentSessionSource as dr, RelayManagedEndpointRuntimeConfig as ds, DesignServiceError as dt, requestPreResponseHandlers as du, ClaudeSettings as ea, OrchestrationV2RuntimeRequestJson as ec, stream as ed, urlParams$1 as ef, OrchestratorMcpThreadSendInput as ei, pullRequestProviderRequirement as el, DpopFailureReason as em, PreviewAutomationDialogInput as en, supportsProviderMcpSignIn as eo, getWithHeadersAnnotation as ep, AssetWorkspacePathValidationError as er, EnvironmentResourceNotFoundError as es, WsRpcGroup as et, use as eu, selectLayoutItems as f, ServerSettings as fa, OrchestrationV2TurnItem as fc, acceptJson as fd, ORCHESTRATION_PROTOCOL_HEADER as ff, PullRequestReviewGuide as fi, VcsProcessSpawnError as fl, ProviderThreadId as fm, PreviewAutomationRecordingArtifact as fn, DeviceToolOpenResult as fo, encoder$2 as fp, FilesystemBrowseError as fr, RelayOkResponse as fs, DesignSubscribeRequest as ft, fromHeaders as fu, sha384 as g, isUnconfiguredDefaultInstanceEnabled as ga, isKnownOrchestrationV2EventType as gc, bodyFormData as gd, AuthAccessStreamError as gf, GitManagerError as gi, VcsUnsupportedOperationError as gl, RunAttemptId as gm, PreviewAutomationRecordingTooLargeError as gn, DeviceToolVersions as go, AcpRegistryOperationErrorReason as gp, OrchestrationSearchThreadsError as gr, getParamNames as gs, DesignGuideRequest as gt, TypeId$8 as gu, sha256$1 as h, UsageLimitSourceConfig as ha, autoWorkspaceNoticeMessage as hc, bearerToken as hd, AuthAccessReadScope as hf, GitCommandError as hi, VcsRepositoryDetectionError as hl, RpcClientId as hm, PreviewAutomationRecordingStatus as hn, DeviceToolUnavailableError as ho, AcpRegistryOperationError as hp, PROJECT_FILE_BACKED_SETTINGS as hr, fromApi as hs, DesignGuideReceipt as ht, ParsedSearchParams as hu, diagnostic as i, DEFAULT_AUTOMATIC_GIT_FETCH_INTERVAL as ia, OrchestrationV2StopWorkflowInput as ic, TypeId$13 as id, make$16 as if, OrchestratorMcpUpdateScheduledTaskInput as ii, SourceControlProviderError as il, MessageId as im, PreviewAutomationExecutionError as in, DeviceNotFoundError as io, isWithHeaders as ip, AttachmentCreateUploadUrlResult as ir, RelayCloudMintCredentialProofPayload as is, WORKTREE_SETUP_STAGE_ORDER as it, TracerDisabledWhen as iu, SelfImproveRequest as j, PreviewControlRequiredError as ja, ProjectScript as jc, setUrl as jd, AuthOrchestrationOperateScope as jf, EDITORS as ji, Service$1 as jl, set as jm, PreviewAutomationTabTargetInput as jn, findBrowserProfile as jo, ProviderDriverKind as jp, OrchestratorMcpCapabilitiesResult as jr, OrchestrationV2ConversationMessageJson as js, exitSchema as jt, ClientAbort$1 as ju, SelfImproveEvidence as k, PREVIEW_VIEWPORT_PRESET_IDS as ka, ProjectMutationError as kc, setHeader$1 as kd, AuthMcpRegistrationError as kf, isProviderTextGenerationCapable as ki, getProviderAttachmentLimitError as kl, merge as km, PreviewAutomationStatus as kn, DEFAULT_BROWSER_PROFILE_ID as ko, PREFERRED_DEFAULT_CODEX_MODELS as kp, ThreadMetadataMcpUpdateInput as kr, OrchestrationV2ContextTransferJson as ks, make as kt, Path as ku, patchNode as l, PROJECT_SCOPED_SERVER_SETTING_KEYS as la, OrchestrationV2ThreadLaunchError as lc, TypeId$14 as ld, systemError as lf, ApplicationEventMetadata as li, VcsProcessMissingExitCodeError as ll, PositiveInt as lm, PreviewAutomationNoAvailableHostError as ln, DeviceToolError as lo, Retry as lp, AgentSessionImportSource as lr, RelayManagedEndpointRecoveryRegistrationResponse as ls, DesignListRequest as lt, addUrlAttributes as lu, validateDesign as m, ServerSettingsPatch as ma, OrchestrationWorkflowFileError as mc, basicAuth as md, ThreadEnvMode as mf, PROJECT_CLONE_ERROR_MAX_LENGTH as mi, VcsProcessTimeoutError as ml, RawEventId as mm, PreviewAutomationRecordingDesktopUpdateRequiredError as mn, DeviceToolTargetInput as mo, AcpRegistryListSessionsResult as mp, P4_PROJECT_FILE_NAME as mr, annotations as ms, DesignApplyRequest as mt, HttpServerRequest as mu, canonicalSerialize as n, CompressMode as na, OrchestrationV2SearchThreadInput as nc, uint8Array as nd, FileTypeId as nf, OrchestratorMcpThreadWaitInput as ni, SourceControlCloneRepositoryInput as nl, EventId as nm, PreviewAutomationError as nn, DeviceBootError as no, isStreamSchema$1 as np, AssetWorkspaceRootNormalizationError as nr, RelayApi as ns, SecretRequestError as nt, addressFormattedWith as nu, fileHash as o, DEFAULT_PROVIDER_HEALTH_REFRESH_INTERVAL as oa, OrchestrationV2Subagent as oc, fromWeb as od, PlatformError as of, ScheduledTask as oi, SourceControlRepositoryError as ol, NonNegativeInt as om, PreviewAutomationInvalidSelectorError as on, DevicePlatformAvailability as oo, withHeaders as op, AttachmentUploadSigningKeyError as or, RelayEnvironmentLinkResponse as os, UserInputRankError as ot, isTracerDisabledUnsafe as ou, semanticDiff as p, ServerSettingsError as pa, OrchestrationV2TurnItemJson as pc, appendUrlParams as pd, ORCHESTRATION_PROTOCOL_QUERY_PARAM as pf, PullRequestReviewGuideRun as pi, VcsProcessStdinWriteError as pl, ProviderTurnId as pm, PreviewAutomationRecordingDeadlineExpiredError as pn, DeviceToolScreenshotResult as po, AcpRegistryListProvidersResult as pp, P4ProjectFile as pr, RelayProtectedError as ps, DesignApplyReceipt as pt, toHeaders as pu, WS_METHODS as q, McpServerName as qa, PullRequestLinkedThreadsResult as qc, layerWeak as qd, StreamSse as qf, TerminalProviderInstanceNotFoundError as qi, RouteContext as ql, AssetProjectFaviconNotFoundError as qn, EnvironmentHttpConflictError as qo, ClientDeviceType as qp, OrchestratorMcpTaskStatusInput as qr, OrchestrationV2ProviderThreadJson as qs, PREVIEW_AUTOMATION_SERVER_OPERATIONS as qt, raw as qu, computeLayout as r, DATABASE_COMPACTION_RECOMMENDED_BYTES as ra, OrchestrationV2StopWorkflowError as rc, urlParams as rd, WatchBackend as rf, OrchestratorMcpThreadWaitResult as ri, SourceControlCloneRepositoryResult as rl, IsoDateTime as rm, PreviewAutomationEvaluateInput as rn, DeviceHostUnavailableError as ro, isStreamUint8Array as rp, AttachmentCreateUploadUrlInput as rr, RelayCloudEnvironmentHealthProofPayload as rs, WORKTREE_SETUP_ERROR_MAX_LENGTH as rt, make$6 as ru, isConfinedRelativePath as s, DEFAULT_SERVER_SETTINGS as sa, OrchestrationV2SubagentJson as sc, matchStatus as sd, badArgument as sf, ScheduledTaskError as si, VcsDriverKind as sl, PlanId as sm, PreviewAutomationMalformedResponseError as sn, DevicePlatformUnavailableError as so, allShort as sp, AgentSessionImportProjectChangedError as sr, RelayHookDeliveryProofPayload as ss, DesignHumanApplyRequest as st, tracer as su, buildIndexes as t, CodexSettings as ta, OrchestrationV2SearchThreadError as tc, text as td, FileSystem as tf, OrchestratorMcpThreadSendResult as ti, resolvePullRequestAuthorFilter as tl, EnvironmentId as tm, PreviewAutomationDragInput as tn, DeviceActionUnavailableError as to, isNoContent as tp, AssetWorkspaceResolutionError as tr, EnvironmentScopeRequiredError as ts, WsSubscribeThreadDecisionsRpc as tt, HttpServer as tu, resolveValue as u, ProjectSettingsOverrides as ua, OrchestrationV2ThreadLaunchRequestWorkspaceStrategy as uc, inspect as ud, make$17 as uf, ApplicationProjectEvent as ui, VcsProcessOutputLimitError as ul, ProjectId as um, PreviewAutomationOpenInput as un, DeviceToolListResult as uo, decode as up, AgentSessionScanError as ur, RelayManagedEndpointRecoveryResponse as us, DesignRpcGroup as ut, appendPreResponseHandlerUnsafe as uu, Hash as v, makeProviderSettingsSchema as va, isProviderNativeSubagentThread as vc, bodyJsonUnsafe as vd, AuthAccessWriteScope as vf, TextGenerationError as vi, OrchestrationGetFullThreadDiffError as vl, RuntimeRequestId as vm, PreviewAutomationRemoteUnavailableError as vn, deviceToolInstallMessage as vo, officialAcpRegistryIconUrlForAgentId as vp, OrchestrationSearchThreadsResult as vr, AUTO_WORKSPACE_NOTICE_TITLE as vs, DesignInspectRequest as vt, schemaHeaders as vu, concatBytes as w, secretSetting as wa, OrchestrationProjectShell as wc, make$14 as wd, AuthFilesystemReadScope as wf, ServerProviderCompatibilityStatus as wi, ChatImageAttachment as wl, TurnItemId as wm, PreviewAutomationSelectInput as wn, DecisionResult as wo, DEFAULT_TEXT_GENERATION_MODEL as wp, AgentAssetKind as wr, OrchestrationV2AppThreadJson as ws, DesignStatusRequest as wt, limitsServices as wu, ahash as x, requiredScopesForServerSettingsPatch as xa, ToolActivityIcon as xc, bodyUrlParams as xd, AuthDiagnosticsReadScope as xf, EnvironmentThemeFile as xi, ChatAttachment as xl, ThreadId as xm, PreviewAutomationResizeResult as xn, DECISION_MODELS as xo, CustomModelSetting as xp, AgentAsset as xr, ORCHESTRATION_V2_WS_METHODS as xs, DesignRenderRequest as xt, MultipartError as xu, abytes as y, providerInstanceConfigEnabledFlag as ya, latestProviderTurnForAttempt as yc, bodyStream as yd, AuthAdministrativeScopes as yf, VcsListRefsInput as yi, OrchestrationGetTurnDiffError as yl, ScheduledTaskId as ym, PreviewAutomationRequestQueueClosedError as yn, symbol as yo, resolveOfficialAcpRegistryIconUrl as yp, OrchestrationThreadSearchSource as yr, AUTO_WORKSPACE_UNDECIDED_REASON as ys, DesignLibraryManifest as yt, schemaSearchParams as yu, ComputerUseHostReport as z, KeybindingsConfig as za, ProviderApprovalDecision as zc, isHttpClientError as zd, AuthStandardClientScopes as zf, ProviderUploadFeedbackError as zi, getErrorSchemas as zl, SERVER_BROWSER_AUTOMATION_CLIENT_ID as zn, RelayClientInstallFailedError as zo, ASSISTANT_CITATION_MAX_COMMENT_LENGTH as zp, OrchestratorMcpListScheduledTasksInput as zr, OrchestrationV2GetThreadProjectionError as zs, WorktreeMcpHandoffResult as zt, HttpPlatform as zu };
|
|
31269
|
+
export { WsMcpRegistryProviderSignOutRpc as $, resolveRegistryEntryEnabled as $a, PullRequestUnavailableError as $c, text$1 as $d, getStatusErrorSchema as $f, BackgroundActivityProfileSelection as $i, route as $l, AssetWorkspaceContextResolutionError as $n, EnvironmentRequestInvalidError as $o, ContextHandoffId as $p, OrchestratorMcpThreadReadResult as $r, OrchestrationV2RunStatus as $s, PreviewAutomationControlReason as $t, setHeaders as $u, SelfImproveLabel as A, PreviewClearProfileError as Aa, ProjectMutationError as Ac, setHeader$1 as Ad, AuthMcpRegistrationError as Af, isProviderWorkspaceSnapshotCurrent as Ai, getProviderAttachmentLimitError as Al, merge as Am, PreviewAutomationTabNotFoundError as An, INCOGNITO_BROWSER_PROFILE_ID as Ao, PREFERRED_DEFAULT_CODEX_MODELS as Ap, ThreadMetadataMcpUpdateResult as Ar, OrchestrationV2ConversationMessage as As, ServerClient as At, Path as Au, ComputerUseHostResponse as B, KeybindingsConfigError as Ba, ProviderApprovalDecision as Bc, isHttpClientError as Bd, AuthStandardClientScopes as Bf, DEFAULT_TERMINAL_ID as Bi, getErrorSchemas as Bl, McpAppRequestError as Bn, EnvironmentAuthInvalidError as Bo, ASSISTANT_CITATION_MAX_COMMENT_LENGTH as Bp, OrchestratorMcpListScheduledTasksResult as Br, OrchestrationV2GetThreadProjectionError as Bs, WorktreeMcpStatusResult as Bt, HttpPlatform as Bu, clean as C, resolveProviderInstanceEnabled as Ca, ToolActivityNativeAppReference as Cc, del$1 as Cd, AuthEnvironmentMaintainScope as Cf, ServerProvider as Ci, ChatAttachmentId as Cl, TrimmedNonEmptyString as Cm, PreviewAutomationScrollInput as Cn, DecisionInput as Co, DEFAULT_MODEL as Cp, AgentAssetId as Cr, OrchestrationV2AppThread as Cs, DesignStatusReceipt as Ct, TypeId$9 as Cu, SelfImproveDecision as D, PREVIEW_STREAM_HOST_SETUP_CLOSE_CODE as Da, ProjectCreatePayload as Dc, prependUrl as Dd, AuthGrantScope as Df, environmentThemeFileHasColors as Di, PROVIDER_SEND_TURN_MAX_IMAGE_BYTES as Dl, empty$3 as Dm, PreviewAutomationSetColorSchemeResult as Dn, resolveDecisionBackend as Do, MODEL_SLUG_ALIASES_BY_PROVIDER as Dp, AgentAssetWriteInput as Dr, OrchestrationV2ContextHandoffJson as Ds, DesignValidateReceipt as Dt, toPersisted as Du, toBytes as E, FILL_PREVIEW_VIEWPORT as Ea, Project as Ec, post$1 as Ed, AuthFilesystemWriteScope as Ef, ServerSelfUpdateError as Ei, PROVIDER_SEND_TURN_MAX_FILE_BYTES as El, CurrentRedactedNames as Em, PreviewAutomationSetColorSchemeInput as En, ThreadDecisionsReadError as Eo, DEFAULT_TEXT_GENERATION_MODEL_BY_PROVIDER as Ep, AgentAssetName as Er, OrchestrationV2CheckpointScopeJson as Es, DesignStylesRequest as Et, makeConfig as Eu, COMPUTER_USE_MAX_OUTPUT_CHARS as F, PreviewStreamHostSetup as Fa, ProjectUpdatePayload as Fc, HttpClientError as Fd, AuthProvidersManageScope as Ff, ExternalLauncherUnknownEditorError as Fi, getSlotParseOptions as Fl, PreviewAutomationUnavailableError as Fn, DesktopBrowserCommand as Fo, defaultInstanceIdForDriver as Fp, OrchestratorMcpDelegateTaskResult as Fr, OrchestrationV2DomainEvent as Fs, getStreamSchemas as Ft, ResponseError as Fu, clientRpcRequiredScopes as G, McpRegistryRpcError as Ga, ThreadPullRequestKey as Gc, layer$1 as Gd, authScopeRequiredResponse as Gf, TerminalNotRunningError as Gi, put as Gl, AssetPreviewTypeValidationError as Gn, EnvironmentHttpBadRequestError as Go, CheckpointRef as Gp, OrchestratorMcpTaskCancelInput as Gr, OrchestrationV2ProviderSession as Gs, ResourceMonitorEvent as Gt, isHttpServerResponse as Gu, ComputerUseOutput as H, ResolvedKeybindingRule as Ha, ProviderUserInputAnswers as Hc, TypeId$17 as Hd, AuthTerminalReadScope as Hf, TerminalCwdNotFoundError as Hi, getSuccessSchemas as Hl, AssetAttachmentNotFoundError as Hn, EnvironmentAuthenticatedPrincipal as Ho, AssistantCitation as Hp, OrchestratorMcpRequestSecretResult as Hr, OrchestrationV2ProviderFailure as Hs, DesktopHostTelemetryMessage as Ht, empty as Hu, ComputerUseError as I, PreviewTabId as Ia, ProjectWriteFileError as Ic, HttpClientErrorSchema as Id, AuthRelayReadScope as If, ExternalLauncherUnsupportedEditorError as Ii, make$3 as Il, PreviewAutomationUnsupportedClientError as In, DesktopBrowserEvent as Io, isProviderDriverKind as Ip, OrchestratorMcpDeleteScheduledTaskInput as Ir, OrchestrationV2DomainEventJson as Is, isStreamSchema as It, ServeError as Iu, WsMcpRegistryProviderSignInCancelRpc as J, McpServerRuntimeState as Ja, PullRequestLinkedThreadsResult as Jc, layerWeak as Jd, StreamSse as Jf, TerminalResizeError as Ji, RouteContext as Jl, AssetProjectFaviconResolutionError as Jn, EnvironmentHttpForbiddenError as Jo, ClientDeviceType as Jp, OrchestratorMcpThreadInterruptInput as Jr, OrchestrationV2ProviderThreadJson as Js, PREVIEW_AUTOMATION_V1_OPERATIONS as Jt, raw as Ju, RpcScopeAuthorization as K, McpServerId as Ka, ThreadPullRequestLink as Kc, report as Kd, authScopeResponse as Kf, TerminalProviderEnvironmentError as Ki, normalize as Kl, AssetProjectFaviconInspectionError as Kn, EnvironmentHttpCommonError as Ko, CheckpointScopeId as Kp, OrchestratorMcpTaskCancelResult as Kr, OrchestrationV2ProviderSessionJson as Ks, McpCapabilityUnavailableError as Kt, jsonUnsafe as Ku, ComputerUseHost as L, PreviewViewportSetting as La, StoredProjectIcon as Lc, InvalidUrlError as Ld, AuthRelayWriteScope as Lf, ExternalLauncherUnsupportedTargetError as Li, reflect as Ll, PreviewAutomationUploadInput as Ln, DESKTOP_UPDATE_RESTART_MARKER_FILE as Lo, ComposerContextRecord as Lp, OrchestratorMcpDeleteScheduledTaskResult as Lr, OrchestrationV2ExecutionNode as Ls, WorktreeMcpFailure as Lt, causeResponse as Lu, SelfImproveResult as M, PreviewInvalidUrlError as Ma, ProjectScript as Mc, setUrl as Md, AuthOrchestrationOperateScope as Mf, ExternalLauncherBrowserSpawnError as Mi, Service$1 as Ml, set as Mm, PreviewAutomationTargetNotEditableError as Mn, resolveBrowserProfiles as Mo, ProviderDriverKind as Mp, OrchestratorMcpCreateThreadsInput as Mr, OrchestrationV2DispatchCommandError as Ms, isWrapper as Mt, ClientAbort$1 as Mu, COMPUTER_USE_DEFAULT_TIMEOUT_MS as N, PreviewListResult as Na, ProjectSearchContentsError as Nc, make$15 as Nd, AuthOrchestrationReadScope as Nf, ExternalLauncherCommandNotFoundError as Ni, isSecurity as Nl, bytes as Nm, PreviewAutomationTimeoutError as Nn, DesktopAppActivationErrorCode as No, ProviderInstanceId as Np, OrchestratorMcpCreateThreadsResult as Nr, OrchestrationV2DispatchCommandResult as Ns, make$1 as Nt, HttpServerError as Nu, SelfImproveError as O, PREVIEW_URL_MAX_LENGTH as Oa, ProjectListEntriesError as Oc, put$1 as Od, AuthMcpApprovalError as Of, isProviderAvailable as Oi, PROVIDER_SEND_TURN_MAX_INPUT_CHARS as Ol, fromInput as Om, PreviewAutomationSnapshot as On, BUILT_IN_BROWSER_PROFILES as Oo, MUSE_DEFAULT_MODEL as Op, agentAssetTotalBytes as Or, OrchestrationV2ContextTransfer as Os, DesignValidateRequest as Ot, decodeField as Ou, COMPUTER_USE_JEV_TAKE_CODE as P, PreviewSessionLookupError as Pa, ProjectSearchEntriesError as Pc, DecodeError as Pd, AuthPreviewOperateScope as Pf, ExternalLauncherEditorSpawnError as Pi, make$2 as Pl, fromInputUnsafe as Pm, PreviewAutomationTypeInput as Pn, DesktopAppActivationResponse as Po, ProviderInstanceMutation as Pp, OrchestratorMcpDelegateTaskInput as Pr, OrchestrationV2DispatchRejectionReason as Ps, ClientAbort as Pt, RequestParseError as Pu, WsMcpRegistryProviderSignInWaitRpc as Q, mcpProviderSupport as Qa, PullRequestSummary as Qc, stream$1 as Qd, getResponseEncodingSchema as Qf, BackgroundActivityProfile as Qi, params as Ql, AssetWorkspaceContextNotFoundError as Qn, EnvironmentOperationForbiddenError as Qo, CommandId as Qp, OrchestratorMcpThreadReadInput as Qr, OrchestrationV2RunJson as Qs, PreviewAutomationControlInterruptedError as Qt, setHeader as Qu, ComputerUseHostRegistration as R, KeybindingRule as Ra, DEFAULT_PROVIDER_INTERACTION_MODE as Rc, StatusCodeError as Rd, AuthSettingsWriteScope as Rf, ProviderSetupError as Ri, del as Rl, PreviewAutomationWaitForInput as Rn, DesktopBackendBootstrap as Ro, OrchestrationMessageContext as Rp, OrchestratorMcpFailure as Rr, OrchestrationV2ExecutionNodeJson as Rs, WorktreeMcpHandoffInput as Rt, symbol$1 as Ru, anumber as S, resolveProjectProviderInstanceEnabled as Sa, ToolActivityIcon as Sc, bodyUrlParams as Sd, AuthDiagnosticsReadScope as Sf, EnvironmentThemeId as Si, ChatAttachment as Sl, ThreadId as Sm, PreviewAutomationResultTooLargeError as Sn, DecisionError as So, CustomModelSetting as Sp, AgentAssetFiles as Sr, OrchestrationGetWorkflowScriptError as Ss, DesignSelection as St, MultipartError as Su, randomBytes as T, secretSettingsFields as Ta, OrchestrationProjectShell as Tc, make$14 as Td, AuthFilesystemReadScope as Tf, ServerProviderUpdateError as Ti, ChatImageAttachment as Tl, TurnItemId as Tm, PreviewAutomationSelectResult as Tn, ThreadDecision as To, DEFAULT_TEXT_GENERATION_MODEL as Tp, AgentAssetListFilter as Tr, OrchestrationV2CheckpointJson as Ts, DesignStylesReceipt as Tt, limitsServices as Tu, computerUseJevStepCode as U, SCRIPT_RUN_COMMAND_PATTERN as Ua, RuntimeMode as Uc, ignore as Ud, EnvironmentAuthorizationError as Uf, TerminalCwdStatError as Ui, patch as Ul, AssetCreateUrlInput as Un, EnvironmentCloudEndpointUnavailableError as Uo, AuthSessionId as Up, OrchestratorMcpScheduleTaskInput as Ur, OrchestrationV2ProviderGoal as Us, DesktopTelemetryControlMessage as Ut, file as Uu, ComputerUseJsInput as V, MODEL_PICKER_JUMP_KEYBINDING_COMMANDS as Va, ProviderInteractionMode as Vc, CurrentErrorReporters as Vd, AuthTerminalOperateScope as Vf, TerminalCwdNotDirectoryError as Vi, getPayloadSchemas as Vl, ATTACHMENT_UPLOAD_URL_TTL_MS as Vn, EnvironmentAuthenticatedAuth as Vo, ASSISTANT_CITATION_MAX_TEXT_LENGTH as Vp, OrchestratorMcpRequestSecretInput as Vr, OrchestrationV2PlanArtifact as Vs, UsageReadError as Vt, make$12 as Vu, CLIENT_GUARDED_RPC_SCOPES as W, THREAD_JUMP_KEYBINDING_COMMANDS as Wa, ThreadLinkedPullRequest as Wc, isIgnored as Wd, ServerAuthSessionMethod as Wf, TerminalHistoryError as Wi, post as Wl, AssetGitHubMediaUrlValidationError as Wn, EnvironmentHttpApi as Wo, CheckpointId as Wp, OrchestratorMcpScheduleTaskResult as Wr, OrchestrationV2ProviderRetry as Ws, ResourceMonitorCommand as Wt, html as Wu, WsMcpRegistryProviderSignInStartRpc as X, PluginId as Xa, PullRequestStack as Xc, jsonUnsafe$1 as Xd, getPayloadEncoding as Xf, TerminalWriteError as Xi, cors as Xl, AssetWorkspaceAssetInspectionError as Xn, EnvironmentHttpUnauthorizedError as Xo, ClientSurface as Xp, OrchestratorMcpThreadListInput as Xr, OrchestrationV2ProviderTurnJson as Xs, PreviewAutomationClickInput as Xt, removeHeader as Xu, WsMcpRegistryProviderSignInCompleteRpc as Y, McpServerTransport as Ya, PullRequestOperationError as Yc, isHttpBody as Yd, asUint8Array as Yf, TerminalSessionLookupError as Yi, add$1 as Yl, AssetSigningKeyLoadError as Yn, EnvironmentHttpInternalServerError as Yo, ClientOs as Yp, OrchestratorMcpThreadInterruptResult as Yr, OrchestrationV2ProviderTurn as Ys, PREVIEW_RECORDING_STOP_TIMEOUT_MS as Yt, redirect as Yu, WsMcpRegistryProviderSignInStateRpc as Z, RESERVED_MCP_SERVER_NAME as Za, PullRequestState as Zc, raw$1 as Zd, getResponseEncoding as Zf, AntigravitySettings as Zi, middleware as Zl, AssetWorkspaceAssetNotFoundError as Zn, EnvironmentInternalError as Zo, ClientWebDeployment as Zp, OrchestratorMcpThreadListResult as Zr, OrchestrationV2RunAttemptJson as Zs, PreviewAutomationClientDisconnectedError as Zt, setBody as Zu, sha512 as _, makeBinaryPathSetting as _a, isKnownOrchestrationV2EventType as _c, bodyFormData as _d, AuthAccessStreamError as _f, GitPullRequestMaterializationError as _i, VcsUnsupportedOperationError as _l, RunAttemptId as _m, PreviewAutomationRecordingTransferError as _n, LOCAL_DEVICE_HOST_ID as _o, AcpRegistryOperationErrorReason as _p, OrchestrationSearchThreadsInput as _r, toRouterPath as _s, DesignInspectReceipt as _t, TypeId$8 as _u, documentContentDigest as a, DEFAULT_BACKGROUND_ACTIVITY_PROFILE as aa, OrchestrationV2StopWorkflowInput as ac, TypeId$13 as ad, make$16 as af, MIN_SCHEDULED_TASK_INTERVAL_MS as ai, SourceControlProviderError as al, MessageId as am, PreviewAutomationHoverInput as an, DeviceOperationError as ao, isWithHeaders as ap, AttachmentDeleteInput as ar, RelayEnvironmentLinkChallengeResponse as as, Service as at, TracerDisabledWhen as au, aexists as b, requiredScopesForProjectMutation as ba, latestProviderTurnForAttempt as bc, bodyStream as bd, AuthAdministrativeScopes as bf, VcsListRefsResult as bi, OrchestrationGetTurnDiffError as bl, ScheduledTaskId as bm, PreviewAutomationResizeInput as bn, value as bo, resolveOfficialAcpRegistryIconUrl as bp, AGENT_ASSET_TOTAL_MAX_BYTES as br, ORCHESTRATION_V2_WORKSPACE_PREPARATION_FAILURE_CODE as bs, DesignRenderReceipt as bt, schemaSearchParams as bu, parseDesign as c, GitHubHost as ca, OrchestrationV2SubagentJson as cc, matchStatus as cd, badArgument as cf, ScheduledTaskWebhookDeliveryId as ci, VcsDriverKind as cl, PlanId as cm, PreviewAutomationNavigateInput as cn, DeviceToolCloseInput as co, allShort as cp, AgentSessionImportProjectNotFoundError as cr, RelayManagedEndpointOrigin as cs, DesignListReceipt as ct, tracer as cu, reviewState as d, ResponseStreamingMode as da, OrchestrationV2ThreadLaunchRequestWorkspaceStrategy as dc, inspect as dd, make$17 as df, OrchestrationDispatchCommandError as di, VcsProcessOutputLimitError as dl, ProjectId as dm, PreviewAutomationPressInput as dn, DeviceToolOpenInput as do, decode as dp, AgentSessionSource as dr, RelayManagedEndpointRuntimeConfig as ds, DesignServiceError as dt, appendPreResponseHandlerUnsafe as du, ClaudeSettings as ea, OrchestrationV2RuntimeRequest as ec, setStatus as ed, uint8Array$1 as ef, OrchestratorMcpThreadSendInput as ei, pullRequestHostOf as el, ContextTransferId as em, PreviewAutomationDialogInput as en, supportsProviderMcpSignIn as eo, getStatusSuccessSchema as ep, AssetWorkspacePathValidationError as er, EnvironmentResourceNotFoundError as es, WsRpcGroup as et, serve as eu, selectLayoutItems as f, ServerSettings as fa, OrchestrationV2ThreadShell as fc, schemaBodyJson as fd, ExecutionEnvironmentDescriptor as ff, PullRequestReviewGuide as fi, VcsProcessOutputReadError as fl, ProviderSessionId as fm, PreviewAutomationRecordingArtifact as fn, DeviceToolOpenResult as fo, decodeSchema as fp, FilesystemBrowseError as fr, RelayOkResponse as fs, DesignSubscribeRequest as ft, requestPreResponseHandlers as fu, sha384 as g, isUnconfiguredDefaultInstanceEnabled as ga, autoWorkspaceNoticeMessage as gc, bearerToken as gd, AuthAccessReadScope as gf, GitManagerError as gi, VcsRepositoryDetectionError as gl, RpcClientId as gm, PreviewAutomationRecordingTooLargeError as gn, DeviceToolVersions as go, AcpRegistryOperationError as gp, OrchestrationSearchThreadsError as gr, getParamNames as gs, DesignGuideRequest as gt, ParsedSearchParams as gu, sha256$1 as h, UsageLimitSourceConfig as ha, OrchestrationWorkflowFileError as hc, basicAuth as hd, ThreadEnvMode as hf, GitCommandError as hi, VcsProcessTimeoutError as hl, RawEventId as hm, PreviewAutomationRecordingStatus as hn, DeviceToolUnavailableError as ho, AcpRegistryListSessionsResult as hp, PROJECT_FILE_BACKED_SETTINGS as hr, fromApi as hs, DesignGuideReceipt as ht, HttpServerRequest as hu, diagnostic as i, DEFAULT_AUTOMATIC_GIT_FETCH_INTERVAL as ia, OrchestrationV2StopWorkflowError as ic, urlParams as id, WatchBackend as if, OrchestratorMcpUpdateScheduledTaskInput as ii, SourceControlCloneRepositoryResult as il, IsoDateTime as im, PreviewAutomationExecutionError as in, DeviceNotFoundError as io, isStreamUint8Array as ip, AttachmentCreateUploadUrlResult as ir, RelayCloudMintCredentialProofPayload as is, WORKTREE_SETUP_STAGE_ORDER as it, make$6 as iu, SelfImproveRequest as j, PreviewControlRequiredError as ja, ProjectReadFileError as jc, setHeaders$1 as jd, AuthMcpTokenError as jf, EDITORS as ji, isProviderSendTurnSupportedImageMimeType as jl, remove as jm, PreviewAutomationTabTargetInput as jn, findBrowserProfile as jo, PROVIDER_DISPLAY_NAMES as jp, OrchestratorMcpCapabilitiesResult as jr, OrchestrationV2ConversationMessageJson as js, exitSchema as jt, TypeId$10 as ju, SelfImproveEvidence as k, PREVIEW_VIEWPORT_PRESET_IDS as ka, ProjectMutation as kc, setBody$1 as kd, AuthMcpClientAccess as kf, isProviderTextGenerationCapable as ki, PersistChatAttachmentsError as kl, fromRecordUnsafe as km, PreviewAutomationStatus as kn, DEFAULT_BROWSER_PROFILE_ID as ko, ModelCapabilities as kp, ThreadMetadataMcpUpdateInput as kr, OrchestrationV2ContextTransferJson as ks, make as kt, make$8 as ku, patchNode as l, PROJECT_SCOPED_SERVER_SETTING_KEYS as la, OrchestrationV2ThreadForkSourcePoint as lc, MaxBodySize as ld, isPlatformError as lf, ApplicationEventMetadata as li, VcsProcessExitError as ll, PortSchema as lm, PreviewAutomationNoAvailableHostError as ln, DeviceToolError as lo, hasBody as lp, AgentSessionImportSource as lr, RelayManagedEndpointRecoveryRegistrationResponse as ls, DesignListRequest as lt, addHeaderAttributes as lu, validateDesign as m, ServerSettingsPatch as ma, OrchestrationV2TurnItemJson as mc, appendUrlParams as md, ORCHESTRATION_PROTOCOL_QUERY_PARAM as mf, PROJECT_CLONE_ERROR_MAX_LENGTH as mi, VcsProcessStdinWriteError as ml, ProviderTurnId as mm, PreviewAutomationRecordingDesktopUpdateRequiredError as mn, DeviceToolTargetInput as mo, AcpRegistryListProvidersResult as mp, P4_PROJECT_FILE_NAME as mr, annotations as ms, DesignApplyRequest as mt, toHeaders as mu, canonicalSerialize as n, CompressMode as na, OrchestrationV2SearchThreadError as nc, text as nd, FileSystem as nf, OrchestratorMcpThreadWaitInput as ni, resolvePullRequestAuthorFilter as nl, EnvironmentId as nm, PreviewAutomationError as nn, DeviceBootError as no, isNoContent as np, AssetWorkspaceRootNormalizationError as nr, RelayApi as ns, SecretRequestError as nt, HttpServer as nu, fileHash as o, DEFAULT_PROVIDER_HEALTH_REFRESH_INTERVAL as oa, OrchestrationV2StoredEvent as oc, filterStatusOk as od, BadArgument as of, ScheduledTask as oi, SourceControlProviderKind as ol, NodeId as om, PreviewAutomationInvalidSelectorError as on, DevicePlatformAvailability as oo, isWithHeadersValue as op, AttachmentUploadSigningKeyError as or, RelayEnvironmentLinkResponse as os, UserInputRankError as ot, compression as ou, semanticDiff as p, ServerSettingsError as pa, OrchestrationV2TurnItem as pc, acceptJson as pd, ORCHESTRATION_PROTOCOL_HEADER as pf, PullRequestReviewGuideRun as pi, VcsProcessSpawnError as pl, ProviderThreadId as pm, PreviewAutomationRecordingDeadlineExpiredError as pn, DeviceToolScreenshotResult as po, encoder$2 as pp, P4ProjectFile as pr, RelayProtectedError as ps, DesignApplyReceipt as pt, fromHeaders as pu, WS_METHODS as q, McpServerName as qa, ThreadPullRequestLinkSource as qc, layer$2 as qd, NoContent as qf, TerminalProviderInstanceNotFoundError as qi, HttpRouter as ql, AssetProjectFaviconNotFoundError as qn, EnvironmentHttpConflictError as qo, ClientConnectionMethod as qp, OrchestratorMcpTaskStatusInput as qr, OrchestrationV2ProviderThread as qs, PREVIEW_AUTOMATION_SERVER_OPERATIONS as qt, mergeCookies as qu, computeLayout as r, DATABASE_COMPACTION_RECOMMENDED_BYTES as ra, OrchestrationV2SearchThreadInput as rc, uint8Array as rd, FileTypeId as rf, OrchestratorMcpThreadWaitResult as ri, SourceControlCloneRepositoryInput as rl, EventId as rm, PreviewAutomationEvaluateInput as rn, DeviceHostUnavailableError as ro, isStreamSchema$1 as rp, AttachmentCreateUploadUrlInput as rr, RelayCloudEnvironmentHealthProofPayload as rs, WORKTREE_SETUP_ERROR_MAX_LENGTH as rt, addressFormattedWith as ru, isConfinedRelativePath as s, DEFAULT_SERVER_SETTINGS as sa, OrchestrationV2Subagent as sc, fromWeb as sd, PlatformError as sf, ScheduledTaskError as si, SourceControlRepositoryError as sl, NonNegativeInt as sm, PreviewAutomationMalformedResponseError as sn, DevicePlatformUnavailableError as so, withHeaders as sp, AgentSessionImportProjectChangedError as sr, RelayHookDeliveryProofPayload as ss, DesignHumanApplyRequest as st, isTracerDisabledUnsafe as su, buildIndexes as t, CodexSettings as ta, OrchestrationV2RuntimeRequestJson as tc, stream as td, urlParams$1 as tf, OrchestratorMcpThreadSendResult as ti, pullRequestProviderRequirement as tl, DpopFailureReason as tm, PreviewAutomationDragInput as tn, DeviceActionUnavailableError as to, getWithHeadersAnnotation as tp, AssetWorkspaceResolutionError as tr, EnvironmentScopeRequiredError as ts, WsSubscribeThreadDecisionsRpc as tt, use as tu, resolveValue as u, ProjectSettingsOverrides as ua, OrchestrationV2ThreadLaunchError as uc, TypeId$14 as ud, systemError as uf, ApplicationProjectEvent as ui, VcsProcessMissingExitCodeError as ul, PositiveInt as um, PreviewAutomationOpenInput as un, DeviceToolListResult as uo, Retry as up, AgentSessionScanError as ur, RelayManagedEndpointRecoveryResponse as us, DesignRpcGroup as ut, addUrlAttributes as uu, Hash as v, makeProviderSettingsSchema as va, isOrchestrationV2WorkActive as vc, bodyJson as vd, AuthAccessTokenType as vf, TextGenerationError as vi, ModelSelection as vl, RunId as vm, PreviewAutomationRemoteUnavailableError as vn, deviceToolInstallMessage as vo, AcpRegistryProbeResult as vp, OrchestrationSearchThreadsResult as vr, AUTO_WORKSPACE_NOTICE_TITLE as vs, DesignInspectRequest as vt, schemaCookies as vu, concatBytes as w, secretSetting as wa, UsageLimitSourceError as wc, get$1 as wd, AuthEnvironmentScopes as wf, ServerProviderCompatibilityStatus as wi, ChatFileAttachment as wl, TrimmedString as wm, PreviewAutomationSelectInput as wn, DecisionResult as wo, DEFAULT_MODEL_BY_PROVIDER as wp, AgentAssetKind as wr, OrchestrationV2AppThreadJson as ws, DesignStatusRequest as wt, isPersistedFile as wu, ahash as x, requiredScopesForServerSettingsPatch as xa, orchestrationV2RunWorkStartedAt as xc, bodyText as xd, AuthClientMetadataDeviceType as xf, EnvironmentThemeFile as xi, OrchestrationGetTurnDiffResult as xl, SecretRef as xm, PreviewAutomationResizeResult as xn, DECISION_MODELS as xo, ANTIGRAVITY_DEFAULT_MODEL as xp, AgentAsset as xr, ORCHESTRATION_V2_WS_METHODS as xs, DesignRenderRequest as xt, toURL as xu, abytes as y, providerInstanceConfigEnabledFlag as ya, isProviderNativeSubagentThread as yc, bodyJsonUnsafe as yd, AuthAccessWriteScope as yf, VcsListRefsInput as yi, OrchestrationGetFullThreadDiffError as yl, RuntimeRequestId as ym, PreviewAutomationRequestQueueClosedError as yn, symbol as yo, officialAcpRegistryIconUrlForAgentId as yp, OrchestrationThreadSearchSource as yr, AUTO_WORKSPACE_UNDECIDED_REASON as ys, DesignLibraryManifest as yt, schemaHeaders as yu, ComputerUseHostReport as z, KeybindingsConfig as za, DEFAULT_RUNTIME_MODE as zc, TransportError as zd, AuthSourceControlWriteScope as zf, ProviderUploadFeedbackError as zi, get as zl, SERVER_BROWSER_AUTOMATION_CLIENT_ID as zn, RelayClientInstallFailedError as zo, ReviewCommentContextRecord as zp, OrchestratorMcpListScheduledTasksInput as zr, OrchestrationV2GetShellSnapshotError as zs, WorktreeMcpHandoffResult as zt, toResponse as zu };
|
|
31187
31270
|
|
|
31188
|
-
//# sourceMappingURL=runtime-
|
|
31271
|
+
//# sourceMappingURL=runtime-Cui_uQWU.mjs.map
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Du as n,Iy as r,Kb as i,Kd as a,Ky as o,NE as s,Ou as c,Oy as l,Sh as u,Ub as d,Xt as f,Zm as p,by as m,eh as h,fb as g,hl as _,jg as v,lE as y,n_ as b,nh as x,sr as S,t as C,xh as w,xy as T,yb as E,yy as D,zS as O}from"./utils-BctiQ4Ue.js";import{q as ee}from"./useSettings-B_WzhJqU.js";import{r as te,s as ne,t as re,x as ie}from"./Icons-DzTpHpn1.js";var k=e(t(),1),A=s(),j=e(y(),1),M=6e4,N=60*M,P=24*N,F=`https://chatgpt.com/#settings/Usage`;function ae(e){return e?.auth.status===`authenticated`&&e.auth.subscriptionSharing===!0}var I=[{id:`totalPercentUsed`,label:`Overall`,description:`Combined usage across both allowances, not a third quota.`},{id:`autoPercentUsed`,label:`Cursor Models`,description:`Grok and Composer use this first. Auto can use either pool.`},{id:`apiPercentUsed`,label:`Other Models`,description:`Claude, GPT, and Gemini use this pool. Grok and Composer fall back here.`}];function oe(e){return I.find(t=>t.id===e)}function L(e){let t=I.findIndex(t=>t.id===e);return t<0?I.length:t}function R(e){return e.filter(e=>e.enabled&&e.installed&&_(e)&&e.usageLimits!==void 0)}function se(e){let t=new Map;for(let n of e.values())for(let e of R(n.serverConfig?.providers??[])){let r=e.usageLimits?.externalUsage;if(r&&e.auth.status===`authenticated`){let i=`${e.displayName??e.instanceId} on ${n.entry.target.label}`;t.set(r.url,{...r,message:e.usageLimits?.unavailable?.message,accounts:[...new Set([...t.get(r.url)?.accounts??[],i])]})}}return[...t.values()]}function z(e,t,n){let r=t?.trim().toLowerCase();return r?`${e}:${r}`:n?.credentialFingerprint?`${e}:credential:${n.credentialFingerprint}`:null}var B=e=>({driver:e.driver,email:e.auth.email,workspaceId:e.auth.workspaceId,usageLimits:e.usageLimits});function V(e){let t=new Map,n=new Map;for(let r of e){let e=z(r.driver,r.email,r.usageLimits);if(e&&r.workspaceId){t.set(e,(t.get(e)??new Set).add(r.workspaceId));let i=`${r.driver}:${r.workspaceId}`;n.set(i,(n.get(i)??new Set).add(e))}}return e=>{let r=z(e.driver,e.email,e.usageLimits);if(!r){if(!e.workspaceId)return null;let t=n.get(`${e.driver}:${e.workspaceId}`);return t?.size===1?`${[...t][0]}:${e.workspaceId}`:null}if(e.workspaceId)return`${r}:${e.workspaceId}`;let i=t.get(r);return i?i.size===1?`${r}:${[...i][0]}`:null:r}}function ce(e){let t=new Map,n=new Map,r=new Map,i=(e,i)=>{let a=r.get(e);i.redeem&&`sourceId`in i.redeem.input&&(!a||Date.parse(i.limits.checkedAt)>Date.parse(a.limits.checkedAt))&&r.set(e,i);let o=n.get(e);i.limits.resetCredits&&(!o||Date.parse(i.limits.checkedAt)>Date.parse(o.limits.checkedAt))&&n.set(e,i);let s=t.get(e);if(!s){t.set(e,i);return}let c=Date.parse(i.limits.checkedAt)>Date.parse(s.limits.checkedAt),l=[...s.environments,...i.environments.filter(e=>!s.environments.some(t=>t.environmentId===e.environmentId))],u=c?i:s,d=n.get(e);t.set(e,{...s,displayName:s.displayName??i.displayName,email:s.email??i.email,plan:s.plan??i.plan,accentColor:s.accentColor??i.accentColor,environments:l,sourceLabel:l.length>0?null:s.sourceLabel??i.sourceLabel,redeem:r.get(e)?.redeem??(d?d.redeem:u.redeem??s.redeem??i.redeem),limits:{...u.limits,...d?.limits.resetCredits?{resetCredits:d.limits.resetCredits}:{resetCredits:void 0}}})},a=V([...e.values()].flatMap(e=>[...(e.serverConfig?.providers??[]).filter(e=>e.enabled).map(B),...(e.serverConfig?.usageLimitSources??[]).flatMap(e=>e.accounts)]));for(let[t,n]of e){let e=n.entry.target.label;for(let r of R(n.serverConfig?.providers??[]))r.usageLimits&&G(r.usageLimits)===null&&i(a(B(r))??`${t}:${r.instanceId}`,{key:`${t}:${r.instanceId}`,driver:r.driver,displayName:r.displayName?.trim()||null,email:r.auth.email,plan:r.auth.label,accentColor:r.accentColor,environments:[{environmentId:t,label:e}],sourceLabel:null,redeem:{environmentId:t,input:{instanceId:r.instanceId}},limits:r.usageLimits})}let o=e.size>1;for(let[t,n]of e)for(let e of n.serverConfig?.usageLimitSources??[]){let r=o?`${n.entry.target.label} · ${e.label}`:e.label;for(let n of e.accounts){if(G(n.usageLimits)!==null)continue;let o=`${e.id}:${n.id}${n.workspaceId?`:${n.workspaceId}`:``}`;i(a(n)??o,{key:o,driver:n.driver,displayName:n.email?null:n.id.replace(/\.json$/i,``),email:n.email,plan:n.plan,accentColor:void 0,environments:[],sourceLabel:r,redeem:n.usageLimits.resetCredits?.nextCreditId?{environmentId:t,input:{sourceId:e.id,accountId:n.id,creditId:n.usageLimits.resetCredits.nextCreditId}}:null,limits:n.usageLimits})}}return[...t.values()]}function le(e){let t=(t,n)=>e.size>1?`${t} · ${n}`:n,n=[];for(let r of e.values()){let e=r.entry.target.label;for(let i of R(r.serverConfig?.providers??[])){if(i.usageLimits?.unavailable?.reason===`unsupported`)continue;let r=i.usageLimits?G(i.usageLimits):null,a=i.displayName?.trim()||String(i.driver);r&&n.push(`${t(e,a)}: ${r}`)}for(let i of r.serverConfig?.usageLimitSources??[])i.error?n.push(`${t(e,i.label)}: ${i.error}`):i.accounts.length===0&&n.push(`${t(e,i.label)}: No accounts reported.`)}return n}function ue(e){if(e.driver===`antigravity`)return[...e.windows].sort((e,t)=>Number(!e.id.startsWith(`gemini-`))-Number(!t.id.startsWith(`gemini-`))||e.id.replace(/-(5h|weekly|quota)$/,``).localeCompare(t.id.replace(/-(5h|weekly|quota)$/,``))||H[e.kind]-H[t.kind]);if(e.driver!==`cursor`)return e.windows;let t=e.windows.some(e=>e.id===`autoPercentUsed`),n=e.windows.some(e=>e.id===`apiPercentUsed`),r=t&&n;return e.windows.filter(e=>!r||e.id!==`totalPercentUsed`).sort((e,t)=>L(e.id)-L(t.id))}var H={session:0,weekly:1,monthly:2,other:3};function de(e,t){let n=new Map;for(let t of e){let e=n.get(t.driver);e?e.push(t):n.set(t.driver,[t])}return[...n].map(([e,n])=>{let r=n.flatMap(e=>e.limits.windows).sort((e,t)=>H[e.kind]-H[t.kind])[0],i=t=>{let n=t.limits.windows.find(t=>r&&W(e,t)===W(e,r));return(n?K(n):null)??1/0},a=[...n].sort((e,t)=>i(e)-i(t)||U(e).localeCompare(U(t))||e.key.localeCompare(t.key));return{driver:e,accounts:a,windows:fe(a,t)}})}function U(e){return(e.displayName??e.email??e.key).toLowerCase()}function W(e,t){return e===`codex`?t.kind:`${t.kind}:${t.id}`}function fe(e,t){let n=new Map;for(let t of e)for(let e of t.limits.windows){let r=W(t.driver,e),i=n.get(r)?.some(e=>e.account===t)?`${e.kind}:${e.id}`:r,a=n.get(i);a?a.push({account:t,window:e}):n.set(i,[{account:t,window:e}])}return[...n].map(([n,r])=>{let i=new Map(r.map(e=>[e.account.key,e])),a=r[0].window,o=r[0].account.driver===`codex`?n:a.id,s=r.reduce((e,t)=>e+t.window.usedPercent,0)/r.length,c=r.flatMap(e=>{let n=q(e.window,t);return n===null?[]:[{used:e.window.usedPercent,elapsed:n}]}),l=c.reduce((e,t)=>e+t.used,0)/c.length,u=c.length>0?c.reduce((e,t)=>e+t.elapsed,0)/c.length:null,d=r.flatMap(e=>{let t=K(e.window);return t===null?[]:[{member:e,at:t,restoresPercent:Math.round(e.window.usedPercent/r.length)}]}).sort((e,t)=>e.at-t.at);return{id:o,kind:a.kind,label:a.label,members:r,columns:e.map(e=>i.get(e.key)??{account:e,window:null}),usedPercent:Math.round(s),remainingPercent:Math.round(100-s),pace:u===null?null:J(l,u),resets:d}}).sort((e,t)=>H[e.kind]-H[t.kind])}function G(e){return e.unavailable?.reason===`unsupported`?e.unavailable.message??`This account has no subscription limits.`:e.unavailable?.reason===`probeFailed`?e.unavailable.message??`Could not read limits.`:e.windows.length===0?`No limits reported.`:null}function pe(e){return Math.round(100-Math.max(0,Math.min(100,e.usedPercent)))}function K(e){if(e.resetsAt===void 0)return null;let t=Date.parse(e.resetsAt);return Number.isFinite(t)?t:null}function q(e,t){let n=K(e);if(n===null||e.windowDurationMins===void 0)return null;let r=e.windowDurationMins*M;return r<=0?null:Math.max(0,Math.min(1,(r-(n-t))/r))}function me(e,t){let n=q(e,t);return n===null?null:J(e.usedPercent,n)}function J(e,t){let n=e-t*100;return n>5?`ahead`:n<-5?`under`:`on`}function Y(e){let t=Math.max(0,e),n=Math.floor(t/P),r=Math.floor(t%P/N),i=Math.floor(t%N/M);return n>0?`${n}d ${r}h`:r>0?`${r}h ${i}m`:`${i}m`}function he(e,t){let n=K(e);return n===null?null:n<=t?`resets now`:n-t<M?`Resets momentarily`:`resets in ${Y(n-t)}`}var ge={name:`usage-limits`,description:`Show this provider's usage limits`};function _e(e){return e.trim().toLowerCase()===`/usage-limits`}function X(e,t,n){return R(t).some(t=>t.driver===e)||n.some(t=>t.accounts.some(t=>t.driver===e)||t.error!==void 0&&t.accounts.length===0)}function ve(e,t,n,r){let a=t.find(t=>t.instanceId===e);if(!a||!X(a.driver,t,n))return null;let o=R(t).filter(e=>e.driver===a.driver),s=V([...t.filter(e=>e.enabled).map(B),...n.flatMap(e=>e.accounts)]),c=new Set(o.flatMap(e=>{let t=s(B(e));return t&&e.usageLimits?.windows.length&&!e.usageLimits.unavailable?[t]:[]})),l=[],u=[];for(let e of o){if(!e.usageLimits)continue;let t=s(B(e)),r=n.flatMap(e=>e.accounts.map(t=>({source:e,account:t}))).filter(({account:e})=>t!==null&&s(e)===t&&e.usageLimits.resetCredits&&!G(e.usageLimits)).sort((e,t)=>Date.parse(t.account.usageLimits.checkedAt)-Date.parse(e.account.usageLimits.checkedAt))[0],i=r?.account.usageLimits.resetCredits?.nextCreditId,a=r&&(!e.usageLimits.resetCredits||Date.parse(r.account.usageLimits.checkedAt)>Date.parse(e.usageLimits.checkedAt));l.push({id:e.instanceId,driver:e.driver,label:`${e.displayName?.trim()||String(e.driver)} [${e.instanceId}]`,...e.auth.label?{plan:e.auth.label}:{},instanceId:e.instanceId,resetCreditInput:i&&r?{sourceId:r.source.id,accountId:r.account.id,creditId:i}:{instanceId:e.instanceId},...e.displayName?{displayName:e.displayName}:{},...e.accentColor?{accentColor:e.accentColor}:{},...e.auth.email?{email:e.auth.email}:{},limits:a?{...e.usageLimits,resetCredits:r.account.usageLimits.resetCredits}:e.usageLimits})}for(let e of n){let t=e.accounts.filter(e=>e.driver===a.driver);for(let n of t){let t=s(n);t&&c.has(t)||l.push({id:`${e.id}:${n.id}`,driver:n.driver,label:`${e.label} · ${n.id}`,sourceLabel:`CLI Proxy`,...n.usageLimits.resetCredits?.nextCreditId?{resetCreditInput:{sourceId:e.id,accountId:n.id,creditId:n.usageLimits.resetCredits.nextCreditId}}:{},...n.plan?{plan:n.plan}:{},...n.email?{email:n.email}:{},limits:n.usageLimits})}e.error&&(t.length>0||e.accounts.length===0)&&u.push(`${e.label}: ${e.error}`)}return{createdAt:d(i(r)),accounts:l,notices:u}}function Z(e){return e}function ye(e){let t=new Map;for(let n of e){if(t.has(n.driverKind))throw Error(`Provider driver '${n.driverKind}' is defined more than once.`);t.set(n.driverKind,n)}return{definitions:e,get:e=>e===void 0?void 0:t.get(e)}}var be=l([`auto`,`binary`,`npx`,`uvx`]),xe=u({source:l([`registry`,`local`]).pipe(E(O(`registry`)),o({title:`ACP source`,providerSettingsForm:{control:`select`,options:[{value:`registry`,label:`ACP Registry`},{value:`local`,label:`Local command`}]}})),enabled:T.pipe(E(O(!0)),o({providerSettingsForm:{hidden:!0}})),agentId:D.pipe(E(O(``)),o({title:`Registry agent ID`,description:`Agent identifier from the official ACP Registry, for example 'devin'.`,providerSettingsForm:{placeholder:`devin`,clearWhenEmpty:`persist`}})),commandPath:D.pipe(E(O(``)),o({title:`Executable override`,description:`Executable on this environment. For registry agents, this overrides the distribution executable while keeping its arguments and environment.`,providerSettingsForm:{placeholder:`Registry default`,clearWhenEmpty:`omit`}})),commandArgs:m(r).pipe(E(O([])),o({providerSettingsForm:{hidden:!0}})),authMethodId:D.pipe(E(O(``)),o({title:`Authentication method`,description:`Optional ACP authentication method ID. By default, the first agent-managed method is selected.`,providerSettingsForm:{placeholder:`auto`,clearWhenEmpty:`omit`}})),distribution:be.pipe(E(O(`auto`)),o({providerSettingsForm:{hidden:!0}})),customModels:m(r).pipe(E(O([])),o({providerSettingsForm:{hidden:!0}}))},{order:[`source`,`agentId`,`commandPath`,`authMethodId`]}),Se=Z({driverKind:b.make(`acpRegistry`),label:`ACP Registry`,settingsSchema:xe,hasDefaultInstance:!1,icon:{viewBox:`0 0 576 220`,fill:{light:`#000000`,dark:`#FFFFFF`},paths:[{d:`M568.003 115.821L517.278 27.9661C507.183 10.4816 489.084 0.0227367 468.894 0.0227367C448.727 0.0227367 430.674 10.4361 420.556 27.8752L343.251 161.749H242.755C236.23 161.749 230.386 158.384 227.135 152.745C223.861 147.106 223.861 140.376 227.135 134.715L277.861 46.8603C281.112 41.2216 286.955 37.8338 293.481 37.8338C300.006 37.8338 305.827 41.1988 309.101 46.8603L312.125 52.0897C313.353 54.2042 315.604 55.5002 318.036 55.5002C320.469 55.5002 322.743 54.1815 323.948 52.067L337.385 28.5118C338.795 26.0335 338.522 22.9413 336.703 20.7586C325.699 7.57131 309.874 0 293.322 0C292.662 0 292.003 0 291.321 0.0454733C272.04 0.75031 254.76 11.1864 245.074 27.9434L200.215 105.657L155.81 29.1484C145.465 11.2092 126.594 0.0227367 106.608 0.0227367C105.949 0.0227367 105.289 0.0227367 104.607 0.06821C85.3265 0.773047 68.0467 11.2092 58.3608 27.9661L7.65806 115.821C-6.25678 139.899 -0.868187 168.82 21.05 187.759C29.8945 195.422 41.6039 199.628 54.0181 199.628H148.648C151.081 199.628 153.332 198.332 154.56 196.217L168.52 172.026C169.748 169.911 169.748 167.319 168.52 165.205C167.292 163.09 165.041 161.794 162.608 161.794H56.0417C49.5163 161.794 43.6729 158.429 40.4216 152.79C37.1475 147.152 37.1475 140.422 40.4216 134.76L91.1471 46.9057C94.3985 41.2671 100.242 37.8793 106.767 37.8793C113.293 37.8793 119.113 41.2443 122.387 46.9057L194.826 172.526C195.031 172.89 195.258 173.208 195.531 173.526C198.76 178.665 202.83 183.485 207.786 187.782C216.631 195.444 228.34 199.651 240.754 199.651H321.424L315.581 209.769C314.353 211.883 314.353 214.475 315.581 216.59C316.809 218.704 319.059 220 321.492 220H349.436C351.868 220 354.119 218.704 355.347 216.59L364.396 200.901L367.17 196.468C367.17 196.468 367.261 196.331 367.284 196.263L453.274 46.9285C456.525 41.2898 462.369 37.902 468.894 37.902C475.42 37.902 481.263 41.2671 484.514 46.9285L535.24 134.783C538.491 140.422 538.514 147.174 535.24 152.813C531.988 158.452 526.145 161.84 519.62 161.84H418.669C416.236 161.84 413.985 163.136 412.757 165.25L398.774 189.442C397.546 191.556 397.546 194.148 398.774 196.263C400.002 198.377 402.253 199.673 404.686 199.673H518.21C539.81 199.673 559.295 188.237 569.026 169.843C578.053 152.79 577.666 132.623 567.981 115.843L568.003 115.821Z`}]}}),Ce=u({enabled:T.pipe(E(O(!1)),o({providerSettingsForm:{hidden:!0}})),binaryPath:g(D).pipe(o({providerSettingsForm:{hidden:!0}})),apiEndpoint:g(D).pipe(o({providerSettingsForm:{hidden:!0}})),customModels:m(v).pipe(E(O([])),o({providerSettingsForm:{hidden:!0}}))},{order:[]}),we=Z({driverKind:b.make(`cursor`),label:`Cursor`,settingsSchema:Ce,environmentFields:[{name:`CURSOR_API_KEY`,label:`Cursor API key`,description:`Optional. Overrides browser sign-in for this provider.`,placeholder:`Paste API key`,sensitive:!0}],icon:{viewBox:`0 0 466.73 532.09`,fill:{light:`#26251E`,dark:`#EDECEC`},paths:[{d:`M457.43,125.94L244.42,2.96c-6.84-3.95-15.28-3.95-22.12,0L9.3,125.94c-5.75,3.32-9.3,9.46-9.3,16.11v247.99c0,6.65,3.55,12.79,9.3,16.11l213.01,122.98c6.84,3.95,15.28,3.95,22.12,0l213.01-122.98c5.75-3.32,9.3-9.46,9.3-16.11v-247.99c0-6.65-3.55-12.79-9.3-16.11h-.01ZM444.05,151.99l-205.63,356.16c-1.39,2.4-5.06,1.42-5.06-1.36v-233.21c0-4.66-2.49-8.97-6.53-11.31L24.87,145.67c-2.4-1.39-1.42-5.06,1.36-5.06h411.26c5.84,0,9.49,6.33,6.57,11.39h-.01Z`}]}}),Te=u({enabled:T.pipe(E(O(!1)),o({providerSettingsForm:{hidden:!0}})),binaryPath:w(`grok`).pipe(o({title:`Binary path`,description:`Path to the Grok CLI binary.`,providerSettingsForm:{placeholder:`grok`,clearWhenEmpty:`omit`}})),customModels:m(v).pipe(E(O([])),o({providerSettingsForm:{hidden:!0}}))},{order:[`binaryPath`]}),Ee=Z({driverKind:b.make(`grok`),label:`Grok`,settingsSchema:Te,icon:{viewBox:`0 0 24 24`,fill:{light:`#0F0F0F`,dark:`#F5F5F5`},paths:[{d:`M9.26905 15.284L17.2479 9.36086C17.6391 9.07047 18.1981 9.18374 18.3845 9.63478C19.3655 12.0135 18.9272 14.8721 16.9755 16.8349C15.0238 18.7976 12.3082 19.228 9.8261 18.2477L7.1146 19.5102C11.0037 22.1834 15.7263 21.5223 18.6774 18.5525C21.0182 16.1985 21.7432 12.9897 21.0653 10.0961L21.0714 10.1023C20.0884 5.85143 21.3131 4.15233 23.8218 0.677913C23.8812 0.595532 23.9406 0.513151 24 0.428711L20.6987 3.74866V3.73836L9.267 15.2861`},{d:`M7.62249 16.7237C4.83113 14.0422 5.3124 9.89222 7.69417 7.49905C9.45541 5.72786 12.341 5.00497 14.86 6.06768L17.5653 4.81138C17.0779 4.45714 16.4533 4.07613 15.7365 3.80839C12.4966 2.46764 8.6178 3.13492 5.98413 5.78141C3.45081 8.32904 2.65415 12.2463 4.02219 15.5889C5.04412 18.0871 3.36889 19.8541 1.68137 21.6377C1.08337 22.2699 0.483318 22.9022 0 23.5716L7.62045 16.7257`}]}}),De=u({enabled:T.pipe(E(O(!1)),o({providerSettingsForm:{hidden:!0}})),binaryPath:w(`muse`).pipe(o({title:`Binary path`,description:`Path to the Muse Code binary on this environment. Sign in with muse login on that host.`,providerSettingsForm:{placeholder:`muse`,clearWhenEmpty:`omit`}})),customModels:m(v).pipe(E(O([])),o({providerSettingsForm:{hidden:!0}}))},{order:[`binaryPath`]}),Oe=Z({driverKind:b.make(`muse`),label:`Muse Code`,settingsSchema:De,badgeLabel:`Beta`,icon:{viewBox:`0 0 287.56 191`,fill:{light:`#0081fb`,dark:`#0081fb`},paths:[{d:`m31.06,125.96c0,10.98 2.41,19.41 5.56,24.51 4.13,6.68 10.29,9.51 16.57,9.51 8.1,0 15.51-2.01 29.79-21.76 11.44-15.83 24.92-38.05 33.99-51.98l15.36-23.6c10.67-16.39 23.02-34.61 37.18-46.96 11.56-10.08 24.03-15.68 36.58-15.68 21.07,0 41.14,12.21 56.5,35.11 16.81,25.08 24.97,56.67 24.97,89.27 0,19.38-3.82,33.62-10.32,44.87-6.28,10.88-18.52,21.75-39.11,21.75l0-31.02c17.63,0 22.03-16.2 22.03-34.74 0-26.42-6.16-55.74-19.73-76.69-9.63-14.86-22.11-23.94-35.84-23.94-14.85,0-26.8,11.2-40.23,31.17-7.14,10.61-14.47,23.54-22.7,38.13l-9.06,16.05c-18.2,32.27-22.81,39.62-31.91,51.75-15.95,21.24-29.57,29.29-47.5,29.29-21.27,0-34.72-9.21-43.05-23.09-6.8-11.31-10.14-26.15-10.14-43.06z`},{d:`m24.49,37.3c14.24-21.95 34.79-37.3 58.36-37.3 13.65,0 27.22,4.04 41.39,15.61 15.5,12.65 32.02,33.48 52.63,67.81l7.39,12.32c17.84,29.72 27.99,45.01 33.93,52.22 7.64,9.26 12.99,12.02 19.94,12.02 17.63,0 22.03-16.2 22.03-34.74l27.4-.86c0,19.38-3.82,33.62-10.32,44.87-6.28,10.88-18.52,21.75-39.11,21.75-12.8,0-24.14-2.78-36.68-14.61-9.64-9.08-20.91-25.21-29.58-39.71l-25.79-43.08c-12.94-21.62-24.81-37.74-31.68-45.04-7.39-7.85-16.89-17.33-32.05-17.33-12.27,0-22.69,8.61-31.41,21.78z`,gradient:{x1:61,y1:117,x2:259,y2:127,stops:[{offset:0,color:`#0064e1`},{offset:.4,color:`#0064e1`},{offset:.83,color:`#0073ee`},{offset:1,color:`#0082fb`}]}},{d:`m82.35,31.23c-12.27,0-22.69,8.61-31.41,21.78-12.33,18.61-19.88,46.33-19.88,72.95 0,10.98 2.41,19.41 5.56,24.51l-26.48,17.44c-6.8-11.31-10.14-26.15-10.14-43.06 0-30.75 8.44-62.8 24.49-87.55 14.24-21.95 34.79-37.3 58.36-37.3z`,gradient:{x1:45,y1:139,x2:45,y2:66,stops:[{offset:0,color:`#0082fb`},{offset:1,color:`#0064e0`}]}}]}}),ke=u({enabled:T.pipe(E(O(!1)),o({providerSettingsForm:{hidden:!0}})),binaryPath:w(`opencode`).pipe(o({title:`Binary path`,description:`Path to the OpenCode binary.`,providerSettingsForm:{placeholder:`opencode`,clearWhenEmpty:`omit`}})),serverUrl:D.pipe(E(O(``)),o({title:`Server URL`,description:`Leave blank to let P4 Code spawn the server when needed.`,providerSettingsForm:{placeholder:`http://127.0.0.1:4096`,clearWhenEmpty:`omit`}})),serverPassword:D.pipe(E(O(``)),o({title:`Server password`,description:`Stored in plain text on disk.`,providerSettingsForm:{control:`password`,placeholder:`Optional`,clearWhenEmpty:`omit`}})),customModels:m(v).pipe(E(O([])),o({providerSettingsForm:{hidden:!0}}))},{order:[`binaryPath`,`serverUrl`,`serverPassword`]}),Ae=Z({driverKind:b.make(`opencode`),label:`OpenCode`,settingsSchema:ke,icon:{viewBox:`0 0 32 40`,fill:{light:`#211E1E`,dark:`#F1ECEC`},paths:[{d:`M24 32H8V16H24V32Z`,fill:{light:`#CFCECD`,dark:`#4B4646`}},{d:`M24 8H8V32H24V8ZM32 40H0V0H32V40Z`}]}}),je=u({enabled:T.pipe(E(O(!1)),o({providerSettingsForm:{hidden:!0}})),binaryPath:w(`pi`).pipe(o({title:`Binary path`,description:`Path to the Pi coding agent binary.`,providerSettingsForm:{placeholder:`pi`,clearWhenEmpty:`omit`}})),launchArgs:D.pipe(E(O(``)),o({title:`Launch arguments`,description:`Additional CLI arguments passed to pi --mode rpc on session start.`,providerSettingsForm:{clearWhenEmpty:`omit`}})),customModels:m(v).pipe(E(O([])),o({providerSettingsForm:{hidden:!0}}))},{order:[`binaryPath`,`launchArgs`]}),Me=Z({driverKind:b.make(`pi`),label:`Pi`,settingsSchema:je,icon:{viewBox:`165.29 165.29 469.43 469.43`,fill:{light:`#0F0F0F`,dark:`#F5F5F5`},paths:[{d:`M165.29 165.29H517.36V400H400V517.36H282.65V634.72H165.29ZM282.65 282.65V400H400V282.65Z`,fillRule:`evenodd`},{d:`M517.36 400H634.72V634.72H517.36Z`}]}}),Q=ye([{driverKind:b.make(`codex`),label:`Codex`,settingsSchema:x},{driverKind:b.make(`claudeAgent`),label:`Claude`,settingsSchema:h},we,Ee,Ae,{driverKind:b.make(`antigravity`),label:`Antigravity`,settingsSchema:p},Oe,Me,Se]);function Ne(e){let t=(0,A.c)(24),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({icon:r,className:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=(0,k.useId)(),o=r.viewBox,s;t[4]===n?s=t[5]:(s=C(`fill-(--icon-light) dark:fill-(--icon-dark)`,n),t[4]=n,t[5]=s);let c;t[6]!==r.fill.dark||t[7]!==r.fill.light?(c={"--icon-light":r.fill.light,"--icon-dark":r.fill.dark},t[6]=r.fill.dark,t[7]=r.fill.light,t[8]=c):c=t[8];let l=c,u;t[9]!==a||t[10]!==r.paths?(u=r.paths.some(Fe)?(0,j.jsx)(`defs`,{children:r.paths.map((e,t)=>e.gradient?(0,j.jsx)(`linearGradient`,{id:`${a}-${t}`,x1:e.gradient.x1,y1:e.gradient.y1,x2:e.gradient.x2,y2:e.gradient.y2,gradientUnits:`userSpaceOnUse`,children:e.gradient.stops.map(Pe)},e.d):null)}):null,t[9]=a,t[10]=r.paths,t[11]=u):u=t[11];let d;if(t[12]!==a||t[13]!==r.paths){let e;t[15]===a?e=t[16]:(e=(e,t)=>(0,j.jsx)(`path`,{d:e.d,fillRule:e.fillRule,fill:e.gradient?`url(#${a}-${t})`:void 0,"data-icon-detail":e.fill?!0:void 0,className:e.fill?`fill-(--path-light) dark:fill-(--path-dark)`:void 0,style:e.fill?{"--path-light":e.fill.light,"--path-dark":e.fill.dark}:void 0},e.d),t[15]=a,t[16]=e),d=r.paths.map(e),t[12]=a,t[13]=r.paths,t[14]=d}else d=t[14];let f;return t[17]!==r.viewBox||t[18]!==i||t[19]!==s||t[20]!==l||t[21]!==u||t[22]!==d?(f=(0,j.jsxs)(`svg`,{...i,viewBox:o,fill:`none`,"data-provider-package-icon":!0,className:s,style:l,children:[u,d]}),t[17]=r.viewBox,t[18]=i,t[19]=s,t[20]=l,t[21]=u,t[22]=d,t[23]=f):f=t[23],f}function Pe(e){return(0,j.jsx)(`stop`,{offset:e.offset,stopColor:e.color},e.offset)}function Fe(e){return e.gradient}var Ie=`p4-acp-registry-icons-v1`,Le=524288,$=new Map;async function Re(e){if(!e.ok||e.redirected)throw Error(`ACP registry icon request failed.`);let t=e.headers.get(`content-type`)?.split(`;`,1)[0]?.trim()??``;if(!t.startsWith(`image/`))throw Error(`ACP registry icon was not an image.`);let n=Number(e.headers.get(`content-length`));if(Number.isFinite(n)&&n>Le)throw Error(`ACP registry icon was too large.`);let r=await e.arrayBuffer();if(r.byteLength>Le)throw Error(`ACP registry icon was too large.`);return new Blob([r],{type:t})}function ze(e){if(c(e)!==e)return Promise.reject(Error(`ACP registry icon URL was not allowed.`));let t=$.get(e);if(t)return t;let n=(async()=>{let t=null;if(typeof caches<`u`)try{t=await caches.open(Ie)}catch{}if(t!==null)try{let n=await t.match(e);if(n)return await Re(n)}catch{}let n=await fetch(e,{credentials:`omit`,redirect:`error`,referrerPolicy:`no-referrer`}),r=n.clone(),i=await Re(n);return await t?.put(e,r).catch(()=>void 0),i})();return $.set(e,n),n.then(()=>$.delete(e),()=>$.delete(e)),n}function Be(e){let t=(0,A.c)(24),{icon:n,className:r,fallbackClassName:i}=e,a=(0,k.useId)(),o;t[0]===n?o=t[1]:(o=c(n),t[0]=n,t[1]=o);let s=o,[l,u]=(0,k.useState)(null),d=l?.iconUrl===s?l:null,f=d?.source??null,p=d?.status??`loading`,m,h;t[2]===s?(m=t[3],h=t[4]):(m=()=>{if(s===null)return;let e=!0,t=null;return ze(s).then(n=>{e&&(t=URL.createObjectURL(n),u({iconUrl:s,source:t,status:`loading`}))}).catch(()=>{e&&u(e=>e?.iconUrl===s?e:{iconUrl:s,source:s,status:`loading`})}),()=>{e=!1,t!==null&&URL.revokeObjectURL(t)}},h=[s],t[2]=s,t[3]=m,t[4]=h),(0,k.useEffect)(m,h);let g;t[5]===r?g=t[6]:(g=C(`relative flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-muted text-muted-foreground`,r),t[5]=r,t[6]=g);let _,v;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,j.jsx)(`feFlood`,{floodColor:`currentColor`}),v=(0,j.jsx)(`feComposite`,{in2:`SourceAlpha`,operator:`in`}),t[7]=_,t[8]=v):(_=t[7],v=t[8]);let y;t[9]===a?y=t[10]:(y=(0,j.jsx)(`svg`,{"aria-hidden":!0,className:`pointer-events-none absolute size-0`,focusable:`false`,children:(0,j.jsx)(`defs`,{children:(0,j.jsxs)(`filter`,{id:a,colorInterpolationFilters:`sRGB`,children:[_,v]})})}),t[9]=a,t[10]=y);let b;t[11]!==i||t[12]!==p?(b=p===`loaded`?null:(0,j.jsx)(re,{className:C(`size-4`,i),"data-slot":`acp-icon-fallback`}),t[11]=i,t[12]=p,t[13]=b):b=t[13];let x;t[14]!==a||t[15]!==s||t[16]!==f||t[17]!==p?(x=f!==null&&p!==`failed`?(0,j.jsx)(`img`,{alt:``,className:C(`size-full object-contain`,p!==`loaded`&&`invisible absolute inset-0`),style:{filter:`url(#${a})`},decoding:`async`,referrerPolicy:`no-referrer`,src:f,onError:()=>{s!==null&&u(e=>e?.iconUrl===s&&e.source!==f?e:{iconUrl:s,source:f,status:`failed`})},onLoad:()=>{s!==null&&u({iconUrl:s,source:f,status:`loaded`})}}):null,t[14]=a,t[15]=s,t[16]=f,t[17]=p,t[18]=x):x=t[18];let S;return t[19]!==g||t[20]!==y||t[21]!==b||t[22]!==x?(S=(0,j.jsxs)(`span`,{"aria-hidden":!0,className:g,children:[y,b,x]}),t[19]=g,t[20]=y,t[21]=b,t[22]=x,t[23]=S):S=t[23],S}var Ve={[b.make(`codex`)]:ie,[b.make(`claudeAgent`)]:ne,[b.make(`antigravity`)]:te},He={[b.make(`codex`)]:`text-black dark:text-white`,[b.make(`claudeAgent`)]:`text-[#d97757]`,[b.make(`antigravity`)]:`text-[#5b87bf]`};function Ue(e){let t=Q.get(e)?.icon;if(t)return{className:`text-(--icon-light) dark:text-(--icon-dark)`,style:{"--icon-light":t.fill.light,"--icon-dark":t.fill.dark}};let n=He[e];return n?{className:n}:{}}function We(e){return e.driverKind===`acpRegistry`?c(e.iconUrl??null)??n(e.agentId?.trim()||null):null}var Ge=(0,k.memo)(function(e){let t=(0,A.c)(32),n=Ve[e.driverKind]??null,r=Q.get(e.driverKind)?.icon,i=e.indicatorBackground??`var(--card)`,a;t[0]===e.accentColor?a=t[1]:(a=e.accentColor?{"--provider-accent":e.accentColor}:void 0,t[0]=e.accentColor,t[1]=a);let o=a,s=e.badgeContent??`initials`,c=e.driverKind===`acpRegistry`,l;t[2]!==e.acpRegistryAgentId||t[3]!==e.acpRegistryIconUrl||t[4]!==e.driverKind?(l=We({driverKind:e.driverKind,agentId:e.acpRegistryAgentId,iconUrl:e.acpRegistryIconUrl}),t[2]=e.acpRegistryAgentId,t[3]=e.acpRegistryIconUrl,t[4]=e.driverKind,t[5]=l):l=t[5];let u=l,d;t[6]===e.className?d=t[7]:(d=C(`relative isolate z-30 inline-flex shrink-0 items-center justify-center overflow-visible`,e.className),t[6]=e.className,t[7]=d);let p;t[8]!==n||t[9]!==u||t[10]!==c||t[11]!==r||t[12]!==e.displayName||t[13]!==e.iconClassName?(p=c?(0,j.jsx)(Be,{className:C(`size-5 rounded-none bg-transparent`,e.iconClassName),fallbackClassName:`size-full`,icon:u}):r?(0,j.jsx)(Ne,{icon:r,className:C(`size-5 shrink-0`,e.iconClassName),"aria-hidden":!0}):n?(0,j.jsx)(n,{className:C(`size-5 shrink-0`,e.iconClassName),"aria-hidden":!0}):(0,j.jsx)(`span`,{className:C(`text-3xs font-semibold leading-none`,e.iconClassName),children:f(e.displayName)}),t[8]=n,t[9]=u,t[10]=c,t[11]=r,t[12]=e.displayName,t[13]=e.iconClassName,t[14]=p):p=t[14];let m;t[15]!==i||t[16]!==e.statusDotClassName?(m=e.statusDotClassName?(0,j.jsx)(`span`,{className:C(`pointer-events-none absolute -left-0.5 -top-0.5 z-10 size-2 rounded-full`,e.statusDotClassName),style:{boxShadow:`0 0 0 2px ${i}`},"aria-hidden":!0}):null,t[15]=i,t[16]=e.statusDotClassName,t[17]=m):m=t[17];let h;t[18]!==s||t[19]!==i||t[20]!==e.accentColor||t[21]!==e.badgeClassName||t[22]!==e.displayName||t[23]!==e.showBadge?(h=e.showBadge?(0,j.jsx)(`span`,{className:C(`pointer-events-none absolute right-0 bottom-0 z-10 flex h-3.5 min-w-3.5 items-center justify-center rounded-full border px-0.5 text-4xs font-semibold leading-none shadow-sm`,e.accentColor?`bg-(--provider-accent) text-white`:`bg-card text-muted-foreground`,e.badgeClassName),style:{borderColor:i},"aria-hidden":!0,children:s===`initials`?f(e.displayName):null}):null,t[18]=s,t[19]=i,t[20]=e.accentColor,t[21]=e.badgeClassName,t[22]=e.displayName,t[23]=e.showBadge,t[24]=h):h=t[24];let g;return t[25]!==o||t[26]!==e.accentColor||t[27]!==d||t[28]!==p||t[29]!==m||t[30]!==h?(g=(0,j.jsxs)(`span`,{className:d,style:o,"data-provider-accent-color":e.accentColor,children:[p,m,h]}),t[25]=o,t[26]=e.accentColor,t[27]=d,t[28]=p,t[29]=m,t[30]=h,t[31]=g):g=t[31],g});function Ke(e){let t=(0,A.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,j.jsx)(a,{className:`size-3.5`,"aria-hidden":`true`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,j.jsxs)(S,{variant:`ghost-muted`,size:`sm`,...e,onClick:qe,children:[`Manage usage`,n]}),t[1]=e,t[2]=r),r}function qe(){ee().shell.openExternal(F)}export{ae as S,X as _,F as a,me as b,ce as c,ve as d,oe as f,he as g,Y as h,Q as i,le as l,q as m,Ge as n,ge as o,ue as p,Ue as r,se as s,Ke as t,de as u,_e as v,pe as x,G as y};
|
|
2
|
-
//# sourceMappingURL=ChatGptUsageButton-CoiZRjaS.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{$i as n,Ca as r,Co as i,Eo as a,Fa as o,Ln as s,Na as c,Pn as l,Ra as u,So as ee,Ta as d,To as f,Va as p,_o as te,br as m,ea as h,ga as g,io as ne,lE as re,vo as ie,wo as ae,ya as oe,yo as se,zn as _}from"./utils-BctiQ4Ue.js";import{t as ce}from"./useRegisterFieldControl-CosvijuC.js";import{t as le}from"./FormContext-BWWAKTFF.js";import{t as ue}from"./useAriaLabelledBy-C0a8QEEb.js";import{t as de}from"./FieldItemContext-Bn6xBVJg.js";var v=e(t()),y=v.createContext(void 0);function fe(e=!0){let t=v.useContext(y);if(t===void 0&&!e)throw Error(a(3));return t}function pe(e){if(!e)return null;for(let t of e.elements){let e=t.tagName;if(e===`BUTTON`||e===`INPUT`){let e=t;if(e.type===`submit`)return e}}return null}var b=function(e){return e.checked=`data-checked`,e.unchecked=`data-unchecked`,e.indeterminate=`data-indeterminate`,e.disabled=`data-disabled`,e.readonly=`data-readonly`,e.required=`data-required`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({});function x(e){return v.useMemo(()=>({checked(t){return e.indeterminate?{}:t?{[b.checked]:``}:{[b.unchecked]:``}},..._}),[e.indeterminate])}var S=v.createContext(void 0);function C(){let e=v.useContext(S);if(e===void 0)throw Error(a(14));return e}var w=e(re()),me=`data-parent`,T=v.forwardRef(function(e,t){let{checked:a,className:te,defaultChecked:g=!1,"aria-labelledby":re,disabled:oe=!1,form:_,id:y,indeterminate:b=!1,inputRef:C,name:T,onCheckedChange:E,parent:D=!1,readOnly:O=!1,render:he,required:k=!1,uncheckedValue:A,value:j,nativeButton:M=!1,style:ge,..._e}=e,{clearErrors:ve}=le(),{disabled:ye,name:be,setDirty:xe,setFilled:N,setFocused:P,setTouched:Se,state:F,validationMode:Ce,validityData:we,shouldValidateOnChange:Te,validation:Ee}=s(),De=de(),{labelId:Oe,controlId:ke,registerControlId:I,getDescriptionProps:Ae}=l(),L=fe(),R=L?.parent,z=R&&L.allValues,B=ye||De.disabled||L?.disabled||oe,V=be??T,H=j??V,je=d(),Me=d(),U=ke;z?U=D?Me:`${R.id}-${H}`:y&&(U=y);let W={};z&&(D?W=L.parent.getParentProps():H&&(W=L.parent.getChildProps(H)));let{checked:Ne=a,indeterminate:G=b,onCheckedChange:Pe,...Fe}=W,K=L?.value,Ie=L?.setValue,Le=L?.defaultValue,q=v.useRef(null),J=f(()=>Symbol(`checkbox-control`)),Y=v.useRef(!1),{getButtonProps:Re,buttonRef:ze}=c({disabled:B,native:M}),X=L?.validation??Ee,[Z,Be]=p({controlled:H&&K&&!D?K.includes(H):Ne,default:H&&Le&&!D?Le.includes(H):g,name:`Checkbox`,state:`checked`});o(()=>{I!==i&&(Y.current=!0,I(J.current,U))},[U,I,J]),v.useEffect(()=>{let e=J.current;return()=>{Y.current&&I!==i&&(Y.current=!1,I(e,void 0))}},[I,J]),ce(q,je,Z,void 0,!L);let Q=v.useRef(null),Ve=ae(C,Q,X.inputRef),He=ue(re,Oe,Q,!M,U??void 0);o(()=>{Q.current&&(Q.current.indeterminate=G,Z&&N(!0))},[Z,G,N]),m(Z,()=>{(!L||D)&&(ve(V),N(Z),xe(Z!==we.initialValue),Te()?X.commit(Z):X.commit(Z,!0))});let Ue=se({checked:Z,disabled:B,form:_,name:D?void 0:V,id:M?void 0:U??void 0,required:k,ref:Ve,style:V?h:n,tabIndex:-1,type:`checkbox`,"aria-hidden":!0,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(O){e.preventDefault();return}let t=e.currentTarget.checked,n=r(ne,e.nativeEvent);if(Pe?.(t,n),E?.(t,n),!n.isCanceled&&(Be(t),H&&K&&Ie&&!D&&!z)){let e=t?[...K,H]:K.filter(e=>e!==H);Ie(e,n)}},onFocus(){q.current?.focus()}},j===void 0?ee:{value:(L?Z&&j:j)||``},Ae,L?X.getValidationProps:X.getInputValidationProps),We=z?!!Ne:Z,Ge=z&&G||b;v.useEffect(()=>{if(!R||!H)return;let e=R.disabledStatesRef.current;return e.set(H,B),()=>{e.delete(H)}},[R,B,H]);let $=v.useMemo(()=>({...F,checked:We,disabled:B,readOnly:O,required:k,indeterminate:Ge}),[F,We,B,O,k,Ge]),Ke=x($),qe=ie(`span`,e,{state:$,ref:[ze,q,t,L?.registerControlRef],props:[{id:M?U??void 0:je,role:`checkbox`,"aria-checked":G?`mixed`:Z,"aria-readonly":O||void 0,"aria-required":k||void 0,"aria-labelledby":He,[me]:D?``:void 0,onFocus(){P(!0)},onBlur(){let e=Q.current;e&&(Se(!0),P(!1),Ce===`onBlur`&&X.commit(L?K:e.checked))},onKeyDown(e){if(e.key!==`Enter`||(e.preventBaseUIHandler(),e.defaultPrevented))return;let t=Q.current?.form??null,n=e.currentTarget,r=e.nativeEvent,i=e.preventDefault,a=r.preventDefault,o=!1;e.preventDefault=()=>{o=!0,i.call(e)},r.preventDefault=()=>{o=!0,a.call(r)},a.call(r),u(n).queueMicrotask(()=>{e.preventDefault=i,r.preventDefault=a,o||pe(t)?.click()})},onClick(e){if(O||B)return;e.preventDefault();let t=Q.current;t&&t.dispatchEvent(new(u(t)).PointerEvent(`click`,{bubbles:!0,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey}))}},Ae,X.getValidationProps,_e,Fe,Re],stateAttributesMapping:Ke});return(0,w.jsxs)(S.Provider,{value:$,children:[qe,!Z&&!L&&V&&!D&&A!==void 0&&(0,w.jsx)(`input`,{type:`hidden`,form:_,name:V,value:A}),(0,w.jsx)(`input`,{...Ue,suppressHydrationWarning:!0})]})}),E=v.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,s=C(),c=s.checked||s.indeterminate,{mounted:l,transitionStatus:u,setMounted:ee}=oe(c),d=v.useRef(null),f={...s,transitionStatus:u};g({open:c,ref:d,onComplete(){c||ee(!1)}});let p={...x(s),...te,..._},m=a||l,h=ie(`span`,e,{ref:[t,d],state:f,stateAttributesMapping:p,props:o});return m?h:null});export{T as n,E as t};
|
|
2
|
-
//# sourceMappingURL=CheckboxIndicator-DcH9EpvK.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{$y as n,Kd as r,LT as i,NE as a,Yo as o,b_ as s,eh as c,hd as l,l as u,lE as d,n_ as f,nh as p,r_ as m,sr as h,t as g,vd as _}from"./utils-BctiQ4Ue.js";import{R as v,W as y}from"./runtime-DATbE5vH.js";import{C as b,O as x,S as ee,f as te,q as S}from"./useSettings-B_WzhJqU.js";import{f as C}from"./server-rxH1493J.js";import{i as w,n as ne}from"./session-Bgs0dTwK.js";import{n as re}from"./query-tgXMuDtS.js";import{t as T}from"./use-atom-command-BJxdfyHC.js";import{n as E,t as D}from"./radio-group-CJu78gKo.js";import{t as ie}from"./input-Df_UyHLk.js";import{a as ae,c as O,i as oe,r as se,s as ce,t as le}from"./dialog-YpQOq7Ug.js";import{x as k}from"./Icons-DzTpHpn1.js";import{t as ue}from"./preview-BnLuRquy.js";import{S as A,t as de}from"./ChatGptUsageButton-CoiZRjaS.js";import{a as fe}from"./settingsLayout-BQsOdImg.js";import{$i as j,Ji as M,Qn as pe,Xi as me,Yi as he,Zi as N,di as ge,ea as P,fi as F}from"./main-D8FWUaO_.js";var I=e(t(),1),L=a(),R=e(d(),1);function z(e){let t=(0,L.c)(7),n,r;t[0]===e?(n=t[1],r=t[2]):({children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,R.jsx)(k,{className:`size-4 shrink-0`,"aria-hidden":`true`}),t[3]=i):i=t[3];let a=n??`Continue with ChatGPT`,o;return t[4]!==r||t[5]!==a?(o=(0,R.jsxs)(h,{...r,children:[i,a]}),t[4]=r,t[5]=a,t[6]=o):o=t[6],o}function _e(e){let t=(0,L.c)(23),{open:n,methods:r,onClose:i,onSelect:a}=e,o=r.filter(ye),[s,c]=(0,I.useState)(null),l=s===`chatgpt-change-account`?s:o.find(e=>e.id===s)?.id??o[0]?.id??`chatgpt-change-account`,u=le,d;t[0]===i?d=t[1]:(d=e=>{e||i()},t[0]=i,t[1]=d);let f=ce,p;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,R.jsxs)(ae,{children:[(0,R.jsx)(O,{children:`Reconnect ChatGPT`}),(0,R.jsx)(se,{children:`On OpenAI, sign in with the account you choose here.`})]}),t[2]=p):p=t[2];let m=E,h;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(h=e=>c(e),t[3]=h):h=t[3];let g=o.map(ve),_;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,R.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-3 rounded-lg border px-3 py-3 text-sm`,children:[(0,R.jsx)(D,{value:`chatgpt-change-account`}),(0,R.jsx)(`span`,{className:`font-medium`,children:`Use a different account`})]}),t[4]=_):_=t[4];let v;t[5]!==m||t[6]!==l||t[7]!==h||t[8]!==g?(v=(0,R.jsx)(`div`,{className:`px-6 pb-6`,children:(0,R.jsxs)(m,{"aria-label":`ChatGPT account to connect`,value:l,onValueChange:h,children:[g,_]})}),t[5]=m,t[6]=l,t[7]=h,t[8]=g,t[9]=v):v=t[9];let y;t[10]!==a||t[11]!==l?(y=(0,R.jsx)(oe,{children:(0,R.jsx)(z,{onClick:()=>a(l)})}),t[10]=a,t[11]=l,t[12]=y):y=t[12];let b;t[13]!==f||t[14]!==p||t[15]!==v||t[16]!==y?(b=(0,R.jsxs)(f,{children:[p,v,y]}),t[13]=f,t[14]=p,t[15]=v,t[16]=y,t[17]=b):b=t[17];let x;return t[18]!==u||t[19]!==n||t[20]!==d||t[21]!==b?(x=(0,R.jsx)(u,{open:n,onOpenChange:d,children:b}),t[18]=u,t[19]=n,t[20]=d,t[21]=b,t[22]=x):x=t[22],x}function ve(e){return(0,R.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-3 rounded-lg border px-3 py-3 text-sm`,children:[(0,R.jsx)(D,{value:e.id}),(0,R.jsx)(`span`,{className:`min-w-0 break-all font-medium`,children:e.name})]},e.id)}function ye(e){return e.id.startsWith(`chatgpt-profile:`)}function be(e){let t=(0,L.c)(36),{environmentId:n,onClose:r,renderSetup:i,onAccountCreated:a}=e,c=w(n,s),l=te(n),d;t[0]===n?d=t[1]:(d=C.providersValueAtom(n),t[0]=n,t[1]=d);let p=o(d),g=T(C.updateSettings,`Add ChatGPT account`),[_,v]=(0,I.useState)(`Personal`),y;t[2]===_?y=t[3]:(y=_.trim(),t[2]=_,t[3]=y);let b=`ChatGPT - ${y}`,[x,ee]=(0,I.useState)(null),[S,re]=(0,I.useState)(!1),E=p?.find(e=>e.instanceId===x),D=A(E),ae=(0,I.useEffectEvent)(r);(0,I.useEffect)(()=>{D&&ae()},[D]);let O;t[4]!==b||t[5]!==n||t[6]!==_||t[7]!==a||t[8]!==r||t[9]!==S||t[10]!==l||t[11]!==g?(O=async()=>{if(S||!_.trim()||!ne(n,`providers:manage`))return;re(!0);let e=m.make(`codex_${u()}`);(await g({environmentId:n,input:{patch:{providerInstances:{...l.providerInstances,[e]:{driver:f.make(`codex`),displayName:b,enabled:!0,config:{enabled:!0,setupMode:`managed`}}}}}}))._tag===`Success`&&(a?(a(e,b),r()):ee(e)),re(!1)},t[4]=b,t[5]=n,t[6]=_,t[7]=a,t[8]=r,t[9]=S,t[10]=l,t[11]=g,t[12]=O):O=t[12];let oe=O,se=le,ce=!D,k;t[13]===r?k=t[14]:(k=e=>{e||r()},t[13]=r,t[14]=k);let ue=N,de=x?b:`Add ChatGPT account`,j;t[15]===de?j=t[16]:(j=(0,R.jsx)(he,{title:de,description:`Each account has its own Codex instance and sign-in. Choose the other account on the sign-in page.`}),t[15]=de,t[16]=j);let pe=me,ge=x?E?.setup?i(x,E):(0,R.jsx)(fe,{title:`Codex runtime`,description:`Preparing managed setup.`}):(0,R.jsx)(`form`,{id:`add-codex-account`,onSubmit:e=>{e.preventDefault(),oe()},children:(0,R.jsx)(fe,{title:`Account name`,description:`Shown in the provider list and model picker.`,control:(0,R.jsx)(ie,{"aria-label":`Account name`,value:_,disabled:S,onChange:e=>v(e.target.value),placeholder:`e.g. Personal or Work`})})}),P;t[17]!==pe||t[18]!==ge?(P=(0,R.jsx)(pe,{children:ge}),t[17]=pe,t[18]=ge,t[19]=P):P=t[19];let F;t[20]!==c||t[21]!==x||t[22]!==_||t[23]!==r||t[24]!==S?(F=(0,R.jsx)(M,{children:x?(0,R.jsx)(h,{variant:`outline`,onClick:r,children:`Finish later`}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(h,{variant:`outline`,disabled:S,onClick:r,children:`Cancel`}),(0,R.jsx)(h,{type:`submit`,form:`add-codex-account`,disabled:S||!_.trim()||!c,children:S?`Adding account…`:`Continue`})]})}),t[20]=c,t[21]=x,t[22]=_,t[23]=r,t[24]=S,t[25]=F):F=t[25];let z;t[26]!==ue||t[27]!==P||t[28]!==F||t[29]!==j?(z=(0,R.jsxs)(ue,{size:`wide`,children:[j,P,F]}),t[26]=ue,t[27]=P,t[28]=F,t[29]=j,t[30]=z):z=t[30];let _e;return t[31]!==se||t[32]!==z||t[33]!==ce||t[34]!==k?(_e=(0,R.jsx)(se,{open:ce,onOpenChange:k,children:z}),t[31]=se,t[32]=z,t[33]=ce,t[34]=k,t[35]=_e):_e=t[35],_e}var xe=n(c),Se=n(p),Ce=/^[A-Za-z0-9_./:\\-]+$/;function we(e,t,n){return Ce.test(e)&&(n===`windows`||!e.includes(`\\`))?e:n===`windows`?`& '${e.replaceAll(`'`,`''`)}'`:n===`darwin`||n===`linux`?e.startsWith(`~/`)||e.startsWith(`~\\`)?`~/'${e.slice(2).replaceAll(`'`,`'"'"'`)}'`:`'${e.replaceAll(`'`,`'"'"'`)}'`:t}function Te(e){return e===void 0?`checking`:!e.enabled||e.status===`disabled`?`disabled`:!e.installed&&e.status===`warning`&&e.auth.status===`unknown`?`checking`:e.installed?e.auth.status===`unauthenticated`?`signIn`:e.status===`ready`?`ready`:`attention`:`install`}var B={checking:0,disabled:1,install:2,attention:3,signIn:4,ready:5};function V(e){let t=new Map;for(let n of e??[]){let e=t.get(n.driver);(e===void 0||B[Te(n)]>B[Te(e)])&&t.set(n.driver,n)}return t}var Ee={claudeAgent:{windows:`irm https://claude.ai/install.ps1 | iex`,posix:`curl -fsSL https://claude.ai/install.sh | bash`},codex:{windows:`irm https://chatgpt.com/codex/install.ps1 | iex`,posix:`curl -fsSL https://chatgpt.com/codex/install.sh | sh`}};function De(e,t){let n=Ee[e];return t===`windows`?n.windows:n.posix}function Oe(e,t,n){let r=t.providerInstances[e.instanceId];if(e.driver===`claudeAgent`){let e=xe(r?.config??{});return`${we(i(e)?e.value.binaryPath:`claude`,`claude`,n)} auth login`}if(e.driver===`codex`){let e=Se(r?.config??{});return`${we(i(e)?e.value.binaryPath:`codex`,`codex`,n)} login`}return e.driver}var ke={disabled:{dot:`bg-muted-foreground/50`},error:{dot:`bg-destructive`},ready:{dot:`bg-success`},warning:{dot:`bg-warning`}};function H(e){if(!e)return{headline:`Checking provider status`,detail:`Waiting for the server to report installation and authentication details.`};if(!e.enabled||e.status===`disabled`)return{headline:`Disabled`,detail:e.message??`This provider is installed but disabled for new sessions in P4 Code.`};if(!e.installed)return{headline:`Not found`,detail:e.message??`CLI not detected on PATH.`};if(e.auth.status===`unauthenticated`){let t=e.auth.label??e.auth.type;return{headline:t?`Not authenticated · ${t}`:`Not authenticated`,detail:e.message??null}}if(e.status===`warning`)return{headline:`Needs attention`,detail:e.message??`The provider is installed, but the server could not fully verify it.`};if(e.status===`error`)return{headline:`Unavailable`,detail:e.message??`The provider failed its startup checks.`};if(e.auth.status===`authenticated`){let t=e.auth.label??e.auth.type;return{headline:t?`Authenticated · ${t}`:`Authenticated`,detail:e.message??null}}return{headline:`Available`,detail:e.message??null}}function U(e){if(!e)return null;let t=/^agy_acp_server_(\d{4})(\d{2})(\d{2})_\d+(?:_(\w+))?$/.exec(e);if(t){let[,e,n,r,i]=t;return`${e}-${n}-${r}${i?` ${i}`:``}`}return/^\d/.test(e)?`v${e}`:e}var Ae={graceful:`Limited support`,unsupported:`Unsupported version`,broken:`Known broken version`};function je(e,t,n=!0){let r=t?.latestVersionStatus===`broken`||t?.latestVersionStatus===`unsupported`;if(n&&t&&(t.status===`graceful`||t.status===`unsupported`||t.status===`broken`)){let n=t.recommendedVersion,i=U(n)??t.recommendedRange;return{title:Ae[t.status],detail:t.message??(i?`Use ${i} for full support.`:`Update for full support.`),updateCommand:n||r?null:e?.updateCommand??null,emphasis:t.status===`graceful`?`normal`:`strong`,targetVersion:n}}if(!e||e.status===`current`||e.status===`unknown`||r)return null;let i=`Update available`,a=e.latestVersion,o=U(a);return{title:i,detail:e.message??(o?`${i}: install ${o}.`:`${i}: install the latest provider version.`),updateCommand:e.updateCommand,emphasis:`normal`,targetVersion:null}}var Me=()=>void 0;function Ne(e){let t=(0,L.c)(11),[n,r]=(0,I.useState)(!1),i;t[0]===e.provider?i=t[1]:(i=Te(e.provider),t[0]=e.provider,t[1]=i);let a=i,o=e.enabled&&a===`ready`,s=e.provider?.auth.status===`authenticated`,c=a===`checking`,u;t[2]===e.provider?u=t[3]:(u=H(e.provider),t[2]=e.provider,t[3]=u);let d=u,f;return t[4]!==s||t[5]!==c||t[6]!==o||t[7]!==d||t[8]!==e||t[9]!==n?(f=e.mode===`existing`&&e.presentation===`onboarding`?(0,R.jsx)(Le,{title:e.displayName||e.provider?.displayName||`Codex`,description:o?e.provider?.auth.email?.trim()?(0,R.jsxs)(R.Fragment,{children:[`Signed in as`,` `,(0,R.jsx)(pe,{value:e.provider.auth.email.trim(),ariaLabel:`Toggle account email visibility`,revealTooltip:`Click to reveal email`,hideTooltip:`Click to hide email`,className:`break-all`}),`.`]}):`Connected with your Codex CLI.`:c?`Checking your Codex CLI...`:e.provider?.installed?d.headline:`Code with your ChatGPT subscription.`,control:o?(0,R.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-xs font-medium text-success-foreground`,children:[(0,R.jsx)(l,{className:`size-3.5`}),`Ready`]}):c?(0,R.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Checking...`}):s?(0,R.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:d.headline}):(0,R.jsx)(z,{size:`sm`,disabled:e.readOnly,onClick:()=>{r(!0),e.onModeChange(`managed`)},children:`Continue with ChatGPT`}),secondaryControl:!s&&!o&&!c?(0,R.jsx)(h,{size:`sm`,variant:`ghost-muted`,onClick:()=>e.onModeChange(`existing`),children:`Use existing CLI`}):null}):e.mode===`existing`?null:e.provider?.setup===void 0?e.presentation===`onboarding`?(0,R.jsx)(Le,{title:e.displayName||e.provider?.displayName||`Codex`,description:(0,R.jsx)(Ie,{}),control:(0,R.jsx)(h,{size:`sm`,variant:`outline`,className:`min-w-44`,disabled:!0,children:`Open sign-in page`}),secondaryControl:(0,R.jsx)(h,{size:`sm`,variant:`ghost-muted`,disabled:!0,children:`Cancel`})}):(0,R.jsx)(fe,{title:`ChatGPT account`,description:`Preparing sign-in.`}):(0,R.jsx)(Fe,{...e,autoStart:n||e.autoStart===!0,onAutoStartConsumed:()=>{r(!1),e.onAutoStartConsumed?.()}},`${e.environmentId}:${e.instanceId}`),t[4]=s,t[5]=c,t[6]=o,t[7]=d,t[8]=e,t[9]=n,t[10]=f):f=t[10],f}function Pe(e){let t=(0,L.c)(9),{environmentId:n,onClose:r,onAccountCreated:i}=e,a=w(n,s),o;t[0]!==a||t[1]!==n||t[2]!==r?(o=(e,t)=>(0,R.jsx)(Fe,{environmentId:n,instanceId:e,provider:t,mode:`managed`,enabled:!0,readOnly:!a,autoStart:!0,onAutoStartConsumed:Me,onModeChange:Me,onSignInCancelled:r,allowExistingCli:!1},e),t[0]=a,t[1]=n,t[2]=r,t[3]=o):o=t[3];let c;return t[4]!==n||t[5]!==i||t[6]!==r||t[7]!==o?(c=(0,R.jsx)(be,{environmentId:n,onClose:r,onAccountCreated:i,renderSetup:o}),t[4]=n,t[5]=i,t[6]=r,t[7]=o,t[8]=c):c=t[8],c}function Fe({environmentId:e,instanceId:t,provider:n,enabled:i,readOnly:a,onModeChange:o,autoStart:s,onAutoStartConsumed:c,allowExistingCli:u=!0,presentation:d,displayName:f,onSignInCancelled:p}){let m={environmentId:e,input:{instanceId:t}},_=re(C.providerAuthState(m)),te=re(C.providerInstallState(m)),[w,ne]=(0,I.useState)(null),E=re(w?C.chatGptHandoffState(w):null),D=E.data?.phase===`auth`?E.data.state:_.data,[ae,O]=(0,I.useState)(!1),[oe,se]=(0,I.useState)(`chatgpt`),ce=D?.methods?.find(e=>e.id===`chatgpt`)?.accountEmail,le=D?.methods?.find(e=>e.id===oe)?.accountEmail,k=D?.methods?.some(e=>e.id.startsWith(`chatgpt-profile:`)),A=D?.interaction?.type===`browser`?D.interaction.url:D?.authorizationUrl,M=te.data,me=b(e),he=me!==null&&ue(new URL(me).hostname),N={reportFailure:!1,reportDefect:!1},L=T(C.startProviderAuth,N),ve=T(C.refreshProviders,N),ye=T(C.completeProviderAuth,N),be=T(C.cancelProviderAuth,N),xe=T(C.logoutProviderAuth,N),Se=T(C.startProviderInstall,N),Ce=T(C.cancelProviderInstall,N),we=T(C.chatGptReconnectProfile,N),Te=T(C.chatGptImportProfile,N),B=!w&&(!he||window.desktopBridge?.receiveProviderAuthCallback!==void 0),V=B&&!window.desktopBridge?.receiveProviderAuthCallback,Ee=x(),De=ee(Ee),Oe=b(Ee),ke=!he&&Ee&&De?.connection.phase===`connected`&&Oe&&ue(new URL(Oe).hostname)&&(window.desktopBridge!==void 0||ue(window.location.hostname))?Ee:null,H=new URL(window.location.href);H.pathname===`/welcome`&&(H.hash=`agents:${e}`),H.pathname===`/settings/providers`&&H.searchParams.set(`instanceId`,t);let U=V,Ae=(0,I.useId)(),[je,Me]=(0,I.useState)(!1),[Ne,Pe]=(0,I.useState)({flowId:``,value:``}),Fe=Ne.flowId===D?.flowId?Ne.value:``,[W,Re]=(0,I.useState)(!1),[ze,Be]=(0,I.useState)(null),Ve=(0,I.useRef)(!1),[He,Ue]=(0,I.useState)(null),G=(0,I.useRef)(null),K=(0,I.useRef)(!1),We=(0,I.useRef)(null),[Ge,Ke]=(0,I.useState)(!1),q=M?.installedVersion!=null,J=n?.auth.status===`authenticated`,qe=q&&M?.source!==`local`&&M?.version!=null&&M.version!==M.installedVersion,Je=ze!==null&&!J&&(D?.phase===`succeeded`||ze===`handoff`);(0,I.useEffect)(()=>{(J||D?.phase===`failed`||D?.phase===`cancelled`)&&Be(null)},[J,D?.phase]),(0,I.useEffect)(()=>{ze&&D?.phase===`succeeded`&&ve({environmentId:e,input:{instanceId:t}})},[ze,D?.phase,ve,e,t]);let Ye=s&&!Ge,Xe=ze===`sign-in`&&!J&&(D===null||D.phase===`idle`),Ze=Je||Xe||w!==null||D?.phase===`starting`||D?.phase===`waiting`||D?.phase===`verifying`,Y=M?.phase===`downloading`||M?.phase===`extracting`||M?.phase===`verifying`,X=Ye||Ze||W&&!Y,Z=a||!i||W||_.error!==null||te.error!==null,Q=W||Ze||Y,$=(0,I.useCallback)(async(e,t)=>{if(Ve.current)return!1;Ve.current=!0,Re(!0),Ue(null);let n=!1;try{let r=await e();if(r._tag===`Failure`){if(!v(r)){let e=y(r);Ue(e instanceof Error?e.message:`Codex setup failed. Try again.`)}}else n=!0,t?.(r.value)}catch{Ue(`Codex setup failed. Try again.`)}return Ve.current=!1,Re(!1),n},[]),Qe=(0,I.useId)(),$e=(0,I.useRef)(0),et=(0,I.useRef)(null),[tt,nt]=(0,I.useState)(!1),rt=(0,I.useCallback)(async n=>{let r=await $(()=>Te({environmentId:e,input:{instanceId:t,profile:n}}));r&&(Be(`handoff`),ne(null)),nt(!r)},[$,Te,e,t]);(0,I.useEffect)(()=>{if(!w||E.data?.phase!==`finished`)return;let e=w.input.attemptId;et.current!==e&&(et.current=e,rt(E.data.profile))},[w,E.data,rt]),(0,I.useEffect)(()=>{w&&(E.error||E.data?.phase===`auth`&&[`failed`,`cancelled`].includes(E.data.state.phase))&&(Ue(E.data?.phase===`auth`?E.data.state.message??`ChatGPT sign-in could not finish. Try again.`:`ChatGPT sign-in on the primary environment was interrupted. Try again.`),ne(null))},[w,E.data,E.error]);let it=(0,I.useCallback)(()=>(Be(null),w?(ne(null),Promise.resolve()):$(()=>be({environmentId:e,input:{instanceId:t,flowId:D.flowId}}))),[w,$,be,e,t,D]),at=(0,I.useCallback)(async(n=`chatgpt`)=>{if(Ve.current)return;K.current=!0,nt(!1),se(n);let r=new URL(window.location.href);if(r.pathname===`/welcome`&&(r.hash=`agents:${e}`),r.pathname===`/settings/providers`&&r.searchParams.set(`instanceId`,t),ke){let i=`${Qe}:${++$e.current}`;await $(()=>we({environmentId:e,input:{instanceId:t,methodId:n}}),n=>ne({environmentId:ke,input:{instanceId:t,environmentId:e,attemptId:i,returnUrl:r.toString(),profile:n}}))||(K.current=!1);return}await $(()=>L({environmentId:e,input:{instanceId:t,methodId:n,returnUrl:r.toString(),callbackMode:B?`client`:`server`}}),()=>Be(`sign-in`))||(K.current=!1)},[e,t,$,L,B,ke,we,Qe]),ot=(0,I.useCallback)(async(n=`chatgpt`)=>{Z||Q||(q&&!qe?await at(n):(G.current=n,await $(()=>Se({environmentId:e,input:{instanceId:t}}))||(G.current=null)))},[Z,Q,q,qe,at,$,Se,e,t]);(0,I.useEffect)(()=>{!s||Ge||Z||Q||M===null||!n?.setup?.canInstall||(Ke(!0),c(),ot())},[s,Ge,Z,Q,M,n?.setup?.canInstall,c,ot]),(0,I.useEffect)(()=>{if(!(!G.current||W||Y)){if(M?.phase===`failed`||M?.phase===`cancelled`)G.current=null;else if(q){let e=G.current;G.current=null,at(e)}}},[W,Y,M?.phase,q,at]);let st=(0,I.useRef)(null),ct=D?.flowId,lt=(0,I.useCallback)(async n=>{try{let r=window.desktopBridge?.receiveProviderAuthCallback;if(r&&B&&ct){if(st.current===n){await S().shell.openExternal(n);return}st.current=n;let i=await r(n);if(st.current!==n)return;st.current=null,await $(()=>ye({environmentId:e,input:{instanceId:t,flowId:ct,callbackUrl:i}}))}else await S().shell.openExternal(n)}catch{Ue(`Could not finish sign-in on this computer. Try again or paste the redirect URL below.`)}},[B,ct,$,ye,e,t]);(0,I.useEffect)(()=>{if(B&&A&&window.desktopBridge?.cancelProviderAuthCallback)return()=>{st.current===A&&(st.current=null),window.desktopBridge?.cancelProviderAuthCallback?.(A).catch(()=>void 0)}},[B,A]),(0,I.useEffect)(()=>{K.current&&D?.phase===`waiting`&&D.flowId&&A&&We.current!==D.flowId&&(We.current=D.flowId,K.current=!1,V||lt(A))},[D?.phase,D?.flowId,A,lt,V]);let ut=M?.phase===`downloading`?`Downloading ${(M.downloadedBytes/1e6).toFixed(1)}${M.totalBytes===null?``:` of ${(M.totalBytes/1e6).toFixed(1)}`} MB.`:M?.phase===`extracting`?`Installing Codex.`:M?.phase===`verifying`?`Checking Codex.`:q?`${M?.source===`local`?`Using your installed Codex`:`Managed by P4 Code`}${M?.installedVersion?` · v${M.installedVersion}`:``}.`:M?.message??`P4 Code downloads and manages Codex for you.`,dt=Je?`Finishing sign-in...`:Y?ut:X||D?.phase===`failed`||D?.phase===`cancelled`?D?.phase===`waiting`&&le?`Continue as ${le} on OpenAI.`:D?.message??`Finish signing in in your browser.`:J?n?.auth.email?.trim()?(0,R.jsxs)(R.Fragment,{children:[`Signed in as`,` `,(0,R.jsx)(pe,{value:n.auth.email.trim(),ariaLabel:`Toggle account email visibility`,revealTooltip:`Click to reveal email`,hideTooltip:`Click to hide email`}),`.`]}):`Signed in with ChatGPT.`:ce??`Use your ChatGPT subscription.`,ft=U&&A&&D?.flowId&&F(H.toString())?ge({authorizationUrl:A,returnUrl:H.toString(),environmentId:e,instanceId:t,flowId:D.flowId},!1):null,pt=(0,R.jsx)(h,{size:`sm`,variant:V?`default`:`outline`,className:d===`onboarding`?`min-w-44`:void 0,disabled:E.data?.phase===`finished`?W||!tt:!A||D?.phase!==`waiting`,onClick:()=>{E.data?.phase===`finished`?rt(E.data.profile):A&<(A)},children:Je?`Finishing sign-in...`:E.data?.phase===`finished`?tt?`Retry connection`:`Finishing sign-in...`:D?.phase===`waiting`?V?`Open ChatGPT sign-in`:`Open sign-in page`:d===`onboarding`?`Open sign-in page`:`Signing in...`}),mt=!w&&D?.phase===`waiting`&&A?(0,R.jsxs)(`div`,{className:`flex w-full flex-col gap-3 text-xs leading-relaxed text-muted-foreground`,children:[(0,R.jsx)(`p`,{children:`If sign-in doesn't return to P4 Code, paste the URL from the final localhost page.`}),(0,R.jsxs)(`form`,{className:`flex flex-col gap-2 sm:flex-row sm:items-center`,onSubmit:n=>{if(n.preventDefault(),!D.flowId||!Fe.trim())return;let r=Fe.trim(),i=D.flowId;$(()=>ye({environmentId:e,input:{instanceId:t,flowId:i,callbackUrl:r}})).then(e=>{e&&Pe({flowId:i,value:``})})},children:[(0,R.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,R.jsx)(ie,{"aria-label":`ChatGPT sign-in redirect URL`,type:`password`,autoComplete:`off`,placeholder:`Paste the URL from the sign-in tab`,value:Fe,maxLength:16384,disabled:W||a,onChange:e=>Pe({flowId:D.flowId??``,value:e.target.value})})}),(0,R.jsx)(h,{variant:`outline`,type:`submit`,disabled:W||a||!Fe.trim(),children:`Connect`})]}),V?null:(0,R.jsx)(`div`,{children:(0,R.jsxs)(h,{size:`xs`,variant:`ghost-muted`,onClick:()=>void S().shell.openExternal(A),children:[`Try sign-in in your browser`,(0,R.jsx)(r,{className:`size-3.5`})]})}),ft?(0,R.jsxs)(`details`,{children:[(0,R.jsx)(`summary`,{className:`cursor-pointer`,children:`Other ways to connect`}),(0,R.jsx)(h,{className:`mt-2`,size:`sm`,variant:`outline`,render:(0,R.jsx)(`a`,{href:ft}),children:`Use P4 Code desktop for automatic return`})]}):null]}):null,ht=e=>mt?(0,R.jsx)(j,{open:je,children:(0,R.jsx)(P,{children:(0,R.jsx)(`div`,{id:Ae,className:g(`w-full border-t border-border/50 pt-3`,e),children:mt})})}):null,gt=U?mt:mt?(0,R.jsxs)(`div`,{className:`text-xs leading-relaxed text-muted-foreground`,children:[(0,R.jsx)(Ie,{label:`Having trouble signing in?`,expanded:je,controls:Ae,onToggle:()=>Me(e=>!e)}),ht(`mt-3`)]}):null,_t=(0,R.jsx)(_e,{open:ae,methods:D?.methods??[],onClose:()=>O(!1),onSelect:e=>{O(!1),ot(D?.methods?.some(t=>t.id===e)?e:`chatgpt-change-account`)}}),vt=D?.phase===`idle`&&D.message?.startsWith(`Signed out locally.`)?D.message:null;if(d===`onboarding`){let r=vt??He??(_.error||te.error?`Could not read setup status. Reconnect and try again.`:M?.phase===`failed`?M.message:null);return(0,R.jsxs)(R.Fragment,{children:[_t,(0,R.jsxs)(Le,{title:f||n?.displayName||`Codex`,description:Y?ut:J?n?.auth.email?.trim()?(0,R.jsxs)(R.Fragment,{children:[`Signed in as`,` `,(0,R.jsx)(pe,{value:n.auth.email.trim(),ariaLabel:`Toggle account email visibility`,revealTooltip:`Click to reveal email`,hideTooltip:`Click to hide email`,className:`break-all`}),`.`]}):`Connected to ChatGPT.`:mt&&!U?(0,R.jsx)(Ie,{expanded:je,controls:Ae,onToggle:()=>Me(e=>!e)}):Ye||Xe||D?.phase===`starting`||D?.phase===`waiting`||W&&!Y?(0,R.jsx)(Ie,{}):X||D?.phase===`failed`||D?.phase===`cancelled`?dt:`Code with your ChatGPT subscription.`,control:J&&!Q?(0,R.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-xs font-medium text-success-foreground`,children:[(0,R.jsx)(l,{className:`size-3.5`}),`Ready`]}):X?pt:(0,R.jsx)(z,{size:`sm`,disabled:Z||Q||(q?!n?.setup?.canAuthenticate:!n?.setup?.canInstall),onClick:()=>{k?O(!0):ot()},children:Y||W?`Setting up...`:k?`Reconnect account`:`Continue with ChatGPT`}),secondaryControl:X&&!Je||Y?(0,R.jsx)(h,{size:`sm`,variant:`ghost-muted`,disabled:W||a,onClick:()=>{K.current=!1,G.current=null,w||X&&D?.flowId?it():M?.operationId&&$(()=>Ce({environmentId:e,input:{instanceId:t,operationId:M.operationId}}))},children:`Cancel`}):!X&&!J&&k?(0,R.jsx)(h,{size:`sm`,variant:`ghost-muted`,disabled:Z||Q,onClick:()=>void ot(`chatgpt-change-account`),children:`Use a different account`}):!X&&!J&&u?(0,R.jsx)(h,{size:`sm`,variant:`ghost-muted`,disabled:a||Q,onClick:()=>o(`existing`),children:`Use existing CLI`}):null,children:[U?gt:ht(),r?(0,R.jsx)(`p`,{role:`alert`,className:`text-xs text-destructive`,children:r}):null]})]})}return(0,R.jsxs)(`section`,{"aria-label":`Codex setup`,className:`divide-y divide-border/50`,children:[_t,(0,R.jsx)(fe,{title:`ChatGPT account`,description:dt,control:(0,R.jsx)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:X?(0,R.jsxs)(R.Fragment,{children:[pt,!Je&&(0,R.jsx)(h,{size:`sm`,variant:`ghost`,disabled:W||a,onClick:()=>{(w||D?.flowId)&&(K.current=!1,it(),p?.())},children:`Cancel`})]}):Y?(0,R.jsx)(h,{size:`sm`,variant:`ghost`,disabled:W||a,onClick:()=>{M?.operationId&&(G.current=null,$(()=>Ce({environmentId:e,input:{instanceId:t,operationId:M.operationId}})))},children:`Cancel`}):J?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(h,{size:`sm`,variant:`outline`,disabled:Z||Q,onClick:()=>O(!0),children:`Change account`}),(0,R.jsx)(h,{size:`sm`,variant:`ghost`,disabled:Z||Q,onClick:()=>void $(()=>xe(m)),children:`Disconnect`})]}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(z,{size:`sm`,disabled:Z||Q||(q?!n?.setup?.canAuthenticate:!n?.setup?.canInstall),onClick:()=>{k?O(!0):ot()},children:W?`Setting up...`:k?`Reconnect account`:`Continue with ChatGPT`}),k?(0,R.jsx)(h,{size:`sm`,variant:`ghost`,disabled:Z||Q,onClick:()=>void ot(`chatgpt-change-account`),children:`Use a different account`}):null]})})}),J?(0,R.jsx)(`div`,{className:`flex justify-end px-3 py-1 sm:px-4`,children:(0,R.jsx)(de,{})}):null,vt?(0,R.jsx)(`p`,{role:`alert`,className:`px-3 py-2 text-xs text-muted-foreground sm:px-4`,children:vt}):null,gt?(0,R.jsx)(`div`,{className:`px-3 py-3 sm:px-4`,children:gt}):null,He||_.error||te.error||M?.phase===`failed`?(0,R.jsx)(`p`,{role:`alert`,className:`px-3 py-2 text-xs text-destructive sm:px-4`,children:He??(M?.phase===`failed`?M.message:`Could not read Codex setup status. Reconnect and try again.`)}):null]})}function W(e){let t=(0,L.c)(20),{environmentId:n,instanceId:r,provider:i}=e,a;t[0]!==n||t[1]!==r?(a=C.providerInstallState({environmentId:n,input:{instanceId:r}}),t[0]=n,t[1]=r,t[2]=a):a=t[2];let o=re(a),s=o.data?.executablePath??``,c=o.error?`Could not read runtime path`:`Not installed`,l;t[3]!==s||t[4]!==c?(l=(0,R.jsx)(fe,{title:`Binary path`,description:`Selected by P4 Code.`,control:(0,R.jsx)(`div`,{className:`w-full sm:w-80`,children:(0,R.jsx)(ie,{"aria-label":`Codex binary path`,value:s,title:s,placeholder:c,disabled:!0})})}),t[3]=s,t[4]=c,t[5]=l):l=t[5];let u=i?.runtimePaths?.homePath??``,d=i?.runtimePaths?.homePath,f;t[6]!==u||t[7]!==d?(f=(0,R.jsx)(fe,{title:`CODEX_HOME path`,description:`Shared Codex config, sessions, and state.`,control:(0,R.jsx)(`div`,{className:`w-full sm:w-80`,children:(0,R.jsx)(ie,{"aria-label":`Codex home path`,value:u,title:d,placeholder:`Unavailable`,disabled:!0})})}),t[6]=u,t[7]=d,t[8]=f):f=t[8];let p=i?.runtimePaths?.shadowHomePath?`Account-specific home sharing the Codex state above.`:`This instance uses the shared Codex home directly.`,m=i?.runtimePaths?.shadowHomePath??``,h=i?.runtimePaths?.shadowHomePath??void 0,g=i?.runtimePaths?`Not used`:`Unavailable`,_;t[9]!==g||t[10]!==m||t[11]!==h?(_=(0,R.jsx)(`div`,{className:`w-full sm:w-80`,children:(0,R.jsx)(ie,{"aria-label":`Codex shadow home path`,value:m,title:h,placeholder:g,disabled:!0})}),t[9]=g,t[10]=m,t[11]=h,t[12]=_):_=t[12];let v;t[13]!==_||t[14]!==p?(v=(0,R.jsx)(fe,{title:`Shadow home path`,description:p,control:_}),t[13]=_,t[14]=p,t[15]=v):v=t[15];let y;return t[16]!==v||t[17]!==l||t[18]!==f?(y=(0,R.jsxs)(R.Fragment,{children:[l,f,v]}),t[16]=v,t[17]=l,t[18]=f,t[19]=y):y=t[19],y}function Ie(e){let t=(0,L.c)(10),{label:n,expanded:r,controls:i,onToggle:a}=e,o=n===void 0?`Complete sign-in in your browser.`:n,s=r!==void 0&&r;if(!a){let e;return t[0]===o?e=t[1]:(e=(0,R.jsx)(`div`,{className:`leading-relaxed`,children:o}),t[0]=o,t[1]=e),e}let c=`size-3 shrink-0 ${s?`rotate-90`:``}`,l;t[2]===c?l=t[3]:(l=(0,R.jsx)(_,{"aria-hidden":!0,className:c}),t[2]=c,t[3]=l);let u;return t[4]!==i||t[5]!==s||t[6]!==o||t[7]!==a||t[8]!==l?(u=(0,R.jsxs)(`button`,{type:`button`,className:`inline-flex items-center gap-1.5 rounded-sm text-left leading-relaxed outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring`,"aria-label":`Having trouble signing in?`,"aria-expanded":s,"aria-controls":i,onClick:a,children:[o,l]}),t[4]=i,t[5]=s,t[6]=o,t[7]=a,t[8]=l,t[9]=u):u=t[9],u}function Le(e){let t=(0,L.c)(21),{title:n,description:r,control:i,secondaryControl:a,children:o}=e,s;t[0]===o?s=t[1]:(s=I.Children.toArray(o),t[0]=o,t[1]=s);let c=s,l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,R.jsx)(k,{className:`size-5 shrink-0 fill-foreground`}),t[2]=l):l=t[2];let u;t[3]===n?u=t[4]:(u=(0,R.jsx)(`h3`,{className:`text-sm font-medium`,children:n}),t[3]=n,t[4]=u);let d;t[5]===r?d=t[6]:(d=(0,R.jsx)(`div`,{className:`mt-0.5 text-xs leading-relaxed text-muted-foreground`,children:r}),t[5]=r,t[6]=d);let f;t[7]!==u||t[8]!==d?(f=(0,R.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[u,d]}),t[7]=u,t[8]=d,t[9]=f):f=t[9];let p;t[10]!==i||t[11]!==a?(p=i||a?(0,R.jsxs)(`div`,{className:`flex shrink-0 flex-wrap items-center justify-end gap-2 has-[button]:w-full has-[button]:flex-col-reverse has-[button]:items-end sm:has-[button]:w-auto sm:has-[button]:flex-row sm:has-[button]:items-center`,children:[a,i]}):null,t[10]=i,t[11]=a,t[12]=p):p=t[12];let m;t[13]!==f||t[14]!==p?(m=(0,R.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[l,f,p]}),t[13]=f,t[14]=p,t[15]=m):m=t[15];let h;t[16]===c?h=t[17]:(h=c.length>0?(0,R.jsx)(`div`,{className:`ml-8 mt-2 flex flex-wrap items-center gap-2`,children:c}):null,t[16]=c,t[17]=h);let g;return t[18]!==m||t[19]!==h?(g=(0,R.jsxs)(`div`,{className:`rounded-lg border border-border bg-background px-4 py-4`,children:[m,h]}),t[18]=m,t[19]=h,t[20]=g):g=t[20],g}function Re(e){return typeof e==`object`&&e&&`setupMode`in e&&e.setupMode===`managed`?`managed`:`existing`}export{ke as a,U as c,Oe as d,V as f,Ne as i,Te as l,Pe as n,H as o,z as p,W as r,je as s,Re as t,De as u};
|
|
2
|
-
//# sourceMappingURL=CodexSetupSection.logic-sXohw-MK.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Ca as n,Eo as r,Fa as i,Ia as a,Na as o,Ra as s,Ta as c,Va as l,_a as u,_o as d,ba as f,bo as p,ga as m,go as h,ia as g,io as _,lE as v,lo as y,na as b,vo as x,wo as S,ya as C}from"./utils-BctiQ4Ue.js";var w=e(t());function T(e){let{open:t,defaultOpen:r,onOpenChange:i,disabled:o}=e,[s,u]=l({controlled:t,default:r,name:`Collapsible`,state:`open`}),{mounted:d,setMounted:f,transitionStatus:p}=C(s,!0,!0),m=c(),[h,g]=w.useState(),_=h??m,v=a(e=>{let t=!s,r=n(y,e.nativeEvent);i(t,r),!r.isCanceled&&u(t)});return w.useMemo(()=>({disabled:o,handleTrigger:v,mounted:d,open:s,panelId:_,setMounted:f,setOpen:u,setPanelIdState:g,transitionStatus:p}),[o,v,d,s,_,f,u,g,p])}var E=w.createContext(void 0);function D(){let e=w.useContext(E);if(e===void 0)throw Error(r(15));return e}var O=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=h.startingStyle]=`startingStyle`,e[e.endingStyle=h.endingStyle]=`endingStyle`,e}({}),k=function(e){return e.panelOpen=`data-panel-open`,e}({}),A={[O.open]:``},j={[O.closed]:``},M={open(e){return e?{[k.panelOpen]:``}:null}},N={open(e){return e?A:j},...d},P=e(v()),F=w.forwardRef(function(e,t){let{render:n,className:r,defaultOpen:i=!1,disabled:o=!1,onOpenChange:s,open:c,style:l,...u}=e,d=a(s),f=T({open:c,defaultOpen:i,onOpenChange:d,disabled:o}),p=w.useMemo(()=>({open:f.open,disabled:f.disabled,transitionStatus:f.transitionStatus}),[f.open,f.disabled,f.transitionStatus]),m=w.useMemo(()=>({...f,onOpenChange:d,state:p}),[f,d,p]),h=x(`div`,e,{state:p,ref:t,props:u,stateAttributesMapping:N});return(0,P.jsx)(E.Provider,{value:m,children:h})}),I={...M,...d},L=w.forwardRef(function(e,t){let{panelId:n,open:r,handleTrigger:i,state:a,disabled:s}=D(),{className:c,disabled:l=s,id:u,render:d,nativeButton:f=!0,style:p,...m}=e,{getButtonProps:h,buttonRef:g}=o({disabled:l,focusableWhenDisabled:!0,native:f});return x(`button`,e,{state:a,ref:[t,g],props:[{"aria-controls":r?n:void 0,"aria-expanded":r,onClick:i},m,h],stateAttributesMapping:I})}),R={height:void 0,width:void 0};function z(e){let{externalRef:t,hiddenUntilFound:r,id:o,keepMounted:s,mounted:c,onOpenChange:l,open:d,setMounted:p,setOpen:h,transitionStatus:v}=e,y=w.useRef(null),x=w.useRef(null),[C,T]=w.useState(R),E=w.useRef(R),D=w.useRef(!1),k=w.useRef(d),A=w.useRef(!1),[j,M]=w.useState(!1),N=w.useRef(null),P=S(t,y),F=b({mounted:c,open:d}),I=u(y,!1,!1),L=!d&&!c,z=j?`idle`:v,H=d&&(k.current||A.current),G=!d&&c&&x.current===`css-animation`&&C.height===void 0&&C.width===void 0?E.current:C,K=r&&L&&x.current!==`css-animation`,q=a((e,t=!0)=>{t&&(E.current=e),T(e)}),J=a(()=>{N.current?.(),N.current=null}),Y=a(e=>{J(),N.current=()=>{N.current=null,e()}}),X=a(()=>{d&&c&&x.current===`css-animation`&&(A.current=!0)});i(()=>{j&&v!==`starting`&&M(!1)},[j,v]),w.useEffect(()=>()=>{X(),J()},[X,J]),i(()=>{let e=y.current;if(!e)return;!d&&N.current&&J();let t=V(e,H);if(x.current=t,d&&v===`idle`&&k.current&&t===`css-animation`){E.current=B(e);return}if(d&&v===`starting`){let n=D.current;if(D.current=!1,t===`none`){q(B(e)),M(!0);return}if(t===`css-transition`){let t=W(e);if(q(B(e)),!n)return t;let r=U(e,`transition-duration`,`0s`);return Y(r),M(!0),t}if(t===`css-animation`){if(q(B(e)),!n){U(e,`animation-name`,`none`)();return}let t=U(e,`animation-name`,`none`),r=U(e,`animation-duration`,`0s`);t(),Y(r),M(!0);return}}if(!d&&c&&(v===`idle`||v===`starting`)){if(t===`none`){q(R,!1),p(!1);return}t===`css-animation`&&(k.current=!1,A.current=!1),q(B(e));return}if(v!==`ending`)return;if(t===`none`){p(!1);return}let n=B(e);if(!((n.height??0)>0||(n.width??0)>0)){p(!1);return}q(n),t===`css-animation`&&U(e,`animation-name`,`none`)()},[c,d,J,q,p,Y,H,v]),m({enabled:d&&c&&z===`idle`,open:!0,ref:y,onComplete(){d&&q(R,!1)}}),w.useEffect(()=>{if(d||!c||z!==`ending`||!y.current)return;let e=new AbortController,t=-1;function n(){F.current.open||(p(!1),q(R,!1))}return t=f.request(()=>{e.signal.aborted||I(n,e.signal)}),()=>{f.cancel(t),e.abort()}},[F,c,d,z,I,q,p]),i(()=>{let e=y.current;e&&r&&L&&e.setAttribute(`hidden`,`until-found`)},[L,r]),w.useEffect(function(){let e=y.current;if(!e)return;function t(e){D.current=!0,h(!0),l(!0,n(_,e))}return g(e,`beforematch`,t)},[l,h]);let Z=s||r||c||d;return{height:G.height,props:{...K?{[O.startingStyle]:``}:void 0,hidden:L,id:o},ref:P,shouldPreventOpenAnimation:H,shouldRender:Z,transitionStatus:z,width:G.width}}function B(e){return{height:e.scrollHeight,width:e.scrollWidth}}function V(e,t=!1){let n=s(e).getComputedStyle(e),r=(n.animationName.split(`,`).map(e=>e.trim()).some(e=>e!==``&&e!==`none`)||t)&&H(n.animationDuration),i=H(n.transitionDuration);return r&&i||i?`css-transition`:r?`css-animation`:`none`}function H(e){return e.split(`,`).map(e=>e.trim()).some(e=>e!==``&&Number.parseFloat(e)>0)}function U(e,t,n){let r=e.style.getPropertyValue(t),i=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{if(r===``){e.style.removeProperty(t);return}e.style.setProperty(t,r,i)}}function W(e){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(t=>{e.style.setProperty(t,`initial`,`important`)});function n(){Object.entries(t).forEach(([t,n])=>{if(n===``){e.style.removeProperty(t);return}e.style.setProperty(t,n)})}let r=f.request(n);return()=>{f.cancel(r),n()}}var G=function(e){return e.collapsiblePanelHeight=`--collapsible-panel-height`,e.collapsiblePanelWidth=`--collapsible-panel-width`,e}({}),K=w.forwardRef(function(e,t){let{className:n,hiddenUntilFound:r,keepMounted:a,render:o,id:s,style:c,...l}=e,{mounted:u,onOpenChange:d,open:f,panelId:m,setMounted:h,setPanelIdState:g,setOpen:_,state:v,transitionStatus:y}=D(),b=r??!1,S=a??!1;i(()=>{if(s)return g(s),()=>{g(void 0)}},[s,g]);let{height:C,props:w,ref:T,shouldPreventOpenAnimation:E,shouldRender:O,transitionStatus:k,width:A}=z({externalRef:t,hiddenUntilFound:b,id:m,keepMounted:S,mounted:u,onOpenChange:d,open:f,setMounted:h,setOpen:_,transitionStatus:y}),j={...v,transitionStatus:k},M=p(c,j),P=x(`div`,{...e,style:void 0},{state:j,ref:T,props:[w,{style:{[G.collapsiblePanelHeight]:C===void 0?`auto`:`${C}px`,[G.collapsiblePanelWidth]:A===void 0?`auto`:`${A}px`}},l,M?{style:M}:void 0,E?{style:{animationName:`none`}}:void 0],stateAttributesMapping:N});return O?P:null});export{L as n,F as r,K as t};
|
|
2
|
-
//# sourceMappingURL=CollapsiblePanel-FknKvWoA.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{$i as n,$r as r,Aa as i,An as a,Ar as o,Ca as s,Co as c,Cr as ee,Da as te,Di as l,Dr as u,En as d,Eo as f,Er as p,Fa as m,Fn as ne,Ha as h,Ia as g,In as _,Ka as v,Ln as y,Mn as b,Na as x,Nn as S,Oa as C,Oi as re,On as ie,Or as w,Pi as T,Pn as ae,Pr as E,Qa as D,Ri as O,Rn as k,Sn as A,So as j,Ta as oe,Ti as M,Tn as N,To as se,Tr as ce,Ua as le,Va as P,Za as ue,_o as de,ai as fe,bi as F,br as pe,ca as I,ea as me,ei as he,eo as ge,fa as L,ga as _e,ho as R,hr as ve,io as z,ja as ye,jn as be,jr as xe,ka as Se,ki as Ce,kn as we,lE as B,la as Te,ma as Ee,mo as De,na as Oe,po as ke,ro as Ae,ta as je,to as Me,ui as Ne,va as Pe,vo as V,vr as Fe,wa as Ie,wo as Le,xn as Re,xo as ze,xr as Be,ya as Ve,yi as He,yn as Ue,yo as We,zn as Ge}from"./utils-BctiQ4Ue.js";import{t as Ke}from"./useRegisterFieldControl-CosvijuC.js";import{t as qe}from"./FormContext-BWWAKTFF.js";var H=e(t()),Je=H.createContext(void 0),Ye=H.createContext(void 0),Xe=H.createContext(void 0),Ze=H.createContext(``);function Qe(){let e=H.useContext(Je);if(!e)throw Error(f(22));return e}function $e(){let e=H.useContext(Ye);if(!e)throw Error(f(23));return e}function et(){let e=H.useContext(Xe);if(!e)throw Error(f(24));return e}function tt(){return H.useContext(Ze)}var U={id:M(e=>e.id),labelId:M(e=>e.labelId),items:M(e=>e.items),selectedValue:M(e=>e.selectedValue),hasSelectionChips:M(e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0}),hasSelectedValue:M(e=>{let{selectedValue:t,selectionMode:n}=e;return t==null?!1:n===`multiple`&&Array.isArray(t)?t.length>0:!0}),hasNullItemLabel:M((e,t)=>t?Re(e.items):!1),open:M(e=>e.open),mounted:M(e=>e.mounted),forceMounted:M(e=>e.forceMounted),inline:M(e=>e.inline),activeIndex:M(e=>e.activeIndex),selectedIndex:M(e=>e.selectedIndex),isActive:M((e,t)=>e.activeIndex===t),isSelected:M((e,t)=>{let n=e.isItemEqualToValue,r=e.selectedValue;return Array.isArray(r)?r.some(e=>ie(t,e,n)):ie(t,r,n)}),transitionStatus:M(e=>e.transitionStatus),popupProps:M(e=>e.popupProps),inputProps:M(e=>e.inputProps),triggerProps:M(e=>e.triggerProps),itemProps:M(e=>e.itemProps),positionerElement:M(e=>e.positionerElement),listElement:M(e=>e.listElement),triggerElement:M(e=>e.triggerElement),inputElement:M(e=>e.inputElement),inputGroupElement:M(e=>e.inputGroupElement),popupSide:M(e=>e.popupSide),openMethod:M(e=>e.openMethod),inputInsidePopup:M(e=>e.inputInsidePopup),inputOwnsFormValue:M(e=>e.inputOwnsFormValue),selectionMode:M(e=>e.selectionMode),name:M(e=>e.name),form:M(e=>e.form),disabled:M(e=>e.disabled),readOnly:M(e=>e.readOnly),required:M(e=>e.required),grid:M(e=>e.grid),virtualized:M(e=>e.virtualized),itemToStringLabel:M(e=>e.itemToStringLabel),isItemEqualToValue:M(e=>e.isItemEqualToValue),modal:M(e=>e.modal),autoHighlight:M(e=>e.autoHighlight),submitOnItemClick:M(e=>e.submitOnItemClick)};function nt(e,t){return(n,r)=>{if(n==null)return!1;let i=N(n,t);return e.contains(i,r)}}function rt(e,t,n){return(r,i)=>{if(r==null)return!1;if(!i)return!0;let a=N(r,t),o=n==null?``:N(n,t);return o&&e.contains(o,i)&&o.length===i.length?!0:e.contains(a,i)}}var W=new Map;function it(e={}){let t={usage:`search`,sensitivity:`base`,ignorePunctuation:!0,...e},n=`${at(e.locale)}|${JSON.stringify(t)}`,r=W.get(n);if(r)return r;let i=new Intl.Collator(e.locale,t),a={contains(e,t,n){if(!t)return!0;let r=N(e,n);for(let e=0;e<=r.length-t.length;e+=1)if(i.compare(r.slice(e,e+t.length),t)===0)return!0;return!1},startsWith(e,t,n){if(!t)return!0;let r=N(e,n);return i.compare(r.slice(0,t.length),t)===0},endsWith(e,t,n){if(!t)return!0;let r=N(e,n),a=t.length;return r.length>=a&&i.compare(r.slice(r.length-a),t)===0}};return W.set(n,a),a}function at(e){return Array.isArray(e)?e.map(e=>at(e)).join(`,`):e==null?``:String(e)}var ot=it;function st(e={}){let{multiple:t=!1,value:n,...r}=e,i=it(r),a=H.useCallback((e,r,a)=>t?nt(i,a)(e,r):rt(i,a,n)(e,r),[i,n,t]);return H.useMemo(()=>({contains:a,startsWith:i.startsWith,endsWith:i.endsWith}),[a,i])}var ct=Symbol(`none`),lt={value:ct,index:-1},G=e(B());function ut(e){let{id:t,onOpenChangeComplete:r,defaultSelectedValue:i=null,selectedValue:ee,onSelectedValueChange:te,defaultInputValue:u,inputValue:f,open:p,defaultOpen:ne=!1,selectionMode:h=`none`,onItemHighlighted:_,name:v,form:x,disabled:C=!1,readOnly:w=!1,required:T=!1,inputRef:ae,grid:E=!1,items:O,filteredItems:k,filter:oe,openOnInputClick:M=!0,autoHighlight:ce=!1,keepHighlight:le=!1,highlightItemOnHover:ue=!0,loopFocus:de=!0,itemToStringLabel:L,itemToStringValue:R,isItemEqualToValue:ve=we,virtualized:ye=!1,inline:xe=!1,fillInputOnItemPress:Se=!0,modal:Ce=!1,limit:B=-1,autoComplete:Ee=`list`,formAutoComplete:De,locale:ke,submitOnItemClick:Ae=!1}=e,{clearErrors:je}=qe(),{setDirty:Pe,validityData:V,shouldValidateOnChange:Re,setFilled:Ue,name:Ge,disabled:Qe,setTouched:$e,setFocused:et,validationMode:tt,validation:W}=y(),it=o(),at=S({id:t}),st=ot({locale:ke}),[ut,dt]=H.useState(!1),[ft,pt]=H.useState(null),mt=H.useRef([]),ht=H.useRef([]),gt=H.useRef(null),_t=H.useRef(null),vt=H.useRef(null),yt=H.useRef(null),bt=H.useRef(null),xt=H.useRef(!0),St=H.useRef(!1),Ct=H.useRef(null),wt=H.useRef(null),Tt=H.useRef(null),Et=H.useRef(lt),Dt=H.useRef(null),Ot=H.useRef([]),kt=H.useRef([]),At=Qe||C,jt=Ge??v,K=h===`multiple`,Mt=h===`single`,Nt=f!==void 0||u!==void 0,Pt=O!==void 0,Ft=k!==void 0,q;q=ce===`always`?`always`:ce?`input-change`:!1;let[J,It]=P({controlled:ee,default:K?i??ze:i,name:`Combobox`,state:`selectedValue`}),Lt=H.useMemo(()=>oe===null?()=>!0:oe===void 0?Mt&&!ut?rt(st,L,J):nt(st,L):oe,[oe,Mt,J,ut,st,L]),Rt=se(()=>Nt?u??``:Mt?N(J,L):``).current,[Y,zt]=P({controlled:f,default:Rt,name:`Combobox`,state:`inputValue`}),[X,Bt]=P({controlled:p,default:ne,name:`Combobox`,state:`open`}),Vt=A(O),Z=ft??(Y===``?``:String(Y).trim()),Ht=Mt?N(J,L):``,Ut=Mt&&!ut&&Z!==``&&Ht!==``&&Ht.length===Z.length&&st.contains(Ht,Z),Wt=Ut?``:Z,Gt=Pt&&Ft&&Ut,Kt=H.useMemo(()=>O?Vt?O.flatMap(e=>e.items):O:ze,[O,Vt]),qt=H.useMemo(()=>{if(k&&!Gt)return k;if(!O)return ze;if(Vt){let e=O,t=[],n=0;for(let r of e){if(B>-1&&n>=B)break;let e=Wt===``?r.items:r.items.filter(e=>Lt(e,Wt,L));if(e.length===0)continue;let i=B>-1?B-n:1/0,a=e.slice(0,i);if(a.length>0){let e={...r,items:a};t.push(e),n+=a.length}}return t}if(Wt===``)return B>-1?Kt.slice(0,B):Kt;let e=[];for(let t of Kt){if(B>-1&&e.length>=B)break;Lt(t,Wt,L)&&e.push(t)}return e},[k,Gt,O,Vt,Wt,B,Lt,L,Kt]),Jt=H.useMemo(()=>Vt?qt.flatMap(e=>e.items):qt,[qt,Vt]),Q=se(()=>new He({id:at,labelId:void 0,selectedValue:J,open:X,filter:Lt,query:Z,items:O,selectionMode:h,listRef:mt,labelsRef:ht,popupRef:gt,emptyRef:bt,inputRef:_t,startDismissRef:vt,endDismissRef:yt,keyboardActiveRef:xt,chipsContainerRef:Ct,clearRef:wt,valuesRef:Ot,allValuesRef:kt,selectionEventRef:Tt,name:jt,form:x,disabled:At,readOnly:w,required:T,grid:E,isGrouped:Vt,virtualized:ye,openOnInputClick:M,itemToStringLabel:L,isItemEqualToValue:ve,modal:Ce,autoHighlight:q,submitOnItemClick:Ae,hasInputValue:Nt,mounted:!1,forceMounted:!1,transitionStatus:`idle`,inline:xe,activeIndex:null,selectedIndex:null,popupProps:{},inputProps:{},triggerProps:{},itemProps:j,positionerElement:null,listElement:null,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:h===`none`,onOpenChangeComplete:r||c,setOpen:c,setInputValue:c,setSelectedValue:c,setIndices:c,onItemHighlighted:c,handleSelection:c,forceMount:c,requestSubmit:c})).current,Yt=h===`none`?Y:J,Xt=H.useMemo(()=>h===`none`?Yt:Array.isArray(J)?J.map(e=>d(e,R)):d(J,R),[Yt,R,h,J]),Zt=g(_),Qt=g(r),$t=F(Q,U.activeIndex),en=F(Q,U.selectedIndex),tn=F(Q,U.positionerElement),nn=F(Q,U.listElement),rn=F(Q,U.triggerElement),an=F(Q,U.inputElement),on=F(Q,U.inputGroupElement),$=F(Q,U.inline),sn=F(Q,U.inputInsidePopup),cn=F(Q,U.inputOwnsFormValue),ln=Oe(rn),{mounted:un,setMounted:dn,transitionStatus:fn}=Ve(X),{openMethod:pn,triggerProps:mn}=Fe(X),hn=g(()=>Xt);Ke(sn?ln:_t,at,Yt,hn);let gn=g(()=>{O?ht.current=Jt.map(e=>N(e,L)):Q.set(`forceMounted`,!0)}),_n=H.useRef(J);m(()=>{J!==_n.current&&gn()},[gn,J]);let vn=g(e=>{Q.update(e);let t=e.type||`none`;if(e.activeIndex!==void 0){if(e.activeIndex===null)Et.current!==lt&&(Et.current=lt,Zt(void 0,Ie(t,void 0,{index:-1})));else{let n=Ot.current[e.activeIndex];Et.current={value:n,index:e.activeIndex},Zt(n,Ie(t,void 0,{index:e.activeIndex}))}}}),yn=g((t,n)=>{if(St.current=n.reason===D,e.onInputValueChange?.(t,n),!n.isCanceled){if(n.reason===`input-change`){let e=n.event,r=e.inputType;if(e.type===`compositionend`||r!=null&&r!==``&&r!==`insertReplacementText`){let e=t.trim()!==``;e&&dt(!0),Dt.current={hasQuery:e},e&&q&&Q.state.activeIndex==null&&Q.set(`activeIndex`,0)}}zt(t)}}),bn=g((t,n)=>{if(X!==t&&(n.reason===`escape-key`&&Pt&&Jt.length===0&&!Q.state.emptyRef.current&&n.allowPropagation(),e.onOpenChange?.(t,n),!n.isCanceled&&(t&&K&&sn&&!$&&ft!==null&&(dt(!1),pt(null),Y!==``&&yn(``,s(D,n.event))),!t&&ut&&(Mt?($||pt(Z),Z===``&&dt(!1)):K&&($||pt(Z),sn&&vn({activeIndex:null}),(!sn||$)&&yn(``,s(D,n.event)))),Bt(t),!t&&sn&&(n.reason===`focus-out`||n.reason===`outside-press`)&&($e(!0),et(!1),tt===`onBlur`)))){let e=h===`none`?Y:J;W.commit(e)}}),xn=g((e,t)=>{te?.(e,t),!t.isCanceled&&(It(e),(h===`none`&>.current&&Se||Mt&&!Q.state.inputInsidePopup)&&yn(N(e,L),s(t.reason,t.event)),Mt&&e!=null&&t.reason!==`input-change`&&ut&&!$&&pt(Z))}),Sn=g((e,t)=>{let n=t;if(n===void 0){if($t===null)return;n=Ot.current[$t]}let r=Te(e),i=Tt.current??e;Tt.current=null;let a=s(Me,i),o=r?.closest(`a`)?.getAttribute(`href`);if(o){o.startsWith(`#`)&&bn(!1,a);return}if(K){let e=Array.isArray(J)?J:[],t=b(e,n,Q.state.isItemEqualToValue)?be(e,n,Q.state.isItemEqualToValue):[...e,n];if(xn(t,a),!(_t.current&&_t.current.value.trim()!==``))return;Q.state.inputInsidePopup?yn(``,s(D,a.event)):bn(!1,a)}else xn(n,a),bn(!1,a)}),Cn=g(()=>{if(!Q.state.submitOnItemClick)return;let e=W.inputRef.current?.form??Q.state.inputElement?.form;e&&typeof e.requestSubmit==`function`&&e.requestSubmit()}),wn=g(()=>{if(dn(!1),Qt?.(!1),dt(!1),pt(null),vn(h===`none`?{activeIndex:null,selectedIndex:null}:{activeIndex:null}),K&&_t.current&&_t.current.value!==``&&!St.current&&yn(``,s(D)),Mt){if(Q.state.inputInsidePopup)_t.current&&_t.current.value!==``&&yn(``,s(D));else{let e=N(J,L);_t.current&&_t.current.value!==e&&yn(e,s(e===``?D:z))}}}),Tn=H.useMemo(()=>$&&tn?{current:tn.closest(`[role="dialog"]`)}:gt,[$,tn]);_e({enabled:!e.actionsRef,open:X,ref:Tn,onComplete(){X||wn()}}),H.useImperativeHandle(e.actionsRef,()=>({unmount:wn}),[wn]),m(function(){if(X||h===`none`)return;let e=O?Kt:kt.current;if(K){let t=Array.isArray(J)?J:[],n=t[t.length-1],r=a(e,n,ve);vn({selectedIndex:r===-1?null:r})}else{let t=a(e,J,ve);vn({selectedIndex:t===-1?null:t})}},[X,J,O,h,Kt,K,ve,vn]),m(()=>{O&&(Ot.current=Jt,mt.current.length=Jt.length)},[O,Jt]),m(()=>{let e=Dt.current;if(e&&(e.hasQuery?q&&Q.set(`activeIndex`,0):q===`always`&&Q.set(`activeIndex`,0),Dt.current=null),!X&&!$)return;let t=Pt||Ft?Jt:Ot.current,n=Q.state.activeIndex;if(n==null){if(q===`always`&&t.length>0){Q.set(`activeIndex`,0);return}Et.current!==lt&&(Et.current=lt,Q.state.onItemHighlighted(void 0,Ie(z,void 0,{index:-1})));return}if(n>=t.length){Et.current!==lt&&(Et.current=lt,Q.state.onItemHighlighted(void 0,Ie(z,void 0,{index:-1}))),Q.set(`activeIndex`,null);return}let r=t[n],i=Et.current.value,a=i!==ct&&ie(r,i,Q.state.isItemEqualToValue);(Et.current.index!==n||!a)&&(Et.current={value:r,index:n},Q.state.onItemHighlighted(r,Ie(z,void 0,{index:n})))},[$t,q,Ft,Pt,Jt,$,X,Q]),m(()=>{if(h===`none`){Ue(String(Y)!==``);return}Ue(K?Array.isArray(J)&&J.length>0:J!=null)},[Ue,h,Y,J,K]),H.useEffect(()=>{Pt&&q&&Jt.length===0&&vn({activeIndex:null})},[Pt,q,Jt.length,vn]),pe(Z,()=>{X&&Z!==``&&Z!==String(Rt)&&dt(!0)}),pe(J,()=>{if(h!==`none`&&(je(jt),Pe(J!==V.initialValue),Re()?W.commit(J):W.commit(J,!0),Mt&&!Nt&&!sn)){let e=N(J,L);Y!==e&&yn(e,s(z))}}),pe(Y,()=>{h===`none`&&(je(jt),Pe(Y!==V.initialValue),Re()?W.commit(Y):W.commit(Y,!0))}),pe(O,()=>{if(!Mt||Nt||sn||ut)return;let e=N(J,L);Y!==e&&yn(e,s(z))});let En=fe({open:$?!0:X,onOpenChange:bn,elements:{reference:sn?rn:an,floating:tn}}),Dn,On;$||(Dn=E?`grid`:`listbox`,On=X?`true`:`false`);let kn=H.useMemo(()=>{let e=an?.tagName===`INPUT`,t=an==null||e,n=t||X,r=t?{autoComplete:`off`,spellCheck:`false`,autoCorrect:`off`,autoCapitalize:`none`}:{};return n&&(r.role=`combobox`,r[`aria-expanded`]=On,r[`aria-haspopup`]=Dn,r[`aria-controls`]=X?nn?.id:void 0,r[`aria-autocomplete`]=Ee),{reference:r,floating:{role:`presentation`}}},[an,X,On,Dn,nn?.id,Ee]),An=re(En,{enabled:!w&&!At&&M,event:`mousedown-only`,toggle:!1,touchOpenDelay:sn?0:100,reason:ge}),jn=l(En,{enabled:!w&&!At&&!$,outsidePressEvent:{mouse:`sloppy`,touch:`intentional`},bubbles:$?!0:void 0,outsidePress(e){let t=Te(e);return!I(rn,t)&&!I(wt.current,t)&&!I(Ct.current,t)&&!I(on,t)}}),Mn=he(En,{enabled:!w&&!At,id:at,listRef:mt,activeIndex:$t,selectedIndex:en,virtual:!0,loopFocus:de,allowEscape:de&&!q,focusItemOnOpen:ut||h===`none`&&!q?!1:`auto`,focusItemOnHover:ue,resetOnPointerLeave:!le,cols:E?2:1,orientation:E?`horizontal`:void 0,rtl:it===`rtl`,disabledIndices:ze,onNavigate(e,t){(t||X)&&fn!==`ending`&&vn(t?{activeIndex:e,type:xt.current?`keyboard`:`pointer`}:{activeIndex:e})}}),Nn=H.useMemo(()=>We(Mn.reference,jn.reference,An.reference,kn.reference),[Mn.reference,jn.reference,An.reference,kn.reference]),Pn=H.useMemo(()=>We(Ne,Mn.floating,jn.floating,kn.floating),[Mn.floating,jn.floating,kn.floating]),Fn=H.useMemo(()=>{let e=Mn.item;return e?{...e,onFocus:void 0}:j},[Mn.item]);Be(()=>{Q.update({inline:xe,popupProps:Pn,inputProps:Nn,triggerProps:mn,itemProps:Fn,setOpen:bn,setInputValue:yn,setSelectedValue:xn,setIndices:vn,onItemHighlighted:Zt,handleSelection:Sn,forceMount:gn,requestSubmit:Cn})}),m(()=>{Q.update({id:at,selectedValue:J,open:X,mounted:un,transitionStatus:fn,items:O,inline:xe,popupProps:Pn,inputProps:Nn,triggerProps:mn,openMethod:pn,itemProps:Fn,selectionMode:h,name:jt,form:x,disabled:At,readOnly:w,required:T,grid:E,isGrouped:Vt,virtualized:ye,onOpenChangeComplete:Qt,openOnInputClick:M,itemToStringLabel:L,modal:Ce,autoHighlight:q,isItemEqualToValue:ve,submitOnItemClick:Ae,hasInputValue:Nt,requestSubmit:Cn,inputOwnsFormValue:h===`none`&&(xe||!Q.state.inputInsidePopup)})},[Q,at,J,X,un,fn,O,Pn,Nn,Fn,pn,mn,h,jt,At,w,T,W,E,Vt,ye,Qt,M,L,Ce,ve,Ae,Nt,xe,Cn,q,x]);let In=Le(ae,W.inputRef),Ln=H.useMemo(()=>({query:Z,hasItems:Pt,filteredItems:qt,flatFilteredItems:Jt}),[Z,Pt,qt,Jt]),Rn=H.useMemo(()=>Array.isArray(Yt)?``:d(Yt,R),[Yt,R]),zn=K&&Array.isArray(J)&&J.length>0,Bn=K||h===`none`&&cn?void 0:jt,Vn=H.useMemo(()=>!K||!Array.isArray(J)||!jt?null:J.map(e=>{let t=d(e,R);return(0,G.jsx)(`input`,{type:`hidden`,form:x,name:jt,value:t},t)}),[K,J,x,jt,R]),Hn=(0,G.jsxs)(H.Fragment,{children:[e.children,(0,G.jsx)(`input`,{...W.getInputValidationProps({onFocus(){if(sn){rn?.focus();return}(_t.current||rn)?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented||At||w){e.preventBaseUIHandler?.();return}let t=e.currentTarget.value,n=s(z,e.nativeEvent);function r(){if(K)return;if(h===`none`){Pe(t!==V.initialValue),yn(t,n),Re()&&W.commit(t);return}let e=Ot.current.find(e=>d(e,R).toLowerCase()===t.toLowerCase()||N(e,L).toLowerCase()===t.toLowerCase());e!=null&&(Pe(e!==V.initialValue),xn?.(e,n),Re()&&W.commit(e))}O?r():(gn(),queueMicrotask(r))}}),id:at&&Bn==null?`${at}-hidden-input`:void 0,form:x,name:Bn,autoComplete:De,disabled:At,required:T&&!zn,readOnly:w,value:Rn,ref:In,style:Bn?me:n,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),Vn]});return(0,G.jsx)(Je.Provider,{value:Q,children:(0,G.jsx)(Ye.Provider,{value:En,children:(0,G.jsx)(Xe.Provider,{value:Ln,children:(0,G.jsx)(Ze.Provider,{value:Y,children:Hn})})})})}var dt={...De,...Ge,popupSide:e=>e?{"data-popup-side":e}:null,listEmpty:e=>e?{"data-list-empty":``}:null},ft=H.createContext(void 0);function pt(){return H.useContext(ft)}var mt=H.createContext(void 0);function ht(e){let t=H.useContext(mt);if(t===void 0&&!e)throw Error(f(21));return t}var gt=H.forwardRef(function(e,t){let n=Qe(),{buttonRef:r,getButtonProps:i}=x({native:!1}),a=Le(t,r);function o(e){n.state.setOpen(!1,s(le,e.nativeEvent,e.currentTarget))}let c=i({onClick:o});return(0,G.jsx)(`span`,{ref:a,...c,"aria-label":`Dismiss`,tabIndex:void 0,style:me})}),_t=H.forwardRef(function(e,t){let{render:n,className:r,disabled:a=!1,id:c,style:ee,...te}=e,{state:l,disabled:u,setTouched:d,setFocused:f,validationMode:p,validation:m}=y(),{labelId:h}=ae(),b=pt(),x=!!ht(!0),S=Qe(),{filteredItems:C}=et(),re=tt(),ie=o(),w=F(S,U.required),T=F(S,U.disabled),E=F(S,U.readOnly),O=F(S,U.name),A=F(S,U.form),j=F(S,U.selectionMode),M=F(S,U.autoHighlight),N=F(S,U.inputProps),se=F(S,U.triggerProps),ce=F(S,U.open),le=F(S,U.mounted),P=F(S,U.selectedValue),de=F(S,U.popupSide),fe=F(S,U.positionerElement),pe=F(S,U.id),I=F(S,U.inline),me=F(S,U.modal),he=!!M,ge=le&&fe?de:null,_e=u||T||a,R=C.length===0,ve=x||I,ye=!ve||me,be=oe(c??(ve?void 0:pe)),xe=Ue(h,void 0),Ce=x?k:l,[we,B]=H.useState(null),Te=H.useRef(!1),Ee=H.useRef(null),De=H.useRef(!1),Oe=j===`none`&&!x,ke=g(e=>{let t=x||S.state.inline;t&&!S.state.hasInputValue&&S.state.setInputValue(``,s(z)),S.update({inputElement:e,inputInsidePopup:t,inputOwnsFormValue:Oe})}),Ae=x||!m?te:m.getValidationProps(te),je={...Ce,open:ce,disabled:_e,readOnly:E,popupSide:ge,listEmpty:R};function Me(e){if(!b)return;let t,{highlightedChipIndex:n}=b,r=b.chipsRef.current.length,i=ie===`rtl`,a=i?`ArrowRight`:`ArrowLeft`,o=i?`ArrowLeft`:`ArrowRight`;if(n!==void 0){if(e.key===a)e.preventDefault(),t=n>0?n-1:void 0;else if(e.key===o)e.preventDefault(),t=n<r-1?n+1:void 0;else if(e.key===`Backspace`||e.key===`Delete`){e.preventDefault();let r=n>=P.length-1?P.length-2:n;t=r>=0?r:void 0,S.state.setIndices({activeIndex:null,selectedIndex:null,type:`keyboard`})}return t}return e.key===a&&(e.currentTarget.selectionStart??0)===0&&P.length>0?(e.preventDefault(),t=r>0?r-1:void 0):e.key===`Backspace`&&e.currentTarget.value===``&&P.length>0&&(S.state.setIndices({activeIndex:null,selectedIndex:null,type:`keyboard`}),e.preventDefault()),t}let Ne=V(`input`,e,{state:je,ref:[t,S.state.inputRef,ke],props:[N,se,{type:`text`,value:e.value??we??re,"aria-readonly":E||void 0,"aria-required":w||void 0,"aria-labelledby":xe,disabled:_e,readOnly:E,required:j===`none`?w:void 0,form:A,...Oe&&O&&{name:O},id:be,onFocus(){if(f(!0),!I||!De.current)return;De.current=!1;let e=Ee.current;e!=null&&Object.hasOwn(S.state.valuesRef.current,e)&&S.state.setIndices({activeIndex:e})},onBlur(){d(!0),f(!1);let e=S.state.activeIndex;if(I&&e!==null&&M!==`always`&&(Ee.current=e,De.current=!0,S.state.setIndices({activeIndex:null})),p===`onBlur`){let e=j===`none`?re:P;m.commit(e)}},onCompositionStart(e){Se||(Te.current=!0,B(e.currentTarget.value))},onCompositionEnd(e){Te.current=!1;let t=e.currentTarget.value;B(null),S.state.setInputValue(t,s(ue,e.nativeEvent))},onChange(e){let t=e.nativeEvent.inputType,n=!t||t===`insertReplacementText`,r=Te.current||!n;if(Te.current){let t=e.currentTarget.value;B(t),t===``&&!S.state.openOnInputClick&&!S.state.inputInsidePopup&&S.state.setOpen(!1,s(D,e.nativeEvent));let n=t.trim(),i=he&&n!==``;!E&&!_e&&n&&r&&(S.state.setOpen(!0,s(ue,e.nativeEvent)),he||S.state.setIndices({activeIndex:null,selectedIndex:null,type:S.state.keyboardActiveRef.current?`keyboard`:`pointer`})),ce&&S.state.activeIndex!==null&&!i&&S.state.setIndices({activeIndex:null,selectedIndex:null,type:S.state.keyboardActiveRef.current?`keyboard`:`pointer`});return}S.state.setInputValue(e.currentTarget.value,s(ue,e.nativeEvent));let i=e.currentTarget.value===``,a=s(D,e.nativeEvent);i&&!S.state.inputInsidePopup&&(j===`single`&&S.state.setSelectedValue(null,a),S.state.openOnInputClick||S.state.setOpen(!1,a));let o=e.currentTarget.value.trim();!E&&!_e&&o&&r&&(S.state.setOpen(!0,s(ue,e.nativeEvent)),he||S.state.setIndices({activeIndex:null,selectedIndex:null,type:S.state.keyboardActiveRef.current?`keyboard`:`pointer`})),ce&&S.state.activeIndex!==null&&!he&&S.state.setIndices({activeIndex:null,selectedIndex:null,type:S.state.keyboardActiveRef.current?`keyboard`:`pointer`})},onKeyDown(e){if(_e||E||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;S.state.keyboardActiveRef.current=!0;let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,r=ie===`rtl`;if(e.key===`Home`){L(e);let n=i&&r?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if(e.key===`End`){L(e);let a=i&&r?0:t.value.length;t.setSelectionRange(a,a),t.scrollLeft=r?-n:n;return}if(!le&&e.key===`Escape`){let t=j===`multiple`&&Array.isArray(P)?P.length===0:P===null,n=s(v,e.nativeEvent),r=j===`multiple`?[]:null;S.state.setInputValue(``,n),S.state.setSelectedValue(r,n),!t&&!S.state.inline&&!n.isPropagationAllowed&&e.stopPropagation();return}if(b&&e.key===`Backspace`&&t.value===``&&b.highlightedChipIndex===void 0&&Array.isArray(P)&&P.length>0){let t=b.chipsRef.current.length,n=t>0?t-1:P.length-1,r=P.filter((e,t)=>t!==n);S.state.setIndices({activeIndex:null,selectedIndex:null,type:S.state.keyboardActiveRef.current?`keyboard`:`pointer`}),S.state.setSelectedValue(r,s(z,e.nativeEvent));return}let a=b?.highlightedChipIndex!==void 0,o=Me(e);if(b?.setHighlightedChipIndex(o),o===void 0?a&&S.state.inputRef.current?.focus():b?.chipsRef.current[o]?.focus(),e.which!==229&&e.key===`Enter`&&ce){let t=S.state.activeIndex,n=e.nativeEvent;if(t===null){if(I)return;S.state.setOpen(!1,s(z,n));return}L(e);let r=S.state.listRef.current[t];r&&(S.state.selectionEventRef.current=n,r.click(),S.state.selectionEventRef.current=null)}},onPointerMove(){S.state.keyboardActiveRef.current=!1},onPointerDown(){S.state.keyboardActiveRef.current=!1}},Ae],stateAttributesMapping:dt}),Pe=x?(0,G.jsx)(_.Provider,{value:ne,children:Ne}):Ne;return(0,G.jsxs)(H.Fragment,{children:[ce&&ye&&(0,G.jsx)(gt,{ref:S.state.startDismissRef}),Pe]})}),vt=2,yt=H.forwardRef(function(e,t){let{render:n,className:i,nativeButton:a=!0,disabled:o=!1,id:c,style:ee,...te}=e,{state:l,disabled:u,setTouched:d,setFocused:f,validationMode:p,validation:m}=y(),{labelId:ne}=ae(),h=Qe(),{filteredItems:_}=et(),v=F(h,U.selectionMode),b=F(h,U.disabled),C=F(h,U.readOnly),ie=F(h,U.required),w=F(h,U.mounted),T=F(h,U.popupSide),E=F(h,U.positionerElement),D=F(h,U.listElement),O=F(h,U.triggerProps),k=F(h,U.triggerElement),A=F(h,U.inputInsidePopup),j=F(h,U.id),oe=F(h,U.labelId),M=F(h,U.open),N=F(h,U.selectedValue),se=F(h,U.activeIndex),ce=F(h,U.selectedIndex),le=F(h,U.hasSelectedValue),P=$e(),ue=tt(),de=Ee(),fe=u||b||o,pe=_.length===0,me=w&&E?T:null;S({id:A?c:void 0});let he=A?c??j:c,ge=Ue(ne,oe),_e=H.useRef(``);function R(e){_e.current=e.pointerType}let z=P.useState(`domReferenceElement`);H.useEffect(()=>{A&&k&&k!==z&&P.set(`domReferenceElement`,k)},[k,z,P,A]);let{reference:ye}=r(P,{enabled:!M&&!C&&!b&&v===`single`,listRef:h.state.labelsRef,activeIndex:se,selectedIndex:ce,onMatch(e){let t=h.state.valuesRef.current[e];t!==void 0&&h.state.setSelectedValue(t,s(`none`))}}),{reference:be}=re(P,{enabled:!C&&!b,event:`mousedown`}),{buttonRef:xe,getButtonProps:Se}=x({native:a,disabled:fe}),Ce={...l,open:M,disabled:fe,popupSide:me,listEmpty:pe,placeholder:v!==`none`&&!le},we=g(e=>{h.set(`triggerElement`,e)});return V(`button`,e,{ref:[t,xe,we],state:Ce,props:[O,be,ye,{id:he,tabIndex:A?0:-1,role:A?`combobox`:void 0,"aria-expanded":M?`true`:`false`,"aria-haspopup":A?`dialog`:`listbox`,"aria-controls":M?D?.id:void 0,"aria-required":A&&ie||void 0,"aria-labelledby":ge,onPointerDown:R,onPointerEnter:R,onFocus(){f(!0),!(fe||C)&&de.start(0,h.state.forceMount)},onBlur(e){if(!I(E,e.relatedTarget)&&(d(!0),f(!1),p===`onBlur`)){let e=v===`none`?ue:N;m.commit(e)}},onMouseDown(e){if(fe||C||(A||P.set(`domReferenceElement`,e.currentTarget),h.state.forceMount(),_e.current!==`touch`&&(h.state.inputRef.current?.focus(),A||e.preventDefault()),M))return;let t=je(e.currentTarget);function n(e){if(!k)return;let t=Te(e),n=h.state.positionerElement,r=h.state.listElement;if(I(k,t)||I(n,t)||I(r,t)||t===k)return;let i=ve(k),a=e.clientX>=i.left-vt&&e.clientX<=i.right+vt,o=e.clientY>=i.top-vt&&e.clientY<=i.bottom+vt;a&&o||h.state.setOpen(!1,s(`cancel-open`,e))}A&&t.addEventListener(`mouseup`,n,{once:!0})},onKeyDown(e){fe||C||(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(L(e),h.state.setOpen(!0,s(Ae,e.nativeEvent)),h.state.inputRef.current?.focus())}},m?m.getValidationProps(te):te,Se],stateAttributesMapping:dt})}),bt=H.createContext(null);function xt(){return H.useContext(bt)}function St(e){let{children:t,items:n}=e,r=H.useMemo(()=>({items:n}),[n]);return(0,G.jsx)(bt.Provider,{value:r,children:t})}function Ct(e){let{children:t}=e,{filteredItems:n}=et(),r=xt(),i=r?r.items:n;return i?(0,G.jsx)(H.Fragment,{children:i.map(t)}):null}var wt=H.forwardRef(function(e,t){var n;let{render:r,className:i,style:a,children:o,...s}=e,c=Qe(),ee=$e(),te=!!ht(!0),{filteredItems:l,hasItems:d}=et(),f=F(c,U.selectionMode),p=F(c,U.grid),m=F(c,U.popupProps),ne=F(c,U.virtualized),h=f===`multiple`,_=l.length===0,v=g(e=>{c.set(`positionerElement`,e)}),y=g(e=>{c.set(`listElement`,e)}),b=H.useMemo(()=>typeof o==`function`?n||=(0,G.jsx)(Ct,{children:o}):o,[o]),x={empty:_},S=ee.useState(`floatingId`),C=V(`div`,e,{state:x,ref:[t,y,te?null:v],props:[m,{children:b,tabIndex:-1,id:S,role:p?`grid`:`listbox`,"aria-multiselectable":h?`true`:void 0,onKeyDown(e){if(!(c.state.disabled||c.state.readOnly)&&e.key===`Enter`){let t=c.state.activeIndex;if(t==null)return;L(e);let n=e.nativeEvent,r=c.state.listRef.current[t];r&&(c.state.selectionEventRef.current=n,r.click(),c.state.selectionEventRef.current=null)}},onKeyDownCapture(){c.state.keyboardActiveRef.current=!0},onPointerMoveCapture(){c.state.keyboardActiveRef.current=!1}},s]});return ne?C:(0,G.jsx)(u,{elementsRef:c.state.listRef,labelsRef:d?void 0:c.state.labelsRef,children:C})}),Tt=e(Pe()),Et=``;function Dt(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=null;for(;t.nextNode();){let e=t.currentNode;e.nodeValue!==``&&(n=e)}return n}function Ot(){let e=Ee(),t=H.useRef(null);return H.useEffect(()=>{if(ye)return;let n=t.current;if(n==null)return;let r=Dt(n);if(r==null)return;let i=r.nodeValue??``,a=`${i}${Et}`;return r.nodeValue=a,e.start(200,()=>{r.nodeValue===a&&(r.nodeValue=i)}),()=>{e.clear(),r.nodeValue===a&&(r.nodeValue=i)}},[t,e]),t}var kt=H.createContext(void 0);function At(){let e=H.useContext(kt);if(e===void 0)throw Error(f(20));return e}var jt=H.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=Qe(),a=F(i,U.mounted),o=F(i,U.forceMounted);return a||n||o?(0,G.jsx)(kt.Provider,{value:n,children:(0,G.jsx)(T,{ref:t,...r})}):null}),K=H.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:te=0,collisionBoundary:l=`clipping-ancestors`,collisionPadding:u=5,arrowPadding:d=5,sticky:f=!1,disableAnchorTracking:ne=!1,collisionAvoidance:h=O,style:_,...v}=e,y=Qe(),{filteredItems:b}=et(),x=$e(),S=At(),C=F(y,U.modal),re=F(y,U.open),ie=F(y,U.mounted),T=F(y,U.openMethod),ae=F(y,U.positionerElement),E=F(y,U.triggerElement),D=F(y,U.inputElement),k=F(y,U.inputGroupElement),A=F(y,U.inputInsidePopup),j=F(y,U.transitionStatus),oe=b.length===0,M=w({anchor:i??(A?E:k??D),floatingRootContext:x,positionMethod:a,mounted:ie,side:o,sideOffset:c,align:s,alignOffset:te,arrowPadding:d,collisionBoundary:l,collisionPadding:u,sticky:f,disableAnchorTracking:ne,keepMounted:S,collisionAvoidance:h,lazyFlip:!0});ee(re&&C,T===`touch`,ae,E);let N={open:re,side:M.side,align:M.align,anchorHidden:M.anchorHidden,empty:oe};m(()=>{y.set(`popupSide`,M.side)},[y,M.side]);let se=g(e=>{y.set(`positionerElement`,e)}),le=ce(e,N,{styles:M.positionerStyles,transitionStatus:j,props:v,refs:[t,se],hidden:!ie,inert:!re});return(0,G.jsxs)(mt.Provider,{value:M,children:[ie&&C&&(0,G.jsx)(p,{inert:xe(!re),cutout:k??D??E}),le]})}),Mt={...ke,...de},Nt=H.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,c=Qe(),ee=ht(),te=$e(),{filteredItems:l}=et(),u=F(c,U.mounted),d=F(c,U.open),f=F(c,U.openMethod),p=F(c,U.transitionStatus),m=F(c,U.inputInsidePopup),ne=F(c,U.inputElement),h=F(c,U.modal),g=l.length===0;_e({open:d,ref:c.state.popupRef,onComplete(){d&&c.state.onOpenChangeComplete(!0)}});let _={open:d,side:ee.side,align:ee.align,anchorHidden:ee.anchorHidden,transitionStatus:p,empty:g},v=V(`div`,e,{state:_,ref:[t,c.state.popupRef],props:[{role:m?`dialog`:`presentation`,tabIndex:-1,onFocus(e){let t=Te(e.nativeEvent);f!==`touch`&&(I(c.state.listElement,t)||t===e.currentTarget)&&c.state.inputRef.current?.focus()}},E(p),s],stateAttributesMapping:Mt}),y=a===void 0?m?e=>e===`touch`?c.state.popupRef.current:ne:!1:a,b;b=o??(m?void 0:!1);let x=!m||h;return(0,G.jsx)(Ce,{context:te,disabled:!u,modal:x,openInteractionType:f,initialFocus:y,returnFocus:b,getInsideElements:()=>[c.state.startDismissRef.current,c.state.endDismissRef.current],children:(0,G.jsxs)(H.Fragment,{children:[v,x&&(0,G.jsx)(gt,{ref:c.state.endDismissRef})]})})}),Pt=H.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;return V(`span`,e,{ref:t,props:[{"aria-hidden":!0,children:`▼`},a]})}),Ft=H.createContext(void 0),q=H.createContext(!1);function J(){return H.useContext(q)}var It=H.memo(H.forwardRef(function(e,t){let{render:n,className:r,style:i,value:o=null,index:s,disabled:c=!1,nativeButton:ee=!1,...l}=e,u=H.useRef(!1),d=H.useRef(null),f=C({index:s,textRef:d,indexGuessBehavior:te.GuessFromOrder}),p=Qe(),ne=J(),{flatFilteredItems:h,hasItems:g}=et(),_=F(p,U.open),v=F(p,U.selectionMode),y=F(p,U.readOnly),b=F(p,U.virtualized),S=F(p,U.isItemEqualToValue),re=v!==`none`,w=s??(b?a(h,o,S):f.index),T=f.index!==-1,ae=F(p,U.id),E=F(p,U.isActive,w),D=F(p,U.isSelected,o),O=F(p,U.itemProps),k=H.useRef(null),A=ae!=null&&T?`${ae}-${w}`:void 0,j=D&&re;m(()=>{if(!T||!b&&s==null)return;let e=p.state.listRef.current;return e[w]=k.current,()=>{delete e[w]}},[T,b,w,s,p]),m(()=>{if(!T||g)return;let e=p.state.valuesRef.current;return e[w]=o,v!==`none`&&p.state.allValuesRef.current.push(o),()=>{delete e[w]}},[T,g,w,o,p,v]),m(()=>{if(!_){u.current=!1;return}if(!T||g)return;let e=p.state.selectedValue,t=Array.isArray(e)?e[e.length-1]:e;ie(o,t,S)&&p.set(`selectedIndex`,w)},[T,g,_,p,w,o,S]);let{getButtonProps:oe,buttonRef:M}=x({disabled:c,focusableWhenDisabled:!0,native:ee,composite:!0}),N={disabled:c,selected:j,highlighted:E};function se(e){function t(){p.state.handleSelection(e,o)}p.state.submitOnItemClick?(Tt.flushSync(t),p.state.requestSubmit()):t()}let ce={id:A,role:ne?`gridcell`:`option`,"aria-selected":re?j:void 0,tabIndex:void 0,onPointerDownCapture(e){u.current=!0,e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){c||y||se(e.nativeEvent)},onMouseUp(e){let t=u.current;u.current=!1,!(c||y||e.button!==0||t||!E)&&se(e.nativeEvent)}},le=V(`div`,e,{ref:[M,t,f.ref,k],state:N,props:[O,ce,l,oe]}),P=H.useMemo(()=>({selected:j,textRef:d}),[j,d]);return(0,G.jsx)(Ft.Provider,{value:P,children:le})})),Lt=H.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,{filteredItems:s}=et(),c=Qe(),ee=Ot(),te=s.length===0?a:null;return V(`div`,e,{ref:[t,c.state.emptyRef,ee],props:[{children:te,role:`status`,"aria-live":`polite`,"aria-atomic":!0},o]})}),Rt={...de,...R},Y=H.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,keepMounted:o=!1,style:c,...ee}=e,{disabled:te}=y(),l=Qe(),u=F(l,U.selectionMode),d=F(l,U.disabled),f=F(l,U.readOnly),p=F(l,U.open),m=F(l,U.selectedValue),ne=F(l,U.hasSelectionChips),g=tt(),_=!1;_=u===`none`?g!==``:u===`single`?m!=null:ne;let v=te||d||i,{buttonRef:b,getButtonProps:S}=x({native:a,disabled:v}),{mounted:C,transitionStatus:re,setMounted:ie}=Ve(_),w={disabled:v,visible:_,open:p,transitionStatus:re};_e({open:_,ref:l.state.clearRef,onComplete(){_||ie(!1)}});let T=V(`button`,e,{state:w,ref:[t,b,l.state.clearRef],props:[{tabIndex:-1,children:`x`,onMouseDown(e){e.preventDefault()},onClick(e){if(v||f)return;let t=l.state.keyboardActiveRef;l.state.setInputValue(``,s(h,e.nativeEvent)),u===`none`?l.state.setIndices({activeIndex:null,type:t.current?`keyboard`:`pointer`}):(l.state.setSelectedValue(Array.isArray(m)?[]:null,s(h,e.nativeEvent)),l.state.setIndices({activeIndex:null,selectedIndex:null,type:t.current?`keyboard`:`pointer`})),l.state.inputRef.current?.focus()}},ee,S],stateAttributesMapping:Rt});return o||C?T:null});export{Nt as a,Ot as c,St as d,yt as f,ot as g,st as h,Pt as i,wt as l,ut as m,Lt as n,K as o,_t as p,It as r,jt as s,Y as t,Ct as u};
|
|
2
|
-
//# sourceMappingURL=ComboboxClear-RsGmZUJN.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Eo as n,Fa as r,Ta as i,lE as a,vo as o}from"./utils-BctiQ4Ue.js";import{d as s}from"./ComboboxClear-RsGmZUJN.js";var c=e(t()),l=c.createContext(void 0);function u(){let e=c.useContext(l);if(e===void 0)throw Error(n(18));return e}var d=e(a()),f=c.forwardRef(function(e,t){let{render:n,className:r,style:i,items:a,...u}=e,[f,p]=c.useState(),m=c.useMemo(()=>({labelId:f,setLabelId:p,items:a}),[f,p,a]),h=o(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":f},u]}),g=(0,d.jsx)(l.Provider,{value:m,children:h});return a?(0,d.jsx)(s,{items:a,children:g}):g}),p=c.forwardRef(function(e,t){let{render:n,className:a,style:s,id:c,...l}=e,{setLabelId:d}=u(),f=i(c);return r(()=>(d(f),()=>{d(void 0)}),[f,d]),o(`div`,e,{ref:t,props:[{id:f},l]})});export{f as n,p as t};
|
|
2
|
-
//# sourceMappingURL=ComboboxGroupLabel-DO1lnPnr.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Ar as n,Br as r,Dr as i,Fr as a,Gi as o,Hi as s,Hr as c,Ia as l,Ir as u,Ji as d,Jr as f,Ki as p,Kr as m,Lr as h,Pa as g,Rr as _,So as v,Ui as y,Ur as b,Vi as x,Wi as S,Wr as C,Yi as w,Yr as T,lE as E,la as D,qi as O,qr as k,vo as A,wo as j,xo as M,zr as N}from"./utils-BctiQ4Ue.js";var P=e(t());function F(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var I=`data-composite-item-active`,L=[];function R(e){let{itemSizes:t,cols:n=1,loopFocus:i=!0,onLoop:g,dense:v=!1,orientation:C=`both`,direction:E,highlightedIndex:A,onHighlightedIndexChange:M,rootRef:I,enableHomeAndEndKeys:R=!1,stopEventPropagation:B=!1,disabledIndices:V,modifierKeys:H=L}=e,[U,W]=P.useState(0),G=n>1,K=P.useRef(null),q=j(K,I),J=P.useRef([]),Y=P.useRef(!1),X=A??U,Z=l((e,t=!1)=>{if((M??W)(e),t){let t=J.current[e];T(K.current,t,E,C)}}),Q=l(e=>{if(e.size===0||Y.current)return;Y.current=!0;let t=Array.from(e.keys()),n=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,r=n?t.indexOf(n):-1;r!==-1&&Z(r),T(K.current,n,E,C)}),ee=l((e,t,n)=>g?g?.(e,t,n,J):n),$=P.useMemo(()=>({"aria-orientation":C===`both`?void 0:C,ref:q,onFocus(e){let t=K.current,n=D(e.nativeEvent);t&&n!=null&&f(n)&&n.setSelectionRange(0,n.value.length??0)},onKeyDown(e){let l=R?r:u;if(!l.has(e.key)||z(e,H)||!K.current)return;let T=E===`rtl`,A=T?h:_,j={horizontal:A,vertical:a,both:A}[C],M=T?_:h,P={horizontal:M,vertical:N,both:M}[C],I=D(e.nativeEvent);if(I!=null&&f(I)&&!F(I)){let t=I.selectionStart,n=I.selectionEnd,r=I.value??``;if(t==null||e.shiftKey||t!==n||e.key!==P&&t<r.length||e.key!==j&&t>0)return}let L=X,U=O(J,V),W=p(J,V);if(G){let r=t||Array.from({length:J.current.length},()=>({width:1,height:1})),a=x(r,n,v),s=a.findIndex(e=>e!=null&&!w(J.current,e,V)),c=a.reduce((e,t,n)=>t!=null&&!w(J.current,t,V)?n:e,-1);L=a[o(a.map(e=>e==null?null:J.current[e]),{event:e,orientation:C,loopFocus:i,onLoop:ee,cols:n,disabledIndices:S([...V||J.current.map((e,t)=>w(J.current,t)?t:void 0),void 0],a),minIndex:s,maxIndex:c,prevIndex:y(X>W?U:X,r,a,n,e.key===`ArrowDown`?`bl`:e.key===`ArrowRight`?`tr`:`tl`),rtl:T})]}let q={horizontal:[A],vertical:[a],both:[A,a]}[C],Y={horizontal:[M],vertical:[N],both:[M,N]}[C],Q=G?l:{horizontal:R?b:c,vertical:R?k:m,both:l}[C];R&&(e.key===`Home`?L=U:e.key===`End`&&(L=W)),L===X&&(q.includes(e.key)||Y.includes(e.key))&&(i&&L===W&&q.includes(e.key)?(L=U,g&&(L=g(e,X,L,J))):i&&L===U&&Y.includes(e.key)?(L=W,g&&(L=g(e,X,L,J))):L=s(J.current,{startingIndex:L,decrement:Y.includes(e.key),disabledIndices:V})),L!==X&&!d(J.current,L)&&(B&&e.stopPropagation(),Q.has(e.key)&&e.preventDefault(),Z(L,!0),queueMicrotask(()=>{J.current[L]?.focus()}))}}),[n,v,E,V,J,R,X,G,t,i,g,ee,q,H,Z,C,B]);return P.useMemo(()=>({props:$,highlightedIndex:X,onHighlightedIndexChange:Z,elementsRef:J,disabledIndices:V,onMapChange:Q,relayKeyboardEvent:$.onKeyDown}),[$,X,Z,J,V,Q])}function z(e,t){for(let n of C.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}var B=e(E());function V(e){let{render:t,className:r,style:a,refs:o=M,props:s=M,state:c=v,stateAttributesMapping:l,highlightedIndex:u,onHighlightedIndexChange:d,orientation:f,dense:p,itemSizes:m,loopFocus:h,onLoop:_,cols:y,enableHomeAndEndKeys:b,onMapChange:x,stopEventPropagation:S=!0,rootRef:C,disabledIndices:w,modifierKeys:T,highlightItemOnHover:E=!1,tag:D=`div`,...O}=e,{props:k,highlightedIndex:j,onHighlightedIndexChange:N,elementsRef:F,onMapChange:I,relayKeyboardEvent:L}=R({itemSizes:m,cols:y,loopFocus:h,onLoop:_,dense:p,orientation:f,highlightedIndex:u,onHighlightedIndexChange:d,rootRef:C,stopEventPropagation:S,enableHomeAndEndKeys:b,direction:n(),disabledIndices:w,modifierKeys:T}),z=A(D,e,{state:c,ref:o,props:[k,...s,O],stateAttributesMapping:l}),V=P.useMemo(()=>({highlightedIndex:j,onHighlightedIndexChange:N,highlightItemOnHover:E,relayKeyboardEvent:L}),[j,N,E,L]);return(0,B.jsx)(g.Provider,{value:V,children:(0,B.jsx)(i,{elementsRef:F,onMapChange:e=>{x?.(e),I(e)},children:z})})}export{I as n,V as t};
|
|
2
|
-
//# sourceMappingURL=CompositeRoot-DDZcK2m0.js.map
|