decocms 3.35.1 → 3.35.2
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-asB0zjf2.js → AlertCircle-DkwUf9y1.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-DRnt_VKh.js → ArrowUpRight-BUkBkD3O.js} +1 -1
- package/dist/client/assets/{Check-CNRVH6xs.js → Check-C_31_MJb.js} +1 -1
- package/dist/client/assets/{CheckCircle-B7v5_MG4.js → CheckCircle-Cpbk7Z8F.js} +1 -1
- package/dist/client/assets/{ChevronDown-BKkz3Gyp.js → ChevronDown-ciuU2nWp.js} +1 -1
- package/dist/client/assets/{ChevronLeft-DkMFugke.js → ChevronLeft-ZCv3UA1e.js} +1 -1
- package/dist/client/assets/{ChevronRight-DixPnH3V.js → ChevronRight-CFv-fKpX.js} +1 -1
- package/dist/client/assets/{ChevronUp-BeDEmrn1.js → ChevronUp-C64rGI06.js} +1 -1
- package/dist/client/assets/{Container-C41D-bwR.js → Container-BNV-9MJ8.js} +1 -1
- package/dist/client/assets/{DotsVertical-DimB1qZR.js → DotsVertical-Cv0q4Ifl.js} +1 -1
- package/dist/client/assets/{Eye-CFpoJQMe.js → Eye-BWJG0owY.js} +1 -1
- package/dist/client/assets/{FilterLines-htpqKUqo.js → FilterLines-B1BriWf_.js} +1 -1
- package/dist/client/assets/{Globe01-CxF-Z8O2.js → Globe01-BOlA5Q_4.js} +1 -1
- package/dist/client/assets/{HardDrive-TXw7C9gB.js → HardDrive-DHZcIBpx.js} +1 -1
- package/dist/client/assets/{Key01-CDAkGspz.js → Key01-5jFctNvh.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BG08KNqc.js → LayoutLeft-DbIVXyve.js} +1 -1
- package/dist/client/assets/{LinkExternal01-AylVRyuU.js → LinkExternal01-CqMwbx5t.js} +1 -1
- package/dist/client/assets/{Monitor01-gdKmZQTW.js → Monitor01-gHJrCrOh.js} +1 -1
- package/dist/client/assets/{Palette-D9_6t0uI.js → Palette-DqVojGBm.js} +1 -1
- package/dist/client/assets/{Play-aa6uUei5.js → Play-BXDltgp7.js} +1 -1
- package/dist/client/assets/{Plus-DcxLSicT.js → Plus-CW5uSNYz.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-Dd5D2uNm.js → RefreshCcw01-CWaUwErM.js} +1 -1
- package/dist/client/assets/{SearchMd-2GibIebB.js → SearchMd-Bz4Ykghd.js} +1 -1
- package/dist/client/assets/{Settings02-D0kdZjJD.js → Settings02-DLDnTjHy.js} +1 -1
- package/dist/client/assets/{Shield01-CpxvRW7h.js → Shield01-BIILGcyJ.js} +1 -1
- package/dist/client/assets/{Star01-BVQUiqS1.js → Star01-Dw_jqiQj.js} +1 -1
- package/dist/client/assets/{Stars01-B2PA7s4d.js → Stars01-EGK20_72.js} +1 -1
- package/dist/client/assets/{Stars02-BFz8RQ16.js → Stars02-CyyQqj9H.js} +1 -1
- package/dist/client/assets/{Sun-DMcKqqHE.js → Sun-DjmglJiH.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-qUOmQUUG.js → SwitchHorizontal01-a-r60L2U.js} +1 -1
- package/dist/client/assets/{Tool01-DNz0OMpT.js → Tool01-B8aRmzPo.js} +1 -1
- package/dist/client/assets/{Trash01-rpak8qu1.js → Trash01-D5mmvxxB.js} +1 -1
- package/dist/client/assets/{Upload01-d_Wyw7QT.js → Upload01-CYVliRf6.js} +1 -1
- package/dist/client/assets/{User01-BWllfXHj.js → User01-igKL-FIP.js} +1 -1
- package/dist/client/assets/{Users01-DG6YdAo1.js → Users01-DGPeGDAl.js} +1 -1
- package/dist/client/assets/{Users03-B9AqN8LK.js → Users03-59Bl-ju-.js} +1 -1
- package/dist/client/assets/{X-DxE022Fo.js → X-Zx6WnCka.js} +1 -1
- package/dist/client/assets/{XCircle-B_UH_gQt.js → XCircle-BI7HvisP.js} +1 -1
- package/dist/client/assets/{XClose-DOt_DYPz.js → XClose-knQz_HAN.js} +1 -1
- package/dist/client/assets/{Zap-CyMJw7DY.js → Zap-CCChCiD-.js} +1 -1
- package/dist/client/assets/{ZapSquare-Dz4Qok6x.js → ZapSquare-BlkUA5sB.js} +1 -1
- package/dist/client/assets/{ZoomOut-BkCtUzuC.js → ZoomOut-C-DjvL5K.js} +1 -1
- package/dist/client/assets/{access-gate-u6bqRJWi.js → access-gate-DXAe84jj.js} +1 -1
- package/dist/client/assets/{accordion-B7oL0ZOw.js → accordion-BlkUK2b8.js} +1 -1
- package/dist/client/assets/{add-section-modal-DI1aX1UO.js → add-section-modal-CeJkvxLi.js} +1 -1
- package/dist/client/assets/{agent-capabilities-BxQUOIVO.js → agent-capabilities-DbrB1URH.js} +1 -1
- package/dist/client/assets/{agent-icon-BrUPk7cd.js → agent-icon-C4vLfyZT.js} +1 -1
- package/dist/client/assets/{agent-icons-oFY-K2bC.js → agent-icons-BaxWTu1S.js} +1 -1
- package/dist/client/assets/{agents-list-BOxJitnX.js → agents-list-CmTUYZJS.js} +1 -1
- package/dist/client/assets/{ai-providers-DjvmZlJ5.js → ai-providers-DHoxdiMk.js} +1 -1
- package/dist/client/assets/{alert-8WGQf_5q.js → alert-Bw1ORE7l.js} +1 -1
- package/dist/client/assets/{alert-dialog-DUUnhBc6.js → alert-dialog-DmwO1wKa.js} +1 -1
- package/dist/client/assets/app-editor-DZU371gg.js +1 -0
- package/dist/client/assets/{auth-catchall-_asaISim.js → auth-catchall-BKWUHHRQ.js} +1 -1
- package/dist/client/assets/{auth-DTxUlSLU.js → auth-jf8Ueqtd.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DU0bpIBM.js → auth-split-layout-DRwMHkyX.js} +1 -1
- package/dist/client/assets/{automation-list-row-atv_xAlK.js → automation-list-row-DjCxfkOO.js} +1 -1
- package/dist/client/assets/{automation-runs-8yvWAbAC.js → automation-runs-CW_yJDML.js} +1 -1
- package/dist/client/assets/{automations-B1IxT7Wc.js → automations-cjNb_nRD.js} +1 -1
- package/dist/client/assets/{avatar-BqYC23h9.js → avatar-DdLkUzB6.js} +1 -1
- package/dist/client/assets/{badge-CGZjMX2o.js → badge-CKyeE-oo.js} +1 -1
- package/dist/client/assets/{brand-context-Dki54pAn.js → brand-context-Dbw-HLYi.js} +1 -1
- package/dist/client/assets/{buckets-BgnqByrS.js → buckets-Bu7h0_Hd.js} +1 -1
- package/dist/client/assets/{calendar-CaIJu6mx.js → calendar-0t1uXfLL.js} +1 -1
- package/dist/client/assets/{capability-load-error-DWbE5k9a.js → capability-load-error-DY55FeJ6.js} +1 -1
- package/dist/client/assets/{card-BlzflWCA.js → card-DP32GBOf.js} +1 -1
- package/dist/client/assets/{chat-context-BUN4BStS.js → chat-context-DK-AWUQz.js} +1 -1
- package/dist/client/assets/{checkbox-C1s8UE6Y.js → checkbox-DUa9wb8T.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DOMHymP7.js → cli-auth-success-Daqunv5H.js} +1 -1
- package/dist/client/assets/{collection-detail-Fe7fYzy1.js → collection-detail-5UYGpD4U.js} +1 -1
- package/dist/client/assets/{collection-display-button-CTi0VUGU.js → collection-display-button-D6VmVMvk.js} +1 -1
- package/dist/client/assets/{collection-search-CJ5Ov7mh.js → collection-search-jOlxOkeZ.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BMZaf4HK.js → collection-table-wrapper-CM2GZd4j.js} +1 -1
- package/dist/client/assets/{collection-tabs-zuvlZo6K.js → collection-tabs-DvXat67P.js} +1 -1
- package/dist/client/assets/{collections-Dg2-DQoz.js → collections-xWz9Ka4y.js} +1 -1
- package/dist/client/assets/{command-ETJRln9I.js → command-14UC_LgG.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-Ccy-ptqT.js → connect-desktop-dialog-DVqHifor.js} +1 -1
- package/dist/client/assets/{connection-card-BryVkZk7.js → connection-card-W6kS50Xm.js} +1 -1
- package/dist/client/assets/{connection-detail-KbHJGNLa.js → connection-detail-BbS7VfwB.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-C9SsVHwd.js → connection-form-helpers-jyOtcSIt.js} +1 -1
- package/dist/client/assets/{connections-C-B_pHNS.js → connections-DmawYjy9.js} +1 -1
- package/dist/client/assets/decopilot-sse-pool-CwSrVgbm.js +1 -0
- package/dist/client/assets/{dialog-dItkri_7.js → dialog-DPVJEPrK.js} +1 -1
- package/dist/client/assets/{domain-settings-Cwl6OKHc.js → domain-settings-BdF9eKHz.js} +1 -1
- package/dist/client/assets/{drawer-CiKI2xvg.js → drawer-BXyUyCQL.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DA6--pO3.js → dropdown-menu-DOlfrN75.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-DvjE2kdj.js → dynamic-plugin-layout-DIyMBeV4.js} +1 -1
- package/dist/client/assets/{empty-state-ubN3bG68.js → empty-state-CmddJMwD.js} +1 -1
- package/dist/client/assets/{empty-state-Wjey2haZ.js → empty-state-xh_20twO.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BUZFKLkD.js → extract-connection-data-DqaTmzNL.js} +1 -1
- package/dist/client/assets/{features-wYfaVlaa.js → features-DnOEdSHo.js} +1 -1
- package/dist/client/assets/{file-explorer-uNvjlPcF.js → file-explorer-C657nvDI.js} +1 -1
- package/dist/client/assets/{file-type-icon-BC52hPZD.js → file-type-icon-D93vAYh4.js} +1 -1
- package/dist/client/assets/{files-DCMyG2Qq.js → files-B8jmDdpO.js} +1 -1
- package/dist/client/assets/{form-BvrZIBZy.js → form-EYtxKS6a.js} +1 -1
- package/dist/client/assets/{general-CVh1dm4M.js → general-B2htYYmc.js} +1 -1
- package/dist/client/assets/{generate-id-BYzu1jEq.js → generate-id-BlA-3dpa.js} +1 -1
- package/dist/client/assets/{github-repo-picker-D-39cmmm.js → github-repo-picker-CN9VGWSw.js} +1 -1
- package/dist/client/assets/{header-tab-button-eoCiDxtu.js → header-tab-button-zGw57zar.js} +1 -1
- package/dist/client/assets/{hover-card-DuwXdrhz.js → hover-card-CyNrGP46.js} +1 -1
- package/dist/client/assets/{image-field-BctFTejU.js → image-field-CRg7FKDt.js} +1 -1
- package/dist/client/assets/{index-CYZk0gv3.js → index-BFzXRFgv.js} +1 -1
- package/dist/client/assets/{index-BN_h4BrS.js → index-Bql2Wqwg.js} +1 -1
- package/dist/client/assets/{index-BOvqwG23.js → index-C7fNNl96.js} +1 -1
- package/dist/client/assets/{index-BMYBcbtc.js → index-COo7MQNq.js} +1 -1
- package/dist/client/assets/{index-DkJOKUiK.js → index-D2JLfz42.js} +1 -1
- package/dist/client/assets/{index-CQVYoK7e.js → index-DFboBiZx.js} +1 -1
- package/dist/client/assets/{index-Dv-yFpKM.js → index-DnIoj8fl.js} +3 -3
- package/dist/client/assets/{index-DkBXivRM.js → index-DxTO1Vau.js} +1 -1
- package/dist/client/assets/{index-Dilf6iGE.js → index-LekHmrTG.js} +1 -1
- package/dist/client/assets/{index-CfhwhmtA.js → index-NebhiVVQ.js} +1 -1
- package/dist/client/assets/{index-DFBJ_PWq.js → index-Q2jKm_ff.js} +1 -1
- package/dist/client/assets/{index-B6rgjRY6.js → index-RgwViKsx.js} +1 -1
- package/dist/client/assets/{index-CyhU99S0.js → index-ltKXKiQ2.js} +1 -1
- package/dist/client/assets/{index-7TDtRiUY.js → index-o7c8QKYO.js} +4 -4
- package/dist/client/assets/{index-redirect-C0KSMoT0.js → index-redirect-C7lzzPeT.js} +1 -1
- package/dist/client/assets/{index-cSwj9er3.js → index-tWFPBDUb.js} +1 -1
- package/dist/client/assets/{input-B16LqKMQ.js → input-kFc4cqln.js} +1 -1
- package/dist/client/assets/{integration-icon-7cYHs9rV.js → integration-icon-D3EQp4Fu.js} +1 -1
- package/dist/client/assets/{label-DfTmRnMe.js → label-Bvw0Ied9.js} +1 -1
- package/dist/client/assets/{layout-BCfLVStg.js → layout-Ca-s_wnC.js} +1 -1
- package/dist/client/assets/{login-BQe_0Uvb.js → login-CX7-TkZm.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BoL_9gDY.js → mcp-oauth-jiIVtUUC.js} +1 -1
- package/dist/client/assets/{members-DjEZG3vo.js → members-BLERW5ar.js} +1 -1
- package/dist/client/assets/{monaco-editor-CEYWUBYY.js → monaco-editor-MWSSoG2S.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Bn6k8FMZ.js → monitoring-stats-row-EcWn-b5L.js} +1 -1
- package/dist/client/assets/{oauth-callback-RkcrzPY9.js → oauth-callback-DErfvA_e.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-5c5f08wA.js → oauth-callback-ai-provider-B2CeVkps.js} +1 -1
- package/dist/client/assets/{onboarding-DgNS0nCK.js → onboarding-D1OquzOs.js} +1 -1
- package/dist/client/assets/{org-install-BAqLW3a2.js → org-install-CP6GafaT.js} +1 -1
- package/dist/client/assets/{org-layout--7cqwMMu.js → org-layout-BKiOkIR9.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-oYg4_27L.js → org-plugin-layout-aVdWNCe2.js} +1 -1
- package/dist/client/assets/{page-seo-form-BPPrLLbX.js → page-seo-form-63_BP4Z5.js} +1 -1
- package/dist/client/assets/page-seo-sheet-CgQ_3iup.js +1 -0
- package/dist/client/assets/{pair-rD44zBRY.js → pair-CC2q5WhY.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-BrE2fclx.js → plugin-empty-state-C8J8IuVQ.js} +1 -1
- package/dist/client/assets/{plugin-header-K2albhDB.js → plugin-header-CQ-0B9QL.js} +1 -1
- package/dist/client/assets/{plugin-layout-QWYZgGti.js → plugin-layout-1OlgHiyb.js} +1 -1
- package/dist/client/assets/{popover-BneLTlXE.js → popover-DFBV-kft.js} +1 -1
- package/dist/client/assets/{post-editor-DtVXF5Vi.js → post-editor-RC0nSinu.js} +1 -1
- package/dist/client/assets/{primitives-CGyfTuZM.js → primitives-Dj8whdvu.js} +1 -1
- package/dist/client/assets/{profile-DyIp4_Sh.js → profile-C1y0Wzbe.js} +1 -1
- package/dist/client/assets/project-app-view-CDg0Ipzu.js +1 -0
- package/dist/client/assets/record-editor-C8D-bch6.js +1 -0
- package/dist/client/assets/registry-DwqBhaO7.js +2 -0
- package/dist/client/assets/{registry-layout-D_1w2T32.js → registry-layout-CRdtAXEl.js} +1 -1
- package/dist/client/assets/{require-capability-BYMVx09Z.js → require-capability-CJqD_sNw.js} +1 -1
- package/dist/client/assets/{required-auth-layout-cXbsWfNV.js → required-auth-layout-DVQqpR9U.js} +1 -1
- package/dist/client/assets/{reset-password-CUBQj13G.js → reset-password-6kMSCjoE.js} +1 -1
- package/dist/client/assets/{resizable-DTSOtBpc.js → resizable-BCts7Hoe.js} +1 -1
- package/dist/client/assets/{roles-CNJV2xc7.js → roles-Tffk7a5z.js} +1 -1
- package/dist/client/assets/save-referenced-block-BPZ9GwRm.js +1 -0
- package/dist/client/assets/{save-status-CFFENSy0.js → save-status-CgWmFzXD.js} +1 -1
- package/dist/client/assets/{schema-form-EY1QOp8v.js → schema-form-WouwDdYp.js} +1 -1
- package/dist/client/assets/{scroll-area-CGmfUT4q.js → scroll-area-DXdZCfi_.js} +1 -1
- package/dist/client/assets/{search-input-nds5g8eq.js → search-input-B3XYdfeF.js} +1 -1
- package/dist/client/assets/{secrets-D9isT8UG.js → secrets-CbDoNw3q.js} +1 -1
- package/dist/client/assets/{sections-editor-Bdjt3M_c.js → sections-editor-BmHJWIlu.js} +1 -1
- package/dist/client/assets/{select-CXfOBpVA.js → select-B_xVBVbm.js} +1 -1
- package/dist/client/assets/{select-model-BLS2zNwN.js → select-model-DkF6uTkV.js} +1 -1
- package/dist/client/assets/{seo-editor-COMkxwHv.js → seo-editor-CSzOD8a1.js} +1 -1
- package/dist/client/assets/{settings-layout-B65ypXYb.js → settings-layout-CmjQb7Ht.js} +1 -1
- package/dist/client/assets/{settings-section-ysm1dXbe.js → settings-section-BTddWHA-.js} +1 -1
- package/dist/client/assets/{sheet-DwJxE17f.js → sheet-B3GYGLhe.js} +1 -1
- package/dist/client/assets/{shell-controls-CghaJ_r9.js → shell-controls-CD1e_u6K.js} +1 -1
- package/dist/client/assets/{shell-layout-BI3SgcG0.js → shell-layout-Cgwg5QF3.js} +1 -1
- package/dist/client/assets/{shell-route-loading-BQp4nxMc.js → shell-route-loading-COeh_aex.js} +1 -1
- package/dist/client/assets/{sidebar-nhuTSqFS.js → sidebar-kyVuWucL.js} +1 -1
- package/dist/client/assets/{skeleton-DcZkQ-WQ.js → skeleton-CyRCN25X.js} +1 -1
- package/dist/client/assets/{sortable.esm-BJmSIQN6.js → sortable.esm-C7P-vU6-.js} +1 -1
- package/dist/client/assets/{spinner-C76OMH7i.js → spinner-B62HtwxP.js} +1 -1
- package/dist/client/assets/{sso-Biwe8B2Y.js → sso-CFgdcP4X.js} +1 -1
- package/dist/client/assets/{store-DPy_WrJu.js → store-DD3q7khp.js} +1 -1
- package/dist/client/assets/store-registry-DmaUBXDq.js +2 -0
- package/dist/client/assets/{studio-tools-DP4PwlLL.js → studio-tools-CYvl10tJ.js} +1 -1
- package/dist/client/assets/{switch-Dlc-euH4.js → switch-9AraHuPG.js} +1 -1
- package/dist/client/assets/{tab-id-DrxIMKZC.js → tab-id-DiaWi79N.js} +1 -1
- package/dist/client/assets/{table-BY5hmAW9.js → table-D-eZ2Wly.js} +1 -1
- package/dist/client/assets/{tabs-MktB_dq3.js → tabs-DNIUI4W6.js} +1 -1
- package/dist/client/assets/{task-status-Bkjp3y0Q.js → task-status-CDkG-N6p.js} +1 -1
- package/dist/client/assets/{textarea-Dc7UpW7V.js → textarea-BuPx5SDQ.js} +1 -1
- package/dist/client/assets/{toggle-group-PAs-hpFv.js → toggle-group-BgDlmAc0.js} +1 -1
- package/dist/client/assets/{toolbar-CCipnjie.js → toolbar-WIS1-2Sy.js} +1 -1
- package/dist/client/assets/{tools-list-D8vEf5kn.js → tools-list-D6uq4MrN.js} +1 -1
- package/dist/client/assets/{tooltip-DyNW-AXf.js → tooltip-DG-C65pd.js} +1 -1
- package/dist/client/assets/{types-DYMMjWos.js → types-7_L4W6Tu.js} +1 -1
- package/dist/client/assets/{use-ai-providers-C1UbdVdO.js → use-ai-providers-C3HTrKhd.js} +1 -1
- package/dist/client/assets/{use-automations-DFVkTFjl.js → use-automations-QDhIwpIJ.js} +1 -1
- package/dist/client/assets/{use-capability-Bw0k887i.js → use-capability-DQgRY6_x.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DMfzqE_6.js → use-clock-tick-CwR4C3CJ.js} +1 -1
- package/dist/client/assets/{use-collections-DGD5HYrs.js → use-collections-DjJTRpo_.js} +1 -1
- package/dist/client/assets/{use-connection-XtO-eFJi.js → use-connection-DUYQMDLQ.js} +1 -1
- package/dist/client/assets/{use-copy-fHv0q1pV.js → use-copy-9rW5ZwZw.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DTGwia7F.js → use-create-virtual-mcp-DZIq-rHQ.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-nDLl3CCi.js → use-debounced-autosave-4TUEEtao.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CWxG7WKN.js → use-delete-connection-BSxNsHg_.js} +1 -1
- package/dist/client/assets/{use-file-configs-DhxZBYOT.js → use-file-configs-CiOc-9XG.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-D4S3aGR5.js → use-infinite-scroll-HMRo8z7S.js} +1 -1
- package/dist/client/assets/{use-list-state-Cx82QFu_.js → use-list-state-D5-adRnk.js} +1 -1
- package/dist/client/assets/{use-mcp-client-C8ZwZB20.js → use-mcp-client-DAanazcB.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-D2owAcPE.js → use-mcp-prompts-BJhG10VU.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BW-64A4f.js → use-mcp-tools-BZ5C7mX8.js} +1 -1
- package/dist/client/assets/{use-members-DPyxvdDj.js → use-members-oxzMf6HC.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-B9d6Q1VR.js → use-navigate-to-agent-Cvb4b2dj.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BTTZUjKk.js → use-org-auth-client-4XCuGX_0.js} +1 -1
- package/dist/client/assets/{use-org-sso-B1KJDg2R.js → use-org-sso-C3JjHGLM.js} +1 -1
- package/dist/client/assets/{use-organization-roles-zS-vWU34.js → use-organization-roles-CE1F99xu.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CCLHoFg6.js → use-organization-settings-BDQcymx3.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CAyIHNjF.js → use-registry-connections-Btr8vraI.js} +1 -1
- package/dist/client/assets/{use-secrets-CtwUwXaf.js → use-secrets-aNG7boBI.js} +1 -1
- package/dist/client/assets/{use-status-sounds-B27SY7cH.js → use-status-sounds-CRlMq1Od.js} +1 -1
- package/dist/client/assets/{use-view-mode-BRITAZ4S.js → use-view-mode-DaIWDL_S.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DLQJqd7d.js → use-virtual-mcp-B4MbUdTW.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Dal3RT3l.js +1 -0
- package/dist/client/assets/{useRouterState-Y1aLUix_.js → useRouterState-DuGUZA7B.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CqnU8D2I.js +1 -0
- package/dist/client/assets/{user-CLXOG3Qm.js → user-BWs1Xtr6.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-D_5X7-ae.js → view-mode-toggle-G-KCK_xv.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-rXavNycp.js → watch-sse-pool-BVVVT94i.js} +1 -1
- package/dist/client/assets/{workflow-Bq61DMkg.js → workflow-CQ33bXoz.js} +1 -1
- package/dist/client/assets/workflow-detail-Di_0eyvg.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/app-editor-8bhdvSJz.js +0 -1
- package/dist/client/assets/decopilot-sse-pool-BYcZYovC.js +0 -1
- package/dist/client/assets/page-seo-sheet-B3ue-ZRT.js +0 -1
- package/dist/client/assets/project-app-view-LYHB1B7I.js +0 -1
- package/dist/client/assets/record-editor-CoIz7HmY.js +0 -1
- package/dist/client/assets/registry-DusjF1MY.js +0 -2
- package/dist/client/assets/save-referenced-block-R6f1-KeE.js +0 -1
- package/dist/client/assets/store-registry-D7UNS3l2.js +0 -2
- package/dist/client/assets/useInfiniteQuery-G_6i7LOo.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BhcYyKm_.js +0 -1
- package/dist/client/assets/workflow-detail-BJvoV5gO.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{da as tc,e2 as Fe,bU as Os,R as oe,Q as ge,aH as ti,cs as _i,aE as Ie,bS as mt,bm as Ve,aF as mr,e3 as rn,P as _e,e4 as Ii,e5 as ws,e6 as nc,cq as rc,e7 as ia,e8 as ic,e9 as sc,ea as oc,cg as sa,c8 as ac,b7 as ze,cr as lc,aG as On,bz as Ti,eb as cc,r as N,j as w,ec as oa,d9 as uc}from"./index-Dv-yFpKM.js";import{A as aa,d as fc,e as dc,n as hc,f as pc,C as mc}from"./use-mcp-client-C8ZwZB20.js";import{U as fn,b as Cr,c as xs}from"./auth-DTxUlSLU.js";import{B as Ci,c as Pi}from"./collections-Dg2-DQoz.js";import{R as Es}from"./index-CYZk0gv3.js";function yc(){const e=new aa({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0,code:{optimize:!1}});return tc(e),e}class gc{#e=yc();#t=new Map;#n=new WeakMap;getValidator(t){const n=this.#n.get(t);if(n)return n;const r=bc(t);let i=this.#t.get(r);i||(i=this.#e.compile(t),this.#t.set(r,i));const s=i,o=a=>s(a)?{valid:!0,data:a,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this.#e.errorsText(s.errors)};return this.#n.set(t,o),o}}function bc(e){return JSON.stringify(e,(t,n)=>n&&typeof n=="object"&&!Array.isArray(n)?Object.fromEntries(Object.keys(n).sort().map(r=>[r,n[r]])):n)}const Sc=new gc;var vc=class{apply(e,t){if(!t.type)return;const n=Array.isArray(t.type)?t.type:[t.type],r=new Set(n);if(r.has("string")||(e.string=!1),!r.has("number")&&!r.has("integer")&&(e.number=!1),r.has("boolean")||(e.boolean=!1),r.has("null")||(e.null=!1),r.has("array")||(e.array=!1),r.has("object")||(e.object=!1),r.has("integer")&&e.number!==!1){const i=e.number||ge();i instanceof rn&&(e.number=i.int())}}},Oc=class{apply(e,t){if(t.const===void 0)return;const n=t.const;e.string=!1,e.number=!1,e.boolean=!1,e.null=!1,e.array=!1,e.object=!1,typeof n=="string"?e.string=Ve(n):typeof n=="number"?e.number=Ve(n):typeof n=="boolean"?e.boolean=Ve(n):n===null?e.null=_i():Array.isArray(n)?e.array=void 0:typeof n=="object"&&(e.object=void 0)}},wc=class{apply(e,t){if(!t.enum)return;if(t.enum.length===0){t.type||(e.string=!1,e.number=!1,e.boolean=!1,e.null=!1,e.array=!1,e.object=!1);return}const n={string:t.enum.filter(r=>typeof r=="string"),number:t.enum.filter(r=>typeof r=="number"),boolean:t.enum.filter(r=>typeof r=="boolean"),null:t.enum.filter(r=>r===null),array:t.enum.filter(r=>Array.isArray(r)),object:t.enum.filter(r=>typeof r=="object"&&r!==null&&!Array.isArray(r))};e.string=this.createTypeSchema(n.string,"string"),e.number=this.createTypeSchema(n.number,"number"),e.boolean=this.createTypeSchema(n.boolean,"boolean"),e.null=n.null.length>0?_i():!1,e.array=n.array.length>0?void 0:!1,e.object=n.object.length>0?void 0:!1}createTypeSchema(e,t){if(e.length===0)return!1;if(e.length===1)return Ve(e[0]);if(t==="string")return mr(e);if(t==="number"){const[n,r,...i]=e;return mt([Ve(n),Ve(r),...i.map(s=>Ve(s))])}return t==="boolean"?mt([Ve(!0),Ve(!1)]):!1}},xc=class{apply(e,t){const n=t;if(n.type==="string"&&n.format==="binary"&&n.contentEncoding==="binary"){let r=oc();n.minLength!==void 0&&(r=r.min(n.minLength)),n.maxLength!==void 0&&(r=r.max(n.maxLength)),n.contentMediaType!==void 0&&(r=r.mime(n.contentMediaType)),e.file=r,e.string=!1}}},Ec=class{apply(e,t){const n=t;t.type===void 0&&(n.minLength!==void 0||n.maxLength!==void 0||n.pattern!==void 0)&&e.string===void 0&&(e.string=oe())}},Ac=class{apply(e,t){const n=t;if(n.minLength!==void 0&&e.string!==!1){const r=e.string||oe();r instanceof Ii&&(e.string=r.refine(i=>Array.from(i).length>=n.minLength,{message:`String must be at least ${n.minLength} characters long`}))}}},_c=class{apply(e,t){const n=t;if(n.maxLength!==void 0&&e.string!==!1){const r=e.string||oe();r instanceof Ii&&(e.string=r.refine(i=>Array.from(i).length<=n.maxLength,{message:`String must be at most ${n.maxLength} characters long`}))}}},Ic=class{apply(e,t){const n=t;if(n.pattern&&e.string!==!1){const r=e.string||oe();if(r instanceof Ii){const i=new RegExp(n.pattern);e.string=r.regex(i)}}}},Tc=class{apply(e,t){const n=t;if(n.minimum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.min(n.minimum))}}},Cc=class{apply(e,t){const n=t;if(n.maximum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.max(n.maximum))}}},Pc=class{apply(e,t){const n=t;if(n.exclusiveMinimum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(typeof n.exclusiveMinimum=="number"?e.number=r.gt(n.exclusiveMinimum):e.number=!1)}}},Fc=class{apply(e,t){const n=t;if(n.exclusiveMaximum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(typeof n.exclusiveMaximum=="number"?e.number=r.lt(n.exclusiveMaximum):e.number=!1)}}},jc=class{apply(e,t){const n=t;if(n.multipleOf!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.refine(i=>{if(n.multipleOf===0)return!1;const s=i/n.multipleOf,o=Math.round(s),a=Math.min(Math.abs(i)*Number.EPSILON*10,Math.abs(n.multipleOf)*Number.EPSILON*10);return Math.abs(s-o)<=a/Math.abs(n.multipleOf)},{message:`Must be a multiple of ${n.multipleOf}`}))}}},$c=class{apply(e,t){const n=t;t.type===void 0&&(n.minItems!==void 0||n.maxItems!==void 0||n.items!==void 0||n.prefixItems!==void 0)&&e.array===void 0&&(e.array=Ie(Fe()))}},Dc=class{apply(e,t){const n=t;n.minItems!==void 0&&e.array!==!1&&(e.array=(e.array||Ie(Fe())).min(n.minItems))}},Nc=class{apply(e,t){const n=t;n.maxItems!==void 0&&e.array!==!1&&(e.array=(e.array||Ie(Fe())).max(n.maxItems))}},Rc=class{apply(e,t){const n=t;if(e.array!==!1)if(Array.isArray(n.items))e.array=e.array||Ie(Fe());else if(n.items&&typeof n.items!="boolean"&&!n.prefixItems){const r=Ae(n.items);let i=Ie(r);if(e.array&&e.array instanceof nc){const s=e.array._def;s.checks&&s.checks.forEach(o=>{if(o._zod&&o._zod.def){const a=o._zod.def;a.check==="min_length"&&a.minimum!==void 0?i=i.min(a.minimum):a.check==="max_length"&&a.maximum!==void 0&&(i=i.max(a.maximum))}})}e.array=i}else typeof n.items=="boolean"&&n.items===!1?n.prefixItems?e.array=e.array||Ie(Fe()):e.array=Ie(Fe()).max(0):typeof n.items=="boolean"&&n.items===!0?e.array=e.array||Ie(Fe()):n.prefixItems&&(e.array=e.array||Ie(Fe()))}},Mc=class{apply(e,t){if(t.type!=="array")return;const n=t;if(!Array.isArray(n.items)||e.array===!1)return;const r=n.items.map(s=>Ae(s));let i;r.length===0?i=ws([]):i=ws(r),n.minItems!==void 0&&n.minItems>r.length&&(i=!1),n.maxItems!==void 0&&n.maxItems<r.length&&(i=!1),e.tuple=i,e.array=!1}},Uc=class{apply(e,t){const n=t;e.object!==!1&&(n.properties||n.required||n.additionalProperties!==void 0)&&(e.object=e.object||_e({}).passthrough())}},kc=class{apply(e,t){const n=t;t.type===void 0&&(n.maxProperties!==void 0||n.minProperties!==void 0)&&e.object===void 0&&(e.object=_e({}).passthrough())}},Lc=class{apply(e,t){const n=t;if(n.maxProperties!==void 0&&e.object!==!1){const r=e.object||_e({}).passthrough();e.object=r.refine(i=>Object.keys(i).length<=n.maxProperties,{message:`Object must have at most ${n.maxProperties} properties`})}}},Bc=class{apply(e,t){const n=t;if(n.minProperties!==void 0&&e.object!==!1){const r=e.object||_e({}).passthrough();e.object=r.refine(i=>Object.keys(i).length>=n.minProperties,{message:`Object must have at least ${n.minProperties} properties`})}}};function Cn(e,t){if(e===t)return!0;if(e==null||t==null)return e===t;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t))return e.length!==t.length?!1:e.every((n,r)=>Cn(n,t[r]));if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:n.every(i=>r.includes(i)&&Cn(e[i],t[i]))}return!1}function Wc(){return e=>{if(!Array.isArray(e))return!0;const t=[];return e.every(n=>t.some(i=>Cn(n,i))?!1:(t.push(n),!0))}}function cr(e,t){return e.safeParse(t).success}var Vc=class{apply(e,t){if(!t.not)return e;const n=Ae(t.not);return e.refine(r=>!cr(n,r),{message:"Value must not match the 'not' schema"})}},qc=class{apply(e,t){return t.uniqueItems!==!0?e:e.refine(Wc(),{message:"Array items must be unique"})}},Hc=class{apply(e,t){return!t.allOf||t.allOf.length===0?e:t.allOf.map(r=>Ae(r)).reduce((r,i)=>ia(r,i),e)}},Kc=class{apply(e,t){if(!t.anyOf||t.anyOf.length===0)return e;const n=t.anyOf.length===1?Ae(t.anyOf[0]):mt([Ae(t.anyOf[0]),Ae(t.anyOf[1]),...t.anyOf.slice(2).map(r=>Ae(r))]);return ia(e,n)}},Gc=class{apply(e,t){if(!t.oneOf||t.oneOf.length===0)return e;const n=t.oneOf.map(r=>Ae(r));return e.refine(r=>{let i=0;for(const s of n)if(s.safeParse(r).success&&(i++,i>1))return!1;return i===1},{message:"Value must match exactly one of the oneOf schemas"})}},zc=class{apply(e,t){const n=t;if(n.prefixItems&&Array.isArray(n.prefixItems)){const i=n.prefixItems.map(s=>Ae(s));return e.refine(s=>{if(!Array.isArray(s))return!0;for(let o=0;o<Math.min(s.length,i.length);o++)if(!cr(i[o],s[o]))return!1;if(s.length>i.length){if(typeof n.items=="boolean"&&n.items===!1)return!1;if(n.items&&typeof n.items=="object"&&!Array.isArray(n.items)){const o=Ae(n.items);for(let a=i.length;a<s.length;a++)if(!cr(o,s[a]))return!1}}return!0},{message:"Array does not match prefixItems schema"})}return e}},Yc=class{apply(e,t){const n=t;if(!n.properties&&!n.required&&n.additionalProperties!==!1)return e;if(e instanceof ic||e instanceof sc){const r={};if(n.properties)for(const[i,s]of Object.entries(n.properties))s!==void 0&&(r[i]=Ae(s));if(n.required&&Array.isArray(n.required)){const i=new Set(n.required);for(const s of Object.keys(r))i.has(s)||(r[s]=r[s].optional())}else for(const i of Object.keys(r))r[i]=r[i].optional();return n.additionalProperties===!1?_e(r):_e(r).passthrough()}return e.refine(r=>{if(typeof r!="object"||r===null||Array.isArray(r))return!0;if(n.properties){for(const[i,s]of Object.entries(n.properties))if(s!==void 0&&Object.getOwnPropertyDescriptor(r,i)!==void 0&&!Ae(s).safeParse(r[i]).success)return!1}if(n.required&&Array.isArray(n.required)){for(const i of n.required)if(!(Object.getOwnPropertyDescriptor(r,i)!==void 0))return!1}if(n.additionalProperties===!1&&n.properties){const i=new Set(Object.keys(n.properties));for(const s in r)if(!i.has(s))return!1}return!0},{message:"Object constraints validation failed"})}},Jc=class{apply(e,t){if(!t.enum||t.enum.length===0)return e;const n=t.enum.filter(r=>Array.isArray(r)||typeof r=="object"&&r!==null);return n.length===0?e:e.refine(r=>typeof r!="object"||r===null?!0:n.some(i=>Cn(r,i)),{message:"Value must match one of the enum values"})}},Zc=class{apply(e,t){if(t.const===void 0)return e;const n=t.const;return typeof n!="object"||n===null?e:e.refine(r=>Cn(r,n),{message:"Value must equal the const value"})}},Xc=class{apply(e,t){return t.description&&(e=e.describe(t.description)),e}},Qc=class{apply(e,t){var n;const r=t;return!((n=r.required)!=null&&n.includes("__proto__"))||t.type!==void 0?e:Fe().refine(i=>this.validateRequired(i,r.required),{message:"Missing required properties"})}validateRequired(e,t){return typeof e!="object"||e===null||Array.isArray(e)?!0:t.every(n=>Object.prototype.hasOwnProperty.call(e,n))}},eu=class{apply(e,t){var n;const r=t;if(r.contains===void 0)return e;const i=Ae(r.contains),s=(n=r.minContains)!=null?n:1,o=r.maxContains;return e.refine(a=>{if(!Array.isArray(a))return!0;let l=0;for(const c of a)cr(i,c)&&l++;return!(l<s||o!==void 0&&l>o)},{message:"Array must contain required items matching the schema"})}},tu=class{apply(e,t){const{default:n}=t;return n===void 0||!e.safeParse(n).success?e:e.default(n)}},nu=[new Oc,new wc,new vc,new xc,new Ec,new $c,new kc,new Ac,new _c,new Ic,new Tc,new Cc,new Pc,new Fc,new jc,new Mc,new Dc,new Nc,new Rc,new Lc,new Bc,new Uc],ru=[new Qc,new Jc,new Zc,new Hc,new Kc,new Gc,new zc,new Yc,new eu,new Vc,new qc,new tu,new Xc];function Ae(e){if(typeof e=="boolean")return e?Fe():Os();const t={};for(const i of nu)i.apply(t,e);const n=[];if(t.string!==!1&&n.push(t.string||oe()),t.number!==!1&&n.push(t.number||ge()),t.boolean!==!1&&n.push(t.boolean||ti()),t.null!==!1&&n.push(t.null||_i()),t.array!==!1&&n.push(t.array||Ie(Fe())),t.tuple!==!1&&t.tuple!==void 0&&n.push(t.tuple),t.object!==!1)if(t.object)n.push(t.object);else{const i=rc(s=>typeof s=="object"&&s!==null&&!Array.isArray(s),"Must be an object, not an array");n.push(i)}t.file!==!1&&t.file!==void 0&&n.push(t.file);let r;n.length===0?r=Os():n.length===1?r=n[0]:Object.keys(e).some(s=>s!=="$schema"&&s!=="title"&&s!=="description")?r=mt(n):r=Fe();for(const i of ru)r=i.apply(r,e);return r}class As extends Event{constructor(t,n){var r,i;super(t),this.code=(r=n?.code)!=null?r:void 0,this.message=(i=n?.message)!=null?i:void 0}[Symbol.for("nodejs.util.inspect.custom")](t,n,r){return r(_s(this),n)}[Symbol.for("Deno.customInspect")](t,n){return t(_s(this),n)}}function iu(e){const t=globalThis.DOMException;return typeof t=="function"?new t(e,"SyntaxError"):new SyntaxError(e)}function ni(e){return e instanceof Error?"errors"in e&&Array.isArray(e.errors)?e.errors.map(ni).join(", "):"cause"in e&&e.cause instanceof Error?`${e}: ${ni(e.cause)}`:e.message:`${e}`}function _s(e){return{type:e.type,message:e.message,code:e.code,defaultPrevented:e.defaultPrevented,cancelable:e.cancelable,timeStamp:e.timeStamp}}var la=e=>{throw TypeError(e)},Fi=(e,t,n)=>t.has(e)||la("Cannot "+n),G=(e,t,n)=>(Fi(e,t,"read from private field"),n?n.call(e):t.get(e)),Se=(e,t,n)=>t.has(e)?la("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),he=(e,t,n,r)=>(Fi(e,t,"write to private field"),t.set(e,n),n),Qe=(e,t,n)=>(Fi(e,t,"access private method"),n),Te,Et,kt,Qn,ur,wn,Vt,xn,ct,Lt,Gt,Bt,mn,Re,ri,ii,si,Is,oi,ai,yn,li,ci;class er extends EventTarget{constructor(t,n){var r,i;super(),Se(this,Re),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,Se(this,Te),Se(this,Et),Se(this,kt),Se(this,Qn),Se(this,ur),Se(this,wn),Se(this,Vt),Se(this,xn,null),Se(this,ct),Se(this,Lt),Se(this,Gt,null),Se(this,Bt,null),Se(this,mn,null),Se(this,ii,async s=>{var o;G(this,Lt).reset();const{body:a,redirected:l,status:c,headers:u}=s;if(c===204){Qe(this,Re,yn).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(l?he(this,kt,new URL(s.url)):he(this,kt,void 0),c!==200){Qe(this,Re,yn).call(this,`Non-200 status code (${c})`,c);return}if(!(u.get("content-type")||"").startsWith("text/event-stream")){Qe(this,Re,yn).call(this,'Invalid content type, expected "text/event-stream"',c);return}if(G(this,Te)===this.CLOSED)return;he(this,Te,this.OPEN);const f=new Event("open");if((o=G(this,mn))==null||o.call(this,f),this.dispatchEvent(f),typeof a!="object"||!a||!("getReader"in a)){Qe(this,Re,yn).call(this,"Invalid response body, expected a web ReadableStream",c),this.close();return}const h=new TextDecoder,m=a.getReader();let d=!0;do{const{done:p,value:y}=await m.read();y&&G(this,Lt).feed(h.decode(y,{stream:!p})),p&&(d=!1,G(this,Lt).reset(),Qe(this,Re,li).call(this))}while(d)}),Se(this,si,s=>{he(this,ct,void 0),!(s.name==="AbortError"||s.type==="aborted")&&Qe(this,Re,li).call(this,ni(s))}),Se(this,oi,s=>{typeof s.id=="string"&&he(this,xn,s.id);const o=new MessageEvent(s.event||"message",{data:s.data,origin:G(this,kt)?G(this,kt).origin:G(this,Et).origin,lastEventId:s.id||""});G(this,Bt)&&(!s.event||s.event==="message")&&G(this,Bt).call(this,o),this.dispatchEvent(o)}),Se(this,ai,s=>{he(this,wn,s)}),Se(this,ci,()=>{he(this,Vt,void 0),G(this,Te)===this.CONNECTING&&Qe(this,Re,ri).call(this)});try{if(t instanceof URL)he(this,Et,t);else if(typeof t=="string")he(this,Et,new URL(t,su()));else throw new Error("Invalid URL")}catch{throw iu("An invalid or illegal string was specified")}he(this,Lt,fc({onEvent:G(this,oi),onRetry:G(this,ai)})),he(this,Te,this.CONNECTING),he(this,wn,3e3),he(this,ur,(r=n?.fetch)!=null?r:globalThis.fetch),he(this,Qn,(i=n?.withCredentials)!=null?i:!1),Qe(this,Re,ri).call(this)}get readyState(){return G(this,Te)}get url(){return G(this,Et).href}get withCredentials(){return G(this,Qn)}get onerror(){return G(this,Gt)}set onerror(t){he(this,Gt,t)}get onmessage(){return G(this,Bt)}set onmessage(t){he(this,Bt,t)}get onopen(){return G(this,mn)}set onopen(t){he(this,mn,t)}addEventListener(t,n,r){const i=n;super.addEventListener(t,i,r)}removeEventListener(t,n,r){const i=n;super.removeEventListener(t,i,r)}close(){G(this,Vt)&&clearTimeout(G(this,Vt)),G(this,Te)!==this.CLOSED&&(G(this,ct)&&G(this,ct).abort(),he(this,Te,this.CLOSED),he(this,ct,void 0))}}Te=new WeakMap,Et=new WeakMap,kt=new WeakMap,Qn=new WeakMap,ur=new WeakMap,wn=new WeakMap,Vt=new WeakMap,xn=new WeakMap,ct=new WeakMap,Lt=new WeakMap,Gt=new WeakMap,Bt=new WeakMap,mn=new WeakMap,Re=new WeakSet,ri=function(){he(this,Te,this.CONNECTING),he(this,ct,new AbortController),G(this,ur)(G(this,Et),Qe(this,Re,Is).call(this)).then(G(this,ii)).catch(G(this,si))},ii=new WeakMap,si=new WeakMap,Is=function(){var e;const t={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...G(this,xn)?{"Last-Event-ID":G(this,xn)}:void 0},cache:"no-store",signal:(e=G(this,ct))==null?void 0:e.signal};return"window"in globalThis&&(t.credentials=this.withCredentials?"include":"same-origin"),t},oi=new WeakMap,ai=new WeakMap,yn=function(e,t){var n;G(this,Te)!==this.CLOSED&&he(this,Te,this.CLOSED);const r=new As("error",{code:t,message:e});(n=G(this,Gt))==null||n.call(this,r),this.dispatchEvent(r)},li=function(e,t){var n;if(G(this,Te)===this.CLOSED)return;he(this,Te,this.CONNECTING);const r=new As("error",{code:t,message:e});(n=G(this,Gt))==null||n.call(this,r),this.dispatchEvent(r),he(this,Vt,setTimeout(G(this,ci),G(this,wn)))},ci=new WeakMap,er.CONNECTING=0,er.OPEN=1,er.CLOSED=2;function su(){const e="document"in globalThis?globalThis.document:void 0;return e&&typeof e=="object"&&"baseURI"in e&&typeof e.baseURI=="string"?e.baseURI:void 0}class ou extends Error{constructor(t,n,r){super(`SSE error: ${n}`),this.code=t,this.event=r}}class au{constructor(t,n){this._url=t,this._resourceMetadataUrl=void 0,this._scope=void 0,this._eventSourceInit=n?.eventSourceInit,this._requestInit=n?.requestInit,this._authProvider=n?.authProvider,this._fetch=n?.fetch,this._fetchWithInit=dc(n?.fetch,n?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new fn("No auth provider");let t;try{t=await Cr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(n){throw this.onerror?.(n),n}if(t!=="AUTHORIZED")throw new fn;return await this._startOrAuth()}async _commonHeaders(){const t={};if(this._authProvider){const r=await this._authProvider.tokens();r&&(t.Authorization=`Bearer ${r.access_token}`)}this._protocolVersion&&(t["mcp-protocol-version"]=this._protocolVersion);const n=hc(this._requestInit?.headers);return new Headers({...t,...n})}_startOrAuth(){const t=this?._eventSourceInit?.fetch??this._fetch??fetch;return new Promise((n,r)=>{this._eventSource=new er(this._url.href,{...this._eventSourceInit,fetch:async(i,s)=>{const o=await this._commonHeaders();o.set("Accept","text/event-stream");const a=await t(i,{...s,headers:o});if(a.status===401&&a.headers.has("www-authenticate")){const{resourceMetadataUrl:l,scope:c}=xs(a);this._resourceMetadataUrl=l,this._scope=c}return a}}),this._abortController=new AbortController,this._eventSource.onerror=i=>{if(i.code===401&&this._authProvider){this._authThenStart().then(n,r);return}const s=new ou(i.code,i.message,i);r(s),this.onerror?.(s)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",i=>{const s=i;try{if(this._endpoint=new URL(s.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(o){r(o),this.onerror?.(o),this.close();return}n()}),this._eventSource.onmessage=i=>{const s=i;let o;try{o=sa.parse(JSON.parse(s.data))}catch(a){this.onerror?.(a);return}this.onmessage?.(o)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(t){if(!this._authProvider)throw new fn("No auth provider");if(await Cr(this._authProvider,{serverUrl:this._url,authorizationCode:t,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new fn("Failed to authorize")}async close(){this._abortController?.abort(),this._eventSource?.close(),this.onclose?.()}async send(t){if(!this._endpoint)throw new Error("Not connected");try{const n=await this._commonHeaders();n.set("content-type","application/json");const r={...this._requestInit,method:"POST",headers:n,body:JSON.stringify(t),signal:this._abortController?.signal},i=await(this._fetch??fetch)(this._endpoint,r);if(!i.ok){const s=await i.text().catch(()=>null);if(i.status===401&&this._authProvider){const{resourceMetadataUrl:o,scope:a}=xs(i);if(this._resourceMetadataUrl=o,this._scope=a,await Cr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new fn;return this.send(t)}throw new Error(`Error POSTing to endpoint (HTTP ${i.status}): ${s}`)}await i.body?.cancel()}catch(n){throw this.onerror?.(n),n}}setProtocolVersion(t){this._protocolVersion=t}}const lu="mcp";class cu{constructor(t){this._url=t}start(){if(this._socket)throw new Error("WebSocketClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((t,n)=>{this._socket=new WebSocket(this._url,lu),this._socket.onerror=r=>{const i="error"in r?r.error:new Error(`WebSocket error: ${JSON.stringify(r)}`);n(i),this.onerror?.(i)},this._socket.onopen=()=>{t()},this._socket.onclose=()=>{this.onclose?.()},this._socket.onmessage=r=>{let i;try{i=sa.parse(JSON.parse(r.data))}catch(s){this.onerror?.(s);return}this.onmessage?.(i)}})}async close(){this._socket?.close()}send(t){return new Promise((n,r)=>{if(!this._socket){r(new Error("Not connected"));return}this._socket?.send(JSON.stringify(t)),n()})}}class uu extends pc{constructor(t,n){super(t,n)}send(t,n){const r=fu(t);return r?.type==="emit"?(this.onmessage?.(r.message),Promise.resolve()):r?.type==="suppress"?Promise.resolve():super.send(t,n)}}function fu(e){const t=e;if(!t||typeof t!="object"||!("method"in t))return null;switch(t.method){case"initialize":{const n=t?.params?.protocolVersion;return n?{type:"emit",message:{result:{protocolVersion:n,capabilities:{tools:{}},serverInfo:{name:"deco-chat-server",version:"1.0.0"}},jsonrpc:t.jsonrpc??"2.0",id:t.id}}:null}case"notifications/roots/list_changed":case"notifications/initialized":case"notifications/cancelled":case"notifications/progress":return{type:"suppress"};default:return null}}class du extends mc{constructor(t,n){super(t,{jsonSchemaValidator:Sc,...n})}async listTools(t,n){return await this.request({method:"tools/list",params:t},ac,n)}}const hu=async(e,t,n)=>{const r=pu(e.connection,t,n);if(!r)throw new Error("Unknown MCP connection type");const i=new du({name:e?.name??"MCP Client",version:"1.0.0"});return await i.connect(r),{client:i}},pu=(e,t,n)=>{if(e.type==="Websocket")return new cu(new URL(e.url));if(e.type!=="SSE"&&e.type!=="HTTP")return null;const i={...e.token?{authorization:`Bearer ${e.token}`}:{},...n??{},..."headers"in e?e.headers||{}:{}};if(e.type==="SSE"){const s={requestInit:{headers:i,signal:t}};return e.token&&(s.eventSourceInit={fetch:(o,a)=>fetch(o,{...a,headers:{...i,Accept:"text/event-stream"},signal:t})}),new au(new URL(e.url),s)}return new uu(new URL(e.url),{requestInit:{headers:i,signal:t,credentials:"include"}})},Ts=e=>{try{return JSON.parse(e)}catch{return e}},zn=new Map,Cs=(e,t)=>({...e,id:e.name,inputSchema:e.inputSchema?Ae(e.inputSchema):void 0,outputSchema:e.outputSchema?Ae(e.outputSchema):void 0,execute:n=>t(n.context,e.name)});function mu(e){const t=n=>"connection"in e?hu({connection:e.connection},void 0,n):e.client;return new Proxy({},{get(n,r){if(r==="toJSON")return null;if(typeof r!="string")throw new Error("Name must be a string");if(r==="listTools")return a;async function i(l,c=r){const u=e?.debugId?.(),f=u?{"x-trace-debug-id":u}:void 0,{client:h}=await t(f),{structuredContent:m,isError:d,content:p}=await h.callTool({name:String(c),arguments:l});if(d){const S=p?.[0]?.text,O=typeof S=="string"?Ts(S):null,E=O?.code&&typeof e?.getErrorByStatusCode=="function"?e.getErrorByStatusCode(O.code,O.message,O.traceId):null;throw E||new Error(`Tool ${String(c)} returned an error: ${JSON.stringify(m??p)}`)}if(m!==void 0)return m;const y=p?.[0]?.text;return typeof y=="string"?Ts(y):void 0}async function s(){const{client:l}=await t(),{tools:c}=await l.listTools();return c}async function o(){if(!("connection"in e))return s();const l=e.connection,c=JSON.stringify(l);try{return zn.has(c)||zn.set(c,s()),await zn.get(c)}catch(u){console.error("Failed to list tools",u),zn.delete(c);return}}async function a(){return(await o()??[]).map(c=>Cs(c,i))}return i.asTool=async()=>{const c=(await o()??[]).find(u=>u.name===r);if(!c)throw new Error(`Tool ${r} not found`);return Cs(c,i)},i}})}new Proxy({},{get(e,t){return t==="toJSON"?null:t==="forConnection"?n=>yu({connection:n}):global[t]}});function yu(e){return mu(e)}const gu=_e({toolName:oe().describe("Name of the tool to invoke on that connection"),transformCode:oe().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(stepInput): Output { ... }`\n The stepInput 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.")}),bu=_e({code:oe().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(stepInput): Output { ... }\`
|
|
1
|
+
import{da as tc,e2 as Fe,bU as Os,R as oe,Q as ge,aH as ti,cs as _i,aE as Ie,bS as mt,bm as Ve,aF as mr,e3 as rn,P as _e,e4 as Ii,e5 as ws,e6 as nc,cq as rc,e7 as ia,e8 as ic,e9 as sc,ea as oc,cg as sa,c8 as ac,b7 as ze,cr as lc,aG as On,bz as Ti,eb as cc,r as N,j as w,ec as oa,d9 as uc}from"./index-DnIoj8fl.js";import{A as aa,d as fc,e as dc,n as hc,f as pc,C as mc}from"./use-mcp-client-DAanazcB.js";import{U as fn,b as Cr,c as xs}from"./auth-jf8Ueqtd.js";import{B as Ci,c as Pi}from"./collections-xWz9Ka4y.js";import{R as Es}from"./index-BFzXRFgv.js";function yc(){const e=new aa({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0,code:{optimize:!1}});return tc(e),e}class gc{#e=yc();#t=new Map;#n=new WeakMap;getValidator(t){const n=this.#n.get(t);if(n)return n;const r=bc(t);let i=this.#t.get(r);i||(i=this.#e.compile(t),this.#t.set(r,i));const s=i,o=a=>s(a)?{valid:!0,data:a,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this.#e.errorsText(s.errors)};return this.#n.set(t,o),o}}function bc(e){return JSON.stringify(e,(t,n)=>n&&typeof n=="object"&&!Array.isArray(n)?Object.fromEntries(Object.keys(n).sort().map(r=>[r,n[r]])):n)}const Sc=new gc;var vc=class{apply(e,t){if(!t.type)return;const n=Array.isArray(t.type)?t.type:[t.type],r=new Set(n);if(r.has("string")||(e.string=!1),!r.has("number")&&!r.has("integer")&&(e.number=!1),r.has("boolean")||(e.boolean=!1),r.has("null")||(e.null=!1),r.has("array")||(e.array=!1),r.has("object")||(e.object=!1),r.has("integer")&&e.number!==!1){const i=e.number||ge();i instanceof rn&&(e.number=i.int())}}},Oc=class{apply(e,t){if(t.const===void 0)return;const n=t.const;e.string=!1,e.number=!1,e.boolean=!1,e.null=!1,e.array=!1,e.object=!1,typeof n=="string"?e.string=Ve(n):typeof n=="number"?e.number=Ve(n):typeof n=="boolean"?e.boolean=Ve(n):n===null?e.null=_i():Array.isArray(n)?e.array=void 0:typeof n=="object"&&(e.object=void 0)}},wc=class{apply(e,t){if(!t.enum)return;if(t.enum.length===0){t.type||(e.string=!1,e.number=!1,e.boolean=!1,e.null=!1,e.array=!1,e.object=!1);return}const n={string:t.enum.filter(r=>typeof r=="string"),number:t.enum.filter(r=>typeof r=="number"),boolean:t.enum.filter(r=>typeof r=="boolean"),null:t.enum.filter(r=>r===null),array:t.enum.filter(r=>Array.isArray(r)),object:t.enum.filter(r=>typeof r=="object"&&r!==null&&!Array.isArray(r))};e.string=this.createTypeSchema(n.string,"string"),e.number=this.createTypeSchema(n.number,"number"),e.boolean=this.createTypeSchema(n.boolean,"boolean"),e.null=n.null.length>0?_i():!1,e.array=n.array.length>0?void 0:!1,e.object=n.object.length>0?void 0:!1}createTypeSchema(e,t){if(e.length===0)return!1;if(e.length===1)return Ve(e[0]);if(t==="string")return mr(e);if(t==="number"){const[n,r,...i]=e;return mt([Ve(n),Ve(r),...i.map(s=>Ve(s))])}return t==="boolean"?mt([Ve(!0),Ve(!1)]):!1}},xc=class{apply(e,t){const n=t;if(n.type==="string"&&n.format==="binary"&&n.contentEncoding==="binary"){let r=oc();n.minLength!==void 0&&(r=r.min(n.minLength)),n.maxLength!==void 0&&(r=r.max(n.maxLength)),n.contentMediaType!==void 0&&(r=r.mime(n.contentMediaType)),e.file=r,e.string=!1}}},Ec=class{apply(e,t){const n=t;t.type===void 0&&(n.minLength!==void 0||n.maxLength!==void 0||n.pattern!==void 0)&&e.string===void 0&&(e.string=oe())}},Ac=class{apply(e,t){const n=t;if(n.minLength!==void 0&&e.string!==!1){const r=e.string||oe();r instanceof Ii&&(e.string=r.refine(i=>Array.from(i).length>=n.minLength,{message:`String must be at least ${n.minLength} characters long`}))}}},_c=class{apply(e,t){const n=t;if(n.maxLength!==void 0&&e.string!==!1){const r=e.string||oe();r instanceof Ii&&(e.string=r.refine(i=>Array.from(i).length<=n.maxLength,{message:`String must be at most ${n.maxLength} characters long`}))}}},Ic=class{apply(e,t){const n=t;if(n.pattern&&e.string!==!1){const r=e.string||oe();if(r instanceof Ii){const i=new RegExp(n.pattern);e.string=r.regex(i)}}}},Tc=class{apply(e,t){const n=t;if(n.minimum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.min(n.minimum))}}},Cc=class{apply(e,t){const n=t;if(n.maximum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.max(n.maximum))}}},Pc=class{apply(e,t){const n=t;if(n.exclusiveMinimum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(typeof n.exclusiveMinimum=="number"?e.number=r.gt(n.exclusiveMinimum):e.number=!1)}}},Fc=class{apply(e,t){const n=t;if(n.exclusiveMaximum!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(typeof n.exclusiveMaximum=="number"?e.number=r.lt(n.exclusiveMaximum):e.number=!1)}}},jc=class{apply(e,t){const n=t;if(n.multipleOf!==void 0&&e.number!==!1){const r=e.number||ge();r instanceof rn&&(e.number=r.refine(i=>{if(n.multipleOf===0)return!1;const s=i/n.multipleOf,o=Math.round(s),a=Math.min(Math.abs(i)*Number.EPSILON*10,Math.abs(n.multipleOf)*Number.EPSILON*10);return Math.abs(s-o)<=a/Math.abs(n.multipleOf)},{message:`Must be a multiple of ${n.multipleOf}`}))}}},$c=class{apply(e,t){const n=t;t.type===void 0&&(n.minItems!==void 0||n.maxItems!==void 0||n.items!==void 0||n.prefixItems!==void 0)&&e.array===void 0&&(e.array=Ie(Fe()))}},Dc=class{apply(e,t){const n=t;n.minItems!==void 0&&e.array!==!1&&(e.array=(e.array||Ie(Fe())).min(n.minItems))}},Nc=class{apply(e,t){const n=t;n.maxItems!==void 0&&e.array!==!1&&(e.array=(e.array||Ie(Fe())).max(n.maxItems))}},Rc=class{apply(e,t){const n=t;if(e.array!==!1)if(Array.isArray(n.items))e.array=e.array||Ie(Fe());else if(n.items&&typeof n.items!="boolean"&&!n.prefixItems){const r=Ae(n.items);let i=Ie(r);if(e.array&&e.array instanceof nc){const s=e.array._def;s.checks&&s.checks.forEach(o=>{if(o._zod&&o._zod.def){const a=o._zod.def;a.check==="min_length"&&a.minimum!==void 0?i=i.min(a.minimum):a.check==="max_length"&&a.maximum!==void 0&&(i=i.max(a.maximum))}})}e.array=i}else typeof n.items=="boolean"&&n.items===!1?n.prefixItems?e.array=e.array||Ie(Fe()):e.array=Ie(Fe()).max(0):typeof n.items=="boolean"&&n.items===!0?e.array=e.array||Ie(Fe()):n.prefixItems&&(e.array=e.array||Ie(Fe()))}},Mc=class{apply(e,t){if(t.type!=="array")return;const n=t;if(!Array.isArray(n.items)||e.array===!1)return;const r=n.items.map(s=>Ae(s));let i;r.length===0?i=ws([]):i=ws(r),n.minItems!==void 0&&n.minItems>r.length&&(i=!1),n.maxItems!==void 0&&n.maxItems<r.length&&(i=!1),e.tuple=i,e.array=!1}},Uc=class{apply(e,t){const n=t;e.object!==!1&&(n.properties||n.required||n.additionalProperties!==void 0)&&(e.object=e.object||_e({}).passthrough())}},kc=class{apply(e,t){const n=t;t.type===void 0&&(n.maxProperties!==void 0||n.minProperties!==void 0)&&e.object===void 0&&(e.object=_e({}).passthrough())}},Lc=class{apply(e,t){const n=t;if(n.maxProperties!==void 0&&e.object!==!1){const r=e.object||_e({}).passthrough();e.object=r.refine(i=>Object.keys(i).length<=n.maxProperties,{message:`Object must have at most ${n.maxProperties} properties`})}}},Bc=class{apply(e,t){const n=t;if(n.minProperties!==void 0&&e.object!==!1){const r=e.object||_e({}).passthrough();e.object=r.refine(i=>Object.keys(i).length>=n.minProperties,{message:`Object must have at least ${n.minProperties} properties`})}}};function Cn(e,t){if(e===t)return!0;if(e==null||t==null)return e===t;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t))return e.length!==t.length?!1:e.every((n,r)=>Cn(n,t[r]));if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:n.every(i=>r.includes(i)&&Cn(e[i],t[i]))}return!1}function Wc(){return e=>{if(!Array.isArray(e))return!0;const t=[];return e.every(n=>t.some(i=>Cn(n,i))?!1:(t.push(n),!0))}}function cr(e,t){return e.safeParse(t).success}var Vc=class{apply(e,t){if(!t.not)return e;const n=Ae(t.not);return e.refine(r=>!cr(n,r),{message:"Value must not match the 'not' schema"})}},qc=class{apply(e,t){return t.uniqueItems!==!0?e:e.refine(Wc(),{message:"Array items must be unique"})}},Hc=class{apply(e,t){return!t.allOf||t.allOf.length===0?e:t.allOf.map(r=>Ae(r)).reduce((r,i)=>ia(r,i),e)}},Kc=class{apply(e,t){if(!t.anyOf||t.anyOf.length===0)return e;const n=t.anyOf.length===1?Ae(t.anyOf[0]):mt([Ae(t.anyOf[0]),Ae(t.anyOf[1]),...t.anyOf.slice(2).map(r=>Ae(r))]);return ia(e,n)}},Gc=class{apply(e,t){if(!t.oneOf||t.oneOf.length===0)return e;const n=t.oneOf.map(r=>Ae(r));return e.refine(r=>{let i=0;for(const s of n)if(s.safeParse(r).success&&(i++,i>1))return!1;return i===1},{message:"Value must match exactly one of the oneOf schemas"})}},zc=class{apply(e,t){const n=t;if(n.prefixItems&&Array.isArray(n.prefixItems)){const i=n.prefixItems.map(s=>Ae(s));return e.refine(s=>{if(!Array.isArray(s))return!0;for(let o=0;o<Math.min(s.length,i.length);o++)if(!cr(i[o],s[o]))return!1;if(s.length>i.length){if(typeof n.items=="boolean"&&n.items===!1)return!1;if(n.items&&typeof n.items=="object"&&!Array.isArray(n.items)){const o=Ae(n.items);for(let a=i.length;a<s.length;a++)if(!cr(o,s[a]))return!1}}return!0},{message:"Array does not match prefixItems schema"})}return e}},Yc=class{apply(e,t){const n=t;if(!n.properties&&!n.required&&n.additionalProperties!==!1)return e;if(e instanceof ic||e instanceof sc){const r={};if(n.properties)for(const[i,s]of Object.entries(n.properties))s!==void 0&&(r[i]=Ae(s));if(n.required&&Array.isArray(n.required)){const i=new Set(n.required);for(const s of Object.keys(r))i.has(s)||(r[s]=r[s].optional())}else for(const i of Object.keys(r))r[i]=r[i].optional();return n.additionalProperties===!1?_e(r):_e(r).passthrough()}return e.refine(r=>{if(typeof r!="object"||r===null||Array.isArray(r))return!0;if(n.properties){for(const[i,s]of Object.entries(n.properties))if(s!==void 0&&Object.getOwnPropertyDescriptor(r,i)!==void 0&&!Ae(s).safeParse(r[i]).success)return!1}if(n.required&&Array.isArray(n.required)){for(const i of n.required)if(!(Object.getOwnPropertyDescriptor(r,i)!==void 0))return!1}if(n.additionalProperties===!1&&n.properties){const i=new Set(Object.keys(n.properties));for(const s in r)if(!i.has(s))return!1}return!0},{message:"Object constraints validation failed"})}},Jc=class{apply(e,t){if(!t.enum||t.enum.length===0)return e;const n=t.enum.filter(r=>Array.isArray(r)||typeof r=="object"&&r!==null);return n.length===0?e:e.refine(r=>typeof r!="object"||r===null?!0:n.some(i=>Cn(r,i)),{message:"Value must match one of the enum values"})}},Zc=class{apply(e,t){if(t.const===void 0)return e;const n=t.const;return typeof n!="object"||n===null?e:e.refine(r=>Cn(r,n),{message:"Value must equal the const value"})}},Xc=class{apply(e,t){return t.description&&(e=e.describe(t.description)),e}},Qc=class{apply(e,t){var n;const r=t;return!((n=r.required)!=null&&n.includes("__proto__"))||t.type!==void 0?e:Fe().refine(i=>this.validateRequired(i,r.required),{message:"Missing required properties"})}validateRequired(e,t){return typeof e!="object"||e===null||Array.isArray(e)?!0:t.every(n=>Object.prototype.hasOwnProperty.call(e,n))}},eu=class{apply(e,t){var n;const r=t;if(r.contains===void 0)return e;const i=Ae(r.contains),s=(n=r.minContains)!=null?n:1,o=r.maxContains;return e.refine(a=>{if(!Array.isArray(a))return!0;let l=0;for(const c of a)cr(i,c)&&l++;return!(l<s||o!==void 0&&l>o)},{message:"Array must contain required items matching the schema"})}},tu=class{apply(e,t){const{default:n}=t;return n===void 0||!e.safeParse(n).success?e:e.default(n)}},nu=[new Oc,new wc,new vc,new xc,new Ec,new $c,new kc,new Ac,new _c,new Ic,new Tc,new Cc,new Pc,new Fc,new jc,new Mc,new Dc,new Nc,new Rc,new Lc,new Bc,new Uc],ru=[new Qc,new Jc,new Zc,new Hc,new Kc,new Gc,new zc,new Yc,new eu,new Vc,new qc,new tu,new Xc];function Ae(e){if(typeof e=="boolean")return e?Fe():Os();const t={};for(const i of nu)i.apply(t,e);const n=[];if(t.string!==!1&&n.push(t.string||oe()),t.number!==!1&&n.push(t.number||ge()),t.boolean!==!1&&n.push(t.boolean||ti()),t.null!==!1&&n.push(t.null||_i()),t.array!==!1&&n.push(t.array||Ie(Fe())),t.tuple!==!1&&t.tuple!==void 0&&n.push(t.tuple),t.object!==!1)if(t.object)n.push(t.object);else{const i=rc(s=>typeof s=="object"&&s!==null&&!Array.isArray(s),"Must be an object, not an array");n.push(i)}t.file!==!1&&t.file!==void 0&&n.push(t.file);let r;n.length===0?r=Os():n.length===1?r=n[0]:Object.keys(e).some(s=>s!=="$schema"&&s!=="title"&&s!=="description")?r=mt(n):r=Fe();for(const i of ru)r=i.apply(r,e);return r}class As extends Event{constructor(t,n){var r,i;super(t),this.code=(r=n?.code)!=null?r:void 0,this.message=(i=n?.message)!=null?i:void 0}[Symbol.for("nodejs.util.inspect.custom")](t,n,r){return r(_s(this),n)}[Symbol.for("Deno.customInspect")](t,n){return t(_s(this),n)}}function iu(e){const t=globalThis.DOMException;return typeof t=="function"?new t(e,"SyntaxError"):new SyntaxError(e)}function ni(e){return e instanceof Error?"errors"in e&&Array.isArray(e.errors)?e.errors.map(ni).join(", "):"cause"in e&&e.cause instanceof Error?`${e}: ${ni(e.cause)}`:e.message:`${e}`}function _s(e){return{type:e.type,message:e.message,code:e.code,defaultPrevented:e.defaultPrevented,cancelable:e.cancelable,timeStamp:e.timeStamp}}var la=e=>{throw TypeError(e)},Fi=(e,t,n)=>t.has(e)||la("Cannot "+n),G=(e,t,n)=>(Fi(e,t,"read from private field"),n?n.call(e):t.get(e)),Se=(e,t,n)=>t.has(e)?la("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),he=(e,t,n,r)=>(Fi(e,t,"write to private field"),t.set(e,n),n),Qe=(e,t,n)=>(Fi(e,t,"access private method"),n),Te,Et,kt,Qn,ur,wn,Vt,xn,ct,Lt,Gt,Bt,mn,Re,ri,ii,si,Is,oi,ai,yn,li,ci;class er extends EventTarget{constructor(t,n){var r,i;super(),Se(this,Re),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,Se(this,Te),Se(this,Et),Se(this,kt),Se(this,Qn),Se(this,ur),Se(this,wn),Se(this,Vt),Se(this,xn,null),Se(this,ct),Se(this,Lt),Se(this,Gt,null),Se(this,Bt,null),Se(this,mn,null),Se(this,ii,async s=>{var o;G(this,Lt).reset();const{body:a,redirected:l,status:c,headers:u}=s;if(c===204){Qe(this,Re,yn).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(l?he(this,kt,new URL(s.url)):he(this,kt,void 0),c!==200){Qe(this,Re,yn).call(this,`Non-200 status code (${c})`,c);return}if(!(u.get("content-type")||"").startsWith("text/event-stream")){Qe(this,Re,yn).call(this,'Invalid content type, expected "text/event-stream"',c);return}if(G(this,Te)===this.CLOSED)return;he(this,Te,this.OPEN);const f=new Event("open");if((o=G(this,mn))==null||o.call(this,f),this.dispatchEvent(f),typeof a!="object"||!a||!("getReader"in a)){Qe(this,Re,yn).call(this,"Invalid response body, expected a web ReadableStream",c),this.close();return}const h=new TextDecoder,m=a.getReader();let d=!0;do{const{done:p,value:y}=await m.read();y&&G(this,Lt).feed(h.decode(y,{stream:!p})),p&&(d=!1,G(this,Lt).reset(),Qe(this,Re,li).call(this))}while(d)}),Se(this,si,s=>{he(this,ct,void 0),!(s.name==="AbortError"||s.type==="aborted")&&Qe(this,Re,li).call(this,ni(s))}),Se(this,oi,s=>{typeof s.id=="string"&&he(this,xn,s.id);const o=new MessageEvent(s.event||"message",{data:s.data,origin:G(this,kt)?G(this,kt).origin:G(this,Et).origin,lastEventId:s.id||""});G(this,Bt)&&(!s.event||s.event==="message")&&G(this,Bt).call(this,o),this.dispatchEvent(o)}),Se(this,ai,s=>{he(this,wn,s)}),Se(this,ci,()=>{he(this,Vt,void 0),G(this,Te)===this.CONNECTING&&Qe(this,Re,ri).call(this)});try{if(t instanceof URL)he(this,Et,t);else if(typeof t=="string")he(this,Et,new URL(t,su()));else throw new Error("Invalid URL")}catch{throw iu("An invalid or illegal string was specified")}he(this,Lt,fc({onEvent:G(this,oi),onRetry:G(this,ai)})),he(this,Te,this.CONNECTING),he(this,wn,3e3),he(this,ur,(r=n?.fetch)!=null?r:globalThis.fetch),he(this,Qn,(i=n?.withCredentials)!=null?i:!1),Qe(this,Re,ri).call(this)}get readyState(){return G(this,Te)}get url(){return G(this,Et).href}get withCredentials(){return G(this,Qn)}get onerror(){return G(this,Gt)}set onerror(t){he(this,Gt,t)}get onmessage(){return G(this,Bt)}set onmessage(t){he(this,Bt,t)}get onopen(){return G(this,mn)}set onopen(t){he(this,mn,t)}addEventListener(t,n,r){const i=n;super.addEventListener(t,i,r)}removeEventListener(t,n,r){const i=n;super.removeEventListener(t,i,r)}close(){G(this,Vt)&&clearTimeout(G(this,Vt)),G(this,Te)!==this.CLOSED&&(G(this,ct)&&G(this,ct).abort(),he(this,Te,this.CLOSED),he(this,ct,void 0))}}Te=new WeakMap,Et=new WeakMap,kt=new WeakMap,Qn=new WeakMap,ur=new WeakMap,wn=new WeakMap,Vt=new WeakMap,xn=new WeakMap,ct=new WeakMap,Lt=new WeakMap,Gt=new WeakMap,Bt=new WeakMap,mn=new WeakMap,Re=new WeakSet,ri=function(){he(this,Te,this.CONNECTING),he(this,ct,new AbortController),G(this,ur)(G(this,Et),Qe(this,Re,Is).call(this)).then(G(this,ii)).catch(G(this,si))},ii=new WeakMap,si=new WeakMap,Is=function(){var e;const t={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...G(this,xn)?{"Last-Event-ID":G(this,xn)}:void 0},cache:"no-store",signal:(e=G(this,ct))==null?void 0:e.signal};return"window"in globalThis&&(t.credentials=this.withCredentials?"include":"same-origin"),t},oi=new WeakMap,ai=new WeakMap,yn=function(e,t){var n;G(this,Te)!==this.CLOSED&&he(this,Te,this.CLOSED);const r=new As("error",{code:t,message:e});(n=G(this,Gt))==null||n.call(this,r),this.dispatchEvent(r)},li=function(e,t){var n;if(G(this,Te)===this.CLOSED)return;he(this,Te,this.CONNECTING);const r=new As("error",{code:t,message:e});(n=G(this,Gt))==null||n.call(this,r),this.dispatchEvent(r),he(this,Vt,setTimeout(G(this,ci),G(this,wn)))},ci=new WeakMap,er.CONNECTING=0,er.OPEN=1,er.CLOSED=2;function su(){const e="document"in globalThis?globalThis.document:void 0;return e&&typeof e=="object"&&"baseURI"in e&&typeof e.baseURI=="string"?e.baseURI:void 0}class ou extends Error{constructor(t,n,r){super(`SSE error: ${n}`),this.code=t,this.event=r}}class au{constructor(t,n){this._url=t,this._resourceMetadataUrl=void 0,this._scope=void 0,this._eventSourceInit=n?.eventSourceInit,this._requestInit=n?.requestInit,this._authProvider=n?.authProvider,this._fetch=n?.fetch,this._fetchWithInit=dc(n?.fetch,n?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new fn("No auth provider");let t;try{t=await Cr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(n){throw this.onerror?.(n),n}if(t!=="AUTHORIZED")throw new fn;return await this._startOrAuth()}async _commonHeaders(){const t={};if(this._authProvider){const r=await this._authProvider.tokens();r&&(t.Authorization=`Bearer ${r.access_token}`)}this._protocolVersion&&(t["mcp-protocol-version"]=this._protocolVersion);const n=hc(this._requestInit?.headers);return new Headers({...t,...n})}_startOrAuth(){const t=this?._eventSourceInit?.fetch??this._fetch??fetch;return new Promise((n,r)=>{this._eventSource=new er(this._url.href,{...this._eventSourceInit,fetch:async(i,s)=>{const o=await this._commonHeaders();o.set("Accept","text/event-stream");const a=await t(i,{...s,headers:o});if(a.status===401&&a.headers.has("www-authenticate")){const{resourceMetadataUrl:l,scope:c}=xs(a);this._resourceMetadataUrl=l,this._scope=c}return a}}),this._abortController=new AbortController,this._eventSource.onerror=i=>{if(i.code===401&&this._authProvider){this._authThenStart().then(n,r);return}const s=new ou(i.code,i.message,i);r(s),this.onerror?.(s)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",i=>{const s=i;try{if(this._endpoint=new URL(s.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(o){r(o),this.onerror?.(o),this.close();return}n()}),this._eventSource.onmessage=i=>{const s=i;let o;try{o=sa.parse(JSON.parse(s.data))}catch(a){this.onerror?.(a);return}this.onmessage?.(o)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(t){if(!this._authProvider)throw new fn("No auth provider");if(await Cr(this._authProvider,{serverUrl:this._url,authorizationCode:t,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new fn("Failed to authorize")}async close(){this._abortController?.abort(),this._eventSource?.close(),this.onclose?.()}async send(t){if(!this._endpoint)throw new Error("Not connected");try{const n=await this._commonHeaders();n.set("content-type","application/json");const r={...this._requestInit,method:"POST",headers:n,body:JSON.stringify(t),signal:this._abortController?.signal},i=await(this._fetch??fetch)(this._endpoint,r);if(!i.ok){const s=await i.text().catch(()=>null);if(i.status===401&&this._authProvider){const{resourceMetadataUrl:o,scope:a}=xs(i);if(this._resourceMetadataUrl=o,this._scope=a,await Cr(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new fn;return this.send(t)}throw new Error(`Error POSTing to endpoint (HTTP ${i.status}): ${s}`)}await i.body?.cancel()}catch(n){throw this.onerror?.(n),n}}setProtocolVersion(t){this._protocolVersion=t}}const lu="mcp";class cu{constructor(t){this._url=t}start(){if(this._socket)throw new Error("WebSocketClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((t,n)=>{this._socket=new WebSocket(this._url,lu),this._socket.onerror=r=>{const i="error"in r?r.error:new Error(`WebSocket error: ${JSON.stringify(r)}`);n(i),this.onerror?.(i)},this._socket.onopen=()=>{t()},this._socket.onclose=()=>{this.onclose?.()},this._socket.onmessage=r=>{let i;try{i=sa.parse(JSON.parse(r.data))}catch(s){this.onerror?.(s);return}this.onmessage?.(i)}})}async close(){this._socket?.close()}send(t){return new Promise((n,r)=>{if(!this._socket){r(new Error("Not connected"));return}this._socket?.send(JSON.stringify(t)),n()})}}class uu extends pc{constructor(t,n){super(t,n)}send(t,n){const r=fu(t);return r?.type==="emit"?(this.onmessage?.(r.message),Promise.resolve()):r?.type==="suppress"?Promise.resolve():super.send(t,n)}}function fu(e){const t=e;if(!t||typeof t!="object"||!("method"in t))return null;switch(t.method){case"initialize":{const n=t?.params?.protocolVersion;return n?{type:"emit",message:{result:{protocolVersion:n,capabilities:{tools:{}},serverInfo:{name:"deco-chat-server",version:"1.0.0"}},jsonrpc:t.jsonrpc??"2.0",id:t.id}}:null}case"notifications/roots/list_changed":case"notifications/initialized":case"notifications/cancelled":case"notifications/progress":return{type:"suppress"};default:return null}}class du extends mc{constructor(t,n){super(t,{jsonSchemaValidator:Sc,...n})}async listTools(t,n){return await this.request({method:"tools/list",params:t},ac,n)}}const hu=async(e,t,n)=>{const r=pu(e.connection,t,n);if(!r)throw new Error("Unknown MCP connection type");const i=new du({name:e?.name??"MCP Client",version:"1.0.0"});return await i.connect(r),{client:i}},pu=(e,t,n)=>{if(e.type==="Websocket")return new cu(new URL(e.url));if(e.type!=="SSE"&&e.type!=="HTTP")return null;const i={...e.token?{authorization:`Bearer ${e.token}`}:{},...n??{},..."headers"in e?e.headers||{}:{}};if(e.type==="SSE"){const s={requestInit:{headers:i,signal:t}};return e.token&&(s.eventSourceInit={fetch:(o,a)=>fetch(o,{...a,headers:{...i,Accept:"text/event-stream"},signal:t})}),new au(new URL(e.url),s)}return new uu(new URL(e.url),{requestInit:{headers:i,signal:t,credentials:"include"}})},Ts=e=>{try{return JSON.parse(e)}catch{return e}},zn=new Map,Cs=(e,t)=>({...e,id:e.name,inputSchema:e.inputSchema?Ae(e.inputSchema):void 0,outputSchema:e.outputSchema?Ae(e.outputSchema):void 0,execute:n=>t(n.context,e.name)});function mu(e){const t=n=>"connection"in e?hu({connection:e.connection},void 0,n):e.client;return new Proxy({},{get(n,r){if(r==="toJSON")return null;if(typeof r!="string")throw new Error("Name must be a string");if(r==="listTools")return a;async function i(l,c=r){const u=e?.debugId?.(),f=u?{"x-trace-debug-id":u}:void 0,{client:h}=await t(f),{structuredContent:m,isError:d,content:p}=await h.callTool({name:String(c),arguments:l});if(d){const S=p?.[0]?.text,O=typeof S=="string"?Ts(S):null,E=O?.code&&typeof e?.getErrorByStatusCode=="function"?e.getErrorByStatusCode(O.code,O.message,O.traceId):null;throw E||new Error(`Tool ${String(c)} returned an error: ${JSON.stringify(m??p)}`)}if(m!==void 0)return m;const y=p?.[0]?.text;return typeof y=="string"?Ts(y):void 0}async function s(){const{client:l}=await t(),{tools:c}=await l.listTools();return c}async function o(){if(!("connection"in e))return s();const l=e.connection,c=JSON.stringify(l);try{return zn.has(c)||zn.set(c,s()),await zn.get(c)}catch(u){console.error("Failed to list tools",u),zn.delete(c);return}}async function a(){return(await o()??[]).map(c=>Cs(c,i))}return i.asTool=async()=>{const c=(await o()??[]).find(u=>u.name===r);if(!c)throw new Error(`Tool ${r} not found`);return Cs(c,i)},i}})}new Proxy({},{get(e,t){return t==="toJSON"?null:t==="forConnection"?n=>yu({connection:n}):global[t]}});function yu(e){return mu(e)}const gu=_e({toolName:oe().describe("Name of the tool to invoke on that connection"),transformCode:oe().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(stepInput): Output { ... }`\n The stepInput 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.")}),bu=_e({code:oe().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(stepInput): Output { ... }\`
|
|
2
2
|
The stepInput is the resolved value of the references in the input field. Example:
|
|
3
3
|
{
|
|
4
4
|
"input": {
|