decocms 2.172.2 → 2.173.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-ClrGTaOd.js → AlertCircle-BoncS6LP.js} +1 -1
- package/dist/client/assets/{AlignLeft-CDH2kHzq.js → AlignLeft-DBFp0-N7.js} +1 -1
- package/dist/client/assets/{ArrowDown-DlYdW6Y7.js → ArrowDown-C3BzPPYX.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DusSg6k7.js → ArrowLeft-BJzvklmo.js} +1 -1
- package/dist/client/assets/{ArrowUp-BadPbvy3.js → ArrowUp-C6T9wa52.js} +1 -1
- package/dist/client/assets/{Check-D47qqsWi.js → Check-D28ZRrsv.js} +1 -1
- package/dist/client/assets/{CheckCircle-CM5PTjhy.js → CheckCircle-ItsEMznk.js} +1 -1
- package/dist/client/assets/{CheckDone01-DU8levxk.js → CheckDone01-Cc3wOEJd.js} +1 -1
- package/dist/client/assets/{CheckVerified02-CACpEsSD.js → CheckVerified02-Dvd1EdLV.js} +1 -1
- package/dist/client/assets/{ChevronDown-CmFoa-MN.js → ChevronDown-D9EMTJdI.js} +1 -1
- package/dist/client/assets/{ChevronLeft-BBZtRY0q.js → ChevronLeft-6LF5odkw.js} +1 -1
- package/dist/client/assets/{ChevronRight-Ccc_Sjed.js → ChevronRight-6oHy3GR0.js} +1 -1
- package/dist/client/assets/{ChevronUp-JcxjaYTK.js → ChevronUp-iKqBRKww.js} +1 -1
- package/dist/client/assets/{Clock-DvBllXAe.js → Clock-DKgv7FMl.js} +1 -1
- package/dist/client/assets/{Code01-D384qtrJ.js → Code01-D874vQ1j.js} +1 -1
- package/dist/client/assets/{Coins01-q-yLaV-s.js → Coins01-CHKCanND.js} +1 -1
- package/dist/client/assets/{Container-BgIU6bWo.js → Container-v7Lu1WNT.js} +1 -1
- package/dist/client/assets/{Copy01-sKED-vLj.js → Copy01-D3an2EO3.js} +1 -1
- package/dist/client/assets/{Dataflow03-D3htYp-N.js → Dataflow03-C1gtqNGI.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-azkhUMft.js → DotsHorizontal-BUWy0q6M.js} +1 -1
- package/dist/client/assets/{DotsVertical-Dt48o-Bq.js → DotsVertical-teVTiLQ2.js} +1 -1
- package/dist/client/assets/{Download01-Dp-HI0LA.js → Download01-DFr_zgIP.js} +1 -1
- package/dist/client/assets/{Edit01-C-PQ-7gV.js → Edit01-BIu4og98.js} +1 -1
- package/dist/client/assets/{Edit05-CTabXUvX.js → Edit05-hkZ8uhSL.js} +1 -1
- package/dist/client/assets/{Eye-BeIr8Vzd.js → Eye-BKxgN9Ci.js} +1 -1
- package/dist/client/assets/{EyeOff-Du1k40Nm.js → EyeOff-CAEuyJy8.js} +1 -1
- package/dist/client/assets/{File02-Bo9eFHTr.js → File02-Cpr-39PX.js} +1 -1
- package/dist/client/assets/{File06-BMW8ao_w.js → File06-9lDkVwq5.js} +1 -1
- package/dist/client/assets/{FilterLines-DqaELPn1.js → FilterLines-DBXa2xhp.js} +1 -1
- package/dist/client/assets/{Globe01-ISMTzK2m.js → Globe01-Dzq2G0hT.js} +1 -1
- package/dist/client/assets/{Globe02-BY9KQM8G.js → Globe02-cnnmW-yP.js} +1 -1
- package/dist/client/assets/{Grid01-kGaUg_cc.js → Grid01-B8Hz8XFZ.js} +1 -1
- package/dist/client/assets/{Hash02-DDXDI8ry.js → Hash02-CQioUpKU.js} +1 -1
- package/dist/client/assets/{Home02-BJ1pwYUW.js → Home02-Dhg6fiem.js} +1 -1
- package/dist/client/assets/{Image01-D1cm-3FQ.js → Image01-exfB-slY.js} +1 -1
- package/dist/client/assets/{Inbox01-BEwYpwmE.js → Inbox01-Bw2rff6F.js} +1 -1
- package/dist/client/assets/{InfoCircle-Cn8apf8U.js → InfoCircle-BzkuJise.js} +1 -1
- package/dist/client/assets/{Key01-CEedyU25.js → Key01-echsPc8T.js} +1 -1
- package/dist/client/assets/{LayersTwo01-BTT9GgdG.js → LayersTwo01-HSSB0HBk.js} +1 -1
- package/dist/client/assets/{LayoutLeft-bKrytFeq.js → LayoutLeft-CsdSAGAc.js} +1 -1
- package/dist/client/assets/{Link01-C_y_eRnq.js → Link01-DqBjIV11.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Cjuepk2Y.js → LinkExternal01-BiHdSj-G.js} +1 -1
- package/dist/client/assets/{List-Bz4PLQWX.js → List-CCSmMits.js} +1 -1
- package/dist/client/assets/{Loading01-Ds_yIlBt.js → Loading01-R4lTIOmc.js} +1 -1
- package/dist/client/assets/{Lock01-r4p0TJqu.js → Lock01-BtcVHLM1.js} +1 -1
- package/dist/client/assets/{Play-Btzdao8L.js → Play-CeCy0kkp.js} +1 -1
- package/dist/client/assets/{Plus-Cln26t9k.js → Plus-BPhP6AwU.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-B05f0aP-.js → RefreshCcw01-BpP2wWfT.js} +1 -1
- package/dist/client/assets/{Save01-BanXz4II.js → Save01-Go0UNRDT.js} +1 -1
- package/dist/client/assets/{SearchMd-C32DAy1s.js → SearchMd-DYtqpNhS.js} +1 -1
- package/dist/client/assets/{Settings01-C0PXfLqi.js → Settings01-DLXMaJiZ.js} +1 -1
- package/dist/client/assets/{Shield01-CCHp_zdi.js → Shield01-BPEMPVyT.js} +1 -1
- package/dist/client/assets/{Terminal-DcTm6ji-.js → Terminal-DvdwlySH.js} +1 -1
- package/dist/client/assets/{Trash01-DK1y3dZk.js → Trash01-11PM8hCT.js} +1 -1
- package/dist/client/assets/{Upload01-D2MbAzFl.js → Upload01-s0dK95gX.js} +1 -1
- package/dist/client/assets/{Users03-Ch2G4iRo.js → Users03-Bn5Ina1h.js} +1 -1
- package/dist/client/assets/{X-BeNP8bdc.js → X-C1gVOX-K.js} +1 -1
- package/dist/client/assets/{XCircle-C4Z1TBLP.js → XCircle-D_WssbjQ.js} +1 -1
- package/dist/client/assets/{XClose-ByRUZPAd.js → XClose-CzgfsXpl.js} +1 -1
- package/dist/client/assets/{Zap-BdI1rdNQ.js → Zap-rjtLs8AB.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-B3lSJXbc.js → agent-connections-preview-B2zSeYmN.js} +1 -1
- package/dist/client/assets/{agent-detail-BE2wTwjO.js → agent-detail-C1YSF6Hq.js} +1 -1
- package/dist/client/assets/{agents-v7yFskYw.js → agents-DXzQUsKT.js} +1 -1
- package/dist/client/assets/{alert-dialog-BzmriYXD.js → alert-dialog-wQYrtq_g.js} +1 -1
- package/dist/client/assets/{auth-catchall-Cn7HOage.js → auth-catchall-BZlDikmp.js} +1 -1
- package/dist/client/assets/{automation-detail-3dPYUMP4.js → automation-detail-PwcSF1F0.js} +1 -1
- package/dist/client/assets/{automations-ByAliss3.js → automations-CTICk2Dp.js} +1 -1
- package/dist/client/assets/{avatar-VLsj4w_k.js → avatar-XKo1hvHY.js} +1 -1
- package/dist/client/assets/{badge-CQLalkEE.js → badge-BEyO0T03.js} +1 -1
- package/dist/client/assets/{binder-BCOcjrHc.js → binder-D-EP4Rws.js} +1 -1
- package/dist/client/assets/{breadcrumb-CtHpt1Hj.js → breadcrumb-BSZlBaPP.js} +1 -1
- package/dist/client/assets/{card-Dg8bSF1g.js → card-Cq808vu1.js} +1 -1
- package/dist/client/assets/{chart-CIIYUfQq.js → chart-DNqGB3ic.js} +1 -1
- package/dist/client/assets/{checkbox-5OPx-kaV.js → checkbox-D1_FXNWD.js} +1 -1
- package/dist/client/assets/{collapsible-DLZfoTEM.js → collapsible-wDXCk9xP.js} +1 -1
- package/dist/client/assets/{collection-detail-Bb3JCZHo.js → collection-detail-CsiVX8xV.js} +1 -1
- package/dist/client/assets/{collection-display-button-DV49rNbI.js → collection-display-button-yOA8wYm8.js} +1 -1
- package/dist/client/assets/{collection-search-BHtDjvQL.js → collection-search-C0Xdyimh.js} +1 -1
- package/dist/client/assets/{collection-tab-C9b9XvN2.js → collection-tab-C4posZLi.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BgavezLW.js → collection-table-wrapper-BjxWZ4Q4.js} +1 -1
- package/dist/client/assets/{collection-tabs-DMmhv_1g.js → collection-tabs-Bdn3rWHw.js} +1 -1
- package/dist/client/assets/{command-DDZ63V3H.js → command-BO0v9Sf_.js} +1 -1
- package/dist/client/assets/{connect-DVhMOx8A.js → connect-DFz_0Mcc.js} +1 -1
- package/dist/client/assets/{connection-card-B8Ku_xnQ.js → connection-card-Iw1tldfy.js} +1 -1
- package/dist/client/assets/{connection-detail-CRo734HG.js → connection-detail-BX76SiPq.js} +1 -1
- package/dist/client/assets/{connection-status-CHkDe4eX.js → connection-status-BPCtNzAX.js} +1 -1
- package/dist/client/assets/{connections-CcoPNKjM.js → connections-Dzct8UZO.js} +1 -1
- package/dist/client/assets/{constants-m_OMiYqO.js → constants-BJq0sg2N.js} +1 -1
- package/dist/client/assets/constants-CYoMn_-y.js +1 -0
- package/dist/client/assets/{context-CcNCVCjQ.js → context-30W0NRWC.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DI-d1926.js → create-organization-dialog-qEzwR9y0.js} +1 -1
- package/dist/client/assets/{create-project-dialog-DCdoTB_M.js → create-project-dialog-CL4W5SGR.js} +1 -1
- package/dist/client/assets/{danger-BxsYXYff.js → danger-C5I4O3c5.js} +1 -1
- package/dist/client/assets/{danger-zone-CtWw91XF.js → danger-zone-BRN9nPUd.js} +1 -1
- package/dist/client/assets/{dependencies-Bqe9XWvV.js → dependencies-BMgtEL4Y.js} +1 -1
- package/dist/client/assets/{dialog-CYxmdCAY.js → dialog-DtQJmLgU.js} +1 -1
- package/dist/client/assets/{dropdown-menu-B2-TC2ID.js → dropdown-menu-Dh14MX71.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-B179FmFO.js → dynamic-plugin-layout-BgreQ4An.js} +1 -1
- package/dist/client/assets/{editable-task-title-CboTctFV.js → editable-task-title-aeTfEW-D.js} +1 -1
- package/dist/client/assets/{empty-state-QAJJHSPh.js → empty-state-ChTznqc5.js} +1 -1
- package/dist/client/assets/{empty-state-DyAFrOdp.js → empty-state-DehivavO.js} +1 -1
- package/dist/client/assets/{env-vars-editor-C3IuaF3S.js → env-vars-editor-DuCm8QB_.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Cir4onx8.js → extract-connection-data-is00SRVb.js} +1 -1
- package/dist/client/assets/{file-browser-B3Xjj9S3.js → file-browser-BGVmEICO.js} +2 -2
- package/dist/client/assets/{form-BD_Oipqm.js → form-AwZCFVNc.js} +1 -1
- package/dist/client/assets/{general-CYb7i3K7.js → general-FbFo9Qid.js} +1 -1
- package/dist/client/assets/{grid-view-sbwQx6r5.js → grid-view-BqKnb9Io.js} +1 -1
- package/dist/client/assets/{home-B_gsL057.js → home-B--5foK8.js} +1 -1
- package/dist/client/assets/{icon-picker-BRNi8Awo.js → icon-picker-DIH_A1bl.js} +1 -1
- package/dist/client/assets/{index-Bs1-6MBJ.js → index--v47KjFS.js} +3 -3
- package/dist/client/assets/{index-Brmwx3QP.js → index-23ha-EiC.js} +1 -1
- package/dist/client/assets/{index-BCllOtlC.js → index-B67pQy0t.js} +1 -1
- package/dist/client/assets/{index-Dnjtu_kb.js → index-C1rNFCdf.js} +1 -1
- package/dist/client/assets/{index-DB_UqrMB.js → index-CRBE07YF.js} +1 -1
- package/dist/client/assets/{index-CvQBntDd.js → index-CUQZow0Z.js} +1 -1
- package/dist/client/assets/{index-CqNVEhLV.js → index-DLQk7Ahb.js} +1 -1
- package/dist/client/assets/{index-Cta5OAsO.css → index-DmrxmdhV.css} +1 -1
- package/dist/client/assets/{index-Cy5NxMqm.js → index-DnEhhRJ4.js} +1 -1
- package/dist/client/assets/{index-BDDekZH-.js → index-DrRz1QdK.js} +1 -1
- package/dist/client/assets/{index-DJ850qZq.js → index-oFBA5kHq.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BCxJZiPx.js → infiniteQueryObserver-Bv6Q8uee.js} +1 -1
- package/dist/client/assets/{input-oo9dNDtJ.js → input-B43ueF_6.js} +1 -1
- package/dist/client/assets/{integration-icon-BxDprz4-.js → integration-icon-jSV9a6uH.js} +1 -1
- package/dist/client/assets/{label-Ow7deF1V.js → label-Bp2-MH_v.js} +1 -1
- package/dist/client/assets/{layout-D-gNHDgT.js → layout-CHhBOues.js} +1 -1
- package/dist/client/assets/{layout-0-CpWJ4q.js → layout-ChV6hmvw.js} +1 -1
- package/dist/client/assets/{login-DMiDY1PH.js → login-DujtqNSP.js} +1 -1
- package/dist/client/assets/{logo-upload-DGm5nNR_.js → logo-upload-CFiX7Ocr.js} +1 -1
- package/dist/client/assets/{markdown-CC_Pgtlw.js → markdown-CHm0rLGk.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-eiwTuNJm.js → mcp-app-renderer-C9PcNeIF.js} +1 -1
- package/dist/client/assets/{mcp-server-card-ZHSZs_kf.js → mcp-server-card-BVdsLKTg.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-DjKWYtHQ.js → mcp-server-detail-hWzz0p7M.js} +2 -2
- package/dist/client/assets/{members-CGtMoiYA.js → members-Dw7k8W_H.js} +1 -1
- package/dist/client/assets/{monaco-editor-DFgX2f59.js → monaco-editor-O-cJeAC7.js} +1 -1
- package/dist/client/assets/{monitoring-CQa1Ybic.js → monitoring-C_GmEx18.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-CtdirIJ7.js → monitoring-dashboard-edit-Db8dSzpX.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-BzmmgyM6.js → monitoring-dashboard-view-DncdutYs.js} +1 -1
- package/dist/client/assets/{oauth-callback-BBrt_ccP.js → oauth-callback-D-e5bR0R.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-B0mK5DTc.js → oauth-callback-ai-provider-DfwJ0j8l.js} +1 -1
- package/dist/client/assets/{org-ai-providers-2oudOR3a.js → org-ai-providers-BB_Kk_yW.js} +1 -1
- package/dist/client/assets/{page-BpUENCQ3.js → page-BHcE-IsW.js} +1 -1
- package/dist/client/assets/{page-Cm8DLHRx.js → page-DIduNonD.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-D4HrModi.js → plugin-empty-state-CGg9Zobz.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-D4jNxBX5.js → plugin-empty-state-DF5DjKQn.js} +1 -1
- package/dist/client/assets/{plugin-header-Bd2q22iA.js → plugin-header-CwOisLLl.js} +1 -1
- package/dist/client/assets/{plugin-header-hexKC2z7.js → plugin-header-oOJ_SB7i.js} +1 -1
- package/dist/client/assets/plugins-D61XA0e1.js +1 -0
- package/dist/client/assets/{popover-BQwql0No.js → popover-CRGn9IqN.js} +1 -1
- package/dist/client/assets/{project-app-view-CWpHCZKH.js → project-app-view-C6bFj2jv.js} +1 -1
- package/dist/client/assets/{project-layout-CZw982Go.js → project-layout-xuVkDUgj.js} +1 -1
- package/dist/client/assets/{project-plugins-C6LqmbaN.js → project-plugins-BtJagofo.js} +1 -1
- package/dist/client/assets/{projects-list-n35yk1kw.js → projects-list-rUiZxv6z.js} +1 -1
- package/dist/client/assets/{readme-viewer-C4a15ScG.js → readme-viewer-CgvhJVTC.js} +1 -1
- package/dist/client/assets/{registry-layout-BXxLm88S.js → registry-layout-BYOMcr5d.js} +1 -1
- package/dist/client/assets/{registry-utils-8JbjeIg2.js → registry-utils-DRlaL1TA.js} +1 -1
- package/dist/client/assets/{reports-layout-DDT7TPDK.js → reports-layout-BZCASsb2.js} +1 -1
- package/dist/client/assets/{reset-password-C8mz9-pn.js → reset-password-ptCGMW1Q.js} +1 -1
- package/dist/client/assets/{resizable-BEGLyBcY.js → resizable-BipYny0A.js} +1 -1
- package/dist/client/assets/{save-actions-tJMaBMCr.js → save-actions-6CE1ypPt.js} +1 -1
- package/dist/client/assets/{scroll-area-zXI7Mnta.js → scroll-area-CvC7l56a.js} +1 -1
- package/dist/client/assets/{select-DE-s_uro.js → select-1qCYmo_Z.js} +1 -1
- package/dist/client/assets/{select-virtual-mcp-3UuH5RYu.js → select-virtual-mcp-t9uZXeiE.js} +1 -1
- package/dist/client/assets/shell-layout-DS537tct.js +3 -0
- package/dist/client/assets/{sidebar-settings-BleCcXqd.js → sidebar-settings-Gn9QDCS3.js} +1 -1
- package/dist/client/assets/{skeleton-FXjthcRm.js → skeleton-Vs0ahWNW.js} +1 -1
- package/dist/client/assets/{spinner-LkGFTHYs.js → spinner-DY37bQ6b.js} +1 -1
- package/dist/client/assets/{store-invite-DY166hBP.js → store-invite-CZ47dQJt.js} +1 -1
- package/dist/client/assets/{switch-CmbZgNTQ.js → switch-ChOmwFAU.js} +1 -1
- package/dist/client/assets/{table-DQFo79Pa.js → table-Ds5hcAfV.js} +1 -1
- package/dist/client/assets/{tabs-VJ4cZZ6Y.js → tabs-Dpw2g7MT.js} +1 -1
- package/dist/client/assets/{task-status-Cp67IvSc.js → task-status-BEYFiOcg.js} +21 -21
- package/dist/client/assets/tasks-CdG9QSFK.js +1 -0
- package/dist/client/assets/{tasks-panel-BcHTmaRp.js → tasks-panel-B9E0VzsT.js} +1 -1
- package/dist/client/assets/{textarea-_fKX6fkc.js → textarea-C-fRxR1X.js} +1 -1
- package/dist/client/assets/{time-range-picker-CwXbYm21.js → time-range-picker-DLfN0bYQ.js} +1 -1
- package/dist/client/assets/{toggle-group-CG-mSzeH.js → toggle-group-BwEgndSj.js} +1 -1
- package/dist/client/assets/{tools-list-BqjA8cpd.js → tools-list-DzGfMYwE.js} +1 -1
- package/dist/client/assets/{tooltip-DvMIj9Vl.js → tooltip-B2CdQ2bN.js} +1 -1
- package/dist/client/assets/{topbar-portal-8N6OCP_q.js → topbar-portal-C72-23Dd.js} +1 -1
- package/dist/client/assets/{types-co6EnWx4.js → types-CixwvVqB.js} +1 -1
- package/dist/client/assets/{use-automations-CmbPeGrO.js → use-automations-D8qaeage.js} +1 -1
- package/dist/client/assets/{use-binding-BDoLJ3NJ.js → use-binding-C6wyTPOH.js} +1 -1
- package/dist/client/assets/{use-collections-BWCPG3qv.js → use-collections-CobBqkkk.js} +1 -1
- package/dist/client/assets/{use-connection-DNxPUHEC.js → use-connection-CUBEGKKv.js} +1 -1
- package/dist/client/assets/{use-copy-B6Vhad-4.js → use-copy-CCW7WupY.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CsD8b5oZ.js → use-create-virtual-mcp-44rNe9r4.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-rVBF9_Ya.js → use-install-from-registry-B6Xy7L7O.js} +1 -1
- package/dist/client/assets/{use-list-state-CxptnZc8.js → use-list-state-DmSf1SxJ.js} +1 -1
- package/dist/client/assets/{use-llm-Cx0n4D2y.js → use-llm-CgNJSzil.js} +1 -1
- package/dist/client/assets/{use-local-storage-BO16s_mB.js → use-local-storage-B5rcvGp1.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-El8F9wfP.js → use-mcp-prompts-CWXp4Vto.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-CQM51ISF.js → use-mcp-resources-CdviUNt8.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CGAtxBQr.js → use-mcp-tools-DhfUlmve.js} +1 -1
- package/dist/client/assets/{use-members-C5Abj3Nl.js → use-members-D-zu9EQ4.js} +1 -1
- package/dist/client/assets/{use-mobile-CMPROSym.js → use-mobile-DfdfcC2T.js} +1 -1
- package/dist/client/assets/{use-project-D1HuJpb-.js → use-project-FOWgS7Lo.js} +1 -1
- package/dist/client/assets/{use-view-mode-DtcqFKqx.js → use-view-mode-bhKhl_no.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-HJi07IrH.js → use-virtual-mcp-D_pRY4Y5.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-VDF7Rw4W.js +1 -0
- package/dist/client/assets/{useMutation-C7wTU_P1.js → useMutation-BK2VTSKG.js} +1 -1
- package/dist/client/assets/useQuery-WdhzaCOu.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-B49n2iIj.js +1 -0
- package/dist/client/assets/{user-CL49YHal.js → user-D7ZGT9n7.js} +1 -1
- package/dist/client/assets/{workflow-se3doO0e.js → workflow-BlmkM3G6.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/node_modules/pg/README.md +95 -0
- package/dist/server/node_modules/pg/esm/index.mjs +20 -0
- package/dist/server/node_modules/pg/lib/client.js +743 -0
- package/dist/server/node_modules/pg/lib/connection-parameters.js +171 -0
- package/dist/server/node_modules/pg/lib/connection.js +221 -0
- package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +122 -0
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +212 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +43 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +89 -0
- package/dist/server/node_modules/pg/lib/crypto/utils.js +9 -0
- package/dist/server/node_modules/pg/lib/defaults.js +91 -0
- package/dist/server/node_modules/pg/lib/index.js +73 -0
- package/dist/server/node_modules/pg/lib/native/client.js +323 -0
- package/dist/server/node_modules/pg/lib/native/index.js +2 -0
- package/dist/server/node_modules/pg/lib/native/query.js +165 -0
- package/dist/server/node_modules/pg/lib/query.js +252 -0
- package/dist/server/node_modules/pg/lib/result.js +109 -0
- package/dist/server/node_modules/pg/lib/stream.js +83 -0
- package/dist/server/node_modules/pg/lib/type-overrides.js +35 -0
- package/dist/server/node_modules/pg/lib/utils.js +217 -0
- package/dist/server/node_modules/pg/package.json +76 -0
- package/dist/server/node_modules/postgres-date/index.js +116 -0
- package/dist/server/node_modules/{postgres-interval → postgres-date}/package.json +8 -11
- package/dist/server/node_modules/postgres-date/readme.md +49 -0
- package/package.json +1 -1
- package/dist/client/assets/constants-BRaJPJag.js +0 -1
- package/dist/client/assets/plugins-BfhzI-KM.js +0 -1
- package/dist/client/assets/shell-layout-DwAcy6I2.js +0 -3
- package/dist/client/assets/tasks-D4G9J1eF.js +0 -1
- package/dist/client/assets/useInfiniteQuery-C05JDjpl.js +0 -1
- package/dist/client/assets/useQuery-wPyHm29j.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-9yayOuFY.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-cloudflare/README.md +0 -112
- package/dist/server/node_modules/pg-cloudflare/dist/empty.d.ts +0 -2
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js +0 -6
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js.map +0 -1
- package/dist/server/node_modules/pg-cloudflare/dist/index.d.ts +0 -31
- package/dist/server/node_modules/pg-cloudflare/dist/index.js +0 -152
- package/dist/server/node_modules/pg-cloudflare/dist/index.js.map +0 -1
- package/dist/server/node_modules/pg-cloudflare/esm/index.mjs +0 -3
- package/dist/server/node_modules/pg-cloudflare/package.json +0 -39
- package/dist/server/node_modules/pg-cloudflare/src/empty.ts +0 -3
- package/dist/server/node_modules/pg-cloudflare/src/index.ts +0 -166
- package/dist/server/node_modules/pg-cloudflare/src/types.d.ts +0 -25
- package/dist/server/node_modules/pg-connection-string/LICENSE +0 -21
- package/dist/server/node_modules/pg-connection-string/README.md +0 -105
- package/dist/server/node_modules/pg-connection-string/esm/index.mjs +0 -8
- package/dist/server/node_modules/pg-connection-string/index.d.ts +0 -36
- package/dist/server/node_modules/pg-connection-string/index.js +0 -231
- package/dist/server/node_modules/pg-connection-string/package.json +0 -52
- package/dist/server/node_modules/pg-types/.travis.yml +0 -7
- package/dist/server/node_modules/pg-types/Makefile +0 -14
- package/dist/server/node_modules/pg-types/README.md +0 -75
- package/dist/server/node_modules/pg-types/index.d.ts +0 -137
- package/dist/server/node_modules/pg-types/index.js +0 -47
- package/dist/server/node_modules/pg-types/index.test-d.ts +0 -21
- package/dist/server/node_modules/pg-types/lib/arrayParser.js +0 -11
- package/dist/server/node_modules/pg-types/lib/binaryParsers.js +0 -257
- package/dist/server/node_modules/pg-types/lib/builtins.js +0 -73
- package/dist/server/node_modules/pg-types/lib/textParsers.js +0 -215
- package/dist/server/node_modules/pg-types/package.json +0 -42
- package/dist/server/node_modules/pg-types/test/index.js +0 -24
- package/dist/server/node_modules/pg-types/test/types.js +0 -597
- 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/readme.md +0 -48
- /package/dist/server/node_modules/{pg-cloudflare → pg}/LICENSE +0 -0
- /package/dist/server/node_modules/{postgres-interval → postgres-date}/license +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as n,j as r,E as d,r as f,u as x,e as j}from"./index--v47KjFS.js";import{T as h}from"./tasks-panel-B9E0VzsT.js";import{P as e}from"./index-DnEhhRJ4.js";import{B as g,a as b,b as T,c as k}from"./breadcrumb-BSZlBaPP.js";import{i as B}from"./Loading01-R4lTIOmc.js";import{u as S}from"./context-30W0NRWC.js";import"./task-status-BEYFiOcg.js";import"./popover-CRGn9IqN.js";import"./skeleton-Vs0ahWNW.js";import"./spinner-DY37bQ6b.js";import"./tooltip-B2CdQ2bN.js";import"./index-23ha-EiC.js";import"./constants-BJq0sg2N.js";import"./use-mcp-prompts-CWXp4Vto.js";import"./useQuery-WdhzaCOu.js";import"./dialog-DtQJmLgU.js";import"./X-C1gVOX-K.js";import"./form-AwZCFVNc.js";import"./label-Bp2-MH_v.js";import"./input-B43ueF_6.js";import"./index-oFBA5kHq.js";import"./usage-t6qWPVZ4.js";import"./ArrowUp-C6T9wa52.js";import"./ChevronDown-D9EMTJdI.js";import"./Edit01-BIu4og98.js";import"./Lock01-BtcVHLM1.js";import"./Users03-Bn5Ina1h.js";import"./XCircle-D_WssbjQ.js";import"./AlertCircle-BoncS6LP.js";import"./select-1qCYmo_Z.js";import"./ChevronUp-iKqBRKww.js";import"./Check-D28ZRrsv.js";import"./org-ai-providers-BB_Kk_yW.js";import"./use-local-storage-B5rcvGp1.js";import"./useMutation-BK2VTSKG.js";import"./EyeOff-CAEuyJy8.js";import"./Eye-BKxgN9Ci.js";import"./Key01-echsPc8T.js";import"./Trash01-11PM8hCT.js";import"./card-Cq808vu1.js";import"./avatar-XKo1hvHY.js";import"./use-llm-CgNJSzil.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./ArrowLeft-BJzvklmo.js";import"./use-copy-CCW7WupY.js";import"./tabs-Dpw2g7MT.js";import"./badge-BEyO0T03.js";import"./collapsible-wDXCk9xP.js";import"./index-DLQk7Ahb.js";import"./Code01-D874vQ1j.js";import"./checkbox-D1_FXNWD.js";import"./AlignLeft-DBFp0-N7.js";import"./Image01-exfB-slY.js";import"./RefreshCcw01-BpP2wWfT.js";import"./SearchMd-DYtqpNhS.js";import"./Settings01-DLXMaJiZ.js";import"./ai-providers-logos-W57Qm-EN.js";import"./select-virtual-mcp-t9uZXeiE.js";import"./integration-icon-jSV9a6uH.js";import"./Container-v7Lu1WNT.js";import"./use-virtual-mcp-D_pRY4Y5.js";import"./use-collections-CobBqkkk.js";import"./use-create-virtual-mcp-44rNe9r4.js";import"./use-mcp-resources-CdviUNt8.js";import"./ChevronRight-6oHy3GR0.js";import"./Copy01-D3an2EO3.js";import"./marked.esm-BaswSlok.js";import"./markdown-CHm0rLGk.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-C9PcNeIF.js";import"./types-CixwvVqB.js";import"./Globe02-cnnmW-yP.js";import"./LayersTwo01-HSSB0HBk.js";import"./XClose-CzgfsXpl.js";import"./Clock-DKgv7FMl.js";import"./useSuspenseInfiniteQuery-B49n2iIj.js";import"./infiniteQueryObserver-Bv6Q8uee.js";import"./CheckCircle-ItsEMznk.js";import"./collection-search-C0Xdyimh.js";import"./user-D7ZGT9n7.js";import"./format-time-CMKyl-GC.js";import"./Plus-BPhP6AwU.js";import"./dropdown-menu-Dh14MX71.js";import"./decopilot-events-Brt4gAR6.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(e.Header,{children:r.jsx(e.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 p;return t[6]!==l?(p=r.jsxs(e,{children:[m,r.jsx(e.Content,{children:r.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:r.jsx(h,{onTaskSelect:l})})})]}),t[6]=l,t[7]=p):p=t[7],p}function or(){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{or as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{be as W,c as C,r as w,j as s,z as S,B as re,E as ne}from"./index-Bs1-6MBJ.js";import{g as le,b as oe,S as ae}from"./task-status-Cp67IvSc.js";import{a as q,u as V}from"./context-CcNCVCjQ.js";import{C as ie}from"./collection-search-BHtDjvQL.js";import{U as ce}from"./user-CL49YHal.js";import{f as de}from"./format-time-CMKyl-GC.js";import{a as me,T as fe,c as ue}from"./tooltip-DvMIj9Vl.js";import{i as xe}from"./Check-D47qqsWi.js";import{i as he}from"./ChevronRight-Ccc_Sjed.js";import{i as pe}from"./Edit01-C-PQ-7gV.js";import{i as J}from"./Loading01-Ds_yIlBt.js";import{s as be}from"./Plus-Cln26t9k.js";import{a as ge,g as je,h as ye,i as Q,b as Ne,j as ke,D as ve}from"./dropdown-menu-B2-TC2ID.js";const we=W("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);const Se=W("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);function Te(t){const e=C.c(12),{text:r,className:o}=t,l=w.useRef(null),[a,d]=w.useState(!1);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=b=>{b&&l.current?d(l.current.scrollWidth>l.current.clientWidth):d(!1)},e[0]=i):i=e[0];let c;e[1]!==o?(c=S("truncate block",o),e[1]=o,e[2]=c):c=e[2];let f;e[3]!==c||e[4]!==r?(f=s.jsx(me,{asChild:!0,children:s.jsx("span",{ref:l,className:c,children:r})}),e[3]=c,e[4]=r,e[5]=f):f=e[5];let m;e[6]!==r?(m=s.jsx(fe,{side:"top",align:"start",children:r}),e[6]=r,e[7]=m):m=e[7];let u;return e[8]!==a||e[9]!==f||e[10]!==m?(u=s.jsxs(ue,{open:a,onOpenChange:i,children:[f,m]}),e[8]=a,e[9]=f,e[10]=m,e[11]=u):u=e[11],u}function Ce(){const t=C.c(21),{ownerFilter:e,setOwnerFilter:r,isFilterChangePending:o}=V();let l;t[0]!==r?(l=k=>{r(k)},t[0]=r,t[1]=l):l=t[1];const a=l,d=e==="me",i=o?J:d?we:Se,c=d?"My tasks":"All tasks",f=o?"animate-spin text-muted-foreground":d?"text-foreground":"text-muted-foreground";let m;t[2]!==f?(m=S(f),t[2]=f,t[3]=m):m=t[3];let u;t[4]!==i||t[5]!==m?(u=s.jsx(i,{size:14,className:m}),t[4]=i,t[5]=m,t[6]=u):u=t[6];let b;t[7]!==o||t[8]!==c||t[9]!==u?(b=s.jsx(ge,{asChild:!0,children:s.jsx(re,{variant:"ghost",className:"size-8",title:c,disabled:o,children:u})}),t[7]=o,t[8]=c,t[9]=u,t[10]=b):b=t[10];let N,g;t[11]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(je,{children:"Filter by owner"}),g=s.jsx(ye,{}),t[11]=N,t[12]=g):(N=t[11],g=t[12]);let v,j;t[13]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(Q,{value:"me",children:"My tasks"}),j=s.jsx(Q,{value:"everyone",children:"All tasks"}),t[13]=v,t[14]=j):(v=t[13],j=t[14]);let x;t[15]!==a||t[16]!==e?(x=s.jsxs(Ne,{align:"end",children:[N,g,s.jsxs(ke,{value:e,onValueChange:a,children:[v,j]})]}),t[15]=a,t[16]=e,t[17]=x):x=t[17];let h;return t[18]!==x||t[19]!==b?(h=s.jsxs(ve,{children:[b,x]}),t[18]=x,t[19]=b,t[20]=h):h=t[20],h}function _e(t){const e=C.c(35),{onTaskSelect:r}=t,{activeTaskId:o,switchToTask:l}=q(),{renameTask:a,tasks:d}=V(),[i,c]=w.useState("");let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f={},e[0]=f):f=e[0];const[m,u]=w.useState(f),[b,N]=w.useState(null),[g,v]=w.useState("");let j,x,h;if(e[1]!==o||e[2]!==m||e[3]!==b||e[4]!==g||e[5]!==r||e[6]!==a||e[7]!==i||e[8]!==l||e[9]!==d){const B=d.filter(Me),G=i.trim()?B.filter(n=>n.title.toLowerCase().includes(i.toLowerCase())):B,A=le(G),X=oe.filter(n=>A[n]&&A[n].length>0);let z;e[13]===Symbol.for("react.memo_cache_sentinel")?(z=n=>{u(y=>({...y,[n]:!y[n]}))},e[13]=z):z=e[13];const Y=z;let F;e[14]!==r||e[15]!==l?(F=async n=>{r?r(n.id):await l(n.id)},e[14]=r,e[15]=l,e[16]=F):F=e[16];const Z=F;let U;e[17]===Symbol.for("react.memo_cache_sentinel")?(U=(n,y)=>{y.stopPropagation(),N(n.id),v(n.title||"")},e[17]=U):U=e[17];const ee=U;let $;e[18]!==g||e[19]!==a?($=async n=>{const y=g.trim();y&&await a(n,y),N(null)},e[18]=g,e[19]=a,e[20]=$):$=e[20];const _=$;let I;e[21]!==_?(I=(n,y)=>{n.key==="Enter"?(n.preventDefault(),_(y)):n.key==="Escape"&&N(null)},e[21]=_,e[22]=I):I=e[22];const te=I;let O;e[23]===Symbol.for("react.memo_cache_sentinel")?(O=n=>{n.key==="Escape"&&(c(""),n.target.blur())},e[23]=O):O=e[23];let T;e[24]!==i?(T=s.jsx(ie,{value:i,onChange:c,placeholder:"Search tasks...",onKeyDown:O}),e[24]=i,e[25]=T):T=e[25];let R;e[26]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2",children:s.jsx(Ce,{})}),e[26]=R):R=e[26],e[27]!==T?(h=s.jsxs("div",{className:"relative",children:[T,R]}),e[27]=T,e[28]=h):h=e[28],j="flex-1 overflow-y-auto",x=G.length===0?s.jsx("div",{className:"flex flex-col items-center justify-center gap-2 py-12 px-4 text-center",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:i?"No tasks found":"No tasks yet"})}):X.map((n,y)=>{const D=ae[n];if(!D)return null;const L=D.icon,K=A[n]??[],H=!m[n];return s.jsxs("div",{className:"flex flex-col",children:[s.jsxs("button",{type:"button",onClick:()=>Y(n),className:S("flex items-center w-full bg-[rgba(245,245,245,0.3)] border-b border-border/50 dark:bg-[rgba(30,30,30,0.3)]",y!==0&&"border-t border-border/50"),children:[s.jsx("div",{className:"flex items-center justify-center w-9 shrink-0 px-3",children:s.jsx(he,{size:16,className:S("text-muted-foreground transition-transform duration-200",H&&"rotate-90")})}),s.jsxs("div",{className:"flex items-center gap-3 flex-1 py-3",children:[s.jsx(L,{size:16,className:D.iconClassName}),s.jsx("span",{className:"font-mono text-xs text-muted-foreground uppercase tracking-wider",children:D.label}),s.jsx("span",{className:"text-xs text-muted-foreground/60",children:K.length})]})]}),H&&K.map(p=>{const se=p.id===o,P=b===p.id;return s.jsxs("div",{className:S("group flex items-center w-full hover:bg-accent/50 transition-colors cursor-pointer",se&&"bg-accent/50"),onClick:()=>!P&&Z(p),children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0 py-3 pl-4 flex-1",children:[s.jsx(L,{size:16,className:S("shrink-0",D.iconClassName)}),P?s.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-0 pr-3",onClick:Ee,children:[s.jsx("input",{autoFocus:!0,value:g,onChange:E=>v(E.target.value),onBlur:()=>_(p.id),onKeyDown:E=>te(E,p.id),className:"flex-1 text-sm bg-transparent border-b border-foreground/30 focus:border-foreground outline-none pb-0.5 min-w-0"}),s.jsx("button",{type:"button",onMouseDown:De,onClick:()=>_(p.id),className:"p-1 hover:bg-accent rounded shrink-0",children:s.jsx(xe,{size:12,className:"text-muted-foreground"})})]}):s.jsx(Te,{text:p.title||"Untitled",className:"text-sm font-medium text-foreground flex-1 min-w-0"})]}),!P&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center gap-1 px-2 shrink-0",children:[s.jsx("button",{type:"button",onClick:E=>ee(p,E),className:"opacity-0 group-hover:opacity-100 p-1 hover:bg-accent rounded transition-opacity",title:"Rename task",children:s.jsx(pe,{size:13,className:"text-muted-foreground"})}),p.created_by&&s.jsx(ce,{id:p.created_by,size:"3xs",avatarOnly:!0})]}),s.jsx("div",{className:"w-20 p-3 shrink-0 text-right",children:s.jsx("span",{className:"text-sm text-muted-foreground whitespace-nowrap",children:p.updated_at?de(new Date(p.updated_at)):"—"})})]})]},p.id)})]},n)}),e[1]=o,e[2]=m,e[3]=b,e[4]=g,e[5]=r,e[6]=a,e[7]=i,e[8]=l,e[9]=d,e[10]=j,e[11]=x,e[12]=h}else j=e[10],x=e[11],h=e[12];let k;e[29]!==j||e[30]!==x?(k=s.jsx("div",{className:j,children:x}),e[29]=j,e[30]=x,e[31]=k):k=e[31];let M;return e[32]!==h||e[33]!==k?(M=s.jsxs(s.Fragment,{children:[h,k]}),e[32]=h,e[33]=k,e[34]=M):M=e[34],M}function De(t){return t.preventDefault()}function Ee(t){return t.stopPropagation()}function Me(t){return!t.hidden}function ze(){const t=C.c(10),{createTask:e,isChatEmpty:r}=q();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"}),t[0]=o):o=t[0];let l;t[1]!==e?(l=()=>e(),t[1]=e,t[2]=l):l=t[2];let a;t[3]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(be,{size:16,className:"text-muted-foreground"}),t[3]=a):a=t[3];let d;t[4]!==r||t[5]!==l?(d=s.jsxs("div",{className:"h-11 px-4 flex items-center justify-between shrink-0 border-b border-border/50",children:[o,s.jsx("button",{type:"button",onClick:l,disabled:r,className:"flex size-7 items-center justify-center rounded-md hover:bg-accent transition-colors cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed",title:"New chat",children:a})]}),t[4]=r,t[5]=l,t[6]=d):d=t[6];let i;t[7]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(_e,{}),t[7]=i):i=t[7];let c;return t[8]!==d?(c=s.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[d,i]}),t[8]=d,t[9]=c):c=t[9],c}function Fe(){const t=C.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"h-11 px-4 flex items-center shrink-0 border-b border-border/50"}),t[0]=e):e=t[0];let r;return t[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[e,s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(J,{size:20,className:"animate-spin text-muted-foreground"})})]}),t[1]=r):r=t[1],r}function qe(t){const e=C.c(5),{className:r}=t;let o;e[0]!==r?(o=S("h-full",r),e[0]=r,e[1]=o):o=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(ne,{fallback:Ue,children:s.jsx(w.Suspense,{fallback:s.jsx(Fe,{}),children:s.jsx(ze,{})})}),e[2]=l):l=e[2];let a;return e[3]!==o?(a=s.jsx("div",{className:o,children:l}),e[3]=o,e[4]=a):a=e[4],a}function Ue(){return s.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[s.jsx("div",{className:"h-11 px-4 flex items-center shrink-0 border-b border-border/50"}),s.jsx("div",{className:"flex-1 flex items-center justify-center px-4 text-center",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:"Unable to load tasks"})})]})}export{_e as T,qe as a};
|
|
1
|
+
import{be as W,c as C,r as w,j as s,z as S,B as re,E as ne}from"./index--v47KjFS.js";import{g as le,b as oe,S as ae}from"./task-status-BEYFiOcg.js";import{a as q,u as V}from"./context-30W0NRWC.js";import{C as ie}from"./collection-search-C0Xdyimh.js";import{U as ce}from"./user-D7ZGT9n7.js";import{f as de}from"./format-time-CMKyl-GC.js";import{a as me,T as fe,c as ue}from"./tooltip-B2CdQ2bN.js";import{i as xe}from"./Check-D28ZRrsv.js";import{i as he}from"./ChevronRight-6oHy3GR0.js";import{i as pe}from"./Edit01-BIu4og98.js";import{i as J}from"./Loading01-R4lTIOmc.js";import{s as be}from"./Plus-BPhP6AwU.js";import{a as ge,g as je,h as ye,i as Q,b as Ne,j as ke,D as ve}from"./dropdown-menu-Dh14MX71.js";const we=W("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);const Se=W("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);function Te(t){const e=C.c(12),{text:r,className:o}=t,l=w.useRef(null),[a,d]=w.useState(!1);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=b=>{b&&l.current?d(l.current.scrollWidth>l.current.clientWidth):d(!1)},e[0]=i):i=e[0];let c;e[1]!==o?(c=S("truncate block",o),e[1]=o,e[2]=c):c=e[2];let f;e[3]!==c||e[4]!==r?(f=s.jsx(me,{asChild:!0,children:s.jsx("span",{ref:l,className:c,children:r})}),e[3]=c,e[4]=r,e[5]=f):f=e[5];let m;e[6]!==r?(m=s.jsx(fe,{side:"top",align:"start",children:r}),e[6]=r,e[7]=m):m=e[7];let u;return e[8]!==a||e[9]!==f||e[10]!==m?(u=s.jsxs(ue,{open:a,onOpenChange:i,children:[f,m]}),e[8]=a,e[9]=f,e[10]=m,e[11]=u):u=e[11],u}function Ce(){const t=C.c(21),{ownerFilter:e,setOwnerFilter:r,isFilterChangePending:o}=V();let l;t[0]!==r?(l=k=>{r(k)},t[0]=r,t[1]=l):l=t[1];const a=l,d=e==="me",i=o?J:d?we:Se,c=d?"My tasks":"All tasks",f=o?"animate-spin text-muted-foreground":d?"text-foreground":"text-muted-foreground";let m;t[2]!==f?(m=S(f),t[2]=f,t[3]=m):m=t[3];let u;t[4]!==i||t[5]!==m?(u=s.jsx(i,{size:14,className:m}),t[4]=i,t[5]=m,t[6]=u):u=t[6];let b;t[7]!==o||t[8]!==c||t[9]!==u?(b=s.jsx(ge,{asChild:!0,children:s.jsx(re,{variant:"ghost",className:"size-8",title:c,disabled:o,children:u})}),t[7]=o,t[8]=c,t[9]=u,t[10]=b):b=t[10];let N,g;t[11]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(je,{children:"Filter by owner"}),g=s.jsx(ye,{}),t[11]=N,t[12]=g):(N=t[11],g=t[12]);let v,j;t[13]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(Q,{value:"me",children:"My tasks"}),j=s.jsx(Q,{value:"everyone",children:"All tasks"}),t[13]=v,t[14]=j):(v=t[13],j=t[14]);let x;t[15]!==a||t[16]!==e?(x=s.jsxs(Ne,{align:"end",children:[N,g,s.jsxs(ke,{value:e,onValueChange:a,children:[v,j]})]}),t[15]=a,t[16]=e,t[17]=x):x=t[17];let h;return t[18]!==x||t[19]!==b?(h=s.jsxs(ve,{children:[b,x]}),t[18]=x,t[19]=b,t[20]=h):h=t[20],h}function _e(t){const e=C.c(35),{onTaskSelect:r}=t,{activeTaskId:o,switchToTask:l}=q(),{renameTask:a,tasks:d}=V(),[i,c]=w.useState("");let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f={},e[0]=f):f=e[0];const[m,u]=w.useState(f),[b,N]=w.useState(null),[g,v]=w.useState("");let j,x,h;if(e[1]!==o||e[2]!==m||e[3]!==b||e[4]!==g||e[5]!==r||e[6]!==a||e[7]!==i||e[8]!==l||e[9]!==d){const B=d.filter(Me),G=i.trim()?B.filter(n=>n.title.toLowerCase().includes(i.toLowerCase())):B,A=le(G),X=oe.filter(n=>A[n]&&A[n].length>0);let z;e[13]===Symbol.for("react.memo_cache_sentinel")?(z=n=>{u(y=>({...y,[n]:!y[n]}))},e[13]=z):z=e[13];const Y=z;let F;e[14]!==r||e[15]!==l?(F=async n=>{r?r(n.id):await l(n.id)},e[14]=r,e[15]=l,e[16]=F):F=e[16];const Z=F;let U;e[17]===Symbol.for("react.memo_cache_sentinel")?(U=(n,y)=>{y.stopPropagation(),N(n.id),v(n.title||"")},e[17]=U):U=e[17];const ee=U;let $;e[18]!==g||e[19]!==a?($=async n=>{const y=g.trim();y&&await a(n,y),N(null)},e[18]=g,e[19]=a,e[20]=$):$=e[20];const _=$;let I;e[21]!==_?(I=(n,y)=>{n.key==="Enter"?(n.preventDefault(),_(y)):n.key==="Escape"&&N(null)},e[21]=_,e[22]=I):I=e[22];const te=I;let O;e[23]===Symbol.for("react.memo_cache_sentinel")?(O=n=>{n.key==="Escape"&&(c(""),n.target.blur())},e[23]=O):O=e[23];let T;e[24]!==i?(T=s.jsx(ie,{value:i,onChange:c,placeholder:"Search tasks...",onKeyDown:O}),e[24]=i,e[25]=T):T=e[25];let R;e[26]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2",children:s.jsx(Ce,{})}),e[26]=R):R=e[26],e[27]!==T?(h=s.jsxs("div",{className:"relative",children:[T,R]}),e[27]=T,e[28]=h):h=e[28],j="flex-1 overflow-y-auto",x=G.length===0?s.jsx("div",{className:"flex flex-col items-center justify-center gap-2 py-12 px-4 text-center",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:i?"No tasks found":"No tasks yet"})}):X.map((n,y)=>{const D=ae[n];if(!D)return null;const L=D.icon,K=A[n]??[],H=!m[n];return s.jsxs("div",{className:"flex flex-col",children:[s.jsxs("button",{type:"button",onClick:()=>Y(n),className:S("flex items-center w-full bg-[rgba(245,245,245,0.3)] border-b border-border/50 dark:bg-[rgba(30,30,30,0.3)]",y!==0&&"border-t border-border/50"),children:[s.jsx("div",{className:"flex items-center justify-center w-9 shrink-0 px-3",children:s.jsx(he,{size:16,className:S("text-muted-foreground transition-transform duration-200",H&&"rotate-90")})}),s.jsxs("div",{className:"flex items-center gap-3 flex-1 py-3",children:[s.jsx(L,{size:16,className:D.iconClassName}),s.jsx("span",{className:"font-mono text-xs text-muted-foreground uppercase tracking-wider",children:D.label}),s.jsx("span",{className:"text-xs text-muted-foreground/60",children:K.length})]})]}),H&&K.map(p=>{const se=p.id===o,P=b===p.id;return s.jsxs("div",{className:S("group flex items-center w-full hover:bg-accent/50 transition-colors cursor-pointer",se&&"bg-accent/50"),onClick:()=>!P&&Z(p),children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0 py-3 pl-4 flex-1",children:[s.jsx(L,{size:16,className:S("shrink-0",D.iconClassName)}),P?s.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-0 pr-3",onClick:Ee,children:[s.jsx("input",{autoFocus:!0,value:g,onChange:E=>v(E.target.value),onBlur:()=>_(p.id),onKeyDown:E=>te(E,p.id),className:"flex-1 text-sm bg-transparent border-b border-foreground/30 focus:border-foreground outline-none pb-0.5 min-w-0"}),s.jsx("button",{type:"button",onMouseDown:De,onClick:()=>_(p.id),className:"p-1 hover:bg-accent rounded shrink-0",children:s.jsx(xe,{size:12,className:"text-muted-foreground"})})]}):s.jsx(Te,{text:p.title||"Untitled",className:"text-sm font-medium text-foreground flex-1 min-w-0"})]}),!P&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center gap-1 px-2 shrink-0",children:[s.jsx("button",{type:"button",onClick:E=>ee(p,E),className:"opacity-0 group-hover:opacity-100 p-1 hover:bg-accent rounded transition-opacity",title:"Rename task",children:s.jsx(pe,{size:13,className:"text-muted-foreground"})}),p.created_by&&s.jsx(ce,{id:p.created_by,size:"3xs",avatarOnly:!0})]}),s.jsx("div",{className:"w-20 p-3 shrink-0 text-right",children:s.jsx("span",{className:"text-sm text-muted-foreground whitespace-nowrap",children:p.updated_at?de(new Date(p.updated_at)):"—"})})]})]},p.id)})]},n)}),e[1]=o,e[2]=m,e[3]=b,e[4]=g,e[5]=r,e[6]=a,e[7]=i,e[8]=l,e[9]=d,e[10]=j,e[11]=x,e[12]=h}else j=e[10],x=e[11],h=e[12];let k;e[29]!==j||e[30]!==x?(k=s.jsx("div",{className:j,children:x}),e[29]=j,e[30]=x,e[31]=k):k=e[31];let M;return e[32]!==h||e[33]!==k?(M=s.jsxs(s.Fragment,{children:[h,k]}),e[32]=h,e[33]=k,e[34]=M):M=e[34],M}function De(t){return t.preventDefault()}function Ee(t){return t.stopPropagation()}function Me(t){return!t.hidden}function ze(){const t=C.c(10),{createTask:e,isChatEmpty:r}=q();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"}),t[0]=o):o=t[0];let l;t[1]!==e?(l=()=>e(),t[1]=e,t[2]=l):l=t[2];let a;t[3]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(be,{size:16,className:"text-muted-foreground"}),t[3]=a):a=t[3];let d;t[4]!==r||t[5]!==l?(d=s.jsxs("div",{className:"h-11 px-4 flex items-center justify-between shrink-0 border-b border-border/50",children:[o,s.jsx("button",{type:"button",onClick:l,disabled:r,className:"flex size-7 items-center justify-center rounded-md hover:bg-accent transition-colors cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed",title:"New chat",children:a})]}),t[4]=r,t[5]=l,t[6]=d):d=t[6];let i;t[7]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(_e,{}),t[7]=i):i=t[7];let c;return t[8]!==d?(c=s.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[d,i]}),t[8]=d,t[9]=c):c=t[9],c}function Fe(){const t=C.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"h-11 px-4 flex items-center shrink-0 border-b border-border/50"}),t[0]=e):e=t[0];let r;return t[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[e,s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(J,{size:20,className:"animate-spin text-muted-foreground"})})]}),t[1]=r):r=t[1],r}function qe(t){const e=C.c(5),{className:r}=t;let o;e[0]!==r?(o=S("h-full",r),e[0]=r,e[1]=o):o=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(ne,{fallback:Ue,children:s.jsx(w.Suspense,{fallback:s.jsx(Fe,{}),children:s.jsx(ze,{})})}),e[2]=l):l=e[2];let a;return e[3]!==o?(a=s.jsx("div",{className:o,children:l}),e[3]=o,e[4]=a):a=e[4],a}function Ue(){return s.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[s.jsx("div",{className:"h-11 px-4 flex items-center shrink-0 border-b border-border/50"}),s.jsx("div",{className:"flex-1 flex items-center justify-center px-4 text-center",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:"Unable to load tasks"})})]})}export{_e as T,qe as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as o,z as n,j as l}from"./index
|
|
1
|
+
import{c as o,z as n,j as l}from"./index--v47KjFS.js";function c(s){const e=o.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=n("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-xl border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=l.jsx("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as N,c as At,e as gn,u as yn,j as s,B as I,O as Dt,w as ne,z as U,bc as kt}from"./index
|
|
1
|
+
import{r as N,c as At,e as gn,u as yn,j as s,B as I,O as Dt,w as ne,z as U,bc as kt}from"./index--v47KjFS.js";import{B as bn}from"./badge-BEyO0T03.js";import{b as lt,P as ct,a as ut}from"./popover-CRGn9IqN.js";import{c as Ge,a as Qe,T as Xe}from"./tooltip-B2CdQ2bN.js";import{i as Je}from"./Check-D28ZRrsv.js";import{a as $e}from"./Copy01-D3an2EO3.js";import{n as Mt}from"./Download01-DFr_zgIP.js";import{i as xn}from"./FilterLines-DBXa2xhp.js";import{i as wn}from"./Key01-echsPc8T.js";import{i as Nn}from"./Play-CeCy0kkp.js";import{M as _t,n as Dn}from"./monaco-editor-O-cJeAC7.js";import{S as kn}from"./scroll-area-CvC7l56a.js";import{t as Mn}from"./ChevronDown-D9EMTJdI.js";import{s as _n}from"./Clock-DKgv7FMl.js";import{n as jn}from"./ChevronLeft-6LF5odkw.js";import{i as Cn}from"./ChevronRight-6oHy3GR0.js";import{I as jt}from"./input-B43ueF_6.js";const Ht=({size:t=24,color:e="currentColor",...n})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},N.createElement("path",{d:"M4 7c0-.932 0-1.398.152-1.765a2 2 0 0 1 1.083-1.083C5.602 4 6.068 4 7 4h10c.932 0 1.398 0 1.765.152a2 2 0 0 1 1.083 1.083C20 5.602 20 6.068 20 7M9 20h6M12 4v16"}));Ht.displayName="Type01";const Ct={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function Sn(t){return t.filter(e=>e.key.trim()).map(e=>{const n=encodeURIComponent(e.key.trim()),r=encodeURIComponent(e.value||"");return`${n}:${e.operator}:${r}`}).join(",")}function Ao(t){return t?t.split(",").map(e=>{const[n,r,...a]=e.split(":");return{key:decodeURIComponent(n||""),operator:r||"eq",value:decodeURIComponent(a.join(":")||"")}}):[]}function Ho(t){return t.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
|
|
2
2
|
`)}function qo(t){return t.trim()?t.split(`
|
|
3
3
|
`).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[n,...r]=e.split("=");return{key:n||"",operator:"eq",value:r.join("=")}}if(e.includes("~")){const[n,...r]=e.split("~");return{key:n||"",operator:"contains",value:r.join("~")}}if(e.includes("@")){const[n,...r]=e.split("@");return{key:n||"",operator:"in",value:r.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function zo(t){const e={},n={},r=[],a={};for(const o of t)if(o.key.trim())switch(o.operator){case"eq":o.value&&(e[o.key]=o.value);break;case"contains":o.value&&(n[o.key]=`%${o.value}%`);break;case"exists":r.push(o.key);break;case"in":o.value&&(a[o.key]=o.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(n).length>0?n:void 0,propertyKeys:r.length>0?r:void 0,propertyInValues:Object.keys(a).length>0?a:void 0}}function St(t){if(!t)return{content:"null",isTruncated:!1,originalSize:4};const e=JSON.stringify(t,null,2),n=e.length;return n<=Ct.maxJsonRenderSize?{content:e,isTruncated:!1,originalSize:n}:{content:e.slice(0,Ct.maxJsonRenderSize)+`
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as x,ai as h,j as c,a8 as m,am as k,bP as p,al as M,an as T,ah as S,aj as A,ap as F,T as $,c as P,z as C}from"./index
|
|
1
|
+
import{r as x,ai as h,j as c,a8 as m,am as k,bP as p,al as M,an as T,ah as S,aj as A,ap as F,T as $,c as P,z as C}from"./index--v47KjFS.js";var j="Toggle",_=x.forwardRef((a,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...r}=a,[t,o]=h({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":a.disabled?"":void 0,...r,ref:e,onClick:k(a.onClick,()=>{a.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=F(v,[T]),z=T(),b=p.forwardRef((a,e)=>{const{type:l,...s}=a;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});b.displayName=v;var[I,y]=w(v),D=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=h({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(I,{scope:a.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(R,{...r,ref:e})})}),B=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=h({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(I,{scope:a.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...r,ref:e})})});b.displayName=v;var[O,H]=w(v),R=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:r,dir:t,loop:o=!0,...i}=a,d=z(l),u=S(t),g={role:"group",dir:u,...i};return c.jsx(O,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(A,{asChild:!0,...d,orientation:r,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((a,e)=>{const l=y(f,a.__scopeToggleGroup),s=H(f,a.__scopeToggleGroup),n=z(a.__scopeToggleGroup),r=l.value.includes(a.value),t=s.disabled||a.disabled,o={...a,pressed:r,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:r,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,value:s,...n}=a,r=y(f,l),t={role:"radio","aria-checked":a.pressed,"aria-pressed":void 0},o=r.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?r.onItemActivate(s):r.onItemDeactivate(s)}})}),L=b,U=N;const q=$("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),E=x.createContext({size:"default",variant:"default"});function K(a){const e=P.c(20);let l,s,n,r,t;e[0]!==a?({className:s,variant:t,size:r,children:l,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);let o;e[6]!==s?(o=C("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==r||e[9]!==t?(i={variant:t,size:r},e[8]=r,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(E.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==r||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(L,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:o,...n,children:d}),e[14]=n,e[15]=r,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function Q(a){const e=P.c(18);let l,s,n,r,t;e[0]!==a?({className:s,children:l,variant:t,size:r,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||r;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==r||e[10]!==t?(u=C(q({variant:o.variant||t,size:o.size||r}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=r,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(U,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{K as T,Q as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as z,e as X,r as H,j as t,af as Y,ag as Z,O as ee}from"./index
|
|
1
|
+
import{c as z,e as X,r as H,j as t,af as Y,ag as Z,O as ee}from"./index--v47KjFS.js";import{C as te}from"./collection-display-button-yOA8wYm8.js";import{C as se}from"./collection-search-C0Xdyimh.js";import{C as oe}from"./collection-table-wrapper-BjxWZ4Q4.js";import{E as B}from"./empty-state-ChTznqc5.js";import{I as ne}from"./integration-icon-jSV9a6uH.js";import{B as K}from"./badge-BEyO0T03.js";import{C as re}from"./card-Cq808vu1.js";import{c as G,a as P,T as W,b as ae}from"./tooltip-B2CdQ2bN.js";import{g as ie}from"./types-CixwvVqB.js";import{s as le}from"./Eye-BKxgN9Ci.js";import{s as ce}from"./Globe02-cnnmW-yP.js";import{s as me}from"./LayersTwo01-HSSB0HBk.js";import{V as de}from"./layout-ChV6hmvw.js";const fe=[{key:"readOnlyHint",label:"Read-only",Icon:le,variant:"secondary"},{key:"destructiveHint",label:"Destructive",Icon:Y,variant:"destructive"},{key:"idempotentHint",label:"Idempotent",Icon:Z,variant:"secondary"},{key:"openWorldHint",label:"Open-world",Icon:ce,variant:"outline"}];function pe(s){const e=z.c(18),{annotations:a,_meta:d}=s;let u;e[0]!==d?(u=ie(d),e[0]=d,e[1]=u):u=e[1];const l=!!u;let h,x,c,f,m;if(e[2]!==a||e[3]!==l){m=Symbol.for("react.early_return_sentinel");e:{const n=a?fe.filter(I=>a[I.key]===!0):[];if(n.length===0&&!l){m=null;break e}h=ae,x="flex gap-1 flex-nowrap",e[9]!==l?(c=l&&t.jsxs(G,{children:[t.jsx(P,{asChild:!0,children:t.jsx(K,{asChild:!0,variant:"secondary",className:"size-6 p-1",children:t.jsx(me,{})})}),t.jsx(W,{children:"Interactive"})]}),e[9]=l,e[10]=c):c=e[10],f=n.map(ue)}e[2]=a,e[3]=l,e[4]=h,e[5]=x,e[6]=c,e[7]=f,e[8]=m}else h=e[4],x=e[5],c=e[6],f=e[7],m=e[8];if(m!==Symbol.for("react.early_return_sentinel"))return m;let p;e[11]!==x||e[12]!==c||e[13]!==f?(p=t.jsxs("div",{className:x,children:[c,f]}),e[11]=x,e[12]=c,e[13]=f,e[14]=p):p=e[14];let g;return e[15]!==h||e[16]!==p?(g=t.jsx(h,{children:p}),e[15]=h,e[16]=p,e[17]=g):g=e[17],g}function ue(s){const{label:e,Icon:a,variant:d}=s;return t.jsxs(G,{children:[t.jsx(P,{asChild:!0,children:t.jsx(K,{asChild:!0,variant:d,className:"size-6 p-1",children:t.jsx(a,{})})}),t.jsx(W,{children:e})]},e)}function Ee(s){const e=z.c(40),{tools:a,connectionId:d,org:u,onToolClick:l,showToolbar:h,emptyMessage:x,isLoading:c}=s,f=h===void 0?!0:h,m=x===void 0?"This connection doesn't have any tools yet.":x,p=c===void 0?!1:c,g=X(),[n,I]=H.useState(""),[j,F]=H.useState("table"),[r,M]=H.useState("name"),[i,V]=H.useState("asc");let w;e[0]!==i||e[1]!==r?(w=o=>{r===o?(V(Ne),i==="desc"&&M(void 0)):(M(o),V("asc"))},e[0]=i,e[1]=r,e[2]=w):w=e[2];const y=w;let _;e[3]!==d||e[4]!==g||e[5]!==l||e[6]!==u?(_=o=>{l?l(o):d&&u&&g({to:"/$org/$project/mcps/$connectionId/$collectionName/$itemId",params:{org:u,project:ee,connectionId:d,collectionName:"tools",itemId:encodeURIComponent(o.name)}})},e[3]=d,e[4]=g,e[5]=l,e[6]=u,e[7]=_):_=e[7];const k=_;let $;if(e[8]!==n||e[9]!==i||e[10]!==r||e[11]!==a){const o=!a||a.length===0?[]:n.trim()?(()=>{const E=n.toLowerCase();return a.filter(S=>S.name.toLowerCase().includes(E)||S.description&&S.description.toLowerCase().includes(E))})():a;$=!r||!i?o:[...o].sort((E,S)=>{const q=E[r]||"",Q=S[r]||"",U=String(q).localeCompare(String(Q));return i==="asc"?U:-U}),e[8]=n,e[9]=i,e[10]=r,e[11]=a,e[12]=$}else $=e[12];const T=$;let L;e[13]===Symbol.for("react.memo_cache_sentinel")?(L=[{id:"name",header:"Name",render:ye,sortable:!0},{id:"annotations",header:"Hints",render:je,cellClassName:"w-32 shrink-0"},{id:"description",header:"Description",render:ge,cellClassName:"flex-1",sortable:!0}],e[13]=L):L=e[13];const A=L;let O;e[14]===Symbol.for("react.memo_cache_sentinel")?(O=A.filter(xe).map(he),e[14]=O):O=e[14];const J=O;let N;e[15]!==y||e[16]!==f||e[17]!==i||e[18]!==r||e[19]!==j?(N=f&&t.jsx(de,{children:t.jsx(te,{viewMode:j,onViewModeChange:F,sortKey:r,sortDirection:i,onSort:y,sortOptions:J})}),e[15]=y,e[16]=f,e[17]=i,e[18]=r,e[19]=j,e[20]=N):N=e[20];let R;e[21]===Symbol.for("react.memo_cache_sentinel")?(R=o=>{o.key==="Escape"&&(I(""),o.target.blur())},e[21]=R):R=e[21];let v;e[22]!==n?(v=t.jsx(se,{value:n,onChange:I,placeholder:"Search tools...",onKeyDown:R}),e[22]=n,e[23]=v):v=e[23];let C;e[24]!==m||e[25]!==y||e[26]!==k||e[27]!==p||e[28]!==n||e[29]!==i||e[30]!==r||e[31]!==T||e[32]!==j?(C=j==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:T.length===0?t.jsx(B,{image:null,title:n?"No tools found":"No tools available",description:n?"Try adjusting your search terms":m}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:T.map(o=>t.jsx(re,{className:"cursor-pointer transition-colors",onClick:()=>k(o),children:t.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[t.jsx(ne,{icon:null,name:o.name,size:"md",className:"shrink-0 shadow-sm"}),t.jsxs("div",{className:"flex flex-col gap-0",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:o.name}),t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:o.description||"No description"})]})]})},o.name))})}):t.jsx(oe,{columns:A,data:T,isLoading:p,sortKey:r,sortDirection:i,onSort:y,onRowClick:o=>k(o),emptyState:t.jsx(B,{image:null,title:n?"No tools found":"No tools available",description:n?"Try adjusting your search terms":m})}),e[24]=m,e[25]=y,e[26]=k,e[27]=p,e[28]=n,e[29]=i,e[30]=r,e[31]=T,e[32]=j,e[33]=C):C=e[33];let b;e[34]!==v||e[35]!==C?(b=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[v,C]}),e[34]=v,e[35]=C,e[36]=b):b=e[36];let D;return e[37]!==b||e[38]!==N?(D=t.jsxs(t.Fragment,{children:[N,b]}),e[37]=b,e[38]=N,e[39]=D):D=e[39],D}function he(s){return{id:s.id,label:typeof s.header=="string"?s.header:s.id}}function xe(s){return s.sortable}function ge(s){return t.jsx("span",{className:"text-sm text-foreground",children:s.description||"—"})}function je(s){return t.jsx(pe,{annotations:s.annotations,_meta:s._meta})}function ye(s){return t.jsx("span",{className:"text-sm font-medium font-mono text-foreground",children:s.name})}function Ne(s){return s==="asc"?"desc":s==="desc"?null:"asc"}export{pe as T,Ee as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,ak as H,j as c,aW as W,a8 as K,am as C,ao as S,aX as Z,av as J,ai as Q,aY as ee,aZ as $,a_ as te,a$ as oe,ap as re,b0 as ne,b1 as se,c as j,z as ae}from"./index
|
|
1
|
+
import{r as i,ak as H,j as c,aW as W,a8 as K,am as C,ao as S,aX as Z,av as J,ai as Q,aY as ee,aZ as $,a_ as te,a$ as oe,ap as re,b0 as ne,b1 as se,c as j,z as ae}from"./index--v47KjFS.js";import{R as ie}from"./index-23ha-EiC.js";var[O]=re("Tooltip",[$]),D=$(),G="TooltipProvider",le=700,k="tooltip.open",[ce,L]=O(G),z=o=>{const{__scopeTooltip:e,delayDuration:t=le,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,l=i.useRef(!0),d=i.useRef(!1),a=i.useRef(0);return i.useEffect(()=>{const p=a.current;return()=>window.clearTimeout(p)},[]),c.jsx(ce,{scope:e,isOpenDelayedRef:l,delayDuration:t,onOpen:i.useCallback(()=>{window.clearTimeout(a.current),l.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:i.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};z.displayName=G;var R="Tooltip",[ue,_]=O(R),F=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:l,delayDuration:d}=o,a=L(R,o.__scopeTooltip),p=D(e),[u,v]=i.useState(null),x=J(),f=i.useRef(0),h=l??a.disableHoverableContent,T=d??a.delayDuration,g=i.useRef(!1),[y,m]=Q({prop:r,defaultProp:n??!1,onChange:I=>{I?(a.onOpen(),document.dispatchEvent(new CustomEvent(k))):a.onClose(),s?.(I)},caller:R}),w=i.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),E=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,m(!0)},[m]),P=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,m(!1)},[m]),N=i.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,m(!0),f.current=0},T)},[T,m]);return i.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(ee,{...p,children:c.jsx(ue,{scope:e,contentId:x,open:y,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:i.useCallback(()=>{a.isOpenDelayedRef.current?N():E()},[a.isOpenDelayedRef,N,E]),onTriggerLeave:i.useCallback(()=>{h?P():(window.clearTimeout(f.current),f.current=0)},[P,h]),onOpen:E,onClose:P,disableHoverableContent:h,children:t})})};F.displayName=R;var A="TooltipTrigger",B=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=_(A,t),s=L(A,t),l=D(t),d=i.useRef(null),a=H(e,d,n.onTriggerChange),p=i.useRef(!1),u=i.useRef(!1),v=i.useCallback(()=>p.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(W,{asChild:!0,...l,children:c.jsx(K.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:a,onPointerMove:C(o.onPointerMove,x=>{x.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:C(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:C(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:C(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:C(o.onBlur,n.onClose),onClick:C(o.onClick,n.onClose)})})});B.displayName=A;var M="TooltipPortal",[de,pe]=O(M,{forceMount:void 0}),Y=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=_(M,e);return c.jsx(de,{scope:e,forceMount:t,children:c.jsx(S,{present:t||s.open,children:c.jsx(Z,{asChild:!0,container:n,children:r})})})};Y.displayName=M;var b="TooltipContent",U=i.forwardRef((o,e)=>{const t=pe(b,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,l=_(b,o.__scopeTooltip);return c.jsx(S,{present:r||l.open,children:l.disableHoverableContent?c.jsx(V,{side:n,...s,ref:e}):c.jsx(fe,{side:n,...s,ref:e})})}),fe=i.forwardRef((o,e)=>{const t=_(b,o.__scopeTooltip),r=L(b,o.__scopeTooltip),n=i.useRef(null),s=H(e,n),[l,d]=i.useState(null),{trigger:a,onClose:p}=t,u=n.current,{onPointerInTransitChange:v}=r,x=i.useCallback(()=>{d(null),v(!1)},[v]),f=i.useCallback((h,T)=>{const g=h.currentTarget,y={x:h.clientX,y:h.clientY},m=ge(y,g.getBoundingClientRect()),w=Te(y,m),E=me(T.getBoundingClientRect()),P=Ce([...w,...E]);d(P),v(!0)},[v]);return i.useEffect(()=>()=>x(),[x]),i.useEffect(()=>{if(a&&u){const h=g=>f(g,u),T=g=>f(g,a);return a.addEventListener("pointerleave",h),u.addEventListener("pointerleave",T),()=>{a.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",T)}}},[a,u,f,x]),i.useEffect(()=>{if(l){const h=T=>{const g=T.target,y={x:T.clientX,y:T.clientY},m=a?.contains(g)||u?.contains(g),w=!ye(y,l);m?x():w&&(x(),p())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[a,u,l,p,x]),c.jsx(V,{...o,ref:s})}),[ve,xe]=O(R,{isInside:!1}),he=ne("TooltipContent"),V=i.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:l,...d}=o,a=_(b,t),p=D(t),{onClose:u}=a;return i.useEffect(()=>(document.addEventListener(k,u),()=>document.removeEventListener(k,u)),[u]),i.useEffect(()=>{if(a.trigger){const v=x=>{x.target?.contains(a.trigger)&&u()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[a.trigger,u]),c.jsx(te,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:v=>v.preventDefault(),onDismiss:u,children:c.jsxs(oe,{"data-state":a.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(he,{children:r}),c.jsx(ve,{scope:t,isInside:!0,children:c.jsx(ie,{id:a.contentId,role:"tooltip",children:n||r})})]})})});U.displayName=b;var X="TooltipArrow",q=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return xe(X,t).isInside?null:c.jsx(se,{...n,...r,ref:e})});q.displayName=X;function ge(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Te(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function me(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function ye(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,l=e.length-1;s<e.length;l=s++){const d=e[s],a=e[l],p=d.x,u=d.y,v=a.x,x=a.y;u>r!=x>r&&t<(v-p)*(r-u)/(x-u)+p&&(n=!n)}return n}function Ce(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),be(e)}function be(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],l=e[e.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var we=z,Ee=F,Pe=B,Re=Y,_e=U,je=q;function Oe(o){const e=j.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(we,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Ae(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Oe,{children:c.jsx(Ee,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function Le(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Pe,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function Me(o){const e=j.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const l=s===void 0?0:s;let d;e[5]!==r?(d=ae("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",r),e[5]=r,e[6]=d):d=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=c.jsx(je,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=a):a=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==l||e[11]!==d?(p=c.jsx(Re,{children:c.jsxs(_e,{"data-slot":"tooltip-content",sideOffset:l,className:d,...n,children:[t,a]})}),e[8]=t,e[9]=n,e[10]=l,e[11]=d,e[12]=p):p=e[12],p}export{Me as T,Le as a,Oe as b,Ae as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,c,j as l}from"./index
|
|
1
|
+
import{r,c,j as l}from"./index--v47KjFS.js";const s=r.createContext(null);function x(i){const t=c.c(3),{value:u,children:n}=i,o=u;let e;return t[0]!==n||t[1]!==o?(e=l.jsx(s.Provider,{value:o,children:n}),t[0]=n,t[1]=o,t[2]=e):e=t[2],e}function p(i){const t=r.useContext(s);if(!t)throw new Error("usePluginContext must be used within a PluginContextProvider");if(!t.connectionId||!t.connection||!t.toolCaller)throw new Error("usePluginContext requires a valid connection. Use { partial: true } in empty state components.");return t}r.createContext(null);export{x as P,p as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bi as A,bj as D,bk as N,bl as E,bm as O,bn as B,bo as V,bp as W,bq as C,br as K,bs as F,bt as J,bu as j,bv as Q,bw as $,bx as Y,by as Z,o,n as r,bz as x,bA as e,bB as l,D as c,bC as v,bD as n,bE as q,bF as T,bG as h,bH as u,bI as d,bJ as b,bK as I,bL as _}from"./index
|
|
1
|
+
import{bi as A,bj as D,bk as N,bl as E,bm as O,bn as B,bo as V,bp as W,bq as C,br as K,bs as F,bt as J,bu as j,bv as Q,bw as $,bx as Y,by as Z,o,n as r,bz as x,bA as e,bB as l,D as c,bC as v,bD as n,bE as q,bF as T,bG as h,bH as u,bI as d,bJ as b,bK as I,bL as _}from"./index--v47KjFS.js";var z="2026-01-26",G="ui/notifications/tool-input-partial",X=n([e("light"),e("dark")]).describe("Color theme preference for the host environment."),g=n([e("inline"),e("fullscreen"),e("pip")]).describe("Display mode for UI presentation."),ee=n([e("--color-background-primary"),e("--color-background-secondary"),e("--color-background-tertiary"),e("--color-background-inverse"),e("--color-background-ghost"),e("--color-background-info"),e("--color-background-danger"),e("--color-background-success"),e("--color-background-warning"),e("--color-background-disabled"),e("--color-text-primary"),e("--color-text-secondary"),e("--color-text-tertiary"),e("--color-text-inverse"),e("--color-text-ghost"),e("--color-text-info"),e("--color-text-danger"),e("--color-text-success"),e("--color-text-warning"),e("--color-text-disabled"),e("--color-border-primary"),e("--color-border-secondary"),e("--color-border-tertiary"),e("--color-border-inverse"),e("--color-border-ghost"),e("--color-border-info"),e("--color-border-danger"),e("--color-border-success"),e("--color-border-warning"),e("--color-border-disabled"),e("--color-ring-primary"),e("--color-ring-secondary"),e("--color-ring-inverse"),e("--color-ring-info"),e("--color-ring-danger"),e("--color-ring-success"),e("--color-ring-warning"),e("--font-sans"),e("--font-mono"),e("--font-weight-normal"),e("--font-weight-medium"),e("--font-weight-semibold"),e("--font-weight-bold"),e("--font-text-xs-size"),e("--font-text-sm-size"),e("--font-text-md-size"),e("--font-text-lg-size"),e("--font-heading-xs-size"),e("--font-heading-sm-size"),e("--font-heading-md-size"),e("--font-heading-lg-size"),e("--font-heading-xl-size"),e("--font-heading-2xl-size"),e("--font-heading-3xl-size"),e("--font-text-xs-line-height"),e("--font-text-sm-line-height"),e("--font-text-md-line-height"),e("--font-text-lg-line-height"),e("--font-heading-xs-line-height"),e("--font-heading-sm-line-height"),e("--font-heading-md-line-height"),e("--font-heading-lg-line-height"),e("--font-heading-xl-line-height"),e("--font-heading-2xl-line-height"),e("--font-heading-3xl-line-height"),e("--border-radius-xs"),e("--border-radius-sm"),e("--border-radius-md"),e("--border-radius-lg"),e("--border-radius-xl"),e("--border-radius-full"),e("--border-width-regular"),e("--shadow-hairline"),e("--shadow-sm"),e("--shadow-md"),e("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),oe=h(ee.describe(`Style variables for theming MCP apps.
|
|
2
2
|
|
|
3
3
|
Individual style keys are optional - hosts may provide any subset of these values.
|
|
4
4
|
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,u as m,K as c,x as T}from"./index
|
|
1
|
+
import{c as d,u as m,K as c,x as T}from"./index--v47KjFS.js";import{u as A}from"./useQuery-WdhzaCOu.js";import{u as g}from"./useMutation-BK2VTSKG.js";import{a as f,u as y}from"./constants-BJq0sg2N.js";function p(){const t=d.c(9),{org:e}=m();let o;t[0]!==e.id?(o={connectionId:f,orgId:e.id},t[0]=e.id,t[1]=o):o=t[1];const u=y(o);let s;t[2]!==e.id?(s=c.automations(e.id),t[2]=e.id,t[3]=s):s=t[3];let n;t[4]!==u?(n=async()=>{const a=await u.callTool({name:"AUTOMATION_LIST",arguments:{}});return(a.structuredContent??a).automations},t[4]=u,t[5]=n):n=t[5];let i;return t[6]!==s||t[7]!==n?(i={queryKey:s,queryFn:n,staleTime:1e4},t[6]=s,t[7]=n,t[8]=i):i=t[8],A(i)}function E(t){const e=d.c(12),{org:o}=m();let u;e[0]!==o.id?(u={connectionId:f,orgId:o.id},e[0]=o.id,e[1]=u):u=e[1];const s=y(u);let n;e[2]!==t||e[3]!==o.id?(n=c.automation(o.id,t),e[2]=t,e[3]=o.id,e[4]=n):n=e[4];let i;e[5]!==s||e[6]!==t?(i=async()=>{const r=await s.callTool({name:"AUTOMATION_GET",arguments:{id:t}});return(r.structuredContent??r).automation},e[5]=s,e[6]=t,e[7]=i):i=e[7];const a=!!t;let l;return e[8]!==n||e[9]!==i||e[10]!==a?(l={queryKey:n,queryFn:i,enabled:a,staleTime:1e4},e[8]=n,e[9]=i,e[10]=a,e[11]=l):l=e[11],A(l)}function K(){const t=d.c(10),{org:e}=m();let o;t[0]!==e.id?(o={connectionId:f,orgId:e.id},t[0]=e.id,t[1]=o):o=t[1];const u=y(o),s=T();let n;t[2]!==u?(n=async l=>{const r=await u.callTool({name:"AUTOMATION_CREATE",arguments:l});return r.structuredContent??r},t[2]=u,t[3]=n):n=t[3];let i;t[4]!==e.id||t[5]!==s?(i=()=>{s.invalidateQueries({queryKey:c.automations(e.id)})},t[4]=e.id,t[5]=s,t[6]=i):i=t[6];let a;return t[7]!==n||t[8]!==i?(a={mutationFn:n,onSuccess:i},t[7]=n,t[8]=i,t[9]=a):a=t[9],g(a)}function M(){const t=d.c(10),{org:e}=m();let o;t[0]!==e.id?(o={connectionId:f,orgId:e.id},t[0]=e.id,t[1]=o):o=t[1];const u=y(o),s=T();let n;t[2]!==u?(n=async l=>{const r=await u.callTool({name:"AUTOMATION_UPDATE",arguments:l});return r.structuredContent??r},t[2]=u,t[3]=n):n=t[3];let i;t[4]!==e.id||t[5]!==s?(i=(l,r)=>{s.invalidateQueries({queryKey:c.automations(e.id)}),typeof r.id=="string"&&s.invalidateQueries({queryKey:c.automation(e.id,r.id)})},t[4]=e.id,t[5]=s,t[6]=i):i=t[6];let a;return t[7]!==n||t[8]!==i?(a={mutationFn:n,onSuccess:i},t[7]=n,t[8]=i,t[9]=a):a=t[9],g(a)}function Q(){const t=d.c(10),{org:e}=m();let o;t[0]!==e.id?(o={connectionId:f,orgId:e.id},t[0]=e.id,t[1]=o):o=t[1];const u=y(o),s=T();let n;t[2]!==u?(n=async l=>{const r=await u.callTool({name:"AUTOMATION_DELETE",arguments:{id:l}});return r.structuredContent??r},t[2]=u,t[3]=n):n=t[3];let i;t[4]!==e.id||t[5]!==s?(i=()=>{s.invalidateQueries({queryKey:c.automations(e.id)})},t[4]=e.id,t[5]=s,t[6]=i):i=t[6];let a;return t[7]!==n||t[8]!==i?(a={mutationFn:n,onSuccess:i},t[7]=n,t[8]=i,t[9]=a):a=t[9],g(a)}function S(){const t=d.c(10),{org:e}=m();let o;t[0]!==e.id?(o={connectionId:f,orgId:e.id},t[0]=e.id,t[1]=o):o=t[1];const u=y(o),s=T();let n;t[2]!==u?(n=async l=>{const r=await u.callTool({name:"AUTOMATION_TRIGGER_ADD",arguments:l});return r.structuredContent??r},t[2]=u,t[3]=n):n=t[3];let i;t[4]!==e.id||t[5]!==s?(i=(l,r)=>{s.invalidateQueries({queryKey:c.automations(e.id)}),typeof r.automation_id=="string"&&s.invalidateQueries({queryKey:c.automation(e.id,r.automation_id)})},t[4]=e.id,t[5]=s,t[6]=i):i=t[6];let a;return t[7]!==n||t[8]!==i?(a={mutationFn:n,onSuccess:i},t[7]=n,t[8]=i,t[9]=a):a=t[9],g(a)}function U(){const t=d.c(10),{org:e}=m();let o;t[0]!==e.id?(o={connectionId:f,orgId:e.id},t[0]=e.id,t[1]=o):o=t[1];const u=y(o),s=T();let n;t[2]!==u?(n=async l=>{const r=await u.callTool({name:"AUTOMATION_TRIGGER_REMOVE",arguments:{trigger_id:l.trigger_id}});return r.structuredContent??r},t[2]=u,t[3]=n):n=t[3];let i;t[4]!==e.id||t[5]!==s?(i=(l,r)=>{s.invalidateQueries({queryKey:c.automations(e.id)}),s.invalidateQueries({queryKey:c.automation(e.id,r.automation_id)})},t[4]=e.id,t[5]=s,t[6]=i):i=t[6];let a;return t[7]!==n||t[8]!==i?(a={mutationFn:n,onSuccess:i},t[7]=n,t[8]=i,t[9]=a):a=t[9],g(a)}export{K as a,Q as b,E as c,M as d,S as e,U as f,p as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as v}from"./binder-BCOcjrHc.js";import{bR as O,ad as N,o as t,n as e,bG as g,D as c,bS as l,bT as D,bU as G,bB as i,_ as I,bD as m,bI as T,bA as n,bH as L,bV as M,bW as B,bX as U,bY as k,bZ as w,b_ as W,b$ as _}from"./index-Bs1-6MBJ.js";const F=N.extend({avatar:e().describe("URL or data URI to the assistant's avatar image"),system_prompt:e().describe("System prompt that defines the assistant's behavior"),virtual_mcp_id:e().describe("Virtual MCP ID to use for this assistant"),model:t({id:e().describe("Model ID"),connectionId:e().describe("Connection ID that provides the model")}).describe("Selected model reference for this assistant")}),j=O("assistant",F),Y=[...j],y=M(()=>m([B(),e(),i(),T(),g(e(),y),c(y)])),h=g(e(),g(e(),y)).optional().describe("Additional provider-specific options. Outer record keyed by provider name, inner by option key"),E=t({type:n("text"),text:e().describe("The text content"),providerOptions:h}),q=t({type:n("text"),text:e().describe("The text content"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),$=e().describe("File data as URL string"),R=t({type:n("file"),filename:e().optional().describe("Optional filename of the file"),data:$,mediaType:e().describe("IANA media type of the file (e.g., image/png, audio/mp3)"),providerOptions:h}),J=t({type:n("file"),mediaType:e().describe("IANA media type of the file (e.g., image/png, audio/mp3)"),data:e().describe("Generated file data as base64 encoded string")}),V=t({type:n("reasoning"),text:e().describe("The reasoning text"),providerOptions:h}),K=t({type:n("reasoning"),text:e().describe("The reasoning text"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),z=t({type:n("tool-call"),toolCallId:e().describe("ID of the tool call, used to match with tool result"),toolName:e().describe("Name of the tool being called"),input:e().describe("Arguments of the tool call (JSON-serializable object matching tool input schema)"),providerExecuted:T().optional().describe("Whether the tool call will be executed by the provider"),providerOptions:h}),H=t({type:n("tool-call"),toolCallId:e().describe("ID of the tool call"),toolName:e().describe("Name of the tool being called"),input:e().describe("Stringified JSON object with the tool call arguments"),providerExecuted:T().optional().describe("Whether the tool call will be executed by the provider"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),X=m([t({type:n("text"),value:e()}),t({type:n("json"),value:y}),t({type:n("error-text"),value:e()}),t({type:n("error-json"),value:y}),t({type:n("content"),value:c(m([t({type:n("text"),text:e().describe("Text content")}),t({type:n("media"),data:e().describe("Base-64 encoded media data"),mediaType:e().describe("IANA media type")})]))}),t({type:n("execution-denied"),reason:e().optional()}),e().describe("Raw or JSON-serialized output (e.g. from AI SDK mapToolResultOutput)")]),x=t({type:n("tool-result"),toolCallId:e().describe("ID of the tool call that this result is associated with"),toolName:e().describe("Name of the tool that generated this result"),output:X.describe("Result of the tool call"),result:L().describe("Unknown result of the tool call"),providerOptions:h}),Z=t({type:n("tool-result"),toolCallId:e().describe("ID of the tool call that this result is associated with"),toolName:e().describe("Name of the tool that generated this result"),result:l().describe("Result of the tool call (JSON-serializable)"),isError:T().optional().describe("Whether the result is an error or error message"),providerExecuted:T().optional().describe("Whether the tool result was generated by the provider"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),Q=m([t({type:n("source"),sourceType:n("url"),id:e().describe("The ID of the source"),url:e().describe("The URL of the source"),title:e().optional().describe("The title of the source"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),t({type:n("source"),sourceType:n("document"),id:e().describe("The ID of the source"),mediaType:e().describe("IANA media type of the document (e.g., application/pdf)"),title:e().describe("The title of the document"),filename:e().optional().describe("Optional filename of the document"),providerMetadata:l().optional().describe("Additional provider-specific metadata")})]),ee=t({role:n("system"),content:e().describe("System message content"),providerOptions:h}),te=t({role:n("user"),content:c(m([E,R])).describe("User message content parts (text or file)"),providerOptions:h}),oe=t({role:n("assistant"),content:c(m([E,R,V,z,x])).describe("Assistant message content parts (text, file, reasoning, tool-call, or tool-result)"),providerOptions:h}),ae=t({role:n("tool"),content:c(x).describe("Tool message content (tool results)"),providerOptions:h}),ne=m([ee,te,oe,ae]),ie=c(ne).describe("A list of messages forming the prompt"),re=t({prompt:ie.describe("A language model prompt is a standardized prompt type (array of messages with roles: system, user, assistant, tool)"),maxOutputTokens:i().optional().describe("Maximum number of tokens to generate"),temperature:i().optional().describe("Temperature setting. The range depends on the provider and model"),topP:i().optional().describe("Nucleus sampling parameter"),topK:i().optional().describe("Only sample from the top K options for each subsequent token. Used to remove long tail low probability responses"),presencePenalty:i().optional().describe("Presence penalty setting. It affects the likelihood of the model to repeat information that is already in the prompt"),frequencyPenalty:i().optional().describe("Frequency penalty setting. It affects the likelihood of the model to repeatedly use the same words or phrases"),seed:i().optional().describe("The seed (integer) to use for random sampling. If set and supported by the model, calls will generate deterministic results"),stopSequences:c(e()).optional().describe("Stop sequences. If set, the model will stop generating text when one of the stop sequences is generated"),responseFormat:m([t({type:n("text")}),t({type:n("json"),schema:l().optional().describe("JSON schema that the generated output should conform to"),name:e().optional().describe("Name of output that should be generated"),description:e().optional().describe("Description of the output that should be generated")})]).optional().describe("Response format. The output can either be text or JSON. Default is text"),tools:c(l()).optional().describe("The tools that are available for the model"),toolChoice:l().optional().describe("Specifies how the tool should be selected. Defaults to 'auto'"),includeRawChunks:T().optional().describe("Include raw chunks in the stream. Only applicable for streaming calls"),abortSignal:l().optional().describe("Abort signal for cancelling the operation"),providerOptions:l().optional().describe("Additional provider-specific options")}),se=t({content:c(m([q,J,K,H,Z,Q])).describe("Ordered content that the model has generated (text, tool-calls, reasoning, files, sources)"),finishReason:I(["stop","length","content-filter","tool-calls","error","other","unknown"]).describe("Reason why generation stopped"),usage:G({inputTokens:i().optional(),outputTokens:i().optional(),totalTokens:i().optional(),reasoningTokens:i().optional()}).describe("Usage information for the language model call"),providerMetadata:l().optional().describe("Additional provider-specific metadata"),request:t({body:l().optional().describe("Request HTTP body sent to the provider API")}).optional().describe("Optional request information for telemetry and debugging"),response:t({id:e().optional().describe("ID for the generated response"),timestamp:D().optional().describe("Timestamp for the start of the generated response"),modelId:e().optional().describe("The ID of the response model that was used"),headers:g(e(),e()).optional().describe("Response headers"),body:l().optional().describe("Response HTTP body")}).optional().describe("Optional response information for telemetry and debugging"),warnings:c(l()).describe("Warnings for the call, e.g. unsupported settings")});t({stream:l().describe("ReadableStream of LanguageModelV2StreamPart"),request:t({body:l().optional().describe("Request HTTP body sent to the provider API")}).optional().describe("Optional request information for telemetry and debugging"),response:t({headers:g(e(),e()).optional().describe("Response headers")}).optional().describe("Optional response data")});const le=t({supportedUrls:g(e(),c(e())).describe("Supported URL patterns by media type for the provider")});t({modelId:e().describe("The ID of the model"),logo:e().nullable(),description:e().nullable(),capabilities:c(e()),limits:t({contextWindow:i(),maxOutputTokens:i()}).nullable(),costs:t({input:i(),output:i()}).nullable(),provider:I(["openai","anthropic","google","x-ai","deepseek","openai-compatible","openrouter"]).nullable()});const A=t({modelId:e().describe("The ID of the model"),callOptions:re}),ce=N.extend({logo:e().nullable(),description:e().nullable(),capabilities:c(e()),limits:t({contextWindow:i(),maxOutputTokens:i()}).nullable(),costs:t({input:i(),output:i()}).nullable(),provider:I(["openai","anthropic","google","xai","deepseek","openai-compatible","openrouter"]).nullable()}),de=O("llm",ce,{readOnly:!0}),pe=[{name:"LLM_METADATA",inputSchema:t({modelId:e().describe("The ID of the model")}),outputSchema:le},{name:"LLM_DO_STREAM",inputSchema:A,streamable:!0},{name:"LLM_DO_GENERATE",inputSchema:A,outputSchema:se},...de],ue=t({scopes:c(e()).describe("List of scopes available"),stateSchema:g(e(),L()).describe("JSON Schema (draft-07) defining the state structure")}),me=[{name:"MCP_CONFIGURATION",inputSchema:t({}),outputSchema:ue}],he=t({}).strict(),be=t({billing:t({mode:I(["prepaid","postpaid"]),limitPeriod:I(["daily","weekly","monthly"]).nullable()}),limit:t({total:i().nullable(),remaining:i().nullable(),reset:e().nullable()}),usage:t({total:i(),daily:i(),weekly:i(),monthly:i()}),alert:t({enabled:T(),threshold_usd:i(),email:e().nullable()}),connectionId:e()}),fe=[{name:"GATEWAY_USAGE",inputSchema:he,outputSchema:be},{name:"GATEWAY_SET_LIMIT",inputSchema:t({}),outputSchema:t({}),opt:!0},{name:"GATEWAY_SET_ALERT",inputSchema:t({}),outputSchema:t({}),opt:!0}],C={LLMS:pe,WORKFLOW:W,WORKFLOW_EXECUTION:w,ASSISTANTS:Y,MCP:me,AI_GATEWAY_BILLING:fe,EVENT_BUS:k,TRIGGER:U},ge={"@deco/event-bus":"EVENT_BUS","@deco/llm":"LLMS","@deco/trigger":"TRIGGER"};function ve(o){if(o)return ge[o]}function Te(o){return o.map(a=>({name:a.name,inputSchema:a.inputSchema?(()=>{try{return _(a.inputSchema)}catch(s){return console.error(`Failed to convert input schema for ${a.name}:`,s),t({})}})():t({}),outputSchema:a.outputSchema?(()=>{try{return _(a.outputSchema)}catch(s){return console.error(`Failed to convert output schema for ${a.name}:`,s),t({})}})():t({})}))}function Se(o,a){const s=o.tools;if(!s||s.length===0)return!1;const r=s.map(p=>({name:p.name,inputSchema:p.inputSchema})),d=a.map(p=>({name:p.name,inputSchema:p.inputSchema,opt:p.opt}));return v(d).isImplementedBy(r)}function Le({connections:o,binding:a}){const s=(()=>{if(a){if(typeof a=="string"){const r=a.toUpperCase(),d=C[r];if(!d){console.warn(`[useBindingConnections] Unknown binding "${a}". Available bindings: ${Object.keys(C).join(", ")}. Returning all connections without filtering.`);return}return d}if(a.length===0){console.warn("[useBindingConnections] Empty binding array provided. Returning all connections without filtering.");return}return Te(a)}})();return o?s?o.filter(r=>Se(r,s)):o:[]}function Ie(o){return o.toLowerCase().split("_").map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")}function P(o){if(!o||o.length===0)return[];const a=/^COLLECTION_(.+)_LIST$/,s=[];for(const r of o){const d=r.name.match(a);d?.[1]&&s.push(d[1])}return s}function ye(o){return!o||o.length===0?!1:o.some(a=>a.name==="REGISTRY_ITEM_LIST"||a.name==="COLLECTION_REGISTRY_APP_LIST"?!0:a.name.startsWith("COLLECTION_REGISTRY_APP_"))}function Oe(o,a){const r=o.find(u=>u.name===`COLLECTION_${a}_CREATE`)?.inputSchema?.properties;if(r&&typeof r=="object"&&"data"in r)return r.data;const b=o.find(u=>u.name===`COLLECTION_${a}_UPDATE`)?.inputSchema?.properties;if(b&&typeof b=="object"&&"data"in b)return b.data;const S=o.find(u=>u.name===`COLLECTION_${a}_LIST`)?.outputSchema?.properties;if(S&&typeof S=="object"&&"items"in S){const u=S.items;if(u.items)return u.items}}function Ne(o,a){const s=a.toUpperCase();return{hasCreateTool:o.some(r=>r.name===`COLLECTION_${s}_CREATE`),hasUpdateTool:o.some(r=>r.name===`COLLECTION_${s}_UPDATE`),hasDeleteTool:o.some(r=>r.name===`COLLECTION_${s}_DELETE`)}}function _e(o){if(!o||o.length===0)return[];const a=P(o);if(a.length===0)return[];const s=[];for(const r of a)try{const d=O(r.toLowerCase(),N,{readOnly:!0}),b=o.map(f=>({name:f.name,inputSchema:f.inputSchema})),p=d.map(f=>({name:f.name,inputSchema:f.inputSchema}));if(v(p).isImplementedBy(b)){const f=Ne(o,r);s.push({name:r,displayName:Ie(r),schema:Oe(o,r),...f})}}catch{}return s}function Ee(o){return _e(o?.tools??null)}function Re(o){return o?o.filter(a=>P(a.tools).includes("REGISTRY_APP")||ye(a.tools)):[]}export{fe as A,Le as a,Ee as b,Se as c,ve as r,Re as u};
|
|
1
|
+
import{a as v}from"./binder-D-EP4Rws.js";import{bR as O,ad as N,o as t,n as e,bG as g,D as c,bS as l,bT as D,bU as G,bB as i,_ as I,bD as m,bI as T,bA as n,bH as L,bV as M,bW as B,bX as U,bY as k,bZ as w,b_ as W,b$ as _}from"./index--v47KjFS.js";const F=N.extend({avatar:e().describe("URL or data URI to the assistant's avatar image"),system_prompt:e().describe("System prompt that defines the assistant's behavior"),virtual_mcp_id:e().describe("Virtual MCP ID to use for this assistant"),model:t({id:e().describe("Model ID"),connectionId:e().describe("Connection ID that provides the model")}).describe("Selected model reference for this assistant")}),j=O("assistant",F),Y=[...j],y=M(()=>m([B(),e(),i(),T(),g(e(),y),c(y)])),h=g(e(),g(e(),y)).optional().describe("Additional provider-specific options. Outer record keyed by provider name, inner by option key"),E=t({type:n("text"),text:e().describe("The text content"),providerOptions:h}),q=t({type:n("text"),text:e().describe("The text content"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),$=e().describe("File data as URL string"),R=t({type:n("file"),filename:e().optional().describe("Optional filename of the file"),data:$,mediaType:e().describe("IANA media type of the file (e.g., image/png, audio/mp3)"),providerOptions:h}),J=t({type:n("file"),mediaType:e().describe("IANA media type of the file (e.g., image/png, audio/mp3)"),data:e().describe("Generated file data as base64 encoded string")}),V=t({type:n("reasoning"),text:e().describe("The reasoning text"),providerOptions:h}),K=t({type:n("reasoning"),text:e().describe("The reasoning text"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),z=t({type:n("tool-call"),toolCallId:e().describe("ID of the tool call, used to match with tool result"),toolName:e().describe("Name of the tool being called"),input:e().describe("Arguments of the tool call (JSON-serializable object matching tool input schema)"),providerExecuted:T().optional().describe("Whether the tool call will be executed by the provider"),providerOptions:h}),H=t({type:n("tool-call"),toolCallId:e().describe("ID of the tool call"),toolName:e().describe("Name of the tool being called"),input:e().describe("Stringified JSON object with the tool call arguments"),providerExecuted:T().optional().describe("Whether the tool call will be executed by the provider"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),X=m([t({type:n("text"),value:e()}),t({type:n("json"),value:y}),t({type:n("error-text"),value:e()}),t({type:n("error-json"),value:y}),t({type:n("content"),value:c(m([t({type:n("text"),text:e().describe("Text content")}),t({type:n("media"),data:e().describe("Base-64 encoded media data"),mediaType:e().describe("IANA media type")})]))}),t({type:n("execution-denied"),reason:e().optional()}),e().describe("Raw or JSON-serialized output (e.g. from AI SDK mapToolResultOutput)")]),x=t({type:n("tool-result"),toolCallId:e().describe("ID of the tool call that this result is associated with"),toolName:e().describe("Name of the tool that generated this result"),output:X.describe("Result of the tool call"),result:L().describe("Unknown result of the tool call"),providerOptions:h}),Z=t({type:n("tool-result"),toolCallId:e().describe("ID of the tool call that this result is associated with"),toolName:e().describe("Name of the tool that generated this result"),result:l().describe("Result of the tool call (JSON-serializable)"),isError:T().optional().describe("Whether the result is an error or error message"),providerExecuted:T().optional().describe("Whether the tool result was generated by the provider"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),Q=m([t({type:n("source"),sourceType:n("url"),id:e().describe("The ID of the source"),url:e().describe("The URL of the source"),title:e().optional().describe("The title of the source"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),t({type:n("source"),sourceType:n("document"),id:e().describe("The ID of the source"),mediaType:e().describe("IANA media type of the document (e.g., application/pdf)"),title:e().describe("The title of the document"),filename:e().optional().describe("Optional filename of the document"),providerMetadata:l().optional().describe("Additional provider-specific metadata")})]),ee=t({role:n("system"),content:e().describe("System message content"),providerOptions:h}),te=t({role:n("user"),content:c(m([E,R])).describe("User message content parts (text or file)"),providerOptions:h}),oe=t({role:n("assistant"),content:c(m([E,R,V,z,x])).describe("Assistant message content parts (text, file, reasoning, tool-call, or tool-result)"),providerOptions:h}),ae=t({role:n("tool"),content:c(x).describe("Tool message content (tool results)"),providerOptions:h}),ne=m([ee,te,oe,ae]),ie=c(ne).describe("A list of messages forming the prompt"),re=t({prompt:ie.describe("A language model prompt is a standardized prompt type (array of messages with roles: system, user, assistant, tool)"),maxOutputTokens:i().optional().describe("Maximum number of tokens to generate"),temperature:i().optional().describe("Temperature setting. The range depends on the provider and model"),topP:i().optional().describe("Nucleus sampling parameter"),topK:i().optional().describe("Only sample from the top K options for each subsequent token. Used to remove long tail low probability responses"),presencePenalty:i().optional().describe("Presence penalty setting. It affects the likelihood of the model to repeat information that is already in the prompt"),frequencyPenalty:i().optional().describe("Frequency penalty setting. It affects the likelihood of the model to repeatedly use the same words or phrases"),seed:i().optional().describe("The seed (integer) to use for random sampling. If set and supported by the model, calls will generate deterministic results"),stopSequences:c(e()).optional().describe("Stop sequences. If set, the model will stop generating text when one of the stop sequences is generated"),responseFormat:m([t({type:n("text")}),t({type:n("json"),schema:l().optional().describe("JSON schema that the generated output should conform to"),name:e().optional().describe("Name of output that should be generated"),description:e().optional().describe("Description of the output that should be generated")})]).optional().describe("Response format. The output can either be text or JSON. Default is text"),tools:c(l()).optional().describe("The tools that are available for the model"),toolChoice:l().optional().describe("Specifies how the tool should be selected. Defaults to 'auto'"),includeRawChunks:T().optional().describe("Include raw chunks in the stream. Only applicable for streaming calls"),abortSignal:l().optional().describe("Abort signal for cancelling the operation"),providerOptions:l().optional().describe("Additional provider-specific options")}),se=t({content:c(m([q,J,K,H,Z,Q])).describe("Ordered content that the model has generated (text, tool-calls, reasoning, files, sources)"),finishReason:I(["stop","length","content-filter","tool-calls","error","other","unknown"]).describe("Reason why generation stopped"),usage:G({inputTokens:i().optional(),outputTokens:i().optional(),totalTokens:i().optional(),reasoningTokens:i().optional()}).describe("Usage information for the language model call"),providerMetadata:l().optional().describe("Additional provider-specific metadata"),request:t({body:l().optional().describe("Request HTTP body sent to the provider API")}).optional().describe("Optional request information for telemetry and debugging"),response:t({id:e().optional().describe("ID for the generated response"),timestamp:D().optional().describe("Timestamp for the start of the generated response"),modelId:e().optional().describe("The ID of the response model that was used"),headers:g(e(),e()).optional().describe("Response headers"),body:l().optional().describe("Response HTTP body")}).optional().describe("Optional response information for telemetry and debugging"),warnings:c(l()).describe("Warnings for the call, e.g. unsupported settings")});t({stream:l().describe("ReadableStream of LanguageModelV2StreamPart"),request:t({body:l().optional().describe("Request HTTP body sent to the provider API")}).optional().describe("Optional request information for telemetry and debugging"),response:t({headers:g(e(),e()).optional().describe("Response headers")}).optional().describe("Optional response data")});const le=t({supportedUrls:g(e(),c(e())).describe("Supported URL patterns by media type for the provider")});t({modelId:e().describe("The ID of the model"),logo:e().nullable(),description:e().nullable(),capabilities:c(e()),limits:t({contextWindow:i(),maxOutputTokens:i()}).nullable(),costs:t({input:i(),output:i()}).nullable(),provider:I(["openai","anthropic","google","x-ai","deepseek","openai-compatible","openrouter"]).nullable()});const A=t({modelId:e().describe("The ID of the model"),callOptions:re}),ce=N.extend({logo:e().nullable(),description:e().nullable(),capabilities:c(e()),limits:t({contextWindow:i(),maxOutputTokens:i()}).nullable(),costs:t({input:i(),output:i()}).nullable(),provider:I(["openai","anthropic","google","xai","deepseek","openai-compatible","openrouter"]).nullable()}),de=O("llm",ce,{readOnly:!0}),pe=[{name:"LLM_METADATA",inputSchema:t({modelId:e().describe("The ID of the model")}),outputSchema:le},{name:"LLM_DO_STREAM",inputSchema:A,streamable:!0},{name:"LLM_DO_GENERATE",inputSchema:A,outputSchema:se},...de],ue=t({scopes:c(e()).describe("List of scopes available"),stateSchema:g(e(),L()).describe("JSON Schema (draft-07) defining the state structure")}),me=[{name:"MCP_CONFIGURATION",inputSchema:t({}),outputSchema:ue}],he=t({}).strict(),be=t({billing:t({mode:I(["prepaid","postpaid"]),limitPeriod:I(["daily","weekly","monthly"]).nullable()}),limit:t({total:i().nullable(),remaining:i().nullable(),reset:e().nullable()}),usage:t({total:i(),daily:i(),weekly:i(),monthly:i()}),alert:t({enabled:T(),threshold_usd:i(),email:e().nullable()}),connectionId:e()}),fe=[{name:"GATEWAY_USAGE",inputSchema:he,outputSchema:be},{name:"GATEWAY_SET_LIMIT",inputSchema:t({}),outputSchema:t({}),opt:!0},{name:"GATEWAY_SET_ALERT",inputSchema:t({}),outputSchema:t({}),opt:!0}],C={LLMS:pe,WORKFLOW:W,WORKFLOW_EXECUTION:w,ASSISTANTS:Y,MCP:me,AI_GATEWAY_BILLING:fe,EVENT_BUS:k,TRIGGER:U},ge={"@deco/event-bus":"EVENT_BUS","@deco/llm":"LLMS","@deco/trigger":"TRIGGER"};function ve(o){if(o)return ge[o]}function Te(o){return o.map(a=>({name:a.name,inputSchema:a.inputSchema?(()=>{try{return _(a.inputSchema)}catch(s){return console.error(`Failed to convert input schema for ${a.name}:`,s),t({})}})():t({}),outputSchema:a.outputSchema?(()=>{try{return _(a.outputSchema)}catch(s){return console.error(`Failed to convert output schema for ${a.name}:`,s),t({})}})():t({})}))}function Se(o,a){const s=o.tools;if(!s||s.length===0)return!1;const r=s.map(p=>({name:p.name,inputSchema:p.inputSchema})),d=a.map(p=>({name:p.name,inputSchema:p.inputSchema,opt:p.opt}));return v(d).isImplementedBy(r)}function Le({connections:o,binding:a}){const s=(()=>{if(a){if(typeof a=="string"){const r=a.toUpperCase(),d=C[r];if(!d){console.warn(`[useBindingConnections] Unknown binding "${a}". Available bindings: ${Object.keys(C).join(", ")}. Returning all connections without filtering.`);return}return d}if(a.length===0){console.warn("[useBindingConnections] Empty binding array provided. Returning all connections without filtering.");return}return Te(a)}})();return o?s?o.filter(r=>Se(r,s)):o:[]}function Ie(o){return o.toLowerCase().split("_").map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")}function P(o){if(!o||o.length===0)return[];const a=/^COLLECTION_(.+)_LIST$/,s=[];for(const r of o){const d=r.name.match(a);d?.[1]&&s.push(d[1])}return s}function ye(o){return!o||o.length===0?!1:o.some(a=>a.name==="REGISTRY_ITEM_LIST"||a.name==="COLLECTION_REGISTRY_APP_LIST"?!0:a.name.startsWith("COLLECTION_REGISTRY_APP_"))}function Oe(o,a){const r=o.find(u=>u.name===`COLLECTION_${a}_CREATE`)?.inputSchema?.properties;if(r&&typeof r=="object"&&"data"in r)return r.data;const b=o.find(u=>u.name===`COLLECTION_${a}_UPDATE`)?.inputSchema?.properties;if(b&&typeof b=="object"&&"data"in b)return b.data;const S=o.find(u=>u.name===`COLLECTION_${a}_LIST`)?.outputSchema?.properties;if(S&&typeof S=="object"&&"items"in S){const u=S.items;if(u.items)return u.items}}function Ne(o,a){const s=a.toUpperCase();return{hasCreateTool:o.some(r=>r.name===`COLLECTION_${s}_CREATE`),hasUpdateTool:o.some(r=>r.name===`COLLECTION_${s}_UPDATE`),hasDeleteTool:o.some(r=>r.name===`COLLECTION_${s}_DELETE`)}}function _e(o){if(!o||o.length===0)return[];const a=P(o);if(a.length===0)return[];const s=[];for(const r of a)try{const d=O(r.toLowerCase(),N,{readOnly:!0}),b=o.map(f=>({name:f.name,inputSchema:f.inputSchema})),p=d.map(f=>({name:f.name,inputSchema:f.inputSchema}));if(v(p).isImplementedBy(b)){const f=Ne(o,r);s.push({name:r,displayName:Ie(r),schema:Oe(o,r),...f})}}catch{}return s}function Ee(o){return _e(o?.tools??null)}function Re(o){return o?o.filter(a=>P(a.tools).includes("REGISTRY_APP")||ye(a.tools)):[]}export{fe as A,Le as a,Ee as b,Se as c,ve as r,Re as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as I,c as K,x as D,w}from"./index
|
|
1
|
+
import{v as I,c as K,x as D,w}from"./index--v47KjFS.js";import{u as x}from"./useMutation-BK2VTSKG.js";import{K as A}from"./constants-BJq0sg2N.js";function q(o,n,s){const t=[];if(o?.trim()){const e=o.trim(),r=s.map(a=>({field:[String(a)],operator:"contains",value:e}));r.length===1&&r[0]?t.push(r[0]):r.length>1&&t.push({operator:"or",conditions:r})}if(n&&n.length>0)for(const e of n)t.push({field:[e.column],operator:"eq",value:e.value});if(t.length!==0)return t.length===1?t[0]:{operator:"and",conditions:t}}function U(o,n,s){const t=o??s,e=n??"asc";return[{field:[String(t)],direction:e}]}function O(o){if(!o||typeof o!="object")throw new Error("Invalid result");if("isError"in o&&o.isError)throw new Error("content"in o&&Array.isArray(o.content)&&o.content[0]?.type==="text"?o.content[0].text:"Unknown error");if("structuredContent"in o)return o.structuredContent;throw new Error("No structured content found")}function Y(o,n,s,t){const e=K.c(14);let r,a,u;if(e[0]!==t||e[1]!==n||e[2]!==s||e[3]!==o){const i=n.toUpperCase();r=`COLLECTION_${i}_GET`,u=I,a=A.collectionItem(t,o,"",i,s??""),e[0]=t,e[1]=n,e[2]=s,e[3]=o,e[4]=r,e[5]=a,e[6]=u}else r=e[4],a=e[5],u=e[6];let c;e[7]!==t||e[8]!==r||e[9]!==s?(c=async()=>{if(!s)return{item:null};const i=await t.callTool({name:r,arguments:{id:s}});return O(i)},e[7]=t,e[8]=r,e[9]=s,e[10]=c):c=e[10];let f;e[11]!==a||e[12]!==c?(f={queryKey:a,queryFn:c,staleTime:6e4},e[11]=a,e[12]=c,e[13]=f):f=e[13];const{data:p}=u(f);return p?.item??null}const Q={structuredContent:{items:[]},isError:!1};function j(o,n,s,t={}){const{searchTerm:e,filters:r,sortKey:a,sortDirection:u,searchFields:c=["title","description"],defaultSortKey:f="updated_at",pageSize:p=100}=t,i=n.toUpperCase(),m=`COLLECTION_${i}_LIST`,d=q(e,r,c),y=U(a,u,f),E={...d&&{where:d},...y&&{orderBy:y},limit:p,offset:0},g=JSON.stringify(E),C=A.collectionList(s,o,"",i,g),{data:S}=I({queryKey:C,queryFn:async()=>s?await s.callTool({name:m,arguments:E}):Q,staleTime:3e4,retry:!1,select:h=>O(h??{})?.items??[]});return S}function G(o,n,s,t={}){const{searchTerm:e,filters:r,sortKey:a,sortDirection:u,searchFields:c=["title","description"],defaultSortKey:f="updated_at",pageSize:p=100}=t,i=n.toUpperCase(),m=q(e,r,c),d=U(a,u,f),y={...m&&{where:m},...d&&{orderBy:d},limit:p,offset:0},E=JSON.stringify(y);return A.collectionList(o,s,"",i,E)}function W(o,n,s){const t=K.c(34),e=D();let r;t[0]!==n?(r=n.toUpperCase(),t[0]=n,t[1]=r):r=t[1];const a=r,u=`COLLECTION_${a}_CREATE`,c=`COLLECTION_${a}_UPDATE`,f=`COLLECTION_${a}_DELETE`;let p;t[2]!==e||t[3]!==o||t[4]!==a?(p=()=>{e.invalidateQueries({predicate:_=>{const l=_.queryKey;return l[1]===o&&l[3]==="collection"&&l[4]===a}})},t[2]=e,t[3]=o,t[4]=a,t[5]=p):p=t[5];const i=p;let m;t[6]!==s||t[7]!==u?(m=async _=>{const l=await s.callTool({name:u,arguments:{data:_}});if(l.isError)throw new Error(Array.isArray(l.content)?l.content[0]?.text:String(l.content));return O(l).item},t[6]=s,t[7]=u,t[8]=m):m=t[8];let d;t[9]!==i?(d=()=>{i(),w.success("Item created successfully")},t[9]=i,t[10]=d):d=t[10];let y;t[11]!==m||t[12]!==d?(y={mutationFn:m,onSuccess:d,onError:P},t[11]=m,t[12]=d,t[13]=y):y=t[13];const E=x(y);let g;t[14]!==s||t[15]!==c?(g=async _=>{const{id:l,data:v}=_,b=await s.callTool({name:c,arguments:{id:l,data:v}});return O(b).item},t[14]=s,t[15]=c,t[16]=g):g=t[16];let C;t[17]!==i?(C=()=>{i(),w.success("Item updated successfully")},t[17]=i,t[18]=C):C=t[18];let S;t[19]!==g||t[20]!==C?(S={mutationFn:g,onSuccess:C,onError:B},t[19]=g,t[20]=C,t[21]=S):S=t[21];const h=x(S);let T;t[22]!==s||t[23]!==f?(T=async _=>{const l=await s.callTool({name:f,arguments:{id:_}});return O(l).item.id},t[22]=s,t[23]=f,t[24]=T):T=t[24];let L;t[25]!==i?(L=()=>{i(),w.success("Item deleted successfully")},t[25]=i,t[26]=L):L=t[26];let N;t[27]!==T||t[28]!==L?(N={mutationFn:T,onSuccess:L,onError:k},t[27]=T,t[28]=L,t[29]=N):N=t[29];const $=x(N);let F;return t[30]!==E||t[31]!==$||t[32]!==h?(F={create:E,update:h,delete:$},t[30]=E,t[31]=$,t[32]=h,t[33]=F):F=t[33],F}function k(o){const n=o instanceof Error?o.message:String(o);w.error(`Failed to delete item: ${n}`)}function B(o){const n=o instanceof Error?o.message:String(o);w.error(`Failed to update item: ${n}`)}function P(o){const n=o instanceof Error?o.message:String(o);w.error(`Failed to create item: ${n}`)}export{Q as E,U as a,G as b,q as c,Y as d,j as e,W as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,u as r}from"./index
|
|
1
|
+
import{c,u as r}from"./index--v47KjFS.js";import{e as C,u as a,d as I}from"./use-collections-CobBqkkk.js";import{a as d,u as l}from"./constants-BJq0sg2N.js";function p(t){const o=c.c(4);let n;o[0]!==t?(n=t===void 0?{}:t,o[0]=t,o[1]=n):n=o[1];const e=n,{org:i}=r();let s;o[2]!==i.id?(s={connectionId:d,orgId:i.id},o[2]=i.id,o[3]=s):s=o[3];const u=l(s);return C(i.id,"CONNECTIONS",u,e)}function g(t){const o=c.c(2),{org:n}=r();let e;o[0]!==n.id?(e={connectionId:d,orgId:n.id},o[0]=n.id,o[1]=e):e=o[1];const i=l(e);return I(n.id,"CONNECTIONS",t,i)}function O(){const t=c.c(2),{org:o}=r();let n;t[0]!==o.id?(n={connectionId:d,orgId:o.id},t[0]=o.id,t[1]=n):n=t[1];const e=l(n);return a(o.id,"CONNECTIONS",e)}export{O as a,p as b,g as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,c}from"./index
|
|
1
|
+
import{r,c}from"./index--v47KjFS.js";const l=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M5 12h14m0 0-7-7m7 7-7 7"}));l.displayName="ArrowRight";const d=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M10.5 9.002a2.248 2.248 0 0 1 4.369.75C14.869 11.25 12.62 12 12.62 12m.028 3h.01m-.16 5a8.5 8.5 0 1 0-8.056-5.783c.108.32.162.481.172.604a.899.899 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021.07.002.12.009.187.024.069.016.155.05.329.116A8.478 8.478 0 0 0 12.5 20Z"}));d.displayName="MessageQuestionCircle";function h(){const e=c.c(3),[t,o]=r.useState(!1);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=async s=>{await navigator.clipboard.writeText(s),o(!0),setTimeout(()=>o(!1),2e3)},e[0]=i):i=e[0];const n=i;let a;return e[1]!==t?(a={handleCopy:n,copied:t},e[1]=t,e[2]=a):a=e[2],a}export{l as i,d as t,h as u};
|
package/dist/client/assets/{use-create-virtual-mcp-CsD8b5oZ.js → use-create-virtual-mcp-44rNe9r4.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--v47KjFS.js";import{a as v}from"./use-virtual-mcp-D_pRY4Y5.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as y,f as C,w as e}from"./index
|
|
1
|
+
import{u as y,f as C,w as e}from"./index--v47KjFS.js";import{u as g}from"./use-binding-C6wyTPOH.js";import{a as S,b as v}from"./use-connection-CUBEGKKv.js";import{e as w}from"./extract-connection-data-is00SRVb.js";import{f as B,c as I,e as P}from"./registry-utils-DRlaL1TA.js";function _(t){return t.startsWith("@")?t:`@${t}`}function F(){const{org:t}=y(),{data:s}=C.useSession(),i=S(),l=v(),u=g(l);return{installByBinding:async r=>{if(!t||!s?.user?.id){e.error("Not authenticated");return}const d=_(r),a=(await Promise.all(u.map(async o=>{const c=B(o.tools);if(!c)return null;try{const h=await I(o.id,t.id,c,{where:{appName:d}});return P(h??[])[0]??null}catch{return null}}))).find(o=>o!==null);if(!a){e.error(`MCP Server not found in registry: ${r}`);return}const n=w(a,t.id,s.user.id),m=n.connection_type==="STDIO",f=!!n.connection_url,p=m&&n.connection_headers&&typeof n.connection_headers=="object"&&"command"in n.connection_headers;if(!f&&!p){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{F as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as u,c as w}from"./index
|
|
1
|
+
import{r as u,c as w}from"./index--v47KjFS.js";import{u as E}from"./use-view-mode-bhKhl_no.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 m,u as P,v as T,K as g}from"./index
|
|
1
|
+
import{c as m,u as P,v as T,K as g}from"./index--v47KjFS.js";import{u as L}from"./useQuery-WdhzaCOu.js";import{a as S,u as _}from"./constants-BJq0sg2N.js";function R(){const t=m.c(9),{locator:e,org:c}=P();let n;t[0]!==c.id?(n={connectionId:S,orgId:c.id},t[0]=c.id,t[1]=n):n=t[1];const r=_(n);let o;t[2]!==e?(o=g.aiProviders(e),t[2]=e,t[3]=o):o=t[3];let s;t[4]!==r?(s=async()=>(await r.callTool({name:"AI_PROVIDERS_LIST",arguments:{}})).structuredContent,t[4]=r,t[5]=s):s=t[5];let l;t[6]!==o||t[7]!==s?(l={queryKey:o,staleTime:1/0,queryFn:s},t[6]=o,t[7]=s,t[8]=l):l=t[8];const{data:i}=T(l);return i}function p(){const t=m.c(11),{locator:e,org:c}=P();let n;t[0]!==c.id?(n={connectionId:S,orgId:c.id},t[0]=c.id,t[1]=n):n=t[1];const r=_(n);let o;t[2]!==e?(o=g.aiProviderKeys(e),t[2]=e,t[3]=o):o=t[3];let s;t[4]!==r?(s=async()=>(await r.callTool({name:"AI_PROVIDER_KEY_LIST",arguments:{}})).structuredContent??null,t[4]=r,t[5]=s):s=t[5];let l;t[6]!==o||t[7]!==s?(l={queryKey:o,staleTime:6e4,queryFn:s},t[6]=o,t[7]=s,t[8]=l):l=t[8];const{data:i}=T(l);let a;return t[9]!==i?.keys?(a=i?.keys??[],t[9]=i?.keys,t[10]=a):a=t[10],a}function q(t){const e=m.c(17),{locator:c,org:n}=P();let r;e[0]!==n.id?(r={connectionId:S,orgId:n.id},e[0]=n.id,e[1]=r):r=e[1];const o=_(r);let s;e[2]!==t||e[3]!==c?(s=g.aiProviderModels(c,t??""),e[2]=t,e[3]=c,e[4]=s):s=e[4];const l=!!t;let i;e[5]!==o||e[6]!==t?(i=async()=>(await o.callTool({name:"AI_PROVIDERS_LIST_MODELS",arguments:{keyId:t}})).structuredContent??null,e[5]=o,e[6]=t,e[7]=i):i=e[7];let a;e[8]!==s||e[9]!==l||e[10]!==i?(a={queryKey:s,enabled:l,staleTime:6e4,queryFn:i},e[8]=s,e[9]=l,e[10]=i,e[11]=a):a=e[11];const{data:u,isLoading:I}=L(a);let d;e[12]!==u?.models?(d=u?.models??[],e[12]=u?.models,e[13]=d):d=e[13];const y=!!t&&I;let f;return e[14]!==d||e[15]!==y?(f={models:d,isLoading:y},e[14]=d,e[15]=y,e[16]=f):f=e[16],f}function C(t){const e=m.c(13),{locator:c,org:n}=P();let r;e[0]!==n.id?(r={connectionId:S,orgId:n.id},e[0]=n.id,e[1]=r):r=e[1];const o=_(r);let s;e[2]!==t||e[3]!==c?(s=g.aiProviderModels(c,t),e[2]=t,e[3]=c,e[4]=s):s=e[4];let l;e[5]!==o||e[6]!==t?(l=async()=>(await o.callTool({name:"AI_PROVIDERS_LIST_MODELS",arguments:{keyId:t}})).structuredContent??null,e[5]=o,e[6]=t,e[7]=l):l=e[7];let i;e[8]!==s||e[9]!==l?(i={queryKey:s,staleTime:6e4,queryFn:l},e[8]=s,e[9]=l,e[10]=i):i=e[10];const{data:a}=T(i);let u;return e[11]!==a?.models?(u=a?.models??[],e[11]=a?.models,e[12]=u):u=e[12],u}export{R as a,p as b,C as c,q as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as q,x as D}from"./index
|
|
1
|
+
import{c as q,x as D}from"./index--v47KjFS.js";import{u as F}from"./useQuery-WdhzaCOu.js";import{u as J}from"./useMutation-BK2VTSKG.js";function N(e){try{return JSON.parse(e)}catch{return}}function d(e,s){const t=localStorage.getItem(e),o=t?N(t):void 0,c=typeof s=="function"?s(o):o??s;if(o===void 0||c!==o)try{const n=JSON.stringify(c);localStorage.setItem(e,n)}catch{}return c}function L(e,s){const t=q.c(25),o=D();let c;t[0]!==e?(c=["localStorage",e],t[0]=e,t[1]=c):c=t[1];const n=c;let a,i;t[2]!==s||t[3]!==e?(a=()=>d(e,s),i=()=>d(e,s),t[2]=s,t[3]=e,t[4]=a,t[5]=i):(a=t[4],i=t[5]);let f;t[6]!==n||t[7]!==a||t[8]!==i?(f={queryKey:n,queryFn:a,initialData:i,staleTime:1/0,gcTime:1/0},t[6]=n,t[7]=a,t[8]=i,t[9]=f):f=t[9];const{data:v}=F(f);let u;t[10]!==e?(u=async r=>{const I=JSON.stringify(r);return localStorage.setItem(e,I),r},t[10]=e,t[11]=u):u=t[11];let l;t[12]!==o||t[13]!==n?(l=r=>{o.setQueryData(n,r)},t[12]=o,t[13]=n,t[14]=l):l=t[14];let m;t[15]!==u||t[16]!==l?(m={mutationFn:u,onSuccess:l},t[15]=u,t[16]=l,t[17]=m):m=t[17];const p=J(m);let g;t[18]!==p||t[19]!==o||t[20]!==n?(g=r=>{const I=o.getQueryData(n),Q=typeof r=="function"?r(I):r;p.mutate(Q)},t[18]=p,t[19]=o,t[20]=n,t[21]=g):g=t[21];const y=g,x=v;let S;return t[22]!==y||t[23]!==x?(S=[x,y],t[22]=y,t[23]=x,t[24]=S):S=t[24],S}export{L as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as l,v as c,a4 as m,a5 as f}from"./index
|
|
1
|
+
import{c as l,v as c,a4 as m,a5 as f}from"./index--v47KjFS.js";import{u as y}from"./useQuery-WdhzaCOu.js";import{K as n}from"./constants-BJq0sg2N.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 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],c(a)}function w(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{w as a,q as g,u as l,d as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,v as f,a4 as m,a5 as p}from"./index
|
|
1
|
+
import{c as a,v as f,a4 as m,a5 as p}from"./index--v47KjFS.js";import{u as R}from"./useQuery-WdhzaCOu.js";import{K as n}from"./constants-BJq0sg2N.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,v as p}from"./index
|
|
1
|
+
import{c as m,v as p}from"./index--v47KjFS.js";import{u as q}from"./useQuery-WdhzaCOu.js";import{u as C}from"./useMutation-BK2VTSKG.js";import{K as T}from"./constants-BJq0sg2N.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,v as u,K as i,f as a}from"./index
|
|
1
|
+
import{c as n,u as o,v as u,K as i,f as a}from"./index--v47KjFS.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{c as m,r}from"./index
|
|
1
|
+
import{c as m,r}from"./index--v47KjFS.js";const a=768,o=()=>globalThis.innerWidth<a;function u(){const e=m.c(2),[l,n]=r.useState(o);let t,s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{const i=()=>n(o),c=globalThis.matchMedia(`(max-width: ${a-1}px)`);return c.addEventListener("change",i),n(o),()=>c.removeEventListener("change",i)},s=[],e[0]=t,e[1]=s):(t=e[0],s=e[1]),r.useEffect(t,s),l}export{u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{K as m,c as C,v as T}from"./index
|
|
1
|
+
import{K as m,c as C,v as T}from"./index--v47KjFS.js";import{u as y}from"./useQuery-WdhzaCOu.js";import{u as f,a}from"./constants-BJq0sg2N.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,r as f}from"./index
|
|
1
|
+
import{c as p,r as f}from"./index--v47KjFS.js";import{u as w}from"./use-mobile-DfdfcC2T.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--v47KjFS.js";import{e as a,u as C,d as I}from"./use-collections-CobBqkkk.js";import{a as l,u}from"./constants-BJq0sg2N.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-Bv6Q8uee.js";import{Q as i}from"./index--v47KjFS.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ay as l,az as p,aA as n,aB as d,aC as h,x as b,r as o,aD as m,aE as f}from"./index
|
|
1
|
+
import{ay as l,az as p,aA as n,aB as d,aC as h,x as b,r as o,aD as m,aE as f}from"./index--v47KjFS.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{Q as u,U as s}from"./index--v47KjFS.js";function o(e,r){return u(e,s,r)}export{o as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as s}from"./infiniteQueryObserver-Bv6Q8uee.js";import{Q as u,R as n}from"./index--v47KjFS.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,z as y,j as t}from"./index
|
|
1
|
+
import{c as w,u as C,K as S,z as y,j as t}from"./index--v47KjFS.js";import{A as E}from"./avatar-XKo1hvHY.js";import{u as k}from"./useQuery-WdhzaCOu.js";import{a as A,u as _}from"./constants-BJq0sg2N.js";function z(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 T(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}=z(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{T as U};
|