decocms 2.343.5 → 2.343.6

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 (208) hide show
  1. package/dist/client/assets/{AlertCircle-DMn4ErF7.js → AlertCircle-B2eHj7e1.js} +1 -1
  2. package/dist/client/assets/{ArrowNarrowLeft-DRMMU-Rx.js → ArrowNarrowLeft-CxcqihTL.js} +1 -1
  3. package/dist/client/assets/{ArrowUpRight-BG1qVEu5.js → ArrowUpRight-Bmxv_5f2.js} +1 -1
  4. package/dist/client/assets/{Building02-DXFrqtM4.js → Building02-DhlHp14j.js} +1 -1
  5. package/dist/client/assets/{Check-CgJkW5mO.js → Check-DKPiDw0v.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-BhQF3J-G.js → CheckCircle-BS-i9SgB.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-C6CmTT2m.js → ChevronDown-C2svK15b.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-9ST8kRHp.js → ChevronRight-D_jXf5Kp.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-DYBcJQJI.js → ChevronUp-CVfkcqtl.js} +1 -1
  10. package/dist/client/assets/{Container-DvJcXzPK.js → Container-BkK0DB__.js} +1 -1
  11. package/dist/client/assets/{DotsVertical-BWVeD_Nu.js → DotsVertical-C0edSuvc.js} +1 -1
  12. package/dist/client/assets/{Key01-CToqdwOF.js → Key01-CRTO9Eqv.js} +1 -1
  13. package/dist/client/assets/{LayoutLeft-msnP7LxF.js → LayoutLeft-PSosyh8W.js} +1 -1
  14. package/dist/client/assets/{LinkExternal01-BYFbxPa2.js → LinkExternal01-8dkTfrKr.js} +1 -1
  15. package/dist/client/assets/{Lock01-Br965pCK.js → Lock01-D3HzAQHN.js} +1 -1
  16. package/dist/client/assets/{Monitor01-CeCWg7Jm.js → Monitor01-CE0kuy60.js} +1 -1
  17. package/dist/client/assets/{Palette-CTxrzTV6.js → Palette-K4YZYTyg.js} +1 -1
  18. package/dist/client/assets/{Play-Y01bx8MI.js → Play-DfLpvTAf.js} +1 -1
  19. package/dist/client/assets/{Plus-DZMvWlgN.js → Plus-DUbqF6rK.js} +1 -1
  20. package/dist/client/assets/{RefreshCcw01-STdDbh6L.js → RefreshCcw01-B-Cq3kpB.js} +1 -1
  21. package/dist/client/assets/{SearchLg-tmO6QRl-.js → SearchLg-CWYSpRcF.js} +1 -1
  22. package/dist/client/assets/{SearchMd-i7Gp8R_i.js → SearchMd-Dpur_ahX.js} +1 -1
  23. package/dist/client/assets/{Settings02-Ca5SX90W.js → Settings02-CJ09Har8.js} +1 -1
  24. package/dist/client/assets/{Shield01-56gTI-65.js → Shield01-CnFfMzTJ.js} +1 -1
  25. package/dist/client/assets/{Star01-B7Wf0BA4.js → Star01-f02R5Lt3.js} +1 -1
  26. package/dist/client/assets/{Sun-JMAHaccL.js → Sun-GgIgazyF.js} +1 -1
  27. package/dist/client/assets/{Tool01-Ck4wzkil.js → Tool01-CIld76-5.js} +1 -1
  28. package/dist/client/assets/{Trash01-DZil92Jh.js → Trash01-cTgn14Wa.js} +1 -1
  29. package/dist/client/assets/{Upload01-B0HbOxqP.js → Upload01-HhDlaYLd.js} +1 -1
  30. package/dist/client/assets/{User01-Bb_7ado6.js → User01-CUr_vH6R.js} +1 -1
  31. package/dist/client/assets/{Users01-CCKc6ep2.js → Users01-DfpmcJ6n.js} +1 -1
  32. package/dist/client/assets/{Users03-9Msw3sAO.js → Users03-DFib9kg8.js} +1 -1
  33. package/dist/client/assets/{X-DDsITeaO.js → X-KaP-9Zgp.js} +1 -1
  34. package/dist/client/assets/{XCircle-zMGNHwa8.js → XCircle-CmRYIXoV.js} +1 -1
  35. package/dist/client/assets/{XClose-BfGe8XlD.js → XClose-BTeq1oZe.js} +1 -1
  36. package/dist/client/assets/{Zap-D1hcdQQV.js → Zap-BuqS_qna.js} +1 -1
  37. package/dist/client/assets/{ZapSquare-DbH77Z5v.js → ZapSquare-BNz1wDNr.js} +1 -1
  38. package/dist/client/assets/{accordion-BJxZ1Mun.js → accordion-f3g-k3lM.js} +1 -1
  39. package/dist/client/assets/{agent-icon-sU9yNgMj.js → agent-icon-DhO8qmda.js} +1 -1
  40. package/dist/client/assets/{agent-models-B_Glgacf.js → agent-models-DuOluvdI.js} +1 -1
  41. package/dist/client/assets/{agents-list-DH1mAh-Z.js → agents-list-CGNMOYSa.js} +1 -1
  42. package/dist/client/assets/{ai-providers-C-PBt61H.js → ai-providers-Cktx7Vm2.js} +1 -1
  43. package/dist/client/assets/{alert-dialog-CsOiC1Gz.js → alert-dialog-6PLIDXks.js} +1 -1
  44. package/dist/client/assets/{auth-catchall-BNUhQHYq.js → auth-catchall-Ccm8W1GX.js} +1 -1
  45. package/dist/client/assets/{auth-split-layout-i-geOrIj.js → auth-split-layout-CMVWo7nP.js} +1 -1
  46. package/dist/client/assets/{automation-list-row-Cvf312NN.js → automation-list-row-Brz_krF-.js} +1 -1
  47. package/dist/client/assets/{automations-iqMyNrX4.js → automations-_NK1-A6q.js} +1 -1
  48. package/dist/client/assets/{avatar-Ds0wPNKF.js → avatar-B8vNPMYL.js} +1 -1
  49. package/dist/client/assets/{badge-C2JMvH6Q.js → badge--5VL1-K0.js} +1 -1
  50. package/dist/client/assets/{brand-context-B-0ozW8j.js → brand-context-CUPYEhfL.js} +1 -1
  51. package/dist/client/assets/{card-mSB2lAWB.js → card-BAPVTNeM.js} +1 -1
  52. package/dist/client/assets/{chat-context-DR6dQnLy.js → chat-context-0IKLT4wq.js} +1 -1
  53. package/dist/client/assets/{checkbox-DPaoVVrP.js → checkbox-BQ4sRBrQ.js} +1 -1
  54. package/dist/client/assets/{collection-detail-CMmWJSl9.js → collection-detail-BFyVunit.js} +1 -1
  55. package/dist/client/assets/{collection-display-button-C0IyjKMk.js → collection-display-button-YhJUEiHz.js} +1 -1
  56. package/dist/client/assets/{collection-search-Dbo118DH.js → collection-search-C_-yILXl.js} +1 -1
  57. package/dist/client/assets/{collection-search-DcWbN0tR.js → collection-search-DD55_3nh.js} +1 -1
  58. package/dist/client/assets/{collection-table-wrapper-iHZqG4EL.js → collection-table-wrapper-TX9-kk8m.js} +1 -1
  59. package/dist/client/assets/{collection-tabs-xlUwBk7w.js → collection-tabs-y0cy_oLu.js} +1 -1
  60. package/dist/client/assets/{collections-D64xxjNO.js → collections-38BsWSzW.js} +1 -1
  61. package/dist/client/assets/{command-0hO6Is11.js → command-D0zg2xR7.js} +1 -1
  62. package/dist/client/assets/{connection-card-Dmpozita.js → connection-card-BmgME3nF.js} +1 -1
  63. package/dist/client/assets/{connection-detail-Be6icjyq.js → connection-detail-CBouLj3k.js} +1 -1
  64. package/dist/client/assets/{connection-form-helpers-DIYVQOJo.js → connection-form-helpers-mYM6wAEh.js} +1 -1
  65. package/dist/client/assets/{connections-CGtSBpA-.js → connections-DN5RucSd.js} +1 -1
  66. package/dist/client/assets/{constants-DPVM1Ytu.js → constants-CPVZA0XC.js} +1 -1
  67. package/dist/client/assets/{constants-DG2sk_0H.js → constants-dLpaUsN8.js} +1 -1
  68. package/dist/client/assets/{decopilot-sse-pool-BMdviN8X.js → decopilot-sse-pool-XfO9dGEQ.js} +1 -1
  69. package/dist/client/assets/{dialog-xU6O08Hz.js → dialog-DeF_jmhK.js} +1 -1
  70. package/dist/client/assets/{domain-settings-CmWnBxMx.js → domain-settings-CuhYxhnp.js} +1 -1
  71. package/dist/client/assets/{drawer-Bftoew7Y.js → drawer-VlebDb69.js} +1 -1
  72. package/dist/client/assets/{dropdown-menu-37ioHY85.js → dropdown-menu-roylZYWc.js} +1 -1
  73. package/dist/client/assets/{dynamic-plugin-layout-BdEqqluD.js → dynamic-plugin-layout-B4eJnbCb.js} +1 -1
  74. package/dist/client/assets/{empty-state-DTkqsJki.js → empty-state-B_coEY2P.js} +1 -1
  75. package/dist/client/assets/{empty-state-_qOVtH-p.js → empty-state-wVlFUTuL.js} +1 -1
  76. package/dist/client/assets/{extract-connection-data-_i5LkZhQ.js → extract-connection-data-G78XYV45.js} +1 -1
  77. package/dist/client/assets/{features-BuQRTHY7.js → features-Dvg6m_Tb.js} +1 -1
  78. package/dist/client/assets/{file-explorer-pKhIdo3a.js → file-explorer-BV9f-kke.js} +1 -1
  79. package/dist/client/assets/{form-CgjywpPp.js → form-jI6P-pAp.js} +1 -1
  80. package/dist/client/assets/{general-DcrhKepf.js → general-DLcUgbha.js} +1 -1
  81. package/dist/client/assets/{hooks-C0RpcvT-.js → hooks-CKWLlFdn.js} +1 -1
  82. package/dist/client/assets/{index-DSfns5B0.js → index-BB1deX0d.js} +1 -1
  83. package/dist/client/assets/{index-C76W7tLb.js → index-BRgCAhHs.js} +1 -1
  84. package/dist/client/assets/{index-C9UEm0aF.js → index-Bf4UxK2Z.js} +2 -2
  85. package/dist/client/assets/{index-DKSThpY5.js → index-Bgfr6sPE.js} +1 -1
  86. package/dist/client/assets/{index-BtcuhRkM.js → index-BiK2ANK0.js} +1 -1
  87. package/dist/client/assets/{index-C5OHYX2D.js → index-CJ06re6J.js} +1 -1
  88. package/dist/client/assets/{index-w6-egSGC.js → index-CrCKLCTE.js} +1 -1
  89. package/dist/client/assets/{index-BwxPkxWQ.js → index-Cti5aHML.js} +1 -1
  90. package/dist/client/assets/{index-CAWr5v6I.js → index-Cxq_1hW7.js} +1 -1
  91. package/dist/client/assets/{index-CkNEQt0t.js → index-DSWBpg1D.js} +1 -1
  92. package/dist/client/assets/{index-ycinRUyU.js → index-Dq89w-TY.js} +1 -1
  93. package/dist/client/assets/{index-R7WmRLsq.js → index-Dql3mibq.js} +1 -1
  94. package/dist/client/assets/{index-CuoKNiBk.js → index-SC5A95WZ.js} +1 -1
  95. package/dist/client/assets/{index-CsN1f6Mf.js → index-gLjKW_GL.js} +4 -4
  96. package/dist/client/assets/{index-BTF4JQ6R.js → index-jDo3raIY.js} +1 -1
  97. package/dist/client/assets/{index-guSlXYnQ.js → index-rkrd3EG7.js} +1 -1
  98. package/dist/client/assets/{infiniteQueryObserver-D-LVR76l.js → infiniteQueryObserver-D1AxhsFP.js} +1 -1
  99. package/dist/client/assets/{input-Cdi9gxjc.js → input-D3wLBcw1.js} +1 -1
  100. package/dist/client/assets/{integration-icon-DcWsEICc.js → integration-icon-CDsyJjsh.js} +1 -1
  101. package/dist/client/assets/{label-BuSjhBby.js → label-e0eIq6aZ.js} +1 -1
  102. package/dist/client/assets/{layout-xI0NTaVa.js → layout-B3Vav8lm.js} +1 -1
  103. package/dist/client/assets/{lean-canvas-recruit-modal-C1eNHtBl.js → lean-canvas-recruit-modal-DOlgcgzL.js} +1 -1
  104. package/dist/client/assets/{login-D9UPVEj4.js → login-bAEXzx2H.js} +1 -1
  105. package/dist/client/assets/{members-Bc3j8vYC.js → members-CrGJoeDh.js} +1 -1
  106. package/dist/client/assets/{monaco-editor-CatlVtHe.js → monaco-editor-DRSPGhbT.js} +1 -1
  107. package/dist/client/assets/{monitoring-stats-row-BIhzNtTb.js → monitoring-stats-row-BDJ_Q-sT.js} +1 -1
  108. package/dist/client/assets/{oauth-callback-CYlYmz7U.js → oauth-callback-DVRyNcmj.js} +1 -1
  109. package/dist/client/assets/{oauth-callback-ai-provider-DeHId1DV.js → oauth-callback-ai-provider-DxdNkPgW.js} +1 -1
  110. package/dist/client/assets/{onboarding-BVlqY8oG.js → onboarding-D8s2ns87.js} +1 -1
  111. package/dist/client/assets/{org-layout-B9V1WKRL.js → org-layout-CpcOioMH.js} +1 -1
  112. package/dist/client/assets/{org-plugin-layout-Dc7_BxQD.js → org-plugin-layout-CYGUkkkR.js} +1 -1
  113. package/dist/client/assets/{pair-CeEq9T2O.js → pair-BOolv6CG.js} +1 -1
  114. package/dist/client/assets/{plugin-empty-state-CpS42-ME.js → plugin-empty-state-DBV3odzo.js} +1 -1
  115. package/dist/client/assets/{plugin-header-BJfFFNRP.js → plugin-header-BJPzRt2a.js} +1 -1
  116. package/dist/client/assets/{plugin-layout-D_Iqj8CD.js → plugin-layout-Dsi7k6R5.js} +1 -1
  117. package/dist/client/assets/{popover-B8_iKHLU.js → popover-BeXnf11b.js} +1 -1
  118. package/dist/client/assets/{profile-BJX5q_hw.js → profile-CDV7JIt-.js} +1 -1
  119. package/dist/client/assets/{project-app-view-D-lV6K7b.js → project-app-view-CjRV_NRv.js} +1 -1
  120. package/dist/client/assets/registry-CrgBbUgM.js +2 -0
  121. package/dist/client/assets/{registry-layout-C5yxWOxu.js → registry-layout-CNpEHraq.js} +1 -1
  122. package/dist/client/assets/{required-auth-layout-BkADLVGr.js → required-auth-layout-CA4fYSwK.js} +1 -1
  123. package/dist/client/assets/{reset-password-6dG3DUO1.js → reset-password-eDFtZmm0.js} +1 -1
  124. package/dist/client/assets/{roles-BGdUO_ZL.js → roles-C2lU9lYy.js} +1 -1
  125. package/dist/client/assets/{search-input-BcTGkVm4.js → search-input-D3FhG3of.js} +1 -1
  126. package/dist/client/assets/{secrets-DGUwetu-.js → secrets-BS-lOU1C.js} +1 -1
  127. package/dist/client/assets/{sections-editor-ylnmXhOn.js → sections-editor-x8uPPz4j.js} +1 -1
  128. package/dist/client/assets/{select-B4d2U3-e.js → select-CuHr5fXM.js} +1 -1
  129. package/dist/client/assets/{settings-layout-CJaDzYgG.js → settings-layout-Buet0SmG.js} +1 -1
  130. package/dist/client/assets/{settings-section-Dk6rz76H.js → settings-section-DiHCwxw2.js} +1 -1
  131. package/dist/client/assets/{shell-layout-C2Sdv8NG.js → shell-layout-JnQ2O1U7.js} +1 -1
  132. package/dist/client/assets/{sidebar-CGPsmcjg.js → sidebar-B_4prYx4.js} +1 -1
  133. package/dist/client/assets/{skeleton-COUipQ4Q.js → skeleton-AGBsesGc.js} +1 -1
  134. package/dist/client/assets/{spinner-CIoX-SxH.js → spinner-DsACT7El.js} +1 -1
  135. package/dist/client/assets/{sso-B80o0s1k.js → sso-Dhyd6ZiO.js} +1 -1
  136. package/dist/client/assets/{store-0QX3bjMs.js → store-CcesFZmy.js} +1 -1
  137. package/dist/client/assets/store-registry-CnUEYKl7.js +2 -0
  138. package/dist/client/assets/{switch-_JN6WXfk.js → switch-BGE9cJht.js} +1 -1
  139. package/dist/client/assets/{table-Dcd3qce4.js → table-DgPM3Urg.js} +1 -1
  140. package/dist/client/assets/{tabs-qbu5aXP5.js → tabs-BOTzf805.js} +1 -1
  141. package/dist/client/assets/{task-status-7EvHcXhA.js → task-status-DtPctv4c.js} +1 -1
  142. package/dist/client/assets/{textarea-ezBAh-ci.js → textarea-BF_TKrea.js} +1 -1
  143. package/dist/client/assets/{toggle-group-fa9ptW_Z.js → toggle-group-DnWWdySD.js} +1 -1
  144. package/dist/client/assets/{tools-list-8krv5h-3.js → tools-list-BRIP5RmH.js} +1 -1
  145. package/dist/client/assets/{tooltip-CaQjUma3.js → tooltip-DM9palzE.js} +1 -1
  146. package/dist/client/assets/{types-C4e-LRxV.js → types-BtPcm-7P.js} +1 -1
  147. package/dist/client/assets/{use-ai-providers-C3VHCF8p.js → use-ai-providers-OUW6JMOp.js} +1 -1
  148. package/dist/client/assets/{use-collections-DNvmDnbN.js → use-collections-nufxZlf_.js} +1 -1
  149. package/dist/client/assets/{use-connection-BGdZGnmu.js → use-connection-BNmoIwQg.js} +1 -1
  150. package/dist/client/assets/{use-copy-RYe2lXz3.js → use-copy-D6zGnSRk.js} +1 -1
  151. package/dist/client/assets/{use-create-virtual-mcp-ChO4_kNB.js → use-create-virtual-mcp-Ckr2pYgU.js} +1 -1
  152. package/dist/client/assets/{use-create-website-agent-3oryguME.js → use-create-website-agent-CKFqK76s.js} +1 -1
  153. package/dist/client/assets/{use-debounced-autosave-BY5sGeW6.js → use-debounced-autosave-BBwvvwih.js} +1 -1
  154. package/dist/client/assets/{use-delete-connection-C6AmsDRy.js → use-delete-connection-CPao9B1A.js} +1 -1
  155. package/dist/client/assets/{use-infinite-scroll-BihNiDcY.js → use-infinite-scroll-BDKH-Wtf.js} +1 -1
  156. package/dist/client/assets/{use-list-state-0oP6RkcN.js → use-list-state-BqW4uQqC.js} +1 -1
  157. package/dist/client/assets/{use-mcp-tools-BDMB9XmW.js → use-mcp-tools-VZ9Hpxff.js} +1 -1
  158. package/dist/client/assets/{use-members-CkjLUYIV.js → use-members-B7HW_JBz.js} +1 -1
  159. package/dist/client/assets/{use-navigate-to-agent-Bcv_R7xe.js → use-navigate-to-agent-BEpwKNsB.js} +1 -1
  160. package/dist/client/assets/{use-org-auth-client-R-on2rxL.js → use-org-auth-client-bVHLT2YP.js} +1 -1
  161. package/dist/client/assets/{use-org-sso-B8VnAMoS.js → use-org-sso-ZXpwOerI.js} +1 -1
  162. package/dist/client/assets/{use-organization-roles-v9JQk9hP.js → use-organization-roles-CgtYHR9C.js} +1 -1
  163. package/dist/client/assets/{use-organization-settings-DKdHITUe.js → use-organization-settings-DsFVMR9y.js} +1 -1
  164. package/dist/client/assets/{use-registry-connections-BxKGYdQr.js → use-registry-connections-DPX7EH3p.js} +1 -1
  165. package/dist/client/assets/{use-secrets-3AqFLOQx.js → use-secrets-BqmvCE0c.js} +1 -1
  166. package/dist/client/assets/{use-status-sounds-Cmw5K0Ch.js → use-status-sounds-DmU4jspw.js} +1 -1
  167. package/dist/client/assets/{use-view-mode-CBIh242S.js → use-view-mode-BLjEDO9D.js} +1 -1
  168. package/dist/client/assets/{use-virtual-mcp-B0ez_suv.js → use-virtual-mcp-CfSWiyjb.js} +1 -1
  169. package/dist/client/assets/useInfiniteQuery-1PtmuLfG.js +1 -0
  170. package/dist/client/assets/{useRouterState-EoWY4nHO.js → useRouterState-zGUMzA-3.js} +1 -1
  171. package/dist/client/assets/useSuspenseInfiniteQuery-B87PMcER.js +1 -0
  172. package/dist/client/assets/{user-C3gZLtHM.js → user-BObMSYhv.js} +1 -1
  173. package/dist/client/assets/{view-mode-toggle-ChtVPtKo.js → view-mode-toggle-BFP9EFGX.js} +1 -1
  174. package/dist/client/assets/{workflow-gp1Gi9YH.js → workflow-B3swyRIG.js} +1 -1
  175. package/dist/client/assets/workflow-detail-BzwgoTIj.js +1 -0
  176. package/dist/client/index.html +1 -1
  177. package/dist/server/cli.js +2 -2
  178. package/dist/server/node_modules/ansi-styles/index.d.ts +236 -0
  179. package/dist/server/node_modules/ansi-styles/index.js +223 -0
  180. package/dist/server/node_modules/ansi-styles/package.json +54 -0
  181. package/dist/server/node_modules/ansi-styles/readme.md +173 -0
  182. package/dist/server/node_modules/pg-connection-string/LICENSE +21 -0
  183. package/dist/server/node_modules/pg-connection-string/README.md +105 -0
  184. package/dist/server/node_modules/pg-connection-string/esm/index.mjs +8 -0
  185. package/dist/server/node_modules/pg-connection-string/index.d.ts +36 -0
  186. package/dist/server/node_modules/pg-connection-string/index.js +231 -0
  187. package/dist/server/node_modules/pg-connection-string/package.json +52 -0
  188. package/dist/server/node_modules/xtend/.jshintrc +30 -0
  189. package/dist/server/node_modules/xtend/LICENSE +20 -0
  190. package/dist/server/node_modules/xtend/README.md +32 -0
  191. package/dist/server/node_modules/xtend/immutable.js +19 -0
  192. package/dist/server/node_modules/xtend/mutable.js +17 -0
  193. package/dist/server/node_modules/xtend/package.json +55 -0
  194. package/dist/server/node_modules/xtend/test.js +103 -0
  195. package/package.json +2 -2
  196. package/dist/client/assets/registry-BY1Ukj0z.js +0 -2
  197. package/dist/client/assets/store-registry-BaAH1vXo.js +0 -2
  198. package/dist/client/assets/useInfiniteQuery-ghEPKCL5.js +0 -1
  199. package/dist/client/assets/useSuspenseInfiniteQuery-DfSMBOfj.js +0 -1
  200. package/dist/client/assets/workflow-detail-DNKrM4Su.js +0 -1
  201. package/dist/server/node_modules/get-east-asian-width/index.d.ts +0 -60
  202. package/dist/server/node_modules/get-east-asian-width/index.js +0 -30
  203. package/dist/server/node_modules/get-east-asian-width/lookup-data.js +0 -18
  204. package/dist/server/node_modules/get-east-asian-width/lookup.js +0 -135
  205. package/dist/server/node_modules/get-east-asian-width/package.json +0 -71
  206. package/dist/server/node_modules/get-east-asian-width/readme.md +0 -65
  207. package/dist/server/node_modules/get-east-asian-width/utilities.js +0 -24
  208. /package/dist/server/node_modules/{get-east-asian-width → ansi-styles}/license +0 -0
@@ -1,4 +1,4 @@
1
- import{e as ne,c as Re,j as h,bf as lc,bg as _t,bh as tr,r as fe,bi as pS,B as uc,t as fS,p as cc,z as mS,a as gS,K as xt,o as hS,n as dc,f as bS,E as ES,y as TS,bj as SE}from"./index-C9UEm0aF.js";import{_ as SS,$ as yS,a0 as _S,W as AS,u as kS,z as IS,U as NS,I as ud,a1 as RS,a2 as CS,N as xS,V as yE,a3 as vS,a4 as wS,a5 as OS,a6 as LS,a7 as DS}from"./agent-icon-sU9yNgMj.js";import{d as MS,b as PS,c as Lr,t as pc}from"./Tool01-Ck4wzkil.js";import{n as fc,t as FS,c as BS}from"./XCircle-zMGNHwa8.js";import{i as On}from"./Check-CgJkW5mO.js";import{i as cd}from"./ChevronRight-9ST8kRHp.js";import{a as pr,s as US}from"./RefreshCcw01-STdDbh6L.js";import{N as _E,R as AE,e as kE,C as HS,f as $S,g as qS,u as GS,i as zS,d as jS}from"./index-C5OHYX2D.js";import{u as IE}from"./use-copy-RYe2lXz3.js";import{T as Ot,a as Lt,b as Dt}from"./tooltip-CaQjUma3.js";import{d as VS}from"./differenceInSeconds-NQ4PDo0z.js";import{b as WS,f as YS,g as KS,d as XS}from"./dialog-xU6O08Hz.js";import{c as ZS}from"./content-blocks-o63cs2vh.js";import{g as NE,M as QS}from"./types-C4e-LRxV.js";import{c as mc,j as JS,a as ey,f as ty}from"./chat-context-DR6dQnLy.js";import{S as ny,u as RE,c as ry}from"./constants-DG2sk_0H.js";import{i as CE}from"./AlertCircle-DMn4ErF7.js";import{s as nr}from"./Star01-B7Wf0BA4.js";import{s as ay}from"./XClose-BfGe8XlD.js";import{c as xE}from"./ZapSquare-DbH77Z5v.js";import{i as iy}from"./Monitor01-CeCWg7Jm.js";import{i as sy}from"./SearchMd-i7Gp8R_i.js";import{i as oy}from"./Upload01-B0HbOxqP.js";import{u as ly}from"./shell-layout-C2Sdv8NG.js";import{n as uy}from"./LinkExternal01-BYFbxPa2.js";import{I as vE}from"./integration-icon-DcWsEICc.js";import{u as cy}from"./use-virtual-mcp-B0ez_suv.js";import{t as wE}from"./Users03-9Msw3sAO.js";const dy={openrouter:e=>{const t=e?.openrouter;return typeof t=="object"&&t!==null&&"usage"in t&&typeof t.usage=="object"&&t.usage!==null&&"cost"in t.usage&&typeof t.usage.cost=="number"?t.usage.cost:null}};function OE(e){if(!e?.providerMetadata)return 0;for(const t of Object.values(dy)){const n=t(e.providerMetadata);if(n!==null)return n}return 0}function LE(){return{inputTokens:0,outputTokens:0,reasoningTokens:0,totalTokens:0,cost:0,cacheReadTokens:0,cacheWriteTokens:0}}function DE(e,t){if(!t)return e;const n=t.inputTokenDetails?.cacheReadTokens??t.cachedInputTokens??0,r=t.inputTokenDetails?.cacheWriteTokens??0;return{inputTokens:e.inputTokens+(t.inputTokens??0),outputTokens:e.outputTokens+(t.outputTokens??0),reasoningTokens:e.reasoningTokens+(t.reasoningTokens??0),totalTokens:e.totalTokens+(t.totalTokens??0),cost:e.cost+OE(t),cacheReadTokens:e.cacheReadTokens+n,cacheWriteTokens:e.cacheWriteTokens+r}}function _B(e){return e.reduce((t,n)=>DE(t,n.metadata?.usage),LE())}function py(e){if(!e||!e.startsWith("automation:"))return null;const t=e.slice(11);return t?{id:t}:null}function ME(e,t){return`app:${e}:${t}`}function AB(e){if(!e||!e.startsWith("app:"))return null;const t=e.slice(4),n=t.indexOf(":");if(n<=0)return null;const r=t.slice(0,n),a=t.slice(n+1);return!r||!a?null:{connectionId:r,toolName:a}}const fy=["settings","automations","preview","git"],my=new Set(fy),gc=new Set(["instructions","connections","layout","settings"]);function kB(e){return!!e&&gc.has(e)}function gy(e){const t=e?.defaultMainView??null;if(!t||gc.has(t.type))return"settings";if(my.has(t.type))return t.type;if(t.type==="ext-app"||t.type==="ext-apps"){if(t.id&&t.toolName)return ME(t.id,t.toolName);const n=e?.tabs?.map(r=>r.id)??[];return t.id&&n.includes(t.id)?t.id:n[0]??"settings"}return e?.tabs?.[0]?.id??"settings"}function IB(e){const t=gy(e.metadata);if(e.mainParam==="0")return{mainOpen:!1,activeTab:t};if(e.mainParam===void 0){const n=e.metadata?.defaultMainView??null;return{mainOpen:!(n==null||n.type==="chat"),activeTab:t}}return gc.has(e.mainParam)?{mainOpen:!0,activeTab:"settings"}:{mainOpen:!0,activeTab:e.mainParam}}function NB(e){return e.mainOpen&&e.clickedId===e.activeTab?"0":e.clickedId}function RB(e){return e.mainOpen?e.activeTab==="automations"?!0:py(e.activeTab)!==null:!1}function CB(e){return e.mainOpen&&e.activeTab==="automations"?"0":"automations"}function hy(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}function by(e){if(e&&typeof e=="object"&&"gatewayClientId"in e&&typeof e.gatewayClientId=="string")return e.gatewayClientId}function PE(e,t){if(!t)return e;const n=`${hy(t)}_`;return e.startsWith(n)?e.slice(n.length):e}function xB(e,t){return PE(e,t).replace(/[_-]/g," ").toLowerCase()}function vB(e){const t=VS(new Date,e);return t<60?"<1m":t<3600?`${Math.floor(t/60)}m ago`:t<86400?`${Math.floor(t/3600)}h ago`:t<604800?`${Math.floor(t/86400)}d ago`:t<2592e3?`${Math.floor(t/604800)}w ago`:t<31536e3?`${Math.floor(t/2592e3)}mo ago`:`${Math.floor(t/31536e3)}y ago`}function Kt(e){if(e<60)return`${e.toFixed(1)}s`;const t=Math.round(e%60*10)/10,n=t>=60?1:0;return`${Math.floor(e/60)+n}m ${(n?0:t).toFixed(1)}s`}function FE(e){return e?e.replace(/[_-]/g," ").toLowerCase().split(" ").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "):""}function fr(e,t){return e==="output-error"?"error":e==="approval-requested"?"approval":e==="input-streaming"||e==="input-available"||e==="output-available"&&t===!0?"loading":"idle"}function Ey(e){return e.storage.mention}function wB(e,t,n){e.chain().focus().insertContentAt(t,[Ty(n),{type:"text",text:" "}]).run()}function Ty(e){return{type:"mention",attrs:e}}function Sy(e){const t=ne.c(19),{node:n,selected:r,view:a,editor:i,getPos:s}=e,{name:o,char:l,kind:u,id:c,args:d}=n.attrs,f=r&&a.editable,m=l==="@",g=a.editable&&l==="/"&&u!=="resource";let E;t[0]!==d||t[1]!==i||t[2]!==s||t[3]!==c||t[4]!==g||t[5]!==o?(E=D=>{if(!g)return;const x=Ey(i)?.onEditChip;if(!x||typeof s!="function")return;const M=s();typeof M=="number"&&(D.preventDefault(),D.stopPropagation(),x({promptId:c,promptName:o,args:d??{},pos:M}))},t[0]=d,t[1]=i,t[2]=s,t[3]=c,t[4]=g,t[5]=o,t[6]=E):E=t[6];const _=E,S=g?"cursor-pointer":"cursor-default",y=m?"bg-violet-100 text-violet-700 dark:bg-violet-900/30 dark:text-violet-400":"bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-300",T=f&&"outline-2 outline-blue-300 outline-offset-0",I=g&&"hover:brightness-95";let C;t[7]!==S||t[8]!==y||t[9]!==T||t[10]!==I?(C=Re("px-1 py-1 rounded","inline-flex items-center gap-1",S,"select-none","text-xs font-light",y,T,I,"capitalize"),t[7]=S,t[8]=y,t[9]=T,t[10]=I,t[11]=C):C=t[11];let b;t[12]!==o?(b=o?FE(o):"",t[12]=o,t[13]=b):b=t[13];let w;return t[14]!==l||t[15]!==_||t[16]!==C||t[17]!==b?(w=h.jsxs(kE,{onClick:_,className:C,children:[l,b]}),t[14]=l,t[15]=_,t[16]=C,t[17]=b,t[18]=w):w=t[18],w}const yy=_E.create({name:"mention",group:"inline",inline:!0,atom:!0,addStorage(){return{onEditChip:null}},addAttributes(){return{id:{default:null,parseHTML:e=>e.getAttribute("data-id")||null,renderHTML:e=>e.id?{"data-id":e.id}:{}},name:{default:null,parseHTML:e=>e.getAttribute("data-name")||null,renderHTML:e=>e.name?{"data-name":e.name}:{}},char:{default:"/",parseHTML:e=>e.getAttribute("data-char")||"/",renderHTML:e=>e.char?{"data-char":e.char}:{}},metadata:{default:null,parseHTML:e=>{try{return JSON.parse(e.getAttribute("data-metadata")||"null")}catch{return null}},renderHTML:e=>e.metadata?{"data-metadata":JSON.stringify(e.metadata)}:{}},kind:{default:null,parseHTML:e=>e.getAttribute("data-kind")||null,renderHTML:e=>e.kind?{"data-kind":e.kind}:{}},args:{default:null,parseHTML:e=>{try{return JSON.parse(e.getAttribute("data-args")||"null")}catch{return null}},renderHTML:e=>e.args?{"data-args":JSON.stringify(e.args)}:{}}}},parseHTML(){return[{tag:'span[data-type="mention"]'}]},renderHTML({node:e,HTMLAttributes:t}){const n={"data-type":"mention"};return e.attrs.id&&(n["data-id"]=e.attrs.id),e.attrs.name&&(n["data-name"]=e.attrs.name),e.attrs.char&&(n["data-char"]=e.attrs.char),e.attrs.metadata&&(n["data-metadata"]=JSON.stringify(e.attrs.metadata)),e.attrs.kind&&(n["data-kind"]=e.attrs.kind),e.attrs.args&&(n["data-args"]=JSON.stringify(e.attrs.args)),["span",{...t,...n}]},renderText({node:e}){const t=e.attrs.char??"@",n=e.attrs.name??"";return`${t}${n}`},addNodeView(){return AE(Sy)}}),_y=/^mcp__[a-zA-Z0-9_-]+__/;function BE(e){return e.replace(_y,"")}function hc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ft=hc();function UE(e){Ft=e}var En={exec:()=>null};function me(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(ze.caret,"$1"),n=n.replace(a,s),r},getRegex:()=>new RegExp(n,t)};return r}var ze={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Ay=/^(?:[ \t]*(?:\n|$))+/,ky=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Iy=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ln=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ny=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,bc=/(?:[*+-]|\d{1,9}[.)])/,HE=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,$E=me(HE).replace(/bull/g,bc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ry=me(HE).replace(/bull/g,bc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ec=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Cy=/^[^\n]+/,Tc=/(?!\s*\])(?:\\.|[^\[\]\\])+/,xy=me(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Tc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),vy=me(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,bc).getRegex(),mr="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Sc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,wy=me("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Sc).replace("tag",mr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),qE=me(Ec).replace("hr",Ln).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mr).getRegex(),Oy=me(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",qE).getRegex(),yc={blockquote:Oy,code:ky,def:xy,fences:Iy,heading:Ny,hr:Ln,html:wy,lheading:$E,list:vy,newline:Ay,paragraph:qE,table:En,text:Cy},dd=me("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ln).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mr).getRegex(),Ly={...yc,lheading:Ry,table:dd,paragraph:me(Ec).replace("hr",Ln).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",dd).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mr).getRegex()},Dy={...yc,html:me(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Sc).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:En,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:me(Ec).replace("hr",Ln).replace("heading",` *#{1,6} *[^
1
+ import{e as ne,c as Re,j as h,bf as lc,bg as _t,bh as tr,r as fe,bi as pS,B as uc,t as fS,p as cc,z as mS,a as gS,K as xt,o as hS,n as dc,f as bS,E as ES,y as TS,bj as SE}from"./index-Bf4UxK2Z.js";import{_ as SS,$ as yS,a0 as _S,W as AS,u as kS,z as IS,U as NS,I as ud,a1 as RS,a2 as CS,N as xS,V as yE,a3 as vS,a4 as wS,a5 as OS,a6 as LS,a7 as DS}from"./agent-icon-DhO8qmda.js";import{d as MS,b as PS,c as Lr,t as pc}from"./Tool01-CIld76-5.js";import{n as fc,t as FS,c as BS}from"./XCircle-CmRYIXoV.js";import{i as On}from"./Check-DKPiDw0v.js";import{i as cd}from"./ChevronRight-D_jXf5Kp.js";import{a as pr,s as US}from"./RefreshCcw01-B-Cq3kpB.js";import{N as _E,R as AE,e as kE,C as HS,f as $S,g as qS,u as GS,i as zS,d as jS}from"./index-CJ06re6J.js";import{u as IE}from"./use-copy-D6zGnSRk.js";import{T as Ot,a as Lt,b as Dt}from"./tooltip-DM9palzE.js";import{d as VS}from"./differenceInSeconds-NQ4PDo0z.js";import{b as WS,f as YS,g as KS,d as XS}from"./dialog-DeF_jmhK.js";import{c as ZS}from"./content-blocks-o63cs2vh.js";import{g as NE,M as QS}from"./types-BtPcm-7P.js";import{c as mc,j as JS,a as ey,f as ty}from"./chat-context-0IKLT4wq.js";import{S as ny,u as RE,c as ry}from"./constants-dLpaUsN8.js";import{i as CE}from"./AlertCircle-B2eHj7e1.js";import{s as nr}from"./Star01-f02R5Lt3.js";import{s as ay}from"./XClose-BTeq1oZe.js";import{c as xE}from"./ZapSquare-BNz1wDNr.js";import{i as iy}from"./Monitor01-CE0kuy60.js";import{i as sy}from"./SearchMd-Dpur_ahX.js";import{i as oy}from"./Upload01-HhDlaYLd.js";import{u as ly}from"./shell-layout-JnQ2O1U7.js";import{n as uy}from"./LinkExternal01-8dkTfrKr.js";import{I as vE}from"./integration-icon-CDsyJjsh.js";import{u as cy}from"./use-virtual-mcp-CfSWiyjb.js";import{t as wE}from"./Users03-DFib9kg8.js";const dy={openrouter:e=>{const t=e?.openrouter;return typeof t=="object"&&t!==null&&"usage"in t&&typeof t.usage=="object"&&t.usage!==null&&"cost"in t.usage&&typeof t.usage.cost=="number"?t.usage.cost:null}};function OE(e){if(!e?.providerMetadata)return 0;for(const t of Object.values(dy)){const n=t(e.providerMetadata);if(n!==null)return n}return 0}function LE(){return{inputTokens:0,outputTokens:0,reasoningTokens:0,totalTokens:0,cost:0,cacheReadTokens:0,cacheWriteTokens:0}}function DE(e,t){if(!t)return e;const n=t.inputTokenDetails?.cacheReadTokens??t.cachedInputTokens??0,r=t.inputTokenDetails?.cacheWriteTokens??0;return{inputTokens:e.inputTokens+(t.inputTokens??0),outputTokens:e.outputTokens+(t.outputTokens??0),reasoningTokens:e.reasoningTokens+(t.reasoningTokens??0),totalTokens:e.totalTokens+(t.totalTokens??0),cost:e.cost+OE(t),cacheReadTokens:e.cacheReadTokens+n,cacheWriteTokens:e.cacheWriteTokens+r}}function _B(e){return e.reduce((t,n)=>DE(t,n.metadata?.usage),LE())}function py(e){if(!e||!e.startsWith("automation:"))return null;const t=e.slice(11);return t?{id:t}:null}function ME(e,t){return`app:${e}:${t}`}function AB(e){if(!e||!e.startsWith("app:"))return null;const t=e.slice(4),n=t.indexOf(":");if(n<=0)return null;const r=t.slice(0,n),a=t.slice(n+1);return!r||!a?null:{connectionId:r,toolName:a}}const fy=["settings","automations","preview","git"],my=new Set(fy),gc=new Set(["instructions","connections","layout","settings"]);function kB(e){return!!e&&gc.has(e)}function gy(e){const t=e?.defaultMainView??null;if(!t||gc.has(t.type))return"settings";if(my.has(t.type))return t.type;if(t.type==="ext-app"||t.type==="ext-apps"){if(t.id&&t.toolName)return ME(t.id,t.toolName);const n=e?.tabs?.map(r=>r.id)??[];return t.id&&n.includes(t.id)?t.id:n[0]??"settings"}return e?.tabs?.[0]?.id??"settings"}function IB(e){const t=gy(e.metadata);if(e.mainParam==="0")return{mainOpen:!1,activeTab:t};if(e.mainParam===void 0){const n=e.metadata?.defaultMainView??null;return{mainOpen:!(n==null||n.type==="chat"),activeTab:t}}return gc.has(e.mainParam)?{mainOpen:!0,activeTab:"settings"}:{mainOpen:!0,activeTab:e.mainParam}}function NB(e){return e.mainOpen&&e.clickedId===e.activeTab?"0":e.clickedId}function RB(e){return e.mainOpen?e.activeTab==="automations"?!0:py(e.activeTab)!==null:!1}function CB(e){return e.mainOpen&&e.activeTab==="automations"?"0":"automations"}function hy(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}function by(e){if(e&&typeof e=="object"&&"gatewayClientId"in e&&typeof e.gatewayClientId=="string")return e.gatewayClientId}function PE(e,t){if(!t)return e;const n=`${hy(t)}_`;return e.startsWith(n)?e.slice(n.length):e}function xB(e,t){return PE(e,t).replace(/[_-]/g," ").toLowerCase()}function vB(e){const t=VS(new Date,e);return t<60?"<1m":t<3600?`${Math.floor(t/60)}m ago`:t<86400?`${Math.floor(t/3600)}h ago`:t<604800?`${Math.floor(t/86400)}d ago`:t<2592e3?`${Math.floor(t/604800)}w ago`:t<31536e3?`${Math.floor(t/2592e3)}mo ago`:`${Math.floor(t/31536e3)}y ago`}function Kt(e){if(e<60)return`${e.toFixed(1)}s`;const t=Math.round(e%60*10)/10,n=t>=60?1:0;return`${Math.floor(e/60)+n}m ${(n?0:t).toFixed(1)}s`}function FE(e){return e?e.replace(/[_-]/g," ").toLowerCase().split(" ").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "):""}function fr(e,t){return e==="output-error"?"error":e==="approval-requested"?"approval":e==="input-streaming"||e==="input-available"||e==="output-available"&&t===!0?"loading":"idle"}function Ey(e){return e.storage.mention}function wB(e,t,n){e.chain().focus().insertContentAt(t,[Ty(n),{type:"text",text:" "}]).run()}function Ty(e){return{type:"mention",attrs:e}}function Sy(e){const t=ne.c(19),{node:n,selected:r,view:a,editor:i,getPos:s}=e,{name:o,char:l,kind:u,id:c,args:d}=n.attrs,f=r&&a.editable,m=l==="@",g=a.editable&&l==="/"&&u!=="resource";let E;t[0]!==d||t[1]!==i||t[2]!==s||t[3]!==c||t[4]!==g||t[5]!==o?(E=D=>{if(!g)return;const x=Ey(i)?.onEditChip;if(!x||typeof s!="function")return;const M=s();typeof M=="number"&&(D.preventDefault(),D.stopPropagation(),x({promptId:c,promptName:o,args:d??{},pos:M}))},t[0]=d,t[1]=i,t[2]=s,t[3]=c,t[4]=g,t[5]=o,t[6]=E):E=t[6];const _=E,S=g?"cursor-pointer":"cursor-default",y=m?"bg-violet-100 text-violet-700 dark:bg-violet-900/30 dark:text-violet-400":"bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-300",T=f&&"outline-2 outline-blue-300 outline-offset-0",I=g&&"hover:brightness-95";let C;t[7]!==S||t[8]!==y||t[9]!==T||t[10]!==I?(C=Re("px-1 py-1 rounded","inline-flex items-center gap-1",S,"select-none","text-xs font-light",y,T,I,"capitalize"),t[7]=S,t[8]=y,t[9]=T,t[10]=I,t[11]=C):C=t[11];let b;t[12]!==o?(b=o?FE(o):"",t[12]=o,t[13]=b):b=t[13];let w;return t[14]!==l||t[15]!==_||t[16]!==C||t[17]!==b?(w=h.jsxs(kE,{onClick:_,className:C,children:[l,b]}),t[14]=l,t[15]=_,t[16]=C,t[17]=b,t[18]=w):w=t[18],w}const yy=_E.create({name:"mention",group:"inline",inline:!0,atom:!0,addStorage(){return{onEditChip:null}},addAttributes(){return{id:{default:null,parseHTML:e=>e.getAttribute("data-id")||null,renderHTML:e=>e.id?{"data-id":e.id}:{}},name:{default:null,parseHTML:e=>e.getAttribute("data-name")||null,renderHTML:e=>e.name?{"data-name":e.name}:{}},char:{default:"/",parseHTML:e=>e.getAttribute("data-char")||"/",renderHTML:e=>e.char?{"data-char":e.char}:{}},metadata:{default:null,parseHTML:e=>{try{return JSON.parse(e.getAttribute("data-metadata")||"null")}catch{return null}},renderHTML:e=>e.metadata?{"data-metadata":JSON.stringify(e.metadata)}:{}},kind:{default:null,parseHTML:e=>e.getAttribute("data-kind")||null,renderHTML:e=>e.kind?{"data-kind":e.kind}:{}},args:{default:null,parseHTML:e=>{try{return JSON.parse(e.getAttribute("data-args")||"null")}catch{return null}},renderHTML:e=>e.args?{"data-args":JSON.stringify(e.args)}:{}}}},parseHTML(){return[{tag:'span[data-type="mention"]'}]},renderHTML({node:e,HTMLAttributes:t}){const n={"data-type":"mention"};return e.attrs.id&&(n["data-id"]=e.attrs.id),e.attrs.name&&(n["data-name"]=e.attrs.name),e.attrs.char&&(n["data-char"]=e.attrs.char),e.attrs.metadata&&(n["data-metadata"]=JSON.stringify(e.attrs.metadata)),e.attrs.kind&&(n["data-kind"]=e.attrs.kind),e.attrs.args&&(n["data-args"]=JSON.stringify(e.attrs.args)),["span",{...t,...n}]},renderText({node:e}){const t=e.attrs.char??"@",n=e.attrs.name??"";return`${t}${n}`},addNodeView(){return AE(Sy)}}),_y=/^mcp__[a-zA-Z0-9_-]+__/;function BE(e){return e.replace(_y,"")}function hc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ft=hc();function UE(e){Ft=e}var En={exec:()=>null};function me(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(ze.caret,"$1"),n=n.replace(a,s),r},getRegex:()=>new RegExp(n,t)};return r}var ze={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Ay=/^(?:[ \t]*(?:\n|$))+/,ky=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Iy=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ln=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ny=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,bc=/(?:[*+-]|\d{1,9}[.)])/,HE=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,$E=me(HE).replace(/bull/g,bc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ry=me(HE).replace(/bull/g,bc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ec=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Cy=/^[^\n]+/,Tc=/(?!\s*\])(?:\\.|[^\[\]\\])+/,xy=me(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Tc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),vy=me(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,bc).getRegex(),mr="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Sc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,wy=me("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Sc).replace("tag",mr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),qE=me(Ec).replace("hr",Ln).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mr).getRegex(),Oy=me(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",qE).getRegex(),yc={blockquote:Oy,code:ky,def:xy,fences:Iy,heading:Ny,hr:Ln,html:wy,lheading:$E,list:vy,newline:Ay,paragraph:qE,table:En,text:Cy},dd=me("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ln).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mr).getRegex(),Ly={...yc,lheading:Ry,table:dd,paragraph:me(Ec).replace("hr",Ln).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",dd).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mr).getRegex()},Dy={...yc,html:me(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Sc).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:En,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:me(Ec).replace("hr",Ln).replace("heading",` *#{1,6} *[^
2
2
  ]`).replace("lheading",$E).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},My=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Py=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,GE=/^( {2,}|\\)\n(?!\s*$)/,Fy=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,gr=/[\p{P}\p{S}]/u,_c=/[\s\p{P}\p{S}]/u,zE=/[^\s\p{P}\p{S}]/u,By=me(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,_c).getRegex(),jE=/(?!~)[\p{P}\p{S}]/u,Uy=/(?!~)[\s\p{P}\p{S}]/u,Hy=/(?:[^\s\p{P}\p{S}]|~)/u,$y=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,VE=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,qy=me(VE,"u").replace(/punct/g,gr).getRegex(),Gy=me(VE,"u").replace(/punct/g,jE).getRegex(),WE="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",zy=me(WE,"gu").replace(/notPunctSpace/g,zE).replace(/punctSpace/g,_c).replace(/punct/g,gr).getRegex(),jy=me(WE,"gu").replace(/notPunctSpace/g,Hy).replace(/punctSpace/g,Uy).replace(/punct/g,jE).getRegex(),Vy=me("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,zE).replace(/punctSpace/g,_c).replace(/punct/g,gr).getRegex(),Wy=me(/\\(punct)/,"gu").replace(/punct/g,gr).getRegex(),Yy=me(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Ky=me(Sc).replace("(?:-->|$)","-->").getRegex(),Xy=me("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Ky).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),rr=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Zy=me(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",rr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),YE=me(/^!?\[(label)\]\[(ref)\]/).replace("label",rr).replace("ref",Tc).getRegex(),KE=me(/^!?\[(ref)\](?:\[\])?/).replace("ref",Tc).getRegex(),Qy=me("reflink|nolink(?!\\()","g").replace("reflink",YE).replace("nolink",KE).getRegex(),Ac={_backpedal:En,anyPunctuation:Wy,autolink:Yy,blockSkip:$y,br:GE,code:Py,del:En,emStrongLDelim:qy,emStrongRDelimAst:zy,emStrongRDelimUnd:Vy,escape:My,link:Zy,nolink:KE,punctuation:By,reflink:YE,reflinkSearch:Qy,tag:Xy,text:Fy,url:En},Jy={...Ac,link:me(/^!?\[(label)\]\((.*?)\)/).replace("label",rr).getRegex(),reflink:me(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",rr).getRegex()},Uu={...Ac,emStrongRDelimAst:jy,emStrongLDelim:Gy,url:me(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},e1={...Uu,br:me(GE).replace("{2,}","*").getRegex(),text:me(Uu.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},$n={normal:yc,gfm:Ly,pedantic:Dy},un={normal:Ac,gfm:Uu,breaks:e1,pedantic:Jy},t1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},pd=e=>t1[e];function st(e,t){if(t){if(ze.escapeTest.test(e))return e.replace(ze.escapeReplace,pd)}else if(ze.escapeTestNoEncode.test(e))return e.replace(ze.escapeReplaceNoEncode,pd);return e}function fd(e){try{e=encodeURI(e).replace(ze.percentDecode,"%")}catch{return null}return e}function md(e,t){const n=e.replace(ze.findPipe,(i,s,o)=>{let l=!1,u=s;for(;--u>=0&&o[u]==="\\";)l=!l;return l?"|":" |"}),r=n.split(ze.splitPipe);let a=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;a<r.length;a++)r[a]=r[a].trim().replace(ze.slashPipe,"|");return r}function cn(e,t,n){const r=e.length;if(r===0)return"";let a=0;for(;a<r&&e.charAt(r-a-1)===t;)a++;return e.slice(0,r-a)}function n1(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function gd(e,t,n,r,a){const i=t.href,s=t.title||null,o=e[1].replace(a.other.outputLinkReplace,"$1");r.state.inLink=!0;const l={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,l}function r1(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(r===null)return t;const a=r[1];return t.split(`
3
3
  `).map(i=>{const s=i.match(n.other.beginningSpace);if(s===null)return i;const[o]=s;return o.length>=a.length?i.slice(a.length):i}).join(`
4
4
  `)}var ar=class{options;rules;lexer;constructor(e){this.options=e||Ft}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:cn(n,`
@@ -1 +1 @@
1
- import{e as o,j as t,$ as n}from"./index-C9UEm0aF.js";function a(){const s=o.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-8",children:[t.jsx(n,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"No workflows connected"}),t.jsx("p",{className:"text-muted-foreground text-center max-w-md",children:"Connect a workflow provider to create and manage automated workflows with multiple steps and integrations."})]}),s[0]=e):e=s[0],e}export{a as default};
1
+ import{e as o,j as t,$ as n}from"./index-Bf4UxK2Z.js";function a(){const s=o.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-8",children:[t.jsx(n,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"No workflows connected"}),t.jsx("p",{className:"text-muted-foreground text-center max-w-md",children:"Connect a workflow provider to create and manage automated workflows with multiple steps and integrations."})]}),s[0]=e):e=s[0],e}export{a as default};
@@ -1 +1 @@
1
- import{e as S,j as s,r as w,$ as y}from"./index-C9UEm0aF.js";import{i as R}from"./Check-CgJkW5mO.js";import{t as _}from"./ChevronDown-C6CmTT2m.js";function E(x){const e=S.c(32),{connections:l,selectedConnectionId:n,onConnectionChange:N}=x,[r,z]=w.useState(!1),C=w.useRef(null);let p;if(e[0]!==l||e[1]!==n){let t;e[3]!==n?(t=u=>u.id===n,e[3]=n,e[4]=t):t=e[4],p=l.find(t),e[0]=l,e[1]=n,e[2]=p}else p=e[2];const i=p;let j;e[5]===Symbol.for("react.memo_cache_sentinel")?(j=t=>{C.current?.contains(t.relatedTarget)||z(!1)},e[5]=j):j=e[5];const k=j;if(l.length===1){let t;e[6]!==i?(t=i?.icon?s.jsx("img",{src:i.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),e[6]=i,e[7]=t):t=e[7];const u=i?.title||"Workflows";let f;e[8]!==u?(f=s.jsx("span",{children:u}),e[8]=u,e[9]=f):f=e[9];let h;return e[10]!==t||e[11]!==f?(h=s.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[t,f]}),e[10]=t,e[11]=f,e[12]=h):h=e[12],h}let o;e[13]!==r?(o=()=>z(!r),e[13]=r,e[14]=o):o=e[14];let c;e[15]!==i?(c=i?.icon?s.jsx("img",{src:i.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),e[15]=i,e[16]=c):c=e[16];const v=i?.title||"Select provider";let a;e[17]!==v?(a=s.jsx("span",{children:v}),e[17]=v,e[18]=a):a=e[18];let b;e[19]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(_,{size:14}),e[19]=b):b=e[19];let d;e[20]!==o||e[21]!==c||e[22]!==a?(d=s.jsxs("button",{type:"button",onClick:o,className:"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-md border border-border bg-background hover:bg-accent transition-colors",children:[c,a,b]}),e[20]=o,e[21]=c,e[22]=a,e[23]=d):d=e[23];let m;e[24]!==l||e[25]!==r||e[26]!==N||e[27]!==n?(m=r&&s.jsx("div",{className:"absolute left-0 top-full mt-1 z-50 min-w-48 rounded-md border border-border bg-popover p-1 shadow-md",children:l.map(t=>s.jsxs("button",{type:"button",onClick:()=>{N(t.id),z(!1)},className:"flex items-center gap-2 w-full px-2 py-1.5 text-sm rounded-sm hover:bg-accent transition-colors",children:[t.icon?s.jsx("img",{src:t.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),s.jsx("span",{className:"flex-1 text-left",children:t.title}),t.id===n&&s.jsx(R,{size:14,className:"text-primary"})]},t.id))}),e[24]=l,e[25]=r,e[26]=N,e[27]=n,e[28]=m):m=e[28];let g;return e[29]!==d||e[30]!==m?(g=s.jsxs("div",{className:"relative",ref:C,onBlur:k,children:[d,m]}),e[29]=d,e[30]=m,e[31]=g):g=e[31],g}function O(x){const e=S.c(2);let l;return e[0]!==x?(l=s.jsx(E,{...x}),e[0]=x,e[1]=l):l=e[1],l}export{O as default};
1
+ import{e as S,j as s,r as w,$ as y}from"./index-Bf4UxK2Z.js";import{i as R}from"./Check-DKPiDw0v.js";import{t as _}from"./ChevronDown-C2svK15b.js";function E(x){const e=S.c(32),{connections:l,selectedConnectionId:n,onConnectionChange:N}=x,[r,z]=w.useState(!1),C=w.useRef(null);let p;if(e[0]!==l||e[1]!==n){let t;e[3]!==n?(t=u=>u.id===n,e[3]=n,e[4]=t):t=e[4],p=l.find(t),e[0]=l,e[1]=n,e[2]=p}else p=e[2];const i=p;let j;e[5]===Symbol.for("react.memo_cache_sentinel")?(j=t=>{C.current?.contains(t.relatedTarget)||z(!1)},e[5]=j):j=e[5];const k=j;if(l.length===1){let t;e[6]!==i?(t=i?.icon?s.jsx("img",{src:i.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),e[6]=i,e[7]=t):t=e[7];const u=i?.title||"Workflows";let f;e[8]!==u?(f=s.jsx("span",{children:u}),e[8]=u,e[9]=f):f=e[9];let h;return e[10]!==t||e[11]!==f?(h=s.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[t,f]}),e[10]=t,e[11]=f,e[12]=h):h=e[12],h}let o;e[13]!==r?(o=()=>z(!r),e[13]=r,e[14]=o):o=e[14];let c;e[15]!==i?(c=i?.icon?s.jsx("img",{src:i.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),e[15]=i,e[16]=c):c=e[16];const v=i?.title||"Select provider";let a;e[17]!==v?(a=s.jsx("span",{children:v}),e[17]=v,e[18]=a):a=e[18];let b;e[19]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(_,{size:14}),e[19]=b):b=e[19];let d;e[20]!==o||e[21]!==c||e[22]!==a?(d=s.jsxs("button",{type:"button",onClick:o,className:"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-md border border-border bg-background hover:bg-accent transition-colors",children:[c,a,b]}),e[20]=o,e[21]=c,e[22]=a,e[23]=d):d=e[23];let m;e[24]!==l||e[25]!==r||e[26]!==N||e[27]!==n?(m=r&&s.jsx("div",{className:"absolute left-0 top-full mt-1 z-50 min-w-48 rounded-md border border-border bg-popover p-1 shadow-md",children:l.map(t=>s.jsxs("button",{type:"button",onClick:()=>{N(t.id),z(!1)},className:"flex items-center gap-2 w-full px-2 py-1.5 text-sm rounded-sm hover:bg-accent transition-colors",children:[t.icon?s.jsx("img",{src:t.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),s.jsx("span",{className:"flex-1 text-left",children:t.title}),t.id===n&&s.jsx(R,{size:14,className:"text-primary"})]},t.id))}),e[24]=l,e[25]=r,e[26]=N,e[27]=n,e[28]=m):m=e[28];let g;return e[29]!==d||e[30]!==m?(g=s.jsxs("div",{className:"relative",ref:C,onBlur:k,children:[d,m]}),e[29]=d,e[30]=m,e[31]=g):g=e[31],g}function O(x){const e=S.c(2);let l;return e[0]!==x?(l=s.jsx(E,{...x}),e[0]=x,e[1]=l):l=e[1],l}export{O as default};
@@ -1 +1 @@
1
- import{r as B,e as D,j as s,p as X,f as Z,g as ee,d as te,b as ne,K as se,n as ie,O as le,l as oe,B as re}from"./index-C9UEm0aF.js";import{u as ae}from"./use-connection-BGdZGnmu.js";import{S as ce,u as ue,k as de}from"./constants-DG2sk_0H.js";import{a as me}from"./Settings02-Ca5SX90W.js";import{P as z}from"./index-guSlXYnQ.js";const ge=B.createContext(null);function F(i){const e=D.c(3),{value:h,children:m}=i,t=h;let l;return e[0]!==m||e[1]!==t?(l=s.jsx(ge.Provider,{value:t,children:m}),e[0]=m,e[1]=t,e[2]=l):l=e[2],l}B.createContext(null);function fe(i){return{id:i.id,title:i.title,icon:i.icon,description:i.description,app_name:i.app_name,app_id:i.app_id,tools:i.tools,metadata:i.metadata}}function _e(i){const e=D.c(60),{bindingName:h,renderEmptyState:m}=i,{org:t,project:l}=X(),k=Z();let j;e[0]===Symbol.for("react.memo_cache_sentinel")?(j={strict:!1},e[0]=j):j=e[0];const{org:T,taskId:w,pluginId:g}=ee(j);let I;e[1]===Symbol.for("react.memo_cache_sentinel")?(I={strict:!1},e[1]=I):I=e[1];const G=te(I).virtualmcpid;let P;e[2]!==h?(P={binding:h},e[2]=h,e[3]=P):P=e[3];const K=ae(P),{data:f}=ne.useSession();let _;e[4]!==t.id||e[5]!==t.slug?(_={connectionId:ce,orgId:t.id,orgSlug:t.slug},e[4]=t.id,e[5]=t.slug,e[6]=_):_=e[6];const O=ue(_);let x;e[7]!==g||e[8]!==l.id?(x=se.projectPluginConfig(l.id??"",g),e[7]=g,e[8]=l.id,e[9]=x):x=e[9];let p;e[10]!==g||e[11]!==l.id||e[12]!==O?(p=async()=>{const n=await O.callTool({name:"VIRTUAL_MCP_PLUGIN_CONFIG_GET",arguments:{virtualMcpId:l.id,pluginId:g}});return n.structuredContent??n},e[10]=g,e[11]=l.id,e[12]=O,e[13]=p):p=e[13];const U=!!l.id&&!!g;let v;e[14]!==x||e[15]!==p||e[16]!==U?(v={queryKey:x,queryFn:p,enabled:U},e[14]=x,e[15]=p,e[16]=U,e[17]=v):v=e[17];const{data:V,isLoading:Q}=ie(v),R=V?.config?.connectionId,C=R?K.find(n=>n.id===R):null,y=de({connectionId:C?.id,orgId:t.id,orgSlug:t.slug});let S;e[18]!==f?(S=f?.user?{user:{id:f.user.id,name:f.user.name,email:f.user.email,image:f.user.image}}:null,e[18]=f,e[19]=S):S=e[19];const a=S;let b;e[20]!==t.id||e[21]!==t.name||e[22]!==t.slug?(b={id:t.id,slug:t.slug,name:t.name},e[20]=t.id,e[21]=t.name,e[22]=t.slug,e[23]=b):b=e[23];const c=b;if(Q){let n;return e[24]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[s.jsx(oe,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."})]}),e[24]=n):n=e[24],n}if(K.length===0){let n;e[25]!==c||e[26]!==a?(n={connectionId:null,connection:null,toolCaller:null,org:c,session:a},e[25]=c,e[26]=a,e[27]=n):n=e[27];const u=n;let r;e[28]!==m?(r=m(),e[28]=m,e[29]=r):r=e[29];let o;e[30]!==r?(o=s.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:r}),e[30]=r,e[31]=o):o=e[31];let d;return e[32]!==u||e[33]!==o?(d=s.jsx(F,{value:u,children:o}),e[32]=u,e[33]=o,e[34]=d):d=e[34],d}if(!C){let n;e[35]!==c||e[36]!==a?(n={connectionId:null,connection:null,toolCaller:null,org:c,session:a},e[35]=c,e[36]=a,e[37]=n):n=e[37];const u=n;let r;e[38]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs("div",{className:"flex flex-col items-center gap-2 text-center max-w-md",children:[s.jsx(me,{size:48,className:"text-muted-foreground mb-2"}),s.jsx("h2",{className:"text-lg font-semibold",children:"Plugin Not Configured"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"This plugin requires a connection to be configured. Go to project settings to select which integration to use."})]}),e[38]=r):r=e[38];let o;e[39]!==k||e[40]!==t.slug||e[41]!==T||e[42]!==l.id||e[43]!==w||e[44]!==G?(o=s.jsxs("div",{className:"h-full flex flex-col items-center justify-center gap-4 p-8",children:[r,s.jsx(re,{onClick:()=>{const H=T??t.slug,J=G??l.id??"",W=w??crypto.randomUUID();k({to:"/$org/$taskId",params:{org:H,taskId:W},search:{virtualmcpid:J,main:"settings"}})},children:"Go to Project Settings"})]}),e[39]=k,e[40]=t.slug,e[41]=T,e[42]=l.id,e[43]=w,e[44]=G,e[45]=o):o=e[45];let d;return e[46]!==u||e[47]!==o?(d=s.jsx(F,{value:u,children:o}),e[46]=u,e[47]=o,e[48]=d):d=e[48],d}const Y=C.id,$=fe(C);let N;e[49]!==y?(N=(n,u)=>y?y.callTool({name:n,arguments:u}).then(xe):Promise.reject(new Error("MCP client is not available")),e[49]=y,e[50]=N):N=e[50];const q=N;let E;e[51]!==C||e[52]!==c||e[53]!==a||e[54]!==$||e[55]!==q?(E={connectionId:Y,connection:$,toolCaller:q,org:c,session:a},e[51]=C,e[52]=c,e[53]=a,e[54]=$,e[55]=q,e[56]=E):E=e[56];const A=E;let L;e[57]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(z,{children:s.jsx(z.Content,{children:s.jsx(le,{})})}),e[57]=L):L=e[57];let M;return e[58]!==A?(M=s.jsx(F,{value:A,children:L}),e[58]=A,e[59]=M):M=e[59],M}function xe(i){return i.structuredContent??i}export{_e as P};
1
+ import{r as B,e as D,j as s,p as X,f as Z,g as ee,d as te,b as ne,K as se,n as ie,O as le,l as oe,B as re}from"./index-Bf4UxK2Z.js";import{u as ae}from"./use-connection-BNmoIwQg.js";import{S as ce,u as ue,k as de}from"./constants-dLpaUsN8.js";import{a as me}from"./Settings02-CJ09Har8.js";import{P as z}from"./index-rkrd3EG7.js";const ge=B.createContext(null);function F(i){const e=D.c(3),{value:h,children:m}=i,t=h;let l;return e[0]!==m||e[1]!==t?(l=s.jsx(ge.Provider,{value:t,children:m}),e[0]=m,e[1]=t,e[2]=l):l=e[2],l}B.createContext(null);function fe(i){return{id:i.id,title:i.title,icon:i.icon,description:i.description,app_name:i.app_name,app_id:i.app_id,tools:i.tools,metadata:i.metadata}}function _e(i){const e=D.c(60),{bindingName:h,renderEmptyState:m}=i,{org:t,project:l}=X(),k=Z();let j;e[0]===Symbol.for("react.memo_cache_sentinel")?(j={strict:!1},e[0]=j):j=e[0];const{org:T,taskId:w,pluginId:g}=ee(j);let I;e[1]===Symbol.for("react.memo_cache_sentinel")?(I={strict:!1},e[1]=I):I=e[1];const G=te(I).virtualmcpid;let P;e[2]!==h?(P={binding:h},e[2]=h,e[3]=P):P=e[3];const K=ae(P),{data:f}=ne.useSession();let _;e[4]!==t.id||e[5]!==t.slug?(_={connectionId:ce,orgId:t.id,orgSlug:t.slug},e[4]=t.id,e[5]=t.slug,e[6]=_):_=e[6];const O=ue(_);let x;e[7]!==g||e[8]!==l.id?(x=se.projectPluginConfig(l.id??"",g),e[7]=g,e[8]=l.id,e[9]=x):x=e[9];let p;e[10]!==g||e[11]!==l.id||e[12]!==O?(p=async()=>{const n=await O.callTool({name:"VIRTUAL_MCP_PLUGIN_CONFIG_GET",arguments:{virtualMcpId:l.id,pluginId:g}});return n.structuredContent??n},e[10]=g,e[11]=l.id,e[12]=O,e[13]=p):p=e[13];const U=!!l.id&&!!g;let v;e[14]!==x||e[15]!==p||e[16]!==U?(v={queryKey:x,queryFn:p,enabled:U},e[14]=x,e[15]=p,e[16]=U,e[17]=v):v=e[17];const{data:V,isLoading:Q}=ie(v),R=V?.config?.connectionId,C=R?K.find(n=>n.id===R):null,y=de({connectionId:C?.id,orgId:t.id,orgSlug:t.slug});let S;e[18]!==f?(S=f?.user?{user:{id:f.user.id,name:f.user.name,email:f.user.email,image:f.user.image}}:null,e[18]=f,e[19]=S):S=e[19];const a=S;let b;e[20]!==t.id||e[21]!==t.name||e[22]!==t.slug?(b={id:t.id,slug:t.slug,name:t.name},e[20]=t.id,e[21]=t.name,e[22]=t.slug,e[23]=b):b=e[23];const c=b;if(Q){let n;return e[24]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[s.jsx(oe,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."})]}),e[24]=n):n=e[24],n}if(K.length===0){let n;e[25]!==c||e[26]!==a?(n={connectionId:null,connection:null,toolCaller:null,org:c,session:a},e[25]=c,e[26]=a,e[27]=n):n=e[27];const u=n;let r;e[28]!==m?(r=m(),e[28]=m,e[29]=r):r=e[29];let o;e[30]!==r?(o=s.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:r}),e[30]=r,e[31]=o):o=e[31];let d;return e[32]!==u||e[33]!==o?(d=s.jsx(F,{value:u,children:o}),e[32]=u,e[33]=o,e[34]=d):d=e[34],d}if(!C){let n;e[35]!==c||e[36]!==a?(n={connectionId:null,connection:null,toolCaller:null,org:c,session:a},e[35]=c,e[36]=a,e[37]=n):n=e[37];const u=n;let r;e[38]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs("div",{className:"flex flex-col items-center gap-2 text-center max-w-md",children:[s.jsx(me,{size:48,className:"text-muted-foreground mb-2"}),s.jsx("h2",{className:"text-lg font-semibold",children:"Plugin Not Configured"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"This plugin requires a connection to be configured. Go to project settings to select which integration to use."})]}),e[38]=r):r=e[38];let o;e[39]!==k||e[40]!==t.slug||e[41]!==T||e[42]!==l.id||e[43]!==w||e[44]!==G?(o=s.jsxs("div",{className:"h-full flex flex-col items-center justify-center gap-4 p-8",children:[r,s.jsx(re,{onClick:()=>{const H=T??t.slug,J=G??l.id??"",W=w??crypto.randomUUID();k({to:"/$org/$taskId",params:{org:H,taskId:W},search:{virtualmcpid:J,main:"settings"}})},children:"Go to Project Settings"})]}),e[39]=k,e[40]=t.slug,e[41]=T,e[42]=l.id,e[43]=w,e[44]=G,e[45]=o):o=e[45];let d;return e[46]!==u||e[47]!==o?(d=s.jsx(F,{value:u,children:o}),e[46]=u,e[47]=o,e[48]=d):d=e[48],d}const Y=C.id,$=fe(C);let N;e[49]!==y?(N=(n,u)=>y?y.callTool({name:n,arguments:u}).then(xe):Promise.reject(new Error("MCP client is not available")),e[49]=y,e[50]=N):N=e[50];const q=N;let E;e[51]!==C||e[52]!==c||e[53]!==a||e[54]!==$||e[55]!==q?(E={connectionId:Y,connection:$,toolCaller:q,org:c,session:a},e[51]=C,e[52]=c,e[53]=a,e[54]=$,e[55]=q,e[56]=E):E=e[56];const A=E;let L;e[57]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(z,{children:s.jsx(z.Content,{children:s.jsx(le,{})})}),e[57]=L):L=e[57];let M;return e[58]!==A?(M=s.jsx(F,{value:A,children:L}),e[58]=A,e[59]=M):M=e[59],M}function xe(i){return i.structuredContent??i}export{_e as P};
@@ -1 +1 @@
1
- import{r as i,aY as $,j as c,c8 as L,aZ as z,ba as A,a8 as _,a9 as g,c9 as j,a$ as b,ca as G,cb as w,cc as H,cd as K,af as Z,ce as U,cf as V,cg as W,ch as Y,ci as q,cj as B,e as R,c as J}from"./index-C9UEm0aF.js";var C="Popover",[E]=Z(C,[w]),P=w(),[Q,u]=E(C),N=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:a=!1}=t,p=P(e),l=i.useRef(null),[d,h]=i.useState(!1),[x,f]=$({prop:r,defaultProp:n??!1,onChange:s,caller:C});return c.jsx(L,{...p,children:c.jsx(Q,{scope:e,contentId:z(),triggerRef:l,open:x,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(m=>!m),[f]),hasCustomAnchor:d,onCustomAnchorAdd:i.useCallback(()=>h(!0),[]),onCustomAnchorRemove:i.useCallback(()=>h(!1),[]),modal:a,children:o})})};N.displayName=C;var F="PopoverAnchor",X=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(F,o),s=P(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:p}=n;return i.useEffect(()=>(a(),()=>p()),[a,p]),c.jsx(j,{...s,...r,ref:e})});X.displayName=F;var S="PopoverTrigger",y=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(S,o),s=P(o),a=A(e,n.triggerRef),p=c.jsx(_.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":I(n.open),...r,ref:a,onClick:g(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?p:c.jsx(j,{asChild:!0,...s,children:p})});y.displayName=S;var O="PopoverPortal",[ee,oe]=E(O,{forceMount:void 0}),D=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,s=u(O,e);return c.jsx(ee,{scope:e,forceMount:o,children:c.jsx(b,{present:o||s.open,children:c.jsx(G,{asChild:!0,container:n,children:r})})})};D.displayName=O;var v="PopoverContent",M=i.forwardRef((t,e)=>{const o=oe(v,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=u(v,t.__scopePopover);return c.jsx(b,{present:r||s.open,children:s.modal?c.jsx(re,{...n,ref:e}):c.jsx(ne,{...n,ref:e})})});M.displayName=v;var te=U("PopoverContent.RemoveScroll"),re=i.forwardRef((t,e)=>{const o=u(v,t.__scopePopover),r=i.useRef(null),n=A(e,r),s=i.useRef(!1);return i.useEffect(()=>{const a=r.current;if(a)return H(a)},[]),c.jsx(K,{as:te,allowPinchZoom:!0,children:c.jsx(T,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:g(t.onCloseAutoFocus,a=>{a.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:g(t.onPointerDownOutside,a=>{const p=a.detail.originalEvent,l=p.button===0&&p.ctrlKey===!0,d=p.button===2||l;s.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:g(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),ne=i.forwardRef((t,e)=>{const o=u(v,t.__scopePopover),r=i.useRef(!1),n=i.useRef(!1);return c.jsx(T,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const a=s.target;o.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),T=i.forwardRef((t,e)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:d,onInteractOutside:h,...x}=t,f=u(v,o),m=P(o);return V(),c.jsx(W,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(Y,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:d,onDismiss:()=>f.onOpenChange(!1),children:c.jsx(q,{"data-state":I(f.open),role:"dialog",id:f.contentId,...m,...x,ref:e,style:{...x.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),k="PopoverClose",se=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(k,o);return c.jsx(_.button,{type:"button",...r,ref:e,onClick:g(t.onClick,()=>n.onOpenChange(!1))})});se.displayName=k;var ae="PopoverArrow",ce=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(o);return c.jsx(B,{...n,...r,ref:e})});ce.displayName=ae;function I(t){return t?"open":"closed"}var ie=N,pe=y,le=D,de=M;function fe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(ie,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}function ve(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(pe,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}function ge(t){const e=R.c(12);let o,r,n,s;e[0]!==t?({className:o,align:n,sideOffset:s,...r}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=s):(o=e[1],r=e[2],n=e[3],s=e[4]);const a=n===void 0?"center":n,p=s===void 0?4:s;let l;e[5]!==o?(l=J("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-lg overflow-hidden border p-4 shadow-md outline-hidden",o),e[5]=o,e[6]=l):l=e[6];let d;return e[7]!==a||e[8]!==r||e[9]!==p||e[10]!==l?(d=c.jsx(le,{children:c.jsx(de,{"data-slot":"popover-content",align:a,sideOffset:p,className:l,...r})}),e[7]=a,e[8]=r,e[9]=p,e[10]=l,e[11]=d):d=e[11],d}export{ve as P,ge as a,fe as b};
1
+ import{r as i,aY as $,j as c,c8 as L,aZ as z,ba as A,a8 as _,a9 as g,c9 as j,a$ as b,ca as G,cb as w,cc as H,cd as K,af as Z,ce as U,cf as V,cg as W,ch as Y,ci as q,cj as B,e as R,c as J}from"./index-Bf4UxK2Z.js";var C="Popover",[E]=Z(C,[w]),P=w(),[Q,u]=E(C),N=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:a=!1}=t,p=P(e),l=i.useRef(null),[d,h]=i.useState(!1),[x,f]=$({prop:r,defaultProp:n??!1,onChange:s,caller:C});return c.jsx(L,{...p,children:c.jsx(Q,{scope:e,contentId:z(),triggerRef:l,open:x,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(m=>!m),[f]),hasCustomAnchor:d,onCustomAnchorAdd:i.useCallback(()=>h(!0),[]),onCustomAnchorRemove:i.useCallback(()=>h(!1),[]),modal:a,children:o})})};N.displayName=C;var F="PopoverAnchor",X=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(F,o),s=P(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:p}=n;return i.useEffect(()=>(a(),()=>p()),[a,p]),c.jsx(j,{...s,...r,ref:e})});X.displayName=F;var S="PopoverTrigger",y=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(S,o),s=P(o),a=A(e,n.triggerRef),p=c.jsx(_.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":I(n.open),...r,ref:a,onClick:g(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?p:c.jsx(j,{asChild:!0,...s,children:p})});y.displayName=S;var O="PopoverPortal",[ee,oe]=E(O,{forceMount:void 0}),D=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,s=u(O,e);return c.jsx(ee,{scope:e,forceMount:o,children:c.jsx(b,{present:o||s.open,children:c.jsx(G,{asChild:!0,container:n,children:r})})})};D.displayName=O;var v="PopoverContent",M=i.forwardRef((t,e)=>{const o=oe(v,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=u(v,t.__scopePopover);return c.jsx(b,{present:r||s.open,children:s.modal?c.jsx(re,{...n,ref:e}):c.jsx(ne,{...n,ref:e})})});M.displayName=v;var te=U("PopoverContent.RemoveScroll"),re=i.forwardRef((t,e)=>{const o=u(v,t.__scopePopover),r=i.useRef(null),n=A(e,r),s=i.useRef(!1);return i.useEffect(()=>{const a=r.current;if(a)return H(a)},[]),c.jsx(K,{as:te,allowPinchZoom:!0,children:c.jsx(T,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:g(t.onCloseAutoFocus,a=>{a.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:g(t.onPointerDownOutside,a=>{const p=a.detail.originalEvent,l=p.button===0&&p.ctrlKey===!0,d=p.button===2||l;s.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:g(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),ne=i.forwardRef((t,e)=>{const o=u(v,t.__scopePopover),r=i.useRef(!1),n=i.useRef(!1);return c.jsx(T,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const a=s.target;o.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),T=i.forwardRef((t,e)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:d,onInteractOutside:h,...x}=t,f=u(v,o),m=P(o);return V(),c.jsx(W,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(Y,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:d,onDismiss:()=>f.onOpenChange(!1),children:c.jsx(q,{"data-state":I(f.open),role:"dialog",id:f.contentId,...m,...x,ref:e,style:{...x.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),k="PopoverClose",se=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(k,o);return c.jsx(_.button,{type:"button",...r,ref:e,onClick:g(t.onClick,()=>n.onOpenChange(!1))})});se.displayName=k;var ae="PopoverArrow",ce=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(o);return c.jsx(B,{...n,...r,ref:e})});ce.displayName=ae;function I(t){return t?"open":"closed"}var ie=N,pe=y,le=D,de=M;function fe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(ie,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}function ve(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(pe,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}function ge(t){const e=R.c(12);let o,r,n,s;e[0]!==t?({className:o,align:n,sideOffset:s,...r}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=s):(o=e[1],r=e[2],n=e[3],s=e[4]);const a=n===void 0?"center":n,p=s===void 0?4:s;let l;e[5]!==o?(l=J("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-lg overflow-hidden border p-4 shadow-md outline-hidden",o),e[5]=o,e[6]=l):l=e[6];let d;return e[7]!==a||e[8]!==r||e[9]!==p||e[10]!==l?(d=c.jsx(le,{children:c.jsx(de,{"data-slot":"popover-content",align:a,sideOffset:p,className:l,...r})}),e[7]=a,e[8]=r,e[9]=p,e[10]=l,e[11]=d):d=e[11],d}export{ve as P,ge as a,fe as b};
@@ -1 +1 @@
1
- import{e as k,j as o,b as L,r as T,D as B,C as G,R as $,t as b,o as _}from"./index-C9UEm0aF.js";import{P as E}from"./index-guSlXYnQ.js";import{A as q}from"./avatar-Ds0wPNKF.js";import{S as z}from"./switch-_JN6WXfk.js";import{S as H,a as Y,d as V,c as K}from"./select-B4d2U3-e.js";import{T as M,a as R}from"./toggle-group-fa9ptW_Z.js";import{I as O}from"./input-Cdi9gxjc.js";import{i as J}from"./Monitor01-CeCWg7Jm.js";import{n as Q,a as W}from"./Sun-JMAHaccL.js";import{i as X}from"./Play-Y01bx8MI.js";import{u as Z}from"./use-debounced-autosave-BY5sGeW6.js";import{p as ee,q as te}from"./question-004-sINsf4GQ.js";import"./index-R7WmRLsq.js";import{d as oe,S as D,a as F,b as j}from"./settings-section-Dk6rz76H.js";import"./sidebar-CGPsmcjg.js";import"./LayoutLeft-msnP7LxF.js";import"./tooltip-CaQjUma3.js";import"./X-DDsITeaO.js";import"./User01-Bb_7ado6.js";import"./Check-CgJkW5mO.js";import"./ChevronDown-C6CmTT2m.js";import"./ChevronUp-DYBcJQJI.js";import"./card-mSB2lAWB.js";import"./ArrowUpRight-BG1qVEu5.js";function ie(e){const t=k.c(13),{value:i,name:c,isUpdating:s,onUpload:l}=e,n=T.useRef(null);let f;t[0]!==l?(f=S=>{const g=S.target.files?.[0];if(!g)return;if(g.size>2097152){_.error("Image must be smaller than 2MB");return}const x=new FileReader;x.onerror=se,x.onloadend=()=>{x.result&&l(x.result),n.current&&(n.current.value="")},x.readAsDataURL(g)},t[0]=l,t[1]=f):f=t[1];const m=f;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u=()=>n.current?.click(),t[2]=u):u=t[2];let r;t[3]!==m||t[4]!==s?(r=o.jsx("input",{ref:n,type:"file",accept:"image/*",onChange:m,className:"hidden",disabled:s}),t[3]=m,t[4]=s,t[5]=r):r=t[5];const a=c??"U";let d;t[6]!==a||t[7]!==i?(d=o.jsx(q,{url:i,fallback:a,shape:"circle",size:"base"}),t[6]=a,t[7]=i,t[8]=d):d=t[8];let h;return t[9]!==s||t[10]!==r||t[11]!==d?(h=o.jsxs("button",{type:"button",onClick:u,disabled:s,className:"rounded-full overflow-hidden hover:ring-2 hover:ring-border transition-all disabled:opacity-50","aria-label":"Upload profile picture",children:[r,d]}),t[9]=s,t[10]=r,t[11]=d,t[12]=h):h=t[12],h}function se(){return _.error("Failed to read image")}function ne(){const{data:e,isPending:t}=L.useSession(),i=e?.user,c=i?.image,[s,l]=T.useState(!1),n=B({values:{name:i?.name??""}}),{schedule:f,flush:m}=Z({save:async()=>{const r=n.control._formState.dirtyFields;if(Object.keys(r).length===0)return;const a=n.getValues(),d=n.control._defaultValues;n.reset(a,{keepValues:!0});try{await L.updateUser({name:a.name}),b("profile_updated",{fields:["name"]}),_.success("Profile updated successfully")}catch{n.reset(d,{keepValues:!0}),_.error("Failed to update profile")}}}),u=async r=>{l(!0);try{await L.updateUser({image:r}),b("profile_updated",{fields:["image"]}),_.success("Profile picture updated")}catch{_.error("Failed to update profile picture")}finally{l(!1)}};return t?null:o.jsx(D,{children:o.jsxs(F,{children:[o.jsx(j,{title:"Avatar",description:"Click to upload a new picture",action:o.jsx(ie,{value:c,name:i?.name,isUpdating:s,onUpload:u})}),o.jsx(j,{title:"Display name",action:o.jsx(G,{control:n.control,name:"name",render:({field:r})=>o.jsx(O,{id:"display-name",...r,onChange:a=>{r.onChange(a),f()},onBlur:()=>{r.onBlur(),m()},onKeyDown:a=>{a.key==="Enter"&&m()},placeholder:"Your name",className:"w-[280px]"})})}),o.jsx(j,{title:"Email",action:o.jsx("span",{className:"text-sm text-muted-foreground",children:i?.email})})]})})}function re(){const e=k.c(48),[t,i]=$();let c;e[0]!==i?(c=async p=>{if(p&&await Notification.requestPermission()!=="granted"){b("preferences_notifications_permission_denied"),_.error("Notifications denied. Please enable them in your browser settings."),i(de);return}b("preferences_notifications_toggled",{enabled:p}),i(v=>({...v,enableNotifications:p}))},e[0]=i,e[1]=c):c=e[1];const s=c;let l;e[2]!==i?(l=p=>{p&&(b("preferences_theme_changed",{to_value:p}),i(v=>({...v,theme:p})))},e[2]=i,e[3]=l):l=e[3];let n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(R,{value:"light","aria-label":"Light theme",children:o.jsx(Q,{size:14})}),e[4]=n):n=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsx(R,{value:"dark","aria-label":"Dark theme",children:o.jsx(W,{size:14})}),e[5]=f):f=e[5];let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(R,{value:"system","aria-label":"System theme",children:o.jsx(J,{size:14})}),e[6]=m):m=e[6];let u;e[7]!==t.theme||e[8]!==l?(u=o.jsx(j,{title:"Theme",description:"Your preferred color scheme.",action:o.jsxs(M,{type:"single",size:"sm",variant:"outline",value:t.theme,onValueChange:l,children:[n,f,m]})}),e[7]=t.theme,e[8]=l,e[9]=u):u=e[9];let r;e[10]!==s||e[11]!==t.enableNotifications?(r=typeof Notification<"u"?()=>s(!t.enableNotifications):void 0,e[10]=s,e[11]=t.enableNotifications,e[12]=r):r=e[12];let a;e[13]!==s||e[14]!==t.enableNotifications?(a=o.jsx(z,{disabled:typeof Notification>"u",checked:t.enableNotifications,onCheckedChange:s}),e[13]=s,e[14]=t.enableNotifications,e[15]=a):a=e[15];let d;e[16]!==r||e[17]!==a?(d=o.jsx(j,{title:"Notifications",description:"Receive browser notifications for important events.",onClick:r,action:a}),e[16]=r,e[17]=a,e[18]=d):d=e[18];let h;e[19]!==t.enableSounds||e[20]!==i?(h=()=>{b("preferences_sounds_toggled",{enabled:!t.enableSounds}),i(ce)},e[19]=t.enableSounds,e[20]=i,e[21]=h):h=e[21];let S;e[22]===Symbol.for("react.memo_cache_sentinel")?(S=o.jsx("button",{type:"button","aria-label":"Preview notification sound",onClick:le,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:o.jsx(X,{size:11})}),e[22]=S):S=e[22];let g;e[23]!==i?(g=p=>{b("preferences_sounds_toggled",{enabled:p}),i(v=>({...v,enableSounds:p}))},e[23]=i,e[24]=g):g=e[24];let x;e[25]!==t.enableSounds||e[26]!==g?(x=o.jsxs("div",{className:"flex items-center gap-2",children:[S,o.jsx(z,{checked:t.enableSounds,onCheckedChange:g})]}),e[25]=t.enableSounds,e[26]=g,e[27]=x):x=e[27];let y;e[28]!==x||e[29]!==h?(y=o.jsx(j,{title:"Sounds",description:"Play sounds for agent actions and notifications.",onClick:h,action:x}),e[28]=x,e[29]=h,e[30]=y):y=e[30];let N;e[31]!==i?(N=p=>{b("preferences_tool_approval_changed",{to_value:p}),i(v=>({...v,toolApprovalLevel:p}))},e[31]=i,e[32]=N):N=e[32];let C;e[33]!==t.toolApprovalLevel?(C={readonly:"Ask before edit",auto:"Auto approve"}[t.toolApprovalLevel]??"Ask before edit",e[33]=t.toolApprovalLevel,e[34]=C):C=e[34];let A;e[35]!==C?(A=o.jsx(Y,{className:"w-36 h-7 text-xs",children:o.jsx("span",{children:C})}),e[35]=C,e[36]=A):A=e[36];let w;e[37]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx(V,{value:"readonly",textValue:"Ask before edit",children:o.jsxs("div",{className:"flex flex-col gap-0.5",children:[o.jsx("span",{className:"font-medium",children:"Ask before edit"}),o.jsx("span",{className:"text-xs text-muted-foreground",children:"Auto-approve read-only tools"})]})}),e[37]=w):w=e[37];let U;e[38]===Symbol.for("react.memo_cache_sentinel")?(U=o.jsxs(K,{children:[w,o.jsx(V,{value:"auto",textValue:"Auto approve",children:o.jsxs("div",{className:"flex flex-col gap-0.5",children:[o.jsx("span",{className:"font-medium",children:"Auto approve"}),o.jsx("span",{className:"text-xs text-muted-foreground",children:"Execute all without approval"})]})})]}),e[38]=U):U=e[38];let P;e[39]!==t.toolApprovalLevel||e[40]!==N||e[41]!==A?(P=o.jsx(j,{title:"Tool Approval",description:"Control how tools are approved before execution.",action:o.jsxs(H,{value:t.toolApprovalLevel,onValueChange:N,children:[A,U]})}),e[39]=t.toolApprovalLevel,e[40]=N,e[41]=A,e[42]=P):P=e[42];let I;return e[43]!==y||e[44]!==P||e[45]!==u||e[46]!==d?(I=o.jsx(D,{title:"Preferences",children:o.jsxs(F,{children:[u,d,y,P]})}),e[43]=y,e[44]=P,e[45]=u,e[46]=d,e[47]=I):I=e[47],I}function le(){b("preferences_sounds_previewed"),ee(te.dataUri).catch(ae)}function ae(){}function ce(e){return{...e,enableSounds:!e.enableSounds}}function de(e){return{...e,enableNotifications:!1}}function fe(){const e=k.c(11),[t,i]=$();let c;e[0]!==t.experimental_vibecode||e[1]!==i?(c=()=>{b("preferences_experimental_vibecode_toggled",{enabled:!t.experimental_vibecode}),i(me)},e[0]=t.experimental_vibecode,e[1]=i,e[2]=c):c=e[2];let s;e[3]!==i?(s=f=>{b("preferences_experimental_vibecode_toggled",{enabled:f}),i(m=>({...m,experimental_vibecode:f}))},e[3]=i,e[4]=s):s=e[4];let l;e[5]!==t.experimental_vibecode||e[6]!==s?(l=o.jsx(z,{checked:t.experimental_vibecode,onCheckedChange:s}),e[5]=t.experimental_vibecode,e[6]=s,e[7]=l):l=e[7];let n;return e[8]!==c||e[9]!==l?(n=o.jsx(D,{title:"Experimental",children:o.jsx(F,{children:o.jsx(j,{title:"Import from GitHub",description:"Enable importing agents from GitHub repositories.",onClick:c,action:l})})}),e[8]=c,e[9]=l,e[10]=n):n=e[10],n}function me(e){return{...e,experimental_vibecode:!e.experimental_vibecode}}function ue(){const e=k.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=o.jsx(E,{children:o.jsx(E.Content,{children:o.jsx(E.Body,{children:o.jsxs(oe,{children:[o.jsx(E.Title,{children:"Profile & Preferences"}),o.jsx(ne,{}),o.jsx(re,{}),o.jsx(fe,{})]})})})}),e[0]=t):t=e[0],t}function Ve(){const e=k.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=o.jsx(ue,{}),e[0]=t):t=e[0],t}export{Ve as default};
1
+ import{e as k,j as o,b as L,r as T,D as B,C as G,R as $,t as b,o as _}from"./index-Bf4UxK2Z.js";import{P as E}from"./index-rkrd3EG7.js";import{A as q}from"./avatar-B8vNPMYL.js";import{S as z}from"./switch-BGE9cJht.js";import{S as H,a as Y,d as V,c as K}from"./select-CuHr5fXM.js";import{T as M,a as R}from"./toggle-group-DnWWdySD.js";import{I as O}from"./input-D3wLBcw1.js";import{i as J}from"./Monitor01-CE0kuy60.js";import{n as Q,a as W}from"./Sun-GgIgazyF.js";import{i as X}from"./Play-DfLpvTAf.js";import{u as Z}from"./use-debounced-autosave-BBwvvwih.js";import{p as ee,q as te}from"./question-004-sINsf4GQ.js";import"./index-Dql3mibq.js";import{d as oe,S as D,a as F,b as j}from"./settings-section-DiHCwxw2.js";import"./sidebar-B_4prYx4.js";import"./LayoutLeft-PSosyh8W.js";import"./tooltip-DM9palzE.js";import"./X-KaP-9Zgp.js";import"./User01-CUr_vH6R.js";import"./Check-DKPiDw0v.js";import"./ChevronDown-C2svK15b.js";import"./ChevronUp-CVfkcqtl.js";import"./card-BAPVTNeM.js";import"./ArrowUpRight-Bmxv_5f2.js";function ie(e){const t=k.c(13),{value:i,name:c,isUpdating:s,onUpload:l}=e,n=T.useRef(null);let f;t[0]!==l?(f=S=>{const g=S.target.files?.[0];if(!g)return;if(g.size>2097152){_.error("Image must be smaller than 2MB");return}const x=new FileReader;x.onerror=se,x.onloadend=()=>{x.result&&l(x.result),n.current&&(n.current.value="")},x.readAsDataURL(g)},t[0]=l,t[1]=f):f=t[1];const m=f;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u=()=>n.current?.click(),t[2]=u):u=t[2];let r;t[3]!==m||t[4]!==s?(r=o.jsx("input",{ref:n,type:"file",accept:"image/*",onChange:m,className:"hidden",disabled:s}),t[3]=m,t[4]=s,t[5]=r):r=t[5];const a=c??"U";let d;t[6]!==a||t[7]!==i?(d=o.jsx(q,{url:i,fallback:a,shape:"circle",size:"base"}),t[6]=a,t[7]=i,t[8]=d):d=t[8];let h;return t[9]!==s||t[10]!==r||t[11]!==d?(h=o.jsxs("button",{type:"button",onClick:u,disabled:s,className:"rounded-full overflow-hidden hover:ring-2 hover:ring-border transition-all disabled:opacity-50","aria-label":"Upload profile picture",children:[r,d]}),t[9]=s,t[10]=r,t[11]=d,t[12]=h):h=t[12],h}function se(){return _.error("Failed to read image")}function ne(){const{data:e,isPending:t}=L.useSession(),i=e?.user,c=i?.image,[s,l]=T.useState(!1),n=B({values:{name:i?.name??""}}),{schedule:f,flush:m}=Z({save:async()=>{const r=n.control._formState.dirtyFields;if(Object.keys(r).length===0)return;const a=n.getValues(),d=n.control._defaultValues;n.reset(a,{keepValues:!0});try{await L.updateUser({name:a.name}),b("profile_updated",{fields:["name"]}),_.success("Profile updated successfully")}catch{n.reset(d,{keepValues:!0}),_.error("Failed to update profile")}}}),u=async r=>{l(!0);try{await L.updateUser({image:r}),b("profile_updated",{fields:["image"]}),_.success("Profile picture updated")}catch{_.error("Failed to update profile picture")}finally{l(!1)}};return t?null:o.jsx(D,{children:o.jsxs(F,{children:[o.jsx(j,{title:"Avatar",description:"Click to upload a new picture",action:o.jsx(ie,{value:c,name:i?.name,isUpdating:s,onUpload:u})}),o.jsx(j,{title:"Display name",action:o.jsx(G,{control:n.control,name:"name",render:({field:r})=>o.jsx(O,{id:"display-name",...r,onChange:a=>{r.onChange(a),f()},onBlur:()=>{r.onBlur(),m()},onKeyDown:a=>{a.key==="Enter"&&m()},placeholder:"Your name",className:"w-[280px]"})})}),o.jsx(j,{title:"Email",action:o.jsx("span",{className:"text-sm text-muted-foreground",children:i?.email})})]})})}function re(){const e=k.c(48),[t,i]=$();let c;e[0]!==i?(c=async p=>{if(p&&await Notification.requestPermission()!=="granted"){b("preferences_notifications_permission_denied"),_.error("Notifications denied. Please enable them in your browser settings."),i(de);return}b("preferences_notifications_toggled",{enabled:p}),i(v=>({...v,enableNotifications:p}))},e[0]=i,e[1]=c):c=e[1];const s=c;let l;e[2]!==i?(l=p=>{p&&(b("preferences_theme_changed",{to_value:p}),i(v=>({...v,theme:p})))},e[2]=i,e[3]=l):l=e[3];let n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(R,{value:"light","aria-label":"Light theme",children:o.jsx(Q,{size:14})}),e[4]=n):n=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsx(R,{value:"dark","aria-label":"Dark theme",children:o.jsx(W,{size:14})}),e[5]=f):f=e[5];let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(R,{value:"system","aria-label":"System theme",children:o.jsx(J,{size:14})}),e[6]=m):m=e[6];let u;e[7]!==t.theme||e[8]!==l?(u=o.jsx(j,{title:"Theme",description:"Your preferred color scheme.",action:o.jsxs(M,{type:"single",size:"sm",variant:"outline",value:t.theme,onValueChange:l,children:[n,f,m]})}),e[7]=t.theme,e[8]=l,e[9]=u):u=e[9];let r;e[10]!==s||e[11]!==t.enableNotifications?(r=typeof Notification<"u"?()=>s(!t.enableNotifications):void 0,e[10]=s,e[11]=t.enableNotifications,e[12]=r):r=e[12];let a;e[13]!==s||e[14]!==t.enableNotifications?(a=o.jsx(z,{disabled:typeof Notification>"u",checked:t.enableNotifications,onCheckedChange:s}),e[13]=s,e[14]=t.enableNotifications,e[15]=a):a=e[15];let d;e[16]!==r||e[17]!==a?(d=o.jsx(j,{title:"Notifications",description:"Receive browser notifications for important events.",onClick:r,action:a}),e[16]=r,e[17]=a,e[18]=d):d=e[18];let h;e[19]!==t.enableSounds||e[20]!==i?(h=()=>{b("preferences_sounds_toggled",{enabled:!t.enableSounds}),i(ce)},e[19]=t.enableSounds,e[20]=i,e[21]=h):h=e[21];let S;e[22]===Symbol.for("react.memo_cache_sentinel")?(S=o.jsx("button",{type:"button","aria-label":"Preview notification sound",onClick:le,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:o.jsx(X,{size:11})}),e[22]=S):S=e[22];let g;e[23]!==i?(g=p=>{b("preferences_sounds_toggled",{enabled:p}),i(v=>({...v,enableSounds:p}))},e[23]=i,e[24]=g):g=e[24];let x;e[25]!==t.enableSounds||e[26]!==g?(x=o.jsxs("div",{className:"flex items-center gap-2",children:[S,o.jsx(z,{checked:t.enableSounds,onCheckedChange:g})]}),e[25]=t.enableSounds,e[26]=g,e[27]=x):x=e[27];let y;e[28]!==x||e[29]!==h?(y=o.jsx(j,{title:"Sounds",description:"Play sounds for agent actions and notifications.",onClick:h,action:x}),e[28]=x,e[29]=h,e[30]=y):y=e[30];let N;e[31]!==i?(N=p=>{b("preferences_tool_approval_changed",{to_value:p}),i(v=>({...v,toolApprovalLevel:p}))},e[31]=i,e[32]=N):N=e[32];let C;e[33]!==t.toolApprovalLevel?(C={readonly:"Ask before edit",auto:"Auto approve"}[t.toolApprovalLevel]??"Ask before edit",e[33]=t.toolApprovalLevel,e[34]=C):C=e[34];let A;e[35]!==C?(A=o.jsx(Y,{className:"w-36 h-7 text-xs",children:o.jsx("span",{children:C})}),e[35]=C,e[36]=A):A=e[36];let w;e[37]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx(V,{value:"readonly",textValue:"Ask before edit",children:o.jsxs("div",{className:"flex flex-col gap-0.5",children:[o.jsx("span",{className:"font-medium",children:"Ask before edit"}),o.jsx("span",{className:"text-xs text-muted-foreground",children:"Auto-approve read-only tools"})]})}),e[37]=w):w=e[37];let U;e[38]===Symbol.for("react.memo_cache_sentinel")?(U=o.jsxs(K,{children:[w,o.jsx(V,{value:"auto",textValue:"Auto approve",children:o.jsxs("div",{className:"flex flex-col gap-0.5",children:[o.jsx("span",{className:"font-medium",children:"Auto approve"}),o.jsx("span",{className:"text-xs text-muted-foreground",children:"Execute all without approval"})]})})]}),e[38]=U):U=e[38];let P;e[39]!==t.toolApprovalLevel||e[40]!==N||e[41]!==A?(P=o.jsx(j,{title:"Tool Approval",description:"Control how tools are approved before execution.",action:o.jsxs(H,{value:t.toolApprovalLevel,onValueChange:N,children:[A,U]})}),e[39]=t.toolApprovalLevel,e[40]=N,e[41]=A,e[42]=P):P=e[42];let I;return e[43]!==y||e[44]!==P||e[45]!==u||e[46]!==d?(I=o.jsx(D,{title:"Preferences",children:o.jsxs(F,{children:[u,d,y,P]})}),e[43]=y,e[44]=P,e[45]=u,e[46]=d,e[47]=I):I=e[47],I}function le(){b("preferences_sounds_previewed"),ee(te.dataUri).catch(ae)}function ae(){}function ce(e){return{...e,enableSounds:!e.enableSounds}}function de(e){return{...e,enableNotifications:!1}}function fe(){const e=k.c(11),[t,i]=$();let c;e[0]!==t.experimental_vibecode||e[1]!==i?(c=()=>{b("preferences_experimental_vibecode_toggled",{enabled:!t.experimental_vibecode}),i(me)},e[0]=t.experimental_vibecode,e[1]=i,e[2]=c):c=e[2];let s;e[3]!==i?(s=f=>{b("preferences_experimental_vibecode_toggled",{enabled:f}),i(m=>({...m,experimental_vibecode:f}))},e[3]=i,e[4]=s):s=e[4];let l;e[5]!==t.experimental_vibecode||e[6]!==s?(l=o.jsx(z,{checked:t.experimental_vibecode,onCheckedChange:s}),e[5]=t.experimental_vibecode,e[6]=s,e[7]=l):l=e[7];let n;return e[8]!==c||e[9]!==l?(n=o.jsx(D,{title:"Experimental",children:o.jsx(F,{children:o.jsx(j,{title:"Import from GitHub",description:"Enable importing agents from GitHub repositories.",onClick:c,action:l})})}),e[8]=c,e[9]=l,e[10]=n):n=e[10],n}function me(e){return{...e,experimental_vibecode:!e.experimental_vibecode}}function ue(){const e=k.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=o.jsx(E,{children:o.jsx(E.Content,{children:o.jsx(E.Body,{children:o.jsxs(oe,{children:[o.jsx(E.Title,{children:"Profile & Preferences"}),o.jsx(ne,{}),o.jsx(re,{}),o.jsx(fe,{})]})})})}),e[0]=t):t=e[0],t}function Ve(){const e=k.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=o.jsx(ue,{}),e[0]=t):t=e[0],t}export{Ve as default};
@@ -1 +1 @@
1
- import{e as H,p as $,j}from"./index-C9UEm0aF.js";import{m as v,k as O,s as D}from"./pair-CeEq9T2O.js";import{u as L}from"./constants-DG2sk_0H.js";import{u as k,c as q}from"./use-mcp-tools-BDMB9XmW.js";import{c as B}from"./content-blocks-o63cs2vh.js";import{g as Y,M as G,b as E}from"./types-C4e-LRxV.js";import{u as V,b as z}from"./chat-context-DR6dQnLy.js";import{u as F}from"./shell-layout-C2Sdv8NG.js";import"./agent-icon-sU9yNgMj.js";import"./AlertCircle-DMn4ErF7.js";import"./Tool01-Ck4wzkil.js";import"./SearchLg-tmO6QRl-.js";import"./XClose-BfGe8XlD.js";import"./RefreshCcw01-STdDbh6L.js";import"./ArrowNarrowLeft-DRMMU-Rx.js";import"./XCircle-zMGNHwa8.js";import"./ArrowUpRight-BG1qVEu5.js";import"./ZapSquare-DbH77Z5v.js";import"./Building02-DXFrqtM4.js";import"./CheckCircle-BhQF3J-G.js";import"./Check-CgJkW5mO.js";import"./ChevronDown-C6CmTT2m.js";import"./ChevronRight-9ST8kRHp.js";import"./ChevronUp-DYBcJQJI.js";import"./DotsVertical-BWVeD_Nu.js";import"./Container-DvJcXzPK.js";import"./Star01-B7Wf0BA4.js";import"./Palette-CTxrzTV6.js";import"./Key01-CToqdwOF.js";import"./LayoutLeft-msnP7LxF.js";import"./LinkExternal01-BYFbxPa2.js";import"./Lock01-Br965pCK.js";import"./Monitor01-CeCWg7Jm.js";import"./Sun-JMAHaccL.js";import"./Play-Y01bx8MI.js";import"./Plus-DZMvWlgN.js";import"./SearchMd-i7Gp8R_i.js";import"./Settings02-Ca5SX90W.js";import"./Shield01-56gTI-65.js";import"./Trash01-DZil92Jh.js";import"./Upload01-B0HbOxqP.js";import"./User01-Bb_7ado6.js";import"./Users01-CCKc6ep2.js";import"./Users03-9Msw3sAO.js";import"./X-DDsITeaO.js";import"./Zap-D1hcdQQV.js";import"./index-C5OHYX2D.js";import"./use-copy-RYe2lXz3.js";import"./tooltip-CaQjUma3.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./dialog-xU6O08Hz.js";import"./integration-icon-DcWsEICc.js";import"./use-virtual-mcp-B0ez_suv.js";import"./use-collections-DNvmDnbN.js";import"./hooks-C0RpcvT-.js";import"./decopilot-sse-pool-BMdviN8X.js";import"./create-sse-subscription-CjI9SUTI.js";import"./use-ai-providers-C3VHCF8p.js";import"./use-organization-settings-DKdHITUe.js";import"./avatar-Ds0wPNKF.js";import"./required-auth-layout-BkADLVGr.js";import"./useRouterState-EoWY4nHO.js";import"./use-org-sso-B8VnAMoS.js";const J={};function K(S){const t=H.c(37),{client:r,resourceURI:g,tool:e,connectionId:n,orgId:a,args:c}=S,{sendMessage:u}=V(),{setAppContext:d,clearAppContext:o}=z(),{setChatOpen:f,openTab:s}=F(),m=`${n}:${e.name}`;let l;t[0]!==s?(l=h=>h==="inline"?(s("0"),"inline"):"fullscreen",t[0]=s,t[1]=l):l=t[1];const i=l,p=c??J;let T;t[2]!==r||t[3]!==e.name||t[4]!==p?(T={client:r,toolName:e.name,toolArguments:p},t[2]=r,t[3]=e.name,t[4]=p,t[5]=T):T=t[5];const{data:x}=q(T);let R;if(t[6]!==e._meta||t[7]!==e.name){const h=O(e._meta);R=D(e.name,h),t[6]=e._meta,t[7]=e.name,t[8]=R}else R=t[8];const U=R;let I;t[9]!==e.inputSchema?(I=e.inputSchema??{type:"object"},t[9]=e.inputSchema,t[10]=I):I=t[10];let N;t[11]!==U||t[12]!==I||t[13]!==e?(N={...e,name:U,inputSchema:I},t[11]=U,t[12]=I,t[13]=e,t[14]=N):N=t[14];const b=N;let _;t[15]!==u||t[16]!==f?(_=h=>{const w=B(h.content);w.content.length>0&&(f(!0),u({tiptapDoc:w}))},t[15]=u,t[16]=f,t[17]=_):_=t[17];const y=_;let C;t[18]!==b?(C={tool:b},t[18]=b,t[19]=C):C=t[19];let M;t[20]!==d||t[21]!==m?(M=h=>d(m,h),t[20]=d,t[21]=m,t[22]=M):M=t[22];let P;t[23]!==o||t[24]!==m?(P=()=>o(m),t[23]=o,t[24]=m,t[25]=P):P=t[25];let A;return t[26]!==r||t[27]!==y||t[28]!==i||t[29]!==a||t[30]!==g||t[31]!==C||t[32]!==M||t[33]!==P||t[34]!==p||t[35]!==x?(A=j.jsx(G,{resourceURI:g,orgId:a,toolInfo:C,toolInput:p,toolResult:x,displayMode:"fullscreen",minHeight:E.fullscreen.minHeight,maxHeight:E.fullscreen.maxHeight,client:r,onMessage:y,onUpdateModelContext:M,onTeardown:P,onRequestDisplayMode:i,className:"h-full"}),t[26]=r,t[27]=y,t[28]=i,t[29]=a,t[30]=g,t[31]=C,t[32]=M,t[33]=P,t[34]=p,t[35]=x,t[36]=A):A=t[36],A}function se(S){const t=H.c(20),{connectionId:r,toolName:g,args:e}=S,{org:n}=$();let a;t[0]!==r||t[1]!==n.id||t[2]!==n.slug?(a={connectionId:r,orgId:n.id,orgSlug:n.slug},t[0]=r,t[1]=n.id,t[2]=n.slug,t[3]=a):a=t[3];const c=L(a);let u;t[4]!==c?(u={client:c},t[4]=c,t[5]=u):u=t[5];const{data:d}=k(u);let o,f,s;t[6]!==g||t[7]!==d.tools?(o=v(decodeURIComponent(g)),s=d.tools.find(i=>i.name===o)??d.tools.find(i=>{const p=O(i._meta);if(!p)return!1;if(D(i.name,p)===o)return!0;const x=D(o,p);return x!==o&&i.name===x}),f=s?._meta?Y(s._meta):void 0,t[6]=g,t[7]=d.tools,t[8]=o,t[9]=f,t[10]=s):(o=t[8],f=t[9],s=t[10]);const m=f;if(!s||!m){let i;return t[11]!==o?(i=j.jsx("div",{className:"flex items-center justify-center h-full w-full",children:j.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',o,'" not found or has no UI']})}),t[11]=o,t[12]=i):i=t[12],i}let l;return t[13]!==e||t[14]!==c||t[15]!==r||t[16]!==n.id||t[17]!==m||t[18]!==s?(l=j.jsx(K,{client:c,resourceURI:m,tool:s,connectionId:r,orgId:n.id,args:e}),t[13]=e,t[14]=c,t[15]=r,t[16]=n.id,t[17]=m,t[18]=s,t[19]=l):l=t[19],l}export{se as AppViewContent};
1
+ import{e as H,p as $,j}from"./index-Bf4UxK2Z.js";import{m as v,k as O,s as D}from"./pair-BOolv6CG.js";import{u as L}from"./constants-dLpaUsN8.js";import{u as k,c as q}from"./use-mcp-tools-VZ9Hpxff.js";import{c as B}from"./content-blocks-o63cs2vh.js";import{g as Y,M as G,b as E}from"./types-BtPcm-7P.js";import{u as V,b as z}from"./chat-context-0IKLT4wq.js";import{u as F}from"./shell-layout-JnQ2O1U7.js";import"./agent-icon-DhO8qmda.js";import"./AlertCircle-B2eHj7e1.js";import"./Tool01-CIld76-5.js";import"./SearchLg-CWYSpRcF.js";import"./XClose-BTeq1oZe.js";import"./RefreshCcw01-B-Cq3kpB.js";import"./ArrowNarrowLeft-CxcqihTL.js";import"./XCircle-CmRYIXoV.js";import"./ArrowUpRight-Bmxv_5f2.js";import"./ZapSquare-BNz1wDNr.js";import"./Building02-DhlHp14j.js";import"./CheckCircle-BS-i9SgB.js";import"./Check-DKPiDw0v.js";import"./ChevronDown-C2svK15b.js";import"./ChevronRight-D_jXf5Kp.js";import"./ChevronUp-CVfkcqtl.js";import"./DotsVertical-C0edSuvc.js";import"./Container-BkK0DB__.js";import"./Star01-f02R5Lt3.js";import"./Palette-K4YZYTyg.js";import"./Key01-CRTO9Eqv.js";import"./LayoutLeft-PSosyh8W.js";import"./LinkExternal01-8dkTfrKr.js";import"./Lock01-D3HzAQHN.js";import"./Monitor01-CE0kuy60.js";import"./Sun-GgIgazyF.js";import"./Play-DfLpvTAf.js";import"./Plus-DUbqF6rK.js";import"./SearchMd-Dpur_ahX.js";import"./Settings02-CJ09Har8.js";import"./Shield01-CnFfMzTJ.js";import"./Trash01-cTgn14Wa.js";import"./Upload01-HhDlaYLd.js";import"./User01-CUr_vH6R.js";import"./Users01-DfpmcJ6n.js";import"./Users03-DFib9kg8.js";import"./X-KaP-9Zgp.js";import"./Zap-BuqS_qna.js";import"./index-CJ06re6J.js";import"./use-copy-D6zGnSRk.js";import"./tooltip-DM9palzE.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./dialog-DeF_jmhK.js";import"./integration-icon-CDsyJjsh.js";import"./use-virtual-mcp-CfSWiyjb.js";import"./use-collections-nufxZlf_.js";import"./hooks-CKWLlFdn.js";import"./decopilot-sse-pool-XfO9dGEQ.js";import"./create-sse-subscription-CjI9SUTI.js";import"./use-ai-providers-OUW6JMOp.js";import"./use-organization-settings-DsFVMR9y.js";import"./avatar-B8vNPMYL.js";import"./required-auth-layout-CA4fYSwK.js";import"./useRouterState-zGUMzA-3.js";import"./use-org-sso-ZXpwOerI.js";const J={};function K(S){const t=H.c(37),{client:r,resourceURI:g,tool:e,connectionId:n,orgId:a,args:c}=S,{sendMessage:u}=V(),{setAppContext:d,clearAppContext:o}=z(),{setChatOpen:f,openTab:s}=F(),m=`${n}:${e.name}`;let l;t[0]!==s?(l=h=>h==="inline"?(s("0"),"inline"):"fullscreen",t[0]=s,t[1]=l):l=t[1];const i=l,p=c??J;let T;t[2]!==r||t[3]!==e.name||t[4]!==p?(T={client:r,toolName:e.name,toolArguments:p},t[2]=r,t[3]=e.name,t[4]=p,t[5]=T):T=t[5];const{data:x}=q(T);let R;if(t[6]!==e._meta||t[7]!==e.name){const h=O(e._meta);R=D(e.name,h),t[6]=e._meta,t[7]=e.name,t[8]=R}else R=t[8];const U=R;let I;t[9]!==e.inputSchema?(I=e.inputSchema??{type:"object"},t[9]=e.inputSchema,t[10]=I):I=t[10];let N;t[11]!==U||t[12]!==I||t[13]!==e?(N={...e,name:U,inputSchema:I},t[11]=U,t[12]=I,t[13]=e,t[14]=N):N=t[14];const b=N;let _;t[15]!==u||t[16]!==f?(_=h=>{const w=B(h.content);w.content.length>0&&(f(!0),u({tiptapDoc:w}))},t[15]=u,t[16]=f,t[17]=_):_=t[17];const y=_;let C;t[18]!==b?(C={tool:b},t[18]=b,t[19]=C):C=t[19];let M;t[20]!==d||t[21]!==m?(M=h=>d(m,h),t[20]=d,t[21]=m,t[22]=M):M=t[22];let P;t[23]!==o||t[24]!==m?(P=()=>o(m),t[23]=o,t[24]=m,t[25]=P):P=t[25];let A;return t[26]!==r||t[27]!==y||t[28]!==i||t[29]!==a||t[30]!==g||t[31]!==C||t[32]!==M||t[33]!==P||t[34]!==p||t[35]!==x?(A=j.jsx(G,{resourceURI:g,orgId:a,toolInfo:C,toolInput:p,toolResult:x,displayMode:"fullscreen",minHeight:E.fullscreen.minHeight,maxHeight:E.fullscreen.maxHeight,client:r,onMessage:y,onUpdateModelContext:M,onTeardown:P,onRequestDisplayMode:i,className:"h-full"}),t[26]=r,t[27]=y,t[28]=i,t[29]=a,t[30]=g,t[31]=C,t[32]=M,t[33]=P,t[34]=p,t[35]=x,t[36]=A):A=t[36],A}function se(S){const t=H.c(20),{connectionId:r,toolName:g,args:e}=S,{org:n}=$();let a;t[0]!==r||t[1]!==n.id||t[2]!==n.slug?(a={connectionId:r,orgId:n.id,orgSlug:n.slug},t[0]=r,t[1]=n.id,t[2]=n.slug,t[3]=a):a=t[3];const c=L(a);let u;t[4]!==c?(u={client:c},t[4]=c,t[5]=u):u=t[5];const{data:d}=k(u);let o,f,s;t[6]!==g||t[7]!==d.tools?(o=v(decodeURIComponent(g)),s=d.tools.find(i=>i.name===o)??d.tools.find(i=>{const p=O(i._meta);if(!p)return!1;if(D(i.name,p)===o)return!0;const x=D(o,p);return x!==o&&i.name===x}),f=s?._meta?Y(s._meta):void 0,t[6]=g,t[7]=d.tools,t[8]=o,t[9]=f,t[10]=s):(o=t[8],f=t[9],s=t[10]);const m=f;if(!s||!m){let i;return t[11]!==o?(i=j.jsx("div",{className:"flex items-center justify-center h-full w-full",children:j.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',o,'" not found or has no UI']})}),t[11]=o,t[12]=i):i=t[12],i}let l;return t[13]!==e||t[14]!==c||t[15]!==r||t[16]!==n.id||t[17]!==m||t[18]!==s?(l=j.jsx(K,{client:c,resourceURI:m,tool:s,connectionId:r,orgId:n.id,args:e}),t[13]=e,t[14]=c,t[15]=r,t[16]=n.id,t[17]=m,t[18]=s,t[19]=l):l=t[19],l}export{se as AppViewContent};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CNpEHraq.js","assets/index-Bf4UxK2Z.js","assets/index-BtSYbEIC.css","assets/ArrowNarrowLeft-CxcqihTL.js","assets/CheckCircle-BS-i9SgB.js","assets/Container-BkK0DB__.js","assets/Settings02-CJ09Har8.js","assets/XCircle-CmRYIXoV.js","assets/constants-dLpaUsN8.js","assets/useInfiniteQuery-1PtmuLfG.js","assets/infiniteQueryObserver-D1AxhsFP.js","assets/badge--5VL1-K0.js","assets/input-D3wLBcw1.js","assets/dropdown-menu-roylZYWc.js","assets/Check-DKPiDw0v.js","assets/ChevronRight-D_jXf5Kp.js","assets/DotsVertical-C0edSuvc.js","assets/table-DgPM3Urg.js","assets/toggle-group-DnWWdySD.js","assets/use-view-mode-BLjEDO9D.js","assets/tooltip-DM9palzE.js","assets/SearchMd-Dpur_ahX.js","assets/dialog-DeF_jmhK.js","assets/X-KaP-9Zgp.js","assets/AlertCircle-B2eHj7e1.js","assets/Upload01-HhDlaYLd.js","assets/alert-dialog-6PLIDXks.js","assets/card-BAPVTNeM.js","assets/Trash01-cTgn14Wa.js","assets/label-e0eIq6aZ.js","assets/select-CuHr5fXM.js","assets/ChevronDown-C2svK15b.js","assets/ChevronUp-CVfkcqtl.js","assets/switch-BGE9cJht.js","assets/textarea-BF_TKrea.js","assets/RefreshCcw01-B-Cq3kpB.js","assets/checkbox-BQ4sRBrQ.js","assets/LinkExternal01-8dkTfrKr.js","assets/use-copy-D6zGnSRk.js","assets/Key01-CRTO9Eqv.js","assets/Plus-DUbqF6rK.js","assets/Play-DfLpvTAf.js"])))=>i.map(i=>d[i]);
2
+ import{e as a,j as t,r,l as i,_ as o}from"./index-Bf4UxK2Z.js";const n=r.lazy(()=>o(()=>import("./registry-layout-CNpEHraq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41])));function c(){const s=a.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(r.Suspense,{fallback:t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(i,{size:20,className:"animate-spin text-muted-foreground"})}),children:t.jsx(n,{})}),s[0]=e):e=s[0],e}export{c as default};
@@ -1,4 +1,4 @@
1
- import{e as Y,p as ie,n as Ie,z as ke,a as je,o as V,r as P,j as t,B as G,l as Le,c as Z,H as Fs,G as Bs}from"./index-C9UEm0aF.js";import{i as Qs}from"./ArrowNarrowLeft-DRMMU-Rx.js";import{i as qe}from"./CheckCircle-BhQF3J-G.js";import{n as Vs}from"./Container-DvJcXzPK.js";import{a as Gs}from"./Settings02-Ca5SX90W.js";import{n as Ks,a as ds,e as Jt,f as Ys,c as us,b as Hs,d as Ws,i as Js,t as Zs,g as Xs}from"./XCircle-zMGNHwa8.js";import{S as ce,u as oe,d as er}from"./constants-DG2sk_0H.js";import{u as ms}from"./useInfiniteQuery-ghEPKCL5.js";import{B as q}from"./badge-C2JMvH6Q.js";import{I as ae}from"./input-Cdi9gxjc.js";import{a as dt,c as Ce,D as ut,b as mt,j as Zt,k as Xt,i as tr}from"./dropdown-menu-37ioHY85.js";import{c as Mt,d as Et,a as Fe,e as ue,b as Dt,T as me}from"./table-Dcd3qce4.js";import{T as sr,a as es}from"./toggle-group-fa9ptW_Z.js";import{u as rr}from"./use-view-mode-CBIh242S.js";import{i as At}from"./DotsVertical-BWVeD_Nu.js";import{i as nr}from"./SearchMd-i7Gp8R_i.js";import{c as xt,d as ht,e as pt,D as ft,a as gt,b as jt}from"./dialog-xU6O08Hz.js";import{i as Ke}from"./AlertCircle-DMn4ErF7.js";import{i as ts}from"./Upload01-B0HbOxqP.js";import{c as Ye,b as He,d as We,f as Je,g as Ze,e as Xe,a as et,A as tt}from"./alert-dialog-CsOiC1Gz.js";import{C as ne}from"./card-mSB2lAWB.js";import{s as st}from"./Trash01-DZil92Jh.js";import{L as X}from"./label-BuSjhBby.js";import{S as ir,a as lr,b as ar,c as or,d as St}from"./select-B4d2U3-e.js";import{S as Oe}from"./switch-_JN6WXfk.js";import{T as vt}from"./textarea-ezBAh-ci.js";import{b as $t,d as cr,i as dr,s as xs,a as Rt,c as ur}from"./RefreshCcw01-STdDbh6L.js";import{i as mr}from"./X-DDsITeaO.js";import{t as xr}from"./ChevronDown-C6CmTT2m.js";import{n as hr}from"./ChevronUp-DYBcJQJI.js";import{C as ss}from"./checkbox-DPaoVVrP.js";import{n as pr}from"./LinkExternal01-BYFbxPa2.js";import{u as Tt}from"./use-copy-RYe2lXz3.js";import{i as It}from"./Check-CgJkW5mO.js";import{i as fr}from"./Key01-CToqdwOF.js";import{s as gr}from"./Plus-DZMvWlgN.js";import{T as jr,a as vr,b as br}from"./tooltip-CaQjUma3.js";import{i as yr}from"./Play-Y01bx8MI.js";import"./infiniteQueryObserver-D-LVR76l.js";import"./ChevronRight-9ST8kRHp.js";const $e="private-registry",Nr=`
1
+ import{e as Y,p as ie,n as Ie,z as ke,a as je,o as V,r as P,j as t,B as G,l as Le,c as Z,H as Fs,G as Bs}from"./index-Bf4UxK2Z.js";import{i as Qs}from"./ArrowNarrowLeft-CxcqihTL.js";import{i as qe}from"./CheckCircle-BS-i9SgB.js";import{n as Vs}from"./Container-BkK0DB__.js";import{a as Gs}from"./Settings02-CJ09Har8.js";import{n as Ks,a as ds,e as Jt,f as Ys,c as us,b as Hs,d as Ws,i as Js,t as Zs,g as Xs}from"./XCircle-CmRYIXoV.js";import{S as ce,u as oe,d as er}from"./constants-dLpaUsN8.js";import{u as ms}from"./useInfiniteQuery-1PtmuLfG.js";import{B as q}from"./badge--5VL1-K0.js";import{I as ae}from"./input-D3wLBcw1.js";import{a as dt,c as Ce,D as ut,b as mt,j as Zt,k as Xt,i as tr}from"./dropdown-menu-roylZYWc.js";import{c as Mt,d as Et,a as Fe,e as ue,b as Dt,T as me}from"./table-DgPM3Urg.js";import{T as sr,a as es}from"./toggle-group-DnWWdySD.js";import{u as rr}from"./use-view-mode-BLjEDO9D.js";import{i as At}from"./DotsVertical-C0edSuvc.js";import{i as nr}from"./SearchMd-Dpur_ahX.js";import{c as xt,d as ht,e as pt,D as ft,a as gt,b as jt}from"./dialog-DeF_jmhK.js";import{i as Ke}from"./AlertCircle-B2eHj7e1.js";import{i as ts}from"./Upload01-HhDlaYLd.js";import{c as Ye,b as He,d as We,f as Je,g as Ze,e as Xe,a as et,A as tt}from"./alert-dialog-6PLIDXks.js";import{C as ne}from"./card-BAPVTNeM.js";import{s as st}from"./Trash01-cTgn14Wa.js";import{L as X}from"./label-e0eIq6aZ.js";import{S as ir,a as lr,b as ar,c as or,d as St}from"./select-CuHr5fXM.js";import{S as Oe}from"./switch-BGE9cJht.js";import{T as vt}from"./textarea-BF_TKrea.js";import{b as $t,d as cr,i as dr,s as xs,a as Rt,c as ur}from"./RefreshCcw01-B-Cq3kpB.js";import{i as mr}from"./X-KaP-9Zgp.js";import{t as xr}from"./ChevronDown-C2svK15b.js";import{n as hr}from"./ChevronUp-CVfkcqtl.js";import{C as ss}from"./checkbox-BQ4sRBrQ.js";import{n as pr}from"./LinkExternal01-8dkTfrKr.js";import{u as Tt}from"./use-copy-D6zGnSRk.js";import{i as It}from"./Check-DKPiDw0v.js";import{i as fr}from"./Key01-CRTO9Eqv.js";import{s as gr}from"./Plus-DUbqF6rK.js";import{T as jr,a as vr,b as br}from"./tooltip-DM9palzE.js";import{i as yr}from"./Play-DfLpvTAf.js";import"./infiniteQueryObserver-D1AxhsFP.js";import"./ChevronRight-D_jXf5Kp.js";const $e="private-registry",Nr=`
2
2
  You are an MCP tool tester running automated integration checks.
3
3
 
4
4
  Goal:
@@ -1 +1 @@
1
- import{e as c,j as i,A as a,S as u,h as m,k as f,N as h}from"./index-C9UEm0aF.js";import{u as x}from"./useRouterState-EoWY4nHO.js";function g(){const t=c.c(5),s=x().location.href;let n;t[0]!==s?(n=s==="/login"||s.startsWith("/login?"),t[0]=s,t[1]=n):n=t[1];const r=n;let o;if(t[2]!==s||t[3]!==r){const l=r?{}:{next:s};o=i.jsx(h,{to:"/login",search:l,replace:!0}),t[2]=s,t[3]=r,t[4]=o}else o=t[4];return o}function j(t){const e=c.c(6),{children:s}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(a,{children:i.jsx(u,{})}),e[0]=n):n=e[0];let r;e[1]!==s?(r=i.jsx(m,{children:s}),e[1]=s,e[2]=r):r=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsx(f,{children:i.jsx(g,{})}),e[3]=o):o=e[3];let l;return e[4]!==r?(l=i.jsxs(i.Fragment,{children:[n,r,o]}),e[4]=r,e[5]=l):l=e[5],l}export{j as R};
1
+ import{e as c,j as i,A as a,S as u,h as m,k as f,N as h}from"./index-Bf4UxK2Z.js";import{u as x}from"./useRouterState-zGUMzA-3.js";function g(){const t=c.c(5),s=x().location.href;let n;t[0]!==s?(n=s==="/login"||s.startsWith("/login?"),t[0]=s,t[1]=n):n=t[1];const r=n;let o;if(t[2]!==s||t[3]!==r){const l=r?{}:{next:s};o=i.jsx(h,{to:"/login",search:l,replace:!0}),t[2]=s,t[3]=r,t[4]=o}else o=t[4];return o}function j(t){const e=c.c(6),{children:s}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(a,{children:i.jsx(u,{})}),e[0]=n):n=e[0];let r;e[1]!==s?(r=i.jsx(m,{children:s}),e[1]=s,e[2]=r):r=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsx(f,{children:i.jsx(g,{})}),e[3]=o):o=e[3];let l;return e[4]!==r?(l=i.jsxs(i.Fragment,{children:[n,r,o]}),e[4]=r,e[5]=l):l=e[5],l}export{j as R};
@@ -1 +1 @@
1
- import{e as q,d as Y,f as A,r as B,a as G,j as s,B as z,b as K}from"./index-C9UEm0aF.js";import{I as L}from"./input-Cdi9gxjc.js";function H(){const e=q.c(45);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/reset-password"},e[0]=n):n=e[0];const{token:r,error:h}=Y(n),a=A(),[o,D]=B.useState(""),[l,M]=B.useState(""),[t,T]=B.useState(!1),i=h==="INVALID_TOKEN";let j;e[1]===Symbol.for("react.memo_cache_sentinel")?(j={mutationFn:O,onSuccess:()=>{T(!0)}},e[1]=j):j=e[1];const w=G(j),v=o===l,c=o.length>=8&&l.length>=8&&v,d=w.isPending,N=w.error;let y;e[2]!==c||e[3]!==o||e[4]!==w||e[5]!==r?(y=b=>{b.preventDefault(),!(!r||!c)&&w.mutate({newPassword:o,token:r})},e[2]=c,e[3]=o,e[4]=w,e[5]=r,e[6]=y):y=e[6];const F=y;let k;e[7]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx("div",{className:"absolute inset-0",style:{backgroundImage:"radial-gradient(circle, var(--primary-foreground) 1px, transparent 1px)",backgroundSize:"16px 16px",opacity:.15}}),e[7]=k):k=e[7];let S,_,P,C;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-screen h-px bg-primary-foreground/15"}),_=s.jsx("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-screen h-px bg-primary-foreground/15"}),P=s.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-px h-screen bg-primary-foreground/15"}),C=s.jsx("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 w-px h-screen bg-primary-foreground/15"}),e[8]=S,e[9]=_,e[10]=P,e[11]=C):(S=e[8],_=e[9],P=e[10],C=e[11]);let E;e[12]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx("div",{className:"flex justify-center",children:s.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12"})}),e[12]=E):E=e[12];const I=t?"Password reset successful":"Set a new password";let m;e[13]!==I?(m=s.jsx("div",{className:"text-center space-y-1",children:s.jsx("p",{className:"text-sm text-foreground/70",children:I})}),e[13]=I,e[14]=m):m=e[14];let u;e[15]!==i||e[16]!==a||e[17]!==t||e[18]!==r?(u=(i||!r&&!t)&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:"This reset link is invalid or has expired."}),s.jsx(z,{onClick:()=>a({to:"/login"}),className:"w-full font-semibold",size:"lg",children:"Back to login"})]}),e[15]=i,e[16]=a,e[17]=t,e[18]=r,e[19]=u):u=e[19];let x;e[20]!==N?(x=N&&s.jsx("div",{className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:N.message||"Failed to reset password. Please try again."}),e[20]=N,e[21]=x):x=e[21];let f;e[22]!==a||e[23]!==t?(f=t&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"rounded-xl bg-emerald-500/10 p-3 text-sm text-emerald-600 dark:text-emerald-400 text-center",children:"Your password has been reset. You can now sign in with your new password."}),s.jsx(z,{onClick:()=>a({to:"/login"}),className:"w-full font-semibold",size:"lg",children:"Go to login"})]}),e[22]=a,e[23]=t,e[24]=f):f=e[24];let g;e[25]!==c||e[26]!==l||e[27]!==F||e[28]!==i||e[29]!==d||e[30]!==o||e[31]!==v||e[32]!==t||e[33]!==r?(g=r&&!i&&!t&&s.jsxs("form",{onSubmit:F,className:"grid gap-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"New password"}),s.jsx(L,{type:"password",placeholder:"••••••••",value:o,onChange:b=>D(b.target.value),required:!0,minLength:8,disabled:d})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Confirm password"}),s.jsx(L,{type:"password",placeholder:"••••••••",value:l,onChange:b=>M(b.target.value),required:!0,minLength:8,disabled:d}),l&&!v&&s.jsx("p",{className:"text-xs text-destructive mt-1.5",children:"Passwords do not match"})]}),s.jsx(z,{type:"submit",disabled:d||!c,className:"w-full font-semibold",size:"lg",children:d?"Resetting...":"Reset password"})]}),e[25]=c,e[26]=l,e[27]=F,e[28]=i,e[29]=d,e[30]=o,e[31]=v,e[32]=t,e[33]=r,e[34]=g):g=e[34];let p;e[35]!==a||e[36]!==t?(p=!t&&s.jsx("div",{className:"text-center",children:s.jsx(z,{type:"button",variant:"link",onClick:()=>a({to:"/login"}),className:"text-sm text-muted-foreground hover:text-foreground",children:"Back to sign in"})}),e[35]=a,e[36]=t,e[37]=p):p=e[37];let R;return e[38]!==m||e[39]!==u||e[40]!==x||e[41]!==f||e[42]!==g||e[43]!==p?(R=s.jsxs("main",{className:"relative flex min-h-screen items-center justify-center bg-gradient-to-br from-primary to-primary/75 p-4",children:[k,s.jsxs("div",{className:"relative z-10",children:[S,_,P,C,s.jsxs("div",{className:"mx-auto w-full min-w-[400px] max-w-md grid gap-6 bg-card p-10 border border-primary-foreground/20",children:[E,m,u,x,f,g,p]})]})]}),e[38]=m,e[39]=u,e[40]=x,e[41]=f,e[42]=g,e[43]=p,e[44]=R):R=e[44],R}async function O(e){const{newPassword:n,token:r}=e,h=await K.resetPassword({newPassword:n,token:r});if(h.error)throw new Error(h.error.message||"Failed to reset password");return h}export{H as default};
1
+ import{e as q,d as Y,f as A,r as B,a as G,j as s,B as z,b as K}from"./index-Bf4UxK2Z.js";import{I as L}from"./input-D3wLBcw1.js";function H(){const e=q.c(45);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/reset-password"},e[0]=n):n=e[0];const{token:r,error:h}=Y(n),a=A(),[o,D]=B.useState(""),[l,M]=B.useState(""),[t,T]=B.useState(!1),i=h==="INVALID_TOKEN";let j;e[1]===Symbol.for("react.memo_cache_sentinel")?(j={mutationFn:O,onSuccess:()=>{T(!0)}},e[1]=j):j=e[1];const w=G(j),v=o===l,c=o.length>=8&&l.length>=8&&v,d=w.isPending,N=w.error;let y;e[2]!==c||e[3]!==o||e[4]!==w||e[5]!==r?(y=b=>{b.preventDefault(),!(!r||!c)&&w.mutate({newPassword:o,token:r})},e[2]=c,e[3]=o,e[4]=w,e[5]=r,e[6]=y):y=e[6];const F=y;let k;e[7]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx("div",{className:"absolute inset-0",style:{backgroundImage:"radial-gradient(circle, var(--primary-foreground) 1px, transparent 1px)",backgroundSize:"16px 16px",opacity:.15}}),e[7]=k):k=e[7];let S,_,P,C;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-screen h-px bg-primary-foreground/15"}),_=s.jsx("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-screen h-px bg-primary-foreground/15"}),P=s.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-px h-screen bg-primary-foreground/15"}),C=s.jsx("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 w-px h-screen bg-primary-foreground/15"}),e[8]=S,e[9]=_,e[10]=P,e[11]=C):(S=e[8],_=e[9],P=e[10],C=e[11]);let E;e[12]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx("div",{className:"flex justify-center",children:s.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12"})}),e[12]=E):E=e[12];const I=t?"Password reset successful":"Set a new password";let m;e[13]!==I?(m=s.jsx("div",{className:"text-center space-y-1",children:s.jsx("p",{className:"text-sm text-foreground/70",children:I})}),e[13]=I,e[14]=m):m=e[14];let u;e[15]!==i||e[16]!==a||e[17]!==t||e[18]!==r?(u=(i||!r&&!t)&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:"This reset link is invalid or has expired."}),s.jsx(z,{onClick:()=>a({to:"/login"}),className:"w-full font-semibold",size:"lg",children:"Back to login"})]}),e[15]=i,e[16]=a,e[17]=t,e[18]=r,e[19]=u):u=e[19];let x;e[20]!==N?(x=N&&s.jsx("div",{className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:N.message||"Failed to reset password. Please try again."}),e[20]=N,e[21]=x):x=e[21];let f;e[22]!==a||e[23]!==t?(f=t&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"rounded-xl bg-emerald-500/10 p-3 text-sm text-emerald-600 dark:text-emerald-400 text-center",children:"Your password has been reset. You can now sign in with your new password."}),s.jsx(z,{onClick:()=>a({to:"/login"}),className:"w-full font-semibold",size:"lg",children:"Go to login"})]}),e[22]=a,e[23]=t,e[24]=f):f=e[24];let g;e[25]!==c||e[26]!==l||e[27]!==F||e[28]!==i||e[29]!==d||e[30]!==o||e[31]!==v||e[32]!==t||e[33]!==r?(g=r&&!i&&!t&&s.jsxs("form",{onSubmit:F,className:"grid gap-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"New password"}),s.jsx(L,{type:"password",placeholder:"••••••••",value:o,onChange:b=>D(b.target.value),required:!0,minLength:8,disabled:d})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Confirm password"}),s.jsx(L,{type:"password",placeholder:"••••••••",value:l,onChange:b=>M(b.target.value),required:!0,minLength:8,disabled:d}),l&&!v&&s.jsx("p",{className:"text-xs text-destructive mt-1.5",children:"Passwords do not match"})]}),s.jsx(z,{type:"submit",disabled:d||!c,className:"w-full font-semibold",size:"lg",children:d?"Resetting...":"Reset password"})]}),e[25]=c,e[26]=l,e[27]=F,e[28]=i,e[29]=d,e[30]=o,e[31]=v,e[32]=t,e[33]=r,e[34]=g):g=e[34];let p;e[35]!==a||e[36]!==t?(p=!t&&s.jsx("div",{className:"text-center",children:s.jsx(z,{type:"button",variant:"link",onClick:()=>a({to:"/login"}),className:"text-sm text-muted-foreground hover:text-foreground",children:"Back to sign in"})}),e[35]=a,e[36]=t,e[37]=p):p=e[37];let R;return e[38]!==m||e[39]!==u||e[40]!==x||e[41]!==f||e[42]!==g||e[43]!==p?(R=s.jsxs("main",{className:"relative flex min-h-screen items-center justify-center bg-gradient-to-br from-primary to-primary/75 p-4",children:[k,s.jsxs("div",{className:"relative z-10",children:[S,_,P,C,s.jsxs("div",{className:"mx-auto w-full min-w-[400px] max-w-md grid gap-6 bg-card p-10 border border-primary-foreground/20",children:[E,m,u,x,f,g,p]})]})]}),e[38]=m,e[39]=u,e[40]=x,e[41]=f,e[42]=g,e[43]=p,e[44]=R):R=e[44],R}async function O(e){const{newPassword:n,token:r}=e,h=await K.resetPassword({newPassword:n,token:r});if(h.error)throw new Error(h.error.message||"Failed to reset password");return h}export{H as default};