decocms 2.367.13 → 2.367.25

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.
Files changed (225) hide show
  1. package/dist/client/assets/{AlertCircle-BT4KzWnI.js → AlertCircle-B5W8e_5w.js} +1 -1
  2. package/dist/client/assets/{ArrowNarrowLeft-DL6IklHf.js → ArrowNarrowLeft-hiT9EAxM.js} +1 -1
  3. package/dist/client/assets/{ArrowUpRight-CuD8Ec0Q.js → ArrowUpRight-BngWaIVR.js} +1 -1
  4. package/dist/client/assets/{Check-BwR-n-sF.js → Check-8Z25AyId.js} +1 -1
  5. package/dist/client/assets/{CheckCircle-CeozB0CE.js → CheckCircle-BEasBYv4.js} +1 -1
  6. package/dist/client/assets/{ChevronDown-NgrGgemj.js → ChevronDown-DYIWk9ra.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-DzTdh7eY.js → ChevronRight-C956u55G.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-O1681VYk.js → ChevronUp-CdhHmg9Y.js} +1 -1
  9. package/dist/client/assets/{Container-2b4BXA-n.js → Container-eQJj-j5B.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-DwV108_Y.js → DotsVertical-BY4pEp3W.js} +1 -1
  11. package/dist/client/assets/{FilterLines-DOivCNH_.js → FilterLines-z8ejuVIV.js} +1 -1
  12. package/dist/client/assets/{HardDrive-Cj4eW7va.js → HardDrive-C5cYoT_u.js} +1 -1
  13. package/dist/client/assets/{Key01-BQUJeWtG.js → Key01-D616GLzE.js} +1 -1
  14. package/dist/client/assets/{LayoutLeft-BtnBeX4Q.js → LayoutLeft-_rPJ3Xdj.js} +1 -1
  15. package/dist/client/assets/{LinkExternal01-gSnFHviP.js → LinkExternal01-DxWXfBDh.js} +1 -1
  16. package/dist/client/assets/{Lock01-CLcwdBbZ.js → Lock01-BCib8CWc.js} +1 -1
  17. package/dist/client/assets/{Monitor01-B72KxmOA.js → Monitor01-Bz4VCJsr.js} +1 -1
  18. package/dist/client/assets/{Palette-CDAteqS3.js → Palette-Vm3-5yKD.js} +1 -1
  19. package/dist/client/assets/{Play-3lq0IL_j.js → Play-CKvhUVKq.js} +1 -1
  20. package/dist/client/assets/{Plus-CuU_Vn1V.js → Plus-CpQnzuG3.js} +1 -1
  21. package/dist/client/assets/{RefreshCcw01-DYeBzgxl.js → RefreshCcw01-B7Js0dD2.js} +1 -1
  22. package/dist/client/assets/{SearchMd-YL-AZ1_e.js → SearchMd-D0mvaU5_.js} +1 -1
  23. package/dist/client/assets/{Settings02-CmAK-JQC.js → Settings02-CNt0vvEu.js} +1 -1
  24. package/dist/client/assets/{Shield01-DWmt0CsN.js → Shield01-CZAvPXer.js} +1 -1
  25. package/dist/client/assets/{Star01-B9_yj21o.js → Star01-CEifhmiR.js} +1 -1
  26. package/dist/client/assets/{Stars02-DjyZ6rm8.js → Stars02-M_tqgIvg.js} +1 -1
  27. package/dist/client/assets/{Sun-D3nbZYnT.js → Sun-Ch8hbN6j.js} +1 -1
  28. package/dist/client/assets/{SwitchHorizontal01-CoAD8Pso.js → SwitchHorizontal01-CJw113gN.js} +1 -1
  29. package/dist/client/assets/{Tool01-Cr9-Ayar.js → Tool01-CbzoidXH.js} +1 -1
  30. package/dist/client/assets/{Trash01-Bdgng8Ny.js → Trash01-CUZkoYoW.js} +1 -1
  31. package/dist/client/assets/{Upload01-DEH4hqbP.js → Upload01-DaqpbIUH.js} +1 -1
  32. package/dist/client/assets/{User01-DvR2FzxS.js → User01-CtOhLzXW.js} +1 -1
  33. package/dist/client/assets/{Users01-DKVYUvbH.js → Users01-DQVYpyq7.js} +1 -1
  34. package/dist/client/assets/{Users03-BScPbfBT.js → Users03-DGJmr08f.js} +1 -1
  35. package/dist/client/assets/{X-BpMfki2j.js → X-Coa3_vHC.js} +1 -1
  36. package/dist/client/assets/{XCircle-D4gl9x0F.js → XCircle-DvYTE78y.js} +1 -1
  37. package/dist/client/assets/{XClose-8wwGH-xu.js → XClose-wy0ZjI4q.js} +1 -1
  38. package/dist/client/assets/{Zap-DGOMtCmx.js → Zap-B74dlfsg.js} +1 -1
  39. package/dist/client/assets/{ZapSquare-C-QuJXiX.js → ZapSquare-BQ8gms0B.js} +1 -1
  40. package/dist/client/assets/{accordion-D87rF_9b.js → accordion-6vou0XmS.js} +1 -1
  41. package/dist/client/assets/{add-connection-dialog-cS9loTSU.js → add-connection-dialog-DopFZPio.js} +1 -1
  42. package/dist/client/assets/{agent-icon-BbgplFYb.js → agent-icon-CPWEcMkW.js} +1 -1
  43. package/dist/client/assets/{agent-icons-D769sO2y.js → agent-icons-DbyclYUt.js} +1 -1
  44. package/dist/client/assets/{agents-list-BqvI6z2f.js → agents-list-B_iou2CS.js} +1 -1
  45. package/dist/client/assets/{ai-providers-B7Nlf_fJ.js → ai-providers-jnOr5scM.js} +1 -1
  46. package/dist/client/assets/{alert-WZR80uYd.js → alert-DSWorcln.js} +1 -1
  47. package/dist/client/assets/{alert-dialog-CBfLU0-s.js → alert-dialog-jgkN1ow8.js} +1 -1
  48. package/dist/client/assets/{auth-catchall-drkgEnQI.js → auth-catchall-CibJUhS5.js} +1 -1
  49. package/dist/client/assets/{auth-split-layout-D19kU-YG.js → auth-split-layout-B_0OwIje.js} +1 -1
  50. package/dist/client/assets/{automation-list-row-D0ThPhss.js → automation-list-row-CBG4CRxM.js} +1 -1
  51. package/dist/client/assets/{automations-Cat5ivvi.js → automations-CtXXn5AE.js} +1 -1
  52. package/dist/client/assets/{avatar-DeKO2t6e.js → avatar-vA2R8qEK.js} +1 -1
  53. package/dist/client/assets/{badge-DYaA3f0o.js → badge-BFpOlUFq.js} +1 -1
  54. package/dist/client/assets/{brand-context-McBQ2_gj.js → brand-context-DSMoHChs.js} +1 -1
  55. package/dist/client/assets/{card-CzmU6DPx.js → card-Cd_hFdRe.js} +1 -1
  56. package/dist/client/assets/{chat-context-DsnxmnaH.js → chat-context-B5utwD_j.js} +1 -1
  57. package/dist/client/assets/{checkbox-VBT4OFjs.js → checkbox-cX_blfQo.js} +1 -1
  58. package/dist/client/assets/{cli-auth-success-BXNlJk3J.js → cli-auth-success-DRutP4ab.js} +1 -1
  59. package/dist/client/assets/{collection-detail-CNmVClMC.js → collection-detail-BtSEt034.js} +1 -1
  60. package/dist/client/assets/{collection-display-button-DO9Uub4Z.js → collection-display-button-DMY0cf-y.js} +1 -1
  61. package/dist/client/assets/{collection-search-CgHA_hw5.js → collection-search-CLSVS08U.js} +1 -1
  62. package/dist/client/assets/{collection-search-ZgHJOBo2.js → collection-search-XjYetQA3.js} +1 -1
  63. package/dist/client/assets/{collection-table-wrapper-DrLHkx2B.js → collection-table-wrapper-CqVfrSyn.js} +1 -1
  64. package/dist/client/assets/{collection-tabs-DW8sLdGn.js → collection-tabs-Cq1YLx0H.js} +1 -1
  65. package/dist/client/assets/{collections-DVQWcwMA.js → collections-DXz0tqzt.js} +1 -1
  66. package/dist/client/assets/{command-Cdu-1z9q.js → command-C_TH6iOa.js} +1 -1
  67. package/dist/client/assets/{connect-desktop-dialog-CejAAfIG.js → connect-desktop-dialog-CiOZeQs6.js} +1 -1
  68. package/dist/client/assets/{connection-card-kJpbPjBb.js → connection-card-BXYnxALA.js} +1 -1
  69. package/dist/client/assets/{connection-detail-D6x_V51B.js → connection-detail-DV4Eb2Ak.js} +1 -1
  70. package/dist/client/assets/{connection-form-helpers-Dg3964lu.js → connection-form-helpers-DNLR-aHd.js} +1 -1
  71. package/dist/client/assets/{connections-0_RrcJiG.js → connections-JdhjKCmC.js} +1 -1
  72. package/dist/client/assets/{constants-BwYc8BqM.js → constants-oggaZSfP.js} +1 -1
  73. package/dist/client/assets/{decopilot-sse-pool-B9BzYuaT.js → decopilot-sse-pool-atg0HfN2.js} +1 -1
  74. package/dist/client/assets/{dialog-TcaoJB0K.js → dialog-B_fGUV_0.js} +1 -1
  75. package/dist/client/assets/{domain-settings-BnZTuy7Y.js → domain-settings-CAp7ZsSN.js} +1 -1
  76. package/dist/client/assets/{drawer-Db2QUt1V.js → drawer-B6wZPR31.js} +1 -1
  77. package/dist/client/assets/{dropdown-menu-C_xsx5zL.js → dropdown-menu-BUe1eS9C.js} +1 -1
  78. package/dist/client/assets/{dynamic-plugin-layout-B1AK4Qfp.js → dynamic-plugin-layout-5vTDPOk1.js} +1 -1
  79. package/dist/client/assets/{empty-state-DTm9XCIk.js → empty-state-C6lTqnpg.js} +1 -1
  80. package/dist/client/assets/{empty-state-CewyMuo1.js → empty-state-DUBPA5NU.js} +1 -1
  81. package/dist/client/assets/{extract-connection-data-Bh_Tkl8z.js → extract-connection-data-DM9YCvRC.js} +1 -1
  82. package/dist/client/assets/{features-rGWmQRbS.js → features-DeqFL1TF.js} +1 -1
  83. package/dist/client/assets/{file-explorer-BxcoLq7k.js → file-explorer-DGNu1G6y.js} +1 -1
  84. package/dist/client/assets/{files-092UZxGN.js → files-CTFSKbFe.js} +1 -1
  85. package/dist/client/assets/{form-DD66RTDf.js → form-DIJniw7V.js} +1 -1
  86. package/dist/client/assets/{general-DTbdocsc.js → general-C1eIXBGl.js} +1 -1
  87. package/dist/client/assets/{generate-id-DMa8tQ_Y.js → generate-id-CUOrXJD_.js} +1 -1
  88. package/dist/client/assets/{github-repo-picker-BaZinHsd.js → github-repo-picker-CbPGsyKd.js} +1 -1
  89. package/dist/client/assets/{hooks-Bhk1YQ2I.js → hooks-wb_9T_1N.js} +1 -1
  90. package/dist/client/assets/{hover-card-szbVRwlX.js → hover-card-CKXherxT.js} +1 -1
  91. package/dist/client/assets/{index-y9b1xONk.js → index-4hlJQ9pJ.js} +1 -1
  92. package/dist/client/assets/{index-j4kSKfbx.js → index-BcTuPMjJ.js} +1 -1
  93. package/dist/client/assets/{index-BbdQ6KU8.js → index-C4lnfdzw.js} +1 -1
  94. package/dist/client/assets/{index-Dr77wSbz.js → index-C7pSmjIO.js} +1 -1
  95. package/dist/client/assets/{index-Bi14o9BI.js → index-C8daMTSw.js} +1 -1
  96. package/dist/client/assets/{index-DoZOGE8i.js → index-CCOM2TyZ.js} +1 -1
  97. package/dist/client/assets/{index-DbUSKXZz.js → index-CLNFUsz7.js} +1 -1
  98. package/dist/client/assets/{index-cthVMhmX.js → index-CZe7rsCu.js} +1 -1
  99. package/dist/client/assets/{index-CM1D3IOd.js → index-C_etCvW6.js} +2 -2
  100. package/dist/client/assets/{index-C9kZ7-22.js → index-CtrYWx6M.js} +1 -1
  101. package/dist/client/assets/{index-C5X_vClM.js → index-DQI8RGuh.js} +1 -1
  102. package/dist/client/assets/{index-DDxVYHfh.js → index-DTRFlXli.js} +1 -1
  103. package/dist/client/assets/{index-CN3piKjg.js → index-HbdqPSFx.js} +4 -4
  104. package/dist/client/assets/{index-joEaP8qc.js → index-JWYz3SFX.js} +1 -1
  105. package/dist/client/assets/{index-CN1EZuP6.js → index-iXiOYxiI.js} +1 -1
  106. package/dist/client/assets/{index-BNRl1Tot.js → index-oDkRJBov.js} +1 -1
  107. package/dist/client/assets/{infiniteQueryObserver-BThZVpCW.js → infiniteQueryObserver-ClfdJkk7.js} +1 -1
  108. package/dist/client/assets/{input-DrYpnRWV.js → input-CGbgb-E-.js} +1 -1
  109. package/dist/client/assets/{integration-icon-CpEacvrW.js → integration-icon-BruX6m5m.js} +1 -1
  110. package/dist/client/assets/{label-Cm89B89_.js → label-DZerbc9D.js} +1 -1
  111. package/dist/client/assets/{layout-D_sGbaUG.js → layout-BZH9O9Di.js} +1 -1
  112. package/dist/client/assets/{login-B0m7NoXF.js → login-DZffN_aA.js} +1 -1
  113. package/dist/client/assets/{members-TNc3XO9o.js → members-D7h7i7jo.js} +1 -1
  114. package/dist/client/assets/{monaco-editor-DA9r9xlp.js → monaco-editor-5gAmZPD0.js} +1 -1
  115. package/dist/client/assets/{monitoring-stats-row-BAGlU-cw.js → monitoring-stats-row-Bk1ZQbMo.js} +1 -1
  116. package/dist/client/assets/{oauth-callback-Bme8yHJx.js → oauth-callback-BIsI_jqc.js} +1 -1
  117. package/dist/client/assets/{oauth-callback-ai-provider-f1O1WajF.js → oauth-callback-ai-provider-C27n0WFg.js} +1 -1
  118. package/dist/client/assets/{onboarding-CQUJ9k5e.js → onboarding-Ck72MHHt.js} +1 -1
  119. package/dist/client/assets/{org-layout-I5rG58sc.js → org-layout-DKx39VER.js} +1 -1
  120. package/dist/client/assets/{org-plugin-layout-dR6pThVC.js → org-plugin-layout-BaK8uVO_.js} +1 -1
  121. package/dist/client/assets/{pair-DEIG2RgN.js → pair-Cgvtm3hX.js} +1 -1
  122. package/dist/client/assets/{plugin-empty-state-4_sYAII0.js → plugin-empty-state-DDY0jmoN.js} +1 -1
  123. package/dist/client/assets/{plugin-header-BwNgsj_9.js → plugin-header-CtGcek8l.js} +1 -1
  124. package/dist/client/assets/{plugin-layout-7nPkrfcu.js → plugin-layout-oaFFfdTI.js} +1 -1
  125. package/dist/client/assets/{popover-C9ON0IYH.js → popover-xTN6BEZL.js} +1 -1
  126. package/dist/client/assets/{profile-B1MkYulp.js → profile-Bt1eqeyk.js} +1 -1
  127. package/dist/client/assets/{project-app-view-BuPeSGT8.js → project-app-view-C4H7AVbl.js} +1 -1
  128. package/dist/client/assets/registry-BI9574MG.js +2 -0
  129. package/dist/client/assets/{registry-layout-gpmPSOEv.js → registry-layout-COVdyl2V.js} +1 -1
  130. package/dist/client/assets/{required-auth-layout-CUCq1Ujt.js → required-auth-layout-r_pSqbfY.js} +1 -1
  131. package/dist/client/assets/{reset-password-BVGQ_9V7.js → reset-password-C89Bjdhm.js} +1 -1
  132. package/dist/client/assets/{roles-DAPDhbwg.js → roles-Cg2trhAU.js} +1 -1
  133. package/dist/client/assets/{search-input-DKfonUQJ.js → search-input-CjfEjrnk.js} +1 -1
  134. package/dist/client/assets/{secrets-CHWB0VGD.js → secrets-CxfV7l1d.js} +1 -1
  135. package/dist/client/assets/{sections-editor-CeXP_fUW.js → sections-editor-Q3yGyCxb.js} +1 -1
  136. package/dist/client/assets/{select-Bi6n0v1l.js → select-DXIl-nWc.js} +1 -1
  137. package/dist/client/assets/{settings-layout-CCfPNWLq.js → settings-layout-skdEb6EQ.js} +1 -1
  138. package/dist/client/assets/{settings-section-CHdjpjU7.js → settings-section-DRZOyjZN.js} +1 -1
  139. package/dist/client/assets/{shell-controls-EFju5Xuz.js → shell-controls-Bh_0J4mE.js} +1 -1
  140. package/dist/client/assets/{shell-layout-odzNWxkB.js → shell-layout-DX8eVZ8L.js} +1 -1
  141. package/dist/client/assets/{sidebar-DapD5BLH.js → sidebar-BMGvDz3J.js} +1 -1
  142. package/dist/client/assets/{skeleton-BLQ-Z2or.js → skeleton-BNkut-Qo.js} +1 -1
  143. package/dist/client/assets/{sortable.esm-Dvr6sXXz.js → sortable.esm-gCXq3aZO.js} +1 -1
  144. package/dist/client/assets/{spinner-DSdP03Bc.js → spinner-TVmcFRIL.js} +1 -1
  145. package/dist/client/assets/{sso-06euccCF.js → sso-bbmzRIMK.js} +1 -1
  146. package/dist/client/assets/{store-C4RZhwKw.js → store-CioUjuaZ.js} +1 -1
  147. package/dist/client/assets/store-registry-B2Rmo0V0.js +2 -0
  148. package/dist/client/assets/{switch-BOO2ukng.js → switch-khv0BLvL.js} +1 -1
  149. package/dist/client/assets/{table-_uCDG2hl.js → table-C_yNGOnh.js} +1 -1
  150. package/dist/client/assets/{tabs-BQ9tTDv7.js → tabs-DRaRBGe3.js} +1 -1
  151. package/dist/client/assets/{task-status-GEjzAUmm.js → task-status-CkD92yfU.js} +1 -1
  152. package/dist/client/assets/{textarea-DMNeKZeZ.js → textarea-DASnyL4F.js} +1 -1
  153. package/dist/client/assets/{toggle-group-BwRgB5RE.js → toggle-group-DPmEdA-m.js} +1 -1
  154. package/dist/client/assets/{toolbar-ZFFuL6YR.js → toolbar-C9yYx7bm.js} +1 -1
  155. package/dist/client/assets/{tools-list-DXRB9DMK.js → tools-list-psDgt0om.js} +1 -1
  156. package/dist/client/assets/{tooltip-Cc8Oz_Tb.js → tooltip-8OqGw7oG.js} +1 -1
  157. package/dist/client/assets/{types-DETbs5zw.js → types-BmHvFlO1.js} +1 -1
  158. package/dist/client/assets/{use-ai-providers-BFMpjk_o.js → use-ai-providers-CCCd9SIG.js} +1 -1
  159. package/dist/client/assets/{use-collections-CW9RG6h4.js → use-collections-BsrK_euH.js} +1 -1
  160. package/dist/client/assets/{use-connection-BA0O34v3.js → use-connection--tE4CSIP.js} +1 -1
  161. package/dist/client/assets/{use-copy-BI1hoGvu.js → use-copy-CG-PSiHT.js} +1 -1
  162. package/dist/client/assets/{use-create-virtual-mcp-CPLlz8GU.js → use-create-virtual-mcp-DDF2B3SX.js} +1 -1
  163. package/dist/client/assets/{use-debounced-autosave-BwABkJt3.js → use-debounced-autosave-Dj2CoLmA.js} +1 -1
  164. package/dist/client/assets/{use-delete-connection-Dm_6Hsyx.js → use-delete-connection-CDD8AF8I.js} +1 -1
  165. package/dist/client/assets/{use-file-configs-DADtAUxx.js → use-file-configs-B37NAmGU.js} +1 -1
  166. package/dist/client/assets/{use-infinite-scroll-0oj3TOvR.js → use-infinite-scroll-BkFiyWBa.js} +1 -1
  167. package/dist/client/assets/{use-list-state-CCB61-YL.js → use-list-state-BcL02_1r.js} +1 -1
  168. package/dist/client/assets/{use-mcp-prompts-Coi1CKEf.js → use-mcp-prompts-D8zJ1XPI.js} +1 -1
  169. package/dist/client/assets/{use-mcp-tools-DSljy4qc.js → use-mcp-tools-C_ftxwer.js} +1 -1
  170. package/dist/client/assets/{use-members-B1GQuICM.js → use-members-CqC5jIzW.js} +1 -1
  171. package/dist/client/assets/{use-navigate-to-agent-TJFSx1rG.js → use-navigate-to-agent-bdiV5j2z.js} +1 -1
  172. package/dist/client/assets/{use-org-auth-client-CvyxOJ50.js → use-org-auth-client-DtBy8R2R.js} +1 -1
  173. package/dist/client/assets/{use-org-sso-BHhjzT3n.js → use-org-sso-T1wSzyZP.js} +1 -1
  174. package/dist/client/assets/{use-organization-roles-CqvnrNta.js → use-organization-roles-B6nrjgeY.js} +1 -1
  175. package/dist/client/assets/{use-organization-settings-Kf9UVBw8.js → use-organization-settings-CpDAWMUD.js} +1 -1
  176. package/dist/client/assets/{use-registry-connections-CaOaYe6E.js → use-registry-connections-BZm5h5va.js} +1 -1
  177. package/dist/client/assets/{use-secrets-DzvLviXH.js → use-secrets-Bzp6C09M.js} +1 -1
  178. package/dist/client/assets/{use-status-sounds-DAM8WOkV.js → use-status-sounds-BAU2JGUe.js} +1 -1
  179. package/dist/client/assets/{use-view-mode-X_MksRXE.js → use-view-mode-CL1AUq6a.js} +1 -1
  180. package/dist/client/assets/{use-virtual-mcp-2qLUU42J.js → use-virtual-mcp-D92JJRrE.js} +1 -1
  181. package/dist/client/assets/useInfiniteQuery-VRvGrh-Y.js +1 -0
  182. package/dist/client/assets/{useRouterState-D1LxQ93_.js → useRouterState-CFvTFlCq.js} +1 -1
  183. package/dist/client/assets/useSuspenseInfiniteQuery-DWV-fRnj.js +1 -0
  184. package/dist/client/assets/{user-BmoWQK0D.js → user-Cc4_vb_v.js} +1 -1
  185. package/dist/client/assets/{view-mode-toggle-Bt--nFn5.js → view-mode-toggle-B0PLoHTf.js} +1 -1
  186. package/dist/client/assets/workflow-detail-DMN9egvR.js +1 -0
  187. package/dist/client/assets/{workflow-CCgkz7n2.js → workflow-uatlbMiQ.js} +1 -1
  188. package/dist/client/index.html +1 -1
  189. package/dist/server/cli.js +1 -1
  190. package/package.json +1 -1
  191. package/dist/client/assets/registry-BPpui4Vv.js +0 -2
  192. package/dist/client/assets/store-registry-DOjXpenK.js +0 -2
  193. package/dist/client/assets/useInfiniteQuery-6Vl88Gwv.js +0 -1
  194. package/dist/client/assets/useSuspenseInfiniteQuery-Ciek5SC-.js +0 -1
  195. package/dist/client/assets/workflow-detail-C6NUgtqX.js +0 -1
  196. package/dist/server/node_modules/ansi-regex/index.d.ts +0 -33
  197. package/dist/server/node_modules/ansi-regex/index.js +0 -14
  198. package/dist/server/node_modules/ansi-regex/license +0 -9
  199. package/dist/server/node_modules/ansi-regex/package.json +0 -61
  200. package/dist/server/node_modules/ansi-regex/readme.md +0 -66
  201. package/dist/server/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  202. package/dist/server/node_modules/emoji-regex/README.md +0 -107
  203. package/dist/server/node_modules/emoji-regex/index.d.ts +0 -3
  204. package/dist/server/node_modules/emoji-regex/index.js +0 -4
  205. package/dist/server/node_modules/emoji-regex/index.mjs +0 -4
  206. package/dist/server/node_modules/emoji-regex/package.json +0 -45
  207. package/dist/server/node_modules/pg-cloudflare/LICENSE +0 -21
  208. package/dist/server/node_modules/pg-cloudflare/README.md +0 -112
  209. package/dist/server/node_modules/pg-cloudflare/dist/empty.d.ts +0 -2
  210. package/dist/server/node_modules/pg-cloudflare/dist/empty.js +0 -6
  211. package/dist/server/node_modules/pg-cloudflare/dist/empty.js.map +0 -1
  212. package/dist/server/node_modules/pg-cloudflare/dist/index.d.ts +0 -31
  213. package/dist/server/node_modules/pg-cloudflare/dist/index.js +0 -152
  214. package/dist/server/node_modules/pg-cloudflare/dist/index.js.map +0 -1
  215. package/dist/server/node_modules/pg-cloudflare/esm/index.mjs +0 -3
  216. package/dist/server/node_modules/pg-cloudflare/package.json +0 -39
  217. package/dist/server/node_modules/pg-cloudflare/src/empty.ts +0 -3
  218. package/dist/server/node_modules/pg-cloudflare/src/index.ts +0 -166
  219. package/dist/server/node_modules/pg-cloudflare/src/types.d.ts +0 -25
  220. package/dist/server/node_modules/pg-connection-string/LICENSE +0 -21
  221. package/dist/server/node_modules/pg-connection-string/README.md +0 -105
  222. package/dist/server/node_modules/pg-connection-string/esm/index.mjs +0 -8
  223. package/dist/server/node_modules/pg-connection-string/index.d.ts +0 -36
  224. package/dist/server/node_modules/pg-connection-string/index.js +0 -231
  225. package/dist/server/node_modules/pg-connection-string/package.json +0 -52
@@ -1,4 +1,4 @@
1
- import{dx as se,e as I,j as o,B as te,l as Yt,ba as Ae,dy as Gs,r as X,q as oe,c as $,g as Qs,D as Zt,dz as Nt,dA as es,o as Ys,v as Zs,dB as en,dC as tn}from"./index-CM1D3IOd.js";import{D as sn,F as nn,B as on}from"./index-DoZOGE8i.js";import{h as De,i as rn,u as ae}from"./constants-BwYc8BqM.js";import{b as ts}from"./use-virtual-mcp-2qLUU42J.js";import{M as Oe,a as ln,S as cn}from"./monaco-editor-DA9r9xlp.js";import{A as an,c as un,a as dn,b as fn,e as mn,R as zt,d as pn}from"./accordion-D87rF_9b.js";import{B as le}from"./badge-DYaA3f0o.js";import{c as xt,S as ht,d as Ze,b as gt,a as bt}from"./select-Bi6n0v1l.js";import{S as et}from"./spinner-DSdP03Bc.js";import{V as xn}from"./view-mode-toggle-Bt--nFn5.js";import{ad as hn,o as gn,i as bn,x as ss,ae as jn,U as Sn,s as yn,af as ns,a0 as wn,Y as os,ag as vn,ah as Nn,W as ft,ai as kn}from"./agent-icon-BbgplFYb.js";import{i as rs}from"./Play-3lq0IL_j.js";import{b as In,a as _n,V as Ge}from"./layout-D_sGbaUG.js";import{c as is,b as ls,T as cs,a as as}from"./tooltip-Cc8Oz_Tb.js";import{u as Cn,a as Tn}from"./use-connection-BA0O34v3.js";import{u as kt,d as It,b as us}from"./use-mcp-tools-DSljy4qc.js";import{c as En,d as $n,e as On,D as Mn,a as Rn,b as Ln}from"./dialog-TcaoJB0K.js";import"./index-j4kSKfbx.js";import{N as zn,m as An,n as Wn,o as Ke,P as Pn,i as Dn,R as Fn,u as Vn,p as qn,e as At,d as Hn}from"./index-y9b1xONk.js";import{S as Un}from"./index-CN1EZuP6.js";import{H as Kn,a as Bn,b as Xn}from"./hover-card-szbVRwlX.js";import{D as ds,a as fs,b as ms,c as Qe}from"./dropdown-menu-C_xsx5zL.js";import{s as Jn}from"./Plus-CuU_Vn1V.js";import{b as ps}from"./Tool01-Cr9-Ayar.js";import{i as Fe}from"./Check-BwR-n-sF.js";import{s as _t}from"./XClose-8wwGH-xu.js";import{I as Ct}from"./integration-icon-CpEacvrW.js";import"./index-DDxVYHfh.js";import{i as xs}from"./X-BpMfki2j.js";import{u as hs,a as Gn}from"./use-collections-CW9RG6h4.js";import{E as gs}from"./empty-state-DTm9XCIk.js";import{c as Qn}from"./create-sse-subscription-CjI9SUTI.js";import{I as Wt}from"./input-DrYpnRWV.js";const bs=se("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);const js=se("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);const tt=se("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const st=se("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const Yn=se("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);const Ss=se("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);const Zn=se("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);const ys=se("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const ws=se("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);const vs=se("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);const eo=se("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);const Ns=se("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const ks=se("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);const to=se("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const Is=se("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);function so(t){const e=I.c(15),{onSave:n,onUndo:s,isDirty:i,isSaving:r,saveLabel:l,undoLabel:c}=t,a=l===void 0?"Save":l,u=c===void 0?"Undo":c;if(!i)return null;let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx(hn,{size:14}),e[0]=d):d=e[0];let f;e[1]!==r||e[2]!==s||e[3]!==u?(f=o.jsxs(te,{variant:"outline",size:"sm",onClick:s,disabled:r,"aria-label":u,children:[d,u]}),e[1]=r,e[2]=s,e[3]=u,e[4]=f):f=e[4];let m;e[5]!==r?(m=r?o.jsx(Yt,{size:14,className:"animate-spin"}):o.jsx(gn,{size:14}),e[5]=r,e[6]=m):m=e[6];let p;e[7]!==r||e[8]!==n||e[9]!==a||e[10]!==m?(p=o.jsxs(te,{variant:"default",size:"sm",onClick:n,disabled:r,"aria-label":a,children:[m,a]}),e[7]=r,e[8]=n,e[9]=a,e[10]=m,e[11]=p):p=e[11];let x;return e[12]!==f||e[13]!==p?(x=o.jsxs(o.Fragment,{children:[f,p]}),e[12]=f,e[13]=p,e[14]=x):x=e[14],x}const Pt=t=>{let e;const n=new Set,s=(u,d)=>{const f=typeof u=="function"?u(e):u;if(!Object.is(f,e)){const m=e;e=d??(typeof f!="object"||f===null)?f:Object.assign({},e,f),n.forEach(p=>p(e,m))}},i=()=>e,c={setState:s,getState:i,getInitialState:()=>a,subscribe:u=>(n.add(u),()=>n.delete(u))},a=e=t(s,i,c);return c},Tt=(t=>t?Pt(t):Pt),no=t=>t;function jt(t,e=no){const n=Ae.useSyncExternalStore(t.subscribe,Ae.useCallback(()=>e(t.getState()),[t,e]),Ae.useCallback(()=>e(t.getInitialState()),[t,e]));return Ae.useDebugValue(n),n}const oo=t=>{const e=Tt(t),n=s=>jt(e,s);return Object.assign(n,e),n},ro=(t=>oo);function _s(t,e){let n;try{n=t()}catch{return}return{getItem:i=>{var r;const l=a=>a===null?null:JSON.parse(a,void 0),c=(r=n.getItem(i))!=null?r:null;return c instanceof Promise?c.then(l):l(c)},setItem:(i,r)=>n.setItem(i,JSON.stringify(r,void 0)),removeItem:i=>n.removeItem(i)}}const St=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(s){return St(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return St(s)(n)}}}},io=(t,e)=>(n,s,i)=>{let r={storage:_s(()=>window.localStorage),partialize:g=>g,version:0,merge:(g,b)=>({...b,...g}),...e},l=!1,c=0;const a=new Set,u=new Set;let d=r.storage;if(!d)return t((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${r.name}', the given storage is currently unavailable.`),n(...g)},s,i);const f=()=>{const g=r.partialize({...s()});return d.setItem(r.name,{state:g,version:r.version})},m=i.setState;i.setState=(g,b)=>(m(g,b),f());const p=t((...g)=>(n(...g),f()),s,i);i.getInitialState=()=>p;let x;const h=()=>{var g,b;if(!d)return;const S=++c;l=!1,a.forEach(y=>{var j;return y((j=s())!=null?j:p)});const w=((b=r.onRehydrateStorage)==null?void 0:b.call(r,(g=s())!=null?g:p))||void 0;return St(d.getItem.bind(d))(r.name).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==r.version){if(r.migrate){const j=r.migrate(y.state,y.version);return j instanceof Promise?j.then(v=>[!0,v]):[!0,j]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,y.state];return[!1,void 0]}).then(y=>{var j;if(S!==c)return;const[v,N]=y;if(x=r.merge(N,(j=s())!=null?j:p),n(x,!0),v)return f()}).then(()=>{S===c&&(w?.(s(),void 0),x=s(),l=!0,u.forEach(y=>y(x)))}).catch(y=>{S===c&&w?.(void 0,y)})};return i.persist={setOptions:g=>{r={...r,...g},g.storage&&(d=g.storage)},clearStorage:()=>{d?.removeItem(r.name)},getOptions:()=>r,rehydrate:()=>h(),hasHydrated:()=>l,onHydrate:g=>(a.add(g),()=>{a.delete(g)}),onFinishHydration:g=>(u.add(g),()=>{u.delete(g)})},r.skipHydration||h(),x||p},Cs=io,{useSyncExternalStoreWithSelector:lo}=Gs,co=t=>t;function ao(t,e=co,n){const s=lo(t.subscribe,t.getState,t.getInitialState,e,n);return Ae.useDebugValue(s),s}const Dt=t=>Symbol.iterator in t,Ft=t=>"entries"in t,Vt=(t,e)=>{const n=t instanceof Map?t:new Map(t.entries()),s=e instanceof Map?e:new Map(e.entries());if(n.size!==s.size)return!1;for(const[i,r]of n)if(!s.has(i)||!Object.is(r,s.get(i)))return!1;return!0},uo=(t,e)=>{const n=t[Symbol.iterator](),s=e[Symbol.iterator]();let i=n.next(),r=s.next();for(;!i.done&&!r.done;){if(!Object.is(i.value,r.value))return!1;i=n.next(),r=s.next()}return!!i.done&&!!r.done};function fo(t,e){return Object.is(t,e)?!0:typeof t!="object"||t===null||typeof e!="object"||e===null||Object.getPrototypeOf(t)!==Object.getPrototypeOf(e)?!1:Dt(t)&&Dt(e)?Ft(t)&&Ft(e)?Vt(t,e):uo(t,e):Vt({entries:()=>Object.entries(t)},{entries:()=>Object.entries(e)})}function Ts(t,e="Output"){if(!t)return`interface ${e} {}`;function n(r){if(!r||typeof r!="object")return"unknown";const l=r.type;if(Array.isArray(l))return l.map(c=>s(c)).join(" | ");switch(l){case"string":return r.enum?r.enum.map(c=>`"${c}"`).join(" | "):"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";case"array":{const c=r.items;return c?`${n(c)}[]`:"unknown[]"}case"object":return i(r);default:return r.anyOf?r.anyOf.map(n).join(" | "):r.oneOf?r.oneOf.map(n).join(" | "):r.allOf?r.allOf.map(n).join(" & "):"unknown"}}function s(r){switch(r){case"string":return"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";default:return"unknown"}}function i(r){const l=r.properties;if(!l)return"Record<string, unknown>";const c=new Set(r.required||[]);return`{
1
+ import{dx as se,e as I,j as o,B as te,l as Yt,ba as Ae,dy as Gs,r as X,q as oe,c as $,g as Qs,D as Zt,dz as Nt,dA as es,o as Ys,v as Zs,dB as en,dC as tn}from"./index-C_etCvW6.js";import{D as sn,F as nn,B as on}from"./index-CCOM2TyZ.js";import{h as De,i as rn,u as ae}from"./constants-oggaZSfP.js";import{b as ts}from"./use-virtual-mcp-D92JJRrE.js";import{M as Oe,a as ln,S as cn}from"./monaco-editor-5gAmZPD0.js";import{A as an,c as un,a as dn,b as fn,e as mn,R as zt,d as pn}from"./accordion-6vou0XmS.js";import{B as le}from"./badge-BFpOlUFq.js";import{c as xt,S as ht,d as Ze,b as gt,a as bt}from"./select-DXIl-nWc.js";import{S as et}from"./spinner-TVmcFRIL.js";import{V as xn}from"./view-mode-toggle-B0PLoHTf.js";import{ad as hn,o as gn,i as bn,x as ss,ae as jn,U as Sn,s as yn,af as ns,a0 as wn,Y as os,ag as vn,ah as Nn,W as ft,ai as kn}from"./agent-icon-CPWEcMkW.js";import{i as rs}from"./Play-CKvhUVKq.js";import{b as In,a as _n,V as Ge}from"./layout-BZH9O9Di.js";import{c as is,b as ls,T as cs,a as as}from"./tooltip-8OqGw7oG.js";import{u as Cn,a as Tn}from"./use-connection--tE4CSIP.js";import{u as kt,d as It,b as us}from"./use-mcp-tools-C_ftxwer.js";import{c as En,d as $n,e as On,D as Mn,a as Rn,b as Ln}from"./dialog-B_fGUV_0.js";import"./index-BcTuPMjJ.js";import{N as zn,m as An,n as Wn,o as Ke,P as Pn,i as Dn,R as Fn,u as Vn,p as qn,e as At,d as Hn}from"./index-4hlJQ9pJ.js";import{S as Un}from"./index-iXiOYxiI.js";import{H as Kn,a as Bn,b as Xn}from"./hover-card-CKXherxT.js";import{D as ds,a as fs,b as ms,c as Qe}from"./dropdown-menu-BUe1eS9C.js";import{s as Jn}from"./Plus-CpQnzuG3.js";import{b as ps}from"./Tool01-CbzoidXH.js";import{i as Fe}from"./Check-8Z25AyId.js";import{s as _t}from"./XClose-wy0ZjI4q.js";import{I as Ct}from"./integration-icon-BruX6m5m.js";import"./index-DTRFlXli.js";import{i as xs}from"./X-Coa3_vHC.js";import{u as hs,a as Gn}from"./use-collections-BsrK_euH.js";import{E as gs}from"./empty-state-C6lTqnpg.js";import{c as Qn}from"./create-sse-subscription-CjI9SUTI.js";import{I as Wt}from"./input-CGbgb-E-.js";const bs=se("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);const js=se("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);const tt=se("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const st=se("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const Yn=se("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);const Ss=se("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);const Zn=se("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);const ys=se("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const ws=se("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);const vs=se("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);const eo=se("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);const Ns=se("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const ks=se("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);const to=se("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const Is=se("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);function so(t){const e=I.c(15),{onSave:n,onUndo:s,isDirty:i,isSaving:r,saveLabel:l,undoLabel:c}=t,a=l===void 0?"Save":l,u=c===void 0?"Undo":c;if(!i)return null;let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx(hn,{size:14}),e[0]=d):d=e[0];let f;e[1]!==r||e[2]!==s||e[3]!==u?(f=o.jsxs(te,{variant:"outline",size:"sm",onClick:s,disabled:r,"aria-label":u,children:[d,u]}),e[1]=r,e[2]=s,e[3]=u,e[4]=f):f=e[4];let m;e[5]!==r?(m=r?o.jsx(Yt,{size:14,className:"animate-spin"}):o.jsx(gn,{size:14}),e[5]=r,e[6]=m):m=e[6];let p;e[7]!==r||e[8]!==n||e[9]!==a||e[10]!==m?(p=o.jsxs(te,{variant:"default",size:"sm",onClick:n,disabled:r,"aria-label":a,children:[m,a]}),e[7]=r,e[8]=n,e[9]=a,e[10]=m,e[11]=p):p=e[11];let x;return e[12]!==f||e[13]!==p?(x=o.jsxs(o.Fragment,{children:[f,p]}),e[12]=f,e[13]=p,e[14]=x):x=e[14],x}const Pt=t=>{let e;const n=new Set,s=(u,d)=>{const f=typeof u=="function"?u(e):u;if(!Object.is(f,e)){const m=e;e=d??(typeof f!="object"||f===null)?f:Object.assign({},e,f),n.forEach(p=>p(e,m))}},i=()=>e,c={setState:s,getState:i,getInitialState:()=>a,subscribe:u=>(n.add(u),()=>n.delete(u))},a=e=t(s,i,c);return c},Tt=(t=>t?Pt(t):Pt),no=t=>t;function jt(t,e=no){const n=Ae.useSyncExternalStore(t.subscribe,Ae.useCallback(()=>e(t.getState()),[t,e]),Ae.useCallback(()=>e(t.getInitialState()),[t,e]));return Ae.useDebugValue(n),n}const oo=t=>{const e=Tt(t),n=s=>jt(e,s);return Object.assign(n,e),n},ro=(t=>oo);function _s(t,e){let n;try{n=t()}catch{return}return{getItem:i=>{var r;const l=a=>a===null?null:JSON.parse(a,void 0),c=(r=n.getItem(i))!=null?r:null;return c instanceof Promise?c.then(l):l(c)},setItem:(i,r)=>n.setItem(i,JSON.stringify(r,void 0)),removeItem:i=>n.removeItem(i)}}const St=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(s){return St(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return St(s)(n)}}}},io=(t,e)=>(n,s,i)=>{let r={storage:_s(()=>window.localStorage),partialize:g=>g,version:0,merge:(g,b)=>({...b,...g}),...e},l=!1,c=0;const a=new Set,u=new Set;let d=r.storage;if(!d)return t((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${r.name}', the given storage is currently unavailable.`),n(...g)},s,i);const f=()=>{const g=r.partialize({...s()});return d.setItem(r.name,{state:g,version:r.version})},m=i.setState;i.setState=(g,b)=>(m(g,b),f());const p=t((...g)=>(n(...g),f()),s,i);i.getInitialState=()=>p;let x;const h=()=>{var g,b;if(!d)return;const S=++c;l=!1,a.forEach(y=>{var j;return y((j=s())!=null?j:p)});const w=((b=r.onRehydrateStorage)==null?void 0:b.call(r,(g=s())!=null?g:p))||void 0;return St(d.getItem.bind(d))(r.name).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==r.version){if(r.migrate){const j=r.migrate(y.state,y.version);return j instanceof Promise?j.then(v=>[!0,v]):[!0,j]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,y.state];return[!1,void 0]}).then(y=>{var j;if(S!==c)return;const[v,N]=y;if(x=r.merge(N,(j=s())!=null?j:p),n(x,!0),v)return f()}).then(()=>{S===c&&(w?.(s(),void 0),x=s(),l=!0,u.forEach(y=>y(x)))}).catch(y=>{S===c&&w?.(void 0,y)})};return i.persist={setOptions:g=>{r={...r,...g},g.storage&&(d=g.storage)},clearStorage:()=>{d?.removeItem(r.name)},getOptions:()=>r,rehydrate:()=>h(),hasHydrated:()=>l,onHydrate:g=>(a.add(g),()=>{a.delete(g)}),onFinishHydration:g=>(u.add(g),()=>{u.delete(g)})},r.skipHydration||h(),x||p},Cs=io,{useSyncExternalStoreWithSelector:lo}=Gs,co=t=>t;function ao(t,e=co,n){const s=lo(t.subscribe,t.getState,t.getInitialState,e,n);return Ae.useDebugValue(s),s}const Dt=t=>Symbol.iterator in t,Ft=t=>"entries"in t,Vt=(t,e)=>{const n=t instanceof Map?t:new Map(t.entries()),s=e instanceof Map?e:new Map(e.entries());if(n.size!==s.size)return!1;for(const[i,r]of n)if(!s.has(i)||!Object.is(r,s.get(i)))return!1;return!0},uo=(t,e)=>{const n=t[Symbol.iterator](),s=e[Symbol.iterator]();let i=n.next(),r=s.next();for(;!i.done&&!r.done;){if(!Object.is(i.value,r.value))return!1;i=n.next(),r=s.next()}return!!i.done&&!!r.done};function fo(t,e){return Object.is(t,e)?!0:typeof t!="object"||t===null||typeof e!="object"||e===null||Object.getPrototypeOf(t)!==Object.getPrototypeOf(e)?!1:Dt(t)&&Dt(e)?Ft(t)&&Ft(e)?Vt(t,e):uo(t,e):Vt({entries:()=>Object.entries(t)},{entries:()=>Object.entries(e)})}function Ts(t,e="Output"){if(!t)return`interface ${e} {}`;function n(r){if(!r||typeof r!="object")return"unknown";const l=r.type;if(Array.isArray(l))return l.map(c=>s(c)).join(" | ");switch(l){case"string":return r.enum?r.enum.map(c=>`"${c}"`).join(" | "):"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";case"array":{const c=r.items;return c?`${n(c)}[]`:"unknown[]"}case"object":return i(r);default:return r.anyOf?r.anyOf.map(n).join(" | "):r.oneOf?r.oneOf.map(n).join(" | "):r.allOf?r.allOf.map(n).join(" & "):"unknown"}}function s(r){switch(r){case"string":return"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";default:return"unknown"}}function i(r){const l=r.properties;if(!l)return"Record<string, unknown>";const c=new Set(r.required||[]);return`{
2
2
  ${Object.entries(l).map(([u,d])=>{const f=c.has(u)?"":"?";return`${d.description?` /** ${d.description} */
3
3
  `:""} ${u}${f}: ${n(d)};`}).join(`
4
4
  `)}
@@ -1 +1 @@
1
- import{e as f,c as d,r as p,j as r}from"./index-CM1D3IOd.js";import{r as w}from"./sidebar-DapD5BLH.js";const v=p.createContext(void 0),H=v.Provider;function N(c,e){const l=p.Children.toArray(c);for(const i of l)if(p.isValidElement(i)&&i.type===e)return i;return null}function P(c){const e=f.c(5),{children:l,className:i}=c;let s;e[0]!==i?(s=d("flex flex-col h-full w-full bg-background overflow-hidden",i),e[0]=i,e[1]=s):s=e[1];let t;return e[2]!==l||e[3]!==s?(t=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=t):t=e[4],t}function C(c){const e=f.c(17),{children:l,className:i,hideSidebarTrigger:s}=c;let t;e[0]!==l?(t=N(l,j),e[0]=l,e[1]=t):t=e[1];const n=t;let a;e[2]!==l?(a=N(l,b),e[2]=l,e[3]=a):a=e[3];const o=a;let m;e[4]!==i?(m=d("shrink-0 w-full border-b border-border/50 h-11","flex items-center justify-between gap-3 pr-2 pl-2 md:pl-4",i),e[4]=i,e[5]=m):m=e[5];let x;e[6]!==s?(x=!s&&r.jsx(w,{className:"md:hidden shrink-0"}),e[6]=s,e[7]=x):x=e[7];let u;e[8]!==n||e[9]!==x?(u=r.jsxs("div",{className:"flex items-center gap-1 min-w-0 flex-1",children:[x,n]}),e[8]=n,e[9]=x,e[10]=u):u=e[10];let h;e[11]!==o?(h=r.jsx("div",{className:"flex items-center",children:o}),e[11]=o,e[12]=h):h=e[12];let g;return e[13]!==m||e[14]!==u||e[15]!==h?(g=r.jsxs("div",{className:m,children:[u,h]}),e[13]=m,e[14]=u,e[15]=h,e[16]=g):g=e[16],g}function j(c){const e=f.c(5),{children:l,className:i}=c;let s;e[0]!==i?(s=d("flex items-center gap-2 min-w-0 overflow-hidden",i),e[0]=i,e[1]=s):s=e[1];let t;return e[2]!==l||e[3]!==s?(t=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=t):t=e[4],t}function b(c){const e=f.c(5),{children:l,className:i}=c;let s;e[0]!==i?(s=d("flex items-center gap-2 shrink-0 overflow-hidden",i),e[0]=i,e[1]=s):s=e[1];let t;return e[2]!==l||e[3]!==s?(t=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=t):t=e[4],t}function $(c){const e=f.c(6),{children:l,className:i}=c,s=p.useContext(v);let t;e[0]!==i||e[1]!==s?(t=d("flex-1 overflow-auto",s,i),e[0]=i,e[1]=s,e[2]=t):t=e[2];let n;return e[3]!==l||e[4]!==t?(n=r.jsx("div",{className:t,children:l}),e[3]=l,e[4]=t,e[5]=n):n=e[5],n}function y(c){const e=f.c(10),{children:l,actions:i,className:s}=c;let t;e[0]!==s?(t=d("flex flex-wrap items-center justify-between gap-3",s),e[0]=s,e[1]=t):t=e[1];let n;e[2]!==l?(n=r.jsx("div",{className:"text-xl font-medium min-w-0",children:l}),e[2]=l,e[3]=n):n=e[3];let a;e[4]!==i?(a=i&&r.jsx("div",{className:"flex items-center gap-2",children:i}),e[4]=i,e[5]=a):a=e[5];let o;return e[6]!==t||e[7]!==n||e[8]!==a?(o=r.jsxs("div",{className:t,children:[n,a]}),e[6]=t,e[7]=n,e[8]=a,e[9]=o):o=e[9],o}function R(c){const e=f.c(6),{children:l,className:i,maxWidth:s}=c,t=s===void 0?"max-w-[1200px]":s;let n;e[0]!==i||e[1]!==t?(n=d("mx-auto w-full px-4 pt-8 pb-6 md:px-10 md:pt-12 md:pb-10",t,i),e[0]=i,e[1]=t,e[2]=n):n=e[2];let a;return e[3]!==l||e[4]!==n?(a=r.jsx("div",{className:n,children:l}),e[3]=l,e[4]=n,e[5]=a):a=e[5],a}const T=Object.assign(P,{Header:Object.assign(C,{Left:j,Right:b}),Content:$,Title:y,Body:R});export{T as P,H as a};
1
+ import{e as f,c as d,r as p,j as r}from"./index-C_etCvW6.js";import{r as w}from"./sidebar-BMGvDz3J.js";const v=p.createContext(void 0),H=v.Provider;function N(c,e){const l=p.Children.toArray(c);for(const i of l)if(p.isValidElement(i)&&i.type===e)return i;return null}function P(c){const e=f.c(5),{children:l,className:i}=c;let s;e[0]!==i?(s=d("flex flex-col h-full w-full bg-background overflow-hidden",i),e[0]=i,e[1]=s):s=e[1];let t;return e[2]!==l||e[3]!==s?(t=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=t):t=e[4],t}function C(c){const e=f.c(17),{children:l,className:i,hideSidebarTrigger:s}=c;let t;e[0]!==l?(t=N(l,j),e[0]=l,e[1]=t):t=e[1];const n=t;let a;e[2]!==l?(a=N(l,b),e[2]=l,e[3]=a):a=e[3];const o=a;let m;e[4]!==i?(m=d("shrink-0 w-full border-b border-border/50 h-11","flex items-center justify-between gap-3 pr-2 pl-2 md:pl-4",i),e[4]=i,e[5]=m):m=e[5];let x;e[6]!==s?(x=!s&&r.jsx(w,{className:"md:hidden shrink-0"}),e[6]=s,e[7]=x):x=e[7];let u;e[8]!==n||e[9]!==x?(u=r.jsxs("div",{className:"flex items-center gap-1 min-w-0 flex-1",children:[x,n]}),e[8]=n,e[9]=x,e[10]=u):u=e[10];let h;e[11]!==o?(h=r.jsx("div",{className:"flex items-center",children:o}),e[11]=o,e[12]=h):h=e[12];let g;return e[13]!==m||e[14]!==u||e[15]!==h?(g=r.jsxs("div",{className:m,children:[u,h]}),e[13]=m,e[14]=u,e[15]=h,e[16]=g):g=e[16],g}function j(c){const e=f.c(5),{children:l,className:i}=c;let s;e[0]!==i?(s=d("flex items-center gap-2 min-w-0 overflow-hidden",i),e[0]=i,e[1]=s):s=e[1];let t;return e[2]!==l||e[3]!==s?(t=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=t):t=e[4],t}function b(c){const e=f.c(5),{children:l,className:i}=c;let s;e[0]!==i?(s=d("flex items-center gap-2 shrink-0 overflow-hidden",i),e[0]=i,e[1]=s):s=e[1];let t;return e[2]!==l||e[3]!==s?(t=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=t):t=e[4],t}function $(c){const e=f.c(6),{children:l,className:i}=c,s=p.useContext(v);let t;e[0]!==i||e[1]!==s?(t=d("flex-1 overflow-auto",s,i),e[0]=i,e[1]=s,e[2]=t):t=e[2];let n;return e[3]!==l||e[4]!==t?(n=r.jsx("div",{className:t,children:l}),e[3]=l,e[4]=t,e[5]=n):n=e[5],n}function y(c){const e=f.c(10),{children:l,actions:i,className:s}=c;let t;e[0]!==s?(t=d("flex flex-wrap items-center justify-between gap-3",s),e[0]=s,e[1]=t):t=e[1];let n;e[2]!==l?(n=r.jsx("div",{className:"text-xl font-medium min-w-0",children:l}),e[2]=l,e[3]=n):n=e[3];let a;e[4]!==i?(a=i&&r.jsx("div",{className:"flex items-center gap-2",children:i}),e[4]=i,e[5]=a):a=e[5];let o;return e[6]!==t||e[7]!==n||e[8]!==a?(o=r.jsxs("div",{className:t,children:[n,a]}),e[6]=t,e[7]=n,e[8]=a,e[9]=o):o=e[9],o}function R(c){const e=f.c(6),{children:l,className:i,maxWidth:s}=c,t=s===void 0?"max-w-[1200px]":s;let n;e[0]!==i||e[1]!==t?(n=d("mx-auto w-full px-4 pt-8 pb-6 md:px-10 md:pt-12 md:pb-10",t,i),e[0]=i,e[1]=t,e[2]=n):n=e[2];let a;return e[3]!==l||e[4]!==n?(a=r.jsx("div",{className:n,children:l}),e[3]=l,e[4]=n,e[5]=a):a=e[5],a}const T=Object.assign(P,{Header:Object.assign(C,{Left:j,Right:b}),Content:$,Title:y,Body:R});export{T as P,H as a};
@@ -1 +1 @@
1
- import{e as N,j as t,p as D,r as k,O as R,l as z}from"./index-CM1D3IOd.js";import{u as E,S as I,a as L,b as M}from"./sidebar-DapD5BLH.js";import{T as O,a as $,b as A,u as P}from"./tooltip-Cc8Oz_Tb.js";import{S as W,a as B}from"./index-joEaP8qc.js";import{C as X}from"./chat-context-DsnxmnaH.js";import{T as H}from"./hooks-Bhk1YQ2I.js";import{i as F}from"./Monitor01-B72KxmOA.js";import{u as q,v as G,C as K}from"./connect-desktop-dialog-CejAAfIG.js";import{T as Y,a as b}from"./toolbar-ZFFuL6YR.js";import{S as U,M as J}from"./shell-controls-EFju5Xuz.js";import"./LayoutLeft-BtnBeX4Q.js";import"./X-BpMfki2j.js";import"./useRouterState-D1LxQ93_.js";import"./agent-icon-BbgplFYb.js";import"./AlertCircle-BT4KzWnI.js";import"./Tool01-Cr9-Ayar.js";import"./Stars02-DjyZ6rm8.js";import"./SwitchHorizontal01-CoAD8Pso.js";import"./RefreshCcw01-DYeBzgxl.js";import"./ArrowNarrowLeft-DL6IklHf.js";import"./XCircle-D4gl9x0F.js";import"./ArrowUpRight-CuD8Ec0Q.js";import"./ZapSquare-C-QuJXiX.js";import"./Users03-BScPbfBT.js";import"./CheckCircle-CeozB0CE.js";import"./Check-BwR-n-sF.js";import"./ChevronDown-NgrGgemj.js";import"./ChevronRight-DzTdh7eY.js";import"./ChevronUp-O1681VYk.js";import"./DotsVertical-DwV108_Y.js";import"./Container-2b4BXA-n.js";import"./FilterLines-DOivCNH_.js";import"./Star01-B9_yj21o.js";import"./Palette-CDAteqS3.js";import"./HardDrive-Cj4eW7va.js";import"./Key01-BQUJeWtG.js";import"./LinkExternal01-gSnFHviP.js";import"./Lock01-CLcwdBbZ.js";import"./Sun-D3nbZYnT.js";import"./Play-3lq0IL_j.js";import"./Plus-CuU_Vn1V.js";import"./SearchMd-YL-AZ1_e.js";import"./Settings02-CmAK-JQC.js";import"./Shield01-DWmt0CsN.js";import"./Trash01-Bdgng8Ny.js";import"./Upload01-DEH4hqbP.js";import"./User01-DvR2FzxS.js";import"./Users01-DKVYUvbH.js";import"./XClose-8wwGH-xu.js";import"./Zap-DGOMtCmx.js";import"./skeleton-BLQ-Z2or.js";import"./popover-C9ON0IYH.js";import"./drawer-Db2QUt1V.js";import"./collection-search-ZgHJOBo2.js";import"./constants-BwYc8BqM.js";import"./use-virtual-mcp-2qLUU42J.js";import"./use-collections-CW9RG6h4.js";import"./use-navigate-to-agent-TJFSx1rG.js";import"./use-create-virtual-mcp-CPLlz8GU.js";import"./github-repo-picker-BaZinHsd.js";import"./dialog-TcaoJB0K.js";import"./collection-search-CgHA_hw5.js";import"./checkbox-VBT4OFjs.js";import"./use-connection-BA0O34v3.js";import"./use-mcp-tools-DSljy4qc.js";import"./extract-connection-data-Bh_Tkl8z.js";import"./generate-id-DMa8tQ_Y.js";import"./collections-DVQWcwMA.js";import"./shell-layout-odzNWxkB.js";import"./avatar-DeKO2t6e.js";import"./required-auth-layout-CUCq1Ujt.js";import"./use-organization-settings-Kf9UVBw8.js";import"./use-org-sso-BHhjzT3n.js";import"./alert-dialog-CBfLU0-s.js";import"./form-DD66RTDf.js";import"./label-Cm89B89_.js";import"./input-DrYpnRWV.js";import"./spinner-DSdP03Bc.js";import"./index-DDxVYHfh.js";import"./add-connection-dialog-cS9loTSU.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-kJpbPjBb.js";import"./use-registry-connections-CaOaYe6E.js";import"./useInfiniteQuery-6Vl88Gwv.js";import"./infiniteQueryObserver-BThZVpCW.js";import"./card-CzmU6DPx.js";import"./integration-icon-CpEacvrW.js";import"./collection-tabs-DW8sLdGn.js";import"./badge-DYaA3f0o.js";import"./select-Bi6n0v1l.js";import"./textarea-DMNeKZeZ.js";import"./connection-form-helpers-Dg3964lu.js";import"./use-infinite-scroll-0oj3TOvR.js";import"./useSuspenseInfiniteQuery-Ciek5SC-.js";import"./use-ai-providers-BFMpjk_o.js";import"./command-Cdu-1z9q.js";import"./index-C5X_vClM.js";import"./hover-card-szbVRwlX.js";import"./task-status-GEjzAUmm.js";import"./format-time-GeUngI9C.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./decopilot-sse-pool-B9BzYuaT.js";import"./create-sse-subscription-CjI9SUTI.js";import"./unwrap-tool-result-BYXdCQMg.js";function Q(e){const o=N.c(5),{onPointerDown:r,onDoubleClick:d}=e,{state:f,isMobile:u}=E();if(u||f==="collapsed")return null;let s,n;o[0]===Symbol.for("react.memo_cache_sentinel")?(s={left:"var(--sidebar-width)"},n=t.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-transparent transition-colors duration-150 group-hover/resize:bg-border group-active/resize:bg-border"}),o[0]=s,o[1]=n):(s=o[0],n=o[1]);let i;return o[2]!==d||o[3]!==r?(i=t.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize sidebar",title:"Drag to resize, double-click to reset",onPointerDown:r,onDoubleClick:d,className:"group/resize absolute top-0 z-20 h-full w-2 -translate-x-1/2 cursor-col-resize",style:s,children:n}),o[2]=d,o[3]=r,o[4]=i):i=o[4],i}const T=240,V=400,Z="sidebar.width";function _(e){return Math.max(T,Math.min(V,e))}function ee(){const e=N.c(11),[o,r]=D(Z,te),d=k.useRef(null);let f;e[0]!==r||e[1]!==o?(f=a=>{a.preventDefault();const m=a.clientX,c=_(o),p=d.current??(typeof document<"u"?document.querySelector('[data-slot="sidebar-wrapper"]'):null),x=p?Array.from(p.querySelectorAll('[data-slot="sidebar"], [data-slot="sidebar-container"]')):[];for(const h of x)h.style.transition="none";const j=h=>{const g=_(c+(h.clientX-m));p?.style.setProperty("--sidebar-width",`${g}px`)},S=h=>{const g=_(c+(h.clientX-m));r(g);for(const v of x)v.style.transition="";window.removeEventListener("pointermove",j),window.removeEventListener("pointerup",S),document.body.style.userSelect="",document.body.style.cursor=""};document.body.style.userSelect="none",document.body.style.cursor="col-resize",window.addEventListener("pointermove",j),window.addEventListener("pointerup",S)},e[0]=r,e[1]=o,e[2]=f):f=e[2];const u=f;let s;e[3]!==r?(s=()=>{r(T)},e[3]=r,e[4]=s):s=e[4];const n=s;let i;e[5]!==o?(i=_(o),e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==u||e[8]!==n||e[9]!==i?(l={width:i,wrapperRef:d,onStartResize:u,resetWidth:n},e[7]=u,e[8]=n,e[9]=i,e[10]=l):l=e[10],l}function te(e){return typeof e=="number"?_(e):T}function oe(){const e=N.c(22),o=q(),[r,d]=k.useState(!1);let f;if(e[0]!==o.capabilities||e[1]!==o.hostname||e[2]!==o.machineId||e[3]!==o.online){const j=G(o.capabilities);f=o.online?t.jsxs("div",{className:"flex flex-col gap-0.5 text-xs",children:[t.jsx("span",{className:"font-medium",children:o.hostname??o.machineId??"Desktop linked"}),t.jsx("span",{className:"text-muted-foreground",children:j.length>0?`Available: ${j.join(", ")}`:"No CLI agents detected"})]}):t.jsx("span",{className:"text-xs",children:"Desktop disconnected"}),e[0]=o.capabilities,e[1]=o.hostname,e[2]=o.machineId,e[3]=o.online,e[4]=f}else f=e[4];const u=f;let s;e[5]===Symbol.for("react.memo_cache_sentinel")?(s=()=>d(!0),e[5]=s):s=e[5];const n=o.online?"Desktop linked":"Connect your desktop";let i;e[6]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(F,{size:16}),e[6]=i):i=e[6];let l;e[7]!==o.online?(l=o.online&&t.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-success ring-2 ring-background animate-pulse"}),e[7]=o.online,e[8]=l):l=e[8];let a;e[9]!==n||e[10]!==l?(a=t.jsx(O,{asChild:!0,children:t.jsxs(Y,{onClick:s,"aria-label":n,children:[i,l]})}),e[9]=n,e[10]=l,e[11]=a):a=e[11];let m;e[12]!==u?(m=t.jsx($,{side:"bottom",children:u}),e[12]=u,e[13]=m):m=e[13];let c;e[14]!==a||e[15]!==m?(c=t.jsxs(A,{children:[a,m]}),e[14]=a,e[15]=m,e[16]=c):c=e[16];let p;e[17]!==r?(p=t.jsx(K,{open:r,onOpenChange:d}),e[17]=r,e[18]=p):p=e[18];let x;return e[19]!==c||e[20]!==p?(x=t.jsxs(t.Fragment,{children:[c,p]}),e[19]=c,e[20]=p,e[21]=x):x=e[21],x}const ie="sidebar.open";function re(){const e=N.c(1);let o;return e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(z,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=o):o=e[0],o}function oo(){const e=N.c(26),o=P(),[r,d]=D(ie,!1),{width:f,wrapperRef:u,onStartResize:s,resetWidth:n}=ee();let i,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(b.Logo,{}),l=t.jsx(U,{}),e[0]=i,e[1]=l):(i=e[0],l=e[1]);let a,m;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsxs(b.LeftColumn,{children:[i,l,t.jsx("span",{className:"hidden md:contents",children:t.jsx(b.Nav,{})}),t.jsx(b.TogglesSlot,{}),t.jsx(oe,{})]}),m=t.jsx(b.CenterSlot,{}),e[2]=a,e[3]=m):(a=e[2],m=e[3]);let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsxs(b.Header,{children:[a,m,t.jsxs(b.RightColumn,{children:[t.jsx("div",{className:"min-w-0 flex-1 overflow-x-auto [scrollbar-width:none] flex justify-end",children:t.jsx(b.TabsSlot,{})}),t.jsx(b.RightSlot,{})]})]}),e[4]=c):c=e[4];const p=`${f}px`;let x;e[5]!==p?(x={"--sidebar-width":p,"--sidebar-width-icon":"3.5rem"},e[5]=p,e[6]=x):x=e[6];const j=x;let S;e[7]!==o||e[8]!==s||e[9]!==n?(S=!o&&t.jsxs(t.Fragment,{children:[t.jsx(W,{}),t.jsx(Q,{onPointerDown:s,onDoubleClick:n})]}),e[7]=o,e[8]=s,e[9]=n,e[10]=S):S=e[10];let h;e[11]===Symbol.for("react.memo_cache_sentinel")?(h={background:"transparent",containerType:"inline-size"},e[11]=h):h=e[11];let g;e[12]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(I,{className:"flex flex-col",style:h,children:t.jsx("div",{className:"flex flex-col h-full min-h-0",children:t.jsx("div",{className:"flex-1 min-h-0 flex flex-row",children:t.jsx(k.Suspense,{fallback:t.jsx(re,{}),children:t.jsx(R,{})})})})}),e[12]=g):g=e[12];let v;e[13]!==j||e[14]!==S||e[15]!==u?(v=t.jsxs(L,{ref:u,className:"flex-1 bg-sidebar relative min-h-0",style:j,children:[S,g]}),e[13]=j,e[14]=S,e[15]=u,e[16]=v):v=e[16];let y;e[17]!==o?(y=o&&t.jsx(J,{renderSidebar:se}),e[17]=o,e[18]=y):y=e[18];let w;e[19]!==v||e[20]!==y?(w=t.jsx(X,{children:t.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[c,v,y]})}),e[19]=v,e[20]=y,e[21]=w):w=e[21];let C;return e[22]!==d||e[23]!==r||e[24]!==w?(C=t.jsx(H,{children:t.jsx(b.Provider,{children:t.jsx(M,{open:r,onOpenChange:d,children:w})})}),e[22]=d,e[23]=r,e[24]=w,e[25]=C):C=e[25],C}function se(e){const{onClose:o}=e;return t.jsx("div",{className:"flex h-full",children:t.jsx("div",{className:"w-full bg-sidebar flex flex-col overflow-y-auto group/sidebar","data-state":"expanded",children:t.jsx(B,{onClose:o})})})}export{oo as default};
1
+ import{e as N,j as t,p as D,r as k,O as R,l as z}from"./index-C_etCvW6.js";import{u as E,S as I,a as L,b as M}from"./sidebar-BMGvDz3J.js";import{T as O,a as $,b as A,u as P}from"./tooltip-8OqGw7oG.js";import{S as W,a as B}from"./index-JWYz3SFX.js";import{C as X}from"./chat-context-B5utwD_j.js";import{T as H}from"./hooks-wb_9T_1N.js";import{i as F}from"./Monitor01-Bz4VCJsr.js";import{u as q,v as G,C as K}from"./connect-desktop-dialog-CiOZeQs6.js";import{T as Y,a as b}from"./toolbar-C9yYx7bm.js";import{S as U,M as J}from"./shell-controls-Bh_0J4mE.js";import"./LayoutLeft-_rPJ3Xdj.js";import"./X-Coa3_vHC.js";import"./useRouterState-CFvTFlCq.js";import"./agent-icon-CPWEcMkW.js";import"./AlertCircle-B5W8e_5w.js";import"./Tool01-CbzoidXH.js";import"./Stars02-M_tqgIvg.js";import"./SwitchHorizontal01-CJw113gN.js";import"./RefreshCcw01-B7Js0dD2.js";import"./ArrowNarrowLeft-hiT9EAxM.js";import"./XCircle-DvYTE78y.js";import"./ArrowUpRight-BngWaIVR.js";import"./ZapSquare-BQ8gms0B.js";import"./Users03-DGJmr08f.js";import"./CheckCircle-BEasBYv4.js";import"./Check-8Z25AyId.js";import"./ChevronDown-DYIWk9ra.js";import"./ChevronRight-C956u55G.js";import"./ChevronUp-CdhHmg9Y.js";import"./DotsVertical-BY4pEp3W.js";import"./Container-eQJj-j5B.js";import"./FilterLines-z8ejuVIV.js";import"./Star01-CEifhmiR.js";import"./Palette-Vm3-5yKD.js";import"./HardDrive-C5cYoT_u.js";import"./Key01-D616GLzE.js";import"./LinkExternal01-DxWXfBDh.js";import"./Lock01-BCib8CWc.js";import"./Sun-Ch8hbN6j.js";import"./Play-CKvhUVKq.js";import"./Plus-CpQnzuG3.js";import"./SearchMd-D0mvaU5_.js";import"./Settings02-CNt0vvEu.js";import"./Shield01-CZAvPXer.js";import"./Trash01-CUZkoYoW.js";import"./Upload01-DaqpbIUH.js";import"./User01-CtOhLzXW.js";import"./Users01-DQVYpyq7.js";import"./XClose-wy0ZjI4q.js";import"./Zap-B74dlfsg.js";import"./skeleton-BNkut-Qo.js";import"./popover-xTN6BEZL.js";import"./drawer-B6wZPR31.js";import"./collection-search-CLSVS08U.js";import"./constants-oggaZSfP.js";import"./use-virtual-mcp-D92JJRrE.js";import"./use-collections-BsrK_euH.js";import"./use-navigate-to-agent-bdiV5j2z.js";import"./use-create-virtual-mcp-DDF2B3SX.js";import"./github-repo-picker-CbPGsyKd.js";import"./dialog-B_fGUV_0.js";import"./collection-search-XjYetQA3.js";import"./checkbox-cX_blfQo.js";import"./use-connection--tE4CSIP.js";import"./use-mcp-tools-C_ftxwer.js";import"./extract-connection-data-DM9YCvRC.js";import"./generate-id-CUOrXJD_.js";import"./collections-DXz0tqzt.js";import"./shell-layout-DX8eVZ8L.js";import"./avatar-vA2R8qEK.js";import"./required-auth-layout-r_pSqbfY.js";import"./use-organization-settings-CpDAWMUD.js";import"./use-org-sso-T1wSzyZP.js";import"./alert-dialog-jgkN1ow8.js";import"./form-DIJniw7V.js";import"./label-DZerbc9D.js";import"./input-CGbgb-E-.js";import"./spinner-TVmcFRIL.js";import"./index-DTRFlXli.js";import"./add-connection-dialog-DopFZPio.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-BXYnxALA.js";import"./use-registry-connections-BZm5h5va.js";import"./useInfiniteQuery-VRvGrh-Y.js";import"./infiniteQueryObserver-ClfdJkk7.js";import"./card-Cd_hFdRe.js";import"./integration-icon-BruX6m5m.js";import"./collection-tabs-Cq1YLx0H.js";import"./badge-BFpOlUFq.js";import"./select-DXIl-nWc.js";import"./textarea-DASnyL4F.js";import"./connection-form-helpers-DNLR-aHd.js";import"./use-infinite-scroll-BkFiyWBa.js";import"./useSuspenseInfiniteQuery-DWV-fRnj.js";import"./use-ai-providers-CCCd9SIG.js";import"./command-C_TH6iOa.js";import"./index-DQI8RGuh.js";import"./hover-card-CKXherxT.js";import"./task-status-CkD92yfU.js";import"./format-time-GeUngI9C.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./decopilot-sse-pool-atg0HfN2.js";import"./create-sse-subscription-CjI9SUTI.js";import"./unwrap-tool-result-BYXdCQMg.js";function Q(e){const o=N.c(5),{onPointerDown:r,onDoubleClick:d}=e,{state:f,isMobile:u}=E();if(u||f==="collapsed")return null;let s,n;o[0]===Symbol.for("react.memo_cache_sentinel")?(s={left:"var(--sidebar-width)"},n=t.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-transparent transition-colors duration-150 group-hover/resize:bg-border group-active/resize:bg-border"}),o[0]=s,o[1]=n):(s=o[0],n=o[1]);let i;return o[2]!==d||o[3]!==r?(i=t.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize sidebar",title:"Drag to resize, double-click to reset",onPointerDown:r,onDoubleClick:d,className:"group/resize absolute top-0 z-20 h-full w-2 -translate-x-1/2 cursor-col-resize",style:s,children:n}),o[2]=d,o[3]=r,o[4]=i):i=o[4],i}const T=240,V=400,Z="sidebar.width";function _(e){return Math.max(T,Math.min(V,e))}function ee(){const e=N.c(11),[o,r]=D(Z,te),d=k.useRef(null);let f;e[0]!==r||e[1]!==o?(f=a=>{a.preventDefault();const m=a.clientX,c=_(o),p=d.current??(typeof document<"u"?document.querySelector('[data-slot="sidebar-wrapper"]'):null),x=p?Array.from(p.querySelectorAll('[data-slot="sidebar"], [data-slot="sidebar-container"]')):[];for(const h of x)h.style.transition="none";const j=h=>{const g=_(c+(h.clientX-m));p?.style.setProperty("--sidebar-width",`${g}px`)},S=h=>{const g=_(c+(h.clientX-m));r(g);for(const v of x)v.style.transition="";window.removeEventListener("pointermove",j),window.removeEventListener("pointerup",S),document.body.style.userSelect="",document.body.style.cursor=""};document.body.style.userSelect="none",document.body.style.cursor="col-resize",window.addEventListener("pointermove",j),window.addEventListener("pointerup",S)},e[0]=r,e[1]=o,e[2]=f):f=e[2];const u=f;let s;e[3]!==r?(s=()=>{r(T)},e[3]=r,e[4]=s):s=e[4];const n=s;let i;e[5]!==o?(i=_(o),e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==u||e[8]!==n||e[9]!==i?(l={width:i,wrapperRef:d,onStartResize:u,resetWidth:n},e[7]=u,e[8]=n,e[9]=i,e[10]=l):l=e[10],l}function te(e){return typeof e=="number"?_(e):T}function oe(){const e=N.c(22),o=q(),[r,d]=k.useState(!1);let f;if(e[0]!==o.capabilities||e[1]!==o.hostname||e[2]!==o.machineId||e[3]!==o.online){const j=G(o.capabilities);f=o.online?t.jsxs("div",{className:"flex flex-col gap-0.5 text-xs",children:[t.jsx("span",{className:"font-medium",children:o.hostname??o.machineId??"Desktop linked"}),t.jsx("span",{className:"text-muted-foreground",children:j.length>0?`Available: ${j.join(", ")}`:"No CLI agents detected"})]}):t.jsx("span",{className:"text-xs",children:"Desktop disconnected"}),e[0]=o.capabilities,e[1]=o.hostname,e[2]=o.machineId,e[3]=o.online,e[4]=f}else f=e[4];const u=f;let s;e[5]===Symbol.for("react.memo_cache_sentinel")?(s=()=>d(!0),e[5]=s):s=e[5];const n=o.online?"Desktop linked":"Connect your desktop";let i;e[6]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(F,{size:16}),e[6]=i):i=e[6];let l;e[7]!==o.online?(l=o.online&&t.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-success ring-2 ring-background animate-pulse"}),e[7]=o.online,e[8]=l):l=e[8];let a;e[9]!==n||e[10]!==l?(a=t.jsx(O,{asChild:!0,children:t.jsxs(Y,{onClick:s,"aria-label":n,children:[i,l]})}),e[9]=n,e[10]=l,e[11]=a):a=e[11];let m;e[12]!==u?(m=t.jsx($,{side:"bottom",children:u}),e[12]=u,e[13]=m):m=e[13];let c;e[14]!==a||e[15]!==m?(c=t.jsxs(A,{children:[a,m]}),e[14]=a,e[15]=m,e[16]=c):c=e[16];let p;e[17]!==r?(p=t.jsx(K,{open:r,onOpenChange:d}),e[17]=r,e[18]=p):p=e[18];let x;return e[19]!==c||e[20]!==p?(x=t.jsxs(t.Fragment,{children:[c,p]}),e[19]=c,e[20]=p,e[21]=x):x=e[21],x}const ie="sidebar.open";function re(){const e=N.c(1);let o;return e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(z,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=o):o=e[0],o}function oo(){const e=N.c(26),o=P(),[r,d]=D(ie,!1),{width:f,wrapperRef:u,onStartResize:s,resetWidth:n}=ee();let i,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(b.Logo,{}),l=t.jsx(U,{}),e[0]=i,e[1]=l):(i=e[0],l=e[1]);let a,m;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsxs(b.LeftColumn,{children:[i,l,t.jsx("span",{className:"hidden md:contents",children:t.jsx(b.Nav,{})}),t.jsx(b.TogglesSlot,{}),t.jsx(oe,{})]}),m=t.jsx(b.CenterSlot,{}),e[2]=a,e[3]=m):(a=e[2],m=e[3]);let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsxs(b.Header,{children:[a,m,t.jsxs(b.RightColumn,{children:[t.jsx("div",{className:"min-w-0 flex-1 overflow-x-auto [scrollbar-width:none] flex justify-end",children:t.jsx(b.TabsSlot,{})}),t.jsx(b.RightSlot,{})]})]}),e[4]=c):c=e[4];const p=`${f}px`;let x;e[5]!==p?(x={"--sidebar-width":p,"--sidebar-width-icon":"3.5rem"},e[5]=p,e[6]=x):x=e[6];const j=x;let S;e[7]!==o||e[8]!==s||e[9]!==n?(S=!o&&t.jsxs(t.Fragment,{children:[t.jsx(W,{}),t.jsx(Q,{onPointerDown:s,onDoubleClick:n})]}),e[7]=o,e[8]=s,e[9]=n,e[10]=S):S=e[10];let h;e[11]===Symbol.for("react.memo_cache_sentinel")?(h={background:"transparent",containerType:"inline-size"},e[11]=h):h=e[11];let g;e[12]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(I,{className:"flex flex-col",style:h,children:t.jsx("div",{className:"flex flex-col h-full min-h-0",children:t.jsx("div",{className:"flex-1 min-h-0 flex flex-row",children:t.jsx(k.Suspense,{fallback:t.jsx(re,{}),children:t.jsx(R,{})})})})}),e[12]=g):g=e[12];let v;e[13]!==j||e[14]!==S||e[15]!==u?(v=t.jsxs(L,{ref:u,className:"flex-1 bg-sidebar relative min-h-0",style:j,children:[S,g]}),e[13]=j,e[14]=S,e[15]=u,e[16]=v):v=e[16];let y;e[17]!==o?(y=o&&t.jsx(J,{renderSidebar:se}),e[17]=o,e[18]=y):y=e[18];let w;e[19]!==v||e[20]!==y?(w=t.jsx(X,{children:t.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[c,v,y]})}),e[19]=v,e[20]=y,e[21]=w):w=e[21];let C;return e[22]!==d||e[23]!==r||e[24]!==w?(C=t.jsx(H,{children:t.jsx(b.Provider,{children:t.jsx(M,{open:r,onOpenChange:d,children:w})})}),e[22]=d,e[23]=r,e[24]=w,e[25]=C):C=e[25],C}function se(e){const{onClose:o}=e;return t.jsx("div",{className:"flex h-full",children:t.jsx("div",{className:"w-full bg-sidebar flex flex-col overflow-y-auto group/sidebar","data-state":"expanded",children:t.jsx(B,{onClose:o})})})}export{oo as default};
@@ -1,4 +1,4 @@
1
- import{dl as Fe,bK as Os,P as oe,M as ge,aq as ti,bV as _i,an as Ie,bG as mt,aY as qe,ao as mr,dm as rn,J as _e,dn as Ii,dp as ws,dq as ec,bT as tc,dr as ia,ds as nc,dt as rc,du as ic,cS as fn,cT as Cr,cU as xs,bD as sa,bv as sc,aM as ze,bU as oc,ap as On,b9 as Ti,dv as ac,r as N,j as w,dw as oa,cF as lc}from"./index-CM1D3IOd.js";import{d as cc,e as uc,n as fc,f as dc,C as hc,A as pc}from"./constants-BwYc8BqM.js";import{B as Ci,c as Pi}from"./collections-DVQWcwMA.js";import{R as Es}from"./index-j4kSKfbx.js";var mc=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())}}},yc=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=qe(n):typeof n=="number"?e.number=qe(n):typeof n=="boolean"?e.boolean=qe(n):n===null?e.null=_i():Array.isArray(n)?e.array=void 0:typeof n=="object"&&(e.object=void 0)}},gc=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 qe(e[0]);if(t==="string")return mr(e);if(t==="number"){const[n,r,...i]=e;return mt([qe(n),qe(r),...i.map(s=>qe(s))])}return t==="boolean"?mt([qe(!0),qe(!1)]):!1}},bc=class{apply(e,t){const n=t;if(n.type==="string"&&n.format==="binary"&&n.contentEncoding==="binary"){let r=ic();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}}},Sc=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())}},vc=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`}))}}},Oc=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`}))}}},wc=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)}}}},xc=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))}}},Ec=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))}}},Ac=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)}}},_c=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)}}},Ic=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}`}))}}},Tc=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()))}},Cc=class{apply(e,t){const n=t;n.minItems!==void 0&&e.array!==!1&&(e.array=(e.array||Ie(Fe())).min(n.minItems))}},Pc=class{apply(e,t){const n=t;n.maxItems!==void 0&&e.array!==!1&&(e.array=(e.array||Ie(Fe())).max(n.maxItems))}},Fc=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 ec){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()))}},jc=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}},$c=class{apply(e,t){const n=t;e.object!==!1&&(n.properties||n.required||n.additionalProperties!==void 0)&&(e.object=e.object||_e({}).passthrough())}},Dc=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())}},Nc=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`})}}},Rc=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 Mc(){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 Uc=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"})}},kc=class{apply(e,t){return t.uniqueItems!==!0?e:e.refine(Mc(),{message:"Array items must be unique"})}},Lc=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)}},Bc=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)}},Wc=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"})}},qc=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}},Vc=class{apply(e,t){const n=t;if(!n.properties&&!n.required&&n.additionalProperties!==!1)return e;if(e instanceof nc||e instanceof rc){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"})}},Hc=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"})}},Kc=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"})}},Gc=class{apply(e,t){return t.description&&(e=e.describe(t.description)),e}},zc=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))}},Yc=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"})}},Jc=class{apply(e,t){const{default:n}=t;return n===void 0||!e.safeParse(n).success?e:e.default(n)}},Zc=[new yc,new gc,new mc,new bc,new Sc,new Tc,new Dc,new vc,new Oc,new wc,new xc,new Ec,new Ac,new _c,new Ic,new jc,new Cc,new Pc,new Fc,new Nc,new Rc,new $c],Xc=[new zc,new Hc,new Kc,new Lc,new Bc,new Wc,new qc,new Vc,new Yc,new Uc,new kc,new Jc,new Gc];function Ae(e){if(typeof e=="boolean")return e?Fe():Os();const t={};for(const i of Zc)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=tc(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 Xc)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 Qc(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 aa=e=>{throw TypeError(e)},Fi=(e,t,n)=>t.has(e)||aa("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)?aa("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,qt,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,qt),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,qt,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,eu()));else throw new Error("Invalid URL")}catch{throw Qc("An invalid or illegal string was specified")}he(this,Lt,cc({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,qt)&&clearTimeout(G(this,qt)),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,qt=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,qt,setTimeout(G(this,ci),G(this,wn)))},ci=new WeakMap,er.CONNECTING=0,er.OPEN=1,er.CLOSED=2;function eu(){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 tu extends Error{constructor(t,n,r){super(`SSE error: ${n}`),this.code=t,this.event=r}}class nu{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=uc(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=fc(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 tu(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 ru="mcp";class iu{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,ru),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 su extends dc{constructor(t,n){super(t,n)}send(t,n){const r=ou(t);return r?.type==="emit"?(this.onmessage?.(r.message),Promise.resolve()):r?.type==="suppress"?Promise.resolve():super.send(t,n)}}function ou(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 au extends hc{constructor(t,n){super(t,n)}async listTools(t,n){return await this.request({method:"tools/list",params:t},sc,n)}}const lu=async(e,t,n)=>{const r=cu(e.connection,t,n);if(!r)throw new Error("Unknown MCP connection type");const i=new au({name:e?.name??"MCP Client",version:"1.0.0"});return await i.connect(r),{client:i}},cu=(e,t,n)=>{if(e.type==="Websocket")return new iu(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 nu(new URL(e.url),s)}return new su(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 uu(e){const t=n=>"connection"in e?lu({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=>fu({connection:n}):global[t]}});function fu(e){return uu(e)}const du=_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.")}),hu=_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{dl as Fe,bK as Os,P as oe,M as ge,aq as ti,bV as _i,an as Ie,bG as mt,aY as qe,ao as mr,dm as rn,J as _e,dn as Ii,dp as ws,dq as ec,bT as tc,dr as ia,ds as nc,dt as rc,du as ic,cS as fn,cT as Cr,cU as xs,bD as sa,bv as sc,aM as ze,bU as oc,ap as On,b9 as Ti,dv as ac,r as N,j as w,dw as oa,cF as lc}from"./index-C_etCvW6.js";import{d as cc,e as uc,n as fc,f as dc,C as hc,A as pc}from"./constants-oggaZSfP.js";import{B as Ci,c as Pi}from"./collections-DXz0tqzt.js";import{R as Es}from"./index-BcTuPMjJ.js";var mc=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())}}},yc=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=qe(n):typeof n=="number"?e.number=qe(n):typeof n=="boolean"?e.boolean=qe(n):n===null?e.null=_i():Array.isArray(n)?e.array=void 0:typeof n=="object"&&(e.object=void 0)}},gc=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 qe(e[0]);if(t==="string")return mr(e);if(t==="number"){const[n,r,...i]=e;return mt([qe(n),qe(r),...i.map(s=>qe(s))])}return t==="boolean"?mt([qe(!0),qe(!1)]):!1}},bc=class{apply(e,t){const n=t;if(n.type==="string"&&n.format==="binary"&&n.contentEncoding==="binary"){let r=ic();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}}},Sc=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())}},vc=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`}))}}},Oc=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`}))}}},wc=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)}}}},xc=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))}}},Ec=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))}}},Ac=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)}}},_c=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)}}},Ic=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}`}))}}},Tc=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()))}},Cc=class{apply(e,t){const n=t;n.minItems!==void 0&&e.array!==!1&&(e.array=(e.array||Ie(Fe())).min(n.minItems))}},Pc=class{apply(e,t){const n=t;n.maxItems!==void 0&&e.array!==!1&&(e.array=(e.array||Ie(Fe())).max(n.maxItems))}},Fc=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 ec){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()))}},jc=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}},$c=class{apply(e,t){const n=t;e.object!==!1&&(n.properties||n.required||n.additionalProperties!==void 0)&&(e.object=e.object||_e({}).passthrough())}},Dc=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())}},Nc=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`})}}},Rc=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 Mc(){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 Uc=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"})}},kc=class{apply(e,t){return t.uniqueItems!==!0?e:e.refine(Mc(),{message:"Array items must be unique"})}},Lc=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)}},Bc=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)}},Wc=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"})}},qc=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}},Vc=class{apply(e,t){const n=t;if(!n.properties&&!n.required&&n.additionalProperties!==!1)return e;if(e instanceof nc||e instanceof rc){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"})}},Hc=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"})}},Kc=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"})}},Gc=class{apply(e,t){return t.description&&(e=e.describe(t.description)),e}},zc=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))}},Yc=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"})}},Jc=class{apply(e,t){const{default:n}=t;return n===void 0||!e.safeParse(n).success?e:e.default(n)}},Zc=[new yc,new gc,new mc,new bc,new Sc,new Tc,new Dc,new vc,new Oc,new wc,new xc,new Ec,new Ac,new _c,new Ic,new jc,new Cc,new Pc,new Fc,new Nc,new Rc,new $c],Xc=[new zc,new Hc,new Kc,new Lc,new Bc,new Wc,new qc,new Vc,new Yc,new Uc,new kc,new Jc,new Gc];function Ae(e){if(typeof e=="boolean")return e?Fe():Os();const t={};for(const i of Zc)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=tc(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 Xc)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 Qc(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 aa=e=>{throw TypeError(e)},Fi=(e,t,n)=>t.has(e)||aa("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)?aa("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,qt,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,qt),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,qt,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,eu()));else throw new Error("Invalid URL")}catch{throw Qc("An invalid or illegal string was specified")}he(this,Lt,cc({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,qt)&&clearTimeout(G(this,qt)),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,qt=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,qt,setTimeout(G(this,ci),G(this,wn)))},ci=new WeakMap,er.CONNECTING=0,er.OPEN=1,er.CLOSED=2;function eu(){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 tu extends Error{constructor(t,n,r){super(`SSE error: ${n}`),this.code=t,this.event=r}}class nu{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=uc(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=fc(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 tu(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 ru="mcp";class iu{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,ru),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 su extends dc{constructor(t,n){super(t,n)}send(t,n){const r=ou(t);return r?.type==="emit"?(this.onmessage?.(r.message),Promise.resolve()):r?.type==="suppress"?Promise.resolve():super.send(t,n)}}function ou(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 au extends hc{constructor(t,n){super(t,n)}async listTools(t,n){return await this.request({method:"tools/list",params:t},sc,n)}}const lu=async(e,t,n)=>{const r=cu(e.connection,t,n);if(!r)throw new Error("Unknown MCP connection type");const i=new au({name:e?.name??"MCP Client",version:"1.0.0"});return await i.connect(r),{client:i}},cu=(e,t,n)=>{if(e.type==="Websocket")return new iu(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 nu(new URL(e.url),s)}return new su(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 uu(e){const t=n=>"connection"in e?lu({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=>fu({connection:n}):global[t]}});function fu(e){return uu(e)}const du=_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.")}),hu=_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": {
@@ -1,4 +1,4 @@
1
- import{e as oe,r as W,f as cn,q as lt,j as s,B as ne,o as qe,c as le,b8 as Wn,n as dn,v as zs,K as At,E as is,d as Bs,t as Bt}from"./index-CM1D3IOd.js";import{S as Hs}from"./search-input-DKfonUQJ.js";import{P as Ke}from"./index-Dr77wSbz.js";import{E as un}from"./empty-state-CewyMuo1.js";import{B as Ue}from"./badge-DYaA3f0o.js";import{P as ct,a as dt,b as ut}from"./popover-C9ON0IYH.js";import{b as Mt,T as kt,a as Ct}from"./tooltip-Cc8Oz_Tb.js";import{i as Ht}from"./Check-BwR-n-sF.js";import{a as _t}from"./RefreshCcw01-DYeBzgxl.js";import{n as An}from"./XCircle-D4gl9x0F.js";import{i as mn}from"./FilterLines-DOivCNH_.js";import{i as qs}from"./Key01-BQUJeWtG.js";import{i as Vs}from"./Play-3lq0IL_j.js";import{$ as Ks,a0 as Us,E as Gs,_ as Qs}from"./agent-icon-BbgplFYb.js";import{M as $n,S as Js}from"./monaco-editor-DA9r9xlp.js";import{u as Xs}from"./use-members-B1GQuICM.js";import{u as Yn}from"./use-connection-BA0O34v3.js";import{S as fn,u as hn,i as Zs,g as er,W as tr}from"./constants-BwYc8BqM.js";import{b as nr}from"./use-virtual-mcp-2qLUU42J.js";import{n as Ge}from"./Container-2b4BXA-n.js";import{c as sr}from"./SwitchHorizontal01-CoAD8Pso.js";import{s as rr}from"./Plus-CuU_Vn1V.js";import{s as ar}from"./Trash01-Bdgng8Ny.js";import{I as pt}from"./input-DrYpnRWV.js";import{C as zn}from"./checkbox-VBT4OFjs.js";import{t as gt}from"./ChevronDown-NgrGgemj.js";import{c as or,d as ir,a as Bn,e as lr,C as cr,f as dr}from"./command-Cdu-1z9q.js";import{a as Pt,b as Tt,c as Ot,d as Re,S as Ft}from"./select-Bi6n0v1l.js";import{n as ur}from"./ZapSquare-C-QuJXiX.js";import{i as mr}from"./ChevronRight-DzTdh7eY.js";import{T as fr}from"./textarea-DMNeKZeZ.js";import{C as ls}from"./collection-tabs-DW8sLdGn.js";import{S as hr}from"./switch-BOO2ukng.js";import{L as xr}from"./label-Cm89B89_.js";import{I as ze}from"./integration-icon-CpEacvrW.js";import{A as $t}from"./avatar-DeKO2t6e.js";import{A as pr,a as gr,b as vr}from"./alert-WZR80uYd.js";import{C as cs}from"./card-CzmU6DPx.js";import{K as st}from"./monitoring-stats-row-BAGlU-cw.js";import{g as br}from"./connection-slug-eyAPH6o3.js";import{u as ds}from"./useSuspenseInfiniteQuery-Ciek5SC-.js";import{p as us,c as ms,d as fs,e as hs}from"./sidebar-DapD5BLH.js";import{T as ke,a as mt,b as xn,c as pn,d as gn,e as ce}from"./table-_uCDG2hl.js";import{n as xs}from"./ChevronUp-O1681VYk.js";import{u as vn}from"./use-infinite-scroll-0oj3TOvR.js";import{u as yr}from"./useInfiniteQuery-6Vl88Gwv.js";import{y as jr,z as Nr}from"./pair-DEIG2RgN.js";import{S as Lt}from"./task-status-GEjzAUmm.js";import"./SearchMd-YL-AZ1_e.js";import"./AlertCircle-BT4KzWnI.js";import"./Tool01-Cr9-Ayar.js";import"./Stars02-DjyZ6rm8.js";import"./ArrowNarrowLeft-DL6IklHf.js";import"./ArrowUpRight-CuD8Ec0Q.js";import"./Users03-BScPbfBT.js";import"./CheckCircle-CeozB0CE.js";import"./DotsVertical-DwV108_Y.js";import"./Star01-B9_yj21o.js";import"./Palette-CDAteqS3.js";import"./HardDrive-Cj4eW7va.js";import"./LayoutLeft-BtnBeX4Q.js";import"./LinkExternal01-gSnFHviP.js";import"./Lock01-CLcwdBbZ.js";import"./Monitor01-B72KxmOA.js";import"./Sun-D3nbZYnT.js";import"./Settings02-CmAK-JQC.js";import"./Shield01-DWmt0CsN.js";import"./Upload01-DEH4hqbP.js";import"./User01-DvR2FzxS.js";import"./Users01-DKVYUvbH.js";import"./XClose-8wwGH-xu.js";import"./X-BpMfki2j.js";import"./Zap-DGOMtCmx.js";import"./spinner-DSdP03Bc.js";import"./use-org-auth-client-CvyxOJ50.js";import"./use-collections-CW9RG6h4.js";import"./index-C5X_vClM.js";import"./dialog-TcaoJB0K.js";import"./index-j4kSKfbx.js";import"./infiniteQueryObserver-BThZVpCW.js";import"./index-y9b1xONk.js";import"./use-copy-BI1hoGvu.js";import"./format-time-GeUngI9C.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./content-blocks-o63cs2vh.js";import"./types-DETbs5zw.js";import"./chat-context-DsnxmnaH.js";import"./hooks-Bhk1YQ2I.js";import"./decopilot-sse-pool-B9BzYuaT.js";import"./create-sse-subscription-CjI9SUTI.js";import"./use-ai-providers-BFMpjk_o.js";import"./use-organization-settings-Kf9UVBw8.js";import"./shell-layout-odzNWxkB.js";import"./required-auth-layout-CUCq1Ujt.js";import"./useRouterState-D1LxQ93_.js";import"./use-org-sso-BHhjzT3n.js";import"./use-mcp-prompts-Coi1CKEf.js";import"./form-DD66RTDf.js";const tn={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function Qe(t){return t.filter(e=>e.key.trim()).map(e=>{const n=encodeURIComponent(e.key.trim()),r=encodeURIComponent(e.value||"");return`${n}:${e.operator}:${r}`}).join(",")}function wr(t){return t?t.split(",").map(e=>{const[n,r,...a]=e.split(":");return{key:decodeURIComponent(n||""),operator:r||"eq",value:decodeURIComponent(a.join(":")||"")}}):[]}function St(t){return t.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
1
+ import{e as oe,r as W,f as cn,q as lt,j as s,B as ne,o as qe,c as le,b8 as Wn,n as dn,v as zs,K as At,E as is,d as Bs,t as Bt}from"./index-C_etCvW6.js";import{S as Hs}from"./search-input-CjfEjrnk.js";import{P as Ke}from"./index-C7pSmjIO.js";import{E as un}from"./empty-state-DUBPA5NU.js";import{B as Ue}from"./badge-BFpOlUFq.js";import{P as ct,a as dt,b as ut}from"./popover-xTN6BEZL.js";import{b as Mt,T as kt,a as Ct}from"./tooltip-8OqGw7oG.js";import{i as Ht}from"./Check-8Z25AyId.js";import{a as _t}from"./RefreshCcw01-B7Js0dD2.js";import{n as An}from"./XCircle-DvYTE78y.js";import{i as mn}from"./FilterLines-z8ejuVIV.js";import{i as qs}from"./Key01-D616GLzE.js";import{i as Vs}from"./Play-CKvhUVKq.js";import{$ as Ks,a0 as Us,E as Gs,_ as Qs}from"./agent-icon-CPWEcMkW.js";import{M as $n,S as Js}from"./monaco-editor-5gAmZPD0.js";import{u as Xs}from"./use-members-CqC5jIzW.js";import{u as Yn}from"./use-connection--tE4CSIP.js";import{S as fn,u as hn,i as Zs,g as er,W as tr}from"./constants-oggaZSfP.js";import{b as nr}from"./use-virtual-mcp-D92JJRrE.js";import{n as Ge}from"./Container-eQJj-j5B.js";import{c as sr}from"./SwitchHorizontal01-CJw113gN.js";import{s as rr}from"./Plus-CpQnzuG3.js";import{s as ar}from"./Trash01-CUZkoYoW.js";import{I as pt}from"./input-CGbgb-E-.js";import{C as zn}from"./checkbox-cX_blfQo.js";import{t as gt}from"./ChevronDown-DYIWk9ra.js";import{c as or,d as ir,a as Bn,e as lr,C as cr,f as dr}from"./command-C_TH6iOa.js";import{a as Pt,b as Tt,c as Ot,d as Re,S as Ft}from"./select-DXIl-nWc.js";import{n as ur}from"./ZapSquare-BQ8gms0B.js";import{i as mr}from"./ChevronRight-C956u55G.js";import{T as fr}from"./textarea-DASnyL4F.js";import{C as ls}from"./collection-tabs-Cq1YLx0H.js";import{S as hr}from"./switch-khv0BLvL.js";import{L as xr}from"./label-DZerbc9D.js";import{I as ze}from"./integration-icon-BruX6m5m.js";import{A as $t}from"./avatar-vA2R8qEK.js";import{A as pr,a as gr,b as vr}from"./alert-DSWorcln.js";import{C as cs}from"./card-Cd_hFdRe.js";import{K as st}from"./monitoring-stats-row-Bk1ZQbMo.js";import{g as br}from"./connection-slug-eyAPH6o3.js";import{u as ds}from"./useSuspenseInfiniteQuery-DWV-fRnj.js";import{p as us,c as ms,d as fs,e as hs}from"./sidebar-BMGvDz3J.js";import{T as ke,a as mt,b as xn,c as pn,d as gn,e as ce}from"./table-C_yNGOnh.js";import{n as xs}from"./ChevronUp-CdhHmg9Y.js";import{u as vn}from"./use-infinite-scroll-BkFiyWBa.js";import{u as yr}from"./useInfiniteQuery-VRvGrh-Y.js";import{y as jr,z as Nr}from"./pair-Cgvtm3hX.js";import{S as Lt}from"./task-status-CkD92yfU.js";import"./SearchMd-D0mvaU5_.js";import"./AlertCircle-B5W8e_5w.js";import"./Tool01-CbzoidXH.js";import"./Stars02-M_tqgIvg.js";import"./ArrowNarrowLeft-hiT9EAxM.js";import"./ArrowUpRight-BngWaIVR.js";import"./Users03-DGJmr08f.js";import"./CheckCircle-BEasBYv4.js";import"./DotsVertical-BY4pEp3W.js";import"./Star01-CEifhmiR.js";import"./Palette-Vm3-5yKD.js";import"./HardDrive-C5cYoT_u.js";import"./LayoutLeft-_rPJ3Xdj.js";import"./LinkExternal01-DxWXfBDh.js";import"./Lock01-BCib8CWc.js";import"./Monitor01-Bz4VCJsr.js";import"./Sun-Ch8hbN6j.js";import"./Settings02-CNt0vvEu.js";import"./Shield01-CZAvPXer.js";import"./Upload01-DaqpbIUH.js";import"./User01-CtOhLzXW.js";import"./Users01-DQVYpyq7.js";import"./XClose-wy0ZjI4q.js";import"./X-Coa3_vHC.js";import"./Zap-B74dlfsg.js";import"./spinner-TVmcFRIL.js";import"./use-org-auth-client-DtBy8R2R.js";import"./use-collections-BsrK_euH.js";import"./index-DQI8RGuh.js";import"./dialog-B_fGUV_0.js";import"./index-BcTuPMjJ.js";import"./infiniteQueryObserver-ClfdJkk7.js";import"./index-4hlJQ9pJ.js";import"./use-copy-CG-PSiHT.js";import"./format-time-GeUngI9C.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./content-blocks-o63cs2vh.js";import"./types-BmHvFlO1.js";import"./chat-context-B5utwD_j.js";import"./hooks-wb_9T_1N.js";import"./decopilot-sse-pool-atg0HfN2.js";import"./create-sse-subscription-CjI9SUTI.js";import"./use-ai-providers-CCCd9SIG.js";import"./use-organization-settings-CpDAWMUD.js";import"./shell-layout-DX8eVZ8L.js";import"./required-auth-layout-r_pSqbfY.js";import"./useRouterState-CFvTFlCq.js";import"./use-org-sso-T1wSzyZP.js";import"./use-mcp-prompts-D8zJ1XPI.js";import"./form-DIJniw7V.js";const tn={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function Qe(t){return t.filter(e=>e.key.trim()).map(e=>{const n=encodeURIComponent(e.key.trim()),r=encodeURIComponent(e.value||"");return`${n}:${e.operator}:${r}`}).join(",")}function wr(t){return t?t.split(",").map(e=>{const[n,r,...a]=e.split(":");return{key:decodeURIComponent(n||""),operator:r||"eq",value:decodeURIComponent(a.join(":")||"")}}):[]}function St(t){return t.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
2
2
  `)}function Hn(t){return t.trim()?t.split(`
3
3
  `).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[n,...r]=e.split("=");return{key:n||"",operator:"eq",value:r.join("=")}}if(e.includes("~")){const[n,...r]=e.split("~");return{key:n||"",operator:"contains",value:r.join("~")}}if(e.includes("@")){const[n,...r]=e.split("@");return{key:n||"",operator:"in",value:r.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function _r(t){const e={},n={},r=[],a={};for(const o of t)if(o.key.trim())switch(o.operator){case"eq":o.value&&(e[o.key]=o.value);break;case"contains":o.value&&(n[o.key]=`%${o.value}%`);break;case"exists":r.push(o.key);break;case"in":o.value&&(a[o.key]=o.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(n).length>0?n:void 0,propertyKeys:r.length>0?r:void 0,propertyInValues:Object.keys(a).length>0?a:void 0}}function qn(t){if(!t)return{content:"null",isTruncated:!1,originalSize:4};if(typeof t._decocms_truncated=="string")return{content:t._decocms_truncated,isTruncated:!0,originalSize:t._decocms_truncated.length};const e=JSON.stringify(t,null,2),n=e.length;return n<=tn.maxJsonRenderSize?{content:e,isTruncated:!1,originalSize:n}:{content:e.slice(0,tn.maxJsonRenderSize)+`
4
4