decocms 4.83.2 → 4.83.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-C-LWGksh.js → AlertCircle-Dq71LScH.js} +1 -1
- package/dist/client/assets/{AreaChart-BuQ7pYh_.js → AreaChart-Ckq4JiBW.js} +1 -1
- package/dist/client/assets/{ArrowUp-BeEo8zxR.js → ArrowUp-CslVDVm8.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-Cpd1Kvoc.js → ArrowUpRight-Bi_HBNws.js} +1 -1
- package/dist/client/assets/{CheckCircle-D6vue6JR.js → CheckCircle-1OiOtWDi.js} +1 -1
- package/dist/client/assets/{ChevronDown-Chms7f47.js → ChevronDown-POdyuGhT.js} +1 -1
- package/dist/client/assets/{ChevronRight-DGKhdwsU.js → ChevronRight-DrB8B6LZ.js} +1 -1
- package/dist/client/assets/{ChevronUp-B2kc02W-.js → ChevronUp-C8m0cJLX.js} +1 -1
- package/dist/client/assets/{Copy01-BLPcoB-x.js → Copy01-CYlj1vxU.js} +1 -1
- package/dist/client/assets/{DotsVertical-Bv_Wu1PR.js → DotsVertical-Ca7b3C0v.js} +1 -1
- package/dist/client/assets/{Eye--S6NkM5F.js → Eye-DfJT3UtK.js} +1 -1
- package/dist/client/assets/{FilterLines-CVyIbk7P.js → FilterLines-Dvf7tHzR.js} +1 -1
- package/dist/client/assets/{Globe01-D8U_-ef0.js → Globe01-Ien-1Tkv.js} +1 -1
- package/dist/client/assets/{Globe04-Cf7fSPDC.js → Globe04-3rh6FP_k.js} +1 -1
- package/dist/client/assets/{HardDrive-BDXue_9V.js → HardDrive-BE24e46v.js} +1 -1
- package/dist/client/assets/{Image01-BOJVTyLq.js → Image01-l_Ll_rDB.js} +1 -1
- package/dist/client/assets/{Key01-DgOZ1Vl-.js → Key01-Dt-Yhou_.js} +1 -1
- package/dist/client/assets/{LayoutLeft-uipFY-Sc.js → LayoutLeft-DxSTvRB2.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Cq7tHe_6.js → LinkExternal01-CG1PRc3_.js} +1 -1
- package/dist/client/assets/{Monitor01-C0kqyHBJ.js → Monitor01-GhZQ4Kev.js} +1 -1
- package/dist/client/assets/{Package-2_HSkxNk.js → Package-B3tirBOc.js} +1 -1
- package/dist/client/assets/{Palette-DUf6RWjx.js → Palette-DSb-jKRY.js} +1 -1
- package/dist/client/assets/{Play-D27HpOrJ.js → Play-DYkfGaNO.js} +1 -1
- package/dist/client/assets/{Plus-CX4xPpn4.js → Plus-BUg9xI0h.js} +1 -1
- package/dist/client/assets/{SearchLg-EiBSceY9.js → SearchLg-DKMN0iwm.js} +1 -1
- package/dist/client/assets/{SearchMd-CjaEgvWB.js → SearchMd-C_pleyIU.js} +1 -1
- package/dist/client/assets/{Settings02-5t6-pGmO.js → Settings02-Cd8o3xNO.js} +1 -1
- package/dist/client/assets/{Shield01-DxxbOkrj.js → Shield01-CwTanxWb.js} +1 -1
- package/dist/client/assets/{Star01-DBLmagOx.js → Star01-D4N4byzx.js} +1 -1
- package/dist/client/assets/{Stars01-D-dD7V12.js → Stars01-BGgTThTG.js} +1 -1
- package/dist/client/assets/{Stars02-BHQ6SybJ.js → Stars02-BJyIedKc.js} +1 -1
- package/dist/client/assets/{Sun-7RqH2_Dg.js → Sun-DWhn4gR_.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-Dm27fxw8.js → SwitchHorizontal01-qLYK_wFI.js} +1 -1
- package/dist/client/assets/{Tool01-Bk7pamHg.js → Tool01-CP_Ef4Y_.js} +1 -1
- package/dist/client/assets/{Tool02-CngweHED.js → Tool02-D7oSQJgI.js} +1 -1
- package/dist/client/assets/{Trash01-Bi1KaIxH.js → Trash01-CxBlA1E7.js} +1 -1
- package/dist/client/assets/{TrendUp01-DsSWSiUz.js → TrendUp01-DuD7hG_1.js} +1 -1
- package/dist/client/assets/{Upload01-BWPUocl6.js → Upload01-Cqn0OezE.js} +1 -1
- package/dist/client/assets/{User01-s23e9wZl.js → User01-Byo1af9Z.js} +1 -1
- package/dist/client/assets/{Users01-CNMhmtlD.js → Users01-D5HJa4UA.js} +1 -1
- package/dist/client/assets/{Users03-CTnD7KhC.js → Users03-BWGlmViM.js} +1 -1
- package/dist/client/assets/{X-CLk-1WTe.js → X-BlDFTg97.js} +1 -1
- package/dist/client/assets/{XCircle-2O_4kWp7.js → XCircle-WQBMODEn.js} +1 -1
- package/dist/client/assets/{XClose-DSEAQFLe.js → XClose-CVZk1vk3.js} +1 -1
- package/dist/client/assets/{Zap-BAgOs3IO.js → Zap-BDEn1Om0.js} +1 -1
- package/dist/client/assets/{ZapSquare-T3uj9o0S.js → ZapSquare-DALy5P51.js} +1 -1
- package/dist/client/assets/{ZoomOut-B7mxhvah.js → ZoomOut-ByJ0JnTP.js} +1 -1
- package/dist/client/assets/{access-gate-avJTtHpg.js → access-gate-ChLcg5Nd.js} +1 -1
- package/dist/client/assets/{add-section-modal-BL-x5qaG.js → add-section-modal-BlRNYZcb.js} +1 -1
- package/dist/client/assets/{agent-icon-D18juLx-.js → agent-icon-13Bvgd_j.js} +1 -1
- package/dist/client/assets/{agents-list-DLkLGDrw.js → agents-list-Bak0EL7o.js} +1 -1
- package/dist/client/assets/{ai-providers-KsLhnp0X.js → ai-providers-wFCpAyP7.js} +1 -1
- package/dist/client/assets/{alert-Bele4j8y.js → alert-BhdYjs4a.js} +1 -1
- package/dist/client/assets/{alert-dialog-BNeEAttR.js → alert-dialog-CmXFyCvD.js} +1 -1
- package/dist/client/assets/{app-editor-B0BrwnQg.js → app-editor-0qR2Au3G.js} +1 -1
- package/dist/client/assets/{auth-D4yHRD2-.js → auth-D4pinPO_.js} +1 -1
- package/dist/client/assets/{auth-catchall-CNZ3D5s7.js → auth-catchall-BE9pEcVu.js} +1 -1
- package/dist/client/assets/{auth-entry-C-qYM8sO.js → auth-entry-_t1zy1On.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DYTsk60r.js → auth-split-layout-BrMRPVvG.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BlDhuvWq.js → authenticate-and-persist-oauth-C9wYzLvE.js} +1 -1
- package/dist/client/assets/{automation-list-row-XKqqDi6F.js → automation-list-row-CzUMlQAq.js} +1 -1
- package/dist/client/assets/{automation-runs-C0y-Gi-l.js → automation-runs-OWgoSJa3.js} +1 -1
- package/dist/client/assets/{automations-DdZPK7BE.js → automations-BSThGLPn.js} +1 -1
- package/dist/client/assets/{autosend-Pu6JcU1z.js → autosend-CHx4-yd0.js} +1 -1
- package/dist/client/assets/{avatar-CB-s6LW3.js → avatar-C1heVpGY.js} +1 -1
- package/dist/client/assets/{badge-D2OV8wRl.js → badge-BNRAw8Bb.js} +1 -1
- package/dist/client/assets/{block-document-CMsWkopF.js → block-document-ih0h-AsW.js} +1 -1
- package/dist/client/assets/{brand-context-DWWqlpVW.js → brand-context-zAGFYiki.js} +1 -1
- package/dist/client/assets/{buckets-Bml_f-qW.js → buckets-BEFMJJxn.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-CwTU2Dke.js → bulk-category-panel-DOkQqtZ_.js} +1 -1
- package/dist/client/assets/{calendar-Cy0H8dDP.js → calendar-DfaRfulu.js} +1 -1
- package/dist/client/assets/{capability-load-error-C8Uwu5_s.js → capability-load-error-BRtl8R4o.js} +1 -1
- package/dist/client/assets/{card-BJLhqcLf.js → card-CQoP9MfL.js} +1 -1
- package/dist/client/assets/{category-editor-CfWwzNXf.js → category-editor-DI2hqimO.js} +1 -1
- package/dist/client/assets/{chat-context-BzGsRBEi.js → chat-context-BsaCa_DG.js} +1 -1
- package/dist/client/assets/{checkbox-fY0uDGwg.js → checkbox-C3x2xy3e.js} +1 -1
- package/dist/client/assets/{cli-auth-success-B08QkmvU.js → cli-auth-success-Fai5s8yh.js} +1 -1
- package/dist/client/assets/{collection-detail-BZt_Ibwr.js → collection-detail-ennSOjUy.js} +1 -1
- package/dist/client/assets/{collection-display-button-Cc0b3ED_.js → collection-display-button-D9w0IGfJ.js} +1 -1
- package/dist/client/assets/{collection-search-Bv843kn7.js → collection-search-CGK9Tjv1.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DjmKYjAk.js → collection-table-wrapper-BZokjb7V.js} +1 -1
- package/dist/client/assets/{collection-tabs-B6yGaiCr.js → collection-tabs-D085OI97.js} +1 -1
- package/dist/client/assets/{command-DWwqFTuu.js → command-BIwzkDTa.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-dLv4vpps.js → commerce-onboarding-CYR4Ibo2.js} +1 -1
- package/dist/client/assets/{companions-core-NOLgowrv.js → companions-core-CXjW5j0k.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-DEpb0pcU.js → connect-desktop-dialog-B6JSQZbl.js} +1 -1
- package/dist/client/assets/{connection-card-o0DDUNHv.js → connection-card-ChdEy0aa.js} +1 -1
- package/dist/client/assets/{connection-detail-Cswj6S4W.js → connection-detail-BL9gs4gZ.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-EPDDGUte.js → connection-form-helpers-BW_OXgrR.js} +1 -1
- package/dist/client/assets/{connections-6qWoAdqX.js → connections-DZaGf7ri.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-D-2tGt-o.js → decopilot-sse-pool-DP5wFK-s.js} +1 -1
- package/dist/client/assets/{dialog-BFqbrhnG.js → dialog-C_DVh6dL.js} +1 -1
- package/dist/client/assets/{domain-settings-IW5nZczN.js → domain-settings-Cj-3tRjQ.js} +1 -1
- package/dist/client/assets/{drawer-Cl_dvusi.js → drawer-CSWG6-lE.js} +1 -1
- package/dist/client/assets/{dropdown-menu-EfeTZxQL.js → dropdown-menu-BPdwP-Cq.js} +1 -1
- package/dist/client/assets/{empty-state-DQOY2xmV.js → empty-state-eym_qidP.js} +1 -1
- package/dist/client/assets/{extract-connection-data-C6T0yo3M.js → extract-connection-data-BDUkkovZ.js} +1 -1
- package/dist/client/assets/{file-explorer-BIc5X5VW.js → file-explorer-CRXt_uzp.js} +1 -1
- package/dist/client/assets/{file-type-icon-D2keXo94.js → file-type-icon-Dw6g3RvK.js} +1 -1
- package/dist/client/assets/{files-CSH75kzv.js → files-CrQJOLBS.js} +1 -1
- package/dist/client/assets/{form-CGKisGk6.js → form-DbFG2gV9.js} +1 -1
- package/dist/client/assets/{general-BfoX5LCV.js → general-B-uXj50R.js} +1 -1
- package/dist/client/assets/{github-repo-picker-BRMhPL_0.js → github-repo-picker-mgwh4S43.js} +1 -1
- package/dist/client/assets/{hooks-BSMoXVbD.js → hooks-BbLNuUpJ.js} +1 -1
- package/dist/client/assets/{index-DrJmHyyo.js → index-B2pGTgfd.js} +1 -1
- package/dist/client/assets/{index-S3X52veH.js → index-BJhuA1NC.js} +1 -1
- package/dist/client/assets/{index-BmwqFaiy.js → index-BK8QLtZw.js} +27 -27
- package/dist/client/assets/{index-ChtsFoQQ.js → index-C-nnw44A.js} +1 -1
- package/dist/client/assets/{index-DSgOediN.js → index-CVMmEe4k.js} +1 -1
- package/dist/client/assets/{index-CXCcDBTq.js → index-CXfpC-Ac.js} +1 -1
- package/dist/client/assets/{index-ByT194y-.js → index-Cm_7pLUJ.js} +1 -1
- package/dist/client/assets/{index-D2HwJQV5.js → index-DChE5Bom.js} +2 -2
- package/dist/client/assets/{index-BKqtjTbw.js → index-DPftLDJB.js} +1 -1
- package/dist/client/assets/{index-BCsh3PYH.js → index-DeTt8kcD.js} +1 -1
- package/dist/client/assets/{index-Rb2bYeF_.js → index-DhAwrPkw.js} +1 -1
- package/dist/client/assets/{index-CUgYJaPV.js → index-Hhp9Cp4W.js} +1 -1
- package/dist/client/assets/{index-H4hcES42.js → index-jpjInX7o.js} +1 -1
- package/dist/client/assets/{index-CAIYhjul.js → index-qXbPtiGF.js} +3 -3
- package/dist/client/assets/{index-redirect-CEHG6qWB.js → index-redirect-Dqyvvfcm.js} +1 -1
- package/dist/client/assets/{input-Dzav8ivG.js → input-C_tu8il1.js} +1 -1
- package/dist/client/assets/{integration-icon-Db96f3jT.js → integration-icon-DSlodAQt.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-9O6Lre1u.js → invite-member-dialog-CQTysMtI.js} +1 -1
- package/dist/client/assets/{label-DaAsoL9V.js → label-D3i55MXt.js} +1 -1
- package/dist/client/assets/{layout-Br8401sd.js → layout-DJPD-zXs.js} +1 -1
- package/dist/client/assets/{login-DceebZPc.js → login-DNzBnWQ5.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Bzb4iSTT.js → mcp-oauth-DoJRBeY3.js} +1 -1
- package/dist/client/assets/{members-DJky7gY8.js → members-Dpg145Hf.js} +1 -1
- package/dist/client/assets/{monaco-editor-c4RVis_9.js → monaco-editor-DcX3oP6C.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CgDrRjXa.js → monitoring-stats-row-LuHWjTET.js} +1 -1
- package/dist/client/assets/{multi-select-DswivzJU.js → multi-select-CYdmy4Og.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-B07g_XT9.js → oauth-callback-ai-provider-Dfpj5oWA.js} +1 -1
- package/dist/client/assets/{oauth-callback-N8Kmr_2u.js → oauth-callback-pUkfQfMd.js} +1 -1
- package/dist/client/assets/{onboarding-BKAjTwg-.js → onboarding-DNeHc1ru.js} +1 -1
- package/dist/client/assets/{org-install-HCB4vzUC.js → org-install-C3kI0mkw.js} +1 -1
- package/dist/client/assets/{org-layout-C0Q-q-fX.js → org-layout-DNiDYiLp.js} +1 -1
- package/dist/client/assets/{organization-choice-D9DKvqVz.js → organization-choice-4CoDbXZP.js} +1 -1
- package/dist/client/assets/{orgs-BrqG5BVm.js → orgs-Dv5bUNJq.js} +1 -1
- package/dist/client/assets/{page-seo-form-DZCzqL8q.js → page-seo-form-C0Sy1bZJ.js} +1 -1
- package/dist/client/assets/page-seo-sheet-C2UuWJZm.js +1 -0
- package/dist/client/assets/{popover-Zrs8wv0F.js → popover-7b1YDSgF.js} +1 -1
- package/dist/client/assets/{post-editor-CdSGWiLa.js → post-editor-BcH5jm4R.js} +1 -1
- package/dist/client/assets/{primitives-CSHAedU0.js → primitives-CZE3Zj9J.js} +1 -1
- package/dist/client/assets/{profile-L8yVo8jE.js → profile-De_kH3tl.js} +1 -1
- package/dist/client/assets/project-app-view-Bwb8NSAL.js +1 -0
- package/dist/client/assets/record-editor-DsxlLgFk.js +1 -0
- package/dist/client/assets/redirect-editor-CZaippfv.js +1 -0
- package/dist/client/assets/registry-D-PlHzAu.js +2 -0
- package/dist/client/assets/{registry-layout-ftVzyud_.js → registry-layout-CnP4FzmH.js} +1 -1
- package/dist/client/assets/{reports--rTbu3V7.js → reports-D4omL7oj.js} +1 -1
- package/dist/client/assets/{require-capability-BYn5Rk3O.js → require-capability-CTzhtp87.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CoT_XXkN.js → required-auth-layout-Zgv6tcuN.js} +1 -1
- package/dist/client/assets/{reset-password-CgNFAvmH.js → reset-password-C_wWsQNG.js} +1 -1
- package/dist/client/assets/{roles-DMRweu6k.js → roles-D36jMnuu.js} +1 -1
- package/dist/client/assets/{search-input-Cq8-y1F0.js → search-input-ao3k3c0D.js} +1 -1
- package/dist/client/assets/{secrets-CmPAp_up.js → secrets-BjXUT4hY.js} +1 -1
- package/dist/client/assets/{sections-editor-wyl18rw9.js → sections-editor-DRAKYTV5.js} +1 -1
- package/dist/client/assets/{select-peZlJuYe.js → select-1ex5I1Wu.js} +1 -1
- package/dist/client/assets/select-model-DXud9cTq.js +4 -0
- package/dist/client/assets/{self-tool-result-DYrHsoN8.js → self-tool-result-DTDV3Ahy.js} +1 -1
- package/dist/client/assets/{seo-editor-BJVKSK5H.js → seo-editor-DYgg4g3Y.js} +1 -1
- package/dist/client/assets/{settings-layout-CPUHm_YX.js → settings-layout-DXfugPpX.js} +1 -1
- package/dist/client/assets/{settings-section-B1GgY2if.js → settings-section-DlT1IwEY.js} +1 -1
- package/dist/client/assets/{shell-controls-C_p4ZmTF.js → shell-controls-hiq_01H0.js} +1 -1
- package/dist/client/assets/{shell-layout-CTslVDtx.js → shell-layout-CK8b_Pp9.js} +1 -1
- package/dist/client/assets/{sidebar-BjlDvhlo.js → sidebar-y-EH5KNk.js} +1 -1
- package/dist/client/assets/{skeleton-DeOjoVUO.js → skeleton-C6ZVkGcB.js} +1 -1
- package/dist/client/assets/{sso-D363gW46.js → sso-5UVKnVh3.js} +1 -1
- package/dist/client/assets/{store-DvP7myd4.js → store-Z10-0DQr.js} +1 -1
- package/dist/client/assets/store-registry-JaoROLBU.js +2 -0
- package/dist/client/assets/{studio-tools-C0-5Z8k5.js → studio-tools-DtJF9wPb.js} +1 -1
- package/dist/client/assets/{switch-DG2ijYXZ.js → switch-COqizKS4.js} +1 -1
- package/dist/client/assets/{table-fSAZqdik.js → table-BgKMl0Qy.js} +1 -1
- package/dist/client/assets/{tabs-59hacXBf.js → tabs-DDIFUI8M.js} +1 -1
- package/dist/client/assets/{textarea-B9TUwSCj.js → textarea-DLQiN6V-.js} +1 -1
- package/dist/client/assets/{toggle-group-CP4FEYCM.js → toggle-group-CJG0K9zW.js} +1 -1
- package/dist/client/assets/{toolbar-Bn_kiKpu.js → toolbar-BLsTe09-.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DChgCAZk.js → toolbar-icon-button-jaBG4ceL.js} +1 -1
- package/dist/client/assets/{tooltip-DBcnpVTx.js → tooltip-BpxP2DIm.js} +1 -1
- package/dist/client/assets/{use-ai-providers-B0J5EZdH.js → use-ai-providers-6fLuh8sV.js} +1 -1
- package/dist/client/assets/{use-automations-CajzdSeA.js → use-automations-DnCJo6ng.js} +1 -1
- package/dist/client/assets/{use-autosave-BvYo7aS2.js → use-autosave-CnJzANeu.js} +1 -1
- package/dist/client/assets/{use-capability-CEtXiCRz.js → use-capability-eNg2RGCV.js} +1 -1
- package/dist/client/assets/{use-clock-tick-r_qU_UzB.js → use-clock-tick-BFPeLZ9c.js} +1 -1
- package/dist/client/assets/{use-collections-DHkHvLr2.js → use-collections-X_XL1Bcx.js} +1 -1
- package/dist/client/assets/{use-connection-DRK2N5z2.js → use-connection-CN0lagty.js} +1 -1
- package/dist/client/assets/{use-copy-BHgKL0On.js → use-copy-Brp3DVIx.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DaHNk0Ix.js → use-create-virtual-mcp-D-Vle1-t.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CBxkub0J.js → use-debounced-autosave-BL-2hHlb.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Bc5YBXDl.js → use-debounced-value-CdcEoo7h.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CbUWlpHm.js → use-deco-credits-x20cNm88.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-lkWlYZO4.js → use-decopilot-events-BxZWOpPz.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Bz-L6aVH.js → use-delete-connection-XFmtxA6F.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BmRZ12zi.js → use-deployment-admin-CV5tUw0t.js} +1 -1
- package/dist/client/assets/{use-file-configs-CRDwG08w.js → use-file-configs-CNLcWxP1.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-C_OzT98l.js → use-infinite-scroll-B12bE3UU.js} +1 -1
- package/dist/client/assets/{use-join-requests-x3YhuWSS.js → use-join-requests-BMFjJIIt.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-RbS9dxNI.js → use-mcp-auth-status-CZ1xNxZF.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BRDJsS2i.js → use-mcp-client-Cq4GaR34.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-TLy2HClY.js → use-mcp-tools-DMnQDeEU.js} +1 -1
- package/dist/client/assets/{use-members-T2DIW2PV.js → use-members-DFgtu823.js} +1 -1
- package/dist/client/assets/{use-mobile-COWtBi3l.js → use-mobile-CHEsWJnr.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DWAHU44q.js → use-navigate-to-agent-CmyTZsoC.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BICeQnTF.js → use-org-auth-client-BewuNLzq.js} +1 -1
- package/dist/client/assets/{use-org-sso-Bd_0B726.js → use-org-sso-BBjCi5h1.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DobbYYRj.js → use-organization-roles-BfJmBw1Z.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BJBqMmWF.js → use-organization-settings-BmBx1BVI.js} +1 -1
- package/dist/client/assets/{use-registry-app-C_q3DUZv.js → use-registry-app-Dz5-9bc9.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CmUf1QlB.js → use-registry-connections-CT3gQtE0.js} +1 -1
- package/dist/client/assets/{use-secrets-O5sD2Bgz.js → use-secrets-BcQyOE4x.js} +1 -1
- package/dist/client/assets/{use-status-sounds-B96xiiHa.js → use-status-sounds-B14x8Nc1.js} +1 -1
- package/dist/client/assets/{use-view-mode-BJOrvC1j.js → use-view-mode-CPxZs2eP.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-63tB8KYL.js → use-virtual-mcp-Bb8jRLD4.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Buq4C2cO.js +1 -0
- package/dist/client/assets/{useRouterState-BNyrcIx8.js → useRouterState-pWHcFfTc.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-C-bWKmpj.js +1 -0
- package/dist/client/assets/{users-DWHrGlvz.js → users-BhqqauRQ.js} +1 -1
- package/dist/client/assets/{variant-calendar-BVX3kYfI.js → variant-calendar-5w1WI5ak.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DBojFra_.js → view-mode-toggle-eXp0bn16.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +446 -446
- package/dist/server/migrate.js +91 -91
- package/dist/server/server.js +304 -304
- package/package.json +1 -1
- package/dist/client/assets/page-seo-sheet-MkscnSYp.js +0 -1
- package/dist/client/assets/project-app-view-D7_4EXf8.js +0 -1
- package/dist/client/assets/record-editor-sr_hR6uA.js +0 -1
- package/dist/client/assets/redirect-editor-DYiAiFDJ.js +0 -1
- package/dist/client/assets/registry-2F4l4D0M.js +0 -2
- package/dist/client/assets/select-model-DI8jnYOT.js +0 -4
- package/dist/client/assets/store-registry-r9GmOZET.js +0 -2
- package/dist/client/assets/useInfiniteQuery-BSKFC7YM.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Cwnl9Xjp.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as it,r as E,j as e,i as rt}from"./index-CAIYhjul.js";import{m as mt,o as pt,p as st,q as at}from"./sidebar-BjlDvhlo.js";import{m as nt}from"./automation-runs-C0y-Gi-l.js";import{r as lt,u as ct,a as dt,b as St,i as ft,f as ut,d as vt,P as ht,S as gt}from"./page-seo-form-DZCzqL8q.js";import{r as xt}from"./index-BmwqFaiy.js";import"./LayoutLeft-uipFY-Sc.js";import"./use-mobile-COWtBi3l.js";import"./X-CLk-1WTe.js";import"./tooltip-DBcnpVTx.js";import"./select-peZlJuYe.js";import"./ChevronUp-B2kc02W-.js";import"./ChevronDown-Chms7f47.js";import"./useInfiniteQuery-BSKFC7YM.js";import"./use-infinite-scroll-C_OzT98l.js";import"./use-connection-DRK2N5z2.js";import"./use-collections-DHkHvLr2.js";import"./use-mcp-client-BRDJsS2i.js";import"./auth-D4yHRD2-.js";import"./use-virtual-mcp-63tB8KYL.js";import"./card-BJLhqcLf.js";import"./table-fSAZqdik.js";import"./empty-state-DQOY2xmV.js";import"./use-members-T2DIW2PV.js";import"./use-org-auth-client-BICeQnTF.js";import"./use-clock-tick-r_qU_UzB.js";import"./AlertCircle-C-LWGksh.js";import"./CheckCircle-D6vue6JR.js";import"./DotsVertical-Bv_Wu1PR.js";import"./agent-icon-D18juLx-.js";import"./Tool01-Bk7pamHg.js";import"./ArrowUp-BeEo8zxR.js";import"./Settings02-5t6-pGmO.js";import"./Tool02-CngweHED.js";import"./XCircle-2O_4kWp7.js";import"./ArrowUpRight-Cpd1Kvoc.js";import"./TrendUp01-DsSWSiUz.js";import"./ZapSquare-T3uj9o0S.js";import"./ZoomOut-B7mxhvah.js";import"./Users03-CTnD7KhC.js";import"./ChevronRight-DGKhdwsU.js";import"./Stars02-BHQ6SybJ.js";import"./Copy01-BLPcoB-x.js";import"./Globe01-D8U_-ef0.js";import"./Eye--S6NkM5F.js";import"./FilterLines-CVyIbk7P.js";import"./Star01-DBLmagOx.js";import"./Globe04-Cf7fSPDC.js";import"./SwitchHorizontal01-Dm27fxw8.js";import"./HardDrive-BDXue_9V.js";import"./Image01-BOJVTyLq.js";import"./Key01-DgOZ1Vl-.js";import"./LinkExternal01-Cq7tHe_6.js";import"./Monitor01-C0kqyHBJ.js";import"./Sun-7RqH2_Dg.js";import"./Package-2_HSkxNk.js";import"./Palette-DUf6RWjx.js";import"./Play-D27HpOrJ.js";import"./Plus-CX4xPpn4.js";import"./SearchLg-EiBSceY9.js";import"./SearchMd-CjaEgvWB.js";import"./Shield01-DxxbOkrj.js";import"./Stars01-D-dD7V12.js";import"./Trash01-Bi1KaIxH.js";import"./Upload01-BWPUocl6.js";import"./User01-s23e9wZl.js";import"./Users01-CNMhmtlD.js";import"./XClose-DSEAQFLe.js";import"./Zap-BAgOs3IO.js";import"./use-automations-CajzdSeA.js";import"./studio-tools-C0-5Z8k5.js";import"./useSuspenseInfiniteQuery-Cwnl9Xjp.js";import"./avatar-CB-s6LW3.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BHgKL0On.js";import"./file-type-icon-D2keXo94.js";import"./dialog-BFqbrhnG.js";import"./tab-id-BijBBRwE.js";import"./hooks-BSMoXVbD.js";import"./decopilot-sse-pool-D-2tGt-o.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./chat-context-BzGsRBEi.js";import"./autosend-Pu6JcU1z.js";import"./use-ai-providers-B0J5EZdH.js";import"./location-BpLtHjTZ.js";import"./use-decopilot-events-lkWlYZO4.js";import"./use-organization-settings-BJBqMmWF.js";import"./monaco-editor-c4RVis_9.js";import"./index-CXCcDBTq.js";import"./index-S3X52veH.js";import"./calendar-Cy0H8dDP.js";import"./shell-layout-CTslVDtx.js";import"./required-auth-layout-CoT_XXkN.js";import"./use-org-sso-Bd_0B726.js";import"./integration-icon-Db96f3jT.js";import"./use-navigate-to-agent-DWAHU44q.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-BuQ7pYh_.js";import"./form-CGKisGk6.js";import"./label-DaAsoL9V.js";import"./input-Dzav8ivG.js";import"./switch-DG2ijYXZ.js";import"./drawer-Cl_dvusi.js";import"./collection-search-Bv843kn7.js";import"./index-D2HwJQV5.js";import"./get-initials-D-f_fDFw.js";import"./use-registry-app-C_q3DUZv.js";import"./use-mcp-tools-TLy2HClY.js";import"./github-repo-scope-DjMZbiKa.js";import"./authenticate-and-persist-oauth-BlDhuvWq.js";import"./mcp-oauth-Bzb4iSTT.js";import"./extract-connection-data-C6T0yo3M.js";import"./dropdown-menu-EfeTZxQL.js";import"./popover-Zrs8wv0F.js";import"./command-DWwqFTuu.js";import"./index-DrJmHyyo.js";import"./tabs-59hacXBf.js";import"./toggle-group-CP4FEYCM.js";import"./use-deco-credits-CbUWlpHm.js";import"./connection-card-o0DDUNHv.js";import"./use-registry-connections-CmUf1QlB.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-B9TUwSCj.js";import"./connection-form-helpers-EPDDGUte.js";import"./collection-tabs-B6yGaiCr.js";import"./badge-D2OV8wRl.js";import"./connect-desktop-dialog-DEpb0pcU.js";import"./select-model-DI8jnYOT.js";import"./checkbox-fY0uDGwg.js";import"./skeleton-DeOjoVUO.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-B1GgY2if.js";import"./index-BKqtjTbw.js";import"./alert-dialog-BNeEAttR.js";import"./toolbar-Bn_kiKpu.js";import"./use-debounced-value-Bc5YBXDl.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-B96xiiHa.js";import"./use-capability-CEtXiCRz.js";import"./toolbar-icon-button-DChgCAZk.js";import"./use-debounced-autosave-CBxkub0J.js";import"./index-CUgYJaPV.js";import"./search-input-Cq8-y1F0.js";import"./use-mcp-auth-status-RbS9dxNI.js";import"./github-repo-picker-BRMhPL_0.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./use-secrets-O5sD2Bgz.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-NOLgowrv.js";import"./use-file-configs-CRDwG08w.js";import"./automation-list-row-XKqqDi6F.js";function fi(u){const t=it.c(46),{open:N,onOpenChange:P,orgSlug:Q,virtualMcpId:U,branch:W,decofile:G,meta:s,target:m,onSaved:X}=u,o=lt(G,m,s),k=m.kind==="site"?"site":m.pageKey,[Y,Z]=E.useState(k),[tt,i]=E.useState(null),[J,g]=E.useState(void 0),[x,y]=E.useState(0);Y!==k&&(Z(k),i(null),g(void 0),y(wt));const{persistSeo:a,persistRawSeo:I,flush:K,isPending:D}=ct({orgSlug:Q,virtualMcpId:U,branch:W,target:m,resolved:o,onSaved:X}),w=m.kind==="page",ot=w?o?.rawSeoData:void 0,v=J!==void 0?J:ot,et=w?dt(v)??void 0:void 0,h=tt??et??o?.seoData??{},p=o?St(h,o):null,n=p&&(!w||ft(v))?xt(p,s):null,_=m.kind==="page"?ut(G,s)?.seoData??void 0:void 0;let j;t[0]!==s?(j=vt(s),t[0]=s,t[1]=j):j=t[1];const M=j;let R;t[2]!==a||t[3]!==o||t[4]!==i?(R=r=>{if(!o)return;const L=r;i(L),a(L)},t[2]=a,t[3]=o,t[4]=i,t[5]=R):R=t[5];const V=R;let F;t[6]!==K||t[7]!==P?(F=r=>{r||K(),P(r)},t[6]=K,t[7]=P,t[8]=F):F=t[8];const q=F,z=m.kind==="site"?"Site SEO":"Page SEO",T=w&&o,A=m.kind==="site"&&o&&n,B=m.kind==="site"?"No site-level SEO block found.":o?"SEO schema not found for this page.":"Could not load page SEO.";let C;t[9]!==i?(C=()=>i(null),t[9]=i,t[10]=C):C=t[10];const H=C;let O;t[11]!==y?(O=()=>y(yt),t[11]=y,t[12]=O):O=t[12];const $=O;let l;t[13]!==z?(l=e.jsx(mt,{className:"text-sm font-semibold",children:z}),t[13]=z,t[14]=l):l=t[14];let c;t[15]!==D?(c=D&&e.jsx(rt,{size:14,className:"animate-spin text-muted-foreground"}),t[15]=D,t[16]=c):c=t[16];let d;t[17]!==l||t[18]!==c?(d=e.jsxs(pt,{className:"px-4 py-3 border-b flex-row items-center justify-between space-y-0",children:[l,c]}),t[17]=l,t[18]=c,t[19]=d):d=t[19];let S;t[20]!==p||t[21]!==$||t[22]!==H||t[23]!==M||t[24]!==v||t[25]!==h||t[26]!==B||t[27]!==x||t[28]!==V||t[29]!==I||t[30]!==a||t[31]!==o||t[32]!==n||t[33]!==i||t[34]!==g||t[35]!==T||t[36]!==A||t[37]!==_?(S=!o||!T&&!A?e.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:B}):e.jsx(nt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:e.jsx("div",{className:"px-6 py-4",children:e.jsx("div",{className:"mx-auto max-w-sm",children:T?e.jsx(ht,{rawSeo:v,innerSeo:h,defaultResolveType:M,seoSchema:n,activeResolveType:p,seoTypeOptions:o.seoTypeOptions,formResetKey:x,siteDefaultSeo:_,onPersistRaw:r=>{g(r),I(r)},onInnerChange:r=>{i(r),a(r)},onClearForm:H,onBumpFormKey:$}):n&&p&&e.jsx(gt,{schema:n,resolveType:p,value:h,formResetKey:x,onChange:V})})})}),t[20]=p,t[21]=$,t[22]=H,t[23]=M,t[24]=v,t[25]=h,t[26]=B,t[27]=x,t[28]=V,t[29]=I,t[30]=a,t[31]=o,t[32]=n,t[33]=i,t[34]=g,t[35]=T,t[36]=A,t[37]=_,t[38]=S):S=t[38];let f;t[39]!==d||t[40]!==S?(f=e.jsxs(st,{side:"right",className:"w-[400px] sm:max-w-[440px] p-0 gap-0",children:[d,S]}),t[39]=d,t[40]=S,t[41]=f):f=t[41];let b;return t[42]!==q||t[43]!==N||t[44]!==f?(b=e.jsx(at,{open:N,onOpenChange:q,children:f}),t[42]=q,t[43]=N,t[44]=f,t[45]=b):b=t[45],b}function yt(u){return u+1}function wt(u){return u+1}export{fi as SeoSheet};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as L,C as H,j as U}from"./index-CAIYhjul.js";import{a as O,g as $,s as E}from"./automation-runs-C0y-Gi-l.js";import{q as k,u as q}from"./use-mcp-client-BRDJsS2i.js";import{b as B,c as V}from"./use-mcp-tools-TLy2HClY.js";import{u as Y}from"./index-BmwqFaiy.js";import{c as G}from"./monaco-editor-c4RVis_9.js";import{g as K,M as W,a as D}from"./index-S3X52veH.js";import{b as z,a as F}from"./chat-context-BzGsRBEi.js";import{u as J}from"./shell-layout-CTslVDtx.js";import{O as Q}from"./tab-id-BijBBRwE.js";import"./select-peZlJuYe.js";import"./tooltip-DBcnpVTx.js";import"./ChevronUp-B2kc02W-.js";import"./ChevronDown-Chms7f47.js";import"./useInfiniteQuery-BSKFC7YM.js";import"./use-infinite-scroll-C_OzT98l.js";import"./use-connection-DRK2N5z2.js";import"./use-collections-DHkHvLr2.js";import"./use-virtual-mcp-63tB8KYL.js";import"./card-BJLhqcLf.js";import"./sidebar-BjlDvhlo.js";import"./LayoutLeft-uipFY-Sc.js";import"./use-mobile-COWtBi3l.js";import"./X-CLk-1WTe.js";import"./table-fSAZqdik.js";import"./empty-state-DQOY2xmV.js";import"./use-members-T2DIW2PV.js";import"./use-org-auth-client-BICeQnTF.js";import"./use-clock-tick-r_qU_UzB.js";import"./AlertCircle-C-LWGksh.js";import"./CheckCircle-D6vue6JR.js";import"./DotsVertical-Bv_Wu1PR.js";import"./agent-icon-D18juLx-.js";import"./Tool01-Bk7pamHg.js";import"./ArrowUp-BeEo8zxR.js";import"./Settings02-5t6-pGmO.js";import"./Tool02-CngweHED.js";import"./XCircle-2O_4kWp7.js";import"./ArrowUpRight-Cpd1Kvoc.js";import"./TrendUp01-DsSWSiUz.js";import"./ZapSquare-T3uj9o0S.js";import"./ZoomOut-B7mxhvah.js";import"./Users03-CTnD7KhC.js";import"./ChevronRight-DGKhdwsU.js";import"./Stars02-BHQ6SybJ.js";import"./Copy01-BLPcoB-x.js";import"./Globe01-D8U_-ef0.js";import"./Eye--S6NkM5F.js";import"./FilterLines-CVyIbk7P.js";import"./Star01-DBLmagOx.js";import"./Globe04-Cf7fSPDC.js";import"./SwitchHorizontal01-Dm27fxw8.js";import"./HardDrive-BDXue_9V.js";import"./Image01-BOJVTyLq.js";import"./Key01-DgOZ1Vl-.js";import"./LinkExternal01-Cq7tHe_6.js";import"./Monitor01-C0kqyHBJ.js";import"./Sun-7RqH2_Dg.js";import"./Package-2_HSkxNk.js";import"./Palette-DUf6RWjx.js";import"./Play-D27HpOrJ.js";import"./Plus-CX4xPpn4.js";import"./SearchLg-EiBSceY9.js";import"./SearchMd-CjaEgvWB.js";import"./Shield01-DxxbOkrj.js";import"./Stars01-D-dD7V12.js";import"./Trash01-Bi1KaIxH.js";import"./Upload01-BWPUocl6.js";import"./User01-s23e9wZl.js";import"./Users01-CNMhmtlD.js";import"./XClose-DSEAQFLe.js";import"./Zap-BAgOs3IO.js";import"./use-automations-CajzdSeA.js";import"./studio-tools-C0-5Z8k5.js";import"./useSuspenseInfiniteQuery-Cwnl9Xjp.js";import"./avatar-CB-s6LW3.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BHgKL0On.js";import"./file-type-icon-D2keXo94.js";import"./dialog-BFqbrhnG.js";import"./hooks-BSMoXVbD.js";import"./decopilot-sse-pool-D-2tGt-o.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./calendar-Cy0H8dDP.js";import"./integration-icon-Db96f3jT.js";import"./use-navigate-to-agent-DWAHU44q.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-BuQ7pYh_.js";import"./form-CGKisGk6.js";import"./label-DaAsoL9V.js";import"./input-Dzav8ivG.js";import"./auth-D4yHRD2-.js";import"./drawer-Cl_dvusi.js";import"./collection-search-Bv843kn7.js";import"./autosend-Pu6JcU1z.js";import"./index-D2HwJQV5.js";import"./get-initials-D-f_fDFw.js";import"./use-registry-app-C_q3DUZv.js";import"./github-repo-scope-DjMZbiKa.js";import"./authenticate-and-persist-oauth-BlDhuvWq.js";import"./mcp-oauth-Bzb4iSTT.js";import"./extract-connection-data-C6T0yo3M.js";import"./use-decopilot-events-lkWlYZO4.js";import"./dropdown-menu-EfeTZxQL.js";import"./popover-Zrs8wv0F.js";import"./command-DWwqFTuu.js";import"./index-DrJmHyyo.js";import"./use-organization-settings-BJBqMmWF.js";import"./tabs-59hacXBf.js";import"./toggle-group-CP4FEYCM.js";import"./use-deco-credits-CbUWlpHm.js";import"./connection-card-o0DDUNHv.js";import"./use-registry-connections-CmUf1QlB.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-B9TUwSCj.js";import"./connection-form-helpers-EPDDGUte.js";import"./collection-tabs-B6yGaiCr.js";import"./badge-D2OV8wRl.js";import"./use-ai-providers-B0J5EZdH.js";import"./connect-desktop-dialog-DEpb0pcU.js";import"./select-model-DI8jnYOT.js";import"./checkbox-fY0uDGwg.js";import"./skeleton-DeOjoVUO.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-B1GgY2if.js";import"./index-BKqtjTbw.js";import"./alert-dialog-BNeEAttR.js";import"./toolbar-Bn_kiKpu.js";import"./use-debounced-value-Bc5YBXDl.js";import"./location-BpLtHjTZ.js";import"./index-CXCcDBTq.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-B96xiiHa.js";import"./use-capability-CEtXiCRz.js";import"./toolbar-icon-button-DChgCAZk.js";import"./use-debounced-autosave-CBxkub0J.js";import"./index-CUgYJaPV.js";import"./search-input-Cq8-y1F0.js";import"./use-mcp-auth-status-RbS9dxNI.js";import"./switch-DG2ijYXZ.js";import"./github-repo-picker-BRMhPL_0.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./use-secrets-O5sD2Bgz.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-NOLgowrv.js";import"./use-file-configs-CRDwG08w.js";import"./automation-list-row-XKqqDi6F.js";import"./required-auth-layout-CoT_XXkN.js";import"./use-org-sso-Bd_0B726.js";const X="studio://navigate";function Z(M){const[t]=M;if(M.length!==1||t?.type!=="resource_link"||!t.uri.startsWith(X))return{isNavigate:!1};let o=null;try{o=new URL(t.uri).searchParams.get("main")}catch{}return{isNavigate:!0,tab:o&&Q.has(o)?o:null}}const tt={};function ot(M){const t=L.c(38),{client:o,resourceURI:I,tool:i,connectionId:p,orgId:a,args:v}=M,{sendMessage:C}=z(),{setAppContext:f,clearAppContext:l}=F(),{openSidePanel:g,openTab:s}=J(),e=`${p}:${i.name}`;let c;t[0]!==s?(c=x=>x==="inline"?(s("0"),"inline"):"fullscreen",t[0]=s,t[1]=c):c=t[1];const m=c,n=v??tt;let u;t[2]!==o||t[3]!==i.name||t[4]!==n?(u={client:o,toolName:i.name,toolArguments:n},t[2]=o,t[3]=i.name,t[4]=n,t[5]=u):u=t[5];const{data:r}=V(u);let h;if(t[6]!==i._meta||t[7]!==i.name){const x=$(i._meta);h=E(i.name,x),t[6]=i._meta,t[7]=i.name,t[8]=h}else h=t[8];const A=h;let d;t[9]!==i.inputSchema?(d=i.inputSchema??{type:"object"},t[9]=i.inputSchema,t[10]=d):d=t[10];let R;t[11]!==A||t[12]!==d||t[13]!==i?(R={...i,name:A,inputSchema:d},t[11]=A,t[12]=d,t[13]=i,t[14]=R):R=t[14];const b=R;let _;t[15]!==g||t[16]!==s||t[17]!==C?(_=x=>{const j=Z(x.content);if(j.isNavigate){j.tab&&s(j.tab);return}const w=G(x.content);w.content.length>0&&(g("chat"),C({tiptapDoc:w}))},t[15]=g,t[16]=s,t[17]=C,t[18]=_):_=t[18];const y=_;let P;t[19]!==b?(P={tool:b},t[19]=b,t[20]=P):P=t[20];let N;t[21]!==f||t[22]!==e?(N=x=>f(e,x),t[21]=f,t[22]=e,t[23]=N):N=t[23];let T;t[24]!==l||t[25]!==e?(T=()=>l(e),t[24]=l,t[25]=e,t[26]=T):T=t[26];let S;return t[27]!==o||t[28]!==y||t[29]!==m||t[30]!==a||t[31]!==I||t[32]!==P||t[33]!==N||t[34]!==T||t[35]!==n||t[36]!==r?(S=U.jsx(W,{resourceURI:I,orgId:a,toolInfo:P,toolInput:n,toolResult:r,displayMode:"fullscreen",minHeight:D.fullscreen.minHeight,maxHeight:D.fullscreen.maxHeight,client:o,onMessage:y,onUpdateModelContext:N,onTeardown:T,onRequestDisplayMode:m,className:"h-full"}),t[27]=o,t[28]=y,t[29]=m,t[30]=a,t[31]=I,t[32]=P,t[33]=N,t[34]=T,t[35]=n,t[36]=r,t[37]=S):S=t[37],S}function Wi(M){const t=L.c(24),{connectionId:o,toolName:I,args:i}=M,{org:p}=H(),a=Y();let v;t[0]!==o||t[1]!==a?(v=k(o)&&a.vmEntry?.sandboxProviderKind==="user-desktop"&&a.previewUrl?`${a.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=o,t[1]=a,t[2]=v):v=t[2];const C=v;let f;t[3]!==o||t[4]!==C||t[5]!==p.id||t[6]!==p.slug?(f={connectionId:o,orgId:p.id,orgSlug:p.slug,mcpUrl:C},t[3]=o,t[4]=C,t[5]=p.id,t[6]=p.slug,t[7]=f):f=t[7];const l=q(f);let g;t[8]!==l?(g={client:l},t[8]=l,t[9]=g):g=t[9];const{data:s}=B(g);let e,c,m;t[10]!==I||t[11]!==s.tools?(e=O(decodeURIComponent(I)),m=s.tools.find(r=>r.name===e)??s.tools.find(r=>{const h=$(r._meta);if(!h)return!1;if(E(r.name,h)===e)return!0;const d=E(e,h);return d!==e&&r.name===d}),c=m?._meta?K(m._meta):void 0,t[10]=I,t[11]=s.tools,t[12]=e,t[13]=c,t[14]=m):(e=t[12],c=t[13],m=t[14]);const n=c;if(!m||!n){let r;return t[15]!==e?(r=U.jsx("div",{className:"flex items-center justify-center h-full w-full",children:U.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',e,'" not found or has no UI']})}),t[15]=e,t[16]=r):r=t[16],r}let u;return t[17]!==i||t[18]!==l||t[19]!==o||t[20]!==p.id||t[21]!==n||t[22]!==m?(u=U.jsx(ot,{client:l,resourceURI:n,tool:m,connectionId:o,orgId:p.id,args:i}),t[17]=i,t[18]=l,t[19]=o,t[20]=p.id,t[21]=n,t[22]=m,t[23]=u):u=t[23],u}export{Wi as AppViewContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as C,j as o}from"./index-CAIYhjul.js";import{I as B}from"./input-Dzav8ivG.js";import{L as T}from"./label-DaAsoL9V.js";import{S as L,a as A,b as R,c as z,d as O}from"./select-peZlJuYe.js";import{T as V}from"./textarea-B9TUwSCj.js";import{v as D,w as J,o as K,y as M,I as _}from"./index-BmwqFaiy.js";import{s as F}from"./primitives-CSHAedU0.js";import{u as $}from"./use-autosave-BvYo7aS2.js";import"./tooltip-DBcnpVTx.js";import"./ChevronUp-B2kc02W-.js";import"./ChevronDown-Chms7f47.js";import"./ArrowUp-BeEo8zxR.js";import"./chat-context-BzGsRBEi.js";import"./autosend-Pu6JcU1z.js";import"./hooks-BSMoXVbD.js";import"./use-mcp-client-BRDJsS2i.js";import"./auth-D4yHRD2-.js";import"./decopilot-sse-pool-D-2tGt-o.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-C0-5Z8k5.js";import"./use-virtual-mcp-63tB8KYL.js";import"./use-collections-DHkHvLr2.js";import"./use-ai-providers-B0J5EZdH.js";import"./location-BpLtHjTZ.js";import"./tab-id-BijBBRwE.js";import"./use-decopilot-events-lkWlYZO4.js";import"./use-organization-settings-BJBqMmWF.js";import"./automation-runs-C0y-Gi-l.js";import"./useInfiniteQuery-BSKFC7YM.js";import"./use-infinite-scroll-C_OzT98l.js";import"./use-connection-DRK2N5z2.js";import"./card-BJLhqcLf.js";import"./sidebar-BjlDvhlo.js";import"./LayoutLeft-uipFY-Sc.js";import"./use-mobile-COWtBi3l.js";import"./X-CLk-1WTe.js";import"./table-fSAZqdik.js";import"./empty-state-DQOY2xmV.js";import"./use-members-T2DIW2PV.js";import"./use-org-auth-client-BICeQnTF.js";import"./use-clock-tick-r_qU_UzB.js";import"./AlertCircle-C-LWGksh.js";import"./CheckCircle-D6vue6JR.js";import"./DotsVertical-Bv_Wu1PR.js";import"./agent-icon-D18juLx-.js";import"./Tool01-Bk7pamHg.js";import"./Settings02-5t6-pGmO.js";import"./Tool02-CngweHED.js";import"./XCircle-2O_4kWp7.js";import"./ArrowUpRight-Cpd1Kvoc.js";import"./TrendUp01-DsSWSiUz.js";import"./ZapSquare-T3uj9o0S.js";import"./ZoomOut-B7mxhvah.js";import"./Users03-CTnD7KhC.js";import"./ChevronRight-DGKhdwsU.js";import"./Stars02-BHQ6SybJ.js";import"./Copy01-BLPcoB-x.js";import"./Globe01-D8U_-ef0.js";import"./Eye--S6NkM5F.js";import"./FilterLines-CVyIbk7P.js";import"./Star01-DBLmagOx.js";import"./Globe04-Cf7fSPDC.js";import"./SwitchHorizontal01-Dm27fxw8.js";import"./HardDrive-BDXue_9V.js";import"./Image01-BOJVTyLq.js";import"./Key01-DgOZ1Vl-.js";import"./LinkExternal01-Cq7tHe_6.js";import"./Monitor01-C0kqyHBJ.js";import"./Sun-7RqH2_Dg.js";import"./Package-2_HSkxNk.js";import"./Palette-DUf6RWjx.js";import"./Play-D27HpOrJ.js";import"./Plus-CX4xPpn4.js";import"./SearchLg-EiBSceY9.js";import"./SearchMd-CjaEgvWB.js";import"./Shield01-DxxbOkrj.js";import"./Stars01-D-dD7V12.js";import"./Trash01-Bi1KaIxH.js";import"./Upload01-BWPUocl6.js";import"./User01-s23e9wZl.js";import"./Users01-CNMhmtlD.js";import"./XClose-DSEAQFLe.js";import"./Zap-BAgOs3IO.js";import"./use-automations-CajzdSeA.js";import"./useSuspenseInfiniteQuery-Cwnl9Xjp.js";import"./avatar-CB-s6LW3.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BHgKL0On.js";import"./file-type-icon-D2keXo94.js";import"./dialog-BFqbrhnG.js";import"./monaco-editor-c4RVis_9.js";import"./index-CXCcDBTq.js";import"./index-S3X52veH.js";import"./calendar-Cy0H8dDP.js";import"./shell-layout-CTslVDtx.js";import"./required-auth-layout-CoT_XXkN.js";import"./use-org-sso-Bd_0B726.js";import"./integration-icon-Db96f3jT.js";import"./use-navigate-to-agent-DWAHU44q.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-BuQ7pYh_.js";import"./form-CGKisGk6.js";import"./drawer-Cl_dvusi.js";import"./collection-search-Bv843kn7.js";import"./index-D2HwJQV5.js";import"./get-initials-D-f_fDFw.js";import"./use-registry-app-C_q3DUZv.js";import"./use-mcp-tools-TLy2HClY.js";import"./github-repo-scope-DjMZbiKa.js";import"./authenticate-and-persist-oauth-BlDhuvWq.js";import"./mcp-oauth-Bzb4iSTT.js";import"./extract-connection-data-C6T0yo3M.js";import"./dropdown-menu-EfeTZxQL.js";import"./popover-Zrs8wv0F.js";import"./command-DWwqFTuu.js";import"./index-DrJmHyyo.js";import"./tabs-59hacXBf.js";import"./toggle-group-CP4FEYCM.js";import"./use-deco-credits-CbUWlpHm.js";import"./connection-card-o0DDUNHv.js";import"./use-registry-connections-CmUf1QlB.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-EPDDGUte.js";import"./collection-tabs-B6yGaiCr.js";import"./badge-D2OV8wRl.js";import"./connect-desktop-dialog-DEpb0pcU.js";import"./select-model-DI8jnYOT.js";import"./checkbox-fY0uDGwg.js";import"./skeleton-DeOjoVUO.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-B1GgY2if.js";import"./index-BKqtjTbw.js";import"./alert-dialog-BNeEAttR.js";import"./toolbar-Bn_kiKpu.js";import"./use-debounced-value-Bc5YBXDl.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-B96xiiHa.js";import"./use-capability-CEtXiCRz.js";import"./toolbar-icon-button-DChgCAZk.js";import"./use-debounced-autosave-CBxkub0J.js";import"./index-CUgYJaPV.js";import"./search-input-Cq8-y1F0.js";import"./use-mcp-auth-status-RbS9dxNI.js";import"./switch-DG2ijYXZ.js";import"./github-repo-picker-BRMhPL_0.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./use-secrets-O5sD2Bgz.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-NOLgowrv.js";import"./use-file-configs-CRDwG08w.js";import"./automation-list-row-XKqqDi6F.js";const q={authors:[{key:"name",label:"Name",widget:"text"},{key:"type",label:"Type",widget:"select",options:[{value:"Person",label:"Person"},{value:"Organization",label:"Organization"}]},{key:"email",label:"Email",widget:"text",placeholder:"author@example.com"},{key:"jobTitle",label:"Job title",widget:"text"},{key:"company",label:"Company",widget:"text"},{key:"avatar",label:"Avatar",widget:"image"}]},G={authors:"Author"};function Ko(g){const t=C.c(34),{orgSlug:j,virtualMcpId:w,branch:S,kind:e,blockKey:h,block:E}=g;let y;t[0]!==S||t[1]!==j||t[2]!==w?(y={orgSlug:j,virtualMcpId:w,branch:S},t[0]=S,t[1]=j,t[2]=w,t[3]=y):y=t[3];const m=D(y);let d;t[4]!==E||t[5]!==e?(d=J(E,e),t[4]=E,t[5]=e,t[6]=d):d=t[6];const f=d;let k;t[7]!==h||t[8]!==e||t[9]!==m?(k=a=>{m.mutate({blockKey:h,data:M(h,e,a)})},t[7]=h,t[8]=e,t[9]=m,t[10]=k):k=t[10];const[i,N]=$(f,k);let b;t[11]!==i||t[12]!==N?(b=(a,r)=>N({...i,[a]:r}),t[11]=i,t[12]=N,t[13]=b):b=t[13];const p=b,I=G[e];let l;t[14]!==I?(l=o.jsx("span",{className:"text-sm font-medium",children:I}),t[14]=I,t[15]=l):l=t[15];let n;t[16]!==m.isError||t[17]!==m.isPending?(n=o.jsx(K,{isPending:m.isPending,isError:m.isError}),t[16]=m.isError,t[17]=m.isPending,t[18]=n):n=t[18];let c;t[19]!==l||t[20]!==n?(c=o.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[l,n]}),t[19]=l,t[20]=n,t[21]=c):c=t[21];const P=q[e];let u;if(t[22]!==i||t[23]!==p||t[24]!==P){let a;t[26]!==i||t[27]!==p?(a=r=>o.jsx("div",{className:"space-y-2",children:r.widget==="image"?o.jsx(_,{schema:{type:"string",format:"image-uri",title:r.label},value:i[r.key],onChange:s=>p(r.key,s),path:r.key,label:r.label}):r.widget==="select"?o.jsxs(o.Fragment,{children:[o.jsx(T,{htmlFor:r.key,children:r.label}),o.jsxs(L,{value:F(i[r.key])||r.options?.[0]?.value,onValueChange:s=>p(r.key,s),children:[o.jsx(A,{id:r.key,className:"h-10 w-full",children:o.jsx(R,{placeholder:r.label})}),o.jsx(z,{children:(r.options??[]).map(H)})]})]}):o.jsxs(o.Fragment,{children:[o.jsx(T,{htmlFor:r.key,children:r.label}),r.widget==="textarea"?o.jsx(V,{id:r.key,value:F(i[r.key]),onChange:s=>p(r.key,s.target.value),rows:3}):o.jsx(B,{id:r.key,value:F(i[r.key]),placeholder:r.placeholder,onChange:s=>p(r.key,s.target.value),className:"h-10"})]})},r.key),t[26]=i,t[27]=p,t[28]=a):a=t[28],u=P.map(a),t[22]=i,t[23]=p,t[24]=P,t[25]=u}else u=t[25];let x;t[29]!==u?(x=o.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:o.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:u})}),t[29]=u,t[30]=x):x=t[30];let v;return t[31]!==x||t[32]!==c?(v=o.jsxs("div",{className:"flex h-full flex-col",children:[c,x]}),t[31]=x,t[32]=c,t[33]=v):v=t[33],v}function H(g){return o.jsx(O,{value:g.value,children:g.label},g.value)}export{Ko as RecordEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as z,j as t}from"./index-CAIYhjul.js";import{C as G}from"./checkbox-fY0uDGwg.js";import{I as K}from"./input-Dzav8ivG.js";import{L as q}from"./label-DaAsoL9V.js";import{c as H,S as J,d as W,a as X,b as Z}from"./select-peZlJuYe.js";import{k as ee,a_ as te,o as re,a$ as M,b0 as ie}from"./index-BmwqFaiy.js";import{u as oe}from"./use-autosave-BvYo7aS2.js";import"./ChevronUp-B2kc02W-.js";import"./tooltip-DBcnpVTx.js";import"./ChevronDown-Chms7f47.js";import"./ArrowUp-BeEo8zxR.js";import"./chat-context-BzGsRBEi.js";import"./autosend-Pu6JcU1z.js";import"./hooks-BSMoXVbD.js";import"./use-mcp-client-BRDJsS2i.js";import"./auth-D4yHRD2-.js";import"./decopilot-sse-pool-D-2tGt-o.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-C0-5Z8k5.js";import"./use-virtual-mcp-63tB8KYL.js";import"./use-collections-DHkHvLr2.js";import"./use-ai-providers-B0J5EZdH.js";import"./location-BpLtHjTZ.js";import"./tab-id-BijBBRwE.js";import"./use-decopilot-events-lkWlYZO4.js";import"./use-organization-settings-BJBqMmWF.js";import"./automation-runs-C0y-Gi-l.js";import"./useInfiniteQuery-BSKFC7YM.js";import"./use-infinite-scroll-C_OzT98l.js";import"./use-connection-DRK2N5z2.js";import"./card-BJLhqcLf.js";import"./sidebar-BjlDvhlo.js";import"./LayoutLeft-uipFY-Sc.js";import"./use-mobile-COWtBi3l.js";import"./X-CLk-1WTe.js";import"./table-fSAZqdik.js";import"./empty-state-DQOY2xmV.js";import"./use-members-T2DIW2PV.js";import"./use-org-auth-client-BICeQnTF.js";import"./use-clock-tick-r_qU_UzB.js";import"./AlertCircle-C-LWGksh.js";import"./CheckCircle-D6vue6JR.js";import"./DotsVertical-Bv_Wu1PR.js";import"./agent-icon-D18juLx-.js";import"./Tool01-Bk7pamHg.js";import"./Settings02-5t6-pGmO.js";import"./Tool02-CngweHED.js";import"./XCircle-2O_4kWp7.js";import"./ArrowUpRight-Cpd1Kvoc.js";import"./TrendUp01-DsSWSiUz.js";import"./ZapSquare-T3uj9o0S.js";import"./ZoomOut-B7mxhvah.js";import"./Users03-CTnD7KhC.js";import"./ChevronRight-DGKhdwsU.js";import"./Stars02-BHQ6SybJ.js";import"./Copy01-BLPcoB-x.js";import"./Globe01-D8U_-ef0.js";import"./Eye--S6NkM5F.js";import"./FilterLines-CVyIbk7P.js";import"./Star01-DBLmagOx.js";import"./Globe04-Cf7fSPDC.js";import"./SwitchHorizontal01-Dm27fxw8.js";import"./HardDrive-BDXue_9V.js";import"./Image01-BOJVTyLq.js";import"./Key01-DgOZ1Vl-.js";import"./LinkExternal01-Cq7tHe_6.js";import"./Monitor01-C0kqyHBJ.js";import"./Sun-7RqH2_Dg.js";import"./Package-2_HSkxNk.js";import"./Palette-DUf6RWjx.js";import"./Play-D27HpOrJ.js";import"./Plus-CX4xPpn4.js";import"./SearchLg-EiBSceY9.js";import"./SearchMd-CjaEgvWB.js";import"./Shield01-DxxbOkrj.js";import"./Stars01-D-dD7V12.js";import"./Trash01-Bi1KaIxH.js";import"./Upload01-BWPUocl6.js";import"./User01-s23e9wZl.js";import"./Users01-CNMhmtlD.js";import"./XClose-DSEAQFLe.js";import"./Zap-BAgOs3IO.js";import"./use-automations-CajzdSeA.js";import"./useSuspenseInfiniteQuery-Cwnl9Xjp.js";import"./avatar-CB-s6LW3.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BHgKL0On.js";import"./file-type-icon-D2keXo94.js";import"./dialog-BFqbrhnG.js";import"./monaco-editor-c4RVis_9.js";import"./index-CXCcDBTq.js";import"./index-S3X52veH.js";import"./calendar-Cy0H8dDP.js";import"./shell-layout-CTslVDtx.js";import"./required-auth-layout-CoT_XXkN.js";import"./use-org-sso-Bd_0B726.js";import"./integration-icon-Db96f3jT.js";import"./use-navigate-to-agent-DWAHU44q.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-BuQ7pYh_.js";import"./form-CGKisGk6.js";import"./drawer-Cl_dvusi.js";import"./collection-search-Bv843kn7.js";import"./index-D2HwJQV5.js";import"./get-initials-D-f_fDFw.js";import"./use-registry-app-C_q3DUZv.js";import"./use-mcp-tools-TLy2HClY.js";import"./github-repo-scope-DjMZbiKa.js";import"./authenticate-and-persist-oauth-BlDhuvWq.js";import"./mcp-oauth-Bzb4iSTT.js";import"./extract-connection-data-C6T0yo3M.js";import"./dropdown-menu-EfeTZxQL.js";import"./popover-Zrs8wv0F.js";import"./command-DWwqFTuu.js";import"./index-DrJmHyyo.js";import"./tabs-59hacXBf.js";import"./toggle-group-CP4FEYCM.js";import"./use-deco-credits-CbUWlpHm.js";import"./connection-card-o0DDUNHv.js";import"./use-registry-connections-CmUf1QlB.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-B9TUwSCj.js";import"./connection-form-helpers-EPDDGUte.js";import"./collection-tabs-B6yGaiCr.js";import"./badge-D2OV8wRl.js";import"./connect-desktop-dialog-DEpb0pcU.js";import"./select-model-DI8jnYOT.js";import"./skeleton-DeOjoVUO.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-B1GgY2if.js";import"./index-BKqtjTbw.js";import"./alert-dialog-BNeEAttR.js";import"./toolbar-Bn_kiKpu.js";import"./use-debounced-value-Bc5YBXDl.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-B96xiiHa.js";import"./use-capability-CEtXiCRz.js";import"./toolbar-icon-button-DChgCAZk.js";import"./use-debounced-autosave-CBxkub0J.js";import"./index-CUgYJaPV.js";import"./search-input-Cq8-y1F0.js";import"./use-mcp-auth-status-RbS9dxNI.js";import"./switch-DG2ijYXZ.js";import"./github-repo-picker-BRMhPL_0.js";import"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import"./use-secrets-O5sD2Bgz.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-NOLgowrv.js";import"./use-file-configs-CRDwG08w.js";import"./automation-list-row-XKqqDi6F.js";const me=[{value:"temporary",label:`Temporary (${M.temporary})`},{value:"permanent",label:`Permanent (${M.permanent})`}];function Xr(_){const e=z.c(62),{orgSlug:$,virtualMcpId:A,branch:B,blockKey:D,block:O}=_;let S;e[0]!==B||e[1]!==$||e[2]!==A?(S={orgSlug:$,virtualMcpId:A,branch:B},e[0]=B,e[1]=$,e[2]=A,e[3]=S):S=e[3];const m=ee(S);let g;e[4]!==O?(g=te(O),e[4]=O,e[5]=g):g=e[5];const Y=g;let v;e[6]!==D||e[7]!==m?(v=o=>{m.mutate({blockKey:D,data:ie(o)})},e[6]=D,e[7]=m,e[8]=v):v=e[8];const[r,V]=oe(Y,v);let N;e[9]!==r||e[10]!==V?(N=o=>V({...r,...o}),e[9]=r,e[10]=V,e[11]=N):N=e[11];const i=N;let P;e[12]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx("span",{className:"text-sm font-medium",children:"Redirect"}),e[12]=P):P=e[12];let p;e[13]!==m.isError||e[14]!==m.isPending?(p=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[P,t.jsx(re,{isPending:m.isPending,isError:m.isError})]}),e[13]=m.isError,e[14]=m.isPending,e[15]=p):p=e[15];let T;e[16]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(q,{htmlFor:"redirect-from",children:"From"}),e[16]=T):T=e[16];let s;e[17]!==i?(s=o=>i({from:o.target.value}),e[17]=i,e[18]=s):s=e[18];let l;e[19]!==r.from||e[20]!==s?(l=t.jsx(K,{id:"redirect-from",value:r.from,placeholder:"/old-path",onChange:s,className:"h-10"}),e[19]=r.from,e[20]=s,e[21]=l):l=e[21];let E;e[22]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsxs("p",{className:"text-xs text-muted-foreground",children:["The source path to match. Supports URLPattern syntax (e.g."," ",t.jsx("code",{children:"/product/:slug"}),")."]}),e[22]=E):E=e[22];let a;e[23]!==l?(a=t.jsxs("div",{className:"space-y-2",children:[T,l,E]}),e[23]=l,e[24]=a):a=e[24];let R;e[25]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(q,{htmlFor:"redirect-to",children:"To"}),e[25]=R):R=e[25];let c;e[26]!==i?(c=o=>i({to:o.target.value}),e[26]=i,e[27]=c):c=e[27];let n;e[28]!==r.to||e[29]!==c?(n=t.jsx(K,{id:"redirect-to",value:r.to,placeholder:"/new-path",onChange:c,className:"h-10"}),e[28]=r.to,e[29]=c,e[30]=n):n=e[30];let k;e[31]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("p",{className:"text-xs text-muted-foreground",children:"The destination — a relative path or an absolute URL."}),e[31]=k):k=e[31];let d;e[32]!==n?(d=t.jsxs("div",{className:"space-y-2",children:[R,n,k]}),e[32]=n,e[33]=d):d=e[33];let C;e[34]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(q,{htmlFor:"redirect-type",children:"Type"}),e[34]=C):C=e[34];let f;e[35]!==i?(f=o=>i({type:o}),e[35]=i,e[36]=f):f=e[36];let w;e[37]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(X,{id:"redirect-type",className:"h-10 w-full",children:t.jsx(Z,{placeholder:"Type"})}),e[37]=w):w=e[37];let I;e[38]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(H,{children:me.map(pe)}),e[38]=I):I=e[38];let h;e[39]!==r.type||e[40]!==f?(h=t.jsxs(J,{value:r.type,onValueChange:f,children:[w,I]}),e[39]=r.type,e[40]=f,e[41]=h):h=e[41];let F;e[42]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx("strong",{children:"Temporary"}),e[42]=F):F=e[42];let L;e[43]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsxs("p",{className:"text-xs text-muted-foreground",children:["Use ",F," when the redirect may change;"," ",t.jsx("strong",{children:"Permanent"})," lets browsers cache it."]}),e[43]=L):L=e[43];let x;e[44]!==h?(x=t.jsxs("div",{className:"space-y-2",children:[C,h,L]}),e[44]=h,e[45]=x):x=e[45];let u;e[46]!==i?(u=o=>i({discardQueryParameters:o===!0}),e[46]=i,e[47]=u):u=e[47];let y;e[48]!==r.discardQueryParameters||e[49]!==u?(y=t.jsx(G,{checked:r.discardQueryParameters,onCheckedChange:u}),e[48]=r.discardQueryParameters,e[49]=u,e[50]=y):y=e[50];let Q;e[51]===Symbol.for("react.memo_cache_sentinel")?(Q=t.jsx("span",{className:"text-sm",children:"Discard query parameters"}),e[51]=Q):Q=e[51];let j;e[52]!==y?(j=t.jsxs("label",{className:"flex cursor-pointer items-center gap-2.5",children:[y,Q]}),e[52]=y,e[53]=j):j=e[53];let b;e[54]!==a||e[55]!==d||e[56]!==x||e[57]!==j?(b=t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:t.jsxs("div",{className:"mx-auto max-w-xl space-y-6",children:[a,d,x,j]})}),e[54]=a,e[55]=d,e[56]=x,e[57]=j,e[58]=b):b=e[58];let U;return e[59]!==b||e[60]!==p?(U=t.jsxs("div",{className:"flex h-full flex-col",children:[p,b]}),e[59]=b,e[60]=p,e[61]=U):U=e[61],U}function pe(_){return t.jsx(W,{value:_.value,children:_.label},_.value)}export{Xr as RedirectEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-ftVzyud_.js","assets/index-CAIYhjul.js","assets/index-C-1vh7Fd.css","assets/Tool02-CngweHED.js","assets/CheckCircle-D6vue6JR.js","assets/Settings02-5t6-pGmO.js","assets/use-mcp-client-BRDJsS2i.js","assets/auth-D4yHRD2-.js","assets/useInfiniteQuery-BSKFC7YM.js","assets/use-infinite-scroll-C_OzT98l.js","assets/studio-tools-C0-5Z8k5.js","assets/badge-D2OV8wRl.js","assets/input-Dzav8ivG.js","assets/dropdown-menu-EfeTZxQL.js","assets/ChevronUp-B2kc02W-.js","assets/ChevronRight-DGKhdwsU.js","assets/DotsVertical-Bv_Wu1PR.js","assets/table-fSAZqdik.js","assets/toggle-group-CP4FEYCM.js","assets/use-view-mode-BJOrvC1j.js","assets/use-mobile-COWtBi3l.js","assets/FilterLines-CVyIbk7P.js","assets/Globe01-D8U_-ef0.js","assets/SearchMd-CjaEgvWB.js","assets/dialog-BFqbrhnG.js","assets/X-CLk-1WTe.js","assets/AlertCircle-C-LWGksh.js","assets/Upload01-BWPUocl6.js","assets/alert-dialog-BNeEAttR.js","assets/card-BJLhqcLf.js","assets/Trash01-Bi1KaIxH.js","assets/label-DaAsoL9V.js","assets/select-peZlJuYe.js","assets/tooltip-DBcnpVTx.js","assets/ChevronDown-Chms7f47.js","assets/switch-DG2ijYXZ.js","assets/textarea-B9TUwSCj.js","assets/XCircle-2O_4kWp7.js","assets/checkbox-fY0uDGwg.js","assets/Eye--S6NkM5F.js","assets/LinkExternal01-Cq7tHe_6.js","assets/use-copy-BHgKL0On.js","assets/Copy01-BLPcoB-x.js","assets/Key01-DgOZ1Vl-.js","assets/Plus-CX4xPpn4.js","assets/mcp-oauth-Bzb4iSTT.js","assets/Play-D27HpOrJ.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as s,j as e,r as i,i as a,aX as o}from"./index-CAIYhjul.js";import{R as m}from"./require-capability-BYn5Rk3O.js";import"./use-capability-CEtXiCRz.js";import"./access-gate-avJTtHpg.js";import"./capability-load-error-C8Uwu5_s.js";const n=i.lazy(()=>o(()=>import("./registry-layout-ftVzyud_.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46])));function f(){const r=s.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(m,{capability:"registry:manage",area:"the registry",children:e.jsx(i.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(n,{})})}),r[0]=t):t=r[0],t}export{f as default};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{r as D,at as ot,c as B,j as s,H as Pe,I as ae,C as oe,n as xe,J as Re,M as Le,d as he,K as te,t as Z,B as ee,p as J,z as rt,l as ne,m as at,b as ct,E as dt,x as ut}from"./index-CAIYhjul.js";import{c as $e,e as De,d as Fe,D as mt,a as Ke,h as ft,b as ht}from"./dialog-BFqbrhnG.js";import{g as pt,b as xt,a as gt,D as vt}from"./drawer-Cl_dvusi.js";import{u as bt}from"./use-mobile-COWtBi3l.js";import{S as Se,u as jt,m as yt,a as ge}from"./chat-context-BzGsRBEi.js";import{C as St}from"./checkbox-fY0uDGwg.js";import{I as le}from"./input-Dzav8ivG.js";import{S as kt,a as Nt,b as Ct,c as wt,d as It}from"./select-peZlJuYe.js";import{S as Y}from"./skeleton-DeOjoVUO.js";import{i as Ue,b as Be,c as _t,a as Mt,s as Et}from"./Settings02-5t6-pGmO.js";import{c as Ot,a as At,i as Tt}from"./Tool01-Bk7pamHg.js";import{i as zt}from"./Key01-DgOZ1Vl-.js";import{i as We}from"./SearchMd-CjaEgvWB.js";import{b as ve,u as Pt,a as Rt}from"./use-ai-providers-B0J5EZdH.js";import{g as be}from"./ai-providers-logos-DD3qZ33J.js";import{i as Lt}from"./Monitor01-C0kqyHBJ.js";import{i as $t}from"./AlertCircle-C-LWGksh.js";import{u as pe}from"./studio-tools-C0-5Z8k5.js";import{i as Dt}from"./ChevronRight-DGKhdwsU.js";import{A as Ft}from"./avatar-CB-s6LW3.js";import{S as ke,a as Ne,b as He}from"./settings-section-B1GgY2if.js";import{s as Ve}from"./Eye--S6NkM5F.js";import{a as me,b as fe,C as Kt}from"./connect-desktop-dialog-DEpb0pcU.js";import{t as Ce}from"./ChevronDown-Chms7f47.js";import{a as Ut}from"./Image01-BOJVTyLq.js";import{t as Bt}from"./Stars01-D-dD7V12.js";function ie(i,e,t){let l=t.initialDeps??[],n,o=!0;function r(){var a,c,d;let u;t.key&&((a=t.debug)!=null&&a.call(t))&&(u=Date.now());const m=i();if(!(m.length!==l.length||m.some((g,x)=>l[x]!==g)))return n;l=m;let f;if(t.key&&((c=t.debug)!=null&&c.call(t))&&(f=Date.now()),n=e(...m),t.key&&((d=t.debug)!=null&&d.call(t))){const g=Math.round((Date.now()-u)*100)/100,x=Math.round((Date.now()-f)*100)/100,j=x/16,k=(w,I)=>{for(w=String(w);w.length<I;)w=" "+w;return w};console.info(`%c⏱ ${k(x,5)} /${k(g,5)} ms`,`
|
|
2
|
-
font-size: .6rem;
|
|
3
|
-
font-weight: bold;
|
|
4
|
-
color: hsl(${Math.max(0,Math.min(120-120*j,120))}deg 100% 31%);`,t?.key)}return t?.onChange&&!(o&&t.skipInitialOnChange)&&t.onChange(n),o=!1,n}return r.updateDeps=a=>{l=a},r}function we(i,e){if(i===void 0)throw new Error("Unexpected undefined");return i}const Wt=(i,e)=>Math.abs(i-e)<1.01,Ht=(i,e,t)=>{let l;return function(...n){i.clearTimeout(l),l=i.setTimeout(()=>e.apply(this,n),t)}},Ie=i=>{const{offsetWidth:e,offsetHeight:t}=i;return{width:e,height:t}},Vt=i=>i,qt=i=>{const e=Math.max(i.startIndex-i.overscan,0),t=Math.min(i.endIndex+i.overscan,i.count-1),l=[];for(let n=e;n<=t;n++)l.push(n);return l},Gt=(i,e)=>{const t=i.scrollElement;if(!t)return;const l=i.targetWindow;if(!l)return;const n=r=>{const{width:a,height:c}=r;e({width:Math.round(a),height:Math.round(c)})};if(n(Ie(t)),!l.ResizeObserver)return()=>{};const o=new l.ResizeObserver(r=>{const a=()=>{const c=r[0];if(c?.borderBoxSize){const d=c.borderBoxSize[0];if(d){n({width:d.inlineSize,height:d.blockSize});return}}n(Ie(t))};i.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()});return o.observe(t,{box:"border-box"}),()=>{o.unobserve(t)}},_e={passive:!0},Me=typeof window>"u"?!0:"onscrollend"in window,Xt=(i,e)=>{const t=i.scrollElement;if(!t)return;const l=i.targetWindow;if(!l)return;let n=0;const o=i.options.useScrollendEvent&&Me?()=>{}:Ht(l,()=>{e(n,!1)},i.options.isScrollingResetDelay),r=u=>()=>{const{horizontal:m,isRtl:h}=i.options;n=m?t.scrollLeft*(h&&-1||1):t.scrollTop,o(),e(n,u)},a=r(!0),c=r(!1);t.addEventListener("scroll",a,_e);const d=i.options.useScrollendEvent&&Me;return d&&t.addEventListener("scrollend",c,_e),()=>{t.removeEventListener("scroll",a),d&&t.removeEventListener("scrollend",c)}},Yt=(i,e,t)=>{if(e?.borderBoxSize){const l=e.borderBoxSize[0];if(l)return Math.round(l[t.options.horizontal?"inlineSize":"blockSize"])}return i[t.options.horizontal?"offsetWidth":"offsetHeight"]},Qt=(i,{adjustments:e=0,behavior:t},l)=>{var n,o;const r=i+e;(o=(n=l.scrollElement)==null?void 0:n.scrollTo)==null||o.call(n,{[l.options.horizontal?"left":"top"]:r,behavior:t})};class Jt{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var t,l,n;return((n=(l=(t=this.targetWindow)==null?void 0:t.performance)==null?void 0:l.now)==null?void 0:n.call(l))??Date.now()},this.observer=(()=>{let t=null;const l=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(n=>{n.forEach(o=>{const r=()=>{const a=o.target,c=this.indexFromElement(a);if(!a.isConnected){this.observer.unobserve(a);return}this.shouldMeasureDuringScroll(c)&&this.resizeItem(c,this.options.measureElement(a,o,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()})}));return{disconnect:()=>{var n;(n=l())==null||n.disconnect(),t=null},observe:n=>{var o;return(o=l())==null?void 0:o.observe(n,{box:"border-box"})},unobserve:n=>{var o;return(o=l())==null?void 0:o.unobserve(n)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([l,n])=>{typeof n>"u"&&delete t[l]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Vt,rangeExtractor:qt,onChange:()=>{},measureElement:Yt,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",...t}},this.notify=t=>{var l,n;(n=(l=this.options).onChange)==null||n.call(l,this,t)},this.maybeNotify=ie(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const l=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==l){if(this.cleanup(),!l){this.maybeNotify();return}this.scrollElement=l,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(n=>{this.observer.observe(n)}),this.unsubs.push(this.options.observeElementRect(this,n=>{this.scrollRect=n,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(n,o)=>{this.scrollAdjustments=0,this.scrollDirection=o?this.getScrollOffset()<n?"forward":"backward":null,this.scrollOffset=n,this.isScrolling=o,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,l)=>{const n=new Map,o=new Map;for(let r=l-1;r>=0;r--){const a=t[r];if(n.has(a.lane))continue;const c=o.get(a.lane);if(c==null||a.end>c.end?o.set(a.lane,a):a.end<c.end&&n.set(a.lane,!0),n.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((r,a)=>r.end===a.end?r.index-a.index:r.end-a.end)[0]:void 0},this.getMeasurementOptions=ie(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode],(t,l,n,o,r,a,c)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:l,scrollMargin:n,getItemKey:o,enabled:r,lanes:a,laneAssignmentMode:c}),{key:!1}),this.getMeasurements=ie(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:l,scrollMargin:n,getItemKey:o,enabled:r,lanes:a,laneAssignmentMode:c},d)=>{if(!r)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>t)for(const f of this.laneAssignments.keys())f>=t&&this.laneAssignments.delete(f);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(f=>{this.itemSizeCache.set(f.key,f.size)}));const u=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===t&&(this.lanesSettling=!1);const m=this.measurementsCache.slice(0,u),h=new Array(a).fill(void 0);for(let f=0;f<u;f++){const g=m[f];g&&(h[g.lane]=f)}for(let f=u;f<t;f++){const g=o(f),x=this.laneAssignments.get(f);let j,k;const w=c==="estimate"||d.has(g);if(x!==void 0&&this.options.lanes>1){j=x;const b=h[j],N=b!==void 0?m[b]:void 0;k=N?N.end+this.options.gap:l+n}else{const b=this.options.lanes===1?m[f-1]:this.getFurthestMeasurement(m,f);k=b?b.end+this.options.gap:l+n,j=b?b.lane:f%this.options.lanes,this.options.lanes>1&&w&&this.laneAssignments.set(f,j)}const I=d.get(g),_=typeof I=="number"?I:this.options.estimateSize(f),M=k+_;m[f]={index:f,start:k,size:_,end:M,key:g,lane:j},h[j]=f}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ie(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,l,n,o)=>this.range=t.length>0&&l>0?Zt({measurements:t,outerSize:l,scrollOffset:n,lanes:o}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=ie(()=>{let t=null,l=null;const n=this.calculateRange();return n&&(t=n.startIndex,l=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,l]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,l]},(t,l,n,o,r)=>o===null||r===null?[]:t({startIndex:o,endIndex:r,overscan:l,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{const l=this.options.indexAttribute,n=t.getAttribute(l);return n?parseInt(n,10):(console.warn(`Missing attribute name '${l}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=t=>{var l;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const n=this.scrollState.index??((l=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:l.index);if(n!==void 0&&this.range){const o=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,n-o),a=Math.min(this.options.count-1,n+o);return t>=r&&t<=a}return!0},this.measureElement=t=>{if(!t){this.elementsCache.forEach((r,a)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(a))});return}const l=this.indexFromElement(t),n=this.options.getItemKey(l),o=this.elementsCache.get(n);o!==t&&(o&&this.observer.unobserve(o),this.observer.observe(t),this.elementsCache.set(n,t)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(l)&&this.resizeItem(l,this.options.measureElement(t,void 0,this))},this.resizeItem=(t,l)=>{var n;const o=this.measurementsCache[t];if(!o)return;const r=this.itemSizeCache.get(o.key)??o.size,a=l-r;a!==0&&(((n=this.scrollState)==null?void 0:n.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,a,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,l)),this.notify(!1))},this.getVirtualItems=ie(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,l)=>{const n=[];for(let o=0,r=t.length;o<r;o++){const a=t[o],c=l[a];n.push(c)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const l=this.getMeasurements();if(l.length!==0)return we(l[qe(0,l.length-1,n=>we(l[n]).start,t)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const t=this.scrollElement.document.documentElement;return this.options.horizontal?t.scrollWidth-this.scrollElement.innerWidth:t.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(t,l,n=0)=>{if(!this.scrollElement)return 0;const o=this.getSize(),r=this.getScrollOffset();l==="auto"&&(l=t>=r+o?"end":"start"),l==="center"?t+=(n-o)/2:l==="end"&&(t-=o);const a=this.getMaxScrollOffset();return Math.max(Math.min(a,t),0)},this.getOffsetForIndex=(t,l="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const n=this.getSize(),o=this.getScrollOffset(),r=this.measurementsCache[t];if(!r)return;if(l==="auto")if(r.end>=o+n-this.options.scrollPaddingEnd)l="end";else if(r.start<=o+this.options.scrollPaddingStart)l="start";else return[o,l];if(l==="end"&&t===this.options.count-1)return[this.getMaxScrollOffset(),l];const a=l==="end"?r.end+this.options.scrollPaddingEnd:r.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,l,r.size),l]},this.scrollToOffset=(t,{align:l="start",behavior:n="auto"}={})=>{const o=this.getOffsetForAlignment(t,l),r=this.now();this.scrollState={index:null,align:l,behavior:n,startedAt:r,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(t,{align:l="auto",behavior:n="auto"}={})=>{t=Math.max(0,Math.min(t,this.options.count-1));const o=this.getOffsetForIndex(t,l);if(!o)return;const[r,a]=o,c=this.now();this.scrollState={index:t,align:a,behavior:n,startedAt:c,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(t,{behavior:l="auto"}={})=>{const n=this.getScrollOffset()+t,o=this.now();this.scrollState={index:null,align:"start",behavior:l,startedAt:o,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:l}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var t;const l=this.getMeasurements();let n;if(l.length===0)n=this.options.paddingStart;else if(this.options.lanes===1)n=((t=l[l.length-1])==null?void 0:t.end)??0;else{const o=Array(this.options.lanes).fill(null);let r=l.length-1;for(;r>=0&&o.some(a=>a===null);){const a=l[r];o[a.lane]===null&&(o[a.lane]=a.end),r--}n=Math.max(...o.filter(a=>a!==null))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:l,behavior:n})=>{this.options.scrollToFn(t,{behavior:n,adjustments:l},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const l=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,n=l?l[0]:this.scrollState.lastTargetOffset,o=1,r=n!==this.scrollState.lastTargetOffset;if(!r&&Wt(n,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=o){this.scrollState=null;return}}else this.scrollState.stableFrames=0,r&&(this.scrollState.lastTargetOffset=n,this.scrollState.behavior="auto",this._scrollToOffset(n,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const qe=(i,e,t,l)=>{for(;i<=e;){const n=(i+e)/2|0,o=t(n);if(o<l)i=n+1;else if(o>l)e=n-1;else return n}return i>0?i-1:0};function Zt({measurements:i,outerSize:e,scrollOffset:t,lanes:l}){const n=i.length-1,o=c=>i[c].start;if(i.length<=l)return{startIndex:0,endIndex:n};let r=qe(0,n,o,t),a=r;if(l===1)for(;a<n&&i[a].end<t+e;)a++;else if(l>1){const c=Array(l).fill(0);for(;a<n&&c.some(u=>u<t+e);){const u=i[a];c[u.lane]=u.end,a++}const d=Array(l).fill(t+e);for(;r>=0&&d.some(u=>u>=t);){const u=i[r];d[u.lane]=u.start,r--}r=Math.max(0,r-r%l),a=Math.min(n,a+(l-1-a%l))}return{startIndex:r,endIndex:a}}const Ee=typeof document<"u"?D.useLayoutEffect:D.useEffect;function es({useFlushSync:i=!0,...e}){const t=D.useReducer(()=>({}),{})[1],l={...e,onChange:(o,r)=>{var a;i&&r?ot.flushSync(t):t(),(a=e.onChange)==null||a.call(e,o,r)}},[n]=D.useState(()=>new Jt(l));return n.setOptions(l),Ee(()=>n._didMount(),[]),Ee(()=>n._willUpdate()),n}function ts(i){return es({observeElementRect:Gt,observeElementOffset:Xt,scrollToFn:Qt,...i})}const Ge=[{id:"openai",name:"OpenAI",description:"GPT-4, GPT-5, and other OpenAI models",logo:"https://decoims.com/decocms/b51001ef-ae58-4db4-8a75-9e6d2df2dd8e/openai.png",baseUrlPlaceholder:"https://api.openai.com/v1",defaultBaseUrl:"https://api.openai.com/v1",apiKeyRecommended:!0,helpText:"Use your OpenAI API key (starts with sk-)."},{id:"litellm",name:"LiteLLM",description:"Connect to a LiteLLM gateway your team manages",logo:"https://decoims.com/decocms/e974ae05-ad64-4b4a-8444-d9705f019b85/litellm.png",baseUrlPlaceholder:"http://localhost:4000",apiKeyRecommended:!0,helpText:"Point at your LiteLLM proxy. The base URL should be the root of the proxy (we'll append /v1)."},{id:"ollama",name:"Ollama",description:"Run open-source models on your own computer",logo:"https://decoims.com/decocms/2bb2f822-5288-4b7c-a541-dcbef76525a0/ollama.png",baseUrlPlaceholder:"http://localhost:11434",apiKeyRecommended:!1,helpText:"Ollama exposes /v1 by default — no API key required for local use."},{id:"lm-studio",name:"LM Studio",description:"Open models running through LM Studio",logo:"https://decoims.com/decocms/9f0ab1a9-d2d5-4f3e-9de0-aadd4926428d/lmstudio.webp",baseUrlPlaceholder:"http://localhost:1234",apiKeyRecommended:!1,helpText:"Start the local server in LM Studio, then paste its base URL here."},{id:"vllm",name:"vLLM",description:"Connect to your team's self-hosted vLLM server",logo:"https://decoims.com/decocms/b6c60e4f-a4aa-443c-981f-ad0f31640e22/vllm.png",baseUrlPlaceholder:"http://localhost:8000",apiKeyRecommended:!1}];function ce(i){if(i)return Ge.find(e=>e.id===i)}const Oe=4;function re(i){const e=B.c(8),{logo:t,name:l,description:n,onClick:o}=i;let r;e[0]!==t||e[1]!==l?(r=t?s.jsx("img",{src:t,alt:l,className:"size-8 rounded-md object-contain dark:bg-white dark:p-0.5"}):s.jsx(Ft,{fallback:l.charAt(0),className:"size-8 bg-primary/10 text-primary"}),e[0]=t,e[1]=l,e[2]=r):r=e[2];let a;return e[3]!==n||e[4]!==l||e[5]!==o||e[6]!==r?(a=s.jsx(He,{onClick:o,icon:r,title:l,description:n}),e[3]=n,e[4]=l,e[5]=o,e[6]=r,e[7]=a):a=e[7],a}function Xe(i){const e=B.c(32),{providers:t,onSelect:l,onShowAll:n}=i;let o;e[0]!==t?(o=t.find(ns),e[0]=t,e[1]=o):o=e[1];const r=o;let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a={openrouter:0,llmapi:1,anthropic:2,google:3},e[2]=a):a=e[2];const c=a;let d;if(e[3]!==l||e[4]!==t){let I;e[6]===Symbol.for("react.memo_cache_sentinel")?(I=(v,E)=>{const A=c[v.id]??Number.MAX_SAFE_INTEGER,z=c[E.id]??Number.MAX_SAFE_INTEGER;return A-z},e[6]=I):I=e[6];const _=t.filter(ls).sort(I);let M;e[7]!==t?(M=t.find(is),e[7]=t,e[8]=M):M=e[8];const b=M;let N;e[9]===Symbol.for("react.memo_cache_sentinel")?(N=ce("openai"),e[9]=N):N=e[9];const S=N;let C;e[10]!==l?(C=v=>s.jsx(re,{logo:v.logo,name:v.name,description:v.description,onClick:()=>l({kind:"provider",provider:v})},v.id),e[10]=l,e[11]=C):C=e[11];let p,y;e[12]!==l||e[13]!==b?(p=b&&S?[s.jsx(re,{logo:S.logo,name:S.name,description:S.description,onClick:()=>l({kind:"openai-compatible",provider:b,preset:S})},S.id)]:[],y=b?[...Ge.filter(ss).map(v=>s.jsx(re,{logo:v.logo,name:v.name,description:v.description,onClick:()=>l({kind:"openai-compatible",provider:b,preset:v})},v.id)),s.jsx(re,{logo:b.logo,name:"Custom OpenAI-compatible",description:"Bring your own model server (advanced)",onClick:()=>l({kind:"openai-compatible",provider:b,preset:null})},"custom")]:[],e[12]=l,e[13]=b,e[14]=p,e[15]=y):(p=e[14],y=e[15]),d=[..._.map(C),...p,...y],e[3]=l,e[4]=t,e[5]=d}else d=e[5];const u=d,m=u.length-Oe,h=!!n&&m>0;let f;e[16]!==u||e[17]!==h?(f=h?u.slice(0,Oe):u,e[16]=u,e[17]=h,e[18]=f):f=e[18];const g=f;let x;e[19]!==r||e[20]!==l?(x=r&&s.jsx(ke,{children:s.jsxs("div",{className:"relative rounded-xl border border-violet-400/30 bg-gradient-to-br from-violet-50/50 via-transparent to-lime-50/30 dark:from-violet-950/20 dark:to-lime-950/10 p-1.5",children:[s.jsx("div",{className:"absolute inset-0 rounded-xl bg-gradient-to-br from-violet-400/5 to-lime-400/5 pointer-events-none"}),s.jsx("p",{className:"text-xs font-medium text-violet-700 dark:text-violet-400 mb-1.5 px-2 pt-2 relative",children:"Recommended — 100+ models, pay as you go"}),s.jsx(Ne,{className:"relative",children:s.jsx(re,{logo:r.logo,name:r.name,description:r.description,onClick:()=>l({kind:"provider",provider:r})})})]})}),e[19]=r,e[20]=l,e[21]=x):x=e[21];let j;e[22]!==m||e[23]!==n||e[24]!==h?(j=h&&s.jsx(He,{onClick:n,title:`${m} more provider${m===1?"":"s"}`,action:s.jsx(Dt,{size:16,className:"text-muted-foreground"})}),e[22]=m,e[23]=n,e[24]=h,e[25]=j):j=e[25];let k;e[26]!==j||e[27]!==g?(k=s.jsx(ke,{children:s.jsxs(Ne,{children:[g,j]})}),e[26]=j,e[27]=g,e[28]=k):k=e[28];let w;return e[29]!==x||e[30]!==k?(w=s.jsxs("div",{className:"flex flex-col gap-6",children:[x,k]}),e[29]=x,e[30]=k,e[31]=w):w=e[31],w}function ss(i){return i.id!=="openai"}function is(i){return i.id==="openai-compatible"}function ls(i){return i.id!=="deco"&&i.id!=="openai-compatible"}function ns(i){return i.id==="deco"}const os=Pe({label:ae().optional(),apiKey:ae().min(1,"API key is required")});function rs(i){const e=B.c(60),{providerId:t,onCancel:l,onSuccess:n}=i,{org:o}=oe(),r=pe(),a=xe(),[c,d]=D.useState(!1);let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u={resolver:Re(os),defaultValues:{label:"",apiKey:""}},e[0]=u):u=e[0];const{register:m,handleSubmit:h,formState:f}=Le(u),{errors:g}=f;let x;e[1]!==t||e[2]!==r?(x=async H=>{await r.call("AI_PROVIDER_KEY_CREATE",{providerId:t,label:H.label||"Personal key",apiKey:H.apiKey})},e[1]=t,e[2]=r,e[3]=x):x=e[3];let j;e[4]!==n||e[5]!==o||e[6]!==a?(j=()=>{a.invalidateQueries({queryKey:te.aiProviderKeys(o.id)}),a.invalidateQueries({queryKey:te.aiProviders(o.id)}),Z.success("Key saved successfully"),n()},e[4]=n,e[5]=o,e[6]=a,e[7]=j):j=e[7];let k;e[8]!==x||e[9]!==j?(k={mutationFn:x,onSuccess:j,onError:as},e[8]=x,e[9]=j,e[10]=k):k=e[10];const{mutate:w,isPending:I,error:_}=he(k);let M;e[11]!==w?(M=H=>w(H),e[11]=w,e[12]=M):M=e[12];let b;e[13]!==h||e[14]!==M?(b=h(M),e[13]=h,e[14]=M,e[15]=b):b=e[15];let N;e[16]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"Label"}),e[16]=N):N=e[16];let S;e[17]!==m?(S=m("label"),e[17]=m,e[18]=S):S=e[18];let C;e[19]!==S?(C=s.jsxs("div",{className:"space-y-1",children:[N,s.jsx(le,{placeholder:"e.g. Personal key",...S,className:"h-8 text-sm"})]}),e[19]=S,e[20]=C):C=e[20];let p;e[21]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"API Key"}),e[21]=p):p=e[21];const y=c?"text":"password";let v;e[22]!==m?(v=m("apiKey"),e[22]=m,e[23]=v):v=e[23];let E;e[24]!==y||e[25]!==v?(E=s.jsx(le,{type:y,placeholder:"sk-...",...v,className:"ph-no-capture h-8 text-sm pr-8"}),e[24]=y,e[25]=v,e[26]=E):E=e[26];let A;e[27]!==c?(A=()=>d(!c),e[27]=c,e[28]=A):A=e[28];const z=c?"Hide API key":"Show API key";let O;e[29]!==c?(O=c?s.jsx(Ue,{size:14}):s.jsx(Ve,{size:14}),e[29]=c,e[30]=O):O=e[30];let R;e[31]!==A||e[32]!==z||e[33]!==O?(R=s.jsx("button",{type:"button",onClick:A,"aria-label":z,className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:O}),e[31]=A,e[32]=z,e[33]=O,e[34]=R):R=e[34];let P;e[35]!==E||e[36]!==R?(P=s.jsxs("div",{className:"relative",children:[E,R]}),e[35]=E,e[36]=R,e[37]=P):P=e[37];let L;e[38]!==g.apiKey?(L=g.apiKey&&s.jsx("p",{className:"text-xs text-destructive",children:g.apiKey.message}),e[38]=g.apiKey,e[39]=L):L=e[39];let F;e[40]!==P||e[41]!==L?(F=s.jsxs("div",{className:"space-y-1",children:[p,P,L]}),e[40]=P,e[41]=L,e[42]=F):F=e[42];let W;e[43]!==_?(W=_&&s.jsx("p",{className:"text-xs text-destructive",children:_.message}),e[43]=_,e[44]=W):W=e[44];let U;e[45]!==I||e[46]!==l?(U=s.jsx(ee,{type:"button",variant:"ghost",size:"sm",onClick:l,disabled:I,children:"Cancel"}),e[45]=I,e[46]=l,e[47]=U):U=e[47];const G=I?"Saving...":"Save Key";let K;e[48]!==I||e[49]!==G?(K=s.jsx(ee,{type:"submit",size:"sm",disabled:I,children:G}),e[48]=I,e[49]=G,e[50]=K):K=e[50];let V;e[51]!==U||e[52]!==K?(V=s.jsxs($e,{children:[U,K]}),e[51]=U,e[52]=K,e[53]=V):V=e[53];let T;return e[54]!==C||e[55]!==F||e[56]!==W||e[57]!==V||e[58]!==b?(T=s.jsxs("form",{onSubmit:b,className:"space-y-3",children:[C,F,W,V]}),e[54]=C,e[55]=F,e[56]=W,e[57]=V,e[58]=b,e[59]=T):T=e[59],T}function as(i){Z.error(`Failed to save key: ${i.message}`)}const cs=Pe({label:ae().optional(),baseUrl:ae().min(1,"Base URL is required"),apiKey:ae().optional()});function ds(i){const e=B.c(71),{preset:t,onCancel:l,onSuccess:n}=i,{org:o}=oe(),r=pe(),a=xe(),[c,d]=D.useState(!1);let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u=Re(cs),e[0]=u):u=e[0];const m=t?.defaultBaseUrl??"";let h;e[1]!==m?(h={resolver:u,defaultValues:{label:"",baseUrl:m,apiKey:""}},e[1]=m,e[2]=h):h=e[2];const{register:f,handleSubmit:g,formState:x}=Le(h),{errors:j}=x;let k;e[3]!==t||e[4]!==r?(k=async se=>{const nt=JSON.stringify({baseUrl:se.baseUrl,apiKey:se.apiKey||""});await r.call("AI_PROVIDER_KEY_CREATE",{providerId:"openai-compatible",label:se.label||t?.name||se.baseUrl,apiKey:nt,...t?{presetId:t.id}:{}})},e[3]=t,e[4]=r,e[5]=k):k=e[5];let w;e[6]!==n||e[7]!==o||e[8]!==a?(w=()=>{a.invalidateQueries({queryKey:te.aiProviderKeys(o.id)}),a.invalidateQueries({queryKey:te.aiProviders(o.id)}),Z.success("Connection saved successfully"),n()},e[6]=n,e[7]=o,e[8]=a,e[9]=w):w=e[9];let I;e[10]!==k||e[11]!==w?(I={mutationFn:k,onSuccess:w,onError:us},e[10]=k,e[11]=w,e[12]=I):I=e[12];const{mutate:_,isPending:M,error:b}=he(I),N=t?`e.g. ${t.name} prod, ${t.name} dev`:"e.g. My OpenAI-compatible server",S=t?.baseUrlPlaceholder??"http://localhost:4000/v1";let C;e[13]!==_?(C=se=>_(se),e[13]=_,e[14]=C):C=e[14];let p;e[15]!==g||e[16]!==C?(p=g(C),e[15]=g,e[16]=C,e[17]=p):p=e[17];let y;e[18]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"Label"}),e[18]=y):y=e[18];let v;e[19]!==f?(v=f("label"),e[19]=f,e[20]=v):v=e[20];let E;e[21]!==N||e[22]!==v?(E=s.jsxs("div",{className:"space-y-1",children:[y,s.jsx(le,{placeholder:N,...v,className:"h-8 text-sm"})]}),e[21]=N,e[22]=v,e[23]=E):E=e[23];let A;e[24]!==S||e[25]!==j||e[26]!==t?.defaultBaseUrl||e[27]!==f?(A=t?.defaultBaseUrl?s.jsx("input",{type:"hidden",...f("baseUrl")}):s.jsxs("div",{className:"space-y-1",children:[s.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"Base URL"}),s.jsx(le,{type:"url",placeholder:S,...f("baseUrl"),className:"h-8 text-sm"}),j.baseUrl&&s.jsx("p",{className:"text-xs text-destructive",children:j.baseUrl.message})]}),e[24]=S,e[25]=j,e[26]=t?.defaultBaseUrl,e[27]=f,e[28]=A):A=e[28];const z=t?.apiKeyRecommended?"recommended":"optional";let O;e[29]!==z?(O=s.jsxs("label",{className:"text-xs font-medium text-muted-foreground",children:["API Key"," ",s.jsxs("span",{className:"text-muted-foreground/60",children:["(",z,")"]})]}),e[29]=z,e[30]=O):O=e[30];const R=c?"text":"password";let P;e[31]!==f?(P=f("apiKey"),e[31]=f,e[32]=P):P=e[32];let L;e[33]!==R||e[34]!==P?(L=s.jsx(le,{type:R,placeholder:"sk-...",...P,className:"ph-no-capture h-8 text-sm pr-8"}),e[33]=R,e[34]=P,e[35]=L):L=e[35];let F;e[36]!==c?(F=()=>d(!c),e[36]=c,e[37]=F):F=e[37];const W=c?"Hide API key":"Show API key";let U;e[38]!==c?(U=c?s.jsx(Ue,{size:14}):s.jsx(Ve,{size:14}),e[38]=c,e[39]=U):U=e[39];let G;e[40]!==F||e[41]!==W||e[42]!==U?(G=s.jsx("button",{type:"button",onClick:F,"aria-label":W,className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:U}),e[40]=F,e[41]=W,e[42]=U,e[43]=G):G=e[43];let K;e[44]!==L||e[45]!==G?(K=s.jsxs("div",{className:"relative",children:[L,G]}),e[44]=L,e[45]=G,e[46]=K):K=e[46];let V;e[47]!==O||e[48]!==K?(V=s.jsxs("div",{className:"space-y-1",children:[O,K]}),e[47]=O,e[48]=K,e[49]=V):V=e[49];let T;e[50]!==t?(T=t?.helpText&&s.jsx("p",{className:"text-xs text-muted-foreground",children:t.helpText}),e[50]=t,e[51]=T):T=e[51];let H;e[52]!==b?(H=b&&s.jsx("p",{className:"text-xs text-destructive",children:b.message}),e[52]=b,e[53]=H):H=e[53];let q;e[54]!==M||e[55]!==l?(q=s.jsx(ee,{type:"button",variant:"ghost",size:"sm",onClick:l,disabled:M,children:"Cancel"}),e[54]=M,e[55]=l,e[56]=q):q=e[56];const Q=M?"Saving...":"Save Connection";let X;e[57]!==M||e[58]!==Q?(X=s.jsx(ee,{type:"submit",size:"sm",disabled:M,children:Q}),e[57]=M,e[58]=Q,e[59]=X):X=e[59];let $;e[60]!==q||e[61]!==X?($=s.jsxs($e,{children:[q,X]}),e[60]=q,e[61]=X,e[62]=$):$=e[62];let de;return e[63]!==E||e[64]!==A||e[65]!==V||e[66]!==T||e[67]!==H||e[68]!==$||e[69]!==p?(de=s.jsxs("form",{onSubmit:p,className:"space-y-3",children:[E,A,V,T,H,$]}),e[63]=E,e[64]=A,e[65]=V,e[66]=T,e[67]=H,e[68]=$,e[69]=p,e[70]=de):de=e[70],de}function us(i){Z.error(`Failed to save connection: ${i.message}`)}const ms={kind:"closed"};function fs(i,e){switch(e.type){case"open":return i.kind==="closed"?{kind:"grid"}:i;case"close":return{kind:"closed"};case"back":switch(i.kind){case"form":case"oauth-pending":case"provision-pending":case"provision-error":return{kind:"grid"};default:return i}case"select-form":return i.kind!=="grid"?i:{kind:"form",providerId:e.providerId,presetId:e.presetId};case"select-oauth":return i.kind!=="grid"?i:{kind:"oauth-pending",providerId:e.providerId,stateToken:e.stateToken};case"oauth-failed":return i.kind==="oauth-pending"?{kind:"grid"}:i;case"select-provision":return i.kind!=="grid"?i:{kind:"provision-pending",providerId:e.providerId};case"provision-error":return i.kind!=="provision-pending"?i:{kind:"provision-error",providerId:i.providerId,error:e.error};case"retry-provision":return i.kind!=="provision-error"?i:{kind:"provision-pending",providerId:i.providerId}}}function hs(i){switch(i.kind){case"form":case"oauth-pending":case"provision-pending":case"provision-error":return i.providerId;default:return null}}function ps({open:i,onOpenChange:e,initialProvider:t}){const n=ve()?.providers??[],{org:o}=oe(),r=pe(),a=xe(),[c,d]=D.useReducer(fs,ms),u=D.useRef(!1);D.useEffect(()=>{i&&c.kind==="closed"?d({type:"open"}):!i&&c.kind!=="closed"&&d({type:"close"})},[i,c.kind]);const m=()=>{u.current=!1,d({type:"close"}),e(!1)},h=()=>{a.invalidateQueries({queryKey:te.aiProviderKeys(o.id)}),a.invalidateQueries({queryKey:te.aiProviders(o.id)})},{mutate:f}=he({mutationFn:async({providerId:p,code:y,stateToken:v,label:E})=>(await r.call("AI_PROVIDER_OAUTH_EXCHANGE",{providerId:p,code:y,stateToken:v,label:E}),p),onSuccess:p=>{J("ai_provider_oauth_succeeded",{provider_id:p}),h();const y=n.find(v=>v.id===p);Z.success(`${y?.name??"Provider"} connected successfully`),m()},onError:(p,y)=>{J("ai_provider_oauth_failed",{provider_id:y.providerId,error:p.message}),Z.error(`OAuth connection failed: ${p.message}`),d({type:"oauth-failed"})}}),{mutate:g}=he({mutationFn:async p=>(await r.call("AI_PROVIDER_PROVISION_KEY",{providerId:p}),p),onSuccess:p=>{J("ai_provider_provision_succeeded",{provider_id:p}),h();const y=n.find(v=>v.id===p);Z.success(`${y?.name??"Provider"} connected successfully`),m()},onError:(p,y)=>{J("ai_provider_provision_failed",{provider_id:y,error:p.message}),d({type:"provision-error",error:p.message})}}),x=async p=>{const{provider:y}=p,v=p.kind==="openai-compatible"?p.preset?.id??null:null,E=y.supportedMethods.includes("oauth-pkce"),A=y.supportedMethods.includes("api-key");if(y.supportsProvision===!0){J("ai_provider_connect_clicked",{provider_id:y.id,method:"provision"}),d({type:"select-provision",providerId:y.id}),g(y.id);return}if(E){J("ai_provider_connect_clicked",{provider_id:y.id,method:"oauth-pkce"});try{const O=await r.call("AI_PROVIDER_OAUTH_URL",{providerId:y.id,callbackUrl:`${window.location.origin}/oauth/callback/ai-provider`});if(!O?.url)throw new Error("Invalid response from AI_PROVIDER_OAUTH_URL");d({type:"select-oauth",providerId:y.id,stateToken:O.stateToken}),window.open(O.url,"AiProviderOAuth","width=600,height=700")}catch(O){Z.error(`Failed to start OAuth: ${O instanceof Error?O.message:String(O)}`)}return}A&&(J("ai_provider_connect_clicked",{provider_id:y.id,...v!==null?{preset_id:v}:{},method:"api-key"}),d({type:"select-form",providerId:y.id,presetId:v}))},j=D.useRef(x);j.current=x;const k=D.useRef(t);k.current=t,D.useEffect(()=>{!k.current||c.kind!=="grid"||u.current||(u.current=!0,j.current(k.current))},[c.kind]);const w=c.kind==="oauth-pending"?c.stateToken:null,I=c.kind==="oauth-pending"?c.providerId:null;D.useEffect(()=>{if(c.kind!=="oauth-pending")return;let p=!1;const y=c.stateToken,v=c.providerId,E=z=>{if(z.origin!==window.location.origin||z.data?.type!=="AI_PROVIDER_OAUTH_CALLBACK")return;const{code:O,stateToken:R}=z.data;if(R!==y){Z.error("Security check failed: State token mismatch"),d({type:"oauth-failed"});return}p=!0;const P=n.find(L=>L.id===v);f({providerId:v,code:O,stateToken:y,label:P?.name??v})};window.addEventListener("message",E);const A=setTimeout(()=>{p||(J("ai_provider_oauth_timeout",{provider_id:v}),d({type:"oauth-failed"}),Z.error("Connection timed out"))},12e4);return()=>{window.removeEventListener("message",E),clearTimeout(A)}},[c.kind,w,I,f]);const _=hs(c),M=_?n.find(p=>p.id===_):null,N=(c.kind==="form"&&c.presetId?ce(c.presetId):null)?.name??M?.name??"Connect an AI provider",S=c.kind!=="grid"&&c.kind!=="closed",C=()=>{t?m():d({type:"back"})};return s.jsx(De,{open:c.kind!=="closed",onOpenChange:p=>!p&&m(),children:s.jsxs(Fe,{className:"sm:max-w-md max-h-[90vh] overflow-y-auto",children:[s.jsxs(mt,{children:[s.jsxs("div",{className:"flex items-center gap-2",children:[S&&s.jsx(ee,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:C,children:s.jsx(Be,{size:16})}),s.jsx(Ke,{children:N})]}),c.kind==="grid"&&!t&&s.jsx(ft,{children:"Pick a provider — we'll handle the rest."})]}),c.kind==="grid"&&!t&&s.jsx(Xe,{providers:n,onSelect:x}),c.kind==="form"&&(c.providerId==="openai-compatible"?s.jsx(ds,{preset:c.presetId?ce(c.presetId):void 0,onCancel:()=>d({type:"back"}),onSuccess:()=>{h(),m()}}):s.jsx(rs,{providerId:c.providerId,onCancel:()=>d({type:"back"}),onSuccess:()=>{h(),m()}})),c.kind==="oauth-pending"&&s.jsxs("div",{className:"flex flex-col items-center gap-4 py-8",children:[s.jsx(Se,{size:"lg"}),s.jsx("p",{className:"text-sm text-muted-foreground text-center",children:"Authorize the connection in the popup window. This dialog will close once authorization completes."})]}),c.kind==="provision-pending"&&s.jsxs("div",{className:"flex flex-col items-center gap-4 py-8",children:[s.jsx(Se,{size:"lg"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Connecting…"})]}),c.kind==="provision-error"&&s.jsxs("div",{className:"flex flex-col items-center gap-4 py-6",children:[s.jsx($t,{size:28,className:"text-destructive"}),s.jsx("p",{className:"text-sm text-foreground text-center",children:c.error}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx(ee,{variant:"outline",size:"sm",onClick:()=>d({type:"back"}),children:"Back"}),s.jsx(ee,{size:"sm",onClick:()=>{d({type:"retry-provision"}),g(c.providerId)},children:"Retry"})]})]})]})})}function xs(){const i=B.c(7),{org:e}=oe(),t=pe();let l;i[0]!==e.id?(l=te.defaultBrand(e.id),i[0]=e.id,i[1]=l):l=i[1];let n;i[2]!==t?(n=async()=>{const{items:a}=await t.call("BRAND_CONTEXT_LIST",{});return(Array.isArray(a)?a:[]).find(gs)??null},i[2]=t,i[3]=n):n=i[3];let o;i[4]!==l||i[5]!==n?(o={queryKey:l,queryFn:n},i[4]=l,i[5]=n,i[6]=o):o=i[6];const{data:r}=at(o);return r??null}function gs(i){return i.isDefault&&!i.archivedAt}function vs(i){const e=i.colors;if(!e)return null;if(Array.isArray(e)){const t=e.find(n=>typeof n=="object"&&n!==null&&"label"in n&&/primary|brand|main/i.test(n.label)),l=t?t.value:e[0]?.value;return typeof l=="string"?l:null}if(typeof e=="object"){const t=e;return t.primary??Object.values(t)[0]??null}return null}function bs(i){const e=B.c(50);let t;e[0]!==i?(t=i===void 0?{}:i,e[0]=i,e[1]=t):t=e[1];const{title:l,description:n,onLocalRuntimePicked:o}=t,{org:r}=oe(),{localMode:a}=rt(),c=xs(),d=jt(),u=yt(),[m,h]=D.useState(null),[f,g]=D.useState(!1),[x,j]=D.useState(!1),k=ve();let w;e[2]!==k?.providers?(w=k?.providers??[],e[2]=k?.providers,e[3]=w):w=e[3];const I=w;let _;if(e[4]!==d.capabilities||e[5]!==d.online){if(_=[],d.online){if(d.capabilities.includes("claude-code")){let $;e[7]===Symbol.for("react.memo_cache_sentinel")?($={option:"claude-code-desktop",label:"Claude Code",icon:s.jsx(me,{size:16})},e[7]=$):$=e[7],_.push($)}if(d.capabilities.includes("codex")){let $;e[8]===Symbol.for("react.memo_cache_sentinel")?($={option:"codex-desktop",label:"Codex",icon:s.jsx(fe,{size:16})},e[8]=$):$=e[8],_.push($)}}e[4]=d.capabilities,e[5]=d.online,e[6]=_}else _=e[6];const M=_.length>0&&u!==null,b=r.name;let N;e[9]!==c?(N=c?vs(c):null,e[9]=c,e[10]=N):N=e[10];const S=N,C=c?.favicon??c?.logo??null,p=l??(b?`${b} is ready for agents`:"Your agents are almost ready"),y=n??(M?"Your desktop is linked — start now with a local coding agent, or connect a cloud provider for hosted models.":a?"Connect a provider, or run `bunx decocms@latest link` on your desktop for Claude Code, Codex, and local files.":"Connect a provider — or run `bunx decocms@latest link` on your desktop to use Claude Code, Codex, or your local files."),v=!!(C||S);let E;e[11]!==S?(E=S?{backgroundColor:`${S}18`,borderColor:`${S}30`}:void 0,e[11]=S,e[12]=E):E=e[12];const A=E,z=v?"flex items-center justify-center size-14 rounded-2xl border":"flex items-center justify-center size-14 rounded-2xl bg-muted border border-border";let O;e[13]!==z||e[14]!==A||e[15]!==C||e[16]!==d.online||e[17]!==S?(O=C?s.jsx("div",{className:z,style:A,children:s.jsx("img",{src:C,alt:"",className:"size-7 rounded object-contain"})}):s.jsx("button",{type:"button",onClick:()=>j(!0),"aria-label":d.online?"Desktop linked":"Connect your desktop",className:ne(z,"cursor-pointer transition-colors hover:bg-accent"),style:A,children:s.jsxs("span",{className:"relative inline-flex items-center justify-center",children:[s.jsx(Lt,{size:24,style:S?{color:S}:void 0,className:ne(!S&&"text-muted-foreground")}),d.online&&s.jsx("span",{className:"absolute -top-0.5 -right-0.5 size-2.5 rounded-full bg-success ring-2 ring-background animate-pulse"})]})}),e[13]=z,e[14]=A,e[15]=C,e[16]=d.online,e[17]=S,e[18]=O):O=e[18];let R;e[19]!==p?(R=s.jsx("p",{className:"text-xl font-semibold text-foreground tracking-tight",children:p}),e[19]=p,e[20]=R):R=e[20];let P;e[21]!==y?(P=s.jsx("p",{className:"text-sm text-muted-foreground max-w-md",children:y}),e[21]=y,e[22]=P):P=e[22];let L;e[23]!==R||e[24]!==P?(L=s.jsxs("div",{className:"space-y-2",children:[R,P]}),e[23]=R,e[24]=P,e[25]=L):L=e[25];let F;e[26]!==O||e[27]!==L?(F=s.jsxs("div",{className:"flex flex-col items-center gap-4 text-center",children:[O,L]}),e[26]=O,e[27]=L,e[28]=F):F=e[28];let W;e[29]!==u||e[30]!==M||e[31]!==_||e[32]!==o?(W=M&&s.jsxs("div",{className:"flex flex-col items-center gap-3 w-full",children:[s.jsx("div",{className:"flex flex-wrap items-center justify-center gap-2",children:_.map($=>s.jsxs(ee,{variant:"default",className:"gap-2",onClick:()=>{u?.setPendingAgentOption($.option),o?.($.option)},children:[$.icon,"Use ",$.label]},$.option))}),s.jsxs("div",{className:"flex items-center gap-3 w-full max-w-xs text-xs text-muted-foreground",children:[s.jsx("span",{className:"h-px flex-1 bg-border"}),"or connect a cloud provider",s.jsx("span",{className:"h-px flex-1 bg-border"})]})]}),e[29]=u,e[30]=M,e[31]=_,e[32]=o,e[33]=W):W=e[33];let U,G;e[34]===Symbol.for("react.memo_cache_sentinel")?(U=$=>h($),G=()=>g(!0),e[34]=U,e[35]=G):(U=e[34],G=e[35]);let K;e[36]!==I?(K=s.jsx("div",{className:"w-full",children:s.jsx(Xe,{providers:I,onSelect:U,onShowAll:G})}),e[36]=I,e[37]=K):K=e[37];const V=m!==null||f;let T;e[38]===Symbol.for("react.memo_cache_sentinel")?(T=$=>{$||(h(null),g(!1))},e[38]=T):T=e[38];const H=m??void 0;let q;e[39]!==V||e[40]!==H?(q=s.jsx(ps,{open:V,onOpenChange:T,initialProvider:H}),e[39]=V,e[40]=H,e[41]=q):q=e[41];let Q;e[42]!==x?(Q=s.jsx(Kt,{open:x,onOpenChange:j}),e[42]=x,e[43]=Q):Q=e[43];let X;return e[44]!==W||e[45]!==K||e[46]!==q||e[47]!==Q||e[48]!==F?(X=s.jsxs("div",{className:"flex flex-col items-center gap-8 w-full max-w-3xl px-4",children:[F,W,K,q,Q]}),e[44]=W,e[45]=K,e[46]=q,e[47]=Q,e[48]=F,e[49]=X):X=e[49],X}function je(i){const e=i.title.includes(": ");return{provider:e?i.title.split(": ")[0]??"":i.modelId.split("/")[0]??"",displayName:e?i.title.split(": ").slice(1).join(": "):i.title}}function js(i){return i<32e3?{level:1,label:"Small",description:"Short conversations"}:i<2e5?{level:2,label:"Medium",description:"Good for most tasks"}:i<5e5?{level:3,label:"Large",description:"Long projects & research"}:{level:4,label:"Very large",description:"Massive files & data"}}const ys=["bg-destructive","bg-warning","bg-success","bg-success"],Ss=["text-success","text-warning","text-warning","text-destructive"];function ks(i){const e=Math.round(i*.75/1e3);return e>=1?`~${e}K words`:`~${Math.round(i*.75)} words`}function Ns(i){return i<1?{level:1,label:"Cheap"}:i<5?{level:2,label:"Moderate"}:i<15?{level:3,label:"High"}:{level:4,label:"Expensive"}}const Cs={text:{icon:s.jsx(At,{className:"size-3.5"}),label:"Text"},vision:{icon:s.jsx(Ut,{className:"size-3.5"}),label:"Vision"},image:{icon:s.jsx(_t,{className:"size-3.5"}),label:"Image"},tools:{icon:s.jsx(Ot,{className:"size-3.5"}),label:"Tools"},reasoning:{icon:s.jsx(Bt,{className:"size-3.5"}),label:"Reasoning"},"web-search":{icon:s.jsx(We,{className:"size-3.5"}),label:"Web search"}};function ws(i){const e=B.c(5),{capability:t}=i;let l;e[0]!==t?(l=Cs[t]??{icon:null,label:t.charAt(0).toUpperCase()+t.slice(1)},e[0]=t,e[1]=l):l=e[1];const n=l;let o;return e[2]!==n.icon||e[3]!==n.label?(o=s.jsxs("span",{className:"inline-flex items-center gap-1 text-xs text-muted-foreground border border-border rounded px-2 py-0.5",children:[n.icon,n.label]}),e[2]=n.icon,e[3]=n.label,e[4]=o):o=e[4],o}function Is(i){const e=B.c(49),{model:t,compact:l}=i,n=l===void 0?!1:l;if(!t){let b;return e[0]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx("div",{className:"flex items-center justify-center h-full text-muted-foreground text-sm",children:"Hover to preview"}),e[0]=b):b=e[0],b}const o=t.costs?.input!=null?t.costs.input*1e6:null,r=t.costs?.output!=null?t.costs.output*1e6:null;let a;e[1]!==t?(a=je(t),e[1]=t,e[2]=a):a=e[2];const{provider:c,displayName:d}=a;if(n){let b;e[3]!==t.limits?(b=t.limits?.contextWindow&&s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-muted-foreground",children:"Context"}),s.jsxs("span",{className:"text-foreground font-medium",children:[t.limits.contextWindow.toLocaleString()," tokens"]})]}),e[3]=t.limits,e[4]=b):b=e[4];let N;e[5]!==o?(N=o!=null&&s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-muted-foreground",children:"Input"}),s.jsxs("span",{className:"text-foreground font-medium",children:["$",o.toFixed(2)," / 1M"]})]}),e[5]=o,e[6]=N):N=e[6];let S;e[7]!==r?(S=r!=null&&s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-muted-foreground",children:"Output"}),s.jsxs("span",{className:"text-foreground font-medium",children:["$",r.toFixed(2)," / 1M"]})]}),e[7]=r,e[8]=S):S=e[8];let C;e[9]!==t.limits?(C=t.limits?.maxOutputTokens&&s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-muted-foreground",children:"Output limit"}),s.jsxs("span",{className:"text-foreground font-medium",children:[t.limits.maxOutputTokens.toLocaleString()," tokens"]})]}),e[9]=t.limits,e[10]=C):C=e[10];let p;return e[11]!==b||e[12]!==N||e[13]!==S||e[14]!==C?(p=s.jsxs("div",{className:"flex flex-col gap-2 pt-3 pb-3 px-3 text-xs",children:[b,N,S,C]}),e[11]=b,e[12]=N,e[13]=S,e[14]=C,e[15]=p):p=e[15],p}let u;e[16]!==c?(u=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:c}),e[16]=c,e[17]=u):u=e[17];let m;e[18]!==t.logo||e[19]!==t.title?(m=t.logo&&s.jsx("img",{src:t.logo,className:"size-6 shrink-0 rounded-md dark:bg-white dark:rounded-sm dark:p-px",alt:t.title}),e[18]=t.logo,e[19]=t.title,e[20]=m):m=e[20];let h;e[21]!==d?(h=s.jsx("p",{className:"text-lg font-semibold leading-snug tracking-tight",children:d}),e[21]=d,e[22]=h):h=e[22];let f;e[23]!==m||e[24]!==h?(f=s.jsxs("div",{className:"flex items-center gap-2.5",children:[m,h]}),e[23]=m,e[24]=h,e[25]=f):f=e[25];let g;e[26]!==t.modelId?(g=s.jsx("p",{className:"text-xs text-muted-foreground/50 font-mono",children:t.modelId}),e[26]=t.modelId,e[27]=g):g=e[27];let x;e[28]!==u||e[29]!==f||e[30]!==g?(x=s.jsxs("div",{className:"flex flex-col gap-1 pt-1 pr-6",children:[u,f,g]}),e[28]=u,e[29]=f,e[30]=g,e[31]=x):x=e[31];let j;e[32]!==t.capabilities?(j=t.capabilities&&t.capabilities.length>0&&s.jsx("div",{className:"flex flex-wrap items-center gap-1.5 pb-4 border-b border-border",children:[...new Set(t.capabilities)].map(_s)}),e[32]=t.capabilities,e[33]=j):j=e[33];let k;e[34]!==t.limits?(k=t.limits?.contextWindow&&(()=>{const{level:b,label:N,description:S}=js(t.limits.contextWindow);return s.jsxs("div",{className:"flex flex-col gap-1.5",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Context window"}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"flex items-center gap-0.5",children:[1,2,3,4].map(C=>s.jsx("div",{className:ne("w-2 h-2 rounded-full",C<=b?ys[b-1]:"bg-muted")},C))}),s.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:N}),s.jsxs("span",{className:"text-xs text-muted-foreground",children:["— ",S]})]}),s.jsxs("span",{className:"text-sm text-muted-foreground",children:[t.limits.contextWindow.toLocaleString()," tokens"]})]})})(),e[34]=t.limits,e[35]=k):k=e[35];let w;e[36]!==t.limits?(w=t.limits?.maxOutputTokens&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Output limit"}),s.jsxs("div",{className:"flex items-baseline gap-2",children:[s.jsxs("span",{className:"text-sm text-foreground",children:[t.limits.maxOutputTokens.toLocaleString()," tokens"]}),s.jsx("span",{className:"text-sm text-muted-foreground",children:ks(t.limits.maxOutputTokens)})]})]}),e[36]=t.limits,e[37]=w):w=e[37];let I;e[38]!==o||e[39]!==r?(I=(o!=null||r!=null)&&(()=>{const{level:b,label:N}=o!=null?Ns(o):{level:0,label:""};return s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Pricing"}),o!=null&&s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"flex items-center",children:[1,2,3,4].map(S=>s.jsx("span",{className:ne("text-sm font-bold leading-none",S<=b?Ss[b-1]:"text-muted-foreground/20"),children:"$"},S))}),s.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:N})]}),s.jsxs("div",{className:"flex flex-col gap-1",children:[o!=null&&s.jsxs("div",{className:"flex justify-between items-center",children:[s.jsx("span",{className:"text-xs text-muted-foreground",children:"Input"}),s.jsxs("span",{className:"text-xs text-foreground",children:["$",o.toFixed(2)," / 1M tokens"]})]}),r!=null&&s.jsxs("div",{className:"flex justify-between items-center",children:[s.jsx("span",{className:"text-xs text-muted-foreground",children:"Output"}),s.jsxs("span",{className:"text-xs text-foreground",children:["$",r.toFixed(2)," / 1M tokens"]})]})]})]})})(),e[38]=o,e[39]=r,e[40]=I):I=e[40];let _;e[41]!==k||e[42]!==w||e[43]!==I?(_=s.jsxs("div",{className:"flex flex-col gap-6",children:[k,w,I]}),e[41]=k,e[42]=w,e[43]=I,e[44]=_):_=e[44];let M;return e[45]!==_||e[46]!==x||e[47]!==j?(M=s.jsxs("div",{className:"flex flex-col gap-5 py-1 px-1.5",children:[x,j,_]}),e[45]=_,e[46]=x,e[47]=j,e[48]=M):M=e[48],M}function _s(i){return s.jsx(ws,{capability:i},i)}function Ye(i){const e=B.c(19),{model:t,placeholder:l,isLoading:n}=i,o=l===void 0?"Select model":l;if(n===void 0?!1:n){let x;return e[0]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(Y,{className:"w-5 h-5 rounded-sm shrink-0"}),s.jsx(Y,{className:"w-16 h-3 hidden md:block"})]}),e[0]=x):x=e[0],x}if(!t){let x;e[1]!==o?(x=s.jsx("span",{className:"text-sm text-muted-foreground",children:o}),e[1]=o,e[2]=x):x=e[2];let j;e[3]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(Ce,{size:14,className:"text-muted-foreground opacity-50 shrink-0"}),e[3]=j):j=e[3];let k;return e[4]!==x?(k=s.jsxs("div",{className:"flex items-center gap-1.5",children:[x,j]}),e[4]=x,e[5]=k):k=e[5],k}let a;e[6]!==t?(a=je(t),e[6]=t,e[7]=a):a=e[7];const{displayName:c}=a;let d;e[8]!==t?(d=be(t),e[8]=t,e[9]=d):d=e[9];const u=d;let m;e[10]!==t.title||e[11]!==u?(m=s.jsx("img",{src:u,className:"w-3.5 h-3.5 shrink-0 rounded-sm dark:bg-white dark:rounded-sm dark:p-px",alt:t.title}),e[10]=t.title,e[11]=u,e[12]=m):m=e[12];let h;e[13]!==c?(h=s.jsx("span",{className:"text-sm truncate whitespace-nowrap text-muted-foreground max-w-[100px] sm:max-w-none",children:c}),e[13]=c,e[14]=h):h=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(Ce,{size:14,className:"text-muted-foreground opacity-50 shrink-0"}),e[15]=f):f=e[15];let g;return e[16]!==m||e[17]!==h?(g=s.jsxs("div",{className:"flex items-center gap-1.5 min-w-0 overflow-hidden",children:[m,h,f]}),e[16]=m,e[17]=h,e[18]=g):g=e[18],g}const Ms=["vision","image","file","audio","video"],Qe=["image/png","image/jpeg","image/gif","image/webp"],Je=["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"];function ye(i){const e=i?.capabilities;return e?Ms.some(t=>e.includes(t)):!1}function Di(i,e){if(!i)return!1;if(i.startsWith("text/"))return!0;const t=e?.capabilities??[],l=t.includes("vision")||t.includes("image"),n=t.includes("file"),o=t.includes("audio"),r=t.includes("video");return!!(l&&Qe.includes(i)||n&&i==="application/pdf"||o&&i.startsWith("audio/")||r&&i.startsWith("video/")||ye(e)&&Je.includes(i))}function Fi(i){const e=i?.capabilities??[],t=["text/*"];return(e.includes("vision")||e.includes("image"))&&t.push(...Qe),e.includes("file")&&t.push("application/pdf"),e.includes("audio")&&t.push("audio/*"),e.includes("video")&&t.push("video/*"),ye(i)&&t.push(...Je),t.join(",")}function Ki(i){const e=i?.capabilities??[],t=[];return(e.includes("vision")||e.includes("image"))&&t.push("images"),e.includes("file")&&t.push("PDFs"),e.includes("audio")&&t.push("audio"),e.includes("video")&&t.push("video"),ye(i)&&t.push("Office files"),t.length===0?"text only":t.length===1?t[0]:t.length===2?`${t[0]} and ${t[1]}`:`${t.slice(0,-1).join(", ")}, and ${t.at(-1)}`}const Ze=["smarter","faster","cheaper"],et={smarter:"Smarter",faster:"Faster",cheaper:"Cheaper"},Es=[{tier:"smarter",prefixes:["anthropic/claude-opus-4.8","anthropic/claude-sonnet-4.6","anthropic/claude-4.6-sonnet","openai/gpt-5.3-codex","google/gemini-3-pro","google/gemini-2.5-pro","cohere/command-r-plus","cohere/command-a"]},{tier:"faster",prefixes:["anthropic/claude-haiku-4.5","anthropic/claude-4.5-haiku","google/gemini-3-flash","openai/gpt-5.1-codex-mini","x-ai/grok-code-fast","x-ai/grok-3","mistralai/mistral-large","mistralai/codestral","mistralai/mistral-medium","minimax/minimax-m1"]},{tier:"cheaper",prefixes:["google/gemini-2.5-flash-lite","google/gemini-2.5-flash","google/gemini-2.0-flash","deepseek/deepseek-v3","openai/gpt-oss-120b","mistralai/mistral-small","mistralai/pixtral","cohere/command-r"]}],Os=Es.flatMap(({tier:i,prefixes:e})=>e.map(t=>({tier:i,prefix:t}))).sort((i,e)=>e.prefix.length-i.prefix.length),As="google/gemini-2.5-pro",Ae=new Map;function Ts(i){const e=Ae.get(i);if(e!==void 0)return e;let t=null;if(i.endsWith(":free"))t="cheaper";else for(const{tier:l,prefix:n}of Os)if(i.startsWith(n)){if(n===As&&i.length>n.length&&i[n.length]==="-"){const r=i[n.length+1];if(!r||!/\d/.test(r))continue}t=l;break}return Ae.set(i,t),t}function Te(i){const e={smarter:[],faster:[],cheaper:[],other:[]};for(const t of i){const l=Ts(t.modelId);e[l??"other"].push(t)}for(const t of Object.keys(e))e[t].sort((l,n)=>l.title.localeCompare(n.title));return e}const tt="mesh:model-shortlist:",zs=new Set(["anthropic/claude-opus-4.8","anthropic/claude-sonnet-4.6","anthropic/claude-4.6-sonnet","anthropic/claude-sonnet-4.6:extended","openai/gpt-5.3-codex","google/gemini-3-pro-preview","google/gemini-2.5-pro","anthropic/claude-haiku-4.5","anthropic/claude-haiku-4.5-20251001","anthropic/claude-4.5-haiku","google/gemini-3-flash-preview","openai/gpt-5.1-codex-mini","x-ai/grok-code-fast-1","google/gemini-2.5-flash","deepseek/deepseek-v3.2","google/gemini-2.5-flash-lite","openai/gpt-oss-120b:free"]);function Ps(i){try{const e=localStorage.getItem(tt+i);return e?new Set(JSON.parse(e)):null}catch{return null}}function Rs(i,e){localStorage.setItem(tt+i,JSON.stringify([...e]))}function Ls(i){const e=B.c(21),{model:t,onHover:l}=i;let n;e[0]!==t?(n=je(t),e[0]=t,e[1]=n):n=e[1];const{displayName:o,provider:r}=n;let a;e[2]!==t?(a=be(t),e[2]=t,e[3]=a):a=e[3];const c=a;let d;e[4]!==t||e[5]!==l?(d=()=>l(t),e[4]=t,e[5]=l,e[6]=d):d=e[6];let u;e[7]!==t.title||e[8]!==c?(u=s.jsx("img",{src:c,className:"w-4 h-4 shrink-0 rounded-sm dark:bg-white dark:rounded-sm dark:p-px",alt:t.title}),e[7]=t.title,e[8]=c,e[9]=u):u=e[9];let m;e[10]!==o?(m=s.jsx("span",{className:"text-sm text-foreground leading-tight truncate",children:o}),e[10]=o,e[11]=m):m=e[11];let h;e[12]!==r?(h=s.jsx("span",{className:"text-xs text-muted-foreground/60 leading-tight",children:r}),e[12]=r,e[13]=h):h=e[13];let f;e[14]!==m||e[15]!==h?(f=s.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[m,h]}),e[14]=m,e[15]=h,e[16]=f):f=e[16];let g;return e[17]!==d||e[18]!==u||e[19]!==f?(g=s.jsxs("div",{className:"flex items-center gap-2.5 py-2 px-3 hover:bg-accent cursor-pointer rounded-lg",onMouseEnter:d,children:[u,f]}),e[17]=d,e[18]=u,e[19]=f,e[20]=g):g=e[20],g}function $s(i){const e=B.c(10),{error:t,onRetry:l}=i;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"bg-destructive/10 p-2 rounded-full",children:s.jsx(ut,{className:"size-5 text-destructive"})}),e[0]=n):n=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("p",{className:"text-sm font-medium text-foreground",children:"Failed to load models"}),e[1]=o):o=e[1];const r=t?.message||"Could not fetch models from this provider.";let a;e[2]!==r?(a=s.jsxs("div",{className:"flex flex-col gap-1",children:[o,s.jsxs("p",{className:"text-xs text-muted-foreground max-w-[260px]",children:[r," Try another provider or retry."]})]}),e[2]=r,e[3]=a):a=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Et,{className:"size-3.5"}),e[4]=c):c=e[4];let d;e[5]!==l?(d=s.jsx("div",{className:"flex items-center gap-2",children:s.jsxs(ee,{variant:"outline",size:"sm",onClick:l,className:"gap-1.5",children:[c,"Retry"]})}),e[5]=l,e[6]=d):d=e[6];let u;return e[7]!==a||e[8]!==d?(u=s.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-3 px-4 py-8 text-center",children:[n,a,d]}),e[7]=a,e[8]=d,e[9]=u):u=e[9],u}function Ds(){const i=B.c(1);let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex-1 overflow-y-auto p-2 space-y-1",children:Array.from({length:6}).map(Fs)}),i[0]=e):e=i[0],e}function Fs(i,e){return s.jsxs("div",{className:"flex items-center gap-2 min-h-8 py-3 px-3 rounded-lg",children:[s.jsx(Y,{className:"size-5 shrink-0 rounded-sm"}),s.jsx(Y,{className:"flex-1 h-4"}),s.jsx(Y,{className:"w-16 h-5 shrink-0 rounded-md"})]},e)}function ze(i){const e=B.c(12),{label:t,models:l,onSelect:n,onHover:o}=i;if(l.length===0)return null;let r;e[0]!==t?(r=s.jsx("div",{className:"text-xs font-medium text-muted-foreground px-3 pt-3 pb-1",children:t}),e[0]=t,e[1]=r):r=e[1];let a;if(e[2]!==l||e[3]!==o||e[4]!==n){let d;e[6]!==o||e[7]!==n?(d=u=>s.jsx("div",{onClick:()=>n(u),className:"cursor-pointer",children:s.jsx(Ls,{model:u,onHover:o})},u.modelId),e[6]=o,e[7]=n,e[8]=d):d=e[8],a=l.map(d),e[2]=l,e[3]=o,e[4]=n,e[5]=a}else a=e[5];let c;return e[9]!==r||e[10]!==a?(c=s.jsxs("div",{children:[r,a]}),e[9]=r,e[10]=a,e[11]=c):c=e[11],c}function Ks(i){const e=B.c(21),{model:t,isChecked:l,onToggle:n,onHover:o}=i,[r,a]=D.useState(l);r!==l&&a(l);let c;e[0]!==t?(c=be(t),e[0]=t,e[1]=c):c=e[1];const d=c;let u;e[2]!==t||e[3]!==o?(u=()=>o(t),e[2]=t,e[3]=o,e[4]=u):u=e[4];let m;e[5]!==t.modelId||e[6]!==n?(m=()=>{a(Us),n(t.modelId)},e[5]=t.modelId,e[6]=n,e[7]=m):m=e[7];let h;e[8]!==r||e[9]!==m?(h=s.jsx(St,{checked:r,onCheckedChange:m}),e[8]=r,e[9]=m,e[10]=h):h=e[10];let f;e[11]!==d||e[12]!==t.title?(f=s.jsx("img",{src:d,className:"w-5 h-5 shrink-0 rounded-sm dark:bg-white dark:rounded-sm dark:p-px",alt:t.title}),e[11]=d,e[12]=t.title,e[13]=f):f=e[13];let g;e[14]!==t.title?(g=s.jsx("span",{className:"text-sm text-foreground flex-1 min-w-0 line-clamp-1",children:t.title}),e[14]=t.title,e[15]=g):g=e[15];let x;return e[16]!==u||e[17]!==h||e[18]!==f||e[19]!==g?(x=s.jsxs("label",{className:"flex items-center gap-3 min-h-8 py-2.5 px-3 hover:bg-accent cursor-pointer rounded-lg",onMouseEnter:u,children:[h,f,g]}),e[16]=u,e[17]=h,e[18]=f,e[19]=g,e[20]=x):x=e[20],x}function Us(i){return!i}function Bs(i){const e=[];for(const t of Ze)if(i[t].length>0){e.push({type:"header",label:et[t]});for(const l of i[t])e.push({type:"model",model:l})}if(i.other.length>0){e.push({type:"header",label:"Other"});for(const t of i.other)e.push({type:"model",model:t})}return e}function Ws({items:i,shortlistSet:e,onToggle:t,onHover:l}){const n=D.useRef(null),o=ts({count:i.length,getScrollElement:()=>n.current,estimateSize:r=>i[r]?.type==="header"?36:44,overscan:6});return s.jsx("div",{ref:n,className:"flex-1 overflow-y-auto",children:s.jsx("div",{className:"relative",style:{height:o.getTotalSize()},children:o.getVirtualItems().map(r=>{const a=i[r.index];return a?s.jsx("div",{"data-index":r.index,ref:o.measureElement,className:"absolute left-0 right-0 top-0 px-0.5",style:{transform:`translateY(${r.start}px)`},children:a.type==="header"?s.jsx("div",{className:"text-xs font-medium text-muted-foreground px-3 pt-3 pb-1",children:a.label}):s.jsx(Ks,{model:a.model,isChecked:e.has(a.model.modelId),onToggle:t,onHover:l})},r.key):null})})})}function Hs(i){const e=B.c(23),{keyId:t,searchTerm:l,onHover:n,onModelSelect:o,managing:r,onToggleManage:a,filterModels:c}=i,{models:d}=Rt(t),u=c?d.filter(c):d.filter(Vs);let m;e[0]!==t?(m=()=>(t?Ps(t):null)??zs,e[0]=t,e[1]=m):m=e[1];const[h,f]=D.useState(m),[,g]=D.useTransition();let x;e[2]!==t||e[3]!==g?(x=p=>{t&&g(()=>{f(y=>{const v=new Set(y);return v.has(p)?v.delete(p):v.add(p),Rs(t,v),v})})},e[2]=t,e[3]=g,e[4]=x):x=e[4];const j=x,k=l.toLowerCase().trim(),w=p=>k?p.filter(y=>y.title.toLowerCase().includes(k)||y.modelId.toLowerCase().includes(k)):p;if(r){const p=Te(w(u)),y=Bs(p);let v;e[5]!==h?(v=O=>h.has(O.modelId),e[5]=h,e[6]=v):v=e[6];const E=u.filter(v).length;let A;e[7]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(Be,{size:14}),e[7]=A):A=e[7];let z;return e[8]!==a?(z=s.jsxs("button",{type:"button",onClick:a,className:"flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground cursor-pointer",children:[A,"Back"]}),e[8]=a,e[9]=z):z=e[9],s.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[s.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-border",children:[z,s.jsxs("span",{className:"text-xs text-muted-foreground",children:[E," selected"]})]}),s.jsx(Ws,{items:y,shortlistSet:h,onToggle:j,onHover:n})]})}let I;e[10]!==h?(I=p=>h.has(p.modelId),e[10]=h,e[11]=I):I=e[11];const _=u.filter(I),M=_.length>0?_:u,b=Te(w(M));let N;e[12]!==b||e[13]!==n||e[14]!==o?(N=Ze.map(p=>s.jsx(ze,{label:et[p],models:b[p],onSelect:o,onHover:n},p)),e[12]=b,e[13]=n,e[14]=o,e[15]=N):N=e[15];let S;e[16]!==b.other||e[17]!==n||e[18]!==o?(S=s.jsx(ze,{label:"Other",models:b.other,onSelect:o,onHover:n}),e[16]=b.other,e[17]=n,e[18]=o,e[19]=S):S=e[19];let C;return e[20]!==N||e[21]!==S?(C=s.jsxs("div",{className:"flex-1 overflow-y-auto px-0.5 pt-1 [touch-action:pan-y]",children:[N,S]}),e[20]=N,e[21]=S,e[22]=C):C=e[22],C}function Vs(i){return i.asyncResearch!==!0}function qs(){const i=B.c(6);let e;i[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"border-b border-border h-12 bg-background/95 backdrop-blur sticky top-0 z-10",children:s.jsxs("div",{className:"flex items-center gap-2.5 h-12 px-4",children:[s.jsx(Y,{className:"size-4 shrink-0"}),s.jsx(Y,{className:"flex-1 h-6"}),s.jsx(Y,{className:"w-[140px] h-8 shrink-0"})]})}),i[0]=e):e=i[0];let t;i[1]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsxs("div",{className:"flex-1 flex flex-col md:border-r md:w-[420px] md:min-w-[420px] min-h-0 overflow-hidden",children:[e,s.jsx("div",{className:"flex-1 overflow-y-auto p-2 space-y-1",children:Array.from({length:8}).map(Gs)})]}),i[1]=t):t=i[1];let l;i[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[s.jsx(Y,{className:"size-6 shrink-0"}),s.jsx(Y,{className:"h-6 w-32"})]}),i[2]=l):l=i[2];let n;i[3]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs("div",{className:"flex flex-col gap-3 py-2 px-0",children:[l,s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Y,{className:"h-6 w-20 rounded-md"}),s.jsx(Y,{className:"h-6 w-24 rounded-md"})]})]}),i[3]=n):n=i[3];let o;i[4]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs("div",{className:"flex flex-col gap-1.5",children:[s.jsx(Y,{className:"h-4 w-24"}),s.jsx(Y,{className:"h-4 w-32"})]}),i[4]=o):o=i[4];let r;return i[5]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs("div",{className:"flex flex-col md:flex-row h-full sm:h-[460px] min-h-0",children:[t,s.jsx("div",{className:"hidden md:block md:w-[320px] md:shrink-0 p-3",children:s.jsxs("div",{className:"flex flex-col gap-3 py-1 px-1.5",children:[n,s.jsxs("div",{className:"flex flex-col gap-4",children:[o,s.jsxs("div",{className:"flex flex-col gap-1.5",children:[s.jsx(Y,{className:"h-4 w-16"}),s.jsx(Y,{className:"h-4 w-40"})]})]})]})})]}),i[5]=r):r=i[5],r}function Gs(i,e){return s.jsxs("div",{className:"flex items-center gap-2 min-h-8 py-3 px-3 rounded-lg",children:[s.jsx(Y,{className:"size-5 shrink-0 rounded-sm"}),s.jsx(Y,{className:"flex-1 h-4"}),s.jsx(Y,{className:"w-16 h-5 shrink-0 rounded-md"})]},e)}function st(i){const e=B.c(49),{onClose:t,credentialId:l,onCredentialChange:n,selectedModel:o,onModelChange:r,filterModels:a}=i,[c,d]=D.useState(null),[u,m]=D.useState(""),[h,f]=D.useState(!1),g=D.useRef(null),x=ve(),j=Pt();let k;e[0]!==x?.providers?(k=Object.fromEntries((x?.providers??[]).map(Qs)),e[0]=x?.providers,e[1]=k):k=e[1];const w=k,I=ct(),{org:_}=oe();let M;e[2]!==n?(M=T=>{n(T),d(null)},e[2]=n,e[3]=M):M=e[3];const b=M;let N;e[4]!==l||e[5]!==t||e[6]!==r?(N=T=>{l&&(r(T),m(""),t())},e[4]=l,e[5]=t,e[6]=r,e[7]=N):N=e[7];const S=N;if(j.length===0){let T;return e[8]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx("div",{className:"flex items-center justify-center p-8 w-full sm:w-[740px]",children:s.jsx(bs,{})}),e[8]=T):T=e[8],T}let C;e[9]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(We,{size:16,className:"text-muted-foreground shrink-0"}),e[9]=C):C=e[9];const p=h?"Search all models...":"Search for a model...";let y;e[10]===Symbol.for("react.memo_cache_sentinel")?(y=T=>m(T.target.value),e[10]=y):y=e[10];let v;e[11]!==u||e[12]!==p?(v=s.jsx(le,{ref:g,type:"text",placeholder:p,value:u,onChange:y,className:"flex-1 min-w-0 border-0 !shadow-none focus-visible:ring-0 px-0 h-full text-sm placeholder:text-muted-foreground/50 bg-transparent"}),e[11]=u,e[12]=p,e[13]=v):v=e[13];let E;e[14]!==l||e[15]!==b||e[16]!==j||e[17]!==w?(E=j.length>0&&s.jsxs(kt,{value:l??"",onValueChange:b,children:[s.jsxs(Nt,{size:"sm",className:"w-auto max-w-[140px] h-8 shrink-0 gap-1.5 px-2 [&>svg:last-child]:hidden",onClick:Ys,children:[s.jsx(Ct,{placeholder:"Key",children:(()=>{const T=j.find($=>$.id===l),H=T?w[T.providerId]:void 0,q=ce(T?.presetId),Q=q?.logo??H?.logo,X=q?.name??H?.name??T?.providerId??"Key";return s.jsxs("span",{className:"flex items-center gap-1.5 min-w-0",children:[Q?s.jsx("img",{src:Q,alt:X,className:"w-4 h-4 rounded shrink-0 dark:bg-white dark:rounded-sm dark:p-px"}):s.jsx("div",{className:"w-4 h-4 rounded bg-primary/10 flex items-center justify-center text-xs font-semibold text-primary shrink-0",children:X.slice(0,1).toUpperCase()}),s.jsx("span",{className:"text-xs truncate",children:X})]})})()}),s.jsx(Tt,{className:"size-4 opacity-50 shrink-0 pointer-events-none"})]}),s.jsx(wt,{children:j.map(T=>{const H=w[T.providerId],q=ce(T.presetId),Q=q?.logo??H?.logo,X=q?.name??H?.name??T.providerId;return s.jsx(It,{value:T.id,children:s.jsxs("div",{className:"flex items-center gap-2",children:[Q?s.jsx("img",{src:Q,alt:X,className:"w-4 h-4 rounded dark:bg-white dark:rounded-sm dark:p-px"}):s.jsx("div",{className:"w-4 h-4 rounded bg-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:X.slice(0,1).toUpperCase()}),s.jsxs("span",{children:[X," — ",T.label]})]})},T.id)})})]}),e[14]=l,e[15]=b,e[16]=j,e[17]=w,e[18]=E):E=e[18];let A;e[19]!==v||e[20]!==E?(A=s.jsx("div",{className:"border-b border-border h-12 bg-background/95 backdrop-blur sticky top-0 z-10",children:s.jsxs("label",{className:"flex items-center gap-2.5 h-12 px-4 pr-12 md:pr-4 cursor-text",children:[C,v,E]})}),e[19]=v,e[20]=E,e[21]=A):A=e[21];let z;e[22]!==l?(z=T=>{const{error:H,resetError:q}=T;return s.jsx($s,{error:H,onRetry:q,credentialId:l??void 0})},e[22]=l,e[23]=z):z=e[23];let O;e[24]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(Ds,{}),e[24]=O):O=e[24];const R=l??void 0;let P;e[25]===Symbol.for("react.memo_cache_sentinel")?(P=()=>f(Xs),e[25]=P):P=e[25];let L;e[26]!==a||e[27]!==S||e[28]!==h||e[29]!==u||e[30]!==R?(L=s.jsx(D.Suspense,{fallback:O,children:s.jsx(Hs,{keyId:R,searchTerm:u,onHover:d,onModelSelect:S,managing:h,onToggleManage:P,filterModels:a})}),e[26]=a,e[27]=S,e[28]=h,e[29]=u,e[30]=R,e[31]=L):L=e[31];let F;e[32]!==l||e[33]!==z||e[34]!==L?(F=s.jsx(dt,{fallback:z,children:L},l),e[32]=l,e[33]=z,e[34]=L,e[35]=F):F=e[35];let W;e[36]!==h||e[37]!==I||e[38]!==_?(W=!h&&s.jsxs("div",{className:"border-t border-border flex",children:[s.jsxs("button",{type:"button",onClick:()=>D.startTransition(()=>f(!0)),className:"flex items-center gap-2 flex-1 px-4 py-2.5 text-xs text-muted-foreground hover:text-foreground hover:bg-accent cursor-pointer",children:[s.jsx(Mt,{className:"size-3.5 shrink-0"}),"Manage models"]}),s.jsx("div",{className:"w-px bg-border shrink-0"}),s.jsxs("button",{type:"button",onClick:()=>I({to:"/$org/settings/ai-providers",params:{org:_.slug}}),className:"flex items-center gap-2 flex-1 px-4 py-2.5 text-xs text-muted-foreground hover:text-foreground hover:bg-accent cursor-pointer",children:[s.jsx(zt,{className:"size-3.5 shrink-0"}),"Manage API keys"]})]}),e[36]=h,e[37]=I,e[38]=_,e[39]=W):W=e[39];let U;e[40]!==F||e[41]!==W||e[42]!==A?(U=s.jsxs("div",{className:"flex-1 flex flex-col md:border-r md:w-[420px] md:min-w-[420px] min-h-0 overflow-hidden",children:[A,F,W]}),e[40]=F,e[41]=W,e[42]=A,e[43]=U):U=e[43];const G=c??o??null;let K;e[44]!==G?(K=s.jsx("div",{className:"hidden md:flex md:flex-col md:w-[320px] md:shrink-0 p-3",children:s.jsx(Is,{model:G})}),e[44]=G,e[45]=K):K=e[45];let V;return e[46]!==U||e[47]!==K?(V=s.jsxs("div",{className:"flex flex-col md:flex-row h-full sm:h-[460px] min-h-0",children:[U,K]}),e[46]=U,e[47]=K,e[48]=V):V=e[48],V}function Xs(i){return!i}function Ys(i){return i.stopPropagation()}function Qs(i){return[i.id,i]}function Js(i){const e=B.c(12),{onClose:t}=i,{credentialId:l,setCredentialId:n,selectedModel:o,setModel:r}=ge();let a;e[0]!==n?(a=u=>{J("chat_credential_changed",{credential_id:u}),n(u)},e[0]=n,e[1]=a):a=e[1];let c;e[2]!==l||e[3]!==o?.modelId||e[4]!==r?(c=u=>{l&&(J("chat_model_changed",{from_model_id:o?.modelId??null,to_model_id:u.modelId,to_model_provider:u.providerId??null,credential_id:l}),r({...u,keyId:l}))},e[2]=l,e[3]=o?.modelId,e[4]=r,e[5]=c):c=e[5];let d;return e[6]!==l||e[7]!==t||e[8]!==o||e[9]!==a||e[10]!==c?(d=s.jsx(st,{onClose:t,credentialId:l,onCredentialChange:a,selectedModel:o,onModelChange:c}),e[6]=l,e[7]=t,e[8]=o,e[9]=a,e[10]=c,e[11]=d):d=e[11],d}function Zs(i){const e=B.c(2),{onClose:t}=i;let l;return e[0]!==t?(l=s.jsx(Js,{onClose:t}),e[0]=t,e[1]=l):l=e[1],l}function ei(i){const e=B.c(2);let t;return e[0]!==i?(t=s.jsx(st,{...i}),e[0]=i,e[1]=t):t=e[1],t}const ti=[{tier:"fast",description:"Quicker responses"},{tier:"smart",description:"Balanced quality"},{tier:"thinking",description:"Deeper reasoning"}];function it(i){const e=B.c(10),{modelSet:t,selectedModelId:l,onSelect:n}=i;let o,r;if(e[0]!==t.logo||e[1]!==t.models||e[2]!==t.tiers||e[3]!==n||e[4]!==l){const c=Object.fromEntries(t.models.map(si));o="flex flex-col p-2 w-[320px]",r=ti.map(d=>{const{tier:u,description:m}=d,h=t.tiers[u];if(!h.modelId)return null;const f=c[h.modelId];if(!f)return null;const g=l===h.modelId;return s.jsxs("button",{type:"button",onClick:()=>n(f),className:ne("flex items-center gap-3 px-3 py-2.5 rounded-lg text-left hover:bg-accent",g&&"bg-accent/50"),children:[s.jsx("img",{src:t.logo,alt:h.label,className:"size-5 shrink-0 rounded-sm dark:bg-white dark:rounded-sm dark:p-px"}),s.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[s.jsx("span",{className:"text-sm text-foreground leading-tight truncate",children:h.label}),s.jsx("span",{className:"text-xs text-muted-foreground leading-tight",children:m})]})]},u)}),e[0]=t.logo,e[1]=t.models,e[2]=t.tiers,e[3]=n,e[4]=l,e[5]=o,e[6]=r}else o=e[5],r=e[6];let a;return e[7]!==o||e[8]!==r?(a=s.jsx("div",{className:o,children:r}),e[7]=o,e[8]=r,e[9]=a):a=e[9],a}function si(i){return[i.modelId,i]}const ii=[{providerId:"claude-code",modelId:"claude-code:haiku",title:"Claude Code Haiku",description:"Fast and lightweight",capabilities:["text"],limits:null,costs:null},{providerId:"claude-code",modelId:"claude-code:sonnet",title:"Claude Code Sonnet 5",description:"Balanced performance",capabilities:["text","reasoning"],limits:null,costs:null},{providerId:"claude-code",modelId:"claude-code:opus",title:"Claude Code Opus",description:"Most capable",capabilities:["text","reasoning"],limits:null,costs:null},{providerId:"claude-code",modelId:"claude-code:opus-1m",title:"Claude Code Opus 4.8 1M",description:"Most capable, 1M context window",capabilities:["text","reasoning"],limits:{contextWindow:1e6,maxOutputTokens:null},costs:null}],ue="https://assets.decocache.com/decocms/6ac44f1c-c0cf-4480-84b5-2ae6fe742d0b/codex-app.png.png",li=[{providerId:"codex",modelId:"codex:gpt-5.6-sol",title:"GPT-5.6 Sol",description:"Frontier Codex model for deep reasoning, complex coding, and real-world work",capabilities:["text","reasoning"],logo:ue,limits:null,costs:null},{providerId:"codex",modelId:"codex:gpt-5.6-terra",title:"GPT-5.6 Terra",description:"Balanced Codex model for everyday coding and agent work",capabilities:["text","reasoning"],logo:ue,limits:null,costs:null},{providerId:"codex",modelId:"codex:gpt-5.6-luna",title:"GPT-5.6 Luna",description:"Fast Codex model for lightweight coding tasks and titles",capabilities:["text","reasoning"],logo:ue,limits:null,costs:null},{providerId:"codex",modelId:"codex:gpt-5.3-codex-spark",title:"GPT-5.3 Codex Spark",description:"Ultra-fast coding model",capabilities:["text","reasoning"],logo:ue,limits:null,costs:null}],ni="https://decoims.com/decocms/93e4059c-e598-412b-87eb-54d72a946ec8/claude-stroke-rounded.svg",oi="https://decoims.com/decocms/9170ffd4-b9cc-4661-ad8f-ae2eea019e00/codex.svg",ri={fast:{modelId:"claude-code:haiku",label:"Haiku 4.5",description:"Quicker responses",iconNode:s.jsx(me,{size:16})},smart:{modelId:"claude-code:sonnet",label:"Sonnet 5",description:"Balanced quality",iconNode:s.jsx(me,{size:16})},thinking:{modelId:"claude-code:opus-1m",label:"Opus 4.8 1M",description:"Deeper reasoning",iconNode:s.jsx(me,{size:16})}},ai={fast:{modelId:"codex:gpt-5.6-luna",label:"GPT-5.6 Luna",description:"Quicker responses",iconNode:s.jsx(fe,{size:16})},smart:{modelId:"codex:gpt-5.6-terra",label:"GPT-5.6 Terra",description:"Balanced quality",iconNode:s.jsx(fe,{size:16})},thinking:{modelId:"codex:gpt-5.6-sol",label:"GPT-5.6 Sol",description:"Deeper reasoning",iconNode:s.jsx(fe,{size:16})}};function lt(i){return i==="claude-code"?{logo:ni,tiers:ri,models:ii}:i==="codex"?{logo:oi,tiers:ai,models:li}:null}function ci(i){const e=B.c(11),{onClose:t,agent:l}=i,n=ge(),o=l??n.pendingHarnessId??"decopilot";let r;e[0]!==o?(r=lt(o),e[0]=o,e[1]=r):r=e[1];const a=r;if(!a){let m;return e[2]!==t?(m=s.jsx(Zs,{onClose:t}),e[2]=t,e[3]=m):m=e[3],m}const c=n.selectedModel?.modelId??a.tiers[n.simpleModeTier].modelId;let d;e[4]!==t||e[5]!==n?(d=m=>{n.setModel({...m,keyId:void 0}),t()},e[4]=t,e[5]=n,e[6]=d):d=e[6];let u;return e[7]!==a||e[8]!==c||e[9]!==d?(u=s.jsx(it,{modelSet:a,selectedModelId:c,onSelect:d}),e[7]=a,e[8]=c,e[9]=d,e[10]=u):u=e[10],u}function di(i){const e=B.c(13);let t,l;e[0]!==i?({agent:t,...l}=i,e[0]=i,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let n;e[3]!==t?(n=t?lt(t):null,e[3]=t,e[4]=n):n=e[4];const o=n;if(!o){let d;return e[5]!==l?(d=s.jsx(ei,{...l}),e[5]=l,e[6]=d):d=e[6],d}const r=l.selectedModel?.modelId??o.tiers.smart.modelId;let a;e[7]!==l?(a=d=>{l.onModelChange(d),l.onClose()},e[7]=l,e[8]=a):a=e[8];let c;return e[9]!==o||e[10]!==r||e[11]!==a?(c=s.jsx(it,{modelSet:o,selectedModelId:r,onSelect:a}),e[9]=o,e[10]=r,e[11]=a,e[12]=c):c=e[12],c}function Ui(i){const e=B.c(39),{variant:t,className:l,placeholder:n,model:o,isLoading:r,credentialId:a,onCredentialChange:c,onModelChange:d,filterModels:u,agent:m}=i,h=t===void 0?"borderless":t,f=n===void 0?"Select model":n,[g,x]=D.useState(!1),j=d!==void 0,k=bt(),w=h==="borderless"?"ghost":"outline",I=h==="borderless"&&"md:border-none";let _;e[0]!==l||e[1]!==I?(_=ne("text-sm hover:bg-accent rounded-lg py-0.5 px-1 gap-1 shadow-none cursor-pointer border-0 group focus-visible:ring-0 focus-visible:ring-offset-0 min-w-0 shrink justify-start overflow-hidden",I,l),e[0]=l,e[1]=I,e[2]=_):_=e[2];let M;e[3]!==r||e[4]!==o||e[5]!==f||e[6]!==j?(M=j?s.jsx(Ye,{model:o??null,placeholder:f,isLoading:r}):s.jsx(mi,{placeholder:f}),e[3]=r,e[4]=o,e[5]=f,e[6]=j,e[7]=M):M=e[7];let b;e[8]!==w||e[9]!==_||e[10]!==M?(b=s.jsx(ee,{variant:w,size:"sm",className:_,children:M}),e[8]=w,e[9]=_,e[10]=M,e[11]=b):b=e[11];const N=b;let S;e[12]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(qs,{}),e[12]=S):S=e[12];let C;e[13]!==m||e[14]!==a||e[15]!==u||e[16]!==o||e[17]!==c||e[18]!==d||e[19]!==j?(C=s.jsx(D.Suspense,{fallback:S,children:j?s.jsx(di,{onClose:()=>x(!1),agent:m,credentialId:a??null,onCredentialChange:c??ui,selectedModel:o??null,onModelChange:d,filterModels:u}):s.jsx(ci,{onClose:()=>x(!1),agent:m})}),e[13]=m,e[14]=a,e[15]=u,e[16]=o,e[17]=c,e[18]=d,e[19]=j,e[20]=C):C=e[20];const p=C;if(k){let z;e[21]!==N?(z=s.jsx(pt,{asChild:!0,children:N}),e[21]=N,e[22]=z):z=e[22];let O;e[23]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(xt,{className:"sr-only",children:"Select model"}),e[23]=O):O=e[23];let R;e[24]!==p?(R=s.jsxs(gt,{className:"p-0 flex flex-col max-h-[95vh]",children:[O,s.jsx("div",{className:"flex-1 flex flex-col min-h-0 overflow-hidden",children:p})]}),e[24]=p,e[25]=R):R=e[25];let P;return e[26]!==g||e[27]!==z||e[28]!==R?(P=s.jsxs(vt,{open:g,onOpenChange:x,children:[z,R]}),e[26]=g,e[27]=z,e[28]=R,e[29]=P):P=e[29],P}let y;e[30]!==N?(y=s.jsx(ht,{asChild:!0,children:N}),e[30]=N,e[31]=y):y=e[31];let v;e[32]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(Ke,{className:"sr-only",children:"Select model"}),e[32]=v):v=e[32];let E;e[33]!==p?(E=s.jsxs(Fe,{className:"p-0 gap-0 sm:max-w-fit overflow-hidden h-[100dvh] sm:h-auto max-h-[100dvh] sm:max-h-[85vh] w-full max-w-full sm:max-w-fit rounded-none sm:rounded-xl border-0 sm:border",closeButtonClassName:"top-3.5 right-3.5 z-20",children:[v,p]}),e[33]=p,e[34]=E):E=e[34];let A;return e[35]!==g||e[36]!==y||e[37]!==E?(A=s.jsxs(De,{open:g,onOpenChange:x,children:[y,E]}),e[35]=g,e[36]=y,e[37]=E,e[38]=A):A=e[38],A}function ui(){}function mi(i){const e=B.c(4),{placeholder:t}=i,{selectedModel:l,isModelsLoading:n}=ge();let o;return e[0]!==n||e[1]!==l||e[2]!==t?(o=s.jsx(Ye,{model:l,placeholder:t,isLoading:n}),e[0]=n,e[1]=l,e[2]=t,e[3]=o):o=e[3],o}export{ps as C,Ui as M,bs as N,Xe as P,Fi as a,ce as b,Ki as g,Di as i,ye as m};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-ftVzyud_.js","assets/index-CAIYhjul.js","assets/index-C-1vh7Fd.css","assets/Tool02-CngweHED.js","assets/CheckCircle-D6vue6JR.js","assets/Settings02-5t6-pGmO.js","assets/use-mcp-client-BRDJsS2i.js","assets/auth-D4yHRD2-.js","assets/useInfiniteQuery-BSKFC7YM.js","assets/use-infinite-scroll-C_OzT98l.js","assets/studio-tools-C0-5Z8k5.js","assets/badge-D2OV8wRl.js","assets/input-Dzav8ivG.js","assets/dropdown-menu-EfeTZxQL.js","assets/ChevronUp-B2kc02W-.js","assets/ChevronRight-DGKhdwsU.js","assets/DotsVertical-Bv_Wu1PR.js","assets/table-fSAZqdik.js","assets/toggle-group-CP4FEYCM.js","assets/use-view-mode-BJOrvC1j.js","assets/use-mobile-COWtBi3l.js","assets/FilterLines-CVyIbk7P.js","assets/Globe01-D8U_-ef0.js","assets/SearchMd-CjaEgvWB.js","assets/dialog-BFqbrhnG.js","assets/X-CLk-1WTe.js","assets/AlertCircle-C-LWGksh.js","assets/Upload01-BWPUocl6.js","assets/alert-dialog-BNeEAttR.js","assets/card-BJLhqcLf.js","assets/Trash01-Bi1KaIxH.js","assets/label-DaAsoL9V.js","assets/select-peZlJuYe.js","assets/tooltip-DBcnpVTx.js","assets/ChevronDown-Chms7f47.js","assets/switch-DG2ijYXZ.js","assets/textarea-B9TUwSCj.js","assets/XCircle-2O_4kWp7.js","assets/checkbox-fY0uDGwg.js","assets/Eye--S6NkM5F.js","assets/LinkExternal01-Cq7tHe_6.js","assets/use-copy-BHgKL0On.js","assets/Copy01-BLPcoB-x.js","assets/Key01-DgOZ1Vl-.js","assets/Plus-CX4xPpn4.js","assets/mcp-oauth-Bzb4iSTT.js","assets/Play-D27HpOrJ.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as m,b as n,e as c,j as t,i as p,r as l,aX as f}from"./index-CAIYhjul.js";import{R as u}from"./require-capability-BYn5Rk3O.js";import"./use-capability-CEtXiCRz.js";import"./access-gate-avJTtHpg.js";import"./capability-load-error-C8Uwu5_s.js";const g=l.lazy(()=>f(()=>import("./registry-layout-ftVzyud_.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(p,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./use-infinite-scroll-C_OzT98l.js";import{dK as i}from"./index-CAIYhjul.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./use-infinite-scroll-C_OzT98l.js";import{dK as u,ab as n}from"./index-CAIYhjul.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|