@vellumai/web 0.12.7 → 0.12.8
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/{a2a-invite-CYkZ2bwB.js → a2a-invite-C4885wc_.js} +1 -1
- package/dist/assets/{about-page-CDf8_c83.js → about-page-OhJ1Y0_b.js} +1 -1
- package/dist/assets/{account-page-DYgu7ene.js → account-page-Bd7a2i5_.js} +1 -1
- package/dist/assets/{account-shell-Cxi1v479.js → account-shell-RM4hokh5.js} +1 -1
- package/dist/assets/{acp-run-detail-panel--S5Mrgwf.js → acp-run-detail-panel-CCLk2KCU.js} +1 -1
- package/dist/assets/{activation-list-route-fUUXXrqq.js → activation-list-route-DzBmo7MF.js} +1 -1
- package/dist/assets/{activity-redirect-page-Dday27zi.js → activity-redirect-page-aalRz3ru.js} +1 -1
- package/dist/assets/{activity-steps-panel-BnCTZLXH.js → activity-steps-panel-MY7LyILM.js} +1 -1
- package/dist/assets/add-credits-modal-C65Z6nbb.js +1 -0
- package/dist/assets/{add-credits-modal-BPRQXrJL.js → add-credits-modal-DYXqJVrA.js} +1 -1
- package/dist/assets/{ai-page-BmPw_Cbb.js → ai-page-Bv8MHKwy.js} +1 -1
- package/dist/assets/{all-chats-page-route-XyYPy--V.js → all-chats-page-route-BC4cJbn9.js} +1 -1
- package/dist/assets/{android-billing-handoff-CvgyuFs9.js → android-billing-handoff-DkztgMMX.js} +1 -1
- package/dist/assets/{animated-stat-square-gKVZj83m.js → animated-stat-square-DfspueEE.js} +1 -1
- package/dist/assets/{api-key-screen-B3eNGHTQ.js → api-key-screen-DMYrX3xq.js} +1 -1
- package/dist/assets/{app-KRIEMzuO.js → app-BEoekemj.js} +21 -19
- package/dist/assets/{app-info-BS5SWiPy.js → app-info-JELjTeSr.js} +1 -1
- package/dist/assets/{archive-redirect-page-B_JVRF8z.js → archive-redirect-page-CDu9_cSE.js} +1 -1
- package/dist/assets/{assistant-handle-modal-cqAXFvU4.js → assistant-handle-modal-B9aYt_fz.js} +1 -1
- package/dist/assets/{assistant-inbox-page-route-BmMCSNYC.js → assistant-inbox-page-route-BlKCkLjN.js} +1 -1
- package/dist/assets/{assistant-status-panel-5KKU97Nr.js → assistant-status-panel-Ib811iyR.js} +1 -1
- package/dist/assets/auth-store-BNRELUI-.js +1 -0
- package/dist/assets/{auth-welcome-screen-CK9ayr5r.js → auth-welcome-screen-CnpHRdVh.js} +1 -1
- package/dist/assets/avatar-bundled-components-CA2b3Qbn.js +1 -0
- package/dist/assets/{avatar-random-B0PlMwfP.js → avatar-random-Bqs0WRXW.js} +2 -2
- package/dist/assets/{await-org-header-settled-DCrUbt__.js → await-org-header-settled-Bka_Fh2i.js} +1 -1
- package/dist/assets/{background-task-detail-panel-ByZEhdsg.js → background-task-detail-panel-pwmuvBdb.js} +1 -1
- package/dist/assets/{billing-page-CYKuyCF5.js → billing-page-CQDe4wC9.js} +3 -3
- package/dist/assets/{billing-redirect-page-t6TNZq6q.js → billing-redirect-page-CgxuQ6OG.js} +1 -1
- package/dist/assets/{bookmarks-page-DkomjdJQ.js → bookmarks-page-BVSEx2HM.js} +1 -1
- package/dist/assets/{bundle-confirm-page-BRqor1bF.js → bundle-confirm-page-DxLUosoE.js} +1 -1
- package/dist/assets/{channel-transcript-panel-BZPmdLEj.js → channel-transcript-panel-AnyjZw-p.js} +1 -1
- package/dist/assets/{channels-page-route-CtttpYll.js → channels-page-route-CoXHj9DC.js} +1 -1
- package/dist/assets/{chat-info-panel-DQumRkcF.js → chat-info-panel-oNSMH-Rg.js} +1 -1
- package/dist/assets/{checkout-continuation-DDjhky4Y.js → checkout-continuation-ZsRm--tW.js} +1 -1
- package/dist/assets/{checkout-page-CDYYh4ze.js → checkout-page-Cbc1Yxhk.js} +1 -1
- package/dist/assets/checkout-return-target-DMexYntq.js +1 -0
- package/dist/assets/{command-palette-BUFKVA4Z.js → command-palette-D98tgb3c.js} +1 -1
- package/dist/assets/{command-palette-window-page-C0dY_FbH.js → command-palette-window-page-BwYCB4uz.js} +1 -1
- package/dist/assets/command-palette-xFt9p-Zp.js +1 -0
- package/dist/assets/{community-page-DDVVXFKB.js → community-page-C_t6hJx9.js} +1 -1
- package/dist/assets/{companion-accent-obJ7TDkU.js → companion-accent-DHN8mSGN.js} +1 -1
- package/dist/assets/{companion-dock-zones-page-CUZsYl_W.js → companion-dock-zones-page-yp3BLs-9.js} +1 -1
- package/dist/assets/{companion-layout-Cl8T5Bfs.js → companion-layout-DUIauyGx.js} +1 -1
- package/dist/assets/{companion-popover-Duq3If7x.js → companion-popover-CEltebX7.js} +1 -1
- package/dist/assets/{companion-popover-page-8OaaN-qP.js → companion-popover-page-NrLfgW85.js} +1 -1
- package/dist/assets/{companion-surface-DzxGavvE.js → companion-surface-CEpWVTaQ.js} +1 -1
- package/dist/assets/{companion-surface-page-BI1DVG0L.js → companion-surface-page-Dfs9lnVq.js} +1 -1
- package/dist/assets/{companion-tour-entry-D35urSvp.js → companion-tour-entry-CEdPrBsl.js} +1 -1
- package/dist/assets/{companion-watch-frame-page-chC7gmAI.js → companion-watch-frame-page-XbdyXdlU.js} +1 -1
- package/dist/assets/{connect-page-Cx7ACmXt.js → connect-page-DvwqAL21.js} +1 -1
- package/dist/assets/{consent-controls-B8KluMR-.js → consent-controls-CSns_4iB.js} +1 -1
- package/dist/assets/{contacts-gateway-DJQtU5it.js → contacts-gateway-DL44TLR9.js} +1 -1
- package/dist/assets/{contacts-page-route-g0cBfSRU.js → contacts-page-route-BIASFsPk.js} +1 -1
- package/dist/assets/{copy-button-Bwu12tAq.js → copy-button-benjZQNN.js} +1 -1
- package/dist/assets/{credential-entry-page-CrMmjA4m.js → credential-entry-page-fH4FNFwY.js} +1 -1
- package/dist/assets/{credentials-page-DXegpKuT.js → credentials-page-BgsUXMw4.js} +1 -1
- package/dist/assets/{csv-preview-BUNDraKQ.js → csv-preview-CBVZAL8V.js} +1 -1
- package/dist/assets/{danger-zone-redirect-page-Dju7UyCP.js → danger-zone-redirect-page-rAqyukS8.js} +1 -1
- package/dist/assets/debug-page-s3VnB3Jn.js +4 -0
- package/dist/assets/{deploy-dialogs-CKv9kQor.js → deploy-dialogs-BwKeOiNO.js} +1 -1
- package/dist/assets/deploy-dialogs-CKFVL9lA.js +1 -0
- package/dist/assets/{desktop-preview-content-BwMNHlWb.js → desktop-preview-content-DyhOQZfU.js} +2 -2
- package/dist/assets/{desktop-status-CCzewHXe.js → desktop-status-rhE91WHU.js} +1 -1
- package/dist/assets/{desktop-viewer-DBH1IT5s.js → desktop-viewer-DnRXsZHE.js} +1 -1
- package/dist/assets/{detail-card-C53pHjsM.js → detail-card-DdL-TwEw.js} +1 -1
- package/dist/assets/{detail-panel-stop-button-t_VDZYtt.js → detail-panel-stop-button-9gdxgBZq.js} +1 -1
- package/dist/assets/{detail-primitives-BHVQRcGw.js → detail-primitives-DbHxZutJ.js} +1 -1
- package/dist/assets/{developer-page-CKcDBScK.js → developer-page-CLDXmpgw.js} +1 -1
- package/dist/assets/{devices-redirect-page-BEyGhbmn.js → devices-redirect-page-DTriAmul.js} +1 -1
- package/dist/assets/{dictation-overlay-page-DpanSK5-.js → dictation-overlay-page-8oynsdBm.js} +1 -1
- package/dist/assets/document-load-Dd9T9sVB.js +1 -0
- package/dist/assets/{document-load-B5HpKq-W.js → document-load-DdRg4kwv.js} +1 -1
- package/dist/assets/{document-viewer-page-4Z_VnjKZ.js → document-viewer-page-DwqleCG5.js} +1 -1
- package/dist/assets/{emails-page-DyrcXFet.js → emails-page-d48Qo5TY.js} +1 -1
- package/dist/assets/esm-BMVS8Ywz.js +2 -0
- package/dist/assets/esm-Bm61i-L4.js +1 -0
- package/dist/assets/esm-CUO0AHtA.js +2 -0
- package/dist/assets/esm-Ci2CqtrR.js +2 -0
- package/dist/assets/esm-DM-kxKqE.js +1 -0
- package/dist/assets/esm-PJP6gQUq.js +2 -0
- package/dist/assets/{esm-DFoZ6rpj.js → esm-YJgArrZn.js} +1 -1
- package/dist/assets/esm-ZDwTeYcs.js +2 -0
- package/dist/assets/{esm-COgrn4oo.js → esm-oFf4cNn1.js} +2 -2
- package/dist/assets/{esm-DPwp_tyY.js → esm-xHo3DTmi.js} +1 -1
- package/dist/assets/{file-diff-view-DqA1_0h3.js → file-diff-view-A52sCKKz.js} +1 -1
- package/dist/assets/{file-view-mode-DPofWJnz.js → file-view-mode-DqXCmgGD.js} +1 -1
- package/dist/assets/general-page-Y55ICpxV.js +2 -0
- package/dist/assets/{hatching-screen-C5fid3Mi.js → hatching-screen-BCrEhJki.js} +1 -1
- package/dist/assets/{hosting-screen-BTxmBl_3.js → hosting-screen-DrbGcUwu.js} +1 -1
- package/dist/assets/{identity-page-route-DSyT39Yq.js → identity-page-route-PW0b8HfB.js} +1 -1
- package/dist/assets/{inspect-page-WDA56TDM.js → inspect-page-DsB1BUwJ.js} +3 -3
- package/dist/assets/{integrations-page-7jff5YRS.js → integrations-page-phceinc7.js} +1 -1
- package/dist/assets/{intelligence-layout-DOOxr8TM.js → intelligence-layout-ClXPJOlz.js} +1 -1
- package/dist/assets/intelligence-layout-slots-store-jzhqxk-F.js +1 -0
- package/dist/assets/{keyboard-shortcuts-redirect-page-0f4iR9cK.js → keyboard-shortcuts-redirect-page-CZG9PbfD.js} +1 -1
- package/dist/assets/{latest-assistant-text-C5TlzsjF.js → latest-assistant-text-CfRyVmjf.js} +1 -1
- package/dist/assets/{library-detail-page-CXu1dzI8.js → library-detail-page-DB03TRkW.js} +1 -1
- package/dist/assets/{library-page-BdtUHlv5.js → library-page-SCpSNw8r.js} +1 -1
- package/dist/assets/local-mode-C-TKP5UT.js +1 -0
- package/dist/assets/{login-page-BYz-IJwG.js → login-page-DlzYKg__.js} +1 -1
- package/dist/assets/{logout-page-CA2Gb3fM.js → logout-page-DNJegpBL.js} +1 -1
- package/dist/assets/{logs-layout-BgviygkY.js → logs-layout-BYnI6Won.js} +1 -1
- package/dist/assets/managed-export-B8hZl8fK.js +1 -0
- package/dist/assets/{markdown-preview-CBXcCZg7.js → markdown-preview-BOAf9rHZ.js} +1 -1
- package/dist/assets/{media-preview-CTjI28Y4.js → media-preview-CiWddeik.js} +1 -1
- package/dist/assets/{memory-page-route-Od3Muhow.js → memory-page-route-DAe7cXOM.js} +1 -1
- package/dist/assets/{memory-router-playground-page-D8do5kDw.js → memory-router-playground-page-B6RLB6SJ.js} +1 -1
- package/dist/assets/{message-files-panel-CnyA6dJL.js → message-files-panel-D8Cvtzm7.js} +1 -1
- package/dist/assets/mutation-error-C2MukXLE.js +1 -0
- package/dist/assets/native-attachment-pickers-DMi3o2P3.js +1 -0
- package/dist/assets/native-file-Dcnehsuk.js +1 -0
- package/dist/assets/{notifications-page-CICwZV_j.js → notifications-page-B6BaoRe4.js} +1 -1
- package/dist/assets/{oauth-complete-page-HYAqM-h3.js → oauth-complete-page-C8RguTIe.js} +1 -1
- package/dist/assets/{oauth-popup-complete-page-0Nnhyx6m.js → oauth-popup-complete-page-9mkrWQG1.js} +1 -1
- package/dist/assets/paired-platform-identity-RQOjYmiL.js +1 -0
- package/dist/assets/{pairing-page-CbPjyGMx.js → pairing-page-BoIDiN07.js} +1 -1
- package/dist/assets/password-reset-page-CMKwr9QD.js +1 -0
- package/dist/assets/{pdf-file-preview-CfJUarVV.js → pdf-file-preview-BdmWkRby.js} +1 -1
- package/dist/assets/{peeking-eyes-C3X1d6Jj.js → peeking-eyes-GhtIN21V.js} +1 -1
- package/dist/assets/{permission-guide-page-DgNjuyxd.js → permission-guide-page-D4XS94Lj.js} +1 -1
- package/dist/assets/{permission-setup-C4VdQwwz.js → permission-setup-BKUZnWJQ.js} +1 -1
- package/dist/assets/{personality-page-BEzNdxON.js → personality-page-B7hhb6bJ.js} +1 -1
- package/dist/assets/{personality-page-ILl8FXFu.js → personality-page-DbSLfV_N.js} +1 -1
- package/dist/assets/{personality-sliders-PxNPuK2H.js → personality-sliders-DahfpXIK.js} +1 -1
- package/dist/assets/{plans-page-CI3FmLNs.js → plans-page-Q2u7IYdx.js} +1 -1
- package/dist/assets/{platform-loopback-page-DM2A9sb6.js → platform-loopback-page-Gsgl1-C1.js} +1 -1
- package/dist/assets/{plugin-detail-page-Cj6u283V.js → plugin-detail-page-CwTxMfPK.js} +1 -1
- package/dist/assets/{plugins-page-D7_NjR08.js → plugins-page-BeceTGDE.js} +1 -1
- package/dist/assets/plugins-surface-DRWOFcBb.js +1 -0
- package/dist/assets/{preview-error-B2MuMDf7.js → preview-error-Bsw56ZjR.js} +1 -1
- package/dist/assets/privacy-page-C0L5u1-E.js +1 -0
- package/dist/assets/{privacy-screen-BnqXrWj-.js → privacy-screen-q5pYNYHV.js} +1 -1
- package/dist/assets/{profile-card-BJ45rF7O.js → profile-card-ORX8JyeJ.js} +1 -1
- package/dist/assets/{provider-callback-page-CNNhqRdO.js → provider-callback-page-Bh4aARKp.js} +1 -1
- package/dist/assets/{provider-key-CqD-hAxF.js → provider-key-DhHj1MSM.js} +1 -1
- package/dist/assets/{provider-signup-page-BEBgiI0J.js → provider-signup-page-BZcyuRq8.js} +1 -1
- package/dist/assets/{quick-input-page-ZC5y6AKn.js → quick-input-page-B0vdeXBp.js} +1 -1
- package/dist/assets/referral-modal-0tLKuYzN.js +1 -0
- package/dist/assets/{referral-modal-B5zxNJBt.js → referral-modal-BgoEpFmG.js} +1 -1
- package/dist/assets/{rehype-katex-DWUGzNKD.js → rehype-katex-CwfN9TOG.js} +1 -1
- package/dist/assets/{research-mock-page-B3giO94y.js → research-mock-page-oXOlmOna.js} +1 -1
- package/dist/assets/{research-onboarding-route-Dim74aoQ.js → research-onboarding-route-q3lZEjxC.js} +1 -1
- package/dist/assets/{review-terms-screen-CIYiUq4M.js → review-terms-screen-LCDdoz6t.js} +1 -1
- package/dist/assets/routes-1ENCqxlq.js +1 -0
- package/dist/assets/{schedules-J3G9N-px.js → schedules-RwCneOYe.js} +1 -1
- package/dist/assets/{schedules-page-Cnl8mEzJ.js → schedules-page-D2HxxCQz.js} +1 -1
- package/dist/assets/{security-redirect-page-BEtWQiAG.js → security-redirect-page-BdOwkxkl.js} +1 -1
- package/dist/assets/{select-assistant-screen-BHvcUbOb.js → select-assistant-screen-B1NbmvWZ.js} +1 -1
- package/dist/assets/{self-hosted-servers-Bn0mvFIm.js → self-hosted-servers-Dn5AaPCS.js} +1 -1
- package/dist/assets/{service-form-controls-DaeZPEiA.js → service-form-controls-Bn1R361b.js} +1 -1
- package/dist/assets/{setting-row-DPTW9jvI.js → setting-row-CaxliRhN.js} +1 -1
- package/dist/assets/{settings-Bh67VJVe.js → settings-CPmDyMN-.js} +4 -2
- package/dist/assets/{settings-k5uhZfPH.js → settings-DFXVH_HE.js} +4 -2
- package/dist/assets/{settings-ClEDqshB.js → settings-DydJJiwS.js} +4 -2
- package/dist/assets/settings-divider-DipomhZT.js +1 -0
- package/dist/assets/{settings-layout-DEmxtBd4.js → settings-layout-C7CQeAi8.js} +1 -1
- package/dist/assets/{settings-DDU54LDK.js → settings-w04_tItH.js} +4 -2
- package/dist/assets/share-feedback-modal-CrOSSoWU.js +1 -0
- package/dist/assets/{share-feedback-modal-Du_F68zS.js → share-feedback-modal-W3JhVF1c.js} +2 -2
- package/dist/assets/{sidebar-tree-D43H3cb8.js → sidebar-tree-CtDTchuN.js} +1 -1
- package/dist/assets/{signup-page-BiV-Kq2O.js → signup-page-BgVg1-Cz.js} +1 -1
- package/dist/assets/{signup-shell-BbFj5txC.js → signup-shell-rqZZKQs9.js} +1 -1
- package/dist/assets/{skill-detail-page-CNTwONYG.js → skill-detail-page-DVceqbB8.js} +1 -1
- package/dist/assets/{skill-detail-panel-Duoeqpk6.js → skill-detail-panel-D0MQeUNt.js} +1 -1
- package/dist/assets/{skill-removal-dialog-DcbMCW1X.js → skill-removal-dialog-CKyIY15v.js} +1 -1
- package/dist/assets/{skills-page-DeEyocII.js → skills-page-BNFEhwCh.js} +1 -1
- package/dist/assets/{sounds-page-CYqyUiLI.js → sounds-page-D-1xB2X0.js} +1 -1
- package/dist/assets/{start-screen-C4ocEh6e.js → start-screen-BfdqRCiG.js} +1 -1
- package/dist/assets/{step-detail-header-C0_Bji0I.js → step-detail-header-LQsSbC2J.js} +1 -1
- package/dist/assets/{stt-language-picker-modal-Dw_dzvcQ.js → stt-language-picker-modal-CU8T9AvB.js} +1 -1
- package/dist/assets/{subagent-detail-panel-DqFckc_d.js → subagent-detail-panel-CBnRBOPg.js} +1 -1
- package/dist/assets/{superpowers-page-kjcwHwaR.js → superpowers-page-DabWyYFo.js} +1 -1
- package/dist/assets/{system-events-page-C0Nrrv_n.js → system-events-page-BO75f0oo.js} +1 -1
- package/dist/assets/{system-events-redirect-page-DR4dTzmZ.js → system-events-redirect-page-DTc8VcbG.js} +1 -1
- package/dist/assets/{tabular-grid-9asraGxC.js → tabular-grid-TnP0G_0N.js} +1 -1
- package/dist/assets/teleport-gateway-client-BY9KVOT2.js +1 -0
- package/dist/assets/{text-preview-C6jKP_-h.js → text-preview-ClaaOGkz.js} +1 -1
- package/dist/assets/{theme-stage-page-BCd5ZTdW.js → theme-stage-page-CDguIcG0.js} +1 -1
- package/dist/assets/{tiptap-document-editor-BCrbYYDo.js → tiptap-document-editor-C6mVckqJ.js} +1 -1
- package/dist/assets/{tool-detail-panel-nu-dK5jf.js → tool-detail-panel-CQ-R1S2x.js} +1 -1
- package/dist/assets/tool-detail-panel-D2UjNK8Q.js +1 -0
- package/dist/assets/{trait-cycle-row-CPRGog-6.js → trait-cycle-row-Dw9MgLO3.js} +1 -1
- package/dist/assets/{upgrade-cancel-page-BiU2HQZG.js → upgrade-cancel-page-BMNn9Xs4.js} +1 -1
- package/dist/assets/{upgrade-success-page-BCvxSNPT.js → upgrade-success-page-6A6LKBWV.js} +1 -1
- package/dist/assets/{usage-redirect-page-A2FxznAL.js → usage-redirect-page-DuL6faM2.js} +1 -1
- package/dist/assets/{use-app-delete-Bd9ibG9z.js → use-app-delete-CzP_P0YE.js} +1 -1
- package/dist/assets/{use-assistant-identity-details-BPVOfzxy.js → use-assistant-identity-details-C3ihvjLl.js} +1 -1
- package/dist/assets/{use-channel-trust-floors-BkkxL6wd.js → use-channel-trust-floors-ENV3m3Vx.js} +1 -1
- package/dist/assets/{use-checkout-dismiss-refresh-DYmiO0wT.js → use-checkout-dismiss-refresh-Db6rZnu3.js} +1 -1
- package/dist/assets/{use-edge-swipe-back-B2Kt4500.js → use-edge-swipe-back-zSNP4R0a.js} +1 -1
- package/dist/assets/{use-hotkey-recorder-Dngc9P3v.js → use-hotkey-recorder-DZfuD-Wf.js} +1 -1
- package/dist/assets/{use-invite-link-dialog-Dqkj_T4s.js → use-invite-link-dialog-D8vtY1q5.js} +1 -1
- package/dist/assets/{use-plugins-list-DJlgCfb-.js → use-plugins-list-Bfr06IMK.js} +1 -1
- package/dist/assets/{use-return-to-short-circuit-CrgMpIk2.js → use-return-to-short-circuit-C0-TwAO7.js} +1 -1
- package/dist/assets/{use-side-list-room-CttXRA29.js → use-side-list-room-CDaRUxpt.js} +1 -1
- package/dist/assets/{use-skill-actions-BhUkfXmL.js → use-skill-actions-BvJl4cE_.js} +1 -1
- package/dist/assets/{use-skill-detail-files-JWSwpirW.js → use-skill-detail-files-upPaF1Ti.js} +1 -1
- package/dist/assets/use-supports-credentials-settings-BmKvWH5p.js +1 -0
- package/dist/assets/{vendor-DLH51Vjf.js → vendor-cVd2QlFV.js} +2 -2
- package/dist/assets/{voice-page-CN-XVbya.js → voice-page-CyiYN5gw.js} +1 -1
- package/dist/assets/{wake-detail-panel-BN6Np2AU.js → wake-detail-panel-Ca8kOmoN.js} +1 -1
- package/dist/assets/{weather-forecast-display-Dg7Tug8o.js → weather-forecast-display-C5WJSVZN.js} +1 -1
- package/dist/assets/{web-C2Y5uOI1.js → web-4gtEtmAK.js} +1 -1
- package/dist/assets/{web-BmoVVmPZ.js → web-B2la00zR.js} +1 -1
- package/dist/assets/{web-D0qh5Vlp.js → web-BD6n-X3I.js} +1 -1
- package/dist/assets/{web-BlKAJber.js → web-BDmJP5H5.js} +1 -1
- package/dist/assets/{web-D5UHHnMG.js → web-Bb3-M0eN.js} +1 -1
- package/dist/assets/{web-Xy5dhNHF.js → web-Co3fdUhk.js} +1 -1
- package/dist/assets/{web-CAi9YePi.js → web-DUEEDTea.js} +1 -1
- package/dist/assets/{web-vcW3se1t.js → web-FCPcWxlK.js} +1 -1
- package/dist/assets/{web-DZvE04fg.js → web-p3qShnRq.js} +1 -1
- package/dist/assets/welcome-screen-BoF2bJeJ.js +1 -0
- package/dist/assets/{workflow-detail-panel-Bo3bUe-w.js → workflow-detail-panel-BWjagS_I.js} +1 -1
- package/dist/assets/{workspace-page-yTSdnWq3.js → workspace-page-BwYluW9Z.js} +1 -1
- package/dist/assets/{xlsx-preview-C7vk2tgm.js → xlsx-preview-D7-VqTY7.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/add-credits-modal-htqAQMX6.js +0 -1
- package/dist/assets/auth-store-CUfwxB8-.js +0 -1
- package/dist/assets/avatar-bundled-components-BQa_U1xg.js +0 -1
- package/dist/assets/checkout-return-target-B6Qnd5vl.js +0 -1
- package/dist/assets/command-palette-CYJg3gK4.js +0 -1
- package/dist/assets/debug-page-Cu82bP9V.js +0 -4
- package/dist/assets/deploy-dialogs-B1_w7Ez-.js +0 -1
- package/dist/assets/document-load-DHdbQvKt.js +0 -1
- package/dist/assets/esm-5n5jSt3e.js +0 -2
- package/dist/assets/esm-B5HvNA2f.js +0 -1
- package/dist/assets/esm-BVAuvmyr.js +0 -2
- package/dist/assets/esm-CIgMNIdz.js +0 -1
- package/dist/assets/esm-CvOYazPQ.js +0 -2
- package/dist/assets/esm-DetZupO7.js +0 -2
- package/dist/assets/esm-DpDUzGbk.js +0 -2
- package/dist/assets/general-page-B5G4H9NJ.js +0 -2
- package/dist/assets/intelligence-layout-slots-store-BvTIV21o.js +0 -1
- package/dist/assets/local-mode-C-1-fXwg.js +0 -1
- package/dist/assets/mutation-error--JEZBa3Q.js +0 -1
- package/dist/assets/native-attachment-pickers-BAxJDXTk.js +0 -1
- package/dist/assets/native-file-BlJDG-CS.js +0 -1
- package/dist/assets/paired-platform-identity-BN7Zkoo1.js +0 -1
- package/dist/assets/password-reset-page-j1R5YVAm.js +0 -1
- package/dist/assets/plugins-surface-ClVSBf-s.js +0 -1
- package/dist/assets/privacy-page-B2g1Pqqs.js +0 -1
- package/dist/assets/referral-modal-BUgtMC2a.js +0 -1
- package/dist/assets/routes-zhZ8T_Wu.js +0 -1
- package/dist/assets/share-feedback-modal-C2fAj8NH.js +0 -1
- package/dist/assets/teleport-gateway-client-B8e53i-5.js +0 -1
- package/dist/assets/tool-detail-panel-BM_9qtZ-.js +0 -1
- package/dist/assets/use-supports-credentials-settings-fg3eXgQy.js +0 -1
- package/dist/assets/welcome-screen-B1WHzW0q.js +0 -1
- /package/dist/assets/{account-BkxBMG9Z.js → account-BlV1qOTL.js} +0 -0
- /package/dist/assets/{account-OIF2BHH7.js → account-Yhb7EPiE.js} +0 -0
- /package/dist/assets/{account-D5JdUO7K.js → account-iXFebGNX.js} +0 -0
- /package/dist/assets/{account-DYG79724.js → account-zbO2wvfB.js} +0 -0
- /package/dist/assets/{activation-Dd7eAIHs.js → activation-BBxBYSHn.js} +0 -0
- /package/dist/assets/{activation-tasks-rViOqW7C.js → activation-BpktogSQ.js} +0 -0
- /package/dist/assets/{activation-C91KPzrh.js → activation-CflM_LQ5.js} +0 -0
- /package/dist/assets/{activation-ReimSfhn.js → activation-Daef_l1I.js} +0 -0
- /package/dist/assets/{activation-tasks-wtMwJ0EV.js → activation-tasks-CV_7HKqY.js} +0 -0
- /package/dist/assets/{activation-yoBQ36AY.js → activation-tasks-CumTmEGs.js} +0 -0
- /package/dist/assets/{activation-tasks-efxGWsFw.js → activation-tasks-ayYeMiiM.js} +0 -0
- /package/dist/assets/{activation-tasks-D4dorV2v.js → activation-tasks-cUwRl0aM.js} +0 -0
- /package/dist/assets/{assistant-inbox-CAvCHzi9.js → assistant-inbox-BTOw7wfJ.js} +0 -0
- /package/dist/assets/{assistant-inbox-qWeVmA1L.js → assistant-inbox-CrSow2BT.js} +0 -0
- /package/dist/assets/{assistant-inbox-DslyrhIn.js → assistant-inbox-DFWc70zr.js} +0 -0
- /package/dist/assets/{assistant-inbox-CQdSXLLi.js → assistant-inbox-Yf62pQhK.js} +0 -0
- /package/dist/assets/{build.umd-B0ATW5UM.js → build.umd-DYhQfml1.js} +0 -0
- /package/dist/assets/{channels-Cz7YAOIH.js → channels-CgD67LT0.js} +0 -0
- /package/dist/assets/{channels-BMnoL5SH.js → channels-DeTGbiPP.js} +0 -0
- /package/dist/assets/{channels-vNXfvsPT.js → channels-DmpyD-3T.js} +0 -0
- /package/dist/assets/{channels-CsbKXJZc.js → channels-DuQeNaoa.js} +0 -0
- /package/dist/assets/{chat-DSN9cMJf.js → chat--ZmD-zey.js} +0 -0
- /package/dist/assets/{chat-bnp2gG3L.js → chat-Ck0pUgkI.js} +0 -0
- /package/dist/assets/{chat-BgW0N2Gb.js → chat-D6epoOzw.js} +0 -0
- /package/dist/assets/{chat-BE3uio8d.js → chat-D7C62t6i.js} +0 -0
- /package/dist/assets/{common-LOT1T5DR.js → common-BE18Mx30.js} +0 -0
- /package/dist/assets/{common-IoqtSg0p.js → common-Csoou9wq.js} +0 -0
- /package/dist/assets/{common-kmi6H4cg.js → common-Da7fmzzI.js} +0 -0
- /package/dist/assets/{common-BdQfnACd.js → common-Du9wm05t.js} +0 -0
- /package/dist/assets/{contacts-BTmOfEVL.js → contacts-Caqw0Sif.js} +0 -0
- /package/dist/assets/{contacts-Cxz-DyYF.js → contacts-Co__1ikw.js} +0 -0
- /package/dist/assets/{contacts-DgC-8PHB.js → contacts-DD_eTIfs.js} +0 -0
- /package/dist/assets/{contacts-mijLgegD.js → contacts-DK2Vo7jK.js} +0 -0
- /package/dist/assets/{credential-requests-CmFaXPwz.js → credential-requests-BGJaT5P8.js} +0 -0
- /package/dist/assets/{credential-requests-gl4lfjL4.js → credential-requests-CLJKvy8_.js} +0 -0
- /package/dist/assets/{credential-requests-D3J3i5oa.js → credential-requests-CY3rhP-v.js} +0 -0
- /package/dist/assets/{credential-requests-h908NRpv.js → credential-requests-K_K5QYWo.js} +0 -0
- /package/dist/assets/{definitions-BUCExH-9.js → definitions-BlPXXV5t.js} +0 -0
- /package/dist/assets/{definitions-DpZNNWA7.js → definitions-LeNf6LcI.js} +0 -0
- /package/dist/assets/{home-D4Knhe9B.js → home-Ciwnqb-0.js} +0 -0
- /package/dist/assets/{home-BI-fzzA0.js → home-D9CyYzwt.js} +0 -0
- /package/dist/assets/{home-BZGFmZ0D.js → home-DRimDXb8.js} +0 -0
- /package/dist/assets/{home-CM9kRnjx.js → home-FBlk-Kn_.js} +0 -0
- /package/dist/assets/{intelligence-DFW_P1Fv.js → intelligence-CxgptCMO.js} +0 -0
- /package/dist/assets/{intelligence-DXMdwG0t.js → intelligence-DNvhgTjL.js} +0 -0
- /package/dist/assets/{intelligence-B6UWzaf0.js → intelligence-leUjdPLY.js} +0 -0
- /package/dist/assets/{intelligence-DaVJutXG.js → intelligence-xPDdEiiN.js} +0 -0
- /package/dist/assets/{library-Dv9w5D8Z.js → library-DyYHQ0GO.js} +0 -0
- /package/dist/assets/{library-CFGvGWZt.js → library-EaBsKALT.js} +0 -0
- /package/dist/assets/{library-CmSFUt9r.js → library-Hu58bAic.js} +0 -0
- /package/dist/assets/{library-D26ezl8B.js → library-JzJCLakz.js} +0 -0
- /package/dist/assets/{logs-BJTGRcSn.js → logs-Bz1qUaJ9.js} +0 -0
- /package/dist/assets/{logs-BpX8Zuzb.js → logs-CZofq5k0.js} +0 -0
- /package/dist/assets/{logs-5jFWrQRx.js → logs-DWYxin7R.js} +0 -0
- /package/dist/assets/{logs-BPrpYBp7.js → logs-g4hcj_Po.js} +0 -0
- /package/dist/assets/{onboarding-B9_JitSg.js → onboarding-B8Kqi3lF.js} +0 -0
- /package/dist/assets/{onboarding-cBGAfB74.js → onboarding-BmTUYcow.js} +0 -0
- /package/dist/assets/{onboarding-BrS1fcVE.js → onboarding-Cg2xtY6u.js} +0 -0
- /package/dist/assets/{onboarding-Cx2yoeE5.js → onboarding-CudNVueP.js} +0 -0
- /package/dist/assets/{pdf-_tTrkaWt.js → pdf-D787RoTm.js} +0 -0
- /package/dist/assets/{remote-web-DkzrBzGi.js → remote-web-B48hBzZQ.js} +0 -0
- /package/dist/assets/{remote-web-42kFkA33.js → remote-web-BWB9gusD.js} +0 -0
- /package/dist/assets/{remote-web-DFX945w2.js → remote-web-Dir5X2Uc.js} +0 -0
- /package/dist/assets/{remote-web-CFPdQIeJ.js → remote-web-DoH8uPma.js} +0 -0
- /package/dist/assets/{schedules-CGU7CKaM.js → schedules-BWTSjt7H.js} +0 -0
- /package/dist/assets/{schedules-JnprnWDo.js → schedules-CWPFs_Xm.js} +0 -0
- /package/dist/assets/{schedules-J687h0Fh.js → schedules-DrYrmkfN.js} +0 -0
- /package/dist/assets/{schedules-Bk7XGnqS.js → schedules-Oj3x1jCN.js} +0 -0
- /package/dist/assets/{terminal-Cxm0NKaj.js → terminal-0PGnTYRE.js} +0 -0
- /package/dist/assets/{terminal-BV6xg9ZA.js → terminal-BxOTNQdO.js} +0 -0
- /package/dist/assets/{terminal-CYHsl1AH.js → terminal-CTNk9Vx-.js} +0 -0
- /package/dist/assets/{terminal-BjOF3LBT.js → terminal-DMbjaLiG.js} +0 -0
- /package/dist/assets/{workspace-C-huZiu_.js → workspace-7FfNfyOX.js} +0 -0
- /package/dist/assets/{workspace-Bcvg2VfS.js → workspace-ALDzNPUC.js} +0 -0
- /package/dist/assets/{workspace-P8HaFDdu.js → workspace-DrLe-8Lj.js} +0 -0
- /package/dist/assets/{workspace-BscXtFFU.js → workspace-Dxoo5uUn.js} +0 -0
- /package/dist/assets/{xterm-Pyzkt_-B.js → xterm-6q1BGEu_.js} +0 -0
- /package/dist/assets/{xterm-addon-fit-HaY_WHvm.js → xterm-addon-fit-DARdNMYD.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{HC as e}from"./app-
|
|
1
|
+
import{HC as e}from"./app-BEoekemj.js";import{E as t}from"./vendor-cVd2QlFV.js";import{t as n}from"./react-B9IgSVeK.js";import{Ya as r}from"./icons-C0wyat6T.js";var i=r(`file-exclamation-point`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),a=n();function o({filename:n}){let{t:r}=t(`chat`);return(0,a.jsxs)(`div`,{role:`status`,className:`flex items-center gap-2.5 rounded-lg border border-[var(--border-element)] bg-[var(--surface-lift)] p-3`,children:[(0,a.jsx)(i,{"aria-hidden":`true`,className:`h-4 w-4 shrink-0 text-[var(--content-tertiary)]`}),(0,a.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,a.jsx)(e,{as:`span`,variant:`body-small-default`,className:`text-[var(--content-default)]`,children:r(`previewError.cannotPreview`)}),(0,a.jsx)(e,{as:`span`,variant:`label-small-default`,className:`truncate text-[var(--content-tertiary)]`,children:n})]})]})}export{o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{$C as t,$y as n,Af as r,Au as i,BC as a,B_ as o,Ch as s,DC as c,DS as l,ES as u,Fo as d,Gg as f,Gy as p,Io as m,Kg as h,L_ as g,Lo as _,Mc as v,OC as y,OS as b,PC as x,Pg as S,Pi as C,Qy as w,Sg as T,TS as E,W as D,X as O,Xy as ee,Yy as te,Z as k,Zy as ne,_o as re,_r as ie,bS as ae,bh as A,cf as j,dx as oe,eb as se,fC as M,fg as N,fn as ce,hC as P,h_ as le,iw as ue,jc as de,kS as fe,kf as pe,ku as me,mC as he,nx as F,rC as I,sf as ge,uS as _e,uf as ve,vh as ye,vo as be,vr as xe,wh as Se,xS as Ce,xv as we,yh as Te,yo as Ee,yx as De,zC as L,zg as Oe,zy as ke}from"./app-BEoekemj.js";import{$n as R,E as z,O as Ae,Xn as B,nr as V}from"./vendor-cVd2QlFV.js";import{b as je,t as Me,x as Ne}from"./react-B9IgSVeK.js";import{A as H,Gi as Pe,Yn as U,Zt as Fe,ft as W,i as Ie,qi as Le}from"./icons-C0wyat6T.js";import{t as G}from"./detail-card-DdL-TwEw.js";import{t as K}from"./setting-row-CaxliRhN.js";import{i as Re,o as ze}from"./teleport-gateway-client-BY9KVOT2.js";import{n as Be,r as Ve,t as He}from"./settings-divider-DipomhZT.js";var q=e(Ne(),1),J=Me(),Ue=[{id:`accessibility`,type:`system`,sourceKind:`accessibility`},{id:`screen`,type:`system`,sourceKind:`screen`,availableOnWindows:!0},{id:`microphone`,type:`system`,sourceKind:`microphone`,availableOnWindows:!0},{id:`speechRecognition`,type:`system`,sourceKind:`speechRecognition`,availableOnWindows:!0},{id:`notifications`,type:`system`,sourceKind:`notifications`,availableOnWindows:!0}],We=[{id:`notificationBadges`,type:`local`}];function Ge(e,t,n){switch(e){case`accessibility`:return{label:t(`systemPermissionsCard.accessibilityLabel`),description:t(`systemPermissionsCard.accessibilityDescription`)};case`screen`:return{label:t(`systemPermissionsCard.screenLabel`),description:t(`systemPermissionsCard.screenDescription`)};case`microphone`:return{label:t(`systemPermissionsCard.microphoneLabel`),description:t(`systemPermissionsCard.microphoneDescription`)};case`speechRecognition`:return{label:t(`systemPermissionsCard.speechRecognitionLabel`),description:t(n?`systemPermissionsCard.speechRecognitionWindowsDescription`:`systemPermissionsCard.speechRecognitionDescription`)};case`notifications`:return{label:t(`systemPermissionsCard.notificationsLabel`),description:t(n?`systemPermissionsCard.notificationsWindowsDescription`:`systemPermissionsCard.notificationsDescription`)};default:throw Error(`Unsupported system permission row: ${e}`)}}function Ke(){let[e,t]=(0,q.useState)(null);return{pendingKind:e,run:async(e,n)=>{t(e);try{await n()}catch{}finally{t(t=>t===e?null:t)}}}}function qe(){let[e,t]=(0,q.useState)(()=>E(`dockBadgesEnabled`,!0));return(0,q.useEffect)(()=>fe(`dockBadgesEnabled`,()=>{t(E(`dockBadgesEnabled`,!0))}),[]),[e,e=>{t(e),l(`dockBadgesEnabled`,e),e||be(0)}]}function Je({row:e,onToggle:t}){return(0,J.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,J.jsx)(c,{checked:e.checked,disabled:e.disabled,"aria-label":e.label,onChange:()=>t(e.id)}),(0,J.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,J.jsxs)(`button`,{type:`button`,disabled:e.disabled,onClick:()=>t(e.id),className:ue(`block w-full text-left`,e.disabled?`cursor-not-allowed`:`cursor-pointer`),children:[(0,J.jsx)(`span`,{className:`block text-[14px] font-semibold leading-[18px] text-[var(--content-emphasised)]`,children:e.label}),(0,J.jsx)(`span`,{className:`mt-1 block text-[13px] font-medium leading-[18px] text-[var(--content-tertiary)]`,children:e.description})]}),e.error&&(0,J.jsx)(`p`,{className:`mt-1 text-body-small-default text-[var(--system-negative-strong)]`,children:e.error})]})]})}function Ye(){return(0,J.jsx)(`span`,{"aria-hidden":`true`,className:`h-4 w-4 animate-spin rounded-full border-2 border-[var(--border-base)] border-t-[var(--content-tertiary)]`})}function Xe({compact:e=!1}){let{t}=z(),{state:n,loading:r,error:i,supported:a,refresh:o}=ve(),{pendingKind:c,run:l}=Ke(),[u,d]=qe(),p=we.use.pushAvatarSender(),m=F.use.selectedAssistantId(),g=F.use.assistants(),_=s.use.user(),y=le(),b=T(),x=b===`windows`,S=(0,q.useMemo)(()=>Ue.filter(e=>!x||e.availableOnWindows),[x]),C=(0,q.useMemo)(()=>{let e=new Map;if(!n)return e;for(let t of S){let r=n[t.sourceKind];r&&r.status!==`not-applicable`&&e.set(t.id,{meta:t,item:r})}return e},[n,S]),w=(0,q.useMemo)(()=>{let e=S.map(e=>{let n=C.get(e.id)?.item;if(!n)return null;let r=Ge(e.id,t,x);return{id:e.id,label:r.label,description:r.description,checked:n.status===`granted`,disabled:c===e.id||n.status===`restricted`,...n.error?{error:n.error}:{}}}).filter(Boolean),n=re()===`taskbar icon`?t(`systemPermissionsCard.taskbarIcon`):t(`systemPermissionsCard.dockIcon`),r=Ee()?We.map(e=>({id:e.id,label:t(`systemPermissionsCard.notificationBadgesLabel`),description:t(`systemPermissionsCard.notificationBadgesDescription`,{surface:n}),checked:u,disabled:c===e.id})):[];return[...e,...r]},[x,u,c,C,t,S]);if(!a&&w.length===0)return null;let E=async(e,t)=>{if(t.status===`granted`||t.status===`denied`||!t.canRequest)await ge(e.sourceKind);else{let t=(()=>{if(e.sourceKind!==`notifications`||b!==`macos`||!p)return;let t=g.find(e=>e.id===m),n=de(t,_?.kind===`platform`?_.id:null,y,_e()??(globalThis.location===void 0?null:globalThis.location.href));if(!t||!n)return;let r=f(n,t.id,v(t));if(!r)return;let i=h(r);if(!(!i?.name||!i.avatar))return{presentation:`assistant`,identity:r,sender:{id:r.nativeSenderId,name:i.name,avatarBase64:i.avatar.avatarBase64,avatarHash:i.avatar.avatarHash}}})();t?await j(e.sourceKind,t):await j(e.sourceKind)}await o()},D=e=>{let t=C.get(e);if(t){l(e,()=>E(t.meta,t.item));return}e===`notificationBadges`&&l(e,async()=>{d(!u)})};return(0,J.jsxs)(`section`,{className:`w-full rounded-[20px] border border-[var(--border-hover)] bg-[var(--surface-lift)] px-4 pb-3 pt-5`,children:[(0,J.jsx)(`h2`,{className:`text-[18px] font-semibold leading-[22px] text-[var(--content-emphasised)]`,children:t(`systemPermissionsCard.title`)}),r&&w.length===0?(0,J.jsxs)(`div`,{className:`mt-6 flex items-center gap-2 text-body-medium-lighter text-[var(--content-tertiary)]`,children:[(0,J.jsx)(Ye,{}),t(`systemPermissionsCard.checking`)]}):(0,J.jsx)(`div`,{className:`mt-3 space-y-2`,children:w.map(e=>(0,J.jsx)(Je,{row:e,onToggle:D},e.id))}),i&&(0,J.jsx)(`div`,{role:`alert`,className:`mt-6 rounded-md border border-[color-mix(in_srgb,var(--system-negative-strong)_25%,transparent)] bg-[var(--system-negative-weak)] p-3 text-body-medium-lighter text-[var(--content-secondary)]`,children:i})]})}var Y=`0.12.3`;function Ze(){return Oe(Y)}var Qe=2e3,$e=3600*1e3,et=e=>new Promise(t=>setTimeout(t,e));function tt({assistantId:e,pollIntervalMs:n=Qe}){let{t:r}=z(`settings`),[i,a]=(0,q.useState)(null),s=De(),c=s!==null&&oe(s)!==null,l=Ze(),u=c&&l,d=B({mutationFn:async()=>{if(!s)throw Error(`no local assistant`);let{data:t}=await o({path:{id:e},throwOnError:!0}),r=await Re(s,t.url),i=Date.now()+$e;for(;Date.now()<i;)if(await et(n),await ze(s,r)===`complete`)return;throw Error(`timed out`)},onSuccess:()=>{a(new Date),P.success(r(`debugBundleExport.toastSent`))},onError:e=>{let t=e instanceof Error?e.message:``;P.error(t?r(`debugBundleExport.toastFailedWithReason`,{reason:t}):r(`debugBundleExport.toastFailed`))}});return(0,J.jsxs)(`div`,{className:`mt-3 rounded-md border border-[var(--surface-active)] p-3`,children:[(0,J.jsx)(`p`,{className:`text-body-small-lighter text-[var(--content-tertiary)]`,children:r(`debugBundleExport.description`)}),u?(0,J.jsxs)(`div`,{className:`mt-2 flex flex-wrap items-center gap-2`,children:[(0,J.jsxs)(t,{variant:`outlined`,size:`compact`,disabled:d.isPending,onClick:()=>d.mutate(),children:[d.isPending&&(0,J.jsx)(U,{className:`mr-1 h-3.5 w-3.5 animate-spin`}),d.isPending?r(`debugBundleExport.exporting`):r(`debugBundleExport.export`)]}),i!==null&&!d.isPending&&(0,J.jsx)(`p`,{className:`text-body-small-lighter text-[var(--content-tertiary)]`,children:r(`debugBundleExport.sentAt`,{time:i.toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`})})})]}):(0,J.jsx)(`p`,{className:`mt-2 text-body-small-lighter text-[var(--content-tertiary)]`,children:c?r(`debugBundleExport.updateAssistant`,{version:Y}):r(`debugBundleExport.useDesktopApp`)})]})}var nt=2**31-1;function rt(){let{t:e}=z(`settings`),n=A(),r=ye(),a=Te(),o=V(),{platformAssistantId:s,isLoading:l}=C(F.use.activeAssistantId(),n===`full`),u=n===`full`&&s!==null,{data:d,isLoading:f,isError:p}=R({...me({path:{id:s??``}}),enabled:u,refetchInterval:e=>{let t=e.state.data?.access_consent_expires_at;if(!e.state.data?.access_consented||!t)return!1;let n=new Date(t).getTime()-Date.now()+1e3;return Math.min(Math.max(n,1e3),nt)}}),m=d?.access_consented===!0,h=m&&typeof d.access_consent_never_expires==`boolean`,_=m&&d.access_consent_never_expires===!0,v=m&&!_?d.access_consent_expires_at:null;Ve(v!==null);let y=B({mutationFn:async({assistantId:e,next:t,mode:n})=>{let{data:r}=await g({path:{id:e},body:{access_consented:t,...n===`keepOn`?{never_expires:!0}:{}},throwOnError:!0});return r},onSuccess:(t,n)=>{i(o,{path:{id:n.assistantId}},t),P.success(n.mode===`extend`?e(`accessConsentSetting.toastExtended`):n.mode===`keepOn`?e(`accessConsentSetting.toastKeptOn`):n.mode===`expireAgain`?e(`accessConsentSetting.toastExpiring`):t?.access_consented?e(`accessConsentSetting.toastEnabled`):e(`accessConsentSetting.toastDisabled`))},onError:()=>{P.error(e(`accessConsentSetting.toastUpdateFailed`))}});if(n===`gated`)return null;let b=n===`full`&&(a||l),x=d?.access_consented??!1,S=n!==`full`||s===null||f||p||y.isPending;return(0,J.jsxs)(`div`,{children:[(0,J.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,J.jsxs)(`div`,{className:`flex-1`,children:[(0,J.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:e(`accessConsentSetting.title`)}),(0,J.jsx)(`p`,{className:`mt-1 text-body-small-lighter text-[var(--content-tertiary)]`,children:e(`accessConsentSetting.description`)}),n===`full`&&p&&(0,J.jsx)(`p`,{className:`mt-1 text-body-small-lighter text-[var(--system-negative-strong)]`,children:e(`accessConsentSetting.loadError`)}),v!==null&&(0,J.jsxs)(`div`,{className:`mt-2 flex flex-wrap items-center gap-2`,children:[(0,J.jsx)(`p`,{className:`text-body-small-lighter text-[var(--content-tertiary)]`,children:e(`accessConsentSetting.expiresAt`,{when:Be(v)})}),(0,J.jsx)(t,{variant:`outlined`,size:`compact`,disabled:S,onClick:()=>{s&&y.mutate({assistantId:s,next:!0,mode:`extend`})},children:e(`accessConsentSetting.extend`)}),h&&(0,J.jsx)(t,{variant:`outlined`,size:`compact`,disabled:S,onClick:()=>{s&&y.mutate({assistantId:s,next:!0,mode:`keepOn`})},children:e(`accessConsentSetting.keepOn`)})]}),_&&(0,J.jsxs)(`div`,{className:`mt-2 flex flex-wrap items-center gap-2`,children:[(0,J.jsx)(`p`,{className:`text-body-small-lighter text-[var(--content-tertiary)]`,children:e(`accessConsentSetting.staysOn`)}),(0,J.jsx)(t,{variant:`outlined`,size:`compact`,disabled:S,onClick:()=>{s&&y.mutate({assistantId:s,next:!0,mode:`expireAgain`})},children:e(`accessConsentSetting.expireAgain`)})]}),m&&r&&s!==null&&(0,J.jsx)(tt,{assistantId:s})]}),(0,J.jsx)(`div`,{className:`flex items-center gap-2`,children:n===`disabled`?null:(0,J.jsxs)(J.Fragment,{children:[(y.isPending||b)&&(0,J.jsx)(U,{className:`h-4 w-4 animate-spin text-[var(--content-tertiary)]`}),(0,J.jsx)(c,{checked:x,disabled:S,onChange:()=>{s&&y.mutate({assistantId:s,next:!x})}})]})})]}),n===`disabled`&&(0,J.jsx)(ce,{className:`mt-3`,children:e(`accessConsentSetting.loginNotice`)})]})}function it(){let{t:e}=z(`settings`),t=te(),r=S(),[i,a]=(0,q.useState)(()=>w()),[o,s]=(0,q.useState)(null),[l,u]=(0,q.useState)(!1);if((0,q.useEffect)(()=>{if(!t)return;let e=!0;return ne().then(t=>{e&&s(t)}),()=>{e=!1}},[t]),!t||!o?.available)return null;let d=async()=>{u(!0);try{if(i)n(!1),await ee(),a(!1);else{let e=p();if(!e||!await se(e)){n(!1),a(!1);return}n(!0),a(!0)}}finally{u(!1)}};return(0,J.jsx)(G,{title:e(`biometricSettingsCard.title`),children:(0,J.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,J.jsxs)(`div`,{className:`flex-1`,children:[(0,J.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:e(`biometricSettingsCard.useForSignIn`,{label:o.label})}),(0,J.jsx)(`p`,{className:`mt-1 text-body-small-lighter text-[var(--content-tertiary)]`,children:e(r?`biometricSettingsCard.descriptionWithPasscode`:`biometricSettingsCard.description`,{label:o.label})})]}),(0,J.jsx)(c,{checked:i,onChange:()=>void d(),disabled:l})]})})}var X=[`youtube.com`,`youtu.be`,`vimeo.com`,`loom.com`];function at(e){try{let t=JSON.parse(e);if(Array.isArray(t))return t.filter(e=>typeof e==`string`)}catch{}return[...X]}function ot(){return E(`mediaEmbedsEnabled`,!0)}function st(){let e=u(`mediaEmbedDomains`,``);return e?at(e):[...X]}function ct(){let{t:e}=z(`settings`),[n,r]=(0,q.useState)(()=>ot()),[i,a]=(0,q.useState)(()=>st()),[o,s]=(0,q.useState)(!1),[u,d]=(0,q.useState)(``),f=(0,q.useMemo)(()=>u.trim().toLowerCase(),[u]),p=e=>{r(e),l(`mediaEmbedsEnabled`,e)},m=e=>{a(e),b(`mediaEmbedDomains`,JSON.stringify(e))},h=()=>{if(f){if(i.includes(f)){d(``);return}m([...i,f]),d(``)}},g=e=>{m(i.filter(t=>t!==e))},_=()=>{m([...X])},v=i.length===X.length&&i.every((e,t)=>e===X[t]);return(0,J.jsxs)(G,{title:e(`mediaEmbedsCard.title`),subtitle:e(`mediaEmbedsCard.subtitle`),children:[(0,J.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,J.jsx)(`div`,{className:`text-body-medium-lighter text-[var(--content-default)]`,children:e(`mediaEmbedsCard.autoToggle`)}),(0,J.jsx)(c,{checked:n,onChange:p})]}),n&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`div`,{className:`mt-4`,children:(0,J.jsx)(He,{})}),(0,J.jsxs)(t,{type:`button`,variant:`ghost`,onClick:()=>s(e=>!e),className:`mt-4 w-full justify-between px-3`,"aria-expanded":o,children:[(0,J.jsxs)(`span`,{className:`flex items-center gap-2`,children:[o?(0,J.jsx)(Le,{className:`h-4 w-4`,"aria-hidden":!0}):(0,J.jsx)(Pe,{className:`h-4 w-4`,"aria-hidden":!0}),e(`mediaEmbedsCard.allowlist`)]}),(0,J.jsx)(`span`,{className:`text-body-small-default text-[var(--content-tertiary)]`,children:e(`mediaEmbedsCard.domainCount`,{count:i.length})})]}),o&&(0,J.jsxs)(`div`,{className:`mt-3 space-y-3`,children:[(0,J.jsxs)(`div`,{className:`flex items-end gap-2`,children:[(0,J.jsx)(y,{label:e(`mediaEmbedsCard.addDomainLabel`),type:`text`,value:u,onChange:e=>d(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),h())},placeholder:e(`mediaEmbedsCard.addDomainPlaceholder`),fullWidth:!0,wrapperClassName:`flex-1`}),(0,J.jsx)(t,{variant:`primary`,size:`compact`,onClick:h,disabled:!f,children:e(`mediaEmbedsCard.add`)})]}),i.length>0&&(0,J.jsx)(`div`,{className:`flex justify-end`,children:(0,J.jsx)(t,{type:`button`,variant:`ghost`,size:`compact`,onClick:_,disabled:v,tintColor:`var(--content-tertiary)`,children:e(`mediaEmbedsCard.resetDefaults`)})}),i.length>0&&(0,J.jsx)(`ul`,{className:`space-y-2`,children:i.map(n=>(0,J.jsxs)(`li`,{className:`flex items-center justify-between rounded-md border border-[var(--border-base)] px-3 py-2 text-body-medium-lighter`,children:[(0,J.jsx)(`span`,{className:`font-mono text-[var(--content-default)]`,children:n}),(0,J.jsx)(t,{variant:`dangerGhost`,size:`compact`,iconOnly:(0,J.jsx)(H,{}),onClick:()=>g(n),"aria-label":e(`mediaEmbedsCard.removeDomainAria`,{domain:n})})]},n))})]})]})]})}function Z(){return(0,J.jsx)(`div`,{className:`h-px bg-[var(--surface-active)] dark:bg-[var(--surface-lift)]`})}function lt(){let{t:e}=z(`settings`),t=D(),n=(0,q.useMemo)(()=>O.map(t=>({value:t.id,label:e(t.labelKey,t.label),icon:(0,J.jsx)(t.icon,{className:`h-3.5 w-3.5`})})),[e]),r=V(),{data:i,isError:o}=R({queryKey:[`thresholds`,t],queryFn:()=>ie(t),staleTime:3e4}),[s,c]=(0,q.useState)(`relaxed`),[l,u]=(0,q.useState)(`conservative`),[d,f]=(0,q.useState)(`strict`),p=(0,q.useRef)(!1),[m,h]=(0,q.useState)(!1),g=(0,q.useRef)(null),_=(0,q.useRef)(null);(0,q.useEffect)(()=>{!i||p.current||(c(k(i.interactive).id),u(k(i.autonomous).id),f(k(i.headless).id),h(!0))},[i]),(0,q.useEffect)(()=>()=>{g.current!==null&&(clearTimeout(g.current),g.current=null,_.current?.(),_.current=null)},[]);let v=(0,q.useCallback)((e,n,i)=>{if(!t||!m)return;let a=O.find(t=>t.id===e)?.riskThreshold,o=O.find(e=>e.id===n)?.riskThreshold,s=O.find(e=>e.id===i)?.riskThreshold;!a||!o||!s||xe(t,{interactive:a,autonomous:o,headless:s}).then(()=>{r.invalidateQueries({queryKey:[`thresholds`,t]})}).catch(()=>{})},[t,m,r]),y=(0,q.useCallback)((e,t,n)=>{g.current!==null&&clearTimeout(g.current),_.current=()=>v(e,t,n),g.current=setTimeout(()=>{_.current?.(),g.current=null,_.current=null},500)},[v]),b=(0,q.useCallback)(e=>{p.current=!0,c(e),y(e,l,d)},[l,d,y]),x=(0,q.useCallback)(e=>{p.current=!0,u(e),y(s,e,d)},[s,d,y]),S=(0,q.useCallback)(e=>{p.current=!0,f(e),y(s,l,e)},[s,l,y]),C=O.find(e=>e.id===s),w=O.find(e=>e.id===l),T=O.find(e=>e.id===d),E=!t||!m;return(0,J.jsxs)(a,{children:[(0,J.jsx)(`h2`,{className:`text-title-medium text-[var(--content-default)]`,children:e(`riskToleranceSettings.title`)}),(0,J.jsx)(`p`,{className:`mt-1 text-body-medium-lighter text-[var(--content-tertiary)]`,children:e(`riskToleranceSettings.description`)}),o&&(0,J.jsx)(`p`,{className:`mt-2 text-body-small-lighter text-[var(--system-negative-strong)]`,children:e(`riskToleranceSettings.loadError`)}),(0,J.jsxs)(`div`,{className:`mt-4 space-y-4`,children:[(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:e(`riskToleranceSettings.conversationsTitle`)}),(0,J.jsx)(`p`,{className:`mt-0.5 text-body-small-lighter text-[var(--content-tertiary)]`,children:e(`riskToleranceSettings.conversationsDescription`)}),(0,J.jsx)(`div`,{className:`mt-2`,style:{maxWidth:280},children:(0,J.jsx)(M,{value:s,onChange:b,options:n,disabled:E})}),C&&(0,J.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:e(C.descriptionKey,C.description)})]}),(0,J.jsx)(Z,{}),(0,J.jsxs)(I.Root,{children:[(0,J.jsx)(I.Trigger,{size:`medium`,children:e(`riskToleranceSettings.advanced`)}),(0,J.jsxs)(I.Content,{keepMounted:!0,className:`mt-4 space-y-4`,children:[(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:e(`riskToleranceSettings.backgroundTitle`)}),(0,J.jsx)(`p`,{className:`mt-0.5 text-body-small-lighter text-[var(--content-tertiary)]`,children:e(`riskToleranceSettings.backgroundDescription`)}),(0,J.jsx)(`div`,{className:`mt-2`,style:{maxWidth:280},children:(0,J.jsx)(M,{value:l,onChange:x,options:n,disabled:E})}),w&&(0,J.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:e(w.descriptionKey,w.description)})]}),(0,J.jsx)(Z,{}),(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:e(`riskToleranceSettings.headlessTitle`)}),(0,J.jsx)(`p`,{className:`mt-0.5 text-body-small-lighter text-[var(--content-tertiary)]`,children:e(`riskToleranceSettings.headlessDescription`)}),(0,J.jsx)(`div`,{className:`mt-2`,style:{maxWidth:280},children:(0,J.jsx)(M,{value:d,onChange:S,options:n,disabled:E})}),T&&(0,J.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:e(T.descriptionKey,T.description)})]})]})]})]})]})}var Q=e(je(),1),ut=[`bash`,`file_read`,`file_write`,`file_edit`,`web_fetch`,`skill_load`];function dt({assistantId:e,existingRule:t,onClose:n,onSaved:r}){let{t:i}=z(`settings`),a=(0,q.useRef)(null),[o,s]=(0,q.useState)(t.tool),[c,l]=(0,q.useState)(t.pattern),[u,d]=(0,q.useState)(t.risk),[f,p]=(0,q.useState)(t.description??``),[m,h]=(0,q.useState)(!1),[g,v]=(0,q.useState)(null),b=[{value:`low`,label:i(`trustRuleFormModal.riskLow`),description:i(`trustRuleFormModal.riskLowDescription`)},{value:`medium`,label:i(`trustRuleFormModal.riskMedium`),description:i(`trustRuleFormModal.riskMediumDescription`)},{value:`high`,label:i(`trustRuleFormModal.riskHigh`),description:i(`trustRuleFormModal.riskHighDescription`)}],x=c.trim(),S=x.length>0&&!m,C=i(`trustRuleFormModal.defaultDescription`,{tool:o,pattern:x||i(`trustRuleFormModal.patternFallback`)}),w=(0,q.useCallback)(async n=>{if(n.preventDefault(),!S)return;let a=f.trim()||C;h(!0),v(null);try{await _(e,t.id,{risk:u,description:a}),r()}catch(e){v(e instanceof Error?e.message:i(`trustRuleFormModal.saveFailed`))}finally{h(!1)}},[e,S,C,f,t,r,u,i]);return(0,Q.createPortal)((0,J.jsx)(`div`,{ref:a,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`trust-rule-form-title`,className:`fixed inset-0 z-50 flex items-center justify-center bg-black/50`,onKeyDown:(0,q.useCallback)(e=>{e.key===`Escape`&&!e.defaultPrevented&&(e.preventDefault(),n())},[n]),onClick:(0,q.useCallback)(e=>{e.target===a.current&&n()},[n]),children:(0,J.jsxs)(`div`,{className:`mx-4 flex max-h-[calc(100vh-2rem)] w-full max-w-md flex-col rounded-xl border border-[var(--border-base)] bg-[var(--surface-lift)] shadow-xl`,children:[(0,J.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-b border-[var(--border-base)] px-6 py-4`,children:[(0,J.jsx)(`h2`,{id:`trust-rule-form-title`,className:`text-title-medium text-[var(--content-default)]`,children:i(`trustRuleFormModal.title`)}),(0,J.jsx)(`button`,{type:`button`,onClick:n,"aria-label":i(`trustRuleFormModal.closeAriaLabel`),className:`rounded-lg p-1.5 text-[var(--content-tertiary)] transition-colors hover:bg-[var(--surface-base)] hover:text-[var(--content-default)]`,children:(0,J.jsx)(Ie,{className:`h-4 w-4`})})]}),(0,J.jsxs)(`form`,{onSubmit:e=>void w(e),className:`min-h-0 flex-1 space-y-4 overflow-y-auto px-6 py-4`,children:[g&&(0,J.jsx)(L,{tone:`error`,children:g}),(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`label`,{htmlFor:`trust-rule-tool`,className:`block text-body-medium-default text-[var(--content-default)]`,children:i(`trustRuleFormModal.toolLabel`)}),(0,J.jsx)(`div`,{className:`mt-1`,children:(0,J.jsx)(M,{value:o,onChange:s,disabled:!0,options:ut.map(e=>({value:e,label:e}))})})]}),(0,J.jsx)(y,{label:i(`trustRuleFormModal.patternLabel`),type:`text`,value:c,onChange:e=>l(e.target.value),placeholder:i(`trustRuleFormModal.patternPlaceholder`),disabled:!0}),(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`span`,{className:`block text-body-medium-default text-[var(--content-default)]`,children:i(`trustRuleFormModal.riskLevelLabel`)}),(0,J.jsx)(`div`,{className:`mt-2 flex gap-2`,children:b.map(e=>(0,J.jsxs)(`button`,{type:`button`,onClick:()=>d(e.value),className:`flex-1 rounded-lg border px-3 py-2 text-left text-body-small-default transition-colors ${u===e.value?e.value===`low`?`border-[var(--system-positive-strong)] bg-[var(--system-positive-weak)] text-[var(--system-positive-strong)]`:e.value===`medium`?`border-[var(--system-mid-strong)] bg-[var(--system-mid-weak)] text-[var(--system-mid-strong)]`:`border-[var(--system-negative-strong)] bg-[var(--system-negative-weak)] text-[var(--system-negative-strong)]`:`border-[var(--border-element)] text-[var(--content-default)] hover:bg-[var(--surface-base)]`}`,children:[(0,J.jsx)(`div`,{children:e.label}),(0,J.jsx)(`div`,{className:`mt-0.5 text-label-medium-default leading-tight opacity-70`,children:e.description})]},e.value))})]}),(0,J.jsx)(y,{label:i(`trustRuleFormModal.descriptionLabel`),type:`text`,value:f,onChange:e=>p(e.target.value),placeholder:C}),(0,J.jsxs)(`div`,{className:`flex justify-end gap-2 pt-2`,children:[(0,J.jsx)(`button`,{type:`button`,onClick:n,className:`rounded-lg border border-[var(--border-element)] bg-white px-4 py-2 text-body-medium-default text-[var(--content-default)] transition-colors hover:bg-[var(--surface-base)] dark:border-[var(--border-base)] dark:bg-[var(--surface-lift)] dark:hover:bg-[var(--ghost-hover)]`,children:i(`trustRuleFormModal.cancel`)}),(0,J.jsx)(`button`,{type:`submit`,disabled:!S,className:`rounded-lg bg-[var(--system-positive-strong)] px-4 py-2 text-body-medium-default text-white transition-colors hover:bg-[var(--system-positive-strong)] disabled:cursor-not-allowed disabled:opacity-50`,children:i(m?`trustRuleFormModal.saving`:`trustRuleFormModal.save`)})]})]})]})}),document.body)}function ft(e){return e.origin===`default`&&!e.userModified}function pt(e,t){let n=new Set,r=[];for(let t of e)n.has(t.id)||(n.add(t.id),r.push(t));for(let e of t)n.has(e.id)||(n.add(e.id),r.push(e));return r.sort((e,t)=>e.tool===t.tool?e.description.localeCompare(t.description):e.tool.localeCompare(t.tool))}function mt(e){switch(e){case`low`:return`positive`;case`medium`:return`warning`;case`high`:return`negative`}}function ht({assistantId:e,onClose:n}){let{t:r}=z(`settings`),i=(0,q.useRef)(null),[a,o]=(0,q.useState)([]),[s,l]=(0,q.useState)(!0),[u,f]=(0,q.useState)(null),[p,h]=(0,q.useState)(null),[g,_]=(0,q.useState)(null),[v,y]=(0,q.useState)(!1),b=(0,q.useCallback)(e=>{switch(e){case`low`:return r(`trustRulesModal.riskLow`);case`medium`:return r(`trustRulesModal.riskMedium`);case`high`:return r(`trustRulesModal.riskHigh`)}},[r]),S=(0,q.useCallback)(async t=>{if(t){let[t,n]=await Promise.all([m(e),m(e,{origin:`default`})]);return pt(t,n)}return m(e)},[e]),C=(0,q.useCallback)(async()=>{l(!0);try{o(await S(v)),f(null)}catch(e){f(e instanceof Error?e.message:r(`trustRulesModal.loadErrorFallback`))}finally{l(!1)}},[S,v,r]);(0,q.useEffect)(()=>{let e=!1;return(async()=>{l(!0);try{let t=await S(v);e||(o(t),f(null))}catch(t){e||f(t instanceof Error?t.message:r(`trustRulesModal.loadErrorFallback`))}finally{e||l(!1)}})(),()=>{e=!0}},[S,v,r]);let w=(0,q.useCallback)(async()=>{if(g)try{await d(e,g.id),C()}catch(e){f(e instanceof Error?e.message:r(`trustRulesModal.deleteErrorFallback`))}finally{_(null)}},[e,g,C,r]);return(0,Q.createPortal)((0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`div`,{ref:i,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`trust-rules-title`,className:`fixed inset-0 z-50 flex items-center justify-center bg-black/50`,onKeyDown:(0,q.useCallback)(e=>{e.key===`Escape`&&!e.defaultPrevented&&(e.preventDefault(),n())},[n]),onClick:(0,q.useCallback)(e=>{e.target===i.current&&n()},[n]),children:(0,J.jsxs)(`div`,{className:`mx-4 flex max-h-[80vh] w-full max-w-2xl flex-col rounded-xl border border-[var(--border-base)] bg-[var(--surface-lift)] shadow-xl`,children:[(0,J.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-b border-[var(--border-base)] px-6 py-4`,children:[(0,J.jsx)(`h2`,{id:`trust-rules-title`,className:`text-title-medium text-[var(--content-default)]`,children:r(`trustRulesModal.title`)}),(0,J.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,J.jsx)(c,{checked:v,onChange:y,label:r(`trustRulesModal.showAllDefaults`)}),(0,J.jsx)(t,{variant:`outlined`,onClick:n,children:r(`trustRulesModal.done`)})]})]}),(0,J.jsxs)(`div`,{className:`flex-1 overflow-y-auto px-6 py-4`,children:[u&&(0,J.jsx)(`div`,{className:`mb-3`,children:(0,J.jsx)(L,{tone:`error`,children:u})}),s?(0,J.jsx)(`div`,{className:`flex h-48 items-center justify-center text-body-medium-lighter text-[var(--content-tertiary)]`,children:r(`trustRulesModal.loading`)}):a.length===0?(0,J.jsxs)(`div`,{className:`flex h-48 flex-col items-center justify-center gap-2 px-6 text-[var(--content-tertiary)]`,children:[(0,J.jsx)(W,{className:`h-8 w-8`}),(0,J.jsx)(`p`,{className:`max-w-xs text-center text-body-medium-lighter`,children:r(`trustRulesModal.empty`)})]}):(0,J.jsx)(`ul`,{className:`divide-y divide-[var(--border-base)]`,children:a.map(e=>{let n=ft(e);return(0,J.jsxs)(`li`,{className:`flex items-start gap-3 py-3`,children:[(0,J.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsx)(`span`,{className:`text-body-medium-default text-[var(--content-default)]`,children:e.tool}),(0,J.jsx)(x,{tone:mt(e.risk),children:b(e.risk)}),e.origin===`default`&&(0,J.jsx)(x,{tone:`neutral`,children:r(`trustRulesModal.defaultTag`)}),e.userModified&&(0,J.jsx)(x,{tone:`warning`,children:r(`trustRulesModal.modifiedTag`)})]}),(0,J.jsx)(`div`,{className:`mt-1 truncate font-mono text-body-small-default text-[var(--content-secondary)]`,children:e.pattern}),e.description&&(0,J.jsx)(`div`,{className:`mt-0.5 truncate text-body-small-default text-[var(--content-tertiary)]`,children:e.description})]}),(0,J.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[(0,J.jsx)(t,{variant:`ghost`,size:`compact`,iconOnly:(0,J.jsx)(Fe,{}),iconOnlyGlyphClassName:`[&_svg]:size-4`,expandOnMobile:!1,"aria-label":r(`trustRulesModal.editRuleAria`,{tool:e.tool}),onClick:()=>h(e),className:`h-7 w-7 rounded-lg`}),(!n||e.userModified)&&(0,J.jsx)(t,{variant:`dangerGhost`,size:`compact`,iconOnly:(0,J.jsx)(H,{className:`h-4 w-4`}),"aria-label":r(`trustRulesModal.deleteRuleAria`,{tool:e.tool}),onClick:()=>_(e)})]})]},e.id)})})]})]})}),p&&(0,J.jsx)(dt,{assistantId:e,existingRule:p,onClose:()=>h(null),onSaved:()=>{h(null),C()}}),(0,J.jsx)(he,{open:g!==null,title:r(`trustRulesModal.deleteTitle`),message:g?r(`trustRulesModal.deleteMessage`,{risk:b(g.risk).toLowerCase(),tool:g.tool,pattern:g.pattern}):``,confirmLabel:r(`trustRulesModal.delete`),cancelLabel:r(`trustRulesModal.cancel`),destructive:!0,onConfirm:()=>void w(),onCancel:()=>_(null)})]}),document.body)}function gt(){let{t:e}=z(`settings`),n=D(),[r,i]=(0,q.useState)(!1);return(0,J.jsxs)(a,{children:[(0,J.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,J.jsx)(W,{className:`mt-0.5 h-5 w-5 shrink-0 text-[var(--content-secondary)]`}),(0,J.jsxs)(`div`,{className:`flex-1`,children:[(0,J.jsx)(`h2`,{className:`text-title-medium text-[var(--content-default)]`,children:e(`trustRules.title`)}),(0,J.jsx)(`p`,{className:`mt-1 text-body-medium-lighter text-[var(--content-tertiary)]`,children:e(`trustRules.description`)})]}),(0,J.jsx)(t,{variant:`outlined`,onClick:()=>i(!0),children:e(`trustRules.manage`)})]}),r&&(0,J.jsx)(ht,{assistantId:n,onClose:()=>i(!1)})]})}var _t=[{value:`dontRetain`,labelKey:`privacyPage.retentionDontRetain`},{value:`oneHour`,labelKey:`privacyPage.retentionOneHour`},{value:`oneDay`,labelKey:`privacyPage.retentionOneDay`},{value:`sevenDays`,labelKey:`privacyPage.retentionSevenDays`},{value:`thirtyDays`,labelKey:`privacyPage.retentionThirtyDays`},{value:`ninetyDays`,labelKey:`privacyPage.retentionNinetyDays`},{value:`keepForever`,labelKey:`privacyPage.retentionKeepForever`}],vt=`thirtyDays`;function $(){return(0,J.jsx)(`div`,{className:`h-px bg-[var(--surface-active)] dark:bg-[var(--surface-lift)]`})}function yt(){let{t:e}=z(`settings`),t=A(),n=Se(),i=n,a=s.use.user()?.id??null,[o]=pe(),[c]=r(),l=o??!0,d=c??!0,[f,p]=(0,q.useState)(()=>u(`llmLogRetention`,vt)),m=(0,q.useMemo)(()=>_t.map(t=>({value:t.value,label:e(t.labelKey)})),[e]);return(0,J.jsxs)(`div`,{className:`space-y-4`,children:[(0,J.jsx)(it,{}),(0,J.jsx)(Xe,{}),(0,J.jsx)(gt,{}),(0,J.jsx)(lt,{}),(0,J.jsx)(ct,{}),(0,J.jsx)(G,{title:e(`privacyPage.title`),subtitle:n?(0,J.jsx)(Ae,{ns:`settings`,i18nKey:`privacyPage.subtitleWithPolicy`,components:{policyLink:(0,J.jsx)(ke,{href:ae(Ce.docs.legal.privacyPolicy),tone:`quiet`,glyph:!1})}}):void 0,children:(0,J.jsxs)(`div`,{className:`space-y-4`,children:[i&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(K,{label:e(`privacyPage.shareAnalyticsLabel`),helperText:e(`privacyPage.shareAnalyticsHelper`),checked:l,onChange:()=>{N(`share_analytics`,!l,{userId:a,hasPlatformSession:n})},variant:`toggle-trailing`}),(0,J.jsx)($,{}),(0,J.jsx)(K,{label:e(`privacyPage.shareDiagnosticsLabel`),helperText:e(`privacyPage.shareDiagnosticsHelper`),checked:d,onChange:()=>{N(`share_diagnostics`,!d,{userId:a,hasPlatformSession:n})},variant:`toggle-trailing`}),(0,J.jsx)($,{})]}),(0,J.jsx)(rt,{}),t!==`gated`&&(0,J.jsx)($,{}),(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`label`,{htmlFor:`llm-log-retention`,className:`block text-body-medium-default text-[var(--content-default)]`,children:e(`privacyPage.llmLogRetentionLabel`)}),(0,J.jsx)(`div`,{className:`mt-2`,style:{maxWidth:280},children:(0,J.jsx)(M,{value:f,onChange:e=>{p(e),b(`llmLogRetention`,e)},options:m})}),(0,J.jsx)(`p`,{className:`mt-2 text-body-small-lighter text-[var(--content-tertiary)]`,children:e(`privacyPage.llmLogRetentionDescription`)})]})]})})]})}export{yt as PrivacyPage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{$C as t,Af as n,Ch as r,Cx as i,Js as a,Ks as o,Of as s,Oi as c,SS as l,Si as u,Th as d,Ws as f,Yy as p,db as m,dg as h,fS as g,fb as _,gb as v,hS as y,hb as b,ib as x,jf as ee,nx as S,ob as C,pb as w,sb as T,xS as E,xf as D}from"./app-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{$C as t,Af as n,Ch as r,Cx as i,Js as a,Ks as o,Of as s,Oi as c,SS as l,Si as u,Th as d,Ws as f,Yy as p,db as m,dg as h,fS as g,fb as _,gb as v,hS as y,hb as b,ib as x,jf as ee,nx as S,ob as C,pb as w,sb as T,xS as E,xf as D}from"./app-BEoekemj.js";import{E as O}from"./vendor-cVd2QlFV.js";import{_ as k,f as te,t as A,x as j}from"./react-B9IgSVeK.js";import{t as M}from"./plugin-attribution-RBBRvghI.js";import{n as N,t as P}from"./consent-controls-CSns_4iB.js";import{r as F,t as I}from"./checkout-continuation-ZsRm--tW.js";var L=e(j(),1),R=A();function z({current:e,total:t,color:n}){let{t:r}=O(`onboarding`);return(0,R.jsx)(`div`,{className:`flex items-center gap-1.5`,role:`group`,"aria-label":r(`stepIndicator.ariaLabel`,{current:e+1,total:t}),children:Array.from({length:t},(t,r)=>(0,R.jsx)(`div`,{"aria-hidden":`true`,className:`h-[3px] w-8 rounded-full transition-colors`,style:n?{backgroundColor:n,opacity:r<=e?1:.3}:void 0,children:n?null:(0,R.jsx)(`div`,{className:`h-full w-full rounded-full bg-[var(--content-default)] ${r<=e?``:`opacity-20`}`})},r))})}function B(){let{t:e}=O(`onboarding`),y=te(),[x]=k(),A=r.use.user()?.id??null,j=l(),B=p(),[H,U]=n(),W=H??!0,[G,K]=ee(),[q,J]=s(),Y=d(),X=F();(0,L.useEffect)(()=>{a()},[]);let Z=x.get(`preview`)===`true`,Q=(0,L.useCallback)(e=>{},[]),ne=Z?Q:U,re=Z?Q:K,ie=Z?Q:J,ae=m(),$=(0,L.useCallback)(e=>{if(Z)return;h({userId:A,tos:G,privacy:q,shareAnalytics:null,shareDiagnostics:W,hasPlatformSession:Y}),o(f.privacyTos,{userId:A});let t=D(x.get(`returnTo`));if(t){y(e?b(t):t,c);return}let n=x.get(`hosting`),r=new URLSearchParams;n&&r.set(`hosting`,n);let a=x.get(M);a&&r.set(M,a);let s=r.toString(),l=w({isLocalHatch:i()&&n!==null&&n!==`vellum-cloud`,skipResearch:e,selectedAssistantOnboarded:v(S.getState().assistants,g()),newAssistant:_(x)}),u=e?b(`${l}${s?`?${s}`:``}`):`${l}${s?`?${s}`:``}`,d=T();if(d?.resumeAfterOnboarding===!0)if(X===`disabled`)C();else{let e=V(d);if(e){e.set(I,u),y(`${E.checkout}?${e.toString()}`,c);return}}y(u,c)},[q,Y,Z,y,x,W,X,G,A]);return(0,R.jsx)(u,{avatarWave:`beside`,children:(0,R.jsxs)(`div`,{className:`mx-auto flex w-full max-w-xl flex-col items-center ${j?`min-h-full px-8 pt-21 pb-4 electron-prechat-type`:`px-6 py-16`} text-[var(--content-default)]`,children:[B&&(0,R.jsx)(`div`,{className:`mb-8 flex w-full justify-center`,style:{animation:`fadeInUp 0.3s ease-out 0.1s both`},children:(0,R.jsx)(z,{current:2,total:3})}),(0,R.jsx)(`h1`,{className:j?`text-title-large`:`text-3xl font-semibold tracking-tight`,style:{animation:`fadeInUp 0.5s ease-out 0.1s both`},children:e(`privacyScreen.title`)}),(0,R.jsx)(`p`,{className:`text-center text-body-medium-lighter text-[var(--content-tertiary)] ${j?`mt-3.5`:`mt-4`}`,style:{animation:`fadeInUp 0.5s ease-out 0.3s both`},children:e(`privacyScreen.body`)}),(0,R.jsx)(N,{electron:j,showAnalytics:!1,shareAnalytics:!1,shareDiagnostics:W,onShareAnalyticsChange:Q,onShareDiagnosticsChange:ne,className:`mt-8 w-full`,style:{animation:`fadeInUp 0.5s ease-out 0.4s both`}}),(0,R.jsx)(P,{electron:j,privacyConsent:q,tosAccepted:G,onPrivacyChange:ie,onTosChange:re,className:`mt-6 w-full`,style:{animation:`fadeInUp 0.5s ease-out 0.5s both`}}),(0,R.jsxs)(`div`,{className:`mt-8 flex w-full flex-col ${j?`gap-2.5`:`gap-2`}`,style:{animation:`fadeInUp 0.5s ease-out 0.55s both`},children:[(0,R.jsx)(t,{variant:`primary`,size:j?`regular`:`large`,fullWidth:!0,disabled:!G||!q,onClick:()=>$(!1),children:e(`privacyScreen.start`)}),ae&&(0,R.jsx)(t,{variant:`outlined`,size:j?`regular`:`large`,fullWidth:!0,disabled:!G||!q,onClick:()=>$(!0),children:e(`privacyScreen.skipToChat`)}),(0,R.jsx)(t,{variant:`ghost`,size:j?`regular`:`large`,fullWidth:!0,onClick:()=>y(i()?E.onboarding.hosting:E.onboarding.start,c),children:e(`actions.back`)})]})]})})}function V(e){return e.kind===`package`?new URLSearchParams({[y]:e.packageKey}):e.storageTier===null?null:x({machineTier:e.machineTier,storageTier:e.storageTier,creditTier:e.creditTier})}export{B as PrivacyScreen};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{$C as t,Ch as n,FS as r,Iu as i,K_ as a,LS as o,MC as s,OC as c,PS as l,Z_ as u,_g as d,gg as f,hC as p,hg as m,mg as h,pg as g,sC as _,xS as v}from"./app-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{$C as t,Ch as n,FS as r,Iu as i,K_ as a,LS as o,MC as s,OC as c,PS as l,Z_ as u,_g as d,gg as f,hC as p,hg as m,mg as h,pg as g,sC as _,xS as v}from"./app-BEoekemj.js";import{$n as y,E as b,O as x,d as S,f as C,s as w}from"./vendor-cVd2QlFV.js";import{n as T,t as E,x as D}from"./react-B9IgSVeK.js";import{Ji as O,Ui as k,Yn as A}from"./icons-C0wyat6T.js";import{t as j}from"./detail-card-DdL-TwEw.js";var M=e(D(),1),N=g,P=`Please choose a different handle.`;async function F(e,t){let{data:n,error:r,response:i}=await u({path:{id:e},body:{handle:t},throwOnError:!1});if(!i)return{kind:`error`,message:o(r,void 0,`Failed to save handle.`)??`Failed to save handle.`};if(i.ok&&n)return{kind:`ok`,data:n};if(i.status===409){let{message:e}=d(r,`handle`,N.taken);return{kind:`taken`,message:e}}if(i.status===400){let{code:e,message:t}=d(r,`handle`,P);return{kind:`invalid`,code:e,message:t}}return{kind:`error`,message:o(r,i,`Failed to save handle.`)}}async function I(e,t,n){let{data:i,error:s,response:c}=await a({path:{assistant_id:e},query:{handle:t},signal:n,throwOnError:!1});if(r(c,s,`Failed to check handle availability.`),!c.ok||!i)throw new l(c.status,c.status===429?`Too many checks — try again in a moment.`:o(s,c,`Failed to check handle availability.`));return{available:i.available,code:i.code??null,message:i.message??null}}function L(e){return/\d{2,}$/.test(e)}var R=E(),z=300,B=1400;function V({initialHandle:e,inputLabel:n,helperText:r,idleHelperText:i,checkAvailable:a,save:o,onSaved:s,saveSuccessToast:l,fieldId:u,layout:d=`inline`}){let f=d===`modal`,{t:m}=b(),[h,g]=(0,M.useState)(e),[_,v]=(0,M.useState)(null),[y,x]=(0,M.useState)(!1),[T,E]=(0,M.useState)(`idle`),[D,j]=(0,M.useState)(null),P=w(),F=(0,M.useRef)(null),I=(0,M.useMemo)(()=>h.trim().toLowerCase(),[h]),L=I===e.toLowerCase();(0,M.useEffect)(()=>{if(L||I.length===0){x(!1),F.current?.abort();return}let e=new AbortController;F.current?.abort(),F.current=e,x(!0);let t=window.setTimeout(async()=>{try{let t=await a(I,e.signal);e.signal.aborted||v(t)}catch(t){e.signal.aborted||j(t instanceof Error?t.message:m(`profileCard.checkAvailabilityFailed`))}finally{e.signal.aborted||x(!1)}},z);return()=>{window.clearTimeout(t),e.abort()}},[I,L,a,m]);let V=(()=>{if(D)return D;if(_&&!_.available){let e=_.code;return _.message??(e?N[e]:m(`profileCard.chooseDifferentHandle`))}return null})(),H=V?r:L?i??null:y?m(`profileCard.checkingAvailability`):_?.available?m(`profileCard.availableHelper`):null,U=!L&&!y&&_?.available!==!1&&T!==`saving`,W=(0,M.useCallback)(async()=>{if(!U)return;E(`saving`),j(null);let e=await o(I);if(e.kind===`ok`){E(`saved`),s(e.data),p.success(l),window.setTimeout(()=>E(`idle`),B);return}if(e.kind===`taken`){E(`idle`),v({available:!1,code:`taken`,message:e.message});return}if(e.kind===`invalid`){E(`idle`),v({available:!1,code:e.code,message:e.message});return}E(`error`),j(e.message),p.error(e.message)},[U,I,s,o,l]),G=(()=>{if(L&&h.length>0||h.length===0)return null;let e=y?`checking`:_?.available?`available`:_?.available===!1?`invalid`:null;return e?(0,R.jsx)(C,{mode:`wait`,initial:!1,children:(0,R.jsxs)(S.span,{initial:P?!1:{opacity:0,scale:.85},animate:{opacity:1,scale:1},exit:P?void 0:{opacity:0,scale:.85},transition:{duration:.14,ease:`easeOut`},className:`flex items-center`,"aria-hidden":e!==`available`&&e!==`invalid`,children:[e===`checking`&&(0,R.jsx)(A,{className:`h-4 w-4 animate-spin text-[var(--content-tertiary)]`}),e===`available`&&(0,R.jsx)(O,{className:`h-4 w-4 text-[var(--system-positive-strong)]`,"aria-label":m(`profileCard.available`)}),e===`invalid`&&(0,R.jsx)(k,{className:`h-4 w-4 text-[var(--system-negative-strong)]`,"aria-label":m(`profileCard.notAvailable`)})]},e)}):null})(),K=(()=>{switch(T){case`saving`:return(0,R.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,R.jsx)(A,{className:`h-3.5 w-3.5 animate-spin`,"aria-hidden":!0}),m(`profileCard.saving`)]});case`saved`:return(0,R.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,R.jsx)(O,{className:`h-3.5 w-3.5`,"aria-hidden":!0}),m(`profileCard.saved`)]});default:return m(`profileCard.save`)}})();return(0,R.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,R.jsx)(c,{label:f?void 0:n,"aria-label":f?n:void 0,value:h,onChange:e=>{g(e.target.value.replace(/\s+/g,``)),v(null),j(null)},autoCorrect:`off`,autoCapitalize:`none`,spellCheck:!1,maxLength:30,leftIcon:(0,R.jsx)(`span`,{className:`select-none font-mono text-[var(--content-tertiary)]`,"aria-hidden":!0,children:`@`}),rightIcon:G,errorText:V??void 0,helperText:H??(f?r:void 0),"aria-invalid":!!V,fullWidth:!0,"data-testid":`${u}-input`}),f?(0,R.jsx)(`div`,{className:`flex justify-end`,children:(0,R.jsx)(t,{variant:`primary`,onClick:W,disabled:!U,"aria-live":`polite`,"data-testid":`${u}-save`,children:K})}):null,!f&&(!L||T!==`idle`)&&(0,R.jsx)(`div`,{className:`flex justify-end`,children:(0,R.jsx)(t,{variant:`primary`,size:`compact`,onClick:W,disabled:!U,"aria-live":`polite`,"data-testid":`${u}-save`,children:K})})]})}function H({initial:e,onSaved:t}){let{t:r}=b(),i=n.use.refreshSession(),a=L(e.username)?r(`profileCard.userHandleIdleAutoGenerated`):void 0,o=(0,M.useCallback)(async e=>await f({username:e}),[]),s=(0,M.useCallback)((e,t)=>h(e,t),[]),c=(0,M.useCallback)(e=>{t(e),i()},[t,i]);return(0,R.jsx)(V,{initialHandle:e.username,inputLabel:r(`profileCard.userHandleLabel`),helperText:r(`profileCard.handleHelper`),idleHelperText:a,checkAvailable:s,save:o,onSaved:c,saveSuccessToast:r(`profileCard.profileUpdated`),fieldId:`user-handle`})}function U({assistant:e,onSaved:t,layout:n=`inline`}){let{t:r}=b(),a=e.handle??``,o=y({...i({path:{assistant_id:e.id}})}).data?.results?.[0],l=!!o&&o.subdomain.toLowerCase()===a.toLowerCase(),u=a.length===0?r(`profileCard.assistantHandleIdleEmpty`):void 0,d=(0,M.useCallback)(async t=>await F(e.id,t),[e.id]),f=(0,M.useCallback)((t,n)=>I(e.id,t,n),[e.id]);return l?(0,R.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,R.jsx)(c,{label:n===`modal`?void 0:r(`profileCard.assistantHandleLabel`),"aria-label":n===`modal`?r(`profileCard.assistantHandleLabel`):void 0,value:a,readOnly:!0,disabled:!0,leftIcon:(0,R.jsx)(`span`,{className:`select-none font-mono text-[var(--content-tertiary)]`,"aria-hidden":!0,children:`@`}),fullWidth:!0,"data-testid":`assistant-handle-input`}),(0,R.jsx)(`p`,{className:`text-body-small-default text-[var(--content-tertiary)]`,children:(0,R.jsx)(x,{i18nKey:`profileCard.handleLocked`,components:{releaseLink:(0,R.jsx)(T,{to:`${v.channels}?setup=email&release=1`,className:s()})}})})]}):(0,R.jsx)(V,{initialHandle:a,inputLabel:r(`profileCard.assistantHandleLabel`),helperText:r(n===`modal`?`assistantHandleModal.helper`:`profileCard.handleHelper`),idleHelperText:u,checkAvailable:f,save:d,onSaved:t,saveSuccessToast:r(`profileCard.assistantHandleUpdated`),fieldId:`assistant-handle`,layout:n})}function W(){let{t:e}=b();return(0,R.jsxs)(`div`,{className:`flex flex-col gap-4`,"aria-busy":!0,"aria-live":`polite`,children:[(0,R.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,R.jsx)(_,{className:`h-3 w-16`}),(0,R.jsx)(_,{className:`h-9 w-full rounded-md`}),(0,R.jsx)(_,{className:`h-3 w-72`})]}),(0,R.jsx)(_,{className:`h-9 w-full rounded-md`}),(0,R.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,R.jsx)(_,{className:`h-3 w-60`}),(0,R.jsx)(_,{className:`h-7 w-16 rounded-md`})]}),(0,R.jsx)(`span`,{className:`sr-only`,children:e(`profileCard.loading`)})]})}function G(){return(0,R.jsx)(`div`,{className:`border-t border-[var(--border-subtle)]`})}function K({assistant:e,showHandles:t=!0,children:r}={}){let{t:i}=b(),a=n.use.user?.()?.email??null;return(0,R.jsx)(j,{title:i(`profileCard.title`),subtitle:i(`profileCard.subtitle`),children:(0,R.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[a&&(0,R.jsx)(`div`,{className:`max-w-[420px]`,children:(0,R.jsx)(c,{label:i(`profileCard.emailLabel`),value:a,disabled:!0,readOnly:!0})}),t&&(0,R.jsxs)(R.Fragment,{children:[a&&(0,R.jsx)(G,{}),(0,R.jsx)(q,{assistant:e})]}),r!=null&&(0,R.jsxs)(R.Fragment,{children:[(a||t)&&(0,R.jsx)(G,{}),r]})]})})}function q({assistant:e}){let[t,n]=(0,M.useState)(null),[r,i]=(0,M.useState)(null),a=w(),[o,s]=(0,M.useState)(e??null);return(0,M.useEffect)(()=>{s(e??null)},[e]),(0,M.useEffect)(()=>{let e=!1;return m().then(t=>{e||n(t)}).catch(t=>{e||i(t instanceof Error?t.message:`Failed to load profile.`)}),()=>{e=!0}},[]),r?(0,R.jsx)(`p`,{className:`text-body-small-default text-[var(--system-negative-strong)]`,children:r}):t?(0,R.jsxs)(S.div,{initial:a?!1:{opacity:0,y:4},animate:{opacity:1,y:0},transition:{duration:.22,ease:`easeOut`},className:`flex flex-col gap-6`,children:[(0,R.jsx)(H,{initial:t,onSaved:n}),o&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`div`,{className:`border-t border-[var(--border-subtle)]`}),(0,R.jsx)(U,{assistant:o,onSaved:s})]})]}):(0,R.jsx)(W,{})}export{I as i,K as n,N as r,U as t};
|
package/dist/assets/{provider-callback-page-CNNhqRdO.js → provider-callback-page-Bh4aARKp.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{AS as t,Cf as n,Ch as r,Cx as i,Kx as a,MC as o,P_ as s,bb as c,iw as l,ll as u,m_ as d,nl as f,ol as p,wb as m,xS as h,zy as g}from"./app-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{AS as t,Cf as n,Ch as r,Cx as i,Kx as a,MC as o,P_ as s,bb as c,iw as l,ll as u,m_ as d,nl as f,ol as p,wb as m,xS as h,zy as g}from"./app-BEoekemj.js";import{E as _}from"./vendor-cVd2QlFV.js";import{_ as v,f as y,n as b,t as x,x as S}from"./react-B9IgSVeK.js";import{r as C,t as w}from"./account-shell-RM4hokh5.js";var T=e(S(),1),E=x();function D(){let{t:e}=_(`account`),[x]=v(),S=y(),D=r.use.refreshSession(),O=x.get(`error`),[k,A]=(0,T.useState)(null),j=(0,T.useRef)(!1),M=x.get(`returnTo`),N=p(x);return(0,T.useEffect)(()=>{j.current||O||(j.current=!0,(async()=>{try{let e=await c(),t=m(e.ok&&!!e.data.user,e.ok?[]:e.flows??[]);switch(t.kind){case`authenticated`:{if(await D(),await n(),i())try{let e=await s();if(e.ok&&e.data.length>0&&(await a(e.data,d.getState().currentOrganizationId??void 0),!M)){S(h.assistant,{replace:!0});break}}catch{}let e=h.assistant,{destination:t,requiresFullPageNavigation:r}=u({returnTo:M,fallback:e,authIntent:N});r?window.location.href=t:S(t,{replace:!0});break}case`provider_signup`:{let e=x.get(`returnTo`);S(e?`${h.account.providerSignup}?returnTo=${encodeURIComponent(e)}`:h.account.providerSignup,{replace:!0});break}case`error`:A(t.message);break}}catch(e){t(e,{context:`provider_callback`}),A(`Something went wrong. Please try signing in again.`)}})())},[N,O,D,M,S,x]),O===`signup_closed`?(0,E.jsxs)(w,{children:[(0,E.jsx)(C,{title:e(`providerCallbackPage.signupClosedTitle`),subtitle:e(`providerCallbackPage.signupClosedSubtitle`)}),(0,E.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[(0,E.jsx)(g,{href:f,className:`inline-flex items-center justify-center gap-2 rounded-lg bg-[var(--primary-base)] px-6 py-3 text-sm font-medium text-[var(--content-inset)] no-underline transition-colors hover:bg-[var(--primary-hover)]`,glyph:!1,children:e(`providerCallbackPage.joinCommunity`)}),(0,E.jsx)(b,{to:h.account.login,className:l(o({tone:`quiet`}),`text-sm font-medium text-[var(--content-emphasised)]`),children:e(`providerCallbackPage.backToSignIn`)})]})]}):O||k?(0,E.jsxs)(w,{children:[(0,E.jsx)(C,{title:e(`providerCallbackPage.failedTitle`),subtitle:k??e(`providerCallbackPage.failedSubtitle`)}),(0,E.jsx)(`div`,{className:`flex flex-col items-center gap-4`,children:(0,E.jsx)(b,{to:h.account.login,className:`inline-flex items-center justify-center gap-2 rounded-lg bg-[var(--primary-base)] px-6 py-3 text-sm font-medium text-[var(--content-inset)] no-underline transition-colors hover:bg-[var(--primary-hover)]`,children:e(`providerCallbackPage.backToSignIn`)})})]}):(0,E.jsx)(w,{children:(0,E.jsx)(C,{title:e(`providerCallbackPage.completingTitle`),subtitle:e(`providerCallbackPage.completingSubtitle`)})})}export{D as ProviderCallbackPage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Av as e,Bg as t,Kv as n,Xc as r,aS as i,jv as a,kv as o,wy as s}from"./app-
|
|
1
|
+
import{Av as e,Bg as t,Kv as n,Xc as r,aS as i,jv as a,kv as o,wy as s}from"./app-BEoekemj.js";var c=[{id:`anthropic`,displayName:`Anthropic`,apiKeyPlaceholder:`sk-ant-api03-...`,docsUrl:`https://console.anthropic.com/settings/keys`,requiresKey:!0,defaultModel:`claude-sonnet-4-6`},{id:`openai`,displayName:`OpenAI`,apiKeyPlaceholder:`sk-proj-...`,docsUrl:`https://platform.openai.com/api-keys`,requiresKey:!0,defaultModel:`gpt-5.4-mini`},{id:`gemini`,displayName:`Google Gemini`,apiKeyPlaceholder:`AIza...`,docsUrl:`https://aistudio.google.com/apikey`,requiresKey:!0,defaultModel:`gemini-3-flash-preview`},{id:`ollama`,displayName:`Ollama`,apiKeyPlaceholder:null,docsUrl:`https://ollama.com/download`,requiresKey:!1,defaultModel:`llama3.2`,models:[{id:`llama3.2`,displayName:`Llama 3.2`,contextWindowTokens:128e3,maxOutputTokens:4096},{id:`mistral`,displayName:`Mistral`,contextWindowTokens:32768,maxOutputTokens:4096}]},{id:`fireworks`,displayName:`Fireworks`,apiKeyPlaceholder:`fw_...`,docsUrl:`https://fireworks.ai/account/api-keys`,requiresKey:!0,defaultModel:`accounts/fireworks/models/minimax-m3`},{id:`openrouter`,displayName:`OpenRouter`,apiKeyPlaceholder:`sk-or-v1-...`,docsUrl:`https://openrouter.ai/keys`,requiresKey:!0,defaultModel:`anthropic/claude-sonnet-4.6`},{id:`vercel-ai-gateway`,displayName:`Vercel AI Gateway`,apiKeyPlaceholder:`vck_...`,docsUrl:`https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai-gateway%2Fapi-keys&title=AI+Gateway+API+Keys`,requiresKey:!0,defaultModel:`anthropic/claude-sonnet-4.6`},{id:`openai-compatible`,displayName:`OpenAI-compatible`,apiKeyPlaceholder:`Your provider's API key (optional)`,docsUrl:null,requiresKey:!0}],l=c[0];function u(e){return c.find(t=>t.id===e)}function d(e){let t=u(e);return t?.defaultModel??t?.models?.[0]?.id}var f=`0.11.1`;async function p(e){let n=i();return t(n===null?(await r(e))?.version??null:n,f)}var m=`onboarding.providerKey`,h=2e5,g=`custom-balanced`,_=new Set([`ollama`,`openai-compatible`]);function v(e){try{if(e===null){sessionStorage.removeItem(m);return}sessionStorage.setItem(m,JSON.stringify(e))}catch{}}function y(e){return typeof e==`object`&&!!e&&`provider`in e&&typeof e.provider==`string`&&`key`in e&&typeof e.key==`string`&&(!(`model`in e)||typeof e.model==`string`)&&(!(`baseUrl`in e)||typeof e.baseUrl==`string`)&&(!(`customModels`in e)||typeof e.customModels==`string`)}function b(){try{let e=sessionStorage.getItem(m);if(!e)return null;let t=JSON.parse(e);return y(t)?t:null}catch{return null}}function x(){let e=b();try{sessionStorage.removeItem(m)}catch{}return e}var S=class extends Error{provider;reason;constructor(e,t){super(t??`${e} rejected the API key`),this.name=`ProviderKeyRejectedError`,this.provider=e,this.reason=t}};function C(e,t){if(!e?.ok)throw Object.assign(Error(t),{status:e?.status})}async function w(e,t,n){let{data:r,response:i}=await s({path:{assistant_id:e},body:{type:`api_key`,name:t,value:n},throwOnError:!1});if(C(i,`Failed to write provider secret`),r&&r.success===!1)throw new S(t,r.error)}async function T(e,t){let r=u(t)?.displayName??t,{response:i}=await n({path:{assistant_id:e},body:{name:`${t}-personal`,provider:t,auth:{type:`api_key`,credential:`credential/${t}/api_key`},label:`${r} (Personal)`},throwOnError:!1});i?.status!==409&&C(i,`Failed to create provider connection`)}async function E(e,t){let{response:n}=await o({path:{assistant_id:e},body:{provider:t},throwOnError:!1});C(n,`Failed to set default provider`)}async function D(e,t,r,i){let a=t===`openai-compatible`,o=r||a?{type:`api_key`,credential:`credential/${t}/api_key`}:{type:`none`},s=a&&i?.baseUrl?i.baseUrl:void 0,c=a&&i?.customModels?i.customModels.split(`,`).map(e=>({id:e.trim()})).filter(e=>e.id):void 0,{response:l}=await n({path:{assistant_id:e},body:{name:t,provider:t,auth:o,...s===void 0?{}:{base_url:s},...c===void 0?{}:{models:c}},throwOnError:!1});l?.status!==409&&C(l,`Failed to create provider connection`)}function O(e,t){let n=u(e),r=n?.models?.find(e=>e.id===t),i={provider:e,model:t,provider_connection:e,source:`user`,label:n?.displayName??e,maxTokens:r?.maxOutputTokens??16e3,contextWindow:{maxInputTokens:r?.contextWindowTokens??h}};return e===`ollama`?(i.effort=`none`,i.thinking={enabled:!1,streamThinking:!1}):(i.effort=`high`,i.thinking={enabled:!0,streamThinking:!0}),i}async function k(t,n,r){let{response:i}=await e({path:{assistant_id:t,name:n},body:O(n,r),throwOnError:!1});C(i,`Failed to set provider profile`);let{response:o}=await a({path:{assistant_id:t},body:{llm:{activeProfile:n}},throwOnError:!1});C(o,`Failed to activate provider profile`)}async function A(t,n,r){await D(t,n.provider,r,{baseUrl:n.baseUrl,customModels:n.customModels});let i=n.model?.trim()||d(n.provider);if(!i)return;let{response:o}=await e({path:{assistant_id:t,name:g},body:{...O(n.provider,i),label:`Balanced`,description:`Good balance of quality, cost, and speed`},throwOnError:!1});C(o,`Failed to set provider profile`);let{response:s}=await a({path:{assistant_id:t},body:{llm:{activeProfile:g}},throwOnError:!1});C(s,`Failed to activate provider profile`)}async function j(e){let t=x();if(t)try{await M(e,t)}catch(e){throw e instanceof S&&v(t),e}}async function M(e,t){let n=t.key.trim();if(!_.has(t.provider)){await w(e,t.provider,n),await p(e)?(await T(e,t.provider),await E(e,t.provider)):await A(e,t,n.length>0);return}let r=n.length>0,i=t.provider===`openai-compatible`;(r||i)&&await w(e,t.provider,n),await D(e,t.provider,r,{baseUrl:t.baseUrl,customModels:t.customModels});let a=t.model?.trim(),o=t.customModels?.split(`,`).map(e=>e.trim()).find(e=>e),s=a||o||d(t.provider);s&&await k(e,t.provider,s)}export{l as a,u as c,v as i,j as n,c as o,b as r,d as s,S as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Cf as t,Ch as n,MC as r,Sb as i,iw as a,ll as o,ul as s,xS as c,xb as l,yb as u}from"./app-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Cf as t,Ch as n,MC as r,Sb as i,iw as a,ll as o,ul as s,xS as c,xb as l,yb as u}from"./app-BEoekemj.js";import{E as d}from"./vendor-cVd2QlFV.js";import{_ as f,f as p,n as m,t as h,x as g}from"./react-B9IgSVeK.js";import{i as _,n as v,r as y,t as b}from"./account-shell-RM4hokh5.js";import{t as x}from"./signup-shell-rqZZKQs9.js";import{n as S}from"./signup-onboarding-handoff-4Gqmsxpv.js";var C=e(g(),1),w=h();function T(){let{t:e}=d(`account`),h=p(),[g]=f(),T=n.use.refreshSession(),E=g.get(`returnTo`),[D,O]=(0,C.useState)(``),[k,A]=(0,C.useState)(``),[j,M]=(0,C.useState)(``),[N,P]=(0,C.useState)(``),[F,I]=(0,C.useState)(``),[L,R]=(0,C.useState)(null),[z,B]=(0,C.useState)(!1),[V,H]=(0,C.useState)(!0),U=(0,C.useRef)(!1);(0,C.useEffect)(()=>{U.current||(U.current=!0,(async()=>{try{let e=await u();if(!e.ok){h(c.account.login,{replace:!0});return}O(e.data.user.email??``),A(e.data.user.username??``),M(e.data.user.first_name??``),P(e.data.user.last_name??``),H(!1)}catch{h(c.account.login,{replace:!0})}})())},[h]);let W=async()=>{let e=await i({email:D,username:k});if(!e.ok){if(l(e)){await T(),await t();let e=s(E,c.account.root);e.requiresFullPageNavigation?window.location.href=e.destination:h(e.destination);return}R(e.errors[0]?.message??`Failed to complete signup.`);return}await T(),await t();let n=o({returnTo:E,fallback:c.account.root,authIntent:`signup`});n.requiresFullPageNavigation?window.location.href=n.destination:h(n.destination)},G=async t=>{t.preventDefault(),R(null),B(!0);try{await W()}catch{R(e(`authErrors.genericFailure`))}finally{B(!1)}},K=async t=>{if(t.preventDefault(),j.trim()){R(null),B(!0);try{S(j),await W()}catch{R(e(`authErrors.genericFailure`))}finally{B(!1)}}};if(V)return(0,w.jsx)(b,{children:(0,w.jsx)(y,{title:e(`providerSignupPage.completingTitle`),subtitle:e(`providerSignupPage.completingSubtitle`)})});if(D&&k){let t=j.trim().length>0&&!z;return(0,w.jsx)(x,{children:(0,w.jsxs)(`form`,{onSubmit:K,className:`signup-details__thread`,children:[(0,w.jsxs)(`h2`,{className:`signup-details__heading`,children:[e(`providerSignupPage.headingLine1`),(0,w.jsx)(`br`,{}),e(`providerSignupPage.headingLine2`)]}),L&&(0,w.jsx)(`p`,{className:`signup-details__error`,children:L}),(0,w.jsxs)(`div`,{className:`signup-details__step`,children:[(0,w.jsxs)(`span`,{className:`signup-details__label`,children:[e(`providerSignupPage.firstNameQuestion`),` `,(0,w.jsx)(`span`,{className:`signup-details__req`,children:`*`})]}),(0,w.jsx)(`input`,{className:`signup-details__input`,type:`text`,placeholder:e(`providerSignupPage.firstNamePlaceholder`),value:j,onChange:e=>M(e.target.value),autoComplete:`given-name`,autoFocus:!0,required:!0})]}),(0,w.jsxs)(`div`,{className:`signup-details__step`,children:[(0,w.jsxs)(`span`,{className:`signup-details__label`,children:[e(`providerSignupPage.lastNameQuestion`),` `,(0,w.jsx)(`span`,{className:`signup-details__req`,children:`*`})]}),(0,w.jsx)(`input`,{className:`signup-details__input`,type:`text`,placeholder:e(`providerSignupPage.lastNamePlaceholder`),value:N,readOnly:!0,disabled:!0})]}),(0,w.jsxs)(`div`,{className:`signup-details__step`,children:[(0,w.jsx)(`span`,{className:`signup-details__label`,children:e(`providerSignupPage.roleQuestion`)}),(0,w.jsx)(`input`,{className:`signup-details__input`,type:`text`,autoComplete:`organization-title`,placeholder:e(`providerSignupPage.rolePlaceholder`),value:F,onChange:e=>I(e.target.value)})]}),(0,w.jsx)(`div`,{className:`signup-details__step`,children:(0,w.jsx)(`button`,{type:`submit`,className:`signup-details__continue`,disabled:!t,children:e(z?`providerSignupPage.submitting`:`providerSignupPage.submit`)})})]})})}return(0,w.jsxs)(b,{children:[(0,w.jsx)(y,{title:e(`providerSignupPage.completeAccountTitle`),subtitle:e(`providerSignupPage.completeAccountSubtitle`)}),(0,w.jsxs)(v,{onSubmit:G,error:L,submitLabel:e(`providerSignupPage.completeSignup`),submittingLabel:e(`providerSignupPage.completingSignup`),isSubmitting:z,footer:(0,w.jsx)(m,{to:c.account.login,className:a(r({tone:`quiet`}),`text-sm text-[var(--content-secondary)]`),children:e(`providerSignupPage.backToSignIn`)}),children:[(0,w.jsx)(_,{id:`email`,type:`email`,autoComplete:`email`,placeholder:e(`providerSignupPage.emailPlaceholder`),value:D,onChange:e=>O(e.target.value),required:!0}),(0,w.jsx)(_,{id:`username`,type:`text`,autoComplete:`username`,placeholder:e(`providerSignupPage.usernamePlaceholder`),value:k,onChange:e=>A(e.target.value),required:!0})]})]})}export{T as ProviderSignupPage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{$C as t,Ci as n,SS as r}from"./app-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{$C as t,Ci as n,SS as r}from"./app-BEoekemj.js";import{E as i}from"./vendor-cVd2QlFV.js";import{t as a,x as o}from"./react-B9IgSVeK.js";import{Ia as s}from"./icons-C0wyat6T.js";var c=e(o(),1);async function l(e){r()&&await window.vellum?.quickInput?.submit(e)}async function u(){r()&&await window.vellum?.quickInput?.dismiss()}var d=a();function f(){let{t:e}=i(),[r,a]=(0,c.useState)(``),o=(0,c.useRef)(null);(0,c.useEffect)(()=>{o.current?.focus()},[]);let f=(0,c.useCallback)(e=>{e.preventDefault();let t=r.trim();t&&(l(t),a(``))},[r]),p=(0,c.useCallback)(e=>{e.key===`Escape`&&(e.preventDefault(),u())},[]);return(0,d.jsx)(`div`,{className:`flex h-screen w-screen items-center justify-center bg-transparent p-2`,children:(0,d.jsxs)(`form`,{onSubmit:f,className:`flex w-full items-center gap-3 rounded-2xl border border-[var(--border-element)] bg-[var(--surface-base)] px-4 py-3 shadow-lg`,children:[(0,d.jsx)(`img`,{src:n(`/vellum-logo.svg`),alt:e(`quickInputPage.logoAlt`),width:24,height:24,className:`shrink-0 dark:hidden`,draggable:!1}),(0,d.jsx)(`img`,{src:n(`/vellum-logo-white.svg`),alt:e(`quickInputPage.logoAlt`),width:24,height:24,className:`hidden shrink-0 dark:block`,draggable:!1}),(0,d.jsx)(`input`,{ref:o,type:`text`,value:r,onChange:e=>a(e.target.value),onKeyDown:p,placeholder:e(`quickInputPage.placeholder`),className:`min-w-0 flex-1 bg-transparent text-sm text-[var(--content-default)] placeholder:text-[var(--content-tertiary)] outline-none`}),(0,d.jsx)(t,{type:`submit`,variant:`primary`,size:`compact`,shape:`pill`,iconOnly:(0,d.jsx)(s,{}),iconOnlyGlyphClassName:`[&_svg]:size-4`,disabled:!r.trim(),"aria-label":e(`quickInputPage.send`),className:`h-7 w-7 shrink-0`})]})})}export{f as QuickInputPage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./referral-modal-BgoEpFmG.js";export{e as ReferralModal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{$C as t,HC as n,Ly as r,Ud as i,gC as a,iw as o,rw as s,tw as c,zC as l}from"./app-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{$C as t,HC as n,Ly as r,Ud as i,gC as a,iw as o,rw as s,tw as c,zC as l}from"./app-BEoekemj.js";import{$n as u,E as d}from"./vendor-cVd2QlFV.js";import{t as f,x as p}from"./react-B9IgSVeK.js";import{Ji as m,Yn as h,li as g,pi as _,y as v}from"./icons-C0wyat6T.js";var y=e(p(),1),b=f();function x(e){return e.replace(/\.00$/,``)}function S({icon:e,value:t,label:r}){return(0,b.jsxs)(`div`,{className:`flex h-8 min-w-0 flex-1 items-center gap-1.5 rounded-lg bg-[var(--surface-base)] px-2 py-1.5`,children:[(0,b.jsx)(`span`,{"aria-hidden":`true`,className:`flex h-3.5 w-3.5 shrink-0 items-center justify-center text-[var(--content-default)]`,children:e}),(0,b.jsx)(n,{variant:`body-medium-default`,as:`span`,className:`text-[var(--content-default)]`,children:t}),(0,b.jsx)(n,{variant:`body-small-default`,as:`span`,className:`min-w-0 truncate text-[var(--content-tertiary)]`,children:r})]})}function C(){let{t:e}=d(),{data:a,isLoading:f,isError:p}=u(i()),{copy:C,copied:w}=r({successMessage:e(`referralContent.copySuccess`),errorMessage:e(`referralContent.copyError`)}),T=a?.is_eligible_for_credits===!1,E=s(),D=(0,y.useId)(),O=a?e(`referralContent.subtitleWithAmounts`,{creditAmount:x(a.referrer_credit_amount),earningCap:x(a.earning_cap)}):e(`referralContent.subtitleDefault`),k=a?(0,b.jsx)(t,{variant:`outlined`,className:o(`shrink-0`,T&&`pointer-events-none`),disabled:T,"aria-describedby":T?D:void 0,onClick:()=>C(a.referral_url),leftIcon:w?(0,b.jsx)(m,{className:`h-3.5 w-3.5`}):(0,b.jsx)(g,{className:`h-3.5 w-3.5`}),"data-testid":`referral-copy-button`,children:e(w?`referralContent.copied`:`referralContent.shareLink`)}):null;return(0,b.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,b.jsx)(n,{as:`p`,variant:`body-medium-default`,className:`text-[var(--content-tertiary)]`,children:O}),f?(0,b.jsxs)(`div`,{className:`flex items-center gap-2 text-body-medium-lighter text-[var(--content-tertiary)]`,children:[(0,b.jsx)(h,{className:`h-4 w-4 animate-spin`}),e(`referralContent.loading`)]}):p||!a?(0,b.jsx)(l,{tone:`error`,children:e(`referralContent.loadError`)}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(`div`,{className:`flex flex-wrap items-start gap-2`,children:[(0,b.jsx)(S,{icon:(0,b.jsx)(_,{className:`h-3.5 w-3.5`}),value:x(a.total_earned),label:e(`referralContent.creditsEarned`)}),(0,b.jsx)(S,{icon:(0,b.jsx)(v,{className:`h-3.5 w-3.5`}),value:a.referred_count,label:e(`referralContent.friendsReferred`)}),T?(0,b.jsx)(c,{content:e(`referralContent.gatedTooltip`),children:(0,b.jsx)(`span`,{tabIndex:E?0:void 0,className:`inline-flex shrink-0 rounded-lg focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]`,children:k})}):k]}),T&&(0,b.jsx)(n,{as:`p`,id:D,variant:`body-small-default`,className:E?`sr-only`:`text-[var(--content-tertiary)]`,children:e(`referralContent.gatedTooltip`)})]})]})}function w({open:e,onOpenChange:t}){let{t:n}=d();return(0,b.jsx)(a.Root,{open:e,onOpenChange:t,children:(0,b.jsxs)(a.Content,{"data-testid":`referral-modal`,children:[(0,b.jsx)(a.Header,{children:(0,b.jsx)(a.Title,{children:n(`referralModal.title`)})}),(0,b.jsx)(a.Body,{children:(0,b.jsx)(C,{})})]})})}export{w as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ct as e,ht as t,lt as n,mt as r,pt as i,st as a}from"./vendor-
|
|
1
|
+
import{ct as e,ht as t,lt as n,mt as r,pt as i,st as a}from"./vendor-cVd2QlFV.js";var o=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},s=/([A-Z])/g,c=e=>e.replace(s,`-$1`).toLowerCase(),l={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},u=/[&><"']/g,d=e=>String(e).replace(u,e=>l[e]),f=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?f(e.body[0]):e:e.type===`font`?f(e.body):e,p=new Set([`mathord`,`textord`,`atom`]),m=e=>p.has(f(e).type),h=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},g={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function _(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function v(e){return e.default===void 0?_(Array.isArray(e.type)?e.type[0]:e.type):e.default}function y(e,t,n,r){var i=n[t];e[t]=i===void 0?v(r):r.processor?r.processor(i):i}var b=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(g)){var n=g[t];n&&y(this,t,e,n)}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),!(!r||r===`ignore`)){if(r===!0||r===`error`)throw new o(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=h(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},x=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return re[ie[this.id]]}sub(){return re[ae[this.id]]}fracNum(){return re[oe[this.id]]}fracDen(){return re[se[this.id]]}cramp(){return re[ce[this.id]]}text(){return re[le[this.id]]}isTight(){return this.size>=2}},S=0,C=1,w=2,ee=3,T=4,te=5,ne=6,E=7,re=[new x(S,0,!1),new x(C,0,!0),new x(w,1,!1),new x(ee,1,!0),new x(T,2,!1),new x(te,2,!0),new x(ne,3,!1),new x(E,3,!0)],ie=[T,te,T,te,ne,E,ne,E],ae=[te,te,te,te,E,E,E,E],oe=[w,ee,T,te,ne,E,ne,E],se=[ee,ee,te,te,E,E,E,E],ce=[C,C,ee,ee,te,te,E,E],le=[S,C,w,ee,w,ee,w,ee],D={DISPLAY:re[S],TEXT:re[w],SCRIPT:re[T],SCRIPTSCRIPT:re[ne]},ue=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function de(e){for(var t=0;t<ue.length;t++)for(var n=ue[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var fe=[];ue.forEach(e=>e.blocks.forEach(e=>fe.push(...e)));function pe(e){for(var t=0;t<fe.length;t+=2)if(e>=fe[t]&&e<=fe[t+1])return!0;return!1}var O=e=>e+` `+e,me=80,he=function(e,t){return`M95,`+(622+e+t)+`
|
|
2
2
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
3
3
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
4
4
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{xS as t}from"./app-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{xS as t}from"./app-BEoekemj.js";import{E as n}from"./vendor-cVd2QlFV.js";import{f as r,r as i,t as a,x as o}from"./react-B9IgSVeK.js";var s=e(o(),1),c=a(),l=[{claim:`Software engineer based in Austin, TX`,confidence:`confident`,sources:[`https://github.com/example-dev`]},{claim:`Product engineer at an early-stage AI startup`,confidence:`confident`,sources:[`https://example.com/team`]},{claim:`Maintains an open-source CLI tool for local LLM evaluation and tooling`,confidence:`confident`,sources:[`https://github.com/example-dev`,`https://example.com/project`]},{claim:`Primarily writes TypeScript and Go`,confidence:`confident`,sources:[`https://github.com/example-dev`]},{claim:`Came up through a coding bootcamp rather than a CS degree`,confidence:`maybe`,sources:[]}];function u(){let{t:e}=n(`chat`);r();let[a,o]=(0,s.useState)(`results`),[u,d]=(0,s.useState)(()=>new Map);return l.map((e,t)=>({fact:e,index:t})),(0,c.jsx)(i,{to:t.assistant,replace:!0})}export{u as ResearchMockPage};
|
package/dist/assets/{research-onboarding-route-Dim74aoQ.js → research-onboarding-route-q3lZEjxC.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{$C as t,AS as n,A_ as r,Aa as i,Ch as a,Cx as o,D_ as s,Dh as c,Dy as l,E_ as u,Fa as d,Fi as f,Go as p,Gs as m,Ig as h,Iv as g,Ix as _,Ko as v,LS as y,M_ as b,Mo as x,Mv as S,Na as C,OC as w,O_ as T,PC as E,Pa as D,Po as O,QS as k,Qi as A,Qs as j,Si as M,T_ as N,Th as ee,Ti as P,Uo as te,Ux as F,Va as I,Vh as ne,Wo as L,Wt as R,Xc as re,Xs as ie,Yo as ae,_i as oe,bf as se,cS as ce,dS as le,g_ as ue,ic as z,iw as B,j_ as de,ja as fe,ki as pe,lu as me,m_ as he,my as ge,ng as _e,oy as ve,p_ as ye,px as be,py as xe,qo as Se,qs as Ce,sS as we,sy as Te,tg as Ee,vc as De,wi as Oe,xS as ke,zC as Ae}from"./app-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{$C as t,AS as n,A_ as r,Aa as i,Ch as a,Cx as o,D_ as s,Dh as c,Dy as l,E_ as u,Fa as d,Fi as f,Go as p,Gs as m,Ig as h,Iv as g,Ix as _,Ko as v,LS as y,M_ as b,Mo as x,Mv as S,Na as C,OC as w,O_ as T,PC as E,Pa as D,Po as O,QS as k,Qi as A,Qs as j,Si as M,T_ as N,Th as ee,Ti as P,Uo as te,Ux as F,Va as I,Vh as ne,Wo as L,Wt as R,Xc as re,Xs as ie,Yo as ae,_i as oe,bf as se,cS as ce,dS as le,g_ as ue,ic as z,iw as B,j_ as de,ja as fe,ki as pe,lu as me,m_ as he,my as ge,ng as _e,oy as ve,p_ as ye,px as be,py as xe,qo as Se,qs as Ce,sS as we,sy as Te,tg as Ee,vc as De,wi as Oe,xS as ke,zC as Ae}from"./app-BEoekemj.js";import{E as V,Gt as je,J as Me,Kt as Ne,O as Pe,Ut as Fe,d as H,f as Ie,l as Le,mr as Re,nr as U,o as W,s as G,u as K}from"./vendor-cVd2QlFV.js";import{_ as ze,b as Be,f as Ve,t as He,x as Ue}from"./react-B9IgSVeK.js";import{G as We,Lt as Ge,Ra as q,Yn as J,Zt as Ke,ai as qe,h as Je,i as Ye,vt as Xe,za as Ze}from"./icons-C0wyat6T.js";import{r as Qe,t as $e}from"./signup-onboarding-handoff-4Gqmsxpv.js";import{i as et,t as tt}from"./personality-sliders-DahfpXIK.js";import{n as nt,t as rt}from"./peeking-eyes-GhtIN21V.js";import{i as it,n as at,r as ot,t as st}from"./latest-assistant-text-CfRyVmjf.js";import{n as ct,r as lt,t as ut}from"./onboarding-step-layout-BsqZaEHR.js";import{a as dt,i as ft,n as pt,o as mt,r as ht,s as gt,t as _t}from"./avatar-random-Bqs0WRXW.js";import{n as vt}from"./plugin-attribution-RBBRvghI.js";import{t as yt}from"./await-org-header-settled-Bka_Fh2i.js";var Y=e(Ue(),1),bt=[{id:`grounded`,label:`Grounded`,descriptor:`Calm and precise`,tagline:`Measured. No filler.`,names:[`Penn`,`Sage`,`Atlas`,`Orion`,`Reed`,`Quill`]},{id:`warm`,label:`Warm`,descriptor:`Warm and easy`,tagline:`Friendly and casual.`,names:[`Kit`,`Remy`,`Wren`,`Milo`,`Fenn`,`Cleo`]},{id:`energetic`,label:`Energetic`,descriptor:`Fast and direct`,tagline:`Brief. To the point.`,names:[`Nova`,`Ember`,`Cade`,`Lark`,`Vela`,`Ziggy`]},{id:`poetic`,label:`Poetic`,descriptor:`Quiet and observant`,tagline:`Listens, then replies.`,names:[`Luna`,`Iris`,`Vesper`,`Lyra`,`Juno`,`Ada`]}],xt=`grounded`,St={randomized:`random_initial`,custom:`custom_name`};function Ct(){return bt.flatMap(e=>e.names)}function wt(e={}){let t=Ct(),n=e.random??Math.random,r=e.exclude?t.filter(t=>t!==e.exclude):t,i=r.length>0?r:t;return i[Math.floor(n()*i.length)]??t[0]??``}var Tt=12;function Et(e,t){let n=e.slice(0,Tt).map(e=>`- ${e.name} — ${e.description}`).join(`
|
|
2
2
|
`);return n?`
|
|
3
3
|
Capabilities you can offer me — specialized skillsets you can invoke on my behalf, not generic chat:
|
|
4
4
|
${n}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{$C as t,Af as n,Cb as ee,Ch as r,Df as i,Ef as te,Of as a,SS as o,Si as s,Tf as c,Th as ne,dg as l,fl as u,jf as d,kf as f,xS as p}from"./app-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{$C as t,Af as n,Cb as ee,Ch as r,Df as i,Ef as te,Of as a,SS as o,Si as s,Tf as c,Th as ne,dg as l,fl as u,jf as d,kf as f,xS as p}from"./app-BEoekemj.js";import{E as m}from"./vendor-cVd2QlFV.js";import{_ as h,f as g,t as _,x as v}from"./react-B9IgSVeK.js";import{ft as y}from"./icons-C0wyat6T.js";import{n as b,t as x}from"./consent-controls-CSns_4iB.js";var S=e(v(),1),C={},w={"2026-06-22":[`Introduces Together AI as a new managed model provider`]};function T(e){return C[e]??[]}function E(e){return w[e]??[]}var D=_();function O(){let{t:e}=m(`onboarding`),_=g(),[v]=h(),C=r.use.user()?.id??null,w=r.use.logout(),O=o(),k=ne(),[A,j]=d(),[M,N]=a(),[P,F]=f(),[I,L]=n(),[R]=c(),[z]=te(),B=i(),V=P??!0,H=I??!0,[U]=(0,S.useState)(()=>!A),[W]=(0,S.useState)(()=>!M),[G]=(0,S.useState)(()=>!R),[K]=(0,S.useState)(()=>!z),q=!U&&!W&&!G&&!K,[J]=(0,S.useState)(()=>!B),Y=U||q,X=W||q,Z=G||q,Q=K||q||J,$=!q&&!U&&!W,re=q?`Terms & privacy`:$?`Review your privacy preferences`:J?`Before You Start`:`Updated terms`,ie=q?`Review your terms and privacy preferences anytime.`:$?`Confirm your privacy preferences to continue.`:J?`Review and accept the terms to start using your assistant. You can update your preferences anytime in Settings.`:`We've updated our terms. Please review and accept to continue.`,ae=(0,S.useCallback)(()=>{l({userId:C,tos:A,privacy:M,shareAnalytics:Z?V:null,shareDiagnostics:Q?H:null,hasPlatformSession:k}),_(ee(v.get(`returnTo`),p.assistant),{replace:!0})},[M,k,_,v,V,H,Z,Q,A,C]),oe=(0,S.useCallback)(async()=>{await w(),u(p.account.login)},[w]),se=Y&&!A||X&&!M;return(0,D.jsx)(s,{showCreatureFooter:!1,children:(0,D.jsxs)(`div`,{className:`mx-auto flex w-full max-w-xl flex-col items-center ${O?`min-h-full px-8 pt-21 pb-4 electron-prechat-type`:`px-6 py-16`} text-[var(--content-default)]`,children:[(0,D.jsx)(`div`,{className:`flex h-12 w-12 items-center justify-center rounded-full border border-[var(--border-subtle)] bg-[var(--surface-lift)]`,style:{animation:`fadeInUp 0.5s ease-out 0.05s both`},children:(0,D.jsx)(y,{className:`h-6 w-6 text-[var(--content-secondary)]`,strokeWidth:1.75})}),(0,D.jsx)(`h1`,{className:`mt-5 ${O?`text-title-large`:`text-3xl font-semibold tracking-tight`}`,style:{animation:`fadeInUp 0.5s ease-out 0.12s both`},children:re}),(0,D.jsx)(`p`,{className:`text-center text-body-medium-lighter text-[var(--content-tertiary)] ${O?`mt-3`:`mt-3.5`}`,style:{animation:`fadeInUp 0.5s ease-out 0.2s both`},children:ie}),(Z||Q)&&(0,D.jsx)(b,{electron:O,showAnalytics:Z,showDiagnostics:Q,shareAnalytics:V,shareDiagnostics:H,onShareAnalyticsChange:F,onShareDiagnosticsChange:L,className:`mt-9 w-full`,style:{animation:`fadeInUp 0.5s ease-out 0.28s both`}}),(X||Y)&&(0,D.jsx)(x,{electron:O,showPrivacy:X,showTos:Y,privacyConsent:M,tosAccepted:A,onPrivacyChange:N,onTosChange:j,privacyNotes:X&&!J?E(`2026-06-22`):[],tosNotes:Y&&!J?T(`2026-06-08`):[],className:`mt-6 w-full`,style:{animation:`fadeInUp 0.5s ease-out 0.36s both`}}),(0,D.jsxs)(`div`,{className:`mt-9 flex w-full flex-col ${O?`gap-2.5`:`gap-2`}`,style:{animation:`fadeInUp 0.5s ease-out 0.44s both`},children:[(0,D.jsx)(t,{variant:`primary`,size:O?`regular`:`large`,fullWidth:!0,disabled:se,onClick:ae,children:e(`actions.continue`)}),(0,D.jsx)(t,{variant:`outlined`,size:O?`regular`:`large`,fullWidth:!0,onClick:oe,children:e(`actions.logOut`)})]})]})})}export{O as ReviewTermsScreen};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,r as t}from"./app-BEoekemj.js";export{e as routeTree,t as router};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Cy as e,FS as t,LC as n,LS as r,PS as i,Sy as a,_y as o,by as s,gy as c,hy as l,vy as u,xy as d,yy as f}from"./app-
|
|
1
|
+
import{Cy as e,FS as t,LC as n,LS as r,PS as i,Sy as a,_y as o,by as s,gy as c,hy as l,vy as u,xy as d,yy as f}from"./app-BEoekemj.js";import{t as p}from"./react-B9IgSVeK.js";var m=p();function h({storageKey:e,detailKey:t,section:r,detail:i}){return(0,m.jsx)(n,{className:`min-h-0 flex-1`,storageKey:e,defaultRightWidth:480,minLeftWidth:320,minRightWidth:400,hideDivider:!0,left:(0,m.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col pr-[var(--app-spacing-lg)]`,children:r}),right:(0,m.jsx)(`div`,{className:`home-detail-drawer`,children:i},t)})}function g({children:e}){return(0,m.jsx)(`div`,{className:`fixed inset-0 z-30 bg-[var(--surface-overlay)]`,style:{paddingTop:`var(--safe-area-inset-top, env(safe-area-inset-top, 0px))`,paddingBottom:`var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))`},children:e})}async function _(e,n){let{error:a,response:o}=await d({path:{assistant_id:e},body:n,throwOnError:!1});if(t(o,a,`Failed to create schedule.`),!o.ok)throw new i(o.status,r(a,o,`Failed to create schedule.`))}async function v(e,n,a){let{error:s,response:c}=await o({path:{assistant_id:e,id:n},body:a,throwOnError:!1});if(t(c,s,`Failed to update schedule.`),!c.ok)throw new i(c.status,r(s,c,`Failed to update schedule.`))}var y=`Failed to move schedules to the selected profile.`;async function b(e,n,o){let{data:s,error:c,response:l}=await a({path:{assistant_id:e},body:{...n==null?{}:{from:n},to:o},throwOnError:!1});if(t(l,c,y),!l.ok)throw new i(l.status,r(c,l,y));return s?.reassigned??0}async function x(e,n,a=10,o){let{data:s,error:c,response:l}=await f({path:{assistant_id:e,id:n},query:{limit:a,before:o},throwOnError:!1});if(t(l,c,`Failed to load schedule runs.`),!l.ok)throw new i(l.status,r(c,l,`Failed to load schedule runs.`));return{runs:s?.runs??[],nextCursor:s?.nextCursor??null}}async function S(n,a){let{data:o,error:s,response:c}=await e({path:{assistant_id:n},query:{from:a.from,to:a.to},throwOnError:!1});if(t(c,s,`Failed to load schedule usage.`),!c.ok)throw new i(c.status,r(s,c,`Failed to load schedule usage.`));return o?.summaries??[]}async function C(e,n,a){let{error:o,response:c}=await s({path:{assistant_id:e,id:n},body:{enabled:a},throwOnError:!1});if(t(c,o,`Failed to toggle schedule.`),!c.ok)throw new i(c.status,r(o,c,`Failed to toggle schedule.`))}async function w(e,n){let{error:a,response:o}=await c({path:{assistant_id:e,id:n},throwOnError:!1});if(t(o,a,`Failed to delete schedule.`),!o.ok&&o.status!==204)throw new i(o.status,r(a,o,`Failed to delete schedule.`))}async function T(e,n){let{error:a,response:o}=await l({path:{assistant_id:e,id:n},throwOnError:!1});if(t(o,a,`Failed to cancel schedule.`),!o.ok)throw new i(o.status,r(a,o,`Failed to cancel schedule.`))}async function E(e,n){let{error:a,response:o}=await u({path:{assistant_id:e,id:n},throwOnError:!1});if(t(o,a,`Failed to run schedule.`),!o.ok)throw new i(o.status,r(a,o,`Failed to run schedule.`))}export{S as a,C as c,g as d,x as i,v as l,_ as n,b as o,w as r,E as s,T as t,h as u};
|