decocms 3.19.2 → 3.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-msrZcybq.js → AlertCircle-B-p2hhbf.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-Byrpe9WP.js → ArrowUpRight-Bq-dJGgn.js} +1 -1
- package/dist/client/assets/{Check-Jqq0Xl3a.js → Check-CSixRgqh.js} +1 -1
- package/dist/client/assets/{CheckCircle-DSS55ngx.js → CheckCircle-CqLcOI7o.js} +1 -1
- package/dist/client/assets/{ChevronDown-BSX6I-22.js → ChevronDown-BptXi8Ef.js} +1 -1
- package/dist/client/assets/{ChevronLeft-WDS7c9Oj.js → ChevronLeft-Bq6F--2K.js} +1 -1
- package/dist/client/assets/{ChevronRight-rpdEZJUq.js → ChevronRight-CtziSifX.js} +1 -1
- package/dist/client/assets/{ChevronUp-CZxdSjaK.js → ChevronUp-DChs66VU.js} +1 -1
- package/dist/client/assets/{Container-Ds9oBR1K.js → Container-DIwdobum.js} +1 -1
- package/dist/client/assets/{DotsVertical-oDmXH8rL.js → DotsVertical-DQ3UGDDE.js} +1 -1
- package/dist/client/assets/{Eye-DBlsn1hC.js → Eye-DepFjUJE.js} +1 -1
- package/dist/client/assets/{FilterLines-Bl-ckLoL.js → FilterLines-CIJgiiLT.js} +1 -1
- package/dist/client/assets/{Globe01-jNcghhQz.js → Globe01-BayTDYGC.js} +1 -1
- package/dist/client/assets/{HardDrive-DEvNg8yq.js → HardDrive-OwnJRrIS.js} +1 -1
- package/dist/client/assets/{Key01-zn3UtDG9.js → Key01-CR8zfCdU.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CqI5nVLL.js → LayoutLeft-6fPyjOVd.js} +1 -1
- package/dist/client/assets/{LinkExternal01-D0jjtfJs.js → LinkExternal01-B2YZgRTN.js} +1 -1
- package/dist/client/assets/{Monitor01-DthONXqr.js → Monitor01-BNXW6pu5.js} +1 -1
- package/dist/client/assets/{Palette-DW9tW514.js → Palette-siqkt4cQ.js} +1 -1
- package/dist/client/assets/{Play-ERiPM4DA.js → Play-CBt0NeLA.js} +1 -1
- package/dist/client/assets/{Plus-CFWiqWHN.js → Plus-gXoAw_mX.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-D05DrWxG.js → RefreshCcw01-DlKjMM-5.js} +1 -1
- package/dist/client/assets/{SearchMd-Dki_7scv.js → SearchMd-z6b-QOmX.js} +1 -1
- package/dist/client/assets/{Settings02-DaFOyqDZ.js → Settings02-C7YqxsZL.js} +1 -1
- package/dist/client/assets/{Shield01-0VPaG49X.js → Shield01-BT66FEMI.js} +1 -1
- package/dist/client/assets/{Star01-DlcdN00s.js → Star01-q6EhXttt.js} +1 -1
- package/dist/client/assets/{Stars01-Bc7S8o1J.js → Stars01-DcMeK1n0.js} +1 -1
- package/dist/client/assets/{Stars02-B_dlwxCr.js → Stars02-DJ4Y5TfK.js} +1 -1
- package/dist/client/assets/{Sun-BqBChjnU.js → Sun-CeFpMHQU.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-lNhGk_hy.js → SwitchHorizontal01-__hAuhZa.js} +1 -1
- package/dist/client/assets/{Tool01-CcCi4KvQ.js → Tool01-DXWYgeBe.js} +1 -1
- package/dist/client/assets/{Trash01-BxTQxIdp.js → Trash01-B91-1KNk.js} +1 -1
- package/dist/client/assets/{Upload01-DX71wpXa.js → Upload01-CcwGyBRP.js} +1 -1
- package/dist/client/assets/{User01-Nh_tiNpg.js → User01-JR_76gHl.js} +1 -1
- package/dist/client/assets/{Users01-BwVZocdt.js → Users01-BM2QLqUJ.js} +1 -1
- package/dist/client/assets/{Users03-BHZni5n9.js → Users03-D5pU3_ql.js} +1 -1
- package/dist/client/assets/{X-ss5Xz1Et.js → X-DCWlm9Ta.js} +1 -1
- package/dist/client/assets/{XCircle-BB0lZzsa.js → XCircle-CEKwTNMD.js} +1 -1
- package/dist/client/assets/{XClose-PQOZtIep.js → XClose-DhQ5V0ST.js} +1 -1
- package/dist/client/assets/{Zap-B2IJIN30.js → Zap-BLBAeivN.js} +1 -1
- package/dist/client/assets/{ZapSquare-CNqz5kEa.js → ZapSquare-DSdwG_FE.js} +1 -1
- package/dist/client/assets/{ZoomOut-DMw3YmC-.js → ZoomOut-CCPaeWry.js} +1 -1
- package/dist/client/assets/{access-gate-Dy05Kfsj.js → access-gate-DXlQ8iVy.js} +1 -1
- package/dist/client/assets/{accordion-DUAiTQ1X.js → accordion-CsQ2TTIf.js} +1 -1
- package/dist/client/assets/add-section-modal-ilTOPIUe.js +1 -0
- package/dist/client/assets/{agent-capabilities-Dgku04Fj.js → agent-capabilities-CuNGQogd.js} +1 -1
- package/dist/client/assets/{agent-icon-BKyPZSrU.js → agent-icon-Lc1AgwlE.js} +1 -1
- package/dist/client/assets/{agent-icons-LDbRdVXw.js → agent-icons-Cprwkzhw.js} +1 -1
- package/dist/client/assets/agents-list--b7dVWdV.js +1 -0
- package/dist/client/assets/ai-providers-Dw2EV4N6.js +1 -0
- package/dist/client/assets/{alert-BFYJRHz0.js → alert-HSAarVhN.js} +1 -1
- package/dist/client/assets/{alert-dialog-CdMTKexh.js → alert-dialog-DJLxSS_E.js} +1 -1
- package/dist/client/assets/app-editor-ZPlbW7dI.js +1 -0
- package/dist/client/assets/{auth-catchall-CMK3_4n7.js → auth-catchall-DeBOSldf.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CjTM8YYN.js → auth-split-layout-DKKncNKx.js} +1 -1
- package/dist/client/assets/{automation-list-row-Dyfpfy2H.js → automation-list-row-C8yWYA2H.js} +1 -1
- package/dist/client/assets/automation-runs-D-WPNg7m.js +1 -0
- package/dist/client/assets/automations-C0KOU0yb.js +1 -0
- package/dist/client/assets/{avatar-DO0XQWG0.js → avatar-3vQWE5Hu.js} +1 -1
- package/dist/client/assets/{badge-URBzLEND.js → badge-DF6gVmsi.js} +1 -1
- package/dist/client/assets/brand-context-EmCiQUXD.js +1 -0
- package/dist/client/assets/buckets-SH6KUYAQ.js +1 -0
- package/dist/client/assets/{calendar-D2iLp4AZ.js → calendar-CCqv5TgR.js} +1 -1
- package/dist/client/assets/{capability-load-error-DRUhmmMs.js → capability-load-error-Dn3qy9VI.js} +1 -1
- package/dist/client/assets/{card-BBYtsRQu.js → card-CeH_PUFE.js} +1 -1
- package/dist/client/assets/{chat-context-D6r0VrdY.js → chat-context-BIie9ysT.js} +1 -1
- package/dist/client/assets/{checkbox-lq9fHOVc.js → checkbox-DFFY_m2B.js} +1 -1
- package/dist/client/assets/{cli-auth-success-B5PGlqVe.js → cli-auth-success-CKQ9nJ3v.js} +1 -1
- package/dist/client/assets/collection-detail-BVeEbzxz.js +1 -0
- package/dist/client/assets/{collection-display-button-DEKclzZV.js → collection-display-button-_le1JW4q.js} +1 -1
- package/dist/client/assets/{collection-search-B16Qll3H.js → collection-search-Bryj5VYk.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BQ-724WQ.js → collection-table-wrapper-DoTnvoII.js} +1 -1
- package/dist/client/assets/{collection-tabs-D2P_kf5B.js → collection-tabs-Y3w8w2D4.js} +1 -1
- package/dist/client/assets/{collections-CfqnSWiG.js → collections-B-UBhIxv.js} +1 -1
- package/dist/client/assets/{command-BFdTdJIk.js → command-KyGHPzm4.js} +1 -1
- package/dist/client/assets/connect-desktop-dialog-BeLm4wl6.js +1 -0
- package/dist/client/assets/connection-card-Dug8PvM2.js +1 -0
- package/dist/client/assets/connection-detail-BXK_93LF.js +1 -0
- package/dist/client/assets/{connection-form-helpers-c057Q0nC.js → connection-form-helpers-Ce4ZXQGG.js} +1 -1
- package/dist/client/assets/connections-CVEBwrj4.js +1 -0
- package/dist/client/assets/{decopilot-sse-pool-DldV1nWG.js → decopilot-sse-pool-vfZK3kan.js} +1 -1
- package/dist/client/assets/{dialog-C_ezrgSP.js → dialog-nXKceTRB.js} +1 -1
- package/dist/client/assets/domain-settings-OHWjjHlQ.js +1 -0
- package/dist/client/assets/{drawer-BXY4BcX7.js → drawer-lSnonzW3.js} +1 -1
- package/dist/client/assets/{dropdown-menu-Dh2MQHLA.js → dropdown-menu-DpfpR4kx.js} +1 -1
- package/dist/client/assets/dynamic-plugin-layout-BYQB-ubA.js +1 -0
- package/dist/client/assets/{empty-state-2i4c7wH5.js → empty-state-BJuYi96S.js} +1 -1
- package/dist/client/assets/{empty-state-B7yWolnH.js → empty-state-CY7XUbo0.js} +1 -1
- package/dist/client/assets/extract-connection-data-DxtHEsy3.js +1 -0
- package/dist/client/assets/features-DeiC9LXr.js +1 -0
- package/dist/client/assets/file-explorer-Ch6ZQfZO.js +2 -0
- package/dist/client/assets/{file-type-icon-aIKNVhBg.js → file-type-icon-B2skJERp.js} +1 -1
- package/dist/client/assets/{files-Cd9F57xn.js → files-CZNNukx-.js} +1 -1
- package/dist/client/assets/{form-CkEhbzy7.js → form-BM4RuTjX.js} +1 -1
- package/dist/client/assets/general-sYzqMtl5.js +1 -0
- package/dist/client/assets/{generate-id-DaY0KVY7.js → generate-id-DvX29Me7.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CdHH9nCY.js → github-repo-picker-Dlio4Q6_.js} +1 -1
- package/dist/client/assets/{header-tab-button-0jfaFdUX.js → header-tab-button-BY6bk4Fs.js} +1 -1
- package/dist/client/assets/{hover-card-BCAj_Xd_.js → hover-card-DASEEDYA.js} +1 -1
- package/dist/client/assets/image-field-BTCmGBNs.js +1 -0
- package/dist/client/assets/{index-BzKJxpwN.js → index-1xoY7YJX.js} +1 -1
- package/dist/client/assets/{index-5X0_pyXB.js → index-BXzjL9VS.js} +4 -4
- package/dist/client/assets/{index-Bo3JNDr-.js → index-BfzqpoYd.js} +3 -3
- package/dist/client/assets/{index-C3nMRDmD.js → index-CVPVNlMM.js} +1 -1
- package/dist/client/assets/{index-y0aPO23E.js → index-CaqKcth7.js} +1 -1
- package/dist/client/assets/{index-CB3uLwGL.js → index-CnLAq3ph.js} +1 -1
- package/dist/client/assets/{index-BEEslzRu.js → index-D3hStv8f.js} +1 -1
- package/dist/client/assets/{index-DQjHfKU7.js → index-D4BxVbG6.js} +1 -1
- package/dist/client/assets/index-DFmAjKzK.js +1 -0
- package/dist/client/assets/{index-SuF349z9.js → index-DOW4VN4f.js} +1 -1
- package/dist/client/assets/{index-tKIVUSzL.js → index-DcxEaxY4.js} +1 -1
- package/dist/client/assets/index-Dey5W81J.js +1 -0
- package/dist/client/assets/index-e3NOZKNP.js +1 -0
- package/dist/client/assets/{index-DmIZ-CRb.js → index-nkMA7ZNv.js} +1 -1
- package/dist/client/assets/{index-redirect-B-EGzrp3.js → index-redirect-Dz1DdiHC.js} +1 -1
- package/dist/client/assets/{index-CLQbUNOD.js → index-uO0JijnU.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DDvMhEnM.js → infiniteQueryObserver-CvEVG_TM.js} +1 -1
- package/dist/client/assets/{input-pRrhjAXj.js → input-BGQcwAaL.js} +1 -1
- package/dist/client/assets/{integration-icon-Sjhpbwvw.js → integration-icon-B-zr5uGs.js} +1 -1
- package/dist/client/assets/{label-D6vCqN0W.js → label-zIig0cjv.js} +1 -1
- package/dist/client/assets/{layout-C3MgBkSM.js → layout-VuI1aPBj.js} +1 -1
- package/dist/client/assets/{login-pZHNqArS.js → login-DgI1VcxE.js} +1 -1
- package/dist/client/assets/members-BdlFzlWX.js +3 -0
- package/dist/client/assets/{monaco-editor-Bjbp__XB.js → monaco-editor-DQviDtyP.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Wql_ZRjG.js → monitoring-stats-row-Bsjs_3xk.js} +1 -1
- package/dist/client/assets/{oauth-callback-DKR05MxD.js → oauth-callback-CuHVTba4.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DwJNXQg2.js → oauth-callback-ai-provider-B-N2lOyI.js} +1 -1
- package/dist/client/assets/{onboarding-zW8Ab_91.js → onboarding-CqGFHsnX.js} +1 -1
- package/dist/client/assets/{org-install-D7P0yXNw.js → org-install-B0qdlOKM.js} +1 -1
- package/dist/client/assets/{org-layout-CWLWFcEi.js → org-layout-CMGneEfe.js} +1 -1
- package/dist/client/assets/org-plugin-layout-DGdROiZB.js +1 -0
- package/dist/client/assets/{page-seo-form-DXk-FMdG.js → page-seo-form-C3bI8Neh.js} +1 -1
- package/dist/client/assets/page-seo-sheet-Cs2jXSnd.js +1 -0
- package/dist/client/assets/{pair-xjLo0yuO.js → pair-NC4sCATE.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-Bhd84nYD.js → plugin-empty-state-FQw8SLzO.js} +1 -1
- package/dist/client/assets/{plugin-header-f8Msl2wi.js → plugin-header-D-cxTW9a.js} +1 -1
- package/dist/client/assets/plugin-layout-DECTyQVg.js +1 -0
- package/dist/client/assets/{popover-DCPb5csG.js → popover-B1xAxEac.js} +1 -1
- package/dist/client/assets/{post-editor-iEJFy1Z1.js → post-editor-BXy1yxCV.js} +1 -1
- package/dist/client/assets/{primitives-DcoU6ix7.js → primitives-CANqy_LE.js} +1 -1
- package/dist/client/assets/{profile-DoEK5_UU.js → profile-UNuXVjVg.js} +1 -1
- package/dist/client/assets/project-app-view-7DW_WhHA.js +1 -0
- package/dist/client/assets/record-editor-D9aMJ7nl.js +1 -0
- package/dist/client/assets/registry-Ddq3KnAW.js +2 -0
- package/dist/client/assets/{registry-layout-CO50gP_1.js → registry-layout-DH7-iD95.js} +1 -1
- package/dist/client/assets/{require-capability-CrKIqEWt.js → require-capability-Bi88Fg3q.js} +1 -1
- package/dist/client/assets/{required-auth-layout-B_-dVCbU.js → required-auth-layout-3IQyeREK.js} +1 -1
- package/dist/client/assets/{reset-password-CVpBId6U.js → reset-password-Dstl0VXR.js} +1 -1
- package/dist/client/assets/{resizable-Cigu4A4t.js → resizable-Cx-Y9zvP.js} +1 -1
- package/dist/client/assets/roles-BrYnRIt_.js +1 -0
- package/dist/client/assets/{save-status-DN0Z06hy.js → save-status-DSB279Mq.js} +1 -1
- package/dist/client/assets/{schema-form-CZZ44g0g.js → schema-form-f_EsRXt1.js} +1 -1
- package/dist/client/assets/{scroll-area-CKvBXrNm.js → scroll-area-BYy84ztj.js} +1 -1
- package/dist/client/assets/{search-input-BcAmdKUD.js → search-input-C3i2qrnL.js} +1 -1
- package/dist/client/assets/secrets-CAO0zPct.js +1 -0
- package/dist/client/assets/{sections-editor-DXWHdiRY.js → sections-editor-Dq0mEIsn.js} +1 -1
- package/dist/client/assets/{select-DUXB6LHg.js → select-DpYu937I.js} +1 -1
- package/dist/client/assets/{select-model-RkJ8YMBz.js → select-model-B8gz_8C_.js} +1 -1
- package/dist/client/assets/seo-editor-DCppyDVT.js +1 -0
- package/dist/client/assets/{settings-layout-Dae86zhx.js → settings-layout-BYi6Agz-.js} +1 -1
- package/dist/client/assets/{settings-section-Udn4AewC.js → settings-section-pgSq0Nbi.js} +1 -1
- package/dist/client/assets/{sheet-APxs0kGR.js → sheet-y2Nja_Ue.js} +1 -1
- package/dist/client/assets/{shell-controls-Bgcfbug_.js → shell-controls-DyDfxDen.js} +1 -1
- package/dist/client/assets/shell-layout-D8qm1N5L.js +1 -0
- package/dist/client/assets/shell-route-loading-DQ0B9hX1.js +1 -0
- package/dist/client/assets/{sidebar-K8V064sc.js → sidebar-B3S1MC-b.js} +1 -1
- package/dist/client/assets/{skeleton-BWZ-ns9j.js → skeleton-thGJKlMg.js} +1 -1
- package/dist/client/assets/{sortable.esm-IvhH0Iiq.js → sortable.esm-DYE94iJD.js} +1 -1
- package/dist/client/assets/{spinner-DykCTvUx.js → spinner-j70e5pPL.js} +1 -1
- package/dist/client/assets/sso-DUhv1jLf.js +1 -0
- package/dist/client/assets/store-DxrJkSaq.js +1 -0
- package/dist/client/assets/store-registry-B_QywLhG.js +2 -0
- package/dist/client/assets/{switch-Bf2tQWC3.js → switch-BZi96ipJ.js} +1 -1
- package/dist/client/assets/{tab-id-Z7cJvW4r.js → tab-id-CjkvF5Bz.js} +1 -1
- package/dist/client/assets/{table-DU3PQ5SO.js → table-C3TjNbDC.js} +1 -1
- package/dist/client/assets/{tabs-C4QJjUKZ.js → tabs-sqzEAKlk.js} +1 -1
- package/dist/client/assets/{task-status-C_c_TK_P.js → task-status-CgfEdw1R.js} +1 -1
- package/dist/client/assets/{textarea-CRDofezZ.js → textarea-Bo_ElpPh.js} +1 -1
- package/dist/client/assets/{toggle-group-DNr9xMf4.js → toggle-group-jYWXBndg.js} +1 -1
- package/dist/client/assets/{toolbar-CC3BF_Yz.js → toolbar-BIjePcgn.js} +1 -1
- package/dist/client/assets/{tools-list-B9w2rXkH.js → tools-list-9Kj7tcM0.js} +1 -1
- package/dist/client/assets/{tooltip-DiB01_WS.js → tooltip-CC_mfaKY.js} +1 -1
- package/dist/client/assets/{types-CPIf7aKP.js → types-btWFnXlQ.js} +1 -1
- package/dist/client/assets/use-ai-providers-D2jZ5H5p.js +1 -0
- package/dist/client/assets/use-automations-B6ZTT5n1.js +1 -0
- package/dist/client/assets/{use-capability-B8Eh6LHX.js → use-capability-aJI8msnV.js} +1 -1
- package/dist/client/assets/{use-collections-D1vJ7KDI.js → use-collections-vRlJo8MD.js} +1 -1
- package/dist/client/assets/use-connection-MP_sOdrQ.js +1 -0
- package/dist/client/assets/{use-copy-DJBZ7llF.js → use-copy-BkzArvj8.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-tcowS75Z.js → use-create-virtual-mcp-C88u5wPn.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-E8kOZ2rg.js → use-debounced-autosave-C2TtzjZB.js} +1 -1
- package/dist/client/assets/use-delete-connection-D8ryW-Gn.js +1 -0
- package/dist/client/assets/use-file-configs-DGSgkVs8.js +1 -0
- package/dist/client/assets/{use-infinite-scroll-BO_ygUIj.js → use-infinite-scroll-BYw2UY-G.js} +1 -1
- package/dist/client/assets/{use-list-state-BBborJz5.js → use-list-state-CyVLGIWk.js} +1 -1
- package/dist/client/assets/use-mcp-client-Brxiewn2.js +10 -0
- package/dist/client/assets/{use-mcp-prompts-DTnBUNSR.js → use-mcp-prompts-CKvrvNSD.js} +1 -1
- package/dist/client/assets/{use-mcp-tools--TbVUEHw.js → use-mcp-tools-DFeiBffX.js} +1 -1
- package/dist/client/assets/{use-members-CP2TjOkz.js → use-members-D6H6sd8q.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-ChUqlb7q.js → use-navigate-to-agent-BRFls8tQ.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CVHBFmlC.js → use-org-auth-client-IT7XMFB9.js} +1 -1
- package/dist/client/assets/{use-org-sso-BQ_zhmY7.js → use-org-sso-BWWAvGBF.js} +1 -1
- package/dist/client/assets/{use-organization-roles-gDiU_5OY.js → use-organization-roles-S9xtJ6m2.js} +1 -1
- package/dist/client/assets/use-organization-settings-DjvlRnDe.js +1 -0
- package/dist/client/assets/use-registry-connections-BQfixYFV.js +1 -0
- package/dist/client/assets/use-secrets-DEcBibJG.js +1 -0
- package/dist/client/assets/{use-status-sounds-rIt45hGE.js → use-status-sounds-BJZxFfhN.js} +1 -1
- package/dist/client/assets/{use-view-mode-B9WldwT_.js → use-view-mode-DXlui5dm.js} +1 -1
- package/dist/client/assets/use-virtual-mcp-DDTG_-f6.js +1 -0
- package/dist/client/assets/useInfiniteQuery-BEouccKd.js +1 -0
- package/dist/client/assets/{useRouterState-jE6zoz2C.js → useRouterState-xsU2zFoM.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-wDDb-pw7.js +1 -0
- package/dist/client/assets/user-BZco0YX9.js +1 -0
- package/dist/client/assets/{view-mode-toggle-DJ96lxjY.js → view-mode-toggle-BN8FgH0K.js} +1 -1
- package/dist/client/assets/workflow-BxGrEeHN.js +1 -0
- package/dist/client/assets/workflow-detail-QkGhQ2hI.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +474 -474
- package/dist/server/migrate.js +59 -59
- package/dist/server/server.js +294 -294
- package/package.json +1 -1
- package/dist/client/assets/add-section-modal-D-zNEV3B.js +0 -1
- package/dist/client/assets/agents-list-Dj7ic2Dh.js +0 -1
- package/dist/client/assets/ai-providers-Bd8VAgPS.js +0 -1
- package/dist/client/assets/app-editor-4FrQqyyR.js +0 -1
- package/dist/client/assets/automation-runs-CM6KeAFb.js +0 -1
- package/dist/client/assets/automations-Dx01NKv5.js +0 -1
- package/dist/client/assets/brand-context-Bs-U2ENL.js +0 -1
- package/dist/client/assets/buckets-B-Q1NekA.js +0 -1
- package/dist/client/assets/collection-detail-DhDlm7aW.js +0 -1
- package/dist/client/assets/connect-desktop-dialog-CQieKA-J.js +0 -1
- package/dist/client/assets/connection-card-C9_ODHSl.js +0 -1
- package/dist/client/assets/connection-detail-CXKE542G.js +0 -1
- package/dist/client/assets/connections-Ce2UYd8O.js +0 -1
- package/dist/client/assets/constants-DnLx7qAL.js +0 -10
- package/dist/client/assets/domain-settings-Baa5UpRo.js +0 -1
- package/dist/client/assets/dynamic-plugin-layout-CDzYViwh.js +0 -1
- package/dist/client/assets/extract-connection-data-DA0TusY7.js +0 -1
- package/dist/client/assets/features-mw4p_55R.js +0 -1
- package/dist/client/assets/file-explorer-D01B6ew7.js +0 -2
- package/dist/client/assets/general-CBO1uvux.js +0 -1
- package/dist/client/assets/image-field--SXcw0ky.js +0 -1
- package/dist/client/assets/index-B7uL8QHF.js +0 -1
- package/dist/client/assets/index-CaRCU_dm.js +0 -1
- package/dist/client/assets/index-b10tcUiE.js +0 -1
- package/dist/client/assets/members-BHJUwlaz.js +0 -3
- package/dist/client/assets/org-plugin-layout-BdMC4Vqk.js +0 -1
- package/dist/client/assets/page-seo-sheet-BhbqCiMK.js +0 -1
- package/dist/client/assets/plugin-layout-BOOK9Xek.js +0 -1
- package/dist/client/assets/project-app-view-I-ihH2pa.js +0 -1
- package/dist/client/assets/record-editor-B3au-a1a.js +0 -1
- package/dist/client/assets/registry-DRgEl7oe.js +0 -2
- package/dist/client/assets/roles-GL8hDqyq.js +0 -1
- package/dist/client/assets/secrets-BDm9CTfF.js +0 -1
- package/dist/client/assets/seo-editor-CpDs-iFW.js +0 -1
- package/dist/client/assets/shell-layout-CR4v7ckW.js +0 -1
- package/dist/client/assets/shell-route-loading-DsuTmhLJ.js +0 -1
- package/dist/client/assets/sso-CC6JYBVF.js +0 -1
- package/dist/client/assets/store-BrHHoj0k.js +0 -1
- package/dist/client/assets/store-registry-S28KyWy2.js +0 -2
- package/dist/client/assets/use-ai-providers-BjPpexbU.js +0 -1
- package/dist/client/assets/use-automations-BBSTcglu.js +0 -1
- package/dist/client/assets/use-connection-DdLSeZAg.js +0 -1
- package/dist/client/assets/use-delete-connection-DuTlEus3.js +0 -1
- package/dist/client/assets/use-file-configs-D5IgpPGg.js +0 -1
- package/dist/client/assets/use-organization-settings-BUiVq2US.js +0 -1
- package/dist/client/assets/use-registry-connections-D60Z6_by.js +0 -1
- package/dist/client/assets/use-secrets-q3tZhEWP.js +0 -1
- package/dist/client/assets/use-virtual-mcp-Cf2-Lb_Q.js +0 -1
- package/dist/client/assets/useInfiniteQuery-B-1Io71h.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Do8GUcN_.js +0 -1
- package/dist/client/assets/user-B2olHrh6.js +0 -1
- package/dist/client/assets/workflow-KUgH1RpA.js +0 -1
- package/dist/client/assets/workflow-detail-Cy-Ds6Hs.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as C,j as r}from"./index-Bo3JNDr-.js";import{I as F}from"./input-pRrhjAXj.js";import{L as T}from"./label-D6vCqN0W.js";import{T as L}from"./textarea-CRDofezZ.js";import{I as A}from"./image-field--SXcw0ky.js";import{a7 as R,a8 as D,aa as J}from"./index-5X0_pyXB.js";import{u as K,s as S}from"./primitives-DcoU6ix7.js";import{S as M}from"./save-status-DN0Z06hy.js";import"./Tool01-CcCi4KvQ.js";import"./Trash01-BxTQxIdp.js";import"./Upload01-DX71wpXa.js";import"./AlertCircle-msrZcybq.js";import"./Check-Jqq0Xl3a.js";import"./Eye-DBlsn1hC.js";import"./DotsVertical-oDmXH8rL.js";import"./agent-icon-BKyPZSrU.js";import"./SwitchHorizontal01-lNhGk_hy.js";import"./RefreshCcw01-D05DrWxG.js";import"./XCircle-BB0lZzsa.js";import"./ArrowUpRight-Byrpe9WP.js";import"./ZapSquare-CNqz5kEa.js";import"./Users03-BHZni5n9.js";import"./CheckCircle-DSS55ngx.js";import"./ChevronDown-BSX6I-22.js";import"./ChevronLeft-WDS7c9Oj.js";import"./ChevronRight-rpdEZJUq.js";import"./ChevronUp-CZxdSjaK.js";import"./Container-Ds9oBR1K.js";import"./ZoomOut-DMw3YmC-.js";import"./Globe01-jNcghhQz.js";import"./FilterLines-Bl-ckLoL.js";import"./Star01-DlcdN00s.js";import"./Palette-DW9tW514.js";import"./HardDrive-DEvNg8yq.js";import"./Stars02-B_dlwxCr.js";import"./Key01-zn3UtDG9.js";import"./LayoutLeft-CqI5nVLL.js";import"./LinkExternal01-D0jjtfJs.js";import"./Monitor01-DthONXqr.js";import"./Sun-BqBChjnU.js";import"./Play-ERiPM4DA.js";import"./Plus-CFWiqWHN.js";import"./SearchMd-Dki_7scv.js";import"./Settings02-DaFOyqDZ.js";import"./Shield01-0VPaG49X.js";import"./Stars01-Bc7S8o1J.js";import"./User01-Nh_tiNpg.js";import"./Users01-BwVZocdt.js";import"./XClose-PQOZtIep.js";import"./X-ss5Xz1Et.js";import"./Zap-B2IJIN30.js";import"./dialog-C_ezrgSP.js";import"./dropdown-menu-Dh2MQHLA.js";import"./skeleton-BWZ-ns9j.js";import"./tabs-C4QJjUKZ.js";import"./use-file-configs-D5IgpPGg.js";import"./constants-DnLx7qAL.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./useInfiniteQuery-B-1Io71h.js";import"./infiniteQueryObserver-DDvMhEnM.js";import"./agent-capabilities-Dgku04Fj.js";import"./chat-context-D6r0VrdY.js";import"./tab-id-Z7cJvW4r.js";import"./decopilot-sse-pool-DldV1nWG.js";import"./create-sse-subscription-BS5983N4.js";import"./use-virtual-mcp-Cf2-Lb_Q.js";import"./use-collections-D1vJ7KDI.js";import"./use-ai-providers-BjPpexbU.js";import"./use-organization-settings-BUiVq2US.js";import"./pair-xjLo0yuO.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./scroll-area-CKvBXrNm.js";import"./select-DUXB6LHg.js";import"./tooltip-DiB01_WS.js";import"./use-copy-DJBZ7llF.js";import"./file-type-icon-aIKNVhBg.js";import"./content-blocks-o63cs2vh.js";import"./types-CPIf7aKP.js";import"./shell-layout-CR4v7ckW.js";import"./avatar-DO0XQWG0.js";import"./required-auth-layout-B_-dVCbU.js";import"./useRouterState-jE6zoz2C.js";import"./use-org-sso-BQ_zhmY7.js";import"./integration-icon-Sjhpbwvw.js";import"./use-navigate-to-agent-ChUqlb7q.js";import"./use-connection-DdLSeZAg.js";import"./use-mcp-prompts-DTnBUNSR.js";import"./form-CkEhbzy7.js";import"./spinner-DykCTvUx.js";import"./drawer-BXY4BcX7.js";import"./collection-search-B16Qll3H.js";import"./toggle-group-DNr9xMf4.js";import"./connect-desktop-dialog-CQieKA-J.js";import"./agent-icons-LDbRdVXw.js";import"./checkbox-lq9fHOVc.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Udn4AewC.js";import"./card-BBYtsRQu.js";import"./popover-DCPb5csG.js";import"./command-BFdTdJIk.js";import"./index-CB3uLwGL.js";import"./sortable.esm-IvhH0Iiq.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-C9_ODHSl.js";import"./use-registry-connections-D60Z6_by.js";import"./extract-connection-data-DA0TusY7.js";import"./generate-id-DaY0KVY7.js";import"./collections-CfqnSWiG.js";import"./collection-tabs-D2P_kf5B.js";import"./badge-URBzLEND.js";import"./connection-form-helpers-c057Q0nC.js";import"./use-infinite-scroll-BO_ygUIj.js";import"./useSuspenseInfiniteQuery-Do8GUcN_.js";import"./index-BzKJxpwN.js";import"./question-004-sINsf4GQ.js";import"./shell-route-loading-DsuTmhLJ.js";import"./sidebar-K8V064sc.js";import"./sheet-APxs0kGR.js";import"./toolbar-CC3BF_Yz.js";import"./use-create-virtual-mcp-tcowS75Z.js";import"./github-repo-picker-CdHH9nCY.js";import"./use-mcp-tools--TbVUEHw.js";import"./alert-dialog-CdMTKexh.js";import"./index-SuF349z9.js";import"./use-org-auth-client-CVHBFmlC.js";import"./hover-card-BCAj_Xd_.js";import"./task-status-C_c_TK_P.js";import"./use-status-sounds-rIt45hGE.js";import"./empty-state-2i4c7wH5.js";import"./resizable-Cigu4A4t.js";import"./use-capability-B8Eh6LHX.js";import"./header-tab-button-0jfaFdUX.js";import"./index-tKIVUSzL.js";import"./user-B2olHrh6.js";import"./tools-list-B9w2rXkH.js";import"./switch-Bf2tQWC3.js";import"./use-debounced-autosave-E8kOZ2rg.js";import"./index-C3nMRDmD.js";import"./search-input-BcAmdKUD.js";import"./use-secrets-q3tZhEWP.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./accordion-DUAiTQ1X.js";import"./view-mode-toggle-DJ96lxjY.js";import"./select-model-RkJ8YMBz.js";import"./use-automations-BBSTcglu.js";import"./monaco-editor-Bjbp__XB.js";import"./automation-runs-CM6KeAFb.js";import"./table-DU3PQ5SO.js";import"./use-members-CP2TjOkz.js";import"./automation-list-row-Dyfpfy2H.js";const $={authors:[{key:"name",label:"Name",widget:"text"},{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"}],categories:[{key:"name",label:"Name",widget:"text"},{key:"slug",label:"Slug",widget:"text",placeholder:"my-category"}]},q={authors:"Author",categories:"Category"};function Tr(P){const t=C.c(34),{orgSlug:v,virtualMcpId:j,branch:w,kind:p,blockKey:y,block:f}=P;let u;t[0]!==w||t[1]!==v||t[2]!==j?(u={orgSlug:v,virtualMcpId:j,branch:w},t[0]=w,t[1]=v,t[2]=j,t[3]=u):u=t[3];const m=R(u);let d;t[4]!==f||t[5]!==p?(d=D(f,p),t[4]=f,t[5]=p,t[6]=d):d=t[6];const B=d;let h;t[7]!==y||t[8]!==p||t[9]!==m?(h=e=>{m.mutate({blockKey:y,data:J(y,p,e)})},t[7]=y,t[8]=p,t[9]=m,t[10]=h):h=t[10];const[i,E]=K(B,h);let k;t[11]!==i||t[12]!==E?(k=(e,o)=>E({...i,[e]:o}),t[11]=i,t[12]=E,t[13]=k):k=t[13];const a=k,N=q[p];let s;t[14]!==N?(s=r.jsx("span",{className:"text-sm font-medium",children:N}),t[14]=N,t[15]=s):s=t[15];let l;t[16]!==m.isError||t[17]!==m.isPending?(l=r.jsx(M,{isPending:m.isPending,isError:m.isError}),t[16]=m.isError,t[17]=m.isPending,t[18]=l):l=t[18];let n;t[19]!==s||t[20]!==l?(n=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[s,l]}),t[19]=s,t[20]=l,t[21]=n):n=t[21];const I=$[p];let c;if(t[22]!==i||t[23]!==a||t[24]!==I){let e;t[26]!==i||t[27]!==a?(e=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(A,{schema:{type:"string",format:"image-uri",title:o.label},value:i[o.key],onChange:x=>a(o.key,x),path:o.key,label:o.label}):r.jsxs(r.Fragment,{children:[r.jsx(T,{htmlFor:o.key,children:o.label}),o.widget==="textarea"?r.jsx(L,{id:o.key,value:S(i[o.key]),onChange:x=>a(o.key,x.target.value),rows:3}):r.jsx(F,{id:o.key,value:S(i[o.key]),placeholder:o.placeholder,onChange:x=>a(o.key,x.target.value),className:"h-10"})]})},o.key),t[26]=i,t[27]=a,t[28]=e):e=t[28],c=I.map(e),t[22]=i,t[23]=a,t[24]=I,t[25]=c}else c=t[25];let g;t[29]!==c?(g=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:c})}),t[29]=c,t[30]=g):g=t[30];let b;return t[31]!==g||t[32]!==n?(b=r.jsxs("div",{className:"flex h-full flex-col",children:[n,g]}),t[31]=g,t[32]=n,t[33]=b):b=t[33],b}export{Tr as RecordEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CO50gP_1.js","assets/index-Bo3JNDr-.js","assets/index-BgFgIfs8.css","assets/XCircle-BB0lZzsa.js","assets/CheckCircle-DSS55ngx.js","assets/Container-Ds9oBR1K.js","assets/Settings02-DaFOyqDZ.js","assets/constants-DnLx7qAL.js","assets/useInfiniteQuery-B-1Io71h.js","assets/infiniteQueryObserver-DDvMhEnM.js","assets/badge-URBzLEND.js","assets/input-pRrhjAXj.js","assets/dropdown-menu-Dh2MQHLA.js","assets/Check-Jqq0Xl3a.js","assets/ChevronRight-rpdEZJUq.js","assets/DotsVertical-oDmXH8rL.js","assets/table-DU3PQ5SO.js","assets/toggle-group-DNr9xMf4.js","assets/use-view-mode-B9WldwT_.js","assets/tooltip-DiB01_WS.js","assets/FilterLines-Bl-ckLoL.js","assets/Globe01-jNcghhQz.js","assets/SearchMd-Dki_7scv.js","assets/dialog-C_ezrgSP.js","assets/X-ss5Xz1Et.js","assets/AlertCircle-msrZcybq.js","assets/Upload01-DX71wpXa.js","assets/alert-dialog-CdMTKexh.js","assets/card-BBYtsRQu.js","assets/Trash01-BxTQxIdp.js","assets/label-D6vCqN0W.js","assets/select-DUXB6LHg.js","assets/ChevronDown-BSX6I-22.js","assets/ChevronUp-CZxdSjaK.js","assets/switch-Bf2tQWC3.js","assets/textarea-CRDofezZ.js","assets/RefreshCcw01-D05DrWxG.js","assets/checkbox-lq9fHOVc.js","assets/Eye-DBlsn1hC.js","assets/LinkExternal01-D0jjtfJs.js","assets/use-copy-DJBZ7llF.js","assets/Key01-zn3UtDG9.js","assets/Plus-CFWiqWHN.js","assets/Play-ERiPM4DA.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{e as i,j as e,r as s,l as a,_ as o}from"./index-Bo3JNDr-.js";import{R as l}from"./require-capability-CrKIqEWt.js";import"./use-capability-B8Eh6LHX.js";import"./access-gate-Dy05Kfsj.js";import"./capability-load-error-DRUhmmMs.js";const m=s.lazy(()=>o(()=>import("./registry-layout-CO50gP_1.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])));function f(){const r=i.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(l,{capability:"registry:manage",area:"the registry",children:e.jsx(s.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(m,{})})}),r[0]=t):t=r[0],t}export{f as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as z,e as H,c as K,j as s,q as Se,K as re,bb as dt,n as Re,l as fe,B as ne,T as Pe,aH as Ie,W as se,aJ as De,aK as ke,G as $e,H as mt,I as ut,a as Fe,o as he,t as Oe,F as Ke,v as ft,E as ht,f as gt,d as xt}from"./index-Bo3JNDr-.js";import{u as pt}from"./use-organization-roles-gDiU_5OY.js";import{u as je}from"./use-org-auth-client-CVHBFmlC.js";import{B as ge}from"./badge-URBzLEND.js";import{A as Qe,a as He,b as qe,c as Ze,d as Xe,f as Je,e as We,g as et}from"./alert-dialog-CdMTKexh.js";import{D as bt,a as Et,b as Tt,c as _t}from"./dropdown-menu-Dh2MQHLA.js";import{i as It}from"./DotsVertical-oDmXH8rL.js";import{s as Ae}from"./Plus-CFWiqWHN.js";import{s as St}from"./Trash01-BxTQxIdp.js";import{C as Nt}from"./collection-table-wrapper-BQ-724WQ.js";import{P as te}from"./index-C3nMRDmD.js";import{E as Ge}from"./empty-state-2i4c7wH5.js";import{S as ve}from"./search-input-BcAmdKUD.js";import{P as tt,D as st}from"./ai-providers-logos-DD3qZ33J.js";import{I as ye}from"./integration-icon-Sjhpbwvw.js";import{u as Ct}from"./use-infinite-scroll-BO_ygUIj.js";import{C as we}from"./checkbox-lq9fHOVc.js";import{i as At}from"./RefreshCcw01-D05DrWxG.js";import{u as Rt}from"./useSuspenseInfiniteQuery-Do8GUcN_.js";import{u as Ot,S as jt}from"./constants-DnLx7qAL.js";import{C as vt}from"./collection-search-B16Qll3H.js";import{u as nt}from"./use-members-CP2TjOkz.js";import{u as yt}from"./use-connection-DdLSeZAg.js";import{u as wt,d as Lt}from"./use-ai-providers-BjPpexbU.js";import{A as lt}from"./avatar-DO0XQWG0.js";import{S as xe}from"./switch-Bf2tQWC3.js";import{c as pe,b as be,T as Ee,a as Te}from"./tooltip-DiB01_WS.js";import{S as Ue,a as Be,b as Ve}from"./settings-section-Udn4AewC.js";import{t as Mt}from"./ChevronDown-BSX6I-22.js";import{i as Pt}from"./ChevronRight-rpdEZJUq.js";import{i as ze}from"./X-ss5Xz1Et.js";import{a as Dt}from"./use-capability-B8Eh6LHX.js";import{A as kt}from"./access-gate-Dy05Kfsj.js";import"./Check-Jqq0Xl3a.js";import"./table-DU3PQ5SO.js";import"./SwitchHorizontal01-lNhGk_hy.js";import"./sidebar-K8V064sc.js";import"./LayoutLeft-CqI5nVLL.js";import"./sheet-APxs0kGR.js";import"./SearchMd-Dki_7scv.js";import"./Container-Ds9oBR1K.js";import"./agent-icon-BKyPZSrU.js";import"./AlertCircle-msrZcybq.js";import"./Tool01-CcCi4KvQ.js";import"./XCircle-BB0lZzsa.js";import"./ArrowUpRight-Byrpe9WP.js";import"./ZapSquare-CNqz5kEa.js";import"./Users03-BHZni5n9.js";import"./CheckCircle-DSS55ngx.js";import"./ChevronLeft-WDS7c9Oj.js";import"./ChevronUp-CZxdSjaK.js";import"./Eye-DBlsn1hC.js";import"./ZoomOut-DMw3YmC-.js";import"./Globe01-jNcghhQz.js";import"./FilterLines-Bl-ckLoL.js";import"./Star01-DlcdN00s.js";import"./Palette-DW9tW514.js";import"./HardDrive-DEvNg8yq.js";import"./Stars02-B_dlwxCr.js";import"./Key01-zn3UtDG9.js";import"./LinkExternal01-D0jjtfJs.js";import"./Monitor01-DthONXqr.js";import"./Sun-BqBChjnU.js";import"./Play-ERiPM4DA.js";import"./Settings02-DaFOyqDZ.js";import"./Shield01-0VPaG49X.js";import"./Stars01-Bc7S8o1J.js";import"./Upload01-DX71wpXa.js";import"./User01-Nh_tiNpg.js";import"./Users01-BwVZocdt.js";import"./XClose-PQOZtIep.js";import"./Zap-B2IJIN30.js";import"./infiniteQueryObserver-DDvMhEnM.js";import"./use-collections-D1vJ7KDI.js";import"./card-BBYtsRQu.js";import"./capability-load-error-DRUhmmMs.js";const Le="basic-usage",Me=[{id:Le,label:"Basic Usage",description:"Tools all org members can access by default",section:"Basic Usage",tools:["COLLECTION_CONNECTIONS_LIST","COLLECTION_CONNECTIONS_GET","CONNECTION_TEST","COLLECTION_VIRTUAL_MCP_LIST","COLLECTION_VIRTUAL_MCP_GET","VIRTUAL_MCP_PLUGIN_CONFIG_GET","VIRTUAL_MCP_LAST_USED_LIST","AUTOMATION_GET","AUTOMATION_LIST","AUTOMATION_RUN_STATS","AI_PROVIDERS_LIST","AI_PROVIDERS_LIST_MODELS","AI_PROVIDERS_ACTIVE","AI_PROVIDER_KEY_LIST","AI_PROVIDER_CREDITS","AI_PROVIDER_TOPUP_URL","LIST_OBJECTS","GET_OBJECT_METADATA","GET_PRESIGNED_URL","PUT_PRESIGNED_URL","FILE_OBJECTS_LIST","SANDBOX_START","SANDBOX_DELETE","GLOBAL_SEARCH","ORGANIZATION_SETTINGS_GET","USER_GET","LINK_CURRENT_GET","LINK_DISCONNECT","BRAND_CONTEXT_LIST","COLLECTION_THREADS_CREATE","COLLECTION_THREADS_LIST","COLLECTION_THREADS_GET","COLLECTION_THREADS_UPDATE","COLLECTION_THREADS_DELETE","COLLECTION_THREAD_MESSAGES_LIST"]},{id:"org:manage",label:"Manage organization",description:"Edit organization settings, brand context, and domain configuration",section:"Organization",tools:["ORGANIZATION_GET","ORGANIZATION_LIST","ORGANIZATION_UPDATE","ORGANIZATION_SETTINGS_GET","ORGANIZATION_SETTINGS_UPDATE","BRAND_CONTEXT_LIST","BRAND_CONTEXT_GET","BRAND_CONTEXT_CREATE","BRAND_CONTEXT_UPDATE","BRAND_CONTEXT_DELETE","BRAND_CONTEXT_EXTRACT","BRAND_GET","BRAND_LIST","ORGANIZATION_DOMAIN_GET","ORGANIZATION_DOMAIN_SET","ORGANIZATION_DOMAIN_UPDATE","ORGANIZATION_DOMAIN_CLEAR"]},{id:"members:manage",label:"Manage members",description:"Invite members, remove them, and change their roles",section:"Organization",tools:["ORGANIZATION_MEMBER_LIST","ORGANIZATION_MEMBER_ADD","ORGANIZATION_MEMBER_REMOVE","ORGANIZATION_MEMBER_UPDATE_ROLE"],dangerous:!0},{id:"connections:manage",label:"Manage connections",description:"Create, update, and delete connections",section:"Connections & Agents",tools:["COLLECTION_CONNECTIONS_CREATE","COLLECTION_CONNECTIONS_UPDATE","COLLECTION_CONNECTIONS_DELETE"],dangerous:!0},{id:"agents:manage",label:"Manage agents",description:"Create, configure, and delete agents",section:"Connections & Agents",tools:["COLLECTION_VIRTUAL_MCP_CREATE","COLLECTION_VIRTUAL_MCP_UPDATE","COLLECTION_VIRTUAL_MCP_DELETE","VIRTUAL_MCP_PLUGIN_CONFIG_UPDATE","VIRTUAL_MCP_PINNED_VIEWS_UPDATE"],dangerous:!0},{id:"automations:manage",label:"Manage automations",description:"Create, update, run, and delete automations",section:"Automations",tools:["AUTOMATION_CREATE","AUTOMATION_UPDATE","AUTOMATION_DELETE","AUTOMATION_TRIGGER_ADD","AUTOMATION_TRIGGER_REMOVE","AUTOMATION_TRIGGER_ROTATE_TOKEN","AUTOMATION_RUN"],dangerous:!0},{id:"monitoring:view",label:"View monitoring",description:"Access logs and usage statistics",section:"Monitoring",tools:["MONITORING_LOG_GET","MONITORING_LOGS_LIST","MONITORING_STATS","MONITORING_THREAD_USAGE"]},{id:"secrets:manage",label:"Manage secrets",description:"Create and list secrets stored in the credential vault",section:"Organization",tools:["SECRET_CREATE","SECRET_LIST"]},{id:"file-configs:manage",label:"Manage file configs",description:"Create, list, update and delete S3 bucket configurations",section:"Organization",tools:["FILE_CONFIG_CREATE","FILE_CONFIG_LIST","FILE_CONFIG_UPDATE","FILE_CONFIG_DELETE","FILE_OBJECTS_LIST"]},{id:"ai-providers:manage",label:"Manage AI providers",description:"Add or remove API keys and provision provider credentials",section:"AI Providers",tools:["AI_PROVIDER_KEY_CREATE","AI_PROVIDER_KEY_LIST","AI_PROVIDER_KEY_DELETE","AI_PROVIDER_KEY_UPDATE","AI_PROVIDER_KEY_PREVIEW","AI_PROVIDER_OAUTH_URL","AI_PROVIDER_OAUTH_EXCHANGE","AI_PROVIDER_PROVISION_KEY","AI_PROVIDER_TOPUP_URL","AI_PROVIDER_CREDITS"]},{id:"tags:manage",label:"Manage tags",description:"Create, assign, and delete organization tags",section:"Organization",tools:["TAGS_LIST","TAGS_CREATE","TAGS_DELETE","MEMBER_TAGS_GET","MEMBER_TAGS_SET"]},{id:"registry:manage",label:"Manage registry",description:"Browse, publish, and manage items in the registry",section:"Store & Registry",tools:["COLLECTION_REGISTRY_APP_LIST","COLLECTION_REGISTRY_APP_GET","COLLECTION_REGISTRY_APP_VERSIONS","COLLECTION_REGISTRY_APP_FILTERS","REGISTRY_ITEM_LIST","REGISTRY_ITEM_SEARCH","REGISTRY_ITEM_GET","REGISTRY_ITEM_VERSIONS","REGISTRY_ITEM_FILTERS","REGISTRY_DISCOVER_TOOLS","REGISTRY_ITEM_CREATE","REGISTRY_ITEM_BULK_CREATE","REGISTRY_ITEM_UPDATE","REGISTRY_ITEM_DELETE","REGISTRY_AI_GENERATE","REGISTRY_PUBLISH_REQUEST_LIST","REGISTRY_PUBLISH_REQUEST_REVIEW","REGISTRY_PUBLISH_REQUEST_COUNT","REGISTRY_PUBLISH_REQUEST_DELETE","REGISTRY_PUBLISH_API_KEY_GENERATE","REGISTRY_PUBLISH_API_KEY_LIST","REGISTRY_PUBLISH_API_KEY_REVOKE"],dangerous:!0},{id:"registry:monitor",label:"Monitor registry health",description:"Run health checks on registry connections and view results",section:"Store & Registry",tools:["REGISTRY_MONITOR_RUN_START","REGISTRY_MONITOR_RUN_LIST","REGISTRY_MONITOR_RUN_GET","REGISTRY_MONITOR_RUN_CANCEL","REGISTRY_MONITOR_RESULT_LIST","REGISTRY_MONITOR_CONNECTION_LIST","REGISTRY_MONITOR_CONNECTION_SYNC","REGISTRY_MONITOR_CONNECTION_UPDATE_AUTH","REGISTRY_MONITOR_SCHEDULE_SET","REGISTRY_MONITOR_SCHEDULE_CANCEL"]},{id:"api-keys:manage",label:"Manage API keys",description:"Create, update, and revoke API keys",section:"Developer",tools:["API_KEY_CREATE","API_KEY_LIST","API_KEY_UPDATE","API_KEY_DELETE"]},{id:"event-bus:use",label:"Use event bus",description:"Publish events and manage subscriptions",section:"Developer",tools:["EVENT_PUBLISH","EVENT_SUBSCRIBE","EVENT_UNSUBSCRIBE","EVENT_CANCEL","EVENT_ACK","EVENT_SUBSCRIPTION_LIST","EVENT_SYNC_SUBSCRIPTIONS"]},{id:"storage:delete",label:"Delete from storage",description:"Permanently delete files from object storage",section:"Developer",tools:["DELETE_OBJECT","DELETE_OBJECTS"],dangerous:!0},{id:"connections:sql",label:"Run SQL queries",description:"Execute raw SQL against connected databases",section:"Developer",tools:["DATABASES_RUN_SQL"],dangerous:!0}];[...Me.find(t=>t.id===Le)?.tools??[]];const Gt=["agents:manage","connections:manage"];new Set(Me.filter(t=>Gt.includes(t.id)).flatMap(t=>t.tools));function Ut(){const t=new Map;for(const e of Me){if(e.id===Le)continue;const n=t.get(e.section)??[];n.push(e),t.set(e.section,n)}return Array.from(t.entries()).map(([e,n])=>({section:e,capabilities:n}))}function Bt(t,e,n){return n?!0:t.tools.every(l=>e.includes(l))}function Vt(t,e,n){if(n){const o=new Set(e);for(const r of t.tools)o.add(r);return Array.from(o)}const l=new Set(e);for(const o of t.tools)l.delete(o);return Array.from(l)}const zt=z.memo(function(e){const n=H.c(21),{connection:l,isSelected:o,hasToolsEnabled:r,activeToolsCount:c,totalToolsCount:f,onSelect:d,onToggle:h}=e,g=o?"bg-accent/50":"hover:bg-muted/50";let a;n[0]!==g?(a=K("flex items-center gap-3 p-2 rounded-lg transition-colors will-change-auto",g),n[0]=g,n[1]=a):a=n[1];let x;n[2]!==l.icon||n[3]!==l.title?(x=s.jsx(ye,{icon:l.icon,name:l.title,size:"xs"}),n[2]=l.icon,n[3]=l.title,n[4]=x):x=n[4];let i;n[5]!==l.title?(i=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:l.title})}),n[5]=l.title,n[6]=i):i=n[6];let m;n[7]!==d||n[8]!==x||n[9]!==i?(m=s.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0 cursor-pointer",onClick:d,children:[x,i]}),n[7]=d,n[8]=x,n[9]=i,n[10]=m):m=n[10];let _;n[11]!==c||n[12]!==l.tools||n[13]!==r||n[14]!==h||n[15]!==f?(_=l.tools&&l.tools.length>0&&s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:[c,"/",f]}),s.jsx(we,{checked:r,onCheckedChange:h,onClick:Ft})]}),n[11]=c,n[12]=l.tools,n[13]=r,n[14]=h,n[15]=f,n[16]=_):_=n[16];let E;return n[17]!==a||n[18]!==m||n[19]!==_?(E=s.jsxs("div",{className:a,children:[m,_]}),n[17]=a,n[18]=m,n[19]=_,n[20]=E):E=n[20],E}),Yt=z.memo(function(e){const n=H.c(18),{connectionId:l,tool:o,isSelected:r,onToggle:c}=e,f=`tool-${l}-${o.name}`,d=r?"text-foreground":"text-muted-foreground";let h;n[0]!==d?(h=K("text-sm font-medium",d),n[0]=d,n[1]=h):h=n[1];let g;n[2]!==h||n[3]!==o.name?(g=s.jsx("div",{className:"flex items-center gap-2 mb-1",children:s.jsx("span",{className:h,children:o.name})}),n[2]=h,n[3]=o.name,n[4]=g):g=n[4];let a;n[5]!==o.description?(a=o.description&&s.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:o.description}),n[5]=o.description,n[6]=a):a=n[6];let x;n[7]!==g||n[8]!==a?(x=s.jsxs("div",{className:"flex-1 min-w-0",children:[g,a]}),n[7]=g,n[8]=a,n[9]=x):x=n[9];const i=`tool-${l}-${o.name}`;let m;n[10]!==r||n[11]!==c||n[12]!==i?(m=s.jsx("div",{className:"flex items-center shrink-0",children:s.jsx(we,{id:i,checked:r,onCheckedChange:c,onClick:Kt})}),n[10]=r,n[11]=c,n[12]=i,n[13]=m):m=n[13];let _;return n[14]!==f||n[15]!==x||n[16]!==m?(_=s.jsxs("label",{className:"flex items-center gap-3 p-3 rounded-lg hover:bg-muted/50 cursor-pointer group will-change-auto",htmlFor:f,children:[x,m]}),n[14]=f,n[15]=x,n[16]=m,n[17]=_):_=n[17],_});function $t({toolSet:t,onToolSetChange:e,excludeVirtualMcpId:n,searchQuery:l}){const[o,r]=z.useState(""),c=l!==void 0?l:o,f=z.useDeferredValue(c),[d,h]=z.useState("all"),[g,a]=z.useState(!1),x=z.useRef(new Set(Object.keys(t))),{org:i}=Se(),m=Ot({connectionId:jt,orgId:i.id,orgSlug:i.slug}),_=100,E=f.trim(),T=E?{operator:"or",conditions:[{field:["title"],operator:"contains",value:E},{field:["description"],operator:"contains",value:E}]}:void 0,N=!!n,C={...T&&{where:T},orderBy:[{field:["updated_at"],direction:"asc"}],limit:_,offset:0,...N&&{include_virtual:!0}},v=JSON.stringify(C),{data:I,fetchNextPage:R,hasNextPage:p,isFetchingNextPage:O}=Rt({queryKey:re.collectionListInfinite(m,i.id,"","CONNECTIONS",v),queryFn:async({pageParam:b=0})=>(await m.callTool({name:"COLLECTION_CONNECTIONS_LIST",arguments:{...T&&{where:T},orderBy:[{field:["updated_at"],direction:"asc"}],limit:_,offset:b,...N&&{include_virtual:!0}}})).structuredContent,initialPageParam:0,getNextPageParam:(b,D)=>{if(b?.hasMore)return D.reduce((Q,q)=>Q+(q?.items?.length??0),0)},staleTime:3e4}),S=I?.pages.flatMap(b=>b?.items??[])??[],j=Ct(R,p??!1,O),u=n?S.filter(b=>b.connection_type!=="VIRTUAL"?!0:dt(b.connection_url)!==n):S,w=x.current,A=[...w.values()].map(b=>u.find(D=>D.id===b)).filter(b=>b!==void 0),k=u.filter(b=>!w.has(b.id)),G=[...A,...k],U=b=>{const D=t[b];return D!==void 0&&D.length>0},B=G.filter(b=>{if(d==="all")return!0;const D=U(b.id);return d==="selected"?D:d==="unselected"?!D:!0}),[L,Y]=z.useState(G[0]?.id??null),y=L?G.find(b=>b.id===L)??null:null,{data:M,isFetching:$}=Re({queryKey:re.collectionItem(m,i.id,"","CONNECTIONS",L??""),queryFn:async()=>L?(await m.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:L}})).structuredContent?.item??null:null,enabled:!!L,staleTime:3e4}),F=M?.tools??[],X=(b,D)=>t[b]?.includes(D)??!1,J=(b,D)=>{const Q=t[b]??[],q=Q.includes(D),W={...t};if(q){const Z=Q.filter(ee=>ee!==D);Z.length===0?delete W[b]:W[b]=Z}else W[b]=[...Q,D];e(W)},le=b=>{const D=b===L?F:[];if(!D.length)return;const Q=t[b]??[],q=D.map(ee=>ee.name),W=Q.length>0&&q.every(ee=>Q.includes(ee)),Z={...t};W?delete Z[b]:(Z[b]=q,Y(b)),e(Z)},oe=b=>{Y(b),a(!0)},ie=()=>{a(!1)};return s.jsxs("div",{className:"flex h-full",children:[s.jsxs("div",{className:K("w-full md:w-80 border-r border-border flex flex-col",g&&"hidden md:flex"),children:[l===void 0&&s.jsx(vt,{value:o,onChange:r,placeholder:"Search MCP Servers..."}),s.jsxs("div",{className:"flex gap-1 p-2 border-b border-border",children:[s.jsx("button",{onClick:()=>h("all"),className:K("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",d==="all"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"All"}),s.jsx("button",{onClick:()=>h("selected"),className:K("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",d==="selected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Selected"}),s.jsx("button",{onClick:()=>h("unselected"),className:K("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",d==="unselected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Unselected"})]}),s.jsx("div",{className:"flex-1 overflow-auto",children:B.length===0?s.jsx("div",{className:"p-4 text-sm text-muted-foreground text-center",children:c?"No connections found":d==="selected"?"No servers selected":d==="unselected"?"No unselected servers":"No connections available"}):s.jsxs("div",{className:"p-2 space-y-1",children:[B.map(b=>{const D=L===b.id,Q=D?F.length:0,q=t[b.id]?.length??0;return s.jsx(zt,{connection:{...b,tools:D?F:b.tools},isSelected:D,hasToolsEnabled:U(b.id),activeToolsCount:q,totalToolsCount:Q,onSelect:()=>oe(b.id),onToggle:()=>le(b.id)},b.id)}),s.jsx("div",{ref:j,className:"h-4"}),O&&s.jsx("div",{className:"flex justify-center py-3",children:s.jsx(fe,{size:18,className:"animate-spin text-muted-foreground"})})]})})]}),s.jsx("div",{className:K("flex-1 flex-col",g?"flex":"hidden md:flex"),children:y?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"md:hidden border-b border-border p-4 flex items-center gap-3",children:[s.jsx(ne,{variant:"ghost",size:"sm",onClick:ie,className:"h-8 w-8 p-0 shrink-0",children:s.jsx(At,{size:20})}),s.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[s.jsx(ye,{icon:y.icon,name:y.title,size:"sm"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:y.title}),y.description&&s.jsx("p",{className:"text-sm text-muted-foreground truncate",children:y.description})]})]})]}),s.jsx("div",{className:"flex-1 overflow-auto p-4",children:$?s.jsx("div",{className:"flex justify-center py-8",children:s.jsx(fe,{size:18,className:"animate-spin text-muted-foreground"})}):F.length===0?s.jsx("div",{className:"text-sm text-muted-foreground text-center py-8",children:"This connection has no tools available"}):s.jsx("div",{className:"space-y-2",children:F.map(b=>s.jsx(Yt,{connectionId:y.id,tool:b,isSelected:X(y.id,b.name),onToggle:()=>J(y.id,b.name)},b.name))})})]}):s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx("div",{className:"text-sm text-muted-foreground text-center",children:"Select a connection to view its tools"})})})]})}function Ft(t){return t.stopPropagation()}function Kt(t){return t.stopPropagation()}const Ne=["bg-red-500","bg-orange-500","bg-amber-500","bg-yellow-500","bg-lime-500","bg-green-500","bg-emerald-500","bg-teal-500","bg-cyan-500","bg-sky-500","bg-blue-500","bg-indigo-500","bg-violet-500","bg-purple-500","bg-fuchsia-500","bg-pink-500","bg-rose-500"],Qt={owner:"bg-red-500",admin:"bg-blue-500",user:"bg-green-500"};function Ht(t){if(!t)return"bg-neutral-400";let e=0;for(let l=0;l<t.length;l++){const o=t.charCodeAt(l);e=(e<<5)-e+o,e=e&e}const n=Math.abs(e)%Ne.length;return Ne[n]??Ne[0]}function qt(t,e){return Qt[t]??"bg-neutral-400"}const Zt=Pe({role:Pe({id:se().optional(),slug:se().optional(),label:se()}),allowAllStaticPermissions:ke(),staticPermissions:Ie(se()),toolSet:De(se(),Ie(se())),allowAllModels:ke(),modelSet:De(se(),Ie(se())),memberIds:Ie(se())});function ot(t){return t?t.split(" ").map(e=>e[0]).join("").toUpperCase().slice(0,2):"?"}function Ye(t,e,n){const l=s.jsx(xe,{checked:t,disabled:e,onCheckedChange:n});return e?s.jsx(pe,{children:s.jsxs(be,{children:[s.jsx(Ee,{asChild:!0,children:s.jsx("div",{children:l})}),s.jsx(Te,{children:s.jsx("p",{children:"Built-in role permissions cannot be changed"})})]})}):l}function Xt(t){const e=H.c(28),{allowAllStaticPermissions:n,staticPermissions:l,onAllowAllChange:o,onPermissionsChange:r,readOnly:c,searchQuery:f}=t,d=c===void 0?!1:c;let h;e[0]!==f?(h=f.trim().toLowerCase(),e[0]=f,e[1]=h):h=e[1];const g=z.useDeferredValue(h);let a;if(e[2]!==n||e[3]!==g||e[4]!==o||e[5]!==r||e[6]!==d||e[7]!==f||e[8]!==l){const x=Ut(),i=(v,I)=>{if(!d){if(n&&I){const R=x.flatMap(es).flatMap(Wt);o(!1),r(R.filter(p=>!v.tools.includes(p)));return}n||r(Vt(v,l,!I))}};let m;e[10]!==g?(m=v=>{const{section:I,capabilities:R}=v;return{section:I,capabilities:R.filter(p=>!g||p.label.toLowerCase().includes(g)||p.description.toLowerCase().includes(g))}},e[10]=g,e[11]=m):m=e[11];const _=x.map(m).filter(Jt);let E;e[12]!==n||e[13]!==o||e[14]!==r?(E=()=>{o(!n),r([])},e[12]=n,e[13]=o,e[14]=r,e[15]=E):E=e[15];let T;e[16]!==n||e[17]!==d||e[18]!==E?(T=Ye(n,d,E),e[16]=n,e[17]=d,e[18]=E,e[19]=T):T=e[19];let N;e[20]!==n||e[21]!==o||e[22]!==r||e[23]!==d?(N=d?void 0:()=>{o(!n),r([])},e[20]=n,e[21]=o,e[22]=r,e[23]=d,e[24]=N):N=e[24];let C;e[25]!==T||e[26]!==N?(C=s.jsx(Ue,{title:"General",children:s.jsx(Be,{children:s.jsx(Ve,{title:"All organization permissions",description:"Grant full access to all features below",action:T,onClick:N})})}),e[25]=T,e[26]=N,e[27]=C):C=e[27],a=s.jsx("div",{children:s.jsxs("div",{className:"flex flex-col gap-10 py-4",children:[C,_.length===0&&g?s.jsxs("p",{className:"text-sm text-muted-foreground py-4",children:["No permissions match “",f,"”"]}):_.map(v=>{const{section:I,capabilities:R}=v;return s.jsx(Ue,{title:I,children:s.jsx(Be,{children:R.map(p=>{const O=Bt(p,l,n);return s.jsx(Ve,{title:s.jsxs("span",{className:"flex items-center gap-1.5",children:[p.label,p.dangerous&&s.jsx(ft,{size:12,className:"text-amber-500 shrink-0"})]}),description:p.description,action:Ye(O,d,()=>i(p,O)),onClick:d?void 0:()=>i(p,O)},p.id)})})},I)})]})}),e[2]=n,e[3]=g,e[4]=o,e[5]=r,e[6]=d,e[7]=f,e[8]=l,e[9]=a}else a=e[9];return a}function Jt(t){return t.capabilities.length>0}function Wt(t){return t.tools}function es(t){return t.capabilities}const it={anthropic:"Anthropic",openrouter:"OpenRouter"},ts={openai:"OpenAI",anthropic:"Anthropic",google:"Google","meta-llama":"Meta",mistralai:"Mistral","x-ai":"xAI",deepseek:"DeepSeek",qwen:"Qwen",moonshotai:"MoonshotAI",nvidia:"NVIDIA",perplexity:"Perplexity",cohere:"Cohere",amazon:"Amazon",microsoft:"Microsoft","z-ai":"Z.ai","ibm-granite":"IBM Granite",alibaba:"Alibaba",baidu:"Baidu",bytedance:"ByteDance",tencent:"Tencent",minimax:"MiniMax",nousresearch:"Nous Research",allenai:"Allen AI",inception:"Inception"};function ss(t,e){const n=t.indexOf("/"),l=n>0?t.slice(0,n):e;return l.startsWith("~")?l.slice(1):l}function ns(t){return ts[t]??it[t]??t}function ls(t){const e=t.indexOf(": ");return e>0&&e<32?t.slice(e+2):t}const rt=30;function os(t){const e=H.c(44),{connectionId:n,subProviderId:l,subProviderName:o,groupLogo:r,models:c,allConnectionModelIds:f,selectedModels:d,allowAllModels:h,allConnectionModelsSelected:g,onToggleModel:a,onExitAllowAll:x,readOnly:i,defaultExpanded:m}=t,[_,E]=z.useState(m),T=m||_,N=E,[C,v]=z.useState(rt);let I;e[0]!==g||e[1]!==h||e[2]!==d?(I=j=>h||g||d.includes("*")||d.includes(j),e[0]=g,e[1]=h,e[2]=d,e[3]=I):I=e[3];const R=I;let p;if(e[4]!==R||e[5]!==c){let j;e[7]!==R?(j=u=>R(u.id),e[7]=R,e[8]=j):j=e[8],p=c.filter(j),e[4]=R,e[5]=c,e[6]=p}else p=e[6];const O=p.length;let S;if(e[9]!==f||e[10]!==h||e[11]!==n||e[12]!==O||e[13]!==T||e[14]!==r||e[15]!==R||e[16]!==c||e[17]!==x||e[18]!==a||e[19]!==i||e[20]!==l||e[21]!==o||e[22]!==C){const j=c.slice(0,C),u=c.length>C;let w;e[24]===Symbol.for("react.memo_cache_sentinel")?(w=()=>N(cs),e[24]=w):w=e[24];const A=r??tt[l]??st;let k;e[25]!==o||e[26]!==A?(k=s.jsx(ye,{icon:A,name:o,size:"sm"}),e[25]=o,e[26]=A,e[27]=k):k=e[27];let G;e[28]!==o?(G=s.jsx("span",{className:"text-sm font-medium truncate",children:o}),e[28]=o,e[29]=G):G=e[29];let U;e[30]!==k||e[31]!==G?(U=s.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[k,G]}),e[30]=k,e[31]=G,e[32]=U):U=e[32];let B;e[33]!==O||e[34]!==c.length?(B=s.jsxs(ge,{variant:"secondary",className:"text-xs text-muted-foreground",children:[O,"/",c.length," enabled"]}),e[33]=O,e[34]=c.length,e[35]=B):B=e[35];let L;e[36]!==T?(L=T?s.jsx(Mt,{size:16,className:"text-muted-foreground shrink-0"}):s.jsx(Pt,{size:16,className:"text-muted-foreground shrink-0"}),e[36]=T,e[37]=L):L=e[37];let Y;e[38]!==L||e[39]!==B?(Y=s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[B,L]}),e[38]=L,e[39]=B,e[40]=Y):Y=e[40];let y;e[41]!==Y||e[42]!==U?(y=s.jsxs("div",{className:"flex items-center justify-between gap-3 px-4 py-3 hover:bg-muted/50 cursor-pointer",onClick:w,children:[U,Y]}),e[41]=Y,e[42]=U,e[43]=y):y=e[43],S=s.jsxs("div",{className:"border border-border rounded-lg overflow-hidden bg-card",children:[y,T&&s.jsxs("div",{className:"border-t border-border bg-muted/20",children:[j.map(M=>{const $=R(M.id),F=()=>{if(!i){if(h){x(n,f,M.id);return}a(n,M.id)}};return s.jsxs("div",{className:K("flex items-center justify-between gap-3 px-4 py-3 border-b border-border last:border-b-0",!i&&"hover:bg-muted/50 cursor-pointer"),onClick:F,children:[s.jsx("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:s.jsx("span",{className:"text-sm truncate",children:M.title})}),s.jsx("div",{onClick:as,children:i?s.jsx(pe,{children:s.jsxs(be,{children:[s.jsx(Ee,{asChild:!0,children:s.jsx("div",{children:s.jsx(xe,{checked:$,disabled:!0,onCheckedChange:rs})})}),s.jsx(Te,{children:s.jsx("p",{children:"Built-in role permissions cannot be changed"})})]})}):s.jsx(xe,{checked:$,onCheckedChange:F})})]},M.id)}),u&&s.jsxs("button",{type:"button",className:"w-full px-4 py-2 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors",onClick:()=>v(is),children:["Show more (",c.length-C," remaining)"]})]})]}),e[9]=f,e[10]=h,e[11]=n,e[12]=O,e[13]=T,e[14]=r,e[15]=R,e[16]=c,e[17]=x,e[18]=a,e[19]=i,e[20]=l,e[21]=o,e[22]=C,e[23]=S}else S=e[23];return S}function is(t){return t+rt}function rs(){}function as(t){return t.stopPropagation()}function cs(t){return!t}function ds(t){const e=H.c(33),{connection:n,selectedModels:l,allowAllModels:o,onToggleModel:r,onExitAllowAll:c,allConnectionModelsSelected:f,searchQuery:d,readOnly:h}=t,g=Lt(n.id);let a,x,i,m,_;if(e[0]!==f||e[1]!==o||e[2]!==n.id||e[3]!==n.label||e[4]!==n.providerId||e[5]!==c||e[6]!==r||e[7]!==g||e[8]!==h||e[9]!==d||e[10]!==l){_=Symbol.for("react.early_return_sentinel");e:{let N;e[16]!==n.label?(N=A=>({...A,id:A.modelId,provider:n.label}),e[16]=n.label,e[17]=N):N=e[17];const C=g.filter(hs).map(N),v=d.trim().toLowerCase(),I=v?C.filter(A=>A.title.toLowerCase().includes(v)||A.id.toLowerCase().includes(v)||A.provider?.toLowerCase().includes(v)):C;if(I.length===0){_=null;break e}const R=new Map;for(const A of I){const k=ss(A.id,n.providerId),G=R.get(k)??{models:[],logo:null};G.models.push({id:A.id,title:ls(A.title),logo:A.logo}),!G.logo&&A.logo&&(G.logo=A.logo),R.set(k,G)}const p=Array.from(R.entries()).map(fs).sort(us),O=p.length===1||v.length>0;i="flex flex-col gap-3";const S=tt[n.providerId]??st;let j;e[18]!==n.providerId||e[19]!==S?(j=s.jsx("img",{src:S,alt:n.providerId,className:"w-4 h-4 rounded-sm dark:bg-white dark:rounded-sm dark:p-px"}),e[18]=n.providerId,e[19]=S,e[20]=j):j=e[20];const u=it[n.providerId]??n.providerId;let w;e[21]!==u?(w=s.jsx("h4",{className:"text-sm font-medium",children:u}),e[21]=u,e[22]=w):w=e[22],e[23]!==w||e[24]!==j?(m=s.jsxs("div",{className:"flex items-center gap-2",children:[j,w]}),e[23]=w,e[24]=j,e[25]=m):m=e[25],a="flex flex-col gap-3",x=p.map(A=>s.jsx(os,{connectionId:n.id,subProviderId:A.id,subProviderName:A.name,groupLogo:A.logo,models:A.models,allConnectionModelIds:C.map(ms),selectedModels:l,allowAllModels:o,allConnectionModelsSelected:f,onToggleModel:r,onExitAllowAll:c,readOnly:h,defaultExpanded:O},A.id))}e[0]=f,e[1]=o,e[2]=n.id,e[3]=n.label,e[4]=n.providerId,e[5]=c,e[6]=r,e[7]=g,e[8]=h,e[9]=d,e[10]=l,e[11]=a,e[12]=x,e[13]=i,e[14]=m,e[15]=_}else a=e[11],x=e[12],i=e[13],m=e[14],_=e[15];if(_!==Symbol.for("react.early_return_sentinel"))return _;let E;e[26]!==a||e[27]!==x?(E=s.jsx("div",{className:a,children:x}),e[26]=a,e[27]=x,e[28]=E):E=e[28];let T;return e[29]!==i||e[30]!==m||e[31]!==E?(T=s.jsxs("div",{className:i,children:[m,E]}),e[29]=i,e[30]=m,e[31]=E,e[32]=T):T=e[32],T}function ms(t){return t.id}function us(t,e){return t.name.localeCompare(e.name)}function fs(t){const[e,n]=t;return{id:e,name:ns(e),logo:n.logo,models:n.models}}function hs(t,e,n){return n.findIndex(l=>l.modelId===t.modelId)===e}function gs(t){const e=H.c(35),{allowAllModels:n,modelSet:l,onAllowAllChange:o,onModelSetChange:r,readOnly:c,searchQuery:f}=t,d=c===void 0?!1:c,h=z.useDeferredValue(f),g=wt();let a;e[0]!==l||e[1]!==r?(a=(p,O)=>{const S=l[p]??[],j={...l};if(S.includes(O)){const u=S.filter(w=>w!==O);u.length===0?delete j[p]:j[p]=u}else j[p]=[...S,O];r(j)},e[0]=l,e[1]=r,e[2]=a):a=e[2];const x=a;let i;e[3]!==l||e[4]!==o||e[5]!==r?(i=(p,O,S)=>{o(!1),r({...l,[p]:O.filter(j=>j!==S)})},e[3]=l,e[4]=o,e[5]=r,e[6]=i):i=e[6];const m=i,_=!d&&"hover:bg-muted/50 cursor-pointer";let E;e[7]!==_?(E=K("flex items-center justify-between px-4 py-3 rounded-lg border border-border bg-card",_),e[7]=_,e[8]=E):E=e[8];let T;e[9]!==n||e[10]!==o||e[11]!==r||e[12]!==d?(T=()=>{if(d)return;const p=!n;o(p),p&&r({})},e[9]=n,e[10]=o,e[11]=r,e[12]=d,e[13]=T):T=e[13];let N;e[14]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx("span",{className:"text-sm font-medium",children:"All models"}),e[14]=N):N=e[14];let C;e[15]!==n||e[16]!==o||e[17]!==r||e[18]!==d?(C=s.jsx("div",{onClick:ps,children:d?s.jsx(pe,{children:s.jsxs(be,{children:[s.jsx(Ee,{asChild:!0,children:s.jsx("div",{children:s.jsx(xe,{checked:n,disabled:!0,onCheckedChange:xs})})}),s.jsx(Te,{children:s.jsx("p",{children:"Built-in role permissions cannot be changed"})})]})}):s.jsx(xe,{checked:n,onCheckedChange:p=>{o(p),p&&r({})}})}),e[15]=n,e[16]=o,e[17]=r,e[18]=d,e[19]=C):C=e[19];let v;e[20]!==E||e[21]!==T||e[22]!==C?(v=s.jsxs("div",{className:E,onClick:T,children:[N,C]}),e[20]=E,e[21]=T,e[22]=C,e[23]=v):v=e[23];let I;e[24]!==g||e[25]!==n||e[26]!==h||e[27]!==m||e[28]!==l||e[29]!==d||e[30]!==x?(I=g.length===0?s.jsx("div",{className:"flex items-center justify-center py-8 text-sm text-muted-foreground",children:"No LLM connections configured"}):g.map(p=>s.jsx(z.Suspense,{fallback:s.jsxs("div",{className:"px-4 py-3 flex items-center gap-2 text-sm text-muted-foreground",children:[s.jsx(fe,{className:"size-4 animate-spin"}),"Loading models..."]}),children:s.jsx(ds,{connection:p,selectedModels:l[p.id]??[],allowAllModels:n,onToggleModel:x,onExitAllowAll:m,allConnectionModelsSelected:(l[p.id]??[]).includes("*"),searchQuery:h,readOnly:d})},p.id)),e[24]=g,e[25]=n,e[26]=h,e[27]=m,e[28]=l,e[29]=d,e[30]=x,e[31]=I):I=e[31];let R;return e[32]!==I||e[33]!==v?(R=s.jsxs("div",{className:"flex flex-col h-full overflow-auto gap-6 pb-6",children:[v,I]}),e[32]=I,e[33]=v,e[34]=R):R=e[34],R}function xs(){}function ps(t){return t.stopPropagation()}function bs(t){const e=H.c(52),{open:n,onOpenChange:l,selectedMemberIds:o,onAddMembers:r}=t,[c,f]=z.useState(""),d=z.useDeferredValue(c);let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h=[],e[0]=h):h=e[0];const[g,a]=z.useState(h),{data:x}=nt();let i,m,_,E,T,N,C,v,I,R,p;if(e[1]!==x?.data?.members||e[2]!==d||e[3]!==r||e[4]!==l||e[5]!==n||e[6]!==g||e[7]!==c||e[8]!==o){const U=x?.data?.members??[];let B;e[20]!==d?(B=y=>{const M=d.toLowerCase();return y.user?.name?.toLowerCase().includes(M)||y.user?.email?.toLowerCase().includes(M)},e[20]=d,e[21]=B):B=e[21];const L=U.filter(B);let Y;e[22]!==r||e[23]!==l||e[24]!==g?(Y=()=>{r(g),a([]),l(!1)},e[22]=r,e[23]=l,e[24]=g,e[25]=Y):Y=e[25],_=Y,m=Qe,R=n,p=l,i=He,v="sm:max-w-md p-0",e[26]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsxs(qe,{className:"px-6 pt-6",children:[s.jsx(Ze,{children:"Add Members to Role"}),s.jsx(Xe,{children:"Select members to add to this role."})]}),e[26]=I):I=e[26],N="flex flex-col h-80",e[27]!==c?(C=s.jsx("div",{className:"border-b border-border px-4 py-3",children:s.jsx(ve,{value:c,onChange:f,placeholder:"Search members...",className:"w-full"})}),e[27]=c,e[28]=C):C=e[28],E="flex-1 overflow-auto",T=L.length===0?s.jsx("div",{className:"flex items-center justify-center h-full px-6",children:s.jsx("p",{className:"text-sm text-muted-foreground",children:c?"No members found":"No members available"})}):s.jsx("div",{className:"px-6 py-2 space-y-1",children:L.map(y=>{const M=y.role!=="owner",$=o.includes(y.id),F=g.includes(y.id);return s.jsxs("label",{className:K("flex items-center gap-3 p-2 rounded-lg",!M||$?"opacity-50 cursor-not-allowed":"cursor-pointer hover:bg-muted/50"),children:[s.jsx(we,{checked:F||$,onCheckedChange:()=>{!M||$||a(X=>X.includes(y.id)?X.filter(J=>J!==y.id):[...X,y.id])},disabled:!M||$}),s.jsx(lt,{url:y.user?.image??void 0,fallback:ot(y.user?.name),shape:"circle",size:"sm"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:y.user?.name||"Unknown"}),s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:y.user?.email})]}),!M&&s.jsx(ge,{variant:"secondary",className:"shrink-0",children:"Owner"}),$&&M&&s.jsx(ge,{variant:"outline",className:"shrink-0",children:"Added"})]},y.id)})}),e[1]=x?.data?.members,e[2]=d,e[3]=r,e[4]=l,e[5]=n,e[6]=g,e[7]=c,e[8]=o,e[9]=i,e[10]=m,e[11]=_,e[12]=E,e[13]=T,e[14]=N,e[15]=C,e[16]=v,e[17]=I,e[18]=R,e[19]=p}else i=e[9],m=e[10],_=e[11],E=e[12],T=e[13],N=e[14],C=e[15],v=e[16],I=e[17],R=e[18],p=e[19];let O;e[29]!==E||e[30]!==T?(O=s.jsx("div",{className:E,children:T}),e[29]=E,e[30]=T,e[31]=O):O=e[31];let S;e[32]!==O||e[33]!==N||e[34]!==C?(S=s.jsxs("div",{className:N,children:[C,O]}),e[32]=O,e[33]=N,e[34]=C,e[35]=S):S=e[35];let j;e[36]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(Je,{children:"Cancel"}),e[36]=j):j=e[36];const u=g.length===0,w=g.length>0&&`(${g.length})`;let A;e[37]!==_||e[38]!==u||e[39]!==w?(A=s.jsxs(We,{className:"px-6 pb-6",children:[j,s.jsxs(et,{onClick:_,disabled:u,children:["Add ",w]})]}),e[37]=_,e[38]=u,e[39]=w,e[40]=A):A=e[40];let k;e[41]!==i||e[42]!==S||e[43]!==A||e[44]!==v||e[45]!==I?(k=s.jsxs(i,{className:v,children:[I,S,A]}),e[41]=i,e[42]=S,e[43]=A,e[44]=v,e[45]=I,e[46]=k):k=e[46];let G;return e[47]!==m||e[48]!==k||e[49]!==R||e[50]!==p?(G=s.jsx(m,{open:R,onOpenChange:p,children:k}),e[47]=m,e[48]=k,e[49]=R,e[50]=p,e[51]=G):G=e[51],G}function Es(t){const e=H.c(29),{memberIds:n,onMemberIdsChange:l,readOnly:o,readOnlyMessage:r,searchQuery:c,addMemberDialogOpen:f,onAddMemberDialogOpenChange:d}=t,h=o===void 0?!1:o,g=r===void 0?"Owner membership cannot be changed":r,a=z.useDeferredValue(c),{data:x}=nt();let i,m,_;if(e[0]!==x?.data?.members||e[1]!==a||e[2]!==n||e[3]!==l||e[4]!==h||e[5]!==g||e[6]!==c){const v=x?.data?.members??[];let I;e[10]!==n?(I=S=>n.includes(S.id),e[10]=n,e[11]=I):I=e[11];const R=v.filter(I);let p;e[12]!==a?(p=S=>{const j=a.toLowerCase();return S.user?.name?.toLowerCase().includes(j)||S.user?.email?.toLowerCase().includes(j)},e[12]=a,e[13]=p):p=e[13];const O=R.filter(p);_="flex flex-col h-full",i="flex-1 overflow-auto",m=R.length===0?s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsxs("div",{className:"text-center",children:[s.jsx("h3",{className:"text-base font-medium mb-1",children:"No members"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Add members to grant them the configured permissions."})]})}):O.length===0?s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsxs("p",{className:"text-sm text-muted-foreground",children:['No members match "',c,'"']})}):s.jsx("div",{className:"p-4 space-y-2",children:O.map(S=>s.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg bg-muted/30",children:[s.jsx(lt,{url:S.user?.image??void 0,fallback:ot(S.user?.name),shape:"circle",size:"sm"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:S.user?.name||"Unknown"}),s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:S.user?.email})]}),h?s.jsx(pe,{children:s.jsxs(be,{children:[s.jsx(Ee,{asChild:!0,children:s.jsx("div",{children:s.jsx(ne,{variant:"ghost",size:"sm",disabled:!0,children:s.jsx(ze,{size:16})})})}),s.jsx(Te,{children:s.jsx("p",{children:g})})]})}):s.jsx(ne,{variant:"ghost",size:"sm",onClick:()=>l(n.filter(j=>j!==S.id)),children:s.jsx(ze,{size:16})})]},S.id))}),e[0]=x?.data?.members,e[1]=a,e[2]=n,e[3]=l,e[4]=h,e[5]=g,e[6]=c,e[7]=i,e[8]=m,e[9]=_}else i=e[7],m=e[8],_=e[9];let E;e[14]!==i||e[15]!==m?(E=s.jsx("div",{className:i,children:m}),e[14]=i,e[15]=m,e[16]=E):E=e[16];let T;e[17]!==n||e[18]!==l?(T=v=>l([...n,...v]),e[17]=n,e[18]=l,e[19]=T):T=e[19];let N;e[20]!==f||e[21]!==n||e[22]!==d||e[23]!==T?(N=s.jsx(bs,{open:f,onOpenChange:d,selectedMemberIds:n,onAddMembers:T}),e[20]=f,e[21]=n,e[22]=d,e[23]=T,e[24]=N):N=e[24];let C;return e[25]!==_||e[26]!==E||e[27]!==N?(C=s.jsxs("div",{className:_,children:[E,N]}),e[25]=_,e[26]=E,e[27]=N,e[28]=C):C=e[28],C}function Ts(t){const e=H.c(3);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx(fe,{size:24,className:"animate-spin text-muted-foreground"})}),e[0]=n):n=e[0];let l;return e[1]!==t?(l=s.jsx(z.Suspense,{fallback:n,children:s.jsx(Es,{...t})}),e[1]=t,e[2]=l):l=e[2],l}const _s={owner:[],admin:[],user:[]};function Is(t,e,n,l){const o=t==="owner"||t==="admin";return{role:{id:n?.id,slug:t,label:t.charAt(0).toUpperCase()+t.slice(1)},allowAllStaticPermissions:o,staticPermissions:_s[t],toolSet:{},allowAllModels:!0,modelSet:{},memberIds:e.filter(r=>r.role===t).map(r=>r.id)}}function Ss(t,e,n){const l=t.permission||{},o=l.self||[],r=o.includes("*"),c=r?[]:o.filter(a=>a!=="*"),f={};for(const[a,x]of Object.entries(l))if(!(a==="self"||a==="models"))if(a==="*")for(const i of n)f[i.id]=x.includes("*")?i.tools?.map(m=>m.name)??[]:x;else{const i=n.find(m=>m.id===a);i&&(f[a]=x.includes("*")?i.tools?.map(m=>m.name)??[]:x)}const d=l.models||[],h=d.length===0||d.includes("*:*"),g={};if(!h)for(const a of d){const x=a.indexOf(":");if(x===-1)continue;const i=a.slice(0,x),m=a.slice(x+1);g[i]||(g[i]=[]),g[i].push(m)}return{role:{id:t.id,slug:t.role,label:t.label},allowAllStaticPermissions:r,staticPermissions:c,toolSet:f,allowAllModels:h,modelSet:g,memberIds:e.filter(a=>a.role===t.role).map(a=>a.id)}}function Ns(t,e){const n={};t.allowAllStaticPermissions?n.self=["*"]:t.staticPermissions.length>0&&(n.self=t.staticPermissions);for(const[l,o]of Object.entries(t.toolSet))if(o.length>0){const c=e.find(f=>f.id===l)?.tools?.map(f=>f.name)??[];n[l]=c.length>0&&c.every(f=>o.includes(f))?["*"]:o}if(t.allowAllModels)n.models=["*:*"];else{const l=[];for(const[o,r]of Object.entries(t.modelSet))for(const c of r)l.push(`${o}:${c}`);l.length>0&&(n.models=l)}return n}function Cs(t,e,n){return t.kind==="builtin"?Is(t.role,e,void 0):t.kind==="custom"?Ss(t.role,e,n):{role:{id:void 0,slug:void 0,label:""},allowAllStaticPermissions:!1,staticPermissions:[],toolSet:{},allowAllModels:!0,modelSet:{},memberIds:[]}}function As(t){const e=H.c(6),{readOnly:n,readOnlyMessage:l,onOpen:o}=t,r=l===void 0?"Owner membership cannot be changed":l;if(n){let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Ee,{asChild:!0,children:s.jsx("div",{children:s.jsxs(ne,{variant:"outline",size:"sm",disabled:!0,children:[s.jsx(Ae,{size:16}),"Add Member"]})})}),e[0]=d):d=e[0];let h;return e[1]!==r?(h=s.jsx(pe,{children:s.jsxs(be,{children:[d,s.jsx(Te,{children:s.jsx("p",{children:r})})]})}),e[1]=r,e[2]=h):h=e[2],h}let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ae,{size:16}),e[3]=c):c=e[3];let f;return e[4]!==o?(f=s.jsxs(ne,{variant:"outline",size:"sm",onClick:o,children:[c,"Add Member"]}),e[4]=o,e[5]=f):f=e[5],f}function Rs(t){const e=H.c(14),{locator:n}=Se(),l=je(),o=yt();let r;e[0]!==n?(r=re.members(n),e[0]=n,e[1]=r):r=e[1];let c;e[2]!==l?(c=()=>l.organization.listMembers(),e[2]=l,e[3]=c):c=e[3];let f;e[4]!==r||e[5]!==c?(f={queryKey:r,queryFn:c},e[4]=r,e[5]=c,e[6]=f):f=e[6];const{data:d,isPending:h}=Re(f);if(h||!o){let i;return e[7]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(te,{children:s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx(fe,{size:32,className:"animate-spin text-muted-foreground"})})}),e[7]=i):i=e[7],i}let g;e[8]!==d?.data?.members?(g=d?.data?.members??[],e[8]=d?.data?.members,e[9]=g):g=e[9];const a=g;let x;return e[10]!==o||e[11]!==a||e[12]!==t?(x=s.jsx(Os,{...t,members:a,connections:o}),e[10]=o,e[11]=a,e[12]=t,e[13]=x):x=e[13],x}function Os({target:t,onBack:e,onSaved:n,members:l,connections:o}){const{locator:r}=Se(),c=je(),f=$e(),d=t.kind==="builtin",h=t.kind==="builtin"&&t.role==="owner",g=t.kind==="new",[a,x]=z.useState(d?"org":"mcp"),i=mt({resolver:ut(Zt),defaultValues:Cs(t,l,o)}),m=i.formState.isValid,_=i.formState.isDirty,E=Fe({mutationFn:async u=>{const w=Ns(u,o),A=u.role.slug||u.role.label.toLowerCase().replace(/\s+/g,"-"),k=(u.role.slug==="owner"||u.role.slug==="admin"||u.role.slug==="user")&&!u.role.id,G=async(U,B)=>{const L=l.filter(M=>M.role===(B??U)).map(M=>M.id),Y=u.memberIds.filter(M=>!L.includes(M)),y=L.filter(M=>!u.memberIds.includes(M));for(const M of Y){const $=await c.organization.updateMemberRole({memberId:M,role:[U]});if($?.error)throw new Error($.error.message??"Something went wrong")}for(const M of y){const $=await c.organization.updateMemberRole({memberId:M,role:["user"]});if($?.error)throw new Error($.error.message??"Something went wrong")}};if(k)return await G(u.role.slug),u;if(u.role.id){const U=u.role.label.toLowerCase().replace(/\s+/g,"-"),B=u.role.slug,L=U!==B,Y=await c.organization.updateRole({roleId:u.role.id,data:{permission:w,...L?{roleName:U}:{}}});if(Y?.error)throw new Error(Y.error.message??"Something went wrong");return await G(L?U:B,L?B:void 0),L?{...u,role:{...u.role,slug:U}}:u}else{const U=await c.organization.createRole({role:A,permission:w});if(U?.error)throw new Error(U.error.message??"Something went wrong");for(const B of u.memberIds){const L=await c.organization.updateMemberRole({memberId:B,role:[A]});if(L?.error)throw new Error(L.error.message)}return{...u,role:{...u.role,id:U.data?.roleData?.id,slug:A}}}},onSuccess:(u,w)=>{f.invalidateQueries({queryKey:re.members(r)}),f.invalidateQueries({queryKey:re.organizationRoles(r)});const A=!w.role.id&&!w.role.slug,k=w.role.slug==="owner"&&!w.role.id;Oe(k?"role_members_updated":A?"role_created":"role_updated",{role_slug:w.role.slug??null}),he.success(k?"Members updated successfully!":A?"Role created successfully!":"Role updated successfully!"),i.reset(u),n(u.role.id)},onError:u=>{he.error(u instanceof Error?u.message:"Failed to save role")}}),T=i.handleSubmit(u=>{if(!u.role.label.trim()){he.error("Role name is required"),i.setFocus("role.label");return}E.mutate(u)}),N=!h,C=t.kind==="builtin"?t.role.charAt(0).toUpperCase()+t.role.slice(1):t.kind==="custom"?t.role.label:"",v=[...h?[]:[{id:"mcp",label:"MCP Permissions"}],{id:"org",label:"Organization Permissions"},{id:"models",label:"Models"},{id:"members",label:"Members"}],[I,R]=z.useState(""),[p,O]=z.useState(!1),S=u=>{x(u),R("")},j={mcp:"Search MCP servers...",org:"Search permissions...",models:"Search models...",members:"Search members..."};return s.jsx(te,{children:s.jsxs(te.Content,{className:K("flex flex-col",a!=="org"&&"overflow-hidden"),children:[s.jsx("div",{className:"shrink-0 mx-auto w-full max-w-[1200px] px-4 md:px-10 pt-8 md:pt-12 pb-4",children:s.jsxs("div",{className:"flex flex-col gap-5",children:[s.jsx(te.Title,{actions:N&&s.jsxs(s.Fragment,{children:[s.jsx(ne,{variant:"outline",size:"sm",onClick:e,disabled:E.isPending,children:"Cancel"}),s.jsx(ne,{size:"sm",onClick:T,disabled:E.isPending||!m||!_,children:E.isPending?"Saving...":g?"Create Role":"Save Changes"})]}),children:s.jsxs("div",{className:"flex items-center gap-2.5 min-w-0",children:[s.jsx("div",{className:K("size-2.5 rounded-full shrink-0",t.kind==="builtin"?qt(t.role):Ht(i.watch("role.label")))}),h&&s.jsx(Ke,{size:16,className:"text-muted-foreground shrink-0"}),g||t.kind==="custom"?s.jsx("input",{...i.register("role.label"),placeholder:"Role name",className:"leading-tight text-foreground bg-transparent border-none outline-none px-1 -mx-1 rounded hover:bg-input/25 focus:bg-input/25 transition-colors w-64 placeholder:text-muted-foreground/50",autoFocus:g}):s.jsx("span",{className:"truncate",children:C})]})}),s.jsx("div",{className:"flex items-center gap-2",children:v.map(u=>s.jsx("button",{type:"button",onClick:()=>S(u.id),className:K("h-7 px-2 text-sm rounded-lg border border-input transition-colors inline-flex items-center",a===u.id?"bg-accent border-border text-foreground":"bg-transparent text-muted-foreground hover:border-border hover:bg-accent/50 hover:text-foreground"),children:u.label},u.id))}),s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[s.jsx(ve,{value:I,onChange:R,placeholder:j[a]??"Search...",className:"w-full md:w-[375px]"}),a==="members"&&s.jsx(As,{readOnly:t.kind==="builtin"&&t.role==="owner",onOpen:()=>O(!0)})]})]})}),s.jsx("div",{className:K("mx-auto w-full max-w-[1200px] px-4 md:px-10 pb-6",a!=="org"&&"flex-1 min-h-0"),children:s.jsxs("div",{className:K(a!=="org"&&"h-full overflow-hidden",a!=="models"&&a!=="org"&&"border border-border rounded-xl bg-card"),children:[a==="mcp"&&!h&&s.jsx($t,{toolSet:i.watch("toolSet"),onToolSetChange:u=>i.setValue("toolSet",u,{shouldDirty:!0}),searchQuery:I}),a==="org"&&s.jsx(Xt,{allowAllStaticPermissions:i.watch("allowAllStaticPermissions"),staticPermissions:i.watch("staticPermissions"),onAllowAllChange:u=>i.setValue("allowAllStaticPermissions",u,{shouldDirty:!0}),onPermissionsChange:u=>i.setValue("staticPermissions",u,{shouldDirty:!0}),readOnly:h,searchQuery:I}),a==="models"&&s.jsx(gs,{allowAllModels:i.watch("allowAllModels"),modelSet:i.watch("modelSet"),onAllowAllChange:u=>i.setValue("allowAllModels",u,{shouldDirty:!0}),onModelSetChange:u=>i.setValue("modelSet",u,{shouldDirty:!0}),readOnly:h,searchQuery:I}),a==="members"&&s.jsx(Ts,{memberIds:i.watch("memberIds"),onMemberIdsChange:u=>i.setValue("memberIds",u,{shouldDirty:!0}),readOnly:t.kind==="builtin"&&(t.role==="owner"||t.role==="user"),readOnlyMessage:t.kind==="builtin"&&t.role==="user"?"User is the default role — members can't be removed from it; assign another role to change their access":"Owner membership cannot be changed",searchQuery:I,addMemberDialogOpen:p,onAddMemberDialogOpenChange:O})]})})]})})}function js(t){return t.kind==="builtin"?`builtin-${t.role}`:t.kind==="custom"?`custom-${t.role.id}`:"new"}function vs(t){const e=H.c(6),{area:n,children:l}=t,{isPrivileged:o,loading:r,error:c}=Dt();let f;return e[0]!==n||e[1]!==l||e[2]!==c||e[3]!==o||e[4]!==r?(f=s.jsx(kt,{granted:o,loading:r,error:c,area:n,children:l}),e[0]=n,e[1]=l,e[2]=c,e[3]=o,e[4]=r,e[5]=f):f=e[5],f}const ys=[{role:"owner",label:"Owner",color:"bg-red-500"},{role:"admin",label:"Admin",color:"bg-blue-500"},{role:"user",label:"User",color:"bg-green-500"}],Ce=["bg-red-500","bg-orange-500","bg-amber-500","bg-yellow-500","bg-lime-500","bg-green-500","bg-emerald-500","bg-teal-500","bg-cyan-500","bg-sky-500","bg-blue-500","bg-indigo-500","bg-violet-500","bg-purple-500","bg-fuchsia-500","bg-pink-500","bg-rose-500"];function ws(t){if(!t)return"bg-neutral-400";let e=0;for(let l=0;l<t.length;l++){const o=t.charCodeAt(l);e=(e<<5)-e+o,e=e&e}const n=Math.abs(e)%Ce.length;return Ce[n]??Ce[0]}const Ls={owner:"bg-red-500",admin:"bg-blue-500",user:"bg-green-500"};function Ms(t,e){return e?Ls[t]??"bg-neutral-400":ws(t)}function Ps(){const t=H.c(77),[e,n]=z.useState(""),[l,o]=z.useState(null),r=gt();let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c={strict:!1},t[0]=c):c=t[0];const{role:f}=xt(c),{locator:d}=Se(),h=je(),g=$e(),{customRoles:a,refetch:x}=pt();let i;t[1]!==r?(i=P=>r({to:".",search:V=>({...V,role:P})}),t[1]=r,t[2]=i):i=t[2];const m=i;let _;e:{if(!f){_=null;break e}if(f==="new"){_={kind:"new"};break e}if(f.startsWith("builtin-")){_={kind:"builtin",role:f.slice(8)};break e}let P;t[3]!==f?(P=ae=>ae.id===f,t[3]=f,t[4]=P):P=t[4];const V=a.find(P);_=V?{kind:"custom",role:V}:null}const E=_;let T;t[5]!==d?(T=re.members(d),t[5]=d,t[6]=T):T=t[6];let N;t[7]!==h?(N=()=>h.organization.listMembers(),t[7]=h,t[8]=N):N=t[8];let C;t[9]!==T||t[10]!==N?(C={queryKey:T,queryFn:N},t[9]=T,t[10]=N,t[11]=C):C=t[11];const{data:v}=Re(C);let I;t[12]!==v?.data?.members?(I=v?.data?.members??[],t[12]=v?.data?.members,t[13]=I):I=t[13];const R=I;let p;t[14]!==R?(p=P=>R.filter(V=>V.role===P).length,t[14]=R,t[15]=p):p=t[15];const O=p;let S;if(t[16]!==a||t[17]!==O||t[18]!==e){let P;t[20]!==O?(P=ce=>({kind:"builtin",role:{...ce,memberCount:O(ce.role)}}),t[20]=O,t[21]=P):P=t[21];const V=ys.map(P);let ae;t[22]!==O?(ae=ce=>({kind:"custom",role:{...ce,memberCount:O(ce.role)}}),t[22]=O,t[23]=ae):ae=t[23];const at=a.map(ae);if(S=[...V,...at],e){const ce=e.toLowerCase();S=S.filter(ct=>ct.role.label.toLowerCase().includes(ce))}t[16]=a,t[17]=O,t[18]=e,t[19]=S}else S=t[19];let j;t[24]!==h?(j=async P=>{const V=await h.organization.deleteRole({roleId:P});if(V?.error)throw new Error(V.error.message);return V?.data},t[24]=h,t[25]=j):j=t[25];const u=Fe({mutationFn:j,onSuccess:(P,V)=>{Oe("role_deleted",{role_id:V}),g.invalidateQueries({queryKey:re.members(d)}),g.invalidateQueries({queryKey:re.organizationRoles(d)}),he.success("Role deleted successfully!"),x(),E?.kind==="custom"&&E.role.id===V&&m(void 0)},onError:zs});let w,A,k,G;t[26]===Symbol.for("react.memo_cache_sentinel")?(G={id:"role",header:"Role",render:Vs,cellClassName:"flex-1 min-w-0",sortable:!0},w={id:"type",header:"Type",render:Bs,cellClassName:"w-28 shrink-0"},A={id:"permissions",header:"Permissions",render:Us,cellClassName:"flex-1 min-w-0"},k={id:"members",header:"Members",render:Gs,cellClassName:"w-24 shrink-0"},t[26]=w,t[27]=A,t[28]=k,t[29]=G):(w=t[26],A=t[27],k=t[28],G=t[29]);let U;t[30]===Symbol.for("react.memo_cache_sentinel")?(U=[G,w,A,k,{id:"actions",header:"",render:P=>P.kind==="builtin"?null:s.jsxs(bt,{children:[s.jsx(Et,{asChild:!0,children:s.jsx(ne,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:ks,children:s.jsx(It,{size:16})})}),s.jsx(Tt,{align:"end",onClick:Ds,children:s.jsxs(_t,{variant:"destructive",onClick:()=>{const V=P.role;V.id&&o({id:V.id,label:V.label})},children:[s.jsx(St,{size:16}),"Delete"]})})]}),cellClassName:"w-12 shrink-0"}],t[30]=U):U=t[30];const B=U;let L;t[31]!==m?(L=P=>{if(P.kind==="builtin")m(`builtin-${P.role.role}`);else{const V=P.role;m(V.id)}},t[31]=m,t[32]=L):L=t[32];const Y=L;if(E){let P;t[33]!==m?(P=()=>m(void 0),t[33]=m,t[34]=P):P=t[34];let V;return t[35]!==x||t[36]!==m?(V=()=>{x(),m(void 0)},t[35]=x,t[36]=m,t[37]=V):V=t[37],s.jsx(Rs,{target:E,onBack:P,onSaved:V},js(E))}let y;t[38]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(te.Title,{children:"Roles"}),t[38]=y):y=t[38];let M;t[39]===Symbol.for("react.memo_cache_sentinel")?(M=P=>{P.key==="Escape"&&(n(""),P.target.blur())},t[39]=M):M=t[39];let $;t[40]!==e?($=s.jsx(ve,{value:e,onChange:n,placeholder:"Search roles...",className:"w-full md:w-[375px]",onKeyDown:M}),t[40]=e,t[41]=$):$=t[41];let F;t[42]!==m?(F=()=>m("new"),t[42]=m,t[43]=F):F=t[43];let X;t[44]===Symbol.for("react.memo_cache_sentinel")?(X=s.jsx(Ae,{size:16}),t[44]=X):X=t[44];let J;t[45]!==F?(J=s.jsxs(ne,{onClick:F,children:[X,"Create Role"]}),t[45]=F,t[46]=J):J=t[46];let le;t[47]!==$||t[48]!==J?(le=s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[$,J]}),t[47]=$,t[48]=J,t[49]=le):le=t[49];let oe;t[50]!==e?(oe=e?s.jsx(Ge,{title:"No roles found",description:`No roles match "${e}"`}):s.jsx(Ge,{title:"No roles",description:"Create a role to get started."}),t[50]=e,t[51]=oe):oe=t[51];let ie;t[52]!==S||t[53]!==B||t[54]!==Y||t[55]!==oe?(ie=s.jsx(Nt,{columns:B,data:S,isLoading:!1,onRowClick:Y,emptyState:oe}),t[52]=S,t[53]=B,t[54]=Y,t[55]=oe,t[56]=ie):ie=t[56];let b;t[57]!==le||t[58]!==ie?(b=s.jsx(te.Content,{children:s.jsx(te.Body,{children:s.jsxs("div",{className:"flex flex-col gap-6",children:[y,le,ie]})})}),t[57]=le,t[58]=ie,t[59]=b):b=t[59];const D=l!==null;let Q;t[60]===Symbol.for("react.memo_cache_sentinel")?(Q=P=>!P&&o(null),t[60]=Q):Q=t[60];let q;t[61]===Symbol.for("react.memo_cache_sentinel")?(q=s.jsx(Ze,{children:"Delete Role"}),t[61]=q):q=t[61];const W=l?.label;let Z;t[62]!==W?(Z=s.jsxs(qe,{children:[q,s.jsxs(Xe,{children:['Are you sure you want to delete the "',W,'" role? This action cannot be undone.']})]}),t[62]=W,t[63]=Z):Z=t[63];let ee;t[64]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx(Je,{children:"Cancel"}),t[64]=ee):ee=t[64];let de;t[65]!==u||t[66]!==l?(de=s.jsxs(We,{children:[ee,s.jsx(et,{onClick:()=>{l?.id&&u.mutate(l.id),o(null)},className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),t[65]=u,t[66]=l,t[67]=de):de=t[67];let me;t[68]!==Z||t[69]!==de?(me=s.jsxs(He,{children:[Z,de]}),t[68]=Z,t[69]=de,t[70]=me):me=t[70];let ue;t[71]!==D||t[72]!==me?(ue=s.jsx(Qe,{open:D,onOpenChange:Q,children:me}),t[71]=D,t[72]=me,t[73]=ue):ue=t[73];let _e;return t[74]!==b||t[75]!==ue?(_e=s.jsxs(te,{children:[b,ue]}),t[74]=b,t[75]=ue,t[76]=_e):_e=t[76],_e}function Ds(t){return t.stopPropagation()}function ks(t){return t.stopPropagation()}function Gs(t){return s.jsx("span",{className:"text-sm text-foreground",children:t.role.memberCount})}function Us(t){if(t.kind==="builtin")return t.role.role==="owner"||t.role.role==="admin"?s.jsx("span",{className:"text-sm text-muted-foreground",children:"Full access"}):s.jsx("span",{className:"text-sm text-muted-foreground",children:"Basic access"});const e=t.role,n=[];return e.allowsAllStaticPermissions?n.push("Full org access"):e.staticPermissionCount&&e.staticPermissionCount>0&&n.push(`${e.staticPermissionCount} org perm${e.staticPermissionCount!==1?"s":""}`),e.allowsAllConnections?n.push("All connections"):e.connectionCount&&e.connectionCount>0&&n.push(`${e.connectionCount} connection${e.connectionCount!==1?"s":""}`),s.jsx("span",{className:"text-sm text-muted-foreground truncate",children:n.length>0?n.join(", "):"No permissions"})}function Bs(t){return t.kind==="builtin"?s.jsx(ge,{variant:"secondary",className:"text-xs",children:"Built-in"}):s.jsx(ge,{variant:"outline",className:"text-xs",children:"Custom"})}function Vs(t){return s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:K("size-2.5 rounded-full shrink-0",Ms(t.role.role,t.kind==="builtin"))}),s.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:t.role.label}),t.kind==="builtin"&&s.jsx(Ke,{size:12,className:"text-muted-foreground shrink-0"})]})}function zs(t,e){Oe("role_delete_failed",{role_id:e,error:t instanceof Error?t.message:String(t)}),he.error(t instanceof Error?t.message:"Failed to delete role")}function Ys(){const t=H.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(te,{children:s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-sm text-muted-foreground",children:"Failed to load roles"})})}),t[0]=e):e=t[0];let n;return t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(ht,{fallback:e,children:s.jsx(z.Suspense,{fallback:s.jsx(te,{children:s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx(fe,{size:32,className:"animate-spin text-muted-foreground"})})}),children:s.jsx(Ps,{})})}),t[1]=n):n=t[1],n}function fl(){const t=H.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(vs,{area:"roles",children:s.jsx(Ys,{})}),t[0]=e):e=t[0],e}export{fl as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as f,j as t,E as P,r as j,F as w,B as S,o as y}from"./index-Bo3JNDr-.js";import{i as k}from"./AlertCircle-msrZcybq.js";import{s as z}from"./Plus-CFWiqWHN.js";import{s as F}from"./User01-Nh_tiNpg.js";import{t as E}from"./Users01-BwVZocdt.js";import{D as $,a as I,b as O,c as A,e as R,d as T}from"./dialog-C_ezrgSP.js";import{I as N}from"./input-pRrhjAXj.js";import{L as g}from"./label-D6vCqN0W.js";import{d as B,S as V,a as L,b as q,c as C}from"./select-DUXB6LHg.js";import{S as H}from"./skeleton-BWZ-ns9j.js";import{T as K}from"./textarea-CRDofezZ.js";import{P as b}from"./index-C3nMRDmD.js";import{c as W}from"./settings-section-Udn4AewC.js";import{u as Y,a as G}from"./use-secrets-q3tZhEWP.js";import{R as J}from"./require-capability-CrKIqEWt.js";import"./X-ss5Xz1Et.js";import"./tooltip-DiB01_WS.js";import"./Check-Jqq0Xl3a.js";import"./ChevronDown-BSX6I-22.js";import"./ChevronUp-CZxdSjaK.js";import"./sidebar-K8V064sc.js";import"./LayoutLeft-CqI5nVLL.js";import"./sheet-APxs0kGR.js";import"./card-BBYtsRQu.js";import"./ArrowUpRight-Byrpe9WP.js";import"./constants-DnLx7qAL.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./use-capability-B8Eh6LHX.js";import"./access-gate-Dy05Kfsj.js";import"./capability-load-error-DRUhmmMs.js";function M(s){const e=f.c(3),{error:r}=s;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(k,{size:16}),e[0]=a):a=e[0];let n;return e[1]!==r.message?(n=t.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[a,t.jsxs("span",{className:"text-sm font-medium",children:["Failed to load secrets: ",r.message]})]}),e[1]=r.message,e[2]=n):n=e[2],n}function Q(s){const e=f.c(5),{scope:r}=s,a=r==="user"?F:E,n=r==="user"?"Private":"Organization";let i;e[0]!==a?(i=t.jsx(a,{size:12}),e[0]=a,e[1]=i):i=e[1];let o;return e[2]!==n||e[3]!==i?(o=t.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-md bg-muted text-muted-foreground text-xs",children:[i,n]}),e[2]=n,e[3]=i,e[4]=o):o=e[4],o}function D(s){const e=f.c(20),{secret:r}=s;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:t.jsx(w,{size:16,className:"text-muted-foreground"})}),e[0]=a):a=e[0];let n;e[1]!==r.name?(n=t.jsx("span",{className:"font-medium text-sm truncate",children:r.name}),e[1]=r.name,e[2]=n):n=e[2];let i;e[3]!==r.scope?(i=t.jsx(Q,{scope:r.scope}),e[3]=r.scope,e[4]=i):i=e[4];let o;e[5]!==n||e[6]!==i?(o=t.jsxs("div",{className:"flex items-center gap-2",children:[n,i]}),e[5]=n,e[6]=i,e[7]=o):o=e[7];let d;e[8]!==r.description?(d=r.description?t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:r.description}):null,e[8]=r.description,e[9]=d):d=e[9];let u;e[10]!==o||e[11]!==d?(u=t.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[a,t.jsxs("div",{className:"min-w-0",children:[o,d]})]}),e[10]=o,e[11]=d,e[12]=u):u=e[12];let l;e[13]!==r.createdAt?(l=new Date(r.createdAt).toLocaleDateString(),e[13]=r.createdAt,e[14]=l):l=e[14];let c;e[15]!==l?(c=t.jsx("div",{className:"text-xs text-muted-foreground shrink-0",children:l}),e[15]=l,e[16]=c):c=e[16];let x;return e[17]!==u||e[18]!==c?(x=t.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[u,c]}),e[17]=u,e[18]=c,e[19]=x):x=e[19],x}function U(s){const e=f.c(5),{onCreate:r}=s;let a,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:t.jsx(w,{size:20,className:"text-muted-foreground"})}),n=t.jsxs("div",{children:[t.jsx("p",{className:"font-medium text-sm",children:"No secrets yet"}),t.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:"Store API keys, tokens, and other sensitive values. Values are encrypted at rest and never returned over the API."})]}),e[0]=a,e[1]=n):(a=e[0],n=e[1]);let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(z,{size:14}),e[2]=i):i=e[2];let o;return e[3]!==r?(o=t.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[a,n,t.jsxs(S,{onClick:r,size:"sm",className:"mt-2",children:[i,"New secret"]})]}),e[3]=r,e[4]=o):o=e[4],o}function _({open:s,onOpenChange:e}){const[r,a]=j.useState("organization"),[n,i]=j.useState(""),[o,d]=j.useState(""),[u,l]=j.useState(""),c=G();function x(){a("organization"),i(""),d(""),l("")}function p(){x(),e(!1)}async function h(m){if(m.preventDefault(),!(!n.trim()||!o))try{await c.mutateAsync({scope:r,name:n.trim(),value:o,description:u.trim()||void 0}),y.success(`Secret "${n.trim()}" created`),p()}catch(v){y.error(v instanceof Error?v.message:"Failed to create secret")}}return t.jsx($,{open:s,onOpenChange:m=>{m?e(m):p()},children:t.jsxs(I,{className:"sm:max-w-lg",children:[t.jsxs(O,{children:[t.jsx(A,{children:"New secret"}),t.jsx(R,{children:"Stored encrypted in the credential vault. Choose who can read it."})]}),t.jsxs("form",{onSubmit:h,className:"space-y-4",children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(g,{htmlFor:"secret-scope",children:"Scope"}),t.jsxs(B,{value:r,onValueChange:m=>a(m),children:[t.jsx(V,{id:"secret-scope",children:t.jsx(L,{})}),t.jsxs(q,{children:[t.jsx(C,{value:"organization",children:"Organization — visible to all members"}),t.jsx(C,{value:"user",children:"Private — only visible to me"})]})]})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(g,{htmlFor:"secret-name",children:"Name"}),t.jsx(N,{id:"secret-name",value:n,onChange:m=>i(m.target.value),placeholder:"STRIPE_API_KEY",autoComplete:"off",required:!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"Letters, digits, underscore, dot, hyphen. Case-insensitive within its scope."})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(g,{htmlFor:"secret-value",children:"Value"}),t.jsx(N,{id:"secret-value",type:"password",value:o,onChange:m=>d(m.target.value),autoComplete:"new-password",required:!0})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(g,{htmlFor:"secret-description",children:"Description (optional)"}),t.jsx(K,{id:"secret-description",value:u,onChange:m=>l(m.target.value),rows:2,placeholder:"What is this secret used for?"})]}),t.jsxs(T,{children:[t.jsx(S,{type:"button",variant:"outline",onClick:p,disabled:c.isPending,children:"Cancel"}),t.jsx(S,{type:"submit",disabled:c.isPending||!n.trim()||!o,children:c.isPending?"Creating…":"Create secret"})]})]})]})})}function X(){const s=f.c(21),e=Y(),[r,a]=j.useState(!1);if(e.length===0){let l;s[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(U,{onCreate:()=>a(!0)}),s[0]=l):l=s[0];let c;return s[1]!==r?(c=t.jsxs(t.Fragment,{children:[l,t.jsx(_,{open:r,onOpenChange:a})]}),s[1]=r,s[2]=c):c=s[2],c}let n,i,o;if(s[3]!==e){const l=e.filter(se),c=e.filter(te),x=e.length===1?"":"s";let p;s[7]!==e.length||s[8]!==x?(p=t.jsxs("p",{className:"text-sm text-muted-foreground",children:[e.length," secret",x," stored"]}),s[7]=e.length,s[8]=x,s[9]=p):p=s[9];let h;s[10]===Symbol.for("react.memo_cache_sentinel")?(h=()=>a(!0),s[10]=h):h=s[10];let m;s[11]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsxs(S,{onClick:h,size:"sm",children:[t.jsx(z,{size:14}),"New secret"]}),s[11]=m):m=s[11],s[12]!==p?(n=t.jsxs("div",{className:"flex items-center justify-between",children:[p,m]}),s[12]=p,s[13]=n):n=s[13],i=l.length>0?t.jsxs("section",{className:"rounded-2xl border border-border/60 bg-background p-5",children:[t.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Organization"}),t.jsx("div",{children:l.map(ee)})]}):null,o=c.length>0?t.jsxs("section",{className:"rounded-2xl border border-border/60 bg-background p-5",children:[t.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Private to me"}),t.jsx("div",{children:c.map(Z)})]}):null,s[3]=e,s[4]=n,s[5]=i,s[6]=o}else n=s[4],i=s[5],o=s[6];let d;s[14]!==r?(d=t.jsx(_,{open:r,onOpenChange:a}),s[14]=r,s[15]=d):d=s[15];let u;return s[16]!==n||s[17]!==i||s[18]!==o||s[19]!==d?(u=t.jsxs(t.Fragment,{children:[n,i,o,d]}),s[16]=n,s[17]=i,s[18]=o,s[19]=d,s[20]=u):u=s[20],u}function Z(s){return t.jsx(D,{secret:s},s.id)}function ee(s){return t.jsx(D,{secret:s},s.id)}function te(s){return s.scope==="user"}function se(s){return s.scope==="organization"}function re(){const s=f.c(2);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(b.Title,{children:"Secrets"}),s[0]=e):e=s[0];let r;return s[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(b,{children:t.jsx(b.Content,{children:t.jsx(b.Body,{children:t.jsxs(W,{children:[e,t.jsx(P,{fallback:ne,children:t.jsx(j.Suspense,{fallback:t.jsx(H,{className:"h-32 w-full"}),children:t.jsx(X,{})})})]})})})}),s[1]=r):r=s[1],r}function ne(s){const{error:e}=s;return t.jsx(M,{error:e??new Error("Failed to load secrets")})}function Oe(){const s=f.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(J,{capability:"secrets:manage",area:"secrets",children:t.jsx(re,{})}),s[0]=e):e=s[0],e}export{Oe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as T,j as t,r as Q,B as je,l as Se}from"./index-Bo3JNDr-.js";import{i as be}from"./ChevronRight-rpdEZJUq.js";import{E as fe}from"./agent-icon-BKyPZSrU.js";import{S as ue}from"./scroll-area-CKvBXrNm.js";import{r as Ne,c as ke,u as _e,a as we,i as Ce,d as Te,f as Fe,P as Ee,S as Re}from"./page-seo-form-DXk-FMdG.js";import{j as ze}from"./index-5X0_pyXB.js";import{a as ge}from"./Tool01-CcCi4KvQ.js";import{s as xe}from"./schema-form-CZZ44g0g.js";import"./AlertCircle-msrZcybq.js";import"./SwitchHorizontal01-lNhGk_hy.js";import"./RefreshCcw01-D05DrWxG.js";import"./XCircle-BB0lZzsa.js";import"./ArrowUpRight-Byrpe9WP.js";import"./ZapSquare-CNqz5kEa.js";import"./Users03-BHZni5n9.js";import"./CheckCircle-DSS55ngx.js";import"./Check-Jqq0Xl3a.js";import"./ChevronDown-BSX6I-22.js";import"./ChevronLeft-WDS7c9Oj.js";import"./ChevronUp-CZxdSjaK.js";import"./DotsVertical-oDmXH8rL.js";import"./Container-Ds9oBR1K.js";import"./Eye-DBlsn1hC.js";import"./ZoomOut-DMw3YmC-.js";import"./Globe01-jNcghhQz.js";import"./FilterLines-Bl-ckLoL.js";import"./Star01-DlcdN00s.js";import"./Palette-DW9tW514.js";import"./HardDrive-DEvNg8yq.js";import"./Stars02-B_dlwxCr.js";import"./Key01-zn3UtDG9.js";import"./LayoutLeft-CqI5nVLL.js";import"./LinkExternal01-D0jjtfJs.js";import"./Monitor01-DthONXqr.js";import"./Sun-BqBChjnU.js";import"./Play-ERiPM4DA.js";import"./Plus-CFWiqWHN.js";import"./SearchMd-Dki_7scv.js";import"./Settings02-DaFOyqDZ.js";import"./Shield01-0VPaG49X.js";import"./Stars01-Bc7S8o1J.js";import"./Trash01-BxTQxIdp.js";import"./Upload01-DX71wpXa.js";import"./User01-Nh_tiNpg.js";import"./Users01-BwVZocdt.js";import"./XClose-PQOZtIep.js";import"./X-ss5Xz1Et.js";import"./Zap-B2IJIN30.js";import"./select-DUXB6LHg.js";import"./tooltip-DiB01_WS.js";import"./label-D6vCqN0W.js";import"./switch-Bf2tQWC3.js";import"./agent-capabilities-Dgku04Fj.js";import"./chat-context-D6r0VrdY.js";import"./tab-id-Z7cJvW4r.js";import"./constants-DnLx7qAL.js";import"./decopilot-sse-pool-DldV1nWG.js";import"./create-sse-subscription-BS5983N4.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./use-virtual-mcp-Cf2-Lb_Q.js";import"./use-collections-D1vJ7KDI.js";import"./use-ai-providers-BjPpexbU.js";import"./use-organization-settings-BUiVq2US.js";import"./pair-xjLo0yuO.js";import"./format-time-Cy7tTmZp.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DJBZ7llF.js";import"./file-type-icon-aIKNVhBg.js";import"./dialog-C_ezrgSP.js";import"./content-blocks-o63cs2vh.js";import"./types-CPIf7aKP.js";import"./shell-layout-CR4v7ckW.js";import"./avatar-DO0XQWG0.js";import"./required-auth-layout-B_-dVCbU.js";import"./useRouterState-jE6zoz2C.js";import"./use-org-sso-BQ_zhmY7.js";import"./integration-icon-Sjhpbwvw.js";import"./use-navigate-to-agent-ChUqlb7q.js";import"./use-connection-DdLSeZAg.js";import"./use-mcp-prompts-DTnBUNSR.js";import"./form-CkEhbzy7.js";import"./input-pRrhjAXj.js";import"./spinner-DykCTvUx.js";import"./drawer-BXY4BcX7.js";import"./collection-search-B16Qll3H.js";import"./tabs-C4QJjUKZ.js";import"./toggle-group-DNr9xMf4.js";import"./connect-desktop-dialog-CQieKA-J.js";import"./agent-icons-LDbRdVXw.js";import"./checkbox-lq9fHOVc.js";import"./skeleton-BWZ-ns9j.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Udn4AewC.js";import"./card-BBYtsRQu.js";import"./popover-DCPb5csG.js";import"./command-BFdTdJIk.js";import"./index-CB3uLwGL.js";import"./useInfiniteQuery-B-1Io71h.js";import"./infiniteQueryObserver-DDvMhEnM.js";import"./sortable.esm-IvhH0Iiq.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-C9_ODHSl.js";import"./use-registry-connections-D60Z6_by.js";import"./extract-connection-data-DA0TusY7.js";import"./generate-id-DaY0KVY7.js";import"./collections-CfqnSWiG.js";import"./collection-tabs-D2P_kf5B.js";import"./badge-URBzLEND.js";import"./textarea-CRDofezZ.js";import"./connection-form-helpers-c057Q0nC.js";import"./use-infinite-scroll-BO_ygUIj.js";import"./useSuspenseInfiniteQuery-Do8GUcN_.js";import"./index-BzKJxpwN.js";import"./dropdown-menu-Dh2MQHLA.js";import"./question-004-sINsf4GQ.js";import"./shell-route-loading-DsuTmhLJ.js";import"./sidebar-K8V064sc.js";import"./sheet-APxs0kGR.js";import"./toolbar-CC3BF_Yz.js";import"./use-create-virtual-mcp-tcowS75Z.js";import"./github-repo-picker-CdHH9nCY.js";import"./use-mcp-tools--TbVUEHw.js";import"./alert-dialog-CdMTKexh.js";import"./index-SuF349z9.js";import"./use-org-auth-client-CVHBFmlC.js";import"./hover-card-BCAj_Xd_.js";import"./task-status-C_c_TK_P.js";import"./use-status-sounds-rIt45hGE.js";import"./empty-state-2i4c7wH5.js";import"./resizable-Cigu4A4t.js";import"./use-capability-B8Eh6LHX.js";import"./header-tab-button-0jfaFdUX.js";import"./index-tKIVUSzL.js";import"./user-B2olHrh6.js";import"./tools-list-B9w2rXkH.js";import"./use-debounced-autosave-E8kOZ2rg.js";import"./index-C3nMRDmD.js";import"./search-input-BcAmdKUD.js";import"./use-secrets-q3tZhEWP.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./accordion-DUAiTQ1X.js";import"./view-mode-toggle-DJ96lxjY.js";import"./select-model-RkJ8YMBz.js";import"./use-automations-BBSTcglu.js";import"./monaco-editor-Bjbp__XB.js";import"./automation-runs-CM6KeAFb.js";import"./table-DU3PQ5SO.js";import"./use-members-CP2TjOkz.js";import"./automation-list-row-Dyfpfy2H.js";import"./calendar-D2iLp4AZ.js";import"./image-field--SXcw0ky.js";import"./use-file-configs-D5IgpPGg.js";function U(n){return typeof n=="string"&&n.trim()?n:void 0}function he(n,e){if(n){if(e)try{const i=new URL(n,e).href;return xe(i)}catch{return}return xe(n)}}function Pe(n){if(!n)return{};const e=U(n.title),i=U(n.titleTemplate);return{title:e&&i?.includes("%s")?i.replace(/%s/g,e):e,description:U(n.description),image:U(n.image),favicon:U(n.favicon)}}function Oe(n){if(!n)return"example.com";try{return new URL(n).host}catch{return"example.com"}}const Z="Your page title",ee="Your meta description will appear here.",Le=[{id:"google",label:"Google",color:"#4285F4",layout:"search"},{id:"facebook",label:"Facebook",color:"#1877F2",layout:"card"},{id:"twitter",label:"X (Twitter)",color:"#0f1419",layout:"card"},{id:"linkedin",label:"LinkedIn",color:"#0A66C2",layout:"card"},{id:"whatsapp",label:"WhatsApp",color:"#25D366",layout:"chat"},{id:"telegram",label:"Telegram",color:"#229ED9",layout:"chat"},{id:"slack",label:"Slack",color:"#611f69",layout:"attachment"},{id:"discord",label:"Discord",color:"#5865F2",layout:"attachment"}];function pe(n){const e=T.c(10),{src:i,className:r,iconSize:h}=n,a=h===void 0?20:h;if(i){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={objectFit:"cover"},e[0]=m):m=e[0];let p;return e[1]!==r||e[2]!==i?(p=t.jsx("img",{src:i,alt:"",referrerPolicy:"no-referrer",className:r,style:m}),e[1]=r,e[2]=i,e[3]=p):p=e[3],p}let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=s):s=e[4];let o;e[5]!==a?(o=t.jsx(ge,{size:a}),e[5]=a,e[6]=o):o=e[6];let l;return e[7]!==r||e[8]!==o?(l=t.jsx("div",{className:r,style:s,children:o}),e[7]=r,e[8]=o,e[9]=l):l=e[9],l}function $e(n){const e=T.c(27),{seo:i,host:r,path:h}=n;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={background:"#fff",border:"1px solid #dadce0"},e[0]=a):a=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#f1f3f4"},e[1]=s):s=e[1];let o;e[2]!==i.favicon?(o=t.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:s,children:i.favicon?t.jsx("img",{src:i.favicon,alt:"",className:"size-full object-cover"}):t.jsx(ge,{size:12,color:"#9aa0a6"})}),e[2]=i.favicon,e[3]=o):o=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l={color:"#202124"},e[4]=l):l=e[4];let m;e[5]!==r?(m=t.jsx("div",{className:"truncate text-[13px] leading-tight",style:l,children:r}),e[5]=r,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#4d5156"},e[7]=p):p=e[7];let d;e[8]!==r||e[9]!==h?(d=t.jsxs("div",{className:"truncate text-[12px] leading-tight",style:p,children:[r,h]}),e[8]=r,e[9]=h,e[10]=d):d=e[10];let c;e[11]!==m||e[12]!==d?(c=t.jsxs("div",{className:"min-w-0",children:[m,d]}),e[11]=m,e[12]=d,e[13]=c):c=e[13];let g;e[14]!==o||e[15]!==c?(g=t.jsxs("div",{className:"flex items-center gap-2",children:[o,c]}),e[14]=o,e[15]=c,e[16]=g):g=e[16];let f;e[17]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#1a0dab"},e[17]=f):f=e[17];const x=i.title??Z;let u;e[18]!==x?(u=t.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:f,children:x}),e[18]=x,e[19]=u):u=e[19];let j;e[20]===Symbol.for("react.memo_cache_sentinel")?(j={color:"#4d5156"},e[20]=j):j=e[20];const v=i.description??ee;let y;e[21]!==v?(y=t.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:j,children:v}),e[21]=v,e[22]=y):y=e[22];let S;return e[23]!==u||e[24]!==y||e[25]!==g?(S=t.jsxs("div",{className:"rounded-lg p-3 text-left",style:a,children:[g,u,y]}),e[23]=u,e[24]=y,e[25]=g,e[26]=S):S=e[26],S}function De(n){const e=T.c(20),{seo:i,host:r}=n;let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h={background:"#fff",border:"1px solid #e2e8f0"},e[0]=h):h=e[0];let a;e[1]!==i.image?(a=t.jsx(pe,{src:i.image,className:"h-40 w-full"}),e[1]=i.image,e[2]=a):a=e[2];let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s={borderTop:"1px solid #e2e8f0"},e[3]=s):s=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o={color:"#8a9099"},e[4]=o):o=e[4];let l;e[5]!==r?(l=t.jsx("div",{className:"truncate text-[11px]",style:o,children:r}),e[5]=r,e[6]=l):l=e[6];let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#1c2024"},e[7]=m):m=e[7];const p=i.title??Z;let d;e[8]!==p?(d=t.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:m,children:p}),e[8]=p,e[9]=d):d=e[9];let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#60666c"},e[10]=c):c=e[10];const g=i.description??ee;let f;e[11]!==g?(f=t.jsx("div",{className:"line-clamp-2 text-[12px]",style:c,children:g}),e[11]=g,e[12]=f):f=e[12];let x;e[13]!==f||e[14]!==l||e[15]!==d?(x=t.jsxs("div",{className:"px-3 py-2",style:s,children:[l,d,f]}),e[13]=f,e[14]=l,e[15]=d,e[16]=x):x=e[16];let u;return e[17]!==x||e[18]!==a?(u=t.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:h,children:[a,x]}),e[17]=x,e[18]=a,e[19]=u):u=e[19],u}function Ie(n){const e=T.c(23),{seo:i,host:r,accent:h}=n;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={background:"#f0f2f5"},e[0]=a):a=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:{color:"#3b4045"},children:"Here's a post you might write with the link of your website:"}),e[1]=s):s=e[1];const o=`3px solid ${h}`;let l;e[2]!==o?(l={background:"#fff",borderLeft:o},e[2]=o,e[3]=l):l=e[3];let m;e[4]!==i.image?(m=t.jsx(pe,{src:i.image,className:"h-28 w-full",iconSize:18}),e[4]=i.image,e[5]=m):m=e[5];let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#1c2024"},e[6]=p):p=e[6];const d=i.title??Z;let c;e[7]!==d?(c=t.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:p,children:d}),e[7]=d,e[8]=c):c=e[8];let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g={color:"#60666c"},e[9]=g):g=e[9];const f=i.description??ee;let x;e[10]!==f?(x=t.jsx("div",{className:"line-clamp-2 text-[11px]",style:g,children:f}),e[10]=f,e[11]=x):x=e[11];let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u={color:"#8a9099"},e[12]=u):u=e[12];let j;e[13]!==r?(j=t.jsx("div",{className:"mt-0.5 text-[10px]",style:u,children:r}),e[13]=r,e[14]=j):j=e[14];let v;e[15]!==x||e[16]!==j||e[17]!==c?(v=t.jsxs("div",{className:"px-2.5 py-1.5",children:[c,x,j]}),e[15]=x,e[16]=j,e[17]=c,e[18]=v):v=e[18];let y;return e[19]!==v||e[20]!==l||e[21]!==m?(y=t.jsxs("div",{className:"rounded-lg p-2 text-left",style:a,children:[s,t.jsxs("div",{className:"overflow-hidden rounded-md",style:l,children:[m,v]})]}),e[19]=v,e[20]=l,e[21]=m,e[22]=y):y=e[22],y}function Ae(n){const e=T.c(33),{seo:i,host:r,accent:h,dark:a}=n,s=a?"#2b2d31":"#fff",o=a?"#00a8fc":"#1264a3",l=a?"#dbdee1":"#3b4045",m=a?"#949ba4":"#8a9099",p=a?"none":"1px solid #e2e8f0";let d;e[0]!==s||e[1]!==p?(d={background:s,border:p},e[0]=s,e[1]=p,e[2]=d):d=e[2];const c=`3px solid ${h}`;let g;e[3]!==c?(g={borderLeft:c,borderRadius:2},e[3]=c,e[4]=g):g=e[4];let f;e[5]!==m?(f={color:m},e[5]=m,e[6]=f):f=e[6];let x;e[7]!==r||e[8]!==f?(x=t.jsx("div",{className:"text-[10px]",style:f,children:r}),e[7]=r,e[8]=f,e[9]=x):x=e[9];let u;e[10]!==o?(u={color:o},e[10]=o,e[11]=u):u=e[11];const j=i.title??Z;let v;e[12]!==u||e[13]!==j?(v=t.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:u,children:j}),e[12]=u,e[13]=j,e[14]=v):v=e[14];let y;e[15]!==l?(y={color:l},e[15]=l,e[16]=y):y=e[16];const S=i.description??ee;let _;e[17]!==y||e[18]!==S?(_=t.jsx("div",{className:"line-clamp-2 text-[12px]",style:y,children:S}),e[17]=y,e[18]=S,e[19]=_):_=e[19];let N;e[20]!==_||e[21]!==x||e[22]!==v?(N=t.jsxs("div",{className:"min-w-0 flex-1",children:[x,v,_]}),e[20]=_,e[21]=x,e[22]=v,e[23]=N):N=e[23];let b;e[24]!==i.image?(b=t.jsx(pe,{src:i.image,className:"size-14 shrink-0 rounded",iconSize:16}),e[24]=i.image,e[25]=b):b=e[25];let k;e[26]!==N||e[27]!==b||e[28]!==g?(k=t.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:g,children:[N,b]}),e[26]=N,e[27]=b,e[28]=g,e[29]=k):k=e[29];let C;return e[30]!==k||e[31]!==d?(C=t.jsx("div",{className:"rounded-lg p-2.5 text-left",style:d,children:k}),e[30]=k,e[31]=d,e[32]=C):C=e[32],C}function Be(n){const e=T.c(17),{platform:i,seo:r,host:h,path:a}=n;let s;e[0]!==h||e[1]!==a||e[2]!==i.color||e[3]!==i.id||e[4]!==i.layout||e[5]!==r?(s=i.layout==="search"?t.jsx($e,{seo:r,host:h,path:a}):i.layout==="card"?t.jsx(De,{seo:r,host:h,path:a}):i.layout==="chat"?t.jsx(Ie,{seo:r,host:h,path:a,accent:i.color}):t.jsx(Ae,{seo:r,host:h,path:a,accent:i.color,dark:i.id==="discord"}),e[0]=h,e[1]=a,e[2]=i.color,e[3]=i.id,e[4]=i.layout,e[5]=r,e[6]=s):s=e[6];const o=s;let l;e[7]!==i.color?(l=t.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:i.color}}),e[7]=i.color,e[8]=l):l=e[8];let m;e[9]!==i.label?(m=t.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i.label}),e[9]=i.label,e[10]=m):m=e[10];let p;e[11]!==l||e[12]!==m?(p=t.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[l,m]}),e[11]=l,e[12]=m,e[13]=p):p=e[13];let d;return e[14]!==o||e[15]!==p?(d=t.jsxs("div",{children:[p,o]}),e[14]=o,e[15]=p,e[16]=d):d=e[16],d}function Ue(n){const e=T.c(17),{seo:i,url:r,path:h}=n,a=h===void 0?"/":h;let s,o,l;if(e[0]!==i||e[1]!==r){const u=Pe(i);s=u,o=he(u.image,r),l=he(u.favicon,r),e[0]=i,e[1]=r,e[2]=s,e[3]=o,e[4]=l}else s=e[2],o=e[3],l=e[4];let m;e[5]!==s||e[6]!==o||e[7]!==l?(m={...s,image:o,favicon:l},e[5]=s,e[6]=o,e[7]=l,e[8]=m):m=e[8];const p=m;let d;e[9]!==r?(d=Oe(r),e[9]=r,e[10]=d):d=e[10];const c=d,g=a==="/"?"":a;let f;e[11]!==g||e[12]!==c||e[13]!==p?(f=Le.map(u=>t.jsx(Be,{platform:u,seo:p,host:c,path:g},u.id)),e[11]=g,e[12]=c,e[13]=p,e[14]=f):f=e[14];let x;return e[15]!==f?(x=t.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:f}),e[15]=f,e[16]=x):x=e[16],x}function Di(n){const e=T.c(63),{orgSlug:i,virtualMcpId:r,branch:h,decofile:a,meta:s,target:o,previewBaseUrl:l,onSaved:m,onEditDefaultSeo:p,onBack:d}=n,c=Ne(a,o,s),g=c?.seoData,f=o.kind==="site"?"site":o.pageKey,[x,u]=Q.useState(f),[j,v]=Q.useState(null),[y,S]=Q.useState(0),[_,N]=Q.useState(void 0);x!==f&&(u(f),v(null),N(void 0),S(Me));const{persistSeo:b,persistRawSeo:k,flush:C,isPending:te}=ke({orgSlug:i,virtualMcpId:r,branch:h,target:o,resolved:c,onSaved:m}),K=o.kind==="page",ve=K?c?.rawSeoData:void 0,B=_!==void 0?_:ve,ye=K?_e(B)??void 0:void 0,w=j??ye??g??{},F=c?we(w,c):null,z=F&&(!K||Ce(B))?ze(F,s):null;let M;e[0]!==s?(M=Te(s),e[0]=s,e[1]=M):M=e[1];const oe=M;let E,G;e[2]!==a||e[3]!==w||e[4]!==s||e[5]!==o.kind?(E=o.kind==="page"?Fe(a,s)?.seoData??{}:{},G=o.kind==="page"?Ve(E,w):w,e[2]=a,e[3]=w,e[4]=s,e[5]=o.kind,e[6]=E,e[7]=G):(E=e[6],G=e[7]);const ie=G;let V;e[8]!==b||e[9]!==c||e[10]!==v?(V=R=>{if(!c)return;const de=R;v(de),b(de)},e[8]=b,e[9]=c,e[10]=v,e[11]=V):V=e[11];const se=V;let Y;e[12]!==v?(Y=()=>v(null),e[12]=v,e[13]=Y):Y=e[13];const le=Y;let H;e[14]!==S?(H=()=>S(Ke),e[14]=S,e[15]=H):H=e[15];const re=H;let W;e[16]!==C||e[17]!==d?(W=()=>{C(),d?.()},e[16]=C,e[17]=d,e[18]=W):W=e[18];const ae=W,P=o.kind==="page"?o.path:"/";let X;e[19]!==P||e[20]!==l||e[21]!==o.kind?(X=o.kind==="page"&&l?Ge(P,l):l??null,e[19]=P,e[20]=l,e[21]=o.kind,e[22]=X):X=e[22];const ne=X,ce=o.kind==="site"?"No site-level SEO block found.":c?"SEO schema not found for this page.":"Could not load page SEO.",q=K&&c,me=o.kind==="site"&&c&&z;let O;e[23]!==ae||e[24]!==o.kind||e[25]!==o.pageName?(O=o.kind==="page"?t.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[t.jsx("button",{type:"button",onClick:ae,title:o.pageName,className:"min-w-0 truncate rounded-md px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:o.pageName}),t.jsx(be,{className:"size-3 shrink-0 text-muted-foreground/60"}),t.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsx(fe,{size:16,className:"shrink-0 text-muted-foreground"}),t.jsx("span",{className:"text-sm font-medium",children:"Default SEO"}),t.jsx("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:"· applied to every page unless overridden"})]}),e[23]=ae,e[24]=o.kind,e[25]=o.pageName,e[26]=O):O=e[26];let L;e[27]!==te?(L=te&&t.jsx(Se,{size:14,className:"animate-spin text-muted-foreground"}),e[27]=te,e[28]=L):L=e[28];let $;e[29]!==p||e[30]!==o.kind?($=o.kind==="page"&&p&&t.jsxs(je,{type:"button",variant:"outline",size:"sm",onClick:p,children:[t.jsx(fe,{size:14}),"Edit default SEO"]}),e[29]=p,e[30]=o.kind,e[31]=$):$=e[31];let D;e[32]!==$||e[33]!==L?(D=t.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[L,$]}),e[32]=$,e[33]=L,e[34]=D):D=e[34];let I;e[35]!==D||e[36]!==O?(I=t.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[O,D]}),e[35]=D,e[36]=O,e[37]=I):I=e[37];let A;e[38]!==F||e[39]!==re||e[40]!==le||e[41]!==oe||e[42]!==B||e[43]!==w||e[44]!==ce||e[45]!==y||e[46]!==se||e[47]!==P||e[48]!==k||e[49]!==b||e[50]!==ie||e[51]!==ne||e[52]!==c||e[53]!==z||e[54]!==v||e[55]!==N||e[56]!==q||e[57]!==me||e[58]!==E?(A=!c||!q&&!me?t.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ce}):t.jsxs("div",{className:"flex min-h-0 flex-1",children:[t.jsx(ue,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:t.jsx("div",{className:"px-5 py-4",children:q?t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:"Empty fields inherit the default SEO. The preview shows the resolved result."}),t.jsx(Ee,{rawSeo:B,innerSeo:w,defaultResolveType:oe,seoSchema:z,activeResolveType:F,seoTypeOptions:c.seoTypeOptions,formResetKey:y,siteDefaultSeo:E,onPersistRaw:R=>{N(R),k(R)},onInnerChange:R=>{v(R),b(R)},onClearForm:le,onBumpFormKey:re})]}):z&&F&&t.jsx(Re,{schema:z,resolveType:F,value:w,formResetKey:y,onChange:se})})}),t.jsx(ue,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:t.jsx("div",{className:"@container px-5 py-4",children:t.jsx(Ue,{seo:ie,url:ne,path:P})})})]}),e[38]=F,e[39]=re,e[40]=le,e[41]=oe,e[42]=B,e[43]=w,e[44]=ce,e[45]=y,e[46]=se,e[47]=P,e[48]=k,e[49]=b,e[50]=ie,e[51]=ne,e[52]=c,e[53]=z,e[54]=v,e[55]=N,e[56]=q,e[57]=me,e[58]=E,e[59]=A):A=e[59];let J;return e[60]!==I||e[61]!==A?(J=t.jsxs("div",{className:"flex h-full w-full flex-col",children:[I,A]}),e[60]=I,e[61]=A,e[62]=J):J=e[62],J}function Ke(n){return n+1}function Me(n){return n+1}function Ge(n,e){try{return new URL(n,e).href}catch{return e}}function Ve(n,e){const i=e.__resolveType,r=n.__resolveType;if(typeof i=="string"&&typeof r=="string"&&i!==r)return{...e};const h={...n};for(const[a,s]of Object.entries(e))a!=="__resolveType"&&s!=null&&(typeof s=="string"&&s.trim()===""||(h[a]=s));return h}export{Di as SeoEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as k,a as se,j as o,B as z,bJ as X,o as Z,F as me,b as Y,a4 as we,s as fe,K as re,L as U,r as Q,bK as Se,bL as je,n as oe,f as ve,q as ke,g as he,d as Ne,$ as Oe,bM as _e,bN as le,bO as Ae,bP as Ce,S as Ee,O as Te,bQ as $e}from"./index-Bo3JNDr-.js";import{A as ge}from"./avatar-DO0XQWG0.js";import{t as ze,a as Me}from"./Users03-BHZni5n9.js";import{i as Ie,a as Fe,s as K,n as Le}from"./Stars02-B_dlwxCr.js";import{s as Pe}from"./XClose-PQOZtIep.js";import{i as q}from"./CheckCircle-DSS55ngx.js";import{i as ce}from"./FilterLines-Bl-ckLoL.js";import{i as J}from"./Zap-B2IJIN30.js";import{a as De,b as Re,c as Ke,D as qe}from"./dialog-C_ezrgSP.js";import{R as Ue}from"./required-auth-layout-B_-dVCbU.js";import{s as He,n as Ge,v as Be,A as We}from"./tab-id-Z7cJvW4r.js";import{g as Je,m as Qe,S as Ye}from"./constants-DnLx7qAL.js";import{c as Ve}from"./use-organization-settings-BUiVq2US.js";import{u as Xe}from"./use-org-sso-BQ_zhmY7.js";function Ze(t){const e=k.c(27),{orgName:n,orgSlug:s,orgLogo:r,domain:a}=t;let i;e[0]!==s?(i={mutationFn:async()=>{const x=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:s})}),v=await x.json();if(!x.ok||!v.success)throw new Error(v.error??"Failed to join organization");return v},onSuccess:x=>{window.location.href=`/${x.slug??s}`},onError:tt},e[0]=s,e[1]=i):i=e[1];const l=se(i),d=et;let c;e[2]!==r||e[3]!==n?(c=r?o.jsx(ge,{url:r,fallback:n.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(ze,{className:"h-6 w-6 text-primary"})}),e[2]=r,e[3]=n,e[4]=c):c=e[4];let m;e[5]!==n?(m=o.jsxs("h3",{className:"text-lg font-medium",children:["Join ",n,"?"]}),e[5]=n,e[6]=m):m=e[6];let u;e[7]!==a?(u=o.jsxs("p",{className:"text-sm text-muted-foreground",children:["Anyone with an ",o.jsxs("strong",{children:["@",a]})," email can join this organization."]}),e[7]=a,e[8]=u):u=e[8];let p;e[9]!==m||e[10]!==u?(p=o.jsxs("div",{className:"space-y-2",children:[m,u]}),e[9]=m,e[10]=u,e[11]=p):p=e[11];let g;e[12]!==l?(g=()=>l.mutate(),e[12]=l,e[13]=g):g=e[13];const y=l.isPending?"Joining…":`Enter ${n}`;let f;e[14]!==l.isPending||e[15]!==g||e[16]!==y?(f=o.jsx(z,{onClick:g,disabled:l.isPending,children:y}),e[14]=l.isPending,e[15]=g,e[16]=y,e[17]=f):f=e[17];let h;e[18]!==l.isPending?(h=o.jsx(z,{variant:"ghost",onClick:d,disabled:l.isPending,children:"Go to home"}),e[18]=l.isPending,e[19]=h):h=e[19];let b;e[20]!==f||e[21]!==h?(b=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,h]}),e[20]=f,e[21]=h,e[22]=b):b=e[22];let S;return e[23]!==b||e[24]!==c||e[25]!==p?(S=o.jsxs(X,{children:[c,p,b]}),e[23]=b,e[24]=c,e[25]=p,e[26]=S):S=e[26],S}function et(){window.location.href="/"}function tt(t){Z.error(t instanceof Error?t.message:"Failed to join organization")}function de(t){const e=k.c(17),{orgSlug:n,orgName:s,reason:r}=t,a=nt,i=r==="not-found",l=i?Ie:me,d=i?"Organization not found":"No access";let c;e[0]!==i||e[1]!==s||e[2]!==n?(c=i?o.jsxs(o.Fragment,{children:["We couldn't find an organization called ",o.jsx("strong",{children:n}),"."]}):o.jsxs(o.Fragment,{children:["You don't have access to ",o.jsx("strong",{children:s??n}),".",o.jsx("br",{}),"Ask an admin to invite you."]}),e[0]=i,e[1]=s,e[2]=n,e[3]=c):c=e[3];const m=c;let u;e[4]!==l?(u=o.jsx("div",{className:"bg-muted p-3 rounded-full",children:o.jsx(l,{className:"h-6 w-6 text-muted-foreground"})}),e[4]=l,e[5]=u):u=e[5];let p;e[6]!==d?(p=o.jsx("h3",{className:"text-lg font-medium",children:d}),e[6]=d,e[7]=p):p=e[7];let g;e[8]!==m?(g=o.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[8]=m,e[9]=g):g=e[9];let y;e[10]!==p||e[11]!==g?(y=o.jsxs("div",{className:"space-y-2",children:[p,g]}),e[10]=p,e[11]=g,e[12]=y):y=e[12];let f;e[13]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsx(z,{onClick:a,children:"Go to home"}),e[13]=f):f=e[13];let h;return e[14]!==u||e[15]!==y?(h=o.jsxs(X,{children:[u,y,f]}),e[14]=u,e[15]=y,e[16]=h):h=e[16],h}function nt(){window.location.href="/"}function st(t){const e=k.c(39),{invitationId:n,orgName:s,orgSlug:r,orgLogo:a}=t;let i;e[0]!==n?(i=async()=>{const O=await Y.organization.acceptInvitation({invitationId:n});if(O.error)throw new Error(O.error.message);return O.data},e[0]=n,e[1]=i):i=e[1];let l;e[2]!==r?(l=()=>{we(),window.location.href=`/${r}`},e[2]=r,e[3]=l):l=e[3];let d;e[4]!==i||e[5]!==l?(d={mutationFn:i,onSuccess:l,onError:it},e[4]=i,e[5]=l,e[6]=d):d=e[6];const c=se(d);let m;e[7]!==n?(m=async()=>{const O=await Y.organization.rejectInvitation({invitationId:n});if(O.error)throw new Error(O.error.message);return O.data},e[7]=n,e[8]=m):m=e[8];let u;e[9]===Symbol.for("react.memo_cache_sentinel")?(u=at,e[9]=u):u=e[9];let p;e[10]!==m?(p={mutationFn:m,onSuccess:u,onError:ot},e[10]=m,e[11]=p):p=e[11];const g=se(p),y=c.isPending||g.isPending;let f;e[12]!==a||e[13]!==s?(f=a?o.jsx(ge,{url:a,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(Fe,{className:"h-6 w-6 text-primary"})}),e[12]=a,e[13]=s,e[14]=f):f=e[14];let h;e[15]!==s?(h=o.jsxs("h3",{className:"text-lg font-medium",children:["You've been invited to ",o.jsx("strong",{children:s})]}),e[15]=s,e[16]=h):h=e[16];let b;e[17]===Symbol.for("react.memo_cache_sentinel")?(b=o.jsx("p",{className:"text-sm text-muted-foreground",children:"Accept the invitation to join this organization."}),e[17]=b):b=e[17];let S;e[18]!==h?(S=o.jsxs("div",{className:"space-y-2",children:[h,b]}),e[18]=h,e[19]=S):S=e[19];let x;e[20]!==c?(x=()=>c.mutate(),e[20]=c,e[21]=x):x=e[21];const v=c.isPending?"Accepting…":"Accept invitation";let _;e[22]!==y||e[23]!==x||e[24]!==v?(_=o.jsx(z,{onClick:x,disabled:y,children:v}),e[22]=y,e[23]=x,e[24]=v,e[25]=_):_=e[25];let N;e[26]!==g?(N=()=>g.mutate(),e[26]=g,e[27]=N):N=e[27];const w=g.isPending?"Declining…":"Decline";let A;e[28]!==y||e[29]!==N||e[30]!==w?(A=o.jsx(z,{variant:"ghost",onClick:N,disabled:y,children:w}),e[28]=y,e[29]=N,e[30]=w,e[31]=A):A=e[31];let C;e[32]!==_||e[33]!==A?(C=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,A]}),e[32]=_,e[33]=A,e[34]=C):C=e[34];let E;return e[35]!==S||e[36]!==C||e[37]!==f?(E=o.jsxs(X,{children:[f,S,C]}),e[35]=S,e[36]=C,e[37]=f,e[38]=E):E=e[38],E}function ot(t){Z.error(t instanceof Error?t.message:"Failed to decline invitation")}function at(){Z.success("Invitation declined"),window.location.href="/"}function it(t){Z.error(t instanceof Error?t.message:"Failed to accept invitation")}function rt(t){const e=k.c(7);let n;e[0]!==t?(n=re.orgAccessStatus(t),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==t?(s=async()=>{const a=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!a.ok)throw new Error(`org-access-status failed (${a.status})`);return await a.json()},e[2]=t,e[3]=s):s=e[3];let r;return e[4]!==n||e[5]!==s?(r={queryKey:n,queryFn:s,refetchOnWindowFocus:!1},e[4]=n,e[5]=s,e[6]=r):r=e[6],fe(r)}function lt({orgSlug:t}){const{data:e}=rt(t);return(e.status==="not-found"||e.status==="no-access")&&localStorage.getItem(U.lastOrgSlug())===t?(localStorage.removeItem(U.lastOrgSlug()),window.location.href="/",null):e.status==="not-found"?o.jsx(de,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?o.jsx(st,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?o.jsx(Ze,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="member"?(window.location.reload(),null):o.jsx(de,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function ct(t){const e=k.c(20),{release:n,onCtaClick:s,onLearnMoreClick:r}=t;let a;e[0]!==n.eyebrow?(a=n.eyebrow&&o.jsx("p",{className:"text-xs text-muted-foreground",children:n.eyebrow}),e[0]=n.eyebrow,e[1]=a):a=e[1];let i;e[2]!==n.title?(i=o.jsx("h3",{className:"text-base font-semibold text-foreground",children:n.title}),e[2]=n.title,e[3]=i):i=e[3];let l;e[4]!==a||e[5]!==i?(l=o.jsxs("div",{children:[a,i]}),e[4]=a,e[5]=i,e[6]=l):l=e[6];let d;e[7]!==n.bullets?(d=n.bullets.map(dt),e[7]=n.bullets,e[8]=d):d=e[8];let c;e[9]!==d?(c=o.jsx("ul",{className:"flex flex-col gap-3",children:d}),e[9]=d,e[10]=c):c=e[10];let m;e[11]!==s||e[12]!==r||e[13]!==n.cta||e[14]!==n.learnMoreHref?(m=(n.cta||n.learnMoreHref)&&o.jsxs("div",{className:"flex items-center justify-between pt-1",children:[n.learnMoreHref?o.jsx("a",{href:n.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:r,className:"text-xs text-muted-foreground hover:text-foreground underline-offset-2 hover:underline",children:"Learn More"}):o.jsx("span",{}),n.cta&&o.jsx(z,{asChild:!0,size:"sm",onClick:s,children:o.jsx("a",{href:n.cta.href,children:n.cta.label})})]}),e[11]=s,e[12]=r,e[13]=n.cta,e[14]=n.learnMoreHref,e[15]=m):m=e[15];let u;return e[16]!==l||e[17]!==c||e[18]!==m?(u=o.jsxs("div",{className:"flex flex-col gap-3",children:[l,c,m]}),e[16]=l,e[17]=c,e[18]=m,e[19]=u):u=e[19],u}function dt(t,e){return o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx(t.icon,{size:20,className:"text-muted-foreground mt-0.5 shrink-0"}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),o.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const pe=[{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:q,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:K,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:J,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:K,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:q,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:J,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:K,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:q,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:J,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:K,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:ce,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:q,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:Me,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:J,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:q,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:K,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:ce,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:K,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:Le,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],V="studio.release-feed.v1",ae=new Set;let I="",F={},ie=!1;function ut(){if(ie)return I||"{}";try{return localStorage.getItem(V)??"{}"}catch{return I||"{}"}}function ye(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function ue(){const t=ut();return t!==I&&(I=t,F=ye(t)),F}function mt(t){ae.add(t);const e=n=>{if(!(n.key!==V&&n.key!==null)){try{const s=localStorage.getItem(V)??"{}",a={...ye(s),...F};F=a,I=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{ae.delete(t),window.removeEventListener("storage",e)}}function ft(t){F=t,I=JSON.stringify(t);try{localStorage.setItem(V,I),ie=!1}catch{ie=!0}ae.forEach(e=>e())}function ht(){const t=k.c(7),e=Q.useSyncExternalStore(mt,ue,ue);let n;t[0]!==e?(n=d=>!!e[d],t[0]=e,t[1]=n):n=t[1];const s=n,r=gt;let a;t[2]!==e?(a=pe.reduce((d,c)=>e[c.id]?d:d+1,0),t[2]=e,t[3]=a):a=t[3];const i=a;let l;return t[4]!==s||t[5]!==i?(l={isSeen:s,markSeen:r,unseenCount:i},t[4]=s,t[5]=i,t[6]=l):l=t[6],l}function gt(t){F[t]||ft({...F,[t]:{seenAt:new Date().toISOString()}})}const pt=720*60*60*1e3;function yt(t){const[e,n,s]=t.split("-").map(Number);return!e||!n||!s?new Date(t).getTime():new Date(e,n-1,s).getTime()}function bt(t){const e=pe[0];if(!e)return null;const n=yt(e.date),s=t-n;return s<0||s>pt?null:e}function xt(){const t=k.c(21),{isSeen:e,markSeen:n}=ht();let s,r,a;if(t[0]!==e){a=Symbol.for("react.early_return_sentinel");e:{if(s=bt(Date.now()),!s){a=null;break e}r=e(s.id)}t[0]=e,t[1]=s,t[2]=r,t[3]=a}else s=t[1],r=t[2],a=t[3];if(a!==Symbol.for("react.early_return_sentinel"))return a;if(r)return null;let i;t[4]!==s.id||t[5]!==n?(i=()=>n(s.id),t[4]=s.id,t[5]=n,t[6]=i):i=t[6];let l;t[7]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(Pe,{size:14}),t[7]=l):l=t[7];let d;t[8]!==i?(d=o.jsx(z,{size:"icon",variant:"ghost","aria-label":"Dismiss release announcement",className:"absolute right-2 top-2 size-7 text-muted-foreground",onClick:i,children:l}),t[8]=i,t[9]=d):d=t[9];let c,m;t[10]!==s.id||t[11]!==n?(c=()=>n(s.id),m=()=>n(s.id),t[10]=s.id,t[11]=n,t[12]=c,t[13]=m):(c=t[12],m=t[13]);let u;t[14]!==s||t[15]!==c||t[16]!==m?(u=o.jsx(ct,{release:s,onCtaClick:c,onLearnMoreClick:m}),t[14]=s,t[15]=c,t[16]=m,t[17]=u):u=t[17];let p;return t[18]!==d||t[19]!==u?(p=o.jsxs("div",{role:"dialog","aria-label":"Release announcement",className:"fixed bottom-6 right-6 z-50 w-[min(360px,calc(100vw-3rem))] rounded-lg border border-border bg-background p-4 shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[d,u]}),t[18]=d,t[19]=u,t[20]=p):p=t[20],p}const be=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),M=be?"⌘":"Ctrl",$={keyboardShortcuts:{keys:[M,"K"],description:"Keyboard shortcuts"},focusChatInput:{keys:[M,"L"],description:"Focus chat input"},saveAndFormat:{keys:[M,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[M,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[M,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",M,"S"],description:"New task"},toggleDaemon:{keys:[M,"D"],description:"Toggle daemon logs"}},wt=[{label:"General",shortcuts:[$.keyboardShortcuts,$.newTask,$.toggleDaemon]},{label:"Editor",shortcuts:[$.saveAndFormat]},{label:"Chat",shortcuts:[$.focusChatInput,$.togglePlanMode,$.sendMessage,$.newLine]},{label:"Questions",shortcuts:[$.selectOption]},{label:"Monitoring",shortcuts:[$.applyFilter]}];function St(t){return be?t.metaKey:t.ctrlKey}function jt(t){const e=k.c(5),{open:n,onOpenChange:s}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(Re,{children:o.jsx(Ke,{children:"Keyboard Shortcuts"})}),e[0]=r):r=e[0];let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsxs(De,{className:"sm:max-w-md",children:[r,o.jsx("div",{className:"flex flex-col gap-4",children:wt.map(vt)})]}),e[1]=a):a=e[1];let i;return e[2]!==s||e[3]!==n?(i=o.jsx(qe,{open:n,onOpenChange:s,children:a}),e[2]=s,e[3]=n,e[4]=i):i=e[4],i}function vt(t){return o.jsxs("div",{children:[o.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),o.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(kt)})]},t.label)}function kt(t){return o.jsxs("div",{className:"flex items-center justify-between py-1",children:[o.jsx("span",{className:"text-sm",children:t.description}),o.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Nt)})]},t.description)}function Nt(t){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}function Ot({activeOrg:t}){return t&&(Se(t.id,{name:t.name??void 0,slug:t.slug??void 0}),je()),null}function _t(t,e,n){if(!n)return null;const s=He(t,e);return s?s.threads.get().find(a=>a.id===n)?.branch??null:null}function xe(t){return{queryKey:re.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function Yt(t){const e=k.c(10);let n;e[0]!==t?(n=xe(t),e[0]=t,e[1]=n):n=e[1];const s=oe(n);let r;e[2]!==s.data?.prompts?(r=s.data?.prompts??[],e[2]=s.data?.prompts,e[3]=r):r=e[3];let a;e[4]!==s.data?.tiles?(a=s.data?.tiles??[],e[4]=s.data?.tiles,e[5]=a):a=e[5];let i;return e[6]!==s.isLoading||e[7]!==r||e[8]!==a?(i={isLoading:s.isLoading,prompts:r,tiles:a},e[6]=s.isLoading,e[7]=r,e[8]=a,e[9]=i):i=e[9],i}function At(t){const e=k.c(17),{orgSlug:n,orgName:s,domain:r}=t;let a;e[0]!==n?(a=()=>{window.location.href=`/api/${encodeURIComponent(n)}/sso/authorize`},e[0]=n,e[1]=a):a=e[1];const i=a,l=Ct;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(me,{className:"h-6 w-6 text-primary"})}),e[2]=d):d=e[2];let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx("h3",{className:"text-lg font-medium",children:"SSO Authentication Required"}),e[3]=c):c=e[3];let m;e[4]!==r||e[5]!==s?(m=s?o.jsxs(o.Fragment,{children:[o.jsx("strong",{children:s})," requires SSO authentication",r?` via ${r}`:"","."]}):"This organization requires SSO authentication to access.",e[4]=r,e[5]=s,e[6]=m):m=e[6];let u;e[7]!==m?(u=o.jsxs("div",{className:"space-y-2",children:[c,o.jsx("p",{className:"text-sm text-muted-foreground",children:m})]}),e[7]=m,e[8]=u):u=e[8];let p;e[9]!==i?(p=o.jsx(z,{onClick:i,children:"Sign in with SSO"}),e[9]=i,e[10]=p):p=e[10];let g;e[11]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsx(z,{variant:"ghost",onClick:l,children:"Go back"}),e[11]=g):g=e[11];let y;e[12]!==p?(y=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[p,g]}),e[12]=p,e[13]=y):y=e[13];let f;return e[14]!==u||e[15]!==y?(f=o.jsxs(X,{children:[d,u,y]}),e[14]=u,e[15]=y,e[16]=f):f=e[16],f}function Ct(){window.location.href="/"}function Et(t){const e=k.c(8),{org:n,children:s}=t,a=Ve(n.id,n.slug)?.enabled_plugins??null;let i;e[0]!==n.id||e[1]!==n.name||e[2]!==a?(i={id:n.id,organizationId:n.id,slug:"_org",name:n.name,enabledPlugins:a,ui:null},e[0]=n.id,e[1]=n.name,e[2]=a,e[3]=i):i=e[3];const l=i;let d;return e[4]!==s||e[5]!==n||e[6]!==l?(d=o.jsx($e,{org:n,project:l,children:s}),e[4]=s,e[5]=n,e[6]=l,e[7]=d):d=e[7],d}function Tt(){const t=ve(),e=Ge(),{org:n,locator:s}=ke(),r=he({strict:!1}),a=Ne({strict:!1}),i=r.org??"",l=r.taskId??"",d=(f,h,b=!0)=>t({to:"/$org/$taskId",params:{org:i,taskId:f},search:h,replace:b}),c=(f,h=!0)=>d(l,f,h),m=f=>c(h=>({...h,chat:f?1:0})),u=(f,h,b)=>d(f,S=>{const x={chat:1};h?x.virtualmcpid=h:S.virtualmcpid&&(x.virtualmcpid=S.virtualmcpid);const v=S.main;return v&&typeof v=="string"&&!Be(v)&&(x.main=v),b?.autosend&&(x.autosend=We),x},!1);return{setChatOpen:m,setTaskId:u,createNewTask:async f=>{const h=crypto.randomUUID(),b=f??a.virtualmcpid??Je(n.id).id,x=b===a.virtualmcpid?_t(n.slug,s,l):null;try{await e?.create({id:h,virtual_mcp_id:b,...x?{branch:x}:{}})}catch{}u(h,b)},openTab:f=>d(l||crypto.randomUUID(),h=>({...h,main:f})),toggleMain:()=>c(f=>{if(f.main!==void 0&&f.main!=="0")return{...f,main:"0"};const b={...f};return delete b.main,b})}}function $t(){const t=k.c(51);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const s=Oe(e)?.params.org;let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},t[1]=r):r=t[1];const{taskId:a}=he(r),[i,l]=Q.useState(!1),d=s??"";let c;t[2]!==d?(c=xe(d),t[2]=d,t[3]=c):c=t[3];const m=!!s&&!a;let u;t[4]!==c||t[5]!==m?(u={...c,enabled:m},t[4]=c,t[5]=m,t[6]=u):u=t[6],oe(u);const{data:p}=Y.useSession(),g=p?.user?.id;let y;t[7]!==s||t[8]!==g?(y=s&&g?_e(g,s):null,t[7]=s,t[8]=g,t[9]=y):y=t[9];const f=y;let h,b;t[10]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{const j=T=>{St(T)&&T.code==="KeyK"&&(T.preventDefault(),l(!0))};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},b=[],t[10]=h,t[11]=b):(h=t[10],b=t[11]),Q.useEffect(h,b);let S;t[12]!==s?(S=re.activeOrganization(s),t[12]=s,t[13]=S):S=t[13];let x;t[14]!==s||t[15]!==g?(x=async()=>{if(!s)return null;performance.mark("mesh:active-org-fetch:start");const{data:j}=await Y.organization.getFullOrganization({query:{organizationSlug:s}}).finally(zt),T=le(j);return j&&!T&&localStorage.setItem(U.lastOrgSlug(),s),g&&j&&Ce(g,s,j),j},t[14]=s,t[15]=g,t[16]=x):x=t[16];const v=f?f.data:void 0,_=f?.updatedAt;let N;t[17]!==x||t[18]!==v||t[19]!==_||t[20]!==S?(N={queryKey:S,queryFn:x,initialData:v,initialDataUpdatedAt:_,gcTime:1/0,refetchOnWindowFocus:!1},t[17]=x,t[18]=v,t[19]=_,t[20]=S,t[21]=N):N=t[21];const{data:w}=fe(N),A=w?.id,C=w?.slug,{data:E}=Xe(A,C),O=A??"",ee=C??"";let L;t[22]!==O||t[23]!==ee?(L=Qe({connectionId:Ye,orgId:O,orgSlug:ee}),t[22]=O,t[23]=ee,t[24]=L):L=t[24];const te=!!A&&!!C;let H;if(t[25]!==L||t[26]!==te?(H={...L,enabled:te},t[25]=L,t[26]=te,t[27]=H):H=t[27],oe(H),!w){let j;t[28]===Symbol.for("react.memo_cache_sentinel")?(j=o.jsx(Ee,{}),t[28]=j):j=t[28];let T;return t[29]!==s?(T=o.jsx(Q.Suspense,{fallback:j,children:o.jsx(lt,{orgSlug:s})}),t[29]=s,t[30]=T):T=t[30],T}if(le(w)){localStorage.getItem(U.lastOrgSlug())===s&&localStorage.removeItem(U.lastOrgSlug());let j;return t[31]!==w.name?(j=o.jsx(Ae,{orgName:w.name}),t[31]=w.name,t[32]=j):j=t[32],j}if(E?.ssoRequired&&!E.authenticated){let j;return t[33]!==w.id||t[34]!==w.name||t[35]!==w.slug||t[36]!==E.domain?(j=o.jsx(At,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:E.domain}),t[33]=w.id,t[34]=w.name,t[35]=w.slug,t[36]=E.domain,t[37]=j):j=t[37],j}const ne=w.logo??null;let P;t[38]!==w||t[39]!==ne?(P={...w,logo:ne},t[38]=w,t[39]=ne,t[40]=P):P=t[40];let D;t[41]!==w?(D=o.jsx(Ot,{activeOrg:w}),t[41]=w,t[42]=D):D=t[42];let G,B;t[43]===Symbol.for("react.memo_cache_sentinel")?(G=o.jsx(Te,{}),B=o.jsx(xt,{}),t[43]=G,t[44]=B):(G=t[43],B=t[44]);let R;t[45]!==i?(R=o.jsx(jt,{open:i,onOpenChange:l}),t[45]=i,t[46]=R):R=t[46];let W;return t[47]!==P||t[48]!==D||t[49]!==R?(W=o.jsxs(Et,{org:P,children:[D,G,B,R]}),t[47]=P,t[48]=D,t[49]=R,t[50]=W):W=t[50],W}function zt(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Mt(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(Ue,{children:o.jsx($t,{})}),t[0]=e):e=t[0],e}const Vt=Object.freeze(Object.defineProperty({__proto__:null,default:Mt,usePanelActions:Tt},Symbol.toStringTag,{value:"Module"}));export{$ as K,pe as R,ht as a,ct as b,Yt as c,xe as h,St as i,_t as r,Vt as s,Tt as u};
|