decocms 2.178.1 → 2.178.2
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-CI8iQIN4.js → AlertCircle-12chRuly.js} +1 -1
- package/dist/client/assets/{AlignLeft-D1a9nQq5.js → AlignLeft-_LT9deOt.js} +1 -1
- package/dist/client/assets/{ArrowDown-bcBjuFxH.js → ArrowDown-7rbX3zqZ.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BaV7db3X.js → ArrowLeft-erI8s3G2.js} +1 -1
- package/dist/client/assets/{ArrowUp-BtIkmj4Y.js → ArrowUp-DoIG5eQh.js} +1 -1
- package/dist/client/assets/{Building02-R_mkgdQ4.js → Building02-Dr7IyBdv.js} +1 -1
- package/dist/client/assets/{Check-GOz4_bBS.js → Check-DW8AVFkq.js} +1 -1
- package/dist/client/assets/{CheckCircle-DosFvCW2.js → CheckCircle-hBpanOsI.js} +1 -1
- package/dist/client/assets/{CheckSquare-Be1kXxvn.js → CheckSquare-Cr3IzSXp.js} +1 -1
- package/dist/client/assets/{CheckVerified02-CZakFFpv.js → CheckVerified02-r17ymUCs.js} +1 -1
- package/dist/client/assets/{ChevronDown-DElgod-p.js → ChevronDown-BIRGQoZ5.js} +1 -1
- package/dist/client/assets/{ChevronLeft-Bk7mc5_w.js → ChevronLeft-D-e7F7Gj.js} +1 -1
- package/dist/client/assets/{ChevronRight-Ys0vr-YD.js → ChevronRight-DsjLlugM.js} +1 -1
- package/dist/client/assets/{ChevronUp-CKkWbsZ5.js → ChevronUp-Bi3NMXzv.js} +1 -1
- package/dist/client/assets/{Clock-DRICOB0c.js → Clock-D4xJnA3P.js} +1 -1
- package/dist/client/assets/{Code01-CDxb4LVl.js → Code01-YGq5QwlZ.js} +1 -1
- package/dist/client/assets/{Container-C8ScaknS.js → Container-DHyMOW_p.js} +1 -1
- package/dist/client/assets/{Copy01-DhAVspEC.js → Copy01-DkcjIGiS.js} +1 -1
- package/dist/client/assets/{Dataflow03-ONoSH2VT.js → Dataflow03-CD3eo8oO.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-BaiN7u8r.js → DotsHorizontal-CjYGc80C.js} +1 -1
- package/dist/client/assets/{DotsVertical-rvqtR29a.js → DotsVertical-2nyye7GD.js} +1 -1
- package/dist/client/assets/{Download01-CVEqgoRT.js → Download01-BvtNZalG.js} +1 -1
- package/dist/client/assets/{Edit01-BaPedGGl.js → Edit01-CoeKfJ-u.js} +1 -1
- package/dist/client/assets/{Edit05-DSl3Jqkp.js → Edit05-CbbEzOoe.js} +1 -1
- package/dist/client/assets/{Eye-BgAytXDm.js → Eye-hBqNQHpc.js} +1 -1
- package/dist/client/assets/{EyeOff-CucokIoZ.js → EyeOff-CJoTkAtN.js} +1 -1
- package/dist/client/assets/{File02-gbFS8GtC.js → File02-D19u2hUl.js} +1 -1
- package/dist/client/assets/{File06-Dpi3gJhU.js → File06-Bp4ioOvR.js} +1 -1
- package/dist/client/assets/{FilterLines-BeHTcRH-.js → FilterLines-Dvk7BhWf.js} +1 -1
- package/dist/client/assets/{Globe01-Ceb6Pyzg.js → Globe01-B8Ib7knn.js} +1 -1
- package/dist/client/assets/{Globe02-4oAOo4_d.js → Globe02-wRhoc1N5.js} +1 -1
- package/dist/client/assets/{Grid01-NwJJaoW7.js → Grid01-C5e9ReQ4.js} +1 -1
- package/dist/client/assets/{Home02-DQJpzzIE.js → Home02-JZJR9jmQ.js} +1 -1
- package/dist/client/assets/{Image01-BwGUDEUi.js → Image01-DjoSkYp_.js} +1 -1
- package/dist/client/assets/{Inbox01-CDOpLWwZ.js → Inbox01-ClVaT7W5.js} +1 -1
- package/dist/client/assets/{InfoCircle-CfTVXLYm.js → InfoCircle-DzyfpQes.js} +1 -1
- package/dist/client/assets/{Key01-BZkaWvm5.js → Key01-qNySmY39.js} +1 -1
- package/dist/client/assets/{LayersTwo01-D9dHuPjU.js → LayersTwo01-dfSlQT0y.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BHhw95T0.js → LayoutLeft-B2KZfn2n.js} +1 -1
- package/dist/client/assets/{Link01-CU6UcWFS.js → Link01-Cz_ZRKoB.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DOdBEG1U.js → LinkExternal01-CKvCiQnV.js} +1 -1
- package/dist/client/assets/{List-DD3BKPLz.js → List-NLa0AhO4.js} +1 -1
- package/dist/client/assets/{Loading01-B85tVuIU.js → Loading01-Bb8FCosd.js} +1 -1
- package/dist/client/assets/{Lock01-WwvDQaaT.js → Lock01-CnZITIks.js} +1 -1
- package/dist/client/assets/{Play-DTPauCd1.js → Play-Bw5lQw7j.js} +1 -1
- package/dist/client/assets/{Plus-C9dY5EOr.js → Plus-CajZ9VfC.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-DJsZi8Hz.js → RefreshCcw01-B_NTitRE.js} +1 -1
- package/dist/client/assets/{Save01-COu7GfwR.js → Save01-8oEsqMkJ.js} +1 -1
- package/dist/client/assets/{SearchMd-CKp0BoPW.js → SearchMd-eZWeU0sP.js} +1 -1
- package/dist/client/assets/{Settings01-DunsMQ-m.js → Settings01-ClPVpLPy.js} +1 -1
- package/dist/client/assets/{Shield01-CCMtDdxH.js → Shield01-N4ace-oo.js} +1 -1
- package/dist/client/assets/{Terminal-COsHV7Wy.js → Terminal-CGwuP-_5.js} +1 -1
- package/dist/client/assets/{Tool01-Delk_MGO.js → Tool01-D1m8i7Ez.js} +1 -1
- package/dist/client/assets/{Trash01-BtiNjuw3.js → Trash01-B_4PTwjI.js} +1 -1
- package/dist/client/assets/{Upload01-DqqcM3M6.js → Upload01-CLIOr3Tj.js} +1 -1
- package/dist/client/assets/{Users03-CQa5jfkV.js → Users03-Bv-hUQkl.js} +1 -1
- package/dist/client/assets/{X-CaaFSPD_.js → X-LzehymHS.js} +1 -1
- package/dist/client/assets/{XClose-Dey3r3af.js → XClose-CcNXqPQc.js} +1 -1
- package/dist/client/assets/{Zap-DX02pf-a.js → Zap-BFN1DqIC.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-BCTZ6BnP.js → agent-connections-preview-3pYXfstj.js} +1 -1
- package/dist/client/assets/{agent-detail-BBSZrHWb.js → agent-detail-DMK-u3yi.js} +1 -1
- package/dist/client/assets/{agents-DVOxH2hb.js → agents-Wfe5dNfh.js} +1 -1
- package/dist/client/assets/{ai-providers-logos-BWU0RfRJ.js → ai-providers-logos-CCp39UCk.js} +1 -1
- package/dist/client/assets/{alert-dialog-BGZzdkI2.js → alert-dialog-B_ae3oRt.js} +1 -1
- package/dist/client/assets/{auth-catchall-1PjzZ5eD.js → auth-catchall-DAx9m28t.js} +1 -1
- package/dist/client/assets/{automation-detail-dSH73muX.js → automation-detail-DfFkGT_5.js} +1 -1
- package/dist/client/assets/{automations-CEr8CMbK.js → automations-A8NOzTSS.js} +1 -1
- package/dist/client/assets/{avatar-DWAYNsNK.js → avatar-B2yArl-q.js} +1 -1
- package/dist/client/assets/{badge-B_BTuJZe.js → badge-DtRom7JO.js} +1 -1
- package/dist/client/assets/{binder-l1kCmNCE.js → binder-D4cqx_Kx.js} +1 -1
- package/dist/client/assets/{breadcrumb-ijphtzQp.js → breadcrumb-C2RG4nAQ.js} +1 -1
- package/dist/client/assets/{card-CwEWrOs9.js → card-B8qDZGCZ.js} +1 -1
- package/dist/client/assets/{checkbox-B_91sMwd.js → checkbox-B1rexahu.js} +1 -1
- package/dist/client/assets/{collapsible-DILfwVxb.js → collapsible-BtjeaBAE.js} +1 -1
- package/dist/client/assets/{collection-detail-lkCxiUzr.js → collection-detail-BaBGI9i2.js} +1 -1
- package/dist/client/assets/{collection-display-button-kCOiEzLn.js → collection-display-button-CpVZ4wHm.js} +1 -1
- package/dist/client/assets/{collection-search-Bdxpglbf.js → collection-search-BYV7N3mr.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-D-vPJPam.js → collection-table-wrapper-CHFJQd21.js} +1 -1
- package/dist/client/assets/{collection-tabs-IdlFD1jR.js → collection-tabs-CJEa3dRy.js} +1 -1
- package/dist/client/assets/{command-BgTh2_vK.js → command-Drksh_DO.js} +1 -1
- package/dist/client/assets/{connection-card-BWZAp_hO.js → connection-card-Bak2l1_M.js} +1 -1
- package/dist/client/assets/{connection-detail-DPSHmWyz.js → connection-detail-BKy2ZsS6.js} +1 -1
- package/dist/client/assets/{connections-BvYzdmU4.js → connections-Dxf4eIOE.js} +1 -1
- package/dist/client/assets/{constants-BCt7c81T.js → constants-D7qXOYRn.js} +1 -1
- package/dist/client/assets/{context-BTMVzdan.js → context-DxQMlFKC.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-Du7uAMNm.js → create-organization-dialog-CNWB-72r.js} +1 -1
- package/dist/client/assets/{create-project-dialog-Bb7dubB7.js → create-project-dialog-BeIY4Oy9.js} +1 -1
- package/dist/client/assets/{danger-CfnLHwII.js → danger-YWbxrjNq.js} +1 -1
- package/dist/client/assets/{danger-zone-DjN4GhuT.js → danger-zone-DGg0ZzSy.js} +1 -1
- package/dist/client/assets/{dependencies-CwSG23CA.js → dependencies-DtAVTWu-.js} +1 -1
- package/dist/client/assets/{dialog-BDa2Gsq9.js → dialog-ChXYvlDt.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DEQ5DCnG.js → dropdown-menu-BxlQMXgW.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-DP6UGwOE.js → dynamic-plugin-layout-JpZTv0Ay.js} +1 -1
- package/dist/client/assets/{editable-task-title-CaE6DIBf.js → editable-task-title-Cm-uIwFs.js} +1 -1
- package/dist/client/assets/{empty-state-DmgqwjeV.js → empty-state-qLM_bVsv.js} +1 -1
- package/dist/client/assets/{empty-state-C4c2sKjV.js → empty-state-xIvMMy-_.js} +1 -1
- package/dist/client/assets/{env-vars-editor-Ah5xyGmz.js → env-vars-editor-Yss1wn0m.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BxJWN5u-.js → extract-connection-data-48N591A_.js} +1 -1
- package/dist/client/assets/{file-browser-BRFmGA__.js → file-browser-BbqpPFZK.js} +2 -2
- package/dist/client/assets/{form-BWoxqZfk.js → form-CaFPTMVC.js} +1 -1
- package/dist/client/assets/{general-BKqD1lIr.js → general-DI9irVIQ.js} +1 -1
- package/dist/client/assets/{generate-id-BaIFvm62.js → generate-id-BiV6m8fS.js} +1 -1
- package/dist/client/assets/{grid-view-DGZvuOwZ.js → grid-view-DurgUMuo.js} +1 -1
- package/dist/client/assets/{home-B7jB9Gxp.js → home-CspK560n.js} +1 -1
- package/dist/client/assets/{index-BgoahoDu.js → index-ChUIqRBi.js} +1 -1
- package/dist/client/assets/{index--PLXALUm.js → index-CqWJIMlG.js} +1 -1
- package/dist/client/assets/{index-WTO-ZRzC.js → index-CqtWW-Tq.js} +1 -1
- package/dist/client/assets/{index-10S4l3se.js → index-CqyqI90F.js} +1 -1
- package/dist/client/assets/{index-DZ6p-ZXx.js → index-De1iYnQy.js} +1 -1
- package/dist/client/assets/{index-DcxE8oe_.js → index-NjMxPJgF.js} +3 -3
- package/dist/client/assets/{index-DGLQ2uQ5.js → index-TV8hw8s3.js} +1 -1
- package/dist/client/assets/{index-Bc448aeG.js → index-YL7q5tyF.js} +1 -1
- package/dist/client/assets/{index-CTjqFNkw.js → index-YRudAQp7.js} +1 -1
- package/dist/client/assets/{index-B5vgf28x.js → index-yiVP4brl.js} +1 -1
- package/dist/client/assets/{index-CM7_8eMu.js → index-zWpUeKAz.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CzIVu_kK.js → infiniteQueryObserver-JZ0YxCW-.js} +1 -1
- package/dist/client/assets/{input-DPpAbHbD.js → input-B89sozd8.js} +1 -1
- package/dist/client/assets/{integration-icon-6jcHFHZV.js → integration-icon-BPVDVJvP.js} +1 -1
- package/dist/client/assets/{label-BtaiiWJ8.js → label-DkiEYJcU.js} +1 -1
- package/dist/client/assets/{layout-Cjef80qc.js → layout-Cqn-h1Jz.js} +1 -1
- package/dist/client/assets/{layout-DG9LlvE6.js → layout-DcmGLVHZ.js} +1 -1
- package/dist/client/assets/{login-D1Xb70mS.js → login-qT_ItpIx.js} +1 -1
- package/dist/client/assets/{logo-upload-79T6Ecg3.js → logo-upload-CoGaedUC.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DgOOTmoQ.js → mcp-app-renderer-By1mQEU9.js} +1 -1
- package/dist/client/assets/{mcp-server-card-CqBs71hZ.js → mcp-server-card-B3Nrrgyk.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-D_BCRi3w.js → mcp-server-detail-DMfy0V9h.js} +2 -2
- package/dist/client/assets/{members-BkdG_-Nh.js → members-Q81LXZu1.js} +1 -1
- package/dist/client/assets/{monaco-editor-D5smiy7k.js → monaco-editor-ZB27PMAe.js} +1 -1
- package/dist/client/assets/{monitoring-kw0ipyvO.js → monitoring-C31A03PZ.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-S2Ut1cvD.js → monitoring-dashboard-edit-Dfi8Jxeb.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-gNG_IQ8M.js → monitoring-dashboard-view-CxjxBHLW.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-D3PlzPcP.js → monitoring-stats-row-CAn-8pVZ.js} +1 -1
- package/dist/client/assets/{oauth-callback-9ngEzskH.js → oauth-callback-B8DRnSok.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CpdQKMVl.js → oauth-callback-ai-provider-CsTCxPAY.js} +1 -1
- package/dist/client/assets/{org-ai-providers-CrQ3OeB5.js → org-ai-providers-DaYyItUL.js} +1 -1
- package/dist/client/assets/{page-C2HdbsvN.js → page-BjLk0DX_.js} +1 -1
- package/dist/client/assets/{page-DmVGFJaY.js → page-C2I5Nlmu.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-DXhpvNlI.js → plugin-empty-state-K02oXRNN.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-CWxRJkeE.js → plugin-empty-state-l30u7dec.js} +1 -1
- package/dist/client/assets/{plugin-header-C3JJ8Nq_.js → plugin-header-B_wkRb4Y.js} +1 -1
- package/dist/client/assets/{plugin-header-TcX-3hN2.js → plugin-header-CE-BhILm.js} +1 -1
- package/dist/client/assets/plugins-6p4XZdw1.js +1 -0
- package/dist/client/assets/{popover-CNIkv0WT.js → popover-Br8QkMK3.js} +1 -1
- package/dist/client/assets/{project-app-view-BVSK5NCb.js → project-app-view-CRe7LVZk.js} +1 -1
- package/dist/client/assets/{project-layout-Bd1vlG83.js → project-layout-Bg1hlIaM.js} +1 -1
- package/dist/client/assets/{project-plugins-az_ZXSwN.js → project-plugins-BHOZZsH7.js} +1 -1
- package/dist/client/assets/{projects-list-D8eiYeUr.js → projects-list-i4ZvUqtI.js} +1 -1
- package/dist/client/assets/{registry-layout-BXceDqEw.js → registry-layout-DQV7LhSo.js} +1 -1
- package/dist/client/assets/{registry-utils-CkCRcmq4.js → registry-utils-cjX9P5J9.js} +1 -1
- package/dist/client/assets/{reset-password-xlfm2d95.js → reset-password-Cgcrl5ZG.js} +1 -1
- package/dist/client/assets/{resizable-B7fIdnoq.js → resizable-Nu1SqaJD.js} +1 -1
- package/dist/client/assets/{save-actions-DIKaTzi7.js → save-actions-CVl6VtT2.js} +1 -1
- package/dist/client/assets/{scroll-area-B-pB6oMr.js → scroll-area-BTJQ86Ry.js} +1 -1
- package/dist/client/assets/{select-DeNgR918.js → select-Dx3T3-4n.js} +1 -1
- package/dist/client/assets/{select-virtual-mcp-CFDIRCp8.js → select-virtual-mcp-BS537pmy.js} +1 -1
- package/dist/client/assets/{sheet-BBLyN2xl.js → sheet-C3HM0Uwr.js} +1 -1
- package/dist/client/assets/{shell-layout-CiKn6BP6.js → shell-layout-Bco0BFOl.js} +2 -2
- package/dist/client/assets/{sidebar-settings-DOwlHFdj.js → sidebar-settings-JhN4X_jg.js} +1 -1
- package/dist/client/assets/{skeleton-CNgs5GJt.js → skeleton-Cjm8s7CT.js} +1 -1
- package/dist/client/assets/{spinner-BZdAS5i2.js → spinner-Dzx7B3Jl.js} +1 -1
- package/dist/client/assets/{store-invite-BXcKXIzr.js → store-invite-BPcFU0aw.js} +1 -1
- package/dist/client/assets/{switch-CmREXk8C.js → switch-CA_oYDia.js} +1 -1
- package/dist/client/assets/{table-C4WVepD4.js → table-C-1rP_rt.js} +1 -1
- package/dist/client/assets/{tabs-BeYHPY-1.js → tabs-BSOe8gLq.js} +1 -1
- package/dist/client/assets/{task-status-DauQRqAW.js → task-status-DYx9R7EL.js} +1 -1
- package/dist/client/assets/tasks-D1X8oLa3.js +1 -0
- package/dist/client/assets/{tasks-panel-DqbQRMGq.js → tasks-panel-BJ3TfA-_.js} +1 -1
- package/dist/client/assets/{textarea-C7YqhWTc.js → textarea-DIJzFUWn.js} +1 -1
- package/dist/client/assets/{time-range-picker-CM-9xODE.js → time-range-picker-CGBh-D6p.js} +1 -1
- package/dist/client/assets/{toggle-group-B7g3fYap.js → toggle-group-DlZGDyPQ.js} +1 -1
- package/dist/client/assets/{tools-list-4D_tBiUe.js → tools-list-D-T64862.js} +1 -1
- package/dist/client/assets/{tooltip-CXZH0tSC.js → tooltip-BJMSu0c2.js} +1 -1
- package/dist/client/assets/{topbar-portal-CjA9qO3_.js → topbar-portal-ChPXVsi1.js} +1 -1
- package/dist/client/assets/{types-CPj3Y6i2.js → types-BHeMLyAV.js} +1 -1
- package/dist/client/assets/{use-automations-B0CZymwk.js → use-automations-Bmw3x7Dk.js} +1 -1
- package/dist/client/assets/{use-collections-CObsJD7p.js → use-collections-C0cYiFfV.js} +1 -1
- package/dist/client/assets/{use-connection-Cv_-e2MS.js → use-connection-CHFdKnsr.js} +1 -1
- package/dist/client/assets/{use-copy-sxHnzQ3E.js → use-copy-xhdji_Bl.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-dSjfTRl8.js → use-create-virtual-mcp-B7odZ_c3.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CqxPDCSp.js → use-infinite-scroll-CPhZNIw7.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-wW1d1HtB.js → use-install-from-registry-BzwuBLOx.js} +1 -1
- package/dist/client/assets/{use-list-state-CWVUvMhj.js → use-list-state-CbsN6RbJ.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-C4X4lEEg.js → use-mcp-prompts-Bel4H4rh.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-DoUnZI9j.js → use-mcp-resources-qGdymfRz.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Cnh4vEBm.js → use-mcp-tools-BCZI_Wqc.js} +1 -1
- package/dist/client/assets/{use-members-BHa-Fb-h.js → use-members-B4ncWtMV.js} +1 -1
- package/dist/client/assets/{use-mobile-v2XXLV0O.js → use-mobile-DOUfTohp.js} +1 -1
- package/dist/client/assets/{use-project-B-9YXhNP.js → use-project-b5C3lq5-.js} +1 -1
- package/dist/client/assets/{use-store-discovery-z8nwAYJJ.js → use-store-discovery-B402mTHd.js} +1 -1
- package/dist/client/assets/{use-view-mode-XMRPR1ke.js → use-view-mode-ss3eRodO.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DfPJ-WDb.js → use-virtual-mcp-BP6aaUzw.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BXDrDvlH.js +1 -0
- package/dist/client/assets/{useMutation-CV3IN68C.js → useMutation-68NxhXCf.js} +1 -1
- package/dist/client/assets/useQuery-BYBCFxgb.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-X3jXt04i.js +1 -0
- package/dist/client/assets/{user-_Hc5WOWn.js → user-iDZRuimU.js} +1 -1
- package/dist/client/assets/{workflow-DKAllKJO.js → workflow-CrrTPehP.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +2 -2
- package/dist/server/migrate.js +1 -1
- package/dist/server/node_modules/pg-connection-string/LICENSE +21 -0
- package/dist/server/node_modules/pg-connection-string/README.md +105 -0
- package/dist/server/node_modules/pg-connection-string/esm/index.mjs +8 -0
- package/dist/server/node_modules/pg-connection-string/index.d.ts +36 -0
- package/dist/server/node_modules/pg-connection-string/index.js +231 -0
- package/dist/server/node_modules/pg-connection-string/package.json +52 -0
- package/dist/server/node_modules/{pg → pg-pool}/LICENSE +1 -1
- package/dist/server/node_modules/pg-pool/README.md +357 -0
- package/dist/server/node_modules/pg-pool/esm/index.mjs +5 -0
- package/dist/server/node_modules/pg-pool/index.js +517 -0
- package/dist/server/node_modules/pg-pool/package.json +51 -0
- package/dist/server/server.js +2 -2
- package/package.json +1 -1
- package/dist/client/assets/plugins-BfcAD8Xs.js +0 -1
- package/dist/client/assets/tasks-fQ7kFf17.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BIejUr4H.js +0 -1
- package/dist/client/assets/useQuery-CEE9SUlS.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B7NkSjI9.js +0 -1
- package/dist/server/node_modules/pg/README.md +0 -95
- package/dist/server/node_modules/pg/esm/index.mjs +0 -20
- package/dist/server/node_modules/pg/lib/client.js +0 -743
- package/dist/server/node_modules/pg/lib/connection-parameters.js +0 -171
- package/dist/server/node_modules/pg/lib/connection.js +0 -221
- package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +0 -122
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +0 -212
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +0 -43
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +0 -89
- package/dist/server/node_modules/pg/lib/crypto/utils.js +0 -9
- package/dist/server/node_modules/pg/lib/defaults.js +0 -91
- package/dist/server/node_modules/pg/lib/index.js +0 -73
- package/dist/server/node_modules/pg/lib/native/client.js +0 -323
- package/dist/server/node_modules/pg/lib/native/index.js +0 -2
- package/dist/server/node_modules/pg/lib/native/query.js +0 -165
- package/dist/server/node_modules/pg/lib/query.js +0 -252
- package/dist/server/node_modules/pg/lib/result.js +0 -109
- package/dist/server/node_modules/pg/lib/stream.js +0 -83
- package/dist/server/node_modules/pg/lib/type-overrides.js +0 -35
- package/dist/server/node_modules/pg/lib/utils.js +0 -217
- package/dist/server/node_modules/pg/package.json +0 -76
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as ne,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-DcxE8oe_.js";import{u as Je,a as Qe}from"./constants-BCt7c81T.js";import{B as xt,g as Me}from"./generate-id-BaIFvm62.js";import{C as Ye}from"./collection-display-button-kCOiEzLn.js";import{C as jt}from"./collection-search-Bdxpglbf.js";import{C as Ct}from"./card-CwEWrOs9.js";import{I as Xe}from"./integration-icon-6jcHFHZV.js";import{D as Ze,a as et,b as tt,c as L}from"./dropdown-menu-DEQ5DCnG.js";import{a as st}from"./Copy01-DhAVspEC.js";import{i as ot}from"./DotsVertical-rvqtR29a.js";import{i as nt}from"./Edit01-BaPedGGl.js";import{s as it}from"./Eye-BgAytXDm.js";import{s as rt}from"./Trash01-BtiNjuw3.js";import{C as bt}from"./collection-table-wrapper-D-vPJPam.js";import{E as Ue}from"./empty-state-DmgqwjeV.js";import{n as We}from"./Inbox01-CDOpLWwZ.js";import{U as yt}from"./user-_Hc5WOWn.js";import{E as lt}from"./empty-state-C4c2sKjV.js";import{u as vt}from"./use-list-state-CWVUvMhj.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-BGZzdkI2.js";import{u as Et,e as Ot}from"./use-collections-CObsJD7p.js";import{u as $t}from"./use-connection-Cv_-e2MS.js";import{s as kt}from"./Plus-C9dY5EOr.js";import{V as Lt}from"./layout-DG9LlvE6.js";import{u as zt}from"./useMutation-CV3IN68C.js";import{P as k}from"./index-DZ6p-ZXx.js";import{B as Be,a as Re,b as He,c as Ge}from"./breadcrumb-ijphtzQp.js";import{e as Ft}from"./Dataflow03-ONoSH2VT.js";import"./ArrowDown-bcBjuFxH.js";import"./ArrowUp-BtIkmj4Y.js";import"./Check-GOz4_bBS.js";import"./Grid01-NwJJaoW7.js";import"./List-DD3BKPLz.js";import"./tooltip-CXZH0tSC.js";import"./index-10S4l3se.js";import"./badge-B_BTuJZe.js";import"./Loading01-B85tVuIU.js";import"./SearchMd-CKp0BoPW.js";import"./input-DPpAbHbD.js";import"./Container-C8ScaknS.js";import"./ChevronRight-Ys0vr-YD.js";import"./table-C4WVepD4.js";import"./avatar-DWAYNsNK.js";import"./useQuery-CEE9SUlS.js";import"./use-view-mode-XMRPR1ke.js";import"./use-mobile-v2XXLV0O.js";import"./slugify-CEUa2lfQ.js";function Kt(s,e){const o=s.properties||{};for(const i in o){const l=o[i];if(l&&l.type==="string"&&(l.format==="url"||l.format==="uri")&&e&&typeof e=="object"&&i in e&&e[i])return e[i]}const a=["image","img","avatar","icon","logo","thumbnail","cover"];for(const i of a)if(e&&typeof e=="object"&&i in e&&typeof e[i]=="string")return e[i]}function Mt(s){const e=ne.c(25),{item:o,schema:a,actions:i}=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]!==i?(p=i&&Object.keys(i).length>0,e[3]=i,e[4]=p):p=e[4];const n=p;let m;e[5]!==r||e[6]!==o.title?(m=t.jsx(Xe,{icon:r,name:o.title,size:"md",className:"shrink-0 shadow-sm"}),e[5]=r,e[6]=o.title,e[7]=m):m=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 u;e[10]!==d?(u=t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:d}),e[10]=d,e[11]=u):u=e[11];let b;e[12]!==f||e[13]!==u?(b=t.jsxs("div",{className:"flex flex-col gap-0 flex-1",children:[f,u]}),e[12]=f,e[13]=u,e[14]=b):b=e[14];let x;e[15]!==m||e[16]!==b?(x=t.jsxs("div",{className:"flex flex-col gap-4 p-6 flex-1",children:[m,b]}),e[15]=m,e[16]=b,e[17]=x):x=e[17];let N;e[18]!==i||e[19]!==n||e[20]!==o?(N=n&&t.jsx("div",{className:"absolute top-6 right-6 opacity-0 group-hover:opacity-100 transition-opacity",onClick:Rt,onMouseDown:Bt,children:t.jsxs(Ze,{children:[t.jsx(et,{asChild:!0,children:t.jsx(ge,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:Wt,children:t.jsx(ot,{size:20})})}),t.jsxs(tt,{align:"end",onClick:Ut,children:[i.open&&t.jsxs(L,{onClick:g=>{g.stopPropagation(),i.open?.(o)},children:[t.jsx(it,{size:16}),"Open"]}),i.edit&&t.jsxs(L,{onClick:g=>{g.stopPropagation(),i.edit?.(o)},children:[t.jsx(nt,{size:16}),"Edit"]}),i.duplicate&&t.jsxs(L,{onClick:g=>{g.stopPropagation(),i.duplicate?.(o)},children:[t.jsx(st,{size:16}),"Duplicate"]}),i.delete&&t.jsxs(L,{variant:"destructive",onClick:g=>{g.stopPropagation(),i.delete?.(o)},children:[t.jsx(rt,{size:16}),"Delete"]})]})]})}),e[18]=i,e[19]=n,e[20]=o,e[21]=N):N=e[21];let j;return e[22]!==x||e[23]!==N?(j=t.jsxs(Ct,{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 Ut(s){return s.stopPropagation()}function Wt(s){return s.stopPropagation()}function Bt(s){return s.stopPropagation()}function Rt(s){return s.stopPropagation()}const Ht=["icon","avatar","logo"],Ve=["created_at","created_by","id"];function Gt(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 Vt(s){const e=ne.c(30),{data:o,schema:a,viewMode:i,search:l,sortKey:r,sortDirection:c,onSort:p,actions:n,onItemClick:m,headerActions:f,emptyState:d,readOnly:u,columns:b,hideToolbar:x,sortableFields:N}=s,j=c===void 0?"asc":c,g=p===void 0?Yt:p;let h;e[0]!==n?(h=n===void 0?{}:n,e[0]=n,e[1]=h):h=e[1];const E=h,T=m===void 0?Qt:m,w=f===void 0?null:f,O=d===void 0?null:d,S=u===void 0?!1:u,_=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(Jt).filter(A=>!y||y.includes(A.id)).map(qt):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]!==i?(D=i==="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(bt,{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]=i,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 qt(s){return{id:s.id,label:typeof s.header=="string"?s.header:s.id}}function Jt(s){return s.sortable!==!1}function Qt(){}function Yt(){}function Xt(s){return{id:"actions",header:"",render:e=>t.jsxs(Ze,{children:[t.jsx(et,{asChild:!0,children:t.jsx(ge,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:o=>o.stopPropagation(),children:t.jsx(ot,{size:20})})}),t.jsxs(tt,{align:"end",onClick:o=>o.stopPropagation(),children:[s.open&&t.jsxs(L,{onClick:o=>{o.stopPropagation(),s.open?.(e)},children:[t.jsx(it,{size:16}),"Open"]}),s.edit&&t.jsxs(L,{onClick:o=>{o.stopPropagation(),s.edit?.(e)},children:[t.jsx(nt,{size:16}),"Edit"]}),s.duplicate&&t.jsxs(L,{onClick:o=>{o.stopPropagation(),s.duplicate?.(e)},children:[t.jsx(st,{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(n=>{const m=o[n];return m&&ct(m)}),i=Gt(o),l=[],r=new Set;i&&a.includes(i)&&(l.push(i),r.add(i));const c=["title","description","updated_at","updated_by"];for(const n of c)a.includes(n)&&!r.has(n)&&(l.push(n),r.add(n));const p=a.filter(n=>!r.has(n)&&!Ve.includes(n)).sort((n,m)=>n.localeCompare(m));for(const n of p)l.push(n),r.add(n);for(const n of Ve)a.includes(n)&&!r.has(n)&&(l.push(n),r.add(n));return l.map(n=>{const m=o[n],f=e?e.includes(n):!["id"].includes(n);return n===i?{id:n,header:"",render:d=>{const u=d[n];return t.jsx(Xe,{icon:u,name:d.title,size:"sm",className:"shrink-0 shadow-sm"})},sortable:!1,cellClassName:"w-16 shrink-0",wrap:!0}:n==="description"?{id:n,header:"Description",render:d=>{const u=d[n];return u==null?"—":t.jsx("span",{className:"block truncate max-w-[50ch]",children:String(u)})},sortable:f,cellClassName:"max-w-[50ch]"}:n==="created_by"||n==="updated_by"?{id:n,header:n.charAt(0).toUpperCase()+n.slice(1).replace(/_/g," "),render:d=>{const u=d[n];return u?t.jsx(yt,{id:String(u),size:"xs"}):"—"},sortable:f,cellClassName:"max-w-[250px]"}:m?.format==="date-time"||n.endsWith("_at")?{id:n,header:n.charAt(0).toUpperCase()+n.slice(1).replace(/_/g," "),render:d=>{const u=d[n];return u?t.jsx("span",{className:"block truncate max-w-full",children:new Date(u).toLocaleDateString()}):"—"},sortable:f,cellClassName:"max-w-[200px]"}:{id:n,header:n.charAt(0).toUpperCase()+n.slice(1).replace(/_/g," "),render:d=>{const u=d[n];return u==null?"—":t.jsx("span",{className:"block truncate max-w-full",children:String(u)})},sortable:f,cellClassName:"max-w-[200px]"}})}function es(s,e,o,a){const i=s||Zt(e,o);return i.some(c=>c.id==="actions")?i:Object.keys(a).length>0?[...i,Xt(a)]:i}function ts(s){const e=ne.c(114),{connectionId:o,org:a,activeCollection:i}=s,l=i.name,r=i.schema??xt,c=i.hasCreateTool,p=i.hasUpdateTool,n=i.hasDeleteTool,m=pt(),{data:f}=ft.useSession(),d=f?.user?.id||"unknown",u=$t(o);let b;e[0]!==u||e[1]!==o?(b=u?Nt(u):o,e[0]=u,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=Je(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}=vt(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&&!n;let A;e[13]!==x||e[14]!==l||e[15]!==m||e[16]!==a?(A=C=>{m({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]=m,e[16]=a,e[17]=A):A=e[17];const F=A;let ie;e[18]!==h.create||e[19]!==d?(ie=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]=ie):ie=e[20];const xe=ie,[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 U;e[25]!==xe||e[26]!==c?(U=c&&{duplicate:xe},e[25]=xe,e[26]=c,e[27]=U):U=e[27];let W;e[28]!==n?(W=n&&{delete:dt},e[28]=n,e[29]=W):W=e[29];let le;e[30]!==U||e[31]!==W||e[32]!==M?(le={...M,...U,...W},e[30]=U,e[31]=W,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]!==m||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);m({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]=m,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,ut=c&&Le,mt=c&&!Le&&!w;let ue;e[47]!==h.create||e[48]!==ye||e[49]!==c?(ue=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]=ue):ue=e[50];const ze=ue,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=ut&&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 G;e[61]!==w||e[62]!==S||e[63]!==Se||e[64]!==H?(G=t.jsx(jt,{value:w,onChange:S,placeholder:Se,onKeyDown:H}),e[61]=w,e[62]=S,e[63]=Se,e[64]=H,e[65]=G):G=e[65];let V;e[66]!==D?(V=D??[],e[66]=D,e[67]=V):V=e[67];const _e=y;let q;e[68]!==F?(q=C=>F(C),e[68]=F,e[69]=q):q=e[69];const Pe="No items found",De=w?"Try adjusting your search terms":"This collection doesn't have any items yet.",Ie=mt?ze:void 0;let J;e[70]!==Pe||e[71]!==De||e[72]!==Ie?(J=t.jsx(lt,{image:null,title:Pe,description:De,actions:Ie}),e[70]=Pe,e[71]=De,e[72]=Ie,e[73]=J):J=e[73];let 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]!==V||e[83]!==_e||e[84]!==q||e[85]!==J||e[86]!==_?(Q=t.jsx("div",{className:"flex-1 overflow-auto",children:t.jsx(Vt,{hideToolbar:!0,data:V,schema:r,viewMode:_,onViewModeChange:z,search:w,onSearchChange:S,sortKey:_e,sortDirection:v,onSort:I,actions:Ce,onItemClick:q,readOnly:$,emptyState:J})}),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]=V,e[83]=_e,e[84]=q,e[85]=J,e[86]=_,e[87]=Q):Q=e[87];let Y;e[88]!==G||e[89]!==Q?(Y=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[G,Q]}),e[88]=G,e[89]=Q,e[90]=Y):Y=e[90];const Ae=!!K;let me;e[91]===Symbol.for("react.memo_cache_sentinel")?(me=C=>{C||je(null)},e[91]=me):me=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:me,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=ne.c(12),{org:e,project:o}=$e(),a=gt();let i;s[0]!==e.id?(i={connectionId:Qe,orgId:e.id},s[0]=e.id,s[1]=i):i=s[1];const l=Je(i);let r;s[2]!==l||s[3]!==o?(r=async m=>{const f=o.enabledPlugins??[];if(f.includes(m))return;const d=[...f,m],u=await l.callTool({name:"PROJECT_UPDATE",arguments:{projectId:o.id,enabledPlugins:d}});return u.structuredContent??u},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 ns(s){const e=ne.c(12),{pluginId:o,title:a,description:i,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,n=l??null,m=r.isPending?"Enabling…":"Enable plugin";let f;e[3]!==r.isPending||e[4]!==p||e[5]!==m?(f=t.jsx(ge,{onClick:p,disabled:r.isPending,children:m}),e[3]=r.isPending,e[4]=p,e[5]=m,e[6]=f):f=e[6];let d;return e[7]!==i||e[8]!==n||e[9]!==f||e[10]!==a?(d=t.jsx(lt,{image:n,title:a,description:i,actions:f}),e[7]=i,e[8]=n,e[9]=f,e[10]=a,e[11]=d):d=e[11],d}const qe="workflows",is={name:"WORKFLOW",displayName:"Workflow",hasCreateTool:!0,hasUpdateTool:!0,hasDeleteTool:!0};function to(){const s=ne.c(5),{project:e,org:o}=$e();if(!(e.enabledPlugins??[]).includes(qe)){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(Ge,{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(ns,{pluginId:qe,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(Ge,{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:Qe,org:o.slug,activeCollection:is})})]}),s[3]=o.slug,s[4]=r):r=s[4],r}export{to as default};
|
|
1
|
+
import{c as ne,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-NjMxPJgF.js";import{u as Je,a as Qe}from"./constants-D7qXOYRn.js";import{B as xt,g as Me}from"./generate-id-BiV6m8fS.js";import{C as Ye}from"./collection-display-button-CpVZ4wHm.js";import{C as jt}from"./collection-search-BYV7N3mr.js";import{C as Ct}from"./card-B8qDZGCZ.js";import{I as Xe}from"./integration-icon-BPVDVJvP.js";import{D as Ze,a as et,b as tt,c as L}from"./dropdown-menu-BxlQMXgW.js";import{a as st}from"./Copy01-DkcjIGiS.js";import{i as ot}from"./DotsVertical-2nyye7GD.js";import{i as nt}from"./Edit01-CoeKfJ-u.js";import{s as it}from"./Eye-hBqNQHpc.js";import{s as rt}from"./Trash01-B_4PTwjI.js";import{C as bt}from"./collection-table-wrapper-CHFJQd21.js";import{E as Ue}from"./empty-state-qLM_bVsv.js";import{n as We}from"./Inbox01-ClVaT7W5.js";import{U as yt}from"./user-iDZRuimU.js";import{E as lt}from"./empty-state-xIvMMy-_.js";import{u as vt}from"./use-list-state-CbsN6RbJ.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-B_ae3oRt.js";import{u as Et,e as Ot}from"./use-collections-C0cYiFfV.js";import{u as $t}from"./use-connection-CHFdKnsr.js";import{s as kt}from"./Plus-CajZ9VfC.js";import{V as Lt}from"./layout-DcmGLVHZ.js";import{u as zt}from"./useMutation-68NxhXCf.js";import{P as k}from"./index-De1iYnQy.js";import{B as Be,a as Re,b as He,c as Ge}from"./breadcrumb-C2RG4nAQ.js";import{e as Ft}from"./Dataflow03-CD3eo8oO.js";import"./ArrowDown-7rbX3zqZ.js";import"./ArrowUp-DoIG5eQh.js";import"./Check-DW8AVFkq.js";import"./Grid01-C5e9ReQ4.js";import"./List-NLa0AhO4.js";import"./tooltip-BJMSu0c2.js";import"./index-CqyqI90F.js";import"./badge-DtRom7JO.js";import"./Loading01-Bb8FCosd.js";import"./SearchMd-eZWeU0sP.js";import"./input-B89sozd8.js";import"./Container-DHyMOW_p.js";import"./ChevronRight-DsjLlugM.js";import"./table-C-1rP_rt.js";import"./avatar-B2yArl-q.js";import"./useQuery-BYBCFxgb.js";import"./use-view-mode-ss3eRodO.js";import"./use-mobile-DOUfTohp.js";import"./slugify-CEUa2lfQ.js";function Kt(s,e){const o=s.properties||{};for(const i in o){const l=o[i];if(l&&l.type==="string"&&(l.format==="url"||l.format==="uri")&&e&&typeof e=="object"&&i in e&&e[i])return e[i]}const a=["image","img","avatar","icon","logo","thumbnail","cover"];for(const i of a)if(e&&typeof e=="object"&&i in e&&typeof e[i]=="string")return e[i]}function Mt(s){const e=ne.c(25),{item:o,schema:a,actions:i}=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]!==i?(p=i&&Object.keys(i).length>0,e[3]=i,e[4]=p):p=e[4];const n=p;let m;e[5]!==r||e[6]!==o.title?(m=t.jsx(Xe,{icon:r,name:o.title,size:"md",className:"shrink-0 shadow-sm"}),e[5]=r,e[6]=o.title,e[7]=m):m=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 u;e[10]!==d?(u=t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:d}),e[10]=d,e[11]=u):u=e[11];let b;e[12]!==f||e[13]!==u?(b=t.jsxs("div",{className:"flex flex-col gap-0 flex-1",children:[f,u]}),e[12]=f,e[13]=u,e[14]=b):b=e[14];let x;e[15]!==m||e[16]!==b?(x=t.jsxs("div",{className:"flex flex-col gap-4 p-6 flex-1",children:[m,b]}),e[15]=m,e[16]=b,e[17]=x):x=e[17];let N;e[18]!==i||e[19]!==n||e[20]!==o?(N=n&&t.jsx("div",{className:"absolute top-6 right-6 opacity-0 group-hover:opacity-100 transition-opacity",onClick:Rt,onMouseDown:Bt,children:t.jsxs(Ze,{children:[t.jsx(et,{asChild:!0,children:t.jsx(ge,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:Wt,children:t.jsx(ot,{size:20})})}),t.jsxs(tt,{align:"end",onClick:Ut,children:[i.open&&t.jsxs(L,{onClick:g=>{g.stopPropagation(),i.open?.(o)},children:[t.jsx(it,{size:16}),"Open"]}),i.edit&&t.jsxs(L,{onClick:g=>{g.stopPropagation(),i.edit?.(o)},children:[t.jsx(nt,{size:16}),"Edit"]}),i.duplicate&&t.jsxs(L,{onClick:g=>{g.stopPropagation(),i.duplicate?.(o)},children:[t.jsx(st,{size:16}),"Duplicate"]}),i.delete&&t.jsxs(L,{variant:"destructive",onClick:g=>{g.stopPropagation(),i.delete?.(o)},children:[t.jsx(rt,{size:16}),"Delete"]})]})]})}),e[18]=i,e[19]=n,e[20]=o,e[21]=N):N=e[21];let j;return e[22]!==x||e[23]!==N?(j=t.jsxs(Ct,{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 Ut(s){return s.stopPropagation()}function Wt(s){return s.stopPropagation()}function Bt(s){return s.stopPropagation()}function Rt(s){return s.stopPropagation()}const Ht=["icon","avatar","logo"],Ve=["created_at","created_by","id"];function Gt(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 Vt(s){const e=ne.c(30),{data:o,schema:a,viewMode:i,search:l,sortKey:r,sortDirection:c,onSort:p,actions:n,onItemClick:m,headerActions:f,emptyState:d,readOnly:u,columns:b,hideToolbar:x,sortableFields:N}=s,j=c===void 0?"asc":c,g=p===void 0?Yt:p;let h;e[0]!==n?(h=n===void 0?{}:n,e[0]=n,e[1]=h):h=e[1];const E=h,T=m===void 0?Qt:m,w=f===void 0?null:f,O=d===void 0?null:d,S=u===void 0?!1:u,_=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(Jt).filter(A=>!y||y.includes(A.id)).map(qt):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]!==i?(D=i==="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(bt,{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]=i,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 qt(s){return{id:s.id,label:typeof s.header=="string"?s.header:s.id}}function Jt(s){return s.sortable!==!1}function Qt(){}function Yt(){}function Xt(s){return{id:"actions",header:"",render:e=>t.jsxs(Ze,{children:[t.jsx(et,{asChild:!0,children:t.jsx(ge,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:o=>o.stopPropagation(),children:t.jsx(ot,{size:20})})}),t.jsxs(tt,{align:"end",onClick:o=>o.stopPropagation(),children:[s.open&&t.jsxs(L,{onClick:o=>{o.stopPropagation(),s.open?.(e)},children:[t.jsx(it,{size:16}),"Open"]}),s.edit&&t.jsxs(L,{onClick:o=>{o.stopPropagation(),s.edit?.(e)},children:[t.jsx(nt,{size:16}),"Edit"]}),s.duplicate&&t.jsxs(L,{onClick:o=>{o.stopPropagation(),s.duplicate?.(e)},children:[t.jsx(st,{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(n=>{const m=o[n];return m&&ct(m)}),i=Gt(o),l=[],r=new Set;i&&a.includes(i)&&(l.push(i),r.add(i));const c=["title","description","updated_at","updated_by"];for(const n of c)a.includes(n)&&!r.has(n)&&(l.push(n),r.add(n));const p=a.filter(n=>!r.has(n)&&!Ve.includes(n)).sort((n,m)=>n.localeCompare(m));for(const n of p)l.push(n),r.add(n);for(const n of Ve)a.includes(n)&&!r.has(n)&&(l.push(n),r.add(n));return l.map(n=>{const m=o[n],f=e?e.includes(n):!["id"].includes(n);return n===i?{id:n,header:"",render:d=>{const u=d[n];return t.jsx(Xe,{icon:u,name:d.title,size:"sm",className:"shrink-0 shadow-sm"})},sortable:!1,cellClassName:"w-16 shrink-0",wrap:!0}:n==="description"?{id:n,header:"Description",render:d=>{const u=d[n];return u==null?"—":t.jsx("span",{className:"block truncate max-w-[50ch]",children:String(u)})},sortable:f,cellClassName:"max-w-[50ch]"}:n==="created_by"||n==="updated_by"?{id:n,header:n.charAt(0).toUpperCase()+n.slice(1).replace(/_/g," "),render:d=>{const u=d[n];return u?t.jsx(yt,{id:String(u),size:"xs"}):"—"},sortable:f,cellClassName:"max-w-[250px]"}:m?.format==="date-time"||n.endsWith("_at")?{id:n,header:n.charAt(0).toUpperCase()+n.slice(1).replace(/_/g," "),render:d=>{const u=d[n];return u?t.jsx("span",{className:"block truncate max-w-full",children:new Date(u).toLocaleDateString()}):"—"},sortable:f,cellClassName:"max-w-[200px]"}:{id:n,header:n.charAt(0).toUpperCase()+n.slice(1).replace(/_/g," "),render:d=>{const u=d[n];return u==null?"—":t.jsx("span",{className:"block truncate max-w-full",children:String(u)})},sortable:f,cellClassName:"max-w-[200px]"}})}function es(s,e,o,a){const i=s||Zt(e,o);return i.some(c=>c.id==="actions")?i:Object.keys(a).length>0?[...i,Xt(a)]:i}function ts(s){const e=ne.c(114),{connectionId:o,org:a,activeCollection:i}=s,l=i.name,r=i.schema??xt,c=i.hasCreateTool,p=i.hasUpdateTool,n=i.hasDeleteTool,m=pt(),{data:f}=ft.useSession(),d=f?.user?.id||"unknown",u=$t(o);let b;e[0]!==u||e[1]!==o?(b=u?Nt(u):o,e[0]=u,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=Je(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}=vt(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&&!n;let A;e[13]!==x||e[14]!==l||e[15]!==m||e[16]!==a?(A=C=>{m({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]=m,e[16]=a,e[17]=A):A=e[17];const F=A;let ie;e[18]!==h.create||e[19]!==d?(ie=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]=ie):ie=e[20];const xe=ie,[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 U;e[25]!==xe||e[26]!==c?(U=c&&{duplicate:xe},e[25]=xe,e[26]=c,e[27]=U):U=e[27];let W;e[28]!==n?(W=n&&{delete:dt},e[28]=n,e[29]=W):W=e[29];let le;e[30]!==U||e[31]!==W||e[32]!==M?(le={...M,...U,...W},e[30]=U,e[31]=W,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]!==m||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);m({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]=m,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,ut=c&&Le,mt=c&&!Le&&!w;let ue;e[47]!==h.create||e[48]!==ye||e[49]!==c?(ue=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]=ue):ue=e[50];const ze=ue,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=ut&&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 G;e[61]!==w||e[62]!==S||e[63]!==Se||e[64]!==H?(G=t.jsx(jt,{value:w,onChange:S,placeholder:Se,onKeyDown:H}),e[61]=w,e[62]=S,e[63]=Se,e[64]=H,e[65]=G):G=e[65];let V;e[66]!==D?(V=D??[],e[66]=D,e[67]=V):V=e[67];const _e=y;let q;e[68]!==F?(q=C=>F(C),e[68]=F,e[69]=q):q=e[69];const Pe="No items found",De=w?"Try adjusting your search terms":"This collection doesn't have any items yet.",Ie=mt?ze:void 0;let J;e[70]!==Pe||e[71]!==De||e[72]!==Ie?(J=t.jsx(lt,{image:null,title:Pe,description:De,actions:Ie}),e[70]=Pe,e[71]=De,e[72]=Ie,e[73]=J):J=e[73];let 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]!==V||e[83]!==_e||e[84]!==q||e[85]!==J||e[86]!==_?(Q=t.jsx("div",{className:"flex-1 overflow-auto",children:t.jsx(Vt,{hideToolbar:!0,data:V,schema:r,viewMode:_,onViewModeChange:z,search:w,onSearchChange:S,sortKey:_e,sortDirection:v,onSort:I,actions:Ce,onItemClick:q,readOnly:$,emptyState:J})}),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]=V,e[83]=_e,e[84]=q,e[85]=J,e[86]=_,e[87]=Q):Q=e[87];let Y;e[88]!==G||e[89]!==Q?(Y=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[G,Q]}),e[88]=G,e[89]=Q,e[90]=Y):Y=e[90];const Ae=!!K;let me;e[91]===Symbol.for("react.memo_cache_sentinel")?(me=C=>{C||je(null)},e[91]=me):me=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:me,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=ne.c(12),{org:e,project:o}=$e(),a=gt();let i;s[0]!==e.id?(i={connectionId:Qe,orgId:e.id},s[0]=e.id,s[1]=i):i=s[1];const l=Je(i);let r;s[2]!==l||s[3]!==o?(r=async m=>{const f=o.enabledPlugins??[];if(f.includes(m))return;const d=[...f,m],u=await l.callTool({name:"PROJECT_UPDATE",arguments:{projectId:o.id,enabledPlugins:d}});return u.structuredContent??u},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 ns(s){const e=ne.c(12),{pluginId:o,title:a,description:i,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,n=l??null,m=r.isPending?"Enabling…":"Enable plugin";let f;e[3]!==r.isPending||e[4]!==p||e[5]!==m?(f=t.jsx(ge,{onClick:p,disabled:r.isPending,children:m}),e[3]=r.isPending,e[4]=p,e[5]=m,e[6]=f):f=e[6];let d;return e[7]!==i||e[8]!==n||e[9]!==f||e[10]!==a?(d=t.jsx(lt,{image:n,title:a,description:i,actions:f}),e[7]=i,e[8]=n,e[9]=f,e[10]=a,e[11]=d):d=e[11],d}const qe="workflows",is={name:"WORKFLOW",displayName:"Workflow",hasCreateTool:!0,hasUpdateTool:!0,hasDeleteTool:!0};function to(){const s=ne.c(5),{project:e,org:o}=$e();if(!(e.enabledPlugins??[]).includes(qe)){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(Ge,{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(ns,{pluginId:qe,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(Ge,{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:Qe,org:o.slug,activeCollection:is})})]}),s[3]=o.slug,s[4]=r):r=s[4],r}export{to as default};
|
package/dist/client/index.html
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<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." />
|
|
13
13
|
<meta name="twitter:image" content="/og-image.png" />
|
|
14
14
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
15
|
-
<script type="module" crossorigin src="/assets/index-
|
|
15
|
+
<script type="module" crossorigin src="/assets/index-NjMxPJgF.js"></script>
|
|
16
16
|
<link rel="stylesheet" crossorigin href="/assets/index-Dqux8LBJ.css">
|
|
17
17
|
</head>
|
|
18
18
|
<body>
|