@vellumai/web 0.10.12 → 0.11.0-staging.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (354) hide show
  1. package/dist/assets/{AnimatePresence-3WpfAWHe.js → AnimatePresence-DPfyu3ET.js} +1 -1
  2. package/dist/assets/{BundleConfirmPage-CDklssHh.js → BundleConfirmPage-CChUOtcg.js} +1 -1
  3. package/dist/assets/{a2a-invite-DUYZLVQb.js → a2a-invite-pyBtaaeG.js} +1 -1
  4. package/dist/assets/{about-page-CT70Pgvf.js → about-page-DGUK5p8j.js} +1 -1
  5. package/dist/assets/access-DS79PSR3.js +1 -0
  6. package/dist/assets/{account-page-D5cJIu1-.js → account-page-D3ERiewh.js} +1 -1
  7. package/dist/assets/{account-shell-C_IH8r44.js → account-shell-Dk4aC-Ls.js} +1 -1
  8. package/dist/assets/{acp-run-actions-CAjb0Wcm.js → acp-run-actions-BH8wuBAL.js} +1 -1
  9. package/dist/assets/{acp-run-detail-panel-DqzZdPiN.js → acp-run-detail-panel-dqVK6rPq.js} +1 -1
  10. package/dist/assets/{acp-run-store-C6n-XeY_.js → acp-run-store-B_eDLRwl.js} +1 -1
  11. package/dist/assets/{activity-steps-panel-BzHQOJsQ.js → activity-steps-panel-xxl2hu3E.js} +1 -1
  12. package/dist/assets/add-credential-modal-CY_--m8L.js +1 -0
  13. package/dist/assets/{add-credits-modal-CCEMf2_U.js → add-credits-modal-fT_gTTP5.js} +1 -1
  14. package/dist/assets/ai-page-B02NwVRu.js +1 -0
  15. package/dist/assets/animated-avatar-BcgncPkc.js +1 -0
  16. package/dist/assets/api-C3QSs67k.js +1 -0
  17. package/dist/assets/{api-XwdNiVE9.js → api-LG8zI3nK.js} +1 -1
  18. package/dist/assets/{api-key-screen-BXn2F-lQ.js → api-key-screen-CvBdN6Ae.js} +1 -1
  19. package/dist/assets/{app-card-Uowaj1kh.js → app-card-CAaFL1oB.js} +1 -1
  20. package/dist/assets/{archive-redirect-page-CpKvFqvX.js → archive-redirect-page-BH7h0Lk7.js} +1 -1
  21. package/dist/assets/{assistant-feature-flag-store-CLqMw4mK.js → assistant-feature-flag-store-CAdgpPiS.js} +1 -1
  22. package/dist/assets/{assistant-status-panel-DKnWIr7_.js → assistant-status-panel-BTnD-jhG.js} +1 -1
  23. package/dist/assets/auth-store-5qq59BAN.js +2 -0
  24. package/dist/assets/avatar-random-BMSYTcJK.js +1 -0
  25. package/dist/assets/{avatar-renderer-DK54o2kQ.js → avatar-renderer-ClUVcQmf.js} +1 -1
  26. package/dist/assets/{background-task-actions-CmYMPa2o.js → background-task-actions-DmP5s0oO.js} +1 -1
  27. package/dist/assets/{background-task-detail-panel-KDqjs7i2.js → background-task-detail-panel-BCYAElGc.js} +1 -1
  28. package/dist/assets/{background-task-store-DFS8MP5D.js → background-task-store-DMP8ByUq.js} +1 -1
  29. package/dist/assets/billing-page-B5j5TW_S.js +3 -0
  30. package/dist/assets/{billing-redirect-page-BRcj5q0u.js → billing-redirect-page-B1o1rsQZ.js} +1 -1
  31. package/dist/assets/{bookmarks-page-fFnFzh4F.js → bookmarks-page-D_Jr-a4Q.js} +1 -1
  32. package/dist/assets/{browser-CNL8hh8H.js → browser-CTZVDjOL.js} +2 -2
  33. package/dist/assets/build-state-m0LQ5Iis.js +1 -0
  34. package/dist/assets/channels-page-route-BYP9SOw5.js +9 -0
  35. package/dist/assets/chat-avatar-CvEA6z0H.js +1 -0
  36. package/dist/assets/chat-markdown-message-rxPKNeTx.js +2 -0
  37. package/dist/assets/{checkbox-BY0BDJjm.js → checkbox-CRmgkYah.js} +1 -1
  38. package/dist/assets/checkout-continuation-U3Pd2nxi.js +1 -0
  39. package/dist/assets/checkout-page-C5_9GbP-.js +1 -0
  40. package/dist/assets/checkout-return-target-DI6Hb-9L.js +1 -0
  41. package/dist/assets/client-feature-flag-store-CMncoan8.js +1 -0
  42. package/dist/assets/{client-identity-BS5mQsaQ.js → client-identity-DhkdvP5w.js} +1 -1
  43. package/dist/assets/{command-palette-CsRPcIM-.js → command-palette-BTaT__fo.js} +1 -1
  44. package/dist/assets/{command-palette-window-page-BzQ_oDaq.js → command-palette-window-page-gq0zowBe.js} +1 -1
  45. package/dist/assets/{community-page-mlhk4LsN.js → community-page-CsEKt9wX.js} +1 -1
  46. package/dist/assets/{connect-page-PuRyFup0.js → connect-page-B4aTS7Yj.js} +1 -1
  47. package/dist/assets/{consent-controls-BOFoWAYO.js → consent-controls-OcgxuxS0.js} +1 -1
  48. package/dist/assets/consent-hzYg-zbh.js +1 -0
  49. package/dist/assets/{contacts-gateway-C5OljhCC.js → contacts-gateway-B6OrAmU3.js} +1 -1
  50. package/dist/assets/{contacts-page-route-VBlklzVL.js → contacts-page-route-DNoCUXE7.js} +1 -1
  51. package/dist/assets/{conversation-cache-CqCkWHT6.js → conversation-cache-DKvwwWNo.js} +1 -1
  52. package/dist/assets/{conversation-list-fetchers-D84gJs6f.js → conversation-list-fetchers-DM-Y61u5.js} +1 -1
  53. package/dist/assets/conversation-navigation-DsN0hcpL.js +1 -0
  54. package/dist/assets/{conversation-queries-Ba_1sW5M.js → conversation-queries-CWvK6RLK.js} +1 -1
  55. package/dist/assets/{credential-entry-page-Bfrl1sD_.js → credential-entry-page-CHinHO85.js} +1 -1
  56. package/dist/assets/credentials-page-BsJFuOc9.js +1 -0
  57. package/dist/assets/{danger-zone-redirect-page-DKfrmf_o.js → danger-zone-redirect-page-SU45WI74.js} +1 -1
  58. package/dist/assets/debug-page-BziypDgA.js +4 -0
  59. package/dist/assets/{deploy-dialogs-BNMcZzII.js → deploy-dialogs-DZSd5o9b.js} +1 -1
  60. package/dist/assets/{deploy-store-CxnShfQj.js → deploy-store-D6snB1j5.js} +1 -1
  61. package/dist/assets/{detail-card-CwtjhGfi.js → detail-card-Du8OuE3q.js} +1 -1
  62. package/dist/assets/{detail-panel-stop-button-C1rystDS.js → detail-panel-stop-button-BNuh6N0s.js} +1 -1
  63. package/dist/assets/{detail-shell-DcNnOqM_.js → detail-shell-Cyqr5FXJ.js} +1 -1
  64. package/dist/assets/{developer-page-Bu7HBiPJ.js → developer-page-QMFEIyBS.js} +1 -1
  65. package/dist/assets/{devices-redirect-page-Cvt_H5ig.js → devices-redirect-page-B14wK98N.js} +1 -1
  66. package/dist/assets/{diagnostics-Dva51gYK.js → diagnostics-T_96Uyh5.js} +1 -1
  67. package/dist/assets/doctor-handoff-store-CYjL1S0n.js +1 -0
  68. package/dist/assets/document-viewer-container-B7TEDeV0.js +2 -0
  69. package/dist/assets/{document-viewer-page-kV6TCXu0.js → document-viewer-page-3Eq8L562.js} +1 -1
  70. package/dist/assets/effective-timezone-CmcoXrio.js +1 -0
  71. package/dist/assets/{emails-page-D9E3uXkG.js → emails-page-Wr4wPSYl.js} +1 -1
  72. package/dist/assets/{esm-BWFeAIOX.js → esm-BKewCp71.js} +2 -2
  73. package/dist/assets/{esm-DKdDWqsF.js → esm-Deuay4YU.js} +2 -2
  74. package/dist/assets/{esm-C6-ZMSya.js → esm-Dk6A-sQ0.js} +2 -2
  75. package/dist/assets/{esm-BQjZqfJZ.js → esm-IoT87yZe.js} +2 -2
  76. package/dist/assets/{esm-BTyZM-kf.js → esm-PYpy75OW.js} +2 -2
  77. package/dist/assets/esm-xItcektK.js +2 -0
  78. package/dist/assets/{eye-bbox-DXmmg9ML.js → eye-bbox-C_V87iLg.js} +1 -1
  79. package/dist/assets/feature-flag-catalog-I9-eJQP_.js +1 -0
  80. package/dist/assets/file-markdown-DaflJFk7.js +2 -0
  81. package/dist/assets/{first-run-scope-BoT9LMYw.js → first-run-scope-CL5YbC3b.js} +1 -1
  82. package/dist/assets/{funnel-events-CK938pi2.js → funnel-events-n2IVlwTo.js} +1 -1
  83. package/dist/assets/general-page-lbkufqHg.js +1 -0
  84. package/dist/assets/{get-memory-stats-ERcqnC0Q.js → get-memory-stats-BCYSpBF6.js} +1 -1
  85. package/dist/assets/{haptics-D9eNTUq-.js → haptics-DvWjk9Fg.js} +2 -2
  86. package/dist/assets/hatching-screen-D81diZoa.js +1 -0
  87. package/dist/assets/{home-page-route-BOCisuYY.js → home-page-route-CHe8eoLz.js} +1 -1
  88. package/dist/assets/{hosting-screen-6xIW6q02.js → hosting-screen-D9atAksQ.js} +1 -1
  89. package/dist/assets/{identity-page-route-qWwRSRld.js → identity-page-route-CK3YsXCN.js} +1 -1
  90. package/dist/assets/index-0f48hi7h.js +11 -0
  91. package/dist/assets/index-UKZ4bO6i.css +2 -0
  92. package/dist/assets/{ingest-DGkxw0Go.js → ingest-BizI657K.js} +1 -1
  93. package/dist/assets/{inspect-page-CRBfQ5WU.js → inspect-page-COwvbHtX.js} +3 -3
  94. package/dist/assets/{installed-plugins-query-C29LGAEV.js → installed-plugins-query-Cgek0q7G.js} +1 -1
  95. package/dist/assets/{integration-icon-Dvjn3ytY.js → integration-icon-dv-9Zzx3.js} +1 -1
  96. package/dist/assets/integrations-page-CJOBwxXp.js +1 -0
  97. package/dist/assets/{intelligence-layout-DP9zklR6.js → intelligence-layout-MNoGhi-l.js} +1 -1
  98. package/dist/assets/{invalidate-plugin-queries-DamxiwYv.js → invalidate-plugin-queries-C3NTXkCX.js} +1 -1
  99. package/dist/assets/{keyboard-shortcuts-redirect-page--bCvhp62.js → keyboard-shortcuts-redirect-page-CBI_mZIL.js} +1 -1
  100. package/dist/assets/{latest-assistant-text-D5WR-o6J.js → latest-assistant-text-DOepZ_Io.js} +2 -2
  101. package/dist/assets/{library-detail-page-pviljaQw.js → library-detail-page-DVwI94NZ.js} +1 -1
  102. package/dist/assets/{library-page-CYYuLywk.js → library-page-CNA794WY.js} +1 -1
  103. package/dist/assets/local-mode-BTovbt13.js +39 -0
  104. package/dist/assets/{local-runtime-upgrade-BggVMXfW.js → local-runtime-upgrade-Bqn3d7Q7.js} +1 -1
  105. package/dist/assets/login-flow-CD9tyuFG.js +1 -0
  106. package/dist/assets/{login-page-DdHXGGAt.js → login-page-BNStrcnU.js} +1 -1
  107. package/dist/assets/{logout-page-DjihP6Qk.js → logout-page-CpFeuLA_.js} +1 -1
  108. package/dist/assets/{logs-layout-C84-h0Hn.js → logs-layout-BUiPeZ4I.js} +1 -1
  109. package/dist/assets/{machine-sizes-DAflIPTM.js → machine-sizes-DO8duvpy.js} +1 -1
  110. package/dist/assets/{memory-page-route-dGWTWCWF.js → memory-page-route-C0cBV7HD.js} +1 -1
  111. package/dist/assets/{memory-router-playground-page-CjUiz_bH.js → memory-router-playground-page-D4UIq8mw.js} +1 -1
  112. package/dist/assets/{messages-Dl5_cjD9.js → messages-CFcAW4iz.js} +2 -2
  113. package/dist/assets/{metric-card-CkAD9RpC.js → metric-card-05a5slPx.js} +1 -1
  114. package/dist/assets/{mobile-sidebar-drawer-CbJ5JfXT.js → mobile-sidebar-drawer-DtKU2vlu.js} +1 -1
  115. package/dist/assets/native-anchor-CeekjwVy.js +1 -0
  116. package/dist/assets/native-biometric-BAMIyaSS.js +6 -0
  117. package/dist/assets/{native-file-B6_oAU2Q.js → native-file-ySSv1sQ7.js} +2 -2
  118. package/dist/assets/navigation-resolver-DPJxzx0h.js +1 -0
  119. package/dist/assets/{not-found-DV3iLBwm.js → not-found-OqaWNmdx.js} +1 -1
  120. package/dist/assets/{notifications-page-B9vnqyB1.js → notifications-page-ClfcJeLf.js} +1 -1
  121. package/dist/assets/{oauth-complete-page-BSxiDbQm.js → oauth-complete-page-rVmA2Cl8.js} +1 -1
  122. package/dist/assets/{oauth-connection-utils-DbcihBL8.js → oauth-connection-utils-CWPUW4MK.js} +1 -1
  123. package/dist/assets/{oauth-popup-complete-page-CyYbqLoK.js → oauth-popup-complete-page-DBsOvLES.js} +1 -1
  124. package/dist/assets/{onboarding-layout-Dd5fPfE7.js → onboarding-layout-DLs1hfp_.js} +1 -1
  125. package/dist/assets/onboarding-store-bZ2qYISk.js +1 -0
  126. package/dist/assets/open-workspace-file-DtK3a84K.js +2 -0
  127. package/dist/assets/{page-empty-state-BA3_YQN2.js → page-empty-state-DT-tC1u6.js} +1 -1
  128. package/dist/assets/{page-shell-_QxBKTK3.js → page-shell-C7SUgga9.js} +1 -1
  129. package/dist/assets/{pairing-page-DPfIgf3F.js → pairing-page-ZkFipOSH.js} +1 -1
  130. package/dist/assets/{password-reset-page-D55bGMVy.js → password-reset-page-iASQZawH.js} +1 -1
  131. package/dist/assets/{personality-page-fJJd-i4s.js → personality-page-BJpW3UXD.js} +1 -1
  132. package/dist/assets/plans-page-BDKqdYNM.js +1 -0
  133. package/dist/assets/{platform-detection-CMiRPRCq.js → platform-detection-XEAAu4c-.js} +1 -1
  134. package/dist/assets/{platform-login-notice-BG9TFAJa.js → platform-login-notice-CdYiKsE8.js} +1 -1
  135. package/dist/assets/{platform-loopback-page-DunGLusR.js → platform-loopback-page-D0gXCm2S.js} +1 -1
  136. package/dist/assets/{plugin-detail-page-BngHrN8T.js → plugin-detail-page-Bx2wzKEf.js} +1 -1
  137. package/dist/assets/{plugins-page-DD0t1_pE.js → plugins-page-B2zQ2iGh.js} +1 -1
  138. package/dist/assets/{prefs-BZnS5vR_.js → prefs-bw85lYLp.js} +1 -1
  139. package/dist/assets/{privacy-page-nZvfh3dh.js → privacy-page-B0QN4qZO.js} +1 -1
  140. package/dist/assets/privacy-screen-vp4uUpm6.js +1 -0
  141. package/dist/assets/{provider-callback-page-BwANEd-K.js → provider-callback-page-BH6DES7c.js} +1 -1
  142. package/dist/assets/{provider-key-B3R8SlMJ.js → provider-key-D2Nsf9zh.js} +1 -1
  143. package/dist/assets/{provider-signup-page-Cz2DP-jP.js → provider-signup-page-BAPcG_iJ.js} +1 -1
  144. package/dist/assets/provisioning-targets-BTjyR9nk.js +1 -0
  145. package/dist/assets/{quick-input-page-CF2MJnCE.js → quick-input-page-Dq-0BGrJ.js} +1 -1
  146. package/dist/assets/{react-query.gen-r3I6j8-1.js → react-query.gen-C5c1Acuq.js} +1 -1
  147. package/dist/assets/{remote-gateway-session-BHjZ9gQ6.js → remote-gateway-session-yRYdsfDx.js} +1 -1
  148. package/dist/assets/{research-mock-page-DnbQpZcp.js → research-mock-page-BJEpxdMv.js} +1 -1
  149. package/dist/assets/research-onboarding-route-CFL3q__m.js +50 -0
  150. package/dist/assets/{research-results-view-CxhTn2J7.js → research-results-view-C4sIw2gK.js} +1 -1
  151. package/dist/assets/{resolved-assistants-store-C-PdxK8f.js → resolved-assistants-store-Dw5UuGyB.js} +1 -1
  152. package/dist/assets/retire-confirm-dialog-CsSY2-T8.js +1 -0
  153. package/dist/assets/review-terms-screen-BhyRQBjl.js +1 -0
  154. package/dist/assets/{risk-C_bbPQPd.js → risk-CdT92Vqr.js} +2 -2
  155. package/dist/assets/routes-CaP5Tqj7.js +23 -0
  156. package/dist/assets/routes-D9sNqB_o.js +1 -0
  157. package/dist/assets/{runtime-upgrade-banner-DQI-l3Yc.js → runtime-upgrade-banner-DPqzKtZU.js} +2 -2
  158. package/dist/assets/{schedules-DF5cTXBf.js → schedules-6hzhR_C_.js} +1 -1
  159. package/dist/assets/schedules-page-DVnUeaoB.js +1 -0
  160. package/dist/assets/{sdk.gen-BVAVE6A_.js → sdk.gen-BHZ0fJla.js} +1 -1
  161. package/dist/assets/{security-redirect-page-BEohiPDW.js → security-redirect-page-4DKqyPsf.js} +1 -1
  162. package/dist/assets/{select-assistant-screen-C2q8wO2f.js → select-assistant-screen-CVV3iqMy.js} +1 -1
  163. package/dist/assets/{settings-divider-CXIrJieH.js → settings-divider-Ro7lPCkV.js} +1 -1
  164. package/dist/assets/settings-layout-B_4PKJr9.js +1 -0
  165. package/dist/assets/settings-navigation-CSG7jiyJ.js +1 -0
  166. package/dist/assets/{share-feedback-modal-B05-nKgu.js → share-feedback-modal-BoWCg4KH.js} +1 -1
  167. package/dist/assets/{sidebar-tree-ByF78JHW.js → sidebar-tree-C_PPNHe5.js} +1 -1
  168. package/dist/assets/{signup-page-CGauGszD.js → signup-page-D0S_8XYw.js} +1 -1
  169. package/dist/assets/{signup-shell-Bw6r9tWP.js → signup-shell-CMsBZ8vG.js} +1 -1
  170. package/dist/assets/{site-favicon-CCyX9r-Z.js → site-favicon-BB1pYWLF.js} +1 -1
  171. package/dist/assets/skill-detail-page-CTobyK6L.js +1 -0
  172. package/dist/assets/{skill-detail-panel-crqCBZbU.js → skill-detail-panel-CNzionF7.js} +1 -1
  173. package/dist/assets/{skills-C1CAcW7T.js → skills-Cum1XWT2.js} +1 -1
  174. package/dist/assets/{skills-page-BikP-AR7.js → skills-page-DZVxAbua.js} +1 -1
  175. package/dist/assets/slack-setup-wizard-DK2F8LXc.js +1 -0
  176. package/dist/assets/{sound-manager-xEbUgFv-.js → sound-manager-Bx-OcMAz.js} +1 -1
  177. package/dist/assets/{sounds-page-9_otQ97S.js → sounds-page-C45-RF4i.js} +1 -1
  178. package/dist/assets/{src-D89CNeuT.js → src-te3YTBG-.js} +4 -4
  179. package/dist/assets/{start-screen-DSF3melT.js → start-screen-CkJiCl9b.js} +1 -1
  180. package/dist/assets/{subagent-detail-panel-q0g4JWAX.js → subagent-detail-panel-DyyMdaNO.js} +1 -1
  181. package/dist/assets/subagent-store-MDi6lBXs.js +3 -0
  182. package/dist/assets/{superpowers-page-UgdWFWsF.js → superpowers-page-CaLzK5D-.js} +1 -1
  183. package/dist/assets/{system-events-page-Bw94HLwx.js → system-events-page-DXAU01ZO.js} +1 -1
  184. package/dist/assets/{system-events-redirect-page-BGZQC8-K.js → system-events-redirect-page-Bm9bipNo.js} +1 -1
  185. package/dist/assets/{theme-stage-page-bEZxHTyN.js → theme-stage-page-BDTCmutO.js} +1 -1
  186. package/dist/assets/{threshold-presets-BO8En2q0.js → threshold-presets-BdTTHCnm.js} +1 -1
  187. package/dist/assets/{tiptap-document-editor-CyY1HRzV.js → tiptap-document-editor-CHn2wCDv.js} +1 -1
  188. package/dist/assets/{tool-detail-panel-DFMOphDJ.js → tool-detail-panel-DFrWEWKG.js} +1 -1
  189. package/dist/assets/{transcript-message-body-shared-nWAkSzar.js → transcript-message-body-shared-D9_d2c2X.js} +1 -1
  190. package/dist/assets/{trust-rules-api-C0-hkXT2.js → trust-rules-api-B5lfygCA.js} +1 -1
  191. package/dist/assets/{upgrade-cancel-page-DwxI6NLL.js → upgrade-cancel-page-eiJEAvFz.js} +1 -1
  192. package/dist/assets/{upgrade-success-page-SO92J-Rf.js → upgrade-success-page-Cb1Gl4MM.js} +1 -1
  193. package/dist/assets/{usage-redirect-page-BJBkecYr.js → usage-redirect-page-BOfJ7uot.js} +1 -1
  194. package/dist/assets/{use-active-assistant-id-Cjbsk2Q3.js → use-active-assistant-id-CldxA_-M.js} +1 -1
  195. package/dist/assets/{use-app-theme-Q42fO5Nz.js → use-app-theme-Dg8A6vPA.js} +1 -1
  196. package/dist/assets/{use-assistant-avatar-DSu2_Mzi.js → use-assistant-avatar-bwLHcMz4.js} +1 -1
  197. package/dist/assets/{use-assistant-capability-gxe56K48.js → use-assistant-capability-CDS7GbSO.js} +1 -1
  198. package/dist/assets/{use-assistant-identity-details-CpHkzjrI.js → use-assistant-identity-details-9JRWxXTQ.js} +1 -1
  199. package/dist/assets/{use-avatar-accent-var-PV9tsBJj.js → use-avatar-accent-var-vpakP1ce.js} +1 -1
  200. package/dist/assets/{use-bookmarks-BbJtKyHe.js → use-bookmarks-CK-nOiT-.js} +1 -1
  201. package/dist/assets/{use-bundled-avatar-components-Gp_YaD6o.js → use-bundled-avatar-components-Bbs4vCnX.js} +2 -2
  202. package/dist/assets/use-checkout-dismiss-refresh-CqGR_OsB.js +1 -0
  203. package/dist/assets/use-command-palette-sections-CkpUaAKs.js +1 -0
  204. package/dist/assets/{use-edge-swipe-DVeTYbmY.js → use-edge-swipe-Wm9pU2HX.js} +1 -1
  205. package/dist/assets/{use-edge-swipe-back-DDq-N20h.js → use-edge-swipe-back-BcSHNCwS.js} +1 -1
  206. package/dist/assets/{use-edit-app-DfFIonqZ.js → use-edit-app-B_Nequzs.js} +1 -1
  207. package/dist/assets/{use-effective-timezone-LqzBqHBy.js → use-effective-timezone-Dqs8OaXJ.js} +1 -1
  208. package/dist/assets/use-invite-link-dialog-CPPOduk8.js +1 -0
  209. package/dist/assets/{use-ios-app-nudge-BO8jWfr0.js → use-ios-app-nudge-B-ojl-b1.js} +1 -1
  210. package/dist/assets/use-is-org-ready-C5xlYywh.js +1 -0
  211. package/dist/assets/use-onboarding-login-DI5gvqEG.js +1 -0
  212. package/dist/assets/use-platform-assistant-id-DOsSt6k1.js +1 -0
  213. package/dist/assets/use-platform-gate-C65D14xY.js +1 -0
  214. package/dist/assets/{use-reduced-motion-Se97jRQ-.js → use-reduced-motion-W1fCe3vS.js} +1 -1
  215. package/dist/assets/{use-save-twilio-credentials-CUQ6gdIj.js → use-save-twilio-credentials-c9xG9RPK.js} +1 -1
  216. package/dist/assets/{use-skill-actions-DgK7Nmt1.js → use-skill-actions-BAAx1Eia.js} +1 -1
  217. package/dist/assets/{use-skill-detail-files-_v4zUF6S.js → use-skill-detail-files-BvOKvY0-.js} +1 -1
  218. package/dist/assets/use-sticky-profiles-CdWX0mgI.js +1 -0
  219. package/dist/assets/{use-subagent-card-data-YbAN73Fw.js → use-subagent-card-data-DHuNtSy9.js} +1 -1
  220. package/dist/assets/use-supports-credentials-settings-BbfghcWq.js +1 -0
  221. package/dist/assets/{use-swipe-engine-DRvffOuu.js → use-swipe-engine-6PcZZMVD.js} +1 -1
  222. package/dist/assets/{utils-BtC1KiH4.js → utils-B0rBxtYP.js} +1 -1
  223. package/dist/assets/{viewer-store-BDpZVbcr.js → viewer-store-DLk-jp8U.js} +1 -1
  224. package/dist/assets/{voice-list-DJeZeHuA.js → voice-list-CW8mzaHU.js} +1 -1
  225. package/dist/assets/{voice-page-DQcyxaPl.js → voice-page-0zsCIOdT.js} +1 -1
  226. package/dist/assets/{voice-picker-modal-BXMvQihh.js → voice-picker-modal-PdsZwrsV.js} +1 -1
  227. package/dist/assets/{weather-forecast-display-D2sn4QD4.js → weather-forecast-display-BAAnrNdd.js} +1 -1
  228. package/dist/assets/{web-Bj8XUknF.js → web-B3Q8ntoM.js} +1 -1
  229. package/dist/assets/{web-BE7l06mM.js → web-BlvxItuO.js} +1 -1
  230. package/dist/assets/{welcome-screen-n-cGiojh.js → welcome-screen-DwOAZpZS.js} +1 -1
  231. package/dist/assets/{workflow-detail-panel-Cq3AwWXE.js → workflow-detail-panel-DGL2BZSr.js} +1 -1
  232. package/dist/assets/{workflow-store-QV5aMjTt.js → workflow-store-lM7yKbUo.js} +1 -1
  233. package/dist/assets/workspace-page-D4NvhCv1.js +1 -0
  234. package/dist/assets/workspace-tree-query-B1A-efgV.js +1 -0
  235. package/dist/index.html +144 -141
  236. package/package.json +1 -1
  237. package/dist/assets/access-D3fUSyFH.js +0 -1
  238. package/dist/assets/ai-page-BznkOakE.js +0 -1
  239. package/dist/assets/animated-avatar-DzfEDnTh.js +0 -1
  240. package/dist/assets/api-CJFoPWHm.js +0 -1
  241. package/dist/assets/auth-store-D9BqFncz.js +0 -2
  242. package/dist/assets/billing-page-Cc5fHBn2.js +0 -3
  243. package/dist/assets/build-state-WR9nlRgM.js +0 -1
  244. package/dist/assets/channels-page-route-wxREzs6W.js +0 -9
  245. package/dist/assets/chat-avatar-DIDq1Jt5.js +0 -1
  246. package/dist/assets/chat-markdown-message-ERK48E1Z.js +0 -2
  247. package/dist/assets/client-feature-flag-store-oTfL8Oiz.js +0 -1
  248. package/dist/assets/consent-DbD2Hcbf.js +0 -1
  249. package/dist/assets/conversation-navigation-Wm7_pLFs.js +0 -1
  250. package/dist/assets/credentials-page-B-AJyMvk.js +0 -1
  251. package/dist/assets/debug-page-DWEIExMH.js +0 -4
  252. package/dist/assets/document-viewer-container-Cl4jDmfx.js +0 -2
  253. package/dist/assets/effective-timezone-qiooajmO.js +0 -1
  254. package/dist/assets/esm-CDPcGg-B.js +0 -2
  255. package/dist/assets/feature-flag-catalog-BAyJlRMY.js +0 -1
  256. package/dist/assets/file-Ddp9Dqgl.js +0 -1
  257. package/dist/assets/file-markdown-CLmQTpqL.js +0 -2
  258. package/dist/assets/general-page-DpKVqj5t.js +0 -1
  259. package/dist/assets/hatching-screen-d3SWqFKY.js +0 -1
  260. package/dist/assets/index-B0l9Wjpj.css +0 -2
  261. package/dist/assets/index-BOC87TAq.js +0 -11
  262. package/dist/assets/integrations-page-D5KWY6v-.js +0 -1
  263. package/dist/assets/local-mode-Ckii2tmN.js +0 -39
  264. package/dist/assets/login-flow-BCNBNLzu.js +0 -1
  265. package/dist/assets/native-anchor-CVNubOIm.js +0 -1
  266. package/dist/assets/native-biometric-CntdlaL-.js +0 -6
  267. package/dist/assets/onboarding-store-DutUn1E3.js +0 -1
  268. package/dist/assets/open-workspace-file-CpveqBim.js +0 -2
  269. package/dist/assets/plans-page-C-JyEPT_.js +0 -1
  270. package/dist/assets/privacy-screen-D2aDT6E6.js +0 -1
  271. package/dist/assets/research-onboarding-route-yg2iKw6i.js +0 -50
  272. package/dist/assets/retire-confirm-dialog--eF_pXhA.js +0 -1
  273. package/dist/assets/review-terms-screen-Dpk-gyJE.js +0 -1
  274. package/dist/assets/routes-BBFM42ft.js +0 -23
  275. package/dist/assets/routes-vE-2hncW.js +0 -1
  276. package/dist/assets/schedules-page-Dgu-znOf.js +0 -1
  277. package/dist/assets/settings-layout-b7iBWIT-.js +0 -1
  278. package/dist/assets/settings-navigation-BGdjm0Ki.js +0 -1
  279. package/dist/assets/skill-detail-page-GlV5JRzQ.js +0 -1
  280. package/dist/assets/slack-setup-wizard-DKj1_XdA.js +0 -1
  281. package/dist/assets/stream-watchdog-BafbDdX9.js +0 -1
  282. package/dist/assets/subagent-store-D-GPthdC.js +0 -3
  283. package/dist/assets/use-checkout-dismiss-refresh-kdxxDNpF.js +0 -1
  284. package/dist/assets/use-command-palette-sections-BWjxkwKB.js +0 -1
  285. package/dist/assets/use-invite-link-dialog-DX58-LWY.js +0 -1
  286. package/dist/assets/use-is-org-ready-X_98Cnx9.js +0 -1
  287. package/dist/assets/use-onboarding-login-B8rpbSEh.js +0 -1
  288. package/dist/assets/use-platform-gate-Dry0Nv4f.js +0 -1
  289. package/dist/assets/use-sticky-profiles-B0zVD3uk.js +0 -1
  290. package/dist/assets/workspace-page-CL9z2Jrs.js +0 -1
  291. /package/dist/assets/{app-info-qQex8Ndg.js → app-info-DefDjPEl.js} +0 -0
  292. /package/dist/assets/{app-types-CBg2__YH.js → app-types-DSkgEmV3.js} +0 -0
  293. /package/dist/assets/{apple-logo-poQac1tY.js → apple-logo--8ZT6Umn.js} +0 -0
  294. /package/dist/assets/{avatar-bundled-components-CecbESCk.js → avatar-bundled-components-DPqbVXi9.js} +0 -0
  295. /package/dist/assets/{avatar-subagent-C9WTTUjI.js → avatar-subagent-CRA2B82x.js} +0 -0
  296. /package/dist/assets/{avatar-svg-compositor-FtVPqzlC.js → avatar-svg-compositor-Dl-ckXRE.js} +0 -0
  297. /package/dist/assets/{avatar-tone-CMoWR2JX.js → avatar-tone-BKwvoDSj.js} +0 -0
  298. /package/dist/assets/{browser-timezone-C_0jBUid.js → browser-timezone-CGwaX5Uv.js} +0 -0
  299. /package/dist/assets/{build.umd-59c0EvgO.js → build.umd-Bixyt_xE.js} +0 -0
  300. /package/dist/assets/{by-tool-use-id-index-aoRP6d51.js → by-tool-use-id-index-M50wYE1f.js} +0 -0
  301. /package/dist/assets/{chat-BrL0k2UY.js → chat-CDFCY8f0.js} +0 -0
  302. /package/dist/assets/{chat-layout-slots-store-C2IFeZFr.js → chat-layout-slots-store-BJfYGnd7.js} +0 -0
  303. /package/dist/assets/{conversation-selection-3EKkKt0G.js → conversation-selection-oJy8Oht3.js} +0 -0
  304. /package/dist/assets/{conversation-store-bshB7nDP.js → conversation-store-C--wWMNW.js} +0 -0
  305. /package/dist/assets/{definitions-PikNVFdS.js → definitions-D_AmTPWg.js} +0 -0
  306. /package/dist/assets/{definitions-OhJf_HMS.js → definitions-JF3PcEff.js} +0 -0
  307. /package/dist/assets/{dictation-overlay-page-zpoNqudq.js → dictation-overlay-page-DtgaXzdF.js} +0 -0
  308. /package/dist/assets/{edge-swipe-arbiter-store-DyemvsR-.js → edge-swipe-arbiter-store-CQnDi2yf.js} +0 -0
  309. /package/dist/assets/{edit-chat-session-yPtopwB6.js → edit-chat-session-D37Qx6ol.js} +0 -0
  310. /package/dist/assets/{emoji-catalog-data-COLzb2Wj.js → emoji-catalog-data-BCc1YNMR.js} +0 -0
  311. /package/dist/assets/{environment-store-BFVmN-OW.js → environment-store-Bft0lpgv.js} +0 -0
  312. /package/dist/assets/{esm-DEY-lP80.js → esm-DNvorKcw.js} +0 -0
  313. /package/dist/assets/{external-urls-BYwuIdYk.js → external-urls-_vjsdj2L.js} +0 -0
  314. /package/dist/assets/{file-editor-DpNdd7HZ.js → file-editor-phorJEVv.js} +0 -0
  315. /package/dist/assets/{format-date-RZ9mCDCy.js → format-date-BGnM4mqL.js} +0 -0
  316. /package/dist/assets/{format-file-size-CQaPE33p.js → format-file-size-BgMTiWPt.js} +0 -0
  317. /package/dist/assets/{hard-navigate-DZlpL1No.js → hard-navigate-DyUrcxe0.js} +0 -0
  318. /package/dist/assets/{link-click-BoSQACXo.js → link-click-DLYgWZdo.js} +0 -0
  319. /package/dist/assets/{misc-DckBb5zz.js → misc-CuYswARt.js} +0 -0
  320. /package/dist/assets/{mutation-error-CwYvaYnb.js → mutation-error-DEknRDAQ.js} +0 -0
  321. /package/dist/assets/{native-deep-link-PvbVHiPM.js → native-deep-link-DCBJ-Rw0.js} +0 -0
  322. /package/dist/assets/{oauth-popup-DZEqljdC.js → oauth-popup-OhSYYlQF.js} +0 -0
  323. /package/dist/assets/{onboarding-step-layout-CURfuoh4.js → onboarding-step-layout-D9rghAjS.js} +0 -0
  324. /package/dist/assets/{optimistic-lifecycle-C2a6IJ7E.js → optimistic-lifecycle-BINTsVFx.js} +0 -0
  325. /package/dist/assets/{pdf-IQXtc7_x.js → pdf-BlwLcQAc.js} +0 -0
  326. /package/dist/assets/{plugin-attribution-DCFEMRUF.js → plugin-attribution-DrwveSW_.js} +0 -0
  327. /package/dist/assets/{plugins-surface-D4i2vqBz.js → plugins-surface-B43Op43l.js} +0 -0
  328. /package/dist/assets/{pointer-RLpjGG7A.js → pointer-BbPfN86L.js} +0 -0
  329. /package/dist/assets/{prechat-DIuViPZk.js → prechat-CeL4a_1i.js} +0 -0
  330. /package/dist/assets/{profile-metadata-h4CTeMKT.js → profile-metadata-BhqRdqUJ.js} +0 -0
  331. /package/dist/assets/{proxy-RtD8704m.js → proxy-D7UPVac3.js} +0 -0
  332. /package/dist/assets/{public-asset-CbDDcomC.js → public-asset-BBVUuTT_.js} +0 -0
  333. /package/dist/assets/{react-query.gen-Mwd5l-vZ.js → react-query.gen-BC3STDmV.js} +0 -0
  334. /package/dist/assets/{research-facts-UIXXE8D6.js → research-facts-B7Ev1zv0.js} +0 -0
  335. /package/dist/assets/{research-onboarding-persistence-CceFfAqE.js → research-onboarding-persistence-51lJoYJ2.js} +0 -0
  336. /package/dist/assets/{sandbox-bridge-DgDrAWv3.js → sandbox-bridge-BxW8HZq_.js} +0 -0
  337. /package/dist/assets/{sdk.gen-DPKrJeho.js → sdk.gen-B5ygTzyg.js} +0 -0
  338. /package/dist/assets/{setting-row-0LXvW7Kh.js → setting-row-BwXKepmJ.js} +0 -0
  339. /package/dist/assets/{status-badge-pill-z1OKPW3B.js → status-badge-pill-wJPMXQk1.js} +0 -0
  340. /package/dist/assets/{theme-preferences-ln8xC5zH.js → theme-preferences-Bb2pPRXa.js} +0 -0
  341. /package/dist/assets/{three-dot-indicator-SJcKW5cG.js → three-dot-indicator-BMvKQ_On.js} +0 -0
  342. /package/dist/assets/{use-bus-subscription-Cu4Y9DQi.js → use-bus-subscription-nUrbz9Mu.js} +0 -0
  343. /package/dist/assets/{use-copy-to-clipboard-DBVpNZOl.js → use-copy-to-clipboard-cF7ZSilD.js} +0 -0
  344. /package/dist/assets/{use-is-mobile-Bz2l7wPL.js → use-is-mobile-BlQuzI5Z.js} +0 -0
  345. /package/dist/assets/{web-7I6Bn0iP.js → web-9Cwi5jnT.js} +0 -0
  346. /package/dist/assets/{web-CBluPLFP.js → web-Bi-BvsRt.js} +0 -0
  347. /package/dist/assets/{web-Cmg3AbZk.js → web-D486_dlv.js} +0 -0
  348. /package/dist/assets/{web-DHVjLzid.js → web-DUb4LJ2M.js} +0 -0
  349. /package/dist/assets/{web-BEpNr5_U.js → web-l9DWMZeA.js} +0 -0
  350. /package/dist/assets/{web-BPyURh2Z.js → web-sr1ba6fP.js} +0 -0
  351. /package/dist/assets/{workflow-status-DXdUkbSd.js → workflow-status-HyIIhMBP.js} +0 -0
  352. /package/dist/assets/{workspace-theme-tokens-J8dqkK9n.js → workspace-theme-tokens-DNNwX-XS.js} +0 -0
  353. /package/dist/assets/{xterm-CdT0HObJ.js → xterm-DgGqTfet.js} +0 -0
  354. /package/dist/assets/{xterm-addon-fit-CPcVj1i5.js → xterm-addon-fit-BVObYBMM.js} +0 -0
@@ -1,50 +0,0 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./capture-error-Bj8_eutd.js";import{t as n}from"./react-BFJW0bSv.js";import{t as r}from"./button-Dy5001j6.js";import{m as i,u as a}from"./chunk-5KNZJZUH-Bsoom5--.js";import{n as o}from"./QueryClientProvider-CMu7CkQU.js";import{t as s}from"./jsx-runtime-D3ZM-ToX.js";import{t as c}from"./cn-CJf7MmLX.js";import{t as l}from"./arrow-left-C2ylPLHq.js";import{t as u}from"./arrow-right-B-jRJNWP.js";import{t as d}from"./dices-DcuIF52A.js";import{t as f}from"./loader-circle-XREx3i4W.js";import{t as p}from"./pencil-D38YNe2r.js";import{t as m}from"./plus-jH3kAliM.js";import{t as h}from"./search-BVW-n8to.js";import{t as g}from"./x-JBAsSOmg.js";import{t as _}from"./tag-NXcyiTkK.js";import{t as v}from"./input-hw3el2GJ.js";import{i as y,r as b,t as x}from"./dist-oCfq2a_n.js";import{n as S,t as C}from"./create-selectors-Qo7kcikX.js";import{ct as w,f as T,o as E,y as D}from"./local-mode-Ckii2tmN.js";import{Gn as O,Tr as ee,V as k,Wn as A,bn as j,tt as M,xn as N}from"./sdk.gen-BVAVE6A_.js";import{r as te}from"./api-errors-CFiCT7Ap.js";import{A as ne,B as re,L as ie,R as ae,n as oe,z as se}from"./auth-store-D9BqFncz.js";import{a as P,o as ce,r as le}from"./api-XwdNiVE9.js";import{u as ue}from"./routes-vE-2hncW.js";import{n as de}from"./platform-detection-CMiRPRCq.js";import{o as fe,s as pe}from"./prechat-DIuViPZk.js";import{t as me}from"./browser-timezone-C_0jBUid.js";import{n as F,r as he,t as I}from"./eye-bbox-DXmmg9ML.js";import{c as ge}from"./conversation-list-fetchers-D84gJs6f.js";import{i as _e}from"./conversation-cache-CqCkWHT6.js";import{i as ve,n as ye,r as be,t as xe}from"./research-onboarding-persistence-CceFfAqE.js";import{a as Se,c as Ce,i as we,l as Te,o as Ee,s as L,t as De,u as Oe}from"./first-run-scope-BoT9LMYw.js";import{c as ke,i as Ae}from"./funnel-events-CK938pi2.js";import{t as R}from"./proxy-RtD8704m.js";import{t as z}from"./AnimatePresence-3WpfAWHe.js";import{t as B}from"./use-reduced-motion-Se97jRQ-.js";import{i as je}from"./avatar-tone-CMoWR2JX.js";import{a as V,i as Me}from"./research-facts-UIXXE8D6.js";import{t as H}from"./onboarding-layout-Dd5fPfE7.js";import{t as U}from"./animated-avatar-DzfEDnTh.js";import{n as W,t as Ne}from"./use-bundled-avatar-components-Gp_YaD6o.js";import{c as Pe,i as Fe,l as Ie,n as Le,r as Re,s as G,t as K}from"./latest-assistant-text-D5WR-o6J.js";import{n as ze,t as Be}from"./onboarding-step-layout-CURfuoh4.js";import{n as Ve}from"./plugin-attribution-DCFEMRUF.js";var q=e(n(),1),He=`grounded`,Ue=12;function We(e,t){let n=e.slice(0,Ue).map(e=>`- ${e.name} — ${e.description}`).join(`
2
- `);return n?`
3
- Capabilities you can offer me — specialized skillsets you can invoke on my behalf, not generic chat:
4
- ${n}
5
-
6
- Add a "plugins" array as the FIRST key in your JSON object, ${t?`before "claims" and "suggestions"`:`before "claims"`}: the 1-2 capabilities from the list above (exact names) that best fit who I am — judged by what you researched about my real role, stack, and day-to-day work. (Emit it first so setup can start while you finish the rest.) These get set up for me automatically as part of getting started, so pick by overall fit to ME, not to any single suggestion. Prefer fewer over forcing a match; use [] if nothing clearly fits. Example: "plugins": ["<exact name from the list above>"]. ${t?`Don't reference the setup in the claims or suggestions text.`:`Don't reference the setup in the claims text.`}
7
- `:``}function Ge({firstName:e,lastName:t,occupation:n,hobbies:r,timezone:i},a=[],{includeSuggestions:o=!0}={}){let s=[e.trim(),t.trim()].filter(Boolean).join(` `),c=n.trim(),l=(r??[]).map(e=>e.trim()).filter(Boolean).join(`, `),u=i?.trim()??``,d=We(a,o),f=d?`"plugins": ["<exact name from the list above>"], `:``,p=[s?`My name is ${s}.`:``,c?`I work as ${c}.`:``,l?`My hobby is ${l}.`:``].filter(Boolean).join(` `),m=p?[p,u?`My timezone is ${u}.`:``].filter(Boolean).join(` `):`I'd like you to get to know me before we start working together.`,h=o?` "suggestions": [ { "suggestion": "I'll find the 3 newest arXiv eval papers worth your time", "prompt": "Find me the 3 newest arXiv eval papers worth reading." }, { "suggestion": "I'll draft a crisp summary of the latest model-serving trade-offs", "prompt": "Draft me a short summary of the latest model-serving trade-offs." }, { "suggestion": "Connect GitHub and I'll triage your stalest issues", "prompt": "Connect to GitHub and triage my oldest open issues." }, { "suggestion": "I'll plan a weekend climbing trip near Boulder", "prompt": "Plan me a weekend climbing trip near Boulder." } ]`:``,g=`{ ${f}"claims": [ { "claim": "Senior engineer at an AI infra startup", "confidence": "confident", "sources": ["https://linkedin.com/in/example-user", "https://example-infra.com/about"] }, { "claim": "Based in Boulder, CO", "confidence": "maybe", "sources": ["https://linkedin.com/in/example-user"] }, { "claim": "Into climbing and the outdoors", "confidence": "guessing", "sources": [] } ]${h?`,${h}`:``} }`;return`${m}
8
-
9
- Get to know me. Search the web for what's publicly known about me, and infer a handful of things about who I am: what I do, my role, where I'm based, what I'm into, anything that would help you assist me better. Prefer sources people author about themselves — LinkedIn, a personal site, GitHub, an employer's team page, published work, public social profiles. Never fetch or cite people-search or background-check aggregators (Instant Checkmate, Spokeo, BeenVerified, TruePeopleSearch, Whitepages, and similar); data-broker directories (ZoomInfo, RocketReach, Apollo) may corroborate another source but must never be a claim's only basis.
10
-
11
- IDENTITY GATE — decide who a page is about before you use it: a name match alone is NEVER enough to attribute a page to me. Attribute it to me only when it also corroborates something I stated — my role, my hobby, or a location consistent with my timezone if I gave one. If several people share my name and none clears that bar, or you find no verifiable match at all, then I have no public profile you can use: return ONLY inferences from what I stated above, each labeled "guessing" with "sources": []. An honest near-empty card beats a stranger's biography. If my details above read as placeholder or joke input rather than a real identity, skip the web search and return an empty claims array.
12
-
13
- Treat the name, role, and hobby I provided above as first-party context from me. Use public sources to enrich that context, not to override or correct it. If public sources use a different title or omit part of my stated role, do not frame my stated role as wrong; mention the public title only as supporting nuance when it is useful, and keep ${o?`claims and suggestions`:`claims`} aligned with my stated role.
14
-
15
- CRITICAL: your final reply must be ONLY a JSON object. No preamble, no explanation, no prose, nothing before or after it. Do your thinking and searching, then respond with exactly this shape and nothing else:
16
-
17
- ${g}
18
-
19
- Rules for "claims":
20
-
21
- AT MOST 5 claims, typically 3 to 4. Never pad the list or inflate a confidence tier to seem thorough.
22
- Phrase each claim in third person as a short headline ("Senior engineer at an AI infra startup", "Based in Boulder, CO", "Active climber on Mountain Project"). No multi-clause sentences, no em-dash asides, no explanations. Good: "Contributed to Chirps (vector-DB security)". Bad: "You've done real work in vector database security. You contributed to Chirps, a tool for scanning vector DBs for sensitive data".
23
- Each claim must be independently true-or-false so I can remove the ones that are wrong.
24
- Every specific in a claim (employer, title, publication, city) must appear in a source you actually fetched this turn — never synthesize or embellish specifics a source doesn't state.
25
- "confidence" is earned per the identity gate: "confident" needs 2+ independent gate-passing sources, "maybe" needs exactly one, and a claim with no sources is an inference from my stated details and must be "guessing".
26
- "sources": 0 to 3 URLs you actually used as evidence for that specific claim. Use [] for pure inferences.
27
- ${o?`Rules for "suggestions":
28
-
29
- Each suggestion is an object with two fields:
30
- "suggestion": the offer in YOUR voice (the assistant), exactly as it appears on the clickable card — first-person "I" refers to you (whatever your name). Pattern: "I'll [verb] [specific artifact]" or "Connect me to [integration] and I'll [verb] [artifact]." Lead with the offer; no intake question in front of it — you gather the details in the follow-up conversation after the click.
31
- "prompt": the same offer re-voiced as the message sent on the user's behalf when they click, in the USER's first person ("I"/"my" = the user) — what they'd say to take you up on it (suggestion "I'll find you 3 papers" → prompt "Find me 3 papers worth reading"). State the request; don't echo the assistant-voiced wording and don't ask a question back.
32
-
33
- Generate EXACTLY 4 suggestions covering four DIFFERENT capabilities, each making me think "wait, you can do that?" Draw on your range — a quick researched answer, a recurring brief or monitor, a doc drafted in a live editor, an integration (GitHub, Gmail, Calendar, Slack, Linear) connected with a first action, or a hobby hook if research surfaced one — but pick what genuinely fits; don't force a fixed set.
34
- Ground every suggestion in what you actually learned about me — my real role, stack, industry, and (if given) hobby. Specific to me, not generic assistant stuff; skip bare "summarize" or "draft a post."
35
- CRITICAL: every suggestion must be a fast win you can deliver in the first reply, never a long-running build. NEVER suggest building an app, dashboard, tool, site, or tracker, or any multi-step "build me a ___" project — those kill the first impression. The ambitious build can come later in the conversation, never on the first card.
36
- Keep each SHORT and skimmable: under 10 words, ONE clause, ONE artifact, no lists of three ("X, Y, and Z"). The reader scans four cards in seconds — a long line loses them.
37
- `:``}${d}
38
- ${o?`Don't include anything sensitive or private. If the identity gate leaves you with very little, return only the honest "guessing" claims my stated details support, and lean on broadly useful suggestions for my role.`:`Don't include anything sensitive or private. If the identity gate leaves you with very little, return only the honest "guessing" claims my stated details support.`}
39
- Keep every string value simple so the JSON always parses: one line, no line breaks inside a value, and NO double-quote characters inside a value — use single quotes (or none) for emphasis, quoted names, or tool names. Output ONLY the JSON object. No code fence, no extra text.`}function Ke({hostingParam:e,localMode:t,gatewayAuthSession:n}){return t?e===null?n:e!==`vellum-cloud`:!1}var J=3e3,qe=3e5,Je=`Failed to start your assistant. Please try again.`,Ye=`Your assistant is taking longer than expected. Please try again.`,Xe=e=>new Promise(t=>setTimeout(t,e));function Ze({adoptExisting:e=!1,adoptAssistantId:n}={}){let[r,i]=(0,q.useState)(!1),[a,o]=(0,q.useState)(null),[s,c]=(0,q.useState)(null),l=(0,q.useRef)(!1),u=(0,q.useRef)([]),d=(0,q.useRef)(null),f=(0,q.useCallback)(e=>{if(!d.current){d.current={kind:`ready`,id:e},i(!0);for(let t of u.current)t.resolve(e);u.current=[]}},[]),p=(0,q.useCallback)(e=>{if(d.current)return;d.current={kind:`error`,message:e},c(e);let t=Error(e);for(let e of u.current)e.reject(t);u.current=[]},[]);return{start:(0,q.useCallback)(()=>{if(l.current)return;l.current=!0;let r=Date.now(),i=()=>Date.now()-r>=qe;(async()=>{if(e&&n){let e=E(n);if(e){o(e.assistantId),f(e.assistantId);return}}let r=e?n:void 0;if(!e)try{let e=await ce();if(e.ok)r=e.data.id,o(e.data.id);else{if(ae(e.status,e.error)){p(ie);return}if(!re(e.status)){p(te(e.error,void 0,Je));return}}}catch(e){t(e,{context:`research_background_hatch`})}let a;for(;!a;){if(i()){p(Ye);return}try{let e=await le(r);r&&!e.ok&&e.status===404&&(r=void 0,e=await le());let t=se(e);if(t.kind===`active`&&e.ok){a=e.data.id,o(a);break}if(t.kind===`error`){p(t.message);return}}catch(e){t(e,{context:`research_background_hatch_poll`})}await Xe(J)}if(e)for(;!await D();){if(i()){p(Ye);return}await Xe(J)}else for(;;){try{if((await P(a)).ok)break}catch{}if(i()){p(Ye);return}await Xe(J)}f(a)})()},[p,f,e,n]),ready:r,assistantId:a,error:s,awaitReady:(0,q.useCallback)(()=>{let e=d.current;return e?.kind===`ready`?Promise.resolve(e.id):e?.kind===`error`?Promise.reject(Error(e.message)):new Promise((e,t)=>{u.current.push({resolve:e,reject:t})})},[])}}async function Qe(e,n){try{await k({path:{assistant_id:e,id:n},throwOnError:!1})}catch(e){t(e,{context:`research_onboarding_archive`})}}var $e=[`admin-copilot`],et=[{plugin:`marketing-expert`,keywords:[`founder`,`cofounder`,`co founder`,`ceo`,`cmo`,`chief executive`,`chief marketing`,`entrepreneur`,`marketing`,`marketer`,`growth`,`brand`,`content`,`copywriter`,`copywriting`,`seo`,`demand gen`,`demand generation`,`sales`,`account executive`,`business development`,`creator`,`social media`,`community manager`]},{plugin:`git-workflow`,keywords:`developer.swe.programmer.coder.devops.dev ops.sre.site reliability.software engineer.software architect.backend engineer.back end engineer.frontend engineer.front end engineer.full stack engineer.fullstack engineer.platform engineer.infrastructure engineer.data engineer.machine learning engineer.ml engineer.qa engineer.embedded engineer.security engineer.staff engineer.principal engineer.solutions architect.tech lead.technical lead.engineering manager.engineering lead.head of engineering.director of engineering.vp of engineering.vp engineering.cto`.split(`.`)}];function tt(e){return` ${e.toLowerCase().replace(/[^a-z0-9]+/g,` `).trim()} `}function nt(e,t){return e.includes(` ${t} `)}function rt(e){let t=tt(e),n=[];for(let{plugin:e,keywords:r}of et)r.some(e=>nt(t,e))&&n.push(e);return n}function it(e,t){let n=[...$e,...Ve(),...rt(e)],r=new Set,i=[];for(let e of n)!t.has(e)||r.has(e)||(r.add(e),i.push(e));return i}var at=1500,ot=12e4,st=2;function ct({complete:e,stableReads:t}){return e&&t>=st}function lt({sawCompletePayload:e}){return e?`done`:`error`}function ut({sawCompletePayload:e}){return e}var dt=`vellum-ai`,ft=new Set([`simple-memory`,`level-up`]);function pt(e){let t=e.trim().split(/(?<=\.)\s/)[0]?.trim()??e.trim();return t.length>100?`${t.slice(0,97).trimEnd()}…`:t}function mt(e){return e?.split(`/`)[0]?.trim()??``}function ht(e){let t=[],n=new Set;for(let r of e){let e=r.name?.trim(),i=r.description?.trim();!e||!i||mt(r.source?.repo)===dt&&(ft.has(e)||(n.add(e),t.push({name:e,description:pt(i)})))}return{capabilities:t,validNames:n}}async function gt(e){try{return ht((await O({path:{assistant_id:e},throwOnError:!1})).data?.matches??[])}catch(e){return t(e,{context:`research_onboarding_catalog`}),{capabilities:[],validNames:new Set}}}async function _t(e,n){try{await A({path:{assistant_id:e},body:{name:n},throwOnError:!1})}catch(e){t(e,{context:`research_onboarding_install`})}}var vt=32;function yt(e,t){return e.filter(e=>e.confidence===t).length}async function bt({assistantId:e,conversationId:n,status:r,subject:i,claims:a,suggestions:o,plugins:s,installedPlugins:c}){try{await ee({path:{assistant_id:e},body:{type:`onboarding_research`,...r===`done`?{daemon_event_id:`onboarding_research:${n}`}:{},fields:{conversation_id:n,status:r,self_reported_occupation:i.occupation,self_reported_hobbies:(i.hobbies??[]).slice(0,vt),self_reported_timezone:i.timezone,claims:a,claim_count:a.length,claims_confident:yt(a,`confident`),claims_maybe:yt(a,`maybe`),claims_guessing:yt(a,`guessing`),suggestions:o,suggestion_count:o.length,plugins:s,installed_plugins:c}},throwOnError:!1})}catch(e){t(e,{context:`research_onboarding_telemetry`})}}var xt=e=>new Promise(t=>setTimeout(t,e));function St({role:e,validNames:t,modelPlugins:n}){return[...new Set([...it(e,t),...n.filter(e=>t.has(e))])]}function Ct(){let[e,n]=(0,q.useState)({status:`idle`,claims:[],droppedClaims:[],suggestions:[],installedPlugins:[],pluginCatalog:{}}),r=(0,q.useRef)(0),i=(0,q.useRef)(null),a=(0,q.useRef)(new Map),s=(0,q.useRef)(Promise.resolve()),c=o(),l=(0,q.useCallback)(({awaitAssistantId:e,subject:o,conversationTitle:l,resumeConversationId:u,onConversationCreated:d,includeSuggestions:f=!0})=>{let p=JSON.stringify(o);if(i.current===p)return;i.current=p;let m=r.current+1;r.current=m;let h=()=>r.current!==m,g=()=>{};s.current=new Promise(e=>{g=e}),a.current.clear(),n({status:`running`,claims:[],droppedClaims:[],suggestions:[],installedPlugins:[],pluginCatalog:{}}),(async()=>{let r,i,s=!1;try{let t=await e();if(r=t,h())return;let{capabilities:c,validNames:p}=await gt(t);if(h())return;let m=Object.fromEntries(c.map(e=>[e.name,e.description]));n(e=>({...e,pluginCatalog:m})),p.size===0&&g();let _=a.current,v=it(o.occupation,p);for(let e of v)_.has(e)||_.set(e,_t(t,e));v.length>0&&n(e=>({...e,installedPlugins:v}));let y=async e=>{let n={conversationId:e,content:Ge(o,c,{includeSuggestions:f}),sourceChannel:`vellum`,interface:`web`,clientOs:de(),clientMessageId:crypto.randomUUID()};try{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;e&&(n.clientTimezone=e)}catch{}return!!(await N({path:{assistant_id:t},body:n,throwOnError:!1})).response?.ok},b=async()=>{let e=await M({path:{assistant_id:t},body:{conversationType:`standard`,...l?{title:l}:{}},throwOnError:!1});i=e.data?.id;let n=e.data?.id;if(!(!e.response?.ok||!n))return d?.(n),n},x;if(u){let e=await j({path:{assistant_id:t},query:{conversationId:u},throwOnError:!1});if(h())return;if(e.response?.ok&&(x=u,i=u,!(e.data?.messages??[]).some(e=>e.role===`user`))){if(!await y(x)){n(e=>({...e,status:`error`}));return}if(h())return}}if(!x){if(x=await b(),h())return;if(!x){n(e=>({...e,status:`error`}));return}if(!await y(x)){n(e=>({...e,status:`error`}));return}if(h())return}let S=Date.now()+ot,C=``,w=0,T=!1,E=[],D=[],O=[],ee=v;for(;Date.now()<S;){if(await xt(at),h())return;let e=await j({path:{assistant_id:t},query:{conversationId:x},throwOnError:!1});if(h())return;let r=K(e.data?.messages??[]);if(r){let{claims:e,droppedClaims:i,suggestions:a,plugins:c,pluginsResolved:l,complete:u}=Me(r),d=c.filter(e=>p.has(e));for(let e of d)_.has(e)||_.set(e,_t(t,e));l&&g();let f=St({role:o.occupation,validNames:p,modelPlugins:d});if(n({status:`running`,claims:e,droppedClaims:i,suggestions:a,installedPlugins:f,pluginCatalog:m}),E=e,D=a,O=c,ee=f,u&&(s=!0),u&&!T&&(T=!0,bt({assistantId:t,conversationId:x,status:`done`,subject:o,claims:e,suggestions:a,plugins:c,installedPlugins:f})),w=r===C?w+1:0,C=r,ct({complete:u,stableReads:w}))break}}if(h())return;T||(T=!0,bt({assistantId:t,conversationId:x,status:`error`,subject:o,claims:E,suggestions:D,plugins:O,installedPlugins:ee})),n(e=>({...e,status:lt({sawCompletePayload:s})}))}catch(e){if(h())return;t(e,{context:`research_onboarding_runner`}),n(e=>({...e,status:`error`}))}finally{g(),ut({sawCompletePayload:s})&&r&&i&&(await Qe(r,i),_e(c,r))}})()},[c]),u=(0,q.useCallback)(async()=>{await s.current,await Promise.all([...a.current.values()])},[]),d=(0,q.useCallback)((e,t)=>{if(r.current+=1,n(e),t&&e.installedPlugins.length>0){let n=a.current;n.clear();for(let r of e.installedPlugins)n.set(r,(async()=>{try{await _t(await t(),r)}catch{}})())}},[]);return{...e,start:l,awaitPluginInstalls:u,hydrate:d}}function wt({removedClaims:e,rejectedAll:t}){if(t)return[`Correction: none of what you found in that web search is actually me —`,`it looks like you matched someone else with a similar name. Please`,`disregard everything from that search and don't remember any of it as`,`true about me. We'll build up what you actually know about me from here,`,`as we talk.`].join(` `);let n=e.map(e=>e.trim()).filter(Boolean);return n.length===0?null:[`Quick correction on what you found about me — these aren't true, so please`,`disregard them and don't remember them as facts about me:`,``,...n.map(e=>`- ${e}`)].join(`
40
- `)}async function Tt({assistantId:e,conversationId:n,removedClaims:r,rejectedAll:i}){let a=wt({removedClaims:r,rejectedAll:i});if(a){try{let t={conversationId:n,content:a,sourceChannel:`vellum`,interface:`web`,clientOs:de(),clientMessageId:crypto.randomUUID()};await N({path:{assistant_id:e},body:t,throwOnError:!1})}catch(e){t(e,{context:`research_onboarding_correction`})}await Qe(e,n)}}var Et=1500,Dt=12e4,Ot=e=>new Promise(t=>setTimeout(t,e));async function kt({awaitAssistantId:e,values:n,userName:r,assistantName:i}){let a,o;try{a=await e();let t=await M({path:{assistant_id:a},body:{conversationType:`standard`,title:`Updating personality`},throwOnError:!1});if(o=t.data?.id,!t.response?.ok||!o)return;let s={conversationId:o,content:Pe(n,r,i),sourceChannel:`vellum`,interface:`vellum`,clientMessageId:crypto.randomUUID()};if(!(await N({path:{assistant_id:a},body:s,throwOnError:!1})).response?.ok)return;await G(a,Fe(n));let c=Date.now()+Dt,l=``,u=0,d=!1;for(;Date.now()<c;){await Ot(Et);let e=await j({path:{assistant_id:a},query:{conversationId:o},throwOnError:!1}),t=K(e.data?.messages??[]);if(t&&(u=t===l?u+1:0,l=t),e.data?.processing===!0&&(d=!0),Ie({processing:e.data?.processing,sawProcessing:d,hasReply:t.length>0,stableReads:u}))break}}catch(e){t(e,{context:`research_onboarding_personality`})}finally{if(a&&o)try{await k({path:{assistant_id:a,id:o},throwOnError:!1})}catch(e){t(e,{context:`research_onboarding_personality_archive`})}}}function At(e){return`id \`scope_${e}\`, \`data: {"${De}": "${e}"}\``}function jt(e){let t=e?.trim();return`You're about to begin your first conversation.${t?`\nYour name is ${t} — introduce yourself as ${t}.`:``}
41
- Respond with a warm and engaging greeting. Be interesting, be real. This is your chance to get to know and impress the user.
42
- End the greeting text with one short question asking where they'd like to start, phrased so nothing feels off the table (e.g. "…or is there anything else on your mind entirely?").
43
- Then call the \`ui_show\` tool exactly once: \`surface_type: "choice"\`, \`data.selectionMode: "single"\`, no \`title\` (or a very short one), and exactly three options in this order:
44
- 1. ${At(`work`)} — a concrete offer grounded in their work or role from your Onboarding Context (occupation, daily tools, work-related research findings).
45
- 2. ${At(`personal`)} — a concrete offer grounded in their hobbies, interests, or personal research findings.
46
- 3. ${At(`both`)} — an "all of the above" invitation.
47
- An option's title becomes the user's visible reply bubble when they tap it, so every title must read naturally in the user's voice — imperative or neutral, six words or fewer (e.g. "Help me plan my next ride", never "I can plan your next ride"). Titles only: never set \`description\` on any option — the three options must scan in a single glance, and your greeting text already carries the color.
48
- These options are conversation starters, not a menu: never imply the user is limited to them, and your closing question itself must invite free-form answers.
49
- After the \`ui_show\` result comes back, stop — output no further text. If \`ui_show\` errors or is unavailable, just end with the text question alone; the user will type. Do not set \`await_action\` or \`persistent\`.
50
- Keep it short! For this opening greeting only, don't use \`recall\`, don't read any files, and make no tool calls other than that single \`ui_show\`. (This applies to the greeting alone; use your tools normally for everything the user asks afterward.)`}function Mt(e,t){if(!e)return null;let n=new Date(e);if(Number.isNaN(n.getTime()))return null;try{return new Intl.DateTimeFormat(void 0,{hour:`numeric`,minute:`2-digit`,...t?{timeZone:t}:{}}).format(n)}catch{return new Intl.DateTimeFormat(void 0,{hour:`numeric`,minute:`2-digit`}).format(n)}}var Y=s(),Nt=(0,q.createContext)(null);function Pt({size:e,children:t}){return(0,Y.jsx)(Nt.Provider,{value:e,children:t})}function Ft(){let e=(0,q.useContext)(Nt),[t,n]=(0,q.useState)(()=>Re());return(0,q.useEffect)(()=>{if(e)return;let t=()=>n(Re());return window.addEventListener(`resize`,t),()=>window.removeEventListener(`resize`,t)},[e]),e??t}var It={x:.5,y:.43},Lt=[-8,6,9,0,7,-6,5,0,-7,4,-5,6];function Rt(e){return Lt[e%Lt.length]??0}var zt=[1,0,1,0,1,0,1,0,1,0,0],Bt=[.72,1],Vt=[.4,1],Ht=[10,20],Ut=50,Wt={6:1.1};function Gt(e){return(Bt[zt[e]??1]??1)*(Wt[e]??1)}function Kt(e){return Vt[zt[e]??1]??1}function qt(e){return Ht[zt[e]??1]??20}function Jt(e,t){return Math.round(Math.max(130,Math.min(Math.min(e,t)*.4,420)))}function Yt(e,t){return Math.round(Math.max(110,Math.min(Math.min(e,t)*.21,205)))}function Xt(e,t,n){let r=n*.4,i=n*.48;return[{x:i,y:i},{x:e*.3,y:r-t*.03},{x:e*.72,y:r-t*.1},{x:e-i,y:i},{x:e-r,y:t*.72},{x:e-i,y:t-i},{x:i,y:t-i},{x:r,y:t*.5},{x:e-r,y:t*.3},{x:e*.28,y:t-r+t*.05},{x:e*.77,y:t-r}]}function Zt(e,t,n,r,i){let a=e.x-t,o=e.y-n,s=Math.hypot(a,o)||1,c=Math.max(r,i);return{x:e.x+a/s*c,y:e.y+o/s*c}}function Qt({components:e,characters:t,centerChar:n,edgeOrder:r,entering:i,exiting:a,onEnterComplete:o,onSelectChar:s}){let{w:c,h:l}=Ft(),u=B(),d=c<640,f=new Set([4,7,8,9,10]),p=e=>d&&f.has(e),m=Jt(c,l),h=m/2,g=m/2,_=Yt(c,l)/m,v=Yt(c,l),y=(0,q.useMemo)(()=>{let e=new Map;return r.forEach((t,n)=>e.set(t,n)),e},[r]),b=It.x*c,x=It.y*l,S=b-h,C=x-h,w=(0,q.useMemo)(()=>Xt(c,l,g),[c,l,g]);return(0,Y.jsxs)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 z-0 overflow-hidden`,children:[(0,Y.jsx)(`div`,{className:`absolute rounded-[50%] bg-[var(--aux-black,#000)] opacity-20 blur-md`,style:{width:v*.62,height:16,left:b-v*.31,top:x+v*.4}}),t.map((t,r)=>{let d=r===n,f=!u&&i?.char===r,g=!u&&a?.char===r;if(f){let n=w[i.fromSlot],a=Zt(n,b,x,c,l),s=Gt(i.fromSlot),u=Kt(i.fromSlot);return(0,Y.jsx)(R.div,{className:`absolute left-0 top-0`,style:{width:m,height:m,zIndex:Ut},initial:!1,animate:{x:[n.x-h,a.x-h,a.x-h,S,S,S],y:[n.y-h,a.y-h,a.y-h,C,C,C],scale:[s,s,s,_*.7,_*1.08,_],opacity:[u,u,0,0,1,1]},transition:{duration:.85,times:[0,.28,.34,.42,.72,1],ease:[`easeIn`,`linear`,`linear`,`easeOut`,`easeOut`]},onAnimationComplete:()=>o(r),children:(0,Y.jsx)(U,{components:e,traits:t,size:m})},r)}if(g){if(p(a.toSlot))return null;let n=w[a.toSlot],i=Zt(n,b,x,c,l),o=Gt(a.toSlot),s=Kt(a.toSlot);return(0,Y.jsx)(R.div,{className:`absolute left-0 top-0`,style:{width:m,height:m,zIndex:qt(a.toSlot)},initial:!1,animate:{x:[S,S,i.x-h,i.x-h,n.x-h,n.x-h],y:[C,C,i.y-h,i.y-h,n.y-h,n.y-h],scale:[_,_*.6,o,o,o*1.1,o],opacity:[1,0,0,s,s,s]},transition:{duration:.85,times:[0,.28,.34,.45,.78,1],ease:[`easeIn`,`linear`,`linear`,`easeOut`,`easeOut`]},children:(0,Y.jsx)(`div`,{style:{transform:`rotate(${Rt(a.toSlot)}deg)`},children:(0,Y.jsx)(U,{components:e,traits:t,size:m,breathe:!1})})},r)}let v=y.get(r)??0;if(!d&&p(v))return null;let T=d?{x:b,y:x}:w[v];return(0,Y.jsx)(R.div,{className:`absolute left-0 top-0 ${d?``:`pointer-events-auto cursor-pointer`}`,style:{width:m,height:m,zIndex:d?Ut:qt(v)},initial:!1,animate:{x:T.x-h,y:T.y-h,scale:d?_:Gt(v),opacity:d?1:Kt(v)},transition:u?{duration:0}:{type:`spring`,stiffness:230,damping:26},onClick:d?void 0:()=>s(r),children:(0,Y.jsx)(`div`,{style:{transform:d?void 0:`rotate(${Rt(y.get(r)??0)}deg)`},children:(0,Y.jsx)(U,{components:e,traits:t,size:m,breathe:d})})},r)})]})}var $t=[{bodyShape:`urchin`,eyeStyle:`goofy`,color:`teal`},{bodyShape:`blob`,eyeStyle:`grumpy`,color:`purple`},{bodyShape:`star`,eyeStyle:`surprised`,color:`orange`},{bodyShape:`blob`,eyeStyle:`gentle`,color:`pink`},{bodyShape:`ninja`,eyeStyle:`angry`,color:`yellow`},{bodyShape:`urchin`,eyeStyle:`curious`,color:`pink`},{bodyShape:`burst`,eyeStyle:`quirky`,color:`orange`},{bodyShape:`ghost`,eyeStyle:`bashful`,color:`green`},{bodyShape:`sprout`,eyeStyle:`dazed`,color:`orange`},{bodyShape:`star`,eyeStyle:`goofy`,color:`teal`},{bodyShape:`flower`,eyeStyle:`angry`,color:`pink`},{bodyShape:`cloud`,eyeStyle:`curious`,color:`yellow`}],X=C(S((e,t)=>({characters:[],selectedIndex:0,ensureGenerated:()=>{t().characters.length>0||e({characters:$t,selectedIndex:0})},setSelectedIndex:t=>e({selectedIndex:t}),selectNext:()=>e(e=>({selectedIndex:e.characters.length===0?0:(e.selectedIndex+1)%e.characters.length})),selectPrev:()=>e(e=>({selectedIndex:e.characters.length===0?0:(e.selectedIndex-1+e.characters.length)%e.characters.length}))})));function en(){let[e,t]=(0,q.useState)(()=>({w:typeof window>`u`?1280:window.innerWidth,h:typeof window>`u`?800:window.innerHeight}));return(0,q.useEffect)(()=>{let e=()=>t({w:window.innerWidth,h:window.innerHeight});return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),e}function tn(){let e=W(),t=X.use.characters(),n=X.use.ensureGenerated(),r=B(),{w:i,h:a}=en();(0,q.useEffect)(()=>{e&&n(e)},[e,n]);let o=Jt(i,a),s=(0,q.useMemo)(()=>Xt(i,a,o/2),[i,a,o]),c=i<640,l=new Set([4,7,8,9,10]);return!e||t.length===0?null:(0,Y.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none fixed inset-0 z-0 overflow-hidden`,children:t.map((t,n)=>{if(n===0)return null;let i=n-1;if(c&&l.has(i))return null;let a=s[i];if(!a)return null;let u=Lt[i%Lt.length]??0,d=o*Gt(i),f=Kt(i),p=qt(i);return(0,Y.jsx)(`div`,{className:`absolute`,style:{left:a.x-d/2,top:a.y-d/2,width:d,height:d,zIndex:p,animation:r?void 0:`character-pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) ${.1+n*.05}s both`},children:(0,Y.jsx)(`div`,{style:{opacity:f,transform:`rotate(${u}deg)`},children:(0,Y.jsx)(U,{components:e,traits:t,size:d,breathe:!1})})},n)})})}var nn=c(`flex w-full items-center gap-1.5 rounded-md border bg-[var(--field-bg)] px-3`,`border-[var(--field-border)] transition-[border-color,background-color] duration-150 ease-out`,`focus-within:border-[var(--border-active)]`),rn=c(`min-w-0 flex-1 bg-transparent text-body-medium-lighter text-[var(--content-default)]`,`placeholder:text-[var(--content-tertiary)] outline-none`,Be);function Z(e){return e.trim().toLowerCase()}function an(e,t,n=[],r=8){let i=Z(t),a=new Set(n.map(Z)),o=[];for(let t of e)if(!a.has(Z(t))&&((i.length===0||Z(t).includes(i))&&o.push(t),o.length>=r))break;return o}function on({id:e,options:t,highlighted:n,showAddHint:r,onPick:i,onHover:a}){return(0,Y.jsxs)(`ul`,{id:e,role:`listbox`,className:c(`absolute left-0 right-0 top-full z-50 mt-1.5 max-h-60 overflow-auto`,`rounded-lg bg-[var(--surface-lift)] p-1 shadow-[var(--shadow-popover)]`,`animate-[fadeInUp_0.12s_ease-out]`),children:[t.map((t,r)=>(0,Y.jsx)(`li`,{id:`${e}-opt-${r}`,role:`option`,"aria-selected":r===n,onMouseDown:e=>{e.preventDefault(),i(t.value)},onMouseEnter:()=>a(r),className:c(`flex cursor-pointer items-center gap-2 rounded-md px-2.5 py-1.5`,`text-body-medium-lighter text-[var(--content-default)]`,r===n?`bg-[var(--surface-base)]`:`bg-transparent`),children:t.isAdd?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(m,{size:15,className:`shrink-0 text-[var(--content-tertiary)]`}),(0,Y.jsxs)(`span`,{className:`min-w-0 truncate`,children:[`Add “`,t.value,`”`]}),(0,Y.jsx)(`span`,{className:`ml-auto shrink-0 text-body-small-default text-[var(--content-tertiary)]`,children:`↵ Enter`})]}):t.value},t.isAdd?`__add__${t.value}`:t.value)),r&&(0,Y.jsx)(`li`,{role:`presentation`,className:`mt-0.5 border-t border-[var(--border-base)] px-2.5 pb-0.5 pt-1.5 text-body-small-default text-[var(--content-tertiary)]`,children:`Type anything and press ↵ to add your own`})]})}function sn({htmlFor:e,required:t,children:n}){return(0,Y.jsxs)(`label`,{htmlFor:e,className:`text-body-small-default text-[var(--content-secondary)]`,children:[n,t?(0,Y.jsx)(`span`,{"aria-hidden":!0,className:`text-[var(--system-negative-strong)]`,children:` *`}):null]})}function cn(e,t){(0,q.useEffect)(()=>{function n(n){e.current&&!e.current.contains(n.target)&&t()}return document.addEventListener(`mousedown`,n),()=>document.removeEventListener(`mousedown`,n)},[e,t])}function ln({label:e,placeholder:t,values:n,onChange:r,suggestions:i}){let a=(0,q.useId)(),o=`tac-${a}`,s=`tac-list-${a}`,l=(0,q.useRef)(null),[u,d]=(0,q.useState)(``),[f,p]=(0,q.useState)(!1),[m,g]=(0,q.useState)(-1),v=(0,q.useMemo)(()=>an(i,u,n),[i,u,n]),y=u.trim(),b=(0,q.useMemo)(()=>{if(!y)return!1;let e=Z(y);return!(n.some(t=>Z(t)===e)||v.some(t=>Z(t)===e))},[y,n,v]),x=(0,q.useMemo)(()=>{let e=v.map(e=>({value:e,isAdd:!1}));return b?[...e,{value:y,isAdd:!0}]:e},[v,b,y]);cn(l,()=>p(!1)),(0,q.useEffect)(()=>{g(e=>e>=x.length?x.length-1:e)},[x.length]);let S=f&&x.length>0,C=!b;function w(e){let t=e.trim();t&&(n.some(e=>Z(e)===Z(t))||r([...n,t]),d(``),g(-1))}function T(e){r(n.filter(t=>t!==e))}function E(e){e.key===`ArrowDown`?(e.preventDefault(),p(!0),g(e=>Math.min(e+1,x.length-1))):e.key===`ArrowUp`?(e.preventDefault(),g(e=>Math.max(e-1,0))):e.key===`Enter`?S&&m>=0?(e.preventDefault(),w(x[m].value)):u.trim()&&(e.preventDefault(),w(u)):e.key===`,`?(e.preventDefault(),w(u)):e.key===`Backspace`&&u.length===0&&n.length>0?T(n[n.length-1]):e.key===`Escape`&&p(!1)}return(0,Y.jsxs)(`div`,{ref:l,className:`relative flex flex-col gap-1.5`,children:[(0,Y.jsx)(sn,{htmlFor:o,children:e}),(0,Y.jsxs)(`div`,{className:c(nn,`min-h-9 flex-wrap py-1.5`),children:[(0,Y.jsx)(h,{size:16,"aria-hidden":!0,className:`shrink-0 self-center text-[var(--content-tertiary)]`}),n.map(e=>(0,Y.jsx)(_,{onRemove:()=>T(e),removeLabel:`Remove ${e}`,className:`border border-[var(--border-base)] bg-[var(--surface-base)]`,children:e},e)),(0,Y.jsx)(`input`,{id:o,role:`combobox`,"aria-expanded":S,"aria-controls":s,"aria-autocomplete":`list`,"aria-activedescendant":m>=0?`${s}-opt-${m}`:void 0,autoComplete:`off`,className:c(rn,`h-6 w-24`),placeholder:n.length===0?t:``,value:u,onChange:e=>{d(e.target.value),p(!0)},onFocus:()=>p(!0),onKeyDown:E})]}),S&&(0,Y.jsx)(on,{id:s,options:x,highlighted:m,showAddHint:C,onPick:w,onHover:g})]})}var un=`Reading.Writing.Cooking.Baking.Gardening.Photography.Painting.Drawing.Hiking.Running.Cycling.Swimming.Yoga.Climbing.Weightlifting.Gaming.Board games.Chess.Traveling.Cars.Woodworking.Knitting.Playing guitar.Playing piano.Singing.Dancing.Fishing.Camping.Surfing.Skiing.Snowboarding.Coffee.Wine.Birdwatching.Pottery.Investing.Podcasts.Movies.Soccer.Basketball.Tennis.Golf.Meditation.Volunteering.Astronomy.3D printing`.split(`.`);function dn(e,t){return{animation:`fadeInUp 0.4s ease-out ${e}s both`,...t==null?{}:{position:`relative`,zIndex:t}}}function fn({initialFirstName:e=``,initialLastName:t=``,onSubmit:n}){let[i,a]=(0,q.useState)(e),[o,s]=(0,q.useState)(t),[c,l]=(0,q.useState)(``),[d,f]=(0,q.useState)([]),p=i.trim().length>0&&c.trim().length>0;function m(){p&&n({firstName:i,lastName:o,role:c,hobbies:d})}return(0,Y.jsx)(`div`,{"data-theme":`dark`,className:`h-full`,children:(0,Y.jsxs)(H,{showCreatureFooter:!1,children:[(0,Y.jsx)(tn,{}),(0,Y.jsxs)(`form`,{className:`relative z-10 mx-auto flex min-h-screen w-full max-w-sm flex-col items-center justify-center px-6 py-16 text-[var(--content-default)]`,onSubmit:e=>{e.preventDefault(),m()},children:[(0,Y.jsx)(`h1`,{className:`text-center font-serif text-[2.75rem] leading-[1.05] tracking-tight`,style:dn(.05),children:`Let's start with you.`}),(0,Y.jsx)(`p`,{className:`mt-3 text-center text-body-medium-lighter text-[var(--content-secondary)]`,style:dn(.12),children:`A few details so I can get to know you.`}),(0,Y.jsxs)(`div`,{className:`mt-10 flex w-full flex-col gap-5`,children:[(0,Y.jsx)(`div`,{style:dn(.2,40),children:(0,Y.jsx)(v,{label:(0,Y.jsxs)(Y.Fragment,{children:[`What should I call you?`,(0,Y.jsx)(`span`,{"aria-hidden":!0,className:`text-[var(--system-negative-strong)]`,children:` *`})]}),placeholder:`Your name`,value:i,onChange:e=>a(e.target.value),className:Be,autoFocus:!0,required:!0,fullWidth:!0})}),(0,Y.jsx)(`div`,{style:dn(.27,30),children:(0,Y.jsx)(v,{label:`And your last name?`,placeholder:`Your last name (optional)`,value:o,onChange:e=>s(e.target.value),className:Be,fullWidth:!0})}),(0,Y.jsx)(`div`,{style:dn(.34,20),children:(0,Y.jsx)(v,{label:`Your role`,placeholder:`What do you do for work?`,value:c,onChange:e=>l(e.target.value),className:Be,required:!0,fullWidth:!0})}),(0,Y.jsx)(`div`,{style:dn(.41,10),children:(0,Y.jsx)(ln,{label:`Any hobbies?`,placeholder:`Cars, books, growing tomatoes?`,values:d,onChange:f,suggestions:un})})]}),(0,Y.jsx)(`div`,{className:`mt-10 w-full`,style:dn(.5),children:(0,Y.jsx)(r,{type:`submit`,variant:`primary`,size:`regular`,rightIcon:(0,Y.jsx)(u,{size:16}),fullWidth:!0,disabled:!p,className:`h-11 text-base`,children:`Continue`})})]})]})})}function pn(){let e=W(),t=X.use.characters(),n=X.use.selectedIndex();return(0,q.useMemo)(()=>{let r=t[n],i=e?.colors.find(e=>e.id===r?.color)?.hex;return je(i??`var(--surface-base)`)},[e,t,n])}function Q({onBack:e,onNext:t,tone:n}){let r=pn(),i=n?n===`dark`?`#1A1A1A`:`#FFFFFF`:r.fg,a=`color-mix(in srgb, ${i} 10%, transparent)`,o=`color-mix(in srgb, ${i} 18%, transparent)`;return(0,Y.jsxs)(`div`,{className:`absolute left-4 top-6 z-10 flex items-center gap-3`,children:[(0,Y.jsx)(`button`,{type:`button`,onClick:e,"aria-label":`Back`,className:`flex cursor-pointer h-10 w-10 items-center justify-center rounded-full transition-colors duration-150`,style:{color:i,backgroundColor:a},onMouseEnter:e=>e.currentTarget.style.backgroundColor=o,onMouseLeave:e=>e.currentTarget.style.backgroundColor=a,children:(0,Y.jsx)(l,{className:`h-4 w-4`})}),t?(0,Y.jsx)(`button`,{type:`button`,onClick:t,"aria-label":`Forward`,className:`flex cursor-pointer h-10 w-10 items-center justify-center rounded-full transition-colors duration-150`,style:{color:i,backgroundColor:a},onMouseEnter:e=>e.currentTarget.style.backgroundColor=o,onMouseLeave:e=>e.currentTarget.style.backgroundColor=a,children:(0,Y.jsx)(u,{className:`h-4 w-4`})}):null]})}var mn=[`Ziggy`,`Quill`,`Luna`,`Remy`,`Cleo`,`Cade`];function hn(e,t){let n=[];for(let r=0;r<e;r++)r!==t&&n.push(r);return{centerChar:t,edgeOrder:n}}function gn({onContinue:e,onBack:t,onForward:n}){let i=W(),a=X.use.characters(),o=X.use.ensureGenerated(),s=X.use.selectedIndex(),c=X.use.setSelectedIndex();(0,q.useEffect)(()=>{i&&o(i)},[i,o]);let f=a.length,[m,h]=(0,q.useState)(null),[g,_]=(0,q.useState)(``),[v,y]=(0,q.useState)(!1),b=(0,q.useRef)(!1),x=(0,q.useRef)(null),{ref:S,size:C}=Le(),[w,T]=(0,q.useState)(null);(0,q.useEffect)(()=>{f>0&&m===null&&h(hn(f,s))},[f,s,m]),(0,q.useEffect)(()=>{m&&c(m.centerChar)},[m,c]);let E=m?.centerChar;(0,q.useEffect)(()=>{E!=null&&!b.current&&_(mn[E%mn.length])},[E]),(0,q.useEffect)(()=>{v&&(x.current?.focus(),x.current?.select())},[v]);function D(e){if(!m||e===m.centerChar)return;let t=m.edgeOrder.indexOf(e);if(t<0)return;let n=[...m.edgeOrder];n[t]=m.centerChar,T({entering:{char:e,fromSlot:t},exiting:{char:m.centerChar,toSlot:t}}),h({centerChar:e,edgeOrder:n})}let O=()=>m&&D((m.centerChar+1)%f),ee=()=>m&&D((m.centerChar-1+f)%f),k=(0,q.useMemo)(()=>m?a[m.centerChar]:void 0,[m,a]),A=!!i&&!!m&&!!k;function j(){k&&e({traits:k,name:g.trim()})}function M(){b.current=!0,_(e=>{let t=mn.filter(t=>t!==e),n=t.length>0?t:mn;return n[Math.floor(Math.random()*n.length)]})}let N=`pointer-events-auto z-10 flex cursor-pointer h-10 w-10 items-center justify-center rounded-full bg-[color-mix(in_srgb,var(--content-default)_10%,transparent)] text-[var(--content-default)] transition-colors duration-150 hover:bg-[color-mix(in_srgb,var(--content-default)_18%,transparent)]`;return(0,Y.jsx)(`div`,{ref:S,"data-theme":`dark`,className:`relative h-full overflow-hidden bg-[var(--surface-base)] text-[var(--content-default)]`,children:(0,Y.jsxs)(Pt,{size:C,children:[A&&(0,Y.jsx)(Qt,{components:i,characters:a,centerChar:m.centerChar,edgeOrder:m.edgeOrder,entering:w?.entering??null,exiting:w?.exiting??null,onEnterComplete:e=>T(t=>t?.entering.char===e?null:t),onSelectChar:D}),(0,Y.jsx)(Q,{tone:`light`,onBack:t,onNext:n?j:void 0}),(0,Y.jsx)(`h1`,{className:`absolute left-1/2 top-[22%] z-10 -translate-x-1/2 whitespace-nowrap text-center text-[2.6rem] leading-none max-md:w-[90vw] max-md:whitespace-normal max-md:text-[2.08rem]`,style:{fontFamily:`var(--font-serif)`,animation:`fadeInUp 0.4s ease-out both`},children:`Give me a face and a name`}),(0,Y.jsx)(`button`,{type:`button`,"aria-label":`Previous character`,onClick:ee,className:`absolute left-[calc(50%-170px)] top-[43%] -translate-y-1/2 ${N}`,children:(0,Y.jsx)(l,{className:`h-4 w-4`})}),(0,Y.jsx)(`button`,{type:`button`,"aria-label":`Next character`,onClick:O,className:`absolute right-[calc(50%-170px)] top-[43%] -translate-y-1/2 ${N}`,children:(0,Y.jsx)(u,{className:`h-4 w-4`})}),(0,Y.jsxs)(`div`,{className:`absolute left-1/2 top-[58%] z-10 flex -translate-x-1/2 flex-col items-center gap-10 max-md:top-[54%]`,children:[(0,Y.jsx)(`div`,{className:`flex flex-col items-center gap-4`,children:v?(0,Y.jsx)(`input`,{ref:x,value:g,onChange:e=>{b.current=!0,_(e.target.value)},onBlur:()=>y(!1),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),y(!1))},placeholder:`Name your assistant`,"aria-label":`Assistant name`,className:`w-[234px] rounded-2xl border border-[var(--border-element)] bg-transparent px-4 py-2.5 text-center text-lg text-[var(--content-default)] placeholder:text-[var(--content-tertiary)] outline-none transition-colors duration-150 focus:border-[var(--border-active)]`}):(0,Y.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,Y.jsxs)(`button`,{type:`button`,onClick:()=>y(!0),"aria-label":`Edit name`,className:`flex cursor-pointer items-center gap-2.5`,children:[(0,Y.jsx)(`span`,{className:`text-2xl font-medium ${g?`text-[var(--content-default)]`:`text-[var(--content-tertiary)]`}`,children:g||`Name your assistant`}),(0,Y.jsx)(p,{className:`h-5 w-5 text-[var(--content-tertiary)]`})]}),(0,Y.jsx)(`button`,{type:`button`,onClick:M,"aria-label":`Shuffle name`,title:`Shuffle name`,className:`cursor-pointer text-[var(--content-tertiary)] transition-[transform,color] duration-300 hover:rotate-180 hover:text-[var(--content-default)]`,children:(0,Y.jsx)(d,{className:`h-5 w-5`})})]})}),(0,Y.jsx)(r,{type:`button`,variant:`primary`,size:`regular`,rightIcon:(0,Y.jsx)(u,{size:16}),disabled:!A,onClick:j,className:`h-11 w-[234px] text-base`,children:`Continue`})]})]})})}var _n=.25,vn=.46,yn=.3,bn=.85,xn=40,Sn=14,Cn=8;function wn({entrance:e=!1,entranceDelay:t=0,bumpNonce:n=0,settleBlink:r=!0}){let i=W(),a=X.use.characters(),o=X.use.selectedIndex(),s=B(),{w:c,h:l}=Ft(),[u,d]=(0,q.useState)({x:0,y:0});(0,q.useEffect)(()=>{if(s)return;let e=e=>{d({x:(e.clientX/window.innerWidth-.5)*2,y:(e.clientY/window.innerHeight-.5)*2})};return window.addEventListener(`mousemove`,e),()=>window.removeEventListener(`mousemove`,e)},[s]);let f=e&&!s,p=Ee();(0,q.useEffect)(()=>{n>0&&!s&&p.start({y:[0,-34,8,0],transition:{duration:.45,ease:`easeOut`}})},[n,s,p]);let[m,h]=(0,q.useState)(!1),[g,_]=(0,q.useState)(!e);(0,q.useEffect)(()=>{if(s||!g)return;let e=!1,t,n=n=>{e||(h(!0),t=setTimeout(()=>{e||(h(!1),t=setTimeout(n,140))},140))},i=()=>{t=setTimeout(()=>n(i),2500+Math.random()*4e3)};return r?n(()=>n(i)):i(),()=>{e=!0,clearTimeout(t)}},[s,g,r]);let v=a.length>0?a[o]:void 0,y=(0,q.useMemo)(()=>{if(!i||!v)return null;let e=i.eyeStyles.find(e=>e.id===v.eyeStyle);return e?{paths:e.paths,bbox:F(e.paths.map(e=>I(e.svgPath)))}:null},[i,v]);if(!y)return null;let b=c*bn,x=Math.min(Math.min(c,l)*yn,b*y.bbox.h/y.bbox.w),S=x*y.bbox.w/y.bbox.h,C=(c-S)/2,w=l-(1-_n)*x+l*.05,T=xn/100*l-(w+x/2),E=(vn-_n)*x,D=y.bbox.x+y.bbox.w/2,O=y.bbox.y+y.bbox.h/2;return(0,Y.jsx)(R.div,{"aria-hidden":`true`,className:`pointer-events-none absolute z-[2]`,style:{left:C,top:w,width:S,height:x,transformOrigin:`center`},initial:f?{y:T,scale:.35}:!1,animate:f?{y:[T,E,0],scale:[.35,1,1]}:{y:0,scale:1},transition:f?{duration:1,delay:t,times:[0,.7,1],ease:`easeInOut`}:{duration:0},onAnimationComplete:()=>_(!0),children:(0,Y.jsx)(R.div,{animate:p,children:(0,Y.jsx)(`div`,{style:{transform:`translate(${u.x*Sn}px, ${u.y*Cn}px)`,transition:`transform 0.5s cubic-bezier(0.22, 1, 0.36, 1)`},children:(0,Y.jsx)(`svg`,{viewBox:`${y.bbox.x} ${y.bbox.y} ${y.bbox.w} ${y.bbox.h}`,width:S,height:x,style:{overflow:`visible`,display:`block`},children:(0,Y.jsx)(`g`,{style:{transform:m?`scaleY(0.1)`:`scaleY(1)`,transformOrigin:`${D}px ${O}px`,transition:`transform 0.14s ease-in-out`},children:y.paths.map((e,t)=>(0,Y.jsx)(`path`,{d:e.svgPath,fill:e.color},t))})})})})})}var Tn=200,En=40;function Dn({firstName:e,assistantName:t,onContinue:n,onBack:i,onForward:a}){let o=W(),s=X.use.characters(),c=X.use.selectedIndex(),l=B(),{ref:d,size:{w:f,h:p}}=Le(),m=pn(),h=s.length>0?s[c]:void 0,g=(0,q.useMemo)(()=>{if(!o||!h)return null;let e=o.bodyShapes.find(e=>e.id===h.bodyShape),t=o.colors.find(e=>e.id===h.color);return!e||!t?null:{body:e,color:t.hex}},[o,h]),_=e.trim()?`Hey, ${e.trim()}!`:`Hey!`,v=t?.trim()?`I’m ${t.trim()}, your new AI assistant.`:`I’m your new AI assistant.`;if(!g)return(0,Y.jsx)(`div`,{"data-theme":`dark`,className:`h-full`,style:{backgroundColor:`var(--surface-base)`}});let y=1.25*Math.max(f,p),b=y*g.body.viewBox.height/g.body.viewBox.width,x=(f-y)/2,S=(p-b)/2,C=Tn/y,w=(En/100-.5)*p;return(0,Y.jsx)(`div`,{ref:d,"data-theme":`dark`,className:`relative h-full overflow-hidden`,style:{backgroundColor:`var(--surface-base)`},children:(0,Y.jsxs)(Pt,{size:{w:f,h:p},children:[(0,Y.jsx)(R.div,{className:`absolute inset-0 z-0`,style:{backgroundColor:g.color},initial:l?!1:{opacity:0},animate:{opacity:1},transition:l?{duration:0}:{duration:.6,delay:.35}}),(0,Y.jsx)(R.svg,{"aria-hidden":`true`,className:`pointer-events-none absolute z-[1]`,viewBox:`0 0 ${g.body.viewBox.width} ${g.body.viewBox.height}`,width:y,height:b,style:{left:x,top:S,transformOrigin:`center`},initial:l?!1:{scale:C,y:w},animate:{scale:1,y:0},transition:l?{duration:0}:{type:`spring`,stiffness:78,damping:18,mass:1},children:(0,Y.jsx)(`path`,{d:g.body.svgPath,fill:g.color})}),(0,Y.jsx)(wn,{entrance:!0}),(0,Y.jsx)(R.div,{initial:l?!1:{opacity:0},animate:{opacity:1},transition:l?{duration:0}:{duration:.4,delay:1},children:(0,Y.jsx)(Q,{onBack:i,onNext:a})}),(0,Y.jsxs)(`div`,{className:ze,children:[(0,Y.jsxs)(R.h1,{className:`text-center leading-[1.15] max-md:leading-[1.25]`,style:{fontFamily:`var(--font-serif)`},initial:l?!1:{scale:.9,opacity:0},animate:{scale:1,opacity:1},transition:l?{duration:0}:{type:`spring`,stiffness:260,damping:11,delay:1},children:[(0,Y.jsx)(`span`,{className:`block text-[clamp(2.5rem,6vw,5rem)]`,style:{color:m.fgDeep},children:_}),(0,Y.jsx)(`span`,{className:`block text-[clamp(2.5rem,6vw,5rem)]`,style:{color:m.fg},children:v})]}),(0,Y.jsx)(R.div,{initial:l?!1:{opacity:0,y:8},animate:{opacity:1,y:0},transition:l?{duration:0}:{duration:.4,delay:1.15},children:(0,Y.jsx)(r,{type:`button`,variant:`primary`,size:`regular`,rightIcon:(0,Y.jsx)(u,{size:16}),onClick:n,className:`h-11 w-[234px] text-base`,children:`Continue`})})]})]})})}var On=.3,kn=.85,An=.25;function jn(){let e=W(),t=X.use.characters(),n=X.use.selectedIndex(),r=t.length>0?t[n]:void 0,{w:i,h:a}=Ft(),o=(0,q.useMemo)(()=>{if(!e||!r)return null;let t=e.eyeStyles.find(e=>e.id===r.eyeStyle);return t?{paths:t.paths,bbox:F(t.paths.map(e=>I(e.svgPath)))}:null},[e,r]),s=o?Math.min(Math.min(i,a)*On,i*kn*o.bbox.h/o.bbox.w):0;return{art:o,eyesW:o?s*o.bbox.w/o.bbox.h:0,eyesH:s,restCy:a-An*s,centerX:i/2,w:i,h:a}}function Mn({art:e,eyesW:t,eyesH:n,centerX:r,eyeCy:i,eyeScale:a,eyeX:o,blinking:s,className:c=`pointer-events-none absolute top-0 z-0`}){let l=Ce(i,e=>e-n/2),u=e.bbox.x+e.bbox.w/2,d=e.bbox.y+e.bbox.h/2;return(0,Y.jsx)(R.div,{"aria-hidden":`true`,className:c,style:{left:r-t/2,top:0,x:o,y:l,width:t,height:n,scale:a,transformOrigin:`center`},children:(0,Y.jsx)(`svg`,{viewBox:`${e.bbox.x} ${e.bbox.y} ${e.bbox.w} ${e.bbox.h}`,width:t,height:n,style:{overflow:`visible`,display:`block`},children:(0,Y.jsx)(`g`,{style:{transform:s?`scaleY(0.1)`:`scaleY(1)`,transformOrigin:`${u}px ${d}px`,transition:`transform 0.13s ease-in-out`},children:e.paths.map((e,t)=>(0,Y.jsx)(`path`,{d:e.svgPath,fill:e.color},t))})})})}var Nn={green:[`pink`,`purple`,`orange`,`yellow`],orange:[`teal`,`purple`,`green`,`yellow`],pink:[`teal`,`green`,`yellow`,`purple`],purple:[`yellow`,`teal`,`green`,`orange`],teal:[`pink`,`orange`,`yellow`,`purple`],yellow:[`purple`,`teal`,`pink`,`green`]};function Pn(e,t){let n=Nn[e];return n&&n.length>0?n:t.filter(t=>t!==e)}var Fn=new Set([`orange`,`pink`,`red`]);function In(e,t){return Fn.has(e)&&Fn.has(t)}function Ln(e,t,n){let r=Pn(e,t),i=[];for(let e of r){if(i.length>=n)break;i.some(t=>In(t,e))||i.push(e)}for(let e of r){if(i.length>=n)break;i.includes(e)||i.push(e)}return i}var Rn=`You’ve used AI that just answers questions.`,zn=`The more I help,`,Bn=`I’m different.`,Vn=`the better I get,`,Hn=`and the less you have to do.`,Un=[{bodyShape:`blob`,eyeStyle:`gentle`},{bodyShape:`urchin`,eyeStyle:`curious`},{bodyShape:`star`,eyeStyle:`goofy`}],Wn=290;function Gn({firstH:e,secondH:t,color:n,firstText:r,secondText:i,revealed:a,carouseled:o,revealFrom:s,revealDuration:c,reduce:l}){let u=s===`bottom`?`inset(100% 0 0 0)`:`inset(0 0 100% 0)`;return!e||!t?null:(0,Y.jsx)(R.div,{className:`relative w-full overflow-hidden`,initial:!1,animate:{height:o?t:e},transition:l?{duration:0}:{duration:.5,ease:`easeInOut`},children:(0,Y.jsxs)(R.div,{className:`flex flex-col`,style:{color:n},initial:!1,animate:{y:o?-e:0},transition:l?{duration:0}:{duration:.5,ease:`easeInOut`},children:[(0,Y.jsx)(`div`,{className:`flex items-center justify-center`,style:{height:e},children:(0,Y.jsx)(R.span,{className:`block`,initial:!1,animate:{clipPath:a?`inset(0% 0 0% 0)`:u},transition:l?{duration:0}:{duration:c,ease:`easeOut`},children:r})}),(0,Y.jsx)(`div`,{className:`flex items-center justify-center`,style:{height:t},children:(0,Y.jsx)(`span`,{className:`block`,children:i})})]})})}function Kn({onContinue:e,onBack:t,onForward:n}){let i=pn(),a=B(),{art:o,eyesW:s,eyesH:c,restCy:l,centerX:d,w:f,h:p}=jn(),m=W(),h=X.use.characters(),g=X.use.selectedIndex(),_=h.length>0?h[g]:void 0,v=p>0&&p<=800,y=v?.17:.22,b=v?`top-[17%]`:`top-[22%]`,x=Te(0),S=Te(1),C=(0,q.useMemo)(()=>!m||!_?`orange`:Ln(_.color,m.colors.map(e=>e.id),1)[0]??`orange`,[m,_]),w=Math.min(220,Math.max(150,f*.16)),T=-w,E=-w*.4,D=Te(-220),O=(0,q.useMemo)(()=>!m||!_?[]:Ln(_.color,m.colors.map(e=>e.id),3),[m,_]),ee=Math.max(.42,Math.min(f/1100,1)),k=Math.round(Wn*ee),A=-k*1.1,j=-k*.42,M=Te(-320),[N,te]=(0,q.useState)(!!a),[ne,re]=(0,q.useState)(!!a),[ie,ae]=(0,q.useState)(!1),[oe,se]=(0,q.useState)(!1),[P,ce]=(0,q.useState)(!1),[le,ue]=(0,q.useState)(!1),[de,fe]=(0,q.useState)(!!a),pe=Math.min(f,768)-48,me=(0,q.useRef)(null),F=(0,q.useRef)(null),he=(0,q.useRef)(null),I=(0,q.useRef)(null),ge=(0,q.useRef)(null),[_e,ve]=(0,q.useState)(0),[ye,be]=(0,q.useState)(0),[xe,Se]=(0,q.useState)(0),[Ce,we]=(0,q.useState)(0),[Ee,De]=(0,q.useState)(0);return(0,q.useLayoutEffect)(()=>{me.current?.offsetHeight&&ve(me.current.offsetHeight),F.current?.offsetHeight&&be(F.current.offsetHeight),he.current?.offsetHeight&&Se(he.current.offsetHeight),I.current?.offsetHeight&&we(I.current.offsetHeight),ge.current?.offsetHeight&&De(ge.current.offsetHeight)},[pe]),(0,q.useEffect)(()=>{x.set(l),ue(!0)},[l,x]),(0,q.useEffect)(()=>{if(!a)return;let e=setTimeout(()=>{ae(!0),se(!0),ce(!0)},1400);return()=>clearTimeout(e)},[a]),(0,q.useEffect)(()=>{if(a||!o)return;x.set(l),S.set(1),D.set(T),M.set(A),te(!1),re(!1),ae(!1),se(!1);let e=Math.max(c*.5,p*y-36),t=[],n=[],r=!1,i=e=>(t.push(e),e),s=e=>new Promise(t=>{n.push(setTimeout(t,e))});return(async()=>{if(await s(200),r||(te(!0),await Promise.all([i(L(x,e,{duration:.55,ease:`easeOut`})),i(L(S,.55,{duration:.55,ease:`easeOut`}))]),r)||(re(!0),await Promise.all([i(L(x,l,{type:`spring`,stiffness:210,damping:15})),i(L(S,1,{duration:.45,ease:`easeOut`}))]),r)||(await s(900),r)||(ae(!0),se(!0),await i(L(D,[T,E,E,T],{duration:1.5,times:[0,.28,.62,1],ease:[`easeOut`,`easeInOut`,`easeInOut`]})),r)||(await s(150),r))return;ce(!0);let t=i(L(M,[A,j,j,A],{duration:1.5,times:[0,.28,.62,1],ease:[`easeOut`,`easeInOut`,`easeInOut`]}));await s(700),!r&&(fe(!0),await t)})(),()=>{r=!0,t.forEach(e=>e.stop()),n.forEach(clearTimeout)}},[a,o,p,y,c,l,x,S,D,T,E,M,A,j]),(0,Y.jsxs)(`div`,{className:`absolute inset-0 z-10 overflow-hidden`,style:{color:i.fg},children:[(0,Y.jsx)(Q,{onBack:t,onNext:n}),(0,Y.jsxs)(`div`,{"aria-hidden":`true`,className:`pointer-events-none invisible absolute -left-[9999px] top-0 text-[clamp(2.25rem,5.5vw,4.5rem)] leading-[1.15]`,style:{width:pe,fontFamily:`var(--font-serif)`},children:[(0,Y.jsx)(`span`,{ref:me,className:`block`,children:Rn}),(0,Y.jsx)(`span`,{ref:F,className:`block`,children:zn}),(0,Y.jsx)(`span`,{ref:he,className:`block`,children:Bn}),(0,Y.jsx)(`span`,{ref:I,className:`block`,children:Vn}),(0,Y.jsx)(`span`,{ref:ge,className:`block`,children:Hn})]}),le&&o&&(0,Y.jsx)(Mn,{art:o,eyesW:s,eyesH:c,centerX:d,eyeCy:x,eyeScale:S,blinking:!1}),!a&&m&&(0,Y.jsx)(R.div,{"aria-hidden":`true`,className:`pointer-events-none absolute z-[1]`,style:{left:Math.max(16,f*.05),top:0,y:D,width:w,height:w},children:(0,Y.jsx)(U,{components:m,traits:{bodyShape:`blob`,eyeStyle:`goofy`,color:C},size:w,breathe:!1})}),!a&&m&&(0,Y.jsx)(R.div,{"aria-hidden":`true`,className:`pointer-events-none absolute right-0 top-0 z-[1] flex items-start`,style:{right:-Math.round(k*.12),y:M},children:Un.map((e,t)=>(0,Y.jsx)(`div`,{style:{width:k,height:k,marginLeft:t===0?0:-k*.34,zIndex:Un.length-t},children:(0,Y.jsx)(U,{components:m,traits:{bodyShape:e.bodyShape,eyeStyle:e.eyeStyle,color:O[t]??`teal`},size:k,breathe:!1})},e.bodyShape))}),(0,Y.jsxs)(`div`,{className:`${ze.replace(`top-[30%]`,b)} max-w-3xl max-md:top-[34%]`,children:[(0,Y.jsxs)(`div`,{className:`flex w-full flex-col gap-3 text-[clamp(2.25rem,5.5vw,4.5rem)] leading-[1.15]`,style:{fontFamily:`var(--font-serif)`},children:[(0,Y.jsx)(Gn,{firstH:_e,secondH:ye,color:i.fgDeep,firstText:Rn,secondText:zn,revealed:N,carouseled:ie,revealFrom:`bottom`,revealDuration:.55,reduce:!!a}),(0,Y.jsx)(Gn,{firstH:xe,secondH:Ce,color:i.fg,firstText:Bn,secondText:Vn,revealed:ne,carouseled:oe,revealFrom:`top`,revealDuration:.45,reduce:!!a}),(0,Y.jsx)(R.div,{className:`relative w-full overflow-hidden`,style:{color:i.fg},initial:!1,animate:{height:P?Ee:0},transition:a?{duration:0}:{duration:.5,ease:`easeInOut`},children:Ee>0&&(0,Y.jsx)(`div`,{className:`flex items-center justify-center`,style:{height:Ee},children:(0,Y.jsx)(R.span,{className:`block`,initial:!1,animate:{clipPath:P?`inset(0% 0 0% 0)`:`inset(100% 0 0 0)`},transition:a?{duration:0}:{duration:.5,ease:`easeOut`},children:Hn})})})]}),de&&(0,Y.jsx)(R.div,{initial:a?!1:{opacity:0,y:8},animate:{opacity:1,y:0},transition:a?{duration:0}:{duration:.4},children:(0,Y.jsx)(r,{type:`button`,variant:`primary`,size:`regular`,rightIcon:(0,Y.jsx)(u,{size:16}),onClick:e,className:`h-11 w-[234px] text-base`,children:`Continue`})})]})]})}function qn({idSuffix:e}){let t=`cf-${e}`,n=`cr-${e}`,r=`cg-${e}`,i=`cs-${e}`;return(0,Y.jsxs)(`svg`,{viewBox:`0 0 100 100`,width:`100%`,height:`100%`,style:{display:`block`,position:`absolute`,inset:0},children:[(0,Y.jsxs)(`defs`,{children:[(0,Y.jsxs)(`linearGradient`,{id:n,x1:`0.12`,y1:`0.05`,x2:`0.85`,y2:`0.95`,children:[(0,Y.jsx)(`stop`,{offset:`0%`,stopColor:`#FFF0AE`}),(0,Y.jsx)(`stop`,{offset:`50%`,stopColor:`#F4C231`}),(0,Y.jsx)(`stop`,{offset:`100%`,stopColor:`#D29B1A`})]}),(0,Y.jsxs)(`radialGradient`,{id:t,cx:`42%`,cy:`36%`,r:`82%`,children:[(0,Y.jsx)(`stop`,{offset:`0%`,stopColor:`#FFF6CE`}),(0,Y.jsx)(`stop`,{offset:`55%`,stopColor:`#F8CB3E`}),(0,Y.jsx)(`stop`,{offset:`100%`,stopColor:`#EEB52C`})]}),(0,Y.jsxs)(`radialGradient`,{id:r,cx:`36%`,cy:`24%`,r:`44%`,children:[(0,Y.jsx)(`stop`,{offset:`0%`,stopColor:`#FFFFFF`,stopOpacity:`0.85`}),(0,Y.jsx)(`stop`,{offset:`100%`,stopColor:`#FFFFFF`,stopOpacity:`0`})]}),(0,Y.jsxs)(`radialGradient`,{id:i,cx:`50%`,cy:`50%`,r:`50%`,children:[(0,Y.jsx)(`stop`,{offset:`0%`,stopColor:`#FFFFFF`,stopOpacity:`1`}),(0,Y.jsx)(`stop`,{offset:`100%`,stopColor:`#FFFFFF`,stopOpacity:`0`})]})]}),(0,Y.jsx)(`circle`,{cx:`50`,cy:`50`,r:`49`,fill:`url(#${n})`}),(0,Y.jsx)(`circle`,{cx:`50`,cy:`50`,r:`45.5`,fill:`none`,stroke:`#FFF6CF`,strokeOpacity:`0.6`,strokeWidth:`2.2`,strokeLinecap:`round`,strokeDasharray:`70 210`,transform:`rotate(-128 50 50)`}),(0,Y.jsx)(`circle`,{cx:`50`,cy:`50`,r:`40`,fill:`url(#${t})`}),(0,Y.jsx)(`circle`,{cx:`50`,cy:`50`,r:`40`,fill:`none`,stroke:`#C28F18`,strokeOpacity:`0.35`,strokeWidth:`1.4`}),(0,Y.jsxs)(`g`,{fontFamily:`var(--font-sans), system-ui, sans-serif`,fontWeight:900,fontSize:`58`,textAnchor:`middle`,children:[(0,Y.jsx)(`text`,{x:`50`,y:`50`,dy:`0.355em`,fill:`#C88E16`,transform:`translate(1.3 1.6)`,children:`$`}),(0,Y.jsx)(`text`,{x:`50`,y:`50`,dy:`0.355em`,fill:`#FFF6CF`,opacity:`0.7`,transform:`translate(-1.3 -1.5)`,children:`$`}),(0,Y.jsx)(`text`,{x:`50`,y:`50`,dy:`0.355em`,fill:`#F4C12A`,children:`$`})]}),(0,Y.jsx)(`ellipse`,{cx:`38`,cy:`28`,rx:`22`,ry:`14`,fill:`url(#${r})`}),(0,Y.jsx)(`ellipse`,{cx:`34`,cy:`24`,rx:`7`,ry:`4.5`,fill:`url(#${i})`})]})}function Jn({size:e,tiltX:t=0,tiltY:n=0,shadow:r=!0,spinning:i=!1,className:a}){return(0,Y.jsxs)(`div`,{style:{position:`relative`,width:e,height:e},children:[r&&(0,Y.jsx)(`div`,{"aria-hidden":`true`,style:{position:`absolute`,left:`50%`,bottom:-e*.14,width:e*.74,height:e*.16,transform:`translateX(-50%)`,background:`radial-gradient(ellipse at center, rgba(0,0,0,0.22), rgba(0,0,0,0) 70%)`,filter:`blur(2px)`}}),(0,Y.jsx)(`div`,{style:{width:e,height:e,perspective:e*10},children:(0,Y.jsxs)(R.div,{className:a,style:{width:e,height:e,position:`relative`,transformStyle:`preserve-3d`},initial:!1,animate:{rotateX:t,rotateY:i?[n,n+360,n+760,n+1180]:n},transition:i?{duration:.95,times:[0,.32,.62,1],ease:`easeInOut`}:{duration:0},children:[(0,Y.jsx)(`div`,{style:{position:`absolute`,inset:0,backfaceVisibility:`hidden`,transform:`translateZ(0.5px)`},children:(0,Y.jsx)(qn,{idSuffix:`front`})}),(0,Y.jsx)(`div`,{style:{position:`absolute`,inset:0,backfaceVisibility:`hidden`,transform:`translateZ(-0.5px) rotateY(180deg)`},children:(0,Y.jsx)(qn,{idSuffix:`back`})})]})})]})}var Yn=.3,Xn=.95;function Zn({onClaim:e,onBumpEyes:t,onBack:n,onForward:r}){let i=B(),a=pn(),{h:o}=Ft(),[s,c]=(0,q.useState)(!1);function l(){if(!s){if(c(!0),i){e();return}window.setTimeout(t,Yn*1e3)}}let d=o*.42,f=-o*.08,p=o*.9;return(0,Y.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:a.fg},children:[(0,Y.jsx)(Q,{onBack:n,onNext:r}),(0,Y.jsxs)(`div`,{className:`absolute left-1/2 top-[26%] flex w-full max-w-xl -translate-x-1/2 flex-col items-center gap-3 px-6 text-center`,children:[(0,Y.jsxs)(`h1`,{className:`text-[2.6rem] leading-[1.1] max-md:max-w-[80vw]`,style:{fontFamily:`var(--font-serif)`},children:[`Here are some free credits`,(0,Y.jsx)(`br`,{className:`max-md:hidden`}),` to get started.`]}),(0,Y.jsx)(`div`,{className:`mt-10 flex flex-col items-center gap-4`,children:(0,Y.jsx)(R.div,{animate:s&&!i?{y:[0,d,f,p],scale:[1,1,1,.2],opacity:[1,1,1,0]}:{},transition:{duration:Xn,times:[0,Yn/Xn,.62,1],ease:[`easeIn`,`easeOut`,`easeIn`]},onAnimationComplete:()=>{s&&e()},children:(0,Y.jsx)(Jn,{size:88,spinning:s&&!i})})}),!s&&(0,Y.jsxs)(`button`,{type:`button`,onClick:l,className:`flex cursor-pointer h-11 w-[234px] items-center justify-center gap-2 rounded-[10px] text-body-medium-default transition-transform duration-150 active:scale-[0.97]`,style:{marginTop:Math.round(24+o*.05),backgroundColor:a.isLight?`#1A1A1A`:`#FFFFFF`,color:a.isLight?`#FFFFFF`:`#1A1A1A`},children:[`Claim`,(0,Y.jsx)(u,{className:`h-4 w-4`})]})]})]})}Ne();var Qn=640,$n=[{id:`companion-coworker`,left:`Companion`,right:`Coworker`,leftAvatar:{bodyShape:`blob`,eyeStyle:`gentle`,color:`pink`},rightAvatar:{bodyShape:`ninja`,eyeStyle:`curious`,color:`purple`}},{id:`genz-boomer`,left:`Gen Z`,right:`Baby Boomer`,leftAvatar:{bodyShape:`burst`,eyeStyle:`quirky`,color:`yellow`},rightAvatar:{bodyShape:`cloud`,eyeStyle:`dazed`,color:`green`}},{id:`execute-collaborate`,left:`Independent`,right:`Collaborative`,leftAvatar:{bodyShape:`star`,eyeStyle:`angry`,color:`orange`},rightAvatar:{bodyShape:`flower`,eyeStyle:`goofy`,color:`teal`}},{id:`playful-serious`,left:`Playful`,right:`Serious`,leftAvatar:{bodyShape:`star`,eyeStyle:`goofy`,color:`yellow`},rightAvatar:{bodyShape:`blob`,eyeStyle:`grumpy`,color:`purple`}},{id:`polite-unfiltered`,left:`Polite`,right:`Unfiltered`,leftAvatar:{bodyShape:`sprout`,eyeStyle:`bashful`,color:`green`},rightAvatar:{bodyShape:`urchin`,eyeStyle:`surprised`,color:`orange`}}],er=[`9%`,`27%`,`45%`,`62%`,`79%`],tr=50,nr=.3*.75,rr=`rgba(36, 41, 46, 0.2)`,ir=`#FDFDFC`,ar=.16;function or(e,t,n){let r=[];for(let i=0;i<e.length;i++){let a=r[i-1],o=e[i+1],s=e[i]??``,c=e=>e===t||e===a;if(!c(s)){r.push(s);continue}let l=n.find(e=>!c(e)&&e!==o)??n.find(e=>!c(e))??s;r.push(l)}return r}function sr(){let[e,t]=(0,q.useState)(()=>typeof window>`u`?1280:window.innerWidth);return(0,q.useEffect)(()=>{let e=()=>t(window.innerWidth);return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),e}function cr({components:e,traits:t,side:n,top:r,size:i,progress:a}){let o=Math.max(0,Math.min(1,a)),s=100+ar*100,c=n===`left`?-100+s*o:100-s*o;return(0,Y.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute`,style:{[n]:`calc(50% - 50vw)`,top:r,width:i,height:i,opacity:Math.min(1,o*1.6),transform:`translate(${c}%, -50%) scale(${.8+.2*o})`,transformOrigin:`${n} center`,transition:`transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease`,willChange:`transform, opacity`},children:(0,Y.jsx)(U,{components:e,traits:t,size:i,breathe:!1})})}function lr({axis:e,value:t,onValueChange:n,fg:r,disabled:i}){return(0,Y.jsxs)(`div`,{className:`flex w-full shrink-0 flex-wrap items-center gap-x-5 gap-y-1.5 sm:flex-nowrap`,style:{opacity:i?.7:1},children:[(0,Y.jsx)(`span`,{className:`order-1 flex-1 text-left text-sm sm:w-32 sm:flex-none sm:text-right sm:text-[17px]`,style:{color:r},children:e.left}),(0,Y.jsx)(`span`,{className:`order-2 flex-1 text-right text-sm sm:order-3 sm:w-32 sm:flex-none sm:text-left sm:text-[17px]`,style:{color:r},children:e.right}),(0,Y.jsxs)(x,{className:`relative order-3 flex h-6 w-full touch-none items-center select-none sm:order-2 sm:w-auto sm:flex-1`,value:[t],onValueChange:e=>n(e[0]??tr),disabled:i,min:0,max:100,step:1,"aria-label":`${e.left} to ${e.right}`,children:[(0,Y.jsx)(y,{className:`relative h-2 w-full grow rounded-full sm:h-3`,style:{backgroundColor:rr}}),(0,Y.jsx)(b,{className:`block h-5 w-5 cursor-grab rounded-full shadow-sm transition-transform active:scale-95 active:cursor-grabbing keyboard-focus:outline-none keyboard-focus:ring-2 keyboard-focus:ring-white/70 data-[disabled]:cursor-not-allowed data-[disabled]:active:scale-100 sm:h-6 sm:w-6`,style:{backgroundColor:ir}})]})]})}function ur({components:e,values:t,sideAvatars:n,size:r}){return(0,Y.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 -z-10`,children:$n.map((i,a)=>{let o=t[i.id]??tr,s=Math.max(0,(tr-o)/tr),c=Math.max(0,(o-tr)/tr),l=er[a]??`50%`,u=n[a];return u?(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(cr,{components:e,traits:u.left,side:`left`,top:l,size:r,progress:s}),(0,Y.jsx)(cr,{components:e,traits:u.right,side:`right`,top:l,size:r,progress:c})]},i.id):null})})}function dr({values:e,onValueChange:t,locked:n,onContinue:r,onBack:i,onForward:a}){let o=pn(),s=W(),c=sr(),{w:l,h:d}=Ft(),f=Math.round(nr*Math.min(l,d))+12,p=c>=Qn,m=X.use.characters()[X.use.selectedIndex()]?.color,h=Math.round(Math.min(300,Math.max(160,c*.16))),g=(0,q.useMemo)(()=>{let e=s?.colors.map(e=>e.id)??[],t=or($n.map(e=>e.leftAvatar.color),m,e),n=or($n.map(e=>e.rightAvatar.color),m,e);return $n.map((e,r)=>({left:{...e.leftAvatar,color:t[r]??e.leftAvatar.color},right:{...e.rightAvatar,color:n[r]??e.rightAvatar.color}}))},[s,m]);return(0,Y.jsxs)(`div`,{className:`absolute inset-0 z-10 overflow-hidden`,style:{color:o.fg},children:[(0,Y.jsx)(Q,{onBack:i,onNext:a}),p&&s&&(0,Y.jsx)(ur,{components:s,values:e,sideAvatars:g,size:h}),(0,Y.jsxs)(`div`,{className:`absolute inset-x-0 top-0 bottom-0 mx-auto flex w-full max-w-2xl flex-col items-center overflow-y-auto px-6`,style:{paddingBottom:f},children:[(0,Y.jsx)(`div`,{className:`w-full min-h-14 shrink-[4]`,style:{flexBasis:Math.round(d*.14)}}),(0,Y.jsxs)(`div`,{className:`flex shrink-0 flex-col items-center gap-4`,children:[(0,Y.jsx)(`h1`,{className:`text-center text-[2.6rem] leading-none`,style:{fontFamily:`var(--font-serif)`},children:`Create my personality`}),n?(0,Y.jsx)(`p`,{className:`text-center text-[15px]`,style:{color:o.fgMuted},children:`Personality locked — chat with your assistant to make any more updates`}):null]}),(0,Y.jsx)(`div`,{className:`w-full min-h-3 shrink-[2]`,style:{flexBasis:Math.round(40+d*.03)}}),$n.map((r,i)=>(0,Y.jsxs)(q.Fragment,{children:[i>0&&(0,Y.jsx)(`div`,{className:`w-full min-h-2.5 shrink basis-8 sm:basis-11`}),(0,Y.jsx)(lr,{axis:r,value:e[r.id]??tr,onValueChange:e=>t(r.id,e),fg:o.fg,disabled:n})]},r.id)),(0,Y.jsx)(`div`,{className:`w-full min-h-3 shrink-[2] basis-14`}),(0,Y.jsxs)(`button`,{type:`button`,onClick:r,className:`flex h-11 w-[234px] shrink-0 cursor-pointer items-center justify-center gap-2 rounded-[10px] text-body-medium-default transition-transform duration-150 active:scale-[0.97]`,style:{backgroundColor:o.isLight?`#1A1A1A`:`#FFFFFF`,color:o.isLight?`#FFFFFF`:`#1A1A1A`},children:[`Continue`,(0,Y.jsx)(u,{className:`h-4 w-4`})]})]})]})}function fr({assistantId:e,assistantReady:t,onConnected:n,onSkip:r,onBack:i,onForward:a,missingCalendarScope:o=!1,onRetry:s,hatchError:c=null}){let l=pn(),{handleConnect:u,oauthInProgress:d}=we({assistantId:e??``,onConnect:n}),p=()=>{s?.(),u()},m=!e||!t,h=m||d;return(0,Y.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:l.fg},children:[(0,Y.jsx)(Q,{onBack:i,onNext:a}),(0,Y.jsxs)(`div`,{className:`absolute left-1/2 top-[26%] flex w-[360px] -translate-x-1/2 flex-col items-center gap-5 text-center`,children:[(0,Y.jsx)(`h1`,{className:`text-[2.6rem] leading-tight`,style:{fontFamily:`var(--font-serif)`},children:m?`Waking up`:o?`Access not enabled`:`Let me make this easy`}),(0,Y.jsx)(`p`,{className:`text-[16px]`,style:{color:l.fgMuted},children:m?`Your assistant is getting ready`:o?`Check the box next to the Google Calendar permission so I can book the check-in.`:`Connect your Google Calendar so I can find time to check in and start helping.`}),(0,Y.jsxs)(`div`,{className:`mt-6 flex w-[234px] flex-col items-center gap-4`,children:[(0,Y.jsx)(`button`,{type:`button`,onClick:p,disabled:h,className:`flex cursor-pointer h-11 w-full items-center justify-center gap-2 rounded-[10px] text-body-medium-default transition-transform duration-150 enabled:active:scale-[0.97] disabled:cursor-not-allowed disabled:opacity-60`,style:{backgroundColor:l.isLight?`#1A1A1A`:`#FFFFFF`,color:l.isLight?`#FFFFFF`:`#1A1A1A`},children:m?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(f,{className:`h-4 w-4 animate-spin`,"aria-hidden":!0}),`Starting assistant…`]}):d?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(f,{className:`h-4 w-4 animate-spin`,"aria-hidden":!0}),`Waiting for authorization…`]}):o?`Try again`:`Connect Calendar →`}),(!m||c)&&(0,Y.jsx)(`button`,{type:`button`,onClick:r,disabled:d,className:`cursor-pointer text-body-small-default transition-opacity hover:opacity-100 disabled:opacity-60`,style:{color:l.fgMuted},children:`Skip for now`})]})]})]})}var pr=je(`#17191C`);function mr(){let[e,t]=(0,q.useState)(()=>({w:typeof window>`u`?1280:window.innerWidth,h:typeof window>`u`?800:window.innerHeight}));return(0,q.useEffect)(()=>{let e=()=>t({w:window.innerWidth,h:window.innerHeight});return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),e}function hr(){let e=W(),t=X.use.characters(),n=X.use.selectedIndex();return{components:e,chosen:t.length>0?t[n]:void 0}}function gr({size:e=64,isAssistantBusy:t=!1}){let{components:n,chosen:r}=hr();return!n||!r?(0,Y.jsx)(`div`,{style:{width:e,height:e}}):(0,Y.jsx)(`div`,{className:`shrink-0`,style:{width:e,height:e},children:(0,Y.jsx)(U,{components:n,traits:r,size:e,isAssistantBusy:t})})}var _r=`pt-[0.7rem] text-[2.6rem] leading-none`,vr=64,yr=4500,br=7e3;function xr({onDone:e,onBack:t,onForward:n,scheduledTime:r,awaitingTime:i}){let{components:a,chosen:o}=hr(),s=B(),{w:c,h:l}=mr(),u=r?`Check-in scheduled for tomorrow at ${r}!`:`Check-in scheduled!`;(0,q.useEffect)(()=>{let t=setTimeout(e,i&&!r?br:yr);return()=>clearTimeout(t)},[e,i,r]);let d=(0,q.useRef)(null),[f,p]=(0,q.useState)(null);(0,q.useLayoutEffect)(()=>{let e=()=>{let e=d.current?.getBoundingClientRect();e&&p({cx:e.left+e.width/2,cy:e.top+e.height/2})};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[u]);let m=1.3*Math.max(c,l)/vr,h=f?c/2-f.cx:0,g=f?l*.88-f.cy:0,_=l*.05;return(0,Y.jsxs)(`div`,{className:`absolute inset-0 z-10 overflow-hidden text-white`,children:[(0,Y.jsx)(Q,{onBack:t,onNext:n,tone:`light`}),(0,Y.jsxs)(`div`,{className:`absolute left-1/2 top-[14%] sm:top-[26%] flex w-full max-w-xl -translate-x-1/2 items-start gap-3 px-6`,children:[(0,Y.jsx)(`div`,{ref:d,className:`relative shrink-0`,style:{width:vr,height:vr},children:a&&o&&f&&(0,Y.jsx)(R.div,{className:`absolute inset-0`,style:{transformOrigin:`center`},initial:s?!1:{scale:m,x:h,y:g},animate:{x:[h,h,0,0],y:[g,g+_,0,0],scale:[m,m,1.07,1]},transition:s?{duration:0}:{duration:1.1,times:[0,.18,.82,1],ease:[`easeOut`,`easeIn`,`easeOut`]},children:(0,Y.jsx)(U,{components:a,traits:o,size:vr})})}),(0,Y.jsx)(R.span,{className:_r,style:{fontFamily:`var(--font-serif)`},initial:s?!1:{opacity:0,x:-8},animate:{opacity:1,x:0},transition:s?{duration:0}:{duration:.4,delay:.9},children:u})]})]})}var Sr=[`Searching the web to get to know you…`,`Reading public profiles…`,`Skimming the highlights…`,`Connecting the dots…`,`Piecing it together…`],Cr=[`Updating my personality…`,`Finding my voice…`,`Getting into character…`],wr=`Almost there…`,Tr=[...Sr,wr],Er=[...Cr,wr],Dr=2800;function Or({onDone:e,onBack:t,onAdvance:n,onForward:r,ready:i}){let a=pr,[o,s]=(0,q.useState)(0);return(0,q.useEffect)(()=>{n?.(o);let t=o>=Tr.length-1;if(i&&t){let t=setTimeout(e,Dr);return()=>clearTimeout(t)}let r=setTimeout(()=>s(e=>(e+1)%Tr.length),Dr);return()=>clearTimeout(r)},[o,i,e,n]),(0,Y.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:a.fg},children:[(0,Y.jsx)(Q,{onBack:t,onNext:r}),(0,Y.jsxs)(`div`,{className:`absolute left-1/2 top-1/2 flex w-full max-w-xl -translate-x-1/2 -translate-y-1/2 items-center gap-3 px-6`,children:[(0,Y.jsx)(gr,{isAssistantBusy:!0}),(0,Y.jsx)(z,{mode:`wait`,children:(0,Y.jsx)(R.p,{className:`${_r} flex min-h-[4.4rem] items-center !pt-0 !text-[2.08rem]`,style:{fontFamily:`var(--font-serif)`},initial:{y:12,opacity:0},animate:{y:0,opacity:1},exit:{y:-12,opacity:0},transition:{duration:.35},children:Tr[o]},o)})]})]})}function kr({onDone:e,ready:t}){let n=pr,[r,i]=(0,q.useState)(0);return(0,q.useEffect)(()=>{let n=Er.length-1;if(t){if(r!==n){i(n);return}let t=setTimeout(e,Dr);return()=>clearTimeout(t)}let a=setTimeout(()=>i(e=>(e+1)%Er.length),Dr);return()=>clearTimeout(a)},[r,t,e]),(0,Y.jsx)(`div`,{className:`absolute inset-0 z-10`,style:{color:n.fg},children:(0,Y.jsxs)(`div`,{className:`absolute left-1/2 top-[14%] sm:top-[26%] flex w-full max-w-xl -translate-x-1/2 items-start gap-3 px-6`,children:[(0,Y.jsx)(gr,{isAssistantBusy:!0}),(0,Y.jsx)(z,{mode:`wait`,children:(0,Y.jsx)(R.p,{className:_r,style:{fontFamily:`var(--font-serif)`},initial:{y:12,opacity:0},animate:{y:0,opacity:1},exit:{y:-12,opacity:0},transition:{duration:.35},children:Er[r]},r)})]})})}function Ar({claims:e,loading:t,onContinue:n,onRejectAll:r,onBack:i,onForward:a}){let o=pr,s=B(),[c,l]=(0,q.useState)(()=>new Set),d=e.filter(e=>!c.has(e.claim)),f=d.length>0,p=!t;return(0,Y.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:o.fg},children:[(0,Y.jsx)(Q,{onBack:i,onNext:a}),(0,Y.jsxs)(`div`,{className:`absolute bottom-0 left-1/2 top-[11%] sm:top-[8%] z-10 flex w-full max-w-xl -translate-x-1/2 flex-col px-6 pb-8`,children:[(0,Y.jsxs)(`div`,{className:`flex min-h-0 flex-col overflow-y-auto [&::-webkit-scrollbar]:hidden [scrollbar-width:none]`,children:[(0,Y.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,Y.jsx)(gr,{}),(0,Y.jsx)(`h1`,{className:`text-[2.2rem] leading-none`,style:{fontFamily:`var(--font-serif)`},children:`This is what I found about you`})]}),(0,Y.jsx)(`p`,{className:`mb-7 mt-2 text-[15px]`,style:{color:o.fgMuted},children:f?t?`Still checking the rest. You can review these as they come in.`:`I searched the web. Feel free to remove anything that isn’t true.`:t?`Still putting this together…`:`I didn’t turn up much — we can fill it in as we chat.`}),(0,Y.jsx)(`div`,{className:`flex flex-col gap-3`,children:(0,Y.jsx)(z,{children:d.map(e=>(0,Y.jsxs)(R.div,{layout:!0,initial:s?!1:{opacity:0,y:10},animate:{opacity:1,y:0},exit:s?void 0:{opacity:0,scale:.95},className:`flex items-center justify-between gap-3 rounded-2xl px-5 py-4 text-[15px]`,style:{backgroundColor:o.isLight?`rgba(0,0,0,0.06)`:`rgba(255,255,255,0.1)`},children:[(0,Y.jsx)(`span`,{children:e.claim}),(0,Y.jsx)(`button`,{type:`button`,"aria-label":`Remove "${e.claim}"`,onClick:()=>l(t=>new Set(t).add(e.claim)),className:`flex cursor-pointer h-6 w-6 shrink-0 items-center justify-center rounded-full transition-opacity hover:opacity-100`,style:{color:o.fgMuted},children:(0,Y.jsx)(g,{className:`h-4 w-4`})})]},e.claim))})}),f&&p&&(0,Y.jsx)(`button`,{type:`button`,onClick:r,className:`mt-5 self-start shrink-0 cursor-pointer text-[14px] underline underline-offset-2 transition-opacity hover:opacity-80`,style:{color:o.fgMuted},children:`This is not me`})]}),(0,Y.jsxs)(`button`,{type:`button`,onClick:()=>n([...c]),disabled:!p,className:`mt-8 flex cursor-pointer h-11 w-[200px] shrink-0 items-center justify-center gap-2 rounded-[10px] text-body-medium-default transition duration-150 enabled:active:scale-[0.97] disabled:cursor-not-allowed disabled:opacity-60`,style:{backgroundColor:o.isLight?`#1A1A1A`:`#FFFFFF`,color:o.isLight?`#FFFFFF`:`#1A1A1A`},children:[p?`Continue`:`Still searching…`,p&&(0,Y.jsx)(u,{className:`h-4 w-4`})]})]})]})}var $=38,jr=$;function Mr({head:e,note:t,flyToNote:n,reduce:r,onLanded:i}){let{components:a,chosen:o}=hr();if(!a||!o)return null;let s=$/2,c=n&&t?t:e,l={x:c.x-s,y:c.y-s};return(0,Y.jsx)(R.div,{className:`pointer-events-none absolute left-0 top-0`,style:{width:$,height:$,transformOrigin:`center`},initial:!1,animate:l,transition:r?{duration:0}:n&&t?{type:`spring`,duration:.9,bounce:.45}:{duration:.4},onAnimationComplete:()=>{n&&t&&i()},children:(0,Y.jsx)(U,{components:a,traits:o,size:$})})}function Nr({installedPlugins:e=[],pluginCatalog:t={},onStart:n,onBack:r,onForward:i,disabled:a=!1}){let o=pr,s=B(),[c,l]=(0,q.useState)(!1),{components:d,chosen:f}=hr(),{h:p}=mr(),m=e.map(e=>({name:e,displayName:V(e),description:t[e]?.trim()??``})).filter(e=>e.displayName.length>0),h=m.length>0,g=(0,q.useRef)(null),_=(0,q.useRef)(null),v=(0,q.useRef)(null),[y,b]=(0,q.useState)(null),[x,S]=(0,q.useState)(!1),[C,w]=(0,q.useState)(!1),T=(0,q.useRef)(!1);(0,q.useEffect)(()=>{T.current=x},[x]),(0,q.useLayoutEffect)(()=>{let e=g.current,t=_.current;if(!e||!t)return;let n=()=>{if(T.current)return;let n=e.getBoundingClientRect(),r=e=>({x:e.left-n.left+e.width/2,y:e.top-n.top+e.height/2}),i=v.current;b({head:r(t.getBoundingClientRect()),note:i?r(i.getBoundingClientRect()):void 0})};n();let r=new ResizeObserver(n);return r.observe(e),window.addEventListener(`resize`,n),()=>{r.disconnect(),window.removeEventListener(`resize`,n)}},[]);let E=y?.note?.y;return(0,q.useEffect)(()=>{E===void 0||x||S(!0)},[E,x]),(0,Y.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:o.fg},children:[(0,Y.jsx)(Q,{onBack:r,onNext:i}),(0,Y.jsxs)(`div`,{ref:g,className:`absolute left-1/2 top-1/2 z-10 flex w-full max-w-xl -translate-x-1/2 -translate-y-1/2 flex-col px-6`,children:[(0,Y.jsxs)(`div`,{className:`flex items-center`,children:[(0,Y.jsx)(R.div,{ref:_,className:`shrink-0`,style:{height:$},initial:!1,animate:x?{width:0,marginRight:0}:{width:$,marginRight:12},transition:s?{duration:0}:{duration:.5,ease:`easeInOut`}}),(0,Y.jsx)(`h1`,{className:`text-[2.2rem] leading-none`,style:{fontFamily:`var(--font-serif)`},children:`You’re all set`})]}),(0,Y.jsxs)(`div`,{className:`mt-4 flex items-center gap-3`,children:[C&&d&&f?(0,Y.jsx)(`div`,{className:`shrink-0`,children:(0,Y.jsx)(U,{components:d,traits:f,size:jr})}):(0,Y.jsx)(`div`,{ref:v,className:`shrink-0`,style:{width:jr,height:jr}}),(0,Y.jsx)(R.p,{className:`text-[15px]`,style:{color:o.fg},initial:!1,animate:{opacity:+!!C,x:C?0:-6},transition:s?{duration:0}:{duration:.35},children:`I’ve set myself up with plugins around who you are.`})]}),h&&(0,Y.jsx)(`div`,{className:`flex flex-col gap-3`,style:{marginTop:Math.round(64-p*.02)},children:m.map((e,t)=>(0,Y.jsxs)(R.div,{initial:s?!1:{opacity:0,y:10},animate:{opacity:1,y:0},transition:s?{duration:0}:{duration:.3,delay:t*.06},className:`rounded-2xl px-5 py-4`,style:{backgroundColor:o.isLight?`rgba(0,0,0,0.06)`:`rgba(255,255,255,0.1)`},children:[(0,Y.jsx)(`div`,{className:`text-[15px] font-medium`,children:e.displayName}),e.description&&(0,Y.jsx)(`div`,{className:`mt-1 text-[13px] leading-snug`,style:{color:o.fgMuted},children:e.description})]},e.name))}),(0,Y.jsxs)(`button`,{type:`button`,onClick:()=>{c||a||(l(!0),Promise.resolve().then(n).catch(()=>l(!1)))},disabled:c||a,className:`mt-16 flex cursor-pointer h-11 w-[200px] items-center justify-center gap-2 rounded-[10px] text-body-medium-default transition duration-150 enabled:active:scale-[0.97] disabled:cursor-not-allowed disabled:opacity-60`,style:{backgroundColor:o.isLight?`#1A1A1A`:`#FFFFFF`,color:o.isLight?`#FFFFFF`:`#1A1A1A`},children:[c?`Starting…`:`Let's chat`,!c&&(0,Y.jsx)(u,{className:`h-4 w-4`})]}),y&&!C&&(0,Y.jsx)(Mr,{head:y.head,note:y.note,flyToNote:x&&y.note!==void 0,reduce:s,onLanded:()=>w(!0)})]})]})}var Pr=[{bodyShape:`sprout`,eyeStyle:`curious`,colorIdx:0,base:230,pos:e=>({left:-e*.32,top:`40%`})},{bodyShape:`flower`,eyeStyle:`goofy`,colorIdx:1,base:230,pos:e=>({right:-e*.32,top:`40%`})},{bodyShape:`star`,eyeStyle:`dazed`,colorIdx:2,base:240,mobile:!0,pos:e=>({left:`16%`,bottom:-e*.42}),mobilePos:e=>({left:-e*.3,bottom:-e*.3})},{bodyShape:`burst`,eyeStyle:`angry`,colorIdx:0,base:240,mobile:!0,pos:e=>({right:`16%`,bottom:-e*.42}),mobilePos:e=>({right:-e*.3,bottom:-e*.3})},{bodyShape:`blob`,eyeStyle:`gentle`,colorIdx:1,base:220,pos:e=>({left:`42%`,bottom:-e*.5})},{bodyShape:`urchin`,eyeStyle:`curious`,colorIdx:2,base:220,mobile:!0,pos:e=>({left:-e*.28,bottom:`16%`}),mobilePos:e=>({left:-e*.3,top:-e*.3})},{bodyShape:`burst`,eyeStyle:`quirky`,colorIdx:0,base:220,mobile:!0,pos:e=>({right:-e*.28,bottom:`16%`}),mobilePos:e=>({right:-e*.3,top:-e*.3})},{bodyShape:`flower`,eyeStyle:`quirky`,colorIdx:1,base:230,pos:e=>({left:`30%`,bottom:-e*.4})}],Fr=`#17191C`,Ir=[{bodyShape:`blob`,eyeStyle:`gentle`},{bodyShape:`urchin`,eyeStyle:`curious`},{bodyShape:`star`,eyeStyle:`goofy`}],Lr=290;function Rr({peekLevel:e=0,eyesBumpNonce:t=0,darkBg:n=!1,showBottomEyes:r=!0,showTopTeam:i=!1,eyesEntrance:a=!1}){let o=W(),s=X.use.characters(),c=X.use.selectedIndex(),l=B(),{w:u}=Ft(),d=Math.max(.42,Math.min(u/1100,1)),f=u<640,p=s.length>0?s[c]:void 0,{bg:m,peekColors:h}=(0,q.useMemo)(()=>!o||!p?{bg:`var(--surface-base)`,peekColors:[]}:{bg:o.colors.find(e=>e.id===p.color)?.hex??`var(--surface-base)`,peekColors:Ln(p.color,o.colors.map(e=>e.id),3)},[o,p]);return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(R.div,{className:`absolute inset-0 z-0`,initial:!1,animate:{backgroundColor:n?Fr:m},transition:l?{duration:0}:{duration:1,ease:`easeInOut`}}),r&&(0,Y.jsx)(wn,{bumpNonce:t,settleBlink:a,entrance:a}),i&&o&&(0,Y.jsx)(`div`,{className:`pointer-events-none absolute right-0 z-[1] flex items-start`,style:{top:-Math.round(Lr*d)*.42,right:-Math.round(Lr*d)*.12},children:Ir.map((e,t)=>{let n=Math.round(Lr*d);return(0,Y.jsx)(R.div,{style:{width:n,height:n,marginLeft:t===0?0:-n*.34,zIndex:Ir.length-t},initial:l?!1:{y:-140,opacity:0},animate:{y:0,opacity:1},transition:l?{duration:0}:{type:`spring`,stiffness:200,damping:18,delay:t*.1},children:(0,Y.jsx)(U,{components:o,traits:{bodyShape:e.bodyShape,eyeStyle:e.eyeStyle,color:h[t]??`teal`},size:n,breathe:!1})},e.bodyShape)})}),o&&(0,Y.jsx)(z,{children:(f?Pr.filter(e=>e.mobile):Pr).slice(0,Math.max(0,e)).map((e,t)=>{let n=Math.round(e.base*d),r=f&&e.mobilePos?e.mobilePos(n):e.pos(n);return(0,Y.jsx)(R.div,{"aria-hidden":`true`,className:`pointer-events-none absolute z-[1]`,style:{...r,width:n,height:n},initial:l?!1:{scale:0,opacity:0},animate:{scale:1,opacity:1},exit:l?void 0:{scale:0,opacity:0},transition:l?{duration:0}:{type:`spring`,stiffness:220,damping:16,delay:.1},children:(0,Y.jsx)(U,{components:o,traits:{bodyShape:e.bodyShape,eyeStyle:e.eyeStyle,color:h[e.colorIdx]??`teal`},size:n,breathe:!1})},`peek-${t}`)})})]})}var zr={established:!1,assistantName:null};async function Br(e,n={hasAnyActiveConversation:ge,fetchAssistantIdentity:he}){try{if(!await n.hasAnyActiveConversation(e))return zr}catch(e){return t(e,{context:`research_onboarding_established_check`}),zr}let r=await n.fetchAssistantIdentity(e).catch(()=>null);return{established:!0,assistantName:(typeof r?.name==`string`?r.name.trim():``)||null}}function Vr({assistantName:e,onKeep:t,onRedo:n,onBack:i}){let a=e?.trim()||``,o=a||`your assistant`,s=a?`${a}'s`:`its`;return(0,Y.jsxs)(`div`,{"data-theme":`dark`,className:`relative h-full overflow-hidden`,style:{backgroundColor:`var(--surface-base)`,color:`var(--content-primary)`},children:[(0,Y.jsx)(Q,{onBack:i,tone:`light`}),(0,Y.jsxs)(`div`,{className:`${ze} max-w-xl`,children:[(0,Y.jsxs)(`div`,{className:`flex flex-col items-center gap-3`,children:[(0,Y.jsx)(`h1`,{className:`text-[2.2rem] leading-none`,style:{fontFamily:`var(--font-serif)`},children:a?`${a} is already up and running`:`Your assistant is already up and running`}),(0,Y.jsxs)(`p`,{className:`text-[15px]`,style:{color:`var(--content-secondary)`},children:[`You two have history — a personality, memories, and past conversations. Running setup again would overwrite who `,o,` is now.`]})]}),(0,Y.jsxs)(`div`,{className:`flex w-full max-w-sm flex-col items-center gap-3`,children:[(0,Y.jsxs)(r,{variant:`primary`,size:`regular`,fullWidth:!0,onClick:t,className:`h-11 text-base`,children:[`Keep `,o,` and start chatting`,(0,Y.jsx)(u,{className:`h-4 w-4`})]}),(0,Y.jsxs)(r,{variant:`ghost`,size:`regular`,fullWidth:!0,onClick:n,className:`h-11 text-base`,children:[`Start over and rebuild `,s,` personality`]})]})]})]})}var Hr=4e3;function Ur(e){return{firstName:e.firstName,lastName:e.lastName,occupation:e.role,hobbies:e.hobbies,timezone:me()}}function Wr(e){let t=e.firstName.trim();return t?`Getting to know ${t}`:`Getting to know you`}Ne();function Gr(){let e=a(),t=oe.use.user(),n=t?.id??null,r=Oe.use.enterFocus(),o=Oe.use.exitFocus(),s=Oe.use.setPendingAvatarTraits(),c=Oe.use.requestSidebarCollapse(),[l,u]=(0,q.useState)(`form`),{ref:d,size:f}=Le(),[p,m]=(0,q.useState)([]),[h,g]=(0,q.useState)(!1);function _(e){u(e)}function v(e,t=`completed`){ke(Ae[l],{userId:n,outcome:t}),m([]),_(e)}function y(e){m(e=>[...e,l]),_(e)}function b(){let e=p[p.length-1];e&&(m(e=>e.slice(0,-1)),_(e))}let x=p.length>0?b:void 0,[S,C]=(0,q.useState)(null),E=(0,q.useRef)(null),[D,O]=(0,q.useState)(null),[ee,k]=(0,q.useState)(null),A=(0,q.useRef)(!1),[j,M]=(0,q.useState)(!1),[N,te]=(0,q.useState)(null),[re,ie]=(0,q.useState)({}),[ae,se]=(0,q.useState)(!1),[P,ce]=(0,q.useState)(null),[le,de]=(0,q.useState)(null),[me,F]=(0,q.useState)(!1),[he,I]=(0,q.useState)(!1),[ge,_e]=(0,q.useState)(!1),[Ce,we]=(0,q.useState)(0),[Te,Ee]=(0,q.useState)(0),[L]=i(),De=Ke({hostingParam:L.get(`hosting`),localMode:T(),gatewayAuthSession:w()}),R=L.get(`assistant`)??void 0,z=De,{start:B,ready:je,assistantId:V,error:Me,awaitReady:H}=Ze({adoptExisting:De,adoptAssistantId:R}),U=Ct(),{start:W,hydrate:Ne}=U,Pe=(0,q.useRef)(Promise.resolve()),Fe=(0,q.useRef)(!1),[Ie,Re]=(0,q.useState)(!1),G=(0,q.useCallback)(e=>{Fe.current=e,Re(e)},[]),[K,ze]=(0,q.useState)(null),Be=(0,q.useRef)(Promise.resolve()),[Ve,Ue]=(0,q.useState)(!1),We=U.status===`idle`||U.status===`running`,J=!We&&U.claims.length===0;(0,q.useEffect)(()=>{o(),s(null),B()},[o,s,B]),(0,q.useEffect)(()=>{if(E.current)return;let e=H().then(e=>Br(e)).catch(()=>zr);E.current=e,e.then(O)},[H]);let qe=(0,q.useCallback)(()=>Promise.race([E.current??Promise.resolve(null),new Promise(e=>{setTimeout(()=>e(null),Hr)})]),[]);(0,q.useLayoutEffect)(()=>{if(h||!n)return;let e=ye(n);if(e?.formValues){C(e.formValues),te(e.faceValues),de(e.checkinTime),I(e.checkinBooked),ze(e.keptClaims??null),ce(e.researchConversationId??null),e.research&&(Ne({...e.research,pluginCatalog:e.research.pluginCatalog??{},droppedClaims:e.research.droppedClaims??[]},H),G(e.droppedClaimsScrubbed??!1),M(!0));let t=be(e);u(z&&(t===`letschat`||t===`meeting`)?`looking`:t),m([])}g(!0)},[h,n,Ne,H,z,G]),(0,q.useEffect)(()=>{!h||!S||ve(n,{step:l,formValues:S,faceValues:N,checkinTime:le,checkinBooked:he,research:U.status===`done`?{status:`done`,claims:U.claims,droppedClaims:U.droppedClaims,suggestions:U.suggestions,installedPlugins:U.installedPlugins,pluginCatalog:U.pluginCatalog}:null,...P?{researchConversationId:P}:{},...K?{keptClaims:K}:{},...Ie?{droppedClaimsScrubbed:!0}:{}})},[h,n,l,K,S,N,le,he,P,U.status,U.claims,U.droppedClaims,U.suggestions,U.installedPlugins,U.pluginCatalog,Ie]),(0,q.useEffect)(()=>{if(!h||!S||U.status!==`idle`&&U.status!==`done`)return;let e=U.status===`idle`,t=S,n=!1;return(async()=>{if(!A.current){let e=await qe();if(n)return;if(e?.established){k(t),m([]),C(null),u(`existing`),M(!1);return}}M(!1),e&&W({awaitAssistantId:H,subject:Ur(t),conversationTitle:Wr(t),...P?{resumeConversationId:P}:{},onConversationCreated:ce,includeSuggestions:!1})})(),()=>{n=!0,M(!1)}},[h,S,P,U.status,W,H,!0,qe]),(0,q.useEffect)(()=>{l===`results`&&J&&(m([]),u(`suggestions`))},[l,J]),(0,q.useEffect)(()=>{Fe.current||We||U.droppedClaims.length!==0&&(!P||!V||U.claims.length>0&&l!==`suggestions`||(G(!0),Pe.current=Tt({assistantId:V,conversationId:P,removedClaims:U.droppedClaims,rejectedAll:!1})))},[We,U.claims.length,U.droppedClaims,P,V,l,G]);function Je(t,i,a,{skip:o=!1,hidden:l=!1}={}){xe(n);let{firstName:u,lastName:d,role:f,hobbies:p}=t,m=[u.trim(),d.trim()].filter(Boolean).join(` `),h=u.trim(),g=!o&&a===void 0;pe({tools:[],tasks:[],tone:He,...m?{userName:m}:{},...f.trim()?{occupation:f.trim()}:{},...o?{}:{initialMessage:a??Ge({firstName:u,lastName:d,occupation:f,hobbies:p}),...l?{initialMessageHidden:!0}:{}},...g?{title:h?`Getting to know ${h}`:`Getting to know you`}:{},...i?.name?.trim()?{assistantName:i.name.trim()}:{},...K?.length?{researchFindings:K}:{}});let _=i?.name?.trim();_&&fe(_),s(i?.traits??null),g&&r(),o||ne.markExpectingFirstMessage(),c(),ne.checkAssistant(V??void 0).finally(()=>{e(`${ue.assistant}?onboarding=1`,{replace:!0})})}async function Ye(){S&&(await Promise.all([U.awaitPluginInstalls(),Pe.current,Be.current]),Je(S,N,jt(N?.name),{hidden:!0}))}function Xe(e){G(!1),U.start({awaitAssistantId:H,subject:Ur(e),conversationTitle:Wr(e),onConversationCreated:ce,includeSuggestions:!1})}async function Qe(e){if(!A.current&&(await qe())?.established){k(e),v(`existing`);return}C(e),Xe(e),v(`face`)}function $e(e){if(e.length>0&&!e.includes(`https://www.googleapis.com/auth/calendar.events`)){_e(!0);return}if(_e(!1),V&&S){let e=[S.firstName.trim(),S.lastName.trim()].filter(Boolean).join(` `);de(null),I(!1),F(!0),Se({assistantId:V,userName:e||void 0,assistantName:N?.name?.trim()||void 0}).then(e=>{e.scheduled&&(I(!0),de(Mt(e.start,e.timeZone)))}).finally(()=>F(!1))}v(`meeting`)}if([`different`,`personality`,`integration`,`letschat`,`meeting`,`looking`,`results`,`suggestions`,`finishing`].includes(l)&&S){let e=[`meeting`,`looking`,`results`,`suggestions`,`finishing`].includes(l);return(0,Y.jsx)(`div`,{ref:d,"data-theme":`dark`,className:`relative h-full overflow-hidden`,children:(0,Y.jsxs)(Pt,{size:f,children:[(0,Y.jsx)(Rr,{eyesBumpNonce:Ce,peekLevel:[`looking`,`results`,`suggestions`,`finishing`].includes(l)?Te:0,darkBg:e,showBottomEyes:!e&&l!==`different`,eyesEntrance:l===`personality`}),l===`different`&&(0,Y.jsx)(Kn,{onContinue:()=>v(`personality`),onBack:()=>y(`intro`),onForward:x}),l===`personality`&&(0,Y.jsx)(dr,{values:re,onValueChange:(e,t)=>ie(n=>({...n,[e]:t})),locked:ae,onContinue:()=>{ae||(Ue(!0),Be.current=kt({awaitAssistantId:H,values:re,userName:S?.firstName?.trim()||void 0,assistantName:N?.name?.trim()||void 0}).finally(()=>Ue(!1)),se(!0)),v(`integration`)},onBack:()=>y(`different`),onForward:x}),l===`integration`&&(0,Y.jsx)(Zn,{onClaim:()=>v(z?`looking`:`letschat`),onBumpEyes:()=>we(e=>e+1),onBack:()=>y(`personality`),onForward:x}),l===`letschat`&&(0,Y.jsx)(fr,{assistantId:V,assistantReady:je,hatchError:Me,onConnected:$e,missingCalendarScope:ge,onRetry:()=>_e(!1),onSkip:()=>{_e(!1),v(`looking`,`skipped`)},onBack:()=>y(`integration`),onForward:x}),l===`meeting`&&(0,Y.jsx)(xr,{scheduledTime:le??void 0,awaitingTime:me,onDone:()=>v(`looking`),onBack:()=>y(`letschat`),onForward:x}),l===`looking`&&(0,Y.jsx)(Or,{onDone:()=>v(J?`suggestions`:`results`),onBack:()=>y(z?`integration`:`letschat`),onAdvance:e=>Ee(Math.min(e+1,4)),onForward:x,ready:!We}),l===`results`&&(0,Y.jsx)(Ar,{claims:U.claims,loading:We,onContinue:e=>{let t=new Set(e);ze(U.claims.filter(e=>!t.has(e.claim)).map(e=>e.claim));let n=Fe.current?[]:U.droppedClaims,r=[...e,...n];P&&V&&r.length>0&&(n.length>0&&G(!0),Pe.current=Tt({assistantId:V,conversationId:P,removedClaims:r,rejectedAll:!1})),v(`suggestions`)},onRejectAll:()=>{ze([]),P&&V&&(G(!0),Pe.current=Tt({assistantId:V,conversationId:P,removedClaims:U.claims.map(e=>e.claim),rejectedAll:!0})),v(`suggestions`,`skipped`)},onBack:()=>y(`looking`),onForward:x}),l===`suggestions`&&(0,Y.jsx)(Nr,{installedPlugins:U.installedPlugins,pluginCatalog:U.pluginCatalog,disabled:j,onStart:async()=>{if(ke(Ae.suggestions,{userId:n,outcome:`completed`}),Ve){m([]),u(`finishing`);return}await Ye()},onBack:()=>y(J?`looking`:`results`),onForward:x}),l===`suggestions`&&!1,l===`finishing`&&(0,Y.jsx)(kr,{ready:!Ve,onDone:()=>void Ye()})]})})}return l===`existing`?(0,Y.jsx)(Vr,{assistantName:D?.assistantName??null,onKeep:()=>{ke(Ae.existing,{userId:n,outcome:`completed`}),xe(n),ne.checkAssistant(V??void 0).finally(()=>{e(ue.assistant,{replace:!0})})},onRedo:()=>{let e=ee;e&&(A.current=!0,ke(Ae.existing,{userId:n,outcome:`skipped`}),C(e),Xe(e),m([]),_(`face`))},onBack:()=>{k(null),y(`form`)}}):l===`intro`&&S?(0,Y.jsx)(Dn,{firstName:S.firstName,assistantName:N?.name,onContinue:()=>v(`different`),onBack:()=>y(`face`),onForward:x}):l===`face`&&S?(0,Y.jsx)(gn,{onContinue:e=>{te(e),v(`intro`)},onBack:()=>y(`form`),onForward:x}):(0,Y.jsx)(fn,{initialFirstName:t?.firstName??``,initialLastName:t?.lastName??``,onSubmit:Qe})}export{Gr as ResearchOnboardingRoute};
@@ -1 +0,0 @@
1
- import{a as e}from"./local-settings-C-dW2vkq.js";import{t}from"./jsx-runtime-D3ZM-ToX.js";import{t as n}from"./confirm-dialog-UYFm4osC.js";import{C as r,a as i,b as a,d as o,f as s}from"./local-mode-Ckii2tmN.js";import{n as c}from"./resolved-assistants-store-C-PdxK8f.js";import{D as l,n as u}from"./auth-store-D9BqFncz.js";import{c as d,d as f}from"./api-XwdNiVE9.js";import{u as p}from"./routes-vE-2hncW.js";import{r as m,t as h}from"./build-state-WR9nlRgM.js";import{t as g}from"./research-onboarding-persistence-CceFfAqE.js";var _=`vellum_assistant_name`;function v(){let e=m(h(),{kind:`post-retire`});return e.action===`redirect`?e.to:p.welcome}async function y(t){try{let n=i().assistants.find(e=>e.assistantId===t);if(s()&&n&&o(n)){let e=await a(t);if(!e.ok)return{ok:!1,error:e.error||`Failed to retire assistant.`}}else{let e=await f(t);if(!(e.ok||e.status===404))return{ok:!1,error:typeof e.error?.detail==`string`?e.error.detail:`Failed to retire assistant.`};if(s())try{let e=await d();e.ok&&await r(e.data,l.getState().currentOrganizationId??void 0)}catch{}}return c.getState().remove(t),g(u.getState().user?.id??null),e(_),{ok:!0,nextRoute:v()}}catch{return{ok:!1,error:`Failed to retire assistant.`}}}var b=t();function x({open:e,isPending:t,extraMessage:r,onConfirm:i,onCancel:a}){return(0,b.jsx)(n,{open:e,title:`Retire Assistant`,message:(0,b.jsxs)(b.Fragment,{children:[`This will permanently retire this assistant and all of its data. You will need to go through the onboarding flow again to create a new one. This action cannot be undone.`,r]}),confirmLabel:`Retire`,destructive:!0,isPending:t,onConfirm:i,onCancel:a})}export{y as n,x as t};
@@ -1 +0,0 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import{t as n}from"./button-Dy5001j6.js";import{m as r,u as i}from"./chunk-5KNZJZUH-Bsoom5--.js";import{t as a}from"./jsx-runtime-D3ZM-ToX.js";import{t as o}from"./shield-check-22NwY9JM.js";import{t as s}from"./is-electron-m5eeGBnd.js";import{f as c,i as l,n as u}from"./auth-store-D9BqFncz.js";import{_ as d}from"./native-biometric-CntdlaL-.js";import{u as f}from"./routes-vE-2hncW.js";import{c as p,d as m,f as h,l as g,p as _,u as v}from"./prefs-BZnS5vR_.js";import{t as y}from"./hard-navigate-DZlpL1No.js";import{t as b}from"./onboarding-layout-Dd5fPfE7.js";import{n as x,t as S}from"./consent-controls-BOFoWAYO.js";var C=e(t(),1),w={},T={"2026-06-22":[`Introduces Together AI as a new managed model provider`]};function E(e){return w[e]??[]}function D(e){return T[e]??[]}var O=a();function k(){let e=i(),[t]=r(),a=u.use.user()?.id??null,w=u.use.logout(),T=s(),k=l(),[A,j]=_(),[M,N]=v(),[P,F]=m(),[I,L]=h(),[R]=p(),[z]=g(),B=P??!0,V=I??!0,[H]=(0,C.useState)(()=>!A),[U]=(0,C.useState)(()=>!M),[W]=(0,C.useState)(()=>!R),[G]=(0,C.useState)(()=>!z),K=!H&&!U&&!W&&!G,q=H||K,J=U||K,Y=W||K,X=G||K,Z=!K&&!H&&!U,Q=K?`Terms & privacy`:Z?`Review your privacy preferences`:`Updated terms`,$=K?`Review your terms and privacy preferences anytime.`:Z?`Confirm your privacy preferences to continue.`:`We've updated our terms. Please review and accept to continue.`,ee=(0,C.useCallback)(()=>{c({userId:a,tos:A,privacy:M,shareAnalytics:Y?B:null,shareDiagnostics:X?V:null,hasPlatformSession:k}),e(d(t.get(`returnTo`),f.assistant),{replace:!0})},[M,k,e,t,B,V,Y,X,A,a]),te=(0,C.useCallback)(async()=>{await w(),y(f.account.login)},[w]),ne=q&&!A||J&&!M;return(0,O.jsx)(b,{showCreatureFooter:!1,children:(0,O.jsxs)(`div`,{className:`mx-auto flex w-full max-w-xl flex-col items-center ${T?`min-h-full px-8 pt-21 pb-4 electron-prechat-type`:`px-6 py-16`} text-[var(--content-default)]`,children:[(0,O.jsx)(`div`,{className:`flex h-12 w-12 items-center justify-center rounded-full border border-[var(--border-subtle)] bg-[var(--surface-lift)]`,style:{animation:`fadeInUp 0.5s ease-out 0.05s both`},children:(0,O.jsx)(o,{className:`h-6 w-6 text-[var(--content-secondary)]`,strokeWidth:1.75})}),(0,O.jsx)(`h1`,{className:`mt-5 ${T?`text-title-large`:`text-3xl font-semibold tracking-tight`}`,style:{animation:`fadeInUp 0.5s ease-out 0.12s both`},children:Q}),(0,O.jsx)(`p`,{className:`text-center text-body-medium-lighter text-[var(--content-tertiary)] ${T?`mt-3`:`mt-3.5`}`,style:{animation:`fadeInUp 0.5s ease-out 0.2s both`},children:$}),(Y||X)&&(0,O.jsx)(x,{electron:T,showAnalytics:Y,showDiagnostics:X,shareAnalytics:B,shareDiagnostics:V,onShareAnalyticsChange:F,onShareDiagnosticsChange:L,className:`mt-9 w-full`,style:{animation:`fadeInUp 0.5s ease-out 0.28s both`}}),(J||q)&&(0,O.jsx)(S,{electron:T,showPrivacy:J,showTos:q,privacyConsent:M,tosAccepted:A,onPrivacyChange:N,onTosChange:j,privacyNotes:J?D(`2026-06-22`):[],tosNotes:q?E(`2026-06-08`):[],className:`mt-6 w-full`,style:{animation:`fadeInUp 0.5s ease-out 0.36s both`}}),(0,O.jsxs)(`div`,{className:`mt-9 flex w-full flex-col ${T?`gap-2.5`:`gap-2`}`,style:{animation:`fadeInUp 0.5s ease-out 0.44s both`},children:[(0,O.jsx)(n,{variant:`primary`,size:`regular`,fullWidth:!0,disabled:ne,onClick:ee,className:T?void 0:`h-11 text-base`,children:`Continue`}),(0,O.jsx)(n,{variant:`outlined`,size:`regular`,fullWidth:!0,onClick:te,className:T?void 0:`h-11 text-base`,children:`Log out`})]})]})})}export{k as ReviewTermsScreen};