decocms 2.181.2 → 2.181.3
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-Hpsw9_tf.js → AlertCircle-D2rRA9CS.js} +1 -1
- package/dist/client/assets/{ArrowLeft-U7OUoBhv.js → ArrowLeft-D4bkD9qi.js} +1 -1
- package/dist/client/assets/{ArrowUp-BrSLqvQo.js → ArrowUp-CpDF-NAu.js} +1 -1
- package/dist/client/assets/{Check-CVKUMJv3.js → Check-CecxQkQE.js} +1 -1
- package/dist/client/assets/{ChevronDown-Ds3IOx8p.js → ChevronDown-Cm9SuGtV.js} +1 -1
- package/dist/client/assets/{ChevronRight-CTHCKnjF.js → ChevronRight-2xVQHhsF.js} +1 -1
- package/dist/client/assets/{ChevronUp-DJbt-mXd.js → ChevronUp-B6bu9ZD3.js} +1 -1
- package/dist/client/assets/{Container-D4n2e11R.js → Container-sfWYtc36.js} +1 -1
- package/dist/client/assets/{Dataflow03-q5kzWw4s.js → Dataflow03-BcXlVxgR.js} +1 -1
- package/dist/client/assets/{Download01-BBRbjA11.js → Download01-DGSbxmSo.js} +1 -1
- package/dist/client/assets/{FolderClosed-CgbAGtho.js → FolderClosed-DlY-lqwP.js} +1 -1
- package/dist/client/assets/{Grid01-CbgVFQNg.js → Grid01-CLnEHof5.js} +1 -1
- package/dist/client/assets/{List-D35z7ORx.js → List-CnkQuVUq.js} +1 -1
- package/dist/client/assets/{Loading01-DDv5lfhX.js → Loading01-ZUH_hVSq.js} +1 -1
- package/dist/client/assets/{Play-Q9uDVIa5.js → Play-CCpyKlpN.js} +1 -1
- package/dist/client/assets/{Plus-DcUxQQXw.js → Plus-D9CNWrFQ.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-nS96T2bf.js → RefreshCcw01-Cu6svfY5.js} +1 -1
- package/dist/client/assets/{SearchMd-CTpXH6F3.js → SearchMd-BH_J7-7p.js} +1 -1
- package/dist/client/assets/{Settings01-BVY96Vsg.js → Settings01-DTaoTYj1.js} +1 -1
- package/dist/client/assets/{Trash01-CzfVJZjl.js → Trash01-Cv31wiMP.js} +1 -1
- package/dist/client/assets/{Type01-BwsSTKh1.js → Type01-BRLQyycA.js} +1 -1
- package/dist/client/assets/{Upload01-Bn_9d04P.js → Upload01-BY6Noksk.js} +1 -1
- package/dist/client/assets/{User01-Dl4j8Eui.js → User01-BloSEKZw.js} +1 -1
- package/dist/client/assets/{VideoRecorder-0-qQusnp.js → VideoRecorder-CqjZf9cg.js} +1 -1
- package/dist/client/assets/{X-DvXlEl9E.js → X-1dO_8PIJ.js} +1 -1
- package/dist/client/assets/{XCircle-DI9HiD4A.js → XCircle-BEC1SvTX.js} +1 -1
- package/dist/client/assets/{XClose-Bw5018RM.js → XClose-BzyTilGE.js} +1 -1
- package/dist/client/assets/{Zap-DGbTVlYq.js → Zap-D6SUOiFY.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-Cfflc0J5.js → agent-connections-preview-COmBlzCd.js} +1 -1
- package/dist/client/assets/{agent-detail-CehIC3W1.js → agent-detail-DAo3-7Gz.js} +1 -1
- package/dist/client/assets/{agents-DmtfY0M7.js → agents-Cy0iaygc.js} +1 -1
- package/dist/client/assets/{ai-providers-logos-BtOy-_hY.js → ai-providers-logos-Cr4iRu-0.js} +1 -1
- package/dist/client/assets/{alert-dialog-CIdU20ao.js → alert-dialog-DnwDlp7T.js} +1 -1
- package/dist/client/assets/{auth-catchall-DklKmwQO.js → auth-catchall-CJb2iecY.js} +1 -1
- package/dist/client/assets/{automation-detail-CIe1WG8E.js → automation-detail-DIl5XDBS.js} +1 -1
- package/dist/client/assets/{automations-KsqaYtsv.js → automations-4lM2x30V.js} +1 -1
- package/dist/client/assets/{avatar-Dz9Au16I.js → avatar-CahK8DWE.js} +1 -1
- package/dist/client/assets/{badge-BIY4HSu4.js → badge-a1yIqkX1.js} +1 -1
- package/dist/client/assets/{binder-DaeU7_Yt.js → binder-B_Xezby6.js} +1 -1
- package/dist/client/assets/{breadcrumb-DNInqlES.js → breadcrumb-DBLmG8ET.js} +1 -1
- package/dist/client/assets/{card-CoTaf7Bb.js → card-BkMKAjKJ.js} +1 -1
- package/dist/client/assets/{checkbox-UWf_Spym.js → checkbox-DFbWpPSa.js} +1 -1
- package/dist/client/assets/{collapsible-DGsDf05s.js → collapsible-CzCLTaIa.js} +1 -1
- package/dist/client/assets/{collection-detail-jT6_1Zus.js → collection-detail-CP2ikFfr.js} +1 -1
- package/dist/client/assets/{collection-display-button-CIwF6qiP.js → collection-display-button-BTy8OMGo.js} +1 -1
- package/dist/client/assets/{collection-search-DmeA1lkM.js → collection-search-BaA_5hnO.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DZ9kkHHz.js → collection-table-wrapper-CeDvXZ6e.js} +1 -1
- package/dist/client/assets/{collection-tabs-VEtVQj8e.js → collection-tabs-B_Ive8CL.js} +1 -1
- package/dist/client/assets/{command-DS9L8dE9.js → command-DeF62mUG.js} +1 -1
- package/dist/client/assets/{connection-card-DY8BmloD.js → connection-card-ClL9bm7k.js} +1 -1
- package/dist/client/assets/{connection-detail-D6zDmZps.js → connection-detail-D6Ad6Uup.js} +1 -1
- package/dist/client/assets/{connections-BvDULZyp.js → connections-Dkdo-MxF.js} +1 -1
- package/dist/client/assets/{constants-C5g6K3-0.js → constants-kAo23sAc.js} +1 -1
- package/dist/client/assets/{context-0-m5aPvK.js → context-C2WVT2wI.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-Bw7JkHCW.js → create-organization-dialog--yeW4Rp3.js} +1 -1
- package/dist/client/assets/{create-project-dialog-CofGaj8t.js → create-project-dialog-DX0tom06.js} +1 -1
- package/dist/client/assets/{danger-BxwsLFA0.js → danger-BEWSLgEr.js} +1 -1
- package/dist/client/assets/{danger-zone-DNgGGkaE.js → danger-zone-COttqiLk.js} +1 -1
- package/dist/client/assets/{dependencies-CscQrQx3.js → dependencies-DQpwdViP.js} +1 -1
- package/dist/client/assets/{dialog-Beaz2erB.js → dialog-B-I43lOk.js} +1 -1
- package/dist/client/assets/{drawer-DuM10S-O.js → drawer-Cc_fH-oc.js} +1 -1
- package/dist/client/assets/{dropdown-menu-IA1w2fjK.js → dropdown-menu-KiFp7XSX.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-CtDEEZnp.js → dynamic-plugin-layout-DqyTuAzp.js} +1 -1
- package/dist/client/assets/{editable-task-title-DuDIwQf_.js → editable-task-title-DABFKKXz.js} +1 -1
- package/dist/client/assets/{empty-state-DnJSxmJA.js → empty-state-BclY67WC.js} +1 -1
- package/dist/client/assets/{empty-state-hwIP0sm6.js → empty-state-UToLDOJO.js} +1 -1
- package/dist/client/assets/{env-vars-editor-Ceyzo9UT.js → env-vars-editor-D3JHoO0m.js} +1 -1
- package/dist/client/assets/{extract-connection-data-D13QyL30.js → extract-connection-data-GhIKo0Xr.js} +1 -1
- package/dist/client/assets/{file-browser-B-JXooL8.js → file-browser-CZHih4nP.js} +2 -2
- package/dist/client/assets/{form-CccEC3cm.js → form-edx7u0Be.js} +1 -1
- package/dist/client/assets/{general-axIGxWAv.js → general-rmW6kn_q.js} +1 -1
- package/dist/client/assets/{generate-id-0beDKMoR.js → generate-id-B0hqIne-.js} +1 -1
- package/dist/client/assets/{grid-view-VGzy6bo9.js → grid-view-SzsDCBqX.js} +1 -1
- package/dist/client/assets/{home-ED4EKgWV.js → home-BW8Jzf61.js} +1 -1
- package/dist/client/assets/{index-DxFKywdp.js → index--68a591R.js} +1 -1
- package/dist/client/assets/{index-Be3yjubl.js → index-B3DLUye8.js} +1 -1
- package/dist/client/assets/{index-CDessA1I.js → index-Bf3XZpZk.js} +1 -1
- package/dist/client/assets/{index-JasJqXzm.js → index-BsYB-j4p.js} +1 -1
- package/dist/client/assets/{index-VZp2CIbR.js → index-C45O1mgu.js} +1 -1
- package/dist/client/assets/{index-DQTOgFOw.js → index-CJ0BaJHY.js} +1 -1
- package/dist/client/assets/{index-BfJLXP0j.js → index-CNQ1T_R3.js} +1 -1
- package/dist/client/assets/{index-DqQdLYr7.js → index-Ca6dFB6s.js} +1 -1
- package/dist/client/assets/{index-C2aMuEoP.js → index-CyaqcTbn.js} +1 -1
- package/dist/client/assets/{index-BjxqoU_w.js → index-Di6oLb1g.js} +3 -3
- package/dist/client/assets/{index-DsV3YD3P.js → index-SfPPYQt8.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-C0OPB4rx.js → infiniteQueryObserver-Cg7Qn-Py.js} +1 -1
- package/dist/client/assets/{input-Be0bLLQW.js → input-DQ4QcwHR.js} +1 -1
- package/dist/client/assets/{integration-icon-C9ac9VOj.js → integration-icon-DlCg0T4C.js} +1 -1
- package/dist/client/assets/{label-C6smVCIk.js → label-BGeQL0ka.js} +1 -1
- package/dist/client/assets/{layout-D0N63fj1.js → layout-D6ZxqJKi.js} +1 -1
- package/dist/client/assets/{layout-CYi_63K3.js → layout-DtwUtGx0.js} +1 -1
- package/dist/client/assets/{login-B4SjGwXr.js → login-DlB4I5sp.js} +1 -1
- package/dist/client/assets/{logo-upload-DwLQLlu7.js → logo-upload-BtAPf8sp.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-BWF6RI84.js → mcp-app-renderer-Cg9Eew2n.js} +1 -1
- package/dist/client/assets/{mcp-server-card-ksfI1Eyh.js → mcp-server-card-4V1eOOTX.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-Cb-T_-Mb.js → mcp-server-detail-CX9gEsnH.js} +2 -2
- package/dist/client/assets/{members-DJ6DA7d5.js → members-D1cMWKgG.js} +1 -1
- package/dist/client/assets/{monaco-editor-D0GS_D3E.js → monaco-editor-DnqhgBvh.js} +1 -1
- package/dist/client/assets/{monitoring-osT0IqjS.js → monitoring-BQpDfDrf.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-Bxyyp3mT.js → monitoring-dashboard-edit-Cbicjk63.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-D1jhpkzD.js → monitoring-dashboard-view-Ci-RFMRb.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BzJ0yham.js → monitoring-stats-row-vvMdV41p.js} +1 -1
- package/dist/client/assets/{oauth-callback-B9dLIXA2.js → oauth-callback-DIjSwsej.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-mFsE32vf.js → oauth-callback-ai-provider-Dh3KWtZ6.js} +1 -1
- package/dist/client/assets/{org-ai-providers-UG6FIdxB.js → org-ai-providers-DGjdQR3W.js} +1 -1
- package/dist/client/assets/{page-C4W1F739.js → page-DCh64rPG.js} +1 -1
- package/dist/client/assets/{page-Drtt1B9w.js → page-DqLtxYci.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-C-XfLac2.js → plugin-empty-state-DXF12w3Y.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-C7t75jMS.js → plugin-empty-state-KrWE8h_c.js} +1 -1
- package/dist/client/assets/{plugin-header-BJKUaApF.js → plugin-header-BRNld0B2.js} +1 -1
- package/dist/client/assets/{plugin-header-5ST0P5Q7.js → plugin-header-CxhFSwvz.js} +1 -1
- package/dist/client/assets/plugins-BVx4W74m.js +1 -0
- package/dist/client/assets/{popover-Dn0X9Fr1.js → popover-DnP50c_4.js} +1 -1
- package/dist/client/assets/{project-app-view-CcUsagsx.js → project-app-view-BjmqGgdc.js} +1 -1
- package/dist/client/assets/{project-layout-D9UABDEG.js → project-layout-B0N0-1u8.js} +1 -1
- package/dist/client/assets/{project-plugins-B2zBuBKC.js → project-plugins-W6YBdGTQ.js} +1 -1
- package/dist/client/assets/{projects-list-BWN1T4nW.js → projects-list-x0gTe3hu.js} +1 -1
- package/dist/client/assets/{registry-layout-tQMWJSmp.js → registry-layout-CCApya06.js} +1 -1
- package/dist/client/assets/{registry-utils-CVkiAvdy.js → registry-utils-B2MGgFdM.js} +1 -1
- package/dist/client/assets/{reset-password-DJ4VaB6B.js → reset-password-BGRs1AsG.js} +1 -1
- package/dist/client/assets/{resizable-BD6CMEjd.js → resizable-BUdS0TeH.js} +1 -1
- package/dist/client/assets/{save-actions-BFbH4lFH.js → save-actions-CZB_80fx.js} +1 -1
- package/dist/client/assets/{scroll-area-VqeDMOPN.js → scroll-area-BDvsWD3_.js} +1 -1
- package/dist/client/assets/{select-VEJvYQo7.js → select-DE6nOtq4.js} +1 -1
- package/dist/client/assets/{select-virtual-mcp-BVFbfMoH.js → select-virtual-mcp-BcDL714M.js} +1 -1
- package/dist/client/assets/{shell-layout-lPP98AcT.js → shell-layout-dlpBTl1V.js} +2 -2
- package/dist/client/assets/{sidebar-settings-Cvi9DQQC.js → sidebar-settings-DvmipHRI.js} +1 -1
- package/dist/client/assets/{skeleton-HKYMRn58.js → skeleton-jHSQmvNz.js} +1 -1
- package/dist/client/assets/{spinner-BFdTwge6.js → spinner-uIlWy8Tn.js} +1 -1
- package/dist/client/assets/{store-invite-BqHShMlA.js → store-invite-hyBdEV4m.js} +1 -1
- package/dist/client/assets/{switch-CG6Wlm7Y.js → switch-DqoVcDTw.js} +1 -1
- package/dist/client/assets/{table-C915-j5j.js → table-BtUXt-LB.js} +1 -1
- package/dist/client/assets/{tabs-EJf8mrdN.js → tabs-Co0v-Gtu.js} +1 -1
- package/dist/client/assets/{task-status-DwSGaLCq.js → task-status-mBvgK6CE.js} +5 -3
- package/dist/client/assets/tasks-D2ul5DI6.js +1 -0
- package/dist/client/assets/{tasks-panel-j-1pM09U.js → tasks-panel-CKxWhrpo.js} +1 -1
- package/dist/client/assets/{textarea-BpJcJgEu.js → textarea-DK_nHNH9.js} +1 -1
- package/dist/client/assets/{time-range-picker-CBrng89O.js → time-range-picker-Dq2GzTz_.js} +1 -1
- package/dist/client/assets/{toggle-group-D3jOZx6Z.js → toggle-group-C2i_WN24.js} +1 -1
- package/dist/client/assets/{tools-list-BJKvrBYn.js → tools-list-SO4mO2yz.js} +1 -1
- package/dist/client/assets/{tooltip-SqkLa6wk.js → tooltip-Bt2vWRpT.js} +1 -1
- package/dist/client/assets/{topbar-portal-Ul2d-lg1.js → topbar-portal-C9UZ6_6p.js} +1 -1
- package/dist/client/assets/{types-CdHbWvSx.js → types-C4sVrknd.js} +1 -1
- package/dist/client/assets/{use-automations-xjYa92g6.js → use-automations-DgVOPvmM.js} +1 -1
- package/dist/client/assets/{use-collections-Zp8eOwPm.js → use-collections-CojcRvND.js} +1 -1
- package/dist/client/assets/{use-connection-B-vgK3kN.js → use-connection-CJIltDo3.js} +1 -1
- package/dist/client/assets/{use-copy-Bor2cPit.js → use-copy-_cPtrtTH.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DLLVUJBK.js → use-create-virtual-mcp-D7i1HcQg.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-QweqoXs4.js → use-infinite-scroll-xFnZb5m2.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-BWF2XusE.js → use-install-from-registry-BUPQMjUV.js} +1 -1
- package/dist/client/assets/{use-list-state-BpX2jytt.js → use-list-state-Bp_aU4BI.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-qi4FHPHh.js → use-mcp-prompts-zeDoy0Xo.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-B8ERGBbF.js → use-mcp-resources-BIFxFRhN.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DNLvgz5O.js → use-mcp-tools-BD0zsUGc.js} +1 -1
- package/dist/client/assets/{use-members-CcTYAvXH.js → use-members-CbUEMp3B.js} +1 -1
- package/dist/client/assets/{use-project-D_8V3WFM.js → use-project-BVkW8l1T.js} +1 -1
- package/dist/client/assets/{use-store-discovery-iIFblh2E.js → use-store-discovery-Dr1RNWE5.js} +1 -1
- package/dist/client/assets/{use-view-mode-BBlaOBUn.js → use-view-mode-DNywUlq7.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BnUWdVw5.js → use-virtual-mcp-BdGbK3Wg.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BKFOAK_4.js +1 -0
- package/dist/client/assets/{useMutation-oWI4nFQG.js → useMutation-BOcaN318.js} +1 -1
- package/dist/client/assets/useQuery-BrfnS-T_.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-XlSq2d-l.js +1 -0
- package/dist/client/assets/{user-BtGr8jKI.js → user-BdXDOTfV.js} +1 -1
- package/dist/client/assets/{workflow-CKtu7TZc.js → workflow-C2zJzxLb.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/node_modules/xtend/.jshintrc +30 -0
- package/dist/server/node_modules/{postgres-bytea/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/plugins-EgDqBTdv.js +0 -1
- package/dist/client/assets/tasks-B-KbBDgd.js +0 -1
- package/dist/client/assets/useInfiniteQuery-KvMZbxSR.js +0 -1
- package/dist/client/assets/useQuery-CmP1G4DA.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-4eRk30PP.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/pg-int8/LICENSE +0 -13
- package/dist/server/node_modules/pg-int8/README.md +0 -16
- package/dist/server/node_modules/pg-int8/index.js +0 -100
- package/dist/server/node_modules/pg-int8/package.json +0 -24
- 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-date/index.js +0 -116
- package/dist/server/node_modules/postgres-date/license +0 -21
- package/dist/server/node_modules/postgres-date/package.json +0 -33
- package/dist/server/node_modules/postgres-date/readme.md +0 -49
- 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/license +0 -21
- package/dist/server/node_modules/postgres-interval/package.json +0 -36
- package/dist/server/node_modules/postgres-interval/readme.md +0 -48
- package/dist/server/node_modules/split2/LICENSE +0 -13
- package/dist/server/node_modules/split2/README.md +0 -85
- package/dist/server/node_modules/split2/bench.js +0 -27
- package/dist/server/node_modules/split2/index.js +0 -141
- package/dist/server/node_modules/split2/package.json +0 -39
- package/dist/server/node_modules/split2/test.js +0 -409
package/dist/client/assets/{use-create-virtual-mcp-DLLVUJBK.js → use-create-virtual-mcp-D7i1HcQg.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,u as C,e as f,O as m}from"./index-
|
|
1
|
+
import{c as p,u as C,e as f,O as m}from"./index-Di6oLb1g.js";import{a as v}from"./use-virtual-mcp-BdGbK3Wg.js";function M(s){const e=p.c(10);let a;e[0]!==s?(a=s===void 0?{}:s,e[0]=s,e[1]=a):a=e[1];const d=a,{navigateOnCreate:l}=d,o=l===void 0?!1:l,{org:r}=C(),c=f(),t=v();let n;e[2]!==t.create||e[3]!==c||e[4]!==o||e[5]!==r?(n=async()=>{const g=await t.create.mutateAsync({title:"New Agent",description:"Agents let you securely expose integrated tools to the outside world.",status:"active",connections:[]});return o&&c({to:"/$org/$project/agents/$agentId",params:{org:r.slug,project:m,agentId:g.id}}),{id:g.id,virtualMcp:g}},e[2]=t.create,e[3]=c,e[4]=o,e[5]=r,e[6]=n):n=e[6];const u=n;let i;return e[7]!==t.create.isPending||e[8]!==u?(i={createVirtualMCP:u,isCreating:t.create.isPending},e[7]=t.create.isPending,e[8]=u,e[9]=i):i=e[9],i}export{M as u};
|
package/dist/client/assets/{use-infinite-scroll-QweqoXs4.js → use-infinite-scroll-xFnZb5m2.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-Di6oLb1g.js";function a(t,n,s=!1){const e=r.useRef(null),c=r.useRef(t),u=r.useRef(n),f=r.useRef(s);return c.current=t,u.current=n,f.current=s,o=>{e.current&&e.current.disconnect(),e.current=new IntersectionObserver(i=>{i[0]?.isIntersecting&&u.current&&!f.current&&c.current()}),o&&e.current.observe(o)}}export{a as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as y,f as C,v as e}from"./index-
|
|
1
|
+
import{u as y,f as C,v as e}from"./index-Di6oLb1g.js";import{u as g,f as S,c as v,e as B}from"./registry-utils-B2MGgFdM.js";import{a as I,b as P}from"./use-connection-CJIltDo3.js";import{e as _}from"./extract-connection-data-GhIKo0Xr.js";function w(t){return t.startsWith("@")?t:`@${t}`}function A(){const{org:t}=y(),{data:s}=C.useSession(),i=I(),l=P(),u=g(l);return{installByBinding:async r=>{if(!t||!s?.user?.id){e.error("Not authenticated");return}const d=w(r),a=(await Promise.all(u.map(async o=>{const c=S(o.tools);if(!c)return null;try{const p=await v(o.id,t.id,c,{where:{appName:d}});return B(p??[])[0]??null}catch{return null}}))).find(o=>o!==null);if(!a){e.error(`MCP Server not found in registry: ${r}`);return}const n=_(a,t.id,s.user.id),m=n.connection_type==="STDIO",f=!!n.connection_url,h=m&&n.connection_headers&&typeof n.connection_headers=="object"&&"command"in n.connection_headers;if(!f&&!h){e.error("This MCP Server cannot be connected: no connection method available");return}return await i.create.mutateAsync(n),{id:n.id,connection:n}},isInstalling:i.create.isPending}}export{A as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as u,c as w}from"./index-
|
|
1
|
+
import{r as u,c as w}from"./index-Di6oLb1g.js";import{u as E}from"./use-view-mode-DNywUlq7.js";function J(c){const e=`deco-filters-${c}`,[s,i]=u.useState(()=>{try{const t=globalThis.localStorage?.getItem(e);if(t)return JSON.parse(t)}catch(t){console.error("Failed to parse stored filters:",t)}return[]});return[s,t=>{i(t);try{globalThis.localStorage?.setItem(e,JSON.stringify(t))}catch(l){console.error("Failed to save filters:",l)}}]}function N(c){const e=w.c(7),[s,i]=u.useState(c),[r,t]=u.useState(c?"desc":null);let l;e[0]!==r||e[1]!==s?(l=S=>{s!==S?(i(S),t("asc")):r==="asc"?t("desc"):r==="desc"&&(i(void 0),t(null))},e[0]=r,e[1]=s,e[2]=l):l=e[2];const d=l;let o;return e[3]!==d||e[4]!==r||e[5]!==s?(o={sortKey:s,sortDirection:r,handleSort:d},e[3]=d,e[4]=r,e[5]=s,e[6]=o):o=e[6],o}function W(c){const e=w.c(20),{namespace:s,resource:i,defaultSortKey:r,defaultViewMode:t}=c,l=r===void 0?"title":r,d=t===void 0?"table":t,[o,S]=u.useState(""),b=u.useDeferredValue(o),D=`${s}-${i}`,[p,F]=J(D),a=`mesh-${i}-filter-visible-${s}`;let g;e[0]!==a?(g=()=>globalThis.localStorage?.getItem(a)==="true",e[0]=a,e[1]=g):g=e[1];const[n,x]=u.useState(g);let h;e[2]!==a?(h=T=>{x(T),globalThis.localStorage?.setItem(a,String(T))},e[2]=a,e[3]=h):h=e[3];const f=h;let m;e[4]!==n||e[5]!==f?(m=()=>{f(!n)},e[4]=n,e[5]=f,e[6]=m):m=e[6];const V=m,[$,K]=E(`mesh-${i}-${s}`,d),{sortKey:I,sortDirection:v,handleSort:B}=N(l),M=I;let y;return e[7]!==n||e[8]!==p||e[9]!==B||e[10]!==o||e[11]!==b||e[12]!==f||e[13]!==F||e[14]!==K||e[15]!==v||e[16]!==M||e[17]!==V||e[18]!==$?(y={search:o,searchTerm:b,setSearch:S,filters:p,setFilters:F,filterBarVisible:n,setFilterBarVisible:f,toggleFilterBar:V,viewMode:$,setViewMode:K,sortKey:M,sortDirection:v,handleSort:B},e[7]=n,e[8]=p,e[9]=B,e[10]=o,e[11]=b,e[12]=f,e[13]=F,e[14]=K,e[15]=v,e[16]=M,e[17]=V,e[18]=$,e[19]=y):y=e[19],y}export{W as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as l,x as c,aC as m,aD as f}from"./index-
|
|
1
|
+
import{c as l,x as c,aC as m,aD as f}from"./index-Di6oLb1g.js";import{u as y}from"./useQuery-BrfnS-T_.js";import{K as n}from"./constants-kAo23sAc.js";async function u(s){if(!s.getServerCapabilities()?.prompts)return{prompts:[]};try{return await s.listPrompts()}catch(t){if(t instanceof m&&t.code===f.MethodNotFound)return{prompts:[]};throw t}}async function q(s,e,t){if(!s.getServerCapabilities()?.prompts)throw new Error("Prompts capability not supported");return await s.getPrompt({name:e,arguments:t??{}})}function C(s){const e=l.c(12);let t,r;e[0]!==s?({client:t,...r}=s,e[0]=s,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let i;e[3]!==t?(i=n.mcpPromptsList(t),e[3]=t,e[4]=i):i=e[4];let o;e[5]!==t?(o=()=>u(t),e[5]=t,e[6]=o):o=e[6];const p=r.staleTime??3e4;let a;return e[7]!==r||e[8]!==i||e[9]!==o||e[10]!==p?(a={...r,queryKey:i,queryFn:o,staleTime:p,retry:!1},e[7]=r,e[8]=i,e[9]=o,e[10]=p,e[11]=a):a=e[11],c(a)}function d(s){const e=l.c(12);let t,r;e[0]!==s?({client:t,...r}=s,e[0]=s,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let i;e[3]!==t?(i=n.mcpPromptsList(t),e[3]=t,e[4]=i):i=e[4];let o;e[5]!==t?(o=()=>u(t),e[5]=t,e[6]=o):o=e[6];const p=r.staleTime??3e4;let a;return e[7]!==r||e[8]!==i||e[9]!==o||e[10]!==p?(a={...r,queryKey:i,queryFn:o,staleTime:p,retry:!1},e[7]=r,e[8]=i,e[9]=o,e[10]=p,e[11]=a):a=e[11],y(a)}export{d as a,q as g,u as l,C as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,x as f,aC as m,aD as p}from"./index-
|
|
1
|
+
import{c as a,x as f,aC as m,aD as p}from"./index-Di6oLb1g.js";import{u as R}from"./useQuery-BrfnS-T_.js";import{K as n}from"./constants-kAo23sAc.js";async function y(u){if(!u.getServerCapabilities()?.resources)return{resources:[]};try{return await u.listResources()}catch(s){if(s instanceof m&&s.code===p.MethodNotFound)return{resources:[]};throw s}}async function q(u,e){return await u.readResource({uri:e})}function K(u){const e=a.c(12);let s,t;e[0]!==u?({client:s,...t}=u,e[0]=u,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let r;e[3]!==s?(r=n.mcpResourcesList(s),e[3]=s,e[4]=r):r=e[4];let i;e[5]!==s?(i=()=>y(s),e[5]=s,e[6]=i):i=e[6];const o=t.staleTime??3e4;let l;return e[7]!==t||e[8]!==r||e[9]!==i||e[10]!==o?(l={...t,queryKey:r,queryFn:i,staleTime:o,retry:!1},e[7]=t,e[8]=r,e[9]=i,e[10]=o,e[11]=l):l=e[11],f(l)}function M(u){const e=a.c(12);let s,t;e[0]!==u?({client:s,...t}=u,e[0]=u,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let r;e[3]!==s?(r=n.mcpResourcesList(s),e[3]=s,e[4]=r):r=e[4];let i;e[5]!==s?(i=()=>y(s),e[5]=s,e[6]=i):i=e[6];const o=t.staleTime??3e4;let l;return e[7]!==t||e[8]!==r||e[9]!==i||e[10]!==o?(l={...t,queryKey:r,queryFn:i,staleTime:o,retry:!1},e[7]=t,e[8]=r,e[9]=i,e[10]=o,e[11]=l):l=e[11],R(l)}function b(u){const e=a.c(15);let s,t,r;e[0]!==u?({client:s,uri:r,...t}=u,e[0]=u,e[1]=s,e[2]=t,e[3]=r):(s=e[1],t=e[2],r=e[3]);let i;e[4]!==s||e[5]!==r?(i=n.mcpReadResource(s,r),e[4]=s,e[5]=r,e[6]=i):i=e[6];let o;e[7]!==s||e[8]!==r?(o=()=>q(s,r),e[7]=s,e[8]=r,e[9]=o):o=e[9];const l=t.staleTime??3e4;let c;return e[10]!==t||e[11]!==i||e[12]!==o||e[13]!==l?(c={...t,queryKey:i,queryFn:o,staleTime:l,retry:!1},e[10]=t,e[11]=i,e[12]=o,e[13]=l,e[14]=c):c=e[14],f(c)}export{K as a,M as b,y as l,q as r,b as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as m,x as p}from"./index-
|
|
1
|
+
import{c as m,x as p}from"./index-Di6oLb1g.js";import{u as q}from"./useQuery-BrfnS-T_.js";import{u as C}from"./useMutation-BOcaN318.js";import{K as T}from"./constants-kAo23sAc.js";function w(r){const e=m.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let o;e[5]!==t?(o=async()=>await t.listTools(),e[5]=t,e[6]=o):o=e[6];const i=s.staleTime??3e4;let n;return e[7]!==s||e[8]!==l||e[9]!==o||e[10]!==i?(n={...s,queryKey:l,queryFn:o,staleTime:i,retry:!1},e[7]=s,e[8]=l,e[9]=o,e[10]=i,e[11]=n):n=e[11],p(n)}function F(r){const e=m.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let o;e[5]!==t?(o=async()=>await t.listTools(),e[5]=t,e[6]=o):o=e[6];const i=s.staleTime??3e4;let n;return e[7]!==s||e[8]!==l||e[9]!==o||e[10]!==i?(n={...s,queryKey:l,queryFn:o,staleTime:i,retry:!1},e[7]=s,e[8]=l,e[9]=o,e[10]=i,e[11]=n):n=e[11],q(n)}function P(r){const e=m.c(21);let t,s,l,o;e[0]!==r?({client:t,toolName:o,toolArguments:l,...s}=r,e[0]=r,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);let i,n,u;if(e[5]!==t||e[6]!==s||e[7]!==l||e[8]!==o){const y=JSON.stringify(l??{});u=p,i=s,n=T.mcpToolCall(t,o,y),e[5]=t,e[6]=s,e[7]=l,e[8]=o,e[9]=i,e[10]=n,e[11]=u}else i=e[9],n=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==o?(a=async()=>await t.callTool({name:o,arguments:l}),e[12]=t,e[13]=l,e[14]=o,e[15]=a):a=e[15];const f=s.staleTime??3e4;let c;return e[16]!==i||e[17]!==n||e[18]!==a||e[19]!==f?(c={...i,queryKey:n,queryFn:a,staleTime:f,retry:!1},e[16]=i,e[17]=n,e[18]=a,e[19]=f,e[20]=c):c=e[20],u(c)}function $(r){const e=m.c(21);let t,s,l,o;e[0]!==r?({client:t,toolName:o,toolArguments:l,...s}=r,e[0]=r,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);let i,n,u;if(e[5]!==t||e[6]!==s||e[7]!==l||e[8]!==o){const y=JSON.stringify(l??{});u=q,i=s,n=T.mcpToolCall(t,o,y),e[5]=t,e[6]=s,e[7]=l,e[8]=o,e[9]=i,e[10]=n,e[11]=u}else i=e[9],n=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==o?(a=async()=>await t.callTool({name:o,arguments:l}),e[12]=t,e[13]=l,e[14]=o,e[15]=a):a=e[15];const f=s.staleTime??3e4;let c;return e[16]!==i||e[17]!==n||e[18]!==a||e[19]!==f?(c={...i,queryKey:n,queryFn:a,staleTime:f,retry:!1},e[16]=i,e[17]=n,e[18]=a,e[19]=f,e[20]=c):c=e[20],u(c)}function L(r){const e=m.c(8);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=async i=>await t.callTool(i),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o={...s,mutationFn:l},e[5]=s,e[6]=l,e[7]=o):o=e[7],C(o)}export{L as a,$ as b,w as c,F as d,P as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,u as o,x as u,K as i,f as a}from"./index-
|
|
1
|
+
import{c as n,u as o,x as u,K as i,f as a}from"./index-Di6oLb1g.js";function l(){const e=n.c(4),{locator:r}=o();let t;e[0]!==r?(t=i.members(r),e[0]=r,e[1]=t):t=e[1];let s;return e[2]!==t?(s={queryKey:t,queryFn:c},e[2]=t,e[3]=s):s=e[3],u(s)}function c(){return a.organization.listMembers()}export{l as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{K as m,c as C,x as T}from"./index-
|
|
1
|
+
import{K as m,c as C,x as T}from"./index-Di6oLb1g.js";import{u as y}from"./useQuery-BrfnS-T_.js";import{u as f,a}from"./constants-kAo23sAc.js";function S(t,s){const e=C.c(13);let r;e[0]!==t?(r={connectionId:a,orgId:t},e[0]=t,e[1]=r):r=e[1];const l=f(r);let u;e[2]!==t||e[3]!==s?(u=m.project(t,s),e[2]=t,e[3]=s,e[4]=u):u=e[4];let c;e[5]!==l||e[6]!==t||e[7]!==s?(c=async()=>{const p=await l.callTool({name:"PROJECT_GET",arguments:{organizationId:t,slug:s}});return(p.structuredContent??p).project},e[5]=l,e[6]=t,e[7]=s,e[8]=c):c=e[8];const o=!!t&&!!s;let n;return e[9]!==u||e[10]!==c||e[11]!==o?(n={queryKey:u,queryFn:c,enabled:o,staleTime:3e4},e[9]=u,e[10]=c,e[11]=o,e[12]=n):n=e[12],y(n)}function _(t,s){const e=f({connectionId:a,orgId:t}),r={queryKey:m.projects(t),queryFn:async()=>{const l=await e.callTool({name:"PROJECT_LIST",arguments:{organizationId:t}});return(l.structuredContent??l).projects.map(c=>({...c,organizationId:t}))},staleTime:3e4};return s?.suspense?T(r):y({...r,enabled:!!t})}export{_ as a,S as u};
|
package/dist/client/assets/{use-store-discovery-iIFblh2E.js → use-store-discovery-Dr1RNWE5.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as X,u as ee,r as Z,K as $,H as te}from"./index-
|
|
1
|
+
import{c as X,u as ee,r as Z,K as $,H as te}from"./index-Di6oLb1g.js";import{u as oe}from"./useQuery-BrfnS-T_.js";import{u as se}from"./useInfiniteQuery-BKFOAK_4.js";import{a as re}from"./registry-utils-B2MGgFdM.js";import{u as ae}from"./constants-kAo23sAc.js";const le=24;function me(c){const e=X.c(54),{registryId:n,listToolName:u,filtersToolName:a,search:r}=c,{org:K}=ee();let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h=[],e[0]=h):h=e[0];const[o,z]=Z.useState(h);let y;e[1]===Symbol.for("react.memo_cache_sentinel")?(y=[],e[1]=y):y=e[1];const[s,U]=Z.useState(y),M=n||null;let C;e[2]!==K.id||e[3]!==M?(C={connectionId:M,orgId:K.id},e[2]=K.id,e[3]=M,e[4]=C):C=e[4];const f=ae(C),O=!!a;let g;e[5]!==a||e[6]!==n?(g=$.toolCall(n,a||"no-filters","{}"),e[5]=a,e[6]=n,e[7]=g):g=e[7];let m;e[8]!==f||e[9]!==a?(m=async()=>{if(!a)return{tags:[],categories:[]};const t=await f.callTool({name:a,arguments:{}});return t.structuredContent??t},e[8]=f,e[9]=a,e[10]=m):m=e[10];let v;e[11]!==g||e[12]!==m?(v={queryKey:g,queryFn:m,staleTime:36e5,retry:2},e[11]=g,e[12]=m,e[13]=v):v=e[13];const{data:R}=oe(v);let l,d,P;if(e[14]!==u||e[15]!==n||e[16]!==r||e[17]!==s||e[18]!==o){const t=r?.trim()?{operator:"or",conditions:[{field:["name"],operator:"contains",value:r},{field:["title"],operator:"contains",value:r},{field:["description"],operator:"contains",value:r}]}:void 0;l={limit:le,...o.length>0&&{tags:o},...s.length>0&&{categories:s},...t&&{where:t}},P=se,d=$.toolCall(n,u,JSON.stringify(l)),e[14]=u,e[15]=n,e[16]=r,e[17]=s,e[18]=o,e[19]=l,e[20]=d,e[21]=P}else l=e[19],d=e[20],P=e[21];let p;e[22]!==f||e[23]!==l||e[24]!==u?(p=async t=>{const{pageParam:W}=t,V=W?{...l,cursor:W}:l,Y=await f.callTool({name:u,arguments:V});return Y.structuredContent??Y},e[22]=f,e[23]=l,e[24]=u,e[25]=p):p=e[25];let S;e[26]!==p||e[27]!==d?(S={queryKey:d,queryFn:p,initialPageParam:void 0,getNextPageParam:ne,staleTime:36e5,placeholderData:te,retry:2},e[26]=p,e[27]=d,e[28]=S):S=e[28];const{data:x,fetchNextPage:j,hasNextPage:b,isFetchingNextPage:i,isFetching:T,isLoading:F,error:k}=P(S);let I;e:{if(!x?.pages||x.pages.length===0){I=null;break e}const t=x.pages[0];if(typeof t=="object"&&t!==null&&"totalCount"in t&&typeof t.totalCount=="number"){I=t.totalCount;break e}I=null}const w=I,L=x?.pages;let N;e[29]!==L?(N=re(L),e[29]=L,e[30]=N):N=e[30];const A=N;let _;e[31]!==r||e[32]!==s.length||e[33]!==o.length?(_=o.length>0||s.length>0||!!r?.trim(),e[31]=r,e[32]=s.length,e[33]=o.length,e[34]=_):_=e[34];const E=_,B=T&&!i&&!F&&E;let q;e[35]!==j||e[36]!==b||e[37]!==i?(q=()=>{b&&!i&&j()},e[35]=j,e[36]=b,e[37]=i,e[38]=q):q=e[38];const Q=q,G=b??!1,H=O?R?.tags:void 0,J=O?R?.categories:void 0;let D;return e[39]!==E||e[40]!==T||e[41]!==i||e[42]!==B||e[43]!==F||e[44]!==A||e[45]!==k||e[46]!==Q||e[47]!==s||e[48]!==o||e[49]!==G||e[50]!==H||e[51]!==J||e[52]!==w?(D={items:A,totalCount:w,hasMore:G,isLoadingMore:i,isFiltering:B,isInitialLoading:F,isFetching:T,error:k,loadMore:Q,availableTags:H,availableCategories:J,selectedTags:o,selectedCategories:s,setSelectedTags:z,setSelectedCategories:U,hasActiveFilters:E},e[39]=E,e[40]=T,e[41]=i,e[42]=B,e[43]=F,e[44]=A,e[45]=k,e[46]=Q,e[47]=s,e[48]=o,e[49]=G,e[50]=H,e[51]=J,e[52]=w,e[53]=D):D=e[53],D}function ne(c){if(typeof c=="object"&&c!==null){const e=c.nextCursor||c.cursor;if(e)return e}}export{me as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,r as f}from"./index-
|
|
1
|
+
import{c as p,r as f}from"./index-Di6oLb1g.js";import{u as w}from"./tooltip-Bt2vWRpT.js";function S(m,M){const e=p.c(12),u=M===void 0?"cards":M,o=w(),b=f.useRef(o),s=m?`deco-view-mode-${m}`:"deco-view-mode";let i;e[0]!==u||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:u},e[0]=u,e[1]=s,e[2]=i):i=e[2];const[t,g]=f.useState(i);let l;e[3]!==s?(l=r=>{g(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const d=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!b.current&&o&&t==="table"&&g("cards"),b.current=o},a=[o,t],e[5]=o,e[6]=t,e[7]=c,e[8]=a):(c=e[7],a=e[8]),f.useEffect(c,a);let n;return e[9]!==d||e[10]!==t?(n=[t,d],e[9]=d,e[10]=t,e[11]=n):n=e[11],n}export{S as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,u as r}from"./index-
|
|
1
|
+
import{c,u as r}from"./index-Di6oLb1g.js";import{e as a,u as C,d as I}from"./use-collections-CojcRvND.js";import{a as l,u}from"./constants-kAo23sAc.js";function m(i){const t=c.c(4);let o;t[0]!==i?(o=i===void 0?{}:i,t[0]=i,t[1]=o):o=t[1];const n=o,{org:e}=r();let s;t[2]!==e.id?(s={connectionId:l,orgId:e.id},t[2]=e.id,t[3]=s):s=t[3];const d=u(s);return a(e.id,"VIRTUAL_MCP",d,n)}function V(i){const t=c.c(2),{org:o}=r();let n;t[0]!==o.id?(n={connectionId:l,orgId:o.id},t[0]=o.id,t[1]=n):n=t[1];const e=u(n);return I(o.id,"VIRTUAL_MCP",i??void 0,e)}function p(){const i=c.c(2),{org:t}=r();let o;i[0]!==t.id?(o={connectionId:l,orgId:t.id},i[0]=t.id,i[1]=o):o=i[1];const n=u(o);return C(t.id,"VIRTUAL_MCP",n)}export{p as a,m as b,V as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as u}from"./infiniteQueryObserver-Cg7Qn-Py.js";import{T as i}from"./index-Di6oLb1g.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aV as l,aW as p,aX as n,aY as d,aZ as h,w as b,r as o,a_ as m,a$ as f}from"./index-
|
|
1
|
+
import{aV as l,aW as p,aX as n,aY as d,aZ as h,w as b,r as o,a_ as m,a$ as f}from"./index-Di6oLb1g.js";var v=class extends l{#s;#i=void 0;#t;#e;constructor(t,s){super(),this.#s=t,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const s=this.options;this.options=this.#s.defaultMutationOptions(t),p(this.options,s)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),s?.mutationKey&&this.options.mutationKey&&n(s.mutationKey)!==n(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#o()}mutate(t,s){return this.#e=s,this.#t?.removeObserver(this),this.#t=this.#s.getMutationCache().build(this.#s,this.options),this.#t.addObserver(this),this.#t.execute(t)}#r(){const t=this.#t?.state??d();this.#i={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){h.batch(()=>{if(this.#e&&this.hasListeners()){const s=this.#i.variables,i=this.#i.context,e={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#e.onSuccess?.(t.data,s,i,e),this.#e.onSettled?.(t.data,null,s,i,e)):t?.type==="error"&&(this.#e.onError?.(t.error,s,i,e),this.#e.onSettled?.(void 0,t.error,s,i,e))}this.listeners.forEach(s=>{s(this.#i)})})}};function O(t,s){const i=b(s),[e]=o.useState(()=>new v(i,t));o.useEffect(()=>{e.setOptions(t)},[e,t]);const r=o.useSyncExternalStore(o.useCallback(a=>e.subscribe(h.batchCalls(a)),[e]),()=>e.getCurrentResult(),()=>e.getCurrentResult()),u=o.useCallback((a,c)=>{e.mutate(a,c).catch(m)},[e]);if(r.error&&f(e.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:u,mutateAsync:r.mutate}}export{O as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{T as u,aB as s}from"./index-Di6oLb1g.js";function o(e,r){return u(e,s,r)}export{o as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as s}from"./infiniteQueryObserver-Cg7Qn-Py.js";import{T as u,U as n}from"./index-Di6oLb1g.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as w,u as C,K as S,D as y,j as t}from"./index-
|
|
1
|
+
import{c as w,u as C,K as S,D as y,j as t}from"./index-Di6oLb1g.js";import{A as E}from"./avatar-CahK8DWE.js";import{u as k}from"./useQuery-BrfnS-T_.js";import{a as A,u as _}from"./constants-kAo23sAc.js";function K(m){const e=w.c(11),{org:h}=C();let x;e[0]!==h.id?(x={connectionId:A,orgId:h.id},e[0]=h.id,e[1]=x):x=e[1];const u=_(x);let d;e[2]!==m?(d=S.user(m),e[2]=m,e[3]=d):d=e[3];let s;e[4]!==u||e[5]!==m?(s=async()=>{const r=await u.callTool({name:"USER_GET",arguments:{id:m}});return(r.structuredContent??r).user},e[4]=u,e[5]=m,e[6]=s):s=e[6];const l=!!m;let o;return e[7]!==d||e[8]!==s||e[9]!==l?(o={queryKey:d,queryFn:s,staleTime:3e5,retry:1,enabled:l},e[7]=d,e[8]=s,e[9]=l,e[10]=o):o=e[10],k(o)}function q(m){const e=w.c(36),{id:h,size:x,showEmail:u,avatarOnly:d,className:s}=m,l=x===void 0?"xs":x,o=u===void 0?!1:u,r=d===void 0?!1:d,{data:c,isLoading:U,isError:b}=K(h);if(U){let a;e[0]!==s?(a=y("flex items-center gap-2",s),e[0]=s,e[1]=a):a=e[1];let i;e[2]!==l?(i=t.jsx(E.Skeleton,{shape:"circle",size:l}),e[2]=l,e[3]=i):i=e[3];let n;e[4]!==r||e[5]!==o?(n=!r&&t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsx("div",{className:"h-3 w-24 bg-muted animate-pulse rounded"}),o&&t.jsx("div",{className:"h-2 w-32 bg-muted animate-pulse rounded"})]}),e[4]=r,e[5]=o,e[6]=n):n=e[6];let f;return e[7]!==a||e[8]!==i||e[9]!==n?(f=t.jsxs("div",{className:a,children:[i,n]}),e[7]=a,e[8]=i,e[9]=n,e[10]=f):f=e[10],f}if(b||!c){let a;e[11]!==s?(a=y("flex items-center gap-2",s),e[11]=s,e[12]=a):a=e[12];let i;e[13]!==l?(i=t.jsx(E,{shape:"circle",size:l,fallback:"?",muted:!0}),e[13]=l,e[14]=i):i=e[14];let n;e[15]!==r?(n=!r&&t.jsx("div",{className:"flex flex-col",children:t.jsx("div",{className:"text-sm text-muted-foreground",children:"Unknown User"})}),e[15]=r,e[16]=n):n=e[16];let f;return e[17]!==a||e[18]!==i||e[19]!==n?(f=t.jsxs("div",{className:a,children:[i,n]}),e[17]=a,e[18]=i,e[19]=n,e[20]=f):f=e[20],f}let p;e[21]!==s?(p=y("flex items-center gap-2",s),e[21]=s,e[22]=p):p=e[22];const N=c.image??void 0;let v;e[23]!==l||e[24]!==N||e[25]!==c.name?(v=t.jsx(E,{shape:"circle",size:l,url:N,fallback:c.name}),e[23]=l,e[24]=N,e[25]=c.name,e[26]=v):v=e[26];let j;e[27]!==r||e[28]!==o||e[29]!==c.email||e[30]!==c.name?(j=!r&&t.jsxs("div",{className:"flex flex-col",children:[t.jsx("div",{className:"text-sm font-medium",children:c.name}),o&&t.jsx("div",{className:"text-xs text-muted-foreground",children:c.email})]}),e[27]=r,e[28]=o,e[29]=c.email,e[30]=c.name,e[31]=j):j=e[31];let g;return e[32]!==p||e[33]!==v||e[34]!==j?(g=t.jsxs("div",{className:p,children:[v,j]}),e[32]=p,e[33]=v,e[34]=j,e[35]=g):g=e[35],g}export{q as U};
|
|
@@ -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-BjxqoU_w.js";import{u as Qe,a as Ve}from"./constants-C5g6K3-0.js";import{B as xt,g as Me}from"./generate-id-0beDKMoR.js";import{C as Ye}from"./collection-display-button-CIwF6qiP.js";import{C as jt}from"./collection-search-DmeA1lkM.js";import{C as Ct}from"./card-CoTaf7Bb.js";import{I as Xe,e as Ze,q as Ue}from"./integration-icon-C9ac9VOj.js";import{D as et,a as tt,b as st,c as L}from"./dropdown-menu-IA1w2fjK.js";import{c as ot}from"./Play-Q9uDVIa5.js";import{i as it,s as nt}from"./RefreshCcw01-nS96T2bf.js";import{s as rt}from"./Trash01-CzfVJZjl.js";import{C as bt}from"./collection-table-wrapper-DZ9kkHHz.js";import{E as We}from"./empty-state-DnJSxmJA.js";import{U as yt}from"./user-BtGr8jKI.js";import{E as lt}from"./empty-state-hwIP0sm6.js";import{u as vt}from"./use-list-state-BpX2jytt.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-CIdU20ao.js";import{u as Et,e as Ot}from"./use-collections-Zp8eOwPm.js";import{u as $t}from"./use-connection-B-vgK3kN.js";import{s as kt}from"./Plus-DcUxQQXw.js";import{a as Lt}from"./layout-CYi_63K3.js";import{u as zt}from"./useMutation-oWI4nFQG.js";import{P as k}from"./index-Be3yjubl.js";import{B as Be,a as Re,b as He,c as qe}from"./breadcrumb-DNInqlES.js";import{e as Ft}from"./Dataflow03-q5kzWw4s.js";import"./ArrowUp-BrSLqvQo.js";import"./Check-CVKUMJv3.js";import"./Grid01-CbgVFQNg.js";import"./List-D35z7ORx.js";import"./tooltip-SqkLa6wk.js";import"./index-VZp2CIbR.js";import"./badge-BIY4HSu4.js";import"./Loading01-DDv5lfhX.js";import"./SearchMd-CTpXH6F3.js";import"./input-Be0bLLQW.js";import"./Container-D4n2e11R.js";import"./AlertCircle-Hpsw9_tf.js";import"./ArrowLeft-U7OUoBhv.js";import"./XCircle-DI9HiD4A.js";import"./Type01-BwsSTKh1.js";import"./ChevronDown-Ds3IOx8p.js";import"./ChevronRight-CTHCKnjF.js";import"./ChevronUp-DJbt-mXd.js";import"./Download01-BBRbjA11.js";import"./VideoRecorder-0-qQusnp.js";import"./FolderClosed-CgbAGtho.js";import"./Settings01-BVY96Vsg.js";import"./Upload01-Bn_9d04P.js";import"./User01-Dl4j8Eui.js";import"./XClose-Bw5018RM.js";import"./X-DvXlEl9E.js";import"./Zap-DGbTVlYq.js";import"./table-C915-j5j.js";import"./avatar-Dz9Au16I.js";import"./useQuery-CmP1G4DA.js";import"./use-view-mode-BBlaOBUn.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:Wt,children:t.jsx(it,{size:20})})}),t.jsxs(st,{align:"end",onClick:Ut,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(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"],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(We,{icon:t.jsx(Ue,{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(We,{icon:t.jsx(Ue,{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(yt,{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??xt,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}=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&&!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 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]!==i?(W=i&&{delete:dt},e[28]=i,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]!==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(jt,{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="workflows",ns={name:"WORKFLOW",displayName:"Workflow",hasCreateTool:!0,hasUpdateTool:!0,hasDeleteTool:!0};function uo(){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{uo 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-Di6oLb1g.js";import{u as Qe,a as Ve}from"./constants-kAo23sAc.js";import{B as xt,g as Me}from"./generate-id-B0hqIne-.js";import{C as Ye}from"./collection-display-button-BTy8OMGo.js";import{C as jt}from"./collection-search-BaA_5hnO.js";import{C as Ct}from"./card-BkMKAjKJ.js";import{I as Xe,e as Ze,q as Ue}from"./integration-icon-DlCg0T4C.js";import{D as et,a as tt,b as st,c as L}from"./dropdown-menu-KiFp7XSX.js";import{c as ot}from"./Play-CCpyKlpN.js";import{i as it,s as nt}from"./RefreshCcw01-Cu6svfY5.js";import{s as rt}from"./Trash01-Cv31wiMP.js";import{C as bt}from"./collection-table-wrapper-CeDvXZ6e.js";import{E as We}from"./empty-state-BclY67WC.js";import{U as yt}from"./user-BdXDOTfV.js";import{E as lt}from"./empty-state-UToLDOJO.js";import{u as vt}from"./use-list-state-Bp_aU4BI.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-DnwDlp7T.js";import{u as Et,e as Ot}from"./use-collections-CojcRvND.js";import{u as $t}from"./use-connection-CJIltDo3.js";import{s as kt}from"./Plus-D9CNWrFQ.js";import{a as Lt}from"./layout-DtwUtGx0.js";import{u as zt}from"./useMutation-BOcaN318.js";import{P as k}from"./index-B3DLUye8.js";import{B as Be,a as Re,b as He,c as qe}from"./breadcrumb-DBLmG8ET.js";import{e as Ft}from"./Dataflow03-BcXlVxgR.js";import"./ArrowUp-CpDF-NAu.js";import"./Check-CecxQkQE.js";import"./Grid01-CLnEHof5.js";import"./List-CnkQuVUq.js";import"./tooltip-Bt2vWRpT.js";import"./index-C45O1mgu.js";import"./badge-a1yIqkX1.js";import"./Loading01-ZUH_hVSq.js";import"./SearchMd-BH_J7-7p.js";import"./input-DQ4QcwHR.js";import"./Container-sfWYtc36.js";import"./AlertCircle-D2rRA9CS.js";import"./ArrowLeft-D4bkD9qi.js";import"./XCircle-BEC1SvTX.js";import"./Type01-BRLQyycA.js";import"./ChevronDown-Cm9SuGtV.js";import"./ChevronRight-2xVQHhsF.js";import"./ChevronUp-B6bu9ZD3.js";import"./Download01-DGSbxmSo.js";import"./VideoRecorder-CqjZf9cg.js";import"./FolderClosed-DlY-lqwP.js";import"./Settings01-DTaoTYj1.js";import"./Upload01-BY6Noksk.js";import"./User01-BloSEKZw.js";import"./XClose-BzyTilGE.js";import"./X-1dO_8PIJ.js";import"./Zap-D6SUOiFY.js";import"./table-BtUXt-LB.js";import"./avatar-CahK8DWE.js";import"./useQuery-BrfnS-T_.js";import"./use-view-mode-DNywUlq7.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:Wt,children:t.jsx(it,{size:20})})}),t.jsxs(st,{align:"end",onClick:Ut,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(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"],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(We,{icon:t.jsx(Ue,{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(We,{icon:t.jsx(Ue,{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(yt,{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??xt,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}=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&&!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 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]!==i?(W=i&&{delete:dt},e[28]=i,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]!==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(jt,{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="workflows",ns={name:"WORKFLOW",displayName:"Workflow",hasCreateTool:!0,hasUpdateTool:!0,hasDeleteTool:!0};function uo(){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{uo 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-Di6oLb1g.js"></script>
|
|
17
17
|
<link rel="stylesheet" crossorigin href="/assets/index-j1ZaalMw.css">
|
|
18
18
|
</head>
|
|
19
19
|
<body>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"maxdepth": 4,
|
|
3
|
+
"maxstatements": 200,
|
|
4
|
+
"maxcomplexity": 12,
|
|
5
|
+
"maxlen": 80,
|
|
6
|
+
"maxparams": 5,
|
|
7
|
+
|
|
8
|
+
"curly": true,
|
|
9
|
+
"eqeqeq": true,
|
|
10
|
+
"immed": true,
|
|
11
|
+
"latedef": false,
|
|
12
|
+
"noarg": true,
|
|
13
|
+
"noempty": true,
|
|
14
|
+
"nonew": true,
|
|
15
|
+
"undef": true,
|
|
16
|
+
"unused": "vars",
|
|
17
|
+
"trailing": true,
|
|
18
|
+
|
|
19
|
+
"quotmark": true,
|
|
20
|
+
"expr": true,
|
|
21
|
+
"asi": true,
|
|
22
|
+
|
|
23
|
+
"browser": false,
|
|
24
|
+
"esnext": true,
|
|
25
|
+
"devel": false,
|
|
26
|
+
"node": false,
|
|
27
|
+
"nonstandard": false,
|
|
28
|
+
|
|
29
|
+
"predef": ["require", "module", "__dirname", "__filename"]
|
|
30
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) Ben Drucker <bvdrucker@gmail.com> (bendrucker.me)
|
|
2
|
+
Copyright (c) 2012-2014 Raynos.
|
|
4
3
|
|
|
5
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
5
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# xtend
|
|
2
|
+
|
|
3
|
+
[![browser support][3]][4]
|
|
4
|
+
|
|
5
|
+
[](http://github.com/badges/stability-badges)
|
|
6
|
+
|
|
7
|
+
Extend like a boss
|
|
8
|
+
|
|
9
|
+
xtend is a basic utility library which allows you to extend an object by appending all of the properties from each object in a list. When there are identical properties, the right-most property takes precedence.
|
|
10
|
+
|
|
11
|
+
## Examples
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
var extend = require("xtend")
|
|
15
|
+
|
|
16
|
+
// extend returns a new object. Does not mutate arguments
|
|
17
|
+
var combination = extend({
|
|
18
|
+
a: "a",
|
|
19
|
+
b: "c"
|
|
20
|
+
}, {
|
|
21
|
+
b: "b"
|
|
22
|
+
})
|
|
23
|
+
// { a: "a", b: "b" }
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Stability status: Locked
|
|
27
|
+
|
|
28
|
+
## MIT Licensed
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
[3]: http://ci.testling.com/Raynos/xtend.png
|
|
32
|
+
[4]: http://ci.testling.com/Raynos/xtend
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module.exports = extend
|
|
2
|
+
|
|
3
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
4
|
+
|
|
5
|
+
function extend() {
|
|
6
|
+
var target = {}
|
|
7
|
+
|
|
8
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
9
|
+
var source = arguments[i]
|
|
10
|
+
|
|
11
|
+
for (var key in source) {
|
|
12
|
+
if (hasOwnProperty.call(source, key)) {
|
|
13
|
+
target[key] = source[key]
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
return target
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module.exports = extend
|
|
2
|
+
|
|
3
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
4
|
+
|
|
5
|
+
function extend(target) {
|
|
6
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
7
|
+
var source = arguments[i]
|
|
8
|
+
|
|
9
|
+
for (var key in source) {
|
|
10
|
+
if (hasOwnProperty.call(source, key)) {
|
|
11
|
+
target[key] = source[key]
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
return target
|
|
17
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "xtend",
|
|
3
|
+
"version": "4.0.2",
|
|
4
|
+
"description": "extend like a boss",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"extend",
|
|
7
|
+
"merge",
|
|
8
|
+
"options",
|
|
9
|
+
"opts",
|
|
10
|
+
"object",
|
|
11
|
+
"array"
|
|
12
|
+
],
|
|
13
|
+
"author": "Raynos <raynos2@gmail.com>",
|
|
14
|
+
"repository": "git://github.com/Raynos/xtend.git",
|
|
15
|
+
"main": "immutable",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"test": "node test"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"tape": "~1.1.0"
|
|
22
|
+
},
|
|
23
|
+
"homepage": "https://github.com/Raynos/xtend",
|
|
24
|
+
"contributors": [
|
|
25
|
+
{
|
|
26
|
+
"name": "Jake Verbaten"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "Matt Esch"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/Raynos/xtend/issues",
|
|
34
|
+
"email": "raynos2@gmail.com"
|
|
35
|
+
},
|
|
36
|
+
"license": "MIT",
|
|
37
|
+
"testling": {
|
|
38
|
+
"files": "test.js",
|
|
39
|
+
"browsers": [
|
|
40
|
+
"ie/7..latest",
|
|
41
|
+
"firefox/16..latest",
|
|
42
|
+
"firefox/nightly",
|
|
43
|
+
"chrome/22..latest",
|
|
44
|
+
"chrome/canary",
|
|
45
|
+
"opera/12..latest",
|
|
46
|
+
"opera/next",
|
|
47
|
+
"safari/5.1..latest",
|
|
48
|
+
"ipad/6.0..latest",
|
|
49
|
+
"iphone/6.0..latest"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"engines": {
|
|
53
|
+
"node": ">=0.4"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
var test = require("tape")
|
|
2
|
+
var extend = require("./")
|
|
3
|
+
var mutableExtend = require("./mutable")
|
|
4
|
+
|
|
5
|
+
test("merge", function(assert) {
|
|
6
|
+
var a = { a: "foo" }
|
|
7
|
+
var b = { b: "bar" }
|
|
8
|
+
|
|
9
|
+
assert.deepEqual(extend(a, b), { a: "foo", b: "bar" })
|
|
10
|
+
assert.end()
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
test("replace", function(assert) {
|
|
14
|
+
var a = { a: "foo" }
|
|
15
|
+
var b = { a: "bar" }
|
|
16
|
+
|
|
17
|
+
assert.deepEqual(extend(a, b), { a: "bar" })
|
|
18
|
+
assert.end()
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
test("undefined", function(assert) {
|
|
22
|
+
var a = { a: undefined }
|
|
23
|
+
var b = { b: "foo" }
|
|
24
|
+
|
|
25
|
+
assert.deepEqual(extend(a, b), { a: undefined, b: "foo" })
|
|
26
|
+
assert.deepEqual(extend(b, a), { a: undefined, b: "foo" })
|
|
27
|
+
assert.end()
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
test("handle 0", function(assert) {
|
|
31
|
+
var a = { a: "default" }
|
|
32
|
+
var b = { a: 0 }
|
|
33
|
+
|
|
34
|
+
assert.deepEqual(extend(a, b), { a: 0 })
|
|
35
|
+
assert.deepEqual(extend(b, a), { a: "default" })
|
|
36
|
+
assert.end()
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
test("is immutable", function (assert) {
|
|
40
|
+
var record = {}
|
|
41
|
+
|
|
42
|
+
extend(record, { foo: "bar" })
|
|
43
|
+
assert.equal(record.foo, undefined)
|
|
44
|
+
assert.end()
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
test("null as argument", function (assert) {
|
|
48
|
+
var a = { foo: "bar" }
|
|
49
|
+
var b = null
|
|
50
|
+
var c = void 0
|
|
51
|
+
|
|
52
|
+
assert.deepEqual(extend(b, a, c), { foo: "bar" })
|
|
53
|
+
assert.end()
|
|
54
|
+
})
|
|
55
|
+
|
|
56
|
+
test("mutable", function (assert) {
|
|
57
|
+
var a = { foo: "bar" }
|
|
58
|
+
|
|
59
|
+
mutableExtend(a, { bar: "baz" })
|
|
60
|
+
|
|
61
|
+
assert.equal(a.bar, "baz")
|
|
62
|
+
assert.end()
|
|
63
|
+
})
|
|
64
|
+
|
|
65
|
+
test("null prototype", function(assert) {
|
|
66
|
+
var a = { a: "foo" }
|
|
67
|
+
var b = Object.create(null)
|
|
68
|
+
b.b = "bar";
|
|
69
|
+
|
|
70
|
+
assert.deepEqual(extend(a, b), { a: "foo", b: "bar" })
|
|
71
|
+
assert.end()
|
|
72
|
+
})
|
|
73
|
+
|
|
74
|
+
test("null prototype mutable", function (assert) {
|
|
75
|
+
var a = { foo: "bar" }
|
|
76
|
+
var b = Object.create(null)
|
|
77
|
+
b.bar = "baz";
|
|
78
|
+
|
|
79
|
+
mutableExtend(a, b)
|
|
80
|
+
|
|
81
|
+
assert.equal(a.bar, "baz")
|
|
82
|
+
assert.end()
|
|
83
|
+
})
|
|
84
|
+
|
|
85
|
+
test("prototype pollution", function (assert) {
|
|
86
|
+
var a = {}
|
|
87
|
+
var maliciousPayload = '{"__proto__":{"oops":"It works!"}}'
|
|
88
|
+
|
|
89
|
+
assert.strictEqual(a.oops, undefined)
|
|
90
|
+
extend({}, maliciousPayload)
|
|
91
|
+
assert.strictEqual(a.oops, undefined)
|
|
92
|
+
assert.end()
|
|
93
|
+
})
|
|
94
|
+
|
|
95
|
+
test("prototype pollution mutable", function (assert) {
|
|
96
|
+
var a = {}
|
|
97
|
+
var maliciousPayload = '{"__proto__":{"oops":"It works!"}}'
|
|
98
|
+
|
|
99
|
+
assert.strictEqual(a.oops, undefined)
|
|
100
|
+
mutableExtend({}, maliciousPayload)
|
|
101
|
+
assert.strictEqual(a.oops, undefined)
|
|
102
|
+
assert.end()
|
|
103
|
+
})
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as r,j as i}from"./index-BjxqoU_w.js";import{P as m}from"./project-plugins-B2zBuBKC.js";import"./useQuery-CmP1G4DA.js";import"./useMutation-oWI4nFQG.js";import"./constants-C5g6K3-0.js";import"./switch-CG6Wlm7Y.js";import"./label-C6smVCIk.js";import"./Container-D4n2e11R.js";import"./use-connection-B-vgK3kN.js";import"./use-collections-Zp8eOwPm.js";import"./registry-utils-CVkiAvdy.js";import"./binder-DaeU7_Yt.js";import"./use-install-from-registry-BWF2XusE.js";import"./extract-connection-data-D13QyL30.js";import"./generate-id-0beDKMoR.js";import"./Loading01-DDv5lfhX.js";import"./Plus-DcUxQQXw.js";import"./select-VEJvYQo7.js";import"./index-BdQq_4o_.js";import"./index-VZp2CIbR.js";import"./Check-CVKUMJv3.js";import"./ChevronDown-Ds3IOx8p.js";import"./ChevronUp-DJbt-mXd.js";function q(){const o=r.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(m,{}),o[0]=t):t=o[0],t}export{q as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as n,j as r,E as d,r as f,u as x,e as j}from"./index-BjxqoU_w.js";import{T as h}from"./tasks-panel-j-1pM09U.js";import{P as p}from"./index-Be3yjubl.js";import{B as g,a as b,b as T,c as k}from"./breadcrumb-DNInqlES.js";import{i as B}from"./Loading01-DDv5lfhX.js";import{u as S}from"./context-0-m5aPvK.js";import"./task-status-DwSGaLCq.js";import"./popover-Dn0X9Fr1.js";import"./skeleton-HKYMRn58.js";import"./spinner-BFdTwge6.js";import"./tooltip-SqkLa6wk.js";import"./index-VZp2CIbR.js";import"./constants-C5g6K3-0.js";import"./use-mcp-prompts-qi4FHPHh.js";import"./useQuery-CmP1G4DA.js";import"./dialog-Beaz2erB.js";import"./X-DvXlEl9E.js";import"./form-CccEC3cm.js";import"./label-C6smVCIk.js";import"./input-Be0bLLQW.js";import"./index-DsV3YD3P.js";import"./usage-BW6ztpN6.js";import"./integration-icon-C9ac9VOj.js";import"./Container-D4n2e11R.js";import"./AlertCircle-Hpsw9_tf.js";import"./ArrowUp-BrSLqvQo.js";import"./ArrowLeft-U7OUoBhv.js";import"./XCircle-DI9HiD4A.js";import"./Type01-BwsSTKh1.js";import"./Check-CVKUMJv3.js";import"./ChevronDown-Ds3IOx8p.js";import"./ChevronRight-CTHCKnjF.js";import"./ChevronUp-DJbt-mXd.js";import"./RefreshCcw01-nS96T2bf.js";import"./Play-Q9uDVIa5.js";import"./Dataflow03-q5kzWw4s.js";import"./Download01-BBRbjA11.js";import"./List-D35z7ORx.js";import"./VideoRecorder-0-qQusnp.js";import"./FolderClosed-CgbAGtho.js";import"./Grid01-CbgVFQNg.js";import"./Plus-DcUxQQXw.js";import"./SearchMd-CTpXH6F3.js";import"./Settings01-BVY96Vsg.js";import"./Trash01-CzfVJZjl.js";import"./Upload01-Bn_9d04P.js";import"./User01-Dl4j8Eui.js";import"./XClose-Bw5018RM.js";import"./Zap-DGbTVlYq.js";import"./org-ai-providers-UG6FIdxB.js";import"./useMutation-oWI4nFQG.js";import"./card-CoTaf7Bb.js";import"./toggle-group-D3jOZx6Z.js";import"./avatar-Dz9Au16I.js";import"./ai-providers-logos-BtOy-_hY.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./select-VEJvYQo7.js";import"./index-BdQq_4o_.js";import"./use-copy-Bor2cPit.js";import"./marked.esm-BaswSlok.js";import"./tabs-EJf8mrdN.js";import"./checkbox-UWf_Spym.js";import"./drawer-DuM10S-O.js";import"./select-virtual-mcp-BVFbfMoH.js";import"./use-virtual-mcp-BnUWdVw5.js";import"./use-collections-Zp8eOwPm.js";import"./use-create-virtual-mcp-DLLVUJBK.js";import"./use-mcp-resources-B8ERGBbF.js";import"./collapsible-DGsDf05s.js";import"./index-BfJLXP0j.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BWF6RI84.js";import"./types-CdHbWvSx.js";import"./useSuspenseInfiniteQuery-4eRk30PP.js";import"./infiniteQueryObserver-C0OPB4rx.js";import"./collection-search-DmeA1lkM.js";import"./user-BtGr8jKI.js";import"./format-time-CMKyl-GC.js";import"./empty-state-hwIP0sm6.js";import"./dropdown-menu-IA1w2fjK.js";import"./decopilot-events-Brt4gAR6.js";import"./index-DQTOgFOw.js";function v(){const t=n.c(8),{org:o,project:s}=x(),a=j(),{switchToTask:c}=S();let i;t[0]!==a||t[1]!==o.slug||t[2]!==s.slug||t[3]!==c?(i=async u=>{await c(u),a({to:"/$org/$project",params:{org:o.slug,project:s.slug}})},t[0]=a,t[1]=o.slug,t[2]=s.slug,t[3]=c,t[4]=i):i=t[4];const l=i;let m;t[5]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(p.Header,{children:r.jsx(p.Header.Left,{children:r.jsx(g,{children:r.jsx(b,{children:r.jsx(T,{children:r.jsx(k,{children:"Tasks"})})})})})}),t[5]=m):m=t[5];let e;return t[6]!==l?(e=r.jsxs(p,{children:[m,r.jsx(p.Content,{children:r.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:r.jsx(h,{onTaskSelect:l})})})]}),t[6]=l,t[7]=e):e=t[7],e}function tr(){const t=n.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(d,{children:r.jsx(f.Suspense,{fallback:r.jsx("div",{className:"flex h-full items-center justify-center",children:r.jsx(B,{size:32,className:"animate-spin text-muted-foreground"})}),children:r.jsx(v,{})})}),t[0]=o):o=t[0],o}export{tr as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-C0OPB4rx.js";import{T as i}from"./index-BjxqoU_w.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as u,aB as s}from"./index-BjxqoU_w.js";function o(e,r){return u(e,s,r)}export{o as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-C0OPB4rx.js";import{T as u,U as n}from"./index-BjxqoU_w.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|