decocms 3.25.0 → 3.26.1
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-Bqe9viNc.js → AlertCircle-BDfUS-lh.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-DSJTBxm2.js → ArrowUpRight-8daK_Mrm.js} +1 -1
- package/dist/client/assets/{Check-BnJpSMJo.js → Check-C9-fsV6-.js} +1 -1
- package/dist/client/assets/{CheckCircle-BX_gETYO.js → CheckCircle-B_rVd_l8.js} +1 -1
- package/dist/client/assets/{ChevronDown-BppEhMel.js → ChevronDown--2U1gfXf.js} +1 -1
- package/dist/client/assets/{ChevronLeft-DFMCd-a0.js → ChevronLeft-TttN4toV.js} +1 -1
- package/dist/client/assets/{ChevronRight-D3aPPa0h.js → ChevronRight-BVEygGVH.js} +1 -1
- package/dist/client/assets/{ChevronUp-CFAV8eH4.js → ChevronUp-C-xaVM7d.js} +1 -1
- package/dist/client/assets/{Container-BxiofVLO.js → Container-Bso4WS0x.js} +1 -1
- package/dist/client/assets/{DotsVertical-MvF5BRo4.js → DotsVertical-Q3F6UWC_.js} +1 -1
- package/dist/client/assets/{Eye-C2_wkHsS.js → Eye-CKz6zS_m.js} +1 -1
- package/dist/client/assets/{FilterLines-zpFRWfW1.js → FilterLines-SKQT-eWL.js} +1 -1
- package/dist/client/assets/{Globe01-7yTOqooU.js → Globe01-iupU5eqh.js} +1 -1
- package/dist/client/assets/{HardDrive-BqhrNwPc.js → HardDrive-DpuvbJvr.js} +1 -1
- package/dist/client/assets/{Key01-CZ1WE5u9.js → Key01-6eW9IRFT.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CkKuDYxX.js → LayoutLeft-BkxKKkMX.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Bv1R0txp.js → LinkExternal01-BXhdtlT7.js} +1 -1
- package/dist/client/assets/{Monitor01-CjEFZhoQ.js → Monitor01-DUICZH5i.js} +1 -1
- package/dist/client/assets/{Palette-C0YKHo-H.js → Palette-CS36Icvl.js} +1 -1
- package/dist/client/assets/{Play-Bnk3nlrR.js → Play-CbbqvWPd.js} +1 -1
- package/dist/client/assets/{Plus-bJ4eCWMb.js → Plus-CSNkL1o7.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-AFHENUb2.js → RefreshCcw01-Dncu-kYd.js} +1 -1
- package/dist/client/assets/{SearchMd-P44Pa_Ws.js → SearchMd-B-q2EsGW.js} +1 -1
- package/dist/client/assets/{Settings02-CjUx5kgh.js → Settings02-CdJ0CKrL.js} +1 -1
- package/dist/client/assets/{Shield01-AMtJFXTs.js → Shield01-Crgp73nV.js} +1 -1
- package/dist/client/assets/{Star01-D08HvSzg.js → Star01-CN33xE6w.js} +1 -1
- package/dist/client/assets/{Stars01-BtHUDu3d.js → Stars01-BXO9Nc4-.js} +1 -1
- package/dist/client/assets/{Stars02-j2QyerFd.js → Stars02-B4CoQ82E.js} +1 -1
- package/dist/client/assets/{Sun-BCMNGCUL.js → Sun-CEzPQTAJ.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CTqaEL16.js → SwitchHorizontal01-BI_yHGXL.js} +1 -1
- package/dist/client/assets/{Tool01-LBGr-o2L.js → Tool01-R6WyaXsu.js} +1 -1
- package/dist/client/assets/{Trash01-GIxhGpdM.js → Trash01-C3pnsiws.js} +1 -1
- package/dist/client/assets/{Upload01-HJMOrbdA.js → Upload01-BHsRhr7X.js} +1 -1
- package/dist/client/assets/{User01-Ba6C8JiT.js → User01-JuGE_kA7.js} +1 -1
- package/dist/client/assets/{Users01-JA2IEd8Z.js → Users01-BVUwP6xk.js} +1 -1
- package/dist/client/assets/{Users03-VgU2nGrS.js → Users03-Bek4Ag3W.js} +1 -1
- package/dist/client/assets/{X-CWOXhugP.js → X-BdwzFded.js} +1 -1
- package/dist/client/assets/{XCircle-DXxtO-hk.js → XCircle-D_3MYOn4.js} +1 -1
- package/dist/client/assets/{XClose-DipFToCd.js → XClose-Da5LgJSi.js} +1 -1
- package/dist/client/assets/{Zap-gGoaPzAk.js → Zap-DHBAOmqP.js} +1 -1
- package/dist/client/assets/{ZapSquare-RS_iGKj9.js → ZapSquare-CP91cLS8.js} +1 -1
- package/dist/client/assets/{ZoomOut-DEJOu-nF.js → ZoomOut-CaG3Pd1Z.js} +1 -1
- package/dist/client/assets/{access-gate-Cum4q9T4.js → access-gate-AjUY-gkn.js} +1 -1
- package/dist/client/assets/{accordion-BGZU3zsj.js → accordion-JZC0q2Q6.js} +1 -1
- package/dist/client/assets/{add-section-modal-hVJoRdC3.js → add-section-modal-B5en9ngD.js} +1 -1
- package/dist/client/assets/{agent-capabilities-B2p6Iq1c.js → agent-capabilities-gx2lqG9R.js} +2 -2
- package/dist/client/assets/{agent-icon-C3EOHwyt.js → agent-icon-DAPplz1A.js} +1 -1
- package/dist/client/assets/{agent-icons-DoaIG1Og.js → agent-icons-Dk-aO0GI.js} +1 -1
- package/dist/client/assets/{agents-list-k6Vpppqq.js → agents-list-Cqp5uusD.js} +1 -1
- package/dist/client/assets/{ai-providers-Dt6XNXQt.js → ai-providers-DLs4iaPF.js} +1 -1
- package/dist/client/assets/{alert-CfLQWKTN.js → alert-C04qeSRO.js} +1 -1
- package/dist/client/assets/{alert-dialog-DJkWj_YQ.js → alert-dialog-Q8M8ngFf.js} +2 -2
- package/dist/client/assets/app-editor-CNA09iLR.js +1 -0
- package/dist/client/assets/{auth-catchall-D7TtPVhr.js → auth-catchall-BbuGVKd9.js} +1 -1
- package/dist/client/assets/{auth-split-layout-B5Cqv_Zb.js → auth-split-layout-sY7FyVQz.js} +1 -1
- package/dist/client/assets/{automation-list-row-C75G9IZd.js → automation-list-row-BRsSmcOA.js} +1 -1
- package/dist/client/assets/{automation-runs-BbrT_sbh.js → automation-runs-gdpRnoA6.js} +1 -1
- package/dist/client/assets/{automations-Dk8hBXFu.js → automations-zDSrpko2.js} +1 -1
- package/dist/client/assets/{avatar-Dfbf1Fnl.js → avatar-BqNGZrFg.js} +1 -1
- package/dist/client/assets/{badge-DmYlNLqB.js → badge-BBLSXFe0.js} +1 -1
- package/dist/client/assets/{brand-context-Bqt85Kan.js → brand-context-Be4M-ZZ_.js} +1 -1
- package/dist/client/assets/{buckets-2go2DgZu.js → buckets-D-k7xX4_.js} +1 -1
- package/dist/client/assets/{calendar-CbQPL3PN.js → calendar-CfY7gp-n.js} +1 -1
- package/dist/client/assets/{capability-load-error-B1lEaqFi.js → capability-load-error-CjE005FF.js} +1 -1
- package/dist/client/assets/{card-D1lqBJ4_.js → card-D41ULrnf.js} +1 -1
- package/dist/client/assets/{chat-context-Bq0R1rsi.js → chat-context-BFmJRDzy.js} +1 -1
- package/dist/client/assets/{checkbox-DN2qTA4b.js → checkbox-CBmcFqoh.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DLu7o-Q1.js → cli-auth-success-BcBQhgvD.js} +1 -1
- package/dist/client/assets/{collection-detail-DKEI7Sjg.js → collection-detail-kkp2noDH.js} +1 -1
- package/dist/client/assets/{collection-display-button-BDAT0a4w.js → collection-display-button-BNfKMIgL.js} +1 -1
- package/dist/client/assets/{collection-search-Bgc7wDNW.js → collection-search-CDLcWLfd.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-B3cugJnk.js → collection-table-wrapper-DrTvLn6R.js} +1 -1
- package/dist/client/assets/{collection-tabs-W1wumDmu.js → collection-tabs-CbZbTMYY.js} +1 -1
- package/dist/client/assets/{collections-BhVZMUxl.js → collections-BxDJ4z3g.js} +1 -1
- package/dist/client/assets/{command-DQohn3xq.js → command-B8qtKAnE.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-CIUi-8P6.js → connect-desktop-dialog-CDUh5Otr.js} +1 -1
- package/dist/client/assets/{connection-card-DbfCQCjU.js → connection-card-CSsbMtfE.js} +1 -1
- package/dist/client/assets/{connection-detail-9PJ4jMVe.js → connection-detail-E_AC0EPN.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-ByQWXd9g.js → connection-form-helpers-BonOFyzw.js} +1 -1
- package/dist/client/assets/{connections-TQXObTI0.js → connections-Ca9YMoFm.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DVc5wWE5.js → decopilot-sse-pool-BHhoQKaF.js} +1 -1
- package/dist/client/assets/{dialog-BjBvO_RE.js → dialog-Cwf6uY_y.js} +1 -1
- package/dist/client/assets/{domain-settings-Co_7-8MU.js → domain-settings-oLlPZ4Z3.js} +1 -1
- package/dist/client/assets/{drawer-xRy0PfXv.js → drawer-CF0b7Dg3.js} +1 -1
- package/dist/client/assets/{dropdown-menu-41clH4_2.js → dropdown-menu-UGlYpK18.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-Dt37NwH5.js → dynamic-plugin-layout-V_3blVro.js} +1 -1
- package/dist/client/assets/{empty-state-Byo8XhHL.js → empty-state-CoXt5rYF.js} +1 -1
- package/dist/client/assets/{empty-state-CLEsbaRV.js → empty-state-h_qXtgbw.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CW-yl44E.js → extract-connection-data-BKeaLULt.js} +1 -1
- package/dist/client/assets/{features-BH4ydQ5Y.js → features-u4e9ViPZ.js} +1 -1
- package/dist/client/assets/{file-explorer-BxCKHziq.js → file-explorer-BHKOSo2p.js} +1 -1
- package/dist/client/assets/{file-type-icon-OHIV6XfY.js → file-type-icon-7TqtrpuQ.js} +1 -1
- package/dist/client/assets/{files-OdVS0D1Q.js → files-C9p4yssc.js} +1 -1
- package/dist/client/assets/{form-DnC3aZLe.js → form-Bbpyf2N_.js} +1 -1
- package/dist/client/assets/{general-P_bTyfQ4.js → general-DqO6G3WI.js} +1 -1
- package/dist/client/assets/generate-id-BHe5yw90.js +1 -0
- package/dist/client/assets/{github-repo-picker-eEjdCzr6.js → github-repo-picker-CVG2zsbh.js} +1 -1
- package/dist/client/assets/{header-tab-button-B6jIYo3h.js → header-tab-button-t5WNjrVG.js} +1 -1
- package/dist/client/assets/{hover-card-CmFc_zSW.js → hover-card-Azyk5Kxa.js} +1 -1
- package/dist/client/assets/{image-field-BwqDweYz.js → image-field-CXkzTwa7.js} +1 -1
- package/dist/client/assets/{index-Bf325NPB.js → index-B_tO_wVS.js} +1 -1
- package/dist/client/assets/{index-DEch32me.js → index-Bjie-Vum.js} +1 -1
- package/dist/client/assets/{index-C3hJb0ZV.js → index-CAs8iq4o.js} +1 -1
- package/dist/client/assets/{index-B_nawhey.js → index-CiRQNPVt.js} +30 -30
- package/dist/client/assets/{index-m5HVp-zM.js → index-Co-NpkaC.js} +1 -1
- package/dist/client/assets/{index-KRfgd_mw.js → index-CwyiLbkO.js} +1 -1
- package/dist/client/assets/{index-cf8DF4P4.js → index-DCeOX6CY.js} +1 -1
- package/dist/client/assets/{index-CBRCa04d.js → index-DJTEqPXf.js} +1 -1
- package/dist/client/assets/{index-CXSe86w1.js → index-DbpajCnQ.js} +1 -1
- package/dist/client/assets/{index-bV9dH20x.js → index-DcI1sEv_.js} +1 -1
- package/dist/client/assets/{index-D78ayl48.js → index-Dci2MWs9.js} +1 -1
- package/dist/client/assets/{index-CpcMawMi.js → index-DkWynf6r.js} +4 -4
- package/dist/client/assets/{index-C0QzQWES.js → index-f0X8ef8k.js} +1 -1
- package/dist/client/assets/{index-redirect-C3wiHCdS.js → index-redirect-D6d28r6b.js} +1 -1
- package/dist/client/assets/{index-0gNnK46r.js → index-skFG1_ns.js} +1 -1
- package/dist/client/assets/{index-BsnDDKqQ.js → index-sqqDCA0K.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-C2JPBb8M.js → infiniteQueryObserver-BND7fiNU.js} +1 -1
- package/dist/client/assets/{input-BQYvQQmK.js → input-D3E6n6la.js} +1 -1
- package/dist/client/assets/{integration-icon-BM7kbpro.js → integration-icon-vaGvNHHz.js} +1 -1
- package/dist/client/assets/{label-y0QhV7ts.js → label-DLUhXNk7.js} +1 -1
- package/dist/client/assets/{layout-D7P0jQsp.js → layout-PdamBSR0.js} +1 -1
- package/dist/client/assets/{login-B9Y8jUEx.js → login-CX7WJC_U.js} +1 -1
- package/dist/client/assets/{members-DqPGTe_-.js → members-Bw9vSm5N.js} +1 -1
- package/dist/client/assets/{monaco-editor-BDrxLbvA.js → monaco-editor-Bgzj9gt4.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CWT4G01g.js → monitoring-stats-row-DOXVZiRZ.js} +1 -1
- package/dist/client/assets/{oauth-callback-CSxAEiUN.js → oauth-callback-Cfp_JeoH.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-pUHbjwnp.js → oauth-callback-ai-provider-DOmF-VOd.js} +1 -1
- package/dist/client/assets/{onboarding-BsB2nJJs.js → onboarding-C4KH1uOA.js} +1 -1
- package/dist/client/assets/{org-install-D8AVJ3Gx.js → org-install-CrBGOT0T.js} +1 -1
- package/dist/client/assets/{org-layout-C68fADIM.js → org-layout-BCdmD1Ye.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-DVp9fjGI.js → org-plugin-layout-shv3-lWc.js} +1 -1
- package/dist/client/assets/{page-seo-form-DYfTnJJU.js → page-seo-form-qANN0Bj1.js} +1 -1
- package/dist/client/assets/page-seo-sheet-D4wNk0RY.js +1 -0
- package/dist/client/assets/{pair-D81m9l4c.js → pair-CpEuUIpQ.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-CoBuu-O-.js → plugin-empty-state-CrO1kZyK.js} +1 -1
- package/dist/client/assets/{plugin-header-BdhTYuym.js → plugin-header-DTTyXwvF.js} +1 -1
- package/dist/client/assets/{plugin-layout-BvBBtcxt.js → plugin-layout-CXygrV9H.js} +1 -1
- package/dist/client/assets/{popover-ClBabfjo.js → popover-C1MgHMHU.js} +1 -1
- package/dist/client/assets/{post-editor-DMqQLray.js → post-editor-aLUVDKW-.js} +1 -1
- package/dist/client/assets/{primitives-BcrelvwD.js → primitives-BBsQqWkR.js} +1 -1
- package/dist/client/assets/{profile-pNtu72fH.js → profile-CjQ0lj2q.js} +1 -1
- package/dist/client/assets/{project-app-view-BJpmAQlI.js → project-app-view-Br1j175t.js} +1 -1
- package/dist/client/assets/record-editor-QHa9iaw5.js +1 -0
- package/dist/client/assets/registry-BkLh6mX8.js +2 -0
- package/dist/client/assets/{registry-layout-DrdJK7fh.js → registry-layout-CHn-aQtX.js} +1 -1
- package/dist/client/assets/{require-capability-DEQ8z8TG.js → require-capability-vzDtNqMc.js} +1 -1
- package/dist/client/assets/{required-auth-layout-GCCMKqzE.js → required-auth-layout-BE5eceMw.js} +1 -1
- package/dist/client/assets/{reset-password-Cdhj9Xqc.js → reset-password-8Qbe0fKB.js} +1 -1
- package/dist/client/assets/{resizable-0IcT3C2W.js → resizable-CrMJy22o.js} +1 -1
- package/dist/client/assets/{roles-Jku8Z7fc.js → roles-BRTHcf_Y.js} +1 -1
- package/dist/client/assets/save-referenced-block-CBTtXYiM.js +1 -0
- package/dist/client/assets/{save-status-Bx4NQo-s.js → save-status-BZf4M3tc.js} +1 -1
- package/dist/client/assets/{schema-form-DOwHW4Rx.js → schema-form-DNuUk0WJ.js} +1 -1
- package/dist/client/assets/{scroll-area-DGnRnGOq.js → scroll-area-verb-Y8E.js} +1 -1
- package/dist/client/assets/{search-input-Bj5q8eRS.js → search-input-CZKc9XZR.js} +1 -1
- package/dist/client/assets/{secrets-DLZuwT5f.js → secrets-ScbIQJha.js} +1 -1
- package/dist/client/assets/{sections-editor-20GBd0_V.js → sections-editor-CysGozit.js} +1 -1
- package/dist/client/assets/{select-BY9dWtN2.js → select-BMX9jvQG.js} +1 -1
- package/dist/client/assets/{select-model-BlM2XcDg.js → select-model-BB2-8k_v.js} +1 -1
- package/dist/client/assets/{seo-editor-C79bc77c.js → seo-editor-gLS5nwCw.js} +1 -1
- package/dist/client/assets/{settings-layout-D8Jzsms_.js → settings-layout-EdgjO8iZ.js} +1 -1
- package/dist/client/assets/{settings-section-DXGZWaeI.js → settings-section-CQW36fJV.js} +1 -1
- package/dist/client/assets/{sheet-CB7vtAPo.js → sheet-Utq51ofH.js} +1 -1
- package/dist/client/assets/{shell-controls-Dvnep6B4.js → shell-controls-CXM2LvTp.js} +1 -1
- package/dist/client/assets/shell-layout-3b4NfWya.js +1 -0
- package/dist/client/assets/{shell-route-loading-2LkVR3tm.js → shell-route-loading-DSfyT3dO.js} +1 -1
- package/dist/client/assets/{sidebar-PzlYMcQE.js → sidebar-BBqRosV0.js} +1 -1
- package/dist/client/assets/{skeleton-CFjcOYm0.js → skeleton-dQOYuNlQ.js} +1 -1
- package/dist/client/assets/{sortable.esm-DG614r2i.js → sortable.esm-D7AgS_lX.js} +1 -1
- package/dist/client/assets/{spinner-Btb8jTA0.js → spinner-_hqWpG0c.js} +1 -1
- package/dist/client/assets/{sso-ByUtBKFo.js → sso-Cg_UsaPg.js} +1 -1
- package/dist/client/assets/{store-jATXNsAl.js → store-BIRCadh0.js} +1 -1
- package/dist/client/assets/store-registry-Duulq-Qg.js +2 -0
- package/dist/client/assets/{switch-g6aqZqU3.js → switch-CTAzWsjZ.js} +1 -1
- package/dist/client/assets/{tab-id-9JO9-egr.js → tab-id-C7unjelb.js} +1 -1
- package/dist/client/assets/{table-D2cg-KVI.js → table-BuLHtfTA.js} +1 -1
- package/dist/client/assets/{tabs-BI9x307Z.js → tabs-DVd_y6YL.js} +1 -1
- package/dist/client/assets/{task-status-BZSQv5kk.js → task-status-5oHTrkjV.js} +1 -1
- package/dist/client/assets/{textarea-BsPxrCug.js → textarea-D1h5iq3D.js} +1 -1
- package/dist/client/assets/{toggle-group-CJaT_Vnh.js → toggle-group-vA7ktrP-.js} +1 -1
- package/dist/client/assets/{toolbar-CbvmZJ4C.js → toolbar-D3G0G9U8.js} +1 -1
- package/dist/client/assets/{tools-list-Cm3GXtuv.js → tools-list-BL4u8QMN.js} +1 -1
- package/dist/client/assets/{tooltip-bsaPK7gB.js → tooltip-C47QSg8i.js} +1 -1
- package/dist/client/assets/{types-DttTrJQW.js → types-Df_Z2FUK.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BiBg5CM1.js → use-ai-providers-Bwbur0GT.js} +1 -1
- package/dist/client/assets/{use-automations-e3JyM0ax.js → use-automations-B9mdkXiu.js} +1 -1
- package/dist/client/assets/{use-capability-AcV6adZX.js → use-capability-1uxC8-oZ.js} +1 -1
- package/dist/client/assets/{use-collections-D0Mhj1aL.js → use-collections-B1Mg9Y32.js} +1 -1
- package/dist/client/assets/{use-connection-Bj9rnrdo.js → use-connection-DpxWBF4Y.js} +1 -1
- package/dist/client/assets/{use-copy-KGjJlCff.js → use-copy-B_uLjrw6.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-eQDp981K.js → use-create-virtual-mcp-BBxov1Li.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DDVm7mBb.js → use-debounced-autosave-DDZnxori.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DZTkduyg.js → use-delete-connection-eQCNxdaR.js} +1 -1
- package/dist/client/assets/{use-file-configs-Cdxeg5wu.js → use-file-configs-o-LP0Blk.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CJ7jIcHc.js → use-infinite-scroll-D8iZFAEQ.js} +1 -1
- package/dist/client/assets/{use-list-state-CcoIMeA1.js → use-list-state-BkETzhj1.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BKIu0HJG.js → use-mcp-client-D0A6RZFw.js} +4 -4
- package/dist/client/assets/{use-mcp-prompts-g6zS7_Ms.js → use-mcp-prompts-BuV5LRNr.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CxpOcIgL.js → use-mcp-tools-BTzw-W77.js} +1 -1
- package/dist/client/assets/{use-members-BudVf6Ne.js → use-members-DDVaE5yQ.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Ce7HkwaN.js → use-navigate-to-agent-Drh7z3D_.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-zsZCCnQZ.js → use-org-auth-client-BlGBETGB.js} +1 -1
- package/dist/client/assets/{use-org-sso-ZUPasYDO.js → use-org-sso-nq4qWMpD.js} +1 -1
- package/dist/client/assets/{use-organization-roles-C8619txJ.js → use-organization-roles-i1o2TOl8.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BjiafnfB.js → use-organization-settings-PADdytdf.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BW4fbNrw.js → use-registry-connections-C0VEE_YX.js} +1 -1
- package/dist/client/assets/{use-secrets-Dh3xnwwI.js → use-secrets-DZDUsUGC.js} +1 -1
- package/dist/client/assets/{use-status-sounds-Cq5xnCap.js → use-status-sounds-DR8WA3PU.js} +1 -1
- package/dist/client/assets/{use-view-mode-CcmdNF5a.js → use-view-mode-BpduDYTq.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-aknX9Mk2.js → use-virtual-mcp-DciRKx1X.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-C1jLiRqA.js +1 -0
- package/dist/client/assets/{useRouterState-C0h4Q9bW.js → useRouterState-BXwm4DCl.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CHLM-3cW.js +1 -0
- package/dist/client/assets/{user-R8lbEkl7.js → user-DaO6RYsc.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BUn6mIJL.js → view-mode-toggle-B-ZBNJWV.js} +1 -1
- package/dist/client/assets/{workflow-d32R8JBw.js → workflow-C3zNP9N8.js} +1 -1
- package/dist/client/assets/workflow-detail-CFwJ5L9v.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +129 -103
- package/dist/server/server.js +91 -91
- package/package.json +1 -1
- package/dist/client/assets/app-editor-Bfo_GWpe.js +0 -1
- package/dist/client/assets/generate-id-BeS6ETIJ.js +0 -1
- package/dist/client/assets/page-seo-sheet-DnK64voV.js +0 -1
- package/dist/client/assets/record-editor-DFbMFtaU.js +0 -1
- package/dist/client/assets/registry-DqQxLqpx.js +0 -2
- package/dist/client/assets/save-referenced-block-DGpRvAAs.js +0 -1
- package/dist/client/assets/shell-layout-D7Deazyc.js +0 -1
- package/dist/client/assets/store-registry-Ce368v29.js +0 -2
- package/dist/client/assets/useInfiniteQuery-BbB0NaH6.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DmwdwiHd.js +0 -1
- package/dist/client/assets/workflow-detail-BjCwIEbs.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as u,n as S,G as l,a as y,K as c}from"./index-
|
|
1
|
+
import{e as u,n as S,G as l,a as y,K as c}from"./index-CiRQNPVt.js";function w(o,a){const e=u.c(8);let s;e[0]!==o?(s=c.orgSsoStatus(o??""),e[0]=o,e[1]=s):s=e[1];let t;e[2]!==a?(t=async()=>{const r=await fetch(`/api/${a}/sso/status`);if(!r.ok)throw new Error("Failed to check SSO status");return r.json()},e[2]=a,e[3]=t):t=e[3];const n=!!o&&!!a;let i;return e[4]!==s||e[5]!==t||e[6]!==n?(i={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=i):i=e[7],S(i)}function q(o,a){const e=u.c(8);let s;e[0]!==o?(s=c.orgSsoConfig(o??""),e[0]=o,e[1]=s):s=e[1];let t;e[2]!==a?(t=async()=>{const r=await fetch(`/api/${a}/sso/config`);if(!r.ok)throw new Error("Failed to fetch SSO config");return r.json()},e[2]=a,e[3]=t):t=e[3];const n=!!o&&!!a;let i;return e[4]!==s||e[5]!==t||e[6]!==n?(i={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=i):i=e[7],S(i)}function C(o,a){const e=u.c(8),s=l();let t;e[0]!==a?(t=async r=>{const f=await fetch(`/api/${a}/sso/config`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!f.ok){const p=await f.json();throw new Error(p.error||"Failed to save SSO config")}return f.json()},e[0]=a,e[1]=t):t=e[1];let n;e[2]!==o||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(o)}),s.invalidateQueries({queryKey:c.orgSsoStatus(o)})},e[2]=o,e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==t||e[6]!==n?(i={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=i):i=e[7],y(i)}function O(o,a){const e=u.c(8),s=l();let t;e[0]!==a?(t=async()=>{const r=await fetch(`/api/${a}/sso/config`,{method:"DELETE"});if(!r.ok)throw new Error("Failed to delete SSO config");return r.json()},e[0]=a,e[1]=t):t=e[1];let n;e[2]!==o||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(o)}),s.invalidateQueries({queryKey:c.orgSsoStatus(o)})},e[2]=o,e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==t||e[6]!==n?(i={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=i):i=e[7],y(i)}function m(o,a){const e=u.c(8),s=l();let t;e[0]!==a?(t=async r=>{const f=await fetch(`/api/${a}/sso/config/enforce`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enforced:r})});if(!f.ok)throw new Error("Failed to toggle SSO enforcement");return f.json()},e[0]=a,e[1]=t):t=e[1];let n;e[2]!==o||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(o)}),s.invalidateQueries({queryKey:c.orgSsoStatus(o)})},e[2]=o,e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==t||e[6]!==n?(i={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=i):i=e[7],y(i)}export{q as a,C as b,O as c,m as d,w as u};
|
package/dist/client/assets/{use-organization-roles-C8619txJ.js → use-organization-roles-i1o2TOl8.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as R}from"./use-org-auth-client-
|
|
1
|
+
import{u as R}from"./use-org-auth-client-BlGBETGB.js";import{q as b,n as P,K as y}from"./index-CiRQNPVt.js";const w=[{value:"owner",label:"Owner",isBuiltin:!0},{value:"admin",label:"Admin",isBuiltin:!0},{value:"user",label:"User",isBuiltin:!0}];function B(t){return t.replace(/-/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function O(t){if(!t)return{staticPermissions:[],allowsAllStaticPermissions:!1,connectionIds:[],allowsAllConnections:!1,toolNames:[],allowsAllTools:!1,modelCount:0,allowsAllModels:!1};const n=[];let i=!1;const u=[];let c=!1;const a=new Set;let s=!1,f=0,e=!1;for(const[l,o]of Object.entries(t)){if(l==="self"){o.includes("*")?i=!0:n.push(...o);continue}if(l==="models"){o.includes("*:*")?e=!0:f=o.length;continue}if(l==="*"){if(c=!0,o.includes("*"))s=!0;else for(const r of o)a.add(r);continue}if(u.push(l),o.includes("*"))s=!0;else for(const r of o)a.add(r)}return{staticPermissions:n,allowsAllStaticPermissions:i,connectionIds:u,allowsAllConnections:c,toolNames:Array.from(a),allowsAllTools:s,modelCount:f,allowsAllModels:e}}function I(){const{locator:t}=b(),n=R(),{data:i,isLoading:u,error:c,refetch:a}=P({queryKey:y.organizationRoles(t),queryFn:async()=>{try{const e=await n.organization.listRoles();return e?.error?(console.error("[useOrganizationRoles] API error:",e.error),[]):e?.data??[]}catch(e){return console.error("[useOrganizationRoles] Fetch error:",e),[]}},staleTime:3e4}),s=w.map(e=>({role:e.value,label:e.label,isBuiltin:e.isBuiltin}));if(i&&Array.isArray(i))for(const e of i){const l=e.role;if(!l||w.some(h=>h.value===l))continue;const{staticPermissions:o,allowsAllStaticPermissions:r,connectionIds:g,allowsAllConnections:m,toolNames:p,allowsAllTools:d,modelCount:C,allowsAllModels:A}=O(e.permission);s.push({id:e.id,role:l,label:B(l),isBuiltin:!1,permission:e.permission??void 0,staticPermissionCount:r?-1:o.length,allowsAllStaticPermissions:r,connectionCount:m?-1:g.length,allowsAllConnections:m,toolCount:d?-1:p.length,allowsAllTools:d,modelCount:A?-1:C,allowsAllModels:A})}const f=s.filter(e=>!e.isBuiltin);return{roles:s,customRoles:f,builtinRoles:s.filter(e=>e.isBuiltin),isLoading:u,error:c,refetch:a}}export{I as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{K as g,e as c,q as _,n as z,G as C,a as G,r as P}from"./index-
|
|
1
|
+
import{K as g,e as c,q as _,n as z,G as C,a as G,r as P}from"./index-CiRQNPVt.js";import{S as h,u as A,W as R}from"./use-mcp-client-D0A6RZFw.js";const S={organizationId:"",sidebar_items:null,enabled_plugins:null,registry_config:null,simple_mode:null,default_home_agents:null},N={tiers:{fast:null,smart:null,thinking:null,image:null,web_research:null}};function O(t,e){return{queryKey:g.organizationSettings(e),queryFn:async()=>{const n=await t.callTool({name:"ORGANIZATION_SETTINGS_GET",arguments:{}});return n?.isError?{...S,organizationId:e}:n.structuredContent??{...S,organizationId:e}},staleTime:6e4}}function E(t){const e=c.c(9),{org:n}=_();let s;e[0]!==n.id||e[1]!==n.slug?(s={connectionId:h,orgId:n.id,orgSlug:n.slug},e[0]=n.id,e[1]=n.slug,e[2]=s):s=e[2];const r=A(s);let i;e[3]!==r||e[4]!==n.id?(i=O(r,n.id),e[3]=r,e[4]=n.id,e[5]=i):i=e[5];const o=t;let a;return e[6]!==i||e[7]!==o?(a={...i,select:o},e[6]=i,e[7]=o,e[8]=a):a=e[8],z(a)}function Y(t,e){const n=c.c(6);let s;n[0]!==t||n[1]!==e?(s={connectionId:h,orgId:t,orgSlug:e},n[0]=t,n[1]=e,n[2]=s):s=n[2];const r=A(s);let i;n[3]!==r||n[4]!==t?(i=O(r,t),n[3]=r,n[4]=t,n[5]=i):i=n[5];const{data:o}=z(i);return o??null}function T(){const t=c.c(12),{org:e}=_();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:h,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const s=A(n),r=C();let i;t[3]!==s||t[4]!==e.id?(i=async l=>{const u=await s.callTool({name:"ORGANIZATION_SETTINGS_UPDATE",arguments:{organizationId:e.id,...l}});if(u?.isError)throw new Error(u.content?.[0]?.text??"Failed to update organization settings");const f=u.structuredContent;if(!f)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return f},t[3]=s,t[4]=e.id,t[5]=i):i=t[5];let o;t[6]!==e.id||t[7]!==r?(o=l=>{r.setQueryData(g.organizationSettings(e.id),u=>({...u??S,...l}))},t[6]=e.id,t[7]=r,t[8]=o):o=t[8];let a;return t[9]!==i||t[10]!==o?(a={mutationFn:i,onSuccess:o},t[9]=i,t[10]=o,t[11]=a):a=t[11],G(a)}function b(t){return t?.tiers?{tiers:{fast:t.tiers.fast??null,smart:t.tiers.smart??null,thinking:t.tiers.thinking??null,image:t.tiers.image??null,web_research:t.tiers.web_research??null}}:N}function H(){const{data:t}=E(Q);return t??N}function Q(t){return b(t.simple_mode)}function L(){const t=c.c(7),e=T();let n,s;t[0]!==e?(n=(i,o)=>e.mutate({simple_mode:i},o),s=(i,o)=>e.mutateAsync({simple_mode:i},o),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let r;return t[3]!==e||t[4]!==n||t[5]!==s?(r={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=r):r=t[6],r}function $(){const{data:t}=E(x);return t??null}function x(t){return t.registry_config}function W(){const t=c.c(7),e=T();let n,s;t[0]!==e?(n=(i,o)=>e.mutate({registry_config:i},o),s=(i,o)=>e.mutateAsync({registry_config:i},o),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let r;return t[3]!==e||t[4]!==n||t[5]!==s?(r={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=r):r=t[6],r}function Z(){const{data:t}=E(q);return t??null}function q(t){return t.default_home_agents}function U(){const t=c.c(7),e=T();let n,s;t[0]!==e?(n=(i,o)=>e.mutate({default_home_agents:i},o),s=(i,o)=>e.mutateAsync({default_home_agents:i},o),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let r;return t[3]!==e||t[4]!==n||t[5]!==s?(r={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=r):r=t[6],r}function j(){const t=c.c(14),{org:e}=_(),n=U(),s=C();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=Promise.resolve(),t[0]=r):r=t[0];const i=P.useRef(r);let o;t[1]!==e.id?(o=g.organizationSettings(e.id),t[1]=e.id,t[2]=o):o=t[2];const a=o;let l;t[3]!==a||t[4]!==s?(l=()=>s.getQueryData(a)?.default_home_agents?.ids??[],t[3]=a,t[4]=s,t[5]=l):l=t[5];const u=l;let f;t[6]!==a||t[7]!==e.slug||t[8]!==s||t[9]!==n?(f=D=>{const I=i.current.then(async()=>{const w=s.getQueryData(a),p=D(w?.default_home_agents?.ids??[]);if(p!==null){s.setQueryData(a,m=>m&&{...m,default_home_agents:{ids:p}});try{await n.mutateAsync({ids:p}),await s.refetchQueries({queryKey:g.homeNextActions(e.slug),type:"active"})}catch(m){const M=m;throw s.setQueryData(a,w),M}}});return i.current=I.catch(k),I},t[6]=a,t[7]=e.slug,t[8]=s,t[9]=n,t[10]=f):f=t[10];const y=f;let d;return t[11]!==y||t[12]!==u?(d={currentIds:u,apply:y},t[11]=y,t[12]=u,t[13]=d):d=t[13],d}function k(){}function B(){const t=c.c(5),{org:e}=_(),n=$();let s;t[0]!==e.id?(s=R.REGISTRY(e.id),t[0]=e.id,t[1]=s):s=t[1];const r=s;let i;return t[2]!==r||t[3]!==n?(i=o=>{if(!n)return o===r;const a=n.registries[o];return a?a.enabled:o===r},t[2]=r,t[3]=n,t[4]=i):i=t[4],i}export{j as a,B as b,Y as c,T as d,H as e,L as f,$ as g,W as h,O as o,Z as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as a,q as C}from"./index-
|
|
1
|
+
import{e as a,q as C}from"./index-CiRQNPVt.js";import{u as R}from"./use-connection-DpxWBF4Y.js";import{W as u}from"./use-mcp-client-D0A6RZFw.js";import{g as p}from"./use-organization-settings-PADdytdf.js";function E(){const e=a.c(17),{org:i}=C(),o=p();let n;e[0]!==i.id?(n=u.REGISTRY(i.id),e[0]=i.id,e[1]=n):n=e[1];const c=n;let l;e[2]!==i.id?(l=u.COMMUNITY_REGISTRY(i.id),e[2]=i.id,e[3]=l):l=e[3];const d=l;let r;e[4]!==d||e[5]!==c?(r=[c,d],e[4]=d,e[5]=c,e[6]=r):r=e[6];let t;if(e[7]!==o||e[8]!==r){if(t=new Set(r),o?.registries){let s;e[10]!==o.registries?(s=Object.keys(o.registries),e[10]=o.registries,e[11]=s):s=e[11];for(const m of s)t.add(m)}e[7]=o,e[8]=r,e[9]=t}else t=e[9];const g=R();let f;if(e[12]!==g||e[13]!==t){let s;e[15]!==t?(s=m=>t.has(m.id),e[15]=t,e[16]=s):s=e[16],f=g.filter(s),e[12]=g,e[13]=t,e[14]=f}else f=e[14];return f}export{E as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as a,q as c,K as d,s as y,G as C,a as E}from"./index-
|
|
1
|
+
import{e as a,q as c,K as d,s as y,G as C,a as E}from"./index-CiRQNPVt.js";import{S as g,u as m}from"./use-mcp-client-D0A6RZFw.js";import{u as f}from"./unwrap-tool-result-BYXdCQMg.js";function q(){const e=a.c(10),{org:t}=c();let l;e[0]!==t.id||e[1]!==t.slug?(l={connectionId:g,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=l):l=e[2];const o=m(l);let i;e[3]!==t.id?(i=d.secrets(t.id),e[3]=t.id,e[4]=i):i=e[4];let s;e[5]!==o?(s=async()=>{const u=await o.callTool({name:"SECRET_LIST",arguments:{}});return f(u)},e[5]=o,e[6]=s):s=e[6];let n;e[7]!==i||e[8]!==s?(n={queryKey:i,staleTime:6e4,queryFn:s},e[7]=i,e[8]=s,e[9]=n):n=e[9];const{data:r}=y(n);return r.secrets}function R(){const e=a.c(11),{org:t}=c();let l;e[0]!==t.id||e[1]!==t.slug?(l={connectionId:g,orgId:t.id,orgSlug:t.slug},e[0]=t.id,e[1]=t.slug,e[2]=l):l=e[2];const o=m(l),i=C();let s;e[3]!==o?(s=async u=>{const S=await o.callTool({name:"SECRET_CREATE",arguments:{...u}});return f(S)},e[3]=o,e[4]=s):s=e[4];let n;e[5]!==t.id||e[6]!==i?(n=()=>{i.invalidateQueries({queryKey:d.secrets(t.id)})},e[5]=t.id,e[6]=i,e[7]=n):n=e[7];let r;return e[8]!==s||e[9]!==n?(r={mutationFn:s,onSuccess:n},e[8]=s,e[9]=n,e[10]=r):r=e[10],E(r)}export{R as a,q as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,e as m,a0 as h}from"./index-
|
|
1
|
+
import{r as o,e as m,a0 as h}from"./index-CiRQNPVt.js";import{p as R,q as I}from"./question-004-sINsf4GQ.js";import{d as y,D as S}from"./decopilot-sse-pool-BHhoQKaF.js";const b=()=>0;function D(s){const{orgSlug:e,taskId:r,enabled:t=!0,onStep:n,onFinish:u,onTaskStatus:f}=s,l=o.useRef({taskId:r,onStep:n,onFinish:u,onTaskStatus:f});l.current={taskId:r,onStep:n,onFinish:u,onTaskStatus:f};const i=o.useRef(null),p=o.useRef(t),d=o.useRef(e);(!i.current||p.current!==t||d.current!==e)&&(p.current=t,d.current=e,i.current=E=>{if(!t||!e)return()=>{};const k=T=>{let a;try{a=JSON.parse(T.data)}catch{return}const c=l.current;if(!(c.taskId&&a.subject!==c.taskId)){switch(a.type){case S.STEP:c.onStep?.(a);break;case S.FINISH:c.onFinish?.(a);break;case S.THREAD_STATUS:c.onTaskStatus?.(a);break}E()}};return y.subscribe(e,k)}),o.useSyncExternalStore(i.current,b,b)}const O=new Set(["completed","failed","requires_action"]);function U(s){const e=m.c(5),[r]=h();let t;e[0]!==r?(t=u=>{r.enableSounds&&O.has(u.data.status)&&R(I.dataUri).catch(_)},e[0]=r,e[1]=t):t=e[1];let n;e[2]!==s||e[3]!==t?(n={orgSlug:s,onTaskStatus:t},e[2]=s,e[3]=t,e[4]=n):n=e[4],D(n)}function _(s){console.warn("[status-sounds] playback failed:",s)}export{U as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as p,r as f}from"./index-
|
|
1
|
+
import{e as p,r as f}from"./index-CiRQNPVt.js";import{u as w}from"./tooltip-C47QSg8i.js";function S(m,M){const e=p.c(12),u=M===void 0?"cards":M,o=w(),b=f.useRef(o),s=m?`deco-view-mode-${m}`:"deco-view-mode";let i;e[0]!==u||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:u},e[0]=u,e[1]=s,e[2]=i):i=e[2];const[t,g]=f.useState(i);let l;e[3]!==s?(l=r=>{g(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const d=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!b.current&&o&&t==="table"&&g("cards"),b.current=o},a=[o,t],e[5]=o,e[6]=t,e[7]=c,e[8]=a):(c=e[7],a=e[8]),f.useEffect(c,a);let n;return e[9]!==d||e[10]!==t?(n=[t,d],e[9]=d,e[10]=t,e[11]=n):n=e[11],n}export{S as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as a,q as d,aO as p,n as P}from"./index-
|
|
1
|
+
import{e as a,q as d,aO as p,n as P}from"./index-CiRQNPVt.js";import{b as L,a as S,u as V,c as _}from"./use-collections-B1Mg9Y32.js";import{S as g,u as I}from"./use-mcp-client-D0A6RZFw.js";function v(s){const t=a.c(5);let e;t[0]!==s?(e=s===void 0?{}:s,t[0]=s,t[1]=e):e=t[1];const n=e,{org:i}=d();let o;t[2]!==i.id||t[3]!==i.slug?(o={connectionId:g,orgId:i.id,orgSlug:i.slug},t[2]=i.id,t[3]=i.slug,t[4]=o):o=t[4];const l=I(o);return L(i.id,"VIRTUAL_MCP",l,n)}function R(s,t,e){return _(s,"VIRTUAL_MCP",t??void 0,e)}function b(s){const t=a.c(3),{org:e}=d();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const i=I(n);return V(e.id,"VIRTUAL_MCP",s??void 0,i)}function E(s){const t=a.c(15),{org:e}=d();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const i=I(n);let o,l,c;t[3]!==s||t[4]!==e.id?(o=[...s].sort(),c=P,l=p.virtualMcpLastUsed(e.id,o),t[3]=s,t[4]=e.id,t[5]=o,t[6]=l,t[7]=c):(o=t[5],l=t[6],c=t[7]);const C=o.length>0;let u;t[8]!==i||t[9]!==o?(u=async()=>{const M=(await i.callTool({name:"VIRTUAL_MCP_LAST_USED_LIST",arguments:{ids:o}})).structuredContent??{items:[]},f=new Map;for(const m of M.items)f.set(m.id,m);return f},t[8]=i,t[9]=o,t[10]=u):u=t[10];let r;return t[11]!==l||t[12]!==C||t[13]!==u?(r={queryKey:l,enabled:C,staleTime:3e4,queryFn:u},t[11]=l,t[12]=C,t[13]=u,t[14]=r):r=t[14],c(r)}function $(){const s=a.c(3),{org:t}=d();let e;s[0]!==t.id||s[1]!==t.slug?(e={connectionId:g,orgId:t.id,orgSlug:t.slug},s[0]=t.id,s[1]=t.slug,s[2]=e):e=s[2];const n=I(e);return S(t.id,"VIRTUAL_MCP",n)}export{v as a,$ as b,E as c,b as u,R as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as u}from"./infiniteQueryObserver-BND7fiNU.js";import{cG as i}from"./index-CiRQNPVt.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bo as s,r as c,
|
|
1
|
+
import{bo as s,r as c,bT as a,bU as i}from"./index-CiRQNPVt.js";function f(r){const n=s({warn:r?.router===void 0}),t=r?.router||n,u=c.useRef(void 0);return a(t.stores.__store,e=>{if(r?.select){if(r.structuralSharing??t.options.defaultStructuralSharing){const o=i(u.current,r.select(e));return u.current=o,o}return r.select(e)}return e})}export{f as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as s}from"./infiniteQueryObserver-BND7fiNU.js";import{cG as u,aF as n}from"./index-CiRQNPVt.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as S,q as b,n as C,K as k,c as y,j as t}from"./index-
|
|
1
|
+
import{e as S,q as b,n as C,K as k,c as y,j as t}from"./index-CiRQNPVt.js";import{A as E}from"./avatar-BqNGZrFg.js";import{S as A,u as _}from"./use-mcp-client-D0A6RZFw.js";function q(m){const e=S.c(12),{org:u}=b();let x;e[0]!==u.id||e[1]!==u.slug?(x={connectionId:A,orgId:u.id,orgSlug:u.slug},e[0]=u.id,e[1]=u.slug,e[2]=x):x=e[2];const g=_(x);let d;e[3]!==m?(d=k.user(m),e[3]=m,e[4]=d):d=e[4];let s;e[5]!==g||e[6]!==m?(s=async()=>{const c=await g.callTool({name:"USER_GET",arguments:{id:m}});return(c.structuredContent??c).user},e[5]=g,e[6]=m,e[7]=s):s=e[7];const l=!!m;let o;return e[8]!==d||e[9]!==s||e[10]!==l?(o={queryKey:d,queryFn:s,staleTime:3e5,retry:1,enabled:l},e[8]=d,e[9]=s,e[10]=l,e[11]=o):o=e[11],C(o)}function R(m){const e=S.c(36),{id:u,size:x,showEmail:g,avatarOnly:d,className:s}=m,l=x===void 0?"xs":x,o=g===void 0?!1:g,c=d===void 0?!1:d,{data:r,isLoading:w,isError:U}=q(u);if(w){let a;e[0]!==s?(a=y("flex items-center gap-2",s),e[0]=s,e[1]=a):a=e[1];let i;e[2]!==l?(i=t.jsx(E.Skeleton,{shape:"circle",size:l}),e[2]=l,e[3]=i):i=e[3];let n;e[4]!==c||e[5]!==o?(n=!c&&t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsx("div",{className:"h-3 w-24 bg-muted animate-pulse rounded"}),o&&t.jsx("div",{className:"h-2 w-32 bg-muted animate-pulse rounded"})]}),e[4]=c,e[5]=o,e[6]=n):n=e[6];let f;return e[7]!==a||e[8]!==i||e[9]!==n?(f=t.jsxs("div",{className:a,children:[i,n]}),e[7]=a,e[8]=i,e[9]=n,e[10]=f):f=e[10],f}if(U||!r){let a;e[11]!==s?(a=y("flex items-center gap-2",s),e[11]=s,e[12]=a):a=e[12];let i;e[13]!==l?(i=t.jsx(E,{shape:"circle",size:l,fallback:"?",muted:!0}),e[13]=l,e[14]=i):i=e[14];let n;e[15]!==c?(n=!c&&t.jsx("div",{className:"flex flex-col",children:t.jsx("div",{className:"text-sm text-muted-foreground",children:"Unknown User"})}),e[15]=c,e[16]=n):n=e[16];let f;return e[17]!==a||e[18]!==i||e[19]!==n?(f=t.jsxs("div",{className:a,children:[i,n]}),e[17]=a,e[18]=i,e[19]=n,e[20]=f):f=e[20],f}let p;e[21]!==s?(p=y("flex items-center gap-2",s),e[21]=s,e[22]=p):p=e[22];const N=r.image??void 0;let v;e[23]!==l||e[24]!==N||e[25]!==r.name?(v=t.jsx(E,{shape:"circle",size:l,url:N,fallback:r.name}),e[23]=l,e[24]=N,e[25]=r.name,e[26]=v):v=e[26];let j;e[27]!==c||e[28]!==o||e[29]!==r.email||e[30]!==r.name?(j=!c&&t.jsxs("div",{className:"flex flex-col",children:[t.jsx("div",{className:"text-sm font-medium",children:r.name}),o&&t.jsx("div",{className:"text-xs text-muted-foreground",children:r.email})]}),e[27]=c,e[28]=o,e[29]=r.email,e[30]=r.name,e[31]=j):j=e[31];let h;return e[32]!==p||e[33]!==v||e[34]!==j?(h=t.jsxs("div",{className:p,children:[v,j]}),e[32]=p,e[33]=v,e[34]=j,e[35]=h):h=e[35],h}export{R as U};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as k,r as C,c as x,j as i}from"./index-
|
|
1
|
+
import{e as k,r as C,c as x,j as i}from"./index-CiRQNPVt.js";import{b as I,T as P,a as L}from"./tooltip-C47QSg8i.js";const M={sm:{button:"size-7",icon:"size-4"},md:{button:"size-9",icon:"size-5"},lg:{button:"size-12",icon:"size-6"}};function B(S){const e=k.c(27),{value:s,onValueChange:y,options:o,size:R,fullWidth:E,className:z}=S,V=R===void 0?"sm":R,u=E===void 0?!1:E;let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b=[],e[0]=b):b=e[0];const _=C.useRef(b);let g;e[1]===Symbol.for("react.memo_cache_sentinel")?(g={left:0,width:0,opacity:0},e[1]=g):g=e[1];const[f,W]=C.useState(g);let h,p;e[2]!==o||e[3]!==s?(h=()=>{const t=o.findIndex(j=>j.value===s),m=_.current[t];m&&W({left:m.offsetLeft,width:m.offsetWidth,opacity:1})},p=[s,o],e[2]=o,e[3]=s,e[4]=h,e[5]=p):(h=e[4],p=e[5]),C.useEffect(h,p);const d=M[V];let n;e[6]!==z?(n=x("relative flex gap-0 bg-muted rounded-lg",z),e[6]=z,e[7]=n):n=e[7];let l;e[8]!==d||e[9]!==u||e[10]!==y||e[11]!==o||e[12]!==s?(l=o.map((t,m)=>{const j=i.jsxs("button",{ref:$=>{_.current[m]=$},type:"button",onClick:()=>y(t.value),className:x("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",u?"flex-1 h-12 px-4":d.button,!u&&t.label?"px-3":""),children:[i.jsx("span",{className:x("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",d.icon,s===t.value?"text-foreground":"text-muted-foreground"),children:t.icon}),t.label&&i.jsx("span",{className:x("text-xs transition-colors ease-out duration-200 whitespace-nowrap",s===t.value?"text-foreground":"text-muted-foreground"),children:t.label})]},t.value);return t.tooltip?i.jsxs(I,{children:[i.jsx(P,{asChild:!0,children:j}),i.jsx(L,{side:"bottom",children:t.tooltip})]},t.value):j}),e[8]=d,e[9]=u,e[10]=y,e[11]=o,e[12]=s,e[13]=l):l=e[13];const w=u?"h-12":d.button;let a;e[14]!==w?(a=x("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",w),e[14]=w,e[15]=a):a=e[15];const N=`${f.left}px`,T=`${f.width}px`;let r;e[16]!==f.opacity||e[17]!==N||e[18]!==T?(r={left:N,width:T,opacity:f.opacity},e[16]=f.opacity,e[17]=N,e[18]=T,e[19]=r):r=e[19];let c;e[20]!==a||e[21]!==r?(c=i.jsx("div",{className:a,style:r}),e[20]=a,e[21]=r,e[22]=c):c=e[22];let v;return e[23]!==c||e[24]!==n||e[25]!==l?(v=i.jsxs("div",{className:n,children:[l,c]}),e[23]=c,e[24]=n,e[25]=l,e[26]=v):v=e[26],v}export{B as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as oe,j as t,B as Ce,f as Be,b as ct,q as ze,r as dt,o as Le,G as mt,a as pt,K as Fe,ea as Ke,dx as ut}from"./index-B_nawhey.js";import{u as qe,S as Ve}from"./use-mcp-client-BKIu0HJG.js";import{B as ft,g as Me}from"./generate-id-BeS6ETIJ.js";import{C as Ge}from"./collection-display-button-BDAT0a4w.js";import{C as ht}from"./collection-search-Bgc7wDNW.js";import{C as gt}from"./card-D1lqBJ4_.js";import{I as Qe}from"./integration-icon-BM7kbpro.js";import{D as He,a as Je,b as Ye,c as O}from"./dropdown-menu-41clH4_2.js";import{s as Xe,a as Ze}from"./Eye-C2_wkHsS.js";import{i as et}from"./DotsVertical-MvF5BRo4.js";import{i as tt}from"./Tool01-LBGr-o2L.js";import{s as st}from"./Trash01-GIxhGpdM.js";import{C as xt}from"./collection-table-wrapper-B3cugJnk.js";import{E as Ue}from"./empty-state-CLEsbaRV.js";import{n as We}from"./Stars02-j2QyerFd.js";import{U as jt}from"./user-R8lbEkl7.js";import{E as it}from"./empty-state-Byo8XhHL.js";import{u as Ct}from"./use-list-state-CcoIMeA1.js";import{g as bt}from"./connection-slug-eyAPH6o3.js";import{f as vt,g as yt,c as Nt,b as wt,d as St,e as Pt,a as _t,A as Dt}from"./alert-dialog-DJkWj_YQ.js";import{a as It,b as At}from"./use-collections-D0Mhj1aL.js";import{a as Tt}from"./use-connection-Bj9rnrdo.js";import{s as Et}from"./Plus-bJ4eCWMb.js";import{a as Ot}from"./layout-D7P0jQsp.js";import{P as je}from"./index-D78ayl48.js";import"./collections-BhVZMUxl.js";import"./SwitchHorizontal01-CTqaEL16.js";import"./Check-BnJpSMJo.js";import"./tooltip-bsaPK7gB.js";import"./view-mode-toggle-BUn6mIJL.js";import"./badge-DmYlNLqB.js";import"./SearchMd-P44Pa_Ws.js";import"./Container-BxiofVLO.js";import"./agent-icon-C3EOHwyt.js";import"./AlertCircle-Bqe9viNc.js";import"./RefreshCcw01-AFHENUb2.js";import"./XCircle-DXxtO-hk.js";import"./ArrowUpRight-DSJTBxm2.js";import"./ZapSquare-RS_iGKj9.js";import"./Users03-VgU2nGrS.js";import"./CheckCircle-BX_gETYO.js";import"./ChevronDown-BppEhMel.js";import"./ChevronLeft-DFMCd-a0.js";import"./ChevronRight-D3aPPa0h.js";import"./ChevronUp-CFAV8eH4.js";import"./ZoomOut-DEJOu-nF.js";import"./Globe01-7yTOqooU.js";import"./FilterLines-zpFRWfW1.js";import"./Star01-D08HvSzg.js";import"./Palette-C0YKHo-H.js";import"./HardDrive-BqhrNwPc.js";import"./Key01-CZ1WE5u9.js";import"./LayoutLeft-CkKuDYxX.js";import"./LinkExternal01-Bv1R0txp.js";import"./Monitor01-CjEFZhoQ.js";import"./Sun-BCMNGCUL.js";import"./Play-Bnk3nlrR.js";import"./Settings02-CjUx5kgh.js";import"./Shield01-AMtJFXTs.js";import"./Stars01-BtHUDu3d.js";import"./Upload01-HJMOrbdA.js";import"./User01-Ba6C8JiT.js";import"./Users01-JA2IEd8Z.js";import"./XClose-DipFToCd.js";import"./X-CWOXhugP.js";import"./Zap-gGoaPzAk.js";import"./table-D2cg-KVI.js";import"./avatar-Dfbf1Fnl.js";import"./use-view-mode-CcmdNF5a.js";import"./sidebar-PzlYMcQE.js";import"./sheet-CB7vtAPo.js";function $t(i,e){const s=i.properties||{};for(const n in s){const c=s[n];if(c&&c.type==="string"&&(c.format==="url"||c.format==="uri")&&e&&typeof e=="object"&&n in e&&e[n])return e[n]}const l=["image","img","avatar","icon","logo","thumbnail","cover"];for(const n of l)if(e&&typeof e=="object"&&n in e&&typeof e[n]=="string")return e[n]}function kt(i){const e=oe.c(25),{item:s,schema:l,actions:n}=i;let c;e[0]!==s||e[1]!==l?(c=$t(l,s),e[0]=s,e[1]=l,e[2]=c):c=e[2];const r=c,u=s&&typeof s=="object"&&"description"in s&&typeof s.description=="string"?s.description:void 0;let d;e[3]!==n?(d=n&&Object.keys(n).length>0,e[3]=n,e[4]=d):d=e[4];const o=d;let p;e[5]!==r||e[6]!==s.title?(p=t.jsx(Qe,{icon:r,name:s.title,size:"md",className:"shrink-0 shadow-sm"}),e[5]=r,e[6]=s.title,e[7]=p):p=e[7];let m;e[8]!==s.title?(m=t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:s.title}),e[8]=s.title,e[9]=m):m=e[9];const f=u||"No description";let a;e[10]!==f?(a=t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:f}),e[10]=f,e[11]=a):a=e[11];let v;e[12]!==m||e[13]!==a?(v=t.jsxs("div",{className:"flex flex-col gap-0 flex-1",children:[m,a]}),e[12]=m,e[13]=a,e[14]=v):v=e[14];let y;e[15]!==p||e[16]!==v?(y=t.jsxs("div",{className:"flex flex-col gap-4 p-6 flex-1",children:[p,v]}),e[15]=p,e[16]=v,e[17]=y):y=e[17];let b;e[18]!==n||e[19]!==o||e[20]!==s?(b=o&&t.jsx("div",{className:"absolute top-6 right-6 sm:opacity-0 sm:group-hover:opacity-100 transition-opacity",onClick:Kt,onMouseDown:Ft,children:t.jsxs(He,{children:[t.jsx(Je,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:Lt,children:t.jsx(et,{size:20})})}),t.jsxs(Ye,{align:"end",onClick:zt,children:[n.open&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.open?.(s)},children:[t.jsx(Xe,{size:16}),"Open"]}),n.edit&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.edit?.(s)},children:[t.jsx(tt,{size:16}),"Edit"]}),n.duplicate&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.duplicate?.(s)},children:[t.jsx(Ze,{size:16}),"Duplicate"]}),n.delete&&t.jsxs(O,{variant:"destructive",onClick:g=>{g.stopPropagation(),n.delete?.(s)},children:[t.jsx(st,{size:16}),"Delete"]})]})]})}),e[18]=n,e[19]=o,e[20]=s,e[21]=b):b=e[21];let x;return e[22]!==y||e[23]!==b?(x=t.jsxs(gt,{className:"cursor-pointer transition-colors hover:bg-accent/50 h-full flex flex-col group relative",children:[y,b]}),e[22]=y,e[23]=b,e[24]=x):x=e[24],x}function zt(i){return i.stopPropagation()}function Lt(i){return i.stopPropagation()}function Ft(i){return i.stopPropagation()}function Kt(i){return i.stopPropagation()}const Mt=["icon","avatar","logo"],Re=["created_at","created_by","id"];function Ut(i){return Object.keys(i).find(e=>Mt.includes(e.toLowerCase()))}function ot(i,e){return Object.keys(i.properties||{}).filter(s=>["id","created_at","updated_at","created_by","updated_by"].includes(s)?!1:e?e.includes(s):!0).map(s=>({id:s,label:s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," ")}))}function Wt(i){const e=oe.c(30),{data:s,schema:l,viewMode:n,search:c,sortKey:r,sortDirection:u,onSort:d,actions:o,onItemClick:p,headerActions:m,emptyState:f,readOnly:a,columns:v,hideToolbar:y,sortableFields:b}=i,x=u===void 0?"asc":u,g=d===void 0?Vt:d;let $;e[0]!==o?($=o===void 0?{}:o,e[0]=o,e[1]=$):$=e[1];const h=$,T=p===void 0?qt:p,E=m===void 0?null:m,N=f===void 0?null:f,k=a===void 0?!1:a,j=v===void 0?void 0:v,z=y===void 0?!1:y,P=b===void 0?void 0:b;let D;e[2]!==j||e[3]!==l||e[4]!==P?(D=j?j.filter(Bt).filter(A=>!P||P.includes(A.id)).map(Rt):ot(l,P),e[2]=j,e[3]=l,e[4]=P,e[5]=D):D=e[5];const w=D;let S;e[6]!==E||e[7]!==z||e[8]!==g||e[9]!==x||e[10]!==r||e[11]!==w?(S=!z&&t.jsx("div",{className:"shrink-0 w-full border-b border-border h-12",children:t.jsxs("div",{className:"flex items-center gap-3 h-12 px-4",children:[t.jsx("div",{className:"flex items-center gap-2 flex-1",children:E}),t.jsx("div",{className:"flex items-center gap-2 shrink-0",children:t.jsx(Ge,{sortKey:r,sortDirection:x,onSort:g,sortOptions:w})})]})}),e[6]=E,e[7]=z,e[8]=g,e[9]=x,e[10]=r,e[11]=w,e[12]=S):S=e[12];let _;e[13]!==h||e[14]!==j||e[15]!==s||e[16]!==N||e[17]!==T||e[18]!==g||e[19]!==k||e[20]!==l||e[21]!==c||e[22]!==x||e[23]!==r||e[24]!==P||e[25]!==n?(_=n==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:s.length===0?t.jsx("div",{className:"flex items-center justify-center h-full",children:N||t.jsx(Ue,{icon:t.jsx(We,{size:36,className:"text-muted-foreground"}),title:"No items found",description:c?"Try adjusting your search":"No items to display"})}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:s.map(A=>t.jsx("div",{onClick:()=>T?.(A),className:"cursor-pointer h-full",children:t.jsx(kt,{item:A,schema:l,readOnly:k,actions:h})},A.id))})}):t.jsx(xt,{columns:Ht(j,l,P,h),data:s,sortKey:r,sortDirection:x,onSort:g,onRowClick:T,emptyState:N||t.jsx(Ue,{icon:t.jsx(We,{size:36,className:"text-muted-foreground"}),title:"No items found",description:c?"Try adjusting your search":"No items to display"})}),e[13]=h,e[14]=j,e[15]=s,e[16]=N,e[17]=T,e[18]=g,e[19]=k,e[20]=l,e[21]=c,e[22]=x,e[23]=r,e[24]=P,e[25]=n,e[26]=_):_=e[26];let I;return e[27]!==S||e[28]!==_?(I=t.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[S,_]}),e[27]=S,e[28]=_,e[29]=I):I=e[29],I}function Rt(i){return{id:i.id,label:typeof i.header=="string"?i.header:i.id}}function Bt(i){return i.sortable!==!1}function qt(){}function Vt(){}function Gt(i){return{id:"actions",header:"",render:e=>t.jsxs(He,{children:[t.jsx(Je,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:s=>s.stopPropagation(),children:t.jsx(et,{size:20})})}),t.jsxs(Ye,{align:"end",onClick:s=>s.stopPropagation(),children:[i.open&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.open?.(e)},children:[t.jsx(Xe,{size:16}),"Open"]}),i.edit&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.edit?.(e)},children:[t.jsx(tt,{size:16}),"Edit"]}),i.duplicate&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.duplicate?.(e)},children:[t.jsx(Ze,{size:16}),"Duplicate"]}),i.delete&&t.jsxs(O,{variant:"destructive",onClick:s=>{s.stopPropagation(),i.delete?.(e)},children:[t.jsx(st,{size:16}),"Delete"]})]})]}),cellClassName:"w-[60px]",sortable:!1}}function nt(i){const e=i.type;return Array.isArray(e)?e.every(s=>nt({type:s})):e==="string"||e==="number"||e==="integer"||e==="boolean"||e==="null"}function Qt(i,e){const s=i.properties||{},l=Object.keys(s).filter(o=>{const p=s[o];return p&&nt(p)}),n=Ut(s),c=[],r=new Set;n&&l.includes(n)&&(c.push(n),r.add(n));const u=["title","description","updated_at","updated_by"];for(const o of u)l.includes(o)&&!r.has(o)&&(c.push(o),r.add(o));const d=l.filter(o=>!r.has(o)&&!Re.includes(o)).sort((o,p)=>o.localeCompare(p));for(const o of d)c.push(o),r.add(o);for(const o of Re)l.includes(o)&&!r.has(o)&&(c.push(o),r.add(o));return c.map(o=>{const p=s[o],m=e?e.includes(o):!["id"].includes(o);return o===n?{id:o,header:"",render:f=>{const a=f[o];return t.jsx(Qe,{icon:a,name:f.title,size:"sm",className:"shrink-0 shadow-sm"})},sortable:!1,cellClassName:"w-16 shrink-0",wrap:!0}:o==="description"?{id:o,header:"Description",render:f=>{const a=f[o];return a==null?"—":t.jsx("span",{className:"block truncate max-w-[50ch]",children:String(a)})},sortable:m,cellClassName:"max-w-[50ch]"}:o==="created_by"||o==="updated_by"?{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:f=>{const a=f[o];return a?t.jsx(jt,{id:String(a),size:"xs"}):"—"},sortable:m,cellClassName:"max-w-[250px]"}:p?.format==="date-time"||o.endsWith("_at")?{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:f=>{const a=f[o];return a?t.jsx("span",{className:"block truncate max-w-full",children:new Date(a).toLocaleDateString()}):"—"},sortable:m,cellClassName:"max-w-[200px]"}:{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:f=>{const a=f[o];return a==null?"—":t.jsx("span",{className:"block truncate max-w-full",children:String(a)})},sortable:m,cellClassName:"max-w-[200px]"}})}function Ht(i,e,s,l){const n=i||Qt(e,s);return n.some(u=>u.id==="actions")?n:Object.keys(l).length>0?[...n,Gt(l)]:n}function Jt(i){const e=oe.c(119),{connectionId:s,org:l,activeCollection:n,onItemClick:c}=i,r=n.name,u=n.schema??ft,d=n.hasCreateTool,o=n.hasUpdateTool,p=n.hasDeleteTool,m=Be(),{data:f}=ct.useSession(),a=f?.user?.id||"unknown",v=Tt(s);let y;e[0]!==v||e[1]!==s?(y=v?bt(v):s,e[0]=v,e[1]=s,e[2]=y):y=e[2];const b=y,{org:x}=ze();let g;e[3]!==s||e[4]!==x.id||e[5]!==x.slug?(g={connectionId:s,orgId:x.id,orgSlug:x.slug},e[3]=s,e[4]=x.id,e[5]=x.slug,e[6]=g):g=e[6];const $=qe(g),h=It(s,r,$),T=`${s}-${r}`;let E;e[7]!==l||e[8]!==T?(E={namespace:l,resource:T,defaultSortKey:"updated_at"},e[7]=l,e[8]=T,e[9]=E):E=e[9];const{search:N,searchTerm:k,setSearch:j,viewMode:z,setViewMode:P,sortKey:D,sortDirection:w,handleSort:S}=Ct(E);let _;e[10]!==k||e[11]!==w||e[12]!==D?(_={searchTerm:k,sortKey:D,sortDirection:w},e[10]=k,e[11]=w,e[12]=D,e[13]=_):_=e[13];const I=At(s,r,$,_),A=!d&&!o&&!p;let ne;e[14]!==b||e[15]!==r||e[16]!==m||e[17]!==c||e[18]!==l?(ne=C=>{if(c){c(C);return}m({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:b,collectionName:r,itemId:C.id}})},e[14]=b,e[15]=r,e[16]=m,e[17]=c,e[18]=l,e[19]=ne):ne=e[19];const L=ne;let re;e[20]!==h.create||e[21]!==a?(re=async C=>{const xe=new Date().toISOString();await h.create.mutateAsync({...C,id:Me("conn"),title:`${C.title} (Copy)`,created_at:xe,updated_at:xe,created_by:a,updated_by:a})},e[20]=h.create,e[21]=a,e[22]=re):re=e[22];const be=re,[F,ve]=dt.useState(null);let le;e[23]===Symbol.for("react.memo_cache_sentinel")?(le=C=>{ve(C)},e[23]=le):le=e[23];const rt=le;let K;e[24]!==L||e[25]!==o?(K=o&&{edit:L},e[24]=L,e[25]=o,e[26]=K):K=e[26];let M;e[27]!==be||e[28]!==d?(M=d&&{duplicate:be},e[27]=be,e[28]=d,e[29]=M):M=e[29];let U;e[30]!==p?(U=p&&{delete:rt},e[30]=p,e[31]=U):U=e[31];let ae;e[32]!==M||e[33]!==U||e[34]!==K?(ae={...K,...M,...U},e[32]=M,e[33]=U,e[34]=K,e[35]=ae):ae=e[35];const ye=ae;let ce;e[36]!==h.delete||e[37]!==F?(ce=async()=>{F&&(await h.delete.mutateAsync(F.id),ve(null))},e[36]=h.delete,e[37]=F,e[38]=ce):ce=e[38];const Ne=ce;let de;e[39]!==h.create||e[40]!==b||e[41]!==r||e[42]!==d||e[43]!==m||e[44]!==l||e[45]!==a?(de=async()=>{if(!d){Le.error("Create operation is not available for this collection");return}const C=new Date().toISOString(),xe={id:Me("conn"),title:"New Item",description:"A brief description of the item",created_at:C,updated_at:C,created_by:a,updated_by:a};try{const ke=await h.create.mutateAsync(xe);m({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:b,collectionName:r,itemId:ke.id}})}catch(ke){console.error("Failed to create item:",ke)}},e[39]=h.create,e[40]=b,e[41]=r,e[42]=d,e[43]=m,e[44]=l,e[45]=a,e[46]=de):de=e[46];const we=de;let me;e[47]!==u?(me=ot(u),e[47]=u,e[48]=me):me=e[48];const Se=me,lt=(I?.length??0)>0,at=d&&!lt&&!N;let pe;e[49]!==h.create||e[50]!==we||e[51]!==d?(pe=d?t.jsxs(Ce,{onClick:we,size:"sm",disabled:h.create.isPending,className:"h-7",children:[t.jsx(Et,{className:"mr-2 h-4 w-4"}),h.create.isPending?"Creating...":"Create"]}):null,e[49]=h.create,e[50]=we,e[51]=d,e[52]=pe):pe=e[52];const ue=pe,Pe=D;let W;e[53]!==S||e[54]!==w||e[55]!==Se||e[56]!==Pe?(W=t.jsx(Ot,{children:t.jsx(Ge,{sortKey:Pe,sortDirection:w,onSort:S,sortOptions:Se})}),e[53]=S,e[54]=w,e[55]=Se,e[56]=Pe,e[57]=W):W=e[57];const _e=`Search ${r}...`;let R;e[58]!==j?(R=C=>{C.key==="Escape"&&(j(""),C.target.blur())},e[58]=j,e[59]=R):R=e[59];let B;e[60]!==N||e[61]!==j||e[62]!==_e||e[63]!==R?(B=t.jsx("div",{className:"flex-1",children:t.jsx(ht,{value:N,onChange:j,placeholder:_e,onKeyDown:R})}),e[60]=N,e[61]=j,e[62]=_e,e[63]=R,e[64]=B):B=e[64];let q;e[65]!==ue||e[66]!==d?(q=d&&t.jsx("div",{className:"pr-3",children:ue}),e[65]=ue,e[66]=d,e[67]=q):q=e[67];let V;e[68]!==B||e[69]!==q?(V=t.jsxs("div",{className:"flex items-center gap-2",children:[B,q]}),e[68]=B,e[69]=q,e[70]=V):V=e[70];let G;e[71]!==I?(G=I??[],e[71]=I,e[72]=G):G=e[72];const De=D;let Q;e[73]!==L?(Q=C=>L(C),e[73]=L,e[74]=Q):Q=e[74];const Ie="No items found",Ae=N?"Try adjusting your search terms":"This collection doesn't have any items yet.",Te=at?ue:void 0;let H;e[75]!==Ie||e[76]!==Ae||e[77]!==Te?(H=t.jsx(it,{image:null,title:Ie,description:Ae,actions:Te}),e[75]=Ie,e[76]=Ae,e[77]=Te,e[78]=H):H=e[78];let J;e[79]!==S||e[80]!==A||e[81]!==ye||e[82]!==u||e[83]!==N||e[84]!==j||e[85]!==P||e[86]!==w||e[87]!==G||e[88]!==De||e[89]!==Q||e[90]!==H||e[91]!==z?(J=t.jsx("div",{className:"flex-1 overflow-auto",children:t.jsx(Wt,{hideToolbar:!0,data:G,schema:u,viewMode:z,onViewModeChange:P,search:N,onSearchChange:j,sortKey:De,sortDirection:w,onSort:S,actions:ye,onItemClick:Q,readOnly:A,emptyState:H})}),e[79]=S,e[80]=A,e[81]=ye,e[82]=u,e[83]=N,e[84]=j,e[85]=P,e[86]=w,e[87]=G,e[88]=De,e[89]=Q,e[90]=H,e[91]=z,e[92]=J):J=e[92];let Y;e[93]!==V||e[94]!==J?(Y=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[V,J]}),e[93]=V,e[94]=J,e[95]=Y):Y=e[95];const Ee=!!F;let fe;e[96]===Symbol.for("react.memo_cache_sentinel")?(fe=C=>{C||ve(null)},e[96]=fe):fe=e[96];let he;e[97]===Symbol.for("react.memo_cache_sentinel")?(he=t.jsx(Nt,{children:"Delete item?"}),e[97]=he):he=e[97];const Oe=F?.title;let X;e[98]!==Oe?(X=t.jsxs(wt,{children:[he,t.jsxs(St,{children:['Are you sure you want to delete "',Oe,'"? This action cannot be undone.']})]}),e[98]=Oe,e[99]=X):X=e[99];let Z;e[100]!==h.delete.isPending?(Z=t.jsx(vt,{disabled:h.delete.isPending,children:"Cancel"}),e[100]=h.delete.isPending,e[101]=Z):Z=e[101];const $e=h.delete.isPending?"Deleting...":"Delete";let ee;e[102]!==h.delete.isPending||e[103]!==Ne||e[104]!==$e?(ee=t.jsx(yt,{onClick:Ne,disabled:h.delete.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:$e}),e[102]=h.delete.isPending,e[103]=Ne,e[104]=$e,e[105]=ee):ee=e[105];let te;e[106]!==Z||e[107]!==ee?(te=t.jsxs(Pt,{children:[Z,ee]}),e[106]=Z,e[107]=ee,e[108]=te):te=e[108];let se;e[109]!==X||e[110]!==te?(se=t.jsxs(_t,{children:[X,te]}),e[109]=X,e[110]=te,e[111]=se):se=e[111];let ie;e[112]!==Ee||e[113]!==se?(ie=t.jsx(Dt,{open:Ee,onOpenChange:fe,children:se}),e[112]=Ee,e[113]=se,e[114]=ie):ie=e[114];let ge;return e[115]!==W||e[116]!==Y||e[117]!==ie?(ge=t.jsxs(t.Fragment,{children:[W,Y,ie]}),e[115]=W,e[116]=Y,e[117]=ie,e[118]=ge):ge=e[118],ge}function Yt(){const i=oe.c(13),{org:e,project:s}=ze(),l=mt();let n;i[0]!==e.id||i[1]!==e.slug?(n={connectionId:Ve,orgId:e.id,orgSlug:e.slug},i[0]=e.id,i[1]=e.slug,i[2]=n):n=i[2];const c=qe(n);let r;i[3]!==c||i[4]!==s?(r=async p=>{const m=s.enabledPlugins??[];if(m.includes(p))return;const f=[...m,p],a=await c.callTool({name:"COLLECTION_VIRTUAL_MCP_UPDATE",arguments:{id:s.id,data:{metadata:{enabled_plugins:f}}}});return a.structuredContent??a},i[3]=c,i[4]=s,i[5]=r):r=i[5];let u;i[6]!==e.id||i[7]!==s||i[8]!==l?(u=()=>{l.invalidateQueries({queryKey:Fe.project(e.id,s.slug)}),l.invalidateQueries({queryKey:Fe.projects(e.id)})},i[6]=e.id,i[7]=s,i[8]=l,i[9]=u):u=i[9];let d;return i[10]!==r||i[11]!==u?(d={mutationFn:r,onSuccess:u,onError:Xt},i[10]=r,i[11]=u,i[12]=d):d=i[12],pt(d)}function Xt(i){Le.error("Failed to enable plugin: "+(i instanceof Error?i.message:"Unknown error"))}function Zt(i){const e=oe.c(12),{pluginId:s,title:l,description:n,icon:c}=i,r=Yt();let u;e[0]!==r||e[1]!==s?(u=async()=>{try{await r.mutateAsync(s),Le.success("Plugin enabled!")}catch{}},e[0]=r,e[1]=s,e[2]=u):u=e[2];const d=u,o=c??null,p=r.isPending?"Enabling…":"Enable plugin";let m;e[3]!==r.isPending||e[4]!==d||e[5]!==p?(m=t.jsx(Ce,{onClick:d,disabled:r.isPending,children:p}),e[3]=r.isPending,e[4]=d,e[5]=p,e[6]=m):m=e[6];let f;return e[7]!==n||e[8]!==o||e[9]!==m||e[10]!==l?(f=t.jsx(it,{image:o,title:l,description:n,actions:m}),e[7]=n,e[8]=o,e[9]=m,e[10]=l,e[11]=f):f=e[11],f}const es={name:"WORKFLOW",displayName:"Workflow",hasCreateTool:!0,hasUpdateTool:!0,hasDeleteTool:!0};function Ci(){const{project:i,org:e}=ze();if(!(i.enabledPlugins??[]).includes(Ke))return t.jsx(je,{children:t.jsx(je.Content,{children:t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(Zt,{pluginId:Ke,title:"Enable Workflows",description:"Automate multi-step processes by enabling the Workflows plugin. Once enabled you can create, run, and monitor workflows.",icon:t.jsx("div",{className:"bg-muted p-4 rounded-full",children:t.jsx(ut,{className:"size-8 text-muted-foreground"})})})})})});const n=Be();return t.jsx(je,{children:t.jsx(je.Content,{children:t.jsx(Jt,{connectionId:Ve,org:e.slug,activeCollection:es,onItemClick:c=>n({to:"/$org/settings/workflows/$itemId",params:{org:e.slug,itemId:c.id}})})})})}export{Ci as default};
|
|
1
|
+
import{e as oe,j as t,B as Ce,f as Be,b as ct,q as ze,r as dt,o as Le,G as mt,a as pt,K as Fe,ec as Ke,dz as ut}from"./index-CiRQNPVt.js";import{u as qe,S as Ve}from"./use-mcp-client-D0A6RZFw.js";import{B as ft,g as Me}from"./generate-id-BHe5yw90.js";import{C as Ge}from"./collection-display-button-BNfKMIgL.js";import{C as ht}from"./collection-search-CDLcWLfd.js";import{C as gt}from"./card-D41ULrnf.js";import{I as Qe}from"./integration-icon-vaGvNHHz.js";import{D as He,a as Je,b as Ye,c as O}from"./dropdown-menu-UGlYpK18.js";import{s as Xe,a as Ze}from"./Eye-CKz6zS_m.js";import{i as et}from"./DotsVertical-Q3F6UWC_.js";import{i as tt}from"./Tool01-R6WyaXsu.js";import{s as st}from"./Trash01-C3pnsiws.js";import{C as xt}from"./collection-table-wrapper-DrTvLn6R.js";import{E as Ue}from"./empty-state-h_qXtgbw.js";import{n as We}from"./Stars02-B4CoQ82E.js";import{U as jt}from"./user-DaO6RYsc.js";import{E as it}from"./empty-state-CoXt5rYF.js";import{u as Ct}from"./use-list-state-BkETzhj1.js";import{g as bt}from"./connection-slug-eyAPH6o3.js";import{f as vt,g as yt,c as Nt,b as wt,d as St,e as Pt,a as _t,A as Dt}from"./alert-dialog-Q8M8ngFf.js";import{a as It,b as At}from"./use-collections-B1Mg9Y32.js";import{a as Tt}from"./use-connection-DpxWBF4Y.js";import{s as Et}from"./Plus-CSNkL1o7.js";import{a as Ot}from"./layout-PdamBSR0.js";import{P as je}from"./index-Dci2MWs9.js";import"./collections-BxDJ4z3g.js";import"./SwitchHorizontal01-BI_yHGXL.js";import"./Check-C9-fsV6-.js";import"./tooltip-C47QSg8i.js";import"./view-mode-toggle-B-ZBNJWV.js";import"./badge-BBLSXFe0.js";import"./SearchMd-B-q2EsGW.js";import"./Container-Bso4WS0x.js";import"./agent-icon-DAPplz1A.js";import"./AlertCircle-BDfUS-lh.js";import"./RefreshCcw01-Dncu-kYd.js";import"./XCircle-D_3MYOn4.js";import"./ArrowUpRight-8daK_Mrm.js";import"./ZapSquare-CP91cLS8.js";import"./Users03-Bek4Ag3W.js";import"./CheckCircle-B_rVd_l8.js";import"./ChevronDown--2U1gfXf.js";import"./ChevronLeft-TttN4toV.js";import"./ChevronRight-BVEygGVH.js";import"./ChevronUp-C-xaVM7d.js";import"./ZoomOut-CaG3Pd1Z.js";import"./Globe01-iupU5eqh.js";import"./FilterLines-SKQT-eWL.js";import"./Star01-CN33xE6w.js";import"./Palette-CS36Icvl.js";import"./HardDrive-DpuvbJvr.js";import"./Key01-6eW9IRFT.js";import"./LayoutLeft-BkxKKkMX.js";import"./LinkExternal01-BXhdtlT7.js";import"./Monitor01-DUICZH5i.js";import"./Sun-CEzPQTAJ.js";import"./Play-CbbqvWPd.js";import"./Settings02-CdJ0CKrL.js";import"./Shield01-Crgp73nV.js";import"./Stars01-BXO9Nc4-.js";import"./Upload01-BHsRhr7X.js";import"./User01-JuGE_kA7.js";import"./Users01-BVUwP6xk.js";import"./XClose-Da5LgJSi.js";import"./X-BdwzFded.js";import"./Zap-DHBAOmqP.js";import"./table-BuLHtfTA.js";import"./avatar-BqNGZrFg.js";import"./use-view-mode-BpduDYTq.js";import"./sidebar-BBqRosV0.js";import"./sheet-Utq51ofH.js";function $t(i,e){const s=i.properties||{};for(const n in s){const c=s[n];if(c&&c.type==="string"&&(c.format==="url"||c.format==="uri")&&e&&typeof e=="object"&&n in e&&e[n])return e[n]}const l=["image","img","avatar","icon","logo","thumbnail","cover"];for(const n of l)if(e&&typeof e=="object"&&n in e&&typeof e[n]=="string")return e[n]}function kt(i){const e=oe.c(25),{item:s,schema:l,actions:n}=i;let c;e[0]!==s||e[1]!==l?(c=$t(l,s),e[0]=s,e[1]=l,e[2]=c):c=e[2];const r=c,u=s&&typeof s=="object"&&"description"in s&&typeof s.description=="string"?s.description:void 0;let d;e[3]!==n?(d=n&&Object.keys(n).length>0,e[3]=n,e[4]=d):d=e[4];const o=d;let p;e[5]!==r||e[6]!==s.title?(p=t.jsx(Qe,{icon:r,name:s.title,size:"md",className:"shrink-0 shadow-sm"}),e[5]=r,e[6]=s.title,e[7]=p):p=e[7];let m;e[8]!==s.title?(m=t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:s.title}),e[8]=s.title,e[9]=m):m=e[9];const f=u||"No description";let a;e[10]!==f?(a=t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:f}),e[10]=f,e[11]=a):a=e[11];let v;e[12]!==m||e[13]!==a?(v=t.jsxs("div",{className:"flex flex-col gap-0 flex-1",children:[m,a]}),e[12]=m,e[13]=a,e[14]=v):v=e[14];let y;e[15]!==p||e[16]!==v?(y=t.jsxs("div",{className:"flex flex-col gap-4 p-6 flex-1",children:[p,v]}),e[15]=p,e[16]=v,e[17]=y):y=e[17];let b;e[18]!==n||e[19]!==o||e[20]!==s?(b=o&&t.jsx("div",{className:"absolute top-6 right-6 sm:opacity-0 sm:group-hover:opacity-100 transition-opacity",onClick:Kt,onMouseDown:Ft,children:t.jsxs(He,{children:[t.jsx(Je,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:Lt,children:t.jsx(et,{size:20})})}),t.jsxs(Ye,{align:"end",onClick:zt,children:[n.open&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.open?.(s)},children:[t.jsx(Xe,{size:16}),"Open"]}),n.edit&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.edit?.(s)},children:[t.jsx(tt,{size:16}),"Edit"]}),n.duplicate&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.duplicate?.(s)},children:[t.jsx(Ze,{size:16}),"Duplicate"]}),n.delete&&t.jsxs(O,{variant:"destructive",onClick:g=>{g.stopPropagation(),n.delete?.(s)},children:[t.jsx(st,{size:16}),"Delete"]})]})]})}),e[18]=n,e[19]=o,e[20]=s,e[21]=b):b=e[21];let x;return e[22]!==y||e[23]!==b?(x=t.jsxs(gt,{className:"cursor-pointer transition-colors hover:bg-accent/50 h-full flex flex-col group relative",children:[y,b]}),e[22]=y,e[23]=b,e[24]=x):x=e[24],x}function zt(i){return i.stopPropagation()}function Lt(i){return i.stopPropagation()}function Ft(i){return i.stopPropagation()}function Kt(i){return i.stopPropagation()}const Mt=["icon","avatar","logo"],Re=["created_at","created_by","id"];function Ut(i){return Object.keys(i).find(e=>Mt.includes(e.toLowerCase()))}function ot(i,e){return Object.keys(i.properties||{}).filter(s=>["id","created_at","updated_at","created_by","updated_by"].includes(s)?!1:e?e.includes(s):!0).map(s=>({id:s,label:s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," ")}))}function Wt(i){const e=oe.c(30),{data:s,schema:l,viewMode:n,search:c,sortKey:r,sortDirection:u,onSort:d,actions:o,onItemClick:p,headerActions:m,emptyState:f,readOnly:a,columns:v,hideToolbar:y,sortableFields:b}=i,x=u===void 0?"asc":u,g=d===void 0?Vt:d;let $;e[0]!==o?($=o===void 0?{}:o,e[0]=o,e[1]=$):$=e[1];const h=$,T=p===void 0?qt:p,E=m===void 0?null:m,N=f===void 0?null:f,k=a===void 0?!1:a,j=v===void 0?void 0:v,z=y===void 0?!1:y,P=b===void 0?void 0:b;let D;e[2]!==j||e[3]!==l||e[4]!==P?(D=j?j.filter(Bt).filter(A=>!P||P.includes(A.id)).map(Rt):ot(l,P),e[2]=j,e[3]=l,e[4]=P,e[5]=D):D=e[5];const w=D;let S;e[6]!==E||e[7]!==z||e[8]!==g||e[9]!==x||e[10]!==r||e[11]!==w?(S=!z&&t.jsx("div",{className:"shrink-0 w-full border-b border-border h-12",children:t.jsxs("div",{className:"flex items-center gap-3 h-12 px-4",children:[t.jsx("div",{className:"flex items-center gap-2 flex-1",children:E}),t.jsx("div",{className:"flex items-center gap-2 shrink-0",children:t.jsx(Ge,{sortKey:r,sortDirection:x,onSort:g,sortOptions:w})})]})}),e[6]=E,e[7]=z,e[8]=g,e[9]=x,e[10]=r,e[11]=w,e[12]=S):S=e[12];let _;e[13]!==h||e[14]!==j||e[15]!==s||e[16]!==N||e[17]!==T||e[18]!==g||e[19]!==k||e[20]!==l||e[21]!==c||e[22]!==x||e[23]!==r||e[24]!==P||e[25]!==n?(_=n==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:s.length===0?t.jsx("div",{className:"flex items-center justify-center h-full",children:N||t.jsx(Ue,{icon:t.jsx(We,{size:36,className:"text-muted-foreground"}),title:"No items found",description:c?"Try adjusting your search":"No items to display"})}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:s.map(A=>t.jsx("div",{onClick:()=>T?.(A),className:"cursor-pointer h-full",children:t.jsx(kt,{item:A,schema:l,readOnly:k,actions:h})},A.id))})}):t.jsx(xt,{columns:Ht(j,l,P,h),data:s,sortKey:r,sortDirection:x,onSort:g,onRowClick:T,emptyState:N||t.jsx(Ue,{icon:t.jsx(We,{size:36,className:"text-muted-foreground"}),title:"No items found",description:c?"Try adjusting your search":"No items to display"})}),e[13]=h,e[14]=j,e[15]=s,e[16]=N,e[17]=T,e[18]=g,e[19]=k,e[20]=l,e[21]=c,e[22]=x,e[23]=r,e[24]=P,e[25]=n,e[26]=_):_=e[26];let I;return e[27]!==S||e[28]!==_?(I=t.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[S,_]}),e[27]=S,e[28]=_,e[29]=I):I=e[29],I}function Rt(i){return{id:i.id,label:typeof i.header=="string"?i.header:i.id}}function Bt(i){return i.sortable!==!1}function qt(){}function Vt(){}function Gt(i){return{id:"actions",header:"",render:e=>t.jsxs(He,{children:[t.jsx(Je,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:s=>s.stopPropagation(),children:t.jsx(et,{size:20})})}),t.jsxs(Ye,{align:"end",onClick:s=>s.stopPropagation(),children:[i.open&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.open?.(e)},children:[t.jsx(Xe,{size:16}),"Open"]}),i.edit&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.edit?.(e)},children:[t.jsx(tt,{size:16}),"Edit"]}),i.duplicate&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.duplicate?.(e)},children:[t.jsx(Ze,{size:16}),"Duplicate"]}),i.delete&&t.jsxs(O,{variant:"destructive",onClick:s=>{s.stopPropagation(),i.delete?.(e)},children:[t.jsx(st,{size:16}),"Delete"]})]})]}),cellClassName:"w-[60px]",sortable:!1}}function nt(i){const e=i.type;return Array.isArray(e)?e.every(s=>nt({type:s})):e==="string"||e==="number"||e==="integer"||e==="boolean"||e==="null"}function Qt(i,e){const s=i.properties||{},l=Object.keys(s).filter(o=>{const p=s[o];return p&&nt(p)}),n=Ut(s),c=[],r=new Set;n&&l.includes(n)&&(c.push(n),r.add(n));const u=["title","description","updated_at","updated_by"];for(const o of u)l.includes(o)&&!r.has(o)&&(c.push(o),r.add(o));const d=l.filter(o=>!r.has(o)&&!Re.includes(o)).sort((o,p)=>o.localeCompare(p));for(const o of d)c.push(o),r.add(o);for(const o of Re)l.includes(o)&&!r.has(o)&&(c.push(o),r.add(o));return c.map(o=>{const p=s[o],m=e?e.includes(o):!["id"].includes(o);return o===n?{id:o,header:"",render:f=>{const a=f[o];return t.jsx(Qe,{icon:a,name:f.title,size:"sm",className:"shrink-0 shadow-sm"})},sortable:!1,cellClassName:"w-16 shrink-0",wrap:!0}:o==="description"?{id:o,header:"Description",render:f=>{const a=f[o];return a==null?"—":t.jsx("span",{className:"block truncate max-w-[50ch]",children:String(a)})},sortable:m,cellClassName:"max-w-[50ch]"}:o==="created_by"||o==="updated_by"?{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:f=>{const a=f[o];return a?t.jsx(jt,{id:String(a),size:"xs"}):"—"},sortable:m,cellClassName:"max-w-[250px]"}:p?.format==="date-time"||o.endsWith("_at")?{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:f=>{const a=f[o];return a?t.jsx("span",{className:"block truncate max-w-full",children:new Date(a).toLocaleDateString()}):"—"},sortable:m,cellClassName:"max-w-[200px]"}:{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:f=>{const a=f[o];return a==null?"—":t.jsx("span",{className:"block truncate max-w-full",children:String(a)})},sortable:m,cellClassName:"max-w-[200px]"}})}function Ht(i,e,s,l){const n=i||Qt(e,s);return n.some(u=>u.id==="actions")?n:Object.keys(l).length>0?[...n,Gt(l)]:n}function Jt(i){const e=oe.c(119),{connectionId:s,org:l,activeCollection:n,onItemClick:c}=i,r=n.name,u=n.schema??ft,d=n.hasCreateTool,o=n.hasUpdateTool,p=n.hasDeleteTool,m=Be(),{data:f}=ct.useSession(),a=f?.user?.id||"unknown",v=Tt(s);let y;e[0]!==v||e[1]!==s?(y=v?bt(v):s,e[0]=v,e[1]=s,e[2]=y):y=e[2];const b=y,{org:x}=ze();let g;e[3]!==s||e[4]!==x.id||e[5]!==x.slug?(g={connectionId:s,orgId:x.id,orgSlug:x.slug},e[3]=s,e[4]=x.id,e[5]=x.slug,e[6]=g):g=e[6];const $=qe(g),h=It(s,r,$),T=`${s}-${r}`;let E;e[7]!==l||e[8]!==T?(E={namespace:l,resource:T,defaultSortKey:"updated_at"},e[7]=l,e[8]=T,e[9]=E):E=e[9];const{search:N,searchTerm:k,setSearch:j,viewMode:z,setViewMode:P,sortKey:D,sortDirection:w,handleSort:S}=Ct(E);let _;e[10]!==k||e[11]!==w||e[12]!==D?(_={searchTerm:k,sortKey:D,sortDirection:w},e[10]=k,e[11]=w,e[12]=D,e[13]=_):_=e[13];const I=At(s,r,$,_),A=!d&&!o&&!p;let ne;e[14]!==b||e[15]!==r||e[16]!==m||e[17]!==c||e[18]!==l?(ne=C=>{if(c){c(C);return}m({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:b,collectionName:r,itemId:C.id}})},e[14]=b,e[15]=r,e[16]=m,e[17]=c,e[18]=l,e[19]=ne):ne=e[19];const L=ne;let re;e[20]!==h.create||e[21]!==a?(re=async C=>{const xe=new Date().toISOString();await h.create.mutateAsync({...C,id:Me("conn"),title:`${C.title} (Copy)`,created_at:xe,updated_at:xe,created_by:a,updated_by:a})},e[20]=h.create,e[21]=a,e[22]=re):re=e[22];const be=re,[F,ve]=dt.useState(null);let le;e[23]===Symbol.for("react.memo_cache_sentinel")?(le=C=>{ve(C)},e[23]=le):le=e[23];const rt=le;let K;e[24]!==L||e[25]!==o?(K=o&&{edit:L},e[24]=L,e[25]=o,e[26]=K):K=e[26];let M;e[27]!==be||e[28]!==d?(M=d&&{duplicate:be},e[27]=be,e[28]=d,e[29]=M):M=e[29];let U;e[30]!==p?(U=p&&{delete:rt},e[30]=p,e[31]=U):U=e[31];let ae;e[32]!==M||e[33]!==U||e[34]!==K?(ae={...K,...M,...U},e[32]=M,e[33]=U,e[34]=K,e[35]=ae):ae=e[35];const ye=ae;let ce;e[36]!==h.delete||e[37]!==F?(ce=async()=>{F&&(await h.delete.mutateAsync(F.id),ve(null))},e[36]=h.delete,e[37]=F,e[38]=ce):ce=e[38];const Ne=ce;let de;e[39]!==h.create||e[40]!==b||e[41]!==r||e[42]!==d||e[43]!==m||e[44]!==l||e[45]!==a?(de=async()=>{if(!d){Le.error("Create operation is not available for this collection");return}const C=new Date().toISOString(),xe={id:Me("conn"),title:"New Item",description:"A brief description of the item",created_at:C,updated_at:C,created_by:a,updated_by:a};try{const ke=await h.create.mutateAsync(xe);m({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:b,collectionName:r,itemId:ke.id}})}catch(ke){console.error("Failed to create item:",ke)}},e[39]=h.create,e[40]=b,e[41]=r,e[42]=d,e[43]=m,e[44]=l,e[45]=a,e[46]=de):de=e[46];const we=de;let me;e[47]!==u?(me=ot(u),e[47]=u,e[48]=me):me=e[48];const Se=me,lt=(I?.length??0)>0,at=d&&!lt&&!N;let pe;e[49]!==h.create||e[50]!==we||e[51]!==d?(pe=d?t.jsxs(Ce,{onClick:we,size:"sm",disabled:h.create.isPending,className:"h-7",children:[t.jsx(Et,{className:"mr-2 h-4 w-4"}),h.create.isPending?"Creating...":"Create"]}):null,e[49]=h.create,e[50]=we,e[51]=d,e[52]=pe):pe=e[52];const ue=pe,Pe=D;let W;e[53]!==S||e[54]!==w||e[55]!==Se||e[56]!==Pe?(W=t.jsx(Ot,{children:t.jsx(Ge,{sortKey:Pe,sortDirection:w,onSort:S,sortOptions:Se})}),e[53]=S,e[54]=w,e[55]=Se,e[56]=Pe,e[57]=W):W=e[57];const _e=`Search ${r}...`;let R;e[58]!==j?(R=C=>{C.key==="Escape"&&(j(""),C.target.blur())},e[58]=j,e[59]=R):R=e[59];let B;e[60]!==N||e[61]!==j||e[62]!==_e||e[63]!==R?(B=t.jsx("div",{className:"flex-1",children:t.jsx(ht,{value:N,onChange:j,placeholder:_e,onKeyDown:R})}),e[60]=N,e[61]=j,e[62]=_e,e[63]=R,e[64]=B):B=e[64];let q;e[65]!==ue||e[66]!==d?(q=d&&t.jsx("div",{className:"pr-3",children:ue}),e[65]=ue,e[66]=d,e[67]=q):q=e[67];let V;e[68]!==B||e[69]!==q?(V=t.jsxs("div",{className:"flex items-center gap-2",children:[B,q]}),e[68]=B,e[69]=q,e[70]=V):V=e[70];let G;e[71]!==I?(G=I??[],e[71]=I,e[72]=G):G=e[72];const De=D;let Q;e[73]!==L?(Q=C=>L(C),e[73]=L,e[74]=Q):Q=e[74];const Ie="No items found",Ae=N?"Try adjusting your search terms":"This collection doesn't have any items yet.",Te=at?ue:void 0;let H;e[75]!==Ie||e[76]!==Ae||e[77]!==Te?(H=t.jsx(it,{image:null,title:Ie,description:Ae,actions:Te}),e[75]=Ie,e[76]=Ae,e[77]=Te,e[78]=H):H=e[78];let J;e[79]!==S||e[80]!==A||e[81]!==ye||e[82]!==u||e[83]!==N||e[84]!==j||e[85]!==P||e[86]!==w||e[87]!==G||e[88]!==De||e[89]!==Q||e[90]!==H||e[91]!==z?(J=t.jsx("div",{className:"flex-1 overflow-auto",children:t.jsx(Wt,{hideToolbar:!0,data:G,schema:u,viewMode:z,onViewModeChange:P,search:N,onSearchChange:j,sortKey:De,sortDirection:w,onSort:S,actions:ye,onItemClick:Q,readOnly:A,emptyState:H})}),e[79]=S,e[80]=A,e[81]=ye,e[82]=u,e[83]=N,e[84]=j,e[85]=P,e[86]=w,e[87]=G,e[88]=De,e[89]=Q,e[90]=H,e[91]=z,e[92]=J):J=e[92];let Y;e[93]!==V||e[94]!==J?(Y=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[V,J]}),e[93]=V,e[94]=J,e[95]=Y):Y=e[95];const Ee=!!F;let fe;e[96]===Symbol.for("react.memo_cache_sentinel")?(fe=C=>{C||ve(null)},e[96]=fe):fe=e[96];let he;e[97]===Symbol.for("react.memo_cache_sentinel")?(he=t.jsx(Nt,{children:"Delete item?"}),e[97]=he):he=e[97];const Oe=F?.title;let X;e[98]!==Oe?(X=t.jsxs(wt,{children:[he,t.jsxs(St,{children:['Are you sure you want to delete "',Oe,'"? This action cannot be undone.']})]}),e[98]=Oe,e[99]=X):X=e[99];let Z;e[100]!==h.delete.isPending?(Z=t.jsx(vt,{disabled:h.delete.isPending,children:"Cancel"}),e[100]=h.delete.isPending,e[101]=Z):Z=e[101];const $e=h.delete.isPending?"Deleting...":"Delete";let ee;e[102]!==h.delete.isPending||e[103]!==Ne||e[104]!==$e?(ee=t.jsx(yt,{onClick:Ne,disabled:h.delete.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:$e}),e[102]=h.delete.isPending,e[103]=Ne,e[104]=$e,e[105]=ee):ee=e[105];let te;e[106]!==Z||e[107]!==ee?(te=t.jsxs(Pt,{children:[Z,ee]}),e[106]=Z,e[107]=ee,e[108]=te):te=e[108];let se;e[109]!==X||e[110]!==te?(se=t.jsxs(_t,{children:[X,te]}),e[109]=X,e[110]=te,e[111]=se):se=e[111];let ie;e[112]!==Ee||e[113]!==se?(ie=t.jsx(Dt,{open:Ee,onOpenChange:fe,children:se}),e[112]=Ee,e[113]=se,e[114]=ie):ie=e[114];let ge;return e[115]!==W||e[116]!==Y||e[117]!==ie?(ge=t.jsxs(t.Fragment,{children:[W,Y,ie]}),e[115]=W,e[116]=Y,e[117]=ie,e[118]=ge):ge=e[118],ge}function Yt(){const i=oe.c(13),{org:e,project:s}=ze(),l=mt();let n;i[0]!==e.id||i[1]!==e.slug?(n={connectionId:Ve,orgId:e.id,orgSlug:e.slug},i[0]=e.id,i[1]=e.slug,i[2]=n):n=i[2];const c=qe(n);let r;i[3]!==c||i[4]!==s?(r=async p=>{const m=s.enabledPlugins??[];if(m.includes(p))return;const f=[...m,p],a=await c.callTool({name:"COLLECTION_VIRTUAL_MCP_UPDATE",arguments:{id:s.id,data:{metadata:{enabled_plugins:f}}}});return a.structuredContent??a},i[3]=c,i[4]=s,i[5]=r):r=i[5];let u;i[6]!==e.id||i[7]!==s||i[8]!==l?(u=()=>{l.invalidateQueries({queryKey:Fe.project(e.id,s.slug)}),l.invalidateQueries({queryKey:Fe.projects(e.id)})},i[6]=e.id,i[7]=s,i[8]=l,i[9]=u):u=i[9];let d;return i[10]!==r||i[11]!==u?(d={mutationFn:r,onSuccess:u,onError:Xt},i[10]=r,i[11]=u,i[12]=d):d=i[12],pt(d)}function Xt(i){Le.error("Failed to enable plugin: "+(i instanceof Error?i.message:"Unknown error"))}function Zt(i){const e=oe.c(12),{pluginId:s,title:l,description:n,icon:c}=i,r=Yt();let u;e[0]!==r||e[1]!==s?(u=async()=>{try{await r.mutateAsync(s),Le.success("Plugin enabled!")}catch{}},e[0]=r,e[1]=s,e[2]=u):u=e[2];const d=u,o=c??null,p=r.isPending?"Enabling…":"Enable plugin";let m;e[3]!==r.isPending||e[4]!==d||e[5]!==p?(m=t.jsx(Ce,{onClick:d,disabled:r.isPending,children:p}),e[3]=r.isPending,e[4]=d,e[5]=p,e[6]=m):m=e[6];let f;return e[7]!==n||e[8]!==o||e[9]!==m||e[10]!==l?(f=t.jsx(it,{image:o,title:l,description:n,actions:m}),e[7]=n,e[8]=o,e[9]=m,e[10]=l,e[11]=f):f=e[11],f}const es={name:"WORKFLOW",displayName:"Workflow",hasCreateTool:!0,hasUpdateTool:!0,hasDeleteTool:!0};function Ci(){const{project:i,org:e}=ze();if(!(i.enabledPlugins??[]).includes(Ke))return t.jsx(je,{children:t.jsx(je.Content,{children:t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(Zt,{pluginId:Ke,title:"Enable Workflows",description:"Automate multi-step processes by enabling the Workflows plugin. Once enabled you can create, run, and monitor workflows.",icon:t.jsx("div",{className:"bg-muted p-4 rounded-full",children:t.jsx(ut,{className:"size-8 text-muted-foreground"})})})})})});const n=Be();return t.jsx(je,{children:t.jsx(je.Content,{children:t.jsx(Jt,{connectionId:Ve,org:e.slug,activeCollection:es,onItemClick:c=>n({to:"/$org/settings/workflows/$itemId",params:{org:e.slug,itemId:c.id}})})})})}export{Ci as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as s,g as l,j as o,l as a,E as n,r as c}from"./index-CiRQNPVt.js";import{a as f}from"./index-DcI1sEv_.js";import"./index-DCeOX6CY.js";import"./use-mcp-client-D0A6RZFw.js";import"./collections-BxDJ4z3g.js";import"./index-CwyiLbkO.js";import"./use-virtual-mcp-DciRKx1X.js";import"./use-collections-B1Mg9Y32.js";import"./monaco-editor-Bgzj9gt4.js";import"./index-f0X8ef8k.js";import"./spinner-_hqWpG0c.js";import"./resizable-CrMJy22o.js";import"./ZoomOut-CaG3Pd1Z.js";import"./badge-BBLSXFe0.js";import"./select-BMX9jvQG.js";import"./tooltip-C47QSg8i.js";import"./Check-C9-fsV6-.js";import"./ChevronDown--2U1gfXf.js";import"./ChevronUp-C-xaVM7d.js";import"./view-mode-toggle-B-ZBNJWV.js";import"./agent-icon-DAPplz1A.js";import"./AlertCircle-BDfUS-lh.js";import"./Tool01-R6WyaXsu.js";import"./SwitchHorizontal01-BI_yHGXL.js";import"./RefreshCcw01-Dncu-kYd.js";import"./XCircle-D_3MYOn4.js";import"./ArrowUpRight-8daK_Mrm.js";import"./ZapSquare-CP91cLS8.js";import"./Users03-Bek4Ag3W.js";import"./CheckCircle-B_rVd_l8.js";import"./ChevronLeft-TttN4toV.js";import"./ChevronRight-BVEygGVH.js";import"./DotsVertical-Q3F6UWC_.js";import"./Container-Bso4WS0x.js";import"./Eye-CKz6zS_m.js";import"./Globe01-iupU5eqh.js";import"./FilterLines-SKQT-eWL.js";import"./Star01-CN33xE6w.js";import"./Palette-CS36Icvl.js";import"./HardDrive-DpuvbJvr.js";import"./Stars02-B4CoQ82E.js";import"./Key01-6eW9IRFT.js";import"./LayoutLeft-BkxKKkMX.js";import"./LinkExternal01-BXhdtlT7.js";import"./Monitor01-DUICZH5i.js";import"./Sun-CEzPQTAJ.js";import"./Play-CbbqvWPd.js";import"./Plus-CSNkL1o7.js";import"./SearchMd-B-q2EsGW.js";import"./Settings02-CdJ0CKrL.js";import"./Shield01-Crgp73nV.js";import"./Stars01-BXO9Nc4-.js";import"./Trash01-C3pnsiws.js";import"./Upload01-BHsRhr7X.js";import"./User01-JuGE_kA7.js";import"./Users01-BVUwP6xk.js";import"./XClose-Da5LgJSi.js";import"./X-BdwzFded.js";import"./Zap-DHBAOmqP.js";import"./layout-PdamBSR0.js";import"./index-Dci2MWs9.js";import"./sidebar-BBqRosV0.js";import"./sheet-Utq51ofH.js";import"./use-connection-DpxWBF4Y.js";import"./use-mcp-tools-BTzw-W77.js";import"./dialog-Cwf6uY_y.js";import"./scroll-area-verb-Y8E.js";import"./index-Co-NpkaC.js";import"./hover-card-Azyk5Kxa.js";import"./dropdown-menu-UGlYpK18.js";import"./integration-icon-vaGvNHHz.js";import"./accordion-JZC0q2Q6.js";import"./index-sqqDCA0K.js";import"./empty-state-h_qXtgbw.js";import"./create-sse-subscription-BS5983N4.js";import"./input-D3E6n6la.js";function Bt(){const t=s.c(4);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/settings/workflows/$itemId"},t[0]=r):r=t[0];const{itemId:e}=l(r);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("div",{className:"flex h-full items-center justify-center",children:o.jsx(a,{size:32,className:"animate-spin text-muted-foreground"})}),t[1]=i):i=t[1];const p=decodeURIComponent(e);let m;return t[2]!==p?(m=o.jsx(n,{children:o.jsx(c.Suspense,{fallback:i,children:o.jsx(f,{itemId:p})})}),t[2]=p,t[3]=m):m=t[3],m}export{Bt as default};
|
package/dist/client/index.html
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
44
44
|
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
|
45
45
|
<meta name="apple-mobile-web-app-title" content="deco Studio" />
|
|
46
|
-
<script type="module" crossorigin src="/assets/index-
|
|
46
|
+
<script type="module" crossorigin src="/assets/index-CiRQNPVt.js"></script>
|
|
47
47
|
<link rel="stylesheet" crossorigin href="/assets/index-CZJ35dl3.css">
|
|
48
48
|
</head>
|
|
49
49
|
<body>
|