@vellumai/web 0.11.0 → 0.11.1-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.
- package/dist/assets/{AnimatePresence-xdH2KLtr.js → AnimatePresence-D23js3-M.js} +3 -3
- package/dist/assets/{BundleConfirmPage-4StSZy-f.js → BundleConfirmPage-C1-BZKI9.js} +1 -1
- package/dist/assets/{a2a-invite-C1xJNSGF.js → a2a-invite-CfhpXDTT.js} +1 -1
- package/dist/assets/{about-page-C3tJLjvD.js → about-page-Dtg-I99x.js} +1 -1
- package/dist/assets/access-C97H-xHb.js +1 -0
- package/dist/assets/{account-page-BvXVc1IK.js → account-page-Cflmw8J6.js} +1 -1
- package/dist/assets/{account-shell-D6aWpePp.js → account-shell-BxZ339N3.js} +1 -1
- package/dist/assets/{acp-run-actions-8ioRAI8C.js → acp-run-actions-BGbBYETY.js} +1 -1
- package/dist/assets/{acp-run-detail-panel-B8ULpnis.js → acp-run-detail-panel-BZ36-1N5.js} +1 -1
- package/dist/assets/{acp-run-store-CpH4OeOS.js → acp-run-store-CmGaPJm1.js} +1 -1
- package/dist/assets/activity-steps-panel-KMiSlUt3.js +1 -0
- package/dist/assets/{add-credential-modal-Cu6aAlhm.js → add-credential-modal-DQZ43BJU.js} +1 -1
- package/dist/assets/{add-credits-modal-BelWmezc.js → add-credits-modal-Daz6j8gm.js} +1 -1
- package/dist/assets/ai-page-DPVi-dhB.js +1 -0
- package/dist/assets/{animated-avatar-DknFwi9-.js → animated-avatar-CDeJNhwm.js} +1 -1
- package/dist/assets/api-C8TlQNEU.js +1 -0
- package/dist/assets/api-DDKNgE8n.js +1 -0
- package/dist/assets/{api-key-screen-BhynbUuC.js → api-key-screen-CoLZh8vw.js} +1 -1
- package/dist/assets/{app-card-BF2l9ot8.js → app-card-JHbWefmm.js} +1 -1
- package/dist/assets/{app-info-fS0zIUcN.js → app-info-Bdfw54u1.js} +1 -1
- package/dist/assets/{archive-redirect-page-DOF2veAy.js → archive-redirect-page-CWJIEUlH.js} +1 -1
- package/dist/assets/{assistant-feature-flag-store-B00tpY5e.js → assistant-feature-flag-store-CMUNSAPL.js} +1 -1
- package/dist/assets/assistant-identity-store-BczULg2T.js +1 -0
- package/dist/assets/{assistant-status-panel-D2PXdHw0.js → assistant-status-panel-CLMAEQ-v.js} +1 -1
- package/dist/assets/auth-store-w_EmIQP7.js +2 -0
- package/dist/assets/avatar-random-IysJ0Bdt.js +1 -0
- package/dist/assets/{avatar-renderer-BrNjnimz.js → avatar-renderer-3EVhZ7TB.js} +1 -1
- package/dist/assets/{background-task-actions-B1bLmbnw.js → background-task-actions-yrapeY1n.js} +1 -1
- package/dist/assets/{background-task-detail-panel-56ZpprL7.js → background-task-detail-panel-BV9Y227f.js} +1 -1
- package/dist/assets/{background-task-store-C5J8CFan.js → background-task-store-CN04oS2z.js} +1 -1
- package/dist/assets/billing-page-CmkTn62f.js +3 -0
- package/dist/assets/{billing-redirect-page-BIfv18MY.js → billing-redirect-page-CiHoDQHE.js} +1 -1
- package/dist/assets/{bookmarks-page-BOhi-7gN.js → bookmarks-page-B2JvSaKf.js} +1 -1
- package/dist/assets/browser-CpgSNbEp.js +2 -0
- package/dist/assets/build-state-DDUJ0MId.js +1 -0
- package/dist/assets/{capture-error-Dj49ma74.js → capture-error-FWzaVb8P.js} +1 -1
- package/dist/assets/channels-page-route-DAp7F6ed.js +9 -0
- package/dist/assets/{chat-avatar-C9l3drVu.js → chat-avatar-CIF_o6y5.js} +1 -1
- package/dist/assets/{chat-layout-slots-store-KQz1WMKU.js → chat-layout-slots-store-C325hn1X.js} +1 -1
- package/dist/assets/chat-markdown-message-B3Qo04ug.js +2 -0
- package/dist/assets/{checkbox-D7Eg2K35.js → checkbox-BZTUJtxM.js} +1 -1
- package/dist/assets/checkout-continuation-DRPQwh5V.js +1 -0
- package/dist/assets/checkout-page-B8CJoCWQ.js +1 -0
- package/dist/assets/checkout-return-target-Cib3fzdY.js +1 -0
- package/dist/assets/{client-feature-flag-store-BdNCabm_.js → client-feature-flag-store-Bg5XEI2b.js} +1 -1
- package/dist/assets/{client-identity-yPmEu-I1.js → client-identity-BSG341dO.js} +1 -1
- package/dist/assets/command-palette-DH_ybPTY.js +1 -0
- package/dist/assets/command-palette-window-page-KoC7mrpM.js +1 -0
- package/dist/assets/{community-page-_nhJqpCD.js → community-page-BZmxfsXK.js} +1 -1
- package/dist/assets/{confirm-dialog-D-Yjf2uS.js → confirm-dialog-DZX6LhLy.js} +1 -1
- package/dist/assets/{connect-page-DS-7aFqU.js → connect-page-D_I1YM62.js} +1 -1
- package/dist/assets/{consent-controls-DVeAjj2Z.js → consent-controls-CiKmEzBn.js} +1 -1
- package/dist/assets/consent-s5g0Gmb2.js +1 -0
- package/dist/assets/{contacts-gateway-BlLLBft6.js → contacts-gateway-C628mrY_.js} +1 -1
- package/dist/assets/contacts-page-route-BJBOnSQK.js +1 -0
- package/dist/assets/{conversation-cache-CqrrtLGM.js → conversation-cache-BzPdBPXN.js} +1 -1
- package/dist/assets/conversation-list-fetchers-BZnx9EMN.js +1 -0
- package/dist/assets/{conversation-navigation-D8y9l5qL.js → conversation-navigation-tj2ntPAn.js} +1 -1
- package/dist/assets/conversation-queries-str0jfqv.js +1 -0
- package/dist/assets/conversation-selection-B954w311.js +1 -0
- package/dist/assets/{conversation-store-D_eevw7L.js → conversation-store-C0tvFESx.js} +1 -1
- package/dist/assets/copy-to-clipboard-DaTa8Tbi.js +1 -0
- package/dist/assets/{credential-entry-page-C22Mw_ea.js → credential-entry-page-BCAYmsDK.js} +1 -1
- package/dist/assets/credentials-page-DFm5A_Dj.js +1 -0
- package/dist/assets/{danger-zone-redirect-page-QELjAt0B.js → danger-zone-redirect-page-BcdEHbAX.js} +1 -1
- package/dist/assets/debug-page-6DjAgWtl.js +4 -0
- package/dist/assets/{deploy-dialogs-DcxJ8zmL.js → deploy-dialogs-CpUMrpHq.js} +1 -1
- package/dist/assets/{deploy-store-Dxp-S0Jo.js → deploy-store-BJ-njgv-.js} +1 -1
- package/dist/assets/{detail-card-BiNdiBiS.js → detail-card-D-5EWmAS.js} +1 -1
- package/dist/assets/detail-drawer-BglFkWVa.js +1 -0
- package/dist/assets/{detail-panel-stop-button-CZuQfGZs.js → detail-panel-stop-button-DgKaA6yz.js} +1 -1
- package/dist/assets/{detail-shell-DB1cQBnE.js → detail-shell-D9L3L7AM.js} +1 -1
- package/dist/assets/developer-page-dHmIDclp.js +1 -0
- package/dist/assets/{devices-redirect-page-B3KUr7o2.js → devices-redirect-page-BNpxDctf.js} +1 -1
- package/dist/assets/{diagnostics-9AhdBjYA.js → diagnostics-BE1IgjfV.js} +1 -1
- package/dist/assets/{dictation-overlay-page-DHI92ftK.js → dictation-overlay-page-DUWJ13of.js} +1 -1
- package/dist/assets/{dictation-overlay-CRLGSCST.js → dictation-overlay-w1YHEfFR.js} +1 -1
- package/dist/assets/{dist-Ckcpfjj7.js → dist-BswnB-bR.js} +1 -1
- package/dist/assets/{dist-CXcArvGs.js → dist-CQN0ZAOZ.js} +1 -1
- package/dist/assets/{doctor-handoff-store-DPviL0wb.js → doctor-handoff-store-ClS6J-b-.js} +1 -1
- package/dist/assets/document-viewer-container-Doc7G7NK.js +2 -0
- package/dist/assets/{document-viewer-page-ClsAgnVX.js → document-viewer-page-DJFR9XhM.js} +1 -1
- package/dist/assets/{dropdown-BtWhNXSV.js → dropdown-DswWMJhz.js} +1 -1
- package/dist/assets/{edge-swipe-arbiter-store-QUBer3EI.js → edge-swipe-arbiter-store-D9XJTxJJ.js} +1 -1
- package/dist/assets/ellipsis-vertical-nov0xhhF.js +1 -0
- package/dist/assets/{emails-page-D1eq8Mcq.js → emails-page-Ro1_IIiv.js} +1 -1
- package/dist/assets/{environment-store-nuDZk7wN.js → environment-store-Bbx4f6SQ.js} +1 -1
- package/dist/assets/esm-B2M2kM_8.js +2 -0
- package/dist/assets/esm-BgRAHqeR.js +2 -0
- package/dist/assets/esm-CXX8rcv3.js +2 -0
- package/dist/assets/esm-Chh8mHmh.js +1 -0
- package/dist/assets/esm-Cl2UNC_o.js +2 -0
- package/dist/assets/esm-ClO8yhvi.js +2 -0
- package/dist/assets/esm-DOATKqE3.js +2 -0
- package/dist/assets/esm-UUuqyyp5.js +1 -0
- package/dist/assets/eye-bbox-DE8r0Vt3.js +1 -0
- package/dist/assets/feature-flag-catalog-CWHnoWvT.js +1 -0
- package/dist/assets/file-editor-DcH2Os5o.js +1 -0
- package/dist/assets/{file-markdown-B0zje_y3.js → file-markdown-DBLxtb0M.js} +1 -1
- package/dist/assets/first-run-scope-CZm4WhC7.js +1 -0
- package/dist/assets/{funnel-events-BqvFi8Sp.js → funnel-events-BAmjKdwH.js} +1 -1
- package/dist/assets/general-page-BH3Zl4tV.js +1 -0
- package/dist/assets/get-memory-stats-CthVfpul.js +1 -0
- package/dist/assets/handle-logout-C_CDLqjS.js +1 -0
- package/dist/assets/{haptics-BTcSZuHP.js → haptics-agodX1nl.js} +2 -2
- package/dist/assets/hatching-screen-CziT_eEj.js +1 -0
- package/dist/assets/home-page-route-BSHvc0DH.js +1 -0
- package/dist/assets/hosting-screen-D6gwvyR3.js +1 -0
- package/dist/assets/identity-Cb4xS1Kk.js +1 -0
- package/dist/assets/identity-page-route-CvxG-nhn.js +7 -0
- package/dist/assets/index-D-NVGcvg.js +11 -0
- package/dist/assets/index-D8Xiv4z3.css +2 -0
- package/dist/assets/{ingest-D3dRmJA9.js → ingest-DiiwFQfV.js} +1 -1
- package/dist/assets/{inspect-page-DVgajY0Q.js → inspect-page-D0xZPslr.js} +6 -6
- package/dist/assets/{installed-plugins-query-s6Kf3pL8.js → installed-plugins-query-6u0jUM-L.js} +1 -1
- package/dist/assets/{integration-icon-CmjrEk0J.js → integration-icon-tiuVoy54.js} +1 -1
- package/dist/assets/integrations-page-DuKFioaA.js +1 -0
- package/dist/assets/{intelligence-layout-DfdvpHl4.js → intelligence-layout-CVzq_bDm.js} +1 -1
- package/dist/assets/invalidate-memory-queries-BPL6t0Cu.js +1 -0
- package/dist/assets/invalidate-plugin-queries-QmmXCyiN.js +1 -0
- package/dist/assets/{keyboard-shortcuts-redirect-page-DMytLINR.js → keyboard-shortcuts-redirect-page-D_Rf5W7f.js} +1 -1
- package/dist/assets/{latest-assistant-text-BIlBGS_i.js → latest-assistant-text-DPm0HIWu.js} +2 -2
- package/dist/assets/{library-detail-page-BzvbB9Ud.js → library-detail-page-BmD8ODsN.js} +1 -1
- package/dist/assets/{library-page-DK2Dx8vo.js → library-page-B1_J428q.js} +1 -1
- package/dist/assets/list-row-BYrmPIC4.js +1 -0
- package/dist/assets/local-mode-9zpgPNoq.js +39 -0
- package/dist/assets/{local-runtime-upgrade-COcJaRWH.js → local-runtime-upgrade-1CLFIVes.js} +1 -1
- package/dist/assets/{login-flow-BVUkpWP_.js → login-flow-BnCQjNXm.js} +1 -1
- package/dist/assets/login-page-BnF7_s7c.js +1 -0
- package/dist/assets/{logout-page-B8EOSvAV.js → logout-page-BguUo424.js} +1 -1
- package/dist/assets/{logs-layout-DK6gVU21.js → logs-layout-BiZ4JakR.js} +1 -1
- package/dist/assets/machine-sizes-D0oAlF9f.js +1 -0
- package/dist/assets/memory-page-route-DwmCqWRb.js +6 -0
- package/dist/assets/{memory-router-playground-page-B-6Yt7rp.js → memory-router-playground-page-Bl-5j5de.js} +1 -1
- package/dist/assets/{menu-BKrcAFYk.js → menu-CKZtG-s_.js} +1 -1
- package/dist/assets/{messages-BuqyOjvT.js → messages-BsXTJIIe.js} +2 -2
- package/dist/assets/{metric-card-j9s-2nkl.js → metric-card-B-Tt9p-1.js} +1 -1
- package/dist/assets/{mobile-sidebar-drawer-BLGt_R0d.js → mobile-sidebar-drawer-Cp72bTDC.js} +1 -1
- package/dist/assets/{modal-CoOkN7c0.js → modal-DwsThLGg.js} +1 -1
- package/dist/assets/mutation-error-CXV1BKlB.js +1 -0
- package/dist/assets/native-anchor-BpfRwc60.js +1 -0
- package/dist/assets/native-biometric-CTR2Zi2w.js +6 -0
- package/dist/assets/native-deep-link-BJjxOpZm.js +1 -0
- package/dist/assets/native-file-BvwfoU6A.js +2 -0
- package/dist/assets/navigation-resolver-CIICT6n9.js +1 -0
- package/dist/assets/{not-found-Dh7Vxgjl.js → not-found-p1VhZpMs.js} +1 -1
- package/dist/assets/{notice-B6naz_-V.js → notice-DCp7WO3L.js} +1 -1
- package/dist/assets/{notifications-page-BB5kRj1s.js → notifications-page-CD8OVGKw.js} +1 -1
- package/dist/assets/{oauth-complete-page-01jk0-Xz.js → oauth-complete-page-KSpFlPD6.js} +1 -1
- package/dist/assets/{oauth-connection-utils-DhmVsbum.js → oauth-connection-utils-D9CTptlA.js} +1 -1
- package/dist/assets/{oauth-popup-complete-page-DdR3sLCH.js → oauth-popup-complete-page-C5cG_z3A.js} +1 -1
- package/dist/assets/{onboarding-layout-CYU5QNQ5.js → onboarding-layout-K7X9fV8B.js} +1 -1
- package/dist/assets/{onboarding-store-CHsGFmyD.js → onboarding-store-OVV4wyh5.js} +1 -1
- package/dist/assets/open-workspace-file-DYklNHQ0.js +2 -0
- package/dist/assets/page-empty-state-B0da-Sm9.js +1 -0
- package/dist/assets/{page-shell-Ns8K4aqQ.js → page-shell-CN7ioeP_.js} +1 -1
- package/dist/assets/{pairing-page-COqX_5vT.js → pairing-page-_kskNw0h.js} +1 -1
- package/dist/assets/panel-item-DGs4s9r-.js +1 -0
- package/dist/assets/{password-reset-page-Ck1m9qRW.js → password-reset-page-Bq3ehgjW.js} +1 -1
- package/dist/assets/{personality-page-B0GpJMv5.js → personality-page-DeZSBQ6W.js} +1 -1
- package/dist/assets/plans-page-D924rN93.js +1 -0
- package/dist/assets/platform-detection-BY5uzLL8.js +1 -0
- package/dist/assets/{platform-login-notice-D_-ZVyk8.js → platform-login-notice-DIS8PWXu.js} +1 -1
- package/dist/assets/{platform-loopback-page-B68rydoU.js → platform-loopback-page-BTr35x9U.js} +1 -1
- package/dist/assets/{plugin-detail-page-DGzmeb3j.js → plugin-detail-page-DF9vmm23.js} +1 -1
- package/dist/assets/{plugins-page-C7Xd3LTL.js → plugins-page-BDZiCqWZ.js} +1 -1
- package/dist/assets/plugins-surface-C4peMNec.js +1 -0
- package/dist/assets/{popover-CDZiHp1D.js → popover-BFL-uOLh.js} +1 -1
- package/dist/assets/{prefs-BplCYXxl.js → prefs-B6fvTCOn.js} +1 -1
- package/dist/assets/{privacy-page-NhPZ8klL.js → privacy-page-BGXaPgBR.js} +1 -1
- package/dist/assets/privacy-screen-znr9P7PH.js +1 -0
- package/dist/assets/{provider-callback-page-Dkxi-_kI.js → provider-callback-page-Bn1Tp_ej.js} +1 -1
- package/dist/assets/provider-key-w3CzmGtq.js +1 -0
- package/dist/assets/provider-signup-page-C5z8x-YS.js +1 -0
- package/dist/assets/provisioning-targets-CT4slXZJ.js +1 -0
- package/dist/assets/{proxy-lxbolTGx.js → proxy-CNtrhN4q.js} +1 -1
- package/dist/assets/{quick-input-page-DnjOMI1n.js → quick-input-page-COgnUnT_.js} +1 -1
- package/dist/assets/react-query.gen-0mspArBl.js +1 -0
- package/dist/assets/react-query.gen-BVTEjHsw.js +1 -0
- package/dist/assets/{remote-gateway-session-DJ1rzXEw.js → remote-gateway-session-CgxYHgOD.js} +1 -1
- package/dist/assets/{research-facts-B5ItKoAK.js → research-facts-BcW4fghT.js} +1 -1
- package/dist/assets/{research-mock-page-gbOSvFQL.js → research-mock-page-BFm8-rLU.js} +1 -1
- package/dist/assets/{research-onboarding-persistence-CgJDwdl9.js → research-onboarding-persistence-BN6g1lF7.js} +1 -1
- package/dist/assets/research-onboarding-route-DpC0dKBR.js +50 -0
- package/dist/assets/{research-results-view-WQsLxBlE.js → research-results-view-BBf2iyCA.js} +1 -1
- package/dist/assets/resolved-assistants-store-8HQDfxZh.js +1 -0
- package/dist/assets/retire-confirm-dialog-BFbPH66U.js +1 -0
- package/dist/assets/{review-terms-screen-c4Vt5WqP.js → review-terms-screen-W08isuCB.js} +1 -1
- package/dist/assets/risk-FjW-m05l.js +3 -0
- package/dist/assets/routes-DOTByxnJ.js +23 -0
- package/dist/assets/{routes-CsoiCk2y.js → routes-GmNvdtLW.js} +1 -1
- package/dist/assets/runtime-upgrade-banner-4PNA3XVR.js +2 -0
- package/dist/assets/schedules-B6KivAAT.js +1 -0
- package/dist/assets/schedules-page-BSr0-mjB.js +1 -0
- package/dist/assets/{sdk.gen-DeyOX3Kb.js → sdk.gen-BySz4QYj.js} +1 -1
- package/dist/assets/sdk.gen-DVW3wpbx.js +1 -0
- package/dist/assets/{security-redirect-page-CMMujz_x.js → security-redirect-page-T1J6IoOb.js} +1 -1
- package/dist/assets/select-assistant-screen-DAkhS0wl.js +1 -0
- package/dist/assets/session-corner-action-CqofVz_i.js +1 -0
- package/dist/assets/{setting-row-D10FtQcP.js → setting-row-DEyL7IUP.js} +1 -1
- package/dist/assets/{settings-divider-CItcvksF.js → settings-divider-Bf5WJ9ve.js} +1 -1
- package/dist/assets/settings-layout-DcuaK8qu.js +1 -0
- package/dist/assets/settings-navigation-BDpUXrOI.js +1 -0
- package/dist/assets/share-feedback-modal-Dy0GRvA9.js +2 -0
- package/dist/assets/{sidebar-tree-CEPitR5K.js → sidebar-tree-DrZXY5Iz.js} +1 -1
- package/dist/assets/signup-page-B6mmAQJU.js +1 -0
- package/dist/assets/{signup-shell-DxP2zqed.js → signup-shell-CMXUBUal.js} +1 -1
- package/dist/assets/site-favicon-CA7jaNnH.js +1 -0
- package/dist/assets/{skill-detail-page-o3EhI_Q2.js → skill-detail-page-BCPN6NmR.js} +1 -1
- package/dist/assets/{skill-detail-panel-DdQL6oky.js → skill-detail-panel-Cpl1Z7V3.js} +1 -1
- package/dist/assets/{skills-DT9YkYm6.js → skills-BL4RgwAd.js} +1 -1
- package/dist/assets/{skills-page-BtFhw8jF.js → skills-page-BYtAFZzb.js} +1 -1
- package/dist/assets/{slack-setup-wizard-C6ALDSEa.js → slack-setup-wizard-dVkbEE6P.js} +1 -1
- package/dist/assets/{sound-manager-Dy2ohKg4.js → sound-manager-DUo0lHGZ.js} +1 -1
- package/dist/assets/{sounds-page-D4kMljoY.js → sounds-page-CfeiEoJP.js} +1 -1
- package/dist/assets/{src-CnF7WXNj.js → src-BAS7a2RG.js} +39 -39
- package/dist/assets/{start-screen-BiV4V5J1.js → start-screen-CqbeEmEE.js} +1 -1
- package/dist/assets/subagent-detail-panel-jOUXcDnl.js +4 -0
- package/dist/assets/subagent-store-C8qemfgn.js +3 -0
- package/dist/assets/superpowers-page-DltosgGe.js +1 -0
- package/dist/assets/{system-events-page-CpUI1rsZ.js → system-events-page-DEQyyquu.js} +1 -1
- package/dist/assets/{system-events-redirect-page-BQrnMF4i.js → system-events-redirect-page-C44suO-c.js} +1 -1
- package/dist/assets/{tag-Dn1d6hKF.js → tag-D8NAGb0r.js} +1 -1
- package/dist/assets/{credit-card-C1RL73Rt.js → target-cdw7WP5q.js} +1 -1
- package/dist/assets/{theme-stage-page-CW3erTQ4.js → theme-stage-page-CnKpq5QT.js} +1 -1
- package/dist/assets/{threshold-presets-ByKylDXk.js → threshold-presets-B-gOdjC4.js} +1 -1
- package/dist/assets/{tiptap-document-editor-CbPrzkBM.js → tiptap-document-editor-D-lwPWrV.js} +1 -1
- package/dist/assets/{toast-BcMdOTp1.js → toast-DR7D7Uma.js} +1 -1
- package/dist/assets/tool-detail-panel-86ruMQAQ.js +2 -0
- package/dist/assets/transcript-message-body-shared-CT5pk4wz.js +1 -0
- package/dist/assets/{trust-rules-api-CVYU31TU.js → trust-rules-api-iUGCiDDM.js} +1 -1
- package/dist/assets/{upgrade-cancel-page-BSAoMrm5.js → upgrade-cancel-page-DmStvNCn.js} +1 -1
- package/dist/assets/{upgrade-success-page-CooDWnEr.js → upgrade-success-page-jOEtujYa.js} +1 -1
- package/dist/assets/{usage-redirect-page-DtwSt4vM.js → usage-redirect-page-C6qXe-4h.js} +1 -1
- package/dist/assets/{use-active-assistant-id-CUKao_nq.js → use-active-assistant-id-CjvzlL4t.js} +1 -1
- package/dist/assets/{use-app-theme-BhnyqHgJ.js → use-app-theme-BLGjiz96.js} +1 -1
- package/dist/assets/use-assistant-avatar--4s_vvar.js +1 -0
- package/dist/assets/{use-assistant-capability-BdWmg2Vg.js → use-assistant-capability-BaZVGuCu.js} +1 -1
- package/dist/assets/use-assistant-identity-details-C99kNyQf.js +1 -0
- package/dist/assets/use-avatar-accent-var-BaftJG7F.js +1 -0
- package/dist/assets/{use-bookmarks-DtteniG3.js → use-bookmarks-B6Y60m9F.js} +1 -1
- package/dist/assets/{use-bundled-avatar-components-B1ARUeam.js → use-bundled-avatar-components-IQw2k8-g.js} +2 -2
- package/dist/assets/{use-bus-subscription-NoXmdzgx.js → use-bus-subscription-CyRPH_gr.js} +1 -1
- package/dist/assets/use-checkout-dismiss-refresh-BZXXQef1.js +1 -0
- package/dist/assets/use-command-palette-sections-DWCppiPf.js +1 -0
- package/dist/assets/{use-discord-nudge-h0WPtIp6.js → use-discord-nudge-CRU-lEHV.js} +1 -1
- package/dist/assets/{use-edge-swipe-back-Rp4TEihl.js → use-edge-swipe-back-Dbz1hC9g.js} +1 -1
- package/dist/assets/{use-edge-swipe-DDntz5ZJ.js → use-edge-swipe-sMxDzAcb.js} +1 -1
- package/dist/assets/{use-edit-app-BSbRuVnn.js → use-edit-app-BF9YK7AV.js} +1 -1
- package/dist/assets/{use-effective-timezone-Om_EkJxK.js → use-effective-timezone-Bx9QaO25.js} +1 -1
- package/dist/assets/use-invite-link-dialog-DN2IHVZE.js +1 -0
- package/dist/assets/{use-ios-app-nudge-CeOXecJj.js → use-ios-app-nudge-DiqQWH5O.js} +1 -1
- package/dist/assets/use-is-org-ready-BbqlQFXw.js +1 -0
- package/dist/assets/{use-onboarding-login-DsCjVy0U.js → use-onboarding-login-xZhWGmky.js} +1 -1
- package/dist/assets/{use-platform-assistant-id-DSR1LFZF.js → use-platform-assistant-id-BnFEQQeS.js} +1 -1
- package/dist/assets/use-platform-gate-D9hR3R0n.js +1 -0
- package/dist/assets/use-reduced-motion-bjjt6x6d.js +1 -0
- package/dist/assets/use-return-to-short-circuit-B1mhvgIq.js +1 -0
- package/dist/assets/use-save-twilio-credentials-CCp1iqBf.js +1 -0
- package/dist/assets/{use-skill-actions-DTznrJR1.js → use-skill-actions-BLHTDn21.js} +1 -1
- package/dist/assets/{use-skill-detail-files-CKgT7qkY.js → use-skill-detail-files-BVBb8uoK.js} +1 -1
- package/dist/assets/use-sticky-profiles-GTUzoFP4.js +1 -0
- package/dist/assets/use-subagent-card-data-Cu_-lx6d.js +1 -0
- package/dist/assets/use-supports-bookmarks-DbG5HZ6P.js +1 -0
- package/dist/assets/use-supports-credentials-settings-CgWfA2eQ.js +1 -0
- package/dist/assets/{use-swipe-engine-ehsGV4fb.js → use-swipe-engine-RAFE-Hrf.js} +1 -1
- package/dist/assets/utils-C-YNXdkX.js +1 -0
- package/dist/assets/{utils-CP1NAeej.js → utils-Ction0uF.js} +1 -1
- package/dist/assets/video-CQJlht8Q.js +1 -0
- package/dist/assets/{viewer-store-BVsBGqdn.js → viewer-store--hIQLNm5.js} +1 -1
- package/dist/assets/voice-list-BMMz4e4M.js +1 -0
- package/dist/assets/voice-page-4AS-Fm6W.js +1 -0
- package/dist/assets/voice-providers-note-g4IBSHFm.js +1 -0
- package/dist/assets/{weather-forecast-display-JW8ecLNy.js → weather-forecast-display-Bg_OjY6Q.js} +1 -1
- package/dist/assets/web-BEtLqoWJ.js +1 -0
- package/dist/assets/web-C8NouSk8.js +1 -0
- package/dist/assets/web-Cv3bLSQ5.js +1 -0
- package/dist/assets/web-D82T2zyn.js +1 -0
- package/dist/assets/web-RKFLO25W.js +1 -0
- package/dist/assets/web-XmQWRS1M.js +1 -0
- package/dist/assets/web-ZsA8B5nq.js +1 -0
- package/dist/assets/web-s9eE6ZyC.js +1 -0
- package/dist/assets/{welcome-screen-D_DTupb3.js → welcome-screen-B-88csxO.js} +1 -1
- package/dist/assets/{workflow-detail-panel-DAVe3vEm.js → workflow-detail-panel-BNzNSNAT.js} +1 -1
- package/dist/assets/{workflow-store-C3g-qg1u.js → workflow-store-Cbd3x6KN.js} +1 -1
- package/dist/assets/workspace-page-b8SfI_28.js +1 -0
- package/dist/assets/{workspace-tree-query-D9VBUg-W.js → workspace-tree-query-CqcOBNKw.js} +1 -1
- package/dist/index.html +270 -229
- package/package.json +1 -1
- package/dist/assets/access-B_b48snn.js +0 -1
- package/dist/assets/activity-steps-panel-D8fAVo9_.js +0 -1
- package/dist/assets/ai-page-Dd-qECGn.js +0 -1
- package/dist/assets/api-BpGogBsg.js +0 -1
- package/dist/assets/api-Coj5enET.js +0 -1
- package/dist/assets/assistant-identity-store-6On4WZ62.js +0 -1
- package/dist/assets/auth-store-EmLZOAkN.js +0 -2
- package/dist/assets/avatar-random-DjmD5llT.js +0 -1
- package/dist/assets/billing-page-CbelI-Ui.js +0 -3
- package/dist/assets/browser-DvKwnK9l.js +0 -2
- package/dist/assets/build-state-C_Hy9WqC.js +0 -1
- package/dist/assets/channels-page-route-CiOtL1JY.js +0 -9
- package/dist/assets/chat-markdown-message-9ogr9-mn.js +0 -2
- package/dist/assets/checkout-continuation-DmIXoV4L.js +0 -1
- package/dist/assets/checkout-page-2Xr9vx27.js +0 -1
- package/dist/assets/checkout-return-target-DQBOhh64.js +0 -1
- package/dist/assets/command-palette-CzbYrcNM.js +0 -1
- package/dist/assets/command-palette-window-page-CHQdRfhu.js +0 -1
- package/dist/assets/consent-c8EJ3D2A.js +0 -1
- package/dist/assets/contacts-page-route-eTUOUhJL.js +0 -1
- package/dist/assets/conversation-list-fetchers-CavIngGf.js +0 -1
- package/dist/assets/conversation-queries-688XB7Bh.js +0 -1
- package/dist/assets/conversation-selection-Cx6Axfzb.js +0 -1
- package/dist/assets/credentials-page-da3G5EjN.js +0 -1
- package/dist/assets/debug-page-BElAND4u.js +0 -4
- package/dist/assets/developer-page-Ck66ks9T.js +0 -1
- package/dist/assets/document-viewer-container-Dxc95Z_9.js +0 -2
- package/dist/assets/esm-0ejhUWK7.js +0 -2
- package/dist/assets/esm-BPFGl7Zp.js +0 -2
- package/dist/assets/esm-C2uShH10.js +0 -2
- package/dist/assets/esm-CAByj-hK.js +0 -2
- package/dist/assets/esm-Cn1fOTtj.js +0 -2
- package/dist/assets/esm-Df-J9imF.js +0 -1
- package/dist/assets/esm-t0mP3xUe.js +0 -2
- package/dist/assets/eye-bbox-u0VzlPuw.js +0 -1
- package/dist/assets/feature-flag-catalog-CWB-r-Pj.js +0 -1
- package/dist/assets/file-editor-plAxQBKk.js +0 -1
- package/dist/assets/first-run-scope-Br96Z0Ol.js +0 -1
- package/dist/assets/general-page-mGY10EuY.js +0 -1
- package/dist/assets/get-memory-stats-CdA2IhkV.js +0 -1
- package/dist/assets/hatching-screen-DwNw31vj.js +0 -1
- package/dist/assets/home-page-route-B2ScoHEE.js +0 -1
- package/dist/assets/hosting-screen-DKijoYxW.js +0 -1
- package/dist/assets/identity-page-route-DD_U3Te5.js +0 -7
- package/dist/assets/impersonate-version-flag-Cad5-ZZv.js +0 -1
- package/dist/assets/index-BEpJ8S2b.js +0 -11
- package/dist/assets/index-UKZ4bO6i.css +0 -2
- package/dist/assets/integrations-page-BnPiOw9v.js +0 -1
- package/dist/assets/invalidate-memory-queries-D8VNhm2x.js +0 -1
- package/dist/assets/invalidate-plugin-queries-v7687-U8.js +0 -1
- package/dist/assets/list-row-BOvxGO5h.js +0 -1
- package/dist/assets/local-mode-BKousn41.js +0 -39
- package/dist/assets/login-page-BR42WUVt.js +0 -1
- package/dist/assets/machine-sizes-CT-fSRKD.js +0 -1
- package/dist/assets/memory-page-route-CW1Fgh6X.js +0 -2
- package/dist/assets/mutation-error-DoEwwcm3.js +0 -1
- package/dist/assets/native-anchor-BeAcmUWk.js +0 -1
- package/dist/assets/native-biometric-DUHF57O_.js +0 -6
- package/dist/assets/native-deep-link-D4jZANvf.js +0 -1
- package/dist/assets/native-file-CfGNNXKe.js +0 -2
- package/dist/assets/navigation-resolver-BIPJSTY5.js +0 -1
- package/dist/assets/open-workspace-file-AUDky4i4.js +0 -2
- package/dist/assets/page-empty-state-DTRXFoHj.js +0 -1
- package/dist/assets/panel-item-CQt19wOM.js +0 -1
- package/dist/assets/plans-page-GiIsWq7v.js +0 -1
- package/dist/assets/platform-detection-D1fBX4KG.js +0 -1
- package/dist/assets/plugins-surface-BGSKlIwH.js +0 -1
- package/dist/assets/privacy-screen-hSx7ZwqA.js +0 -1
- package/dist/assets/provider-key-B07UMm1T.js +0 -1
- package/dist/assets/provider-signup-page-BapnHqaW.js +0 -1
- package/dist/assets/provisioning-targets-epeYMPhZ.js +0 -1
- package/dist/assets/react-query.gen-9VRdubOj.js +0 -1
- package/dist/assets/react-query.gen-BeiAUt-2.js +0 -1
- package/dist/assets/research-onboarding-route-DpgbtSS0.js +0 -50
- package/dist/assets/resolved-assistants-store-FEmi1gGu.js +0 -1
- package/dist/assets/retire-confirm-dialog-CFJqb_EM.js +0 -1
- package/dist/assets/risk-RmzL2Rk_.js +0 -3
- package/dist/assets/routes-NQmj27cY.js +0 -23
- package/dist/assets/runtime-upgrade-banner-BM2b81eK.js +0 -2
- package/dist/assets/schedules-BMEs36wC.js +0 -1
- package/dist/assets/schedules-page-BkOE2joT.js +0 -1
- package/dist/assets/sdk.gen-DHJ7Pbqq.js +0 -1
- package/dist/assets/select-assistant-screen-S526udI9.js +0 -1
- package/dist/assets/semver-Ok0Hi8v9.js +0 -1
- package/dist/assets/settings-layout-DKr7K-B6.js +0 -1
- package/dist/assets/settings-navigation-ji_jJYq2.js +0 -1
- package/dist/assets/share-feedback-modal-GLBRzcZa.js +0 -1
- package/dist/assets/signup-page-C0y2CTKm.js +0 -1
- package/dist/assets/site-favicon-Dx98M-cB.js +0 -1
- package/dist/assets/subagent-detail-panel-Cvmfu7Ym.js +0 -4
- package/dist/assets/subagent-store-B2Uhma4F.js +0 -3
- package/dist/assets/superpowers-page-CPBz-c5i.js +0 -1
- package/dist/assets/tool-detail-panel-DyfiRoE5.js +0 -2
- package/dist/assets/transcript-message-body-shared-Cb89j7p1.js +0 -1
- package/dist/assets/use-assistant-avatar-BcObK2L0.js +0 -1
- package/dist/assets/use-assistant-identity-details-BdFppz9B.js +0 -1
- package/dist/assets/use-avatar-accent-var-rnSeYvBI.js +0 -1
- package/dist/assets/use-checkout-dismiss-refresh-wRSmB_TU.js +0 -1
- package/dist/assets/use-command-palette-sections-GAugkmjU.js +0 -1
- package/dist/assets/use-invite-link-dialog-yw1dtYd_.js +0 -1
- package/dist/assets/use-is-org-ready-BrKAc9Df.js +0 -1
- package/dist/assets/use-platform-gate-Cv2oOK8C.js +0 -1
- package/dist/assets/use-reduced-motion-D0Rb5Fd_.js +0 -1
- package/dist/assets/use-return-to-short-circuit-DEKlWitV.js +0 -1
- package/dist/assets/use-save-twilio-credentials-CecOWIyh.js +0 -1
- package/dist/assets/use-sticky-profiles-CdiEmubF.js +0 -1
- package/dist/assets/use-subagent-card-data-DJujXR76.js +0 -1
- package/dist/assets/use-supports-bookmarks-D4_-FkJA.js +0 -1
- package/dist/assets/use-supports-credentials-settings-CGDLraXI.js +0 -1
- package/dist/assets/utils-D8KOSvh3.js +0 -1
- package/dist/assets/video-BcgduiJ6.js +0 -1
- package/dist/assets/voice-list-DeqvOR_J.js +0 -1
- package/dist/assets/voice-page-Cas-WIf4.js +0 -1
- package/dist/assets/voice-picker-modal-D0K6miA1.js +0 -1
- package/dist/assets/web-BTtRunTK.js +0 -1
- package/dist/assets/web-Bd-5Eyoa.js +0 -1
- package/dist/assets/web-ByAAA1Mb.js +0 -1
- package/dist/assets/web-DFbI_g4o.js +0 -1
- package/dist/assets/web-DIn7jUpJ.js +0 -1
- package/dist/assets/web-DYQ0KCC4.js +0 -1
- package/dist/assets/web-Db-2E0qX.js +0 -1
- package/dist/assets/web-PfT3uNnR.js +0 -1
- package/dist/assets/workspace-page-Dq0z3-Rs.js +0 -1
- package/dist/assets/zoom-in-C96B1CNL.js +0 -1
- /package/dist/assets/{Combination-BRDRMC4m.js → Combination-C7TWRLS7.js} +0 -0
- /package/dist/assets/{api-errors-DHvv5HEN.js → api-errors-SZKDzMLE.js} +0 -0
- /package/dist/assets/{app-types-BnzWLsk5.js → app-types-o5Qc-xkK.js} +0 -0
- /package/dist/assets/{apple-logo-C3XrRC_i.js → apple-logo-Cg-KnqW2.js} +0 -0
- /package/dist/assets/{avatar-bundled-components-yyfTpx_l.js → avatar-bundled-components-CTd294ra.js} +0 -0
- /package/dist/assets/{avatar-subagent-Bpy9-0YN.js → avatar-subagent-BpXST4nO.js} +0 -0
- /package/dist/assets/{avatar-svg-compositor-DeuQqt-f.js → avatar-svg-compositor-DclcUb1M.js} +0 -0
- /package/dist/assets/{avatar-tone-BBZKSrBa.js → avatar-tone-4L7foPzW.js} +0 -0
- /package/dist/assets/{build.umd-CpQXlBwc.js → build.umd-oXvZOmIf.js} +0 -0
- /package/dist/assets/{chat-B9S7HTkM.js → chat-BIJEFb5u.js} +0 -0
- /package/dist/assets/{client.gen-DPP573hb.js → client.gen-DHOmbzD9.js} +0 -0
- /package/dist/assets/{create-selectors-B41BzcFF.js → create-selectors-B-P03-8K.js} +0 -0
- /package/dist/assets/{definitions-B2pe1hr8.js → definitions-BD-g60mP.js} +0 -0
- /package/dist/assets/{definitions-B6TMLvuT.js → definitions-CL6e7nYF.js} +0 -0
- /package/dist/assets/{dist-BbzsnMsY.js → dist-BKxs5XmY.js} +0 -0
- /package/dist/assets/{dist-CCFYMOVM.js → dist-CFSiz2ry2.js} +0 -0
- /package/dist/assets/{dist-BxvMAFS8.js → dist-CKLJHt4Z.js} +0 -0
- /package/dist/assets/{domains-BLQZqRIT.js → domains-OaR_FpOR.js} +0 -0
- /package/dist/assets/{edit-chat-session-DDnAzqkB.js → edit-chat-session-Beky6Vpg.js} +0 -0
- /package/dist/assets/{ellipsis-DnoqTkj4.js → ellipsis-BRJI5_P1.js} +0 -0
- /package/dist/assets/{emoji-catalog-data-DvjqmdH4.js → emoji-catalog-data-5pJaL_3N.js} +0 -0
- /package/dist/assets/{event-bus-DYZhc6yM.js → event-bus-CvZyJQ26.js} +0 -0
- /package/dist/assets/{external-link-CS0aVYGt.js → external-link-CAce-RVu.js} +0 -0
- /package/dist/assets/{external-urls-DIbR-npW.js → external-urls-97O9n0lb.js} +0 -0
- /package/dist/assets/{eye-BMVGQXHT.js → eye-DTyDWiqu.js} +0 -0
- /package/dist/assets/{eye-off-Jdx8qkOK.js → eye-off-fuOP4Lij.js} +0 -0
- /package/dist/assets/{file-code-BDHws4Dk.js → file-code-DD3K2kve.js} +0 -0
- /package/dist/assets/{file-plus-C3SBA8ll.js → file-plus-Dq2xo7Ic.js} +0 -0
- /package/dist/assets/{file-text-Br730Q4B.js → file-text-BCsUYVEF.js} +0 -0
- /package/dist/assets/{folder-DF8nFp7N.js → folder-g06qTW2O.js} +0 -0
- /package/dist/assets/{folder-open-Nlg0OphT.js → folder-open-CAb0DLYq.js} +0 -0
- /package/dist/assets/{format-date-BEAiOK8n.js → format-date-CKGQir4m.js} +0 -0
- /package/dist/assets/{format-file-size-BtDHBEb-.js → format-file-size-Eu-Z0CxL.js} +0 -0
- /package/dist/assets/{globe-CMtjL_s_.js → globe-BDvXuPkw.js} +0 -0
- /package/dist/assets/{hard-drive-DWFPKcXI.js → hard-drive-CncrDZ7V.js} +0 -0
- /package/dist/assets/{heart-789ajxtB.js → heart-2AHOP0tB.js} +0 -0
- /package/dist/assets/{inbox-B6TknLsk.js → inbox-DXYIwUrn.js} +0 -0
- /package/dist/assets/{info-vgPTIsGI.js → info-CYiVdnQV.js} +0 -0
- /package/dist/assets/{input-F_x2LXmm.js → input-C-GkeWCw.js} +0 -0
- /package/dist/assets/{is-electron-D-TCQRcE.js → is-electron-7N7iyz1y.js} +0 -0
- /package/dist/assets/{key-round-0Zop_GsZ.js → key-round-CSc3w5ka.js} +0 -0
- /package/dist/assets/{laptop-DSZhU52i.js → laptop-ByoaxLxg.js} +0 -0
- /package/dist/assets/{layout-grid-DA_CfD6d.js → layout-grid-PPpVK0nJ.js} +0 -0
- /package/dist/assets/{link-2-BKL8QWRX.js → link-2-BMNZFfWH.js} +0 -0
- /package/dist/assets/{link-BfUb7cwC.js → link-CowyzCIZ.js} +0 -0
- /package/dist/assets/{link-click-BIvzZsRn.js → link-click-BEiniqcG.js} +0 -0
- /package/dist/assets/{list-DNbTcxAh.js → list-CDyb1CGV.js} +0 -0
- /package/dist/assets/{loader-circle-XREx3i4W.js → loader-circle-BzJ2kz3F.js} +0 -0
- /package/dist/assets/{log-in-CqVJRYe-.js → log-in-Bhye1kwc.js} +0 -0
- /package/dist/assets/{log-out-B4hsBWnk.js → log-out-BLE632qu.js} +0 -0
- /package/dist/assets/{mail-CMdPNysl.js → mail-DABv3_Ue.js} +0 -0
- /package/dist/assets/{message-circle-BsH7vHtN.js → message-circle-gk_DFUIg.js} +0 -0
- /package/dist/assets/{message-square-text-D0Q7W58R.js → message-square-text-asdoy3SW.js} +0 -0
- /package/dist/assets/{message-square-CQGiY4zk.js → message-square-zCNXaHYX.js} +0 -0
- /package/dist/assets/{mic-xmDFUbCL.js → mic-DZrWtAAu.js} +0 -0
- /package/dist/assets/{minimize-2-CaXsUqSp.js → minimize-2-BR0ed4mI.js} +0 -0
- /package/dist/assets/{misc-CXDB4i-X.js → misc-CAQM4FGM.js} +0 -0
- /package/dist/assets/{monitor-B1y28fS1.js → monitor-B5vtTCxm.js} +0 -0
- /package/dist/assets/{moon-BJzODLTY.js → moon-DSdti3GO.js} +0 -0
- /package/dist/assets/{oauth-popup-BsYPnBq7.js → oauth-popup-Ql5xgtlO.js} +0 -0
- /package/dist/assets/{onboarding-step-layout-Do2o16kf.js → onboarding-step-layout-DGtbhZJb.js} +0 -0
- /package/dist/assets/{optimistic-lifecycle-Dxhc3mFf.js → optimistic-lifecycle-50vNA6dY.js} +0 -0
- /package/dist/assets/{paperclip-c8Xlrnx4.js → paperclip-DVE0scjU.js} +0 -0
- /package/dist/assets/{pdf-CRRXY5Nb.js → pdf-8fO1Wz7e.js} +0 -0
- /package/dist/assets/{pencil-D38YNe2r.js → pencil-CLJIvYKH.js} +0 -0
- /package/dist/assets/{play-B0-JEtcm.js → play-CCT817Ah.js} +0 -0
- /package/dist/assets/{plugin-attribution-ug-jMTXi.js → plugin-attribution-Hjqz10My.js} +0 -0
- /package/dist/assets/{plus-jH3kAliM.js → plus-JG7kWjHA.js} +0 -0
- /package/dist/assets/{pointer-DAyn_9jY.js → pointer-QlIwQKYH.js} +0 -0
- /package/dist/assets/{profile-metadata-EGAGq_rk.js → profile-metadata-BksFtHNq.js} +0 -0
- /package/dist/assets/{progress-bar-B64ghmWk.js → progress-bar-CJxkStgF.js} +0 -0
- /package/dist/assets/{public-asset-BoN50HP_.js → public-asset-CD3ouSWU.js} +0 -0
- /package/dist/assets/{puzzle-BVC3TGko.js → puzzle-CtM3jM-f.js} +0 -0
- /package/dist/assets/{refresh-cw-DzPnoeCh.js → refresh-cw-Ci7hSykC.js} +0 -0
- /package/dist/assets/{repeat-GCVYEp1h.js → repeat-CIQpv9Nd.js} +0 -0
- /package/dist/assets/{rotate-ccw-BjzeX7qz.js → rotate-ccw-Da_2DvhY.js} +0 -0
- /package/dist/assets/{sdk.gen-CtusrdLv.js → sdk.gen-DEFA-6EJ.js} +0 -0
- /package/dist/assets/{search-BVW-n8to.js → search-DA3TmTuR.js} +0 -0
- /package/dist/assets/{send-Q71Exj3z.js → send-DHWUIK7G.js} +0 -0
- /package/dist/assets/{settings-PGZ9c_uo.js → settings-DyEBEqeQ.js} +0 -0
- /package/dist/assets/{shield-B69p45Kq.js → shield-9aFTFyT9.js} +0 -0
- /package/dist/assets/{shield-check-C7I-REGg.js → shield-check-z7CU-gBq.js} +0 -0
- /package/dist/assets/{smartphone-zTfpbpuH.js → smartphone-BbK6bGuE.js} +0 -0
- /package/dist/assets/{sparkles-nPSxUfsO.js → sparkles-DC8kqYjt.js} +0 -0
- /package/dist/assets/{square-CRVB76KQ.js → square-Bn3X6ZlO.js} +0 -0
- /package/dist/assets/{status-badge-pill-CGODAHVT.js → status-badge-pill-ZNNoKV1T.js} +0 -0
- /package/dist/assets/{sun-DXlsFvWD.js → sun-BKEPYS7Q.js} +0 -0
- /package/dist/assets/{terminal-BvDcWAOW.js → terminal-Cs_TREv-.js} +0 -0
- /package/dist/assets/{three-dot-indicator-B_GPAioB.js → three-dot-indicator-CfjkCgEH.js} +0 -0
- /package/dist/assets/{toggle-B4nIp0sf.js → toggle-D776PTw-.js} +0 -0
- /package/dist/assets/{trash-2-BF5y4UkY.js → trash-2-De6X8YiM.js} +0 -0
- /package/dist/assets/{triangle-alert-Dq3v0coH.js → triangle-alert--e3n47gm.js} +0 -0
- /package/dist/assets/{typed-storage-CcMT-hWr.js → typed-storage-C-R1po3l.js} +0 -0
- /package/dist/assets/{use-copy-to-clipboard-VK_922zc.js → use-copy-to-clipboard-BarKTY4m.js} +0 -0
- /package/dist/assets/{user-KBQkOaB5.js → user-Dq9DUxnU.js} +0 -0
- /package/dist/assets/{user-plus-CsHAo9W6.js → user-plus-CXMJ1x_5.js} +0 -0
- /package/dist/assets/{users-C0mu7-R4.js → users-DWDkv8ju.js} +0 -0
- /package/dist/assets/{volume-2-DnyXryvu.js → volume-2-Bj3y3ZBJ.js} +0 -0
- /package/dist/assets/{workflow-CN4xwQpa.js → workflow-DbPANJpf.js} +0 -0
- /package/dist/assets/{workspace-theme-tokens-D8TTf-DX.js → workspace-theme-tokens-bLqHFK0a.js} +0 -0
- /package/dist/assets/{wrench-DDDwrNwL.js → wrench-tjOqvzJ2.js} +0 -0
- /package/dist/assets/{x-BGag7vwj.js → x-DuBvjmAE.js} +0 -0
- /package/dist/assets/{xterm-coCKWVob.js → xterm-Ip5qSQfD.js} +0 -0
- /package/dist/assets/{xterm-addon-fit-B1qPIPGd.js → xterm-addon-fit-BbxIpbO2.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./machine-sizes-CT-fSRKD.js";function t(t,n){if(!t)return!1;let r=t.machineSize==null||n?.machineSize!=null&&e(n.machineSize)>=e(t.machineSize),i=t.storageGib==null||n?.storageGib!=null&&n.storageGib>=t.storageGib;return r&&i}function n(e){if(!e)return!1;if(e.state===`resizing_machine`||e.state===`resizing_storage`)return!0;let t=e.active_operation?.operation;return typeof t==`string`&&t.startsWith(`resize`)}function r(e){return e.state===`not_applicable`&&(e.reason===`no_active_pro`||e.reason===`no_provisionable_assistants`)}export{n,t as r,r as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./useMutation-CXGTrp4W.js";import{t}from"./queryOptions-CMSBCFOf.js";import{t as n}from"./infiniteQueryOptions-CqLc14_4.js";import{t as r}from"./client.gen-DPP573hb.js";import{A as i,At as a,Bt as ee,Ct as te,Dt as ne,Et as re,F as ie,Ft as ae,G as oe,Ht as se,I as ce,It as le,L as ue,Mt as de,Nt as fe,O as pe,Ot as me,Pt as he,Q as ge,R as _e,S as ve,St as ye,T as be,Tt as xe,U as Se,Ut as Ce,V as we,Vt as Te,W as o,Wt as s,_ as c,_t as l,at as u,b as d,bt as f,c as p,ct as m,dt as h,f as g,ft as _,g as v,gt as y,h as b,ht as x,it as S,j as C,jt as w,k as T,m as E,mt as D,n as O,nt as Ee,ot as De,pt as Oe,r as ke,rt as Ae,s as je,st as Me,tt as Ne,v as Pe,vt as Fe,wt as Ie,x as Le,xt as Re,y as ze,yt as Be}from"./sdk.gen-DHJ7Pbqq.js";var k=(e,t,n,i)=>{let a={_id:e,baseUrl:t?.baseUrl||(t?.client??r).getConfig().baseUrl};return n&&(a._infinite=n),i&&(a.tags=i),t?.body&&(a.body=t.body),t?.headers&&(a.headers=t.headers),t?.path&&(a.path=t.path),t?.query&&(a.query=t.query),[a]},A=e=>k(`assistantsList`,e),Ve=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await be({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:A(e)}),He=(e,t)=>{let n={...e[0]};return t.body&&(n.body={...e[0].body,...t.body}),t.headers&&(n.headers={...e[0].headers,...t.headers}),t.path&&(n.path={...e[0].path,...t.path}),t.query&&(n.query={...e[0].query,...t.query}),n},Ue=e=>k(`assistantsDoctorHistoryList`,e),We=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await je({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Ue(e)}),Ge=e=>k(`assistantsDoctorHistoryRetrieve`,e),Ke=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await p({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Ge(e)}),qe=e=>({mutationFn:async t=>{let{data:n}=await g({...e,...t,throwOnError:!0});return n}}),Je=t=>e({...qe(),...t}),j=e=>k(`assistantsDomainsList`,e),Ye=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await v({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:j(e)}),Xe=e=>({mutationFn:async t=>{let{data:n}=await E({...e,...t,throwOnError:!0});return n}}),Ze=e=>({mutationFn:async t=>{let{data:n}=await b({...e,...t,throwOnError:!0});return n}}),Qe=e=>k(`assistantsDomainsVerificationStatusRetrieve`,e),$e=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await c({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Qe(e)}),M=e=>k(`assistantsEmailAddressesList`,e),et=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await d({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:M(e)}),tt=e=>({mutationFn:async t=>{let{data:n}=await Pe({...e,...t,throwOnError:!0});return n}}),nt=e=>({mutationFn:async t=>{let{data:n}=await ze({...e,...t,throwOnError:!0});return n}}),N=e=>k(`assistantsEmailAddressesStatusRetrieve`,e),rt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Le({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:N(e)}),it=e=>k(`assistantsEmailsList`,e),at=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ve({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:it(e)}),ot=e=>({mutationFn:async t=>{let{data:n}=await i({...e,...t,throwOnError:!0});return n}}),st=t=>e({...ot(),...t}),P=e=>k(`assistantsOauthConnectionsList`,e),F=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await pe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:P(e)}),ct=(e,t,n)=>e.setQueryData(F(t).queryKey,n),lt=e=>({mutationFn:async t=>{let{data:n}=await T({...e,...t,throwOnError:!0});return n}}),I=t=>e({...lt(),...t}),L=e=>k(`assistantsReleaseChannelRetrieve`,e),ut=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ue({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:L(e)}),dt=e=>({mutationFn:async t=>{let{data:n}=await ie({...e,...t,throwOnError:!0});return n}}),ft=e=>({mutationFn:async t=>{let{data:n}=await ce({...e,...t,throwOnError:!0});return n}}),pt=e=>k(`assistantsSystemEventsList`,e,!0),mt=e=>n({queryFn:async({pageParam:t,queryKey:n,signal:r})=>{let i=He(n,typeof t==`object`?t:{query:{offset:t}}),{data:a}=await oe({...e,...i,signal:r,throwOnError:!0});return a},queryKey:pt(e)}),R=e=>k(`assistantsRetrieve`,e),ht=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await we({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:R(e)}),gt=e=>k(`assistantsOperationalStatusDetailRead`,e),_t=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await C({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:gt(e)}),vt=e=>({mutationFn:async t=>{let{data:n}=await _e({...e,...t,throwOnError:!0});return n}}),yt=t=>e({...vt(),...t}),z=e=>k(`assistantsSleepPolicyDetailRead`,e),bt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await o({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:z(e)}),xt=e=>({mutationFn:async t=>{let{data:n}=await Se({...e,...t,throwOnError:!0});return n}}),St=t=>e({...xt(),...t}),B=e=>k(`assistantsUpgradePolicyDetailRead`,e),Ct=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ge({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:B(e)}),wt=e=>k(`assistantsAccessConsentRetrieve`,e),V=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await O({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:wt(e)}),Tt=(e,t,n)=>e.setQueryData(V(t).queryKey,n),Et=e=>k(`assistantsActiveRetrieve`,e),Dt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ke({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Et(e)}),Ot=e=>k(`featureFlagsClientFlagValuesRetrieve`,e),kt=e=>({mutationFn:async t=>{let{data:n}=await Ne({...e,...t,throwOnError:!0});return n}}),H=e=>k(`organizationsBillingAutoTopUpRetrieve`,e),U=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await S({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:H(e)}),At=(e,t,n)=>e.setQueryData(U(t).queryKey,n),jt=e=>({mutationFn:async t=>{let{data:n}=await De({...e,...t,throwOnError:!0});return n}}),Mt=e=>({mutationFn:async t=>{let{data:n}=await Ee({...e,...t,throwOnError:!0});return n}}),Nt=e=>({mutationFn:async t=>{let{data:n}=await Ae({...e,...t,throwOnError:!0});return n}}),Pt=e=>({mutationFn:async t=>{let{data:n}=await u({...e,...t,throwOnError:!0});return n}}),W=e=>k(`organizationsBillingDailyCreditLimitRetrieve`,e),G=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Me({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:W(e)}),Ft=(e,t,n)=>e.setQueryData(G(t).queryKey,n),It=e=>({mutationFn:async t=>{let{data:n}=await m({...e,...t,throwOnError:!0});return n}}),Lt=e=>k(`organizationsBillingInvoicesRetrieve`,e),K=e=>k(`organizationsBillingLowBalanceAlertRetrieve`,e),q=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await h({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:K(e)}),Rt=(e,t,n)=>e.setQueryData(q(t).queryKey,n),zt=e=>({mutationFn:async t=>{let{data:n}=await _({...e,...t,throwOnError:!0});return n}}),J=e=>k(`organizationsBillingPlansRetrieve`,e),Bt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Oe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:J(e)}),Vt=e=>({mutationFn:async t=>{let{data:n}=await D({...e,...t,throwOnError:!0});return n}}),Ht=t=>e({...Vt(),...t}),Y=e=>k(`organizationsBillingSubscriptionRetrieve`,e),Ut=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ye({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Y(e)}),Wt=e=>({mutationFn:async t=>{let{data:n}=await x({...e,...t,throwOnError:!0});return n}}),Gt=e=>({mutationFn:async t=>{let{data:n}=await y({...e,...t,throwOnError:!0});return n}}),Kt=e=>({mutationFn:async t=>{let{data:n}=await l({...e,...t,throwOnError:!0});return n}}),qt=e=>({mutationFn:async t=>{let{data:n}=await Fe({...e,...t,throwOnError:!0});return n}}),X=e=>k(`organizationsBillingSubscriptionOnboardingRetrieve`,e),Jt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Re({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:X(e)}),Yt=e=>({mutationFn:async t=>{let{data:n}=await Be({...e,...t,throwOnError:!0});return n}}),Xt=e=>({mutationFn:async t=>{let{data:n}=await f({...e,...t,throwOnError:!0});return n}}),Zt=e=>({mutationFn:async t=>{let{data:n}=await te({...e,...t,throwOnError:!0});return n}}),Z=e=>k(`organizationsBillingSummaryRetrieve`,e),Qt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await xe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Z(e)}),$t=e=>({mutationFn:async t=>{let{data:n}=await Ie({...e,...t,throwOnError:!0});return n}}),en=t=>e({...$t(),...t}),tn=e=>({mutationFn:async t=>{let{data:n}=await re({...e,...t,throwOnError:!0});return n}}),nn=e=>k(`organizationsBillingUsageSeriesRetrieve`,e),rn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ne({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:nn(e)}),an=e=>k(`organizationsBillingUsageTotalsRetrieve`,e),on=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await me({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:an(e)}),Q=e=>k(`organizationsNotificationsList`,e),sn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await w({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Q(e)}),cn=e=>({mutationFn:async t=>{let{data:n}=await a({...e,...t,throwOnError:!0});return n}}),ln=e=>({mutationFn:async t=>{let{data:n}=await he({...e,...t,throwOnError:!0});return n}}),un=e=>({mutationFn:async t=>{let{data:n}=await de({...e,...t,throwOnError:!0});return n}}),dn=e=>({mutationFn:async t=>{let{data:n}=await fe({...e,...t,throwOnError:!0});return n}}),fn=e=>k(`organizationsNotificationsSummaryRetrieve`,e),pn=e=>k(`referralCodesMeRetrieve`,e),mn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ae({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:pn(e)}),hn=e=>k(`releasesList`,e),gn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await le({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:hn(e)}),_n=e=>({mutationFn:async t=>{let{data:n}=await ee({...e,...t,throwOnError:!0});return n}}),vn=t=>e({..._n(),...t}),$=e=>k(`userMfaFactorsList`,e),yn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ce({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:$(e)}),bn=e=>({mutationFn:async t=>{let{data:n}=await Te({...e,...t,throwOnError:!0});return n}}),xn=t=>e({...bn(),...t}),Sn=e=>({mutationFn:async t=>{let{data:n}=await se({...e,...t,throwOnError:!0});return n}}),Cn=t=>e({...Sn(),...t}),wn=e=>({mutationFn:async t=>{let{data:n}=await s({...e,...t,throwOnError:!0});return n}}),Tn=t=>e({...wn(),...t});export{Bt as $,bt as A,St as At,H as B,_t as C,fn as Ct,L as D,I as Dt,ut as E,Je as Et,Ot as F,Cn as Ft,W as G,Pt as H,kt as I,Tn as It,Lt as J,Ft as K,Mt as L,yn as Lt,mt as M,en as Mt,Ct as N,vn as Nt,ht as O,st as Ot,B as P,xn as Pt,zt as Q,Nt as R,$ as Rt,ct as S,ln as St,ft as T,gn as Tt,jt as U,At as V,G as W,K as X,q as Y,Rt as Z,at as _,cn as _t,Ke as a,Yt as at,F as b,un as bt,Ye as c,X as ct,tt as d,Zt as dt,J as et,nt as f,Qt as ft,N as g,on as gt,rt as h,rn as ht,We as i,qt as it,z as j,Ht as jt,R as k,yt as kt,j as l,Ut as lt,M as m,tn as mt,Tt as n,Gt as nt,Xe as o,Xt as ot,et as p,Z as pt,It as q,Dt as r,Kt as rt,Ze as s,Jt as st,V as t,Wt as tt,$e as u,Y as ut,Ve as v,sn as vt,dt as w,mn as wt,P as x,dn as xt,A as y,Q as yt,U as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./useMutation-CXGTrp4W.js";import{t}from"./queryOptions-CMSBCFOf.js";import{t as n}from"./infiniteQueryOptions-CqLc14_4.js";import{A as r,An as i,Ar as a,C as ee,Ct as te,D as ne,Dn as re,Dr as ie,Dt as ae,E as oe,En as se,Et as ce,F as o,Gn as le,Gt as ue,Hn as de,Hr as fe,I as pe,In as me,Jn as s,L as he,Lt as ge,Mn as _e,Mr as ve,Mt as ye,N as be,Nn as xe,Nt as Se,O as Ce,On as we,Or as Te,Ot as Ee,P as De,Pt as c,R as Oe,T as ke,Ur as Ae,Vn as je,W as Me,Wn as Ne,Wr as Pe,Xt as Fe,Yt as Ie,_r as l,cr as u,ct as d,dn as f,dr as p,fn as m,fr as h,ft as g,gn as _,gr as Le,hn as Re,hr as ze,ir as Be,j as Ve,jn as He,jr as Ue,jt as We,kn as Ge,kt as Ke,lr as qe,mn as Je,mr as Ye,o as Xe,qn as Ze,qt as Qe,sr as $e,st as et,ur as tt,vr as nt,w as rt,x as it,zn as at,zt as ot}from"./sdk.gen-DeyOX3Kb.js";var v=(e,t,n,r)=>{let i={_id:e,baseUrl:t?.baseUrl||(t?.client??Pe).getConfig().baseUrl};return n&&(i._infinite=n),r&&(i.tags=r),t?.body&&(i.body=t.body),t?.headers&&(i.headers=t.headers),t?.path&&(i.path=t.path),t?.query&&(i.query=t.query),[i]},y=e=>v(`appsGet`,e),st=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Xe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:y(e)}),b=e=>v(`bookmarksGet`,e),ct=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await it({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:b(e)}),lt=e=>v(`channelsAvailableGet`,e),ut=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ee({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:lt(e)}),x=e=>v(`channelsReadinessGet`,e),dt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await rt({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:x(e)}),S=e=>v(`configGet`,e),C=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ke({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:S(e)}),ft=(e,t,n)=>e.setQueryData(C(t).queryKey,n),pt=e=>({mutationFn:async t=>{let{data:n}=await Ve({...e,...t,throwOnError:!0});return n}}),mt=t=>e({...pt(),...t}),ht=e=>v(`configLlmCallsitesGet`,e),gt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await oe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:ht(e)}),w=e=>v(`configLlmDefaultproviderGet`,e),_t=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ne({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:w(e)}),vt=e=>({mutationFn:async t=>{let{data:n}=await Ce({...e,...t,throwOnError:!0});return n}}),yt=e=>v(`configLlmProfilesGet`,e),bt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:i}=await r({...e,...t[0],signal:n,throwOnError:!0});return i},queryKey:yt(e)}),xt=e=>v(`consolidationConfigGet`,e),St=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await be({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:xt(e)}),Ct=e=>({mutationFn:async t=>{let{data:n}=await De({...e,...t,throwOnError:!0});return n}}),wt=t=>e({...Ct(),...t}),Tt=e=>v(`consolidationRunsGet`,e),Et=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await o({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Tt(e)}),T=(e,t)=>{let n={...e[0]};return t.body&&(n.body={...e[0].body,...t.body}),t.headers&&(n.headers={...e[0].headers,...t.headers}),t.path&&(n.path={...e[0].path,...t.path}),t.query&&(n.query={...e[0].query,...t.query}),n},E=e=>v(`consolidationRunsGet`,e,!0),Dt=e=>n({queryFn:async({pageParam:t,queryKey:n,signal:r})=>{let i=T(n,typeof t==`object`?t:{query:{before:t}}),{data:a}=await o({...e,...i,signal:r,throwOnError:!0});return a},queryKey:E(e)}),Ot=e=>({mutationFn:async t=>{let{data:n}=await pe({...e,...t,throwOnError:!0});return n}}),kt=t=>e({...Ot(),...t}),D=e=>v(`contactsGet`,e),O=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await he({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:D(e)}),At=(e,t,n)=>e.setQueryData(O(t).queryKey,n),jt=e=>({mutationFn:async t=>{let{data:n}=await Oe({...e,...t,throwOnError:!0});return n}}),Mt=t=>e({...jt(),...t}),Nt=e=>v(`conversationstartersGet`,e),Pt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await et({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Nt(e)}),k=e=>v(`conversationsByIdGet`,e),Ft=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Me({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:k(e)}),It=e=>({mutationFn:async t=>{let{data:n}=await d({...e,...t,throwOnError:!0});return n}}),Lt=t=>e({...It(),...t}),Rt=e=>({mutationFn:async t=>{let{data:n}=await g({...e,...t,throwOnError:!0});return n}}),zt=t=>e({...Rt(),...t}),A=e=>v(`documentsGet`,e),Bt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await te({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:A(e)}),j=e=>v(`groupsGet`,e),M=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ee({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:j(e)}),Vt=(e,t,n)=>e.setQueryData(M(t).queryKey,n),Ht=e=>({mutationFn:async t=>{let{data:n}=await Ke({...e,...t,throwOnError:!0});return n}}),Ut=t=>e({...Ht(),...t}),Wt=e=>({mutationFn:async t=>{let{data:n}=await ce({...e,...t,throwOnError:!0});return n}}),N=t=>e({...Wt(),...t}),Gt=e=>({mutationFn:async t=>{let{data:n}=await ae({...e,...t,throwOnError:!0});return n}}),Kt=t=>e({...Gt(),...t}),qt=e=>v(`heartbeatConfigGet`,e),P=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await We({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:qt(e)}),Jt=(e,t,n)=>e.setQueryData(P(t).queryKey,n),Yt=e=>({mutationFn:async t=>{let{data:n}=await ye({...e,...t,throwOnError:!0});return n}}),Xt=t=>e({...Yt(),...t}),Zt=e=>({mutationFn:async t=>{let{data:n}=await Se({...e,...t,throwOnError:!0});return n}}),Qt=t=>e({...Zt(),...t}),$t=e=>v(`heartbeatRunsGet`,e),en=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await c({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:$t(e)}),F=e=>v(`heartbeatRunsGet`,e,!0),tn=e=>n({queryFn:async({pageParam:t,queryKey:n,signal:r})=>{let i=T(n,typeof t==`object`?t:{query:{before:t}}),{data:a}=await c({...e,...i,signal:r,throwOnError:!0});return a},queryKey:F(e)}),I=e=>v(`homeFeedGet`,e),nn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ge({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:I(e)}),rn=(e,t,n)=>e.setQueryData(nn(t).queryKey,n),L=e=>v(`homeStateGet`,e),an=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ot({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:L(e)}),on=e=>v(`identityGet`,e),R=e=>v(`inferenceProviderconnectionsGet`,e),sn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ue({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:R(e)}),cn=e=>({mutationFn:async t=>{let{data:n}=await Qe({...e,...t,throwOnError:!0});return n}}),z=e=>v(`integrationsSlackChannelConfigGet`,e),ln=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ie({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:z(e)}),un=e=>({mutationFn:async t=>{let{data:n}=await Fe({...e,...t,throwOnError:!0});return n}}),dn=e=>v(`memoryV2NowtextGet`,e),fn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await f({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:dn(e)}),pn=e=>v(`memoryV2RouterprompttemplateGet`,e),mn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await m({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:pn(e)}),hn=e=>({mutationFn:async t=>{let{data:n}=await Je({...e,...t,throwOnError:!0});return n}}),gn=t=>e({...hn(),...t}),_n=e=>v(`memoryWorkerStatusGet`,e),B=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Re({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:_n(e)}),vn=(e,t,n)=>e.setQueryData(B(t).queryKey,n),yn=e=>({mutationFn:async t=>{let{data:n}=await _({...e,...t,throwOnError:!0});return n}}),bn=t=>e({...yn(),...t}),V=e=>v(`oauthAppsGet`,e),xn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ge({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:V(e)}),Sn=e=>({mutationFn:async t=>{let{data:n}=await i({...e,...t,throwOnError:!0});return n}}),Cn=t=>e({...Sn(),...t}),wn=e=>({mutationFn:async t=>{let{data:n}=await se({...e,...t,throwOnError:!0});return n}}),Tn=t=>e({...wn(),...t}),H=e=>v(`oauthAppsByAppIdConnectionsGet`,e),En=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await re({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:H(e)}),Dn=e=>({mutationFn:async t=>{let{data:n}=await we({...e,...t,throwOnError:!0});return n}}),On=t=>e({...Dn(),...t}),kn=e=>({mutationFn:async t=>{let{data:n}=await He({...e,...t,throwOnError:!0});return n}}),An=t=>e({...kn(),...t}),jn=e=>v(`oauthProvidersGet`,e),Mn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await xe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:jn(e)}),Nn=e=>v(`oauthProvidersByProviderKeyGet`,e),Pn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await _e({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Nn(e)}),Fn=e=>v(`pluginsGet`,e),In=e=>({mutationFn:async t=>{let{data:n}=await me({...e,...t,throwOnError:!0});return n}}),Ln=t=>e({...In(),...t}),U=e=>v(`pluginsByNameGet`,e),Rn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await at({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:U(e)}),W=e=>v(`pluginsByNameInspectGet`,e),zn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await je({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:W(e)}),Bn=e=>({mutationFn:async t=>{let{data:n}=await de({...e,...t,throwOnError:!0});return n}}),Vn=t=>e({...Bn(),...t}),Hn=e=>({mutationFn:async t=>{let{data:n}=await Ne({...e,...t,throwOnError:!0});return n}}),Un=t=>e({...Hn(),...t}),G=e=>v(`pluginsSearchGet`,e),Wn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await le({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:G(e)}),Gn=e=>v(`retrospectiveConfigGet`,e),Kn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ze({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Gn(e)}),qn=e=>v(`retrospectiveRunsGet`,e),Jn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await s({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:qn(e)}),K=e=>v(`retrospectiveRunsGet`,e,!0),Yn=e=>n({queryFn:async({pageParam:t,queryKey:n,signal:r})=>{let i=T(n,typeof t==`object`?t:{query:{before:t}}),{data:a}=await s({...e,...i,signal:r,throwOnError:!0});return a},queryKey:K(e)}),Xn=e=>v(`schedulesGet`,e),Zn=e=>v(`schedulesByIdRunsGet`,e),q=e=>v(`secretsGet`,e),Qn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Be({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:q(e)}),J=e=>v(`skillsGet`,e),$n=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await h({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:J(e)}),er=e=>({mutationFn:async t=>{let{data:n}=await $e({...e,...t,throwOnError:!0});return n}}),tr=t=>e({...er(),...t}),nr=e=>v(`skillsByIdGet`,e),rr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await tt({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:nr(e)}),ir=e=>v(`skillsByIdFilesGet`,e),ar=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await qe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:ir(e)}),or=e=>v(`skillsByIdFilesContentGet`,e),sr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await u({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:or(e)}),cr=e=>v(`skillsCategoriesGet`,e),lr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await p({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:cr(e)}),Y=e=>v(`slackChannelsGet`,e),ur=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ye({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Y(e)}),X=e=>v(`slackUsersGet`,e),dr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ze({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:X(e)}),Z=e=>v(`soundsAvailableGet`,e),fr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Le({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Z(e)}),Q=e=>v(`soundsConfigGet`,e),$=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await l({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Q(e)}),pr=(e,t,n)=>e.setQueryData($(t).queryKey,n),mr=e=>({mutationFn:async t=>{let{data:n}=await nt({...e,...t,throwOnError:!0});return n}}),hr=e=>v(`ttsManagedvoicesGet`,e),gr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ie({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:hr(e)}),_r=e=>v(`ttsProvidersGet`,e),vr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Te({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:_r(e)}),yr=e=>v(`usageBreakdownGet`,e),br=e=>v(`usageDailyGet`,e),xr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await a({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:br(e)}),Sr=e=>v(`usageSeriesGet`,e),Cr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ue({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Sr(e)}),wr=e=>v(`usageTotalsGet`,e),Tr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ve({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:wr(e)}),Er=e=>v(`workspaceThemeGet`,e),Dr=e=>v(`workspaceTreeGet`,e),Or=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await fe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Dr(e)}),kr=e=>({mutationFn:async t=>{let{data:n}=await Ae({...e,...t,throwOnError:!0});return n}}),Ar=t=>e({...kr(),...t});export{xn as $,Tn as $t,Vt as A,$ as At,on as B,mt as Bt,Ft as C,J as Ct,A as D,X as Dt,Bt as E,dr as Et,en as F,vr as Ft,z as G,zt as Gt,R as H,kt as Ht,I,yr as It,mn as J,Ut as Jt,un as K,N as Kt,rn as L,xr as Lt,Jt as M,pr as Mt,tn as N,mr as Nt,M as O,fr as Ot,F as P,gr as Pt,H as Q,bn as Qt,an as R,Cr as Rt,At as S,$n as St,Pt as T,Y as Tt,cn as U,Mt as Ut,sn as V,wt as Vt,ln as W,Lt as Wt,vn as X,Qt as Xt,B as Y,Xt as Yt,En as Z,gn as Zt,Dt as _,q as _t,ut as a,Un as an,zn as at,O as b,rr as bt,C as c,Er as cn,Wn as ct,gt as d,Yn as dt,On as en,V as et,_t as f,K as ft,St as g,Qn as gt,bt as h,Xn as ht,b as i,Vn as in,U as it,P as j,Q as jt,j as k,Z as kt,S as l,Or as ln,G as lt,vt as m,Zn as mt,y as n,An as nn,Mn as nt,dt as o,tr as on,W as ot,w as p,Jn as pt,fn as q,Kt as qt,ct as r,Ln as rn,Rn as rt,x as s,Ar as sn,Fn as st,st as t,Cn as tn,Pn as tt,ft as u,Kn as ut,E as v,sr as vt,k as w,ur as wt,D as x,lr as xt,Et as y,ar as yt,L as z,Tr as zt};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-jRWAZmH_.js";import{o as t,t as n}from"./capture-error-Dj49ma74.js";import{t as r}from"./react-BFJW0bSv.js";import{F as i,t as a}from"./button-Dy5001j6.js";import{m as o,u as s}from"./chunk-5KNZJZUH-Bsoom5--.js";import{n as c}from"./QueryClientProvider-CMu7CkQU.js";import{t as l}from"./jsx-runtime-D3ZM-ToX.js";import{t as u}from"./cn-CJf7MmLX.js";import{t as d}from"./arrow-left-C2ylPLHq.js";import{t as f}from"./arrow-right-B-jRJNWP.js";import{t as p}from"./dices-DcuIF52A.js";import{t as m}from"./loader-circle-XREx3i4W.js";import{t as h}from"./pencil-D38YNe2r.js";import{t as g}from"./plus-jH3kAliM.js";import{t as _}from"./search-BVW-n8to.js";import{t as v}from"./x-BGag7vwj.js";import{t as y}from"./notice-B6naz_-V.js";import{t as b}from"./tag-Dn1d6hKF.js";import{t as x}from"./input-F_x2LXmm.js";import{i as S,r as C,t as w}from"./dist-CXcArvGs.js";import{n as T,t as E}from"./create-selectors-B41BzcFF.js";import{S as D,f as O,it as k,lt as A,nt as j,o as M,y as N}from"./local-mode-BKousn41.js";import{Er as P,Gn as ee,V as te,Wn as ne,bn as F,tt as re,xn as I}from"./sdk.gen-DeyOX3Kb.js";import{r as ie}from"./api-errors-DHvv5HEN.js";import{B as ae,D as oe,H as se,T as ce,V as le,j as ue,n as de,z as L}from"./auth-store-EmLZOAkN.js";import{a as fe,o as R,r as pe}from"./api-Coj5enET.js";import{d as me}from"./routes-CsoiCk2y.js";import{n as he}from"./use-is-org-ready-BrKAc9Df.js";import{n as ge}from"./platform-detection-D1fBX4KG.js";import{t as _e}from"./navigation-resolver-BIPJSTY5.js";import{o as ve,s as ye}from"./prechat-EVefdGcO.js";import{t as be}from"./browser-timezone-DGz-HvxU.js";import{n as xe,r as Se,t as Ce}from"./eye-bbox-u0VzlPuw.js";import{c as we}from"./conversation-list-fetchers-CavIngGf.js";import{i as Te}from"./conversation-cache-CqrrtLGM.js";import{t as Ee}from"./avatar-bundled-components-yyfTpx_l.js";import{i as De,n as Oe,r as ke,t as Ae}from"./research-onboarding-persistence-CgJDwdl9.js";import{a as je,c as Me,i as Ne,l as z,o as B,s as V,t as H,u as Pe}from"./first-run-scope-Br96Z0Ol.js";import{c as Fe,i as Ie}from"./funnel-events-BqvFi8Sp.js";import{t as U}from"./proxy-lxbolTGx.js";import{t as Le}from"./AnimatePresence-xdH2KLtr.js";import{t as W}from"./use-reduced-motion-D0Rb5Fd_.js";import{i as Re}from"./avatar-tone-BBZKSrBa.js";import{a as ze,i as Be}from"./research-facts-B5ItKoAK.js";import{t as G}from"./onboarding-layout-CYU5QNQ5.js";import{t as K}from"./animated-avatar-DknFwi9-.js";import{n as q,t as Ve}from"./use-bundled-avatar-components-B1ARUeam.js";import{c as He,i as Ue,l as We,n as Ge,r as Ke,s as qe,t as Je}from"./latest-assistant-text-BIlBGS_i.js";import{n as J,t as Ye}from"./onboarding-step-layout-Do2o16kf.js";import{a as Xe,i as Ze,n as Qe,r as $e,t as et}from"./avatar-random-DjmD5llT.js";import{n as tt}from"./plugin-attribution-ug-jMTXi.js";var Y=e(r(),1),nt=`grounded`,rt=12;function it(e,t){let n=e.slice(0,rt).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 at({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=it(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 ot({hostingParam:e,localMode:t,gatewayAuthSession:n}){return t?e===null?n:e!==`vellum-cloud`:!1}var st=`Failed to start your assistant. Please try again.`,ct=`Your assistant is taking longer than expected. Please try again.`,lt=`We couldn't confirm your organization. Please try again.`,ut=100;function dt({adoptExisting:e=!1,adoptAssistantId:r,postCheckoutReturn:i=!1}={}){let a=c(),[o,s]=(0,Y.useState)(!1),[l,u]=(0,Y.useState)(null),[d,f]=(0,Y.useState)(null),p=(0,Y.useRef)(!1),m=(0,Y.useRef)([]),h=(0,Y.useRef)(null),g=(0,Y.useRef)(!1),_=(0,Y.useRef)(null),v=(0,Y.useRef)(!1);(0,Y.useEffect)(()=>(g.current=!1,()=>{g.current=!0,_.current&&=(clearTimeout(_.current),null)}),[]);let y=(0,Y.useCallback)(e=>{if(!(g.current||h.current)){h.current={kind:`ready`,id:e},s(!0);for(let t of m.current)t.resolve(e);m.current=[]}},[]),b=(0,Y.useCallback)(e=>{if(g.current||h.current)return;h.current={kind:`error`,message:e},f(e);let t=Error(e);for(let e of m.current)e.reject(t);m.current=[]},[]),x=(0,Y.useCallback)(()=>{if(p.current)return;p.current=!0;let o=v.current,s=Date.now(),c=()=>Date.now()-s>=Qe,l=e=>new Promise(t=>{if(g.current){t();return}_.current=setTimeout(()=>{_.current=null,t()},e)}),d=async()=>{let e=Date.now(),t=!1;for(;;){if(g.current)return!1;let n=he();if(n===`ready`)return!0;if(!t&&(n===`unavailable`||o))t=!0,oe.getState().fetchOrganizations();else if(n===`unavailable`||Date.now()-e>=5e3)return b(lt),!1;await l(ut)}};(async()=>{if(e&&r){let e=M(r);if(e){u(e.assistantId),y(e.assistantId);return}}let o=e?r:void 0;if(!e){if(!await d())return;O()&&(k(),j(null));try{let e=await R();if(e.ok)o=e.data.id,u(e.data.id),i&&e.status===201&&Xe(e.data.id,et(Ee),a);else{if(ae(e.status,e.error)){b(L);return}if(!se(e.status)){b(ie(e.error,void 0,st));return}}}catch(e){n(e,{context:`research_background_hatch`})}}let f;for(;!f;){if(g.current)return;if(c()){b(ct);return}try{let t=await pe(o);if(g.current||o&&!t.ok&&t.status===404&&(o=void 0,t=await pe(),g.current))return;let n=le(t);if(n.kind===`active`&&t.ok){f=t.data.id,u(f),!e&&O()&&D(f,t.data.name,ce()??void 0);break}if(n.kind===`error`){b(n.message);return}}catch(e){n(e,{context:`research_background_hatch_poll`})}await l($e)}if(e)for(;!await N();){if(g.current)return;if(c()){b(ct);return}await l($e)}else for(;;){if(g.current)return;try{if((await fe(f)).ok)break}catch{}if(c()){b(ct);return}await l($e)}if(!e&&i){let e=await Ze({assistantId:f,postCheckoutReturn:i,managedHatch:!0,hatchStartMs:s,isCancelled:()=>g.current,registerTimer:e=>{_.current=e}});if(g.current)return;if(e===`health_timeout`){t(`Onboarding hatch wait exceeded timeout`,{level:`warning`,extra:{maxWaitMs:Qe,stage:`post_resize_health`}}),b(ct);return}}y(f)})()},[b,y,e,r,i,a]);return{start:x,retry:(0,Y.useCallback)(()=>{v.current=!0,p.current=!1,h.current=null,f(null),s(!1),u(null),x()},[x]),ready:o,assistantId:l,error:d,awaitReady:(0,Y.useCallback)(()=>{let e=h.current;return e?.kind===`ready`?Promise.resolve(e.id):e?.kind===`error`?Promise.reject(Error(e.message)):new Promise((e,t)=>{m.current.push({resolve:e,reject:t})})},[])}}async function ft(e,t){try{await te({path:{assistant_id:e,id:t},throwOnError:!1})}catch(e){n(e,{context:`research_onboarding_archive`})}}var pt=[`admin-copilot`],mt=[{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 ht(e){return` ${e.toLowerCase().replace(/[^a-z0-9]+/g,` `).trim()} `}function gt(e,t){return e.includes(` ${t} `)}function _t(e){let t=ht(e),n=[];for(let{plugin:e,keywords:r}of mt)r.some(e=>gt(t,e))&&n.push(e);return n}function vt(e,t){let n=[...pt,...tt(),..._t(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 yt=1500,bt=12e4,xt=2;function St({complete:e,stableReads:t}){return e&&t>=xt}function Ct({sawCompletePayload:e}){return e?`done`:`error`}function wt({sawCompletePayload:e}){return e}var Tt=`vellum-ai`,Et=new Set([`simple-memory`,`level-up`]);function Dt(e){let t=e.trim().split(/(?<=\.)\s/)[0]?.trim()??e.trim();return t.length>100?`${t.slice(0,97).trimEnd()}…`:t}function Ot(e){return e?.split(`/`)[0]?.trim()??``}function kt(e){let t=[],n=new Set;for(let r of e){let e=r.name?.trim(),i=r.description?.trim();!e||!i||Ot(r.source?.repo)===Tt&&(Et.has(e)||(n.add(e),t.push({name:e,description:Dt(i)})))}return{capabilities:t,validNames:n}}async function At(e){try{return kt((await ee({path:{assistant_id:e},throwOnError:!1})).data?.matches??[])}catch(e){return n(e,{context:`research_onboarding_catalog`}),{capabilities:[],validNames:new Set}}}async function jt(e,t){try{await ne({path:{assistant_id:e},body:{name:t},throwOnError:!1})}catch(e){n(e,{context:`research_onboarding_install`})}}var Mt=32;function Nt(e,t){return e.filter(e=>e.confidence===t).length}async function Pt({assistantId:e,conversationId:t,status:r,subject:i,claims:a,suggestions:o,plugins:s,installedPlugins:c}){try{await P({path:{assistant_id:e},body:{type:`onboarding_research`,...r===`done`?{daemon_event_id:`onboarding_research:${t}`}:{},fields:{conversation_id:t,status:r,self_reported_occupation:i.occupation,self_reported_hobbies:(i.hobbies??[]).slice(0,Mt),self_reported_timezone:i.timezone,claims:a,claim_count:a.length,claims_confident:Nt(a,`confident`),claims_maybe:Nt(a,`maybe`),claims_guessing:Nt(a,`guessing`),suggestions:o,suggestion_count:o.length,plugins:s,installed_plugins:c}},throwOnError:!1})}catch(e){n(e,{context:`research_onboarding_telemetry`})}}function Ft(e){return{status:e,claims:[],droppedClaims:[],suggestions:[],installedPlugins:[],pluginCatalog:{}}}var It=e=>new Promise(t=>setTimeout(t,e));function Lt({role:e,validNames:t,modelPlugins:n}){return[...new Set([...vt(e,t),...n.filter(e=>t.has(e))])]}function Rt(){let[e,t]=(0,Y.useState)(()=>Ft(`idle`)),r=(0,Y.useRef)(0),i=(0,Y.useRef)(null),a=(0,Y.useRef)(new Map),o=(0,Y.useRef)(Promise.resolve()),s=c(),l=(0,Y.useCallback)((e,t)=>{let n=a.current;n.clear();for(let r of e)n.set(r,(async()=>{try{await jt(await t(),r)}catch{}})())},[]),u=(0,Y.useCallback)(({awaitAssistantId:e,subject:c,conversationTitle:l,resumeConversationId:u,onConversationCreated:d,includeSuggestions:f=!0})=>{let p=JSON.stringify(c);if(i.current===p)return;i.current=p;let m=r.current+1;r.current=m;let h=()=>r.current!==m,g=()=>{};o.current=new Promise(e=>{g=e}),a.current.clear(),t(Ft(`running`)),(async()=>{let r,i,o=!1;try{let n=await e();if(r=n,h())return;let{capabilities:s,validNames:p}=await At(n);if(h())return;let m=Object.fromEntries(s.map(e=>[e.name,e.description]));t(e=>({...e,pluginCatalog:m})),p.size===0&&g();let _=a.current,v=vt(c.occupation,p);for(let e of v)_.has(e)||_.set(e,jt(n,e));v.length>0&&t(e=>({...e,installedPlugins:v}));let y=async e=>{let t={conversationId:e,content:at(c,s,{includeSuggestions:f}),sourceChannel:`vellum`,interface:`web`,clientOs:ge(),clientMessageId:crypto.randomUUID()};try{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;e&&(t.clientTimezone=e)}catch{}return!!(await I({path:{assistant_id:n},body:t,throwOnError:!1})).response?.ok},b=async()=>{let e=await re({path:{assistant_id:n},body:{conversationType:`standard`,...l?{title:l}:{}},throwOnError:!1});i=e.data?.id;let t=e.data?.id;if(!(!e.response?.ok||!t))return d?.(t),t},x;if(u){let e=await F({path:{assistant_id:n},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)){t(e=>({...e,status:`error`}));return}if(h())return}}if(!x){if(x=await b(),h())return;if(!x){t(e=>({...e,status:`error`}));return}if(!await y(x)){t(e=>({...e,status:`error`}));return}if(h())return}let S=Date.now()+bt,C=``,w=0,T=!1,E=[],D=[],O=[],k=v;for(;Date.now()<S;){if(await It(yt),h())return;let e=await F({path:{assistant_id:n},query:{conversationId:x},throwOnError:!1});if(h())return;let r=Je(e.data?.messages??[]);if(r){let{claims:e,droppedClaims:i,suggestions:a,plugins:s,pluginsResolved:l,complete:u}=Be(r),d=s.filter(e=>p.has(e));for(let e of d)_.has(e)||_.set(e,jt(n,e));l&&g();let f=Lt({role:c.occupation,validNames:p,modelPlugins:d});if(t({status:`running`,claims:e,droppedClaims:i,suggestions:a,installedPlugins:f,pluginCatalog:m}),E=e,D=a,O=s,k=f,u&&(o=!0),u&&!T&&(T=!0,Pt({assistantId:n,conversationId:x,status:`done`,subject:c,claims:e,suggestions:a,plugins:s,installedPlugins:f})),w=r===C?w+1:0,C=r,St({complete:u,stableReads:w}))break}}if(h())return;T||(T=!0,Pt({assistantId:n,conversationId:x,status:`error`,subject:c,claims:E,suggestions:D,plugins:O,installedPlugins:k})),t(e=>({...e,status:Ct({sawCompletePayload:o})}))}catch(e){if(h())return;n(e,{context:`research_onboarding_runner`}),t(e=>({...e,status:`error`}))}finally{g(),wt({sawCompletePayload:o})&&r&&i&&(await ft(r,i),Te(s,r))}})()},[s]),d=(0,Y.useCallback)(()=>{r.current+=1,i.current=null,a.current.clear(),o.current=Promise.resolve(),t(Ft(`idle`))},[]),f=(0,Y.useCallback)(async()=>{await o.current,await Promise.all([...a.current.values()])},[]),p=(0,Y.useCallback)((e,n)=>{r.current+=1,t(e),n&&e.installedPlugins.length>0&&l(e.installedPlugins,n)},[l]);return{...e,start:u,awaitPluginInstalls:f,hydrate:p,reinstallPlugins:l,reset:d}}function zt({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 Bt({assistantId:e,conversationId:t,removedClaims:r,rejectedAll:i}){let a=zt({removedClaims:r,rejectedAll:i});if(a){try{let n={conversationId:t,content:a,sourceChannel:`vellum`,interface:`web`,clientOs:ge(),clientMessageId:crypto.randomUUID()};await I({path:{assistant_id:e},body:n,throwOnError:!1})}catch(e){n(e,{context:`research_onboarding_correction`})}await ft(e,t)}}var Vt=1500,Ht=12e4,Ut=e=>new Promise(t=>setTimeout(t,e));async function Wt({awaitAssistantId:e,values:t,userName:r,assistantName:i}){let a,o;try{a=await e();let n=await re({path:{assistant_id:a},body:{conversationType:`standard`,title:`Updating personality`},throwOnError:!1});if(o=n.data?.id,!n.response?.ok||!o)return;let s={conversationId:o,content:He(t,r,i),sourceChannel:`vellum`,interface:`vellum`,clientMessageId:crypto.randomUUID()};if(!(await I({path:{assistant_id:a},body:s,throwOnError:!1})).response?.ok)return;await qe(a,Ue(t));let c=Date.now()+Ht,l=``,u=0,d=!1;for(;Date.now()<c;){await Ut(Vt);let e=await F({path:{assistant_id:a},query:{conversationId:o},throwOnError:!1}),t=Je(e.data?.messages??[]);if(t&&(u=t===l?u+1:0,l=t),e.data?.processing===!0&&(d=!0),We({processing:e.data?.processing,sawProcessing:d,hasReply:t.length>0,stableReads:u}))break}}catch(e){n(e,{context:`research_onboarding_personality`})}finally{if(a&&o)try{await te({path:{assistant_id:a,id:o},throwOnError:!1})}catch(e){n(e,{context:`research_onboarding_personality_archive`})}}}function Gt(e){return`id \`scope_${e}\`, \`data: {"${H}": "${e}"}\``}function Kt(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. ${Gt(`work`)} — a concrete offer grounded in their work or role from your Onboarding Context (occupation, daily tools, work-related research findings).
|
|
45
|
-
2. ${Gt(`personal`)} — a concrete offer grounded in their hobbies, interests, or personal research findings.
|
|
46
|
-
3. ${Gt(`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 qt(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 X=l(),Jt=(0,Y.createContext)(null);function Yt({size:e,children:t}){return(0,X.jsx)(Jt.Provider,{value:e,children:t})}function Xt(){let e=(0,Y.useContext)(Jt),[t,n]=(0,Y.useState)(()=>Ke());return(0,Y.useEffect)(()=>{if(e)return;let t=()=>n(Ke());return window.addEventListener(`resize`,t),()=>window.removeEventListener(`resize`,t)},[e]),e??t}var Zt={x:.5,y:.43},Qt=[-8,6,9,0,7,-6,5,0,-7,4,-5,6];function $t(e){return Qt[e%Qt.length]??0}var en=[1,0,1,0,1,0,1,0,1,0,0],tn=[.72,1],nn=[.4,1],rn=[10,20],an=50,on={6:1.1};function sn(e){return(tn[en[e]??1]??1)*(on[e]??1)}function cn(e){return nn[en[e]??1]??1}function ln(e){return rn[en[e]??1]??20}function un(e,t){return Math.round(Math.max(130,Math.min(Math.min(e,t)*.4,420)))}function dn(e,t){return Math.round(Math.max(110,Math.min(Math.min(e,t)*.21,205)))}function fn(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 pn(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 mn({components:e,characters:t,centerChar:n,edgeOrder:r,entering:i,exiting:a,onEnterComplete:o,onSelectChar:s}){let{w:c,h:l}=Xt(),u=W(),d=c<640,f=new Set([4,7,8,9,10]),p=e=>d&&f.has(e),m=un(c,l),h=m/2,g=m/2,_=dn(c,l)/m,v=dn(c,l),y=(0,Y.useMemo)(()=>{let e=new Map;return r.forEach((t,n)=>e.set(t,n)),e},[r]),b=Zt.x*c,x=Zt.y*l,S=b-h,C=x-h,w=(0,Y.useMemo)(()=>fn(c,l,g),[c,l,g]);return(0,X.jsxs)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 z-0 overflow-hidden`,children:[(0,X.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=pn(n,b,x,c,l),s=sn(i.fromSlot),u=cn(i.fromSlot);return(0,X.jsx)(U.div,{className:`absolute left-0 top-0`,style:{width:m,height:m,zIndex:an},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,X.jsx)(K,{components:e,traits:t,size:m})},r)}if(g){if(p(a.toSlot))return null;let n=w[a.toSlot],i=pn(n,b,x,c,l),o=sn(a.toSlot),s=cn(a.toSlot);return(0,X.jsx)(U.div,{className:`absolute left-0 top-0`,style:{width:m,height:m,zIndex:ln(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,X.jsx)(`div`,{style:{transform:`rotate(${$t(a.toSlot)}deg)`},children:(0,X.jsx)(K,{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,X.jsx)(U.div,{className:`absolute left-0 top-0 ${d?``:`pointer-events-auto cursor-pointer`}`,style:{width:m,height:m,zIndex:d?an:ln(v)},initial:!1,animate:{x:T.x-h,y:T.y-h,scale:d?_:sn(v),opacity:d?1:cn(v)},transition:u?{duration:0}:{type:`spring`,stiffness:230,damping:26},onClick:d?void 0:()=>s(r),children:(0,X.jsx)(`div`,{style:{transform:d?void 0:`rotate(${$t(y.get(r)??0)}deg)`},children:(0,X.jsx)(K,{components:e,traits:t,size:m,breathe:d})})},r)})]})}var hn=[{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`}],Z=E(T((e,t)=>({characters:[],selectedIndex:0,ensureGenerated:()=>{t().characters.length>0||e({characters:hn,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 gn(){let[e,t]=(0,Y.useState)(()=>({w:typeof window>`u`?1280:window.innerWidth,h:typeof window>`u`?800:window.innerHeight}));return(0,Y.useEffect)(()=>{let e=()=>t({w:window.innerWidth,h:window.innerHeight});return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),e}function _n(){let e=q(),t=Z.use.characters(),n=Z.use.ensureGenerated(),r=W(),{w:i,h:a}=gn();(0,Y.useEffect)(()=>{e&&n(e)},[e,n]);let o=un(i,a),s=(0,Y.useMemo)(()=>fn(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,X.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=Qt[i%Qt.length]??0,d=o*sn(i),f=cn(i),p=ln(i);return(0,X.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,X.jsx)(`div`,{style:{opacity:f,transform:`rotate(${u}deg)`},children:(0,X.jsx)(K,{components:e,traits:t,size:d,breathe:!1})})},n)})})}var vn=u(`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)]`),yn=u(`min-w-0 flex-1 bg-transparent text-body-medium-lighter text-[var(--content-default)]`,`placeholder:text-[var(--content-tertiary)] outline-none`,Ye);function Q(e){return e.trim().toLowerCase()}function bn(e,t,n=[],r=8){let i=Q(t),a=new Set(n.map(Q)),o=[];for(let t of e)if(!a.has(Q(t))&&((i.length===0||Q(t).includes(i))&&o.push(t),o.length>=r))break;return o}function xn({id:e,options:t,highlighted:n,showAddHint:r,onPick:i,onHover:a}){return(0,X.jsxs)(`ul`,{id:e,role:`listbox`,className:u(`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,X.jsx)(`li`,{id:`${e}-opt-${r}`,role:`option`,"aria-selected":r===n,onMouseDown:e=>{e.preventDefault(),i(t.value)},onMouseEnter:()=>a(r),className:u(`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,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(g,{size:15,className:`shrink-0 text-[var(--content-tertiary)]`}),(0,X.jsxs)(`span`,{className:`min-w-0 truncate`,children:[`Add “`,t.value,`”`]}),(0,X.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,X.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,X.jsxs)(`label`,{htmlFor:e,className:`text-body-small-default text-[var(--content-secondary)]`,children:[n,t?(0,X.jsx)(`span`,{"aria-hidden":!0,className:`text-[var(--system-negative-strong)]`,children:` *`}):null]})}function Cn(e,t){(0,Y.useEffect)(()=>{function n(n){e.current&&!e.current.contains(n.target)&&t()}return document.addEventListener(`mousedown`,n),()=>document.removeEventListener(`mousedown`,n)},[e,t])}function wn({label:e,placeholder:t,values:n,onChange:r,suggestions:i}){let a=(0,Y.useId)(),o=`tac-${a}`,s=`tac-list-${a}`,c=(0,Y.useRef)(null),[l,d]=(0,Y.useState)(``),[f,p]=(0,Y.useState)(!1),[m,h]=(0,Y.useState)(-1),g=(0,Y.useMemo)(()=>bn(i,l,n),[i,l,n]),v=l.trim(),y=(0,Y.useMemo)(()=>{if(!v)return!1;let e=Q(v);return!(n.some(t=>Q(t)===e)||g.some(t=>Q(t)===e))},[v,n,g]),x=(0,Y.useMemo)(()=>{let e=g.map(e=>({value:e,isAdd:!1}));return y?[...e,{value:v,isAdd:!0}]:e},[g,y,v]);Cn(c,()=>p(!1)),(0,Y.useEffect)(()=>{h(e=>e>=x.length?x.length-1:e)},[x.length]);let S=f&&x.length>0,C=!y;function w(e){let t=e.trim();t&&(n.some(e=>Q(e)===Q(t))||r([...n,t]),d(``),h(-1))}function T(e){r(n.filter(t=>t!==e))}function E(e){e.key===`ArrowDown`?(e.preventDefault(),p(!0),h(e=>Math.min(e+1,x.length-1))):e.key===`ArrowUp`?(e.preventDefault(),h(e=>Math.max(e-1,0))):e.key===`Enter`?S&&m>=0?(e.preventDefault(),w(x[m].value)):l.trim()&&(e.preventDefault(),w(l)):e.key===`,`?(e.preventDefault(),w(l)):e.key===`Backspace`&&l.length===0&&n.length>0?T(n[n.length-1]):e.key===`Escape`&&p(!1)}return(0,X.jsxs)(`div`,{ref:c,className:`relative flex flex-col gap-1.5`,children:[(0,X.jsx)(Sn,{htmlFor:o,children:e}),(0,X.jsxs)(`div`,{className:u(vn,`min-h-9 flex-wrap py-1.5`),children:[(0,X.jsx)(_,{size:16,"aria-hidden":!0,className:`shrink-0 self-center text-[var(--content-tertiary)]`}),n.map(e=>(0,X.jsx)(b,{onRemove:()=>T(e),removeLabel:`Remove ${e}`,className:`border border-[var(--border-base)] bg-[var(--surface-base)]`,children:e},e)),(0,X.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:u(yn,`h-6 w-24`),placeholder:n.length===0?t:``,value:l,onChange:e=>{d(e.target.value),p(!0)},onFocus:()=>p(!0),onKeyDown:E})]}),S&&(0,X.jsx)(xn,{id:s,options:x,highlighted:m,showAddHint:C,onPick:w,onHover:h})]})}var Tn=`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 En(e,t){return{animation:`fadeInUp 0.4s ease-out ${e}s both`,...t==null?{}:{position:`relative`,zIndex:t}}}function Dn({initialFirstName:e=``,initialLastName:t=``,onSubmit:n}){let[r,i]=(0,Y.useState)(e),[o,s]=(0,Y.useState)(t),[c,l]=(0,Y.useState)(``),[u,d]=(0,Y.useState)([]),p=r.trim().length>0&&c.trim().length>0;function m(){p&&n({firstName:r,lastName:o,role:c,hobbies:u})}return(0,X.jsx)(`div`,{"data-theme":`dark`,className:`h-full`,children:(0,X.jsxs)(G,{showCreatureFooter:!1,children:[(0,X.jsx)(_n,{}),(0,X.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,X.jsx)(`h1`,{className:`text-center font-serif text-[2.75rem] leading-[1.05] tracking-tight`,style:En(.05),children:`Let's start with you.`}),(0,X.jsx)(`p`,{className:`mt-3 text-center text-body-medium-lighter text-[var(--content-secondary)]`,style:En(.12),children:`A few details so I can get to know you.`}),(0,X.jsxs)(`div`,{className:`mt-10 flex w-full flex-col gap-5`,children:[(0,X.jsx)(`div`,{style:En(.2,40),children:(0,X.jsx)(x,{label:(0,X.jsxs)(X.Fragment,{children:[`What should I call you?`,(0,X.jsx)(`span`,{"aria-hidden":!0,className:`text-[var(--system-negative-strong)]`,children:` *`})]}),placeholder:`Your name`,value:r,onChange:e=>i(e.target.value),className:Ye,autoFocus:!0,required:!0,fullWidth:!0})}),(0,X.jsx)(`div`,{style:En(.27,30),children:(0,X.jsx)(x,{label:`And your last name?`,placeholder:`Your last name (optional)`,value:o,onChange:e=>s(e.target.value),className:Ye,fullWidth:!0})}),(0,X.jsx)(`div`,{style:En(.34,20),children:(0,X.jsx)(x,{label:`Your role`,placeholder:`What do you do for work?`,value:c,onChange:e=>l(e.target.value),className:Ye,required:!0,fullWidth:!0})}),(0,X.jsx)(`div`,{style:En(.41,10),children:(0,X.jsx)(wn,{label:`Any hobbies?`,placeholder:`Cars, books, growing tomatoes?`,values:u,onChange:d,suggestions:Tn})})]}),(0,X.jsx)(`div`,{className:`mt-10 w-full`,style:En(.5),children:(0,X.jsx)(a,{type:`submit`,variant:`primary`,size:`regular`,rightIcon:(0,X.jsx)(f,{size:16}),fullWidth:!0,disabled:!p,className:`h-11 text-base`,children:`Continue`})})]})]})})}function On(){let e=q(),t=Z.use.characters(),n=Z.use.selectedIndex();return(0,Y.useMemo)(()=>{let r=t[n],i=e?.colors.find(e=>e.id===r?.color)?.hex;return Re(i??`var(--surface-base)`)},[e,t,n])}function $({onBack:e,onNext:t,tone:n}){let r=On(),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,X.jsxs)(`div`,{className:`absolute left-4 top-6 z-10 flex items-center gap-3`,children:[(0,X.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,X.jsx)(d,{className:`h-4 w-4`})}),t?(0,X.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,X.jsx)(f,{className:`h-4 w-4`})}):null]})}var kn=[`Ziggy`,`Quill`,`Luna`,`Remy`,`Cleo`,`Cade`];function An(e,t){let n=[];for(let r=0;r<e;r++)r!==t&&n.push(r);return{centerChar:t,edgeOrder:n}}function jn({onContinue:e,onBack:t,onForward:n}){let r=q(),i=Z.use.characters(),o=Z.use.ensureGenerated(),s=Z.use.selectedIndex(),c=Z.use.setSelectedIndex();(0,Y.useEffect)(()=>{r&&o(r)},[r,o]);let l=i.length,[u,m]=(0,Y.useState)(null),[g,_]=(0,Y.useState)(``),[v,y]=(0,Y.useState)(!1),b=(0,Y.useRef)(!1),x=(0,Y.useRef)(null),{ref:S,size:C}=Ge(),[w,T]=(0,Y.useState)(null);(0,Y.useEffect)(()=>{l>0&&u===null&&m(An(l,s))},[l,s,u]),(0,Y.useEffect)(()=>{u&&c(u.centerChar)},[u,c]);let E=u?.centerChar;(0,Y.useEffect)(()=>{E!=null&&!b.current&&_(kn[E%kn.length])},[E]),(0,Y.useEffect)(()=>{v&&(x.current?.focus(),x.current?.select())},[v]);function D(e){if(!u||e===u.centerChar)return;let t=u.edgeOrder.indexOf(e);if(t<0)return;let n=[...u.edgeOrder];n[t]=u.centerChar,T({entering:{char:e,fromSlot:t},exiting:{char:u.centerChar,toSlot:t}}),m({centerChar:e,edgeOrder:n})}let O=()=>u&&D((u.centerChar+1)%l),k=()=>u&&D((u.centerChar-1+l)%l),A=(0,Y.useMemo)(()=>u?i[u.centerChar]:void 0,[u,i]),j=!!r&&!!u&&!!A;function M(){A&&e({traits:A,name:g.trim()})}function N(){b.current=!0,_(e=>{let t=kn.filter(t=>t!==e),n=t.length>0?t:kn;return n[Math.floor(Math.random()*n.length)]})}let P=`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,X.jsx)(`div`,{ref:S,"data-theme":`dark`,className:`relative h-full overflow-hidden bg-[var(--surface-base)] text-[var(--content-default)]`,children:(0,X.jsxs)(Yt,{size:C,children:[j&&(0,X.jsx)(mn,{components:r,characters:i,centerChar:u.centerChar,edgeOrder:u.edgeOrder,entering:w?.entering??null,exiting:w?.exiting??null,onEnterComplete:e=>T(t=>t?.entering.char===e?null:t),onSelectChar:D}),(0,X.jsx)($,{tone:`light`,onBack:t,onNext:n?M:void 0}),(0,X.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,X.jsx)(`button`,{type:`button`,"aria-label":`Previous character`,onClick:k,className:`absolute left-[calc(50%-170px)] top-[43%] -translate-y-1/2 ${P}`,children:(0,X.jsx)(d,{className:`h-4 w-4`})}),(0,X.jsx)(`button`,{type:`button`,"aria-label":`Next character`,onClick:O,className:`absolute right-[calc(50%-170px)] top-[43%] -translate-y-1/2 ${P}`,children:(0,X.jsx)(f,{className:`h-4 w-4`})}),(0,X.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,X.jsx)(`div`,{className:`flex flex-col items-center gap-4`,children:v?(0,X.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,X.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,X.jsxs)(`button`,{type:`button`,onClick:()=>y(!0),"aria-label":`Edit name`,className:`flex cursor-pointer items-center gap-2.5`,children:[(0,X.jsx)(`span`,{className:`text-2xl font-medium ${g?`text-[var(--content-default)]`:`text-[var(--content-tertiary)]`}`,children:g||`Name your assistant`}),(0,X.jsx)(h,{className:`h-5 w-5 text-[var(--content-tertiary)]`})]}),(0,X.jsx)(`button`,{type:`button`,onClick:N,"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,X.jsx)(p,{className:`h-5 w-5`})})]})}),(0,X.jsx)(a,{type:`button`,variant:`primary`,size:`regular`,rightIcon:(0,X.jsx)(f,{size:16}),disabled:!j,onClick:M,className:`h-11 w-[234px] text-base`,children:`Continue`})]})]})})}var Mn=.25,Nn=.46,Pn=.3,Fn=.85,In=40,Ln=14,Rn=8;function zn({entrance:e=!1,entranceDelay:t=0,bumpNonce:n=0,settleBlink:r=!0}){let i=q(),a=Z.use.characters(),o=Z.use.selectedIndex(),s=W(),{w:c,h:l}=Xt(),[u,d]=(0,Y.useState)({x:0,y:0});(0,Y.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=B();(0,Y.useEffect)(()=>{n>0&&!s&&p.start({y:[0,-34,8,0],transition:{duration:.45,ease:`easeOut`}})},[n,s,p]);let[m,h]=(0,Y.useState)(!1),[g,_]=(0,Y.useState)(!e);(0,Y.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,Y.useMemo)(()=>{if(!i||!v)return null;let e=i.eyeStyles.find(e=>e.id===v.eyeStyle);return e?{paths:e.paths,bbox:xe(e.paths.map(e=>Ce(e.svgPath)))}:null},[i,v]);if(!y)return null;let b=c*Fn,x=Math.min(Math.min(c,l)*Pn,b*y.bbox.h/y.bbox.w),S=x*y.bbox.w/y.bbox.h,C=(c-S)/2,w=l-(1-Mn)*x+l*.05,T=In/100*l-(w+x/2),E=(Nn-Mn)*x,D=y.bbox.x+y.bbox.w/2,O=y.bbox.y+y.bbox.h/2;return(0,X.jsx)(U.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,X.jsx)(U.div,{animate:p,children:(0,X.jsx)(`div`,{style:{transform:`translate(${u.x*Ln}px, ${u.y*Rn}px)`,transition:`transform 0.5s cubic-bezier(0.22, 1, 0.36, 1)`},children:(0,X.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,X.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,X.jsx)(`path`,{d:e.svgPath,fill:e.color},t))})})})})})}var Bn=200,Vn=40;function Hn({firstName:e,assistantName:t,onContinue:n,onBack:r,onForward:i}){let o=q(),s=Z.use.characters(),c=Z.use.selectedIndex(),l=W(),{ref:u,size:{w:d,h:p}}=Ge(),m=On(),h=s.length>0?s[c]:void 0,g=(0,Y.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,X.jsx)(`div`,{"data-theme":`dark`,className:`h-full`,style:{backgroundColor:`var(--surface-base)`}});let y=1.25*Math.max(d,p),b=y*g.body.viewBox.height/g.body.viewBox.width,x=(d-y)/2,S=(p-b)/2,C=Bn/y,w=(Vn/100-.5)*p;return(0,X.jsx)(`div`,{ref:u,"data-theme":`dark`,className:`relative h-full overflow-hidden`,style:{backgroundColor:`var(--surface-base)`},children:(0,X.jsxs)(Yt,{size:{w:d,h:p},children:[(0,X.jsx)(U.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,X.jsx)(U.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,X.jsx)(`path`,{d:g.body.svgPath,fill:g.color})}),(0,X.jsx)(zn,{entrance:!0}),(0,X.jsx)(U.div,{initial:l?!1:{opacity:0},animate:{opacity:1},transition:l?{duration:0}:{duration:.4,delay:1},children:(0,X.jsx)($,{onBack:r,onNext:i})}),(0,X.jsxs)(`div`,{className:J,children:[(0,X.jsxs)(U.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,X.jsx)(`span`,{className:`block text-[clamp(2.5rem,6vw,5rem)]`,style:{color:m.fgDeep},children:_}),(0,X.jsx)(`span`,{className:`block text-[clamp(2.5rem,6vw,5rem)]`,style:{color:m.fg},children:v})]}),(0,X.jsx)(U.div,{initial:l?!1:{opacity:0,y:8},animate:{opacity:1,y:0},transition:l?{duration:0}:{duration:.4,delay:1.15},children:(0,X.jsx)(a,{type:`button`,variant:`primary`,size:`regular`,rightIcon:(0,X.jsx)(f,{size:16}),onClick:n,className:`h-11 w-[234px] text-base`,children:`Continue`})})]})]})})}var Un=.3,Wn=.85,Gn=.25;function Kn(){let e=q(),t=Z.use.characters(),n=Z.use.selectedIndex(),r=t.length>0?t[n]:void 0,{w:i,h:a}=Xt(),o=(0,Y.useMemo)(()=>{if(!e||!r)return null;let t=e.eyeStyles.find(e=>e.id===r.eyeStyle);return t?{paths:t.paths,bbox:xe(t.paths.map(e=>Ce(e.svgPath)))}:null},[e,r]),s=o?Math.min(Math.min(i,a)*Un,i*Wn*o.bbox.h/o.bbox.w):0;return{art:o,eyesW:o?s*o.bbox.w/o.bbox.h:0,eyesH:s,restCy:a-Gn*s,centerX:i/2,w:i,h:a}}function qn({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=Me(i,e=>e-n/2),u=e.bbox.x+e.bbox.w/2,d=e.bbox.y+e.bbox.h/2;return(0,X.jsx)(U.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,X.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,X.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,X.jsx)(`path`,{d:e.svgPath,fill:e.color},t))})})})}var Jn={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 Yn(e,t){let n=Jn[e];return n&&n.length>0?n:t.filter(t=>t!==e)}var Xn=new Set([`orange`,`pink`,`red`]);function Zn(e,t){return Xn.has(e)&&Xn.has(t)}function Qn(e,t,n){let r=Yn(e,t),i=[];for(let e of r){if(i.length>=n)break;i.some(t=>Zn(t,e))||i.push(e)}for(let e of r){if(i.length>=n)break;i.includes(e)||i.push(e)}return i}var $n=`You’ve used AI that just answers questions.`,er=`The more I help,`,tr=`I’m different.`,nr=`the better I get,`,rr=`and the less you have to do.`,ir=[{bodyShape:`blob`,eyeStyle:`gentle`},{bodyShape:`urchin`,eyeStyle:`curious`},{bodyShape:`star`,eyeStyle:`goofy`}],ar=290;function or({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,X.jsx)(U.div,{className:`relative w-full overflow-hidden`,initial:!1,animate:{height:o?t:e},transition:l?{duration:0}:{duration:.5,ease:`easeInOut`},children:(0,X.jsxs)(U.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,X.jsx)(`div`,{className:`flex items-center justify-center`,style:{height:e},children:(0,X.jsx)(U.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,X.jsx)(`div`,{className:`flex items-center justify-center`,style:{height:t},children:(0,X.jsx)(`span`,{className:`block`,children:i})})]})})}function sr({onContinue:e,onBack:t,onForward:n}){let r=On(),i=W(),{art:o,eyesW:s,eyesH:c,restCy:l,centerX:u,w:d,h:p}=Kn(),m=q(),h=Z.use.characters(),g=Z.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=z(0),S=z(1),C=(0,Y.useMemo)(()=>!m||!_?`orange`:Qn(_.color,m.colors.map(e=>e.id),1)[0]??`orange`,[m,_]),w=Math.min(220,Math.max(150,d*.16)),T=-w,E=-w*.4,D=z(-220),O=(0,Y.useMemo)(()=>!m||!_?[]:Qn(_.color,m.colors.map(e=>e.id),3),[m,_]),k=Math.max(.42,Math.min(d/1100,1)),A=Math.round(ar*k),j=-A*1.1,M=-A*.42,N=z(-320),[P,ee]=(0,Y.useState)(!!i),[te,ne]=(0,Y.useState)(!!i),[F,re]=(0,Y.useState)(!1),[I,ie]=(0,Y.useState)(!1),[ae,oe]=(0,Y.useState)(!1),[se,ce]=(0,Y.useState)(!1),[le,ue]=(0,Y.useState)(!!i),de=Math.min(d,768)-48,L=(0,Y.useRef)(null),fe=(0,Y.useRef)(null),R=(0,Y.useRef)(null),pe=(0,Y.useRef)(null),me=(0,Y.useRef)(null),[he,ge]=(0,Y.useState)(0),[_e,ve]=(0,Y.useState)(0),[ye,be]=(0,Y.useState)(0),[xe,Se]=(0,Y.useState)(0),[Ce,we]=(0,Y.useState)(0);return(0,Y.useLayoutEffect)(()=>{L.current?.offsetHeight&&ge(L.current.offsetHeight),fe.current?.offsetHeight&&ve(fe.current.offsetHeight),R.current?.offsetHeight&&be(R.current.offsetHeight),pe.current?.offsetHeight&&Se(pe.current.offsetHeight),me.current?.offsetHeight&&we(me.current.offsetHeight)},[de]),(0,Y.useEffect)(()=>{x.set(l),ce(!0)},[l,x]),(0,Y.useEffect)(()=>{if(!i)return;let e=setTimeout(()=>{re(!0),ie(!0),oe(!0)},1400);return()=>clearTimeout(e)},[i]),(0,Y.useEffect)(()=>{if(i||!o)return;x.set(l),S.set(1),D.set(T),N.set(j),ee(!1),ne(!1),re(!1),ie(!1);let e=Math.max(c*.5,p*y-36),t=[],n=[],r=!1,a=e=>(t.push(e),e),s=e=>new Promise(t=>{n.push(setTimeout(t,e))});return(async()=>{if(await s(200),r||(ee(!0),await Promise.all([a(V(x,e,{duration:.55,ease:`easeOut`})),a(V(S,.55,{duration:.55,ease:`easeOut`}))]),r)||(ne(!0),await Promise.all([a(V(x,l,{type:`spring`,stiffness:210,damping:15})),a(V(S,1,{duration:.45,ease:`easeOut`}))]),r)||(await s(900),r)||(re(!0),ie(!0),await a(V(D,[T,E,E,T],{duration:1.5,times:[0,.28,.62,1],ease:[`easeOut`,`easeInOut`,`easeInOut`]})),r)||(await s(150),r))return;oe(!0);let t=a(V(N,[j,M,M,j],{duration:1.5,times:[0,.28,.62,1],ease:[`easeOut`,`easeInOut`,`easeInOut`]}));await s(700),!r&&(ue(!0),await t)})(),()=>{r=!0,t.forEach(e=>e.stop()),n.forEach(clearTimeout)}},[i,o,p,y,c,l,x,S,D,T,E,N,j,M]),(0,X.jsxs)(`div`,{className:`absolute inset-0 z-10 overflow-hidden`,style:{color:r.fg},children:[(0,X.jsx)($,{onBack:t,onNext:n}),(0,X.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:de,fontFamily:`var(--font-serif)`},children:[(0,X.jsx)(`span`,{ref:L,className:`block`,children:$n}),(0,X.jsx)(`span`,{ref:fe,className:`block`,children:er}),(0,X.jsx)(`span`,{ref:R,className:`block`,children:tr}),(0,X.jsx)(`span`,{ref:pe,className:`block`,children:nr}),(0,X.jsx)(`span`,{ref:me,className:`block`,children:rr})]}),se&&o&&(0,X.jsx)(qn,{art:o,eyesW:s,eyesH:c,centerX:u,eyeCy:x,eyeScale:S,blinking:!1}),!i&&m&&(0,X.jsx)(U.div,{"aria-hidden":`true`,className:`pointer-events-none absolute z-[1]`,style:{left:Math.max(16,d*.05),top:0,y:D,width:w,height:w},children:(0,X.jsx)(K,{components:m,traits:{bodyShape:`blob`,eyeStyle:`goofy`,color:C},size:w,breathe:!1})}),!i&&m&&(0,X.jsx)(U.div,{"aria-hidden":`true`,className:`pointer-events-none absolute right-0 top-0 z-[1] flex items-start`,style:{right:-Math.round(A*.12),y:N},children:ir.map((e,t)=>(0,X.jsx)(`div`,{style:{width:A,height:A,marginLeft:t===0?0:-A*.34,zIndex:ir.length-t},children:(0,X.jsx)(K,{components:m,traits:{bodyShape:e.bodyShape,eyeStyle:e.eyeStyle,color:O[t]??`teal`},size:A,breathe:!1})},e.bodyShape))}),(0,X.jsxs)(`div`,{className:`${J.replace(`top-[30%]`,b)} max-w-3xl max-md:top-[34%]`,children:[(0,X.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,X.jsx)(or,{firstH:he,secondH:_e,color:r.fgDeep,firstText:$n,secondText:er,revealed:P,carouseled:F,revealFrom:`bottom`,revealDuration:.55,reduce:!!i}),(0,X.jsx)(or,{firstH:ye,secondH:xe,color:r.fg,firstText:tr,secondText:nr,revealed:te,carouseled:I,revealFrom:`top`,revealDuration:.45,reduce:!!i}),(0,X.jsx)(U.div,{className:`relative w-full overflow-hidden`,style:{color:r.fg},initial:!1,animate:{height:ae?Ce:0},transition:i?{duration:0}:{duration:.5,ease:`easeInOut`},children:Ce>0&&(0,X.jsx)(`div`,{className:`flex items-center justify-center`,style:{height:Ce},children:(0,X.jsx)(U.span,{className:`block`,initial:!1,animate:{clipPath:ae?`inset(0% 0 0% 0)`:`inset(100% 0 0 0)`},transition:i?{duration:0}:{duration:.5,ease:`easeOut`},children:rr})})})]}),le&&(0,X.jsx)(U.div,{initial:i?!1:{opacity:0,y:8},animate:{opacity:1,y:0},transition:i?{duration:0}:{duration:.4},children:(0,X.jsx)(a,{type:`button`,variant:`primary`,size:`regular`,rightIcon:(0,X.jsx)(f,{size:16}),onClick:e,className:`h-11 w-[234px] text-base`,children:`Continue`})})]})]})}function cr({idSuffix:e}){let t=`cf-${e}`,n=`cr-${e}`,r=`cg-${e}`,i=`cs-${e}`;return(0,X.jsxs)(`svg`,{viewBox:`0 0 100 100`,width:`100%`,height:`100%`,style:{display:`block`,position:`absolute`,inset:0},children:[(0,X.jsxs)(`defs`,{children:[(0,X.jsxs)(`linearGradient`,{id:n,x1:`0.12`,y1:`0.05`,x2:`0.85`,y2:`0.95`,children:[(0,X.jsx)(`stop`,{offset:`0%`,stopColor:`#FFF0AE`}),(0,X.jsx)(`stop`,{offset:`50%`,stopColor:`#F4C231`}),(0,X.jsx)(`stop`,{offset:`100%`,stopColor:`#D29B1A`})]}),(0,X.jsxs)(`radialGradient`,{id:t,cx:`42%`,cy:`36%`,r:`82%`,children:[(0,X.jsx)(`stop`,{offset:`0%`,stopColor:`#FFF6CE`}),(0,X.jsx)(`stop`,{offset:`55%`,stopColor:`#F8CB3E`}),(0,X.jsx)(`stop`,{offset:`100%`,stopColor:`#EEB52C`})]}),(0,X.jsxs)(`radialGradient`,{id:r,cx:`36%`,cy:`24%`,r:`44%`,children:[(0,X.jsx)(`stop`,{offset:`0%`,stopColor:`#FFFFFF`,stopOpacity:`0.85`}),(0,X.jsx)(`stop`,{offset:`100%`,stopColor:`#FFFFFF`,stopOpacity:`0`})]}),(0,X.jsxs)(`radialGradient`,{id:i,cx:`50%`,cy:`50%`,r:`50%`,children:[(0,X.jsx)(`stop`,{offset:`0%`,stopColor:`#FFFFFF`,stopOpacity:`1`}),(0,X.jsx)(`stop`,{offset:`100%`,stopColor:`#FFFFFF`,stopOpacity:`0`})]})]}),(0,X.jsx)(`circle`,{cx:`50`,cy:`50`,r:`49`,fill:`url(#${n})`}),(0,X.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,X.jsx)(`circle`,{cx:`50`,cy:`50`,r:`40`,fill:`url(#${t})`}),(0,X.jsx)(`circle`,{cx:`50`,cy:`50`,r:`40`,fill:`none`,stroke:`#C28F18`,strokeOpacity:`0.35`,strokeWidth:`1.4`}),(0,X.jsxs)(`g`,{fontFamily:`var(--font-sans), system-ui, sans-serif`,fontWeight:900,fontSize:`58`,textAnchor:`middle`,children:[(0,X.jsx)(`text`,{x:`50`,y:`50`,dy:`0.355em`,fill:`#C88E16`,transform:`translate(1.3 1.6)`,children:`$`}),(0,X.jsx)(`text`,{x:`50`,y:`50`,dy:`0.355em`,fill:`#FFF6CF`,opacity:`0.7`,transform:`translate(-1.3 -1.5)`,children:`$`}),(0,X.jsx)(`text`,{x:`50`,y:`50`,dy:`0.355em`,fill:`#F4C12A`,children:`$`})]}),(0,X.jsx)(`ellipse`,{cx:`38`,cy:`28`,rx:`22`,ry:`14`,fill:`url(#${r})`}),(0,X.jsx)(`ellipse`,{cx:`34`,cy:`24`,rx:`7`,ry:`4.5`,fill:`url(#${i})`})]})}function lr({size:e,tiltX:t=0,tiltY:n=0,shadow:r=!0,spinning:i=!1,className:a}){return(0,X.jsxs)(`div`,{style:{position:`relative`,width:e,height:e},children:[r&&(0,X.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,X.jsx)(`div`,{style:{width:e,height:e,perspective:e*10},children:(0,X.jsxs)(U.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,X.jsx)(`div`,{style:{position:`absolute`,inset:0,backfaceVisibility:`hidden`,transform:`translateZ(0.5px)`},children:(0,X.jsx)(cr,{idSuffix:`front`})}),(0,X.jsx)(`div`,{style:{position:`absolute`,inset:0,backfaceVisibility:`hidden`,transform:`translateZ(-0.5px) rotateY(180deg)`},children:(0,X.jsx)(cr,{idSuffix:`back`})})]})})]})}var ur=.3,dr=.95;function fr({onClaim:e,onBumpEyes:t,onBack:n,onForward:r}){let i=W(),a=On(),{h:o}=Xt(),[s,c]=(0,Y.useState)(!1);function l(){if(!s){if(c(!0),i){e();return}window.setTimeout(t,ur*1e3)}}let u=o*.42,d=-o*.08,p=o*.9;return(0,X.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:a.fg},children:[(0,X.jsx)($,{onBack:n,onNext:r}),(0,X.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,X.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,X.jsx)(`br`,{className:`max-md:hidden`}),` to get started.`]}),(0,X.jsx)(`div`,{className:`mt-10 flex flex-col items-center gap-4`,children:(0,X.jsx)(U.div,{animate:s&&!i?{y:[0,u,d,p],scale:[1,1,1,.2],opacity:[1,1,1,0]}:{},transition:{duration:dr,times:[0,ur/dr,.62,1],ease:[`easeIn`,`easeOut`,`easeIn`]},onAnimationComplete:()=>{s&&e()},children:(0,X.jsx)(lr,{size:88,spinning:s&&!i})})}),!s&&(0,X.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,X.jsx)(f,{className:`h-4 w-4`})]})]})]})}Ve();var pr=640,mr=[{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`}}],hr=[`9%`,`27%`,`45%`,`62%`,`79%`],gr=50,_r=.3*.75,vr=`rgba(36, 41, 46, 0.2)`,yr=`#FDFDFC`,br=.16;function xr(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,Y.useState)(()=>typeof window>`u`?1280:window.innerWidth);return(0,Y.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+br*100,c=n===`left`?-100+s*o:100-s*o;return(0,X.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,X.jsx)(K,{components:e,traits:t,size:i,breathe:!1})})}function wr({axis:e,value:t,onValueChange:n,fg:r,disabled:i}){return(0,X.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,X.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,X.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,X.jsxs)(w,{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]??gr),disabled:i,min:0,max:100,step:1,"aria-label":`${e.left} to ${e.right}`,children:[(0,X.jsx)(S,{className:`relative h-2 w-full grow rounded-full sm:h-3`,style:{backgroundColor:vr}}),(0,X.jsx)(C,{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:yr}})]})]})}function Tr({components:e,values:t,sideAvatars:n,size:r}){return(0,X.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 -z-10`,children:mr.map((i,a)=>{let o=t[i.id]??gr,s=Math.max(0,(gr-o)/gr),c=Math.max(0,(o-gr)/gr),l=hr[a]??`50%`,u=n[a];return u?(0,X.jsxs)(`div`,{children:[(0,X.jsx)(Cr,{components:e,traits:u.left,side:`left`,top:l,size:r,progress:s}),(0,X.jsx)(Cr,{components:e,traits:u.right,side:`right`,top:l,size:r,progress:c})]},i.id):null})})}function Er({values:e,onValueChange:t,locked:n,onContinue:r,onBack:i,onForward:a}){let o=On(),s=q(),c=Sr(),{w:l,h:u}=Xt(),d=Math.round(_r*Math.min(l,u))+12,p=c>=pr,m=Z.use.characters()[Z.use.selectedIndex()]?.color,h=Math.round(Math.min(300,Math.max(160,c*.16))),g=(0,Y.useMemo)(()=>{let e=s?.colors.map(e=>e.id)??[],t=xr(mr.map(e=>e.leftAvatar.color),m,e),n=xr(mr.map(e=>e.rightAvatar.color),m,e);return mr.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,X.jsxs)(`div`,{className:`absolute inset-0 z-10 overflow-hidden`,style:{color:o.fg},children:[(0,X.jsx)($,{onBack:i,onNext:a}),p&&s&&(0,X.jsx)(Tr,{components:s,values:e,sideAvatars:g,size:h}),(0,X.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:d},children:[(0,X.jsx)(`div`,{className:`w-full min-h-14 shrink-[4]`,style:{flexBasis:Math.round(u*.14)}}),(0,X.jsxs)(`div`,{className:`flex shrink-0 flex-col items-center gap-4`,children:[(0,X.jsx)(`h1`,{className:`text-center text-[2.6rem] leading-none`,style:{fontFamily:`var(--font-serif)`},children:`Create my personality`}),n?(0,X.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,X.jsx)(`div`,{className:`w-full min-h-3 shrink-[2]`,style:{flexBasis:Math.round(40+u*.03)}}),mr.map((r,i)=>(0,X.jsxs)(Y.Fragment,{children:[i>0&&(0,X.jsx)(`div`,{className:`w-full min-h-2.5 shrink basis-8 sm:basis-11`}),(0,X.jsx)(wr,{axis:r,value:e[r.id]??gr,onValueChange:e=>t(r.id,e),fg:o.fg,disabled:n})]},r.id)),(0,X.jsx)(`div`,{className:`w-full min-h-3 shrink-[2] basis-14`}),(0,X.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,X.jsx)(f,{className:`h-4 w-4`})]})]})]})}function Dr({assistantId:e,assistantReady:t,onConnected:n,onSkip:r,onBack:i,onForward:a,missingCalendarScope:o=!1,onRetry:s,hatchError:c=null}){let l=On(),{handleConnect:u,oauthInProgress:d}=Ne({assistantId:e??``,onConnect:n}),f=()=>{s?.(),u()},p=!e||!t,h=p||d;return(0,X.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:l.fg},children:[(0,X.jsx)($,{onBack:i,onNext:a}),(0,X.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,X.jsx)(`h1`,{className:`text-[2.6rem] leading-tight`,style:{fontFamily:`var(--font-serif)`},children:p?`Waking up`:o?`Access not enabled`:`Let me make this easy`}),(0,X.jsx)(`p`,{className:`text-[16px]`,style:{color:l.fgMuted},children:p?`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,X.jsxs)(`div`,{className:`mt-6 flex w-[234px] flex-col items-center gap-4`,children:[(0,X.jsx)(`button`,{type:`button`,onClick:f,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:p?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(m,{className:`h-4 w-4 animate-spin`,"aria-hidden":!0}),`Starting assistant…`]}):d?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(m,{className:`h-4 w-4 animate-spin`,"aria-hidden":!0}),`Waiting for authorization…`]}):o?`Try again`:`Connect Calendar →`}),(!p||c)&&(0,X.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 Or=Re(`#17191C`);function kr(){let[e,t]=(0,Y.useState)(()=>({w:typeof window>`u`?1280:window.innerWidth,h:typeof window>`u`?800:window.innerHeight}));return(0,Y.useEffect)(()=>{let e=()=>t({w:window.innerWidth,h:window.innerHeight});return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),e}function Ar(){let e=q(),t=Z.use.characters(),n=Z.use.selectedIndex();return{components:e,chosen:t.length>0?t[n]:void 0}}function jr({size:e=64,isAssistantBusy:t=!1}){let{components:n,chosen:r}=Ar();return!n||!r?(0,X.jsx)(`div`,{style:{width:e,height:e}}):(0,X.jsx)(`div`,{className:`shrink-0`,style:{width:e,height:e},children:(0,X.jsx)(K,{components:n,traits:r,size:e,isAssistantBusy:t})})}var Mr=`pt-[0.7rem] text-[2.6rem] leading-none`,Nr=64,Pr=4500,Fr=7e3;function Ir({onDone:e,onBack:t,onForward:n,scheduledTime:r,awaitingTime:i}){let{components:a,chosen:o}=Ar(),s=W(),{w:c,h:l}=kr(),u=r?`Check-in scheduled for tomorrow at ${r}!`:`Check-in scheduled!`;(0,Y.useEffect)(()=>{let t=setTimeout(e,i&&!r?Fr:Pr);return()=>clearTimeout(t)},[e,i,r]);let d=(0,Y.useRef)(null),[f,p]=(0,Y.useState)(null);(0,Y.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)/Nr,h=f?c/2-f.cx:0,g=f?l*.88-f.cy:0,_=l*.05;return(0,X.jsxs)(`div`,{className:`absolute inset-0 z-10 overflow-hidden text-white`,children:[(0,X.jsx)($,{onBack:t,onNext:n,tone:`light`}),(0,X.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,X.jsx)(`div`,{ref:d,className:`relative shrink-0`,style:{width:Nr,height:Nr},children:a&&o&&f&&(0,X.jsx)(U.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,X.jsx)(K,{components:a,traits:o,size:Nr})})}),(0,X.jsx)(U.span,{className:Mr,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 Lr=[`Searching the web to get to know you…`,`Reading public profiles…`,`Skimming the highlights…`,`Connecting the dots…`,`Piecing it together…`],Rr=[`Updating my personality…`,`Finding my voice…`,`Getting into character…`],zr=`Almost there…`,Br=[...Lr,zr],Vr=[...Rr,zr],Hr=2800;function Ur({onDone:e,onBack:t,onAdvance:n,onForward:r,ready:i}){let a=Or,[o,s]=(0,Y.useState)(0);return(0,Y.useEffect)(()=>{n?.(o);let t=o>=Br.length-1;if(i&&t){let t=setTimeout(e,Hr);return()=>clearTimeout(t)}let r=setTimeout(()=>s(e=>(e+1)%Br.length),Hr);return()=>clearTimeout(r)},[o,i,e,n]),(0,X.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:a.fg},children:[(0,X.jsx)($,{onBack:t,onNext:r}),(0,X.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,X.jsx)(jr,{isAssistantBusy:!0}),(0,X.jsx)(Le,{mode:`wait`,children:(0,X.jsx)(U.p,{className:`${Mr} 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:Br[o]},o)})]})]})}function Wr({onDone:e,ready:t}){let n=Or,[r,i]=(0,Y.useState)(0);return(0,Y.useEffect)(()=>{let n=Vr.length-1;if(t){if(r!==n){i(n);return}let t=setTimeout(e,Hr);return()=>clearTimeout(t)}let a=setTimeout(()=>i(e=>(e+1)%Vr.length),Hr);return()=>clearTimeout(a)},[r,t,e]),(0,X.jsx)(`div`,{className:`absolute inset-0 z-10`,style:{color:n.fg},children:(0,X.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,X.jsx)(jr,{isAssistantBusy:!0}),(0,X.jsx)(Le,{mode:`wait`,children:(0,X.jsx)(U.p,{className:Mr,style:{fontFamily:`var(--font-serif)`},initial:{y:12,opacity:0},animate:{y:0,opacity:1},exit:{y:-12,opacity:0},transition:{duration:.35},children:Vr[r]},r)})]})})}function Gr({claims:e,loading:t,onContinue:n,onRejectAll:r,onBack:i,onForward:a}){let o=Or,s=W(),[c,l]=(0,Y.useState)(()=>new Set),u=e.filter(e=>!c.has(e.claim)),d=u.length>0,p=!t;return(0,X.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:o.fg},children:[(0,X.jsx)($,{onBack:i,onNext:a}),(0,X.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,X.jsxs)(`div`,{className:`flex min-h-0 flex-col overflow-y-auto [&::-webkit-scrollbar]:hidden [scrollbar-width:none]`,children:[(0,X.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,X.jsx)(jr,{}),(0,X.jsx)(`h1`,{className:`text-[2.2rem] leading-none`,style:{fontFamily:`var(--font-serif)`},children:`This is what I found about you`})]}),(0,X.jsx)(`p`,{className:`mb-7 mt-2 text-[15px]`,style:{color:o.fgMuted},children:d?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,X.jsx)(`div`,{className:`flex flex-col gap-3`,children:(0,X.jsx)(Le,{children:u.map(e=>(0,X.jsxs)(U.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,X.jsx)(`span`,{children:e.claim}),(0,X.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,X.jsx)(v,{className:`h-4 w-4`})})]},e.claim))})}),d&&p&&(0,X.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,X.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,X.jsx)(f,{className:`h-4 w-4`})]})]})]})}var Kr=38,qr=Kr;function Jr({head:e,note:t,flyToNote:n,reduce:r,onLanded:i}){let{components:a,chosen:o}=Ar();if(!a||!o)return null;let s=Kr/2,c=n&&t?t:e,l={x:c.x-s,y:c.y-s};return(0,X.jsx)(U.div,{className:`pointer-events-none absolute left-0 top-0`,style:{width:Kr,height:Kr,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,X.jsx)(K,{components:a,traits:o,size:Kr})})}function Yr({installedPlugins:e=[],pluginCatalog:t={},onStart:n,onBack:r,onForward:i,disabled:a=!1}){let o=Or,s=W(),[c,l]=(0,Y.useState)(!1),{components:u,chosen:d}=Ar(),{h:p}=kr(),m=e.map(e=>({name:e,displayName:ze(e),description:t[e]?.trim()??``})).filter(e=>e.displayName.length>0),h=m.length>0,g=(0,Y.useRef)(null),_=(0,Y.useRef)(null),v=(0,Y.useRef)(null),[y,b]=(0,Y.useState)(null),[x,S]=(0,Y.useState)(!1),[C,w]=(0,Y.useState)(!1),T=(0,Y.useRef)(!1);(0,Y.useEffect)(()=>{T.current=x},[x]),(0,Y.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,Y.useEffect)(()=>{E===void 0||x||S(!0)},[E,x]),(0,X.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:o.fg},children:[(0,X.jsx)($,{onBack:r,onNext:i}),(0,X.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,X.jsxs)(`div`,{className:`flex items-center`,children:[(0,X.jsx)(U.div,{ref:_,className:`shrink-0`,style:{height:Kr},initial:!1,animate:x?{width:0,marginRight:0}:{width:Kr,marginRight:12},transition:s?{duration:0}:{duration:.5,ease:`easeInOut`}}),(0,X.jsx)(`h1`,{className:`text-[2.2rem] leading-none`,style:{fontFamily:`var(--font-serif)`},children:`You’re all set`})]}),(0,X.jsxs)(`div`,{className:`mt-4 flex items-center gap-3`,children:[C&&u&&d?(0,X.jsx)(`div`,{className:`shrink-0`,children:(0,X.jsx)(K,{components:u,traits:d,size:qr})}):(0,X.jsx)(`div`,{ref:v,className:`shrink-0`,style:{width:qr,height:qr}}),(0,X.jsx)(U.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,X.jsx)(`div`,{className:`flex flex-col gap-3`,style:{marginTop:Math.round(64-p*.02)},children:m.map((e,t)=>(0,X.jsxs)(U.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,X.jsx)(`div`,{className:`text-[15px] font-medium`,children:e.displayName}),e.description&&(0,X.jsx)(`div`,{className:`mt-1 text-[13px] leading-snug`,style:{color:o.fgMuted},children:e.description})]},e.name))}),(0,X.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,X.jsx)(f,{className:`h-4 w-4`})]}),y&&!C&&(0,X.jsx)(Jr,{head:y.head,note:y.note,flyToNote:x&&y.note!==void 0,reduce:s,onLanded:()=>w(!0)})]})]})}var Xr=[{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})}],Zr=`#17191C`,Qr=[{bodyShape:`blob`,eyeStyle:`gentle`},{bodyShape:`urchin`,eyeStyle:`curious`},{bodyShape:`star`,eyeStyle:`goofy`}],$r=290;function ei({peekLevel:e=0,eyesBumpNonce:t=0,darkBg:n=!1,showBottomEyes:r=!0,showTopTeam:i=!1,eyesEntrance:a=!1}){let o=q(),s=Z.use.characters(),c=Z.use.selectedIndex(),l=W(),{w:u}=Xt(),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,Y.useMemo)(()=>!o||!p?{bg:`var(--surface-base)`,peekColors:[]}:{bg:o.colors.find(e=>e.id===p.color)?.hex??`var(--surface-base)`,peekColors:Qn(p.color,o.colors.map(e=>e.id),3)},[o,p]);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(U.div,{className:`absolute inset-0 z-0`,initial:!1,animate:{backgroundColor:n?Zr:m},transition:l?{duration:0}:{duration:1,ease:`easeInOut`}}),r&&(0,X.jsx)(zn,{bumpNonce:t,settleBlink:a,entrance:a}),i&&o&&(0,X.jsx)(`div`,{className:`pointer-events-none absolute right-0 z-[1] flex items-start`,style:{top:-Math.round($r*d)*.42,right:-Math.round($r*d)*.12},children:Qr.map((e,t)=>{let n=Math.round($r*d);return(0,X.jsx)(U.div,{style:{width:n,height:n,marginLeft:t===0?0:-n*.34,zIndex:Qr.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,X.jsx)(K,{components:o,traits:{bodyShape:e.bodyShape,eyeStyle:e.eyeStyle,color:h[t]??`teal`},size:n,breathe:!1})},e.bodyShape)})}),o&&(0,X.jsx)(Le,{children:(f?Xr.filter(e=>e.mobile):Xr).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,X.jsx)(U.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,X.jsx)(K,{components:o,traits:{bodyShape:e.bodyShape,eyeStyle:e.eyeStyle,color:h[e.colorIdx]??`teal`},size:n,breathe:!1})},`peek-${t}`)})})]})}var ti=e(i(),1);function ni({error:e,onRetry:t}){let n=e===L;return(0,ti.createPortal)((0,X.jsx)(`div`,{className:`pointer-events-none fixed inset-x-0 top-0 z-50 flex justify-center px-4 pt-[calc(var(--safe-area-inset-top,env(safe-area-inset-top,0px))+5rem)]`,children:(0,X.jsxs)(y,{tone:`error`,title:`Something went wrong`,className:`pointer-events-auto w-auto max-w-[480px] shadow-xl`,actions:n?(0,X.jsx)(a,{asChild:!0,variant:`primary`,size:`regular`,children:(0,X.jsx)(`a`,{href:`${window.location.origin}/download`,children:`Download the macOS app`})}):(0,X.jsx)(a,{variant:`primary`,size:`regular`,onClick:t,children:`Try again`}),children:[e,n?(0,X.jsx)(`p`,{className:`mt-1 text-[color:var(--content-default)]`,children:`Get started today with a local assistant`}):null]})}),document.body)}var ri={established:!1,assistantName:null};async function ii(e,t={hasAnyActiveConversation:we,fetchAssistantIdentity:Se}){try{if(!await t.hasAnyActiveConversation(e))return ri}catch(e){return n(e,{context:`research_onboarding_established_check`}),ri}let r=await t.fetchAssistantIdentity(e).catch(()=>null);return{established:!0,assistantName:(typeof r?.name==`string`?r.name.trim():``)||null}}function ai({assistantName:e,onKeep:t,onRedo:n,onBack:r}){let i=e?.trim()||``,o=i||`your assistant`,s=i?`${i}'s`:`its`;return(0,X.jsxs)(`div`,{"data-theme":`dark`,className:`relative h-full overflow-hidden`,style:{backgroundColor:`var(--surface-base)`,color:`var(--content-primary)`},children:[(0,X.jsx)($,{onBack:r,tone:`light`}),(0,X.jsxs)(`div`,{className:`${J} max-w-xl`,children:[(0,X.jsxs)(`div`,{className:`flex flex-col items-center gap-3`,children:[(0,X.jsx)(`h1`,{className:`text-[2.2rem] leading-none`,style:{fontFamily:`var(--font-serif)`},children:i?`${i} is already up and running`:`Your assistant is already up and running`}),(0,X.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,X.jsxs)(`div`,{className:`flex w-full max-w-sm flex-col items-center gap-3`,children:[(0,X.jsxs)(a,{variant:`primary`,size:`regular`,fullWidth:!0,onClick:t,className:`h-11 text-base`,children:[`Keep `,o,` and start chatting`,(0,X.jsx)(f,{className:`h-4 w-4`})]}),(0,X.jsxs)(a,{variant:`ghost`,size:`regular`,fullWidth:!0,onClick:n,className:`h-11 text-base`,children:[`Start over and rebuild `,s,` personality`]})]})]})]})}var oi=4e3;function si(e){return{firstName:e.firstName,lastName:e.lastName,occupation:e.role,hobbies:e.hobbies,timezone:be()}}function ci(e){let t=e.firstName.trim();return t?`Getting to know ${t}`:`Getting to know you`}Ve();function li(){let e=s(),t=de.use.user(),n=t?.id??null,r=Pe.use.enterFocus(),i=Pe.use.exitFocus(),a=Pe.use.setPendingAvatarTraits(),c=Pe.use.requestSidebarCollapse(),[l,u]=(0,Y.useState)(`form`),{ref:d,size:f}=Ge(),[p,m]=(0,Y.useState)([]),[h,g]=(0,Y.useState)(!1);function _(e){u(e)}function v(e,t=`completed`){Fe(Ie[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,Y.useState)(null),w=(0,Y.useRef)(null),[T,E]=(0,Y.useState)(null),[D,k]=(0,Y.useState)(null),j=(0,Y.useRef)(!1),[M,N]=(0,Y.useState)(!1),[P,ee]=(0,Y.useState)(null),[te,ne]=(0,Y.useState)({}),[F,re]=(0,Y.useState)(!1),[I,ie]=(0,Y.useState)(null),[ae,oe]=(0,Y.useState)(null),[se,ce]=(0,Y.useState)(!1),[le,L]=(0,Y.useState)(!1),[fe,R]=(0,Y.useState)(!1),[pe,he]=(0,Y.useState)(0),[ge,be]=(0,Y.useState)(0),[xe]=o(),Se=ot({hostingParam:xe.get(`hosting`),localMode:O(),gatewayAuthSession:A()}),Ce=xe.get(`assistant`)??void 0,we=xe.get(_e)===`1`,Te=Se,{start:Ee,retry:Me,ready:Ne,assistantId:z,error:B,awaitReady:V}=dt({adoptExisting:Se,adoptAssistantId:Ce,postCheckoutReturn:we}),H=Rt(),{start:U,hydrate:Le}=H,W=(0,Y.useRef)(Promise.resolve()),Re=(0,Y.useRef)(!1),[ze,Be]=(0,Y.useState)(!1),G=(0,Y.useCallback)(e=>{Re.current=e,Be(e)},[]),[K,q]=(0,Y.useState)(null),Ve=(0,Y.useRef)(Promise.resolve()),[He,Ue]=(0,Y.useState)(!1),We=H.status===`idle`||H.status===`running`,Ke=!We&&H.claims.length===0;(0,Y.useEffect)(()=>{i(),a(null),Ee()},[i,a,Ee]);let qe=(0,Y.useCallback)(()=>{if(w.current)return;let e=V().then(e=>ii(e)).catch(()=>ri);w.current=e,e.then(E)},[V]);(0,Y.useEffect)(()=>{qe()},[qe]);let Je=(0,Y.useCallback)(()=>Promise.race([w.current??Promise.resolve(null),new Promise(e=>{setTimeout(()=>e(null),oi)})]),[]),J=(0,Y.useCallback)(e=>{G(!1),U({awaitAssistantId:V,subject:si(e),conversationTitle:ci(e),...I?{resumeConversationId:I}:{},onConversationCreated:ie,includeSuggestions:!1})},[G,U,V,I,!0]);(0,Y.useLayoutEffect)(()=>{if(h||!n)return;let e=Oe(n);if(e?.formValues){C(e.formValues),ee(e.faceValues),oe(e.checkinTime),L(e.checkinBooked),q(e.keptClaims??null),ie(e.researchConversationId??null),e.research&&(Le({...e.research,pluginCatalog:e.research.pluginCatalog??{},droppedClaims:e.research.droppedClaims??[]},V),G(e.droppedClaimsScrubbed??!1),N(!0));let t=ke(e);u(Te&&(t===`letschat`||t===`meeting`)?`looking`:t),m([])}g(!0)},[h,n,Le,V,Te,G]),(0,Y.useEffect)(()=>{!h||!S||De(n,{step:l,formValues:S,faceValues:P,checkinTime:ae,checkinBooked:le,research:H.status===`done`?{status:`done`,claims:H.claims,droppedClaims:H.droppedClaims,suggestions:H.suggestions,installedPlugins:H.installedPlugins,pluginCatalog:H.pluginCatalog}:null,...I?{researchConversationId:I}:{},...K?{keptClaims:K}:{},...ze?{droppedClaimsScrubbed:!0}:{}})},[h,n,l,K,S,P,ae,le,I,H.status,H.claims,H.droppedClaims,H.suggestions,H.installedPlugins,H.pluginCatalog,ze]),(0,Y.useEffect)(()=>{if(!h||!S||H.status!==`idle`&&H.status!==`done`)return;let e=H.status===`idle`,t=S,n=!1;return(async()=>{if(!j.current){let e=await Je();if(n)return;if(e?.established){k(t),m([]),C(null),u(`existing`),N(!1);return}}N(!1),e&&J(t)})(),()=>{n=!0,N(!1)}},[h,S,H.status,J,Je]),(0,Y.useEffect)(()=>{l===`results`&&Ke&&B===null&&(m([]),u(`suggestions`))},[l,Ke,B]),(0,Y.useEffect)(()=>{Re.current||We||H.droppedClaims.length!==0&&(!I||!z||!Ne||H.claims.length>0&&l!==`suggestions`||(G(!0),W.current=Bt({assistantId:z,conversationId:I,removedClaims:H.droppedClaims,rejectedAll:!1})))},[We,H.claims.length,H.droppedClaims,I,z,Ne,l,G]);function Ye(t,i,o,{skip:s=!1,hidden:l=!1}={}){Ae(n);let{firstName:u,lastName:d,role:f,hobbies:p}=t,m=[u.trim(),d.trim()].filter(Boolean).join(` `),h=u.trim(),g=!s&&o===void 0;ye({tools:[],tasks:[],tone:nt,...m?{userName:m}:{},...f.trim()?{occupation:f.trim()}:{},...s?{}:{initialMessage:o??at({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();_&&ve(_),a(i?.traits??null),g&&r(),s||ue.markExpectingFirstMessage(),c(),ue.checkAssistant(z??void 0).finally(()=>{e(`${me.assistant}?onboarding=1`,{replace:!0})})}async function Xe(){S&&(await Promise.all([H.awaitPluginInstalls(),W.current,Ve.current]),Ye(S,P,Kt(P?.name),{hidden:!0}))}function Ze(){Ue(!0),Ve.current=Wt({awaitAssistantId:V,values:te,userName:S?.firstName?.trim()||void 0,assistantName:P?.name?.trim()||void 0}).finally(()=>Ue(!1))}async function Qe(e){if(!j.current&&(await Je())?.established){k(e),v(`existing`);return}C(e),J(e),v(`face`)}function $e(e){if(e.length>0&&!e.includes(`https://www.googleapis.com/auth/calendar.events`)){R(!0);return}if(R(!1),z&&S){let e=[S.firstName.trim(),S.lastName.trim()].filter(Boolean).join(` `);oe(null),L(!1),ce(!0),je({assistantId:z,userName:e||void 0,assistantName:P?.name?.trim()||void 0}).then(e=>{e.scheduled&&(L(!0),oe(qt(e.start,e.timeZone)))}).finally(()=>ce(!1))}v(`meeting`)}function et(){w.current=null,Me(),qe(),H.status===`error`&&S?(H.reset(),J(S)):H.status===`done`&&H.reinstallPlugins(H.installedPlugins,V),F&&Ze()}let tt=e=>(0,X.jsxs)(X.Fragment,{children:[e,B!==null&&(0,X.jsx)(ni,{error:B,onRetry:et})]});if([`different`,`personality`,`integration`,`letschat`,`meeting`,`looking`,`results`,`suggestions`,`finishing`].includes(l)&&S){let e=[`meeting`,`looking`,`results`,`suggestions`,`finishing`].includes(l);return tt((0,X.jsx)(`div`,{ref:d,"data-theme":`dark`,className:`relative h-full overflow-hidden`,children:(0,X.jsxs)(Yt,{size:f,children:[(0,X.jsx)(ei,{eyesBumpNonce:pe,peekLevel:[`looking`,`results`,`suggestions`,`finishing`].includes(l)?ge:0,darkBg:e,showBottomEyes:!e&&l!==`different`,eyesEntrance:l===`personality`}),l===`different`&&(0,X.jsx)(sr,{onContinue:()=>v(`personality`),onBack:()=>y(`intro`),onForward:x}),l===`personality`&&(0,X.jsx)(Er,{values:te,onValueChange:(e,t)=>ne(n=>({...n,[e]:t})),locked:F,onContinue:()=>{F||(Ze(),re(!0)),v(`integration`)},onBack:()=>y(`different`),onForward:x}),l===`integration`&&(0,X.jsx)(fr,{onClaim:()=>v(Te?`looking`:`letschat`),onBumpEyes:()=>he(e=>e+1),onBack:()=>y(`personality`),onForward:x}),l===`letschat`&&(0,X.jsx)(Dr,{assistantId:z,assistantReady:Ne,hatchError:B,onConnected:$e,missingCalendarScope:fe,onRetry:()=>R(!1),onSkip:()=>{R(!1),v(`looking`,`skipped`)},onBack:()=>y(`integration`),onForward:x}),l===`meeting`&&(0,X.jsx)(Ir,{scheduledTime:ae??void 0,awaitingTime:se,onDone:()=>v(`looking`),onBack:()=>y(`letschat`),onForward:x}),l===`looking`&&(0,X.jsx)(Ur,{onDone:()=>v(Ke?`suggestions`:`results`),onBack:()=>y(Te?`integration`:`letschat`),onAdvance:e=>be(Math.min(e+1,4)),onForward:x,ready:!We&&B===null}),l===`results`&&(0,X.jsx)(Gr,{claims:H.claims,loading:We,onContinue:e=>{let t=new Set(e);q(H.claims.filter(e=>!t.has(e.claim)).map(e=>e.claim));let n=Re.current?[]:H.droppedClaims,r=[...e,...n];I&&z&&r.length>0&&(n.length>0&&G(!0),W.current=Bt({assistantId:z,conversationId:I,removedClaims:r,rejectedAll:!1})),v(`suggestions`)},onRejectAll:()=>{q([]),I&&z&&(G(!0),W.current=Bt({assistantId:z,conversationId:I,removedClaims:H.claims.map(e=>e.claim),rejectedAll:!0})),v(`suggestions`,`skipped`)},onBack:()=>y(`looking`),onForward:x}),l===`suggestions`&&(0,X.jsx)(Yr,{installedPlugins:H.installedPlugins,pluginCatalog:H.pluginCatalog,disabled:M||B!==null||!Ne||z===null,onStart:async()=>{if(Fe(Ie.suggestions,{userId:n,outcome:`completed`}),He){m([]),u(`finishing`);return}await Xe()},onBack:()=>y(Ke?`looking`:`results`),onForward:x}),l===`suggestions`&&!1,l===`finishing`&&(0,X.jsx)(Wr,{ready:!He&&B===null,onDone:()=>void Xe()})]})}))}return tt(l===`existing`?(0,X.jsx)(ai,{assistantName:T?.assistantName??null,onKeep:()=>{Fe(Ie.existing,{userId:n,outcome:`completed`}),Ae(n),ue.checkAssistant(z??void 0).finally(()=>{e(me.assistant,{replace:!0})})},onRedo:()=>{let e=D;e&&(j.current=!0,Fe(Ie.existing,{userId:n,outcome:`skipped`}),C(e),J(e),m([]),_(`face`))},onBack:()=>{k(null),y(`form`)}}):l===`intro`&&S?(0,X.jsx)(Hn,{firstName:S.firstName,assistantName:P?.name,onContinue:()=>v(`different`),onBack:()=>y(`face`),onForward:x}):l===`face`&&S?(0,X.jsx)(jn,{onContinue:e=>{ee(e),v(`intro`)},onBack:()=>y(`form`),onForward:x}):(0,X.jsx)(Dn,{initialFirstName:t?.firstName??``,initialLastName:t?.lastName??``,onSubmit:Qe}))}export{li as ResearchOnboardingRoute};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./create-selectors-B41BzcFF.js";import{$ as n,d as r,f as i,ht as a,mt as o,p as s,pt as c}from"./local-mode-BKousn41.js";function l(e,t){return e.filter(e=>e.isLocal||e.organizationId==null||e.organizationId===t)}var u=e((e,t)=>({assistants:[],activeAssistantId:null,selectedAssistantId:o(),assistantsHydrated:!1,setFromLockfile:n=>{let i=m(n),a=new Map(t().assistants.map(e=>[e.id,e]));e({assistants:n.assistants.map(e=>({id:e.assistantId,name:e.name,hatchedAt:e.hatchedAt,cloud:e.cloud,runtimeVersion:e.resources?.runtimeVersion,currentReleaseVersion:a.get(e.assistantId)?.currentReleaseVersion,releaseChannel:a.get(e.assistantId)?.releaseChannel,isActiveLockfileAssistant:i===e.assistantId,isLocal:r(e),isPlatformHosted:s(e),organizationId:e.organizationId})),assistantsHydrated:!0}),d(t,e)},setFromApi:t=>e({assistantsHydrated:!0,assistants:t.map(e=>{let t=p(e.id);return{id:e.id,name:e.name,hatchedAt:e.created,cloud:t.cloud,runtimeVersion:t.runtimeVersion,currentReleaseVersion:e.current_release_version,releaseChannel:e.release_channel,isActiveLockfileAssistant:t.isActiveLockfileAssistant,isLocal:e.is_local,isPlatformHosted:!e.is_local}})}),markHydrated:()=>e({assistantsHydrated:!0}),upsertFromApi:t=>e(e=>{let n={id:t.id,name:t.name,hatchedAt:t.created,currentReleaseVersion:t.current_release_version,releaseChannel:t.release_channel,isLocal:t.is_local,isPlatformHosted:!t.is_local},r=e.assistants.findIndex(e=>e.id===t.id);if(r>=0){let i=[...e.assistants],a=p(t.id);return i[r]={...n,cloud:a.cloud??i[r].cloud,organizationId:i[r].organizationId,runtimeVersion:a.runtimeVersion??i[r].runtimeVersion,isActiveLockfileAssistant:a.isActiveLockfileAssistant??i[r].isActiveLockfileAssistant},{assistants:i}}let i=p(t.id);return{assistants:[...e.assistants,{...n,cloud:i.cloud,organizationId:i.organizationId,runtimeVersion:i.runtimeVersion,isActiveLockfileAssistant:i.isActiveLockfileAssistant}]}}),remove:t=>e(e=>({assistants:e.assistants.filter(e=>e.id!==t)})),clear:()=>e({assistants:[]}),setActiveAssistantId:t=>e({activeAssistantId:t}),setSelectedAssistant:t=>{t==null?c():a(t),e({selectedAssistantId:t})}}));function d(e,t){let{assistants:n,selectedAssistantId:r,assistantsHydrated:i}=e();!i||r==null||n.some(e=>e.id===r)||(c(),t({selectedAssistantId:null}))}var f=t(u);function p(e){let t=n.getState().lockfile,r=t?.assistants.find(t=>t.assistantId===e),i=t?m(t):null;return{cloud:r?.cloud,organizationId:r?.organizationId,runtimeVersion:r?.resources?.runtimeVersion,isActiveLockfileAssistant:t?i===e:void 0}}function m(e){return e.activeAssistant&&e.assistants.some(t=>t.assistantId===e.activeAssistant)?e.activeAssistant:e.assistants.length===1?e.assistants[0]?.assistantId??null:null}i()&&n.subscribe(e=>{e.lockfile&&e.committed&&u.getState().setFromLockfile(e.lockfile)}),typeof window<`u`&&window.addEventListener(`storage`,e=>{(e.key===null||e.key===`vellum:selectedAssistantId`)&&u.setState({selectedAssistantId:o()})});export{f as n,l as t};
|
|
@@ -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-D-Yjf2uS.js";import{a as r,b as i,d as a,f as o,w as s}from"./local-mode-BKousn41.js";import{n as c}from"./resolved-assistants-store-FEmi1gGu.js";import{D as l,n as u}from"./auth-store-EmLZOAkN.js";import{c as d,d as f}from"./api-Coj5enET.js";import{d as p}from"./routes-CsoiCk2y.js";import{a as m}from"./navigation-resolver-BIPJSTY5.js";import{t as h}from"./build-state-C_Hy9WqC.js";import{t as g}from"./research-onboarding-persistence-CgJDwdl9.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=r().assistants.find(e=>e.assistantId===t);if(o()&&n&&a(n)){let e=await i(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(o())try{let e=await d();e.ok&&await s(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,3 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-jRWAZmH_.js";import{c as t,i as n}from"./local-settings-C-dW2vkq.js";import{t as r}from"./react-BFJW0bSv.js";import{t as i}from"./createLucideIcon-CAM1RhH8.js";import{n as a,t as o}from"./create-selectors-B41BzcFF.js";import{n as s}from"./typed-storage-CcMT-hWr.js";import{a as c}from"./diagnostics-9AhdBjYA.js";import{l}from"./chat-markdown-message-9ogr9-mn.js";import{t as u}from"./conversation-store-D_eevw7L.js";import{s as ee,u as te}from"./messages-BuqyOjvT.js";import{C as d,D as f,n as ne,t as re,w as ie,x as ae}from"./chat-B9S7HTkM.js";var oe=i(`bolt`,[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`,key:`yt0hxn`}],[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}]]),se=i(`pen`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),ce=i(`plug`,[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z`,key:`1xoxul`}],[`path`,{d:`M9 8V2`,key:`14iosj`}]]),le=i(`square-terminal`,[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]]),ue=e(r(),1),p=1e3,de=15,fe=0,m=new Map,h=[];function pe(e){let t=`sse-${++fe}`,n={id:t,abortSignal:e,initiatedAt:Date.now(),establishedAt:null,lastTrafficAt:null,lastDataAt:null,dataFrames:0,keepalives:0,endedAt:null,endReason:null};m.set(t,n),Ce();let r=()=>{Se(t,`aborted`)};return e.aborted?r():e.addEventListener(`abort`,r,{once:!0}),t}function me(e){let t=m.get(e);t&&t.establishedAt===null&&(t.establishedAt=Date.now())}function he(e,t){let n=m.get(e);if(!n)return;let r=Date.now();n.lastTrafficAt=r,t?(n.lastDataAt=r,n.dataFrames++):n.keepalives++}function ge(e,t){h.push({clientId:e,receivedAt:new Date().toISOString(),...t}),h.length>p&&h.shift()}var _e=`events-tail`;function ve(e){if(e.length===0)return;let t=new Set;for(let e of h)typeof e.seq==`number`&&t.add(e.seq);for(let n of e)typeof n.seq==`number`&&t.has(n.seq)||h.push({clientId:_e,receivedAt:new Date().toISOString(),...n});for(;h.length>p;)h.shift()}function ye(){return Array.from(m.values())}function be(e=p){let t=Math.max(0,h.length-e);return h.slice(t)}function xe(e,t){if(t===null)return null;let n=1/0;for(let e of h)typeof e.seq==`number`&&(n=Math.min(n,e.seq));return n!==1/0&&n>t+1?null:h.filter(n=>n.conversationId===e&&typeof n.seq==`number`&&n.seq>t).sort((e,t)=>e.seq-t.seq)}function Se(e,t){let n=m.get(e);n&&(n.endedAt===null?(n.endedAt=Date.now(),n.endReason=t):n.endReason===`aborted`&&t!==`aborted`&&(n.endReason=t),Ce())}function Ce(){let e=0;for(let t of m.values())t.endedAt!==null&&e++;if(!(e<=de))for(let[t,n]of m){if(e<=de)break;n.endedAt!==null&&(m.delete(t),e--)}}var g={phase:`idle`,pendingQueuedCount:0,activeToolCallCount:0,activeTurnId:null,lastTerminalReason:null,statusText:null,liveWebActivity:{}};function _(e){return e===`queued`||e===`thinking`||e===`streaming`||e===`awaiting_user_input`}function we(e){return e===`thinking`}function v(e){return(e.phase===`idle`||e.phase===`errored`)&&!e.activeTurnId}var Te=o(a()((e,t)=>({...g,requestSend:t=>e(e=>({phase:`thinking`,activeTurnId:t??e.activeTurnId,lastTerminalReason:null,activeToolCallCount:0,statusText:null})),acceptSend:t=>e(e=>({activeTurnId:t,...e.phase===`idle`||e.phase===`errored`?{phase:`thinking`,lastTerminalReason:null}:null})),onTextDelta:()=>{let n=t();if(n.phase===`idle`||n.phase===`errored`){if(!n.activeTurnId)return;e({phase:`streaming`});return}(n.phase===`thinking`||n.phase===`queued`)&&e({phase:`streaming`})},onToolUseStart:()=>{let n=t();v(n)||e({phase:n.phase===`idle`||n.phase===`errored`||n.phase===`queued`?`thinking`:n.phase,activeToolCallCount:n.activeToolCallCount+1})},onToolResult:()=>e(e=>({activeToolCallCount:Math.max(0,e.activeToolCallCount-1)})),onToolActivityMetadata:(n,r)=>{let i=t();v(i)||e({liveWebActivity:{...i.liveWebActivity,[n]:r}})},onActivityThinking:(n,r)=>{let i=t();if(v(i)){if(!r?.canStartFromIdle)return;e({phase:`thinking`,statusText:n??null,lastTerminalReason:null});return}i.phase!==`awaiting_user_input`&&e({phase:`thinking`,statusText:n??null})},recoverFromAwaitingUserInput:()=>{t().phase===`awaiting_user_input`&&e({phase:`thinking`})},showSurface:n=>{v(t())||n&&e({phase:`awaiting_user_input`})},updateSurface:()=>{},dismissSurface:()=>{let n=t();n.phase===`awaiting_user_input`&&n.activeToolCallCount===0&&e({phase:`thinking`})},completeSurface:()=>{let n=t();n.phase===`awaiting_user_input`&&n.activeToolCallCount===0&&e({phase:`thinking`})},onSecretRequest:()=>{v(t())||e({phase:`awaiting_user_input`})},onConfirmationRequest:()=>{v(t())||e({phase:`awaiting_user_input`})},onQuestionRequest:()=>{v(t())||e({phase:`awaiting_user_input`})},onContactRequest:()=>{v(t())||e({phase:`awaiting_user_input`})},completeTurn:()=>{e({phase:t().pendingQueuedCount>0?`queued`:`idle`,activeTurnId:null,activeToolCallCount:0,lastTerminalReason:`complete`,statusText:null,liveWebActivity:{}})},handoffGeneration:()=>{v(t())||e({phase:`thinking`,activeToolCallCount:0,statusText:null})},cancelGeneration:()=>{e({phase:t().pendingQueuedCount>0?`queued`:`idle`,activeTurnId:null,activeToolCallCount:0,lastTerminalReason:`cancelled`,statusText:null,liveWebActivity:{}})},onStreamError:()=>e({phase:`idle`,activeTurnId:null,activeToolCallCount:0,pendingQueuedCount:0,lastTerminalReason:`error`,statusText:null,liveWebActivity:{}}),onSessionError:()=>e({phase:`idle`,activeTurnId:null,activeToolCallCount:0,pendingQueuedCount:0,lastTerminalReason:`session_error`,statusText:null,liveWebActivity:{}}),onTurnTimeout:()=>e({phase:`idle`,activeTurnId:null,activeToolCallCount:0,pendingQueuedCount:0,lastTerminalReason:`timeout`,statusText:null,liveWebActivity:{}}),onPollReconciled:n=>{let r=t();n&&n!==r.activeTurnId||_(r.phase)&&e({phase:`idle`,activeTurnId:null,activeToolCallCount:0,lastTerminalReason:`complete`,statusText:null,liveWebActivity:{}})},resetTurn:()=>e({...g}),clearStaleTurn:()=>{let n=t();n.activeTurnId&&_(n.phase)||e({...g})},enqueueMessage:()=>e(e=>({pendingQueuedCount:e.pendingQueuedCount+1})),dequeueMessage:()=>{let n=t(),r=Math.max(0,n.pendingQueuedCount-1);if(v(n)){e({pendingQueuedCount:r});return}e({phase:`thinking`,pendingQueuedCount:r})},deleteQueuedMessage:()=>{let n=t(),r=Math.max(0,n.pendingQueuedCount-1);if(r===0&&n.phase===`queued`){e({phase:`idle`,pendingQueuedCount:0,activeTurnId:null,lastTerminalReason:`complete`,statusText:null,liveWebActivity:{}});return}e({pendingQueuedCount:r})}}))),Ee=3670016,De=[.85,.75,.65,.5],Oe=2e7,ke=new Set([`image/jpeg`,`image/jpg`,`image/png`,`image/webp`,`image/heic`,`image/heif`,`image/bmp`,`image/tiff`]),Ae=new Set([`jpg`,`jpeg`,`png`,`webp`,`heic`,`heif`,`bmp`,`tif`,`tiff`]);function y(e){let t=e.type.trim().toLowerCase();if(ke.has(t))return!0;let n=e.name.split(`.`).pop()?.trim().toLowerCase();return n?Ae.has(n):!1}function je(e){return y(e)&&e.size>3670016}function Me(e){let t=e.type.trim().toLowerCase();if(t===`image/heic`||t===`image/heif`)return!0;let n=e.name.split(`.`).pop()?.trim().toLowerCase();return n===`heic`||n===`heif`}function Ne(e){return je(e)||Me(e)}function Pe(e){if(/^image\/jpe?g$/i.test(e))return`jpg`;let t=e.slice(6).toLowerCase();return/^[a-z0-9]+$/.test(t)?t:`jpg`}function Fe(e,t=`image/jpeg`){let n=`attachment`,r=e.trim()||n,i=Pe(t),a=r.match(/\.([^./\\]+)$/)?.[1]?.toLowerCase();return a===i||i===`jpg`&&a===`jpeg`?r:`${r.replace(/\.[^./\\]+$/,``)||n}.${i}`}async function Ie(e){if(!Ne(e)||await Re(e))return{status:`unchanged`,file:e};if(e.size>104857600)return{status:`failed`,error:`This image is too large to process safely. Please choose a smaller image.`};let t;try{t=await Le(e)}catch{return{status:`failed`,error:`Couldn't resize this image for upload. Try a smaller image.`}}try{let n;try{n=await Be(t,e.size)}catch{n=null}if(!n||!Me(e)&&n.size>=e.size)return{status:`failed`,error:`Couldn't resize this image for upload. Try a smaller image.`};let r=n.type.startsWith(`image/`)?n.type:`image/jpeg`;return{status:`resized`,file:new File([n],Fe(e.name,r),{type:r,lastModified:e.lastModified})}}finally{t.close()}}async function Le(e){if(typeof createImageBitmap==`function`)try{let t=await createImageBitmap(e,{imageOrientation:`from-image`});return{source:t,width:t.width,height:t.height,close:()=>t.close()}}catch{}if(typeof Image>`u`)throw Error(`No browser image decoder is available.`);let t=URL.createObjectURL(e);return await new Promise((e,n)=>{let r=new Image;r.onload=()=>{e({source:r,width:r.naturalWidth||r.width,height:r.naturalHeight||r.height,close:()=>URL.revokeObjectURL(t)})},r.onerror=()=>{URL.revokeObjectURL(t),n(Error(`Image decode failed.`))},r.src=t})}async function Re(e){if(!ze(e))return!1;let t;try{t=new Uint8Array(await e.slice(0,Math.min(e.size,1024*1024)).arrayBuffer())}catch{return!0}if(!x(t,0,`RIFF`)||!x(t,8,`WEBP`))return!1;let n=b(t,`VP8X`);return n>=0&&(t[n+8]??0)&2?!0:b(t,`ANIM`)>=0||b(t,`ANMF`)>=0}function ze(e){return e.type.trim().toLowerCase()===`image/webp`||/\.webp$/i.test(e.name)}function b(e,t){for(let n=0;n<=e.length-t.length;n+=1)if(x(e,n,t))return n;return-1}function x(e,t,n){if(t+n.length>e.length)return!1;for(let r=0;r<n.length;r+=1)if(e[t+r]!==n.charCodeAt(r))return!1;return!0}async function Be(e,t){let n=e.width*e.height,r=null;if(n<=Oe)for(let t of De){let n=await Ve(e.source,e.width,e.height,t);if(r=S(r,n),n&&n.size<=3670016)return n}let i=r?.size??t,a=Math.min(Math.sqrt(Ee/i*.9),.95);for(let t=0;t<4;t+=1){let t=Math.max(Math.floor(e.width*a),1),n=Math.max(Math.floor(e.height*a),1),o=null;for(let i of De){let a=await Ve(e.source,t,n,i);if(r=S(r,a),o=S(o,a),a&&a.size<=3670016)return a}i=o?.size??i,a*=Math.min(Math.sqrt(Ee/i*.9),.9)}return null}function S(e,t){return t&&(!e||t.size<e.size)?t:e}async function Ve(e,t,n,r){if(typeof document>`u`)return null;let i=document.createElement(`canvas`);i.width=t,i.height=n;let a=i.getContext(`2d`);if(!a||typeof i.toBlob!=`function`)return null;a.fillStyle=`#fff`,a.fillRect(0,0,t,n),a.drawImage(e,0,0,t,n);try{return await new Promise(e=>{i.toBlob(t=>e(t),`image/jpeg`,r)})}finally{i.width=0,i.height=0}}var He=`vellum:chatDrafts:`;function Ue(e){return`${He}${e}`}function We(e){let t=n(Ue(e),``);if(!t)return new Map;try{let e=JSON.parse(t);return typeof e!=`object`||!e||Array.isArray(e)?new Map:new Map(Object.entries(e).filter(e=>typeof e[1]==`string`))}catch{return new Map}}function C(e,n){t(Ue(e),JSON.stringify(Object.fromEntries(n)))}function Ge(){return`att-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`}function Ke(e){return y(e)?`100 MB`:`50 MB`}function qe(e){return e.size<=52428800?!0:y(e)&&e.size<=104857600}function Je(e){let t=e.replace(/[/\\]+$/,``),n=Math.max(t.lastIndexOf(`/`),t.lastIndexOf(`\\`));return n===-1?t:t.slice(n+1)}var w=new Map,T=null,E=new Map,D=new Set,Ye=a()((e,t)=>({input:``,restoredDraftConversationId:null,attachments:[],attachmentLastError:null,setInput:t=>{e(e=>({input:typeof t==`function`?t(e.input):t}))},saveDraft:(e,t)=>{t.trim()?w.set(e,t):w.delete(e),T&&C(T,w)},clearDraft:e=>{w.delete(e),T&&C(T,w)},handleConversationSwitch:({previousKey:n,nextKey:r})=>{if(!(n!==null&&n!==r)||!n)return;let i=t().input;i.trim()?w.set(n,i):w.delete(n);let a=(r&&w.get(r))??``;e({input:a,restoredDraftConversationId:a.length>0&&r?r:null}),T&&C(T,w)},loadAssistantDrafts:(n,r)=>{if(T&&T!==n){let n=t().input;r&&(n.trim()?w.set(r,n):w.delete(r)),C(T,w),e({input:``,restoredDraftConversationId:null})}w=We(n),T=n},clearRestoredDraftNotice:()=>{e({restoredDraftConversationId:null})},restoreDraftIfEmpty:n=>{let r=w.get(n);r&&r.trim()&&!t().input.trim()&&e({input:r,restoredDraftConversationId:n})},addFiles:(t,n)=>{let r=Array.from(t);if(r.length===0)return;if(!n){e({attachmentLastError:`No active assistant. Please try again.`});return}let i=[],a=[];for(let e of r)qe(e)?a.push(e):i.push(e);let o=i[0];if(e(o?{attachmentLastError:i.length===1?`${o.name} is larger than ${Ke(o)} and can't be attached.`:`${i.length} files are too large and can't be attached.`}:{attachmentLastError:null}),a.length===0)return;let s=a.map(e=>({pending:{kind:`uploading`,localId:Ge(),filename:e.name||`attachment`,mimeType:e.type||`application/octet-stream`,sizeBytes:e.size},file:e}));e(e=>({attachments:[...e.attachments,...s.map(e=>e.pending)]}));for(let{pending:t,file:r}of s)(async()=>{try{let i=await Ie(r);if(D.has(t.localId)){D.delete(t.localId);return}if(i.status===`failed`&&r.size>52428800){O(e,t.localId,i.error);return}let a=i.status===`failed`?r:i.file;if(a.size>52428800){O(e,t.localId,`This attachment is still larger than 50 MB after resizing. Try a smaller image.`);return}i.status===`resized`&&e(e=>({attachments:e.attachments.map(e=>e.localId===t.localId&&e.kind===`uploading`?{...e,filename:a.name||`attachment`,mimeType:a.type||`application/octet-stream`,sizeBytes:a.size}:e)}));let o=await ee(n,a);if(D.has(t.localId)){D.delete(t.localId);return}if(!o.ok){O(e,t.localId,o.error.detail??`Upload failed`);return}let s=a.type||`application/octet-stream`,c=o.filename??(a.name||`attachment`),u=o.mimeType??s,te=o.sizeBytes??a.size,d=a;if(u.startsWith(`image/`)&&u!==s){let e=await l(n,o.id);if(D.has(t.localId)){D.delete(t.localId);return}e&&(d=e)}let f=null;try{f=URL.createObjectURL(d),E.set(t.localId,f)}catch{f=null}e(e=>({attachments:e.attachments.map(e=>e.localId===t.localId?{kind:`uploaded`,localId:t.localId,id:o.id,filename:c,mimeType:u,sizeBytes:te,previewUrl:f,thumbnailUrl:null}:e)}))}catch{if(D.has(t.localId)){D.delete(t.localId);return}O(e,t.localId,`Upload failed`)}})()},addPathReferences:t=>{let n=[];for(let e of t){let t=e.trim();t&&n.push({kind:`path-reference`,localId:Ge(),path:t,filename:Je(t)||t})}n.length!==0&&e(e=>({attachments:[...e.attachments,...n],attachmentLastError:null}))},removeAttachment:t=>{e(e=>{let n=e.attachments.find(e=>e.localId===t);return n&&n.kind===`uploading`&&D.add(t),{attachments:e.attachments.filter(e=>e.localId!==t)}}),Xe(t)},resetAttachments:()=>{e(e=>{for(let t of e.attachments)t.kind===`uploading`&&D.add(t.localId);return{attachments:[],attachmentLastError:null}})},fullReset:()=>{e(e=>{for(let t of e.attachments)t.kind===`uploading`&&D.add(t.localId);return{attachments:[],attachmentLastError:null}}),E.forEach(e=>URL.revokeObjectURL(e)),E.clear()},dismissAttachmentError:()=>{e({attachmentLastError:null})}}));function O(e,t,n){e(e=>({attachments:e.attachments.map(e=>e.localId!==t||e.kind!==`uploading`?e:{kind:`failed`,localId:t,filename:e.filename,mimeType:e.mimeType,sizeBytes:e.sizeBytes,error:n})}))}function Xe(e){let t=E.get(e);t&&(URL.revokeObjectURL(t),E.delete(e))}function Ze(e){return e.reduce((e,t)=>t.kind===`uploading`?e+1:e,0)}function Qe(e){return e.filter(e=>e.kind===`uploaded`).map(e=>e.id)}function $e(e){return e.filter(e=>e.kind===`path-reference`).map(e=>e.path)}var k=o(Ye);function et(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)}function tt(e){let t=JSON.parse(e);return et(t)?t:null}function A(e,t){let n=[...e??[]],r=n.findIndex(e=>e.type===`surface`&&e.surface.surfaceId===t.surfaceId);return r===-1?n.push({type:`surface`,surface:t}):n[r]={type:`surface`,surface:t},n}function nt(e,t){return e?.filter(e=>!(e.type===`surface`&&e.surface.surfaceId===t))}function j(e,t){if(!e.surfaces?.length)return e;let n=!1,r=e.contentBlocks,i=e.surfaces.map(e=>{let i=t(e);return i!==e&&(n=!0,r=A(r,i)),i});return n?{...e,surfaces:i,contentBlocks:r}:e}function rt(e,t){if(!e.surfaces?.length)return e;let n=e.surfaces.filter(t);if(n.length===e.surfaces.length)return e;let r=new Set(e.surfaces.filter(e=>!t(e)).map(e=>e.surfaceId));return{...e,surfaces:n,contentOrder:e.contentOrder?.filter(e=>!(e.type===`surface`&&r.has(e.id))),contentBlocks:e.contentBlocks?.filter(e=>!(e.type===`surface`&&r.has(e.surface.surfaceId)))}}var it=500,at=s({keyFn:e=>`vellum:dismissed-surfaces:${e}`,scope:`user`,parseValue:e=>et(e)?e:null,fallback:{},maxEntries:200});function ot(e,t){let n=at.get(e,t);return n?new Set(n):new Set}function st(e,t,n){let r=Array.from(n);r.length>it&&(r=r.slice(r.length-it)),at.set(e,t,r)}var ct=[];function lt(e,t){if(!e)return ct;if(t.size===0)return e;let n=!1,r=e.map(e=>{let r=rt(e,e=>!t.has(e.surfaceId));return r!==e&&(n=!0),r});return n?r:e}function ut(e){if(!e||typeof e!=`object`)return!1;let t=e;return!(typeof t.tokens!=`number`||!Number.isFinite(t.tokens)||t.maxTokens!==null&&(typeof t.maxTokens!=`number`||!Number.isFinite(t.maxTokens))||t.fillRatio!==null&&(typeof t.fillRatio!=`number`||!Number.isFinite(t.fillRatio)))}var dt=s({keyFn:e=>`vellum:ctxwindow:${e}`,scope:`user`,parseValue:e=>ut(e)?e:null,fallback:{},maxEntries:200});function ft(e){return new Map(Object.entries(dt.load(e)))}function pt(e,t,n){dt.set(e,t,n)}var mt=`PROVIDER_BILLING`,ht=`PROVIDER_NOT_CONFIGURED`,gt=`MANAGED_KEY_INVALID`,_t=`credits_exhausted`,vt=`provider_billing`,yt=`daily_limit_reached`;function bt(e){return e?.errorCategory?e.errorCategory.endsWith(_t):e?.code===mt}function xt(e){return e?.errorCategory?e.errorCategory.endsWith(vt):!1}function St(e){return e?.errorCategory?e.errorCategory.endsWith(yt):!1}function Ct(e){return St(e)?`daily_limit`:bt(e)?`managed_credits`:xt(e)?`provider_billing`:null}function M(e){return Ct(e)!==null||e?.code===ht||e?.displayAs===`modal`}function wt(e){return!!e&&!M(e)}function Tt(e){return e?.code===gt}var Et={pendingSecret:null,isSubmittingSecret:!1,secretSaved:!1,pendingConfirmation:null,isSubmittingConfirmation:!1,pendingContactRequest:null,isSubmittingContactRequest:!1,contactRequestAccepted:!1,pendingQuestion:null,isSubmittingQuestion:!1,isQuestionCardDismissed:!1,inlineConfirmationToolCallId:null,pendingAcpConnect:null,dismissedAcpConnectToolUseIds:new Set,pendingAcpContinue:!1,unknownNudgeToolCallIds:new Set},N=o(a()((e,t)=>({...Et,showSecret:n=>{let{pendingSecret:r}=t();if(r&&r.requestId===n.requestId){let t={};for(let e of Object.keys(n))n[e]!==void 0&&(t[e]=n[e]);e({pendingSecret:{...r,...t}});return}e({pendingSecret:n,isSubmittingSecret:!1,secretSaved:!1})},submitSecretStart:()=>e({isSubmittingSecret:!0}),submitSecretEnd:t=>e({isSubmittingSecret:!1,secretSaved:t??!1}),dismissSecret:()=>e({pendingSecret:null,isSubmittingSecret:!1}),updateSecret:(n,r)=>{let{pendingSecret:i}=t();!i||i.requestId!==n||e({pendingSecret:{...i,...r}})},showConfirmation:t=>e({pendingConfirmation:t,isSubmittingConfirmation:!1}),submitConfirmationStart:()=>e({isSubmittingConfirmation:!0}),submitConfirmationEnd:()=>e({isSubmittingConfirmation:!1}),dismissConfirmation:()=>e({pendingConfirmation:null,isSubmittingConfirmation:!1}),dismissConfirmationIfMatches:n=>{let{pendingConfirmation:r}=t();!r||r.requestId!==n||e({pendingConfirmation:null,isSubmittingConfirmation:!1})},updateConfirmation:(n,r)=>{let{pendingConfirmation:i}=t();!i||i.requestId!==n||e({pendingConfirmation:{...i,...r}})},setInlineConfirmationToolCallId:t=>e({inlineConfirmationToolCallId:t}),showContactRequest:t=>e({pendingContactRequest:t,isSubmittingContactRequest:!1,contactRequestAccepted:!1}),submitContactRequestStart:()=>e({isSubmittingContactRequest:!0}),submitContactRequestEnd:()=>e({isSubmittingContactRequest:!1}),dismissContactRequest:()=>e({pendingContactRequest:null,isSubmittingContactRequest:!1}),acceptContactRequest:()=>e({contactRequestAccepted:!0}),showQuestion:t=>e({pendingQuestion:t,isSubmittingQuestion:!1,isQuestionCardDismissed:!1}),submitQuestionStart:()=>e({isSubmittingQuestion:!0}),submitQuestionEnd:()=>e({isSubmittingQuestion:!1}),dismissQuestion:()=>e({pendingQuestion:null,isSubmittingQuestion:!1,isQuestionCardDismissed:!1}),dismissQuestionCard:()=>e({isQuestionCardDismissed:!0}),resetSecretAndConfirmation:()=>e({pendingSecret:null,isSubmittingSecret:!1,secretSaved:!1,pendingConfirmation:null,isSubmittingConfirmation:!1,inlineConfirmationToolCallId:null}),showAcpConnect:t=>e(e=>e.dismissedAcpConnectToolUseIds.has(t.toolUseId)?{}:{pendingAcpConnect:t}),dismissAcpConnect:()=>e(e=>({pendingAcpConnect:null,dismissedAcpConnectToolUseIds:e.pendingAcpConnect?new Set(e.dismissedAcpConnectToolUseIds).add(e.pendingAcpConnect.toolUseId):e.dismissedAcpConnectToolUseIds})),requestAcpContinue:()=>e({pendingAcpContinue:!0}),clearAcpContinue:()=>e({pendingAcpContinue:!1}),addUnknownNudgeToolCallId:n=>{let r=t().unknownNudgeToolCallIds;r.has(n)||e({unknownNudgeToolCallIds:new Set([...r,n])})},removeUnknownNudgeToolCallId:n=>{let r=t().unknownNudgeToolCallIds;if(!r.has(n))return;let i=new Set(r);i.delete(n),e({unknownNudgeToolCallIds:i})},resetAll:()=>e(Et)})));function Dt(e){if(e.length===0)return``;let t=e[0]??``;for(let n=1;n<e.length;n++){let r=t[t.length-1],i=e[n][0];r&&i&&r!==` `&&r!==`
|
|
2
|
-
`&&r!==` `&&i!==` `&&i!==`
|
|
3
|
-
`&&i!==` `&&(t+=` `),t+=e[n]}return t}function Ot(e){let t=[];for(let n of e?.contentBlocks??[])n.type===`text`&&t.push(n.text);return Dt(t)}function kt(e){if(!(!e||e.length===0))return e.map(e=>{let{previewUrl:t,thumbnailUrl:n}=te(e.mimeType,e.data,e.thumbnailData,e.id!=null);return{id:e.id??e.filename,filename:e.filename,mimeType:e.mimeType,sizeBytes:e.sizeBytes??(e.data?Math.floor(e.data.length*3/4):0),previewUrl:t,thumbnailUrl:n}})}function At(e){return[...new Set([e.id,...e.mergedMessageIds??[]].filter(e=>typeof e==`string`&&e.length>0))]}function P(e){let t=At(e);return e.clientMessageId&&!t.includes(e.clientMessageId)?[...t,e.clientMessageId]:t}function F(e,t){return e.id===t||e.clientMessageId===t||(e.mergedMessageIds?.includes(t)??!1)}function I(e){let t=e[e.length-1];return!!t&&t.role===`assistant`}function jt(e,t){if(!t)return null;let n=e.length-1;for(;n>=0&&e[n].role===`user`&&e[n].queueStatus===`queued`;)n--;let r=e[n];return!r||r.role!==`assistant`?null:r.id}function L(e,t){return e.findIndex(e=>e.role===`assistant`&&(e.id===t||!!e.mergedMessageIds?.includes(t)))}function R(e,t){if(!t||e.id===t)return e;let n=e.mergedMessageIds??[];return n.includes(t)?e:{...e,mergedMessageIds:[...n,t]}}function z(e,t=Date.now()){if(!e.toolCalls?.some(e=>f(e)))return null;let n=t;return{toolCalls:e.toolCalls.map(e=>f(e)?{...e,completedAt:n}:e),contentBlocks:e.contentBlocks?.map(e=>e.type===`tool_use`&&f(e.toolCall)?{type:`tool_use`,toolCall:{...e.toolCall,completedAt:n}}:e)}}function Mt(e,t,n){return e.map(e=>e.id===t?{...e,queuePosition:n}:e)}function Nt(e,t){return e.map(e=>F(e,t)?{...e,queueStatus:void 0,queuePosition:void 0}:e)}function Pt(e,t){return e.map(e=>F(e,t)?{...e,...e.clientMessageId?{}:{isOptimistic:!0},queueStatus:void 0,queuePosition:void 0}:e)}function Ft(e,t,n){return e.map(e=>F(e,t)?{...e,queueStatus:`queued`,queuePosition:n}:e)}function B(e,t){return e.filter(e=>!F(e,t))}function It(e,t,n,r=Date.now()){return[...e,{id:n??crypto.randomUUID(),...n?{}:{isOptimistic:!0},role:`assistant`,textSegments:[t],contentOrder:[{type:`text`,id:`0`}],contentBlocks:[{type:`text`,text:t}],timestamp:r}]}function Lt(e,t,n){n&&e[e.length-1]?.type===t.type?e[e.length-1]=t:e.push(t)}function V(e,t,n,r){let i=R(e[t],r),a=[...i.textSegments??[]],o=[...i.contentOrder??[]],s=[...i.contentBlocks??[]],c=o[o.length-1]?.type===`text`&&a.length>0;c?a[a.length-1]=a[a.length-1]+n:(o.push({type:`text`,id:String(a.length)}),a.push(n)),Lt(s,{type:`text`,text:a[a.length-1]},c);let l=[...e];return l[t]={...i,textSegments:a,contentOrder:o,contentBlocks:s},l}function H(e,t,n,r){let i=R(e[t],r),a=[...i.thinkingSegments??[]],o=[...i.contentOrder??[]],s=[...i.contentBlocks??[]],c=o[o.length-1]?.type===`thinking`&&a.length>0;c?a[a.length-1]=a[a.length-1]+n:(o.push({type:`thinking`,id:String(a.length)}),a.push(n)),Lt(s,{type:`thinking`,thinking:a[a.length-1]},c);let l=[...e];return l[t]={...i,thinkingSegments:a,contentOrder:o,contentBlocks:s},l}function Rt(e,t,n,r,i=Date.now()){if(n){let a=L(e,n);if(a>=0)return V(e,a,t,n);if(I(e))return V(e,e.length-1,t,n);let o=r?.();return o?V([...e,o],e.length,t,n):It(e,t,n,i)}return I(e)?V(e,e.length-1,t,void 0):It(e,t,n,i)}function zt(e,t,n,r=Date.now()){return[...e,{id:n??crypto.randomUUID(),...n?{}:{isOptimistic:!0},role:`assistant`,thinkingSegments:[t],contentOrder:[{type:`thinking`,id:`0`}],contentBlocks:[{type:`thinking`,thinking:t}],timestamp:r}]}function Bt(e,t,n,r,i=Date.now()){if(n){let a=L(e,n);if(a>=0)return H(e,a,t,n);if(I(e))return H(e,e.length-1,t,n);let o=r?.();return o?H([...e,o],e.length,t,n):zt(e,t,n,i)}return I(e)?H(e,e.length-1,t,void 0):zt(e,t,n,i)}function Vt(e,t=Date.now()){let n=!1,r=e.map(e=>{if(e.role!==`assistant`)return e;let r=z(e,t);return r?(n=!0,{...e,...r}):e});return n?r:e}function Ht(e,t,n=Date.now()){let r=e[e.length-1],i=kt(t.attachments);if(r?.role!==`assistant`)return i?[...e,{id:t.messageId??crypto.randomUUID(),...t.messageId?{}:{isOptimistic:!0},role:`assistant`,timestamp:n,attachments:i}]:e;let a=z(r,n),o=r.isOptimistic===!0&&!!t.messageId;return[...e.slice(0,-1),{...r,...o?{id:t.messageId,isOptimistic:!1}:{},...i?{attachments:i}:{},...a??{}}]}function Ut(e,t){if(t!==void 0)return e.findIndex(e=>e.role===`user`&&e.clientMessageId===t);let n=-1;for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&r.role===`user`&&r.isOptimistic===!0){if(!r.clientMessageId)return t;n===-1&&(n=t)}}return n}function Wt(e,t,n=Date.now()){let r=t.messageId;if(r!==void 0&&e.some(e=>e.role===`user`&&(e.id===r||e.mergedMessageIds?.includes(r))))return e;let i=Ut(e,t.clientMessageId);if(i!==-1){if(r===void 0)return e;let t=[...e];return t[i]={...t[i],id:r,isOptimistic:!1,queueStatus:void 0,queuePosition:void 0},t}return[...e,{id:r??crypto.randomUUID(),...r===void 0?{isOptimistic:!0}:{},...t.clientMessageId?{clientMessageId:t.clientMessageId}:{},role:`user`,textSegments:[t.text],contentOrder:[{type:`text`,id:`0`}],contentBlocks:[{type:`text`,text:t.text}],timestamp:n}]}function Gt(e,t=Date.now()){let n=e.length-1,r=e[n];if(!r||r.role!==`assistant`)return e;let i=z(r,t);if(!(Ot(r).trim().length>0||r.thinkingSegments!=null&&r.thinkingSegments.length>0||r.toolCalls!=null&&r.toolCalls.length>0||r.surfaces!=null&&r.surfaces.length>0))return e.slice(0,-1);let a=[...e];return a[n]={...r,...i??{}},a}function U(e,t){let n=[...e??[]],r=n.findIndex(e=>e.type===`tool_use`&&e.toolCall.id===t.id);return r===-1?n.push({type:`tool_use`,toolCall:t}):n[r]={type:`tool_use`,toolCall:t},n}function W(e,t,n,r){let i=R(e[t],r),a=i.toolCalls?.findIndex(e=>e.id===n.id)??-1,o=[...e];if(a!==-1){let e=[...i.toolCalls??[]],r={...e[a],...n};return e[a]=r,o[t]={...i,toolCalls:e,contentBlocks:U(i.contentBlocks,r)},o}return o[t]={...i,toolCalls:[...i.toolCalls??[],n],contentOrder:[...i.contentOrder??[],{type:`toolCall`,id:n.id}],contentBlocks:U(i.contentBlocks,n)},o}function Kt(e,t,n,r=Date.now()){if(n){let r=L(e,n);if(r>=0)return W(e,r,t,n);if(I(e))return W(e,e.length-1,t,n)}else if(I(e))return W(e,e.length-1,t);return[...e,{id:n??crypto.randomUUID(),...n?{}:{isOptimistic:!0},role:`assistant`,toolCalls:[t],contentOrder:[{type:`toolCall`,id:t.id}],contentBlocks:[{type:`tool_use`,toolCall:t}],timestamp:r}]}function qt(e,t){let n=-1,r=-1;if(t.toolUseId)for(let i=e.length-1;i>=0;i--){let a=e[i];if(a?.role!==`assistant`||!a.toolCalls?.length)continue;let o=a.toolCalls.findIndex(e=>e.id===t.toolUseId);if(o!==-1){n=i,r=o;break}}if(n===-1){if(n=e.findLastIndex(e=>e.role===`assistant`&&e.toolCalls&&e.toolCalls.length>0),n===-1)return e;let t=e[n];if(!t?.toolCalls)return e;r=t.toolCalls.findLastIndex(e=>f(e))}if(r===-1)return e;let i=e[n],a=i.toolCalls[r];if(!a)return e;let o=t.imageDataList===void 0?t.imageData===void 0?void 0:[t.imageData]:t.imageDataList,s=t.imageData===void 0?o?.[0]:t.imageData,c=[...i.toolCalls],l={...a,result:t.result,isError:t.isError,riskLevel:t.riskLevel,riskReason:t.riskReason,matchedTrustRuleId:t.matchedTrustRuleId,approvalMode:t.approvalMode,approvalReason:t.approvalReason,riskThreshold:t.riskThreshold,riskAllowlistOptions:t.riskAllowlistOptions,riskScopeOptions:t.riskScopeOptions,riskDirectoryScopeOptions:t.riskDirectoryScopeOptions,...s===void 0?{}:{imageData:s},...o===void 0?{}:{imageDataList:o},...t.activityMetadata===void 0?{}:{activityMetadata:t.activityMetadata},...t.errorCode===void 0?{}:{errorCode:t.errorCode},completedAt:t.completedAt??Date.now(),streamedOutput:void 0};c[r]=l;let u=[...e];return u[n]={...i,toolCalls:c,contentBlocks:U(i.contentBlocks,l)},u}var Jt=16384;function Yt(e){return e.length<=16384?e:e.slice(e.length-Jt)}function Xt(e,t){if(!t.chunk)return e;let n=-1,r=-1;if(t.toolUseId){if(t.messageId){let i=L(e,t.messageId);if(i>=0){let a=e[i].toolCalls?.findIndex(e=>e.id===t.toolUseId)??-1;a!==-1&&(n=i,r=a)}}if(n===-1)for(let i=e.length-1;i>=0;i--){let a=e[i];if(a?.role!==`assistant`||!a.toolCalls?.length)continue;let o=a.toolCalls.findIndex(e=>e.id===t.toolUseId);if(o!==-1){n=i,r=o;break}}}else{if(n=e.findLastIndex(e=>e.role===`assistant`&&e.toolCalls&&e.toolCalls.length>0),n===-1)return e;let t=e[n];if(!t?.toolCalls)return e;r=t.toolCalls.findLastIndex(e=>f(e))}if(n===-1||r===-1)return e;let i=e[n],a=i.toolCalls[r];if(!a)return e;let o={...a,streamedOutput:Yt((a.streamedOutput??``)+t.chunk)},s=[...i.toolCalls];s[r]=o;let c=[...e];return c[n]={...i,toolCalls:s,contentBlocks:U(i.contentBlocks,o)},c}function Zt(e,t,n,r=Date.now()){let i=-1;if(n&&(i=L(e,n)),i===-1){for(let t=e.length-1;t>=0;t--)if(e[t]?.role===`assistant`){i=t;break}}let a=[...e];if(i===-1)a.push({id:n??crypto.randomUUID(),...n?{}:{isOptimistic:!0},role:`assistant`,surfaces:[t],contentOrder:[{type:`surface`,id:t.surfaceId}],contentBlocks:[{type:`surface`,surface:t}],timestamp:r});else{let r=R(e[i],n);if(r.contentOrder?.some(e=>e.type===`surface`&&e.id===t.surfaceId)||r.surfaces?.some(e=>e.surfaceId===t.surfaceId))return e;a[i]={...r,surfaces:[...r.surfaces??[],t],contentOrder:[...r.contentOrder??[],{type:`surface`,id:t.surfaceId}],contentBlocks:A(r.contentBlocks,t)}}return a}function Qt(e,t,n){for(let r=e.length-1;r>=0;r--){let i=e[r],a=i.surfaces?.findIndex(e=>e.surfaceId===t)??-1;if(a===-1)continue;let o=i.surfaces[a],s={...o.data,...n};o.data.templateData&&n.templateData&&typeof o.data.templateData==`object`&&typeof n.templateData==`object`&&(s.templateData={...o.data.templateData,...n.templateData});let c={...o,data:s},l=[...e],u=[...i.surfaces];return u[a]=c,l[r]={...i,surfaces:u,contentBlocks:A(i.contentBlocks,c)},l}return e}function $t(e,t){for(let n=e.length-1;n>=0;n--){if(!e[n].surfaces?.some(e=>e.surfaceId===t))continue;let r=[...e];return r[n]={...e[n],surfaces:e[n].surfaces?.filter(e=>e.surfaceId!==t),contentOrder:e[n].contentOrder?.filter(e=>!(e.type===`surface`&&e.id===t)),contentBlocks:nt(e[n].contentBlocks,t)},r}return e}function en(e,t,n){for(let r=e.length-1;r>=0;r--){let i=e[r].surfaces?.find(e=>e.surfaceId===t);if(!i)continue;let a={...i,completed:!0,completionSummary:n},o=[...e];return o[r]={...e[r],surfaces:e[r].surfaces?.map(e=>e.surfaceId===t?a:e),contentBlocks:A(e[r].contentBlocks,a)},o}return e}var tn=[`choice`,`oauth_connect`,`form`,`confirmation`,`file_upload`,`card`,`list`,`table`,`browser_view`,`task_preferences`];function nn(e){return e==null||e.hasPendingConfirmation||e.hasUncompletedVisibleSurface}function rn(e,t){let n=!1,r=e.map(e=>{let r=ae(e,e=>e.pendingConfirmation?.requestId===t?{...e,pendingConfirmation:void 0}:e);return r!==e&&(n=!0),r});return n?r:e}function an(e){let t=!1,n=e.map(e=>{let n=ae(e,e=>e.pendingConfirmation?{...e,pendingConfirmation:void 0}:e);return n!==e&&(t=!0),n});return t?n:e}function on(e,t){let n=new Set;for(let e of t)if(e.surfaces)for(let t of e.surfaces)ie(t)&&n.add(t.surfaceId);return n.size===0?{updatedMessages:e,dismissedIds:n}:{updatedMessages:e.map(e=>rt(e,e=>!n.has(e.surfaceId))),dismissedIds:n}}function sn(e,t,n,r,i){for(let a=e.length-1;a>=0;a--){let o=e[a].surfaces?.find(e=>e.surfaceId===t);if(!o)continue;if(!tn.includes(o.surfaceType)||o.completed)return e;let s=o.actions?.find(e=>e.id===n),c=n===`cancel`||n===`dismiss`,l=[...e];return l[a]=j(e[a],e=>e.surfaceId===t?{...e,completed:!0,completionSummary:c?`Cancelled`:r??s?.label??void 0,...i?.tone?{completionTone:i.tone}:{}}:e),l}return e}function cn(e,t,n){return e&&re[e]||t||n}function G(e){return typeof e==`string`?e:void 0}function ln(e){return typeof e==`boolean`?e:void 0}function un(e){return Array.isArray(e)?e:void 0}function dn(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function K(e){return Array.isArray(e)?e:void 0}function fn(e){return{requestId:typeof e.requestId==`string`?e.requestId:``,label:G(e.label),service:G(e.service),field:G(e.field),description:G(e.description),placeholder:G(e.placeholder),allowOneTimeSend:ln(e.allowOneTimeSend),allowedTools:un(e.allowedTools),allowedDomains:un(e.allowedDomains),purpose:G(e.purpose)}}function pn(e){let t={requestId:typeof e.requestId==`string`?e.requestId:``,title:G(e.title),description:G(e.description),toolName:G(e.toolName),riskLevel:G(e.riskLevel),riskReason:G(e.riskReason),allowlistOptions:K(e.allowlistOptions),scopeOptions:K(e.scopeOptions),directoryScopeOptions:K(e.directoryScopeOptions),persistentDecisionsAllowed:ln(e.persistentDecisionsAllowed),input:dn(e.input),toolUseId:G(e.toolUseId)};return{confData:t,state:{...t,confirmLabel:G(e.confirmLabel),denyLabel:G(e.denyLabel)}}}function mn(){return`turn-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}function hn(e,t){let n=Date.parse(e);return Number.isFinite(n)?n:typeof t==`number`?t:0}function gn(e,t,n){switch(t.type){case`assistant_text_delta`:return Rt(e,t.text,t.messageId,void 0,n);case`assistant_thinking_delta`:return Bt(e,t.thinking,t.messageId,void 0,n);case`message_complete`:return Ht(e,t,n);case`user_message_echo`:return Wt(e,{text:t.text,messageId:t.messageId,clientMessageId:t.clientMessageId},n);case`message_dequeued`:return Pt(e,t.requestId);case`message_queued_deleted`:return B(e,t.requestId);case`assistant_activity_state`:return t.phase===`idle`?Vt(e,n):e;case`conversation_error`:return Gt(e,n);case`tool_use_preview_start`:return Kt(e,{id:t.toolUseId,name:t.toolName,input:{},previewStartedAt:typeof t.previewStartedAt==`number`?t.previewStartedAt:n},t.messageId,n);case`tool_use_start`:return Kt(e,{id:t.toolUseId??`tool-${n}`,name:t.toolName,input:t.input,startedAt:`startedAt`in t&&typeof t.startedAt==`number`?t.startedAt:n,...`previewStartedAt`in t&&typeof t.previewStartedAt==`number`?{previewStartedAt:t.previewStartedAt}:{}},t.messageId,n);case`tool_result`:return qt(e,{toolUseId:t.toolUseId,result:t.result,isError:t.isError,riskLevel:t.riskLevel,riskReason:t.riskReason,matchedTrustRuleId:t.matchedTrustRuleId,approvalMode:t.approvalMode,approvalReason:t.approvalReason,riskThreshold:t.riskThreshold,riskAllowlistOptions:t.riskAllowlistOptions,riskScopeOptions:t.riskScopeOptions,riskDirectoryScopeOptions:t.riskDirectoryScopeOptions,imageData:t.imageData,imageDataList:t.imageDataList,activityMetadata:t.activityMetadata,errorCode:t.errorCode,completedAt:`completedAt`in t&&typeof t.completedAt==`number`?t.completedAt:n});case`tool_output_chunk`:return t.chunk?Xt(e,{chunk:t.chunk,toolUseId:t.toolUseId,messageId:t.messageId}):e;case`ui_surface_show`:{let r={surfaceId:t.surfaceId,surfaceType:t.surfaceType,title:t.title,data:t.data,actions:t.actions,display:t.display};return r.display=d(r),Zt(e,r,t.messageId,n)}case`ui_surface_update`:return Qt(e,t.surfaceId,t.data);case`ui_surface_dismiss`:return $t(e,t.surfaceId);case`ui_surface_complete`:return en(e,t.surfaceId,t.summary);case`confirmation_request`:return ne(e,{requestId:t.requestId,toolName:t.toolName,riskLevel:t.riskLevel,riskReason:t.riskReason,allowlistOptions:t.allowlistOptions,scopeOptions:t.scopeOptions,directoryScopeOptions:t.directoryScopeOptions,persistentDecisionsAllowed:t.persistentDecisionsAllowed,input:t.input,toolUseId:t.toolUseId}).updatedMessages;case`interaction_resolved`:return t.kind===`confirmation`||t.kind===`acp_confirmation`?rn(e,t.requestId):e;default:return e}}function _n(e,t,n){if(e!==void 0){if(typeof n!=`number`)return e;switch(t.type){case`assistant_turn_start`:case`assistant_text_delta`:case`assistant_thinking_delta`:return!0;case`assistant_activity_state`:return t.phase!==`idle`;case`message_complete`:return!1;default:return e}}}function vn(e,t){let{seq:n}=t;if(typeof n==`number`&&typeof e.seq==`number`&&n<=e.seq)return e;let r=hn(t.emittedAt,n),i=gn(e.messages,t.message,r),a=typeof n==`number`?Math.max(e.seq??-1,n):e.seq??null,o=_n(e.processing,t.message,n);return{...e,messages:i,seq:a,processing:o}}function yn(e,t){return t.reduce(vn,e)}function bn(e,t){return t===null?e:yn(e,t)}var xn={hasMore:!1,oldestTimestamp:null,isLoadingOlder:!1};function Sn(){return{snapshot:null,optimisticSends:[],error:null,notice:null,isLoadingHistory:!0,transcriptPagination:{...xn},contextWindowUsage:null,ephemeralMetaResults:[],compactionCircuitOpenUntil:null,dismissedSurfaceIds:new Set,streamingMessageIds:new Set,pendingQueuedMessageIds:[],requestIdToMessageId:new Map,pendingLocalDeletions:new Set,confirmationToolCallMap:new Map,expandedToolCallIds:new Set,expandedCardIds:new Map,contextWindowUsageByConversation:new Map,previousConversationId:null,previousAssistantId:null,draftConversationIdResolution:!1}}function q(e,t){return typeof t==`function`?t(e):t}function Cn(e,t){if(e.length===0)return e;let n=new Map;for(let e of t)for(let t of P(e))n.has(t)||n.set(t,e);let r=e.filter(e=>{let t;for(let r of P(e))if(t=n.get(r),t)break;return t?!!e.attachments?.length&&!t.attachments?.length:!0});return r.length===e.length?e:r}var J=o(a()((e,t)=>({...Sn(),seedSnapshot:(n,r)=>{let i=t().snapshot;if(r.seq==null&&i!==null&&typeof i.seq==`number`){c(`history_seed_skipped_anchorless`,{conversationId:n,liveSeq:i.seq});return}let a=xe(n,r.seq??null);if(a===null&&i!==null&&typeof i.seq==`number`&&typeof r.seq==`number`&&r.seq<i.seq){c(`history_seed_skipped_stale_anchor`,{conversationId:n,liveSeq:i.seq,fetchedSeq:r.seq});return}let o=bn(r,a);e(e=>({snapshot:o,optimisticSends:Cn(e.optimisticSends,o.messages)}))},applyEnvelopeToSnapshot:t=>e(e=>e.snapshot?{snapshot:vn(e.snapshot,t)}:{}),addOptimisticSend:t=>e(e=>({optimisticSends:[...e.optimisticSends,t]})),setOptimisticSends:t=>e(e=>({optimisticSends:q(e.optimisticSends,t)})),patchSnapshotMessages:t=>e(e=>e.snapshot?{snapshot:{...e.snapshot,messages:t(e.snapshot.messages)}}:{}),setError:t=>e(e=>({error:q(e.error,t)})),setNotice:t=>e(e=>({notice:q(e.notice,t)})),setIsLoadingHistory:t=>e({isLoadingHistory:t}),setTranscriptPagination:t=>e(e=>({transcriptPagination:q(e.transcriptPagination,t)})),setContextWindowUsage:t=>e(e=>({contextWindowUsage:q(e.contextWindowUsage,t)})),setCompactionCircuitOpenUntil:t=>e(e=>({compactionCircuitOpenUntil:q(e.compactionCircuitOpenUntil,t)})),switchToConversation:({assistantId:n,activeConversationId:r})=>{let i=t();if(i.draftConversationIdResolution){e({draftConversationIdResolution:!1});return}let a=i.previousConversationId;if(a&&a!==r&&a){let e=N.getState();(e.pendingSecret||e.pendingConfirmation)&&u.getState().addAttentionConversationId(a)}let o=i.previousAssistantId!==null&&i.previousAssistantId!==n,s=o||i.previousAssistantId===null;c(`conversation_switch_reset`,{assistantId:n,conversationId:r,outgoingConversationId:a??null}),k.getState().handleConversationSwitch({previousKey:a??null,nextKey:r}),Te.getState().resetTurn(),N.getState().resetAll(),o?k.getState().fullReset():k.getState().resetAttachments();let l=s?ft(n):i.contextWindowUsageByConversation;e({snapshot:null,optimisticSends:[],ephemeralMetaResults:[],error:M(i.error)?i.error:null,notice:null,isLoadingHistory:!0,transcriptPagination:{...xn},contextWindowUsage:l.get(r)??null,compactionCircuitOpenUntil:null,dismissedSurfaceIds:ot(n,r),streamingMessageIds:new Set,pendingQueuedMessageIds:[],requestIdToMessageId:new Map,pendingLocalDeletions:new Set,confirmationToolCallMap:new Map,expandedToolCallIds:new Set,expandedCardIds:new Map,contextWindowUsageByConversation:l,previousConversationId:r,previousAssistantId:n,draftConversationIdResolution:!1})},markDraftResolution:()=>e({draftConversationIdResolution:!0}),setConfirmationToolCall:(t,n)=>e(e=>{let r=new Map(e.confirmationToolCallMap);return r.set(t,n),{confirmationToolCallMap:r}}),deleteConfirmationToolCall:t=>e(e=>{let n=new Map(e.confirmationToolCallMap);return n.delete(t),{confirmationToolCallMap:n}}),clearConfirmationToolCallMap:()=>e({confirmationToolCallMap:new Map}),addDismissedSurfaceId:t=>e(e=>{let n=new Set(e.dismissedSurfaceIds);return n.add(t),{dismissedSurfaceIds:n}}),addDismissedSurfaceIds:t=>e(e=>{let n=new Set(e.dismissedSurfaceIds);for(let e of t)n.add(e);return{dismissedSurfaceIds:n}}),batchUpdateStreamingMessageIds:(t,n)=>e(e=>{let r=new Set(e.streamingMessageIds);for(let e of t)r.add(e);for(let e of n)r.delete(e);return{streamingMessageIds:r}}),pushPendingQueuedMessageId:t=>e(e=>({pendingQueuedMessageIds:[...e.pendingQueuedMessageIds,t]})),shiftPendingQueuedMessageId:()=>{let n=t().pendingQueuedMessageIds;if(n.length===0)return;let[r,...i]=n;return e({pendingQueuedMessageIds:i}),r},setRequestIdMapping:(t,n)=>e(e=>{let r=new Map(e.requestIdToMessageId);return r.set(t,n),{requestIdToMessageId:r}}),popRequestIdMapping:n=>{let r=t().requestIdToMessageId,i=r.get(n);if(i!==void 0){let t=new Map(r);t.delete(n),e({requestIdToMessageId:t})}return i},addPendingLocalDeletion:t=>e(e=>{let n=new Set(e.pendingLocalDeletions);return n.add(t),{pendingLocalDeletions:n}}),consumePendingLocalDeletion:n=>{let r=t().pendingLocalDeletions;if(!r.has(n))return!1;let i=new Set(r);return i.delete(n),e({pendingLocalDeletions:i}),!0},setExpandedToolCallId:(t,n)=>e(e=>{let r=new Set(e.expandedToolCallIds);return n?r.add(t):r.delete(t),{expandedToolCallIds:r}}),setExpandedCardId:(t,n)=>e(e=>{let r=new Map(e.expandedCardIds);return r.set(t,n),{expandedCardIds:r}}),setContextWindowUsageForConversation:(t,n)=>e(e=>{let r=new Map(e.contextWindowUsageByConversation);return r.set(t,n),{contextWindowUsageByConversation:r}}),addEphemeralMetaResult:t=>e(e=>({ephemeralMetaResults:[...e.ephemeralMetaResults,t]})),clearEphemeralMetaResults:()=>e(e=>e.ephemeralMetaResults.length===0?e:{ephemeralMetaResults:[]})})));function wn(e,t){if(t.length===0)return e;let n=new Map;for(let e of t)for(let t of P(e))n.has(t)||n.set(t,e);let r=[],i=new Set;for(let t of e){let e;for(let r of P(t)){let t=n.get(r);if(t){e=t;break}}if(e){i.has(e)||(r.push(e),i.add(e));continue}r.push(t)}for(let e of t)i.has(e)||r.push(e);return r}function Tn(){let e=J.use.snapshot()?.messages,t=J.use.optimisticSends(),n=J.use.dismissedSurfaceIds();return(0,ue.useMemo)(()=>wn(lt(e,n),t),[e,t,n])}function Y(e,t,n=`…`){return e.length<=t?e:e.slice(0,t-n.length)+n}function En(e){if(!e)return null;let t=e.split(`/`),n=t[t.length-1];return!n||n===`.`?null:n}function X(e,t){return Y(e,t,`...`)}function Dn(e){if(!e)return null;let t=e.replace(/\s+/g,` `).trim().match(/(?:^|&&\s*|\|\|\s*|;\s*)(?:\S*\/)?assistant\s+browser\s+([^\s;&|]+)/i);if(!t)return null;let n=t[1].toLowerCase();return new Set([`navigate`,`click`,`type`,`screenshot`,`snapshot`,`scroll`,`hover`,`select`,`drag`,`wait`,`back`,`forward`,`refresh`,`close`,`tab`,`press_key`,`wait_for`,`extract`,`fill_credential`]).has(n)?n:`unknown`}function Z(e,t){let n=e.toLowerCase();return n!==`bash`&&n!==`host_bash`?null:Dn(t)}function On(e){switch(e){case`navigate`:return`Opened a page`;case`click`:return`Clicked on the page`;case`type`:return`Typed on the page`;case`screenshot`:return`Took a screenshot`;case`snapshot`:return`Captured page snapshot`;case`scroll`:return`Scrolled the page`;case`hover`:return`Hovered on the page`;case`select`:return`Selected on the page`;case`drag`:return`Dragged on the page`;case`wait`:return`Waited for the page`;case`back`:return`Went back`;case`forward`:return`Went forward`;case`refresh`:return`Refreshed the page`;case`close`:return`Closed the tab`;case`tab`:return`Switched tabs`;case`press_key`:return`Pressed a key`;case`wait_for`:return`Waited for a condition`;case`extract`:return`Extracted page content`;case`fill_credential`:return`Filled a credential`;case`unknown`:return`Used the browser`}}function kn(e){switch(e){case`navigate`:return`Opening a page`;case`click`:return`Clicking on the page`;case`type`:return`Typing on the page`;case`screenshot`:return`Taking a screenshot`;case`snapshot`:return`Capturing page snapshot`;case`scroll`:return`Scrolling the page`;case`hover`:return`Hovering on the page`;case`select`:return`Selecting on the page`;case`drag`:return`Dragging on the page`;case`wait`:return`Waiting for the page`;case`back`:return`Going back`;case`forward`:return`Going forward`;case`refresh`:return`Refreshing the page`;case`close`:return`Closing the tab`;case`tab`:return`Switching tabs`;case`press_key`:return`Pressing a key`;case`wait_for`:return`Waiting for a condition`;case`extract`:return`Extracting page content`;case`fill_credential`:return`Filling a credential`;case`unknown`:return`Using the browser`}}function An(e){switch(e){case`navigate`:case`back`:case`forward`:case`tab`:return`compass`;case`click`:case`hover`:case`select`:case`drag`:case`scroll`:return`compass`;case`screenshot`:case`snapshot`:return`camera`;case`type`:case`press_key`:case`fill_credential`:return`compass`;case`wait`:case`wait_for`:case`refresh`:case`close`:return`compass`;case`extract`:return`compass`;case`unknown`:return`compass`}}function jn(e,t){let n=e.toLowerCase();if(n===`bash`||n===`host_bash`){let e=t.command??t.cmd;if(typeof e==`string`)return e.replace(/\s+/g,` `).trim()}if(n===`file_read`||n===`host_file_read`||n===`file_write`||n===`host_file_write`||n===`file_edit`||n===`host_file_edit`){let e=t.file_path??t.path??t.filePath;if(typeof e==`string`)return e}if(n===`grep`||n===`glob`){let e=t.pattern??t.query;if(typeof e==`string`)return e}if(n===`web_search`){let e=t.query??t.search;if(typeof e==`string`)return e}return``}function Mn(e,t=``){let n=e.toLowerCase(),r=t.replace(/\s+/g,` `).trim(),i=En(r),a=Z(e,r);if(a)return On(a);switch(n){case`bash`:case`host_bash`:return r?`Ran \`${X(r,30)}\``:`Ran a command`;case`file_read`:case`host_file_read`:return i?`Read ${i}`:`Read a file`;case`file_write`:case`host_file_write`:return i?`Wrote ${i}`:`Wrote a file`;case`file_edit`:case`host_file_edit`:return i?`Edited ${i}`:`Edited a file`;case`grep`:return r?`Searched for '${X(r,25)}'`:`Searched files`;case`glob`:return r?`Searched for ${X(r,25)}`:`Found files`;case`web_search`:return r?`Searched '${X(r,25)}'`:`Searched the web`;case`web_fetch`:return`Fetched a webpage`;default:return`Used ${e.replace(/_/g,` `)}`}}function Nn(e,t=``,n){let r=Z(e,t);if(r)return kn(r);if(n){let t=e.toLowerCase();if(t===`app_create`||t===`app_refresh`||t===`app_update`)return n}switch(e.toLowerCase()){case`bash`:case`host_bash`:return`Running a command`;case`file_read`:case`host_file_read`:return`Reading a file`;case`file_write`:case`host_file_write`:return`Writing a file`;case`file_edit`:case`host_file_edit`:return`Editing a file`;case`grep`:return`Searching files`;case`glob`:return`Finding files`;case`web_search`:return`Searching the web`;case`web_fetch`:return`Fetching a webpage`;case`app_create`:return`Building your app`;case`app_refresh`:case`app_update`:return`Refreshing your app`;default:return`Running ${e.replace(/_/g,` `)}`}}function Pn(e){return e.split(/[_-]+/).filter(e=>e.length>0).map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(` `)}function Fn(e,t=``){let n=Z(e,t);if(n)return An(n);switch(e.toLowerCase()){case`bash`:case`host_bash`:return`terminal`;case`file_read`:case`host_file_read`:return`file-text`;case`file_write`:case`host_file_write`:return`file-plus`;case`file_edit`:case`host_file_edit`:return`pencil`;case`grep`:case`glob`:case`web_search`:return`search`;case`web_fetch`:return`globe`;default:return`wrench`}}var In=80;function Q(e,...t){for(let n of t){let t=e[n];if(typeof t==`string`&&t.trim().length>0)return t}return``}function Ln(e){if(!e)return``;let t=e.replace(/\/+$/,``),n=t.lastIndexOf(`/`);return n===-1?t:t.slice(n+1)}function Rn(e){if(!e.startsWith(`mcp__`))return null;let t=e.slice(5),n=t.indexOf(`__`);if(n===-1)return null;let r=t.slice(0,n),i=t.slice(n+2);return!r||!i?null:{serverName:r,toolMethod:i}}function $(e,t){let n=t&&typeof t==`object`?t:{},r=e.toLowerCase(),i=Q(n,`activity`,`reason`),a=Rn(e);if(a)return{title:`Using ${a.serverName}`,info:a.toolMethod,activity:i,iconName:`plug`};switch(r){case`bash`:case`host_bash`:return{title:`Working`,info:Y(Q(n,`command`,`cmd`).replace(/\s+/g,` `).trim(),In),activity:i,iconName:`terminal`};case`str_replace_editor`:case`text_editor`:{let e=Q(n,`command`).toLowerCase(),t=Ln(Q(n,`path`,`file_path`,`filePath`));return e===`view`?{title:`Reading`,info:t,activity:i,iconName:`file`}:{title:`Editing`,info:t,activity:i,iconName:`pen`}}case`computer`:return{title:`Using computer`,info:Q(n,`action`),activity:i,iconName:`monitor`};case`skill_execute`:{let e=Q(n,`tool`);if(e){let t=n.input,r=$(e,t);return{...r,activity:i||r.activity}}return{title:`Using a skill`,info:Q(n,`skill`,`name`,`skillName`),activity:i,iconName:`sparkle`}}case`skill`:case`skill_invoke`:case`skill_load`:return{title:`Using a skill`,info:Q(n,`skill`,`name`,`skillName`),activity:i,iconName:`sparkle`};case`subagent_spawn`:return{title:`Spawning subagent`,info:Q(n,`label`,`objective`,`task`),activity:i,iconName:`user-plus`};default:return{title:e?`Running ${Pn(e)}`:`Running tool`,info:``,activity:i,iconName:`bolt`}}}function zn(e){return $(e.name,e.input)}var Bn=[{open:`<thinking>`,close:`</thinking>`},{open:`<think>`,close:`</think>`}];function Vn(e){return Bn.some(t=>e.includes(t.open))}function Hn(e){if(!Vn(e))return null;let t=[],n=e=>{e.trim()&&t.push({type:`text`,text:e})},r=e=>{let n=e.trim();n&&t.push({type:`thinking`,thinking:n})},i=0;for(;;){let a=-1,o;for(let t of Bn){let n=e.indexOf(t.open,i);n!==-1&&(a===-1||n<a)&&(a=n,o=t)}if(!o)break;n(e.slice(i,a));let s=a+o.open.length,c=e.indexOf(o.close,s);if(c===-1)return r(e.slice(s)),t;r(e.slice(s,c)),i=c+o.close.length}return n(e.slice(i)),t}function Un(e){return typeof e.id==`string`&&e.id.length>0}function Wn(e){return e.some(e=>e.type===`text`&&Vn(e.text))?e.flatMap(e=>{let t=e.type===`text`?Hn(e.text):null;return t?t.map(e=>e.type===`thinking`?{type:`thinking`,thinking:e.thinking}:{type:`text`,text:e.text}):[e]}):e}function Gn(e,t){let n=t?.splitInlineThinking?Wn(e):e,r=[],i=null,a=()=>(i||(i={type:`activity`,items:[]},r.push(i)),i);for(let e of n)if(e.type===`thinking`){let t=a(),n=t.items[t.items.length-1];n?.type===`thinking`?(n.thinking=n.thinking?`${n.thinking}\n${e.thinking}`:e.thinking,e.startedAt!=null&&(n.startedAt=n.startedAt==null?e.startedAt:Math.min(n.startedAt,e.startedAt)),e.completedAt!=null&&(n.completedAt=n.completedAt==null?e.completedAt:Math.max(n.completedAt,e.completedAt))):t.items.push({type:`thinking`,thinking:e.thinking,startedAt:e.startedAt,completedAt:e.completedAt})}else if(e.type===`tool_use`){if(!Un(e.toolCall))continue;a().items.push({type:`tool_use`,toolCall:e.toolCall})}else (e.type===`text`||e.type===`surface`)&&(i=null,r.push(e));return r}function Kn(e){let t=[],n=[];for(let r of e){if(r.type===`thinking`){r.thinking&&t.push({kind:`thinking`,text:r.thinking,startedAt:r.startedAt,completedAt:r.completedAt});continue}let e=r.toolCall;qn(e)||(n.push(e),t.push({kind:`toolCall`,toolCall:e}))}return{cardItems:t,toolCalls:n}}function qn(e){return!e.pendingConfirmation&&(e.name===`ui_show`||e.name===`ui_update`||e.name===`ui_dismiss`)}function Jn(e){if(e.name===`subagent_spawn`)return!0;if(e.name!==`skill_execute`)return!1;let t=e.input;return typeof t!=`object`||!t?!1:t.tool===`subagent_spawn`}function Yn(e){if(e.name===`run_workflow`)return!0;if(e.name!==`skill_execute`)return!1;let t=e.input;return typeof t!=`object`||!t?!1:t.tool===`run_workflow`}function Xn(e){if(e.name===`acp_spawn`)return!0;if(e.name!==`skill_execute`)return!1;let t=e.input;return typeof t!=`object`||!t?!1:t.tool===`acp_spawn`}function Zn(e){if(e.name!==`bash`&&e.name!==`host_bash`)return!1;let t=e.input;return typeof t!=`object`||!t?!1:t.background===!0}var Qn=new Set([`low`,`medium`,`high`]);function $n(e){let t=e?.toLowerCase();return t&&Qn.has(t)?t:`medium`}function er(e){switch(e?.toLowerCase()){case`low`:return{bg:`bg-[var(--system-positive-strong)]`,text:`text-white`,label:`Low`};case`medium`:return{bg:`bg-[var(--system-mid-strong)]`,text:`text-black`,label:`Medium`};case`high`:return{bg:`bg-[var(--system-negative-strong)]`,text:`text-white`,label:`High`};case`workspace`:return{bg:`bg-[var(--surface-lift)]`,text:`text-[var(--content-secondary)]`,border:`border border-[var(--border-element)]`,label:`Workspace`};default:return{bg:`bg-[var(--content-secondary)]`,text:`text-white`,label:e??`Unknown`}}}function tr(e){switch(e?.toLowerCase()){case`low`:return`Auto-approved at Conservative tolerance or higher`;case`medium`:return`Auto-approved at Relaxed tolerance or higher`;case`high`:return`Auto-approved only at Full Access tolerance`;default:return}}function nr(e){switch(e?.toLowerCase()){case`low`:return{bg:`bg-[var(--system-positive-weak)]`,text:`text-[var(--system-positive-strong)]`,label:`Low`};case`medium`:return{bg:`bg-[var(--system-mid-weak)]`,text:`text-[var(--system-mid-strong)]`,label:`Medium`};case`high`:return{bg:`bg-[var(--system-negative-weak)]`,text:`text-[var(--system-negative-strong)]`,label:`High`};case`workspace`:return{bg:`bg-[var(--surface-lift)]`,text:`text-[var(--content-secondary)]`,label:`Workspace`};default:return{bg:`bg-[var(--surface-lift)]`,text:`text-[var(--content-secondary)]`,label:e?e.charAt(0).toUpperCase()+e.slice(1):`Unknown`}}}var rr={unknown:2,low:0,medium:1,high:2},ir={none:-1,low:0,medium:1,high:2};function ar(e,t,n){return e?.toLowerCase()!==`auto`||!n?!0:(rr[(t??``).toLowerCase()]??-1)<=(ir[n.toLowerCase()]??-1)}function or(e){switch(e){case`trust_rule_allowed`:return`· Auto-approved · Trust rule matched`;case`sandbox_auto_approve`:return null;case`platform_auto_approve`:return`· Auto-approved · Platform session`;default:return null}}function sr(e,t){return e===`sandbox_auto_approve`?{displayLevel:`workspace`,inherentRisk:t}:{displayLevel:t??`unknown`}}export{tt as $,pn as A,I as B,wn as C,sn as D,an as E,Nt as F,N as G,P as H,jt as I,wt as J,Ct as K,Ft as L,cn as M,nn as N,on as O,Pt as P,j as Q,B as R,Tn as S,rn as T,F as U,At as V,Ot as W,pt as X,M as Y,st as Z,Nn as _,se as _t,tr as a,we as at,Pn as b,Kn as c,ye as ct,Zn as d,me as dt,$e as et,Yn as f,ge as ft,jn as g,ce as gt,$ as h,le as ht,nr as i,_ as it,fn as j,mn as k,Gn as l,be as lt,zn as m,pe as mt,or as n,Ze as nt,$n as o,Te as ot,Jn as p,he as pt,Tt as q,er as r,k as rt,ar as s,Se as st,sr as t,Qe as tt,Xn as u,ve as ut,Fn as v,oe as vt,J as w,Y as x,Mn as y,Mt as z};
|