decocms 2.175.0 → 2.175.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-5ZbLDi3s.js → AlertCircle-De9oqjty.js} +1 -1
- package/dist/client/assets/{AlignLeft-D4ghzTQG.js → AlignLeft-BaG4OcCg.js} +1 -1
- package/dist/client/assets/{ArrowDown-B5WC3D5H.js → ArrowDown-PFFBPH3j.js} +1 -1
- package/dist/client/assets/{ArrowLeft-D0Lalw4x.js → ArrowLeft-CPWCs_Od.js} +1 -1
- package/dist/client/assets/{ArrowUp-tKKJvEkq.js → ArrowUp-C6Q-EpUw.js} +1 -1
- package/dist/client/assets/{Check-CuWDIJeM.js → Check-BfKCyKXX.js} +1 -1
- package/dist/client/assets/{CheckCircle-wz1RfkCA.js → CheckCircle-DiRi76qb.js} +1 -1
- package/dist/client/assets/{CheckDone01-UsIketHR.js → CheckDone01-ZekLHdFZ.js} +1 -1
- package/dist/client/assets/{CheckVerified02-cu3amtx9.js → CheckVerified02-DC3VT092.js} +1 -1
- package/dist/client/assets/{ChevronDown-D0TXudCx.js → ChevronDown-BHMaRWRt.js} +1 -1
- package/dist/client/assets/{ChevronLeft-BZsszCLQ.js → ChevronLeft-0cpA2yNq.js} +1 -1
- package/dist/client/assets/{ChevronRight-UJRwW9xN.js → ChevronRight-1g9z-Z5h.js} +1 -1
- package/dist/client/assets/{ChevronUp-DXMXl76b.js → ChevronUp-1s_S3eDF.js} +1 -1
- package/dist/client/assets/{Clock-DKQ7EGj-.js → Clock-rHd8cQAO.js} +1 -1
- package/dist/client/assets/{Code01-DZzuHJh9.js → Code01-CoTQP8pZ.js} +1 -1
- package/dist/client/assets/{Coins01-DWo6Ypxq.js → Coins01-D7lfLTbO.js} +1 -1
- package/dist/client/assets/{Container-YdffBHg3.js → Container-DwxLlgWA.js} +1 -1
- package/dist/client/assets/{Copy01-CPHBT83w.js → Copy01-CIUDy0Hr.js} +1 -1
- package/dist/client/assets/{Dataflow03-CUuQJ-m_.js → Dataflow03-T9TmjQN-.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-DUoeCjzn.js → DotsHorizontal-CmCKbvuJ.js} +1 -1
- package/dist/client/assets/{DotsVertical-BaBvJOuP.js → DotsVertical-Y8XpM2B_.js} +1 -1
- package/dist/client/assets/{Download01-D5-Ilwwi.js → Download01-LinNp3zy.js} +1 -1
- package/dist/client/assets/{Edit01-Dpq6F4lk.js → Edit01-Dw-lPBk-.js} +1 -1
- package/dist/client/assets/{Edit05-h0OeCHXT.js → Edit05-Bx682Mm6.js} +1 -1
- package/dist/client/assets/{Eye-DDwMVcxZ.js → Eye-JuDcZhJz.js} +1 -1
- package/dist/client/assets/{EyeOff-D8njwIM7.js → EyeOff-9_-SJWcU.js} +1 -1
- package/dist/client/assets/{File02-Bc8tH3v5.js → File02-bFwU_wEK.js} +1 -1
- package/dist/client/assets/{File06-ZV5CfSHG.js → File06-CU5oU1OI.js} +1 -1
- package/dist/client/assets/{FilterLines-aqS8nu95.js → FilterLines-BaTxnUjH.js} +1 -1
- package/dist/client/assets/{Globe01-BdWDm7Ni.js → Globe01-DUjsFcPS.js} +1 -1
- package/dist/client/assets/{Globe02-Cn3qFriL.js → Globe02-k3_A41kp.js} +1 -1
- package/dist/client/assets/{Grid01-Gq7hBl7S.js → Grid01-DBOkAm2V.js} +1 -1
- package/dist/client/assets/{Hash02-CmJ0Y9N4.js → Hash02-gqJDwuju.js} +1 -1
- package/dist/client/assets/{Home02-Dz88FEOV.js → Home02-DfEb-Myv.js} +1 -1
- package/dist/client/assets/{Image01-DBWShOGl.js → Image01-I9pAeT0N.js} +1 -1
- package/dist/client/assets/{Inbox01-CJphqD3y.js → Inbox01-BgDmihAV.js} +1 -1
- package/dist/client/assets/{InfoCircle-uEl5PLW5.js → InfoCircle-LX1SVC24.js} +1 -1
- package/dist/client/assets/{Key01-IptFTL_3.js → Key01-DAjAUWfr.js} +1 -1
- package/dist/client/assets/{LayersTwo01-B5fVqAUB.js → LayersTwo01-C-XZtFtv.js} +1 -1
- package/dist/client/assets/{LayoutLeft-B8-msEGR.js → LayoutLeft-BvuIBX8d.js} +1 -1
- package/dist/client/assets/{Link01-BpjSsBky.js → Link01-q2vhCqdM.js} +1 -1
- package/dist/client/assets/{LinkExternal01-B21lACin.js → LinkExternal01-QGWpvftd.js} +1 -1
- package/dist/client/assets/{List-ySIwqood.js → List-CuV23QYs.js} +1 -1
- package/dist/client/assets/{Loading01-WTkiPysv.js → Loading01-BNn4YU_K.js} +1 -1
- package/dist/client/assets/{Lock01-DqO9uSP7.js → Lock01-DJQX15kR.js} +1 -1
- package/dist/client/assets/{Play-D72BHSXn.js → Play-C7yKo0dH.js} +1 -1
- package/dist/client/assets/{Plus-Dto-8y6a.js → Plus-CT_Gcwl2.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-DckyCUMd.js → RefreshCcw01-uL9q48A4.js} +1 -1
- package/dist/client/assets/{Save01-C2uk3LpG.js → Save01-CuwI4Bxq.js} +1 -1
- package/dist/client/assets/{SearchMd-Kap2MdR9.js → SearchMd-BLeX5weN.js} +1 -1
- package/dist/client/assets/{Settings01-CYUXeHtK.js → Settings01-2AkYiqYr.js} +1 -1
- package/dist/client/assets/{Shield01-CJ-f24yL.js → Shield01-D6IOCC-Z.js} +1 -1
- package/dist/client/assets/{Terminal-BQ1GlFmm.js → Terminal-Dlvh4GS2.js} +1 -1
- package/dist/client/assets/Tool01-CjSIsyxE.js +1 -0
- package/dist/client/assets/{Trash01-DkXbOnbi.js → Trash01-YPQczxci.js} +1 -1
- package/dist/client/assets/{Upload01-BasmYIL8.js → Upload01-BlEN4mwB.js} +1 -1
- package/dist/client/assets/{Users03-BXwEsNFj.js → Users03-B7X28dbt.js} +1 -1
- package/dist/client/assets/{X-CNbskBah.js → X-B_f76BPZ.js} +1 -1
- package/dist/client/assets/XAxis-Du5m1KMx.js +1 -0
- package/dist/client/assets/{XCircle-DvUvQRq1.js → XCircle-DDLf4PgL.js} +1 -1
- package/dist/client/assets/{XClose-B0FgAxIQ.js → XClose-eeK1fS1n.js} +1 -1
- package/dist/client/assets/{Zap-BgjTj76q.js → Zap-DHey7Hu_.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-Bh6ijP_X.js → agent-connections-preview-D6uKmygR.js} +1 -1
- package/dist/client/assets/agent-detail-BS4g93cA.js +2 -0
- package/dist/client/assets/{agents-DNXSTqTl.js → agents-BuWI7PBX.js} +1 -1
- package/dist/client/assets/{alert-dialog-DtAWdTyc.js → alert-dialog-BVglQjyM.js} +3 -3
- package/dist/client/assets/{auth-catchall-5qyXxzaS.js → auth-catchall-Bfllc4Ni.js} +1 -1
- package/dist/client/assets/automation-detail-DNo-sbc_.js +1 -0
- package/dist/client/assets/automations-CCXftgU_.js +1 -0
- package/dist/client/assets/{avatar-ChRCLY4k.js → avatar-OE2URZfM.js} +1 -1
- package/dist/client/assets/{badge-C4uZcq7J.js → badge-CAg946Xk.js} +1 -1
- package/dist/client/assets/{binder-hd3C3mvD.js → binder-DTBFGqjl.js} +1 -1
- package/dist/client/assets/{breadcrumb-pLMl4xjy.js → breadcrumb-aP02JuZO.js} +1 -1
- package/dist/client/assets/card-RQxLVCBk.js +1 -0
- package/dist/client/assets/chart-D9IwJUjP.js +15 -0
- package/dist/client/assets/{checkbox-D2IG7klY.js → checkbox-DLsMmmhu.js} +1 -1
- package/dist/client/assets/circle-alert-DCE_cWKa.js +1 -0
- package/dist/client/assets/{collapsible-ttq3VbhQ.js → collapsible-CGr-TiAc.js} +1 -1
- package/dist/client/assets/{collection-detail-DoRLjPv6.js → collection-detail-CZQpkHig.js} +5 -5
- package/dist/client/assets/collection-display-button-VOymjalV.js +1 -0
- package/dist/client/assets/{collection-search-Mtc1qP5K.js → collection-search-62vwaqdq.js} +1 -1
- package/dist/client/assets/collection-table-wrapper-DPJfuSg9.js +1 -0
- package/dist/client/assets/{collection-tabs-CHem1-m4.js → collection-tabs-FJx5TF4Z.js} +1 -1
- package/dist/client/assets/{command-DRBqjkmt.js → command-ChmbB2jp.js} +1 -1
- package/dist/client/assets/connect-Cak7aHsQ.js +1 -0
- package/dist/client/assets/connection-card-D9I87KkT.js +1 -0
- package/dist/client/assets/connection-detail-ZRvu6X4P.js +1 -0
- package/dist/client/assets/{connection-status-COvhqytZ.js → connection-status-D_iX92lK.js} +1 -1
- package/dist/client/assets/connections-Bi0oPT3Y.js +1 -0
- package/dist/client/assets/constants-B4Swgi3d.js +1 -0
- package/dist/client/assets/{constants-B9t4Nuz_.js → constants-XtX-WKGm.js} +1 -1
- package/dist/client/assets/{context-CiizXS06.js → context-CtrnP3HC.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-BCMxp6fo.js → create-organization-dialog-DlsDrfHE.js} +1 -1
- package/dist/client/assets/{create-project-dialog-BvxMRX5X.js → create-project-dialog-BV-JjiBR.js} +1 -1
- package/dist/client/assets/{danger-BjSxZinj.js → danger-B3KgXwQ9.js} +1 -1
- package/dist/client/assets/{danger-zone-B2z3wTq9.js → danger-zone-C_4VhnMp.js} +1 -1
- package/dist/client/assets/{dependencies-BkOdHYmE.js → dependencies-BHUeYRA7.js} +1 -1
- package/dist/client/assets/dialog-_XYw8lZC.js +1 -0
- package/dist/client/assets/{dropdown-menu-Cp0O2jCN.js → dropdown-menu-DzFMEBVS.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-CcrlbNZV.js → dynamic-plugin-layout-b0Zt6Dxk.js} +1 -1
- package/dist/client/assets/{editable-task-title-COr46zxY.js → editable-task-title-B7Ktbs3r.js} +1 -1
- package/dist/client/assets/{empty-state-DbRFhzf6.js → empty-state-AMuFIqs3.js} +1 -1
- package/dist/client/assets/{empty-state-SBIKV11G.js → empty-state-D4GX29pL.js} +1 -1
- package/dist/client/assets/env-vars-editor-DTKmdK-v.js +1 -0
- package/dist/client/assets/extract-connection-data-CS_Bn7Ri.js +1 -0
- package/dist/client/assets/{file-browser-B2cQNHIN.js → file-browser-OSAi_CZb.js} +2 -2
- package/dist/client/assets/{form-DPPO-3Tw.js → form-BN7_f2uj.js} +1 -1
- package/dist/client/assets/{general-DDQcxBFZ.js → general-B9J0F1Xq.js} +1 -1
- package/dist/client/assets/{grid-view-BhmPSvr_.js → grid-view-BH674f3N.js} +1 -1
- package/dist/client/assets/home-Dam4fMEZ.js +1 -0
- package/dist/client/assets/index-C-NLwTON.js +1 -0
- package/dist/client/assets/index-CcA_QriT.js +1 -0
- package/dist/client/assets/{index-Bmxys2UV.js → index-Cn8BPdHZ.js} +1 -1
- package/dist/client/assets/{index-B3fUA0k0.js → index-CuSj4QrF.js} +1 -1
- package/dist/client/assets/index-D5cL24p_.css +1 -0
- package/dist/client/assets/{index-BVSHvvtZ.js → index-Da9ggy60.js} +1 -1
- package/dist/client/assets/{index-DO8fUd54.js → index-DsOJvxnb.js} +4 -4
- package/dist/client/assets/{index-D-NeGwUy.js → index-DxP-spTj.js} +1 -1
- package/dist/client/assets/index-MKlLgXIW.js +25 -0
- package/dist/client/assets/{index-B1uuY7UL.js → index-X4FDee1r.js} +1 -1
- package/dist/client/assets/{index-COM-PDLy.js → index-zjV4p_E5.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-x0ce-nmx.js → infiniteQueryObserver-BE0Fq7u7.js} +1 -1
- package/dist/client/assets/{input-BM9bdg-F.js → input-CUT8DBv1.js} +1 -1
- package/dist/client/assets/integration-icon-CVxvM4fR.js +1 -0
- package/dist/client/assets/{label-CnT8WAQY.js → label-iPw5smAw.js} +1 -1
- package/dist/client/assets/{layout-ubFJ5DPd.js → layout-C2ZnDBkW.js} +1 -1
- package/dist/client/assets/{layout-C4PDA52F.js → layout-CA_pUlCy.js} +1 -1
- package/dist/client/assets/login-DJvdi7W3.js +1 -0
- package/dist/client/assets/{logo-upload-Bb5Ay7-T.js → logo-upload-DlKQk0GB.js} +1 -1
- package/dist/client/assets/{markdown-ZobUYaB1.js → markdown-CKKBcXcE.js} +8 -8
- package/dist/client/assets/{mcp-app-renderer-CLfglV2_.js → mcp-app-renderer-IX_OR3wW.js} +2 -2
- package/dist/client/assets/mcp-server-card-Cq5E9kuT.js +1 -0
- package/dist/client/assets/mcp-server-detail-CTGb-hF0.js +2 -0
- package/dist/client/assets/members-CYtrIFR5.js +3 -0
- package/dist/client/assets/{monaco-editor-kjafc2y3.js → monaco-editor-J8rInsT2.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-CtIPN7nQ.js → monitoring-dashboard-edit-6gWIXCOX.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-FD-yc8mV.js → monitoring-dashboard-view-Dt4aILCV.js} +2 -2
- package/dist/client/assets/monitoring-gb_hJ2kW.js +4 -0
- package/dist/client/assets/monitoring-stats-row-Dx_W_1nT.js +28 -0
- package/dist/client/assets/{oauth-callback-wHI3TkEb.js → oauth-callback-COUada1q.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DHfWQd6C.js → oauth-callback-ai-provider-CqS-ybCD.js} +1 -1
- package/dist/client/assets/{org-ai-providers-Cu3Y8hG7.js → org-ai-providers-BDwPbfg4.js} +1 -1
- package/dist/client/assets/page-BrXIXidh.js +1 -0
- package/dist/client/assets/page-s-fs9Bly.js +1 -0
- package/dist/client/assets/{plugin-empty-state-C0KzvXIH.js → plugin-empty-state-CRLH-_5S.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-Bh1khfVy.js → plugin-empty-state-Dt2dvxD9.js} +1 -1
- package/dist/client/assets/{plugin-header-ydYJ1Vj6.js → plugin-header-CkWzqJkZ.js} +1 -1
- package/dist/client/assets/{plugin-header-DJbwn5SE.js → plugin-header-DLDBKovk.js} +1 -1
- package/dist/client/assets/plugins-DkI_FXfU.js +1 -0
- package/dist/client/assets/{popover-D1WG-emQ.js → popover-CF3EN_0o.js} +1 -1
- package/dist/client/assets/{project-app-view-D-VHvgqy.js → project-app-view-Boof680i.js} +1 -1
- package/dist/client/assets/project-layout-CxwbtNi5.js +1 -0
- package/dist/client/assets/{project-plugins-BVdloqBu.js → project-plugins-DRIvSpW5.js} +1 -1
- package/dist/client/assets/{projects-list-Z8HiWxIk.js → projects-list-DmvsbHJl.js} +1 -1
- package/dist/client/assets/{registry-layout-B5XpbAHd.js → registry-layout-MGTBGYDW.js} +1 -1
- package/dist/client/assets/registry-utils-Cd3t_Kmp.js +1 -0
- package/dist/client/assets/{reports-layout-Ct8yUpC8.js → reports-layout-Cu0HmCBt.js} +1 -1
- package/dist/client/assets/{reset-password-BXrkGw9C.js → reset-password-Dwr8terU.js} +1 -1
- package/dist/client/assets/{resizable-CqLBllsV.js → resizable-D4LJctEl.js} +1 -1
- package/dist/client/assets/{save-actions-MbSzUbWU.js → save-actions-MzYbolsq.js} +1 -1
- package/dist/client/assets/{scroll-area-BcJ1ckdt.js → scroll-area-B5XbONJS.js} +1 -1
- package/dist/client/assets/{select-RxUFw6pZ.js → select-DRPG5csU.js} +1 -1
- package/dist/client/assets/{select-virtual-mcp-DU8qBWLM.js → select-virtual-mcp-B8NgSgPI.js} +1 -1
- package/dist/client/assets/sheet-BQuKOEiL.js +1 -0
- package/dist/client/assets/shell-layout-ZGvfzjfQ.js +3 -0
- package/dist/client/assets/{sidebar-settings-DICq5I_K.js → sidebar-settings-BqDjI96r.js} +1 -1
- package/dist/client/assets/{skeleton-CU7LuZGk.js → skeleton-DJFpR-1P.js} +1 -1
- package/dist/client/assets/{spinner-CpOteR2a.js → spinner-CqAVfcvO.js} +1 -1
- package/dist/client/assets/{store-invite-D2k0Vn6N.js → store-invite-JCf8JSic.js} +1 -1
- package/dist/client/assets/{switch-DyxdcdWl.js → switch-BQjzAGvm.js} +1 -1
- package/dist/client/assets/{table-DyNKuHyS.js → table-DJbHB5IL.js} +1 -1
- package/dist/client/assets/{tabs-XMAGaWgq.js → tabs-CkPDQzeX.js} +1 -1
- package/dist/client/assets/{task-status-DJB3YbbO.js → task-status-wkv2GdSY.js} +1 -1
- package/dist/client/assets/{tasks-panel-XTVNkW83.js → tasks-panel-TN0GeEUK.js} +1 -1
- package/dist/client/assets/tasks-zu-x8h5W.js +1 -0
- package/dist/client/assets/{textarea-BLuscN8X.js → textarea-CTzX43MZ.js} +1 -1
- package/dist/client/assets/{time-range-picker-Bd3fku3n.js → time-range-picker-DNJ6dRiN.js} +1 -1
- package/dist/client/assets/{toggle-group-BrL6C5fG.js → toggle-group-y2h19HHT.js} +1 -1
- package/dist/client/assets/tools-list-Db7zzadA.js +1 -0
- package/dist/client/assets/{tooltip-BLTgyg7W.js → tooltip-XyKE4lZa.js} +1 -1
- package/dist/client/assets/{topbar-portal-_Qqzdv9B.js → topbar-portal-D3fRQWai.js} +1 -1
- package/dist/client/assets/{types-BPYct9bF.js → types-B3niHy47.js} +5 -5
- package/dist/client/assets/{use-automations-BeAHZecx.js → use-automations-C4CL-jAO.js} +1 -1
- package/dist/client/assets/use-binding-BfjFWpEn.js +1 -0
- package/dist/client/assets/{use-collections-C8rLdQUN.js → use-collections-DSWhP4jg.js} +1 -1
- package/dist/client/assets/{use-connection-BNGXvSqD.js → use-connection-DmR852Js.js} +1 -1
- package/dist/client/assets/{use-copy-DPJ8nWWs.js → use-copy-dSR0w-bG.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BfS4KaKE.js → use-create-virtual-mcp-DXWAjide.js} +1 -1
- package/dist/client/assets/use-infinite-scroll-CvaIKLMy.js +1 -0
- package/dist/client/assets/{use-install-from-registry-BEC7S-53.js → use-install-from-registry-_FQYQGQx.js} +1 -1
- package/dist/client/assets/{use-list-state-DsQajLIu.js → use-list-state-Ck8sSm9J.js} +1 -1
- package/dist/client/assets/{use-llm-IG8InXvX.js → use-llm-BkLbMZPM.js} +1 -1
- package/dist/client/assets/{use-local-storage-C3Bo802w.js → use-local-storage-CxC8ozOe.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-D_02f3uO.js → use-mcp-prompts-C-XU_-dc.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-BNoK6dDS.js → use-mcp-resources-Bxkx1Ub1.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BCCglZve.js → use-mcp-tools-BXmfFmar.js} +1 -1
- package/dist/client/assets/{use-members-Cqa4gqXV.js → use-members-B-Cx3SpJ.js} +1 -1
- package/dist/client/assets/{use-mobile-kAkblq0-.js → use-mobile-O8KVzGuv.js} +1 -1
- package/dist/client/assets/{use-project-DNZXkIib.js → use-project-Bg5pX2Ab.js} +1 -1
- package/dist/client/assets/use-store-discovery-DPE_0zuT.js +1 -0
- package/dist/client/assets/{use-view-mode-Bl6DaWwW.js → use-view-mode-ve-Q_Sd0.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DoDJBE5n.js → use-virtual-mcp-C9XdHCA_.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DEfXPFTs.js +1 -0
- package/dist/client/assets/{useMutation-CNVq636e.js → useMutation-B_cFG709.js} +1 -1
- package/dist/client/assets/useQuery-D2ShO4od.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-CT40dICu.js +1 -0
- package/dist/client/assets/{user-6WV0RuBu.js → user-rS26WEu1.js} +1 -1
- package/dist/client/assets/workflow-C4-p-dLU.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/server/node_modules/{xtend → pg}/LICENSE +7 -6
- package/dist/server/node_modules/pg/README.md +95 -0
- package/dist/server/node_modules/pg/esm/index.mjs +20 -0
- package/dist/server/node_modules/pg/lib/client.js +743 -0
- package/dist/server/node_modules/pg/lib/connection-parameters.js +171 -0
- package/dist/server/node_modules/pg/lib/connection.js +221 -0
- package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +122 -0
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +212 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +43 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +89 -0
- package/dist/server/node_modules/pg/lib/crypto/utils.js +9 -0
- package/dist/server/node_modules/pg/lib/defaults.js +91 -0
- package/dist/server/node_modules/pg/lib/index.js +73 -0
- package/dist/server/node_modules/pg/lib/native/client.js +323 -0
- package/dist/server/node_modules/pg/lib/native/index.js +2 -0
- package/dist/server/node_modules/pg/lib/native/query.js +165 -0
- package/dist/server/node_modules/pg/lib/query.js +252 -0
- package/dist/server/node_modules/pg/lib/result.js +109 -0
- package/dist/server/node_modules/pg/lib/stream.js +83 -0
- package/dist/server/node_modules/pg/lib/type-overrides.js +35 -0
- package/dist/server/node_modules/pg/lib/utils.js +217 -0
- package/dist/server/node_modules/pg/package.json +76 -0
- package/package.json +1 -1
- package/dist/client/assets/agent-detail-Cda1RjKX.js +0 -2
- package/dist/client/assets/automation-detail-BV87rs7m.js +0 -1
- package/dist/client/assets/automations-Dp0qrLbX.js +0 -1
- package/dist/client/assets/card-B4dTtsmd.js +0 -1
- package/dist/client/assets/chart-Caf0jSbB.js +0 -15
- package/dist/client/assets/collection-display-button-C0A6ba73.js +0 -1
- package/dist/client/assets/collection-tab-CTog7m1d.js +0 -1
- package/dist/client/assets/collection-table-wrapper-Ccujw2gS.js +0 -1
- package/dist/client/assets/connect-CRbH1TYm.js +0 -1
- package/dist/client/assets/connection-card-DXMFAvSL.js +0 -1
- package/dist/client/assets/connection-detail-D-M6vj9q.js +0 -1
- package/dist/client/assets/connections-BZmayWR_.js +0 -1
- package/dist/client/assets/constants-Dr5R1EQY.js +0 -1
- package/dist/client/assets/dialog-CTFHRhvl.js +0 -1
- package/dist/client/assets/env-vars-editor-1feSU4JA.js +0 -1
- package/dist/client/assets/extract-connection-data-adtLKfGW.js +0 -1
- package/dist/client/assets/github-icon-Dp3wHhYE.js +0 -1
- package/dist/client/assets/home-Dxpbp1Bj.js +0 -1
- package/dist/client/assets/icon-picker-BKKuKn6y.js +0 -1
- package/dist/client/assets/index-B_m3AdpY.js +0 -1
- package/dist/client/assets/index-BqlWbrG0.js +0 -1
- package/dist/client/assets/index-C6XH6ylF.js +0 -25
- package/dist/client/assets/index-DmrxmdhV.css +0 -1
- package/dist/client/assets/integration-icon-BrOdBipR.js +0 -1
- package/dist/client/assets/login-CTOJXY_r.js +0 -1
- package/dist/client/assets/mcp-server-card-AL30DdJr.js +0 -1
- package/dist/client/assets/mcp-server-detail-CN2kEGgD.js +0 -2
- package/dist/client/assets/members-CpLusvJM.js +0 -3
- package/dist/client/assets/monitoring-BNAsqD0Y.js +0 -31
- package/dist/client/assets/page-BWMoYp-g.js +0 -1
- package/dist/client/assets/page-Ch5Qzmi-.js +0 -1
- package/dist/client/assets/plugins-D5THwapv.js +0 -1
- package/dist/client/assets/project-layout-Cd8cNifU.js +0 -1
- package/dist/client/assets/readme-viewer-MbTGGbgZ.js +0 -1
- package/dist/client/assets/registry-utils-oSXyNc33.js +0 -1
- package/dist/client/assets/shell-layout-0dnPJSNe.js +0 -3
- package/dist/client/assets/tasks-BJvBlQqj.js +0 -1
- package/dist/client/assets/tools-list-BeUwtNiH.js +0 -1
- package/dist/client/assets/use-binding-DSWv53zN.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BBGNgnIc.js +0 -1
- package/dist/client/assets/useQuery-BeFLqBun.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CdVyznmA.js +0 -1
- package/dist/client/assets/workflow-DUYpxPLh.js +0 -1
- package/dist/server/node_modules/async-exit-hook/CHANGELOG.md +0 -62
- package/dist/server/node_modules/async-exit-hook/index.js +0 -171
- package/dist/server/node_modules/async-exit-hook/license +0 -21
- package/dist/server/node_modules/async-exit-hook/package.json +0 -66
- package/dist/server/node_modules/async-exit-hook/readme.md +0 -118
- package/dist/server/node_modules/pg-int8/LICENSE +0 -13
- package/dist/server/node_modules/pg-int8/README.md +0 -16
- package/dist/server/node_modules/pg-int8/index.js +0 -100
- package/dist/server/node_modules/pg-int8/package.json +0 -24
- package/dist/server/node_modules/postgres-array/index.d.ts +0 -4
- package/dist/server/node_modules/postgres-array/index.js +0 -97
- package/dist/server/node_modules/postgres-array/license +0 -21
- package/dist/server/node_modules/postgres-array/package.json +0 -35
- package/dist/server/node_modules/postgres-array/readme.md +0 -43
- package/dist/server/node_modules/postgres-bytea/index.js +0 -33
- package/dist/server/node_modules/postgres-bytea/license +0 -21
- package/dist/server/node_modules/postgres-bytea/package.json +0 -34
- package/dist/server/node_modules/postgres-bytea/readme.md +0 -34
- package/dist/server/node_modules/postgres-date/index.js +0 -116
- package/dist/server/node_modules/postgres-date/license +0 -21
- package/dist/server/node_modules/postgres-date/package.json +0 -33
- package/dist/server/node_modules/postgres-date/readme.md +0 -49
- package/dist/server/node_modules/postgres-interval/index.d.ts +0 -20
- package/dist/server/node_modules/postgres-interval/index.js +0 -125
- package/dist/server/node_modules/postgres-interval/license +0 -21
- package/dist/server/node_modules/postgres-interval/package.json +0 -36
- package/dist/server/node_modules/postgres-interval/readme.md +0 -48
- package/dist/server/node_modules/split2/LICENSE +0 -13
- package/dist/server/node_modules/split2/README.md +0 -85
- package/dist/server/node_modules/split2/bench.js +0 -27
- package/dist/server/node_modules/split2/index.js +0 -141
- package/dist/server/node_modules/split2/package.json +0 -39
- package/dist/server/node_modules/split2/test.js +0 -409
- package/dist/server/node_modules/xtend/.jshintrc +0 -30
- package/dist/server/node_modules/xtend/README.md +0 -32
- package/dist/server/node_modules/xtend/immutable.js +0 -19
- package/dist/server/node_modules/xtend/mutable.js +0 -17
- package/dist/server/node_modules/xtend/package.json +0 -55
- package/dist/server/node_modules/xtend/test.js +0 -103
- /package/dist/client/assets/{readme-viewer-DWnTz46N.css → mcp-server-detail-DWnTz46N.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,
|
|
1
|
+
import{r as i,ac as H,j as c,a$ as K,a7 as W,a9 as C,ab as S,b0 as J,a8 as Q,a6 as Z,b1 as ee,b2 as $,b3 as te,b4 as oe,aa as re,b5 as ne,b6 as se,c as j,y as ae}from"./index-DsOJvxnb.js";import{R as ie}from"./index-zjV4p_E5.js";var[O]=re("Tooltip",[$]),D=$(),G="TooltipProvider",le=700,A="tooltip.open",[ce,k]=O(G),F=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})};F.displayName=G;var R="Tooltip",[ue,_]=O(R),z=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:l,delayDuration:d}=o,a=k(R,o.__scopeTooltip),p=D(e),[u,v]=i.useState(null),x=Q(),f=i.useRef(0),h=l??a.disableHoverableContent,T=d??a.delayDuration,g=i.useRef(!1),[y,m]=Z({prop:r,defaultProp:n??!1,onChange:I=>{I?(a.onOpen(),document.dispatchEvent(new CustomEvent(A))):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})})};z.displayName=R;var L="TooltipTrigger",B=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=_(L,t),s=k(L,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(K,{asChild:!0,...l,children:c.jsx(W.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=L;var M="TooltipPortal",[de,pe]=O(M,{forceMount:void 0}),U=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(J,{asChild:!0,container:n,children:r})})})};U.displayName=M;var b="TooltipContent",V=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(Y,{side:n,...s,ref:e}):c.jsx(fe,{side:n,...s,ref:e})})}),fe=i.forwardRef((o,e)=>{const t=_(b,o.__scopeTooltip),r=k(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(Y,{...o,ref:s})}),[ve,xe]=O(R,{isInside:!1}),he=ne("TooltipContent"),Y=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(A,u),()=>document.removeEventListener(A,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})})]})})});V.displayName=b;var q="TooltipArrow",X=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return xe(q,t).isInside?null:c.jsx(se,{...n,...r,ref:e})});X.displayName=q;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=F,Ee=z,Pe=B,Re=U,_e=V,je=X;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 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(Oe,{children:c.jsx(Ee,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function ke(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,ke as a,Oe as b,Le as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,c,j as l}from"./index-
|
|
1
|
+
import{r,c,j as l}from"./index-DsOJvxnb.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{
|
|
1
|
+
import{bl as n,bm as e,ax as h,n as r,bn as b,o,bo as d,az as c,bp as l,ay as u,bq as q,br as T,bs as x,bt as C,bu as I,bv as _,bw as v,bx as A,by as N,bz as D,bA as E,bB as O,bC as B,bD as V,bE as W,bF as K,bG as F,bH as J,bI as j,bJ as Q,bK as $,bL as Y,bM as Z}from"./index-DsOJvxnb.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.).
|
|
@@ -35,8 +35,8 @@ Boolean requesting whether a visible border and background is provided by the ho
|
|
|
35
35
|
- \`false\`: request no visible border + background
|
|
36
36
|
- omitted: host decides border`)});var M=o({method:e("ui/request-display-mode"),params:o({mode:g.describe("The display mode being requested.")})});o({mode:g.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough();var pe=n([e("model"),e("app")]).describe("Tool visibility scope - who can access the tool.");o({resourceUri:r().optional(),visibility:c(pe).optional().describe(`Who can access this tool. Default: ["model", "app"]
|
|
37
37
|
- "model": Tool visible to and callable by the agent
|
|
38
|
-
- "app": Tool callable by the app from this server only`)});o({mimeTypes:c(r()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')});var he=o({method:e("ui/download-file"),params:o({contents:c(n([q,T])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})}),ue=o({method:e("ui/message"),params:o({role:e("user").describe('Message role, currently only "user" is supported.'),content:c(
|
|
39
|
-
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:r().optional().describe("User's language and region preference in BCP 47 format."),timeZone:r().optional().describe("User's timezone in IANA format."),userAgent:r().optional().describe("Host application identifier."),platform:n([e("web"),e("desktop"),e("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:o({touch:d().optional().describe("Whether the device supports touch input."),hover:d().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:o({top:l().describe("Top safe area inset in pixels."),right:l().describe("Right safe area inset in pixels."),bottom:l().describe("Bottom safe area inset in pixels."),left:l().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough();o({method:e("ui/notifications/host-context-changed"),params:L.describe("Partial context update containing only changed fields.")});var me=o({method:e("ui/update-model-context"),params:o({content:c(v).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:h(r(),u().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})}),be=o({method:e("ui/initialize"),params:o({appInfo:x.describe("App identification (name and version)."),appCapabilities:le.describe("Features and capabilities this app provides."),protocolVersion:r().describe("Protocol version this app supports.")})});o({protocolVersion:r().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:x.describe("Host application identification and version."),hostCapabilities:ce.describe("Features and capabilities provided by the host."),hostContext:L.describe("Rich context about the host environment.")}).passthrough();class qe{eventTarget;eventSource;messageListener;constructor(t=window.parent,i){this.eventTarget=t,this.eventSource=i,this.messageListener=s=>{if(i&&s.source!==this.eventSource){console.debug("Ignoring message from unknown source",s);return}let a=Z.safeParse(s.data);a.success?(console.debug("Parsed message",a.data),this.onmessage?.(a.data)):s.data?.jsonrpc!=="2.0"?console.debug("Ignoring non-JSON-RPC message",a.error.message,s):(console.error("Failed to parse message",a.error.message,s),this.onerror?.(Error("Invalid JSON-RPC message received: "+a.error.message)))}}async start(){window.addEventListener("message",this.messageListener)}async send(t,i){t.method!==G&&console.debug("Sending message",t),this.eventTarget.postMessage(t,"*")}async close(){window.removeEventListener("message",this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion}var ge="ui/resourceUri";function fe(p){let t=p._meta?.ui?.resourceUri;if(t===void 0&&(t=p._meta?.[ge]),typeof t=="string"&&t.startsWith("ui://"))return t;if(t!==void 0)throw Error(`Invalid UI resource URI: ${JSON.stringify(t)}`)}var ye=[z];class Te extends A{_client;_hostInfo;_capabilities;_appCapabilities;_hostContext={};_appInfo;constructor(t,i,s,a){super(a),this._client=t,this._hostInfo=i,this._capabilities=s,this._hostContext=a?.hostContext||{},this.setRequestHandler(be,m=>this._oninitialize(m)),this.setRequestHandler(D,(m,y)=>(this.onping?.(m.params,y),{})),this.setRequestHandler(M,m=>({mode:this._hostContext.displayMode??"inline"}))}getAppCapabilities(){return this._appCapabilities}getAppVersion(){return this._appInfo}onping;set onsizechange(t){this.setNotificationHandler(se,i=>t(i.params))}set onsandboxready(t){this.setNotificationHandler(ie,i=>t(i.params))}set oninitialized(t){this.setNotificationHandler(de,i=>t(i.params))}set onmessage(t){this.setRequestHandler(ue,async(i,s)=>t(i.params,s))}set onopenlink(t){this.setRequestHandler(te,async(i,s)=>t(i.params,s))}set ondownloadfile(t){this.setRequestHandler(he,async(i,s)=>t(i.params,s))}set onrequestdisplaymode(t){this.setRequestHandler(M,async(i,s)=>t(i.params,s))}set onloggingmessage(t){this.setNotificationHandler(N,async i=>{t(i.params)})}set onupdatemodelcontext(t){this.setRequestHandler(me,async(i,s)=>t(i.params,s))}set oncalltool(t){this.setRequestHandler(E,async(i,s)=>t(i.params,s))}sendToolListChanged(t={}){return this.notification({method:"notifications/tools/list_changed",params:t})}set onlistresources(t){this.setRequestHandler(O,async(i,s)=>t(i.params,s))}set onlistresourcetemplates(t){this.setRequestHandler(B,async(i,s)=>t(i.params,s))}set onreadresource(t){this.setRequestHandler(V,async(i,s)=>t(i.params,s))}sendResourceListChanged(t={}){return this.notification({method:"notifications/resources/list_changed",params:t})}set onlistprompts(t){this.setRequestHandler(W,async(i,s)=>t(i.params,s))}sendPromptListChanged(t={}){return this.notification({method:"notifications/prompts/list_changed",params:t})}assertCapabilityForMethod(t){}assertRequestHandlerCapability(t){}assertNotificationCapability(t){}assertTaskCapability(t){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(t){throw Error("Task handlers are not supported in MCP Apps")}getCapabilities(){return this._capabilities}async _oninitialize(t){let i=t.params.protocolVersion;return this._appCapabilities=t.params.appCapabilities,this._appInfo=t.params.appInfo,{protocolVersion:ye.includes(i)?i:z,hostCapabilities:this.getCapabilities(),hostInfo:this._hostInfo,hostContext:this._hostContext}}setHostContext(t){let i={},s=!1;for(let a of Object.keys(t)){let m=this._hostContext[a],y=t[a];xe(m,y)||(i[a]=y,s=!0)}s&&(this._hostContext=t,this.sendHostContextChange(i))}sendHostContextChange(t){return this.notification({method:"ui/notifications/host-context-changed",params:t})}sendToolInput(t){return this.notification({method:"ui/notifications/tool-input",params:t})}sendToolInputPartial(t){return this.notification({method:"ui/notifications/tool-input-partial",params:t})}sendToolResult(t){return this.notification({method:"ui/notifications/tool-result",params:t})}sendToolCancelled(t){return this.notification({method:"ui/notifications/tool-cancelled",params:t})}sendSandboxResourceReady(t){return this.notification({method:"ui/notifications/sandbox-resource-ready",params:t})}teardownResource(t,i){return this.request({method:"ui/resource-teardown",params:t},ne,i)}sendResourceTeardown=this.teardownResource;async connect(t){if(this.transport)throw Error("AppBridge is already connected. Call close() before connecting again.");if(this._client){let i=this._client.getServerCapabilities();if(!i)throw Error("Client server capabilities not available");i.tools&&(this.oncalltool=async(s,a)=>this._client.request({method:"tools/call",params:s},C,{signal:a.signal}),i.tools.listChanged&&this._client.setNotificationHandler(K,s=>this.sendToolListChanged(s.params))),i.resources&&(this.onlistresources=async(s,a)=>this._client.request({method:"resources/list",params:s},F,{signal:a.signal}),this.onlistresourcetemplates=async(s,a)=>this._client.request({method:"resources/templates/list",params:s},J,{signal:a.signal}),this.onreadresource=async(s,a)=>this._client.request({method:"resources/read",params:s},j,{signal:a.signal}),i.resources.listChanged&&this._client.setNotificationHandler(Q,s=>this.sendResourceListChanged(s.params))),i.prompts&&(this.onlistprompts=async(s,a)=>this._client.request({method:"prompts/list",params:s},$,{signal:a.signal}),i.prompts.listChanged&&this._client.setNotificationHandler(Y,s=>this.sendPromptListChanged(s.params)))}return super.connect(t)}}function xe(p,t){return JSON.stringify(p)===JSON.stringify(t)}var ve=n([e("light"),e("dark")]).describe("Color theme preference for the host environment."),f=n([e("inline"),e("fullscreen"),e("pip")]).describe("Display mode for UI presentation."),Ce=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."),we=h(Ce.describe(`Style variables for theming MCP apps.
|
|
38
|
+
- "app": Tool callable by the app from this server only`)});o({mimeTypes:c(r()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')});var he=o({method:e("ui/download-file"),params:o({contents:c(n([q,T])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})}),ue=o({method:e("ui/message"),params:o({role:e("user").describe('Message role, currently only "user" is supported.'),content:c(x).describe("Message content blocks (text, image, etc.).")})});o({method:e("ui/notifications/sandbox-resource-ready"),params:o({html:r().describe("HTML content to load into the inner iframe."),sandbox:r().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:w.optional().describe("CSP configuration from resource metadata."),permissions:S.optional().describe("Sandbox permissions from resource metadata.")})});o({method:e("ui/notifications/tool-result"),params:C.describe("Standard MCP tool execution result.")});var L=o({toolInfo:o({id:_.optional().describe("JSON-RPC id of the tools/call request."),tool:I.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:X.optional().describe("Current color theme preference."),styles:ae.optional().describe("Style configuration for theming the app."),displayMode:g.optional().describe("How the UI is currently displayed."),availableDisplayModes:c(g).optional().describe("Display modes the host supports."),containerDimensions:n([o({height:l().describe("Fixed container height in pixels.")}),o({maxHeight:n([l(),b()]).optional().describe("Maximum container height in pixels.")})]).and(n([o({width:l().describe("Fixed container width in pixels.")}),o({maxWidth:n([l(),b()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
|
|
39
|
+
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:r().optional().describe("User's language and region preference in BCP 47 format."),timeZone:r().optional().describe("User's timezone in IANA format."),userAgent:r().optional().describe("Host application identifier."),platform:n([e("web"),e("desktop"),e("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:o({touch:d().optional().describe("Whether the device supports touch input."),hover:d().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:o({top:l().describe("Top safe area inset in pixels."),right:l().describe("Right safe area inset in pixels."),bottom:l().describe("Bottom safe area inset in pixels."),left:l().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough();o({method:e("ui/notifications/host-context-changed"),params:L.describe("Partial context update containing only changed fields.")});var me=o({method:e("ui/update-model-context"),params:o({content:c(x).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:h(r(),u().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})}),be=o({method:e("ui/initialize"),params:o({appInfo:v.describe("App identification (name and version)."),appCapabilities:le.describe("Features and capabilities this app provides."),protocolVersion:r().describe("Protocol version this app supports.")})});o({protocolVersion:r().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:v.describe("Host application identification and version."),hostCapabilities:ce.describe("Features and capabilities provided by the host."),hostContext:L.describe("Rich context about the host environment.")}).passthrough();class qe{eventTarget;eventSource;messageListener;constructor(t=window.parent,i){this.eventTarget=t,this.eventSource=i,this.messageListener=s=>{if(i&&s.source!==this.eventSource){console.debug("Ignoring message from unknown source",s);return}let a=Z.safeParse(s.data);a.success?(console.debug("Parsed message",a.data),this.onmessage?.(a.data)):s.data?.jsonrpc!=="2.0"?console.debug("Ignoring non-JSON-RPC message",a.error.message,s):(console.error("Failed to parse message",a.error.message,s),this.onerror?.(Error("Invalid JSON-RPC message received: "+a.error.message)))}}async start(){window.addEventListener("message",this.messageListener)}async send(t,i){t.method!==G&&console.debug("Sending message",t),this.eventTarget.postMessage(t,"*")}async close(){window.removeEventListener("message",this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion}var ge="ui/resourceUri";function fe(p){let t=p._meta?.ui?.resourceUri;if(t===void 0&&(t=p._meta?.[ge]),typeof t=="string"&&t.startsWith("ui://"))return t;if(t!==void 0)throw Error(`Invalid UI resource URI: ${JSON.stringify(t)}`)}var ye=[z];class Te extends A{_client;_hostInfo;_capabilities;_appCapabilities;_hostContext={};_appInfo;constructor(t,i,s,a){super(a),this._client=t,this._hostInfo=i,this._capabilities=s,this._hostContext=a?.hostContext||{},this.setRequestHandler(be,m=>this._oninitialize(m)),this.setRequestHandler(N,(m,y)=>(this.onping?.(m.params,y),{})),this.setRequestHandler(M,m=>({mode:this._hostContext.displayMode??"inline"}))}getAppCapabilities(){return this._appCapabilities}getAppVersion(){return this._appInfo}onping;set onsizechange(t){this.setNotificationHandler(se,i=>t(i.params))}set onsandboxready(t){this.setNotificationHandler(ie,i=>t(i.params))}set oninitialized(t){this.setNotificationHandler(de,i=>t(i.params))}set onmessage(t){this.setRequestHandler(ue,async(i,s)=>t(i.params,s))}set onopenlink(t){this.setRequestHandler(te,async(i,s)=>t(i.params,s))}set ondownloadfile(t){this.setRequestHandler(he,async(i,s)=>t(i.params,s))}set onrequestdisplaymode(t){this.setRequestHandler(M,async(i,s)=>t(i.params,s))}set onloggingmessage(t){this.setNotificationHandler(D,async i=>{t(i.params)})}set onupdatemodelcontext(t){this.setRequestHandler(me,async(i,s)=>t(i.params,s))}set oncalltool(t){this.setRequestHandler(E,async(i,s)=>t(i.params,s))}sendToolListChanged(t={}){return this.notification({method:"notifications/tools/list_changed",params:t})}set onlistresources(t){this.setRequestHandler(O,async(i,s)=>t(i.params,s))}set onlistresourcetemplates(t){this.setRequestHandler(B,async(i,s)=>t(i.params,s))}set onreadresource(t){this.setRequestHandler(V,async(i,s)=>t(i.params,s))}sendResourceListChanged(t={}){return this.notification({method:"notifications/resources/list_changed",params:t})}set onlistprompts(t){this.setRequestHandler(W,async(i,s)=>t(i.params,s))}sendPromptListChanged(t={}){return this.notification({method:"notifications/prompts/list_changed",params:t})}assertCapabilityForMethod(t){}assertRequestHandlerCapability(t){}assertNotificationCapability(t){}assertTaskCapability(t){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(t){throw Error("Task handlers are not supported in MCP Apps")}getCapabilities(){return this._capabilities}async _oninitialize(t){let i=t.params.protocolVersion;return this._appCapabilities=t.params.appCapabilities,this._appInfo=t.params.appInfo,{protocolVersion:ye.includes(i)?i:z,hostCapabilities:this.getCapabilities(),hostInfo:this._hostInfo,hostContext:this._hostContext}}setHostContext(t){let i={},s=!1;for(let a of Object.keys(t)){let m=this._hostContext[a],y=t[a];xe(m,y)||(i[a]=y,s=!0)}s&&(this._hostContext=t,this.sendHostContextChange(i))}sendHostContextChange(t){return this.notification({method:"ui/notifications/host-context-changed",params:t})}sendToolInput(t){return this.notification({method:"ui/notifications/tool-input",params:t})}sendToolInputPartial(t){return this.notification({method:"ui/notifications/tool-input-partial",params:t})}sendToolResult(t){return this.notification({method:"ui/notifications/tool-result",params:t})}sendToolCancelled(t){return this.notification({method:"ui/notifications/tool-cancelled",params:t})}sendSandboxResourceReady(t){return this.notification({method:"ui/notifications/sandbox-resource-ready",params:t})}teardownResource(t,i){return this.request({method:"ui/resource-teardown",params:t},ne,i)}sendResourceTeardown=this.teardownResource;async connect(t){if(this.transport)throw Error("AppBridge is already connected. Call close() before connecting again.");if(this._client){let i=this._client.getServerCapabilities();if(!i)throw Error("Client server capabilities not available");i.tools&&(this.oncalltool=async(s,a)=>this._client.request({method:"tools/call",params:s},C,{signal:a.signal}),i.tools.listChanged&&this._client.setNotificationHandler(K,s=>this.sendToolListChanged(s.params))),i.resources&&(this.onlistresources=async(s,a)=>this._client.request({method:"resources/list",params:s},F,{signal:a.signal}),this.onlistresourcetemplates=async(s,a)=>this._client.request({method:"resources/templates/list",params:s},J,{signal:a.signal}),this.onreadresource=async(s,a)=>this._client.request({method:"resources/read",params:s},j,{signal:a.signal}),i.resources.listChanged&&this._client.setNotificationHandler(Q,s=>this.sendResourceListChanged(s.params))),i.prompts&&(this.onlistprompts=async(s,a)=>this._client.request({method:"prompts/list",params:s},$,{signal:a.signal}),i.prompts.listChanged&&this._client.setNotificationHandler(Y,s=>this.sendPromptListChanged(s.params)))}return super.connect(t)}}function xe(p,t){return JSON.stringify(p)===JSON.stringify(t)}var ve=n([e("light"),e("dark")]).describe("Color theme preference for the host environment."),f=n([e("inline"),e("fullscreen"),e("pip")]).describe("Display mode for UI presentation."),Ce=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."),we=h(Ce.describe(`Style variables for theming MCP apps.
|
|
40
40
|
|
|
41
41
|
Individual style keys are optional - hosts may provide any subset of these values.
|
|
42
42
|
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
@@ -73,5 +73,5 @@ Boolean requesting whether a visible border and background is provided by the ho
|
|
|
73
73
|
- \`false\`: request no visible border + background
|
|
74
74
|
- omitted: host decides border`)});o({method:e("ui/request-display-mode"),params:o({mode:f.describe("The display mode being requested.")})});o({mode:f.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough();var Me=n([e("model"),e("app")]).describe("Tool visibility scope - who can access the tool.");o({resourceUri:r().optional(),visibility:c(Me).optional().describe(`Who can access this tool. Default: ["model", "app"]
|
|
75
75
|
- "model": Tool visible to and callable by the agent
|
|
76
|
-
- "app": Tool callable by the app from this server only`)});o({mimeTypes:c(r()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')});o({method:e("ui/download-file"),params:o({contents:c(n([q,T])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})});o({method:e("ui/message"),params:o({role:e("user").describe('Message role, currently only "user" is supported.'),content:c(
|
|
77
|
-
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:r().optional().describe("User's language and region preference in BCP 47 format."),timeZone:r().optional().describe("User's timezone in IANA format."),userAgent:r().optional().describe("Host application identifier."),platform:n([e("web"),e("desktop"),e("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:o({touch:d().optional().describe("Whether the device supports touch input."),hover:d().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:o({top:l().describe("Top safe area inset in pixels."),right:l().describe("Right safe area inset in pixels."),bottom:l().describe("Bottom safe area inset in pixels."),left:l().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough();o({method:e("ui/notifications/host-context-changed"),params:U.describe("Partial context update containing only changed fields.")});o({method:e("ui/update-model-context"),params:o({content:c(
|
|
76
|
+
- "app": Tool callable by the app from this server only`)});o({mimeTypes:c(r()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')});o({method:e("ui/download-file"),params:o({contents:c(n([q,T])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})});o({method:e("ui/message"),params:o({role:e("user").describe('Message role, currently only "user" is supported.'),content:c(x).describe("Message content blocks (text, image, etc.).")})});o({method:e("ui/notifications/sandbox-resource-ready"),params:o({html:r().describe("HTML content to load into the inner iframe."),sandbox:r().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:k.optional().describe("CSP configuration from resource metadata."),permissions:R.optional().describe("Sandbox permissions from resource metadata.")})});o({method:e("ui/notifications/tool-result"),params:C.describe("Standard MCP tool execution result.")});var U=o({toolInfo:o({id:_.optional().describe("JSON-RPC id of the tools/call request."),tool:I.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:ve.optional().describe("Current color theme preference."),styles:ke.optional().describe("Style configuration for theming the app."),displayMode:f.optional().describe("How the UI is currently displayed."),availableDisplayModes:c(f).optional().describe("Display modes the host supports."),containerDimensions:n([o({height:l().describe("Fixed container height in pixels.")}),o({maxHeight:n([l(),b()]).optional().describe("Maximum container height in pixels.")})]).and(n([o({width:l().describe("Fixed container width in pixels.")}),o({maxWidth:n([l(),b()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
|
|
77
|
+
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:r().optional().describe("User's language and region preference in BCP 47 format."),timeZone:r().optional().describe("User's timezone in IANA format."),userAgent:r().optional().describe("Host application identifier."),platform:n([e("web"),e("desktop"),e("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:o({touch:d().optional().describe("Whether the device supports touch input."),hover:d().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:o({top:l().describe("Top safe area inset in pixels."),right:l().describe("Right safe area inset in pixels."),bottom:l().describe("Bottom safe area inset in pixels."),left:l().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough();o({method:e("ui/notifications/host-context-changed"),params:U.describe("Partial context update containing only changed fields.")});o({method:e("ui/update-model-context"),params:o({content:c(x).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:h(r(),u().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})});o({method:e("ui/initialize"),params:o({appInfo:v.describe("App identification (name and version)."),appCapabilities:Pe.describe("Features and capabilities this app provides."),protocolVersion:r().describe("Protocol version this app supports.")})});o({protocolVersion:r().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:v.describe("Host application identification and version."),hostCapabilities:Re.describe("Features and capabilities provided by the host."),hostContext:U.describe("Rich context about the host environment.")}).passthrough();function Ie(){let p=document.documentElement.getAttribute("data-theme");return p==="dark"||p==="light"?p:document.documentElement.classList.contains("dark")?"dark":"light"}const _e={view:{minHeight:400,maxHeight:800},fullscreen:{minHeight:600,maxHeight:1200}};function ze(p){if(!(p==null||typeof p!="object"))try{return fe({_meta:p})}catch{return}}export{Ie as A,_e as M,qe as N,ze as g,Te as o};
|
|
@@ -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-DsOJvxnb.js";import{u as A}from"./useQuery-D2ShO4od.js";import{u as g}from"./useMutation-B_cFG709.js";import{a as f,u as y}from"./constants-XtX-WKGm.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as L}from"./binder-DTBFGqjl.js";import{bS as y,ai as O,o as t,n as e,ax as m,az as r,bT as s,bU as E,bV as R,bp as a,aA as f,bl as c,bo as h,bm as o,ay as N,bW as x,bX as C,bY as G,bZ as M,b_ as P,b$ as D,c0 as S}from"./index-DsOJvxnb.js";const B=O.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")}),w=y("assistant",B),k=[...w],g=x(()=>c([C(),e(),a(),h(),m(e(),g),r(g)])),d=m(e(),m(e(),g)).optional().describe("Additional provider-specific options. Outer record keyed by provider name, inner by option key"),A=t({type:o("text"),text:e().describe("The text content"),providerOptions:d}),U=t({type:o("text"),text:e().describe("The text content"),providerMetadata:s().optional().describe("Additional provider-specific metadata")}),W=e().describe("File data as URL string"),v=t({type:o("file"),filename:e().optional().describe("Optional filename of the file"),data:W,mediaType:e().describe("IANA media type of the file (e.g., image/png, audio/mp3)"),providerOptions:d}),F=t({type:o("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")}),Y=t({type:o("reasoning"),text:e().describe("The reasoning text"),providerOptions:d}),q=t({type:o("reasoning"),text:e().describe("The reasoning text"),providerMetadata:s().optional().describe("Additional provider-specific metadata")}),j=t({type:o("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:h().optional().describe("Whether the tool call will be executed by the provider"),providerOptions:d}),J=t({type:o("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:h().optional().describe("Whether the tool call will be executed by the provider"),providerMetadata:s().optional().describe("Additional provider-specific metadata")}),K=c([t({type:o("text"),value:e()}),t({type:o("json"),value:g}),t({type:o("error-text"),value:e()}),t({type:o("error-json"),value:g}),t({type:o("content"),value:r(c([t({type:o("text"),text:e().describe("Text content")}),t({type:o("media"),data:e().describe("Base-64 encoded media data"),mediaType:e().describe("IANA media type")})]))}),t({type:o("execution-denied"),reason:e().optional()}),e().describe("Raw or JSON-serialized output (e.g. from AI SDK mapToolResultOutput)")]),_=t({type:o("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:K.describe("Result of the tool call"),result:N().describe("Unknown result of the tool call"),providerOptions:d}),V=t({type:o("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:s().describe("Result of the tool call (JSON-serializable)"),isError:h().optional().describe("Whether the result is an error or error message"),providerExecuted:h().optional().describe("Whether the tool result was generated by the provider"),providerMetadata:s().optional().describe("Additional provider-specific metadata")}),z=c([t({type:o("source"),sourceType:o("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:s().optional().describe("Additional provider-specific metadata")}),t({type:o("source"),sourceType:o("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:s().optional().describe("Additional provider-specific metadata")})]),$=t({role:o("system"),content:e().describe("System message content"),providerOptions:d}),H=t({role:o("user"),content:r(c([A,v])).describe("User message content parts (text or file)"),providerOptions:d}),X=t({role:o("assistant"),content:r(c([A,v,Y,j,_])).describe("Assistant message content parts (text, file, reasoning, tool-call, or tool-result)"),providerOptions:d}),Z=t({role:o("tool"),content:r(_).describe("Tool message content (tool results)"),providerOptions:d}),Q=c([$,H,X,Z]),ee=r(Q).describe("A list of messages forming the prompt"),te=t({prompt:ee.describe("A language model prompt is a standardized prompt type (array of messages with roles: system, user, assistant, tool)"),maxOutputTokens:a().optional().describe("Maximum number of tokens to generate"),temperature:a().optional().describe("Temperature setting. The range depends on the provider and model"),topP:a().optional().describe("Nucleus sampling parameter"),topK:a().optional().describe("Only sample from the top K options for each subsequent token. Used to remove long tail low probability responses"),presencePenalty:a().optional().describe("Presence penalty setting. It affects the likelihood of the model to repeat information that is already in the prompt"),frequencyPenalty:a().optional().describe("Frequency penalty setting. It affects the likelihood of the model to repeatedly use the same words or phrases"),seed:a().optional().describe("The seed (integer) to use for random sampling. If set and supported by the model, calls will generate deterministic results"),stopSequences:r(e()).optional().describe("Stop sequences. If set, the model will stop generating text when one of the stop sequences is generated"),responseFormat:c([t({type:o("text")}),t({type:o("json"),schema:s().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:r(s()).optional().describe("The tools that are available for the model"),toolChoice:s().optional().describe("Specifies how the tool should be selected. Defaults to 'auto'"),includeRawChunks:h().optional().describe("Include raw chunks in the stream. Only applicable for streaming calls"),abortSignal:s().optional().describe("Abort signal for cancelling the operation"),providerOptions:s().optional().describe("Additional provider-specific options")}),oe=t({content:r(c([U,F,q,J,V,z])).describe("Ordered content that the model has generated (text, tool-calls, reasoning, files, sources)"),finishReason:f(["stop","length","content-filter","tool-calls","error","other","unknown"]).describe("Reason why generation stopped"),usage:R({inputTokens:a().optional(),outputTokens:a().optional(),totalTokens:a().optional(),reasoningTokens:a().optional()}).describe("Usage information for the language model call"),providerMetadata:s().optional().describe("Additional provider-specific metadata"),request:t({body:s().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:E().optional().describe("Timestamp for the start of the generated response"),modelId:e().optional().describe("The ID of the response model that was used"),headers:m(e(),e()).optional().describe("Response headers"),body:s().optional().describe("Response HTTP body")}).optional().describe("Optional response information for telemetry and debugging"),warnings:r(s()).describe("Warnings for the call, e.g. unsupported settings")});t({stream:s().describe("ReadableStream of LanguageModelV2StreamPart"),request:t({body:s().optional().describe("Request HTTP body sent to the provider API")}).optional().describe("Optional request information for telemetry and debugging"),response:t({headers:m(e(),e()).optional().describe("Response headers")}).optional().describe("Optional response data")});const ae=t({supportedUrls:m(e(),r(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:r(e()),limits:t({contextWindow:a(),maxOutputTokens:a()}).nullable(),costs:t({input:a(),output:a()}).nullable(),provider:f(["openai","anthropic","google","x-ai","deepseek","openai-compatible","openrouter"]).nullable()});const T=t({modelId:e().describe("The ID of the model"),callOptions:te}),ie=O.extend({logo:e().nullable(),description:e().nullable(),capabilities:r(e()),limits:t({contextWindow:a(),maxOutputTokens:a()}).nullable(),costs:t({input:a(),output:a()}).nullable(),provider:f(["openai","anthropic","google","xai","deepseek","openai-compatible","openrouter"]).nullable()}),ne=y("llm",ie,{readOnly:!0}),se=[{name:"LLM_METADATA",inputSchema:t({modelId:e().describe("The ID of the model")}),outputSchema:ae},{name:"LLM_DO_STREAM",inputSchema:T,streamable:!0},{name:"LLM_DO_GENERATE",inputSchema:T,outputSchema:oe},...ne],re=t({scopes:r(e()).describe("List of scopes available"),stateSchema:m(e(),N()).describe("JSON Schema (draft-07) defining the state structure")}),le=[{name:"MCP_CONFIGURATION",inputSchema:t({}),outputSchema:re}],ce=t({}).strict(),de=t({billing:t({mode:f(["prepaid","postpaid"]),limitPeriod:f(["daily","weekly","monthly"]).nullable()}),limit:t({total:a().nullable(),remaining:a().nullable(),reset:e().nullable()}),usage:t({total:a(),daily:a(),weekly:a(),monthly:a()}),alert:t({enabled:h(),threshold_usd:a(),email:e().nullable()}),connectionId:e()}),pe=[{name:"GATEWAY_USAGE",inputSchema:ce,outputSchema:de},{name:"GATEWAY_SET_LIMIT",inputSchema:t({}),outputSchema:t({}),opt:!0},{name:"GATEWAY_SET_ALERT",inputSchema:t({}),outputSchema:t({}),opt:!0}],I={LLMS:se,WORKFLOW:D,WORKFLOW_EXECUTION:P,ASSISTANTS:k,MCP:le,AI_GATEWAY_BILLING:pe,EVENT_BUS:M,TRIGGER:G},ue={"@deco/event-bus":"EVENT_BUS","@deco/llm":"LLMS","@deco/trigger":"TRIGGER"};function Ie(n){if(n)return ue[n]}function me(n){return n.map(i=>({name:i.name,inputSchema:i.inputSchema?(()=>{try{return S(i.inputSchema)}catch(l){return console.error(`Failed to convert input schema for ${i.name}:`,l),t({})}})():t({}),outputSchema:i.outputSchema?(()=>{try{return S(i.outputSchema)}catch(l){return console.error(`Failed to convert output schema for ${i.name}:`,l),t({})}})():t({})}))}function he(n,i){const l=n.tools;if(!l||l.length===0)return!1;const p=l.map(b=>({name:b.name,inputSchema:b.inputSchema})),u=i.map(b=>({name:b.name,inputSchema:b.inputSchema,opt:b.opt}));return L(u).isImplementedBy(p)}function ye({connections:n,binding:i}){const l=(()=>{if(i){if(typeof i=="string"){const p=i.toUpperCase(),u=I[p];if(!u){console.warn(`[useBindingConnections] Unknown binding "${i}". Available bindings: ${Object.keys(I).join(", ")}. Returning all connections without filtering.`);return}return u}if(i.length===0){console.warn("[useBindingConnections] Empty binding array provided. Returning all connections without filtering.");return}return me(i)}})();return n?l?n.filter(p=>he(p,l)):n:[]}function be(n){if(!n||n.length===0)return[];const i=/^COLLECTION_(.+)_LIST$/,l=[];for(const p of n){const u=p.name.match(i);u?.[1]&&l.push(u[1])}return l}function fe(n){return!n||n.length===0?!1:n.some(i=>i.name==="REGISTRY_ITEM_LIST"||i.name==="COLLECTION_REGISTRY_APP_LIST"?!0:i.name.startsWith("COLLECTION_REGISTRY_APP_"))}function Oe(n){return n?n.filter(i=>be(i.tools).includes("REGISTRY_APP")||fe(i.tools)):[]}export{pe as A,ye as a,he as c,Ie as r,Oe 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-DsOJvxnb.js";import{u as x}from"./useMutation-B_cFG709.js";import{K as A}from"./constants-XtX-WKGm.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-DsOJvxnb.js";import{e as C,u as a,d as I}from"./use-collections-DSWhP4jg.js";import{a as d,u as l}from"./constants-XtX-WKGm.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-DsOJvxnb.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-BfS4KaKE.js → use-create-virtual-mcp-DXWAjide.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-DsOJvxnb.js";import{a as v}from"./use-virtual-mcp-C9XdHCA_.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r}from"./index-DsOJvxnb.js";function a(t,n,s=!1){const e=r.useRef(null),c=r.useRef(t),u=r.useRef(n),f=r.useRef(s);return c.current=t,u.current=n,f.current=s,o=>{e.current&&e.current.disconnect(),e.current=new IntersectionObserver(i=>{i[0]?.isIntersecting&&u.current&&!f.current&&c.current()}),o&&e.current.observe(o)}}export{a as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as y,f as C,w as e}from"./index-
|
|
1
|
+
import{u as y,f as C,w as e}from"./index-DsOJvxnb.js";import{u as g}from"./use-binding-BfjFWpEn.js";import{a as S,b as v}from"./use-connection-DmR852Js.js";import{e as w}from"./extract-connection-data-CS_Bn7Ri.js";import{f as B,c as I,e as P}from"./registry-utils-Cd3t_Kmp.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-DsOJvxnb.js";import{u as E}from"./use-view-mode-ve-Q_Sd0.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-DsOJvxnb.js";import{u as L}from"./useQuery-D2ShO4od.js";import{a as S,u as _}from"./constants-XtX-WKGm.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-DsOJvxnb.js";import{u as F}from"./useQuery-D2ShO4od.js";import{u as J}from"./useMutation-B_cFG709.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,
|
|
1
|
+
import{c as l,v as c,a2 as m,a3 as f}from"./index-DsOJvxnb.js";import{u as y}from"./useQuery-D2ShO4od.js";import{K as n}from"./constants-XtX-WKGm.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,
|
|
1
|
+
import{c as a,a2 as m,a3 as p,v as f}from"./index-DsOJvxnb.js";import{u as R}from"./useQuery-D2ShO4od.js";import{K as n}from"./constants-XtX-WKGm.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-DsOJvxnb.js";import{u as q}from"./useQuery-D2ShO4od.js";import{u as C}from"./useMutation-B_cFG709.js";import{K as T}from"./constants-XtX-WKGm.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-DsOJvxnb.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-DsOJvxnb.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-DsOJvxnb.js";import{u as y}from"./useQuery-D2ShO4od.js";import{u as f,a}from"./constants-XtX-WKGm.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as X,u as ee,r as $,K as z,I as te}from"./index-DsOJvxnb.js";import{u as oe}from"./useQuery-D2ShO4od.js";import{u as se}from"./useInfiniteQuery-DEfXPFTs.js";import{a as re}from"./registry-utils-Cd3t_Kmp.js";import{u as ae}from"./constants-XtX-WKGm.js";const le=24;function me(c){const e=X.c(54),{registryId:n,listToolName:u,filtersToolName:a,search:r}=c,{org:K}=ee();let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h=[],e[0]=h):h=e[0];const[o,H]=$.useState(h);let y;e[1]===Symbol.for("react.memo_cache_sentinel")?(y=[],e[1]=y):y=e[1];const[s,U]=$.useState(y),M=n||null;let C;e[2]!==K.id||e[3]!==M?(C={connectionId:M,orgId:K.id},e[2]=K.id,e[3]=M,e[4]=C):C=e[4];const f=ae(C),R=!!a;let g;e[5]!==a||e[6]!==n?(g=z.toolCall(n,a||"no-filters","{}"),e[5]=a,e[6]=n,e[7]=g):g=e[7];let m;e[8]!==f||e[9]!==a?(m=async()=>{if(!a)return{tags:[],categories:[]};const t=await f.callTool({name:a,arguments:{}});return t.structuredContent??t},e[8]=f,e[9]=a,e[10]=m):m=e[10];let v;e[11]!==g||e[12]!==m?(v={queryKey:g,queryFn:m,staleTime:36e5,retry:2},e[11]=g,e[12]=m,e[13]=v):v=e[13];const{data:W}=oe(v);let l,d,P;if(e[14]!==u||e[15]!==n||e[16]!==r||e[17]!==s||e[18]!==o){const t=r?.trim()?{operator:"or",conditions:[{field:["name"],operator:"contains",value:r},{field:["title"],operator:"contains",value:r},{field:["description"],operator:"contains",value:r}]}:void 0;l={limit:le,...o.length>0&&{tags:o},...s.length>0&&{categories:s},...t&&{where:t}},P=se,d=z.toolCall(n,u,JSON.stringify(l)),e[14]=u,e[15]=n,e[16]=r,e[17]=s,e[18]=o,e[19]=l,e[20]=d,e[21]=P}else l=e[19],d=e[20],P=e[21];let p;e[22]!==f||e[23]!==l||e[24]!==u?(p=async t=>{const{pageParam:Y}=t,V=Y?{...l,cursor:Y}:l,Z=await f.callTool({name:u,arguments:V});return Z.structuredContent??Z},e[22]=f,e[23]=l,e[24]=u,e[25]=p):p=e[25];let S;e[26]!==p||e[27]!==d?(S={queryKey:d,queryFn:p,initialPageParam:void 0,getNextPageParam:ne,staleTime:36e5,placeholderData:te,retry:2},e[26]=p,e[27]=d,e[28]=S):S=e[28];const{data:x,fetchNextPage:j,hasNextPage:b,isFetchingNextPage:i,isFetching:T,isLoading:I,error:k}=P(S);let F;e:{if(!x?.pages||x.pages.length===0){F=null;break e}const t=x.pages[0];if(typeof t=="object"&&t!==null&&"totalCount"in t&&typeof t.totalCount=="number"){F=t.totalCount;break e}F=null}const w=F,L=x?.pages;let N;e[29]!==L?(N=re(L),e[29]=L,e[30]=N):N=e[30];const A=N;let _;e[31]!==r||e[32]!==s.length||e[33]!==o.length?(_=o.length>0||s.length>0||!!r?.trim(),e[31]=r,e[32]=s.length,e[33]=o.length,e[34]=_):_=e[34];const E=_,B=T&&!i&&!I&&E;let q;e[35]!==j||e[36]!==b||e[37]!==i?(q=()=>{b&&!i&&j()},e[35]=j,e[36]=b,e[37]=i,e[38]=q):q=e[38];const Q=q,G=b??!1,J=R?W?.tags:void 0,O=R?W?.categories:void 0;let D;return e[39]!==E||e[40]!==T||e[41]!==i||e[42]!==B||e[43]!==I||e[44]!==A||e[45]!==k||e[46]!==Q||e[47]!==s||e[48]!==o||e[49]!==G||e[50]!==J||e[51]!==O||e[52]!==w?(D={items:A,totalCount:w,hasMore:G,isLoadingMore:i,isFiltering:B,isInitialLoading:I,isFetching:T,error:k,loadMore:Q,availableTags:J,availableCategories:O,selectedTags:o,selectedCategories:s,setSelectedTags:H,setSelectedCategories:U,hasActiveFilters:E},e[39]=E,e[40]=T,e[41]=i,e[42]=B,e[43]=I,e[44]=A,e[45]=k,e[46]=Q,e[47]=s,e[48]=o,e[49]=G,e[50]=J,e[51]=O,e[52]=w,e[53]=D):D=e[53],D}function ne(c){if(typeof c=="object"&&c!==null){const e=c.nextCursor||c.cursor;if(e)return e}}export{me as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,r as f}from"./index-
|
|
1
|
+
import{c as p,r as f}from"./index-DsOJvxnb.js";import{u as w}from"./use-mobile-O8KVzGuv.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-DsOJvxnb.js";import{e as a,u as C,d as I}from"./use-collections-DSWhP4jg.js";import{a as l,u}from"./constants-XtX-WKGm.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-BE0Fq7u7.js";import{Y as i}from"./index-DsOJvxnb.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aD as l,aE as p,aF as n,aG as d,aH as h,x as b,r as o,aI as m,aJ as f}from"./index-DsOJvxnb.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{Y as u,$ as s}from"./index-DsOJvxnb.js";function o(e,r){return u(e,s,r)}export{o as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as s}from"./infiniteQueryObserver-BE0Fq7u7.js";import{Y as u,Z as n}from"./index-DsOJvxnb.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,
|
|
1
|
+
import{c as w,u as C,K as S,y as N,j as t}from"./index-DsOJvxnb.js";import{A as E}from"./avatar-OE2URZfM.js";import{u as k}from"./useQuery-D2ShO4od.js";import{a as A,u as _}from"./constants-XtX-WKGm.js";function K(m){const e=w.c(11),{org:h}=C();let x;e[0]!==h.id?(x={connectionId:A,orgId:h.id},e[0]=h.id,e[1]=x):x=e[1];const u=_(x);let d;e[2]!==m?(d=S.user(m),e[2]=m,e[3]=d):d=e[3];let s;e[4]!==u||e[5]!==m?(s=async()=>{const r=await u.callTool({name:"USER_GET",arguments:{id:m}});return(r.structuredContent??r).user},e[4]=u,e[5]=m,e[6]=s):s=e[6];const l=!!m;let o;return e[7]!==d||e[8]!==s||e[9]!==l?(o={queryKey:d,queryFn:s,staleTime:3e5,retry:1,enabled:l},e[7]=d,e[8]=s,e[9]=l,e[10]=o):o=e[10],k(o)}function q(m){const e=w.c(36),{id:h,size:x,showEmail:u,avatarOnly:d,className:s}=m,l=x===void 0?"xs":x,o=u===void 0?!1:u,r=d===void 0?!1:d,{data:c,isLoading:U,isError:b}=K(h);if(U){let a;e[0]!==s?(a=N("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=N("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=N("flex items-center gap-2",s),e[21]=s,e[22]=p):p=e[22];const y=c.image??void 0;let v;e[23]!==l||e[24]!==y||e[25]!==c.name?(v=t.jsx(E,{shape:"circle",size:l,url:y,fallback:c.name}),e[23]=l,e[24]=y,e[25]=c.name,e[26]=v):v=e[26];let j;e[27]!==r||e[28]!==o||e[29]!==c.email||e[30]!==c.name?(j=!r&&t.jsxs("div",{className:"flex flex-col",children:[t.jsx("div",{className:"text-sm font-medium",children:c.name}),o&&t.jsx("div",{className:"text-xs text-muted-foreground",children:c.email})]}),e[27]=r,e[28]=o,e[29]=c.email,e[30]=c.name,e[31]=j):j=e[31];let g;return e[32]!==p||e[33]!==v||e[34]!==j?(g=t.jsxs("div",{className:p,children:[v,j]}),e[32]=p,e[33]=v,e[34]=j,e[35]=g):g=e[35],g}export{q as U};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as oe,j as t,B as fe,e as dt,f as ut,u as Te,r as mt,O as ke,w as Ee,x as pt,K as Le}from"./index-DsOJvxnb.js";import{u as Ge,a as Ve}from"./constants-XtX-WKGm.js";import{g as ze}from"./generate-id-Dyweu44Y.js";import{C as qe}from"./collection-display-button-VOymjalV.js";import{C as ft}from"./collection-search-62vwaqdq.js";import{C as ht}from"./card-RQxLVCBk.js";import{I as Je}from"./integration-icon-CVxvM4fR.js";import{D as Qe,a as Ye,b as Xe,c as k}from"./dropdown-menu-DzFMEBVS.js";import{a as Ze}from"./Copy01-CIUDy0Hr.js";import{i as et}from"./DotsVertical-Y8XpM2B_.js";import{i as tt}from"./Edit01-Dw-lPBk-.js";import{s as st}from"./Eye-JuDcZhJz.js";import{s as ot}from"./Trash01-YPQczxci.js";import{C as xt}from"./collection-table-wrapper-DPJfuSg9.js";import{E as Fe}from"./empty-state-AMuFIqs3.js";import{n as Ke}from"./Inbox01-BgDmihAV.js";import{U as gt}from"./user-rS26WEu1.js";import{E as it}from"./empty-state-D4GX29pL.js";import{u as jt}from"./use-list-state-Ck8sSm9J.js";import{B as bt}from"./constants-B4Swgi3d.js";import{A as Ct,h as yt,c as vt,b as Nt,d as wt,e as _t,a as Pt,f as St}from"./alert-dialog-BVglQjyM.js";import{u as Dt,e as It}from"./use-collections-DSWhP4jg.js";import{s as At}from"./Plus-CT_Gcwl2.js";import{V as Tt}from"./layout-C2ZnDBkW.js";import{u as Et}from"./useMutation-B_cFG709.js";import{P as $}from"./index-X4FDee1r.js";import{B as Me,a as Ue,b as We,c as Be}from"./breadcrumb-aP02JuZO.js";import{e as Ot}from"./Dataflow03-T9TmjQN-.js";import"./ArrowDown-PFFBPH3j.js";import"./ArrowUp-C6Q-EpUw.js";import"./Check-BfKCyKXX.js";import"./Grid01-DBOkAm2V.js";import"./List-CuV23QYs.js";import"./tooltip-XyKE4lZa.js";import"./index-zjV4p_E5.js";import"./badge-CAg946Xk.js";import"./Loading01-BNn4YU_K.js";import"./SearchMd-BLeX5weN.js";import"./input-CUT8DBv1.js";import"./Container-DwxLlgWA.js";import"./ChevronRight-1g9z-Z5h.js";import"./table-DJbHB5IL.js";import"./avatar-OE2URZfM.js";import"./useQuery-D2ShO4od.js";import"./use-view-mode-ve-Q_Sd0.js";import"./use-mobile-O8KVzGuv.js";import"./use-local-storage-CxC8ozOe.js";function $t(o,e){const s=o.properties||{};for(const n in s){const l=s[n];if(l&&l.type==="string"&&(l.format==="url"||l.format==="uri")&&e&&typeof e=="object"&&n in e&&e[n])return e[n]}const a=["image","img","avatar","icon","logo","thumbnail","cover"];for(const n of a)if(e&&typeof e=="object"&&n in e&&typeof e[n]=="string")return e[n]}function kt(o){const e=oe.c(25),{item:s,schema:a,actions:n}=o;let l;e[0]!==s||e[1]!==a?(l=$t(a,s),e[0]=s,e[1]=a,e[2]=l):l=e[2];const r=l,c=s&&typeof s=="object"&&"description"in s&&typeof s.description=="string"?s.description:void 0;let f;e[3]!==n?(f=n&&Object.keys(n).length>0,e[3]=n,e[4]=f):f=e[4];const i=f;let m;e[5]!==r||e[6]!==s.title?(m=t.jsx(Je,{icon:r,name:s.title,size:"md",className:"shrink-0 shadow-sm"}),e[5]=r,e[6]=s.title,e[7]=m):m=e[7];let h;e[8]!==s.title?(h=t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:s.title}),e[8]=s.title,e[9]=h):h=e[9];const d=c||"No description";let u;e[10]!==d?(u=t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:d}),e[10]=d,e[11]=u):u=e[11];let b;e[12]!==h||e[13]!==u?(b=t.jsxs("div",{className:"flex flex-col gap-0 flex-1",children:[h,u]}),e[12]=h,e[13]=u,e[14]=b):b=e[14];let _;e[15]!==m||e[16]!==b?(_=t.jsxs("div",{className:"flex flex-col gap-4 p-6 flex-1",children:[m,b]}),e[15]=m,e[16]=b,e[17]=_):_=e[17];let p;e[18]!==n||e[19]!==i||e[20]!==s?(p=i&&t.jsx("div",{className:"absolute top-6 right-6 opacity-0 group-hover:opacity-100 transition-opacity",onClick:Kt,onMouseDown:Ft,children:t.jsxs(Qe,{children:[t.jsx(Ye,{asChild:!0,children:t.jsx(fe,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:zt,children:t.jsx(et,{size:20})})}),t.jsxs(Xe,{align:"end",onClick:Lt,children:[n.open&&t.jsxs(k,{onClick:x=>{x.stopPropagation(),n.open?.(s)},children:[t.jsx(st,{size:16}),"Open"]}),n.edit&&t.jsxs(k,{onClick:x=>{x.stopPropagation(),n.edit?.(s)},children:[t.jsx(tt,{size:16}),"Edit"]}),n.duplicate&&t.jsxs(k,{onClick:x=>{x.stopPropagation(),n.duplicate?.(s)},children:[t.jsx(Ze,{size:16}),"Duplicate"]}),n.delete&&t.jsxs(k,{variant:"destructive",onClick:x=>{x.stopPropagation(),n.delete?.(s)},children:[t.jsx(ot,{size:16}),"Delete"]})]})]})}),e[18]=n,e[19]=i,e[20]=s,e[21]=p):p=e[21];let C;return e[22]!==_||e[23]!==p?(C=t.jsxs(ht,{className:"cursor-pointer transition-colors h-full flex flex-col group relative",children:[_,p]}),e[22]=_,e[23]=p,e[24]=C):C=e[24],C}function Lt(o){return o.stopPropagation()}function zt(o){return o.stopPropagation()}function Ft(o){return o.stopPropagation()}function Kt(o){return o.stopPropagation()}const Mt=["icon","avatar","logo"],Re=["created_at","created_by","id"];function Ut(o){return Object.keys(o).find(e=>Mt.includes(e.toLowerCase()))}function nt(o,e){return Object.keys(o.properties||{}).filter(s=>["id","created_at","updated_at","created_by","updated_by"].includes(s)?!1:e?e.includes(s):!0).map(s=>({id:s,label:s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," ")}))}function Wt(o){const e=oe.c(30),{data:s,schema:a,viewMode:n,search:l,sortKey:r,sortDirection:c,onSort:f,actions:i,onItemClick:m,headerActions:h,emptyState:d,readOnly:u,columns:b,hideToolbar:_,sortableFields:p}=o,C=c===void 0?"asc":c,x=f===void 0?Gt:f;let y;e[0]!==i?(y=i===void 0?{}:i,e[0]=i,e[1]=y):y=e[1];const E=y,v=m===void 0?Ht:m,L=h===void 0?null:h,O=d===void 0?null:d,D=u===void 0?!1:u,g=b===void 0?void 0:b,S=_===void 0?!1:_,N=p===void 0?void 0:p;let I;e[2]!==g||e[3]!==a||e[4]!==N?(I=g?g.filter(Rt).filter(T=>!N||N.includes(T.id)).map(Bt):nt(a,N),e[2]=g,e[3]=a,e[4]=N,e[5]=I):I=e[5];const z=I;let P;e[6]!==L||e[7]!==S||e[8]!==x||e[9]!==C||e[10]!==r||e[11]!==z?(P=!S&&t.jsx("div",{className:"shrink-0 w-full border-b border-border h-12",children:t.jsxs("div",{className:"flex items-center gap-3 h-12 px-4",children:[t.jsx("div",{className:"flex items-center gap-2 flex-1",children:L}),t.jsx("div",{className:"flex items-center gap-2 shrink-0",children:t.jsx(qe,{sortKey:r,sortDirection:C,onSort:x,sortOptions:z})})]})}),e[6]=L,e[7]=S,e[8]=x,e[9]=C,e[10]=r,e[11]=z,e[12]=P):P=e[12];let w;e[13]!==E||e[14]!==g||e[15]!==s||e[16]!==O||e[17]!==v||e[18]!==x||e[19]!==D||e[20]!==a||e[21]!==l||e[22]!==C||e[23]!==r||e[24]!==N||e[25]!==n?(w=n==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:s.length===0?t.jsx("div",{className:"flex items-center justify-center h-full",children:O||t.jsx(Fe,{icon:t.jsx(Ke,{size:36,className:"text-muted-foreground"}),title:"No items found",description:l?"Try adjusting your search":"No items to display"})}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:s.map(T=>t.jsx("div",{onClick:()=>v?.(T),className:"cursor-pointer h-full",children:t.jsx(kt,{item:T,schema:a,readOnly:D,actions:E})},T.id))})}):t.jsx(xt,{columns:Jt(g,a,N,E),data:s,sortKey:r,sortDirection:C,onSort:x,onRowClick:v,emptyState:O||t.jsx(Fe,{icon:t.jsx(Ke,{size:36,className:"text-muted-foreground"}),title:"No items found",description:l?"Try adjusting your search":"No items to display"})}),e[13]=E,e[14]=g,e[15]=s,e[16]=O,e[17]=v,e[18]=x,e[19]=D,e[20]=a,e[21]=l,e[22]=C,e[23]=r,e[24]=N,e[25]=n,e[26]=w):w=e[26];let A;return e[27]!==P||e[28]!==w?(A=t.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[P,w]}),e[27]=P,e[28]=w,e[29]=A):A=e[29],A}function Bt(o){return{id:o.id,label:typeof o.header=="string"?o.header:o.id}}function Rt(o){return o.sortable!==!1}function Ht(){}function Gt(){}function Vt(o){return{id:"actions",header:"",render:e=>t.jsxs(Qe,{children:[t.jsx(Ye,{asChild:!0,children:t.jsx(fe,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:s=>s.stopPropagation(),children:t.jsx(et,{size:20})})}),t.jsxs(Xe,{align:"end",onClick:s=>s.stopPropagation(),children:[o.open&&t.jsxs(k,{onClick:s=>{s.stopPropagation(),o.open?.(e)},children:[t.jsx(st,{size:16}),"Open"]}),o.edit&&t.jsxs(k,{onClick:s=>{s.stopPropagation(),o.edit?.(e)},children:[t.jsx(tt,{size:16}),"Edit"]}),o.duplicate&&t.jsxs(k,{onClick:s=>{s.stopPropagation(),o.duplicate?.(e)},children:[t.jsx(Ze,{size:16}),"Duplicate"]}),o.delete&&t.jsxs(k,{variant:"destructive",onClick:s=>{s.stopPropagation(),o.delete?.(e)},children:[t.jsx(ot,{size:16}),"Delete"]})]})]}),cellClassName:"w-[60px]",sortable:!1}}function rt(o){const e=o.type;return Array.isArray(e)?e.every(s=>rt({type:s})):e==="string"||e==="number"||e==="integer"||e==="boolean"||e==="null"}function qt(o,e){const s=o.properties||{},a=Object.keys(s).filter(i=>{const m=s[i];return m&&rt(m)}),n=Ut(s),l=[],r=new Set;n&&a.includes(n)&&(l.push(n),r.add(n));const c=["title","description","updated_at","updated_by"];for(const i of c)a.includes(i)&&!r.has(i)&&(l.push(i),r.add(i));const f=a.filter(i=>!r.has(i)&&!Re.includes(i)).sort((i,m)=>i.localeCompare(m));for(const i of f)l.push(i),r.add(i);for(const i of Re)a.includes(i)&&!r.has(i)&&(l.push(i),r.add(i));return l.map(i=>{const m=s[i],h=e?e.includes(i):!["id"].includes(i);return i===n?{id:i,header:"",render:d=>{const u=d[i];return t.jsx(Je,{icon:u,name:d.title,size:"sm",className:"shrink-0 shadow-sm"})},sortable:!1,cellClassName:"w-16 shrink-0",wrap:!0}:i==="description"?{id:i,header:"Description",render:d=>{const u=d[i];return u==null?"—":t.jsx("span",{className:"block truncate max-w-[50ch]",children:String(u)})},sortable:h,cellClassName:"max-w-[50ch]"}:i==="created_by"||i==="updated_by"?{id:i,header:i.charAt(0).toUpperCase()+i.slice(1).replace(/_/g," "),render:d=>{const u=d[i];return u?t.jsx(gt,{id:String(u),size:"xs"}):"—"},sortable:h,cellClassName:"max-w-[250px]"}:m?.format==="date-time"||i.endsWith("_at")?{id:i,header:i.charAt(0).toUpperCase()+i.slice(1).replace(/_/g," "),render:d=>{const u=d[i];return u?t.jsx("span",{className:"block truncate max-w-full",children:new Date(u).toLocaleDateString()}):"—"},sortable:h,cellClassName:"max-w-[200px]"}:{id:i,header:i.charAt(0).toUpperCase()+i.slice(1).replace(/_/g," "),render:d=>{const u=d[i];return u==null?"—":t.jsx("span",{className:"block truncate max-w-full",children:String(u)})},sortable:h,cellClassName:"max-w-[200px]"}})}function Jt(o,e,s,a){const n=o||qt(e,s);return n.some(c=>c.id==="actions")?n:Object.keys(a).length>0?[...n,Vt(a)]:n}function Qt(o){const e=oe.c(111),{connectionId:s,org:a,activeCollection:n}=o,l=n.name,r=n.schema??bt,c=n.hasCreateTool,f=n.hasUpdateTool,i=n.hasDeleteTool,m=dt(),{data:h}=ut.useSession(),d=h?.user?.id||"unknown",{org:u}=Te();let b;e[0]!==s||e[1]!==u.id?(b={connectionId:s,orgId:u.id},e[0]=s,e[1]=u.id,e[2]=b):b=e[2];const _=Ge(b),p=Dt(s,l,_),C=`${s}-${l}`;let x;e[3]!==a||e[4]!==C?(x={namespace:a,resource:C,defaultSortKey:"updated_at"},e[3]=a,e[4]=C,e[5]=x):x=e[5];const{search:y,searchTerm:E,setSearch:v,viewMode:L,setViewMode:O,sortKey:D,sortDirection:g,handleSort:S}=jt(x);let N;e[6]!==E||e[7]!==g||e[8]!==D?(N={searchTerm:E,sortKey:D,sortDirection:g},e[6]=E,e[7]=g,e[8]=D,e[9]=N):N=e[9];const I=It(s,l,_,N),z=!c&&!f&&!i;let P;e[10]!==l||e[11]!==s||e[12]!==m||e[13]!==a?(P=j=>{m({to:"/$org/$project/mcps/$connectionId/$collectionName/$itemId",params:{org:a,project:ke,connectionId:s,collectionName:l,itemId:j.id}})},e[10]=l,e[11]=s,e[12]=m,e[13]=a,e[14]=P):P=e[14];const w=P;let A;e[15]!==p.create||e[16]!==d?(A=async j=>{const pe=new Date().toISOString();await p.create.mutateAsync({...j,id:ze("conn"),title:`${j.title} (Copy)`,created_at:pe,updated_at:pe,created_by:d,updated_by:d})},e[15]=p.create,e[16]=d,e[17]=A):A=e[17];const T=A,[F,he]=mt.useState(null);let ie;e[18]===Symbol.for("react.memo_cache_sentinel")?(ie=j=>{he(j)},e[18]=ie):ie=e[18];const lt=ie;let K;e[19]!==w||e[20]!==f?(K=f&&{edit:w},e[19]=w,e[20]=f,e[21]=K):K=e[21];let M;e[22]!==T||e[23]!==c?(M=c&&{duplicate:T},e[22]=T,e[23]=c,e[24]=M):M=e[24];let U;e[25]!==i?(U=i&&{delete:lt},e[25]=i,e[26]=U):U=e[26];let ne;e[27]!==U||e[28]!==K||e[29]!==M?(ne={...K,...M,...U},e[27]=U,e[28]=K,e[29]=M,e[30]=ne):ne=e[30];const xe=ne;let re;e[31]!==p.delete||e[32]!==F?(re=async()=>{F&&(await p.delete.mutateAsync(F.id),he(null))},e[31]=p.delete,e[32]=F,e[33]=re):re=e[33];const ge=re;let le;e[34]!==p.create||e[35]!==l||e[36]!==s||e[37]!==c||e[38]!==m||e[39]!==a||e[40]!==d?(le=async()=>{if(!c){Ee.error("Create operation is not available for this collection");return}const j=new Date().toISOString(),pe={id:ze("conn"),title:"New Item",description:"A brief description of the item",created_at:j,updated_at:j,created_by:d,updated_by:d};try{const Ae=await p.create.mutateAsync(pe);m({to:"/$org/$project/mcps/$connectionId/$collectionName/$itemId",params:{org:a,project:ke,connectionId:s,collectionName:l,itemId:Ae.id}})}catch(Ae){console.error("Failed to create item:",Ae)}},e[34]=p.create,e[35]=l,e[36]=s,e[37]=c,e[38]=m,e[39]=a,e[40]=d,e[41]=le):le=e[41];const je=le;let ae;e[42]!==r?(ae=nt(r),e[42]=r,e[43]=ae):ae=e[43];const be=ae,Oe=(I?.length??0)>0,at=c&&Oe,ct=c&&!Oe&&!y;let ce;e[44]!==p.create||e[45]!==je||e[46]!==c?(ce=c?t.jsxs(fe,{onClick:je,size:"sm",disabled:p.create.isPending,className:"h-7",children:[t.jsx(At,{className:"mr-2 h-4 w-4"}),p.create.isPending?"Creating...":"Create"]}):null,e[44]=p.create,e[45]=je,e[46]=c,e[47]=ce):ce=e[47];const $e=ce,Ce=D;let W;e[48]!==S||e[49]!==g||e[50]!==be||e[51]!==Ce?(W=t.jsx(qe,{sortKey:Ce,sortDirection:g,onSort:S,sortOptions:be}),e[48]=S,e[49]=g,e[50]=be,e[51]=Ce,e[52]=W):W=e[52];const ye=at&&$e;let B;e[53]!==W||e[54]!==ye?(B=t.jsxs(Tt,{children:[W,ye]}),e[53]=W,e[54]=ye,e[55]=B):B=e[55];const ve=`Search ${l}...`;let R;e[56]!==v?(R=j=>{j.key==="Escape"&&(v(""),j.target.blur())},e[56]=v,e[57]=R):R=e[57];let H;e[58]!==y||e[59]!==v||e[60]!==ve||e[61]!==R?(H=t.jsx(ft,{value:y,onChange:v,placeholder:ve,onKeyDown:R}),e[58]=y,e[59]=v,e[60]=ve,e[61]=R,e[62]=H):H=e[62];let G;e[63]!==I?(G=I??[],e[63]=I,e[64]=G):G=e[64];const Ne=D;let V;e[65]!==w?(V=j=>w(j),e[65]=w,e[66]=V):V=e[66];const we="No items found",_e=y?"Try adjusting your search terms":"This collection doesn't have any items yet.",Pe=ct?$e:void 0;let q;e[67]!==we||e[68]!==_e||e[69]!==Pe?(q=t.jsx(it,{image:null,title:we,description:_e,actions:Pe}),e[67]=we,e[68]=_e,e[69]=Pe,e[70]=q):q=e[70];let J;e[71]!==S||e[72]!==z||e[73]!==xe||e[74]!==r||e[75]!==y||e[76]!==v||e[77]!==O||e[78]!==g||e[79]!==G||e[80]!==Ne||e[81]!==V||e[82]!==q||e[83]!==L?(J=t.jsx("div",{className:"flex-1 overflow-auto",children:t.jsx(Wt,{hideToolbar:!0,data:G,schema:r,viewMode:L,onViewModeChange:O,search:y,onSearchChange:v,sortKey:Ne,sortDirection:g,onSort:S,actions:xe,onItemClick:V,readOnly:z,emptyState:q})}),e[71]=S,e[72]=z,e[73]=xe,e[74]=r,e[75]=y,e[76]=v,e[77]=O,e[78]=g,e[79]=G,e[80]=Ne,e[81]=V,e[82]=q,e[83]=L,e[84]=J):J=e[84];let Q;e[85]!==H||e[86]!==J?(Q=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[H,J]}),e[85]=H,e[86]=J,e[87]=Q):Q=e[87];const Se=!!F;let de;e[88]===Symbol.for("react.memo_cache_sentinel")?(de=j=>{j||he(null)},e[88]=de):de=e[88];let ue;e[89]===Symbol.for("react.memo_cache_sentinel")?(ue=t.jsx(vt,{children:"Delete item?"}),e[89]=ue):ue=e[89];const De=F?.title;let Y;e[90]!==De?(Y=t.jsxs(Nt,{children:[ue,t.jsxs(wt,{children:['Are you sure you want to delete "',De,'"? This action cannot be undone.']})]}),e[90]=De,e[91]=Y):Y=e[91];let X;e[92]!==p.delete.isPending?(X=t.jsx(Ct,{disabled:p.delete.isPending,children:"Cancel"}),e[92]=p.delete.isPending,e[93]=X):X=e[93];const Ie=p.delete.isPending?"Deleting...":"Delete";let Z;e[94]!==p.delete.isPending||e[95]!==ge||e[96]!==Ie?(Z=t.jsx(yt,{onClick:ge,disabled:p.delete.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:Ie}),e[94]=p.delete.isPending,e[95]=ge,e[96]=Ie,e[97]=Z):Z=e[97];let ee;e[98]!==X||e[99]!==Z?(ee=t.jsxs(_t,{children:[X,Z]}),e[98]=X,e[99]=Z,e[100]=ee):ee=e[100];let te;e[101]!==Y||e[102]!==ee?(te=t.jsxs(Pt,{children:[Y,ee]}),e[101]=Y,e[102]=ee,e[103]=te):te=e[103];let se;e[104]!==Se||e[105]!==te?(se=t.jsx(St,{open:Se,onOpenChange:de,children:te}),e[104]=Se,e[105]=te,e[106]=se):se=e[106];let me;return e[107]!==B||e[108]!==Q||e[109]!==se?(me=t.jsxs(t.Fragment,{children:[B,Q,se]}),e[107]=B,e[108]=Q,e[109]=se,e[110]=me):me=e[110],me}function Yt(){const o=oe.c(12),{org:e,project:s}=Te(),a=pt();let n;o[0]!==e.id?(n={connectionId:Ve,orgId:e.id},o[0]=e.id,o[1]=n):n=o[1];const l=Ge(n);let r;o[2]!==l||o[3]!==s?(r=async m=>{const h=s.enabledPlugins??[];if(h.includes(m))return;const d=[...h,m],u=await l.callTool({name:"PROJECT_UPDATE",arguments:{projectId:s.id,enabledPlugins:d}});return u.structuredContent??u},o[2]=l,o[3]=s,o[4]=r):r=o[4];let c;o[5]!==e.id||o[6]!==s||o[7]!==a?(c=()=>{a.invalidateQueries({queryKey:Le.project(e.id,s.slug)}),a.invalidateQueries({queryKey:Le.projects(e.id)})},o[5]=e.id,o[6]=s,o[7]=a,o[8]=c):c=o[8];let f;return o[9]!==r||o[10]!==c?(f={mutationFn:r,onSuccess:c,onError:Xt},o[9]=r,o[10]=c,o[11]=f):f=o[11],Et(f)}function Xt(o){Ee.error("Failed to enable plugin: "+(o instanceof Error?o.message:"Unknown error"))}function Zt(o){const e=oe.c(12),{pluginId:s,title:a,description:n,icon:l}=o,r=Yt();let c;e[0]!==r||e[1]!==s?(c=async()=>{try{await r.mutateAsync(s),Ee.success("Plugin enabled!")}catch{}},e[0]=r,e[1]=s,e[2]=c):c=e[2];const f=c,i=l??null,m=r.isPending?"Enabling…":"Enable plugin";let h;e[3]!==r.isPending||e[4]!==f||e[5]!==m?(h=t.jsx(fe,{onClick:f,disabled:r.isPending,children:m}),e[3]=r.isPending,e[4]=f,e[5]=m,e[6]=h):h=e[6];let d;return e[7]!==n||e[8]!==i||e[9]!==h||e[10]!==a?(d=t.jsx(it,{image:i,title:a,description:n,actions:h}),e[7]=n,e[8]=i,e[9]=h,e[10]=a,e[11]=d):d=e[11],d}const He="workflows",es={name:"WORKFLOW",displayName:"Workflow",hasCreateTool:!0,hasUpdateTool:!0,hasDeleteTool:!0};function Js(){const o=oe.c(5),{project:e,org:s}=Te();if(!(e.enabledPlugins??[]).includes(He)){let c;o[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx($.Header,{children:t.jsx($.Header.Left,{children:t.jsx(Me,{children:t.jsx(Ue,{children:t.jsx(We,{children:t.jsx(Be,{children:"Workflows"})})})})})}),o[0]=c):c=o[0];let f;return o[1]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsxs($,{children:[c,t.jsx($.Content,{children:t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(Zt,{pluginId:He,title:"Enable Workflows",description:"Automate multi-step processes by enabling the Workflows plugin. Once enabled you can create, run, and monitor workflows.",icon:t.jsx("div",{className:"bg-muted p-4 rounded-full",children:t.jsx(Ot,{className:"size-8 text-muted-foreground"})})})})})]}),o[1]=f):f=o[1],f}let l;o[2]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx($.Header,{children:t.jsx($.Header.Left,{children:t.jsx(Me,{children:t.jsx(Ue,{children:t.jsx(We,{children:t.jsx(Be,{children:"Workflows"})})})})})}),o[2]=l):l=o[2];let r;return o[3]!==s.slug?(r=t.jsxs($,{children:[l,t.jsx($.Content,{children:t.jsx(Qt,{connectionId:Ve,org:s.slug,activeCollection:es})})]}),o[3]=s.slug,o[4]=r):r=o[4],r}export{Js as default};
|
package/dist/client/index.html
CHANGED
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
<meta name="twitter:description" content="Hire specialized agents, give them access to your tools, and let them deliver real projects — with planning, verification, and observability built in." />
|
|
13
13
|
<meta name="twitter:image" content="/og-image.png" />
|
|
14
14
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
15
|
-
<script type="module" crossorigin src="/assets/index-
|
|
16
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
15
|
+
<script type="module" crossorigin src="/assets/index-DsOJvxnb.js"></script>
|
|
16
|
+
<link rel="stylesheet" crossorigin href="/assets/index-D5cL24p_.css">
|
|
17
17
|
</head>
|
|
18
18
|
<body>
|
|
19
19
|
<div id="root"></div>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2010 - 2021 Brian Carlson
|
|
3
4
|
|
|
4
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -8,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
8
9
|
copies of the Software, and to permit persons to whom the Software is
|
|
9
10
|
furnished to do so, subject to the following conditions:
|
|
10
11
|
|
|
11
|
-
The above copyright notice and this permission notice shall be included in
|
|
12
|
-
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
13
14
|
|
|
14
15
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
16
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
17
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
-
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|