@vellumai/web 0.11.10 → 0.11.11-staging.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (371) hide show
  1. package/dist/assets/{a2a-invite-CXZCA0Zh.js → a2a-invite-_wGU6HWn.js} +1 -1
  2. package/dist/assets/{about-page-DiyUJjGf.js → about-page-DUO0LASY.js} +1 -1
  3. package/dist/assets/{account-page-CJWUeKni.js → account-page-D42H7PzM.js} +1 -1
  4. package/dist/assets/{account-shell-BF0wq3dL.js → account-shell-8ayvWwg5.js} +1 -1
  5. package/dist/assets/acp-run-detail-panel-B0Su6BSV.js +3 -0
  6. package/dist/assets/{activity-redirect-page-Bqoawew6.js → activity-redirect-page-CwB5jmpQ.js} +1 -1
  7. package/dist/assets/activity-steps-panel-GCIpCAXt.js +1 -0
  8. package/dist/assets/{add-credits-modal-0MXreRar.js → add-credits-modal-CcQltjVO.js} +1 -1
  9. package/dist/assets/ai-page-DOuG64bJ.js +1 -0
  10. package/dist/assets/android-billing-handoff-DX4FW2PE.js +1 -0
  11. package/dist/assets/{api-key-screen-DHqMahec.js → api-key-screen-BsqXUt8S.js} +1 -1
  12. package/dist/assets/{app-info-DmJ1IJBZ.js → app-info-CFw-pJBd.js} +1 -1
  13. package/dist/assets/archive-redirect-page-Dp1mnnnG.js +1 -0
  14. package/dist/assets/{assistant-status-panel-gPe4jn29.js → assistant-status-panel-Gu7yZfSV.js} +1 -1
  15. package/dist/assets/{auth-welcome-screen-CroiP_sh.js → auth-welcome-screen-CoRWc9Wn.js} +1 -1
  16. package/dist/assets/avatar-random-nmxBpjvk.js +2 -0
  17. package/dist/assets/{await-org-header-settled-CYg9juTz.js → await-org-header-settled-BuslhVn1.js} +1 -1
  18. package/dist/assets/background-task-detail-panel-BRJH3dlZ.js +1 -0
  19. package/dist/assets/billing-page-eEkbbsbp.js +3 -0
  20. package/dist/assets/{billing-redirect-page-piXEk2bD.js → billing-redirect-page-CvzCPneC.js} +1 -1
  21. package/dist/assets/{bookmarks-page-ixMKQPzN.js → bookmarks-page-BHTRMGuj.js} +1 -1
  22. package/dist/assets/{bundle-confirm-page-BZfmArZf.js → bundle-confirm-page-YP0P2TXv.js} +1 -1
  23. package/dist/assets/channel-transcript-panel-08PR-PLD.js +1 -0
  24. package/dist/assets/channels-page-route-B_xVOdyO.js +1 -0
  25. package/dist/assets/chat-BZAgyepa.js +3 -0
  26. package/dist/assets/chat-B_LNeTTq.js +3 -0
  27. package/dist/assets/chat-D6ymn2HV.js +3 -0
  28. package/dist/assets/chat-Dcr3nKow.js +3 -0
  29. package/dist/assets/chat-info-panel-BTcARkxm.js +1 -0
  30. package/dist/assets/checkout-continuation-tAX1_m3V.js +1 -0
  31. package/dist/assets/checkout-page-D8SAsMWh.js +1 -0
  32. package/dist/assets/checkout-return-target-Dwmbf6kF.js +1 -0
  33. package/dist/assets/{command-palette-BYjwAuJQ.js → command-palette-BCJ09PN8.js} +1 -1
  34. package/dist/assets/{command-palette-window-page-KNdnCkz_.js → command-palette-window-page-ChxjtkGN.js} +1 -1
  35. package/dist/assets/common-BwTsuJS0.js +1 -0
  36. package/dist/assets/common-C8F4Ck2i.js +1 -0
  37. package/dist/assets/common-CqRcxmv_.js +1 -0
  38. package/dist/assets/common-Pd0MI_So.js +1 -0
  39. package/dist/assets/{community-page-CGeHYhxR.js → community-page-CODQYbbU.js} +1 -1
  40. package/dist/assets/{companion-accent-DwBPqfnb.js → companion-accent-tJqpwbpU.js} +1 -1
  41. package/dist/assets/{companion-layout-Bv3xdQBy.js → companion-layout-B10TRaer.js} +1 -1
  42. package/dist/assets/companion-surface-page-CE94Tl96.js +1 -0
  43. package/dist/assets/companion-watch-frame-page-iLlHdxzO.js +1 -0
  44. package/dist/assets/{connect-page-DvDO8pYQ.js → connect-page-45_SQ9Hv.js} +1 -1
  45. package/dist/assets/{consent-controls-Cqi-XchY.js → consent-controls-BsInitSK.js} +1 -1
  46. package/dist/assets/contacts-gateway-7sXdqgaZ.js +1 -0
  47. package/dist/assets/contacts-page-route-Cw5iPa7X.js +1 -0
  48. package/dist/assets/{credential-entry-page-DVLlpzsQ.js → credential-entry-page-DFmx4GmU.js} +1 -1
  49. package/dist/assets/credentials-page-yqSKY71j.js +1 -0
  50. package/dist/assets/{csv-preview-ClM4J2DW.js → csv-preview-CJJ7UWi0.js} +1 -1
  51. package/dist/assets/danger-zone-redirect-page-Dnvt2tnF.js +1 -0
  52. package/dist/assets/debug-page-BGfvW4U3.js +4 -0
  53. package/dist/assets/deploy-dialogs-BPespFRy.js +1 -0
  54. package/dist/assets/{detail-card-DozMITtn.js → detail-card-DuMOMNDt.js} +1 -1
  55. package/dist/assets/{detail-panel-stop-button-DFPBKjBo.js → detail-panel-stop-button-b7hxWMlm.js} +1 -1
  56. package/dist/assets/{detail-primitives-0Z051SZJ.js → detail-primitives-Brk11nJ4.js} +1 -1
  57. package/dist/assets/developer-page-DUzrkexY.js +1 -0
  58. package/dist/assets/devices-redirect-page-DyOzvvCC.js +1 -0
  59. package/dist/assets/{dictation-overlay-page-Bocg7l5v.js → dictation-overlay-page-BpQMn4ur.js} +1 -1
  60. package/dist/assets/{document-viewer-page-C7s8-yWd.js → document-viewer-page-CRi_6mfy.js} +1 -1
  61. package/dist/assets/{ellipsis-vertical-D7YDF4in.js → ellipsis-vertical-DADudCz4.js} +1 -1
  62. package/dist/assets/{emails-page-aS97qZTB.js → emails-page-C74h6Q18.js} +1 -1
  63. package/dist/assets/emoji-catalog-data-0ErKKUgg.js +1 -0
  64. package/dist/assets/environment-store-B4U2yUid.js +1 -0
  65. package/dist/assets/{esm-a0gpEIyX.js → esm-BGgsNk0r.js} +1 -1
  66. package/dist/assets/esm-BRd6ii0N.js +2 -0
  67. package/dist/assets/esm-CAyJeylE.js +2 -0
  68. package/dist/assets/esm-CVGx4tdT.js +2 -0
  69. package/dist/assets/{esm-BhPoSi3M.js → esm-Dk9SdDAD.js} +1 -1
  70. package/dist/assets/{esm-ClRq7QTb.js → esm-Dl792NhE.js} +2 -2
  71. package/dist/assets/esm-Dm3aeuGe.js +1 -0
  72. package/dist/assets/esm-OKy-T4ws.js +2 -0
  73. package/dist/assets/esm-VMeibMx_.js +2 -0
  74. package/dist/assets/file-diff-view-CiCu8bMj.js +3 -0
  75. package/dist/assets/{file-editor-d-VpdSmC.js → file-editor-BD8PNNu7.js} +1 -1
  76. package/dist/assets/{folder-open-DbnJZzcO.js → folder-open-BDPMS2Bk.js} +1 -1
  77. package/dist/assets/general-page-RrOGJarz.js +2 -0
  78. package/dist/assets/hatching-screen-DVkz4QAA.js +1 -0
  79. package/dist/assets/home-BF9986ga.js +1 -0
  80. package/dist/assets/home-BG3X65Tv.js +1 -0
  81. package/dist/assets/home-BUeCo3yU.js +1 -0
  82. package/dist/assets/home-C8krCVKm.js +1 -0
  83. package/dist/assets/{hosting-screen-Cvd_lgtV.js → hosting-screen-DBzLZkSJ.js} +1 -1
  84. package/dist/assets/{icons-B-6TfGtd.js → icons-J6Mg9wGk.js} +1 -1
  85. package/dist/assets/identity-page-route-DHRyQDCH.js +7 -0
  86. package/dist/assets/index-jpjzZb6b.js +379 -0
  87. package/dist/assets/index-xoHlTuU-.css +2 -0
  88. package/dist/assets/inspect-page-BWNt4rrQ.js +9 -0
  89. package/dist/assets/integrations-page-DzvW1_85.js +1 -0
  90. package/dist/assets/{intelligence-layout-BHPtC2az.js → intelligence-layout-DJKG-nX6.js} +1 -1
  91. package/dist/assets/keyboard-shortcuts-redirect-page-BSIIufUC.js +1 -0
  92. package/dist/assets/latest-assistant-text-D48YOxGw.js +24 -0
  93. package/dist/assets/library-detail-page-ILf2Qy9p.js +1 -0
  94. package/dist/assets/library-page-Dz-I6fon.js +1 -0
  95. package/dist/assets/login-page-DHvA24qu.js +1 -0
  96. package/dist/assets/logout-page-VSAEudIL.js +1 -0
  97. package/dist/assets/{logs-layout-BtCoT0Cv.js → logs-layout-CfXGPNn_.js} +1 -1
  98. package/dist/assets/markdown-preview-DXQeH-xe.js +1 -0
  99. package/dist/assets/{media-preview-DvwMMiAb.js → media-preview-CeEbSIWW.js} +1 -1
  100. package/dist/assets/memory-page-route-PKbCFo_e.js +2 -0
  101. package/dist/assets/{memory-router-playground-page-knM-79pF.js → memory-router-playground-page-D-WxucPv.js} +1 -1
  102. package/dist/assets/message-files-panel-ClB4OHKu.js +1 -0
  103. package/dist/assets/{metric-card-tzSXowqX.js → metric-card-B4Gz0bhc.js} +1 -1
  104. package/dist/assets/{notifications-page-iwCiEsvG.js → notifications-page-hpLH5EtM.js} +1 -1
  105. package/dist/assets/{oauth-complete-page-BSNj9OfZ.js → oauth-complete-page-BtjuGpWP.js} +1 -1
  106. package/dist/assets/{oauth-popup-complete-page-C5tlMQzH.js → oauth-popup-complete-page-mp-6HzBF.js} +2 -2
  107. package/dist/assets/onboarding-Bp4I4_8q.js +1 -0
  108. package/dist/assets/onboarding-DWCktMSZ.js +1 -0
  109. package/dist/assets/onboarding-DfDEWpm3.js +1 -0
  110. package/dist/assets/onboarding-SOv21YJD.js +1 -0
  111. package/dist/assets/{page-shell-yrQdXH7t.js → page-shell-CHCSTsj9.js} +1 -1
  112. package/dist/assets/{pairing-page-CL8D36Jw.js → pairing-page-BvwfSoA6.js} +1 -1
  113. package/dist/assets/password-reset-page-C5pZc0DV.js +1 -0
  114. package/dist/assets/pdf-file-preview-CsGCw8JE.js +1 -0
  115. package/dist/assets/{peeking-eyes-CR9he4vp.js → peeking-eyes-DzPVjsGl.js} +1 -1
  116. package/dist/assets/personality-page-4aidsu27.js +1 -0
  117. package/dist/assets/personality-page-CEMD70q6.js +1 -0
  118. package/dist/assets/personality-sliders-DGm9A3BW.js +1 -0
  119. package/dist/assets/plans-page-_r8MVNhb.js +1 -0
  120. package/dist/assets/{platform-loopback-page-BJQB1fxq.js → platform-loopback-page-CwgM2jU7.js} +1 -1
  121. package/dist/assets/plugin-detail-page-C8rxUWMn.js +1 -0
  122. package/dist/assets/plugins-page-DNJlTg8g.js +1 -0
  123. package/dist/assets/{preview-error-CWZXjhgJ.js → preview-error-BUjzhle1.js} +1 -1
  124. package/dist/assets/privacy-page-CupfCCzq.js +1 -0
  125. package/dist/assets/privacy-screen-TaBkMvOR.js +1 -0
  126. package/dist/assets/{provider-callback-page-BiJRbo2j.js → provider-callback-page-BGXQSfbn.js} +1 -1
  127. package/dist/assets/{provider-key-e7bkE4FW.js → provider-key-Bq66KgUO.js} +1 -1
  128. package/dist/assets/{provider-signup-page-BHcqfJkj.js → provider-signup-page-D_eHOfl0.js} +1 -1
  129. package/dist/assets/{provisioning-targets-BudKfChL.js → provisioning-targets-BLTBrT0f.js} +1 -1
  130. package/dist/assets/{quick-input-page-CtnR_stl.js → quick-input-page-B5xvXL1F.js} +1 -1
  131. package/dist/assets/{rehype-katex-Byll-Mky.js → rehype-katex-BgUVZdyw.js} +1 -1
  132. package/dist/assets/{repeat-AwziNvx5.js → repeat-CCwj4O1J.js} +1 -1
  133. package/dist/assets/{research-mock-page-CcU6Ca5m.js → research-mock-page-PaQ837TX.js} +1 -1
  134. package/dist/assets/research-onboarding-route-CNoGqLkQ.js +50 -0
  135. package/dist/assets/{review-terms-screen-DNEe5COX.js → review-terms-screen-BqpTh6zA.js} +1 -1
  136. package/dist/assets/{schedules-C0VutBSw.js → schedules-2XQ76whr.js} +1 -1
  137. package/dist/assets/{schedules-DaEQbLMm.js → schedules-De4Odvkc.js} +1 -1
  138. package/dist/assets/{schedules-CtfOJ78L.js → schedules-De57J4ta.js} +1 -1
  139. package/dist/assets/schedules-DxeSUihA.js +1 -0
  140. package/dist/assets/{schedules-PMAnmP3b.js → schedules-blEdQ6yp.js} +1 -1
  141. package/dist/assets/schedules-page-d65A8NQF.js +1 -0
  142. package/dist/assets/security-redirect-page-CuZ3fT0R.js +1 -0
  143. package/dist/assets/select-assistant-screen-CdalEz_9.js +1 -0
  144. package/dist/assets/{self-hosted-servers-X73OsSz4.js → self-hosted-servers-CyDwHGSp.js} +1 -1
  145. package/dist/assets/{service-form-controls-Cn7xIKry.js → service-form-controls-CBEEpO26.js} +1 -1
  146. package/dist/assets/{setting-row-CwEW1k3A.js → setting-row-BvR6-08v.js} +1 -1
  147. package/dist/assets/settings-CBz3nIpZ.js +3 -0
  148. package/dist/assets/settings-CqYNz8kW.js +3 -0
  149. package/dist/assets/settings-CuRkdN0w.js +3 -0
  150. package/dist/assets/settings-divider-DU3ByZQg.js +1 -0
  151. package/dist/assets/settings-hFa4u0Fj.js +3 -0
  152. package/dist/assets/settings-layout-DCWgW5D0.js +1 -0
  153. package/dist/assets/share-feedback-modal-DHtKDVtF.js +2 -0
  154. package/dist/assets/{sidebar-tree-ppFGlSW4.js → sidebar-tree-BgbzXxYi.js} +1 -1
  155. package/dist/assets/{signup-page-CBFu4Phx.js → signup-page-BDateKEC.js} +1 -1
  156. package/dist/assets/{signup-shell-C9bkpRpP.js → signup-shell-CotTCquh.js} +1 -1
  157. package/dist/assets/skill-detail-page-nSrYNnY9.js +2 -0
  158. package/dist/assets/skill-detail-panel-BHAmYq37.js +1 -0
  159. package/dist/assets/{skill-removal-dialog-Dmej1bap.js → skill-removal-dialog-B_hpnrPZ.js} +1 -1
  160. package/dist/assets/skills-page-CY36J7Rw.js +1 -0
  161. package/dist/assets/{sounds-page-BqQ6POCA.js → sounds-page-CVl-NVDn.js} +1 -1
  162. package/dist/assets/{start-screen-ClrAUbI0.js → start-screen-CgauyZIw.js} +1 -1
  163. package/dist/assets/stt-language-picker-modal-N72XuoQE.js +1 -0
  164. package/dist/assets/subagent-detail-panel-DnC_SVFh.js +1 -0
  165. package/dist/assets/superpowers-page-INeojqYn.js +1 -0
  166. package/dist/assets/{system-events-page-Bm5hG4ru.js → system-events-page-OihKZDZU.js} +1 -1
  167. package/dist/assets/system-events-redirect-page-Bl15Jd-C.js +1 -0
  168. package/dist/assets/{text-preview-BKJ1Aeao.js → text-preview-BDpY47s1.js} +1 -1
  169. package/dist/assets/{theme-stage-page-DlRKsOdI.js → theme-stage-page-DT4intWx.js} +1 -1
  170. package/dist/assets/{tiptap-document-editor-B-vV6rr1.js → tiptap-document-editor-BLnpY6Pv.js} +2 -2
  171. package/dist/assets/tool-detail-panel-DC4D2Jlb.js +15 -0
  172. package/dist/assets/{trait-cycle-row-0CXwkqPS.js → trait-cycle-row-DaEuqLmF.js} +1 -1
  173. package/dist/assets/upgrade-cancel-page-CFVdwqug.js +1 -0
  174. package/dist/assets/{upgrade-success-page-CbbRpoIM.js → upgrade-success-page-BO2OzxPx.js} +1 -1
  175. package/dist/assets/usage-redirect-page-Cn2F7Ezg.js +1 -0
  176. package/dist/assets/use-app-delete-dvAb-5JI.js +1 -0
  177. package/dist/assets/use-assistant-identity-details--yIMhZJo.js +1 -0
  178. package/dist/assets/use-checkout-dismiss-refresh-BQT7Bbuc.js +1 -0
  179. package/dist/assets/{use-edge-swipe-back-DONCpBgK.js → use-edge-swipe-back-HAgGP4y-.js} +2 -2
  180. package/dist/assets/{use-hotkey-recorder-DKlT-BSf.js → use-hotkey-recorder-C2dwFKcz.js} +1 -1
  181. package/dist/assets/use-invite-link-dialog-DRWD3T4t.js +1 -0
  182. package/dist/assets/{use-platform-assistant-id-DxHYaWx7.js → use-platform-assistant-id-BtpswT_x.js} +1 -1
  183. package/dist/assets/use-return-to-short-circuit-OqzatVUm.js +1 -0
  184. package/dist/assets/{use-side-list-room-CKAXuhLb.js → use-side-list-room-CnAOR18Q.js} +1 -1
  185. package/dist/assets/{use-skill-actions-weVkg8kB.js → use-skill-actions-D4ct6gVy.js} +1 -1
  186. package/dist/assets/{use-skill-detail-files-B6B6qn4A.js → use-skill-detail-files-DYeHOVus.js} +1 -1
  187. package/dist/assets/use-supports-credentials-settings-DYOcFNFw.js +1 -0
  188. package/dist/assets/use-transcript-message-by-id-8Nt8lSao.js +1 -0
  189. package/dist/assets/{vendor-CCI2T82b.js → vendor-CV8wawxx.js} +3 -3
  190. package/dist/assets/voice-page-Dh62TnVf.js +1 -0
  191. package/dist/assets/wake-detail-panel-F1IlFslD.js +1 -0
  192. package/dist/assets/{weather-forecast-display-CuijMBMn.js → weather-forecast-display-DDqsvcr0.js} +1 -1
  193. package/dist/assets/{web-DFZ_YZd_.js → web-B7Y6zjYj.js} +1 -1
  194. package/dist/assets/{web-rdfhOXRa.js → web-BBa5psPY.js} +1 -1
  195. package/dist/assets/{web-B3en8Rn5.js → web-BEBOyL2B.js} +1 -1
  196. package/dist/assets/{web-EwBZl1wu.js → web-BOqVDQt4.js} +1 -1
  197. package/dist/assets/{web-WkD7VOGO.js → web-BZzdQ9pk.js} +1 -1
  198. package/dist/assets/{web-eI0P3yE6.js → web-DU-rNdfR.js} +1 -1
  199. package/dist/assets/{web-CoxWKp0K.js → web-J5TpUYg8.js} +1 -1
  200. package/dist/assets/{web-UubwrDv3.js → web-rLK7aHD3.js} +1 -1
  201. package/dist/assets/{web-BEoX04Jw.js → web-v3Sg2PMW.js} +1 -1
  202. package/dist/assets/welcome-screen-C2ky-B2i.js +1 -0
  203. package/dist/assets/workflow-detail-panel-B4xH8ny2.js +1 -0
  204. package/dist/assets/workspace-page-ND0GVGa5.js +1 -0
  205. package/dist/images/integrations/ATTRIBUTION.md +7 -1
  206. package/dist/images/integrations/stripe-link.svg +1 -0
  207. package/dist/index.html +4 -4
  208. package/dist/skills/stripe-app-setup/assets/icon.svg +1 -1
  209. package/dist/skills/stripe-link-wallet/assets/icon.svg +1 -1
  210. package/package.json +1 -1
  211. package/dist/assets/acp-run-detail-panel-rEbi1ucP.js +0 -5
  212. package/dist/assets/activity-steps-panel-BEVnG3V-.js +0 -1
  213. package/dist/assets/ai-page-CiAqQ6Bt.js +0 -1
  214. package/dist/assets/android-billing-handoff-Do0Z_tWL.js +0 -1
  215. package/dist/assets/archive-redirect-page-BHo8cKBO.js +0 -1
  216. package/dist/assets/avatar-random-B3s-p6ri.js +0 -2
  217. package/dist/assets/background-task-detail-panel-viJcb3cl.js +0 -1
  218. package/dist/assets/billing-page-DK2GIN6k.js +0 -3
  219. package/dist/assets/channel-transcript-panel-CjU1kHAM.js +0 -1
  220. package/dist/assets/channels-page-route-TMKiofYF.js +0 -1
  221. package/dist/assets/chat-BY2HhBFw.js +0 -3
  222. package/dist/assets/chat-BbBv19qz.js +0 -3
  223. package/dist/assets/chat-CXKEPjVV.js +0 -3
  224. package/dist/assets/chat-D7KieOMp.js +0 -3
  225. package/dist/assets/checkout-continuation--Gp9g8Cs.js +0 -1
  226. package/dist/assets/checkout-page-Dt_x1-Ak.js +0 -1
  227. package/dist/assets/checkout-return-target-DgcrCyAx.js +0 -1
  228. package/dist/assets/common-BPztxW3Y.js +0 -1
  229. package/dist/assets/common-BUtR7wv2.js +0 -1
  230. package/dist/assets/common-CbFrJQkH.js +0 -1
  231. package/dist/assets/common-Cl4fl5fm.js +0 -1
  232. package/dist/assets/companion-surface-page-DVqRvVT7.js +0 -1
  233. package/dist/assets/companion-watch-frame-page-Dmj0BZLk.js +0 -1
  234. package/dist/assets/contacts-gateway-BoQ3VEpG.js +0 -1
  235. package/dist/assets/contacts-page-route-dMHiwIhE.js +0 -1
  236. package/dist/assets/credentials-page-DGuGRbME.js +0 -1
  237. package/dist/assets/danger-zone-redirect-page-QSBD8j9D.js +0 -1
  238. package/dist/assets/debug-page-BNLV56hO.js +0 -4
  239. package/dist/assets/deploy-dialogs-B5rrR-6M.js +0 -1
  240. package/dist/assets/developer-page-bqyYnvvf.js +0 -1
  241. package/dist/assets/devices-redirect-page-D7XxyAb6.js +0 -1
  242. package/dist/assets/emoji-catalog-data-DyO0VsDK.js +0 -1
  243. package/dist/assets/environment-store-Cwp_aQVg.js +0 -1
  244. package/dist/assets/esm-BNAZWYPG.js +0 -2
  245. package/dist/assets/esm-C2CZjfig.js +0 -2
  246. package/dist/assets/esm-C66pb4Yp.js +0 -2
  247. package/dist/assets/esm-CblTp9Ve.js +0 -2
  248. package/dist/assets/esm-DP3PASER.js +0 -1
  249. package/dist/assets/esm-Egdl0RD-.js +0 -2
  250. package/dist/assets/general-page-Bpcb3cOw.js +0 -2
  251. package/dist/assets/hatching-screen-BqKoH9nP.js +0 -1
  252. package/dist/assets/home-C32sLT0d.js +0 -1
  253. package/dist/assets/home-D405qdeA.js +0 -1
  254. package/dist/assets/home-DFtnBWbS.js +0 -1
  255. package/dist/assets/home-uCy8kFT4.js +0 -1
  256. package/dist/assets/identity-page-route-Be9kkJ6U.js +0 -7
  257. package/dist/assets/index-BHBLeC80.js +0 -373
  258. package/dist/assets/index-D5tXP3pV.css +0 -2
  259. package/dist/assets/inspect-page-UYu_6yuD.js +0 -9
  260. package/dist/assets/integrations-page-4nGzHdaB.js +0 -1
  261. package/dist/assets/keyboard-shortcuts-redirect-page-HZbAKXV3.js +0 -1
  262. package/dist/assets/latest-assistant-text-BVDHPDcj.js +0 -24
  263. package/dist/assets/library-detail-page-0dxGGatK.js +0 -1
  264. package/dist/assets/library-page-CN0wcNRe.js +0 -1
  265. package/dist/assets/login-page-Ce0yHHIY.js +0 -1
  266. package/dist/assets/logout-page-HAgKDdSg.js +0 -1
  267. package/dist/assets/markdown-preview-oANTtJ4h.js +0 -1
  268. package/dist/assets/memory-page-route-Bafhl3aE.js +0 -2
  269. package/dist/assets/message-files-panel-CoABbiHA.js +0 -1
  270. package/dist/assets/onboarding-BPTfs_sw.js +0 -1
  271. package/dist/assets/onboarding-C7OPvVK5.js +0 -1
  272. package/dist/assets/onboarding-N4S8AW6k.js +0 -1
  273. package/dist/assets/onboarding-USgRFwiW.js +0 -1
  274. package/dist/assets/password-reset-page-BP0tU3JU.js +0 -1
  275. package/dist/assets/pdf-file-preview-DotetIoy.js +0 -1
  276. package/dist/assets/personality-page-BzN3CB4G.js +0 -1
  277. package/dist/assets/plans-page-BDO6hVar.js +0 -1
  278. package/dist/assets/plugin-detail-page-DbOSNUlU.js +0 -1
  279. package/dist/assets/plugins-page-CrmooYb6.js +0 -1
  280. package/dist/assets/privacy-page-DTg59h01.js +0 -1
  281. package/dist/assets/privacy-screen-CAuKxlCT.js +0 -1
  282. package/dist/assets/research-onboarding-route-C_1EYWlc.js +0 -50
  283. package/dist/assets/schedules-C6GFTq9e.js +0 -1
  284. package/dist/assets/schedules-page-DF9d_-hO.js +0 -1
  285. package/dist/assets/security-redirect-page-fOqpqXhg.js +0 -1
  286. package/dist/assets/select-assistant-screen-7s__H50j.js +0 -1
  287. package/dist/assets/settings--jCGbMu6.js +0 -3
  288. package/dist/assets/settings-3vxhzYeD.js +0 -3
  289. package/dist/assets/settings-B-KoDbyO.js +0 -3
  290. package/dist/assets/settings-DwOrI3PD.js +0 -3
  291. package/dist/assets/settings-divider-DvaVqZSv.js +0 -1
  292. package/dist/assets/settings-layout-DKQW650m.js +0 -1
  293. package/dist/assets/share-feedback-modal-CXO1WiLR.js +0 -2
  294. package/dist/assets/skill-detail-page-C34NDUXJ.js +0 -2
  295. package/dist/assets/skill-detail-panel-BFyWuPsn.js +0 -1
  296. package/dist/assets/skills-page-Cf_hKy9r.js +0 -1
  297. package/dist/assets/stt-language-picker-modal-CZO7JoYT.js +0 -1
  298. package/dist/assets/subagent-detail-panel-Cl9ImrOJ.js +0 -1
  299. package/dist/assets/superpowers-page-D1k1MEVI.js +0 -1
  300. package/dist/assets/system-events-redirect-page-B74O6yIF.js +0 -1
  301. package/dist/assets/tool-detail-panel-uczeeElt.js +0 -15
  302. package/dist/assets/upgrade-cancel-page-DonPXETN.js +0 -1
  303. package/dist/assets/usage-redirect-page-D9ARkbO8.js +0 -1
  304. package/dist/assets/use-assistant-identity-details-BCrYYzla.js +0 -1
  305. package/dist/assets/use-checkout-dismiss-refresh--5bkiBrA.js +0 -1
  306. package/dist/assets/use-invite-link-dialog-DBeao10u.js +0 -1
  307. package/dist/assets/use-return-to-short-circuit-_5KJP58I.js +0 -1
  308. package/dist/assets/use-supports-credentials-settings-CRJVJGGZ.js +0 -1
  309. package/dist/assets/use-transcript-message-by-id-DKwkoAvU.js +0 -1
  310. package/dist/assets/voice-page-ESLvI7Wk.js +0 -1
  311. package/dist/assets/welcome-screen-BKhi16Mk.js +0 -1
  312. package/dist/assets/workflow-detail-panel-CjgIzQ49.js +0 -1
  313. package/dist/assets/workspace-page-BVZIUjC3.js +0 -1
  314. package/dist/images/integrations/stripe.svg +0 -1
  315. /package/dist/assets/{account-FKgqRJu9.js → account-BRMQN3Hp.js} +0 -0
  316. /package/dist/assets/{account-BA5jqDj6.js → account-DFBVUaFj.js} +0 -0
  317. /package/dist/assets/{account-ip20tetF.js → account-DK-uFjDM.js} +0 -0
  318. /package/dist/assets/{account-DgnbnECc.js → account-DlHR5tom.js} +0 -0
  319. /package/dist/assets/{app-types-0Zm-1JhZ.js → app-types-R2BjVd4u.js} +0 -0
  320. /package/dist/assets/{build.umd-CVBQeTU4.js → build.umd-BDQjXK5l.js} +0 -0
  321. /package/dist/assets/{channels--lv8FGdf.js → channels-BlN6h5Yf.js} +0 -0
  322. /package/dist/assets/{channels-ClWUJtCx.js → channels-CYyjWubA.js} +0 -0
  323. /package/dist/assets/{channels-B9icBql9.js → channels-Fuiz6Bx7.js} +0 -0
  324. /package/dist/assets/{channels-v0C60cYP.js → channels-oV3BofDQ.js} +0 -0
  325. /package/dist/assets/{contacts-BQ94fuUV.js → contacts-BD1ZjH4R.js} +0 -0
  326. /package/dist/assets/{contacts-COqsemVO.js → contacts-DO23uT5c.js} +0 -0
  327. /package/dist/assets/{contacts-CoAmmYoi.js → contacts-DS4DGhkC.js} +0 -0
  328. /package/dist/assets/{contacts-Cf8Z8Ypm.js → contacts-Dh9S5trj.js} +0 -0
  329. /package/dist/assets/{credential-requests-D-BHmCso.js → credential-requests-B2nbIPCm.js} +0 -0
  330. /package/dist/assets/{credential-requests-WG2Ly11i.js → credential-requests-Cq0W2SLQ.js} +0 -0
  331. /package/dist/assets/{credential-requests-BfzszdNh.js → credential-requests-SsPu1I49.js} +0 -0
  332. /package/dist/assets/{credential-requests-72ffRzBF.js → credential-requests-orDT3GcS.js} +0 -0
  333. /package/dist/assets/{definitions-SYFqlqxu.js → definitions-CIDzXl-8.js} +0 -0
  334. /package/dist/assets/{definitions-BYsSaA4u.js → definitions-vY30nmPg.js} +0 -0
  335. /package/dist/assets/{format-countdown-Dz5XCJoT.js → format-countdown-Ck7dI0Xw.js} +0 -0
  336. /package/dist/assets/{intelligence-DE4NupPM.js → intelligence-D3QpZ2xn.js} +0 -0
  337. /package/dist/assets/{intelligence-BY-nSeKR.js → intelligence-DPqYLHNd.js} +0 -0
  338. /package/dist/assets/{intelligence-CP8sCCS_.js → intelligence-u56Yi_NI.js} +0 -0
  339. /package/dist/assets/{intelligence-C7n9yEoU.js → intelligence-y6vN_Mdd.js} +0 -0
  340. /package/dist/assets/{library-DBkZoDRF.js → library-6ZRxzyy2.js} +0 -0
  341. /package/dist/assets/{library-1J6AIi1i.js → library-C-Qksx7x.js} +0 -0
  342. /package/dist/assets/{library-Bc86UsJ1.js → library-CS5eEGWr.js} +0 -0
  343. /package/dist/assets/{library-Bqld62NF.js → library-CdIFgs3T.js} +0 -0
  344. /package/dist/assets/{link-click-x__AmmnM.js → link-click-k5mmNwCu.js} +0 -0
  345. /package/dist/assets/{logs-CLvjJFut.js → logs-CrmkpO3a.js} +0 -0
  346. /package/dist/assets/{logs-Dj54XwvB.js → logs-D0cXFJMX.js} +0 -0
  347. /package/dist/assets/{logs-t63DIvWv.js → logs-DAwJbr-Q.js} +0 -0
  348. /package/dist/assets/{logs-CCscJ0kU.js → logs-Dz-GMURf.js} +0 -0
  349. /package/dist/assets/{machine-sizes-Dnm82Ei9.js → machine-sizes-C3GmmuDZ.js} +0 -0
  350. /package/dist/assets/{onboarding-step-layout-DX3nTIye.js → onboarding-step-layout-DnL_IbCm.js} +0 -0
  351. /package/dist/assets/{pdf-BRXrngio.js → pdf-D2FMVYiD.js} +0 -0
  352. /package/dist/assets/{plugin-attribution-COvprnE5.js → plugin-attribution-CeJvw31w.js} +0 -0
  353. /package/dist/assets/{radio-card-nav-wiR_yhVP.js → radio-card-nav-BsBWpdyn.js} +0 -0
  354. /package/dist/assets/{remote-web-B_CKO1lH.js → remote-web-BDlWdbTR.js} +0 -0
  355. /package/dist/assets/{remote-web-CCHcuH5v.js → remote-web-BqT1bCst.js} +0 -0
  356. /package/dist/assets/{remote-web-CX-BHRlQ.js → remote-web-Cs7J640n.js} +0 -0
  357. /package/dist/assets/{remote-web-DZcYWPqy.js → remote-web-Csjf67ib.js} +0 -0
  358. /package/dist/assets/{skill-icon-FPL5xeRb.js → skill-icon-DEUidmqq.js} +0 -0
  359. /package/dist/assets/{status-badge-pill-DsYKTPMw.js → status-badge-pill-CBQvTIk7.js} +0 -0
  360. /package/dist/assets/{terminal-CDc9oJxM.js → terminal-C0WX32KF.js} +0 -0
  361. /package/dist/assets/{terminal-BEPJM1_8.js → terminal-CRBKHZm5.js} +0 -0
  362. /package/dist/assets/{terminal-rnCKES6C.js → terminal-DFgjzYGN.js} +0 -0
  363. /package/dist/assets/{terminal-D6cGApBS.js → terminal-DoWOKxv3.js} +0 -0
  364. /package/dist/assets/{usage-window-zygj9EXK.js → usage-window-5RXvRuB8.js} +0 -0
  365. /package/dist/assets/{use-truncated-blob-text-CS6VKRFh.js → use-truncated-blob-text-CvqS5q0a.js} +0 -0
  366. /package/dist/assets/{workspace-DBMxgrue.js → workspace-BLgcfQq4.js} +0 -0
  367. /package/dist/assets/{workspace-DECIUhvv.js → workspace-Bt8Q3v-7.js} +0 -0
  368. /package/dist/assets/{workspace-Bz-skFgd.js → workspace-Bu0imBiz.js} +0 -0
  369. /package/dist/assets/{workspace-BlqPRjdc.js → workspace-DLF1k434.js} +0 -0
  370. /package/dist/assets/{xterm-CnYdVfXB.js → xterm-CJ0yCq-Z.js} +0 -0
  371. /package/dist/assets/{xterm-addon-fit-D5lx1Kpc.js → xterm-addon-fit-IkN_XlHG.js} +0 -0
@@ -0,0 +1 @@
1
+ var e={continue:`Продолжить`,back:`Назад`,forward:`Вперёд`,cancel:`Отмена`,add:`Добавить`,adding:`Добавление…`,connect:`Подключить`,connecting:`Подключение…`,tryAgain:`Попробовать снова`,remove:`Убрать {value}`,logIn:`Войти`,logOut:`Выйти`,loginToUse:`Войти, чтобы пользоваться`,downloadMacApp:`Скачать приложение для macOS`,claim:`Забрать`,skipForNow:`Пока пропустить`,starting:`Запускаем…`},t={title:`Добро пожаловать в Vellum`,body:`Личный интеллект уже в одном шаге.`,continueWithoutAccount:`Продолжить без аккаунта`},n={createAssistant:`Создание ассистента`},r={title:`Перед началом`,body:`Выбор настроек приватности. Потом их можно изменить в Настройках.`,start:`Начать онбординг`,skipToChat:`Перейти к ассистенту`},i={title:`Хостинг`,body:`Выбор места, где будет жить ассистент.`,needHelp:`Нужна помощь с выбором?`,optionsAriaLabel:`Варианты хостинга`},a={title:`Подключение провайдера моделей`,body:`Выбор провайдера моделей для ассистента.`,providerLabel:`Провайдер`,modelLabel:`Модель`,baseUrlLabel:`Базовый URL`,modelsLabel:`Модели`,modelsPlaceholder:`model-1, model-2`,modelsHelp:`Идентификаторы моделей через запятую, которые отдаёт endpoint.`,apiKeyLabel:`API-ключ {provider}`,apiKeyPlaceholder:`API-ключ`,noKeyPrompt:`Нет ключа?`,getKeyLink:`Получить API-ключ`},o={title:`Выбор ассистента`,listAriaLabel:`Ассистенты`,createNew:`Создать нового ассистента`,connectRemote:`Подключить удалённого ассистента`,addRemote:`Добавить удалённого ассистента`,unnamedAssistant:`ассистент`,connectingToAssistant:`Подключение к ассистенту…`,rowActionsAriaLabel:`Действия для {name}`,removeFromDevice:`Убрать с этого устройства…`,selfHosted:`Свой хостинг`,selfHostedWithHost:`Свой хостинг · {host}`,currentWithHost:`Текущий · {host}`,remoteWithHost:`Удалённый · {host}`},s={apiKeyFailed:`API-ключ не сработал`,genericFailure:`Что-то пошло не так`,localFallbackPitch:`Начало сегодня с локальным ассистентом`,updateApiKey:`Обновить API-ключ`,ready:`Ассистент готов!`,waking:`Просыпается…`,wakingBody:`Ожидание запуска ассистента: затем будет несколько вопросов.`,progressAriaLabel:`Ход запуска ассистента`,phase:{initializing:`Готовим всё…`,provisioning:`Настраиваем ассистента…`,connecting:`Подключаемся к ассистенту…`,resizing:`Настраиваем машину…`,ready:`Готово`}},c={title:`Добавить удалённого ассистента`,body:`Вставка https-ссылки со страницы привязки ассистента.`,addressLabel:`Адрес ассистента`,addFailed:`Не удалось добавить ассистента. Повторите попытку.`},l={title:`Подключить удалённого ассистента`,instruction:`Вставка ссылки для привязки из настроек «Привязать устройство» ассистента или просто его адреса, затем подтверждение запроса там.`,linkGuidance:`Эта ссылка получена из QR-кода для привязки. Чтобы подключить это устройство, вставьте сюда ссылку для привязки с компьютера ассистента.`,legacyLinkGuidance:`Эта ссылка создана в более старой версии приложения и больше не работает. Создайте новую ссылку для привязки на компьютере ассистента и вставьте её сюда.`,addressLabel:`Адрес или ссылка для привязки`,addressPlaceholder:`https://your-assistant.ts.net`,nameLabel:`Имя (необязательно)`,approveOnHost:`Подтвердите этот код на машине ассистента, чтобы завершить подключение.`,waitingForApproval:`Ожидание подтверждения…`,retrying:`Ассистент ещё не готов к привязке. Попытки продолжаются, пока не истечёт срок действия кода.`,expiresIn:`Истекает через {time}`,retryExpired:`Срок действия кода привязки истёк, прежде чем ассистент был готов к привязке. Начните заново, чтобы получить новый код.`,submitError:`Не удалось подключиться к этому ассистенту. Повторите попытку.`,importedTitle:`Привязка импортирована`,importedBody:`Эта привязка только для доступа: сейчас она работает, но срок доступа истекает, и сама она не продлевается. Когда это произойдёт, создайте новую ссылку для привязки на машине ассистента и вставьте её сюда, чтобы выполнить привязку заново.`},u={repairTitle:`Восстановить ассистента?`,repairBody:`Восстановление заново выпускает токен аутентификации этого ассистента. На всех других устройствах и в сессиях браузера вход будет сброшен, и их нужно будет подключить заново.`,repairConfirm:`Восстановить`,authFailedTitle:`Не удаётся аутентифицировать ассистента`,authFailedBody:`Токен аутентификации для {name} отсутствует или его больше нельзя обновить, поэтому этого ассистента не подключить. Его можно восстановить, отключить или выбрать другого.`,wakeAndRepair:`Разбудить и восстановить`,retire:`Отключить ассистента`},d={whatsChanged:`Что изменилось`,privacyPreferences:`Настройки приватности`,analyticsLabel:`Отправлять аналитику`,analyticsHelp:`Отправлять обезличенные данные об использовании`,diagnosticsLabel:`Отправлять диагностику`,diagnosticsHelp:`Отправлять отчёты о сбоях, трассы диалогов и записи сессий`,agreements:`Соглашения`,agreeTo:`Я принимаю <link>{policy}</link>`},f={addOption:`Добавить «{value}»`,enterHint:`↵ Enter`,freeTextHint:`Ввод своего варианта и ↵, чтобы добавить`},p={ariaLabel:`Шаг {current} из {total}`},m={greetingNamed:`Привет, {name}!`,greeting:`Привет!`,introNamed:`Я {name}, новый ИИ-ассистент.`,intro:`Я новый ИИ-ассистент.`},h={setupLine:`ИИ, который только отвечает на вопросы, уже знаком.`,helpLine:`Чем больше я помогаю,`,punchLine:`Я другой.`,betterLine:`тем лучше я становлюсь,`,lessLine:`и тем меньше работы остаётся.`},g={title:`Создание характера`,lockedBody:`Характер зафиксирован; чтобы что-то ещё поменять, сообщение ассистенту`,axisAriaLabel:`От {left} до {right}`,axes:{companionCoworker:{left:`Компаньон`,right:`Коллега`},genzBoomer:{left:`Gen Z`,right:`Baby Boomer`},executeCollaborate:{left:`Самостоятельный`,right:`Совместный`},playfulSerious:{left:`Игривый`,right:`Серьёзный`},politeUnfiltered:{left:`Вежливый`,right:`Без фильтра`}}},_={title:`Лицо и имя`,previousCharacter:`Предыдущий персонаж`,nextCharacter:`Следующий персонаж`,namePlaceholder:`Как зовут ассистента`,nameAriaLabel:`Имя ассистента`,editName:`Изменить имя`,shuffle:`Случайные имя и внешность`,hearVoice:`Послушай мой голос`,stopVoice:`Остановить образец голоса`},v={title:`Вот начальный объём использования,<br></br> чтобы начать.`},y={title:`Начало.`,body:`Пара деталей, чтобы узнать собеседника.`,firstNameLabel:`Имя`,firstNamePlaceholder:`Имя`,lastNameLabel:`А фамилия?`,lastNamePlaceholder:`Фамилия (необязательно)`,roleLabel:`Род занятий`,rolePlaceholder:`Должность`,hobbiesLabel:`Есть хобби?`,hobbiesPlaceholder:`Машины, книги, помидоры на подоконнике?`},b={wakingTitle:`Просыпается`,missingScopeTitle:`Доступ не включён`,title:`Давай упростим`,wakingBody:`Ассистент готовится`,missingScopeBody:`Отметь разрешение Google Calendar, чтобы я мог назначить Check-in.`,body:`Подключение Google Calendar, чтобы найти время для Check-in.`,startingAssistant:`Запускаем ассистента…`,waitingAuthorization:`Ждём авторизацию…`,connectCalendar:`Подключить календарь →`},x={titleNamed:`{name} уже запущен и работает`,title:`Ассистент уже запущен и работает`,bodyNamed:`Общая история уже есть: характер, воспоминания и прошлые диалоги. Повторная настройка перезапишет то, кем сейчас является {name}.`,body:`Уже есть общая история: характер, воспоминания и прошлые диалоги. Повторная настройка перезапишет то, кем сейчас является ассистент.`,keepNamed:`Оставить {name} и начать диалог`,keep:`Оставить ассистента и начать диалог`,redoNamed:`Начать заново и собрать характер {name} снова`,redo:`Начать заново и собрать характер заново`},S={title:`Давай поговорим завтра`,body:`Добавление встречи в календарь, чтобы продолжить с того же места.`,permissionBody:`{name} добавит одно событие Check-in на второй день. Для этого нужен доступ к событиям календаря и адресу почты, но не к входящим и не к файлам. Отключить можно в любой момент.`,unnamedAssistant:`ассистент`,waitingAuthorization:`Ждём авторизацию...`,connectGoogleCalendar:`Подключить Google Calendar`},C={titleWithTime:`Check-in назначен на завтра в {time}!`,title:`Check-in назначен!`},w={searching:`Поиск в интернете…`,readingProfiles:`Читаю публичные профили…`,skimming:`Просматриваю главное…`,connectingDots:`Соединяю точки…`,piecing:`Собираю картину…`,almostThere:`Почти готово…`},T={updatingPersonality:`Обновляю характер…`,findingVoice:`Ищу свой голос…`,gettingIntoCharacter:`Вхожу в роль…`,almostThere:`Почти готово…`},E={title:`Вот что удалось найти`,bodyLoadingWithClaims:`Ещё проверяю остальное. Просмотр по мере появления.`,bodyReadyWithClaims:`Я поискал в интернете. Смело убирай всё, что неправда.`,bodyLoadingEmpty:`Ещё собираю это вместе…`,removeClaim:`Убрать «{claim}»`,notMe:`Это не я`,stillSearching:`Ещё ищу…`},D={title:`Вот с чего можно начать`,pickOne:`Выбор одного, чтобы сразу включиться, или своё начало. <skip>Перейти к диалогу</skip>`,loading:`Собираю несколько идей…`,alreadySetUp:`Уже настроен {count, plural, one {плагин} few {плагина} many {плагинов} other {плагина}} <plugins></plugins> для работы`,listAnd:` и `,listCommaAnd:` и `,listComma:`, `,fallbacks:{brief:{suggestion:`Соберу короткий бриф о новостях в этой сфере`,prompt:`Сделай короткий бриф: что нового в моей сфере прямо сейчас.`},weekly:{suggestion:`Буду присылать еженедельный бриф по новостям в этой области`,prompt:`Настройка еженедельного брифа по новостям в моей области.`},week:{suggestion:`Помогу взять неделю под контроль`,prompt:`Помоги взять мою неделю под контроль.`},draft:{suggestion:`Набросаю текст по нескольким черновым заметкам`,prompt:`Набросай текст по нескольким черновым заметкам, которые я дам.`}}},O={title:`Всё готово`,setupNote:`Плагины уже настроены под этот профиль.`,letsChat:`Давай поговорим`},k={actions:e,welcome:t,startScreen:n,privacyScreen:r,hostingScreen:i,apiKeyScreen:a,selectAssistantScreen:o,hatchingScreen:s,addRemoteOriginDialog:c,connectAssistantDialog:l,connectRecoveryDialog:u,consentControls:d,onboardingAutocomplete:f,stepIndicator:p,introductionScreen:m,pitchStep:h,createPersonalityStep:g,giveMeAFaceScreen:_,integrationStep:v,researchOnboardingScreen:y,letsChatTomorrowStep:b,existingAssistantStep:x,checkinConnectScreen:S,meetingCreatedStep:C,lookingYouUpStep:w,finishingUpStep:T,researchResultsStep:E,suggestionsStep:D,letsChatReadyStep:O};export{e as actions,c as addRemoteOriginDialog,a as apiKeyScreen,S as checkinConnectScreen,l as connectAssistantDialog,u as connectRecoveryDialog,d as consentControls,g as createPersonalityStep,k as default,x as existingAssistantStep,T as finishingUpStep,_ as giveMeAFaceScreen,s as hatchingScreen,i as hostingScreen,v as integrationStep,m as introductionScreen,O as letsChatReadyStep,b as letsChatTomorrowStep,w as lookingYouUpStep,C as meetingCreatedStep,f as onboardingAutocomplete,h as pitchStep,r as privacyScreen,y as researchOnboardingScreen,E as researchResultsStep,o as selectAssistantScreen,n as startScreen,p as stepIndicator,D as suggestionsStep,t as welcome};
@@ -0,0 +1 @@
1
+ var e={continue:`继续`,back:`返回`,forward:`前进`,cancel:`取消`,add:`添加`,adding:`正在添加…`,connect:`连接`,connecting:`正在连接…`,tryAgain:`重试`,remove:`移除 {value}`,logIn:`登录`,logOut:`注销`,loginToUse:`登录以使用`,downloadMacApp:`下载 macOS 应用`,claim:`认领`,skipForNow:`暂时跳过`,starting:`正在启动…`},t={title:`欢迎使用 Vellum`,body:`您的专属智能助手触手可及。`,continueWithoutAccount:`不登录继续`},n={createAssistant:`创建您的助手`},r={title:`开始之前`,body:`选择您的隐私偏好设置。您可以随时在“设置”中更新这些内容。`,start:`开始新手引导`,skipToChat:`跳过并聊天`},i={title:`托管`,body:`选择您希望助手驻留的位置。`,needHelp:`需要帮助来决定?`,optionsAriaLabel:`托管选项`},a={title:`连接模型提供商`,body:`选择您的助手应使用的模型提供商。`,providerLabel:`提供商`,modelLabel:`模型`,baseUrlLabel:`基础 URL`,modelsLabel:`模型`,modelsPlaceholder:`model-1, model-2`,modelsHelp:`您的端点公开的逗号分隔模型标识符。`,apiKeyLabel:`{provider} API 密钥`,apiKeyPlaceholder:`输入您的 API 密钥`,noKeyPrompt:`没有密钥?`,getKeyLink:`在此处获取 API 密钥`},o={title:`选择助手`,listAriaLabel:`助手列表`,createNew:`创建新助手`,connectRemote:`连接远程助手`,addRemote:`添加远程助手`,unnamedAssistant:`该助手`,connectingToAssistant:`正在连接到您的助手…`,rowActionsAriaLabel:`{name} 的操作`,removeFromDevice:`从本设备移除…`,selfHosted:`自托管`,selfHostedWithHost:`自托管 · {host}`,currentWithHost:`当前 · {host}`,remoteWithHost:`远程 · {host}`},s={apiKeyFailed:`您的 API 密钥无效`,genericFailure:`发生了一些错误`,localFallbackPitch:`立即开始使用本地助手`,updateApiKey:`更新 API 密钥`,ready:`您的助手已准备就绪!`,waking:`正在唤醒…`,wakingBody:`请稍候,您的助手启动后会向您提出一些问题。`,progressAriaLabel:`助手启动进度`,phase:{initializing:`正在准备中…`,provisioning:`正在设置您的助手…`,connecting:`正在连接到您的助手…`,resizing:`正在设置您的机器…`,ready:`就绪`}},c={title:`添加远程助手`,body:`粘贴您的助手配对页面提供的 HTTPS 链接。`,addressLabel:`助手地址`,addFailed:`添加助手失败。请重试。`},l={title:`连接远程助手`,instruction:`请从助手的“配对设备”设置中粘贴配对链接,或直接粘贴其地址,然后在助手端批准请求。`,linkGuidance:`此链接来自配对二维码。要连接此设备,请在此处粘贴来自助手设备的配对链接。`,legacyLinkGuidance:`此链接来自旧版应用,已无法使用。请在助手设备上生成新的配对链接并粘贴到此处。`,addressLabel:`地址或配对链接`,addressPlaceholder:`https://your-assistant.ts.net`,nameLabel:`名称(可选)`,approveOnHost:`请在助手设备上批准此代码以完成连接。`,waitingForApproval:`等待批准…`,retrying:`助手尚未准备好配对。正在重试,直到代码过期。`,expiresIn:`将在 {time} 后过期`,retryExpired:`配对代码在助手准备好配对之前已过期。请重新开始以获取新代码。`,submitError:`无法连接到该助手。请重试。`,importedTitle:`配对已导入`,importedBody:`此配对仅限访问:它现在可用,但其访问权限会过期且无法自动续订。过期后,请在助手设备上生成新的配对链接并粘贴到此处以重新配对。`},u={repairTitle:`修复助手?`,repairBody:`修复会重新配置此助手的身份验证令牌。任何连接到此助手的其他设备或浏览器会话都将被注销,需要重新连接。`,repairConfirm:`修复`,authFailedTitle:`无法验证助手身份`,authFailedBody:`{name} 的身份验证令牌缺失或无法再刷新,因此无法连接此助手。您可以修复它、停用它或选择其他助手。`,wakeAndRepair:`唤醒并修复`,retire:`停用助手`},d={whatsChanged:`更新内容`,privacyPreferences:`隐私偏好设置`,analyticsLabel:`分享分析数据`,analyticsHelp:`发送汇总的产品使用数据`,diagnosticsLabel:`分享诊断数据`,diagnosticsHelp:`发送崩溃报告、对话跟踪和会话回放数据`,agreements:`协议`,agreeTo:`我同意<link>{policy}</link>`},f={addOption:`添加“{value}”`,enterHint:`↵ 回车`,freeTextHint:`输入任意内容并按 ↵ 添加您自己的`},p={ariaLabel:`第 {current} 步,共 {total} 步`},m={greetingNamed:`嘿,{name}!`,greeting:`嘿!`,introNamed:`我是 {name},您的新 AI 助手。`,intro:`我是您的新 AI 助手。`},h={setupLine:`您可能用过只会回答问题的 AI。`,helpLine:`我帮助得越多,`,punchLine:`我与众不同。`,betterLine:`我就越好,`,lessLine:`您需要做的就越少。`},g={title:`创建我的个性`,lockedBody:`个性已锁定,请与您的助手聊天以进行更多更新`,axisAriaLabel:`从 {left} 到 {right}`,axes:{companionCoworker:{left:`伙伴`,right:`同事`},genzBoomer:{left:`Z世代`,right:`婴儿潮一代`},executeCollaborate:{left:`独立`,right:`协作`},playfulSerious:{left:`活泼`,right:`严肃`},politeUnfiltered:{left:`礼貌`,right:`直率`}}},_={title:`给我一个形象和名字`,previousCharacter:`上一个形象`,nextCharacter:`下一个形象`,namePlaceholder:`为您的助手命名`,nameAriaLabel:`助手名称`,editName:`编辑名称`,shuffle:`随机名称和外观`,hearVoice:`听我的声音`,stopVoice:`停止语音示例`},v={title:`这里有一些初始用法<br></br>供您开始。`},y={title:`我们从您开始。`,body:`一些细节,以便我更好地了解您。`,firstNameLabel:`我该怎么称呼您?`,firstNamePlaceholder:`您的名字`,lastNameLabel:`您的姓氏是?`,lastNamePlaceholder:`您的姓氏(可选)`,roleLabel:`您的角色`,rolePlaceholder:`您的职业是什么?`,hobbiesLabel:`有什么爱好吗?`,hobbiesPlaceholder:`汽车、书籍、种植番茄?`},b={wakingTitle:`正在唤醒`,missingScopeTitle:`未启用访问权限`,title:`让我来简化一切`,wakingBody:`您的助手正在准备中`,missingScopeBody:`请勾选 Google 日历权限旁边的复选框,这样我才能预订签到。`,body:`连接您的 Google 日历,这样我就可以找到时间进行签到并开始提供帮助。`,startingAssistant:`正在启动助手…`,waitingAuthorization:`正在等待授权…`,connectCalendar:`连接日历 →`},x={titleNamed:`{name} 已启动并正在运行`,title:`您的助手已启动并正在运行`,bodyNamed:`你们之间有历史:个性、记忆和过去的对话。再次运行设置将覆盖 {name} 现在的身份。`,body:`你们之间有历史:个性、记忆和过去的对话。再次运行设置将覆盖您的助手现在的身份。`,keepNamed:`保留 {name} 并开始聊天`,keep:`保留您的助手并开始聊天`,redoNamed:`重新开始并重建 {name} 的个性`,redo:`重新开始并重建其个性`},S={title:`我们明天聊`,body:`在您的日历中添加一个会议,这样我们就可以从上次中断的地方继续。`,permissionBody:`{name} 将添加一个单独的“第 2 天签到”事件。它将获得管理您的日历事件和查看您的电子邮件地址的权限,而不是您的收件箱或文件,并且您可以随时断开连接。`,unnamedAssistant:`您的助手`,waitingAuthorization:`正在等待授权...`,connectGoogleCalendar:`连接 Google 日历`},C={titleWithTime:`签到已安排在明天 {time}!`,title:`签到已安排!`},w={searching:`正在搜索网络以了解您…`,readingProfiles:`正在阅读公开资料…`,skimming:`正在浏览要点…`,connectingDots:`正在连接点滴信息…`,piecing:`正在整合信息…`,almostThere:`快完成了…`},T={updatingPersonality:`正在更新我的个性…`,findingVoice:`正在寻找我的声音…`,gettingIntoCharacter:`正在进入角色…`,almostThere:`快完成了…`},E={title:`这是我找到的关于您的信息`,bodyLoadingWithClaims:`仍在检查其余信息。您可以在信息出现时进行查看。`,bodyReadyWithClaims:`我搜索了网络。请随意删除任何不真实的信息。`,bodyLoadingEmpty:`仍在整理中…`,removeClaim:`移除“{claim}”`,notMe:`这不是我`,stillSearching:`仍在搜索…`},D={title:`这是我们首先可以做的事情`,pickOne:`选择一个开始,或自行创建。<skip>跳过并开始聊天</skip>`,loading:`正在整理一些想法…`,alreadySetUp:`已设置 <plugins></plugins> {count, plural, other {# 个}} 插件以帮助您完成工作`,listAnd:` 和 `,listCommaAnd:`,和`,listComma:`,`,fallbacks:{brief:{suggestion:`我将为您整理一份关于您领域最新动态的简报`,prompt:`给我一份关于我领域最新动态的简报。`},weekly:{suggestion:`我将每周发送一份关于您领域新闻的简报`,prompt:`设置每周发送一份关于我领域新闻的简报。`},week:{suggestion:`我将帮助您掌控您的一周`,prompt:`帮助我掌控我的一周。`},draft:{suggestion:`我将根据一些粗略的笔记起草内容`,prompt:`根据我提供的一些粗略笔记起草内容。`}}},O={title:`您已准备就绪`,setupNote:`我已根据您的信息设置了插件。`,letsChat:`开始聊天`},k={actions:e,welcome:t,startScreen:n,privacyScreen:r,hostingScreen:i,apiKeyScreen:a,selectAssistantScreen:o,hatchingScreen:s,addRemoteOriginDialog:c,connectAssistantDialog:l,connectRecoveryDialog:u,consentControls:d,onboardingAutocomplete:f,stepIndicator:p,introductionScreen:m,pitchStep:h,createPersonalityStep:g,giveMeAFaceScreen:_,integrationStep:v,researchOnboardingScreen:y,letsChatTomorrowStep:b,existingAssistantStep:x,checkinConnectScreen:S,meetingCreatedStep:C,lookingYouUpStep:w,finishingUpStep:T,researchResultsStep:E,suggestionsStep:D,letsChatReadyStep:O};export{e as actions,c as addRemoteOriginDialog,a as apiKeyScreen,S as checkinConnectScreen,l as connectAssistantDialog,u as connectRecoveryDialog,d as consentControls,g as createPersonalityStep,k as default,x as existingAssistantStep,T as finishingUpStep,_ as giveMeAFaceScreen,s as hatchingScreen,i as hostingScreen,v as integrationStep,m as introductionScreen,O as letsChatReadyStep,b as letsChatTomorrowStep,w as lookingYouUpStep,C as meetingCreatedStep,f as onboardingAutocomplete,h as pitchStep,r as privacyScreen,y as researchOnboardingScreen,E as researchResultsStep,o as selectAssistantScreen,n as startScreen,p as stepIndicator,D as suggestionsStep,t as welcome};
@@ -1 +1 @@
1
- import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{b as t,t as n}from"./react-DPM_L_aA.js";import{Hy as r,Ja as i}from"./index-BHBLeC80.js";var a=e(t(),1),o=n(),s=`var(--surface-overlay)`;function c({children:e,className:t,style:n,bleed:c=!0}){let l=i.use.setSurface(),u=n?.backgroundColor??s;return(0,a.useLayoutEffect)(()=>{if(c)return l(typeof u==`string`?u:s),()=>{l(null)}},[c,u,l]),(0,o.jsx)(`div`,{className:r(`flex min-h-0 flex-1 flex-col rounded-lg border border-[var(--border-base)] bg-[var(--surface-overlay)] px-6 py-5`,c&&`native-mobile:rounded-none native-mobile:border-0`,t),style:n,children:e})}export{c as t};
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{b as t,t as n}from"./react-DPM_L_aA.js";import{Qa as r,ab as i}from"./index-jpjzZb6b.js";var a=e(t(),1),o=n(),s=`var(--surface-overlay)`;function c({children:e,className:t,style:n,bleed:c=!0}){let l=r.use.setSurface(),u=n?.backgroundColor??s;return(0,a.useLayoutEffect)(()=>{if(c)return l(typeof u==`string`?u:s),()=>{l(null)}},[c,u,l]),(0,o.jsx)(`div`,{className:i(`flex min-h-0 flex-1 flex-col rounded-lg border border-[var(--border-base)] bg-[var(--surface-overlay)] px-6 py-5`,c&&`native-mobile:rounded-none native-mobile:border-0`,t),style:n,children:e})}export{c as t};
@@ -1 +1 @@
1
- import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{j as t}from"./vendor-CCI2T82b.js";import{b as n,d as r,f as i,t as a}from"./react-DPM_L_aA.js";import{Ir as o,L as s,Mr as c,nn as l}from"./icons-B-6TfGtd.js";import{B_ as u,Dp as d,Jv as f,N_ as p,Op as m,P_ as h,Sv as g,Xg as _,am as v,im as y,nm as b,rm as x,sm as S,t as C,yg as w,zy as T}from"./index-BHBLeC80.js";import{r as E}from"./self-hosted-servers-X73OsSz4.js";var D=e(n(),1),O=a();function k(e){switch(e.kind){case`starting`:return{title:`Starting pairing`,body:`Creating a code for this browser.`};case`handoff_choice`:return{title:`Open in the Vellum app`,body:`Scanning from a phone with the Vellum app installed? Hand this pairing to the app.`};case`verifying`:return{title:`Pairing`,body:`Connecting this device to your assistant.`};case`approved`:return{title:`Connected`,body:`Opening your assistant.`};case`expired`:return{title:`Pairing expired`,body:`This pairing code is invalid or expired. Run vellum pair on the machine running your assistant to get a new one.`};case`error`:return{title:`Pairing failed`,body:e.message};case`polling`:return{title:`Waiting for approval`,body:`Confirm this code on the machine running your assistant.`}}}function A({state:e}){return e.kind===`approved`?(0,O.jsx)(c,{className:`h-5 w-5 text-[var(--system-positive-strong)]`,"aria-hidden":!0}):e.kind===`handoff_choice`?(0,O.jsx)(s,{className:`h-5 w-5 text-[var(--system-info-strong)]`,"aria-hidden":!0}):e.kind===`starting`||e.kind===`verifying`||e.kind===`polling`?(0,O.jsx)(l,{className:`h-5 w-5 animate-spin text-[var(--system-info-strong)]`,"aria-hidden":!0}):(0,O.jsx)(o,{className:`h-5 w-5 text-[var(--system-negative-strong)]`,"aria-hidden":!0})}function j(){try{let e=new URL(window.location.href);for(let t of[`deviceCode`,`device_code`,`userCode`,`user_code`])e.searchParams.delete(t);e.hash=``,window.history.replaceState(null,``,`${e.pathname}${e.search}`)}catch{}}var M=`vellum-assistant`,N=`ai.vellum.assistant`;function P(e,t){let n=new URLSearchParams({url:S(),code:e}),r=p();r&&n.set(`name`,r);let i=n.toString().replace(/\+/g,`%20`);return t===`ios`?`${M}://connect?${i}`:`intent://connect?${i}#Intent;scheme=${M};package=${N};S.browser_fallback_url=${encodeURIComponent(window.location.href)};end`}function F(){let e=h();if(!e)return null;try{return`${new URL(e).origin}${g.selectAssistant}?noAutoSkip=1`}catch{return null}}function I({deviceCode:e,platform:n,onContinueInBrowser:r}){let{t:i}=t(`remote-web`);return(0,O.jsxs)(`div`,{className:`mt-6 flex flex-col gap-3`,children:[(0,O.jsx)(T,{variant:`primary`,fullWidth:!0,asChild:!0,children:(0,O.jsx)(`a`,{href:(0,D.useMemo)(()=>P(e,n),[e,n]),children:i(`pairingPage.openInApp`)})}),(0,O.jsx)(T,{variant:`outlined`,fullWidth:!0,onClick:r,children:i(`pairingPage.continueInBrowser`)})]})}function L(){let{t:e}=t(`remote-web`),n=r(),a=i(),o=u(),s=(0,D.useMemo)(()=>_(new URLSearchParams(n.search).get(`returnTo`),g.assistant),[n.search]),c=(0,D.useMemo)(()=>f(`${n.pathname}${n.search}${n.hash}`),[n.pathname,n.search,n.hash]),l=(0,D.useMemo)(()=>!c.deviceCode||w()?null:d()?`android`:m()?`ios`:null,[c.deviceCode]),[p,h]=(0,D.useState)(()=>c.deviceCode?{deviceCode:c.deviceCode,userCode:c.userCode}:null),[S,M]=(0,D.useState)(()=>!l),[N,P]=(0,D.useState)(()=>l?{kind:`handoff_choice`}:c.deviceCode?{kind:`verifying`}:{kind:`starting`});(0,D.useEffect)(()=>{if(!o||p)return;let e=new AbortController;return(async()=>{try{let t=await y(e.signal);h({deviceCode:t.deviceCode,userCode:t.userCode}),P({kind:`polling`,expiresAt:t.expiresAt})}catch{if(e.signal.aborted)return;P({kind:`error`,message:`The assistant could not start pairing. Refresh the page to try again.`})}})(),()=>{e.abort()}},[o,p]),(0,D.useEffect)(()=>{if(!o||!p?.deviceCode||!S)return;let e=new AbortController,t=null,n=async()=>{try{let r=await v(p.deviceCode,e.signal);if(r.status===`pending`){P({kind:`polling`,expiresAt:r.expiresAt||null}),t=setTimeout(()=>void n(),Math.max(1,r.intervalSeconds)*1e3);return}x(r),j(),P({kind:`approved`}),t=setTimeout(()=>a(s,{replace:!0}),250)}catch(t){if(e.signal.aborted)return;if(t instanceof b&&t.status===401){P({kind:`expired`});return}if(t instanceof b&&t.code===`GUARDIAN_REPAIR_REQUIRED`){P({kind:`error`,message:`The assistant's trust database needs repair. Run guardian repair on the machine hosting the assistant, then retry this same pairing link — the code stays valid.`});return}P({kind:`error`,message:`The assistant could not complete pairing. Try starting a new pairing.`})}};return n(),()=>{e.abort(),t&&clearTimeout(t)}},[o,p?.deviceCode,S,a,s]);let L=(0,D.useCallback)(()=>{M(!0),P({kind:`verifying`})},[]),R=(0,D.useMemo)(()=>F(),[]),z=(0,D.useCallback)(()=>{E(null,`select-assistant?noAutoSkip=1`).then(e=>{!e&&R&&window.location.assign(R)})},[R]);if(!o)return(0,O.jsx)(C,{});let B=k(N);return(0,O.jsx)(`main`,{className:`flex min-h-svh items-center justify-center bg-[var(--surface-base)] px-6 py-10 text-[var(--content-default)]`,children:(0,O.jsxs)(`section`,{className:`w-full max-w-md rounded-lg border border-[var(--border-subtle)] bg-[var(--surface-lift)] p-8 shadow-[var(--shadow-sm)]`,children:[(0,O.jsxs)(`div`,{className:`mb-5 flex items-center gap-3`,children:[(0,O.jsx)(A,{state:N}),(0,O.jsx)(`h1`,{className:`text-title-medium text-[var(--content-emphasised)]`,children:B.title})]}),N.kind===`polling`&&p?.userCode?(0,O.jsxs)(`div`,{className:`mb-5 rounded-md border border-[var(--border-subtle)] bg-[var(--surface-sunken)] p-4 text-center`,children:[(0,O.jsx)(`div`,{className:`text-label-small-default uppercase tracking-wide text-[var(--content-tertiary)]`,children:e(`pairingPage.pairingCode`)}),(0,O.jsx)(`div`,{className:`mt-2 font-mono text-3xl font-semibold tracking-[0.18em] text-[var(--content-emphasised)]`,children:p.userCode})]}):null,(0,O.jsx)(`p`,{className:`text-body-medium-lighter leading-6 text-[var(--content-secondary)]`,children:B.body}),N.kind===`handoff_choice`&&p&&l?(0,O.jsx)(I,{deviceCode:p.deviceCode,platform:l,onContinueInBrowser:L}):null,N.kind===`polling`&&N.expiresAt?(0,O.jsx)(`p`,{className:`text-body-small-lighter mt-4 text-[var(--content-tertiary)]`,children:e(`pairingPage.expiresAt`,{time:new Date(N.expiresAt).toLocaleTimeString()})}):null,N.kind===`polling`&&R?(0,O.jsx)(T,{variant:`outlined`,fullWidth:!0,className:`mt-6`,onClick:z,children:e(`pairingPage.cancel`)}):null]})})}export{L as RemoteWebPairingPage};
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{j as t}from"./vendor-CV8wawxx.js";import{b as n,d as r,f as i,t as a}from"./react-DPM_L_aA.js";import{Lr as o,Nr as s,R as c,rn as l}from"./icons-J6Mg9wGk.js";import{Bp as u,Fg as d,Vp as f,X_ as p,Z_ as m,_m as h,bm as g,dy as _,f_ as v,gm as y,hm as b,nb as x,rv as S,t as C,vm as w,zv as T}from"./index-jpjzZb6b.js";import{r as E}from"./self-hosted-servers-CyDwHGSp.js";var D=e(n(),1),O=a();function k(e){switch(e.kind){case`starting`:return{title:`Starting pairing`,body:`Creating a code for this browser.`};case`handoff_choice`:return{title:`Open in the Vellum app`,body:`Scanning from a phone with the Vellum app installed? Hand this pairing to the app.`};case`verifying`:return{title:`Pairing`,body:`Connecting this device to your assistant.`};case`approved`:return{title:`Connected`,body:`Opening your assistant.`};case`expired`:return{title:`Pairing expired`,body:`This pairing code is invalid or expired. Run vellum pair on the machine running your assistant to get a new one.`};case`error`:return{title:`Pairing failed`,body:e.message};case`polling`:return{title:`Waiting for approval`,body:`Confirm this code on the machine running your assistant.`}}}function A({state:e}){return e.kind===`approved`?(0,O.jsx)(s,{className:`h-5 w-5 text-[var(--system-positive-strong)]`,"aria-hidden":!0}):e.kind===`handoff_choice`?(0,O.jsx)(c,{className:`h-5 w-5 text-[var(--system-info-strong)]`,"aria-hidden":!0}):e.kind===`starting`||e.kind===`verifying`||e.kind===`polling`?(0,O.jsx)(l,{className:`h-5 w-5 animate-spin text-[var(--system-info-strong)]`,"aria-hidden":!0}):(0,O.jsx)(o,{className:`h-5 w-5 text-[var(--system-negative-strong)]`,"aria-hidden":!0})}function j(){try{let e=new URL(window.location.href);for(let t of[`deviceCode`,`device_code`,`userCode`,`user_code`])e.searchParams.delete(t);e.hash=``,window.history.replaceState(null,``,`${e.pathname}${e.search}`)}catch{}}var M=`vellum-assistant`,N=`ai.vellum.assistant`;function P(e,t){let n=new URLSearchParams({url:g(),code:e}),r=p();r&&n.set(`name`,r);let i=n.toString().replace(/\+/g,`%20`);return t===`ios`?`${M}://connect?${i}`:`intent://connect?${i}#Intent;scheme=${M};package=${N};S.browser_fallback_url=${encodeURIComponent(window.location.href)};end`}function F(){let e=m();if(!e)return null;try{return`${new URL(e).origin}${T.selectAssistant}?noAutoSkip=1`}catch{return null}}function I({deviceCode:e,platform:n,onContinueInBrowser:r}){let{t:i}=t(`remote-web`);return(0,O.jsxs)(`div`,{className:`mt-6 flex flex-col gap-3`,children:[(0,O.jsx)(x,{variant:`primary`,fullWidth:!0,asChild:!0,children:(0,O.jsx)(`a`,{href:(0,D.useMemo)(()=>P(e,n),[e,n]),children:i(`pairingPage.openInApp`)})}),(0,O.jsx)(x,{variant:`outlined`,fullWidth:!0,onClick:r,children:i(`pairingPage.continueInBrowser`)})]})}function L(){let{t:e}=t(`remote-web`),n=r(),a=i(),o=S(),s=(0,D.useMemo)(()=>v(new URLSearchParams(n.search).get(`returnTo`),T.assistant),[n.search]),c=(0,D.useMemo)(()=>_(`${n.pathname}${n.search}${n.hash}`),[n.pathname,n.search,n.hash]),l=(0,D.useMemo)(()=>!c.deviceCode||d()?null:u()?`android`:f()?`ios`:null,[c.deviceCode]),[p,m]=(0,D.useState)(()=>c.deviceCode?{deviceCode:c.deviceCode,userCode:c.userCode}:null),[g,M]=(0,D.useState)(()=>!l),[N,P]=(0,D.useState)(()=>l?{kind:`handoff_choice`}:c.deviceCode?{kind:`verifying`}:{kind:`starting`});(0,D.useEffect)(()=>{if(!o||p)return;let e=new AbortController;return(async()=>{try{let t=await h(e.signal);m({deviceCode:t.deviceCode,userCode:t.userCode}),P({kind:`polling`,expiresAt:t.expiresAt})}catch{if(e.signal.aborted)return;P({kind:`error`,message:`The assistant could not start pairing. Refresh the page to try again.`})}})(),()=>{e.abort()}},[o,p]),(0,D.useEffect)(()=>{if(!o||!p?.deviceCode||!g)return;let e=new AbortController,t=null,n=async()=>{try{let r=await w(p.deviceCode,e.signal);if(r.status===`pending`){P({kind:`polling`,expiresAt:r.expiresAt||null}),t=setTimeout(()=>void n(),Math.max(1,r.intervalSeconds)*1e3);return}y(r),j(),P({kind:`approved`}),t=setTimeout(()=>a(s,{replace:!0}),250)}catch(t){if(e.signal.aborted)return;if(t instanceof b&&t.status===401){P({kind:`expired`});return}if(t instanceof b&&t.code===`GUARDIAN_REPAIR_REQUIRED`){P({kind:`error`,message:`The assistant's trust database needs repair. Run guardian repair on the machine hosting the assistant, then retry this same pairing link — the code stays valid.`});return}P({kind:`error`,message:`The assistant could not complete pairing. Try starting a new pairing.`})}};return n(),()=>{e.abort(),t&&clearTimeout(t)}},[o,p?.deviceCode,g,a,s]);let L=(0,D.useCallback)(()=>{M(!0),P({kind:`verifying`})},[]),R=(0,D.useMemo)(()=>F(),[]),z=(0,D.useCallback)(()=>{E(null,`select-assistant?noAutoSkip=1`).then(e=>{!e&&R&&window.location.assign(R)})},[R]);if(!o)return(0,O.jsx)(C,{});let B=k(N);return(0,O.jsx)(`main`,{className:`flex min-h-svh items-center justify-center bg-[var(--surface-base)] px-6 py-10 text-[var(--content-default)]`,children:(0,O.jsxs)(`section`,{className:`w-full max-w-md rounded-lg border border-[var(--border-subtle)] bg-[var(--surface-lift)] p-8 shadow-[var(--shadow-sm)]`,children:[(0,O.jsxs)(`div`,{className:`mb-5 flex items-center gap-3`,children:[(0,O.jsx)(A,{state:N}),(0,O.jsx)(`h1`,{className:`text-title-medium text-[var(--content-emphasised)]`,children:B.title})]}),N.kind===`polling`&&p?.userCode?(0,O.jsxs)(`div`,{className:`mb-5 rounded-md border border-[var(--border-subtle)] bg-[var(--surface-sunken)] p-4 text-center`,children:[(0,O.jsx)(`div`,{className:`text-label-small-default uppercase tracking-wide text-[var(--content-tertiary)]`,children:e(`pairingPage.pairingCode`)}),(0,O.jsx)(`div`,{className:`mt-2 font-mono text-3xl font-semibold tracking-[0.18em] text-[var(--content-emphasised)]`,children:p.userCode})]}):null,(0,O.jsx)(`p`,{className:`text-body-medium-lighter leading-6 text-[var(--content-secondary)]`,children:B.body}),N.kind===`handoff_choice`&&p&&l?(0,O.jsx)(I,{deviceCode:p.deviceCode,platform:l,onContinueInBrowser:L}):null,N.kind===`polling`&&N.expiresAt?(0,O.jsx)(`p`,{className:`text-body-small-lighter mt-4 text-[var(--content-tertiary)]`,children:e(`pairingPage.expiresAt`,{time:new Date(N.expiresAt).toLocaleTimeString()})}):null,N.kind===`polling`&&R?(0,O.jsx)(x,{variant:`outlined`,fullWidth:!0,className:`mt-6`,onClick:z,children:e(`pairingPage.cancel`)}):null]})})}export{L as RemoteWebPairingPage};
@@ -0,0 +1 @@
1
+ import{r as e,t}from"./react-DPM_L_aA.js";import{zv as n}from"./index-jpjzZb6b.js";var r=t();function i(){return(0,r.jsx)(e,{to:n.account.login,replace:!0})}export{i as PasswordResetPage};
@@ -0,0 +1 @@
1
+ import{t as e}from"./react-DPM_L_aA.js";import{t}from"./preview-error-BUjzhle1.js";import{Gn as n,hn as r,qn as i}from"./index-jpjzZb6b.js";var a=e();function o({blob:e,filename:o}){let s=n(e,`application/pdf`);return s===null?(0,a.jsx)(i,{}):(0,a.jsx)(`span`,{className:`block w-full [&_[data-slot=skeleton]]:w-full! [&_canvas]:w-full!`,children:(0,a.jsx)(r,{url:s,errorFallback:(0,a.jsx)(t,{filename:o})})})}export{o as PdfFilePreview};
@@ -1 +1 @@
1
- import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{f as t,g as n,u as r}from"./vendor-CCI2T82b.js";import{b as i,t as a}from"./react-DPM_L_aA.js";var o=e(i(),1),s=a(),c=.25,l=.46,u=.3,d=.85,f=.4,p=14,m=8;function h({art:e,stage:i,entrance:a=!1,entranceDelay:h=0,restSinkFraction:g=0,bumpNonce:_}){let v=t(),{w:y,h:b}=i,[x,S]=(0,o.useState)({x:0,y:0});(0,o.useEffect)(()=>{if(v)return;let e=e=>{S({x:(e.clientX/window.innerWidth-.5)*2,y:(e.clientY/window.innerHeight-.5)*2})};return window.addEventListener(`mousemove`,e),()=>window.removeEventListener(`mousemove`,e)},[v]);let C=a&&!v,w=r();(0,o.useEffect)(()=>{(_??0)>0&&!v&&w.start({y:[0,-34,8,0],transition:{duration:.45,ease:`easeOut`}})},[_,v,w]);let[T,E]=(0,o.useState)(!1),[D,O]=(0,o.useState)(!a);if((0,o.useEffect)(()=>{if(v||!D)return;let e=!1,t,n=n=>{e||(E(!0),t=setTimeout(()=>{e||(E(!1),t=setTimeout(n,140))},140))},r=()=>{t=setTimeout(()=>n(r),2500+Math.random()*4e3)};return a?n(()=>n(r)):r(),()=>{e=!0,clearTimeout(t)}},[v,D,a]),y===0||b===0)return null;let k=y*d,A=Math.min(Math.min(y,b)*u,k*e.bbox.h/e.bbox.w),j=A*e.bbox.w/e.bbox.h,M=(y-j)/2,N=b-(1-c)*A+b*g,P=f*b-(N+A/2),F=(l-c)*A,I=e.bbox.x+e.bbox.w/2,L=e.bbox.y+e.bbox.h/2,R=(0,s.jsx)(`div`,{style:{transform:`translate(${x.x*p}px, ${x.y*m}px)`,transition:`transform 0.5s cubic-bezier(0.22, 1, 0.36, 1)`},children:(0,s.jsx)(`svg`,{viewBox:`${e.bbox.x} ${e.bbox.y} ${e.bbox.w} ${e.bbox.h}`,width:j,height:A,style:{overflow:`visible`,display:`block`},children:(0,s.jsx)(`g`,{style:{transform:T?`scaleY(0.1)`:`scaleY(1)`,transformOrigin:`${I}px ${L}px`,transition:`transform 0.14s ease-in-out`},children:e.paths.map((e,t)=>(0,s.jsx)(`path`,{d:e.svgPath,fill:e.color},t))})})});return(0,s.jsx)(n.div,{"aria-hidden":`true`,className:`pointer-events-none absolute z-[2]`,style:{left:M,top:N,width:j,height:A,transformOrigin:`center`},initial:C?{y:P,scale:.35}:!1,animate:C?{y:[P,F,0],scale:[.35,1,1]}:{y:0,scale:1},transition:C?{duration:1,delay:h,times:[0,.7,1],ease:`easeInOut`}:{duration:0},onAnimationComplete:()=>O(!0),children:_===void 0?R:(0,s.jsx)(n.div,{animate:w,children:R})})}var g=u*(1-c);export{h as n,g as t};
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{f as t,g as n,u as r}from"./vendor-CV8wawxx.js";import{b as i,t as a}from"./react-DPM_L_aA.js";var o=e(i(),1),s=a(),c=.25,l=.46,u=.3,d=.85,f=.4,p=14,m=8;function h({art:e,stage:i,entrance:a=!1,entranceDelay:h=0,restSinkFraction:g=0,bumpNonce:_}){let v=t(),{w:y,h:b}=i,[x,S]=(0,o.useState)({x:0,y:0});(0,o.useEffect)(()=>{if(v)return;let e=e=>{S({x:(e.clientX/window.innerWidth-.5)*2,y:(e.clientY/window.innerHeight-.5)*2})};return window.addEventListener(`mousemove`,e),()=>window.removeEventListener(`mousemove`,e)},[v]);let C=a&&!v,w=r();(0,o.useEffect)(()=>{(_??0)>0&&!v&&w.start({y:[0,-34,8,0],transition:{duration:.45,ease:`easeOut`}})},[_,v,w]);let[T,E]=(0,o.useState)(!1),[D,O]=(0,o.useState)(!a);if((0,o.useEffect)(()=>{if(v||!D)return;let e=!1,t,n=n=>{e||(E(!0),t=setTimeout(()=>{e||(E(!1),t=setTimeout(n,140))},140))},r=()=>{t=setTimeout(()=>n(r),2500+Math.random()*4e3)};return a?n(()=>n(r)):r(),()=>{e=!0,clearTimeout(t)}},[v,D,a]),y===0||b===0)return null;let k=y*d,A=Math.min(Math.min(y,b)*u,k*e.bbox.h/e.bbox.w),j=A*e.bbox.w/e.bbox.h,M=(y-j)/2,N=b-(1-c)*A+b*g,P=f*b-(N+A/2),F=(l-c)*A,I=e.bbox.x+e.bbox.w/2,L=e.bbox.y+e.bbox.h/2,R=(0,s.jsx)(`div`,{style:{transform:`translate(${x.x*p}px, ${x.y*m}px)`,transition:`transform 0.5s cubic-bezier(0.22, 1, 0.36, 1)`},children:(0,s.jsx)(`svg`,{viewBox:`${e.bbox.x} ${e.bbox.y} ${e.bbox.w} ${e.bbox.h}`,width:j,height:A,style:{overflow:`visible`,display:`block`},children:(0,s.jsx)(`g`,{style:{transform:T?`scaleY(0.1)`:`scaleY(1)`,transformOrigin:`${I}px ${L}px`,transition:`transform 0.14s ease-in-out`},children:e.paths.map((e,t)=>(0,s.jsx)(`path`,{d:e.svgPath,fill:e.color},t))})})});return(0,s.jsx)(n.div,{"aria-hidden":`true`,className:`pointer-events-none absolute z-[2]`,style:{left:M,top:N,width:j,height:A,transformOrigin:`center`},initial:C?{y:P,scale:.35}:!1,animate:C?{y:[P,F,0],scale:[.35,1,1]}:{y:0,scale:1},transition:C?{duration:1,delay:h,times:[0,.7,1],ease:`easeInOut`}:{duration:0},onAnimationComplete:()=>O(!0),children:_===void 0?R:(0,s.jsx)(n.div,{animate:w,children:R})})}var g=u*(1-c);export{h as n,g as t};
@@ -0,0 +1 @@
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{I as t,Zn as n,dn as r,er as i,fn as a,j as o,ln as s}from"./vendor-CV8wawxx.js";import{b as c,f as l,t as u}from"./react-DPM_L_aA.js";import{P as d,hi as f}from"./icons-J6Mg9wGk.js";import{Iy as p,Q as m,Qa as h,Si as g,ab as _,oo as v,up as y,xi as b,yi as x,zv as S}from"./index-jpjzZb6b.js";import{i as C,n as w,r as T,t as E}from"./personality-sliders-DGm9A3BW.js";import{n as D,t as O}from"./peeking-eyes-DzPVjsGl.js";import{a as k,i as A,n as j,r as M,t as N}from"./use-assistant-identity-details--yIMhZJo.js";import{r as P}from"./latest-assistant-text-D48YOxGw.js";var F=e(c(),1),I=u();function L({components:e,traits:t,stage:n,entrance:r=!1,entranceDelay:i=0}){let a=(0,F.useMemo)(()=>{let n=e.eyeStyles.find(e=>e.id===t.eyeStyle);return n?{paths:n.paths,bbox:b(n.paths.map(e=>x(e.svgPath)))}:null},[e,t.eyeStyle]);return a?(0,I.jsx)(D,{art:a,stage:n,entrance:r,entranceDelay:i}):null}var R=`#17191C`,z=24,B=.2,V=96,H=160,U=(0,F.createContext)(null);function W(){let e=(0,F.useContext)(U);if(!e)throw Error(`useAssistantStage must be used inside <AssistantStage>`);return e}function G({components:e,traits:t,customImageUrl:n,accentHex:r,entrance:i=!1,children:a,className:o}){let{ref:s,size:c}=g(),l=r??R,u=v(l),d=h.use.setSurface();(0,F.useLayoutEffect)(()=>(d(l),()=>{d(null)}),[l,d]);let f=!!(e&&t),p=!f&&!!n,m=Math.round(Math.min(H,Math.max(V,Math.min(c.w,c.h)*B))),y=c.h-m-z,b=f?Math.round(O*Math.min(c.w,c.h))+16:p?m+z+16:24;return(0,I.jsxs)(`div`,{ref:s,className:_(`relative flex min-h-0 flex-1 flex-col overflow-hidden rounded-lg border border-[var(--border-base)]`,`native-mobile:rounded-none native-mobile:border-0`,o),style:{backgroundColor:l,color:u.fg},children:[f&&e&&t&&(0,I.jsx)(L,{components:e,traits:t,stage:c,entrance:i}),p&&n&&(0,I.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute z-[2] overflow-hidden rounded-full ring-4 ring-white/25`,style:{left:(c.w-m)/2,top:y,width:m,height:m},children:(0,I.jsx)(`img`,{src:n,alt:``,className:`h-full w-full object-cover`,draggable:!1})}),(0,I.jsx)(U.Provider,{value:{stage:c,tone:u,bottomReserve:b},children:(0,I.jsx)(`div`,{className:`relative z-10 flex min-h-0 flex-1 flex-col`,children:a})})]})}var K=`rgba(36, 41, 46, 0.25)`,q=`#FDFDFC`;function J({axis:e,value:t,onValueChange:n,tone:i,disabled:c}){let{t:l}=o(`intelligence`),u=l(e.leftKey),d=l(e.rightKey);return(0,I.jsxs)(`div`,{className:`flex w-full shrink-0 flex-wrap items-center gap-x-5 gap-y-1.5 sm:flex-nowrap`,style:{opacity:c?.7:1},children:[(0,I.jsx)(`span`,{className:`order-1 flex-1 text-left text-sm sm:w-32 sm:flex-none sm:text-right sm:text-[17px]`,style:{color:i.fg},children:u}),(0,I.jsx)(`span`,{className:`order-2 flex-1 text-right text-sm sm:order-3 sm:w-32 sm:flex-none sm:text-left sm:text-[17px]`,style:{color:i.fg},children:d}),(0,I.jsxs)(s,{"data-owns-horizontal-drag":``,className:`relative order-3 flex h-6 w-full touch-none items-center select-none sm:order-2 sm:w-auto sm:flex-1`,value:[t],onValueChange:e=>n(e[0]??k),disabled:c,min:0,max:100,step:1,"aria-label":l(`personalitySliderRow.rangeAriaLabel`,{left:u,right:d}),children:[(0,I.jsx)(a,{className:`relative h-2 w-full grow rounded-full sm:h-3`,style:{backgroundColor:K}}),(0,I.jsx)(r,{className:`block h-5 w-5 cursor-grab rounded-full shadow-sm transition-transform active:scale-95 active:cursor-grabbing keyboard-focus:outline-none keyboard-focus:ring-2 keyboard-focus:ring-white/70 data-[disabled]:cursor-not-allowed data-[disabled]:active:scale-100 sm:h-6 sm:w-6`,style:{backgroundColor:q}})]})]})}async function Y({assistantId:e,values:n,assistantName:r}){return M({assistantId:e,content:P(n,void 0,r),title:t(`applyPersonalityUpdate.conversationTitle`,{ns:`intelligence`}),context:`identity_personality_update`})}function X(){let{t:e}=o(`intelligence`),t=m(),r=l(),a=i(),{components:s,traits:c,customImageUrl:u,accentHex:d}=y(t),f=j(t),h=n({queryKey:T(t),queryFn:()=>w(t)}),[g,_]=(0,F.useState)(null),[v,b]=(0,F.useState)(!1),x=g??h.data??{},D=f.data?.identity?.name||e(`identityOverview.defaultAssistantName`);return(0,I.jsx)(G,{components:s,traits:c,customImageUrl:u,accentHex:d,entrance:!0,children:(0,I.jsx)(Z,{assistantName:D,values:x,onValueChange:(e,t)=>_({...x,[e]:t}),applying:v,onUpdate:()=>{b(!0);let n=E(x);Y({assistantId:t,values:n,assistantName:f.data?.identity?.name}).then(async i=>{b(!1),i?(await C(t,n),a.invalidateQueries({queryKey:T(t)}),a.invalidateQueries({queryKey:N(t)}),p.success(e(`personalityPage.updateSuccessToast`)),r(S.identity)):p.error(e(`personalityPage.updateErrorToast`))})},onBack:()=>void r(S.identity)})})}function Z({assistantName:e,values:t,onValueChange:n,applying:r,onUpdate:i,onBack:a}){let{t:s}=o(`intelligence`),{tone:c,bottomReserve:l}=W();return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(`button`,{type:`button`,onClick:a,className:`absolute top-4 left-4 z-20 flex cursor-pointer items-center gap-1.5 rounded-full py-2 pr-4 pl-3 text-body-medium-default backdrop-blur-sm transition-all duration-150 active:scale-[0.97] ${c.isLight?`bg-black/10 hover:bg-black/20`:`bg-white/10 hover:bg-white/20`}`,style:{color:c.fg},children:[(0,I.jsx)(f,{className:`h-4 w-4`,"aria-hidden":!0}),s(`personalityPage.back`)]}),(0,I.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col items-center overflow-y-auto px-6`,style:{paddingBottom:l},children:[(0,I.jsx)(`div`,{className:`w-full min-h-14 shrink-[4]`,style:{flexBasis:`12%`}}),(0,I.jsxs)(`div`,{className:`flex shrink-0 flex-col items-center gap-2 text-center`,children:[(0,I.jsx)(`h1`,{className:`text-[2.6rem] leading-none max-sm:text-[2rem]`,style:{fontFamily:`var(--font-serif)`},children:s(`personalityPage.title`)}),(0,I.jsx)(`p`,{className:`max-w-md text-[15px]`,style:{color:c.fgMuted},children:s(`personalityPage.subtitle`)})]}),(0,I.jsx)(`div`,{className:`w-full min-h-3 shrink-[2] basis-10`}),(0,I.jsx)(`div`,{className:`flex w-full max-w-2xl shrink-0 flex-col`,children:A.map((e,i)=>(0,I.jsxs)(F.Fragment,{children:[i>0&&(0,I.jsx)(`div`,{className:`w-full min-h-2.5 shrink basis-8 sm:basis-11`}),(0,I.jsx)(J,{axis:e,value:t[e.id]??k,onValueChange:t=>n(e.id,t),tone:c,disabled:r})]},e.id))}),(0,I.jsx)(`div`,{className:`w-full min-h-3 shrink-[2] basis-12`}),(0,I.jsx)(`button`,{type:`button`,onClick:i,disabled:r,className:`flex min-h-11 min-w-[240px] max-w-full shrink-0 cursor-pointer items-center justify-center gap-2 rounded-[10px] px-6 py-2 text-body-medium-default transition-transform duration-150 active:scale-[0.97] disabled:cursor-default disabled:opacity-80 disabled:active:scale-100`,style:{backgroundColor:c.isLight?`#1A1A1A`:`#FFFFFF`,color:c.isLight?`#FFFFFF`:`#1A1A1A`},children:r?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`div`,{className:`h-4 w-4 shrink-0 animate-spin rounded-full border-2 border-transparent`,style:{borderTopColor:c.isLight?`#FFFFFF`:`#1A1A1A`,borderRightColor:c.isLight?`#FFFFFF`:`#1A1A1A`}}),(0,I.jsx)(`span`,{className:`min-w-0 text-center`,children:s(`personalityPage.updatingPersonality`,{name:e})})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(d,{className:`h-4 w-4`,"aria-hidden":!0}),s(`personalityPage.updatePersonality`)]})})]})]})}export{X as PersonalityPage};
@@ -0,0 +1 @@
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Zn as t,er as n,j as r}from"./vendor-CV8wawxx.js";import{b as i,r as a,t as o}from"./react-DPM_L_aA.js";import{Iy as s,Pu as c,Q as l,nb as u,oh as d,zv as f,zy as p}from"./index-jpjzZb6b.js";import{t as m}from"./detail-card-DuMOMNDt.js";import{i as h,n as g,r as _,t as v}from"./personality-sliders-DGm9A3BW.js";var y=e(i(),1),b=o(),x=[{id:d.companionCoworker,leftKey:`personalityPage.axes.companionCoworker.left`,rightKey:`personalityPage.axes.companionCoworker.right`},{id:d.genzBoomer,leftKey:`personalityPage.axes.genzBoomer.left`,rightKey:`personalityPage.axes.genzBoomer.right`},{id:d.executeCollaborate,leftKey:`personalityPage.axes.executeCollaborate.left`,rightKey:`personalityPage.axes.executeCollaborate.right`},{id:d.playfulSerious,leftKey:`personalityPage.axes.playfulSerious.left`,rightKey:`personalityPage.axes.playfulSerious.right`},{id:d.politeUnfiltered,leftKey:`personalityPage.axes.politeUnfiltered.left`,rightKey:`personalityPage.axes.politeUnfiltered.right`}];function S(){let{t:e}=r(`settings`),i=l(),o=n(),d=c.use.vellumHostedInference(),S=c.use.hasHydrated(),C=t({queryKey:_(i),queryFn:()=>g(i)}),[w,T]=(0,y.useState)(null),[E,D]=(0,y.useState)(!1),O=w??C.data??{};if(S&&!d)return(0,b.jsx)(a,{replace:!0,to:f.settings.general});let k=()=>{D(!0),h(i,v(O)).then(t=>{D(!1),t?(o.invalidateQueries({queryKey:_(i)}),s.success(e(`personalityPage.saveSuccessToast`))):s.error(e(`personalityPage.saveErrorToast`))})},A=E||C.isLoading;return(0,b.jsxs)(`div`,{"data-slot":`personality-page`,className:`space-y-6`,children:[(0,b.jsx)(m,{title:e(`personalityPage.title`),subtitle:e(`personalityPage.subtitle`),children:C.isError?(0,b.jsx)(`p`,{className:`text-body-medium-default text-[var(--content-tertiary)]`,children:e(`personalityPage.loadError`)}):(0,b.jsx)(`div`,{className:`flex flex-col gap-6`,children:x.map(t=>{let n=e(t.leftKey),r=e(t.rightKey);return(0,b.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,b.jsxs)(`div`,{className:`flex items-center justify-between gap-3 text-body-small-default text-[var(--content-tertiary)]`,children:[(0,b.jsx)(`span`,{children:n}),(0,b.jsx)(`span`,{children:r})]}),(0,b.jsx)(p,{value:O[t.id]??50,onValueChange:e=>{typeof e==`number`&&T({...O,[t.id]:e})},min:0,max:100,step:1,disabled:A,"aria-label":e(`personalityPage.rangeAriaLabel`,{left:n,right:r})})]},t.id)})})}),(0,b.jsx)(u,{onClick:k,disabled:A||C.isError,children:e(E?`personalityPage.saving`:`personalityPage.save`)})]})}export{S as SettingsPersonalityPage};
@@ -0,0 +1 @@
1
+ import{Qv as e,bg as t,oh as n,sh as r,wg as i}from"./index-jpjzZb6b.js";function a(e){return[`personality-sliders`,e]}function o(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:Object.values(e).every(e=>typeof e==`number`)}function s(e){return Object.fromEntries(Object.values(n).map(t=>[t,e[t]??50]))}async function c(n){let{data:i,error:a,response:s}=await t({path:{assistant_id:n},query:{path:r},throwOnError:!1});if(e(s,a,`Failed to fetch personality sliders`),s.status===404)return null;if(!s.ok||!i)throw Error(`Failed to fetch personality sliders`);let c=JSON.parse(i.content);if(!o(c))throw Error(`Personality sliders sidecar is malformed`);return c}async function l(t,n){try{let{error:a,response:o}=await i({path:{assistant_id:t},body:{path:r,content:JSON.stringify(n,null,2),encoding:`utf-8`},throwOnError:!1});return e(o,a,`Failed to save personality sliders`),o.ok}catch{return!1}}export{l as i,c as n,a as r,s as t};
@@ -0,0 +1 @@
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Jn as t,N as n,Zn as r,er as i,j as a}from"./vendor-CV8wawxx.js";import{b as o,f as s,g as c,t as l}from"./react-DPM_L_aA.js";import{Cn as u,Nr as d,hi as f,rn as p,sr as m,v as h,z as g}from"./icons-J6Mg9wGk.js";import{A as _,C as v,D as y,F as b,H as x,M as S,N as C,O as w,P as ee,R as T,T as E,V as te,a as ne,d as re,g as ie,h as ae,i as oe,j as D,k as se,m as O,n as ce,o as le,p as ue,r as de,t as fe,x as k,z as pe}from"./use-checkout-dismiss-refresh-BQT7Bbuc.js";import{Ag as A,Bv as me,Ey as j,Iy as M,Jf as he,Mg as N,Nr as ge,Pv as _e,Qg as ve,Ry as P,Xf as ye,Xp as be,Yf as xe,Yy as Se,al as Ce,fl as we,il as Te,ip as Ee,ml as De,nb as F,nl as Oe,pl as ke,rl as Ae,sl as je,tb as I,ul as L,vp as Me,zv as R}from"./index-jpjzZb6b.js";import{t as Ne}from"./android-billing-handoff-DX4FW2PE.js";import{t as Pe}from"./checkout-return-target-Dwmbf6kF.js";import{i as z,r as Fe,s as Ie,t as B}from"./machine-sizes-C3GmmuDZ.js";var V=e(o(),1),Le=`__none__`,H=`__baseline__`,U=`${z[B]} machine (${Fe[B]})`;function Re(e){let{proPlan:t,seed:n,machineTier:r,storageTier:i,creditChoice:a,noBundleLabel:o}=e,s=t.machine_tiers,c=t.storage_tiers,l=t.credit_tiers??[],u=r===H,d=u?null:s.find(e=>e.tier===r)??null,f=u?U:d?.description??null,p=c.find(e=>e.tier===i)??null,m=a&&a!==`__none__`?l.find(e=>e.tier===a)??null:null,h=n!=null&&n.machineTier!=null?s.find(e=>e.tier===n.machineTier)??null:null,g=n==null?null:n.machineTier??`__baseline__`,_=n==null?void 0:n.machineTier==null?U:h?.description,v=n==null?null:c.find(e=>e.tier===n.storageTier)??null,y=n!=null&&n.creditTier!=null?l.find(e=>e.tier===n.creditTier)??null:null,b=n!=null&&n.machineTier!=null&&h==null,x=n!=null&&v==null,S=[{key:`base`,label:`Platform fee: ${se(t.base_price_cents)}`,changed:!1}];if(f!=null){let e=n!=null&&!b&&g!==r;S.push({key:`machine`,label:f,previousLabel:e?_:void 0,changed:e})}if(p!=null){let e=n!=null&&!x&&v?.tier!==p.tier;S.push({key:`storage`,label:D(p.storage_gib),previousLabel:e&&v!=null?D(v.storage_gib):void 0,changed:e})}let C=a===`__none__`?o:m==null?null:m.label;if(C!=null){let e=n!=null&&(n.creditTier??`__none__`)!==a,t=n?.creditTier==null?o:y?.label;S.push({key:`credit`,label:C,previousLabel:e?t:void 0,changed:e})}let w=t.base_price_cents+(d?.price_cents??0)+(p?.price_cents??0)+(m?.price_cents??0),ee=b||x||n!=null&&n.creditTier!=null&&y==null;if(n==null||ee)return{totalCents:w,previousTotalCents:null,deltaCents:null,rows:S};let T=t.base_price_cents+(h?.price_cents??0)+(v?.price_cents??0)+(y?.price_cents??0);return{totalCents:w,previousTotalCents:T,deltaCents:w-T,rows:S}}var W=`https://www.vellum.ai/docs/pricing`,ze=`${W}#machine-sizes`,Be=`${W}#storage`,Ve=`${W}#credit-bundles`,G=l();function K(e){return(0,G.jsxs)(`span`,{className:`text-[12px] font-medium text-[var(--content-disabled)]`,children:[`+`,se(e)]})}function q({label:e,docsUrl:t,docsLabel:n,learnMore:r}){return(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,G.jsx)(`span`,{className:`text-[11px] font-medium text-[var(--content-secondary)]`,children:e}),(0,G.jsx)(`a`,{href:t,target:`_blank`,rel:`noopener noreferrer`,"aria-label":n,onClick:e=>A(e,t),className:`text-[11px] font-medium text-[var(--content-tertiary)] underline hover:text-[var(--content-default)]`,children:r})]})}function He({open:e,proPlan:t,pending:n,currentStorageGib:r,initialSelection:i,onClose:o,onContinue:s}){let{t:c}=a(`settings`),l=c(`customPlanModal.noExtraUsage`),f=e?i??null:null,[p,h]=(0,V.useState)(()=>f?f.machineTier??`__baseline__`:``),[_,v]=(0,V.useState)(()=>f?.storageTier??``),[b,S]=(0,V.useState)(()=>f?f.creditTier??`__none__`:``),[C,ee]=(0,V.useState)({open:e,initialSelection:i});(C.open!==e||C.initialSelection!==i)&&(ee({open:e,initialSelection:i}),h(f?f.machineTier??`__baseline__`:``),v(f?.storageTier??``),S(f?f.creditTier??`__none__`:``));let T=t.machine_tiers,E=(0,V.useMemo)(()=>t.storage_tiers.filter(e=>!e.legacy||e.tier===i?.storageTier),[t.storage_tiers,i?.storageTier]),te=t.credit_tiers??[],ne=(0,V.useMemo)(()=>(t.credit_tiers??[]).filter(e=>!e.legacy),[t.credit_tiers]),re=e=>k(e)||e.legacy&&e.tier!==i?.storageTier||r!=null&&e.storage_gib<r,ie=i!=null&&i.machineTier==null,ae=[...ie?[{value:H,label:U,icon:(0,G.jsx)(x,{className:`h-4 w-4`,"aria-hidden":!0}),disabled:!0}]:[],...T.map(e=>({value:e.tier,label:e.description,icon:(0,G.jsx)(x,{className:`h-4 w-4`,"aria-hidden":!0}),suffix:K(e.price_cents),disabled:k(e)}))],oe=E.map(e=>({value:e.tier,label:e.label,icon:(0,G.jsx)(u,{className:`h-4 w-4`,"aria-hidden":!0}),suffix:K(e.price_cents),disabled:re(e)})),D=b&&b!==`__none__`?te.find(e=>e.tier===b)??null:null,O=D?.legacy?D:null,ce=[{value:Le,label:l,icon:(0,G.jsx)(m,{className:`h-4 w-4`,"aria-hidden":!0})},...ne.map(e=>({value:e.tier,label:e.label,icon:(0,G.jsx)(m,{className:`h-4 w-4`,"aria-hidden":!0}),suffix:K(e.price_cents)})),...O?[{value:O.tier,label:O.label,icon:(0,G.jsx)(m,{className:`h-4 w-4`,"aria-hidden":!0}),suffix:K(O.price_cents),disabled:!0}]:[]],le=p===H,ue=le?null:T.find(e=>e.tier===p)??null,de=le?ie?{tier:null}:null:ue==null?null:{tier:ue.tier},fe=_!==``&&_===i?.storageTier,pe=E.find(e=>e.tier===_&&(fe||!re(e)))??null,A=b===`__none__`||b===i?.creditTier||ne.some(e=>e.tier===b),me=b!==``&&A?b:null,M=de!=null&&pe!=null&&me!=null,he=i!=null&&p===(i.machineTier??`__baseline__`)&&_===i.storageTier&&b===(i.creditTier??`__none__`),N=(0,V.useMemo)(()=>Re({proPlan:t,seed:i??null,machineTier:p,storageTier:_,creditChoice:b,noBundleLabel:l}),[t,i,p,_,b,l]);return(0,G.jsx)(P.Root,{open:e,onOpenChange:e=>{e||o()},children:(0,G.jsx)(P.Content,{size:`lg`,"data-theme":`light`,hideCloseButton:!0,overlayClassName:`backdrop-blur-[2px]`,className:`max-w-[820px] md:min-h-[min(608px,calc(100vh-4rem))]`,children:(0,G.jsx)(P.Body,{className:`p-4`,children:(0,G.jsxs)(`div`,{className:`flex flex-col gap-8 md:flex-row md:gap-12`,children:[(0,G.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-6 md:flex-1`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,G.jsx)(`div`,{className:`flex shrink-0 items-center justify-center rounded-xl bg-[var(--surface-active)] p-[14px]`,children:(0,G.jsx)(g,{className:`h-6 w-6 text-[var(--content-emphasised)]`,"aria-hidden":!0})}),(0,G.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,G.jsx)(P.Title,{className:`text-[16px] font-medium text-[var(--content-emphasised)]`,children:c(`customPlanModal.title`)}),(0,G.jsx)(P.Description,{className:`mt-0 text-[14px] font-medium leading-[18px] text-[var(--content-tertiary)]`,children:c(`customPlanModal.subtitle`)})]})]}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,G.jsx)(q,{label:c(`customPlanModal.machineSizeLabel`),docsUrl:ze,docsLabel:c(`customPlanModal.machineSizeDocsAriaLabel`),learnMore:c(`customPlanModal.learnMore`)}),(0,G.jsx)(j,{"aria-label":c(`customPlanModal.machineSizeAriaLabel`),placeholder:c(`customPlanModal.machineSizePlaceholder`),value:p,onChange:h,options:ae})]}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,G.jsx)(q,{label:c(`customPlanModal.storageLabel`),docsUrl:Be,docsLabel:c(`customPlanModal.storageDocsAriaLabel`),learnMore:c(`customPlanModal.learnMore`)}),(0,G.jsx)(j,{"aria-label":c(`customPlanModal.storageAriaLabel`),placeholder:c(`customPlanModal.storagePlaceholder`),value:_,onChange:v,options:oe})]}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,G.jsx)(q,{label:c(`customPlanModal.usageBundleLabel`),docsUrl:Ve,docsLabel:c(`customPlanModal.usageBundleDocsAriaLabel`),learnMore:c(`customPlanModal.learnMore`)}),(0,G.jsx)(j,{"aria-label":c(`customPlanModal.usageBundleAriaLabel`),placeholder:c(`customPlanModal.usageBundlePlaceholder`),value:b,onChange:S,options:ce})]})]}),(0,G.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-16 md:pt-[5px]`,children:[(0,G.jsx)(`span`,{className:`text-[16px] font-medium text-[var(--content-emphasised)]`,children:c(`customPlanModal.recap`)}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,G.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,G.jsx)(`span`,{className:`text-[24px] font-medium text-[var(--content-default)]`,children:se(N.totalCents)}),N.deltaCents!=null&&N.deltaCents!==0&&N.previousTotalCents!=null&&(0,G.jsx)(`span`,{className:`text-[12px] font-medium ${N.deltaCents>0?`text-[var(--system-positive-strong)]`:`text-[var(--system-negative-strong)]`}`,children:c(`customPlanModal.comparedToPrevious`,{delta:y(N.deltaCents),previous:w(N.previousTotalCents)})}),(0,G.jsx)(`span`,{className:`text-[11px] font-medium text-[var(--content-tertiary)]`,children:c(`customPlanModal.totalBilledMonthly`)})]}),(0,G.jsx)(`div`,{className:`h-px w-full bg-[var(--border-hover)]`}),(0,G.jsx)(`span`,{className:`text-[12px] font-medium text-[var(--content-tertiary)]`,children:c(`customPlanModal.yourSelection`)}),(0,G.jsx)(`ul`,{className:`flex flex-col gap-2`,children:N.rows.map(e=>(0,G.jsxs)(`li`,{className:`flex flex-col gap-2`,children:[e.previousLabel!=null&&(0,G.jsxs)(`div`,{className:`relative flex w-fit items-start gap-2`,children:[(0,G.jsx)(d,{className:`mt-0.5 h-4 w-4 shrink-0 text-[var(--content-disabled)]`,"aria-hidden":!0}),(0,G.jsx)(`s`,{className:`text-[14px] font-medium leading-[18px] text-[var(--content-disabled)] no-underline`,children:e.previousLabel}),(0,G.jsx)(`span`,{"aria-hidden":!0,className:`pointer-events-none absolute -left-1 right-0 top-[9px] h-px bg-[var(--content-disabled)]`})]}),(0,G.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,G.jsx)(d,{className:`mt-0.5 h-4 w-4 shrink-0 ${e.changed?`text-[var(--system-positive-strong)]`:`text-[var(--content-secondary)]`}`,"aria-hidden":!0}),(0,G.jsx)(`span`,{className:`text-[14px] font-medium leading-[18px] text-[var(--content-secondary)]`,children:e.label})]})]},e.key))}),(0,G.jsx)(F,{variant:`primary`,fullWidth:!0,disabled:!M||he||n,onClick:()=>{!M||he||n||s({machineTier:de.tier,storageTier:pe.tier,creditTier:me===`__none__`?null:me})},children:c(`customPlanModal.continue`)}),(0,G.jsx)(F,{variant:`ghost`,fullWidth:!0,disabled:n,onClick:o,children:c(`customPlanModal.cancel`)})]})]})]})})})})}function Ue({className:e,onConfigure:t,configureDisabled:n,isCurrent:r=!1,currentSummary:i}){let{t:o}=a(`settings`);return(0,G.jsxs)(`div`,{className:`flex w-full flex-col items-center gap-8 ${e??``}`,children:[(0,G.jsx)(`p`,{className:`text-center text-[20px] font-medium text-[var(--content-tertiary)]`,children:o(`customPlanRow.prompt`)}),(0,G.jsxs)(`div`,{className:`flex w-[840px] max-w-full flex-col items-start gap-4 rounded-2xl bg-[var(--surface-lift)] p-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6`,children:[(0,G.jsxs)(`div`,{className:`flex min-w-0 items-center gap-4`,children:[(0,G.jsx)(`div`,{className:`flex shrink-0 items-center justify-center rounded-xl bg-[var(--content-disabled)] p-[14px]`,children:(0,G.jsx)(g,{className:`h-6 w-6 text-[var(--aux-white)]`,"aria-hidden":!0})}),(0,G.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,G.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,G.jsx)(`span`,{className:`text-[16px] font-medium text-[var(--content-emphasised)]`,children:o(`customPlanRow.title`)}),r?(0,G.jsx)(Se,{className:`bg-[var(--feed-digest-weak)] text-[var(--content-default)]`,children:o(`customPlanRow.currentPlanTag`)}):null]}),(0,G.jsx)(`span`,{className:`text-[14px] font-medium text-[var(--content-tertiary)]`,children:i??o(`customPlanRow.genericDescriptor`)})]})]}),(0,G.jsx)(`div`,{className:`flex shrink-0 items-center gap-3`,children:(0,G.jsx)(F,{variant:`outlined`,onClick:t,disabled:n,children:o(`customPlanRow.configure`)})})]})]})}function We({open:e,lostFeatures:t,viaPortal:n,pending:r,onCancel:i,onConfirm:o}){let{t:s}=a(`settings`),c=t.length>0;return(0,G.jsx)(P.Root,{open:e,onOpenChange:e=>{!e&&!r&&i()},children:(0,G.jsxs)(P.Content,{size:`md`,hideCloseButton:!0,children:[(0,G.jsx)(P.Header,{icon:h,children:(0,G.jsx)(P.Title,{children:s(`freeDowngradeConfirmModal.title`)})}),(0,G.jsxs)(P.Body,{children:[(0,G.jsx)(I,{as:`p`,variant:`body-medium-default`,className:`text-(--content-secondary)`,children:s(n?c?`freeDowngradeConfirmModal.bodyWithFeaturesPortal`:`freeDowngradeConfirmModal.bodyCancelOnlyPortal`:c?`freeDowngradeConfirmModal.bodyWithFeatures`:`freeDowngradeConfirmModal.bodyCancelOnly`)}),c?(0,G.jsx)(`ul`,{className:`mt-4 list-disc space-y-2 pl-5`,children:t.map(e=>(0,G.jsx)(`li`,{children:(0,G.jsx)(I,{as:`span`,variant:`body-medium-default`,children:e})},e))}):null]}),(0,G.jsxs)(P.Footer,{children:[(0,G.jsx)(F,{variant:`outlined`,onClick:i,disabled:r,children:s(`freeDowngradeConfirmModal.cancel`)}),(0,G.jsx)(F,{variant:`danger`,onClick:o,disabled:r,"data-testid":`confirm-free-downgrade-button`,children:s(`freeDowngradeConfirmModal.confirm`)})]})]})})}function Ge({tierKey:e,name:t,tagline:n,priceLabel:r,priceCaption:i,ctaLabel:o,features:s,recommended:c=!1,tone:l=`dark`,isCurrent:u,intent:f=`upgrade`,pending:p,onCta:m}){let{t:h}=a(`settings`),g=f===`downgrade`&&!u;return(0,G.jsxs)(`div`,{"data-theme":l,className:`flex w-full flex-col gap-3 rounded-2xl bg-[var(--surface-lift)] p-3 sm:gap-4 sm:p-4`,children:[(0,G.jsx)(C,{tier:e,size:50}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,G.jsxs)(`div`,{className:`flex h-8 items-center gap-2`,children:[(0,G.jsx)(`span`,{className:`text-[20px] font-medium text-[var(--content-emphasised)]`,children:t}),c&&!g&&!u?(0,G.jsx)(Se,{className:`bg-[var(--feed-digest-weak)] text-[12px] font-semibold uppercase text-[var(--credits-accent)]`,children:h(`planColumnCard.recommended`)}):null]}),(0,G.jsx)(`p`,{className:`overflow-hidden text-[14px] font-medium leading-[18px] text-[var(--content-tertiary)] sm:h-9`,children:n})]}),(0,G.jsx)(`div`,{className:`h-px w-full bg-[var(--border-hover)]`}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,G.jsx)(`span`,{className:`text-[24px] font-medium text-[var(--content-default)]`,children:r}),(0,G.jsx)(`span`,{className:`text-[11px] font-medium text-[var(--content-tertiary)]`,children:i})]}),(0,G.jsx)(F,{variant:g?`outlined`:`primary`,fullWidth:!0,disabled:u||p,onClick:m,children:u?h(`planColumnCard.currentPlan`):o}),(0,G.jsx)(`div`,{className:`h-px w-full bg-[var(--border-hover)]`}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-2 sm:gap-4`,children:[(0,G.jsx)(`span`,{className:`text-[12px] font-medium text-[var(--content-tertiary)]`,children:h(`planColumnCard.includes`)}),(0,G.jsx)(`ul`,{className:`flex flex-col gap-2`,children:s.map(e=>(0,G.jsxs)(`li`,{className:`flex items-start gap-2`,children:[(0,G.jsx)(d,{className:`mt-0.5 h-4 w-4 shrink-0 text-[var(--content-secondary)]`,"aria-hidden":!0}),(0,G.jsx)(`span`,{className:`text-[14px] font-medium text-[var(--content-secondary)]`,children:e})]},e))})]})]})}function Ke({enabled:e=!0}={}){let n=i(),a=Me(),o=e&&a,s=r({...we(),enabled:o}),c=s.data,l=c!=null&&c.plan_id!==`base`,u=r({...L(),enabled:o&&l}),d=r({...Oe(),enabled:o&&l}).data?.plans.find(e=>e.id===`pro`)?.machine_tiers??[],f=e=>d.find(t=>t.tier===e)?.price_cents??null,p=t(Ce()),m=t(je()),h=t(Te()),g={machineTier:u.data?.max_machine_tier??null,storageTier:u.data?.selected_storage_tier??null,storageGib:u.data?.selected_storage_gib??null,creditTier:c?.selected_credit_tier??null},_=c!=null&&c.plan_id!==`base`&&c.status!=null&&ue.has(c.status)&&c.cancel_at_period_end!==!0&&!c.cancel_at,v=!l||!u.isPending,y=!l||u.isSuccess&&u.data!=null&&!u.isFetching&&u.dataUpdatedAt>=s.dataUpdatedAt;return{changeTiers:async e=>{let t=e.machineTier!==g.machineTier,r=e.storageTier!==g.storageTier,i=e.creditTier!==g.creditTier,a=f(e.machineTier),o=f(g.machineTier),s=t&&a!=null&&o!=null&&a<o,c=[];if(t&&c.push(new Promise(t=>{p.mutate({body:{machine_tier:e.machineTier}},{onSuccess:()=>t({dimension:`machine`,ok:!0}),onError:e=>t({dimension:`machine`,ok:!1,error:e})})})),r&&c.push(new Promise(t=>{m.mutate({body:{storage_tier:e.storageTier}},{onSuccess:()=>t({dimension:`storage`,ok:!0}),onError:e=>t({dimension:`storage`,ok:!1,error:e})})})),i&&c.push(new Promise(t=>{h.mutate({body:{credit_tier:e.creditTier}},{onSuccess:()=>t({dimension:`credit`,ok:!0}),onError:e=>t({dimension:`credit`,ok:!1,error:e})})})),c.length===0)return{needsResize:!1,creditChanged:!1};let l=await Promise.all(c);await oe(n);let u=l.some(e=>e.ok&&e.dimension===`machine`)&&!s,d=l.some(e=>e.ok&&e.dimension===`storage`),_=u||d,v=l.some(e=>e.ok&&e.dimension===`credit`),y=l.filter(e=>!e.ok);if(y.length>0){let e=y.map(e=>O(e.error,`Failed to update ${e.dimension} tier.`)).join(` `);return M.error(e),_||v?{needsResize:_,creditChanged:v}:null}return{needsResize:_,creditChanged:v}},isPending:p.isPending||m.isPending||h.isPending,current:g,eligible:_,currentReady:v,currentKnown:y,primaryAssistantId:y?u.data?.primary_assistant_id??null:null}}var qe=`#0A0A0B`,Je=8e3,Ye={upgrade:`upgrade`,downgrade:`downgrade`,switch:`change`};ge();function J(e,t){return t(`plansPage.featureComputer`,{machine:E(e)})}function Xe(e,t,n){return[J(e,n),n(`plansPage.featureStorage`,{gib:e.storage_gib}),n(`plansPage.featureUsage`,{name:e.name}),...t]}function Ze(e,t){return v(e,t).join(` · `)}function Qe(){let{t:e}=a(`settings`),o=s(),[l,u]=c(),d=i(),m=me(),h=ye({platformHostedOnly:!0}),g=he(),v=xe(),y=h===`full`&&g,x=h===`full`&&v,C=r({...we(),enabled:y}),w=r({...Oe(),enabled:y}),E=t(De()),{changePackage:oe,isPending:D}=de(),{changeTiers:se,isPending:ue,current:k,currentReady:A,currentKnown:j,primaryAssistantId:ge}=Ke({enabled:y});fe();let[P,Se]=(0,V.useState)(!1),[Ce,Te]=(0,V.useState)(!1),[je,I]=(0,V.useState)(!1),[L,z]=(0,V.useState)(null),[Fe,B]=(0,V.useState)(!1),[Le,H]=(0,V.useState)(void 0),U=(0,V.useRef)(!1),[Re,ze]=(0,V.useState)(!1),Be=(0,V.useRef)(!1),[Ve,K]=(0,V.useState)(null),q=C.data,J=w.data?.plans.find(e=>e.id===`pro`),Qe=J?.packages??[],$e=Qe.length>0,Y=q?.plan_id===`pro`,et=Me(),tt=te(ge,y&&et&&Y&&j),nt=j?tt:void 0,X=q?q.plan_id===`base`?`free`:b(q.package)?q.package.key:null:null,{cancelSubscription:rt,isPending:it}=ne(),at=ae(q),ot=re(le(q)),st=be(),ct=new Set(w.data?.plans.find(e=>e.id===`base`)?.included_features??[]),lt=(J?.included_features??[]).filter(e=>!ct.has(e)),Z=P||D||it||ot.isPending,ut=(0,V.useMemo)(()=>!Y||k.storageTier==null?null:{machineTier:k.machineTier,storageTier:k.storageTier,creditTier:k.creditTier},[Y,k.machineTier,k.storageTier,k.creditTier]),Q=l.get(_e),dt=!y&&!x,ft=y&&!w.isLoading&&!$e,$=dt||!(Q!=null&&!Re)&&(C.isError||ft);(0,V.useEffect)(()=>{$&&o(dt?R.settings.usageBilling:`${R.settings.usageBilling}&adjust_plan`,{replace:!0})},[$,dt,o]);let pt=()=>{(window.history.state?.idx??0)>0?o(-1):o(R.settings.usageBilling)},mt=async t=>{Se(!0);try{let e=await E.mutateAsync({body:{...t,return_target:Pe()}});e.status===`redirect`&&e.checkout_url?(ve(t.package?{kind:`package`,packageKey:t.package}:{kind:`custom`,machineTier:t.machine_tier??null,storageTier:t.storage_tier??null,creditTier:t.credit_tier??null}),Ee(d),N(e.checkout_url)):(await d.invalidateQueries({queryKey:ke()}),await d.invalidateQueries({queryKey:Ae()}))}catch(t){M.error(O(t,e(`plansPage.checkoutFailedToast`)))}finally{Se(!1)}},ht=(e,t)=>{if(q&&!Z){if(st){Ne(R.plans);return}if(Y){if(e===`free`){I(!0);return}let n=Qe.find(t=>t.key===e);if(!n||T(X,n.key)===`current`)return;if(!ie(q)){o(`${R.settings.usageBilling}&adjust_plan`,{replace:t?.replaceOnBail===!0});return}z(n);return}e!==`free`&&mt({target_plan_id:`pro`,package:e,confirm:!0})}},gt=(0,V.useRef)(ht);(0,V.useEffect)(()=>{gt.current=ht}),(0,V.useEffect)(()=>{if(Q==null||U.current||$||!y||Be.current)return;Be.current=!0;let e=setTimeout(()=>{ze(!0)},Je),t=()=>{clearTimeout(e),ze(!0)};Promise.all([d.refetchQueries({queryKey:ke()}),d.refetchQueries({queryKey:Ae()})]).then(t,t)},[$,Q,y,d]),(0,V.useEffect)(()=>{Q==null||U.current||$||!y||!Re||(U.current=!0,Y&&Q!==`free`&&K(Q),u(e=>{let t=new URLSearchParams(e);return t.delete(_e),t},{replace:!0}))},[Re,$,Q,y,Y,u]),(0,V.useEffect)(()=>{Ve==null||Q!=null||(K(null),gt.current(Ve,{replaceOnBail:!0}))},[Q,Ve]);let _t;if(q&&J&&$e){let t=Y&&X===null&&A&&k.storageGib!=null,r=t?Ze(k,J):void 0,i=async()=>{if(!at){I(!1),ot.mutate({});return}await rt()&&I(!1)},a=()=>({creditTier:k.creditTier,fromSnapshot:{machineSize:nt?.machine_size??null,storageGib:nt?.provisioned_storage_gib??null}}),o=L?X===null?`switch`:T(X,L.key)===`downgrade`?`downgrade`:`upgrade`:`upgrade`,s=async()=>{if(!L)return;let t=L,n=a(),r=X===null||!A||!j||Ie(k.machineTier,t.machine_tier),i=await oe(t.key);if(!i)return;if(z(null),i.status===`no_op`){M.success(e(`plansPage.alreadyOnPlanToast`));return}let s=t.credit_tier??null;H({fromSnapshot:n.fromSnapshot,credits:s===n.creditTier?null:{fromTier:n.creditTier,toTier:s},direction:Ye[o],canLowerResources:r}),B(!0)},c=e=>mt({target_plan_id:`pro`,confirm:!0,machine_tier:e.machineTier,storage_tier:e.storageTier,credit_tier:e.creditTier}),l=async t=>{let n=a(),r=!j||Ie(k.machineTier,t.machineTier),i=await se(t);i&&(Te(!1),i.needsResize||i.creditChanged?(H({fromSnapshot:n.fromSnapshot,credits:i.creditChanged?{fromTier:n.creditTier,toTier:t.creditTier}:null,direction:`change`,canLowerResources:r}),B(!0)):M.success(e(`plansPage.planUpdatedToast`)))},u=()=>{if(!Z){if(st){Ne(R.plans);return}Y&&!A||Te(!0)}},d=[...Qe].sort((e,t)=>ee.indexOf(e.key)-ee.indexOf(t.key)),f=S(`free`),p=Y?`downgrade`:T(X,`free`),m=[e(`plansPage.freeFeatureSmallComputer`),e(`plansPage.freeFeatureStorage`,{gib:4}),e(`plansPage.freeFeaturePayAsYouGo`)];_t=(0,G.jsxs)(`div`,{className:`my-auto flex w-full flex-col items-center`,children:[(0,G.jsxs)(`header`,{className:`flex flex-col items-center gap-2 text-center`,children:[(0,G.jsx)(`h1`,{className:`text-[40px] text-[var(--content-emphasised)] sm:text-[60px]`,style:{fontFamily:`var(--font-serif)`,fontWeight:400,lineHeight:1.2,letterSpacing:`1.2px`},children:e(`plansPage.heading`)}),(0,G.jsx)(`p`,{className:`text-[20px] font-medium text-[var(--content-tertiary)]`,children:e(`plansPage.subheading`)})]}),(0,G.jsxs)(`div`,{className:`mt-6 grid w-full max-w-[1312px] grid-cols-1 items-start gap-4 sm:mt-10 sm:grid-cols-2 sm:gap-6 lg:grid-cols-4`,children:[(0,G.jsx)(Ge,{tierKey:`free`,name:`Base`,tagline:f?.tagline??``,priceLabel:e(`plansPage.freePriceLabel`),priceCaption:f?.priceCaption??e(`plansPage.foreverCaption`),ctaLabel:p===`downgrade`?e(`plansPage.downgradeTo`,{name:`Base`}):f?.cta??e(`plansPage.startFreeCta`),features:m,tone:`dark`,isCurrent:X===`free`,intent:p,pending:Z,onCta:()=>ht(`free`)}),d.map(t=>{let n=S(t.key),r=T(X,t.key);return(0,G.jsx)(Ge,{tierKey:t.key,name:t.name,tagline:n?.tagline??``,priceLabel:_(t.total_price_cents),priceCaption:n?.priceCaption??e(`plansPage.billedMonthlyCaption`),ctaLabel:r===`downgrade`?e(`plansPage.downgradeTo`,{name:t.name}):n?.cta??t.name,features:Xe(t,n?.extraFeatures??[],e),recommended:n?.recommended,tone:n?.recommended?`light`:`dark`,isCurrent:X===t.key,intent:r,pending:Z,onCta:()=>ht(t.key)},t.key)})]}),(0,G.jsx)(Ue,{className:`mt-6 sm:mt-10`,onConfigure:u,configureDisabled:Y&&!A||Z,isCurrent:t,currentSummary:r}),(0,G.jsx)(He,{open:Ce,proPlan:J,pending:P||ue,currentStorageGib:Y?k.storageGib:null,initialSelection:ut,onClose:()=>Te(!1),onContinue:e=>{Y?l(e):c(e)}}),(0,G.jsx)(ce,{open:L!==null,relation:o,packageName:L?.name??``,targetPackage:L,pending:D,onCancel:()=>z(null),onConfirm:()=>void s()}),(0,G.jsx)(We,{open:je,lostFeatures:lt,viaPortal:!at,pending:it||ot.isPending,onCancel:()=>I(!1),onConfirm:()=>void i()}),(0,G.jsx)(pe,{mode:`resize`,open:Fe,onClose:()=>{B(!1),H(void 0)},resizeContext:Le}),(0,G.jsx)(`p`,{className:`mt-6 text-center text-[12px] font-medium text-[var(--content-tertiary)] sm:mt-10`,children:(0,G.jsx)(n,{ns:`settings`,i18nKey:`plansPage.cancelAnytimeFooter`,components:{docsLink:(0,G.jsx)(`a`,{href:W,target:`_blank`,rel:`noopener noreferrer`,className:`text-[var(--content-default)] underline`})}})})]})}else _t=(0,G.jsx)(`div`,{className:`my-auto flex items-center justify-center`,children:(0,G.jsx)(p,{className:`h-6 w-6 animate-spin text-[var(--content-tertiary)]`,"aria-label":e(`plansPage.loadingPlansAriaLabel`)})});return(0,G.jsxs)(`div`,{"data-theme":`dark`,className:`plans-takeover-canvas-enter relative h-full w-full overflow-y-auto`,style:{backgroundColor:qe},children:[(0,G.jsx)(`div`,{className:`absolute left-8 z-10 [-webkit-app-region:no-drag]`,style:{top:m?`3rem`:`2rem`},children:(0,G.jsx)(F,{variant:`outlined`,leftIcon:(0,G.jsx)(f,{className:`h-4 w-4`,"aria-hidden":!0}),onClick:pt,className:`[-webkit-app-region:no-drag]`,children:e(`plansPage.back`)})}),(0,G.jsx)(`div`,{className:`plans-takeover-content-enter flex min-h-full flex-col items-center px-4 pb-8 sm:px-6`,style:{paddingTop:m?`5rem`:`4rem`},children:_t})]})}function $e(){return(0,G.jsx)(Qe,{})}export{$e as PlansPage};
@@ -1 +1 @@
1
- import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{j as t}from"./vendor-CCI2T82b.js";import{b as n,f as r,g as i,t as a}from"./react-DPM_L_aA.js";import{Ag as o,Qp as s,Sv as c,Z_ as l,_m as u,nv as d,zf as f}from"./index-BHBLeC80.js";var p=e(n(),1),m=a(),h=`vellum:loopback:state`,g=`vellum:loopback:returnTo`;function _(){let{t:e}=t(`account`),[n]=i(),a=r(),[_,v]=(0,p.useState)(null);return(0,p.useEffect)(()=>{let t=n.get(`state`),r=n.get(`session_token`),i=sessionStorage.getItem(h),p=sessionStorage.getItem(g)||c.assistant;if(sessionStorage.removeItem(h),sessionStorage.removeItem(g),!t||t!==i){v(e(`authErrors.loopbackStateMismatch`));return}if(!r){v(e(`authErrors.loopbackNoToken`));return}if(!/^[a-zA-Z0-9]+$/.test(r)){v(e(`authErrors.loopbackInvalidToken`));return}(async()=>{if(!await d(r)){v(`Login failed: couldn't reach the local Vellum server to store the session. Please try again.`);return}await f.getState().initSession(),await o(!0);try{let e=await u();if(e.ok&&e.data.length>0){await l(e.data,s.getState().currentOrganizationId??void 0),a(c.assistant,{replace:!0});return}}catch{}a(p,{replace:!0})})()},[n,a,e]),_?(0,m.jsx)(`div`,{className:`flex min-h-screen items-center justify-center bg-[var(--surface-base)] text-[var(--content-default)]`,children:(0,m.jsxs)(`div`,{className:`max-w-md text-center`,children:[(0,m.jsx)(`p`,{className:`text-body-medium-default`,children:_}),(0,m.jsx)(`button`,{type:`button`,className:`mt-4 rounded-lg border border-[var(--border-disabled)] px-4 py-2 text-sm hover:bg-[var(--surface-lift)]`,onClick:()=>void a(c.welcome),children:e(`platformLoopbackPage.backToWelcome`)})]})}):(0,m.jsx)(`div`,{className:`flex min-h-screen items-center justify-center bg-[var(--surface-base)] text-[var(--content-default)]`,children:(0,m.jsx)(`p`,{className:`text-body-medium-default`,children:e(`platformLoopbackPage.completing`)})})}export{_ as PlatformLoopbackPage};
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{j as t}from"./vendor-CV8wawxx.js";import{b as n,f as r,g as i,t as a}from"./react-DPM_L_aA.js";import{Am as o,Kg as s,Qf as c,dm as l,mv as u,yv as d,zv as f}from"./index-jpjzZb6b.js";var p=e(n(),1),m=a(),h=`vellum:loopback:state`,g=`vellum:loopback:returnTo`;function _(){let{t:e}=t(`account`),[n]=i(),a=r(),[_,v]=(0,p.useState)(null);return(0,p.useEffect)(()=>{let t=n.get(`state`),r=n.get(`session_token`),i=sessionStorage.getItem(h),p=sessionStorage.getItem(g)||f.assistant;if(sessionStorage.removeItem(h),sessionStorage.removeItem(g),!t||t!==i){v(e(`authErrors.loopbackStateMismatch`));return}if(!r){v(e(`authErrors.loopbackNoToken`));return}if(!/^[a-zA-Z0-9]+$/.test(r)){v(e(`authErrors.loopbackInvalidToken`));return}(async()=>{if(!await d(r)){v(`Login failed: couldn't reach the local Vellum server to store the session. Please try again.`);return}await c.getState().initSession(),await s(!0);try{let e=await o();if(e.ok&&e.data.length>0){await u(e.data,l.getState().currentOrganizationId??void 0),a(f.assistant,{replace:!0});return}}catch{}a(p,{replace:!0})})()},[n,a,e]),_?(0,m.jsx)(`div`,{className:`flex min-h-screen items-center justify-center bg-[var(--surface-base)] text-[var(--content-default)]`,children:(0,m.jsxs)(`div`,{className:`max-w-md text-center`,children:[(0,m.jsx)(`p`,{className:`text-body-medium-default`,children:_}),(0,m.jsx)(`button`,{type:`button`,className:`mt-4 rounded-lg border border-[var(--border-disabled)] px-4 py-2 text-sm hover:bg-[var(--surface-lift)]`,onClick:()=>void a(f.welcome),children:e(`platformLoopbackPage.backToWelcome`)})]})}):(0,m.jsx)(`div`,{className:`flex min-h-screen items-center justify-center bg-[var(--surface-base)] text-[var(--content-default)]`,children:(0,m.jsx)(`p`,{className:`text-body-medium-default`,children:e(`platformLoopbackPage.completing`)})})}export{_ as PlatformLoopbackPage};
@@ -0,0 +1 @@
1
+ import{m as e,r as t,t as n}from"./react-DPM_L_aA.js";import{hi as r,wv as i,zv as a}from"./index-jpjzZb6b.js";var o=n();function s(){let n=i.use.version(),s=r(),{name:c}=e();return n===null?null:!s||!c?(0,o.jsx)(t,{to:a.superpowers,replace:!0}):(0,o.jsx)(t,{to:`${a.superpowers}?plugin=${encodeURIComponent(c)}`,replace:!0})}export{s as PluginDetailPage};
@@ -0,0 +1 @@
1
+ import{g as e,r as t,t as n}from"./react-DPM_L_aA.js";import{zv as r}from"./index-jpjzZb6b.js";var i=n();function a(){let[n]=e(),a=n.toString();return(0,i.jsx)(t,{to:`${r.superpowers}${a?`?${a}`:``}`,replace:!0})}export{a as PluginsPage};
@@ -1 +1 @@
1
- import{j as e}from"./vendor-CCI2T82b.js";import{t}from"./react-DPM_L_aA.js";import{Si as n}from"./icons-B-6TfGtd.js";import{Ry as r}from"./index-BHBLeC80.js";var i=n(`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=t();function o({filename:t}){let{t:n}=e(`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)(r,{as:`span`,variant:`body-small-default`,className:`text-[var(--content-default)]`,children:n(`previewError.cannotPreview`)}),(0,a.jsx)(r,{as:`span`,variant:`label-small-default`,className:`truncate text-[var(--content-tertiary)]`,children:t})]})]})}export{o as t};
1
+ import{j as e}from"./vendor-CV8wawxx.js";import{t}from"./react-DPM_L_aA.js";import{Ci as n}from"./icons-J6Mg9wGk.js";import{tb as r}from"./index-jpjzZb6b.js";var i=n(`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=t();function o({filename:t}){let{t:n}=e(`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)(r,{as:`span`,variant:`body-small-default`,className:`text-[var(--content-default)]`,children:n(`previewError.cannotPreview`)}),(0,a.jsx)(r,{as:`span`,variant:`label-small-default`,className:`truncate text-[var(--content-tertiary)]`,children:t})]})]})}export{o as t};
@@ -0,0 +1 @@
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Jn as t,N as n,Zn as r,er as i,j as a}from"./vendor-CV8wawxx.js";import{b as o,t as s,y as c}from"./react-DPM_L_aA.js";import{Vr as l,W as u,i as d,rn as f,vt as p,x as m,zr as h}from"./icons-J6Mg9wGk.js";import{$f as g,$y as _,Ap as v,B as y,Bg as b,Cr as x,Ey as S,Fy as C,Gv as w,Gy as T,Hg as E,Hi as D,Hv as O,Iy as k,Jf as A,Kv as j,Ky as M,Ll as N,Nm as P,Pg as ee,Q as F,Qf as te,R as I,Rg as ne,Rl as re,Rv as ie,Sr as ae,Ug as oe,Ui as se,Uv as L,V as ce,Vg as le,Wi as ue,Wv as R,Xf as z,Yf as de,Yy as B,Zp as fe,ab as V,ac as pe,an as me,eb as H,ic as he,mu as ge,nb as U,pu as _e,wr as ve,z as W,zg as ye,zl as be,zp as xe,zv as Se}from"./index-jpjzZb6b.js";import{t as G}from"./detail-card-DuMOMNDt.js";import{t as K}from"./setting-row-BvR6-08v.js";import{t as Ce}from"./settings-divider-DU3ByZQg.js";var q=e(o(),1),J=s(),we=[{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}],Te=[{id:`notificationBadges`,type:`local`}];function Ee(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 De(){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 Oe(){let[e,t]=(0,q.useState)(()=>O(`dockBadgesEnabled`,!0));return(0,q.useEffect)(()=>j(`dockBadgesEnabled`,()=>{t(O(`dockBadgesEnabled`,!0))}),[]),[e,e=>{t(e),R(`dockBadgesEnabled`,e),e||se(0)}]}function ke({row:e,onToggle:t}){return(0,J.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,J.jsx)(T,{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:V(`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 Ae(){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 je({compact:e=!1}){let{t}=a(),{state:n,loading:r,error:i,supported:o,refresh:s}=be(),{pendingKind:c,run:l}=De(),[u,d]=Oe(),f=xe()===`windows`,p=(0,q.useMemo)(()=>we.filter(e=>!f||e.availableOnWindows),[f]),m=(0,q.useMemo)(()=>{let e=new Map;if(!n)return e;for(let t of p){let r=n[t.sourceKind];r&&r.status!==`not-applicable`&&e.set(t.id,{meta:t,item:r})}return e},[n,p]),h=(0,q.useMemo)(()=>{let e=p.map(e=>{let n=m.get(e.id)?.item;if(!n)return null;let r=Ee(e.id,t,f);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=D()===`taskbar icon`?t(`systemPermissionsCard.taskbarIcon`):t(`systemPermissionsCard.dockIcon`),r=ue()?Te.map(e=>({id:e.id,label:t(`systemPermissionsCard.notificationBadgesLabel`),description:t(`systemPermissionsCard.notificationBadgesDescription`,{surface:n}),checked:u,disabled:c===e.id})):[];return[...e,...r]},[f,u,c,m,t,p]);if(!o&&h.length===0)return null;let g=async(e,t)=>{t.status===`granted`||t.status===`denied`||!t.canRequest?await N(e.sourceKind):await re(e.sourceKind),await s()},_=e=>{let t=m.get(e);if(t){l(e,()=>g(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&&h.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)(Ae,{}),t(`systemPermissionsCard.checking`)]}):(0,J.jsx)(`div`,{className:`mt-3 space-y-2`,children:h.map(e=>(0,J.jsx)(ke,{row:e,onToggle:_},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})]})}function Me(){let{t:e}=a(`settings`),n=z({platformHostedOnly:!0}),o=A(),s=de(),c=i(),{data:l,isLoading:u,isError:d}=r({...he(),enabled:n===`full`&&o}),p=t({mutationFn:async e=>{let{data:t}=await P({body:{access_consented:e},throwOnError:!0});return t},onSuccess:t=>{pe(c,void 0,t),k.success(t?.access_consented?e(`accessConsentSetting.toastEnabled`):e(`accessConsentSetting.toastDisabled`))},onError:()=>{k.error(e(`accessConsentSetting.toastUpdateFailed`))}});if(n===`gated`)return null;let m=n===`full`&&s,h=l?.access_consented??!1,g=n!==`full`||!o||u||d||p.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`&&d&&(0,J.jsx)(`p`,{className:`mt-1 text-body-small-lighter text-[var(--system-negative-strong)]`,children:e(`accessConsentSetting.loadError`)})]}),(0,J.jsx)(`div`,{className:`flex items-center gap-2`,children:n===`disabled`?null:(0,J.jsxs)(J.Fragment,{children:[(p.isPending||m)&&(0,J.jsx)(f,{className:`h-4 w-4 animate-spin text-[var(--content-tertiary)]`}),(0,J.jsx)(T,{checked:h,disabled:g,onChange:()=>p.mutate(!h)})]})})]}),n===`disabled`&&(0,J.jsx)(me,{className:`mt-3`,children:e(`accessConsentSetting.loginNotice`)})]})}function Ne(){let{t:e}=a(`settings`),t=ne(),n=fe(),[r,i]=(0,q.useState)(()=>le()),[o,s]=(0,q.useState)(null),[c,l]=(0,q.useState)(!1);if((0,q.useEffect)(()=>{if(!t)return;let e=!0;return b().then(t=>{e&&s(t)}),()=>{e=!1}},[t]),!t||!o?.available)return null;let u=async()=>{l(!0);try{if(r)E(!1),await ye(),i(!1);else{let e=ee();if(!e||!await oe(e)){E(!1),i(!1);return}E(!0),i(!0)}}finally{l(!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(n?`biometricSettingsCard.descriptionWithPasscode`:`biometricSettingsCard.description`,{label:o.label})})]}),(0,J.jsx)(T,{checked:r,onChange:()=>void u(),disabled:c})]})})}var Y=[`youtube.com`,`youtu.be`,`vimeo.com`,`loom.com`];function Pe(e){try{let t=JSON.parse(e);if(Array.isArray(t))return t.filter(e=>typeof e==`string`)}catch{}return[...Y]}function Fe(){return O(`mediaEmbedsEnabled`,!0)}function Ie(){let e=L(`mediaEmbedDomains`,``);return e?Pe(e):[...Y]}function Le(){let{t:e}=a(`settings`),[t,n]=(0,q.useState)(()=>Fe()),[r,i]=(0,q.useState)(()=>Ie()),[o,s]=(0,q.useState)(!1),[c,u]=(0,q.useState)(``),d=(0,q.useMemo)(()=>c.trim().toLowerCase(),[c]),f=e=>{n(e),R(`mediaEmbedsEnabled`,e)},p=e=>{i(e),w(`mediaEmbedDomains`,JSON.stringify(e))},g=()=>{if(d){if(r.includes(d)){u(``);return}p([...r,d]),u(``)}},_=e=>{p(r.filter(t=>t!==e))},v=()=>{p([...Y])},y=r.length===Y.length&&r.every((e,t)=>e===Y[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)(T,{checked:t,onChange:f})]}),t&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`div`,{className:`mt-4`,children:(0,J.jsx)(Ce,{})}),(0,J.jsxs)(U,{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)(l,{className:`h-4 w-4`,"aria-hidden":!0}):(0,J.jsx)(h,{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:r.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)(M,{label:e(`mediaEmbedsCard.addDomainLabel`),type:`text`,value:c,onChange:e=>u(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),g())},placeholder:e(`mediaEmbedsCard.addDomainPlaceholder`),fullWidth:!0,wrapperClassName:`flex-1`}),(0,J.jsx)(U,{variant:`primary`,size:`compact`,onClick:g,disabled:!d,children:e(`mediaEmbedsCard.add`)})]}),r.length>0&&(0,J.jsx)(`div`,{className:`flex justify-end`,children:(0,J.jsx)(U,{type:`button`,variant:`ghost`,size:`compact`,onClick:v,disabled:y,tintColor:`var(--content-tertiary)`,children:e(`mediaEmbedsCard.resetDefaults`)})}),r.length>0&&(0,J.jsx)(`ul`,{className:`space-y-2`,children:r.map(t=>(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:t}),(0,J.jsx)(U,{variant:`dangerGhost`,size:`compact`,iconOnly:(0,J.jsx)(m,{}),onClick:()=>_(t),"aria-label":e(`mediaEmbedsCard.removeDomainAria`,{domain:t})})]},t))})]})]})]})}function X(){return(0,J.jsx)(`div`,{className:`h-px bg-[var(--surface-active)] dark:bg-[var(--surface-lift)]`})}function Re(){let{t:e}=a(`settings`),t=F(),n=(0,q.useMemo)(()=>I.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]),o=i(),{data:s,isError:c}=r({queryKey:[`thresholds`,t],queryFn:()=>y(t),staleTime:3e4}),[u,d]=(0,q.useState)(`relaxed`),[f,p]=(0,q.useState)(`conservative`),[m,g]=(0,q.useState)(`strict`),[_,v]=(0,q.useState)(!1),b=(0,q.useRef)(!1),[x,C]=(0,q.useState)(!1),w=(0,q.useRef)(null),T=(0,q.useRef)(null);(0,q.useEffect)(()=>{!s||b.current||(d(W(s.interactive).id),p(W(s.autonomous).id),g(W(s.headless).id),C(!0))},[s]),(0,q.useEffect)(()=>()=>{w.current!==null&&(clearTimeout(w.current),w.current=null,T.current?.(),T.current=null)},[]);let E=(0,q.useCallback)((e,n,r)=>{if(!t||!x)return;let i=I.find(t=>t.id===e)?.riskThreshold,a=I.find(e=>e.id===n)?.riskThreshold,s=I.find(e=>e.id===r)?.riskThreshold;!i||!a||!s||ce(t,{interactive:i,autonomous:a,headless:s}).then(()=>{o.invalidateQueries({queryKey:[`thresholds`,t]})}).catch(()=>{})},[t,x,o]),D=(0,q.useCallback)((e,t,n)=>{w.current!==null&&clearTimeout(w.current),T.current=()=>E(e,t,n),w.current=setTimeout(()=>{T.current?.(),w.current=null,T.current=null},500)},[E]),O=(0,q.useCallback)(e=>{b.current=!0,d(e),D(e,f,m)},[f,m,D]),k=(0,q.useCallback)(e=>{b.current=!0,p(e),D(u,e,m)},[u,m,D]),A=(0,q.useCallback)(e=>{b.current=!0,g(e),D(u,f,e)},[u,f,D]),j=I.find(e=>e.id===u),M=I.find(e=>e.id===f),N=I.find(e=>e.id===m),P=!t||!x;return(0,J.jsxs)(H,{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`)}),c&&(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)(S,{value:u,onChange:O,options:n,disabled:P})}),j&&(0,J.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:e(j.descriptionKey,j.description)})]}),(0,J.jsx)(X,{}),(0,J.jsxs)(`div`,{children:[(0,J.jsxs)(`button`,{type:`button`,onClick:()=>v(e=>!e),className:`flex items-center gap-1 text-[var(--content-secondary)] hover:text-[var(--content-default)] transition-colors`,"aria-expanded":_,children:[_?(0,J.jsx)(l,{className:`h-4 w-4`}):(0,J.jsx)(h,{className:`h-4 w-4`}),(0,J.jsx)(`span`,{className:`text-body-medium-default`,children:e(`riskToleranceSettings.advanced`)})]}),(0,J.jsxs)(`div`,{className:_?`mt-4 space-y-4`:`hidden`,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)(S,{value:f,onChange:k,options:n,disabled:P})}),M&&(0,J.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:e(M.descriptionKey,M.description)})]}),(0,J.jsx)(X,{}),(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)(S,{value:m,onChange:A,options:n,disabled:P})}),N&&(0,J.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:e(N.descriptionKey,N.description)})]})]})]})]})]})}var Z=e(c(),1),Q=[`bash`,`file_read`,`file_write`,`file_edit`,`web_fetch`,`skill_load`];function ze({assistantId:e,existingRule:t,onClose:n,onSaved:r}){let{t:i}=a(`settings`),o=(0,q.useRef)(null),[s,c]=(0,q.useState)(t.tool),[l,u]=(0,q.useState)(t.pattern),[f,p]=(0,q.useState)(t.risk),[m,h]=(0,q.useState)(t.description??``),[g,v]=(0,q.useState)(!1),[y,b]=(0,q.useState)(null),x=[{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`)}],C=l.trim(),w=C.length>0&&!g,T=i(`trustRuleFormModal.defaultDescription`,{tool:s,pattern:C||i(`trustRuleFormModal.patternFallback`)}),E=(0,q.useCallback)(async n=>{if(n.preventDefault(),!w)return;let a=m.trim()||T;v(!0),b(null);try{await ve(e,t.id,{risk:f,description:a}),r()}catch(e){b(e instanceof Error?e.message:i(`trustRuleFormModal.saveFailed`))}finally{v(!1)}},[e,w,T,m,t,r,f,i]);return(0,Z.createPortal)((0,J.jsx)(`div`,{ref:o,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===o.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)(d,{className:`h-4 w-4`})})]}),(0,J.jsxs)(`form`,{onSubmit:e=>void E(e),className:`min-h-0 flex-1 space-y-4 overflow-y-auto px-6 py-4`,children:[y&&(0,J.jsx)(_,{tone:`error`,children:y}),(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)(S,{value:s,onChange:c,disabled:!0,options:Q.map(e=>({value:e,label:e}))})})]}),(0,J.jsx)(M,{label:i(`trustRuleFormModal.patternLabel`),type:`text`,value:l,onChange:e=>u(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:x.map(e=>(0,J.jsxs)(`button`,{type:`button`,onClick:()=>p(e.value),className:`flex-1 rounded-lg border px-3 py-2 text-left text-body-small-default transition-colors ${f===e.value?e.value===`low`?`border-[var(--system-positive-strong)] bg-[var(--system-positive-weak)] text-[var(--system-positive-strong)]`:e.value===`medium`?`border-[var(--system-warning-strong)] bg-[var(--system-warning-weak)] text-[var(--system-warning-strong)]`:`border-[var(--system-negative-strong)] bg-[var(--system-negative-weak)] text-[var(--system-negative-strong)]`:`border-[var(--border-element)] text-[var(--content-default)] hover:bg-[var(--surface-base)]`}`,children:[(0,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)(M,{label:i(`trustRuleFormModal.descriptionLabel`),type:`text`,value:m,onChange:e=>h(e.target.value),placeholder:T}),(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:!w,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(g?`trustRuleFormModal.saving`:`trustRuleFormModal.save`)})]})]})]})}),document.body)}function Be(e){return e.origin===`default`&&!e.userModified}function Ve(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 He(e){switch(e){case`low`:return`positive`;case`medium`:return`warning`;case`high`:return`negative`}}function Ue({assistantId:e,onClose:t}){let{t:n}=a(`settings`),r=(0,q.useRef)(null),[i,o]=(0,q.useState)([]),[s,c]=(0,q.useState)(!0),[l,d]=(0,q.useState)(null),[f,h]=(0,q.useState)(null),[g,v]=(0,q.useState)(null),[y,b]=(0,q.useState)(!1),S=(0,q.useCallback)(e=>{switch(e){case`low`:return n(`trustRulesModal.riskLow`);case`medium`:return n(`trustRulesModal.riskMedium`);case`high`:return n(`trustRulesModal.riskHigh`)}},[n]),w=(0,q.useCallback)(async t=>{if(t){let[t,n]=await Promise.all([x(e),x(e,{origin:`default`})]);return Ve(t,n)}return x(e)},[e]),E=(0,q.useCallback)(async()=>{c(!0);try{o(await w(y)),d(null)}catch(e){d(e instanceof Error?e.message:n(`trustRulesModal.loadErrorFallback`))}finally{c(!1)}},[w,y,n]);(0,q.useEffect)(()=>{let e=!1;return(async()=>{c(!0);try{let t=await w(y);e||(o(t),d(null))}catch(t){e||d(t instanceof Error?t.message:n(`trustRulesModal.loadErrorFallback`))}finally{e||c(!1)}})(),()=>{e=!0}},[w,y,n]);let D=(0,q.useCallback)(async()=>{if(g)try{await ae(e,g.id),E()}catch(e){d(e instanceof Error?e.message:n(`trustRulesModal.deleteErrorFallback`))}finally{v(null)}},[e,g,E,n]);return(0,Z.createPortal)((0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`div`,{ref:r,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(),t())},[t]),onClick:(0,q.useCallback)(e=>{e.target===r.current&&t()},[t]),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:n(`trustRulesModal.title`)}),(0,J.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,J.jsx)(T,{checked:y,onChange:b,label:n(`trustRulesModal.showAllDefaults`)}),(0,J.jsx)(U,{variant:`outlined`,onClick:t,children:n(`trustRulesModal.done`)})]})]}),(0,J.jsxs)(`div`,{className:`flex-1 overflow-y-auto px-6 py-4`,children:[l&&(0,J.jsx)(`div`,{className:`mb-3`,children:(0,J.jsx)(_,{tone:`error`,children:l})}),s?(0,J.jsx)(`div`,{className:`flex h-48 items-center justify-center text-body-medium-lighter text-[var(--content-tertiary)]`,children:n(`trustRulesModal.loading`)}):i.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)(u,{className:`h-8 w-8`}),(0,J.jsx)(`p`,{className:`max-w-xs text-center text-body-medium-lighter`,children:n(`trustRulesModal.empty`)})]}):(0,J.jsx)(`ul`,{className:`divide-y divide-[var(--border-base)]`,children:i.map(e=>{let t=Be(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)(B,{tone:He(e.risk),children:S(e.risk)}),e.origin===`default`&&(0,J.jsx)(B,{tone:`neutral`,children:n(`trustRulesModal.defaultTag`)}),e.userModified&&(0,J.jsx)(B,{tone:`warning`,children:n(`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)(`button`,{type:`button`,"aria-label":n(`trustRulesModal.editRuleAria`,{tool:e.tool}),onClick:()=>h(e),className:`rounded-lg p-1.5 text-[var(--content-tertiary)] transition-colors hover:bg-[var(--surface-base)] hover:text-[var(--content-default)]`,children:(0,J.jsx)(p,{className:`h-4 w-4`})}),(!t||e.userModified)&&(0,J.jsx)(U,{variant:`dangerGhost`,size:`compact`,iconOnly:(0,J.jsx)(m,{className:`h-4 w-4`}),"aria-label":n(`trustRulesModal.deleteRuleAria`,{tool:e.tool}),onClick:()=>v(e)})]})]},e.id)})})]})]})}),f&&(0,J.jsx)(ze,{assistantId:e,existingRule:f,onClose:()=>h(null),onSaved:()=>{h(null),E()}}),(0,J.jsx)(C,{open:g!==null,title:n(`trustRulesModal.deleteTitle`),message:g?n(`trustRulesModal.deleteMessage`,{risk:S(g.risk).toLowerCase(),tool:g.tool,pattern:g.pattern}):``,confirmLabel:n(`trustRulesModal.delete`),cancelLabel:n(`trustRulesModal.cancel`),destructive:!0,onConfirm:()=>void D(),onCancel:()=>v(null)})]}),document.body)}function We(){let{t:e}=a(`settings`),t=F(),[n,r]=(0,q.useState)(!1);return(0,J.jsxs)(H,{children:[(0,J.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,J.jsx)(u,{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)(U,{variant:`outlined`,onClick:()=>r(!0),children:e(`trustRules.manage`)})]}),n&&(0,J.jsx)(Ue,{assistantId:t,onClose:()=>r(!1)})]})}var Ge=[{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`}],Ke=`thirtyDays`;function $(){return(0,J.jsx)(`div`,{className:`h-px bg-[var(--surface-active)] dark:bg-[var(--surface-lift)]`})}function qe(){let{t:e}=a(`settings`),t=z({platformHostedOnly:!0}),r=g(),i=r,o=te.use.user()?.id??null,[s]=_e(),[c]=ge(),l=s??!0,u=c??!0,[d,f]=(0,q.useState)(()=>L(`llmLogRetention`,Ke)),p=(0,q.useMemo)(()=>Ge.map(t=>({value:t.value,label:e(t.labelKey)})),[e]);return(0,J.jsxs)(`div`,{className:`space-y-4`,children:[(0,J.jsx)(Ne,{}),(0,J.jsx)(je,{}),(0,J.jsx)(We,{}),(0,J.jsx)(Re,{}),(0,J.jsx)(Le,{}),(0,J.jsx)(G,{title:e(`privacyPage.title`),subtitle:r?(0,J.jsx)(n,{ns:`settings`,i18nKey:`privacyPage.subtitleWithPolicy`,components:{policyLink:(0,J.jsx)(`a`,{href:ie(Se.docs.legal.privacyPolicy),target:`_blank`,rel:`noreferrer`,className:`underline`})}}):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:()=>{v(`share_analytics`,!l,{userId:o,hasPlatformSession:r})},variant:`toggle-trailing`}),(0,J.jsx)($,{}),(0,J.jsx)(K,{label:e(`privacyPage.shareDiagnosticsLabel`),helperText:e(`privacyPage.shareDiagnosticsHelper`),checked:u,onChange:()=>{v(`share_diagnostics`,!u,{userId:o,hasPlatformSession:r})},variant:`toggle-trailing`}),(0,J.jsx)($,{})]}),(0,J.jsx)(Me,{}),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)(S,{value:d,onChange:e=>{f(e),w(`llmLogRetention`,e)},options:p})}),(0,J.jsx)(`p`,{className:`mt-2 text-body-small-lighter text-[var(--content-tertiary)]`,children:e(`privacyPage.llmLogRetentionDescription`)})]})]})})]})}export{qe as PrivacyPage};
@@ -0,0 +1 @@
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{j as t}from"./vendor-CV8wawxx.js";import{b as n,f as r,g as i,t as a}from"./react-DPM_L_aA.js";import{Bv as o,Fr as s,Pv as c,Qf as l,Rg as u,U_ as d,Xg as f,Yg as p,a_ as m,au as h,ci as ee,e_ as g,ep as _,fi as te,fu as v,hu as y,i_ as b,jr as x,jv as S,kp as C,mu as w,n_ as T,nb as E,nv as D,qg as O,t_ as k,ui as A,zv as j}from"./index-jpjzZb6b.js";import{t as M}from"./plugin-attribution-CeJvw31w.js";import{n as N,t as P}from"./consent-controls-BsInitSK.js";import{r as F,t as I}from"./checkout-continuation-tAX1_m3V.js";var L=e(n(),1),R=a();function z({current:e,total:n,color:r}){let{t:i}=t(`onboarding`);return(0,R.jsx)(`div`,{className:`flex items-center gap-1.5`,role:`group`,"aria-label":i(`stepIndicator.ariaLabel`,{current:e+1,total:n}),children:Array.from({length:n},(t,n)=>(0,R.jsx)(`div`,{"aria-hidden":`true`,className:`h-[3px] w-8 rounded-full transition-colors`,style:r?{backgroundColor:r,opacity:n<=e?1:.3}:void 0,children:r?null:(0,R.jsx)(`div`,{className:`h-full w-full rounded-full bg-[var(--content-default)] ${n<=e?``:`opacity-20`}`})},n))})}function B(){let{t:e}=t(`onboarding`),n=r(),[a]=i(),c=l.use.user()?.id??null,O=o(),B=u(),[H,U]=w(),W=H??!0,[G,K]=y(),[q,J]=v(),Y=_(),X=F();(0,L.useEffect)(()=>{te()},[]);let Z=a.get(`preview`)===`true`,Q=(0,L.useCallback)(e=>{},[]),ne=Z?Q:U,re=Z?Q:K,ie=Z?Q:J,ae=g(),$=(0,L.useCallback)(e=>{if(Z)return;C({userId:c,tos:G,privacy:q,shareAnalytics:null,shareDiagnostics:W,hasPlatformSession:Y}),A(ee.privacyTos,{userId:c});let t=h(a.get(`returnTo`));if(t){n(e?b(t):t,s);return}let r=a.get(`hosting`),i=new URLSearchParams;r&&i.set(`hosting`,r);let o=a.get(M);o&&i.set(M,o);let l=i.toString(),u=T({isLocalHatch:D()&&r!==null&&r!==`vellum-cloud`,skipResearch:e,selectedAssistantOnboarded:m(d.getState().assistants,S()),newAssistant:k(a)}),g=e?b(`${u}${l?`?${l}`:``}`):`${u}${l?`?${l}`:``}`,_=f();if(_?.resumeAfterOnboarding===!0)if(X===`disabled`)p();else{let e=V(_);if(e){e.set(I,g),n(`${j.checkout}?${e.toString()}`,s);return}}n(g,s)},[q,Y,Z,n,a,W,X,G,c]);return(0,R.jsx)(x,{avatarWave:`beside`,children:(0,R.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:[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:O?`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)] ${O?`mt-3.5`:`mt-4`}`,style:{animation:`fadeInUp 0.5s ease-out 0.3s both`},children:e(`privacyScreen.body`)}),(0,R.jsx)(N,{electron:O,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:O,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 ${O?`gap-2.5`:`gap-2`}`,style:{animation:`fadeInUp 0.5s ease-out 0.55s both`},children:[(0,R.jsx)(E,{variant:`primary`,size:`regular`,fullWidth:!0,disabled:!G||!q,onClick:()=>$(!1),className:O?void 0:`h-11 text-base`,children:e(`privacyScreen.start`)}),ae&&(0,R.jsx)(E,{variant:`outlined`,size:`regular`,fullWidth:!0,disabled:!G||!q,onClick:()=>$(!0),className:O?void 0:`h-11 text-base`,children:e(`privacyScreen.skipToChat`)}),(0,R.jsx)(E,{variant:`ghost`,size:`regular`,fullWidth:!0,onClick:()=>n(D()?j.onboarding.hosting:j.onboarding.start,s),className:O?void 0:`h-11 text-base`,children:e(`actions.back`)})]})]})})}function V(e){return e.kind===`package`?new URLSearchParams({[c]:e.packageKey}):e.storageTier===null?null:O({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{j as t}from"./vendor-CCI2T82b.js";import{b as n,f as r,g as i,n as a,t as o}from"./react-DPM_L_aA.js";import{Av as s,Fo as c,Ql as l,Qp as u,Ro as d,Sv as f,Z_ as p,Zg as m,_m as h,jo as g,qg as _,z_ as v,zf as y}from"./index-BHBLeC80.js";import{r as b,t as x}from"./account-shell-BF0wq3dL.js";var S=e(n(),1),C=o();function w(){let{t:e}=t(`account`),[n]=i(),o=r(),w=y.use.refreshSession(),T=n.get(`error`),[E,D]=(0,S.useState)(null),O=(0,S.useRef)(!1),k=n.get(`returnTo`),A=c(n);return(0,S.useEffect)(()=>{O.current||T||(O.current=!0,(async()=>{try{let e=await _(),t=m(e.ok&&!!e.data.user,e.ok?[]:e.flows??[]);switch(t.kind){case`authenticated`:{if(await w(),await l(),v())try{let e=await h();if(e.ok&&e.data.length>0&&(await p(e.data,u.getState().currentOrganizationId??void 0),!k)){o(f.assistant,{replace:!0});break}}catch{}let e=f.assistant,{destination:t,requiresFullPageNavigation:n}=d({returnTo:k,fallback:e,authIntent:A});n?window.location.href=t:o(t,{replace:!0});break}case`provider_signup`:{let e=n.get(`returnTo`);o(e?`${f.account.providerSignup}?returnTo=${encodeURIComponent(e)}`:f.account.providerSignup,{replace:!0});break}case`error`:D(t.message);break}}catch(e){s(e,{context:`provider_callback`}),D(`Something went wrong. Please try signing in again.`)}})())},[A,T,w,k,o,n]),T===`signup_closed`?(0,C.jsxs)(x,{children:[(0,C.jsx)(b,{title:e(`providerCallbackPage.signupClosedTitle`),subtitle:e(`providerCallbackPage.signupClosedSubtitle`)}),(0,C.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[(0,C.jsx)(`a`,{href:g,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center justify-center gap-2 rounded-lg bg-[var(--primary-base)] px-6 py-3 text-sm font-medium text-[var(--content-inset)] no-underline transition-colors hover:bg-[var(--primary-hover)]`,children:e(`providerCallbackPage.joinCommunity`)}),(0,C.jsx)(a,{to:f.account.login,className:`text-sm font-medium text-[var(--content-emphasised)] hover:underline`,children:e(`providerCallbackPage.backToSignIn`)})]})]}):T||E?(0,C.jsxs)(x,{children:[(0,C.jsx)(b,{title:e(`providerCallbackPage.failedTitle`),subtitle:E??e(`providerCallbackPage.failedSubtitle`)}),(0,C.jsx)(`div`,{className:`flex flex-col items-center gap-4`,children:(0,C.jsx)(a,{to:f.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,C.jsx)(x,{children:(0,C.jsx)(b,{title:e(`providerCallbackPage.completingTitle`),subtitle:e(`providerCallbackPage.completingSubtitle`)})})}export{w as ProviderCallbackPage};
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{j as t}from"./vendor-CV8wawxx.js";import{b as n,f as r,g as i,n as a,t as o}from"./react-DPM_L_aA.js";import{Am as s,Fo as c,Ho as l,Qf as u,dm as d,l_ as f,mv as p,nv as m,p_ as h,qv as g,su as _,zo as v,zv as y}from"./index-jpjzZb6b.js";import{r as b,t as x}from"./account-shell-8ayvWwg5.js";var S=e(n(),1),C=o();function w(){let{t:e}=t(`account`),[n]=i(),o=r(),w=u.use.refreshSession(),T=n.get(`error`),[E,D]=(0,S.useState)(null),O=(0,S.useRef)(!1),k=n.get(`returnTo`),A=v(n);return(0,S.useEffect)(()=>{O.current||T||(O.current=!0,(async()=>{try{let e=await f(),t=h(e.ok&&!!e.data.user,e.ok?[]:e.flows??[]);switch(t.kind){case`authenticated`:{if(await w(),await _(),m())try{let e=await s();if(e.ok&&e.data.length>0&&(await p(e.data,d.getState().currentOrganizationId??void 0),!k)){o(y.assistant,{replace:!0});break}}catch{}let e=y.assistant,{destination:t,requiresFullPageNavigation:n}=l({returnTo:k,fallback:e,authIntent:A});n?window.location.href=t:o(t,{replace:!0});break}case`provider_signup`:{let e=n.get(`returnTo`);o(e?`${y.account.providerSignup}?returnTo=${encodeURIComponent(e)}`:y.account.providerSignup,{replace:!0});break}case`error`:D(t.message);break}}catch(e){g(e,{context:`provider_callback`}),D(`Something went wrong. Please try signing in again.`)}})())},[A,T,w,k,o,n]),T===`signup_closed`?(0,C.jsxs)(x,{children:[(0,C.jsx)(b,{title:e(`providerCallbackPage.signupClosedTitle`),subtitle:e(`providerCallbackPage.signupClosedSubtitle`)}),(0,C.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[(0,C.jsx)(`a`,{href:c,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center justify-center gap-2 rounded-lg bg-[var(--primary-base)] px-6 py-3 text-sm font-medium text-[var(--content-inset)] no-underline transition-colors hover:bg-[var(--primary-hover)]`,children:e(`providerCallbackPage.joinCommunity`)}),(0,C.jsx)(a,{to:y.account.login,className:`text-sm font-medium text-[var(--content-emphasised)] hover:underline`,children:e(`providerCallbackPage.backToSignIn`)})]})]}):T||E?(0,C.jsxs)(x,{children:[(0,C.jsx)(b,{title:e(`providerCallbackPage.failedTitle`),subtitle:E??e(`providerCallbackPage.failedSubtitle`)}),(0,C.jsx)(`div`,{className:`flex flex-col items-center gap-4`,children:(0,C.jsx)(a,{to:y.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,C.jsx)(x,{children:(0,C.jsx)(b,{title:e(`providerCallbackPage.completingTitle`),subtitle:e(`providerCallbackPage.completingSubtitle`)})})}export{w as ProviderCallbackPage};
@@ -1 +1 @@
1
- import{To as e,Up as t,Zh as n,ah as r,cv as i,ih as a,rh as o,yh as s}from"./index-BHBLeC80.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(n){let r=i();return t(r===null?(await e(n))?.version??null:r,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,r){let{data:i,response:a}=await n({path:{assistant_id:e},body:{type:`api_key`,name:t,value:r},throwOnError:!1});if(C(a,`Failed to write provider secret`),i&&i.success===!1)throw new S(t,i.error)}async function T(e,t){let n=u(t)?.displayName??t,{response:r}=await s({path:{assistant_id:e},body:{name:`${t}-personal`,provider:t,auth:{type:`api_key`,credential:`credential/${t}/api_key`},label:`${n} (Personal)`},throwOnError:!1});r?.status!==409&&C(r,`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,n,r){let i=t===`openai-compatible`,a=n||i?{type:`api_key`,credential:`credential/${t}/api_key`}:{type:`none`},o=i&&r?.baseUrl?r.baseUrl:void 0,c=i&&r?.customModels?r.customModels.split(`,`).map(e=>({id:e.trim()})).filter(e=>e.id):void 0,{response:l}=await s({path:{assistant_id:e},body:{name:t,provider:t,auth:a,...o===void 0?{}:{base_url:o},...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(e,t,n){let{response:i}=await a({path:{assistant_id:e,name:t},body:O(t,n),throwOnError:!1});C(i,`Failed to set provider profile`);let{response:o}=await r({path:{assistant_id:e},body:{llm:{activeProfile:t}},throwOnError:!1});C(o,`Failed to activate provider profile`)}async function A(e,t,n){await D(e,t.provider,n,{baseUrl:t.baseUrl,customModels:t.customModels});let i=t.model?.trim()||d(t.provider);if(!i)return;let{response:o}=await a({path:{assistant_id:e,name:g},body:{...O(t.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 r({path:{assistant_id:e},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
+ import{Fh as e,Tv as t,bh as n,ko as r,nm as i,pg as a,xh as o,yh as s}from"./index-jpjzZb6b.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=t();return i(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 a({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(t,n){let r=u(n)?.displayName??n,{response:i}=await e({path:{assistant_id:t},body:{name:`${n}-personal`,provider:n,auth:{type:`api_key`,credential:`credential/${n}/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 s({path:{assistant_id:e},body:{provider:t},throwOnError:!1});C(n,`Failed to set default provider`)}async function D(t,n,r,i){let a=n===`openai-compatible`,o=r||a?{type:`api_key`,credential:`credential/${n}/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 e({path:{assistant_id:t},body:{name:n,provider:n,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(e,t,r){let{response:i}=await n({path:{assistant_id:e,name:t},body:O(t,r),throwOnError:!1});C(i,`Failed to set provider profile`);let{response:a}=await o({path:{assistant_id:e},body:{llm:{activeProfile:t}},throwOnError:!1});C(a,`Failed to activate provider profile`)}async function A(e,t,r){await D(e,t.provider,r,{baseUrl:t.baseUrl,customModels:t.customModels});let i=t.model?.trim()||d(t.provider);if(!i)return;let{response:a}=await n({path:{assistant_id:e,name:g},body:{...O(t.provider,i),label:`Balanced`,description:`Good balance of quality, cost, and speed`},throwOnError:!1});C(a,`Failed to set provider profile`);let{response:s}=await o({path:{assistant_id:e},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{j as t}from"./vendor-CCI2T82b.js";import{b as n,f as r,g as i,n as a,t as o}from"./react-DPM_L_aA.js";import{Jg as s,Kg as c,Ql as l,Ro as u,Sv as d,Yg as f,zf as p,zo as m}from"./index-BHBLeC80.js";import{i as h,n as g,r as _,t as v}from"./account-shell-BF0wq3dL.js";import{t as y}from"./signup-shell-C9bkpRpP.js";import{n as b}from"./signup-onboarding-handoff-BUG9xNxh.js";var x=e(n(),1),S=o();function C(){let{t:e}=t(`account`),n=r(),[o]=i(),C=p.use.refreshSession(),w=o.get(`returnTo`),[T,E]=(0,x.useState)(``),[D,O]=(0,x.useState)(``),[k,A]=(0,x.useState)(``),[j,M]=(0,x.useState)(``),[N,P]=(0,x.useState)(``),[F,I]=(0,x.useState)(null),[L,R]=(0,x.useState)(!1),[z,B]=(0,x.useState)(!0),V=(0,x.useRef)(!1);(0,x.useEffect)(()=>{V.current||(V.current=!0,(async()=>{try{let e=await c();if(!e.ok){n(d.account.login,{replace:!0});return}E(e.data.user.email??``),O(e.data.user.username??``),A(e.data.user.first_name??``),M(e.data.user.last_name??``),B(!1)}catch{n(d.account.login,{replace:!0})}})())},[n]);let H=async()=>{let e=await f({email:T,username:D});if(!e.ok){if(s(e)){await C(),await l();let e=m(w,d.account.root);e.requiresFullPageNavigation?window.location.href=e.destination:n(e.destination);return}I(e.errors[0]?.message??`Failed to complete signup.`);return}await C(),await l();let t=u({returnTo:w,fallback:d.account.root,authIntent:`signup`});t.requiresFullPageNavigation?window.location.href=t.destination:n(t.destination)},U=async t=>{t.preventDefault(),I(null),R(!0);try{await H()}catch{I(e(`authErrors.genericFailure`))}finally{R(!1)}},W=async t=>{if(t.preventDefault(),k.trim()){I(null),R(!0);try{b(k),await H()}catch{I(e(`authErrors.genericFailure`))}finally{R(!1)}}};if(z)return(0,S.jsx)(v,{children:(0,S.jsx)(_,{title:e(`providerSignupPage.completingTitle`),subtitle:e(`providerSignupPage.completingSubtitle`)})});if(T&&D){let t=k.trim().length>0&&!L;return(0,S.jsx)(y,{children:(0,S.jsxs)(`form`,{onSubmit:W,className:`signup-details__thread`,children:[(0,S.jsxs)(`h2`,{className:`signup-details__heading`,children:[e(`providerSignupPage.headingLine1`),(0,S.jsx)(`br`,{}),e(`providerSignupPage.headingLine2`)]}),F&&(0,S.jsx)(`p`,{className:`signup-details__error`,children:F}),(0,S.jsxs)(`div`,{className:`signup-details__step`,children:[(0,S.jsxs)(`span`,{className:`signup-details__label`,children:[e(`providerSignupPage.firstNameQuestion`),` `,(0,S.jsx)(`span`,{className:`signup-details__req`,children:`*`})]}),(0,S.jsx)(`input`,{className:`signup-details__input`,type:`text`,placeholder:e(`providerSignupPage.firstNamePlaceholder`),value:k,onChange:e=>A(e.target.value),autoComplete:`given-name`,autoFocus:!0,required:!0})]}),(0,S.jsxs)(`div`,{className:`signup-details__step`,children:[(0,S.jsxs)(`span`,{className:`signup-details__label`,children:[e(`providerSignupPage.lastNameQuestion`),` `,(0,S.jsx)(`span`,{className:`signup-details__req`,children:`*`})]}),(0,S.jsx)(`input`,{className:`signup-details__input`,type:`text`,placeholder:e(`providerSignupPage.lastNamePlaceholder`),value:j,readOnly:!0,disabled:!0})]}),(0,S.jsxs)(`div`,{className:`signup-details__step`,children:[(0,S.jsx)(`span`,{className:`signup-details__label`,children:e(`providerSignupPage.roleQuestion`)}),(0,S.jsx)(`input`,{className:`signup-details__input`,type:`text`,autoComplete:`organization-title`,placeholder:e(`providerSignupPage.rolePlaceholder`),value:N,onChange:e=>P(e.target.value)})]}),(0,S.jsx)(`div`,{className:`signup-details__step`,children:(0,S.jsx)(`button`,{type:`submit`,className:`signup-details__continue`,disabled:!t,children:e(L?`providerSignupPage.submitting`:`providerSignupPage.submit`)})})]})})}return(0,S.jsxs)(v,{children:[(0,S.jsx)(_,{title:e(`providerSignupPage.completeAccountTitle`),subtitle:e(`providerSignupPage.completeAccountSubtitle`)}),(0,S.jsxs)(g,{onSubmit:U,error:F,submitLabel:e(`providerSignupPage.completeSignup`),submittingLabel:e(`providerSignupPage.completingSignup`),isSubmitting:L,footer:(0,S.jsx)(a,{to:d.account.login,className:`text-sm text-[var(--content-secondary)] hover:text-[var(--content-default)]`,children:e(`providerSignupPage.backToSignIn`)}),children:[(0,S.jsx)(h,{id:`email`,type:`email`,autoComplete:`email`,placeholder:e(`providerSignupPage.emailPlaceholder`),value:T,onChange:e=>E(e.target.value),required:!0}),(0,S.jsx)(h,{id:`username`,type:`text`,autoComplete:`username`,placeholder:e(`providerSignupPage.usernamePlaceholder`),value:D,onChange:e=>O(e.target.value),required:!0})]})]})}export{C as ProviderSignupPage};
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{j as t}from"./vendor-CV8wawxx.js";import{b as n,f as r,g as i,n as a,t as o}from"./react-DPM_L_aA.js";import{Ho as s,Qf as c,Uo as l,c_ as u,d_ as d,su as f,u_ as p,zv as m}from"./index-jpjzZb6b.js";import{i as h,n as g,r as _,t as v}from"./account-shell-8ayvWwg5.js";import{t as y}from"./signup-shell-CotTCquh.js";import{n as b}from"./signup-onboarding-handoff-BUG9xNxh.js";var x=e(n(),1),S=o();function C(){let{t:e}=t(`account`),n=r(),[o]=i(),C=c.use.refreshSession(),w=o.get(`returnTo`),[T,E]=(0,x.useState)(``),[D,O]=(0,x.useState)(``),[k,A]=(0,x.useState)(``),[j,M]=(0,x.useState)(``),[N,P]=(0,x.useState)(``),[F,I]=(0,x.useState)(null),[L,R]=(0,x.useState)(!1),[z,B]=(0,x.useState)(!0),V=(0,x.useRef)(!1);(0,x.useEffect)(()=>{V.current||(V.current=!0,(async()=>{try{let e=await u();if(!e.ok){n(m.account.login,{replace:!0});return}E(e.data.user.email??``),O(e.data.user.username??``),A(e.data.user.first_name??``),M(e.data.user.last_name??``),B(!1)}catch{n(m.account.login,{replace:!0})}})())},[n]);let H=async()=>{let e=await d({email:T,username:D});if(!e.ok){if(p(e)){await C(),await f();let e=l(w,m.account.root);e.requiresFullPageNavigation?window.location.href=e.destination:n(e.destination);return}I(e.errors[0]?.message??`Failed to complete signup.`);return}await C(),await f();let t=s({returnTo:w,fallback:m.account.root,authIntent:`signup`});t.requiresFullPageNavigation?window.location.href=t.destination:n(t.destination)},U=async t=>{t.preventDefault(),I(null),R(!0);try{await H()}catch{I(e(`authErrors.genericFailure`))}finally{R(!1)}},W=async t=>{if(t.preventDefault(),k.trim()){I(null),R(!0);try{b(k),await H()}catch{I(e(`authErrors.genericFailure`))}finally{R(!1)}}};if(z)return(0,S.jsx)(v,{children:(0,S.jsx)(_,{title:e(`providerSignupPage.completingTitle`),subtitle:e(`providerSignupPage.completingSubtitle`)})});if(T&&D){let t=k.trim().length>0&&!L;return(0,S.jsx)(y,{children:(0,S.jsxs)(`form`,{onSubmit:W,className:`signup-details__thread`,children:[(0,S.jsxs)(`h2`,{className:`signup-details__heading`,children:[e(`providerSignupPage.headingLine1`),(0,S.jsx)(`br`,{}),e(`providerSignupPage.headingLine2`)]}),F&&(0,S.jsx)(`p`,{className:`signup-details__error`,children:F}),(0,S.jsxs)(`div`,{className:`signup-details__step`,children:[(0,S.jsxs)(`span`,{className:`signup-details__label`,children:[e(`providerSignupPage.firstNameQuestion`),` `,(0,S.jsx)(`span`,{className:`signup-details__req`,children:`*`})]}),(0,S.jsx)(`input`,{className:`signup-details__input`,type:`text`,placeholder:e(`providerSignupPage.firstNamePlaceholder`),value:k,onChange:e=>A(e.target.value),autoComplete:`given-name`,autoFocus:!0,required:!0})]}),(0,S.jsxs)(`div`,{className:`signup-details__step`,children:[(0,S.jsxs)(`span`,{className:`signup-details__label`,children:[e(`providerSignupPage.lastNameQuestion`),` `,(0,S.jsx)(`span`,{className:`signup-details__req`,children:`*`})]}),(0,S.jsx)(`input`,{className:`signup-details__input`,type:`text`,placeholder:e(`providerSignupPage.lastNamePlaceholder`),value:j,readOnly:!0,disabled:!0})]}),(0,S.jsxs)(`div`,{className:`signup-details__step`,children:[(0,S.jsx)(`span`,{className:`signup-details__label`,children:e(`providerSignupPage.roleQuestion`)}),(0,S.jsx)(`input`,{className:`signup-details__input`,type:`text`,autoComplete:`organization-title`,placeholder:e(`providerSignupPage.rolePlaceholder`),value:N,onChange:e=>P(e.target.value)})]}),(0,S.jsx)(`div`,{className:`signup-details__step`,children:(0,S.jsx)(`button`,{type:`submit`,className:`signup-details__continue`,disabled:!t,children:e(L?`providerSignupPage.submitting`:`providerSignupPage.submit`)})})]})})}return(0,S.jsxs)(v,{children:[(0,S.jsx)(_,{title:e(`providerSignupPage.completeAccountTitle`),subtitle:e(`providerSignupPage.completeAccountSubtitle`)}),(0,S.jsxs)(g,{onSubmit:U,error:F,submitLabel:e(`providerSignupPage.completeSignup`),submittingLabel:e(`providerSignupPage.completingSignup`),isSubmitting:L,footer:(0,S.jsx)(a,{to:m.account.login,className:`text-sm text-[var(--content-secondary)] hover:text-[var(--content-default)]`,children:e(`providerSignupPage.backToSignIn`)}),children:[(0,S.jsx)(h,{id:`email`,type:`email`,autoComplete:`email`,placeholder:e(`providerSignupPage.emailPlaceholder`),value:T,onChange:e=>E(e.target.value),required:!0}),(0,S.jsx)(h,{id:`username`,type:`text`,autoComplete:`username`,placeholder:e(`providerSignupPage.usernamePlaceholder`),value:D,onChange:e=>O(e.target.value),required:!0})]})]})}export{C as ProviderSignupPage};
@@ -1 +1 @@
1
- import{l as e}from"./machine-sizes-Dnm82Ei9.js";function t(t,n){return t?{machine:t.machineSize==null||n?.machineSize!=null&&e(n.machineSize)>=e(t.machineSize),storage:t.storageGib==null||n?.storageGib!=null&&n.storageGib>=t.storageGib}:{machine:!1,storage:!1}}function n(e,n){let r=t(e,n);return r.machine&&r.storage}function r(e){if(!e)return!1;if(e.state===`resizing_machine`||e.state===`resizing_storage`)return!0;let t=e.active_operation?.operation;return typeof t==`string`&&t.startsWith(`resize`)}function i(e){if(!e)return{machine:!1,storage:!1};let t=e.active_operation?.operation;return{machine:e.state===`resizing_machine`||t===`resize_machine`,storage:e.state===`resizing_storage`||t===`resize_storage`}}function a(e){return e.state===`not_applicable`&&(e.reason===`no_active_pro`||e.reason===`no_provisionable_assistants`)}export{n as a,i,a as n,r,t};
1
+ import{l as e}from"./machine-sizes-C3GmmuDZ.js";function t(t,n){return t?{machine:t.machineSize==null||n?.machineSize!=null&&e(n.machineSize)>=e(t.machineSize),storage:t.storageGib==null||n?.storageGib!=null&&n.storageGib>=t.storageGib}:{machine:!1,storage:!1}}function n(e,n){let r=t(e,n);return r.machine&&r.storage}function r(e){if(!e)return!1;if(e.state===`resizing_machine`||e.state===`resizing_storage`)return!0;let t=e.active_operation?.operation;return typeof t==`string`&&t.startsWith(`resize`)}function i(e){if(!e)return{machine:!1,storage:!1};let t=e.active_operation?.operation;return{machine:e.state===`resizing_machine`||t===`resize_machine`,storage:e.state===`resizing_storage`||t===`resize_storage`}}function a(e){return e.state===`not_applicable`&&(e.reason===`no_active_pro`||e.reason===`no_provisionable_assistants`)}export{n as a,i,a as n,r,t};
@@ -1 +1 @@
1
- import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{j as t}from"./vendor-CCI2T82b.js";import{b as n,t as r}from"./react-DPM_L_aA.js";import{di as i}from"./icons-B-6TfGtd.js";import{Cv as a,kr as o}from"./index-BHBLeC80.js";var s=e(n(),1);async function c(e){a()&&await window.vellum?.quickInput?.submit(e)}async function l(){a()&&await window.vellum?.quickInput?.dismiss()}var u=r();function d(){let{t:e}=t(),[n,r]=(0,s.useState)(``),a=(0,s.useRef)(null);(0,s.useEffect)(()=>{a.current?.focus()},[]);let d=(0,s.useCallback)(e=>{e.preventDefault();let t=n.trim();t&&(c(t),r(``))},[n]),f=(0,s.useCallback)(e=>{e.key===`Escape`&&(e.preventDefault(),l())},[]);return(0,u.jsx)(`div`,{className:`flex h-screen w-screen items-center justify-center bg-transparent p-2`,children:(0,u.jsxs)(`form`,{onSubmit:d,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,u.jsx)(`img`,{src:o(`/vellum-logo.svg`),alt:e(`quickInputPage.logoAlt`),width:24,height:24,className:`shrink-0 dark:hidden`,draggable:!1}),(0,u.jsx)(`img`,{src:o(`/vellum-logo-white.svg`),alt:e(`quickInputPage.logoAlt`),width:24,height:24,className:`hidden shrink-0 dark:block`,draggable:!1}),(0,u.jsx)(`input`,{ref:a,type:`text`,value:n,onChange:e=>r(e.target.value),onKeyDown:f,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,u.jsx)(`button`,{type:`submit`,disabled:!n.trim(),className:`flex size-7 shrink-0 items-center justify-center rounded-full bg-[var(--surface-accent)] text-[var(--content-on-accent)] transition-opacity disabled:opacity-30`,children:(0,u.jsx)(i,{size:16})})]})})}export{d as QuickInputPage};
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{j as t}from"./vendor-CV8wawxx.js";import{b as n,t as r}from"./react-DPM_L_aA.js";import{fi as i}from"./icons-J6Mg9wGk.js";import{Bv as a,Mr as o}from"./index-jpjzZb6b.js";var s=e(n(),1);async function c(e){a()&&await window.vellum?.quickInput?.submit(e)}async function l(){a()&&await window.vellum?.quickInput?.dismiss()}var u=r();function d(){let{t:e}=t(),[n,r]=(0,s.useState)(``),a=(0,s.useRef)(null);(0,s.useEffect)(()=>{a.current?.focus()},[]);let d=(0,s.useCallback)(e=>{e.preventDefault();let t=n.trim();t&&(c(t),r(``))},[n]),f=(0,s.useCallback)(e=>{e.key===`Escape`&&(e.preventDefault(),l())},[]);return(0,u.jsx)(`div`,{className:`flex h-screen w-screen items-center justify-center bg-transparent p-2`,children:(0,u.jsxs)(`form`,{onSubmit:d,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,u.jsx)(`img`,{src:o(`/vellum-logo.svg`),alt:e(`quickInputPage.logoAlt`),width:24,height:24,className:`shrink-0 dark:hidden`,draggable:!1}),(0,u.jsx)(`img`,{src:o(`/vellum-logo-white.svg`),alt:e(`quickInputPage.logoAlt`),width:24,height:24,className:`hidden shrink-0 dark:block`,draggable:!1}),(0,u.jsx)(`input`,{ref:a,type:`text`,value:n,onChange:e=>r(e.target.value),onKeyDown:f,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,u.jsx)(`button`,{type:`submit`,disabled:!n.trim(),className:`flex size-7 shrink-0 items-center justify-center rounded-full bg-[var(--surface-accent)] text-[var(--content-on-accent)] transition-opacity disabled:opacity-30`,children:(0,u.jsx)(i,{size:16})})]})})}export{d as QuickInputPage};
@@ -1,4 +1,4 @@
1
- import{a as e,dt as t,ft as n,i as r,pt as i,r as a}from"./vendor-CCI2T82b.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={"&":`&amp;`,">":`&gt;`,"<":`&lt;`,'"':`&quot;`,"'":`&#x27;`},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]*([^\\/#?]*?)(:|&#0*58|&#x0*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)+`
1
+ import{a as e,dt as t,ft as n,i as r,pt as i,r as a}from"./vendor-CV8wawxx.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={"&":`&amp;`,">":`&gt;`,"<":`&lt;`,'"':`&quot;`,"'":`&#x27;`},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]*([^\\/#?]*?)(:|&#0*58|&#x0*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{Si as e}from"./icons-B-6TfGtd.js";var t=e(`repeat`,[[`path`,{d:`m17 2 4 4-4 4`,key:`nntrym`}],[`path`,{d:`M3 11v-1a4 4 0 0 1 4-4h14`,key:`84bu3i`}],[`path`,{d:`m7 22-4-4 4-4`,key:`1wqhfi`}],[`path`,{d:`M21 13v1a4 4 0 0 1-4 4H3`,key:`1rx37r`}]]);export{t};
1
+ import{Ci as e}from"./icons-J6Mg9wGk.js";var t=e(`repeat`,[[`path`,{d:`m17 2 4 4-4 4`,key:`nntrym`}],[`path`,{d:`M3 11v-1a4 4 0 0 1 4-4h14`,key:`84bu3i`}],[`path`,{d:`m7 22-4-4 4-4`,key:`1wqhfi`}],[`path`,{d:`M21 13v1a4 4 0 0 1-4 4H3`,key:`1rx37r`}]]);export{t};
@@ -1 +1 @@
1
- import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{j as t}from"./vendor-CCI2T82b.js";import{b as n,f as r,r as i,t as a}from"./react-DPM_L_aA.js";import{Sv as o}from"./index-BHBLeC80.js";var s=e(n(),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}=t(`chat`);r();let[n,a]=(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:o.assistant,replace:!0})}export{u as ResearchMockPage};
1
+ import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{j as t}from"./vendor-CV8wawxx.js";import{b as n,f as r,r as i,t as a}from"./react-DPM_L_aA.js";import{zv as o}from"./index-jpjzZb6b.js";var s=e(n(),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}=t(`chat`);r();let[n,a]=(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:o.assistant,replace:!0})}export{u as ResearchMockPage};