decocms 3.28.0 → 3.28.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-DU7uZY8J.js → AlertCircle-De-QnqNt.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-DEY-b6kE.js → ArrowUpRight-B0GfNpsw.js} +1 -1
- package/dist/client/assets/{Check-Bk-n4rKs.js → Check-DHmAQH53.js} +1 -1
- package/dist/client/assets/{CheckCircle-i_SCh8HK.js → CheckCircle-DKSRB9Xd.js} +1 -1
- package/dist/client/assets/{ChevronDown-D_SiD52e.js → ChevronDown-CN6qoGcG.js} +1 -1
- package/dist/client/assets/{ChevronLeft-CJxMMdOC.js → ChevronLeft-HFx1Uufy.js} +1 -1
- package/dist/client/assets/{ChevronRight-DRFF6KW4.js → ChevronRight-BJSYQUmF.js} +1 -1
- package/dist/client/assets/{ChevronUp-f28rZEwl.js → ChevronUp-CTGwFzLw.js} +1 -1
- package/dist/client/assets/{Container-DxRK5lMe.js → Container-DZBZNA8Y.js} +1 -1
- package/dist/client/assets/{DotsVertical-BD0Jlzeq.js → DotsVertical-jUGLCiy5.js} +1 -1
- package/dist/client/assets/{Eye-BR5jFpci.js → Eye-CGoLCmzu.js} +1 -1
- package/dist/client/assets/{FilterLines-DqLLGuqf.js → FilterLines-DYSfUppO.js} +1 -1
- package/dist/client/assets/{Globe01-CNB6Mpsd.js → Globe01--hrfRyvA.js} +1 -1
- package/dist/client/assets/{HardDrive-p4TajzWn.js → HardDrive-yKlUP3QG.js} +1 -1
- package/dist/client/assets/{Key01-DSBXnSBm.js → Key01-DqH2W8Qa.js} +1 -1
- package/dist/client/assets/{LayoutLeft-XknICfD_.js → LayoutLeft-CLZVvVLM.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DtQPZgan.js → LinkExternal01-CaYoYL1Y.js} +1 -1
- package/dist/client/assets/{Monitor01-B2xyeevM.js → Monitor01-BRL4_dKI.js} +1 -1
- package/dist/client/assets/{Palette-BbNQF7ac.js → Palette-B9PbEO6t.js} +1 -1
- package/dist/client/assets/{Play-TWKPwhCM.js → Play-Btpg8EpH.js} +1 -1
- package/dist/client/assets/{Plus-DXSb81sc.js → Plus-Cv0T2Pov.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-CR2Fhw_7.js → RefreshCcw01-CcpA4rje.js} +1 -1
- package/dist/client/assets/{SearchMd-AWrKGzzG.js → SearchMd-BP9M1g2N.js} +1 -1
- package/dist/client/assets/{Settings02-C46G6WCc.js → Settings02-BMRrFVdB.js} +1 -1
- package/dist/client/assets/{Shield01-CX_dkwPt.js → Shield01-rOhEAWZ1.js} +1 -1
- package/dist/client/assets/{Star01-Bj8KnWg6.js → Star01-BjpgI7im.js} +1 -1
- package/dist/client/assets/{Stars01-EZHZaPSP.js → Stars01-yuWjNyMF.js} +1 -1
- package/dist/client/assets/{Stars02-C_A7q-Eh.js → Stars02-Cv3Kyp_N.js} +1 -1
- package/dist/client/assets/{Sun-DXzJdR2z.js → Sun-C0I4hv8e.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-D6F_mKYx.js → SwitchHorizontal01-CLZ8VEjC.js} +1 -1
- package/dist/client/assets/{Tool01-CE1enLWz.js → Tool01-DPPRaW86.js} +1 -1
- package/dist/client/assets/{Trash01-D8gQFcOn.js → Trash01-s7FZsfBC.js} +1 -1
- package/dist/client/assets/{Upload01-Br3xRIzS.js → Upload01-xUCMslnL.js} +1 -1
- package/dist/client/assets/{User01-D6Gs71XK.js → User01-BsF0RS3z.js} +1 -1
- package/dist/client/assets/{Users01-Bb-aDnk6.js → Users01-D-iBSVXa.js} +1 -1
- package/dist/client/assets/{Users03-CTeoWFzj.js → Users03-CKUicuTa.js} +1 -1
- package/dist/client/assets/{X-Bf_z2Leo.js → X-CMYaHMo4.js} +1 -1
- package/dist/client/assets/{XCircle-UQit86MX.js → XCircle-BdbzgmP6.js} +1 -1
- package/dist/client/assets/{XClose-Bgoke-N6.js → XClose-N2P2hiYb.js} +1 -1
- package/dist/client/assets/{Zap-TkrtxiYp.js → Zap-gqEvk94k.js} +1 -1
- package/dist/client/assets/{ZapSquare-H66QOKYB.js → ZapSquare-AN7R7mTa.js} +1 -1
- package/dist/client/assets/{ZoomOut-Cx-hi9HP.js → ZoomOut-Xe1itnU7.js} +1 -1
- package/dist/client/assets/{access-gate-lvdpuHDY.js → access-gate-Dx320Euv.js} +1 -1
- package/dist/client/assets/{accordion-SKOJ-KFj.js → accordion-BIWbMpHu.js} +1 -1
- package/dist/client/assets/{add-section-modal-TR_K3MgP.js → add-section-modal-e667gRvo.js} +1 -1
- package/dist/client/assets/{agent-capabilities-Dfyq2uGy.js → agent-capabilities-Deuuzqbm.js} +1 -1
- package/dist/client/assets/{agent-icon-OWcPDEQ2.js → agent-icon-D1ySfhKA.js} +1 -1
- package/dist/client/assets/{agent-icons-cDvwhRBa.js → agent-icons-DpDt_xvu.js} +1 -1
- package/dist/client/assets/{agents-list-CQR5Pn0v.js → agents-list-DXTuElJ5.js} +1 -1
- package/dist/client/assets/{ai-providers-DaCH_i9C.js → ai-providers-CHLGgXkW.js} +1 -1
- package/dist/client/assets/{alert-dialog-BqyMBnmX.js → alert-dialog-CBzhgusU.js} +1 -1
- package/dist/client/assets/{alert-B23mwX-o.js → alert-zJcnZqHG.js} +1 -1
- package/dist/client/assets/app-editor-DqV_IRWA.js +1 -0
- package/dist/client/assets/{auth-catchall-9EV3406W.js → auth-catchall-GeRmeWq3.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DLW_QQ-W.js → auth-split-layout-B_vpA1VO.js} +1 -1
- package/dist/client/assets/{automation-list-row-BwkKTT5_.js → automation-list-row-7qb4yrwv.js} +1 -1
- package/dist/client/assets/{automation-runs-CZtduC0L.js → automation-runs-BcknuTTv.js} +1 -1
- package/dist/client/assets/{automations-BICbKbA1.js → automations-K7jo5bzv.js} +1 -1
- package/dist/client/assets/{avatar-BzNw5Uju.js → avatar-AI83PqVE.js} +1 -1
- package/dist/client/assets/{badge-B2p1Cov_.js → badge-CikIA9ZK.js} +1 -1
- package/dist/client/assets/{brand-context-DZXUjVgo.js → brand-context-BwVwErVn.js} +1 -1
- package/dist/client/assets/{buckets-5mIo-vQP.js → buckets-DUsKq9i-.js} +1 -1
- package/dist/client/assets/{calendar-CNvaxbzF.js → calendar-DZmZKFmb.js} +1 -1
- package/dist/client/assets/{capability-load-error-DiOZh0BR.js → capability-load-error-Db8x02Oo.js} +1 -1
- package/dist/client/assets/{card-Cm77QeIs.js → card-DmbfBYZU.js} +1 -1
- package/dist/client/assets/{chat-context-hSR2djUS.js → chat-context-BOn4WPpq.js} +6 -6
- package/dist/client/assets/{checkbox-B-8BZy2m.js → checkbox-Cwl_z5GL.js} +1 -1
- package/dist/client/assets/{cli-auth-success-C_SoVu4q.js → cli-auth-success--vqcpMzi.js} +1 -1
- package/dist/client/assets/{collection-detail-BiXcw8MS.js → collection-detail-BnmgQ1CE.js} +1 -1
- package/dist/client/assets/{collection-display-button-ID_MOaLN.js → collection-display-button-0uuG9Zva.js} +1 -1
- package/dist/client/assets/{collection-search-BAFbwDkO.js → collection-search-B-CX-Cb7.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CV-yXvS9.js → collection-table-wrapper-DI5q4GEY.js} +1 -1
- package/dist/client/assets/{collection-tabs-CrxbRblh.js → collection-tabs-CdfD34L4.js} +1 -1
- package/dist/client/assets/{collections-BI_JGQp4.js → collections-CXYJ8MVZ.js} +1 -1
- package/dist/client/assets/{command-OYpJfVPX.js → command-BHuAtd3n.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-DCdLrvVO.js → connect-desktop-dialog-DRFjva34.js} +1 -1
- package/dist/client/assets/{connection-card-BMnV5fMv.js → connection-card-DEvkcpmQ.js} +1 -1
- package/dist/client/assets/{connection-detail-DEj4qBsZ.js → connection-detail-CWd-Y8iP.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DnPdxsfv.js → connection-form-helpers-BxYEqmM8.js} +1 -1
- package/dist/client/assets/{connections-DSD_MevM.js → connections-BtPFfd05.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-E7Sw2N0h.js → decopilot-sse-pool-Bj1W2y0B.js} +1 -1
- package/dist/client/assets/{dialog-C6QaYxl0.js → dialog-IkiImd7I.js} +1 -1
- package/dist/client/assets/{domain-settings-BQ528-l5.js → domain-settings-B-px7BiX.js} +1 -1
- package/dist/client/assets/{drawer-vaHtyblX.js → drawer-DO_U_Bhd.js} +1 -1
- package/dist/client/assets/{dropdown-menu-Imbn90PR.js → dropdown-menu-C-Cxaez8.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-6a9zWAcg.js → dynamic-plugin-layout-DHOlocDg.js} +1 -1
- package/dist/client/assets/{empty-state-BcYDemrG.js → empty-state-CzxH8T9l.js} +1 -1
- package/dist/client/assets/{empty-state-DiL0zFYg.js → empty-state-o52Hq4fy.js} +1 -1
- package/dist/client/assets/{extract-connection-data-A3fQ5XNQ.js → extract-connection-data-Uz57CpVC.js} +1 -1
- package/dist/client/assets/{features-D5bvFK6H.js → features-DfTRf5eR.js} +1 -1
- package/dist/client/assets/{file-explorer-dtc6EQ2u.js → file-explorer-Wed6GBRH.js} +1 -1
- package/dist/client/assets/{file-type-icon-DlkWBYHv.js → file-type-icon-BYSeb5A3.js} +1 -1
- package/dist/client/assets/{files-OPskzPlL.js → files-PguEGaiI.js} +1 -1
- package/dist/client/assets/{form-9w_l2sE8.js → form-ChQh_wIn.js} +1 -1
- package/dist/client/assets/{general-lhm5elhX.js → general-BoF0bKER.js} +1 -1
- package/dist/client/assets/{generate-id-D-Z8lvmk.js → generate-id-BrtbvnKY.js} +1 -1
- package/dist/client/assets/{github-repo-picker-Dv4KJl0O.js → github-repo-picker-13FobS0K.js} +1 -1
- package/dist/client/assets/header-tab-button-Qu1eh6fb.js +5 -0
- package/dist/client/assets/{hover-card-BI6ysAg8.js → hover-card-5iaAH0_M.js} +1 -1
- package/dist/client/assets/{image-field-CcseK2kZ.js → image-field-C3Pv1Di2.js} +1 -1
- package/dist/client/assets/{index-duBgFwwx.js → index-BxF-LrkW.js} +1 -1
- package/dist/client/assets/{index-D7Ym_-5D.js → index-BxgO4x6f.js} +1 -1
- package/dist/client/assets/{index-Dm_1qSI1.js → index-C5R8l9NR.js} +1 -1
- package/dist/client/assets/{index-66izpaHD.js → index-CbGPcWEH.js} +1 -1
- package/dist/client/assets/{index-DbgXBP8O.js → index-Ctxajzpe.js} +1 -1
- package/dist/client/assets/{index-DkHi5sno.js → index-CwSpOXRj.js} +1 -1
- package/dist/client/assets/{index-mc4bQjv-.js → index-CweEMiqH.js} +1 -1
- package/dist/client/assets/{index-b-VAmZ9T.js → index-CwnBaaeQ.js} +25 -25
- package/dist/client/assets/{index-BmS_uKXZ.js → index-D0sk3sYa.js} +1 -1
- package/dist/client/assets/{index-Bi8_oF4i.js → index-DFp-rnQf.js} +1 -1
- package/dist/client/assets/{index-CEsEADMd.js → index-Dcfw-W2O.js} +1 -1
- package/dist/client/assets/{index-DBqH3_Tr.js → index-Dlc4tDxO.js} +3 -3
- package/dist/client/assets/{index-CZV4OD7q.js → index-Kzj6xvOo.js} +1 -1
- package/dist/client/assets/{index-DCdT8576.js → index-NNvehl9i.js} +1 -1
- package/dist/client/assets/{index-g0ii0jyc.js → index-YyegPZ6_.js} +1 -1
- package/dist/client/assets/{index-redirect-Cik9CpVs.js → index-redirect-BRsZDGI9.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DFtHCFaz.js → infiniteQueryObserver-D4Z6Hq7s.js} +1 -1
- package/dist/client/assets/{input-Cuzo-zTy.js → input-CDaarCl_.js} +1 -1
- package/dist/client/assets/{integration-icon-C1XpJ7QJ.js → integration-icon-DylMdkB7.js} +1 -1
- package/dist/client/assets/{label-CcXzfa1l.js → label-CmtFIrH6.js} +1 -1
- package/dist/client/assets/{layout-BJtn7s4t.js → layout-Czl8yfyb.js} +1 -1
- package/dist/client/assets/{login-Jhcl5D4A.js → login-CZ304Hwe.js} +1 -1
- package/dist/client/assets/{members-DANjql1K.js → members-DldCeEf4.js} +1 -1
- package/dist/client/assets/{monaco-editor-CSoW9X1e.js → monaco-editor--8410HRL.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BGCHrDPH.js → monitoring-stats-row-p2QkpslG.js} +1 -1
- package/dist/client/assets/{oauth-callback-BlNYkvOU.js → oauth-callback-BjKMJUNm.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DH8djC-I.js → oauth-callback-ai-provider--EBMOSLZ.js} +1 -1
- package/dist/client/assets/{onboarding-CYkPWfyZ.js → onboarding-Dujhc2aN.js} +1 -1
- package/dist/client/assets/{org-install-DgsgwzFi.js → org-install-BRL26TWn.js} +1 -1
- package/dist/client/assets/{org-layout-CkFNhLrh.js → org-layout-7aQLDDnY.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-BXdjOse3.js → org-plugin-layout-Ch8ukpQt.js} +1 -1
- package/dist/client/assets/{page-seo-form-DgwMXCLr.js → page-seo-form-Cz5Nib_0.js} +1 -1
- package/dist/client/assets/page-seo-sheet-CcoAXMMc.js +1 -0
- package/dist/client/assets/{pair-D-dPw7Vh.js → pair-BfYvjacw.js} +2 -2
- package/dist/client/assets/{plugin-empty-state-CeRXXOD9.js → plugin-empty-state-Bafs814S.js} +1 -1
- package/dist/client/assets/{plugin-header-DZqxJKiL.js → plugin-header-CzH_o1AA.js} +1 -1
- package/dist/client/assets/{plugin-layout-CGOJQMJE.js → plugin-layout-BrlPuAvi.js} +1 -1
- package/dist/client/assets/{popover-Cg9khto7.js → popover-DaxAVDXR.js} +1 -1
- package/dist/client/assets/{post-editor-DeTikwJT.js → post-editor-DZv3v9vs.js} +1 -1
- package/dist/client/assets/{primitives-B8qUvq34.js → primitives-C2FB52ts.js} +1 -1
- package/dist/client/assets/{profile-DcLK_GvV.js → profile-Ch1PMZ--.js} +1 -1
- package/dist/client/assets/project-app-view-CNkoTSGZ.js +1 -0
- package/dist/client/assets/record-editor-B2xsglRQ.js +1 -0
- package/dist/client/assets/registry-BD5AwdfO.js +2 -0
- package/dist/client/assets/{registry-layout-CeQDBbI0.js → registry-layout-D5296RDd.js} +1 -1
- package/dist/client/assets/{require-capability-LsMjGzeH.js → require-capability-D8n6HrEr.js} +1 -1
- package/dist/client/assets/{required-auth-layout-A79U5RVL.js → required-auth-layout-q1UX5iFV.js} +1 -1
- package/dist/client/assets/{reset-password-v1OfhuM4.js → reset-password-BUp5wXvt.js} +1 -1
- package/dist/client/assets/{resizable-DxL9OiT-.js → resizable-B_wg5OKG.js} +1 -1
- package/dist/client/assets/{roles-DrAidx6u.js → roles-CFjXltMh.js} +1 -1
- package/dist/client/assets/save-referenced-block-C-C4ro26.js +1 -0
- package/dist/client/assets/{save-status-BPgyONO2.js → save-status-CJhEsrLH.js} +1 -1
- package/dist/client/assets/{schema-form-CIsE9rP6.js → schema-form-D_d0W0_5.js} +1 -1
- package/dist/client/assets/{scroll-area-DOSO9pu3.js → scroll-area-CifcP4Wg.js} +1 -1
- package/dist/client/assets/{search-input-fUp8LGk1.js → search-input-eml2HEUh.js} +1 -1
- package/dist/client/assets/{secrets-BBpvMqxV.js → secrets-DnWBimzu.js} +1 -1
- package/dist/client/assets/{sections-editor-BUSId1Zm.js → sections-editor-GEeJkb9Q.js} +1 -1
- package/dist/client/assets/{select-O-homC7-.js → select-Dz7DPkoH.js} +1 -1
- package/dist/client/assets/{select-model-C2bxkMXw.js → select-model-B6KC9bZ9.js} +1 -1
- package/dist/client/assets/{seo-editor-COYKOkSM.js → seo-editor-yjW-SMAL.js} +1 -1
- package/dist/client/assets/{settings-layout-DzAPFM8g.js → settings-layout-Cvw0dTbU.js} +1 -1
- package/dist/client/assets/{settings-section-bWEtm5yt.js → settings-section-BkfPlxIX.js} +1 -1
- package/dist/client/assets/{sheet-BvtvfFAl.js → sheet-C2OErkZR.js} +1 -1
- package/dist/client/assets/{shell-controls-JCdbPD3N.js → shell-controls-CgyBrm6l.js} +1 -1
- package/dist/client/assets/{shell-layout-Bhb76vPi.js → shell-layout-D-4Zna-j.js} +1 -1
- package/dist/client/assets/{shell-route-loading-mUaMt2AK.js → shell-route-loading-D7iIgnMy.js} +1 -1
- package/dist/client/assets/{sidebar-qjaU6R6F.js → sidebar-BT1O99E-.js} +1 -1
- package/dist/client/assets/{skeleton-Bs6B9g7A.js → skeleton-bErIIEAe.js} +1 -1
- package/dist/client/assets/{sortable.esm-CyfFdOo4.js → sortable.esm-D_73qywG.js} +1 -1
- package/dist/client/assets/{spinner-CODSjjQl.js → spinner-DUmur8qx.js} +1 -1
- package/dist/client/assets/{sso-ETVhKmcD.js → sso-jmWB0IlU.js} +1 -1
- package/dist/client/assets/{store-BWJ3fbUY.js → store-CPLW6WOq.js} +1 -1
- package/dist/client/assets/store-registry-BUknjkUH.js +2 -0
- package/dist/client/assets/{studio-tools-hfOcm94T.js → studio-tools-B-zlmqyw.js} +1 -1
- package/dist/client/assets/{switch-B76FjS24.js → switch-CRVfQAZr.js} +1 -1
- package/dist/client/assets/{tab-id-DJcQxSw_.js → tab-id-By_JW--7.js} +2 -2
- package/dist/client/assets/{table-DychmbHa.js → table-70fRVfwQ.js} +1 -1
- package/dist/client/assets/{tabs-5VCr7Lmg.js → tabs-_yym-ubf.js} +1 -1
- package/dist/client/assets/{task-status-BrHrBwF0.js → task-status-B3M1uY2i.js} +1 -1
- package/dist/client/assets/{textarea-Oxf83X-s.js → textarea-BhyLj2Dp.js} +1 -1
- package/dist/client/assets/{toggle-group-B_flmDPF.js → toggle-group-BYYoZiYB.js} +1 -1
- package/dist/client/assets/{toolbar-8WByzcnO.js → toolbar-BQgYgute.js} +1 -1
- package/dist/client/assets/{tools-list-dYx9Si__.js → tools-list-Bib10JJv.js} +1 -1
- package/dist/client/assets/{tooltip-B7sOnQkv.js → tooltip-D0rD3x8T.js} +1 -1
- package/dist/client/assets/{types-DBP54icS.js → types-Bt2jh4HB.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CSnlplZs.js → use-ai-providers-BL6EQsm8.js} +1 -1
- package/dist/client/assets/{use-automations-Ds0WDnWO.js → use-automations-jCgcI_Hn.js} +1 -1
- package/dist/client/assets/{use-capability-CPfyR7lg.js → use-capability-DqPX2R7m.js} +1 -1
- package/dist/client/assets/{use-collections-cYI0oKE6.js → use-collections-CH3Uvmj5.js} +1 -1
- package/dist/client/assets/{use-connection-lmAzDQtG.js → use-connection-BGpjiuJJ.js} +1 -1
- package/dist/client/assets/{use-copy-BZu-B9lH.js → use-copy-DHiMTnai.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Bkzx6tcI.js → use-create-virtual-mcp-8G8o89BT.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CyyIp3oB.js → use-debounced-autosave-BnF-F24h.js} +1 -1
- package/dist/client/assets/{use-delete-connection-2QDp_tYR.js → use-delete-connection-DSxSiAyt.js} +1 -1
- package/dist/client/assets/{use-file-configs-BY47ZlQU.js → use-file-configs-CDby3RwC.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-bWgRjm8B.js → use-infinite-scroll-BlDyJWAa.js} +1 -1
- package/dist/client/assets/{use-list-state-Dq7vira_.js → use-list-state-nfg3Cb56.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BgKdABiW.js → use-mcp-client-BoOtVD9g.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-D52UL8AH.js → use-mcp-prompts-CYbN8Yyl.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DVLWn59S.js → use-mcp-tools-DlzThqmJ.js} +1 -1
- package/dist/client/assets/{use-members-BY2IDfpw.js → use-members-BLEStPtC.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-B96HLz_j.js → use-navigate-to-agent-_X_kAEcz.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CdNQL1J3.js → use-org-auth-client-ziK5gAU8.js} +1 -1
- package/dist/client/assets/{use-org-sso-ChCwS_VA.js → use-org-sso-BCRYycoj.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BPVtkwsY.js → use-organization-roles-zr9qa8BU.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Dpet9l_V.js → use-organization-settings-BQtNgLEs.js} +1 -1
- package/dist/client/assets/{use-registry-connections-XCi4lRb-.js → use-registry-connections-CPtcwe6P.js} +1 -1
- package/dist/client/assets/{use-secrets-BqVTqitm.js → use-secrets-wimlaYjN.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CwFju7iN.js → use-status-sounds-CZU7jLXq.js} +1 -1
- package/dist/client/assets/{use-view-mode-B5hNsOGq.js → use-view-mode-BJ_FnvkJ.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-FBTL02d0.js → use-virtual-mcp-_FyR-EfH.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Dzg2BCY9.js +1 -0
- package/dist/client/assets/{useRouterState--dWmVQ9c.js → useRouterState-CfhsEB7J.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-D3ys-EbO.js +1 -0
- package/dist/client/assets/{user-Cg2LA8Mh.js → user-CXZKnlfK.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DVxKMSOa.js → view-mode-toggle-BO9qiFWG.js} +1 -1
- package/dist/client/assets/{workflow-t9WsYZ9Y.js → workflow-CA6KPd9J.js} +1 -1
- package/dist/client/assets/workflow-detail-DzevlE_t.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +421 -513
- package/dist/server/migrate.js +98 -98
- package/dist/server/server.js +282 -282
- package/package.json +1 -1
- package/dist/client/assets/app-editor-DcKlfdHo.js +0 -1
- package/dist/client/assets/header-tab-button-2U6O3giw.js +0 -5
- package/dist/client/assets/page-seo-sheet-B2dnrk9E.js +0 -1
- package/dist/client/assets/project-app-view-CUDu3MEL.js +0 -1
- package/dist/client/assets/record-editor-Bqbny3n8.js +0 -1
- package/dist/client/assets/registry-CT-bGrYc.js +0 -2
- package/dist/client/assets/save-referenced-block-6TdaXn38.js +0 -1
- package/dist/client/assets/store-registry-BQiuioAM.js +0 -2
- package/dist/client/assets/useInfiniteQuery-DMW4zCm0.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-tnhNRWqB.js +0 -1
- package/dist/client/assets/workflow-detail-BgLcBn-p.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-Dlc4tDxO.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-BPVtkwsY.js → use-organization-roles-zr9qa8BU.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as R}from"./use-org-auth-client-
|
|
1
|
+
import{u as R}from"./use-org-auth-client-ziK5gAU8.js";import{q as b,n as P,K as y}from"./index-Dlc4tDxO.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-Dlc4tDxO.js";import{a as h,u as A,W as R}from"./use-mcp-client-BoOtVD9g.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-Dlc4tDxO.js";import{u as R}from"./use-connection-BGpjiuJJ.js";import{W as u}from"./use-mcp-client-BoOtVD9g.js";import{g as p}from"./use-organization-settings-BQtNgLEs.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 n,q as r,K as c,s as y,G as d,a as S}from"./index-
|
|
1
|
+
import{e as n,q as r,K as c,s as y,G as d,a as S}from"./index-Dlc4tDxO.js";import{u as l}from"./studio-tools-B-zlmqyw.js";function C(){const e=n.c(7),{org:o}=r(),u=l();let i;e[0]!==o.id?(i=c.secrets(o.id),e[0]=o.id,e[1]=i):i=e[1];let t;e[2]!==u?(t=async()=>await u.call("SECRET_LIST",{}),e[2]=u,e[3]=t):t=e[3];let s;e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6];const{data:a}=y(s);return a.secrets}function p(){const e=n.c(8),{org:o}=r(),u=l(),i=d();let t;e[0]!==u?(t=async f=>await u.call("SECRET_CREATE",{...f}),e[0]=u,e[1]=t):t=e[1];let s;e[2]!==o||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:c.secrets(o.id)})},e[2]=o,e[3]=i,e[4]=s):s=e[4];let a;return e[5]!==t||e[6]!==s?(a={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=a):a=e[7],S(a)}export{p as a,C 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-Dlc4tDxO.js";import{p as R,q as I}from"./question-004-sINsf4GQ.js";import{d as y,D as S}from"./decopilot-sse-pool-Bj1W2y0B.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-Dlc4tDxO.js";import{u as w}from"./tooltip-D0rD3x8T.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-Dlc4tDxO.js";import{b as L,a as V,u as _,c as A}from"./use-collections-CH3Uvmj5.js";import{a as g,u as I}from"./use-mcp-client-BoOtVD9g.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 A(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 _(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 V(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-D4Z6Hq7s.js";import{cG as i}from"./index-Dlc4tDxO.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bo as s,r as c,bT as a,bU as i}from"./index-
|
|
1
|
+
import{bo as s,r as c,bT as a,bU as i}from"./index-Dlc4tDxO.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-D4Z6Hq7s.js";import{cG as u,aF as n}from"./index-Dlc4tDxO.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 w,n as k,K as S,c as y,j as t}from"./index-
|
|
1
|
+
import{e as w,n as k,K as S,c as y,j as t}from"./index-Dlc4tDxO.js";import{A as E}from"./avatar-AI83PqVE.js";import{u as K}from"./studio-tools-B-zlmqyw.js";function R(r){const e=w.c(9),p=K();let m;e[0]!==r?(m=S.user(r),e[0]=r,e[1]=m):m=e[1];let o;e[2]!==p||e[3]!==r?(o=async()=>{const{user:n}=await p.call("USER_GET",{id:r});return n},e[2]=p,e[3]=r,e[4]=o):o=e[4];const x=!!r;let s;return e[5]!==m||e[6]!==o||e[7]!==x?(s={queryKey:m,queryFn:o,staleTime:3e5,retry:1,enabled:x},e[5]=m,e[6]=o,e[7]=x,e[8]=s):s=e[8],k(s)}function A(r){const e=w.c(36),{id:p,size:m,showEmail:o,avatarOnly:x,className:s}=r,n=m===void 0?"xs":m,u=o===void 0?!1:o,d=x===void 0?!1:x,{data:c,isLoading:U,isError:b}=R(p);if(U){let l;e[0]!==s?(l=y("flex items-center gap-2",s),e[0]=s,e[1]=l):l=e[1];let a;e[2]!==n?(a=t.jsx(E.Skeleton,{shape:"circle",size:n}),e[2]=n,e[3]=a):a=e[3];let i;e[4]!==d||e[5]!==u?(i=!d&&t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsx("div",{className:"h-3 w-24 bg-muted animate-pulse rounded"}),u&&t.jsx("div",{className:"h-2 w-32 bg-muted animate-pulse rounded"})]}),e[4]=d,e[5]=u,e[6]=i):i=e[6];let f;return e[7]!==l||e[8]!==a||e[9]!==i?(f=t.jsxs("div",{className:l,children:[a,i]}),e[7]=l,e[8]=a,e[9]=i,e[10]=f):f=e[10],f}if(b||!c){let l;e[11]!==s?(l=y("flex items-center gap-2",s),e[11]=s,e[12]=l):l=e[12];let a;e[13]!==n?(a=t.jsx(E,{shape:"circle",size:n,fallback:"?",muted:!0}),e[13]=n,e[14]=a):a=e[14];let i;e[15]!==d?(i=!d&&t.jsx("div",{className:"flex flex-col",children:t.jsx("div",{className:"text-sm text-muted-foreground",children:"Unknown User"})}),e[15]=d,e[16]=i):i=e[16];let f;return e[17]!==l||e[18]!==a||e[19]!==i?(f=t.jsxs("div",{className:l,children:[a,i]}),e[17]=l,e[18]=a,e[19]=i,e[20]=f):f=e[20],f}let v;e[21]!==s?(v=y("flex items-center gap-2",s),e[21]=s,e[22]=v):v=e[22];const g=c.image??void 0;let h;e[23]!==n||e[24]!==g||e[25]!==c.name?(h=t.jsx(E,{shape:"circle",size:n,url:g,fallback:c.name}),e[23]=n,e[24]=g,e[25]=c.name,e[26]=h):h=e[26];let j;e[27]!==d||e[28]!==u||e[29]!==c.email||e[30]!==c.name?(j=!d&&t.jsxs("div",{className:"flex flex-col",children:[t.jsx("div",{className:"text-sm font-medium",children:c.name}),u&&t.jsx("div",{className:"text-xs text-muted-foreground",children:c.email})]}),e[27]=d,e[28]=u,e[29]=c.email,e[30]=c.name,e[31]=j):j=e[31];let N;return e[32]!==v||e[33]!==h||e[34]!==j?(N=t.jsxs("div",{className:v,children:[h,j]}),e[32]=v,e[33]=h,e[34]=j,e[35]=N):N=e[35],N}export{A 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-Dlc4tDxO.js";import{b as I,T as P,a as L}from"./tooltip-D0rD3x8T.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 lt,q as ze,r as at,o as Le,G as ct,a as dt,K as Fe,ec as Ke,dz as mt}from"./index-DBqH3_Tr.js";import{u as pt,a as ut}from"./use-mcp-client-BgKdABiW.js";import{B as ft,g as Me}from"./generate-id-D-Z8lvmk.js";import{C as qe}from"./collection-display-button-ID_MOaLN.js";import{C as ht}from"./collection-search-BAFbwDkO.js";import{C as gt}from"./card-Cm77QeIs.js";import{I as Ve}from"./integration-icon-C1XpJ7QJ.js";import{D as Ge,a as Qe,b as He,c as O}from"./dropdown-menu-Imbn90PR.js";import{s as Je,a as Ye}from"./Eye-BR5jFpci.js";import{i as Xe}from"./DotsVertical-BD0Jlzeq.js";import{i as Ze}from"./Tool01-CE1enLWz.js";import{s as et}from"./Trash01-D8gQFcOn.js";import{C as xt}from"./collection-table-wrapper-CV-yXvS9.js";import{E as Ue}from"./empty-state-BcYDemrG.js";import{n as We}from"./Stars02-C_A7q-Eh.js";import{U as jt}from"./user-Cg2LA8Mh.js";import{E as tt}from"./empty-state-DiL0zFYg.js";import{u as Ct}from"./use-list-state-Dq7vira_.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-BqyMBnmX.js";import{a as It,b as At}from"./use-collections-cYI0oKE6.js";import{a as Tt}from"./use-connection-lmAzDQtG.js";import{s as Et}from"./Plus-DXSb81sc.js";import{a as Ot}from"./layout-BJtn7s4t.js";import{u as $t}from"./studio-tools-hfOcm94T.js";import{P as je}from"./index-DCdT8576.js";import"./collections-BI_JGQp4.js";import"./SwitchHorizontal01-D6F_mKYx.js";import"./Check-Bk-n4rKs.js";import"./tooltip-B7sOnQkv.js";import"./view-mode-toggle-DVxKMSOa.js";import"./badge-B2p1Cov_.js";import"./SearchMd-AWrKGzzG.js";import"./Container-DxRK5lMe.js";import"./agent-icon-OWcPDEQ2.js";import"./AlertCircle-DU7uZY8J.js";import"./RefreshCcw01-CR2Fhw_7.js";import"./XCircle-UQit86MX.js";import"./ArrowUpRight-DEY-b6kE.js";import"./ZapSquare-H66QOKYB.js";import"./Users03-CTeoWFzj.js";import"./CheckCircle-i_SCh8HK.js";import"./ChevronDown-D_SiD52e.js";import"./ChevronLeft-CJxMMdOC.js";import"./ChevronRight-DRFF6KW4.js";import"./ChevronUp-f28rZEwl.js";import"./ZoomOut-Cx-hi9HP.js";import"./Globe01-CNB6Mpsd.js";import"./FilterLines-DqLLGuqf.js";import"./Star01-Bj8KnWg6.js";import"./Palette-BbNQF7ac.js";import"./HardDrive-p4TajzWn.js";import"./Key01-DSBXnSBm.js";import"./LayoutLeft-XknICfD_.js";import"./LinkExternal01-DtQPZgan.js";import"./Monitor01-B2xyeevM.js";import"./Sun-DXzJdR2z.js";import"./Play-TWKPwhCM.js";import"./Settings02-C46G6WCc.js";import"./Shield01-CX_dkwPt.js";import"./Stars01-EZHZaPSP.js";import"./Upload01-Br3xRIzS.js";import"./User01-D6Gs71XK.js";import"./Users01-Bb-aDnk6.js";import"./XClose-Bgoke-N6.js";import"./X-Bf_z2Leo.js";import"./Zap-TkrtxiYp.js";import"./table-DychmbHa.js";import"./avatar-BzNw5Uju.js";import"./use-view-mode-B5hNsOGq.js";import"./sidebar-qjaU6R6F.js";import"./sheet-BvtvfFAl.js";function kt(i,e){const s=i.properties||{};for(const n in s){const a=s[n];if(a&&a.type==="string"&&(a.format==="url"||a.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 zt(i){const e=oe.c(25),{item:s,schema:l,actions:n}=i;let a;e[0]!==s||e[1]!==l?(a=kt(l,s),e[0]=s,e[1]=l,e[2]=a):a=e[2];const r=a,u=s&&typeof s=="object"&&"description"in s&&typeof s.description=="string"?s.description:void 0;let m;e[3]!==n?(m=n&&Object.keys(n).length>0,e[3]=n,e[4]=m):m=e[4];const o=m;let p;e[5]!==r||e[6]!==s.title?(p=t.jsx(Ve,{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 d;e[8]!==s.title?(d=t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:s.title}),e[8]=s.title,e[9]=d):d=e[9];const h=u||"No description";let c;e[10]!==h?(c=t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:h}),e[10]=h,e[11]=c):c=e[11];let v;e[12]!==d||e[13]!==c?(v=t.jsxs("div",{className:"flex flex-col gap-0 flex-1",children:[d,c]}),e[12]=d,e[13]=c,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:Mt,onMouseDown:Kt,children:t.jsxs(Ge,{children:[t.jsx(Qe,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:Ft,children:t.jsx(Xe,{size:20})})}),t.jsxs(He,{align:"end",onClick:Lt,children:[n.open&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.open?.(s)},children:[t.jsx(Je,{size:16}),"Open"]}),n.edit&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.edit?.(s)},children:[t.jsx(Ze,{size:16}),"Edit"]}),n.duplicate&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.duplicate?.(s)},children:[t.jsx(Ye,{size:16}),"Duplicate"]}),n.delete&&t.jsxs(O,{variant:"destructive",onClick:g=>{g.stopPropagation(),n.delete?.(s)},children:[t.jsx(et,{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 Lt(i){return i.stopPropagation()}function Ft(i){return i.stopPropagation()}function Kt(i){return i.stopPropagation()}function Mt(i){return i.stopPropagation()}const Ut=["icon","avatar","logo"],Re=["created_at","created_by","id"];function Wt(i){return Object.keys(i).find(e=>Ut.includes(e.toLowerCase()))}function st(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 Rt(i){const e=oe.c(30),{data:s,schema:l,viewMode:n,search:a,sortKey:r,sortDirection:u,onSort:m,actions:o,onItemClick:p,headerActions:d,emptyState:h,readOnly:c,columns:v,hideToolbar:y,sortableFields:b}=i,x=u===void 0?"asc":u,g=m===void 0?Gt:m;let $;e[0]!==o?($=o===void 0?{}:o,e[0]=o,e[1]=$):$=e[1];const f=$,T=p===void 0?Vt:p,E=d===void 0?null:d,N=h===void 0?null:h,k=c===void 0?!1:c,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(qt).filter(A=>!P||P.includes(A.id)).map(Bt):st(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(qe,{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]!==f||e[14]!==j||e[15]!==s||e[16]!==N||e[17]!==T||e[18]!==g||e[19]!==k||e[20]!==l||e[21]!==a||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:a?"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(zt,{item:A,schema:l,readOnly:k,actions:f})},A.id))})}):t.jsx(xt,{columns:Jt(j,l,P,f),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:a?"Try adjusting your search":"No items to display"})}),e[13]=f,e[14]=j,e[15]=s,e[16]=N,e[17]=T,e[18]=g,e[19]=k,e[20]=l,e[21]=a,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 Bt(i){return{id:i.id,label:typeof i.header=="string"?i.header:i.id}}function qt(i){return i.sortable!==!1}function Vt(){}function Gt(){}function Qt(i){return{id:"actions",header:"",render:e=>t.jsxs(Ge,{children:[t.jsx(Qe,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:s=>s.stopPropagation(),children:t.jsx(Xe,{size:20})})}),t.jsxs(He,{align:"end",onClick:s=>s.stopPropagation(),children:[i.open&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.open?.(e)},children:[t.jsx(Je,{size:16}),"Open"]}),i.edit&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.edit?.(e)},children:[t.jsx(Ze,{size:16}),"Edit"]}),i.duplicate&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.duplicate?.(e)},children:[t.jsx(Ye,{size:16}),"Duplicate"]}),i.delete&&t.jsxs(O,{variant:"destructive",onClick:s=>{s.stopPropagation(),i.delete?.(e)},children:[t.jsx(et,{size:16}),"Delete"]})]})]}),cellClassName:"w-[60px]",sortable:!1}}function it(i){const e=i.type;return Array.isArray(e)?e.every(s=>it({type:s})):e==="string"||e==="number"||e==="integer"||e==="boolean"||e==="null"}function Ht(i,e){const s=i.properties||{},l=Object.keys(s).filter(o=>{const p=s[o];return p&&it(p)}),n=Wt(s),a=[],r=new Set;n&&l.includes(n)&&(a.push(n),r.add(n));const u=["title","description","updated_at","updated_by"];for(const o of u)l.includes(o)&&!r.has(o)&&(a.push(o),r.add(o));const m=l.filter(o=>!r.has(o)&&!Re.includes(o)).sort((o,p)=>o.localeCompare(p));for(const o of m)a.push(o),r.add(o);for(const o of Re)l.includes(o)&&!r.has(o)&&(a.push(o),r.add(o));return a.map(o=>{const p=s[o],d=e?e.includes(o):!["id"].includes(o);return o===n?{id:o,header:"",render:h=>{const c=h[o];return t.jsx(Ve,{icon:c,name:h.title,size:"sm",className:"shrink-0 shadow-sm"})},sortable:!1,cellClassName:"w-16 shrink-0",wrap:!0}:o==="description"?{id:o,header:"Description",render:h=>{const c=h[o];return c==null?"—":t.jsx("span",{className:"block truncate max-w-[50ch]",children:String(c)})},sortable:d,cellClassName:"max-w-[50ch]"}:o==="created_by"||o==="updated_by"?{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:h=>{const c=h[o];return c?t.jsx(jt,{id:String(c),size:"xs"}):"—"},sortable:d,cellClassName:"max-w-[250px]"}:p?.format==="date-time"||o.endsWith("_at")?{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:h=>{const c=h[o];return c?t.jsx("span",{className:"block truncate max-w-full",children:new Date(c).toLocaleDateString()}):"—"},sortable:d,cellClassName:"max-w-[200px]"}:{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:h=>{const c=h[o];return c==null?"—":t.jsx("span",{className:"block truncate max-w-full",children:String(c)})},sortable:d,cellClassName:"max-w-[200px]"}})}function Jt(i,e,s,l){const n=i||Ht(e,s);return n.some(u=>u.id==="actions")?n:Object.keys(l).length>0?[...n,Qt(l)]:n}function Yt(i){const e=oe.c(119),{connectionId:s,org:l,activeCollection:n,onItemClick:a}=i,r=n.name,u=n.schema??ft,m=n.hasCreateTool,o=n.hasUpdateTool,p=n.hasDeleteTool,d=Be(),{data:h}=lt.useSession(),c=h?.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 $=pt(g),f=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=!m&&!o&&!p;let ne;e[14]!==b||e[15]!==r||e[16]!==d||e[17]!==a||e[18]!==l?(ne=C=>{if(a){a(C);return}d({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]=d,e[17]=a,e[18]=l,e[19]=ne):ne=e[19];const L=ne;let re;e[20]!==f.create||e[21]!==c?(re=async C=>{const xe=new Date().toISOString();await f.create.mutateAsync({...C,id:Me("conn"),title:`${C.title} (Copy)`,created_at:xe,updated_at:xe,created_by:c,updated_by:c})},e[20]=f.create,e[21]=c,e[22]=re):re=e[22];const be=re,[F,ve]=at.useState(null);let le;e[23]===Symbol.for("react.memo_cache_sentinel")?(le=C=>{ve(C)},e[23]=le):le=e[23];const ot=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]!==m?(M=m&&{duplicate:be},e[27]=be,e[28]=m,e[29]=M):M=e[29];let U;e[30]!==p?(U=p&&{delete:ot},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]!==f.delete||e[37]!==F?(ce=async()=>{F&&(await f.delete.mutateAsync(F.id),ve(null))},e[36]=f.delete,e[37]=F,e[38]=ce):ce=e[38];const Ne=ce;let de;e[39]!==f.create||e[40]!==b||e[41]!==r||e[42]!==m||e[43]!==d||e[44]!==l||e[45]!==c?(de=async()=>{if(!m){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:c,updated_by:c};try{const ke=await f.create.mutateAsync(xe);d({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]=f.create,e[40]=b,e[41]=r,e[42]=m,e[43]=d,e[44]=l,e[45]=c,e[46]=de):de=e[46];const we=de;let me;e[47]!==u?(me=st(u),e[47]=u,e[48]=me):me=e[48];const Se=me,nt=(I?.length??0)>0,rt=m&&!nt&&!N;let pe;e[49]!==f.create||e[50]!==we||e[51]!==m?(pe=m?t.jsxs(Ce,{onClick:we,size:"sm",disabled:f.create.isPending,className:"h-7",children:[t.jsx(Et,{className:"mr-2 h-4 w-4"}),f.create.isPending?"Creating...":"Create"]}):null,e[49]=f.create,e[50]=we,e[51]=m,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(qe,{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]!==m?(q=m&&t.jsx("div",{className:"pr-3",children:ue}),e[65]=ue,e[66]=m,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=rt?ue:void 0;let H;e[75]!==Ie||e[76]!==Ae||e[77]!==Te?(H=t.jsx(tt,{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(Rt,{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]!==f.delete.isPending?(Z=t.jsx(vt,{disabled:f.delete.isPending,children:"Cancel"}),e[100]=f.delete.isPending,e[101]=Z):Z=e[101];const $e=f.delete.isPending?"Deleting...":"Delete";let ee;e[102]!==f.delete.isPending||e[103]!==Ne||e[104]!==$e?(ee=t.jsx(yt,{onClick:Ne,disabled:f.delete.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:$e}),e[102]=f.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 Xt(){const i=oe.c(10),{org:e,project:s}=ze(),l=ct(),n=$t();let a;i[0]!==s||i[1]!==n?(a=async o=>{const p=s.enabledPlugins??[];if(p.includes(o))return;const d=[...p,o];return await n.call("COLLECTION_VIRTUAL_MCP_UPDATE",{id:s.id,data:{metadata:{enabled_plugins:d}}})},i[0]=s,i[1]=n,i[2]=a):a=i[2];let r;i[3]!==e||i[4]!==s||i[5]!==l?(r=()=>{l.invalidateQueries({queryKey:Fe.project(e.id,s.slug)}),l.invalidateQueries({queryKey:Fe.projects(e.id)})},i[3]=e,i[4]=s,i[5]=l,i[6]=r):r=i[6];let u;return i[7]!==a||i[8]!==r?(u={mutationFn:a,onSuccess:r,onError:Zt},i[7]=a,i[8]=r,i[9]=u):u=i[9],dt(u)}function Zt(i){Le.error("Failed to enable plugin: "+(i instanceof Error?i.message:"Unknown error"))}function es(i){const e=oe.c(12),{pluginId:s,title:l,description:n,icon:a}=i,r=Xt();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 m=u,o=a??null,p=r.isPending?"Enabling…":"Enable plugin";let d;e[3]!==r.isPending||e[4]!==m||e[5]!==p?(d=t.jsx(Ce,{onClick:m,disabled:r.isPending,children:p}),e[3]=r.isPending,e[4]=m,e[5]=p,e[6]=d):d=e[6];let h;return e[7]!==n||e[8]!==o||e[9]!==d||e[10]!==l?(h=t.jsx(tt,{image:o,title:l,description:n,actions:d}),e[7]=n,e[8]=o,e[9]=d,e[10]=l,e[11]=h):h=e[11],h}const ts={name:"WORKFLOW",displayName:"Workflow",hasCreateTool:!0,hasUpdateTool:!0,hasDeleteTool:!0};function vi(){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(es,{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(mt,{className:"size-8 text-muted-foreground"})})})})})});const n=Be();return t.jsx(je,{children:t.jsx(je.Content,{children:t.jsx(Yt,{connectionId:ut,org:e.slug,activeCollection:ts,onItemClick:a=>n({to:"/$org/settings/workflows/$itemId",params:{org:e.slug,itemId:a.id}})})})})}export{vi as default};
|
|
1
|
+
import{e as oe,j as t,B as Ce,f as Be,b as lt,q as ze,r as at,o as Le,G as ct,a as dt,K as Fe,ec as Ke,dz as mt}from"./index-Dlc4tDxO.js";import{u as pt,a as ut}from"./use-mcp-client-BoOtVD9g.js";import{B as ft,g as Me}from"./generate-id-BrtbvnKY.js";import{C as qe}from"./collection-display-button-0uuG9Zva.js";import{C as ht}from"./collection-search-B-CX-Cb7.js";import{C as gt}from"./card-DmbfBYZU.js";import{I as Ve}from"./integration-icon-DylMdkB7.js";import{D as Ge,a as Qe,b as He,c as O}from"./dropdown-menu-C-Cxaez8.js";import{s as Je,a as Ye}from"./Eye-CGoLCmzu.js";import{i as Xe}from"./DotsVertical-jUGLCiy5.js";import{i as Ze}from"./Tool01-DPPRaW86.js";import{s as et}from"./Trash01-s7FZsfBC.js";import{C as xt}from"./collection-table-wrapper-DI5q4GEY.js";import{E as Ue}from"./empty-state-CzxH8T9l.js";import{n as We}from"./Stars02-Cv3Kyp_N.js";import{U as jt}from"./user-CXZKnlfK.js";import{E as tt}from"./empty-state-o52Hq4fy.js";import{u as Ct}from"./use-list-state-nfg3Cb56.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-CBzhgusU.js";import{a as It,b as At}from"./use-collections-CH3Uvmj5.js";import{a as Tt}from"./use-connection-BGpjiuJJ.js";import{s as Et}from"./Plus-Cv0T2Pov.js";import{a as Ot}from"./layout-Czl8yfyb.js";import{u as $t}from"./studio-tools-B-zlmqyw.js";import{P as je}from"./index-NNvehl9i.js";import"./collections-CXYJ8MVZ.js";import"./SwitchHorizontal01-CLZ8VEjC.js";import"./Check-DHmAQH53.js";import"./tooltip-D0rD3x8T.js";import"./view-mode-toggle-BO9qiFWG.js";import"./badge-CikIA9ZK.js";import"./SearchMd-BP9M1g2N.js";import"./Container-DZBZNA8Y.js";import"./agent-icon-D1ySfhKA.js";import"./AlertCircle-De-QnqNt.js";import"./RefreshCcw01-CcpA4rje.js";import"./XCircle-BdbzgmP6.js";import"./ArrowUpRight-B0GfNpsw.js";import"./ZapSquare-AN7R7mTa.js";import"./Users03-CKUicuTa.js";import"./CheckCircle-DKSRB9Xd.js";import"./ChevronDown-CN6qoGcG.js";import"./ChevronLeft-HFx1Uufy.js";import"./ChevronRight-BJSYQUmF.js";import"./ChevronUp-CTGwFzLw.js";import"./ZoomOut-Xe1itnU7.js";import"./Globe01--hrfRyvA.js";import"./FilterLines-DYSfUppO.js";import"./Star01-BjpgI7im.js";import"./Palette-B9PbEO6t.js";import"./HardDrive-yKlUP3QG.js";import"./Key01-DqH2W8Qa.js";import"./LayoutLeft-CLZVvVLM.js";import"./LinkExternal01-CaYoYL1Y.js";import"./Monitor01-BRL4_dKI.js";import"./Sun-C0I4hv8e.js";import"./Play-Btpg8EpH.js";import"./Settings02-BMRrFVdB.js";import"./Shield01-rOhEAWZ1.js";import"./Stars01-yuWjNyMF.js";import"./Upload01-xUCMslnL.js";import"./User01-BsF0RS3z.js";import"./Users01-D-iBSVXa.js";import"./XClose-N2P2hiYb.js";import"./X-CMYaHMo4.js";import"./Zap-gqEvk94k.js";import"./table-70fRVfwQ.js";import"./avatar-AI83PqVE.js";import"./use-view-mode-BJ_FnvkJ.js";import"./sidebar-BT1O99E-.js";import"./sheet-C2OErkZR.js";function kt(i,e){const s=i.properties||{};for(const n in s){const a=s[n];if(a&&a.type==="string"&&(a.format==="url"||a.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 zt(i){const e=oe.c(25),{item:s,schema:l,actions:n}=i;let a;e[0]!==s||e[1]!==l?(a=kt(l,s),e[0]=s,e[1]=l,e[2]=a):a=e[2];const r=a,u=s&&typeof s=="object"&&"description"in s&&typeof s.description=="string"?s.description:void 0;let m;e[3]!==n?(m=n&&Object.keys(n).length>0,e[3]=n,e[4]=m):m=e[4];const o=m;let p;e[5]!==r||e[6]!==s.title?(p=t.jsx(Ve,{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 d;e[8]!==s.title?(d=t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:s.title}),e[8]=s.title,e[9]=d):d=e[9];const h=u||"No description";let c;e[10]!==h?(c=t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:h}),e[10]=h,e[11]=c):c=e[11];let v;e[12]!==d||e[13]!==c?(v=t.jsxs("div",{className:"flex flex-col gap-0 flex-1",children:[d,c]}),e[12]=d,e[13]=c,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:Mt,onMouseDown:Kt,children:t.jsxs(Ge,{children:[t.jsx(Qe,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:Ft,children:t.jsx(Xe,{size:20})})}),t.jsxs(He,{align:"end",onClick:Lt,children:[n.open&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.open?.(s)},children:[t.jsx(Je,{size:16}),"Open"]}),n.edit&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.edit?.(s)},children:[t.jsx(Ze,{size:16}),"Edit"]}),n.duplicate&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.duplicate?.(s)},children:[t.jsx(Ye,{size:16}),"Duplicate"]}),n.delete&&t.jsxs(O,{variant:"destructive",onClick:g=>{g.stopPropagation(),n.delete?.(s)},children:[t.jsx(et,{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 Lt(i){return i.stopPropagation()}function Ft(i){return i.stopPropagation()}function Kt(i){return i.stopPropagation()}function Mt(i){return i.stopPropagation()}const Ut=["icon","avatar","logo"],Re=["created_at","created_by","id"];function Wt(i){return Object.keys(i).find(e=>Ut.includes(e.toLowerCase()))}function st(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 Rt(i){const e=oe.c(30),{data:s,schema:l,viewMode:n,search:a,sortKey:r,sortDirection:u,onSort:m,actions:o,onItemClick:p,headerActions:d,emptyState:h,readOnly:c,columns:v,hideToolbar:y,sortableFields:b}=i,x=u===void 0?"asc":u,g=m===void 0?Gt:m;let $;e[0]!==o?($=o===void 0?{}:o,e[0]=o,e[1]=$):$=e[1];const f=$,T=p===void 0?Vt:p,E=d===void 0?null:d,N=h===void 0?null:h,k=c===void 0?!1:c,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(qt).filter(A=>!P||P.includes(A.id)).map(Bt):st(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(qe,{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]!==f||e[14]!==j||e[15]!==s||e[16]!==N||e[17]!==T||e[18]!==g||e[19]!==k||e[20]!==l||e[21]!==a||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:a?"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(zt,{item:A,schema:l,readOnly:k,actions:f})},A.id))})}):t.jsx(xt,{columns:Jt(j,l,P,f),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:a?"Try adjusting your search":"No items to display"})}),e[13]=f,e[14]=j,e[15]=s,e[16]=N,e[17]=T,e[18]=g,e[19]=k,e[20]=l,e[21]=a,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 Bt(i){return{id:i.id,label:typeof i.header=="string"?i.header:i.id}}function qt(i){return i.sortable!==!1}function Vt(){}function Gt(){}function Qt(i){return{id:"actions",header:"",render:e=>t.jsxs(Ge,{children:[t.jsx(Qe,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:s=>s.stopPropagation(),children:t.jsx(Xe,{size:20})})}),t.jsxs(He,{align:"end",onClick:s=>s.stopPropagation(),children:[i.open&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.open?.(e)},children:[t.jsx(Je,{size:16}),"Open"]}),i.edit&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.edit?.(e)},children:[t.jsx(Ze,{size:16}),"Edit"]}),i.duplicate&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.duplicate?.(e)},children:[t.jsx(Ye,{size:16}),"Duplicate"]}),i.delete&&t.jsxs(O,{variant:"destructive",onClick:s=>{s.stopPropagation(),i.delete?.(e)},children:[t.jsx(et,{size:16}),"Delete"]})]})]}),cellClassName:"w-[60px]",sortable:!1}}function it(i){const e=i.type;return Array.isArray(e)?e.every(s=>it({type:s})):e==="string"||e==="number"||e==="integer"||e==="boolean"||e==="null"}function Ht(i,e){const s=i.properties||{},l=Object.keys(s).filter(o=>{const p=s[o];return p&&it(p)}),n=Wt(s),a=[],r=new Set;n&&l.includes(n)&&(a.push(n),r.add(n));const u=["title","description","updated_at","updated_by"];for(const o of u)l.includes(o)&&!r.has(o)&&(a.push(o),r.add(o));const m=l.filter(o=>!r.has(o)&&!Re.includes(o)).sort((o,p)=>o.localeCompare(p));for(const o of m)a.push(o),r.add(o);for(const o of Re)l.includes(o)&&!r.has(o)&&(a.push(o),r.add(o));return a.map(o=>{const p=s[o],d=e?e.includes(o):!["id"].includes(o);return o===n?{id:o,header:"",render:h=>{const c=h[o];return t.jsx(Ve,{icon:c,name:h.title,size:"sm",className:"shrink-0 shadow-sm"})},sortable:!1,cellClassName:"w-16 shrink-0",wrap:!0}:o==="description"?{id:o,header:"Description",render:h=>{const c=h[o];return c==null?"—":t.jsx("span",{className:"block truncate max-w-[50ch]",children:String(c)})},sortable:d,cellClassName:"max-w-[50ch]"}:o==="created_by"||o==="updated_by"?{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:h=>{const c=h[o];return c?t.jsx(jt,{id:String(c),size:"xs"}):"—"},sortable:d,cellClassName:"max-w-[250px]"}:p?.format==="date-time"||o.endsWith("_at")?{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:h=>{const c=h[o];return c?t.jsx("span",{className:"block truncate max-w-full",children:new Date(c).toLocaleDateString()}):"—"},sortable:d,cellClassName:"max-w-[200px]"}:{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:h=>{const c=h[o];return c==null?"—":t.jsx("span",{className:"block truncate max-w-full",children:String(c)})},sortable:d,cellClassName:"max-w-[200px]"}})}function Jt(i,e,s,l){const n=i||Ht(e,s);return n.some(u=>u.id==="actions")?n:Object.keys(l).length>0?[...n,Qt(l)]:n}function Yt(i){const e=oe.c(119),{connectionId:s,org:l,activeCollection:n,onItemClick:a}=i,r=n.name,u=n.schema??ft,m=n.hasCreateTool,o=n.hasUpdateTool,p=n.hasDeleteTool,d=Be(),{data:h}=lt.useSession(),c=h?.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 $=pt(g),f=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=!m&&!o&&!p;let ne;e[14]!==b||e[15]!==r||e[16]!==d||e[17]!==a||e[18]!==l?(ne=C=>{if(a){a(C);return}d({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]=d,e[17]=a,e[18]=l,e[19]=ne):ne=e[19];const L=ne;let re;e[20]!==f.create||e[21]!==c?(re=async C=>{const xe=new Date().toISOString();await f.create.mutateAsync({...C,id:Me("conn"),title:`${C.title} (Copy)`,created_at:xe,updated_at:xe,created_by:c,updated_by:c})},e[20]=f.create,e[21]=c,e[22]=re):re=e[22];const be=re,[F,ve]=at.useState(null);let le;e[23]===Symbol.for("react.memo_cache_sentinel")?(le=C=>{ve(C)},e[23]=le):le=e[23];const ot=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]!==m?(M=m&&{duplicate:be},e[27]=be,e[28]=m,e[29]=M):M=e[29];let U;e[30]!==p?(U=p&&{delete:ot},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]!==f.delete||e[37]!==F?(ce=async()=>{F&&(await f.delete.mutateAsync(F.id),ve(null))},e[36]=f.delete,e[37]=F,e[38]=ce):ce=e[38];const Ne=ce;let de;e[39]!==f.create||e[40]!==b||e[41]!==r||e[42]!==m||e[43]!==d||e[44]!==l||e[45]!==c?(de=async()=>{if(!m){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:c,updated_by:c};try{const ke=await f.create.mutateAsync(xe);d({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]=f.create,e[40]=b,e[41]=r,e[42]=m,e[43]=d,e[44]=l,e[45]=c,e[46]=de):de=e[46];const we=de;let me;e[47]!==u?(me=st(u),e[47]=u,e[48]=me):me=e[48];const Se=me,nt=(I?.length??0)>0,rt=m&&!nt&&!N;let pe;e[49]!==f.create||e[50]!==we||e[51]!==m?(pe=m?t.jsxs(Ce,{onClick:we,size:"sm",disabled:f.create.isPending,className:"h-7",children:[t.jsx(Et,{className:"mr-2 h-4 w-4"}),f.create.isPending?"Creating...":"Create"]}):null,e[49]=f.create,e[50]=we,e[51]=m,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(qe,{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]!==m?(q=m&&t.jsx("div",{className:"pr-3",children:ue}),e[65]=ue,e[66]=m,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=rt?ue:void 0;let H;e[75]!==Ie||e[76]!==Ae||e[77]!==Te?(H=t.jsx(tt,{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(Rt,{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]!==f.delete.isPending?(Z=t.jsx(vt,{disabled:f.delete.isPending,children:"Cancel"}),e[100]=f.delete.isPending,e[101]=Z):Z=e[101];const $e=f.delete.isPending?"Deleting...":"Delete";let ee;e[102]!==f.delete.isPending||e[103]!==Ne||e[104]!==$e?(ee=t.jsx(yt,{onClick:Ne,disabled:f.delete.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:$e}),e[102]=f.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 Xt(){const i=oe.c(10),{org:e,project:s}=ze(),l=ct(),n=$t();let a;i[0]!==s||i[1]!==n?(a=async o=>{const p=s.enabledPlugins??[];if(p.includes(o))return;const d=[...p,o];return await n.call("COLLECTION_VIRTUAL_MCP_UPDATE",{id:s.id,data:{metadata:{enabled_plugins:d}}})},i[0]=s,i[1]=n,i[2]=a):a=i[2];let r;i[3]!==e||i[4]!==s||i[5]!==l?(r=()=>{l.invalidateQueries({queryKey:Fe.project(e.id,s.slug)}),l.invalidateQueries({queryKey:Fe.projects(e.id)})},i[3]=e,i[4]=s,i[5]=l,i[6]=r):r=i[6];let u;return i[7]!==a||i[8]!==r?(u={mutationFn:a,onSuccess:r,onError:Zt},i[7]=a,i[8]=r,i[9]=u):u=i[9],dt(u)}function Zt(i){Le.error("Failed to enable plugin: "+(i instanceof Error?i.message:"Unknown error"))}function es(i){const e=oe.c(12),{pluginId:s,title:l,description:n,icon:a}=i,r=Xt();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 m=u,o=a??null,p=r.isPending?"Enabling…":"Enable plugin";let d;e[3]!==r.isPending||e[4]!==m||e[5]!==p?(d=t.jsx(Ce,{onClick:m,disabled:r.isPending,children:p}),e[3]=r.isPending,e[4]=m,e[5]=p,e[6]=d):d=e[6];let h;return e[7]!==n||e[8]!==o||e[9]!==d||e[10]!==l?(h=t.jsx(tt,{image:o,title:l,description:n,actions:d}),e[7]=n,e[8]=o,e[9]=d,e[10]=l,e[11]=h):h=e[11],h}const ts={name:"WORKFLOW",displayName:"Workflow",hasCreateTool:!0,hasUpdateTool:!0,hasDeleteTool:!0};function vi(){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(es,{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(mt,{className:"size-8 text-muted-foreground"})})})})})});const n=Be();return t.jsx(je,{children:t.jsx(je.Content,{children:t.jsx(Yt,{connectionId:ut,org:e.slug,activeCollection:ts,onItemClick:a=>n({to:"/$org/settings/workflows/$itemId",params:{org:e.slug,itemId:a.id}})})})})}export{vi 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-Dlc4tDxO.js";import{a as f}from"./index-CwSpOXRj.js";import"./index-BxF-LrkW.js";import"./use-mcp-client-BoOtVD9g.js";import"./collections-CXYJ8MVZ.js";import"./index-Kzj6xvOo.js";import"./use-virtual-mcp-_FyR-EfH.js";import"./use-collections-CH3Uvmj5.js";import"./monaco-editor--8410HRL.js";import"./index-Dcfw-W2O.js";import"./spinner-DUmur8qx.js";import"./resizable-B_wg5OKG.js";import"./ZoomOut-Xe1itnU7.js";import"./badge-CikIA9ZK.js";import"./select-Dz7DPkoH.js";import"./tooltip-D0rD3x8T.js";import"./Check-DHmAQH53.js";import"./ChevronDown-CN6qoGcG.js";import"./ChevronUp-CTGwFzLw.js";import"./view-mode-toggle-BO9qiFWG.js";import"./agent-icon-D1ySfhKA.js";import"./AlertCircle-De-QnqNt.js";import"./Tool01-DPPRaW86.js";import"./SwitchHorizontal01-CLZ8VEjC.js";import"./RefreshCcw01-CcpA4rje.js";import"./XCircle-BdbzgmP6.js";import"./ArrowUpRight-B0GfNpsw.js";import"./ZapSquare-AN7R7mTa.js";import"./Users03-CKUicuTa.js";import"./CheckCircle-DKSRB9Xd.js";import"./ChevronLeft-HFx1Uufy.js";import"./ChevronRight-BJSYQUmF.js";import"./DotsVertical-jUGLCiy5.js";import"./Container-DZBZNA8Y.js";import"./Eye-CGoLCmzu.js";import"./Globe01--hrfRyvA.js";import"./FilterLines-DYSfUppO.js";import"./Star01-BjpgI7im.js";import"./Palette-B9PbEO6t.js";import"./HardDrive-yKlUP3QG.js";import"./Stars02-Cv3Kyp_N.js";import"./Key01-DqH2W8Qa.js";import"./LayoutLeft-CLZVvVLM.js";import"./LinkExternal01-CaYoYL1Y.js";import"./Monitor01-BRL4_dKI.js";import"./Sun-C0I4hv8e.js";import"./Play-Btpg8EpH.js";import"./Plus-Cv0T2Pov.js";import"./SearchMd-BP9M1g2N.js";import"./Settings02-BMRrFVdB.js";import"./Shield01-rOhEAWZ1.js";import"./Stars01-yuWjNyMF.js";import"./Trash01-s7FZsfBC.js";import"./Upload01-xUCMslnL.js";import"./User01-BsF0RS3z.js";import"./Users01-D-iBSVXa.js";import"./XClose-N2P2hiYb.js";import"./X-CMYaHMo4.js";import"./Zap-gqEvk94k.js";import"./layout-Czl8yfyb.js";import"./index-NNvehl9i.js";import"./sidebar-BT1O99E-.js";import"./sheet-C2OErkZR.js";import"./use-connection-BGpjiuJJ.js";import"./use-mcp-tools-DlzThqmJ.js";import"./dialog-IkiImd7I.js";import"./scroll-area-CifcP4Wg.js";import"./index-DFp-rnQf.js";import"./hover-card-5iaAH0_M.js";import"./dropdown-menu-C-Cxaez8.js";import"./integration-icon-DylMdkB7.js";import"./accordion-BIWbMpHu.js";import"./index-CweEMiqH.js";import"./empty-state-CzxH8T9l.js";import"./create-sse-subscription-BS5983N4.js";import"./input-CDaarCl_.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-Dlc4tDxO.js"></script>
|
|
47
47
|
<link rel="stylesheet" crossorigin href="/assets/index-DfYyH4IW.css">
|
|
48
48
|
</head>
|
|
49
49
|
<body>
|