decocms 2.185.0 → 2.186.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-BO0kzcBv.js → AlertCircle-vb3SCqTR.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CrI91Scn.js → ArrowLeft-UgY0HH3_.js} +1 -1
- package/dist/client/assets/{ArrowUp-FfROzAyV.js → ArrowUp-BQ0GwMhq.js} +1 -1
- package/dist/client/assets/{Check-BXqqUm0J.js → Check-EBIfpKfk.js} +1 -1
- package/dist/client/assets/{ChevronDown-B6V9GzuP.js → ChevronDown-TWcZ4kJ9.js} +1 -1
- package/dist/client/assets/{ChevronRight-BSFLHUtv.js → ChevronRight-BpkTLj3y.js} +1 -1
- package/dist/client/assets/{ChevronUp-BYpnL-9F.js → ChevronUp-DMmIo8iD.js} +1 -1
- package/dist/client/assets/{Container-BZeblIrR.js → Container-Dt8UalAF.js} +1 -1
- package/dist/client/assets/{Dataflow03-CTwEKVcs.js → Dataflow03-DLl2RzQp.js} +1 -1
- package/dist/client/assets/{Download01-D7T-WxGL.js → Download01-Dw7P9-4i.js} +1 -1
- package/dist/client/assets/{FolderClosed-BPzjOG-5.js → FolderClosed-D8TIwtpx.js} +1 -1
- package/dist/client/assets/{Grid01-Bwsn0nh2.js → Grid01-CmDjkAry.js} +1 -1
- package/dist/client/assets/{List-Bq1Yvo6z.js → List-3ufZUeAi.js} +1 -1
- package/dist/client/assets/{Loading01-DCKwAh-U.js → Loading01-oEWzHjsc.js} +1 -1
- package/dist/client/assets/{Play-Bw_aeuhq.js → Play-eTAbgb-w.js} +1 -1
- package/dist/client/assets/{Plus-BW2fNoEy.js → Plus-BA7Rfpr-.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-YXuL16Jx.js → RefreshCcw01-B6mp4o28.js} +1 -1
- package/dist/client/assets/{SearchMd-C_bEWIlQ.js → SearchMd-4_up1TLU.js} +1 -1
- package/dist/client/assets/{Settings01-BoOhxJJj.js → Settings01-lbicxKIn.js} +1 -1
- package/dist/client/assets/{Trash01-D9O3UWX6.js → Trash01-eIuymuN8.js} +1 -1
- package/dist/client/assets/{Type01-CjsMMlh6.js → Type01-DCWXkwdC.js} +1 -1
- package/dist/client/assets/{Upload01-Bpjo_QI4.js → Upload01-BSFuoakK.js} +1 -1
- package/dist/client/assets/{User01-BRC1qZ-u.js → User01-DN32uzYn.js} +1 -1
- package/dist/client/assets/{VideoRecorder-DkcbdsZk.js → VideoRecorder-BQGrK2bZ.js} +1 -1
- package/dist/client/assets/{X-BL1q6dsE.js → X-DaCoKlVZ.js} +1 -1
- package/dist/client/assets/{XCircle-DxcmI8rf.js → XCircle-DZHeGFcX.js} +1 -1
- package/dist/client/assets/{XClose-CslgPORS.js → XClose-D_0o1f9F.js} +1 -1
- package/dist/client/assets/{Zap-DERWnfoj.js → Zap-D0bIVVjW.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-Dq0Ojrk0.js → agent-connections-preview-BI-eeQCx.js} +1 -1
- package/dist/client/assets/{agent-detail-YxF3rQGf.js → agent-detail-Cawai6IA.js} +1 -1
- package/dist/client/assets/{agents-C2G5xDCJ.js → agents-BoYaKa_N.js} +1 -1
- package/dist/client/assets/{ai-providers-logos-BbTN2hb6.js → ai-providers-logos-D_53AnVk.js} +1 -1
- package/dist/client/assets/{alert-dialog-yWVMNVBj.js → alert-dialog-C5dI6ng4.js} +1 -1
- package/dist/client/assets/{auth-catchall-CTzVQ5KH.js → auth-catchall-O2S6cfz6.js} +1 -1
- package/dist/client/assets/{automation-detail-MKjn-Qas.js → automation-detail-BlNEANzL.js} +1 -1
- package/dist/client/assets/{automations-DpKH4m8F.js → automations-BQAwNfu2.js} +1 -1
- package/dist/client/assets/{avatar-87qJKKK_.js → avatar-CojTV7kK.js} +1 -1
- package/dist/client/assets/{badge-C2jHxnoS.js → badge-Cj2aOlgl.js} +1 -1
- package/dist/client/assets/{binder-BaB8rAtx.js → binder-2uXLdWyj.js} +1 -1
- package/dist/client/assets/{breadcrumb-CBpEGiAs.js → breadcrumb--82F68FS.js} +1 -1
- package/dist/client/assets/{card-CUrYBr2J.js → card-ChQFWIen.js} +1 -1
- package/dist/client/assets/{checkbox-RHvkU3ym.js → checkbox-D_kbciPC.js} +1 -1
- package/dist/client/assets/{collapsible-BaB71DBr.js → collapsible-Doonaq5y.js} +1 -1
- package/dist/client/assets/{collection-detail-iBwR9WNE.js → collection-detail-BLWjMoWG.js} +1 -1
- package/dist/client/assets/{collection-display-button-BetF6DhL.js → collection-display-button-B_YB0Pvz.js} +1 -1
- package/dist/client/assets/{collection-search-DcVVKJ8Q.js → collection-search-BWbixDRp.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-D9WWtdCi.js → collection-table-wrapper-DQMCUU4F.js} +1 -1
- package/dist/client/assets/{collection-tabs-Df3Ptc0I.js → collection-tabs-BnCzVfgA.js} +1 -1
- package/dist/client/assets/{command-CMOZJSSv.js → command-CtOWm1VV.js} +1 -1
- package/dist/client/assets/{connection-card-CKJwNgpO.js → connection-card-DcT51RGy.js} +1 -1
- package/dist/client/assets/{connection-detail-Dbycfmu5.js → connection-detail-BRK14vIh.js} +1 -1
- package/dist/client/assets/{connections-jKPi1hZg.js → connections-D2sLUHTG.js} +1 -1
- package/dist/client/assets/constants-BLFOykPL.js +1 -0
- package/dist/client/assets/{constants-Dzy_AMuL.js → constants-DEVLPir8.js} +1 -1
- package/dist/client/assets/{context-BL_7JbXZ.js → context-BPeBGjOy.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-Cycga0XC.js → create-organization-dialog-R77KhBvZ.js} +1 -1
- package/dist/client/assets/{create-project-dialog-BRQDkCBr.js → create-project-dialog-D41xkdsb.js} +1 -1
- package/dist/client/assets/{danger-D5sT_SDt.js → danger-zX3Qk8cM.js} +1 -1
- package/dist/client/assets/{danger-zone-CI7wNXdQ.js → danger-zone-DqYkGDIc.js} +1 -1
- package/dist/client/assets/{dependencies-XXGkpDMX.js → dependencies-9-wz4Xxc.js} +1 -1
- package/dist/client/assets/{dialog-Dmm_af5q.js → dialog-BCMFAhkI.js} +1 -1
- package/dist/client/assets/{drawer-SktUP7-X.js → drawer-Bl6NlnaH.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BtgYu0Kc.js → dropdown-menu-BbHSISkN.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-DncjSb8M.js → dynamic-plugin-layout-BIILduy1.js} +1 -1
- package/dist/client/assets/{editable-task-title-DBtH_3H-.js → editable-task-title-Br5O_iLC.js} +1 -1
- package/dist/client/assets/{empty-state-BgKAQr0C.js → empty-state-5noOSGfK.js} +1 -1
- package/dist/client/assets/{empty-state-Cx44yC3Y.js → empty-state-C0dwe4U0.js} +1 -1
- package/dist/client/assets/{env-vars-editor-DPFQeE92.js → env-vars-editor-CmxN_shK.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Zw5RYEyS.js → extract-connection-data-DJbja1-q.js} +1 -1
- package/dist/client/assets/{file-browser-AWmMc57j.js → file-browser-DUjv8sIJ.js} +2 -2
- package/dist/client/assets/{form-Obbe7UIk.js → form-DUoo-ylF.js} +1 -1
- package/dist/client/assets/{general-DDuzkv9d.js → general-CGJ44hLj.js} +1 -1
- package/dist/client/assets/{grid-view-DsTxgJvN.js → grid-view-BoGBtir5.js} +1 -1
- package/dist/client/assets/{home-C1G2fDyc.js → home-C0TXQswt.js} +1 -1
- package/dist/client/assets/{index-75eZ1uI1.js → index-BHTlDqaD.js} +1 -1
- package/dist/client/assets/{index-DLW7tZdu.js → index-BKxenrdO.js} +3 -3
- package/dist/client/assets/{index-CUtX0cOT.js → index-BZ1qyalZ.js} +1 -1
- package/dist/client/assets/{index-CDNLqNNq.js → index-C7rxOK6C.js} +1 -1
- package/dist/client/assets/{index-C0Ne6xGI.js → index-CJahu32N.js} +1 -1
- package/dist/client/assets/{index-CdQYIu_6.js → index-D-VE8zlf.js} +1 -1
- package/dist/client/assets/{index-B1ylaSc7.js → index-D73K8P0E.js} +1 -1
- package/dist/client/assets/{index-BtvKqHu_.js → index-DHg1fc5U.js} +1 -1
- package/dist/client/assets/{index-CdK7iTUb.js → index-DaynUkW8.js} +1 -1
- package/dist/client/assets/{index-DCtU4ndp.js → index-Do3azGem.js} +1 -1
- package/dist/client/assets/{index-CQPlxt4u.js → index-hk9wzRwg.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BdQSrFrR.js → infiniteQueryObserver-D-mOGz06.js} +1 -1
- package/dist/client/assets/{input-DgJ0xjPE.js → input-BOFUz0aj.js} +1 -1
- package/dist/client/assets/{integration-icon-C-I4Z6Dk.js → integration-icon-DgW660ho.js} +1 -1
- package/dist/client/assets/{label-BL4fRnZZ.js → label-CwYk_3Ey.js} +1 -1
- package/dist/client/assets/{layout-DAuICUV3.js → layout-C3AUYf3J.js} +1 -1
- package/dist/client/assets/{layout-p-PoyTJz.js → layout-DAeDMG0b.js} +1 -1
- package/dist/client/assets/{login-Bvsz1l56.js → login-DuIR9S1j.js} +1 -1
- package/dist/client/assets/{logo-upload-CGF8q63h.js → logo-upload-CgauH7P2.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DzztYEVX.js → mcp-app-renderer-DGEXm5IH.js} +1 -1
- package/dist/client/assets/{mcp-server-card-Dz2MeUmM.js → mcp-server-card-CK4sGKdu.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-cX9p8Afl.js → mcp-server-detail-D69tJNJ-.js} +2 -2
- package/dist/client/assets/{members-BX_g15fi.js → members-BE0-LX8z.js} +1 -1
- package/dist/client/assets/{monaco-editor-DX4p-sBy.js → monaco-editor-DKgjhGyK.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-cUuCGr6O.js → monitoring-dashboard-edit-BU6wqp6k.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-DFc0vQzd.js → monitoring-dashboard-view-DpgR3HBD.js} +1 -1
- package/dist/client/assets/{monitoring-C9346vXd.js → monitoring-mL0YGaG3.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BDkVd8_E.js → monitoring-stats-row-DGTvXy8L.js} +1 -1
- package/dist/client/assets/{oauth-callback-Bt5QJgEG.js → oauth-callback-DXq4VAB4.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DgK7Rkwm.js → oauth-callback-ai-provider-DLq9Afvv.js} +1 -1
- package/dist/client/assets/{org-ai-providers-DQw8Ry8m.js → org-ai-providers-Cz242a6o.js} +1 -1
- package/dist/client/assets/{page-BNkRheIf.js → page-D3b1s6a2.js} +1 -1
- package/dist/client/assets/{page-BPTnb_7u.js → page-x_-Jc14s.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-DZ2dLLg8.js → plugin-empty-state-B3_dpS13.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-D5d0HyD_.js → plugin-empty-state-Cj0RnDfG.js} +1 -1
- package/dist/client/assets/{plugin-header-DToCRz-E.js → plugin-header-BKXZ081u.js} +1 -1
- package/dist/client/assets/{plugin-header-DaNytvgS.js → plugin-header-DlN-1PR6.js} +1 -1
- package/dist/client/assets/plugins-D1_YmAIA.js +1 -0
- package/dist/client/assets/{popover-DnM-fBUa.js → popover-CRZZJD6X.js} +1 -1
- package/dist/client/assets/{project-app-view-BmSeum6S.js → project-app-view-Dei8g4l2.js} +1 -1
- package/dist/client/assets/{project-layout-B6exvEKF.js → project-layout-dAA71zE-.js} +1 -1
- package/dist/client/assets/{project-plugins-CzyuvjoL.js → project-plugins-BaJYUdT2.js} +1 -1
- package/dist/client/assets/{projects-list-C1JxN737.js → projects-list-Cv_y3Y1y.js} +1 -1
- package/dist/client/assets/{registry-layout-D-kGw5vE.js → registry-layout-C04LM3fN.js} +1 -1
- package/dist/client/assets/{registry-utils-D6No_i4P.js → registry-utils-C0FVK22y.js} +1 -1
- package/dist/client/assets/{reset-password-CUY6IwDL.js → reset-password-CKoF4675.js} +1 -1
- package/dist/client/assets/{resizable-CAbzuUb1.js → resizable-nYmcarWg.js} +1 -1
- package/dist/client/assets/{save-actions-DGqTWEQL.js → save-actions-eZ1LrcFs.js} +1 -1
- package/dist/client/assets/{scroll-area-BCIFp-8p.js → scroll-area-BTvSahh5.js} +1 -1
- package/dist/client/assets/{select-DeOQOwBi.js → select-LSyRUUkM.js} +1 -1
- package/dist/client/assets/{select-virtual-mcp-B78FWMF5.js → select-virtual-mcp-CQf_NH1Z.js} +1 -1
- package/dist/client/assets/{shell-layout-BX9tUo-C.js → shell-layout-DaNKzCH1.js} +2 -2
- package/dist/client/assets/{sidebar-settings-CxzW8gJz.js → sidebar-settings-CArfFMjP.js} +1 -1
- package/dist/client/assets/{skeleton-BwiQLrEa.js → skeleton-DdkQJ8Ke.js} +1 -1
- package/dist/client/assets/{spinner-D4Lh5lMu.js → spinner-BbwK2nZf.js} +1 -1
- package/dist/client/assets/{store-invite-CdO_aWdO.js → store-invite-38lQwS2V.js} +1 -1
- package/dist/client/assets/{switch-DqWbwfAd.js → switch-C4iOvYgm.js} +1 -1
- package/dist/client/assets/{table-CbTCyRX5.js → table-CvG2iH0y.js} +1 -1
- package/dist/client/assets/{tabs-zzjdf6a0.js → tabs-D48yslt8.js} +1 -1
- package/dist/client/assets/{task-status-hmfgdVgC.js → task-status-CfdaAVDd.js} +1 -1
- package/dist/client/assets/tasks-CHK2wNRc.js +1 -0
- package/dist/client/assets/{tasks-panel-BKxSsDFe.js → tasks-panel-CngVyrSR.js} +1 -1
- package/dist/client/assets/{textarea-CJ-1DHFH.js → textarea-pMGiDvfM.js} +1 -1
- package/dist/client/assets/{time-range-picker-BBbi_2IF.js → time-range-picker-hMmDbLQS.js} +1 -1
- package/dist/client/assets/{toggle-group-DaaATQ-5.js → toggle-group-DB7gCSVI.js} +1 -1
- package/dist/client/assets/{tools-list-DLZSPKIc.js → tools-list-DqDOl_iw.js} +1 -1
- package/dist/client/assets/{tooltip-D-QYbPJS.js → tooltip-BYpVdvUr.js} +1 -1
- package/dist/client/assets/{topbar-portal-D3vr1IIh.js → topbar-portal-BT3L0OHL.js} +1 -1
- package/dist/client/assets/{types-vQT8OD6B.js → types-1J8PljZw.js} +1 -1
- package/dist/client/assets/{use-automations-BIoacnri.js → use-automations-BMRGIsk5.js} +1 -1
- package/dist/client/assets/{use-collections-BJxMmWLX.js → use-collections-DNZPF16v.js} +1 -1
- package/dist/client/assets/{use-connection-DPMknCkO.js → use-connection-OaJxXLK-.js} +1 -1
- package/dist/client/assets/{use-copy-CkgWv__W.js → use-copy-RSAu7_j7.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-pWj6n63S.js → use-create-virtual-mcp-CrkA34pw.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BU1rPA0T.js → use-infinite-scroll-cI-C0iaq.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-C1XqHuwX.js → use-install-from-registry-Cw1tOxSk.js} +1 -1
- package/dist/client/assets/{use-list-state-B6nYBLyk.js → use-list-state-CSTOpaV4.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BmK_9UQh.js → use-mcp-prompts-FfAzq9P9.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-DQ2GW_FE.js → use-mcp-resources-Jm6NvGgP.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-KIPxuDyk.js → use-mcp-tools-B10GVMq1.js} +1 -1
- package/dist/client/assets/{use-members-BRZ5u_Eq.js → use-members-BEgSet5G.js} +1 -1
- package/dist/client/assets/{use-project-DVq_144v.js → use-project-BxO41BBL.js} +1 -1
- package/dist/client/assets/{use-store-discovery-aQCBFuCU.js → use-store-discovery-DVCWh6aJ.js} +1 -1
- package/dist/client/assets/{use-view-mode-lmHuCoZm.js → use-view-mode-0u9SIVO4.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BEia5q72.js → use-virtual-mcp-BZiKlRZJ.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DzvJ2Vyd.js +1 -0
- package/dist/client/assets/{useMutation-BatnVMWS.js → useMutation-BaFlpWJP.js} +1 -1
- package/dist/client/assets/useQuery-DG4WKkPy.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DKieyXx7.js +1 -0
- package/dist/client/assets/{user-Aw6SqZpK.js → user-Bx46t5R3.js} +1 -1
- package/dist/client/assets/{workflow-CRjl6sOP.js → workflow-BIBTFj9e.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/node_modules/{postgres-bytea/license → pg/LICENSE} +6 -6
- package/dist/server/node_modules/pg/README.md +95 -0
- package/dist/server/node_modules/pg/esm/index.mjs +20 -0
- package/dist/server/node_modules/pg/lib/client.js +743 -0
- package/dist/server/node_modules/pg/lib/connection-parameters.js +171 -0
- package/dist/server/node_modules/pg/lib/connection.js +221 -0
- package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +122 -0
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +212 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +43 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +89 -0
- package/dist/server/node_modules/pg/lib/crypto/utils.js +9 -0
- package/dist/server/node_modules/pg/lib/defaults.js +91 -0
- package/dist/server/node_modules/pg/lib/index.js +73 -0
- package/dist/server/node_modules/pg/lib/native/client.js +323 -0
- package/dist/server/node_modules/pg/lib/native/index.js +2 -0
- package/dist/server/node_modules/pg/lib/native/query.js +165 -0
- package/dist/server/node_modules/pg/lib/query.js +252 -0
- package/dist/server/node_modules/pg/lib/result.js +109 -0
- package/dist/server/node_modules/pg/lib/stream.js +83 -0
- package/dist/server/node_modules/pg/lib/type-overrides.js +35 -0
- package/dist/server/node_modules/pg/lib/utils.js +217 -0
- package/dist/server/node_modules/pg/package.json +76 -0
- package/dist/server/node_modules/xtend/.jshintrc +30 -0
- package/dist/server/node_modules/{postgres-interval/license → xtend/LICENSE} +1 -2
- package/dist/server/node_modules/xtend/README.md +32 -0
- package/dist/server/node_modules/xtend/immutable.js +19 -0
- package/dist/server/node_modules/xtend/mutable.js +17 -0
- package/dist/server/node_modules/xtend/package.json +55 -0
- package/dist/server/node_modules/xtend/test.js +103 -0
- package/package.json +1 -1
- package/dist/client/assets/constants-BTMGn0Px.js +0 -1
- package/dist/client/assets/plugins-LyhHmrtr.js +0 -1
- package/dist/client/assets/tasks-C6cfAkGR.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DpWHrz5z.js +0 -1
- package/dist/client/assets/useQuery-YHvrmKkI.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Cv31oWYI.js +0 -1
- package/dist/server/node_modules/async-exit-hook/CHANGELOG.md +0 -62
- package/dist/server/node_modules/async-exit-hook/index.js +0 -171
- package/dist/server/node_modules/async-exit-hook/license +0 -21
- package/dist/server/node_modules/async-exit-hook/package.json +0 -66
- package/dist/server/node_modules/async-exit-hook/readme.md +0 -118
- package/dist/server/node_modules/postgres-bytea/index.js +0 -33
- package/dist/server/node_modules/postgres-bytea/package.json +0 -34
- package/dist/server/node_modules/postgres-bytea/readme.md +0 -34
- package/dist/server/node_modules/postgres-interval/index.d.ts +0 -20
- package/dist/server/node_modules/postgres-interval/index.js +0 -125
- package/dist/server/node_modules/postgres-interval/package.json +0 -36
- package/dist/server/node_modules/postgres-interval/readme.md +0 -48
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as ie,j as t,B as ge,e as pt,f as ft,u as $e,r as ht,O as Fe,v as ke,w as gt,K as Ke}from"./index-DLW7tZdu.js";import{u as Qe,a as Ve}from"./constants-Dzy_AMuL.js";import{g as Me}from"./generate-id-Dyweu44Y.js";import{C as Ye}from"./collection-display-button-BetF6DhL.js";import{C as xt}from"./collection-search-DcVVKJ8Q.js";import{C as jt}from"./card-CUrYBr2J.js";import{I as Xe,e as Ze,q as We}from"./integration-icon-C-I4Z6Dk.js";import{D as et,a as tt,b as st,c as L}from"./dropdown-menu-BtgYu0Kc.js";import{c as ot}from"./Play-Bw_aeuhq.js";import{i as it,s as nt}from"./RefreshCcw01-YXuL16Jx.js";import{s as rt}from"./Trash01-D9O3UWX6.js";import{C as Ct}from"./collection-table-wrapper-D9WWtdCi.js";import{E as Ue}from"./empty-state-BgKAQr0C.js";import{U as bt}from"./user-Aw6SqZpK.js";import{E as lt}from"./empty-state-Cx44yC3Y.js";import{u as yt}from"./use-list-state-B6nYBLyk.js";import{B as vt}from"./constants-BTMGn0Px.js";import{g as Nt}from"./connection-slug-Bw8dtz1U.js";import{A as wt,h as St,c as _t,b as Pt,d as Dt,e as It,a as At,f as Tt}from"./alert-dialog-yWVMNVBj.js";import{u as Et,e as Ot}from"./use-collections-BJxMmWLX.js";import{u as $t}from"./use-connection-DPMknCkO.js";import{s as kt}from"./Plus-BW2fNoEy.js";import{a as Lt}from"./layout-p-PoyTJz.js";import{u as zt}from"./useMutation-BatnVMWS.js";import{P as k}from"./index-75eZ1uI1.js";import{B as Be,a as Re,b as He,c as qe}from"./breadcrumb-CBpEGiAs.js";import{e as Ft}from"./Dataflow03-CTwEKVcs.js";import"./ArrowUp-FfROzAyV.js";import"./Check-BXqqUm0J.js";import"./Grid01-Bwsn0nh2.js";import"./List-Bq1Yvo6z.js";import"./tooltip-D-QYbPJS.js";import"./index-CQPlxt4u.js";import"./badge-C2jHxnoS.js";import"./Loading01-DCKwAh-U.js";import"./SearchMd-C_bEWIlQ.js";import"./input-DgJ0xjPE.js";import"./Container-BZeblIrR.js";import"./AlertCircle-BO0kzcBv.js";import"./ArrowLeft-CrI91Scn.js";import"./XCircle-DxcmI8rf.js";import"./Type01-CjsMMlh6.js";import"./ChevronDown-B6V9GzuP.js";import"./ChevronRight-BSFLHUtv.js";import"./ChevronUp-BYpnL-9F.js";import"./Download01-D7T-WxGL.js";import"./VideoRecorder-DkcbdsZk.js";import"./FolderClosed-BPzjOG-5.js";import"./Settings01-BoOhxJJj.js";import"./Upload01-Bpjo_QI4.js";import"./User01-BRC1qZ-u.js";import"./XClose-CslgPORS.js";import"./X-BL1q6dsE.js";import"./Zap-DERWnfoj.js";import"./table-CbTCyRX5.js";import"./avatar-87qJKKK_.js";import"./useQuery-YHvrmKkI.js";import"./use-view-mode-lmHuCoZm.js";import"./slugify-CEUa2lfQ.js";function Kt(s,e){const o=s.properties||{};for(const n in o){const l=o[n];if(l&&l.type==="string"&&(l.format==="url"||l.format==="uri")&&e&&typeof e=="object"&&n in e&&e[n])return e[n]}const a=["image","img","avatar","icon","logo","thumbnail","cover"];for(const n of a)if(e&&typeof e=="object"&&n in e&&typeof e[n]=="string")return e[n]}function Mt(s){const e=ie.c(25),{item:o,schema:a,actions:n}=s;let l;e[0]!==o||e[1]!==a?(l=Kt(a,o),e[0]=o,e[1]=a,e[2]=l):l=e[2];const r=l,c=o&&typeof o=="object"&&"description"in o&&typeof o.description=="string"?o.description:void 0;let p;e[3]!==n?(p=n&&Object.keys(n).length>0,e[3]=n,e[4]=p):p=e[4];const i=p;let u;e[5]!==r||e[6]!==o.title?(u=t.jsx(Xe,{icon:r,name:o.title,size:"md",className:"shrink-0 shadow-sm"}),e[5]=r,e[6]=o.title,e[7]=u):u=e[7];let f;e[8]!==o.title?(f=t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:o.title}),e[8]=o.title,e[9]=f):f=e[9];const d=c||"No description";let m;e[10]!==d?(m=t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:d}),e[10]=d,e[11]=m):m=e[11];let b;e[12]!==f||e[13]!==m?(b=t.jsxs("div",{className:"flex flex-col gap-0 flex-1",children:[f,m]}),e[12]=f,e[13]=m,e[14]=b):b=e[14];let x;e[15]!==u||e[16]!==b?(x=t.jsxs("div",{className:"flex flex-col gap-4 p-6 flex-1",children:[u,b]}),e[15]=u,e[16]=b,e[17]=x):x=e[17];let N;e[18]!==n||e[19]!==i||e[20]!==o?(N=i&&t.jsx("div",{className:"absolute top-6 right-6 sm:opacity-0 sm:group-hover:opacity-100 transition-opacity",onClick:Rt,onMouseDown:Bt,children:t.jsxs(et,{children:[t.jsx(tt,{asChild:!0,children:t.jsx(ge,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:Ut,children:t.jsx(it,{size:20})})}),t.jsxs(st,{align:"end",onClick:Wt,children:[n.open&&t.jsxs(L,{onClick:g=>{g.stopPropagation(),n.open?.(o)},children:[t.jsx(nt,{size:16}),"Open"]}),n.edit&&t.jsxs(L,{onClick:g=>{g.stopPropagation(),n.edit?.(o)},children:[t.jsx(Ze,{size:16}),"Edit"]}),n.duplicate&&t.jsxs(L,{onClick:g=>{g.stopPropagation(),n.duplicate?.(o)},children:[t.jsx(ot,{size:16}),"Duplicate"]}),n.delete&&t.jsxs(L,{variant:"destructive",onClick:g=>{g.stopPropagation(),n.delete?.(o)},children:[t.jsx(rt,{size:16}),"Delete"]})]})]})}),e[18]=n,e[19]=i,e[20]=o,e[21]=N):N=e[21];let j;return e[22]!==x||e[23]!==N?(j=t.jsxs(jt,{className:"cursor-pointer transition-colors h-full flex flex-col group relative",children:[x,N]}),e[22]=x,e[23]=N,e[24]=j):j=e[24],j}function Wt(s){return s.stopPropagation()}function Ut(s){return s.stopPropagation()}function Bt(s){return s.stopPropagation()}function Rt(s){return s.stopPropagation()}const Ht=["icon","avatar","logo"],Ge=["created_at","created_by","id"];function qt(s){return Object.keys(s).find(e=>Ht.includes(e.toLowerCase()))}function at(s,e){return Object.keys(s.properties||{}).filter(o=>["id","created_at","updated_at","created_by","updated_by"].includes(o)?!1:e?e.includes(o):!0).map(o=>({id:o,label:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," ")}))}function Gt(s){const e=ie.c(30),{data:o,schema:a,viewMode:n,search:l,sortKey:r,sortDirection:c,onSort:p,actions:i,onItemClick:u,headerActions:f,emptyState:d,readOnly:m,columns:b,hideToolbar:x,sortableFields:N}=s,j=c===void 0?"asc":c,g=p===void 0?Yt:p;let h;e[0]!==i?(h=i===void 0?{}:i,e[0]=i,e[1]=h):h=e[1];const E=h,T=u===void 0?Vt:u,w=f===void 0?null:f,O=d===void 0?null:d,S=m===void 0?!1:m,_=b===void 0?void 0:b,z=x===void 0?!1:x,y=N===void 0?void 0:N;let v;e[2]!==_||e[3]!==a||e[4]!==y?(v=_?_.filter(Qt).filter(A=>!y||y.includes(A.id)).map(Jt):at(a,y),e[2]=_,e[3]=a,e[4]=y,e[5]=v):v=e[5];const I=v;let P;e[6]!==w||e[7]!==z||e[8]!==g||e[9]!==j||e[10]!==r||e[11]!==I?(P=!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:w}),t.jsx("div",{className:"flex items-center gap-2 shrink-0",children:t.jsx(Ye,{sortKey:r,sortDirection:j,onSort:g,sortOptions:I})})]})}),e[6]=w,e[7]=z,e[8]=g,e[9]=j,e[10]=r,e[11]=I,e[12]=P):P=e[12];let D;e[13]!==E||e[14]!==_||e[15]!==o||e[16]!==O||e[17]!==T||e[18]!==g||e[19]!==S||e[20]!==a||e[21]!==l||e[22]!==j||e[23]!==r||e[24]!==y||e[25]!==n?(D=n==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:o.length===0?t.jsx("div",{className:"flex items-center justify-center h-full",children:O||t.jsx(Ue,{icon:t.jsx(We,{size:36,className:"text-muted-foreground"}),title:"No items found",description:l?"Try adjusting your search":"No items to display"})}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:o.map(A=>t.jsx("div",{onClick:()=>T?.(A),className:"cursor-pointer h-full",children:t.jsx(Mt,{item:A,schema:a,readOnly:S,actions:E})},A.id))})}):t.jsx(Ct,{columns:es(_,a,y,E),data:o,sortKey:r,sortDirection:j,onSort:g,onRowClick:T,emptyState:O||t.jsx(Ue,{icon:t.jsx(We,{size:36,className:"text-muted-foreground"}),title:"No items found",description:l?"Try adjusting your search":"No items to display"})}),e[13]=E,e[14]=_,e[15]=o,e[16]=O,e[17]=T,e[18]=g,e[19]=S,e[20]=a,e[21]=l,e[22]=j,e[23]=r,e[24]=y,e[25]=n,e[26]=D):D=e[26];let $;return e[27]!==P||e[28]!==D?($=t.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[P,D]}),e[27]=P,e[28]=D,e[29]=$):$=e[29],$}function Jt(s){return{id:s.id,label:typeof s.header=="string"?s.header:s.id}}function Qt(s){return s.sortable!==!1}function Vt(){}function Yt(){}function Xt(s){return{id:"actions",header:"",render:e=>t.jsxs(et,{children:[t.jsx(tt,{asChild:!0,children:t.jsx(ge,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:o=>o.stopPropagation(),children:t.jsx(it,{size:20})})}),t.jsxs(st,{align:"end",onClick:o=>o.stopPropagation(),children:[s.open&&t.jsxs(L,{onClick:o=>{o.stopPropagation(),s.open?.(e)},children:[t.jsx(nt,{size:16}),"Open"]}),s.edit&&t.jsxs(L,{onClick:o=>{o.stopPropagation(),s.edit?.(e)},children:[t.jsx(Ze,{size:16}),"Edit"]}),s.duplicate&&t.jsxs(L,{onClick:o=>{o.stopPropagation(),s.duplicate?.(e)},children:[t.jsx(ot,{size:16}),"Duplicate"]}),s.delete&&t.jsxs(L,{variant:"destructive",onClick:o=>{o.stopPropagation(),s.delete?.(e)},children:[t.jsx(rt,{size:16}),"Delete"]})]})]}),cellClassName:"w-[60px]",sortable:!1}}function ct(s){const e=s.type;return Array.isArray(e)?e.every(o=>ct({type:o})):e==="string"||e==="number"||e==="integer"||e==="boolean"||e==="null"}function Zt(s,e){const o=s.properties||{},a=Object.keys(o).filter(i=>{const u=o[i];return u&&ct(u)}),n=qt(o),l=[],r=new Set;n&&a.includes(n)&&(l.push(n),r.add(n));const c=["title","description","updated_at","updated_by"];for(const i of c)a.includes(i)&&!r.has(i)&&(l.push(i),r.add(i));const p=a.filter(i=>!r.has(i)&&!Ge.includes(i)).sort((i,u)=>i.localeCompare(u));for(const i of p)l.push(i),r.add(i);for(const i of Ge)a.includes(i)&&!r.has(i)&&(l.push(i),r.add(i));return l.map(i=>{const u=o[i],f=e?e.includes(i):!["id"].includes(i);return i===n?{id:i,header:"",render:d=>{const m=d[i];return t.jsx(Xe,{icon:m,name:d.title,size:"sm",className:"shrink-0 shadow-sm"})},sortable:!1,cellClassName:"w-16 shrink-0",wrap:!0}:i==="description"?{id:i,header:"Description",render:d=>{const m=d[i];return m==null?"—":t.jsx("span",{className:"block truncate max-w-[50ch]",children:String(m)})},sortable:f,cellClassName:"max-w-[50ch]"}:i==="created_by"||i==="updated_by"?{id:i,header:i.charAt(0).toUpperCase()+i.slice(1).replace(/_/g," "),render:d=>{const m=d[i];return m?t.jsx(bt,{id:String(m),size:"xs"}):"—"},sortable:f,cellClassName:"max-w-[250px]"}:u?.format==="date-time"||i.endsWith("_at")?{id:i,header:i.charAt(0).toUpperCase()+i.slice(1).replace(/_/g," "),render:d=>{const m=d[i];return m?t.jsx("span",{className:"block truncate max-w-full",children:new Date(m).toLocaleDateString()}):"—"},sortable:f,cellClassName:"max-w-[200px]"}:{id:i,header:i.charAt(0).toUpperCase()+i.slice(1).replace(/_/g," "),render:d=>{const m=d[i];return m==null?"—":t.jsx("span",{className:"block truncate max-w-full",children:String(m)})},sortable:f,cellClassName:"max-w-[200px]"}})}function es(s,e,o,a){const n=s||Zt(e,o);return n.some(c=>c.id==="actions")?n:Object.keys(a).length>0?[...n,Xt(a)]:n}function ts(s){const e=ie.c(114),{connectionId:o,org:a,activeCollection:n}=s,l=n.name,r=n.schema??vt,c=n.hasCreateTool,p=n.hasUpdateTool,i=n.hasDeleteTool,u=pt(),{data:f}=ft.useSession(),d=f?.user?.id||"unknown",m=$t(o);let b;e[0]!==m||e[1]!==o?(b=m?Nt(m):o,e[0]=m,e[1]=o,e[2]=b):b=e[2];const x=b,{org:N}=$e();let j;e[3]!==o||e[4]!==N.id?(j={connectionId:o,orgId:N.id},e[3]=o,e[4]=N.id,e[5]=j):j=e[5];const g=Qe(j),h=Et(o,l,g),E=`${o}-${l}`;let T;e[6]!==a||e[7]!==E?(T={namespace:a,resource:E,defaultSortKey:"updated_at"},e[6]=a,e[7]=E,e[8]=T):T=e[8];const{search:w,searchTerm:O,setSearch:S,viewMode:_,setViewMode:z,sortKey:y,sortDirection:v,handleSort:I}=yt(T);let P;e[9]!==O||e[10]!==v||e[11]!==y?(P={searchTerm:O,sortKey:y,sortDirection:v},e[9]=O,e[10]=v,e[11]=y,e[12]=P):P=e[12];const D=Ot(o,l,g,P),$=!c&&!p&&!i;let A;e[13]!==x||e[14]!==l||e[15]!==u||e[16]!==a?(A=C=>{u({to:"/$org/$project/mcps/$appSlug/$collectionName/$itemId",params:{org:a,project:Fe,appSlug:x,collectionName:l,itemId:C.id}})},e[13]=x,e[14]=l,e[15]=u,e[16]=a,e[17]=A):A=e[17];const F=A;let ne;e[18]!==h.create||e[19]!==d?(ne=async C=>{const he=new Date().toISOString();await h.create.mutateAsync({...C,id:Me("conn"),title:`${C.title} (Copy)`,created_at:he,updated_at:he,created_by:d,updated_by:d})},e[18]=h.create,e[19]=d,e[20]=ne):ne=e[20];const xe=ne,[K,je]=ht.useState(null);let re;e[21]===Symbol.for("react.memo_cache_sentinel")?(re=C=>{je(C)},e[21]=re):re=e[21];const dt=re;let M;e[22]!==F||e[23]!==p?(M=p&&{edit:F},e[22]=F,e[23]=p,e[24]=M):M=e[24];let W;e[25]!==xe||e[26]!==c?(W=c&&{duplicate:xe},e[25]=xe,e[26]=c,e[27]=W):W=e[27];let U;e[28]!==i?(U=i&&{delete:dt},e[28]=i,e[29]=U):U=e[29];let le;e[30]!==W||e[31]!==U||e[32]!==M?(le={...M,...W,...U},e[30]=W,e[31]=U,e[32]=M,e[33]=le):le=e[33];const Ce=le;let ae;e[34]!==h.delete||e[35]!==K?(ae=async()=>{K&&(await h.delete.mutateAsync(K.id),je(null))},e[34]=h.delete,e[35]=K,e[36]=ae):ae=e[36];const be=ae;let ce;e[37]!==h.create||e[38]!==x||e[39]!==l||e[40]!==c||e[41]!==u||e[42]!==a||e[43]!==d?(ce=async()=>{if(!c){ke.error("Create operation is not available for this collection");return}const C=new Date().toISOString(),he={id:Me("conn"),title:"New Item",description:"A brief description of the item",created_at:C,updated_at:C,created_by:d,updated_by:d};try{const Oe=await h.create.mutateAsync(he);u({to:"/$org/$project/mcps/$appSlug/$collectionName/$itemId",params:{org:a,project:Fe,appSlug:x,collectionName:l,itemId:Oe.id}})}catch(Oe){console.error("Failed to create item:",Oe)}},e[37]=h.create,e[38]=x,e[39]=l,e[40]=c,e[41]=u,e[42]=a,e[43]=d,e[44]=ce):ce=e[44];const ye=ce;let de;e[45]!==r?(de=at(r),e[45]=r,e[46]=de):de=e[46];const ve=de,Le=(D?.length??0)>0,mt=c&&Le,ut=c&&!Le&&!w;let me;e[47]!==h.create||e[48]!==ye||e[49]!==c?(me=c?t.jsxs(ge,{onClick:ye,size:"sm",disabled:h.create.isPending,className:"h-7",children:[t.jsx(kt,{className:"mr-2 h-4 w-4"}),h.create.isPending?"Creating...":"Create"]}):null,e[47]=h.create,e[48]=ye,e[49]=c,e[50]=me):me=e[50];const ze=me,Ne=y;let B;e[51]!==I||e[52]!==v||e[53]!==ve||e[54]!==Ne?(B=t.jsx(Ye,{sortKey:Ne,sortDirection:v,onSort:I,sortOptions:ve}),e[51]=I,e[52]=v,e[53]=ve,e[54]=Ne,e[55]=B):B=e[55];const we=mt&&ze;let R;e[56]!==B||e[57]!==we?(R=t.jsxs(Lt,{children:[B,we]}),e[56]=B,e[57]=we,e[58]=R):R=e[58];const Se=`Search ${l}...`;let H;e[59]!==S?(H=C=>{C.key==="Escape"&&(S(""),C.target.blur())},e[59]=S,e[60]=H):H=e[60];let q;e[61]!==w||e[62]!==S||e[63]!==Se||e[64]!==H?(q=t.jsx(xt,{value:w,onChange:S,placeholder:Se,onKeyDown:H}),e[61]=w,e[62]=S,e[63]=Se,e[64]=H,e[65]=q):q=e[65];let G;e[66]!==D?(G=D??[],e[66]=D,e[67]=G):G=e[67];const _e=y;let J;e[68]!==F?(J=C=>F(C),e[68]=F,e[69]=J):J=e[69];const Pe="No items found",De=w?"Try adjusting your search terms":"This collection doesn't have any items yet.",Ie=ut?ze:void 0;let Q;e[70]!==Pe||e[71]!==De||e[72]!==Ie?(Q=t.jsx(lt,{image:null,title:Pe,description:De,actions:Ie}),e[70]=Pe,e[71]=De,e[72]=Ie,e[73]=Q):Q=e[73];let V;e[74]!==I||e[75]!==$||e[76]!==Ce||e[77]!==r||e[78]!==w||e[79]!==S||e[80]!==z||e[81]!==v||e[82]!==G||e[83]!==_e||e[84]!==J||e[85]!==Q||e[86]!==_?(V=t.jsx("div",{className:"flex-1 overflow-auto",children:t.jsx(Gt,{hideToolbar:!0,data:G,schema:r,viewMode:_,onViewModeChange:z,search:w,onSearchChange:S,sortKey:_e,sortDirection:v,onSort:I,actions:Ce,onItemClick:J,readOnly:$,emptyState:Q})}),e[74]=I,e[75]=$,e[76]=Ce,e[77]=r,e[78]=w,e[79]=S,e[80]=z,e[81]=v,e[82]=G,e[83]=_e,e[84]=J,e[85]=Q,e[86]=_,e[87]=V):V=e[87];let Y;e[88]!==q||e[89]!==V?(Y=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[q,V]}),e[88]=q,e[89]=V,e[90]=Y):Y=e[90];const Ae=!!K;let ue;e[91]===Symbol.for("react.memo_cache_sentinel")?(ue=C=>{C||je(null)},e[91]=ue):ue=e[91];let pe;e[92]===Symbol.for("react.memo_cache_sentinel")?(pe=t.jsx(_t,{children:"Delete item?"}),e[92]=pe):pe=e[92];const Te=K?.title;let X;e[93]!==Te?(X=t.jsxs(Pt,{children:[pe,t.jsxs(Dt,{children:['Are you sure you want to delete "',Te,'"? This action cannot be undone.']})]}),e[93]=Te,e[94]=X):X=e[94];let Z;e[95]!==h.delete.isPending?(Z=t.jsx(wt,{disabled:h.delete.isPending,children:"Cancel"}),e[95]=h.delete.isPending,e[96]=Z):Z=e[96];const Ee=h.delete.isPending?"Deleting...":"Delete";let ee;e[97]!==h.delete.isPending||e[98]!==be||e[99]!==Ee?(ee=t.jsx(St,{onClick:be,disabled:h.delete.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:Ee}),e[97]=h.delete.isPending,e[98]=be,e[99]=Ee,e[100]=ee):ee=e[100];let te;e[101]!==Z||e[102]!==ee?(te=t.jsxs(It,{children:[Z,ee]}),e[101]=Z,e[102]=ee,e[103]=te):te=e[103];let se;e[104]!==X||e[105]!==te?(se=t.jsxs(At,{children:[X,te]}),e[104]=X,e[105]=te,e[106]=se):se=e[106];let oe;e[107]!==Ae||e[108]!==se?(oe=t.jsx(Tt,{open:Ae,onOpenChange:ue,children:se}),e[107]=Ae,e[108]=se,e[109]=oe):oe=e[109];let fe;return e[110]!==R||e[111]!==Y||e[112]!==oe?(fe=t.jsxs(t.Fragment,{children:[R,Y,oe]}),e[110]=R,e[111]=Y,e[112]=oe,e[113]=fe):fe=e[113],fe}function ss(){const s=ie.c(12),{org:e,project:o}=$e(),a=gt();let n;s[0]!==e.id?(n={connectionId:Ve,orgId:e.id},s[0]=e.id,s[1]=n):n=s[1];const l=Qe(n);let r;s[2]!==l||s[3]!==o?(r=async u=>{const f=o.enabledPlugins??[];if(f.includes(u))return;const d=[...f,u],m=await l.callTool({name:"PROJECT_UPDATE",arguments:{projectId:o.id,enabledPlugins:d}});return m.structuredContent??m},s[2]=l,s[3]=o,s[4]=r):r=s[4];let c;s[5]!==e.id||s[6]!==o||s[7]!==a?(c=()=>{a.invalidateQueries({queryKey:Ke.project(e.id,o.slug)}),a.invalidateQueries({queryKey:Ke.projects(e.id)})},s[5]=e.id,s[6]=o,s[7]=a,s[8]=c):c=s[8];let p;return s[9]!==r||s[10]!==c?(p={mutationFn:r,onSuccess:c,onError:os},s[9]=r,s[10]=c,s[11]=p):p=s[11],zt(p)}function os(s){ke.error("Failed to enable plugin: "+(s instanceof Error?s.message:"Unknown error"))}function is(s){const e=ie.c(12),{pluginId:o,title:a,description:n,icon:l}=s,r=ss();let c;e[0]!==r||e[1]!==o?(c=async()=>{try{await r.mutateAsync(o),ke.success("Plugin enabled!")}catch{}},e[0]=r,e[1]=o,e[2]=c):c=e[2];const p=c,i=l??null,u=r.isPending?"Enabling…":"Enable plugin";let f;e[3]!==r.isPending||e[4]!==p||e[5]!==u?(f=t.jsx(ge,{onClick:p,disabled:r.isPending,children:u}),e[3]=r.isPending,e[4]=p,e[5]=u,e[6]=f):f=e[6];let d;return e[7]!==n||e[8]!==i||e[9]!==f||e[10]!==a?(d=t.jsx(lt,{image:i,title:a,description:n,actions:f}),e[7]=n,e[8]=i,e[9]=f,e[10]=a,e[11]=d):d=e[11],d}const Je="MCP Workflows",ns={name:"WORKFLOW",displayName:"Workflow",hasCreateTool:!0,hasUpdateTool:!0,hasDeleteTool:!0};function po(){const s=ie.c(5),{project:e,org:o}=$e();if(!(e.enabledPlugins??[]).includes(Je)){let c;s[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(k.Header,{children:t.jsx(k.Header.Left,{children:t.jsx(Be,{children:t.jsx(Re,{children:t.jsx(He,{children:t.jsx(qe,{children:"Workflows"})})})})})}),s[0]=c):c=s[0];let p;return s[1]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsxs(k,{children:[c,t.jsx(k.Content,{children:t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(is,{pluginId:Je,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(Ft,{className:"size-8 text-muted-foreground"})})})})})]}),s[1]=p):p=s[1],p}let l;s[2]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(k.Header,{children:t.jsx(k.Header.Left,{children:t.jsx(Be,{children:t.jsx(Re,{children:t.jsx(He,{children:t.jsx(qe,{children:"Workflows"})})})})})}),s[2]=l):l=s[2];let r;return s[3]!==o.slug?(r=t.jsxs(k,{children:[l,t.jsx(k.Content,{children:t.jsx(ts,{connectionId:Ve,org:o.slug,activeCollection:ns})})]}),s[3]=o.slug,s[4]=r):r=s[4],r}export{po as default};
|
|
1
|
+
import{c as ie,j as t,B as ge,e as pt,f as ft,u as $e,r as ht,O as Fe,v as ke,w as gt,K as Ke}from"./index-BKxenrdO.js";import{u as Qe,a as Ve}from"./constants-DEVLPir8.js";import{g as Me}from"./generate-id-Dyweu44Y.js";import{C as Ye}from"./collection-display-button-B_YB0Pvz.js";import{C as xt}from"./collection-search-BWbixDRp.js";import{C as jt}from"./card-ChQFWIen.js";import{I as Xe,e as Ze,q as We}from"./integration-icon-DgW660ho.js";import{D as et,a as tt,b as st,c as L}from"./dropdown-menu-BbHSISkN.js";import{c as ot}from"./Play-eTAbgb-w.js";import{i as it,s as nt}from"./RefreshCcw01-B6mp4o28.js";import{s as rt}from"./Trash01-eIuymuN8.js";import{C as Ct}from"./collection-table-wrapper-DQMCUU4F.js";import{E as Ue}from"./empty-state-5noOSGfK.js";import{U as bt}from"./user-Bx46t5R3.js";import{E as lt}from"./empty-state-C0dwe4U0.js";import{u as yt}from"./use-list-state-CSTOpaV4.js";import{B as vt}from"./constants-BLFOykPL.js";import{g as Nt}from"./connection-slug-Bw8dtz1U.js";import{A as wt,h as St,c as _t,b as Pt,d as Dt,e as It,a as At,f as Tt}from"./alert-dialog-C5dI6ng4.js";import{u as Et,e as Ot}from"./use-collections-DNZPF16v.js";import{u as $t}from"./use-connection-OaJxXLK-.js";import{s as kt}from"./Plus-BA7Rfpr-.js";import{a as Lt}from"./layout-DAeDMG0b.js";import{u as zt}from"./useMutation-BaFlpWJP.js";import{P as k}from"./index-BHTlDqaD.js";import{B as Be,a as Re,b as He,c as qe}from"./breadcrumb--82F68FS.js";import{e as Ft}from"./Dataflow03-DLl2RzQp.js";import"./ArrowUp-BQ0GwMhq.js";import"./Check-EBIfpKfk.js";import"./Grid01-CmDjkAry.js";import"./List-3ufZUeAi.js";import"./tooltip-BYpVdvUr.js";import"./index-hk9wzRwg.js";import"./badge-Cj2aOlgl.js";import"./Loading01-oEWzHjsc.js";import"./SearchMd-4_up1TLU.js";import"./input-BOFUz0aj.js";import"./Container-Dt8UalAF.js";import"./AlertCircle-vb3SCqTR.js";import"./ArrowLeft-UgY0HH3_.js";import"./XCircle-DZHeGFcX.js";import"./Type01-DCWXkwdC.js";import"./ChevronDown-TWcZ4kJ9.js";import"./ChevronRight-BpkTLj3y.js";import"./ChevronUp-DMmIo8iD.js";import"./Download01-Dw7P9-4i.js";import"./VideoRecorder-BQGrK2bZ.js";import"./FolderClosed-D8TIwtpx.js";import"./Settings01-lbicxKIn.js";import"./Upload01-BSFuoakK.js";import"./User01-DN32uzYn.js";import"./XClose-D_0o1f9F.js";import"./X-DaCoKlVZ.js";import"./Zap-D0bIVVjW.js";import"./table-CvG2iH0y.js";import"./avatar-CojTV7kK.js";import"./useQuery-DG4WKkPy.js";import"./use-view-mode-0u9SIVO4.js";import"./slugify-CEUa2lfQ.js";function Kt(s,e){const o=s.properties||{};for(const n in o){const l=o[n];if(l&&l.type==="string"&&(l.format==="url"||l.format==="uri")&&e&&typeof e=="object"&&n in e&&e[n])return e[n]}const a=["image","img","avatar","icon","logo","thumbnail","cover"];for(const n of a)if(e&&typeof e=="object"&&n in e&&typeof e[n]=="string")return e[n]}function Mt(s){const e=ie.c(25),{item:o,schema:a,actions:n}=s;let l;e[0]!==o||e[1]!==a?(l=Kt(a,o),e[0]=o,e[1]=a,e[2]=l):l=e[2];const r=l,c=o&&typeof o=="object"&&"description"in o&&typeof o.description=="string"?o.description:void 0;let p;e[3]!==n?(p=n&&Object.keys(n).length>0,e[3]=n,e[4]=p):p=e[4];const i=p;let u;e[5]!==r||e[6]!==o.title?(u=t.jsx(Xe,{icon:r,name:o.title,size:"md",className:"shrink-0 shadow-sm"}),e[5]=r,e[6]=o.title,e[7]=u):u=e[7];let f;e[8]!==o.title?(f=t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:o.title}),e[8]=o.title,e[9]=f):f=e[9];const d=c||"No description";let m;e[10]!==d?(m=t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:d}),e[10]=d,e[11]=m):m=e[11];let b;e[12]!==f||e[13]!==m?(b=t.jsxs("div",{className:"flex flex-col gap-0 flex-1",children:[f,m]}),e[12]=f,e[13]=m,e[14]=b):b=e[14];let x;e[15]!==u||e[16]!==b?(x=t.jsxs("div",{className:"flex flex-col gap-4 p-6 flex-1",children:[u,b]}),e[15]=u,e[16]=b,e[17]=x):x=e[17];let N;e[18]!==n||e[19]!==i||e[20]!==o?(N=i&&t.jsx("div",{className:"absolute top-6 right-6 sm:opacity-0 sm:group-hover:opacity-100 transition-opacity",onClick:Rt,onMouseDown:Bt,children:t.jsxs(et,{children:[t.jsx(tt,{asChild:!0,children:t.jsx(ge,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:Ut,children:t.jsx(it,{size:20})})}),t.jsxs(st,{align:"end",onClick:Wt,children:[n.open&&t.jsxs(L,{onClick:g=>{g.stopPropagation(),n.open?.(o)},children:[t.jsx(nt,{size:16}),"Open"]}),n.edit&&t.jsxs(L,{onClick:g=>{g.stopPropagation(),n.edit?.(o)},children:[t.jsx(Ze,{size:16}),"Edit"]}),n.duplicate&&t.jsxs(L,{onClick:g=>{g.stopPropagation(),n.duplicate?.(o)},children:[t.jsx(ot,{size:16}),"Duplicate"]}),n.delete&&t.jsxs(L,{variant:"destructive",onClick:g=>{g.stopPropagation(),n.delete?.(o)},children:[t.jsx(rt,{size:16}),"Delete"]})]})]})}),e[18]=n,e[19]=i,e[20]=o,e[21]=N):N=e[21];let j;return e[22]!==x||e[23]!==N?(j=t.jsxs(jt,{className:"cursor-pointer transition-colors h-full flex flex-col group relative",children:[x,N]}),e[22]=x,e[23]=N,e[24]=j):j=e[24],j}function Wt(s){return s.stopPropagation()}function Ut(s){return s.stopPropagation()}function Bt(s){return s.stopPropagation()}function Rt(s){return s.stopPropagation()}const Ht=["icon","avatar","logo"],Ge=["created_at","created_by","id"];function qt(s){return Object.keys(s).find(e=>Ht.includes(e.toLowerCase()))}function at(s,e){return Object.keys(s.properties||{}).filter(o=>["id","created_at","updated_at","created_by","updated_by"].includes(o)?!1:e?e.includes(o):!0).map(o=>({id:o,label:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," ")}))}function Gt(s){const e=ie.c(30),{data:o,schema:a,viewMode:n,search:l,sortKey:r,sortDirection:c,onSort:p,actions:i,onItemClick:u,headerActions:f,emptyState:d,readOnly:m,columns:b,hideToolbar:x,sortableFields:N}=s,j=c===void 0?"asc":c,g=p===void 0?Yt:p;let h;e[0]!==i?(h=i===void 0?{}:i,e[0]=i,e[1]=h):h=e[1];const E=h,T=u===void 0?Vt:u,w=f===void 0?null:f,O=d===void 0?null:d,S=m===void 0?!1:m,_=b===void 0?void 0:b,z=x===void 0?!1:x,y=N===void 0?void 0:N;let v;e[2]!==_||e[3]!==a||e[4]!==y?(v=_?_.filter(Qt).filter(A=>!y||y.includes(A.id)).map(Jt):at(a,y),e[2]=_,e[3]=a,e[4]=y,e[5]=v):v=e[5];const I=v;let P;e[6]!==w||e[7]!==z||e[8]!==g||e[9]!==j||e[10]!==r||e[11]!==I?(P=!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:w}),t.jsx("div",{className:"flex items-center gap-2 shrink-0",children:t.jsx(Ye,{sortKey:r,sortDirection:j,onSort:g,sortOptions:I})})]})}),e[6]=w,e[7]=z,e[8]=g,e[9]=j,e[10]=r,e[11]=I,e[12]=P):P=e[12];let D;e[13]!==E||e[14]!==_||e[15]!==o||e[16]!==O||e[17]!==T||e[18]!==g||e[19]!==S||e[20]!==a||e[21]!==l||e[22]!==j||e[23]!==r||e[24]!==y||e[25]!==n?(D=n==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:o.length===0?t.jsx("div",{className:"flex items-center justify-center h-full",children:O||t.jsx(Ue,{icon:t.jsx(We,{size:36,className:"text-muted-foreground"}),title:"No items found",description:l?"Try adjusting your search":"No items to display"})}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:o.map(A=>t.jsx("div",{onClick:()=>T?.(A),className:"cursor-pointer h-full",children:t.jsx(Mt,{item:A,schema:a,readOnly:S,actions:E})},A.id))})}):t.jsx(Ct,{columns:es(_,a,y,E),data:o,sortKey:r,sortDirection:j,onSort:g,onRowClick:T,emptyState:O||t.jsx(Ue,{icon:t.jsx(We,{size:36,className:"text-muted-foreground"}),title:"No items found",description:l?"Try adjusting your search":"No items to display"})}),e[13]=E,e[14]=_,e[15]=o,e[16]=O,e[17]=T,e[18]=g,e[19]=S,e[20]=a,e[21]=l,e[22]=j,e[23]=r,e[24]=y,e[25]=n,e[26]=D):D=e[26];let $;return e[27]!==P||e[28]!==D?($=t.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[P,D]}),e[27]=P,e[28]=D,e[29]=$):$=e[29],$}function Jt(s){return{id:s.id,label:typeof s.header=="string"?s.header:s.id}}function Qt(s){return s.sortable!==!1}function Vt(){}function Yt(){}function Xt(s){return{id:"actions",header:"",render:e=>t.jsxs(et,{children:[t.jsx(tt,{asChild:!0,children:t.jsx(ge,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:o=>o.stopPropagation(),children:t.jsx(it,{size:20})})}),t.jsxs(st,{align:"end",onClick:o=>o.stopPropagation(),children:[s.open&&t.jsxs(L,{onClick:o=>{o.stopPropagation(),s.open?.(e)},children:[t.jsx(nt,{size:16}),"Open"]}),s.edit&&t.jsxs(L,{onClick:o=>{o.stopPropagation(),s.edit?.(e)},children:[t.jsx(Ze,{size:16}),"Edit"]}),s.duplicate&&t.jsxs(L,{onClick:o=>{o.stopPropagation(),s.duplicate?.(e)},children:[t.jsx(ot,{size:16}),"Duplicate"]}),s.delete&&t.jsxs(L,{variant:"destructive",onClick:o=>{o.stopPropagation(),s.delete?.(e)},children:[t.jsx(rt,{size:16}),"Delete"]})]})]}),cellClassName:"w-[60px]",sortable:!1}}function ct(s){const e=s.type;return Array.isArray(e)?e.every(o=>ct({type:o})):e==="string"||e==="number"||e==="integer"||e==="boolean"||e==="null"}function Zt(s,e){const o=s.properties||{},a=Object.keys(o).filter(i=>{const u=o[i];return u&&ct(u)}),n=qt(o),l=[],r=new Set;n&&a.includes(n)&&(l.push(n),r.add(n));const c=["title","description","updated_at","updated_by"];for(const i of c)a.includes(i)&&!r.has(i)&&(l.push(i),r.add(i));const p=a.filter(i=>!r.has(i)&&!Ge.includes(i)).sort((i,u)=>i.localeCompare(u));for(const i of p)l.push(i),r.add(i);for(const i of Ge)a.includes(i)&&!r.has(i)&&(l.push(i),r.add(i));return l.map(i=>{const u=o[i],f=e?e.includes(i):!["id"].includes(i);return i===n?{id:i,header:"",render:d=>{const m=d[i];return t.jsx(Xe,{icon:m,name:d.title,size:"sm",className:"shrink-0 shadow-sm"})},sortable:!1,cellClassName:"w-16 shrink-0",wrap:!0}:i==="description"?{id:i,header:"Description",render:d=>{const m=d[i];return m==null?"—":t.jsx("span",{className:"block truncate max-w-[50ch]",children:String(m)})},sortable:f,cellClassName:"max-w-[50ch]"}:i==="created_by"||i==="updated_by"?{id:i,header:i.charAt(0).toUpperCase()+i.slice(1).replace(/_/g," "),render:d=>{const m=d[i];return m?t.jsx(bt,{id:String(m),size:"xs"}):"—"},sortable:f,cellClassName:"max-w-[250px]"}:u?.format==="date-time"||i.endsWith("_at")?{id:i,header:i.charAt(0).toUpperCase()+i.slice(1).replace(/_/g," "),render:d=>{const m=d[i];return m?t.jsx("span",{className:"block truncate max-w-full",children:new Date(m).toLocaleDateString()}):"—"},sortable:f,cellClassName:"max-w-[200px]"}:{id:i,header:i.charAt(0).toUpperCase()+i.slice(1).replace(/_/g," "),render:d=>{const m=d[i];return m==null?"—":t.jsx("span",{className:"block truncate max-w-full",children:String(m)})},sortable:f,cellClassName:"max-w-[200px]"}})}function es(s,e,o,a){const n=s||Zt(e,o);return n.some(c=>c.id==="actions")?n:Object.keys(a).length>0?[...n,Xt(a)]:n}function ts(s){const e=ie.c(114),{connectionId:o,org:a,activeCollection:n}=s,l=n.name,r=n.schema??vt,c=n.hasCreateTool,p=n.hasUpdateTool,i=n.hasDeleteTool,u=pt(),{data:f}=ft.useSession(),d=f?.user?.id||"unknown",m=$t(o);let b;e[0]!==m||e[1]!==o?(b=m?Nt(m):o,e[0]=m,e[1]=o,e[2]=b):b=e[2];const x=b,{org:N}=$e();let j;e[3]!==o||e[4]!==N.id?(j={connectionId:o,orgId:N.id},e[3]=o,e[4]=N.id,e[5]=j):j=e[5];const g=Qe(j),h=Et(o,l,g),E=`${o}-${l}`;let T;e[6]!==a||e[7]!==E?(T={namespace:a,resource:E,defaultSortKey:"updated_at"},e[6]=a,e[7]=E,e[8]=T):T=e[8];const{search:w,searchTerm:O,setSearch:S,viewMode:_,setViewMode:z,sortKey:y,sortDirection:v,handleSort:I}=yt(T);let P;e[9]!==O||e[10]!==v||e[11]!==y?(P={searchTerm:O,sortKey:y,sortDirection:v},e[9]=O,e[10]=v,e[11]=y,e[12]=P):P=e[12];const D=Ot(o,l,g,P),$=!c&&!p&&!i;let A;e[13]!==x||e[14]!==l||e[15]!==u||e[16]!==a?(A=C=>{u({to:"/$org/$project/mcps/$appSlug/$collectionName/$itemId",params:{org:a,project:Fe,appSlug:x,collectionName:l,itemId:C.id}})},e[13]=x,e[14]=l,e[15]=u,e[16]=a,e[17]=A):A=e[17];const F=A;let ne;e[18]!==h.create||e[19]!==d?(ne=async C=>{const he=new Date().toISOString();await h.create.mutateAsync({...C,id:Me("conn"),title:`${C.title} (Copy)`,created_at:he,updated_at:he,created_by:d,updated_by:d})},e[18]=h.create,e[19]=d,e[20]=ne):ne=e[20];const xe=ne,[K,je]=ht.useState(null);let re;e[21]===Symbol.for("react.memo_cache_sentinel")?(re=C=>{je(C)},e[21]=re):re=e[21];const dt=re;let M;e[22]!==F||e[23]!==p?(M=p&&{edit:F},e[22]=F,e[23]=p,e[24]=M):M=e[24];let W;e[25]!==xe||e[26]!==c?(W=c&&{duplicate:xe},e[25]=xe,e[26]=c,e[27]=W):W=e[27];let U;e[28]!==i?(U=i&&{delete:dt},e[28]=i,e[29]=U):U=e[29];let le;e[30]!==W||e[31]!==U||e[32]!==M?(le={...M,...W,...U},e[30]=W,e[31]=U,e[32]=M,e[33]=le):le=e[33];const Ce=le;let ae;e[34]!==h.delete||e[35]!==K?(ae=async()=>{K&&(await h.delete.mutateAsync(K.id),je(null))},e[34]=h.delete,e[35]=K,e[36]=ae):ae=e[36];const be=ae;let ce;e[37]!==h.create||e[38]!==x||e[39]!==l||e[40]!==c||e[41]!==u||e[42]!==a||e[43]!==d?(ce=async()=>{if(!c){ke.error("Create operation is not available for this collection");return}const C=new Date().toISOString(),he={id:Me("conn"),title:"New Item",description:"A brief description of the item",created_at:C,updated_at:C,created_by:d,updated_by:d};try{const Oe=await h.create.mutateAsync(he);u({to:"/$org/$project/mcps/$appSlug/$collectionName/$itemId",params:{org:a,project:Fe,appSlug:x,collectionName:l,itemId:Oe.id}})}catch(Oe){console.error("Failed to create item:",Oe)}},e[37]=h.create,e[38]=x,e[39]=l,e[40]=c,e[41]=u,e[42]=a,e[43]=d,e[44]=ce):ce=e[44];const ye=ce;let de;e[45]!==r?(de=at(r),e[45]=r,e[46]=de):de=e[46];const ve=de,Le=(D?.length??0)>0,mt=c&&Le,ut=c&&!Le&&!w;let me;e[47]!==h.create||e[48]!==ye||e[49]!==c?(me=c?t.jsxs(ge,{onClick:ye,size:"sm",disabled:h.create.isPending,className:"h-7",children:[t.jsx(kt,{className:"mr-2 h-4 w-4"}),h.create.isPending?"Creating...":"Create"]}):null,e[47]=h.create,e[48]=ye,e[49]=c,e[50]=me):me=e[50];const ze=me,Ne=y;let B;e[51]!==I||e[52]!==v||e[53]!==ve||e[54]!==Ne?(B=t.jsx(Ye,{sortKey:Ne,sortDirection:v,onSort:I,sortOptions:ve}),e[51]=I,e[52]=v,e[53]=ve,e[54]=Ne,e[55]=B):B=e[55];const we=mt&&ze;let R;e[56]!==B||e[57]!==we?(R=t.jsxs(Lt,{children:[B,we]}),e[56]=B,e[57]=we,e[58]=R):R=e[58];const Se=`Search ${l}...`;let H;e[59]!==S?(H=C=>{C.key==="Escape"&&(S(""),C.target.blur())},e[59]=S,e[60]=H):H=e[60];let q;e[61]!==w||e[62]!==S||e[63]!==Se||e[64]!==H?(q=t.jsx(xt,{value:w,onChange:S,placeholder:Se,onKeyDown:H}),e[61]=w,e[62]=S,e[63]=Se,e[64]=H,e[65]=q):q=e[65];let G;e[66]!==D?(G=D??[],e[66]=D,e[67]=G):G=e[67];const _e=y;let J;e[68]!==F?(J=C=>F(C),e[68]=F,e[69]=J):J=e[69];const Pe="No items found",De=w?"Try adjusting your search terms":"This collection doesn't have any items yet.",Ie=ut?ze:void 0;let Q;e[70]!==Pe||e[71]!==De||e[72]!==Ie?(Q=t.jsx(lt,{image:null,title:Pe,description:De,actions:Ie}),e[70]=Pe,e[71]=De,e[72]=Ie,e[73]=Q):Q=e[73];let V;e[74]!==I||e[75]!==$||e[76]!==Ce||e[77]!==r||e[78]!==w||e[79]!==S||e[80]!==z||e[81]!==v||e[82]!==G||e[83]!==_e||e[84]!==J||e[85]!==Q||e[86]!==_?(V=t.jsx("div",{className:"flex-1 overflow-auto",children:t.jsx(Gt,{hideToolbar:!0,data:G,schema:r,viewMode:_,onViewModeChange:z,search:w,onSearchChange:S,sortKey:_e,sortDirection:v,onSort:I,actions:Ce,onItemClick:J,readOnly:$,emptyState:Q})}),e[74]=I,e[75]=$,e[76]=Ce,e[77]=r,e[78]=w,e[79]=S,e[80]=z,e[81]=v,e[82]=G,e[83]=_e,e[84]=J,e[85]=Q,e[86]=_,e[87]=V):V=e[87];let Y;e[88]!==q||e[89]!==V?(Y=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[q,V]}),e[88]=q,e[89]=V,e[90]=Y):Y=e[90];const Ae=!!K;let ue;e[91]===Symbol.for("react.memo_cache_sentinel")?(ue=C=>{C||je(null)},e[91]=ue):ue=e[91];let pe;e[92]===Symbol.for("react.memo_cache_sentinel")?(pe=t.jsx(_t,{children:"Delete item?"}),e[92]=pe):pe=e[92];const Te=K?.title;let X;e[93]!==Te?(X=t.jsxs(Pt,{children:[pe,t.jsxs(Dt,{children:['Are you sure you want to delete "',Te,'"? This action cannot be undone.']})]}),e[93]=Te,e[94]=X):X=e[94];let Z;e[95]!==h.delete.isPending?(Z=t.jsx(wt,{disabled:h.delete.isPending,children:"Cancel"}),e[95]=h.delete.isPending,e[96]=Z):Z=e[96];const Ee=h.delete.isPending?"Deleting...":"Delete";let ee;e[97]!==h.delete.isPending||e[98]!==be||e[99]!==Ee?(ee=t.jsx(St,{onClick:be,disabled:h.delete.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:Ee}),e[97]=h.delete.isPending,e[98]=be,e[99]=Ee,e[100]=ee):ee=e[100];let te;e[101]!==Z||e[102]!==ee?(te=t.jsxs(It,{children:[Z,ee]}),e[101]=Z,e[102]=ee,e[103]=te):te=e[103];let se;e[104]!==X||e[105]!==te?(se=t.jsxs(At,{children:[X,te]}),e[104]=X,e[105]=te,e[106]=se):se=e[106];let oe;e[107]!==Ae||e[108]!==se?(oe=t.jsx(Tt,{open:Ae,onOpenChange:ue,children:se}),e[107]=Ae,e[108]=se,e[109]=oe):oe=e[109];let fe;return e[110]!==R||e[111]!==Y||e[112]!==oe?(fe=t.jsxs(t.Fragment,{children:[R,Y,oe]}),e[110]=R,e[111]=Y,e[112]=oe,e[113]=fe):fe=e[113],fe}function ss(){const s=ie.c(12),{org:e,project:o}=$e(),a=gt();let n;s[0]!==e.id?(n={connectionId:Ve,orgId:e.id},s[0]=e.id,s[1]=n):n=s[1];const l=Qe(n);let r;s[2]!==l||s[3]!==o?(r=async u=>{const f=o.enabledPlugins??[];if(f.includes(u))return;const d=[...f,u],m=await l.callTool({name:"PROJECT_UPDATE",arguments:{projectId:o.id,enabledPlugins:d}});return m.structuredContent??m},s[2]=l,s[3]=o,s[4]=r):r=s[4];let c;s[5]!==e.id||s[6]!==o||s[7]!==a?(c=()=>{a.invalidateQueries({queryKey:Ke.project(e.id,o.slug)}),a.invalidateQueries({queryKey:Ke.projects(e.id)})},s[5]=e.id,s[6]=o,s[7]=a,s[8]=c):c=s[8];let p;return s[9]!==r||s[10]!==c?(p={mutationFn:r,onSuccess:c,onError:os},s[9]=r,s[10]=c,s[11]=p):p=s[11],zt(p)}function os(s){ke.error("Failed to enable plugin: "+(s instanceof Error?s.message:"Unknown error"))}function is(s){const e=ie.c(12),{pluginId:o,title:a,description:n,icon:l}=s,r=ss();let c;e[0]!==r||e[1]!==o?(c=async()=>{try{await r.mutateAsync(o),ke.success("Plugin enabled!")}catch{}},e[0]=r,e[1]=o,e[2]=c):c=e[2];const p=c,i=l??null,u=r.isPending?"Enabling…":"Enable plugin";let f;e[3]!==r.isPending||e[4]!==p||e[5]!==u?(f=t.jsx(ge,{onClick:p,disabled:r.isPending,children:u}),e[3]=r.isPending,e[4]=p,e[5]=u,e[6]=f):f=e[6];let d;return e[7]!==n||e[8]!==i||e[9]!==f||e[10]!==a?(d=t.jsx(lt,{image:i,title:a,description:n,actions:f}),e[7]=n,e[8]=i,e[9]=f,e[10]=a,e[11]=d):d=e[11],d}const Je="MCP Workflows",ns={name:"WORKFLOW",displayName:"Workflow",hasCreateTool:!0,hasUpdateTool:!0,hasDeleteTool:!0};function po(){const s=ie.c(5),{project:e,org:o}=$e();if(!(e.enabledPlugins??[]).includes(Je)){let c;s[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(k.Header,{children:t.jsx(k.Header.Left,{children:t.jsx(Be,{children:t.jsx(Re,{children:t.jsx(He,{children:t.jsx(qe,{children:"Workflows"})})})})})}),s[0]=c):c=s[0];let p;return s[1]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsxs(k,{children:[c,t.jsx(k.Content,{children:t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(is,{pluginId:Je,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(Ft,{className:"size-8 text-muted-foreground"})})})})})]}),s[1]=p):p=s[1],p}let l;s[2]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(k.Header,{children:t.jsx(k.Header.Left,{children:t.jsx(Be,{children:t.jsx(Re,{children:t.jsx(He,{children:t.jsx(qe,{children:"Workflows"})})})})})}),s[2]=l):l=s[2];let r;return s[3]!==o.slug?(r=t.jsxs(k,{children:[l,t.jsx(k.Content,{children:t.jsx(ts,{connectionId:Ve,org:o.slug,activeCollection:ns})})]}),s[3]=o.slug,s[4]=r):r=s[4],r}export{po as default};
|
package/dist/client/index.html
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<meta name="twitter:description" content="Hire specialized agents, give them access to your tools, and let them deliver real projects — with planning, verification, and observability built in." />
|
|
14
14
|
<meta name="twitter:image" content="/og-image.png" />
|
|
15
15
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
16
|
-
<script type="module" crossorigin src="/assets/index-
|
|
16
|
+
<script type="module" crossorigin src="/assets/index-BKxenrdO.js"></script>
|
|
17
17
|
<link rel="stylesheet" crossorigin href="/assets/index-CBuZPG1d.css">
|
|
18
18
|
</head>
|
|
19
19
|
<body>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2010 - 2021 Brian Carlson
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
9
9
|
copies of the Software, and to permit persons to whom the Software is
|
|
10
10
|
furnished to do so, subject to the following conditions:
|
|
11
11
|
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
14
|
|
|
15
15
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
16
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
17
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# node-postgres
|
|
2
|
+
|
|
3
|
+
[](http://travis-ci.org/brianc/node-postgres)
|
|
4
|
+
<span class="badge-npmversion"><a href="https://npmjs.org/package/pg" title="View this project on NPM"><img src="https://img.shields.io/npm/v/pg.svg" alt="NPM version" /></a></span>
|
|
5
|
+
<span class="badge-npmdownloads"><a href="https://npmjs.org/package/pg" title="View this project on NPM"><img src="https://img.shields.io/npm/dm/pg.svg" alt="NPM downloads" /></a></span>
|
|
6
|
+
|
|
7
|
+
Non-blocking PostgreSQL client for Node.js. Pure JavaScript and optional native libpq bindings.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
$ npm install pg
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## :star: [Documentation](https://node-postgres.com) :star:
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
- Pure JavaScript client and native libpq bindings share _the same API_
|
|
22
|
+
- Connection pooling
|
|
23
|
+
- Extensible JS ↔ PostgreSQL data-type coercion
|
|
24
|
+
- Supported PostgreSQL features
|
|
25
|
+
- Parameterized queries
|
|
26
|
+
- Named statements with query plan caching
|
|
27
|
+
- Async notifications with `LISTEN/NOTIFY`
|
|
28
|
+
- Bulk import & export with `COPY TO/COPY FROM`
|
|
29
|
+
|
|
30
|
+
### Extras
|
|
31
|
+
|
|
32
|
+
node-postgres is by design pretty light on abstractions. These are some handy modules we've been using over the years to complete the picture.
|
|
33
|
+
The entire list can be found on our [wiki](https://github.com/brianc/node-postgres/wiki/Extras).
|
|
34
|
+
|
|
35
|
+
## Support
|
|
36
|
+
|
|
37
|
+
node-postgres is free software. If you encounter a bug with the library please open an issue on the [GitHub repo](https://github.com/brianc/node-postgres). If you have questions unanswered by the documentation please open an issue pointing out how the documentation was unclear & I will do my best to make it better!
|
|
38
|
+
|
|
39
|
+
When you open an issue please provide:
|
|
40
|
+
|
|
41
|
+
- version of Node
|
|
42
|
+
- version of Postgres
|
|
43
|
+
- smallest possible snippet of code to reproduce the problem
|
|
44
|
+
|
|
45
|
+
You can also follow me [@briancarlson](https://twitter.com/briancarlson) if that's your thing. I try to always announce noteworthy changes & developments with node-postgres on Twitter.
|
|
46
|
+
|
|
47
|
+
## Sponsorship :two_hearts:
|
|
48
|
+
|
|
49
|
+
node-postgres's continued development has been made possible in part by generous financial support from [the community](https://github.com/brianc/node-postgres/blob/master/SPONSORS.md).
|
|
50
|
+
|
|
51
|
+
If you or your company are benefiting from node-postgres and would like to help keep the project financially sustainable [please consider supporting](https://github.com/sponsors/brianc) its development.
|
|
52
|
+
|
|
53
|
+
### Featured sponsor
|
|
54
|
+
|
|
55
|
+
Special thanks to [medplum](https://medplum.com) for their generous and thoughtful support of node-postgres!
|
|
56
|
+
|
|
57
|
+

|
|
58
|
+
|
|
59
|
+
## Contributing
|
|
60
|
+
|
|
61
|
+
**:heart: contributions!**
|
|
62
|
+
|
|
63
|
+
I will **happily** accept your pull request if it:
|
|
64
|
+
|
|
65
|
+
- **has tests**
|
|
66
|
+
- looks reasonable
|
|
67
|
+
- does not break backwards compatibility
|
|
68
|
+
|
|
69
|
+
If your change involves breaking backwards compatibility please please point that out in the pull request & we can discuss & plan when and how to release it and what type of documentation or communicate it will require.
|
|
70
|
+
|
|
71
|
+
## Troubleshooting and FAQ
|
|
72
|
+
|
|
73
|
+
The causes and solutions to common errors can be found among the [Frequently Asked Questions (FAQ)](https://github.com/brianc/node-postgres/wiki/FAQ)
|
|
74
|
+
|
|
75
|
+
## License
|
|
76
|
+
|
|
77
|
+
Copyright (c) 2010-2020 Brian Carlson (brian.m.carlson@gmail.com)
|
|
78
|
+
|
|
79
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
80
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
81
|
+
in the Software without restriction, including without limitation the rights
|
|
82
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
83
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
84
|
+
furnished to do so, subject to the following conditions:
|
|
85
|
+
|
|
86
|
+
The above copyright notice and this permission notice shall be included in
|
|
87
|
+
all copies or substantial portions of the Software.
|
|
88
|
+
|
|
89
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
90
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
91
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
92
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
93
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
94
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
95
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// ESM wrapper for pg
|
|
2
|
+
import pg from '../lib/index.js'
|
|
3
|
+
|
|
4
|
+
// Re-export all the properties
|
|
5
|
+
export const Client = pg.Client
|
|
6
|
+
export const Pool = pg.Pool
|
|
7
|
+
export const Connection = pg.Connection
|
|
8
|
+
export const types = pg.types
|
|
9
|
+
export const Query = pg.Query
|
|
10
|
+
export const DatabaseError = pg.DatabaseError
|
|
11
|
+
export const escapeIdentifier = pg.escapeIdentifier
|
|
12
|
+
export const escapeLiteral = pg.escapeLiteral
|
|
13
|
+
export const Result = pg.Result
|
|
14
|
+
export const TypeOverrides = pg.TypeOverrides
|
|
15
|
+
|
|
16
|
+
// Also export the defaults
|
|
17
|
+
export const defaults = pg.defaults
|
|
18
|
+
|
|
19
|
+
// Re-export the default
|
|
20
|
+
export default pg
|