@decocms/mesh 2.114.2 → 2.114.4
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-BdP92l7X.js → AlertCircle-87pz6CLK.js} +1 -1
- package/dist/client/assets/{AlertOctagon-Rr2l0fxh.js → AlertOctagon-CdS8EaWw.js} +1 -1
- package/dist/client/assets/{AlertTriangle-CY_-7aJF.js → AlertTriangle--2XdWwTl.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DFfU5VuP.js → ArrowLeft-P05LGWIS.js} +1 -1
- package/dist/client/assets/{ArrowUp-I-A62Wxd.js → ArrowUp-DEd986Yz.js} +1 -1
- package/dist/client/assets/{Check-CVKnwJBY.js → Check-ss4b3kGL.js} +1 -1
- package/dist/client/assets/{CheckCircle-D-rYJHRo.js → CheckCircle-RhCNDucM.js} +1 -1
- package/dist/client/assets/{CheckDone01-DYFSMdW3.js → CheckDone01-B808ZC9T.js} +1 -1
- package/dist/client/assets/{CheckVerified02-BVh_Gxcs.js → CheckVerified02-o5r0ZVSD.js} +1 -1
- package/dist/client/assets/{ChevronDown-D5ff6saN.js → ChevronDown-Fa8gvE4N.js} +1 -1
- package/dist/client/assets/{ChevronRight-C8j7LAQ2.js → ChevronRight-ChAH8Cbi.js} +1 -1
- package/dist/client/assets/{Clock-zOD9TyEC.js → Clock-Dk8zDWze.js} +1 -1
- package/dist/client/assets/{Code01-BZxryKMN.js → Code01-C_agqm3t.js} +1 -1
- package/dist/client/assets/{Container-C5BViBN6.js → Container-Cg4Dgkr4.js} +1 -1
- package/dist/client/assets/{Copy01-DNd1Ispu.js → Copy01-bMByqBkp.js} +1 -1
- package/dist/client/assets/{Dataflow03-CSEKvFdt.js → Dataflow03-CEuNPUr-.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-BBqzCUna.js → DotsHorizontal-BLBXXghA.js} +1 -1
- package/dist/client/assets/{DotsVertical-54W9Gp2R.js → DotsVertical-Oa06p8Tg.js} +1 -1
- package/dist/client/assets/{Download01-DT3rpbSw.js → Download01-BhULX8s0.js} +1 -1
- package/dist/client/assets/{Edit01-DwmF64aq.js → Edit01-BtYeQc5J.js} +1 -1
- package/dist/client/assets/{Eye-BZL-4zsY.js → Eye-qLu7cENa.js} +1 -1
- package/dist/client/assets/{File02-SzmU0lnv.js → File02-D2v6m157.js} +1 -1
- package/dist/client/assets/{File06-BI0VUvQW.js → File06-_dVy8VA8.js} +1 -1
- package/dist/client/assets/{FilterLines-D2muynqe.js → FilterLines-DpJa053z.js} +1 -1
- package/dist/client/assets/{Globe01-DiwJfU7l.js → Globe01-syo4E_rH.js} +1 -1
- package/dist/client/assets/{Globe02-l9Cgb3NK.js → Globe02-qg-RL6U7.js} +1 -1
- package/dist/client/assets/{Grid01-DsYQ_oYv.js → Grid01-y6wravTy.js} +1 -1
- package/dist/client/assets/{Hash02-CdSsvoL9.js → Hash02-BcrU8na2.js} +1 -1
- package/dist/client/assets/{Home02-lgvZ9jPY.js → Home02-BUCKOZtr.js} +1 -1
- package/dist/client/assets/{Image01-CBRl_ma-.js → Image01-Cn9rvjGe.js} +1 -1
- package/dist/client/assets/{Inbox01-CXpLQUl3.js → Inbox01-qG8YVC9s.js} +1 -1
- package/dist/client/assets/{InfoCircle-CBhELEm5.js → InfoCircle-CbVsxQ4Q.js} +1 -1
- package/dist/client/assets/{Key01-CTUfKK1Y.js → Key01-CnpUPM6j.js} +1 -1
- package/dist/client/assets/{LinkExternal01-C_UoTlVt.js → LinkExternal01-uo5sGjy_.js} +1 -1
- package/dist/client/assets/{List-CXd3HgNf.js → List-B2d-tXq3.js} +1 -1
- package/dist/client/assets/{Loading01-T5bxWl24.js → Loading01-BGxaLQXT.js} +1 -1
- package/dist/client/assets/{Lock01-oGMNa4tj.js → Lock01-CVHqL_9F.js} +1 -1
- package/dist/client/assets/{Pin01-IE7zREnx.js → Pin01-zABFbrLH.js} +1 -1
- package/dist/client/assets/{Play-DTKn98C3.js → Play-CIXUmOTN.js} +1 -1
- package/dist/client/assets/{Plus-C7OAUPbV.js → Plus-DiCPboGz.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-BHJMWzE6.js → RefreshCcw01-DeRXjGPw.js} +1 -1
- package/dist/client/assets/{RefreshCw01-CYr0gf6f.js → RefreshCw01-CLKI7ij5.js} +1 -1
- package/dist/client/assets/{Rows03-DXdlD9eS.js → Rows03-pDN6Wibn.js} +1 -1
- package/dist/client/assets/{Save01-CW48ujzI.js → Save01-Caa5iL9S.js} +1 -1
- package/dist/client/assets/{SearchMd-D0ge7VLl.js → SearchMd-DNHArz2n.js} +1 -1
- package/dist/client/assets/{Settings01-DSvdOAH2.js → Settings01-76tXwBFs.js} +1 -1
- package/dist/client/assets/{Share07-DoaR4YK_.js → Share07-Cb8g3CuD.js} +1 -1
- package/dist/client/assets/{Shield01-a0s1wwek.js → Shield01-BqSt8I5_.js} +1 -1
- package/dist/client/assets/{Terminal-Bq3byDSF.js → Terminal-bmnW7izs.js} +1 -1
- package/dist/client/assets/{Tool01-5OUfWyig.js → Tool01-l3ZX94SA.js} +1 -1
- package/dist/client/assets/{Trash01-FFL3QSvQ.js → Trash01-Ds89dEyi.js} +1 -1
- package/dist/client/assets/{Upload01-CFs6TsZZ.js → Upload01-CrLebV8u.js} +1 -1
- package/dist/client/assets/{Users03-EyzvMfVV.js → Users03-973jhxVC.js} +1 -1
- package/dist/client/assets/{XCircle-BG9lERqy.js → XCircle-DzvEACuz.js} +1 -1
- package/dist/client/assets/{XClose-BH8ymIge.js → XClose-Gebe3Lpq.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-8BUAmGEe.js → agent-connections-preview-DbSOq9MS.js} +1 -1
- package/dist/client/assets/{agent-detail-Dqb5Ci3o.js → agent-detail-B2onMGmp.js} +1 -1
- package/dist/client/assets/{agents-CRCBm2Ev.js → agents-4P_yJ9zI.js} +1 -1
- package/dist/client/assets/{alert-dialog-D4TxZ3VS.js → alert-dialog-D-bpjwrd.js} +1 -1
- package/dist/client/assets/{auth-catchall-Di4SrfZR.js → auth-catchall-DxtwIAjW.js} +1 -1
- package/dist/client/assets/{avatar-eaZ9yveJ.js → avatar-LGTR0-dJ.js} +1 -1
- package/dist/client/assets/{badge-EykGopY8.js → badge-C68TEc2s.js} +1 -1
- package/dist/client/assets/{binder-CzKynqQC.js → binder-DTwuH7RP.js} +1 -1
- package/dist/client/assets/{breadcrumb-DlLkIbY1.js → breadcrumb-BOSBMWhe.js} +1 -1
- package/dist/client/assets/{button-eaqLZOCM.js → button-CltXgBt_.js} +1 -1
- package/dist/client/assets/{card-DQOcrqoE.js → card-DNFGWPL4.js} +1 -1
- package/dist/client/assets/{checkbox-CpbO2Yum.js → checkbox-SgEy5KuG.js} +1 -1
- package/dist/client/assets/{circle-alert-CSSTnmQQ.js → circle-alert-DYvJv5Ko.js} +1 -1
- package/dist/client/assets/{collection-detail-DSjXgzmA.js → collection-detail-DOEKC0g2.js} +1 -1
- package/dist/client/assets/{collection-tab-DN4CUrD_.js → collection-tab-CwxRZx7g.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-B0BtiFqG.js → collection-table-wrapper-BYOlimKE.js} +1 -1
- package/dist/client/assets/{collection-tabs--_IhSU5C.js → collection-tabs-DZs_zgEM.js} +1 -1
- package/dist/client/assets/{command-DrAS6O2r.js → command-C0kPCKZR.js} +1 -1
- package/dist/client/assets/{connect-19iqS2YF.js → connect-BmfBu9IA.js} +1 -1
- package/dist/client/assets/{connection-card-S8xw2Uw6.js → connection-card-CbMxUD52.js} +1 -1
- package/dist/client/assets/{connection-detail-CPDN1qP6.js → connection-detail-DxTGeOXe.js} +1 -1
- package/dist/client/assets/{connections-CpLQpJVP.js → connections-DCdMs0gK.js} +1 -1
- package/dist/client/assets/constants-BknqBFNn.js +1 -0
- package/dist/client/assets/{constants-D7qLFIUa.js → constants-FCOQt1Nx.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-KE-u9cfo.js → create-organization-dialog-DWhsnVmx.js} +1 -1
- package/dist/client/assets/{create-project-dialog-CNwHzNcZ.js → create-project-dialog-BWMdEfgz.js} +1 -1
- package/dist/client/assets/{dialog-D7_B2uii.js → dialog-CoIpVxsf.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CEbvodTC.js → dropdown-menu-RanCPsC8.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-DHld8Vaf.js → dynamic-plugin-layout-C9oD8t_6.js} +1 -1
- package/dist/client/assets/{empty-state-DUJ-w8xc.js → empty-state-BMzLHZqs.js} +1 -1
- package/dist/client/assets/{empty-state-BYrJytPO.js → empty-state-BlbQO4ML.js} +1 -1
- package/dist/client/assets/{env-vars-editor-mKye8GbL.js → env-vars-editor-D3JCI8w3.js} +1 -1
- package/dist/client/assets/{error-boundary-Dvk7eIUJ.js → error-boundary-662X7_hb.js} +1 -1
- package/dist/client/assets/{extract-connection-data-ZKVsJvVi.js → extract-connection-data-BvfJRMa3.js} +1 -1
- package/dist/client/assets/{file-browser-Q5mKDS5G.js → file-browser-C-pRVfCH.js} +2 -2
- package/dist/client/assets/{form-DTjgc7E1.js → form-GFfRzzeS.js} +1 -1
- package/dist/client/assets/{grid-view-BINbb70M.js → grid-view-DKReXcqi.js} +1 -1
- package/dist/client/assets/{home-twwSa8uP.js → home-GupKXTmH.js} +1 -1
- package/dist/client/assets/{index-BrNNYlfF.js → index-BvM-U-XB.js} +1 -1
- package/dist/client/assets/{index-CBHiMww-.js → index-C19yOmWI.js} +1 -1
- package/dist/client/assets/{index-ByjdQTkj.js → index-CEExljIY.js} +1 -1
- package/dist/client/assets/{index-BpwVJlhl.js → index-CT7EZ55B.js} +1 -1
- package/dist/client/assets/{index-D1IFXNFI.js → index-D05EUZ3I.js} +1 -1
- package/dist/client/assets/{index-BiTVNvni.js → index-DPXGfIj1.js} +1 -1
- package/dist/client/assets/{index-DD8oFnE0.js → index-DwOUIYFf.js} +1 -1
- package/dist/client/assets/{index-DJtULvNg.js → index-SRTXqQcy.js} +3 -3
- package/dist/client/assets/{index-SZWvR3qd.js → index-x5rY3SSD.js} +42 -42
- package/dist/client/assets/{infiniteQueryObserver-CGV3hMMF.js → infiniteQueryObserver-BjF-zV5L.js} +1 -1
- package/dist/client/assets/{input-B0SBH7Cs.js → input-huks5fJI.js} +1 -1
- package/dist/client/assets/{integration-icon-rMI_9K4r.js → integration-icon-Cp1HpUk7.js} +1 -1
- package/dist/client/assets/{label-Bz5MXHYJ.js → label-DcRY2Z_c.js} +1 -1
- package/dist/client/assets/{layout-DhYlgGzA.js → layout-DTsboEzi.js} +1 -1
- package/dist/client/assets/{localstorage-keys-CI6Z4fm6.js → localstorage-keys-BydGgvW4.js} +1 -1
- package/dist/client/assets/{login-BfxE_Sz3.js → login-B7tDHi06.js} +1 -1
- package/dist/client/assets/{markdown-BGXwzeeE.js → markdown-BdmxXnSU.js} +1 -1
- package/dist/client/assets/{mcp-oauth-D_wqa8vh.js → mcp-oauth-BZCsbdmd.js} +1 -1
- package/dist/client/assets/{mcp-server-card-BQr3PIAV.js → mcp-server-card-8ZVI_22n.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-TzDs2eyw.js → mcp-server-detail-0ieYYiyf.js} +2 -2
- package/dist/client/assets/{members-DHbYymN3.js → members-CvfVBZxM.js} +1 -1
- package/dist/client/assets/{monitoring-DqsDGbw-.js → monitoring-BxQSGXDM.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-5kDLFmCV.js → monitoring-dashboard-edit-9B7Jzd1Y.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-B3-E1Gpy.js → monitoring-dashboard-view-CVnGc94e.js} +1 -1
- package/dist/client/assets/{oauth-callback-DVq7u8Je.js → oauth-callback-CigfvTht.js} +1 -1
- package/dist/client/assets/{page-fNUZqwSL.js → page-D4LKpPAI.js} +1 -1
- package/dist/client/assets/{page-D3QXl2Ip.js → page-DAkc-y77.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-BVCw2-mF.js → plugin-empty-state-DDTxMT2j.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-7pZYl3gH.js → plugin-empty-state-DTgTWXI7.js} +1 -1
- package/dist/client/assets/{plugin-header-B8KtVdye.js → plugin-header-B3ObCcqy.js} +1 -1
- package/dist/client/assets/{plugin-header-HWqxxJgj.js → plugin-header-BC9DhoPL.js} +1 -1
- package/dist/client/assets/{popover-D5RphbE0.js → popover-DcSaWbV8.js} +1 -1
- package/dist/client/assets/{project-layout-BZq8-5Uq.js → project-layout-vo1O7yUx.js} +1 -1
- package/dist/client/assets/{project-settings-CY0Y7dc-.js → project-settings-DhjkY1yg.js} +1 -1
- package/dist/client/assets/{projects-list-BRA18Y06.js → projects-list-DrQICZdg.js} +1 -1
- package/dist/client/assets/{ranking-layout-DfWqNUT7.js → ranking-layout-CDLPoM3K.js} +1 -1
- package/dist/client/assets/{readme-viewer-BcjTTSaK.js → readme-viewer-2ismStm5.js} +1 -1
- package/dist/client/assets/{registry-layout-B-XZ5aAT.js → registry-layout-DEblsXP7.js} +1 -1
- package/dist/client/assets/{registry-utils-zW-rXJgs.js → registry-utils-Dac8ZTsT.js} +1 -1
- package/dist/client/assets/{reports-layout-BITiG4PC.js → reports-layout-DbnfP1q6.js} +1 -1
- package/dist/client/assets/{reset-password-DkcOqVwI.js → reset-password-B89jE3ej.js} +1 -1
- package/dist/client/assets/{resizable-BYS5u1YR.js → resizable-h22LB830.js} +1 -1
- package/dist/client/assets/{save-actions-Cr8gCIHi.js → save-actions-DA7n9oDQ.js} +1 -1
- package/dist/client/assets/{scroll-area-DiOFX4MA.js → scroll-area-BKmtzCq2.js} +1 -1
- package/dist/client/assets/{select-B2gByP1Y.js → select-Bly56K9Q.js} +1 -1
- package/dist/client/assets/{shell-layout-DEfY0VTh.js → shell-layout-D9kTN_A3.js} +1 -1
- package/dist/client/assets/{spinner-DW62uFVe.js → spinner-F4mIr_hT.js} +1 -1
- package/dist/client/assets/{store-invite-DT2EPL27.js → store-invite-CtnVmWXj.js} +1 -1
- package/dist/client/assets/{switch-DtRL0IOe.js → switch-BL62l8Ib.js} +1 -1
- package/dist/client/assets/{table-CH_Ac6jn.js → table-CbXfRrNf.js} +1 -1
- package/dist/client/assets/{tasks-D2-FOY5S.js → tasks-CEtbtstY.js} +1 -1
- package/dist/client/assets/{textarea-BQMo4FS_.js → textarea-B8s2FGNX.js} +1 -1
- package/dist/client/assets/{time-range-picker-DloKivtV.js → time-range-picker-CfimiwqE.js} +1 -1
- package/dist/client/assets/{toggle-group-7CVGd3b4.js → toggle-group-BKCwzeo_.js} +1 -1
- package/dist/client/assets/{tools-list-T1Po8RdJ.js → tools-list-CyzEbx-9.js} +1 -1
- package/dist/client/assets/{tooltip-D0R_EwpY.js → tooltip-Bn-48UAI.js} +1 -1
- package/dist/client/assets/{topbar-portal-IJqbHtdo.js → topbar-portal-D7WeU3yz.js} +1 -1
- package/dist/client/assets/{typewriter-title-IW5lZJuV.js → typewriter-title-CHhLNB1a.js} +1 -1
- package/dist/client/assets/{use-binding-Bbl2jels.js → use-binding-DdkmvlxZ.js} +1 -1
- package/dist/client/assets/{use-connection-CCjOXaHU.js → use-connection-DAgRP50x.js} +1 -1
- package/dist/client/assets/{use-copy-DIntq5HW.js → use-copy-Bo2sIPym.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-C72Z8_st.js → use-create-virtual-mcp-fdVT40_L.js} +1 -1
- package/dist/client/assets/{use-deco-chat-open-BPJIwj0P.js → use-deco-chat-open-DFTbj6_G.js} +7 -7
- package/dist/client/assets/{use-install-from-registry-DWvmx9ee.js → use-install-from-registry-M1-5-P-0.js} +1 -1
- package/dist/client/assets/{use-list-state-_Tzedr0z.js → use-list-state-BnheaE8u.js} +1 -1
- package/dist/client/assets/{use-llm-BKkivZVR.js → use-llm-CBphLfYI.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-IBqTMDhV.js → use-mcp-prompts-B3rnWj2C.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CBsvOt9h.js → use-mcp-tools-CPX0xnjy.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BBB1hUlN.js → use-organization-settings-Cz1UAsSG.js} +1 -1
- package/dist/client/assets/{use-project-DjZSPmGg.js → use-project-BNMLIvlD.js} +1 -1
- package/dist/client/assets/{use-view-mode-a7ihHmyH.js → use-view-mode-D2cP_FrA.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BTst7kuR.js → use-virtual-mcp-B5BaJrTw.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-SMlnrZp0.js +1 -0
- package/dist/client/assets/{useMutation-CgMSCUji.js → useMutation-Bq7GjWDP.js} +1 -1
- package/dist/client/assets/useQuery-pVrum8lO.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-oK3vyxJn.js +1 -0
- package/dist/client/assets/{workflow-D6QaXBek.js → workflow-61tE2hAr.js} +1 -1
- package/dist/client/index.html +1 -1
- package/package.json +1 -1
- package/dist/client/assets/constants-CK1PLXYP.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Bjii8Fvr.js +0 -1
- package/dist/client/assets/useQuery-CAfWkV_-.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CrUGhS0H.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as C,c as T,j as t}from"./index-
|
|
1
|
+
import{r as C,c as T,j as t}from"./index-SRTXqQcy.js";import{I as L}from"./input-huks5fJI.js";import{S as _,a as $,b as V,c as z}from"./index-CT7EZ55B.js";import{c as S}from"./button-CltXgBt_.js";import{i as I}from"./SearchMd-DNHArz2n.js";const D=({size:l=24,color:e="currentColor",...s})=>C.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},C.createElement("path",{d:"m22.7 13.5-2-2-2 2M21 12a9 9 0 1 1-1.245-4.57M12 7v5l3 2"}));D.displayName="ClockRewind";const E=({size:l=24,color:e="currentColor",...s})=>C.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},C.createElement("path",{d:"m10 15-3.075 3.114c-.43.434-.644.651-.828.666a.5.5 0 0 1-.421-.172c-.12-.14-.12-.446-.12-1.056v-1.56c0-.548-.449-.944-.99-1.024v0a3 3 0 0 1-2.534-2.533C2 12.219 2 11.96 2 11.445V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 2 5.12 2 6.8 2h7.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C19 4.28 19 5.12 19 6.8V11m0 11-2.176-1.513c-.306-.213-.46-.32-.626-.395a2.002 2.002 0 0 0-.462-.145c-.18-.033-.367-.033-.74-.033H13.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C10 18.394 10 17.834 10 16.714V14.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C11.52 11 12.08 11 13.2 11h5.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 12.52 22 13.08 22 14.2v2.714c0 .932 0 1.398-.152 1.766a2 2 0 0 1-1.083 1.082c-.367.152-.833.152-1.765.152V22Z"}));E.displayName="MessageChatSquare";function H(l){const e=T.c(24),{threads:s,activeThreadId:i,onThreadSelect:o,onClose:r,showHeader:c,showBackButton:w}=l,d=c===void 0?!0:c,n=w===void 0?!1:w,[a,k]=C.useState("");let y;e[0]!==a||e[1]!==s?(y=a.trim()?s.filter(h=>(h.title||"New chat").toLowerCase().includes(a.toLowerCase())):s,e[0]=a,e[1]=s,e[2]=y):y=e[2];const v=y;let f;e[3]!==r||e[4]!==o?(f=h=>{o(h),r&&r()},e[3]=r,e[4]=o,e[5]=f):f=e[5];const b=f;let x;e[6]!==r||e[7]!==n||e[8]!==d?(x=d&&t.jsxs("div",{className:"h-12 px-4 flex items-center justify-between border-b shrink-0",children:[t.jsx("span",{className:"text-sm font-medium",children:"Chat History"}),n&&t.jsx("button",{type:"button",onClick:r,className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Back to chat"})]}),e[6]=r,e[7]=n,e[8]=d,e[9]=x):x=e[9];let g;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=S("px-3 py-3 border-b","shrink-0"),e[10]=g):g=e[10];let N;e[11]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(I,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[11]=N):N=e[11];let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u=h=>k(h.target.value),e[12]=u):u=e[12];let m;e[13]!==a?(m=t.jsx("div",{className:g,children:t.jsxs("div",{className:"relative",children:[N,t.jsx(L,{type:"text",placeholder:"Search conversations...",value:a,onChange:u,className:"pl-9 h-9 text-sm"})]})}),e[13]=a,e[14]=m):m=e[14];let p;e[15]!==i||e[16]!==v||e[17]!==b||e[18]!==a?(p=t.jsx("div",{className:"flex-1 overflow-y-auto",children:v.length===0?t.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 py-12 px-4 text-center",children:[t.jsx("div",{className:"size-12 rounded-full bg-muted/50 flex items-center justify-center",children:t.jsx(E,{size:24,className:"text-muted-foreground"})}),t.jsxs("div",{className:"space-y-1",children:[t.jsx("p",{className:"text-sm font-medium text-foreground",children:a?"No results found":"No conversations yet"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:a?"Try a different search term":"Start a new chat to see your history here"})]})]}):t.jsx("div",{className:"flex flex-col py-2",children:v.map(h=>{const B=h.id===i;return t.jsx("button",{type:"button",onClick:()=>b(h.id),className:S("flex items-center gap-3 px-4 py-3 text-left transition-colors hover:bg-accent/50",B&&"bg-accent/50"),children:t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("p",{className:S("text-sm truncate",B?"font-medium text-foreground":"text-muted-foreground"),children:h.title||"New chat"}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:new Date(h.updated_at).toLocaleDateString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})})]})},h.id)})})}),e[15]=i,e[16]=v,e[17]=b,e[18]=a,e[19]=p):p=e[19];let j;return e[20]!==p||e[21]!==x||e[22]!==m?(j=t.jsxs(t.Fragment,{children:[x,m,p]}),e[20]=p,e[21]=x,e[22]=m,e[23]=j):j=e[23],j}function q(l){const e=T.c(9),{open:s,onOpenChange:i,threads:o,activeThreadId:r,onThreadSelect:c}=l;let w;e[0]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(_,{className:"h-12 px-4 flex flex-row items-center justify-between border-b shrink-0",children:t.jsx($,{className:"text-sm font-medium",children:"Chat History"})}),e[0]=w):w=e[0];let d;e[1]!==r||e[2]!==c||e[3]!==o?(d=t.jsxs(V,{side:"right",className:"w-[320px] sm:w-[380px] p-0 flex flex-col",children:[w,t.jsx(H,{threads:o,activeThreadId:r,onThreadSelect:c,showHeader:!1})]}),e[1]=r,e[2]=c,e[3]=o,e[4]=d):d=e[4];let n;return e[5]!==i||e[6]!==s||e[7]!==d?(n=t.jsx(z,{open:s,onOpenChange:i,children:d}),e[5]=i,e[6]=s,e[7]=d,e[8]=n):n=e[8],n}function F(l){const e=T.c(5),{threads:s,activeThreadId:i,onThreadSelect:o,onClose:r}=l;let c;return e[0]!==i||e[1]!==r||e[2]!==o||e[3]!==s?(c=t.jsx("div",{className:"flex flex-col h-full w-full bg-background",children:t.jsx(H,{threads:s,activeThreadId:i,onThreadSelect:o,onClose:r,showBackButton:!0})}),e[0]=i,e[1]=r,e[2]=o,e[3]=s,e[4]=c):c=e[4],c}function O(l){const e=T.c(22),{text:s,className:i,speed:o}=l,r=i===void 0?"":i,c=o===void 0?30:o,[w,d]=C.useState(!1),n=s.length/c*1e3,a=s.length,k=`${s.length}ch`;let y;e[0]!==n?(y=()=>{d(!1);const h=setTimeout(()=>{d(!0)},n);return()=>clearTimeout(h)},e[0]=n,e[1]=y):y=e[1];let v;e[2]!==n||e[3]!==s?(v=[s,n],e[2]=n,e[3]=s,e[4]=v):v=e[4],C.useEffect(y,v);let f;e[5]!==r?(f=S(r,"block overflow-hidden inline-flex"),e[5]=r,e[6]=f):f=e[6];const b=`${n}ms`;let x;e[7]!==k||e[8]!==a||e[9]!==b?(x={"--typewriter-duration":b,"--typewriter-steps":a,"--typewriter-max-width":k},e[7]=k,e[8]=a,e[9]=b,e[10]=x):x=e[10];const g=x,N=w&&"truncate";let u;e[11]!==N?(u=S("typewriter-text",N),e[11]=N,e[12]=u):u=e[12];let m;e[13]!==u||e[14]!==s?(m=t.jsx("span",{className:u,children:s}),e[13]=u,e[14]=s,e[15]=m):m=e[15];let p;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("style",{children:`
|
|
2
2
|
.typewriter-text {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
width: 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as A}from"./binder-CzKynqQC.js";import{b7 as I,G as O,o as t,s as e,b8 as g,al as c,b9 as l,ba as M,bb as D,bc as s,am as C,bd as m,be as S,bf as n,bg as _,bh as k,bi as w,bj as B,bk as U,bl as v}from"./index-DJtULvNg.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=k(()=>m([w(),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
|
+
import{a as A}from"./binder-DTwuH7RP.js";import{b7 as I,G as O,o as t,s as e,b8 as g,al as c,b9 as l,ba as M,bb as D,bc as s,am as C,bd as m,be as S,bf as n,bg as _,bh as k,bi as w,bj as B,bk as U,bl as v}from"./index-SRTXqQcy.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=k(()=>m([w(),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 +1 @@
|
|
|
1
|
-
import{n as P,c as I,z as Q,t as L,u as x}from"./index-
|
|
1
|
+
import{n as P,c as I,z as Q,t as L,u as x}from"./index-SRTXqQcy.js";import{u as v}from"./useMutation-Bq7GjWDP.js";import{K,a as q,u as U}from"./constants-FCOQt1Nx.js";function b(e,n,s){const t=[];if(e?.trim()){const o=e.trim(),r=s.map(i=>({field:[String(i)],operator:"contains",value:o}));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 o of n)t.push({field:[o.column],operator:"eq",value:o.value});if(t.length!==0)return t.length===1?t[0]:{operator:"and",conditions:t}}function D(e,n,s){const t=e??s,o=n??"asc";return[{field:[String(t)],direction:o}]}function O(e){if(!e||typeof e!="object")throw new Error("Invalid result");if("isError"in e&&e.isError)throw new Error("content"in e&&Array.isArray(e.content)&&e.content[0]?.type==="text"?e.content[0].text:"Unknown error");if("structuredContent"in e)return e.structuredContent;throw new Error("No structured content found")}function k(e,n,s,t){const o=I.c(14);let r,i,u;if(o[0]!==t||o[1]!==n||o[2]!==s||o[3]!==e){const a=n.toUpperCase();r=`COLLECTION_${a}_GET`,u=P,i=K.collectionItem(t,e,"",a,s??""),o[0]=t,o[1]=n,o[2]=s,o[3]=e,o[4]=r,o[5]=i,o[6]=u}else r=o[4],i=o[5],u=o[6];let c;o[7]!==t||o[8]!==r||o[9]!==s?(c=async()=>{if(!s)return{item:null};const a=await t.callTool({name:r,arguments:{id:s}});return O(a)},o[7]=t,o[8]=r,o[9]=s,o[10]=c):c=o[10];let d;o[11]!==i||o[12]!==c?(d={queryKey:i,queryFn:c,staleTime:6e4},o[11]=i,o[12]=c,o[13]=d):d=o[13];const{data:p}=u(d);return p?.item??null}const z={structuredContent:{items:[]},isError:!1};function B(e,n,s,t={}){const{searchTerm:o,filters:r,sortKey:i,sortDirection:u,searchFields:c=["title","description"],defaultSortKey:d="updated_at",pageSize:p=100}=t,a=n.toUpperCase(),m=`COLLECTION_${a}_LIST`,f=b(o,r,c),y=D(i,u,d),C={...f&&{where:f},...y&&{orderBy:y},limit:p,offset:0},g=JSON.stringify(C),E=K.collectionList(s,e,"",a,g),{data:_}=P({queryKey:E,queryFn:async()=>s?await s.callTool({name:m,arguments:C}):z,staleTime:3e4,retry:!1,select:N=>O(N??{})?.items??[]});return _}function X(e,n,s,t={}){const{searchTerm:o,filters:r,sortKey:i,sortDirection:u,searchFields:c=["title","description"],defaultSortKey:d="updated_at",pageSize:p=100}=t,a=n.toUpperCase(),m=b(o,r,c),f=D(i,u,d),y={...m&&{where:m},...f&&{orderBy:f},limit:p,offset:0},C=JSON.stringify(y);return K.collectionList(e,s,"",a,C)}function R(e,n,s){const t=I.c(34),o=Q();let r;t[0]!==n?(r=n.toUpperCase(),t[0]=n,t[1]=r):r=t[1];const i=r,u=`COLLECTION_${i}_CREATE`,c=`COLLECTION_${i}_UPDATE`,d=`COLLECTION_${i}_DELETE`;let p;t[2]!==o||t[3]!==e||t[4]!==i?(p=()=>{o.invalidateQueries({predicate:S=>{const l=S.queryKey;return l[1]===e&&l[3]==="collection"&&l[4]===i}})},t[2]=o,t[3]=e,t[4]=i,t[5]=p):p=t[5];const a=p;let m;t[6]!==s||t[7]!==u?(m=async S=>{const l=await s.callTool({name:u,arguments:{data:S}});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 f;t[9]!==a?(f=()=>{a(),L.success("Item created successfully")},t[9]=a,t[10]=f):f=t[10];let y;t[11]!==m||t[12]!==f?(y={mutationFn:m,onSuccess:f,onError:Y},t[11]=m,t[12]=f,t[13]=y):y=t[13];const C=v(y);let g;t[14]!==s||t[15]!==c?(g=async S=>{const{id:l,data:F}=S,M=await s.callTool({name:c,arguments:{id:l,data:F}});return O(M).item},t[14]=s,t[15]=c,t[16]=g):g=t[16];let E;t[17]!==a?(E=()=>{a(),L.success("Item updated successfully")},t[17]=a,t[18]=E):E=t[18];let _;t[19]!==g||t[20]!==E?(_={mutationFn:g,onSuccess:E,onError:J},t[19]=g,t[20]=E,t[21]=_):_=t[21];const N=v(_);let T;t[22]!==s||t[23]!==d?(T=async S=>{const l=await s.callTool({name:d,arguments:{id:S}});return O(l).item.id},t[22]=s,t[23]=d,t[24]=T):T=t[24];let h;t[25]!==a?(h=()=>{a(),L.success("Item deleted successfully")},t[25]=a,t[26]=h):h=t[26];let w;t[27]!==T||t[28]!==h?(w={mutationFn:T,onSuccess:h,onError:j},t[27]=T,t[28]=h,t[29]=w):w=t[29];const A=v(w);let $;return t[30]!==C||t[31]!==A||t[32]!==N?($={create:C,update:N,delete:A},t[30]=C,t[31]=A,t[32]=N,t[33]=$):$=t[33],$}function j(e){const n=e instanceof Error?e.message:String(e);L.error(`Failed to delete item: ${n}`)}function J(e){const n=e instanceof Error?e.message:String(e);L.error(`Failed to update item: ${n}`)}function Y(e){const n=e instanceof Error?e.message:String(e);L.error(`Failed to create item: ${n}`)}function Z(e){const n=I.c(4);let s;n[0]!==e?(s=e===void 0?{}:e,n[0]=e,n[1]=s):s=n[1];const t=s,{org:o}=x();let r;n[2]!==o.id?(r={connectionId:q,orgId:o.id},n[2]=o.id,n[3]=r):r=n[3];const i=U(r);return B(o.id,"CONNECTIONS",i,t)}function tt(e){const n=I.c(2),{org:s}=x();let t;n[0]!==s.id?(t={connectionId:q,orgId:s.id},n[0]=s.id,n[1]=t):t=n[1];const o=U(t);return k(s.id,"CONNECTIONS",e,o)}function et(){const e=I.c(2),{org:n}=x();let s;e[0]!==n.id?(s={connectionId:q,orgId:n.id},e[0]=n.id,e[1]=s):s=e[1];const t=U(s);return R(n.id,"CONNECTIONS",t)}export{z as E,D as a,X as b,b as c,k as d,B as e,tt as f,et as g,Z as h,R as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,c}from"./index-
|
|
1
|
+
import{r,c}from"./index-SRTXqQcy.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-C72Z8_st.js → use-create-virtual-mcp-fdVT40_L.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,u as C,b as f,O as m}from"./index-
|
|
1
|
+
import{c as p,u as C,b as f,O as m}from"./index-SRTXqQcy.js";import{a as v}from"./use-virtual-mcp-B5BaJrTw.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};
|