@decocms/mesh 2.31.1 → 2.32.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-CNlbeaNO.js → AlertCircle-BC5XMJnh.js} +1 -1
- package/dist/client/assets/{ArrowLeft-H58XLYPH.js → ArrowLeft-YLXxN85l.js} +1 -1
- package/dist/client/assets/{ArrowUp-C39Etgym.js → ArrowUp-B5D5I-e4.js} +1 -1
- package/dist/client/assets/{Check-qyrf_w7u.js → Check-BJ8aD04h.js} +1 -1
- package/dist/client/assets/{ChevronDown-D4EQGXFb.js → ChevronDown-Dwu65bm7.js} +1 -1
- package/dist/client/assets/{Code01-B-sXoUAx.js → Code01-D5im63O6.js} +1 -1
- package/dist/client/assets/{Copy01-EV4WWtW9.js → Copy01-CzCGcpFB.js} +1 -1
- package/dist/client/assets/CpuChip02-DL5MAhty.js +1 -0
- package/dist/client/assets/{DotsHorizontal-BLQeuj18.js → DotsHorizontal-B8KoSTcW.js} +1 -1
- package/dist/client/assets/{DotsVertical-BIgdSuWw.js → DotsVertical-Q4BfP_OZ.js} +1 -1
- package/dist/client/assets/{Download01-CfIslxub.js → Download01-DdEO2Y20.js} +1 -1
- package/dist/client/assets/{Edit01-YiEPkU0g.js → Edit01-BeUmNzHw.js} +1 -1
- package/dist/client/assets/{File06-BOUeu2_s.js → File06-Dbh0s9nF.js} +1 -1
- package/dist/client/assets/{FilterLines-C9-FwG4M.js → FilterLines-DOm0e2np.js} +1 -1
- package/dist/client/assets/{FlipBackward-CXUecZqc.js → FlipBackward-B0YDj6U2.js} +1 -1
- package/dist/client/assets/{GitBranch01-C7TElKX3.js → GitBranch01-7JSGEKWK.js} +1 -1
- package/dist/client/assets/{Grid01-DS_Rpsaf.js → Grid01-CxjwpfJx.js} +1 -1
- package/dist/client/assets/{Home02-kWTen2lJ.js → Home02-Mi1g3zml.js} +1 -1
- package/dist/client/assets/{Image01-C1Gj64FS.js → Image01-k29lIkxT.js} +1 -1
- package/dist/client/assets/{Inbox01-BWl9K4GL.js → Inbox01-C3SZugQ0.js} +1 -1
- package/dist/client/assets/{InfoCircle-fjnTRxT_.js → InfoCircle-BpN5-782.js} +1 -1
- package/dist/client/assets/{Key01-BH9DhJ8d.js → Key01-CfBi5Z2i.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Cu4-40eG.js → LinkExternal01-D9T5dDpq.js} +1 -1
- package/dist/client/assets/{List-CMJ7wwXL.js → List-BH4t2L38.js} +1 -1
- package/dist/client/assets/{Loading01-DlgJ1_45.js → Loading01-Dk8ucN4u.js} +1 -1
- package/dist/client/assets/{Lock01-Bc4skRDc.js → Lock01-C_cIWOtW.js} +1 -1
- package/dist/client/assets/{Play-By6elSLp.js → Play-CQprIR-2.js} +1 -1
- package/dist/client/assets/{Plus-DtbgAjWY.js → Plus-DsxxHM8H.js} +1 -1
- package/dist/client/assets/{SearchMd--bzHJ7AO.js → SearchMd-COziLDJJ.js} +1 -1
- package/dist/client/assets/{Terminal-BVYBaOBz.js → Terminal-onO5xBIt.js} +1 -1
- package/dist/client/assets/{Trash01-DjLKhTdL.js → Trash01-Dz97bbYc.js} +1 -1
- package/dist/client/assets/{Upload01-Deo1Gmh-.js → Upload01-BX6LCIgm.js} +1 -1
- package/dist/client/assets/{X-C24Yv1HS.js → X-IKzqhWHn.js} +1 -1
- package/dist/client/assets/{XClose-CnH5yMqw.js → XClose-v1hlIgz0.js} +1 -1
- package/dist/client/assets/agent-detail-DJ7sCPlX.js +1 -0
- package/dist/client/assets/agents-B2w5ERo_.js +1 -0
- package/dist/client/assets/{alert-dialog-D9F5tffK.js → alert-dialog-DrQP8AK1.js} +2 -2
- package/dist/client/assets/{auth-catchall-CN5idKvS.js → auth-catchall-CMrAfdfW.js} +1 -1
- package/dist/client/assets/{avatar-BZZ8iTNu.js → avatar-BJReLfGX.js} +1 -1
- package/dist/client/assets/{badge-Bv6QbUSE.js → badge-DbdCj_uM.js} +1 -1
- package/dist/client/assets/{binder-Co4G2PF6.js → binder-D69FJEqF.js} +1 -1
- package/dist/client/assets/button-PodD5p0U.js +1 -0
- package/dist/client/assets/{card-CRtF9cdr.js → card-D-ovGS63.js} +1 -1
- package/dist/client/assets/checkbox-6AvRm83v.js +1 -0
- package/dist/client/assets/collection-detail-CQJDYkNb.js +26 -0
- package/dist/client/assets/{collection-display-button-CQf7wSjn.js → collection-display-button-Dh09Ilcf.js} +1 -1
- package/dist/client/assets/{collection-header-ebtrK-4-.js → collection-header-BmH5wfr6.js} +1 -1
- package/dist/client/assets/{collection-page-BhBrRtz8.js → collection-page-DQfIdy6i.js} +1 -1
- package/dist/client/assets/{collection-search-BHs67_UI.js → collection-search-4ynn1TPY.js} +1 -1
- package/dist/client/assets/collection-tab--D0SMzDr.js +1 -0
- package/dist/client/assets/{collection-table-wrapper-3bPS8SS1.js → collection-table-wrapper-DNSd3m2k.js} +1 -1
- package/dist/client/assets/{connection-card-CEKO3io8.js → connection-card-DnSsvBT0.js} +1 -1
- package/dist/client/assets/connection-detail-DHFifhwE.js +1 -0
- package/dist/client/assets/connections-B9O8nDt9.js +1 -0
- package/dist/client/assets/constants-B4USxFBv.js +1 -0
- package/dist/client/assets/constants-CmWKkXWd.js +1 -0
- package/dist/client/assets/create-organization-dialog-CEW5VGHH.js +1 -0
- package/dist/client/assets/dialog-CWaQrwji.js +1 -0
- package/dist/client/assets/dropdown-menu-D9Rmpcp9.js +1 -0
- package/dist/client/assets/dynamic-plugin-layout-CBpne9DX.js +1 -0
- package/dist/client/assets/{empty-state-CSTjcp0X.js → empty-state-B-Xm_EaJ.js} +1 -1
- package/dist/client/assets/{empty-state-CUODA5WM.js → empty-state-DqNObyCj.js} +1 -1
- package/dist/client/assets/env-vars-editor-CfgmDeU5.js +1 -0
- package/dist/client/assets/{error-boundary-DP1kX1Iw.js → error-boundary-BjOv2UWq.js} +1 -1
- package/dist/client/assets/{extract-connection-data-D7M4EXYt.js → extract-connection-data-0XBBnZdV.js} +1 -1
- package/dist/client/assets/{file-browser-C9Hg6ohe.js → file-browser-B9wkG-Sl.js} +2 -2
- package/dist/client/assets/form-vSEoY8gy.js +1 -0
- package/dist/client/assets/{grid-view-DvYWkbyi.js → grid-view-DFrm-jAH.js} +1 -1
- package/dist/client/assets/home-bVBdjE9M.js +1 -0
- package/dist/client/assets/{index-B9c3bNyk.js → index-964bfDMw.js} +29 -29
- package/dist/client/assets/index-B_Tj7K9k.js +1 -0
- package/dist/client/assets/index-Cmw-k2HD.js +1 -0
- package/dist/client/assets/{index-I-Aus2DH.css → index-D86tzVve.css} +1 -1
- package/dist/client/assets/{index-SYlc-1Tl.js → index-DuRBn85W.js} +83 -83
- package/dist/client/assets/index-EWMtHb8y.js +25 -0
- package/dist/client/assets/index-wKTAGmPb.js +1 -0
- package/dist/client/assets/infiniteQueryObserver-KoZoIabU.js +1 -0
- package/dist/client/assets/{input-Dh7sDwu6.js → input-Ej7Hdv-8.js} +1 -1
- package/dist/client/assets/{layout-CMBAL9_n.js → layout-CXY5gq_4.js} +1 -1
- package/dist/client/assets/localstorage-keys-D1mHOPHm.js +1 -0
- package/dist/client/assets/{login-CgLLYYgm.js → login--5WB-nLi.js} +1 -1
- package/dist/client/assets/mcp-oauth-BD4MGpFX.js +1 -0
- package/dist/client/assets/{mcp-server-card-3RQV4Klx.js → mcp-server-card-DS0l3oak.js} +1 -1
- package/dist/client/assets/mcp-server-detail-CJwkhfLJ.js +2 -0
- package/dist/client/assets/members-BJW4tDMu.js +3 -0
- package/dist/client/assets/{monaco-editor-9ao1STYz.js → monaco-editor-3Me4XJ9I.js} +4 -4
- package/dist/client/assets/monitoring-CR4-lnND.js +49 -0
- package/dist/client/assets/{oauth-callback-DC00uX2L.js → oauth-callback-B8Ags9WE.js} +1 -1
- package/dist/client/assets/page-CCwujlJd.js +21 -0
- package/dist/client/assets/page-CN8DT11b.js +1 -0
- package/dist/client/assets/pin-to-sidebar-button-CYXcrmnE.js +1 -0
- package/dist/client/assets/plugin-empty-state-DJU_t0en.js +1 -0
- package/dist/client/assets/plugin-header-DXCUdn_T.js +1 -0
- package/dist/client/assets/plugins-Bl59udAj.js +1 -0
- package/dist/client/assets/popover-DBItUBYK.js +1 -0
- package/dist/client/assets/registry-utils-CPkD9bdu.js +1 -0
- package/dist/client/assets/resizable-ZQy6ZhoG.js +1 -0
- package/dist/client/assets/{resource-tabs-B7x4zlfW.js → resource-tabs-eTZinrmK.js} +1 -1
- package/dist/client/assets/select-AaQnf6IX.js +1 -0
- package/dist/client/assets/settings-7r0XCBIy.js +1 -0
- package/dist/client/assets/shell-layout-Bi9hmLN-.js +3 -0
- package/dist/client/assets/{spinner-CO1NH93o.js → spinner-C--oN2eV.js} +1 -1
- package/dist/client/assets/{switch-IXdsAtvF.js → switch-uzDLGnXk.js} +1 -1
- package/dist/client/assets/{textarea-BIhbkxfH.js → textarea-E7VOwyYz.js} +1 -1
- package/dist/client/assets/tool-set-selector-CQhszaVY.js +1 -0
- package/dist/client/assets/{tools-list-DvTDsJWw.js → tools-list-BK4C4awn.js} +1 -1
- package/dist/client/assets/{tooltip-Bb2oNaYJ.js → tooltip-Bdoc9quu.js} +1 -1
- package/dist/client/assets/{typewriter-title-Dm2sjP0K.js → typewriter-title-BlMj2uGN.js} +1 -1
- package/dist/client/assets/use-binding-DhM8knFB.js +23 -0
- package/dist/client/assets/use-collections-xUu5CPtF.js +1 -0
- package/dist/client/assets/use-connection-Bqsa8RaS.js +1 -0
- package/dist/client/assets/use-create-virtual-mcp-CdxRkVjT.js +1 -0
- package/dist/client/assets/{use-list-state-Ck_kabtn.js → use-list-state-BmjPeRyR.js} +1 -1
- package/dist/client/assets/use-members-B5HINX4i.js +1 -0
- package/dist/client/assets/{use-mobile-Bb5jBMYm.js → use-mobile-CH4OC_dx.js} +1 -1
- package/dist/client/assets/use-organization-settings-BOpggtjG.js +1 -0
- package/dist/client/assets/use-virtual-mcp-mbM9JS_c.js +1 -0
- package/dist/client/assets/use-virtual-mcp-system-prompt-BlXwuykx.js +1 -0
- package/dist/client/assets/useInfiniteQuery-Dmu_NRFV.js +1 -0
- package/dist/client/assets/useMutation-BABUvOV4.js +1 -0
- package/dist/client/assets/useQuery-B2QbSzDL.js +1 -0
- package/dist/client/assets/value-D8ri8g3W.js +1 -0
- package/dist/client/assets/{view-mode-toggle-C6P0fGVR.js → view-mode-toggle-C-30gO9H.js} +1 -1
- package/dist/client/assets/virtual-mcp-zquQbLgI.js +1 -0
- package/dist/client/assets/workflow-Dka00GsI.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +196 -176
- package/dist/server/migrate.js +167 -147
- package/dist/server/server.js +160 -160
- package/package.json +2 -2
- package/dist/client/assets/agent-detail-RPUTUaLt.js +0 -1
- package/dist/client/assets/agents-DLD7xSIr.js +0 -1
- package/dist/client/assets/button-Ta3HWdYR.js +0 -1
- package/dist/client/assets/checkbox-PlWQwQ-Z.js +0 -1
- package/dist/client/assets/collection-detail-D2KCEX1U.js +0 -26
- package/dist/client/assets/collection-tab-B2mnSptX.js +0 -1
- package/dist/client/assets/connection-C0f0eQA8.js +0 -2
- package/dist/client/assets/connection-detail-CdPOOjUE.js +0 -1
- package/dist/client/assets/connections-DiIaCwOD.js +0 -1
- package/dist/client/assets/constants-7IT_izqz.js +0 -1
- package/dist/client/assets/create-organization-dialog-dWwHUnmz.js +0 -1
- package/dist/client/assets/dialog-DU-St4qJ.js +0 -1
- package/dist/client/assets/dropdown-menu-BbIA2rWH.js +0 -1
- package/dist/client/assets/dynamic-plugin-layout-CvhGXoEg.js +0 -1
- package/dist/client/assets/env-vars-editor-D9YuRsdO.js +0 -1
- package/dist/client/assets/form-HErbLCwX.js +0 -1
- package/dist/client/assets/home-CszARX6v.js +0 -1
- package/dist/client/assets/index-D0C0gp7N.js +0 -1
- package/dist/client/assets/index-DE0l5h4l.js +0 -25
- package/dist/client/assets/index-DMxjLEp2.js +0 -1
- package/dist/client/assets/infiniteQueryObserver-DTO2dBsV.js +0 -1
- package/dist/client/assets/localstorage-keys-DJR10CLV.js +0 -1
- package/dist/client/assets/mcp-oauth-Bb9RwQ7y.js +0 -1
- package/dist/client/assets/mcp-server-detail-ERiwQuLO.js +0 -1
- package/dist/client/assets/members-COVJZ-4S.js +0 -3
- package/dist/client/assets/monitoring-BTGpm-FJ.js +0 -49
- package/dist/client/assets/page-2qu28FYa.js +0 -21
- package/dist/client/assets/page-CeLSKVJn.js +0 -1
- package/dist/client/assets/pin-to-sidebar-button-B85FzaKS.js +0 -1
- package/dist/client/assets/plugin-empty-state-CLZp9CCB.js +0 -1
- package/dist/client/assets/plugin-header-DlV51u69.js +0 -1
- package/dist/client/assets/plugins-BNlg-adG.js +0 -1
- package/dist/client/assets/popover-nSqfHOuL.js +0 -1
- package/dist/client/assets/project-context-provider-DJGvA4-w.js +0 -1
- package/dist/client/assets/registry-utils-BKwhzouz.js +0 -1
- package/dist/client/assets/resizable-CXrT3-gZ.js +0 -1
- package/dist/client/assets/schema-rISYOzpk.js +0 -1
- package/dist/client/assets/select-DEFdCmMs.js +0 -1
- package/dist/client/assets/settings-DwBDaBpc.js +0 -1
- package/dist/client/assets/shell-layout-BGLgMyjW.js +0 -3
- package/dist/client/assets/tool-set-selector-Cu6h1Zi5.js +0 -1
- package/dist/client/assets/use-binding-C-jiWM_O.js +0 -23
- package/dist/client/assets/use-collections-BnNAdJQg.js +0 -1
- package/dist/client/assets/use-connection-Cpo9FQLA.js +0 -1
- package/dist/client/assets/use-connection-resources-Bf67v2HN.js +0 -1
- package/dist/client/assets/use-create-virtual-mcp-B5oK5D73.js +0 -1
- package/dist/client/assets/use-mcp-C4SOdL_A.js +0 -1
- package/dist/client/assets/use-members-DKVZHAEo.js +0 -1
- package/dist/client/assets/use-organization-settings-BksJ8-FR.js +0 -1
- package/dist/client/assets/use-tool-call-CDQ4ked9.js +0 -1
- package/dist/client/assets/use-virtual-mcp-CMArCljo.js +0 -1
- package/dist/client/assets/use-virtual-mcp-system-prompt-CeE5LXb5.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CoW_DO_L.js +0 -1
- package/dist/client/assets/useMutation-BYfWAlPb.js +0 -1
- package/dist/client/assets/useQuery-CqMcSUvK.js +0 -1
- package/dist/client/assets/value-CpF7GK8s.js +0 -1
- package/dist/client/assets/well-known-mcp-DOEdYmKO.js +0 -1
- package/dist/client/assets/workflow-JTUHDWeK.js +0 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import{a as v}from"./binder-D69FJEqF.js";import{b9 as T,B as O,o as t,s as e,a3 as p,h as c,ba as l,bb as R,bc as U,bd as i,_ as C,a5 as u,a2 as g,be as n,a4 as b,bf as L,bg as B,bh as x}from"./index-964bfDMw.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),c(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:l().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:l().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:l().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:c(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:l().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:l().optional().describe("Additional provider-specific metadata")}),Y=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: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:f}),Q=t({role:n("user"),content:c(u([E,k])).describe("User message content parts (text or file)"),providerOptions:f}),ee=t({role:n("assistant"),content:c(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:c(A).describe("Tool message content (tool results)"),providerOptions:f}),oe=u([Z,Q,ee,te]),ae=c(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:c(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: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:g().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")}),ne=t({content:c(u([q,$,K,z,X,Y])).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:U({inputTokens:i().optional(),outputTokens:i().optional(),totalTokens:i().optional(),reasoningTokens:i().optional()}).describe("Usage information for the language model call"),providerMetadata:l().optional().describe("Additional provider-specific metadata"),request:t({body:l().optional().describe("Request HTTP body sent to the provider API")}).optional().describe("Optional request information for telemetry and debugging"),response:t({id:e().optional().describe("ID for the generated response"),timestamp: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: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:p(e(),e()).optional().describe("Response headers")}).optional().describe("Optional response data")});const se=t({supportedUrls:p(e(),c(e())).describe("Supported URL patterns by media type for the provider")});t({modelId:e().describe("The ID of the model"),logo:e().nullable(),description:e().nullable(),capabilities:c(e()),limits:t({contextWindow:i(),maxOutputTokens:i()}).nullable(),costs:t({input:i(),output:i()}).nullable(),provider:C(["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:c(e()),limits:t({contextWindow:i(),maxOutputTokens:i()}).nullable(),costs:t({input:i(),output:i()}).nullable(),provider:C(["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:c(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
|
+
The input is the resolved value of the references in the input field. Example:
|
|
3
|
+
{
|
|
4
|
+
"input": {
|
|
5
|
+
"name": "@Step_1.name",
|
|
6
|
+
"age": "@Step_2.age"
|
|
7
|
+
},
|
|
8
|
+
"code": "export default function(input): Output { return { result: \`\${input.name} is \${input.age} years old.\` } }"
|
|
9
|
+
}
|
|
10
|
+
`)});t({signalName:e().describe("Signal name to wait for (e.g., 'approval'). Execution pauses until SEND_SIGNAL is called with this name.")});const he=u([ue.describe("Call an external tool via MCP connection. "),me.describe("Run pure TypeScript code for data transformation. Useful to merge data from multiple steps and transform it.")]),fe=t({maxAttempts:i().optional().describe("Max retry attempts on failure (default: 1, no retries)"),backoffMs:i().optional().describe("Initial delay between retries in ms (doubles each attempt)"),timeoutMs:i().optional().describe("Max execution time in ms before step fails (default: 30000)")}),D=L(()=>t({type:e().optional(),properties:p(e(),b()).optional(),required:c(e()).optional(),description:e().optional(),additionalProperties:g().optional(),additionalItems:g().optional(),items:D.optional()}).passthrough()),be=t({name:e().min(1).describe("Unique identifier for this step. Other steps reference its output as @name.field"),description:e().optional().describe("What this step does"),action:he,input:p(e(),b()).optional().describe("Data passed to the action. Use @ref for dynamic values: @input.field (workflow input), @stepName.field (previous step output), @item/@index (loop context). Example: { 'userId': '@input.user_id', 'data': '@fetch.result' }"),outputSchema:D.optional().describe("Optional JSON Schema describing the expected output of the step."),config:fe.optional().describe("Retry and timeout settings")}),ge=C(["enqueued","running","success","error","failed","cancelled"]).default("enqueued"),M=O.extend({virtual_mcp_id:e().describe("ID of the virtual MCP (agent) that will be used to execute the workflow"),status:ge.describe("Current status of the workflow execution"),input:p(e(),b()).optional().describe("Input data for the workflow execution"),output:b().optional().describe("Output data for the workflow execution"),completed_at_epoch_ms:i().nullish().describe("Timestamp of when the workflow execution completed"),start_at_epoch_ms:i().nullish().describe("Timestamp of when the workflow execution started or will start"),timeout_ms:i().nullish().describe("Timeout in milliseconds for the workflow execution"),deadline_at_epoch_ms:i().nullish().describe("Deadline for the workflow execution - when the workflow execution will be cancelled if it is not completed. This is read-only and is set by the workflow engine when an execution is created."),error:b().nullish().describe("Error that occurred during the workflow execution"),completed_steps:t({success:c(e()).describe("Names of the steps that were completed successfully"),error:c(e()).describe("Names of the steps that errored")}).optional().describe("Names of the steps that were completed and their status")}),Se=C(["signal","timer","message","output","step_started","step_completed","workflow_started","workflow_completed"]);O.extend({execution_id:e(),type:Se,name:e().nullish(),payload:b().optional(),visible_at:i().nullish(),consumed_at:i().nullish(),source_execution_id:e().nullish()});const ye=O.extend({description:e().optional().describe("Human-readable summary of what this workflow does"),steps:c(be).describe("Ordered list of steps. Execution order is auto-determined by @ref dependencies: steps with no @ref dependencies run in parallel; steps referencing @stepName wait for that step to complete.")}),Te=T("workflow",ye),Oe={maxAttempts:1,timeoutMs:3e4},Me={name:"Initial Step",action:{code:`
|
|
11
|
+
interface Input {
|
|
12
|
+
example: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface Output {
|
|
16
|
+
result: unknown;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default async function(input: Input): Promise<Output> {
|
|
20
|
+
return {
|
|
21
|
+
result: input.example
|
|
22
|
+
}
|
|
23
|
+
}`},config:Oe,outputSchema:{type:"object",properties:{result:{type:"string",description:"The result of the step"}},required:["result"],description:"The output of the step. This is a JSON Schema describing the expected output of the step."}},Ie=T("workflow_execution",M),we=[...Te,...Ie],Ce=[...we],xe=T("workflow_execution",M),_={LLMS:ce,WORKFLOW:Ce,WORKFLOW_EXECUTION:xe,ASSISTANTS:G,MCP:pe};function Ne(o){return o.map(a=>({name:a.name,inputSchema:a.inputSchema?(()=>{try{return x(a.inputSchema)}catch(r){return console.error(`Failed to convert input schema for ${a.name}:`,r),t({})}})():t({}),outputSchema:a.outputSchema?(()=>{try{return x(a.outputSchema)}catch(r){return console.error(`Failed to convert output schema for ${a.name}:`,r),t({})}})():t({})}))}function _e(o,a){const r=o.tools;if(!r||r.length===0)return!1;const s=r.map(m=>({name:m.name,inputSchema:m.inputSchema})),d=a.map(m=>({name:m.name,inputSchema:m.inputSchema,opt:m.opt}));return v(d).isImplementedBy(s)}function Pe({connections:o,binding:a}){const r=(()=>{if(a){if(typeof a=="string"){const s=a.toUpperCase(),d=_[s];if(!d){console.warn(`[useBindingConnections] Unknown binding "${a}". Available bindings: ${Object.keys(_).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 Ne(a)}})();return o?r?o.filter(s=>_e(s,r)):o:[]}function ve(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 s of o){const d=s.name.match(a);d?.[1]&&r.push(d[1])}return r}function Le(o,a){const s=o.find(h=>h.name===`COLLECTION_${a}_CREATE`)?.inputSchema?.properties;if(s&&typeof s=="object"&&"data"in s)return s.data;const S=o.find(h=>h.name===`COLLECTION_${a}_UPDATE`)?.inputSchema?.properties;if(S&&typeof S=="object"&&"data"in S)return S.data;const I=o.find(h=>h.name===`COLLECTION_${a}_LIST`)?.outputSchema?.properties;if(I&&typeof I=="object"&&"items"in I){const h=I.items;if(h.items)return h.items}}function Ee(o,a){const r=a.toUpperCase();return{hasCreateTool:o.some(s=>s.name===`COLLECTION_${r}_CREATE`),hasUpdateTool:o.some(s=>s.name===`COLLECTION_${r}_UPDATE`),hasDeleteTool:o.some(s=>s.name===`COLLECTION_${r}_DELETE`)}}function ke(o){if(!o||o.length===0)return[];const a=P(o);if(a.length===0)return[];const r=[];for(const s of a)try{const d=T(s.toLowerCase(),O,{readOnly:!0}),S=o.map(y=>({name:y.name,inputSchema:y.inputSchema})),m=d.map(y=>({name:y.name,inputSchema:y.inputSchema}));if(v(m).isImplementedBy(S)){const y=Ee(o,s);r.push({name:s,displayName:ve(s),schema:Le(o,s),...y})}}catch{}return r}function Re(o){return ke(o?.tools??null)}function Ue(o){return o?o.filter(a=>P(a.tools).find(r=>r==="REGISTRY_APP")):[]}export{Me as D,Pe as a,Re as b,Ue as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as K,i as Q,E as b,a0 as q}from"./index-964bfDMw.js";import{u as M}from"./useMutation-BABUvOV4.js";import{u as x}from"./useQuery-B2QbSzDL.js";import{K as P}from"./constants-CmWKkXWd.js";function H(n){const e=K.c(12);let o,s;e[0]!==n?({client:o,...s}=n,e[0]=n,e[1]=o,e[2]=s):(o=e[1],s=e[2]);let t;e[3]!==o?(t=P.mcpToolsList(o),e[3]=o,e[4]=t):t=e[4];let l;e[5]!==o?(l=async()=>await o.listTools(),e[5]=o,e[6]=l):l=e[6];const r=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==t||e[9]!==l||e[10]!==r?(a={...s,queryKey:t,queryFn:l,staleTime:r,retry:!1},e[7]=s,e[8]=t,e[9]=l,e[10]=r,e[11]=a):a=e[11],x(a)}function U(n){const e=K.c(21);let o,s,t,l;e[0]!==n?({client:o,toolName:l,toolArguments:t,...s}=n,e[0]=n,e[1]=o,e[2]=s,e[3]=t,e[4]=l):(o=e[1],s=e[2],t=e[3],l=e[4]);let r,a,c;if(e[5]!==o||e[6]!==s||e[7]!==t||e[8]!==l){const m=JSON.stringify(t??{});c=Q,r=s,a=P.mcpToolCall(o,l,m),e[5]=o,e[6]=s,e[7]=t,e[8]=l,e[9]=r,e[10]=a,e[11]=c}else r=e[9],a=e[10],c=e[11];let i;e[12]!==o||e[13]!==t||e[14]!==l?(i=async()=>await o.callTool({name:l,arguments:t}),e[12]=o,e[13]=t,e[14]=l,e[15]=i):i=e[15];const f=s.staleTime??3e4;let u;return e[16]!==r||e[17]!==a||e[18]!==i||e[19]!==f?(u={...r,queryKey:a,queryFn:i,staleTime:f,retry:!1},e[16]=r,e[17]=a,e[18]=i,e[19]=f,e[20]=u):u=e[20],c(u)}function V(n){const e=K.c(21);let o,s,t,l;e[0]!==n?({client:o,toolName:l,toolArguments:t,...s}=n,e[0]=n,e[1]=o,e[2]=s,e[3]=t,e[4]=l):(o=e[1],s=e[2],t=e[3],l=e[4]);let r,a,c;if(e[5]!==o||e[6]!==s||e[7]!==t||e[8]!==l){const m=JSON.stringify(t??{});c=x,r=s,a=P.mcpToolCall(o,l,m),e[5]=o,e[6]=s,e[7]=t,e[8]=l,e[9]=r,e[10]=a,e[11]=c}else r=e[9],a=e[10],c=e[11];let i;e[12]!==o||e[13]!==t||e[14]!==l?(i=async()=>await o.callTool({name:l,arguments:t}),e[12]=o,e[13]=t,e[14]=l,e[15]=i):i=e[15];const f=s.staleTime??3e4;let u;return e[16]!==r||e[17]!==a||e[18]!==i||e[19]!==f?(u={...r,queryKey:a,queryFn:i,staleTime:f,retry:!1},e[16]=r,e[17]=a,e[18]=i,e[19]=f,e[20]=u):u=e[20],c(u)}function X(n){const e=K.c(8);let o,s;e[0]!==n?({client:o,...s}=n,e[0]=n,e[1]=o,e[2]=s):(o=e[1],s=e[2]);let t;e[3]!==o?(t=async r=>await o.callTool(r),e[3]=o,e[4]=t):t=e[4];let l;return e[5]!==s||e[6]!==t?(l={...s,mutationFn:t},e[5]=s,e[6]=t,e[7]=l):l=e[7],M(l)}function D(n,e,o){const s=[];if(n?.trim()){const t=n.trim(),l=o.map(r=>({field:[String(r)],operator:"contains",value:t}));l.length===1&&l[0]?s.push(l[0]):l.length>1&&s.push({operator:"or",conditions:l})}if(e&&e.length>0)for(const t of e)s.push({field:[t.column],operator:"eq",value:t.value});if(s.length!==0)return s.length===1?s[0]:{operator:"and",conditions:s}}function k(n,e,o){const s=n??o,t=e??"asc";return[{field:[String(s)],direction:t}]}function w(n){const e=n;return e&&typeof e=="object"&&"structuredContent"in e?e.structuredContent:e}function Z(n,e,o,s){const t=K.c(13);let l;t[0]!==e?(l=e.toUpperCase(),t[0]=e,t[1]=l):l=t[1];const a=`COLLECTION_${l}_GET`;let c;t[2]!==s||t[3]!==a||t[4]!==o?(c=P.mcpToolCall(s,a,o??""),t[2]=s,t[3]=a,t[4]=o,t[5]=c):c=t[5];let i;t[6]!==s||t[7]!==a||t[8]!==o?(i=async()=>{if(!o)return{item:null};const m=await s.callTool({name:a,arguments:{id:o}});return w(m)},t[6]=s,t[7]=a,t[8]=o,t[9]=i):i=t[9];let f;t[10]!==c||t[11]!==i?(f={queryKey:c,queryFn:i,staleTime:6e4},t[10]=c,t[11]=i,t[12]=f):f=t[12];const{data:u}=Q(f);return u?.item??null}function ee(n,e,o,s){const t=K.c(26);let l;t[0]!==s?(l=s===void 0?{}:s,t[0]=s,t[1]=l):l=t[1];const r=l,{searchTerm:a,filters:c,sortKey:i,sortDirection:f,searchFields:u,defaultSortKey:m,pageSize:E}=r;let _;t[2]!==u?(_=u===void 0?["title","description"]:u,t[2]=u,t[3]=_):_=t[3];const h=_,T=m===void 0?"updated_at":m,C=E===void 0?100:E;let O;t[4]!==e?(O=e.toUpperCase(),t[4]=e,t[5]=O):O=t[5];const g=`COLLECTION_${O}_LIST`;let d;t[6]!==c||t[7]!==h||t[8]!==a?(d=D(a,c,h),t[6]=c,t[7]=h,t[8]=a,t[9]=d):d=t[9];const S=d;let $;t[10]!==T||t[11]!==f||t[12]!==i?($=k(i,f,T),t[10]=T,t[11]=f,t[12]=i,t[13]=$):$=t[13];const L=$;let y;t[14]!==S?(y=S&&{where:S},t[14]=S,t[15]=y):y=t[15];let p;t[16]!==L?(p=L&&{orderBy:L},t[16]=L,t[17]=p):p=t[17];let N;t[18]!==C||t[19]!==p||t[20]!==y?(N={...y,...p,limit:C,offset:0},t[18]=C,t[19]=p,t[20]=y,t[21]=N):N=t[21];const F=N;let v;t[22]!==o||t[23]!==g||t[24]!==F?(v={client:o,toolName:g,toolArguments:F,select:z},t[22]=o,t[23]=g,t[24]=F,t[25]=v):v=t[25];const{data:I}=U(v);return I}function z(n){return w(n)?.items??[]}function te(n,e,o){const s=K.c(33),t=b();let l;s[0]!==e?(l=e.toUpperCase(),s[0]=e,s[1]=l):l=s[1];const r=l,a=`COLLECTION_${r}_CREATE`,c=`COLLECTION_${r}_UPDATE`,i=`COLLECTION_${r}_DELETE`;let f;s[2]!==t||s[3]!==r?(f=()=>{t.invalidateQueries({predicate:y=>{const p=y.queryKey;return p[0]!=="mcp"||p[1]!=="client"||p[3]!=="tool-call"?!1:p[4]?.startsWith(`COLLECTION_${r}_`)}})},s[2]=t,s[3]=r,s[4]=f):f=s[4];const u=f;let m;s[5]!==o||s[6]!==a?(m=async y=>{const p=await o.callTool({name:a,arguments:{data:y}});return w(p).item},s[5]=o,s[6]=a,s[7]=m):m=s[7];let E;s[8]!==u?(E=()=>{u(),q.success("Item created successfully")},s[8]=u,s[9]=E):E=s[9];let _;s[10]!==m||s[11]!==E?(_={mutationFn:m,onSuccess:E,onError:R},s[10]=m,s[11]=E,s[12]=_):_=s[12];const h=M(_);let T;s[13]!==o||s[14]!==c?(T=async y=>{const{id:p,data:N}=y,F=await o.callTool({name:c,arguments:{id:p,data:N}});return w(F).item},s[13]=o,s[14]=c,s[15]=T):T=s[15];let C;s[16]!==u?(C=()=>{u(),q.success("Item updated successfully")},s[16]=u,s[17]=C):C=s[17];let O;s[18]!==T||s[19]!==C?(O={mutationFn:T,onSuccess:C,onError:J},s[18]=T,s[19]=C,s[20]=O):O=s[20];const A=M(O);let g;s[21]!==o||s[22]!==i?(g=async y=>{const p=await o.callTool({name:i,arguments:{id:y}});return w(p).item.id},s[21]=o,s[22]=i,s[23]=g):g=s[23];let d;s[24]!==u?(d=()=>{u(),q.success("Item deleted successfully")},s[24]=u,s[25]=d):d=s[25];let S;s[26]!==g||s[27]!==d?(S={mutationFn:g,onSuccess:d,onError:B},s[26]=g,s[27]=d,s[28]=S):S=s[28];const $=M(S);let L;return s[29]!==h||s[30]!==$||s[31]!==A?(L={create:h,update:A,delete:$},s[29]=h,s[30]=$,s[31]=A,s[32]=L):L=s[32],L}function B(n){const e=n instanceof Error?n.message:String(n);q.error(`Failed to delete item: ${e}`)}function J(n){const e=n instanceof Error?n.message:String(n);q.error(`Failed to update item: ${e}`)}function R(n){const e=n instanceof Error?n.message:String(n);q.error(`Failed to create item: ${e}`)}export{ee as a,te as b,Z as c,H as d,U as e,X as f,V as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as d}from"./index-964bfDMw.js";import{u as l}from"./virtual-mcp-zquQbLgI.js";import{a as f,b as a,c as m}from"./use-collections-xUu5CPtF.js";import{W as r,u}from"./constants-CmWKkXWd.js";function E(t){const o=d.c(7);let i;o[0]!==t?(i=t===void 0?{}:t,o[0]=t,o[1]=i):i=o[1];const n=i,{org:e}=l();let s;o[2]!==e.id?(s=r.SELF(e.id),o[2]=e.id,o[3]=s):s=o[3];let c;o[4]!==e.id||o[5]!==s?(c={connectionId:s,orgId:e.id},o[4]=e.id,o[5]=s,o[6]=c):c=o[6];const C=u(c);return f(e.id,"CONNECTIONS",C,n)}function O(t){const o=d.c(5),{org:i}=l();let n;o[0]!==i.id?(n=r.SELF(i.id),o[0]=i.id,o[1]=n):n=o[1];let e;o[2]!==i.id||o[3]!==n?(e={connectionId:n,orgId:i.id},o[2]=i.id,o[3]=n,o[4]=e):e=o[4];const s=u(e);return m(i.id,"CONNECTIONS",t,s)}function S(){const t=d.c(5),{org:o}=l();let i;t[0]!==o.id?(i=r.SELF(o.id),t[0]=o.id,t[1]=i):i=t[1];let n;t[2]!==o.id||t[3]!==i?(n={connectionId:i,orgId:o.id},t[2]=o.id,t[3]=i,t[4]=n):n=t[4];const e=u(n);return a(o.id,"CONNECTIONS",e)}export{E as a,O as b,S as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as m,e as p}from"./index-964bfDMw.js";import{u as f}from"./virtual-mcp-zquQbLgI.js";import{a as v}from"./use-virtual-mcp-mbM9JS_c.js";function y(o){const e=m.c(10);let s;e[0]!==o?(s=o===void 0?{}:o,e[0]=o,e[1]=s):s=e[1];const d=s,{navigateOnCreate:g}=d,a=g===void 0?!1:g,{org:r}=f(),c=p(),t=v();let i;e[2]!==t.create||e[3]!==c||e[4]!==a||e[5]!==r?(i=async()=>{const u=await t.create.mutateAsync({title:"New Agent",description:"Agents let you securely expose integrated tools to the outside world.",status:"active",tool_selection_mode:"inclusion",connections:[]});return a&&c({to:"/$org/agents/$agentId",params:{org:r.slug,agentId:u.id}}),{id:u.id,virtualMcp:u}},e[2]=t.create,e[3]=c,e[4]=a,e[5]=r,e[6]=i):i=e[6];const l=i;let n;return e[7]!==t.create.isPending||e[8]!==l?(n={createVirtualMCP:l,isCreating:t.create.isPending},e[7]=t.create.isPending,e[8]=l,e[9]=n):n=e[9],n}export{y as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,c as T}from"./index-
|
|
1
|
+
import{r as a,c as T}from"./index-964bfDMw.js";import{u as D}from"./use-mobile-CH4OC_dx.js";const W=({size:l=24,color:e="currentColor",...t})=>a.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},a.createElement("path",{d:"M2.42 12.713c-.136-.215-.204-.323-.242-.49a1.173 1.173 0 0 1 0-.446c.038-.167.106-.274.242-.49C3.546 9.505 6.895 5 12 5s8.455 4.505 9.58 6.287c.137.215.205.323.243.49.029.125.029.322 0 .446-.038.167-.106.274-.242.49C20.455 14.495 17.105 19 12 19c-5.106 0-8.455-4.505-9.58-6.287Z"}),a.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}));W.displayName="Eye";function k(l){const e=`deco-filters-${l}`,[t,c]=a.useState(()=>{try{const o=globalThis.localStorage?.getItem(e);if(o)return JSON.parse(o)}catch(o){console.error("Failed to parse stored filters:",o)}return[]});return[t,o=>{c(o);try{globalThis.localStorage?.setItem(e,JSON.stringify(o))}catch(i){console.error("Failed to save filters:",i)}}]}function C(l){const e=T.c(7),[t,c]=a.useState(l),[s,o]=a.useState(l?"desc":null);let i;e[0]!==s||e[1]!==t?(i=h=>{t!==h?(c(h),o("asc")):s==="asc"?o("desc"):s==="desc"&&(c(void 0),o(null))},e[0]=s,e[1]=t,e[2]=i):i=e[2];const u=i;let r;return e[3]!==u||e[4]!==s||e[5]!==t?(r={sortKey:t,sortDirection:s,handleSort:u},e[3]=u,e[4]=s,e[5]=t,e[6]=r):r=e[6],r}function L(l,e){const t=T.c(12),c=e===void 0?"cards":e,s=D(),o=a.useRef(s),i=l?`deco-view-mode-${l}`:"deco-view-mode";let u;t[0]!==c||t[1]!==i?(u=()=>{const d=globalThis.localStorage?.getItem(i);return d==="cards"||d==="table"?d:c},t[0]=c,t[1]=i,t[2]=u):u=t[2];const[r,h]=a.useState(u);let f;t[3]!==i?(f=d=>{h(d),globalThis.localStorage?.setItem(i,d)},t[3]=i,t[4]=f):f=t[4];const p=f;let S,g;t[5]!==s||t[6]!==r?(S=()=>{!o.current&&s&&r==="table"&&h("cards"),o.current=s},g=[s,r],t[5]=s,t[6]=r,t[7]=S,t[8]=g):(S=t[7],g=t[8]),a.useEffect(S,g);let n;return t[9]!==p||t[10]!==r?(n=[r,p],t[9]=p,t[10]=r,t[11]=n):n=t[11],n}function O(l){const e=T.c(20),{namespace:t,resource:c,defaultSortKey:s,defaultViewMode:o}=l,i=s===void 0?"title":s,u=o===void 0?"table":o,[r,h]=a.useState(""),f=a.useDeferredValue(r),p=`${t}-${c}`,[S,g]=k(p),n=`mesh-${c}-filter-visible-${t}`;let d;e[0]!==n?(d=()=>globalThis.localStorage?.getItem(n)==="true",e[0]=n,e[1]=d):d=e[1];const[m,B]=a.useState(d);let y;e[2]!==n?(y=I=>{B(I),globalThis.localStorage?.setItem(n,String(I))},e[2]=n,e[3]=y):y=e[3];const b=y;let M;e[4]!==m||e[5]!==b?(M=()=>{b(!m)},e[4]=m,e[5]=b,e[6]=M):M=e[6];const w=M,[V,$]=L(`mesh-${c}-${t}`,u),{sortKey:x,sortDirection:F,handleSort:K}=C(i),E=x;let v;return e[7]!==m||e[8]!==S||e[9]!==K||e[10]!==r||e[11]!==f||e[12]!==b||e[13]!==g||e[14]!==$||e[15]!==F||e[16]!==E||e[17]!==w||e[18]!==V?(v={search:r,searchTerm:f,setSearch:h,filters:S,setFilters:g,filterBarVisible:m,setFilterBarVisible:b,toggleFilterBar:w,viewMode:V,setViewMode:$,sortKey:E,sortDirection:F,handleSort:K},e[7]=m,e[8]=S,e[9]=K,e[10]=r,e[11]=f,e[12]=b,e[13]=g,e[14]=$,e[15]=F,e[16]=E,e[17]=w,e[18]=V,e[19]=v):v=e[19],v}export{W as s,O as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as o,i as n,K as u,d as i}from"./index-964bfDMw.js";import{u as m}from"./virtual-mcp-zquQbLgI.js";function p(){const e=o.c(4),{locator:s}=m();let t;e[0]!==s?(t=u.members(s),e[0]=s,e[1]=t):t=e[1];let r;return e[2]!==t?(r={queryKey:t,queryFn:a},e[2]=t,e[3]=r):r=e[3],n(r)}function a(){return i.organization.listMembers()}export{p as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as m,r}from"./index-
|
|
1
|
+
import{c as m,r}from"./index-964bfDMw.js";const a=768,o=()=>globalThis.innerWidth<a;function u(){const e=m.c(2),[l,n]=r.useState(o);let t,s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{const i=()=>n(o),c=globalThis.matchMedia(`(max-width: ${a-1}px)`);return c.addEventListener("change",i),n(o),()=>c.removeEventListener("change",i)},s=[],e[0]=t,e[1]=s):(t=e[0],s=e[1]),r.useEffect(t,s),l}export{u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as d,i as E,E as O,K as g}from"./index-964bfDMw.js";import{u as A}from"./useMutation-BABUvOV4.js";import{u as p}from"./virtual-mcp-zquQbLgI.js";import{W as T,u as y}from"./constants-CmWKkXWd.js";function D(e){const t=d.c(13),{org:u}=p();let s;t[0]!==u.id?(s=T.SELF(u.id),t[0]=u.id,t[1]=s):s=t[1];let i;t[2]!==u.id||t[3]!==s?(i={connectionId:s,orgId:u.id},t[2]=u.id,t[3]=s,t[4]=i):i=t[4];const c=y(i);let r;t[5]!==e?(r=g.organizationSettings(e),t[5]=e,t[6]=r):r=t[6];let n;t[7]!==c||t[8]!==e?(n=async()=>{const f=await c.callTool({name:"ORGANIZATION_SETTINGS_GET",arguments:{}}),o=f.structuredContent??f;return o||{organizationId:e,sidebar_items:null,enabled_plugins:null,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}},t[7]=c,t[8]=e,t[9]=n):n=t[9];let l;t[10]!==r||t[11]!==n?(l={queryKey:r,queryFn:n,staleTime:6e4},t[10]=r,t[11]=n,t[12]=l):l=t[12];const{data:a}=E(l);return a}function F(e){const t=d.c(16),u=O(),{org:s}=p();let i;t[0]!==s.id?(i=T.SELF(s.id),t[0]=s.id,t[1]=i):i=t[1];let c;t[2]!==s.id||t[3]!==i?(c={connectionId:i,orgId:s.id},t[2]=s.id,t[3]=i,t[4]=c):c=t[4];const r=y(c);let n;t[5]!==r||t[6]!==e?(n=async m=>{const S=await r.callTool({name:"ORGANIZATION_SETTINGS_UPDATE",arguments:{organizationId:e,...m}});return S.structuredContent??S},t[5]=r,t[6]=e,t[7]=n):n=t[7];let l;t[8]!==e||t[9]!==u?(l=m=>{u.setQueryData(g.organizationSettings(e),m)},t[8]=e,t[9]=u,t[10]=l):l=t[10];let a;t[11]!==n||t[12]!==l?(a={mutationFn:n,onSuccess:l},t[11]=n,t[12]=l,t[13]=a):a=t[13];const f=A(a);let o;return t[14]!==f?(o={update:f},t[14]=f,t[15]=o):o=t[15],o}export{F as a,D as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as d}from"./index-964bfDMw.js";import{u as l}from"./virtual-mcp-zquQbLgI.js";import{a as C,b as f,c as m}from"./use-collections-xUu5CPtF.js";import{W as r,u}from"./constants-CmWKkXWd.js";function V(o){const i=d.c(7);let t;i[0]!==o?(t=o===void 0?{}:o,i[0]=o,i[1]=t):t=i[1];const n=t,{org:e}=l();let s;i[2]!==e.id?(s=r.SELF(e.id),i[2]=e.id,i[3]=s):s=i[3];let c;i[4]!==e.id||i[5]!==s?(c={connectionId:s,orgId:e.id},i[4]=e.id,i[5]=s,i[6]=c):c=i[6];const a=u(c);return C(e.id,"VIRTUAL_MCP",a,n)}function g(o){const i=d.c(5),{org:t}=l();let n;i[0]!==t.id?(n=r.SELF(t.id),i[0]=t.id,i[1]=n):n=i[1];let e;i[2]!==t.id||i[3]!==n?(e={connectionId:n,orgId:t.id},i[2]=t.id,i[3]=n,i[4]=e):e=i[4];const s=u(e);return m(t.id,"VIRTUAL_MCP",o??void 0,s)}function L(){const o=d.c(5),{org:i}=l();let t;o[0]!==i.id?(t=r.SELF(i.id),o[0]=i.id,o[1]=t):t=o[1];let n;o[2]!==i.id||o[3]!==t?(n={connectionId:t,orgId:i.id},o[2]=i.id,o[3]=t,o[4]=n):n=o[4];const e=u(n);return f(i.id,"VIRTUAL_MCP",e)}export{L as a,g as b,V as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as p}from"./index-964bfDMw.js";import{u as S}from"./virtual-mcp-zquQbLgI.js";import{u as L,L as P}from"./localstorage-keys-D1mHOPHm.js";function E(t){const e=p.c(9),{locator:n}=S();let o;e[0]!==n?(o=P.virtualMcpSystemPrompts(n),e[0]=n,e[1]=o):o=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s={},e[2]=s):s=e[2];const[f,l]=L(o,s),a=t?f[t]??"":"";let r;e[3]!==l||e[4]!==t?(r=i=>{t&&l(u=>({...u,[t]:i}))},e[3]=l,e[4]=t,e[5]=r):r=e[5];const c=r;let m;return e[6]!==c||e[7]!==a?(m=[a,c],e[6]=c,e[7]=a,e[8]=m):m=e[8],m}export{E as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as u}from"./infiniteQueryObserver-KoZoIabU.js";import{N as i}from"./index-964bfDMw.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aH as l,aI as p,aJ as n,aK as d,aL as h,E as b,r as o,aM as m,aN as f}from"./index-964bfDMw.js";var v=class extends l{#s;#i=void 0;#t;#e;constructor(t,s){super(),this.#s=t,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const s=this.options;this.options=this.#s.defaultMutationOptions(t),p(this.options,s)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),s?.mutationKey&&this.options.mutationKey&&n(s.mutationKey)!==n(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#o()}mutate(t,s){return this.#e=s,this.#t?.removeObserver(this),this.#t=this.#s.getMutationCache().build(this.#s,this.options),this.#t.addObserver(this),this.#t.execute(t)}#r(){const t=this.#t?.state??d();this.#i={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){h.batch(()=>{if(this.#e&&this.hasListeners()){const s=this.#i.variables,i=this.#i.context,e={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#e.onSuccess?.(t.data,s,i,e),this.#e.onSettled?.(t.data,null,s,i,e)):t?.type==="error"&&(this.#e.onError?.(t.error,s,i,e),this.#e.onSettled?.(void 0,t.error,s,i,e))}this.listeners.forEach(s=>{s(this.#i)})})}};function O(t,s){const i=b(s),[e]=o.useState(()=>new v(i,t));o.useEffect(()=>{e.setOptions(t)},[e,t]);const r=o.useSyncExternalStore(o.useCallback(a=>e.subscribe(h.batchCalls(a)),[e]),()=>e.getCurrentResult(),()=>e.getCurrentResult()),u=o.useCallback((a,c)=>{e.mutate(a,c).catch(m)},[e]);if(r.error&&f(e.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:u,mutateAsync:r.mutate}}export{O as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{N as u,Q as s}from"./index-964bfDMw.js";function o(e,r){return u(e,s,r)}export{o as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as z,a6 as A,j as c,aa as M,ab as ge,br as h,b0 as he,b1 as X,ai as pe,a_ as be,a$ as me,k as ve,c as Y}from"./index-964bfDMw.js";import{c as Z}from"./button-PodD5p0U.js";var ee="Toggle",te=z.forwardRef((t,e)=>{const{pressed:r,defaultPressed:n,onPressedChange:a,...o}=t,[i,s]=A({prop:r,onChange:a,defaultProp:n??!1,caller:ee});return c.jsx(M.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":t.disabled?"":void 0,...o,ref:e,onClick:ge(t.onClick,()=>{t.disabled||s(!i)})})});te.displayName=ee;var b="ToggleGroup",[re]=pe(b,[X]),ne=X(),S=h.forwardRef((t,e)=>{const{type:r,...n}=t;if(r==="single"){const a=n;return c.jsx(we,{...a,ref:e})}if(r==="multiple"){const a=n;return c.jsx(ye,{...a,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${b}\``)});S.displayName=b;var[ae,ie]=re(b),we=h.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:a=()=>{},...o}=t,[i,s]=A({prop:r,defaultProp:n??"",onChange:a,caller:b});return c.jsx(ae,{scope:t.__scopeToggleGroup,type:"single",value:h.useMemo(()=>i?[i]:[],[i]),onItemActivate:s,onItemDeactivate:h.useCallback(()=>s(""),[s]),children:c.jsx(oe,{...o,ref:e})})}),ye=h.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:a=()=>{},...o}=t,[i,s]=A({prop:r,defaultProp:n??[],onChange:a,caller:b}),f=h.useCallback(l=>s((d=[])=>[...d,l]),[s]),u=h.useCallback(l=>s((d=[])=>d.filter(xe=>xe!==l)),[s]);return c.jsx(ae,{scope:t.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:f,onItemDeactivate:u,children:c.jsx(oe,{...o,ref:e})})});S.displayName=b;var[$e,Ne]=re(b),oe=h.forwardRef((t,e)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:a=!0,orientation:o,dir:i,loop:s=!0,...f}=t,u=ne(r),l=be(i),d={role:"group",dir:l,...f};return c.jsx($e,{scope:r,rovingFocus:a,disabled:n,children:a?c.jsx(me,{asChild:!0,...u,orientation:o,dir:l,loop:s,children:c.jsx(M.div,{...d,ref:e})}):c.jsx(M.div,{...d,ref:e})})}),R="ToggleGroupItem",se=h.forwardRef((t,e)=>{const r=ie(R,t.__scopeToggleGroup),n=Ne(R,t.__scopeToggleGroup),a=ne(t.__scopeToggleGroup),o=r.value.includes(t.value),i=n.disabled||t.disabled,s={...t,pressed:o,disabled:i},f=h.useRef(null);return n.rovingFocus?c.jsx(he,{asChild:!0,...a,focusable:!i,active:o,ref:f,children:c.jsx(D,{...s,ref:e})}):c.jsx(D,{...s,ref:e})});se.displayName=R;var D=h.forwardRef((t,e)=>{const{__scopeToggleGroup:r,value:n,...a}=t,o=ie(R,r),i={role:"radio","aria-checked":t.pressed,"aria-pressed":void 0},s=o.type==="single"?i:void 0;return c.jsx(te,{...s,...a,ref:e,onPressedChange:f=>{f?o.onItemActivate(n):o.onItemDeactivate(n)}})}),Ge=S,Pe=se;const ke=ve("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),fe=z.createContext({size:"default",variant:"default"});function Ye(t){const e=Y.c(20);let r,n,a,o,i;e[0]!==t?({className:n,variant:i,size:o,children:r,...a}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=a,e[4]=o,e[5]=i):(r=e[1],n=e[2],a=e[3],o=e[4],i=e[5]);let s;e[6]!==n?(s=Z("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",n),e[6]=n,e[7]=s):s=e[7];let f;e[8]!==o||e[9]!==i?(f={variant:i,size:o},e[8]=o,e[9]=i,e[10]=f):f=e[10];let u;e[11]!==r||e[12]!==f?(u=c.jsx(fe.Provider,{value:f,children:r}),e[11]=r,e[12]=f,e[13]=u):u=e[13];let l;return e[14]!==a||e[15]!==o||e[16]!==s||e[17]!==u||e[18]!==i?(l=c.jsx(Ge,{"data-slot":"toggle-group","data-variant":i,"data-size":o,className:s,...a,children:u}),e[14]=a,e[15]=o,e[16]=s,e[17]=u,e[18]=i,e[19]=l):l=e[19],l}function Ze(t){const e=Y.c(18);let r,n,a,o,i;e[0]!==t?({className:n,children:r,variant:i,size:o,...a}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=a,e[4]=o,e[5]=i):(r=e[1],n=e[2],a=e[3],o=e[4],i=e[5]);const s=z.useContext(fe),f=s.variant||i,u=s.size||o;let l;e[6]!==n||e[7]!==s.size||e[8]!==s.variant||e[9]!==o||e[10]!==i?(l=Z(ke({variant:s.variant||i,size:s.size||o}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",n),e[6]=n,e[7]=s.size,e[8]=s.variant,e[9]=o,e[10]=i,e[11]=l):l=e[11];let d;return e[12]!==r||e[13]!==a||e[14]!==f||e[15]!==u||e[16]!==l?(d=c.jsx(Pe,{"data-slot":"toggle-group-item","data-variant":f,"data-size":u,className:l,...a,children:r}),e[12]=r,e[13]=a,e[14]=f,e[15]=u,e[16]=l,e[17]=d):d=e[17],d}function V(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function le(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function G(){}var y=.7,C=1/y,w="\\s*([+-]?\\d+)\\s*",$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",p="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Re=/^#([0-9a-f]{3,8})$/,Ce=new RegExp(`^rgb\\(${w},${w},${w}\\)$`),Te=new RegExp(`^rgb\\(${p},${p},${p}\\)$`),je=new RegExp(`^rgba\\(${w},${w},${w},${$}\\)$`),_e=new RegExp(`^rgba\\(${p},${p},${p},${$}\\)$`),Me=new RegExp(`^hsl\\(${$},${p},${p}\\)$`),Ie=new RegExp(`^hsla\\(${$},${p},${p},${$}\\)$`),F={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};V(G,N,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:O,formatHex:O,formatHex8:Ee,formatHsl:He,formatRgb:B,toString:B});function O(){return this.rgb().formatHex()}function Ee(){return this.rgb().formatHex8()}function He(){return ue(this).formatHsl()}function B(){return this.rgb().formatRgb()}function N(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Re.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?L(e):r===3?new x(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?P(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?P(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Ce.exec(t))?new x(e[1],e[2],e[3],1):(e=Te.exec(t))?new x(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=je.exec(t))?P(e[1],e[2],e[3],e[4]):(e=_e.exec(t))?P(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Me.exec(t))?K(e[1],e[2]/100,e[3]/100,1):(e=Ie.exec(t))?K(e[1],e[2]/100,e[3]/100,e[4]):F.hasOwnProperty(t)?L(F[t]):t==="transparent"?new x(NaN,NaN,NaN,0):null}function L(t){return new x(t>>16&255,t>>8&255,t&255,1)}function P(t,e,r,n){return n<=0&&(t=e=r=NaN),new x(t,e,r,n)}function ze(t){return t instanceof G||(t=N(t)),t?(t=t.rgb(),new x(t.r,t.g,t.b,t.opacity)):new x}function I(t,e,r,n){return arguments.length===1?ze(t):new x(t,e,r,n??1)}function x(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}V(x,I,le(G,{brighter(t){return t=t==null?C:Math.pow(C,t),new x(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?y:Math.pow(y,t),new x(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new x(v(this.r),v(this.g),v(this.b),T(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:U,formatHex:U,formatHex8:Ae,formatRgb:J,toString:J}));function U(){return`#${m(this.r)}${m(this.g)}${m(this.b)}`}function Ae(){return`#${m(this.r)}${m(this.g)}${m(this.b)}${m((isNaN(this.opacity)?1:this.opacity)*255)}`}function J(){const t=T(this.opacity);return`${t===1?"rgb(":"rgba("}${v(this.r)}, ${v(this.g)}, ${v(this.b)}${t===1?")":`, ${t})`}`}function T(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function v(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function m(t){return t=v(t),(t<16?"0":"")+t.toString(16)}function K(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new g(t,e,r,n)}function ue(t){if(t instanceof g)return new g(t.h,t.s,t.l,t.opacity);if(t instanceof G||(t=N(t)),!t)return new g;if(t instanceof g)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,a=Math.min(e,r,n),o=Math.max(e,r,n),i=NaN,s=o-a,f=(o+a)/2;return s?(e===o?i=(r-n)/s+(r<n)*6:r===o?i=(n-e)/s+2:i=(e-r)/s+4,s/=f<.5?o+a:2-o-a,i*=60):s=f>0&&f<1?0:i,new g(i,s,f,t.opacity)}function Se(t,e,r,n){return arguments.length===1?ue(t):new g(t,e,r,n??1)}function g(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}V(g,Se,le(G,{brighter(t){return t=t==null?C:Math.pow(C,t),new g(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?y:Math.pow(y,t),new g(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,a=2*r-n;return new x(j(t>=240?t-240:t+120,a,n),j(t,a,n),j(t<120?t+240:t-120,a,n),this.opacity)},clamp(){return new g(Q(this.h),k(this.s),k(this.l),T(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=T(this.opacity);return`${t===1?"hsl(":"hsla("}${Q(this.h)}, ${k(this.s)*100}%, ${k(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Q(t){return t=(t||0)%360,t<0?t+360:t}function k(t){return Math.max(0,Math.min(1,t||0))}function j(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const q=t=>()=>t;function Ve(t,e){return function(r){return t+r*e}}function qe(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function De(t){return(t=+t)==1?ce:function(e,r){return r-e?qe(e,r,t):q(isNaN(e)?r:e)}}function ce(t,e){var r=e-t;return r?Ve(t,r):q(isNaN(t)?e:t)}const W=(function t(e){var r=De(e);function n(a,o){var i=r((a=I(a)).r,(o=I(o)).r),s=r(a.g,o.g),f=r(a.b,o.b),u=ce(a.opacity,o.opacity);return function(l){return a.r=i(l),a.g=s(l),a.b=f(l),a.opacity=u(l),a+""}}return n.gamma=t,n})(1);function Fe(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),a;return function(o){for(a=0;a<r;++a)n[a]=t[a]*(1-o)+e[a]*o;return n}}function Oe(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Be(t,e){var r=e?e.length:0,n=t?Math.min(r,t.length):0,a=new Array(n),o=new Array(r),i;for(i=0;i<n;++i)a[i]=de(t[i],e[i]);for(;i<r;++i)o[i]=e[i];return function(s){for(i=0;i<n;++i)o[i]=a[i](s);return o}}function Le(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function E(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Ue(t,e){var r={},n={},a;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(a in e)a in t?r[a]=de(t[a],e[a]):n[a]=e[a];return function(o){for(a in r)n[a]=r[a](o);return n}}var H=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_=new RegExp(H.source,"g");function Je(t){return function(){return t}}function Ke(t){return function(e){return t(e)+""}}function Qe(t,e){var r=H.lastIndex=_.lastIndex=0,n,a,o,i=-1,s=[],f=[];for(t=t+"",e=e+"";(n=H.exec(t))&&(a=_.exec(e));)(o=a.index)>r&&(o=e.slice(r,o),s[i]?s[i]+=o:s[++i]=o),(n=n[0])===(a=a[0])?s[i]?s[i]+=a:s[++i]=a:(s[++i]=null,f.push({i,x:E(n,a)})),r=_.lastIndex;return r<e.length&&(o=e.slice(r),s[i]?s[i]+=o:s[++i]=o),s.length<2?f[0]?Ke(f[0].x):Je(e):(e=f.length,function(u){for(var l=0,d;l<e;++l)s[(d=f[l]).i]=d.x(u);return s.join("")})}function de(t,e){var r=typeof e,n;return e==null||r==="boolean"?q(e):(r==="number"?E:r==="string"?(n=N(e))?(e=n,W):Qe:e instanceof N?W:e instanceof Date?Le:Oe(e)?Fe:Array.isArray(e)?Be:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Ue:E)(t,e)}export{Ze as T,W as a,Qe as b,N as c,de as d,Ye as e,E as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Y,r as V,j as i}from"./index-
|
|
1
|
+
import{c as Y,r as V,j as i}from"./index-964bfDMw.js";import{c as n}from"./button-PodD5p0U.js";const Z={sm:{button:"size-7",icon:"size-4"},md:{button:"size-9",icon:"size-5"},lg:{button:"size-12",icon:"size-6"}};function oe(J){const e=Y.c(66),{value:o,onValueChange:l,options:t,size:D,fullWidth:F,className:W}=J,K=D===void 0?"sm":D,w=F===void 0?!1:F,G=V.useRef(null),H=V.useRef(null);let R;e[0]===Symbol.for("react.memo_cache_sentinel")?(R={left:0,width:0,opacity:0},e[0]=R):R=e[0];const[N,O]=V.useState(R);let _;e[1]===Symbol.for("react.memo_cache_sentinel")?(_=S=>{if(!S.current)return;const{offsetLeft:U,offsetWidth:X}=S.current;O({left:U,width:X,opacity:1})},e[1]=_):_=e[1];const Q=_;let C;e[2]!==t[0].value||e[3]!==o?(C=()=>{const S=o===t[0].value?G:H;Q(S)},e[2]=t[0].value,e[3]=o,e[4]=C):C=e[4];let E;e[5]!==t||e[6]!==o?(E=[o,t],e[5]=t,e[6]=o,e[7]=E):E=e[7],V.useEffect(C,E);const s=Z[K];let a;e[8]!==W?(a=n("relative flex gap-0 bg-muted rounded-lg",W),e[8]=W,e[9]=a):a=e[9];let c;e[10]!==l||e[11]!==t[0].value?(c=()=>l(t[0].value),e[10]=l,e[11]=t[0].value,e[12]=c):c=e[12];const $=w?"flex-1 h-12 px-4":s.button,I=!w&&t[0].label?"px-3":"";let r;e[13]!==I||e[14]!==$?(r=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",$,I),e[13]=I,e[14]=$,e[15]=r):r=e[15];const P=o===t[0].value?"text-foreground":"text-muted-foreground";let u;e[16]!==s.icon||e[17]!==P?(u=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,P),e[16]=s.icon,e[17]=P,e[18]=u):u=e[18];let f;e[19]!==t[0].icon||e[20]!==u?(f=i.jsx("span",{className:u,children:t[0].icon}),e[19]=t[0].icon,e[20]=u,e[21]=f):f=e[21];let d;e[22]!==t[0].label||e[23]!==t[0].value||e[24]!==o?(d=t[0].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[0].value?"text-foreground":"text-muted-foreground"),children:t[0].label}),e[22]=t[0].label,e[23]=t[0].value,e[24]=o,e[25]=d):d=e[25];let m;e[26]!==r||e[27]!==f||e[28]!==d||e[29]!==c?(m=i.jsxs("button",{ref:G,type:"button",onClick:c,className:r,children:[f,d]}),e[26]=r,e[27]=f,e[28]=d,e[29]=c,e[30]=m):m=e[30];let x;e[31]!==l||e[32]!==t[1].value?(x=()=>l(t[1].value),e[31]=l,e[32]=t[1].value,e[33]=x):x=e[33];const L=w?"flex-1 h-12 px-4":s.button,M=!w&&t[1].label?"px-3":"";let p;e[34]!==L||e[35]!==M?(p=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",L,M),e[34]=L,e[35]=M,e[36]=p):p=e[36];const T=o===t[1].value?"text-foreground":"text-muted-foreground";let b;e[37]!==s.icon||e[38]!==T?(b=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,T),e[37]=s.icon,e[38]=T,e[39]=b):b=e[39];let v;e[40]!==t[1].icon||e[41]!==b?(v=i.jsx("span",{className:b,children:t[1].icon}),e[40]=t[1].icon,e[41]=b,e[42]=v):v=e[42];let g;e[43]!==t[1].label||e[44]!==t[1].value||e[45]!==o?(g=t[1].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[1].value?"text-foreground":"text-muted-foreground"),children:t[1].label}),e[43]=t[1].label,e[44]=t[1].value,e[45]=o,e[46]=g):g=e[46];let h;e[47]!==x||e[48]!==p||e[49]!==v||e[50]!==g?(h=i.jsxs("button",{ref:H,type:"button",onClick:x,className:p,children:[v,g]}),e[47]=x,e[48]=p,e[49]=v,e[50]=g,e[51]=h):h=e[51];const q=w?"h-12":s.button;let y;e[52]!==q?(y=n("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",q),e[52]=q,e[53]=y):y=e[53];const A=`${N.left}px`,B=`${N.width}px`;let j;e[54]!==N.opacity||e[55]!==A||e[56]!==B?(j={left:A,width:B,opacity:N.opacity},e[54]=N.opacity,e[55]=A,e[56]=B,e[57]=j):j=e[57];let z;e[58]!==y||e[59]!==j?(z=i.jsx("div",{className:y,style:j}),e[58]=y,e[59]=j,e[60]=z):z=e[60];let k;return e[61]!==m||e[62]!==h||e[63]!==z||e[64]!==a?(k=i.jsxs("div",{className:a,children:[m,h,z]}),e[61]=m,e[62]=h,e[63]=z,e[64]=a,e[65]=k):k=e[65],k}export{oe as V};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as g,c as x,j as S,o as i,_ as c,h as o,s as e,a3 as a,a4 as b,a5 as P}from"./index-964bfDMw.js";const f="org-admin",w={from({org:n,project:t}){if(n?.includes("/")||t.includes("/"))throw new Error("Org or project cannot contain slashes");return`${n}/${t}`},parse(n){n.startsWith("/")&&(n=n.slice(1));const[t,l]=n.split("/");if(!t||!l)throw new Error("Invalid locator");return{org:t,project:l}},isOrgAdminProject(n){return n.split("/")[1]===f},adminProject(n){return`${n}/${f}`}},C=g.createContext(void 0),M=()=>{const n=g.useContext(C);if(!n)throw new Error("useProjectContext must be used within a ProjectContextProvider");return n},j=n=>{const t=x.c(10),{children:l,org:r,project:s}=n;let d;t[0]!==r.slug||t[1]!==s.slug?(d=w.from({org:r.slug,project:s.slug}),t[0]=r.slug,t[1]=s.slug,t[2]=d):d=t[2];const m=d;let u;t[3]!==m||t[4]!==r||t[5]!==s?(u={org:r,project:s,locator:m},t[3]=m,t[4]=r,t[5]=s,t[6]=u):u=t[6];const h=u;let p;return t[7]!==l||t[8]!==h?(p=S.jsx(C.Provider,{value:h,children:l}),t[7]=l,t[8]=h,t[9]=p):p=t[9],p},I=i({authorizationEndpoint:e().url(),tokenEndpoint:e().url(),introspectionEndpoint:e().url().optional(),clientId:e(),clientSecret:e().optional(),scopes:o(e()),grantType:c(["authorization_code","client_credentials"])}),T=i({name:e(),description:e().optional(),inputSchema:a(e(),b()),outputSchema:a(e(),b()).optional()}),D=i({headers:a(e(),e()).optional()}),U=i({command:e().describe("Command to run (e.g., 'npx', 'node')"),args:o(e()).optional().describe("Command arguments"),cwd:e().optional().describe("Working directory"),envVars:a(e(),e()).optional().describe("Environment variables (encrypted in storage)")}),v=i({id:e().describe("Unique identifier for the connection"),title:e().describe("Human-readable name for the connection"),created_at:e().describe("When the connection was created"),updated_at:e().describe("When the connection was last updated"),created_by:e().describe("User ID who created the connection"),updated_by:e().optional().describe("User ID who last updated the connection"),organization_id:e().describe("Organization ID this connection belongs to"),description:e().nullable().describe("Description of the connection"),icon:e().nullable().describe("Icon URL for the connection"),app_name:e().nullable().describe("Associated app name"),app_id:e().nullable().describe("Associated app ID"),connection_type:c(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:e().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:e().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:P([U,D]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:I.nullable().describe("OAuth configuration"),configuration_state:a(e(),b()).nullable().describe("Configuration state (decrypted)"),configuration_scopes:o(e()).nullable().optional().describe("Configuration scopes"),metadata:a(e(),b()).nullable().describe("Additional metadata (includes repository info)"),tools:o(T).nullable().describe("Discovered tools from MCP"),bindings:o(e()).nullable().describe("Detected bindings"),status:c(["active","inactive","error"]).describe("Current status")});v.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0});v.partial();function O(n){return n!=null&&"command"in n}function R(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}const _=c(["inclusion","exclusion"]).describe("Tool selection mode: 'inclusion' = include selected (default), 'exclusion' = exclude selected"),y=i({connection_id:e().describe("Connection ID"),selected_tools:o(e()).nullable().describe("Selected tool names. With 'inclusion' mode: null = all tools included. With 'exclusion' mode: null = entire connection excluded"),selected_resources:o(e()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. With 'inclusion' mode: null = all resources included."),selected_prompts:o(e()).nullable().describe("Selected prompt names. With 'inclusion' mode: null = all prompts included. With 'exclusion' mode: null = entire connection excluded.")}),W=i({id:e().describe("Unique identifier for the virtual MCP"),title:e().describe("Human-readable name for the virtual MCP"),description:e().nullable().describe("Description of the virtual MCP"),icon:e().nullable().optional().describe("Icon URL for the virtual MCP"),created_at:e().describe("When the virtual MCP was created"),updated_at:e().describe("When the virtual MCP was last updated"),created_by:e().describe("User ID who created the virtual MCP"),updated_by:e().optional().describe("User ID who last updated the virtual MCP"),organization_id:e().describe("Organization ID this virtual MCP belongs to"),tool_selection_mode:_.describe("Tool selection mode: 'inclusion' = include selected, 'exclusion' = exclude selected"),status:c(["active","inactive"]).describe("Current status"),connections:o(y).describe("Connections with their selected tools (behavior depends on tool_selection_mode)")});i({title:e().min(1).max(255).describe("Name for the virtual MCP"),description:e().nullable().optional().describe("Optional description"),tool_selection_mode:_.optional().default("inclusion").describe("Tool selection mode (defaults to 'inclusion')"),icon:e().nullable().optional().describe("Optional icon URL"),status:c(["active","inactive"]).optional().default("active").describe("Initial status"),connections:o(i({connection_id:e().describe("Connection ID"),selected_tools:o(e()).nullable().optional().describe("Selected tool names (null/undefined = all tools or full exclusion)"),selected_resources:o(e()).nullable().optional().describe("Selected resource URIs or patterns with * and ** wildcards (null/undefined = all resources)"),selected_prompts:o(e()).nullable().optional().describe("Selected prompt names (null/undefined = all prompts or full exclusion)")})).describe("Connections to include/exclude (can be empty for exclusion mode)")});i({title:e().min(1).max(255).optional().describe("New name"),description:e().nullable().optional().describe("New description (null to clear)"),tool_selection_mode:_.optional().describe("New tool selection mode"),icon:e().nullable().optional().describe("New icon URL (null to clear)"),status:c(["active","inactive"]).optional().describe("New status"),connections:o(i({connection_id:e().describe("Connection ID"),selected_tools:o(e()).nullable().optional().describe("Selected tool names (null/undefined = all tools or full exclusion)"),selected_resources:o(e()).nullable().optional().describe("Selected resource URIs or patterns with * and ** wildcards (null/undefined = all resources)"),selected_prompts:o(e()).nullable().optional().describe("Selected prompt names (null/undefined = all prompts or full exclusion)")})).optional().describe("New connections (replaces existing)")});export{v as C,w as L,f as O,j as P,W as V,O as i,R as p,M as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as L,e as P,r as v,j as e,c as k}from"./index-964bfDMw.js";import{u as B}from"./virtual-mcp-zquQbLgI.js";import{g as _}from"./constants-CmWKkXWd.js";import{C as R}from"./collection-tab--D0SMzDr.js";import{u as z,a as A}from"./use-connection-Bqsa8RaS.js";import{B as y}from"./button-PodD5p0U.js";import{E as F}from"./empty-state-B-Xm_EaJ.js";import{C as M}from"./collection-header-BmH5wfr6.js";import{a as O,b as H}from"./use-binding-DhM8knFB.js";import{i as T}from"./Loading01-Dk8ucN4u.js";import"./generate-id-Dyweu44Y.js";import"./collection-display-button-Dh09Ilcf.js";import"./dropdown-menu-D9Rmpcp9.js";import"./Grid01-CxjwpfJx.js";import"./ArrowUp-B5D5I-e4.js";import"./Check-BJ8aD04h.js";import"./List-BH4t2L38.js";import"./tooltip-Bdoc9quu.js";import"./view-mode-toggle-C-30gO9H.js";import"./collection-search-4ynn1TPY.js";import"./SearchMd-COziLDJJ.js";import"./input-Ej7Hdv-8.js";import"./card-D-ovGS63.js";import"./Copy01-CzCGcpFB.js";import"./DotsVertical-Q4BfP_OZ.js";import"./Edit01-BeUmNzHw.js";import"./use-list-state-BmjPeRyR.js";import"./use-mobile-CH4OC_dx.js";import"./Trash01-Dz97bbYc.js";import"./collection-table-wrapper-DNSd3m2k.js";import"./empty-state-DqNObyCj.js";import"./Inbox01-C3SZugQ0.js";import"./avatar-BJReLfGX.js";import"./useQuery-B2QbSzDL.js";import"./pin-to-sidebar-button-CYXcrmnE.js";import"./use-organization-settings-BOpggtjG.js";import"./useMutation-BABUvOV4.js";import"./use-collections-xUu5CPtF.js";import"./constants-B4USxFBv.js";import"./alert-dialog-DrQP8AK1.js";import"./Plus-DsxxHM8H.js";import"./layout-CXY5gq_4.js";import"./ArrowLeft-YLXxN85l.js";import"./binder-D69FJEqF.js";function V({title:i,description:t,wellKnownMcp:o,imageSrc:n,onConnected:s}){const r=z(),{org:{slug:m}}=B(),{data:h}=L.useSession(),p=P(),[a,N]=v.useState(!1),l=async()=>{if(!(!o||!h?.user?.id)){N(!0);try{const c=await r.create.mutateAsync(o);s?.(c.id),p({to:"/$org/mcps/$connectionId",params:{org:m,connectionId:c.id}})}finally{N(!1)}}},j=()=>{p({to:"/$org/mcps",params:{org:m},search:{action:"create"}})};return e.jsx(F,{image:n?e.jsx("img",{src:n,alt:i,width:336,height:320,className:"max-w-full h-auto"}):null,title:i,description:t,actions:e.jsxs(e.Fragment,{children:[e.jsxs(y,{variant:"outline",onClick:l,disabled:a||!o,children:[o?.icon&&e.jsx("img",{src:o.icon,alt:"",className:"size-4"}),a?"Installing...":`Install ${o?.title||"MCP"}`]}),e.jsx(y,{variant:"outline",onClick:j,children:"Custom Connection"})]})})}function q(i){const t=k.c(28),{bindingName:o,collectionName:n,title:s,emptyState:r,wellKnownMcp:m}=i,{org:h}=B(),p=A();let a;t[0]!==p||t[1]!==o?(a={connections:p,binding:o},t[0]=p,t[1]=o,t[2]=a):a=t[2];const l=O(a)[0],j=H(l);let c;if(t[3]!==n||t[4]!==j){let C;t[6]!==n?(C=$=>$.name.toLowerCase()===n.toLowerCase(),t[6]=n,t[7]=C):C=t[7],c=j.find(C),t[3]=n,t[4]=j,t[5]=c}else c=t[5];const S=c,[E,W]=v.useState(null),b=l&&S&&(l.id||E);let d;t[8]!==s?(d=e.jsx(M,{title:s}),t[8]=s,t[9]=d):d=t[9];let I;t[10]===Symbol.for("react.memo_cache_sentinel")?(I=e.jsx(T,{size:32,className:"animate-spin text-muted-foreground mb-4"}),t[10]=I):I=t[10];let f;t[11]!==s?(f=s.toLowerCase(),t[11]=s,t[12]=f):f=t[12];let u;t[13]!==f?(u=e.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[I,e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Loading ",f,"..."]})]}),t[13]=f,t[14]=u):u=t[14];let g;t[15]!==S||t[16]!==l||t[17]!==r||t[18]!==h||t[19]!==b||t[20]!==m?(g=b?e.jsx(R,{connectionId:l.id,org:h.slug,activeCollection:S}):e.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:e.jsx(V,{title:r.title,description:r.description,wellKnownMcp:m,imageSrc:r.imageSrc,onConnected:C=>{W(C)}})}),t[15]=S,t[16]=l,t[17]=r,t[18]=h,t[19]=b,t[20]=m,t[21]=g):g=t[21];let x;t[22]!==u||t[23]!==g?(x=e.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:e.jsx(v.Suspense,{fallback:u,children:g})}),t[22]=u,t[23]=g,t[24]=x):x=t[24];let w;return t[25]!==d||t[26]!==x?(w=e.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[d,x]}),t[25]=d,t[26]=x,t[27]=w):w=t[27],w}function Rt(){const i=k.c(1);let t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(q,{bindingName:"WORKFLOW",collectionName:"workflow",title:"Workflows",emptyState:{title:"Create Workflows",description:"Install MCP Studio to create and manage automated workflows with multiple steps and integrations."},wellKnownMcp:_()}),i[0]=t):t=i[0],t}export{Rt as default};
|
package/dist/client/index.html
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<title>MCP Mesh</title>
|
|
5
5
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
6
|
-
<script type="module" crossorigin src="/assets/index-
|
|
7
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
6
|
+
<script type="module" crossorigin src="/assets/index-964bfDMw.js"></script>
|
|
7
|
+
<link rel="stylesheet" crossorigin href="/assets/index-D86tzVve.css">
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
<div id="root"></div>
|