@decocms/mesh 2.128.2 → 2.128.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-Ci70K_EZ.js → AlertCircle-DQQcPtgD.js} +1 -1
- package/dist/client/assets/{AlertOctagon-CqLqdISi.js → AlertOctagon-hF9xAZsV.js} +1 -1
- package/dist/client/assets/{ArrowDown-BB4lqZfQ.js → ArrowDown-Cf0RNEZQ.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DOvB9XQA.js → ArrowLeft-D7lFQljS.js} +1 -1
- package/dist/client/assets/{ArrowUp-ByjI1wop.js → ArrowUp-CKXiX_Ao.js} +1 -1
- package/dist/client/assets/{Check-Dnxirgog.js → Check-B_1XgGXq.js} +1 -1
- package/dist/client/assets/{CheckCircle-DNKireMY.js → CheckCircle-teFEREuu.js} +1 -1
- package/dist/client/assets/{CheckDone01-BQB-AnYZ.js → CheckDone01-BlB1S8hb.js} +1 -1
- package/dist/client/assets/{CheckVerified02-I-XS300S.js → CheckVerified02-C72zve8A.js} +1 -1
- package/dist/client/assets/{ChevronDown-DlCNAUXg.js → ChevronDown-BCXsTPO0.js} +1 -1
- package/dist/client/assets/{ChevronRight-BjXZnVl8.js → ChevronRight-Dv5Kd3sh.js} +1 -1
- package/dist/client/assets/{Clock-CuTVdxgk.js → Clock-B4Ctq7dH.js} +1 -1
- package/dist/client/assets/{Code01-D62OImsE.js → Code01-gdNPPDL2.js} +1 -1
- package/dist/client/assets/{Container-NYiiZyd6.js → Container-JCSa3G3B.js} +1 -1
- package/dist/client/assets/{Copy01--WUANgtG.js → Copy01-B1lCFyqr.js} +1 -1
- package/dist/client/assets/{Dataflow03-r1iydeQd.js → Dataflow03-CmiJ_a2x.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-CIJOriRT.js → DotsHorizontal-DYVOSQNI.js} +1 -1
- package/dist/client/assets/{DotsVertical-CdVqSSOc.js → DotsVertical-Dv4tBZU-.js} +1 -1
- package/dist/client/assets/{Download01-CB8jg-CL.js → Download01-DIwP2P7D.js} +1 -1
- package/dist/client/assets/{Edit01-DK-8NMEI.js → Edit01-DDXcCS4H.js} +1 -1
- package/dist/client/assets/{Eye-broatAu7.js → Eye-BZHp_wD7.js} +1 -1
- package/dist/client/assets/{File02-D0NaH0bX.js → File02-D8nm9j-J.js} +1 -1
- package/dist/client/assets/{File06-WXzmRYLt.js → File06-D-_j0iW5.js} +1 -1
- package/dist/client/assets/{FilterLines-frJ-GsBz.js → FilterLines-BP-6W-PZ.js} +1 -1
- package/dist/client/assets/{Globe01-VgVHGjyC.js → Globe01-BUQmYqse.js} +1 -1
- package/dist/client/assets/{Globe02-C0qeWKnK.js → Globe02-CitacpSB.js} +1 -1
- package/dist/client/assets/{Grid01-Dyv_Ip5i.js → Grid01-9bvbF-2s.js} +1 -1
- package/dist/client/assets/{Hash02-oBjA0qJC.js → Hash02-B1Ogol6o.js} +1 -1
- package/dist/client/assets/{Home02-DX25irYw.js → Home02-BQf2Bq1d.js} +1 -1
- package/dist/client/assets/{Image01-Dv4Xx4Vn.js → Image01-DQT9mrMs.js} +1 -1
- package/dist/client/assets/{Inbox01-Bh1zeW2m.js → Inbox01-jnM9oRqF.js} +1 -1
- package/dist/client/assets/{InfoCircle-C7uLV_XX.js → InfoCircle-CGMOojOv.js} +1 -1
- package/dist/client/assets/{Key01-DVkykkuH.js → Key01-xmVowZ8K.js} +1 -1
- package/dist/client/assets/{LinkExternal01-D9NBeY0S.js → LinkExternal01-D9XuFg7K.js} +1 -1
- package/dist/client/assets/{List-C9ntvlpP.js → List-klt4Ktng.js} +1 -1
- package/dist/client/assets/{Loading01-D2eBBNoh.js → Loading01-fS4L07xH.js} +1 -1
- package/dist/client/assets/{Lock01-ep_v0VnB.js → Lock01-BKSJ7A3p.js} +1 -1
- package/dist/client/assets/{Play-DfNy_KGK.js → Play-xVtvzzCw.js} +1 -1
- package/dist/client/assets/{Plus-CoFNXdPs.js → Plus-J6pIe2uV.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-J5wqqeG_.js → RefreshCcw01-CL_G5oMs.js} +1 -1
- package/dist/client/assets/{Rows03-D7jJRDVm.js → Rows03-cUxIL8D0.js} +1 -1
- package/dist/client/assets/{Save01-DCBihulA.js → Save01-CdMTv6PL.js} +1 -1
- package/dist/client/assets/{SearchMd-WqvhRztL.js → SearchMd-CifRamFZ.js} +1 -1
- package/dist/client/assets/{Settings01-CF0yl6Tz.js → Settings01-B28HDbDZ.js} +1 -1
- package/dist/client/assets/{Shield01-BVTU_rBf.js → Shield01-BrHq9skT.js} +1 -1
- package/dist/client/assets/{Terminal-BWI5ji_M.js → Terminal-BPUAzvCO.js} +1 -1
- package/dist/client/assets/{Tool01-uNfJ4BgB.js → Tool01-6ldn8KE7.js} +1 -1
- package/dist/client/assets/{Trash01-Bilx6R4T.js → Trash01-BGRjTxek.js} +1 -1
- package/dist/client/assets/{Upload01-yL5uy1IO.js → Upload01-Z7XprHF7.js} +1 -1
- package/dist/client/assets/{Users03-ELQ8CczK.js → Users03-DkrzV9ZI.js} +1 -1
- package/dist/client/assets/{X-DlPknjOM.js → X-BY3es49B.js} +1 -1
- package/dist/client/assets/{XCircle-aBox2-uz.js → XCircle-DZ1yCOQ6.js} +1 -1
- package/dist/client/assets/{XClose-Baiitjul.js → XClose-Cc-gaidr.js} +1 -1
- package/dist/client/assets/agent-connections-preview-pDe7P7Ta.js +1 -0
- package/dist/client/assets/agent-detail-2TyklQZz.js +2 -0
- package/dist/client/assets/agents-DKPHVEr-.js +1 -0
- package/dist/client/assets/alert-dialog-Dcn63g6g.js +7 -0
- package/dist/client/assets/{auth-catchall-DmQOOeQy.js → auth-catchall-Dho6OcVz.js} +1 -1
- package/dist/client/assets/avatar-PHdbjFDw.js +1 -0
- package/dist/client/assets/badge-SF6wUW5L.js +1 -0
- package/dist/client/assets/{binder--zY5y66H.js → binder-D_h2ibfT.js} +1 -1
- package/dist/client/assets/breadcrumb-C0g6Pt2_.js +1 -0
- package/dist/client/assets/card-BdxqmIDs.js +1 -0
- package/dist/client/assets/chart-BUZSWI3B.js +15 -0
- package/dist/client/assets/checkbox-LKkMIiIW.js +1 -0
- package/dist/client/assets/{circle-alert-B7z6aEqV.js → circle-alert-tYCIieku.js} +1 -1
- package/dist/client/assets/{collection-detail-Nf6HLmBW.js → collection-detail-ByuFgV2Y.js} +4 -4
- package/dist/client/assets/collection-search-qyutGH6l.js +1 -0
- package/dist/client/assets/collection-tab-BbAfStP-.js +1 -0
- package/dist/client/assets/collection-table-wrapper-C9APekgb.js +1 -0
- package/dist/client/assets/collection-tabs-h2vOc-_S.js +1 -0
- package/dist/client/assets/command-FPE9wf0f.js +1 -0
- package/dist/client/assets/connect-CX8KQP6_.js +1 -0
- package/dist/client/assets/connection-card-ZsVFtnK9.js +1 -0
- package/dist/client/assets/connection-detail-pqk6mgg9.js +1 -0
- package/dist/client/assets/connections-BohwKULL.js +1 -0
- package/dist/client/assets/{constants-V7-3C38y.js → constants-CYyFC-Sp.js} +1 -1
- package/dist/client/assets/constants-DllrcpiP.js +1 -0
- package/dist/client/assets/{context-BBfuJWes.js → context-DCvH3r3j.js} +4 -4
- package/dist/client/assets/create-organization-dialog-BCgnCEPh.js +1 -0
- package/dist/client/assets/create-project-dialog-CrEm4IvG.js +1 -0
- package/dist/client/assets/dialog-DjBLF9Xz.js +1 -0
- package/dist/client/assets/dropdown-menu-dMkqHp7f.js +1 -0
- package/dist/client/assets/dynamic-plugin-layout-DnTEhExp.js +1 -0
- package/dist/client/assets/editable-thread-title-CGN0Mgzr.js +16 -0
- package/dist/client/assets/empty-state-B6tWKHPM.js +1 -0
- package/dist/client/assets/env-vars-editor-D0A2SEWh.js +1 -0
- package/dist/client/assets/{extract-connection-data-DyTSTIQR.js → extract-connection-data-Bc1UBsWZ.js} +1 -1
- package/dist/client/assets/file-browser-BAUqIo1x.js +2 -0
- package/dist/client/assets/form-DKDTPBJL.js +1 -0
- package/dist/client/assets/grid-view-DBeJ-u7v.js +1 -0
- package/dist/client/assets/home-o-8rSFPM.js +1 -0
- package/dist/client/assets/{index-kTXXfvC-.js → index-Bf_CY3qu.js} +1 -1
- package/dist/client/assets/index-BoZYckTW.js +1 -0
- package/dist/client/assets/{index-CI36RmtE.js → index-Cr71gOj3.js} +1 -1
- package/dist/client/assets/index-CxnWkZZb.js +1 -0
- package/dist/client/assets/index-DCxyPrpA.js +1 -0
- package/dist/client/assets/{index-uOrjFt6t.js → index-DL3qqjep.js} +36 -36
- package/dist/client/assets/{index-CW4zTmBX.js → index-DXe5aLcB.js} +1 -1
- package/dist/client/assets/{index-DTB_8xm9.js → index-EAWMJGj2.js} +11 -11
- package/dist/client/assets/{index-BpUpHsNU.js → index-nz17Zavj.js} +2 -2
- package/dist/client/assets/{infiniteQueryObserver-DS9VDnBa.js → infiniteQueryObserver-QkJ406yX.js} +1 -1
- package/dist/client/assets/input-pcdA_rWs.js +1 -0
- package/dist/client/assets/integration-icon-CDKf5lkP.js +1 -0
- package/dist/client/assets/label-Cs0rMyA0.js +1 -0
- package/dist/client/assets/layout-BM96F8A6.js +1 -0
- package/dist/client/assets/{localstorage-keys-r_mW6Lq0.js → localstorage-keys-DuRbtKex.js} +1 -1
- package/dist/client/assets/login-UlwWZHgc.js +1 -0
- package/dist/client/assets/{markdown-BD6zDSJc.js → markdown-CN9uWcE5.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CDj0bpnF.js → mcp-oauth-1reN8tHJ.js} +1 -1
- package/dist/client/assets/mcp-server-card-BvqzVqbR.js +1 -0
- package/dist/client/assets/mcp-server-detail-44WaE8j1.js +2 -0
- package/dist/client/assets/members-Dlu0JdHg.js +3 -0
- package/dist/client/assets/{monitoring-FEHIw1jG.js → monitoring-BkGKM_nf.js} +3 -3
- package/dist/client/assets/monitoring-dashboard-edit-Bh6jLPJ-.js +1 -0
- package/dist/client/assets/{monitoring-dashboard-view-eE4UAi9y.js → monitoring-dashboard-view-BR_gx-ah.js} +2 -2
- package/dist/client/assets/{oauth-callback-AmREHdz2.js → oauth-callback-My1FCnBz.js} +1 -1
- package/dist/client/assets/page-CTS2P4X2.js +1 -0
- package/dist/client/assets/page-CrdufU7i.js +1 -0
- package/dist/client/assets/{plugin-empty-state-OjZLLHuW.js → plugin-empty-state-BL9scDTN.js} +1 -1
- package/dist/client/assets/plugin-empty-state-CM6Dryag.js +1 -0
- package/dist/client/assets/plugin-header-C1mnXf_l.js +1 -0
- package/dist/client/assets/{plugin-header-DqYSY5WD.js → plugin-header-UsujlRy8.js} +1 -1
- package/dist/client/assets/popover-DVJVvDk4.js +1 -0
- package/dist/client/assets/project-layout-ChFI6quF.js +1 -0
- package/dist/client/assets/projects-list-tpjdpWOF.js +1 -0
- package/dist/client/assets/ranking-layout-CrYiPhgR.js +1 -0
- package/dist/client/assets/{readme-viewer-DAvIfvua.js → readme-viewer-B2f4puJD.js} +1 -1
- package/dist/client/assets/{registry-layout-BcVc2nNS.js → registry-layout-C0R7NUsH.js} +2 -2
- package/dist/client/assets/{registry-utils-CwZm8daW.js → registry-utils-D-aIeu5g.js} +1 -1
- package/dist/client/assets/reports-layout-DXj87viG.js +3 -0
- package/dist/client/assets/reset-password-BlWYJ3vA.js +1 -0
- package/dist/client/assets/resizable-BejyKOGo.js +1 -0
- package/dist/client/assets/save-actions-DT09KS_7.js +1 -0
- package/dist/client/assets/{scroll-area-BbTrJsHn.js → scroll-area-pgllOsbM.js} +2 -2
- package/dist/client/assets/select-Dz5z65Jw.js +1 -0
- package/dist/client/assets/shell-layout-BeWeSxb6.js +3 -0
- package/dist/client/assets/skeleton-tlo_AcXS.js +1 -0
- package/dist/client/assets/spinner-DL1kXbn_.js +1 -0
- package/dist/client/assets/{store-invite-CBtJIAbW.js → store-invite-KhqhYrJe.js} +1 -1
- package/dist/client/assets/switch-D5s4GvE7.js +1 -0
- package/dist/client/assets/table-JlnXtC1o.js +1 -0
- package/dist/client/assets/tabs-BMRmFudX.js +1 -0
- package/dist/client/assets/tasks-BdJ0UZyL.js +1 -0
- package/dist/client/assets/textarea-_RA9G-2H.js +1 -0
- package/dist/client/assets/{time-range-picker-jCfxVj6J.js → time-range-picker-Z6Jl1sx4.js} +4 -4
- package/dist/client/assets/toggle-group-X_GdAmsv.js +1 -0
- package/dist/client/assets/tools-list-RgSwLK9F.js +1 -0
- package/dist/client/assets/tooltip--eNCFRSk.js +1 -0
- package/dist/client/assets/{topbar-portal-CjBmYjs5.js → topbar-portal-D3cWepwE.js} +1 -1
- package/dist/client/assets/{types-jYkZj_oN.js → types-Dz8v8wA9.js} +1 -1
- package/dist/client/assets/use-binding-DWmbEHQx.js +1 -0
- package/dist/client/assets/{use-connection-DqGqpr6W.js → use-connection-CKm1ISVV.js} +1 -1
- package/dist/client/assets/{use-copy-CvA2en_g.js → use-copy-DvH_rwny.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DJv6y6EJ.js → use-create-virtual-mcp-Cl3FIypU.js} +1 -1
- package/dist/client/assets/use-deco-chat-open-BifT_Q7T.js +1 -0
- package/dist/client/assets/{use-install-from-registry-iT6pKCDG.js → use-install-from-registry-DxwNEXQz.js} +1 -1
- package/dist/client/assets/use-list-state-5G9UAtpG.js +1 -0
- package/dist/client/assets/{use-llm-CDYsARAu.js → use-llm-CZ5h-I5e.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-B9LoAxha.js → use-mcp-prompts-C-kJi0NP.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DuTyW4Xm.js → use-mcp-tools-Du7LOEev.js} +1 -1
- package/dist/client/assets/{use-members-ByAHJbqb.js → use-members-JNLhgbe4.js} +1 -1
- package/dist/client/assets/{use-mobile-DA9mzCuy.js → use-mobile-BVeJwtRE.js} +1 -1
- package/dist/client/assets/{use-project-Cr1TKfdV.js → use-project-BznKdNgg.js} +1 -1
- package/dist/client/assets/{use-settings-modal-DVxljFTz.js → use-settings-modal-DikSOkid.js} +1 -1
- package/dist/client/assets/{use-view-mode-DJ9lvNoA.js → use-view-mode-BUENrs7s.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-B7YffSTv.js → use-virtual-mcp-DQ9c7C3W.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-XciTiRf0.js +1 -0
- package/dist/client/assets/{useMutation-BYvhr9Wj.js → useMutation-UrnS9vWD.js} +1 -1
- package/dist/client/assets/useQuery-J1yQO0sX.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-BcyK5gD4.js +1 -0
- package/dist/client/assets/workflow-Bed30GUE.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +168 -168
- package/dist/server/server.js +169 -169
- package/package.json +1 -1
- package/dist/client/assets/AlertTriangle-D2guHjVq.js +0 -1
- package/dist/client/assets/RefreshCw01-CyeiQkso.js +0 -1
- package/dist/client/assets/agent-connections-preview-Dn72V1xG.js +0 -1
- package/dist/client/assets/agent-detail-Dy29kukR.js +0 -2
- package/dist/client/assets/agents-KAvJ30x5.js +0 -1
- package/dist/client/assets/alert-dialog-DrmsJmsN.js +0 -7
- package/dist/client/assets/avatar-DjSt5kfT.js +0 -1
- package/dist/client/assets/badge-Dj7JdmaJ.js +0 -1
- package/dist/client/assets/breadcrumb-DmYstfbP.js +0 -1
- package/dist/client/assets/button-D10odSSz.js +0 -1
- package/dist/client/assets/card-9y5GtFsZ.js +0 -1
- package/dist/client/assets/chart-Bp3LQrS9.js +0 -15
- package/dist/client/assets/checkbox-D2YWMWVu.js +0 -1
- package/dist/client/assets/collection-search-BAmI-gVt.js +0 -1
- package/dist/client/assets/collection-tab-CQQXE46p.js +0 -1
- package/dist/client/assets/collection-table-wrapper-fcFg8ybt.js +0 -1
- package/dist/client/assets/collection-tabs-D2IJ4sD1.js +0 -1
- package/dist/client/assets/command-BMl6YeZX.js +0 -1
- package/dist/client/assets/connect-ezzuoZk1.js +0 -1
- package/dist/client/assets/connection-card-BPNLF3Zq.js +0 -1
- package/dist/client/assets/connection-detail-B931e97h.js +0 -1
- package/dist/client/assets/connections-Du--7tHh.js +0 -1
- package/dist/client/assets/constants-wwWYqq9s.js +0 -1
- package/dist/client/assets/create-organization-dialog-3HZ9Fapi.js +0 -1
- package/dist/client/assets/create-project-dialog-D87AirfP.js +0 -1
- package/dist/client/assets/dialog-bLBl7se3.js +0 -1
- package/dist/client/assets/dropdown-menu-D6LMimH3.js +0 -1
- package/dist/client/assets/dynamic-plugin-layout-Dl6SpfCc.js +0 -1
- package/dist/client/assets/editable-thread-title-C5iprBiE.js +0 -16
- package/dist/client/assets/empty-state-CPu-zZBv.js +0 -1
- package/dist/client/assets/env-vars-editor-DflzxmJb.js +0 -1
- package/dist/client/assets/error-boundary-apRp8Xmr.js +0 -1
- package/dist/client/assets/file-browser-D4rvNQn-.js +0 -2
- package/dist/client/assets/form-CSWi3me2.js +0 -1
- package/dist/client/assets/grid-view-CIKn_gai.js +0 -1
- package/dist/client/assets/home-urEawFOR.js +0 -1
- package/dist/client/assets/index-BsrQAmtK.js +0 -1
- package/dist/client/assets/index-CX1TvU3T.js +0 -1
- package/dist/client/assets/index-h05RWZry.js +0 -1
- package/dist/client/assets/input-C8Cn3OQt.js +0 -1
- package/dist/client/assets/integration-icon-CHvqhFEd.js +0 -1
- package/dist/client/assets/label-D84F6EwM.js +0 -1
- package/dist/client/assets/layout-14xmCS52.js +0 -1
- package/dist/client/assets/login-D-_vmeEI.js +0 -1
- package/dist/client/assets/mcp-server-card-B4JV-Q1h.js +0 -1
- package/dist/client/assets/mcp-server-detail-CsXpfhbo.js +0 -2
- package/dist/client/assets/members-B0_Xg_uw.js +0 -3
- package/dist/client/assets/monitoring-dashboard-edit-D9Ku98yT.js +0 -1
- package/dist/client/assets/page-383FaDV2.js +0 -1
- package/dist/client/assets/page-thqQ0ll8.js +0 -1
- package/dist/client/assets/plugin-empty-state-Bi8TKl0X.js +0 -1
- package/dist/client/assets/plugin-header-NOGbkpim.js +0 -1
- package/dist/client/assets/popover-B_SzRtKR.js +0 -1
- package/dist/client/assets/project-layout-DxcVceRu.js +0 -1
- package/dist/client/assets/projects-list-FULLceFc.js +0 -1
- package/dist/client/assets/ranking-layout-B_B3SLxi.js +0 -1
- package/dist/client/assets/reports-layout-Cb_9di8U.js +0 -3
- package/dist/client/assets/reset-password-tNDIWT24.js +0 -1
- package/dist/client/assets/resizable-BvPyhOvU.js +0 -1
- package/dist/client/assets/save-actions-DTbCJcwB.js +0 -1
- package/dist/client/assets/select-BZB4uvGm.js +0 -1
- package/dist/client/assets/shell-layout-BHmLkMzR.js +0 -3
- package/dist/client/assets/skeleton-B9aXeb5e.js +0 -1
- package/dist/client/assets/spinner-BeYA_hqO.js +0 -1
- package/dist/client/assets/switch-CkEMQ9Z5.js +0 -1
- package/dist/client/assets/table-D_a-Z4Fv.js +0 -1
- package/dist/client/assets/tabs-Cqye-vZ-.js +0 -1
- package/dist/client/assets/tasks-DbmObaDD.js +0 -1
- package/dist/client/assets/textarea-CLWsfk4l.js +0 -1
- package/dist/client/assets/toggle-group-BUoI214e.js +0 -1
- package/dist/client/assets/tools-list-jE6c8Z18.js +0 -1
- package/dist/client/assets/tooltip-CooOHv4u.js +0 -1
- package/dist/client/assets/use-binding-9lQePXv2.js +0 -1
- package/dist/client/assets/use-deco-chat-open-DeWcxP9f.js +0 -1
- package/dist/client/assets/use-list-state-0IvPs7yX.js +0 -1
- package/dist/client/assets/useInfiniteQuery-D4-rTdBB.js +0 -1
- package/dist/client/assets/useQuery-Vrc6Li_H.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-D3F1c8oY.js +0 -1
- package/dist/client/assets/workflow-CsBV4dNN.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as p,z as M,B as k,j as d,D as v,ax as P,J as S,M as F,H as y,I as V,G as T,R as D,c as x}from"./index-uOrjFt6t.js";import{c as g}from"./button-D10odSSz.js";var m="Tabs",[G]=F(m,[y]),w=y(),[L,h]=G(m),C=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:o,orientation:s="horizontal",dir:i,activationMode:l="automatic",...f}=n,u=M(i),[c,b]=k({prop:t,onChange:r,defaultProp:o??"",caller:m});return d.jsx(L,{scope:a,baseId:P(),value:c,onValueChange:b,orientation:s,dir:u,activationMode:l,children:d.jsx(v.div,{dir:u,"data-orientation":s,...f,ref:e})})});C.displayName=m;var N="TabsList",I=p.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,o=h(N,a),s=w(a);return d.jsx(D,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:t,children:d.jsx(v.div,{role:"tablist","aria-orientation":o.orientation,...r,ref:e})})});I.displayName=N;var j="TabsTrigger",_=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...o}=n,s=h(j,a),i=w(a),l=E(s.baseId,t),f=$(s.baseId,t),u=t===s.value;return d.jsx(V,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(v.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":f,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...o,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?s.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&s.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=s.activationMode!=="manual";!u&&!r&&c&&s.onValueChange(t)})})})});_.displayName=j;var R="TabsContent",A=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:o,...s}=n,i=h(R,a),l=E(i.baseId,t),f=$(i.baseId,t),u=t===i.value,c=p.useRef(u);return p.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(S,{present:r||u,children:({present:b})=>d.jsx(v.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:f,tabIndex:0,...s,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&o})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=C,B=I,K=_,H=A;function O(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const o=r===void 0?"pill":r;let s;e[4]!==a?(s=g("flex flex-col gap-2",a),e[4]=a,e[5]=s):s=e[5];let i;return e[6]!==t||e[7]!==s||e[8]!==o?(i=d.jsx(z,{"data-slot":"tabs","data-variant":o,className:s,...t}),e[6]=t,e[7]=s,e[8]=o,e[9]=i):i=e[9],i}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const o=r||"pill",s=o==="underline"?"flex h-[52px] items-center border-b border-border":o==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==s?(i=g(s,a),e[4]=a,e[5]=s,e[6]=i):i=e[6];let l;return e[7]!==o||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-list","data-variant":o,className:i,...t}),e[7]=o,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const o=r||"pill",s=o==="underline"?"cursor-pointer flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":o==="canvas"?"cursor-pointer flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==s?(i=g(s,a),e[4]=a,e[5]=s,e[6]=i):i=e[6];let l;return e[7]!==o||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-trigger","data-variant":o,className:i,...t}),e[7]=o,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function W(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let o;return e[5]!==t||e[6]!==r?(o=d.jsx(H,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=o):o=e[7],o}export{U as T,Q as a,W as b,O as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as O,j as r,r as Z,u as ae,b as oe,m as ie,n as le,K as G}from"./index-uOrjFt6t.js";import{C as ne,a as ce}from"./collection-table-wrapper-fcFg8ybt.js";import{C as me,E as J}from"./collection-search-BAmI-gVt.js";import{E as de}from"./error-boundary-apRp8Xmr.js";import{P as _}from"./index-CX1TvU3T.js";import{u as ue,U as pe}from"./use-list-state-0IvPs7yX.js";import{f as fe}from"./format-time-CMKyl-GC.js";import{a as he,u as xe}from"./constants-V7-3C38y.js";import{B as ge,a as je,b as ye,c as Se}from"./breadcrumb-DmYstfbP.js";import{B as b}from"./badge-Dj7JdmaJ.js";import{i as be}from"./AlertCircle-Ci70K_EZ.js";import{c as _e}from"./AlertOctagon-CqLqdISi.js";import{n as X}from"./CheckDone01-BQB-AnYZ.js";import{i as we}from"./Check-Dnxirgog.js";import{s as Ce}from"./Clock-CuTVdxgk.js";import{i as ee}from"./Loading01-D2eBBNoh.js";import{u as Ne,a as Te}from"./context-BBfuJWes.js";import"./button-D10odSSz.js";import"./dropdown-menu-D6LMimH3.js";import"./ChevronRight-BjXZnVl8.js";import"./ArrowDown-BB4lqZfQ.js";import"./ArrowUp-ByjI1wop.js";import"./Grid01-Dyv_Ip5i.js";import"./List-C9ntvlpP.js";import"./tooltip-CooOHv4u.js";import"./index-kTXXfvC-.js";import"./table-D_a-Z4Fv.js";import"./SearchMd-WqvhRztL.js";import"./input-C8Cn3OQt.js";import"./AlertTriangle-D2guHjVq.js";import"./use-mobile-DA9mzCuy.js";import"./X-DlPknjOM.js";import"./avatar-DjSt5kfT.js";import"./useQuery-Vrc6Li_H.js";import"./use-view-mode-DJ9lvNoA.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-virtual-mcp-B7YffSTv.js";import"./use-connection-DqGqpr6W.js";import"./useMutation-BYvhr9Wj.js";import"./decopilot-events-Brt4gAR6.js";import"./use-llm-CDYsARAu.js";import"./use-binding-9lQePXv2.js";import"./binder--zY5y66H.js";import"./localstorage-keys-r_mW6Lq0.js";import"./skeleton-B9aXeb5e.js";import"./popover-B_SzRtKR.js";import"./select-BZB4uvGm.js";import"./ChevronDown-DlCNAUXg.js";import"./File06-WXzmRYLt.js";import"./Image01-Dv4Xx4Vn.js";import"./RefreshCcw01-J5wqqeG_.js";import"./Settings01-CF0yl6Tz.js";import"./useSuspenseInfiniteQuery-D3F1c8oY.js";import"./infiniteQueryObserver-DS9VDnBa.js";function ke(e){const s=O.c(9),{status:n,stepCount:l}=e;switch(n){case"in_progress":{let a;s[0]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsx(ee,{size:11,className:"animate-spin"}),s[0]=a):a=s[0];const c=l?`Running · step ${l}`:"Running";let m;return s[1]!==c?(m=r.jsxs(b,{variant:"secondary",className:"gap-1",children:[a,c]}),s[1]=c,s[2]=m):m=s[2],m}case"completed":{let a;return s[3]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsxs(b,{variant:"success",className:"gap-1",children:[r.jsx(we,{size:11}),"Completed"]}),s[3]=a):a=s[3],a}case"requires_action":{let a;return s[4]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsxs(b,{variant:"outline",className:"gap-1 text-blue-600 border-blue-600/40",children:[r.jsx(be,{size:11}),"Waiting for input"]}),s[4]=a):a=s[4],a}case"failed":{let a;return s[5]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsxs(b,{variant:"destructive",className:"gap-1",children:[r.jsx(_e,{size:11}),"Failed"]}),s[5]=a):a=s[5],a}case"expired":{let a;return s[6]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsxs(b,{variant:"outline",className:"gap-1 text-warning border-warning/40",children:[r.jsx(Ce,{size:11}),"Timed out"]}),s[6]=a):a=s[6],a}default:{let a;return s[7]!==n?(a=r.jsx(b,{variant:"secondary",className:"gap-1",children:n}),s[7]=n,s[8]=a):a=s[8],a}}}function ve(){const e=O.c(64),{org:s,project:n,locator:l}=ae();let a;e[0]!==s.id?(a={connectionId:he,orgId:s.id},e[0]=s.id,e[1]=a):a=e[1];const c=xe(a),m=oe(),{switchToThread:I}=Ne(),P=ie();let w;e[2]===Symbol.for("react.memo_cache_sentinel")?(w=new Map,e[2]=w):w=e[2];const[R,Q]=Z.useState(w);let C;e[3]===Symbol.for("react.memo_cache_sentinel")?(C=o=>{Q(S=>{const i=new Map(S);return i.set(o.subject,o.data.stepCount),i})},e[3]=C):C=e[3];let d;e[4]!==l||e[5]!==P?(d=o=>{P.invalidateQueries({queryKey:G.taskThreads(l)}),o.data.status!=="in_progress"&&Q(S=>{const i=new Map(S);return i.delete(o.subject),i})},e[4]=l,e[5]=P,e[6]=d):d=e[6];let N;e[7]!==s.id||e[8]!==d?(N={orgId:s.id,onStep:C,onThreadStatus:d},e[7]=s.id,e[8]=d,e[9]=N):N=e[9],Te(N);let T;e[10]!==s.slug?(T={namespace:s.slug,resource:"tasks",defaultSortKey:"updated_at",defaultViewMode:"table"},e[10]=s.slug,e[11]=T):T=e[11];const t=ue(T);let u;e[12]!==l?(u=G.taskThreads(l),e[12]=l,e[13]=u):u=e[13];let p;e[14]!==c?(p=async()=>{if(!c)throw new Error("MCP client is not available");const o=await c.callTool({name:"COLLECTION_THREADS_LIST",arguments:{limit:100,offset:0}});return(o.structuredContent??o).items??[]},e[14]=c,e[15]=p):p=e[15];let k;e[16]!==u||e[17]!==p?(k={queryKey:u,queryFn:p,staleTime:3e4},e[16]=u,e[17]=p,e[18]=k):k=e[18];const{data:V}=le(k);let v;if(e[19]!==V||e[20]!==t){const o=V.filter(Ee),S=t.searchTerm?o.filter(U=>U.title.toLowerCase().includes(t.searchTerm.toLowerCase())):o;let i;e[22]!==t?(i=(U,te)=>{const{sortKey:F,sortDirection:W}=t;if(!F||!W)return 0;const se=String(U[F]??""),re=String(te[F]??""),Y=se.localeCompare(re);return W==="asc"?Y:-Y},e[22]=t,e[23]=i):i=e[23],v=[...S].sort(i),e[19]=V,e[20]=t,e[21]=v}else v=e[21];const q=v;let D;e[24]!==m||e[25]!==s.slug||e[26]!==n.slug||e[27]!==I?(D=async o=>{await I(o.id),m({to:"/$org/$project",params:{org:s.slug,project:n.slug}})},e[24]=m,e[25]=s.slug,e[26]=n.slug,e[27]=I,e[28]=D):D=e[28];const A=D;let K;e[29]===Symbol.for("react.memo_cache_sentinel")?(K={id:"title",header:"Title",render:Me,cellClassName:"flex-1 min-w-0",sortable:!0},e[29]=K):K=e[29];let f;e[30]!==R?(f={id:"status",header:"Status",render:o=>r.jsx(ke,{status:o.status??"completed",stepCount:R.get(o.id)}),cellClassName:"w-40 shrink-0",sortable:!0},e[30]=R,e[31]=f):f=e[31];let M,E;e[32]===Symbol.for("react.memo_cache_sentinel")?(M={id:"created_by",header:"Created by",render:Ke,cellClassName:"w-32 shrink-0"},E={id:"updated_at",header:"Updated",render:De,cellClassName:"max-w-24 w-24 shrink-0",sortable:!0},e[32]=M,e[33]=E):(M=e[32],E=e[33]);let L;e[34]!==f?(L=[K,f,M,E],e[34]=f,e[35]=L):L=e[35];const H=L;let B;e[36]===Symbol.for("react.memo_cache_sentinel")?(B=r.jsx(_.Header.Left,{children:r.jsx(ge,{children:r.jsx(je,{children:r.jsx(ye,{children:r.jsx(Se,{children:"Tasks"})})})})}),e[36]=B):B=e[36];let z;e[37]===Symbol.for("react.memo_cache_sentinel")?(z=[{id:"title",label:"Title"},{id:"status",label:"Status"},{id:"updated_at",label:"Updated"}],e[37]=z):z=e[37];let h;e[38]!==t.handleSort||e[39]!==t.setViewMode||e[40]!==t.sortDirection||e[41]!==t.sortKey||e[42]!==t.viewMode?(h=r.jsxs(_.Header,{children:[B,r.jsx(_.Header.Right,{children:r.jsx(ne,{viewMode:t.viewMode,onViewModeChange:t.setViewMode,sortKey:t.sortKey,sortDirection:t.sortDirection,onSort:t.handleSort,sortOptions:z})})]}),e[38]=t.handleSort,e[39]=t.setViewMode,e[40]=t.sortDirection,e[41]=t.sortKey,e[42]=t.viewMode,e[43]=h):h=e[43];let x;e[44]!==t?(x=o=>{o.key==="Escape"&&(t.setSearch(""),o.target.blur())},e[44]=t,e[45]=x):x=e[45];let g;e[46]!==t.search||e[47]!==t.setSearch||e[48]!==x?(g=r.jsx(me,{value:t.search,onChange:t.setSearch,placeholder:"Search tasks...",onKeyDown:x}),e[46]=t.search,e[47]=t.setSearch,e[48]=x,e[49]=g):g=e[49];let j;e[50]!==t.search?(j=t.search?r.jsx(J,{image:r.jsx(X,{size:36,className:"text-muted-foreground"}),title:"No tasks found",description:`No tasks match "${t.search}"`}):r.jsx(J,{image:r.jsx("div",{className:"flex items-center justify-center w-16 h-16 rounded-full bg-muted",children:r.jsx(X,{size:32,className:"text-muted-foreground"})}),title:"No tasks yet",description:"Tasks will appear here when agents start processing work."}),e[50]=t.search,e[51]=j):j=e[51];let y;e[52]!==H||e[53]!==t.handleSort||e[54]!==t.sortDirection||e[55]!==t.sortKey||e[56]!==A||e[57]!==j||e[58]!==q?(y=r.jsx(_.Content,{children:r.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:r.jsx(ce,{columns:H,data:q,isLoading:!1,sortKey:t.sortKey,sortDirection:t.sortDirection,onSort:t.handleSort,onRowClick:A,emptyState:j})})}),e[52]=H,e[53]=t.handleSort,e[54]=t.sortDirection,e[55]=t.sortKey,e[56]=A,e[57]=j,e[58]=q,e[59]=y):y=e[59];let $;return e[60]!==h||e[61]!==g||e[62]!==y?($=r.jsxs(_,{children:[h,g,y]}),e[60]=h,e[61]=g,e[62]=y,e[63]=$):$=e[63],$}function De(e){return r.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:e.updated_at?fe(new Date(e.updated_at)):"—"})}function Ke(e){return r.jsx(pe,{id:e.created_by,size:"3xs"})}function Me(e){return r.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:e.title})}function Ee(e){return!e.hidden}function Lt(){const e=O.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=r.jsx(de,{children:r.jsx(Z.Suspense,{fallback:r.jsx("div",{className:"flex h-full items-center justify-center",children:r.jsx(ee,{size:32,className:"animate-spin text-muted-foreground"})}),children:r.jsx(ve,{})})}),e[0]=s):s=e[0],s}export{Lt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as o,j as n}from"./index-uOrjFt6t.js";import{c as l}from"./button-D10odSSz.js";function u(s){const e=o.c(8);let r,i;e[0]!==s?({className:r,...i}=s,e[0]=s,e[1]=r,e[2]=i):(r=e[1],i=e[2]);let t;e[3]!==r?(t=l("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-xl border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),e[3]=r,e[4]=t):t=e[4];let a;return e[5]!==i||e[6]!==t?(a=n.jsx("textarea",{"data-slot":"textarea",className:t,...i}),e[5]=i,e[6]=t,e[7]=a):a=e[7],a}export{u as T};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as x,B as h,j as c,D as m,G as k,bI as p,I as M,H as T,M as S,z as A,R as D,y as F,c as P}from"./index-uOrjFt6t.js";import{c as C}from"./button-D10odSSz.js";var j="Toggle",_=x.forwardRef((r,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...a}=r,[t,o]=h({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":r.disabled?"":void 0,...a,ref:e,onClick:k(r.onClick,()=>{r.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[I]=S(v,[T]),w=T(),G=p.forwardRef((r,e)=>{const{type:l,...s}=r;if(l==="single"){const n=s;return c.jsx($,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});G.displayName=v;var[z,y]=I(v),$=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=h({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(z,{scope:r.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(R,{...a,ref:e})})}),B=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=h({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(z,{scope:r.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...a,ref:e})})});G.displayName=v;var[H,O]=I(v),R=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:a,dir:t,loop:o=!0,...i}=r,d=w(l),u=A(t),g={role:"group",dir:u,...i};return c.jsx(H,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(D,{asChild:!0,...d,orientation:a,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((r,e)=>{const l=y(f,r.__scopeToggleGroup),s=O(f,r.__scopeToggleGroup),n=w(r.__scopeToggleGroup),a=l.value.includes(r.value),t=s.disabled||r.disabled,o={...r,pressed:a,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:a,ref:i,children:c.jsx(b,{...o,ref:e})}):c.jsx(b,{...o,ref:e})});N.displayName=f;var b=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,value:s,...n}=r,a=y(f,l),t={role:"radio","aria-checked":r.pressed,"aria-pressed":void 0},o=a.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?a.onItemActivate(s):a.onItemDeactivate(s)}})}),L=G,U=N;const q=F("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),E=x.createContext({size:"default",variant:"default"});function Q(r){const e=P.c(20);let l,s,n,a,t;e[0]!==r?({className:s,variant:t,size:a,children:l,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);let o;e[6]!==s?(o=C("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==a||e[9]!==t?(i={variant:t,size:a},e[8]=a,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(E.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==a||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(L,{"data-slot":"toggle-group","data-variant":t,"data-size":a,className:o,...n,children:d}),e[14]=n,e[15]=a,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function W(r){const e=P.c(18);let l,s,n,a,t;e[0]!==r?({className:s,children:l,variant:t,size:a,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||a;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==a||e[10]!==t?(u=C(q({variant:o.variant||t,size:o.size||a}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=a,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(U,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{Q as T,W as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as z,b as X,r as H,j as t,O as Y}from"./index-uOrjFt6t.js";import{a as Z,C as ee}from"./collection-table-wrapper-fcFg8ybt.js";import{E as B,C as te}from"./collection-search-BAmI-gVt.js";import{I as se}from"./integration-icon-CHvqhFEd.js";import{B as K}from"./badge-Dj7JdmaJ.js";import{C as oe}from"./card-9y5GtFsZ.js";import{T as G,a as P,b as W,c as ne}from"./tooltip-CooOHv4u.js";import{g as re,s as ae}from"./types-jYkZj_oN.js";import{i as ie}from"./AlertTriangle-D2guHjVq.js";import{s as le}from"./Eye-broatAu7.js";import{s as ce}from"./Globe02-C0qeWKnK.js";import{s as me}from"./RefreshCw01-CyeiQkso.js";import{V as de}from"./layout-14xmCS52.js";const fe=[{key:"readOnlyHint",label:"Read-only",Icon:le,variant:"secondary"},{key:"destructiveHint",label:"Destructive",Icon:ie,variant:"destructive"},{key:"idempotentHint",label:"Idempotent",Icon:me,variant:"secondary"},{key:"openWorldHint",label:"Open-world",Icon:ce,variant:"outline"}];function pe(s){const e=z.c(18),{annotations:a,_meta:d}=s;let u;e[0]!==d?(u=re(d),e[0]=d,e[1]=u):u=e[1];const l=!!u;let h,x,c,f,m;if(e[2]!==a||e[3]!==l){m=Symbol.for("react.early_return_sentinel");e:{const n=a?fe.filter(I=>a[I.key]===!0):[];if(n.length===0&&!l){m=null;break e}h=ne,x="flex gap-1 flex-nowrap",e[9]!==l?(c=l&&t.jsxs(G,{children:[t.jsx(P,{asChild:!0,children:t.jsx(K,{asChild:!0,variant:"secondary",className:"size-6 p-1",children:t.jsx(ae,{})})}),t.jsx(W,{children:"Interactive"})]}),e[9]=l,e[10]=c):c=e[10],f=n.map(ue)}e[2]=a,e[3]=l,e[4]=h,e[5]=x,e[6]=c,e[7]=f,e[8]=m}else h=e[4],x=e[5],c=e[6],f=e[7],m=e[8];if(m!==Symbol.for("react.early_return_sentinel"))return m;let p;e[11]!==x||e[12]!==c||e[13]!==f?(p=t.jsxs("div",{className:x,children:[c,f]}),e[11]=x,e[12]=c,e[13]=f,e[14]=p):p=e[14];let g;return e[15]!==h||e[16]!==p?(g=t.jsx(h,{children:p}),e[15]=h,e[16]=p,e[17]=g):g=e[17],g}function ue(s){const{label:e,Icon:a,variant:d}=s;return t.jsxs(G,{children:[t.jsx(P,{asChild:!0,children:t.jsx(K,{asChild:!0,variant:d,className:"size-6 p-1",children:t.jsx(a,{})})}),t.jsx(W,{children:e})]},e)}function De(s){const e=z.c(40),{tools:a,connectionId:d,org:u,onToolClick:l,showToolbar:h,emptyMessage:x,isLoading:c}=s,f=h===void 0?!0:h,m=x===void 0?"This connection doesn't have any tools yet.":x,p=c===void 0?!1:c,g=X(),[n,I]=H.useState(""),[j,F]=H.useState("table"),[r,M]=H.useState("name"),[i,V]=H.useState("asc");let w;e[0]!==i||e[1]!==r?(w=o=>{r===o?(V(Ne),i==="desc"&&M(void 0)):(M(o),V("asc"))},e[0]=i,e[1]=r,e[2]=w):w=e[2];const y=w;let _;e[3]!==d||e[4]!==g||e[5]!==l||e[6]!==u?(_=o=>{l?l(o):d&&u&&g({to:"/$org/$project/mcps/$connectionId/$collectionName/$itemId",params:{org:u,project:Y,connectionId:d,collectionName:"tools",itemId:encodeURIComponent(o.name)}})},e[3]=d,e[4]=g,e[5]=l,e[6]=u,e[7]=_):_=e[7];const k=_;let $;if(e[8]!==n||e[9]!==i||e[10]!==r||e[11]!==a){const o=!a||a.length===0?[]:n.trim()?(()=>{const E=n.toLowerCase();return a.filter(S=>S.name.toLowerCase().includes(E)||S.description&&S.description.toLowerCase().includes(E))})():a;$=!r||!i?o:[...o].sort((E,S)=>{const q=E[r]||"",Q=S[r]||"",U=String(q).localeCompare(String(Q));return i==="asc"?U:-U}),e[8]=n,e[9]=i,e[10]=r,e[11]=a,e[12]=$}else $=e[12];const T=$;let L;e[13]===Symbol.for("react.memo_cache_sentinel")?(L=[{id:"name",header:"Name",render:ye,sortable:!0},{id:"annotations",header:"Hints",render:je,cellClassName:"w-32 shrink-0"},{id:"description",header:"Description",render:ge,cellClassName:"flex-1",sortable:!0}],e[13]=L):L=e[13];const A=L;let O;e[14]===Symbol.for("react.memo_cache_sentinel")?(O=A.filter(xe).map(he),e[14]=O):O=e[14];const J=O;let N;e[15]!==y||e[16]!==f||e[17]!==i||e[18]!==r||e[19]!==j?(N=f&&t.jsx(de,{children:t.jsx(ee,{viewMode:j,onViewModeChange:F,sortKey:r,sortDirection:i,onSort:y,sortOptions:J})}),e[15]=y,e[16]=f,e[17]=i,e[18]=r,e[19]=j,e[20]=N):N=e[20];let R;e[21]===Symbol.for("react.memo_cache_sentinel")?(R=o=>{o.key==="Escape"&&(I(""),o.target.blur())},e[21]=R):R=e[21];let v;e[22]!==n?(v=t.jsx(te,{value:n,onChange:I,placeholder:"Search tools...",onKeyDown:R}),e[22]=n,e[23]=v):v=e[23];let b;e[24]!==m||e[25]!==y||e[26]!==k||e[27]!==p||e[28]!==n||e[29]!==i||e[30]!==r||e[31]!==T||e[32]!==j?(b=j==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:T.length===0?t.jsx(B,{image:null,title:n?"No tools found":"No tools available",description:n?"Try adjusting your search terms":m}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:T.map(o=>t.jsx(oe,{className:"cursor-pointer transition-colors",onClick:()=>k(o),children:t.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[t.jsx(se,{icon:null,name:o.name,size:"md",className:"shrink-0 shadow-sm"}),t.jsxs("div",{className:"flex flex-col gap-0",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:o.name}),t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:o.description||"No description"})]})]})},o.name))})}):t.jsx(Z,{columns:A,data:T,isLoading:p,sortKey:r,sortDirection:i,onSort:y,onRowClick:o=>k(o),emptyState:t.jsx(B,{image:null,title:n?"No tools found":"No tools available",description:n?"Try adjusting your search terms":m})}),e[24]=m,e[25]=y,e[26]=k,e[27]=p,e[28]=n,e[29]=i,e[30]=r,e[31]=T,e[32]=j,e[33]=b):b=e[33];let C;e[34]!==v||e[35]!==b?(C=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[v,b]}),e[34]=v,e[35]=b,e[36]=C):C=e[36];let D;return e[37]!==C||e[38]!==N?(D=t.jsxs(t.Fragment,{children:[N,C]}),e[37]=C,e[38]=N,e[39]=D):D=e[39],D}function he(s){return{id:s.id,label:typeof s.header=="string"?s.header:s.id}}function xe(s){return s.sortable}function ge(s){return t.jsx("span",{className:"text-sm text-foreground",children:s.description||"—"})}function je(s){return t.jsx(pe,{annotations:s.annotations,_meta:s._meta})}function ye(s){return t.jsx("span",{className:"text-sm font-medium font-mono text-foreground",children:s.name})}function Ne(s){return s==="asc"?"desc":s==="desc"?null:"asc"}export{De as T,pe as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,E as H,j as c,aG as J,D as K,G as C,J as S,aH as Q,ax as W,B as Z,aF as ee,aI as G,aO as te,aP as oe,M as re,aT as ne,aQ as se,c as j}from"./index-uOrjFt6t.js";import{R as ae}from"./index-kTXXfvC-.js";import{c as ie}from"./button-D10odSSz.js";var[O]=re("Tooltip",[G]),D=G(),$="TooltipProvider",le=700,A="tooltip.open",[ce,k]=O($),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=$;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,x]=i.useState(null),v=W(),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:N=>{N?(a.onOpen(),document.dispatchEvent(new CustomEvent(A))):a.onClose(),s?.(N)},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]),I=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:v,open:y,stateAttribute:w,trigger:u,onTriggerChange:x,onTriggerEnter:i.useCallback(()=>{a.isOpenDelayedRef.current?I():E()},[a.isOpenDelayedRef,I,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),x=i.useCallback(()=>p.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",x),[x]),c.jsx(J,{asChild:!0,...l,children:c.jsx(K.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:a,onPointerMove:C(o.onPointerMove,v=>{v.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",x,{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(Q,{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:x}=r,v=i.useCallback(()=>{d(null),x(!1)},[x]),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),x(!0)},[x]);return i.useEffect(()=>()=>v(),[v]),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,v]),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?v():w&&(v(),p())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[a,u,l,p,v]),c.jsx(Y,{...o,ref:s})}),[xe,ve]=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 x=v=>{v.target?.contains(a.trigger)&&u()};return window.addEventListener("scroll",x,{capture:!0}),()=>window.removeEventListener("scroll",x,{capture:!0})}},[a.trigger,u]),c.jsx(te,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:x=>x.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(xe,{scope:t,isInside:!0,children:c.jsx(ae,{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 ve(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,x=a.x,v=a.y;u>r!=v>r&&t<(x-p)*(r-u)/(v-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 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(Oe,{children:c.jsx(Ee,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function Me(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 Ie(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=ie("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{ke as T,Me as a,Ie as b,Oe as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as A}from"./binder--zY5y66H.js";import{bt as I,Y as O,o as t,s as e,bu as g,av as c,bv as l,bw as M,bx as D,by as s,aw as C,bz as m,bA as S,bB as n,bC as _,bD as w,bE as k,bF as B,bG as U,bH as v}from"./index-uOrjFt6t.js";const G=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")}),F=I("assistant",G),W=[...F],y=w(()=>m([k(),e(),s(),S(),g(e(),y),c(y)])),h=g(e(),g(e(),y)).optional().describe("Additional provider-specific options. Outer record keyed by provider name, inner by option key"),R=t({type:n("text"),text:e().describe("The text content"),providerOptions:h}),j=t({type:n("text"),text:e().describe("The text content"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),q=e().describe("File data as URL string"),x=t({type:n("file"),filename:e().optional().describe("Optional filename of the file"),data:q,mediaType:e().describe("IANA media type of the file (e.g., image/png, audio/mp3)"),providerOptions:h}),$=t({type:n("file"),mediaType:e().describe("IANA media type of the file (e.g., image/png, audio/mp3)"),data:e().describe("Generated file data as base64 encoded string")}),J=t({type:n("reasoning"),text:e().describe("The reasoning text"),providerOptions:h}),K=t({type:n("reasoning"),text:e().describe("The reasoning text"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),z=t({type:n("tool-call"),toolCallId:e().describe("ID of the tool call, used to match with tool result"),toolName:e().describe("Name of the tool being called"),input:e().describe("Arguments of the tool call (JSON-serializable object matching tool input schema)"),providerExecuted:S().optional().describe("Whether the tool call will be executed by the provider"),providerOptions:h}),V=t({type:n("tool-call"),toolCallId:e().describe("ID of the tool call"),toolName:e().describe("Name of the tool being called"),input:e().describe("Stringified JSON object with the tool call arguments"),providerExecuted:S().optional().describe("Whether the tool call will be executed by the provider"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),Y=m([t({type:n("text"),value:e()}),t({type:n("json"),value:y}),t({type:n("error-text"),value:e()}),t({type:n("error-json"),value:y}),t({type:n("content"),value:c(m([t({type:n("text"),text:e().describe("Text content")}),t({type:n("media"),data:e().describe("Base-64 encoded media data"),mediaType:e().describe("IANA media type")})]))}),t({type:n("execution-denied"),reason:e().optional()}),e().describe("Raw or JSON-serialized output (e.g. from AI SDK mapToolResultOutput)")]),E=t({type:n("tool-result"),toolCallId:e().describe("ID of the tool call that this result is associated with"),toolName:e().describe("Name of the tool that generated this result"),output:Y.describe("Result of the tool call"),result:_().describe("Unknown result of the tool call"),providerOptions:h}),H=t({type:n("tool-result"),toolCallId:e().describe("ID of the tool call that this result is associated with"),toolName:e().describe("Name of the tool that generated this result"),result:l().describe("Result of the tool call (JSON-serializable)"),isError:S().optional().describe("Whether the result is an error or error message"),providerExecuted:S().optional().describe("Whether the tool result was generated by the provider"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),X=m([t({type:n("source"),sourceType:n("url"),id:e().describe("The ID of the source"),url:e().describe("The URL of the source"),title:e().optional().describe("The title of the source"),providerMetadata:l().optional().describe("Additional provider-specific metadata")}),t({type:n("source"),sourceType:n("document"),id:e().describe("The ID of the source"),mediaType:e().describe("IANA media type of the document (e.g., application/pdf)"),title:e().describe("The title of the document"),filename:e().optional().describe("Optional filename of the document"),providerMetadata:l().optional().describe("Additional provider-specific metadata")})]),Z=t({role:n("system"),content:e().describe("System message content"),providerOptions:h}),Q=t({role:n("user"),content:c(m([R,x])).describe("User message content parts (text or file)"),providerOptions:h}),ee=t({role:n("assistant"),content:c(m([R,x,J,z,E])).describe("Assistant message content parts (text, file, reasoning, tool-call, or tool-result)"),providerOptions:h}),te=t({role:n("tool"),content:c(E).describe("Tool message content (tool results)"),providerOptions:h}),oe=m([Z,Q,ee,te]),ae=c(oe).describe("A list of messages forming the prompt"),ne=t({prompt:ae.describe("A language model prompt is a standardized prompt type (array of messages with roles: system, user, assistant, tool)"),maxOutputTokens:s().optional().describe("Maximum number of tokens to generate"),temperature:s().optional().describe("Temperature setting. The range depends on the provider and model"),topP:s().optional().describe("Nucleus sampling parameter"),topK:s().optional().describe("Only sample from the top K options for each subsequent token. Used to remove long tail low probability responses"),presencePenalty:s().optional().describe("Presence penalty setting. It affects the likelihood of the model to repeat information that is already in the prompt"),frequencyPenalty:s().optional().describe("Frequency penalty setting. It affects the likelihood of the model to repeatedly use the same words or phrases"),seed:s().optional().describe("The seed (integer) to use for random sampling. If set and supported by the model, calls will generate deterministic results"),stopSequences:c(e()).optional().describe("Stop sequences. If set, the model will stop generating text when one of the stop sequences is generated"),responseFormat:m([t({type:n("text")}),t({type:n("json"),schema:l().optional().describe("JSON schema that the generated output should conform to"),name:e().optional().describe("Name of output that should be generated"),description:e().optional().describe("Description of the output that should be generated")})]).optional().describe("Response format. The output can either be text or JSON. Default is text"),tools:c(l()).optional().describe("The tools that are available for the model"),toolChoice:l().optional().describe("Specifies how the tool should be selected. Defaults to 'auto'"),includeRawChunks:S().optional().describe("Include raw chunks in the stream. Only applicable for streaming calls"),abortSignal:l().optional().describe("Abort signal for cancelling the operation"),providerOptions:l().optional().describe("Additional provider-specific options")}),ie=t({content:c(m([j,$,K,V,H,X])).describe("Ordered content that the model has generated (text, tool-calls, reasoning, files, sources)"),finishReason:C(["stop","length","content-filter","tool-calls","error","other","unknown"]).describe("Reason why generation stopped"),usage:D({inputTokens:s().optional(),outputTokens:s().optional(),totalTokens:s().optional(),reasoningTokens:s().optional()}).describe("Usage information for the language model call"),providerMetadata:l().optional().describe("Additional provider-specific metadata"),request:t({body:l().optional().describe("Request HTTP body sent to the provider API")}).optional().describe("Optional request information for telemetry and debugging"),response:t({id:e().optional().describe("ID for the generated response"),timestamp:M().optional().describe("Timestamp for the start of the generated response"),modelId:e().optional().describe("The ID of the response model that was used"),headers:g(e(),e()).optional().describe("Response headers"),body:l().optional().describe("Response HTTP body")}).optional().describe("Optional response information for telemetry and debugging"),warnings:c(l()).describe("Warnings for the call, e.g. unsupported settings")});t({stream:l().describe("ReadableStream of LanguageModelV2StreamPart"),request:t({body:l().optional().describe("Request HTTP body sent to the provider API")}).optional().describe("Optional request information for telemetry and debugging"),response:t({headers:g(e(),e()).optional().describe("Response headers")}).optional().describe("Optional response data")});const re=t({supportedUrls:g(e(),c(e())).describe("Supported URL patterns by media type for the provider")});t({modelId:e().describe("The ID of the model"),logo:e().nullable(),description:e().nullable(),capabilities:c(e()),limits:t({contextWindow:s(),maxOutputTokens:s()}).nullable(),costs:t({input:s(),output:s()}).nullable(),provider:C(["openai","anthropic","google","x-ai","deepseek","openai-compatible","openrouter"]).nullable()});const N=t({modelId:e().describe("The ID of the model"),callOptions:ne}),se=O.extend({logo:e().nullable(),description:e().nullable(),capabilities:c(e()),limits:t({contextWindow:s(),maxOutputTokens:s()}).nullable(),costs:t({input:s(),output:s()}).nullable(),provider:C(["openai","anthropic","google","xai","deepseek","openai-compatible","openrouter"]).nullable()}),le=I("llm",se,{readOnly:!0}),ce=[{name:"LLM_METADATA",inputSchema:t({modelId:e().describe("The ID of the model")}),outputSchema:re},{name:"LLM_DO_STREAM",inputSchema:N,streamable:!0},{name:"LLM_DO_GENERATE",inputSchema:N,outputSchema:ie},...le],de=t({scopes:c(e()).describe("List of scopes available"),stateSchema:g(e(),_()).describe("JSON Schema (draft-07) defining the state structure")}),pe=[{name:"MCP_CONFIGURATION",inputSchema:t({}),outputSchema:de}],L={LLMS:ce,WORKFLOW:U,WORKFLOW_EXECUTION:B,ASSISTANTS:W,MCP:pe};function ue(o){return o.map(a=>({name:a.name,inputSchema:a.inputSchema?(()=>{try{return v(a.inputSchema)}catch(r){return console.error(`Failed to convert input schema for ${a.name}:`,r),t({})}})():t({}),outputSchema:a.outputSchema?(()=>{try{return v(a.outputSchema)}catch(r){return console.error(`Failed to convert output schema for ${a.name}:`,r),t({})}})():t({})}))}function me(o,a){const r=o.tools;if(!r||r.length===0)return!1;const i=r.map(p=>({name:p.name,inputSchema:p.inputSchema})),d=a.map(p=>({name:p.name,inputSchema:p.inputSchema,opt:p.opt}));return A(d).isImplementedBy(i)}function Ie({connections:o,binding:a}){const r=(()=>{if(a){if(typeof a=="string"){const i=a.toUpperCase(),d=L[i];if(!d){console.warn(`[useBindingConnections] Unknown binding "${a}". Available bindings: ${Object.keys(L).join(", ")}. Returning all connections without filtering.`);return}return d}if(a.length===0){console.warn("[useBindingConnections] Empty binding array provided. Returning all connections without filtering.");return}return ue(a)}})();return o?r?o.filter(i=>me(i,r)):o:[]}function he(o){return o.toLowerCase().split("_").map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")}function P(o){if(!o||o.length===0)return[];const a=/^COLLECTION_(.+)_LIST$/,r=[];for(const i of o){const d=i.name.match(a);d?.[1]&&r.push(d[1])}return r}function be(o){return!o||o.length===0?!1:o.some(a=>a.name==="REGISTRY_ITEM_LIST"||a.name==="COLLECTION_REGISTRY_APP_LIST"?!0:a.name.startsWith("COLLECTION_REGISTRY_APP_"))}function fe(o,a){const i=o.find(u=>u.name===`COLLECTION_${a}_CREATE`)?.inputSchema?.properties;if(i&&typeof i=="object"&&"data"in i)return i.data;const b=o.find(u=>u.name===`COLLECTION_${a}_UPDATE`)?.inputSchema?.properties;if(b&&typeof b=="object"&&"data"in b)return b.data;const T=o.find(u=>u.name===`COLLECTION_${a}_LIST`)?.outputSchema?.properties;if(T&&typeof T=="object"&&"items"in T){const u=T.items;if(u.items)return u.items}}function ge(o,a){const r=a.toUpperCase();return{hasCreateTool:o.some(i=>i.name===`COLLECTION_${r}_CREATE`),hasUpdateTool:o.some(i=>i.name===`COLLECTION_${r}_UPDATE`),hasDeleteTool:o.some(i=>i.name===`COLLECTION_${r}_DELETE`)}}function Se(o){if(!o||o.length===0)return[];const a=P(o);if(a.length===0)return[];const r=[];for(const i of a)try{const d=I(i.toLowerCase(),O,{readOnly:!0}),b=o.map(f=>({name:f.name,inputSchema:f.inputSchema})),p=d.map(f=>({name:f.name,inputSchema:f.inputSchema}));if(A(p).isImplementedBy(b)){const f=ge(o,i);r.push({name:i,displayName:he(i),schema:fe(o,i),...f})}}catch{}return r}function Oe(o){return Se(o?.tools??null)}function Ce(o){return o?o.filter(a=>P(a.tools).includes("REGISTRY_APP")||be(a.tools)):[]}export{Ie as a,Oe as b,me as c,Ce as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,B as k,j as i,D as g,ax as A,G as M,M as T,J as $,E as I,bJ as D,c as f}from"./index-uOrjFt6t.js";import{u as B,L as G}from"./localstorage-keys-r_mW6Lq0.js";const F=({size:t=24,color:e="currentColor",...o})=>a.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},a.createElement("path",{d:"M4 7h11m0 0-4 4m4-4-4-4M4 17h16m0 0-4 4m4-4-4-4"}));F.displayName="ArrowsRight";const z=({size:t=24,color:e="currentColor",...o})=>a.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},a.createElement("path",{d:"M10 17.659V20a2 2 0 1 0 4 0v-2.341M12 2v1m-9 9H2m3.5-6.5-.6-.6m13.6.6.6-.6M22 12h-1m-3 0a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"}));z.displayName="Lightbulb02";var m="Collapsible",[H,Z]=T(m),[J,v]=H(m),P=a.forwardRef((t,e)=>{const{__scopeCollapsible:o,open:n,defaultOpen:s,disabled:c,onOpenChange:l,...C}=t,[p,d]=k({prop:n,defaultProp:s??!1,onChange:l,caller:m});return i.jsx(J,{scope:o,disabled:c,contentId:A(),open:p,onOpenToggle:a.useCallback(()=>d(b=>!b),[d]),children:i.jsx(g.div,{"data-state":y(p),"data-disabled":c?"":void 0,...C,ref:e})})});P.displayName=m;var S="CollapsibleTrigger",x=a.forwardRef((t,e)=>{const{__scopeCollapsible:o,...n}=t,s=v(S,o);return i.jsx(g.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":y(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...n,ref:e,onClick:M(t.onClick,s.onOpenToggle)})});x.displayName=S;var R="CollapsibleContent",E=a.forwardRef((t,e)=>{const{forceMount:o,...n}=t,s=v(R,t.__scopeCollapsible);return i.jsx($,{present:o||s.open,children:({present:c})=>i.jsx(W,{...n,ref:e,present:c})})});E.displayName=R;var W=a.forwardRef((t,e)=>{const{__scopeCollapsible:o,present:n,children:s,...c}=t,l=v(R,o),[C,p]=a.useState(n),d=a.useRef(null),b=I(e,d),N=a.useRef(0),_=N.current,j=a.useRef(0),w=j.current,h=l.open||C,L=a.useRef(h),u=a.useRef(void 0);return a.useEffect(()=>{const r=requestAnimationFrame(()=>L.current=!1);return()=>cancelAnimationFrame(r)},[]),D(()=>{const r=d.current;if(r){u.current=u.current||{transitionDuration:r.style.transitionDuration,animationName:r.style.animationName},r.style.transitionDuration="0s",r.style.animationName="none";const O=r.getBoundingClientRect();N.current=O.height,j.current=O.width,L.current||(r.style.transitionDuration=u.current.transitionDuration,r.style.animationName=u.current.animationName),p(n)}},[l.open,n]),i.jsx(g.div,{"data-state":y(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!h,...c,ref:b,style:{"--radix-collapsible-content-height":_?`${_}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...t.style},children:h&&s})});function y(t){return t?"open":"closed"}var q=P,Q=x,U=E;function X(t){const e=f.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let n;return e[2]!==o?(n=i.jsx(q,{"data-slot":"collapsible",...o}),e[2]=o,e[3]=n):n=e[3],n}function ee(t){const e=f.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let n;return e[2]!==o?(n=i.jsx(x,{"data-slot":"collapsible-trigger",...o}),e[2]=o,e[3]=n):n=e[3],n}function te(t){const e=f.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let n;return e[2]!==o?(n=i.jsx(E,{"data-slot":"collapsible-content",...o}),e[2]=o,e[3]=n):n=e[3],n}function oe(){const t=f.c(4);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=G.decoChatOpen(),t[0]=e):e=t[0];const[o,n]=B(e,K);let s;return t[1]!==o||t[2]!==n?(s=[o,n],t[1]=o,t[2]=n,t[3]=s):s=t[3],s}function K(t){return!!(t??!0)}export{X as C,q as R,Q as T,z as a,ee as b,te as c,U as d,Z as e,F as i,oe as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as w,u as C,K as D,j as u,r as K}from"./index-uOrjFt6t.js";import{A as M}from"./avatar-DjSt5kfT.js";import{c as B}from"./button-D10odSSz.js";import{u as P}from"./useQuery-Vrc6Li_H.js";import{a as k,u as A}from"./constants-V7-3C38y.js";import{u as L}from"./use-view-mode-DJ9lvNoA.js";function R(c){const e=w.c(11),{org:i}=C();let n;e[0]!==i.id?(n={connectionId:k,orgId:i.id},e[0]=i.id,e[1]=n):n=e[1];const o=A(n);let t;e[2]!==c?(t=D.user(c),e[2]=c,e[3]=t):t=e[3];let l;e[4]!==o||e[5]!==c?(l=async()=>{const y=await o.callTool({name:"USER_GET",arguments:{id:c}});return(y.structuredContent??y).user},e[4]=o,e[5]=c,e[6]=l):l=e[6];const f=!!c;let s;return e[7]!==t||e[8]!==l||e[9]!==f?(s={queryKey:t,queryFn:l,staleTime:3e5,retry:1,enabled:f},e[7]=t,e[8]=l,e[9]=f,e[10]=s):s=e[10],P(s)}function Y(c){const e=w.c(39),{id:i,size:n,showEmail:o,className:t}=c,l=n===void 0?"xs":n,f=o===void 0?!1:o,{data:s,isLoading:y,isError:N}=R(i);if(y){let a;e[0]!==t?(a=B("flex items-center gap-2",t),e[0]=t,e[1]=a):a=e[1];let r;e[2]!==l?(r=u.jsx(M.Skeleton,{shape:"circle",size:l}),e[2]=l,e[3]=r):r=e[3];let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=u.jsx("div",{className:"h-3 w-24 bg-muted animate-pulse rounded"}),e[4]=d):d=e[4];let m;e[5]!==f?(m=f&&u.jsx("div",{className:"h-2 w-32 bg-muted animate-pulse rounded"}),e[5]=f,e[6]=m):m=e[6];let p;e[7]!==m?(p=u.jsxs("div",{className:"flex flex-col gap-1",children:[d,m]}),e[7]=m,e[8]=p):p=e[8];let b;return e[9]!==a||e[10]!==r||e[11]!==p?(b=u.jsxs("div",{className:a,children:[r,p]}),e[9]=a,e[10]=r,e[11]=p,e[12]=b):b=e[12],b}if(N||!s){let a;e[13]!==t?(a=B("flex items-center gap-2",t),e[13]=t,e[14]=a):a=e[14];let r;e[15]!==l?(r=u.jsx(M,{shape:"circle",size:l,fallback:"?",muted:!0}),e[15]=l,e[16]=r):r=e[16];let d;e[17]===Symbol.for("react.memo_cache_sentinel")?(d=u.jsx("div",{className:"flex flex-col",children:u.jsx("div",{className:"text-sm text-muted-foreground",children:"Unknown User"})}),e[17]=d):d=e[17];let m;return e[18]!==a||e[19]!==r?(m=u.jsxs("div",{className:a,children:[r,d]}),e[18]=a,e[19]=r,e[20]=m):m=e[20],m}let v;e[21]!==t?(v=B("flex items-center gap-2",t),e[21]=t,e[22]=v):v=e[22];const j=s.image??void 0;let g;e[23]!==l||e[24]!==j||e[25]!==s.name?(g=u.jsx(M,{shape:"circle",size:l,url:j,fallback:s.name}),e[23]=l,e[24]=j,e[25]=s.name,e[26]=g):g=e[26];let x;e[27]!==s.name?(x=u.jsx("div",{className:"text-sm font-medium",children:s.name}),e[27]=s.name,e[28]=x):x=e[28];let S;e[29]!==f||e[30]!==s.email?(S=f&&u.jsx("div",{className:"text-xs text-muted-foreground",children:s.email}),e[29]=f,e[30]=s.email,e[31]=S):S=e[31];let h;e[32]!==x||e[33]!==S?(h=u.jsxs("div",{className:"flex flex-col",children:[x,S]}),e[32]=x,e[33]=S,e[34]=h):h=e[34];let F;return e[35]!==v||e[36]!==g||e[37]!==h?(F=u.jsxs("div",{className:v,children:[g,h]}),e[35]=v,e[36]=g,e[37]=h,e[38]=F):F=e[38],F}function q(c){const e=`deco-filters-${c}`,[i,n]=K.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[i,t=>{n(t);try{globalThis.localStorage?.setItem(e,JSON.stringify(t))}catch(l){console.error("Failed to save filters:",l)}}]}function z(c){const e=w.c(7),[i,n]=K.useState(c),[o,t]=K.useState(c?"desc":null);let l;e[0]!==o||e[1]!==i?(l=y=>{i!==y?(n(y),t("asc")):o==="asc"?t("desc"):o==="desc"&&(n(void 0),t(null))},e[0]=o,e[1]=i,e[2]=l):l=e[2];const f=l;let s;return e[3]!==f||e[4]!==o||e[5]!==i?(s={sortKey:i,sortDirection:o,handleSort:f},e[3]=f,e[4]=o,e[5]=i,e[6]=s):s=e[6],s}function H(c){const e=w.c(20),{namespace:i,resource:n,defaultSortKey:o,defaultViewMode:t}=c,l=o===void 0?"title":o,f=t===void 0?"table":t,[s,y]=K.useState(""),N=K.useDeferredValue(s),v=`${i}-${n}`,[j,g]=q(v),x=`mesh-${n}-filter-visible-${i}`;let S;e[0]!==x?(S=()=>globalThis.localStorage?.getItem(x)==="true",e[0]=x,e[1]=S):S=e[1];const[h,F]=K.useState(S);let a;e[2]!==x?(a=T=>{F(T),globalThis.localStorage?.setItem(x,String(T))},e[2]=x,e[3]=a):a=e[3];const r=a;let d;e[4]!==h||e[5]!==r?(d=()=>{r(!h)},e[4]=h,e[5]=r,e[6]=d):d=e[6];const m=d,[p,b]=L(`mesh-${n}-${i}`,f),{sortKey:U,sortDirection:E,handleSort:V}=z(l),_=U;let $;return e[7]!==h||e[8]!==j||e[9]!==V||e[10]!==s||e[11]!==N||e[12]!==r||e[13]!==g||e[14]!==b||e[15]!==E||e[16]!==_||e[17]!==m||e[18]!==p?($={search:s,searchTerm:N,setSearch:y,filters:j,setFilters:g,filterBarVisible:h,setFilterBarVisible:r,toggleFilterBar:m,viewMode:p,setViewMode:b,sortKey:_,sortDirection:E,handleSort:V},e[7]=h,e[8]=j,e[9]=V,e[10]=s,e[11]=N,e[12]=r,e[13]=g,e[14]=b,e[15]=E,e[16]=_,e[17]=m,e[18]=p,e[19]=$):$=e[19],$}export{Y as U,H as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-DS9VDnBa.js";import{U as i}from"./index-uOrjFt6t.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{U as u,ak as s}from"./index-uOrjFt6t.js";function o(e,r){return u(e,s,r)}export{o as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-DS9VDnBa.js";import{U as u,W as n}from"./index-uOrjFt6t.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as N,u as w,d as q,b as G,j as t,O as B,c as L,aD as Q,m as J,K as W,t as A}from"./index-uOrjFt6t.js";import{a as Z,u as V,e as Y}from"./constants-V7-3C38y.js";import{C as X}from"./collection-tab-CQQXE46p.js";import{g as ee,h as te}from"./use-connection-DqGqpr6W.js";import{B as I}from"./button-D10odSSz.js";import{E as R}from"./collection-search-BAmI-gVt.js";import{E as ne}from"./error-boundary-apRp8Xmr.js";import{P as x}from"./index-CX1TvU3T.js";import{B as F,a as M,b as z,c as T}from"./breadcrumb-DmYstfbP.js";import{a as se,b as ie}from"./use-binding-9lQePXv2.js";import{i as oe}from"./AlertTriangle-D2guHjVq.js";import{i as le}from"./Loading01-D2eBBNoh.js";import{s as re}from"./RefreshCcw01-J5wqqeG_.js";import{u as ae}from"./useMutation-BYvhr9Wj.js";import{e as ce}from"./Dataflow03-r1iydeQd.js";import"./generate-id-Dyweu44Y.js";import"./collection-table-wrapper-fcFg8ybt.js";import"./dropdown-menu-D6LMimH3.js";import"./Check-Dnxirgog.js";import"./ChevronRight-BjXZnVl8.js";import"./ArrowDown-BB4lqZfQ.js";import"./ArrowUp-ByjI1wop.js";import"./Grid01-Dyv_Ip5i.js";import"./List-C9ntvlpP.js";import"./tooltip-CooOHv4u.js";import"./index-kTXXfvC-.js";import"./table-D_a-Z4Fv.js";import"./card-9y5GtFsZ.js";import"./integration-icon-CHvqhFEd.js";import"./Container-NYiiZyd6.js";import"./Copy01--WUANgtG.js";import"./DotsVertical-CdVqSSOc.js";import"./Edit01-DK-8NMEI.js";import"./Eye-broatAu7.js";import"./Trash01-Bilx6R4T.js";import"./empty-state-CPu-zZBv.js";import"./Inbox01-Bh1zeW2m.js";import"./use-list-state-0IvPs7yX.js";import"./avatar-DjSt5kfT.js";import"./useQuery-Vrc6Li_H.js";import"./use-view-mode-DJ9lvNoA.js";import"./use-mobile-DA9mzCuy.js";import"./constants-wwWYqq9s.js";import"./alert-dialog-DrmsJmsN.js";import"./Plus-CoFNXdPs.js";import"./layout-14xmCS52.js";import"./SearchMd-WqvhRztL.js";import"./input-C8Cn3OQt.js";import"./X-DlPknjOM.js";import"./binder--zY5y66H.js";const D=({size:n=24,color:e="currentColor",...i})=>N.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},N.createElement("path",{d:"m9.395 19.371.585 1.315a2.212 2.212 0 0 0 4.044 0l.584-1.315a2.426 2.426 0 0 1 2.47-1.423l1.43.152a2.212 2.212 0 0 0 2.023-3.502l-.847-1.164a2.428 2.428 0 0 1-.46-1.434c0-.513.163-1.014.464-1.429l.847-1.163a2.211 2.211 0 0 0-2.022-3.502l-1.43.152a2.433 2.433 0 0 1-1.47-.312 2.426 2.426 0 0 1-1-1.117l-.589-1.315a2.212 2.212 0 0 0-4.044 0L9.395 4.63c-.207.468-.557.86-1 1.117-.445.256-.96.365-1.47.312l-1.434-.152a2.212 2.212 0 0 0-2.023 3.502l.847 1.163a2.43 2.43 0 0 1 0 2.858l-.847 1.163a2.21 2.21 0 0 0 .786 3.273c.382.195.811.274 1.237.23l1.43-.153a2.434 2.434 0 0 1 2.474 1.43Z"}),N.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}));D.displayName="Settings02";function de({title:n,description:e,wellKnownMcp:i,imageSrc:a,onConnected:o}){const c=ee(),{org:{slug:s}}=w(),{data:r}=q.useSession(),d=G(),[m,p]=N.useState(!1),l=async()=>{if(!(!i||!r?.user?.id)){p(!0);try{const f=await c.create.mutateAsync(i);o?.(f.id),d({to:"/$org/$project/mcps/$connectionId",params:{org:s,project:B,connectionId:f.id}})}finally{p(!1)}}},u=()=>{d({to:"/$org/$project/mcps",params:{org:s,project:B},search:{action:"create"}})};return t.jsx(R,{image:a?t.jsx("img",{src:a,alt:n,width:336,height:320,className:"max-w-full h-auto"}):null,title:n,description:e,actions:t.jsxs(t.Fragment,{children:[t.jsxs(I,{variant:"outline",onClick:l,disabled:m||!i,children:[i?.icon&&t.jsx("img",{src:i.icon,alt:"",className:"size-4"}),m?"Installing...":`Install ${i?.title||"MCP"}`]}),t.jsx(I,{variant:"outline",onClick:u,children:"Custom Connection"})]})})}function me(n){const e=L.c(35),{bindingName:i,collectionName:a,title:o,emptyState:c,wellKnownMcp:s}=n,{org:r}=w(),d=te();let m;e[0]!==d||e[1]!==i?(m={connections:d,binding:i},e[0]=d,e[1]=i,e[2]=m):m=e[2];const l=se(m)[0],u=ie(l);let f;if(e[3]!==a||e[4]!==u){let g;e[6]!==a?(g=$=>$.name.toLowerCase()===a.toLowerCase(),e[6]=a,e[7]=g):g=e[7],f=u.find(g),e[3]=a,e[4]=u,e[5]=f}else f=e[5];const S=f,[U,H]=N.useState(null),_=l&&S&&(l.id||U);let h;e[8]!==o?(h=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(F,{children:t.jsx(M,{children:t.jsx(z,{children:t.jsx(T,{children:o})})})})})}),e[8]=o,e[9]=h):h=e[9];let j;e[10]!==l||e[11]!==r||e[12]!==o?(j=g=>{const{error:$,resetError:K}=g;return t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[t.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:t.jsx(oe,{className:"h-6 w-6 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsxs("h3",{className:"text-lg font-medium",children:["Failed to load ",o.toLowerCase()]}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:$?.message||"Unable to connect to the server. Please check that it is running and accessible."})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsxs(I,{variant:"outline",onClick:K,children:[t.jsx(re,{className:"size-4"}),"Try again"]}),l&&t.jsx(I,{variant:"outline",asChild:!0,children:t.jsxs(Q,{to:"/$org/$project/mcps/$connectionId",params:{org:r.slug,project:B,connectionId:l.id},search:{tab:"settings"},children:[t.jsx(D,{className:"size-4"}),"Connection Settings"]})})]})]})},e[10]=l,e[11]=r,e[12]=o,e[13]=j):j=e[13];let k;e[14]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(le,{size:32,className:"animate-spin text-muted-foreground mb-4"}),e[14]=k):k=e[14];let b;e[15]!==o?(b=o.toLowerCase(),e[15]=o,e[16]=b):b=e[16];let C;e[17]!==b?(C=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[k,t.jsxs("p",{className:"text-sm text-muted-foreground",children:["Loading ",b,"..."]})]}),e[17]=b,e[18]=C):C=e[18];let y;e[19]!==S||e[20]!==l||e[21]!==c||e[22]!==r||e[23]!==_||e[24]!==s?(y=_?t.jsx(X,{connectionId:l.id,org:r.slug,activeCollection:S}):t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(de,{title:c.title,description:c.description,wellKnownMcp:s,imageSrc:c.imageSrc,onConnected:g=>{H(g)}})}),e[19]=S,e[20]=l,e[21]=c,e[22]=r,e[23]=_,e[24]=s,e[25]=y):y=e[25];let P;e[26]!==C||e[27]!==y?(P=t.jsx(N.Suspense,{fallback:C,children:y}),e[26]=C,e[27]=y,e[28]=P):P=e[28];let E;e[29]!==j||e[30]!==P?(E=t.jsx(x.Content,{children:t.jsx(ne,{fallback:j,children:P})}),e[29]=j,e[30]=P,e[31]=E):E=e[31];let v;return e[32]!==E||e[33]!==h?(v=t.jsxs(x,{children:[h,E]}),e[32]=E,e[33]=h,e[34]=v):v=e[34],v}function ue(){const n=L.c(12),{org:e,project:i}=w(),a=J();let o;n[0]!==e.id?(o={connectionId:Z,orgId:e.id},n[0]=e.id,n[1]=o):o=n[1];const c=V(o);let s;n[2]!==c||n[3]!==i?(s=async p=>{const l=i.enabledPlugins??[];if(l.includes(p))return;const u=[...l,p],f=await c.callTool({name:"PROJECT_UPDATE",arguments:{projectId:i.id,enabledPlugins:u}});return f.structuredContent??f},n[2]=c,n[3]=i,n[4]=s):s=n[4];let r;n[5]!==e.id||n[6]!==i||n[7]!==a?(r=()=>{a.invalidateQueries({queryKey:W.project(e.id,i.slug)}),a.invalidateQueries({queryKey:W.projects(e.id)})},n[5]=e.id,n[6]=i,n[7]=a,n[8]=r):r=n[8];let d;return n[9]!==s||n[10]!==r?(d={mutationFn:s,onSuccess:r,onError:pe},n[9]=s,n[10]=r,n[11]=d):d=n[11],ae(d)}function pe(n){A.error("Failed to enable plugin: "+(n instanceof Error?n.message:"Unknown error"))}function fe(n){const e=L.c(12),{pluginId:i,title:a,description:o,icon:c}=n,s=ue();let r;e[0]!==s||e[1]!==i?(r=async()=>{try{await s.mutateAsync(i),A.success("Plugin enabled!")}catch{}},e[0]=s,e[1]=i,e[2]=r):r=e[2];const d=r,m=c??null,p=s.isPending?"Enabling…":"Enable plugin";let l;e[3]!==s.isPending||e[4]!==d||e[5]!==p?(l=t.jsx(I,{onClick:d,disabled:s.isPending,children:p}),e[3]=s.isPending,e[4]=d,e[5]=p,e[6]=l):l=e[6];let u;return e[7]!==o||e[8]!==m||e[9]!==l||e[10]!==a?(u=t.jsx(R,{image:m,title:a,description:o,actions:l}),e[7]=o,e[8]=m,e[9]=l,e[10]=a,e[11]=u):u=e[11],u}const O="workflows";function mt(){const n=L.c(3),{project:e}=w();if(!(e.enabledPlugins??[]).includes(O)){let c;n[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(F,{children:t.jsx(M,{children:t.jsx(z,{children:t.jsx(T,{children:"Workflows"})})})})})}),n[0]=c):c=n[0];let s;return n[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsxs(x,{children:[c,t.jsx(x.Content,{children:t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(fe,{pluginId:O,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(ce,{className:"size-8 text-muted-foreground"})})})})})]}),n[1]=s):s=n[1],s}let o;return n[2]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(me,{bindingName:"WORKFLOW",collectionName:"workflow",title:"Workflows",emptyState:{title:"Create Workflows",description:"Run durable MCP tool calls in background."},wellKnownMcp:Y()}),n[2]=o):o=n[2],o}export{mt as default};
|