decocms 2.285.1 → 2.286.1

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 (427) hide show
  1. package/dist/client/assets/{AlertCircle-Ljx3VIeb.js → AlertCircle-Bgzr6uRA.js} +1 -1
  2. package/dist/client/assets/{ArrowNarrowLeft-B8YVT66M.js → ArrowNarrowLeft-ByrdB8Dd.js} +1 -1
  3. package/dist/client/assets/{CheckCircle-BFRWTTWo.js → CheckCircle-88bls7UK.js} +1 -1
  4. package/dist/client/assets/{ChevronDown-BqFspEzt.js → ChevronDown-Jd-cYHC-.js} +1 -1
  5. package/dist/client/assets/{ChevronRight-DCsBjQ-n.js → ChevronRight-71i8ke8L.js} +1 -1
  6. package/dist/client/assets/{ChevronUp-D7S3j_fa.js → ChevronUp-D_szSdLd.js} +1 -1
  7. package/dist/client/assets/{Container-SHbLkl7K.js → Container-DWaKXfYv.js} +1 -1
  8. package/dist/client/assets/DotsVertical-CjXyjLNU.js +1 -0
  9. package/dist/client/assets/{LinkExternal01-XmkIm96u.js → LinkExternal01-DB08YntP.js} +1 -1
  10. package/dist/client/assets/{Lock01-CXrm99F-.js → Lock01-dBhVogWg.js} +1 -1
  11. package/dist/client/assets/{Palette-B46VjX8F.js → Palette-DuWQiO51.js} +1 -1
  12. package/dist/client/assets/{Play-9pX5w5-3.js → Play-D7pqvkYq.js} +1 -1
  13. package/dist/client/assets/{Plus-Bmk1thjl.js → Plus-BzxOIhxj.js} +1 -1
  14. package/dist/client/assets/RefreshCcw01-BxULs6ec.js +1 -0
  15. package/dist/client/assets/SearchMd-D6tCV38D.js +1 -0
  16. package/dist/client/assets/{Settings02-C88OtRRq.js → Settings02-MyfUtBA4.js} +1 -1
  17. package/dist/client/assets/Shield01-CMw4M4Ml.js +1 -0
  18. package/dist/client/assets/{Star01-fuGmPeeu.js → Star01-DZHrISf9.js} +1 -1
  19. package/dist/client/assets/{Sun-ndN_CHuQ.js → Sun-C8X8gjZW.js} +1 -1
  20. package/dist/client/assets/{Tool01-DBxgF1Y_.js → Tool01-BscqkhhO.js} +1 -1
  21. package/dist/client/assets/{Trash01-BHBjIGXE.js → Trash01-DZpzvWVW.js} +1 -1
  22. package/dist/client/assets/{User01-DCiwOMBU.js → User01-VHn0SqBP.js} +1 -1
  23. package/dist/client/assets/{Users03-Bgfd1KM0.js → Users03-DwNyb_q2.js} +1 -1
  24. package/dist/client/assets/{X-BWV-b86T.js → X-BuUY-erD.js} +1 -1
  25. package/dist/client/assets/XCircle-BFZeumzD.js +1 -0
  26. package/dist/client/assets/XClose-ANREDbeo.js +1 -0
  27. package/dist/client/assets/{Zap-K9sQXDlC.js → Zap-BxJkZzJb.js} +1 -1
  28. package/dist/client/assets/{ZapSquare-CTcr_tRy.js → ZapSquare-Bz3HDhTc.js} +1 -1
  29. package/dist/client/assets/{accordion-COmeMo5z.js → accordion-DK_chPAh.js} +1 -1
  30. package/dist/client/assets/agent-icon-DKQKq---.js +1 -0
  31. package/dist/client/assets/agents-list-DBdCJGrz.js +1 -0
  32. package/dist/client/assets/ai-providers-BhNFwI7O.js +1 -0
  33. package/dist/client/assets/{alert-dialog-DaP8t8su.js → alert-dialog-CtGXaT-Y.js} +2 -2
  34. package/dist/client/assets/{auth-catchall-CerK6T4u.js → auth-catchall-B4ADnlpm.js} +1 -1
  35. package/dist/client/assets/automation-list-row-B_yW9vLo.js +1 -0
  36. package/dist/client/assets/automations-B3iEjSty.js +1 -0
  37. package/dist/client/assets/{avatar-gTIcZioB.js → avatar-DcLXZkYK.js} +1 -1
  38. package/dist/client/assets/{badge-DsWPcX1V.js → badge-BJBM0LXp.js} +1 -1
  39. package/dist/client/assets/brand-context-BahSISOs.js +1 -0
  40. package/dist/client/assets/{card-CPVRwbgl.js → card-DqrPrhd5.js} +1 -1
  41. package/dist/client/assets/{chat-context-CZAEwDWp.js → chat-context-DfEaB6Uj.js} +1 -1
  42. package/dist/client/assets/{checkbox-CPqdqI54.js → checkbox-Dplb_VaM.js} +1 -1
  43. package/dist/client/assets/collection-detail-KgUZfuij.js +1 -0
  44. package/dist/client/assets/collection-display-button-DecHBxzk.js +1 -0
  45. package/dist/client/assets/{collection-search-DgokupF2.js → collection-search-B_zW9IS4.js} +1 -1
  46. package/dist/client/assets/{collection-search-lfil19IA.js → collection-search-DF-hPm66.js} +1 -1
  47. package/dist/client/assets/collection-table-wrapper-DG-B8ykv.js +1 -0
  48. package/dist/client/assets/{collection-tabs-BRY4wHvH.js → collection-tabs-tHg8euhu.js} +1 -1
  49. package/dist/client/assets/{collections-lJhN2k9k.js → collections-KKlyNHih.js} +1 -1
  50. package/dist/client/assets/command-Cpu7RbMv.js +1 -0
  51. package/dist/client/assets/{connection-card-BrctpSfE.js → connection-card-CD0fnfut.js} +1 -1
  52. package/dist/client/assets/connection-detail-CFY9ol5g.js +1 -0
  53. package/dist/client/assets/{connection-form-helpers-C1FnnBdL.js → connection-form-helpers-DVewXDLo.js} +1 -1
  54. package/dist/client/assets/connections-B-Liq5Ll.js +1 -0
  55. package/dist/client/assets/{constants-D_Nupw5-.js → constants-D7DNenhk.js} +1 -1
  56. package/dist/client/assets/{constants-D8VkIs2c.js → constants-aD7HJ6sY.js} +1 -1
  57. package/dist/client/assets/{dialog-BOagZAx2.js → dialog-nGTWjCEa.js} +1 -1
  58. package/dist/client/assets/{drawer-BRUzFEdi.js → drawer-DyPUsgdj.js} +1 -1
  59. package/dist/client/assets/dropdown-menu-Cc_jn9Z7.js +1 -0
  60. package/dist/client/assets/{dynamic-plugin-layout-ltkevohS.js → dynamic-plugin-layout-Bun8S8Gm.js} +1 -1
  61. package/dist/client/assets/{empty-state-DCK4Z2GX.js → empty-state-CqQa90x5.js} +1 -1
  62. package/dist/client/assets/{empty-state-BokLRSGE.js → empty-state-DgThOXBB.js} +1 -1
  63. package/dist/client/assets/{extract-connection-data-V-eInhlP.js → extract-connection-data-Bx0uarS8.js} +1 -1
  64. package/dist/client/assets/{features-DIBFVG_b.js → features-ekquKatz.js} +1 -1
  65. package/dist/client/assets/{form-DHQjt1Tk.js → form-DB-TdsHz.js} +1 -1
  66. package/dist/client/assets/general-BrK_oI6y.js +1 -0
  67. package/dist/client/assets/{github-repo-picker-CIYxcUMn.js → github-repo-picker-CwCtQ7G3.js} +2 -2
  68. package/dist/client/assets/{index-DbNFtLRR.js → index-Amg25tew.js} +3 -3
  69. package/dist/client/assets/index-BCwsJqWc.css +1 -0
  70. package/dist/client/assets/{index-DvxSs9Po.js → index-BZopUfMN.js} +1 -1
  71. package/dist/client/assets/{index-gfedyrlZ.js → index-BfYZ2YG_.js} +16 -16
  72. package/dist/client/assets/{index-uSGXbgq4.js → index-CT9V-xpg.js} +1 -1
  73. package/dist/client/assets/{index-sYNl3b-7.js → index-CwstDhH7.js} +1 -1
  74. package/dist/client/assets/{index-CNolBSVE.js → index-DhJrYN5i.js} +22 -22
  75. package/dist/client/assets/{index-DWOvEgKr.js → index-DtMbbDUN.js} +1 -1
  76. package/dist/client/assets/{index-BWvVdWtP.js → index-DtdOoKdU.js} +1 -1
  77. package/dist/client/assets/{index-PT6VRyBL.js → index-DvgxnJsz.js} +1 -1
  78. package/dist/client/assets/{index-Di0ylaLI.js → index-pD6VF9-w.js} +3 -3
  79. package/dist/client/assets/{infiniteQueryObserver-B8q-YDXm.js → infiniteQueryObserver-B_9sKQsI.js} +1 -1
  80. package/dist/client/assets/{input-B8j75XZ_.js → input-COFLoOjb.js} +1 -1
  81. package/dist/client/assets/{integration-icon-De50Mm7k.js → integration-icon-DKrcAAs9.js} +1 -1
  82. package/dist/client/assets/{label-KH35YAYU.js → label-BZVcstmy.js} +1 -1
  83. package/dist/client/assets/{layout-E2py7rYQ.js → layout-Dp5y9gtR.js} +1 -1
  84. package/dist/client/assets/{login-agOBj-o2.js → login-ComGApTe.js} +1 -1
  85. package/dist/client/assets/members-CHnKVrrd.js +3 -0
  86. package/dist/client/assets/{monaco-editor-CzAT2DWn.js → monaco-editor-EL8K9shU.js} +1 -1
  87. package/dist/client/assets/{monitoring-stats-row-k0blCMgl.js → monitoring-stats-row-D9crys0K.js} +1 -1
  88. package/dist/client/assets/{oauth-callback-ViEW-3g2.js → oauth-callback-B0mEhNIK.js} +1 -1
  89. package/dist/client/assets/{oauth-callback-ai-provider-cSZy9hW7.js → oauth-callback-ai-provider-Dj0EctfO.js} +1 -1
  90. package/dist/client/assets/{onboarding-CquRdW5q.js → onboarding-czNV0UuI.js} +1 -1
  91. package/dist/client/assets/{org-layout-DY9vqUg9.js → org-layout-CGtnLM_Q.js} +1 -1
  92. package/dist/client/assets/{org-plugin-layout-HyePbhDN.js → org-plugin-layout-Ba2ZEzcE.js} +1 -1
  93. package/dist/client/assets/{plugin-empty-state-tSKwN8yW.js → plugin-empty-state-fmAUJ6xt.js} +1 -1
  94. package/dist/client/assets/{plugin-header-CgMEgROC.js → plugin-header-3c9kItnR.js} +1 -1
  95. package/dist/client/assets/{plugin-layout-B0f9qTk_.js → plugin-layout-CUFHRJeM.js} +1 -1
  96. package/dist/client/assets/{popover-BK6PL-XB.js → popover-Bo1-wNsY.js} +1 -1
  97. package/dist/client/assets/{profile-C_xBhvj7.js → profile-C4ZfFzUo.js} +1 -1
  98. package/dist/client/assets/project-app-view-DbITEuQv.js +1 -0
  99. package/dist/client/assets/registry-CrUw5Sj_.js +2 -0
  100. package/dist/client/assets/{registry-layout-7nSgT8Ua.js → registry-layout-q6bMBk9s.js} +3 -3
  101. package/dist/client/assets/{required-auth-layout-D-NWWr5P.js → required-auth-layout-CP-yDaO3.js} +1 -1
  102. package/dist/client/assets/{reset-password-C7m0cAdE.js → reset-password-CpFcPkI4.js} +1 -1
  103. package/dist/client/assets/roles-CSJcHSQ8.js +1 -0
  104. package/dist/client/assets/{scroll-area-Da2hNrch.js → scroll-area-CXUp8wR9.js} +1 -1
  105. package/dist/client/assets/{search-input-BZmdDW7A.js → search-input-ClG6niuo.js} +1 -1
  106. package/dist/client/assets/{select-JPYD20it.js → select-Cn3ZnqjJ.js} +1 -1
  107. package/dist/client/assets/{select-model-DMVU-2Gx.js → select-model-BwE-9vfJ.js} +2 -2
  108. package/dist/client/assets/settings-layout-dHGH4vpw.js +1 -0
  109. package/dist/client/assets/{shell-layout-DkN8Q_tp.js → shell-layout-BsqL_vND.js} +1 -1
  110. package/dist/client/assets/{skeleton-DPqifXUx.js → skeleton-DOcx8lZU.js} +1 -1
  111. package/dist/client/assets/{sso-BdiVJFM8.js → sso-37Vu3qt9.js} +1 -1
  112. package/dist/client/assets/{store-D9lb1Gph.js → store-D1kidhJ8.js} +1 -1
  113. package/dist/client/assets/store-registry-qx_8ffch.js +2 -0
  114. package/dist/client/assets/{switch-CVtXvreH.js → switch-ihM2hYRH.js} +1 -1
  115. package/dist/client/assets/{table-C-JSrHQJ.js → table-CAUXYO7-.js} +1 -1
  116. package/dist/client/assets/{tabs-DtgWLQ6i.js → tabs-DcOxSeRf.js} +1 -1
  117. package/dist/client/assets/{task-status-DTuLfGhm.js → task-status-CHfFeACA.js} +7 -7
  118. package/dist/client/assets/{textarea-p_oNKH-r.js → textarea-CsnX9Ktr.js} +1 -1
  119. package/dist/client/assets/{toggle-group-B6-etMEh.js → toggle-group-_HWF3GFc.js} +1 -1
  120. package/dist/client/assets/tools-list-A0gJUqTb.js +1 -0
  121. package/dist/client/assets/{types-BP7V6N8z.js → types-BGXCye_w.js} +1 -1
  122. package/dist/client/assets/{use-ai-providers-oN1cKhaJ.js → use-ai-providers-DSLKay0D.js} +1 -1
  123. package/dist/client/assets/{use-collections-BTXUmiDi.js → use-collections-DvPoAlor.js} +1 -1
  124. package/dist/client/assets/{use-connection-DIvNoxL5.js → use-connection-MU3rXx28.js} +1 -1
  125. package/dist/client/assets/{use-copy-D8L6lrfC.js → use-copy-tC0v6ypy.js} +1 -1
  126. package/dist/client/assets/{use-create-virtual-mcp-DUKkySGS.js → use-create-virtual-mcp-C-LLRhrB.js} +1 -1
  127. package/dist/client/assets/{use-decopilot-events-BRc3SX00.js → use-decopilot-events-fHBaJaln.js} +1 -1
  128. package/dist/client/assets/{use-delete-connection-IDpzSpRp.js → use-delete-connection-CowwQ4CA.js} +1 -1
  129. package/dist/client/assets/{use-infinite-scroll-WKRKMI2J.js → use-infinite-scroll-BUM8dH47.js} +1 -1
  130. package/dist/client/assets/{use-list-state-Dyh2zhb9.js → use-list-state-Ba4O0IuX.js} +1 -1
  131. package/dist/client/assets/{use-mcp-tools-tZ37UBLL.js → use-mcp-tools-B5zpuics.js} +1 -1
  132. package/dist/client/assets/{use-members-AvAHjkiq.js → use-members-Bhu2ZnQb.js} +1 -1
  133. package/dist/client/assets/{use-mobile-Ctb5URy7.js → use-mobile-C4Yo3nsX.js} +1 -1
  134. package/dist/client/assets/{use-navigate-to-agent-CLfSU3ru.js → use-navigate-to-agent-Bx0DB5DW.js} +1 -1
  135. package/dist/client/assets/{use-org-sso-CmuM4ieo.js → use-org-sso-BK-ft_ER.js} +1 -1
  136. package/dist/client/assets/use-organization-roles-uEcrMWhG.js +1 -0
  137. package/dist/client/assets/{use-organization-settings-dQpmtQzl.js → use-organization-settings-CMC2yyUM.js} +1 -1
  138. package/dist/client/assets/{use-registry-connections-CP0QI7iA.js → use-registry-connections-Biq_9qgb.js} +1 -1
  139. package/dist/client/assets/{use-status-sounds-CObwI0DY.js → use-status-sounds-DfhTS64d.js} +1 -1
  140. package/dist/client/assets/{use-tasks-7rX1bsHL.js → use-tasks-DofxyZR4.js} +1 -1
  141. package/dist/client/assets/{use-view-mode-BkbloGkm.js → use-view-mode-DSeYcON6.js} +1 -1
  142. package/dist/client/assets/{use-virtual-mcp-CDOk_IIy.js → use-virtual-mcp-WT1ZdgMM.js} +1 -1
  143. package/dist/client/assets/useInfiniteQuery-Gkc0b2zi.js +1 -0
  144. package/dist/client/assets/useSuspenseInfiniteQuery-YePUpUV3.js +1 -0
  145. package/dist/client/assets/{user-lj8QRtGG.js → user-5oBDTi_W.js} +1 -1
  146. package/dist/client/assets/{view-mode-toggle-BiPtlB_S.js → view-mode-toggle-BvyYLass.js} +1 -1
  147. package/dist/client/assets/workflow-DoVF6xyx.js +1 -0
  148. package/dist/client/assets/workflow-detail-XUi-wHY3.js +1 -0
  149. package/dist/client/index.html +2 -2
  150. package/dist/server/cli.js +2 -2
  151. package/dist/server/node_modules/figures/index.d.ts +279 -0
  152. package/dist/server/node_modules/figures/index.js +292 -0
  153. package/dist/server/node_modules/{is-fullwidth-code-point → figures}/package.json +16 -20
  154. package/dist/server/node_modules/figures/readme.md +337 -0
  155. package/dist/server/node_modules/get-east-asian-width/index.d.ts +60 -0
  156. package/dist/server/node_modules/get-east-asian-width/index.js +30 -0
  157. package/dist/server/node_modules/get-east-asian-width/lookup-data.js +18 -0
  158. package/dist/server/node_modules/get-east-asian-width/lookup.js +135 -0
  159. package/dist/server/node_modules/get-east-asian-width/package.json +71 -0
  160. package/dist/server/node_modules/get-east-asian-width/readme.md +65 -0
  161. package/dist/server/node_modules/get-east-asian-width/utilities.js +24 -0
  162. package/dist/server/node_modules/ink/build/ansi-tokenizer.d.ts +38 -0
  163. package/dist/server/node_modules/ink/build/ansi-tokenizer.js +316 -0
  164. package/dist/server/node_modules/ink/build/ansi-tokenizer.js.map +1 -0
  165. package/dist/server/node_modules/ink/build/apply-styles.js +175 -0
  166. package/dist/server/node_modules/ink/build/build-layout.js +77 -0
  167. package/dist/server/node_modules/ink/build/calculate-wrapped-text.js +53 -0
  168. package/dist/server/node_modules/ink/build/colorize.d.ts +3 -0
  169. package/dist/server/node_modules/ink/build/colorize.js +48 -0
  170. package/dist/server/node_modules/ink/build/colorize.js.map +1 -0
  171. package/dist/server/node_modules/ink/build/components/AccessibilityContext.d.ts +3 -0
  172. package/dist/server/node_modules/ink/build/components/AccessibilityContext.js +5 -0
  173. package/dist/server/node_modules/ink/build/components/AccessibilityContext.js.map +1 -0
  174. package/dist/server/node_modules/ink/build/components/App.d.ts +18 -0
  175. package/dist/server/node_modules/ink/build/components/App.js +351 -0
  176. package/dist/server/node_modules/ink/build/components/App.js.map +1 -0
  177. package/dist/server/node_modules/ink/build/components/AppContext.d.ts +15 -0
  178. package/dist/server/node_modules/ink/build/components/AppContext.js +11 -0
  179. package/dist/server/node_modules/ink/build/components/AppContext.js.map +1 -0
  180. package/dist/server/node_modules/ink/build/components/BackgroundContext.d.ts +4 -0
  181. package/dist/server/node_modules/ink/build/components/BackgroundContext.js +3 -0
  182. package/dist/server/node_modules/ink/build/components/BackgroundContext.js.map +1 -0
  183. package/dist/server/node_modules/ink/build/components/Box.d.ts +117 -0
  184. package/dist/server/node_modules/ink/build/components/Box.js +34 -0
  185. package/dist/server/node_modules/ink/build/components/Box.js.map +1 -0
  186. package/dist/server/node_modules/ink/build/components/Color.js +62 -0
  187. package/dist/server/node_modules/ink/build/components/Cursor.d.ts +83 -0
  188. package/dist/server/node_modules/ink/build/components/Cursor.js +53 -0
  189. package/dist/server/node_modules/ink/build/components/Cursor.js.map +1 -0
  190. package/dist/server/node_modules/ink/build/components/CursorContext.d.ts +11 -0
  191. package/dist/server/node_modules/ink/build/components/CursorContext.js +8 -0
  192. package/dist/server/node_modules/ink/build/components/CursorContext.js.map +1 -0
  193. package/dist/server/node_modules/ink/build/components/ErrorBoundary.d.ts +18 -0
  194. package/dist/server/node_modules/ink/build/components/ErrorBoundary.js +23 -0
  195. package/dist/server/node_modules/ink/build/components/ErrorBoundary.js.map +1 -0
  196. package/dist/server/node_modules/ink/build/components/ErrorOverview.d.ts +6 -0
  197. package/dist/server/node_modules/ink/build/components/ErrorOverview.js +84 -0
  198. package/dist/server/node_modules/ink/build/components/ErrorOverview.js.map +1 -0
  199. package/dist/server/node_modules/ink/build/components/FocusContext.d.ts +16 -0
  200. package/dist/server/node_modules/ink/build/components/FocusContext.js +17 -0
  201. package/dist/server/node_modules/ink/build/components/FocusContext.js.map +1 -0
  202. package/dist/server/node_modules/ink/build/components/Newline.d.ts +13 -0
  203. package/dist/server/node_modules/ink/build/components/Newline.js +8 -0
  204. package/dist/server/node_modules/ink/build/components/Newline.js.map +1 -0
  205. package/dist/server/node_modules/ink/build/components/Spacer.d.ts +7 -0
  206. package/dist/server/node_modules/ink/build/components/Spacer.js +11 -0
  207. package/dist/server/node_modules/ink/build/components/Spacer.js.map +1 -0
  208. package/dist/server/node_modules/ink/build/components/Static.d.ts +24 -0
  209. package/dist/server/node_modules/ink/build/components/Static.js +28 -0
  210. package/dist/server/node_modules/ink/build/components/Static.js.map +1 -0
  211. package/dist/server/node_modules/ink/build/components/StderrContext.d.ts +15 -0
  212. package/dist/server/node_modules/ink/build/components/StderrContext.js +13 -0
  213. package/dist/server/node_modules/ink/build/components/StderrContext.js.map +1 -0
  214. package/dist/server/node_modules/ink/build/components/StdinContext.d.ts +22 -0
  215. package/dist/server/node_modules/ink/build/components/StdinContext.js +19 -0
  216. package/dist/server/node_modules/ink/build/components/StdinContext.js.map +1 -0
  217. package/dist/server/node_modules/ink/build/components/StdoutContext.d.ts +15 -0
  218. package/dist/server/node_modules/ink/build/components/StdoutContext.js +13 -0
  219. package/dist/server/node_modules/ink/build/components/StdoutContext.js.map +1 -0
  220. package/dist/server/node_modules/ink/build/components/Text.d.ts +55 -0
  221. package/dist/server/node_modules/ink/build/components/Text.js +50 -0
  222. package/dist/server/node_modules/ink/build/components/Text.js.map +1 -0
  223. package/dist/server/node_modules/ink/build/components/Transform.d.ts +16 -0
  224. package/dist/server/node_modules/ink/build/components/Transform.js +15 -0
  225. package/dist/server/node_modules/ink/build/components/Transform.js.map +1 -0
  226. package/dist/server/node_modules/ink/build/cursor-helpers.d.ts +38 -0
  227. package/dist/server/node_modules/ink/build/cursor-helpers.js +56 -0
  228. package/dist/server/node_modules/ink/build/cursor-helpers.js.map +1 -0
  229. package/dist/server/node_modules/ink/build/devtools-window-polyfill.d.ts +1 -0
  230. package/dist/server/node_modules/ink/build/devtools-window-polyfill.js +65 -0
  231. package/dist/server/node_modules/ink/build/devtools-window-polyfill.js.map +1 -0
  232. package/dist/server/node_modules/ink/build/devtools.d.ts +1 -0
  233. package/dist/server/node_modules/ink/build/devtools.js +11 -0
  234. package/dist/server/node_modules/ink/build/devtools.js.map +1 -0
  235. package/dist/server/node_modules/ink/build/dom.d.ts +56 -0
  236. package/dist/server/node_modules/ink/build/dom.js +124 -0
  237. package/dist/server/node_modules/ink/build/dom.js.map +1 -0
  238. package/dist/server/node_modules/ink/build/experimental/apply-style.js +140 -0
  239. package/dist/server/node_modules/ink/build/experimental/dom.js +123 -0
  240. package/dist/server/node_modules/ink/build/experimental/output.js +91 -0
  241. package/dist/server/node_modules/ink/build/experimental/reconciler.js +141 -0
  242. package/dist/server/node_modules/ink/build/experimental/renderer.js +81 -0
  243. package/dist/server/node_modules/ink/build/get-max-width.d.ts +3 -0
  244. package/dist/server/node_modules/ink/build/get-max-width.js +10 -0
  245. package/dist/server/node_modules/ink/build/get-max-width.js.map +1 -0
  246. package/dist/server/node_modules/ink/build/hooks/use-app.d.ts +5 -0
  247. package/dist/server/node_modules/ink/build/hooks/use-app.js +8 -0
  248. package/dist/server/node_modules/ink/build/hooks/use-app.js.map +1 -0
  249. package/dist/server/node_modules/ink/build/hooks/use-cursor.d.ts +12 -0
  250. package/dist/server/node_modules/ink/build/hooks/use-cursor.js +29 -0
  251. package/dist/server/node_modules/ink/build/hooks/use-cursor.js.map +1 -0
  252. package/dist/server/node_modules/ink/build/hooks/use-focus-manager.d.ts +28 -0
  253. package/dist/server/node_modules/ink/build/hooks/use-focus-manager.js +17 -0
  254. package/dist/server/node_modules/ink/build/hooks/use-focus-manager.js.map +1 -0
  255. package/dist/server/node_modules/ink/build/hooks/use-focus.d.ts +29 -0
  256. package/dist/server/node_modules/ink/build/hooks/use-focus.js +42 -0
  257. package/dist/server/node_modules/ink/build/hooks/use-focus.js.map +1 -0
  258. package/dist/server/node_modules/ink/build/hooks/use-input.d.ts +131 -0
  259. package/dist/server/node_modules/ink/build/hooks/use-input.js +124 -0
  260. package/dist/server/node_modules/ink/build/hooks/use-input.js.map +1 -0
  261. package/dist/server/node_modules/ink/build/hooks/use-is-screen-reader-enabled.d.ts +5 -0
  262. package/dist/server/node_modules/ink/build/hooks/use-is-screen-reader-enabled.js +11 -0
  263. package/dist/server/node_modules/ink/build/hooks/use-is-screen-reader-enabled.js.map +1 -0
  264. package/dist/server/node_modules/ink/build/hooks/use-stderr.d.ts +5 -0
  265. package/dist/server/node_modules/ink/build/hooks/use-stderr.js +8 -0
  266. package/dist/server/node_modules/ink/build/hooks/use-stderr.js.map +1 -0
  267. package/dist/server/node_modules/ink/build/hooks/use-stdin.d.ts +5 -0
  268. package/dist/server/node_modules/ink/build/hooks/use-stdin.js +8 -0
  269. package/dist/server/node_modules/ink/build/hooks/use-stdin.js.map +1 -0
  270. package/dist/server/node_modules/ink/build/hooks/use-stdout.d.ts +5 -0
  271. package/dist/server/node_modules/ink/build/hooks/use-stdout.js +8 -0
  272. package/dist/server/node_modules/ink/build/hooks/use-stdout.js.map +1 -0
  273. package/dist/server/node_modules/ink/build/hooks/useInput.js +38 -0
  274. package/dist/server/node_modules/ink/build/index.d.ts +34 -0
  275. package/dist/server/node_modules/ink/build/index.js +20 -0
  276. package/dist/server/node_modules/ink/build/index.js.map +1 -0
  277. package/dist/server/node_modules/ink/build/ink.d.ts +90 -0
  278. package/dist/server/node_modules/ink/build/ink.js +637 -0
  279. package/dist/server/node_modules/ink/build/ink.js.map +1 -0
  280. package/dist/server/node_modules/ink/build/input-parser.d.ts +7 -0
  281. package/dist/server/node_modules/ink/build/input-parser.js +154 -0
  282. package/dist/server/node_modules/ink/build/input-parser.js.map +1 -0
  283. package/dist/server/node_modules/ink/build/instance.js +205 -0
  284. package/dist/server/node_modules/ink/build/instances.d.ts +3 -0
  285. package/dist/server/node_modules/ink/build/instances.js +8 -0
  286. package/dist/server/node_modules/ink/build/instances.js.map +1 -0
  287. package/dist/server/node_modules/ink/build/kitty-keyboard.d.ts +23 -0
  288. package/dist/server/node_modules/ink/build/kitty-keyboard.js +32 -0
  289. package/dist/server/node_modules/ink/build/kitty-keyboard.js.map +1 -0
  290. package/dist/server/node_modules/ink/build/layout.d.ts +7 -0
  291. package/dist/server/node_modules/ink/build/layout.js +33 -0
  292. package/dist/server/node_modules/ink/build/layout.js.map +1 -0
  293. package/dist/server/node_modules/ink/build/log-update.d.ts +19 -0
  294. package/dist/server/node_modules/ink/build/log-update.js +242 -0
  295. package/dist/server/node_modules/ink/build/log-update.js.map +1 -0
  296. package/dist/server/node_modules/ink/build/measure-element.d.ts +16 -0
  297. package/dist/server/node_modules/ink/build/measure-element.js +9 -0
  298. package/dist/server/node_modules/ink/build/measure-element.js.map +1 -0
  299. package/dist/server/node_modules/ink/build/measure-text.d.ts +6 -0
  300. package/dist/server/node_modules/ink/build/measure-text.js +21 -0
  301. package/dist/server/node_modules/ink/build/measure-text.js.map +1 -0
  302. package/dist/server/node_modules/ink/build/options.d.ts +52 -0
  303. package/dist/server/node_modules/ink/build/options.js +2 -0
  304. package/dist/server/node_modules/ink/build/options.js.map +1 -0
  305. package/dist/server/node_modules/ink/build/output.d.ts +35 -0
  306. package/dist/server/node_modules/ink/build/output.js +183 -0
  307. package/dist/server/node_modules/ink/build/output.js.map +1 -0
  308. package/dist/server/node_modules/ink/build/parse-keypress.d.ts +22 -0
  309. package/dist/server/node_modules/ink/build/parse-keypress.js +493 -0
  310. package/dist/server/node_modules/ink/build/parse-keypress.js.map +1 -0
  311. package/dist/server/node_modules/ink/build/reconciler.d.ts +4 -0
  312. package/dist/server/node_modules/ink/build/reconciler.js +274 -0
  313. package/dist/server/node_modules/ink/build/reconciler.js.map +1 -0
  314. package/dist/server/node_modules/ink/build/render-background.d.ts +4 -0
  315. package/dist/server/node_modules/ink/build/render-background.js +25 -0
  316. package/dist/server/node_modules/ink/build/render-background.js.map +1 -0
  317. package/dist/server/node_modules/ink/build/render-border.d.ts +4 -0
  318. package/dist/server/node_modules/ink/build/render-border.js +73 -0
  319. package/dist/server/node_modules/ink/build/render-border.js.map +1 -0
  320. package/dist/server/node_modules/ink/build/render-node-to-output.d.ts +14 -0
  321. package/dist/server/node_modules/ink/build/render-node-to-output.js +147 -0
  322. package/dist/server/node_modules/ink/build/render-node-to-output.js.map +1 -0
  323. package/dist/server/node_modules/ink/build/render-to-string.d.ts +38 -0
  324. package/dist/server/node_modules/ink/build/render-to-string.js +115 -0
  325. package/dist/server/node_modules/ink/build/render-to-string.js.map +1 -0
  326. package/dist/server/node_modules/ink/build/render.d.ts +121 -0
  327. package/dist/server/node_modules/ink/build/render.js +55 -0
  328. package/dist/server/node_modules/ink/build/render.js.map +1 -0
  329. package/dist/server/node_modules/ink/build/renderer.d.ts +8 -0
  330. package/dist/server/node_modules/ink/build/renderer.js +55 -0
  331. package/dist/server/node_modules/ink/build/renderer.js.map +1 -0
  332. package/dist/server/node_modules/ink/build/sanitize-ansi.d.ts +2 -0
  333. package/dist/server/node_modules/ink/build/sanitize-ansi.js +27 -0
  334. package/dist/server/node_modules/ink/build/sanitize-ansi.js.map +1 -0
  335. package/dist/server/node_modules/ink/build/screen-reader-update.d.ts +13 -0
  336. package/dist/server/node_modules/ink/build/screen-reader-update.js +38 -0
  337. package/dist/server/node_modules/ink/build/screen-reader-update.js.map +1 -0
  338. package/dist/server/node_modules/ink/build/squash-text-nodes.d.ts +3 -0
  339. package/dist/server/node_modules/ink/build/squash-text-nodes.js +36 -0
  340. package/dist/server/node_modules/ink/build/squash-text-nodes.js.map +1 -0
  341. package/dist/server/node_modules/ink/build/styles.d.ts +240 -0
  342. package/dist/server/node_modules/ink/build/styles.js +232 -0
  343. package/dist/server/node_modules/ink/build/styles.js.map +1 -0
  344. package/dist/server/node_modules/ink/build/utils.d.ts +2 -0
  345. package/dist/server/node_modules/ink/build/utils.js +4 -0
  346. package/dist/server/node_modules/ink/build/utils.js.map +1 -0
  347. package/dist/server/node_modules/ink/build/wrap-text.d.ts +3 -0
  348. package/dist/server/node_modules/ink/build/wrap-text.js +31 -0
  349. package/dist/server/node_modules/ink/build/wrap-text.js.map +1 -0
  350. package/dist/server/node_modules/ink/build/write-synchronized.d.ts +4 -0
  351. package/dist/server/node_modules/ink/build/write-synchronized.js +7 -0
  352. package/dist/server/node_modules/ink/build/write-synchronized.js.map +1 -0
  353. package/dist/server/node_modules/{is-unicode-supported → ink}/license +1 -0
  354. package/dist/server/node_modules/ink/package.json +201 -0
  355. package/dist/server/node_modules/ink/readme.md +2636 -0
  356. package/dist/server/node_modules/slice-ansi/index.d.ts +19 -0
  357. package/dist/server/node_modules/slice-ansi/index.js +260 -0
  358. package/dist/server/node_modules/{is-fullwidth-code-point → slice-ansi}/license +1 -0
  359. package/dist/server/node_modules/slice-ansi/package.json +59 -0
  360. package/dist/server/node_modules/slice-ansi/readme.md +54 -0
  361. package/dist/server/node_modules/slice-ansi/tokenize-ansi.js +752 -0
  362. package/dist/server/server.js +1 -1
  363. package/package.json +1 -1
  364. package/dist/client/assets/SearchMd-VdXbz8fL.js +0 -1
  365. package/dist/client/assets/XCircle-BiHPX6_R.js +0 -1
  366. package/dist/client/assets/agent-icon-DCE-D-qC.js +0 -1
  367. package/dist/client/assets/agents-list-8_yOp3iD.js +0 -1
  368. package/dist/client/assets/ai-providers-DxQNSEJT.js +0 -1
  369. package/dist/client/assets/automation-list-row-BWjwKsQ5.js +0 -1
  370. package/dist/client/assets/automations-D6LOd0hH.js +0 -1
  371. package/dist/client/assets/brand-context-CnnwTWNT.js +0 -1
  372. package/dist/client/assets/collection-detail-BTibo6D3.js +0 -1
  373. package/dist/client/assets/collection-display-button-CfjJ9SIP.js +0 -1
  374. package/dist/client/assets/collection-table-wrapper-B4l_6tOy.js +0 -1
  375. package/dist/client/assets/command-BPSv-8-5.js +0 -1
  376. package/dist/client/assets/connection-detail-DgKIsKao.js +0 -1
  377. package/dist/client/assets/connections-rM_I7gvv.js +0 -1
  378. package/dist/client/assets/dropdown-menu-DO26Q0bD.js +0 -1
  379. package/dist/client/assets/general-VnUbEBHT.js +0 -1
  380. package/dist/client/assets/index-DeSgX7LP.css +0 -1
  381. package/dist/client/assets/members-6PieW-Nu.js +0 -3
  382. package/dist/client/assets/project-app-view-EMrqjiux.js +0 -1
  383. package/dist/client/assets/registry-CYL2cMC0.js +0 -2
  384. package/dist/client/assets/settings-layout-hwviWS6Q.js +0 -1
  385. package/dist/client/assets/store-registry-DAeO63_G.js +0 -2
  386. package/dist/client/assets/tools-list-C0RCBhOc.js +0 -1
  387. package/dist/client/assets/useInfiniteQuery-Ci00Hw-m.js +0 -1
  388. package/dist/client/assets/workflow-BrBlpNSn.js +0 -1
  389. package/dist/client/assets/workflow-detail-NqGVn5hy.js +0 -1
  390. package/dist/server/node_modules/ansi-regex/index.d.ts +0 -33
  391. package/dist/server/node_modules/ansi-regex/index.js +0 -14
  392. package/dist/server/node_modules/ansi-regex/package.json +0 -61
  393. package/dist/server/node_modules/ansi-regex/readme.md +0 -66
  394. package/dist/server/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  395. package/dist/server/node_modules/emoji-regex/README.md +0 -107
  396. package/dist/server/node_modules/emoji-regex/index.d.ts +0 -3
  397. package/dist/server/node_modules/emoji-regex/index.js +0 -4
  398. package/dist/server/node_modules/emoji-regex/index.mjs +0 -4
  399. package/dist/server/node_modules/emoji-regex/package.json +0 -45
  400. package/dist/server/node_modules/environment/index.d.ts +0 -74
  401. package/dist/server/node_modules/environment/index.js +0 -47
  402. package/dist/server/node_modules/environment/package.json +0 -74
  403. package/dist/server/node_modules/environment/readme.md +0 -94
  404. package/dist/server/node_modules/escape-string-regexp/index.d.ts +0 -18
  405. package/dist/server/node_modules/escape-string-regexp/index.js +0 -11
  406. package/dist/server/node_modules/escape-string-regexp/license +0 -9
  407. package/dist/server/node_modules/escape-string-regexp/package.json +0 -43
  408. package/dist/server/node_modules/escape-string-regexp/readme.md +0 -29
  409. package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  410. package/dist/server/node_modules/is-fullwidth-code-point/index.js +0 -12
  411. package/dist/server/node_modules/is-fullwidth-code-point/readme.md +0 -31
  412. package/dist/server/node_modules/is-unicode-supported/index.d.ts +0 -12
  413. package/dist/server/node_modules/is-unicode-supported/index.js +0 -21
  414. package/dist/server/node_modules/is-unicode-supported/package.json +0 -47
  415. package/dist/server/node_modules/is-unicode-supported/readme.md +0 -35
  416. package/dist/server/node_modules/restore-cursor/index.d.ts +0 -11
  417. package/dist/server/node_modules/restore-cursor/index.js +0 -11
  418. package/dist/server/node_modules/restore-cursor/license +0 -9
  419. package/dist/server/node_modules/restore-cursor/package.json +0 -55
  420. package/dist/server/node_modules/restore-cursor/readme.md +0 -31
  421. package/dist/server/node_modules/string-width/index.d.ts +0 -39
  422. package/dist/server/node_modules/string-width/index.js +0 -82
  423. package/dist/server/node_modules/string-width/license +0 -9
  424. package/dist/server/node_modules/string-width/package.json +0 -64
  425. package/dist/server/node_modules/string-width/readme.md +0 -66
  426. /package/dist/server/node_modules/{ansi-regex → figures}/license +0 -0
  427. /package/dist/server/node_modules/{environment → get-east-asian-width}/license +0 -0
@@ -1 +1 @@
1
- import{e as Q,j as t,b as W,r as Y,a as q,l as E,B as G,n as H,K as V,c as U}from"./index-CNolBSVE.js";import{R as X}from"./required-auth-layout-D-NWWr5P.js";import{I as Z}from"./input-B8j75XZ_.js";import{L as ee}from"./label-KH35YAYU.js";import{t as te,a as se}from"./Users03-Bgfd1KM0.js";import{i as ae}from"./CheckCircle-BFRWTTWo.js";import{t as ie,a as ne}from"./Palette-B46VjX8F.js";const oe=new Set(["gmail.com","googlemail.com","outlook.com","hotmail.com","live.com","yahoo.com","yahoo.co.uk","icloud.com","me.com","mac.com","aol.com","protonmail.com","proton.me","zoho.com","yandex.com","mail.com","gmx.com","gmx.net","tutanota.com","fastmail.com"]);function B(e){return e.toLowerCase().trim().replace(/[^a-z0-9\s_-]+/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function be(){const e=Q.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(X,{children:t.jsx(re,{})}),e[0]=s):s=e[0],s}function re(){const e=Q.c(62),{data:s,isPending:m}=W.useSession(),[a,P]=Y.useState(""),c=s?.user?.email??"";let o,i,r,d,g;e[0]!==c?(i=c.split("@")[1]?.toLowerCase()??"",r=i&&!oe.has(i),o=i.split(".")[0]?.charAt(0).toUpperCase()+(i.split(".")[0]?.slice(1)??""),g=H,d=V.domainLookup(i),e[0]=c,e[1]=o,e[2]=i,e[3]=r,e[4]=d,e[5]=g):(o=e[1],i=e[2],r=e[3],d=e[4],g=e[5]);const R=!!r;let C;e[6]!==d||e[7]!==R?(C={queryKey:d,queryFn:ue,enabled:R},e[6]=d,e[7]=R,e[8]=C):C=e[8];const{data:u,isLoading:T}=g(C);let k;e[9]===Symbol.for("react.memo_cache_sentinel")?(k={mutationFn:de},e[9]=k):k=e[9];const x=q(k);let L;e[10]===Symbol.for("react.memo_cache_sentinel")?(L={mutationFn:me,onSuccess:ce},e[10]=L):L=e[10];const f=q(L);let O;e[11]===Symbol.for("react.memo_cache_sentinel")?(O={mutationFn:le},e[11]=O):O=e[11];const n=q(O);if(m){let l;return e[12]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx("div",{className:"flex items-center justify-center min-h-screen",children:t.jsx(E,{size:20,className:"animate-spin text-muted-foreground"})}),e[12]=l):l=e[12],l}const F=u?.found&&u?.organization,J=F&&u?.autoJoinEnabled;if(f.isPending){let l;return e[13]!==o||e[14]!==i?(l=t.jsx(xe,{domainLabel:o,domain:i}),e[13]=o,e[14]=i,e[15]=l):l=e[15],l}let $;e[16]===Symbol.for("react.memo_cache_sentinel")?($=t.jsxs("div",{className:"space-y-1.5",children:[t.jsx("h1",{className:"text-lg font-medium",children:"Get started"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Create or join an organization to start using Studio."})]}),e[16]=$):$=e[16];let h;e[17]!==J||e[18]!==o||e[19]!==T||e[20]!==u||e[21]!==f||e[22]!==i||e[23]!==F||e[24]!==r||e[25]!==x?(h=T?t.jsxs("div",{className:"flex items-center gap-2 py-4",children:[t.jsx(E,{size:14,className:"animate-spin text-muted-foreground"}),t.jsxs("span",{className:"text-sm text-muted-foreground",children:["Checking ",i,"..."]})]}):J?t.jsxs("div",{className:"space-y-3",children:[t.jsxs("div",{className:"space-y-1",children:[t.jsx("p",{className:"text-sm font-medium",children:u.organization.name}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"Your email matches this organization. Join to get started."})]}),t.jsx(G,{className:"w-full",onClick:()=>x.mutate(),disabled:x.isPending,children:x.isPending?t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(E,{size:14,className:"animate-spin"})," Joining..."]}):`Join ${u.organization.name}`}),x.error&&t.jsx("p",{className:"text-xs text-destructive",children:x.error instanceof Error?x.error.message:"Failed to join organization"})]}):F?t.jsxs("div",{className:"space-y-1.5",children:[t.jsx("p",{className:"text-sm font-medium",children:u.organization.name}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"Your email domain matches this organization, but auto-join is not enabled. Contact an admin for an invitation."})]}):r?t.jsxs("div",{className:"space-y-3",children:[t.jsxs("div",{className:"space-y-1",children:[t.jsxs("p",{className:"text-sm font-medium",children:["Set up ",o]}),t.jsxs("p",{className:"text-xs text-muted-foreground",children:["Create your organization and claim ",i,". Team members with matching emails will be able to join automatically."]})]}),t.jsxs(G,{className:"w-full",onClick:()=>f.mutate(),children:["Set up ",o]}),f.error&&t.jsx("p",{className:"text-xs text-destructive",children:f.error instanceof Error?f.error.message:"Failed to set up organization"})]}):null,e[17]=J,e[18]=o,e[19]=T,e[20]=u,e[21]=f,e[22]=i,e[23]=F,e[24]=r,e[25]=x,e[26]=h):h=e[26];let p;e[27]!==r?(p=r&&t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:"h-px flex-1 bg-border"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"or"}),t.jsx("div",{className:"h-px flex-1 bg-border"})]}),e[27]=r,e[28]=p):p=e[28];let j;e[29]!==n||e[30]!==a?(j=l=>{l.preventDefault(),a.trim()&&n.mutate(a.trim())},e[29]=n,e[30]=a,e[31]=j):j=e[31];let M;e[32]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsx(ee,{htmlFor:"org-name",className:"text-xs text-muted-foreground",children:"Organization name"}),e[32]=M):M=e[32];const D=r?o:"My Organization";let A;e[33]===Symbol.for("react.memo_cache_sentinel")?(A=l=>P(l.target.value),e[33]=A):A=e[33];let y;e[34]!==n.isPending||e[35]!==a||e[36]!==D?(y=t.jsx(Z,{id:"org-name",placeholder:D,value:a,onChange:A,disabled:n.isPending}),e[34]=n.isPending,e[35]=a,e[36]=D,e[37]=y):y=e[37];let N;e[38]!==a?(N=a&&t.jsxs("p",{className:"text-xs text-muted-foreground",children:[window.location.origin,"/",B(a)]}),e[38]=a,e[39]=N):N=e[39];let b;e[40]!==y||e[41]!==N?(b=t.jsxs("div",{className:"space-y-1.5",children:[M,y,N]}),e[40]=y,e[41]=N,e[42]=b):b=e[42];let w;e[43]!==n.error?(w=n.error&&t.jsx("p",{className:"text-xs text-destructive",children:n.error instanceof Error?n.error.message:"Failed to create organization"}),e[43]=n.error,e[44]=w):w=e[44];let v;e[45]!==n.isPending||e[46]!==a?(v=!a.trim()||!B(a)||n.isPending,e[45]=n.isPending,e[46]=a,e[47]=v):v=e[47];let S;e[48]!==n.isPending?(S=n.isPending?t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(E,{size:14,className:"animate-spin"})," Creating..."]}):"Create Organization",e[48]=n.isPending,e[49]=S):S=e[49];let z;e[50]!==v||e[51]!==S?(z=t.jsx(G,{type:"submit",variant:"outline",className:"w-full",disabled:v,children:S}),e[50]=v,e[51]=S,e[52]=z):z=e[52];let _;e[53]!==j||e[54]!==b||e[55]!==w||e[56]!==z?(_=t.jsxs("form",{className:"space-y-3",onSubmit:j,children:[b,w,z]}),e[53]=j,e[54]=b,e[55]=w,e[56]=z,e[57]=_):_=e[57];let I;return e[58]!==_||e[59]!==h||e[60]!==p?(I=t.jsx("div",{className:"flex min-h-screen items-center justify-center p-4",children:t.jsxs("div",{className:"w-full max-w-sm space-y-6",children:[$,h,p,_]})}),e[58]=_,e[59]=h,e[60]=p,e[61]=I):I=e[61],I}async function le(e){const s=B(e);if(!s)throw new Error("Invalid organization name");const m=await W.organization.create({name:e,slug:s});if(m?.error)throw new Error(m.error.message||"Failed to create organization");window.location.href=`/${m?.data?.slug??s}`}function ce(e){e.slug&&(window.location.href=`/${e.slug}`)}async function me(){const e=await fetch("/api/auth/custom/domain-setup",{method:"POST",credentials:"include"}),s=await e.json();if(!e.ok||!s.success)throw new Error(s.error||"Failed to set up organization");return s}async function de(){const e=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include"}),s=await e.json();if(!e.ok||!s.success)throw new Error(s.error||"Failed to join organization");window.location.href=`/${s.slug}`}async function ue(){return(await fetch("/api/auth/custom/domain-lookup",{credentials:"include"})).json()}const K=[{icon:te,label:"Creating organization",delay:0},{icon:ie,label:"Claiming email domain",delay:1500},{icon:se,label:"Enabling auto-join for your team",delay:3e3},{icon:ne,label:"Extracting brand context",delay:4500}];function xe({domainLabel:e,domain:s}){const[m,a]=Y.useState(0),P=Y.useRef(!1);if(!P.current){P.current=!0;for(let c=1;c<K.length;c++)setTimeout(()=>a(c),K[c].delay)}return t.jsx("div",{className:"flex min-h-screen items-center justify-center p-4",children:t.jsxs("div",{className:"w-full max-w-sm space-y-8",children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsxs("h1",{className:"text-lg font-medium",children:["Setting up ",e]}),t.jsxs("p",{className:"text-sm text-muted-foreground",children:["Getting everything ready from ",s]})]}),t.jsx("div",{className:"space-y-4",children:K.map((c,o)=>{const i=c.icon,r=o===m,d=o<m,g=o>m;return t.jsxs("div",{className:U("flex items-center gap-3 transition-opacity duration-500",g?"opacity-30":"opacity-100"),children:[t.jsx("div",{className:"flex-shrink-0 w-8 h-8 rounded-lg flex items-center justify-center bg-muted",children:d?t.jsx(ae,{size:16,className:"text-primary transition-colors duration-300"}):r?t.jsx(E,{size:16,className:"animate-spin text-primary"}):t.jsx(i,{size:16,className:"text-muted-foreground"})}),t.jsx("span",{className:U("text-sm transition-colors duration-300",r?"text-foreground font-medium":"text-muted-foreground"),children:c.label})]},c.label)})})]})})}export{be as default};
1
+ import{e as Q,j as t,b as W,r as Y,a as q,l as E,B as G,n as H,K as V,c as U}from"./index-DhJrYN5i.js";import{R as X}from"./required-auth-layout-CP-yDaO3.js";import{I as Z}from"./input-COFLoOjb.js";import{L as ee}from"./label-BZVcstmy.js";import{t as te,a as se}from"./Users03-DwNyb_q2.js";import{i as ae}from"./CheckCircle-88bls7UK.js";import{t as ie,a as ne}from"./Palette-DuWQiO51.js";const oe=new Set(["gmail.com","googlemail.com","outlook.com","hotmail.com","live.com","yahoo.com","yahoo.co.uk","icloud.com","me.com","mac.com","aol.com","protonmail.com","proton.me","zoho.com","yandex.com","mail.com","gmx.com","gmx.net","tutanota.com","fastmail.com"]);function B(e){return e.toLowerCase().trim().replace(/[^a-z0-9\s_-]+/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function be(){const e=Q.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(X,{children:t.jsx(re,{})}),e[0]=s):s=e[0],s}function re(){const e=Q.c(62),{data:s,isPending:m}=W.useSession(),[a,P]=Y.useState(""),c=s?.user?.email??"";let o,i,r,d,g;e[0]!==c?(i=c.split("@")[1]?.toLowerCase()??"",r=i&&!oe.has(i),o=i.split(".")[0]?.charAt(0).toUpperCase()+(i.split(".")[0]?.slice(1)??""),g=H,d=V.domainLookup(i),e[0]=c,e[1]=o,e[2]=i,e[3]=r,e[4]=d,e[5]=g):(o=e[1],i=e[2],r=e[3],d=e[4],g=e[5]);const R=!!r;let C;e[6]!==d||e[7]!==R?(C={queryKey:d,queryFn:ue,enabled:R},e[6]=d,e[7]=R,e[8]=C):C=e[8];const{data:u,isLoading:T}=g(C);let k;e[9]===Symbol.for("react.memo_cache_sentinel")?(k={mutationFn:de},e[9]=k):k=e[9];const x=q(k);let L;e[10]===Symbol.for("react.memo_cache_sentinel")?(L={mutationFn:me,onSuccess:ce},e[10]=L):L=e[10];const f=q(L);let O;e[11]===Symbol.for("react.memo_cache_sentinel")?(O={mutationFn:le},e[11]=O):O=e[11];const n=q(O);if(m){let l;return e[12]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx("div",{className:"flex items-center justify-center min-h-screen",children:t.jsx(E,{size:20,className:"animate-spin text-muted-foreground"})}),e[12]=l):l=e[12],l}const F=u?.found&&u?.organization,J=F&&u?.autoJoinEnabled;if(f.isPending){let l;return e[13]!==o||e[14]!==i?(l=t.jsx(xe,{domainLabel:o,domain:i}),e[13]=o,e[14]=i,e[15]=l):l=e[15],l}let $;e[16]===Symbol.for("react.memo_cache_sentinel")?($=t.jsxs("div",{className:"space-y-1.5",children:[t.jsx("h1",{className:"text-lg font-medium",children:"Get started"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Create or join an organization to start using Studio."})]}),e[16]=$):$=e[16];let h;e[17]!==J||e[18]!==o||e[19]!==T||e[20]!==u||e[21]!==f||e[22]!==i||e[23]!==F||e[24]!==r||e[25]!==x?(h=T?t.jsxs("div",{className:"flex items-center gap-2 py-4",children:[t.jsx(E,{size:14,className:"animate-spin text-muted-foreground"}),t.jsxs("span",{className:"text-sm text-muted-foreground",children:["Checking ",i,"..."]})]}):J?t.jsxs("div",{className:"space-y-3",children:[t.jsxs("div",{className:"space-y-1",children:[t.jsx("p",{className:"text-sm font-medium",children:u.organization.name}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"Your email matches this organization. Join to get started."})]}),t.jsx(G,{className:"w-full",onClick:()=>x.mutate(),disabled:x.isPending,children:x.isPending?t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(E,{size:14,className:"animate-spin"})," Joining..."]}):`Join ${u.organization.name}`}),x.error&&t.jsx("p",{className:"text-xs text-destructive",children:x.error instanceof Error?x.error.message:"Failed to join organization"})]}):F?t.jsxs("div",{className:"space-y-1.5",children:[t.jsx("p",{className:"text-sm font-medium",children:u.organization.name}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"Your email domain matches this organization, but auto-join is not enabled. Contact an admin for an invitation."})]}):r?t.jsxs("div",{className:"space-y-3",children:[t.jsxs("div",{className:"space-y-1",children:[t.jsxs("p",{className:"text-sm font-medium",children:["Set up ",o]}),t.jsxs("p",{className:"text-xs text-muted-foreground",children:["Create your organization and claim ",i,". Team members with matching emails will be able to join automatically."]})]}),t.jsxs(G,{className:"w-full",onClick:()=>f.mutate(),children:["Set up ",o]}),f.error&&t.jsx("p",{className:"text-xs text-destructive",children:f.error instanceof Error?f.error.message:"Failed to set up organization"})]}):null,e[17]=J,e[18]=o,e[19]=T,e[20]=u,e[21]=f,e[22]=i,e[23]=F,e[24]=r,e[25]=x,e[26]=h):h=e[26];let p;e[27]!==r?(p=r&&t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:"h-px flex-1 bg-border"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"or"}),t.jsx("div",{className:"h-px flex-1 bg-border"})]}),e[27]=r,e[28]=p):p=e[28];let j;e[29]!==n||e[30]!==a?(j=l=>{l.preventDefault(),a.trim()&&n.mutate(a.trim())},e[29]=n,e[30]=a,e[31]=j):j=e[31];let M;e[32]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsx(ee,{htmlFor:"org-name",className:"text-xs text-muted-foreground",children:"Organization name"}),e[32]=M):M=e[32];const D=r?o:"My Organization";let A;e[33]===Symbol.for("react.memo_cache_sentinel")?(A=l=>P(l.target.value),e[33]=A):A=e[33];let y;e[34]!==n.isPending||e[35]!==a||e[36]!==D?(y=t.jsx(Z,{id:"org-name",placeholder:D,value:a,onChange:A,disabled:n.isPending}),e[34]=n.isPending,e[35]=a,e[36]=D,e[37]=y):y=e[37];let N;e[38]!==a?(N=a&&t.jsxs("p",{className:"text-xs text-muted-foreground",children:[window.location.origin,"/",B(a)]}),e[38]=a,e[39]=N):N=e[39];let b;e[40]!==y||e[41]!==N?(b=t.jsxs("div",{className:"space-y-1.5",children:[M,y,N]}),e[40]=y,e[41]=N,e[42]=b):b=e[42];let w;e[43]!==n.error?(w=n.error&&t.jsx("p",{className:"text-xs text-destructive",children:n.error instanceof Error?n.error.message:"Failed to create organization"}),e[43]=n.error,e[44]=w):w=e[44];let v;e[45]!==n.isPending||e[46]!==a?(v=!a.trim()||!B(a)||n.isPending,e[45]=n.isPending,e[46]=a,e[47]=v):v=e[47];let S;e[48]!==n.isPending?(S=n.isPending?t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(E,{size:14,className:"animate-spin"})," Creating..."]}):"Create Organization",e[48]=n.isPending,e[49]=S):S=e[49];let z;e[50]!==v||e[51]!==S?(z=t.jsx(G,{type:"submit",variant:"outline",className:"w-full",disabled:v,children:S}),e[50]=v,e[51]=S,e[52]=z):z=e[52];let _;e[53]!==j||e[54]!==b||e[55]!==w||e[56]!==z?(_=t.jsxs("form",{className:"space-y-3",onSubmit:j,children:[b,w,z]}),e[53]=j,e[54]=b,e[55]=w,e[56]=z,e[57]=_):_=e[57];let I;return e[58]!==_||e[59]!==h||e[60]!==p?(I=t.jsx("div",{className:"flex min-h-screen items-center justify-center p-4",children:t.jsxs("div",{className:"w-full max-w-sm space-y-6",children:[$,h,p,_]})}),e[58]=_,e[59]=h,e[60]=p,e[61]=I):I=e[61],I}async function le(e){const s=B(e);if(!s)throw new Error("Invalid organization name");const m=await W.organization.create({name:e,slug:s});if(m?.error)throw new Error(m.error.message||"Failed to create organization");window.location.href=`/${m?.data?.slug??s}`}function ce(e){e.slug&&(window.location.href=`/${e.slug}`)}async function me(){const e=await fetch("/api/auth/custom/domain-setup",{method:"POST",credentials:"include"}),s=await e.json();if(!e.ok||!s.success)throw new Error(s.error||"Failed to set up organization");return s}async function de(){const e=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include"}),s=await e.json();if(!e.ok||!s.success)throw new Error(s.error||"Failed to join organization");window.location.href=`/${s.slug}`}async function ue(){return(await fetch("/api/auth/custom/domain-lookup",{credentials:"include"})).json()}const K=[{icon:te,label:"Creating organization",delay:0},{icon:ie,label:"Claiming email domain",delay:1500},{icon:se,label:"Enabling auto-join for your team",delay:3e3},{icon:ne,label:"Extracting brand context",delay:4500}];function xe({domainLabel:e,domain:s}){const[m,a]=Y.useState(0),P=Y.useRef(!1);if(!P.current){P.current=!0;for(let c=1;c<K.length;c++)setTimeout(()=>a(c),K[c].delay)}return t.jsx("div",{className:"flex min-h-screen items-center justify-center p-4",children:t.jsxs("div",{className:"w-full max-w-sm space-y-8",children:[t.jsxs("div",{className:"space-y-1.5",children:[t.jsxs("h1",{className:"text-lg font-medium",children:["Setting up ",e]}),t.jsxs("p",{className:"text-sm text-muted-foreground",children:["Getting everything ready from ",s]})]}),t.jsx("div",{className:"space-y-4",children:K.map((c,o)=>{const i=c.icon,r=o===m,d=o<m,g=o>m;return t.jsxs("div",{className:U("flex items-center gap-3 transition-opacity duration-500",g?"opacity-30":"opacity-100"),children:[t.jsx("div",{className:"flex-shrink-0 w-8 h-8 rounded-lg flex items-center justify-center bg-muted",children:d?t.jsx(ae,{size:16,className:"text-primary transition-colors duration-300"}):r?t.jsx(E,{size:16,className:"animate-spin text-primary"}):t.jsx(i,{size:16,className:"text-muted-foreground"})}),t.jsx("span",{className:U("text-sm transition-colors duration-300",r?"text-foreground font-medium":"text-muted-foreground"),children:c.label})]},c.label)})})]})})}export{be as default};
@@ -1 +1 @@
1
- import{e as o,j as r,O as s}from"./index-CNolBSVE.js";function m(){const e=o.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx(s,{}),e[0]=t):t=e[0],t}export{m as default};
1
+ import{e as o,j as r,O as s}from"./index-DhJrYN5i.js";function m(){const e=o.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx(s,{}),e[0]=t):t=e[0],t}export{m as default};
@@ -1 +1 @@
1
- import{e as f,g as p,bL as x,j as r,r as c,l as u}from"./index-CNolBSVE.js";import{P as g}from"./plugin-layout-B0f9qTk_.js";import"./use-connection-DIvNoxL5.js";import"./use-collections-BTXUmiDi.js";import"./constants-D8VkIs2c.js";import"./Settings02-C88OtRRq.js";import"./index-PT6VRyBL.js";import"./use-mobile-Ctb5URy7.js";import"./X-BWV-b86T.js";function _(){const e=f.c(13);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={from:"/shell/$org/plugins/$pluginId"},e[0]=i):i=e[0];const{pluginId:s}=p(i);let l;e[1]!==s?(l=x.find(n=>n.id===s),e[1]=s,e[2]=l):l=e[2];const t=l;if(t?.renderHeader&&t?.renderEmptyState&&t?.bindingName){let n;e[3]===Symbol.for("react.memo_cache_sentinel")?(n=r.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[r.jsx(u,{size:32,className:"animate-spin text-muted-foreground mb-4"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading plugin..."})]}),e[3]=n):n=e[3];let d;return e[4]!==t.bindingName||e[5]!==t.renderEmptyState||e[6]!==t.renderHeader?(d=r.jsx(c.Suspense,{fallback:n,children:r.jsx(g,{bindingName:t.bindingName,renderHeader:t.renderHeader,renderEmptyState:t.renderEmptyState})}),e[4]=t.bindingName,e[5]=t.renderEmptyState,e[6]=t.renderHeader,e[7]=d):d=e[7],d}const a=t?.LayoutComponent;if(!a){let n;return e[8]!==s?(n=r.jsx("div",{className:"flex items-center justify-center h-full",children:r.jsxs("p",{className:"text-sm text-muted-foreground",children:['Plugin "',s,'" not found']})}),e[8]=s,e[9]=n):n=e[9],n}let m;e[10]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[r.jsx(u,{size:32,className:"animate-spin text-muted-foreground mb-4"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading plugin..."})]}),e[10]=m):m=e[10];let o;return e[11]!==a?(o=r.jsx(c.Suspense,{fallback:m,children:r.jsx(a,{})}),e[11]=a,e[12]=o):o=e[12],o}export{_ as default};
1
+ import{e as f,g as p,bL as x,j as r,r as c,l as u}from"./index-DhJrYN5i.js";import{P as g}from"./plugin-layout-CUFHRJeM.js";import"./use-connection-MU3rXx28.js";import"./use-collections-DvPoAlor.js";import"./constants-aD7HJ6sY.js";import"./Settings02-MyfUtBA4.js";import"./index-DvgxnJsz.js";import"./use-mobile-C4Yo3nsX.js";import"./X-BuUY-erD.js";function _(){const e=f.c(13);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={from:"/shell/$org/plugins/$pluginId"},e[0]=i):i=e[0];const{pluginId:s}=p(i);let l;e[1]!==s?(l=x.find(n=>n.id===s),e[1]=s,e[2]=l):l=e[2];const t=l;if(t?.renderHeader&&t?.renderEmptyState&&t?.bindingName){let n;e[3]===Symbol.for("react.memo_cache_sentinel")?(n=r.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[r.jsx(u,{size:32,className:"animate-spin text-muted-foreground mb-4"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading plugin..."})]}),e[3]=n):n=e[3];let d;return e[4]!==t.bindingName||e[5]!==t.renderEmptyState||e[6]!==t.renderHeader?(d=r.jsx(c.Suspense,{fallback:n,children:r.jsx(g,{bindingName:t.bindingName,renderHeader:t.renderHeader,renderEmptyState:t.renderEmptyState})}),e[4]=t.bindingName,e[5]=t.renderEmptyState,e[6]=t.renderHeader,e[7]=d):d=e[7],d}const a=t?.LayoutComponent;if(!a){let n;return e[8]!==s?(n=r.jsx("div",{className:"flex items-center justify-center h-full",children:r.jsxs("p",{className:"text-sm text-muted-foreground",children:['Plugin "',s,'" not found']})}),e[8]=s,e[9]=n):n=e[9],n}let m;e[10]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[r.jsx(u,{size:32,className:"animate-spin text-muted-foreground mb-4"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading plugin..."})]}),e[10]=m):m=e[10];let o;return e[11]!==a?(o=r.jsx(c.Suspense,{fallback:m,children:r.jsx(a,{})}),e[11]=a,e[12]=o):o=e[12],o}export{_ as default};
@@ -1 +1 @@
1
- import{e as o,j as t,a8 as a}from"./index-CNolBSVE.js";function r(){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(a,{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{r as default};
1
+ import{e as o,j as t,a8 as a}from"./index-DhJrYN5i.js";function r(){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(a,{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{r as default};
@@ -1 +1 @@
1
- import{e as S,j as s,r as w,a8 as y}from"./index-CNolBSVE.js";import{i as R,t as _}from"./ChevronDown-BqFspEzt.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,a8 as y}from"./index-DhJrYN5i.js";import{i as R,t as _}from"./ChevronDown-Jd-cYHC-.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,s 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-CNolBSVE.js";import{u as ae}from"./use-connection-DIvNoxL5.js";import{S as ce,u as ue,k as de}from"./constants-D8VkIs2c.js";import{a as me}from"./Settings02-C88OtRRq.js";import{P as z}from"./index-PT6VRyBL.js";const fe=B.createContext(null);function F(i){const e=D.c(3),{value:h,children:m}=i,n=h;let l;return e[0]!==m||e[1]!==n?(l=s.jsx(fe.Provider,{value:n,children:m}),e[0]=m,e[1]=n,e[2]=l):l=e[2],l}B.createContext(null);function ge(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(59),{bindingName:h,renderEmptyState:m}=i,{org:n,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:f}=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:g}=ne.useSession();let _;e[4]!==n.id?(_={connectionId:ce,orgId:n.id},e[4]=n.id,e[5]=_):_=e[5];const O=ue(_);let x;e[6]!==f||e[7]!==l.id?(x=se.projectPluginConfig(l.id??"",f),e[6]=f,e[7]=l.id,e[8]=x):x=e[8];let p;e[9]!==f||e[10]!==l.id||e[11]!==O?(p=async()=>{const t=await O.callTool({name:"VIRTUAL_MCP_PLUGIN_CONFIG_GET",arguments:{virtualMcpId:l.id,pluginId:f}});return t.structuredContent??t},e[9]=f,e[10]=l.id,e[11]=O,e[12]=p):p=e[12];const U=!!l.id&&!!f;let v;e[13]!==x||e[14]!==p||e[15]!==U?(v={queryKey:x,queryFn:p,enabled:U},e[13]=x,e[14]=p,e[15]=U,e[16]=v):v=e[16];const{data:V,isLoading:Q}=ie(v),R=V?.config?.connectionId,C=R?K.find(t=>t.id===R):null,y=de({connectionId:C?.id,orgId:n.id});let b;e[17]!==g?(b=g?.user?{user:{id:g.user.id,name:g.user.name,email:g.user.email,image:g.user.image}}:null,e[17]=g,e[18]=b):b=e[18];const a=b;let N;e[19]!==n.id||e[20]!==n.name||e[21]!==n.slug?(N={id:n.id,slug:n.slug,name:n.name},e[19]=n.id,e[20]=n.name,e[21]=n.slug,e[22]=N):N=e[22];const c=N;if(Q){let t;return e[23]===Symbol.for("react.memo_cache_sentinel")?(t=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[23]=t):t=e[23],t}if(K.length===0){let t;e[24]!==c||e[25]!==a?(t={connectionId:null,connection:null,toolCaller:null,org:c,session:a},e[24]=c,e[25]=a,e[26]=t):t=e[26];const u=t;let r;e[27]!==m?(r=m(),e[27]=m,e[28]=r):r=e[28];let o;e[29]!==r?(o=s.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:r}),e[29]=r,e[30]=o):o=e[30];let d;return e[31]!==u||e[32]!==o?(d=s.jsx(F,{value:u,children:o}),e[31]=u,e[32]=o,e[33]=d):d=e[33],d}if(!C){let t;e[34]!==c||e[35]!==a?(t={connectionId:null,connection:null,toolCaller:null,org:c,session:a},e[34]=c,e[35]=a,e[36]=t):t=e[36];const u=t;let r;e[37]===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[37]=r):r=e[37];let o;e[38]!==k||e[39]!==n.slug||e[40]!==T||e[41]!==l.id||e[42]!==w||e[43]!==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??n.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[38]=k,e[39]=n.slug,e[40]=T,e[41]=l.id,e[42]=w,e[43]=G,e[44]=o):o=e[44];let d;return e[45]!==u||e[46]!==o?(d=s.jsx(F,{value:u,children:o}),e[45]=u,e[46]=o,e[47]=d):d=e[47],d}const Y=C.id,$=ge(C);let S;e[48]!==y?(S=(t,u)=>y?y.callTool({name:t,arguments:u}).then(xe):Promise.reject(new Error("MCP client is not available")),e[48]=y,e[49]=S):S=e[49];const q=S;let E;e[50]!==C||e[51]!==c||e[52]!==a||e[53]!==$||e[54]!==q?(E={connectionId:Y,connection:$,toolCaller:q,org:c,session:a},e[50]=C,e[51]=c,e[52]=a,e[53]=$,e[54]=q,e[55]=E):E=e[55];const A=E;let L;e[56]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(z,{children:s.jsx(z.Content,{children:s.jsx(le,{})})}),e[56]=L):L=e[56];let M;return e[57]!==A?(M=s.jsx(F,{value:A,children:L}),e[57]=A,e[58]=M):M=e[58],M}function xe(i){return i.structuredContent??i}export{_e as P};
1
+ import{r as B,e as D,j as s,s 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-DhJrYN5i.js";import{u as ae}from"./use-connection-MU3rXx28.js";import{S as ce,u as ue,k as de}from"./constants-aD7HJ6sY.js";import{a as me}from"./Settings02-MyfUtBA4.js";import{P as z}from"./index-DvgxnJsz.js";const fe=B.createContext(null);function F(i){const e=D.c(3),{value:h,children:m}=i,n=h;let l;return e[0]!==m||e[1]!==n?(l=s.jsx(fe.Provider,{value:n,children:m}),e[0]=m,e[1]=n,e[2]=l):l=e[2],l}B.createContext(null);function ge(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(59),{bindingName:h,renderEmptyState:m}=i,{org:n,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:f}=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:g}=ne.useSession();let _;e[4]!==n.id?(_={connectionId:ce,orgId:n.id},e[4]=n.id,e[5]=_):_=e[5];const O=ue(_);let x;e[6]!==f||e[7]!==l.id?(x=se.projectPluginConfig(l.id??"",f),e[6]=f,e[7]=l.id,e[8]=x):x=e[8];let p;e[9]!==f||e[10]!==l.id||e[11]!==O?(p=async()=>{const t=await O.callTool({name:"VIRTUAL_MCP_PLUGIN_CONFIG_GET",arguments:{virtualMcpId:l.id,pluginId:f}});return t.structuredContent??t},e[9]=f,e[10]=l.id,e[11]=O,e[12]=p):p=e[12];const U=!!l.id&&!!f;let v;e[13]!==x||e[14]!==p||e[15]!==U?(v={queryKey:x,queryFn:p,enabled:U},e[13]=x,e[14]=p,e[15]=U,e[16]=v):v=e[16];const{data:V,isLoading:Q}=ie(v),R=V?.config?.connectionId,C=R?K.find(t=>t.id===R):null,y=de({connectionId:C?.id,orgId:n.id});let b;e[17]!==g?(b=g?.user?{user:{id:g.user.id,name:g.user.name,email:g.user.email,image:g.user.image}}:null,e[17]=g,e[18]=b):b=e[18];const a=b;let N;e[19]!==n.id||e[20]!==n.name||e[21]!==n.slug?(N={id:n.id,slug:n.slug,name:n.name},e[19]=n.id,e[20]=n.name,e[21]=n.slug,e[22]=N):N=e[22];const c=N;if(Q){let t;return e[23]===Symbol.for("react.memo_cache_sentinel")?(t=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[23]=t):t=e[23],t}if(K.length===0){let t;e[24]!==c||e[25]!==a?(t={connectionId:null,connection:null,toolCaller:null,org:c,session:a},e[24]=c,e[25]=a,e[26]=t):t=e[26];const u=t;let r;e[27]!==m?(r=m(),e[27]=m,e[28]=r):r=e[28];let o;e[29]!==r?(o=s.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:r}),e[29]=r,e[30]=o):o=e[30];let d;return e[31]!==u||e[32]!==o?(d=s.jsx(F,{value:u,children:o}),e[31]=u,e[32]=o,e[33]=d):d=e[33],d}if(!C){let t;e[34]!==c||e[35]!==a?(t={connectionId:null,connection:null,toolCaller:null,org:c,session:a},e[34]=c,e[35]=a,e[36]=t):t=e[36];const u=t;let r;e[37]===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[37]=r):r=e[37];let o;e[38]!==k||e[39]!==n.slug||e[40]!==T||e[41]!==l.id||e[42]!==w||e[43]!==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??n.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[38]=k,e[39]=n.slug,e[40]=T,e[41]=l.id,e[42]=w,e[43]=G,e[44]=o):o=e[44];let d;return e[45]!==u||e[46]!==o?(d=s.jsx(F,{value:u,children:o}),e[45]=u,e[46]=o,e[47]=d):d=e[47],d}const Y=C.id,$=ge(C);let S;e[48]!==y?(S=(t,u)=>y?y.callTool({name:t,arguments:u}).then(xe):Promise.reject(new Error("MCP client is not available")),e[48]=y,e[49]=S):S=e[49];const q=S;let E;e[50]!==C||e[51]!==c||e[52]!==a||e[53]!==$||e[54]!==q?(E={connectionId:Y,connection:$,toolCaller:q,org:c,session:a},e[50]=C,e[51]=c,e[52]=a,e[53]=$,e[54]=q,e[55]=E):E=e[55];const A=E;let L;e[56]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(z,{children:s.jsx(z.Content,{children:s.jsx(le,{})})}),e[56]=L):L=e[56];let M;return e[57]!==A?(M=s.jsx(F,{value:A,children:L}),e[57]=A,e[58]=M):M=e[58],M}function xe(i){return i.structuredContent??i}export{_e as P};
@@ -1 +1 @@
1
- import{r as i,aT as $,j as c,c3 as L,aU as z,b6 as A,ah as _,ai as g,c4 as b,aW as j,c5 as G,c6 as w,c7 as H,c8 as K,ao as U,c9 as W,ca as V,cb as Z,cc as q,cd as B,ce as J,e as R,c as Q}from"./index-CNolBSVE.js";var C="Popover",[E]=U(C,[w]),P=w(),[X,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(X,{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",Y=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(b,{...s,...r,ref:e})});Y.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(b,{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(j,{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(j,{present:r||s.open,children:s.modal?c.jsx(re,{...n,ref:e}):c.jsx(ne,{...n,ref:e})})});M.displayName=v;var te=W("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(Z,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(q,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:d,onDismiss:()=>f.onOpenChange(!1),children:c.jsx(B,{"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(J,{...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=Q("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,aT as $,j as c,c3 as L,aU as z,b6 as A,ah as _,ai as g,c4 as b,aW as j,c5 as G,c6 as w,c7 as H,c8 as K,ao as U,c9 as W,ca as V,cb as Z,cc as q,cd as B,ce as J,e as R,c as Q}from"./index-DhJrYN5i.js";var C="Popover",[E]=U(C,[w]),P=w(),[X,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(X,{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",Y=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(b,{...s,...r,ref:e})});Y.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(b,{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(j,{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(j,{present:r||s.open,children:s.modal?c.jsx(re,{...n,ref:e}):c.jsx(ne,{...n,ref:e})})});M.displayName=v;var te=W("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(Z,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(q,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:d,onDismiss:()=>f.onOpenChange(!1),children:c.jsx(B,{"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(J,{...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=Q("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 s,b as G,r as V,B as F,C as B,t as _,z}from"./index-CNolBSVE.js";import{P as E}from"./index-PT6VRyBL.js";import{A as H}from"./avatar-gTIcZioB.js";import{C as I,b as $,c as D,a as R,d as U}from"./card-CPVRwbgl.js";import{S as T}from"./switch-CVtXvreH.js";import{a as K,c as Y,b as q,S as J}from"./select-JPYD20it.js";import{T as M,a as L}from"./toggle-group-B6-etMEh.js";import{I as O}from"./input-B8j75XZ_.js";import{L as Q}from"./label-KH35YAYU.js";import{n as W,a as X,i as Z}from"./Sun-ndN_CHuQ.js";import{i as ee}from"./Play-9pX5w5-3.js";import{p as te,q as se}from"./question-004-sINsf4GQ.js";import"./index-sYNl3b-7.js";import"./use-mobile-Ctb5URy7.js";import"./X-BWV-b86T.js";import"./User01-DCiwOMBU.js";import"./ChevronDown-BqFspEzt.js";import"./ChevronUp-D7S3j_fa.js";function C(e){const t=k.c(22),{label:l,description:a,control:i,onClick:o,disabled:n}=e,r=n?void 0:o,d=o?"button":void 0,f=o&&!n?0:void 0;let c;t[0]!==n||t[1]!==o?(c=o&&!n?g=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),o())}:void 0,t[0]=n,t[1]=o,t[2]=c):c=t[2];const m=o&&!n?"pointer":void 0;let p;t[3]!==m?(p={cursor:m},t[3]=m,t[4]=p):p=t[4];let j;t[5]!==l?(j=s.jsx("p",{className:"text-sm text-foreground",children:l}),t[5]=l,t[6]=j):j=t[6];let x;t[7]!==a?(x=a&&s.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:a}),t[7]=a,t[8]=x):x=t[8];let u;t[9]!==j||t[10]!==x?(u=s.jsxs("div",{className:"min-w-0 flex-1",children:[j,x]}),t[9]=j,t[10]=x,t[11]=u):u=t[11];let h;t[12]!==i?(h=s.jsx("div",{onClick:le,className:"shrink-0",children:i}),t[12]=i,t[13]=h):h=t[13];let v;return t[14]!==r||t[15]!==h||t[16]!==d||t[17]!==f||t[18]!==c||t[19]!==p||t[20]!==u?(v=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/50 last:border-0",onClick:r,role:d,tabIndex:f,onKeyDown:c,style:p,children:[u,h]}),t[14]=r,t[15]=h,t[16]=d,t[17]=f,t[18]=c,t[19]=p,t[20]=u,t[21]=v):v=t[21],v}function le(e){return e.stopPropagation()}function oe(){const{data:e,isPending:t}=G.useSession(),l=e?.user,a=l?.image,[i,o]=V.useState(null),[n,r]=V.useState(!1),d=i??l?.name??"",f=i!==null&&i!==(l?.name??""),c=async()=>{if(f){r(!0);try{await G.updateUser({name:d}),_("profile_updated",{fields:["name"]}),o(null),z.success("Profile updated")}catch{z.error("Failed to update profile")}finally{r(!1)}}};return t?null:s.jsxs(I,{className:"p-6",children:[s.jsx($,{className:"p-0",children:s.jsx(D,{className:"text-sm",children:"Profile"})}),s.jsx(R,{className:"flex flex-col gap-6 p-0",children:s.jsxs("div",{className:"flex flex-col sm:flex-row items-start gap-6",children:[s.jsx(H,{url:a,fallback:l?.name??"U",shape:"circle",size:"lg",className:"shrink-0 mt-0.5"}),s.jsxs("div",{className:"flex-1 min-w-0 grid grid-cols-1 sm:grid-cols-2 gap-5 w-full",children:[s.jsxs("div",{className:"flex flex-col gap-1.5",children:[s.jsx(Q,{htmlFor:"display-name",className:"text-xs text-muted-foreground",children:"Display name"}),s.jsx(O,{id:"display-name",value:d,onChange:m=>o(m.target.value),onKeyDown:m=>{m.key==="Enter"&&c()},placeholder:"Your name"})]}),s.jsxs("div",{className:"flex flex-col gap-1.5",children:[s.jsx("span",{className:"text-xs text-muted-foreground",children:"Email"}),s.jsx("span",{className:"text-sm text-foreground/80 pt-2 break-all",children:l?.email})]})]})]})}),f&&s.jsx(U,{className:"p-0 pt-2 gap-2",children:s.jsx(F,{onClick:c,disabled:n,children:n?"Saving…":"Save"})})]})}function ne(){const e=k.c(43),[t,l]=B();let a;e[0]!==l?(a=async b=>{if(b&&await Notification.requestPermission()!=="granted"){_("preferences_notifications_permission_denied"),z.error("Notifications denied. Please enable them in your browser settings."),l(ce);return}_("preferences_notifications_toggled",{enabled:b}),l(N=>({...N,enableNotifications:b}))},e[0]=l,e[1]=a):a=e[1];const i=a;let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx($,{className:"p-0",children:s.jsx(D,{className:"text-sm",children:"Preferences"})}),e[2]=o):o=e[2];let n;e[3]!==l?(n=b=>{b&&(_("preferences_theme_changed",{to_value:b}),l(N=>({...N,theme:b})))},e[3]=l,e[4]=n):n=e[4];let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(L,{value:"light","aria-label":"Light theme",children:s.jsx(W,{size:14})}),e[5]=r):r=e[5];let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(L,{value:"dark","aria-label":"Dark theme",children:s.jsx(X,{size:14})}),e[6]=d):d=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(L,{value:"system","aria-label":"System theme",children:s.jsx(Z,{size:14})}),e[7]=f):f=e[7];let c;e[8]!==t.theme||e[9]!==n?(c=s.jsx(C,{label:"Theme",description:"Your preferred color scheme.",control:s.jsxs(M,{type:"single",size:"sm",variant:"outline",value:t.theme,onValueChange:n,children:[r,d,f]})}),e[8]=t.theme,e[9]=n,e[10]=c):c=e[10];let m;e[11]!==i||e[12]!==t.enableNotifications?(m=s.jsx(C,{label:"Notifications",description:"Receive browser notifications for important events.",disabled:typeof Notification>"u",onClick:()=>i(!t.enableNotifications),control:s.jsx(T,{disabled:typeof Notification>"u",checked:t.enableNotifications,onCheckedChange:i})}),e[11]=i,e[12]=t.enableNotifications,e[13]=m):m=e[13];let p;e[14]!==t.enableSounds||e[15]!==l?(p=()=>{_("preferences_sounds_toggled",{enabled:!t.enableSounds}),l(re)},e[14]=t.enableSounds,e[15]=l,e[16]=p):p=e[16];let j;e[17]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx("button",{type:"button","aria-label":"Preview notification sound",onClick:ie,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:s.jsx(ee,{size:11})}),e[17]=j):j=e[17];let x;e[18]!==l?(x=b=>{_("preferences_sounds_toggled",{enabled:b}),l(N=>({...N,enableSounds:b}))},e[18]=l,e[19]=x):x=e[19];let u;e[20]!==t.enableSounds||e[21]!==x?(u=s.jsxs("div",{className:"flex items-center gap-2",children:[j,s.jsx(T,{checked:t.enableSounds,onCheckedChange:x})]}),e[20]=t.enableSounds,e[21]=x,e[22]=u):u=e[22];let h;e[23]!==u||e[24]!==p?(h=s.jsx(C,{label:"Sounds",description:"Play sounds for agent actions and notifications.",onClick:p,control:u}),e[23]=u,e[24]=p,e[25]=h):h=e[25];let v;e[26]!==l?(v=b=>{_("preferences_tool_approval_changed",{to_value:b}),l(N=>({...N,toolApprovalLevel:b}))},e[26]=l,e[27]=v):v=e[27];let g;e[28]!==t.toolApprovalLevel?(g={readonly:"Ask before edit",auto:"Auto approve"}[t.toolApprovalLevel]??"Ask before edit",e[28]=t.toolApprovalLevel,e[29]=g):g=e[29];let y;e[30]!==g?(y=s.jsx(Y,{className:"w-36 h-7 text-xs",children:s.jsx("span",{children:g})}),e[30]=g,e[31]=y):y=e[31];let P;e[32]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(q,{value:"readonly",textValue:"Ask before edit",children:s.jsxs("div",{className:"flex flex-col gap-0.5",children:[s.jsx("span",{className:"font-medium",children:"Ask before edit"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Auto-approve read-only tools"})]})}),e[32]=P):P=e[32];let w;e[33]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsxs(J,{children:[P,s.jsx(q,{value:"auto",textValue:"Auto approve",children:s.jsxs("div",{className:"flex flex-col gap-0.5",children:[s.jsx("span",{className:"font-medium",children:"Auto approve"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Execute all without approval"})]})})]}),e[33]=w):w=e[33];let S;e[34]!==t.toolApprovalLevel||e[35]!==v||e[36]!==y?(S=s.jsx(C,{label:"Tool Approval",description:"Control how tools are approved before execution.",control:s.jsxs(K,{value:t.toolApprovalLevel,onValueChange:v,children:[y,w]})}),e[34]=t.toolApprovalLevel,e[35]=v,e[36]=y,e[37]=S):S=e[37];let A;return e[38]!==h||e[39]!==S||e[40]!==c||e[41]!==m?(A=s.jsxs(I,{className:"p-6",children:[o,s.jsxs(R,{className:"flex flex-col p-0",children:[c,m,h,S]})]}),e[38]=h,e[39]=S,e[40]=c,e[41]=m,e[42]=A):A=e[42],A}function ie(){_("preferences_sounds_previewed"),te(se.dataUri).catch(ae)}function ae(){}function re(e){return{...e,enableSounds:!e.enableSounds}}function ce(e){return{...e,enableNotifications:!1}}function de(){const e=k.c(12),[t,l]=B();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx($,{className:"p-0",children:s.jsx(D,{className:"text-sm",children:"Experimental"})}),e[0]=a):a=e[0];let i;e[1]!==t.experimental_vibecode||e[2]!==l?(i=()=>{_("preferences_experimental_vibecode_toggled",{enabled:!t.experimental_vibecode}),l(me)},e[1]=t.experimental_vibecode,e[2]=l,e[3]=i):i=e[3];let o;e[4]!==l?(o=d=>{_("preferences_experimental_vibecode_toggled",{enabled:d}),l(f=>({...f,experimental_vibecode:d}))},e[4]=l,e[5]=o):o=e[5];let n;e[6]!==t.experimental_vibecode||e[7]!==o?(n=s.jsx(T,{checked:t.experimental_vibecode,onCheckedChange:o}),e[6]=t.experimental_vibecode,e[7]=o,e[8]=n):n=e[8];let r;return e[9]!==i||e[10]!==n?(r=s.jsxs(I,{className:"p-6",children:[a,s.jsx(R,{className:"flex flex-col p-0",children:s.jsx(C,{label:"Import from GitHub",description:"Enable importing agents from GitHub repositories.",onClick:i,control:n})})]}),e[9]=i,e[10]=n,e[11]=r):r=e[11],r}function me(e){return{...e,experimental_vibecode:!e.experimental_vibecode}}function fe(){const e=k.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(E.Title,{children:"Profile & Preferences"}),e[0]=t):t=e[0];let l;return e[1]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(E,{children:s.jsx(E.Content,{children:s.jsx(E.Body,{children:s.jsxs("div",{className:"flex flex-col gap-6",children:[t,s.jsxs("div",{className:"flex flex-col gap-10",children:[s.jsx(oe,{}),s.jsx(ne,{}),s.jsx(de,{})]})]})})})}),e[1]=l):l=e[1],l}function Le(){const e=k.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(fe,{}),e[0]=t):t=e[0],t}export{Le as default};
1
+ import{e as k,j as s,b as G,r as V,B as F,C as B,t as _,z}from"./index-DhJrYN5i.js";import{P as E}from"./index-DvgxnJsz.js";import{A as H}from"./avatar-DcLXZkYK.js";import{C as I,b as $,c as D,a as R,d as U}from"./card-DqrPrhd5.js";import{S as T}from"./switch-ihM2hYRH.js";import{a as K,c as Y,b as q,S as J}from"./select-Cn3ZnqjJ.js";import{T as M,a as L}from"./toggle-group-_HWF3GFc.js";import{I as O}from"./input-COFLoOjb.js";import{L as Q}from"./label-BZVcstmy.js";import{n as W,a as X,i as Z}from"./Sun-C8X8gjZW.js";import{i as ee}from"./Play-D7pqvkYq.js";import{p as te,q as se}from"./question-004-sINsf4GQ.js";import"./index-CwstDhH7.js";import"./use-mobile-C4Yo3nsX.js";import"./X-BuUY-erD.js";import"./User01-VHn0SqBP.js";import"./ChevronDown-Jd-cYHC-.js";import"./ChevronUp-D_szSdLd.js";function C(e){const t=k.c(22),{label:l,description:a,control:i,onClick:o,disabled:n}=e,r=n?void 0:o,d=o?"button":void 0,f=o&&!n?0:void 0;let c;t[0]!==n||t[1]!==o?(c=o&&!n?g=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),o())}:void 0,t[0]=n,t[1]=o,t[2]=c):c=t[2];const m=o&&!n?"pointer":void 0;let p;t[3]!==m?(p={cursor:m},t[3]=m,t[4]=p):p=t[4];let j;t[5]!==l?(j=s.jsx("p",{className:"text-sm text-foreground",children:l}),t[5]=l,t[6]=j):j=t[6];let x;t[7]!==a?(x=a&&s.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:a}),t[7]=a,t[8]=x):x=t[8];let u;t[9]!==j||t[10]!==x?(u=s.jsxs("div",{className:"min-w-0 flex-1",children:[j,x]}),t[9]=j,t[10]=x,t[11]=u):u=t[11];let h;t[12]!==i?(h=s.jsx("div",{onClick:le,className:"shrink-0",children:i}),t[12]=i,t[13]=h):h=t[13];let v;return t[14]!==r||t[15]!==h||t[16]!==d||t[17]!==f||t[18]!==c||t[19]!==p||t[20]!==u?(v=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/50 last:border-0",onClick:r,role:d,tabIndex:f,onKeyDown:c,style:p,children:[u,h]}),t[14]=r,t[15]=h,t[16]=d,t[17]=f,t[18]=c,t[19]=p,t[20]=u,t[21]=v):v=t[21],v}function le(e){return e.stopPropagation()}function oe(){const{data:e,isPending:t}=G.useSession(),l=e?.user,a=l?.image,[i,o]=V.useState(null),[n,r]=V.useState(!1),d=i??l?.name??"",f=i!==null&&i!==(l?.name??""),c=async()=>{if(f){r(!0);try{await G.updateUser({name:d}),_("profile_updated",{fields:["name"]}),o(null),z.success("Profile updated")}catch{z.error("Failed to update profile")}finally{r(!1)}}};return t?null:s.jsxs(I,{className:"p-6",children:[s.jsx($,{className:"p-0",children:s.jsx(D,{className:"text-sm",children:"Profile"})}),s.jsx(R,{className:"flex flex-col gap-6 p-0",children:s.jsxs("div",{className:"flex flex-col sm:flex-row items-start gap-6",children:[s.jsx(H,{url:a,fallback:l?.name??"U",shape:"circle",size:"lg",className:"shrink-0 mt-0.5"}),s.jsxs("div",{className:"flex-1 min-w-0 grid grid-cols-1 sm:grid-cols-2 gap-5 w-full",children:[s.jsxs("div",{className:"flex flex-col gap-1.5",children:[s.jsx(Q,{htmlFor:"display-name",className:"text-xs text-muted-foreground",children:"Display name"}),s.jsx(O,{id:"display-name",value:d,onChange:m=>o(m.target.value),onKeyDown:m=>{m.key==="Enter"&&c()},placeholder:"Your name"})]}),s.jsxs("div",{className:"flex flex-col gap-1.5",children:[s.jsx("span",{className:"text-xs text-muted-foreground",children:"Email"}),s.jsx("span",{className:"text-sm text-foreground/80 pt-2 break-all",children:l?.email})]})]})]})}),f&&s.jsx(U,{className:"p-0 pt-2 gap-2",children:s.jsx(F,{onClick:c,disabled:n,children:n?"Saving…":"Save"})})]})}function ne(){const e=k.c(43),[t,l]=B();let a;e[0]!==l?(a=async b=>{if(b&&await Notification.requestPermission()!=="granted"){_("preferences_notifications_permission_denied"),z.error("Notifications denied. Please enable them in your browser settings."),l(ce);return}_("preferences_notifications_toggled",{enabled:b}),l(N=>({...N,enableNotifications:b}))},e[0]=l,e[1]=a):a=e[1];const i=a;let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx($,{className:"p-0",children:s.jsx(D,{className:"text-sm",children:"Preferences"})}),e[2]=o):o=e[2];let n;e[3]!==l?(n=b=>{b&&(_("preferences_theme_changed",{to_value:b}),l(N=>({...N,theme:b})))},e[3]=l,e[4]=n):n=e[4];let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(L,{value:"light","aria-label":"Light theme",children:s.jsx(W,{size:14})}),e[5]=r):r=e[5];let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(L,{value:"dark","aria-label":"Dark theme",children:s.jsx(X,{size:14})}),e[6]=d):d=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(L,{value:"system","aria-label":"System theme",children:s.jsx(Z,{size:14})}),e[7]=f):f=e[7];let c;e[8]!==t.theme||e[9]!==n?(c=s.jsx(C,{label:"Theme",description:"Your preferred color scheme.",control:s.jsxs(M,{type:"single",size:"sm",variant:"outline",value:t.theme,onValueChange:n,children:[r,d,f]})}),e[8]=t.theme,e[9]=n,e[10]=c):c=e[10];let m;e[11]!==i||e[12]!==t.enableNotifications?(m=s.jsx(C,{label:"Notifications",description:"Receive browser notifications for important events.",disabled:typeof Notification>"u",onClick:()=>i(!t.enableNotifications),control:s.jsx(T,{disabled:typeof Notification>"u",checked:t.enableNotifications,onCheckedChange:i})}),e[11]=i,e[12]=t.enableNotifications,e[13]=m):m=e[13];let p;e[14]!==t.enableSounds||e[15]!==l?(p=()=>{_("preferences_sounds_toggled",{enabled:!t.enableSounds}),l(re)},e[14]=t.enableSounds,e[15]=l,e[16]=p):p=e[16];let j;e[17]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx("button",{type:"button","aria-label":"Preview notification sound",onClick:ie,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:s.jsx(ee,{size:11})}),e[17]=j):j=e[17];let x;e[18]!==l?(x=b=>{_("preferences_sounds_toggled",{enabled:b}),l(N=>({...N,enableSounds:b}))},e[18]=l,e[19]=x):x=e[19];let u;e[20]!==t.enableSounds||e[21]!==x?(u=s.jsxs("div",{className:"flex items-center gap-2",children:[j,s.jsx(T,{checked:t.enableSounds,onCheckedChange:x})]}),e[20]=t.enableSounds,e[21]=x,e[22]=u):u=e[22];let h;e[23]!==u||e[24]!==p?(h=s.jsx(C,{label:"Sounds",description:"Play sounds for agent actions and notifications.",onClick:p,control:u}),e[23]=u,e[24]=p,e[25]=h):h=e[25];let v;e[26]!==l?(v=b=>{_("preferences_tool_approval_changed",{to_value:b}),l(N=>({...N,toolApprovalLevel:b}))},e[26]=l,e[27]=v):v=e[27];let g;e[28]!==t.toolApprovalLevel?(g={readonly:"Ask before edit",auto:"Auto approve"}[t.toolApprovalLevel]??"Ask before edit",e[28]=t.toolApprovalLevel,e[29]=g):g=e[29];let y;e[30]!==g?(y=s.jsx(Y,{className:"w-36 h-7 text-xs",children:s.jsx("span",{children:g})}),e[30]=g,e[31]=y):y=e[31];let P;e[32]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(q,{value:"readonly",textValue:"Ask before edit",children:s.jsxs("div",{className:"flex flex-col gap-0.5",children:[s.jsx("span",{className:"font-medium",children:"Ask before edit"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Auto-approve read-only tools"})]})}),e[32]=P):P=e[32];let w;e[33]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsxs(J,{children:[P,s.jsx(q,{value:"auto",textValue:"Auto approve",children:s.jsxs("div",{className:"flex flex-col gap-0.5",children:[s.jsx("span",{className:"font-medium",children:"Auto approve"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Execute all without approval"})]})})]}),e[33]=w):w=e[33];let S;e[34]!==t.toolApprovalLevel||e[35]!==v||e[36]!==y?(S=s.jsx(C,{label:"Tool Approval",description:"Control how tools are approved before execution.",control:s.jsxs(K,{value:t.toolApprovalLevel,onValueChange:v,children:[y,w]})}),e[34]=t.toolApprovalLevel,e[35]=v,e[36]=y,e[37]=S):S=e[37];let A;return e[38]!==h||e[39]!==S||e[40]!==c||e[41]!==m?(A=s.jsxs(I,{className:"p-6",children:[o,s.jsxs(R,{className:"flex flex-col p-0",children:[c,m,h,S]})]}),e[38]=h,e[39]=S,e[40]=c,e[41]=m,e[42]=A):A=e[42],A}function ie(){_("preferences_sounds_previewed"),te(se.dataUri).catch(ae)}function ae(){}function re(e){return{...e,enableSounds:!e.enableSounds}}function ce(e){return{...e,enableNotifications:!1}}function de(){const e=k.c(12),[t,l]=B();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx($,{className:"p-0",children:s.jsx(D,{className:"text-sm",children:"Experimental"})}),e[0]=a):a=e[0];let i;e[1]!==t.experimental_vibecode||e[2]!==l?(i=()=>{_("preferences_experimental_vibecode_toggled",{enabled:!t.experimental_vibecode}),l(me)},e[1]=t.experimental_vibecode,e[2]=l,e[3]=i):i=e[3];let o;e[4]!==l?(o=d=>{_("preferences_experimental_vibecode_toggled",{enabled:d}),l(f=>({...f,experimental_vibecode:d}))},e[4]=l,e[5]=o):o=e[5];let n;e[6]!==t.experimental_vibecode||e[7]!==o?(n=s.jsx(T,{checked:t.experimental_vibecode,onCheckedChange:o}),e[6]=t.experimental_vibecode,e[7]=o,e[8]=n):n=e[8];let r;return e[9]!==i||e[10]!==n?(r=s.jsxs(I,{className:"p-6",children:[a,s.jsx(R,{className:"flex flex-col p-0",children:s.jsx(C,{label:"Import from GitHub",description:"Enable importing agents from GitHub repositories.",onClick:i,control:n})})]}),e[9]=i,e[10]=n,e[11]=r):r=e[11],r}function me(e){return{...e,experimental_vibecode:!e.experimental_vibecode}}function fe(){const e=k.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(E.Title,{children:"Profile & Preferences"}),e[0]=t):t=e[0];let l;return e[1]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(E,{children:s.jsx(E.Content,{children:s.jsx(E.Body,{children:s.jsxs("div",{className:"flex flex-col gap-6",children:[t,s.jsxs("div",{className:"flex flex-col gap-10",children:[s.jsx(oe,{}),s.jsx(ne,{}),s.jsx(de,{})]})]})})})}),e[1]=l):l=e[1],l}function Le(){const e=k.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(fe,{}),e[0]=t):t=e[0],t}export{Le as default};
@@ -0,0 +1 @@
1
+ import{e as H,s as O,j as N}from"./index-DhJrYN5i.js";import{a as $,g as b,s as v}from"./task-status-CHfFeACA.js";import{u as L}from"./constants-aD7HJ6sY.js";import{a as q,c as B}from"./use-mcp-tools-B5zpuics.js";import{c as Y}from"./content-blocks-o63cs2vh.js";import{g as k,M as G,b as E}from"./types-BGXCye_w.js";import{e as V,u as z}from"./chat-context-DfEaB6Uj.js";import{u as F}from"./shell-layout-BsqL_vND.js";import"./agent-icon-DKQKq---.js";import"./AlertCircle-Bgzr6uRA.js";import"./Tool01-BscqkhhO.js";import"./XClose-ANREDbeo.js";import"./RefreshCcw01-BxULs6ec.js";import"./ArrowNarrowLeft-ByrdB8Dd.js";import"./XCircle-BFZeumzD.js";import"./ZapSquare-Bz3HDhTc.js";import"./Users03-DwNyb_q2.js";import"./CheckCircle-88bls7UK.js";import"./ChevronDown-Jd-cYHC-.js";import"./ChevronRight-71i8ke8L.js";import"./ChevronUp-D_szSdLd.js";import"./DotsVertical-CjXyjLNU.js";import"./Container-DWaKXfYv.js";import"./Star01-DZHrISf9.js";import"./Palette-DuWQiO51.js";import"./SearchMd-D6tCV38D.js";import"./index-DvgxnJsz.js";import"./use-mobile-C4Yo3nsX.js";import"./X-BuUY-erD.js";import"./LinkExternal01-DB08YntP.js";import"./Lock01-dBhVogWg.js";import"./Sun-C8X8gjZW.js";import"./Play-D7pqvkYq.js";import"./Plus-BzxOIhxj.js";import"./Settings02-MyfUtBA4.js";import"./Shield01-CMw4M4Ml.js";import"./Trash01-DZpzvWVW.js";import"./User01-VHn0SqBP.js";import"./Zap-BxJkZzJb.js";import"./scroll-area-CXUp8wR9.js";import"./select-Cn3ZnqjJ.js";import"./use-copy-tC0v6ypy.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./dialog-nGTWjCEa.js";import"./integration-icon-DKrcAAs9.js";import"./use-virtual-mcp-WT1ZdgMM.js";import"./use-collections-DvPoAlor.js";import"./use-ai-providers-DSLKay0D.js";import"./use-decopilot-events-fHBaJaln.js";import"./create-sse-subscription-CxkOgzKf.js";import"./use-tasks-DofxyZR4.js";import"./use-organization-settings-CMC2yyUM.js";import"./required-auth-layout-CP-yDaO3.js";import"./use-org-sso-BK-ft_ER.js";const J={};function K(U){const t=H.c(37),{client:s,resourceURI:P,tool:e,connectionId:l,orgId:p,args:a}=U,{sendMessage:c}=V(),{setAppContext:u,clearAppContext:g}=z(),{setChatOpen:d,openTab:r}=F(),n=`${l}:${e.name}`;let o;t[0]!==r?(o=h=>h==="inline"?(r("0"),"inline"):"fullscreen",t[0]=r,t[1]=o):o=t[1];const f=o,m=a??J;let i;t[2]!==s||t[3]!==e.name||t[4]!==m?(i={client:s,toolName:e.name,toolArguments:m},t[2]=s,t[3]=e.name,t[4]=m,t[5]=i):i=t[5];const{data:T}=B(i);let R;if(t[6]!==e._meta||t[7]!==e.name){const h=b(e._meta);R=v(e.name,h),t[6]=e._meta,t[7]=e.name,t[8]=R}else R=t[8];const S=R;let x;t[9]!==e.inputSchema?(x=e.inputSchema??{type:"object"},t[9]=e.inputSchema,t[10]=x):x=t[10];let A;t[11]!==S||t[12]!==x||t[13]!==e?(A={...e,name:S,inputSchema:x},t[11]=S,t[12]=x,t[13]=e,t[14]=A):A=t[14];const y=A;let _;t[15]!==c||t[16]!==d?(_=h=>{const w=Y(h.content);w.content.length>0&&(d(!0),c({tiptapDoc:w}))},t[15]=c,t[16]=d,t[17]=_):_=t[17];const D=_;let C;t[18]!==y?(C={tool:y},t[18]=y,t[19]=C):C=t[19];let I;t[20]!==u||t[21]!==n?(I=h=>u(n,h),t[20]=u,t[21]=n,t[22]=I):I=t[22];let M;t[23]!==g||t[24]!==n?(M=()=>g(n),t[23]=g,t[24]=n,t[25]=M):M=t[25];let j;return t[26]!==s||t[27]!==D||t[28]!==f||t[29]!==p||t[30]!==P||t[31]!==C||t[32]!==I||t[33]!==M||t[34]!==m||t[35]!==T?(j=N.jsx(G,{resourceURI:P,orgId:p,toolInfo:C,toolInput:m,toolResult:T,displayMode:"fullscreen",minHeight:E.fullscreen.minHeight,maxHeight:E.fullscreen.maxHeight,client:s,onMessage:D,onUpdateModelContext:I,onTeardown:M,onRequestDisplayMode:f,className:"h-full"}),t[26]=s,t[27]=D,t[28]=f,t[29]=p,t[30]=P,t[31]=C,t[32]=I,t[33]=M,t[34]=m,t[35]=T,t[36]=j):j=t[36],j}function Qt(U){const t=H.c(22),{connectionId:s,toolName:P,args:e}=U,{org:l}=O();let p;t[0]!==s||t[1]!==l.id?(p={connectionId:s,orgId:l.id},t[0]=s,t[1]=l.id,t[2]=p):p=t[2];const a=L(p);let c;t[3]!==a?(c={client:a},t[3]=a,t[4]=c):c=t[4];const{data:u}=q(c),g=decodeURIComponent(P);let d;t[5]!==g?(d=$(g),t[5]=g,t[6]=d):d=t[6];const r=d;let n,o;if(t[7]!==r||t[8]!==u.tools){let i;t[11]!==r?(i=T=>T.name===r,t[11]=r,t[12]=i):i=t[12],o=u.tools.find(i),n=o?._meta?k(o._meta):void 0,t[7]=r,t[8]=u.tools,t[9]=n,t[10]=o}else n=t[9],o=t[10];const f=n;if(!o||!f){let i;return t[13]!==r?(i=N.jsx("div",{className:"flex items-center justify-center h-full w-full",children:N.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',r,'" not found or has no UI']})}),t[13]=r,t[14]=i):i=t[14],i}let m;return t[15]!==e||t[16]!==a||t[17]!==s||t[18]!==l.id||t[19]!==f||t[20]!==o?(m=N.jsx(K,{client:a,resourceURI:f,tool:o,connectionId:s,orgId:l.id,args:e}),t[15]=e,t[16]=a,t[17]=s,t[18]=l.id,t[19]=f,t[20]=o,t[21]=m):m=t[21],m}export{Qt as AppViewContent};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-q6bMBk9s.js","assets/index-DhJrYN5i.js","assets/index-BCwsJqWc.css","assets/ArrowNarrowLeft-ByrdB8Dd.js","assets/CheckCircle-88bls7UK.js","assets/Container-DWaKXfYv.js","assets/Settings02-MyfUtBA4.js","assets/XCircle-BFZeumzD.js","assets/constants-aD7HJ6sY.js","assets/useInfiniteQuery-Gkc0b2zi.js","assets/infiniteQueryObserver-B_9sKQsI.js","assets/badge-BJBM0LXp.js","assets/input-COFLoOjb.js","assets/dropdown-menu-Cc_jn9Z7.js","assets/ChevronDown-Jd-cYHC-.js","assets/ChevronRight-71i8ke8L.js","assets/DotsVertical-CjXyjLNU.js","assets/table-CAUXYO7-.js","assets/toggle-group-_HWF3GFc.js","assets/use-view-mode-DSeYcON6.js","assets/use-mobile-C4Yo3nsX.js","assets/SearchMd-D6tCV38D.js","assets/dialog-nGTWjCEa.js","assets/X-BuUY-erD.js","assets/AlertCircle-Bgzr6uRA.js","assets/alert-dialog-CtGXaT-Y.js","assets/card-DqrPrhd5.js","assets/Trash01-DZpzvWVW.js","assets/label-BZVcstmy.js","assets/select-Cn3ZnqjJ.js","assets/ChevronUp-D_szSdLd.js","assets/switch-ihM2hYRH.js","assets/textarea-CsnX9Ktr.js","assets/RefreshCcw01-BxULs6ec.js","assets/checkbox-Dplb_VaM.js","assets/LinkExternal01-DB08YntP.js","assets/use-copy-tC0v6ypy.js","assets/Plus-BzxOIhxj.js","assets/Play-D7pqvkYq.js"])))=>i.map(i=>d[i]);
2
+ import{e as a,j as t,r,l as i,aE as o}from"./index-DhJrYN5i.js";const n=r.lazy(()=>o(()=>import("./registry-layout-q6bMBk9s.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])));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};