@vellumai/web 0.8.8 → 0.8.9-staging.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 (278) hide show
  1. package/dist/assets/BundleConfirmPage-p6PoFo-P.js +1 -0
  2. package/dist/assets/{QueryClientProvider-DBAeGN3q.js → QueryClientProvider-DNHWXaGq.js} +1 -1
  3. package/dist/assets/{about-page-C4tN0hSY.js → about-page-COonOOTU.js} +1 -1
  4. package/dist/assets/{account-page-e-4zB_8t.js → account-page-CXZMoObS.js} +1 -1
  5. package/dist/assets/{account-shell-BZu7oVl3.js → account-shell-mWbkdjh7.js} +1 -1
  6. package/dist/assets/add-credits-modal-COZFg6LO.js +1 -0
  7. package/dist/assets/{advanced-page-Du0vGXNL.js → advanced-page-BcEt2J3g.js} +1 -1
  8. package/dist/assets/ai-page-DYFuxo_7.js +1 -0
  9. package/dist/assets/api-D_w9HGm1.js +39 -0
  10. package/dist/assets/{api-key-screen-Bgk6XGC1.js → api-key-screen-DbyDsrCh.js} +1 -1
  11. package/dist/assets/{app-html-cache-BsFOfI0R.js → app-html-cache-DZyE8zzT.js} +1 -1
  12. package/dist/assets/{archive-yWA8_b2E.js → archive-CeE0yzQG.js} +1 -1
  13. package/dist/assets/archive-page-D2PmzZlQ.js +1 -0
  14. package/dist/assets/arrow-up-BfbWaCwD.js +1 -0
  15. package/dist/assets/{assistant-feature-flag-store-CNdFPRBD.js → assistant-feature-flag-store-BiEkLFvf.js} +1 -1
  16. package/dist/assets/{assistant-identity-store-Y4grVs1H.js → assistant-identity-store-CdxvXGiq.js} +1 -1
  17. package/dist/assets/assistant-status-panel-DpDMJx-N.js +1 -0
  18. package/dist/assets/auth-store-RIjuTM3X.js +1 -0
  19. package/dist/assets/{avatar-api-BfDoaCjw.js → avatar-api-CWZvvL87.js} +1 -1
  20. package/dist/assets/{bell-BFRXSoMR.js → bell-NxrwR0Jo.js} +1 -1
  21. package/dist/assets/billing-page-Boeh64OU.js +34 -0
  22. package/dist/assets/{bug-wSdnBKWO.js → bug-B4KAU7DN.js} +1 -1
  23. package/dist/assets/button-DdEh-9f_.js +1 -0
  24. package/dist/assets/{calendar-xwiYi6y2.js → calendar-B2_jTx01.js} +1 -1
  25. package/dist/assets/capture-error-Di3WCQrq.js +4 -0
  26. package/dist/assets/card-CL5iEMJO.js +1 -0
  27. package/dist/assets/check-CW0KmV0o.js +1 -0
  28. package/dist/assets/checkbox-qlcBvCFW.js +1 -0
  29. package/dist/assets/chevron-right-DF2EzMUB.js +1 -0
  30. package/dist/assets/{chevron-up-C-4xJEr7.js → chevron-up-cXyM5mu2.js} +1 -1
  31. package/dist/assets/{chunk-5KNZJZUH-BpLAEZ0-.js → chunk-5KNZJZUH-B4b1m-Ya.js} +1 -1
  32. package/dist/assets/cn-DFqQkJlk.js +1 -0
  33. package/dist/assets/command-palette-Ddl69DKF.js +1 -0
  34. package/dist/assets/{community-page-BWc9-V5m.js → community-page-COMe3TOq.js} +1 -1
  35. package/dist/assets/confirm-dialog-DsrjEJ8n.js +1 -0
  36. package/dist/assets/{connect-page-DLP-KRIF.js → connect-page-jZJ6gRVr.js} +1 -1
  37. package/dist/assets/{contacts-gateway-BF6L_WJp.js → contacts-gateway-Dzzr2RB0.js} +1 -1
  38. package/dist/assets/contacts-page-route-lxxkveBK.js +1 -0
  39. package/dist/assets/{conversation-store-D8-qWog8.js → conversation-store-BB-CCPz4.js} +1 -1
  40. package/dist/assets/createLucideIcon-Bjb-Kuq7.js +1 -0
  41. package/dist/assets/danger-zone-redirect-page-qLWyglUT.js +1 -0
  42. package/dist/assets/debug-page-wZauraKd.js +3 -0
  43. package/dist/assets/{deploy-dialogs-Ddx6WsXp.js → deploy-dialogs-DEaPwU4I.js} +1 -1
  44. package/dist/assets/{detail-card-Y8InXOgy.js → detail-card-B-us8iM5.js} +1 -1
  45. package/dist/assets/developer-page-YiIciPaV.js +1 -0
  46. package/dist/assets/{devices-page-4yNwXw0J.js → devices-page-C1EjgTdX.js} +1 -1
  47. package/dist/assets/dist-B1Fpj7hg.js +1 -0
  48. package/dist/assets/dist-BagEH8Xp.js +153 -0
  49. package/dist/assets/dist-D6LVk88Z.js +45 -0
  50. package/dist/assets/document-viewer-page-BbNZ_Hav.js +1 -0
  51. package/dist/assets/{dollar-sign-D_9hooHL.js → dollar-sign-DjJlJMJx.js} +1 -1
  52. package/dist/assets/{domain-field-CyNgwvDW.js → domain-field-DiimaXlx.js} +1 -1
  53. package/dist/assets/dropdown-CocFV5yi.js +1 -0
  54. package/dist/assets/{earn-credits-modal-BfVEDIqn.js → earn-credits-modal-CWJ3z13E.js} +1 -1
  55. package/dist/assets/{ellipsis-vertical-f27t2xXb.js → ellipsis-vertical-BYI2M0Y_.js} +1 -1
  56. package/dist/assets/{emails-page-VM8fJ5kb.js → emails-page-HAwU0PG9.js} +1 -1
  57. package/dist/assets/{esm-BesMJi2r.js → esm-BuFsuxJb.js} +1 -1
  58. package/dist/assets/{esm-B9MFZJ_e.js → esm-CqsAL_eV.js} +1 -1
  59. package/dist/assets/{esm-BAXpcEfg.js → esm-D_3mHrKn.js} +1 -1
  60. package/dist/assets/{esm-BBKnACgF.js → esm-g5en09UW.js} +1 -1
  61. package/dist/assets/{esm-Dlx5ghIf.js → esm-t46uzkal.js} +1 -1
  62. package/dist/assets/{external-link-CcV79Arv.js → external-link-CYugXYpk.js} +1 -1
  63. package/dist/assets/feature-flag-catalog-OHgjjRa5.js +1 -0
  64. package/dist/assets/file-markdown-CNb-AHAO.js +2 -0
  65. package/dist/assets/format-file-size-Cikb_8y_.js +1 -0
  66. package/dist/assets/general-page-C0EPZJvL.js +1 -0
  67. package/dist/assets/{globe-B6unPYdp.js → globe-DZ63eZbH.js} +1 -1
  68. package/dist/assets/{google-logo-NlVU0R23.js → google-logo-uJcTP3BJ.js} +1 -1
  69. package/dist/assets/{hard-drive-C5ssi802.js → hard-drive-wO6bPcoA.js} +1 -1
  70. package/dist/assets/hatching-screen-B2hk7GXP.js +1 -0
  71. package/dist/assets/home-page-route-Dr56dr0q.js +1 -0
  72. package/dist/assets/hosting-screen-DgRRwkuU.js +1 -0
  73. package/dist/assets/identity-page-route-OErxaFHE.js +1 -0
  74. package/dist/assets/index-BKvehXUt.css +2 -0
  75. package/dist/assets/index-DTWPgS5K.js +124 -0
  76. package/dist/assets/input-Cu3PPVCq.js +1 -0
  77. package/dist/assets/{inspect-page-CsvH5Rih.js → inspect-page-Y-3HQoro.js} +2 -2
  78. package/dist/assets/{install-OHIUtZSu.js → install-aIAefgSX.js} +1 -1
  79. package/dist/assets/integrations-page-B7Tul8x3.js +1 -0
  80. package/dist/assets/{intelligence-layout-Onjx6_Xb.js → intelligence-layout-DYIK-GwZ.js} +1 -1
  81. package/dist/assets/keyboard-shortcuts-page-nlhuxBKZ.js +1 -0
  82. package/dist/assets/lib-Bq3kPGq-.js +29 -0
  83. package/dist/assets/{lib-B020BIem.js → lib-CyTHAhFX.js} +1 -1
  84. package/dist/assets/{library-detail-page-PP_bf3mt.js → library-detail-page-DkG1qTGp.js} +1 -1
  85. package/dist/assets/library-page-Cb9eaPfO.js +1 -0
  86. package/dist/assets/{link-2-B0QONFsy.js → link-2-DFhelG7P.js} +1 -1
  87. package/dist/assets/loader-circle-B9sFQ7nF.js +1 -0
  88. package/dist/assets/local-mode-Cx_DqCMC.js +1 -0
  89. package/dist/assets/{login-flow-BbsypWKa.js → login-flow-E2FJkpFg.js} +1 -1
  90. package/dist/assets/login-page-DLNq7ol2.js +1 -0
  91. package/dist/assets/{logout-page-BkzePxva.js → logout-page-CcNgLKFy.js} +1 -1
  92. package/dist/assets/{logs-layout-Cs8hHTTu.js → logs-layout-Dd6YucHg.js} +1 -1
  93. package/dist/assets/{memory-router-playground-page-4uw1uIhg.js → memory-router-playground-page-C9Bunjup.js} +1 -1
  94. package/dist/assets/menu-B79-l6IU.js +1 -0
  95. package/dist/assets/{minimize-2-H-zinYcX.js → minimize-2-BEDsyPze.js} +1 -1
  96. package/dist/assets/{mobile-sidebar-drawer-CSQF2rSV.js → mobile-sidebar-drawer-BMjmzJIM.js} +1 -1
  97. package/dist/assets/modal-BhuCoLJX.js +1 -0
  98. package/dist/assets/native-biometric-CfMWTyzx.js +6 -0
  99. package/dist/assets/{native-file-C2WSS7-h.js → native-file-uqYhUlky.js} +2 -2
  100. package/dist/assets/notice-CF2pptne.js +1 -0
  101. package/dist/assets/{notifications-page-DRppz7Ms.js → notifications-page-BQVUPJrc.js} +1 -1
  102. package/dist/assets/{oauth-complete-page-aT6QAfCd.js → oauth-complete-page-GCeZ7H70.js} +1 -1
  103. package/dist/assets/{oauth-popup-complete-page-ClfKIV61.js → oauth-popup-complete-page-v7G3PUyR.js} +2 -2
  104. package/dist/assets/{octagon-x-Bze4QGjG.js → octagon-x-DV9qasaC.js} +1 -1
  105. package/dist/assets/{onboarding-layout-DMOume9Z.js → onboarding-layout-CAwJlju5.js} +1 -1
  106. package/dist/assets/{page-shell-C4yGVVNa.js → page-shell-DHcdwoAZ.js} +1 -1
  107. package/dist/assets/panel-item-FzMfzMJA.js +1 -0
  108. package/dist/assets/password-reset-page-qJLxcjME.js +1 -0
  109. package/dist/assets/{pdf-BbxrOchE.js → pdf-BrYaENqn.js} +1 -1
  110. package/dist/assets/{pencil-CESg1M7c.js → pencil-ulB7Z-e-.js} +1 -1
  111. package/dist/assets/platform-loopback-page-Dh4Fk6vZ.js +1 -0
  112. package/dist/assets/plugin-detail-page-T0e3dY-Z.js +1 -0
  113. package/dist/assets/plugins-page-ynhoZs-n.js +1 -0
  114. package/dist/assets/portal-container-DIXEBWUe.js +1 -0
  115. package/dist/assets/pre-chat-flow-CuvP36-0.js +1 -0
  116. package/dist/assets/privacy-page-e7nbmXwD.js +1 -0
  117. package/dist/assets/privacy-screen-JbcO_xgm.js +1 -0
  118. package/dist/assets/progress-bar-BxeXgLhp.js +1 -0
  119. package/dist/assets/provider-callback-page-Cdtz4Epz.js +1 -0
  120. package/dist/assets/{provider-key-DiyETKhK.js → provider-key-BittA9TY.js} +1 -1
  121. package/dist/assets/{provider-signup-page-BpqjcKpY.js → provider-signup-page-CATLdFQn.js} +1 -1
  122. package/dist/assets/{query-tags-yOSQTht4.js → query-tags-CXf0mBKU.js} +1 -1
  123. package/dist/assets/quick-input-page-5mI3RTsv.js +1 -0
  124. package/dist/assets/react-query.gen-Cj6WQdON.js +1 -0
  125. package/dist/assets/{resize-errors-C_vO4oid.js → resize-errors-qjdyi4GX.js} +1 -1
  126. package/dist/assets/resolved-assistants-store-em3zt7_3.js +1 -0
  127. package/dist/assets/routes-DminYfDX.js +1 -0
  128. package/dist/assets/{save-CBzZvuPl.js → save-Cg454LRm.js} +1 -1
  129. package/dist/assets/{schedules-mjx6ouZ2.js → schedules-BTZchh0D.js} +1 -1
  130. package/dist/assets/schedules-page-BdaO92vz.js +1 -0
  131. package/dist/assets/{sdk.gen-BO4vbMAj.js → sdk.gen-BnTFwWLf.js} +1 -1
  132. package/dist/assets/{sdk.gen-up8j0_uF.js → sdk.gen-govMfbgX.js} +1 -1
  133. package/dist/assets/select-assistant-screen-C0EP-6wf.js +1 -0
  134. package/dist/assets/settings-layout-D402PkLd.js +1 -0
  135. package/dist/assets/share-feedback-modal-Ct3bOmhU.js +1 -0
  136. package/dist/assets/shortcut-keys-FXO7qQjX.js +1 -0
  137. package/dist/assets/{sidebar-tree-D9JFk5pQ.js → sidebar-tree-Dduanhwq.js} +1 -1
  138. package/dist/assets/{signup-page-CI7xziFt.js → signup-page-1C3Lfl0s.js} +1 -1
  139. package/dist/assets/skills-page-BB1Ne-8V.js +1 -0
  140. package/dist/assets/sounds-page-BmRneQW4.js +1 -0
  141. package/dist/assets/{src-Bah0_lDG.js → src-BqiaDQPO.js} +3 -3
  142. package/dist/assets/stat-square-sRJmexc-.js +1 -0
  143. package/dist/assets/step-indicator-dots-DpYYCL7E.js +1 -0
  144. package/dist/assets/{subagent-detail-panel-BcUQAemM.js → subagent-detail-panel-DCmHp5r5.js} +2 -2
  145. package/dist/assets/{system-events-page-BC0hWcTo.js → system-events-page-BOZOscuS.js} +1 -1
  146. package/dist/assets/system-events-redirect-page-Dq1fO1WL.js +1 -0
  147. package/dist/assets/tag-Ccr7Quy6.js +1 -0
  148. package/dist/assets/{target-B8JHLfTN.js → target-3RiNSDOr.js} +1 -1
  149. package/dist/assets/{tiptap-document-editor-CIVPtfOQ.js → tiptap-document-editor-DSeOYXTN.js} +2 -2
  150. package/dist/assets/toast-3Fi9QU7z.js +1 -0
  151. package/dist/assets/toggle-CEm3M86o.js +1 -0
  152. package/dist/assets/{tool-detail-panel-y2CN1PtJ.js → tool-detail-panel-DvZGjmRf.js} +1 -1
  153. package/dist/assets/{trace-page-BX5w9eln.js → trace-page-OVXfT7ig.js} +1 -1
  154. package/dist/assets/typography-Czgs_2w_.js +1 -0
  155. package/dist/assets/{upgrade-cancel-page-KQ4EN_I1.js → upgrade-cancel-page-CbjsDz_I.js} +1 -1
  156. package/dist/assets/{upgrade-success-page-Bmv-ncJ6.js → upgrade-success-page-BT3slnw3.js} +1 -1
  157. package/dist/assets/usage-page-GlfQOrlv.js +1 -0
  158. package/dist/assets/use-active-assistant-id--1Ick1YC.js +1 -0
  159. package/dist/assets/use-current-platform-assistant-D-5r_x8u.js +1 -0
  160. package/dist/assets/use-is-org-ready-okrWrmTt.js +1 -0
  161. package/dist/assets/{use-oauth-complete-deep-link-listener-BkbO4kZ1.js → use-oauth-complete-deep-link-listener-DxjdcVr0.js} +1 -1
  162. package/dist/assets/{use-reduced-motion-GQ_HVFpK.js → use-reduced-motion-DVYTox9p.js} +1 -1
  163. package/dist/assets/{useMutation-DTb3lMvF.js → useMutation-BuofVRHk.js} +1 -1
  164. package/dist/assets/{useQuery-DAtrV0RI.js → useQuery-D2zf6Uhu.js} +1 -1
  165. package/dist/assets/{utils-DfoBtDfL.js → utils-BQby93tO.js} +1 -1
  166. package/dist/assets/viewer-store-DIa3mbc-.js +1 -0
  167. package/dist/assets/{voice-page-D3jl6Uq8.js → voice-page-DBuSoStd.js} +1 -1
  168. package/dist/assets/{wand-sparkles-CIV_5Oi6.js → wand-sparkles-CEPQLm45.js} +1 -1
  169. package/dist/assets/{weather-forecast-display-BA-3Q5jY.js → weather-forecast-display-FVtVZmTZ.js} +1 -1
  170. package/dist/assets/welcome-screen-bOpdZmIK.js +1 -0
  171. package/dist/assets/workspace-page-DoXLAgOy.js +1 -0
  172. package/dist/assets/x-CaVViVFn.js +1 -0
  173. package/dist/assets/x-D0wgTl3V.js +1 -0
  174. package/dist/assets/zwitch-qcFX26Jh.js +1 -0
  175. package/dist/index.html +78 -78
  176. package/package.json +1 -1
  177. package/dist/assets/add-credits-modal-p0gkX1yC.js +0 -1
  178. package/dist/assets/ai-page-BQOcmKeW.js +0 -1
  179. package/dist/assets/api-8hqpGaif.js +0 -39
  180. package/dist/assets/archive-page-DhDeJH4l.js +0 -1
  181. package/dist/assets/arrow-up-Cev-d0qQ.js +0 -1
  182. package/dist/assets/assistant-status-panel-C3CvCBVl.js +0 -1
  183. package/dist/assets/auth-store-CYbo7naZ.js +0 -1
  184. package/dist/assets/billing-page-CyTcQ9ki.js +0 -34
  185. package/dist/assets/button-Cs9tc8OR.js +0 -1
  186. package/dist/assets/capture-error-1Tr5aMfq.js +0 -1
  187. package/dist/assets/card-BcKGvsaa.js +0 -1
  188. package/dist/assets/check-DqeyrftF.js +0 -1
  189. package/dist/assets/checkbox-hJlRqWtn.js +0 -1
  190. package/dist/assets/chevron-right-CJ0Oykrn.js +0 -1
  191. package/dist/assets/cn-DIX4PZch.js +0 -1
  192. package/dist/assets/command-palette-CTF-tqv7.js +0 -1
  193. package/dist/assets/confirm-dialog-DavdF-L4.js +0 -1
  194. package/dist/assets/contacts-page-route-ziTjDj3t.js +0 -1
  195. package/dist/assets/createLucideIcon-CSvzx8tc.js +0 -1
  196. package/dist/assets/danger-zone-redirect-page-BlS6Bao4.js +0 -1
  197. package/dist/assets/debug-page-B38HF3wu.js +0 -3
  198. package/dist/assets/developer-page-CVcwOCG9.js +0 -1
  199. package/dist/assets/dist-3bWmqQYy.js +0 -45
  200. package/dist/assets/dist-Cb2Epurm.js +0 -1
  201. package/dist/assets/dist-Ck9KSeuV.js +0 -153
  202. package/dist/assets/document-viewer-page-BZqF90o0.js +0 -1
  203. package/dist/assets/dropdown-PPtOL9bp.js +0 -1
  204. package/dist/assets/exports-B_RC9sMS.js +0 -4
  205. package/dist/assets/feature-flag-catalog-CRgdQmMF.js +0 -1
  206. package/dist/assets/file-markdown-DjJ2NSmS.js +0 -1
  207. package/dist/assets/gateway-session-CaFk8wfN.js +0 -1
  208. package/dist/assets/general-page-m_m-DrX4.js +0 -1
  209. package/dist/assets/hatching-screen-CI8iOd8-.js +0 -1
  210. package/dist/assets/home-page-route-ePg1Cu2z.js +0 -1
  211. package/dist/assets/hosting-screen-CA6XnVWn.js +0 -1
  212. package/dist/assets/identity-page-route-BcE8OAJ6.js +0 -1
  213. package/dist/assets/index-Cb930VA2.css +0 -2
  214. package/dist/assets/index-DUwiZuxe.js +0 -124
  215. package/dist/assets/input-DwAJUlac.js +0 -1
  216. package/dist/assets/integrations-page-B54hIoCi.js +0 -1
  217. package/dist/assets/lib-h5KT63h9.js +0 -29
  218. package/dist/assets/library-page-Cg1IA3a6.js +0 -1
  219. package/dist/assets/loader-circle-FEkI0Am4.js +0 -1
  220. package/dist/assets/login-page-BVX4fr6R.js +0 -1
  221. package/dist/assets/loopback-auth-Dclf8zKT.js +0 -1
  222. package/dist/assets/menu-0h93UDZw.js +0 -1
  223. package/dist/assets/modal-C7CS3Y_X.js +0 -1
  224. package/dist/assets/native-biometric-B4t4zElu.js +0 -6
  225. package/dist/assets/notice-BWm2kHlI.js +0 -1
  226. package/dist/assets/panel-item-BPosLg5Y.js +0 -1
  227. package/dist/assets/password-reset-page-CugjFViT.js +0 -1
  228. package/dist/assets/platform-loopback-page-DSAaBS5p.js +0 -1
  229. package/dist/assets/plugins-page-CYcKA2Ai.js +0 -1
  230. package/dist/assets/portal-container-CKtYcZfP.js +0 -1
  231. package/dist/assets/pre-chat-flow-BLHHoHka.js +0 -1
  232. package/dist/assets/privacy-page-HiOgrDR9.js +0 -1
  233. package/dist/assets/privacy-screen-Ca0oGFo0.js +0 -1
  234. package/dist/assets/progress-bar-CgQMQ_UR.js +0 -1
  235. package/dist/assets/provider-callback-page-DpGReURP.js +0 -1
  236. package/dist/assets/react-query.gen-CfXF72qo.js +0 -1
  237. package/dist/assets/routes-C-DwSCj0.js +0 -1
  238. package/dist/assets/schedules-page-zyXnmD3U.js +0 -1
  239. package/dist/assets/selection-store-BCKoLRDh.js +0 -1
  240. package/dist/assets/settings-layout-Bsi8NeES.js +0 -1
  241. package/dist/assets/share-feedback-modal-BgfMO7ED.js +0 -1
  242. package/dist/assets/skills-page-DrpHzObX.js +0 -1
  243. package/dist/assets/sounds-page-Dw_ASs77.js +0 -1
  244. package/dist/assets/stat-square-CMFH3mHq.js +0 -1
  245. package/dist/assets/step-indicator-dots-ClKaa4nc.js +0 -1
  246. package/dist/assets/system-events-redirect-page-BrzAhJZT.js +0 -1
  247. package/dist/assets/tag-BkZB4euH.js +0 -1
  248. package/dist/assets/toast-Cii5pffK.js +0 -1
  249. package/dist/assets/toggle-DGzEs0L1.js +0 -1
  250. package/dist/assets/typography-PN7B1rrW.js +0 -1
  251. package/dist/assets/usage-page-CXNTUrjR.js +0 -1
  252. package/dist/assets/use-active-assistant-id-kjFL4dWB.js +0 -1
  253. package/dist/assets/use-current-platform-assistant-BXRU4B3R.js +0 -1
  254. package/dist/assets/use-debounced-value-DK0n_BKN.js +0 -1
  255. package/dist/assets/use-is-org-ready-Dtde_1TT.js +0 -1
  256. package/dist/assets/viewer-store-BIIKltsh.js +0 -1
  257. package/dist/assets/welcome-screen-B3oZjIVb.js +0 -1
  258. package/dist/assets/workspace-page-CUxLMyKc.js +0 -1
  259. package/dist/assets/x-2OoTSOWJ.js +0 -1
  260. package/dist/assets/x-CwP6G6OK.js +0 -1
  261. /package/dist/assets/{api-errors-DhNZwQy5.js → api-errors-DApr8J5Z.js} +0 -0
  262. /package/dist/assets/{avatar-bundled-components-BKb8hhzM.js → avatar-bundled-components-DC9a0Ily.js} +0 -0
  263. /package/dist/assets/{client.gen-BKAMS0D0.js → client.gen-CsQeNtuq.js} +0 -0
  264. /package/dist/assets/{create-selectors-LbkU9b0a.js → create-selectors-CDULelrw.js} +0 -0
  265. /package/dist/assets/{createLucideIcon-D8wUFCt3.js → createLucideIcon-BjZY5k1w.js} +0 -0
  266. /package/dist/assets/{emoji-catalog-data-B2dzgy2b.js → emoji-catalog-data-DvyOWL-F.js} +0 -0
  267. /package/dist/assets/{format-B2Cl9naL.js → format-Bbxbyy7J.js} +0 -0
  268. /package/dist/assets/{format-date-C_j5UjES.js → format-date-CdAgBadL.js} +0 -0
  269. /package/dist/assets/{is-electron-1CyUiqR4.js → is-electron-CavSPgmY.js} +0 -0
  270. /package/dist/assets/{jsx-runtime-XSukodg_.js → jsx-runtime-CVSDxk6A.js} +0 -0
  271. /package/dist/assets/{llm-dimension-DPVignMk.js → llm-dimension-CBhYSW7t.js} +0 -0
  272. /package/dist/assets/{preload-helper-CS_K7l1U.js → preload-helper-BewR0kVT.js} +0 -0
  273. /package/dist/assets/{queryOptions-C_ypb2wA.js → queryOptions-BtNi-_9H.js} +0 -0
  274. /package/dist/assets/{usage-window-CsjC43Gn.js → usage-window-COo_tIlP.js} +0 -0
  275. /package/dist/assets/{wasm-CGZ0ykRa.js → wasm-D-aQj7M_.js} +0 -0
  276. /package/dist/assets/{with-selector-CZyYmUFz.js → with-selector-NDiUwRRR.js} +0 -0
  277. /package/dist/assets/{xterm-AXHTOo82.js → xterm-EejPUdmw.js} +0 -0
  278. /package/dist/assets/{xterm-addon-fit-CfpfPbfB.js → xterm-addon-fit-BRL8IZ7N.js} +0 -0
@@ -0,0 +1 @@
1
+ import{o as e,t}from"./chunk-jRWAZmH_.js";import{t as n}from"./react-DJZBPgpf.js";import{t as r}from"./jsx-runtime-CVSDxk6A.js";import{a as i,n as a}from"./cn-DFqQkJlk.js";var o=t((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(r(299));return s(e,t,null,n)},e.flushSync=function(e){var t=c.T,n=a.p;try{if(c.T=null,a.p=2,e)return e()}finally{c.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??a.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=l(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else a.d.m(e)},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version=`19.2.6`})),s=t(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=o()})),c=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,l=a,u=(e,t)=>n=>{if(t?.variants==null)return l(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=c(t)||c(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return l(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},d=e(n(),1),f=r();function p(e,t){let n=d.createContext(t),r=e=>{let{children:t,...r}=e,i=d.useMemo(()=>r,Object.values(r));return(0,f.jsx)(n.Provider,{value:i,children:t})};r.displayName=e+`Provider`;function i(r){let i=d.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return[r,i]}function m(e,t=[]){let n=[];function r(t,r){let i=d.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=d.useMemo(()=>o,Object.values(o));return(0,f.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=d.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>d.createContext(e));return function(n){let r=n?.[e]||t;return d.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,h(i,...t)]}function h(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var g=e(s(),1);function _(e){let t=v(e),n=d.forwardRef((e,n)=>{let{children:r,...i}=e,a=d.Children.toArray(r),o=a.find(b);if(o){let e=o.props.children,r=a.map(t=>t===o?d.Children.count(e)>1?d.Children.only(null):d.isValidElement(e)?e.props.children:null:t);return(0,f.jsx)(t,{...i,ref:n,children:d.isValidElement(e)?d.cloneElement(e,void 0,r):null})}return(0,f.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function v(e){let t=d.forwardRef((e,t)=>{let{children:n,...r}=e;if(d.isValidElement(n)){let e=S(n),a=x(r,n.props);return n.type!==d.Fragment&&(a.ref=t?i(t,e):e),d.cloneElement(n,a)}return d.Children.count(n)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var y=Symbol(`radix.slottable`);function b(e){return d.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===y}function x(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function S(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var C=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=_(`Primitive.${t}`),r=d.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,f.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function w(e,t){e&&g.flushSync(()=>e.dispatchEvent(t))}function T(e){let t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...e)=>t.current?.(...e),[])}function E(e,t=globalThis?.document){let n=T(e);d.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var D=globalThis?.document?d.useLayoutEffect:()=>{},O=d.useId||(()=>void 0),k=0;function A(e){let[t,n]=d.useState(O());return D(()=>{e||n(e=>e??String(k++))},[e]),e||(t?`radix-${t}`:``)}var j=[`top`,`right`,`bottom`,`left`],M=Math.min,N=Math.max,P=Math.round,F=Math.floor,I=e=>({x:e,y:e}),ee={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function te(e,t,n){return N(e,M(t,n))}function L(e,t){return typeof e==`function`?e(t):e}function R(e){return e.split(`-`)[0]}function z(e){return e.split(`-`)[1]}function ne(e){return e===`x`?`y`:`x`}function re(e){return e===`y`?`height`:`width`}function B(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function ie(e){return ne(B(e))}function ae(e,t,n){n===void 0&&(n=!1);let r=z(e),i=ie(e),a=re(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=me(o)),[o,me(o)]}function oe(e){let t=me(e);return[se(e),t,se(t)]}function se(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var ce=[`left`,`right`],le=[`right`,`left`],ue=[`top`,`bottom`],de=[`bottom`,`top`];function fe(e,t,n){switch(e){case`top`:case`bottom`:return n?t?le:ce:t?ce:le;case`left`:case`right`:return t?ue:de;default:return[]}}function pe(e,t,n,r){let i=z(e),a=fe(R(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(se)))),a}function me(e){let t=R(e);return ee[t]+e.slice(t.length)}function he(e){return{top:0,right:0,bottom:0,left:0,...e}}function ge(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:he(e)}function _e(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ve(e,t,n){let{reference:r,floating:i}=e,a=B(t),o=ie(t),s=re(o),c=R(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(z(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function ye(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=L(t,e),p=ge(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=_e(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=_e(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var be=50,xe=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:ye},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ve(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<be&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=ve(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Se=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=L(e,t)||{};if(l==null)return{};let d=ge(u),f={x:n,y:r},p=ie(i),m=re(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=M(d[_],T),D=M(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=te(O,A,k),N=!c.arrow&&z(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,P=N?A<O?A-O:A-k:0;return{[p]:f[p]+P,data:{[p]:j,centerOffset:A-j-P,...N&&{alignmentOffset:P}},reset:N}}}),Ce=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=L(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=R(r),_=B(o),v=R(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[me(o)]:oe(o)),x=p!==`none`;!d&&x&&b.push(...pe(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=ae(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==B(t))||T.every(e=>B(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=B(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function we(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Te(e){return j.some(t=>e[t]>=0)}var Ee=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=L(e,t);switch(i){case`referenceHidden`:{let e=we(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Te(e)}}}case`escaped`:{let e=we(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Te(e)}}}default:return{}}}}},De=new Set([`left`,`top`]);async function Oe(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=R(n),s=z(n),c=B(n)===`y`,l=De.has(o)?-1:1,u=a&&c?-1:1,d=L(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var ke=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Oe(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Ae=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=L(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=B(R(i)),p=ne(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=te(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=te(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},je=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=L(e,t),u={x:n,y:r},d=B(i),f=ne(d),p=u[f],m=u[d],h=L(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=De.has(R(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Me=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=L(e,t),u=await o.detectOverflow(t,l),d=R(i),f=z(i),p=B(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=M(h-u[g],v),x=M(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=N(u.left,0),t=N(u.right,0),n=N(u.top,0),r=N(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:N(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:N(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Ne(){return typeof window<`u`}function V(e){return Pe(e)?(e.nodeName||``).toLowerCase():`#document`}function H(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function U(e){return((Pe(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Pe(e){return Ne()?e instanceof Node||e instanceof H(e).Node:!1}function W(e){return Ne()?e instanceof Element||e instanceof H(e).Element:!1}function G(e){return Ne()?e instanceof HTMLElement||e instanceof H(e).HTMLElement:!1}function Fe(e){return!Ne()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof H(e).ShadowRoot}function K(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Ie(e){return/^(table|td|th)$/.test(V(e))}function Le(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Re=/transform|translate|scale|rotate|perspective|filter/,ze=/paint|layout|strict|content/,q=e=>!!e&&e!==`none`,Be;function Ve(e){let t=W(e)?Y(e):e;return q(t.transform)||q(t.translate)||q(t.scale)||q(t.rotate)||q(t.perspective)||!Ue()&&(q(t.backdropFilter)||q(t.filter))||Re.test(t.willChange||``)||ze.test(t.contain||``)}function He(e){let t=X(e);for(;G(t)&&!J(t);){if(Ve(t))return t;if(Le(t))return null;t=X(t)}return null}function Ue(){return Be??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Be}function J(e){return/^(html|body|#document)$/.test(V(e))}function Y(e){return H(e).getComputedStyle(e)}function We(e){return W(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function X(e){if(V(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Fe(e)&&e.host||U(e);return Fe(t)?t.host:t}function Ge(e){let t=X(e);return J(t)?e.ownerDocument?e.ownerDocument.body:e.body:G(t)&&K(t)?t:Ge(t)}function Z(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Ge(e),i=r===e.ownerDocument?.body,a=H(r);if(i){let e=Ke(a);return t.concat(a,a.visualViewport||[],K(r)?r:[],e&&n?Z(e):[])}else return t.concat(r,Z(r,[],n))}function Ke(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qe(e){let t=Y(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=G(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=P(n)!==a||P(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Je(e){return W(e)?e:e.contextElement}function Q(e){let t=Je(e);if(!G(t))return I(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=qe(t),o=(a?P(n.width):n.width)/r,s=(a?P(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Ye=I(0);function Xe(e){let t=H(e);return!Ue()||!t.visualViewport?Ye:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ze(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==H(e)?!1:t}function $(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Je(e),o=I(1);t&&(r?W(r)&&(o=Q(r)):o=Q(e));let s=Ze(a,n,r)?Xe(a):I(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=H(a),t=r&&W(r)?H(r):r,n=e,i=Ke(n);for(;i&&r&&t!==n;){let e=Q(i),t=i.getBoundingClientRect(),r=Y(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=H(i),i=Ke(n)}}return _e({width:u,height:d,x:c,y:l})}function Qe(e,t){let n=We(e).scrollLeft;return t?t.left+n:$(U(e)).left+n}function $e(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Qe(e,n),y:n.top+t.scrollTop}}function et(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=U(r),s=t?Le(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=I(1),u=I(0),d=G(r);if((d||!d&&!a)&&((V(r)!==`body`||K(o))&&(c=We(r)),d)){let e=$(r);l=Q(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?$e(o,c):I(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function tt(e){return Array.from(e.getClientRects())}function nt(e){let t=U(e),n=We(e),r=e.ownerDocument.body,i=N(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=N(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Qe(e),s=-n.scrollTop;return Y(r).direction===`rtl`&&(o+=N(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var rt=25;function it(e,t){let n=H(e),r=U(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Ue();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Qe(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=rt&&(a-=o)}else l<=rt&&(a+=l);return{width:a,height:o,x:s,y:c}}function at(e,t){let n=$(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=G(e)?Q(e):I(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ot(e,t,n){let r;if(t===`viewport`)r=it(e,n);else if(t===`document`)r=nt(U(e));else if(W(t))r=at(t,n);else{let n=Xe(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return _e(r)}function st(e,t){let n=X(e);return n===t||!W(n)||J(n)?!1:Y(n).position===`fixed`||st(n,t)}function ct(e,t){let n=t.get(e);if(n)return n;let r=Z(e,[],!1).filter(e=>W(e)&&V(e)!==`body`),i=null,a=Y(e).position===`fixed`,o=a?X(e):e;for(;W(o)&&!J(o);){let t=Y(o),n=Ve(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||K(o)&&!n&&st(e,o))?r=r.filter(e=>e!==o):i=t,o=X(o)}return t.set(e,r),r}function lt(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Le(t)?[]:ct(t,this._c):[].concat(n),r],o=ot(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=ot(t,a[e],i);s=N(n.top,s),c=M(n.right,c),l=M(n.bottom,l),u=N(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function ut(e){let{width:t,height:n}=qe(e);return{width:t,height:n}}function dt(e,t,n){let r=G(t),i=U(t),a=n===`fixed`,o=$(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=I(0);function l(){c.x=Qe(i)}if(r||!r&&!a)if((V(t)!==`body`||K(i))&&(s=We(t)),r){let e=$(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?$e(i,s):I(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function ft(e){return Y(e).position===`static`}function pt(e,t){if(!G(e)||Y(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return U(e)===n&&(n=n.ownerDocument.body),n}function mt(e,t){let n=H(e);if(Le(e))return n;if(!G(e)){let t=X(e);for(;t&&!J(t);){if(W(t)&&!ft(t))return t;t=X(t)}return n}let r=pt(e,t);for(;r&&Ie(r)&&ft(r);)r=pt(r,t);return r&&J(r)&&ft(r)&&!Ve(r)?n:r||He(e)||n}var ht=async function(e){let t=this.getOffsetParent||mt,n=this.getDimensions,r=await n(e.floating);return{reference:dt(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function gt(e){return Y(e).direction===`rtl`}var _t={convertOffsetParentRelativeRectToViewportRelativeRect:et,getDocumentElement:U,getClippingRect:lt,getOffsetParent:mt,getElementRects:ht,getClientRects:tt,getDimensions:ut,getScale:Q,isElement:W,isRTL:gt};function vt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yt(e,t){let n=null,r,i=U(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=F(d),h=F(i.clientWidth-(u+f)),g=F(i.clientHeight-(d+p)),_=F(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:N(0,M(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!vt(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function bt(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Je(e),u=i||a?[...l?Z(l):[],...t?Z(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?yt(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?$(e):null;c&&g();function g(){let t=$(e);h&&!vt(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var xt=ke,St=Ae,Ct=Ce,wt=Me,Tt=Ee,Et=Se,Dt=je,Ot=(e,t,n)=>{let r=new Map,i={platform:_t,...n},a={...i.platform,_c:r};return xe(e,t,{...i,platform:a})},kt=typeof document<`u`?d.useLayoutEffect:function(){};function At(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!At(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!At(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function jt(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Mt(e,t){let n=jt(e);return Math.round(t*n)/n}function Nt(e){let t=d.useRef(e);return kt(()=>{t.current=e}),t}function Pt(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,f]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=d.useState(r);At(p,r)||m(r);let[h,_]=d.useState(null),[v,y]=d.useState(null),b=d.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=d.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),S=a||h,C=o||v,w=d.useRef(null),T=d.useRef(null),E=d.useRef(u),D=c!=null,O=Nt(c),k=Nt(i),A=Nt(l),j=d.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:p};k.current&&(e.platform=k.current),Ot(w.current,T.current,e).then(e=>{let t={...e,isPositioned:A.current!==!1};M.current&&!At(E.current,t)&&(E.current=t,g.flushSync(()=>{f(t)}))})},[p,t,n,k,A]);kt(()=>{l===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[l]);let M=d.useRef(!1);kt(()=>(M.current=!0,()=>{M.current=!1}),[]),kt(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(O.current)return O.current(S,C,j);j()}},[S,C,j,O,D]);let N=d.useMemo(()=>({reference:w,floating:T,setReference:b,setFloating:x}),[b,x]),P=d.useMemo(()=>({reference:S,floating:C}),[S,C]),F=d.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=Mt(P.floating,u.x),r=Mt(P.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...jt(P.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,P.floating,u.x,u.y]);return d.useMemo(()=>({...u,update:j,refs:N,elements:P,floatingStyles:F}),[u,j,N,P,F])}var Ft=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Et({element:r.current,padding:i}).fn(n):r?Et({element:r,padding:i}).fn(n):{}}}},It=(e,t)=>{let n=xt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Lt=(e,t)=>{let n=St(e);return{name:n.name,fn:n.fn,options:[e,t]}},Rt=(e,t)=>({fn:Dt(e).fn,options:[e,t]}),zt=(e,t)=>{let n=Ct(e);return{name:n.name,fn:n.fn,options:[e,t]}},Bt=(e,t)=>{let n=wt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Vt=(e,t)=>{let n=Tt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ht=(e,t)=>{let n=Ft(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ut=`Arrow`,Wt=d.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,f.jsx)(C.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,f.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Wt.displayName=Ut;var Gt=Wt;function Kt(e){let[t,n]=d.useState(void 0);return D(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var qt=`Portal`,Jt=d.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=d.useState(!1);D(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?g.createPortal((0,f.jsx)(C.div,{...r,ref:t}),o):null});Jt.displayName=qt;var Yt=d.useInsertionEffect||D;function Xt({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=Zt({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=d.useRef(e!==void 0);d.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,d.useCallback(t=>{if(s){let n=Qt(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function Zt({defaultProp:e,onChange:t}){let[n,r]=d.useState(e),i=d.useRef(n),a=d.useRef(t);return Yt(()=>{a.current=t},[t]),d.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function Qt(e){return typeof e==`function`}var $t=(0,d.createContext)(null);function en({container:e,children:t}){return(0,f.jsx)($t,{value:e,children:t})}function tn(){return(0,d.useContext)($t)}export{m as C,p as S,s as T,D as _,Kt as a,C as b,zt as c,It as d,Lt as f,A as g,bt as h,Jt as i,Vt as l,Pt as m,tn as n,Gt as o,Bt as p,Xt as r,Ht as s,en as t,Rt as u,E as v,u as w,w as x,T as y};
@@ -0,0 +1 @@
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-DJZBPgpf.js";import{d as n}from"./chunk-5KNZJZUH-B4b1m-Ya.js";import{n as r}from"./QueryClientProvider-DNHWXaGq.js";import{t as i}from"./useQuery-D2zf6Uhu.js";import{t as a}from"./useMutation-BuofVRHk.js";import{t as o}from"./jsx-runtime-CVSDxk6A.js";import{t as s}from"./button-DdEh-9f_.js";import{t as c}from"./card-CL5iEMJO.js";import{t as l}from"./input-Cu3PPVCq.js";import{c as u,d,o as f}from"./local-mode-Cx_DqCMC.js";import{t as p}from"./resolved-assistants-store-em3zt7_3.js";import{t as m}from"./loader-circle-B9sFQ7nF.js";import{t as h}from"./pencil-ulB7Z-e-.js";import{t as g}from"./x-D0wgTl3V.js";import{a as _,f as v,i as y,n as b,p as x}from"./auth-store-RIjuTM3X.js";import{t as S}from"./client.gen-CsQeNtuq.js";import{p as ee}from"./native-biometric-CfMWTyzx.js";import{i as C}from"./routes-DminYfDX.js";import{t as w}from"./public-asset-CdVbP-K-.js";import{Bn as T,D as E,E as D,Hn as O,M as k,Mt as A,N as j,P as M,Q as te,Ra as N,Un as ne,Vn as P,Z as re,co as F,dr as ie,f as ae,ft as oe,h as se,j as ce,kt as le,m as I,mr as ue,p as de,pi as fe,uo as L}from"./index-DTWPgS5K.js";import{t as R}from"./onboarding-layout-CAwJlju5.js";import{c as pe,i as me,n as z,o as he,r as ge,s as _e,t as B}from"./step-indicator-dots-DpYYCL7E.js";import{t as V}from"./use-oauth-complete-deep-link-listener-DxjdcVr0.js";var H=e(t(),1);async function ve(){try{let{data:e,response:t}=await S.get({url:`/v1/onboarding/recipe/`,throwOnError:!1});if(!t?.ok||!e)return null;let n=e;return typeof n.cohort!=`string`||!Array.isArray(n.tasks)||typeof n.tone!=`string`||typeof n.bootstrap_template!=`string`||typeof n.initial_message!=`string`||!Array.isArray(n.skills)||typeof n.skip_prechat!=`boolean`?null:{cohort:n.cohort,tasks:n.tasks,tone:n.tone,bootstrapTemplate:n.bootstrap_template,initialMessage:n.initial_message,skills:n.skills,skipPrechat:n.skip_prechat}}catch{return null}}var U=o(),ye=[{label:`Push notifications`,detail:`stay in the loop even when the browser is closed`},{label:`Biometric login`,detail:`Face ID & Touch ID for instant, secure access`},{label:`Native haptics`,detail:`tactile feedback that feels part of the device`},{label:`Home screen access`,detail:`launch your assistant with a single tap`}];function be({onComplete:e}){function t(){I(),ae(),e()}return(0,U.jsx)(R,{children:(0,U.jsxs)(`div`,{className:`mx-auto flex min-h-screen w-full max-w-md flex-col items-center justify-center px-6 pb-40 text-center`,children:[(0,U.jsx)(`div`,{className:`mb-8 flex size-16 items-center justify-center rounded-2xl border`,style:{background:`var(--surface-overlay)`,borderColor:`var(--border-element)`,boxShadow:`0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04)`,animation:`fadeInUp 0.3s ease-out both`},children:(0,U.jsxs)(`svg`,{width:`28`,height:`28`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,style:{color:`var(--content-default)`},"aria-hidden":!0,children:[(0,U.jsx)(`rect`,{x:`5`,y:`2`,width:`14`,height:`20`,rx:`3`}),(0,U.jsx)(`line`,{x1:`12`,y1:`18`,x2:`12`,y2:`18.01`})]})}),(0,U.jsx)(`p`,{className:`text-label-small-default mb-3 uppercase tracking-[0.2em]`,style:{color:`var(--content-tertiary)`,animation:`fadeInUp 0.3s ease-out 0.05s both`},children:`One more thing`}),(0,U.jsx)(`h1`,{className:`mb-3 text-3xl font-semibold tracking-tight`,style:{color:`var(--content-default)`,animation:`fadeInUp 0.3s ease-out 0.1s both`},children:`Your assistant, in your pocket.`}),(0,U.jsx)(`p`,{className:`text-body-medium-lighter mb-10 max-w-sm`,style:{color:`var(--content-secondary)`,animation:`fadeInUp 0.3s ease-out 0.15s both`},children:`The iOS app keeps your assistant a tap away — with push notifications, biometric login, and native haptics.`}),(0,U.jsx)(`div`,{className:`mb-10 w-full rounded-xl border px-5 py-4`,style:{background:`var(--surface-overlay)`,borderColor:`var(--border-element)`,animation:`fadeInUp 0.3s ease-out 0.2s both`},children:(0,U.jsx)(`ul`,{className:`space-y-4`,children:ye.map((e,t)=>(0,U.jsxs)(`li`,{className:`flex items-start gap-3`,style:{animation:`fadeInUp 0.3s ease-out ${.25+t*.05}s both`},children:[(0,U.jsx)(`span`,{className:`mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-full`,style:{background:`var(--system-positive-weak)`},children:(0,U.jsx)(L,{size:12,style:{color:`var(--system-positive-strong)`}})}),(0,U.jsxs)(`span`,{className:`text-left`,children:[(0,U.jsx)(`span`,{className:`text-body-medium-default`,style:{color:`var(--content-default)`},children:e.label}),(0,U.jsxs)(`span`,{className:`text-body-medium-lighter`,style:{color:`var(--content-tertiary)`},children:[` — `,e.detail]})]})]},e.label))})}),(0,U.jsxs)(`div`,{className:`flex w-full flex-col gap-2`,style:{animation:`fadeInUp 0.3s ease-out 0.45s both`},children:[(0,U.jsx)(s,{variant:`primary`,size:`regular`,fullWidth:!0,onClick:t,className:`h-11 text-base`,children:`Download on the App Store`}),(0,U.jsx)(s,{variant:`ghost`,size:`regular`,fullWidth:!0,onClick:e,className:`h-11 text-base`,children:`Continue in browser`})]})]})})}var W=`google`,xe=[{id:`gmail`,label:`Gmail`,logoSrc:w(`/images/integrations/gmail.svg`)},{id:`google-calendar`,label:`Google Calendar`,logoSrc:w(`/images/integrations/google-calendar.svg`)},{id:`google-drive`,label:`Google Drive`,logoSrc:w(`/images/integrations/google-drive.svg`)}];function Se({assistantId:e,assistantName:t,onConnect:n,onSkip:i,onBack:o}){let c=r(),l=ee(),u=(0,H.useRef)(null),d=(0,H.useRef)(null),f=(0,H.useRef)(null),p=(0,H.useRef)(null),h=(0,H.useRef)(null),g=(0,H.useRef)(null),_=(0,H.useRef)(null),[v,y]=(0,H.useState)(!1),b=(0,H.useCallback)(()=>{d.current=null,y(!1)},[]),x=(0,H.useCallback)(()=>{h.current&&=(window.removeEventListener(`message`,h.current),null),g.current&&=(window.removeEventListener(`storage`,g.current),null)},[]),S=(0,H.useCallback)(()=>{u.current&&!u.current.closed&&u.current.close(),u.current=null,f.current&&=(clearInterval(f.current),null),p.current&&=(clearTimeout(p.current),null)},[]),w=a({...A()});(0,H.useEffect)(()=>()=>{f.current&&clearInterval(f.current),p.current&&clearTimeout(p.current),u.current&&!u.current.closed&&u.current.close(),h.current&&window.removeEventListener(`message`,h.current),g.current&&window.removeEventListener(`storage`,g.current),_.current&&=(_.current(),null)},[]);let T=(0,H.useCallback)(async()=>{try{return(await c.fetchQuery({...le({path:{assistant_id:e}}),staleTime:0})).find(e=>e.provider===W&&e.connected)??null}catch{return null}},[e,c]),E=(0,H.useCallback)(async()=>{S(),b(),n((await T())?.scopes_granted??[])},[b,S,T,n]),D=(0,H.useCallback)(e=>{e.type===`vellum:oauth-complete`&&(!d.current||e.requestId!==d.current.requestId||(e.oauthStatus===`connected`?E():(S(),b())))},[b,S,E]),O=(0,H.useCallback)(e=>{let t=d.current;if(!t)return;let n=ce(e,window.location.origin,t.requestId);n&&D(n)},[D]),N=(0,H.useCallback)(e=>{let t=d.current;if(!t)return;let n=k(e,t.requestId);n&&(D(n),window.localStorage.removeItem(M(t.requestId)))},[D]);V((0,H.useCallback)(e=>{let t=d.current;t&&e.requestId===t.requestId&&D({type:`vellum:oauth-complete`,requestId:e.requestId,oauthStatus:e.oauthStatus,oauthProvider:e.oauthProvider,oauthCode:e.oauthCode})},[D]));let ne=(0,H.useCallback)(()=>{let t=crypto.randomUUID();if(x(),h.current=O,g.current=N,l){y(!0),d.current={requestId:t},w.mutate({path:{assistant_id:e,provider:W},body:{requested_scopes:[],redirect_after_connect:`${C.account.oauth.popupComplete}?requestId=${t}&native=1`}},{onSuccess(e){re(e.connect_url)},onError(){b()}}),window.addEventListener(`message`,O),window.addEventListener(`storage`,N),_.current&&_.current();let n=te(()=>{if(!d.current){n(),_.current=null;return}(async()=>{let e=await T();d.current&&(e?await E():b(),x(),n(),_.current=null)})()});_.current=n;return}let n=window.open(``,`_blank`,`width=500,height=600`);if(n===null){x();return}u.current=n,y(!0),d.current={requestId:t},window.addEventListener(`message`,O),window.addEventListener(`storage`,N),f.current=setInterval(()=>{u.current&&u.current.closed&&d.current&&!p.current&&(p.current=setTimeout(async()=>{p.current=null;let e=d.current;if(!e)return;let t=window.localStorage.getItem(M(e.requestId));if(t)try{let n=JSON.parse(t);if(j(n,e.requestId)){D(n),window.localStorage.removeItem(M(e.requestId)),x();return}}catch{}let n=await T();d.current&&(n?await E():(S(),b()),x())},1e3))},100),w.mutate({path:{assistant_id:e,provider:W},body:{requested_scopes:[],redirect_after_connect:`${C.account.oauth.popupComplete}?requestId=${t}`}},{onSuccess(e){u.current&&!u.current.closed?u.current.location.href=e.connect_url:d.current&&(S(),b(),x())},onError(){S(),b(),x()}})},[e,b,S,T,D,O,N,E,l,x,w]),P=t||`your assistant`,ie=t||`Your assistant`;return(0,U.jsx)(R,{children:(0,U.jsxs)(`div`,{className:`mx-auto flex w-full max-w-md flex-col items-center px-6 pb-40 pt-12 text-[var(--content-default)]`,children:[(0,U.jsxs)(`div`,{className:`grid w-full grid-cols-[auto_1fr_auto] items-center`,style:{animation:`fadeInUp 0.3s ease-out 0.1s both`},children:[(0,U.jsx)(`button`,{type:`button`,onClick:o,"aria-label":`Back`,className:`flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-[var(--content-secondary)] transition-colors hover:bg-[var(--surface-base)]`,children:(0,U.jsx)(F,{className:`h-4 w-4`})}),(0,U.jsx)(`h1`,{className:`text-center text-3xl font-semibold tracking-tight`,children:`Connect Google`}),(0,U.jsx)(`div`,{"aria-hidden":`true`,className:`h-8 w-8`})]}),(0,U.jsx)(`p`,{className:`mt-4 text-center text-body-medium-lighter text-[var(--content-secondary)]`,style:{animation:`fadeInUp 0.3s ease-out 0.15s both`},children:`If you use Google, ${P} can use Gmail, Calendar, and Drive with your permission.`}),(0,U.jsx)(`div`,{className:`mt-6 flex items-stretch justify-center gap-3`,style:{animation:`fadeInUp 0.3s ease-out 0.2s both`},children:xe.map(e=>(0,U.jsxs)(`div`,{className:`flex w-24 flex-col items-center gap-2.5 rounded-2xl bg-[var(--surface-lift)] px-3 pb-3 pt-4`,children:[(0,U.jsx)(`img`,{src:e.logoSrc,alt:``,width:28,height:28,className:`h-7 w-7 object-contain`,loading:`eager`}),(0,U.jsx)(`span`,{className:`text-center text-xs leading-tight text-[var(--content-tertiary)]`,children:e.label})]},e.id))}),(0,U.jsx)(`p`,{className:`mt-8 text-center text-body-medium-lighter text-[var(--content-secondary)]`,style:{animation:`fadeInUp 0.3s ease-out 0.25s both`},children:`${ie} will never send email, change calendar events, or edit files without your permission. You can disconnect at any time.`}),(0,U.jsxs)(`div`,{className:`mt-8 flex w-full flex-col gap-2`,style:{animation:`fadeInUp 0.3s ease-out 0.35s both`},children:[(0,U.jsx)(s,{variant:`primary`,size:`regular`,fullWidth:!0,onClick:ne,disabled:v||w.isPending,className:`h-11 text-base`,children:v||w.isPending?(0,U.jsxs)(`span`,{className:`flex items-center justify-center gap-2`,children:[(0,U.jsx)(m,{className:`h-4 w-4 animate-spin`,"aria-hidden":!0}),`Waiting for authorization...`]}):`Connect Google`}),(0,U.jsx)(s,{variant:`ghost`,size:`regular`,fullWidth:!0,onClick:i,disabled:v||w.isPending,className:`h-11 text-base`,children:`Skip for now`})]})]})})}var G=[{id:`grounded`,label:`Grounded`,descriptor:`Calm and precise`,tagline:`Measured. No filler.`,names:[`Penn`,`Sage`,`Atlas`,`Orion`,`Reed`,`Quill`]},{id:`warm`,label:`Warm`,descriptor:`Warm and easy`,tagline:`Friendly and casual.`,names:[`Kit`,`Remy`,`Wren`,`Milo`,`Fenn`,`Cleo`]},{id:`energetic`,label:`Energetic`,descriptor:`Fast and direct`,tagline:`Brief. To the point.`,names:[`Nova`,`Ember`,`Cade`,`Lark`,`Vela`,`Ziggy`]},{id:`poetic`,label:`Poetic`,descriptor:`Quiet and observant`,tagline:`Listens, then replies.`,names:[`Luna`,`Iris`,`Vesper`,`Lyra`,`Juno`,`Ada`]}],Ce=6;function we(){return G.flatMap(e=>e.names)}function Te(){let e=we(),t=Math.min(Ce,e.length);for(let n=0;n<t;n+=1){let t=n+Math.floor(Math.random()*(e.length-n)),r=e[n];e[n]=e[t],e[t]=r}return e.slice(0,t)}function Ee({userName:e,assistantName:t,selectedGroupId:n,displayedAssistantNames:r,onUserNameChange:i,onAssistantNameChange:a,onGroupChange:o,onBack:c,onComplete:u,onSkip:d}){return(0,U.jsx)(R,{children:(0,U.jsxs)(`div`,{className:`mx-auto flex w-full max-w-md flex-col items-center px-6 pb-40 pt-12 text-[var(--content-default)]`,children:[(0,U.jsxs)(`div`,{className:`grid w-full items-center ${c?`grid-cols-[auto_1fr_auto]`:``}`,style:{animation:`fadeInUp 0.3s ease-out 0.1s both`},children:[c?(0,U.jsx)(`button`,{type:`button`,onClick:c,"aria-label":`Back`,className:`flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-[var(--content-secondary)] transition-colors hover:bg-[var(--surface-base)]`,children:(0,U.jsx)(F,{className:`h-4 w-4`})}):null,(0,U.jsx)(`h1`,{className:`text-center text-3xl font-semibold tracking-tight`,children:`Let's get to know each other.`}),c?(0,U.jsx)(`div`,{"aria-hidden":`true`,className:`h-8 w-8`}):null]}),(0,U.jsx)(`p`,{className:`mt-2 text-center text-body-medium-lighter text-[var(--content-secondary)]`,style:{animation:`fadeInUp 0.3s ease-out 0.15s both`},children:`You can change these any time.`}),(0,U.jsxs)(`div`,{className:`mt-8 flex w-full flex-col gap-6`,style:{animation:`fadeInUp 0.3s ease-out 0.3s both`},children:[(0,U.jsx)(l,{label:`Your name`,placeholder:`Your name`,value:e,onChange:e=>i(e.target.value),fullWidth:!0}),(0,U.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,U.jsx)(l,{label:`What should I go by?`,placeholder:`Assistant name`,value:t,onChange:e=>a(e.target.value),fullWidth:!0}),(0,U.jsx)(`p`,{className:`text-body-small-default text-[var(--content-tertiary)]`,children:`A few to try`}),(0,U.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:r.map(e=>{let n=e===t;return(0,U.jsx)(`button`,{type:`button`,onClick:()=>a(e),"aria-pressed":n,className:`cursor-pointer rounded-full border px-3 py-1 text-label-small-default transition-colors ${n?`border-[var(--primary-base)] bg-[var(--primary-base)] text-[var(--content-inset)]`:`border-[var(--border-element)] bg-[var(--surface-lift)] text-[var(--content-secondary)] hover:bg-[var(--surface-base)]`}`,children:e},e)})})]}),(0,U.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,U.jsx)(`p`,{className:`text-body-small-default text-[var(--content-secondary)]`,children:`Pick a vibe`}),(0,U.jsx)(`div`,{className:`grid grid-cols-2 gap-2`,children:G.map(e=>(0,U.jsx)(De,{group:e,isActive:n===e.id,onToggle:()=>o(n===e.id?null:e.id)},e.id))})]})]}),(0,U.jsxs)(`div`,{className:`mt-8 flex w-full flex-col gap-2`,style:{animation:`fadeInUp 0.3s ease-out 0.3s both`},children:[(0,U.jsx)(s,{variant:`primary`,size:`regular`,fullWidth:!0,onClick:u,className:`h-11 text-base`,children:`Let's go`}),(0,U.jsx)(s,{variant:`ghost`,size:`regular`,fullWidth:!0,onClick:d,className:`h-11 text-base`,children:`Skip`})]})]})})}function De({group:e,isActive:t,onToggle:n}){return(0,U.jsxs)(`button`,{type:`button`,onClick:n,"aria-pressed":t,"aria-label":`${e.label}, ${e.descriptor}`,className:`flex cursor-pointer flex-col items-start gap-0.5 rounded-lg border p-3 text-left transition-colors ${t?`border-[var(--primary-base)] bg-[var(--primary-base)] text-[var(--content-inset)]`:`border-[var(--border-element)] bg-[var(--surface-lift)] hover:bg-[var(--surface-base)]`}`,children:[(0,U.jsx)(`span`,{className:`text-body-medium-default ${t?`text-[var(--content-inset)]`:`text-[var(--content-default)]`}`,children:e.descriptor}),(0,U.jsx)(`span`,{className:`text-body-small-default ${t?`text-[var(--content-inset)] opacity-60`:`text-[var(--content-tertiary)]`}`,children:e.tagline})]})}function Oe({userName:e,assistantName:t,displayedAssistantNames:n,onUserNameChange:r,onAssistantNameChange:i,onBack:a,onContinue:o,onSkip:c,currentStep:u,totalSteps:d}){return(0,U.jsx)(R,{children:(0,U.jsxs)(`div`,{className:`mx-auto flex min-h-screen w-full max-w-md flex-col px-6 pb-40 text-[var(--content-default)]`,children:[(0,U.jsxs)(`div`,{className:`grid w-full grid-cols-[auto_1fr_auto] items-center pb-4`,style:{paddingTop:`calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 1rem)`,animation:`fadeInUp 0.3s ease-out 0.1s both`},children:[a?(0,U.jsx)(s,{variant:`ghost`,size:`compact`,iconOnly:(0,U.jsx)(F,{}),onClick:a,"aria-label":`Back`}):(0,U.jsx)(`div`,{"aria-hidden":`true`,className:`h-8 w-8`}),(0,U.jsx)(`div`,{className:`flex justify-center`,children:(0,U.jsx)(B,{current:u,total:d})}),(0,U.jsx)(`div`,{"aria-hidden":`true`,className:`h-8 w-8`})]}),(0,U.jsxs)(`div`,{className:`flex flex-1 flex-col items-center pt-4`,children:[(0,U.jsx)(`h1`,{className:`text-center text-3xl font-semibold tracking-tight`,style:{animation:`fadeInUp 0.3s ease-out 0.1s both`},children:`Let's get to know each other.`}),(0,U.jsx)(`p`,{className:`mt-2 text-center text-body-medium-lighter text-[var(--content-secondary)]`,style:{animation:`fadeInUp 0.3s ease-out 0.15s both`},children:`You can change these any time.`}),(0,U.jsxs)(`div`,{className:`mt-8 flex w-full flex-col gap-6`,style:{animation:`fadeInUp 0.3s ease-out 0.3s both`},children:[(0,U.jsx)(l,{label:`Your name`,placeholder:`Your name`,value:e,onChange:e=>r(e.target.value),fullWidth:!0}),(0,U.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,U.jsx)(l,{label:`What should I go by?`,placeholder:`Assistant name`,value:t,onChange:e=>i(e.target.value),fullWidth:!0}),(0,U.jsx)(`p`,{className:`text-body-small-default text-[var(--content-tertiary)]`,children:`A few to try`}),(0,U.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:n.map(e=>{let n=e===t;return(0,U.jsx)(`button`,{type:`button`,onClick:()=>i(e),"aria-pressed":n,className:`cursor-pointer rounded-full border px-3 py-1 text-label-small-default transition-colors ${n?`border-[var(--primary-base)] bg-[var(--primary-base)] text-[var(--content-inset)]`:`border-[var(--border-element)] bg-[var(--surface-lift)] text-[var(--content-secondary)] hover:bg-[var(--surface-base)]`}`,children:e},e)})})]})]})]}),(0,U.jsxs)(`div`,{className:`flex w-full flex-col gap-2 pb-4`,style:{animation:`fadeInUp 0.3s ease-out 0.3s both`},children:[(0,U.jsx)(s,{variant:`primary`,size:`regular`,fullWidth:!0,onClick:o,className:`h-11 text-base`,children:`Continue`}),(0,U.jsx)(s,{variant:`ghost`,size:`regular`,fullWidth:!0,onClick:c,className:`h-11 text-base`,children:`Skip`})]})]})})}var ke=[{id:`chatgpt`,label:`ChatGPT`,logoSrc:w(`/images/prior-assistants/chatgpt.svg`)},{id:`claude`,label:`Claude`,logoSrc:w(`/images/prior-assistants/claude.svg`)},{id:`openclaw`,label:`OpenClaw`,logoSrc:w(`/images/prior-assistants/openclaw.png`)},{id:`hermes`,label:`Hermes`,logoSrc:w(`/images/prior-assistants/hermes.png`)},{id:`manus`,label:`Manus`,logoSrc:w(`/images/prior-assistants/manus.svg`)},{id:`gemini`,label:`Gemini`,logoSrc:w(`/images/prior-assistants/gemini.svg`)},{id:`copilot`,label:`Copilot`,logoSrc:w(`/images/prior-assistants/copilot.svg`)}];function Ae({selectedAssistants:e,onChange:t,onBack:n,onContinue:r,onSkip:i}){let[a,o]=(0,H.useState)(()=>K(e)),[u,d]=(0,H.useState)(()=>a.length>0),f=(0,H.useRef)(q(e));(0,H.useEffect)(()=>{let t=q(e);if(t===f.current)return;let n=K(e);o(n),d(e=>e||n.length>0),f.current=t},[e]),(0,H.useEffect)(()=>{let n=new Set([...e].filter(e=>!e.startsWith(`other:`))),r=new Set;for(let e of a.split(`,`)){let t=e.trim();t&&(r.has(t)||(r.add(t),n.add(`other:${t}`)))}je(n,e)||(f.current=q(n),t(n))},[a]);let p=n=>{let r=new Set(e);r.has(n)?r.delete(n):r.add(n),t(r)},m=(0,H.useMemo)(()=>{let e=new Set;return a.split(`,`).map(e=>e.trim()).filter(t=>!t||e.has(t)?!1:(e.add(t),!0))},[a]),_=e.size===0?`Continue`:`Continue · ${e.size} selected`;return(0,U.jsx)(R,{children:(0,U.jsxs)(`div`,{className:`mx-auto flex w-full max-w-2xl flex-col items-center px-6 pb-40 pt-12 text-[var(--content-default)]`,children:[(0,U.jsxs)(`div`,{className:`grid w-full items-center grid-cols-[auto_1fr_auto]`,style:{animation:`fadeInUp 0.3s ease-out 0.1s both`},children:[(0,U.jsx)(`button`,{type:`button`,onClick:n,"aria-label":`Back`,className:`flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-[var(--content-secondary)] transition-colors hover:bg-[var(--surface-base)]`,children:(0,U.jsx)(F,{className:`h-4 w-4`})}),(0,U.jsx)(`h1`,{className:`text-center text-3xl font-semibold tracking-tight`,children:`Have you used any of these?`}),(0,U.jsx)(`div`,{"aria-hidden":`true`,className:`h-8 w-8`})]}),(0,U.jsx)(`p`,{className:`mt-4 text-center text-body-medium-lighter text-[var(--content-tertiary)]`,style:{animation:`fadeInUp 0.3s ease-out 0.15s both`},children:`If you've built anything with another assistant, I can help you bring it over.`}),(0,U.jsxs)(`div`,{className:`mt-8 grid w-full grid-cols-2 gap-2 sm:grid-cols-3 md:grid-cols-4`,style:{animation:`fadeInUp 0.3s ease-out 0.2s both`},children:[ke.map(t=>(0,U.jsx)(Me,{assistant:t,selected:e.has(t.id),onToggle:()=>p(t.id)},t.id)),u?null:(0,U.jsx)(Ne,{onClick:()=>d(!0)})]}),u?(0,U.jsx)(c,{padding:`md`,className:`mt-3 w-full border-[var(--primary-base)] bg-[color-mix(in_srgb,var(--primary-base)_8%,transparent)]`,children:(0,U.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,U.jsx)(h,{className:`h-3.5 w-3.5 text-[var(--content-secondary)]`,"aria-hidden":`true`}),(0,U.jsx)(`span`,{className:`text-body-medium-default text-[var(--content-default)]`,children:`Something else`}),(0,U.jsx)(`button`,{type:`button`,onClick:()=>{d(!1),o(``)},"aria-label":`Dismiss custom assistants`,className:`ml-auto inline-flex h-6 w-6 cursor-pointer items-center justify-center rounded-md text-[var(--content-tertiary)] hover:bg-[var(--surface-base)]`,children:(0,U.jsx)(g,{className:`h-3 w-3`,"aria-hidden":`true`})})]}),(0,U.jsx)(l,{"aria-label":`Other assistants`,placeholder:`e.g. Perplexity, Poe, Character.AI...`,value:a,onChange:e=>o(e.target.value),helperText:`Separate multiple assistants with commas`,fullWidth:!0}),m.length>0?(0,U.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:m.map(e=>(0,U.jsx)(`span`,{className:`rounded-full bg-[var(--primary-base)] px-3 py-1 text-label-small-default text-[var(--content-inset)]`,children:e},e))}):null]})}):null,(0,U.jsxs)(`div`,{className:`mt-8 flex w-full flex-col gap-2`,style:{animation:`fadeInUp 0.3s ease-out 0.3s both`},children:[(0,U.jsx)(s,{variant:`primary`,size:`regular`,fullWidth:!0,disabled:e.size===0,onClick:r,className:`h-11 text-base`,children:_}),(0,U.jsx)(s,{variant:`ghost`,size:`regular`,fullWidth:!0,onClick:i,className:`h-11 text-base`,children:`I haven't used any`})]})]})})}function je(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function K(e){return[...e].filter(e=>e.startsWith(`other:`)).map(e=>e.slice(6)).sort().join(`, `)}function q(e){return[...e].filter(e=>e.startsWith(`other:`)).sort().join(`|`)}function Me({assistant:e,selected:t,onToggle:n}){return(0,U.jsxs)(`button`,{type:`button`,onClick:n,"aria-pressed":t,"aria-label":e.label,className:`relative flex h-[88px] w-full cursor-pointer flex-col items-center justify-center gap-1.5 rounded-lg border p-2 transition-colors ${t?`border-[var(--primary-base)] bg-[color-mix(in_srgb,var(--primary-base)_10%,transparent)]`:`border-[var(--border-element)] bg-[var(--surface-lift)] hover:bg-[var(--surface-base)]`}`,children:[(0,U.jsx)(Pe,{assistant:e,size:32}),(0,U.jsx)(`span`,{className:`line-clamp-2 text-center text-label-medium-default text-[var(--content-default)]`,children:e.label}),t?(0,U.jsx)(`span`,{"aria-hidden":`true`,className:`absolute right-2 top-2 flex h-4 w-4 items-center justify-center rounded-full bg-[var(--primary-base)]`,children:(0,U.jsx)(L,{className:`h-2.5 w-2.5 text-[var(--content-inset)]`,"aria-hidden":`true`})}):null]})}function Ne({onClick:e}){return(0,U.jsxs)(`button`,{type:`button`,onClick:e,"aria-label":`Something else`,className:`flex h-[88px] w-full cursor-pointer flex-col items-center justify-center gap-1.5 rounded-lg border border-[var(--border-element)] bg-[var(--surface-lift)] p-2 transition-colors hover:bg-[var(--surface-base)]`,children:[(0,U.jsx)(`span`,{className:`flex h-8 w-8 items-center justify-center rounded-full bg-[var(--surface-base)]`,children:(0,U.jsx)(N,{className:`h-4 w-4 text-[var(--content-secondary)]`,"aria-hidden":`true`})}),(0,U.jsx)(`span`,{className:`line-clamp-2 text-center text-label-medium-default text-[var(--content-default)]`,children:`Something else`})]})}function Pe({assistant:e,size:t}){if(e.logoSrc)return e.logoSrcDark?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`span`,{className:`flex items-center justify-center dark:hidden`,style:{width:t,height:t},"aria-hidden":`true`,children:(0,U.jsx)(`img`,{src:e.logoSrc,alt:``,width:t,height:t,className:`max-h-full max-w-full object-contain`,loading:`eager`})}),(0,U.jsx)(`span`,{className:`hidden items-center justify-center dark:flex`,style:{width:t,height:t},"aria-hidden":`true`,children:(0,U.jsx)(`img`,{src:e.logoSrcDark,alt:``,width:t,height:t,className:`max-h-full max-w-full object-contain`,loading:`eager`})})]}):(0,U.jsx)(`span`,{className:`flex items-center justify-center`,style:{width:t,height:t},children:(0,U.jsx)(`img`,{src:e.logoSrc,alt:``,width:t,height:t,className:`max-h-full max-w-full object-contain`,loading:`eager`})});let n=e.label.slice(0,2).toUpperCase();return(0,U.jsx)(`span`,{className:`flex items-center justify-center rounded-full bg-[var(--surface-base)] text-label-small-default text-[var(--content-default)]`,style:{width:t,height:t},"aria-hidden":`true`,children:n})}function Fe({selectedTasks:e,onChange:t,onBack:n,onContinue:r,onSkip:i}){let a=n=>{let r=new Set(e);r.has(n)?r.delete(n):r.add(n),t(r)};return(0,U.jsx)(R,{children:(0,U.jsxs)(`div`,{className:`mx-auto flex w-full max-w-xl flex-col items-center px-6 pb-40 pt-12 text-[var(--content-default)]`,children:[(0,U.jsxs)(`div`,{className:`grid w-full grid-cols-[auto_1fr_auto] items-center`,style:{animation:`fadeInUp 0.3s ease-out 0.1s both`},children:[(0,U.jsx)(`button`,{type:`button`,onClick:n,"aria-label":`Back`,className:`flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-[var(--content-secondary)] transition-colors hover:bg-[var(--surface-base)]`,children:(0,U.jsx)(F,{className:`h-4 w-4`})}),(0,U.jsx)(`h1`,{className:`text-center text-3xl font-semibold tracking-tight`,children:`What are you working on?`}),(0,U.jsx)(`div`,{"aria-hidden":`true`,className:`h-8 w-8`})]}),(0,U.jsx)(`p`,{className:`mt-4 text-center text-body-medium-lighter text-[var(--content-tertiary)]`,style:{animation:`fadeInUp 0.3s ease-out 0.15s both`},children:`Pick the one or two you do most — you can select more if it really is all of it.`}),(0,U.jsx)(`div`,{className:`mt-8 flex w-full flex-col gap-2`,style:{animation:`fadeInUp 0.3s ease-out 0.2s both`},children:D.map(t=>{let n=E[t.iconKey],r=e.has(t.id);return(0,U.jsxs)(`button`,{type:`button`,onClick:()=>a(t.id),"aria-pressed":r,className:`group flex w-full cursor-pointer items-center gap-3 rounded-lg border px-4 py-3 text-left transition-colors ${r?`border-[var(--primary-base)] bg-[var(--primary-base)]/10`:`border-[var(--border-element)] bg-[var(--surface-lift)] hover:bg-[var(--surface-base)]`}`,children:[(0,U.jsx)(`div`,{className:`flex w-6 shrink-0 items-center justify-center text-[var(--content-secondary)]`,children:n?(0,U.jsx)(n,{className:`h-4 w-4`}):null}),(0,U.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,U.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:t.label}),(0,U.jsx)(`p`,{className:`mt-0.5 text-body-small-default text-[var(--content-tertiary)]`,children:t.sublabel})]}),(0,U.jsx)(`div`,{"aria-hidden":`true`,className:`flex h-5 w-5 shrink-0 items-center justify-center rounded-md ${r?`bg-[var(--primary-base)]`:`border-[1.5px] border-[var(--border-element)]`}`,children:r?(0,U.jsx)(L,{className:`h-3 w-3 text-[var(--content-inset)]`}):null})]},t.id)})}),(0,U.jsxs)(`div`,{className:`mt-8 flex w-full flex-col gap-2`,style:{animation:`fadeInUp 0.3s ease-out 0.3s both`},children:[(0,U.jsx)(s,{variant:`primary`,size:`regular`,fullWidth:!0,disabled:e.size===0,onClick:r,className:`h-11 text-base`,children:`Continue`}),(0,U.jsx)(s,{variant:`ghost`,size:`regular`,fullWidth:!0,onClick:i,className:`h-11 text-base`,children:`I'll set this up later`})]})]})})}var Ie=new Set([`gmail`,`google-calendar`,`google-drive`]),J=[{id:`gmail`,label:`Gmail`,logoSrc:w(`/images/integrations/gmail.svg`)},{id:`outlook`,label:`Outlook`,logoSrc:w(`/images/integrations/outlook.png`)},{id:`google-calendar`,label:`Google Calendar`,logoSrc:w(`/images/integrations/google-calendar.svg`)},{id:`slack`,label:`Slack`,logoSrc:w(`/images/integrations/slack.svg`)},{id:`notion`,label:`Notion`,logoSrc:w(`/images/integrations/notion.svg`)},{id:`linear`,label:`Linear`,logoSrc:w(`/images/integrations/linear-light-logo.svg`)},{id:`jira`,label:`Jira`,logoSrc:w(`/images/integrations/jira.svg`)},{id:`github`,label:`GitHub`,logoSrc:w(`/images/integrations/github.svg`),logoSrcDark:w(`/images/integrations/github-dark.svg`)},{id:`figma`,label:`Figma`,logoSrc:w(`/images/integrations/figma.svg`)},{id:`google-drive`,label:`Google Drive`,logoSrc:w(`/images/integrations/google-drive.svg`)},{id:`excel`,label:`Excel`,logoSrc:w(`/images/integrations/excel.svg`)},{id:`apple-notes`,label:`Apple Notes`,logoSrc:w(`/images/integrations/apple-notes.svg`)}];function Le(e){let t=e.map(e=>e.startsWith(`other:`)?e.slice(6):e);return Array.from(new Set(t)).sort()}function Re({selectedTools:e,onChange:t,onBack:n,onContinue:r,onSkip:i}){let[a,o]=(0,H.useState)(()=>ze(e)),[u,d]=(0,H.useState)(()=>a.length>0),f=(0,H.useRef)(Be(e));(0,H.useEffect)(()=>{let t=Be(e);if(t===f.current)return;let n=ze(e);o(n),d(e=>e||n.length>0),f.current=t},[e]),(0,H.useEffect)(()=>{let n=new Set([...e].filter(e=>!e.startsWith(`other:`))),r=new Set;for(let e of a.split(`,`)){let t=e.trim();t&&(r.has(t)||(r.add(t),n.add(`other:${t}`)))}Y(n,e)||(f.current=Be(n),t(n))},[a]);let p=n=>{let r=new Set(e);r.has(n)?r.delete(n):r.add(n),t(r)},m=(0,H.useMemo)(()=>{let e=new Set;return a.split(`,`).map(e=>e.trim()).filter(t=>!t||e.has(t)?!1:(e.add(t),!0))},[a]),_=e.size===0?`Continue`:`Continue · ${e.size} selected`;return(0,U.jsx)(R,{children:(0,U.jsxs)(`div`,{className:`mx-auto flex w-full max-w-2xl flex-col items-center px-6 pb-40 pt-12 text-[var(--content-default)]`,children:[(0,U.jsxs)(`div`,{className:`grid w-full items-center ${n?`grid-cols-[auto_1fr_auto]`:``}`,style:{animation:`fadeInUp 0.3s ease-out 0.1s both`},children:[n?(0,U.jsx)(`button`,{type:`button`,onClick:n,"aria-label":`Back`,className:`flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-[var(--content-secondary)] transition-colors hover:bg-[var(--surface-base)]`,children:(0,U.jsx)(F,{className:`h-4 w-4`})}):null,(0,U.jsx)(`h1`,{className:`text-center text-3xl font-semibold tracking-tight`,children:`What do you use?`}),n?(0,U.jsx)(`div`,{"aria-hidden":`true`,className:`h-8 w-8`}):null]}),(0,U.jsx)(`p`,{className:`mt-4 text-center text-body-medium-lighter text-[var(--content-tertiary)]`,style:{animation:`fadeInUp 0.3s ease-out 0.15s both`},children:`This helps me tailor how I assist you. No connections needed — you can set those up later.`}),(0,U.jsxs)(`div`,{className:`mt-8 grid w-full grid-cols-2 gap-2 sm:grid-cols-3 md:grid-cols-4`,style:{animation:`fadeInUp 0.3s ease-out 0.2s both`},children:[J.map(t=>(0,U.jsx)(Ve,{tool:t,selected:e.has(t.id),onToggle:()=>p(t.id)},t.id)),u?null:(0,U.jsx)(X,{onClick:()=>d(!0)})]}),u?(0,U.jsx)(c,{padding:`md`,className:`mt-3 w-full border-[var(--primary-base)] bg-[color-mix(in_srgb,var(--primary-base)_8%,transparent)]`,children:(0,U.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,U.jsx)(h,{className:`h-3.5 w-3.5 text-[var(--content-secondary)]`,"aria-hidden":`true`}),(0,U.jsx)(`span`,{className:`text-body-medium-default text-[var(--content-default)]`,children:`Something else`}),(0,U.jsx)(`button`,{type:`button`,onClick:()=>{d(!1),o(``)},"aria-label":`Dismiss custom tools`,className:`ml-auto inline-flex h-6 w-6 cursor-pointer items-center justify-center rounded-md text-[var(--content-tertiary)] hover:bg-[var(--surface-base)]`,children:(0,U.jsx)(g,{className:`h-3 w-3`,"aria-hidden":`true`})})]}),(0,U.jsx)(l,{"aria-label":`Other tools`,placeholder:`e.g. Trello, Basecamp, Asana...`,value:a,onChange:e=>o(e.target.value),helperText:`Separate multiple tools with commas`,fullWidth:!0}),m.length>0?(0,U.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:m.map(e=>(0,U.jsx)(`span`,{className:`rounded-full bg-[var(--primary-base)] px-3 py-1 text-label-small-default text-[var(--content-inset)]`,children:e},e))}):null]})}):null,(0,U.jsxs)(`div`,{className:`mt-8 flex w-full flex-col gap-2`,style:{animation:`fadeInUp 0.3s ease-out 0.3s both`},children:[(0,U.jsx)(s,{variant:`primary`,size:`regular`,fullWidth:!0,disabled:e.size===0,onClick:r,className:`h-11 text-base`,children:_}),(0,U.jsx)(s,{variant:`ghost`,size:`regular`,fullWidth:!0,onClick:i,className:`h-11 text-base`,children:`I'll set this up later`})]})]})})}function Y(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function ze(e){return[...e].filter(e=>e.startsWith(`other:`)).map(e=>e.slice(6)).sort().join(`, `)}function Be(e){return[...e].filter(e=>e.startsWith(`other:`)).sort().join(`|`)}function Ve({tool:e,selected:t,onToggle:n}){return(0,U.jsxs)(`button`,{type:`button`,onClick:n,"aria-pressed":t,"aria-label":e.label,className:`relative flex h-[88px] w-full cursor-pointer flex-col items-center justify-center gap-1.5 rounded-lg border p-2 transition-colors ${t?`border-[var(--primary-base)] bg-[color-mix(in_srgb,var(--primary-base)_10%,transparent)]`:`border-[var(--border-element)] bg-[var(--surface-lift)] hover:bg-[var(--surface-base)]`}`,children:[(0,U.jsx)(He,{tool:e,size:32}),(0,U.jsx)(`span`,{className:`line-clamp-2 text-center text-label-medium-default text-[var(--content-default)]`,children:e.label}),t?(0,U.jsx)(`span`,{"aria-hidden":`true`,className:`absolute right-2 top-2 flex h-4 w-4 items-center justify-center rounded-full bg-[var(--primary-base)]`,children:(0,U.jsx)(L,{className:`h-2.5 w-2.5 text-[var(--content-inset)]`,"aria-hidden":`true`})}):null]})}function X({onClick:e}){return(0,U.jsxs)(`button`,{type:`button`,onClick:e,"aria-label":`Something else`,className:`flex h-[88px] w-full cursor-pointer flex-col items-center justify-center gap-1.5 rounded-lg border border-[var(--border-element)] bg-[var(--surface-lift)] p-2 transition-colors hover:bg-[var(--surface-base)]`,children:[(0,U.jsx)(`span`,{className:`flex h-8 w-8 items-center justify-center rounded-full bg-[var(--surface-base)]`,children:(0,U.jsx)(N,{className:`h-4 w-4 text-[var(--content-secondary)]`,"aria-hidden":`true`})}),(0,U.jsx)(`span`,{className:`line-clamp-2 text-center text-label-medium-default text-[var(--content-default)]`,children:`Something else`})]})}function He({tool:e,size:t}){if(e.logoSrc)return e.logoSrcDark?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`span`,{className:`flex items-center justify-center dark:hidden`,style:{width:t,height:t},"aria-hidden":`true`,children:(0,U.jsx)(`img`,{src:e.logoSrc,alt:``,width:t,height:t,className:`max-h-full max-w-full object-contain`,loading:`eager`})}),(0,U.jsx)(`span`,{className:`hidden items-center justify-center dark:flex`,style:{width:t,height:t},"aria-hidden":`true`,children:(0,U.jsx)(`img`,{src:e.logoSrcDark,alt:``,width:t,height:t,className:`max-h-full max-w-full object-contain`,loading:`eager`})})]}):(0,U.jsx)(`span`,{className:`flex items-center justify-center`,style:{width:t,height:t},children:(0,U.jsx)(`img`,{src:e.logoSrc,alt:``,width:t,height:t,className:`max-h-full max-w-full object-contain`,loading:`eager`})});let n=e.label.slice(0,2).toUpperCase();return(0,U.jsx)(`span`,{className:`flex items-center justify-center rounded-full bg-[var(--surface-base)] text-label-small-default text-[var(--content-default)]`,style:{width:t,height:t},"aria-hidden":`true`,children:n})}function Ue({selectedGroupId:e,onGroupChange:t,onBack:n,onContinue:r,onSkip:i,currentStep:a,totalSteps:o}){return(0,U.jsx)(R,{children:(0,U.jsxs)(`div`,{className:`mx-auto flex min-h-screen w-full max-w-md flex-col px-6 pb-40 text-[var(--content-default)]`,children:[(0,U.jsxs)(`div`,{className:`grid w-full grid-cols-[auto_1fr_auto] items-center pb-4`,style:{paddingTop:`calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 1rem)`,animation:`fadeInUp 0.3s ease-out 0.1s both`},children:[(0,U.jsx)(s,{variant:`ghost`,size:`compact`,iconOnly:(0,U.jsx)(F,{}),onClick:n,"aria-label":`Back`}),(0,U.jsx)(`div`,{className:`flex justify-center`,children:(0,U.jsx)(B,{current:a,total:o})}),(0,U.jsx)(`div`,{"aria-hidden":`true`,className:`h-8 w-8`})]}),(0,U.jsxs)(`div`,{className:`flex flex-1 flex-col items-center pt-4`,children:[(0,U.jsx)(`h1`,{className:`w-full text-left text-3xl font-semibold tracking-tight`,style:{animation:`fadeInUp 0.3s ease-out 0.1s both`},children:`What's my vibe?`}),(0,U.jsx)(`p`,{className:`mt-2 w-full text-left text-body-medium-lighter text-[var(--content-secondary)]`,style:{animation:`fadeInUp 0.3s ease-out 0.15s both`},children:`You can change this any time.`}),(0,U.jsx)(`div`,{className:`mt-8 flex w-full flex-col gap-3`,style:{animation:`fadeInUp 0.3s ease-out 0.3s both`},children:G.map(n=>{let r=e===n.id;return(0,U.jsxs)(`button`,{type:`button`,onClick:()=>t(r?null:n.id),"aria-pressed":r,className:`flex cursor-pointer items-center justify-between rounded-xl border px-4 py-4 text-left transition-colors ${r?`border-[var(--content-default)] bg-[var(--surface-lift)]`:`border-[var(--border-element)] bg-[var(--surface-lift)] hover:bg-[var(--surface-base)]`}`,children:[(0,U.jsx)(`span`,{className:`text-body-medium-default text-[var(--content-default)]`,children:n.descriptor}),(0,U.jsx)(`span`,{className:`flex h-5 w-5 items-center justify-center rounded-full border-2 transition-colors ${r?`border-[var(--content-default)]`:`border-[var(--content-disabled)]`}`,children:r&&(0,U.jsx)(`span`,{className:`h-2.5 w-2.5 rounded-full bg-[var(--content-default)]`})})]},n.id)})})]}),(0,U.jsxs)(`div`,{className:`flex w-full flex-col gap-2 pb-4`,style:{animation:`fadeInUp 0.3s ease-out 0.3s both`},children:[(0,U.jsx)(s,{variant:`primary`,size:`regular`,fullWidth:!0,onClick:r,className:`h-11 text-base`,children:`Continue`}),(0,U.jsx)(s,{variant:`ghost`,size:`regular`,fullWidth:!0,onClick:i,className:`h-11 text-base`,children:`Skip`})]})]})})}function We(e){let[t,n]=(0,H.useState)(()=>(e??``).trim()),r=(0,H.useRef)(!1);return(0,H.useEffect)(()=>{if(r.current)return;let t=(e??``).trim();t&&n(e=>e||t)},[e]),{value:t,onChange:(0,H.useCallback)(e=>{r.current=!0,n(e)},[])}}var Ge=[`gmail`,`google-calendar`,`google-drive`],Ke=`experiment-activation-flow-2026-06-03`,Z=`BOOTSTRAP-ACTIVATION-RAIL.md`;function Q(e,t,n){return t?.initialMessage?t.initialMessage:n?P(e):T}function qe(e){let{mode:t,recipe:n}=e,r=e.connectedScopes!==void 0,i;i=t===`native`?{tools:[],tasks:[],tone:e.tone,googleConnected:!1}:t===`paredDown`?{tools:r?[...Ge]:[],tasks:n?.tasks??[],tone:e.tone,googleConnected:r}:{tools:Le([...e.selectedTools]),tasks:[...e.selectedTasks].sort(),tone:e.tone},n&&(i.cohort=n.cohort,i.bootstrapTemplate=n.bootstrapTemplate,i.skills=n.skills),e.activationFlowEnabled&&(i.cohort=Ke,i.bootstrapTemplate=Z);let a=e.userName.trim();a&&(i.userName=a);let o=e.assistantName.trim();return o&&(i.assistantName=o),t===`paredDown`?r&&(i.googleScopes=e.connectedScopes):t===`control`&&(r?(i.googleConnected=!0,i.googleScopes=e.connectedScopes):e.googleConnected?(i.googleConnected=!0,i.googleScopes=e.googleScopes):i.googleConnected=!1),t===`control`&&e.selectedPriorAssistants.size>0&&(i.priorAssistants=Le([...e.selectedPriorAssistants])),i.initialMessage=Q(i,e.activationFlowEnabled?null:n,e.selfIntroGreetingEnabled),i}function Je(e){return!e.localMode||e.platformSession===`present`?!0:e.platformSession===`unknown`&&e.hasCachedPlatformAssistant}function Ye(e){let{paredDown:t}=e;return[{id:`name`,funnelStep:z.nameVibe,enabled:!0},{id:`taskTone`,funnelStep:z.controlWorkType,enabled:!t},{id:`tools`,funnelStep:z.controlTools,enabled:!t},{id:`priorAssistants`,funnelStep:z.controlPriorAssistants,enabled:!t&&e.canOfferPriorAssistants},{id:`google`,funnelStep:t?z.gmailConnect:z.controlGmailConnect,enabled:e.canOfferGoogleStep&&(t||e.hasGoogleTool)},{id:`iosApp`,funnelStep:z.controlGetApp,enabled:!t&&e.showIOSAppStep}].filter(e=>e.enabled).map(({enabled:e,...t})=>t)}function Xe(){return[{id:`nativeName`,funnelStep:null},{id:`nativeVibe`,funnelStep:null}]}var $=`1`;function Ze(e){return e===`nativeVibe`||e===$?`nativeVibe`:null}function Qe(e,t){let n=e.findIndex(e=>e.id===t);return n<0?null:e[n+1]?.id??null}function $e(e,t){let n=e.findIndex(e=>e.id===t);return n<=0?null:e[n-1]?.id??null}var et=3;function tt(){let e=u();return e?.cloud===`vellum`?e.assistantId:f()[0]?.assistantId??null}function nt(){let e=n(),t=b.use.user(),r=y(),a=_(),o=t?.id??null,s=t?.firstName??``,c=t?.lastName??``,l=ee(),u=p.use.activeAssistantId(),f=d(),m=se()&&!de(),h=fe.use.stringFlags().preChatOnboardingExperiment20260606??`control`,g=fe.use.experimentActivationFlow20260603(),S=fe.use.selfIntroGreeting(),w=he(h),T=_e()??w,E=T===ge.paredDown,D=f?tt():null,k=o?`prechat_native_screen:${o}`:null,[A,j]=(0,H.useState)(()=>l?`nativeName`:`name`),M=(0,H.useCallback)(e=>{if(k)try{e===null?sessionStorage.removeItem(k):sessionStorage.setItem(k,e)}catch{}},[k]);(0,H.useLayoutEffect)(()=>{if(k)try{let e=Ze(sessionStorage.getItem(k));e&&j(e)}catch{}},[k]),(0,H.useEffect)(()=>{l&&M(A===`nativeVibe`?`nativeVibe`:null)},[l,A,M]);let te=b.use.platformSession(),N=x(te),[P,re]=(0,H.useState)(()=>new Set),[F,ae]=(0,H.useState)(()=>new Set),[ce,le]=(0,H.useState)(()=>new Set),{value:I,onChange:L}=We(f&&!N?``:s||c),[R,z]=(0,H.useState)(null),[B]=(0,H.useState)(()=>Te()),[V,ye]=(0,H.useState)(``),[W,xe]=(0,H.useState)(!1),[G,Ce]=(0,H.useState)([]),{data:we}=i({...oe(),enabled:!a&&r&&(!f||N)}),{data:De,isLoading:ke}=i({queryKey:[`onboarding-recipe`,o],queryFn:ve,enabled:!a&&r&&!l&&!f,staleTime:1/0}),je=De??null,K=we?.id??u??D,q=Je({localMode:f,platformSession:te,hasCachedPlatformAssistant:D!==null}),Me=q,Ne=q,Pe=(0,H.useCallback)(async()=>{await v.checkAssistant(),e(`${C.assistant}?onboarding=1`,{replace:!0})},[e]),[J,Le]=(0,H.useState)(()=>a||!r?{userId:o,decision:`pending`}:{userId:o,decision:ue()&&ie()?`ok`:`missing`}),Y=J.decision;(0,H.useEffect)(()=>{a||!r||J.userId===o&&J.decision!==`pending`||Le({userId:o,decision:ue()&&ie()?`ok`:`missing`})},[J,a,r,o]),(0,H.useEffect)(()=>{if(!a){if(!r){e(C.account.login,{replace:!0});return}if(Y===`missing`&&!l){e(C.onboarding.privacy,{replace:!0});return}}},[Y,a,r,l,e,Pe,o]);let ze=a||!r||!(l||Y===`ok`)||!!ke;function Be(e,t=T){me(e,{userId:o,variant:pe(t)})}let Ve=[...P].some(e=>Ie.has(e)),X=l?Xe():Ye({paredDown:E,canOfferPriorAssistants:Ne,canOfferGoogleStep:Me,hasGoogleTool:Ve,showIOSAppStep:m});async function He(e){ne(qe({mode:E?`paredDown`:`control`,recipe:je,selectedTools:P,selectedTasks:F,selectedPriorAssistants:e?.selectedPriorAssistants??ce,tone:R??je?.tone??`grounded`,userName:I,assistantName:V,selfIntroGreetingEnabled:S,activationFlowEnabled:g,googleConnected:W,googleScopes:G,connectedScopes:e?.connectedScopes}));let t=V.trim();t&&O(t),v.markExpectingFirstMessage(),await Pe()}function Ge(){ne(qe({mode:`native`,recipe:null,selectedTools:P,selectedTasks:F,selectedPriorAssistants:ce,tone:R??`grounded`,userName:I,assistantName:V,selfIntroGreetingEnabled:S,googleConnected:!1,googleScopes:[]}));let t=V.trim();t&&O(t),M(null),e(C.onboarding.privacy)}let Ke=e=>{l?Ge():He(e)},Z=(e,t)=>{e.funnelStep&&Be(e.funnelStep);let n=Qe(X,e.id);n?j(n):Ke(t)},Q=e=>{let t=$e(X,e);t&&j(t)};if(ze)return null;let $=X.find(e=>e.id===A)??X[0];return $?$.id===`nativeName`?(0,U.jsx)(Oe,{userName:I,assistantName:V,displayedAssistantNames:B,onUserNameChange:L,onAssistantNameChange:ye,onContinue:()=>Z($),onSkip:()=>Z($),currentStep:0,totalSteps:et}):$.id===`nativeVibe`?(0,U.jsx)(Ue,{selectedGroupId:R,onGroupChange:z,onBack:()=>Q($.id),onContinue:()=>Z($),onSkip:()=>Z($),currentStep:1,totalSteps:et}):$.id===`name`?(0,U.jsx)(Ee,{userName:I,assistantName:V,selectedGroupId:R,displayedAssistantNames:B,onUserNameChange:L,onAssistantNameChange:ye,onGroupChange:z,onComplete:()=>Z($),onSkip:()=>Z($)}):$.id===`taskTone`?(0,U.jsx)(Fe,{selectedTasks:F,onChange:ae,onBack:()=>Q($.id),onContinue:()=>Z($),onSkip:()=>Z($)}):$.id===`tools`?(0,U.jsx)(Re,{selectedTools:P,onChange:re,onBack:()=>Q($.id),onContinue:()=>Z($),onSkip:()=>Z($)}):$.id===`priorAssistants`?(0,U.jsx)(Ae,{selectedAssistants:ce,onChange:le,onBack:()=>Q($.id),onContinue:()=>Z($),onSkip:()=>{let e=new Set;le(e),Z($,{selectedPriorAssistants:e})}}):$.id===`google`?K?(0,U.jsx)(Se,{assistantId:K,assistantName:V,onConnect:e=>{xe(!0),Ce(e),Z($,{connectedScopes:e})},onSkip:()=>Z($),onBack:()=>Q($.id)}):null:$.id===`iosApp`?(0,U.jsx)(be,{onComplete:()=>Z($)}):null:null}export{nt as PreChatFlow};
@@ -0,0 +1 @@
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{a as t,n,o as r,r as i}from"./device-settings-C07QvMzm.js";import{t as a}from"./react-DJZBPgpf.js";import{T as o}from"./portal-container-DIXEBWUe.js";import{n as s}from"./QueryClientProvider-DNHWXaGq.js";import{t as c}from"./useQuery-D2zf6Uhu.js";import{t as l}from"./useMutation-BuofVRHk.js";import{t as u}from"./jsx-runtime-CVSDxk6A.js";import{t as d}from"./button-DdEh-9f_.js";import{t as f}from"./card-CL5iEMJO.js";import{t as p}from"./dropdown-CocFV5yi.js";import{t as m}from"./confirm-dialog-DsrjEJ8n.js";import{t as h}from"./notice-CF2pptne.js";import{t as g}from"./tag-Ccr7Quy6.js";import{t as _}from"./input-Cu3PPVCq.js";import{t as v}from"./toggle-CEm3M86o.js";import{t as y}from"./toast-3Fi9QU7z.js";import{t as b}from"./chevron-right-DF2EzMUB.js";import{t as x}from"./loader-circle-B9sFQ7nF.js";import{t as S}from"./pencil-ulB7Z-e-.js";import{t as C}from"./x-D0wgTl3V.js";import{t as w}from"./sdk.gen-BnTFwWLf.js";import{c as T,i as E,n as D,o as O,p as k,r as A,s as j,t as M}from"./native-biometric-CfMWTyzx.js";import{B as N,R as ee,Vi as P,_ as F,ct as I,dt as L,g as R,ki as te,lo as ne,lt as z,st as re,ut as ie,v as ae,y as oe,z as B}from"./index-DTWPgS5K.js";import{t as V}from"./use-active-assistant-id--1Ick1YC.js";import{t as H}from"./detail-card-B-us8iM5.js";var U=e(a(),1),W=u();function G(){let e=z({platformHostedOnly:!0}),t=re(),n=I(),r=s(),{data:i,isLoading:a,isError:o}=c({...ie(),enabled:e===`full`&&t}),u=l({mutationFn:async e=>{let{data:t}=await w({body:{access_consented:e},throwOnError:!0});return t},onSuccess:e=>{r.setQueryData(L(),e),y.success(e?.access_consented?`Admin data access enabled.`:`Admin data access disabled.`)},onError:()=>{y.error(`Failed to update log access consent.`)}});if(e===`gated`)return null;let d=e===`full`&&n,f=i?.access_consented??!1,p=e!==`full`||!t||a||o||u.isPending;return(0,W.jsxs)(`div`,{children:[(0,W.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,W.jsxs)(`div`,{className:`flex-1`,children:[(0,W.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:`Allow admin access to assistant data`}),(0,W.jsxs)(`p`,{className:`mt-1 text-body-small-default text-[var(--content-tertiary)]`,children:[`Lets Vellum administrators reach privileged data on your assistant pod for debugging — today this means tailing the daily assistant log at`,` `,(0,W.jsx)(`code`,{className:`rounded bg-[var(--surface-base)] px-1.5 font-mono text-[var(--content-secondary)] dark:bg-[var(--surface-lift)] dark:text-[var(--content-default)]`,children:`/workspace/data/logs/assistant-YYYY-MM-DD.log`}),`. Off by default. Turn on temporarily when asking support to investigate an issue, then turn off when you're done.`]}),e===`full`&&o&&(0,W.jsx)(`p`,{className:`mt-1 text-body-small-default text-[var(--system-negative-strong)]`,children:`Failed to load consent setting.`})]}),(0,W.jsx)(`div`,{className:`flex items-center gap-2`,children:e===`disabled`?null:(0,W.jsxs)(W.Fragment,{children:[(u.isPending||d)&&(0,W.jsx)(x,{className:`h-4 w-4 animate-spin text-[var(--content-tertiary)]`}),(0,W.jsx)(v,{checked:f,disabled:p,onChange:()=>u.mutate(!f)})]})})]}),e===`disabled`&&(0,W.jsx)(h,{tone:`info`,className:`mt-3`,children:`Log in to the Vellum platform to manage admin data access.`})]})}function K(){let e=k(),[t,n]=(0,U.useState)(()=>E()),[r,i]=(0,U.useState)(!1),[a,o]=(0,U.useState)(`Face ID`),[s,c]=(0,U.useState)(!1);if((0,U.useEffect)(()=>{e&&(A().then(i),D().then(o))},[e]),!e||!r)return null;let l=async()=>{c(!0);try{if(t)O(!1),await M(),n(!1);else{let e=T();e&&await j(e),O(!0),n(!0)}}finally{c(!1)}};return(0,W.jsx)(H,{title:`Security`,children:(0,W.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,W.jsxs)(`div`,{className:`flex-1`,children:[(0,W.jsxs)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:[`Use `,a,` for sign-in`]}),(0,W.jsxs)(`p`,{className:`mt-1 text-body-small-default text-[var(--content-tertiary)]`,children:[`When your session expires, verify with `,a,` or your device passcode instead of signing in again.`]})]}),(0,W.jsx)(v,{checked:t,onChange:()=>void l(),disabled:s})]})})}function q(){return(0,W.jsx)(`div`,{className:`h-px bg-[var(--surface-active)] dark:bg-[var(--surface-lift)]`})}var J=R.map(e=>({value:e.id,label:e.label,icon:(0,W.jsx)(e.icon,{className:`h-3.5 w-3.5`})}));function se(){let e=V(),t=s(),{data:n,isError:r}=c({queryKey:[`thresholds`,e],queryFn:()=>ae(e),staleTime:3e4}),[i,a]=(0,U.useState)(`relaxed`),[o,l]=(0,U.useState)(`conservative`),[u,d]=(0,U.useState)(`strict`),[m,h]=(0,U.useState)(!1),g=(0,U.useRef)(!1),[_,v]=(0,U.useState)(!1),y=(0,U.useRef)(null),x=(0,U.useRef)(null);(0,U.useEffect)(()=>{!n||g.current||(a(F(n.interactive).id),l(F(n.autonomous).id),d(F(n.headless).id),v(!0))},[n]),(0,U.useEffect)(()=>()=>{y.current!==null&&(clearTimeout(y.current),y.current=null,x.current?.(),x.current=null)},[]);let S=(0,U.useCallback)((n,r,i)=>{if(!e||!_)return;let a=R.find(e=>e.id===n)?.riskThreshold,o=R.find(e=>e.id===r)?.riskThreshold,s=R.find(e=>e.id===i)?.riskThreshold;!a||!o||!s||oe(e,{interactive:a,autonomous:o,headless:s}).then(()=>{t.invalidateQueries({queryKey:[`thresholds`,e]})}).catch(()=>{})},[e,_,t]),C=(0,U.useCallback)((e,t,n)=>{y.current!==null&&clearTimeout(y.current),x.current=()=>S(e,t,n),y.current=setTimeout(()=>{x.current?.(),y.current=null,x.current=null},500)},[S]),w=(0,U.useCallback)(e=>{g.current=!0,a(e),C(e,o,u)},[o,u,C]),T=(0,U.useCallback)(e=>{g.current=!0,l(e),C(i,e,u)},[i,u,C]),E=(0,U.useCallback)(e=>{g.current=!0,d(e),C(i,o,e)},[i,o,C]),D=R.find(e=>e.id===i),O=R.find(e=>e.id===o),k=R.find(e=>e.id===u),A=!e||!_;return(0,W.jsxs)(f,{children:[(0,W.jsx)(`h2`,{className:`text-title-medium text-[var(--content-default)]`,children:`Risk Tolerance`}),(0,W.jsx)(`p`,{className:`mt-1 text-body-medium-lighter text-[var(--content-tertiary)]`,children:`Control which actions your assistant can take without asking first. Each action is classified by risk level — your tolerance determines which levels auto-approve.`}),r&&(0,W.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--system-negative-strong)]`,children:`Could not load threshold settings. Check your connection and reload.`}),(0,W.jsxs)(`div`,{className:`mt-4 space-y-4`,children:[(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:`Conversations`}),(0,W.jsx)(`p`,{className:`mt-0.5 text-body-small-default text-[var(--content-tertiary)]`,children:`When you're chatting with your assistant directly.`}),(0,W.jsx)(`div`,{className:`mt-2`,style:{maxWidth:280},children:(0,W.jsx)(p,{value:i,onChange:w,options:J,disabled:A})}),D&&(0,W.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:D.description})]}),(0,W.jsx)(q,{}),(0,W.jsxs)(`div`,{children:[(0,W.jsxs)(`button`,{type:`button`,onClick:()=>h(e=>!e),className:`flex items-center gap-1 text-[var(--content-secondary)] hover:text-[var(--content-default)] transition-colors`,"aria-expanded":m,children:[m?(0,W.jsx)(ne,{className:`h-4 w-4`}):(0,W.jsx)(b,{className:`h-4 w-4`}),(0,W.jsx)(`span`,{className:`text-body-medium-default`,children:`Advanced`})]}),(0,W.jsxs)(`div`,{className:m?`mt-4 space-y-4`:`hidden`,children:[(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:`Background`}),(0,W.jsx)(`p`,{className:`mt-0.5 text-body-small-default text-[var(--content-tertiary)]`,children:`When your assistant acts without you — scheduled tasks, background jobs, and external triggers.`}),(0,W.jsx)(`div`,{className:`mt-2`,style:{maxWidth:280},children:(0,W.jsx)(p,{value:o,onChange:T,options:J,disabled:A})}),O&&(0,W.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:O.description})]}),(0,W.jsx)(q,{}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:`Headless`}),(0,W.jsx)(`p`,{className:`mt-0.5 text-body-small-default text-[var(--content-tertiary)]`,children:`When triggered externally with no interactive client.`}),(0,W.jsx)(`div`,{className:`mt-2`,style:{maxWidth:280},children:(0,W.jsx)(p,{value:u,onChange:E,options:J,disabled:A})}),k&&(0,W.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:k.description})]})]})]})]})]})}var Y=e(o(),1),ce=[`bash`,`file_read`,`file_write`,`file_edit`,`web_fetch`,`skill_load`],le=[{value:`low`,label:`Low`,description:`Auto-approve without prompting`},{value:`medium`,label:`Medium`,description:`Prompt before executing`},{value:`high`,label:`High`,description:`Always require explicit approval`}];function ue({assistantId:e,existingRule:t,onClose:n,onSaved:r}){let i=(0,U.useRef)(null),[a,o]=(0,U.useState)(t.tool),[s,c]=(0,U.useState)(t.pattern),[l,u]=(0,U.useState)(t.risk),[d,f]=(0,U.useState)(t.description??``),[m,g]=(0,U.useState)(!1),[v,y]=(0,U.useState)(null),b=s.trim(),x=b.length>0&&!m,S=(0,U.useCallback)(async n=>{if(n.preventDefault(),!x)return;let i=d.trim()||`${a} — ${b}`;g(!0),y(null);try{await N(e,t.id,{risk:l,description:i}),r()}catch(e){y(e instanceof Error?e.message:`Failed to save trust rule.`)}finally{g(!1)}},[e,x,d,t,r,l,a,b]);return(0,Y.createPortal)((0,W.jsx)(`div`,{ref:i,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`trust-rule-form-title`,className:`fixed inset-0 z-50 flex items-center justify-center bg-black/50`,onKeyDown:(0,U.useCallback)(e=>{e.key===`Escape`&&n()},[n]),onClick:(0,U.useCallback)(e=>{e.target===i.current&&n()},[n]),children:(0,W.jsxs)(`div`,{className:`mx-4 flex max-h-[calc(100vh-2rem)] w-full max-w-md flex-col rounded-xl border border-[var(--border-base)] bg-[var(--surface-lift)] shadow-xl`,children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-b border-[var(--border-base)] px-6 py-4`,children:[(0,W.jsx)(`h2`,{id:`trust-rule-form-title`,className:`text-title-medium text-[var(--content-default)]`,children:`Edit Trust Rule`}),(0,W.jsx)(`button`,{type:`button`,onClick:n,"aria-label":`Close`,className:`rounded-lg p-1.5 text-[var(--content-tertiary)] transition-colors hover:bg-[var(--surface-base)] hover:text-[var(--content-default)]`,children:(0,W.jsx)(C,{className:`h-4 w-4`})})]}),(0,W.jsxs)(`form`,{onSubmit:e=>void S(e),className:`min-h-0 flex-1 space-y-4 overflow-y-auto px-6 py-4`,children:[v&&(0,W.jsx)(h,{tone:`error`,children:v}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`label`,{htmlFor:`trust-rule-tool`,className:`block text-body-medium-default text-[var(--content-default)]`,children:`Tool`}),(0,W.jsx)(`div`,{className:`mt-1`,children:(0,W.jsx)(p,{value:a,onChange:o,disabled:!0,options:ce.map(e=>({value:e,label:e}))})})]}),(0,W.jsx)(_,{label:`Pattern`,type:`text`,value:s,onChange:e=>c(e.target.value),placeholder:`e.g., git *`,disabled:!0}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`span`,{className:`block text-body-medium-default text-[var(--content-default)]`,children:`Risk Level`}),(0,W.jsx)(`div`,{className:`mt-2 flex gap-2`,children:le.map(e=>(0,W.jsxs)(`button`,{type:`button`,onClick:()=>u(e.value),className:`flex-1 rounded-lg border px-3 py-2 text-left text-body-small-default transition-colors ${l===e.value?e.value===`low`?`border-[var(--system-positive-strong)] bg-[var(--system-positive-weak)] text-[var(--system-positive-strong)]`:e.value===`medium`?`border-[var(--system-warning-strong)] bg-[var(--system-warning-weak)] text-[var(--system-warning-strong)]`:`border-[var(--system-negative-strong)] bg-[var(--system-negative-weak)] text-[var(--system-negative-strong)]`:`border-[var(--border-element)] text-[var(--content-default)] hover:bg-[var(--surface-base)]`}`,children:[(0,W.jsx)(`div`,{children:e.label}),(0,W.jsx)(`div`,{className:`mt-0.5 text-label-medium-default leading-tight opacity-70`,children:e.description})]},e.value))})]}),(0,W.jsx)(_,{label:`Description (optional)`,type:`text`,value:d,onChange:e=>f(e.target.value),placeholder:`${a} — ${b||`pattern`}`}),(0,W.jsxs)(`div`,{className:`flex justify-end gap-2 pt-2`,children:[(0,W.jsx)(`button`,{type:`button`,onClick:n,className:`rounded-lg border border-[var(--border-element)] bg-white px-4 py-2 text-body-medium-default text-[var(--content-default)] transition-colors hover:bg-[var(--surface-base)] dark:border-[var(--border-base)] dark:bg-[var(--surface-lift)] dark:hover:bg-[var(--ghost-hover)]`,children:`Cancel`}),(0,W.jsx)(`button`,{type:`submit`,disabled:!x,className:`rounded-lg bg-[var(--system-positive-strong)] px-4 py-2 text-body-medium-default text-white transition-colors hover:bg-[var(--system-positive-strong)] disabled:cursor-not-allowed disabled:opacity-50`,children:m?`Saving…`:`Save`})]})]})]})}),document.body)}function de(e){return e.origin===`default`&&!e.userModified}function fe(e,t){let n=new Set,r=[];for(let t of e)n.has(t.id)||(n.add(t.id),r.push(t));for(let e of t)n.has(e.id)||(n.add(e.id),r.push(e));return r.sort((e,t)=>e.tool===t.tool?e.description.localeCompare(t.description):e.tool.localeCompare(t.tool))}function pe(e){switch(e){case`low`:return`positive`;case`medium`:return`warning`;case`high`:return`negative`}}function X(e){return e.charAt(0).toUpperCase()+e.slice(1)}function me({assistantId:e,onClose:t}){let n=(0,U.useRef)(null),[r,i]=(0,U.useState)([]),[a,o]=(0,U.useState)(!0),[s,c]=(0,U.useState)(null),[l,u]=(0,U.useState)(null),[f,p]=(0,U.useState)(null),[_,y]=(0,U.useState)(!1),b=(0,U.useCallback)(async t=>{if(t){let[t,n]=await Promise.all([B(e),B(e,{origin:`default`})]);return fe(t,n)}return B(e)},[e]),x=(0,U.useCallback)(async()=>{o(!0);try{i(await b(_)),c(null)}catch(e){c(e instanceof Error?e.message:`Failed to load trust rules.`)}finally{o(!1)}},[b,_]);(0,U.useEffect)(()=>{let e=!1;return(async()=>{o(!0);try{let t=await b(_);e||(i(t),c(null))}catch(t){e||c(t instanceof Error?t.message:`Failed to load trust rules.`)}finally{e||o(!1)}})(),()=>{e=!0}},[b,_]);let C=(0,U.useCallback)(async()=>{if(f)try{await ee(e,f.id),x()}catch(e){c(e instanceof Error?e.message:`Failed to delete trust rule.`)}finally{p(null)}},[e,f,x]);return(0,Y.createPortal)((0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`div`,{ref:n,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`trust-rules-title`,className:`fixed inset-0 z-50 flex items-center justify-center bg-black/50`,onKeyDown:(0,U.useCallback)(e=>{e.key===`Escape`&&t()},[t]),onClick:(0,U.useCallback)(e=>{e.target===n.current&&t()},[t]),children:(0,W.jsxs)(`div`,{className:`mx-4 flex max-h-[80vh] w-full max-w-2xl flex-col rounded-xl border border-[var(--border-base)] bg-[var(--surface-lift)] shadow-xl`,children:[(0,W.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-b border-[var(--border-base)] px-6 py-4`,children:[(0,W.jsx)(`h2`,{id:`trust-rules-title`,className:`text-title-medium text-[var(--content-default)]`,children:`Trust Rules`}),(0,W.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,W.jsx)(v,{checked:_,onChange:y,label:`Show all defaults`}),(0,W.jsx)(d,{variant:`outlined`,onClick:t,children:`Done`})]})]}),(0,W.jsxs)(`div`,{className:`flex-1 overflow-y-auto px-6 py-4`,children:[s&&(0,W.jsx)(`div`,{className:`mb-3`,children:(0,W.jsx)(h,{tone:`error`,children:s})}),a?(0,W.jsx)(`div`,{className:`flex h-48 items-center justify-center text-body-medium-lighter text-[var(--content-tertiary)]`,children:`Loading…`}):r.length===0?(0,W.jsxs)(`div`,{className:`flex h-48 flex-col items-center justify-center gap-2 px-6 text-[var(--content-tertiary)]`,children:[(0,W.jsx)(P,{className:`h-8 w-8`}),(0,W.jsx)(`p`,{className:`max-w-xs text-center text-body-medium-lighter`,children:`No trust rules yet. Rules are created when you classify actions from permission prompts.`})]}):(0,W.jsx)(`ul`,{className:`divide-y divide-[var(--border-base)]`,children:r.map(e=>{let t=de(e);return(0,W.jsxs)(`li`,{className:`flex items-start gap-3 py-3`,children:[(0,W.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,W.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,W.jsx)(`span`,{className:`text-body-medium-default text-[var(--content-default)]`,children:e.tool}),(0,W.jsx)(g,{tone:pe(e.risk),children:X(e.risk)}),e.origin===`default`&&(0,W.jsx)(g,{tone:`neutral`,children:`Default`}),e.userModified&&(0,W.jsx)(g,{tone:`warning`,children:`Modified`})]}),(0,W.jsx)(`div`,{className:`mt-1 truncate font-mono text-body-small-default text-[var(--content-secondary)]`,children:e.pattern}),e.description&&(0,W.jsx)(`div`,{className:`mt-0.5 truncate text-body-small-default text-[var(--content-tertiary)]`,children:e.description})]}),(0,W.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[(0,W.jsx)(`button`,{type:`button`,"aria-label":`Edit ${e.tool} rule`,onClick:()=>u(e),className:`rounded-lg p-1.5 text-[var(--content-tertiary)] transition-colors hover:bg-[var(--surface-base)] hover:text-[var(--content-default)]`,children:(0,W.jsx)(S,{className:`h-4 w-4`})}),(!t||e.userModified)&&(0,W.jsx)(`button`,{type:`button`,"aria-label":`Delete ${e.tool} rule`,onClick:()=>p(e),className:`rounded-lg p-1.5 text-[var(--system-negative-strong)] transition-colors hover:bg-[var(--system-negative-weak)]`,children:(0,W.jsx)(te,{className:`h-4 w-4`})})]})]},e.id)})})]})]})}),l&&(0,W.jsx)(ue,{assistantId:e,existingRule:l,onClose:()=>u(null),onSaved:()=>{u(null),x()}}),(0,W.jsx)(m,{open:f!==null,title:`Delete Trust Rule?`,message:f?`Remove the ${X(f.risk).toLowerCase()}-risk rule for ${f.tool} matching "${f.pattern}"?`:``,confirmLabel:`Delete`,cancelLabel:`Cancel`,destructive:!0,onConfirm:()=>void C(),onCancel:()=>p(null)})]}),document.body)}function he(){let e=V(),[t,n]=(0,U.useState)(!1);return(0,W.jsxs)(f,{children:[(0,W.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,W.jsx)(P,{className:`mt-0.5 h-5 w-5 shrink-0 text-[var(--content-secondary)]`}),(0,W.jsxs)(`div`,{className:`flex-1`,children:[(0,W.jsx)(`h2`,{className:`text-title-medium text-[var(--content-default)]`,children:`Trust Rules`}),(0,W.jsx)(`p`,{className:`mt-1 text-body-medium-lighter text-[var(--content-tertiary)]`,children:`Manage per-tool rules that control which actions auto-approve and which require your explicit permission.`})]}),(0,W.jsx)(d,{variant:`outlined`,onClick:()=>n(!0),children:`Manage`})]}),t&&(0,W.jsx)(me,{assistantId:e,onClose:()=>n(!1)})]})}var Z=[{value:`dontRetain`,label:`Don't retain`},{value:`oneHour`,label:`1 hour`},{value:`oneDay`,label:`1 day`},{value:`sevenDays`,label:`7 days`},{value:`thirtyDays`,label:`30 days`},{value:`ninetyDays`,label:`90 days`},{value:`keepForever`,label:`Keep forever`}],ge=`thirtyDays`;function Q({label:e,helperText:t,checked:n,onChange:r}){return(0,W.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,W.jsxs)(`div`,{className:`flex-1`,children:[(0,W.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:e}),(0,W.jsx)(`p`,{className:`mt-1 text-body-small-default text-[var(--content-tertiary)]`,children:t})]}),(0,W.jsx)(v,{checked:n,onChange:r,label:e})]})}function $(){return(0,W.jsx)(`div`,{className:`h-px bg-[var(--surface-active)] dark:bg-[var(--surface-lift)]`})}function _e(){let e=z({platformHostedOnly:!0}),[a,o]=(0,U.useState)(()=>n(`shareAnalytics`,!0)),[s,c]=(0,U.useState)(()=>n(`shareDiagnostics`,!0)),[l,u]=(0,U.useState)(()=>i(`llmLogRetention`,ge));return(0,W.jsxs)(`div`,{className:`space-y-4`,children:[(0,W.jsx)(K,{}),(0,W.jsx)(he,{}),(0,W.jsx)(se,{}),(0,W.jsx)(H,{title:`Privacy`,children:(0,W.jsxs)(`div`,{className:`space-y-4`,children:[(0,W.jsx)(Q,{label:`Share Analytics`,helperText:`Send anonymous product usage data. Your conversations and personal data are never included.`,checked:a,onChange:()=>{let e=!a;o(e),t(`shareAnalytics`,e)}}),(0,W.jsx)($,{}),(0,W.jsx)(Q,{label:`Share Diagnostics`,helperText:`Send crash reports and performance metrics. Your conversations and personal data are never included.`,checked:s,onChange:()=>{let e=!s;c(e),t(`shareDiagnostics`,e)}}),(0,W.jsx)($,{}),(0,W.jsx)(G,{}),e!==`gated`&&(0,W.jsx)($,{}),(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`label`,{htmlFor:`llm-log-retention`,className:`block text-body-medium-default text-[var(--content-default)]`,children:`LLM Request Log Retention`}),(0,W.jsx)(`div`,{className:`mt-2`,style:{maxWidth:280},children:(0,W.jsx)(p,{value:l,onChange:e=>{u(e),r(`llmLogRetention`,e)},options:Z})}),(0,W.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:`How long to keep LLM request and response logs on this device. These logs record the prompts and completions sent to model providers and are used for debugging. Shorter retention improves privacy; longer retention helps troubleshoot issues.`})]})]})})]})}export{_e as PrivacyPage};
@@ -0,0 +1 @@
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./capture-error-Di3WCQrq.js";import{t as n}from"./react-DJZBPgpf.js";import{d as r,m as i}from"./chunk-5KNZJZUH-B4b1m-Ya.js";import{t as a}from"./jsx-runtime-CVSDxk6A.js";import{t as o}from"./button-DdEh-9f_.js";import{t as s}from"./card-CL5iEMJO.js";import{t as c}from"./checkbox-qlcBvCFW.js";import{t as l}from"./toggle-CEm3M86o.js";import{n as u}from"./auth-store-RIjuTM3X.js";import{p as d}from"./native-biometric-CfMWTyzx.js";import{i as f,r as p}from"./routes-DminYfDX.js";import{La as m,_r as h,gr as g,hr as _,pi as v,vr as y}from"./index-DTWPgS5K.js";import{t as b}from"./onboarding-layout-CAwJlju5.js";import{a as x,c as S,i as C,n as w,o as T,t as E}from"./step-indicator-dots-DpYYCL7E.js";var D=e(n(),1),O=a();function k({label:e,helperText:t,checked:n,onChange:r}){let i=(0,D.useId)();return(0,O.jsxs)(`div`,{className:`flex items-start gap-4`,children:[(0,O.jsx)(l,{checked:n,onChange:r,id:i}),(0,O.jsxs)(`label`,{htmlFor:i,className:`min-w-0 flex-1 cursor-pointer`,children:[(0,O.jsx)(`span`,{className:`block text-body-medium-default text-[var(--content-default)]`,children:e}),(0,O.jsx)(`span`,{className:`mt-1 block text-body-small-default text-[var(--content-tertiary)]`,children:t})]})]})}var A=`[&_button[data-state=checked]]:bg-[var(--primary-base)] [&_svg]:text-[var(--content-inset)]`;function j(){let e=r(),[n]=i(),a=u.use.user()?.id??null,l=d(),j=T(v.use.stringFlags().preChatOnboardingExperiment20260606??`control`),[M,N]=g(),[P,F]=h(),[I,L]=y(),[R,z]=_();(0,D.useEffect)(()=>{l||x()},[l]);let B=(0,D.useCallback)(()=>{try{N(M),F(P)}catch(e){t(e,{context:`onboarding_persist_share_prefs`})}if(!l){let e=S(j);C(w.privacyTos,{userId:a,variant:e})}let r=n.get(`hosting`),i=new URLSearchParams;r&&i.set(`hosting`,r);let o=i.toString();e(`${f.onboarding.hatching}${o?`?${o}`:``}`)},[l,e,j,n,N,F,M,P,a]),V=(0,O.jsxs)(`span`,{className:`text-body-medium-lighter text-[var(--content-default)]`,children:[`I agree to the`,` `,(0,O.jsx)(`a`,{href:p(f.docs.legal.termsOfUse),target:`_blank`,rel:`noreferrer`,className:`underline`,children:`Terms of Service`}),` `,`and`,` `,(0,O.jsx)(`a`,{href:p(f.docs.legal.privacyPolicy),target:`_blank`,rel:`noreferrer`,className:`underline`,children:`Privacy Policy`})]}),H=(0,O.jsxs)(`span`,{className:`text-body-medium-lighter text-[var(--content-default)]`,children:[`I agree to the`,` `,(0,O.jsx)(`a`,{href:p(f.docs.legal.dataSharing),target:`_blank`,rel:`noreferrer`,className:`underline`,children:`AI Data Sharing Policy`})]});return(0,O.jsx)(b,{children:(0,O.jsxs)(`div`,{className:`mx-auto flex w-full max-w-xl flex-col items-center px-6 py-16 text-[var(--content-default)]`,children:[l&&(0,O.jsx)(`div`,{className:`mb-8 flex w-full justify-center`,style:{animation:`fadeInUp 0.3s ease-out 0.1s both`},children:(0,O.jsx)(E,{current:2,total:3})}),(0,O.jsx)(`h1`,{className:`text-3xl font-semibold tracking-tight`,children:`Before You Start`}),(0,O.jsx)(`p`,{className:`mt-4 text-center text-body-medium-lighter text-[var(--content-tertiary)]`,children:`Choose your privacy preferences. You can update these anytime in the Settings.`}),(0,O.jsx)(s,{padding:`md`,className:`mt-8 w-full`,children:(0,O.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,O.jsx)(k,{label:`Share Analytics`,helperText:`Send anonymous product usage data.`,checked:M,onChange:N}),(0,O.jsx)(`div`,{className:`h-px bg-[var(--surface-active)] dark:bg-[var(--surface-lift)]`}),(0,O.jsx)(k,{label:`Share Diagnostics`,helperText:`Send crash reports and performance metrics.`,checked:P,onChange:F}),(0,O.jsx)(`div`,{className:`h-px bg-[var(--surface-active)] dark:bg-[var(--surface-lift)]`}),(0,O.jsxs)(`div`,{className:`flex items-center gap-2 text-body-small-default text-[var(--content-tertiary)]`,children:[(0,O.jsx)(m,{className:`h-4 w-4 shrink-0`}),(0,O.jsx)(`span`,{children:`Your conversations and personal data are never included.`})]})]})}),(0,O.jsx)(`div`,{className:`mt-6 flex w-full items-start`,children:(0,O.jsx)(c,{checked:R,onCheckedChange:e=>z(e===!0),label:H,"aria-label":`I agree to the AI Data Sharing Policy`,className:A})}),(0,O.jsx)(`div`,{className:`mt-4 flex w-full items-start`,children:(0,O.jsx)(c,{checked:I,onCheckedChange:e=>L(e===!0),label:V,"aria-label":`I agree to the Terms of Service and Privacy Policy`,className:A})}),(0,O.jsxs)(`div`,{className:`mt-8 flex w-full flex-col gap-2`,children:[(0,O.jsx)(o,{variant:`primary`,size:`regular`,fullWidth:!0,disabled:!I||!R,onClick:B,className:`h-11 text-base`,children:`Start`}),(0,O.jsx)(o,{variant:`outlined`,size:`regular`,fullWidth:!0,onClick:()=>e(-1),className:`h-11 text-base`,children:`Back`})]})]})})}export{j as PrivacyScreen};
@@ -0,0 +1 @@
1
+ import{t as e}from"./jsx-runtime-CVSDxk6A.js";import{t}from"./cn-DFqQkJlk.js";var n=e();function r(e){return Number.isNaN(e)||e<0?0:e>1?1:e}function i({value:e,"aria-label":i,className:a,height:o=6,ref:s}){let c=r(e)*100;return(0,n.jsx)(`div`,{ref:s,role:`progressbar`,"aria-label":i,"aria-valuenow":Math.round(c),"aria-valuemin":0,"aria-valuemax":100,"data-slot":`progress-bar`,className:t(`rounded-full overflow-hidden bg-[var(--surface-lift)]`,a),style:{height:o},children:(0,n.jsx)(`div`,{className:`h-full bg-[var(--content-default)] rounded-full`,style:{width:`${c}%`,transition:`width 400ms cubic-bezier(0.22, 1, 0.36, 1)`}})})}export{i as t};
@@ -0,0 +1 @@
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./capture-error-Di3WCQrq.js";import{t as n}from"./react-DJZBPgpf.js";import{d as r,m as i,t as a}from"./chunk-5KNZJZUH-B4b1m-Ya.js";import{t as o}from"./jsx-runtime-CVSDxk6A.js";import{d as s,y as c}from"./local-mode-Cx_DqCMC.js";import{n as l}from"./auth-store-RIjuTM3X.js";import{c as u}from"./api-D_w9HGm1.js";import{S as d,v as f}from"./native-biometric-CfMWTyzx.js";import{i as p}from"./routes-DminYfDX.js";import{Y as m}from"./index-DTWPgS5K.js";import{r as h,t as g}from"./account-shell-mWbkdjh7.js";import{a as _,i as v}from"./login-flow-E2FJkpFg.js";var y=e(n(),1),b=o();function x(){let[e]=i(),n=r(),o=l.use.refreshSession(),x=e.get(`error`),[S,C]=(0,y.useState)(null),w=(0,y.useRef)(!1),T=e.get(`returnTo`),E=v(e);return(0,y.useEffect)(()=>{w.current||x||(w.current=!0,(async()=>{try{let t=await d(),r=f(t.ok&&!!t.data.user,t.ok?[]:t.flows??[]);switch(r.kind){case`authenticated`:{if(await o(),s())try{let e=await u();if(e.ok&&e.data.length>0&&(await c(e.data),!T)){n(p.assistant,{replace:!0});break}}catch{}let e=p.assistant,{destination:t,requiresFullPageNavigation:r}=_({returnTo:T,fallback:e,authIntent:E});r?window.location.href=t:n(t,{replace:!0});break}case`provider_signup`:{let t=e.get(`returnTo`);n(t?`${p.account.providerSignup}?returnTo=${encodeURIComponent(t)}`:p.account.providerSignup,{replace:!0});break}case`error`:C(r.message);break}}catch(e){t(e,{context:`provider_callback`}),C(`Something went wrong. Please try signing in again.`)}})())},[E,x,o,T,n,e]),x===`signup_closed`?(0,b.jsxs)(g,{children:[(0,b.jsx)(h,{title:`Signups are currently closed`,subtitle:`Join the community to request access or learn when signups reopen.`}),(0,b.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[(0,b.jsx)(`a`,{href:m,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center justify-center gap-2 rounded-lg bg-[var(--primary-base)] px-6 py-3 text-sm font-medium text-white no-underline transition-colors hover:bg-[var(--primary-hover)]`,children:`Join the community`}),(0,b.jsx)(a,{to:p.account.login,className:`text-sm font-medium text-[var(--content-emphasised)] hover:underline`,children:`Back to sign in`})]})]}):x||S?(0,b.jsxs)(g,{children:[(0,b.jsx)(h,{title:`Authentication failed`,subtitle:S??`Something went wrong during social sign-in. Please try again or use a different method.`}),(0,b.jsx)(`div`,{className:`flex flex-col items-center gap-4`,children:(0,b.jsx)(a,{to:p.account.login,className:`inline-flex items-center justify-center gap-2 rounded-lg bg-[var(--primary-base)] px-6 py-3 text-sm font-medium text-white no-underline transition-colors hover:bg-[var(--primary-hover)]`,children:`Back to sign in`})})]}):(0,b.jsx)(g,{children:(0,b.jsx)(h,{title:`Completing sign-in...`,subtitle:`Please wait while we finish authenticating you.`})})}export{x as ProviderCallbackPage};
@@ -1 +1 @@
1
- import{Ot as e,yn as t}from"./sdk.gen-up8j0_uF.js";var n=`onboarding.providerKey`;function r(e){try{if(e===null){sessionStorage.removeItem(n);return}sessionStorage.setItem(n,JSON.stringify(e))}catch{}}function i(e){return typeof e==`object`&&!!e&&`provider`in e&&typeof e.provider==`string`&&`key`in e&&typeof e.key==`string`}function a(){try{let e=sessionStorage.getItem(n);if(!e)return null;let t=JSON.parse(e);return i(t)?t:null}catch{return null}}function o(){let e=a();try{sessionStorage.removeItem(n)}catch{}return e}async function s(e,n,r){let{response:i}=await t({path:{assistant_id:e},body:{type:`api_key`,name:n,value:r},throwOnError:!1});if(!i?.ok)throw Object.assign(Error(`Failed to write provider secret`),{status:i?.status})}async function c(t,n,r){let i=r?{type:`api_key`,credential:`credential/${n}/api_key`}:{type:`none`},{response:a}=await e({path:{assistant_id:t},body:{name:n,provider:n,auth:i},throwOnError:!1});if(!a?.ok)throw Object.assign(Error(`Failed to create provider connection`),{status:a?.status})}async function l(e){let t=o();if(!t)return;let n=t.key.trim(),r=n.length>0;r&&await s(e,t.provider,n),await c(e,t.provider,r)}export{a as n,r,l as t};
1
+ import{Ot as e,Sn as t}from"./sdk.gen-govMfbgX.js";var n=`onboarding.providerKey`;function r(e){try{if(e===null){sessionStorage.removeItem(n);return}sessionStorage.setItem(n,JSON.stringify(e))}catch{}}function i(e){return typeof e==`object`&&!!e&&`provider`in e&&typeof e.provider==`string`&&`key`in e&&typeof e.key==`string`}function a(){try{let e=sessionStorage.getItem(n);if(!e)return null;let t=JSON.parse(e);return i(t)?t:null}catch{return null}}function o(){let e=a();try{sessionStorage.removeItem(n)}catch{}return e}async function s(e,n,r){let{response:i}=await t({path:{assistant_id:e},body:{type:`api_key`,name:n,value:r},throwOnError:!1});if(!i?.ok)throw Object.assign(Error(`Failed to write provider secret`),{status:i?.status})}async function c(t,n,r){let i=r?{type:`api_key`,credential:`credential/${n}/api_key`}:{type:`none`},{response:a}=await e({path:{assistant_id:t},body:{name:n,provider:n,auth:i},throwOnError:!1});if(!a?.ok)throw Object.assign(Error(`Failed to create provider connection`),{status:a?.status})}async function l(e){let t=o();if(!t)return;let n=t.key.trim(),r=n.length>0;r&&await s(e,t.provider,n),await c(e,t.provider,r)}export{a as n,r,l as t};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-DJZBPgpf.js";import{d as n,m as r,t as i}from"./chunk-5KNZJZUH-BpLAEZ0-.js";import{t as a}from"./jsx-runtime-XSukodg_.js";import{n as o}from"./auth-store-CYbo7naZ.js";import{C as s,T as c,x as l}from"./native-biometric-B4t4zElu.js";import{i as u}from"./routes-C-DwSCj0.js";import{i as d,n as f,r as p,t as m}from"./account-shell-BZu7oVl3.js";import{a as h,o as g}from"./login-flow-BbsypWKa.js";var _=e(t(),1),v=a();function y(){let e=n(),[t]=r(),a=o.use.refreshSession(),y=t.get(`returnTo`),[b,x]=(0,_.useState)(``),[S,C]=(0,_.useState)(``),[w,T]=(0,_.useState)(null),[E,D]=(0,_.useState)(!1),[O,k]=(0,_.useState)(!0),A=(0,_.useRef)(!1);return(0,_.useEffect)(()=>{A.current||(A.current=!0,(async()=>{try{let t=await l();if(!t.ok){e(u.account.login,{replace:!0});return}x(t.data.user.email??``),C(t.data.user.username??``),k(!1)}catch{e(u.account.login,{replace:!0})}})())},[e]),O?(0,v.jsx)(m,{children:(0,v.jsx)(p,{title:`Completing signup...`,subtitle:`Please wait while we load your information.`})}):(0,v.jsxs)(m,{children:[(0,v.jsx)(p,{title:`Complete your account`,subtitle:`We need a few more details to finish setting up your account.`}),(0,v.jsxs)(f,{onSubmit:async t=>{t.preventDefault(),T(null),D(!0);try{let t=await c({email:b,username:S});if(!t.ok){if(s(t)){await a();let t=g(y,u.account.root);t.requiresFullPageNavigation?window.location.href=t.destination:e(t.destination);return}T(t.errors[0]?.message??`Failed to complete signup.`);return}await a();let n=h({returnTo:y,fallback:u.account.root,authIntent:`signup`});n.requiresFullPageNavigation?window.location.href=n.destination:e(n.destination)}catch{T(`Something went wrong. Please try again.`)}finally{D(!1)}},error:w,submitLabel:`Complete signup`,submittingLabel:`Completing...`,isSubmitting:E,footer:(0,v.jsx)(i,{to:u.account.login,className:`text-sm text-stone-400 hover:text-stone-300`,children:`← Back to sign in`}),children:[(0,v.jsx)(d,{id:`email`,type:`email`,autoComplete:`email`,placeholder:`Email`,value:b,onChange:e=>x(e.target.value),required:!0}),(0,v.jsx)(d,{id:`username`,type:`text`,autoComplete:`username`,placeholder:`Username`,value:S,onChange:e=>C(e.target.value),required:!0})]})]})}export{y as ProviderSignupPage};
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-DJZBPgpf.js";import{d as n,m as r,t as i}from"./chunk-5KNZJZUH-B4b1m-Ya.js";import{t as a}from"./jsx-runtime-CVSDxk6A.js";import{n as o}from"./auth-store-RIjuTM3X.js";import{C as s,T as c,x as l}from"./native-biometric-CfMWTyzx.js";import{i as u}from"./routes-DminYfDX.js";import{i as d,n as f,r as p,t as m}from"./account-shell-mWbkdjh7.js";import{a as h,o as g}from"./login-flow-E2FJkpFg.js";var _=e(t(),1),v=a();function y(){let e=n(),[t]=r(),a=o.use.refreshSession(),y=t.get(`returnTo`),[b,x]=(0,_.useState)(``),[S,C]=(0,_.useState)(``),[w,T]=(0,_.useState)(null),[E,D]=(0,_.useState)(!1),[O,k]=(0,_.useState)(!0),A=(0,_.useRef)(!1);return(0,_.useEffect)(()=>{A.current||(A.current=!0,(async()=>{try{let t=await l();if(!t.ok){e(u.account.login,{replace:!0});return}x(t.data.user.email??``),C(t.data.user.username??``),k(!1)}catch{e(u.account.login,{replace:!0})}})())},[e]),O?(0,v.jsx)(m,{children:(0,v.jsx)(p,{title:`Completing signup...`,subtitle:`Please wait while we load your information.`})}):(0,v.jsxs)(m,{children:[(0,v.jsx)(p,{title:`Complete your account`,subtitle:`We need a few more details to finish setting up your account.`}),(0,v.jsxs)(f,{onSubmit:async t=>{t.preventDefault(),T(null),D(!0);try{let t=await c({email:b,username:S});if(!t.ok){if(s(t)){await a();let t=g(y,u.account.root);t.requiresFullPageNavigation?window.location.href=t.destination:e(t.destination);return}T(t.errors[0]?.message??`Failed to complete signup.`);return}await a();let n=h({returnTo:y,fallback:u.account.root,authIntent:`signup`});n.requiresFullPageNavigation?window.location.href=n.destination:e(n.destination)}catch{T(`Something went wrong. Please try again.`)}finally{D(!1)}},error:w,submitLabel:`Complete signup`,submittingLabel:`Completing...`,isSubmitting:E,footer:(0,v.jsx)(i,{to:u.account.login,className:`text-sm text-stone-400 hover:text-stone-300`,children:`← Back to sign in`}),children:[(0,v.jsx)(d,{id:`email`,type:`email`,autoComplete:`email`,placeholder:`Email`,value:b,onChange:e=>x(e.target.value),required:!0}),(0,v.jsx)(d,{id:`username`,type:`text`,autoComplete:`username`,placeholder:`Username`,value:S,onChange:e=>C(e.target.value),required:!0})]})]})}export{y as ProviderSignupPage};
@@ -1 +1 @@
1
- import{_ as e,o as t}from"./react-query.gen-CfXF72qo.js";var n=`assistantAvatar`;function r(e){return[n,e]}var i=`conversations`;function a(e){return[i,e??``]}var o=`archived-conversations`;function s(e){return[o,e??``]}var c=`background-conversations`;function l(e){return[c,e??``]}var u=`scheduled-conversations`;function d(e){return[u,e??``]}function f(t){return e({path:{assistant_id:t??``}})}function p(e){return t({path:{assistant_id:e??``}})}function m(e){return[`soundsConfig`,e]}function h(e){return[`soundsAvailable`,e]}function g(e){return[`schedules`,e]}function _(e,t){return t?[`schedule-runs`,e,t]:[`schedule-runs`,e]}function v(e,t){return t?[`schedule-usage-summary`,e,t]:[`schedule-usage-summary`,e]}var y=[`client-feature-flag-values`],b=`assistant-feature-flag-values`;function x(e){return[b,e]}var S=`assistant-identity`;function C(e){return[S,e??``]}var w=`identity-intro`;function T(e){return[w,e??``]}function E(e,t){t&&e.invalidateQueries({queryKey:p(t)})}function D(e,t){t&&(e.invalidateQueries({queryKey:m(t)}),e.invalidateQueries({queryKey:h(t)}))}function O(e,t){t&&(e.invalidateQueries({queryKey:g(t)}),e.invalidateQueries({queryKey:_(t)}),e.invalidateQueries({queryKey:v(t)}))}export{O as _,T as a,v as c,m as d,r as f,E as g,a as h,x as i,g as l,f as m,s as n,C as o,l as p,p as r,_ as s,y as t,h as u,D as v,d as y};
1
+ import{_ as e,o as t}from"./react-query.gen-Cj6WQdON.js";var n=`assistantAvatar`;function r(e){return[n,e]}var i=`conversations`;function a(e){return[i,e??``]}var o=`archived-conversations`;function s(e){return[o,e??``]}var c=`background-conversations`;function l(e){return[c,e??``]}var u=`scheduled-conversations`;function d(e){return[u,e??``]}function f(t){return e({path:{assistant_id:t??``}})}function p(e){return t({path:{assistant_id:e??``}})}function m(e){return[`soundsConfig`,e]}function h(e){return[`soundsAvailable`,e]}function g(e){return[`schedules`,e]}function _(e,t){return t?[`schedule-runs`,e,t]:[`schedule-runs`,e]}function v(e,t){return t?[`schedule-usage-summary`,e,t]:[`schedule-usage-summary`,e]}var y=[`client-feature-flag-values`],b=`assistant-feature-flag-values`;function x(e){return[b,e]}var S=`assistant-identity`;function C(e){return[S,e??``]}var w=`identity-intro`;function T(e){return[w,e??``]}function E(e,t){t&&e.invalidateQueries({queryKey:p(t)})}function D(e,t){t&&(e.invalidateQueries({queryKey:m(t)}),e.invalidateQueries({queryKey:h(t)}))}function O(e,t){t&&(e.invalidateQueries({queryKey:g(t)}),e.invalidateQueries({queryKey:_(t)}),e.invalidateQueries({queryKey:v(t)}))}export{O as _,T as a,v as c,m as d,r as f,E as g,a as h,x as i,g as l,f as m,s as n,C as o,l as p,p as r,_ as s,y as t,h as u,D as v,d as y};
@@ -0,0 +1 @@
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-DJZBPgpf.js";import{t as n}from"./jsx-runtime-CVSDxk6A.js";import{t as r}from"./is-electron-CavSPgmY.js";import{t as i}from"./arrow-up-BfbWaCwD.js";import{t as a}from"./public-asset-CdVbP-K-.js";var o=e(t(),1);async function s(e){r()&&await window.vellum?.quickInput?.submit(e)}async function c(){r()&&await window.vellum?.quickInput?.dismiss()}var l=n();function u(){let[e,t]=(0,o.useState)(``),n=(0,o.useRef)(null);(0,o.useEffect)(()=>{n.current?.focus()},[]);let r=(0,o.useCallback)(n=>{n.preventDefault();let r=e.trim();r&&(s(r),t(``))},[e]),u=(0,o.useCallback)(e=>{e.key===`Escape`&&(e.preventDefault(),c())},[]);return(0,l.jsx)(`div`,{className:`flex h-screen w-screen items-center justify-center bg-transparent p-2`,children:(0,l.jsxs)(`form`,{onSubmit:r,className:`flex w-full items-center gap-3 rounded-2xl border border-[var(--border-default)] bg-[var(--surface-base)] px-4 py-3 shadow-lg`,children:[(0,l.jsx)(`img`,{src:a(`/vellum-logo.svg`),alt:`Vellum`,width:24,height:24,className:`shrink-0 dark:hidden`,draggable:!1}),(0,l.jsx)(`img`,{src:a(`/vellum-logo-white.svg`),alt:`Vellum`,width:24,height:24,className:`hidden shrink-0 dark:block`,draggable:!1}),(0,l.jsx)(`input`,{ref:n,type:`text`,value:e,onChange:e=>t(e.target.value),onKeyDown:u,placeholder:`Ask Vellum anything...`,className:`min-w-0 flex-1 bg-transparent text-sm text-[var(--content-default)] placeholder:text-[var(--content-tertiary)] outline-none`}),(0,l.jsx)(`button`,{type:`submit`,disabled:!e.trim(),className:`flex size-7 shrink-0 items-center justify-center rounded-full bg-[var(--surface-accent)] text-[var(--content-on-accent)] transition-opacity disabled:opacity-30`,children:(0,l.jsx)(i,{size:16})})]})})}export{u as QuickInputPage};
@@ -0,0 +1 @@
1
+ import{t as e}from"./queryOptions-BtNi-_9H.js";import{A as t,Dn as n,Dt as r,En as i,Jn as a,Ln as o,On as s,Tn as c,an as ee,bt as l,cn as u,ct as d,dt as te,j as ne,k as re,kt as ie,ln as f,lt as p,o as m,on as h,ot as g,ut as _,v,wn as y,x as b,y as x}from"./sdk.gen-govMfbgX.js";var S=(e,t,n,r)=>{let i={_id:e,baseUrl:t?.baseUrl||(t?.client??a).getConfig().baseUrl};return n&&(i._infinite=n),r&&(i.tags=r),t?.body&&(i.body=t.body),t?.headers&&(i.headers=t.headers),t?.path&&(i.path=t.path),t?.query&&(i.query=t.query),[i]},C=e=>S(`appsGet`,e),w=t=>e({queryFn:async({queryKey:e,signal:n})=>{let{data:r}=await m({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:C(t)}),T=e=>S(`channelsAvailableGet`,e),E=t=>e({queryFn:async({queryKey:e,signal:n})=>{let{data:r}=await v({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:T(t)}),D=e=>S(`channelsReadinessGet`,e),O=t=>e({queryFn:async({queryKey:e,signal:n})=>{let{data:r}=await x({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:D(t)}),k=e=>S(`configGet`,e),A=e=>S(`configLlmCallsitesGet`,e),j=t=>e({queryFn:async({queryKey:e,signal:n})=>{let{data:r}=await b({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:A(t)}),M=e=>({mutationFn:async t=>{let{data:n}=await re({...e,...t,throwOnError:!0});return n}}),N=e=>S(`contactsGet`,e),P=n=>e({queryFn:async({queryKey:e,signal:r})=>{let{data:i}=await t({...n,...e[0],signal:r,throwOnError:!0});return i},queryKey:N(n)}),F=e=>({mutationFn:async t=>{let{data:n}=await ne({...e,...t,throwOnError:!0});return n}}),I=e=>S(`documentsGet`,e),L=t=>e({queryFn:async({queryKey:e,signal:n})=>{let{data:r}=await g({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:I(t)}),R=e=>S(`groupsGet`,e),z=t=>e({queryFn:async({queryKey:e,signal:n})=>{let{data:r}=await _({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:R(t)}),B=e=>({mutationFn:async t=>{let{data:n}=await te({...e,...t,throwOnError:!0});return n}}),V=e=>({mutationFn:async t=>{let{data:n}=await d({...e,...t,throwOnError:!0});return n}}),H=e=>({mutationFn:async t=>{let{data:n}=await p({...e,...t,throwOnError:!0});return n}}),U=e=>S(`homeFeedGet`,e),W=e=>S(`homeStateGet`,e),G=t=>e({queryFn:async({queryKey:e,signal:n})=>{let{data:r}=await l({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:W(t)}),K=e=>S(`inferenceProviderconnectionsGet`,e),q=t=>e({queryFn:async({queryKey:e,signal:n})=>{let{data:i}=await r({...t,...e[0],signal:n,throwOnError:!0});return i},queryKey:K(t)}),J=e=>({mutationFn:async t=>{let{data:n}=await ie({...e,...t,throwOnError:!0});return n}}),Y=e=>S(`pluginsGet`,e),ae=e=>({mutationFn:async t=>{let{data:n}=await ee({...e,...t,throwOnError:!0});return n}}),X=e=>S(`pluginsByNameGet`,e),oe=t=>e({queryFn:async({queryKey:e,signal:n})=>{let{data:r}=await h({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:X(t)}),se=e=>({mutationFn:async t=>{let{data:n}=await u({...e,...t,throwOnError:!0});return n}}),Z=e=>S(`pluginsSearchGet`,e),ce=t=>e({queryFn:async({queryKey:e,signal:n})=>{let{data:r}=await f({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:Z(t)}),Q=e=>S(`skillsGet`,e),le=t=>e({queryFn:async({queryKey:e,signal:n})=>{let{data:r}=await s({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:Q(t)}),ue=e=>({mutationFn:async t=>{let{data:n}=await y({...e,...t,throwOnError:!0});return n}}),de=e=>S(`skillsByIdFilesGet`,e),fe=t=>e({queryFn:async({queryKey:e,signal:n})=>{let{data:r}=await i({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:de(t)}),pe=e=>S(`skillsByIdFilesContentGet`,e),$=t=>e({queryFn:async({queryKey:e,signal:n})=>{let{data:r}=await c({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:pe(t)}),me=e=>S(`skillsCategoriesGet`,e),he=t=>e({queryFn:async({queryKey:e,signal:r})=>{let{data:i}=await n({...t,...e[0],signal:r,throwOnError:!0});return i},queryKey:me(t)}),ge=e=>S(`ttsProvidersGet`,e),_e=t=>e({queryFn:async({queryKey:e,signal:n})=>{let{data:r}=await o({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:ge(t)});export{ce as A,K as C,X as D,oe as E,he as F,le as I,Q as L,ue as M,$ as N,Y as O,fe as P,_e as R,q as S,ae as T,R as _,D as a,G as b,M as c,F as d,L as f,z as g,H as h,O as i,Z as j,se as k,P as l,V as m,C as n,k as o,I as p,E as r,j as s,w as t,N as u,B as v,J as w,W as x,U as y};
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-D8wUFCt3.js";import{r as t}from"./api-errors-DhNZwQy5.js";var n=e(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),r={medium:[`small`,`medium`],large:[`small`,`medium`,`large`],xl:[`small`,`medium`,`large`,`extra_large`]};function i(e){return e?r[e]??[]:[]}var a={small:`Small`,medium:`Medium`,large:`Large`,extra_large:`Extra Large`},o={small:`2 vCPU, 3 GiB`,medium:`2.5 vCPU, 5 GiB`,large:`4 vCPU, 8 GiB`,extra_large:`4 vCPU, 16 GiB`},s=[`small`,`medium`,`large`,`extra_large`];function c(e){return s.indexOf(e)}function l(e,t,n){return e.map(e=>({value:e,label:`${a[e]} — ${o[e]}`,suffix:e===t?n:void 0}))}var u=new Set([`exceeds_machine_tier`,`exceeds_storage_tier`]);function d(e,n){return e&&typeof e==`object`&&!Array.isArray(e)&&`error`in e&&typeof e.error==`string`&&u.has(e.error)?`That size isn't available on your plan.`:t(e,void 0,n)}export{i as a,n as c,r as i,o as n,l as o,a as r,c as s,d as t};
1
+ import{t as e}from"./createLucideIcon-BjZY5k1w.js";import{r as t}from"./api-errors-DApr8J5Z.js";var n=e(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),r={medium:[`small`,`medium`],large:[`small`,`medium`,`large`],xl:[`small`,`medium`,`large`,`extra_large`]};function i(e){return e?r[e]??[]:[]}var a={small:`Small`,medium:`Medium`,large:`Large`,extra_large:`Extra Large`},o={small:`2 vCPU, 3 GiB`,medium:`2.5 vCPU, 5 GiB`,large:`4 vCPU, 8 GiB`,extra_large:`4 vCPU, 16 GiB`},s=[`small`,`medium`,`large`,`extra_large`];function c(e){return s.indexOf(e)}function l(e,t,n){return e.map(e=>({value:e,label:`${a[e]} — ${o[e]}`,suffix:e===t?n:void 0}))}var u=new Set([`exceeds_machine_tier`,`exceeds_storage_tier`]);function d(e,n){return e&&typeof e==`object`&&!Array.isArray(e)&&`error`in e&&typeof e.error==`string`&&u.has(e.error)?`That size isn't available on your plan.`:t(e,void 0,n)}export{i as a,n as c,r as i,o as n,l as o,a as r,c as s,d as t};
@@ -0,0 +1 @@
1
+ import{n as e,t}from"./create-selectors-CDULelrw.js";import{d as n,u as r,x as i}from"./local-mode-Cx_DqCMC.js";var a=`vellum:currentAssistantId:`;function o(e){return`${a}${e}`}function s(){if(typeof window>`u`)return{};let e={};try{for(let t=0;t<window.localStorage.length;t++){let n=window.localStorage.key(t);if(n&&n.startsWith(`vellum:currentAssistantId:`)){let t=n.slice(26),r=window.localStorage.getItem(n);r!=null&&(e[t]=r)}}}catch{}return e}function c(e){if(!(typeof window>`u`))try{for(let[t,n]of Object.entries(e)){let e=o(t);window.localStorage.getItem(e)!==n&&window.localStorage.setItem(e,n)}}catch{}}function l(e){if(!(typeof window>`u`))try{window.localStorage.removeItem(o(e))}catch{}}var u=e(e=>({assistants:[],activeAssistantId:null,selectedPlatformAssistantByOrg:s(),setFromLockfile:t=>e({assistants:t.assistants.map(e=>({id:e.assistantId,name:e.name,isLocal:r(e)}))}),setFromApi:t=>e({assistants:t.map(e=>({id:e.id,name:e.name,isLocal:e.is_local}))}),remove:t=>e(e=>({assistants:e.assistants.filter(e=>e.id!==t)})),clear:()=>e({assistants:[]}),setActiveAssistantId:t=>e({activeAssistantId:t}),setSelectedPlatformAssistant:(t,n)=>{n??l(t),e(e=>{let r={...e.selectedPlatformAssistantByOrg};return n==null?delete r[t]:r[t]=n,c(r),{selectedPlatformAssistantByOrg:r}})}})),d=t(u);n()&&i.subscribe(e=>{e.lockfile&&u.getState().setFromLockfile(e.lockfile)}),typeof window<`u`&&window.addEventListener(`storage`,e=>{(e.key===null||e.key.startsWith(`vellum:currentAssistantId:`))&&u.setState({selectedPlatformAssistantByOrg:s()})});export{d as t};
@@ -0,0 +1 @@
1
+ var e=e=>e,t=(e,t)=>`${e}/${t}`,n=e(`/assistant/logs/usage`),r={assistant:e(`/assistant`),about:e(`/assistant/about`),bundleConfirm:e(`/assistant/bundle/confirm`),quickInput:e(`/assistant/quick-input`),conversation:n=>t(e(`/assistant/conversations`),n),inspect:n=>`${t(e(`/assistant/conversations`),n)}/inspect`,logs:{root:e(`/assistant/logs`),trace:e(`/assistant/logs/trace`),usage:n,usageForSchedule:e=>`${n}?${new URLSearchParams({range:`7d`,groupBy:`schedule`,scheduleId:e}).toString()}`,emails:e(`/assistant/logs/emails`),systemEvents:e(`/assistant/logs/system-events`)},account:{root:e(`/account`),login:e(`/account/login`),signup:e(`/account/signup`),providerSignup:e(`/account/provider/signup`),providerCallback:e(`/account/provider/callback`),oauth:{popupComplete:e(`/account/oauth/popup-complete`),complete:e(`/account/oauth/complete`),desktopComplete:e(`/account/oauth/desktop-complete`)}},onboarding:{welcome:e(`/assistant/onboarding/welcome`),selectAssistant:e(`/assistant/onboarding/select-assistant`),hosting:e(`/assistant/onboarding/hosting`),apiKey:e(`/assistant/onboarding/api-key`),privacy:e(`/assistant/onboarding/privacy`),prechat:e(`/assistant/onboarding/prechat`),hatching:e(`/assistant/onboarding/hatching`)},home:e(`/assistant/home`),identity:e(`/assistant/identity`),plugins:e(`/assistant/plugins`),plugin:n=>t(e(`/assistant/plugins`),n),skills:e(`/assistant/skills`),workspace:e(`/assistant/workspace`),library:{root:e(`/assistant/library`),app:n=>t(e(`/assistant/library`),n)},document:n=>t(e(`/assistant/documents`),n),connect:e(`/assistant/connect`),contacts:{root:e(`/assistant/contacts`)},settings:{root:e(`/assistant/settings`),general:e(`/assistant/settings/general`),ai:e(`/assistant/settings/ai`),integrations:e(`/assistant/settings/integrations`),schedules:e(`/assistant/settings/schedules`),schedule:n=>t(e(`/assistant/settings/schedules`),n),notifications:e(`/assistant/settings/notifications`),keyboardShortcuts:e(`/assistant/settings/keyboard-shortcuts`),sounds:e(`/assistant/settings/sounds`),voice:e(`/assistant/settings/voice`),devices:e(`/assistant/settings/devices`),privacy:e(`/assistant/settings/privacy`),archive:e(`/assistant/settings/archive`),billing:e(`/assistant/settings/billing`),community:e(`/assistant/settings/community`),debug:e(`/assistant/settings/debug`),developer:e(`/assistant/settings/developer`),advanced:e(`/assistant/settings/advanced`),dangerZone:e(`/assistant/settings/danger-zone`),systemEvents:e(`/assistant/settings/system-events`),upgradeCancel:e(`/assistant/settings/billing/upgrade/cancel`),upgradeSuccess:e(`/assistant/settings/billing/upgrade/success`)},admin:{root:e(`/admin`)},docs:{hostingOptions:e(`/docs/hosting-options`),legal:{privacyPolicy:e(`/docs/privacy-policy`),termsOfUse:e(`/docs/vellum-terms-of-use`),dataSharing:e(`/docs/data-sharing`),prohibitedUse:e(`/docs/prohibited-use`),privacyAndData:e(`/docs/trust-security/privacy-and-data`)}}},i=`vellum.ai`;function a(e){return o(e)}function o(e){return`https://${i}${e}`}function s(){return r.admin.root}export{r as i,o as n,a as r,s as t};
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-D8wUFCt3.js";var t=e(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]);export{t};
1
+ import{t as e}from"./createLucideIcon-BjZY5k1w.js";var t=e(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]);export{t};
@@ -1 +1 @@
1
- import{pn as e}from"./sdk.gen-up8j0_uF.js";import{n as t,r as n,t as r}from"./api-errors-DhNZwQy5.js";async function i(i){let{data:a,error:o,response:s}=await e({path:{assistant_id:i},throwOnError:!1});if(t(s,o,`Failed to load schedules.`),!s.ok)throw new r(s.status,n(o,s,`Failed to load schedules.`));return a?.schedules??[]}export{i as t};
1
+ import{gn as e}from"./sdk.gen-govMfbgX.js";import{n as t,r as n,t as r}from"./api-errors-DApr8J5Z.js";async function i(i){let{data:a,error:o,response:s}=await e({path:{assistant_id:i},throwOnError:!1});if(t(s,o,`Failed to load schedules.`),!s.ok)throw new r(s.status,n(o,s,`Failed to load schedules.`));return a?.schedules??[]}export{i as t};
@@ -0,0 +1 @@
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./capture-error-Di3WCQrq.js";import{t as n}from"./react-DJZBPgpf.js";import{d as r,f as i}from"./chunk-5KNZJZUH-B4b1m-Ya.js";import{n as a}from"./QueryClientProvider-DNHWXaGq.js";import{t as o}from"./useQuery-D2zf6Uhu.js";import{t as s}from"./jsx-runtime-CVSDxk6A.js";import{t as c}from"./button-DdEh-9f_.js";import{t as l}from"./notice-CF2pptne.js";import{t as u}from"./tag-Ccr7Quy6.js";import{t as d}from"./panel-item-FzMfzMJA.js";import{n as f,t as p}from"./input-Cu3PPVCq.js";import{t as m}from"./toggle-CEm3M86o.js";import{t as h}from"./modal-BhuCoLJX.js";import{t as g}from"./toast-3Fi9QU7z.js";import{t as _}from"./calendar-B2_jTx01.js";import{t as v}from"./chevron-right-DF2EzMUB.js";import{t as y}from"./loader-circle-B9sFQ7nF.js";import{D as b,E as x,O as S,T as C,_n as w,dn as T,fn as E,gt as ee,hn as te,ht as D,mn as O,mt as k,pn as ne,pt as A,vn as re}from"./sdk.gen-govMfbgX.js";import{n as j,r as M,t as N}from"./api-errors-DApr8J5Z.js";import{i as P}from"./routes-DminYfDX.js";import{c as F,l as ie,s as ae}from"./query-tags-CXf0mBKU.js";import{t as oe}from"./assistant-feature-flag-store-BiEkLFvf.js";import{t as I}from"./effective-timezone-CJWCpcyG.js";import{Qi as se,da as ce,do as le,ea as ue,go as L,ki as de,qn as fe}from"./index-DTWPgS5K.js";import{t as pe}from"./use-active-assistant-id--1Ick1YC.js";import{t as R}from"./detail-card-B-us8iM5.js";import{n as z}from"./usage-window-COo_tIlP.js";import{t as B}from"./schedules-BTZchh0D.js";var V=e(n(),1);async function H(e,t){let{error:n,response:r}=await w({path:{assistant_id:e},body:t,throwOnError:!1});if(j(r,n,`Failed to create schedule.`),!r.ok)throw new N(r.status,M(n,r,`Failed to create schedule.`))}async function U(e,t,n){let{error:r,response:i}=await E({path:{assistant_id:e,id:t},body:n,throwOnError:!1});if(j(i,r,`Failed to update schedule.`),!i.ok)throw new N(i.status,M(r,i,`Failed to update schedule.`))}async function me(e){return B(e)}async function he(e,t,n=10){let{data:r,error:i,response:a}=await O({path:{assistant_id:e,id:t},query:{limit:n},throwOnError:!1});if(j(a,i,`Failed to load schedule runs.`),!a.ok)throw new N(a.status,M(i,a,`Failed to load schedule runs.`));return r?.runs??[]}async function ge(e,t){let{data:n,error:r,response:i}=await re({path:{assistant_id:e},query:{from:t.from,to:t.to},throwOnError:!1});if(j(i,r,`Failed to load schedule usage.`),!i.ok)throw new N(i.status,M(r,i,`Failed to load schedule usage.`));return n?.summaries??[]}async function _e(e,t,n){let{error:r,response:i}=await te({path:{assistant_id:e,id:t},body:{enabled:n},throwOnError:!1});if(j(i,r,`Failed to toggle schedule.`),!i.ok)throw new N(i.status,M(r,i,`Failed to toggle schedule.`))}async function W(e,t){let{error:n,response:r}=await T({path:{assistant_id:e,id:t},throwOnError:!1});if(j(r,n,`Failed to delete schedule.`),!r.ok&&r.status!==204)throw new N(r.status,M(n,r,`Failed to delete schedule.`))}async function G(e,t){let{error:n,response:r}=await ne({path:{assistant_id:e,id:t},throwOnError:!1});if(j(r,n,`Failed to run schedule.`),!r.ok)throw new N(r.status,M(n,r,`Failed to run schedule.`))}async function ve(e,t=10){let{data:n,error:r,response:i}=await ee({path:{assistant_id:e},query:{limit:t},throwOnError:!1});if(j(i,r,`Failed to load heartbeat runs.`),!i.ok)throw new N(i.status,M(r,i,`Failed to load heartbeat runs.`));return(n?.runs??[]).map(e=>({id:e.id,jobId:`heartbeat`,status:e.status,startedAt:e.startedAt??e.scheduledFor,finishedAt:e.finishedAt,durationMs:e.durationMs,output:e.skipReason?`Skipped: ${e.skipReason}`:null,error:e.error,conversationId:e.conversationId,conversationExists:e.conversationExists,conversationArchivedAt:e.conversationArchivedAt,estimatedCostUsd:e.estimatedCostUsd,createdAt:e.createdAt}))}async function ye(e,t=10){let{data:n,error:r,response:i}=await S({path:{assistant_id:e},query:{limit:t},throwOnError:!1});if(j(i,r,`Failed to load consolidation runs.`),!i.ok)throw new N(i.status,M(r,i,`Failed to load consolidation runs.`));return(n?.runs??[]).map(e=>({id:e.id,jobId:`consolidation`,status:e.status,startedAt:e.startedAt??e.scheduledFor,finishedAt:e.finishedAt,durationMs:e.durationMs,output:null,error:e.error,conversationId:e.conversationId,conversationExists:e.conversationExists,conversationArchivedAt:e.conversationArchivedAt,estimatedCostUsd:e.estimatedCostUsd,createdAt:e.createdAt}))}async function be(e){let{data:t,error:n,response:r}=await A({path:{assistant_id:e},throwOnError:!1});if(j(r,n,`Failed to load heartbeat config.`),!r.ok||!t)throw new N(r.status,M(n,r,`Failed to load heartbeat config.`));return t}async function K(e,t){let{data:n,error:r,response:i}=await e();if(j(i,r,t),!i.ok||!n)throw new N(i.status,M(r,i,t));return n}async function xe(e,t){return K(()=>k({path:{assistant_id:e},body:t,throwOnError:!1}),`Failed to update heartbeat config.`)}async function Se(e){let{data:t,error:n,response:r}=await D({path:{assistant_id:e},throwOnError:!1});if(j(r,n,`Failed to run heartbeat.`),!r.ok||!t)throw new N(r.status,M(n,r,`Failed to run heartbeat.`));return t}async function Ce(e){let{data:t,error:n,response:r}=await C({path:{assistant_id:e},throwOnError:!1});if(j(r,n,`Failed to load consolidation config.`),!r.ok||!t)throw new N(r.status,M(n,r,`Failed to load consolidation config.`));return t}async function we(e,t){return K(()=>x({path:{assistant_id:e},body:t,throwOnError:!1}),`Failed to update consolidation config.`)}async function Te(e){let{data:t,error:n,response:r}=await b({path:{assistant_id:e},throwOnError:!1});if(j(r,n,`Failed to run consolidation.`),!r.ok||!t)throw new N(r.status,M(n,r,`Failed to run consolidation.`));return t}var q=s(),Ee=[{label:`Every hour`,expression:`0 * * * *`},{label:`Every day at 9am`,expression:`0 9 * * *`},{label:`Every weekday at 9am`,expression:`0 9 * * 1-5`},{label:`Every Monday at 9am`,expression:`0 9 * * 1`},{label:`Every 1st of month, 9am`,expression:`0 9 1 * *`}];function De({isOpen:e,assistantId:t,onClose:n,onCreated:r}){return(0,q.jsx)(h.Root,{open:e,onOpenChange:e=>{e||n()},children:e?(0,q.jsx)(Oe,{assistantId:t,onClose:n,onCreated:r}):null})}function Oe({assistantId:e,onClose:t,onCreated:n}){let[r,i]=(0,V.useState)(``),[a,o]=(0,V.useState)(``),[s,l]=(0,V.useState)(``),[u,d]=(0,V.useState)(``),[m,g]=(0,V.useState)(!1),[_,v]=(0,V.useState)(null),y=r.trim(),b=a.trim(),x=s.trim(),S=y.length>0&&b.length>0&&x.length>0&&!m;return(0,q.jsxs)(h.Content,{size:`md`,children:[(0,q.jsxs)(h.Header,{children:[(0,q.jsx)(h.Title,{children:`Create schedule`}),(0,q.jsx)(h.Description,{children:`Schedule a recurring instruction for your assistant. Runs in execute mode — the message is delivered to the assistant on each fire.`})]}),(0,q.jsxs)(`form`,{onSubmit:async t=>{if(t.preventDefault(),S){g(!0),v(null);try{let t={name:y,expression:b,message:x},r=u.trim();r&&(t.timezone=r),await H(e,t),g(!1),n()}catch(e){v(e instanceof Error?e.message:`Failed to create schedule.`),g(!1)}}},children:[(0,q.jsx)(h.Body,{children:(0,q.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,q.jsx)(p,{label:`Name`,placeholder:`Morning briefing`,value:r,onChange:e=>i(e.target.value),required:!0,autoFocus:!0,fullWidth:!0}),(0,q.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,q.jsx)(p,{label:`Cron expression`,placeholder:`0 9 * * *`,value:a,onChange:e=>o(e.target.value),required:!0,fullWidth:!0,helperText:`Standard 5-field cron (minute hour day month weekday). RRULE expressions are also accepted.`}),(0,q.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:Ee.map(e=>(0,q.jsx)(c,{variant:`outlined`,size:`compact`,type:`button`,onClick:()=>o(e.expression),children:e.label},e.expression))})]}),(0,q.jsx)(p,{label:`Timezone (optional)`,placeholder:`America/New_York`,value:u,onChange:e=>d(e.target.value),fullWidth:!0,helperText:`IANA timezone name. Leave blank to use UTC.`}),(0,q.jsx)(f,{label:`Message`,placeholder:`What should the assistant do on each fire?`,value:s,onChange:e=>l(e.target.value),required:!0,fullWidth:!0,rows:4}),_?(0,q.jsx)(`p`,{className:`text-body-small-default text-[var(--system-negative-strong)]`,children:_}):null]})}),(0,q.jsxs)(h.Footer,{children:[(0,q.jsx)(c,{variant:`outlined`,onClick:t,type:`button`,children:`Cancel`}),(0,q.jsx)(c,{variant:`primary`,type:`submit`,disabled:!S,children:m?`Creating…`:`Create schedule`})]})]})]})}function ke(e=I(),t=Date.now()){return z(`7d`,e,t)}function J(e){return e?new Date(e).toLocaleString(void 0,{month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`,hour12:!0}):`—`}function Ae(e){return e==null?`—`:e<1e3?`${e}ms`:`${(e/1e3).toFixed(1)}s`}var je=new Intl.NumberFormat(void 0,{style:`currency`,currency:`USD`,minimumFractionDigits:2,maximumFractionDigits:4});function Y(e){return e==null||!Number.isFinite(e)?`—`:je.format(e)}function Me(e){return`${e.toLocaleString()} ${e===1?`run`:`runs`}`}function Ne(e){return!!e.createdFromConversationId&&e.createdFromConversationExists===!0&&e.createdFromConversationArchivedAt==null}function Pe(e){return!!e.conversationId&&e.conversationExists===!0&&e.conversationArchivedAt==null}function Fe(e){return Ne(e)?e.createdFromConversationId??null:null}function Ie(e){return Pe(e)?e.conversationId??null:null}function Le(e){return typeof e==`string`&&e.length>0}function Re(e){let t=Math.round(e/6e4);return t>=60&&t%60==0?`Every ${t/60} hr`:`Every ${t} min`}function ze(e){if(e.cronExpression)return e.timezone?`Cron: ${e.cronExpression} (${e.timezone})`:`Cron: ${e.cronExpression}`;let t=Re(e.intervalMs);return e.activeHoursStart!=null&&e.activeHoursEnd!=null&&(t+=` (${e.activeHoursStart}:00–${e.activeHoursEnd}:00)`),t}function Be(e){return Re(e.intervalMs)}var X={execute:`positive`,notify:`warning`,script:`neutral`},Z={heartbeat:`system-heartbeat`,consolidation:`system-consolidation`},Q=100;function Ve(e,t){return e&&t}function He(e){switch(e){case Z.heartbeat:return`heartbeat`;case Z.consolidation:return`consolidation`;default:return null}}function $({status:e}){return(0,q.jsx)(`span`,{className:`inline-block h-2 w-2 rounded-full`,style:{backgroundColor:e===`ok`||e===`completed`?`var(--system-positive-strong)`:e===`error`||e===`failed`?`var(--system-negative-strong)`:`var(--content-tertiary)`},"aria-label":e??`unknown`})}function Ue({onCreate:e}){return(0,q.jsxs)(`div`,{className:`flex min-h-[400px] flex-col items-center justify-center rounded-lg border border-[var(--border-subtle)] bg-[var(--surface-lift)] px-6 py-16 text-center`,children:[(0,q.jsx)(`div`,{className:`flex h-12 w-12 items-center justify-center rounded-full bg-[var(--tag-bg-neutral)]`,children:(0,q.jsx)(_,{className:`h-6 w-6 text-[var(--content-faint)]`})}),(0,q.jsx)(`h2`,{className:`mt-4 text-title-small text-[var(--content-default)]`,children:`No schedules`}),(0,q.jsx)(`p`,{className:`mt-1 text-body-medium-lighter text-[var(--content-quiet)]`,children:`Scheduled automations will appear here once created. You can create one yourself or ask your assistant to set it up.`}),(0,q.jsx)(`div`,{className:`mt-4`,children:(0,q.jsxs)(c,{variant:`primary`,onClick:e,children:[(0,q.jsx)(se,{className:`h-4 w-4`}),`Create schedule`]})})]})}function We({onBack:e}){return(0,q.jsxs)(`div`,{className:`space-y-4`,children:[(0,q.jsxs)(`button`,{type:`button`,onClick:e,className:`flex items-center gap-1.5 text-body-medium-lighter text-[var(--content-secondary)] hover:text-[var(--content-default)] transition-colors`,children:[(0,q.jsx)(L,{className:`h-4 w-4`}),`Back to schedules`]}),(0,q.jsx)(l,{tone:`error`,children:`Schedule not found. It may have been deleted or the link may be out of date.`})]})}function Ge({runs:e,isLoading:t,emptyMessage:n=`No runs yet.`}){let i=r(),[a,o]=(0,V.useState)(null);return(0,q.jsx)(R,{title:`Recent runs`,children:t?(0,q.jsx)(`div`,{className:`flex items-center justify-center py-8`,children:(0,q.jsx)(y,{className:`h-5 w-5 animate-spin text-stone-400`})}):!e||e.length===0?(0,q.jsx)(`p`,{className:`py-4 text-center text-body-medium-lighter text-[var(--content-tertiary)] italic`,children:n}):(0,q.jsx)(`div`,{className:`divide-y divide-[var(--border-base)]`,children:e.map((e,t)=>{let n=Ie(e),r=Le(e.output),s=Le(e.error),c=!n&&(r||s),l=a===e.id,u=`schedule-run-details-${t}`;return(0,q.jsxs)(`div`,{children:[(0,q.jsx)(d,{label:(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-center gap-3`,children:[(0,q.jsx)($,{status:e.status}),(0,q.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,q.jsx)(`span`,{className:`block text-body-medium-lighter text-[var(--content-default)]`,children:J(e.startedAt)}),(0,q.jsxs)(`span`,{className:`block text-body-small-default text-[var(--content-tertiary)]`,children:[Ae(e.durationMs),` ·`,` `,Y(e.estimatedCostUsd),e.status===`error`&&e.error&&(0,q.jsxs)(`span`,{className:`ml-2 text-[var(--system-negative-strong)]`,children:[e.error.slice(0,80),e.error.length>80?`…`:``]})]})]}),n||c?(0,q.jsx)(v,{className:`h-4 w-4 shrink-0 text-[var(--content-tertiary)] transition-transform ${l?`rotate-90`:``}`}):null]}),onSelect:n?()=>i(P.conversation(n)):c?()=>o(l?null:e.id):void 0,"aria-label":`Run at ${J(e.startedAt)}`,"aria-expanded":c?l:void 0,"aria-controls":c?u:void 0,className:`h-auto py-2.5 gap-3 -mx-2 px-2`}),c&&l?(0,q.jsx)(`div`,{id:u,className:`px-2 pb-3`,children:(0,q.jsxs)(`div`,{className:`space-y-3 rounded-md border border-[var(--border-subtle)] bg-[var(--surface-sunken)] p-3`,children:[r?(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`div`,{className:`mb-1 text-body-small-default text-[var(--content-secondary)]`,children:`Output`}),(0,q.jsx)(`pre`,{className:`max-h-64 overflow-auto whitespace-pre-wrap break-words text-body-small-default font-mono text-[var(--content-default)]`,children:e.output})]}):null,s?(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`div`,{className:`mb-1 text-body-small-default text-[var(--content-secondary)]`,children:`Error`}),(0,q.jsx)(`pre`,{className:`max-h-64 overflow-auto whitespace-pre-wrap break-words text-body-small-default font-mono text-[var(--system-negative-strong)]`,children:e.error})]}):null]})}):null]},e.id)})})})}var Ke=6e4,qe=1,Je=1800;function Ye({schedule:e,assistantId:n,onUpdated:r}){let i=Math.round((e.timeoutMs??Ke)/1e3),[a,o]=(0,V.useState)(!1),[s,l]=(0,V.useState)(String(i)),[u,d]=(0,V.useState)(!1),f=(0,V.useCallback)(()=>{l(String(i)),o(!0)},[i]),m=(0,V.useCallback)(async i=>{d(!0);try{await U(n,e.id,{timeoutMs:i}),o(!1),r()}catch(e){t(e,{context:`schedule_update_timeout`}),g.error(`Failed to update timeout.`)}finally{d(!1)}},[n,e.id,r]),h=(0,V.useCallback)(()=>{let e=Number(s);if(!Number.isInteger(e)||e<qe||e>Je){g.error(`Timeout must be a whole number between ${qe} and ${Je} seconds.`);return}m(e*1e3)},[s,m]);return a?(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,q.jsx)(`span`,{className:`text-[var(--content-secondary)]`,children:`Timeout`}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(p,{type:`number`,min:qe,max:Je,value:s,onChange:e=>l(e.target.value),className:`w-24`,"aria-label":`Timeout in seconds`}),(0,q.jsx)(`span`,{className:`text-[var(--content-tertiary)]`,children:`sec`}),(0,q.jsx)(c,{size:`compact`,onClick:h,disabled:u,children:u?`Saving…`:`Save`}),(0,q.jsx)(c,{variant:`outlined`,size:`compact`,onClick:()=>o(!1),disabled:u,children:`Cancel`})]})]}):(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,q.jsx)(`span`,{className:`text-[var(--content-secondary)]`,children:`Timeout`}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsxs)(`span`,{children:[i,`s`,e.timeoutMs==null?` (default)`:``]}),(0,q.jsx)(c,{variant:`outlined`,size:`compact`,onClick:f,children:`Edit`}),e.timeoutMs!=null&&(0,q.jsx)(c,{variant:`outlined`,size:`compact`,onClick:()=>void m(null),disabled:u,children:`Reset`})]})]})}function Xe({schedule:e,assistantId:n,onBack:i,onDeleted:a,onUpdated:s}){let l=r(),{data:d,isLoading:f,refetch:p}=o({queryKey:ae(n,e.id),queryFn:()=>he(n,e.id),staleTime:1e4}),[m,h]=(0,V.useState)(!1),[_,v]=(0,V.useState)(!1),[b,x]=(0,V.useState)(!1),S=(0,V.useCallback)(async()=>{h(!0);try{await G(n,e.id),setTimeout(()=>void p(),1e3)}catch(e){t(e,{context:`schedule_run_now`}),g.error(`Failed to run schedule.`)}finally{h(!1)}},[n,e.id,p]),C=(0,V.useCallback)(async()=>{x(!0);try{await W(n,e.id),a()}catch(e){t(e,{context:`schedule_delete`}),g.error(`Failed to delete schedule.`),x(!1),v(!1)}},[n,e.id,a]),w=Fe(e);return(0,q.jsxs)(`div`,{className:`space-y-4`,children:[(0,q.jsxs)(`button`,{type:`button`,onClick:i,className:`flex items-center gap-1.5 text-body-medium-lighter text-[var(--content-secondary)] hover:text-[var(--content-default)] transition-colors`,children:[(0,q.jsx)(L,{className:`h-4 w-4`}),`Back to schedules`]}),(0,q.jsx)(R,{title:e.name,subtitle:e.description??void 0,accessory:(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(u,{tone:X[e.mode]??`neutral`,children:e.mode}),(0,q.jsx)(c,{variant:`outlined`,size:`compact`,leftIcon:(0,q.jsx)(le,{className:`h-3.5 w-3.5`}),onClick:()=>l(P.logs.usageForSchedule(e.id)),children:`View usage`}),w?(0,q.jsx)(c,{variant:`outlined`,size:`compact`,leftIcon:(0,q.jsx)(ce,{className:`h-3.5 w-3.5`}),onClick:()=>l(P.conversation(w)),children:`Source`}):null,e.mode===`script`&&(0,q.jsx)(c,{variant:`outlined`,size:`compact`,leftIcon:m?(0,q.jsx)(y,{className:`h-3.5 w-3.5 animate-spin`}):(0,q.jsx)(ue,{className:`h-3.5 w-3.5`}),onClick:S,disabled:m,children:m?`Running…`:`Run now`})]}),children:(0,q.jsxs)(`div`,{className:`space-y-2 text-body-medium-lighter`,children:[e.mode===`script`&&e.script&&(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`span`,{className:`text-[var(--content-secondary)] text-body-small-default`,children:`Command`}),(0,q.jsx)(`pre`,{className:`mt-1 rounded-md bg-[var(--surface-sunken)] p-2 text-body-small-default font-mono text-[var(--content-default)] whitespace-pre-wrap break-all`,children:e.script})]}),e.mode===`script`&&(0,q.jsx)(Ye,{schedule:e,assistantId:n,onUpdated:s}),(0,q.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,q.jsx)(`span`,{className:`text-[var(--content-secondary)]`,children:`Status`}),(0,q.jsx)(`span`,{children:e.enabled?`Enabled`:`Disabled`})]}),(0,q.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,q.jsx)(`span`,{className:`text-[var(--content-secondary)]`,children:`Next run`}),(0,q.jsx)(`span`,{children:J(e.nextRunAt)})]}),e.lastRunAt&&(0,q.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,q.jsx)(`span`,{className:`text-[var(--content-secondary)]`,children:`Last run`}),(0,q.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,q.jsx)($,{status:e.lastStatus}),J(e.lastRunAt)]})]})]})}),(0,q.jsx)(Ge,{runs:d,isLoading:f}),(0,q.jsx)(R,{title:`Danger zone`,children:(0,q.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`p`,{className:`text-body-medium-default text-[var(--content-default)]`,children:`Delete this schedule`}),(0,q.jsx)(`p`,{className:`text-body-small-default text-[var(--content-tertiary)]`,children:`Permanently removes the schedule and all its run history. This cannot be undone.`})]}),_?(0,q.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[(0,q.jsx)(c,{variant:`ghost`,size:`compact`,onClick:()=>v(!1),disabled:b,children:`Cancel`}),(0,q.jsx)(c,{variant:`danger`,size:`compact`,onClick:()=>void C(),disabled:b,children:b?`Deleting…`:`Yes, delete`})]}):(0,q.jsx)(c,{variant:`dangerOutline`,size:`compact`,leftIcon:(0,q.jsx)(de,{className:`h-3.5 w-3.5`}),onClick:()=>v(!0),children:`Delete`})]})})]})}function Ze(e,t,n=!0){return{queryKey:F(e,t),queryFn:()=>e?ge(e,ke(t)):Promise.resolve([]),enabled:n,staleTime:1e4}}function Qe(e){return{scheduleId:e,runCount:0,totalEstimatedCostUsd:0,eventCount:0}}function $e(e,t,n){let r=(t??[]).filter(e=>{let t=e.startedAt??e.createdAt;return t>=n.from&&t<=n.to});return{scheduleId:e,runCount:r.length,totalEstimatedCostUsd:r.reduce((e,t)=>{let n=t.estimatedCostUsd;return typeof n==`number`&&Number.isFinite(n)?e+n:e},0),eventCount:0}}function et({scheduleName:e,usage:t,onOpenUsage:n}){if(t.status===`loading`)return(0,q.jsxs)(`div`,{"aria-label":`Loading schedule usage`,className:`flex w-[136px] shrink-0 items-center justify-end gap-3`,children:[(0,q.jsx)(`span`,{className:`h-8 w-14 animate-pulse rounded bg-[var(--surface-muted)]`}),(0,q.jsx)(`span`,{className:`h-8 w-14 animate-pulse rounded bg-[var(--surface-muted)]`})]});let r=t.status===`error`,i=r?`--`:Y(t.summary.totalEstimatedCostUsd),a=r?`--`:Me(t.summary.runCount);return(0,q.jsxs)(`div`,{className:`flex w-[136px] shrink-0 items-center justify-end gap-3 text-right`,children:[n?(0,q.jsxs)(`button`,{type:`button`,onClick:n,"aria-label":`View usage for ${e}`,className:`min-w-[54px] cursor-pointer rounded px-1 py-0.5 text-right transition-colors hover:bg-[var(--surface-hover)]`,children:[(0,q.jsx)(`span`,{className:`block text-label-small-default text-[var(--content-tertiary)]`,children:`Cost`}),(0,q.jsx)(`span`,{className:`block text-body-small-default text-[var(--content-default)]`,children:i})]}):(0,q.jsxs)(`span`,{"aria-label":`Cost for ${e} in the last 7 days: ${i}`,className:`block min-w-[54px] px-1 py-0.5`,children:[(0,q.jsx)(`span`,{className:`block text-label-small-default text-[var(--content-tertiary)]`,children:`Cost`}),(0,q.jsx)(`span`,{className:`block text-body-small-default text-[var(--content-default)]`,children:i})]}),(0,q.jsxs)(`span`,{"aria-label":`Runs for ${e} in the last 7 days: ${a}`,className:`block min-w-[54px] px-1 py-0.5`,children:[(0,q.jsx)(`span`,{className:`block text-label-small-default text-[var(--content-tertiary)]`,children:`Runs`}),(0,q.jsx)(`span`,{className:`block text-body-small-default text-[var(--content-default)]`,children:a})]})]})}function tt({schedule:e,usage:t,onClick:n,onToggle:r,onOpenUsage:i}){return(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 py-3 first:pt-0 last:pb-0 [&+&]:border-t [&+&]:border-[var(--border-base)]`,children:[(0,q.jsxs)(`button`,{type:`button`,onClick:n,className:`min-w-0 flex-1 text-left`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(`span`,{className:`truncate text-body-medium-default text-[var(--content-default)]`,children:e.name}),(0,q.jsx)(u,{tone:X[e.mode]??`neutral`,children:e.mode})]}),(0,q.jsxs)(`div`,{className:`mt-0.5 flex items-center gap-3 text-body-small-default text-[var(--content-tertiary)]`,children:[(0,q.jsx)(`span`,{className:`truncate`,children:e.description}),e.lastRunAt&&(0,q.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1`,children:[(0,q.jsx)($,{status:e.lastStatus}),J(e.lastRunAt)]})]})]}),(0,q.jsxs)(`div`,{className:`flex shrink-0 items-center gap-3`,children:[(0,q.jsx)(et,{scheduleName:e.name,usage:t,onOpenUsage:i}),(0,q.jsx)(m,{checked:e.enabled,onChange:r,"aria-label":`Toggle ${e.name}`}),(0,q.jsx)(`button`,{type:`button`,onClick:n,"aria-label":`Open ${e.name}`,className:`flex h-7 w-7 cursor-pointer items-center justify-center rounded text-[var(--content-tertiary)] transition-colors hover:bg-[var(--surface-hover)]`,children:(0,q.jsx)(v,{className:`h-4 w-4`})})]})]})}function nt(e){let t=[],n=[];for(let r of e)r.isOneShot?n.push(r):t.push(r);return t.sort((e,t)=>e.enabled===t.enabled?(e.nextRunAt??1/0)-(t.nextRunAt??1/0):e.enabled?-1:1),n.sort((e,t)=>{let n=e.lastRunAt??e.nextRunAt??0;return(t.lastRunAt??t.nextRunAt??0)-n}),{recurring:t,oneTime:n}}function rt({kind:e,assistantId:t,name:n,subtitle:r,enabled:i,nextRunAt:a,lastRunAt:s,isRunning:l,onBack:d,onRunNow:f}){let{data:p,isLoading:m}=o({queryKey:[`system-task-runs`,t,e],queryFn:()=>e===`heartbeat`?ve(t):ye(t),staleTime:1e4});return(0,q.jsxs)(`div`,{className:`space-y-4`,children:[(0,q.jsxs)(`button`,{type:`button`,onClick:d,className:`flex items-center gap-1.5 text-body-medium-lighter text-[var(--content-secondary)] hover:text-[var(--content-default)] transition-colors`,children:[(0,q.jsx)(L,{className:`h-4 w-4`}),`Back to schedules`]}),(0,q.jsx)(R,{title:n,subtitle:r,accessory:(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(u,{tone:`neutral`,children:`system`}),(0,q.jsx)(c,{variant:`outlined`,size:`compact`,leftIcon:l?(0,q.jsx)(y,{className:`h-3.5 w-3.5 animate-spin`}):(0,q.jsx)(ue,{className:`h-3.5 w-3.5`}),onClick:f,disabled:l,children:l?`Running…`:`Run now`})]}),children:(0,q.jsxs)(`div`,{className:`space-y-2 text-body-medium-lighter`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,q.jsx)(`span`,{className:`text-[var(--content-secondary)]`,children:`Status`}),(0,q.jsx)(`span`,{children:i?`Enabled`:`Disabled`})]}),(0,q.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,q.jsx)(`span`,{className:`text-[var(--content-secondary)]`,children:`Next run`}),(0,q.jsx)(`span`,{children:J(a)})]}),(0,q.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,q.jsx)(`span`,{className:`text-[var(--content-secondary)]`,children:`Last run`}),(0,q.jsx)(`span`,{children:J(s)})]})]})}),(0,q.jsx)(Ge,{runs:p,isLoading:m})]})}function it({name:e,subtitle:t,enabled:n,nextRunAt:r,lastRunAt:i,usage:a,showToggle:o,onClick:s,onToggle:c}){return(0,q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 rounded-md px-2 py-3 transition-colors hover:bg-[var(--surface-hover)] [&+&]:border-t [&+&]:border-[var(--border-base)]`,children:[(0,q.jsxs)(`button`,{type:`button`,onClick:s,"aria-label":`Open ${e}`,className:`flex min-w-0 flex-1 cursor-pointer flex-wrap items-center gap-3 text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]`,children:[(0,q.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)(`span`,{className:`truncate text-body-medium-default text-[var(--content-default)]`,children:e}),(0,q.jsx)(u,{tone:`neutral`,children:`system`})]}),(0,q.jsx)(`div`,{className:`mt-0.5 text-body-small-default text-[var(--content-tertiary)]`,children:t}),(0,q.jsxs)(`div`,{className:`mt-0.5 flex flex-wrap items-center gap-x-3 gap-y-1 text-body-small-default text-[var(--content-tertiary)]`,children:[r?(0,q.jsxs)(`span`,{children:[`Next: `,J(r)]}):null,i?(0,q.jsxs)(`span`,{children:[`Last: `,J(i)]}):null]})]}),(0,q.jsxs)(`div`,{className:`flex shrink-0 flex-wrap items-center justify-end gap-3`,children:[(0,q.jsx)(et,{scheduleName:e,usage:a}),o?null:(0,q.jsx)(`span`,{className:`h-2 w-2 rounded-full`,style:{backgroundColor:n?`var(--system-positive-strong)`:`var(--content-disabled)`},"aria-label":n?`enabled`:`disabled`}),(0,q.jsx)(v,{className:`h-4 w-4 text-[var(--content-tertiary)]`})]})]}),o?(0,q.jsx)(m,{checked:n,onChange:c,"aria-label":`Toggle ${e}`}):null]})}function at({heartbeatConfig:e,consolidationConfig:t,heartbeatUsage:n,consolidationUsage:r,isLoading:i,hasError:a,onRetry:o,onSelectHeartbeat:s,onSelectConsolidation:c,showSystemTaskToggles:u,onToggleHeartbeat:d,onToggleConsolidation:f}){let p=e!=null,m=t?.available===!0;return!i&&!a&&!p&&!m?null:(0,q.jsx)(R,{title:`System`,subtitle:`Built-in jobs managed by the assistant runtime.`,children:i?(0,q.jsx)(`div`,{className:`flex items-center justify-center py-8`,children:(0,q.jsx)(y,{className:`h-5 w-5 animate-spin text-stone-400`})}):a&&!p&&!m?(0,q.jsxs)(l,{tone:`error`,children:[`Failed to load system jobs.`,` `,(0,q.jsx)(`button`,{type:`button`,onClick:o,className:`cursor-pointer underline hover:no-underline`,children:`Retry`})]}):(0,q.jsxs)(`div`,{children:[p?(0,q.jsx)(it,{name:`Heartbeat`,subtitle:ze(e),enabled:e.enabled,nextRunAt:e.nextRunAt,lastRunAt:e.lastRunAt,usage:n,showToggle:u,onClick:s,onToggle:d}):null,m?(0,q.jsx)(it,{name:`Consolidation`,subtitle:Be(t),enabled:t.enabled,nextRunAt:t.nextRunAt,lastRunAt:t.lastRunAt,usage:r,showToggle:u,onClick:c,onToggle:f}):null,a?(0,q.jsx)(`div`,{className:`pt-3 first:pt-0`,children:(0,q.jsxs)(l,{tone:`error`,children:[`Some system jobs failed to load.`,` `,(0,q.jsx)(`button`,{type:`button`,onClick:o,className:`cursor-pointer underline hover:no-underline`,children:`Retry`})]})}):null]})})}function ot(){let e=r(),n=a(),{scheduleId:s}=i(),u=fe(),d=Ve(oe.use.hasHydrated(),oe.use.systemScheduleToggles()),f=pe(),{data:p,isLoading:m,isError:h,refetch:_}=o({queryKey:ie(f),queryFn:()=>me(f),staleTime:1e4}),{data:v,isLoading:b,isError:x}=o(Ze(f,u,s==null)),{data:S,isLoading:C,isError:w,refetch:T}=o({queryKey:[`heartbeat-config`,f],queryFn:()=>be(f),staleTime:1e4}),{data:E,isLoading:ee,isError:te,refetch:D}=o({queryKey:[`consolidation-config`,f],queryFn:()=>Ce(f),staleTime:1e4}),{data:O,isLoading:k,isError:ne,refetch:A}=o({queryKey:[`system-task-runs-summary`,f,`heartbeat`,Q],queryFn:()=>ve(f,Q),enabled:S!=null,staleTime:1e4}),{data:re,isLoading:j,isError:M,refetch:N}=o({queryKey:[`system-task-runs-summary`,f,`consolidation`,Q],queryFn:()=>ye(f,Q),enabled:E?.available===!0,staleTime:1e4}),F=He(s),[ae,I]=(0,V.useState)(!1),[ce,le]=(0,V.useState)(!1),[ue,de]=(0,V.useState)(!1),z=(0,V.useMemo)(()=>s&&!F?p?.find(e=>e.id===s)??null:null,[p,s,F]),B=(0,V.useMemo)(()=>new Map((v??[]).map(e=>[e.scheduleId,e])),[v]),H=(0,V.useCallback)(e=>b?{status:`loading`}:x?{status:`error`}:{status:`ready`,summary:B.get(e)??Qe(e)},[x,b,B]),U=(0,V.useMemo)(()=>ke(u),[u]),he=(0,V.useMemo)(()=>k?{status:`loading`}:ne?{status:`error`}:{status:`ready`,summary:$e(Z.heartbeat,O,U)},[O,ne,k,U]),ge=(0,V.useMemo)(()=>j?{status:`loading`}:M?{status:`error`}:{status:`ready`,summary:$e(Z.consolidation,re,U)},[re,M,j,U]),W=(0,V.useCallback)(()=>{e(P.settings.schedules)},[e]),G=(0,V.useCallback)(t=>{e(P.settings.schedule(t))},[e]),K=(0,V.useCallback)(()=>{I(!1),_(),g.success(`Schedule created.`)},[_]),Ee=(0,V.useCallback)(async(e,n)=>{if(f)try{await _e(f,e,n),_()}catch(e){t(e,{context:`schedule_toggle`}),g.error(`Failed to toggle schedule.`)}},[f,_]),Oe=C||ee,J=w||te,Ae=S!=null||E?.available===!0,je=(0,V.useCallback)(()=>{T(),D(),A(),N()},[D,N,T,A]),Y=(0,V.useCallback)((e,t=!1)=>{if(!f)return;let r=()=>{n.invalidateQueries({queryKey:[`system-task-runs`,f,e]})};r(),t&&(setTimeout(r,1e3),setTimeout(r,5e3))},[f,n]),Me=(0,V.useCallback)(async()=>{if(f){le(!0);try{let e=await Se(f);T(),Y(`heartbeat`),A(),e.ran?g.success(`Heartbeat started.`):g.info(`Heartbeat skipped.`)}catch(e){t(e,{context:`heartbeat_run_now`}),g.error(`Failed to run heartbeat.`)}finally{le(!1)}}},[f,T,A,Y]),Ne=(0,V.useCallback)(async e=>{if(f)try{let t=await xe(f,{enabled:e});n.setQueryData([`heartbeat-config`,f],t),g.success(e?`Heartbeat enabled.`:`Heartbeat disabled.`)}catch(e){t(e,{context:`heartbeat_toggle`}),g.error(`Failed to toggle heartbeat.`)}},[f,n]),Pe=(0,V.useCallback)(async()=>{if(f){de(!0);try{let e=await Te(f);D(),Y(`consolidation`,e.ran),N(),e.ran?g.success(`Consolidation queued.`):g.info(`Consolidation already queued or running.`)}catch(e){t(e,{context:`consolidation_run_now`}),g.error(`Failed to run consolidation.`)}finally{de(!1)}}},[f,D,N,Y]),Fe=(0,V.useCallback)(async e=>{if(f)try{let t=await we(f,{enabled:e});n.setQueryData([`consolidation-config`,f],t),g.success(e?`Consolidation enabled.`:`Consolidation disabled.`)}catch(e){t(e,{context:`consolidation_toggle`}),g.error(`Failed to toggle consolidation.`)}},[f,n]),Ie=m,Le=F===`heartbeat`&&C||F===`consolidation`&&ee,Re=F===`heartbeat`&&w||F===`consolidation`&&te;if(F===`heartbeat`&&f&&S)return(0,q.jsx)(rt,{kind:`heartbeat`,assistantId:f,name:`Heartbeat`,subtitle:ze(S),enabled:S.enabled,nextRunAt:S.nextRunAt,lastRunAt:S.lastRunAt,isRunning:ce,onBack:W,onRunNow:Me},`heartbeat`);if(F===`consolidation`&&f&&E?.available===!0)return(0,q.jsx)(rt,{kind:`consolidation`,assistantId:f,name:`Consolidation`,subtitle:Be(E),enabled:E.enabled,nextRunAt:E.nextRunAt,lastRunAt:E.lastRunAt,isRunning:ue,onBack:W,onRunNow:Pe},`consolidation`);if(z&&f)return(0,q.jsx)(Xe,{schedule:z,assistantId:f,onBack:W,onDeleted:()=>{W(),_()},onUpdated:()=>void _()},z.id);if(Ie||Le)return(0,q.jsx)(`div`,{className:`w-full`,children:(0,q.jsx)(`div`,{className:`flex min-h-[400px] items-center justify-center`,children:(0,q.jsx)(y,{className:`h-6 w-6 animate-spin text-stone-400`})})});if(h&&!p)return(0,q.jsx)(`div`,{className:`w-full`,children:(0,q.jsxs)(l,{tone:`error`,children:[`Failed to load schedules.`,` `,(0,q.jsx)(`button`,{type:`button`,onClick:()=>void _(),className:`cursor-pointer underline hover:no-underline`,children:`Retry`})]})});if(Re)return(0,q.jsxs)(`div`,{className:`mx-auto max-w-[940px] space-y-3`,children:[(0,q.jsxs)(l,{tone:`error`,children:[`Failed to load`,` `,F===`heartbeat`?`heartbeat`:`consolidation`,` `,`schedule.`,` `,(0,q.jsx)(`button`,{type:`button`,onClick:()=>{F===`heartbeat`?T():D()},className:`cursor-pointer underline hover:no-underline`,children:`Retry`})]}),(0,q.jsxs)(c,{variant:`outlined`,onClick:W,children:[(0,q.jsx)(L,{className:`h-4 w-4`}),`Back to schedules`]})]});if(s!=null)return(0,q.jsx)(We,{onBack:W});if(!p||p.length===0&&!Ae&&!Oe&&!J)return(0,q.jsxs)(`div`,{className:`w-full`,children:[(0,q.jsx)(Ue,{onCreate:()=>I(!0)}),f?(0,q.jsx)(De,{isOpen:ae,assistantId:f,onClose:()=>I(!1),onCreated:K}):null]});let{recurring:X,oneTime:$}=nt(p);return(0,q.jsxs)(`div`,{className:`space-y-4`,children:[(0,q.jsx)(`div`,{className:`flex items-center justify-end`,children:(0,q.jsxs)(c,{variant:`primary`,onClick:()=>I(!0),children:[(0,q.jsx)(se,{className:`h-4 w-4`}),`New schedule`]})}),x?(0,q.jsx)(l,{tone:`warning`,className:`py-2 text-body-small-default`,children:`Schedule usage stats are unavailable right now.`}):null,X.length>0&&(0,q.jsx)(R,{title:`Schedules`,subtitle:`Recurring automations managed by your assistant.`,children:(0,q.jsx)(`div`,{children:X.map(t=>(0,q.jsx)(tt,{schedule:t,usage:H(t.id),onClick:()=>G(t.id),onToggle:e=>void Ee(t.id,e),onOpenUsage:()=>e(P.logs.usageForSchedule(t.id))},t.id))})}),(0,q.jsx)(at,{heartbeatConfig:S,consolidationConfig:E,heartbeatUsage:he,consolidationUsage:ge,isLoading:Oe,hasError:J,onRetry:je,onSelectHeartbeat:()=>G(Z.heartbeat),onSelectConsolidation:()=>G(Z.consolidation),showSystemTaskToggles:d,onToggleHeartbeat:Ne,onToggleConsolidation:Fe}),$.length>0&&(0,q.jsx)(R,{title:`One-time`,subtitle:`One-shot automations that run once at a scheduled time.`,children:(0,q.jsx)(`div`,{children:$.map(t=>(0,q.jsx)(tt,{schedule:t,usage:H(t.id),onClick:()=>G(t.id),onToggle:e=>void Ee(t.id,e),onOpenUsage:()=>e(P.logs.usageForSchedule(t.id))},t.id))})}),f?(0,q.jsx)(De,{isOpen:ae,assistantId:f,onClose:()=>I(!1),onCreated:K}):null]})}export{ot as SchedulesPage};
@@ -1 +1 @@
1
- import{t as e}from"./client.gen-BKAMS0D0.js";var t=t=>(t?.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/`,...t}),n=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/backups/`,...t}),r=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/backups/`,...t}),i=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/backups/{snapshot_name}/restore/`,...t}),a=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/doctor/history/`,...t}),o=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/doctor/history/{doctor_session_id}/`,...t}),s=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{name:`Authorization`,type:`apiKey`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/domains/`,...t}),c=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{name:`Authorization`,type:`apiKey`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/domains/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),l=t=>(t.client??e).delete({security:[{scheme:`bearer`,type:`http`},{name:`Authorization`,type:`apiKey`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/domains/{id}/`,...t}),u=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{name:`Authorization`,type:`apiKey`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/domains/{id}/verification-status/`,...t}),d=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{name:`Authorization`,type:`apiKey`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/email-addresses/`,...t}),f=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{name:`Authorization`,type:`apiKey`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/email-addresses/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),p=t=>(t.client??e).delete({security:[{scheme:`bearer`,type:`http`},{name:`Authorization`,type:`apiKey`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/email-addresses/{id}/`,...t}),m=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{name:`Authorization`,type:`apiKey`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/email-addresses/{id}/status/`,...t}),h=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{name:`Authorization`,type:`apiKey`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/emails/`,...t}),g=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/handle-available/`,...t}),_=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/maintenance-mode/enter/`,...t}),v=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/maintenance-mode/exit/`,...t}),y=t=>(t.client??e).post({security:[{name:`Authorization`,type:`apiKey`},{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/oauth/{provider}/start/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),b=t=>(t.client??e).get({security:[{name:`Authorization`,type:`apiKey`},{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/oauth/connections/`,...t}),x=t=>(t.client??e).post({security:[{name:`Authorization`,type:`apiKey`},{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/oauth/connections/{connection_id}/disconnect/`,...t}),S=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/release-channel/`,...t}),C=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/release-channel/preview/opt-in/`,...t}),w=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/release-channel/preview/opt-out/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),T=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/system-events/`,...t}),E=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/terminal/sessions/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),D=t=>(t.client??e).delete({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/terminal/sessions/{session_id}/`,...t}),O=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/terminal/sessions/{session_id}/input/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),k=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/terminal/sessions/{session_id}/resize/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),A=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/{id}/`,...t}),j=t=>(t.client??e).patch({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/{id}/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),M=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/{id}/connection-status/`,...t}),N=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/{id}/resize/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),P=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/{id}/restart/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),F=t=>(t.client??e).delete({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/{id}/retire/`,...t}),I=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/{id}/rollback/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),L=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/{id}/sleep-policy/`,...t}),R=t=>(t.client??e).patch({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/{id}/sleep-policy/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),z=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/{id}/upgrade/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),B=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/{id}/upgrade-policy/`,...t}),V=t=>(t.client??e).patch({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/{id}/upgrade-policy/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),H=t=>(t?.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/access-consent/`,...t}),ee=t=>(t?.client??e).patch({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/access-consent/`,...t,headers:{"Content-Type":`application/json`,...t?.headers}}),U=t=>(t?.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/active/`,...t}),W=t=>(t?.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/hatch/`,...t,headers:{"Content-Type":`application/json`,...t?.headers}}),G=t=>(t.client??e).post({security:[{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/auth/live-voice-token/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),K=t=>(t?.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/feature-flags/client-flag-values/`,...t}),q=t=>(t.client??e).post({security:[{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/feedback/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),J=t=>(t?.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/`,...t}),Y=t=>(t?.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/auto-top-up/`,...t}),X=t=>(t.client??e).put({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/auto-top-up/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),Z=t=>(t?.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/auto-top-up/disable/`,...t}),Q=t=>(t?.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/auto-top-up/remove-payment-method/`,...t}),$=t=>(t?.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/auto-top-up/setup-intent/`,...t}),te=t=>(t?.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/invoices/`,...t}),ne=t=>(t?.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/plans/`,...t}),re=t=>(t?.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/portal-session/`,...t}),ie=t=>(t?.client??e).get({security:[{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/subscription/`,...t}),ae=t=>(t.client??e).post({security:[{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/subscription/change-credit-tier/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),oe=t=>(t.client??e).post({security:[{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/subscription/change-machine-tier/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),se=t=>(t.client??e).post({security:[{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/subscription/change-storage-tier/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),ce=t=>(t?.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/subscription/onboarding/`,...t}),le=t=>(t?.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/subscription/onboarding/domain/`,...t,headers:{"Content-Type":`application/json`,...t?.headers}}),ue=t=>(t.client??e).post({security:[{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/subscription/upgrade/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),de=t=>(t?.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/summary/`,...t}),fe=t=>(t?.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/summary/`,...t}),pe=t=>(t?.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/top-ups/checkout-session/`,...t,headers:{"Content-Type":`application/json`,...t?.headers}}),me=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/usage/series/`,...t}),he=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/usage/totals/`,...t}),ge=t=>(t?.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/notifications/`,...t}),_e=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/notifications/{id}/acknowledge/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),ve=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/notifications/{id}/snooze/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),ye=t=>(t?.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/notifications/pause-rules/`,...t,headers:{"Content-Type":`application/json`,...t?.headers}}),be=t=>(t.client??e).delete({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/notifications/pause-rules/{rule_id}/`,...t}),xe=t=>(t?.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/referral-codes/me/`,...t}),Se=t=>(t?.client??e).get({security:[{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/releases/`,...t}),Ce=t=>(t?.client??e).post({security:[{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/user/deletion-request/`,...t});export{X as $,S as A,D as B,v as C,Ce as Ct,j as D,y as E,I as F,B as G,k as H,R as I,q as J,G as K,L,P as M,F as N,C as O,A as P,$ as Q,T as R,_ as S,Se as St,x as T,z as U,O as V,V as W,Q as X,Z as Y,Y as Z,m as _,ge as _t,i as a,se as at,W as b,ve as bt,a as c,ie as ct,l as d,de as dt,te as et,s as f,pe as ft,d as g,_e as gt,p as h,J as ht,r as i,oe as it,N as j,w as k,o as l,ue as lt,f as m,he as mt,H as n,re as nt,n as o,le as ot,u as p,me as pt,K as q,U as r,ae as rt,M as s,ce as st,ee as t,ne as tt,c as u,fe as ut,h as v,ye as vt,b as w,t as x,xe as xt,g as y,be as yt,E as z};
1
+ import{t as e}from"./client.gen-CsQeNtuq.js";var t=t=>(t?.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/`,...t}),n=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/backups/`,...t}),r=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/backups/`,...t}),i=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/backups/{snapshot_name}/restore/`,...t}),a=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/doctor/history/`,...t}),o=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/doctor/history/{doctor_session_id}/`,...t}),s=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{name:`Authorization`,type:`apiKey`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/domains/`,...t}),c=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{name:`Authorization`,type:`apiKey`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/domains/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),l=t=>(t.client??e).delete({security:[{scheme:`bearer`,type:`http`},{name:`Authorization`,type:`apiKey`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/domains/{id}/`,...t}),u=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{name:`Authorization`,type:`apiKey`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/domains/{id}/verification-status/`,...t}),d=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{name:`Authorization`,type:`apiKey`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/email-addresses/`,...t}),f=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{name:`Authorization`,type:`apiKey`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/email-addresses/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),p=t=>(t.client??e).delete({security:[{scheme:`bearer`,type:`http`},{name:`Authorization`,type:`apiKey`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/email-addresses/{id}/`,...t}),m=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{name:`Authorization`,type:`apiKey`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/email-addresses/{id}/status/`,...t}),h=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{name:`Authorization`,type:`apiKey`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/emails/`,...t}),g=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/handle-available/`,...t}),_=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/maintenance-mode/enter/`,...t}),v=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/maintenance-mode/exit/`,...t}),y=t=>(t.client??e).post({security:[{name:`Authorization`,type:`apiKey`},{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/oauth/{provider}/start/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),b=t=>(t.client??e).get({security:[{name:`Authorization`,type:`apiKey`},{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/oauth/connections/`,...t}),x=t=>(t.client??e).post({security:[{name:`Authorization`,type:`apiKey`},{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/oauth/connections/{connection_id}/disconnect/`,...t}),S=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/release-channel/`,...t}),C=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/release-channel/preview/opt-in/`,...t}),w=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/release-channel/preview/opt-out/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),T=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/system-events/`,...t}),E=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/terminal/sessions/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),D=t=>(t.client??e).delete({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/terminal/sessions/{session_id}/`,...t}),O=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/terminal/sessions/{session_id}/input/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),k=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/assistants/{assistant_id}/terminal/sessions/{session_id}/resize/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),A=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/{id}/`,...t}),j=t=>(t.client??e).patch({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/{id}/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),M=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/{id}/connection-status/`,...t}),N=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/{id}/resize/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),P=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/{id}/restart/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),F=t=>(t.client??e).delete({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/{id}/retire/`,...t}),I=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/{id}/rollback/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),L=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/{id}/sleep-policy/`,...t}),R=t=>(t.client??e).patch({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/{id}/sleep-policy/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),z=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/{id}/upgrade/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),B=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/{id}/upgrade-policy/`,...t}),V=t=>(t.client??e).patch({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/{id}/upgrade-policy/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),H=t=>(t?.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/access-consent/`,...t}),ee=t=>(t?.client??e).patch({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/access-consent/`,...t,headers:{"Content-Type":`application/json`,...t?.headers}}),U=t=>(t?.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/active/`,...t}),W=t=>(t?.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/assistants/hatch/`,...t,headers:{"Content-Type":`application/json`,...t?.headers}}),G=t=>(t.client??e).post({security:[{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/auth/live-voice-token/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),K=t=>(t?.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/feature-flags/client-flag-values/`,...t}),q=t=>(t.client??e).post({security:[{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/feedback/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),J=t=>(t?.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/`,...t}),Y=t=>(t?.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/auto-top-up/`,...t}),X=t=>(t.client??e).put({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/auto-top-up/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),Z=t=>(t?.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/auto-top-up/disable/`,...t}),Q=t=>(t?.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/auto-top-up/remove-payment-method/`,...t}),$=t=>(t?.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/auto-top-up/setup-intent/`,...t}),te=t=>(t?.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/invoices/`,...t}),ne=t=>(t?.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/plans/`,...t}),re=t=>(t?.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/portal-session/`,...t}),ie=t=>(t?.client??e).get({security:[{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/subscription/`,...t}),ae=t=>(t.client??e).post({security:[{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/subscription/change-credit-tier/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),oe=t=>(t.client??e).post({security:[{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/subscription/change-machine-tier/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),se=t=>(t.client??e).post({security:[{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/subscription/change-storage-tier/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),ce=t=>(t?.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/subscription/onboarding/`,...t}),le=t=>(t?.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/subscription/onboarding/domain/`,...t,headers:{"Content-Type":`application/json`,...t?.headers}}),ue=t=>(t.client??e).post({security:[{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/subscription/upgrade/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),de=t=>(t?.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/summary/`,...t}),fe=t=>(t?.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/summary/`,...t}),pe=t=>(t?.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/top-ups/checkout-session/`,...t,headers:{"Content-Type":`application/json`,...t?.headers}}),me=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/usage/series/`,...t}),he=t=>(t.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/billing/usage/totals/`,...t}),ge=t=>(t?.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/notifications/`,...t}),_e=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/notifications/{id}/acknowledge/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),ve=t=>(t.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/notifications/{id}/snooze/`,...t,headers:{"Content-Type":`application/json`,...t.headers}}),ye=t=>(t?.client??e).post({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/notifications/pause-rules/`,...t,headers:{"Content-Type":`application/json`,...t?.headers}}),be=t=>(t.client??e).delete({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/organizations/notifications/pause-rules/{rule_id}/`,...t}),xe=t=>(t?.client??e).get({security:[{scheme:`bearer`,type:`http`},{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/referral-codes/me/`,...t}),Se=t=>(t?.client??e).get({security:[{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`},{name:`Authorization`,type:`apiKey`}],url:`/v1/releases/`,...t}),Ce=t=>(t?.client??e).post({security:[{in:`cookie`,name:`sessionid`,type:`apiKey`},{name:`X-Session-Token`,type:`apiKey`}],url:`/v1/user/deletion-request/`,...t});export{X as $,S as A,D as B,v as C,Ce as Ct,j as D,y as E,I as F,B as G,k as H,R as I,q as J,G as K,L,P as M,F as N,C as O,A as P,$ as Q,T as R,_ as S,Se as St,x as T,z as U,O as V,V as W,Q as X,Z as Y,Y as Z,m as _,ge as _t,i as a,se as at,W as b,ve as bt,a as c,ie as ct,l as d,de as dt,te as et,s as f,pe as ft,d as g,_e as gt,p as h,J as ht,r as i,oe as it,N as j,w as k,o as l,ue as lt,f as m,he as mt,H as n,re as nt,n as o,le as ot,u as p,me as pt,K as q,U as r,ae as rt,M as s,ce as st,ee as t,ne as tt,c as u,fe as ut,h as v,ye as vt,b as w,t as x,xe as xt,g as y,be as yt,E as z};