@decocms/mesh 2.74.0 → 2.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-C_hR5usO.js → AlertCircle-TbirTaeA.js} +1 -1
- package/dist/client/assets/{ArrowUp-DnJUZ1OS.js → ArrowUp-DVhz9MPT.js} +1 -1
- package/dist/client/assets/{Calendar-Dnf0_EY9.js → Calendar-BhleOqT-.js} +1 -1
- package/dist/client/assets/{Check-Sa4xK5Hg.js → Check-BIlnRzi6.js} +1 -1
- package/dist/client/assets/{CheckCircle-DRhauZbp.js → CheckCircle-CSYoAEm3.js} +1 -1
- package/dist/client/assets/{CheckDone01-I6GfoGdi.js → CheckDone01-gZo2F6uL.js} +1 -1
- package/dist/client/assets/{ChevronDown-DmXLJeAy.js → ChevronDown-jAfIG9nZ.js} +1 -1
- package/dist/client/assets/{ChevronRight-By4KEpZh.js → ChevronRight-CNYkXy1u.js} +1 -1
- package/dist/client/assets/{Code01-h_k8K-1e.js → Code01-DeVT5m93.js} +1 -1
- package/dist/client/assets/{Copy01-jvqvZrKj.js → Copy01-BJPi2nBZ.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-CQJNqVgu.js → DotsHorizontal-CZIcl0Ye.js} +1 -1
- package/dist/client/assets/{DotsVertical-gLXmVMYI.js → DotsVertical-CPJps54j.js} +1 -1
- package/dist/client/assets/{Download01-BKmVPJWY.js → Download01-BVA62GFI.js} +1 -1
- package/dist/client/assets/{Edit01-BT8zEtQL.js → Edit01-CLT1AKyh.js} +1 -1
- package/dist/client/assets/{File02-BNE7fmK0.js → File02-M7e4eeKQ.js} +1 -1
- package/dist/client/assets/{File06-WU23pV9H.js → File06-BUOJeS0C.js} +1 -1
- package/dist/client/assets/{FilterLines-DJEB3mgx.js → FilterLines-CDkZPaiO.js} +1 -1
- package/dist/client/assets/{Globe02-Dp5eUbS2.js → Globe02-CNtZ4Mz7.js} +1 -1
- package/dist/client/assets/{Grid01-CSAsqBFD.js → Grid01-BhCIE3UE.js} +1 -1
- package/dist/client/assets/{Home02-BUr926Eo.js → Home02-Zp_wVezk.js} +1 -1
- package/dist/client/assets/{Image01-BnbXZOf7.js → Image01-Bmljn0R6.js} +1 -1
- package/dist/client/assets/{Inbox01-XFeiQPbg.js → Inbox01-Bz-1SNbb.js} +1 -1
- package/dist/client/assets/{InfoCircle-5xWfOa8P.js → InfoCircle-DutDNmXq.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BJLPX8tt.js → LinkExternal01-npl2D9IH.js} +1 -1
- package/dist/client/assets/{List-kXpaJIIp.js → List-B95opsr5.js} +1 -1
- package/dist/client/assets/{Loading01-D8zw0cyg.js → Loading01-CudhqwtJ.js} +1 -1
- package/dist/client/assets/{Lock01-DCDiY4HG.js → Lock01-C3j5poil.js} +1 -1
- package/dist/client/assets/{Pin01-DWsvacVo.js → Pin01-DpTwe7GO.js} +1 -1
- package/dist/client/assets/{Play-Yhg_pcqU.js → Play-BxFFyAEF.js} +1 -1
- package/dist/client/assets/{Plus-BBD2SckJ.js → Plus-BVPnBK8D.js} +1 -1
- package/dist/client/assets/RefreshCcw01-Dzlid7sh.js +1 -0
- package/dist/client/assets/{SearchMd-CGuwiAQe.js → SearchMd-yRVgOeax.js} +1 -1
- package/dist/client/assets/{Settings01-D7-sGWon.js → Settings01-DGIrqZBI.js} +1 -1
- package/dist/client/assets/Settings02-CW4MK9LY.js +1 -0
- package/dist/client/assets/{Share07-C8iek9k4.js → Share07-BKNvns4q.js} +1 -1
- package/dist/client/assets/{Terminal-CyioLjuI.js → Terminal-DV_yPRWa.js} +1 -1
- package/dist/client/assets/{Tool01-DF-lT9RC.js → Tool01-C0EKLKq5.js} +1 -1
- package/dist/client/assets/{Trash01-CLqhrRia.js → Trash01-py7ft8Od.js} +1 -1
- package/dist/client/assets/{Upload01-DrtXkSgF.js → Upload01-CCoXEdI4.js} +1 -1
- package/dist/client/assets/{Users03-oV4Gx6fu.js → Users03-D2F2bran.js} +1 -1
- package/dist/client/assets/{X-CuhyLwhM.js → X-CixxHrye.js} +1 -1
- package/dist/client/assets/{XClose-BFt2trBc.js → XClose-S1Me7eeg.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-D4bn0NTx.js → agent-connections-preview-DZgc-mir.js} +1 -1
- package/dist/client/assets/agent-detail-DPLDxB9n.js +1 -0
- package/dist/client/assets/{agents-BMyluA59.js → agents-CynO2-IY.js} +1 -1
- package/dist/client/assets/{alert-dialog-BxcV0D_1.js → alert-dialog-B1nWkQHx.js} +1 -1
- package/dist/client/assets/{auth-catchall-DLJkIPQ0.js → auth-catchall-CJ49F7Eq.js} +1 -1
- package/dist/client/assets/{avatar-D3z5_V3I.js → avatar-BbH9O0kN.js} +1 -1
- package/dist/client/assets/{badge-BklHLRcK.js → badge-C898LHvV.js} +1 -1
- package/dist/client/assets/{binder-ak1AkjZY.js → binder-xcUkLvPC.js} +1 -1
- package/dist/client/assets/{breadcrumb-B_Yxwj4p.js → breadcrumb-t_Ccp20G.js} +1 -1
- package/dist/client/assets/{button-CcO5M7F7.js → button-C1iesapY.js} +1 -1
- package/dist/client/assets/{card-BNt4WjQv.js → card-DKzkS6ji.js} +1 -1
- package/dist/client/assets/{checkbox-CirsSPdM.js → checkbox-B82l7mBw.js} +1 -1
- package/dist/client/assets/{circle-alert-BcHtOytY.js → circle-alert-_5s_KbQk.js} +1 -1
- package/dist/client/assets/{collection-detail-iX-6m_0X.js → collection-detail-B-hnHfhu.js} +3 -3
- package/dist/client/assets/{collection-search-Cyt8_oQV.js → collection-search-D3a5_1zR.js} +1 -1
- package/dist/client/assets/{collection-tab-Cbay3Q2-.js → collection-tab-Y58MHDMK.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CFNweZN1.js → collection-table-wrapper-B6XWzQ-4.js} +1 -1
- package/dist/client/assets/{collection-tabs-Dh2bhvAY.js → collection-tabs-BPHWDFL4.js} +1 -1
- package/dist/client/assets/{command-8Q_FGz0v.js → command-DepzRVHX.js} +1 -1
- package/dist/client/assets/{connect-1mhMrmD4.js → connect-OP0J5SPJ.js} +1 -1
- package/dist/client/assets/{connection-card-BGd7kcn-.js → connection-card-DkCny6Ez.js} +1 -1
- package/dist/client/assets/connection-detail-CdLleACg.js +1 -0
- package/dist/client/assets/{connections-DmGFiu1f.js → connections-BZUVvBGs.js} +1 -1
- package/dist/client/assets/{constants-DuSOM18S.js → constants-BEco_-y7.js} +1 -1
- package/dist/client/assets/constants-gwxE8_b0.js +1 -0
- package/dist/client/assets/{create-organization-dialog-j_P7xuhv.js → create-organization-dialog-58b_GUv7.js} +1 -1
- package/dist/client/assets/{create-project-dialog-C-mSn_Ux.js → create-project-dialog-C5GAJOOY.js} +1 -1
- package/dist/client/assets/{dialog-B_iTVR3h.js → dialog-CpkgwzHW.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BTPpCOPE.js → dropdown-menu-D6YYwFq7.js} +1 -1
- package/dist/client/assets/dynamic-plugin-layout-BMgNBEQS.js +1 -0
- package/dist/client/assets/{empty-state-Ct1fZFlf.js → empty-state-BQPtoYZe.js} +1 -1
- package/dist/client/assets/{empty-state--JD6ZxUc.js → empty-state-CH3e4Xzf.js} +1 -1
- package/dist/client/assets/{env-vars-editor-B4EebJEK.js → env-vars-editor-Vpi1vdW2.js} +1 -1
- package/dist/client/assets/{error-boundary-DlgelpJG.js → error-boundary-BGFWaL1J.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BM37afPK.js → extract-connection-data-CDmQ7rLP.js} +1 -1
- package/dist/client/assets/file-browser-DUDclrRh.js +2 -0
- package/dist/client/assets/{form-CSsv2IBt.js → form-NA0-x5iN.js} +1 -1
- package/dist/client/assets/grid-view-DbtTgaoS.js +1 -0
- package/dist/client/assets/{home-D16zlSya.js → home-DtmWz3MA.js} +1 -1
- package/dist/client/assets/{index-fr6MaGoE.js → index-43_iGxlN.js} +1 -1
- package/dist/client/assets/{index--g69ISoA.css → index-BEdPWc-P.css} +1 -1
- package/dist/client/assets/{index-DZ7G-bvr.js → index-ByJoFAq_.js} +1 -1
- package/dist/client/assets/{index-CZtqakWK.js → index-C9Dn0opW.js} +1 -1
- package/dist/client/assets/{index-CHcJPAjT.js → index-DlY6KFzI.js} +1 -1
- package/dist/client/assets/{index-DJCm-wAr.js → index-Dv4saiJc.js} +1 -1
- package/dist/client/assets/{index-a2nqbblp.js → index-GRocoNYa.js} +1 -1
- package/dist/client/assets/{index-Bn2rDd42.js → index-HxeE9C0A.js} +29 -29
- package/dist/client/assets/{index-Bo7hWTur.js → index-Kq8ytqk9.js} +1 -1
- package/dist/client/assets/{index-BHu7Lc_d.js → index-wUnd_o-U.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-VnhrjjoH.js → infiniteQueryObserver-CSOdbqFL.js} +1 -1
- package/dist/client/assets/{input-DBvMwxwE.js → input-DBGu1Yhi.js} +1 -1
- package/dist/client/assets/{integration-icon-C8seGsuO.js → integration-icon-CmJggqPx.js} +1 -1
- package/dist/client/assets/{label-BjQxQJkg.js → label-11d5Pe_w.js} +1 -1
- package/dist/client/assets/{layout-ZTsfxACA.js → layout-BQSZy0Ao.js} +1 -1
- package/dist/client/assets/{localstorage-keys-BhunmwZg.js → localstorage-keys-BxVB7BFB.js} +1 -1
- package/dist/client/assets/{login-H0BwFxqL.js → login-CMpn2tdR.js} +1 -1
- package/dist/client/assets/{mcp-oauth-ZUujauBG.js → mcp-oauth-JrpxCLx4.js} +1 -1
- package/dist/client/assets/{mcp-server-card-KgRAONYw.js → mcp-server-card-8DET7nVd.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-Ce9SGjoZ.js → mcp-server-detail-CMrzxsYv.js} +2 -2
- package/dist/client/assets/{members-C925BdC6.js → members-CUWgr5ku.js} +1 -1
- package/dist/client/assets/{monaco-editor-D7Ghoc8y.js → monaco-editor-DvJ6AQm-.js} +1 -1
- package/dist/client/assets/{monitoring-DI8QAuDx.js → monitoring-Db1K0NxK.js} +1 -1
- package/dist/client/assets/{oauth-callback-DqKFxIqr.js → oauth-callback-Bh-LWKIz.js} +1 -1
- package/dist/client/assets/page-79TZOOqo.js +1 -0
- package/dist/client/assets/{page-DCfXF14g.js → page-Bx3m0Nlj.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-BYB8Yhjv.js → plugin-empty-state-34Wj3C93.js} +1 -1
- package/dist/client/assets/{plugin-header-CLRCQ1W3.js → plugin-header-KrvIXXbF.js} +1 -1
- package/dist/client/assets/{popover-BkKSdvGf.js → popover-BbAo_V3q.js} +1 -1
- package/dist/client/assets/{project-layout-DzX_Lv0I.js → project-layout-QE2hcM6x.js} +1 -1
- package/dist/client/assets/{project-settings-lapjGGi3.js → project-settings-2bxHgR8P.js} +1 -1
- package/dist/client/assets/{projects-list-DZgOrcLS.js → projects-list-CSrfAb2G.js} +1 -1
- package/dist/client/assets/{registry-utils-BsLp7zXK.js → registry-utils-CLfG2KJO.js} +1 -1
- package/dist/client/assets/{resizable-CdUSPFqv.js → resizable-D5fgPQWp.js} +1 -1
- package/dist/client/assets/{select-J2aavKNi.js → select-CnIfeZ9k.js} +1 -1
- package/dist/client/assets/shell-layout-DIuzNmm5.js +12 -0
- package/dist/client/assets/{spinner-Bn-tqgsf.js → spinner-BbdUl9_5.js} +1 -1
- package/dist/client/assets/{store-invite-C8stGp_k.js → store-invite-eQ6O_LcC.js} +1 -1
- package/dist/client/assets/{switch-CG0LWjwI.js → switch-7wa9WQCt.js} +1 -1
- package/dist/client/assets/{table-BNxQWMxG.js → table-F_F9uG31.js} +1 -1
- package/dist/client/assets/{tasks-C_RAoHGr.js → tasks-Bo849zPQ.js} +1 -1
- package/dist/client/assets/{textarea-CKlKOzV4.js → textarea-CX1AXmSo.js} +1 -1
- package/dist/client/assets/{tools-list-D0G5KWHg.js → tools-list-CeBZ5K9_.js} +1 -1
- package/dist/client/assets/topbar-portal-DTnSGvrH.js +1 -0
- package/dist/client/assets/{typewriter-title-BqfnndCW.js → typewriter-title-CydscG0b.js} +1 -1
- package/dist/client/assets/{use-binding-Dgjl_Htk.js → use-binding-BIvDtNoa.js} +1 -1
- package/dist/client/assets/{use-connection-CVk8Bzpz.js → use-connection-DWpxH8iy.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BpXLuk-p.js → use-create-virtual-mcp-CMegJpH_.js} +1 -1
- package/dist/client/assets/{use-deco-chat-open-CfZI9mqc.js → use-deco-chat-open-DeBMXnMx.js} +7 -7
- package/dist/client/assets/{use-install-from-registry-5UUqPBO7.js → use-install-from-registry-CNdLBCwL.js} +1 -1
- package/dist/client/assets/{use-list-state-D_1V56-b.js → use-list-state-CqdwrHCA.js} +1 -1
- package/dist/client/assets/{use-llm-Ca3pgrIB.js → use-llm-B2BVGott.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Cn7tm6ug.js → use-mcp-prompts-CUow6VVK.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Ddi2i1Nb.js → use-mcp-tools-DO_-llbI.js} +1 -1
- package/dist/client/assets/{use-mobile-p03CcGW0.js → use-mobile-CqANtQ4e.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DHZKDAPt.js → use-organization-settings-ANLw4ex1.js} +1 -1
- package/dist/client/assets/{use-project-D-mK4K9b.js → use-project-C1G7xlcy.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-C83o4Rih.js → use-virtual-mcp-DaI2d98r.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CL3o6Gdm.js +1 -0
- package/dist/client/assets/{useMutation-CnTeRHmv.js → useMutation-M3-wug2Q.js} +1 -1
- package/dist/client/assets/useQuery-jRtVXI31.js +1 -0
- package/dist/client/assets/utils-D1Qd9-I_.js +1 -0
- package/dist/client/assets/{view-mode-toggle-CJkT6m07.js → view-mode-toggle-JVmuLwXe.js} +1 -1
- package/dist/client/assets/workflow-BKKAfuJP.js +1 -0
- package/dist/client/index.html +2 -2
- package/package.json +1 -1
- package/dist/client/assets/agent-detail-D8YR1Y7H.js +0 -1
- package/dist/client/assets/connection-detail-dEdcHJ4u.js +0 -1
- package/dist/client/assets/constants-QC26G_cT.js +0 -1
- package/dist/client/assets/dynamic-plugin-layout-BsqDni3U.js +0 -1
- package/dist/client/assets/file-browser-DQeqPq9E.js +0 -2
- package/dist/client/assets/grid-view-DBKftgaD.js +0 -1
- package/dist/client/assets/page-B2cjdb1f.js +0 -1
- package/dist/client/assets/shell-layout-DOBmQ9ah.js +0 -12
- package/dist/client/assets/useInfiniteQuery-DDUEUpOZ.js +0 -1
- package/dist/client/assets/useQuery-Ct96KcZp.js +0 -1
- package/dist/client/assets/utils-Ckc2UwOp.js +0 -1
- package/dist/client/assets/workflow-2rDY9uo2.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as v}from"./binder-ak1AkjZY.js";import{b9 as T,Q as O,o as t,s as e,ba as p,aj as l,bb as c,bc as R,bd as U,be as i,ak as x,bf as u,bg as g,bh as n,bi as b,bj as L,bk as B,bl as C}from"./index-Bn2rDd42.js";const W=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=T("assistant",W),G=[...F],w=L(()=>u([B(),e(),i(),g(),p(e(),w),l(w)])),f=p(e(),p(e(),w)).optional().describe("Additional provider-specific options. Outer record keyed by provider name, inner by option key"),E=t({type:n("text"),text:e().describe("The text content"),providerOptions:f}),q=t({type:n("text"),text:e().describe("The text content"),providerMetadata:c().optional().describe("Additional provider-specific metadata")}),j=e().describe("File data as URL string"),k=t({type:n("file"),filename:e().optional().describe("Optional filename of the file"),data:j,mediaType:e().describe("IANA media type of the file (e.g., image/png, audio/mp3)"),providerOptions:f}),$=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:f}),K=t({type:n("reasoning"),text:e().describe("The reasoning text"),providerMetadata:c().optional().describe("Additional provider-specific metadata")}),V=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:g().optional().describe("Whether the tool call will be executed by the provider"),providerOptions:f}),z=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:g().optional().describe("Whether the tool call will be executed by the provider"),providerMetadata:c().optional().describe("Additional provider-specific metadata")}),H=u([t({type:n("text"),value:e()}),t({type:n("json"),value:w}),t({type:n("error-text"),value:e()}),t({type:n("error-json"),value:w}),t({type:n("content"),value:l(u([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")})]))})]),A=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:H.describe("Result of the tool call"),result:b().describe("Unknown result of the tool call"),providerOptions:f}),X=t({type:n("tool-result"),toolCallId:e().describe("ID of the tool call that this result is associated with"),toolName:e().describe("Name of the tool that generated this result"),result:c().describe("Result of the tool call (JSON-serializable)"),isError:g().optional().describe("Whether the result is an error or error message"),providerExecuted:g().optional().describe("Whether the tool result was generated by the provider"),providerMetadata:c().optional().describe("Additional provider-specific metadata")}),Q=u([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:c().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:c().optional().describe("Additional provider-specific metadata")})]),Y=t({role:n("system"),content:e().describe("System message content"),providerOptions:f}),Z=t({role:n("user"),content:l(u([E,k])).describe("User message content parts (text or file)"),providerOptions:f}),ee=t({role:n("assistant"),content:l(u([E,k,J,V,A])).describe("Assistant message content parts (text, file, reasoning, tool-call, or tool-result)"),providerOptions:f}),te=t({role:n("tool"),content:l(A).describe("Tool message content (tool results)"),providerOptions:f}),oe=u([Y,Z,ee,te]),ae=l(oe).describe("A list of messages forming the prompt"),ie=t({prompt:ae.describe("A language model prompt is a standardized prompt type (array of messages with roles: system, user, assistant, tool)"),maxOutputTokens:i().optional().describe("Maximum number of tokens to generate"),temperature:i().optional().describe("Temperature setting. The range depends on the provider and model"),topP:i().optional().describe("Nucleus sampling parameter"),topK:i().optional().describe("Only sample from the top K options for each subsequent token. Used to remove long tail low probability responses"),presencePenalty:i().optional().describe("Presence penalty setting. It affects the likelihood of the model to repeat information that is already in the prompt"),frequencyPenalty:i().optional().describe("Frequency penalty setting. It affects the likelihood of the model to repeatedly use the same words or phrases"),seed:i().optional().describe("The seed (integer) to use for random sampling. If set and supported by the model, calls will generate deterministic results"),stopSequences:l(e()).optional().describe("Stop sequences. If set, the model will stop generating text when one of the stop sequences is generated"),responseFormat:u([t({type:n("text")}),t({type:n("json"),schema:c().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:l(c()).optional().describe("The tools that are available for the model"),toolChoice:c().optional().describe("Specifies how the tool should be selected. Defaults to 'auto'"),includeRawChunks:g().optional().describe("Include raw chunks in the stream. Only applicable for streaming calls"),abortSignal:c().optional().describe("Abort signal for cancelling the operation"),providerOptions:c().optional().describe("Additional provider-specific options")}),ne=t({content:l(u([q,$,K,z,X,Q])).describe("Ordered content that the model has generated (text, tool-calls, reasoning, files, sources)"),finishReason:x(["stop","length","content-filter","tool-calls","error","other","unknown"]).describe("Reason why generation stopped"),usage:U({inputTokens:i().optional(),outputTokens:i().optional(),totalTokens:i().optional(),reasoningTokens:i().optional()}).describe("Usage information for the language model call"),providerMetadata:c().optional().describe("Additional provider-specific metadata"),request:t({body:c().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:R().optional().describe("Timestamp for the start of the generated response"),modelId:e().optional().describe("The ID of the response model that was used"),headers:p(e(),e()).optional().describe("Response headers"),body:c().optional().describe("Response HTTP body")}).optional().describe("Optional response information for telemetry and debugging"),warnings:l(c()).describe("Warnings for the call, e.g. unsupported settings")});t({stream:c().describe("ReadableStream of LanguageModelV2StreamPart"),request:t({body:c().optional().describe("Request HTTP body sent to the provider API")}).optional().describe("Optional request information for telemetry and debugging"),response:t({headers:p(e(),e()).optional().describe("Response headers")}).optional().describe("Optional response data")});const se=t({supportedUrls:p(e(),l(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:l(e()),limits:t({contextWindow:i(),maxOutputTokens:i()}).nullable(),costs:t({input:i(),output:i()}).nullable(),provider:x(["openai","anthropic","google","x-ai","deepseek","openai-compatible","openrouter"]).nullable()});const N=t({modelId:e().describe("The ID of the model"),callOptions:ie}),re=O.extend({logo:e().nullable(),description:e().nullable(),capabilities:l(e()),limits:t({contextWindow:i(),maxOutputTokens:i()}).nullable(),costs:t({input:i(),output:i()}).nullable(),provider:x(["openai","anthropic","google","xai","deepseek","openai-compatible","openrouter"]).nullable()}),le=T("llm",re,{readOnly:!0}),ce=[{name:"LLM_METADATA",inputSchema:t({modelId:e().describe("The ID of the model")}),outputSchema:se},{name:"LLM_DO_STREAM",inputSchema:N,streamable:!0},{name:"LLM_DO_GENERATE",inputSchema:N,outputSchema:ne},...le],de=t({scopes:l(e()).describe("List of scopes available"),stateSchema:p(e(),b()).describe("JSON Schema (draft-07) defining the state structure")}),pe=[{name:"MCP_CONFIGURATION",inputSchema:t({}),outputSchema:de}],ue=t({toolName:e().describe("Name of the tool to invoke on that connection"),transformCode:e().optional().describe("Pure TypeScript function for data transformation of the tool call result. Must be a TypeScript file that declares the Output interface and exports a default function: `interface Output { ... } export default async function(input): Output { ... }`\n The input will match with the tool call outputSchema. If transformCode is not provided, the tool call result will be used as the step output. \n Providing an transformCode is recommended because it both allows you to transform the data and validate it against a JSON Schema - tools are ephemeral and may return unexpected data.")}),me=t({code:e().describe(`Pure TypeScript function for data transformation. Useful to merge data from multiple steps and transform it. Must be a TypeScript file that declares the Output interface and exports a default function: \`interface Output { ... } export default async function(input): Output { ... }\`
|
|
1
|
+
import{a as v}from"./binder-xcUkLvPC.js";import{b8 as T,Q as O,o as t,s as e,b9 as p,aj as l,ba as c,bb as R,bc as U,bd as i,ak as x,be as u,bf as g,bg as n,bh as b,bi as L,bj as B,bk as C}from"./index-HxeE9C0A.js";const W=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=T("assistant",W),G=[...F],w=L(()=>u([B(),e(),i(),g(),p(e(),w),l(w)])),f=p(e(),p(e(),w)).optional().describe("Additional provider-specific options. Outer record keyed by provider name, inner by option key"),E=t({type:n("text"),text:e().describe("The text content"),providerOptions:f}),q=t({type:n("text"),text:e().describe("The text content"),providerMetadata:c().optional().describe("Additional provider-specific metadata")}),j=e().describe("File data as URL string"),k=t({type:n("file"),filename:e().optional().describe("Optional filename of the file"),data:j,mediaType:e().describe("IANA media type of the file (e.g., image/png, audio/mp3)"),providerOptions:f}),$=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:f}),K=t({type:n("reasoning"),text:e().describe("The reasoning text"),providerMetadata:c().optional().describe("Additional provider-specific metadata")}),V=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:g().optional().describe("Whether the tool call will be executed by the provider"),providerOptions:f}),z=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:g().optional().describe("Whether the tool call will be executed by the provider"),providerMetadata:c().optional().describe("Additional provider-specific metadata")}),H=u([t({type:n("text"),value:e()}),t({type:n("json"),value:w}),t({type:n("error-text"),value:e()}),t({type:n("error-json"),value:w}),t({type:n("content"),value:l(u([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")})]))})]),A=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:H.describe("Result of the tool call"),result:b().describe("Unknown result of the tool call"),providerOptions:f}),X=t({type:n("tool-result"),toolCallId:e().describe("ID of the tool call that this result is associated with"),toolName:e().describe("Name of the tool that generated this result"),result:c().describe("Result of the tool call (JSON-serializable)"),isError:g().optional().describe("Whether the result is an error or error message"),providerExecuted:g().optional().describe("Whether the tool result was generated by the provider"),providerMetadata:c().optional().describe("Additional provider-specific metadata")}),Q=u([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:c().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:c().optional().describe("Additional provider-specific metadata")})]),Y=t({role:n("system"),content:e().describe("System message content"),providerOptions:f}),Z=t({role:n("user"),content:l(u([E,k])).describe("User message content parts (text or file)"),providerOptions:f}),ee=t({role:n("assistant"),content:l(u([E,k,J,V,A])).describe("Assistant message content parts (text, file, reasoning, tool-call, or tool-result)"),providerOptions:f}),te=t({role:n("tool"),content:l(A).describe("Tool message content (tool results)"),providerOptions:f}),oe=u([Y,Z,ee,te]),ae=l(oe).describe("A list of messages forming the prompt"),ie=t({prompt:ae.describe("A language model prompt is a standardized prompt type (array of messages with roles: system, user, assistant, tool)"),maxOutputTokens:i().optional().describe("Maximum number of tokens to generate"),temperature:i().optional().describe("Temperature setting. The range depends on the provider and model"),topP:i().optional().describe("Nucleus sampling parameter"),topK:i().optional().describe("Only sample from the top K options for each subsequent token. Used to remove long tail low probability responses"),presencePenalty:i().optional().describe("Presence penalty setting. It affects the likelihood of the model to repeat information that is already in the prompt"),frequencyPenalty:i().optional().describe("Frequency penalty setting. It affects the likelihood of the model to repeatedly use the same words or phrases"),seed:i().optional().describe("The seed (integer) to use for random sampling. If set and supported by the model, calls will generate deterministic results"),stopSequences:l(e()).optional().describe("Stop sequences. If set, the model will stop generating text when one of the stop sequences is generated"),responseFormat:u([t({type:n("text")}),t({type:n("json"),schema:c().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:l(c()).optional().describe("The tools that are available for the model"),toolChoice:c().optional().describe("Specifies how the tool should be selected. Defaults to 'auto'"),includeRawChunks:g().optional().describe("Include raw chunks in the stream. Only applicable for streaming calls"),abortSignal:c().optional().describe("Abort signal for cancelling the operation"),providerOptions:c().optional().describe("Additional provider-specific options")}),ne=t({content:l(u([q,$,K,z,X,Q])).describe("Ordered content that the model has generated (text, tool-calls, reasoning, files, sources)"),finishReason:x(["stop","length","content-filter","tool-calls","error","other","unknown"]).describe("Reason why generation stopped"),usage:U({inputTokens:i().optional(),outputTokens:i().optional(),totalTokens:i().optional(),reasoningTokens:i().optional()}).describe("Usage information for the language model call"),providerMetadata:c().optional().describe("Additional provider-specific metadata"),request:t({body:c().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:R().optional().describe("Timestamp for the start of the generated response"),modelId:e().optional().describe("The ID of the response model that was used"),headers:p(e(),e()).optional().describe("Response headers"),body:c().optional().describe("Response HTTP body")}).optional().describe("Optional response information for telemetry and debugging"),warnings:l(c()).describe("Warnings for the call, e.g. unsupported settings")});t({stream:c().describe("ReadableStream of LanguageModelV2StreamPart"),request:t({body:c().optional().describe("Request HTTP body sent to the provider API")}).optional().describe("Optional request information for telemetry and debugging"),response:t({headers:p(e(),e()).optional().describe("Response headers")}).optional().describe("Optional response data")});const se=t({supportedUrls:p(e(),l(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:l(e()),limits:t({contextWindow:i(),maxOutputTokens:i()}).nullable(),costs:t({input:i(),output:i()}).nullable(),provider:x(["openai","anthropic","google","x-ai","deepseek","openai-compatible","openrouter"]).nullable()});const N=t({modelId:e().describe("The ID of the model"),callOptions:ie}),re=O.extend({logo:e().nullable(),description:e().nullable(),capabilities:l(e()),limits:t({contextWindow:i(),maxOutputTokens:i()}).nullable(),costs:t({input:i(),output:i()}).nullable(),provider:x(["openai","anthropic","google","xai","deepseek","openai-compatible","openrouter"]).nullable()}),le=T("llm",re,{readOnly:!0}),ce=[{name:"LLM_METADATA",inputSchema:t({modelId:e().describe("The ID of the model")}),outputSchema:se},{name:"LLM_DO_STREAM",inputSchema:N,streamable:!0},{name:"LLM_DO_GENERATE",inputSchema:N,outputSchema:ne},...le],de=t({scopes:l(e()).describe("List of scopes available"),stateSchema:p(e(),b()).describe("JSON Schema (draft-07) defining the state structure")}),pe=[{name:"MCP_CONFIGURATION",inputSchema:t({}),outputSchema:de}],ue=t({toolName:e().describe("Name of the tool to invoke on that connection"),transformCode:e().optional().describe("Pure TypeScript function for data transformation of the tool call result. Must be a TypeScript file that declares the Output interface and exports a default function: `interface Output { ... } export default async function(input): Output { ... }`\n The input will match with the tool call outputSchema. If transformCode is not provided, the tool call result will be used as the step output. \n Providing an transformCode is recommended because it both allows you to transform the data and validate it against a JSON Schema - tools are ephemeral and may return unexpected data.")}),me=t({code:e().describe(`Pure TypeScript function for data transformation. Useful to merge data from multiple steps and transform it. Must be a TypeScript file that declares the Output interface and exports a default function: \`interface Output { ... } export default async function(input): Output { ... }\`
|
|
2
2
|
The input is the resolved value of the references in the input field. Example:
|
|
3
3
|
{
|
|
4
4
|
"input": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as P,c as w,z as Q,t as h,u as v}from"./index-
|
|
1
|
+
import{y as P,c as w,z as Q,t as h,u as v}from"./index-HxeE9C0A.js";import{u as F}from"./useMutation-M3-wug2Q.js";import{K as x,a as q,u as U}from"./constants-BEco_-y7.js";function b(o,n,s){const e=[];if(o?.trim()){const t=o.trim(),r=s.map(a=>({field:[String(a)],operator:"contains",value:t}));r.length===1&&r[0]?e.push(r[0]):r.length>1&&e.push({operator:"or",conditions:r})}if(n&&n.length>0)for(const t of n)e.push({field:[t.column],operator:"eq",value:t.value});if(e.length!==0)return e.length===1?e[0]:{operator:"and",conditions:e}}function D(o,n,s){const e=o??s,t=n??"asc";return[{field:[String(e)],direction:t}]}function I(o){if(!o||typeof o!="object")throw new Error("Invalid result");if("isError"in o&&o.isError)throw new Error("content"in o&&Array.isArray(o.content)&&o.content[0]?.type==="text"?o.content[0].text:"Unknown error");if("structuredContent"in o)return o.structuredContent;throw new Error("No structured content found")}function k(o,n,s,e){const t=w.c(13);let r;t[0]!==n?(r=n.toUpperCase(),t[0]=n,t[1]=r):r=t[1];const i=`COLLECTION_${r}_GET`;let c;t[2]!==e||t[3]!==i||t[4]!==s?(c=x.mcpToolCall(e,i,s??""),t[2]=e,t[3]=i,t[4]=s,t[5]=c):c=t[5];let l;t[6]!==e||t[7]!==i||t[8]!==s?(l=async()=>{if(!s)return{item:null};const p=await e.callTool({name:i,arguments:{id:s}});return I(p)},t[6]=e,t[7]=i,t[8]=s,t[9]=l):l=t[9];let d;t[10]!==c||t[11]!==l?(d={queryKey:c,queryFn:l,staleTime:6e4},t[10]=c,t[11]=l,t[12]=d):d=t[12];const{data:f}=P(d);return f?.item??null}const z={structuredContent:{items:[]},isError:!1};function B(o,n,s,e={}){const{searchTerm:t,filters:r,sortKey:a,sortDirection:i,searchFields:c=["title","description"],defaultSortKey:l="updated_at",pageSize:d=100}=e,p=`COLLECTION_${n.toUpperCase()}_LIST`,m=b(t,r,c),y=D(a,i,l),E={...m&&{where:m},...y&&{orderBy:y},limit:d,offset:0},C=JSON.stringify(E),g=x.mcpToolCall(s,p,C),{data:N}=P({queryKey:g,queryFn:async()=>s?await s.callTool({name:p,arguments:E}):z,staleTime:3e4,retry:!1,select:S=>I(S??{})?.items??[]});return N}function X(o,n,s,e={}){const{searchTerm:t,filters:r,sortKey:a,sortDirection:i,searchFields:c=["title","description"],defaultSortKey:l="updated_at",pageSize:d=100}=e,p=`COLLECTION_${n.toUpperCase()}_LIST`,m=b(t,r,c),y=D(a,i,l),E={...m&&{where:m},...y&&{orderBy:y},limit:d,offset:0},C=JSON.stringify(E);return x.mcpToolCall(o,p,C)}function R(o,n,s){const e=w.c(33),t=Q();let r;e[0]!==n?(r=n.toUpperCase(),e[0]=n,e[1]=r):r=e[1];const a=r,i=`COLLECTION_${a}_CREATE`,c=`COLLECTION_${a}_UPDATE`,l=`COLLECTION_${a}_DELETE`;let d;e[2]!==t||e[3]!==a?(d=()=>{t.invalidateQueries({predicate:_=>{const u=_.queryKey;if(u[0]!=="mcp"||u[1]!=="client"||u[3]!=="tool-call")return!1;const L=u[4];return typeof L=="string"&&L.startsWith(`COLLECTION_${a}_`)}})},e[2]=t,e[3]=a,e[4]=d):d=e[4];const f=d;let p;e[5]!==s||e[6]!==i?(p=async _=>{const u=await s.callTool({name:i,arguments:{data:_}});if(u.isError)throw new Error(Array.isArray(u.content)?u.content[0]?.text:String(u.content));return I(u).item},e[5]=s,e[6]=i,e[7]=p):p=e[7];let m;e[8]!==f?(m=()=>{f(),h.success("Item created successfully")},e[8]=f,e[9]=m):m=e[9];let y;e[10]!==p||e[11]!==m?(y={mutationFn:p,onSuccess:m,onError:W},e[10]=p,e[11]=m,e[12]=y):y=e[12];const E=F(y);let C;e[13]!==s||e[14]!==c?(C=async _=>{const{id:u,data:L}=_,M=await s.callTool({name:c,arguments:{id:u,data:L}});return I(M).item},e[13]=s,e[14]=c,e[15]=C):C=e[15];let g;e[16]!==f?(g=()=>{f(),h.success("Item updated successfully")},e[16]=f,e[17]=g):g=e[17];let N;e[18]!==C||e[19]!==g?(N={mutationFn:C,onSuccess:g,onError:J},e[18]=C,e[19]=g,e[20]=N):N=e[20];const S=F(N);let T;e[21]!==s||e[22]!==l?(T=async _=>{const u=await s.callTool({name:l,arguments:{id:_}});return I(u).item.id},e[21]=s,e[22]=l,e[23]=T):T=e[23];let O;e[24]!==f?(O=()=>{f(),h.success("Item deleted successfully")},e[24]=f,e[25]=O):O=e[25];let K;e[26]!==T||e[27]!==O?(K={mutationFn:T,onSuccess:O,onError:j},e[26]=T,e[27]=O,e[28]=K):K=e[28];const A=F(K);let $;return e[29]!==E||e[30]!==A||e[31]!==S?($={create:E,update:S,delete:A},e[29]=E,e[30]=A,e[31]=S,e[32]=$):$=e[32],$}function j(o){const n=o instanceof Error?o.message:String(o);h.error(`Failed to delete item: ${n}`)}function J(o){const n=o instanceof Error?o.message:String(o);h.error(`Failed to update item: ${n}`)}function W(o){const n=o instanceof Error?o.message:String(o);h.error(`Failed to create item: ${n}`)}function Z(o){const n=w.c(4);let s;n[0]!==o?(s=o===void 0?{}:o,n[0]=o,n[1]=s):s=n[1];const e=s,{org:t}=v();let r;n[2]!==t.id?(r={connectionId:q,orgId:t.id},n[2]=t.id,n[3]=r):r=n[3];const a=U(r);return B(t.id,"CONNECTIONS",a,e)}function ee(o){const n=w.c(2),{org:s}=v();let e;n[0]!==s.id?(e={connectionId:q,orgId:s.id},n[0]=s.id,n[1]=e):e=n[1];const t=U(e);return k(s.id,"CONNECTIONS",o,t)}function te(){const o=w.c(2),{org:n}=v();let s;o[0]!==n.id?(s={connectionId:q,orgId:n.id},o[0]=n.id,o[1]=s):s=o[1];const e=U(s);return R(n.id,"CONNECTIONS",e)}export{z as E,D as a,X as b,b as c,k as d,B as e,ee as f,te as g,Z as h,R as u};
|
package/dist/client/assets/{use-create-virtual-mcp-BpXLuk-p.js → use-create-virtual-mcp-CMegJpH_.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,u as m,m as C,O as f}from"./index-
|
|
1
|
+
import{c as p,u as m,m as C,O as f}from"./index-HxeE9C0A.js";import{a as v}from"./use-virtual-mcp-DaI2d98r.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}=m(),c=C(),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:f,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};
|